PageSourceSearch

https://www.gardensillustrated.com/main.11dfe4fa53342d3f.js

js gardensillustrated.com collected 2026-09-24 18:31:21 UTC 1,521,848 bytes, 1 lines download raw bytes

1var YD=Object.freeze,Yk=Object.defineProperty,xi=(le,E)=>YD(Yk(le,"raw",{value:YD(E||le.slice())})),ZD,JD,qD,eI,tI,nI,rI,iI,oI,sI,aI,lI,uI,cI,dI,fI,hI,pI,gI,mI,vI,_I,yI,EI,AI,CI,bI,TI,SI;(self.webpackChunkstorefront=self.webpackChunkstorefront||[]).push([[8792],{3057:le=>{"use strict";function E(d){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p})(d)}le.exports=function(){for(var p,u,o=[],v=window,O=v;O;){try{if(O.frames.__tcfapiLocator){p=O;break}}catch(x){}if(O===v.top)break;O=O.parent}p||(function x(){var U=v.document,Q=!!v.frames.__tcfapiLocator;if(!Q)if(U.body){var re=U.createElement("iframe");re.style.cssText="display:none",re.name="__tcfapiLocator",U.body.appendChild(re)}else setTimeout(x,5);return!Q}(),v.__tcfapi=function(){for(var x=arguments.length,U=new Array(x),Q=0;Q<x;Q++)U[Q]=arguments[Q];if(!U.length)return o;"setGdprApplies"===U[0]?U.length>3&&2===parseInt(U[1],10)&&"boolean"==typeof U[3]&&(u=U[3],"function"==typeof U[2]&&U[2]("set",!0)):"ping"===U[0]?"function"==typeof U[2]&&U[2]({gdprApplies:u,cmpLoaded:!1,cmpStatus:"stub"}):o.push(U)},v.addEventListener("message",function(x){var U="string"==typeof x.data,Q={};if(U)try{Q=JSON.parse(x.data)}catch(be){}else Q=x.data;var re="object"===E(Q)&&null!==Q?Q.__tcfapiCall:null;re&&window.__tcfapi(re.command,re.version,function(be,ue){var X={__tcfapiReturn:{returnValue:be,success:ue,callId:re.callId}};x&&x.source&&x.source.postMessage&&x.source.postMessage(U?JSON.stringify(X):X,"*")},re.parameter)},!1))}},8448:(le,E,d)=>{"use strict";d.d(E,{G:()=>u,r:()=>p});var p=function(o){return o.ISSUE="ISSUE",o.ARTICLE="ARTICLE",o.ISSUE_ARTICLE="ISSUE_ARTICLE",o.READ_MODE_ARTICLE="READ_MODE_ARTICLE",o}(p||{}),u=function(o){return o.DOWNLOAD_STARTED="DOWNLOAD_STARTED",o.DOWNLOAD_CANCELLED="DOWNLOAD_CANCELLED",o.DELETED="DELETED",o.DOWNLOADED="DOWNLOADED",o.DOWNLOAD_FAILED="DOWNLOAD_FAILED",o}(u||{})},1794:(le,E,d)=>{"use strict";d.d(E,{Z:()=>Te});var p=d(9379),u=d(467),o=d(177),v=d(3953),O=d(3331),x=d(4404),U=d(1985),Q=d(3726),re=d(4843),be=d(5964),ue=d(1594),X=d(5245),ne=d(152),te=d(7616),$=d(6843),J=d(873),se=d(4452),De=d(6010),Ce=d(8075),ce=d(244),_=d(9516),R=d(9745),w=d(8004),B=d(1652),z=d(1510),oe=d(7031),V=d(8251),k=d(3178),K=d(2962),ge=d(7598),ve=d(7879),Fe=d(8890),We=d(4520);let bt=(()=>{var P;class F{constructor(){this.purpleService=(0,v.WQX)(De.Wj),this.globalService=(0,v.WQX)(B.d)}init(){var Ae=this;return(0,u.A)(function*(){Ae.globalService.getData("appSettings")||(yield(0,k.a)("AppSettings-resolved",(0,u.A)(function*(){try{let Oe=yield Ae.purpleService.getCatalogAppSettings({first:200}),vt=Oe.nodes;for(;Oe.hasNextPage;)Oe=yield Ae.purpleService.getCatalogAppSettings({first:200,after:Oe.cursor}),vt=vt.concat(Oe.nodes);Ae.setGlobalSettings(vt)}catch(Oe){console.warn("Error getting app settings:",Oe)}})))})()}setGlobalSettings(Ae){var Oe;const vt=this.convertToNestedStructure(Ae);this.globalService.setData("appSettings",(0,p.A)((0,p.A)({},null!==(Oe=this.globalService.getData("appSettings"))&&void 0!==Oe?Oe:{}),vt))}convertToNestedStructure(Ae){let Oe={};for(let{key:vt,value:Tt}of Ae)this.setValue(Oe,vt.split("."),Tt);return Oe}setValue(Ae,Oe,vt){let Tt=Oe.length-1;for(let Dt=0;Dt<Tt;++Dt){let en=Oe[Dt];if(!(en in Ae)){const Dn=!isNaN(Number(Oe[Dt+1]))||"_element_count"===Oe[Dt+1];Ae[en]=Dn?[]:{}}Ae=Ae[en]}(!Ae[Oe[Tt]]||"object"!=typeof Ae[Oe[Tt]])&&(Ae[Oe[Tt]]=vt)}}return(P=F).\u0275fac=function(Ae){return new(Ae||P)},P.\u0275prov=v.jDH({token:P,factory:P.\u0275fac,providedIn:"root"}),F})();var Ke=d(5204),Me=d(4748),tt=d(5820),He=d(8482),ot=d(6350),je=d(8582),fe=d(5927);function D(P,F){if(1&P&&v.nrm(0,"div",3),2&P){const de=v.XpG(2);v.Y8G("config",de.appBarConfig)}}function H(P,F){if(1&P&&v.nrm(0,"storefront-app-bar",4),2&P){const de=v.XpG(2);v.Y8G("config",de.appBarConfig)}}function Se(P,F){if(1&P&&v.DNE(0,D,1,1,"div",3)(1,H,1,1,"storefront-app-bar",4),2&P){const de=v.XpG();v.vxM(de.domHelper.leanDom?0:1)}}function Ue(P,F){1&P&&v.nrm(0,"div",5)}function at(P,F){1&P&&v.nrm(0,"storefront-side-menu")}function hn(P,F){if(1&P&&v.DNE(0,Ue,1,0,"div",5)(1,at,1,0,"storefront-side-menu"),2&P){const de=v.XpG();v.vxM(de.domHelper.leanDom?0:1)}}function ln(P,F){1&P&&v.nrm(0,"router-outlet")}function et(P,F){if(1&P&&v.nrm(0,"div",6),2&P){const de=v.XpG(2);v.Y8G("config",de.navigationConfig)}}function G(P,F){if(1&P&&v.nrm(0,"storefront-tab-navigation",4),2&P){const de=v.XpG(2);v.Y8G("config",de.navigationConfig)}}function _e(P,F){if(1&P&&v.DNE(0,et,1,1,"div",6)(1,G,1,1,"storefront-tab-navigation",4),2&P){const de=v.XpG();v.vxM(de.domHelper.leanDom?0:1)}}let Te=(()=>{var P;class F{constructor(){this.store=(0,v.WQX)(V.B),this.router=(0,v.WQX)(O.Ix),this.renderer=(0,v.WQX)(v.sFG),this.eventActionService=(0,v.WQX)(w.G),this.ngZone=(0,v.WQX)(v.SKi),this.injector=(0,v.WQX)(v.zZn),this.contextService=(0,v.WQX)(_.V),this.userTagService=(0,v.WQX)(z.h),this.appMenuService=(0,v.WQX)(Ke.I),this.cleanUpService=(0,v.WQX)(ce.I),this.document=(0,v.WQX)(o.qQ),this.purpleEnv=(0,v.WQX)(ve.r6),this.platformId=(0,v.WQX)(v.Agw),this.purpleService=(0,v.WQX)(De.Wj),this.cacheService=(0,v.WQX)(ot._),this.globalService=(0,v.WQX)(B.d),this.elementRef=(0,v.WQX)(v.aKT),this.appSett
1ingsService=(0,v.WQX)(bt),this.viewService=(0,v.WQX)(We.z),this.anchorService=(0,v.WQX)(tt.X),this.ssrService=(0,v.WQX)(Me.i),this.traffectiveAdService=(0,v.WQX)(He.y),this.appData=(0,v.WQX)(ve.fj),this.domHelper=(0,v.WQX)(fe.S),this.firstNavigation=!0,this.delta=0,this.hasNoAppAndNoCustomSideMenuSignal=(0,v.EWP)(()=>!this.purpleEnv.isApp&&this.appMenuService.hasNoCustomSideMenuSignal());const Oe=this.purpleEnv;F.appInstanceInjector=this.injector,console.debug("[ENV] isApp: ".concat(Oe.isApp,", isUniversal: ").concat(Oe.isUniversal)),(0,o.UE)(this.platformId)&&new U.c(vt=>{(0,v.mal)({read:()=>{setTimeout(()=>{vt.next(),vt.complete()})}})}).subscribe(()=>{var vt;const Tt=new Event("PrebootComplete");document.dispatchEvent(Tt),null!==(vt=window)&&void 0!==vt&&null!==(vt=vt.prebootData)&&void 0!==vt&&null!==(vt=vt.apps)&&void 0!==vt&&vt.length&&(window.prebootData.apps=[]),this.ssrService.updatePrebootStatus(!0)})}updateLoggedIn(){this.loggedIn=this.contextService.isLoggedIn()}ngOnInit(){this.router.events.pipe((0,be.p)(Ae=>Ae instanceof O._d),(0,ue.$)()).subscribe(Ae=>{this.init(Ae)}),this.router.events.pipe((0,be.p)(Ae=>Ae instanceof O._d),(0,X.i)(1)).subscribe(Ae=>{this.contextService.setPath(Ae)})}init(Ae){var Oe=this;return(0,u.A)(function*(){var vt;Oe.globalService.init();const Tt=Ae.snapshot.queryParams.skipSSR;if(Oe.purpleEnv.isUniversal){var Dt,en,Dn;if(Ae.snapshot.queryParams.skipSSR&&(0,o.Vy)(Oe.platformId))return;const qe=JSON.parse(null!==(Dt=localStorage.getItem("entitlementUserData"))&&void 0!==Dt?Dt:"{}")||{},Kt=JSON.parse(null!==(en=localStorage.getItem("subscriptionCodes"))&&void 0!==en?en:"[]")||[],{preview:Ie,brand:Ve,appWebConfig:yt,customDomain:Rt,baseUrl:zt}=Oe.appData,{id:ft,entitlementConfig:Ht}=yt;Oe.contextService.setPath(Ae);let Zt=localStorage.getItem("deviceId");Zt||(Zt=(0,je.l)(),localStorage.setItem("deviceId",Zt));const Vt=Oe.document.location,gt=Rt?"":"/".concat(Ve),Ct={entitlementConfig:Ht,oauthRedirectUri:"".concat(Vt.protocol,"//").concat(Vt.host).concat(gt,"/oauth/callback").concat(Ie?"?preview=true":""),appId:ft,appVersion:"",bundleId:"",deviceId:Zt,deviceModel:"web",deviceOs:"web",baseUrl:zt,subscriptionCodes:Kt,platform:"web",preview:Ie,requestLogging:!1,purpleVersion:null===(Dn=Oe.purpleEnv.buildInfo)||void 0===Dn?void 0:Dn.packageVersion,locale:"de_DE",entitlementToken:qe[te.d.ENTITLEMENT_TOKEN],entitlementRefreshToken:qe[te.d.ENTITLEMENT_REFRESH_TOKEN],entitlementRoles:qe[te.d.ENTITLEMENT_ROLES]};yield Oe.purpleService.init(Ct)}else Oe.contextService.setPath(Ae),yield Oe.purpleService.init();Oe.ngZone.runOutsideAngular(()=>{(0,Q.R)(window,"scroll",{passive:!0}).pipe((0,ne.B)(J.Lf)).subscribe(qe=>Oe.ngZone.run(()=>Oe.onScrollEnd(qe)))}),Oe.anchorService.init(Oe.store),null===(vt=Oe.traffectiveAdService)||void 0===vt||vt.initDefaultConfig(Oe.store),Oe.purpleService.connectionState$.pipe((0,be.p)(qe=>!!qe),(0,Fe.ZE)()).subscribe(qe=>{Oe.contextService.setMetadata("connection_state",qe.state)}),(0,Fe.Ne)().subscribe(qe=>Oe.contextService.updateDeviceSettings()),Oe.store.select((0,oe.jZ)($.O.ACCESS),qe=>Oe.access=qe),Oe.contextService.init(),yield Promise.all([Oe.eventActionService.init(),Oe.userTagService.init(),Oe.appSettingsService.init(),Oe.loadGlobalDataSources(Tt)]),Oe.context=yield(0,re._)(Oe.contextService.viewContext$.pipe((0,be.p)(qe=>!!qe.userAttributes))),Oe.contextService.updateDeviceSettings(),Oe.contextService.viewContext$.subscribe(qe=>{Oe.context=qe,Oe.updateLoggedIn()}),window.addEventListener(ge.YT,qe=>{Oe.onEntitlementMaybeChanged()});const Pn=yield Oe.purpleService.getMetadata();((yield Oe.purpleService.getState(J.sn))||void 0)!=Pn.entitlement_token&&Oe.cacheService.bustApiCache(),Oe.contextService.setFullMetadata((0,p.A)((0,p.A)({},Oe.contextService.getMetadata()),Pn));const In=Pn.issue_id;In&&(yield(0,Ce.CV)(Oe.router,{issue:In,content:In}));const xt=yield Oe.purpleService.getAccountUserData();Oe.contextService.setAccountData(xt),Oe.updateLoggedIn(),Oe.context=Oe.contextService.getContext(),Oe.setupViewHandling(),Oe.showView=!0,Oe.nativeAppBar=yield Oe.purpleService.isTitleBarEnabled(),Oe.nativeAppBar&&Oe.renderer.addClass(Oe.document.body,"no-app-bar"),yield Oe.cleanUpService.init(),Oe.cleanUpService.deleteExpiredIssues(),Oe.purpleEnv.isApp&&Oe.ngZone.runOutsideAngular(()=>{setInterval(()=>Oe.cleanUpService.deleteExpiredIssues(),6e4)})})()}onEntitlementMaybeChanged(Ae){var Oe=this;return(0,u.A)(function*(){if(void 0===Ae?Ae=yield Oe.purpleService.getMetadata([x.METADATA_KEY.ENTITLEMENT_TOKEN]).then(en=>en[x.METADATA_KEY.ENTITLEMENT_TOKEN]||void 0):!1===Ae&&(Ae=void 0),((yield Oe.purpleService.getState(J.sn))||void 0)!==Ae){const en=yield Oe.purpleService.getEntitlementUserData(),Dn=yield Oe.purpleService.getState(J.Z_).then(Pn=>Pn?JSON.parse(Pn):void 0);Oe.cacheService.bustApiCache();try{var Tt,Dt;null===(Tt=window.storefrontHooks)||void 0===Tt||null===(Dt=Tt.entitlementChanged)||void 0===Dt||Dt.call(Tt,{oldState:Dn,newState:en})}catch(Pn){console.error("Error in entitlementChanged hook:",Pn)}yield Promise.all([Oe.purpleService.setState(J.sn,"string"==typeof Ae?Ae:null),Oe.purpleService.setState(J.Z_,JSON.stringify(en))])}})()}setupViewHandling(){this.viewService.view$.subscribe(({default:{viewConfig:Ae},routerEvent:Oe})=>{var vt;if(this.firstNavigation&&this.contextService.setInitialUrl("#".concat(Oe.url)),this.contextService.setPathUrl("#".concat(Oe.url)),!this.loggedIn&&null!==(vt=this.access)&&void 0!==vt&&vt.forceLogin&&this.firstNavigation)return this.firstNavigation=!1,this.eventActionService.processLoginAction({type:R.H.LOGIN},this);this.firstNavigation=!1,this.nativeAppBar||this.store.select((0,oe.Vi)(Ae.appBar),Tt=>{this.appBarConfig=Tt,this.appBarConfig?this.renderer.removeClass(this.document.body,"no-app-bar"):this.renderer.addClass(this.document.body,"no-app-bar")}
1,k.lQ,k.lQ,"selectAppBar"),this.store.select((0,oe.LM)(Ae.navigation),Tt=>{this.navigationConfig=Tt,this.navigationConfig?this.renderer.removeClass(this.document.body,"no-navigation"):this.renderer.addClass(this.document.body,"no-navigation")},k.lQ,k.lQ,"selectTabNavigation")})}onScrollEnd(Ae){(0,K.IL)(document.scrollingElement)<=J._&&window.dispatchEvent(new CustomEvent(ge.Zm,{detail:{emitter:document.body}})),this.updateScrolledClasses(Ae)}updateScrolledClasses(Ae){const Oe=Ae.target.scrollTop||document.scrollingElement.scrollTop;let vt=parseInt(getComputedStyle(document.body).getPropertyValue("--appBarHeight"),10);if(isNaN(vt)&&(vt=J._),Oe>vt){if(document.body.classList.add(J.Md),this.lastScroll){const Tt=this.lastScroll-Oe>this.delta;Oe-this.lastScroll>this.delta?document.body.classList.add(J.BE):document.body.classList.remove(J.BE),Tt?document.body.classList.add(J.Ed):document.body.classList.remove(J.Ed)}this.lastScroll=Oe}else document.body.classList.remove(J.Md),document.body.classList.remove(J.Ed),document.body.classList.remove(J.BE),this.lastScroll=void 0}getId(){return"APP"}getContext(){return this.context}loadGlobalDataSources(Ae){var Oe=this;return(0,u.A)(function*(){if((0,o.Vy)(Oe.platformId)||!Oe.purpleEnv.isUniversal||Ae)return new Promise(vt=>{const Tt=[];Oe.store.select((0,oe.m6)(),function(){var Dt=(0,u.A)(function*(en){en&&en.globalData&&(en.globalData.forEach(Dn=>{let Pn=(0,se.O8)(Oe.injector,Dn,Oe.elementRef.nativeElement,Oe.document);Tt.push(Pn.loadData({global:!0}))}),yield Promise.all(Tt)),vt()});return function(en){return Dt.apply(this,arguments)}}())})})()}}return(P=F).\u0275fac=function(Ae){return new(Ae||P)},P.\u0275cmp=v.VBU({type:P,selectors:[["storefront-root"]],standalone:!1,features:[v.Jv_([V.B])],decls:7,vars:4,consts:[["name","modal"],["name","presenter"],[1,"bottom-sticky-elements"],[1,"pxp-app-bar",3,"config"],[3,"config"],[1,"pxp-side-menu"],[1,"pxp-tab-navigation",3,"config"]],template:function(Ae,Oe){1&Ae&&(v.DNE(0,Se,2,1)(1,hn,2,1)(2,ln,1,0,"router-outlet"),v.nrm(3,"router-outlet",0)(4,"router-outlet",1),v.j41(5,"div",2),v.DNE(6,_e,2,1),v.k0s()),2&Ae&&(v.vxM(!Oe.nativeAppBar&&Oe.appBarConfig?0:-1),v.R7$(),v.vxM(Oe.hasNoAppAndNoCustomSideMenuSignal()?1:-1),v.R7$(),v.vxM(Oe.showView?2:-1),v.R7$(4),v.vxM(Oe.navigationConfig?6:-1))},styles:[".bottom-sticky-elements[_ngcontent-%COMP%]{bottom:0;left:0;right:0;position:fixed;z-index:9}"]}),F})()},2261:(le,E,d)=>{"use strict";d.d(E,{F:()=>u,a:()=>o});var p=d(2348),u=function(v){return v.BACK="back",v.MENU="menu",v}(u||{});const o={id:null,scrollBehavior:p.K.SHRINK,logo:!0,leftButton:u.MENU}},2783:(le,E,d)=>{"use strict";d.d(E,{t:()=>O});var p=d(177),u=d(3),o=d(9805),v=d(3953);let O=(()=>{var x;class U{}return(x=U).\u0275fac=function(re){return new(re||x)},x.\u0275mod=v.$C({type:x}),x.\u0275inj=v.G2t({imports:[p.MD,o.ButtonModule,u.pZ]}),U})()},1210:(le,E,d)=>{"use strict";d.d(E,{$:()=>se});var p=d(9379),u=d(177),o=d(3953),v=d(4412),O=d(8179),x=d(9516),U=d(5964),Q=d(2962),re=d(362),be=d.n(re),ue=d(3749),X=d(7879),ne=d(24),te=d(1652),$=d(8582),J=d(5927);let se=(()=>{var De;class Ce{constructor(){this.elementRef=(0,o.WQX)(o.aKT),this.contextService=(0,o.WQX)(x.V),this.document=(0,o.WQX)(u.qQ),this.globalService=(0,o.WQX)(te.d),this.platformId=(0,o.WQX)(o.Agw),this.renderer=(0,o.WQX)(o.sFG),this.transferState=(0,o.WQX)(o.pJN),this.domHelper=(0,o.WQX)(J.S),this.appData=(0,o.WQX)(X.fj),this.inspectorService=(0,o.WQX)(ne.j),this.parentBaseConfig=(0,o.hFB)(void 0),this.baseConfig=(0,o.uuI)(()=>this.parentBaseConfig()),this.contextKeys=void 0,this.parentBaseContext=(0,o.hFB)({}),this.baseContext=(0,o.uuI)(()=>this.parentBaseContext()),this.delete=(0,o.CGW)(),this.processing=(0,o.CGW)(),this.configChanges$=new v.t(null),this.componentContextChanges$=new v.t({}),this.inited=new v.t(!1)}get ghost(){return this.isGhost()}get elementId(){return(this.config||this.baseConfig()).id}get id(){return this.getId()}get regularContextId(){return this.domHelper.regularSelector(this.id)}get prefixedContextId(){return this.domHelper.prefixedSelector(this.id)}get template(){return(this.config||this.baseConfig()).template}get regularTemplate(){return this.domHelper.regularSelector(this.template)}get prefixedTemplate(){return this.domHelper.prefixedSelector(this.template)}ngOnInit(){var _;if(this.skipRender=(null===(_=this.baseConfig())||void 0===_?void 0:_.skipSSR)&&(0,u.Vy)(this.platformId),!this.skipRender){try{this.inspectorService.registerComponent(this.elementRef.nativeElement,this)}catch(R){}this.outlet=(0,Q.kO)(this.elementRef.nativeElement,this.document),this.configChanges$.next(this.baseConfig()),this.viewContextChangesSubscription=this.contextService.viewContextChange$.pipe((0,U.p)(R=>R&&(this.isRefreshChange(R.change)||R.value.outlet===this.outlet))).subscribe(R=>{this.contextKeys||this.rebuildContextKeys(),(!this.contextKeys||this.hasAnyContextKey(R.change)||this.hasAContextKey(R.change))&&this.handleChange(this.configChanges$.value,R.value,this.componentContextChanges$.value,!0,R.change)}),this.componentContextChangesSubscription=this.componentContextChanges$.subscribe(R=>{Object.keys(R).length>0&&this.handleChange(this.configChanges$.value,this.contextService.getCurrentViewContext(),R,!0)}),this.configChangesSubscription=this.configChanges$.subscribe(R=>{this.handleChange(R,this.contextService.getCurrentViewContext(),this.componentContextChanges$.value,!1),this.contextKeys||this.rebuildContextKeys()}),this.inited.next(!0)}}ngOnChanges(_){}ngOnDestroy(){this.skipRender||(this.configChangesSubscription&&(this.configChangesSubscription.unsubscribe(),this.viewContextChangesSubscription.unsubscribe(),this.componentContextChangesSubscription.unsubscribe()),this.inspectorService.unregisterComponent(this.elementRef.nativeElement))}rebuildContextKeys(){this.contextKeys=new Set,(0,ue.Fl)(this.stripChildConfigs(structuredClone(this.baseConfig())),this.contextKeys)}getElementClass(){let _="";const R=(this.config||this.baseConfig()).class;return R&&(_=Array.isArray(R)?R.map(w=>(0,O.v3)(w)).join(" "):(0,O.v3)(R)),this.manageServerSetClasses(_,R),_}hasAContextKey(_){if(!_)return!1;const R=this.getContextKey();return!(!R||!_[R])}hasAnyContextKey(_){for(const R in _)if(this.contextKeys.has(R))return!0;return this.isRefreshChange(_)}isRefreshChange(_){return 0===Object.keys(_).length}stripChildConfigs(_){return _}handleChange(_,R,w,B,z){if(!_||!R||!w)return;const oe=(0,p.A)((0,p.A)((0,p.A)({},R),this.baseContext()),w),V=(0,O.uQ)(this.stripChildConfigs((0,p.A)((0,p.A)((0,p.A)({},this.defaultConfig),this.config),_)),oe,this.contextService.$functions,this.globalService.getGlobalData());this.context||(this.context={}),(0,O.ZY)(V,this.getConfigEscapeProperties())&&(!this.config||this.hasConfigChanged(V)||B&&this.hasContextChanged(oe)||this.hasAContextKey(z))?(this.context=(0,p.A)((0,p.A)({},this.context),oe),this.config=(0,p.A)((0,p.A)({},JSON.parse(JSON.stringify(this.defaultConfig))),V),this.onConfigChanges()):this.context=(0,p.A)((0,p.A)({},this.context),oe)}getElementRef(){return this.elementRef}getContext(){return this.context}getConfigEscapeProperties(){return["content","condition"]}getType(){return this.constructor.type}getId(){return(0,O.v3)((this.config||this.baseConfig()).id)}getTrackingParams(){return{}}getTrackingBaseKey(){return this.elementId||this.getType()}getErrorDialogArgs(_){return[]}onConfigChanges(){}isGhost(){return!1}hasConfigChanged(_){return!be()(_,this.config)}hasContextChanged(_){if(_.resolvedDependencies&&!this.context.resolvedDependencies)return!0;const R=JSON.stringify(this.baseConfig());return R.indexOf(O.mF)>
1-1&&!!Object.keys(_).filter(B=>R.indexOf("".concat(O.mF,".").concat(B))>-1||R.indexOf("".concat(O.mF,'["').concat(B,'"]'))>-1||R.indexOf("".concat(O.mF,"['").concat(B,"']"))>-1).find(B=>_[B]!==this.context[B]&&!be()(_[B],this.context[B]))}setComponentContext(_,R){this.componentContextChanges$.next((0,p.A)((0,p.A)({},this.componentContextChanges$.getValue()),{},{[_]:R}))}onStateChange(_){!_||null!=_&&_.parentBaseConfig?this.configChanges$.next(this.baseConfig()):null!=_&&_.parentBaseContext&&Object.keys(null==_?void 0:_.parentBaseContext).length&&this.handleChange(this.configChanges$.value,this.baseContext(),this.componentContextChanges$.value,!0)}getContextKey(){return null}manageServerSetClasses(_,R){_?(0,u.Vy)(this.platformId)?this.handleServerSideClasses(_):this.handleClientSideClasses(_):this.renderer.removeClass(this.elementRef.nativeElement,null==R?void 0:R.value)}handleServerSideClasses(_){if(!this.componentGeneratedId)return this.componentGeneratedId=(0,o.zw6)((0,$.l)()),this.renderer.setAttribute(this.elementRef.nativeElement,"data-transfer-id",this.componentGeneratedId),void this.transferState.set(this.componentGeneratedId,_);const R=this.transferState.get(this.componentGeneratedId,null);R&&R!==_&&this.transferState.set(this.componentGeneratedId,_)}handleClientSideClasses(_){if(this.elementRef.nativeElement.hasAttribute("data-transfer-id")){this.componentGeneratedId=(0,o.zw6)(this.elementRef.nativeElement.getAttribute("data-transfer-id"));const R=this.transferState.get(this.componentGeneratedId,null);R&&R!==_&&this.removeExtraClasses(R,_),this.renderer.removeAttribute(this.elementRef.nativeElement,"data-transfer-id")}}removeExtraClasses(_,R){const w=_.split(" ").filter(Boolean),B=R.split(" ").filter(Boolean),z=w.filter(oe=>!B.includes(oe));z.length>0&&z.forEach(oe=>{this.renderer.removeClass(this.elementRef.nativeElement,oe)})}}return(De=Ce).\u0275fac=function(_){return new(_||De)},De.\u0275dir=o.FsC({type:De,hostVars:9,hostBindings:function(_,R){2&_&&(o.BMQ("id",R.elementId)("context-id",R.regularContextId)("data-pxp-context-id",R.prefixedContextId)("template",R.regularTemplate)("data-pxp-template",R.prefixedTemplate),o.HbH(R.getElementClass()),o.AVh("ghost",R.ghost))},inputs:{parentBaseConfig:[1,"parentBaseConfig"],parentBaseContext:[1,"parentBaseContext"]},outputs:{delete:"delete",processing:"processing"},standalone:!1,features:[o.OA$]}),Ce})()},395:(le,E,d)=>{"use strict";d.d(E,{Q:()=>ge});var p=d(467),u=d(9379),o=d(3953),v=d(8179),O=d(8004),x=d(1210);const U={tap:null,attributes:{}};var Q=d(8251),re=d(9118),be=d(6697),ue=d(5820),X=d(177),ne=d(8909),te=d(7240),$=d(6962);const J=["button"],se=(ve,Fe)=>[ve,Fe];function De(ve,Fe){if(1&ve){const We=o.RV6();o.j41(0,"a",4,1),o.bIt("click",function(bt){o.eBV(We);const Ke=o.XpG();return o.Njj(Ke.onTap(bt))}),o.eu8(2,5),o.k0s()}if(2&ve){const We=o.XpG(),ze=o.sdS(3);o.Y8G("ngClass",o.l_i(3,se,(null==We.config?null:We.config.buttonClass)||"",We.message?"has-text":"").join(" "))("href",We.anchorPath||"/",o.B4B),o.R7$(2),o.Y8G("ngTemplateOutlet",ze)}}function Ce(ve,Fe){if(1&ve){const We=o.RV6();o.j41(0,"button",6,1),o.bIt("click",function(bt){o.eBV(We);const Ke=o.XpG();return o.Njj(Ke.onTap(bt))}),o.eu8(2,5),o.k0s()}if(2&ve){const We=o.XpG(),ze=o.sdS(3);o.Y8G("ngClass",o.l_i(2,se,(null==We.config?null:We.config.buttonClass)||"",We.message?"has-text":"").join(" ")),o.R7$(2),o.Y8G("ngTemplateOutlet",ze)}}function ce(ve,Fe){1&ve&&o.nrm(0,"div",8)}function _(ve,Fe){1&ve&&o.nrm(0,"storefront-spinner",9)}function R(ve,Fe){if(1&ve&&o.DNE(0,ce,1,0,"div",8)(1,_,1,0,"storefront-spinner",9),2&ve){const We=o.XpG(2);o.vxM(We.domHelper.leanDom?0:1)}}function w(ve,Fe){if(1&ve&&(o.j41(0,"a",10),o.nrm(1,"img",12),o.k0s()),2&ve){const We=o.XpG(3);o.Y8G("href",We.anchorPath||"/",o.B4B)("ngClass",We.iconLeft.cssClasses),o.R7$(),o.Y8G("src",We.iconLeft.url,o.B4B)}}function B(ve,Fe){if(1&ve&&(o.j41(0,"div",11),o.nrm(1,"img",12),o.k0s()),2&ve){const We=o.XpG(3);o.Y8G("ngClass",We.iconLeft.cssClasses),o.R7$(),o.Y8G("src",We.iconLeft.url,o.B4B)}}function z(ve,Fe){if(1&ve&&o.DNE(0,w,2,3,"a",10)(1,B,2,2,"div",11),2&ve){const We=o.XpG(2);o.vxM(We.anchorFeatureEnabled&&!We.domHelper.leanDom?0:1)}}function oe(ve,Fe){if(1&ve&&(o.j41(0,"a",13),o.nrm(1,"img",12),o.k0s()),2&ve){const We=o.XpG(3);o.Y8G("href",We.anchorPath||"/",o.B4B)("ngClass",We.iconRight.cssClasse
1s),o.R7$(),o.Y8G("src",We.iconRight.url,o.B4B)}}function V(ve,Fe){if(1&ve&&(o.j41(0,"div",14),o.nrm(1,"img",12),o.k0s()),2&ve){const We=o.XpG(3);o.Y8G("ngClass",We.iconRight.cssClasses),o.R7$(),o.Y8G("src",We.iconRight.url,o.B4B)}}function k(ve,Fe){if(1&ve&&o.DNE(0,oe,2,3,"a",13)(1,V,2,2,"div",14),2&ve){const We=o.XpG(2);o.vxM(We.anchorFeatureEnabled&&!We.domHelper.leanDom?0:1)}}function K(ve,Fe){if(1&ve&&(o.DNE(0,R,2,1)(1,z,2,1),o.nrm(2,"span",7),o.DNE(3,k,2,1)),2&ve){const We=o.XpG();o.vxM(We.processingAction?0:-1),o.R7$(),o.vxM(We.iconLeft?1:-1),o.R7$(),o.Y8G("storefrontTranslate",We.message)("storefrontTranslateArgs",We.variables),o.R7$(),o.vxM(We.iconRight?3:-1)}}let ge=(()=>{var ve;class Fe extends x.${constructor(){super(),this.eventActionService=(0,o.WQX)(O.G),this.kioskConfigService=(0,o.WQX)(re.x),this.anchorService=(0,o.WQX)(ue.X),this.changeDetectorRef=(0,o.WQX)(o.gRc),this.defaultConfig=(0,u.A)({},U),this.processingAction=!1,this.disableAnchor=(0,o.hFB)(void 0),this.anchorFeatureEnabled=!1,this.anchorPath=null,this.shouldDisplayAnchorTag=!1,this.onButtonTap=(0,o.CGW)(),this.variables=[],this.kioskConfigService.getConfig().pipe((0,be.s)(1)).subscribe(ze=>this.kioskConfigData=ze)}get hasText(){return!!this.message}get hasIconLeft(){return!!this.iconLeft}get hasIconRight(){return!!this.iconRight}ngOnInit(){var ze=()=>super.ngOnInit,bt=this;return(0,p.A)(function*(){bt.anchorFeatureEnabled=bt.anchorService.isAnchorFeatureEnabled()&&!bt.disableAnchor(),ze().call(bt)})()}onConfigChanges(){super.onConfigChanges();const ze=(0,v.uQ)(this.config,this.context,this.contextService.$functions,this.globalService.getGlobalData());this.shouldDisplayAnchorTag=this.domHelper.leanDom&&this.anchorFeatureEnabled&&(0,O.H)(ze.tap),this.button&&this.button.nativeElement&&Object.keys(ze.attributes).forEach(Me=>{(0,v.Ol)(ze.attributes[Me])?this.button.nativeElement.setAttribute(Me,(0,v.v3)(ze.attributes[Me])):this.button.nativeElement.removeAttribute(Me)}),this.anchorFeatureEnabled&&(this.anchorPath=this.anchorService.getAnchorPathForEventAction(this.config.tap,this.context)),this.variables=this.config.variables||[],this.message=this.config.message;const bt=(0,v.v3)(this.config.iconLeft);Array.isArray(null==bt?void 0:bt.cssClasses)&&(bt.cssClasses=bt.cssClasses.map(Me=>(0,v.v3)(Me))),this.iconLeft=bt;const Ke=(0,v.v3)(this.config.iconRight);Array.isArray(null==Ke?void 0:Ke.cssClasses)&&(Ke.cssClasses=Ke.cssClasses.map(Me=>(0,v.v3)(Me))),this.iconRight=Ke,this.changeDetectorRef.markForCheck()}onTap(ze){var bt=this;return(0,p.A)(function*(){if(bt.processingAction=!0,bt.changeDetectorRef.detectChanges(),bt.onButtonTap.emit(ze),!ze.defaultPrevented&&bt.config.tap){bt.anchorFeatureEnabled&&(ze.preventDefault(),ze.stopPropagation());const Ke=(0,v.v3)(bt.config.tap);yield bt.eventActionService.processEventAction(Ke,bt)}bt.processingAction=!1,bt.changeDetectorRef.detectChanges()})()}getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),"params"]}}return(ve=Fe).type="button",ve.\u0275fac=function(ze){return new(ze||ve)},ve.\u0275cmp=o.VBU({type:ve,selectors:[["storefront-button"]],viewQuery:function(ze,bt){if(1&ze&&o.GBs(J,5),2&ze){let Ke;o.mGM(Ke=o.lsd())&&(bt.button=Ke.first)}},hostVars:6,hostBindings:function(ze,bt){2&ze&&o.AVh("has-text",bt.hasText)("has-icon-left",bt.hasIconLeft)("has-icon-right",bt.hasIconRight)},inputs:{disableAnchor:[1,"disableAnchor"]},outputs:{onButtonTap:"onButtonTap"},standalone:!1,features:[o.Jv_([Q.B]),o.Vt3],decls:4,vars:1,consts:[["buttonTemplate",""],["button",""],[3,"ngClass","href"],[3,"ngClass"],[3,"click","ngClass","href"],[3,"ngTemplateOutlet"],[3,"click","ngClass"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[1,"button-icon","button-icon-left",3,"href","ngClass"],[1,"button-icon","button-icon-left",3,"ngClass"],[3,"src"],[1,"button-icon","button-icon-right",3,"href","ngClass"],[1,"button-icon","button-icon-right",3,"ngClass"]],template:function(ze,bt){1&ze&&o.DNE(0,De,3,6,"a",2)(1,Ce,3,5,"button",3)(2,K,4,5,"ng-template",null,0,o.C5r),2&ze&&o.vxM(bt.shouldDisplayAnchorTag?0:1)},dependencies:[X.YU,X.T3,ne.M,te.t,$.n],styles:["storefront-button button,.pxp-button button{display:flex;align-items:center}storefront-button button a,.pxp-button button a{width:100%;display:flex;justify-content:center;align-items:center}storefront-button button a span,.pxp-button button a span{width:100%;display:flex;justify-content:center;align-items:center}storefront-button.has-icon-left button,storefront-button.has-icon-right button,.pxp-button.has-icon-left button,.pxp-button.has-icon-right button{gap:var(--menuItemIconGap)}storefront-button .button-icon,.pxp-button .button-icon{display:flex;align-items:center}storefront-button .button-icon>img,.pxp-button .button-icon>img{height:var(--menuItemIconHeight);object-fit:contain}\n"],encapsulation:2,changeDetection:0}),Fe})()},4336:(le,E,d)=>{"use strict";d.d(E,{U:()=>R});var p=d(395),u=d(8251),o=d(3953),v=d(177),O=d(8909),x=d(7240),U=d(6962);const Q=["class","pxp-button"],re=(w,B)=>[w,B];function be(w,B){if(1&w){const z=o.RV6();o.j41(0,"a",4,1),o.bIt("click",function(V){o.eBV(z);const k=o.XpG();return o.Njj(k.onTap(V))}),o.eu8(2,5),o.k0s()}if(2&w){const z=o.XpG(),oe=o.sdS(3);o.Y8G("ngClass",o.l_i(3,re,(null==z.config?null:z.config.buttonClass)||"",z.message?"has-text":"").join(" "))("href",z.anchorPath||"/",o.B4B),o.R7$(2),o.Y8G("ngTemplateOutlet",oe)}}function ue(w,B){if(1&w){const z=o.RV6();o.j41(0,"button",6,1),o.bIt("click",function(V){o.eBV(z);const k=o.XpG();return o.Njj(k.onTap(V))}),o.eu8(2,5),o.k0s()}if(2&w){const z=o.XpG(),oe=o.sdS(3);o.Y8G("ngClass",o.l_i(2,re,(null==z.config?null:z.config.buttonClass)||"",z.message?"has-text":"").join(" ")),o.R7$(2),o.Y8G("ngTemplateOutlet",oe)}}function X(w,B){1&w&&o.nrm(0,"div",8)}function ne(w,B){1&w&&o.nrm(0,"storefront-spinner",9)}function te(w,B){if(1&w&&o.DNE(0,X,1,0,"div",8)(1,ne,1,0,"storefront-spinner",9),2&w){const z=o.XpG(2);o.vxM(z.domHelper.leanDom?0:1)}}function $(w,B){if(1&w&&(o.j41(0,"a",10),o.nrm(1,"img",12),o.k0s()),2&w){const z=o.XpG(3);o.Y8G("href",z.anchorPath||"/",o.B4B)("ngClass",z.iconLeft.cssClasse
1s),o.R7$(),o.Y8G("src",z.iconLeft.url,o.B4B)}}function J(w,B){if(1&w&&(o.j41(0,"div",11),o.nrm(1,"img",12),o.k0s()),2&w){const z=o.XpG(3);o.Y8G("ngClass",z.iconLeft.cssClasses),o.R7$(),o.Y8G("src",z.iconLeft.url,o.B4B)}}function se(w,B){if(1&w&&o.DNE(0,$,2,3,"a",10)(1,J,2,2,"div",11),2&w){const z=o.XpG(2);o.vxM(z.anchorFeatureEnabled&&!z.domHelper.leanDom?0:1)}}function De(w,B){if(1&w&&(o.j41(0,"a",13),o.nrm(1,"img",12),o.k0s()),2&w){const z=o.XpG(3);o.Y8G("href",z.anchorPath||"/",o.B4B)("ngClass",z.iconRight.cssClasses),o.R7$(),o.Y8G("src",z.iconRight.url,o.B4B)}}function Ce(w,B){if(1&w&&(o.j41(0,"div",14),o.nrm(1,"img",12),o.k0s()),2&w){const z=o.XpG(3);o.Y8G("ngClass",z.iconRight.cssClasses),o.R7$(),o.Y8G("src",z.iconRight.url,o.B4B)}}function ce(w,B){if(1&w&&o.DNE(0,De,2,3,"a",13)(1,Ce,2,2,"div",14),2&w){const z=o.XpG(2);o.vxM(z.anchorFeatureEnabled&&!z.domHelper.leanDom?0:1)}}function _(w,B){if(1&w&&(o.DNE(0,te,2,1)(1,se,2,1),o.nrm(2,"span",7),o.DNE(3,ce,2,1)),2&w){const z=o.XpG();o.vxM(z.processingAction?0:-1),o.R7$(),o.vxM(z.iconLeft?1:-1),o.R7$(),o.Y8G("storefrontTranslate",z.message)("storefrontTranslateArgs",z.variables),o.R7$(),o.vxM(z.iconRight?3:-1)}}let R=(()=>{var w;class B extends p.Q{}return(w=B).\u0275fac=(()=>{let z;return function(V){return(z||(z=o.xGo(w)))(V||w)}})(),w.\u0275cmp=o.VBU({type:w,selectors:[["div",8,"pxp-button"]],standalone:!1,features:[o.Jv_([u.B]),o.Vt3],attrs:Q,decls:4,vars:1,consts:[["buttonTemplate",""],["button",""],[3,"ngClass","href"],[3,"ngClass"],[3,"click","ngClass","href"],[3,"ngTemplateOutlet"],[3,"click","ngClass"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"pxp-spinner","button-spinner"],[1,"button-spinner"],[1,"button-icon","button-icon-left",3,"href","ngClass"],[1,"button-icon","button-icon-left",3,"ngClass"],[3,"src"],[1,"button-icon","button-icon-right",3,"href","ngClass"],[1,"button-icon","button-icon-right",3,"ngClass"]],template:function(oe,V){1&oe&&o.DNE(0,be,3,6,"a",2)(1,ue,3,5,"button",3)(2,_,4,5,"ng-template",null,0,o.C5r),2&oe&&o.vxM(V.shouldDisplayAnchorTag?0:1)},dependencies:[v.YU,v.T3,O.M,x.t,U.n],styles:[".pxp-button{display:flex}.pxp-button button,.pxp-button a{display:flex;align-items:center}.pxp-button button span,.pxp-button a span{width:100%;display:flex;justify-content:center;align-items:center}.pxp-button.has-icon-left button,.pxp-button.has-icon-right button{gap:var(--menuItemIconGap)}.pxp-button .button-icon{display:flex;align-items:center}.pxp-button .button-icon>img{height:var(--menuItemIconHeight);object-fit:contain}\n"],encapsulation:2,changeDetection:0}),B})()},9805:(le,E,d)=>{"use strict";d.r(E),d.d(E,{ButtonModule:()=>U,component:()=>Q});var p=d(177),u=d(395),o=d(3),v=d(6215),O=d(4336),x=d(3953);let U=(()=>{var re;class be{}return(re=be).\u0275fac=function(X){return new(X||re)},re.\u0275mod=x.$C({type:re}),re.\u0275inj=x.G2t({imports:[p.MD,o.pZ,v.O]}),be})();const Q={component:u.Q,leanDomComponent:O.U}},3600:(le,E,d)=>{"use strict";d.d(E,{H:()=>p,a:()=>u});const p={allowManualTagConfig:!0},u="storefront-usertag-overwrite"},3648:(le,E,d)=>{"use strict";d.d(E,{_:()=>z});var p=d(467),u=d(9379),o=d(177),v=d(3953),O=d(362),x=d.n(O),U=d(8251),Q=d(3178),re=d(2962),be=d(8890),ue=d(5964),X=d(1594),ne=d(24),te=d(8179),$=d(9516),J=d(8474),se=d(1652),De=d(7879),Ce=d(4748),ce=d(5927),_=d(3749),R=d(7240);const w=["viewTemplate"];function B(oe,V){if(1&oe&&v.nrm(0,"storefront-spinner"),2&oe){const k=v.XpG();v.Aen(k.getSpinnerStyle())}}let z=(()=>{var oe;class V{get type(){var K;return null===(K=this.baseConfig())||void 0===K?void 0:K.type}get childId(){return this.childIdComputed}getElementRef(){return this.elementRef}constructor(){this.elementRef=(0,v.WQX)(v.aKT),this.changeDetectorRef=(0,v.WQX)(v.gRc),this.inspectorService=(0,v.WQX)(ne.j),this.subscriptions=(0,v.WQX)(U.v),this.contextService=(0,v.WQX)($.V),this.injector=(0,v.WQX)(v.zZn),this.compiler=(0,v.WQX)(v.Ql9),this.globalService=(0,v.WQX)(se.d),this.dataShareService=(0,v.WQX)(J.j,{optional:!0}),this.platformId=(0,v.WQX)(v.Agw),this.purpleEnv=(0,v.WQX)(De.r6),this.ssrService=(0,v.WQX)(Ce.i),this.domHelper=(0,v.WQX)(ce.S),this.parentBaseConfig=(0,v.hFB
1)(),this.baseConfig=(0,v.uuI)(()=>this.parentBaseConfig()),this.parentBaseContext=(0,v.hFB)({}),this.baseContext=(0,v.uuI)(()=>this.parentBaseContext()),this.dataType=(0,v.hFB)(),this.elementDataType=(0,v.uuI)(()=>this.dataType()),this.selected=(0,v.hFB)(void 0),this.delete=(0,v.CGW)(),this.processing=(0,v.hFB)(),this.elementProcessing=(0,v.uuI)(()=>this.processing()),this.lazy=(0,v.hFB)(!1),this.elementLazy=(0,v.uuI)(()=>this.lazy()),this.controlsSticky=(0,v.hFB)(!1),this.inViewport=(0,v.CGW)(),this.initialized=!1,(0,v.QZP)(()=>{const K=this.baseContext(),ge=this.baseConfig();if(!this.component)return;this.component.onStateChange();const ve=!x()(this.component.baseContext(),K),Fe=!x()(this.component.baseConfig(),ge);if(ve||Fe){this.component.baseContext.set((0,u.A)({},K)),this.component.baseConfig.set((0,u.A)({},ge));const We={};ve?We.baseContext=(0,u.A)({},K):We.baseConfig=(0,u.A)({},ge),this.component.onStateChange(We)}})}ngOnInit(){const K=(0,u.A)((0,u.A)({},this.contextService.getContext()),this.baseContext());if(this.purpleEnv.isUniversal&&!(0,te.ru)(this.baseConfig(),K,this.contextService.$functions,this.globalService.getGlobalData(),!1))return;const ge=(0,o.Vy)(this.platformId);this.skipRender=this.baseConfig().skipSSR&&ge,this.skipRender||(this.childIdComputed=this.baseConfig().id?(0,te.uQ)(this.baseConfig().id,this.baseContext(),this.contextService.$functions,this.globalService.getGlobalData()):void 0,this.inspectorService.registerComponent(this.elementRef.nativeElement,this),(!(null==this.baseConfig().isLazy?this.elementLazy():this.baseConfig().isLazy)||ge)&&this.initialize())}initialize(){var K=this;return(0,p.A)(function*(){K.initialized||(K.initialized=!0,K.viewTemplate.clear(),yield K.resolveComponentClasses(),K.controlsSticky()&&((0,o.Vy)(K.platformId)||new IntersectionObserver(([ve])=>K.inViewport.emit(ve.isIntersecting),{rootMargin:"-10% 0px"}).observe(K.elementRef.nativeElement)),yield K.renderComponent(),K.changeDetectorRef.detectChanges())})()}resolveComponentClasses(){var K=this;return(0,p.A)(function*(){const ge=yield Promise.all([d.e(2076),d.e(9674)]).then(d.bind(d,9674)),ve=yield K.compiler.compileModuleAndAllComponentsAsync(ge.ComponentModule);K.componentModule=ve.ngModuleFactory.create(K.injector).instance})()}renderComponent(){var K=this;return(0,p.A)(function*(){var ge;const ve=yield K.componentModule.getModule(K.baseConfig().type),Fe=null!==(ge=K.baseConfig().tag)&&void 0!==ge?ge:"div",We=(0,_.uk)(ve.component,K.domHelper.leanDom,Fe,K.baseConfig().type);if(We){const ze=K.viewTemplate.createComponent(We);if("presenter"!==K.baseConfig().type){let bt=null;K.dataShareService&&K.dataShareService.embeddedParams&&(bt=(0,u.A)({},K.dataShareService.embeddedParams)),ze.instance.baseConfig.set((0,u.A)({},K.baseConfig())),ze.instance.baseContext.set((0,u.A)((0,u.A)({},K.baseContext()),{},{embeddedParams:bt})),ze.instance.delete.subscribe(Ke=>K.delete.emit(Ke)),ze.instance.processing.subscribe(Ke=>K.elementProcessing.set(Ke))}K.component=ze.instance}else console.error('unregistered component "'.concat(K.baseConfig().type,'" rendered. Did you forget to register in component-module.ts?'))})()}lazyLoad(K=!1){var ge=this;return(0,p.A)(function*(){if(ge.skipRender)return;if(ge.lazyloadPromise)return ge.lazyloadPromise;let ve;if(ge.lazyloadPromise=new Promise(We=>ve=We),ge.initialized)ve();else if(K||!ge.ssrService.currentPrebootStatus||(0,re.cH)(ge.elementRef.nativeElement)){var Fe;yield ge.initialize(),null===(Fe=ge.getChildComponent())||void 0===Fe||Fe.inited.pipe((0,ue.p)(We=>!!We),(0,X.$)()).subscribe(ve)}else ge.subscriptions.subscribe((0,be.eh)(ge,ge.elementRef,{rootMargin:"50px",skipWait:!1}),(0,p.A)(function*(){var We;yield ge.initialize(),null===(We=ge.getChildComponent())||void 0===We||We.inited.pipe((0,ue.p)(ze=>!!ze),(0,X.$)()).subscribe(ve)}),Q.lQ,Q.lQ,"visible");return ge.lazyloadPromise.then(()=>ge.changeDetectorRef.markForCheck())})()}unloadIfInvisible(){this.initialized&&!(0,re.cH)(this.elementRef.nativeElement,100)&&this.unload()}unload(){this.viewTemplate.clear(),this.initialized=!1,this.lazyLoad()}getChildComponent(){return this.component}getDataId(){var K;return null===(K=this.baseContext())||void 0===K||null===(K=K[this.elementDataType()])||void 0===K?void 0:K.id}scrollIntoView(K={behavior:"smooth",block:"start",inline:"start",axis:null,padding:!0}){(0,o.UE)(this.platformId)&&this.elementRef.nativeElement.scrollIntoView(K)}getSpinnerStyle(){return{width:this.elementRef.nativeElement.offsetWidth+"px",height:this.elementRef.nativeElement.offsetHeight+"px"}}clear(){this.lazyloadPromise=null,this.component&&this.component.ngOnDestroy(),this.viewTemplate.clear(),this.initialized=!1}ngOnDestroy(){this.skipRender||this.inspectorService.unregisterComponent(this.elementRef.nativeElement)}}return(oe=V).\u0275fac=function(K){return new(K||oe)},oe.\u0275cmp=v.VBU({type:oe,selectors:[["storefront-element"]],viewQuery:function(K,ge){if(1&K&&v.GBs(w,7,v.c1b),2&K){let ve;v.mGM(ve=v.lsd())&&(ge.viewTemplate=ve.first)}},hostVars:2,hostBindings:function(K,ge){2&K&&v.BMQ("type",ge.type)("child-id",ge.childId
1)},inputs:{parentBaseConfig:[1,"parentBaseConfig"],parentBaseContext:[1,"parentBaseContext"],dataType:[1,"dataType"],selected:[1,"selected"],processing:[1,"processing"],lazy:[1,"lazy"],controlsSticky:[1,"controlsSticky"]},outputs:{delete:"delete",inViewport:"inViewport"},standalone:!1,features:[v.Jv_([U.v])],decls:3,vars:1,consts:[["viewTemplate",""],[3,"style"]],template:function(K,ge){1&K&&(v.eu8(0,null,0),v.DNE(2,B,1,2,"storefront-spinner",1)),2&K&&(v.R7$(2),v.vxM(ge.elementProcessing()?2:-1))},dependencies:[R.t],styles:["storefront-element{max-width:100%;display:block}storefront-element>storefront-spinner{position:absolute;top:0;padding:calc(2 * var(--gutter));background-color:#0000001a;z-index:1;width:100%;height:100%}\n"],encapsulation:2,changeDetection:0}),V})()},6895:(le,E,d)=>{"use strict";d.r(E),d.d(E,{ElementModule:()=>O,component:()=>x});var p=d(177),u=d(3648),o=d(6215),v=d(3953);let O=(()=>{var U;class Q{}return(U=Q).\u0275fac=function(be){return new(be||U)},U.\u0275mod=v.$C({type:U}),U.\u0275inj=v.G2t({imports:[p.MD,o.O]}),Q})();const x=u._},2853:(le,E,d)=>{"use strict";d.d(E,{F9:()=>o,ge:()=>u,oH:()=>p});var p=function(v){return v.STATIC="STATIC",v.SLIDE_IN_LEFT="SLIDE_IN_LEFT",v.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",v}(p||{});const u={dataSource:{type:"menu"},template:p.SLIDE_IN_RIGHT,animationDuration:300,actions:[]};var o=function(v){return v.close="close",v}(o||{})},7240:(le,E,d)=>{"use strict";d.d(E,{t:()=>v});var p=d(3953),u=d(9056),o=d(5927);let v=(()=>{var O;class x{constructor(){this.elementRef=(0,p.WQX)(p.aKT),this.domHelper=(0,p.WQX)(o.S),this.spinners=u.A,this.type=(0,p.hFB)("tail")}get regularType(){return this.domHelper.regularSelector(this.type())}get prefixedType(){return this.domHelper.prefixedSelector(this.type())}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.spinners[this.type()]&&this.spinners[this.type()].replace(/\$id/g,"id-"+Date.now())}}return(O=x).\u0275fac=function(Q){return new(Q||O)},O.\u0275cmp=p.VBU({type:O,selectors:[["storefront-spinner"]],hostVars:2,hostBindings:function(Q,re){2&Q&&p.BMQ("type",re.regularType)("data-pxp-type",re.prefixedType)},inputs:{type:[1,"type"]},standalone:!1,decls:2,vars:0,consts:[[1,"loader"]],template:function(Q,re){1&Q&&(p.j41(0,"div",0),p.EFF(1,"Loading..."),p.k0s())},styles:[".storefront-spinner.button-spinner,storefront-spinner.button-spinner,.pxp-spinner.button-spinner{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;background-color:#0003;padding:8px;margin:0}.storefront-spinner[type=tail] stop,storefront-spinner[type=tail] stop,.pxp-spinner[type=tail] stop{stop-color:var(--spinnerColor)}.storefront-spinner[type=tail] circle,storefront-spinner[type=tail] circle,.pxp-spinner[type=tail] circle{fill:var(--spinnerColor)}.storefront-spinner[type=dots] circle,storefront-spinner[type=dots] circle,.pxp-spinner[type=dots] circle{fill:var(--spinnerColor)}.storefront-spinner[type=oval] svg,storefront-spinner[type=oval] svg,.pxp-spinner[type=oval] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=puff] svg,storefront-spinner[type=puff] svg,.pxp-spinner[type=puff] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=rings] svg,storefront-spinner[type=rings] svg,.pxp-spinner[type=rings] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g,storefront-spinner[type=spinningCircles] g,.pxp-spinner[type=spinningCircles] g{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g circle,storefront-spinner[type=spinningCircles] g circle,.pxp-spinner[type=spinningCircles] g circle{fill:var(--spinnerColor)}.storefront-spinner[type=segments] g,storefront-spinner[type=segments] g,.pxp-spinner[type=segments] g{stroke:var(--spinnerColor)}\n"],encapsulation:2}),x})()},6962:(le,E,d)=>{"use strict";d.d(E,{n:()=>v});var p=d(7240),u=d(3953);const o=["class","pxp-spinner"];let v=(()=>{var O;class x extends p.t{}return(O=x).\u0275fac=(()=>{let U;return function(re){return(U||(U=u.xGo(O)))(re||O)}})(),O.\u0275cmp=u.VBU({type:O,selectors:[["div",8,"pxp-spinner"]],standalone:!1,features:[u.Vt3],attrs:o,decls:2,vars:0,consts:[[1,"loader"]],template:function(Q,re){1&Q&&(u.j41(0,"div",0),u.EFF(1,"Loading..."),u.k0s())},styles:[".storefront-spinner.button-spinner,storefront-spinner.button-spinner,.pxp-spinner.button-spinner{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;background-color:#0003;padding:8px;margin:0}.storefront-spinner[type=tail] stop,storefront-spinner[type=tail] stop,.pxp-spinner[type=tail] stop{stop-color:var(--spinnerColor)}.storefront-spinner[type=tail] circle,storefront-spinner[type=tail] circle,.pxp-spinner[type=tail] circle{fill:var
1(--spinnerColor)}.storefront-spinner[type=dots] circle,storefront-spinner[type=dots] circle,.pxp-spinner[type=dots] circle{fill:var(--spinnerColor)}.storefront-spinner[type=oval] svg,storefront-spinner[type=oval] svg,.pxp-spinner[type=oval] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=puff] svg,storefront-spinner[type=puff] svg,.pxp-spinner[type=puff] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=rings] svg,storefront-spinner[type=rings] svg,.pxp-spinner[type=rings] svg{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g,storefront-spinner[type=spinningCircles] g,.pxp-spinner[type=spinningCircles] g{stroke:var(--spinnerColor)}.storefront-spinner[type=spinningCircles] g circle,storefront-spinner[type=spinningCircles] g circle,.pxp-spinner[type=spinningCircles] g circle{fill:var(--spinnerColor)}.storefront-spinner[type=segments] g,storefront-spinner[type=segments] g,.pxp-spinner[type=segments] g{stroke:var(--spinnerColor)}\n"],encapsulation:2}),x})()},6215:(le,E,d)=>{"use strict";d.d(E,{O:()=>o});var p=d(177),u=d(3953);let o=(()=>{var v;class O{}return(v=O).\u0275fac=function(U){return new(U||v)},v.\u0275mod=u.$C({type:v}),v.\u0275inj=u.G2t({imports:[p.MD]}),O})()},9056:(le,E,d)=>{"use strict";d.d(E,{A:()=>Q});const Q={oval:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n    <g fill="none" fill-rule="evenodd">\n        <g transform="translate(1 1)" stroke-width="2">\n            <circle stroke-opacity=".5" cx="18" cy="18" r="18"/>\n            <path d="M36 18c0-9.94-8.06-18-18-18">\n                <animateTransform\n                    attributeName="transform"\n                    type="rotate"\n                    from="0 18 18"\n                    to="360 18 18"\n                    dur="1s"\n                    repeatCount="indefinite"/>\n            </path>\n        </g>\n    </g>\n</svg>\n',puff:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n    <g fill="none" fill-rule="evenodd" stroke-width="2">\n        <circle cx="22" cy="22" r="1">\n            <animate attributeName="r"\n                begin="0s" dur="1.8s"\n                values="1; 20"\n                calcMode="spline"\n                keyTimes="0; 1"\n                keySplines="0.165, 0.84, 0.44, 1"\n                repeatCount="indefinite" />\n            <animate attributeName="stroke-opacity"\n                begin="0s" dur="1.8s"\n                values="1; 0"\n                calcMode="spline"\n                keyTimes="0; 1"\n                keySplines="0.3, 0.61, 0.355, 1"\n                repeatCount="indefinite" />\n        </circle>\n        <circle cx="22" cy="22" r="1">\n            <animate attributeName="r"\n                begin="-0.9s" dur="1.8s"\n                values="1; 20"\n                calcMode="spline"\n                keyTimes="0; 1"\n                keySplines="0.165, 0.84, 0.44, 1"\n                repeatCount="indefinite" />\n            <animate attributeName="stroke-opacity"\n                begin="-0.9s" dur="1.8s"\n                values="1; 0"\n                calcMode="spline"\n                keyTimes="0; 1"\n                keySplines="0.3, 0.61, 0.355, 1"\n                repeatCount="indefinite" />\n        </circle>\n    </g>\n</svg>\n',rings:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 45 45" xmlns="http://www.w3.org/2000/svg" stroke="#fff">\n    <g fill="none" fill-rule="evenodd" transform="translate(1 1)" stroke-width="2">\n        <circle cx="22" cy="22" r="6" stroke-opacity="0">\n            <animate attributeName="r"\n                 begin="1.5s" dur="3s"\n                 values="6;22"\n                 calcMode="linear"\n                 repeatCount="indefinite" />\n            <animate attributeName="stroke-opacity"\n                 begin="1.5s" dur="3s"\n                 values="1;
10" calcMode="linear"\n                 repeatCount="indefinite" />\n            <animate attributeName="stroke-width"\n                 begin="1.5s" dur="3s"\n                 values="2;0" calcMode="linear"\n                 repeatCount="indefinite" />\n        </circle>\n        <circle cx="22" cy="22" r="6" stroke-opacity="0">\n            <animate attributeName="r"\n                 begin="3s" dur="3s"\n                 values="6;22"\n                 calcMode="linear"\n                 repeatCount="indefinite" />\n            <animate attributeName="stroke-opacity"\n                 begin="3s" dur="3s"\n                 values="1;0" calcMode="linear"\n                 repeatCount="indefinite" />\n            <animate attributeName="stroke-width"\n                 begin="3s" dur="3s"\n                 values="2;0" calcMode="linear"\n                 repeatCount="indefinite" />\n        </circle>\n        <circle cx="22" cy="22" r="8">\n            <animate attributeName="r"\n                 begin="0s" dur="1.5s"\n                 values="6;1;2;3;4;5;6"\n                 calcMode="linear"\n                 repeatCount="indefinite" />\n        </circle>\n    </g>\n</svg>\n',spinningCircles:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 58 58" xmlns="http://www.w3.org/2000/svg">\n    <g fill="none" fill-rule="evenodd">\n        <g transform="translate(2 1)" stroke="#FFF" stroke-width="1.5">\n            <circle cx="42.601" cy="11.462" r="5" fill-opacity="1" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="1;0;0;0;0;0;0;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="49.063" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;1;0;0;0;0;0;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="42.601" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;0;1;0;0;0;0;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="27" cy="49.125" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;0;0;1;0;0;0;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="11.399" cy="42.663" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;0;0;0;1;0;0;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="4.938" cy="27.063" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;0;0;0;0;1;0;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="11.399" cy="11.462" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;0;0;0;0;0;1;0" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n            <circle cx="27" cy="5" r="5" fill-opacity="0" fill="#fff">\n                <animate attributeName="fill-opacity"\n                     begin="0s" dur="1.3s"\n                     values="0;0;0;0;0;0;0;1" calcMode="linear"\n                     repeatCount="indefinite" />\n            </circle>\n        </g>\n    </g>\n</svg>\n',tail:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewB
1ox="0 0 38 38" xmlns="http://www.w3.org/2000/svg">\n  <defs>\n    <linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="$id">\n      <stop stop-color="#fff" stop-opacity="0" offset="0%"/>\n      <stop stop-color="#fff" stop-opacity=".631" offset="63.146%"/>\n      <stop stop-color="#fff" offset="100%"/>\n    </linearGradient>\n  </defs>\n  <g fill="none" fill-rule="evenodd">\n    <g transform="translate(1 1)">\n      <path d="M36 18c0-9.94-8.06-18-18-18" id="Oval-2" stroke="url(#$id)" stroke-width="2">\n        <animateTransform\n          attributeName="transform"\n          type="rotate"\n          from="0 18 18"\n          to="360 18 18"\n          dur="0.9s"\n          repeatCount="indefinite"/>\n      </path>\n      <circle fill="#fff" cx="36" cy="18" r="1">\n        <animateTransform\n          attributeName="transform"\n          type="rotate"\n          from="0 18 18"\n          to="360 18 18"\n          dur="0.9s"\n          repeatCount="indefinite"/>\n      </circle>\n    </g>\n  </g>\n</svg>\n',dots:'\x3c!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL --\x3e\n<svg width="100%" height="100%" viewBox="0 0 120 30" xmlns="http://www.w3.org/2000/svg" fill="#fff">\n    <circle cx="15" cy="15" r="15">\n        <animate attributeName="r" from="15" to="15"\n                 begin="0s" dur="0.8s"\n                 values="15;9;15" calcMode="linear"\n                 repeatCount="indefinite" />\n        <animate attributeName="fill-opacity" from="1" to="1"\n                 begin="0s" dur="0.8s"\n                 values="1;.5;1" calcMode="linear"\n                 repeatCount="indefinite" />\n    </circle>\n    <circle cx="60" cy="15" r="9" fill-opacity="0.3">\n        <animate attributeName="r" from="9" to="9"\n                 begin="0s" dur="0.8s"\n                 values="9;15;9" calcMode="linear"\n                 repeatCount="indefinite" />\n        <animate attributeName="fill-opacity" from="0.5" to="0.5"\n                 begin="0s" dur="0.8s"\n                 values=".5;1;.5" calcMode="linear"\n                 repeatCount="indefinite" />\n    </circle>\n    <circle cx="105" cy="15" r="15">\n        <animate attributeName="r" from="15" to="15"\n                 begin="0s" dur="0.8s"\n                 values="15;9;15" calcMode="linear"\n                 repeatCount="indefinite" />\n        <animate attributeName="fill-opacity" from="1" to="1"\n                 begin="0s" dur="0.8s"\n                 values="1;.5;1" calcMode="linear"\n                 repeatCount="indefinite" />\n    </circle>\n</svg>\n',segments:'<?xml version="1.0" encoding="utf-8"?>\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2400 2400" xml:space="preserve" width="24" height="24">\n  <g stroke-width="200" stroke-linecap="round" stroke="#000000" fill="none" id="spinner">\n    <line x1="1200" y1="600" x2="1200" y2="100"/>\n    <line opacity="0.5" x1="1200" y1="2300" x2="1200" y2="1800"/>\n    <line opacity="0.917" x1="900" y1="680.4" x2="650" y2="247.4"/>\n    <line opacity="0.417" x1="1750" y1="2152.6" x2="1500" y2="1719.6"/>\n    <line opacity="0.833" x1="680.4" y1="900" x2="247.4" y2="650"/>\n    <line opacity="0.333" x1="2152.6" y1="1750" x2="1719.6" y2="1500"/>\n    <line opacity="0.75" x1="600" y1="1200" x2="100" y2="1200"/>\n    <line opacity="0.25" x1="2300" y1="1200" x2="1800" y2="1200"/>\n    <line opacity="0.667" x1="680.4" y1="1500" x2="247.4" y2="1750"/>\n    <line opacity="0.167" x1="2152.6" y1="650" x2="1719.6" y2="900"/>\n    <line opacity="0.583" x1="900" y1="1719.6" x2="650" y2="2152.6"/>\n    <line opacity="0.083" x1="1750" y1="247.4" x2="1500" y2="680.4"/>\n    <animateTransform attributeName="transform"\n                      attributeType="XML"\n                      type="rotate"\n                      keyTimes="0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667"\n                      values="0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199"\n                      dur="0.83333s"\n                      begin="0s"\n                      repeatCount="indef
1inite"\n                      calcMode="discrete" />\n  </g>\n</svg>\n\n'}},2589:(le,E,d)=>{"use strict";d.d(E,{_:()=>p,f:()=>u});const p={bookmark:{customData:null},actions:[]};var u=function(o){return o.bookmark="bookmark",o.nightmode="nightmode",o.fontsize="fontsize",o.toc="toc",o.close="close",o.tts="tts",o.sharing="sharing",o.back="back",o.menu="menu",o.pdf="pdf",o.pdf_dropdown="pdf_dropdown",o}(u||{})},9692:(le,E,d)=>{"use strict";d.d(E,{P:()=>p,q:()=>u});var p=function(o){return o.DEFAULT="DEFAULT",o.GPT="GPT",o.HTML="HTML",o.TRAFFECTIVE="TRAFFECTIVE",o.SIZEMAPPING="SIZEMAPPING",o.AUDIENZZ="AUDIENZZ",o.ADSPIRIT="ADSPIRIT",o}(p||{}),u=function(o){return o.DIV="DIV",o.BOTTOM_ANCHOR="BOTTOM_ANCHOR",o.INTERSTITIAL="INTERSTITIAL",o.REWARDED="REWARDED",o.TOP_ANCHOR="TOP_ANCHOR",o}(u||{})},7616:(le,E,d)=>{"use strict";d.d(E,{d:()=>p});var p=function(u){return u.ENTITLEMENT_TOKEN="entitlementToken",u.ENTITLEMENT_REFRESH_TOKEN="entitlementRefreshToken",u.ENTITLEMENT_ROLES="entitlementRoles",u}(p||{})},2348:(le,E,d)=>{"use strict";d.d(E,{K:()=>p});var p=function(u){return u.NONE="none",u.HIDE="hide",u.SHRINK="shrink",u}(p||{})},6843:(le,E,d)=>{"use strict";d.d(E,{O:()=>p});var p=function(u){return u.URL="urls",u.VIEW="views",u.MESSAGE="messages",u.NAVIGATION="navigation",u.APP_BAR="appBar",u.AD="ads",u.ACCESS="access",u.MENUS="menus",u.DOWNLOAD_OPTIONS="downloadOptions",u.GENERIC_WIDGET="genericWidget",u.FEATURE="features",u}(p||{})},4616:(le,E,d)=>{"use strict";function p(o){return!!o.content}function u(o){return"redirectTo"in o}d.d(E,{B:()=>u,m:()=>p})},873:(le,E,d)=>{"use strict";d.d(E,{$I:()=>ue,B6:()=>be,BE:()=>u,Ed:()=>o,Lf:()=>x,Md:()=>p,Z_:()=>Q,_:()=>v,fT:()=>X,h2:()=>re,sn:()=>U});const p="scrolled",u="scrolled-down",o="scrolled-up",v=50,x=50,U="storefront-entitlement-token",Q="storefront-entitlement-user-data",re="restoredPurchases",be="FALLBACK_PASSWORD",ue={config:{recipients:{to:[],cc:[],bcc:[]}},subject:"{{appName}} - App Feedback ({{platform}})",body:"--\n{{versionSectionLabel}}\n{{appVersionLabel}}: {{appVersion}}\n{{purpleVersionBlock}}\n\n{{deviceSectionLabel}}\n{{deviceModelLabel}}: {{deviceModel}}\n{{osVersionLabel}}: {{osVersion}}\n{{manufacturerLabel}}: {{manufacturer}}\n{{deviceIdLabel}}: {{deviceId}}\n{{connectionLabel}}: {{connection}}\n"},X={default:{eventsEnabledByDefault:!0,viewsEnabledByDefault:!0,purchasesEnabledByDefault:!0,attributesEnabledByDefault:!0,events:{APP_BOOKMARK_ADDED:{templates:{action:"Bookmark added {{CONTENT_NAME}}"}},APP_BOOKMARK_DELETED:{templates:{action:"Bookmark deleted {{CONTENT_NAME}}"}},APP_SHARED:{templates:{action:"App shared"}},APP_START:{templates:{action:"App started"}},APP_BACKGROUND:{templates:{action:"App background"}},APP_FOREGROUND:{templates:{action:"App foreground"}},APP_STOP:{templates:{action:"App stopped"}},APPBOY_REFUSE_OFFER:{enabled:!0,templates:{action:"Appboy Refuse Offer {{ACTION_URL}}"}},APPBOY_POSTPONE_OFFER:{enabled:!0,templates:{action:"Appboy Postpone Offer {{ACTION_URL}}"}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{action:"Kiosk promotion action url opened {{ACTION_URL}}"}},KIOSK_CHANNEL_OPENED:{templates:{action:"Channel opened {{PUBLICATION_NAME}}"}},KIOSK_ISSUE_DELETED:{templates:{action:"Issue deleted {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{action:"Issue download started {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{action:"Issue download cancelled {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{action:"Issue download failed {{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOADED:{templates:{action:"Issue downloaded {{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{action:"Issue preview downloaded {{ISSUE_NAME}}"}},KIOSK_ISSUE_OPENED:{templates:{action:"Issue opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_OPEN_FAILED:{templates:{action:"Issue open failed {{ISSUE_ID}}"}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{action:"Issue preview opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{action:"Issue purchase cancelled {{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASED:{templates:{action:"Issue purchased {{ISSUE_NAME}}"}},KIOSK_ISSUE_TOC_OPENED:{templates:{action:"Issue table of contents opened {{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{action:"Issue preview table of contents opened {{ISSUE_NAME}}"}},KIOSK_PURCHASES_RESTORED:{templates:{action:"Purchases restored"}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{action:"Purchase restoration failed"}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{action:"Subscription purchase cancelled {{SUBSCRIPTION_NAME}}"}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{action:"Subscription purchased {{SUBSCRIPTION_NAME}}"}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{action:"Entitlement link 1 opened {{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{action:"Entitlement link 2 opened {{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{action:"Entitlement link 3 opened {{LABEL}}, {{URL}}"}},APP_CONTENT_SHARED:{templates:{action:"Content shared {{CONTENT_NAME}}"}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{action:"Issue content opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC_OPENED:{templates:{action:"Content table of contents opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{action:"Content preview table of contents opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{action:"Content page {{PAGE_LABEL}} opened in issue {{CONTENT_NAME}}"}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{action:"Content open failed {{CONTENT_NAME}}"}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{action:"Channel content opened {{CONTENT_NAME}}"}},PRESENTER_CONTENT_URL_OPENED:{templates:{action:"Content page url opened {{URL}}"}},SHARING_LINK_APP_CLICKED:{templates:{action:"Sharing App Link clicked"}},SHARING_LINK_APP_ISSUE_CLICKED:{templates:{action:"Sharing App Issue Link clicked"}},SHARING_LINK_WEB_ISSUE_CLICKED:{templates:{action:"Sharing Web Issue Link clicked"}}},views:{APP_BOOKMARKS:{templates:{name:"App bookmarks"}},APP_MENU:{templates:{name:"App menu"}},APP_SHARING:{templates:{name:"Sharing"}},KIOSK_CHANNEL_FEED:{templates:{name:"Kiosk channel {{PUBLICATION_NAME}}"}},KIOSK_ISSUE_TOC:{templates:{name:"Kiosk issue table of contents {{ISSUE_NAME}}"}},KIOSK_MY_ISSUES:{templates:{name:"Kiosk my issues"}},KIOSK_PUBLICATION_ALL:{templates:{name:"Kiosk all issues"}},KIOSK_MANAGE_SUBSCRIPTIONS:{templates:{name:"Kiosk manage subscriptions"}},KIOSK_ISSUE_PREVIEW:{templates:{name:"Kiosk issue preview {{ISSUE_NAME}}"}},PRESENTER_PAGE:{templates:{name:"Content {{CONTENT_NAME}}, Page {{PAGE_NUMBER}}"}},PRESENTER_CONTENT:{templates:{name:"Content {{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC:{templates:{name:"Content table of contents {{CONTENT_NAME}}"}}},purchases:{KIOSK_ISSUE_PURCHASED:{},KIOSK_SUBSCRIPTION_PURCHASED:{}},attributes:{HAS_ACTIVE_SUBSCRIPTION:{templates:{name:"Has an active subscription"}},HAS_ACTIVE_SUBSCRIPTION_CODE:{templates:{name:"Has an active subscription code"}},HAS_ACTIVE_TRIAL:{templates:{name:"Has an active trial"}},HAS_PURCHASED_ISSUE:{templates:{name:"Has purchased an issue"}},HAS_BOOKMARKS:{templates:{name:"Has bookmarks"}},HAS_ENTITLEMENT_LOGIN:{templates:{name:"Has entitlement login"}}}},google_analytics:{events:{APP_BOOKMARK_ADDED:{templates:{category:"App",action:"Bookmark added",label:"{{CONTENT_NAME}}"}},APP_BOOKMARK_DELETED:{templates:{category:"App",action:"Bookmark deleted",label:"{{CONTENT_NAME}}"}},APP_SHARED:{templates:{category:"App",action:"App shared",label:""}}
1,APP_START:{templates:{category:"App",action:"App startet",label:""}},APP_BACKGROUND:{templates:{category:"App",action:"App background",label:""}},APP_FOREGROUND:{templates:{category:"App",action:"App foreground",label:""}},APP_STOP:{templates:{category:"App",action:"App stopped",label:""}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{category:"Kiosk",action:"Kiosk promotion action url opened",label:"{{ACTION_URL}}"}},KIOSK_CHANNEL_OPENED:{templates:{category:"Kiosk",action:"Channel opened",label:"{{PUBLICATION_NAME}}"}},KIOSK_ISSUE_DELETED:{templates:{category:"Kiosk",action:"Issue deleted",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{category:"Kiosk",action:"Issue download started",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{category:"Kiosk",action:"Issue download cancelled",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{category:"Kiosk",action:"Issue download failed",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_DOWNLOADED:{templates:{category:"Kiosk",action:"Issue downloaded",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{category:"Kiosk",action:"Issue preview downloaded",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_OPENED:{templates:{category:"Kiosk",action:"Issue opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_OPEN_FAILED:{templates:{category:"Kiosk",action:"Issue open failed",label:"{{ISSUE_ID}}"}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{category:"Kiosk",action:"Issue preview opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{category:"Kiosk",action:"Issue purchase cancelled",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PURCHASED:{templates:{category:"Kiosk",action:"Issue purchased",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_TOC_OPENED:{templates:{category:"Kiosk",action:"Issue table of contents opened",label:"{{ISSUE_NAME}}"}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{category:"Kiosk",action:"Issue preview table of contents opened",label:"{{ISSUE_NAME}}"}},KIOSK_PURCHASES_RESTORED:{templates:{category:"Kiosk",action:"Purchases restored",label:""}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{category:"Kiosk",action:"Purchase restoration failed",label:""}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{category:"Kiosk",action:"Subscription purchase cancelled",label:"{{SUBSCRIPTION_NAME}}"}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{category:"Kiosk",action:"Subscription purchased",label:"{{SUBSCRIPTION_NAME}}"}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 1 opened",label:"{{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 2 opened",label:"{{LABEL}}, {{URL}}"}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{category:"Kiosk",action:"Entitlement link 3 opened",label:"{{LABEL}}, {{URL}}"}},APP_CONTENT_SHARED:{templates:{category:"Content",action:"Content shared",label:"{{CONTENT_NAME}}"}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{category:"Content",action:"Issue content opened {{CONTENT_NAME}}",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_TOC_OPENED:{templates:{category:"Content",action:"Content table of contents opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{category:"Content",action:"Content preview table of contents opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{category:"Content",action:"Content page opened in issue {{CONTENT_NAME}}",label:"{{PAGE_TITLE}}"}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{category:"Content",action:"Content open failed",label:"{{CONTENT_NAME}}"}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{category:"Content",action:"Channel content opened",label:"{{CONTENT_NAME}}"}},PRESENTER_CONTENT_URL_OPENED:{templates:{category:"Content",action:"Content page url opened",label:"{{URL}}"}}},views:{},purchases:{}},appboy:{events:{},views:{},purchases:{}},adjust:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{APP_BOOKMARK_ADDED:{templates:{token_kindle:"",token_android:"",token_ios:""},parameters:{info:""}},APP_BOOKMARK_DELETED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_SHARED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_START:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_BACKGROUND:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_FOREGROUND:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_STOP:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PROMOTION_OPEN_ACTION:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_CHANNEL_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DELETED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_STARTED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOAD_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_DOWNLOADED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_DOWNLOADED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_OPEN_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PURCHASE_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PURCHASED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ISSUE_PREVIEW_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PURCHASES_RESTORED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_PURCHASE_RESTORATION_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_SUBSCRIPTION_PURCHASE_CANCELLED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_SUBSCRIPTION_PURCHASED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK1_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK2_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},KIOSK_ENTITLEMENT_LINK3_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},APP_CONTENT_SHARED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_ISSUE_CONTENT_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_PREVIEW_TOC_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_PAGE_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_OPEN_FAILED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CHANNEL_CONTENT_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}},PRESENTER_CONTENT_URL_OPENED:{templates:{token_kindle:"",token_android:"",token_ios:""}}},views:{},purchases:{KIOSK_ISSUE_PURCHASED:{token_kindle:"",token_android:"",token_ios:""},KIOSK_SUBSCRIPTION_PURCHASED:{token_kindle:"",token_android:"",token_ios:""}}},flurry:{events:{},views:{},purchases:{}},infonline:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1},atinternet:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!1,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{},views:{},purchases:{}},chartbeat:{eventsEnabledByDefault:!1,viewsEnabledByDefault:!0,purchasesEnabledByDefault:!1,attributesEnabledByDefault:!1,events:{},views:{},purchases:{}}}},4452:(le,E,d)=>{"use strict";d.d(E,{O8:()=>et,jL:()=>G,Kj:()=>hn,xV:()=>ln});var p=d(2305),u=d(9379),o=d(467),v=d(7027),O=d(4792),x=d(8179),U=d(362),Q=d.n(U),re=d(4648);const be=["state"];class X extends O.q{}var ne=d(3178);class te extends X{constructor(){super(...arguments),this.groupable=!0}loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P);if(de.publicationFilter&&de.publicationFilter.id&&!de.publicationFilter.id.negated){let Ae;const Oe=new Promise(Tt=>
1Ae=Tt),vt=F.purpleService.getPublicationFromCache(de.publicationFilter.id.value);return vt.timestamp?(Oe.timestamp=vt.timestamp,vt.then(Tt=>Ae({nodes:[Tt],totalCount:1,hasNextPage:!1,cursor:null,timestamp:vt.timestamp}))):Ae({nodes:[vt],totalCount:1,hasNextPage:!1,cursor:null}),Oe}{const Ae=F.purpleService.getPublicationsFromCache(de);return Ae.then(Oe=>(0,u.A)((0,u.A)({},Oe),{},{timestamp:Ae.timestamp}))}})()}getGroupHeaderContextData(){return(0,o.A)(function*(){return null})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P);return de.publicationFilter&&de.publicationFilter.id&&!de.publicationFilter.id.negated?{nodes:[yield F.purpleService.getPublication(de.publicationFilter.id.value,!0)],hasNextPage:!1,cursor:"",totalCount:1}:F.purpleService.getPublications(de,!0).catch(Ae=>(console.warn("Error fetching publications",Ae),{hasNextPage:!1,totalCount:0,cursor:"",nodes:[]}))})()}getParams(P=!1,F=!1){let de;const Ae=this.config.includeIssues||this.config.includeContents;Ae&&(de="number"==typeof Ae?{first:Ae}:Ae);const Oe={publicationFilter:(0,x.y3)(this.config.filter),first:this.getBatchSize(this.config,P),includeContents:!!this.config.includeContents,includeIssues:!!this.config.includeIssues,contentsParams:de};if(this.config.fetchOptions&&(Oe.fetchOptions=this.config.fetchOptions),this.config.sort){let vt=[];vt=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],Oe.sort=vt}return this.cursor&&!F&&(Oe.after=this.cursor),Oe}getGhosts(P){return Array(6).fill(null)}getGroups(){if(this.data&&this.config.groupBy&&this.config.groupBy.customProperty){const P=this.config.groupBy.customProperty;return(0,ne.Am)(this.data.filter(F=>F.properties&&F.properties[P]).map(F=>F.properties[P]))}return[]}getGroupData(P){if(this.data&&this.config.groupBy&&this.config.groupBy.customProperty){const F=this.config.groupBy.customProperty;return this.data.filter(de=>de.properties&&de.properties[F]===P)}return console.warn("getGroupData called but publication-data-source config was missing groupBy parameters"),[]}getDropdownData(){return this.getData().filter(P=>!!P).map(P=>({name:P.name,params:{publication:P.id}}))}static getDataSourceContentType(P){return"publication"}}var $=d(1497),J=d(4404),se=d(5706),Ce=d(7900),ce=d(1794),_=function(Te){return Te.MONTH="MONTH",Te.YEAR="YEAR",Te}(_||{});class R extends X{constructor(P,F,de){super(P,F,de),this.translateService=ce.Z.appInstanceInjector.get(Ce.c)}loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){return F.loadPeriods(!0)})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){return F.loadPeriods(!1)})()}getDropdownData(){const P=this.config.interval||_.YEAR;return this.getData().filter(F=>!!F).map(F=>(F.time=this.ensureDateType(F.time),{name:F.displayValue,params:{period:this.formatPeriod(F.time,P)}}))}loadPeriods(P=!1){var F=this;return(0,o.A)(function*(){const de=F.config.interval||_.YEAR,Ae=F.config.startOffset||0,Oe=yield F.getOldestIssue(P),vt=new Date(Oe.publicationDate),Dt=F.calculateStartDate(new Date,de,Ae),en=[];let Dn=new Date(Dt.getTime());for(;Dn>vt;){const Pn=F.calculateNextDate(Dn,de);en.push({time:new Date(Pn.getTime()),displayValue:F.formatDisplayName(Pn,de)}),Dn=new Date(Pn.getTime())}return{nodes:en,totalCount:en.length,hasNextPage:!1,cursor:null}})()}getOldestIssue(P){var F=this;return(0,o.A)(function*(){const de={sort:[{publicationDate:{direction:J.SortDirection.ASC}}],first:1};return F.config.issueFilter&&(de.issueFilter=(0,x.n)(F.config.issueFilter)),(yield P?F.purpleService.getIssuesFromCache(de):F.purpleService.getIssues(de,!0)).nodes[0]})()}calculateStartDate(P,F,de){const Ae=new Date(0);return F===_.YEAR?Ae.setFullYear(P.getFullYear()+1-de):F===_.MONTH&&(Ae.setFullYear(P.getFullYear()),Ae.setMonth(P.getMonth()+1-de)),Ae}calculateNextDate(P,F){const de=new Date(P.getTime());return F===_.MONTH?de.setMonth(P.getMonth()-1):F===_.YEAR&&de.setFullYear(P.getFullYear()-1),de}formatDisplayName(P,F){const de=P.getMonth()+1,Ae=P.getFullYear();if(!this.config.format)return F===_.MONTH?"".concat(de," / ").concat(Ae):Ae.toString();const vt=F===_.MONTH?de:void 0,Tt=(0,x.uQ)(this.config.format.formatText,{periodEntry:{year:Ae,month:vt}},this.contextService.$functions,this.globalService.getGlobalData()),Dt=[Ae];return vt&&Dt.push(this.config.format.translateWithKeys?"PERIOD_MONTH_".concat(vt):vt.toString()),this.translateService.translate({text:Tt,args:Dt})}ensureDateType(P){return P instanceof Date?P:new Date(P)}
1formatPeriod(P,F){if(F===_.YEAR)return P.getFullYear().toString();{const de=P.getMonth()+1,Ae=de<10?"0".concat(de):de.toString();return"".concat(P.getFullYear(),"-").concat(Ae)}}}var w=d(950);class B extends X{loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P);if(F.config.localMode)return F.loadCacheLocalMode(de);const Ae=F.purpleService.getCategoriesFromCache(de),Oe=(0,u.A)((0,u.A)({},yield Ae),{},{timestamp:Ae.timestamp});return F.config.hideEmpty?F.getApiResponseWithoutEmptyCategories(Oe):Oe})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P);if(F.config.localMode)return F.loadCacheLocalMode(de);const Ae=yield F.purpleService.getCategories(de,!0);return F.config.hideEmpty?F.getApiResponseWithoutEmptyCategories(Ae):Ae})()}loadCacheLocalMode(P){var F,de;const Ae=this.purpleService.filterCategoriesByParam(P);let Oe=Ae.sort((0,w.CY)(null!==(F=P.sort)&&void 0!==F?F:[]));const vt=parseInt(null!==(de=P.after)&&void 0!==de?de:"0",10);return Oe=Ae.slice(vt*P.first,(vt+1)*P.first),{nodes:Oe,totalCount:Ae.length,hasNextPage:Oe.length<Ae.length,cursor:(vt+1).toString()}}getParams(P=!1,F=!1){let de;this.config.includeIssues&&(de="number"==typeof this.config.includeIssues?{first:this.config.includeIssues}:this.config.includeIssues,this.config.hideEmpty&&(de.first=Math.max(de.first||0,1)));const Ae={categoryFilter:(0,x.q8)(this.config.filter),first:this.getBatchSize(this.config,!P),includeIssues:!!de,issuesParams:de};if(this.config.sort){let Oe=[];Oe=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],Ae.sort=Oe}return this.cursor&&!F&&(Ae.after=this.cursor),Ae}getGhosts(P){return Array(6).fill(null)}getDropdownData(){return this.getData().filter(P=>!!P).map(P=>({name:P.name,params:{category:P.id}}))}getApiResponseWithoutEmptyCategories(P){return(0,u.A)((0,u.A)({},P),{},{nodes:P.nodes.filter(F=>F.issues&&F.issues.nodes.length)})}static getDataSourceContentType(P){return"category"}}var oe=d(7783),V=d.n(oe),k=d(4608),ge=d(5964),Fe=d(8251),We=d(6843),ze=d(7031),Ke=d(2962);class Me extends O.q{getParseEnabledValue(P,F){const de=(0,x.v3)(P);if("number"==typeof de)return de;if("string"==typeof de){const Ae=parseInt(de);if(!isNaN(Ae))return Ae}return console.error("The value in '".concat(F,"' in a subordinated content couldn't be resolved to a number,\n     please revisit your views.json configuration.")),-1}mergeContents(P,F,de,Ae){let Oe=P;if(de&&de.length){(0,x.v3)(Ae.randomize)&&(0,x.E1)(de);const vt=this.getParseEnabledValue(Ae.after,"after"),Tt=this.getParseEnabledValue(Ae.interval,"interval");if(Tt>0){let en=vt,Dn=0;for(;en<Oe.nodes.length&&Dn<de.length;){const Pn=de[Dn++];Oe.nodes=Oe.nodes.filter($n=>$n.id!=Pn.id),en<Oe.nodes.length?Oe.nodes.splice(en,0,Pn):Oe.nodes.push(Pn),en+=Tt+1}}else if(vt<=Oe.nodes.length){const en=0==Tt?de:de.slice(0,1);Oe.nodes=Oe.nodes.filter(Dn=>!en.find(Pn=>Pn.id==Dn.id)),vt<=Oe.nodes.length?Oe.nodes.splice(vt,0,...en):Oe.nodes=Oe.nodes.concat(de)}const Dt=(0,x.v3)(this.config.limit);if(Dt){const en=parseInt(null==Dt?void 0:Dt.toString(),10)||void 0;Oe.nodes=Oe.nodes.slice(0,en)}}if(F&&F.length){const vt=new Set(F.map(en=>en.id));let Tt=Oe.nodes.filter(en=>!vt.has(en.id));F.forEach(en=>{Tt.splice(void 0===en.sortIndex?en.content.index:en.sortIndex-1,0,en.content)});const Dt=(0,x.v3)(this.config.limit);if(Dt){const en=parseInt(null==Dt?void 0:Dt.toString(),10)||void 0;Tt=Tt.slice(0,en)}Oe=(0,u.A)((0,u.A)({},P),{},{nodes:Tt})}return Oe}}class tt extends Me{loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P),Ae=F.config.local&&(0,x.v3)(F.config.local);if(Ae){const vt="boolean"==typeof Ae?void 0:Ae,Tt=yield F.getLocalContents(de,!0,vt);return F.applyLocalFilter(Tt)}const Oe=F.purpleService.getCatalogContentsFromCache(de);return F.mergeData(Oe,P,!0).then(vt=>(0,u.A)((0,u.A)({},vt),{},{timestamp:Oe.timestamp}))})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P),Ae=F.config.local&&(0,x.v3)(F.config.local);if(Ae){const vt="boolean"==typeof Ae?void 0:Ae,Tt=yield F.getLocalContents(de,!0,vt);return F.applyLocalFilter(Tt)}const Oe=F.purpleService.getCatalogContents(de,!0).then(vt=>F.mapApiData(vt));return F.mergeData(Oe,P,!1)})()}mergeData(P,F,de){if(!F&&this.cursor)return P;let Ae=Promise.resolve(null),Oe=(0,x.v3)(this.config.fixedContentFromCollection);if((null==Oe?void 0:Oe.trim().length)>0){const Dt={collectionFilter:{name:{value:Oe.trim(),operation:J.StringOperation.EQUAL}},includeElements:!0};
1Ae=(de?this.purpleService.getCollectionsFromCache(Dt):this.purpleService.getCollections(Dt,!0)).then(en=>{var Dn;return null===(Dn=en.nodes[0])||void 0===Dn?void 0:Dn.elements})}let vt=Promise.resolve(null);const Tt=this.config.subordinatedContent&&(0,x.v3)(this.config.subordinatedContent);if(Tt){const Dt=this.getParams(!1,!0,Tt);vt=de?this.purpleService.getCatalogContentsFromCache(Dt):this.purpleService.getCatalogContents(Dt,!0).then(en=>this.mapApiData(en))}return Promise.all([P,Ae,vt]).then(([Dt,en,Dn])=>{if((en||Dn)&&Dt.hasNextPage){const Pn=this.getLimit();(!Pn||Dt.nodes.length<Pn)&&(console.warn("Using subordinated content or fixed collection content with a data sources that has multiple pages"),console.debug(this.config))}return this.mergeContents(Dt,null==en?void 0:en.nodes,null==Dn?void 0:Dn.nodes,Tt)})}mapApiData(P){var F=this;return(0,o.A)(function*(){for(const de of P.nodes){const Ae=Object.keys(de.properties).filter(Oe=>Oe.startsWith("inlinescript")||Oe.startsWith("inlinestyle"));for(const Oe of Ae)delete de.properties[Oe]}if(F.config.includeBundlesOfPosts&&(0,x.v3)(F.config.includeBundlesOfPosts)){const de=new Set;for(const Oe of P.nodes)Oe.bundleId&&de.add(Oe.bundleId);const Ae={OR:[...de.keys()].map(Oe=>({id:{value:Oe}}))};try{const Oe=(yield F.purpleService.getCatalogContents({contentFilter:Ae})).nodes;for(const vt of P.nodes)vt.bundleId&&(vt.bundle=Oe.find(Tt=>Tt.id===vt.bundleId))}catch(Oe){console.error("Failed to load bundles for posts with filter",Ae,Oe)}}return P})()}getParams(P=!1,F=!1,de=this.config){const Ae={first:this.getBatchSize(de,!P)};let Oe=de.filter;if(this.excludedData){let Tt=this.excludedData.filter(Dt=>!!Dt).map(Dt=>Dt.id).filter((Dt,en,Dn)=>Dn.indexOf(Dt)==en);Oe={AND:[Oe].concat(Tt.map(Dt=>({id:{negated:!0,value:Dt,operation:J.StringOperation.EQUAL}})))}}const vt=(0,x.Ph)(Oe);if(vt&&(Ae.contentFilter=vt),de.fetchOptions&&(Ae.fetchOptions=de.fetchOptions),de.sort){let Tt=[];Tt=Array.isArray(de.sort)?de.sort:[de.sort],Ae.sort=Tt}return this.cursor&&!F&&(Ae.after=this.cursor),Ae}applyLocalFilter(P){const F=(0,x.Dc)(this.config.filter);return F?(0,x.MV)(P,P.nodes.filter(de=>(0,re.h9)(F,de))):P}getLocalContents(P,F=!1,de){var Ae=this;return(0,o.A)(function*(){const Oe=(yield Ae.purpleService.getLocalIssues(P,F,de)).issues;return Oe&&Oe.length?{nodes:Oe,totalCount:Oe.length,hasNextPage:!1,cursor:null}:{nodes:[],totalCount:0,hasNextPage:!1,cursor:null}})()}hasConfigChanged(P){return super.hasConfigChanged(P)&&!Q()(this.getParams(),this.getParams(!1,!1,P))||this.hasLocalConfigChanged(P)}hasLocalConfigChanged(P){return!Q()(P.local,this.config.local)}static getDataSourceContentType(P){return"content"}}class je extends X{loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P),Ae=F.purpleService.getTaxonomiesFromCache(de),Oe=(0,u.A)((0,u.A)({},yield Ae),{},{timestamp:Ae.timestamp});return F.config.hideEmpty?F.getApiResponseWithoutEmptyTaxonomies(Oe):Oe})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P),Ae=yield F.purpleService.getTaxonomies(de,!0);return F.config.hideEmpty?F.getApiResponseWithoutEmptyTaxonomies(Ae):Ae})()}getParams(P=!1,F=!1){let de;this.config.includeContents&&(de="number"==typeof this.config.includeContents?{first:this.config.includeContents}:this.config.includeContents,this.config.hideEmpty&&(de.first=Math.max(de.first||0,1)));const Ae={taxonomyFilter:(0,x.Vb)(this.config.filter),first:this.getBatchSize(this.config,P),includeContents:!!de,contentsParams:de};if(this.config.fetchOptions&&(Ae.fetchOptions=this.config.fetchOptions),this.config.sort){let Oe=[];Oe=Array.isArray(this.config.sort)?this.config.sort:[this.config.sort],Ae.sort=Oe}return this.cursor&&!F&&(Ae.after=this.cursor),Ae}getGhosts(P){return Array(6).fill(null)}getDropdownData(){return this.getData().filter(P=>!!P).map(P=>({name:P.name,params:{taxonomy:P.id}}))}getApiResponseWithoutEmptyTaxonomies(P){return(0,u.A)((0,u.A)({},P),{},{nodes:P.nodes.filter(F=>F.contents&&F.contents.nodes.length)})}}var fe=d(4843);function D(Te){if(0===Te.nodes.length)return{hasNextPage:!1,totalCount:0,cursor:"",nodes:[]};const P=Te.nodes[0].elements;if(!P)throw console.error("CollectionElementDataSource must call API with `includeElements`, got no elements!"),new Error("elements missing");return{cursor:P.cursor,hasNextPage:P.hasNextPage,totalCount:P.totalCount,nodes:P.nodes.map(F=>F.content)}}const Ue={ad:class bt extends O.q{constructor(P,F,de){super(P,F,de),this.config=P,this.outlet=F,this.injector=de,this.store=de.get(Fe.B),this.contextService.viewContext$.subscribe(Ae=>{this.filteredAds&&this.fetchedAds&&(Q()(this.filteredAds,this.filter(this.fetchedAds))||this.update())})}loadApiData(P){var F=this;return(0,o.A)(function*(){return F.fetchedAds||(F.fetchedAds=yield new Promise(de=>{F.store.select((0,ze.jZ)(We.O.AD),Ae=>de(Ae.adSlots))})),F.filteredAds=F.filter(F.fetchedAds),F.dataToPage(F.filteredAds,P)})()}dataToPage(P,F=!1){const de=F?0:parseInt(this.cursor||"0",10),Ae=P.slice(de,de+this.getBatchSize(this.config));return{hasNextPage:de+this.getBatchSize(this.config)<P.length,cursor:"".concat(de+this.getBatchSize(this.config)),nodes:Ae,totalCount:P.length}}filter(P){let F=P;if(this.config.idPattern)try{const de=new RegExp(this.config.idPattern);F=P.filter(Ae=>de.test(Ae.id))}catch(de){console.warn("error applying idPattern",de)}return this.filterDataLocal(F)}static getDataSourceContentType(P){return"ad"}},bookmark:class ve extends O.q{constructor(P,F,de){super(P,F,de),this.config=P,this.outlet=F,this.injector=de,this.groupable=!0,this.purpleService.bookmarks$.pipe((0,ge.p)(Ae=>!!this.fetchedData&&!Q()(Ae,this.fetchedData))).subscribe(()=>{this.fetchedData=null,this.update()})}loadApiData(P){var F=this;return(0,o.A)(function*(){const de=yield F.purpleService.getBookmarks(),Ae=de.reduce((Pn,$n)=>{const In=F.getFallbackIssueData($n);return Pn.set(In.id,In),Pn},new Map),Oe={},vt={},Tt=(yield Promise.all(Array.from(Ae.values()).map(Pn=>F.purpleService.getIssue(Pn.id,!1,Pn)))).filter(Pn=>!!Pn),Dt=(yield Promise.all(Array.from(Ae.values()).map(Pn=>F.purpleService.getCatalogContent(Pn.id,!1)))).filter(Pn=>!!Pn);Tt.forEach(Pn=>Oe[Pn.id]=Pn),Dt.forEach(Pn=>Oe[Pn.id]=Pn);const en=[],Dn=F.contextService.getCurrentViewContext();for(const Pn of de){const $n=Oe[F.getIssueId(Pn)];if($n)if(F.config.filter){const In=(0,x.uQ)(F.config.filter,(0,u.A)((0,u.A)({},Dn),{},{[F.config.type]:(0,u.A)((0,u.A)({},Pn),{},{issue:$n})}),F.contextService.$functions,F.globalService.getGlobalData());(0,x.Ol)({condition:In})&&(en.push(Pn),vt[$n.id]=$n)}else en.push(Pn)}return F.issues=F.config.filter?vt:Oe,F.fetchedData=F.sortByCreationDate(en
1),F.dataToPage(F.fetchedData,P)})()}getGroups(){return this.fetchedData&&this.config.groupBy&&this.config.groupBy.issue?(0,w.dV)(Object.keys(this.issues).map(F=>this.issues[F])).map(F=>F.id):[]}getGroupData(P){return this.fetchedData&&this.config.groupBy&&this.config.groupBy.issue?this.sortByIndex(this.fetchedData.filter(F=>this.getIssueId(F)===P)):(console.warn("getGroupData called but bookmark-data-source config was missing groupBy parameters"),[])}dataToPage(P,F=!1){const de=F?0:parseInt(this.cursor||"0",10),Ae=P.slice(de,de+this.getBatchSize(this.config));return{hasNextPage:de+this.getBatchSize(this.config)<P.length,cursor:"".concat(de+this.getBatchSize(this.config)),nodes:Ae,totalCount:P.length}}getGroupHeaderContextData(P,F){var de=this;return(0,o.A)(function*(){var Ae,Oe;const vt=null!=F?F:de.getGroupData(P),Tt=vt.some(en=>{var Dn;return null===(Dn=en.customData)||void 0===Dn?void 0:Dn.contentType})?null===(Ae=vt[0].customData)||void 0===Ae?void 0:Ae.contentType:null,Dt={length:vt.length,contentType:Tt,issueType:J.IssueType.ISSUE};return null!==(Oe=de.config.groupBy)&&void 0!==Oe&&Oe.issue&&vt.some(en=>en.customData.sourceIssueId)&&(Dt.sourceIssue=P),Dt})()}getGroupHeaderConfig(P,F){const de=(0,x.v3)(P.dataSource)||{type:"issue"};return de.filter=(0,u.A)((0,u.A)({}
1,de.filter||{}),{},{id:{value:F}}),P.dataSource=de,P}sortByCreationDate(P,F=J.SortDirection.DESC){const de=F===J.SortDirection.DESC?1:-1;return P.sort((Ae,Oe)=>(Oe.createdAt-Ae.createdAt)*de)}sortByIndex(P,F=J.SortDirection.ASC){const de=F===J.SortDirection.DESC?1:-1;return P.sort((Ae,Oe)=>{let vt=this.getPageIndex(Oe)-this.getPageIndex(Ae);return 0===vt&&(vt=this.getSequenceNumber(Oe)-this.getSequenceNumber(Ae)),vt*de})}getFallbackIssueData(P){return{id:this.getIssueId(P),name:this.getIssueName(P)}}getIssueId(P){var F;return(null===(F=P.customData)||void 0===F?void 0:F.sourceIssueId)||P.issueId}getIssueName(P){var F;return(null===(F=P.customData)||void 0===F?void 0:F.sourceIssueName)||(P.issueType===J.IssueType.ISSUE?P.description:P.title)}getPageIndex(P){if(P.issueType===J.IssueType.ISSUE)return P.pageIndex;{var F;const de=parseInt(null===(F=P.customData)||void 0===F?void 0:F.pageNumber,10);return isFinite(de)?de:(console.warn("no page number property found for article. Please make sure this is when using bookmark.createBookmark"),0)}}getSequenceNumber(P){if(P.issueType===J.IssueType.ISSUE)return P.pageIndex;{var F;const de=parseInt(null===(F=P.customData)||void 0===F?void 0:F.sequenceNumber,10);return isFinite(de)?de:(console.warn("no sequence number property found for article. Please make sure this is when using bookmark.createBookmark"),0)}}static getConfigEscapeProperties(){return[...super.getConfigEscapeProperties(),["dataSource","filter"]]}static getDataSourceContentType(P){return"bookmark"}},category:B,collection:class ot extends O.q{loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P),Ae=F.purpleService.getCollectionsFromCache(de);return Ae.then(Oe=>(0,u.A)((0,u.A)({},F.mapPage(Oe)),{},{timestamp:Ae.timestamp}))})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P);return F.purpleService.getCollections(de,!0).then(Ae=>F.mapPage(Ae))})()}mapPage(P){if("getCollections"===this.config.mode)return P;if("getContentsInCollection"===this.config.mode){const F=[];for(const de of P.nodes)F.push(...de.elements.nodes.map(Ae=>Ae.content));return{cursor:null,hasNextPage:!1,nodes:F,totalCount:F.length}}}getParams(P=!1,F=!1,de=this.config){const Ae={first:this.getBatchSize(de,!P)};if("getContentsInCollection"===de.mode&&(Ae.includeElements=!0,Ae.elementsParams={first:100}),de.filter&&(Ae.collectionFilter=(0,x.mI)(de.filter)),de.fetchOptions&&(Ae.fetchOptions=de.fetchOptions),this.config.sort){let Oe=[];Oe=Array.isArray(de.sort)?de.sort:[de.sort],Ae.sort=Oe}return this.cursor&&!F&&(Ae.after=this.cursor),Ae}hasConfigChanged(P){return super.hasConfigChanged(P)&&!Q()(this.getParams(),this.getParams(!1,!1,P))}static getDataSourceContentType(P){return"getContentsInCollection"===P.mode?"content":"collection"}},"collection-content":class H extends Me{loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P),Ae=F.purpleService.getCollectionsFromCache(de);return F.mergeData(Ae.then(Oe=>D(Oe)),P,!0).then(Oe=>(0,u.A)((0,u.A)({},Oe),{},{timestamp:Ae.timestamp}))})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P),Ae=F.purpleService.getCollections(de,!0).then(Oe=>D(Oe));return F.mergeData(Ae,P,!1)})()}mergeData(P,F,de){if(!F&&this.cursor)return P;let Ae=Promise.resolve(void 0);const Oe=this.config.subordinatedContent&&(0,x.v3)(this.config.subordinatedContent);if(Oe){const vt=new tt((0,u.A)({type:"content"},Oe),this.outlet,this.injector);vt.registered=!0,Ae=(0,fe._)(vt.data$.pipe((0,ge.p)(Tt=>!(!Tt||Tt.length&&!Tt[0])))),vt.loadData()}return Promise.all([P,Ae]).then(([vt,Tt])=>{if(Tt&&vt.hasNextPage){const Dt=this.getLimit();(!Dt||vt.nodes.length<Dt)&&(console.warn("Using subordinated content or fixed collection content with a data sources that has multiple pages"),console.debug(this.config))}return this.mergeContents(vt,void 0,Tt,Oe)})}getParams(P=!1,F=!1,de=this.config){const Ae={first:1,includeElements:!0};return de.collectionFilter&&(Ae.collectionFilter=(0,x.mI)(de.collectionFilter)),Ae.elementsParams={first:this.getBatchSize(de,!P)},de.fetchOptions&&(Ae.fetchOptions=de.fetchOptions),this.cursor&&!F&&(Ae.elementsParams.after=this.cursor),Ae}hasConfigChanged(P){return super.hasConfigChanged(P)&&!Q()(this.getParams(),this.getParams(!1,!1,P))}static getDataSourceContentType(P){return"content"}},custom:class z extends O.q{loadApiData(P){var F=this;return(0,o.A)(function*(){const de=P?0:parseInt(F.cursor||"0",10);let Ae=F.config.data;F.config.sort&&(Ae=(0,x.kJ)(F.config.data,F.config.sort)),Ae=F.filterDataLocal(Ae,F.config.condition);const Oe=F.getBatchSize(F.config),vt=Ae.slice(de,de+Oe),Tt={hasNextPage:de+Oe<Ae.length,cursor:F.createCursor(de+Oe),nodes:vt,totalCount:Ae.length};return Promise.resolve(Tt)})()}getGhosts(P){return Array(this.config.data.length).fill(null)}createCursor(P){return"".concat(P)}},issue:class ue extends O.q{constructor(){super(...arguments),this.groupable=!0}getGroups(){var P;if(!this.data)return this.getGhosts();if(null!==(P=this.config.groupBy)&&void 0!==P&&P.category){const F=[];let de;const Ae={};for(const Oe of this.data||[])Oe.categories[0]&&Oe.categories[0]!==de&&(de=Oe.categories[0],Ae[de]?Ae[de]++:Ae[de]=1,F.push(de+"#"+Ae[de]));return F}return[]}getGroupData(P){var F;if(!P)return this.getGhosts();if(null!==(F=this.config.groupBy)&&void 0!==F&&F.category){const de=P.match((0,v.A)(/(.*)#(\d+)$/,{id:1,index:2}));let Ae=de.groups.id;"undefined"===Ae&&(Ae=void 0);const Oe=parseInt(de.groups.index,10);let Tt,vt=0;const Dt=[];for(const en of this.data)if(en.categories[0]&&(en.categories[0]===Ae&&Tt!==en.categories[0]&&vt++,vt===Oe&&en.categories[0]===Ae&&Dt.push(en),Tt=en.categories[0],vt>Oe||vt===Oe&&Tt!==Ae))break;return Dt}return[]}getGroupHeaderContextData(P){var F=this;return(0,o.A)(function*(){var de;const Ae=P&&P.split("#")[0]||null;return null!==(de=F.config.groupBy)&&void 0!==de&&de.category&&Ae?yield F.purpleService.getCategory(Ae):{id:Ae}})()}getGroupHeaderConfig(P,F){return P}applyLocalFilter(P){const F=(0,x.g7)(this.config.filter);return F?(0,x.MV)(P,P.nodes.filter(de=>(0,re.tU)(F,de))):P}loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P),Ae=F.config.local&&(0,x.v3)(F.config.local);let Oe;if(Ae){const vt="boolean"==typeof Ae?void 0:Ae;Oe=yield F.getLocalIssues(de,!0,vt)}if(de.issueFilter&&de.issueFilter.id&&!de.issueFilter.id.negated){let vt;const Tt=new Promise(en=>vt=en),Dt=F.purpleService.getIssueFromCache(de.issueFilter.id.value);return Dt.timestamp?(Tt.timestamp=Dt.timestamp,Dt.then(en=>
1vt({nodes:[en],totalCount:1,hasNextPage:!1,cursor:null,timestamp:Dt.timestamp}))):vt({nodes:[Dt],totalCount:1,hasNextPage:!1,cursor:null}),Tt}{const vt=F.purpleService.getIssuesFromCache(de);return vt.then(Tt=>(0,u.A)((0,u.A)({},Tt),{},{timestamp:vt.timestamp}))}})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P),Ae=F.config.local&&(0,x.v3)(F.config.local);let Oe;if(Ae){const vt="boolean"==typeof Ae?void 0:Ae;Oe=yield F.getLocalIssues(de,!1,vt)}else Oe=de.issueFilter&&de.issueFilter.id&&!de.issueFilter.id.negated?{nodes:[yield F.purpleService.getIssue(de.issueFilter.id.value,!0)],hasNextPage:!1,cursor:"",totalCount:1}:yield F.purpleService.getIssues(de,!0);if(F.config.includeSourceIssues&&(0,x.v3)(F.config.includeSourceIssues)){const vt={},Tt=yield Promise.all(Object.values(vt).map(function(){var Dt=(0,o.A)(function*(en){try{return{sourceIssue:(yield F.purpleService.getIssues(en.params)).nodes[0],nodeIndices:en.nodeIndices}}catch(Dn){return{}}});return function(en){return Dt.apply(this,arguments)}}()));for(const Dt of Tt)Dt.sourceIssue&&Dt.nodeIndices.forEach(en=>{Oe.nodes[en].sourceIssue=Dt.sourceIssue})}return F.applyLocalFilter(Oe)})()}getLocalIssues(P,F=!1,de){var Ae=this;return(0,o.A)(function*(){const Oe=(yield Ae.purpleService.getLocalIssues(P,F,de)).issues;return Oe&&Oe.length?{nodes:Oe,totalCount:Oe.length,hasNextPage:!1,cursor:null}:{nodes:[],totalCount:0,hasNextPage:!1,cursor:null}})()}getParams(P=!1,F=!1,de=this.config){const Ae={first:this.getBatchSize(de,!P)},Oe=(0,x.n)(de.filter);if(Oe&&(Ae.issueFilter=Oe),this.config.sort){let vt=[];vt=Array.isArray(de.sort)?de.sort:[de.sort],Ae.sort=vt}return this.cursor&&!F&&(Ae.after=this.cursor),Ae}isEqual(P,F){return P===F||(P&&P.id)===(F&&F.id)}isDataEqual(P,F){const de=Ae=>Ae&&"object"==typeof Ae?(0,p.A)(Ae,be):Ae;return Q()(P&&P.map(de),F&&F.map(de))}isLocal(P=this.config){return P.local&&(0,x.uQ)(P.local,P,this.contextService.$functions,this.globalService.getGlobalData())}hasConfigChanged(P){return super.hasConfigChanged(P)&&(!Q()(this.getParams(),this.getParams(!1,!1,P))||this.isLocal()!==this.isLocal(P))}static getDataSourceContentType(P){return"issue"}},json:class K extends O.q{constructor(){super(...arguments),this.groupable=!0}getCacheKey(){return"JsonDataSource:".concat(this.config.url)}dataToPage(P,F=!1){var de;const Ae=F?0:parseInt(this.cursor||"0",10);let Oe;this.config.sort&&(P=(0,x.kJ)(P,this.config.sort)),Oe=null!==(de=this.config.groupBy)&&void 0!==de&&de.subArray&&this.config.condition?P.map(Dt=>(Dt[this.config.groupBy.subArray]=this.filterDataLocal(Dt[this.config.groupBy.subArray],this.config.condition),Dt)):this.config.condition?this.filterDataLocal(P,this.config.condition):P;const vt=this.getBatchSize(this.config),Tt=Oe.slice(Ae,Ae+vt);return{hasNextPage:Ae+vt<Oe.length,cursor:"".concat(Ae+vt),nodes:Tt,totalCount:Oe.length}}loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.cacheService.PURPLE_JSON_CACHE[F.getCacheKey()];if(!de)throw new Error("no cached data");if(!de||!de.timestamp||!de.data)throw new Error("cached data corrupt");return F.isCacheTimestampValid(de.timestamp)&&(F.fetchedData=de.data),(0,u.A)({timestamp:de.timestamp},F.dataToPage(de.data,P))})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=yield F.resourceService.getObject(F.config.url);if(!Array.isArray(de))throw new Error("JSON data from ".concat(F.config.url," must be an array"));const Ae={timestamp:Date.now(),data:de};return F.cacheService.PURPLE_JSON_CACHE[F.getCacheKey()]=Ae,F.cacheService.updateTransferStateAndStorage(k.B.PURPLE_JSON_CACHE),F.fetchedData=de,Promise.resolve(F.dataToPage(F.fetchedData,P))})()}getGhosts(P){return Array(3).fill(null)}getGroups(){var P,F,de;return null!==(P=this.config.groupBy)&&void 0!==P&&P.subArray&&null!==(F=null===(de=this.data)||void 0===de?void 0:de.map(Ae=>V()(Ae)))&&void 0!==F?F:[]}getGroupData(P){var F;if(null!==(F=this.config.groupBy)&&void 0!==F&&F.subArray){var de;const Ae=null===(de=this.data)||void 0===de||null===(de=de.find(Oe=>V()(Oe)===P))||void 0===de?void 0:de[this.config.groupBy.subArray];return Array.isArray(Ae)?Ae:(console.warn("A group from ".concat(this.config.url," has no array at field ").concat(this.config.groupBy.subArray)),[])}return console.warn("getGroupData called but json-data-source config was missing groupBy parameters"),[]}getGroupHeaderContextData(P){var F,de;return null!==(F=this.config.groupBy)&&void 0!==F&&F.subArray?Promise.resolve(null===(de=this.data)||void 0===de?void 0:de.find(Ae=>V()(Ae)===P)):(console.warn("getGroupHeaderContextData called but json-data-source config was missing groupBy parameters"),Promise.resolve(void 0))}},menu:class He extends O.q{loadCacheData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!0,P),Ae=F.purpleService.getCatalogMenusFromCache(de);return Ae.then(Oe=>(0,u.A)((0,u.A)({},F.mapMenuPage(Oe)),{},{timestamp:Ae.timestamp}))})()}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){const de=F.getParams(!1,P);return F.purpleService.getMenus(de,!0).then(Ae=>F.mapMenuPage(Ae))})()}getParams(P=!1,F=!1,de=this.config){const Ae={first:this.getBatchSize(de,!P),includeItems:!0},Oe=de.filter;return Oe&&(Ae.menuFilter=Oe),de.fetchOptions&&(Ae.fetchOptions=de.fetchOptions),this.cursor&&!F&&(Ae.after=this.cursor),Ae}mapMenuPage(P){const F=(0,x.S8)(this.config.itemFilter),de=P.nodes.map(Ae=>{var Oe;return(0,u.A)((0,u.A)({},Ae),{}
1,{items:null===(Oe=Ae.items)||void 0===Oe?void 0:Oe.filter(vt=>(0,re.w)(F,vt)).sort((vt,Tt)=>vt.sortIndex-Tt.sortIndex)})});return(0,x.MV)(P,de)}static getDataSourceContentType(P){return"menu"}},period:R,publication:te,"search-result":class De extends O.q{constructor(P,F,de){super(P,F,de),this.config=P,this.outlet=F,this.injector=de,this.groupable=!0}loadApiData(P=!1){var F=this;return(0,o.A)(function*(){return F.purpleService.search(F.getParams(!1,P)).then(de=>F.mapPage(de))})()}mapPage(P){var F,de;if(P=this.limitExcerptLength(P),null!==(F=this.config.legacyMode)&&void 0!==F&&F.unwrapBundles){const Ae=[];for(const Oe of P.nodes)(0,se.o$)(Oe)?Ae.push(...Oe.posts):Ae.push(Oe);P=(0,x.MV)(P,Ae)}if(null!==(de=this.config.legacyMode)&&void 0!==de&&de.mapPostToIssue)for(let Ae=0;Ae<P.nodes.length;Ae++){const Oe=P.nodes[Ae];(0,se.QO)(Oe)&&(P.nodes[Ae]={issue:Oe.post,contentType:J.CatalogContentType.ISSUE,pageHits:[{excerpt:Oe.excerpt}]})}return P}limitExcerptLength(P){const F=de=>{const Ae=de.indexOf("<strong>");if(-1===Ae)return console.warn('Got search result without "<strong>" tag. Is this still how search hits are marked?'),de;let Oe=Math.max(0,Ae-this.config.limitCharactersBeforeHit);if(Oe>0){const vt=de.indexOf(" ",Oe);vt>-1&&(Oe=vt+1)}return de.substring(Oe)};return void 0!==this.config.limitCharactersBeforeHit&&P.nodes.forEach(de=>{(0,se.QO)(de)?de.excerpt=F(de.excerpt):(0,se.n7)(de)?de.pageHits.forEach(Ae=>Ae.excerpt=F(Ae.excerpt)):(0,se.o$)(de)&&de.posts.forEach(Ae=>Ae.excerpt=F(Ae.excerpt))}),P}getGroups(){var P;if(!this.data&&this.error)return[];if(!this.data&&!this.error)return this.getGhosts();if(null!==(P=this.config.groupBy)&&void 0!==P&&P.issueFromCustomProperty){var F;if(null===(F=this.config.legacyMode)||void 0===F||!F.unwrapBundles)throw console.error("Regrouping for bundles is not supported"),new Error("SearchResultDataSource: groupBy.issueFromCustomProperty requires legacyMode.unwrapBundles");if(!this.data)return[];const de=this.config.groupBy.issueFromCustomProperty,Ae=new Set;for(const Oe of this.data){const vt=(0,se.tr)(Oe);let Tt=vt.properties[de];Tt||(Tt=vt.id),Ae.has(Tt)||Ae.add(Tt)}return Array.from(Ae.values())}return[]}getGroupData(P){var F;if(!P)return this.getGhosts();if(null!==(F=this.config.groupBy)&&void 0!==F&&F.issueFromCustomProperty){let de=this.data.filter(Ae=>(0,se.tr)(Ae).properties[this.config.groupBy.issueFromCustomProperty]===P);return de.length||(de=this.data.filter(Ae=>(0,se.tr)(Ae).id===P)),de}return console.warn("getGroupData called but search-result-data-source config was missing groupBy parameters"),[]}getGroupHeaderContextData(P){var F=this;return(0,o.A)(function*(){var de;if(!P)return{id:null};if(null!==(de=F.config.groupBy)&&void 0!==de&&de.issueFromCustomProperty){var Ae;const Oe=F.config.groupBy.issueFromCustomProperty,vt=(0,x.uQ)(null===(Ae=F.config.groupBy)||void 0===Ae?void 0:Ae.groupIssueFilter,(0,u.A)((0,u.A)({},F.contextService.getContext()),{},{propertyKey:Oe,groupId:P}),F.contextService.$functions,F.globalService.getGlobalData()),Tt=yield F.purpleService.getCatalogContents({contentFilter:vt,first:1});if(1!==Tt.totalCount&&console.warn("Expected 1 parent issue for search result with ".concat(Oe," = ").concat(P,", found ").concat(Tt.totalCount)),1===Tt.nodes.length)return Tt.nodes[0]}return F.config.groupBy.fallbackHeaderData})()}getParams(P=!1,F=!1){const de={searchPhrase:this.config.phrase,first:this.getBatchSize(this.config,P),options:this.config.searchOptions,searchFields:this.config.searchFields,sort:this.config.sort};return de.fetchOptions=this.config.fetchOptions?this.config.fetchOptions:{},void 0===de.fetchOptions.totalCount&&(de.fetchOptions.totalCount=!0),this.config.filter&&(de.contentFilter=(0,x.Ph)(this.config.filter)),this.cursor&&!F&&(de.after=this.cursor),de}static getConfigEscapeProperties(){return[["dataSource","groupBy","groupIssueFilter"]]}},subscription:$.r,taxonomy:je,content:tt,context:class Se extends O.q{loadApiData(P){var F=this;return(0,o.A)(function*(){const de=P?0:parseInt(F.cursor||"0",10),Ae=(0,x.uQ)(F.config.data,(0,u.A)({},F.contextService.getContext()),F.contextService.$functions,F.globalService.getGlobalData()),Oe=F.getBatchSize(F.config),vt=Ae.slice(de,de+Oe),Tt={hasNextPage:de+Oe<Ae.length,cursor:"".concat(de+Oe),nodes:vt,totalCount:Ae.length};return Promise.resolve(Tt)})()}}},at={category:B,period:R,publication:te,taxonomy:je};function hn(Te){var P;if(null!=Te&&null!==(P=Te.dataSource)&&void 0!==P&&P.type){const F=Ue[Te.dataSource.type];return null==F?void 0:F.getConfigEscapeProperties()}return[]}function ln(Te){var P;if(null!=Te&&null!==(P=Te.dataSource)&&void 0!==P&&P.type){const F=Ue[Te.dataSource.type];return null==F?void 0:F.getDataSourceContentType(Te)}}function et(Te,P,F,de){return _e(Ue,Te,P,F,de)}function G(Te,P,F,de){return _e(at,Te,P,F,de)}function _e(Te,P,F,de,Ae){const Oe=(0,Ke.kO)(de,Ae),vt=Te[F.type];if(vt)return new vt(F,Oe,P);console.warn("Failed to create datasource: unknown type ".concat(F.type))}},4792:(le,E,d)=>{"use strict";d.d(E,{q:()=>R});
1var p=d(9379),u=d(467),o=d(9516),v=d(8179),O=d(4412),x=d(3294),U=d(362),Q=d.n(U),re=d(6010),be=d(177),ue=d(1652),X=d(3953),ne=d(2838),te=d(7879),$=d(3726),J=d(6354),se=d(7786);let De=(()=>{var w;class B{constructor(){this.platformId=(0,X.WQX)(X.Agw),this.onlineStatusSubject=new O.t(!!(0,be.Vy)(this.platformId)||navigator.onLine);const oe=(0,$.R)(window,"online").pipe((0,J.T)(()=>!0)),V=(0,$.R)(window,"offline").pipe((0,J.T)(()=>!1));(0,se.h)(oe,V).subscribe(this.onlineStatusSubject)}get onlineStatus$(){return this.onlineStatusSubject.asObservable()}get isOnline(){return this.onlineStatusSubject.value}}return(w=B).\u0275fac=function(oe){return new(oe||w)},w.\u0275prov=X.jDH({token:w,factory:w.\u0275fac,providedIn:"root"}),B})();var Ce=d(6350),ce=d(7783),_=d.n(ce);let R=(()=>{var w;class B{constructor(oe,V,k){this.config=oe,this.outlet=V,this.injector=k,this.contextService=this.injector.get(o.V),this.transferState=this.injector.get(X.pJN),this.purpleService=this.injector.get(re.Wj),this.globalService=this.injector.get(ue.d),this.platformId=this.injector.get(X.Agw),this.resourceService=this.injector.get(ne.Q),this.purpleEnv=this.injector.get(te.r6),this.networkStatusService=this.injector.get(De),this.cacheService=this.injector.get(Ce._),this.contextService.registerDataSource(this,V),this.isBrowser=(0,be.UE)(this.platformId),this.setAdConfig(oe),this.interpolateFilter(oe.filter),this.dataSubject=ne
1w O.t(this.getGhosts()),this.data$=this.dataSubject.asObservable().pipe((0,x.F)((K,ge)=>this.isDataEqual(K,ge))),this.errorSubject=new O.t(null),this.error$=this.errorSubject.asObservable()}setConfig(oe){this.config=oe,this.setAdConfig(oe)}setExcludedData(oe){this.excludedData=oe}setAdConfig(oe){if(!oe.ad)return void(this.adConfig=null);const V=oe.ad;let k;k=V.condition&&(0,v.Ol)(V)?V.value:oe.ad,this.adConfig=k||null}reset(){delete this.apiToken,delete this.data,delete this.cursor,this.hasRealData=!1,this.setError(null),this.loading=!1,this.dataSubject.next(this.getGhosts()),this.cleanupContextData()}hasContextKey(){return!!this.config.contextKey}cleanupContextData(){this.hasContextKey()&&this.contextService.clearOutletData(this.outlet,this.config.contextKey)}loadMore(){var oe=this;return(0,u.A)(function*(){if(oe.cursor)return oe.loadData({add:!0})})()}update(){var oe=this;return(0,u.A)(function*(){oe.updating=!0,oe.hasData()||(oe.dataSubject.next(null),oe.dataSubject.next(oe.getGhosts())),yield oe.loadData({bypassCache:!0,add:!1,ignoreCursor:!0}),oe.updating=!1})()}isCacheTimestampValid(oe){let V=(0,v.v3)(this.config.maxCacheAge);return"string"==typeof V&&(V=parseInt(V)),Date.now()-oe<=(null!=V?V:B.MAX_CACHE_AGE)}loadData(oe={}){var V=this;return(0,u.A)(function*(){var k;oe.bypassCache=V.shouldBypassCache();const K=(0,X.zw6)((null!==(k=V.config.contextKey)&&void 0!==k?k:V.config.type)+"_"+_()(V.config));if(!oe.add&&!oe.bypassCache)try{const ve=yield V.loadCacheData(oe.ignoreCursor),Fe=ve.timestamp&&V.isCacheTimestampValid(ve.timestamp);if(Fe||!V.networkStatusService.isOnline)return V.setData(ve,!1,!Fe,oe.global),V.hasRealData=!0,void V.setError(null)}catch(ve){}V.loading=!0,oe.add&&V.dataSubject.next(V.getData());const ge=Date.now();V.apiToken=ge;try{let ve;if(V.transferState.hasKey(K)&&V.isBrowser&&!V.config.preventSSRCache?(ve=V.transferState.get(K,null),V.transferState.remove(K)):(ve=yield V.loadApiData(oe.ignoreCursor),K&&"bookmark"!==V.config.type&&!(V.config.type in V.cacheService.dataSourceTypeToCacheMapping)&&V.transferState.onSerialize(K,()=>ve)),V.apiToken!==ge)return;const We=V.getLimit();(!We||We>parseInt(ve.cursor))&&ve.hasNextPage?V.cursor=ve.cursor:delete V.cursor,V.setData(ve,!!oe.add,oe.ignoreCursor,oe.global),V.hasRealData=!0,V.config.loadAll&&ve.hasNextPage&&V.loadMore()}catch(ve){if(console.error("API data loading failed:",ve),V.apiToken===ge)throw V.loading=!1,V.dataSubject.next(V.getData()),V.setError(ve),ve}})()}shouldBypassCache(){var oe;const V=null===(oe=this.contextService.getCurrentViewContext())||void 0===oe?void 0:oe.entitlement_token;return this.isBrowser&&(this.purpleEnv.isUniversal&&!!V||this.config.preventSSRCache)}loadCacheData(oe=!1){return(0,u.A)(function*(){throw new Error("no cache data")})()}getData(){const oe=this.getGhosts(!!this.data);var V;return this.data?Array.isArray(this.data)?this.loading?[...this.getDataWithAds(),...oe]:this.getDataWithAds():(console.warn("datasource data: ".concat(null===(V=this.config)||void 0===V?void 0:V.data," resolved to non-array: ").concat(this.data)),oe):this.error?void 0:oe}getDataWithAds(){var oe;if(!this.adConfig)return this.data;const V=[],k=this.adConfig.interval,K=null!==(oe=this.adConfig.after)&&void 0!==oe?oe:k;
1let ge=this.adConfig.startIndex||0;for(let ve=0;ve<this.data.length;ve++)ve>=K&&(ve-K)%k==0&&V.push({ad:{type:"ad",adId:this.adConfig.adId+(this.adConfig.indexed?ge++:"")}}),V.push(this.data[ve]);return V}setData(oe,V=!0,k=!1,K=!1){try{if(this.loading=!1,!this.registered)return;let ge=oe.nodes;if((0,v.v3)(this.config.randomize)&&(0,v.E1)(ge),V)this.data=[...this.data||[],...ge];else{if(this.data&&ge.length&&this.isDataEqual(ge,this.data.slice(0,this.getBatchSize(this.config))))return;{const ve=this.getOffset();ve&&(ge=ge.slice(ve)),this.data=ge}}if(this.lastCallMetadata={hasNextPage:oe.hasNextPage,totalCount:oe.totalCount,dataLength:this.data.length},this.dataSubject.next(this.getData()),this.config.contextKey){let ve=[...this.data];this.config.contextProperty&&(ve=ve.map(Fe=>Fe[this.config.contextProperty])),ve.totalCount=oe.totalCount,K?this.globalService.setData(this.config.contextKey,ve):this.contextService.setOutletData(this.config.contextKey,ve,this.outlet)}if(!k){const ve=this.getLimit();oe.hasNextPage&&!ve||this.data.length<ve?this.cursor=oe.cursor:delete this.cursor}}catch(ge){console.debug("Error in data source setData function",ge)}}interpolateFilter(oe){oe&&Object.entries(oe).forEach(([V,k])=>{if(k instanceof Array)k.forEach(K=>this.interpolateFilter(K));else if("object"==typeof k)this.interpolateFilter(k);else if("string"==typeof k&&0===k.indexOf(":")){const K=k.substr(1),ge=this.contextService.getContext();if(ge){const ve=ge.pathParams;ve&&(oe[V]=ve[K]||k)}}})}getGhosts(oe){return Array(oe?6:10).fill(null)}delete(oe){this.data=this.data.filter(V=>!this.isEqual(V,oe)),this.dataSubject.next(this.data)}isEqual(oe,V){return oe===V}getLimit(oe=this.config){if(void 0===oe.limit)return;const V=(0,v.v3)(oe.limit);return"string"==typeof V?parseInt(V):V}getOffset(oe=this.config){if(void 0===oe.offset)return;const V=(0,v.v3)(oe.offset);return"string"==typeof V?parseInt(V):V}getBatchSize(oe,V=!1){let k=(0,v.v3)(oe.batchSize);"string"==typeof k&&(k=parseInt(k));let K=null!=k?k:this.getDefaultBatchSize();const ge=this.getLimit(oe),ve=this.getOffset(oe);if(this.updating){var Fe;const We=(null!==(Fe=this.data)&&void 0!==Fe&&Fe.length?Math.ceil(this.data.length/K):1)*K;return ge?Math.min(We,ge):We}return ge&&(K=Math.max(0,Math.min(K,ge-(!V&&this.hasRealData&&this.data||[]).length))),ve&&(K+=ve),K}getDefaultBatchSize(){return B.BATCH_SIZE}hasData(){return!!this.data}hasConfigChanged(oe){return!Q()(this.config,oe)}isDataEqual(oe,V){return Q()(oe,V)}setError(oe){this.error=oe,this.errorSubject.next(this.error),oe&&!this.hasData()&&this.dataSubject.next(null)}filterDataLocal(oe,V){const k=this.contextService.getCurrentViewContext();return oe.filter(K=>{let ge,ve;return V&&(ge=(0,v.uQ)(JSON.parse(JSON.stringify(V)),(0,p.A)((0,p.A)({},k),{},{[this.config.type]:K}),this.contextService.$functions,this.globalService.getGlobalData())),K.condition&&(ve=(0,v.uQ)(JSON.parse(JSON.stringify(K.condition)),(0,p.A)((0,p.A)({},k),{},{[this.config.type]:K}),this.contextService.$functions,this.globalService.getGlobalData())),(0,v.Ol)({condition:ve})&&(0,v.Ol)({condition:ge})})}static getConfigEscapeProperties(){return[]}static getDataSourceContentType(oe){return null}}return(w=B).BATCH_SIZE=24,w.MAX_CACHE_AGE=6e4,B})()},8179:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Dc:()=>toLocalContentsFilter,E1:()=>randomizeOrder,E7:()=>isStringResolved,KR:()=>isStorefrontDateMapFilter,MV:()=>replaceNodes,Ol:()=>isEnabled,Ph:()=>toPurpleContentFilter,S8:()=>toPurpleMenuItemFilter,Vb:()=>toPurpleTaxonomyFilter,ZY:()=>isResolved,_o:()=>SubscriptionSortOrder,g7:()=>toLocalIssueFilter,kJ:()=>sortDataLocal,mF:()=>CONTEXT_IDENTIFIER,mI:()=>toPurpleCollectionFilter,n:()=>toPurpleIssueFilter,q8:()=>toPurpleCategoryFilter,ru:()=>isEnabledReplaceValue,tA:()=>toPurpleSubscriptionFilter,uQ:()=>replaceValue,v3:()=>getEnabledValue,y3:()=>toPurplePublicationFilter});var _builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2305),_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9379),_purple_model__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4404),_purple_model__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_purple_model__WEBPACK_IMPORTED_MODULE_0__),_util_common_util__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3178),_util_purple_util__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7879),_util_date_util__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4333),_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(7439);const _excluded=["condition"];function toPurpleIssueFilter(le){if(le){const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>
1toPurpleIssueFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurpleIssueFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}if(le.publication){const d=toPurplePublicationFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le.publication),{},{condition:le.condition}));return d?{publication:d}:null}if(le.properties&&(le=(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le),{},{properties:toPurpleMapFilter(le.properties)})),E&&E.age){const d=(0,_util_date_util__WEBPACK_IMPORTED_MODULE_3__.pd)(E.age),p=E.age.operation||_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN;let u=p;switch(p){case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN:u=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN;break;case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN:u=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN}return{publicationDate:{value:d,operation:u}}}return E}return null}function toLocalIssueFilter(le){if(!le)return null;const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toLocalIssueFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toLocalIssueFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return le.properties&&isStorefrontDateMapFilter(le.properties)?E:null}function toLocalContentsFilter(le){if(!le)return null;const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toLocalContentsFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toLocalContentsFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return le.properties&&isStorefrontDateMapFilter(le.properties)?E:null}function toPurplePublicationFilter(le){if(le){const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toPurplePublicationFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurplePublicationFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return E}return null}function toPurpleSubscriptionFilter(le){if(!le||le.productId&&(0,_util_purple_util__WEBPACK_IMPORTED_MODULE_2__.E7)(window.purple.catalog,{major:1,minor:4},_purple_model__WEBPACK_IMPORTED_MODULE_0__.IntOperation.LESS_THAN))return null;{const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toPurpleSubscriptionFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurpleSubscriptionFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return E}}function toPurpleCategoryFilter(le){if(le){const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toPurpleCategoryFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurpleCategoryFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return E}return null}function toPurpleTaxonomyFilter(le){if(le){var E;if(le.AND){const d=le.AND.map(p=>toPurpleTaxonomyFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurpleTaxonomyFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}if(null!==(E=le.contents)&&void 0!==E&&null!==(E=E.content)&&void 0!==E&&E.value){const d=toPurpleContentFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le.contents.content.value),{},{condition:le.condition}));return d?{contents:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le.contents),{},{content:{value:d}})}:null}return getEnabledFilter(le)}return null}function toPurpleMapFilter(le){return isStorefrontDateMapFilter(le)?null:le}function toPurpleContentFilter(le){if(le){var E;const d=getEnabledFilter(le);if(!d)return null;if(le.AND){const p=le.AND.map(u=>toPurpleContentFilter(u)).filter(u=>!!u);return p.length?{AND:p}:null}if(le.OR){const p=le.OR.map(u=>toPurpleContentFilter(u)).filter(u=>!!u);
1return p.length?{OR:p}:null}if(le.publication){const p=toPurplePublicationFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le.publication),{},{condition:le.condition}));return p?{publication:p}:null}if(null!==(E=le.taxonomies)&&void 0!==E&&null!==(E=E.content)&&void 0!==E&&E.value){const p=toPurpleTaxonomyFilter((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le.taxonomies.content.value),{},{condition:le.condition}));return p?{taxonomies:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le.taxonomies),{},{content:{value:p}})}:null}if(le.publicationDate&&(d.publicationDate.value=le.publicationDate.value.toString()),d&&d.age){const p=(0,_util_date_util__WEBPACK_IMPORTED_MODULE_3__.pd)(d.age),u=d.age.operation||_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN;let o=u;switch(u){case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN:o=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN;break;case _purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.GREATER_THAN:o=_purple_model__WEBPACK_IMPORTED_MODULE_0__.DateOperation.LESS_THAN}return{publicationDate:{value:p,operation:o}}}return d}return null}function toPurpleCollectionFilter(le){if(le){const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toPurpleCollectionFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurpleCollectionFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return E}return null}function toPurpleMenuItemFilter(le){if(le){const E=getEnabledFilter(le);if(!E)return null;if(le.AND){const d=le.AND.map(p=>toPurpleMenuItemFilter(p)).filter(p=>!!p);return d.length?{AND:d}:null}if(le.OR){const d=le.OR.map(p=>toPurpleMenuItemFilter(p)).filter(p=>!!p);return d.length?{OR:d}:null}return E}return null}function getEnabledFilter(le){if(!le)return null;const E=Object.keys(le).filter(v=>"condition"!==v)[0];if(!E)return le;const u=(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_6__.A)(le[E],_excluded);var o;return isEnabled(le)?u&&u.value&&Array.isArray(u.value)?u.value.map(O=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},u),{},{value:O})})).length?{OR:u.value.map(O=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},u),{},{value:O})}))}:null:null!=u&&null!==(o=u.id)&&void 0!==o&&o.value&&Array.isArray(u.id.value)?u.id.value.length?{OR:u.id.value.map(v=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},u),{},{id:{value:v}})}))}:null:u&&u.content&&u.content.value&&u.content.value.value&&Array.isArray(u.content.value.value)?u.content.value.value.map(O=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},u),{},{value:O})})).length?{OR:u.content.value.value.map(O=>({[E]:(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},u),{},{content:{value:{value:O}}})}))}:null:{[E]:u}:null}function isConditionalValue(le){return le&&"object"==typeof le&&le.condition}function isEnabledReplaceValue(le,E,d,p,u=!0){return isConditionalValue(le)?isEnabled({condition:replaceValue(le.condition,E,d,p,u)}):!!le}function isEnabled(le){if(!isConditionalValue(le))return!!le;const d=(()=>
1{if(le.condition.AND){let O=!0;for(const x of le.condition.AND)if(O=isEnabled({condition:x}),!O)break;return O}if(le.condition.OR){let O=!1;for(const x of le.condition.OR)if(O=isEnabled({condition:x}),O)break;return O}const p="value"in le.condition&&isValueResolved(le.condition.value,[])?le.condition.value:void 0;let u,o;switch(le.condition.operation){case ConditionCompareOperation.NOT_SET:return!p;case ConditionCompareOperation.EQUALS_NOT:return le.condition.stringIgnoreCase?!(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(p,le.condition.compareValue):p!==le.condition.compareValue;case ConditionCompareOperation.SET:return!!p;case ConditionCompareOperation.EMPTY:return p&&!p.length;case ConditionCompareOperation.NOT_EMPTY:return p&&!!p.length;case ConditionCompareOperation.LESS_THAN:return u=parseInt(p,10),o=parseInt(le.condition.compareValue,10),isNaN(u)||isNaN(o)?(console.log("error comparing values: "+p+" < "+le.condition.compareValue),!1):u<o;case ConditionCompareOperation.GREATER_THAN:return u=parseInt(p,10),o=parseInt(le.condition.compareValue,10),isNaN(u)||isNaN(o)?(console.log("error comparing values: "+p+" > "+le.condition.compareValue),!1):u>o;case ConditionCompareOperation.CONTAINS:return void 0===p?(console.log("error comparing values: "+p+" CONTAINS "+le.condition.compareValue),!1):Array.isArray(p)?le.condition.stringIgnoreCase?p.some(O=>(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(O.toString(),le.condition.compareValue)):p.includes(le.condition.compareValue):"string"==typeof p?le.condition.stringIgnoreCase?(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(p,le.condition.compareValue):p.includes(le.condition.compareValue):Object.keys(p).includes(le.condition.compareValue)&&p[le.condition.compareValue];default:return le.condition.stringIgnoreCase?(0,_util_common_util__WEBPACK_IMPORTED_MODULE_1__.Q_)(p.toString(),le.condition.compareValue):p+""==le.condition.compareValue+""}})();return le.condition.negated?!d:d}function getEnabledValue(le){return"boolean"==typeof le?le:isEnabled(le)?isConditionalValue(le)&&"value"in le?le.value:le:isConditionalValue(le)&&le.fallback?getEnabledValue(le.fallback):null}const CONTEXT_IDENTIFIER="$context",FUNCTIONS_IDENTIFIER="$functions",GLOBAL_IDENTIFIER="$global";function replaceValue(le,E,d,p,u=!0){const o=typeof le;if("string"===o)return replaceStringValue(le,E,d,p,u);if("object"===o){if(Array.isArray(le))return le.map(v=>replaceValue(v,E,d,p,u));if(le)return Object.keys(le).reduce((v,O)=>(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},v),{},{[O]:replaceValue(le[O],E,d,p,u)}),{})}return le}const parseScopeValue=(le,E)=>{var d,p;return(null!==(d=null===(p=E.match(/((\w|-)+|\[[^\]]+])/g))||void 0===p?void 0:p.map(v=>v.replace(/[[\]'"]/g,"")))&&void 0!==d?d:[]).reduce((v,O)=>v&&("count"===O?Array.isArray(v)?v.length:1:v[O]),le)};function replaceStringValue(le,E,d,p,u=!0){if(!le.includes("$"))return le;let o=le,v=o.indexOf(FUNCTIONS_IDENTIFIER);for(;v>=0;){const O=o.slice(0,v),x=o.slice(v);try{const{result:U,rest:Q}=(0,_util_function_parsing_util__WEBPACK_IMPORTED_MODULE_4__.M)(x,E,d,p);if(void 0===U&&u)v++;else{if(!O&&!Q&&"string"!=typeof U){o=U;break}o=O+U+Q}}catch(U){v++,console.log('Error while evaluating function "'.concat(x,'": ').concat(U.message))}v=o.indexOf(FUNCTIONS_IDENTIFIER,v)}try{"string"==typeof o&&(o=replaceScope(o,E,CONTEXT_IDENTIFIER,u)),"string"==typeof o&&(o=replaceScope(o,p,GLOBAL_IDENTIFIER,u))}catch(O){console.log(O)}return"null"===o||"undefined"===o||"false"===o||void 0===o||!1===o?null:o}function replaceScope(le,E,d,p){const u=new RegExp("\\".concat(d,"(((\\[(['\"])?[\\w -_.]*(['\"])?])+)|(\\.[\\w-_]+))*"),"g"),o=le.match(u);if(o&&1===o.length&&o[0]===le)return replaceSingleValue(le,E,d,p);{let v=le.split("/");return o&&o.forEach(O=>{const x=replaceSingleValue(O,E,d,p);let U=v.find(Q=>Q.indexOf(O)>-1);null==x?v.splice(v.indexOf(U),1):U?v[v.indexOf(U)]=U.replace(O,x):console.debug("warn: segment not found: "+U)}),v.join("/")}}function replaceSingleValue(le,E,d,p=!0){const u=le.substring(d.length),o=parseScopeValue(E,u);return"number"==typeof o||"boolean"==typeof o?o:p?""===o?"":o||le:o}function isArrayResolved(le,E){let d=!0;for(const p of le)if(d=isValueResolved(p,E),!d)break;return d}function isObjectResolved(le,E){if(!isEnabled(le))return!0;e:for(const d of Object.keys(le)){for(const p of E){if("string"==typeof p&&d===p)continue e;if(Array.isArray(p)&&p[0]===d&&(p.shift(),0===p.length))continue e}
1if(!isValueResolved(le[d],E))return!1}return!0}function isStringResolved(le){return-1===le.indexOf(CONTEXT_IDENTIFIER)&&-1===le.indexOf(FUNCTIONS_IDENTIFIER)&&-1===le.indexOf(GLOBAL_IDENTIFIER)}function isValueResolved(le,E){switch(typeof le){case"string":return isStringResolved(le);case"number":case"boolean":default:return!0;case"object":return Array.isArray(le)?isArrayResolved(le,E):isObjectResolved(le,E)}}function isResolved(le,E=["content"]){return isObjectResolved(le,E)}function sortDataLocal(data,comparator){return[...data].sort((a,b)=>{let cmp=0;if("key"in comparator){const le=a[comparator.key],E=b[comparator.key];switch(comparator.valueType){case"STRING":cmp=le.toString().localeCompare(E.toString());break;case"INT":cmp=le-E}}else if("sortFunction"in comparator){const sortFuncReturned=eval(comparator.sortFunction);"number"==typeof sortFuncReturned&&isFinite(sortFuncReturned)&&(cmp=sortFuncReturned)}return comparator.direction===_purple_model__WEBPACK_IMPORTED_MODULE_0__.SortDirection.ASC?cmp:-cmp})}function replaceNodes(le,E){return(0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)((0,_builds_purple_purple_web_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_5__.A)({},le),{},{nodes:E,totalCount:le.totalCount?le.totalCount-(le.nodes.length-E.length):le.totalCount})}function randomizeOrder(le){for(let E=le.length-1;E>0;E--){const d=Math.floor(Math.random()*(E+1)),p=le[E];le[E]=le[d],le[d]=p}}function isStorefrontDateMapFilter(le){return le&&"date"===le.mode}var ConditionCompareOperation=function(le){return le.EQUALS="EQUALS",le.EQUALS_NOT="EQUALS_NOT",le.NOT_SET="NOT_SET",le.SET="SET",le.EMPTY="EMPTY",le.NOT_EMPTY="NOT_EMPTY",le.GREATER_THAN="GREATER_THAN",le.LESS_THAN="LESS_THAN",le.CONTAINS="CONTAINS",le}(ConditionCompareOperation||{}),SubscriptionSortOrder=function(le){return le.DEFAULT="DEFAULT",le.DURATION="DURATION",le}(SubscriptionSortOrder||{})},1497:(le,E,d)=>{"use strict";d.d(E,{r:()=>re});var p=d(467),u=d(9379),o=d(4404),O=d(4333),x=d(7879),U=d(4792),Q=d(8179);class re extends U.q{static toSubscriptionsWithPrices(ue,X){const te=[];return ue.nodes.forEach($=>{const J=X.find(se=>se.productId===$.productId);J&&re.toSubscriptionsWithPrice($,J).forEach(se=>te.push(se))}),(0,Q.MV)(ue,te)}static toSubscriptionsWithPrice(ue,X){const ne=(0,u.A)((0,u.A)({},ue),{},{price:{productId:X.productId,formattedPrice:X.formattedPrice,price:X.price,currency:X.currency}});return X.trialPeriod&&!1!==ue.eligibilityInfo.trial?[(0,u.A)((0,u.A)({},ne),{},{trial:X.trialPeriod})]:X.introductoryPrice&&ue.eligibilityInfo.introductoryPricing?[(0,u.A)((0,u.A)({},ne),{},{introductoryPrice:X.introductoryPrice})]:X.discounts&&X.discounts.length&&ue.eligibilityInfo.discountOffers?X.discounts.map(te=>(0,u.A)((0,u.A)({},ne),{},{id:te.offerId,discount:te})):[ne]}loadApiData(ue=!1){var X=this;return(0,p.A)(function*(){const ne=yield X.purpleService.getSubscriptions(X.getParams(!1,ue)).then($=>X.transform($)),te=ne.nodes.length?yield X.purpleService.getPrices(ne.nodes.map($=>$.productId)):{priceInfos:[]};return re.toSubscriptionsWithPrices(ne,te.priceInfos)})()}getParams(ue=!1,X=!1){const ne={first:this.getBatchSize(this.config,ue)};return this.config.fetchOptions&&(ne.fetchOptions=this.config.fetchOptions),this.config.filter&&(ne.subscriptionFilter=(0,Q.tA)(this.config.filter)),this.cursor&&!X&&(ne.after=this.cursor),ne}transform(ue){let X=this.filter(ue);return X=this.sort(X),X}sort(ue){let X=ue.nodes;if(this.config.localSort){let ne;this.config.localSort.criteria===Q._o.DURATION&&(ne=this.config.localSort.direction===o.SortDirection.ASC?-1:1,X=X.sort((te,$)=>(0,O.FK)(te.duration,$.duration)*ne))}return(0,u.A)((0,u.A)({},ue),{},{nodes:X})}filter(ue){let X=ue;return!1!==this.config.excludeHidden&&(X=this.filterHidden(X)),this.config.excludeSmaller&&(X=this.filterSmaller(X)),this.config.excludePurchased&&(X=this.filterPurchased(X)),this.config.onlyAdditionalUnlocks&&(X=this.filterAdditionalUnlocksOnly(X)),X=this.filterByProductId(X),X}filterPurchased(ue){return(0,Q.MV)(ue,ue.nodes.filter(X=>!X.purchased))}filterSmaller(ue){let X=ue.nodes;const ne=ue.nodes.filter(te=>te.purchased).sort((te,$)=>(0,O.FK)(te.duration,$.duration))[0];return ne&&(X=X.filter(te=>(0,O.FK)(te.duration,ne.duration)<0)),(0,Q.MV)(ue,X)}filterHidden(ue){return(0,Q.MV)(ue,ue.nodes.filter(X=>!X.hidden))}filterAdditionalUnlocksOnly(ue){return(0,Q.MV)(ue,ue.nodes.filter(X=>{var ne;return(null===(ne=X.additionalUnlocks)||void 0===ne?void 0:ne.count)>0}))}filterByProductId(ue){var X;return(0,x.E7)(window.purple.catalog,{major:1,minor:4},o.IntOperation.LESS_THAN)&&null!==(X=this.config.filter)&&void 0!==X&&X.productId?(0,Q.MV)(ue,ue.nodes.filter(ne=>(null==ne?void 0:ne.productId)===this.config.filter.productId.value)):ue}getGhosts(ue){return Array(3).fill(null)}static getDataSourceContentType(ue){return"subscription"}}},1605:(le,E,d)=>{"use strict";d.d(E,{P:()=>O});var p=d(20),u=d(6483),o=d(6067),v=d(3953);let O=(()=>{var x;class U{}return(x=U).\u0275fac=function(re){return new(re||x)},x.\u0275mod=v.$C({type:x}),x.\u0275inj=v.G2t({providers:[p.o,o.D],imports:[u.h]}),U})()},20:(le,E,d)=>{"use strict";d.d(E,{o:()=>$});var p=d(467),u=d(3953),o=d(6067),v=d(9379),O=d(9360);const x=(0,O.YE)(),U=(0,O.zk)(),Q={message:"",actions:[],tag:"div",container:x.body,messages:{DIALOG_MESSAGE_OK:"OK",DIALOG_MESSAGE_CONFIRM:"Confirm",DIALOG_MESSAGE_CANCEL:"Cancel"}};class re{constructor(se){this.keydownListener=De=>{if(De.stopPropagation(),De.preventDefault(),13===De.which){const Ce=this.config.actions[this.config.actions.length-1];Ce&&(Ce.callback(),this.destroy())}},this.config=(0,v.A)((0,v.A)((0,v.A)({},Q),se),{},{messages:(0,v.A)((0,v.A)({},Q.messages),(se||{}).messages)}),this.element=x.createElement(this.config.tag)}render(){U.addEventListener("keypress",this.keydownListener,{once:!0}),this.element.classList.add("purple-dialog");const se=/apple/i.test(navigator.vendor);this.element.classList.add(se?"ios":"android"),this.element.addEventListener("touchstart",_=>_.preventDefault());const De=x.createElement("section");if(this.config.title){const _=x.createElement("h1");_.innerHTML=this.config.title,De.appendChild(_)}const Ce=x.createElement("p");Ce.innerHTML=this.config.message,De.appendChild(Ce);const ce=x.createElement("div");this.config.actions.forEach(_=>{const R=x.createElement("button");_.type&&R.classList.add(_.type),R.innerText=this.config.messages[_.message]||_.message,R.addEventListener("touchstart",w=>w.stopPropagation(),{passive:!0}),R.addEventListener("click",()=>{_.callback(),this.destroy()}),ce.append(R)}),De.appendChild(ce),this.element.appendChild(De),this.config.container.appendChild(this.element)}destroy(){this.element.remove()}}const ue=(0,O.zk)(),X={show:(J,se,De,Ce)=>new Promise(ce=>{for(const _ of se){const R=_.callback;_.callback=()=>{R(),ce()}}new re((0,v.A)({message:J,actions:se,title:De},Ce)).render()}),confirm:(J,se,De)=>new Promise((Ce,ce)=>{new re((0,v.A)({message:J,actions:[{message:"DIALOG_MESSAGE_CANCEL",type:"cancel",callback:ce},{message:"DIALOG_MESSAGE_CONFIRM",type:"confirm",callback:Ce}],title:se},De)).render()}),alert:(J,se,De)=>new Promise(Ce=>{new re((0,v.A)({message:J,actions:[{message:"DIALOG_MESSAGE_OK",callback:Ce}],title:se},De)).render()})};ue.PurpleDialog=X;var ne=d(7900),te=d(177);let $=(()=>{var J;class se{constructor(){this.translateService=(0,u.WQX)(ne.c),this.translate=(0,u.WQX)(o.D),this.platformId=(0,u.WQX)(u.Agw)}init(){var Ce=this;
1return(0,p.A)(function*(){Ce.messages=yield Ce.translate.getMessages()})()}confirm(Ce,ce,_,R){var w=this;return(0,p.A)(function*(){if(!(0,te.UE)(w.platformId))return;const B=yield w.translateService.translate(Ce),z=yield w.translateService.translate(ce||"DIALOG_TITLE"),oe={messages:w.messages||{}};if(_){const V=yield w.translateService.translate(_);oe.messages.DIALOG_MESSAGE_CONFIRM=V}if(R){const V=yield w.translateService.translate(R);oe.messages.DIALOG_MESSAGE_CANCEL=V}return w.currentDialog=w.currentDialog?w.currentDialog.then(V=>new Promise((k,K)=>X.confirm(B,z,oe).then(k,K))):X.confirm(B,z,oe),w.currentDialog.finally(()=>delete w.currentDialog)})()}alert(Ce,ce,_){var R=this;return(0,p.A)(function*(){if(!(0,te.UE)(R.platformId))return;const w=yield R.translateService.translate(Ce),B=yield R.translateService.translate(ce||"DIALOG_TITLE"),z={messages:R.messages||{}};if(_){const oe=yield R.translateService.translate(_);z.messages.DIALOG_MESSAGE_OK=oe}return R.currentDialog=R.currentDialog?R.currentDialog.then(oe=>new Promise((V,k)=>X.alert(w,B,z).then(V,k))):X.alert(w,B,z),R.currentDialog.finally(()=>delete R.currentDialog)})()}show(Ce,ce,_){var R=this;return(0,p.A)(function*(){if(!(0,te.UE)(R.platformId))return;const w=yield R.translateService.translate(Ce),B=yield R.translateService.translate(ce||"DIALOG_TITLE"),z={messages:R.messages||{}},oe=[];for(const V of _){const k=yield R.translateService.translate(V.message);oe.push({message:k,callback:V.callback,type:V.type||"confirm"})}return R.currentDialog=R.currentDialog?R.currentDialog.then(V=>new Promise((k,K)=>X.show(w,oe,B,z).then(k,K))):X.show(w,oe,B,z),R.currentDialog.finally(()=>delete R.currentDialog)})()}}return(J=se).\u0275fac=function(Ce){return new(Ce||J)},J.\u0275prov=u.jDH({token:J,factory:J.\u0275fac,providedIn:"root"}),se})()},2868:(le,E,d)=>{"use strict";d.d(E,{q:()=>J});var p=d(467),u=d(9379),o=d(3953),v=d(9516),O=d(8179),x=d(7879),U=d(177),Q=d(362),re=d.n(Q),be=d(1652),ue=d(3648),X=d(5927),ne=d(5820),te=d(7484),$=d(4675);let J=(()=>{var se;class De{getDataId(){return this.baseContext()[this.dataType()]&&this.baseContext()[this.dataType()].id}getProxyOrComponent(){var ce;return null===(ce=this.component)||void 0===ce?void 0:ce.instance}getActualComponent(){const ce=this.getProxyOrComponent();return ce instanceof ue._?ce.component:ce}constructor(){this.template=(0,o.WQX)(o.C4Q),this.classNames=(0,o.hFB)(""),this.attributes=(0,o.hFB)(),this.loadingPromise=null,this.resolveLoadingProcess=null,this.baseConfig=o.hFB.required(),this.baseContext=(0,o.hFB)({}),this.dataType=(0,o.hFB)(""),this.lazy=(0,o.hFB)(!1),this.controlsSticky=(0,o.hFB)(!1),this.delete=(0,o.CGW)(),this.inViewport=(0,o.CGW)(),this.click=(0,o.CGW)(),this.initialized=!1,this.contextService=(0,o.WQX)(v.V),this.globalService=(0,o.WQX)(be.d),this.purpleEnv=(0,o.WQX)(x.r6),this.injector=(0,o.WQX)(o.zZn),this.platformId=(0,o.WQX)(o.Agw),this.viewContainerRef=(0,o.WQX)(o.c1b),this.domHelper=(0,o.WQX)(X.S),this.anchorService=(0,o.WQX)(ne.X),this.dynamicComponentService=(0,o.WQX)(te._),this.skipRender=(0,o.EWP)(()=>this.baseConfig().skipSSR&&(0,U.Vy)(this.platformId)),this.isLazy=(0,o.EWP)(()=>null==this.baseConfig().isLazy?this.lazy():this.baseConfig().isLazy),this.template.elementRef.nativeElement.component=this,(0,o.QZP)(()=>{if(this.skipRender()||this.initialized)return;const ce=(0,u.A)((0,u.A)({},this.contextService.getContext()),this.baseContext());this.purpleEnv.isUniversal&&!(0,O.ru)(this.baseConfig(),ce,this.contextService.$functions,this.globalService.getGlobalData(),!1)||(!this.isLazy()||(0,U.Vy)(this.platformId))&&this.initialize()}),(0,o.QZP)(()=>{const ce=this.baseContext(),_=this.baseConfig();this.component&&this.updateComponentData(ce,_)}),this.componentRendered=new Promise(ce=>{this.resolveComponentRendered=ce})}ngOnDestroy(){var ce;this.clickHandler&&(null===(ce=this.component.instance)||void 0===ce||ce.getElementRef().nativeElement.removeEventListener("click",this.clickHandler))}scrollIntoView(ce){var _=this;return(0,p.A)(function*(){(0,U.UE)(_.platformId)&&(yield _.componentRendered,_.component.instance.getElementRef().nativeElement.scrollIntoView(ce))})()}updateComponentData(ce,_){var R,w;const B=null===(R=this.component)||void 0===R?void 0:R.instance,z=!this.domHelper.leanDom||"presenter"!==(null===(w=this.baseConfig)||void 0===w?void 0:w.call(this).type);B&&z&&(!re()(B.baseContext(),ce)||!re()(B.baseConfig(),_))&&(B.baseContext.set((0,u.A)({},ce)),B.baseConfig.set((0,u.A)({},_)))}clear(){var ce=this;return(0,p.A)(function*(){if(ce.loadingPromise&&(yield ce.loadingPromise),ce.initialized=!1,ce.component){if(!ce.domHelper.leanDom&&ce.component.componentType===ue._)return ce.component.instance.clear(),void ce.component.destroy();ce.component.instance.ngOnDestroy(),ce.domHelper.leanDom&&ce.component.destroy()}})()}lazyLoad(){var ce=this;return(0,p.A)(function*(){if(!ce.loadingPromise){ce.loadingPromise=new Promise(B=>{ce.resolveLoadingProcess=B});try{var _,R;yield ce.initialize(),(null===(_=ce.component)||void 0===_?void 0:_.componentType)==ue._&&(yield(null===(R=ce.component)||void 0===R?void 0:R.instance).lazyLoad())}finally{var w;null===(w=ce.resolveLoadingProcess)||void 0===w||w.call(ce),ce.loadingPromise=null}}})()}initialize(){var ce=this;return(0,p.A)(function*(){var _,R;ce.initialized||(ce.initialized=!0,ce.component=yield ce.renderComponent(),ce.resolve
1ComponentRendered(),ce.controlsSticky()&&((0,U.Vy)(ce.platformId)||new IntersectionObserver(([B])=>ce.inViewport.emit(B.isIntersecting),{rootMargin:"-10% 0px"}).observe(ce.component.instance.getElementRef().nativeElement)),null===(_=ce.component.instance)||void 0===_||null===(_=_.delete)||void 0===_||_.subscribe(w=>ce.delete.emit(w)),"type"in ce.baseConfig()&&"presenter"!==ce.baseConfig().type&&(ce.clickHandler=w=>{ce.click.emit(w)},null===(R=ce.component.instance)||void 0===R||R.getElementRef().nativeElement.addEventListener("click",ce.clickHandler)),ce.component.instance.getDataId=()=>{var w;return null===(w=ce.baseContext())||void 0===w||null===(w=w[ce.dataType()])||void 0===w?void 0:w.id},ce.updateComponentData(ce.baseContext(),ce.baseConfig()))})()}renderComponent(){var ce=this;return(0,p.A)(function*(){var _;const R=ce.domHelper.leanDom?ce.baseConfig().type:"element",w=yield ce.dynamicComponentService.getComponentFromType(R,ce.baseConfig());ce.viewContainerRef.clear();const B=ce.viewContainerRef.createComponent(w),z=null===(_=B.hostView)||void 0===_?void 0:_.rootNodes[0];return z&&(ce.applyClasses(z),ce.applyDynamicAttributes(z),ce.applyConfigAttributes(z,R)),B})()}applyConfigAttributes(ce,_){if(this.domHelper.leanDom&&"list"!==_&&"html"!==_&&"button"!==_){var R;const w=(0,u.A)((0,u.A)({},this.contextService.getContext()),this.baseContext()),B=null===(R=this.baseConfig())||void 0===R?void 0:R.attributes,z=(0,O.uQ)(B,w,this.contextService.$functions,this.globalService.getGlobalData(),!1),oe=(0,$.g)(z);for(const[V,k]of Object.entries(oe))ce.setAttribute(V,k)}}applyDynamicAttributes(ce){this.attributes()&&Object.entries(this.attributes()).forEach(([_,R])=>{null!=R&&ce.setAttribute(_,R.toString())})}applyClasses(ce){if(this.classNames()){const _="selected",R=Array.from(ce.classList),w=this.classNames().split(" ").filter(B=>""!==B.trim());w.includes(_)?R.includes(_)||ce.classList.add(_):R.includes(_)&&ce.classList.remove(_),w.forEach(B=>{B&&B!==_&&!R.includes(B)&&ce.classList.add(B)})}}ngOnChanges(ce){if(ce.classNames&&this.component){var _;const R=null===(_=this.component)||void 0===_||null===(_=_.hostView)||void 0===_?void 0:_.rootNodes[0];R&&this.applyClasses(R)}}}return(se=De).\u0275fac=function(ce){return new(ce||se)},se.\u0275dir=o.FsC({type:se,selectors:[["","pxpDynamicComponent",""]],inputs:{classNames:[1,"classNames"],attributes:[1,"attributes"],baseConfig:[1,"baseConfig"],baseContext:[1,"baseContext"],dataType:[1,"dataType"],lazy:[1,"lazy"],controlsSticky:[1,"controlsSticky"]},outputs:{delete:"delete",inViewport:"inViewport",click:"click"},features:[o.OA$]}),De})()},8913:(le,E,d)=>{"use strict";d.d(E,{h:()=>ue});var p=d(9379),u=d(177),o=d(3953),v=d(6067),O=d(3178),x=d(2962),U=d(9056),Q=function(X){return X.ICON="ICON",X.TEXT_ICON="TEXT_ICON",X}(Q||{});const re={active:!1,pullMessage:"PULL_TO_REFRESH_PULL",releaseMessage:"PULL_TO_REFRESH_RELEASE",template:Q.ICON};var be=d(5927);let ue=(()=>{var X;class ne{constructor(){this.elementRef=(0,o.WQX)(o.aKT),this.renderer=(0,o.WQX)(o.sFG),this.document=(0,o.WQX)(u.qQ),this.domHelper=(0,o.WQX)(be.S),this.defaultConfig=(0,p.A)({},re),this.storefrontPullToRefresh=(0,o.hFB)(void 0),this.onRefresh=(0,o.hFB)(O.lQ),this.loading=!1,this.touchStartHandler=$=>this.onTouchStart($),this.touchMoveHandler=$=>this.onTouchMove($),this.touchEndHandler=$=>this.onTouchEnd($),this.iconStarted=!1,this.translatePipe=new v.D}ngOnInit(){this.config=(0,p.A)((0,p.A)({},this.defaultConfig),this.storefrontPullToRefresh()),this.translatePipe.transform(this.config.pullMessage).subscribe($=>this.pullMessage=$),this.translatePipe.transform(this.config.releaseMessage).subscribe($=>this.releaseMessage=$)}ngAfterViewInit(){this.loader=this.renderer.createElement("div"),this.renderer.addClass(this.loader,"pull-to-refresh-loader"),this.renderer.setStyle(this.loader,"height","".concat(ne.delta,"px")),this.renderer.setStyle(this.loader,"margin-top","-".concat(ne.delta,"px")),this.config.template&&this.renderer.setAttribute(this.loader,this.domHelper.leanDom?"data-pxp-template":"template",this.config.template),this.loadingSpinner=this.renderer.createElement("div"),this.renderer.addClass(this.loadingSpinner,"pull-to-refresh-loading-spinner"),this.renderer.addClass(this.loadingSpinner,"storefront-spinner"),this.renderer.setAttribute(this.loadingSpinner,this.domHelper.leanDom?"data-pxp-type":"type","tail"),this.renderer.setProperty(this.loadingSpinner,"innerHTML",U.A.tail.replace(/\$id/g,"id-"+Date.now())),this.renderer.appendChild(this.loader,this.loadingSpinner),this.config.template===Q.ICON?this.initIcon():this.initTextIcon(),this.renderer.appendChild(this.elementRef.nativeElement,this.loader),this.document.body.addEventListener("touchmove",O.lQ,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchstart",this.touchStartHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchmove",this.touchMoveHandler,{passive:!0}),this.elementRef.nativeElement.parentNode.addEventListener("touchend",this.touchEndHandler,{passive:!0})}initTextIcon(){this.loadingMessage=this.renderer.createElement("div"),this.renderer.appendChild(this.loader,this.loadingMessage)}initIcon(){this.loadingIcon=this.renderer.createElement("i"),this.renderer.addClass(this.loadingIcon,"icon"),this.renderer.addClass(this.loadingIcon,"icon-spinner"),this.renderer.setStyle(this.loadingIcon,"color","var(--spinnerColor)"),this.renderer.appendChild(this.loader,this.loadingIcon)}ngOnDestroy(){this.elementRef.nativeElement.parentNode&&(this.elementRef.nativeElement.parentNode.removeEventListener("touchstart",this.touchStartHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchmove",this.touchMoveHandler),this.elementRef.nativeElement.parentNode.removeEventListener("touchend",this.touchEndHandler))}onTouchStart($){this.config.active&&!this.loading&&this.document.scrollingElement.scrollTop<=0&&(
1delete this.currentTouch,this.renderer.setStyle(this.loader,"transition","none"),this.touchStart=(0,x.k)($))}startTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",this.pullMessage),this.iconStarted=!0}startIcon(){this.renderer.setStyle(this.loadingIcon,"display","flex"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(0deg)"),this.iconStarted=!0}onTouchMove($){if(this.config.active&&!this.loading&&this.touchStart){const J=(0,x.k)($);if(!this.currentTouch&&J.y<this.touchStart.y)return void delete this.touchStart;if(J.y-this.touchStart.y<ne.threshold)return;this.currentTouch=(0,x.k)($);const se=Math.min(this.currentTouch.y-this.touchStart.y,ne.delta);this.renderer.setStyle(this.loader,"margin-top","-".concat(ne.delta-se,"px")),this.config.template===Q.ICON?this.updateIcon(se):this.updateTextIcon(se),$.cancelable&&$.preventDefault()}}updateTextIcon($){this.iconStarted||this.startTextIcon(),this.renderer.setProperty(this.loadingMessage,"innerText",this.currentTouch.y-this.touchStart.y>ne.delta?this.releaseMessage:this.pullMessage)}updateIcon($){this.iconStarted||this.startIcon();const J=($-ne.threshold)/(ne.delta-ne.threshold);this.renderer.setStyle(this.loadingIcon,"filter",1===J?"none":"grayscale(100%)"),this.renderer.setStyle(this.loadingIcon,"transform","rotate(".concat(320*J,"deg)"))}onTouchEnd($){this.config.active&&!this.loading&&this.touchStart&&this.currentTouch&&(this.currentTouch=(0,x.k)($),this.currentTouch.y-this.touchStart.y>ne.delta?this.refresh():this.renderer.setStyle(this.loader,"margin-top","-".concat(ne.delta,"px")),this.config.template===Q.ICON?this.endIcon():this.endTextIcon())}endTextIcon(){this.renderer.setProperty(this.loadingMessage,"innerText",""),this.iconStarted=!1}endIcon(){this.renderer.setStyle(this.loadingIcon,"display","none"),this.iconStarted=!1}refresh(){this.config.template===Q.ICON?this.endIcon():this.endTextIcon(),this.renderer.setStyle(this.loader,"margin-top",0),this.renderer.setStyle(this.loadingSpinner,"visibility","visible"),this.loading=!0,this.renderer.setStyle(this.loader,"transition","margin-top 100ms ease"),this.renderer.setStyle(this.loader,"margin-top","".concat(-ne.delta/2,"px")),delete this.touchStart,delete this.currentTouch,this.onRefresh()().then($=>this.onRefreshEnd(),$=>this.onRefreshEnd())}onRefreshEnd(){this.loading=!1,this.renderer.setStyle(this.loader,"margin-top","-".concat(ne.delta,"px")),this.renderer.setStyle(this.loadingSpinner,"visibility","hidden")}}return(X=ne).delta=150,X.threshold=50,X.\u0275fac=function($){return new($||X)},X.\u0275dir=o.FsC({type:X,selectors:[["","storefrontPullToRefresh",""]],inputs:{storefrontPullToRefresh:[1,"storefrontPullToRefresh"],onRefresh:[1,"onRefresh"]},standalone:!1}),ne})()},721:(le,E,d)=>{"use strict";d.d(E,{u:()=>o});var p=d(177),u=d(3953);let o=(()=>{var v;class O{}return(v=O).\u0275fac=function(U){return new(U||v)},v.\u0275mod=u.$C({type:v}),v.\u0275inj=u.G2t({imports:[p.MD]}),O})()},4608:(le,E,d)=>{"use strict";d.d(E,{B:()=>p});var p=function(u){return u.PURPLE_API_CACHE="PURPLE_API_CACHE",u.PURPLE_CONTENT_CACHE="PURPLE_CONTENT_CACHE",u.PURPLE_COLLECTION_CACHE="PURPLE_COLLECTION_CACHE",u.PURPLE_MENU_CACHE="PURPLE_MENU_CACHE",u.PURPLE_PUBLICATION_CACHE="PURPLE_PUBLICATION_CACHE",u.PURPLE_TAXONOMY_CACHE="PURPLE_TAXONOMY_CACHE",u.PURPLE_OPTIONAL_CACHE="PURPLE_OPTIONAL_CACHE",u.PURPLE_REDIRECT_CACHE="PURPLE_REDIRECT_CACHE",u.PURPLE_PATH_SEGMENT_CACHE="PURPLE_PATH_SEGMENT_CACHE",u.PURPLE_JSON_CACHE="PURPLE_JSON_CACHE",u}(p||{})},6350:(le,E,d)=>{"use strict";d.d(E,{_:()=>se});var p=d(2305),u=d(9379),o=d(467),v=d(3953),O=d(177),x=d(5706),U=d(4608),Q=d(3331),re=d(5964),be=d(5245),ue=d(152);const X=["elements"],ne=["contents"],te=["contents","seoMetadata"],$=["contents","seoMetadata"],J=["content","contentHtml","resources","seoMetadata"];let se=(()=>{var De;class Ce{constructor(){this.platformId=(0,v.WQX)(v.Agw),this.transferState=(0,v.WQX)(v.pJN),this.router=(0,v.WQX)(Q.Ix),this.ngZone=(0,v.WQX)(v.SKi),this.PURPLE_API_CACHE={},this.PURPLE_CONTENT_CACHE={},this.PURPLE_COLLECTION_CACHE={},this.PURPLE_MENU_CACHE={},this.PURPLE_PUBLICATION_CACHE={},this.PURPLE_OPTIONAL_CACHE={},this.PURPLE_TAXONOMY_CACHE={}
1,this.PURPLE_REDIRECT_CACHE={},this.PURPLE_PATH_SEGMENT_CACHE={},this.PURPLE_JSON_CACHE={},this.purpleCaches={[U.B.PURPLE_MENU_CACHE]:(0,v.zw6)(U.B.PURPLE_MENU_CACHE),[U.B.PURPLE_API_CACHE]:(0,v.zw6)(U.B.PURPLE_API_CACHE),[U.B.PURPLE_CONTENT_CACHE]:(0,v.zw6)(U.B.PURPLE_CONTENT_CACHE),[U.B.PURPLE_COLLECTION_CACHE]:(0,v.zw6)(U.B.PURPLE_COLLECTION_CACHE),[U.B.PURPLE_PUBLICATION_CACHE]:(0,v.zw6)(U.B.PURPLE_PUBLICATION_CACHE),[U.B.PURPLE_TAXONOMY_CACHE]:(0,v.zw6)(U.B.PURPLE_TAXONOMY_CACHE),[U.B.PURPLE_OPTIONAL_CACHE]:(0,v.zw6)(U.B.PURPLE_OPTIONAL_CACHE),[U.B.PURPLE_REDIRECT_CACHE]:(0,v.zw6)(U.B.PURPLE_REDIRECT_CACHE),[U.B.PURPLE_PATH_SEGMENT_CACHE]:(0,v.zw6)(U.B.PURPLE_PATH_SEGMENT_CACHE),[U.B.PURPLE_JSON_CACHE]:(0,v.zw6)(U.B.PURPLE_JSON_CACHE)},this.dataSourceTypeToCacheMapping={menu:U.B.PURPLE_MENU_CACHE,content:U.B.PURPLE_CONTENT_CACHE,issue:U.B.PURPLE_CONTENT_CACHE,collection:U.B.PURPLE_COLLECTION_CACHE,"collection-content":U.B.PURPLE_COLLECTION_CACHE,publication:U.B.PURPLE_PUBLICATION_CACHE,taxonomy:U.B.PURPLE_TAXONOMY_CACHE,category:U.B.PURPLE_TAXONOMY_CACHE,json:U.B.PURPLE_JSON_CACHE},this.MAX_CACHE_SIZE_BYTES=5e6,this.clientPurpleCachesReadyToSerialize=new Set,this.fetchOptionsMapping={includeHtml:"contentHtml",includeResources:"resources",includeBlocks:"content",includeBundledContent:"contents",seoMetadata:"seoMetadata"},this.getByteSize=_=>(new TextEncoder).encode(_).length,(0,O.UE)(this.platformId)&&this.router.events.pipe((0,re.p)(_=>_ instanceof Q.wF),(0,be.i)(1),(0,ue.B)(1e3)).subscribe(()=>{this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.serializeCachedRequests()},0)})})}serializeCachedRequests(){var _=this;return(0,o.A)(function*(){const R=Array.from(_.clientPurpleCachesReadyToSerialize).map(function(){var w=(0,o.A)(function*(B){yield _.serializeCache(B)});return function(B){return w.apply(this,arguments)}}());yield Promise.all(R),_.clientPurpleCachesReadyToSerialize.clear()})()}serializeCache(_){var R=this;return(0,o.A)(function*(){let w=R[_];if(w){let B=(0,u.A)({},w);R.trimCache(B,_),yield R.purpleService.setState(_,JSON.stringify(B))}})()}trimCache(_,R){const w=[];if(Object.keys(_).forEach(B=>{w.push([B,_[B].timestamp])}),w.length){let z=this.getByteSize(JSON.stringify(_)),oe=0;for(;z>this.MAX_CACHE_SIZE_BYTES&&(0===oe&&w.sort((V,k)=>k[1]-V[1]),w.length);){{const[V]=w.pop(),k=this.getByteSize(JSON.stringify(_[V]));delete _[V],z-=k}if(oe++,oe>10){console.warn("Tried to shrink ".concat(R," ").concat(oe," times, still has size ").concat(z," > ").concat(this.MAX_CACHE_SIZE_BYTES));break}}}}allFetchOptionsPresent(_,R){return _&&Object.keys(_).every(w=>Object.prototype.hasOwnProperty.call(R||{},this.fetchOptionsMapping[w]))}updateTransferStateAndStorage(_){Array.isArray(_)?_.forEach(R=>{this.persistToTransferStateAndStorage(R)}):this.persistToTransferStateAndStorage(_),this.persistToTransferStateAndStorage(U.B.PURPLE_API_CACHE)}persistToTransferStateAndStorage(_){(0,O.Vy)(this.platformId)?this.transferState.onSerialize(this.purpleCaches[_],()=>this[_]):this.clientPurpleCachesReadyToSerialize.add(_)}setCurrentTimeStamp(_,R){_&&Object.keys(_).forEach(w=>{_[w].timestamp=Date.now()})}fillCachesFromTransferState(){var _=this;if((0,O.Vy)(this.platformId))return;const R=Object.keys(this.purpleCaches).map(function(){var w=(0,o.A)(function*(B){const z=_.purpleCaches[B];if(_.transferState.hasKey(z)){const V=_[B]||{},k=_.transferState.get(z,null);(B===U.B.PURPLE_API_CACHE||B===U.B.PURPLE_JSON_CACHE)&&_.setCurrentTimeStamp(k,B),_[B]=(0,u.A)((0,u.A)({},V),k),_.transferState.remove(z),_.serializeCache(B)}});return function(B){return w.apply(this,arguments)}}());Promise.all(R)}mergeWithOptionalCache(_,R,w){const B=(0,u.A)({},_);return Object.keys(w||{}).forEach(z=>{const oe=this.fetchOptionsMapping[z]||z;void 0!==R[oe]&&(B[oe]=R[oe])}),B}restoreCachesFromStorage(){var _=this;return(0,o.A)(function*(){if((0,O.Vy)(_.platformId))return Promise.resolve();const w=Object.keys(_.purpleCaches).map(function(){var B=(0,o.A)(function*(z){const oe=yield _.purpleService.getState(z);oe&&Object.keys(oe).length&&(_[z]=JSON.parse(oe))});return function(z){return B.apply(this,arguments)}}());yield Promise.all(w)})()}toPromiseWithTimestamp(_,R){return isFinite(R)||(R=Date.now()),_ instanceof Promise||(_=Promise.resolve(_)),_.t
1imestamp=R,_}combinedDataFullyFromCache(_,R,w){return!!_&&(w?!!this.allFetchOptionsPresent(w,R)&&this.mergeWithOptionalCache(_,R,w):_)}findValueByKeyFromObject(_,R){if(_&&_[R]&&!_[R].negated&&"string"==typeof _[R].value)return _[R].value;for(const w in _)if(Object.prototype.hasOwnProperty.call(_||{},w)&&"object"==typeof _[w]){const B=this.findValueByKeyFromObject(_[w],R);if(B)return B}return null}getResponseOrFalseFromCache(_,R){const w=this.findValueByKeyFromObject(R,"getTaxonomies"===_?"internalId":"id");return!!w&&("getContents"===_?this.combineGetContent(w,R):"getTaxonomies"===_&&this.combineGetTaxonomies(w,R))}combineGetTaxonomies(_,R){const w=this.getTaxonomyCacheKey(_),B=this.getTaxonomyCacheKey(_,R);return this.combinedDataFullyFromCache(this.PURPLE_TAXONOMY_CACHE[w],this.PURPLE_OPTIONAL_CACHE[B],R.fetchOptions)}combineGetContent(_,R){return this.combinedDataFullyFromCache(this.PURPLE_CONTENT_CACHE[_],this.PURPLE_OPTIONAL_CACHE[_],R.fetchOptions)}cacheTransformer(_,R,w,B){let z=this.PURPLE_API_CACHE[_].nodes.map(oe=>{const V=w?w(oe,B):oe;return(0,u.A)((0,u.A)({},R[oe]),this.PURPLE_OPTIONAL_CACHE[V]||{})});return(0,u.A)((0,u.A)({},this.PURPLE_API_CACHE[_]),{},{nodes:z})}getApiCache(_,R){var w;const B="".concat(_,":").concat(JSON.stringify(R));let z;if(this.PURPLE_API_CACHE[B]){var oe;switch(_){case"getPublications":z=this.cacheTransformer(B,this.PURPLE_PUBLICATION_CACHE,this.getPublicationCacheKey.bind(this),R);break;case"getMenus":z=this.cacheTransformer(B,this.PURPLE_MENU_CACHE);break;case"getContents":z=this.cacheTransformer(B,this.PURPLE_CONTENT_CACHE);break;case"getCollections":z=this.cacheTransformer(B,this.PURPLE_COLLECTION_CACHE,this.getCollectionCacheKey.bind(this),R);break;case"getTaxonomies":z=this.cacheTransformer(B,this.PURPLE_TAXONOMY_CACHE,this.getTaxonomyCacheKey.bind(this),R);break;case"getRedirects":z=this.cacheTransformer(B,this.PURPLE_REDIRECT_CACHE);break;case"lookupPathSegments":z=null===(w=this.cacheTransformer(B,this.PURPLE_PATH_SEGMENT_CACHE))||void 0===w?void 0:w.nodes;break;default:throw new Error("".concat(_,": unknown function"))}
1return this.toPromiseWithTimestamp(Promise.resolve(z),null===(oe=z)||void 0===oe?void 0:oe.timestamp)}throw new Error("No cache entry")}createCacheKey(_,R=void 0,w){const B=[..._],z="include".concat(w),oe="".concat(w.toLowerCase(),"Params");return R&&R[z]&&B.push(JSON.stringify(R[oe])),B.filter(Boolean).join("-")}getTaxonomyCacheKey(_,R){return this.createCacheKey([_],R,"Contents")}getPublicationCacheKey(_,R){return this.createCacheKey([_],R,"Contents")}getCollectionCacheKey(_,R){return this.createCacheKey([_],R,"Elements")}setOptionalCache(_,R="getContents",w=void 0){let z,B={};if("getCollections"==R){const{elements:V}=_;B={elements:V},z=(0,p.A)(_,X)}else if("getPublications"==R){const{contents:V}=_;B={contents:V},z=(0,p.A)(_,ne)}else if("getTaxonomies"==R){let{contents:V,seoMetadata:k}=_;B={contents:V,seoMetadata:k},z=(0,p.A)(_,te)}else if((0,x.G4)(_)){let{contents:V,seoMetadata:k}=_;B={contents:V,seoMetadata:k},z=(0,p.A)(_,$)}else{let{content:V,contentHtml:k,resources:K,seoMetadata:ge}=_;B={contentHtml:k,content:V,resources:K,seoMetadata:ge},z=(0,p.A)(_,J)}const oe=Object.fromEntries(Object.entries(B).filter(([V,k])=>null!=k));if(Object.keys(oe).length>0){let V;if("getPublications"===R)V=this.getPublicationCacheKey(_.id,w);else if("getTaxonomies"===R)V=this.getTaxonomyCacheKey(_.internalId,w);else if("getCollections"===R)V=this.getCollectionCacheKey(_.id,w);else{V=_.id;const k=this.maintainDownloadByArray(_,null==w?void 0:w.fetchOptions);k.length&&(oe.downloadedBy=z.downloadedBy=k),oe.version=_.version}this.PURPLE_OPTIONAL_CACHE[V]=(0,u.A)((0,u.A)({},this.PURPLE_OPTIONAL_CACHE[V]),oe)}return z}maintainDownloadByArray(_,R){const w=null==R?void 0:R.downloadedById;if(!w)return[];const B=_.downloadedBy?[..._.downloadedBy]:[];return B.includes(w)||B.push(w),B}deleteEntriesNotContainingTheProp(_,R){var w=this;return(0,o.A)(function*(){try{let B=JSON.parse((yield w.purpleService.getState(_))||"{}");if(0===Object.keys(B).length)return;Object.keys(B).forEach(z=>{Object.prototype.hasOwnProperty.call(B[z],R)||delete B[z]}),yield w.purpleService.setState(_,JSON.stringify(B))}catch(B){console.error("Failed to delete property ".concat(R," entries from ").concat(_,":"),B)}})()}clearCache(){var _=this;return(0,o.A)(function*(){const R=[{name:U.B.PURPLE_API_CACHE,prop:"downloadedById"},{name:U.B.PURPLE_CONTENT_CACHE,prop:"downloadedBy"},{name:U.B.PURPLE_OPTIONAL_CACHE,prop:"downloadedBy"}],w=R.map(B=>B.name);yield Promise.all(R.map(function(){var B=(0,o.A)(function*({name:z,prop:oe}){try{yield _.deleteEntriesNotContainingTheProp(z,oe)}catch(V){console.error("Failed to delete entries for ".concat(z,":"),V)}});return function(z){return B.apply(this,arguments)}}())),Object.keys(_.purpleCaches).forEach(B=>{w.includes(U.B[B])||_.purpleService.setState(U.B[B],"{}")})})()}handleDeleteOnDownloadedCache(_,R,w){var B=this;return(0,o.A)(function*(){var z;if(_==U.B.PURPLE_API_CACHE&&w)(null===(z=B[_][R])||void 0===z?void 0:z.downloadedById)==w&&(yield B.deleteCacheEntry(_,R));else if(_==U.B.PURPLE_CONTENT_CACHE||_==U.B.PURPLE_OPTIONAL_CACHE){var oe;null!==(oe=B[_][R])&&void 0!==oe&&null!==(oe=oe.downloadedBy)&&void 0!==oe&&oe.includes(w)&&(yield B.popFromDownloadedByArrayOrDelete(_,R,w))}})()}deleteCacheEntry(_,R,w=!0){var B=this;return(0,o.A)(function*(){delete B[_][R];try{if(w&&(0,O.UE)(B.platformId)){let z=JSON.parse((yield B.purpleService.getState(_))||"{}");delete z[R],yield B.purpleService.setState(_,JSON.stringify(z))}}catch(z){console.error("Failed to delete cache entry from storage:",z)}})()}popFromDownloadedByArrayOrDelete(_,R,w){var B=this;return(0,o.A)(function*(){try{var z,oe;B[_][R].downloadedBy=null===(z=B[_][R])||void 0===z||null===(z=z.downloadedBy)||void 0===z?void 0:z.filter(V=>V!==w),0===(null===(oe=B[_][R])||void 0===oe||null===(oe=oe.downloadedBy)||void 0===oe?void 0:oe.length)&&(yield B.deleteCacheEntry(_,R))}catch(V){console.error("Failed to pop ".concat(w," from downloadedBy array of ").concat(R," or delete:"),V)}})()}bustApiCache(){var _=this;Object.keys(this.purpleCaches).forEach(function(){var R=(0,o.A)(function*(w){_[w]={}}
1);return function(w){return R.apply(this,arguments)}}()),this.clearCache()}}return(De=Ce).\u0275fac=function(_){return new(_||De)},De.\u0275prov=v.jDH({token:De,factory:De.\u0275fac,providedIn:"root"}),Ce})()},7816:(le,E,d)=>{"use strict";d.d(E,{O:()=>u,Q:()=>o});var p=d(8340);function u(v){return void 0!==v.getVendorId&&void 0!==v.getIABVendorId}class o extends p.u{getVendorId(){var O;return null===(O=this.data)||void 0===O||null===(O=O.consent)||void 0===O?void 0:O.vendorId}getIABVendorId(){var O;return null===(O=this.data)||void 0===O||null===(O=O.consent)||void 0===O?void 0:O.iabVendorId}canRunWithoutConsent(){return!1}isValidConfiguration(){var O;return null===(O=this.data)||void 0===O||!O.consent||!(!this.getVendorId()&&!this.getIABVendorId())}}},953:(le,E,d)=>{"use strict";d.d(E,{z:()=>o});var p=d(467),u=d(3953);let o=(()=>{var v;class O{constructor(){this.init$=new Promise(U=>this.resolveInitialization=U),this.activePlugins=new Array,this.init()}loadPlugin(U){if(!U.isEnabled())return console.debug("Plugin: ".concat(U.displayName," is not enabled!")),null;if(!U.isValidConfiguration())return console.debug("Plugin: ".concat(U.displayName," has no valid configuration!")),null;const Q=U.createInstance();return Q?this.registerActivePlugin(Q):console.error("Plugin: ".concat(U.displayName," not loaded!")),Q}unloadPlugin(){}init(){var U=this;return(0,p.A)(function*(){U.resolveInitialization()})()}registerActivePlugin(U){console.debug("Plugin: ".concat(U.getConfig().displayName," is active and added to plugin service!")),this.activePlugins.push(U)}}return(v=O).\u0275fac=function(U){return new(U||v)},v.\u0275prov=u.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),O})()},8340:(le,E,d)=>{"use strict";d.d(E,{U:()=>o,u:()=>u});var p=d(467);class u{constructor(O,x){this.displayName=O,this.data=x}isEnabled(){return!!this.data}}class o{constructor(O){this.pluginConfiguration=O,this.init$=new Promise((x,U)=>{this.init(x,U)})}init(O,x){var U=this;return(0,p.A)(function*(){return U.adjustDocument().then(()=>{console.debug("Document adjusted for plugin: ".concat(U.getDisplayName())),O()}).catch(Q=>{console.error("Error while adjusting document for plugin: ".concat(U.getDisplayName()),Q),x(Q)})})()}getConfig(){return this.pluginConfiguration}getDisplayName(){var O;return null===(O=this.getConfig())||void 0===O?void 0:O.displayName}}},4648:(le,E,d)=>{"use strict";d.d(E,{G3:()=>ue,h9:()=>be,tU:()=>re,w:()=>X});var p=d(970),o=d(7374),v=d.n(o),O=d(5180),x=d.n(O),U=d(8179);function Q(R){const w=(B,z)=>{if(!z)return!1;if(!B)return!0;const oe=null==R?void 0:R(B,z);if("boolean"==typeof oe)return oe;if(B.OR){for(const V of B.OR)if(w(V,z))return!0;return!1}return B.AND?B.AND.every(V=>w(V,z)):B.id?z.id&&De(B.id,z.id):!!B.properties&&(B.properties.key in z.properties?De(B.properties,z.properties[B.properties.key]):!!B.properties.negated)};return w}v().extend(x());const re=Q(function ne(R,w){if(R.publication){if(R.publication.id){const z=R.publication.id.value===w.publicationId;return R.publication.id.negated?!z:z}return!0}var B;if(R.categories)return se(R.categories,null!==(B=w.categories)&&void 0!==B?B:[]);if(R.tags)return se(R.tags,w.tags);if(R.alias){const z=R.alias.value===w.alias;return R.alias.negated?!z:z}if(R.externalIssueId){const z=R.externalIssueId.value===w.externalIssueId;return R.externalIssueId.negated?!z:z}if(R.type){const z=R.type.value===w.type;return R.type.negated?!z:z}if(R.publicationDate)return _(R.publicationDate,w.publicationDate);if(R.purchasable)return R.purchasable.value===w.purchasable;if(R.purchased)return R.purchased.value===w.purchased;if((0,U.KR)(R.properties)){const z=R.properties;if(w.properties[z.key]){let oe=!1;const V=v()(w.properties[z.key],z.propertyFormat),k=v()(z.value,z.valueFormat);if(V.isValid()&&k.isValid())switch(z.operation){case p.DateOperation.EQUAL:oe=V.isSame(k,"day");break;case p.DateOperation.GREATER_THAN:oe=V.isAfter(k,"day");break;case p.DateOperation.LESS_THAN:oe=V.isBefore(k,"day");break;default:console.warn("unsupported date operation",R)}return z.negated?!oe:oe}}}),be=Q(function te(R,w){if(R.publication){if(R.publication.id){const B=R.publication.id.value===w.publicationId;return R.publication.id.negated?!B:B}return!0}if(R.taxonomies)return console.warn("local filtering by taxonomies is not implemented!"),!0;if(R.alias){const B=R.alias.value===w.alias;return R.alias.negated?!B:B}if(R.externalId){const B=R.externalId.value===w.externalId;return R.externalId.negated?!B:B}if(R.contentType){const B=R.contentType.value===w.contentType;return R.contentType.negated?!B:B}
1if(R.publicationDate)return _(R.publicationDate,w.publicationDate);if(R.access)return R.access.value===w.access;if(R.purchased)return R.purchased.value===w.purchaseData.purchased;if((0,U.KR)(R.properties)){const B=R.properties;if(w.properties[B.key]){let z=!1;const oe=v()(w.properties[B.key],B.propertyFormat),V=v()(B.value,B.valueFormat);if(oe.isValid()&&V.isValid())switch(B.operation){case p.DateOperation.EQUAL:z=oe.isSame(V,"day");break;case p.DateOperation.GREATER_THAN:z=oe.isAfter(V,"day");break;case p.DateOperation.LESS_THAN:z=oe.isBefore(V,"day");break;default:console.warn("unsupported date operation",R)}return B.negated?!z:z}}}),ue=Q(function $(R,w){return R.name?De(R.name,w.name):R.parentCategoryId?De(R.parentCategoryId,w.parentCategoryId):R.issues?(console.warn("Unhandled CategoryFilter field for filterLocalCategory: issues"),!0):void 0}),X=Q(function J(R,w){return R.name?De(R.name,w.name):R.parentId?De(R.parentId,w.parentId):void 0});function se(R,w){const B=R.content,z=R.size,oe=R.negated;let V=!0;return B&&(V=B.operation===p.ListOperation.CONTAINS_ONLY?De(B.value,w[0]):!!w.find(k=>De(B.value,k))),z&&(V=function Ce(R,w){let B;switch(R.operation){case p.IntOperation.GREATER_THAN:B=w>R.value;break;case p.IntOperation.LESS_THAN:B=w<R.value;break;default:B=w===R.value}return R.negated?!B:B}(z,w.length)),oe?!V:V}function De(R,w){var B;let z;if(null!==(B=R.values)&&void 0!==B&&B.length)z=R.values.includes(w);else switch(R.operation){case p.StringOperation.STARTS_WITH:z=w.startsWith(R.value);break;case p.StringOperation.CONTAINS:z=w.indexOf(R.value)>-1;break;default:z=w===R.value}return R.negated?!z:z}function _(R,w){const B=function ce(R){const w=R.split("T");if(w[1])switch(w[0].split(":").length){case 3:return"hour";case 2:return"minute";default:return"second"}else switch(w[0].split("-").length){case 3:return"day";case 2:return"month";default:return"year"}}(R.value);let z;const oe=v()(w),V=v()(R.value);switch(R.operation){case p.DateOperation.LESS_THAN:z=oe.isBefore(V,B);break;case p.DateOperation.GREATER_THAN:z=oe.isAfter(V,B);break;default:return oe.isSame(V,B)}return R.negated?!z:z}},950:(le,E,d)=>{"use strict";d.d(E,{CY:()=>X,Rh:()=>Q,dV:()=>re});var p=d(4404);function o(ne){return te=>($,J)=>{for(const se of te){const De=ne($,J,se);if(0!==De)return De}return ne($,J)}}function v(ne,te,$){const J=ne[$.key],se=te[$.key];let De=0;switch($.valueType){case"STRING":De=J.toString().localeCompare(se.toString());break;case"INT":De=parseInt(J,10)-parseInt(se,10)}return $.direction===p.SortDirection.ASC?De:-De}function x(ne,te){return ne.publicationDate===te.publicationDate?ne.id>te.id?1:-1:te.publicationDate-ne.publicationDate}const Q=o(function U(ne,te,$){return $?$.index?($.index.direction===p.SortDirection.ASC?1:-1)*(ne.index-te.index):$.publicationDate?($.publicationDate.direction===p.SortDirection.ASC?1:-1)*(ne.publicationDate-te.publicationDate):$.property?v(ne.properties,te.properties,$.property):void 0:x(ne,te)});function re(ne){return[...ne].sort(x)}const X=o(function ue(ne,te,$){return $?$.name?function O(ne,te,$){const J=ne.localeCompare(te);return $.direction===p.SortDirection.ASC?J:-J}(ne.name,te.name,$.name):$.property?v(ne.properties,te.properties,$.property):void 0:function be(ne,te){return ne.id>te.id?1:-1}(ne,te)})},6010:(le,E,d)=>{"use strict";d.d(E,{Wj:()=>en,Kh:()=>$n,GA:()=>Dn,YH:()=>In});var p=d(9379),u=d(467),o=d(3953),v=d(3331),O=d(4404),x=d(362),U=d.n(x),Q=d(4412),re=d(2771),be=d(4843),ue=d(5964),X=d(1594),ne=d(6843),te=d(3377),$=d(693),J=d(8745),se=d(9118),De=d(5706),Ce=d(8091),ce=d(7598),_=d(7879),R=d(4648),w=d(8330),B=d(950);function V(xt,qe){var Kt,Ie;
1const Ve=xt&&{AND:xt.AND&&(null===(Kt=xt.AND)||void 0===Kt?void 0:Kt.map(yt=>V(yt,!1))),OR:xt.OR&&(null===(Ie=xt.OR)||void 0===Ie?void 0:Ie.map(yt=>V(yt,!1))),id:xt.id,externalId:xt.externalIssueId,alias:xt.alias,publicationDate:xt.publicationDate,access:ge(xt.purchasable),productId:xt.productId,purchased:xt.purchased,publication:ve(xt.publication)||Fe(xt.type),properties:xt.properties,taxonomies:bt("category",xt.categories)||bt("tag",xt.tags)};return qe?function K(xt){return xt?{AND:[{contentType:{value:O.CatalogContentType.ISSUE}},xt]}:{contentType:{value:O.CatalogContentType.ISSUE}}}(Ve):Ve}function ge(xt){return xt&&{value:O.Access.FREE,negated:xt.value}}function ve(xt){return xt&&{AND:xt.AND&&xt.AND.map(qe=>ve(qe)),OR:xt.OR&&xt.OR.map(qe=>ve(qe)),id:xt.id,type:xt.type,language:xt.language,properties:xt.properties,contents:xt.contents||We(xt.issues)}}function Fe(xt){return xt&&{type:{negated:xt.negated,value:"ARTICLE"===xt.value?O.PublicationType.CHANNEL:O.PublicationType.KIOSK}}}function We(xt){return xt&&{negated:xt.negated,content:ze(xt.content),size:xt.size}}function ze(xt){return xt&&{operation:xt.operation,value:V(xt.value,!0)}}function bt(xt,qe){return qe&&{negated:qe.negated,content:Ke(xt,qe.content),size:qe.size}}function Ke(xt,qe){return qe&&{operation:qe.operation,value:Me(xt,qe.value)}}function Me(xt,qe){return{AND:[{type:{value:xt}},{id:qe}]}}function tt(xt){var qe;return{contentFilter:V(xt.issueFilter,!0),sort:null===(qe=xt.sort)||void 0===qe?void 0:qe.map(Kt=>function z(xt){return{index:xt.index,publicationDate:xt.publicationDate,property:xt.property}}(Kt)),first:xt.first,after:xt.after,fetchOptions:{totalCount:!0}}}var ot=d(7616),je=d(9516),fe=d(5250),D=d(2305),H=d(177),Se=d(8582);const Ue=["queryParams"],at=["queryParams"];let hn=(()=>{var xt;class qe{constructor(){this.router=(0,o.WQX)(v.Ix),this.location=(0,o.WQX)(H.aZ),this.appData=(0,o.WQX)(_.fj),this.currentRouteSubject=new Q.t(null),this.currentRoute$=this.currentRouteSubject.pipe((0,ue.p)(Ie=>null!==Ie)),this.router.events.pipe((0,ue.p)(Ie=>Ie instanceof v.wF)).subscribe(Ie=>{this.updateRouteState(Ie.url)})}updateRouteState(Ie){const[Ve,yt]=Ie.split("?"),Rt=this.appData.customDomain?Ve:Ve.replace("/".concat(this.appData.brand),""),zt={path:Ve.startsWith("/")?Rt:"/".concat(Rt),queryParams:yt?Object.fromEntries(new URLSearchParams(yt).entries()):{}};this.currentRouteSubject.next(zt)}changeUrl(Ie){var Ve=this;return(0,u.A)(function*(){var yt;if(!Ie.path)return!1;const Rt=Ve.appData.customDomain?Ie.path:"/".concat(Ve.appData.brand).concat(Ie.path),zt=(Rt.startsWith("/")?Rt.substring(1):Rt).split("/"),ft={queryParams:Ie.queryParams,queryParamsHandling:null!==(yt=Ie.queryParamsHandling)&&void 0!==yt?yt:"merge"};if(Ie.forceReload)return Ve.router.navigate(zt,ft);{const Ht=Ve.router.createUrlTree(zt,ft).toString();return Ve.location.go(Ht,"",{navigationId:(0,Se.l)()}),Ve.updateRouteState(Ht),!0}})()}wrap(Ie){const{queryParams:Ve}=Ie,yt=(0,D.A)(Ie,Ue);return(0,p.A)((0,p.A)({},yt),{},{queryParams:new ln(Ve)})}unwrap(Ie){if("[object Map]"===Object.prototype.toString.call(Ie.queryParams)||Ie.queryParams instanceof Map){const{queryParams:Ve}=Ie,yt=(0,D.A)(Ie,at);return(0,p.A)((0,p.A)({},yt),{},{queryParams:Object.fromEntries(Ve.entries())})}return Ie}}return(xt=qe).\u0275fac=function(Ie){return new(Ie||xt)},xt.\u0275prov=o.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"}),qe})();class ln{constructor(qe){this.obj=qe,Object.assign(this,qe)}[Symbol.iterator](){return Object.entries(this.obj)[Symbol.iterator]()}get(qe){return this.obj[qe]}has(qe){return qe in this.obj}keys(){return Object.keys(this.obj)}values(){return Object.values(this.obj)}entries(){return Object.entries(this.obj)}}class et{constructor(qe){this.version=new fe.zt(1,0),this.router=new G(qe)}}class G{constructor(qe){this.version=new fe.zt(1,0),this.listeners=new Set,this.bidiRouterService=qe.get(hn),this.bidiRouterService.currentRoute$.subscribe(Kt=>{const Ie=this.bidiRouterService.wrap(Kt);for(const Ve of this.listeners)Ve(Ie)})}getCurrentRoute(){var qe=this;return(0,u.A)(function*(){const Kt=yield(0,be._)(qe.bidiRouterService.currentRoute$);return qe.bidiRouterService.wrap(Kt)})()}changeRoute(qe){var Kt=this;return(0,u.A)(function*(){try{return Kt.bidiRouterService.changeUrl(Kt.bidiRouterService.unwrap(qe))}catch(Ie){return console.error("failed to change route",qe,Ie),!1}})()}addRouteChangeListener(qe){this.listeners.has(qe)||this.listeners.add(qe)}
1removeRouteChangeListener(qe){this.listeners.has(qe)&&this.listeners.delete(qe)}}var _e=d(6078),Te=d(1652),P=d(6350),F=d(4608),de=d(8448);class Ae{get content(){return this._content}get publication(){return this._publication}get state(){return this._state}get downloadStarted(){return this._state.downloading}get autoUpdate(){return this._autoUpdate}constructor(qe){this.listeners=[],this.useNewContentAPI=(0,_.E7)(window.purple.content,{major:1,minor:6},O.IntOperation.GREATER_THAN),this.options=qe,this._content=qe.content,this._autoUpdate=qe.autoUpdate,this._publication=qe.publication,this.initPromise=this.initialize(),qe.addAppStateListeners&&this.addAppStateListeners()}initialize(){var qe=this;return(0,u.A)(function*(){try{if(qe._state=yield qe.getAppState(),qe._state.downloading&&qe._autoUpdate)try{qe.updating=!0,qe.updateState(!0),yield qe.startDownload(qe._content.id)}catch(Kt){}}catch(Kt){throw console.error("Error initializing DownloadHandler:",Kt),Kt}})()}download(){var qe=this;return(0,u.A)(function*(){if(qe._state.installState!==O.ContentInstallState.COMPLETE||qe._state.updateAvailable){qe.updating=!1,qe._state.downloading=!0,qe.error=null;try{const Kt=yield qe.startDownload(qe._content.id);return qe.removeErrorStates(),qe.updateState(!1,!1,!0),Kt}catch(Kt){throw console.error(Kt),qe._state.downloading=!1,qe.error=null,yield qe.getAppState(),qe.updateState(),yield qe.delete(),Kt}}})()}pause(){var qe=this;return(0,u.A)(function*(){return qe.pauseDownload(qe._content.id)})()}update(){var qe=this;return(0,u.A)(function*(){return yield qe.syncLocalContents(),yield qe.updateStatesFromLocal(),qe.updating=!0,qe.updateState(!0),qe.startDownload(qe._content.id)})()}delete(qe=!1){var Kt=this;return(0,u.A)(function*(){Kt.updating=!1,yield Kt.deleteDownload(Kt._content.id),Kt._state=yield Kt.getAppState(),Kt.updateState(!1,qe)})()}setContent(qe){var Kt=this;return(0,u.A)(function*(){Kt._content=qe,Kt._state=yield Kt.getAppState(),Kt.updateState()})()}syncLocalContents(){var qe=this;return(0,u.A)(function*(){return qe.useNewContentAPI?window.purple.content.syncLocalContents({contentIds:[qe._content.id]}):window.purple.catalog.syncLocalIssues({issueIds:[qe._content.id]})})()}addDownloadStateListeners(qe){this.listeners.push(qe)}updateState(qe,Kt,Ie){this.trackStateUpdate(this._state,Ie),!qe&&this._state.installState===O.ContentInstallState.COMPLETE&&!this._state.updateAvailable&&(this.updating=!1),(Kt||this._state.downloading||this._state.installState!==O.ContentInstallState.INCOMPLETE||this._state.error&&this._state.error!==this.error)&&this.listeners.forEach(Ve=>Ve((0,p.A)((0,p.A)({},this._state),{},{updating:this.updating}))),this.error=this._state.error}openIssue(qe){var Kt=this;return(0,u.A)(function*(){if(!(0,De.xl)(Kt._content))return void console.error("DownloadHandler.openIssue: you tried to open a non Issue");const Ie=Kt._content;let Ve=qe.initialPublication;const yt=yield(0,_.Lb)([Ie],Ie,gt=>Promise.resolve(!gt.purchaseData.purchased),null,!1!==qe.additionalIssuesOnly),Rt=qe.initialContentOnly?Ie.type:Kt.getContentType(),zt=yt.find(gt=>{var dt;return gt===Ie.id||gt===(null===(dt=Ie.previewIssue)||void 0===dt?void 0:dt.id)}),ft=[];if(Kt._publication||ft.push({id:{value:Ie.publicationId}}),!Ve&&Ie&&ft.push({id:{value:Ie.publicationId}}),ft.length){const gt=1===ft.length?ft[0]:{OR:ft.map(Ct=>Ct)},dt=(yield window.purple.catalog.getPublications({publicationFilter:gt})).nodes;Kt._publication=Kt._publication||dt.find(Ct=>Ie.publicationId===Ct.id),Ve=Ve||dt.find(Ct=>Ie.publicationId===Ct.id)}let Ht=null;null!=qe.pageIndex&&(Ht={index:qe.pageIndex}),qe.elementAlias&&(Ht=(0,p.A)((0,p.A)({},Ht),{},{initialElement:{aliasOrId:qe.elementAlias}}));const Zt={type:Rt};Zt.optionalParams=Ie?(0,_.P8)((0,_.yC)(Ie,Ve)):{},(0,_.Gw)(Rt)&&(Zt.optionalParams=(0,p.A)((0,p.A)({},Zt.optionalParams),(0,_.P8)((0,_.VP)(Ie,Kt._publication,null,"SOURCE_"))));const Vt={issueIds:yt,initialIssue:{id:zt,initialPage:Ht},config:{mode:O.DisplayMode.MODAL,titleBar:Rt===de.r.ISSUE},tracking:Zt};return null!=qe&&qe.checkLocalIssues&&(!(yield window.purple.catalog.getLocalIssues()).issues.find(Ct=>Ct.id===Ie.id)&&(yield Kt.syncLocalContents()),Vt.skipSync=!0),null!=qe&&qe.openIssueConfig&&(Vt.config=qe.openIssueConfig),window.purple.content.open(Vt)})()}getContentType(qe=""){if((0,De.xl)(this._content))return this._content&&this._content.type===O.IssueType.ISSUE?de.r.ISSUE:de.r.ARTICLE}startDownload(qe){var Kt=this;return(0,u.A)(function*(){return Kt.useNewContentAPI?window.purple.content.startDownload({contentId:qe}):window.purple.catalog.startDownload({issueId:qe})})()}pauseDownload(qe){var Kt=this;return(0,u.A)(function*(){return Kt.useNewContentAPI?window.purple.content.pauseDownload({contentId:qe}):window.purple.catalog.pauseDownload({issueId:qe})})()}deleteDownload(qe){var Kt=this;return(0,u.A)(function*(){return Kt.useNewContentAPI?window.purple.content.deleteDownload({contentId:qe}).catch(Ie=>console.warn("Error deleting issue ",Ie)):window.purple.catalog.deleteIssue({issueId:qe}).catch(Ie=>console.warn("Error deleting issue ",Ie))})()}getAppState(){var qe=this;return(0,u.A)(function*(){if(qe.useNewContentAPI)return(yield window.purple.content.getContentStates({contents:[{contentId:qe._content.id,contentVersion:qe._content.version}]}))[qe._content.id];{const Kt=yield window.purple.catalog.getIssueStates({issues:[{issueId:qe._content.id,issueVersion:qe._content.version}]});return(0,p.A)((0,p.A)({},Kt[qe._content.id]),{},{contentId:Kt[qe._content.id].issueId})}})()}updateStatesFromLocal(){var qe=this;return(0,u.A)(function*(){let Kt;if(qe.useNewContentAPI){const Ve=(yield window.purple.content.getLocalContents().then(yt=>yt.contents)).find(yt=>qe._content.id===yt.id);qe._content.version=Ve.version,Kt=Ve.state}else{const Ve=(yield window.purple.catalog.getLocalIssues().then(yt=>
1yt.issues)).find(yt=>qe._content.id===yt.id);Ve&&(qe._content.version=Ve.version,Kt=(0,p.A)((0,p.A)({},Ve.state),{},{contentId:Ve.state.issueId}))}qe._state=Kt})()}removeErrorStates(){delete this._state.error}addAppStateListeners(){this.useNewContentAPI?window.purple.content.addContentStateListener({contentId:this._content.id,contentVersion:this._content.version,publicationId:this._publication.id},Kt=>{this._state=Kt,this.updateState()}):window.purple.catalog.addIssueStateListener({issueId:this._content.id,issueVersion:this._content.version,publicationId:this._publication.id},Kt=>{this._state=(0,p.A)((0,p.A)({},Kt),{},{contentId:this._content.id}),this.updateState()})}trackStateUpdate(qe,Kt){if(!(this._state.installState&&qe.installState!==this._state.installState||qe.error||Kt))return;let Ie;if(qe.error&&qe.error!==this.error)Ie=de.G.DOWNLOAD_FAILED;else if(Kt)Ie=de.G.DOWNLOAD_STARTED;else switch(qe.installState){case O.ContentInstallState.COMPLETE:Ie=de.G.DOWNLOADED;break;case O.ContentInstallState.NOT_INSTALLED:Ie=this._state.downloading&&this._state.installState===O.ContentInstallState.INCOMPLETE?de.G.DOWNLOAD_CANCELLED:de.G.DELETED}Ie&&this.handleTrackAction(Ie),this._state.installState=qe.installState}handleTrackAction(qe){const Kt=this.getContentType("_COLLECTION"),Ie=(0,_.Dh)("".concat(Kt,"_").concat(qe)),Ve=(0,_.P8)((0,_.VP)(this._content,this._publication));window.purple.tracking.trackAction({key:Ie,optionalParams:Ve})}}var Oe=d(3178);const vt={hasNextPage:!1,totalCount:0,cursor:"",nodes:[]},Tt="PURPLE_CACHE_VERSION",Dt=w.rE;let en=(()=>{var xt;class qe{constructor(){this.platformId=(0,o.WQX)(o.Agw),this.router=(0,o.WQX)(v.Ix),this.injector=(0,o.WQX)(o.zZn),this.purpleEnv=(0,o.WQX)(_.r6),this.cacheService=(0,o.WQX)(P._),this.appData=(0,o.WQX)(_.fj),this.DOWNLOAD_HANDLERS={}
1,this.IMAGE_SRCS=[],this.bookmarksSubject=new Q.t(null),this.bookmarks$=this.bookmarksSubject.asObservable(),this.initedSubject=new re.m(1),this.inited$=this.initedSubject.asObservable(),this.repeatablePublicationProductsSubject=new Q.t(null),this.repeatablePublicationProducts$=this.repeatablePublicationProductsSubject.asObservable(),this.connectionStateSubject=new Q.t(null),this.connectionState$=this.connectionStateSubject.asObservable(),this._downloadOptions={},this.addIssueStateListener=(Ie,Ve)=>this.purpleRef.catalog.addIssueStateListener(Ie,Ve),this.removeIssueStateListener=(Ie,Ve)=>this.purpleRef.catalog.removeIssueStateListener(Ie,Ve),this.share=Ie=>this.purpleRef.share.share(Ie)}get downloadOptions(){return this._downloadOptions}isContentLocked(Ie,Ve){return!1}init(Ie){var Ve=this;return(0,u.A)(function*(){(0,Oe.a)("ConfigLoaderService.loadConfig",(0,u.A)(function*(){yield Ve.injector.get(J.Bh).loadConfig()})),Ve.cacheService.purpleService=Ve,Ie?((0,Oe.a)("KioskConfigService.loadConfig",(0,u.A)(function*(){yield Ve.injector.get(se.x).loadConfig()}
1)),Ve.initWebPlatform(Ie)):Ve.initAppPlatform(),window.PurpleService=Ve,Ve.initPurpleExperience(),Ve.subscribeToConfigLoaderService(),yield Ve.initCache(),Ve.cacheService.fillCachesFromTransferState(),Ve.initListeners();try{var yt,Rt;null===(yt=(Rt=window.storefrontHooks).onPurpleServiceInit)||void 0===yt||yt.call(Rt)}catch(zt){console.error("Error in onPurpleServiceInit hook:",zt)}Ve.initedSubject.next(!0),Ve.initedSubject.complete()})()}updateRepeatablePublicationProducts(){var Ie=this;return(0,u.A)(function*(){let Ve;const yt={publicationProductFilter:{AND:[{type:{value:O.PublicationProductType.REPEATABLE_ISSUE_PURCHASE}},{hidden:{value:!1}}]},maxUnlockableContents:1};try{Ve=yield Ie.getPublicationProducts(yt)}catch(Rt){console.warn("Failed to load repeatable publication products",Rt),Ve=[]}return Ie.repeatablePublicationProductsSubject.next(Ve),Ve})()}getRepeatablePublicationProductByPublicationId(Ie){var Ve=this;return(0,u.A)(function*(){return(yield(0,be._)(Ve.repeatablePublicationProducts$.pipe((0,ue.p)(Rt=>!!Rt)))).find(Rt=>!!Rt.publications[Ie])})()}nextInvalidation(){let Ie;const Ve=new Promise((yt,Rt)=>Ie=yt);return window.addEventListener(ce.YT,()=>Ie()),Ve}invalidate(){var Ie=this;return(0,u.A)(function*(){Ie.cacheService.bustApiCache(),yield Ie.updateDownloadHandlerStates(),yield Ie.updateRepeatablePublicationProducts(),window.dispatchEvent(new CustomEvent(ce.YT,{})),Ie.onMaybeSubscriptionsChanged()})()}onMaybeSubscriptionsChanged(){var Ie=this;return(0,u.A)(function*(){const Ve=yield Ie.getState("storefront-purchased-subs").then(Ht=>Ht&&JSON.parse(Ht)),yt=(yield Ie.getSubscriptions({subscriptionFilter:{purchased:{value:!0}}})).nodes;var Rt,zt;U()(Ve,yt)||(null===(Rt=window.storefrontHooks)||void 0===Rt||null===(zt=Rt.subscriptionsChanged)||void 0===zt||zt.call(Rt,{subscriptions:yt}),yield Ie.setState("storefront-purchased-subs",JSON.stringify(yt))),Ie.injector.get(je.V).notifyAll()})()}addImageSrc(Ie){this.IMAGE_SRCS.indexOf(Ie)<0&&this.IMAGE_SRCS.push(Ie)}getAlternativeSrc(Ie){const Ve=null==Ie?void 0:Ie.split("?")[0];return this.IMAGE_SRCS.find(yt=>(null==yt?void 0:yt.split("?")[0])===Ve)||Ve}filterCategoriesByParam(Ie){return Object.values(this.cacheService.PURPLE_TAXONOMY_CACHE).filter(Ve=>(0,R.G3)(Ie.categoryFilter,Ve))}setConfigValue(Ie,Ve){this.purpleRef.setConfigValue(Ie,Ve)}setPageData(Ie,Ve){this.purpleRef.setPageData(Ie,Ve)}setIssuePagerInfo(Ie){this.purpleRef.setIssuePagerInfo(Ie)}isIssuePager(){return!!this.issuePagerInfo}setCurrentPagerIssueId(Ie){if(this.issuePagerInfo){const Ve=this.issuePagerInfo.issues.findIndex(yt=>yt.id===Ie);-1!==Ve&&(this.issuePagerInfo.currentIndex=Ve,this.issuePagerInfo.visibleIndex=Ve)}}getDownloadHandler(Ie,Ve){var yt=this;return(0,u.A)(function*(){const Rt=Ie.id,zt=yt.DOWNLOAD_HANDLERS[Rt]&&(yield yt.DOWNLOAD_HANDLERS[Rt]);if(zt)return Ie.id===zt.content.id&&!U()(Ie,zt.content)&&(yield zt.setContent(Ie)),zt;const ft=yield yt.getPublication(Ie.publicationId);return yt.DOWNLOAD_HANDLERS[Rt]=new Promise((Ht,Zt)=>{const gt=new Ae({content:Ie,publication:ft,autoUpdate:!!yt.downloadOptions.autoUpdateBehavior,addAppStateListeners:!0});gt.initPromise.then(()=>{const dt=(0,p.A)((0,p.A)({},gt.state),{},{error:null}),Ct=new Q.t(dt);gt.addDownloadStateListeners(Et=>Ct.next(Et)),gt.updates$=Ct,Ve&&gt.updates$.pipe((0,ue.p)(Et=>!(!Et||!Et.error))).subscribe(Et=>{const dn=(0,Ce.$C)(Et.error,gt.content);Ve.alert({text:"ERROR_DOWNLOAD",args:dn},"DIALOG_ERROR")}),Ht(gt)}).catch(dt=>{Zt(dt)})}),yt.DOWNLOAD_HANDLERS[Rt]})()}destroyDownloadHandler(Ie){var Ve=this;return(0,u.A)(function*(){for(const yt in Ve.DOWNLOAD_HANDLERS)if((yield Ve.DOWNLOAD_HANDLERS[yt])===Ie){Ie.updates$.observers.length||delete Ve.DOWNLOAD_HANDLERS[Ie.content.id];break}})()}updateDownloadHandlers(){var Ie=this;return(0,u.A)(function*(){return Promise.all(Object.values(Ie.DOWNLOAD_HANDLERS).map(function(){var Ve=(0,u.A)(function*(yt){const Rt=yield yt;if(Rt.downloadStarted&&Rt.autoUpdate)try{yield Rt.update()}catch(zt){console.warn("error updating download handler",zt)}else Rt.updateState(!1,!0)});return function(yt){return Ve.apply(this,arguments)}}()))})()}updateDownloadHandlerStates(){var Ie=this;return(0,u.A)(function*(){return Promise.all(Object.values(Ie.DOWNLOAD_HANDLERS).map(Ve=>Ve.then(yt=>yt.updateState(!1,!0))))})()}loginAccount(Ie){var Ve=this;return(0,u.A)(function*(){var yt;return null===(yt=Ve.purpleRef.account)||void 0===yt?void 0:yt.login({token:Ie})})()}logoutAccount(){var Ie;return null===(Ie=this.purpleRef.account)||void 0===Ie?void 0:Ie.logout()}assignLocalPurchases(Ie){var Ve;return null===(Ve=this.purpleRef.account)||void 0===Ve?void 0:Ve.assignLocalPurchases({mode:Ie})}getAccountUserData(){var Ie=this;return(0,u.A)(function*(){var Ve;return null===(Ve=Ie.purpleRef.account)||void 0===Ve?void 0:Ve.getUserData()})()}overrideAppPerformActionUrlApi(){const Ie=this.injector.get(te.p);this.purpleRef.app.performActionUrl=function(){var Ve=(0,u.A)(function*({actionUrl:yt}){if(typeof WP<"u"&&WP.instance){const Rt=WP.instance.getCurrentPlayer();if(Rt.ctx.actionHandler.processAction({open:{URL:yt}},null,Rt))return}Ie.openUrl(yt)});return function(yt){return Ve.apply(this,arguments)}}()}openActionUrl(Ie,Ve,yt){const Rt="purple-action-url-frame";if(Ie.startsWith("purple://")&&this.purpleRef.app.performActionUrl&&!Ve)this.purpleRef.app.performActionUrl({actionUrl:Ie});else if(Ve){let zt=document.getElementById(Rt);zt||(zt=document.createElement("iframe"),zt.style.opacity="0",zt.id=Rt,document.body.appendChild(zt)),zt.src=Ie}else yt?window.open(Ie,yt):window.location.href=Ie}performAuthentication(Ie,Ve){var yt=this;return(0,u.A)(function*(){return yt.purpleRef.app.performAuthentication({url:Ie,callbackParamName:Ve||"callbackurl"})})()}addConnectionStateListener(Ie){this.purpleRef.app.addConnectionStateListener(Ie)}
1removeConnectionStateListener(Ie){this.purpleRef.app.removeConnectionStateListener(Ie)}addLifecycleListener(Ie){this.purpleRef.app.addLifecycleListener(Ie)}removeLifecycleListener(Ie){this.purpleRef.app.removeLifecycleListener(Ie)}getDisplayMode(){var Ie=this;return(0,u.A)(function*(){return(yield Ie.purpleRef.appBrowser.getDisplayConfig()).displayMode})()}isTitleBarEnabled(){var Ie=this;return(0,u.A)(function*(){return(yield Ie.purpleRef.appBrowser.getDisplayConfig()).titleBarEnabled})()}overrideBookmarkApis(){var Ie=this;const Ve="bookmarks-".concat(this.appData.appWebConfig.id);this.purpleRef.bookmark.createBookmark=function(){var yt=(0,u.A)(function*(Rt){const zt=(0,p.A)((0,p.A)({},Rt),{},{id:(0,Se.l)(),contentType:O.CatalogContentType.ISSUE,createdAt:Date.now(),contentId:Rt.issueId,issueId:Rt.issueId,issueType:void 0,sharingEnabled:Rt.sharingEnabled,customData:(0,p.A)({},Rt.customData)}),ft=(yield Ie.purpleRef.bookmark.getBookmarks()).bookmarks;return ft.push(zt),yield Ie.setState(Ve,JSON.stringify(ft)),{bookmark:zt}});return function(Rt){return yt.apply(this,arguments)}}(),this.purpleRef.bookmark.getBookmarks=(0,u.A)(function*(){return{bookmarks:JSON.parse(yield Ie.getState(Ve))||[]}}),this.purpleRef.bookmark.deleteBookmark=function(){var yt=(0,u.A)(function*({id:Rt}
1){const zt=(yield Ie.purpleRef.bookmark.getBookmarks()).bookmarks.filter(ft=>ft.id!==Rt);yield Ie.setState(Ve,JSON.stringify(zt))});return function(Rt){return yt.apply(this,arguments)}}()}getBookmarks(){var Ie=this;return(0,u.A)(function*(){return(0,be._)(Ie.bookmarks$)})()}updateBookmarks(){var Ie=this;return(0,u.A)(function*(){const Ve=(yield Ie.purpleRef.bookmark.getBookmarks()).bookmarks;return Ie.bookmarksSubject.next(Ve),Ve})()}createBookmark(Ie){var Ve=this;return(0,u.A)(function*(){const yt=yield Ve.purpleRef.bookmark.createBookmark(Ie);return yield Ve.updateBookmarks(),yt})()}deleteBookmark(Ie){var Ve=this;return(0,u.A)(function*(){yield Ve.purpleRef.bookmark.deleteBookmark(Ie),yield Ve.updateBookmarks()})()}deleteBookmarks(Ie){var Ve=this;return(0,u.A)(function*(){for(const yt of Ie)yield Ve.purpleRef.bookmark.deleteBookmark({id:yt});yield Ve.updateBookmarks()})()}overrideCatalogApis(){this.purpleRef.catalog.getSubscriptions=function(){var Ie=(0,u.A)(function*(Ve){return vt});return function(Ve){return Ie.apply(this,arguments)}}(),this.purpleRef.catalog.getPublicationProducts=function(){var Ie=(0,u.A)(function*(Ve){return vt});return function(Ve){return Ie.apply(this,arguments)}}()}getPublications(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){return yt.withApiCache("getPublications",yt.purpleRef.catalog.getPublications,Ie,Ve,zt=>{zt.forEach(ft=>{yt.cacheService.PURPLE_PUBLICATION_CACHE[ft.id]=yt.cacheService.setOptionalCache(ft,"getPublications",Ie)}),yt.cacheService.updateTransferStateAndStorage([F.B.PURPLE_PUBLICATION_CACHE,F.B.PURPLE_CONTENT_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getIssues(Ie,Ve=!1,yt=!1){var Rt=this;return(0,u.A)(function*(){const ft=tt(Ie);return yt&&(ft.fetchOptions={includeResources:!0}),Rt.withApiCache("getContents",Rt.purpleRef.catalog.getContents,ft,Ve,Ht=>{Ht.forEach(Zt=>Rt.cacheService.PURPLE_CONTENT_CACHE[Zt.id]=Rt.cacheService.setOptionalCache(Zt)),Rt.cacheService.updateTransferStateAndStorage([F.B.PURPLE_CONTENT_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getLocalIssues(Ie,Ve=!1,yt){var Rt=this;return(0,u.A)(function*(){var zt;const ft=(yield Rt.purpleRef.catalog.getLocalIssues()).issues.filter(Zt=>yt?Zt.state.installState===yt:Zt.state.installState!==O.ContentInstallState.NOT_INSTALLED);let Ht=[];
1if(!ft.length)return{issues:Ht};try{if(Ve){for(const Zt of ft){let Vt={};try{Vt=yield Rt.getIssueFromCache(Zt.id)}catch(gt){}Ht.push((0,p.A)((0,p.A)((0,p.A)({},_.G9),Zt),Vt))}Ie.issueFilter&&(Ht=Ht.filter(Zt=>(0,R.tU)(Ie.issueFilter,Zt)))}else{const Zt=(0,p.A)((0,p.A)({},Ie),{},{issueFilter:(0,_.Ty)(ft.map(Vt=>Vt.id),Ie.issueFilter)});Ht=(yield Rt.getIssues(Zt,!0)).nodes}}catch(Zt){Ht=(yield Promise.all(ft.map(function(){var gt=(0,u.A)(function*(dt,Ct){let Et=_.G9;try{Et=(0,p.A)((0,p.A)({},Et),yield Rt.getIssue(dt.id).catch(()=>null))}catch(Bn){console.error(Bn)}const dn=(0,p.A)((0,p.A)({},Et),dt);return Rt.cacheService.PURPLE_CONTENT_CACHE[dt.id]||(Rt.cacheService.PURPLE_CONTENT_CACHE[dt.id]=dn),dn});return function(dt,Ct){return gt.apply(this,arguments)}}()))).filter(gt=>(0,R.tU)(Ie.issueFilter,gt))}return Ht=Ht.sort((0,B.Rh)(null!==(zt=Ie.sort)&&void 0!==zt?zt:[])),Ht.forEach(Zt=>{const Vt=ft.find(gt=>gt.id===Zt.id&&gt.version===Zt.version);Vt&&(Zt.state=Vt.state)}),{issues:Ht}})()}getCatalogContents(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){return yt.withApiCache("getContents",yt.purpleRef.catalog.getContents||yt.purpleRef.catalog.getIssues,Ie,Ve,zt=>{zt.forEach(ft=>{yt.cacheService.PURPLE_CONTENT_CACHE[ft.id]=yt.cacheService.setOptionalCache(ft,"getContents",Ie)}),yt.cacheService.updateTransferStateAndStorage([F.B.PURPLE_CONTENT_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}completePost(Ie,Ve){var yt=this;return(0,u.A)(function*(){const Rt={includeResources:"resources",includeBlocks:"content",includeHtml:"contentHtml",includeBundledContent:"contents",seoMetadata:"seoMetadata"},zt=yt.cacheService.PURPLE_OPTIONAL_CACHE[Ie.id];if(Object.entries(Rt).some(([Zt,Vt])=>Ve[Zt]&&!Ie[Vt]&&!(null!=zt&&zt[Vt]))||(null==zt?void 0:zt.version)!==(null==Ie?void 0:Ie.version))return yield yt.getCatalogContent(Ie.id,!0,Ve);let Ht=(0,p.A)((0,p.A)({},Ie),zt.downloadedBy?{downloadedBy:zt.downloadedBy}:{});for(let[Zt,Vt]of Object.entries(Rt))Zt&&(Ht[Vt]=zt[Vt]);return Ht})()}getOptionalData(Ie,Ve,yt){var Rt=this;return(0,u.A)(function*(){if((0,De.mF)(Ie))return yield Rt.completePost(Ie,Ve);
1if((0,De.G4)(Ie)){const zt=(0,De.Ig)(Ie);return yield Rt.completePost(zt[yt],Ve)}throw new Error("Invalid content type for getOptionalData: ".concat(Ie.contentType))})()}getCollections(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){return yt.withApiCache("getCollections",yt.purpleRef.catalog.getCollections,Ie,Ve,zt=>{zt.forEach(ft=>yt.cacheService.PURPLE_COLLECTION_CACHE[ft.id]=yt.cacheService.setOptionalCache(ft,"getCollections",Ie)),yt.cacheService.updateTransferStateAndStorage([F.B.PURPLE_COLLECTION_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getCategories(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){return yt.withApiCache("getCategories",yt.purpleRef.catalog.getCategories,Ie,Ve,zt=>{zt.forEach(ft=>yt.cacheService.PURPLE_TAXONOMY_CACHE[ft.id]=ft),yt.cacheService.updateTransferStateAndStorage(F.B.PURPLE_TAXONOMY_CACHE)})})()}getTaxonomies(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){return yt.withApiCache("getTaxonomies",yt.purpleRef.catalog.getTaxonomies,Ie,Ve,zt=>{zt.forEach(ft=>{yt.cacheService.PURPLE_TAXONOMY_CACHE[yt.cacheService.getTaxonomyCacheKey(ft.internalId)]=yt.cacheService.setOptionalCache(ft,"getTaxonomies",Ie)}),yt.cacheService.updateTransferStateAndStorage([F.B.PURPLE_TAXONOMY_CACHE,F.B.PURPLE_OPTIONAL_CACHE])})})()}getMenus(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){return yt.withApiCache("getMenus",yt.purpleRef.catalog.getMenus,Ie,Ve,zt=>{zt.forEach(ft=>{yt.cacheService.PURPLE_MENU_CACHE[ft.id]=ft}),yt.cacheService.updateTransferStateAndStorage(F.B.PURPLE_MENU_CACHE)})})()}getSubscriptions(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.catalog.getSubscriptions(Ie)})()}getCatalogAppSettings(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.catalog.getAppSettings(Ie)})()}search(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.catalog.search(Ie).then(yt=>(yt.nodes.forEach(Rt=>
1{const zt=(0,De.tr)(Rt);Ve.cacheService.PURPLE_CONTENT_CACHE[zt.id]=zt}),Ve.cacheService.updateTransferStateAndStorage(F.B.PURPLE_CONTENT_CACHE),yt))})()}getIssueStates(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.catalog.getIssueStates(Ie)})()}addInvalidationListener(Ie){this.isCatalogAPIAvailable()&&this.purpleRef.catalog.addInvalidationListener(Ie)}removeInvalidationListener(Ie){this.purpleRef.catalog.removeInvalidationListener(Ie)}getPublicationProducts(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.catalog.getPublicationProducts(Ie).then(yt=>yt.nodes)})()}getCatalogMetadata(){var Ie=this;return(0,u.A)(function*(){return Ie.purpleRef.catalog.getMetadata()})()}getProducts(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.catalog.getProducts({productId:Ie})})()}getRedirects(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.withApiCache("getRedirects",Ve.purpleRef.catalog.getRedirects,Ie,!1,Rt=>{Rt.forEach(zt=>{Ve.cacheService.PURPLE_REDIRECT_CACHE[zt.id]=zt}),Ve.cacheService.updateTransferStateAndStorage(F.B.PURPLE_REDIRECT_CACHE)})})()}lookupPathSegments(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.withApiCache("lookupPathSegments",Ve.purpleRef.catalog.lookupPathSegments,{pathSegments:Ie},!1,Rt=>{Rt.forEach(zt=>{Ve.cacheService.PURPLE_PATH_SEGMENT_CACHE[zt.identifier]=zt}),Ve.cacheService.updateTransferStateAndStorage(F.B.PURPLE_PATH_SEGMENT_CACHE)})})()}isCatalogAPIAvailable(){return!!this.purpleRef.catalog}overrideConsentApis(){const Ie=this.injector.get(_e.e);this.purpleRef.consent.getConsent=function(){var Ve=(0,u.A)(function*(yt){return yield Ie.init$,Ie.getConsent(yt)});return function(yt){return Ve.apply(this,arguments)}}(),this.purpleRef.consent.grantConsent=function(){var Ve=(0,u.A)(function*(yt){yield Ie.init$,Ie.grantConsent(yt)});return function(yt){return Ve.apply(this,arguments)}}(),this.purpleRef.consent.showPrivacyManager=(0,u.A)(function*(){return yield Ie.init$,Ie.showPrivacyManager()})}overrideContentOpenApi(){var Ie=this;this.purpleRef.content.open=function(){var Ve=(0,u.A)(function*(yt){var Rt,zt;let ft=!1;const Ht={OR:yt.issueIds.map(Hn=>({id:{value:Hn}}))},Zt=(yield Ie.getIssues({issueFilter:Ht})).nodes||[];if(!Zt.length)throw{code:"NO_ISSUES_FOUND"};const Vt=new Map;if(yt.issueIds.forEach(Hn=>{const Cr=Zt.filter(Qt=>Qt.id===Hn);if(Cr.length>0){const Qt=Cr[0];Qt.access!=O.Access.FREE&&!Qt.purchaseData.purchased&&(ft=!0),Vt.set(Hn,Qt)}}),0===Vt.size)throw{code:"PAYMENT_REQUIRED"};const gt=[];Vt.forEach((Hn,Cr)=>{gt.push({id:Cr,name:Hn.name,publication:Hn.publication})});const dt=Math.max(gt.findIndex(Hn=>{var Cr;return Hn.id===(null===(Cr=yt.initialIssue)||void 0===Cr?void 0:Cr.id)}),0);Ie.issuePagerInfo={visibleIndex:dt,currentIndex:dt,issues:gt,displayConfig:yt.config},Ie.setIssuePagerInfo(Ie.issuePagerInfo);const Ct=gt[dt].id,Et=null===(Rt=yt.initialIssue)||void 0===Rt?void 0:Rt.initialPage,dn={};Et&&(Et.id?dn.actionUrl="purple://kiosk/issue/current/page/".concat(Et.id,"/open"):Et.index?dn.actionUrl="purple://kiosk/issue/current/page/index/".concat(Et.index,"/open"):Et.alias&&(dn.actionUrl="purple://kiosk/issue/current/page/alias/".concat(Et.alias,"/open"))),null!==(zt=yt.config)&&void 0!==zt&&zt.titleBar||(dn.titleBar="false"),ft&&(dn.customerPreview=ft),Ie.router.navigate(Ie.appData.customDomain?["presenter",Ct]:[Ie.appData.brand,"presenter",Ct],{queryParams:dn,queryParamsHandling:"merge"})});return function(yt){return Ve.apply(this,arguments)}}()}openContent(Ie){var Ve=this;return(0,u.A)(function*(){return new Promise((yt,Rt)=>{Ve.purpleRef.content.open(Ie).then(zt=>yt(zt),zt=>Rt(zt))})})()}overrideCloseViewJsApi(){this.purpleRef.closeView=()=>{PP.InternalBrowser.stop()}}closeView(){this.purpleRef.closeView()}getEntitlementUserData(){var Ie=this;return(0,u.A)(function*(){return Ie.purpleRef.entitlement.getUserData()})()}login(Ie,Ve,yt){var Rt=this;
1return(0,u.A)(function*(){const zt={};if(Ie&&(zt.username=Ie,zt.password=Ve),Rt.purpleEnv.isUniversal){var ft,Ht;const Zt=null!==(ft=null!==(Ht=null==yt?void 0:yt.redirectUrl)&&void 0!==Ht?Ht:JSON.parse(sessionStorage.getItem(O.LAST_VISITED_PATH)).lastVisitedPath)&&void 0!==ft?ft:Rt.injector.get(je.V).getHomeUrl();zt.state={redirectUrl:Zt}}return Rt.purpleRef.entitlement.login(zt)})()}logout(Ie){var Ve=this;return(0,u.A)(function*(){const yt={};if(Ve.purpleEnv.isUniversal){var Rt;const zt=null!==(Rt=null==Ie?void 0:Ie.redirectUrl)&&void 0!==Rt?Rt:Ve.injector.get(je.V).getHomeUrl();yt.state={redirectUrl:zt}}return Ve.purpleRef.entitlement.logout(yt)})()}checkForOauthEntitlement(){var Ie=this;return(0,u.A)(function*(){return yield Ie.purpleRef.entitlement.checkForOauthEntitlement()})()}loginWithToken(Ie){var Ve=this;return(0,u.A)(function*(){yield Ve.purpleRef.entitlement.verifyAccessToken({accessToken:Ie})})()}getMetadata(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.metadata.getMetadata({keys:Object.values(O.METADATA_KEY)})})()}getState(Ie){var Ve=this;return(0,u.A)(function*(){return(yield Ve.purpleRef.state.getState({key:Ie})).value})()}setState(Ie,Ve){var yt=this;return(0,u.A)(function*(){yield yt.purpleRef.state.setState({key:Ie,value:Ve})})()}purchase(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.store.purchase(Ie)})()}subscribe(Ie,Ve,yt){var Rt=this;return(0,u.A)(function*(){let zt;if(Ve){const Ht=(yield Rt.getSubscriptions({})).nodes.find(Zt=>Zt.purchased);zt=Ht&&{oldProductId:Ht.productId,prorationMode:Ve}}return Rt.purpleRef.store.subscribe({productId:Ie,replaceProductParams:zt,offerId:yt})})()}restorePurchases(){var Ie=this;return(0,u.A)(function*(){return Ie.purpleRef.store.restorePurchases()})()}getPrice(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.store.getPrices({productIds:[Ie]}).then(yt=>yt.priceInfos[0])})()}addSubscriptionCode(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.store.addSubscriptionCode({code:Ie})})()}removeSubscriptionCode(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.store.removeSubscriptionCode({code:Ie})})()}getSubscriptionCodes(){var Ie=this;return(0,u.A)(function*(){return(yield Ie.purpleRef.store.getSubscriptionCodes()).subscriptionCodes})()}getPrices(Ie){var Ve=this;return(0,u.A)(function*(){return Ve.purpleRef.store.getPrices({productIds:Ie})})()}overrideTrackingApis(){const Ie=this.injector.get($.c);this.overrideLegacyTrackingApis(this.purpleRef,Ie),this.purpleRef.tracking.setUserAttribute=function(){var Ve=(0,u.A)(function*(yt){Ie.setUserAttribute(yt)});return function(yt){return Ve.apply(this,arguments)}}(),this.purpleRef.tracking.debug=function(){var Ve=(0,u.A)(function*(yt){Ie.toggleLogging(yt.logging)});return function(yt){return Ve.apply(this,arguments)}}()}overrideLegacyTrackingApis(Ie,Ve){Ie.tracking.trackView=function(){var yt=(0,u.A)(function*(Rt,zt){"string"==typeof Rt?Rt={key:Rt,optionalParams:zt}:zt=Rt.optionalParams,Ve.sendView(Rt.key,zt)});return function(Rt,zt){return yt.apply(this,arguments)}}(),Ie.tracking.trackAction=function(){var yt=(0,u.A)(function*(Rt,zt){"string"==typeof Rt?Rt={key:Rt,optionalParams:zt}:zt=Rt.optionalParams,Ve.sendEvent(Rt.key,zt)});return function(Rt,zt){return yt.apply(this,arguments)}}(),Ie.tracking.trackPurchase=function(){var yt=(0,u.A)(function*(Rt,zt){"string"==typeof Rt?Rt={key:Rt,optionalParams:zt}:zt=Rt.optionalParams,Ve.sendPurchase(Rt.key,zt)});return function(Rt,zt){return yt.apply(this,arguments)}}()}trackAction(Ie,Ve){var yt=this;return(0,u.A)(function*(){const Rt={key:(0,_.Dh)(Ie),optionalParams:(0,_.P8)(Ve||{})};return yt.purpleRef.tracking.trackAction(Rt)})()}trackView(Ie,Ve){var yt=this;return(0,u.A)(function*(){const Rt={key:(0,_.Dh)(Ie),optionalParams:(0,_.P8)(Ve||{})};return yt.purpleRef.tracking.trackView(Rt)})()}trackPurchase(Ie){var Ve=this;return(0,u.A)(function*(){return Ie.key=(0,_.Dh)(Ie.key),Ie.optionalParams&&(Ie.optionalParams=(0,_.P8)(Ie.optionalParams)),Ve.purpleRef.tracking.trackPurchase(Ie)})()}setUserAttribute(Ie){var Ve=this;return(0,u.A)(function*(){return Ie.key=(0,_.Dh)(Ie.key),Ve.purpleRef.tracking.setUserAttribute(Ie)})()}initCache(){var Ie=this;return(0,u.A)(function*(){const[Ve]=yield Promise.all([Ie.getState(Tt),Ie.updateBookmarks(),Ie.updateRepeatablePublicationProducts()]);Dt===Ve?yield Ie.cacheService.restoreCachesFromStorage():(console.debug("Cache version: ".concat(Ve,", Experience version: ").concat(Dt,": ignoring cache")),Ie.setState(Tt,Dt))})()}extractIdsFromApiResponse(Ie,Ve){var yt,Rt;if(!Ie)return[];switch(Ve){case"lookupPathSegments":return Ie.map(zt=>zt.identifier)||[];case"getTaxonomies":return(null===(yt=Ie.nodes)||void 0===yt?void 0:yt.map(zt=>this.cacheService.getTaxonomyCacheKey(zt.internalId)))||[];default:return(null===(Rt=Ie.nodes)||void 0===Rt?void 0:Rt.map(zt=>zt.id))||[]}}removeDownloadedByIdFromFetchOptions(Ie){const Ve=(0,p.A)({},null==Ie?void 0:Ie.fetchOptions),yt=null==Ve?void 0:Ve.downloadedById;yt&&delete Ve.downloadedById;const Rt=(0,p.A)({},Ie);return Object.keys(Ve).length>0?Rt.fetchOptions=Ve:delete Rt.fetchOptions,{modifiedParams:Rt,downloadedById:yt}}withApiCache(Ie,Ve,yt,Rt=!1,zt){var ft=this;return(0,u.A)(function*(){let{modifiedParams:Ht,downloadedById:Zt}=ft.removeDownloadedByIdFromFetchOptions(yt);
1const Vt="".concat(Ie,":").concat(JSON.stringify(Ht)),gt=function(){var dt=(0,u.A)(function*(){if(!Rt&&ft.cacheService.PURPLE_API_CACHE[Vt]){const Et=ft.cacheService.getResponseOrFalseFromCache(Ie,Ht);return Promise.resolve(Et?(0,p.A)((0,p.A)({},ft.cacheService.PURPLE_API_CACHE[Vt]),{},{nodes:[Et]}):ft.cacheService.getApiCache(Ie,Ht))}return Ve(Ht).then(Et=>{const dn=Date.now(),Bn=ft.extractIdsFromApiResponse(Et,Ie);return ft.cacheService.PURPLE_API_CACHE[Vt]=(0,p.A)((0,p.A)((0,p.A)({},"lookupPathSegments"!==Ie&&(0,p.A)({},Et)),Zt&&{downloadedById:Zt}),{},{timestamp:dn,nodes:Bn}),zt&&zt("lookupPathSegments"!==Ie?Et.nodes:Et),Et}).catch(Et=>{throw"Error [withApiCache] [".concat(Ie,"]: ").concat(Et)})});return function(){return dt.apply(this,arguments)}}();return(0,H.Vy)(ft.platformId)?yield(0,Oe.a)(Vt,(0,u.A)(function*(){return yield gt()})):yield gt()})()}getPublicationsFromCache(Ie){return this.cacheService.getApiCache("getPublications",Ie)}getIssuesFromCache(Ie){const Ve=tt(Ie);return this.cacheService.getApiCache("getContents",Ve)}getCatalogContentsFromCache(Ie){return this.cacheService.getApiCache("getContents",Ie)}getCollectionsFromCache(Ie){return this.cacheService.getApiCache("getCollections",Ie)}getCategoriesFromCache(Ie){return this.cacheService.getApiCache("getCategories",Ie)}getTaxonomiesFromCache(Ie){return this.cacheService.getApiCache("getTaxonomies",Ie)}getCatalogMenusFromCache(Ie){return this.cacheService.getApiCache("getMenus",Ie)}getIssue(Ie,Ve=!1,yt){var Rt=this;return(0,u.A)(function*(){try{const zt={first:1};return Ie&&(zt.issueFilter={id:{value:Ie}}),(yield Rt.getIssues(zt,Ve)).nodes[0]}catch(zt){if(Rt.cacheService.PURPLE_CONTENT_CACHE[Ie])return Rt.cacheService.PURPLE_OPTIONAL_CACHE[Ie]?(0,p.A)((0,p.A)({},Rt.cacheService.PURPLE_CONTENT_CACHE[Ie]),Rt.cacheService.PURPLE_OPTIONAL_CACHE[Ie]):Rt.cacheService.PURPLE_CONTENT_CACHE[Ie];if(yt){const ft=(0,p.A)((0,p.A)({},_.G9),yt);return Rt.cacheService.PURPLE_CONTENT_CACHE[Ie]=ft,ft}throw zt}})()}getIssueFromCache(Ie){if(this.cacheService.PURPLE_CONTENT_CACHE[Ie])return this.cacheService.PURPLE_CONTENT_CACHE[Ie];{const Ve=this.getIssuesFromCache({first:1,issueFilter:{id:{value:Ie}}});return(0,p.A)((0,p.A)({},Ve.then(yt=>yt.nodes[0])),{},{timestamp:Ve.timestamp})}}getCatalogContent(Ie,Ve=!1,yt){var Rt=this;
1return(0,u.A)(function*(){const zt={first:1,fetchOptions:yt,contentFilter:{id:{value:Ie}}};try{const ft=(yield Rt.getCatalogContents(zt,Ve)).nodes[0];if(ft)return ft}catch(ft){console.error(ft)}throw new Error("CatalogContent not found")})()}getCollection(Ie,Ve=!1,yt){var Rt=this;return(0,u.A)(function*(){try{if(Rt.cacheService.PURPLE_COLLECTION_CACHE[Ie]&&!Ve)return Rt.cacheService.PURPLE_COLLECTION_CACHE[Ie];{const zt={first:1};Ie&&(zt.collectionFilter={id:{value:Ie}}),yt&&(zt.elementsParams=yt);const ft=(yield Rt.getCollections(zt,Ve)).nodes[0];if(!ft)throw new Error("Collection ".concat(Ie," not found"));return ft}}catch(zt){if(Rt.cacheService.PURPLE_COLLECTION_CACHE[Ie])return Rt.cacheService.PURPLE_COLLECTION_CACHE[Ie];throw zt}})()}getCollectionFromCache(Ie){if(this.cacheService.PURPLE_COLLECTION_CACHE[Ie])return this.cacheService.PURPLE_COLLECTION_CACHE[Ie];{const Ve=this.getCollectionsFromCache({first:1,collectionFilter:{id:{value:Ie}}});return(0,p.A)((0,p.A)({},Ve.then(yt=>yt.nodes[0])),{},{timestamp:Ve.timestamp})}}getMenu(Ie,Ve=!1,yt){var Rt=this;return(0,u.A)(function*(){try{if(Rt.cacheService.PURPLE_MENU_CACHE[Ie]&&!Ve)return Rt.cacheService.PURPLE_MENU_CACHE[Ie];{const zt=(0,p.A)({first:1},yt);Ie&&(zt.contentFilter={id:{value:Ie}});const ft=(yield Rt.getMenus(zt,Ve)).nodes[0];if(!ft)throw new Error("CatalogMenu not found");return ft}}catch(zt){if(Rt.cacheService.PURPLE_MENU_CACHE[Ie])return Rt.cacheService.PURPLE_MENU_CACHE[Ie];throw zt}})()}getCatalogMenuFromCache(Ie){if(this.cacheService.PURPLE_MENU_CACHE[Ie])return this.cacheService.PURPLE_MENU_CACHE[Ie];{const Ve=this.getCatalogMenusFromCache({first:1,issueFilter:{id:{value:Ie}}});return(0,p.A)((0,p.A)({},Ve.then(yt=>yt.nodes[0])),{},{timestamp:Ve.timestamp})}}getPublication(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){if(yt.cacheService.PURPLE_PUBLICATION_CACHE[Ie]&&!Ve)return yt.cacheService.PURPLE_PUBLICATION_CACHE[Ie];{const Rt={first:1};return Rt.publicationFilter={id:{value:Ie}},(yield yt.getPublications(Rt,Ve)).nodes[0]}})()}getPublicationFromCache(Ie){if(this.cacheService.PURPLE_PUBLICATION_CACHE[Ie])return this.cacheService.PURPLE_PUBLICATION_CACHE[Ie];{const Ve=this.getPublicationsFromCache({first:1,publicationFilter:{id:{value:Ie}}});return(0,p.A)((0,p.A)({},Ve.then(yt=>yt.nodes[0])),{},{timestamp:Ve.timestamp})}}getCategory(Ie,Ve=!1){var yt=this;return(0,u.A)(function*(){if(yt.cacheService.PURPLE_TAXONOMY_CACHE[Ie])return yt.cacheService.PURPLE_TAXONOMY_CACHE[Ie];{const Rt={first:1};return Ie&&(Rt.categoryFilter={id:{value:Ie}}),(yield yt.getCategories(Rt,Ve)).nodes[0]}})()}getTaxonomy(Ie,Ve,yt=!1,Rt){var zt=this;return(0,u.A)(function*(){const ft={id:{value:Ie}},Zt={first:1,fetchOptions:Rt,taxonomyFilter:Ve?{AND:[ft,{type:{value:Ve}}]}:ft};return(yield zt.getTaxonomies(Zt,yt)).nodes[0]})()}initWebPlatform(Ie){this.initPurpleRef(Ie),this.overrideJsApisForServer(),window.purple=this.purpleRef}initPurpleRef(Ie){const Ve=this.injector.get(je.V),yt=Object.values(ot.d);this.purpleRef=new fe.Fw(Ie,(Rt,zt)=>{this.updateEntitlementStorage(yt,"entitlementUserData",zt,Rt),this.updateSubscriptionCodeStorage(zt,Rt),Ve.updateMetadata()})}updateEntitlementStorage(Ie,Ve,yt,Rt){if(Ie.includes(yt)){const zt=JSON.parse(localStorage.getItem(Ve))||{};zt[yt]=Rt[yt],localStorage.setItem(Ve,JSON.stringify(zt))}}updateSubscriptionCodeStorage(Ie,Ve){"subscriptionCodes"===Ie&&localStorage.setItem("subscriptionCodes",JSON.stringify(Ve.subscriptionCodes||[]))}overrideJsApisForServer(){this.overrideAppPerformActionUrlApi(),this.overrideBookmarkApis(),this.overrideCatalogApis(),this.overrideConsentApis(),this.overrideContentOpenApi(),this.overrideTrackingApis(),this.overrideCloseViewJsApi()}initAppPlatform(){this.purpleRef=window.purple}initPurpleExperience(){const Ie=this.injector.get(Te.d);this.purpleRef.experience=new et(this.injector),this.purpleRef.experience.global=Ie.getGlobalData(),this.purpleRef.experience.appWebConfig=this.appData.appWebConfig}subscribeToConfigLoaderService(){this.injector.get(J.Bh).getConfig().pipe((0,X.$)()).subscribe(Ve=>{this._downloadOptions=Ve[ne.O.DOWNLOAD_OPTIONS]||{},window.isIssueLocked&&(this.isContentLocked=window.isIssueLocked)})}initListeners(){this.addInvalidationListener(()=>this.invalidate());let Ie=!0;this.addLifecycleListener(Ve=>{Ie||window.dispatchEvent(new CustomEvent(ce.aU,{detail:Ve})),Ie=!1}),this.addConnectionStateListener(Ve=>{this.connectionStateSubject.next(Ve)})}}return(xt=qe).\u0275fac=function(Ie){return new(Ie||xt)},xt.\u0275prov=o.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"}),qe})();function Dn(xt,qe){return Pn.apply(this,arguments)}function Pn(){return(Pn=(0,u.A)(function*(xt,qe){return xt&&xt.access===O.Access.PURCHASABLE&&!xt.purchaseData.purchased||qe.isContentLocked(xt,qe)})).apply(this,arguments)}function $n(xt,qe){const Kt=qe.PURPLE_CONTENT_CACHE[xt];return Kt&&Kt.previewIssue}function In(xt,qe){return qe&&xt.updateAvailable&&xt.installState===O.ContentInstallState.COMPLETE}},8075:(le,E,d)=>{"use strict";d.d(E,{CV:()=>O,IN:()=>U,ON:()=>v,UB:()=>x,Yn:()=>u});var p=d(9379);function u(Q){return function o(Q){return Q.length&&Q.join("/")||"/"}(Q.url)}function v(Q="",re=!1){if(re){const be=Q.match(/modal:popup\/([^),^/]*)/),ue=be&&be[1];if(ue)return ue}return(Q=Q.split("?")[0].split("(")[0]).length<2||!Q.startsWith("/")?Q:Q.substring(1)}function O(Q,re){var be;let ue={};const X=Q.getCurrentNavigation();return null!=X&&null!==(be=X.extras)&&void 0!==be&&be.queryParams&&(ue=(0,p.A)({},X.extras.queryParams)),ue=(0,p.A)((0,p.A)({},ue),re),Q.navigate([],{queryParams:ue,queryParamsHandling:"merge",replaceUrl:!0})}function x(Q,re){const be=U();return Q.navigate(re,{queryParams:be,queryParamsHandling:"merge",replaceUrl:!0})}function U(Q){return null!=Q||(Q=window.location.search),Object.fromEntries(new URLSearchParams(Q))}},2039:(le,E,d)=>{"use strict";d.d(E,{$:()=>o});var p=d(3953),u=d(345);let o=(()=>{var v;class O{constructor(){this.sanitizer=(0,p.WQX)(u.up)}transform(U){return this.sanitizer.bypassSecurityTrustHtml(U)}}return(v=O).\u0275fac=function(U){return new(U||v)}
1,v.\u0275pipe=p.EJ8({name:"safeHtml",type:v,pure:!0,standalone:!1}),O})()},4871:(le,E,d)=>{"use strict";d.d(E,{E:()=>v});var p=d(177),u=d(2039),o=d(3953);let v=(()=>{var O;class x{}return(O=x).\u0275fac=function(Q){return new(Q||O)},O.\u0275mod=o.$C({type:O}),O.\u0275inj=o.G2t({providers:[u.$],imports:[p.MD]}),x})()},3377:(le,E,d)=>{"use strict";d.d(E,{p:()=>w});var p=d(3953),u=d(3331),o=d(693),v=d(5204),O=d(9668),x=d(6078),U=d(9516),Q=d(467),re=d(3785),be=d(4088),ue=d(873),X=d(20),ne=d(9118),te=d(2838),$=d(4843),J=d(7879);let se=(()=>{var B;class z{constructor(){this.kioskConfigService=(0,p.WQX)(ne.x),this.resourceService=(0,p.WQX)(te.Q),this.dialogService=(0,p.WQX)(X.o),this.appData=(0,p.WQX)(J.fj)}init(){var V=this;return(0,Q.A)(function*(){const[k,K]=yield Promise.all([d.e(9781).then(d.t.bind(d,9781,23)),d.e(386).then(d.t.bind(d,386,23))]);V.mustache=K.default,V.clientjs=new k.ClientJS;const ge=yield(0,$._)(V.kioskConfigService.getConfig()),ve=V.resourceService.loadResource("email_feedback_config.json",!0),Fe=V.resourceService.loadResource("email_feedback_subject.mustache",!1),We=V.resourceService.loadResource("email_feedback_body.mustache",!1),[ze,bt,Ke,Me]=yield Promise.all([ge,ve,Fe,We]);return V.appData.preview&&!bt&&V.dialogService.alert((0,re.sprintf)(ze.kioskConfig.messages.dialog_file_invalid_message_web,"email_feedback_config.json")),{kioskConfig:ze.kioskConfig,config:null!=bt?bt:ue.$I.config,subject:null!=Ke?Ke:"",body:null!=Me?Me:""}})()}openMail(){var V;null!==(V=this.init$)&&void 0!==V||(this.init$=this.init()),this.init$.then(({kioskConfig:k,config:K,subject:ge,body:ve})=>{const Fe=new URL("mailto:"),{to:We,cc:ze,bcc:bt}=K.recipients;(null==We?void 0:We.length)>0&&(Fe.host=We.join(",")),(null==ze?void 0:ze.length)>0&&Fe.searchParams.set("cc",ze.join(",")),(null==bt?void 0:bt.length)>0&&Fe.searchParams.set("bcc",bt.join(","));const Ke=this.getReplacements(k);ve&&Fe.searchParams.set("body",this.renderTemplate(ve,Ke)),ge&&Fe.searchParams.set("subject",this.renderTemplate(ge,Ke));const Me=Fe.toString().replace(/\+/g," ");window.open(Me,"_self")})}renderTemplate(V,k){return this.mustache.render(V,k)}getReplacements(V){const k=V.messages;return{appName:V.appName,appVersionLabel:k.app_version_title_web,appVersion:"-",versionSectionLabel:k.version_title_web,deviceSectionLabel:k.device_title_web,deviceModelLabel:k.device_model_web,deviceModel:this.clientjs.getDevice()||"-",osVersionLabel:k.os_version_web,osVersion:"".concat(this.clientjs.getOS(),"-").concat(this.clientjs.getOSVersion()," | ").concat(this.clientjs.getBrowser(),"-").concat(this.clientjs.getBrowserVersion()),manufacturerLabel:k.manufacturer_web,manufacturer:this.clientjs.getDeviceVendor()||"-",connectionLabel:k.connection_web,connection:location.protocol.slice(0,-1),deviceIdLabel:k.device_id_title_web,deviceId:this.clientjs.getFingerprint(),purpleVersionBlock:"Purple: ".concat(be.c.appVersion,", Engine: 3.24.3"),platform:"Web"}}}return(B=z).\u0275fac=function(V){return new(V||B)},B.\u0275prov=p.jDH({token:B,factory:B.\u0275fac,providedIn:"root"}),z})();var De=d(496),Ce=d(6010),ce=d(7370),_=d(4404),R=d(4501);let w=(()=>{var B;class z{constructor(){this.router=(0,p.WQX)(u.Ix),this.route=(0,p.WQX)(u.nX),this.contextService=(0,p.WQX)(U.V),this.purpleService=(0,p.WQX)(Ce.Wj),this.browserService=(0,p.WQX)(O.I),this.publicationService=(0,p.WQX)(De.m),this.analyticsService=(0,p.WQX)(o.c),this.kioskConfigService=(0,p.WQX)(ne.x),this.appMenuService=(0,p.WQX)(v.I),this.feedbackMailService=(0,p.WQX)(se),this.consentService=(0,p.WQX)(x.e),this.appData=(0,p.WQX)(J.fj)}openUrl(V,k,K){let ge,ve;try{ge=V.split("://")[1].split("?")[0],ve=ge.split("/")}catch(We){return void console.debug("error",V,We)}let Fe=0;switch(ve[Fe]){case"kiosk":switch(Fe++,ve[Fe]){case"issue":{Fe++;let ze,bt,We=!1;"alias"===ve[Fe]?(Fe++,We=!0):"by_external_id"===ve[Fe]&&(Fe++,ze=!0),bt=We?this.publicationService.selectByIssueCriteria(null,ve[Fe]):ze?this.publicationService.selectByIssueCriteria(null,null,ve[Fe]):this.publicationService.selectByIssueCriteria(ve[Fe]),bt.then(Ke=>{if(Fe++,!Ke||"open"!==ve[Fe]&&"page"!==ve[Fe]){if(ze&&!Ke){const Me=decodeURIComponent((0,ce.P3)("fallback_url",V));if(Me){if(K)return!0;window.open(Me,(0,ce.P3)("target",V)||"_blank"),this.appMenuService.setOpen(!1)}}else if(!Ke){if(K)return!1;k&&"function"==typeof k&&k("No such issue available"),this.analyticsService.init$.then(()=>
1this.analyticsService.sendEvent(R.l.Actions.KIOSK_ISSUE_OPEN_FAILED,{ISSUE_ID:this.publicationService.currentPublication.id+"/"+Ke.id,ISSUE_NAME:""}))}}else{if(K)return!0;{const Me={actionUrl:V.split("#")[0],jumpToElement:V.split("#")[1]};this.router.navigate(this.appData.customDomain?["presenter",Ke.issueId]:[this.appData.brand,"presenter",Ke.issueId],{queryParams:Me,queryParamsHandling:"merge"}),this.browserService.reset(),this.appMenuService.setOpen(!1)}}});break}case"entitlement":if(Fe++,"login"===ve[Fe])switch(Fe++,ve[Fe]){case"open":{const We=this.browserService.getUrl("LOGIN");return K?We:(this.browserService.willOpenExternally(We)?this.browserService.openExternally(We):this.browserService.showBrowser("LOGIN"),void this.appMenuService.setOpen(!1))}case"perform":{const We=(0,ce.P3)("token",V);return!!K||(this.purpleService.loginWithToken(We).then(()=>{const ze=(0,ce.P3)("success_url",V),bt=ze&&decodeURIComponent(ze);bt?this.openUrl(bt):window.location.reload()}),void this.appMenuService.setOpen(!1))}case"oauth":if(Fe++,"start"===ve[Fe]&&this.contextService.getMetadata()[_.METADATA_KEY.ENTITLEMENT_MODE]===_.ENTITLEMENT_MODE.OAUTH){if(K)return!0;{const We=(0,ce.P3)("success_url",V),ze=We&&decodeURIComponent(We);return void this.purpleService.login(void 0,void 0,{redirectUrl:ze})}}}else if("logout"===ve[Fe]&&"perform"===ve[Fe+1]){if(K)return!0;{const We=(0,ce.P3)("success_url",V),ze=We&&decodeURIComponent(We);this.purpleService.logout({redirectUrl:ze}).then(()=>{ze?this.openUrl(ze,k):window.location.reload(),this.appMenuService.setOpen(!1)})}}break;case"subscriptions":if("open"===ve[Fe+1]){const We=this.browserService.getUrl("SUBSCRIPTION");return K?We:(this.browserService.willOpenExternally(We)?this.browserService.openExternally(We):this.browserService.showBrowser("SUBSCRIPTION"),void this.appMenuService.setOpen(!1))}}K||this.browserService.reset();break;case"storefront":case"app":if(Fe++,"home"===ve[Fe]&&"open"===ve[Fe+1]){if(K)return!0;this.router.navigate([this.appData.customDomain?"/":this.appData.brand],{queryParamsHandling:"merge"}),this.browserService.reset(),this.appMenuService.setOpen(!1);break}if("feedback"===ve[Fe]&&"mail"===ve[Fe+1]&&"open"===ve[Fe+2])return!!K||(this.feedbackMailService.openMail(),void this.appMenuService.setOpen(!1));if("open"===ve[1]&&"external"===ve[2]&&"url"===ve[3])return!!K||(this.browserService.openExternally(decodeURIComponent(ve[4])),void this.appMenuService.setOpen(!1));if("resource"===ve[1]&&"dynamic"===ve[2]){if(K)return!0;{const We=encodeURIComponent(V.split("dynamic/")[1]);return this.router.navigate([],{relativeTo:this.route,queryParams:{url:V},queryParamsHandling:"merge",replaceUrl:!0}),this.appMenuService.setOpen(!1),void this.browserService.showBrowser(this.kioskConfigService.configObservable.value.kioskConfig.resourceBaseUrl+We)}}if("menu"===ve[1]){if("open"===ve[2])return!!K||void this.appMenuService.setOpen(!0);if("close"===ve[2])return!!K||void this.appMenuService.setOpen(!1);if("toggle"===ve[2])return!!K||void this.appMenuService.setOpen(!this.appMenuService.isOpen())}else if("consent"===ve[1]&&"privacy_manager"===ve[2]&&"open"===ve[3])return!!K||void this.consentService.showPrivacyManager();break;default:if(K)return!1;window.postMessage(JSON.stringify({type:"ACTION_URL",key:"IGNORE_WEB_KIOSK",value:V}),"*")}}}return(B=z).\u0275fac=function(V){return new(V||B)},B.\u0275prov=p.jDH({token:B,factory:B.\u0275fac,providedIn:"root"}),z})()},693:(le,E,d)=>{"use strict";d.d(E,{c:()=>ln});var p=d(467),u=d(3953),o=d(873),v=d(20),O=d(9118),x=d(3785),U=d(177),Q=d(4501);let re=(()=>{class G{static merged(Te,P){var F;return null!==(F=this.mergedConfigurations[P])&&void 0!==F?F:this.internalMerged(Te,P)}static internalMerged(Te,P){var F,de,Ae,Oe,vt,Tt,Dt,en,Dn,Pn,$n,In;const xt=structuredClone(Te.default),qe=Te[P],Kt=null!==(F=null!==(de=null==qe?void 0:qe.eventsEnabledByDefault)&&void 0!==de?de:null==xt?void 0:xt.eventsEnabledByDefault)&&void 0!==F&&F,Ie=null!==(Ae=null!==(Oe=null==qe?void 0:qe.viewsEnabledByDefault)&&void 0!==Oe?Oe:null==xt?void 0:xt.viewsEnabledByDefault)&&void 0!==Ae&&Ae,Ve=null!==(vt=null!==(Tt=null==qe?void 0:qe.purchasesEnabledByDefault)&&void 0!==Tt?Tt:null==xt?void 0:xt.purchasesEnabledByDefault)&&void 0!==vt&&vt,yt=null!==(Dt=null!==(en=null==qe?void 0:qe.attributesEnabledByDefault)&&void 0!==en?en:null==xt?void 0:xt.attributesEnabledByDefault)&&void 0!==Dt&&Dt;var Rt=null!==(Dn=null==xt?void 0:xt.events)&&void 0!==Dn?Dn:{};void 0!==(null==qe?void 0:qe.events)&&Object.entries(qe.events).forEac
1h(Vt=>{Rt[Vt[0]]=Vt[1]});var zt=null!==(Pn=null==xt?void 0:xt.views)&&void 0!==Pn?Pn:{};void 0!==(null==qe?void 0:qe.views)&&Object.entries(qe.views).forEach(Vt=>{zt[Vt[0]]=Vt[1]});var ft=null!==($n=null==xt?void 0:xt.purchases)&&void 0!==$n?$n:{};void 0!==(null==qe?void 0:qe.purchases)&&Object.entries(qe.purchases).forEach(Vt=>{ft[Vt[0]]=Vt[1]});var Ht=null!==(In=null==xt?void 0:xt.attributes)&&void 0!==In?In:{};void 0!==(null==qe?void 0:qe.attributes)&&Object.entries(qe.attributes).forEach(Vt=>{Ht[Vt[0]]=Vt[1]});const Zt={eventsEnabledByDefault:Kt,viewsEnabledByDefault:Ie,purchasesEnabledByDefault:Ve,attributesEnabledByDefault:yt,events:Rt,views:zt,purchases:ft,attributes:Ht};return this.mergedConfigurations[P]=Zt,Zt}}return G.mergedConfigurations={},G})();var be=d(4748),ue=d(953),X=d(6078),ne=d(8340),te=d(7816);class $ extends te.Q{}class J extends ne.U{insertAsFirstScript(G){const _e=document.getElementsByTagName("script")[0];_e.parentNode.insertBefore(G,_e)}resolveTemplate(G,_e){let Te=null!=G?G:"";return _e&&Object.entries(_e).forEach(([P,F])=>{Te=this.replaceAll(Te,"{{"+P+"}}",F)}),Te}resolveParameters(G,_e){if(G){const Te={};return Object.entries(G).forEach(([P,F])=>{Te[P]=this.resolveTemplate(F,_e)}),Te}return{}}replaceAll(G,_e,Te){return G.replace(new RegExp(_e,"g"),Te)}}class se extends ${constructor(G,_e,Te,P){super("AT-Internet",G),this.resourceVersion=_e,this.resourceBaseUrl=Te,this.preview=P}createInstance(){return new De(this)}getTrackingConfigIdentifier(){return"atinternet"}isValidConfiguration(){return!!this.resourceVersion&&!!this.resourceBaseUrl}}class De extends J{constructor(){super(...arguments),this.message_missing_smarttag_js="AtInternet Tracker is not available. Please upload your smarttag.js in the dynamic resources"}adjustDocument(){return new Promise((G,_e)=>{document.body.appendChild(this.createTrackingEndpointScript(G,_e))})}createTrackingEndpointScript(G,_e){const Te=this.getConfig().resourceVersion,P=this.getConfig().resourceBaseUrl,F=this.getConfig().preview,de=document.createElement("script");return de.src="".concat(P,"smarttag.js?preview=").concat(F,"&version=").concat(Te),de.type="text/javascript",de.onload=()=>{try{this.tag=new ATInternet.Tracker.Tag({secure:!0}),G()}catch(Ae){console.error(this.message_missing_smarttag_js,Ae),_e()}},de.onerror=Ae=>{console.error("Error while loading: ".concat(this.getDisplayName())),_e(Ae)},de}sendEvent(G,_e){this.init$.then(()=>{try{const Te={name:this.resolveTemplate(G.templates.name,_e),chapter1:this.resolveTemplate(G.templates.chapter1,_e),chapter2:this.resolveTemplate(G.templates.chapter2,_e),chapter3:this.resolveTemplate(G.templates.chapter3,_e),level2:this.resolveTemplate(G.templates.level2,_e)||0,type:"action"};console.debug("[".concat(this.getDisplayName(),"] track action:"),Te),this.tag.click.send(Te)}catch(Te){console.error(this.message_missing_smarttag_js,Te)}})}sendView(G,_e){this.init$.then(()=>{try{const Te={name:this.resolveTemplate(G.templates.name,_e),chapter1:this.resolveTemplate(G.templates.chapter1,_e),chapter2:this.resolveTemplate(G.templates.chapter2,_e),chapter3:this.resolveTemplate(G.templates.chapter3,_e),level2:this.resolveTemplate(G.templates.level2,_e)||0};console.debug("[".concat(this.getDisplayName(),"] track view:"),Te),this.tag.page.send(Te)}catch(Te){console.error(this.message_missing_smarttag_js,Te)}})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}isActionEventValid(G){var _e,Te,P,F,de;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.name)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.chapter1)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.chapter2)||void 0===P?void 0:P.length)>=0&&(null===(F=G.templates)||void 0===F||null===(F=F.chapter3)||void 0===F?void 0:F.length)>=0&&(null===(de=G.templates)||void 0===de||null===(de=de.level2)||void 0===de?void 0:de.length)>=0}isViewEventValid(G){var _e,Te,P,F,de;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.name)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.chapter1)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.chapter2)||void 0===P?void 0:P.length)>=0&&(null===(F=G.templates)||void 0===F||null===(F=F.chapter3)||void 0===F?void 0:F.length)>=0&&(null===(de=G.templates)||void 0===de||null===(de=de.level2)||void 0===de?void 0:de.length)>=0}isAttributeValid(G){return!1}}class Ce extends ${constructor(G,_e,Te){super("Chartbeat",G),this.titleService=_e,this.ssrService=Te}createInstance(){return new ce(this,this.titleService,this.ssrService)}getTrackingConfigIdentifier(){return"chartbeat"}getAccountId(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.accountId}getSiteId(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.siteId}isValidConfiguration(){return!!this.getAccountId()&&!!this.getSiteId()}}class ce extends J{constructor(G,_e,Te){super(G),this.titleService=_e,this.ssrService=Te}adjustDocument(){const G=this.getConfig().getAccountId(),_e=this.getConfig().getSiteId();return this.handleScriptloading(G,_e)}handleScriptloading(G,_e){var Te=this;return(0,p.A)(function*(){const P=Te;return new Promise((F,de)=>{var Ae;(Ae=window._sf_async_config=window._sf_async_config||{}).uid=G,Ae.domain=_e,Ae.useCanonical=!0,Ae.useCanonicalDomain=!0,Ae.sections="",Ae.authors="",function Oe(){var vt=document.getElementsByTagName("script")[0];vt.parentNode.insertBefore(P.createTrackingEndpointScript(F,de),vt)}()})})()}createTrackingEndpointScript(G,_e){const Te=document.createElement("script");return Te.async=!0,Te.type="text/javascript",Te.src="//static.chartbeat.com/js/chartbeat.js",Te.onload=()=>G(),Te.onerror=P=>{console.error("Error while loading: ".concat(this.getDisplayName())),_e(P)},Te}sendEvent(G,_e){}sendView(G,_e){var Te=this;this.init$.then((0,p.A)(function*(){yield Te.ssrService.prebootCompletedPromise;const P={sections:Te.resolveTemplate(G.templates.sections,_e),authors:Te.resolveTemplate(G.templates.authors,_e),path:document.location.pathname,title:Te.titleService.getTitle()};console.debug("[".concat(Te.getDisplayName(),"] track view:"),P),window.pSUPERFLY.virtualPage(P)}))}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}isActionEventValid(G){return!1}isViewEventValid(G){return!0}isAttributeValid(G){return!1}}var _=d(9379);class R extends ${getTrackingConfigIdentifier(){return"google_analytics"}}class w extends R{constructor(G){super("Google Tag Manager",G)}createInstance(){return new oe(this)}getContainerId(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.containerId}getAddNoScript(){var G,_e;return null!==(G=null===(_e=this.data)||void 0===_e||null===(_e=_e.configuration)||void 0===_e?void 0:_e.addNoScript)&&void 0!==G&&G}isValidConfiguration(){return!!this.getContainerId()}}class B extends R{constructor(G){super("Google Analytics 4",G)}createInstance(){return new V(this)}getMeasurementId(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.measurementId}isValidConfiguration(){return!!this.getMeasurementId()}}class z extends J{isActionEventValid(G){var _e,Te,P;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.action)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.category)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.label)||void 0===P?void 0:P.length)>=0}isViewEventValid(G){var _e;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.name)||void 0===_e?void 0:_e.length)>=0}isAttributeValid(G){return!1}getDocumentTitle(G){return(null==G?void 0:G.length)>0?G:window.document.title}}class oe extends z{adjustDocument(){const G=this.getConfig().getAddNoScript();return new Promise((_e,Te)=>{document.head.appendChild(this.createDataLayerScript()),document.head.appendChild(this.createTrackingEndpointScript()),G&&(document.body.appendChild(document.createComment("\x3c!-- Google Tag Manager (noscript) --\x3e")),document.body.appendChild(this.createTrackingNoScript()),document.body.appendChild(document.createComment("\x3c!-- End Google Tag Manager (noscript) --\x3e"))),_e()})}createDataLayerScript(){const G=document.createElement("script");return G.type="text/javascript",G.text="\n            window.dataLayer = window.dataLayer || [];\n        ",G}createTrackingEndpointScript(){const G=this.getConfig().getContainerId(),_e=document.createElement("script");return _e.type="text/javascript",_e.text="\n             \x3c!-- Google Tag Manager --\x3e\n            (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n            new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n            j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n            'https://www.googletagmanager.com/gtm.js?id='
1+i+dl;f.parentNode.insertBefore(j,f);\n            })(window,document,'script','dataLayer','".concat(G,"');\n            \x3c!-- End Google Tag Manager --\x3e\n        "),_e}createTrackingNoScript(){const G=this.getConfig().getContainerId(),_e=document.createElement("iframe");_e.setAttribute("src","https://www.googletagmanager.com/ns.html?id=".concat(G)),_e.setAttribute("height","0"),_e.setAttribute("width","0"),_e.setAttribute("style","display:none;visibility:hidden");const Te=document.createElement("noscript");return Te.appendChild(_e),Te}sendEvent(G,_e){this.init$.then(()=>{var Te,P;const F={event:null!==(Te=null===(P=G.templates)||void 0===P?void 0:P.trigger)&&void 0!==Te?Te:"purple.action_event",purple:{action_event_action:this.resolveTemplate(G.templates.action,_e),action_event_category:this.resolveTemplate(G.templates.category,_e),action_event_label:this.resolveTemplate(G.templates.label,_e),parameters:this.resolveParameters(G.parameters,_e)}};console.debug("[".concat(this.getDisplayName(),'] track action: %c"').concat(F.purple.action_event_action,'"'),Q.E.debugEventname,F),window.dataLayer.push(F)})}sendView(G,_e){this.init$.then(()=>{var Te,P,F,de;const Ae={event:null!==(Te=null===(P=G.templates)||void 0===P?void 0:P.trigger)&&void 0!==Te?Te:"purple.view_event",purple:{view_event_name:this.resolveTemplate(null===(F=G.templates)||void 0===F?void 0:F.name,_e),view_event_title:this.getDocumentTitle(this.resolveTemplate(null===(de=G.templates)||void 0===de?void 0:de.title,_e)),parameters:this.resolveParameters(G.parameters,_e)}};console.debug("[".concat(this.getDisplayName(),'] track view: %c"').concat(Ae.purple.view_event_name,'"'),Q.E.debugEventname,Ae),window.dataLayer.push(Ae)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}}class V extends z{adjustDocument(){return new Promise((G,_e)=>{document.head.appendChild(document.createComment(" Google tag (gtag.js) ")),document.head.appendChild(this.createTrackingEndpointScript(()=>{document.head.appendChild(this.createDataLayerScript()),G()},_e))})}createTrackingEndpointScript(G,_e){const Te=this.getConfig().getMeasurementId(),P=document.createElement("script");return P.async=!0,P.src="https://www.googletagmanager.com/gtag/js?id=".concat(Te),P.onload=()=>G(),P.onerror=F=>{console.error("Error while loading: ".concat(this.getDisplayName())),_e(F)},P}createDataLayerScript(){const G=document.createElement("script");return G.type="text/javascript",G.text="\n            window.dataLayer = window.dataLayer || [];\n            function gtag() {dataLayer.push(arguments);}\n            gtag('js', new Date());\n            gtag('config', '".concat(this.getConfig().getMeasurementId(),"');\n        "),G}sendEvent(G,_e){this.init$.then(()=>{const Te=this.resolveTemplate(G.templates.action,_e),P=(0,_.A)({event_category:this.resolveTemplate(G.templates.category,_e),event_label:this.resolveTemplate(G.templates.label,_e)},this.resolveParameters(G.parameters,_e));console.debug("[".concat(this.getDisplayName(),'] track action: %c"').concat(Te,'"'),Q.E.debugEventname,P),gtag("event",Te,P)})}sendView(G,_e){this.init$.then(()=>{var Te,P;const F=(0,_.A)({view_name:this.resolveTemplate(null===(Te=G.templates)||void 0===Te?void 0:Te.name,_e),page_title:this.getDocumentTitle(this.resolveTemplate(null===(P=G.templates)||void 0===P?void 0:P.title,_e))},this.resolveParameters(G.parameters,_e));console.debug("[".concat(this.getDisplayName(),'] track view: %c"').concat(F.page_title,'"'),Q.E.debugEventname,F),gtag("event","page_view",F)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}}class k extends ${constructor(G){super("eTracker",G)}createInstance(){return new K(this)}getTrackingConfigIdentifier(){return"etracker"}getDataSecureCode(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.dataSecureCode}isValidConfiguration(){return!!this.getDataSecureCode()}}class K extends J{adjustDocument(){return new Promise((G,_e)=>{document.head.insertBefore(this.createTrackingEndpointScript(G,_e),document.head.firstElementChild)})}createTrackingEndpointScript(G,_e){const Te=document.createElement("script");return Te.id="_etLoader",Te.async=!0,Te.type="text/javascript",Te.charset="UTF-8",Te.src="//code.etracker.com/code/e.js",Te.setAttribute("data-block-cookies","true"),Te.setAttribute("data-secure-code",this.getConfig().getDataSecureCode()),Te.onload=()=>G(),Te.onerror=P=>{console.error("Error while loading: ".concat(this.getDisplayName())),_e(P)},Te}sendEvent(G,_e){this.init$.then(()=>{const Te=this.resolveTemplate(G.templates.object,_e),P=this.resolveTemplate(G.templates.category,_e),F=this.resolveTemplate(G.templates.action,_e),de=this.resolveTemplate(G.templates.type,_e),Ae=new window.et_UserDefinedEvent(Te,P,F,de);console.debug("[".concat(this.getDisplayName(),"] track action, event data:"),Ae),window._etracker.sendEvent(Ae)})}sendView(G,_e){this.init$.then(()=>{const Te=this.resolveTemplate(G.templates.name,_e),P=this.resolveTemplate(G.templates.object,_e),F=this.resolveTemplate(G.templates.type,_e),de={et_et:this.getConfig().getDataSecureCode(),et_pagename:Te};console.debug("[".concat(this.getDisplayName(),"] track view, view context:"),de),window.et_eC_Wrapper(de);const Ae=new window.et_ViewEvent(P,F);console.debug("[".concat(this.getDisplayName(),"] track view, event data:"),Ae),window._etracker.sendEvent(Ae)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}isActionEventValid(G){var _e,Te,P,F;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.object)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.category)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.action)||void 0===P?void 0:P.length)>=0&&(null===(F=G.templates)||void 0===F||null===(F=F.type)||void 0===F?void 0:F.length)>=0}isViewEventValid(G){var _e,Te,P;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.name)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.object)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.type)||void 0===P?void 0:P.length)>=0}isAttributeValid(G){return!1}}class ge extends ${constructor(G){super("Kilkaya",G)}createInstance(){return new ve(this)}getTrackingConfigIdentifier(){return"kilkaya"}getCdnHost(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.cdnHost}getInstallationId(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.installationId}isValidConfiguration(){return!!this.getCdnHost()&&!!this.getInstallationId()}}class ve extends J{adjustDocument(){return new Promise((G,_e)=>{document.head.appendChild(this.createK5aMetaScript()),document.head.appendChild(this.createTrackingEndpointScript(G,_e))})}createK5aMetaScript(){const G=document.createElement("script");return G.type="text/javascript",G.text="var k5aMeta={ 'disablePageview':true }",G}createTrackingEndpointScript(G,_e){const Te=this.getConfig().getCdnHost(),P=this.getConfig().getInstallationId(),F=document.createElement("script");return F.type="module",F.src="https://".concat(Te,"/").concat(P,".module.js"),F.onload=()=>G(),F.onerror=de=>{console.error("Error while loading: ".concat(this.getDisplayName())),_e(de)},F}sendEvent(G,_e){this.init$.then(()=>{const Te={title:this.resolveTemplate(G.templates.title,_e),type:this.resolveTemplate(G.templates.type,_e),section:this.resolveTemplate(G.templates.section,_e),url:_e.URL,toUrl:_e.TARGET_URL};console.debug("[".concat(this.getDisplayName(),"] track action:"),Te),window.kilkaya.click(Te)})}sendView(G,_e){this.init$.then(()=>{const Te={title:this.resolveTemplate(G.templates.title,_e),type:this.resolveTemplate(G.templates.type,_e),section:this.resolveTemplate(G.templates.section,_e),url:_e.TARGET_URL,referer:window.document.referrer};console.debug("[".concat(this.getDisplayName(),"] track view:"),Te),window.kilkaya.pageview(Te)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}isActionEventValid(G){var _e,Te,P;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.title)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.type)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.section)||void 0===P?void 0:P.length)>=0}isViewEventValid(G){var _e,Te,P;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.title)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.type)||void 0===Te?void 0:Te.length)>=0&&(null===(P=G.templates)||void 0===P||null===(P=P.section)||void 0===P?void 0:P.length)>=0}isAttributeValid(G){return!1}}var Fe=function(et){return et.trackingAndCookiesByCmp="trackingAndCookiesByCmp",et.cookiesByCmp="cookiesByCmp",et.cookiesDisabled="cookiesDisabled",et.matomoServer="matomoServer",et}(Fe||{});class We extends ${getTrackingConfigIdentifier(){return"matomo"}canRunWithoutConsent(){return this.isConsentFreeMode(Fe.matomoServer)}isConsentFreeMode(G){var _e;return(null===(_e=this.data)||void 0===_e||null===(_e=_e.consent)||void 0===_e?void 0:_e.mode)===G}}class ze extends We{constructor(G){super("Matomo Tag Manager",G)}createInstance(){return new Me(this)}getContainerSourceUrl(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.containerSourceUrl}isValidConfiguration(){return!!this.getContainerSourceUrl()}}class bt extends We{constructor(G){super("Matomo Javascript Tracking Client",G)}createInstance(){return new tt(this)}getSiteId(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.siteId}getEndpointUrl(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.endpointUrl}getScriptSourceUrl(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.scriptSourceUrl}isValidConfiguration(){return!!(this.getSiteId()&&this.getEndpointUrl()&&this.get
1ScriptSourceUrl())}}class Ke extends J{isActionEventValid(G){var _e,Te;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.category)||void 0===_e?void 0:_e.length)>=0&&(null===(Te=G.templates)||void 0===Te||null===(Te=Te.action)||void 0===Te?void 0:Te.length)>=0}isViewEventValid(G){return!0}isAttributeValid(G){var _e;return(null===(_e=G.templates)||void 0===_e||null===(_e=_e.id)||void 0===_e?void 0:_e.length)>=0}getDocumentTitle(G){return(null==G?void 0:G.length)>0?G:window.document.title}}class Me extends Ke{adjustDocument(){return new Promise((G,_e)=>{this.setupClient();const Te=this.getConfig().getContainerSourceUrl();this.insertAsFirstScript(this.createContainerScript(Te,G,_e))})}setupClient(){(window._mtm=window._mtm||[]).push({"mtm.startTime":Date.now(),event:"mtm.Start"})}createContainerScript(G,_e,Te){const P=document.createElement("script");return P.async=!0,P.src=G,P.onload=()=>_e(),P.onerror=F=>{console.error("Error while loading: ".concat(this.getDisplayName()),F),Te(F)},P}sendEvent(G,_e){this.init$.then(()=>{var Te,P;const F={event:null!==(Te=null===(P=G.templates)||void 0===P?void 0:P.trigger)&&void 0!==Te?Te:"purple.action_event",purple:{action_event_action:this.resolveTemplate(G.templates.action,_e),action_event_category:this.resolveTemplate(G.templates.category,_e),action_event_name:this.resolveTemplate(G.templates.name,_e),action_event_value:this.resolveTemplate(G.templates.value,_e),parameters:this.resolveParameters(G.parameters,_e)}};console.debug("[".concat(this.getDisplayName(),'] track action: %c"').concat(F.purple.action_event_action,'"'),Q.E.debugEventname,F),window._mtm.push(F)})}sendView(G,_e){this.init$.then(()=>{var Te,P,F,de;const Ae={event:null!==(Te=null===(P=G.templates)||void 0===P?void 0:P.trigger)&&void 0!==Te?Te:"purple.view_event",purple:{view_event_name:this.resolveTemplate(null===(F=G.templates)||void 0===F?void 0:F.name,_e),view_event_title:this.getDocumentTitle(this.resolveTemplate(null===(de=G.templates)||void 0===de?void 0:de.title,_e)),parameters:this.resolveParameters(G.parameters,_e)}};console.debug("[".concat(this.getDisplayName(),'] track view: %c"').concat(Ae.purple.view_event_name,'"'),Q.E.debugEventname,Ae),window._mtm.push(Ae)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){const P=parseInt(G.templates.id,10);if(isNaN(P))return void console.debug("[".concat(this.getDisplayName(),"] missing index for attribute!"),G);const F="purple.custom_dimension_".concat(P);let de={};null!=Te.stringValue?(de[F]=Te.stringValue,console.debug("[".concat(this.getDisplayName(),"] set string attribute for index: ").concat(P,":"),de)):null!=Te.booleanValue?(de[F]=String(Te.booleanValue),console.debug("[".concat(this.getDisplayName(),"] set boolean attribute for index: ").concat(P,":"),de)):(de[F]="",console.debug("[".concat(this.getDisplayName(),"] remove attribute for index: ").concat(P,":"),de)),window._mtm.push(de)}resolveParameters(G,_e){let Te=super.resolveParameters(G,_e);const P={};return Object.entries(Te).forEach(([F,de])=>{const Ae=parseInt(F,10);if(isNaN(Ae))return console.debug("[".concat(this.getDisplayName(),"] missing index for parameter!"),F),{};const Oe="custom_dimension_".concat(Ae);P[Oe]=de}),P}}class tt extends Ke{adjustDocument(){return new Promise((G,_e)=>{const Te=this.getConfig().getSiteId(),P=this.getConfig().getEndpointUrl();this.setupClient(P,Te);const F=this.getConfig().getScriptSourceUrl();this.insertAsFirstScript(this.createTrackingEndpointScript(F,G,_e))})}setupClient(G,_e){const Te=window._paq=window._paq||[];Te.push(["enableLinkTracking"]),Te.push(["setTrackerUrl",G.endsWith(".php")?G:"".concat(G,"matomo.php")]),Te.push(["setSiteId",_e]),this.getConfig().isConsentFreeMode(Fe.matomoServer)&&Te.push(["disableCookies"])}createTrackingEndpointScript(G,_e,Te){const P=document.createElement("script");return P.async=!0,P.src=G.endsWith(".js")?G:"".concat(G,"matomo.js"),P.onload=()=>_e(),P.onerror=F=>{console.error("Error while loading: ".concat(this.getDisplayName()),F),Te(F)},P}sendEvent(G,_e){this.init$.then(()=>{const Te=["trackEvent",this.resolveTemplate(G.templates.category,_e),this.resolveTemplate(G.templates.action,_e),this.resolveTemplate(G.templates.name,_e),this.resolveTemplate(G.templates.value,_e),this.resolveParameters(G.parameters,_e)];console.debug("[".concat(this.getDisplayName(),'] track action: %c"').concat(Te[2],'"'),Q.E.debugEventname,Te),window._paq.push(Te)})}sendView(G,_e){this.init$.then(()=>{var Te,P;const F=window.location.href,de=null!==(Te=this.getDocumentTitle(this.resolveTemplate(null===(P=G.templates)||void 0===P?void 0:P.title,_e)))&&void 0!==Te?Te:"",Ae=["trackPageView",de,this.resolveParameters(G.parameters,_e)];console.debug("[".concat(this.getDisplayName(),'] track view: %c"').concat(de,'"'),Q.E.debugEventname,Ae),window._paq.push(["setCustomUrl",F]),window._paq.push(["setDocumentTitle",de]),window._paq.push(Ae)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){const P=parseInt(G.templates.id,10);if(isNaN(P))console.debug("[".concat(this.getDisplayName(),"] missing index for attribute!"),G);else if(null!=Te.stringValue){const F=Te.stringValue;console.debug("[".concat(this.getDisplayName(),"] set string attribute for index: ").concat(P,", value:"),F),window._paq.push(["setCustomDimension",P,F])}else if(null!=Te.booleanValue){const F=String(Te.booleanValue);console.debug("[".concat(this.getDisplayName(),"] set boolean attribute for index: ").concat(P,", value:"),F),window._paq.push(["setCustomDimension",P,F])}else console.debug("[".concat(this.getDisplayName(),"] remove attribute for index: ").concat(P)),window._paq.push(["deleteCustomDimension",P])}resolveParameters(G,_e){let Te=super.resolveParameters(G,_e);const P={};return Object.entries(Te).forEach(([F,de])=>{const Ae=parseInt(F,10);if(isNaN(Ae))return console.debug("[".concat(this.getDisplayName(),"] missing index for parameter!"),F),{};const Oe="dimension".concat(Ae);P[Oe]=de}),P}}class He extends ${constructor(G){super("INFOnline",G)}createInstance(){return new ot(this)}getTrackingConfigIdentifier(){return"infonline"}getDomainServiceName(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.domainServiceName}getSite(){var G;return null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.site}getUsePseudonymousMeasurement(){var G,_e;return null!==(G=null===(_e=this.data)||void 0===_e||null===(_e=_e.configuration)||void 0===_e?void 0:_e.usePseudonymousMeasurement)&&void 0!==G&&G}getCountry(){var G,_e;const Te=null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.country,P=Object.values(je);if(P.includes(null===(_e=this.data)||void 0===_e||null===(_e=_e.configuration)||void 0===_e?void 0:_e.country))return Te;Te&&console.debug("[".concat(this.displayName,"] misconfigured 'country'. found: ").concat(Te,", expected: ").concat(P.join(", ")))}
1getDistributionChannel(){var G,_e;const Te=null===(G=this.data)||void 0===G||null===(G=G.configuration)||void 0===G?void 0:G.distributionChannel,P=Object.values(fe);if(P.includes(null===(_e=this.data)||void 0===_e||null===(_e=_e.configuration)||void 0===_e?void 0:_e.distributionChannel))return Te;Te&&console.debug("[".concat(this.displayName,"] misconfigured 'distributionChannel'. found: ").concat(Te,", expected: ").concat(P.join(", ")))}getDebug(){var G,_e;return null!==(G=null===(_e=this.data)||void 0===_e||null===(_e=_e.configuration)||void 0===_e?void 0:_e.debug)&&void 0!==G&&G}isValidConfiguration(){return!!this.getDomainServiceName()&&!!this.getSite()}}class ot extends J{adjustDocument(){return new Promise((G,_e)=>{const Te=this.getConfig().getDomainServiceName();document.head.appendChild(this.createLinkElement("preload","//".concat(Te,"/iomm/latest/manager/base/es6/bundle.js"),"script","IOMmBundle")),document.head.appendChild(this.createLinkElement("preload","//".concat(Te,"/iomm/latest/bootstrap/loader.js"),"script")),document.head.appendChild(this.createTrackingEndpointScript(()=>{document.body.appendChild(this.createTrackingConfigScript()),G()},_e))})}createLinkElement(G,_e,Te,P){const F=document.createElement("link");return F.rel=G,F.href=_e,F.as=Te,P&&(F.id=P),F.crossOrigin="anonymous",F}createTrackingEndpointScript(G,_e){const Te=this.getConfig().getDomainServiceName(),P=document.createElement("script");return P.type="text/javascript",P.src="//".concat(Te,"/iomm/latest/bootstrap/loader.js"),P.setAttribute("data-cmp-ab","2"),P.crossOrigin="anonymous",P.onload=()=>{G()},P.onerror=F=>{console.error("Error while loading: ".concat(this.getDisplayName())),_e(F)},P}createTrackingConfigScript(){const G=document.createElement("script");return G.type="text/javascript",G.text="IOMm('configure', { \n      ".concat(this.getTrackingConfigParams().join(", "),"\n    })"),G}getTrackingConfigParams(){const G=this.getConfig();let _e=new Array;_e.push("st: '".concat(G.getSite(),"'")),_e.push("dn: '".concat(G.getDomainServiceName(),"'"));const Te=G.getCountry();void 0!==Te&&_e.push("cn: '".concat(Te,"'"));const P=G.getDistributionChannel();void 0!==P&&_e.push("dc: '".concat(P,"'")),G.getUsePseudonymousMeasurement()&&_e.push("mh: 5");const de=G.getDebug();return de&&_e.push("dg: ".concat(de)),_e}sendEvent(G,_e){}sendView(G,_e){this.init$.then(()=>{const Te=this.resolveTemplate(G.templates.code,_e),P=this.resolveTemplate(G.templates.comment,_e),F=this.resolveTemplate(G.templates.pixelType,_e),de=(0,_.A)((0,_.A)((0,_.A)({},Te&&{cp:Te}),P&&{co:P}),F&&{pt:F});console.debug("[".concat(this.getDisplayName(),"] track view:"),de),window.IOMm("pageview",de)})}sendPurchase(G,_e){}setOrRemoveUserAttribute(G,_e,Te){}isActionEventValid(G){return!1}isViewEventValid(G){return!0}isAttributeValid(G){return!1}}var je=function(et){return et.DE="de",et.AT="at",et}(je||{}),fe=function(et){return et.WEB="web",et.HYB="hyb",et.APP="app",et.CTV="ctv",et}(fe||{}),D=d(345),H=d(7879);class Se{constructor(G,_e){this.kioskConfig=G,this.experienceConfig=_e.get(H.Wp),this.appData=_e.get(H.fj),this.titleService=_e.get(D.hE),this.ssrService=_e.get(be.i)}loadEnabledPluginConfigurations(){return[this.getATInternetConfiguration(),this.getChartbeatConfiguration(),this.getETrackerConfiguration(),this.getGoogleAnalyticsConfiguration(),this.getINFOnlineConfiguration(),this.getKilkayaConfiguration(),this.getMatomoConfiguration()].filter(_e=>null==_e?void 0:_e.isEnabled())}getATInternetConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.atinternet;return _e?new se(_e,this.kioskConfig.resourcesVersion,this.kioskConfig.resourceBaseUrl,this.appData.preview):this.kioskConfig.trackingAtinternetEnabled?new se({configuration:{},consent:{vendorId:this.kioskConfig.cmpVendorIdAtInternet}},this.kioskConfig.resourcesVersion,this.kioskConfig.resourceBaseUrl,this.appData.preview):null}getChartbeatConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.chartbeat;return _e?new Ce(_e,this.titleService,this.ssrService):this.kioskConfig.trackingChartbeatEnabled?new Ce({configuration:{accountId:this.kioskConfig.trackingChartbeatAccountId,siteId:this.kioskConfig.trackingChartbeatSiteId},consent:{vendorId:this.kioskConfig.cmpVendorIdChartbeat}},this.titleService,this.ssrService):null}getGoogleAnalyticsConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.ga4;var Te,P;return _e?null!==(Te=null===(P=_e.configuration)||void 0===P?void 0:P.useTagManager)&&void 0!==Te&&Te?new w(_e):new B(_e):this.kioskConfig.trackingGoogleAnalytics4Enabled?new B({configuration:{measurementId:this.kioskConfig.trackingGoogleAnalytics4Id},consent:{vendorId:this.kioskConfig.cmpVendorIdGoogleAnalytics}}):null}getETrackerConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.etracker;return _e?new k(_e):null}getKilkayaConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.kilkaya;return _e?new ge(_e):null}getMatomoConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.matomo;var Te,P;return _e?null!==(Te=null===(P=_e.configuration)||void 0===P?void 0:P.useTagManager)&&void 0!==Te&&Te?new ze(_e):new bt(_e):null}getINFOnlineConfiguration(){var G;const _e=null===(G=this.experienceConfig.purple)||void 0===G||null===(G=G.analytics)||void 0===G?void 0:G.infonline;return _e?new He(_e):null}}var Ue=d(2838),at=d(4843);const hn=(0,u.zw6)("trackingConfig");let ln=(()=>{var et;class G{constructor(){this.consentService=(0,u.WQX)(X.e),this.pluginService=(0,u.WQX)(ue.z),this.kioskConfigService=(0,u.WQX)(O.x),this.resourceService=(0,u.WQX)(Ue.Q),this.dialogService=(0,u.WQX)(v.o),this.transferState=(0,u.WQX)(u.pJN),this.ssrService=(0,u.WQX)(be.i),this.platformId=(0,u.WQX)(u.Agw),this.appData=(0,u.WQX)(H.fj),this.injector=(0,u.WQX)(u.zZn),this.debugKeys={action:"ACTION",view:"VIEW",purchase:"PURCHASE",attribute:"ATTRIBUTE",logging:"tracking.debug.logging"},this.debugLogging="true"===localStorage.getItem(this.debugKeys.logging),this.init$=new Promise(Te=>this.resolveInitialization=Te),this.activeTrackingPlugins=new Array,this.init()}sendEvent(Te,P){this.init$.then(()=>{this.log(this.debugKeys.action,Te,P),this.activeTrackingPlugins.forEach(F=>{var de,Ae;const Oe=re.merged(this.trackingConfiguration,F.getConfig().getTrackingConfigIdentifier()),vt=Oe.events[Te],Tt=null!==(de=null!==(Ae=null==vt?void 0:vt.enabled)&&void 0!==Ae?Ae:Oe.eventsEnabledByDefault)&&void 0!==de&&de;vt&&Tt?F.isActionEventValid(vt)?F.sendEvent(vt,P):console.debug("%c[".concat(F.getDisplayName(),'] can not track action: %c"').concat(Te,'". %cRequired templates missing, invalid configuration: '),Q.E.debugWarning,Q.E.debugEventname,Q.E.debugWarning,vt):this.debugLogging&&console.debug("%c[".concat(F.getDisplayName(),'] can not track action: %c"').concat(Te,'". %cMissing configuration or not enabled!'),Q.E.debugWarning,Q.E.debugEventname,Q.E.debugWarning)})})}sendView(Te,P){this.init$.then(()=>{this.log(this.debugKeys.view,Te,P),this.activeTrackingPlugins.forEach(F=>{var de,Ae;const Oe=re.merged(this.trackingConfiguration,F.getConfig().getTrackingConfigIdentifier()),vt=Oe.views[Te],Tt=null!==(de=null!==(Ae=null==vt?void 0:vt.enabled)&&void 0!==Ae?Ae:Oe.viewsEnabledByDefault)&&void 0!==de&&de;vt&&Tt?F.isViewEventValid(vt)?F.sendView(vt,P):console.debug("%c[".concat(F.getDisplayName(),'] can not track view: %c"').concat(Te,'". %cRequired templates missing, invalid configuration: '),Q.E.debugWarning,Q.E.debugEventname,Q.E.debugWarning,vt):this.debugLogging&&console.debug("%c[".concat(F.getDisplayName(),'] can not track view: %c"').concat(Te,'". %cMissing configuration or not enabled!'),Q.E.debugWarning,Q.E.debugEventname,Q.E.debugWarning)})})}sendPurchase(Te,P){this.init$.then(()=>{this.log(this.debugKeys.purchase,Te,P),this.activeTrackingPlugins.forEach(F=>{var de,Ae;const Oe=re.merged(this.trackingConfiguration,F.getConfig().getTrackingConfigIdentifier()),vt=Oe.purchases[Te],Tt=null!==(de=null!==(Ae=null==vt?void 0:vt.enabled)&&void 0!==Ae?Ae:Oe.purchasesEnabledByDefault)&&void 0!==de&&de;vt&&Tt&&F.sendPurchase(vt,P)})})}setUserAttribute(Te){this.init$.then(()=>{const{key:P,stringValue:F,booleanValue:de}=Te;this.log(this.debugKeys.attribute,P,null!=F?{stringValue:F}:null!=Te.booleanValue?{booleanValue:de}:{value:"null"}),this.activeTrackingPlugins.forEach(Ae=>{var Oe,vt;const Tt=re.merged(this.trackingConfiguration,Ae.getConfig().getTrackingConfigIdentifier()),Dt=Tt.attributes[P],en=null!==(Oe=null!==(vt=null==Dt?void 0:Dt.enabled)&&void 0!==vt?vt:Tt.attributesEnabledByDefault)&&void 0!==Oe&&Oe;Dt&&en?Ae.isAttributeValid(Dt)?Ae.setOrRemoveUserAttribute(Dt,P,{stringValue:F,booleanValue:de}):console.debug("[".concat(Ae.getDisplayName(),"] can not set or remove attribute: ").concat(P,". Required templates missing, invalid configuration: "),Dt):this.debugLogging&&console.debug("[".concat(Ae.getDisplayName(),"] can not set or remove attribute: ").concat(P,". Missing configuration or not enabled!"))})})}init(){var Te=this;return(0,p.A)(function*(){(yield Te.handleInitializationPrechecks())&&Te.initializeTrackingConfiguration()})()}handleInitializationPrechecks(){var Te=this;return(0,p.A)(function*(){return!!(0,U.UE)(Te.platformId)&&(yield Te.pluginService.init$,yield Te.consentService.init$,!0)})()}initializeTrackingConfiguration(){var Te=this;return(0,p.A)(function*(){const P=yield(0,at._)(Te.kioskConfigService.getConfig());
1Te.loadTrackingConfig().catch(F=>{Te.appData.preview&&Te.dialogService.alert((0,x.sprintf)(P.kioskConfig.messages.dialog_file_invalid_message_web,"tracking_config.json")),Te.applyTrackingConfiguration({},P.kioskConfig),console.error("Error while loading analytics service!",F)}).then(function(){var F=(0,p.A)(function*(de){yield Te.applyTrackingConfiguration(de,P.kioskConfig),Te.transferState.onSerialize(hn,()=>de)});return function(de){return F.apply(this,arguments)}}(),(0,p.A)(function*(){const F=JSON.parse(JSON.stringify(o.fT));yield Te.applyTrackingConfiguration(F,P.kioskConfig)}))})()}loadTrackingConfig(){var Te=this;return(0,p.A)(function*(){return Te.transferState.hasKey(hn)?Promise.resolve(Te.transferState.get(hn,{})):Te.resourceService.loadResource("tracking_config.json",!0)})()}applyTrackingConfiguration(Te,P){var F=this;return(0,p.A)(function*(){F.trackingConfiguration=Te,F.addTrackingPlugins(P),F.resolveInitialization(),F.sendEvent(Q.l.Actions.APP_START,{URL:window.location.href,TARGET_URL:window.location.href}),window.onbeforeunload=()=>{F.sendEvent(Q.l.Actions.APP_STOP,{URL:window.location.href,TARGET_URL:window.location.href})}})()}addTrackingPlugins(Te){const F=new Se(Te,this.injector).loadEnabledPluginConfigurations();console.debug("".concat(F.length," active optional plugin(s): "),F.map(de=>de.displayName)),F.forEach(de=>{this.handleOptionalTrackingPlugin(de)}),this.consentService.updateConsent()}handleOptionalTrackingPlugin(Te){console.debug("Try to add tracking plugin: ".concat(Te.displayName)),(0,te.O)(Te)?this.consentService.canRunPlugin(Te)?(console.debug("  => ".concat(Te.displayName," can be added.")),this.loadAndRegisterPlugin(Te)):console.debug("  => ".concat(Te.displayName," can not be added!")):this.loadAndRegisterPlugin(Te)}loadAndRegisterPlugin(Te){const P=this.pluginService.loadPlugin(Te);P&&this.activeTrackingPlugins.push(P)}log(Te,P,F){this.debugLogging&&console.debug("[TRACK][".concat(Te,"] ").concat(P),F)}toggleLogging(Te){const F=this.appData.preview&&Te;localStorage.setItem(this.debugKeys.logging,String(F)),this.debugLogging=F}}return(et=G).\u0275fac=function(Te){return new(Te||et)},et.\u0275prov=u.jDH({token:et,factory:et.\u0275fac,providedIn:"root"}),G})()},4501:(le,E,d)=>{"use strict";d.d(E,{E:()=>x,l:()=>O});var u,o,v,p=function(U){return U.APP_START="APP_START",U.APP_STOP="APP_STOP",U.KIOSK_ISSUE_OPENED="KIOSK_ISSUE_OPENED",U.KIOSK_ISSUE_PREVIEW_OPENED="KIOSK_ISSUE_PREVIEW_OPENED",U.KIOSK_ISSUE_OPEN_FAILED="KIOSK_ISSUE_OPEN_FAILED",U}(p||{});u||(u={}),o||(o={}),v||(v={});const O={Actions:p,Views:u,Purchases:o,Attributes:v};var x=function(U){return U.debugEventname="font-weight: bold; color:rgb(15, 170, 15)",U.debugWarning="font-weight: bold; color:rgb(170, 59, 15)",U}(x||{})},5820:(le,E,d)=>{"use strict";d.d(E,{X:()=>J});var p=d(467),u=d(3953),o=d(8179),v=d(4049),O=d(9516),x=d(9745),U=d(1652),Q=d(7031),re=d(6843),be=d(177),ue=d(7879),X=d(6889),ne=d(5706),te=d(5927),$=d(8004);let J=(()=>{var se;class De{constructor(){this.contextService=(0,u.WQX)(O.V),this.globalService=(0,u.WQX)(U.d),this.transferState=(0,u.WQX)(u.pJN),this.purpleEnv=(0,u.WQX)(ue.r6),this.platformId=(0,u.WQX)(u.Agw),this.urlResolver=(0,u.WQX)(X.K),this.appData=(0,u.WQX)(ue.fj),this.domHelper=(0,u.WQX)(te.S)}init(ce){ce.select((0,Q.jZ)(re.O.FEATURE),_=>{null!=_&&_.anchorTags&&(this.anchorFeatureEnabled=_.anchorTags)})}isAnchorFeatureEnabled(){return this.domHelper.leanDom||this.anchorFeatureEnabled}getAnchorPathForEventAction(ce,_){let R;if(void 0!==_){if(R=(0,o.uQ)(ce,_,this.contextService.$functions,this.globalService.getGlobalData()),!R||!(0,o.Ol)(R))return null}else R=ce;if(R.type===x.H.OPEN_URL){let w=R.url;return 0===w.indexOf("purple://app/resource/dynamic/")||0===w.indexOf("resource://dynamic/")?this.interpolatePath("",_):w}return R.type===x.H.NAVIGATE?this.interpolatePath(R.url||R.path,_):null}getAnchorPathForContent(ce){var _=this;return(0,p.A)(function*(){return!_.purpleEnv.isUniversal||!ce||ce.ad&&!ce.contentType||(0,ne.xl)(ce)?null:yield _.nextContentPath(ce)})()}nextContentPath(ce){var _=this;return(0,p.A)(function*(){const R=(0,u.zw6)("url_".concat(ce.id));if((0,be.Vy)(_.platformId)){if(_.transferState.hasKey(R))return _.transferState.get(R,null);{const w=yield _.urlResolver.getPathForContent(ce);return _.transferState.set(R,w),w}}if(_.transferState.hasKey(R)){const w=_.transferState.get(R,null);return _.transferState.remove(R),w}return _.urlResolver.getPathForContent(ce)})()}interpolatePath(ce,_){let R=ce?(0,v.K)(ce,_):"";const w=this.appData.customDomain?"":"/".concat(this.appData.brand),[B,z]=R.split("#"),V=this.appData.preview?(B.includes("?")?"&":"?")+"preview=true":"";
1return"".concat(w).concat(B.startsWith("/")?B:"/"+B).concat(V).concat(z?"#".concat(z):"")}handleAnchorTagsForComponents(ce){const _=ce&&(0,o.Ol)(ce);return{hasAction:_,tapUrl:_&&(0,$.H)(ce)?this.getAnchorPathForEventAction(ce):null}}}return(se=De).\u0275fac=function(ce){return new(ce||se)},se.\u0275prov=u.jDH({token:se,factory:se.\u0275fac,providedIn:"root"}),De})()},5204:(le,E,d)=>{"use strict";d.d(E,{I:()=>U});var p=d(3953),u=d(3331),o=d(4412),v=d(5964),O=d(6354),x=d(2853);let U=(()=>{var Q;class re{constructor(){this.router=(0,p.WQX)(u.Ix),this.menuOpenSubject=new o.t(!1),this.$menuOpen=this.menuOpenSubject.asObservable(),this.registeredSideMenuComponents=new Set,this.hasNoCustomSideMenuSignal=(0,p.vPA)(!0),this.router.events.pipe((0,v.p)(ue=>ue instanceof u.wF),(0,O.T)(ue=>!1)).subscribe(this.menuOpenSubject)}isOpen(){return this.menuOpenSubject.value}setOpen(ue){this.menuOpenSubject.next(ue)}registerCustomSideMenuComponent(ue){ue.baseConfig().template&&ue.baseConfig().template===x.oH.STATIC?console.error("Tried to register static menu component as side menu!"):(this.registeredSideMenuComponents.add(ue),this.hasNoCustomSideMenuSignal.set(!1))}unregisterCustomSideMenuComponent(ue){this.registeredSideMenuComponents.delete(ue),this.hasNoCustomSideMenuSignal.set(0===this.registeredSideMenuComponents.size)}}return(Q=re).\u0275fac=function(ue){return new(ue||Q)},Q.\u0275prov=p.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"}),re})()},9668:(le,E,d)=>{"use strict";d.d(E,{I:()=>Ce});var p=d(7027),u=d(177),o=d(3953),v=d(3331),O=d(4404),U=d(6010),Q=d(3178),re=d(3377),be=d(9516),ue=d(9745),X=d(496),ne=d(9118),te=d(5250),$=d(7879),J=d(7370),se=d(4843);const De=(0,p.A)(/^purple:\/\/(?:storefront|app)\/resource\/dynamic\/(.*)/,{path:1});let Ce=(()=>{var ce;class _{constructor(){this.kioskConfigService=(0,o.WQX)(ne.x),this.publicationService=(0,o.WQX)(X.m),this.router=(0,o.WQX)(v.Ix),this.contextService=(0,o.WQX)(be.V),this.document=(0,o.WQX)(u.qQ),this.injector=(0,o.WQX)(o.zZn),this.ngZone=(0,o.WQX)(o.SKi),this.purpleService=(0,o.WQX)(U.Wj),this.appData=(0,o.WQX)($.fj),this.WEB_KIOSK_TARGET_QUERY_PARAM="purple_web_kiosk_target",this.data={},this.urls={};const B=this.router,z=this.injector;(0,se._)(this.kioskConfigService.getConfig()).then(oe=>{this.urls={SUBSCRIPTION:oe.kioskConfig.subscriptionUrl,PURCHASE:oe.kioskConfig.purchaseUrl,PREVIEW:oe.kioskConfig.purchasePreviewUrl,LOGIN:oe.kioskConfig.loginUrl,LOGOUT:oe.kioskConfig.logoutUrl}}),B.events.subscribe(oe=>{oe instanceof v.Z&&this.reset()}),setTimeout(()=>this.actionUrlService=z.get(re.p))}init(){}showBrowser(w,B,z){console.log("showbrowser",w,B,z);const oe=this.getUrl(w,B);if(this.contextService.setData("issue_id",B?B.issueId:void 0),oe){const k=this.getTarget(oe);if(k)this.dropTargetParam(oe),z?z.location.href=oe.toString():window.open(oe.toString(),k);else if("PURCHASE"!==w){var V;const K=this.getDisplayConfig(oe),ge=oe.toString().replace(null===(V=this.kioskConfigService.configObservable.value)||void 0===V?void 0:V.kioskConfig.resourceBaseUrl,"").split("?")[0];if(K.displayMode===O.DisplayMode.MODAL)this.ngZone.run(()=>{this.router.navigate([{outlets:{modal:["popup","dynamic/"+ge,ue.L.SLIDE_IN]}}],{queryParamsHandling:"merge"})});else{const ve={};oe.searchParams.forEach((Fe,We)=>{const ze=ve[We];ze?ze instanceof Array?ze.push(Fe):ve[We]=[ze,Fe]:ve[We]=Fe}),this.ngZone.run(()=>{this.router.navigate(this.appData.customDomain?["dynamic",ge]:[this.appData.brand,"dynamic",ge],{queryParams:ve,queryParamsHandling:"merge"})})}}}}onMessage(w){const B="object"==typeof w.data?w.data:JSON.parse(w.data);if(B.type&&"IGNORE_WEB_KIOSK"!==B.key)switch(B.type){case"LOAD":case"DOCUMENT_TITLE":case"STATE":case"MEDIA":PP.Util.receiveMessage(w);break;case"ACTION_URL":this.actionUrlService.openUrl(B.value,()=>{});break;case"CSS_URL":var z,oe;"purple-global-css"===B.key?PP.Util.postMessage(w.source,null===(z=document.getElementById("globalFontsCSS"))||void 0===z?void 0:z.getAttribute("href"),null,B.callbackId):PP.Util.postMessage(w.source,null===(oe=document.getElementById("fontsCSS"))||void 0===oe?void 0:oe.getAttribute("href"),null,B.callbackId);break;case"CLOSE_VIEW":this.reset();break;case"BROWSER":{const V=this.getDisplayConfig();switch(B.key){case"DISPLAY_MODE":PP.Util.postMessage(w.source,V.displayMode,B.type,B.callbackId),event.stopImmediatePropagation();break;
1case"CONTROLS":PP.Util.postMessage(w.source,V.controlsEnabled,B.type,B.callbackId),event.stopImmediatePropagation();break;case"TITLE_BAR":PP.Util.postMessage(w.source,V.titleBarEnabled,B.type,B.callbackId),event.stopImmediatePropagation();break;case"STATUS_BAR":PP.Util.postMessage(w.source,V.statusBarEnabled,B.type,B.callbackId),event.stopImmediatePropagation()}break}case"META":(0,se._)(this.kioskConfigService.getConfig()).then(V=>{switch(B.key){case PP.META_APP_ID:PP.Util.postMessage(w.source,V.kioskConfig.appId,B.type,B.callbackId);break;case PP.META_PREVIEW:PP.Util.postMessage(w.source,this.appData.preview,B.type,B.callbackId);break;case PP.META_PLATFORM:PP.Util.postMessage(w.source,"web",B.type,B.callbackId);break;case PP.META_ENTITLEMENT_TOKEN:PP.Util.postMessage(w.source,null,B.type,B.callbackId);break;case PP.META_LOCALE:PP.Util.postMessage(w.source,(0,Q.JK)(),B.type,B.callbackId);break;case PP.META_MANAGER_BASE_URL:PP.Util.postMessage(w.source,V.kioskConfig.presenterBaseUrl,B.type,B.callbackId);break;case PP.META_ENTITLEMENT_LOGIN:PP.Util.postMessage(w.source,null,B.type,B.callbackId);break;case PP.META_DEVICE_OS:{const k=new ClientJS;PP.Util.postMessage(w.source,"".concat(k.getOS(),"-").concat(k.getOSVersion()," | ").concat(k.getBrowser(),"-").concat(k.getBrowserVersion()),B.type,B.callbackId);break}default:PP.Util.postMessage(w.source,null,B.type,B.callbackId)}});break;case"STOREFRONT":switch(B.key){case"SUBSCRIPTIONS":case"PUBLICATIONS":case"ISSUES":case"ISSUE_STATES":PP.Util.postMessage(w.source,[],B.type,B.callbackId);break;case"UPDATE":this.publicationService.reset();break;default:PP.Util.postMessage(w.source,null,B.type,B.callbackId)}break;case"TRACKING":switch(B.key){case"ACTION":this.purpleService.trackAction(B.value.key,B.value.params);break;case"VIEW":this.purpleService.trackView(B.value.key,B.value.params);break;case"PURCHASE":this.purpleService.trackPurchase(B.value)}}}reset(){}getDisplayConfig(w){try{return{displayMode:"modal"===w.searchParams.get("display_mode")?O.DisplayMode.MODAL:O.DisplayMode.EMBEDDED,controlsEnabled:"true"===w.searchParams.get("controls"),titleBarEnabled:"false"!==w.searchParams.get("title_bar"),statusBarEnabled:!1}}catch(B){return{displayMode:O.DisplayMode.EMBEDDED,controlsEnabled:!1,titleBarEnabled:!0,statusBarEnabled:!1}}}openExternally(w){window.open(w,"_blank")}getUrl(w,B){if(w){var z,oe;let V=this.urls[w]||w;const k=De.exec(V),K=null===(z=this.kioskConfigService.configObservable.value)||void 0===z?void 0:z.kioskConfig;null!=k&&null!==(oe=k.groups)&&void 0!==oe&&oe.path&&(V=(null==K?void 0:K.resourceBaseUrl)+k.groups.path,console.log(V));try{const ge=new URL(V);if(V.startsWith(null==K?void 0:K.resourceBaseUrl)&&(ge.searchParams.set("preview",this.appData.preview.toString()),ge.searchParams.set("legacy","false")),this.urls[w]){B&&(ge.searchParams.set("issueId",B.issueId),B.product&&B.product.id&&ge.searchParams.set("productId",B.product.id));const ve=this.publicationService.currentPublication;ve&&ge.searchParams.set("publicationId",ve.id)}return"LOGIN"===w&&ge.searchParams.set("title_bar","false"),ge}catch(ge){return console.warn(ge),null}}}getTarget(w){try{return("object"==typeof w?w:new URL(w)).searchParams.get(this.WEB_KIOSK_TARGET_QUERY_PARAM)}catch(B){return null}}willOpenExternally(w){try{const B=new URL(w);return"_blank"===this.getTarget(B)}catch(B){console.warn(B,w)}return!1}dropTargetParam(w){try{w.searchParams.delete(this.WEB_KIOSK_TARGET_QUERY_PARAM)}catch(B){}}getMessageReceiver(w){const B=this.kioskConfigService.configObservable.value;return new te.BK({purple:(null==w?void 0:w.purple)||this.purpleService.purpleRef,getCssUrls:(null==w?void 0:w.getCssUrls)||(()=>{var z,oe;return{"purple-global-css":null===(z=document.getElementById("globalFontsCSS"))||void 0===z?void 0:z.getAttribute("href"),"purple-app-css":null===(oe=document.getElementById("fontsCSS"))||void 0===oe?void 0:oe.getAttribute("href"),"purple-content-css":(0,J.Al)("content.css",this.appData)}}),getResourceUrl:(null==w?void 0:w.getResourceUrl)||(z=>{z=z.replace("resource://dynamic/",B.kioskConfig.resourceBaseUrl);try{const oe=new URL(z);return oe.searchParams.set("preview",this.appData.preview.toString()),oe.toString()}catch(oe){console.warn(z,oe)}return z}),onSetTitle:(null==w?void 0:w.onSetTitle)||(z=>{Array.prototype.forEach.call(this.document.getElementsByClassName("pp-internal-browser pp-title"),oe=>oe.html(z)),Array.prototype.forEach.call(this.document.getElementsByClassName("pp-internal-browser pp-reload"),oe=>oe.attr("disabled",!1))}),onLocationChange:(null==w?void 0:w.onLocationChange)||(()=>{})})}}return(ce=_).\u0275fac=function(w){return new(w||ce)},ce.\u0275prov=o.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"}),_})()},244:(le,E,d)=>{"use strict";d.d(E,{I:()=>re});var p=d(467),u=d(3953),o=d(6010),v=d(4745),O=d(7031),x=d(6843),U=d(7598),Q=d(4843);let re=(()=>{var be;class ue{constructor(){this.store=(0,u.WQX)(v.il),this.purpleService=(0,u.WQX)(o.Wj),this.issues={}}
1init(){var ne=this;return(0,p.A)(function*(){yield Promise.all([ne.readFromState(),(0,Q._)((0,O.jZ)(x.O.ACCESS)(ne.store)).then(te=>{te&&(ne.config=te.cleanUp)})])})()}deleteExpiredIssues(){var ne=this;return(0,p.A)(function*(){if(ne.isEnabled()){const te=Date.now(),$=[],J=(yield window.purple.catalog.getLocalIssues()).issues;for(const De in ne.issues){const Ce=J.find(ce=>ce.id===De);te-ne.issues[De]>1e3*ne.config.interval&&(Ce?$.push(De):delete ne.issues[De])}let se=0;$.length&&(yield Promise.all([...$.map(function(){var De=(0,p.A)(function*(Ce){try{const ce=yield ne.purpleService.getIssue(Ce).catch(()=>null);ce&&(yield(yield ne.purpleService.getDownloadHandler(ce)).delete(),delete ne.issues[Ce],se++)}catch(ce){console.warn("error deleting issue "+Ce)}});return function(Ce){return De.apply(this,arguments)}}()),ne.persist()]),se>0&&window.dispatchEvent(new CustomEvent(U.YT,{detail:{}})))}})()}removeIssue(ne){this.isEnabled()&&(delete this.issues[ne],this.persist())}addIssue(ne){this.isEnabled()&&!this.issues[ne]&&(this.issues[ne]=Date.now(),this.persist())}persist(){var ne=this;return(0,p.A)(function*(){return ne.purpleService.setState(ue.STATE_KEY,JSON.stringify(ne.issues))})()}readFromState(){var ne=this;return(0,p.A)(function*(){try{ne.issues=JSON.parse(yield ne.purpleService.getState(ue.STATE_KEY))}catch(te){console.error("Failed to parse issues from state:",te)}ne.issues=ne.issues||{}})()}isEnabled(){return this.config&&this.config.interval>0}}return(be=ue).STATE_KEY="cleanUpIssues",be.\u0275fac=function(ne){return new(ne||be)},be.\u0275prov=u.jDH({token:be,factory:be.\u0275fac,providedIn:"root"}),ue})()},8745:(le,E,d)=>{"use strict";d.d(E,{Bh:()=>w,tZ:()=>J});var p=d(467),u=d(177),o=d(3953),v=d(4412),O=d(5964),x=d(2589),U=function(B){return B.LEFT="LEFT",B.RIGHT="RIGHT",B}(U||{}),Q=d(2348),re=d(6843),be=d(7879),ue=d(8890),X=d(7370),ne=d(9516),te=d(2838),$=d(8582);const J=(0,o.zw6)("configLoader"),se=(0,o.zw6)("custom.server.js"),De=(0,o.zw6)("custom.js"),Ce=(0,o.zw6)("resourcesJson");var _=function(B){return B[B.Ignore=0]="Ignore",B[B.LoadInline=1]="LoadInline",B[B.LoadOriginal=2]="LoadOriginal",B}(_||{});class R{constructor(z,oe,V){this.cssLoadingType=z,this.id=oe,this.data=V}}let w=(()=>{var B;class z{constructor(){this.document=(0,o.WQX)(u.qQ),this.platformId=(0,o.WQX)(o.Agw),this.purpleEnv=(0,o.WQX)(be.r6),this.appData=(0,o.WQX)(be.fj),this.transferState=(0,o.WQX)(o.pJN),this.contextService=(0,o.WQX)(ne.V),this.resourceService=(0,o.WQX)(te.Q),this.configSubject=new v.t(void 0),this.config$=this.configSubject.asObservable().pipe((0,O.p)(V=>!!V),(0,ue.os)())}getConfig(){return this.config$}loadConfig(){var V=this;return(0,p.A)(function*(){const[k]=yield Promise.all([V.fromTransferStateOrFetch(J,(0,p.A)(function*(){return yield V.loadUrlConfig()})),V.loadCss(),V.loadJs()]);V.configSubject.next(k)})()}loadContentThemeStyle(){var V=this;return(0,p.A)(function*(){const k=yield V.getResourcesJsonFileNames("css");yield V.handleContentThemeCssLoading(k)})()}loadContentThemeScript(){var V=this;return(0,p.A)(function*(){const k=yield V.getResourcesJsonFileNames("js");V.handleContentThemeJavascriptLoading(k)})()}
1unloadContentTheme(){var V=this;return(0,p.A)(function*(){V.document.querySelectorAll("*[data-theme='true']").forEach(K=>K.remove())})()}fromTransferStateOrFetch(V,k){var K=this;return(0,p.A)(function*(){if(K.transferState.hasKey(V))return K.transferState.get(V,null);{let ge=yield k();return K.transferState.set(V,ge),ge}})()}loadUrlConfig(){var V=this;return(0,p.A)(function*(){const k=(yield V.resourceService.loadResource("storefront/assets/urls.json",!0))||{},K=Object.entries(k).map(([ve,Fe])=>V.resourceService.loadResource("storefront/".concat(Fe),!0).then(We=>[ve,We])),ge=Object.fromEntries(yield Promise.all(K));return ge[re.O.URL]=k,ge[re.O.VIEW]=V.withViewsJsonDefaults(ge[re.O.VIEW]||[]),ge[re.O.APP_BAR]=V.withAppBarJsonDefaults(ge[re.O.APP_BAR]||[]),ge[re.O.MENUS]=V.withMenusJsonDefaults(ge[re.O.MENUS]||{sideMenus:[]}),ge[re.O.AD]=V.mapToAdsJson(ge[re.O.AD]||{adSlots:[]}),ge})()}loadCss(){var V=this;return(0,p.A)(function*(){if((0,X.Tr)(V.document.location.href,V.platformId)){const k=["fonts.css","custom.css","platform.css","submit.css"].map(ge=>"storefront/assets/".concat(ge)),K=V.getFirstElementByLocalName("noscript");yield V.resolveAndAddCssFiles(k,V.document.body,K,!1)}})()}loadJs(){var V=this;return(0,p.A)(function*(){yield V.loadCustomServerJs(),yield V.loadCustomJs()})()}loadCustomServerJs(){var V=this;return(0,p.A)(function*(){try{const k=yield V.fromTransferStateOrFetch(se,(0,p.A)(function*(){return yield V.resourceService.loadResource("storefront/assets/scripts/custom.server.js",!1)})),K=new Proxy({},{get:(ge,ve,Fe)=>("$functions"!==ve&&console.warn("custom.server.js tried to access window.".concat(ve.toString(),", only window.$functions is allowed")),Reflect.get(ge,ve,Fe)),set:(ge,ve,Fe,We)=>("$functions"!==ve&&console.warn("custom.server.js tried to set window.".concat(ve.toString(),", only window.$functions is allowed")),Reflect.set(ge,ve,Fe,We))});Function("window",'"use strict";'.concat(k))(K),K.$functions&&(window.$functions&&console.warn("Overwriting existing window.$functions definition. either you have $functions also defined in custom.js, or this log appears on the server and a previous brand had already loaded functions."),V.contextService.set$Functions(K.$functions))}catch(k){console.warn("error in custom.server.js: ",k)}})()}loadCustomJs(){var V=this;return(0,p.A)(function*(){const k=yield V.fromTransferStateOrFetch(De,(0,p.A)(function*(){return yield V.resourceService.loadResource("storefront/assets/scripts/custom.js",!1)}));if((0,u.UE)(V.platformId)){const K=V.document.createElement("script");K.type="text/javascript",K.innerHTML=k,V.document.head.appendChild(K)}})()}getResourcesJsonFileNames(V){var k=this;return(0,p.A)(function*(){var K;return(null!==(K=yield k.fromTransferStateOrFetch(Ce,(0,p.A)(function*(){var ve;const Fe=yield k.resourceService.loadResource("content/resources.json",!0);return(null==Fe||null===(ve=Fe.map(We=>"content/".concat(We)))||void 0===ve?void 0:ve.reverse())||[]})))&&void 0!==K?K:[]).filter(ve=>ve.split(".").pop()===V)})()}handleContentThemeCssLoading(V){var k=this;return(0,p.A)(function*(){const K=k.getChildElementBeforeElementWithTag("STOREFRONT-ROOT");yield k.resolveAndAddCssFiles(V,k.document.body,K,!0)})()}handleContentThemeJavascriptLoading(V){for(const k of V)this.addJavaScript(this.document.body,k,!0)}resolveAndAddCssFiles(V,k,K,ge){var ve=this;return(0,p.A)(function*(){if(0==V.length)return;const Fe=yield Promise.all(V.map(We=>ve.resolveCss(We)));ve.addCss(k,K,Fe,ge)})()}resolveCss(V){var k=this;return(0,p.A)(function*(){const K=k.currentCssLoadingType();if(K==_.LoadInline){const ge=yield k.resourceService.loadResource(V,!1);if(!ge)return new R(_.Ignore,V,null);const ve="".concat(ge);return ve.startsWith("<!doctype html>")?new R(_.LoadOriginal,V,null):new R(K,V,ve)}return new R(K,V,null)})()}currentCssLoadingType(){return(0,X._o)(this.document.location.href)?_.LoadOriginal:this.purpleEnv.inlineCSS&&(0,u.Vy)(this.platformId)?_.LoadInline:_.LoadOriginal}addCss(V,k,K,ge){for(const ve of K)if(this.document.getElementById(ve.id))console.log("skip adding ".concat(ve.id,", already present"));else switch(ve.cssLoadingType){case _.LoadInline:this.addStyleSheet(V,this.createStyleSheetInline(ve.id,ve.data,ge),k);break;case _.LoadOriginal:this.addStyleSheet(V,this.createStyleSheetAsLink(ve.id,ge),k)}}getFirstElementByLocalName(V){let k=this.document.body.firstElementChild;for(;k.localName===V;)k=k.nextElementSibling;return k}getChildElementBeforeElementWithTag(V){let k=this.document.body.firstElementChild;for(;k.tagName!==V;)k=k.nextElementSibling;return k}addStyleSheet(V,k,K){K?V.insertBefore(k,K):V.appendChild(k)}createStyleSheetInline(V,k,K){let ge=this.document.createElement("style");return ge.id=V,ge.textContent=k,K&&ge.setAttribute("data-theme","true"),ge.textContent=k,ge}createStyleSheetAsLink(V,k){let K=this.document.createElement("link");return K.rel="stylesheet",K.href=(0,X.Al)(V,this.appData),K.id=V,k&&K.setAttribute("data-theme","true"),K}addJavaScript(V,k,K){if(this.document.getElementById(k))return void console.log("skip adding ".concat(k,", already present"));const ge=this.document.createElement("script");ge.type="text/javascript",ge.src=(0,X.Al)(k,this.appData),ge.id=k,ge.defer=!0,K&&ge.setAttribute("data-theme","true"),V.appendChild(ge)}withViewsJsonDefaults(V){V.unshift({content:[{type:"presenter"}],name:"presenter",path:"presenter/:issueId",appBar:"back",navigation:"default"}),V.find(K=>"dynamic"===K.name)||V.unshift({content:[{type:"iframe"}],name:"dynamic",path:"dynamic/:path",appBar:"back"});for(const K of V)if(K.content&&Array.isArray(K.content))for(const ge of K.content)ge._uuid=(0,$.l)(),(0,$.x)(ge);return V}withAppBarJsonDefaults(V){let k=V.find(ze=>"back"==ze.id);k||(k={id:"back",logo:!1,scrollBehavior:Q.K.NONE},V.push(k)),k.content||(k.content={});let K=k.content;if("section"!==K.type){let ze={type:"section",content:[]};JSON.parse(JSON.stringify(K)),void 0!==K.type&&ze.content.push(JSON.parse(JSON.stringify(K))),K=JSON.parse(JSON.stringify(ze))}K.content||(K.content=[]);let ge=K.content.find(ze=>"toolbar"==ze.type),ve=ge||{type:"toolbar"},Fe=ve.actions;return Fe||(Fe=[]),Fe.find(ze=>"pdf"===ze.type||"pdf_dropdown"===ze.type)||Fe.push({type:x.f.pdf_dropdown,content:"DOWNLOAD_PDF"}),ve.actions=Fe,ge||K.content.push(ve),k.content=K,(0,$.x)(V),V}withMenusJsonDefaults(V){return(!V.sideMenus.length||!V.sideMenus.find(k=>"default"===k.id))&&V.sideMenus.push({id:"default",side:U.LEFT,content:[{type:"app-menu-xml"}]}),(0,$.x)(V),V}mapToAdsJson(V){return Array.isArray(V)?{adSlots:V}:V}}return(B=z).\u0275fac=function(V){return new(V||B)},B.\u0275prov=o.jDH({token:B,factory:B.\u0275fac,providedIn:"root"}),z})()},6078:(le,E,d)=>{"use strict";d.d(E,{e:()=>je});var p=d(467),u=d(3953),o=d(177),v=d(4404),O=d(9118),x=d(9379),U=function(fe){return fe.useractioncomplete="useractioncomplete",fe.tcloaded="tcloaded",fe.cmpuishown="cmpuishown",fe}(U||{});class Q{constructor(D){this.data=D}
1hasConsent(D){return this.vendorGrant(D)}getVendorGrant(D){return this.vendorGrant(D)}getPurposeGrants(D){var H;return null===(H=this.data)||void 0===H||null===(H=H.purpose)||void 0===H?void 0:H.consents}vendorGrant(D){var H;return null===(H=this.data)||void 0===H||null===(H=H.vendor)||void 0===H||null===(H=H.consents)||void 0===H?void 0:H[D]}}class re{hasConsent(D){return!1}getVendorGrant(D){return!1}getPurposeGrants(D){return{}}}class be{updateTCData(D){this.tcData=D}updateCustomConsentData(D){this.customConsentData=D}hasConsent(D){var H,Se;return!(!(null===(H=this.tcData)||void 0===H?void 0:H.hasConsent(D))&&!(null===(Se=this.customConsentData)||void 0===Se?void 0:Se.hasConsent(D)))}getVendorGrant(D){var H,Se;return!(!(null===(H=this.tcData)||void 0===H?void 0:H.getVendorGrant(D))&&!(null===(Se=this.customConsentData)||void 0===Se?void 0:Se.getVendorGrant(D)))}getPurposeGrants(D){var H,Se;return(0,x.A)((0,x.A)({},null===(H=this.tcData)||void 0===H?void 0:H.getPurposeGrants(D)),null===(Se=this.customConsentData)||void 0===Se?void 0:Se.getPurposeGrants(D))}}var ue=d(8340);class X extends ue.u{}class ne extends ue.U{constructor(){super(...arguments),this.consentInfo=new be,this.cmpLoadedFirstTime=!1}isCMPLoadedFirstTime(){return!this.cmpLoadedFirstTime&&(this.cmpLoadedFirstTime=!0,!0)}hasConsent(D){return!!D&&this.consentInfo.hasConsent(D)}getConsent(D){const H=D.vendorId;return{vendorId:H,vendorGrant:this.consentInfo.getVendorGrant(H),purposeGrants:this.consentInfo.getPurposeGrants(H)}}updateConsent(){}}class te extends X{constructor(D){super("PXP Default CMP",null),this.hasConsentDefaultValue=D}isEnabled(){return!0}isValidConfiguration(){return!0}createInstance(){return new $(this)}}class $ extends ne{adjustDocument(){return(0,p.A)(function*(){})()}showPrivacyManager(){return(0,p.A)(function*(){return{}})()}grantConsent(D){return(0,p.A)(function*(){})()}hasConsent(D){return this.getConfig().hasConsentDefaultValue}getConsent(D){return{vendorId:D.vendorId,vendorGrant:!0,purposeGrants:{}}}}var J=function(fe){return fe.automatic="automatic",fe.semiAutomatic="semi_automatic",fe}(J||{});class se extends re{constructor(D){super(),this.data=D}hasConsent(D){return this.vendorGrant(D)}getVendorGrant(D){return this.vendorGrant(D)}getPurposeGrants(D){var H;return null===(H=this.data)||void 0===H?void 0:H.purposeConsents}vendorGrant(D){var H;return null===(H=this.data)||void 0===H||null===(H=H.vendorConsents)||void 0===H?void 0:H[D]}}class De extends X{constructor(D){super("ConsentManager CMP",D)}createInstance(){return new Ce(this)}getMode(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.mode}getCodeId(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.codeId}getCmpHost(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.cmpHost}getCmpCdn(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.cmpCdn}getCmpBlockIgnoreDomains(){var D,H;return null!==(D=null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H?void 0:H.cmpBlockIgnoreDomains)&&void 0!==D?D:[]}isValidConfiguration(){return!!this.getCodeId()&&!!this.getCmpHost()&&!!this.getCmpCdn()}}class Ce extends ne{adjustDocument(){return new Promise((D,H)=>{const Se=document.head.firstChild;this.getConfig().getCmpBlockIgnoreDomains().length>0&&document.head.insertBefore(this.createBlockingScript(),Se),document.head.insertBefore(this.createCmpEndpoint(D,H),Se)})}createBlockingScript(){const D="['"+this.getConfig().getCmpBlockIgnoreDomains().join("','")+"']",H=document.createElement("script");return H.type="text/javascript",H.setAttribute("data-cmp-ab","1"),H.async=!0,H.setAttribute("fetchpriority","high"),H.text="\n            window.cmp_block_inline = false;\n            window.cmp_block_ignoredomains = ".concat(D,";\n        "),H}createCmpEndpoint(D,H){const Se=this,Ue=this.getConfig(),at=document.createElement("script");return at.type="text/javascript",at.async=!0,at.setAttribute("fetchpriority","high"),at.setAttribute("data-cmp-ab","1"),at.setAttribute("data-cmp-host",Ue.getCmpHost()),at.setAttribute("data-cmp-cdn",Ue.getCmpCdn()),Ue.getMode()===J.semiAutomatic?(at.src="https://".concat(Ue.getCmpCdn(),"/delivery/js/semiautomatic.min.js"),at.setAttribute("data-cmp-cdid",Ue.getCodeId()),at.setAttribute("data-cmp-codesrc","1")):(at.
1src="https://".concat(Ue.getCmpCdn(),"/delivery/autoblocking/").concat(Ue.getCodeId(),".js"),at.setAttribute("data-cmp-codesrc","0")),at.onload=()=>{window.__cmp("addEventListener",["consent",(0,p.A)(function*(){console.debug("".concat(Se.getDisplayName(),", addEventListener, consent loaded")),yield Se.updateConsentInfo(),Se.isCMPLoadedFirstTime()&&D()}),!1],null)},at.onerror=()=>{console.error("Error while loading: ".concat(Se.getDisplayName())),Se.isCMPLoadedFirstTime()&&H()},at}showPrivacyManager(){return(0,p.A)(function*(){return window.__cmp("showScreen")})()}grantConsent(D){return(0,p.A)(function*(){var H;window.__cmp("setVendorConsent",[D.vendorId,1]),(null===(H=D.purposeIds)||void 0===H?void 0:H.length)>0&&D.purposeIds.forEach(Se=>{window.__cmp("setPurposeConsent",[Se,1])})})()}updateConsentInfo(){var D=this;return(0,p.A)(function*(){console.debug("".concat(D.getDisplayName(),", updateConsentInfo"));const H=yield window.__cmp("getCMPData");console.debug("".concat(D.getDisplayName(),", getCMPData, data:"),H),D.consentInfo.updateCustomConsentData(new se(H))})()}}var ce=d(3057),_=d.n(ce),R=function(fe){return fe.gdpr="gdpr",fe.usnat="usnat",fe}(R||{});class w{constructor(D){this.data=D}getType(){var D;return null===(D=this.data)||void 0===D?void 0:D.type}getPrivacyManagerId(){var D;return null===(D=this.data)||void 0===D?void 0:D.privacyManagerId}}class B{constructor(D){this.pluginConfiguration=D,this.unresolvedCampaigns=new Set,this.initResolvedCampaigns()}getActiveVisitorCampaign(){return this.activeVisitorCampaign}assignCampaignToVisitor(D){void 0===this.getActiveVisitorCampaign()&&(this.activeVisitorCampaign=new w(this.pluginConfiguration.getCampaignData(D)),console.debug("".concat(this.pluginConfiguration.displayName,", set active campaign to '").concat(this.activeVisitorCampaign.getType(),"'")))}receivedCampaign(D,H){this.unresolvedCampaigns.has(D)&&this.unresolvedCampaigns.delete(D),this.allCampaignsResolved()&&H()}allCampaignsResolved(){return 0==this.unresolvedCampaigns.size}initResolvedCampaigns(){this.unresolvedCampaigns=this.pluginConfiguration.getCampaignTypes(),console.debug("".concat(this.pluginConfiguration.displayName,", Active campaigns: "),this.unresolvedCampaigns)}}class z extends re{hasConsent(D){return!0}getVendorGrant(D){return!0}getPurposeGrants(D){return{}}}class oe extends re{constructor(D){super(),this.data=D}hasConsent(D){return this.vendorGrant(D)}getVendorGrant(D){return this.vendorGrant(D)}getPurposeGrants(D){var H;return null===(H=this.data)||void 0===H||null===(H=H.grants)||void 0===H||null===(H=H[D])||void 0===H?void 0:H.purposeGrants}vendorGrant(D){var H;return null===(H=this.data)||void 0===H||null===(H=H.grants)||void 0===H||null===(H=H[D])||void 0===H?void 0:H.vendorGrant}}class V extends re{constructor(D){super(),this.data=D}hasConsent(D){return this.vendorGrant(D)}getVendorGrant(D){return this.vendorGrant(D)}getPurposeGrants(D){return{}}vendorGrant(D){var H,Se;const Ue=null===(H=this.data)||void 0===H||null===(H=H.vendors)||void 0===H?void 0:H.find(at=>at._id===D);return null!==(Se=null==Ue?void 0:Ue.consented)&&void 0!==Se&&Se}}class k extends X{constructor(D){super("SourcePoint CMP",D)}createInstance(){return new K(this)}getAccountId(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.accountId}getPropertyId(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.propertyId}getPropertyName(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.propertyName}isValidConfiguration(){return!!(this.getAccountId()&&this.getPropertyId()&&this.getPropertyName()&&this.hasValidCampaignConfiguration())}getCampaignTypes(){const D=new Set;var H;return this.hasCampaigns()?null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H||null===(H=H.campaigns)||void 0===H||H.forEach(Se=>{D.add(Se.type)}):D.add(R.gdpr),D}hasCampaigns(){var D;return(null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D||null===(D=D.campaigns)||void 0===D?void 0:D.length)>0}hasCampaignGDPR(){return this.hasCampaign(R.gdpr)||!!this.getPrivacyManagerId()}hasCampaignUsNational(){return this.hasCampaign(R.usnat)}getCampaignData(D){var H;return this.hasCampaigns()?null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H||null===(H=H.campaigns)||void 0===H?void 0:H.find(Se=>Se.type===D):{type:R.gdpr,privacyManagerId:this.getPrivacyManagerId()}}isKnownCampaignType(D){return Object.values(R).includes(D)}hasCampaign(D){var H;return void 0!==(null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H||null===(H=H.campaigns)||void 0===H?void 0:H.find(Se=>Se.type===D))}getPrivacyManagerId(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.privacyManagerId}hasValidCampaignConfiguration(){var D;return this.hasCampaigns()?void 0!==(null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.campaigns.find(Se=>this.isKnownCampaignType(Se.type)&&void 0!==Se.privacyManagerId)):!!this.getPrivacyManagerId()}}class K extends ne{constructor(D){super(D),this.campaignManager=new B(this.getConfig())}adjustDocument(){const D=this;return new Promise((H,Se)=>{const Ue=D.getConfig();Ue.hasCampaignGDPR()&&D.createTcfStubScript(),Ue.hasCampaignUsNational()&&document.head.appendChild(D.createGppStubScript()),document.head.appendChild(D.createClientConfigurationScript()),D.addListener(H,Se),document.head.appendChild(D.createMessagingLibraryScript(()=>{},at=>{D.isCMPLoadedFirstTime()&&Se(at)}
1))})}createTcfStubScript(){_()()}createGppStubScript(){const D=document.createElement("script");return D.type="text/javascript",D.text='window.__gpp_addFrame=function(e){if(!window.frames[e])if(document.body){var t=document.createElement("iframe");t.style.cssText="display:none",t.name=e,document.body.appendChild(t)}else window.setTimeout(window.__gpp_addFrame,10,e)},window.__gpp_stub=function(){var e=arguments;if(__gpp.queue=__gpp.queue||[],__gpp.events=__gpp.events||[],!e.length||1==e.length&&"queue"==e[0])return __gpp.queue;if(1==e.length&&"events"==e[0])return __gpp.events;var t=e[0],p=e.length>1?e[1]:null,s=e.length>2?e[2]:null;if("ping"===t)p({gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}},!0);else if("addEventListener"===t){"lastId"in __gpp||(__gpp.lastId=0),__gpp.lastId++;var n=__gpp.lastId;__gpp.events.push({id:n,callback:p,parameter:s}),p({eventName:"listenerRegistered",listenerId:n,data:!0,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else if("removeEventListener"===t){for(var a=!1,i=0;i<__gpp.events.length;i++)if(__gpp.events[i].id==s){__gpp.events.splice(i,1),a=!0;break}p({eventName:"listenerRemoved",listenerId:s,data:a,pingData:{gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnat","8:usca","9:usva","10:usco","11:usut","12:usct"],cmpId:0,sectionList:[],applicableSections:[],gppString:"",parsedSections:{}}},!0)}else"hasSection"===t?p(!1,!0):"getSection"===t||"getField"===t?p(null,!0):__gpp.queue.push([].slice.apply(e))},window.__gpp_msghandler=function(e){var t="string"==typeof e.data;try{var p=t?JSON.parse(e.data):e.data}catch(e){p=null}if("object"==typeof p&&null!==p&&"__gppCall"in p){var s=p.__gppCall;window.__gpp(s.command,(function(p,n){var a={__gppReturn:{returnValue:p,success:n,callId:s.callId}};e.source.postMessage(t?JSON.stringify(a):a,"*")}),"parameter"in s?s.parameter:null,"version"in s?s.version:"1.1")}},"__gpp"in window&&"function"==typeof window.__gpp||(window.__gpp=window.__gpp_stub,window.addEventListener("message",window.__gpp_msghandler,!1),window.__gpp_addFrame("__gppLocator"));',D}createClientConfigurationScript(){const D=document.createElement("script");return D.type="text/javascript",D.text="\n            window._sp_queue = [];\n            window._sp_ = {\n                ".concat(this.createConfiguration(),"\n            };\n        "),D}createConfiguration(){const D=this.getConfig();return"\n            config: {\n                accountId: ".concat(D.getAccountId(),",\n                baseEndpoint: 'https://cdn.privacy-mgmt.com',\n                propertyId: ").concat(D.getPropertyId(),",\n                propertyHref: '").concat(D.getPropertyName(),"',\n                ").concat(this.createCampaigns(),",\n                events: {}\n            }\n        ")}createCampaigns(){const D=this.getConfig(),H=new Array;return D.hasCampaignGDPR()&&H.push("gdpr: {}"),D.hasCampaignUsNational()&&H.push("usnat: {}"),H.join(", ")}createMessagingLibraryScript(D,H){const Se=this,Ue=document.createElement("script");return Ue.async=!0,Ue.type="text/javascript",Ue.src="https://cdn.privacy-mgmt.com/unified/wrapperMessagingWithoutDetection.js",Ue.onload=()=>D(),Ue.onerror=at=>{console.error("Error while loading: ".concat(Se.getDisplayName()),at),H(at)},Ue}addListener(D,H){const Se=this.getConfig();Se.hasCampaignGDPR()&&this.handleTFCEventListener(),Se.hasCampaignUsNational()&&this.handleGPPEventListener(),this.addOnConsentReadyListener(D),this.addOnErrorListener(H)}addOnErrorListener(D){const H=this;window._sp_.config.events.onError=(0,p.A)(function*(){console.debug("".concat(H.getDisplayName(),", [event] onError"),arguments),H.isCMPLoadedFirstTime()&&D()})}
1addOnConsentReadyListener(D){const H=this;window._sp_.config.events.onConsentReady=function(){var Se=(0,p.A)(function*(Ue,at,hn,ln){console.debug("".concat(H.getDisplayName(),", onConsentReady"),arguments),console.debug("".concat(H.getDisplayName(),", Geo location applies to visitor: ").concat(ln.applies)),H.getConfig().isKnownCampaignType(Ue)||console.warn("".concat(H.getDisplayName(),', Incoming message_type "').concat(Ue,'" is not configured by any campaign in "experience.config.json". That may result in unexpected behavior and need to be fixed!')),ln.applies&&(H.campaignManager.assignCampaignToVisitor(Ue),yield H.updateConsentInfo()),H.campaignManager.receivedCampaign(Ue,()=>{void 0===H.campaignManager.getActiveVisitorCampaign()&&H.consentInfo.updateCustomConsentData(new z),H.isCMPLoadedFirstTime()&&D()})});return function(Ue,at,hn,ln){return Se.apply(this,arguments)}}()}handleTFCEventListener(){const D=this;window.__tcfapi("addEventListener",2,function(){var H=(0,p.A)(function*(Se,Ue){Ue?(console.debug("".concat(D.getDisplayName(),", [TCF] addEventListener, eventStatus: ").concat(Se.eventStatus)),(Se.eventStatus===U.useractioncomplete||Se.eventStatus===U.tcloaded)&&(yield D.updateConsentInfoTCData(new Q(Se)))):console.warn("".concat(D.getDisplayName(),", [TCF] addEventListener failed, no success!"))});return function(Se,Ue){return H.apply(this,arguments)}}())}handleGPPEventListener(){const D=this;window.__gpp("addEventListener",function(){var H=(0,p.A)(function*(Se,Ue){Ue?(console.debug("".concat(D.getDisplayName(),", [GPP] addEventListener"),Se),"signalStatus"===Se.eventName&&"ready"===Se.data&&(yield D.updateConsentInfo())):console.warn("".concat(D.getDisplayName(),", [GPP] addEventListener failed, no success!"))});return function(Se,Ue){return H.apply(this,arguments)}}())}showPrivacyManager(){const D=this.campaignManager.getActiveVisitorCampaign();if(void 0===D)return void console.debug("".concat(this.getDisplayName(),", 'showPrivacyManager' called without any active campaign!"));const H=D.getPrivacyManagerId();switch(D.getType()){case R.gdpr:return this.showPrivacyManagerTCF(H);case R.usnat:return this.showPrivacyManagerUsNational(H);default:return}}showPrivacyManagerTCF(D){return window._sp_.gdpr.loadPrivacyManagerModal(D)}showPrivacyManagerUsNational(D){return window._sp_.usnat.loadPrivacyManagerModal(D)}grantConsent(D){var H=this;return(0,p.A)(function*(){const Se=H.campaignManager.getActiveVisitorCampaign();void 0!==Se?Se.getType()===R.gdpr?yield H.grantConsentTCF(D):console.debug("".concat(H.getDisplayName(),", Campaign (").concat(Se.getType(),") do not provide an API to grant anything.")):console.debug("".concat(H.getDisplayName(),", 'grantConsent' called without any active campaign!"))})()}grantConsentTCF(D){var H=this;return(0,p.A)(function*(){const Se=H;yield window.__tcfapi("postCustomConsent",2,function(Ue,at){console.debug("".concat(Se.getDisplayName(),", postCustomConsent, success:"),at),console.debug("".concat(Se.getDisplayName(),", postCustomConsent, data:"),Ue),at&&Se.consentInfo.updateCustomConsentData(new oe(Ue))},[D.vendorId],D.purposeIds,[])})()}updateConsentInfo(){var D=this;return(0,p.A)(function*(){const H=D.campaignManager.getActiveVisitorCampaign();if(void 0!==H)switch(console.debug("".concat(D.getDisplayName(),", updateConsentInfo")),H.getType()){case R.gdpr:yield D.updateConsentInfoTCF();break;case R.usnat:yield D.updateConsentInfoUsNational()}})()}updateConsentInfoTCData(D){var H=this;return(0,p.A)(function*(){console.debug("".concat(H.getDisplayName(),", updateConsentInfo, tcdata:"),D),H.consentInfo.updateTCData(D)})()}updateConsentInfoTCF(){var D=this;return(0,p.A)(function*(){const H=D;yield window.__tcfapi("getCustomVendorConsents",2,function(Se,Ue){console.debug("".concat(H.getDisplayName(),", getCustomVendorConsents, success:"),Ue),console.debug("".concat(H.getDisplayName(),", getCustomVendorConsents, data:"),Se),Ue&&H.consentInfo.updateCustomConsentData(new oe(Se))})})()}updateConsentInfoUsNational(){var D=this;return(0,p.A)(function*(){const H=D;yield window._sp_.usnat.getUserConsents((Se,Ue)=>{console.debug("".concat(H.getDisplayName(),", getUserConsents, success:"),Ue),console.debug("".concat(H.getDisplayName(),", getUserConsents, data:"),Se),Ue&&H.consentInfo.updateCustomConsentData(new V(Se))})})()}}class ge extends re{constructor(D){super(),this.data=D}
1hasConsent(D){return this.vendorGrant(D)}getVendorGrant(D){return this.vendorGrant(D)}getPurposeGrants(D){return{}}vendorGrant(D){var H;return null===(H=this.data)||void 0===H||null===(H=H.consents)||void 0===H?void 0:H[D]}}class ve extends X{constructor(D){super("Traffective CMP",D)}createInstance(){return new Fe(this)}getDataDomain(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.dataDomain}isValidConfiguration(){return!!this.getDataDomain()}}class Fe extends ne{adjustDocument(){return new Promise((D,H)=>{document.head.insertBefore(this.createCmpEndpointScript(D,H),document.head.firstChild)})}createCmpEndpointScript(D,H){const Se=this,Ue=this.getConfig().getDataDomain(),at=document.createElement("script");return at.id="open-cmp-stub",at.type="text/javascript",at.src="https://cdn.opencmp.net/tcf-v2/cmp-stub-latest.js",at.setAttribute("data-domain",Ue),at.onload=()=>{window.__tcfapi("addEventListener",2,function(){var hn=(0,p.A)(function*(ln,et){et?(console.debug("".concat(Se.getDisplayName(),", addEventListener, eventStatus: ").concat(ln.eventStatus)),(ln.eventStatus===U.useractioncomplete||ln.eventStatus===U.tcloaded)&&(yield Se.updateConsentInfo(new Q(ln),new ge(ln.customVendors)),Se.isCMPLoadedFirstTime()&&D())):(console.warn("".concat(Se.getDisplayName(),", addEventListener, script configuration is not valid!")),Se.isCMPLoadedFirstTime()&&H())});return function(ln,et){return hn.apply(this,arguments)}}())},at.onerror=()=>{console.error("Error while loading: ".concat(Se.getDisplayName())),Se.isCMPLoadedFirstTime()&&H()},at}showPrivacyManager(){return(0,p.A)(function*(){return window.__tcfapi("showUi",2,function(){})})()}grantConsent(D){return(0,p.A)(function*(){})()}updateConsentInfo(D,H){var Se=this;return(0,p.A)(function*(){console.debug("".concat(Se.getDisplayName(),", updateConsentInfo")),Se.consentInfo.updateTCData(D),console.debug("".concat(Se.getDisplayName(),", updateConsentInfo, tcdata:"),D),Se.consentInfo.updateCustomConsentData(H),console.debug("".concat(Se.getDisplayName(),", updateConsentInfo, customConsentData:"),H)})()}updateConsent(){var D;console.debug("".concat(this.getDisplayName(),", processConsent")),null===(D=window)||void 0===D||D.__tcfapi("processConsent",2,()=>console.debug("".concat(this.getDisplayName(),", processConsent done.")))}}class We extends re{constructor(D){super(),this.data=D}hasConsent(D){return this.vendorGrant(D)}getVendorGrant(D){return this.vendorGrant(D)}getPurposeGrants(D){return{}}vendorGrant(D){var H,Se;const Ue=this.data.find(at=>at.id===D);return null!==(H=null==Ue||null===(Se=Ue.consent)||void 0===Se?void 0:Se.status)&&void 0!==H&&H}}class ze extends X{constructor(D){super("Usercentrics CMP",D)}createInstance(){return new bt(this)}scriptVersion(){var D,H;return null!==(D=null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H?void 0:H.scriptVersion)&&void 0!==D?D:"3.48.0"}getDataSettingsId(){var D;return null===(D=this.data)||void 0===D||null===(D=D.configuration)||void 0===D?void 0:D.dataSettingsId}isDataTcfEnabled(){var D,H;return null!==(D=null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H?void 0:H.dataTcfEnabled)&&void 0!==D&&D}isCmpDisplaySuppressed(){var D,H;return null!==(D=null===(H=this.data)||void 0===H||null===(H=H.configuration)||void 0===H?void 0:H.suppressCmpDisplay)&&void 0!==D&&D}isValidConfiguration(){return!!this.getDataSettingsId()}}class bt extends ne{adjustDocument(){return new Promise((D,H)=>{const Se=this.getConfig(),Ue=document.head.firstElementChild;document.head.insertBefore(this.createLinkElement("preconnect","//app.usercentrics.eu"),Ue),document.head.insertBefore(this.createLinkElement("preconnect","//api.usercentrics.eu"),Ue),document.head.insertBefore(this.createLinkElement("preload","//app.usercentrics.eu/browser-ui/".concat(Se.scriptVersion(),"/loader.js"),"script"),Ue),Se.isCmpDisplaySuppressed()&&document.head.insertBefore(this.createSupressCMPDisplay(),Ue),document.head.insertBefore(this.createCmpEndpoint(D,H),Ue)})}createSupressCMPDisplay(){const D=document.createElement("script");return D.type="text/javascript",D.text="var UC_UI_SUPPRESS_CMP_DISPLAY = true;",D}createLinkElement(D,H,Se){const Ue=document.createElement("link");return Ue.rel=D,Ue.href=H,Se&&(Ue.as=Se),Ue}createCmpEndpoint(D,H){const Se=this,Ue=this.getConfig(),at=document.createElement("script");return at.id="usercentrics-cmp",at.src="https://app.usercentrics.eu/browser-ui/".concat(Ue.scriptVersion(),"/loader.js"),at.setAttribute("data-settings-id",Ue.getDataSettingsId()),Ue.isDataTcfEnabled()?at.setAttribute("data-tcf-enabled",""):at.async=!0,at.onload=Ue.isDataTcfEnabled()?()=>{Se.handleCmpEndpointOnLoadTCF(D,H)}:()=>{Se.handleCmpEndpointOnLoadDefault(D)},at.onerror=hn=>{console.error("Error while loading: ".concat(Se.getDisplayName())),Se.isCMPLoadedFirstTime()&&H(hn)},at}handleCmpEndpointOnLoadTCF(D,H){const Se=this;window.__tcfapi("addEventListener",2,(Ue,at)=>{at?(console.debug("".concat(Se.getDisplayName(),", addEventListener, eventStatus: ").concat(Ue.eventStatus)),Se.lastTcdataEventStatus=Ue.eventStatus,(Ue.eventStatus===U.useractioncomplete||Ue.eventStatus===U.tcloaded)&&(Se.updateConsentInfo(new Q(Ue)),Se.isCMPLoadedFirstTime()&&D())):(console.warn("".concat(Se.getDisplayName(),", addEventListener, script configuration is not val
1id!")),Se.isCMPLoadedFirstTime()&&H())}),window.addEventListener("UC_UI_INITIALIZED",()=>{console.debug("".concat(Se.getDisplayName(),", event, UC_UI_INITIALIZED")),Se.updateConsentInfo(),(Se.lastTcdataEventStatus===U.useractioncomplete||Se.lastTcdataEventStatus===U.tcloaded)&&this.isCMPLoadedFirstTime()&&D()}),window.addEventListener("UC_SDK_EVENT",function(Ue){console.debug("".concat(Se.getDisplayName(),", event: UC_SDK_EVENT: ").concat(Ue.detail.action),Ue.detail),Se.updateConsentInfo()})}handleCmpEndpointOnLoadDefault(D){const H=this;window.addEventListener("UC_UI_INITIALIZED",()=>{console.debug("".concat(H.getDisplayName(),", event, UC_UI_INITIALIZED")),H.updateConsentInfo(),!window.UC_UI.isConsentRequired()&&H.isCMPLoadedFirstTime()&&D()}),window.addEventListener("UC_SDK_EVENT",function(Se){var Ue;console.debug("".concat(H.getDisplayName(),", event: UC_SDK_EVENT"),Se.detail),"onInitialPageLoad"!==(null===(Ue=Se.detail)||void 0===Ue?void 0:Ue.event)&&(H.updateConsentInfo(),H.isCMPLoadedFirstTime()&&D())})}isCMPLoadedFirstTime(){var D;return(null===(D=window.UC_UI)||void 0===D?void 0:D.isInitialized())&&super.isCMPLoadedFirstTime()}showPrivacyManager(){return(0,p.A)(function*(){return window.UC_UI.showSecondLayer(),{}})()}grantConsent(D){var H=this;return(0,p.A)(function*(){const Se=D.vendorId;yield window.UC_UI.acceptService(Se),console.log("Consent granted for custom vendor: ".concat(Se)),H.updateConsentInfo()})()}updateConsentInfo(D){var H;if(console.debug("".concat(this.getDisplayName(),", updateConsentInfo")),this.getConfig().isDataTcfEnabled()&&D&&(this.consentInfo.updateTCData(D),console.debug("".concat(this.getDisplayName(),", updateConsentInfo, tcdata:"),D)),null!==(H=window.UC_UI)&&void 0!==H&&H.isInitialized()){const Ue=window.UC_UI.getServicesBaseInfo();this.consentInfo.updateCustomConsentData(new We(Ue)),console.debug("".concat(this.getDisplayName(),", updateConsentInfo, customConsentData:"),Ue)}}}class Ke{constructor(D,H){this.kioskConfig=D,this.experienceConfig=H}loadCmpPluginConfiguration(){switch(this.getCmpProvider()){case"sourcepoint":return new k(this.getSourcepointConfigData());case"consentManager":case"consentmanager":return new De(this.getConsentmanagerConfigData());case"traffective":return new ve(this.getTraffectiveConfigData());case"usercentrics":return new ze(this.getUsercentricsConfigData());default:return new te(!0)}}getCmpProvider(){var D;return(null===(D=this.experienceConfig.purple)||void 0===D||null===(D=D.consentManagement)||void 0===D?void 0:D.cmpProvider)||this.experienceConfig.cmpProvider||this.kioskConfig.cmpProvider||"none"}getSourcepointConfigData(){var D;return(null===(D=this.experienceConfig)||void 0===D||null===(D=D.purple)||void 0===D||null===(D=D.consentManagement)||void 0===D||null===(D=D.cmps)||void 0===D?void 0:D.sourcepoint)||{configuration:{accountId:parseInt(this.kioskConfig.sourcePointAccountId,10),propertyId:parseInt(this.kioskConfig.sourcePointPropertyId,10),propertyName:this.kioskConfig.sourcePointPropertyName,privacyManagerId:this.kioskConfig.sourcePointPrivacyManagerId}}}getConsentmanagerConfigData(){var D;const H=null===(D=this.experienceConfig.purple)||void 0===D||null===(D=D.consentManagement)||void 0===D||null===(D=D.cmps)||void 0===D?void 0:D.consentmanager;if(H)return H;const Se=this.experienceConfig.consentManager;if(Se)try{return{configuration:{codeId:this.extractCodeId(Se.script.properties.src),cmpHost:Se.script.properties["data-cmp-host"],cmpCdn:Se.script.properties["data-cmp-cdn"],cmpBlockIgnoreDomains:this.extractBlockIgnoreDomains(Se.blockingScript.content)}}}catch(Ue){console.error("Can not convert legacy configuration for Consentmanager!")}return null}extractCodeId(D){const H=null==D?void 0:D.substring(D.lastIndexOf("/")+1),Se=null==H?void 0:H.split(".");return Se?Se[0]:""}extractBlockIgnoreDomains(D){var H,Se;return null!==(H=null===(Se=D.match(/\[(.*)]/))||void 0===Se?void 0:Se[1].split(",").map(Ue=>Ue.trim().replace(/'/g,"").replace(/"/g,"")))&&void 0!==H?H:[]}getTraffectiveConfigData(){var D,H;return(null===(D=this.experienceConfig.purple)||void 0===D||null===(D=D.consentManagement)||void 0===D||null===(D=D.cmps)||void 0===D?void 0:D.traffective)||(null!==(H=this.experienceConfig)&&void 0!==H&&H.traffectiveCmp?{configuration:{dataDomain:null===(Ue=this.experienceConfig)||void 0===Ue||null===(Ue=Ue.traffectiveCmp)||void 0===Ue||null===(Ue=Ue.script)||void 0===Ue?void 0:Ue.properties["data-domain"]}}:null);var Ue}getUsercentricsConfigData(){var D;return null===(D=this.experienceConfig.purple)||void 0===D||null===(D=D.consentManagement)||void 0===D||null===(D=D.cmps)||void 0===D?void 0:D.usercentrics}}
1var Me=d(4843);class tt{constructor(D,H,Se){this.kioskConfigService=D,this.pluginService=H,this.pxpConfig=Se,this.init$=new Promise((Ue,at)=>{this.init(Ue,at)})}init(D,H){var Se=this;return(0,p.A)(function*(){const Ue=Se,at=yield(0,Me._)(Se.kioskConfigService.getConfig());Se.currentCMP=Se.createCMP(at.kioskConfig),Se.currentCMP.init$.then(()=>{D()}).catch(hn=>{const ln=Ue.fallbackCMP();console.debug("Could not load: ".concat(Ue.currentCMP.getDisplayName(),"."),hn),console.debug("  => Use fallback CMP instead: ".concat(ln.getDisplayName())),Ue.currentCMP=ln,D()})})()}createCMP(D){var H;const Se=new Ke(D,this.pxpConfig);return null!==(H=this.pluginService.loadPlugin(Se.loadCmpPluginConfiguration()))&&void 0!==H?H:this.fallbackCMP()}fallbackCMP(){return new te(!1).createInstance()}}var He=d(953),ot=d(7879);let je=(()=>{var fe;class D{constructor(){this.kioskConfigService=(0,u.WQX)(O.x),this.pluginService=(0,u.WQX)(He.z),this.platformId=(0,u.WQX)(u.Agw),this.pxpConfig=(0,u.WQX)(ot.Wp),this.consentAwarePlugins=new Set,this.init$=new Promise((Se,Ue)=>{this.init(Se,Ue)})}init(Se,Ue){var at=this;return(0,p.A)(function*(){(0,o.UE)(at.platformId)?(at.CMPManager=new tt(at.kioskConfigService,at.pluginService,at.pxpConfig),at.CMPManager.init$.then(()=>{Se()})):Se()})()}registerConsentAwarePlugin(Se){this.consentAwarePlugins.add(Se)}canRunPlugin(Se){const Ue=this.hasConsent(Se.getVendorId())||this.hasConsent(Se.getIABVendorId());console.debug("  => ".concat(Se.displayName,Ue?" consent granted.":" consent not granted!"));const at=Se.canRunWithoutConsent();return at&&console.debug("  => ".concat(Se.displayName," can run without given consent!")),Ue||at}showPrivacyManager(){var Se=this;return(0,p.A)(function*(){return Se.CMPManager.currentCMP.showPrivacyManager()})()}hasConsent(Se){return this.CMPManager.currentCMP.hasConsent(Se)}getConsent(Se){if(!Se)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!Se.vendorId)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};return this.CMPManager.currentCMP.getConsent(Se)}grantConsent(Se){var Ue=this;return(0,p.A)(function*(){if(!Se)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No valid params provided"};if(!Se.vendorId)throw{code:v.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"No vendorId provided"};yield Ue.CMPManager.currentCMP.grantConsent(Se)})()}updateConsent(){var Se;null===(Se=this.CMPManager)||void 0===Se||null===(Se=Se.currentCMP)||void 0===Se||null===(Se=Se.init$)||void 0===Se||Se.then(()=>{this.CMPManager.currentCMP.updateConsent()})}}return(fe=D).\u0275fac=function(Se){return new(Se||fe)},fe.\u0275prov=u.jDH({token:fe,factory:fe.\u0275fac,providedIn:"root"}),D})()},9516:(le,E,d)=>{"use strict";d.d(E,{V:()=>B});var p=d(467),u=d(9379),o=d(177),v=d(3953),O=d(4412),x=d(1413),U=d(3083),Q=d(5007),re=d(6010),be=d(3331),ue=d(3749),X=d(873),ne=d(4404),$=d(5964),J=d(7374),se=d.n(J),De=d(9360),Ce=d(7879),ce=d(7467),_=d(5927),R=d(7370);const w=(0,De.zk)();let B=(()=>{var z;class oe{constructor(){this.platformId=(0,v.WQX)(v.Agw),this.route=(0,v.WQX)(be.nX),this.router=(0,v.WQX)(be.Ix),this.document=(0,v.WQX)(o.qQ),this.purpleEnv=(0,v.WQX)(Ce.r6),this.purpleService=(0,v.WQX)(re.Wj),this.appData=(0,v.WQX)(Ce.fj),this.domHelper=(0,v.WQX)(_.S),this.viewContext={},this.outletContext={},this.viewContextSubject=new O.t(null),this.viewContextChangeSubject=new O.t(null),this.dataCollectionSubject=ne
1w O.t(null),this.moveToSlideSubject=new x.B,this.closeModalSubject=new x.B,this.closeModalCompleteSubject=new x.B,this.viewContext$=(0,U.c)(this.viewContextSubject.pipe((0,$.p)(k=>k)),Q.$),this.viewContextChange$=(0,U.c)(this.viewContextChangeSubject.pipe((0,$.p)(k=>k)),Q.$),this.activeTocItemSubject=new O.t(null),this.dataSources={},this.dataCollectionComponents={},this.metadata={},this.userAttributes=null,this.params={},this.removedParams=null,this.accountData={},this.navigationCount=0,this.cancellations$=new x.B}init(){this.route.queryParams.subscribe(k=>{this.removedParams={};for(let K in this.params)k[K]||(this.removedParams[K]=null);this.params=k,this.updateParamsContext()}),this.router.events.pipe((0,$.p)(k=>k instanceof be.wF)).subscribe(()=>{const k=this.getActiveOutlet();k!==this.activeOutlet&&(this.activeOutlet=k,this.notify(null))}),this.router.events.pipe((0,$.p)(k=>k instanceof be.Z&&!!this.router.getCurrentNavigation())).subscribe(()=>{var k;const K=this.router.getCurrentNavigation();null!==(k=K.extras)&&void 0!==k&&k.replaceUrl?"popstate"===K.trigger&&this.navigationCount>0&&this.navigationCount--:this.navigationCount++}),this.purpleService.getState("userAttributes").then(k=>{this.userAttributes=k?JSON.parse(k):{},this.notify({userAttributes:this.userAttributes})})}setData(k,K){this.viewContext[k]=K,this.notify({[k]:K})}toStorefrontResourceUrl(k){if(null==k||0===k.length||k.startsWith("http://")||k.startsWith("https://")||k.startsWith("purple://"))return k;if(k.startsWith("resource://dynamic/"))return(0,R.Al)(k.replace("resource://dynamic/",""),this.appData);{const K=(0,R.Al)("storefront/index.html",this.appData),ge=new URL(k,K),ve=new URL(K);for(const[Fe,We]of ve.searchParams)ge.searchParams.set(Fe,We);return ge.toString()}}setOutletData(k,K,ge){this.outletContext[ge]||(this.outletContext[ge]={}),this.outletContext[ge][k]=K,this.notify({[k]:K})}clearOutletData(k=this.getActiveOutlet(),K=null){K?k in this.outletContext&&delete this.outletContext[k][K]:(delete this.outletContext[k],delete this.dataSources[k],delete this.dataCollectionComponents[k])}setDataArray(k){let K={};k.forEach(({key:ge,value:ve})=>{this.viewContext[ge]=K[ge]=ve}),this.notify(K)}setMultipleData(k,K){Object.keys(k).forEach(ge=>{this.viewContext[ge]=k[ge]}),this.notify((0,u.A)((0,u.A)({},k),null!=K?K:{}))}getCurrentViewContext(){return this.viewContextSubject.value}getCurrentViewContextChange(){return this.viewContextChangeSubject.value}notify(k,K){const ge=K?this.getContext(K):this.getContext();(!K||K===be.Xk)&&this.setBodyAttributes(ge),this.viewContextSubject.next(ge),k&&this.viewContextChangeSubject.next({value:ge,change:k})}setBodyAttributes(k){var K=this;return(0,p.A)(function*(){const ge=K.domHelper.leanDom?"data-pxp-":"data-storefront-",ve=K.document.body;ve.getAttributeNames().filter(Fe=>Fe.startsWith(ge)).forEach(Fe=>K.document.body.removeAttribute(Fe)),Object.keys(k).forEach(Fe=>{if(k[Fe]){const We="object"==typeof k[Fe]?k[Fe].id:k[Fe];We&&ve.setAttribute("".concat(ge).concat(Fe),We)}})})()}registerDataSource(k,K){this.dataSources[K]||(this.dataSources[K]=[]),k.registered=!0,this.dataSources[K].push(k)}unregisterDataSource(k){Object.keys(this.dataSources).forEach(K=>{this.dataSources[K]&&(this.dataSources[K]=this.dataSources[K].filter(ge=>ge!==k))}),k.registered=!1,k.hasContextKey()?k.cleanupContextData():(0,o.Vy)(this.platformId)||this.notify(null)}getAllDataSources(){return Object.keys(this.dataSources).reduce((k,K)=>[...k,...this.dataSources[K]],[])}updateDataSources(){const k=this.getAllDataSources();return Promise.all(k.map(K=>K.update()))}getDataCollectionComponents(k){return this.dataCollectionComponents[k||this.getActiveOutlet()]||[]}registerDataCollectionComponent(k){const K=k.outlet||this.getActiveOutlet();this.dataCollectionComponents[K]||(this.dataCollectionComponents[K]=[]),this.dataCollectionComponents[K].push(k),k.getDependingDataCollections().filter(ge=>ge.getLatestData()).forEach(ge=>{k.notifyHasData({component:ge,data:ge.getLatestData()})})}unregisterDataCollectionComponent(k){this.dataCollectionComponents[k.outlet]&&(this.dataCollectionComponents[k.outlet]=this.dataCollectionComponents[k.outlet].filter(K=>K!==k))}notifyContainerComponents(k){const K=this.getDataCollectionComponents(k.component.outlet);
1K&&K.forEach(ge=>{var ve;null!==(ve=ge.getDependingDataCollections())&&void 0!==ve&&ve.includes(k.component)&&ge.notifyHasData(k)})}updateMetadata(){var k=this;return(0,p.A)(function*(){return k.metadata=(0,u.A)((0,u.A)({},yield k.purpleService.getMetadata()),{},{today:se()().format("YYYY-MM-DD"),connection_state:k.metadata.connection_state}),yield k.purpleService.setState(X.sn,k.metadata[ne.METADATA_KEY.ENTITLEMENT_TOKEN]),Object.keys(k.outletContext).forEach(K=>{k.notify(k.metadata,K)}),k.metadata})()}updateDeviceSettings(){if((0,o.UE)(this.platformId)){let k=(0,ce.Y)().isDesktop?"desktop":"tablet",K="portrait";(w.innerWidth<533||w.innerHeight<533)&&"desktop"!==k&&(k="phone"),w.innerWidth>w.innerHeight&&(K="landscape"),this.setMultipleData({device_type:k,device_orientation:K,device_width:w.innerWidth,device_height:w.innerHeight})}}clear(){this.viewContext={userTags:this.viewContext.userTags},delete this.dataSources[this.getActiveOutlet()],this.updateDeviceSettings()}setMetadata(k,K){this.metadata[k]=K,this.notify({[k]:K})}setFullMetadata(k){this.metadata=k,this.notify(k)}getMetadata(){return(0,u.A)({},this.metadata)}setUserAttribute(k,K){this.userAttributes||(this.userAttributes={}),this.userAttributes[k]=K,this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes}),this.getActiveOutlet()!==be.Xk&&this.notify({userAttributes:this.userAttributes},be.Xk)}setUserAttributes(k){Object.keys(k).forEach(K=>{this.userAttributes[K]=k[K]}),this.purpleService.setState("userAttributes",JSON.stringify(this.userAttributes)),this.notify({userAttributes:this.userAttributes})}getUserAttributes(){return(0,u.A)({},this.userAttributes)}getAccountData(){return(0,u.A)({},this.accountData)}setAccountData(k){this.accountData=(0,u.A)({},k),this.notify({accountData:this.accountData})}updateAccountData(){var k=this;return(0,p.A)(function*(){k.accountData=yield k.purpleService.getAccountUserData(),k.notify({accountData:k.accountData})})()}getActiveOutlet(){const k=this.route.children[this.route.children.length-1];return k?k.outlet:"primary"}set$Functions(k){this.$functions&&console.warn("set$Functions was called twice. This should only be called once at startup"),this.$functions=k}updateParamsContext(){var k=this;return(0,p.A)(function*(){let K=!1;const ge=k.cancellations$.subscribe(()=>K=!0);try{var ve;if(K)throw new Error("cancelled");const Fe=yield(0,ue.nV)(k.purpleService,k.params,{});if(K)throw new Error("cancelled");let We=(0,u.A)((0,u.A)({},null!==(ve=k.removedParams)&&void 0!==ve?ve:{}),k.params);k.setMultipleData(Fe,We),k.removedParams=null}catch(Fe){}finally{ge.unsubscribe()}})()}getParams(){return(0,u.A)({},this.params)}update(){var k=this;return(0,p.A)(function*(){return Promise.all([k.updateMetadata(),k.updateParamsContext(),k.updateDataSources()])})()}setInitialUrl(k){this.initialUrl=k,this.notify({initialUrl:this.initialUrl})}setPathUrl(k){this.pathUrl=k,this.notify({pathUrl:this.pathUrl})}getContext(k=this.getActiveOutlet()){const K=this.outletContext[k];return(0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)((0,u.A)({},this.removedParams),this.metadata),this.params),this.viewContext),K),{},{initialUrl:this.initialUrl,pathUrl:this.pathUrl,userAttributes:this.userAttributes,accountData:this.accountData,outlet:k})}isLoggedIn(){const k=this.getMetadata(),K=this.getAccountData();return!!k.entitlement_token||!(!K||!K.token)}cancelPendingParamUpdates(){this.cancellations$.next()}setPath(k){if("string"==typeof k)this.path=k;else if("primary"===k.snapshot.outlet){const K=k.snapshot.url;this.path=K.slice(this.appData.customDomain?0:1,K.length).map(ge=>ge.path).join("/")||"/"}}getPath(){return this.path}getHomeUrl(){const k=new URL(w.location.href);return k.pathname=this.appData.customDomain?"":k.pathname.split("/")[1]+"/",k.href}closeModal(k){this.closeModalSubject.next(k)}notifyAll(){this.notify({})}}return(z=oe).\u0275fac=function(k){return new(k||z)},z.\u0275prov=v.jDH({token:z,factory:z.\u0275fac,providedIn:"root"}),oe})()},8474:(le,E,d)=>{"use strict";d.d(E,{j:()=>o});var p=d(9379),u=d(3953);let o=(()=>{var v;class O{constructor(){this._params={embeddedParams:{}}}get embeddedParams(){return this._params.embeddedParams}set embeddedParams(U){this._params.embeddedParams=(0,p.A)((0,p.A)({},this._params.embeddedParams),U)}}return(v=O).\u0275fac=function(U){return new(U||v)},v.\u0275prov=u.jDH({token:v,factory:v.\u0275fac}),O})()},5927:(le,E,d)=>{"use strict";d.d(E,{S:()=>o});var p=d(3953),u=d(7879);let o=(()=>{var v;class O{constructor(){this.pxpConfig=(0,p.WQX)(u.Wp),this.location=(0,p.WQX)(u.GZ);const U=new URL(this.location.href);var Q,re;this.leanDom=U.searchParams.get("leanDom")?"true"===U.searchParams.get("leanDom"):null!==(Q=null===(re=this.pxpConfig.purple)||void 0===re?void 0:re.leanDom)&&void 0!==Q&&Q}regularSelector(U){return this.leanDom?void 0:U}prefixedSelector(U){return this.leanDom?U:void 0}}return(v=O).\u0275fac=function(U){return new(U||v)},v.\u0275prov=p.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),O})()},7484:(le,E,d)=>{"use strict";d.d(E,{_:()=>O});var p=d(467),u=d(3953),o=d(5927),v=d(3749);let O=(()=>{var x;class U{constructor(){this.domHelper=(0,u.WQX)(o.S),this.injector=(0,u.WQX)(u.zZn)}getComponentFromType(re,be){var ue=this;return(0,p.A)(function*(){var X;const $=(yield(yield Promise.all([d.e(2076),d.e(9674)]).then(d.bind(d,9674)).then(se=>(0,u.w6W)(se.ComponentModule,ue.injector).instance)).getModule(re)).component,J=null!==(X=be.tag)&&void 0!==X?X:"div";return(0,v.uk)($,ue.domHelper.leanDom,J,re)})()}}return(x=U).\u0275fac=function(re){return new(re||x)},x.\u0275prov=u.jDH({token:x,factory:x.\u0275fac,providedIn:"root"}),U})()},9745:(le,E,d)=>{"use strict";d.d(E,{H:()=>p,L:()=>u});var p=function(o){return o.COUPON="coupon",o.DELETE_ALL_BOOKMARKS="deleteAllBookmarks",o.EXTERNAL_LOGIN="externalLogin",o.LOGIN="login",o.LOGOUT="logout",o.NAVIGATE="navigate",o.OPEN_CONTENT="openContent",o.OPEN_URL="openUrl",o.POPUP="popup",o.PURCHASE="purchase",o.SUBSCRIBE="subscribe",o.REGISTER="register",o.RESTORE_PURCHASES="restorePurchases",o.SET_USER_ATTRIBUTE="setUserAttribute",o.SUBSCRIPTIONS="subscriptions",o.SET_CONTEXT_VARIABLES="setContextVariables",o}(p||{}),u=function(o){return o.SLIDE_IN="SLIDE_IN",o.POP_UP="POP_UP",o}(u||{})},8004:(le,E,d)=>{"use strict";d.d(E,{G:()=>ge,H:()=>We});var p=d(9379),u=d(467),o=d(177),v=d(3953),O=d(3331),x=d(4745),U=d(4404),re=d(6843),be=d(873),ue=d(8179),X=d(20),ne=d(6010),te=d(8075),$=d(7031),J=d(610),se=d(3178),De=d(5706),Ce=d(8091),ce=d(4074),_=d(4049),R=d(7879),w=d(244),B=d(9516),z=d(9745),oe=d(6889),V=d(8448),k=d(6350),K=d(5632);let ge=(()=>{var ze;class bt{constructor(){this.router=(0,v.WQX)(O.Ix),this.store=(0,v.WQX)(x.il),this.dialog=(0,v.WQX)(X.o),this.contextService=(0,v.WQX)(B.V),this.cleanUpService=(0,v.WQX)(w.I),this.document=(0,v.WQX)(o.qQ),this.purpleService=(0,v.WQX)(ne.Wj),this.cacheService=(0,v.WQX)(k._),this.purpleEnv=(0,v.WQX)(R.r6),this.urlResolverService=(0,v.WQX)(oe.K),this.location=(0,v.WQX)(R.GZ),this.appData=(0,v.WQX)(R.fj),this.serverOnlyService=(0,v.WQX)(K.l),this.access={}}init(){var Me=this;return(0,u.A)(function*(){(0,$.jZ)(re.O.ACCESS)(Me.store).subscribe(tt=>Me.access=tt),(0,$.jZ)(re.O.DOWNLOAD_OPTIONS)(Me.store).subscribe(tt=>Me.downloadOptions=tt),Me.platform=(yield Me.purpleService.getMetadata([U.METADATA_KEY.PLATFORM]))[U.METADATA_KEY.PLATFORM],Me.displayMode=yield Me.purpleService.getDisplayMode()})()}processEventAction(Me,tt,He){var ot=this;return(0,u.A)(function*(){switch(Me.type){case z.H.NAVIGATE:return ot.processNavigateAction(Me,tt);case z.H.POPUP:return ot.processPopupAction(Me,tt);case z.H.OPEN_CONTENT:return ot.processOpenContentAction(Me,tt,He);case z.H.RESTORE_PURCHASES:return ot.processRestorePurchasesAction(Me,tt);case z.H.LOGIN:return ot.processLoginAction(Me,tt);case z.H.LOGOUT:return ot.processLogoutAction(Me);case z.H.SUBSCRIPTIONS:return ot.processSubscriptionsAction(Me,tt);case z.H.COUPON:return ot.processCouponAction(Me,tt);case z.H.SET_USER_ATTRIBUTE:return ot.processSetUserAttributeAction(Me,tt,He);case z.H.REGISTER:return ot.processRegisterAction(Me,tt);case z.H.OPEN_URL:return ot.processOpenUrlAction(Me);case z.H.DELETE_ALL_BOOKMARKS:return ot.processDeleteAllBookmarks(Me,tt);case z.H.PURCHASE:return ot.processPurchaseAction(Me,tt);case z.H.SUBSCRIBE:return ot.processSubscribeAction(Me,tt);case z.H.EXTERNAL_LOGIN:return ot.processExternalLoginAction(Me,tt);case z.H.SET_CONTEXT_VARIABLES:return ot.setContextVariables(Me)}})()}processOpenContentAction(Me,tt,He){var ot=this;return(0,u.A)(function*(){const je=H=>{(H.code===U.ERROR_CODE.PAYMENT_REQUIRED||H.code===U.ERROR_CODE.NO_ISSUES_FOUND)&&ot.purpleService.invalidate(),ot.dialog.alert({text:"ERROR_CONTENT_OPEN",args:[(0,Ce.E2)(H,ot.contextService)]},"DIALOG_ERROR")};if(!Me.taxonomyId){let H;try{if(Me.issueId)H=yield ot.purpleService.getIssue(Me.issueId).catch(()=>null),H||(H=yield ot.purpleService.getCatalogContent(Me.issueId).catch(()=>null));else{var fe,D;let Ue="";tt.config&&(Ue=tt.config.issueContextKey),null==Ue&&(Ue=tt.config.contentContextKey);const at=tt.getContext();H=null!==(fe=at[Ue])&&void 0!==fe?fe:null!==(D=at.issue)&&void 0!==D?D:at.content}if(!H)throw{code:U.ERROR_CODE.NO_ISSUES_FOUND}}catch(Ue){return void je(Ue)}
1if((0,De.xl)(H)&&ot.cleanUpService.addIssue(H.id),yield(0,ne.GA)(H,ot.purpleService)){const Ue=Me.fallback&&(0,ue.v3)(Me.fallback);if(Ue)return ot.processEventAction(Ue,tt,He)}if((0,De.xl)(H))return ot.openIssue(H,Me,je,tt,He);{let Ue;if(Me.bundle)if(Me.bundle.postId){const hn=(yield ot.purpleService.getCatalogContent(Me.bundle.postId).catch(()=>null)).properties.slug;hn&&(Ue="".concat(Ue,"/").concat(hn))}else{const at=yield ot.purpleService.getCatalogContent(Me.bundle.bundleId).catch(()=>null);Ue=yield ot.urlResolverService.getPathForContent(at)}else Ue=yield ot.urlResolverService.getPathForContent(H);return new Promise((at,hn)=>{Ue?ot.processEventAction({type:z.H.NAVIGATE,path:Ue},{getId:()=>tt.getId(),getContext:()=>({preview:tt.getContext().preview,configURL:tt.getContext().configURL,leanDom:tt.getContext().leanDom})},He).then(ln=>at(ln)).catch(ln=>hn(ln)):(alert("No view to handle this post type found"),console.error("Failed to open",H),hn())})}}try{const H=yield ot.purpleService.getTaxonomy(Me.taxonomyId,Me.taxonomyType);if(H){const Se=yield ot.urlResolverService.getPathForTaxonomy(H);if("string"==typeof Se)return ot.processEventAction({type:z.H.NAVIGATE,path:Se},tt,He);throw{code:U.ERROR_CODE.NOT_FOUND,message:"Path for taxonomy ".concat(Me.taxonomyId," can't be found. Is your app using the url.resolver.js feature?")}}throw{code:U.ERROR_CODE.NOT_FOUND,message:"Taxonomy ".concat(Me.taxonomyId," can't be found.")}}catch(H){return void je(H)}})()}openIssue(Me,tt,He,ot,je){var fe=this;return(0,u.A)(function*(){const D=yield(0,ne.GA)(Me,fe.purpleService);tt.openCollection&&console.warn("[deprecated] OpenContentAction.openCollection is not supported for Issues from Template 10 on.");let H=Me.id;if(D){const Te=(0,ne.Kh)(H,fe.cacheService);Te&&!fe.purpleEnv.isUniversal&&(H=Te.id)}let Se=null;null!=tt.pageIndex&&(Se={index:tt.pageIndex}),tt.elementAlias&&(Se=(0,p.A)((0,p.A)({},Se),{},{initialElement:{aliasOrId:tt.elementAlias}}));const Ue=yield fe.purpleService.getDownloadHandler(Me),at=Ue.getContentType();at!==V.r.ISSUE&&console.error("Unsupported download handler content type ".concat(at,": expected ISSUE"));const hn={type:at};hn.optionalParams=(0,R.P8)((0,R.yC)(Me,fe.cacheService.PURPLE_PUBLICATION_CACHE[Me.publicationId])),Ue.content&&(0,R.Gw)(at)&&(hn.optionalParams=(0,p.A)((0,p.A)({},hn.optionalParams),(0,R.P8)((0,R.bJ)(Ue.content,fe.cacheService.PURPLE_PUBLICATION_CACHE[Ue.content.publicationId],null,"SOURCE_"))));const ln={issueIds:[H],initialIssue:{id:H,initialPage:Se},config:Fe(tt),tracking:hn};if(H===Me.id&&(0,ne.YH)((null==Ue?void 0:Ue.state)||Me.state,Me.type===U.IssueType.ISSUE))try{yield fe.dialog.confirm({text:"ISSUE_UPDATE_MESSAGE",args:[Me.name]},"ISSUE_UPDATE_TITLE","ISSUE_UPDATE_NEW_VERSION","ISSUE_UPDATE_OLD_VERSION")}catch(Te){ln.skipSync=!0}if(!ln.skipSync&&Ue){Ue.syncLocalContents();try{var _e;H===Me.id&&null!==(_e=fe.downloadOptions)&&void 0!==_e&&_e.downloadOnOpen&&fe.contextService.getMetadata().connection_state===U.CONNECTION_STATE.ONLINE&&(yield Ue.download(),ln.skipSync=!0)}catch(Te){console.log("error updating download handler issues / starting download",Te)}}return fe.purpleService.openContent(ln).then(Te=>Te,Te=>He(Te))})()}processNavigateAction(Me,tt){var He=this;return(0,u.A)(function*(){var ot,je;const fe=null!==(ot=null==tt?void 0:tt.getContext())&&void 0!==ot?ot:He.contextService.getContext();let D;var H;(Me.url||Me.path)&&(D=(0,_.K)(null!==(H=Me.url)&&void 0!==H?H:Me.path,fe,!1),Me.path&&D.startsWith("/")&&(D=D.substring(1)));let Se,Ue,at=null!=D?D:"";D&&([at,Se]=D.split("#"),[at,Ue]=at.split("?"));const hn=ve(fe),ln=null!==(je=Me.params)&&void 0!==je?je:{},et=Ue?Object.fromEntries(new URLSearchParams(Ue)):{},G=(0,p.A)((0,p.A)((0,p.A)({},hn),ln),et),_e={queryParams:G,fragment:Se};Me.mergeParams&&(_e.queryParamsHandling="merge");const Te=He.appData.customDomain?"":He.appData.brand+"/",P=(0,te.ON)(He.router.routerState.snapshot.url);if((Me.replaceUrl||P===D)&&(_e.replaceUrl=!0),He.serverOnlyService.isBrowser())return Me.url?He.router.navigateByUrl(D,_e):He.router.navigate(void 0!==D?[{outlets:{modal:null,[O.Xk]:Te+at}}]:[],_e);try{let F;if(Me.url)F=new URL(Me.url);else{const Ae=He.appData.customDomain?D:"".concat(He.appData.brand,"/").concat(D);F=new URL("/".concat(Ae),He.location.origin)}let de=new URLSearchParams(G);
1if(Me.mergeParams){const Ae=new URLSearchParams(He.location.search);de=new URLSearchParams((0,p.A)((0,p.A)({},Object.fromEntries(Ae)),Object.fromEntries(de)))}return F.search=de.toString(),He.serverOnlyService.redirectExternal(F.toString(),Me.statusCode),!0}catch(F){return console.warn("failed to redirect from navigation action",Me,F.message),He.serverOnlyService.sendError(500,"Failed to redirect"),!0}})()}processPopupAction(Me,tt){var He=this;return(0,u.A)(function*(){const ot=tt.getContext(),je=(0,_.K)(Me.path,ot);return He.router.navigate([{outlets:{modal:["popup",je,Me.animation||z.L.SLIDE_IN]}}],{queryParams:(0,p.A)((0,p.A)({},ve(ot)),Me.params),queryParamsHandling:"merge"})})()}processRestorePurchasesAction(Me,tt){var He=this;return(0,u.A)(function*(){if(Me.confirm)try{yield He.dialog.confirm("string"==typeof Me.confirm?Me.confirm:"RESTORE_PURCHASES_CONFIRM","RESTORE_PURCHASES")}catch(ot){return He.dialog.alert("RESTORE_PURCHASES_FAILED","RESTORE_PURCHASES")}He.store.dispatch((0,J.k4)({url:window.location.href,key:"RESTORE_PURCHASES_CLICKED"}));try{if(yield He.purpleService.restorePurchases(),He.contextService.setUserAttribute(be.h2,!0),yield He.dialog.alert("RESTORE_PURCHASES_SUCCEEDED","RESTORE_PURCHASES"),He.isModalRoundtrip())He.purpleService.closeView();else if(Me.onSuccess)return He.processEventAction(Me.onSuccess,tt)}catch(ot){return He.dialog.alert("RESTORE_PURCHASES_FAILED","RESTORE_PURCHASES")}})()}processLoginAction(Me,tt){var He=this;return(0,u.A)(function*(){switch(He.contextService.getMetadata()[U.METADATA_KEY.ENTITLEMENT_MODE]){case U.ENTITLEMENT_MODE.ENTITLEMENT:return He.processEventAction(He.access.loginAction,tt);case U.ENTITLEMENT_MODE.OAUTH:return He.purpleService.login(null,null,Me.params);default:return console.warn("No entitlement configured. Please check the Manager configuration."),He.processEventAction(He.access.loginAction,tt)}})()}processLogoutAction(Me){var tt=this;return(0,u.A)(function*(){if(!Me.confirm)return tt.purpleService.logout();try{return yield tt.dialog.confirm("LOGOUT_MESSAGE","LOGOUT_TITLE","LOGOUT_BUTTON_CONFIRM","LOGOUT_BUTTON_CANCEL"),tt.purpleService.logout()}catch(He){}})()}processSubscriptionsAction(Me,tt){var He=this;return(0,u.A)(function*(){return He.processEventAction(He.access.subscriptionsAction,tt)})()}processCouponAction(Me,tt){var He=this;return(0,u.A)(function*(){return He.processEventAction(He.access.couponsAction,tt)})()}processSetUserAttributeAction(Me,tt,He){var ot=this;return(0,u.A)(function*(){if(ot.contextService.setUserAttribute(Me.key,Me.value),Me.onFinished&&ot.serverOnlyService.isBrowser())return ot.processEventAction(Me.onFinished,tt,He)})()}processRegisterAction(Me,tt){var He=this;return(0,u.A)(function*(){return He.processEventAction(He.access.registerAction,tt)})()}processOpenUrlAction(Me){var tt=this;return(0,u.A)(function*(){const He=Me.params&&Object.keys(Me.params).reduce((ot,je)=>((0,ue.ZY)({value:Me.params[je]})&&(ot[je]=Me.params[je]),ot),{});tt.purpleService.openActionUrl((0,se.LS)(Me.url,He),!1,Me.target)})()}processDeleteAllBookmarks(Me,tt){var He=this;return(0,u.A)(function*(){const ot=tt.getContext().issue,je=function(){var fe=(0,u.A)(function*(){const D=ot&&(yield He.purpleService.getPublication(ot.publicationId));try{He.store.dispatch((0,J.k4)(ot?{url:window.location.href,key:"BOOKMARK_DELETE_ALL_OF_ISSUE_CLICKED",params:(0,R.bJ)(ot,D)}:{url:window.location.href,key:"BOOKMARK_DELETE_ALL_CLICKED"}));let H=yield He.purpleService.getBookmarks();ot&&(H=H.filter(Se=>{var Ue;return Se.issueId===ot.id||(null===(Ue=Se.customData)||void 0===Ue?void 0:Ue.sourceIssueId)===ot.id})),yield He.purpleService.deleteBookmarks(H.map(Se=>Se.id)),He.store.dispatch((0,J.k4)(ot?{url:window.location.href,key:"BOOKMARK_DELETED_ALL_OF_ISSUE",params:(0,R.bJ)(ot,D)}:{url:window.location.href,key:"BOOKMARK_DELETED_ALL"}))}catch(H){He.store.dispatch((0,J.k4)(ot?{url:window.location.href,key:"BOOKMARK_DELETE_ALL_OF_ISSUE_FAILED",params:(0,R.bJ)(ot,D)}:{url:window.location.href,key:"BOOKMARK_DELETE_ALL_FAILED"})),He.dialog.alert({text:"ERROR_DELETE_ALL_BOOKMARKS",args:[(0,Ce.E2)(H,He.contextService)]},"DIALOG_ERROR")}});return function(){return fe.apply(this,arguments)}}();if(!Me.confirm)return je();try{return ot?yield He.dialog.confirm({text:"BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE",args:[ot.name]},"BOOKMARK_DELETE_All_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"):yield He.dialog.confirm("BOOKMARK_DELETE_ALL_MESSAGE","BOOKMARK_DELETE_All_TITLE","BOOKMARK_DELETE_CONFIRM","BOOKMARK_DELETE_CANCEL"),je()}catch(fe){}})()}processPurchaseAction(Me,tt){var He=this;return(0,u.A)(function*(){const ot=tt.getTrackingParams();try{var je,fe;He.store.dispatch((0,J.k4)({url:window.location.href,key:"".concat(tt.getTrackingBaseKey(),"_PURCHASE_CLICKED"),params:ot}));const H={productId:Me.productId};Me.consumeOptions&&(0,R.E7)(window.purple.store,{major:2,minor:2},U.IntOperation.GREATER_THAN)&&(H.consumeOptions=Me.consumeOptions);const Se=yield null===(je=window.storefrontHooks)||void 0===je||null===(fe=je.beforeContentPurchase)||void 0===fe?void 0:fe.call(je,{actionConfig:Me});var D;if("object"==typeof Se&&!["continue","error","cancel"].includes(Se.type)&&console.error("Result of storefront hook beforeContentPurchase should have a field type with values continue, error or cancel, got",Se),"error"===(null==Se?void 0:Se.type)||"cancel"===(null==Se?void 0:Se.type))throw{code:"cancel"===Se.type?U.ERROR_CODE.CANCELLED:null!==(D=Se.code)&&void 0!==D?D:U.ERROR_CODE.UNKNOWN};const[Ue,at]=yield Promise.all([He.purpleService.purchase(H),He.purpleService.nextInvalidation()]);He.store.dispatch((0,J.k4)({url:window.location.href,key:"".concat(tt.getTrackingBaseKey(),"_PURCHASED"),params:ot}));const hn={key:"".concat(tt.getTrackingBaseKey(),"_PURCHASED"),productId:Me.productId,price:Me.price,currencyCode:Me.currency};Ue.transactionId&&(hn.transactionId=Ue.transactionId),hn.optionalParams=ot,He.store.dispatch((0,J.Du)({url:window.location.href,params:hn})),He.isModalRoundtrip()?He.purpleService.closeView():Me.onSuccess&&(yield He.processEventAction(Me.onSuccess,tt))}catch(H){console.warn(H),H.code&&H.code===U.ERROR_CODE.CANCELLED?He.store.dispatch((0,J.k4)({url:window.location.href,key:"".concat(tt.getTrackingBaseKey(),"_PURCHASE_CANCELLED"),params:ot})):(He.store.dispatch((0,J.k4)({url:window.location.href,key:"".concat(tt.getTrackingBaseKey(),"_PURCHASE_FAILED"),params:ot})),Me&&Me.showErrorDialog&&He.dialog.alert({text:"ERROR_PURCHASE",args:tt.getErrorDialogArgs(H)},"DIALOG_ERROR"))}})()}processSubscribeAction(Me,tt){var He=this;return(0,u.A)(function*(){const ot=tt.getTrackingParams();try{var je,fe,D;He.store.dispatch((0,J.k4)({url:window.location.href,key:"SUBSCRIPTION_CLICKED",params:ot}));const H=yield null===(je=window.storefrontHooks)||void 0===je||null===(fe=je.beforeSubscriptionPurchase)||void 0===fe?void 0:fe.call(je,{actionConfig:Me});if("object"==typeof H&&!["continue","error","cancel"].includes(H.type)&&console.error("Result of storefront hook beforeSubscriptionPurchase should have a field type with values contine, error or cancel, got",H),"error"===(null==H?void 0:H.type)||"cancel"===(null==H?void 0:H.type))throw{code:"cancel"===H.type?U.ERROR_CODE.CANCELLED:U.ERROR_CODE.UNKNOWN};const Se=yield He.purpleService.subscribe(Me.productId,Me.upgradeMode,Me.offerId),at=(yield He.purpleService.getSubscriptions({})).nodes.find(et=>et.purchased&&et.productId===Se.productId),hn=null!=at&&null!==(D=at.currentReceiptInfo)&&void 0!==D&&D.isTrialPeriod?"SUBSCRIPTION_TRIAL_PURCHASED":"SUBSCRIPTION_PURCHASED";He.store.dispatch((0,J.k4)({url:window.location.href,key:hn,params:ot})),He.purpleService.onMaybeSubscriptionsChanged();const ln={key:hn,productId:Me.productId,price:Me.price,currencyCode:Me.currency};if(Se.transactionId&&(ln.transactionId=Se.transactionId),ln.optionalParams=ot,He.store.dispatch((0,J.Du)({url:window.location.href,params:ln}
1)),He.isModalRoundtrip())He.purpleService.closeView();else if(Me.onSuccess)return He.processEventAction(Me.onSuccess,tt)}catch(H){H.code&&H.code===U.ERROR_CODE.CANCELLED?He.store.dispatch((0,J.k4)({url:window.location.href,key:"SUBSCRIPTION_PURCHASE_CANCELLED",params:ot})):(He.store.dispatch((0,J.k4)({url:window.location.href,key:"SUBSCRIPTION_PURCHASE_FAILED",params:ot})),Me&&Me.showErrorDialog&&He.dialog.alert({text:"ERROR_SUBSCRIPTION",args:tt.getErrorDialogArgs(H)},"DIALOG_ERROR"))}})()}processExternalLoginAction(Me,tt){var He=this;return(0,u.A)(function*(){He.store.dispatch((0,J.k4)({url:window.location.href,key:"EXTERNAL_LOGIN_CLICKED"}));try{Me.onStart&&(yield He.processEventAction(Me.onStart,tt));const ot=Me.params?(0,se.LS)(Me.url,Me.params):Me.url,je=yield He.purpleService.performAuthentication(ot,Me.callbackParamName);let fe=je.values[Me.accountIdParamName||"userId"];if(!fe)throw{code:"No account ID found."};if(Me.entitlementParamNames){const Se=je.values[Me.entitlementParamNames.usernameKey],Ue=je.values[Me.entitlementParamNames.passwordKey]||be.B6,at=yield He.purpleService.login(Se,Ue),hn=(0,ce.$)(at.accessToken);Me.entitlementParamNames.accountIdFromEntitlement&&(fe=hn.sub)}const D=(0,ce.J)(fe),{token:H}=yield He.purpleService.getAccountUserData();if(H)try{console.debug("Old account token detected: "+H+", logging out"),yield He.purpleService.logoutAccount()}catch(Se){console.warn("Logout before new login failed: ",Se)}if(yield He.purpleService.loginAccount(D),Me.assignLocalPurchases&&(yield He.purpleService.assignLocalPurchases(Me.assignLocalPurchases)),yield He.contextService.updateAccountData(),He.store.dispatch((0,J.k4)({url:window.location.href,key:"EXTERNAL_LOGIN_SUCCEEDED"})),He.isModalRoundtrip())He.purpleService.closeView();else if(Me.onSuccess)return He.processEventAction(Me.onSuccess,tt)}catch(ot){if(He.store.dispatch((0,J.k4)({url:window.location.href,key:"EXTERNAL_LOGIN_CANCELLED"})),(0,ue.v3)(Me.closeOnModalCancel)&&He.isModalRoundtrip())He.purpleService.closeView();else{if(Me.onCancel)return He.processEventAction(Me.onCancel,tt);He.dialog.alert({text:"ERROR_EXTERNAL_LOGIN",args:[ot.code]},"DIALOG_ERROR"),console.log(ot,Me)}}})()}setContextVariables(Me){const tt=Me.variables.map(He=>(0,ue.v3)(He)).filter(He=>!!He);this.contextService.setDataArray(tt)}isModalRoundtrip(){return(0,se.dg)(this.displayMode,this.document)}}return(ze=bt).\u0275fac=function(Me){return new(Me||ze)},ze.\u0275prov=v.jDH({token:ze,factory:ze.\u0275fac,providedIn:"root"}),bt})();function ve(ze){const bt={};return ze.issue&&(bt.issue=ze.issue.id),ze.publication&&(bt.publication=ze.publication.id),ze.category&&(bt.category=ze.category.id),ze.brand&&(bt.brand=ze.brand),ze.preview&&(bt.preview=ze.preview),ze.configURL&&(bt.configURL=ze.configURL),ze.leanDom&&(bt.leanDom=ze.leanDom),bt}function Fe(ze){let bt=null;return ze.mode&&(bt=(0,p.A)((0,p.A)({},bt),{},{mode:ze.mode})),"titleBar"in ze&&(bt=(0,p.A)((0,p.A)({},bt),{},{titleBar:(0,ue.v3)(ze.titleBar)})),bt}function We(ze){return[z.H.NAVIGATE,z.H.OPEN_URL].includes(null==ze?void 0:ze.type)}},1652:(le,E,d)=>{"use strict";d.d(E,{d:()=>v});var p=d(3953),u=d(7879);const o=(0,p.zw6)("globalScope");let v=(()=>{var O;class x{constructor(){this.transferState=(0,p.WQX)(p.pJN),this.pxpConfig=(0,p.WQX)(u.Wp)}setData(Q,re){this.global[Q]=re,this.transferState.onSerialize(o,()=>this.global)}getData(Q){var re;if(null!==(re=this.global)&&void 0!==re&&re[Q])return this.global[Q]}deleteData(Q){delete this.global[Q]}getGlobalData(){return this.global}init(){this.transferState.hasKey(o)?(this.global=this.transferState.get(o,null),this.transferState.remove(o)):(this.global={},this.setData("experienceConfig",this.pxpConfig))}}return(O=x).\u0275fac=function(Q){return new(Q||O)},O.\u0275prov=p.jDH({token:O,factory:O.\u0275fac,providedIn:"root"}),x})()},2596:(le,E,d)=>{"use strict";d.d(E,{A:()=>ne,s:()=>X});var p=d(467),u=d(3953),o=d(9692),v=d(3331),O=d(5964),x=d(8075),U=d(9360),Q=d(1652),re=d(3178);const be="GPT_SCRIPT",ue=(0,U.YE)();let X=(()=>{var te;class ${constructor(){let se;this.router=(0,u.WQX)(v.Ix),this.globalService=(0,u.WQX)(Q.d),this.queue=[],this.adRefreshObjects=new Map,this.debugMode=location.search.includes("debug=true"),this.router.events.pipe((0,O.p)(De=>De instanceof v.wF)).subscribe(De=>{const Ce=(0,x.ON)(De.urlAfterRedirects);se&&Ce!==se&&this.clear(),se=Ce}),window.googletag=window.googletag||{cmd:[]}}startProcessing(){this.interval||(this.interval=(0,re.xQ)(()=>{this.processQueue()},100))}stopProcessing(){clearInterval(this.interval),delete this.interval}processQueue(){if(this.queue.length){const se=this.queue.shift();window.googletag.cmd.push(()=>{let De=this.adRefreshObjects.get(se),Ce=!0;var ce;window.storefrontHooks&&window.storefrontHooks.beforeRenderAd&&(Ce=null===(ce=window.storefrontHooks)||void 0===ce?void 0:ce.beforeRenderAd({id:De.id,slot:De.slot,config:De.config,refresh:!1}
1)),Ce&&(this.debugMode&&console.log("display ad: "+se),window.googletag.display(se))})}this.queue.length||this.stopProcessing()}setupScript(se){var De=this;return(0,p.A)(function*(){let Ce=ue.getElementById(be);if(!Ce){var ce;Ce=ue.createElement("script"),window.googletag.cmd=null!==(ce=window.googletag.cmd)&&void 0!==ce?ce:[],yield new Promise(B=>{Ce.onload=B,Ce.setAttribute("id",be),Ce.setAttribute("async","true");const z=se.domain?"&domain=".concat(se.domain):"",oe=se.networkCode.indexOf(",")<0?"?network-code=".concat(se.networkCode)+z:"";Ce.setAttribute("src","https://securepubads.g.doubleclick.net/tag/js/gpt.js".concat(oe)),ue.head.appendChild(Ce)});try{var _,R;null===(_=window.storefrontHooks)||void 0===_||null===(R=_.onAdInit)||void 0===R||R.call(_)}catch(B){console.error("Error in onAdInit hook:",B)}const w=De;window.googletag.cmd.push(()=>{window.googletag.pubads().setCentering(!0),window.googletag.pubads().collapseEmptyDivs(),window.googletag.enableServices(),De.globalRefreshInterval=(0,re.xQ)(function(){w.refreshAds()},1e3),window.googletag.pubads().addEventListener("slotOnload",B=>{var z;De.debugMode&&console.log("slot onload: "+B.slot.getSlotElementId()),null===(z=De.adRefreshObjects.get(B.slot.getSlotElementId()))||void 0===z||z.onLoad()}),window.googletag.pubads().addEventListener("slotRenderEnded",B=>{De.debugMode&&(console.group("Slot",B.slot.getSlotElementId(),"finished rendering."),console.log("Advertiser ID:",B.advertiserId),console.log("Campaign ID: ",B.campaignId),console.log("Creative ID: ",B.creativeId),console.log("Is empty?:",B.isEmpty),console.log("Line Item ID:",B.lineItemId),console.log("Size:",B.size),console.log("Source Agnostic Creative ID:",B.sourceAgnosticCreativeId),console.log("Source Agnostic Line Item ID:",B.sourceAgnosticLineItemId),console.groupEnd());const z=De.adRefreshObjects.get(B.slot.getSlotElementId());z&&(z.onRenderEnded(),z.loaded=!0)})})}})()}isInView(se){var De=se.getBoundingClientRect();return De.top>=0&&De.left>=0&&De.bottom<=(window.innerHeight||ue.documentElement.clientHeight)&&De.right<=(window.innerWidth||ue.documentElement.clientWidth)}refreshAds(){try{var se,De;if("hidden"===ue.visibilityState||null!==(se=(De=window.storefrontHooks).isAdRefreshPaused)&&void 0!==se&&se.call(De))return}catch(_){console.error("Error in isAdRefreshPaused hook:",_)}const Ce=ue.querySelectorAll('div[id^="div-gpt"]'),ce=[];if(Ce.forEach(_=>{const R=_.getAttribute("id");if(this.adRefreshObjects.has(R)&&this.isInView(_)){const w=this.adRefreshObjects.get(R);w.loaded&&w.refreshSeconds&&--w.countDown<=0&&(ce.push(w),w.countDown=w.refreshSeconds,w.slot.getTargeting("ad-refresh").length&&w.slot.setTargeting("ad-refresh","true"))}}),ce.length>0){let _=[];ce.forEach(R=>{(!window.storefrontHooks||!window.storefrontHooks.beforeRenderAd||window.storefrontHooks.beforeRenderAd({id:R.id,slot:R.slot,config:R.config,refresh:!0}))&&_.push(R.id)}),_.length>0&&(this.debugMode&&console.log("refresh: "+JSON.stringify(_)),window.googletag.cmd.push(()=>{window.googletag.pubads().refresh(_)}))}}clear(){this.stopProcessing(),this.queue=[],window.googletag.cmd.push(()=>{this.debugMode&&console.log("destroy all slots"),window.googletag.destroySlots()}),this.adRefreshObjects.clear()}mapOutOfPageFormat(se,De){switch(De){case o.q.BOTTOM_ANCHOR:return window.googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR;case o.q.INTERSTITIAL:return window.googletag.enums.OutOfPageFormat.INTERSTITIAL;case o.q.REWARDED:return window.googletag.enums.OutOfPageFormat.REWARDED;case o.q.TOP_ANCHOR:return window.googletag.enums.OutOfPageFormat.REWTOP_ANCHORARDED;default:return se}}showAd(se,De,Ce,ce,_,R){this.setupScript(De);const w=ce.offsetWidth,B=De.sizes.sort((z,oe)=>{const k=oe[0];return Math.abs(w-z[0])-Math.abs(w-k)});window.googletag.cmd.push(()=>{var z;this.debugMode&&console.log("define slot: "+se+" => "+"/".concat(De.networkCode,"/").concat(De.adUnitCode));const oe=De.outOfPageSlot?window.googletag.defineOutOfPageSlot("/".concat(De.networkCode,"/").concat(De.adUnitCode),this.mapOutOfPageFormat(se,De.outOfPageFormat)):window.googletag.defineSlot("/".concat(De.networkCode,"/").concat(De.adUnitCode),B,se);if(!oe)return void console.warn("defineSlot didn't create a slot for id "+se);if(Ce){const k=Ce.mappings.map(K=>[K.viewPortSize,K.adSizes]);oe.defineSizeMapping(k)}De.targeting&&(De.targeting.forEach(k=>{oe.setTargeting(k.key,k.value)}),this.debugMode&&console.log("set targeting: "+JSON.stringify(De.targeting))),oe.addService(window.googletag.pubads()),this.queue.push(se),this.startProcessing();const V=De.refreshSeconds||(null===(z=this.globalService.global.experienceConfig)||void 0===z?void 0:z.gadRefresh);this.adRefreshObjects.set(se,{id:se,countDown:V,refreshSeconds:V,slot:oe,config:De,onLoad:_,onRenderEnded:R})})}removeAd(se){this.queue=this.queue.filter(Ce=>Ce!==se);let De=this.adRefreshObjects.get(se);De&&(window.googletag.cmd.push(()=>{const Ce=window.googletag.destroySlots([De.slot]);this.debugMode&&console.log("destroy slot "+se+" => "+Ce)}),this.adRefreshObjects.delete(se))}}return(te=$).\u0275fac=function(se){return new(se||te)},te.\u0275prov=u.jDH({token:te,factory:te.\u0275fac,providedIn:"root"}),$})();
1class ne{constructor($){this.router=$}clear(){}showAd($,J,se,De,Ce){}removeAd($){}startProcessing(){}}},24:(le,E,d)=>{"use strict";d.d(E,{j:()=>o});var p=d(177),u=d(3953);let o=(()=>{var v;class O{constructor(){this.platformId=(0,u.WQX)(u.Agw),this.registeredComponents=new Map,this.onRegister$=new u.bkB,this.onDestroy$=new u.bkB,(0,p.UE)(this.platformId)&&(window.experienceInspector=this)}isComponentRegistered(U){return U.__registered}getComponent(U){return this.registeredComponents.get(U)}registerComponent(U,Q){this.isComponentRegistered(Q)||(Q.__registered=!0,this.registeredComponents.set(U,Q),this.onRegister$.emit({component:Q,domElement:U}))}unregisterComponent(U){const Q=this.getComponent(U);Q&&(Q.__registered=!1,this.registeredComponents.delete(U),this.onDestroy$.emit({component:Q,domElement:U}))}}return(v=O).\u0275fac=function(U){return new(U||v)},v.\u0275prov=u.jDH({token:v,factory:v.\u0275fac,providedIn:"root"}),O})()},9118:(le,E,d)=>{"use strict";d.d(E,{x:()=>de});var p=d(9379),u=d(467),o=d(177),v=d(3953),O=d(4412),x=d(2771),U=d(5964),Q=d(6697),re=d(3178),be=d(7879),ue=d(2838),X=d(1652),ne=d(7370);const te=(0,v.zw6)("rawAppProperties"),Te=[{key:"app_version_title_web",de:"App Version",en:"App version"},{key:"category_choose_web",de:"\xdcbernehmen",en:"Choose"},{key:"category_subtitle_web",de:"W\xe4hlen Sie Ihre gew\xfcnschte Kategorie:",en:"Choose your desired category:"},{key:"category_title_web",de:"Kategorie",en:"Category"},{key:"connection_web",de:"Verbindung",en:"Connection"},{key:"device_id_title_web",de:"Ger\xe4te-ID",en:"Device ID"},{key:"device_title_web",de:"Ger\xe4t",en:"Device"},{key:"device_model_web",de:"Ger\xe4te-Modell",en:"Device model"},{key:"dialog_file_invalid_message_web",de:"Die Datei %s in den dynamischen Ressourcen ist nicht valide. Bitte \xfcberpr\xfcfen Sie Format und Syntax.",en:"The file %s within the dynamic resources is not valid. Please check for proper syntax and format."},{key:"dialog_app_menu_invalid_message_web",de:'Sie verwenden im Men\xfc inkompatible Deeplinks/ Action URLs, die im Purple Web Kiosk nicht verf\xfcgbar sind. Eine entsprechende Liste kann der <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">Dokumentation</a> entnommen werden.',en:'You are using incompatible deep links / action URLs within the menu that are not available for the Purple web newsstand. A list of those deep links you find in our <a href="http://purple-docs.readthedocs.io/en/latest/deep_links.html" target="_blank">documentation</a>.'},{key:"entitlement_error_unknown_web",de:"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es noch einmal.",en:"An error occurred. Please try again."},{key:"entitlement_error_wrong_credentials_web",de:"Die eingegebenen Zugangsdaten sind nicht richtig.",en:"The credentials are not valid."},{key:"entitlement_error_user_deactivated_web",de:"Ihr Account ist deaktiviert worden. Bitte nehmen Sie Kontakt mit dem Support auf.",en:"Your account has been deactivated. Please contact the support team."},{key:"entitlement_error_authentication_error_web",de:"Falsche E-Mail-Eingabe. Bitte \xfcberpr\xfcfen Sie Ihre Eingabe.",en:"Incorrect email address. Please check your credentials."},{key:"entitlement_error_installation_limit_exceeded_web",de:"Sie haben die maximalen Ger\xe4te\u2010Aktivierungen f\xfcr Ihren VIP-Account erreicht.",en:"You have reached the maximum number of devices you can register for your Great Magazines account."},{key:"entitlement_error_system_web",de:"Es ist ein Systemfehler aufgetreten. Bitte versuchen Sie es in einigen Minuten noch einmal oder kontaktieren Sie uns.",en:"A system error occurred. Please try again later or contact our support team."},{key:"entitlement_error_parameter_web",de:"Es ist ein Parameter-Fehler aufgetreten. Bitte versuchen Sie es in einigen Minuten noch einmal oder kontaktieren Sie uns.",en:"A parameter error occurred. Please try again later or contact our support team."},{key:"error_invalid_code_web",de:"Der eingegebene Gutscheincode nicht g\xfcltig",en:"The code you have entered is not valid"},{key:"error_invalid_receipt_web",de:"Der \xfcbergebene Token ist nicht g\xfcltig",en:"The code you have entered is not val
1id"},{key:"error_invalid_remote_token_web",de:"Der \xfcbergebene Token ist nicht g\xfcltig",en:"The receipt is not valid"},{key:"error_issue_not_available_web",de:"Diese Ausgabe ist nicht verf\xfcgbar",en:"This issue is not available"},{key:"error_unknown_web",de:"Es ist ein unbekannter Fehler aufgetreten",en:"An unknown error occured."},{key:"issue_pages_web#one",de:"%1$s Seite",en:"%1$s Page"},{key:"issue_pages_web#other",de:"%1$s Seiten",en:"%1$s Pages"},{key:"issue_read_web",de:"Lesen",en:"Read"},{key:"issue_purchase_web",de:"Kaufen",en:"Buy"},{key:"issue_preview_web",de:"Vorschau",en:"Preview"},{key:"issue_login_web",de:"Anmelden",en:"Login"},{key:"loading_title_web",de:"",en:""},{key:"login_cancel_web",de:"Abbrechen",en:"Cancel"},{key:"login_code_placeholder_web",de:"Coupon Code",en:"Coupon Code"},{key:"login_get_code_web",de:"Sie haben noch keinen Zugang? Klicken Sie <a href=\u201ehttp://www.sprylab.com\u201c>hier</a>",en:"Don\u2019t have any login details yet? Click <a href=\u201ehttp://www.sprylab.com\u201c>here</a>"},{key:"login_howto_web",de:"<b>So funktioniert es:</b><br />Geben Sie hier bitte Ihre Zugangsdaten ein, um die Inhalte zu lesen.",en:"<b>This is how it works:</b><br/> User your login details to access the contents."},{key:"login_login_web",de:"Anmelden",en:"Login"},{key:"login_no_get_code_web",de:"Die App k\xf6nnen Sie nat\xfcrlich auch im Apple App Store und Google Play herunterladen!",en:"You can download the app in Apple App Store or Google Play too!"},{key:"login_password_placeholder_web",de:"Passwort",en:"Password"},{key:"login_subtitle_web",de:"Ver\xf6ffentlichen Sie ihre App-Inhalte im Browser!<br /><br /> Egal ob PDF oder Magazine: Die Darstellung der Inhalte erfolgt ohne weitere Arbeitsaufw\xe4nde und in gewohnter App-Qualit\xe4t.",en:"Make your app contents available in web browsers! <br><br/> No matter if PDF or magazine: Your contents will be displayed in the same quality with no additional work to be done."},{key:"login_title_web",de:"Ihre App Inhalte im Purple DS | Web Kiosk",en:"Your contents in Purple DS | Web Newsstand"},{key:"login_username_placeholder_web",de:"Nutzername",en:"Username"},{key:"manufacturer_web",de:"Hersteller",en:"Manufacturer"},{key:"menu_code_web",de:"Code",en:"Code"},{key:"menu_login_web",de:"Anmelden",en:"Login"},{key:"menu_logout_web",de:"Abmelden",en:"Logout"},{key:"menu_title_web",de:"",en:""},{key:"menu_feedback_web",de:"Feedback",en:"Feedback"},{key:"menu_subscription_web",de:"Abo",en:"Subscription"},{key:"menu_download_web",de:"PDF Herunterladen",en:"PDF Download"},{key:"menu_download_single_web",de:"Einzelseite herunterladen",en:"Download single page"},{key:"menu_download_single_left_web",de:"Linke Seite herunterladen",en:"Download left page"},{key:"menu_download_single_right_web",de:"Rechte Seite herunterladen",en:"Download right page"},{key:"menu_download_full_web",de:"Gesamtes PDF Herunterladen",en:"Download full PDF"},{key:"os_version_web",de:"OS-Version",en:"OS version"},{key:"version_title_web",de:"Version",en:"Version"},{key:"table_of_contents_web",de:"Inhaltsverzeichnis",en:"Table of contents"},{key:"cookie_info_text_web",de:"Wir verwenden Cookies, um unsere Website f\xfcr Sie zu optimieren. Mit der weiteren Nutzung dieser Website erkl\xe4ren Sie sich damit einverstanden.",en:"We use cookies to optimize our website for you. By continuing to use this website, you agree to this."},{key:"cookie_info_link_text_web",de:"Mehr Infos",en:"More Info"},{key:"cookie_info_link_href_web",de:"https://sprylab.com/cookie-policy/",en:"https://sprylab.com/cookie-policy/"},{key:"cookie_info_button_text_web",de:"OK",en:"OK"},{key:"sharing_link_web_text_web",de:"Zum Web Kiosk",en:"Open Web Newsstand"},{key:"sharing_link_custom_text_web",de:"Zur Website",en:"Open website"},{key:"sharing_link_custom_href_web",de:"https://sprylab.com",en:"https://sprylab.com"}];var P=function(Ae){return Ae.FIT_INSIDE="fitInside",Ae.MAGAZINE="magazine",Ae}(P||{}),F=function(Ae){return Ae.SELF="self",Ae.BLANK="blank",Ae.PARENT="parent",Ae.POST_MESSAGE="postMessage",Ae}(F||{});let de=(()=>{var Ae;class Oe{constructor(){this.document=(0,v.WQX)(o.qQ),this.transferState=(0,v.WQX)(v.pJN),this.resourceService=(0,v.WQX)(ue.Q),this.purpleEnv=(0,v.WQX)(be.r6),this.platformId=(0,v.WQX)(v.Agw),this.globalService=(0,v.WQX)(X.d),this.appData=(0,v.WQX)(be.fj),this.configObservable=new O.t(null),this.appPropertiesSubject=ne
1w x.m(1)}getConfig(){return this.configObservable.asObservable().pipe((0,U.p)(Tt=>!!Tt),(0,Q.s)(1))}loadConfig(){var Tt=this;return(0,u.A)(function*(){let Dt=Tt.globalService.getData("appProperties"),en=Tt.transferState.get(te,void 0);if(!Dt||!en){const{id:Dn,contentLastModified:Pn}=Tt.appData.appWebConfig,$n="".concat(Tt.purpleEnv.MANAGER_BASE_URL,"/delivery");en=yield Tt.resourceService.getObject("".concat($n,"/web/properties/").concat(Dn,"?version=").concat(Pn),!0),Tt.transferState.set(te,en),Dt=yield Tt.propertiesToConfig($n,en),Tt.changeFavicon(),Dt.messages=Tt.getDefaultMessages(),Tt.globalService.setData("appProperties",Dt)}Tt.configObservable.next({kioskConfig:Dt}),Tt.appPropertiesSubject.next(en)})()}propertiesToConfig(Tt,Dt){var en=this;return(0,u.A)(function*(){const{baseUrl:Dn,preview:Pn,appWebConfig:$n}=en.appData,{id:In,dynamicResources:xt}=$n,qe={};qe.appId=In,qe.appName=Dt.app_name||"",qe.preview=Pn,qe.deviceId="web",qe.messagesUrl="".concat(Tt,"/web/translations/").concat(In,"?preview=").concat(Pn),qe.stylesUrl=Dt.web_kiosk_styles_url||en.getDynamicResourcesUrl("webkiosk.css"),(Dt.fonts_archive||"").length>0&&(qe.fontsUrl="".concat(Tt,"/web/app/resource/").concat(In,"/fonts.css?preview=").concat(Pn,"&platform=web&deviceId=web")),qe.globalFontsUrl="".concat(Tt,"/web/global/resource/").concat(In,"/fonts.css?preview=").concat(Pn,"&platform=web&deviceId=web"),qe.resourceBaseUrl="".concat(Dn,"/delivery/web/dynamicResources/").concat(In,"/"),qe.resourcesVersion=xt.lastModified,qe.contentFitStrategy=Dt.web_kiosk_content_fit_strategy||Dt.PRESENTER_CONTENT_FIT_STRATEGY||P.FIT_INSIDE,qe.contentMaxWidth=Dt.web_kiosk_content_max_width||"",qe.deliveryUrl=Tt,qe.presenterBaseUrl="".concat(Tt,"/web/resource"),qe.presenterContentUrl="".concat(Tt,"/web/content"),qe.attachmentBaseUrl="".concat(Tt,"/web/attachment/").concat(In,"/"),qe.deviceClassUrl="".concat(Tt,"/config/deviceclasses"),qe.showPurchasableIssues=Dt.web_kiosk_show_purchasable_issues||!1,qe.purchaseUrl=en.getDynamicResourcesUrl(Dt.web_kiosk_purchase_url||""),qe.purchasePreviewUrl=en.getDynamicResourcesUrl(Dt.web_kiosk_purchase_preview_url||""),qe.subscriptionUrl=en.getDynamicResourcesUrl(Dt.web_kiosk_subscription_url||""),qe.forcePurchase=Dt.web_kiosk_force_purchase||!1,qe.loginUrl=en.getDynamicResourcesUrl(Dt.web_kiosk_login_url||Dt.kiosk_entitlement_custom_ui_login_url||""),qe.logoutUrl=en.getDynamicResourcesUrl(Dt.web_kiosk_logout_url||""),qe.appResourceBaseUrl="".concat(Tt,"/web/app/resource/").concat(In,"/"),qe.pageTitle=Dt.web_kiosk_title||"Purple Web Kiosk",qe.metaDescription=Dt.web_kiosk_description||null,qe.pageHeading=Dt.web_kiosk_heading||null,qe.logoUrl=Dt.web_kiosk_logo_url||null,qe.metaRobots=Dt.web_kiosk_robots||null,qe.metaCanonicalUrl=Dt.web_kiosk_canonical_url||null,qe.cookieBannerEnabled=Dt.web_kiosk_cookie_banner_enabled||!0,qe.contentOpenTarget=Dt.web_kiosk_content_open_target||F.SELF,qe.initialDynamicPath=Dt.app_initial_screen_url||null,qe.downloadFileName=Dt.web_kiosk_download_file_name||"publication_issue",qe.trackingAtinternetEnabled=Dt.tracking_atinternet_enabled||!1,qe.trackingChartbeatEnabled=Dt.tracking_chartbeat_enabled||!1,qe.trackingChartbeatAccountId=Dt.tracking_chartbeat_account_id||"",qe.trackingChartbeatSiteId=Dt.tracking_chartbeat_site_id||"",qe.trackingGoogleAnalytics4Enabled=Dt.tracking_google_analytics_4_enabled||!1,qe.trackingGoogleAnalytics4Id=Dt.tracking_google_analytics_4_id||"";const Kt=Dt.app_cmp_provider_name||null;return null!=Kt&&(qe.cmpProvider=Kt,qe.cmpVendorIdAtInternet=Dt.cmp_vendor_id_atinternet||null,qe.cmpVendorIdChartbeat=Dt.cmp_vendor_id_chartbeat||null,qe.cmpVendorIdGoogleAnalytics=Dt.cmp_vendor_id_google_firebase||null,"sourcepoint"===Kt&&(qe.sourcePointAccountId=Dt.cmp_sourcepoint_account_id||null,qe.sourcePointPropertyId=Dt.cmp_sourcepoint_property_id||null,qe.sourcePointPropertyName=Dt.cmp_sourcepoint_property_name||null,qe.sourcePointPrivacyManagerId=Dt.cmp_sourcepoint_privacy_manager_id||null)),qe})()}getDynamicResourcesUrl(Tt){return null==Tt||0===Tt.length||Tt.startsWith("http://")||Tt.startsWith("https://")||Tt.startsWith("purple://")?Tt:(0,ne.Al)(Tt,this.appData)}getDefaultMessages(){const Tt=this.isGerman();return Te.reduce((Dt,en)=>(0,p.A)((0,p.A)({},Dt),{},{[en.key]:en[Tt?"de":"en"]}),{})}isGerman(){if(window.navigator.languages&&window.navigator.languages.length){for(const Tt of window.navigator.languages){if("de"===Tt||0===Tt.indexOf("de-"))return!0;
1if("en"===Tt||0===Tt.indexOf("en-"))return!1}return!1}{const Tt=(0,re.JK)();return"de"===Tt||0===Tt.indexOf("de-")}}changeFavicon(){var Tt=this;return(0,u.A)(function*(){if((0,o.Vy)(Tt.platformId)){const[Dt,en]=Tt.appData.appWebConfig.favicons;if(Dt){let Dn=Tt.document.querySelector("#appIcon");if(Dn.href=Dt.url,Dn.type=Dt.mimeType,en){let Pn=Tt.document.querySelector("#another-appIcon");Pn||(Pn=Tt.document.createElement("link"),Dn.parentNode.insertBefore(Pn,Dn.nextSibling)),Pn.rel="icon",Pn.id="another-appIcon",Pn.href=en.url,Pn.type=en.mimeType}}}})()}getAppProperties(){return this.appPropertiesSubject.asObservable()}}return(Ae=Oe).\u0275fac=function(Tt){return new(Tt||Ae)},Ae.\u0275prov=v.jDH({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Oe})()},9312:(le,E,d)=>{"use strict";d.d(E,{q:()=>p});class p{}},5636:(le,E,d)=>{"use strict";d.d(E,{R:()=>Q});var p=d(9379),u=d(3953),o=d(345),v=d(9118),O=d(177),x=d(7879),U=d(4843);let Q=(()=>{var re;class be{constructor(){var X;this.document=(0,u.WQX)(O.qQ),this.appData=(0,u.WQX)(x.fj),this.location=(0,u.WQX)(x.GZ),this.purpleEnv=(0,u.WQX)(x.r6),this.pxpConfig=(0,u.WQX)(x.Wp),this.title=(0,u.WQX)(o.hE),this.meta=(0,u.WQX)(o.W8),this.ignoredKeys=["og_url","canonical","title"],this.defaultKeys=["language"],this.fallbackTitle="",this.fallbackLanguage=null!==(X=this.pxpConfig.language)&&void 0!==X?X:"en",this.viewMetadata={},this.contentMetadata={},this.mergedMetadata={};const ne=(0,u.WQX)(v.x);(0,U._)(ne.getConfig()).then(({kioskConfig:te})=>{this.fallbackTitle=te.appName})}setCacheMeta(X){const{maxAge:ne,staleWhileRevalidate:te,staleIfError:$}=X;this.updateMetaTag("name","max-age",ne),this.updateMetaTag("name","stale-while-revalidate",te),this.updateMetaTag("name","stale-if-error",$)}setViewSeoMetadata(X,ne){var te,$;this.viewTitle=null!==(te=null!==($=null==X?void 0:X.title)&&void 0!==$?$:null==X?void 0:X.og_title)&&void 0!==te?te:ne,this.viewMetadata=X,this.update()}clearViewSeoMetadata(){this.viewTitle=null,this.viewMetadata={},this.update()}setContentSeoMetadata(X,ne){var te,$;this.contentTitle=null!==(te=null!==($=null==X?void 0:X.title)&&void 0!==$?$:null==X?void 0:X.og_title)&&void 0!==te?te:ne,this.contentMetadata=X,this.update()}clearContentSeoMetadata(){this.contentTitle=null,this.contentMetadata={},this.update()}updateMetaTag(X,ne,te){const $="".concat(X,"='").concat(ne,"'");te?this.meta.updateTag({[X]:ne,content:te},$):this.meta.removeTag($)}updateCanonical(){const X=new URL(this.location.href);let te,ne=this.location.pathname;ne.length>0&&ne.endsWith("/")&&(ne=ne.substring(0,ne.length-1));try{te=new URL(ne,this.location.origin)}catch(De){console.warn("Failed to create canonical URL from path '".concat(ne,"' & origin '").concat(this.location.origin,"', using current URL instead."),De),te=new URL(this.location.href)}const $=["publication","issue","bundle","content","preview"];X.searchParams.forEach((De,Ce)=>{($.includes(Ce)||Ce.startsWith("page-set-"))&&te.searchParams.set(Ce,De)});const J=te.toString();let se=this.document.querySelector('link[rel="canonical"]');se||(se=this.document.createElement("link"),se.setAttribute("rel","canonical"),this.document.head.appendChild(se)),se.setAttribute("href",J),this.meta.updateTag({property:"og:url",content:J})}update(){var X,ne;const te=null!==(X=null!==(ne=this.viewTitle)&&void 0!==ne?ne:this.contentTitle)&&void 0!==X?X:this.fallbackTitle;if(this.title.setTitle(te),this.purpleEnv.isApp)return;this.updateCanonical();const $=this.mergedMetadata;this.mergedMetadata=(0,p.A)((0,p.A)({},this.contentMetadata),this.viewMetadata),this.updateMetadata($,this.mergedMetadata)}updateMetadata(X,ne){const te=new Set(Object.keys(X).concat(Object.keys(ne)).concat(this.defaultKeys));for(let $ of te){const J=X[$],se=ne[$];this.ignoredKeys.includes($)||($.startsWith("og_")?this.handleOG($,se):$.startsWith("article_")?this.handleArticle($,se):"robots"===$?this.handleRobots(se):$.startsWith("twitter_")?this.handleTwitter($,J,se):"language"===$?this.handleLanguage(se):"alternates"===$?this.setAlternateLanguages(se):this.handleRemainingKeys($,se))}}handleOG(X,ne){"og_image"===X?this.handleImage(ne):this.updateMetaTag("property",X.replace("_",":"),ne)}handleImage(X){var ne,te,$,J;let se;Array.isArray(X)?se=X[0]:"object"==typeof X&&null!==X&&(se=X),this.updateMetaTag("property","og:image",null===(ne=se)||void 0===ne?void 0:ne.url),this.updateMetaTag("property","og:image:width",null===(te=se)||void 0===te?void 0:te.width),this.updateMetaTag("property","og:image:height",null===($=se)||void 0===$?void 0:$.height),this.updateMetaTag("property","og:image:type",null===(J=se)||void 0===J?void 0:J.type)}handleArticle(X,ne){this.updateMetaTag("property",X.replace("_",":"),ne)}handleRobots(X){let ne;this.shouldAddNoIndex()?ne="noindex, nofollow":"object"==typeof X&&null!==X?ne=Object.values(X).join(", "):"str
1ing"==typeof X&&(ne=X),this.updateMetaTag("name","robots",ne)}shouldAddNoIndex(){return this.appData.preview||!this.appData.customDomain||x.Tk.some(X=>this.location.search.includes(X))}handleTwitter(X,ne,te){"twitter_misc"===X?this.handleTwitterMiscKeys(ne,te):this.updateMetaTag("name",X.replace("_",":"),te)}handleTwitterMiscKeys(X,ne){const te=Math.max(Object.keys(null!=X?X:{}).length,Object.keys(null!=ne?ne:{}).length),$=Object.entries(null!=ne?ne:{});for(let se=0;se<te;se++){var J;const De=$[se];this.updateMetaTag("name","twitter:label".concat(se+1),null==De?void 0:De[0]),this.updateMetaTag("name","twitter:data".concat(se+1),null!==(J=null==De?void 0:De[1])&&void 0!==J?J:"")}}handleLanguage(X){this.document.documentElement.setAttribute("lang",null!=X?X:this.fallbackLanguage)}setAlternateLanguages(X){const ne=this.document.querySelectorAll('link[rel="alternate"]');for(const $ of ne)this.document.head.removeChild($);const te=this.extractAlternativesFromConfig(X);this.attachAltLinkTagsToDOM(te)}extractAlternativesFromConfig(X){if(!X)return[];if(Array.isArray(X))return X;if("expression"in X&&"fallback"in X){const{expression:ne,fallback:te}=X;let $;return Array.isArray(ne)&&($=ne.filter(J=>"path"in J&&"lang"in J)),$&&$.length?$:te}return[]}attachAltLinkTagsToDOM(X){for(const ne of null!=X?X:[]){if("string"!=typeof(null==ne?void 0:ne.path)||"string"!=typeof(null==ne?void 0:ne.lang)){console.warn("Skipping invalid alternate language:",ne);continue}const te=this.document.createElement("link");te.setAttribute("rel","alternate"),te.setAttribute("href",this.calculateURL(ne.path)),te.setAttribute("hreflang",ne.lang),this.document.head.appendChild(te)}}calculateURL(X){"/"===(X=X.trim())&&(X="");const ne=this.appData.customDomain?X:"/".concat(this.appData.brand).concat(X),te=new URL(ne,this.location.origin);return this.appData.preview&&te.searchParams.set("preview",this.appData.preview.toString()),te.toString()}handleRemainingKeys(X,ne){this.updateMetaTag("name",X,ne)}}return(re=be).\u0275fac=function(X){return new(X||re)},re.\u0275prov=u.jDH({token:re,factory:re.\u0275fac,providedIn:"root"}),be})()},496:(le,E,d)=>{"use strict";d.d(E,{m:()=>x});var p=d(9379),u=d(467),o=d(177),v=d(3953),O=d(6010);let x=(()=>{var U;class Q{constructor(){this.document=(0,v.WQX)(o.qQ),this.purpleService=(0,v.WQX)(O.Wj)}selectByIssueCriteria(be,ue,X,ne){var te=this;return(0,u.A)(function*(){const $=[];be&&$.push({id:{value:be}}),ue&&$.push({alias:{value:ue}}),X&&$.push({externalIssueId:{value:X}});const J={first:1};1===$.length?J.issueFilter=$[0]:$.length>1&&(J.issueFilter={OR:$});const De=(yield te.purpleService.getIssues(J,!1,ne)).nodes[0];return yield te.handlePublication(null==De?void 0:De.publicationId),De})()}selectByContentCriteria(be,ue,X,ne){var te=this;return(0,u.A)(function*(){const $=[];be&&$.push({id:{value:be}}),ue&&$.push({alias:{value:ue}}),X&&$.push({externalIssueId:{value:X}});const J=(0,p.A)({first:1},ne?{fetchOptions:{includeResources:!0}}:{});1===$.length?J.contentFilter=$[0]:$.length>1&&(J.contentFilter={OR:$});const De=(yield te.purpleService.getCatalogContents(J,!1)).nodes[0];return yield te.handlePublication(null==De?void 0:De.publicationId),De})()}handlePublication(be){var ue=this;return(0,u.A)(function*(){if(be){const X=yield ue.purpleService.getPublication(be);X&&ue.setPublication(X)}})()}setPublication(be){this.currentPublication=be,be&&this.document.body.setAttribute("data-publication",be.id)}reset(){this.currentPublication=void 0}}return(U=Q).\u0275fac=function(be){return new(be||U)},U.\u0275prov=v.jDH({token:U,factory:U.\u0275fac,providedIn:"root"}),Q})()},2838:(le,E,d)=>{"use strict";d.d(E,{Q:()=>Q});var p=d(467),u=d(1626),o=d(3953),v=d(5632),O=d(4843),x=d(7879),U=d(7370);let Q=(()=>{var re;class be{constructor(){this.http=(0,o.WQX)(u.Qq),this.serverOnlyService=(0,o.WQX)(v.l),this.appData=(0,o.WQX)(x.fj)}loadResource(X,ne,te=!1){var $=this;return(0,p.A)(function*(){const J=ne?$.getObject.bind($):$.getString.bind($),se=(0,U.Al)(X,$.appData);return yield J(se,te)})()}getObject(X,ne=!1){return this._get(X,te=>JSON.parse(te.toString()),te=>JSON.stringify(te),void 0,ne)}getString(X,ne=!1){return this._get(X,te=>te.toString(),te=>te,{responseType:"text"},ne)}_get(X,ne,te,$,J=!1){var se=this;return(0,p.A)(function*(){const De=J||!!(0,U.KC)(X),Ce=(0,U.bT)(X,se.appData),ce=se.getCacheKey(Ce);try{const _=yield se.serverOnlyService.getFromCache(ce);if(_){const R=JSON.parse(_).data;return R&&ne(R)}{const R=yield(0,O._)(se.http.get(Ce,$));return De&&se.serverOnlyService.writeToCache(ce,JSON.stringify({status:200,data:te(R)})),R}}catch(_){return 404===(null==_?void 0:_.status)&&De?se.serverOnlyService.writeToCache(ce,JSON.stringify({status:404,data:null})):console.error("Error loading ".concat(Ce,": ").concat(null==_?void 0:_.status),_),null}})()}getCacheKey(X){return"cache:"+X}}return(re=be).\u0275fac=function(X){return new(X||re)},re.\u0275prov=o.jDH({token:re,factory:re.\u0275fac,providedIn:"root"}),be})()},5632:(le,E,d)=>{"use strict";d.d(E,{l:()=>u});var p=d(3953);let u=(()=>{var o;class v{constructor(){}isServer(){return!1}isBrowser(){return!0}redirectExternal(x,U){}sendError(x,U){}setStatusCode(x){}getFromCache(x){}writeToCache(x,U){}}return(o=v).\u0275fac=function(x){return new(x||o)}
1,o.\u0275prov=p.jDH({token:o,factory:o.\u0275fac}),v})()},4748:(le,E,d)=>{"use strict";d.d(E,{i:()=>U});var p=d(3953),u=d(3331),o=d(4412),v=d(5964),O=d(5245),x=d(4843);let U=(()=>{var Q;class re{constructor(){this.router=(0,p.WQX)(u.Ix),this.spaNavigation$=new o.t(!1),this.prebootCompleteSubject=new o.t(!1),this.prebootCompleted$=this.prebootCompleteSubject.asObservable().pipe((0,v.p)(ue=>ue)),this.router.events.pipe((0,v.p)(ue=>ue instanceof u.Z),(0,O.i)(1)).subscribe(()=>this.spaNavigation$.next(!0))}get currentPrebootStatus(){return this.prebootCompleteSubject.getValue()}get prebootCompletedPromise(){return(0,x._)(this.prebootCompleted$)}updatePrebootStatus(ue){this.prebootCompleteSubject.next(ue)}get spaNavigationPromise(){return(0,x._)(this.spaNavigation$)}}return(Q=re).\u0275fac=function(ue){return new(ue||Q)},Q.\u0275prov=p.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"}),re})()},8482:(le,E,d)=>{"use strict";d.d(E,{y:()=>R});var p=d(2305),u=d(9379),o=d(467),v=d(3953),O=d(9516),x=d(4412),U=d(177),Q=d(5964),re=d(6354),be=d(3294),ue=d(5245),X=d(7467),ne=d(6078),te=d(3331),$=d(6843),J=d(7031),se=d(7816),De=d(7879);const Ce=["scriptURL"];var ce=function(B){return B.Mobile="MOBILE",B.Tablet="TABLET",B.Desktop="DESKTOP",B}(ce||{});class _ extends se.Q{constructor(z){super("Traffective Ads",z)}createInstance(){return null}}let R=(()=>{var B;class z{constructor(){this.contextService=(0,v.WQX)(O.V),this.platformId=(0,v.WQX)(v.Agw),this.consentService=(0,v.WQX)(ne.e),this.pxpConfig=(0,v.WQX)(De.Wp),this.router=(0,v.WQX)(te.Ix),this.ngZone=(0,v.WQX)(v.SKi),this.loadedSubject$=new x.t(!1),this.isTRFConfigReady$=this.loadedSubject$.asObservable(),this.isServiceInit=!1,this.isScriptLoading=!1,this.contextService.viewContext$.pipe((0,Q.p)(V=>void 0!==(null==V?void 0:V.pageConfigs)),(0,re.T)(V=>{var k;return null===(k=V.pageConfigs)||void 0===k?void 0:k.traffective}),(0,be.F)()).subscribe(V=>{this.isServiceInit||this.isScriptLoading||!(0,U.UE)(this.platformId)?this.isServiceInit&&(this.mapConfig(V),this.trfConfig=V,this.setPageConfigData()):this.init(V)}),(0,U.UE)(this.platformId)&&this.router.events.pipe((0,Q.p)(V=>V instanceof te.Z),(0,ue.i)(1)).subscribe(()=>{this.onRouteChangeStartTRF(),this.loadedSubject$.next(!1)})}init(V){var k=this;return(0,o.A)(function*(){k.isScriptLoading=!0;let K=(0,X.Y)();k.channel=K.isMobile?ce.Mobile:K.isTablet?ce.Tablet:ce.Desktop,k.mapConfig(V),k.trfConfig=V;const ge=(0,u.A)((0,u.A)({},k.defaultTraffectiveConfig),k.trfConfig);k.setdfpAdUrl(ge,ge.dfpAdUrlSlug),yield k.initPluginConfiguration(),k.isServiceInit=yield k.loadHeaderScript(ge),k.isScriptLoading=!1,k.loadedSubject$.next(k.isServiceInit)})()}initPluginConfiguration(){var V=this;return(0,o.A)(function*(){const k=new w(V.pxpConfig);V.pluginConfiguration=new _(k.getTraffectiveAdsConfigData())})()}initDefaultConfig(V){V.select((0,J.jZ)($.O.AD),k=>{this.defaultTraffectiveConfig=null==k?void 0:k.traffective})}hasConsent(){return this.consentService.hasConsent(this.pluginConfiguration.getVendorId())||this.consentService.hasConsent(this.pluginConfiguration.getIABVendorId())}setPageConfigData(){var V=this;return(0,o.A)(function*(){const k=document.getElementById("trfAdSetup").getAttribute("data-traffectiveConf");if(k!==JSON.stringify(V.trfConfig)){let K;if(V.trfConfig){K=JSON.parse(k);const{targeting:ge,clientAlias:ve,dfpAdUrlSlug:Fe}=V.trfConfig;V.setdfpAdUrl(K,Fe),ge&&(K.targeting=[...ge]),ve&&(K.clientAlias=ve),Fe&&(K.dfpAdUrlSlug=Fe)}else V.trfConfig=(0,u.A)({},V.defaultTraffectiveConfig),K=V.trfConfig;document.getElementById("trfAdSetup").setAttribute("data-traffectiveConf",JSON.stringify(K))}V.onRouteChangeCompleteTRF(),V.loadedSubject$.next(!0)})()}loadHeaderScript(V){return(0,o.A)(function*(){if(!V.scriptURL)return console.error("No TRF script URL provided"),!1;try{const k=document.createElement("script");k.id="trfAdSetup",k.type="text/javascript",k.src=V.scriptURL;const ge=(0,p.A)(V,Ce);k.setAttribute("data-traffectiveConf",JSON.stringify(ge)),k.async=!0,document.head.appendChild(k)}catch(k){return console.error("Error loading TRF script:",k),!1}return console.debug("TRF script loaded and not initialized yet"),new Promise(k=>{document.addEventListener("traffectiveApiReady",K=>{console.debug("TRF initialized",K),k(!0)})})})()}mapConfig(V){if(V){V.targeting||(V.targeting=[]);for(let K=0;K<V.targeting.length;K++){var k;V.targeting[K]={key:V.targeting[K].key,values:null!==(k=V.targeting[K])&&void 0!==k&&null!==(k=k.values)&&void 0!==k&&k.length?V.targeting[K].values:null,value:V.targeting[K].value||null}}V.targeting.push({key:"channel",values:null,value:this.channel})}}onRouteChangeStartTRF(){try{this.ngZone.runOutsideAngular(()=>{var V;null===(V=window.traffective)||void 0===V||V.routeChangeStart()})}catch(V){console.warn("Traffective call error on Navigation Start: ",V)}}onRouteChangeCompleteTRF(){try{this.ngZone.runOutsideAngular(()=>{var V;null===(V=window.traffective)||void 0===V||V.routeChangeComplete()})}catch(V){console.warn("Traffective call error on Navigation Complete: ",V)}}setdfpAdUrl(V,k){var K,ge;null!==(K=this.dfpAdUrlBase)&&void 0!==K||(this.dfpAdUrlBase=null===(ge=this.defaultTraffectiveConfig)||void 0===ge?void 0:ge.dfpAdUrl),V.dfpAdUrl=this.dfpAdUrlBase+(k?"/".concat(k):"")}}return(B=z).\u0275fac=function(V){return new(V||B)},B.\u0275prov=v.jDH({token:B,factory:B.\u0275fac}),z})();class w{constructor(z){this.experienceConfig=z}getTraffectiveAdsConfigData(){var z;return(null===(z=this.experienceConfig.purple)||void 0===z||null===(z=z.ads)||void 0===z?void 0:z.traffective)||(this.experienceConfig.traffective_ad?{configuration:{},consent:{vendorId:null===(V=this.experienceConfig.traffective_ad)||void 0===V?void 0:V.cmpVendorIdTraffectiveAd,iabVendorId:null===(k=this.experienceConfig.traffective_ad)||void 0===k?void 0:k.cmpIABIdTraffectiveAd}}:null);var V,k}}},6889:(le,E,d)=>{"use strict";d.d(E,{K:()=>V,r:()=>oe});var B,p=d(9379),u=d(467),o=d(3953),v=d(7673),O=d(9724),x=d(4843),U=d(9516),Q=d(8141),re=d(5558),be=d(9568),ue=d(1594),X=d(6010),ne=d(2838),te=d(4404),J=d(5630),se=d(7031),De=d(1652),Ce=d(7879),ce=d(4745),_=d(5706),R=d(8545),w=d(7370);const z=(0,o.zw6)("UrlResolverService.alreadyResolvedData");
1class oe extends Error{constructor(ge,ve){super("[RedirectLoopError] ".concat(ge,": [\n").concat(ve.map(Fe=>'  "'.concat(Fe,'"')).join("\n"),"]")),this.redirectChain=ve,this.redirectChain=ve}}class V{constructor(){this.store=(0,o.WQX)(ce.il),this.transferState=(0,o.WQX)(o.pJN),this.contextService=(0,o.WQX)(U.V),this.resourceService=(0,o.WQX)(ne.Q),this.purpleService=(0,o.WQX)(X.Wj),this.globalService=(0,o.WQX)(De.d),this.appData=(0,o.WQX)(Ce.fj),this.alreadyResolvedData={};const ge=this.transferState,ve=this.resourceService;this.alreadyResolvedData=this.transferState.get(z,{});const Fe=ge.hasKey(V.URL_RESOLVER_JS_KEY)?(0,v.of)(ge.get(V.URL_RESOLVER_JS_KEY,"")):(0,O.H)(ve.getString((0,w.Al)("storefront/assets/scripts/url.resolver.js",this.appData)));this.urlResolverModule$=Fe.pipe((0,Q.M)(We=>{ge.hasKey(V.URL_RESOLVER_JS_KEY)||this.transferState.set(V.URL_RESOLVER_JS_KEY,We)}),(0,re.n)(function(){var We=(0,u.A)(function*(ze){if(ze)try{return import("data:text/javascript,".concat(encodeURIComponent(ze))).then(Ke=>Ke.default)}catch(bt){console.error("Error executing code:",bt)}});return function(ze){return We.apply(this,arguments)}}()),(0,be.t)({refCount:!0,bufferSize:1})),this.urlResolverModule$.subscribe()}getGlobalData(){return this.globalService.getGlobalData()}findFinalRedirect(ge){var ve=this;return(0,u.A)(function*(){let Fe=yield ve.purpleService.getRedirects({redirectFilter:{AND:[{identifier:{value:ge.identifier}},{type:{value:ge.redirectType}}]}}).then(ze=>ze.nodes);if(Fe.length>1&&console.error("Catalog API has multiple Redirects of type ".concat(ge.redirectType," and identifier ").concat(ge.identifier,", using the first one")),0===Fe.length)throw new Error("Couldn't find redirect for redirect match, something went wrong! type ".concat(ge.redirectType," identifier ").concat(ge.identifier));const We=[];for(;;){const ze=yield ve.purpleService.getRedirects({redirectFilter:{AND:[{identifier:{value:Fe[0].target}},{type:{value:ge.redirectType}}]}}).then(bt=>bt.nodes);if(We.length>V.MAX_REDIRECT_RETRIES)throw new oe("Too many redirects starting from ".concat(ge.identifier," (type ").concat(ge.redirectType,")"),We);if(!ze.length)break;We.push(ze[0].identifier),Fe=ze}return Fe[0]})()}getViewFromPath(ge){var ve=this;return(0,u.A)(function*(){const Fe=yield(0,x._)(ve.urlResolverModule$);if(null==Fe||!Fe.urlToViewResolvers)return null;ge.startsWith("/")||(ge="/"+ge);for(const We of Fe.urlToViewResolvers){const bt=(0,J.YW)(We.pathPattern)(ge);if(bt){const Ke=Object.values(bt.params).reduce((Me,tt)=>(Array.isArray(tt)?Me.push(...tt):Me.push(tt),Me),[]);yield ve.resolveSlugs(Ke);try{const Me=yield We.viewResolver({match:bt,resolvedData:ve.alreadyResolvedData,dataResolver:ve});if((0,R.X0)(Me))return(0,p.A)((0,p.A)({},Me),{},{pathParams:bt.params?(0,p.A)({},bt.params):void 0});if((0,R.ie)(Me))return Me}catch(Me){if(console.error("Error in resolver for pathPattern "+We.pathPattern,Me),Me instanceof oe)throw Me}}}return{notFound:!0}})()}resolveSlugs(ge){var ve=this;return(0,u.A)(function*(){const Fe=ge.filter(ze=>!ve.alreadyResolvedData[ze]);if(0===Fe.length)return ve.alreadyResolvedData;const We=yield ve.purpleService.lookupPathSegments(Fe);for(const ze of We)ve.alreadyResolvedData[ze.identifier]=ze.matches.reduce((ge,ve)=>{switch(ve.type){case"COLLECTION":ge.collections.push(ve);break;case"CONTENT":ge.contents.push(ve);break;case"REDIRECT":ge.redirects.push(ve);break;case"TAXONOMY":ge.taxonomies.push(ve);break;default:console.error("Unknown PathSegmentMatch type ",ve)}return ge},{contents:[],collections:[],redirects:[],taxonomies:[]});return ve.transferState.set(z,ve.alreadyResolvedData),ve.alreadyResolvedData})()}getPathFromData(ge,ve){var Fe=this;return(0,u.A)(function*(){return new Promise((We,ze)=>{Fe.urlResolverModule$.subscribe(function(){var bt=(0,u.A)(function*(Ke){try{var Me;const tt=yield null==Ke||null===(Me=Ke.dataToPathResolver)||void 0===Me?void 0:Me.call(Ke,(0,p.A)((0,p.A)({},ge),{},{dataResolver:Fe,callerMetadata:ve}));We(tt)}catch(tt){console.error("dataToPathResolver failed: ",tt),ze(tt)}});return function(Ke){return bt.apply(this,arguments)}}())})})()}getPathForTaxonomy(ge){var ve=this;return(0,u.A)(function*(){return ve.getPathFromData({taxonomy:ge}).then(Fe=>Fe.paths[0])})()}getPathForContent(ge){var ve=this;return(0,u.A)(function*(){if((0,_.xl)(ge))throw{code:te.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"getPathForContent is not implemented for issues"};try{let We=yield ve.getPathFromData({content:ge});if((null==We?void 0:We.paths.length)>0)return We.paths[0]}catch(We){}const Fe=(0,_.mF)(ge)?ge.postType:void 0;return new Promise(We=>{(0,se.h5)(Fe,ve.contextService.getContext(),ve.contextService.$functions,ve.globalService.getGlobalData())(ve.store).pipe((0,ue.$)()).subscribe(function(){var ze=(0,u.A)(function*(bt){if(bt){let Ke=yield(0,Ce.ZC)(ve.purpleService,bt,null,ge);Ke=ve.replaceAll(Ke,"/%20/","/"),Ke=ve.replaceAll(Ke,"%20",""),We(Ke)}else We(null)});return function(bt){return ze.apply(this,arguments)}}())})})()}replaceAll(ge,ve,Fe){return ge.replace(new RegExp(ve,"g"),Fe)}findContentById(ge,ve){var Fe=this;return(0,u.A)(function*(){return Fe.purpleService.getCatalogContent(ge,!1,ve)})()}findContents(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getCatalogContents(ge)})()}findMenus(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getMenus(ge)})()}findPublications(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getPublications(ge)})()}findTaxonomies(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getTaxonomies(ge)})()}findCollections(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getCollections(ge)})()}findTaxonomyById(ge,ve,Fe){var We=this;return(0,u.A)(function*(){return We.purpleService.getTaxonomy(ge,ve,!1,Fe)})()}findPublicationById(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getPublication(ge)})()}findTaxonomyAncestors(ge,ve,Fe){var We=this;return(0,u.A)(function*(){let ze=[];for(;ge;){let bt=yield We.purpleService.getTaxonomy(ge,ve,!1,Fe);if(!bt)break;ze.unshift(bt),ge=bt.parentId}return ze})()}findCollectionById(ge){var ve=this;return(0,u.A)(function*(){return ve.purpleService.getCollection(ge)})()}}(B=V).URL_RESOLVER_JS_KEY=(0,o.zw6)("url.resolver.js"),B.MAX_REDIRECT_RETRIES=10,B.\u0275fac=function(ge){return new(ge||B)},B.\u0275prov=o.jDH({token:B,factory:B.\u0275fac,providedIn:"root"})},8545:(le,E,d)=>{"use strict";function p(v){return!(null==v||!v.redirectTarget)}function u(v){return!(null==v||!v.viewName)}d.d(E,{X0:()=>u,ie:()=>p})},1510:(le,E,d)=>{"use strict";d.d(E,{h:()=>J});var p=d(9379),u=d(467),o=d(3953),v=d(970),x=d(6010),U=d(9516),Q=d(4412),re=d(1985),be=d(152),ue=d(9360),X=d(3600),ne=d(177);const te=(0,ue.zk)(),$="userTags";let J=(()=>{var se;class De{constructor(){this.contextService=(0,o.WQX)(U.V),this.purpleService=(0,o.WQX)(x.Wj),this.platformId=(0,o.WQX)(o.Agw),this.ngZone=(0,o.WQX)(o.SKi),this.rawUserTags=new Q.t(null)}init(){var ce=this;return(0,u.A)(function*(){const _=JSON.parse(yield ce.purpleService.getState($));_&&ce.setUpdatedUserTags(_);const R=new re.c(w=>{ce.purpleService.addLifecycleListener(B=>{B.type===v.APP_STATE_TYPE.RESUMED&&w.next(B)}),ce.purpleService.addInvalidationListener(()=>w.next()),ce.purpleService.addConnectionStateListener(B=>{B.state===v.CONNECTION_STATE.ONLINE&&w.next(B)}),setTimeout(()=>w.next(),10)});(0,ne.UE)(ce.platformId)&&ce.ngZone.runOutsideAngular(()=>{R.pipe((0,be.B)(1e3)).subscribe(()=>{ce.recalcUserTags()})})})()}setUpdatedUserTags(ce){this.userTags=ce,this.purpleService.setState($,JSON.stringify(ce)),this.contextService.setData("userTags",ce)}getPurchasedSubscriptions(){var ce=this;return(0,u.A)(function*(){return(yield ce.purpleService.getSubscriptions({})).nodes.filter(_=>_.currentReceiptInfo||_.historicReceiptInfo.hadPurchased)})()}getPurchasedPublicationProducts(){var ce=this;return(0,u.A)(function*(){return yield ce.purpleService.getPublicationProducts({publicationProductFilter:{purchased:{value:!0}}})})()}
1recalcUserTags(){var ce=this;return(0,u.A)(function*(){if(!te.calculateStorefrontUserTags||"function"!=typeof te.calculateStorefrontUserTags)return void console.debug("No calculateStorefrontUserTags(params) found. UserTag calculation skipped");let _;try{const z=yield ce.purpleService.getState(X.a).then(oe=>!!oe&&JSON.parse(oe));if(z)_=z;else{const[oe,V,k,K,ge]=yield Promise.all([ce.getPurchasedSubscriptions(),ce.purpleService.getCatalogMetadata(),ce.getPurchasedPublicationProducts(),ce.purpleService.getPublications({},!0),ce.contextService.updateMetadata()]);_=yield te.calculateStorefrontUserTags({subscriptions:oe,activePurchaseTypes:V.activePurchaseTypes,publicationProducts:k,metadata:ce.contextService.getMetadata(),lastUserTags:ce.userTags?(0,p.A)({},ce.userTags):void 0,publications:K.nodes})}}catch(z){return void console.warn("Error while calculating user tags: ",z)}if(!_||"object"!=typeof _)return void console.warn("UserTags calculated, but no object returned");ce.rawUserTags.next(_);const R=ce.createTagSet(_),w=ce.createTagSet(ce.userTags||{});if(ce.areSetsEqual(R,w))return;const B={};for(const z of R)B[z]=!0;for(const[z,oe]of Object.entries(_)){const V={key:z};"string"==typeof oe?V.stringValue=oe:"boolean"==typeof oe&&oe&&(V.booleanValue=oe),ce.purpleService.setUserAttribute(V)}ce.setUpdatedUserTags(B)})()}createTagSet(ce){const _=new Set;for(const[R,w]of Object.entries(ce))"boolean"==typeof w&&w&&_.add(R);return _}areSetsEqual(ce,_){if(ce.size!==_.size)return!1;for(const R of ce)if(!_.has(R))return!1;return!0}}return(se=De).\u0275fac=function(ce){return new(ce||se)},se.\u0275prov=o.jDH({token:se,factory:se.\u0275fac,providedIn:"root"}),De})()},7031:(le,E,d)=>{"use strict";d.d(E,{L2:()=>be,Vi:()=>V,jZ:()=>z,iL:()=>J,HN:()=>se,sb:()=>$,m6:()=>K,LM:()=>k,Kv:()=>w,h5:()=>B});var p=d(4745);const u=(0,p.VP)("[Config] Load Configs",(0,p.xk)()),o=(0,p.VP)("[Config] Load Full Config Success",(0,p.xk)());var v=d(177),O=d(3953),x=d(6157),U=d(8141),Q=d(6843),re=d(8745);let be=(()=>{var ge;class ve{constructor(){this.actions$=(0,O.WQX)(x.En),this.store=(0,O.WQX)(p.il),this.document=(0,O.WQX)(v.qQ),this.configLoaderService=(0,O.WQX)(re.Bh),this.loadConfigs$=(0,x.EH)(()=>this.actions$.pipe((0,x.gp)(u),(0,U.M)(()=>this.configLoaderService.getConfig().subscribe(We=>this.store.dispatch(o(We))))),{dispatch:!1})}ngrxOnInitEffects(){return u({key:Q.O.URL})}}return(ge=ve).\u0275fac=function(We){return new(We||ge)},ge.\u0275prov=O.jDH({token:ge,factory:ge.\u0275fac}),ve})();var ue=d(9379),X=d(2348),ne=d(2261);const $={[Q.O.URL]:{[Q.O.VIEW]:"views.json",[Q.O.MESSAGE]:"messages.json",[Q.O.APP_BAR]:"appBar.json"},[Q.O.VIEW]:[],[Q.O.MESSAGE]:(0,ue.A)({},{CONTENT_TITLE:"%s",CONTENT_DESCRIPTION:"%s",CONTENT_PUBLICATION_TITLE:"%s",CONTENT_ACTION_PURCHASE:"Purchase for %s",CONTENT_ACTION_PURCHASE_LOADING:"Loading price...",CONTENT_ACTION_PURCHASE_UNAVAILABLE:"Price not available",CONTENT_ERROR:"Error loading content data",CONTENT_ERROR_BUTTON:"Try again",CONTENT_UPDATE_BADGE_MESSAGE:"Update available",CONTENT_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",CONTENT_DESCRIPTION_TOGGLE_EXPAND:"Show more",CONTENT_ACTION_READ:"Read",CONTENT_ACTION_SUBSCRIBE:"Subscribe",CONTENT_ACTION_COUPON:"Coupon",CONTENT_ACTION_LOGIN:"Login",ISSUE_DESCRIPTION_TOGGLE_EXPAND:"Show more",ISSUE_DESCRIPTION_TOGGLE_COLLAPSE:"Show less",ISSUE_ACTION_READ:"Read",ISSUE_ACTION_PURCHASE:"Purchase for %s",ISSUE_ACTION_PURCHASE_LOADING:"Loading price...",ISSUE_ACTION_PURCHASE_UNAVAILABLE:"Price not available",ISSUE_ACTION_DOWNLOAD:"Download",ISSUE_ACTION_PREVIEW:"Preview",ISSUE_ACTION_SUBSCRIBE:"Subscribe",ISSUE_ACTION_DOWNLOADING:"Downloading...",ISSUE_ACTION_DELETE:"Delete",ISSUE_ACTION_LOGIN:"Login",ISSUE_ACTION_CANCEL:"Cancel",ISSUE_ACTION_COUPON:"Coupon",ISSUE_ERROR:"Error loading issue data",ISSUE_ERROR_BUTTON:"Try again",ISSUE_DOWNLOAD_CONFIRM_TITLE:"Download issue",ISSUE_DOWNLOAD_CONFIRM_MESSAGE:'Do you want to download "%(content.name)s"?',ISSUE_DOWNLOAD_CONFIRM_OK:"OK",ISSUE_DOWNLOAD_CONFIRM_CANCEL:"Cancel",ISSUE_TITLE:"%s",ISSUE_DESCRIPTION:"%s",ISSUE_PUBLICATION_TITLE:"%s",ISSUE_DELETE_TITLE:"Delete issue",ISSUE_DELETE_MESSAGE:'Do you really want to delete the issue %s"?',ISSUE_DELETE_CONFIRM:"Delete",ISSUE_DELETE_CANCEL:"Cancel",ISSUE_UPDATE_BADGE_MESSAGE:"Update available",ISSUE_UPDATE_TITLE:"Update available",ISSUE_UPDATE_MESSAGE:'A new version of this issue "%s" is available. Would you like to read the old version or the new one?',ISSUE_UPDATE_NEW_VERSION:"Read new version",ISSUE_UPDATE_OLD_VERSION:"Read old version",PUBLICATION_TITLE:"%s",PUBLICATION_DESCRIPTION:"%s",PUBLICATION_ISSUES_PER_YEAR:"<strong>%s issues</strong> published per year",PUBLICATION_CONTENTS_PER_YEAR:"<strong>%s contents</strong> published per year",PUBLICATION_SUBSCRIPTIONS_TITLE:"Store Subscriptions",PUBLICATION_SUBSCRIPTIONS_HEADER:"Introduction text regarding subscriptions",PUBLICATION_SUBSCRIPTIONS_FOOTER:"<strong>Terms of use</strong> Terms of use go here",PUBLICATION_SUBSCRIPTIONS_RESTORE_PURCHASES:"Restore Purchases",PUBLICATION_SUBSCRIPTIONS_MANAGE_SUBSCRIPTIONS:"Manage Subscriptions",DROPDOWN_ISSUE_STATE_RESET:"All Issues",DROPDOWN_ISSUE_STATE_PURCHASED:"My Issues",DROPDOWN_ISSUE_STATE_LOCAL:"My Downloads",DROPDOWN_CATEGORY_RESET:"All categories",TOGGLE_PUBLICATION_TYPE_KIOSK:"Issues",TOGGLE_PUBLICATION_TYPE_CHANNEL:"Articles",SEARCH_FIELD_PLACEHOLDER:"Search...",SEARCH_RESULT_TITLE:"Search results",SEARCH_RESULT_EMPTY_TITLE:"Search Results",SEARCH_RESULT_TOGGLE_EXPAND:"Show more",SEARCH_RESULT_TOGGLE_COLLAPSE:"Show less",SEARCH_RESULT_PAGE_HIT_EXCERPT:"%s",SEARCH_RESULT_PAGE_LABEL_MESSAGE:"Page %s",SEARCH_RESULT_NO_SEARCH:"Please enter a search phrase.",SEARCH_RESULT_NO_RESULT:'No content was found for your search phrase "%1$s". Please try again.',LOGIN_TITLE:"Login",LOGIN_TEASER:"Log in for more content.",LOGIN_TEASER_RELOGIN:"You have been logged out. Please log in again.",LOGIN_HELP:'Forgotten your password? <a href="https://sprylab.com" target="_blank">recover</a>',LOGIN_USERNAME_PLACEHOLDER:"Email",LOGIN_PASSWORD_PLACEHOLDER:"Password",LOGIN_SUBMIT_BUTTON:"Log in",LOGIN_LOGOUT_TITLE:"Logout",LOGIN_LOGOUT_TEASER:"You can log out here.",LOGIN_LOGOUT_HELP:"",LOGIN_LOGOUT_BUTTON:"Log out",LOGOUT_TITLE:"Logout",LOGOUT_MESSAGE:"Do you really want to logout?",LOGOUT_BUTTON_CONFIRM:"Logout",LOGOUT_BUTTON_CANCEL:"Cancel",COUPON_TITLE:"Coupon",COUPON_TEASER:"Here you can enter your coupon code.",COUPON_CODE_TITLE:"Please enter your coupon code",COUPON_CODE_PLACEHOLDER:"coupon code",COUPON_SUBMIT_BUTTON:"Activate",COUPON_ACTIVATED_TITLE:"Your activated coupon codes",COUPON_DEACTIVATE_BUTTON:"Delete",COUPON_VALID_TITLE:"Add coupon",COUPON_VALID_MESSAGE:"The code you entered is valid.",COUPON_VALID_BUTTON_OK:"OK",COUPON_VALID_BUTTON_CANCEL:"Cancel",COUPON_DEACTIVATE_TITLE:"Deactivate coupon code",COUPON_DEACTIVATE_MESSAGE:'Do you really want to deactivate the code %s"?',COUPON_DEACTIVATE_BUTTON_CONFIRM:"OK",COUPON_DEACTIVATE_BUTTON_CANCEL:"Cancel",DIALOG_TITLE:"Dialog",DIALOG_ERROR:"Error",ERROR_SUBSCRIPTION:"The subscription could not be purchased. Please try again later.",ERROR_PURCHASE:"The purchase could not be completed. %s",ERROR_PUBLICATION_COMPLETION:"Product data could not be loaded. %s",ERROR_SEARCH:"The search could not be performed. Please try again later",ERROR_LOGIN:"The login could not be performed. %s",ERROR_COUPON_INVALID:"The code you entered is not val
1id.",ERROR_COUPON_INVALID_BUTTON:"OK",ERROR_COUPON_EXISTS:"This code is already added.",ERROR_COUPON_EXISTS_BUTTON:"OK",ERROR_COUPON_OFFLINE:"No internet connection! This code could not be added.",ERROR_COUPON_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE:"This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_OFFLINE:"No internet connection! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_OFFLINE_BUTTON:"OK",ERROR_COUPON_DEACTIVATE_UNKNOWN:"Code is unknown! This code could not be deactivated.",ERROR_COUPON_DEACTIVATE_UNKNOWN_BUTTON:"OK",ERROR_DOWNLOAD:"Download failed for %2$s. %1$s",ERROR_PREVIEW_OPEN:"Error opening preview. %s",ERROR_CONTENT_OPEN:"Error opening content. %s",ACCESS_DENIED:"Access denied.",ALREADY_LOGGED_IN:"You are already logged in.",USER_DEACTIVATED:"Your account is deactivated.",INSTALLATION_LIMIT_EXCEEDED:"The limit of simultaneously logged in devices has been reached.",ALREADY_OWNED:"You already own this product.",CANCELLED:"Process was cancelled by user.",CONFIGURATION_ERROR:"Error in remote system.",ISSUE_NOT_FOUND:"The requested content could not be found.",INSUFFICIENT_SPACE:"The storage on your device is not sufficient.",INVALID_CREDENTIALS:"Please check your username and password.",NETWORK:"Please check your internet connection.",NO_ISSUES_FOUND:"The requested content could not be found.",NOT_FOUND:"The requested content could not be found.",NOT_LOGGED_IN:"You are not logged in.",PAYMENT_REQUIRED:"Access denied.",RESOURCE_NOT_FOUND:"The requested resource could not be found.",UNKNOWN:"An unknown error occurred.",UNKNOWN_OFFER:"The requested offer could not be found.",UNKNOWN_PRODUCT:"The requested product could not be found.",UNKNOWN_VENDOR:"Vendor is unknown.",VALIDATION_FAILED:"The purchase could not be validated.",PULL_TO_REFRESH_PULL:"Pull to refresh",PULL_TO_REFRESH_RELEASE:"Release to refresh",LIST_NO_RESULTS:"There is no content matching the filter criteria.",LIST_ERROR:"Error loading data. %s",LIST_ERROR_BUTTON:"Reload",LIST_ACTION_SELECT_ALL:"Select all",LIST_ACTION_UNSELECT_ALL:"Un-select all",LIST_ACTION_CONFIRM:"Confirm",LIST_ACTION_RESET:"Reset",LIST_ACTION_NEXT:"Next Page Set",LIST_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRY_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRIES_TOGGLE_EXPAND:"Show %u more",LIST_GROUPED_ENTRY_TOGGLE_COLLAPSE:"Show %u less",LIST_GROUPED_ENTRIES_TOGGLE_COLLAPSE:"Show %u less",BOOKMARK_TITLE:"%s",MENU_ITEM:"%s",BOOKMARK_CREATION_DATE_MESSAGE:"Added on %s",BOOKMARK_PAGE_LABEL_MESSAGE:"Page %s",BOOKMARK_NO_RESULTS:"There are no bookmarks.",BOOKMARK_ERROR:"Error loading bookmarks",BOOKMARK_ERROR_BUTTON:"Reload",BOOKMARK_DELETE_TITLE:"Delete bookmark",BOOKMARK_DELETE_MESSAGE:"Are you sure you want to delete this bookmark?",BOOKMARK_DELETE_MESSAGE_WITH_TITLE:'Are you sure you want to delete the bookmark for "%s"?',BOOKMARK_DELETE_All_TITLE:"Delete bookmarks",BOOKMARK_DELETE_ALL_MESSAGE:"Are you sure you want to delete all bookmarks?",BOOKMARK_DELETE_ALL_OF_ISSUE_MESSAGE:'Are you sure you want to delete all bookmarks for the issue "%s"?',BOOKMARK_DELETE_CONFIRM:"Delete",BOOKMARK_DELETE_CANCEL:"Cancel",ERROR_DELETE_BOOKMARK:"This bookmark could not deleted. %s",ERROR_DELETE_BOOKMARK_WITH_TITLE:'The bookmark for "%2$s" could not deleted. %1$s',ERROR_DELETE_ALL_BOOKMARKS:"Not all bookmarks could be deleted. %s",ERROR_ADD_BOOKMARK:"Bookmark could not be created. %1$s",ERROR_SHARE:"Content could not be shared.",PUBLICATION_COMPLETION_TITLE:"Complete your collection",PUBLICATION_COMPLETION_PROMOTION_TEXT:"Get all %1$s back issues and save over %2$s<br>Was %3$s Now %4$s",PUBLICATION_COMPLETION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_TITLE:"%s",SUBSCRIPTION_ISSUES_PROMOTION:"%1$s issues for %2$s.",SUBSCRIPTION_ISSUES_ADDITIONAL_PROMOTION:"%1$s issues for the price of %2$s.<br>Was %3$s Now %4$s.",SUBSCRIPTION_ACTION_PURCHASE:"Purchase for %s",SUBSCRIPTION_ACTION_PURCHASE_UNAVAILABLE:"Price not available",SUBSCRIPTION_PRICE:"
1%s",SUBSCRIPTION_PRICE_FINAL:"Then %1$s / %2$s %3$s",SUBSCRIPTION_PRICE_INTRODUCTORY:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_PRICE_TRIAL:"Free for %1$s %2$s",SUBSCRIPTION_PRICE_DISCOUNT:"Try %1$s x %2$s %3$s for %4$s",SUBSCRIPTION_DESCRIPTION:"%s",MONTH:"Month",MONTHS:"Months",YEAR:"Year",YEARS:"Years",WEEK:"Week",WEEKS:"Weeks",DAY:"Day",DAYS:"Days",RESTORE_PURCHASES:"Restore purchases",RESTORE_PURCHASES_CONFIRM:"Do you want to restore your purchases?",RESTORE_PURCHASES_SUCCEEDED:"Purchases restored successfully",RESTORE_PURCHASES_FAILED:"Restoring purchased failed",VIEW_ERROR:"Error loading data. %s",VIEW_ERROR_BUTTON:"Reload",ERROR_PRODUCT:"Product data could not be loaded. %s",ERROR_DEEP_LINK_LANDING:"Shared issue could not be opened. %s",APP_MENU_XML_ERROR_MESSAGE:"An Error occured loading app_menu.xml: %s (message: %s)",APP_MENU_XML_ERROR_TITLE:"Error loading app menu",APP_MENU_XML_ERROR_CONFIRM:"Ok",TOC_TITLE:"TABLE OF CONTENTS",DOWNLOAD_PDF_SINGLE_LEFT:"Download left page",DOWNLOAD_PDF_SINGLE_RIGHT:"Download right page",DOWNLOAD_PDF_SINGLE:"Download single page",DOWNLOAD_PDF_FULL:"Download full PDF"}),[Q.O.APP_BAR]:[{id:"default",scrollBehavior:X.K.NONE,logo:!0},{id:"back",scrollBehavior:X.K.NONE,logo:!0,leftButton:ne.F.BACK}],[Q.O.NAVIGATION]:[],[Q.O.DOWNLOAD_OPTIONS]:{}},J="config";function se(ge){return(0,p.vy)(ge,(0,p.on)(u,ve=>ve),(0,p.on)(o,(ve,Fe)=>{const We=JSON.parse(JSON.stringify(Fe));return Object.keys(We).forEach(ze=>{"object"==typeof We[ze]&&!Array.isArray(We[ze])&&(We[ze]=(0,ue.A)((0,ue.A)({},ve[ze]),Fe[ze]))}),We}))}var De=d(6354),Ce=d(5964),ce=d(8890),_=d(8179);const R=(0,p.UX)(J);function w(ge,ve,Fe,We){return ze=>ze.select(R).pipe((0,De.T)(bt=>bt[Q.O.VIEW]),(0,Ce.p)(bt=>bt.length>0),(0,ce.ZE)(),(0,De.T)(bt=>bt.filter(Ke=>!Ke.globalData)),(0,De.T)(bt=>bt.filter(Ke=>!Ke.condition||(0,_.ru)(Ke,ve,Fe,We))),(0,De.T)(bt=>bt.find(Ke=>Ke.name===ge)),ce.TM,(0,ce.ZE)())}function B(ge,ve,Fe,We){return ze=>ze.select(R).pipe((0,De.T)(bt=>bt[Q.O.VIEW]),(0,Ce.p)(bt=>bt.length>0),(0,De.T)(bt=>bt.filter(Ke=>!Ke.globalData)),(0,De.T)(bt=>bt.filter(Ke=>!Ke.condition||(0,_.ru)(Ke,ve,Fe,We))),(0,De.T)(bt=>bt.find(Ke=>!!Ke.postView&&Ke.postView.postType===ge)||bt.find(Ke=>!!Ke.postView&&!Ke.postView.postType)||null))}function z(ge){return ve=>ve.select(R).pipe((0,De.T)(Fe=>Fe[ge]),(0,ce.ZE)(),ce.TM)}function oe(ge,ve){return Fe=>z(ge)(Fe).pipe((0,De.T)(We=>We.find(ze=>ze.id===ve)),(0,ce.ZE)())}function V(ge){return oe(Q.O.APP_BAR,ge)}function k(ge){return oe(Q.O.NAVIGATION,ge)}function K(){return ge=>ge.select(R).pipe((0,De.T)(ve=>ve[Q.O.VIEW]),(0,Ce.p)(ve=>ve.length>0),(0,ce.ZE)(),(0,De.T)(ve=>ve.find(Fe=>Fe.globalData)),(0,ce.ZE)())}},2628:(le,E,d)=>{"use strict";d.d(E,{Uo:()=>u,hc:()=>o,w9:()=>v});var p=d(4745);const u=(0,p.VP)("[IssueStates] Load IssueStates",(0,p.xk)()),o=(0,p.VP)("[IssueStates] Load IssueStates Success",(0,p.xk)()),v=(0,p.VP)("[IssueStates] Load IssueStates Failure",(0,p.xk)())},4579:(le,E,d)=>{"use strict";d.d(E,{$:()=>v,F:()=>x});var p=d(9379),u=d(4745),o=d(2628);const v="issueStates",O=(0,u.vy)({},(0,u.on)(o.Uo,U=>U),(0,u.on)(o.hc,(U,Q)=>(0,p.A)((0,p.A)({},U),Q)),(0,u.on)(o.w9,(U,Q)=>U));function x(U,Q){return O(U,Q)}},8251:(le,E,d)=>{"use strict";d.d(E,{B:()=>ne,v:()=>X});var p=d(4745),u=d(3953),o=d(467),v=d(177),O=d(9724),x=d(3178);function U(te){te&&"function"==typeof te.unsubscribe&&te.unsubscribe()}const Q=new Map;let re=!1;function be(te,$){Q.set(te,$),re||(re=!0,requestAnimationFrame(()=>{var J;re=!1;const se=null===(J=Q.entries().next().value)||void 0===J?void 0:J[1];for(const[De,Ce]of Q.entries())Ce.markForCheck();Q.clear(),null==se||se.detectChanges()}))}function ue(te,$,J,se,De,Ce,ce){return te.subscribe({next:_=>(0,o.A)(function*(){se&&(J.nativeElement.isConnected||ce)&&(yield se(_),be(J,$))})(),error(..._){De&&(J.nativeElement.isConnected||ce)&&(De(..._),be(J,$))},complete(..._){Ce&&(J.nativeElement.isConnected||ce)&&(Ce(..._),be(J,$))}})}let X=(()=>{var te;class ${constructor(){this.subscriptions=[],this.namedSubscriptions={},this.changeDetectorRef=(0,u.WQX)(u.gRc),this.elementRef=(0,u.WQX)(u.aKT),this.platformId=(0,u.WQX)(u.Agw)}subscribe(se,De=x.lQ,Ce,ce,_){const R=(0,v.Vy)(this.platformId);_?(this.namedSubscriptions[_]&&this.unsubscribe(_),this.namedSubscriptions[_]=ue(se,this.changeDetectorRef,this.elementRef,De,Ce,ce,R)):this.subscriptions.push(ue(se,this.changeDetectorRef,this.elementRef,De,Ce,ce,R))}unsubscribe(se){U(this.namedSubscriptions[se]),delete this.namedSubscriptions[se]}hasSubscription(se){return!!this.namedSubscriptions[se]}unsubscribeAll(){for(const se in this.namedSubscriptions)this.namedSubscriptions[se]&&U(this.namedSubscriptions[se]);this.subscriptions.forEach(se=>U(se))}
1await(se,De){var Ce=this;return(0,o.A)(function*(){return new Promise((ce,_)=>Ce.subscribe((0,O.H)(se),ce,_,x.lQ,De))})()}ngOnDestroy(){this.unsubscribeAll()}}return(te=$).\u0275fac=function(se){return new(se||te)},te.\u0275prov=u.jDH({token:te,factory:te.\u0275fac}),$})(),ne=(()=>{var te;class $ extends X{constructor(){super(...arguments),this.changeDetectorRef=(0,u.WQX)(u.gRc),this.store=(0,u.WQX)(p.il)}dispatch(se){let De,Ce;const ce=new Promise((_,R)=>{De=_,Ce=R});return se.promise={resolve:_=>{De(_),setTimeout(()=>this.changeDetectorRef.detectChanges())},reject:_=>{Ce(_),setTimeout(()=>this.changeDetectorRef.detectChanges())}},this.store.dispatch(se),ce}select(se,De=x.lQ,Ce,ce,_){return this.subscribe(se.call(void 0,this.store),De,Ce,ce,_)}selectMultiple(se,De,Ce,ce,_,R){const w=se.call(void 0,De.map(B=>B.call(void 0,this.store)));return this.subscribe(w,Ce,ce,_,R)}snapshot(se){let De;return De="function"==typeof se?se(this.store.source.value):se.value,De&&JSON.parse(JSON.stringify(De))}}return(te=$).\u0275fac=(()=>{let J;return function(De){return(J||(J=u.xGo(te)))(De||te)}})(),te.\u0275prov=u.jDH({token:te,factory:te.\u0275fac}),$})()},4004:(le,E,d)=>{"use strict";d.d(E,{$W:()=>u,Kx:()=>v,Nb:()=>O,qF:()=>o});var p=d(4745);const u=(0,p.VP)("[Prices] Load Prices",(0,p.xk)()),o=(0,p.VP)("[Prices] Load Price",(0,p.xk)()),v=(0,p.VP)("[Prices] Load Prices Success",(0,p.xk)()),O=(0,p.VP)("[Prices] Load Pries Failure",(0,p.xk)())},2099:(le,E,d)=>{"use strict";d.d(E,{E:()=>v,F:()=>x});var p=d(9379),u=d(4745),o=d(4004);const v="prices",O=(0,u.vy)({},(0,u.on)(o.$W,U=>U),(0,u.on)(o.Kx,(U,Q)=>(0,p.A)((0,p.A)({},U),Q.prices)),(0,u.on)(o.Nb,(U,Q)=>{const re=(0,p.A)({},U);return Q.productIds.forEach(be=>{be in re||(re[be]=Q.error)}),re}));function x(U,Q){return O(U,Q)}},4622:(le,E,d)=>{"use strict";d.d(E,{TX:()=>U,Zt:()=>x,aJ:()=>O});var p=d(4745),u=d(6354),o=d(8890),v=d(2099);const O=(0,p.UX)(v.E);function x(Q){return re=>re.select(O).pipe((0,u.T)(be=>be[Q]),o.q3,(0,o.ZE)())}function U(Q){return re=>re.select(O).pipe((0,u.T)(be=>Q.map(ue=>be[ue])),(0,o.os)())}},610:(le,E,d)=>{"use strict";d.d(E,{$3:()=>u,Du:()=>v,k4:()=>o});var p=d(4745);const u=(0,p.VP)("[Tracking] Track View",(0,p.xk)()),o=(0,p.VP)("[Tracking] Track Action",(0,p.xk)()),v=(0,p.VP)("[Tracking] Track Purchase",(0,p.xk)())},8909:(le,E,d)=>{"use strict";d.d(E,{M:()=>v});var p=d(467),u=d(3953),o=d(7900);let v=(()=>{var O;class x{constructor(){this.elementRef=(0,u.WQX)(u.aKT),this.translateService=(0,u.WQX)(o.c),this.renderer=(0,u.WQX)(u.sFG),this.storefrontTranslate=(0,u.hFB)(void 0),this.localStorefrontTranslate=(0,u.uuI)(()=>this.storefrontTranslate()),this.storefrontTranslateArgs=(0,u.hFB)([]),this.localStorefrontTranslateArgs=(0,u.uuI)(()=>this.storefrontTranslateArgs()),(0,u.QZP)(()=>{const Q=this.localStorefrontTranslateArgs();Array.isArray(Q)&&1===Q.length&&void 0===Q[0]&&this.localStorefrontTranslateArgs.set([]),this.applyTranslation(this.localStorefrontTranslate(),this.localStorefrontTranslateArgs())})}ngAfterViewInit(){var Q=this;return(0,p.A)(function*(){yield Q.translateService.inited,Q.applyTranslation()})()}applyTranslation(Q,re){if(!this.localStorefrontTranslate()&&this.localStorefrontTranslate.set(Q),re&&(!this.localStorefrontTranslateArgs()||0===this.localStorefrontTranslateArgs().length)&&this.localStorefrontTranslateArgs.set(re),!this.localStorefrontTranslate())return;const be=this.elementRef.nativeElement;let ue;const X=this.localStorefrontTranslateArgs();Array.isArray(X)?ue=X.map(te=>this.translate(te)):X&&(ue=Object.entries(X).reduce((te,[$,J])=>(te[$]=this.translate(J),te),{}));const ne=this.translateService.translate({text:this.localStorefrontTranslate(),args:ue});this.renderer.setProperty(be,"innerHTML",ne)}translate(Q){return this.translateService.translate(Q)}}return(O=x).\u0275fac=function(Q){return new(Q||O)},O.\u0275dir=u.FsC({type:O,selectors:[["","storefrontTranslate",""]],inputs:{storefrontTranslate:[1,"storefrontTranslate"],storefrontTranslateArgs:[1,"storefrontTranslateArgs"]}}),x})()},6483:(le,E,d)=>{"use strict";d.d(E,{h:()=>v});var p=d(177),u=d(6067),o=d(3953);let v=(()=>{var O;class x{}return(O=x).\u0275fac=function(Q){return new(Q||O)},O.\u0275mod=o.$C({type:O}),O.\u0275inj=o.G2t({providers:[u.D],imports:[p.MD]}),x})()},6067:(le,E,d)=>{"use strict";d.d(E,{D:()=>ue});var p=d(467),u=d(3953),o=d(4745),v=d(1985),O=d(4843),x=d(7031),U=d(6843),Q=d(6697),re=d(3785);let ue=(()=>{var X;
1class ne{constructor(){this.store=(0,u.WQX)(o.il)}transform($,...J){return new v.c(se=>{(0,x.jZ)(U.O.MESSAGE)(this.store).subscribe(De=>{const Ce=J.map(ce=>De[ce]||ce);se.next(De[$]?(0,re.vsprintf)(De[$],Ce):$)})})}translate($){var J=this;return(0,p.A)(function*(){const se="string"==typeof $,De=se?$:$.text,Ce=!se&&$.args||[];return new Promise(ce=>{J.transform(De,...Ce).pipe((0,Q.s)(1)).subscribe(ce)})})()}getMessages(){return(0,O._)((0,x.jZ)(U.O.MESSAGE)(this.store))}}return(X=ne).\u0275fac=function($){return new($||X)},X.\u0275pipe=u.EJ8({name:"storefrontTranslate",type:X,pure:!0,standalone:!1}),X.\u0275prov=u.jDH({token:X,factory:X.\u0275fac}),ne})()},7900:(le,E,d)=>{"use strict";d.d(E,{c:()=>U});var p=d(3953),u=d(4745),o=d(7031),v=d(6843),O=d(3785);let U=(()=>{var Q;class re{constructor(){this.store=(0,p.WQX)(u.il),this.inited=new Promise(ue=>this.resolve=ue),this.init()}init(){(0,o.jZ)(v.O.MESSAGE)(this.store).subscribe(ue=>{this.messages=ue,this.resolve()})}translate(ue){if(!ue||"object"!=typeof ue)return this.messages&&this.messages[ue]||ue;let X;Array.isArray(ue.args)?X=ue.args.map(te=>"string"==typeof te?this.translate(null==te?void 0:te.toString()):te):ue.args&&(X=Object.entries(ue.args).reduce((te,[$,J])=>(te[$]=this.translate(J.toString()),te),{}));try{return(0,O.vsprintf)(this.translate(ue.text),X)}catch(te){var ne;return null!==(ne=ue.text)&&void 0!==ne?ne:""}}}return(Q=re).\u0275fac=function(ue){return new(ue||Q)},Q.\u0275prov=p.jDH({token:Q,factory:Q.\u0275fac,providedIn:"root"}),re})()},3178:(le,E,d)=>{"use strict";d.d(E,{Am:()=>te,Bq:()=>$,JK:()=>ce,KF:()=>B,KM:()=>z,LS:()=>ue,Q_:()=>_,a:()=>be,dg:()=>w,hI:()=>J,lQ:()=>O,lg:()=>Q,sF:()=>X,wR:()=>ne,xQ:()=>re});var p=d(467),u=d(4404),v=d(9360);function O(){}const x=(0,v.zk)(),U=(0,v.YE)();function Q(oe,V){return x.setTimeout(oe,V)}function re(oe,V){return x.setInterval(oe,V)}function be(oe,V){const k=Zone.current.scheduleMacroTask(oe,O,{},O,O);return V().finally(()=>{k.invoke()})}function ue(oe,V){if(V)try{const k=new URL(oe);for(const K in V)V[K]?k.searchParams.set(K,V[K]):k.searchParams.delete(K);return k.toString()}catch(k){}return oe}function X(oe,V){try{return new URL(oe).searchParams.get(V)}catch(k){return null}}function ne(oe){return new Promise(V=>setTimeout(V,oe))}function te(oe){return oe.filter((V,k,K)=>oe.indexOf(V)===k)}function $(oe){return[].concat(...oe)}function J(oe){return se.apply(this,arguments)}function se(){return(se=(0,p.A)(function*(oe,V={}){let k;try{k=yield De(oe,V)}catch(K){if(x.isUniversal){if(K&&parseFloat(K)>=500&&parseFloat(K)<600)try{k=yield De(oe,V)}catch(ge){throw new Error("failed to fetch resource "+oe)}}else k=new Promise((ge,ve)=>{const Fe=new XMLHttpRequest;Fe.addEventListener("load",()=>{Fe.status>=400&&ve({message:""+Fe.status});try{ge(JSON.parse(Fe.responseText))}catch(We){ve({message:"No JSON"})}}),Fe.addEventListener("error",()=>{ve({message:"Unknown Error"})}),Fe.open(V&&V.method||"GET",oe),Fe.send()})}return k})).apply(this,arguments)}function De(oe,V){return Ce.apply(this,arguments)}function Ce(){return(Ce=(0,p.A)(function*(oe,V){return fetch(oe,V).then(k=>{if(k.ok)return k.json();throw new Error(k.status.toString())})})).apply(this,arguments)}function ce(){return x.navigator.userLanguage||x.navigator.languages&&x.navigator.languages.length&&x.navigator.languages[0]||x.navigator.language||"en"}function _(oe,V){return(null==oe?void 0:oe.toLowerCase())===(null==V?void 0:V.toLowerCase())}function w(oe,V=x||U){const k=new URL(V.location.href);return oe===u.DisplayMode.MODAL&&"true"===k.searchParams.get("closeOnModal")||!!k.searchParams.get("productId")}function B(oe,V,k=!1){const K=oe.length;if(0===K)return[];if(V<0||V>=K)return;const ge=[];if(ge.push(oe[V]),k){const ve=ze=>(ze+oe.length)%oe.length;let Fe=1,We=!0;for(;ge.length<oe.length;)ge.push(oe[ve(V+Fe*(We?1:-1))]),We||Fe++,We=!We}else{let ve=1,Fe=-1;for(;ve>0||Fe<0;)ve>0&&(V+ve>=K?ve=-1:(ge.push(oe[V+ve]),ve++)),Fe<0&&(Fe<-V?Fe=1:(ge.push(oe[V+Fe]),Fe--))}return ge}function z(oe){return oe.length>1&&"callback"===oe[oe.length-1].path&&"oauth"===oe[oe.length-2].path}},3749:(le,E,d)=>{"use strict";d.d(E,{Fl:()=>be,nV:()=>U,rv:()=>O,uk:()=>x});var p=d(467),u=d(2962),o=d(5706);function O(z){return"object"==typeof z?z[Object.keys(z).find(V=>(0,u.zC)(V))||Object.keys(z)[0]]:z}function x(z,oe,V="div",k){if(!function v(z){return z&&z.component}(z))return z;if(oe){var K,ge;const ve=null!==(K=z.leanDomComponent)&&void 0!==K?K:null===(ge=z.leanDomComponentVariant)||void 0===ge?void 0:ge.call(z,V);if(ve)return ve;console.warn("LeanDom feature enabled but lean dom component not available for ".concat(k,", falling back to old component."))}return z.component}function U(z,oe,V){return Q.apply(this,arguments)}function Q(){return(Q=(0,p.A)(function*(z,oe,V){const k={};return yield Promise.all([ne(k,z,oe,V),$(k,z,oe,V),se(k,z,oe,V),ue(k,z,oe,V),Ce(k,z,oe,V),w(k,z,oe,V),_(k,z,oe,V)]),"search-result"in V&&(k["search-result"]=V["search-result"]),"bookmark"in V&&(k.bookmark=V.bookmark),k})).apply(this,arguments)}const re=[/\$context\.([a-zA-Z_]\w+)/g,/\$context\['(.+?)']/g,/\$context\[\\"(.+?)\\"]/g];function be(z,oe){if(!oe)return;const V=JSON.stringify(z);for(const k of re){const K=V.matchAll(k);for(const[ge,ve]of K)oe.add(ve)}}function ue(z,oe,V,k){return X.apply(this,arguments)}function X(){return(X=(0,p.A)(function*(z,oe,V,k){if("publication"in k)z.publication=k.publication;else if(V.publication){let K=V.publication;if(Array.isArray(K)&&(K=K[0]),K){try{z.publication=yield oe.getPublication(K,!0)}
1catch(ge){z.publication=yield oe.getPublicationFromCache(K)}return}}})).apply(this,arguments)}function ne(z,oe,V,k){return te.apply(this,arguments)}function te(){return(te=(0,p.A)(function*(z,oe,V,k){if("issue"in k)z.issue=k.issue;else if(V.issue){let K=V.issue;if(Array.isArray(K)&&(K=K[0]),K){try{z.issue=yield oe.getIssue(K,!0)}catch(ge){z.issue=yield oe.getIssueFromCache(K).catch(()=>null)}return}}})).apply(this,arguments)}function $(z,oe,V,k){return J.apply(this,arguments)}function J(){return(J=(0,p.A)(function*(z,oe,V,k){if("content"in k)z.content=k.content;else if(V.content){let K=V.content;if(Array.isArray(K)&&(K=K[0]),K)return void(z.content=yield oe.getCatalogContent(K,!0))}})).apply(this,arguments)}function se(z,oe,V,k){return De.apply(this,arguments)}function De(){return(De=(0,p.A)(function*(z,oe,V,k){if("post"in k)z.post=k.post;else if(V.post){let K=V.post;if(Array.isArray(K)&&(K=K[0]),K)return z.post=yield oe.getCatalogContent(K,!0),void(z.post&&!(0,o.mF)(z.post)&&console.warn("post from context / url is not referring to an actual post. Did you want to pass a different ID?"))}})).apply(this,arguments)}function Ce(z,oe,V,k){return ce.apply(this,arguments)}function ce(){return(ce=(0,p.A)(function*(z,oe,V,k){if("category"in k)z.category=k.category;else if(V.category){let K=V.category;if(Array.isArray(K)&&(K=K[0]),K){try{z.category=yield oe.getCategory(K,!0)}catch(ge){z.category=yield oe.getCategory(K,!1)}return}}})).apply(this,arguments)}function _(z,oe,V,k){return R.apply(this,arguments)}function R(){return(R=(0,p.A)(function*(z,oe,V,k){if("taxonomy"in k)z.taxonomy=k.taxonomy;else if(V.taxonomy){let K=V.taxonomy;if(Array.isArray(K)&&(K=K[0]),K){try{z.taxonomy=yield oe.getTaxonomy(K,null,!0,null)}catch(ge){z.taxonomy=yield oe.getTaxonomy(K,null,!1,null)}return}}})).apply(this,arguments)}function w(z,oe,V,k){return B.apply(this,arguments)}function B(){return(B=(0,p.A)(function*(z,oe,V,k){if("collection"in k)z.collection=k.collection;else if(V.collection){let K=V.collection;if(Array.isArray(K)&&(K=K[0]),K){try{z.collection=yield oe.getCollection(K,!0)}catch(ge){z.collection=yield oe.getCollection(K,!1)}return}}})).apply(this,arguments)}},4675:(le,E,d)=>{"use strict";function u(o){const v={};if(null!=o&&o.aria)for(const[O,x]of Object.entries(o.aria))v["aria-".concat(O.replace("aria-",""))]=x;if(null!=o&&o.data)for(const[O,x]of Object.entries(o.data))v["data-".concat(O.replace("data-",""))]=x;if(null!=o&&o.html)for(const[O,x]of Object.entries(o.html))v[O]=x;return v}d.d(E,{g:()=>u}),d(6843)},5706:(le,E,d)=>{"use strict";d.d(E,{G4:()=>v,Ig:()=>X,QO:()=>x,ak:()=>re,ci:()=>ue,mF:()=>o,n7:()=>Q,o$:()=>U,tr:()=>be,xl:()=>O});var p=d(4404);function o(ne){return(null==ne?void 0:ne.contentType)===p.CatalogContentType.POST}function v(ne){return(null==ne?void 0:ne.contentType)===p.CatalogContentType.BUNDLE}function O(ne){return(null==ne?void 0:ne.contentType)===p.CatalogContentType.ISSUE}function x(ne){return ne.contentType===p.CatalogContentType.POST}function U(ne){return ne.contentType===p.CatalogContentType.BUNDLE}function Q(ne){return ne.contentType===p.CatalogContentType.ISSUE}function re(ne){return ne.type===p.PublicationProductType.BACK_ISSUE_COMPLETION}function be(ne){return Q(ne)?ne.issue:x(ne)?ne.post:U(ne)?ne.bundle:void 0}function ue(ne,te){return{includeBlocks:!!ne.customBlocks,includeHtml:!0,includeResources:!0,seoMetadata:!te.isApp}}function X(ne){return ne.contents.map(te=>{var $;return null!==($=te.post)&&void 0!==$?$:te.content})}},4333:(le,E,d)=>{"use strict";d.d(E,{BH:()=>ue,FK:()=>ne,ch:()=>te,fs:()=>X,pd:()=>re,vY:()=>be});var p=d(9379),u=d(4404),v=d(7374),O=d.n(v),x=d(6155);const U="YYYY-MM-DD",Q=(0,p.A)({},u.AppSubscriptionAdditionalBackIssueUnlocksType);function re($,J=new Date){let se=O()(J);switch($.unit){case u.AppSubscriptionAdditionalBackIssueUnlocksType.YEAR:se=se.subtract($.count,"year");break;case u.AppSubscriptionAdditionalBackIssueUnlocksType.MONTH:se=se.subtract($.count,"month");break;case u.AppSubscriptionAdditionalBackIssueUnlocksType.WEEK:se=se.subtract($.count,"week");break;case u.AppSubscriptionAdditionalBackIssueUnlocksType.DAY:se=se.subtract($.count,"day")}return se.format(U)}function be($,J=new Date){let se=O()(J);switch($){case u.AppSubscriptionDuration.ONE_YEAR:se=se.subtract(1,"year");break;case u.AppSubscriptionDuration.SIX_MONTHS:se=se.subtract(6,"month");break;case u.AppSubscriptionDuration.THREE_MONTHS:se=se.subtract(3,"month");break;case u.AppSubscriptionDuration.TWO_MONTHS:se=se.subtract(2,"month");break;case u.AppSubscriptionDuration.ONE_MONTH:se=se.subtract(1,"month");break;case u.AppSubscriptionDuration.TWO_WEEKS:se=se.subtract(2,"week");break;case u.AppSubscriptionDuration.SEVEN_DAYS:se=se.subtract(7,"day")}return se.format(U)}function ue($,J=new Date){return O()(J).subtract($.count,$.unit.toLowerCase()).format(U)}function X($){switch($){case u.AppSubscriptionDuration.ONE_YEAR:return{unit:Q.YEAR,count:1};case u.AppSubscriptionDuration.SIX_MONTHS:return{unit:Q.MONTH,count:6};case u.AppSubscriptionDuration.THREE_MONTHS:return{unit:Q.MONTH,count:3};case u.AppSubscriptionDuration.TWO_MONTHS:return{unit:Q.MONTH,count:2};case u.AppSubscriptionDuration.ONE_MONTH:return{unit:Q.MONTH,count:1};case u.AppSubscriptionDuration.TWO_WEEKS:return{unit:Q.WEEK,count:2};case u.AppSubscriptionDuration.SEVEN_DAYS:return{unit:Q.DAY,count:7}}}function ne($,J){if($===J)return 0;const se=Object.keys(u.AppSubscriptionDuration);return se.indexOf($)-se.indexOf(J)>0?-1:1}function te($){const J=(0,x.qg)($);let De,se=0;return Object.keys(J).forEach(Ce=>{switch(Ce){case"years":return void(se+=360*J.years);case"months":return void(se+=30*J.months);case"weeks":return void(se+=7*J.weeks);case"days":return void(se+=J.days)}}),De=se%360==0?{count:se/360,unit:Q.YEAR}:se%30==0?{count:se/30,unit:Q.MONTH}:se%7==0?{count:se/7,unit:Q.WEEK}:{count:se,unit:Q.DAY},De}},7467:(le,E,d)=>{"use strict";d.d(E,{Y:()=>o});var p=function(v){return v.Android="android",v.iOS="ios",v.Unknown="unknown",v.WindowsPhone="Windows Phone",v}(p||{}),u=function(v){return v.Linux="linux",v.MacOS="mac_os",v.Unix="unix",v.Unknown="unknown",v.Windows="windows",v}(u||{});const o=(()=>{let v=null;return()=>{if(v)return v;const O=navigator.userAgent||navigator.vendor||window.opera||void 0,x=()=>[/(Android)(.+)(Mobile)/i,/BlackBerry/i,/iPhone|iPod/i,/Opera Mini/i,/IEMobile/i].some(w=>O.match(w)),U=()=>/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))
1/.test(O.toLowerCase()),Q=()=>!x()&&!U(),re=Q(),be=x(),ue=U(),X=()=>{if(x())return/windows phone/i.test(O)?p.WindowsPhone:/android/i.test(O)?p.Android:/iPad|iPhone|iPod/.test(O)&&!window.MSStream?p.iOS:p.Unknown},ne=()=>{if(Q())return-1!==O.indexOf("Win")?u.Windows:-1!==O.indexOf("Mac")?u.MacOS:-1!==O.indexOf("X11")?u.Unix:-1!==O.indexOf("Linux")?u.Linux:u.Unknown},te=()=>{var R;return null!==(R=X())&&void 0!==R?R:ne()},$=X(),J=te()===p.Android,se=te()===p.iOS||te()===u.MacOS,De=te()===p.Unknown,Ce=ne(),ce=te()===u.Windows,_=te()===u.Linux||te()===u.Unix;return v={isDesktop:re,desktopOS:Ce,isWindowsDesktop:ce,isLinuxOrUnixDesktop:_,isMobile:be,mobileOS:$,isAndroidDevice:J,isAppleDevice:se,isUnknownMobileDevice:De,isTablet:ue,userAgent:O},v}})()},2962:(le,E,d)=>{"use strict";function p(Q,re=0){const be=Q.getBoundingClientRect();return"none"!==getComputedStyle(Q).display&&be.bottom>-re&&be.right>-re&&be.left<window.innerWidth+re&&be.top<window.innerHeight+re}function u(Q){return"phone"===Q&&window.innerWidth<533||"tablet"===Q&&window.innerWidth>=533||window.matchMedia(Q).matches}function o(Q){const re=Q.touches&&Q.touches[0]||Q.changedTouches&&Q.changedTouches[0]||Q;return{x:re.screenX,y:re.screenY,timestamp:Date.now()}}function v(Q,re=!1){return re?Q.scrollWidth-(Q.scrollLeft+Q.clientWidth):Q.scrollHeight-(Q.scrollTop+Q.clientHeight)}function O(Q,re,be){const ue=X=>{Q.removeEventListener(re,ue),be(X)};Q.addEventListener(re,ue)}function x(Q,re=document){re.$modalOutlet||(re.$modalOutlet=re.querySelector('router-outlet[name="modal"]'));const be=re.$modalOutlet,ue=be&&be.nextElementSibling;return ue&&ue.contains(Q)?"modal":"primary"}d.d(E,{IL:()=>v,L$:()=>O,cH:()=>p,k:()=>o,kO:()=>x,zC:()=>u})},8091:(le,E,d)=>{"use strict";d.d(E,{$C:()=>O,E2:()=>o,F0:()=>U,_3:()=>x,xn:()=>v});var p=d(4404);function o(Q,re){return re.getMetadata().connection_state===p.CONNECTION_STATE.OFFLINE&&(Q.code=p.ERROR_CODE.NETWORK),Q.code}function v(Q){return Q&&Q.status&&"403"===Q.status?p.ERROR_CODE.INVALID_CREDENTIALS:p.ERROR_CODE.NETWORK}function O(Q,re){const be=[Q];return re&&(be.push(re.name),be.push(re.id)),be}function x(Q,re){const be=[Q];return re&&be.push(re.title),be}function U(Q,re){const be=[Q];return re&&be.push(re.name),be}},7598:(le,E,d)=>{"use strict";d.d(E,{YT:()=>p,Zm:()=>o,aU:()=>u});const p="storefront-invalidation",u="storefront-lifecycle",o="dom-scroll-bottom"},7439:(le,E,d)=>{"use strict";d.d(E,{M:()=>Tr});var p=d(9379),u=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],o=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,
115,7472,16,621,2467,541,1507,4938,6,4191],O="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c8a\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7cd\ua7d0\ua7d1\ua7d3\ua7d5-\ua7dc\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc",x={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},U="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Q={5:U,"5module":U+" export import",6:U+" const class extends export import super"},re=/^in(stanceof)?$/,be=new RegExp("["+O+"]"),ue=new RegExp("["+O+"\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0897-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0
1a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65]");function X(h,S){for(var me=65536,Pe=0;Pe<S.length;Pe+=2){if((me+=S[Pe])>h)return!1;if((me+=S[Pe+1])>=h)return!0}return!1}function ne(h,S){return h<65?36===h:h<91||(h<97?95===h:h<123||(h<=65535?h>=170&&be.test(String.fromCharCode(h)):!1!==S&&X(h,o)))}function te(h,S){return h<48?36===h:h<58||!(h<65)&&(h<91||(h<97?95===h:h<123||(h<=65535?h>=170&&ue.test(String.fromCharCode(h)):!1!==S&&(X(h,o)||X(h,u)))))}var $=function(S,me){void 0===me&&(me={}),this.label=S,this.keyword=me.keyword,this.beforeExpr=!!me.beforeExpr,this.startsExpr=!!me.startsExpr,this.isLoop=!!me.isLoop,this.isAssign=!!me.isAssign,this.prefix=!!me.prefix,this.postfix=!!me.postfix,this.binop=me.binop||null,this.updateContext=null};function J(h,S){return new $(h,{beforeExpr:!0,binop:S})}var se={beforeExpr:!0},De={startsExpr:!0},Ce={};function ce(h,S){return void 0===S&&(S={}),S.keyword=h,Ce[h]=new $(h,S)}var _={num:new $("num",De),regexp:new $("regexp",De),string:new $("string",De),name:new $("name",De),privateId:new $("privateId",De),eof:new $("eof"),bracketL:new $("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new $("]"),braceL:new $("{",{beforeExpr:!0,startsExpr:!0}),braceR:new $("}"),parenL:new $("(",{beforeExpr:!0,startsExpr:!0}),parenR:new $(")"),comma:new $(",",se),semi:new $(";
1",se),colon:new $(":",se),dot:new $("."),question:new $("?",se),questionDot:new $("?."),arrow:new $("=>",se),template:new $("template"),invalidTemplate:new $("invalidTemplate"),ellipsis:new $("...",se),backQuote:new $("`",De),dollarBraceL:new $("${",{beforeExpr:!0,startsExpr:!0}),eq:new $("=",{beforeExpr:!0,isAssign:!0}),assign:new $("_=",{beforeExpr:!0,isAssign:!0}),incDec:new $("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new $("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:J("||",1),logicalAND:J("&&",2),bitwiseOR:J("|",3),bitwiseXOR:J("^",4),bitwiseAND:J("&",5),equality:J("==/!=/===/!==",6),relational:J("</>/<=/>=",7),bitShift:J("<</>>/>>>",8),plusMin:new $("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:J("%",10),star:J("*",10),slash:J("/",10),starstar:new $("**",{beforeExpr:!0}),coalesce:J("??",1),_break:ce("break"),_case:ce("case",se),_catch:ce("catch"),_continue:ce("continue"),_debugger:ce("debugger"),_default:ce("default",se),_do:ce("do",{isLoop:!0,beforeExpr:!0}),_else:ce("else",se),_finally:ce("finally"),_for:ce("for",{isLoop:!0}),_function:ce("function",De),_if:ce("if"),_return:ce("return",se),_switch:ce("switch"),_throw:ce("throw",se),_try:ce("try"),_var:ce("var"),_const:ce("const"),_while:ce("while",{isLoop:!0}),_with:ce("with"),_new:ce("new",{beforeExpr:!0,startsExpr:!0}),_this:ce("this",De),_super:ce("super",De),_class:ce("class",De),_extends:ce("extends",se),_export:ce("export"),_import:ce("import",De),_null:ce("null",De),_true:ce("true",De),_false:ce("false",De),_in:ce("in",{beforeExpr:!0,binop:7}),_instanceof:ce("instanceof",{beforeExpr:!0,binop:7}),_typeof:ce("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ce("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ce("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,w=new RegExp(R.source,"g");function B(h){return 10===h||13===h||8232===h||8233===h}function z(h,S,me){void 0===me&&(me=h.length);for(var Pe=S;Pe<me;Pe++){var rt=h.charCodeAt(Pe);if(B(rt))return Pe<me-1&&13===rt&&10===h.charCodeAt(Pe+1)?Pe+2:Pe+1}return-1}var oe=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,V=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,k=Object.prototype,K=k.hasOwnProperty,ge=k.toString,ve=Object.hasOwn||function(h,S){return K.call(h,S)},Fe=Array.isArray||function(h){return"[object Array]"===ge.call(h)},We=Object.create(null);function ze(h){return We[h]||(We[h]=new RegExp("^(?:"+h.replace(/ /g,"|")+")$"))}function bt(h){return h<=65535?String.fromCharCode(h):(h-=65536,String.fromCharCode(55296+(h>>10),56320+(1023&h)))}var Ke=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Me=function(S,me){this.line=S,this.column=me};Me.prototype.offset=function(S){return new Me(this.line,this.column+S)};var tt=function(S,me,Pe){this.start=me,this.end=Pe,null!==S.sourceFile&&(this.source=S.sourceFile)};function He(h,S){for(var me=1,Pe=0;;){var rt=z(h,Pe,S);if(rt<0)return new Me(me,S-Pe);++me,Pe=rt}}var ot={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},je=!1;function P(h,S){return 2|(h?4:0)|(S?8:0)}var Dt=function(S,me,Pe){this.options=S=function fe(h){var S={};for(var me in ot)S[me]=h&&ve(h,me)?h[me]:ot[me];if("latest"===S.ecmaVersion?S.ecmaVersion=1e8:null==S.ecmaVersion?(!je&&"object"==typeof console&&console.warn&&(je=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),S.ecmaVersion=11):S.ecmaVersion>=2015&&(S.ecmaVersion-=2009),null==S.allowReserved&&(S.allowReserved=S.ecmaVersion<5),(!h||null==h.allowHashBang)&&(S.allowHashBang=S.ecmaVersion>=14),Fe(S.onToken)){var Pe=S.onToken;S.onToken=function(rt){return Pe.push(rt)}}return Fe(S.onComment)&&(S.onComment=function D(h,S){return function(me,Pe,rt,$t,Wt,Fn){var Vn={type:me?"Block":"Line",value:Pe,start:rt,end:$t};h.locations&&(Vn.loc=new tt(this,Wt,Fn)),h.ranges&&(Vn.range=[rt,$t]),S.push(Vn)}}(S,S.onComment)),S}(S),this.sourceFile=S.sourceFile,this.keywords=ze(Q[S.ecmaVersion>=6?6:"module"===S.sourceType?"5module":5]);var rt="";!0!==S.allowReserved&&(rt=x[S.ecmaVersion>=6?6:5===S.ecmaVersion?5:3],"module"===S.sourceType&&(rt+=" await")),this.reservedWords=ze(rt);var $t=(rt?rt+" ":"")+x.strict;this.reservedWordsStrict=ze($t),this.reservedWordsStrictBind=ze($t+" "+x.str
vendor: 7,434 bytes, line 1
1ictBind),this.input=String(me),this.containsEsc=!1,Pe?(this.pos=Pe,this.lineStart=this.input.lastIndexOf("\n",Pe-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(R).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=_.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===S.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&S.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},en={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Dt.prototype.parse=function(){var S=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(S)},en.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},en.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},en.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},en.canAwait.get=function(){for(var h=this.scopeStack.length-1;h>=0;h--){var S=this.scopeStack[h];if(S.inClassFieldInit||256&S.flags)return!1;if(2&S.flags)return(4&S.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},en.allowSuper.get=function(){var h=this.currentThisScope();return(64&h.flags)>0||h.inClassFieldInit||this.options.allowSuperOutsideMethod},en.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},en.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},en.allowNewDotTarget.get=function(){var h=this.currentThisScope();return(258&h.flags)>0||h.inClassFieldInit},en.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},Dt.extend=function(){for(var S=[],me=arguments.length;me--;)S[me]=arguments[me];for(var Pe=this,rt=0;rt<S.length;rt++)Pe=S[rt](Pe);return Pe},Dt.parse=function(S,me){return new this(me,S).parse()},Dt.parseExpressionAt=function(S,me,Pe){var rt=new this(Pe,S,me);return rt.nextToken(),rt.parseExpression()},Dt.tokenizer=function(S,me){return new this(me,S)},Object.defineProperties(Dt.prototype,en);var Dn=Dt.prototype,Pn=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Dn.strictDirective=function(h){if(this.options.ecmaVersion<5)return!1;for(;;){V.lastIndex=h,h+=V.exec(this.input)[0].length;var S=Pn.exec(this.input.slice(h));if(!S)return!1;if("use strict"===(S[1]||S[2])){V.lastIndex=h+S[0].length;var me=V.exec(this.input),Pe=me.index+me[0].length,rt=this.input.charAt(Pe);return";"===rt||"}"===rt||R.test(me[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(rt)||"!"===rt&&"="===this.input.charAt(Pe+1))}V.lastIndex=h+=S[0].length,h+=V.exec(this.input)[0].length,";"===this.input[h]&&h++}},Dn.eat=function(h){return this.type===h&&(this.next(),!0)},Dn.isContextual=function(h){return this.type===_.name&&this.value===h&&!this.containsEsc},Dn.eatContextual=function(h){return!!this.isContextual(h)&&(this.next(),!0)},Dn.expectContextual=function(h){this.eatContextual(h)||this.unexpected()},Dn.canInsertSemicolon=function(){return this.type===_.eof||this.type===_.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))},Dn.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Dn.semicolon=function(){!this.eat(_.semi)&&!this.insertSemicolon()&&this.unexpected()},Dn.afterTrailingComma=function(h,S){if(this.type===h)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),S||this.next(),!0},Dn.expect=function(h){this.eat(h)||this.unexpected()},Dn.unexpected=function(h){this.raise(null!=h?h:this.start,"Unexpected token")};var $n=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Dn.checkPatternErrors=function(h,S){if(h){h.trailingComma>-1&&this.raiseRecoverable(h.trailingComma,"Comma is not permitted after the rest element");var me=S?h.parenthesizedAssign:h.parenthesizedBind;me>-1&&this.raiseRecoverable(me,S?"Assigning to rvalue":"Parenthesized pattern")}},Dn.checkExpressionErrors=function(h,S){if(!h)return!1;var me=h.shorthandAssign,Pe=h.doubleProto;if(!S)return me>=0||Pe>=0;me>=0&&this.raise(me,"Shorthand property assignments are valid only in destructuring patterns"),Pe>=0&&this.raiseRecoverable(Pe,"Redefinition of __proto__ property")},Dn.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},Dn.isSimpleAssignTarget=function(h){return"ParenthesizedExpression"===h.type?this.isSimpleAssignTarget(h.expression):"Identifier"===h.type||"MemberExpression"===h.type};var In=Dt.prototype;In.parseTopLevel=function(h){var S=Object.create(null);for(h.body||(h.body=[]);this.type!==_.eof;){var me=this.parseStatement(null,!0,S);h.body.push(me)}if(this.inModule)for(var Pe=0,rt=Object.keys(this.undefinedExports);Pe<rt.length;Pe+=1){var $t=rt[Pe];this.raiseRecoverable(this.undefinedExports[$t].start,"Export '"+$t+"' is not defined")}return this.adaptDirectivePrologue(h.body),this.next(),h.sourceType=this.options.sourceType,this.finishNode(h,"Program")};var xt={kind:"loop"},qe={kind:"switch"};In.isLet=function(h){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;V.lastIndex=this.pos;var S=V.exec(this.input),me=this.pos+S[0].length,Pe=this.input.charCodeAt(me);if(91===Pe||92===Pe)return!0;if(h)return!1;if(123===Pe||Pe>55295&&Pe<56320)return!0;if(ne(Pe,!0)){for(var rt=me+1;te(Pe=this.input.charCodeAt(rt),!0);)++rt;if(92===Pe||Pe>55295&&Pe<56320)return!0;var $t=this.input.slice(me,rt);if(!re.test($t))return!0}return!1},In.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;V.lastIndex=this.pos;var me,h=V.exec(this.input),S=this.pos+h[0].length;return!(R.test(this.input.slice(this.pos,S))||"function"!==this.input.slice(S,S+8)||S+8!==this.input.length&&(te(me=this.input.charCodeAt(S+8))||me>55295&&me<56320))},In.parseStatement=function(h,S,me){var $t,Pe=this.type,rt=this.startNode();switch(this.isLet(h)&&(Pe=_._var,$t="let"),Pe){case _._break:case _._continue:return this.parseBreakContinueStatement(rt,Pe.keyword);case _._debugger:return this.parseDebuggerStatement(rt);case _._do:return this.parseDoStatement(rt);case _._for:return this.parseForStatement(rt);case _._function:return h&&(this.strict||"if"!==h&&"label"!==h)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(rt,!1,!h);case _._class:return h&&this.unexpected(),this.parseClass(rt,!0);case _._if:return this.parseIfStatement(rt);
vendor: 4,545 bytes, line 1
1case _._return:return this.parseReturnStatement(rt);case _._switch:return this.parseSwitchStatement(rt);case _._throw:return this.parseThrowStatement(rt);case _._try:return this.parseTryStatement(rt);case _._const:case _._var:return $t=$t||this.value,h&&"var"!==$t&&this.unexpected(),this.parseVarStatement(rt,$t);case _._while:return this.parseWhileStatement(rt);case _._with:return this.parseWithStatement(rt);case _.braceL:return this.parseBlock(!0,rt);case _.semi:return this.parseEmptyStatement(rt);case _._export:case _._import:if(this.options.ecmaVersion>10&&Pe===_._import){V.lastIndex=this.pos;var Wt=V.exec(this.input),Vn=this.input.charCodeAt(this.pos+Wt[0].length);if(40===Vn||46===Vn)return this.parseExpressionStatement(rt,this.parseExpression())}return this.options.allowImportExportEverywhere||(S||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),Pe===_._import?this.parseImport(rt):this.parseExport(rt,me);default:if(this.isAsyncFunction())return h&&this.unexpected(),this.next(),this.parseFunctionStatement(rt,!0,!h);var Be=this.value,Ot=this.parseExpression();return Pe===_.name&&"Identifier"===Ot.type&&this.eat(_.colon)?this.parseLabeledStatement(rt,Be,Ot,h):this.parseExpressionStatement(rt,Ot)}},In.parseBreakContinueStatement=function(h,S){var me="break"===S;this.next(),this.eat(_.semi)||this.insertSemicolon()?h.label=null:this.type!==_.name?this.unexpected():(h.label=this.parseIdent(),this.semicolon());for(var Pe=0;Pe<this.labels.length;++Pe){var rt=this.labels[Pe];if((null==h.label||rt.name===h.label.name)&&(null!=rt.kind&&(me||"loop"===rt.kind)||h.label&&me))break}return Pe===this.labels.length&&this.raise(h.start,"Unsyntactic "+S),this.finishNode(h,me?"BreakStatement":"ContinueStatement")},In.parseDebuggerStatement=function(h){return this.next(),this.semicolon(),this.finishNode(h,"DebuggerStatement")},In.parseDoStatement=function(h){return this.next(),this.labels.push(xt),h.body=this.parseStatement("do"),this.labels.pop(),this.expect(_._while),h.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(_.semi):this.semicolon(),this.finishNode(h,"DoWhileStatement")},In.parseForStatement=function(h){this.next();var S=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(xt),this.enterScope(0),this.expect(_.parenL),this.type===_.semi)return S>-1&&this.unexpected(S),this.parseFor(h,null);var me=this.isLet();if(this.type===_._var||this.type===_._const||me){var Pe=this.startNode(),rt=me?"let":this.value;return this.next(),this.parseVar(Pe,!0,rt),this.finishNode(Pe,"VariableDeclaration"),(this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===Pe.declarations.length?(this.options.ecmaVersion>=9&&(this.type===_._in?S>-1&&this.unexpected(S):h.await=S>-1),this.parseForIn(h,Pe)):(S>-1&&this.unexpected(S),this.parseFor(h,Pe))}var $t=this.isContextual("let"),Wt=!1,Fn=this.containsEsc,Vn=new $n,Be=this.start,Ot=S>-1?this.parseExprSubscripts(Vn,"await"):this.parseExpression(!0,Vn);return this.type===_._in||(Wt=this.options.ecmaVersion>=6&&this.isContextual("of"))?(S>-1?(this.type===_._in&&this.unexpected(S),h.await=!0):Wt&&this.options.ecmaVersion>=8&&(Ot.start!==Be||Fn||"Identifier"!==Ot.type||"async"!==Ot.name?this.options.ecmaVersion>=9&&(h.await=!1):this.unexpected()),$t&&Wt&&this.raise(Ot.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Ot,!1,Vn),this.checkLValPattern(Ot),this.parseForIn(h,Ot)):(this.checkExpressionErrors(Vn,!0),S>-1&&this.unexpected(S),this.parseFor(h,Ot))},In.parseFunctionStatement=function(h,S,me){return this.next(),this.parseFunction(h,Ie|(me?0:Ve),!1,S)},In.parseIfStatement=function(h){return this.next(),h.test=this.parseParenExpression(),h.consequent=this.parseStatement("if"),h.alternate=this.eat(_._else)?this.parseStatement("if"):null,this.finishNode(h,"IfStatement")},In.parseReturnStatement=function(h){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(_.semi)||this.insertSemicolon()?h.argument=null:(h.argument=this.parseExpression(),this.semicolon()),this.finishNode(h,"ReturnStatement")},In.parseSwitchStatement=function(h){this.next(),h.discriminant=this.parseParenExpression(),h.cases=[],this.expect(_.braceL),this.labels.push(qe),this.enterScope(0);for(var S,me=!1;this.type!==_.braceR;
vendor: 19,594 bytes, line 1
1)if(this.type===_._case||this.type===_._default){var Pe=this.type===_._case;S&&this.finishNode(S,"SwitchCase"),h.cases.push(S=this.startNode()),S.consequent=[],this.next(),Pe?S.test=this.parseExpression():(me&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),me=!0,S.test=null),this.expect(_.colon)}else S||this.unexpected(),S.consequent.push(this.parseStatement(null));return this.exitScope(),S&&this.finishNode(S,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(h,"SwitchStatement")},In.parseThrowStatement=function(h){return this.next(),R.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),h.argument=this.parseExpression(),this.semicolon(),this.finishNode(h,"ThrowStatement")};var Kt=[];In.parseCatchClauseParam=function(){var h=this.parseBindingAtom(),S="Identifier"===h.type;return this.enterScope(S?32:0),this.checkLValPattern(h,S?4:2),this.expect(_.parenR),h},In.parseTryStatement=function(h){if(this.next(),h.block=this.parseBlock(),h.handler=null,this.type===_._catch){var S=this.startNode();this.next(),this.eat(_.parenL)?S.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),S.param=null,this.enterScope(0)),S.body=this.parseBlock(!1),this.exitScope(),h.handler=this.finishNode(S,"CatchClause")}return h.finalizer=this.eat(_._finally)?this.parseBlock():null,!h.handler&&!h.finalizer&&this.raise(h.start,"Missing catch or finally clause"),this.finishNode(h,"TryStatement")},In.parseVarStatement=function(h,S,me){return this.next(),this.parseVar(h,!1,S,me),this.semicolon(),this.finishNode(h,"VariableDeclaration")},In.parseWhileStatement=function(h){return this.next(),h.test=this.parseParenExpression(),this.labels.push(xt),h.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(h,"WhileStatement")},In.parseWithStatement=function(h){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),h.object=this.parseParenExpression(),h.body=this.parseStatement("with"),this.finishNode(h,"WithStatement")},In.parseEmptyStatement=function(h){return this.next(),this.finishNode(h,"EmptyStatement")},In.parseLabeledStatement=function(h,S,me,Pe){for(var rt=0,$t=this.labels;rt<$t.length;rt+=1)$t[rt].name===S&&this.raise(me.start,"Label '"+S+"' is already declared");for(var Fn=this.type.isLoop?"loop":this.type===_._switch?"switch":null,Vn=this.labels.length-1;Vn>=0;Vn--){var Be=this.labels[Vn];if(Be.statementStart!==h.start)break;Be.statementStart=this.start,Be.kind=Fn}return this.labels.push({name:S,kind:Fn,statementStart:this.start}),h.body=this.parseStatement(Pe?-1===Pe.indexOf("label")?Pe+"label":Pe:"label"),this.labels.pop(),h.label=me,this.finishNode(h,"LabeledStatement")},In.parseExpressionStatement=function(h,S){return h.expression=S,this.semicolon(),this.finishNode(h,"ExpressionStatement")},In.parseBlock=function(h,S,me){for(void 0===h&&(h=!0),void 0===S&&(S=this.startNode()),S.body=[],this.expect(_.braceL),h&&this.enterScope(0);this.type!==_.braceR;){var Pe=this.parseStatement(null);S.body.push(Pe)}return me&&(this.strict=!1),this.next(),h&&this.exitScope(),this.finishNode(S,"BlockStatement")},In.parseFor=function(h,S){return h.init=S,this.expect(_.semi),h.test=this.type===_.semi?null:this.parseExpression(),this.expect(_.semi),h.update=this.type===_.parenR?null:this.parseExpression(),this.expect(_.parenR),h.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(h,"ForStatement")},In.parseForIn=function(h,S){var me=this.type===_._in;return this.next(),"VariableDeclaration"===S.type&&null!=S.declarations[0].init&&(!me||this.options.ecmaVersion<8||this.strict||"var"!==S.kind||"Identifier"!==S.declarations[0].id.type)&&this.raise(S.start,(me?"for-in":"for-of")+" loop variable declaration may not have an initializer"),h.left=S,h.right=me?this.parseExpression():this.parseMaybeAssign(),this.expect(_.parenR),h.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(h,me?"ForInStatement":"ForOfStatement")},In.parseVar=function(h,S,me,Pe){for(h.declarations=[],h.kind=me;;){var rt=this.startNode();if(this.parseVarId(rt,me),this.eat(_.eq)?rt.init=this.parseMaybeAssign(S):Pe||"const"!==me||this.type===_._in||this.options.ecmaVersion>=6&&this.isContextual("of")?Pe||"Identifier"===rt.id.type||S&&(this.type===_._in||this.isContextual("of"))?rt.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),h.declarations.push(this.finishNode(rt,"VariableDeclarator")),!this.eat(_.comma))break}return h},In.parseVarId=function(h,S){h.id=this.parseBindingAtom(),this.checkLValPattern(h.id,"var"===S?1:2,!1)};var Ie=1,Ve=2;function Rt(h,S){var me=S.key.name,Pe=h[me],rt="true";return"MethodDefinition"===S.type&&("get"===S.kind||"set"===S.kind)&&(rt=(S.static?"s":"i")+S.kind),"iget"===Pe&&"iset"===rt||"iset"===Pe&&"iget"===rt||"sget"===Pe&&"sset"===rt||"sset"===Pe&&"sget"===rt?(h[me]="true",!1):!!Pe||(h[me]=rt,!1)}function zt(h,S){var Pe=h.key;return!h.computed&&("Identifier"===Pe.type&&Pe.name===S||"Literal"===Pe.type&&Pe.value===S)}In.parseFunction=function(h,S,me,Pe,rt){this.initFunction(h),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Pe)&&(this.type===_.star&&S&Ve&&this.unexpected(),h.generator=this.eat(_.star)),this.options.ecmaVersion>=8&&(h.async=!!Pe),S&Ie&&(h.id=4&S&&this.type!==_.name?null:this.parseIdent(),h.id&&!(S&Ve)&&this.checkLValSimple(h.id,this.strict||h.generator||h.async?this.treatFunctionsAsVar?1:2:3));var $t=this.yieldPos,Wt=this.awaitPos,Fn=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(P(h.async,h.generator)),S&Ie||(h.id=this.type===_.name?this.parseIdent():null),this.parseFunctionParams(h),this.parseFunctionBody(h,me,!1,rt),this.yieldPos=$t,this.awaitPos=Wt,this.awaitIdentPos=Fn,this.finishNode(h,S&Ie?"FunctionDeclaration":"FunctionExpression")},In.parseFunctionParams=function(h){this.expect(_.parenL),h.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},In.parseClass=function(h,S){this.next();var me=this.strict;this.strict=!0,this.parseClassId(h,S),this.parseClassSuper(h);var Pe=this.enterClassBody(),rt=this.startNode(),$t=!1;for(rt.body=[],this.expect(_.braceL);this.type!==_.braceR;){var Wt=this.parseClassElement(null!==h.superClass);Wt&&(rt.body.push(Wt),"MethodDefinition"===Wt.type&&"constructor"===Wt.kind?($t&&this.raiseRecoverable(Wt.start,"Duplicate constructor in the same class"),$t=!0):Wt.key&&"PrivateIdentifier"===Wt.key.type&&Rt(Pe,Wt)&&this.raiseRecoverable(Wt.key.start,"Identifier '#"+Wt.key.name+"' has already been declared"))}return this.strict=me,this.next(),h.body=this.finishNode(rt,"ClassBody"),this.exitClassBody(),this.finishNode(h,S?"ClassDeclaration":"ClassExpression")},In.parseClassElement=function(h){if(this.eat(_.semi))return null;var S=this.options.ecmaVersion,me=this.startNode(),Pe="",rt=!1,$t=!1,Wt="method",Fn=!1;if(this.eatContextual("static")){if(S>=13&&this.eat(_.braceL))return this.parseClassStaticBlock(me),me;this.isClassElementNameStart()||this.type===_.star?Fn=!0:Pe="static"}if(me.static=Fn,!Pe&&S>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==_.star||this.canInsertSemicolon()?Pe="async":$t=!0),!Pe&&(S>=9||!$t)&&this.eat(_.star)&&(rt=!0),!Pe&&!$t&&!rt){var Vn=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Wt=Vn:Pe=Vn)}if(Pe?(me.computed=!1,me.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),me.key.name=Pe,this.finishNode(me.key,"Identifier")):this.parseClassElementName(me),S<13||this.type===_.parenL||"method"!==Wt||rt||$t){var Be=!me.static&&zt(me,"constructor"),Ot=Be&&h;Be&&"method"!==Wt&&this.raise(me.key.start,"Constructor can't have get/set modifier"),me.kind=Be?"constructor":Wt,this.parseClassMethod(me,rt,$t,Ot)}else this.parseClassField(me);return me},In.isClassElementNameStart=function(){return this.type===_.name||this.type===_.privateId||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword},In.parseClassElementName=function(h){this.type===_.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),h.computed=!1,h.key=this.parsePrivateIdent()):this.parsePropertyName(h)},In.parseClassMethod=function(h,S,me,Pe){var rt=h.key;"constructor"===h.kind?(S&&this.raise(rt.start,"Constructor can't be a generator"),me&&this.raise(rt.start,"Constructor can't be an async method")):h.static&&zt(h,"prototype")&&this.raise(rt.start,"Classes may not have a static property named prototype");var $t=h.value=this.parseMethod(S,me,Pe);return"get"===h.kind&&0!==$t.params.length&&this.raiseRecoverable($t.start,"getter should have no params"),"set"===h.kind&&1!==$t.params.length&&this.raiseRecoverable($t.start,"setter should have exactly one param"),"set"===h.kind&&"RestElement"===$t.params[0].type&&this.raiseRecoverable($t.params[0].start,"Setter cannot use rest params"),this.finishNode(h,"MethodDefinition")},In.parseClassField=function(h){if(zt(h,"constructor")?this.raise(h.key.start,"Classes can't have a field named 'constructor'"):h.static&&zt(h,"prototype")&&this.raise(h.key.start,"Classes can't have a static field named 'prototype'"),this.eat(_.eq)){var S=this.currentThisScope(),me=S.inClassFieldInit;S.inClassFieldInit=!0,h.value=this.parseMaybeAssign(),S.inClassFieldInit=me}else h.value=null;return this.semicolon(),this.finishNode(h,"PropertyDefinition")},In.parseClassStaticBlock=function(h){h.body=[];var S=this.labels;for(this.labels=[],this.enterScope(320);this.type!==_.braceR;){var me=this.parseStatement(null);h.body.push(me)}return this.next(),this.exitScope(),this.labels=S,this.finishNode(h,"StaticBlock")},In.parseClassId=function(h,S){this.type===_.name?(h.id=this.parseIdent(),S&&this.checkLValSimple(h.id,2,!1)):(!0===S&&this.unexpected(),h.id=null)},In.parseClassSuper=function(h){h.superClass=this.eat(_._extends)?this.parseExprSubscripts(null,!1):null},In.enterClassBody=function(){var h={declared:Object.create(null),used:[]};return this.privateNameStack.push(h),h.declared},In.exitClassBody=function(){var h=this.privateNameStack.pop(),S=h.declared,me=h.used;if(this.options.checkPrivateFields)for(var Pe=this.privateNameStack.length,rt=0===Pe?null:this.privateNameStack[Pe-1],$t=0;$t<me.length;++$t){var Wt=me[$t];ve(S,Wt.name)||(rt?rt.used.push(Wt):this.raiseRecoverable(Wt.start,"Private field '#"+Wt.name+"' must be declared in an enclosing class"))}},In.parseExportAllDeclaration=function(h,S){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(h.exported=this.parseModuleExportName(),this.checkExport(S,h.exported,this.lastTokStart)):h.exported=null),this.expectContextual("from"),this.type!==_.string&&this.unexpected(),h.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(h.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(h,"ExportAllDeclaration")},In.parseExport=function(h,S){if(this.next(),this.eat(_.star))return this.parseExportAllDeclaration(h,S);if(this.eat(_._default))return this.checkExport(S,"default",this.lastTokStart),h.declaration=this.parseExportDefaultDeclaration(),this.finishNode(h,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())h.declaration=this.parseExportDeclaration(h),"VariableDeclaration"===h.declaration.type?this.checkVariableExport(S,h.declaration.declarations):this.checkExport(S,h.declaration.id,h.declaration.id.start),h.specifiers=[],h.source=null;else{if(h.declaration=null,h.specifiers=this.parseExportSpecifiers(S),this.eatContextual("from"))this.type!==_.string&&this.unexpected(),h.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(h.attributes=this.parseWithClause());else{for(var me=0,Pe=h.specifiers;me<Pe.length;me+=1){var rt=Pe[me];this.checkUnreserved(rt.local),this.checkLocalExport(rt.local),"Literal"===rt.local.type&&this.raise(rt.local.start,"A string literal cannot be used as an exported binding without `from`.")}h.source=null}this.semicolon()}return this.finishNode(h,"ExportNamedDeclaration")},In.parseExportDeclaration=function(h){return this.parseStatement(null)},In.parseExportDefaultDeclaration=function(){var h;if(this.type===_._function||(h=this.isAsyncFunction())){var S=this.startNode();return this.next(),h&&this.next(),this.parseFunction(S,4|Ie,!1,h)}if(this.type===_._class){var me=this.startNode();return this.parseClass(me,"nullableID")}var Pe=this.parseMaybeAssign();return this.semicolon(),Pe},In.checkExport=function(h,S,me){h&&("string"!=typeof S&&(S="Identifier"===S.type?S.name:S.value),ve(h,S)&&this.raiseRecoverable(me,"Duplicate export '"+S+"'"),h[S]=!0)},In.checkPatternExport=function(h,S){var me=S.type;if("Identifier"===me)this.checkExport(h,S,S.start);else if("ObjectPattern"===me)for(var Pe=0,rt=S.properties;Pe<rt.length;Pe+=1)this.checkPatternExport(h,rt[Pe]);else if("ArrayPattern"===me)for(var Wt=0,Fn=S.elements;Wt<Fn.length;Wt+=1){var Vn=Fn[Wt];Vn&&this.checkPatternExport(h,Vn)}else"Property"===me?this.checkPatternExport(h,S.value):"AssignmentPattern"===me?this.checkPatternExport(h,S.left):"RestElement"===me&&this.checkPatternExport(h,S.argument)},In.checkVariableExport=function(h,S){if(h)for(var me=0,Pe=S;me<Pe.length;me+=1)this.checkPatternExport(h,Pe[me].id)},In.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},In.parseExportSpecifier=function(h){var S=this.startNode();return S.local=this.parseModuleExportName(),S.exported=this.eatContextual("as")?this.parseModuleExportName():S.local,this.checkExport(h,S.exported,S.exported.start),this.finishNode(S,"ExportSpecifier")},In.parseExportSpecifiers=function(h){var S=[],me=!0;for(this.expect(_.braceL);!this.eat(_.braceR);){if(me)me=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;S.push(this.parseExportSpecifier(h))}return S},In.parseImport=function(h){return this.next(),this.type===_.string?(h.specifiers=Kt,h.source=this.parseExprAtom()):(h.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),h.source=this.type===_.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(h.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(h,"ImportDeclaration")},In.parseImportSpecifier=function(){var h=this.startNode();return h.imported=this.parseModuleExportName(),this.eatContextual("as")?h.local=this.parseIdent():(this.checkUnreserved(h.imported),h.local=h.imported),this.checkLValSimple(h.local,2),this.finishNode(h,"ImportSpecifier")},In.parseImportDefaultSpecifier=function(){var h=this.startNode();return h.local=this.parseIdent(),this.checkLValSimple(h.local,2),this.finishNode(h,"ImportDefaultSpecifier")},In.parseImportNamespaceSpecifier=function(){var h=this.startNode();return this.next(),this.expectContextual("as"),h.local=this.parseIdent(),this.checkLValSimple(h.local,2),this.finishNode(h,"ImportNamespaceSpecifier")},In.parseImportSpecifiers=function(){var h=[],S=!0;if(this.type===_.name&&(h.push(this.parseImportDefaultSpecifier()),!this.eat(_.comma)))return h;if(this.type===_.star)return h.push(this.parseImportNamespaceSpecifier()),h;for(this.expect(_.braceL);!this.eat(_.braceR);){if(S)S=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;h.push(this.parseImportSpecifier())}return h},In.parseWithClause=function(){var h=[];if(!this.eat(_._with))return h;this.expect(_.braceL);for(var S={},me=!0;!this.eat(_.braceR);){if(me)me=!1;else if(this.expect(_.comma),this.afterTrailingComma(_.braceR))break;var Pe=this.parseImportAttribute(),rt="Identifier"===Pe.key.type?Pe.key.name:Pe.key.value;ve(S,rt)&&this.raiseRecoverable(Pe.key.start,"Duplicate attribute key '"+rt+"'"),S[rt]=!0,h.push(Pe)}return h},In.parseImportAttribute=function(){var h=this.startNode();return h.key=this.type===_.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(_.colon),this.type!==_.string&&this.unexpected(),h.value=this.parseExprAtom(),this.finishNode(h,"ImportAttribute")},In.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===_.string){var h=this.parseLiteral(this.value);return Ke.test(h.value)&&this.raise(h.start,"An export name cannot include a lone surrogate."),h}return this.parseIdent(!0)},In.adaptDirectivePrologue=function(h){for(var S=0;S<h.length&&this.isDirectiveCandidate(h[S]);++S)h[S].directive=h[S].expression.raw.slice(1,-1)},In.isDirectiveCandidate=function(h){return this.options.ecmaVersion>=5&&"ExpressionStatement"===h.type&&"Literal"===h.expression.type&&"string"==typeof h.expression.value&&('"'===this.input[h.start]||"'"===this.input[h.start])};var ft=Dt.prototype;ft.toAssignable=function(h,S,me){if(this.options.ecmaVersion>=6&&h)switch(h.type){case"Identifier":this.inAsync&&"await"===h.name&&this.raise(h.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":h.type="ObjectPattern",me&&this.checkPatternErrors(me,!0);for(var Pe=0,rt=h.properties;Pe<rt.length;Pe+=1){var $t=rt[Pe];this.toAssignable($t,S),"RestElement"===$t.type&&("ArrayPattern"===$t.argument.type||"ObjectPattern"===$t.argument.type)&&this.raise($t.argument.start,"Unexpected token")}break;case"Property":"init"!==h.kind&&this.raise(h.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(h.value,S);break;case"ArrayExpression":h.type="ArrayPattern",me&&this.checkPatternErrors(me,!0),this.toAssignableList(h.elements,S);break;case"SpreadElement":h.type="RestElement",this.toAssignable(h.argument,S),"AssignmentPattern"===h.argument.type&&this.raise(h.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==h.operator&&this.raise(h.left.end,"Only '=' operator can be used for specifying default value."),h.type="AssignmentPattern",delete h.operator,this.toAssignable(h.left,S);break;case"ParenthesizedExpression":this.toAssignable(h.expression,S,me);break;case"ChainExpression":this.raiseRecoverable(h.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!S)break;default:this.raise(h.start,"Assigning to rvalue")}else me&&this.checkPatternErrors(me,!0);return h},ft.toAssignableList=function(h,S){for(var me=h.length,Pe=0;Pe<me;Pe++){var rt=h[Pe];rt&&this.toAssignable(rt,S)}if(me){var $t=h[me-1];6===this.options.ecmaVersion&&S&&$t&&"RestElement"===$t.type&&"Identifier"!==$t.argument.type&&this.unexpected($t.argument.start)}return h},ft.parseSpread=function(h){var S=this.startNode();return this.next(),S.argument=this.parseMaybeAssign(!1,h),this.finishNode(S,"SpreadElement")},ft.parseRestBinding=function(){var h=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==_.name&&this.unexpected(),h.argument=this.parseBindingAtom(),this.finishNode(h,"RestElement")},ft.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case _.bracketL:var h=this.startNode();return this.next(),h.elements=this.parseBindingList(_.bracketR,!0,!0),this.finishNode(h,"ArrayPattern");case _.braceL:return this.parseObj(!0)}return this.parseIdent()},ft.parseBindingList=function(h,S,me,Pe){for(var rt=[],$t=!0;!this.eat(h);)if($t?$t=!1:this.expect(_.comma),S&&this.type===_.comma)rt.push(null);else{if(me&&this.afterTrailingComma(h))break;
vendor: 4,333 bytes, line 1
1if(this.type===_.ellipsis){var Wt=this.parseRestBinding();this.parseBindingListItem(Wt),rt.push(Wt),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(h);break}rt.push(this.parseAssignableListItem(Pe))}return rt},ft.parseAssignableListItem=function(h){var S=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(S),S},ft.parseBindingListItem=function(h){return h},ft.parseMaybeDefault=function(h,S,me){if(me=me||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(_.eq))return me;var Pe=this.startNodeAt(h,S);return Pe.left=me,Pe.right=this.parseMaybeAssign(),this.finishNode(Pe,"AssignmentPattern")},ft.checkLValSimple=function(h,S,me){void 0===S&&(S=0);var Pe=0!==S;switch(h.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(h.name)&&this.raiseRecoverable(h.start,(Pe?"Binding ":"Assigning to ")+h.name+" in strict mode"),Pe&&(2===S&&"let"===h.name&&this.raiseRecoverable(h.start,"let is disallowed as a lexically bound name"),me&&(ve(me,h.name)&&this.raiseRecoverable(h.start,"Argument name clash"),me[h.name]=!0),5!==S&&this.declareName(h.name,S,h.start));break;case"ChainExpression":this.raiseRecoverable(h.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":Pe&&this.raiseRecoverable(h.start,"Binding member expression");break;case"ParenthesizedExpression":return Pe&&this.raiseRecoverable(h.start,"Binding parenthesized expression"),this.checkLValSimple(h.expression,S,me);default:this.raise(h.start,(Pe?"Binding":"Assigning to")+" rvalue")}},ft.checkLValPattern=function(h,S,me){switch(void 0===S&&(S=0),h.type){case"ObjectPattern":for(var Pe=0,rt=h.properties;Pe<rt.length;Pe+=1)this.checkLValInnerPattern(rt[Pe],S,me);break;case"ArrayPattern":for(var Wt=0,Fn=h.elements;Wt<Fn.length;Wt+=1){var Vn=Fn[Wt];Vn&&this.checkLValInnerPattern(Vn,S,me)}break;default:this.checkLValSimple(h,S,me)}},ft.checkLValInnerPattern=function(h,S,me){switch(void 0===S&&(S=0),h.type){case"Property":this.checkLValInnerPattern(h.value,S,me);break;case"AssignmentPattern":this.checkLValPattern(h.left,S,me);break;case"RestElement":this.checkLValPattern(h.argument,S,me);break;default:this.checkLValPattern(h,S,me)}};var Ht=function(S,me,Pe,rt,$t){this.token=S,this.isExpr=!!me,this.preserveSpace=!!Pe,this.override=rt,this.generator=!!$t},Zt={b_stat:new Ht("{",!1),b_expr:new Ht("{",!0),b_tmpl:new Ht("${",!1),p_stat:new Ht("(",!1),p_expr:new Ht("(",!0),q_tmpl:new Ht("`",!0,!0,function(h){return h.tryReadTemplateToken()}),f_stat:new Ht("function",!1),f_expr:new Ht("function",!0),f_expr_gen:new Ht("function",!0,!1,null,!0),f_gen:new Ht("function",!1,!1,null,!0)},Vt=Dt.prototype;Vt.initialContext=function(){return[Zt.b_stat]},Vt.curContext=function(){return this.context[this.context.length-1]},Vt.braceIsBlock=function(h){var S=this.curContext();return S===Zt.f_expr||S===Zt.f_stat||(h!==_.colon||S!==Zt.b_stat&&S!==Zt.b_expr?h===_._return||h===_.name&&this.exprAllowed?R.test(this.input.slice(this.lastTokEnd,this.start)):h===_._else||h===_.semi||h===_.eof||h===_.parenR||h===_.arrow||(h===_.braceL?S===Zt.b_stat:h!==_._var&&h!==_._const&&h!==_.name&&!this.exprAllowed):!S.isExpr)},Vt.inGeneratorContext=function(){for(var h=this.context.length-1;h>=1;h--){var S=this.context[h];if("function"===S.token)return S.generator}return!1},Vt.updateContext=function(h){var S,me=this.type;me.keyword&&h===_.dot?this.exprAllowed=!1:(S=me.updateContext)?S.call(this,h):this.exprAllowed=me.beforeExpr},Vt.overrideContext=function(h){this.curContext()!==h&&(this.context[this.context.length-1]=h)},_.parenR.updateContext=_.braceR.updateContext=function(){if(1!==this.context.length){var h=this.context.pop();h===Zt.b_stat&&"function"===this.curContext().token&&(h=this.context.pop()),this.exprAllowed=!h.isExpr}else this.exprAllowed=!0},_.braceL.updateContext=function(h){this.context.push(this.braceIsBlock(h)?Zt.b_stat:Zt.b_expr),this.exprAllowed=!0},_.dollarBraceL.updateContext=function(){this.context.push(Zt.b_tmpl),this.exprAllowed=!0},_.parenL.updateContext=function(h){this.context.push(h===_._if||h===_._for||h===_._with||h===_._while?Zt.p_stat:Zt.p_expr),this.exprAllowed=!0},_.incDec.updateContext=function(){},_._function.updateContext=_._class.updateContext=function(h){!h.beforeE
vendor: 24,793 bytes, line 1
1xpr||h===_._else||h===_.semi&&this.curContext()!==Zt.p_stat||h===_._return&&R.test(this.input.slice(this.lastTokEnd,this.start))||(h===_.colon||h===_.braceL)&&this.curContext()===Zt.b_stat?this.context.push(Zt.f_stat):this.context.push(Zt.f_expr),this.exprAllowed=!1},_.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},_.backQuote.updateContext=function(){this.curContext()===Zt.q_tmpl?this.context.pop():this.context.push(Zt.q_tmpl),this.exprAllowed=!1},_.star.updateContext=function(h){if(h===_._function){var S=this.context.length-1;this.context[S]=this.context[S]===Zt.f_expr?Zt.f_expr_gen:Zt.f_gen}this.exprAllowed=!0},_.name.updateContext=function(h){var S=!1;this.options.ecmaVersion>=6&&h!==_.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(S=!0),this.exprAllowed=S};var gt=Dt.prototype;function dt(h){return"Identifier"===h.type||"ParenthesizedExpression"===h.type&&dt(h.expression)}function Ct(h){return"MemberExpression"===h.type&&"PrivateIdentifier"===h.property.type||"ChainExpression"===h.type&&Ct(h.expression)||"ParenthesizedExpression"===h.type&&Ct(h.expression)}gt.checkPropClash=function(h,S,me){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===h.type||this.options.ecmaVersion>=6&&(h.computed||h.method||h.shorthand))){var rt,Pe=h.key;switch(Pe.type){case"Identifier":rt=Pe.name;break;case"Literal":rt=String(Pe.value);break;default:return}var $t=h.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===rt&&"init"===$t&&(S.proto&&(me?me.doubleProto<0&&(me.doubleProto=Pe.start):this.raiseRecoverable(Pe.start,"Redefinition of __proto__ property")),S.proto=!0));var Wt=S[rt="$"+rt];Wt?("init"===$t?this.strict&&Wt.init||Wt.get||Wt.set:Wt.init||Wt[$t])&&this.raiseRecoverable(Pe.start,"Redefinition of property"):Wt=S[rt]={init:!1,get:!1,set:!1},Wt[$t]=!0}},gt.parseExpression=function(h,S){var me=this.start,Pe=this.startLoc,rt=this.parseMaybeAssign(h,S);if(this.type===_.comma){var $t=this.startNodeAt(me,Pe);for($t.expressions=[rt];this.eat(_.comma);)$t.expressions.push(this.parseMaybeAssign(h,S));return this.finishNode($t,"SequenceExpression")}return rt},gt.parseMaybeAssign=function(h,S,me){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(h);this.exprAllowed=!1}var Pe=!1,rt=-1,$t=-1,Wt=-1;S?(rt=S.parenthesizedAssign,$t=S.trailingComma,Wt=S.doubleProto,S.parenthesizedAssign=S.trailingComma=-1):(S=new $n,Pe=!0);var Fn=this.start,Vn=this.startLoc;(this.type===_.parenL||this.type===_.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===h);var Be=this.parseMaybeConditional(h,S);if(me&&(Be=me.call(this,Be,Fn,Vn)),this.type.isAssign){var Ot=this.startNodeAt(Fn,Vn);return Ot.operator=this.value,this.type===_.eq&&(Be=this.toAssignable(Be,!1,S)),Pe||(S.parenthesizedAssign=S.trailingComma=S.doubleProto=-1),S.shorthandAssign>=Be.start&&(S.shorthandAssign=-1),this.type===_.eq?this.checkLValPattern(Be):this.checkLValSimple(Be),Ot.left=Be,this.next(),Ot.right=this.parseMaybeAssign(h),Wt>-1&&(S.doubleProto=Wt),this.finishNode(Ot,"AssignmentExpression")}return Pe&&this.checkExpressionErrors(S,!0),rt>-1&&(S.parenthesizedAssign=rt),$t>-1&&(S.trailingComma=$t),Be},gt.parseMaybeConditional=function(h,S){var me=this.start,Pe=this.startLoc,rt=this.parseExprOps(h,S);if(this.checkExpressionErrors(S))return rt;if(this.eat(_.question)){var $t=this.startNodeAt(me,Pe);return $t.test=rt,$t.consequent=this.parseMaybeAssign(),this.expect(_.colon),$t.alternate=this.parseMaybeAssign(h),this.finishNode($t,"ConditionalExpression")}return rt},gt.parseExprOps=function(h,S){var me=this.start,Pe=this.startLoc,rt=this.parseMaybeUnary(S,!1,!1,h);return this.checkExpressionErrors(S)||rt.start===me&&"ArrowFunctionExpression"===rt.type?rt:this.parseExprOp(rt,me,Pe,-1,h)},gt.parseExprOp=function(h,S,me,Pe,rt){var $t=this.type.binop;if(null!=$t&&(!rt||this.type!==_._in)&&$t>Pe){var Wt=this.type===_.logicalOR||this.type===_.logicalAND,Fn=this.type===_.coalesce;Fn&&($t=_.logicalAND.binop);var Vn=this.value;this.next();var Be=this.start,Ot=this.startLoc,At=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,rt),Be,Ot,$t,rt),st=this.buildBinary(S,me,h,At,Vn,Wt||Fn);return(Wt&&this.type===_.coalesce||Fn&&(this.type===_.logicalOR||this.type===_.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(st,S,me,Pe,rt)}return h},gt.buildBinary=function(h,S,me,Pe,rt,$t){"PrivateIdentifier"===Pe.type&&this.raise(Pe.start,"Private identifier can only be left side of binary expression");var Wt=this.startNodeAt(h,S);return Wt.left=me,Wt.operator=rt,Wt.right=Pe,this.finishNode(Wt,$t?"LogicalExpression":"BinaryExpression")},gt.parseMaybeUnary=function(h,S,me,Pe){var Wt,rt=this.start,$t=this.startLoc;if(this.isContextual("await")&&this.canAwait)Wt=this.parseAwait(Pe),S=!0;else if(this.type.prefix){var Fn=this.startNode(),Vn=this.type===_.incDec;Fn.operator=this.value,Fn.prefix=!0,this.next(),Fn.argument=this.parseMaybeUnary(null,!0,Vn,Pe),this.checkExpressionErrors(h,!0),Vn?this.checkLValSimple(Fn.argument):this.strict&&"delete"===Fn.operator&&dt(Fn.argument)?this.raiseRecoverable(Fn.start,"Deleting local variable in strict mode"):"delete"===Fn.operator&&Ct(Fn.argument)?this.raiseRecoverable(Fn.start,"Private fields can not be deleted"):S=!0,Wt=this.finishNode(Fn,Vn?"UpdateExpression":"UnaryExpression")}else if(S||this.type!==_.privateId){if(Wt=this.parseExprSubscripts(h,Pe),this.checkExpressionErrors(h))return Wt;for(;this.type.postfix&&!this.canInsertSemicolon();){var Be=this.startNodeAt(rt,$t);Be.operator=this.value,Be.prefix=!1,Be.argument=Wt,this.checkLValSimple(Wt),this.next(),Wt=this.finishNode(Be,"UpdateExpression")}}else(Pe||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),Wt=this.parsePrivateIdent(),this.type!==_._in&&this.unexpected();return me||!this.eat(_.starstar)?Wt:S?void this.unexpected(this.lastTokStart):this.buildBinary(rt,$t,Wt,this.parseMaybeUnary(null,!1,!1,Pe),"**",!1)},gt.parseExprSubscripts=function(h,S){var me=this.start,Pe=this.startLoc,rt=this.parseExprAtom(h,S);if("ArrowFunctionExpression"===rt.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return rt;var $t=this.parseSubscripts(rt,me,Pe,!1,S);return h&&"MemberExpression"===$t.type&&(h.parenthesizedAssign>=$t.start&&(h.parenthesizedAssign=-1),h.parenthesizedBind>=$t.start&&(h.parenthesizedBind=-1),h.trailingComma>=$t.start&&(h.trailingComma=-1)),$t},gt.parseSubscripts=function(h,S,me,Pe,rt){for(var $t=this.options.ecmaVersion>=8&&"Identifier"===h.type&&"async"===h.name&&this.lastTokEnd===h.end&&!this.canInsertSemicolon()&&h.end-h.start==5&&this.potentialArrowAt===h.start,Wt=!1;;){var Fn=this.parseSubscript(h,S,me,Pe,$t,Wt,rt);if(Fn.optional&&(Wt=!0),Fn===h||"ArrowFunctionExpression"===Fn.type){if(Wt){var Vn=this.startNodeAt(S,me);Vn.expression=Fn,Fn=this.finishNode(Vn,"ChainExpression")}return Fn}h=Fn}},gt.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(_.arrow)},gt.parseSubscriptAsyncArrow=function(h,S,me,Pe){return this.parseArrowExpression(this.startNodeAt(h,S),me,!0,Pe)},gt.parseSubscript=function(h,S,me,Pe,rt,$t,Wt){var Fn=this.options.ecmaVersion>=11,Vn=Fn&&this.eat(_.questionDot);Pe&&Vn&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Be=this.eat(_.bracketL);if(Be||Vn&&this.type!==_.parenL&&this.type!==_.backQuote||this.eat(_.dot)){var Ot=this.startNodeAt(S,me);Ot.object=h,Be?(Ot.property=this.parseExpression(),this.expect(_.bracketR)):Ot.property=this.type===_.privateId&&"Super"!==h.type?this.parsePrivateIdent():this.parseIdent("never"!==this.options.allowReserved),Ot.computed=!!Be,Fn&&(Ot.optional=Vn),h=this.finishNode(Ot,"MemberExpression")}else if(!Pe&&this.eat(_.parenL)){var At=new $n,st=this.yieldPos,jt=this.awaitPos,vn=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var nr=this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1,At);if(rt&&!Vn&&this.shouldParseAsyncArrow())return this.checkPatternErrors(At,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=st,this.awaitPos=jt,this.awaitIdentPos=vn,this.parseSubscriptAsyncArrow(S,me,nr,Wt);this.checkExpressionErrors(At,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=jt||this.awaitPos,this.awaitIdentPos=vn||this.awaitIdentPos;var Xr=this.startNodeAt(S,me);Xr.callee=h,Xr.arguments=nr,Fn&&(Xr.optional=Vn),h=this.finishNode(Xr,"CallExpression")}else if(this.type===_.backQuote){(Vn||$t)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Lr=this.startNodeAt(S,me);Lr.tag=h,Lr.quasi=this.parseTemplate({isTagged:!0}),h=this.finishNode(Lr,"TaggedTemplateExpression")}return h},gt.parseExprAtom=function(h,S,me){this.type===_.slash&&this.readRegexp();var Pe,rt=this.potentialArrowAt===this.start;switch(this.type){case _._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),Pe=this.startNode(),this.next(),this.type===_.parenL&&!this.allowDirectSuper&&this.raise(Pe.start,"super() call outside constructor of a subclass"),this.type!==_.dot&&this.type!==_.bracketL&&this.type!==_.parenL&&this.unexpected(),this.finishNode(Pe,"Super");case _._this:return Pe=this.startNode(),this.next(),this.finishNode(Pe,"ThisExpression");case _.name:var $t=this.start,Wt=this.startLoc,Fn=this.containsEsc,Vn=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!Fn&&"async"===Vn.name&&!this.canInsertSemicolon()&&this.eat(_._function))return this.overrideContext(Zt.f_expr),this.parseFunction(this.startNodeAt($t,Wt),0,!1,!0,S);if(rt&&!this.canInsertSemicolon()){if(this.eat(_.arrow))return this.parseArrowExpression(this.startNodeAt($t,Wt),[Vn],!1,S);if(this.options.ecmaVersion>=8&&"async"===Vn.name&&this.type===_.name&&!Fn&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return Vn=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(_.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt($t,Wt),[Vn],!0,S)}return Vn;case _.regexp:var Be=this.value;return(Pe=this.parseLiteral(Be.value)).regex={pattern:Be.pattern,flags:Be.flags},Pe;case _.num:case _.string:return this.parseLiteral(this.value);case _._null:case _._true:case _._false:return(Pe=this.startNode()).value=this.type===_._null?null:this.type===_._true,Pe.raw=this.type.keyword,this.next(),this.finishNode(Pe,"Literal");case _.parenL:var Ot=this.start,At=this.parseParenAndDistinguishExpression(rt,S);return h&&(h.parenthesizedAssign<0&&!this.isSimpleAssignTarget(At)&&(h.parenthesizedAssign=Ot),h.parenthesizedBind<0&&(h.parenthesizedBind=Ot)),At;case _.bracketL:return Pe=this.startNode(),this.next(),Pe.elements=this.parseExprList(_.bracketR,!0,!0,h),this.finishNode(Pe,"ArrayExpression");case _.braceL:return this.overrideContext(Zt.b_expr),this.parseObj(!1,h);case _._function:return Pe=this.startNode(),this.next(),this.parseFunction(Pe,0);case _._class:return this.parseClass(this.startNode(),!1);case _._new:return this.parseNew();case _.backQuote:return this.parseTemplate();case _._import:return this.options.ecmaVersion>=11?this.parseExprImport(me):this.unexpected();default:return this.parseExprAtomDefault()}},gt.parseExprAtomDefault=function(){this.unexpected()},gt.parseExprImport=function(h){var S=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===_.parenL&&!h)return this.parseDynamicImport(S);if(this.type===_.dot){var me=this.startNodeAt(S.start,S.loc&&S.loc.start);return me.name="import",S.meta=this.finishNode(me,"Identifier"),this.parseImportMeta(S)}this.unexpected()},gt.parseDynamicImport=function(h){if(this.next(),h.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(_.parenR)?h.options=null:(this.expect(_.comma),this.afterTrailingComma(_.parenR)?h.options=null:(h.options=this.parseMaybeAssign(),this.eat(_.parenR)||(this.expect(_.comma),this.afterTrailingComma(_.parenR)||this.unexpected())));else if(!this.eat(_.parenR)){var S=this.start;this.eat(_.comma)&&this.eat(_.parenR)?this.raiseRecoverable(S,"Trailing comma is not allowed in import()"):this.unexpected(S)}return this.finishNode(h,"ImportExpression")},gt.parseImportMeta=function(h){this.next();var S=this.containsEsc;return h.property=this.parseIdent(!0),"meta"!==h.property.name&&this.raiseRecoverable(h.property.start,"The only valid meta property for import is 'import.meta'"),S&&this.raiseRecoverable(h.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(h.start,"Cannot use 'import.meta' outside a module"),this.finishNode(h,"MetaProperty")},gt.parseLiteral=function(h){var S=this.startNode();return S.value=h,S.raw=this.input.slice(this.start,this.end),110===S.raw.charCodeAt(S.raw.length-1)&&(S.bigint=S.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(S,"Literal")},gt.parseParenExpression=function(){this.expect(_.parenL);var h=this.parseExpression();return this.expect(_.parenR),h},gt.shouldParseArrow=function(h){return!this.canInsertSemicolon()},gt.parseParenAndDistinguishExpression=function(h,S){var rt,me=this.start,Pe=this.startLoc,$t=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var vn,Wt=this.start,Fn=this.startLoc,Vn=[],Be=!0,Ot=!1,At=new $n,st=this.yieldPos,jt=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==_.parenR;){if(Be?Be=!1:this.expect(_.comma),$t&&this.afterTrailingComma(_.parenR,!0)){Ot=!0;break}if(this.type===_.ellipsis){vn=this.start,Vn.push(this.parseParenItem(this.parseRestBinding())),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}Vn.push(this.parseMaybeAssign(!1,At,this.parseParenItem))}var nr=this.lastTokEnd,Xr=this.lastTokEndLoc;if(this.expect(_.parenR),h&&this.shouldParseArrow(Vn)&&this.eat(_.arrow))return this.checkPatternErrors(At,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=st,this.awaitPos=jt,this.parseParenArrowList(me,Pe,Vn,S);(!Vn.length||Ot)&&this.unexpected(this.lastTokStart),vn&&this.unexpected(vn),this.checkExpressionErrors(At,!0),this.yieldPos=st||this.yieldPos,this.awaitPos=jt||this.awaitPos,Vn.length>1?((rt=this.startNodeAt(Wt,Fn)).expressions=Vn,this.finishNodeAt(rt,"SequenceExpression",nr,Xr)):rt=Vn[0]}else rt=this.parseParenExpression();if(this.options.preserveParens){var Lr=this.startNodeAt(me,Pe);return Lr.expression=rt,this.finishNode(Lr,"ParenthesizedExpression")}return rt},gt.parseParenItem=function(h){return h},gt.parseParenArrowList=function(h,S,me,Pe){return this.parseArrowExpression(this.startNodeAt(h,S),me,!1,Pe)};var Et=[];gt.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var h=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===_.dot){var S=this.startNodeAt(h.start,h.loc&&h.loc.start);S.name="new",h.meta=this.finishNode(S,"Identifier"),this.next();var me=this.containsEsc;return h.property=this.parseIdent(!0),"target"!==h.property.name&&this.raiseRecoverable(h.property.start,"The only valid meta property for new is 'new.target'"),me&&this.raiseRecoverable(h.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(h.start,"'new.target' can only be used in functions and class static block"),this.finishNode(h,"MetaProperty")}var Pe=this.start,rt=this.startLoc;return h.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Pe,rt,!0,!1),h.arguments=this.eat(_.parenL)?this.parseExprList(_.parenR,this.options.ecmaVersion>=8,!1):Et,this.finishNode(h,"NewExpression")},gt.parseTemplateElement=function(h){var S=h.isTagged,me=this.startNode();return this.type===_.invalidTemplate?(S||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),me.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):me.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),me.tail=this.type===_.backQuote,this.finishNode(me,"TemplateElement")},gt.parseTemplate=function(h){void 0===h&&(h={});var S=h.isTagged;void 0===S&&(S=!1);var me=this.startNode();this.next(),me.expressions=[];var Pe=this.parseTemplateElement({isTagged:S});for(me.quasis=[Pe];!Pe.tail;)this.type===_.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(_.dollarBraceL),me.expressions.push(this.parseExpression()),this.expect(_.braceR),me.quasis.push(Pe=this.parseTemplateElement({isTagged:S}));return this.next(),this.finishNode(me,"TemplateLiteral")},gt.isAsyncProp=function(h){return!h.computed&&"Identifier"===h.key.type&&"async"===h.key.name&&(this.type===_.name||this.type===_.num||this.type===_.string||this.type===_.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===_.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))},gt.parseObj=function(h,S){var me=this.startNode(),Pe=!0,rt={};for(me.properties=[],this.next();!this.eat(_.braceR);){if(Pe)Pe=!1;else if(this.expect(_.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(_.braceR))break;var $t=this.parseProperty(h,S);h||this.checkPropClash($t,rt,S),me.properties.push($t)}return this.finishNode(me,h?"ObjectPattern":"ObjectExpression")},gt.parseProperty=function(h,S){var Pe,rt,$t,Wt,me=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(_.ellipsis))return h?(me.argument=this.parseIdent(!1),this.type===_.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(me,"RestElement")):(me.argument=this.parseMaybeAssign(!1,S),this.type===_.comma&&S&&S.trailingComma<0&&(S.trailingComma=this.start),this.finishNode(me,"SpreadElement"));this.options.ecmaVersion>=6&&(me.method=!1,me.shorthand=!1,(h||S)&&($t=this.start,Wt=this.startLoc),h||(Pe=this.eat(_.star)));var Fn=this.containsEsc;return this.parsePropertyName(me),!h&&!Fn&&this.options.ecmaVersion>=8&&!Pe&&this.isAsyncProp(me)?(rt=!0,Pe=this.options.ecmaVersion>=9&&this.eat(_.star),this.parsePropertyName(me)):rt=!1,this.parsePropertyValue(me,h,Pe,rt,$t,Wt,S,Fn),this.finishNode(me,"Property")},gt.parseGetterSetter=function(h){(h.kind=h.key.name,this.parsePropertyName(h),h.value=this.parseMethod(!1),h.value.params.length!==("get"===h.kind?0:1))?this.raiseRecoverable(h.value.start,"get"===h.kind?"getter should have no params":"setter should have exactly one param"):"set"===h.kind&&"RestElement"===h.value.params[0].type&&this.raiseRecoverable(h.value.params[0].start,"Setter cannot use rest params")},gt.parsePropertyValue=function(h,S,me,Pe,rt,$t,Wt,Fn){(me||Pe)&&this.type===_.colon&&this.unexpected(),this.eat(_.colon)?(h.value=S?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Wt),h.kind="init"):this.options.ecmaVersion>=6&&this.type===_.parenL?(S&&this.unexpected(),h.kind="init",h.method=!0,h.value=this.parseMethod(me,Pe)):S||Fn||!(this.options.ecmaVersion>=5)||h.computed||"Identifier"!==h.key.type||"get"!==h.key.name&&"set"!==h.key.name||this.type===_.comma||this.type===_.braceR||this.type===_.eq?this.options.ecmaVersion>=6&&!h.computed&&"Identifier"===h.key.type?((me||Pe)&&this.unexpected(),this.checkUnreserved(h.key),"await"===h.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=rt),h.kind="init",S?h.value=this.parseMaybeDefault(rt,$t,this.copyNode(h.key)):this.type===_.eq&&Wt?(Wt.shorthandAssign<0&&(Wt.shorthandAssign=this.start),h.value=this.parseMaybeDefault(rt,$t,this.copyNode(h.key))):h.value=this.copyNode(h.key),h.shorthand=!0):this.unexpected():((me||Pe)&&this.unexpected(),this.parseGetterSetter(h))},gt.parsePropertyName=function(h){if(this.options.ecmaVersion>=6){if(this.eat(_.bracketL))return h.computed=!0,h.key=this.parseMaybeAssign(),this.expect(_.bracketR),h.key;h.computed=!1}return h.key=this.type===_.num||this.type===_.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},gt.initFunction=function(h){h.id=null,this.options.ecmaVersion>=6&&(h.generator=h.expression=!1),this.options.ecmaVersion>=8&&(h.async=!1)},gt.parseMethod=function(h,S,me){var Pe=this.startNode(),rt=this.yieldPos,$t=this.awaitPos,Wt=this.awaitIdentPos;return this.initFunction(Pe),this.options.ecmaVersion>=6&&(Pe.generator=h),this.options.ecmaVersion>=8&&(Pe.async=!!S),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|P(S,Pe.generator)|(me?128:0)),this.expect(_.parenL),Pe.params=this.parseBindingList(_.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Pe,!1,!0,!1),this.yieldPos=rt,this.awaitPos=$t,this.awaitIdentPos=Wt,this.finishNode(Pe,"FunctionExpression")},gt.parseArrowExpression=function(h,S,me,Pe){var rt=this.yieldPos,$t=this.awaitPos,Wt=this.awaitIdentPos;return this.enterScope(16|P(me,!1)),this.initFunction(h),this.options.ecmaVersion>=8&&(h.async=!!me),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,h.params=this.toAssignableList(S,!0),this.parseFunctionBody(h,!0,!1,Pe),this.yieldPos=rt,this.awaitPos=$t,this.awaitIdentPos=Wt,this.finishNode(h,"ArrowFunctionExpression")},gt.parseFunctionBody=function(h,S,me,Pe){var $t=this.strict,Wt=!1;if(S&&this.type!==_.braceL)h.body=this.parseMaybeAssign(Pe),h.expression=!0,this.checkParams(h,!1);else{var Fn=this.options.ecmaVersion>=7&&!this.isSimpleParamList(h.params);(!$t||Fn)&&(Wt=this.strictDirective(this.end))&&Fn&&this.raiseRecoverable(h.start,"Illegal 'use strict' directive in function with non-simple parameter list");var Vn=this.labels;this.labels=[],Wt&&(this.strict=!0),this.checkParams(h,!$t&&!Wt&&!S&&!me&&this.isSimpleParamList(h.params)),this.strict&&h.id&&this.checkLValSimple(h.id,5),h.body=this.parseBlock(!1,void 0,Wt&&!$t),h.expression=!1,this.adaptDirectivePrologue(h.body.body),this.labels=Vn}this.exitScope()},gt.isSimpleParamList=function(h){for(var S=0,me=h;S<me.length;S+=1)if("Identifier"!==me[S].type)return!1;return!0},gt.checkParams=function(h,S){for(var me=Object.create(null),Pe=0,rt=h.params;Pe<rt.length;Pe+=1)this.checkLValInnerPattern(rt[Pe],1,S?null:me)},gt.parseExprList=function(h,S,me,Pe){for(var rt=[],$t=!0;!this.eat(h);){if($t)$t=!1;else if(this.expect(_.comma),S&&this.afterTrailingComma(h))break;var Wt=void 0;me&&this.type===_.comma?Wt=null:this.type===_.ellipsis?(Wt=this.parseSpread(Pe),Pe&&this.type===_.comma&&Pe.trailingComma<0&&(Pe.trailingComma=this.start)):Wt=this.parseMaybeAssign(!1,Pe),rt.push(Wt)}return rt},gt.checkUnreserved=function(h){var S=h.start,me=h.end,Pe=h.name;this.inGenerator&&"yield"===Pe&&this.raiseRecoverable(S,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===Pe&&this.raiseRecoverable(S,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&"arguments"===Pe&&this.raiseRecoverable(S,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===Pe||"await"===Pe)&&this.raise(S,"Cannot use "+Pe+" in class static initialization block"),this.keywords.test(Pe)&&this.raise(S,"Unexpected keyword '"+Pe+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(S,me).indexOf("\\")||(this.strict?this.reservedWordsStrict:this.reservedWords).test(Pe)&&(!this.inAsync&&"await"===Pe&&this.raiseRecoverable(S,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(S,"The keyword '"+Pe+"' is reserved"))},gt.parseIdent=function(h){var S=this.parseIdentNode();return this.next(!!h),this.finishNode(S,"Identifier"),h||(this.checkUnreserved(S),"await"===S.name&&!this.awaitIdentPos&&(this.awaitIdentPos=S.start)),S},gt.parseIdentNode=function(){var h=this.startNode();return this.type===_.name?h.name=this.value:this.type.keyword?(h.name=this.type.keyword,("class"===h.name||"function"===h.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=_.name):this.unexpected(),h},gt.parsePrivateIdent=function(){var h=this.startNode();return this.type===_.privateId?h.name=this.value:this.unexpected(),this.next(),this.finishNode(h,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(h.start,"Private field '#"+h.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(h)),h},gt.parseYield=function(h){this.yieldPos||(this.yieldPos=this.start);var S=this.startNode();return this.next(),this.type===_.semi||this.canInsertSemicolon()||this.type!==_.star&&!this.t
vendor: 6,589 bytes, line 1
1ype.startsExpr?(S.delegate=!1,S.argument=null):(S.delegate=this.eat(_.star),S.argument=this.parseMaybeAssign(h)),this.finishNode(S,"YieldExpression")},gt.parseAwait=function(h){this.awaitPos||(this.awaitPos=this.start);var S=this.startNode();return this.next(),S.argument=this.parseMaybeUnary(null,!0,!1,h),this.finishNode(S,"AwaitExpression")};var dn=Dt.prototype;dn.raise=function(h,S){var me=He(this.input,h),Pe=new SyntaxError(S+=" ("+me.line+":"+me.column+")");throw Pe.pos=h,Pe.loc=me,Pe.raisedAt=this.pos,Pe},dn.raiseRecoverable=dn.raise,dn.curPosition=function(){if(this.options.locations)return new Me(this.curLine,this.pos-this.lineStart)};var Bn=Dt.prototype,Hn=function(S){this.flags=S,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};Bn.enterScope=function(h){this.scopeStack.push(new Hn(h))},Bn.exitScope=function(){this.scopeStack.pop()},Bn.treatFunctionsAsVarInScope=function(h){return 2&h.flags||!this.inModule&&1&h.flags},Bn.declareName=function(h,S,me){var Pe=!1;if(2===S){var rt=this.currentScope();Pe=rt.lexical.indexOf(h)>-1||rt.functions.indexOf(h)>-1||rt.var.indexOf(h)>-1,rt.lexical.push(h),this.inModule&&1&rt.flags&&delete this.undefinedExports[h]}else if(4===S)this.currentScope().lexical.push(h);else if(3===S){var Wt=this.currentScope();Pe=this.treatFunctionsAsVar?Wt.lexical.indexOf(h)>-1:Wt.lexical.indexOf(h)>-1||Wt.var.indexOf(h)>-1,Wt.functions.push(h)}else for(var Fn=this.scopeStack.length-1;Fn>=0;--Fn){var Vn=this.scopeStack[Fn];if(Vn.lexical.indexOf(h)>-1&&!(32&Vn.flags&&Vn.lexical[0]===h)||!this.treatFunctionsAsVarInScope(Vn)&&Vn.functions.indexOf(h)>-1){Pe=!0;break}if(Vn.var.push(h),this.inModule&&1&Vn.flags&&delete this.undefinedExports[h],259&Vn.flags)break}Pe&&this.raiseRecoverable(me,"Identifier '"+h+"' has already been declared")},Bn.checkLocalExport=function(h){-1===this.scopeStack[0].lexical.indexOf(h.name)&&-1===this.scopeStack[0].var.indexOf(h.name)&&(this.undefinedExports[h.name]=h)},Bn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Bn.currentVarScope=function(){for(var h=this.scopeStack.length-1;;h--){var S=this.scopeStack[h];if(259&S.flags)return S}},Bn.currentThisScope=function(){for(var h=this.scopeStack.length-1;;h--){var S=this.scopeStack[h];if(259&S.flags&&!(16&S.flags))return S}};var Cr=function(S,me,Pe){this.type="",this.start=me,this.end=0,S.options.locations&&(this.loc=new tt(S,Pe)),S.options.directSourceFile&&(this.sourceFile=S.options.directSourceFile),S.options.ranges&&(this.range=[me,0])},Qt=Dt.prototype;function mt(h,S,me,Pe){return h.type=S,h.end=me,this.options.locations&&(h.loc.end=Pe),this.options.ranges&&(h.range[1]=me),h}Qt.startNode=function(){return new Cr(this,this.start,this.startLoc)},Qt.startNodeAt=function(h,S){return new Cr(this,h,S)},Qt.finishNode=function(h,S){return mt.call(this,h,S,this.lastTokEnd,this.lastTokEndLoc)},Qt.finishNodeAt=function(h,S,me,Pe){return mt.call(this,h,S,me,Pe)},Qt.copyNode=function(h){var S=new Cr(this,h.start,this.startLoc);for(var me in h)S[me]=h[me];return S};for(var h,S,_t="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ft=_t+" Extended_Pictographic",jn=Ft+" EBase EComp EMod EPres ExtPict",br={9:_t,10:Ft,11:Ft,12:jn,13:jn,14:jn},Qr={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Ti="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Ui="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Re
1jang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ui=Ui+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",zi=ui+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Bo=zi+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",uo=Bo+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",sn={9:Ui,10:ui,11:zi,12:Bo,13:uo,14:uo+" Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz"},Ze={},pt=0,Xt=[9,10,11,12,13,14];pt<Xt.length;pt+=1)S=void 0,(S=Ze[h=Xt[pt]]={binary:ze(br[h]+" "+Ti),binaryOfStrings:ze(Qr[h]),nonBinary:{General_Category:ze(Ti),Script:ze(sn[h])}}).nonBinary.Script_Extensions=S.nonBinary.Script,S.nonBinary.gc=S.nonBinary.General_Category,S.nonBinary.sc=S.nonBinary.Script,S.nonBinary.scx=S.nonBinary.Script_Extensions;var un=Dt.prototype,ir=function(S,me){this.parent=S,this.base=me||this};ir.prototype.separatedFrom=function(S){for(var me=this;me;me=me.parent)for(var Pe=S;Pe;Pe=Pe.parent)if(me.base===Pe.base&&me!==Pe)return!0;return!1},ir.prototype.sibling=function(){return new ir(this.parent,this.base)};var vr=function(S){this.parser=S,this.validFlags="gim"+(S.options.ecmaVersion>=6?"uy":"")+(S.options.ecmaVersion>=9?"s":"")+(S.options.ecmaVersion>=13?"d":"")+(S.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ze[S.options.ecmaVersion>=14?14:S.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function co(h){return 105===h||109===h||115===h}function Qi(h){return 36===h||h>=40&&h<=43||46===h||63===h||h>=91&&h<=94||h>=123&&h<=125}function Vi(h){return h>=65&&h<=90||h>=97&&h<=122}function Ge(h){return Vi(h)||95===h}function ht(h){return Ge(h)||Nn(h)}function Nn(h){return h>=48&&h<=57}function Gn(h){return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102}function Wn(h){return h>=65&&h<=70?h-65+10:h>=97&&h<=102?h-97+10:h-48}function _r(h){return h>=48&&h<=55}vr.prototype.reset=function(S,me,Pe){var rt=-1!==Pe.indexOf("v"),$t=-1!==Pe.indexOf("u");this.start=0|S,this.source=me+"",this.flags=Pe,rt&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=$t&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=$t&&this.parser.options.ecmaVersion>=9)},vr.prototype.raise=function(S){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+S)},vr.prototype.at=function(S,me){void 0===me&&(me=!1);var Pe=this.source,rt=Pe.length;if(S>=rt)return-1;var $t=Pe.charCodeAt(S);if(!me&&!this.switchU||$t<=55295||$t>=57344||S+1>=rt)return $t;var Wt=Pe.charCodeAt(S+1);return Wt>=56320&&Wt<=57343?($t<<10)+Wt-56613888:$t},vr.prototype.nextIndex=function(S,me){void 0===me&&(me=!1);var Pe=this.source,rt=Pe.length;if(S>=rt)return rt;var Wt,$t=Pe.charCodeAt(S);return!me&&!this.switchU||$t<=55295||$t>=57344||S+1>=rt||(Wt=Pe.charCodeAt(S+1))<56320||Wt>57343?S+1:S+2},vr.prototype.current=function(S){return void 0===S&&(S=!1),this.at(this.pos,S)},vr.prototype.lookahead=function(S){return void 0===S&&(S=!1),this.at(this.nextIndex(this.pos,S),S)},vr.prototype.advance=function(S){void 0===S&&(S=!1),this.pos=this.nextIndex(this.pos,S)},vr.prototype.eat=function(S,me){return void 0===me&&(me=!1),this.current(me)===S&&(this.advance(me),!0)},vr.prototype.eatChars=function(S,me){void 0===me&&(me=!1);for(var Pe=this.pos,rt=0,$t=S;rt<$t.length;rt+=1){var Wt=$t[rt],Fn=this.at(Pe,me);if(-1===Fn||Fn!==Wt)return!1;Pe=this.nextIndex(Pe,me)}return this.pos=Pe,!0}
vendor: 21,167 bytes, line 1
1,un.validateRegExpFlags=function(h){for(var S=h.validFlags,me=h.flags,Pe=!1,rt=!1,$t=0;$t<me.length;$t++){var Wt=me.charAt($t);-1===S.indexOf(Wt)&&this.raise(h.start,"Invalid regular expression flag"),me.indexOf(Wt,$t+1)>-1&&this.raise(h.start,"Duplicate regular expression flag"),"u"===Wt&&(Pe=!0),"v"===Wt&&(rt=!0)}this.options.ecmaVersion>=15&&Pe&&rt&&this.raise(h.start,"Invalid regular expression flag")},un.validateRegExpPattern=function(h){this.regexp_pattern(h),!h.switchN&&this.options.ecmaVersion>=9&&function Si(h){for(var S in h)return!0;return!1}(h.groupNames)&&(h.switchN=!0,this.regexp_pattern(h))},un.regexp_pattern=function(h){h.pos=0,h.lastIntValue=0,h.lastStringValue="",h.lastAssertionIsQuantifiable=!1,h.numCapturingParens=0,h.maxBackReference=0,h.groupNames=Object.create(null),h.backReferenceNames.length=0,h.branchID=null,this.regexp_disjunction(h),h.pos!==h.source.length&&(h.eat(41)&&h.raise("Unmatched ')'"),(h.eat(93)||h.eat(125))&&h.raise("Lone quantifier brackets")),h.maxBackReference>h.numCapturingParens&&h.raise("Invalid escape");for(var S=0,me=h.backReferenceNames;S<me.length;S+=1)h.groupNames[me[S]]||h.raise("Invalid named capture referenced")},un.regexp_disjunction=function(h){var S=this.options.ecmaVersion>=16;for(S&&(h.branchID=new ir(h.branchID,null)),this.regexp_alternative(h);h.eat(124);)S&&(h.branchID=h.branchID.sibling()),this.regexp_alternative(h);S&&(h.branchID=h.branchID.parent),this.regexp_eatQuantifier(h,!0)&&h.raise("Nothing to repeat"),h.eat(123)&&h.raise("Lone quantifier brackets")},un.regexp_alternative=function(h){for(;h.pos<h.source.length&&this.regexp_eatTerm(h););},un.regexp_eatTerm=function(h){return this.regexp_eatAssertion(h)?(h.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(h)&&h.switchU&&h.raise("Invalid quantifier"),!0):!!(h.switchU?this.regexp_eatAtom(h):this.regexp_eatExtendedAtom(h))&&(this.regexp_eatQuantifier(h),!0)},un.regexp_eatAssertion=function(h){var S=h.pos;if(h.lastAssertionIsQuantifiable=!1,h.eat(94)||h.eat(36))return!0;if(h.eat(92)){if(h.eat(66)||h.eat(98))return!0;h.pos=S}if(h.eat(40)&&h.eat(63)){var me=!1;if(this.options.ecmaVersion>=9&&(me=h.eat(60)),h.eat(61)||h.eat(33))return this.regexp_disjunction(h),h.eat(41)||h.raise("Unterminated group"),h.lastAssertionIsQuantifiable=!me,!0}return h.pos=S,!1},un.regexp_eatQuantifier=function(h,S){return void 0===S&&(S=!1),!!this.regexp_eatQuantifierPrefix(h,S)&&(h.eat(63),!0)},un.regexp_eatQuantifierPrefix=function(h,S){return h.eat(42)||h.eat(43)||h.eat(63)||this.regexp_eatBracedQuantifier(h,S)},un.regexp_eatBracedQuantifier=function(h,S){var me=h.pos;if(h.eat(123)){var Pe=0,rt=-1;if(this.regexp_eatDecimalDigits(h)&&(Pe=h.lastIntValue,h.eat(44)&&this.regexp_eatDecimalDigits(h)&&(rt=h.lastIntValue),h.eat(125)))return-1!==rt&&rt<Pe&&!S&&h.raise("numbers out of order in {} quantifier"),!0;h.switchU&&!S&&h.raise("Incomplete quantifier"),h.pos=me}return!1},un.regexp_eatAtom=function(h){return this.regexp_eatPatternCharacters(h)||h.eat(46)||this.regexp_eatReverseSolidusAtomEscape(h)||this.regexp_eatCharacterClass(h)||this.regexp_eatUncapturingGroup(h)||this.regexp_eatCapturingGroup(h)},un.regexp_eatReverseSolidusAtomEscape=function(h){var S=h.pos;if(h.eat(92)){if(this.regexp_eatAtomEscape(h))return!0;h.pos=S}return!1},un.regexp_eatUncapturingGroup=function(h){var S=h.pos;if(h.eat(40)){if(h.eat(63)){if(this.options.ecmaVersion>=16){var me=this.regexp_eatModifiers(h),Pe=h.eat(45);if(me||Pe){for(var rt=0;rt<me.length;rt++){var $t=me.charAt(rt);me.indexOf($t,rt+1)>-1&&h.raise("Duplicate regular expression modifiers")}if(Pe){var Wt=this.regexp_eatModifiers(h);!me&&!Wt&&58===h.current()&&h.raise("Invalid regular expression modifiers");for(var Fn=0;Fn<Wt.length;Fn++){var Vn=Wt.charAt(Fn);(Wt.indexOf(Vn,Fn+1)>-1||me.indexOf(Vn)>-1)&&h.raise("Duplicate regular expression modifiers")}}}}if(h.eat(58)){if(this.regexp_disjunction(h),h.eat(41))return!0;h.raise("Unterminated group")}}h.pos=S}return!1},un.regexp_eatCapturingGroup=function(h){if(h.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(h):63===h.current()&&h.raise("Invalid group"),this.regexp_disjunction(h),h.eat(41))return h.numCapturingParens+=1,!0;h.raise("Unterminated group")}return!1},un.regexp_eatModifiers=function(h){for(var S="",me=0;-1!==(me=h.current())&&co(me);)S+=bt(me),h.advance();return S},un.regexp_eatExtendedAtom=function(h){return h.eat(46)||this.regexp_eatReverseSolidusAtomEscape(h)||this.regexp_eatCharacterClass(h)||this.regexp_eatUncapturingGroup(h)||this.regexp_eatCapturingGroup(h)||this.regexp_eatInvalidBracedQuantifier(h)||this.regexp_eatExtendedPatternCharacter(h)},un.regexp_eatInvalidBracedQuantifier=function(h){return this.regexp_eatBracedQuantifier(h,!0)&&h.raise("Nothing to repeat"),!1},un.regexp_eatSyntaxCharacter=function(h){var S=h.current();return!!Qi(S)&&(h.lastIntValue=S,h.advance(),!0)},un.regexp_eatPatternCharacters=function(h){for(var S=h.pos,me=0;-1!==(me=h.current())&&!Qi(me);)h.advance();return h.pos!==S},un.regexp_eatExtendedPatternCharacter=function(h){var S=h.current();return!(-1===S||36===S||S>=40&&S<=43||46===S||63===S||91===S||94===S||124===S||(h.advance(),0))},un.regexp_groupSpecifier=function(h){if(h.eat(63)){this.regexp_eatGroupName(h)||h.raise("Invalid group");var S=this.options.ecmaVersion>=16,me=h.groupNames[h.lastStringValue];if(me)if(S)for(var Pe=0,rt=me;Pe<rt.length;Pe+=1)rt[Pe].separatedFrom(h.branchID)||h.raise("Duplicate capture group name");else h.raise("Duplicate capture group name");S?(me||(h.groupNames[h.lastStringValue]=[])).push(h.branchID):h.groupNames[h.lastStringValue]=!0}},un.regexp_eatGroupName=function(h){if(h.lastStringValue="",h.eat(60)){if(this.regexp_eatRegExpIdentifierName(h)&&h.eat(62))return!0;h.raise("Invalid capture group name")}return!1},un.regexp_eatRegExpIdentifierName=function(h){if(h.lastStringValue="",this.regexp_eatRegExpIdentifierStart(h)){for(h.lastStringValue+=bt(h.lastIntValue);this.regexp_eatRegExpIdentifierPart(h);)h.lastStringValue+=bt(h.lastIntValue);return!0}return!1},un.regexp_eatRegExpIdentifierStart=function(h){var S=h.pos,me=this.options.ecmaVersion>=11,Pe=h.current(me);return h.advance(me),92===Pe&&this.regexp_eatRegExpUnicodeEscapeSequence(h,me)&&(Pe=h.lastIntValue),function Dr(h){return ne(h,!0)||36===h||95===h}(Pe)?(h.lastIntValue=Pe,!0):(h.pos=S,!1)},un.regexp_eatRegExpIdentifierPart=function(h){var S=h.pos,me=this.options.ecmaVersion>=11,Pe=h.current(me);return h.advance(me),92===Pe&&this.regexp_eatRegExpUnicodeEscapeSequence(h,me)&&(Pe=h.lastIntValue),function ci(h){return te(h,!0)||36===h||95===h||8204===h||8205===h}(Pe)?(h.lastIntValue=Pe,!0):(h.pos=S,!1)},un.regexp_eatAtomEscape=function(h){return!!(this.regexp_eatBackReference(h)||this.regexp_eatCharacterClassEscape(h)||this.regexp_eatCharacterEscape(h)||h.switchN&&this.regexp_eatKGroupName(h))||(h.switchU&&(99===h.current()&&h.raise("Invalid unicode escape"),h.raise("Invalid escape")),!1)},un.regexp_eatBackReference=function(h){var S=h.pos;if(this.regexp_eatDecimalEscape(h)){var me=h.lastIntValue;if(h.switchU)return me>h.maxBackReference&&(h.maxBackReference=me),!0;if(me<=h.numCapturingParens)return!0;h.pos=S}return!1},un.regexp_eatKGroupName=function(h){if(h.eat(107)){if(this.regexp_eatGroupName(h))return h.backReferenceNames.push(h.lastStringValue),!0;h.raise("Invalid named reference")}return!1},un.regexp_eatCharacterEscape=function(h){return this.regexp_eatControlEscape(h)||this.regexp_eatCControlLetter(h)||this.regexp_eatZero(h)||this.regexp_eatHexEscapeSequence(h)||this.regexp_eatRegExpUnicodeEscapeSequence(h,!1)||!h.switchU&&this.regexp_eatLegacyOctalEscapeSequence(h)||this.regexp_eatIdentityEscape(h)},un.regexp_eatCControlLetter=function(h){var S=h.pos;if(h.eat(99)){if(this.regexp_eatControlLetter(h))return!0;h.pos=S}return!1},un.regexp_eatZero=function(h){return 48===h.current()&&!Nn(h.lookahead())&&(h.lastIntValue=0,h.advance(),!0)},un.regexp_eatControlEscape=function(h){var S=h.current();return 116===S?(h.lastIntValue=9,h.advance(),!0):110===S?(h.lastIntValue=10,h.advance(),!0):118===S?(h.lastIntValue=11,h.advance(),!0):102===S?(h.lastIntValue=12,h.advance(),!0):114===S&&(h.lastIntValue=13,h.advance(),!0)},un.regexp_eatControlLetter=function(h){var S=h.current();return!!Vi(S)&&(h.lastIntValue=S%32,h.advance(),!0)},un.regexp_eatRegExpUnicodeEscapeSequence=function(h,S){void 0===S&&(S=!1);var me=h.pos,Pe=S||h.switchU;if(h.eat(117)){if(this.regexp_eatFixedHexDigits(h,4)){var rt=h.lastIntValue;if(Pe&&rt>=55296&&rt<=56319){var $t=h.pos;if(h.eat(92)&&h.eat(117)&&this.regexp_eatFixedHexDigits(h,4)){var Wt=h.lastIntValue;if(Wt>=56320&&Wt<=57343)return h.lastIntValue=1024*(rt-55296)+(Wt-56320)+65536,!0}h.pos=$t,h.lastIntValue=rt}return!0}if(Pe&&h.eat(123)&&this.regexp_eatHexDigits(h)&&h.eat(125)&&function di(h){return h>=0&&h<=1114111}(h.lastIntValue))return!0;Pe&&h.raise("Invalid unicode escape"),h.pos=me}return!1},un.regexp_eatIdentityEscape=function(h){if(h.switchU)return!!this.regexp_eatSyntaxCharacter(h)||!!h.eat(47)&&(h.lastIntValue=47,!0);var S=h.current();return!(99===S||h.switchN&&107===S||(h.lastIntValue=S,h.advance(),0))},un.regexp_eatDecimalEscape=function(h){h.lastIntValue=0;var S=h.current();if(S>=49&&S<=57){do{h.lastIntValue=10*h.lastIntValue+(S-48),h.advance()}while((S=h.current())>=48&&S<=57);return!0}return!1},un.regexp_eatCharacterClassEscape=function(h){var S=h.current();if(function $i(h){return 100===h||68===h||115===h||83===h||119===h||87===h}(S))return h.lastIntValue=-1,h.advance(),1;var me=!1;if(h.switchU&&this.options.ecmaVersion>=9&&((me=80===S)||112===S)){var Pe;if(h.lastIntValue=-1,h.advance(),h.eat(123)&&(Pe=this.regexp_eatUnicodePropertyValueExpression(h))&&h.eat(125))return me&&2===Pe&&h.raise("Invalid property name"),Pe;h.raise("Invalid property name")}return 0},un.regexp_eatUnicodePropertyValueExpression=function(h){var S=h.pos;if(this.regexp_eatUnicodePropertyName(h)&&h.eat(61)){var me=h.lastStringValue;if(this.regexp_eatUnicodePropertyValue(h))return this.regexp_validateUnicodePropertyNameAndValue(h,me,h.lastStringValue),1}return h.pos=S,this.regexp_eatLoneUnicodePropertyNameOrValue(h)?this.regexp_validateUnicodePropertyNameOrValue(h,h.lastStringValue):0},un.regexp_validateUnicodePropertyNameAndValue=function(h,S,me){ve(h.unicodeProperties.nonBinary,S)||h.raise("Invalid property name"),h.unicodeProperties.nonBinary[S].test(me)||h.raise("Invalid property value")},un.regexp_validateUnicodePropertyNameOrValue=function(h,S){return h.unicodeProperties.binary.test(S)?1:h.switchV&&h.unicodeProperties.binaryOfStrings.test(S)?2:void h.raise("Invalid property name")},un.regexp_eatUnicodePropertyName=function(h){var S=0;for(h.lastStringValue="";Ge(S=h.current());)h.lastStringValue+=bt(S),h.advance();return""!==h.lastStringValue},un.regexp_eatUnicodePropertyValue=function(h){var S=0;for(h.lastStringValue="";ht(S=h.current());)h.lastStringValue+=bt(S),h.advance();return""!==h.lastStringValue},un.regexp_eatLoneUnicodePropertyNameOrValue=function(h){return this.regexp_eatUnicodePropertyValue(h)},un.regexp_eatCharacterClass=function(h){if(h.eat(91)){var S=h.eat(94),me=this.regexp_classContents(h);return h.eat(93)||h.raise("Unterminated character class"),S&&2===me&&h.raise("Negated character class may contain strings"),!0}return!1},un.regexp_classContents=function(h){return 93===h.current()?1:h.switchV?this.regexp_classSetExpression(h):(this.regexp_nonEmptyClassRanges(h),1)},un.regexp_nonEmptyClassRanges=function(h){for(;this.regexp_eatClassAtom(h);){var S=h.lastIntValue;if(h.eat(45)&&this.regexp_eatClassAtom(h)){var me=h.lastIntValue;h.switchU&&(-1===S||-1===me)&&h.raise("Invalid character class"),-1!==S&&-1!==me&&S>me&&h.raise("Range out of order in character class")}}},un.regexp_eatClassAtom=function(h){var S=h.pos;if(h.eat(92)){if(this.regexp_eatClassEscape(h))return!0;if(h.switchU){var me=h.current();(99===me||_r(me))&&h.raise("Invalid class escape"),h.raise("Invalid escape")}h.pos=S}var Pe=h.current();return 93!==Pe&&(h.lastIntValue=Pe,h.advance(),!0)},un.regexp_eatClassEscape=function(h){var S=h.pos;if(h.eat(98))return h.lastIntValue=8,!0;if(h.switchU&&h.eat(45))return h.lastIntValue=45,!0;if(!h.switchU&&h.eat(99)){if(this.regexp_eatClassControlLetter(h))return!0;h.pos=S}return this.regexp_eatCharacterClassEscape(h)||this.regexp_eatCharacterEscape(h)},un.regexp_classSetExpression=function(h){var me,S=1;if(!this.regexp_eatClassSetRange(h))if(me=this.regexp_eatClassSetOperand(h)){2===me&&(S=2);for(var Pe=h.pos;h.eatChars([38,38]);)38!==h.current()&&(me=this.regexp_eatClassSetOperand(h))?2!==me&&(S=1):h.raise("Invalid character in character class");if(Pe!==h.pos)return S;for(;h.eatChars([45,45]);)this.regexp_eatClassSetOperand(h)||h.raise("Invalid character in character class");if(Pe!==h.pos)return S}else h.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(h)){if(!(me=this.regexp_eatClassSetOperand(h)))return S;2===me&&(S=2)}},un.regexp_eatClassSetRange=function(h){var S=h.pos;if(this.regexp_eatClassSetCharacter(h)){var me=h.lastIntValue;if(h.eat(45)&&this.regexp_eatClassSetCharacter(h)){var Pe=h.lastIntValue;return-1!==me&&-1!==Pe&&me>Pe&&h.raise("Range out of order in character class"),!0}h.pos=S}return!1},un.regexp_eatClassSetOperand=function(h){return this.regexp_eatClassSetCharacter(h)?1:this.regexp_eatClassStringDisjunction(h)||this.regexp_eatNestedClass(h)},un.regexp_eatNestedClass=function(h){var S=h.pos;if(h.eat(91)){var me=h.eat(94),Pe=this.regexp_classContents(h);if(h.eat(93))return me&&2===Pe&&h.raise("Negated character class may contain strings"),Pe;h.pos=S}if(h.eat(92)){var rt=this.regexp_eatCharacterClassEscape(h);if(rt)return rt;h.pos=S}return null},un.regexp_eatClassStringDisjunction=function(h){var S=h.pos;if(h.eatChars([92,113])){if(h.eat(123)){var me=this.regexp_classStringDisjunctionContents(h);if(h.eat(125))return me}else h.raise("Invalid escape");h.pos=S}return null},un.regexp_classStringDisjunctionContents=function(h){for(var S=this.regexp_classString(h);h.eat(124);)2===this.regexp_classString(h)&&(S=2);return S},un.regexp_classString=function(h){for(var S=0;this.regexp_eatClassSetCharacter(h);)S++;return 1===S?1:2},un.regexp_eatClassSetCharacter=function(h){var S=h.pos;if(h.eat(92))return!(!this.regexp_eatCharacterEscape(h)&&!this.regexp_eatClassSetReservedPunctuator(h)&&(h.eat(98)?(h.lastIntValue=8,0):(h.pos=S,1)));var me=h.current();return!(me<0||me===h.lookahead()&&function Jt(h){return 33===h||h>=35&&h<=38||h>=42&&h<=44||46===h||h>=58&&h<=64||94===h||96===h||126===h}(me)||function Bt(h){return 40===h||41===h||45===h||47===h||h>=91&&h<=93||h>=123&&h<=125}(me)||(h.advance(),h.lastIntValue=me,0))},un.regexp_eatClassSetReservedPunctuator=function(h){var S=h.current();return!!function Mn(h){return 33===h||35===h||37===h||38===h||44===h||45===h||h>=58&&h<=62||64===h||96===h||126===h}(S)&&(h.lastIntValue=S,h.advance(),!0)},un.regexp_eatClassControlLetter=function(h){var S=h.current();return!(!Nn(S)&&95!==S||(h.lastIntValue=S%32,h.advance(),0))},un.regexp_eatHexEscapeSequence=function(h){var S=h.pos;if(h.eat(120)){if(this.regexp_eatFixedHexDigits(h,2))return!0;h.switchU&&h.raise("Invalid escape"),h.pos=S}return!1},un.regexp_eatDecimalDigits=function(h){var S=h.pos,me=0;for(h.lastIntValue=0;Nn(me=h.current());)h.lastIntValue=10*h.lastIntValue+(me-48),h.advance();return h.pos!==S},un.regexp_eatHexDigits=function(h){var S=h.pos,me=0;for(h.lastIntValue=0;Gn(me=h.current());)h.lastIntValue=16*h.lastIntValue+Wn(me),h.advance();return h.pos!==S},un.regexp_eatLegacyOctalEscapeSequence=function(h){if(this.regexp_eatOctalDigit(h)){var S=h.lastIntValue;if(this.regexp_eatOctalDigit(h)){var me=h.lastIntValue;h.lastIntValue=S<=3&&this.regexp_eatOctalDigit(h)?64*S+8*me+h.lastIntValue:8*S+me}else h.lastIntValue=S;return!0}return!1},un.regexp_eatOctalDigit=function(h){var S=h.current();return _r(S)?(h.lastIntValue=S-48,h.advance(),!0):(h.lastIntValue=0,!1)},un.regexp_eatFixedHexDigits=function(h,S){var me=h.pos;h.lastIntValue=0;for(var Pe=0;Pe<S;++Pe){var rt=h.current();if(!Gn(rt))return h.pos=me,!1;h.lastIntValue=16*h.lastIntValue+Wn(rt),h.advance()}return!0};var or=function(S){this.type=S.type,this.value=S.value,this.start=S.start,this.end=S.end,S.options.locations&&(this.loc=new tt(S,S.startLoc,S.endLoc)),S.options.ranges&&(this.range=[S.start,S.end])},ar=Dt.prototype;function si(h){return"function"!=typeof BigInt?null:BigInt(h.replace(/_/g,""))}ar.next=function(h){!h&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new or(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},ar.getToken=function(){return this.next(),new or(this)},typeof Symbol<"u"&&(ar[Symbol.iterator]=function(){var h=this;return{next:function(){var S=h.getToken();return{done:S.type===_.eof,value:S}}}}),ar.nextToken=function(){var h=this.curContext();return(!h||!h.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(_.eof):h.override?h.override(this):void this.readToken(this.fullCharCodeAtPos())},ar.readToken=function(h){return ne(h,this.options.ecmaVersion>=6)||92===h?this.readWord():this.getTokenFromCode(h)},ar.fullCharCodeAtPos=function(){var h=this.input.charCodeAt(this.pos);if(h<=55295||h>=56320)return h;var S=this.input.charCodeAt(this.pos+1);return S<=56319||S>=57344?h:(h<<10)+S-56613888},ar.skipBlockComment=function(){var h=this.options.onComment&&this.curPosition(),S=this.pos,me=this.input.indexOf("*/",this.pos+=2);if(-1===me&&this.raise(this.pos-2,"Unterminated comment"),this.pos=me+2,this.options.locations)for(var Pe=void 0,rt=S;(Pe=z(this.input,rt,this.pos))>-1;)++this.curLine,rt=this.lineStart=Pe;this.options.onComment&&this.options.onComment(!0,this.input.slice(S+2,me),S,this.pos,h,this.curPosition())},ar.skipLineComment=function(h){for(var S=this.pos,me=this.options.onComment&&this.curPosition(),Pe=this.input.charCodeAt(this.pos+=h);this.pos<this.input.length&&!B(Pe);)Pe=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(S+h,this.pos),S,this.pos,me,this.curPosition())},ar.skipSpace=function(){e:for(;this.pos<this.input.length;){var h=this.input.charCodeAt(this.pos);switch(h){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(!(h>8&&h<14||h>=5760&&oe.test(String.fromCharCode(h))))break e;++this.pos}}},ar.finishToken=function(h,S){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var me=this.type;this.type=h,this.value=S,this.updateContext(me)},ar.readToken_dot=function(){var h=this.input.charCodeAt(this.pos+1);if(h>=48&&h<=57)return this.readNumber(!0);var S=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===h&&46===S?(this.pos+=3,this.finishToken(_.ellipsis)):(++this.pos,this.finishToken(_.dot))},ar.readToken_slash=function(){var h=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===h?this.finishOp(_.assign,2):this.finishOp(_.slash,1)},ar.readToken_mult_modulo_exp=function(h){var S=this.input.charCodeAt(this.pos+1),me=1,Pe=42===h?_.star:_.modulo;return this.options.ecmaVersion>=7&&42===h&&42===S&&(++me,Pe=_.starstar,S=this.input.charCodeAt(this.pos+2)),61===S?this.finishOp(_.assign,me+1):this.finishOp(Pe,me)},ar.readToken_pipe_amp=function(h){var S=this.input.charCodeAt(this.pos+1);return S===h?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(_.assign,3):this.finishOp(124===h?_.logicalOR:_.logicalAND,2):61===S?this.finishOp(_.assign,2):this.finishOp(124===h?_.bitwiseOR:_.bitwiseAND,1)},ar.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(_.assign,2):this.finishOp(_.bitwiseXOR,1)},ar.readToken_plus_min=function(h){var S=this.input.charCodeAt(this.pos+1);return S===h?45!==S||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!R.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(_.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===S?this.finishOp(_.assign,2):this.finishOp(_.plusMin,1)},ar.readToken_lt_gt=function(h){var S=this.input.charCodeAt(this.pos+1),me=1;return S===h?(me=62===h&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+me)?this.finishOp(_.assign,me+1):this.finishOp(_.bitShift,me)):33!==S||60!==h||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===S&&(me=2),this.finishOp(_.relational,me)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},ar.readToken_eq_excl=function(h){var S=this.input.charCodeAt(this.pos+1);
vendor: 6,432 bytes, line 1
1return 61===S?this.finishOp(_.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===h&&62===S&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(_.arrow)):this.finishOp(61===h?_.eq:_.prefix,1)},ar.readToken_question=function(){var h=this.options.ecmaVersion;if(h>=11){var S=this.input.charCodeAt(this.pos+1);if(46===S){var me=this.input.charCodeAt(this.pos+2);if(me<48||me>57)return this.finishOp(_.questionDot,2)}if(63===S)return h>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(_.assign,3):this.finishOp(_.coalesce,2)}return this.finishOp(_.question,1)},ar.readToken_numberSign=function(){var S=35;if(this.options.ecmaVersion>=13&&(++this.pos,ne(S=this.fullCharCodeAtPos(),!0)||92===S))return this.finishToken(_.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+bt(S)+"'")},ar.getTokenFromCode=function(h){switch(h){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(_.parenL);case 41:return++this.pos,this.finishToken(_.parenR);case 59:return++this.pos,this.finishToken(_.semi);case 44:return++this.pos,this.finishToken(_.comma);case 91:return++this.pos,this.finishToken(_.bracketL);case 93:return++this.pos,this.finishToken(_.bracketR);case 123:return++this.pos,this.finishToken(_.braceL);case 125:return++this.pos,this.finishToken(_.braceR);case 58:return++this.pos,this.finishToken(_.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(_.backQuote);case 48:var S=this.input.charCodeAt(this.pos+1);if(120===S||88===S)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===S||79===S)return this.readRadixNumber(8);if(98===S||66===S)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(h);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(h);case 124:case 38:return this.readToken_pipe_amp(h);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(h);case 60:case 62:return this.readToken_lt_gt(h);case 61:case 33:return this.readToken_eq_excl(h);case 63:return this.readToken_question();case 126:return this.finishOp(_.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+bt(h)+"'")},ar.finishOp=function(h,S){var me=this.input.slice(this.pos,this.pos+S);return this.pos+=S,this.finishToken(h,me)},ar.readRegexp=function(){for(var h,S,me=this.pos;;){this.pos>=this.input.length&&this.raise(me,"Unterminated regular expression");var Pe=this.input.charAt(this.pos);if(R.test(Pe)&&this.raise(me,"Unterminated regular expression"),h)h=!1;else{if("["===Pe)S=!0;else if("]"===Pe&&S)S=!1;else if("/"===Pe&&!S)break;h="\\"===Pe}++this.pos}var rt=this.input.slice(me,this.pos);++this.pos;var $t=this.pos,Wt=this.readWord1();this.containsEsc&&this.unexpected($t);var Fn=this.regexpState||(this.regexpState=new vr(this));Fn.reset(me,rt,Wt),this.validateRegExpFlags(Fn),this.validateRegExpPattern(Fn);var Vn=null;try{Vn=new RegExp(rt,Wt)}catch(Be){}return this.finishToken(_.regexp,{pattern:rt,flags:Wt,value:Vn})},ar.readInt=function(h,S,me){for(var Pe=this.options.ecmaVersion>=12&&void 0===S,rt=me&&48===this.input.charCodeAt(this.pos),$t=this.pos,Wt=0,Fn=0,Vn=0,Be=null==S?1/0:S;Vn<Be;++Vn,++this.pos){var Ot=this.input.charCodeAt(this.pos),At=void 0;if(Pe&&95===Ot)rt&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===Fn&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===Vn&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),Fn=Ot;else{if((At=Ot>=97?Ot-97+10:Ot>=65?Ot-65+10:Ot>=48&&Ot<=57?Ot-48:1/0)>=h)break;Fn=Ot,Wt=Wt*h+At}}return Pe&&95===Fn&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===$t||null!=S&&this.pos-$t!==S?null:Wt},ar.readRadixNumber=function(h){var S=this.pos;this.pos+=2;var me=this.readInt(h);return null==me&&this.raise(this.start+2,"Expected number in radix "+h),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(me=si(this.input.slice(S,this.pos)),++this.pos):ne(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,me)},ar.readNumber=function(h){var S=this.pos;!h&&null===this.readInt(10,void 0,!0)&&this.raise(S,"Invalid number");var me=this.pos-S>=2&&48===this.input.charCodeAt(S);me&&this.strict&&this.raise(S,"Invalid number");var Pe=this.input.charCodeAt(this.pos);if(!me&&!h&&this.options.ecmaVersion>=11&&110===Pe){var rt=si(this.input.slice(S,this.pos));return++this.pos,ne(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(_.num,rt)}me&&/[89]/.test(this.input.slice(S,this.pos))&&(me=!1),46===Pe&&!me&&(++this.pos,this.readInt(10),Pe=this.input.charCodeAt(this.pos)),(69===Pe||101===Pe)&&!me&&((43===(Pe=this.input.charCodeAt(++this.pos))||45===Pe)&&++this.pos,null===this.readInt(10)&&this.raise(S,"Invalid number")),ne(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var $t=function Mi(h,S){return S?parseInt(h,8):parseFloat(h.replace(/_/g,""))}(this.input.slice(S,this.pos),me);return this.finishToken(_.num,$t)},ar.readCodePoint=function(){var S;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var me=++this.pos;S=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,S>1114111&&this.invalidStringToken(me,"Code point out of bounds")}else S=this.readHexChar(4);return S},ar.readString=function(h){for(var S="",me=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Pe=this.input.charCodeAt(this.pos);if(Pe===h)break;92===Pe?(S+=this.input.slice(me,this.pos),S+=this.readEscapedChar(!1),me=this.pos):8232===Pe||8233===Pe?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(B(Pe)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return S+=this.input.slice(me,this.pos++),this.finishToken(_.string,S)};var oi={};function nt(h,S){return Dt.parse(h,S)}ar.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(h){if(h!==oi)throw h;
1this.readInvalidTemplateToken()}this.inTemplateElement=!1},ar.invalidStringToken=function(h,S){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw oi;this.raise(h,S)},ar.readTmplToken=function(){for(var h="",S=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var me=this.input.charCodeAt(this.pos);if(96===me||36===me&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==_.template&&this.type!==_.invalidTemplate?(h+=this.input.slice(S,this.pos),this.finishToken(_.template,h)):36===me?(this.pos+=2,this.finishToken(_.dollarBraceL)):(++this.pos,this.finishToken(_.backQuote));if(92===me)h+=this.input.slice(S,this.pos),h+=this.readEscapedChar(!0),S=this.pos;else if(B(me)){switch(h+=this.input.slice(S,this.pos),++this.pos,me){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:h+="\n";break;default:h+=String.fromCharCode(me)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),S=this.pos}else++this.pos}},ar.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(_.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},ar.readEscapedChar=function(h){var S=this.input.charCodeAt(++this.pos);switch(++this.pos,S){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return bt(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),h&&this.invalidStringToken(this.pos-1,"Invalid escape sequence in template string");default:if(S>=48&&S<=55){var Pe=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],rt=parseInt(Pe,8);return rt>255&&(Pe=Pe.slice(0,-1),rt=parseInt(Pe,8)),this.pos+=Pe.length-1,S=this.input.charCodeAt(this.pos),("0"!==Pe||56===S||57===S)&&(this.strict||h)&&this.invalidStringToken(this.pos-1-Pe.length,h?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(rt)}return B(S)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(S)}},ar.readHexChar=function(h){var S=this.pos,me=this.readInt(16,h);return null===me&&this.invalidStringToken(S,"Bad character escape sequence"),me},ar.readWord1=function(){this.containsEsc=!1;for(var h="",S=!0,me=this.pos,Pe=this.options.ecmaVersion>=6;this.pos<this.input.length;){var rt=this.fullCharCodeAtPos();if(te(rt,Pe))this.pos+=rt<=65535?1:2;else{if(92!==rt)break;this.containsEsc=!0,h+=this.input.slice(me,this.pos);var $t=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Wt=this.readCodePoint();(S?ne:te)(Wt,Pe)||this.invalidStringToken($t,"Invalid Unicode escape"),h+=bt(Wt),me=this.pos}S=!1}return h+this.input.slice(me,this.pos)},ar.readWord=function(){var h=this.readWord1(),S=_.name;return this.keywords.test(h)&&(S=Ce[h]),this.finishToken(S,h)},Dt.acorn={Parser:Dt,version:"8.14.0",defaultOptions:ot,Position:Me,SourceLocation:tt,getLineInfo:He,Node:Cr,TokenType:$,tokTypes:_,keywordTypes:Ce,TokContext:Ht,tokContexts:Zt,isIdentifierChar:te,isIdentifierStart:ne,Token:or,isNewLine:B,lineBreak:R,lineBreakG:w,nonASCIIwhitespace:oe};var kt=d(9312),An=d(177),Rn=d(3953);const sr=["Unexpected token","Unterminated regular expression","Unterminated string constant","Invalid regular expression flag","Unterminated template literal","Unterminated template"],Hr={replace:(h,S,me)=>h.replace(S,me),substring:(h,S,me)=>h.substring(S,me),padEnd:(h,S,me)=>h.padEnd(S,me),padStart:(h,S,me)=>h.padStart(S,me),repeat:(h,S)=>h.repeat(S),split:(h,S,me)=>h.split(S,me),trim:h=>h.trim(),toLowerCase:h=>h.toLowerCase(),toUpperCase:h=>h.toUpperCase()};function xr(h,S){window.$functionCache||(window.$functionCache={});let me=window.$functionCache[h];if(!me){const Pe='"use strict";return ('+h+")";me=Function(...Object.keys(S),Pe),window.$functionCache[h]=me}try{return me(...Object.values(S))}catch(Pe){if((0,Rn.naY)()){window.$logOnce||(window.$logOnce=new Set);const rt="error evaluating '".concat(h,"': ").concat(Pe);window.$logOnce.has(rt)||(console.debug(rt),window.$logOnce.add(rt))}return""}}function fi(h){var S;if("CallExpression"===h.type&&"Identifier"===(null===(S=h.callee)||void 0===S||null===(S=S.object)||void 0===S?void 0:S.type)&&"$functions"===h.callee.object.name)return{from:h.start,to:h.end};if("expression"in h)return fi(h.expression);if("left"in h)return fi(h.left);throw new Error("Could not find $functions call in AST")}function Tr(h,S,me,Pe){var rt;let $t="";globalThis.window.$functionMap||(globalThis.window.$functionMap={});let Wt=h;if(Wt in globalThis.window.$functionMap){const Ot=globalThis.window.$functionMap[Wt];Wt=Ot.value,$t=Ot.rest}else{let Ot;for(;void 0===Ot;)try{Ot=nt(Wt,{ecmaVersion:2024})}catch(At){if(At instanceof SyntaxError&&sr.some(st=>At.message.includes(st))&&"number"==typeof At.pos){let st=At.pos;for(;st===Wt.length||st>0&&![")","]"].includes(Wt.charAt(st-1));)st--;$t=Wt.slice(st)+$t,Wt=Wt.slice(0,st)}else{if(!(At instanceof SyntaxError&&At.message.includes("Assigning to rvalue")))throw At;{const st=At.raisedAt-1;$t=Wt.slice(st)+$t,Wt=Wt.slice(0,st)}}}if(0==Ot.body.length)throw new Error('Failed to parse $functions call: "'.concat(h,'"'));if(Ot.body.length>1||"ExpressionStatement"!==Ot.body[0].type||!function Li(h){return"CallExpression"===h.type||"Member
1Expression"===h.type&&"CallExpression"===h.object.type}(Ot.body[0].expression)){var Fn;const{from:At,to:st}=fi(null===(Fn=Ot.body[0])||void 0===Fn?void 0:Fn.expression);if(0!==At)throw new Error("Expected $functions call to come first");$t=Wt.slice(st)+$t,Wt=Wt.slice(0,st)}globalThis.window.$functionMap[h]={value:Wt,rest:$t}}return{result:xr(Wt,{$context:S,$functions:(0,p.A)((0,p.A)({},Hr),me),$global:Pe,document:(null===(rt=kt.q.injector)||void 0===rt?void 0:rt.get(An.qQ))||window.document}),rest:$t}}},4074:(le,E,d)=>{"use strict";function p(v){return btoa(v).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function u(v){const x={iss:"purple-storefront",sub:v};return"".concat(p(JSON.stringify({alg:"none"})),".").concat(p(JSON.stringify(x)),".")}function o(v){var x=v.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),U=decodeURIComponent(atob(x).split("").map(function(Q){return"%"+("00"+Q.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(U)}d.d(E,{$:()=>o,J:()=>u})},4049:(le,E,d)=>{"use strict";function p(u,o,v=!0){const O=/((?::)[(\w|\-)\\.]+)/g,x={};let U=u,Q=O.exec(u);for(;null!==Q;){const be=Q[0].substring(1).split(".");x[be.join("_")]=be.reduce((X,ne)=>X[ne]?X[ne]:ne,null!=o?o:{}),Q=O.exec(u)}return U=u.replace(/:/g,""),v?U.split("/").map(re=>encodeURI(re)).join("/"):U}d.d(E,{K:()=>p})},7879:(le,E,d)=>{"use strict";d.d(E,{A0:()=>_e,Db:()=>et,Dh:()=>ze,E7:()=>w,Ek:()=>je,G9:()=>_,GA:()=>k,GZ:()=>fe,Gw:()=>Ke,Lb:()=>J,P8:()=>bt,TH:()=>We,Tk:()=>$,Ty:()=>ce,VP:()=>z,Wp:()=>Se,ZC:()=>He,aM:()=>ve,bJ:()=>oe,fj:()=>H,fs:()=>hn,l2:()=>ln,l6:()=>B,lz:()=>at,r6:()=>D,rQ:()=>Ue,sZ:()=>ge,wx:()=>G,xk:()=>Te,yC:()=>V,z5:()=>Fe});var p=d(9379),u=d(467),o=d(3953),v=d(4404),x=d(362),U=d.n(x),Q=d(5630),re=d(6010),be=d(9312),ue=d(3178),X=d(5706),ne=d(8448),te=d(177);const $=["request_debug","debug","preview","skipSSR","configURL","leanDom"];function J(P,F){return se.apply(this,arguments)}function se(){return(se=(0,u.A)(function*(P,F,de=Tt=>Promise.resolve(!Tt.purchaseData.purchased),Ae=null,Oe=!0,vt){let Tt,Dt,en;if(vt||(vt=be.q.injector.get(re.Wj)),Array.isArray(P)?Dt=P.filter(Dn=>!!Dn):Tt=P,Dt?en=Dt.map(Dn=>Dn.issue||Dn):Tt?(Ae?(en=[Tt.content],en.length&&function De(P,F,de){var Ae;const Oe=P.getIssues(!0);return(null===(Ae=P.issue)||void 0===Ae?void 0:Ae.id)!==F.id&&!Oe.find(vt=>vt.id===F.id)||!!Oe.find(vt=>de[vt.id]&&!U()(vt,de[vt.id]))}(Tt,F,Ae)&&(en=[Tt.content])):en=[Tt.content],en=en.filter(Dn=>Dn.type!==v.IssueType.ISSUE)):en=[],en.length){const Dn=[];for(const Pn of en)(yield de(Pn,vt))&&Pn.previewIssue?Dn.push(Pn.previewIssue.id):Dn.push(Pn.id);return Dn}return[(yield de(F,vt))&&F.previewIssue?F.previewIssue.id:F.id]})).apply(this,arguments)}function ce(P,F){let de;const Ae={OR:P.map(Oe=>({id:{value:Oe}}))};return de=F?{AND:[Ae,F]}:Ae,de}const _={contentType:v.CatalogContentType.ISSUE,id:null,name:null,index:null,description:null,version:null,state:null,type:null,publicationId:null,comingSoon:null,purchasable:void 0,purchased:void 0,access:v.Access.PURCHASABLE,purchasedBy:null,properties:{},numberOfPages:null,contentLength:null,publicationDate:null,lastModified:null,thumbnails:{default:null},thumbnailsExtended:{},tags:[],categories:[],purchaseData:{purchased:void 0,purchasedBy:[]}};function w(P,F,de){const Ae=P.version;switch(de){case v.IntOperation.EQUAL:return Ae.major===F.major&&Ae.minor===F.minor;case v.IntOperation.LESS_THAN:return Ae.major<F.major||Ae.major===F.major&&Ae.minor<F.minor;case v.IntOperation.GREATER_THAN:return Ae.major>F.major||Ae.major===F.major&&Ae.minor>F.minor}}function B(P){return P&&9===P.length&&P.startsWith("#")?"#"+P.slice(3):P}function z(P,F,de,Ae=""){return(0,X.xl)(P)?oe(P,F,de,Ae):{}}function oe(P,F,de,Ae=""){let Oe=P?(0,p.A)({[Ae+"ISSUE_ID"]:P.id,[Ae+"ISSUE_NAME"]:P.name,[Ae+"ISSUE_TYPE"]:P.type,[Ae+"ISSUE_CATEGORIES"]:P.categories&&P.categories.join(","),[Ae+"ISSUE_TAGS"]:P.tags&&P.tags.join(","),[Ae+"ISSUE_PRODUCT_ID"]:P.productId,[Ae+"ISSUE_PURCHASABLE"]:"boolean"==typeof P.purchasable?P.purchasable.toString():P.purchasable,[Ae+"ISSUE_PURCHASED"]:"boolean"==typeof P.purchased?P.purchased.toString():P.purchased},P.properties?Object.keys(P.properties).reduce((vt,Tt)=>(0,p.A)((0,p.A)({},vt),{},{["".concat(Ae,"ISSUE_PROPERTY_").concat(ze(Tt))]:P.properties[Tt]}),{}):{}):{};return de&&(Oe=(0,p.A)((0,p.A)({},Oe),{},{[Ae+"ISSUE_PRICE"]:de.formattedPrice,[Ae+"ISSUE_PRICE_VALUE"]:de.price.toString(),[Ae+"ISSUE_PRICE_CURRENCY"]:de.currency})),F&&(Oe=(0,p.A)((0,p.A)((0,p.A)({},Oe),k(F,Ae)),{},{[Ae+"ISSUE_LATEST"]:F.currentIssueId===P.id?"true":"false"})),Oe}function V(P,F){let de=P?{ISSUE_TYPE:P.type,ISSUE_CATEGORIES:P.categories&&P.categories.join(","),ISSUE_TAGS:P.tags&&P.tags.join(","),ISSUE_PRODUCT_ID:P.productId,ISSUE_PURCHASABLE:"boolean"==typeof P.purchasable?P.purchasable.toString():P.purchasable,ISSUE_PURCHASED:"boolean"==typeof P.purchased?P.purchased.toString():P.purchased}:{};return F&&(de=(0,p.A)((0,p.A)((0,p.A)({},de),function K(P){return P?{PUBLICATION_TYPE:P.type}:{}}(F)),{},{ISSUE_LATEST:F.currentIssueId===P.id?"true":"false"})),de}function k(P,F=""){return P?(0,p.A)({[F+"PUBLICATION_ID"]:P.id,[F+"PUBLICATION_NAME"]:P.name,[F+"PUBLICATION_TYPE"]:P.type},P.properties?Object.keys(P.properties).reduce((de,Ae)=>(0,p.A)((0,p.A)({},de),{},{["".concat(F,"PUBLICATION_PROPERTY_").concat(ze(Ae))]:P.properties[Ae]}),{}):{}):{}}function ge(P){return P?(0,p.A)({CATEGORY_ID:P.id,CATEGORY_NAME:P.name,CATEGORY_PARENT_CATEGORY_ID:P.parentCategoryId},P.properties?Object.keys(P.properties).reduce((F,de)=>(0,p.A)((0,p.A)({},F),{},{["CATEGORY_PROPERTY_".concat(ze(de))]:P.properties[de]}),{}):{}):{}}function ve(P,F,de){const Ae=P.contentType===v.CatalogContentType.ISSUE?{BOOKMARK_PAGE_LABEL:P.pageLabel}:{};let Oe=P?(0,p.A)((0,p.A)({BOOKMARK_TITLE:P.title,BOOKMARK_DESCRIPTION:P.description,BOOKMARK_PAGE_LABEL:P.pageLabel,BOOKMARK_CREATION_DATE:new Date(P.createdAt).toLocaleDateString((0,ue.JK)())},Ae),P.customData?Object.keys(P.customData).reduce((vt,Tt)=>(0,p.A)((0,p.A)({},vt),{},{["BOOKMARK_CUSTOM_DATA_".concat(ze(Tt))]:P.customData[Tt]}),{}):{}):{};return F&&(Oe=(0,p.A)((0,p.A)({},Oe),oe(F,de))),Oe}function Fe(P,F){let de=P?(0,p.A)({SUBSCRIPTION_ID:P.id,SUBSCRIPTION_NAME:P.name,SUBSCRIPTION_PRODUCT_ID:P.productId,SUBSCRIPTION_PURCHASED:""+P.purchased,SUBSCRIPTION_DURATION:""+P.duration,SUBSCRIPTION_TYPE:P.type},P&&P.properties?Object.keys(P.properties).reduce((Ae,Oe)=>(0,p.A)((0,p.A)({},Ae),{},{["SUBSCRIPTION_PROPERTY_".concat(ze(Oe))]:P.properties[Oe]}),{}):{}):{};return F&&(de=(0,p.A)((0,p.A)({},de),{},{SUBSCRIPTION_PRICE:F.formattedPrice,SUBSCRIPTION_PRICE_VALUE:F.price.toString(),SUBSCRIPTION_PRICE_CURRENCY:F.currency})),de}function We(P,F){let de=P?(0,p.A)({PRODUCT_ID:P.productId,PRODUCT_NAME:P.name,PRODUCT_DESCRIPTION:P.description,PRODUCT_TYPE:P.type,PRODUCT_HIDDEN:"boolean"==typeof P.hidden?P.hidden.toString():P.hidden,PRODUCT_PURCHASED:(0,X.ak)(P)?P.purchased.toString():void 0},P.properties?Object.keys(P.properties).reduce((Ae,Oe)=>(0,p.A)((0,p.A)({},Ae),{},{["PRODUCT_PROPERTY_".concat(ze(Oe))]:P.properties[Oe]}),{}):{}):{};return F&&(de=(0,p.A)((0,p.A)({},de),{},{PRODUCT_PRICE:F.formattedPrice,PRODUCT_PRICE_VALUE:F.price.toString(),PRODUCT_PRICE_CURRENCY:F.currency})),de}function ze(P){return P.toUpperCase().replace(/-/g,"_")}function bt(P){return Object.keys(P).reduce((F,de)=>((P[de]||"boolean"==typeof P[de])&&(F[ze(de)]=P[de]),F),{})}function Ke(P){return Object.values([ne.r.ISSUE_ARTICLE,ne.r.READ_MODE_ARTICLE]).includes(P)}function Me(P,F=""){let de={};return P&&Object.entries(P).forEach(([Ae,Oe])=>{if(Oe instanceof Array)Oe.forEach(vt=>de=(0,p.A)((0,p.A)({},de),Me(vt)));else if("object"==typeof Oe)Oe.key&&Oe.value&&"string"==typeof Oe.value&&0===Oe.value.indexOf(":")?de[Oe.value.substr(1)]="".concat(F).concat(F?".":"").concat(Ae,".").concat(Oe.key):de=(0,p.A)((0,p.A)({},de),Me(Oe,"".concat(F).concat(F?".":"").concat(Ae)));else if("string"==typeof Oe&&0===Oe.indexOf(":")){const vt=Oe.substr(1);de[vt]="".concat(F).concat(F?".":"").concat(Ae)}}),de}function tt(P){const F=[];return P.forEach(de=>{de.dataSource&&F.push(de.dataSource),de.content&&Array.isArray(de.content)&&F.push(...tt(de.content))}),F}function He(P,F,de,Ae){return ot.apply(this,arguments)}function ot(){return(ot=(0,u.A)(function*(P,F,de,Ae){const Oe=F.path,Tt=(0,Q.qg)(Oe).filter(en=>"string"!=typeof en).map(en=>en.name||null).filter(en=>!!en);if(!(Tt.length>0))return Oe;{var Dt;const en=null!==(Dt=F.data)&&void 0!==Dt?Dt:[];
1en.push(...tt(F.content));let Dn={};en&&en.forEach($n=>{const In=$n.filter;Dn=(0,p.A)((0,p.A)({},Dn),Me(In))}),Tt.includes("postSlug")&&!Dn.postSlug&&(Dn.postSlug="properties.slug"),Tt.includes("contentSlug")&&!Dn.contentSlug&&(Dn.contentSlug="properties.slug"),Tt.includes("bundleSlug")&&(Dn.bundleSlug="bundle.properties.slug");const Pn=Object.entries(Dn);if(Pn.length>0){let $n;Ae?$n=Ae:de&&($n=yield P.getCatalogContent(de));const In=$n.bundleId;In&&($n.bundle=yield P.getCatalogContent(In)),Pn.forEach(([xt,qe])=>{const Kt=qe.split(".");Dn[xt]=Kt.reduce((Ie,Ve)=>null==Ie?void 0:Ie[Ve],$n)||" "})}try{return(0,Q.wE)(Oe,{encode:encodeURIComponent})(Dn)}catch($n){return console.warn("Error interpolating path: "+$n),Oe}}})).apply(this,arguments)}function je(P,F){let Ae,Oe,vt,Tt,de=F.length;F+=" ",P=(P=(P=P.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"")).replace(/}(\s*)@/g,"}@")).replace(/}(\s*)}/g,"}}");for(let Dt=0;Dt<P.length-2;Dt++)Ae=P[Dt],Oe=P[Dt+1],"@"===Ae&&"f"!==Oe&&(vt=!0),!vt&&"{"===Ae&&(Tt=!0),Tt&&"}"===Ae&&(Tt=!1),!Tt&&"@"!==Oe&&"}"!==Oe&&("}"===Ae||","===Ae||("{"===Ae||";"===Ae)&&vt)&&(P=P.slice(0,Dt+1)+F+P.slice(Dt+1),Dt+=de,vt=!1);return 0!==P.indexOf(F)&&0!==P.indexOf("@")&&(P=F+P),P}const fe=new o.nKC("Location"),D=new o.nKC("PurpleEnvironment"),H=new o.nKC("APP_DATA"),Se=new o.nKC("PXP_CONFIG");function Ue(P,F,de,Ae){return{provide:P,useFactory:(Oe,vt,Tt)=>{if((0,te.UE)(vt))return Oe.hasKey(F)?Oe.get(F,{}):Tt.get(de);{const Dt=Tt.get(Ae);return Oe.set(F,Dt),Dt}},deps:[o.pJN,o.Agw,o.zZn]}}const at=new o.nKC("PurpleEnvironmentServer"),hn=new o.nKC("PurpleEnvironmentApp"),ln=new o.nKC("APP_DATA_SERVER"),et=new o.nKC("APP_DATA_APP"),G=new o.nKC("PXP_CONFIG_SERVER"),_e=new o.nKC("PXP_CONFIG_APP");function Te(P,F){const Ae="Purple Experience ".concat(P?"SSR ":" ","| (c) Purple DS - Sprylab"),Oe=Array(Ae.length).fill("=").join("");return"".concat(Oe,"\n")+"".concat(Ae,"\n")+"".concat(Oe,"\n")+"Version ".concat(F.packageVersion," | Commit @").concat(F.commit," on ").concat(F.branch,"\n")+"Built:  ".concat(F.buildDate,"\n")+"Commit: ".concat(F.commitDate)}},8890:(le,E,d)=>{"use strict";d.d(E,{os:()=>Ue,ZE:()=>Se,TM:()=>fe,q3:()=>D,Ne:()=>at,S8:()=>ln,eh:()=>hn});var p=d(7786),u=d(3726),o=d(1985),v=d(5964),O=d(6354),x=d(3294),U=d(152),Q=d(6697),re=d(362),be=d.n(re),ue=function(){if(typeof Map<"u")return Map;function et(G,_e){var Te=-1;return G.some(function(P,F){return P[0]===_e&&(Te=F,!0)}),Te}return function(){function G(){this.__entries__=[]}return Object.defineProperty(G.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),G.prototype.get=function(_e){var Te=et(this.__entries__,_e),P=this.__entries__[Te];return P&&P[1]},G.prototype.set=function(_e,Te){var P=et(this.__entries__,_e);~P?this.__entries__[P][1]=Te:this.__entries__.push([_e,Te])},G.prototype.delete=function(_e){var Te=this.__entries__,P=et(Te,_e);~P&&Te.splice(P,1)},G.prototype.has=function(_e){return!!~et(this.__entries__,_e)},G.prototype.clear=function(){this.__entries__.splice(0)},G.prototype.forEach=function(_e,Te){void 0===Te&&(Te=null);for(var P=0,F=this.__entries__;P<F.length;P++){var de=F[P];_e.call(Te,de[1],de[0])}},G}()}(),X=typeof window<"u"&&typeof document<"u"&&window.document===document,ne=typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")(),te="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ne):function(et){return setTimeout(function(){return et(Date.now())},1e3/60)},De=["top","right","bottom","left","width","height","size","weight"],Ce=typeof MutationObserver<"u",ce=function(){function et(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function J(et,G){var _e=!1,Te=!1,P=0;function F(){_e&&(_e=!1,et()),Te&&Ae()}function de(){te(F)}function Ae(){var Oe=Date.now();if(_e){if(Oe-P<2)return;Te=!0}else _e=!0,Te=!1,setTimeout(de,G);P=Oe}return Ae}(this.refresh.bind(this),20)}return et.prototype.addObserver=function(G){~this.observers_.indexOf(G)||this.observers_.push(G),this.connected_||this.connect_()},et.prototype.removeObserver=function(G){var _e=this.observers_,Te=_e.indexOf(G);~Te&&_e.splice(Te,1),!_e.length&&this.connected_&&this.disconnect_()},et.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},et.prototype.updateObservers_=function(){var G=this.observers_.filter(function(_e){return _e.gatherActive(),_e.hasActive()});return G.forEach(function(_e){return _e.broadcastActive()}),G.length>0},et.prototype.connect_=function(){!X||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ce?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},et.prototype.disconnect_=function(){!X||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},et.prototype.onTransitionEnd_=function(G){var _e=G.propertyName,Te=void 0===_e?"":_e;De.some(function(F){return!!~Te.indexOf(F)})&&this.refresh()},et.getInstance=function(){return this.instance_||(this.instance_=ne
1w et),this.instance_},et.instance_=null,et}(),_=function(et,G){for(var _e=0,Te=Object.keys(G);_e<Te.length;_e++){var P=Te[_e];Object.defineProperty(et,P,{value:G[P],enumerable:!1,writable:!1,configurable:!0})}return et},R=function(et){return et&&et.ownerDocument&&et.ownerDocument.defaultView||ne},w=We(0,0,0,0);function B(et){return parseFloat(et)||0}function z(et){for(var G=[],_e=1;_e<arguments.length;_e++)G[_e-1]=arguments[_e];return G.reduce(function(Te,P){return Te+B(et["border-"+P+"-width"])},0)}var K=function(){return typeof SVGGraphicsElement<"u"?function(et){return et instanceof R(et).SVGGraphicsElement}:function(et){return et instanceof R(et).SVGElement&&"function"==typeof et.getBBox}}();function ve(et){return X?K(et)?function V(et){var G=et.getBBox();return We(0,0,G.width,G.height)}(et):function k(et){var G=et.clientWidth,_e=et.clientHeight;if(!G&&!_e)return w;var Te=R(et).getComputedStyle(et),P=function oe(et){for(var _e={},Te=0,P=["top","right","bottom","left"];Te<P.length;Te++){var F=P[Te];_e[F]=B(et["padding-"+F])}return _e}(Te),F=P.left+P.right,de=P.top+P.bottom,Ae=B(Te.width),Oe=B(Te.height);if("border-box"===Te.boxSizing&&(Math.round(Ae+F)!==G&&(Ae-=z(Te,"left","right")+F),Math.round(Oe+de)!==_e&&(Oe-=z(Te,"top","bottom")+de)),!function ge(et){return et===R(et).document.documentElement}(et)){var vt=Math.round(Ae+F)-G,Tt=Math.round(Oe+de)-_e;1!==Math.abs(vt)&&(Ae-=vt),1!==Math.abs(Tt)&&(Oe-=Tt)}return We(P.left,P.top,Ae,Oe)}(et):w}function We(et,G,_e,Te){return{x:et,y:G,width:_e,height:Te}}var ze=function(){function et(G){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=We(0,0,0,0),this.target=G}return et.prototype.isActive=function(){var G=ve(this.target);return this.contentRect_=G,G.width!==this.broadcastWidth||G.height!==this.broadcastHeight},et.prototype.broadcastRect=function(){var G=this.contentRect_;return this.broadcastWidth=G.width,this.broadcastHeight=G.height,G},et}(),bt=function(){return function et(G,_e){var Te=function Fe(et){var G=et.x,_e=et.y,Te=et.width,P=et.height,F=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,de=Object.create(F.prototype);return _(de,{x:G,y:_e,width:Te,height:P,top:_e,right:G+Te,bottom:P+_e,left:G}),de}(_e);_(this,{target:G,contentRect:Te})}}(),Ke=function(){function et(G,_e,Te){if(this.activeObservations_=[],this.observations_=new ue,"function"!=typeof G)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=G,this.controller_=_e,this.callbackCtx_=Te}return et.prototype.observe=function(G){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(G instanceof R(G).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(G)||(_e.set(G,new ze(G)),this.controller_.addObserver(this),this.controller_.refresh())}},et.prototype.unobserve=function(G){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u")&&Element instanceof Object){if(!(G instanceof R(G).Element))throw new TypeError('parameter 1 is not of type "Element".');var _e=this.observations_;_e.has(G)&&(_e.delete(G),_e.size||this.controller_.removeObserver(this))}},et.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},et.prototype.gatherActive=function(){var G=this;this.clearActive(),this.observations_.forEach(function(_e){_e.isActive()&&G.activeObservations_.push(_e)})},et.prototype.broadcastActive=function(){if(this.hasActive()){var G=this.callbackCtx_,_e=this.activeObservations_.map(function(Te){return new bt(Te.target,Te.broadcastRect())});this.callback_.call(G,_e,G),this.clearActive()}},et.prototype.clearActive=function(){this.activeObservations_.splice(0)},et.prototype.hasActive=function(){return this.activeObservations_.length>0},et}(),Me=typeof WeakMap<"u"?new WeakMap:new ue,tt=function(){return function et(G){if(!(this instanceof et))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var _e=ce.getInstance(),Te=new Ke(G,_e,this);Me.set(this,Te)}}();["observe","unobserve","disconnect"].forEach(function(et){tt.prototype[et]=function(){var G;return(G=Me.get(this))[et].apply(G,arguments)}});const ot=typeof ne.ResizeObserver<"u"?ne.ResizeObserver:tt;var je=d(2962);const fe=(0,v.p)(et=>!!et),D=(0,v.p)(et=>void 0!==et);function Se(){return(0,x.F)((et,G)=>JSON.stringify(et)===JSON.stringify(G))}function Ue(){return(0,x.F)((et,G)=>be()(et,G))}
1function at(){return(0,p.h)((0,u.R)(window,"resize"),(0,u.R)(window,"orientationchange")).pipe((0,U.B)(100))}function hn(et,G,_e){return new o.c(Te=>{var P,F;if(null!=_e&&_e.skipWait)return void Te.next();const de={root:"primary"===(0,je.kO)(G.nativeElement)&&window!==window.parent?document.scrollingElement:null};de.rootMargin=(null==_e?void 0:_e.rootMargin)||(null===(P=window.storefrontHooks)||void 0===P?void 0:P.getIntersectionMargin)&&(null===(F=window.storefrontHooks)||void 0===F?void 0:F.getIntersectionMargin())||"200px",null!=_e&&_e.rootMargin&&(de.rootMargin=_e.rootMargin);const Ae=new IntersectionObserver(Oe=>{Oe.forEach(vt=>{vt.isIntersecting&&!et.loaded&&(Te.next(),Ae.disconnect())})},de);Ae.observe(G.nativeElement),Te.add(()=>Ae.disconnect())}).pipe((0,Q.s)(1))}function ln(et){return new o.c(G=>{const _e=new ot(()=>G.next());G.add(()=>_e.disconnect()),_e.observe(et)})}(0,O.T)(et=>(console.log(et),et))},7370:(le,E,d)=>{"use strict";d.d(E,{Al:()=>X,HJ:()=>U,KC:()=>ne,P3:()=>Q,Tr:()=>ue,_o:()=>re,bT:()=>te,tb:()=>o,vh:()=>O});var p=d(7027),u=d(177);function o($){try{if(new URL($).protocol.startsWith("http"))return!0}catch(J){return!1}return!1}const v=/^\w+:\/\//;function O($){return v.test($)}function U($){const J=$.indexOf("/",8);return $.substr(J)}function Q($,J){try{return new URL(J).searchParams.get($)}catch(se){return null}}function re($){return"true"===new URL($).searchParams.get("debug")}function ue($,J){return function be($){return"true"===new URL($).searchParams.get("skipSSR")}($)?(0,u.UE)(J):(0,u.Vy)(J)}function X($,J){return J.resourceUrlTemplate.replace("{path}",$)}function ne($){return(0,p.A)(/(.+)\/delivery\/web\/dynamicResources\/(.+?)(\/.+)\?(.+)?/g,{domain:1,appId:2,path:3,query:4}).exec($)}function te($,J){try{const se=ne($);if(se){const De=J.preview,Ce=J.appWebConfig.dynamicResources.lastModified,{path:ce,query:_}=se.groups;if(!_.includes("version=".concat(Ce))||De&&!_.includes("preview=true"))return X(ce,J)}}catch(se){}return $}},8582:(le,E,d)=>{"use strict";d.d(E,{l:()=>ne,x:()=>te});var p,u=new Uint8Array(16);function o(){if(!p&&!(p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return p(u)}const v=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var U=[],Q=0;Q<256;++Q)U.push((Q+256).toString(16).substr(1));const be=function re($){var J=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,se=(U[$[J+0]]+U[$[J+1]]+U[$[J+2]]+U[$[J+3]]+"-"+U[$[J+4]]+U[$[J+5]]+"-"+U[$[J+6]]+U[$[J+7]]+"-"+U[$[J+8]]+U[$[J+9]]+"-"+U[$[J+10]]+U[$[J+11]]+U[$[J+12]]+U[$[J+13]]+U[$[J+14]]+U[$[J+15]]).toLowerCase();if(!function O($){return"string"==typeof $&&v.test($)}(se))throw TypeError("Stringified UUID is invalid");return se},X=function ue($,J,se){var De=($=$||{}).random||($.rng||o)();if(De[6]=15&De[6]|64,De[8]=63&De[8]|128,J){se=se||0;for(var Ce=0;Ce<16;++Ce)J[se+Ce]=De[Ce];return J}return be(De)};function ne(){return X()}function te($){if($&&"object"==typeof $)if(Array.isArray($))for(const J of $)te(J);else if(Object.values($).forEach(J=>{te(J)}),$.content&&Array.isArray($.content))for(const J of $.content)J&&"object"==typeof J&&(J._uuid=ne())}},6080:(le,E,d)=>{"use strict";d.d(E,{v:()=>Ue});var p=d(9379),u=d(467),o=d(177),v=d(3953),O=d(3331),x=d(4404),Q=d(3726),re=d(7786),be=d(6697),ue=d(5964),X=d(3386),ne=d(4616),te=d(4452),$=d(8179),J=d(8913),se=d(6010),De=d(8075),Ce=d(244),ce=d(9516),_=d(9118),R=d(5636),w=d(4748),B=d(8251),z=d(610),oe=d(3178),
1V=d(7598),k=d(7370),K=d(1652),ge=d(7879),ve=d(4520),Fe=d(9360),We=d(2868),ze=d(5632),bt=d(8909);const Ke=at=>[at];function Me(at,hn){if(1&at){const ln=v.RV6();v.j41(0,"div",0),v.nrm(1,"span",1),v.j41(2,"button",2),v.bIt("click",function(){v.eBV(ln);const G=v.XpG();return v.Njj(G.reload())}),v.k0s()()}if(2&at){const ln=v.XpG();v.R7$(),v.Y8G("storefrontTranslate",ln.viewConfig.errorMessage||"VIEW_ERROR")("storefrontTranslateArgs",v.eq3(3,Ke,ln.dataSourceError.code)),v.R7$(),v.Y8G("storefrontTranslate",ln.viewConfig.errorButtonLabel||"VIEW_ERROR_BUTTON")}}function tt(at,hn){}function He(at,hn){if(1&at&&v.DNE(0,tt,0,0,"ng-template",4),2&at){const ln=hn.$implicit,et=v.XpG(2);v.Y8G("baseConfig",et.children[ln])}}function ot(at,hn){}function je(at,hn){if(1&at){const ln=v.RV6();v.DNE(0,ot,0,0,"ng-template",7),v.bIt("inViewport",function(G){v.eBV(ln);const _e=v.XpG().$index,Te=v.XpG(3);return v.Njj(Te.onVisibilityChanged(_e,G))})}if(2&at){const ln=v.XpG().$implicit,et=v.XpG(3);v.Y8G("baseConfig",ln)("controlsSticky",ln.sticky)("lazy",et.isLazy)}}function fe(at,hn){1&at&&v.DNE(0,je,1,3,null,6),2&at&&v.vxM(hn.$implicit._isEnabled?0:-1)}function D(at,hn){if(1&at&&(v.j41(0,"div",5),v.Z7z(1,fe,1,1,null,null,v.BUC().trackByElement,!0),v.k0s()),2&at){const ln=v.XpG(2);v.Y8G("storefrontPullToRefresh",ln.viewConfig.pullToRefresh)("onRefresh",ln.onRefresh),v.R7$(),v.Dyx(ln.children)}}function H(at,hn){if(1&at&&(v.j41(0,"div",3),v.Z7z(1,He,1,1,null,4,v.BUC().trackByElement,!0),v.k0s(),v.DNE(3,D,3,2,"div",5)),2&at){const ln=v.XpG();v.R7$(),v.Dyx(ln.visibleStickyChildren),v.R7$(2),v.vxM(ln.viewConfig&&ln.children?3:-1)}}const Se=(0,Fe.zk)();let Ue=(()=>{var at;class hn{constructor(){this.injector=(0,v.WQX)(v.zZn),this.document=(0,v.WQX)(o.qQ),this.platformId=(0,v.WQX)(v.Agw),this.purpleEnv=(0,v.WQX)(ge.r6),this.route=(0,v.WQX)(O.nX),this.store=(0,v.WQX)(B.B),this.changeDetectorRef=(0,v.WQX)(v.gRc),this.ngZone=(0,v.WQX)(v.SKi),this.contextService=(0,v.WQX)(ce.V),this.cleanUpService=(0,v.WQX)(Ce.I),this.elementRef=(0,v.WQX)(v.aKT),this.transferState=(0,v.WQX)(v.pJN),this.ssrService=(0,v.WQX)(w.i),this.kioskConfigService=(0,v.WQX)(_.x),this.purpleService=(0,v.WQX)(se.Wj),this.metaService=(0,v.WQX)(R.R),this.globalService=(0,v.WQX)(K.d),this.viewService=(0,v.WQX)(ve.z),this.serverOnlyService=(0,v.WQX)(ze.l),this.destroyRef=(0,v.WQX)(v.abz),this.context={},this.dataSources=[],this.visibleStickyChildren=new Set,this.isModal=!1,this.onRefresh=()=>this.update()}get className(){return this.viewConfig&&this.viewConfig.name}ngOnInit(){var et=this;this.isLazy=this.getIsLazy(),this.route.data.subscribe(()=>{}),this.viewService.distinctView$(this.isModal).pipe((0,be.s)(1)).subscribe(function(){var G=(0,u.A)(function*({cfg:_e}){yield et.updateViewWithConfig(_e)});return function(_e){return G.apply(this,arguments)}}()),this.store.subscribe((0,Q.R)(Se,V.aU).pipe((0,ue.p)(G=>G.detail.type===x.APP_STATE_TYPE.RESUMED)).pipe((0,X.c)(1e3)),()=>{this.handleUpdate()}),this.store.subscribe((0,Q.R)(Se,V.YT),()=>{this.handleUpdate()})}updateViewWithConfig(et){var G=this;return(0,u.A)(function*(){const{viewConfig:_e,pathParams:Te,viewContext:P}=et;if(console.debug("init view '".concat(_e.name,"' at path '").concat(G.getPath(),"'")),P&&G.contextService.setMultipleData(P),!(0,ne.m)(_e))return;G.viewConfig=_e,(0,o.Vy)(G.platformId)&&G.viewConfig.cache&&G.metaService.setCacheMeta(G.viewConfig.cache),G.viewConfig.errorPage&&G.serverOnlyService.setStatusCode(Number((null==P?void 0:P.errorCode)||404));const F=(0,$.uQ)(G.viewConfig.title,G.contextService.getCurrentViewContext(),G.contextService.$functions,G.globalService.getGlobalData(),!1),de=G.viewConfig.seo?(0,$.uQ)(G.viewConfig.seo,G.contextService.getCurrentViewContext(),G.contextService.$functions,G.globalService.getGlobalData(),!1):{};G.metaService.setViewSeoMetadata(de,F),G.onConfigReceived(),G.contextService.cancelPendingParamUpdates(),yield G.contextService.updateParamsContext(),G.outlet=G.contextService.getActiveOutlet(),Te&&G.contextService.setOutletData("pathParams",Te,G.outlet);let Ae=!0,Oe=!1;G.store.subscribe(G.contextService.viewContext$,function(){var vt=(0,u.A)(function*(Tt){if(Tt.outlet===G.outlet){G.context=Tt,Ae&&(G.loadDataSources(),G.loadPageConfigs(),G.loadJsonLD(),Ae=!1),G.children=G.viewConfig&&G.viewConfig.content.map(Dt=>{const en=(0,$.ru)(Dt,G.context,G.contextService.$functions,G.globalService.getGlobalData(),!1);return(0,p.A)((0,p.A)({},Dt),{},{_isEnabled:en})}),G.changeDetectorRef.detectChanges();for(const Dt of G.childComponents)yield Dt.lazyLoad();if(!Oe){const Dt=G.getTrackingConfig(Tt);Dt&&(G.store.dispatch((0,z.$3)(Dt)),Oe=!0)}Ae=!1}});return function(Tt){return vt.apply(this,arguments)}}(),oe.lQ,oe.lQ,"viewContext")})()}ngOnDestroy(){this.contextService.clear(),this.contextService.clearOutletData(),this.metaService.clearViewSeoMetadata()}reload(){Se.location.reload()}handleUpdate(){this.pullToRefresh?this.pullToRefresh.refresh():this.update(),this.cleanUpService.deleteExpiredIssues()}loadDataSources(){this.dataSources=[];const et=this.viewConfig.data;if(et){this.dataSources=et.map(Te=>(Te=(0,$.uQ)(Te,this.context,this.contextService.$functions,this.globalService.getGlobalData()),(0,te.O8)(this.injector,Te,this.elementRef.nativeElement,this.document))).filter(Te=>!!Te);const G=(0,re.h)(...this.dataSources.map(Te=>Te.error$));this.store.subscribe(G,Te=>{this.dataSourceError=Te}
1,oe.lQ,oe.lQ,"error"),this.dataSources.forEach(Te=>{Te.loadData()})}}loadPageConfigs(){const et=(0,$.uQ)(this.viewConfig.pageConfigs,this.context,this.contextService.$functions,this.globalService.getGlobalData())||null;this.contextService.setData("pageConfigs",et)}loadJsonLD(){let et=this.document.getElementById("json-ld");if(!et&&this.viewConfig.jsonLD&&(et=this.document.createElement("script"),et.setAttribute("id","json-ld"),et.setAttribute("type","application/ld+json"),document.head.appendChild(et)),this.viewConfig.jsonLD){let G=(0,$.uQ)(this.viewConfig.jsonLD,this.context,this.contextService.$functions,this.globalService.getGlobalData());et.innerHTML=G}else et&&(et.innerHTML="")}getPath(){return this.contextService.getPath()||(console.error("view.getPath called but no path in ctx service"),(0,o.Vy)(this.platformId)||Se.isUniversal?(0,De.ON)((0,k.HJ)(this.document.location.href)):(0,De.ON)(Se.location.hash).split("#/")[1])}getTrackingConfig(et){const G=(0,p.A)({},this.route.snapshot.queryParams);for(let Te in this.viewConfig.viewTrackingParams){let P=(0,$.uQ)(Te,et,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(P&&!(0,$.E7)(P))return;let F=(0,$.uQ)(this.viewConfig.viewTrackingParams[Te],et,this.contextService.$functions,this.globalService.getGlobalData(),!0);if(P&&!(0,$.E7)(P))return;G[P]=F}return{url:this.viewService.getAbsoluteLastPath()||Se.location.href,targetUrl:Se.location.href,key:this.viewConfig.name,params:G}}onConfigReceived(){this.document.scrollingElement.scrollTop=0}update(){var et=this;return(0,u.A)(function*(){yield Promise.all([et.contextService.update(),et.purpleService.updateDownloadHandlers(),et.purpleService.updateBookmarks(),et.purpleService.updateRepeatablePublicationProducts()])})()}onVisibilityChanged(et,G){G?this.visibleStickyChildren.delete(et):this.visibleStickyChildren.add(et)}trackByElement(et,G){if("string"==typeof G||"number"==typeof G)return G||et;const _e=null==G?void 0:G._uuid;if(!_e)throw"error trackByElement: expected _uuid";return _e}getIsLazy(){return!(Se.isUniversal&&!this.ssrService.currentPrebootStatus)}}return(at=hn).\u0275fac=function(et){return new(et||at)},at.\u0275cmp=v.VBU({type:at,selectors:[["storefront-view"]],viewQuery:function(et,G){if(1&et&&(v.GBs(J.h,5),v.GBs(We.q,5)),2&et){let _e;v.mGM(_e=v.lsd())&&(G.pullToRefresh=_e.first),v.mGM(_e=v.lsd())&&(G.childComponents=_e)}},hostVars:2,hostBindings:function(et,G){2&et&&v.HbH(G.className)},standalone:!1,features:[v.Jv_([B.B])],decls:2,vars:1,consts:[[1,"view-error"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"action-button",3,"click","storefrontTranslate"],[1,"sticky-elements"],[3,"pxpDynamicComponent","baseConfig"],[1,"content",3,"storefrontPullToRefresh","onRefresh"],[3,"pxpDynamicComponent","baseConfig","controlsSticky","lazy"],[3,"inViewport","pxpDynamicComponent","baseConfig","controlsSticky","lazy"]],template:function(et,G){1&et&&v.DNE(0,Me,3,5,"div",0)(1,H,4,1),2&et&&v.vxM(G.dataSourceError?0:1)},dependencies:[J.h,bt.M,We.q],styles:["storefront-view,.pxp-view{display:block;padding-top:var(--appBarHeight);padding-bottom:var(--navigationHeight);transition:all .15s ease;min-height:100vh;background-color:var(--backgroundColor)}storefront-view .content,.pxp-view .content{position:relative}storefront-view .sticky-elements,.pxp-view .sticky-elements{position:fixed;width:100%;z-index:19}storefront-view .view-error,.pxp-view .view-error{display:flex;flex-direction:column;align-items:flex-start;padding:var(--gutter)}storefront-view .view-error>.action-button,.pxp-view .view-error>.action-button{background-color:var(--secondaryColor);color:#fff}body.scrolled storefront-tab-navigation.scroll-hide~storefront-view,body.scrolled storefront-tab-navigation.scroll-hide~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-hide~storefront-view,body.scrolled .pxp-tab-navigation.scroll-hide~.pxp-view{padding-bottom:0}body.scrolled storefront-tab-navigation.scroll-shrink~storefront-view,body.scrolled storefront-tab-navigation.scroll-shrink~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-shrink~storefront-view,body.scrolled .pxp-tab-navigation.scroll-shrink~.pxp-view{padding-bottom:var(--navigationShrinkHeight)}\n"],encapsulation:2}),hn})()},4520:(le,E,d)=>{"use strict";d.d(E,{z:()=>Me});var p=d(9379),u=d(467),o=d(177),v=d(3953),O=d(3331),x=d(4404),Q=d(5630),re=d(4412),be=d(7673),ue=d(4843),
1X=d(4572),ne=d(7468),te=d(5964),$=d(3294),J=d(6354),se=d(6697),De=d(5558),Ce=d(8141),ce=d(9568),_=d(6843),R=d(4616),w=d(8179),B=d(9516),z=d(1652),oe=d(8745),V=d(6889),k=d(6010),K=d(8545),ge=d(8004),ve=d(9745),Fe=d(8075),We=d(5632),ze=d(7879),bt=d(3178);const Ke=(0,v.zw6)("initial_view");let Me=(()=>{var tt;class He{constructor(){this.router=(0,v.WQX)(O.Ix),this.contextService=(0,v.WQX)(B.V),this.purpleService=(0,v.WQX)(k.Wj),this.configLoaderService=(0,v.WQX)(oe.Bh),this.globalService=(0,v.WQX)(z.d),this.urlResolverService=(0,v.WQX)(V.K),this.eventActionService=(0,v.WQX)(ge.G),this.platformId=(0,v.WQX)(v.Agw),this.document=(0,v.WQX)(o.qQ),this.transferState=(0,v.WQX)(v.pJN),this.serverOnlyService=(0,v.WQX)(We.l),this.appData=(0,v.WQX)(ze.fj),this.viewSubject$=new re.t(null),this.isFirstNavigation=!0,this.lastPath=null,this.currentPath=null,this.initSsrRunningTask(),this.currentPath=this.contextService.getContext().initialUrl,this.pipeNavigationStartEventsToPathObservable(),this.subscribeToNavigationEndEvents(),this.initViewObservable(),this.view$.subscribe(je=>{this.viewSubject$.next(je)})}getCurrentView(){var je=this;return(0,u.A)(function*(){return je.viewSubject$.value})()}getAbsoluteUrl(je,fe){const D=this.router.createUrlTree([je],{queryParams:fe}),H=this.router.serializeUrl(D);return"".concat(this.document.location.protocol,"//").concat(this.document.location.host).concat(H)}distinctView$(je){const fe=this;return this.view$.pipe((0,te.p)(D=>je?!(null==D||!D.modal):!(null==D||!D.default)),(0,$.F)((D,H)=>je?fe.isSameRouteContext(D.modal,H.modal):fe.isSameRouteContext(D.default,H.default)),(0,J.T)(D=>je?{cfg:D.modal,routerEvent:D.routerEvent}:{cfg:D.default,routerEvent:D.routerEvent}))}resolve(je,fe){return this.isFirstNavigation?(this.isFirstNavigation=!1,(0,be.of)(void 0)):this.view$.pipe((0,te.p)(D=>!!D&&D.routerEvent.url===fe.url),(0,se.s)(1))}getAbsoluteLastPath(){return this.lastPath?"".concat(this.document.location.protocol,"//").concat(this.document.location.host).concat(this.lastPath):""}initSsrRunningTask(){this.keepSSRRunningTask=Zone.current.scheduleMacroTask("ViewService-resolved-first-view",bt.lQ,{},bt.lQ,bt.lQ)}pipeNavigationStartEventsToPathObservable(){var je=this;this.path$=this.router.events.pipe((0,te.p)(fe=>{const D=fe instanceof O.Z&&!fe.url.includes("oauth/callback");return D||this.keepSSRRunningTask.invoke(),D}),(0,De.n)(function(){var fe=(0,u.A)(function*(D){return{navEvent:D,default:yield je.extractPathFromOutlet(D),modal:yield je.extractPathFromOutlet(D,"modal")}});return function(D){return fe.apply(this,arguments)}}()),(0,Ce.M)(fe=>{this.checkForGenericRedirect(fe)}),(0,$.F)((fe,D)=>fe.default===D.default&&fe.modal==D.modal))}extractPathFromOutlet(je,fe){var D=this;return(0,u.A)(function*(){var H,Se;const Ue=D.router.parseUrl(je.url);let at=null===(H=Ue.root.children.primary)||void 0===H?void 0:H.segments;if("modal"===fe&&(at=!!Ue.root.children.modal&&[Ue.root.children.modal.segments[1]]),at||"modal"!==fe)return!D.appData.customDomain&&!fe&&at&&at.shift(),(null===(Se=at)||void 0===Se?void 0:Se.join("/"))||"/"})()}checkForGenericRedirect(je){var fe=this;return(0,u.A)(function*(){yield(0,ue._)(fe.purpleService.inited$);try{var D;const H=yield fe.purpleService.getRedirects({redirectFilter:{AND:[{type:{value:"GENERIC"}},{identifier:{value:"/"+je.default,operation:x.StringOperation.EQUAL}}]}});(null==H||null===(D=H.nodes)||void 0===D?void 0:D.length)>0&&fe.handleGenericRedirect(H.nodes[0],je)}catch(H){}})()}handleGenericRedirect(je,fe){var D=this;return(0,u.A)(function*(){if((0,o.Vy)(D.platformId)){let H;if(je.target.startsWith("https://")||je.target.startsWith("http://"))H=je.target;else{const Se=(D.appData.customDomain?"":D.appData.brand+"/")+je.target,Ue=D.appData.preview,[at,hn]=Se.split("?"),ln=(0,p.A)((0,p.A)({},(0,Fe.IN)(hn)),{},{preview:Ue?"true":void 0});H=D.getAbsoluteUrl(at,ln)}D.serverOnlyService.redirectExternal(H,je.statusCode)}else D.handleRedirect({path:fe.default,redirectTo:je.target},D.contextService.getContext())})()}subscribeToNavigationEndEvents(){this.router.events.pipe((0,te.p)(je=>je instanceof O.wF)).subscribe(je=>{try{var fe,D;null===(fe=window.storefrontHooks)||void 0===fe||null===(D=fe.onNavigationEnd)||void 0===D||D.call(fe,{event:je,router:this.router,viewContext:this.contextService.getContext()})}catch(H){console.error("Error in onNavigationEnd hook:",H)}this.handlePathChange(je.urlAfterRedirects)})}handlePathChange(je){var fe;const D=null===(fe=this.currentPath)||void 0===fe?void 0:fe.split("?")[0];je.split("?")[0]!==D&&(this.lastPath=this.currentPath),this.currentPath=je}initViewObservable(){const je=this.purpleService.inited$.pipe((0,Ce.M)(()=>this.contextService.updateMetadata()));this.view$=(0,X.z)([this.path$,this.configLoaderService.getConfig().pipe((0,J.T)(fe=>fe[_.O.VIEW]),(0,De.n)(fe=>(0,ne.p)([je]).pipe((0,J.T)(()=>fe))))]).pipe((0,De.n)(([{default:fe,modal:D,navEvent:H},Se])=>this.processViewState(fe,D,H,Se)),(0,De.n)(fe=>this.handleRedirects(fe)),(0,te.p)(fe=>!!fe),(0,ce.t)({bufferSize:1,refCount:!0}))}processViewState(je,fe,D,H){var Se=this;return(0,u.A)(function*(){(0,o.UE)(Se.platformId)&&!D.url.includes("oauth/callback")&&Se.updateVisitedPath(D.url);const Ue=(0,p.A)((0,p.A)({},Se.contextService.getContext()),Se.router.parseUrl(D.url).queryParams),at=H.filter(et=>!et.globalData&&(!et.condition||(0,w.Ol)({condition:(0,w.uQ)(et.condition,Ue,Se.contextService.$functions,Se.globalService.getGlobalData())})));return{default:yield Se.getViewFromPath(je,at),modal:fe&&(yield Se.getViewFromPath(fe,at)),routerEvent:D,targetContext:Ue}})()}handleRedirects(je){var fe=this;return(0,u.A)(function*(){return(0,R.B)(je.default.viewConfig)?(yield fe.handleRedirect(je.default.viewConfig,je.targetContext),void fe.keepSSRRunningTask.invoke()):(fe.keepSSRRunningTask.invoke(),je)})()}updateVisitedPath(je){const fe=new URL(je,window.location.origin);let D=JSON.parse(sessionStorage.getItem(x.LAST_VISITED_PATH))||{};D.lastVisitedPath=D.currentPath,D.currentPath=fe,sessionStorage.setItem(x.LAST_VISITED_PATH,JSON.stringify(D))}handleRedirect(je,fe){var D=this;return(0,u.A)(function*(){if("object"==typeof je.redirectTo){const hn=(0,w.uQ)(je.redirectTo,fe,D.contextService.$functions,D.globalService.getGlobalData());return D.eventActionService.processNavigateAction(hn),!0}const H=D.contextService.getParams(),Se=D.handleGetRedirectUrl(je,fe),at=(D.appData.customDomain?"":D.appData.brand+"/")+Se;if((0,o.Vy)(D.platformId)){const hn=D.getAbsoluteUrl(at,H);console.debug("HTTP Redirect to ".concat(hn)),D.serverOnlyService.redirectExternal(hn,je.statusCode)}return console.debug("Redirect to ".concat(at)),D.router.navigate([at],{queryParams:{preview:H.preview},replaceUrl:!0})})()}handleGetRedirectUrl(je,fe){let D=je.redirectTo;
1if(D.startsWith("/")&&"/"!==D&&(D=D.substring(1)),D.includes("://"))D=(0,w.uQ)(D,fe,this.contextService.$functions,this.globalService.getGlobalData()),(0,o.UE)(this.platformId)?window.location.href=D:this.serverOnlyService.redirectExternal(D,je.statusCode);else if(D.includes(":")){let H=je.path.split("/");D=D.replace(/:([a-zA-Z0-9_-]+)/g,Se=>{let Ue=H.indexOf(Se);return this.contextService.getPath().split("/")[Ue]||""})}return D}getViewFromPath(je,fe){var D=this;return(0,u.A)(function*(){let H=D.loadInitialView();try{const Se=yield(0,bt.a)("getViewFromPath",(0,u.A)(function*(){return yield D.urlResolverService.getViewFromPath(je)}));if((0,K.X0)(Se))H=D.loadDynamicView(fe,Se);else if((0,K.ie)(Se))return D.createRouteConfigWithContext(Se,je)}catch(Se){if(console.error("Error during dynamic resolving of view: ",Se),Se instanceof V.r)throw Se}return H||(H=D.loadViewByPath(fe,je)),H||(H=D.loadErrorPage(fe)),H?(0,o.Vy)(D.platformId)&&D.transferState.set(Ke,H):(console.debug("Cannot find view for the path: ".concat(je)),D.serverOnlyService.sendError(404,"Not Found")),H})()}createRouteConfigWithContext(je,fe){const D=je.redirectTarget.startsWith("http")?"url":"path";return{viewConfig:{redirectTo:{type:ve.H.NAVIGATE,[D]:je.redirectTarget,params:je.params,mergeParams:je.mergeParams,statusCode:je.statusCode},path:fe,statusCode:je.statusCode}}}loadInitialView(){if((0,o.UE)(this.platformId)&&this.transferState.hasKey(Ke)){const je=this.transferState.get(Ke,null);return this.transferState.remove(Ke),je}return null}loadDynamicView(je,fe){const D=je.find(H=>H.name===fe.viewName);return D?{viewConfig:D,viewContext:fe.viewContext,pathParams:fe.pathParams}:null}loadViewByPath(je,fe){for(const D of je){if(D.path.includes("**")&&-1!==fe.indexOf(D.path.split("/**")[0])||D.path===fe)return{viewConfig:D};{const Se=Q.YW(D.path,{decode:decodeURIComponent})(fe);if(Se)return{viewConfig:D,pathParams:Se.params?(0,p.A)({},Se.params):void 0}}}return null}loadErrorPage(je){let fe=je.find(D=>D.errorPage);return fe?{viewConfig:fe,viewContext:{errorCode:404}}:null}isSameRouteContext(je,fe){return(null==je?void 0:je.viewConfig)===(null==fe?void 0:fe.viewConfig)&&(null==je?void 0:je.pathParams)===(null==fe?void 0:fe.pathParams)}}return(tt=He).\u0275fac=function(je){return new(je||tt)},tt.\u0275prov=v.jDH({token:tt,factory:tt.\u0275fac,providedIn:"root"}),He})()},4088:(le,E,d)=>{"use strict";d.d(E,{c:()=>u});const u={production:!1,appVersion:d(8330).rE||"-",renderWorkerPath:"./dist/purple-web/server/main.server.js",esBuild:!1}},972:(le,E,d)=>{"use strict";var p=d(467),u=d(345),o=d(3953),v=d(177),O=d(1626),x=d(3),U=d(728),Q=d(3331),re=d(6157),be=d(4745),ue=d(1794),X=d(2783),ne=d(6895);let te=(()=>{var Be;class Ot{}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275mod=o.$C({type:Be}),Be.\u0275inj=o.G2t({imports:[v.MD,x.pZ]}),Ot})();var $=d(1605),J=d(8075);const De={provide:Q.b,useClass:(()=>{var Be;class Ot{shouldDetach(st){return!1}store(st,jt){}shouldAttach(st){return!1}retrieve(st){return null}shouldReuseRoute(st,jt){return null===jt.routeConfig&&null===st.routeConfig||(0,J.Yn)(st)===(0,J.Yn)(jt)}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275prov=o.jDH({token:Be,factory:Be.\u0275fac}),Ot})()};var Ce=d(6010),ce=d(6350),_=d(7879);let R=(()=>{var Be;class Ot{constructor(){this.purpleService=(0,o.WQX)(Ce.Wj),this.platformId=(0,o.WQX)(o.Agw),this.router=(0,o.WQX)(Q.Ix),this.cacheService=(0,o.WQX)(ce._),this.appData=(0,o.WQX)(_.fj)}ngOnInit(){var st=this;return(0,p.A)(function*(){if((0,v.UE)(st.platformId)){const jt=yield st.purpleService.checkForOauthEntitlement();if(st.cacheService.bustApiCache(),jt)if(jt.startsWith("/")){const vn={preview:st.appData.preview},nr=jt.substring(1).split("/");st.router.navigate(nr,{queryParams:vn,replaceUrl:!0})}else st.purpleService.openActionUrl(jt)}})()}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275cmp=o.VBU({type:Be,selectors:[["storefront-oauth-callback"]],standalone:!1,decls:12,vars:0,consts:[[1,"container"],[1,"row"],["
1id","loader"],[1,"dot"],[1,"loading"]],template:function(st,jt){1&st&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2),o.nrm(3,"div",3)(4,"div",3)(5,"div",3)(6,"div",3)(7,"div",3)(8,"div",3)(9,"div",3)(10,"div",3)(11,"div",4),o.k0s()()())},styles:['#loader{bottom:0;height:175px;left:0;margin:auto;position:absolute;right:0;top:0;width:175px}#loader .dot{bottom:0;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;width:87.5px}#loader .dot:before{border-radius:100%;content:"";height:87.5px;left:0;position:absolute;right:0;top:0;transform:scale(0);width:87.5px}#loader .dot:nth-child(7n+1){transform:rotate(45deg)}#loader .dot:nth-child(7n+1):before{animation:.8s linear .1s normal none infinite running load;background:#00ff80 none repeat scroll 0 0}#loader .dot:nth-child(7n+2){transform:rotate(90deg)}#loader .dot:nth-child(7n+2):before{animation:.8s linear .2s normal none infinite running load;background:#00ffea none repeat scroll 0 0}#loader .dot:nth-child(7n+3){transform:rotate(135deg)}#loader .dot:nth-child(7n+3):before{animation:.8s linear .3s normal none infinite running load;background:#0af none repeat scroll 0 0}#loader .dot:nth-child(7n+4){transform:rotate(180deg)}#loader .dot:nth-child(7n+4):before{animation:.8s linear .4s normal none infinite running load;background:#0040ff none repeat scroll 0 0}#loader .dot:nth-child(7n+5){transform:rotate(225deg)}#loader .dot:nth-child(7n+5):before{animation:.8s linear .5s normal none infinite running load;background:#2a00ff none repeat scroll 0 0}#loader .dot:nth-child(7n+6){transform:rotate(270deg)}#loader .dot:nth-child(7n+6):before{animation:.8s linear .6s normal none infinite running load;background:#9500ff none repeat scroll 0 0}#loader .dot:nth-child(7n+7){transform:rotate(315deg)}#loader .dot:nth-child(7n+7):before{animation:.8s linear .7s normal none infinite running load;background:#f0f none repeat scroll 0 0}#loader .dot:nth-child(7n+8){transform:rotate(360deg)}#loader .dot:nth-child(7n+8):before{animation:.8s linear .8s normal none infinite running load;background:#ff0095 none repeat scroll 0 0}#loader .loading{background-position:50% 50%;background-repeat:no-repeat;bottom:-40px;height:20px;left:0;position:absolute;right:0;width:180px}@keyframes load{to{opacity:0;transform:scale(1)}}.spinner-message{text-align:center}\n'],encapsulation:2}),Ot})();var w=d(3178),B=d(6080),z=d(4404),oe=d(7031),V=d(6843),k=d(9516);let K=(()=>{var Be;class Ot{constructor(){this.store=(0,o.WQX)(be.il),this.contextService=(0,o.WQX)(k.V),this.document=(0,o.WQX)(v.qQ),this.purpleService=(0,o.WQX)(Ce.Wj),this.navigationAllowed=Promise.all([this.purpleService.getMetadata([z.METADATA_KEY.ENTITLEMENT_LOGIN_MODE]),this.purpleService.getDisplayMode()]).then(([st,jt])=>!st[z.METADATA_KEY.ENTITLEMENT_LOGIN_MODE]&&!(0,w.dg)(jt,this.document)),(0,oe.jZ)(V.O.ACCESS)(this.store).subscribe(st=>this.access=st)}canDeactivate(st,jt,vn){var nr=this;return(0,p.A)(function*(){return(yield nr.navigationAllowed)&&!nr.loginRequired()})()}loginRequired(){var st;return(null===(st=this.access)||void 0===st?void 0:st.forceLogin)&&!this.contextService.isLoggedIn()}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275prov=o.jDH({token:Be,factory:Be.\u0275fac}),Ot})();var ge=d(4520),ve=d(8251),Fe=d(8913),We=d(8909),ze=d(2868);const bt=["class","pxp-view"],Ke=Be=>[Be];function Me(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"div",0),o.nrm(1,"span",1),o.j41(2,"button",2),o.bIt("click",function(){o.eBV(At);const jt=o.XpG();return o.Njj(jt.reload())}),o.k0s()()}if(2&Be){const At=o.XpG();o.R7$(),o.Y8G("storefrontTranslate",At.viewConfig.errorMessage||"VIEW_ERROR")("storefrontTranslateArgs",o.eq3(3,Ke,At.dataSourceError.code)),o.R7$(),o.Y8G("storefrontTranslate",At.viewConfig.errorButtonLabel||"VIEW_ERROR_BUTTON")}}function tt(Be,Ot){}function He(Be,Ot){if(1&Be&&o.DNE(0,tt,0,0,"ng-template",4),2&Be){const At=Ot.$implicit,st=o.XpG(2);o.Y8G("baseConfig",st.children[At])}}function ot(Be,Ot){}function je(Be,Ot){if(1&Be){const At=o.RV6();o.DNE(0,ot,0,0,"ng-template",7),o.bIt("inViewport",function(jt){o.eBV(At);const vn=o.XpG().$index,nr=o.XpG(3);return o.Njj(nr.onVisibilityChanged(vn,jt))})}if(2&Be){const At=o.XpG().$implicit,st=o.XpG(3);o.Y8G("baseConfig",At)("controlsSticky",At.sticky)("lazy",st.isLazy)}}function fe(Be,Ot){1&Be&&o.DNE(0,je,1,3,null,6),2&Be&&o.vxM(Ot.$implicit._isEnabled?0:-1)}function D(Be,Ot){if(1&Be&&(o.j41(0,"div",5),o.Z7z(1,fe,1,1,null,null,o.BUC().trackByElement,!0),o.k0s()),2&Be){const At=o.XpG(2);o.Y8G("storefrontPullToRefresh",At.viewConfig.pullToRefresh)("onRefresh",At.onRefresh),o.R7$(),o.Dyx(At.children)}}function H(Be,Ot){if(1&Be&&(o.j41(0,"div",3),o.Z7z(1,He,1,1,null,4,o.BUC().trackByElement,!0),o.k0s(),o.DNE(3,D,3,2,"div",5)),2&Be){const At=o.XpG();o.R7$(),o.Dyx(At.visibleStickyChildren),o.R7$(2),o.vxM(At.viewConfig&&At.children?3:-1)}}let Se=(()=>{var Be;class Ot extends B.v{}return(Be=Ot).\u0275fac=(()=>{let At;return function(jt){return(At||(At=o.xGo(Be)))(jt||Be)}})(),Be.\u0275cmp=o.VBU({type:Be,selectors:[["div",8,"pxp-view"]],standalone:!1,features:[o.Jv_([ve.B]),o.Vt3],attrs:bt,decls:2,vars:1,consts:[[1,"view-error"],[3,"storefrontTranslate","storefrontTranslateArgs"],[1,"action-button",3,"click","
1storefrontTranslate"],[1,"sticky-elements"],[3,"pxpDynamicComponent","baseConfig"],[1,"content",3,"storefrontPullToRefresh","onRefresh"],[3,"pxpDynamicComponent","baseConfig","controlsSticky","lazy"],[3,"inViewport","pxpDynamicComponent","baseConfig","controlsSticky","lazy"]],template:function(st,jt){1&st&&o.DNE(0,Me,3,5,"div",0)(1,H,4,1),2&st&&o.vxM(jt.dataSourceError?0:1)},dependencies:[Fe.h,We.M,ze.q],styles:["storefront-view,.pxp-view{display:block;padding-top:var(--appBarHeight);padding-bottom:var(--navigationHeight);transition:all .15s ease;min-height:100vh;background-color:var(--backgroundColor)}storefront-view .content,.pxp-view .content{position:relative}storefront-view .sticky-elements,.pxp-view .sticky-elements{position:fixed;width:100%;z-index:19}storefront-view .view-error,.pxp-view .view-error{display:flex;flex-direction:column;align-items:flex-start;padding:var(--gutter)}storefront-view .view-error>.action-button,.pxp-view .view-error>.action-button{background-color:var(--secondaryColor);color:#fff}body.scrolled storefront-tab-navigation.scroll-hide~storefront-view,body.scrolled storefront-tab-navigation.scroll-hide~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-hide~storefront-view,body.scrolled .pxp-tab-navigation.scroll-hide~.pxp-view{padding-bottom:0}body.scrolled storefront-tab-navigation.scroll-shrink~storefront-view,body.scrolled storefront-tab-navigation.scroll-shrink~.pxp-view,body.scrolled .pxp-tab-navigation.scroll-shrink~storefront-view,body.scrolled .pxp-tab-navigation.scroll-shrink~.pxp-view{padding-bottom:var(--navigationShrinkHeight)}\n"],encapsulation:2}),Ot})();var at=d(5964),hn=d(5927);let ln=(()=>{var Be;class Ot{handleError(st){throw st}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275prov=o.jDH({token:Be,factory:Be.\u0275fac}),Ot})(),et=(()=>{var Be;class Ot{constructor(){this.router=(0,o.WQX)(Q.Ix),this.viewportScroller=(0,o.WQX)(v.Xr),this.ngZone=(0,o.WQX)(o.SKi),this.document=(0,o.WQX)(v.qQ),this.router.events.pipe((0,at.p)(st=>st instanceof Q.OY)).subscribe(st=>{this.handleScroll(st,this.viewportScroller)})}handleScroll(st,jt){if(st.routerEvent instanceof Q.wF){const vn=st.routerEvent.urlAfterRedirects,nr=this.extractPathParam(vn),Xr=this.extractPathParam(this.lastMainView);if(vn.includes("(modal:"))return void(this.inPopup=!0);if(this.inPopup&&(this.inPopup=!1,nr===Xr))return;nr===Xr&&!st.anchor||(this.lastMainView=nr)}st.position?this.scrollTo(jt,st.position):st.anchor?jt.scrollToAnchor(st.anchor):jt.scrollToPosition([0,0])}extractPathParam(st){return new URL(st,"http://dummyurl.com").pathname}scrollTo(st,jt,vn=1){st.scrollToPosition(jt),vn<5&&(this.document.documentElement.scrollHeight<jt[1]||this.document.documentElement.scrollWidth<jt[0])&&this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.scrollTo(st,jt,vn+1),500)})}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275mod=o.$C({type:Be}),Be.\u0275inj=o.G2t({providers:[{provide:o.zcH,useClass:ln},De,K,{provide:v.hb,useFactory:(At,st)=>At.isUniversal?new v.Sm(st):new v.fw(st),deps:[_.r6,v.Vw]},{provide:Q.bw,useFactory:At=>(Be=>[{matcher:Ot=>(0,w.KM)(Ot)?{consumed:Ot}:null,component:R},{path:"popup/:id/:animation",loadComponent:()=>Be?Promise.all([d.e(2076),d.e(3006)]).then(d.bind(d,3006)).then(Ot=>
1Ot.ModalLeanDomComponent):Promise.all([d.e(2076),d.e(680)]).then(d.bind(d,2316)).then(Ot=>Ot.ModalComponent),outlet:"modal"},{path:"popup/:id",loadComponent:()=>Be?Promise.all([d.e(2076),d.e(3006)]).then(d.bind(d,3006)).then(Ot=>Ot.ModalLeanDomComponent):Promise.all([d.e(2076),d.e(680)]).then(d.bind(d,2316)).then(Ot=>Ot.ModalComponent),outlet:"modal"},{path:"**",component:Be?Se:B.v,canDeactivate:[K],resolve:{notifyViewResolved:(Ot,At)=>(0,o.WQX)(ge.z).resolve(Ot,At)}}])(At.leanDom),multi:!0,deps:[hn.S]}],imports:[Q.iI.forRoot([],{initialNavigation:"enabledNonBlocking"}),Q.iI]}),Ot})();var G=d(4871),_e=d(2596),Te=d(9312),P=d(5632),F=d(6354),de=d(5204),Ae=d(8179),Oe=d(1652),vt=d(9079);function Tt(Be,Ot){return this.trackByElement(null,Ot)}function Dt(Be,Ot){}function en(Be,Ot){1&Be&&o.DNE(0,Dt,0,0,"ng-template",5),2&Be&&o.Y8G("baseConfig",Ot.$implicit)("lazy",!1)}let Dn=(()=>{var Be;class Ot{constructor(){this.appMenuService=(0,o.WQX)(de.I),this.store=(0,o.WQX)(be.il),this.changeDetectorRef=(0,o.WQX)(o.gRc),this.contextService=(0,o.WQX)(k.V),this.globalService=(0,o.WQX)(Oe.d),this.destroyRef=(0,o.WQX)(o.abz)}get dynClasses(){return[this.menuOpen?"state-open":"state-closed",this.config&&"side-".concat((this.config.side||"LEFT").toLowerCase())].filter(st=>!!st).join(" ")}close(){this.appMenuService.setOpen(!1)}ngOnInit(){this.appMenuService.$menuOpen.pipe((0,vt.pQ)(this.destroyRef),(0,at.p)(()=>this.appMenuService.hasNoCustomSideMenuSignal())).subscribe(st=>{this.menuOpen=st,this.changeDetectorRef.detectChanges()}),(0,oe.jZ)(V.O.MENUS)(this.store).pipe((0,vt.pQ)(this.destroyRef),(0,F.T)(st=>st.sideMenus.find(jt=>"default"===jt.id))).subscribe(st=>{var jt;this.config=st,this.children=null===(jt=this.config)||void 0===jt?void 0:jt.content.filter(vn=>(0,Ae.ru)(vn,this.contextService.getCurrentViewContext(),this.contextService.$functions,this.globalService.getGlobalData(),!1)),this.changeDetectorRef.detectChanges()})}trackByElement(st,jt){if("string"==typeof jt||"number"==typeof jt)return jt||st;const vn=jt._uuid;if(!vn)throw"error trackbyMenuElement: expected _uuid "+JSON.stringify(jt);return vn}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275cmp=o.VBU({type:Be,selectors:[["storefront-side-menu"]],hostVars:2,hostBindings:function(st,jt){2&st&&o.HbH(jt.dynClasses)},standalone:!1,decls:7,vars:0,consts:[[1,"side-menu-backdrop",3,"click"],[1,"side-menu",3,"click"],[1,"side-menu-header"],["aria-label","close",1,"icon","icon-close",3,"click"],[1,"side-menu-content"],[3,"pxpDynamicComponent","baseConfig","lazy"]],template:function(st,jt){1&st&&(o.j41(0,"div",0),o.bIt("click",function(){return jt.close()}),o.k0s(),o.j41(1,"nav",1),o.bIt("click",function(nr){return nr.stopPropagation()}),o.j41(2,"div",2)(3,"button",3),o.bIt("click",function(){return jt.close()}),o.k0s()(),o.j41(4,"div",4),o.Z7z(5,en,1,2,null,5,Tt,!0),o.k0s()()),2&st&&(o.R7$(5),o.Dyx(jt.children))},dependencies:[ze.q],styles:["storefront-side-menu .side-menu,.pxp-side-menu .side-menu{position:fixed;z-index:1001;top:0;left:0;height:100%;width:var(--sideMenuWidth, min(90vw, 350px));overflow-x:hidden;transform:translate(-100%);background-color:var(--sideMenuBackground, var(--backgroundColor));transition:transform var(--sideMenuTransitionTime, .3s);display:flex;flex-direction:column;padding:var(--gutter);gap:var(--gutter)}storefront-side-menu .side-menu>.side-menu-header,.pxp-side-menu .side-menu>.side-menu-header{width:100%;display:flex}.side-left storefront-side-menu .side-menu>.side-menu-header,.side-left .pxp-side-menu .side-menu>.side-menu-header{justify-content:end}storefront-side-menu .side-menu-backdrop,.pxp-side-menu .side-menu-backdrop{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;background-color:#000000b3;opacity:0;transition:opacity var(--sideMenuTransitionTime, .3s);pointer-events:none}.state-open .side-menu{transform:translate(0)}.state-open .side-menu-backdrop{opacity:1;pointer-events:auto}\n"],encapsulation:2}),Ot})();var Pn=d(2628);let $n=(()=>{var Be;class Ot{constructor(){var st=this;this.actions$=(0,o.WQX)(re.En),this.store=(0,o.WQX)(be.il),this.purpleService=(0,o.WQX)(Ce.Wj),this.listeners={},this.loadIssueStates$=(0,re.EH)(()=>this.actions$.pipe((0,re.gp)(Pn.Uo),(0,F.T)(function(){var jt=(0,p.A)(function*(vn){const nr=vn.issues.filter(Xr=>!st.listeners[Xr.id]);if(nr.length){nr.forEach(Lr=>{st.listeners[Lr.id]||(st.listeners[Lr.id]=ro=>st.store.dispatch((0,Pn.hc)({[Lr.id]:ro})),st.purpleService.addIssueStateListener({publicationId:Lr.publicationId,issueVersion:Lr.version,issueId:Lr.id},st.listeners[Lr.id]))});const Xr=yield st.purpleService.getIssueStates({issues:nr.map(Lr=>({issueId:Lr.id,issueVersion:Lr.version}))});st.store.dispatch((0,Pn.hc)(Xr))}});return function(vn){return jt.apply(this,arguments)}}())),{dispatch:!1})}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275prov=o.jDH({token:Be,factory:Be.\u0275fac}),Ot})();var In=d(4579),xt=d(9379),qe=d(3993),Kt=d(4004),Ie=d(4622);let Ve=(()=>{var Be;class Ot{startQueueProcession(){this.zone.runOutsideAngular(()=>{setInterval(()=>{this.queue.length&&this.zone.run(()=>{this.store.dispatch((0,Kt.$W)({productIds:this.queue})),this.queue=[]})},200)})}constructor(){var st=this;this.actions$=(0,o.WQX)(re.En),this.store=(0,o.WQX)(be.il),this.zone=(0,o.WQX)(o.SKi),this.purpleService=(0,o.WQX)(Ce.Wj),this.queue=[],this.loadPrices$=(0,re.EH)(()=>this.actions$.pipe((0,re.gp)(Kt.$W),(0,F.T)(function(){var jt=(0,p.A)(function*(vn){try{const nr=yield st.purpleService.getPrices(vn.productIds.filter(Lr=>!!Lr));let Xr=vn.productIds.reduce((Lr,ro)=>(0,xt.A)((0,xt.A)({},Lr),{},{[ro]:null}),{});Xr=nr.priceInfos.reduce((Lr,ro)=>(0,xt.A)((0,xt.A)({},Lr),{},{[ro.productId]:ro}
1),Xr),st.store.dispatch((0,Kt.Kx)({prices:Xr}))}catch(nr){st.store.dispatch((0,Kt.Nb)({error:nr,productIds:vn.productIds}))}});return function(vn){return jt.apply(this,arguments)}}())),{dispatch:!1}),this.loadPrice$=(0,re.EH)(()=>this.actions$.pipe((0,re.gp)(Kt.qF),(0,qe.E)(this.store.select(Ie.aJ)),(0,F.T)(function(){var jt=(0,p.A)(function*([vn,nr]){Object.keys(nr).includes(vn.productId)||st.queue.push(vn.productId)});return function(vn){return jt.apply(this,arguments)}}())),{dispatch:!1}),this.startQueueProcession()}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275prov=o.jDH({token:Be,factory:Be.\u0275fac}),Ot})();var yt=d(2099),Rt=d(9360),zt=d(610);const ft=(0,Rt.zk)();let Ht=(()=>{var Be;class Ot{constructor(){var st=this;this.actions$=(0,o.WQX)(re.En),this.document=(0,o.WQX)(v.qQ),this.purpleService=(0,o.WQX)(Ce.Wj),this.viewService=(0,o.WQX)(ge.z),this.trackAction$=(0,re.EH)(()=>this.actions$.pipe((0,re.gp)(zt.k4),(0,F.T)(function(){var jt=(0,p.A)(function*(vn){const nr=yield Zt(st.document,st.purpleService);st.viewService.getCurrentView().then(({default:{viewConfig:Xr}})=>{var Lr;const ro="STOREFRONT_".concat(vn.key),is=(0,xt.A)((0,xt.A)((0,xt.A)({},nr),vn.params),{},{view:(null==Xr?void 0:Xr.name)&&(0,_.Dh)(Xr.name),URL:vn.url,TARGET_URL:null!==(Lr=vn.targetUrl)&&void 0!==Lr?Lr:ft.location.href});st.purpleService.trackAction(ro,is)})});return function(vn){return jt.apply(this,arguments)}}())),{dispatch:!1}),this.trackView$=(0,re.EH)(()=>this.actions$.pipe((0,re.gp)(zt.$3),(0,F.T)(function(){var jt=(0,p.A)(function*(vn){var nr,Xr;const Lr=yield Zt(st.document,st.purpleService),ro="STOREFRONT_VIEW_".concat(vn.key),is=(0,xt.A)((0,xt.A)((0,xt.A)({},Lr),vn.params),{},{view:vn.key,popup:vn.popup?"true":"false",URL:vn.url,TARGET_URL:null!==(nr=vn.targetUrl)&&void 0!==nr?nr:ft.location.href});st.purpleService.trackAction(ro,is);const Xo="STOREFRONT_".concat(vn.key),wo=(0,xt.A)((0,xt.A)((0,xt.A)({},Lr),vn.params),{},{view:vn.key,popup:vn.popup?"true":"false",URL:vn.url,TARGET_URL:null!==(Xr=vn.targetUrl)&&void 0!==Xr?Xr:ft.location.href});st.purpleService.trackView(Xo,wo)});return function(vn){return jt.apply(this,arguments)}}())),{dispatch:!1}),this.trackPurchase$=(0,re.EH)(()=>this.actions$.pipe((0,re.gp)(zt.Du),(0,F.T)(function(){var jt=(0,p.A)(function*(vn){const nr=(0,xt.A)((0,xt.A)({},vn.params),{},{key:"STOREFRONT_".concat(vn.params.key)}),Xr=yield Zt(st.document,st.purpleService);nr.optionalParams=(0,xt.A)((0,xt.A)({},Xr),nr.optionalParams),st.purpleService.trackPurchase(nr)});return function(vn){return jt.apply(this,arguments)}}())),{dispatch:!1})}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275prov=o.jDH({token:Be,factory:Be.\u0275fac}),Ot})();function Zt(){return Vt.apply(this,arguments)}function Vt(){return(Vt=(0,p.A)(function*(Be=ft,Ot){const At=new URLSearchParams("?"+Be.location.href.split("?")[1]);let jt,vn,st={};return At.get("issue")&&(jt=yield Ot.getIssue(At.get("issue")).catch(()=>null)),At.get("publication")&&(vn=yield Ot.getPublication(At.get("publication"))),jt&&(st=(0,xt.A)((0,xt.A)({},st),(0,_.bJ)(jt)),vn||(vn=yield Ot.getPublication(jt.publicationId))),vn&&(st=(0,xt.A)((0,xt.A)({},st),(0,_.GA)(vn))),st})).apply(this,arguments)}var gt=d(6483),dt=d(721);let Ct=(()=>{var Be;class Ot{}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275mod=o.$C({type:Be}),Be.\u0275inj=o.G2t({imports:[v.MD,dt.u]}),Ot})();var Et=d(8482),dn=d(8745),Bn=d(8004),Hn=d(2261),Cr=d(395),Qt=d(4336);const mt=Be=>[Be];function Ut(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"button",9),o.bIt("click",function(){o.eBV(At);const jt=o.XpG(2);return o.Njj(jt.onClickMenu())}),o.k0s()}}function _t(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){o.eBV(At);const jt=o.XpG(2);return o.Njj(jt.onClickBack())}),o.k0s()}}function Ft(Be,Ot){if(1&Be&&o.DNE(0,Ut,1,0,"button",7)(1,_t,1,0,"button",8),2&Be){const At=o.XpG();o.vxM(At.showBackButton()?1:0)}}function mn(Be,Ot){1&Be&&o.nrm(0,"button",0)}function jn(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"a",13),o.bIt("click",function(jt){o.eBV(At);const vn=o.XpG(2);return o.Njj(vn.onClickLogo(jt))}),o.k0s()}if(2&Be){const At=o.XpG(2);o.Y8G("href",At.anchorPath,o.B4B)}}function Jn(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"div",14),o.bIt("click",function(jt){o.eBV(At);const vn=o.XpG(2);return o.Njj(vn.onClickLogo(jt))}),o.k0s()}}function fr(Be,Ot){if(1&Be&&o.DNE(0,jn,1,1,"a",11)(1,Jn,1,0,"div",12),2&Be){const At=o.XpG();o.vxM(At.anchorFeatureEnabled?0:1)}}function br(Be,Ot){if(1&Be&&o.nrm(0,"div",2),2&Be){const At=o.XpG();o.Y8G("storefrontTranslate",At.getTitle())}}function Er(Be,Ot){}function Qr(Be,Ot){if(1&Be&&o.DNE(0,Er,0,0,"ng-template",15),2&Be){const At=o.XpG(2);o.Y8G("baseConfig",At.computedContent())}}function Ti(Be,Ot){if(1&Be&&o.Z7z(0,Qr,1,1,null,15,o.fX1),2&Be){const At=o.XpG();o.Dyx(o.eq3(0,mt,At.contentTrackingKey()))}}function Ui(Be,Ot){if(1&Be&&o.nrm(0,"storefront-button",3),2&Be){const At=o.XpG();o.Y8G("parentBaseConfig",At.rightButton)}}function ui(Be,Ot){if(1&Be&&o.nrm(0,"div",4),2&Be){const At=o.XpG();o.Y8G("parentBaseConfig",At.rightButton)}}function zi(Be,Ot){1&Be&&o.nrm(0,"button",5)}function Bo(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"button",16),o.bIt("click",function(){o.eBV(At);const jt=o.XpG();return o.Njj(jt.onClickClose())}),o.k0s()}}let uo=(()=>{var Be;class Ot{constructor(){this.renderer=(0,o.WQX)(o.sFG),this.document=(0,o.WQX)(v.qQ),this.router=(0,o.WQX)(Q.Ix),this.store=(0,o.WQX)(ve.B),this.guard=(0,o.WQX)(K),this.contextService=(0,o.WQX)(k.V),this.eventActionService=(0,o.WQX)(Bn.G),this.purpleService=(0,o.WQX)(Ce.Wj),this.globalService=(0,o.WQX)(Oe.d),this.domHelper=(0,o.WQX)(hn.S),this.appData=(0,o.WQX)(_.fj),this.config=(0,o.hFB)(),this.computedConfig=(0,o.EWP)(()=>(0,xt.A)((0,xt.A)({},Hn.a),this.config())),this.computedContent=(0,o.EWP)(()=>{var st;return null===(st=this.computedConfig())||void 0===st?void 0:st.content}),this.contentTrackingKey=(0,o.EWP)(()=>{const st=this.computedContent();return st?JSON.stringify(st):null}),this.navigationAllowed=!0,this.anchorFeatureEnabled=!1,this.anchorPath=""}get cssClass(){return"scroll-".concat(this.computedConfig().scrollBehavior," app-bar-").concat(this.computedConfig().id)}ngOnInit(){var st=this;return(0,p.A)(function*(){st.contextService.viewContext$.subscribe(jt=>{st.context=jt,st.backNavigationAllowed=st.contextService.navigationCount>
10,st.setRightButton()}),st.navigationAllowed=yield st.guard.navigationAllowed,st.store.select((0,oe.jZ)(V.O.FEATURE),jt=>{if(null!=jt&&jt.anchorTags&&(st.anchorFeatureEnabled=jt.anchorTags,st.computedConfig().logo)){let vn;"object"==typeof st.computedConfig().logo&&st.computedConfig().logo.tap&&(vn=(0,Ae.v3)((0,Ae.uQ)(st.computedConfig().logo.tap,st.context,st.contextService.$functions,st.globalService.getGlobalData())),vn=vn.url||vn.path),st.anchorPath="".concat(st.appData.customDomain?"/":st.appData.brand).concat(null!=vn?vn:"").concat(st.appData.preview?"?preview=true":"")}})})()}ngOnChanges(st){this.renderer.setAttribute(this.document.body,this.domHelper.leanDom?"data-pxp-app-bar-scroll-behavior":"app-bar-scroll-behavior",this.computedConfig().scrollBehavior)}showBackButton(){return"back"===this.computedConfig().leftButton&&this.backNavigationAllowed}onClickMenu(){this.store.dispatch((0,zt.k4)({url:window.location.href,key:"APP_BAR_MENU_CLICKED"})),this.purpleService.openActionUrl("purple://app/menu/open")}onClickLogo(st){if(this.anchorFeatureEnabled&&st.preventDefault(),this.store.dispatch((0,zt.k4)({url:window.location.href,key:"APP_BAR_LOGO_CLICKED"})),"object"==typeof this.computedConfig().logo&&this.computedConfig().logo.tap){const vn=(0,Ae.v3)((0,Ae.uQ)(this.computedConfig().logo.tap,this.context,this.contextService.$functions,this.globalService.getGlobalData()));if(vn)return this.eventActionService.processEventAction(vn,this)}this.router.navigate([this.appData.customDomain?"/":this.appData.brand],{queryParams:{preview:this.appData.preview}})}onClickBack(){this.store.dispatch((0,zt.k4)({url:window.location.href,key:"APP_BAR_BACK_CLICKED"})),window.history.back()}onClickClose(){this.purpleService.closeView()}getTitle(){return(0,Ae.uQ)(this.computedConfig().title,this.context,this.contextService.$functions,this.globalService.getGlobalData())}setRightButton(){this.rightButton=(0,Ae.v3)((0,Ae.uQ)(this.computedConfig().rightButton,this.context,this.contextService.$functions,this.globalService.getGlobalData()))}getContext(){return this.context}getId(){return this.computedConfig().id}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275cmp=o.VBU({type:Be,selectors:[["storefront-app-bar"]],hostVars:2,hostBindings:function(st,jt){2&st&&o.HbH(jt.cssClass)},inputs:{config:[1,"config"]},standalone:!1,features:[o.Jv_([ve.B]),o.OA$],decls:10,vars:9,consts:[[2,"pointer-events","none"],[1,"app-bar-content"],[1,"title",3,"storefrontTranslate"],[3,"parentBaseConfig"],[1,"pxp-button",3,"parentBaseConfig"],[2,"pointer-events","none","display","none"],["aria-label","close",1,"icon","icon-close"],["aria-label","menu",1,"icon","icon-menu"],["aria-label","back",1,"icon","icon-arrow-left"],["aria-label","menu",1,"icon","icon-menu",3,"click"],["aria-label","back",1,"icon","icon-arrow-left",3,"click"],[1,"logo",3,"href"],[1,"logo"],[1,"logo",3,"click","href"],[1,"logo",3,"click"],[3,"pxpDynamicComponent","baseConfig"],["aria-label","close",1,"icon","icon-close",3,"click"]],template:function(st,jt){if(1&st&&(o.DNE(0,Ft,2,1)(1,mn,1,0,"button",0),o.j41(2,"div",1),o.DNE(3,fr,2,1)(4,br,1,1,"div",2),o.k0s(),o.DNE(5,Ti,2,2)(6,Ui,1,1,"storefront-button",3)(7,ui,1,1,"div",4)(8,zi,1,0,"button",5)(9,Bo,1,0,"button",6)),2&st){let vn,nr;o.vxM(null!=(vn=jt.computedConfig())&&vn.leftButton&&jt.navigationAllowed?0:-1),o.R7$(),o.vxM(jt.navigationAllowed?-1:1),o.R7$(2),o.vxM(jt.computedConfig().logo?3:-1),o.R7$(),o.vxM(null!=(nr=jt.computedConfig())&&nr.title?4:-1),o.R7$(),o.vxM(jt.computedContent()?5:-1),o.R7$(),o.vxM(!jt.domHelper.leanDom&&jt.rightButton&&jt.navigationAllowed?6:-1),o.R7$(),o.vxM(jt.domHelper.leanDom&&jt.rightButton&&jt.navigationAllowed?7:-1),o.R7$(),o.vxM(!jt.rightButton&&jt.navigationAllowed?8:-1),o.R7$(),o.vxM(jt.navigationAllowed?-1:9)}},dependencies:[We.M,Cr.Q,Qt.U,ze.q],styles:["storefront-app-bar,.pxp-app-bar{display:var(--appBarDisplay);width:100%;justify-content:center;align-items:center;position:fixed;top:0;transition:all .15s ease;padding:var(--appBarPaddingVert) var(--appBarPaddingHoriz);z-index:var(--zIndexAppBar);height:var(--appBarHeight);background-color:var(--appBarColor);color:var(--appBarTextColor);--textColor: var(--appBarTextColor)}storefront-app-bar .logo,.pxp-app-bar .logo{background-repeat:no-repeat;background-position:top center;background-size:contain;height:100%;width:80%;max-width:300px}
1storefront-app-bar .app-bar-content,.pxp-app-bar .app-bar-content{position:relative;height:100%;width:auto;display:flex;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;font-size:var(--appBarFontSize);transition:all .15s ease}storefront-app-bar button,storefront-app-bar storefront-button,storefront-app-bar .pxp-button,.pxp-app-bar button,.pxp-app-bar storefront-button,.pxp-app-bar .pxp-button{width:var(--appBarButtonWidth);height:100%;background-color:transparent}storefront-app-bar button.has-text,storefront-app-bar storefront-button.has-text,storefront-app-bar .pxp-button.has-text,.pxp-app-bar button.has-text,.pxp-app-bar storefront-button.has-text,.pxp-app-bar .pxp-button.has-text{width:auto}body.scrolled storefront-app-bar.scroll-hide,body.scrolled .pxp-app-bar.scroll-hide{transform:translateY(-100%)}\n"],encapsulation:2}),Ot})();const no=["class","pxp-app-bar"],sn=Be=>[Be];function Ze(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"button",9),o.bIt("click",function(){o.eBV(At);const jt=o.XpG(2);return o.Njj(jt.onClickMenu())}),o.k0s()}}function Mt(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"button",10),o.bIt("click",function(){o.eBV(At);const jt=o.XpG(2);return o.Njj(jt.onClickBack())}),o.k0s()}}function pt(Be,Ot){if(1&Be&&o.DNE(0,Ze,1,0,"button",7)(1,Mt,1,0,"button",8),2&Be){const At=o.XpG();o.vxM(At.showBackButton()?1:0)}}function Xt(Be,Ot){1&Be&&o.nrm(0,"button",0)}function Cn(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"a",13),o.bIt("click",function(jt){o.eBV(At);const vn=o.XpG(2);return o.Njj(vn.onClickLogo(jt))}),o.k0s()}if(2&Be){const At=o.XpG(2);o.Y8G("href",At.anchorPath,o.B4B)}}function un(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"div",14),o.bIt("click",function(jt){o.eBV(At);const vn=o.XpG(2);return o.Njj(vn.onClickLogo(jt))}),o.k0s()}}function ir(Be,Ot){if(1&Be&&o.DNE(0,Cn,1,1,"a",11)(1,un,1,0,"div",12),2&Be){const At=o.XpG();o.vxM(At.anchorFeatureEnabled?0:1)}}function vr(Be,Ot){if(1&Be&&o.nrm(0,"div",2),2&Be){const At=o.XpG();o.Y8G("storefrontTranslate",At.getTitle())}}function Si(Be,Ot){}function co(Be,Ot){if(1&Be&&o.DNE(0,Si,0,0,"ng-template",15),2&Be){const At=o.XpG(2);o.Y8G("baseConfig",At.computedContent())}}function Qi(Be,Ot){if(1&Be&&o.Z7z(0,co,1,1,null,15,o.fX1),2&Be){const At=o.XpG();o.Dyx(o.eq3(0,sn,At.contentTrackingKey()))}}function Dr(Be,Ot){if(1&Be&&o.nrm(0,"storefront-button",3),2&Be){const At=o.XpG();o.Y8G("parentBaseConfig",At.rightButton)}}function ci(Be,Ot){if(1&Be&&o.nrm(0,"div",4),2&Be){const At=o.XpG();o.Y8G("parentBaseConfig",At.rightButton)}}function Vi(Be,Ot){1&Be&&o.nrm(0,"button",5)}function di(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"button",16),o.bIt("click",function(){o.eBV(At);const jt=o.XpG();return o.Njj(jt.onClickClose())}),o.k0s()}}let $r=(()=>{var Be;class Ot extends uo{}return(Be=Ot).\u0275fac=(()=>{let At;return function(jt){return(At||(At=o.xGo(Be)))(jt||Be)}})(),Be.\u0275cmp=o.VBU({type:Be,selectors:[["div",8,"pxp-app-bar"]],standalone:!1,features:[o.Jv_([ve.B]),o.Vt3],attrs:no,decls:10,vars:9,consts:[[2,"pointer-events","none"],[1,"app-bar-content"],[1,"title",3,"storefrontTranslate"],[3,"parentBaseConfig"],[1,"pxp-button",3,"parentBaseConfig"],[2,"pointer-events","none","display","none"],["aria-label","close",1,"icon","icon-close"],["aria-label","menu",1,"icon","icon-menu"],["aria-label","back",1,"icon","icon-arrow-left"],["aria-label","menu",1,"icon","icon-menu",3,"click"],["aria-label","back",1,"icon","icon-arrow-left",3,"click"],[1,"logo",3,"href"],[1,"logo"],[1,"logo",3,"click","href"],[1,"logo",3,"click"],[3,"pxpDynamicComponent","baseConfig"],["aria-label","close",1,"icon","icon-close",3,"click"]],template:function(st,jt){if(1&st&&(o.DNE(0,pt,2,1)(1,Xt,1,0,"button",0),o.j41(2,"div",1),o.DNE(3,ir,2,1)(4,vr,1,1,"div",2),o.k0s(),o.DNE(5,Qi,2,2)(6,Dr,1,1,"storefront-button",3)(7,ci,1,1,"div",4)(8,Vi,1,0,"button",5)(9,di,1,0,"button",6)),2&st){let vn,nr;o.vxM(null!=(vn=jt.computedConfig())&&vn.leftButton&&jt.navigationAllowed?0:-1),o.R7$(),o.vxM(jt.navigationAllowed?-1:1),o.R7$(2),o.vxM(jt.computedConfig().logo?3:-1),o.R7$(),o.vxM(null!=(nr=jt.computedConfig())&&nr.title?4:-1),o.R7$(),o.vxM(jt.computedContent()?5:-1),o.R7$(),o.vxM(!jt.domHelper.leanDom&&jt.rightButton&&jt.navigationAllowed?6:-1),o.R7$(),o.vxM(jt.domHelper.leanDom&&jt.rightButton&&jt.navigationAllowed?7:-1),o.R7$(),o.vxM(!jt.rightButton&&jt.navigationAllowed?8:-1),o.R7$(),o.vxM(jt.navigationAllowed?-1:9)}},dependencies:[We.M,Cr.Q,Qt.U,ze.q],styles:["storefront-app-bar,.pxp-app-bar{display:var(--appBarDisplay);width:100%;justify-content:center;align-items:center;position:fixed;top:0;transition:all .15s ease;padding:var(--appBarPaddingVert) var(--appBarPaddingHoriz);z-index:var(--zIndexAppBar);height:var(--appBarHeight);background-color:var(--appBarColor);color:var(--appBarTextColor);--textColor: var(--appBarTextColor)}storefront-app-bar .logo,.pxp-app-bar .logo{background-repeat:no-repeat;background-position:top center;background-size:contain;height:100%;width:80%;max-width:300px}
1storefront-app-bar .app-bar-content,.pxp-app-bar .app-bar-content{position:relative;height:100%;width:auto;display:flex;flex-grow:1;flex-direction:column;align-items:center;justify-content:center;font-size:var(--appBarFontSize);transition:all .15s ease}storefront-app-bar button,storefront-app-bar storefront-button,storefront-app-bar .pxp-button,.pxp-app-bar button,.pxp-app-bar storefront-button,.pxp-app-bar .pxp-button{width:var(--appBarButtonWidth);height:100%;background-color:transparent}storefront-app-bar button.has-text,storefront-app-bar storefront-button.has-text,storefront-app-bar .pxp-button.has-text,.pxp-app-bar button.has-text,.pxp-app-bar storefront-button.has-text,.pxp-app-bar .pxp-button.has-text{width:auto}body.scrolled storefront-app-bar.scroll-hide,body.scrolled .pxp-app-bar.scroll-hide{transform:translateY(-100%)}\n"],encapsulation:2}),Ot})();var gi=d(2348),ei=d(4049);function $i(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"div",1),o.bIt("click",function(){const jt=o.eBV(At).$implicit,vn=o.XpG();return o.Njj(vn.onClickEntry(jt))}),o.nrm(1,"span",2),o.k0s()}if(2&Be){const At=Ot.$implicit,st=o.XpG();o.AVh("active",st.isActive(At)),o.R7$(),o.Y8G("storefrontTranslate",At.text)}}let Ge=(()=>{var Be;class Ot{constructor(){this.router=(0,o.WQX)(Q.Ix),this.eventActionService=(0,o.WQX)(Bn.G),this.store=(0,o.WQX)(ve.B),this.contextService=(0,o.WQX)(k.V),this.viewService=(0,o.WQX)(ge.z),this.appData=(0,o.WQX)(_.fj),this.config=(0,o.hFB)(),this.mutableConfig=(0,o.uuI)(()=>(0,xt.A)((0,xt.A)({},ht),this.config()))}get scrollBehavior(){return"scroll-".concat(this.mutableConfig().scrollBehavior)}ngOnInit(){this.store.subscribe(this.contextService.viewContext$,st=>this.context=st)}onClickEntry(st){const jt=st;if(jt.tap)this.trackOnClickEntryAsAction(jt),this.eventActionService.processEventAction(jt.tap,this);else{const vn=st;this.trackOnClickEntryAsPathEntry(vn);const nr=this.isActive(vn),Xr=this.getQueryParams(vn,nr),Lr=this.getCommands(vn);this.router.navigate(Lr,{queryParams:Xr,replaceUrl:nr})}}isActive(st){return!!st.path&&this.router.isActive(st.path,!1)}getId(){return this.mutableConfig().id}getContext(){return this.context}getCommands(st){let jt=[this.appData.brand,st.path];return this.appData.customDomain&&(jt=[st.path]),jt}getQueryParams(st,jt){const vn=this.contextService.getParams();let nr={};return nr=jt?vn:{preview:vn.preview,configURL:vn.configURL},nr=(0,xt.A)((0,xt.A)({},nr),st.params),nr}trackOnClickEntryAsAction(st){const vn={action:(0,_.Dh)(st.tap.type)};this.dispatchTrackingAction("TAB_NAVIGATION_CLICKED",vn)}trackOnClickEntryAsPathEntry(st){const vn=(0,xt.A)({target:(0,_.Dh)(st.path)},st.params);this.dispatchTrackingAction("TAB_NAVIGATION_CLICKED",vn,this.viewService.getAbsoluteUrl(this.interpolatePath(st.path)))}dispatchTrackingAction(st,jt,vn){this.store.dispatch((0,zt.k4)({url:window.location.href,targetUrl:vn,key:st,params:jt}))}interpolatePath(st,jt=this.context){let vn=st?(0,ei.K)(st,jt):"";const nr=this.appData.customDomain?"":"/".concat(this.appData.brand);return"".concat(nr).concat(vn.startsWith("/")?vn:"/"+vn).concat(this.appData.preview?"?preview=true":"")}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275cmp=o.VBU({type:Be,selectors:[["storefront-tab-navigation"]],hostVars:2,hostBindings:function(st,jt){2&st&&o.HbH(jt.scrollBehavior)},inputs:{config:[1,"config"]},standalone:!1,features:[o.Jv_([ve.B])],decls:3,vars:0,consts:[[1,"tab-navigation-entry",3,"active"],[1,"tab-navigation-entry",3,"click"],[3,"storefrontTranslate"]],template:function(st,jt){1&st&&(o.j41(0,"div"),o.Z7z(1,$i,2,3,"div",0,o.fX1),o.k0s()),2&st&&(o.R7$(),o.Dyx(jt.mutableConfig().entries))},dependencies:[We.M],styles:["storefront-tab-navigation,.pxp-tab-navigation{width:100%;display:flex;flex-direction:row;height:var(--navigationHeight);transition:height .2s ease,transform .2s ease;background-color:var(--navigationBgColor);z-index:20}storefront-tab-navigation>div,.pxp-tab-navigation>div{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)}storefront-tab-navigation .tab-navigation-entry,.pxp-tab-navigation .tab-navigation-entry{height:100%;padding:0 var(--gutter);color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex;align-items:center;justify-content:center}storefront-tab-navigation .tab-navigation-entry span,.pxp-tab-navigation .tab-navigation-entry span{dis
1play:block;white-space:nowrap}body.scrolled-down storefront-tab-navigation.scroll-hide,body.scrolled-down .pxp-tab-navigation.scroll-hide{transform:translateY(100%)}body.scrolled-down storefront-tab-navigation.scroll-shrink,body.scrolled-down .pxp-tab-navigation.scroll-shrink{height:var(--appBarShrinkHeight)}storefront-tab-navigation .active,.pxp-tab-navigation .active{color:var(--navigationActiveColor)}\n"],encapsulation:2}),Ot})();const ht={id:null,scrollBehavior:gi.K.HIDE,entries:[]},Jt=["class","pxp-tab-navigation"];function Bt(Be,Ot){if(1&Be){const At=o.RV6();o.j41(0,"div",1),o.bIt("click",function(){const jt=o.eBV(At).$implicit,vn=o.XpG();return o.Njj(vn.onClickEntry(jt))}),o.nrm(1,"span",2),o.k0s()}if(2&Be){const At=Ot.$implicit,st=o.XpG();o.AVh("active",st.isActive(At)),o.R7$(),o.Y8G("storefrontTranslate",At.text)}}let Mn=(()=>{var Be;class Ot extends Ge{}return(Be=Ot).\u0275fac=(()=>{let At;return function(jt){return(At||(At=o.xGo(Be)))(jt||Be)}})(),Be.\u0275cmp=o.VBU({type:Be,selectors:[["div",8,"pxp-tab-navigation"]],standalone:!1,features:[o.Jv_([ve.B]),o.Vt3],attrs:Jt,decls:3,vars:0,consts:[[1,"tab-navigation-entry",3,"active"],[1,"tab-navigation-entry",3,"click"],[3,"storefrontTranslate"]],template:function(st,jt){1&st&&(o.j41(0,"div"),o.Z7z(1,Bt,2,3,"div",0,o.fX1),o.k0s()),2&st&&(o.R7$(),o.Dyx(jt.mutableConfig().entries))},dependencies:[We.M],styles:["storefront-tab-navigation,.pxp-tab-navigation{width:100%;display:flex;flex-direction:row;height:var(--navigationHeight);transition:height .2s ease,transform .2s ease;background-color:var(--navigationBgColor);z-index:20}storefront-tab-navigation>div,.pxp-tab-navigation>div{width:100%;display:flex;max-width:640px;margin:0 auto;justify-content:center;padding:0 var(--gutter)}storefront-tab-navigation .tab-navigation-entry,.pxp-tab-navigation .tab-navigation-entry{height:100%;padding:0 var(--gutter);color:var(--navigationColor);flex-shrink:0;flex-grow:1;flex-basis:0;display:flex;align-items:center;justify-content:center}storefront-tab-navigation .tab-navigation-entry span,.pxp-tab-navigation .tab-navigation-entry span{display:block;white-space:nowrap}body.scrolled-down storefront-tab-navigation.scroll-hide,body.scrolled-down .pxp-tab-navigation.scroll-hide{transform:translateY(100%)}body.scrolled-down storefront-tab-navigation.scroll-shrink,body.scrolled-down .pxp-tab-navigation.scroll-shrink{height:var(--appBarShrinkHeight)}storefront-tab-navigation .active,.pxp-tab-navigation .active{color:var(--navigationActiveColor)}\n"],encapsulation:2}),Ot})();const Nn=["class","pxp-side-menu"];function Gn(Be,Ot){return this.trackByElement(null,Ot)}function Wn(Be,Ot){}function _r(Be,Ot){1&Be&&o.DNE(0,Wn,0,0,"ng-template",5),2&Be&&o.Y8G("baseConfig",Ot.$implicit)("lazy",!1)}let or=(()=>{var Be;class Ot extends Dn{}return(Be=Ot).\u0275fac=(()=>{let At;return function(jt){return(At||(At=o.xGo(Be)))(jt||Be)}})(),Be.\u0275cmp=o.VBU({type:Be,selectors:[["div",8,"pxp-side-menu"]],standalone:!1,features:[o.Vt3],attrs:Nn,decls:7,vars:0,consts:[[1,"side-menu-backdrop",3,"click"],[1,"side-menu",3,"click"],[1,"side-menu-header"],["aria-label","close",1,"icon","icon-close",3,"click"],[1,"side-menu-content"],[3,"pxpDynamicComponent","baseConfig","lazy"]],template:function(st,jt){1&st&&(o.j41(0,"div",0),o.bIt("click",function(){return jt.close()}),o.k0s(),o.j41(1,"nav",1),o.bIt("click",function(nr){return nr.stopPropagation()}),o.j41(2,"div",2)(3,"button",3),o.bIt("click",function(){return jt.close()}),o.k0s()(),o.j41(4,"div",4),o.Z7z(5,_r,1,2,null,5,Gn,!0),o.k0s()()),2&st&&(o.R7$(5),o.Dyx(jt.children))},dependencies:[ze.q],styles:["storefront-side-menu .side-menu,.pxp-side-menu .side-menu{position:fixed;z-index:1001;top:0;left:0;height:100%;width:var(--sideMenuWidth, min(90vw, 350px));overflow-x:hidden;transform:translate(-100%);background-color:var(--sideMenuBackground, var(--backgroundColor));transition:transform var(--sideMenuTransitionTime, .3s);display:flex;flex-direction:column;padding:var(--gutter);gap:var(--gutter)}storefront-side-menu .side-menu>.side-menu-header,.pxp-side-menu .side-menu>.side-menu-header{width:100%;display:flex}.side-left storefront-side-menu .side-menu>.side-menu-header,.side-left .pxp-side-menu .side-menu>.side-menu-header{justify-content:end}storefront-side-menu .side-menu-backdrop,.pxp-side-menu .side-menu-backdrop{position:fixed;z-index:1000;top:0;left:0;width:100%;height:100%;background-color:#000000b3;opacity:0;transition:opacity var(--sideMenuTransitionTime, .3s);pointer-events:none}.state-open .side-menu{transform:translate(0)}.state-open .side-menu-backdrop{opacity:1;pointer-events:auto}\n"],encapsulation:2}),Ot})();const ar=["class","pxp-root"];function Mi(Be,Ot){if(1&Be&&o.nrm(0,"div",3),2&Be){const At=o.XpG(2);o.Y8G("config",At.appBarConfig)}}function si(Be,Ot){if(1&Be&&o.nrm(0,"storefront-app-bar",4),2&Be){const At=o.XpG(2);o.Y8G("config",At.appBarConfig)}}function oi(Be,Ot){if(1&Be&&o.DNE(0,Mi,1,1,"div",3)(1,si,1,1,"storefront-app-bar",4),2&Be){const At=o.XpG();o.vxM(At.domHelper.leanDom?0:1)}}function Gr(Be,Ot){1&Be&&o.nrm(0,"div",5)}function nt(Be,Ot){1&Be&&o.nrm(0,"storefront-side-menu")}function Nt(Be,Ot){if(1&Be&&o.DNE(0,Gr,1,0,"div",5)(1,nt,1,0,"storefront-side-menu"),2&Be){const At=o.XpG();o.vxM(At.domHelper.leanDom?0:1)}}function qt(Be,Ot){1&Be&&o.nrm(0,"router-outlet")}function kt(Be,Ot){if(1&Be&&o.nrm(0,"div",6),2&Be){const At=o.XpG(2);o.Y8G("config",At.navigationConfig)}}function An(Be,Ot){if(1&Be&&o.nrm(0,"storefront-tab-navigation",4),2&Be){const At=o.XpG(2);o.Y8G("config",At.navigationConfig)}}function Rn(Be,Ot){if(1&Be&&o.DNE(0,kt,1,1,"div",6)(1,An,1,1,"storefront-tab-navigation",4),2&Be){const At=o.XpG();o.vxM(At.domHelper.leanDom?0:1)}}let sr=(()=>{var Be;class Ot extends ue.Z{}return(Be=Ot).\u0275fac=(()=>{let At;return function(jt){return(At||(At=o.xGo(Be)))(jt||Be)}})(),Be.\u0275cmp=o.VBU({type:Be,selectors:[["div",8,"pxp-root"]],standalone:!1,features:[o.Jv_([ve.B]),o.Vt3],attrs:ar,decls:7,vars:4,consts:[["name","modal"],["name","presenter"],[1,"bottom-sticky-elements"],[1,"pxp-app-bar",3,"config"],[3,"config"],[1,"pxp-side-menu"],[1,"pxp-tab-navigation",3,"config"]],template:function(st,jt){1&st&&(o.DNE(0,oi,2,1)(1,Nt,2,1)(2,qt,1,0,"router-outlet"),o.nrm(3,"router-outlet",0)(4,"router-outlet",1),o.j41(5,"div",2),o.DNE(6,Rn,2,1),o.k0s()),2&st&&(o.vxM(!jt.nativeAppBar&&jt.appBarConfig?0:-1),o.R7$(),o.vxM(jt.hasNoAppAndNoCustomSideMenuSignal()?1:-1),o.R7$(),o.vxM(jt.showView?2:-1),o.R7$(4),o.vxM(jt.navigationConfig?6:-1))},dependencies:[Q.n3,uo,$r,Ge,Mn,Dn,or],styles:[".bottom-sticky-elements[_ngcontent-%COMP%]{bottom:0;left:0;right:0;position:fixed;z-index:9}"]}),Ot})();const Hr=(0,o.zw6)("PurpleEnvironment"),xr=(0,o.zw6)("BuildInfo"),fi=(0,o.zw6)("APP_DATA"),Tr=(0,o.zw6)("PXP_CONFIG_KEY");let Li=(()=>{var Be;class Ot{constructor(){this.injector=(0,o.WQX)(o.zZn),Te.q.injector=this.injector}ngDoBootstrap(st){const vn=this.injector.get(hn.S).leanDom?sr:ue.Z;st.bootstrap(vn)}}return(Be=Ot).\u0275fac=function(st){return new(st||Be)},Be.\u0275mod=o.$C({type:Be}),Be.\u0275inj=o.G2t({providers:[{provide:o.sZ2,useValue:"pxp"},(0,u.$x)((0,u.dE)(),(0,u.rQ)()),(0,O.$R)(),ve.B,{provide:x.$E,useValue:{animation:{enterDuration:200}}},P.l,{provide:_.GZ,useFactory:At=>At.location,deps:[v.qQ]},{provide:_e.s,useFactory:(At,st)=>(0,v.Vy)(st)?new _e.A(At):new _e.s,deps:[Q.Ix,o.Agw]},(0,o.phd)((0,p.A)(function*(){const Be=(0,o.WQX)(v.qQ),Ot=(0,o.WQX)(o.Agw),At=(0,o.WQX)(_.r6),st=(0,o.WQX)(o.pJN),jt=(0,o.WQX)(_.fj);let vn;if(!(0,o.naY)()&&!At.isApp&&!Be.location.href.includes("debug=true")&&!Be.location.href.includes("preview=true")&&(console.debug=console.log=()=>{}),st.hasKey(xr))vn=st.get(xr,{});else if((0,v.Vy)(Ot))st.set(xr,At.buildInfo);else try{const nr=At.isApp?"./buildInfo.json":"".concat(jt.baseUrl,"/buildInfo.json");vn=yield(0,w.hI)(nr),st.set(xr,vn)}
1catch(nr){console.error("Error loading build info",nr)}vn&&!(0,v.Vy)(Ot)&&(console.log((0,_.xk)(!1,vn)),window.prebootData={apps:["empty"]})})),(0,_.rQ)(_.r6,Hr,_.fs,_.lz),(0,_.rQ)(_.fj,fi,_.Db,_.l2),(0,_.rQ)(_.Wp,Tr,_.A0,_.wx),{provide:Et.y,useFactory:(At,st)=>{var jt;return(0,v.UE)(st)&&At.hasKey(dn.tZ)?(null===(jt=At.get(dn.tZ,{}))||void 0===jt||null===(jt=jt.ads)||void 0===jt?void 0:jt.traffective)?new Et.y:null:new Et.y},deps:[o.pJN,o.Agw]}],imports:[U.wb,et,X.t,ne.ElementModule,Ct,te,$.P,gt.h,G.E,be.md.forRoot({[oe.iL]:(0,oe.HN)(oe.sb),[In.$]:In.F,[yt.E]:yt.F}),re.Vm.forRoot([oe.L2,$n,Ht,Ve])]}),Ot})();o.wjB(ue.Z,function(){return[Q.n3,uo,$r,Ge,Mn,Dn,or]},[]);var S=d(4088),me=d(7370);window.storefrontHooks=window.storefrontHooks||{},S.c.production&&(0,o.SmG)();const rt=function(){var Be=(0,p.A)(function*(){const Ot=yield window.purple.metadata.getMetadata(),At=(()=>{const Be=window.location.hash,Ot=Be.indexOf("?");if(-1===Ot)return null;const At=Be.substring(Ot+1);return new URLSearchParams(At).get("configURL")})(),st=At||location.href;return{preview:"true"===Ot.preview_app,appWebConfig:null,baseUrl:"",brand:"",customDomain:!0,resourceUrlTemplate:"".concat(new URL("..",st).toString(),"{path}")}});return function(){return Be.apply(this,arguments)}}(),$t=function(){var Be=(0,p.A)(function*(Ot){const At=(0,me.Al)("storefront/assets/experience.config.json",Ot);try{return yield(0,w.hI)(At)}catch(st){console.warn("failed to load '".concat(At,"'"),st)}return{}});return function(At){return Be.apply(this,arguments)}}(),Fn=function(){var Be=(0,p.A)(function*(){if(window.purple){const Ot=yield rt(),At=yield $t(Ot);return[{provide:_.Db,useValue:Ot},{provide:_.A0,useValue:At},{provide:_.fs,useValue:{MANAGER_BASE_URL:"",isApp:!0,isUniversal:!1}}]}return[]});return function(){return Be.apply(this,arguments)}}();(function(){var Be=(0,p.A)(function*(){const Ot=yield Fn();yield u.sG(Ot).bootstrapModule(Li)});return function(){return Be.apply(this,arguments)}})()().catch(Be=>console.error(Be))},4404:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(970),E)},8589:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(9100),E)},9100:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AssignLocalPurchasesMode=void 0;var d=function(p){return p.UNASSIGNED="UNASSIGNED",p.REASSIGN="REASSIGN",p.ASSIGN="ASSIGN",p}(d||(E.AssignLocalPurchasesMode=d={}))},6794:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3155:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.APP_STATE_TYPE=void 0;var d=function(p){return p.STARTED="STARTED",p.RESUMED="RESUMED",p.PAUSED="PAUSED",p.STOPPED="STOPPED",p}(d||(E.APP_STATE_TYPE=d={}))},2779:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7146:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8397:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AppSubscriptionAdditionalBackIssueUnlocksType=void 0;var d=function(p){return p.DAY="DAY",p.WEEK="WEEK",p.MONTH="MONTH",p.YEAR="YEAR",p}(d||(E.AppSubscriptionAdditionalBackIssueUnlocksType=d={}))},7733:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.AppSubscriptionType=E.AppSubscriptionDuration=void 0;var d=function(u){return u.SEVEN_DAYS="SEVEN_DAYS",u.TWO_WEEKS="TWO_WEEKS",u.ONE_MONTH="ONE_MONTH",u.TWO_MONTHS="TWO_MONTHS",u.THREE_MONTHS="THREE_MONTHS",u.SIX_MONTHS="SIX_MONTHS",u.ONE_YEAR="ONE_YEAR",u}(d||(E.AppSubscriptionDuration=d={})),p=function(u){return u.FREE="FREE",u.AUTORENEWABLE="AUTORENEWABLE",u.NONAUTORENEWABLE="NONAUTORENEWABLE",u}(p||(E.AppSubscriptionType=p={}))},8475:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1462:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9546:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3482:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2247:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ContentResourceType=E.CatalogBundleType=E.CatalogContentType=E.Access=void 0;var d=function(v){return v.FREE="FREE",v.HIDDEN="HIDDEN",v.PURCHASABLE="PURCHASABLE",v}(d||(E.Access=d={})),p=function(v){return v.ISSUE="ISSUE",v.POST="POST",v.BUNDLE="BUNDLE",v}(p||(E.CatalogContentType=p={})),u=function(v){return v.ISSUE="ISSUE",v.DOSSIER="DOSSIER",v}(u||(E.CatalogBundleType=u={})),o=function(v){return v.ASSET="ASSET",v.CONTENT_BUNDLE="CONTENT_BUNDLE",v}(o||(E.ContentResourceType=o={}))},3257:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3825:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.IssueType=E.PurchaseOption=void 0;var d=function(u){return u.APP_STORE_PURCHASE="APP_STORE_PURCHASE",u.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",u.ENTITLEMENT="ENTITLEMENT",u.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",u.TRIAL="TRIAL",u.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT",u.ACCOUNT="ACCOUNT",u.NETWORK="NETWORK",u}(d||(E.PurchaseOption=d={})),p=function(u){return u.ARTICLE="ARTICLE",u.ISSUE="ISSUE",u}(p||(E.IssueType=p={}))},3535:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2191:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6214:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4190:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PublicationType=void 0;var d=function(p){return p.KIOSK="KIOSK",p.CHANNEL="CHANNEL",p}(d||(E.PublicationType=d={}))},995:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1621:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7605:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4809:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2740:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SortDirection=void 0;var d=function(p){return p.ASC="ASC",p.DESC="DESC",p}(d||(E.SortDirection=d={}))},9722:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5425:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6396:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6242:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},917:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1801:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8147:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9381:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2213:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4060:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ERROR_CODE=void 0;var d=function(p){return p.ACCESS_DENIED="ACCESS_DENIED",p.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",p.ALREADY_OWNED="ALREADY_OWNED",p.CANCELLED="CANCELLED",p.CONFIGURATION_ERROR="CONFIGURATION_ERROR",p.DUPL
1ICATE_CODE="DUPLICATE_CODE",p.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",p.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",p.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",p.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",p.INVALID_CODE="INVALID_CODE",p.INVALID_CREDENTIALS="INVALID_CREDENTIALS",p.NETWORK="NETWORK",p.NO_ISSUES_FOUND="NO_ISSUES_FOUND",p.NOT_AVAILABLE="NOT_AVAILABLE",p.NOT_FOUND="NOT_FOUND",p.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",p.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",p.NOT_HANDLED="NOT_HANDLED",p.NOTHING_LOADED="NOTHING_LOADED",p.NOT_LOGGED_IN="NOT_LOGGED_IN",p.PAYMENT_REQUIRED="PAYMENT_REQUIRED",p.UNKNOWN="UNKNOWN",p.UNKNOWN_CODE="UNKNOWN_CODE",p.UNKNOWN_OFFER="UNKNOWN_OFFER",p.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",p.UNKNOWN_VENDOR="UNKNOWN_VENDOR",p.USER_DEACTIVATED="USER_DEACTIVATED",p.VALIDATION_FAILED="VALIDATION_FAILED",p}(d||(E.ERROR_CODE=d={}))},8227:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ListOperation=E.IntOperation=E.DateOperation=E.StringOperation=void 0;var d=function(v){return v.EQUAL="EQUAL",v.CONTAINS="CONTAINS",v.STARTS_WITH="STARTS_WITH",v.GREATER_THAN="GREATER_THAN",v.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",v.LESS_THAN="LESS_THAN",v.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",v.REGEX="REGEX",v}(d||(E.StringOperation=d={})),p=function(v){return v.GREATER_THAN="GREATER_THAN",v.LESS_THAN="LESS_THAN",v.EQUAL="EQUAL",v}(p||(E.DateOperation=p={})),u=function(v){return v.GREATER_THAN="GREATER_THAN",v.LESS_THAN="LESS_THAN",v.EQUAL="EQUAL",v}(u||(E.IntOperation=u={})),o=function(v){return v.CONTAINS="CONTAINS",v.CONTAINS_ONLY="CONTAINS_ONLY",v}(o||(E.ListOperation=o={}))},4369:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9134:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5767:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1847:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8009:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8994:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5902:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1534:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9278:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2387:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1524:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5725:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1872:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2093:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1680:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6786:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(7146),E),u(d(7733),E),u(d(8397),E),u(d(8475),E),u(d(1462),E),u(d(9546),E),u(d(3482),E),u(d(2247),E),u(d(3825),E),u(d(3257),E),u(d(3535),E),u(d(2191),E),u(d(6214),E),u(d(4190),E),u(d(995),E),u(d(1621),E),u(d(7605),E),u(d(4809),E),u(d(2740),E),u(d(9722),E),u(d(5425),E),u(d(6396),E),u(d(6242),E),u(d(917),E),u(d(1801),E),u(d(8147),E),u(d(9381),E),u(d(2213),E),u(d(4060),E),u(d(8227),E),u(d(4369),E),u(d(9134),E),u(d(5767),E),u(d(1847),E),u(d(8009),E),u(d(8994),E),u(d(5902),E),u(d(1534),E),u(d(9278),E),u(d(2387),E),u(d(1524),E),u(d(5725),E),u(d(1872),E),u(d(2093),E),u(d(1680),E),u(d(6944),E),u(d(1426),E),u(d(3631),E),u(d(1176),E),u(d(8031),E),u(d(7824),E),u(d(726),E),u(d(2658),E),u(d(9269),E),u(d(6587),E),u(d(1378),E),u(d(7585),E),u(d(629),E),u(d(2260),E),u(d(9755),E),u(d(2893),E),u(d(3544),E),u(d(2850),E),u(d(7475),E),u(d(6052),E),u(d(5105),E),u(d(1876),E),u(d(1311),E),u(d(9580),E),u(d(1290),E),u(d(424),E),u(d(1740),E),u(d(2833),E),u(d(8621),E),u(d(4795),E),u(d(6251),E),u(d(8159),E),u(d(1798),E),u(d(8844),E),u(d(3979),E),u(d(7822),E),u(d(2015),E),u(d(2644),E),u(d(1082),E)},6944:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1426:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3631:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1176:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8031:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7824:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},726:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2658:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6587:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9269:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1378:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7585:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},629:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2260:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9755:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2893:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7475:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3544:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2850:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PublicationProductType=void 0;var d=function(p){return p.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",p.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE",p}(d||(E.PublicationProductType=d={}))},6052:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5105:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1876:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1311:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SystemConsentStatus=void 0;var d=function(p){return p.GRANTED="GRANTED",p.DENIED="DENIED",p.UNDETERMINED="UNDETERMINED",p}(d||(E.SystemConsentStatus=d={}))},9580:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UpdateTokenMode=void 0;var d=function(p){return p.VERIFY="VERIFY",p.REFRESH="REFRESH",p}(d||(E.UpdateTokenMode=d={}))},1290:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},424:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1740:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2833:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SearchResultSortCriteria=void 0;var d=function(p){return p.RELEVANCE="RELEVANCE",p.PUB_DATE_DESC="PUB_DATE_DESC",p}(d||(E.SearchResultSortCriteria=d={}))},8621:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SearchField=void 0;var d=function(p){return p.CONTENT="CONTENT",p.CONTENT_NAME="CONTENT_NAME",p.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",p.CUSTOM_TERMS="CUSTOM_TERMS",p}(d||(E.SearchField=d={}))},4795:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6251:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8159:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1798:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.StartDownloadError=void 0;var d=function(p){return p.NETWORK="NETWORK",p.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",p.PAYMENT_REQUIRED="PAYMENT_REQUIRED",p.NOT_FOUND="NOT_FOUND",p.UNKNOWN="UNKNOWN",p}(d||(E.StartDownloadError=d={}))},8844:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3979:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7822:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2015:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},2644:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1082:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},528:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8960:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.CONNECTION_TYPE=E.CONNECTION_STATE=void 0;var d=function(u){return u.ONLINE="ONLINE",u.OFFLINE="OFFLINE",u}(d||(E.CONNECTION_STATE=d={})),p=function(u){return u.TYPE_3G="TYPE_3G",u.TYPE_WLAN="TYPE_WLAN",u}(p||(E.CONNECTION_TYPE=p={}))},4019:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5419:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ContentStateError=E.ContentInstallState=void 0;var d=function(u){return u.NOT_INSTALLED="NOT_INSTALLED",u.INCOMPLETE="INCOMPLETE",u.COMPLETE="COMPLETE",u}(d||(E.ContentInstallState=d={})),p=function(u){return u.NETWORK="NETWORK",u.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",u.PAYMENT_REQUIRED="PAYMENT_REQUIRED",u.NOT_FOUND="NOT_FOUND",u.UNKNOWN="UNKNOWN",u}(p||(E.ContentStateError=p={}))},1892:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9047:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3697:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5881:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5860:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(5419),E),u(d(4019),E),u(d(1892),E),u(d(9047),E),u(d(3697),E),u(d(5881),E),u(d(6281),E),u(d(3610),E),u(d(3426),E),u(d(1327),E),u(d(4364),E),u(d(1015),E)},6281:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3610:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3426:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1327:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ElementAlignment=void 0;var d=function(p){return p.TOP_LEFT="TOP_LEFT",p.TOP_CENTER="TOP_CENTER",p.TOP_RIGHT="TOP_RIGHT",p.CENTER_LEFT="CENTER_LEFT",p.CENTER_CENT
1ER="CENTER_CENTER",p.CENTER_RIGHT="CENTER_RIGHT",p.BOTTOM_LEFT="BOTTOM_LEFT",p.BOTTOM_CENTER="BOTTOM_CENTER",p.BOTTOM_RIGHT="BOTTOM_RIGHT",p}(d||(E.ElementAlignment=d={}))},4364:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1015:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6583:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.DisplayMode=E.DISPLAY_MODE=void 0;var d=function(u){return u.EMBEDDED="embedded",u.MODAL="modal",u}(d||(E.DISPLAY_MODE=d={})),p=function(u){return u.EMBEDDED="EMBEDDED",u.MODAL="MODAL",u}(p||(E.DisplayMode=p={}))},8715:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.LoginState=E.ENTITLEMENT_MODE=void 0;var d=function(u){return u.ENTITLEMENT="entitlement",u.OAUTH="oauth",u.NONE="none",u}(d||(E.ENTITLEMENT_MODE=d={})),p=function(u){return u.LOGGED_OUT="LOGGED_OUT",u.LOGGED_IN="LOGGED_IN",u}(p||(E.LoginState=p={}))},970:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(6794),E),u(d(3155),E),u(d(528),E),u(d(8960),E),u(d(6583),E),u(d(8715),E),u(d(3595),E),u(d(1615),E),u(d(6879),E),u(d(9252),E),u(d(7899),E),u(d(2241),E),u(d(7096),E),u(d(9526),E),u(d(3520),E),u(d(4957),E),u(d(987),E),u(d(6448),E),u(d(581),E),u(d(3326),E),u(d(653),E),u(d(9874),E),u(d(9943),E),u(d(3727),E),u(d(5834),E),u(d(2779),E),u(d(3370),E),u(d(6786),E),u(d(5860),E),u(d(8548),E),u(d(9276),E),u(d(8589),E)},1615:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6879:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ISSUE_STATE=void 0;var d=function(p){return p.PURCHASABLE="PURCHASABLE",p.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",p.DOWNLOADING="DOWNLOADING",p.AVAILABLE="AVAILABLE",p.INSTALLING="INSTALLING",p.UPDATE="UPDATE",p.INSTALLED="INSTALLED",p.LOCKED="LOCKED",p.COMING_SOON="COMING_SOON",p.INDEXING="INDEXING",p.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",p.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED",p}(d||(E.ISSUE_STATE=d={}))},3595:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9252:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7899:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.MEDIA_PLAYBACK_STATE=void 0;var d=function(p){return p.NONE="NONE",p.ERROR="ERROR",p.LOADING="LOADING",p.READY="READY",p.PLAYING="PLAYING",p}(d||(E.MEDIA_PLAYBACK_STATE=d={}))},2241:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.Platform=void 0;var d=function(p){return p.ANDROID="android",p.IOS="ios",p}(d||(E.Platform=d={}))},7096:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.PUBLICATION_TYPE=void 0;var d=function(p){return p.KIOSK="KIOSK",p.CHANNEL="CHANNEL",p}(d||(E.PUBLICATION_TYPE=d={}))},987:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3520:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4957:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6448:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.OpenFileMode=E.OpenFileTarget=void 0;var d=function(u){return u.INTERNAL="INTERNAL",u.EXTERNAL="EXTERNAL",u}(d||(E.OpenFileTarget=d={})),p=function(u){return u.MODAL="MODAL",u.EMBEDDED="EMBEDDED",u}(p||(E.OpenFileMode=p={}))},581:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3326:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.METADATA_KEY=void 0;var d=function(p){return p.APP_ID="app_id",p.APP_VERSION="app_version",p.BUNDLE_ID="bundle_id",p.DEEPLINK_SCHEME="deeplink_scheme",p.PREVIEW_APP="preview_app",p.DEVICE_ID="device_id",p.DEVICE_MODEL="device_model",p.DEVICE_OS="device_os",p.PLATFORM="platform",p.LOCALE="locale",p.MANAGER_BASE_URL="manager_base_url",p.PUSH_REGISTRATION_TOKEN="push_registration_token",p.ENTITLEMENT_LOGIN="entitlement_login",p.ENTITLEMENT_TOKEN="entitlement_token",p.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",p.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",p.ENTITLEMENT_MODE="entitlement_mode",p.ISSUE_ID="issue_id",p.ISSUE_NAME="issue_name",p.PUBLICATION_ID="publication_id",p.PUBLICATION_NAME="publication_name",p.PAGE_ID="page_id",p.PAGE_ALIAS="page_alias",p.PAGE_TITLE="page_title",p.PAGE_INDEX="page_index",p.PAGE_FILENAME="page_filename",p.PURPLE_VERSION="purple_version",p.ONBOARDING_MODE="onboarding_mode",p}(d||(E.METADATA_KEY=d={}))},653:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9874:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9526:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4674:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9276:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(2640),E),u(d(4674),E),u(d(6414),E),u(d(7775),E),u(d(7239),E)},2640:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6414:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7775:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7239:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.LAST_VISITED_PATH=void 0,E.LAST_VISITED_PATH="lastVisitedPath"},4267:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9215:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},3975:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9551:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5688:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4112:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},8548:function(le,E,d){"use strict";var p=this&&this.__createBinding||(Object.create?function(o,v,O,x){void 0===x&&(x=O);var U=Object.getOwnPropertyDescriptor(v,O);(!U||("get"in U?!v.__esModule:U.writable||U.configurable))&&(U={enumerable:!0,get:function(){return v[O]}}),Object.defineProperty(o,x,U)}:function(o,v,O,x){void 0===x&&(x=O),o[x]=v[O]}),u=this&&this.__exportStar||function(o,v){for(var O in o)"default"!==O&&!Object.prototype.hasOwnProperty.call(v,O)&&p(v,o,O)};Object.defineProperty(E,"__esModule",{value:!0}),u(d(4267),E),u(d(9215),E),u(d(3975),E),u(d(9551),E),u(d(5688),E),u(d(4112),E),u(d(7596),E),u(d(1571),E),u(d(6453),E),u(d(7385),E),u(d(9394),E),u(d(9596),E),u(d(4460),E),u(d(556),E),u(d(2922),E)},7596:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},1571:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},6453:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7385:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9394:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9596:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},4460:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},556:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.ProrationMode=void 0;var d=function(p){return p.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",p.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",p.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",p.DEFERRED="DEFERRED",p}(d||(E.ProrationMode=d={}))},2922:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},9943:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.SUBSCRIPTION_STATE=void 0;var d=function(p){return p.NONE="NONE",p.PURCHASING="PURCHASING",p.VALIDATING="VALIDATING",p.PURCHASED="PURCHASED",p}(d||(E.SUBSCRIPTION_STATE=d={}))},3727:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},5834:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0}),E.UPDATE_STOREFRONT_ERROR_CODE=E.UPDATE_STOREFRONT_TYPE=void 0;var d=function(u){return u.PARTIAL="PARTIAL",u.FULL="FULL",u.LOGIN="LOGIN",u.LOGOUT="LOGOUT",u}(d||(E.UPDATE_STOREFRONT_TYPE=d={})),p=function(u){return u.OFFLINE="OFFLINE",u.UNKNOWN="UNKNOWN",u}(p||(E.UPDATE_STOREFRONT_ERROR_CODE=p={}))},3370:(le,E)=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0})},7374:function(le){le.exports=function(){"use strict";var d=6e4,p=36e5,u="millisecond",o="second",v="minute",O="hour",x="day",U="week",Q="month",re="quarter",be="year",ue="date",X="Invalid Date",ne=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,te=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,549 bytes, line 1
1|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var k=["th","st","nd","rd"],K=V%100;return"["+V+(k[(K-20)%10]||k[K]||k[0])+"]"}},J=function(V,k,K){var ge=String(V);return!ge||ge.length>=k?V:""+Array(k+1-ge.length).join(K)+V},se={s:J,z:function(V){var k=-V.utcOffset(),K=Math.abs(k),ge=Math.floor(K/60),ve=K%60;return(k<=0?"+":"-")+J(ge,2,"0")+":"+J(ve,2,"0")},m:function V(k,K){if(k.date()<K.date())return-V(K,k);var ge=12*(K.year()-k.year())+(K.month()-k.month()),ve=k.clone().add(ge,Q),Fe=K-ve<0,We=k.clone().add(ge+(Fe?-1:1),Q);return+(-(ge+(K-ve)/(Fe?ve-We:We-ve))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:Q,y:be,w:U,d:x,D:ue,h:O,m:v,s:o,ms:u,Q:re}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return void 0===V}},De="en",Ce={};Ce[De]=$;var ce="$isDayjsObject",_=function(V){return V instanceof z||!(!V||!V[ce])},R=function V(k,K,ge){var ve;if(!k)return De;if("string"==typeof k){var Fe=k.toLowerCase();Ce[Fe]&&(ve=Fe),K&&(Ce[Fe]=K,ve=Fe);var We=k.split("-");if(!ve&&We.length>1)return V(We[0])}else{var ze=k.name;Ce[ze]=k,ve=ze}return!ge&&ve&&(De=ve),ve||!ge&&De},w=function(V,k){if(_(V))return V.clone();var K="object"==typeof k?k:{};return K.date=V,K.args=arguments,new z(K)},B=se;B.l=R,B.i=_,B.w=function(V,k){return w(V,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var z=function(){function V(K){this.$L=R(K.locale,null,!0),this.parse(K),this.$x=this.$x||K.x||{},this[ce]=!0}var k=V.prototype;return k.parse=function(K){this.$d=function(ge){var ve=ge.date,Fe=ge.utc;if(null===ve)return new Date(NaN);if(B.u(ve))return new Date;if(ve instanceof Date)return new Date(ve);if("string"==typeof ve&&!/Z$/i.test(ve)){var We=ve.match(ne);if(We){var ze=We[2]-1||0,bt=(We[7]||"0").substring(0,3);return Fe?new Date(Date.UTC(We[1],ze,We[3]||1,We[4]||0,We[5]||0,We[6]||0,bt)):new Date(We[1],ze,We[3]||1,We[4]||0,We[5]||0,We[6]||0,bt)}}return new Date(ve)}(K),this.init()},k.init=function(){var K=this.$d;this.$y=K.getFullYear(),this.$M=K.getMonth(),this.$D=K.getDate(),this.$W=K.getDay(),this.$H=K.getHours(),this.$m=K.getMinutes(),this.$s=K.getSeconds(),this.$ms=K.getMilliseconds()},k.$utils=function(){return B},k.isValid=function(){return this.$d.toString()!==X},k.isSame=function(K,ge){var ve=w(K);return this.startOf(ge)<=ve&&ve<=this.endOf(ge)},k.isAfter=function(K,ge){return w(K)<this.startOf(ge)},k.isBefore=function(K,ge){return this.endOf(ge)<w(K)},k.$g=function(K,ge,ve){return B.u(K)?this[ge]:this.set(ve,K)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(K,ge){var ve=this,Fe=!!B.u(ge)||ge,We=B.p(K),ze=function(fe,D){var H=B.w(ve.$u?Date.UTC(ve.$y,D,fe):new Date(ve.$y,D,fe),ve);return Fe?H:H.endOf(x)},bt=function(fe,D){return B.w(ve.toDate()[fe].apply(ve.toDate("s"),(Fe?[0,0,0,0]:[23,59,59,999]).slice(D)),ve)},Ke=this.$W,Me=this.$M,tt=this.$D,He="set"+(this.$u?"UTC":"");switch(We){case be:return Fe?ze(1,0):ze(31,11);case Q:return Fe?ze(1,Me):ze(0,Me+1);case U:var ot=this.$locale().weekStart||0,je=(Ke<ot?Ke+7:Ke)-ot;return ze(Fe?tt-je:tt+(6-je),Me);case x:case ue:return bt(He+"Hours",0);case O:return bt(He+"Minutes",1);case v:return bt(He+"Seconds",2);case o:return bt(He+"Milliseconds",3);default:return this.clone()}},k.endOf=function(K){return this.startOf(K,!1)},k.$set=function(K,ge){var ve,Fe=B.p(K),We="set"+(this.$u?"UTC":""),ze=(ve={},ve[x]=We+"Date",ve[ue]=We+"Date",ve[Q]=We+"Month",ve[be]=We+"FullYear",ve[O]=We+"Hours",ve[v]=We+"Minutes",ve[o]=We+"Seconds",ve[u]=We+"Milliseconds",ve)[Fe],bt=Fe===x?this.$D+(ge-this.$W):ge;if(Fe===Q||Fe===be){var Ke=this.clone().set(ue,1);Ke.$d[ze](bt),Ke.init(),this.$d=Ke.set(ue,Math.min(this.$D,Ke.daysInMonth())).$d}else ze&&this.$d[ze](bt);return this.init(),this},k.set=function(K,ge){return this.clone().$set(K,ge)},k.get=function(K){return this[B.p(K)]()},k.add=function(K,ge){var ve,Fe=this;K=Number(K);var We=B.p(ge),ze=function(Me){var tt=w(Fe);return B.w(tt.date(tt.date()+Math.round(Me*K)),Fe)};if(We===Q)return this.set(Q,this.$M+K);if(We===be)return this.set(be,this.$y+K);if(We===x)return ze(1);if(We===U)return ze(7);var bt=(ve={},ve[v]=d,ve[O]=p,ve[o]=1e3,ve)[We]||1,Ke=this.$d.getTime()+K*bt;return B.w(Ke,this)},k.subtract=function(K,ge){return this.add(-1*K,ge)},k.format=function(K){var ge=this,ve=this.$locale();
vendor: 1,823 bytes, line 1
1if(!this.isValid())return ve.invalidDate||X;var Fe=K||"YYYY-MM-DDTHH:mm:ssZ",We=B.z(this),ze=this.$H,bt=this.$m,Ke=this.$M,Me=ve.weekdays,tt=ve.months,ot=function(D,H,Se,Ue){return D&&(D[H]||D(ge,Fe))||Se[H].slice(0,Ue)},je=function(D){return B.s(ze%12||12,D,"0")},fe=ve.meridiem||function(D,H,Se){var Ue=D<12?"AM":"PM";return Se?Ue.toLowerCase():Ue};return Fe.replace(te,function(D,H){return H||function(Se){switch(Se){case"YY":return String(ge.$y).slice(-2);case"YYYY":return B.s(ge.$y,4,"0");case"M":return Ke+1;case"MM":return B.s(Ke+1,2,"0");case"MMM":return ot(ve.monthsShort,Ke,tt,3);case"MMMM":return ot(tt,Ke);case"D":return ge.$D;case"DD":return B.s(ge.$D,2,"0");case"d":return String(ge.$W);case"dd":return ot(ve.weekdaysMin,ge.$W,Me,2);case"ddd":return ot(ve.weekdaysShort,ge.$W,Me,3);case"dddd":return Me[ge.$W];case"H":return String(ze);case"HH":return B.s(ze,2,"0");case"h":return je(1);case"hh":return je(2);case"a":return fe(ze,bt,!0);case"A":return fe(ze,bt,!1);case"m":return String(bt);case"mm":return B.s(bt,2,"0");case"s":return String(ge.$s);case"ss":return B.s(ge.$s,2,"0");case"SSS":return B.s(ge.$ms,3,"0");case"Z":return We}return null}(D)||We.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(K,ge,ve){var Fe,We=this,ze=B.p(ge),bt=w(K),Ke=(bt.utcOffset()-this.utcOffset())*d,Me=this-bt,tt=function(){return B.m(We,bt)};switch(ze){case be:Fe=tt()/12;break;case Q:Fe=tt();break;case re:Fe=tt()/3;break;case U:Fe=(Me-Ke)/6048e5;break;case x:Fe=(Me-Ke)/864e5;break;case O:Fe=Me/p;break;case v:Fe=Me/d;break;case o:Fe=Me/1e3;break;default:Fe=Me}return ve?Fe:B.a(Fe)},k.daysInMonth=function(){return this.endOf(Q).$D},k.$locale=function(){return Ce[this.$L]},k.locale=function(K,ge){if(!K)return this.$L;var ve=this.clone(),Fe=R(K,ge,!0);
vendor: 4,206 bytes, line 1
1return Fe&&(ve.$L=Fe),ve},k.clone=function(){return B.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},V}(),oe=z.prototype;return w.prototype=oe,[["$ms",u],["$s",o],["$m",v],["$H",O],["$W",x],["$M",Q],["$y",be],["$D",ue]].forEach(function(V){oe[V[1]]=function(k){return this.$g(k,V[0],V[1])}}),w.extend=function(V,k){return V.$i||(V(k,z,w),V.$i=!0),w},w.locale=R,w.isDayjs=_,w.unix=function(V){return w(1e3*V)},w.en=Ce[De],w.Ls=Ce,w.p={},w}()},5180:function(le){le.exports=function(){"use strict";var E={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},d=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,p=/\d\d/,u=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,v={},O=function(X){return(X=+X)+(X>68?1900:2e3)},x=function(X){return function(ne){this[X]=+ne}},U=[/[+-]\d\d:?(\d\d)?|Z/,function(X){(this.zone||(this.zone={})).offset=function(ne){if(!ne||"Z"===ne)return 0;var te=ne.match(/([+-]|\d\d)/g),$=60*te[1]+(+te[2]||0);return 0===$?0:"+"===te[0]?-$:$}(X)}],Q=function(X){var ne=v[X];return ne&&(ne.indexOf?ne:ne.s.concat(ne.f))},re=function(X,ne){var te,$=v.meridiem;if($){for(var J=1;J<=24;J+=1)if(X.indexOf($(J,0,ne))>-1){te=J>12;break}}else te=X===(ne?"pm":"PM");return te},be={A:[o,function(X){this.afternoon=re(X,!1)}],a:[o,function(X){this.afternoon=re(X,!0)}],S:[/\d/,function(X){this.milliseconds=100*+X}],SS:[p,function(X){this.milliseconds=10*+X}],SSS:[/\d{3}/,function(X){this.milliseconds=+X}],s:[u,x("seconds")],ss:[u,x("seconds")],m:[u,x("minutes")],mm:[u,x("minutes")],H:[u,x("hours")],h:[u,x("hours")],HH:[u,x("hours")],hh:[u,x("hours")],D:[u,x("day")],DD:[p,x("day")],Do:[o,function(X){var ne=v.ordinal,te=X.match(/\d+/);if(this.day=te[0],ne)for(var $=1;$<=31;$+=1)ne($).replace(/\[|\]/g,"")===X&&(this.day=$)}],M:[u,x("month")],MM:[p,x("month")],MMM:[o,function(X){var ne=Q("months"),te=(Q("monthsShort")||ne.map(function($){return $.slice(0,3)})).indexOf(X)+1;if(te<1)throw new Error;this.month=te%12||te}],MMMM:[o,function(X){var ne=Q("months").indexOf(X)+1;if(ne<1)throw new Error;this.month=ne%12||ne}],Y:[/[+-]?\d+/,x("year")],YY:[p,function(X){this.year=O(X)}],YYYY:[/\d{4}/,x("year")],Z:U,ZZ:U};return function(X,ne,te){te.p.customParseFormat=!0,X&&X.parseTwoDigitYear&&(O=X.parseTwoDigitYear);var $=ne.prototype,J=$.parse;$.parse=function(se){var De=se.date,Ce=se.utc,ce=se.args;this.$u=Ce;var _=ce[1];if("string"==typeof _){var R=!0===ce[2],w=!0===ce[3],B=R||w,z=ce[2];w&&(z=ce[2]),v=this.$locale(),!R&&z&&(v=te.Ls[z]),this.$d=function(K,ge,ve){try{if(["x","X"].indexOf(ge)>-1)return new Date(("X"===ge?1e3:1)*K);var Fe=function ue(X){var te;te=v&&v.formats;for(var $=(X=X.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,w,B){var z=B&&B.toUpperCase();return w||te[B]||E[B]||te[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(oe,V,k){return V||k.slice(1)})})).match(d),J=$.length,se=0;se<J;se+=1){var De=$[se],Ce=be[De],_=Ce&&Ce[1];$[se]=_?{regex:Ce&&Ce[0],parser:_}:De.replace(/^\[|\]$/g,"")}return function(R){for(var w={},B=0,z=0;B<J;B+=1){var oe=$[B];if("string"==typeof oe)z+=oe.length;else{var V=oe.regex,k=oe.parser,K=R.slice(z),ge=V.exec(K)[0];k.call(w,ge),R=R.replace(ge,"")}}return function(ve){var Fe=ve.afternoon;if(void 0!==Fe){var We=ve.hours;Fe?We<12&&(ve.hours+=12):12===We&&(ve.hours=0),delete ve.afternoon}}(w),w}}(ge)(K),We=Fe.year,ze=Fe.month,bt=Fe.day,Ke=Fe.hours,Me=Fe.minutes,tt=Fe.seconds,He=Fe.milliseconds,ot=Fe.zone,je=new Date,fe=bt||(We||ze?1:je.getDate()),D=We||je.getFullYear(),H=0;We&&!ze||(H=ze>0?ze-1:je.getMonth());var Se=Ke||0,Ue=Me||0,at=tt||0,hn=He||0;return ot?new Date(Date.UTC(D,H,fe,Se,Ue,at,hn+60*ot.offset*1e3)):ve?new Date(Date.UTC(D,H,fe,Se,Ue,at,hn)):new Date(D,H,fe,Se,Ue,at,hn)}catch(ln){return new Date("")}}(De,_,Ce),this.init(),z&&!0!==z&&(this.$L=this.locale(z).$L),B&&De!=this.format(_)&&(this.$d=new Date("")),v={}}else if(_ instanceof Array)for(var oe=_.length,V=1;V<=oe;V+=1){ce[1]=_[V-1];var k=te.apply(this,ce);
1if(k.isValid()){this.$d=k.$d,this.$L=k.$L,this.init();break}V===oe&&(this.$d=new Date(""))}else J.call(this,se)}}}()},362:le=>{"use strict";le.exports=function E(d,p){if(d===p)return!0;if(d&&p&&"object"==typeof d&&"object"==typeof p){if(d.constructor!==p.constructor)return!1;var u,o,v;if(Array.isArray(d)){if((u=d.length)!=p.length)return!1;for(o=u;0!=o--;)if(!E(d[o],p[o]))return!1;return!0}if(d.constructor===RegExp)return d.source===p.source&&d.flags===p.flags;if(d.valueOf!==Object.prototype.valueOf)return d.valueOf()===p.valueOf();if(d.toString!==Object.prototype.toString)return d.toString()===p.toString();if((u=(v=Object.keys(d)).length)!==Object.keys(p).length)return!1;for(o=u;0!=o--;)if(!Object.prototype.hasOwnProperty.call(p,v[o]))return!1;for(o=u;0!=o--;){var O=v[o];if(!E(d[O],p[O]))return!1}return!0}return d!=d&&p!=p}},7783:le=>{le.exports=function E(d,p,u){function o(x,U){if(!p[x]){if(!d[x]){if(v)return v(x,!0);throw new Error("Cannot find module '"+x+"'")}U=p[x]={exports:{}},d[x][0].call(U.exports,function(re){return o(d[x][1][re]||re)},U,U.exports,E,d,p,u)}return p[x].exports}for(var v=void 0,O=0;O<u.length;O++)o(u[O]);return o}({1:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){"use strict";var ue=E("crypto");function X(Ce,ce){var _;return void 0===(_="passthrough"!==(ce=$(Ce,ce)).algorithm?ue.createHash(ce.algorithm):new De).write&&(_.write=_.update,_.end=_.update),se(ce,_).dispatch(Ce),_.update||_.end(""),_.digest?_.digest("buffer"===ce.encoding?void 0:ce.encoding):(Ce=_.read(),"buffer"!==ce.encoding?Ce.toString(ce.encoding):Ce)}(p=d.exports=X).sha1=function(Ce){return X(Ce)},p.keys=function(Ce){return X(Ce,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},p.MD5=function(Ce){return X(Ce,{algorithm:"md5",encoding:"hex"})},p.keysMD5=function(Ce){return X(Ce,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var ne=ue.getHashes?ue.getHashes().slice():["sha1","md5"],te=(ne.push("passthrough"),["buffer","hex","binary","base64"]);function $(Ce,ce){var _={};if(_.algorithm=(ce=ce||{}).algorithm||"sha1",_.encoding=ce.encoding||"hex",_.excludeValues=!!ce.excludeValues,_.algorithm=_.algorithm.toLowerCase(),_.encoding=_.encoding.toLowerCase(),_.ignoreUnknown=!0===ce.ignoreUnknown,_.respectType=!1!==ce.respectType,_.respectFunctionNames=!1!==ce.respectFunctionNames,_.respectFunctionProperties=!1!==ce.respectFunctionProperties,_.unorderedArrays=!0===ce.unorderedArrays,_.unorderedSets=!1!==ce.unorderedSets,_.unorderedObjects=!1!==ce.unorderedObjects,_.replacer=ce.replacer||void 0,_.excludeKeys=ce.excludeKeys||void 0,void 0===Ce)throw new Error("Object argument required.");for(var R=0;R<ne.length;++R)ne[R].toLowerCase()===_.algorithm.toLowerCase()&&(_.algorithm=ne[R]);if(-1===ne.indexOf(_.algorithm))throw new Error('Algorithm "'+_.algorithm+'"  not supported. supported values: '+ne.join(", "));if(-1===te.indexOf(_.encoding)&&"passthrough"!==_.algorithm)throw new Error('Encoding "'+_.encoding+'"  not supported. supported values: '+te.join(", "));return _}function J(Ce){if("function"==typeof Ce)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(Ce))}function se(Ce,ce,_){function R(w){return ce.update?ce.update(w,"utf8"):ce.write(w,"utf8")}return _=_||[],{dispatch:function(w){return this["_"+(null===(w=Ce.replacer?Ce.replacer(w):w)?"null":typeof w)](w)},_object:function(w){var B,z=Object.prototype.toString.call(w),oe=/\[object (.*)\]/i.exec(z);if(oe=(oe=oe?oe[1]:"unknown:["+z+"]").toLowerCase(),0<=(z=_.indexOf(w)))return this.dispatch("[CIRCULAR:"+z+"]");if(_.push(w),void 0!==v&&v.isBuffer&&v.isBuffer(w))return R("buffer:"),R(w);if("object"===oe||"function"===oe||"asyncfunction"===oe)return z=Object.keys(w),Ce.unorderedObjects&&(z=z.sort()),!1===Ce.respectType||J(w)||z.splice(0,0,"prototype","__proto__","constructor"),Ce.excludeKeys&&(z=z.filter(function(V){return!Ce.excludeKeys(V)})),R("object:"+z.length+":"),B=this,z.forEach(function(V){B.dispatch(V),R(":"),Ce.excludeValues||B.dispatch(w[V]),R(",")});if(!this["_"+oe]){if(Ce.ignoreUnknown)return R("["+oe+"]");throw new Error('Unknown object type "'+oe+'"')}this["_"+oe](w)},_array:function(w,V){V=void 0!==V?V:!1!==Ce.unorderedArrays;var z=this;
1if(R("array:"+w.length+":"),!V||w.length<=1)return w.forEach(function(k){return z.dispatch(k)});var oe=[];return V=w.map(function(k){var K=new De,ge=_.slice();return se(Ce,K,ge).dispatch(k),oe=oe.concat(ge.slice(_.length)),K.read().toString()}),_=_.concat(oe),V.sort(),this._array(V,!1)},_date:function(w){return R("date:"+w.toJSON())},_symbol:function(w){return R("symbol:"+w.toString())},_error:function(w){return R("error:"+w.toString())},_boolean:function(w){return R("bool:"+w.toString())},_string:function(w){R("string:"+w.length+":"),R(w.toString())},_function:function(w){R("fn:"),J(w)?this.dispatch("[native]"):this.dispatch(w.toString()),!1!==Ce.respectFunctionNames&&this.dispatch("function-name:"+String(w.name)),Ce.respectFunctionProperties&&this._object(w)},_number:function(w){return R("number:"+w.toString())},_xml:function(w){return R("xml:"+w.toString())},_null:function(){return R("Null")},_undefined:function(){return R("Undefined")},_regexp:function(w){return R("regex:"+w.toString())},_uint8array:function(w){return R("uint8array:"),this.dispatch(Array.prototype.slice.call(w))},_uint8clampedarray:function(w){return R("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(w))},_int8array:function(w){return R("int8array:"),this.dispatch(Array.prototype.slice.call(w))},_uint16array:function(w){return R("uint16array:"),this.dispatch(Array.prototype.slice.call(w))},_int16array:function(w){return R("int16array:"),this.dispatch(Array.prototype.slice.call(w))},_uint32array:function(w){return R("uint32array:"),this.dispatch(Array.prototype.slice.call(w))},_int32array:function(w){return R("int32array:"),this.dispatch(Array.prototype.slice.call(w))},_float32array:function(w){return R("float32array:"),this.dispatch(Array.prototype.slice.call(w))},_float64array:function(w){return R("float64array:"),this.dispatch(Array.prototype.slice.call(w))},_arraybuffer:function(w){return R("arraybuffer:"),this.dispatch(new Uint8Array(w))},_url:function(w){return R("url:"+w.toString())},_map:function(w){return R("map:"),w=Array.from(w),this._array(w,!1!==Ce.unorderedSets)},_set:function(w){return R("set:"),w=Array.from(w),this._array(w,!1!==Ce.unorderedSets)},_file:function(w){return R("file:"),this.dispatch([w.name,w.size,w.type,w.lastModfied])},_blob:function(){if(Ce.ignoreUnknown)return R("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return R("domwindow")},_bigint:function(w){return R("bigint:"+w.toString())},_process:function(){return R("process")},_timer:function(){return R("timer")},_pipe:function(){return R("pipe")},_tcp:function(){return R("tcp")},_udp:function(){return R("udp")},_tty:function(){return R("tty")},_statwatcher:function(){return R("statwatcher")},_securecontext:function(){return R("securecontext")},_connection:function(){return R("connection")},_zlib:function(){return R("zlib")},_context:function(){return R("context")},_nodescript:function(){return R("nodescript")},_httpparser:function(){return R("httpparser")},_dataview:function(){return R("dataview")},_signal:function(){return R("signal")},_fsevent:function(){return R("fsevent")},_tlswrap:function(){return R("tlswrap")}}}function De(){return{buf:"",write:function(Ce){this.buf+=Ce},end:function(Ce){this.buf+=Ce},read:function(){return this.buf}}}p.writeToStream=function(Ce,ce,_){return void 0===_&&(_=ce,ce={}),se(ce=$(Ce,ce),_).dispatch(Ce)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){!function(ue){"use strict";var X=typeof Uint8Array<"u"?Uint8Array:Array;function ce(_){return 43===(_=_.charCodeAt(0))||45===_?62:47===_||95===_?63:_<48?-1:_<58?_-48+26+26:_<91?_-65:_<123?_-97+26:void 0}ue.toByteArray=function(_){var R,w;if(0<_.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var B="="===_.charAt((B=_.length)-2)?2:"="===_.charAt(B-1)?1:0,z=new X(3*_.length/4-B),oe=0<B?_.length-4:_.length,V=0;function k(K){z[V++]=K}for(R=0;R<oe;R+=4,0)k((16711680&(w=ce(_.charAt(R))<<18|ce(_.charAt(R+1))<<12|ce(_.charAt(R+2))<<6|ce(_.charAt(R+3))))>>16),k((65280&w)>>8),k(255&w);return 2==B?k(255&(w=ce(_.charAt(R))<<2|ce(_.charAt(R+1))>>4)):1==B&&(k((w=ce(_.charAt(R))<<10|ce(_.charAt(R+1))<<4|ce(_.charAt(R+2))>>2)>>8&255),k(255&w)),z},ue.fromByteArray=function(_){var R,w,B,z,oe=_.length%3,V="";function k(K){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/".charAt(K)}for(R=0,B=_.length-oe;R<B;R+=3)V+=k((z=w=(_[R]<<16)+(_[R+1]<<8)+_[R+2])>>18&63)+k(z>>12&63)+k(z>>6&63)+k(63&z);switch(oe){case 1:V=(V+=k((w=_[_.length-1])>>2))+k(w<<4&63)+"==";break;case 2:V=(V=(V+=k((w=(_[_.length-2]<<8)+_[_.length-1])>>10))+k(w>>4&63))+k(w<<2&63)+"="}return V}}(void 0===p?this.base64js={}:p)}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(E,d,p){(function(u,o,ne,O,x,U,Q,re,be){var ue=E("base64-js"),X=E("ieee754");function ne(fe,D,H){if(!(this instanceof ne))return new ne(fe,D,H);var Se,Ue,at,hn,ln=typeof fe;if("base64"===D&&"string"==ln)for(fe=(hn=fe).trim?hn.trim():hn.replace(/^\s+|\s+$/g,"");fe.length%4!=0;)fe+="=";if("number"==ln)Se=ve(fe);else if("string"==ln)Se=ne.byteLength(fe,D);else{if("object"!=ln)throw new Error("First argument needs to be a number, array or string.");Se=ve(fe.length)}if(ne._useTypedArrays?Ue=ne._augment(new Uint8Array(Se)):((Ue=this).length=Se,Ue._isBuffer=!0),ne._useTypedArrays&&"number"==typeof fe.byteLength)Ue._set(fe);else if(Fe(hn=fe)||ne.isBuffer(hn)||hn&&"object"==typeof hn&&"number"==typeof hn.length)for(at=0;at<Se;at++)Ue[at]=ne.isBuffer(fe)?fe.readUInt8(at):fe[at];else if("string"==ln)Ue.write(fe,0,D);else if("number"==ln&&!ne._useTypedArrays&&!H)for(at=0;at<Se;at++)Ue[at]=0;return Ue}function se(fe,D,H,at){var Ue;if(at||(je("boolean"==typeof H,"missing or invalid endian"),je(null!=D,"missing offset"),je(D+1<fe.length,"Trying to read beyond buffer length")),!((at=fe.length)<=D))return H?(Ue=fe[D],D+1<at&&(Ue|=fe[D+1]<<8)):(Ue=fe[D]<<8,D+1<at&&(Ue|=fe[D+1])),Ue}function De(fe,D,H,at){var Ue;if(at||(je("boolean"==typeof H,"missing or invalid endian"),je(null!=D,"missing offset"),je(D+3<fe.length,"Trying to read beyond buffer length")),!((at=fe.length)<=D))return H?(D+2<at&&(Ue=fe[D+2]<<16),D+1<at&&(Ue|=fe[D+1]<<8),Ue|=fe[D],D+3<at&&(Ue+=fe[D+3]<<24>>>0)):(D+1<at&&(Ue=fe[D+1]<<16),D+2<at&&(Ue|=fe[D+2]<<8),D+3<at&&(Ue|=fe[D+3]),Ue+=fe[D]<<24>>>0),Ue}function Ce(fe,D,H,Se){if(Se||(je("boolean"==typeof H,"missing or invalid endian"),je(null!=D,"missing offset"),je(D+1<fe.length,"Trying to read beyond buffer length")),!(fe.length<=D))return 32768&(Se=se(fe,D,H,!0))?-1*(65535-Se+1):Se}function ce(fe,D,H,Se){if(Se||(je("boolean"==typeof H,"missing or invalid endian"),je(null!=D,"missing offset"),je(D+3<fe.length,"Trying to read beyond buffer length")),!(fe.length<=D))return 2147483648&(Se=De(fe,D,H,!0))?-1*(4294967295-Se+1):Se}function _(fe,D,H,Se){return Se||(je("boolean"==typeof H,"missing or invalid endian"),je(D+3<fe.length,"Trying to read beyond buffer length")),X.read(fe,D,H,23,4)}function R(fe,D,H,Se){return Se||(je("boolean"==typeof H,"missing or invalid endian"),je(D+7<fe.length,"Trying to read beyond buffer length")),X.read(fe,D,H,52,8)}function w(fe,D,H,Se,Ue){if(Ue||(je(null!=D,"missing value"),je("boolean"==typeof Se,"missing or invalid endian"),je(null!=H,"missing offset"),je(H+1<fe.length,"trying to write beyond buffer length"),tt(D,65535)),!((Ue=fe.length)<=H))for(var at=0,hn=Math.min(Ue-H,2);at<hn;at++)fe[H+at]=(D&255<<8*(Se?at:1-at))>>>8*(Se?at:1-at)}function B(fe,D,H,Se,Ue){if(Ue||(je(null!=D,"missing value"),je("boolean"==typeof Se,"missing or invalid endian"),je(null!=H,"missing offset"),je(H+3<fe.length,"trying to write beyond buffer length"),tt(D,4294967295)),!((Ue=fe.length)<=H))for(var at=0,hn=Math.min(Ue-H,4);at<hn;at++)fe[H+at]=D>>>8*(Se?at:3-at)&255}function z(fe,D,H,Se,Ue){Ue||(je(null!=D,"missing value"),je("boolean"==typeof Se,"missing or invalid endian"),je(null!=H,"missing offset"),je(H+1<fe.length,"Trying to write beyond buffer length"),He(D,32767,-32768)),fe.length<=H||w(fe,0<=D?D:65535+D+1,H,Se,Ue)}function oe(fe,D,H,Se,Ue){Ue||(je(null!=D,"missing value"),je("boolean"==typeof Se,"missing or invalid endian"),je(null!=H,"missing offset"),je(H+3<fe.length,"Trying to write beyond buffer length"),He(D,2147483647,-2147483648)),fe.length<=H||B(fe,0<=D?D:4294967295+D+1,H,Se,Ue)}function V(fe,D,H,Se,Ue){Ue||(je(null!=D,"missing value"),je("boolean"==typeof Se,"missing or invalid endian"),je(null!=H,"missing offset"),je(H+3<fe.length,"Trying to write beyond buffer length"),ot(D,34028234663852886e22,-34028234663852886e22)),fe.length<=H||X.write(fe,D,H,Se,23,4)}function k(fe,D,H,Se,Ue){Ue||(je(null!=D,"missing value"),je("boolean"==typeof Se,"missing or invalid endian"),je(null!=H,"missing offset"),je(H+7<fe.length,"Trying to write beyond buffer length"),ot(D,17976931348623157e292,-17976931348623157e292)),fe.length<=H||X.write(fe,D,H,Se,52,8)}p.Buffer=ne,p.SlowBuffer=ne,p.INSPECT_MAX_BYTES=50,ne.poolSize=8192,ne._useTypedArrays=function(){try{var fe=new ArrayBuffer(0),D=new Uint8Array(fe);return D.foo=function(){return 42},42===D.foo()&&"function"==typeof D.subarray}catch(H){return!1}}(),ne.isEncoding=function(fe){switch(String(fe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},ne.isBuffer=function(fe){return!(null==fe||!fe._isBuffer)},ne.byteLength=function(fe,D){var H;switch(fe+="",D||"utf8"){case"hex":H=fe.length/2;break;case"utf8":case"utf-8":H=ze(fe).length;break;case"ascii":case"binary":case"raw":H=fe.length;break;case"base64":H=bt(fe).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":H=2*fe.length;break;default:throw new Error("Unknown encoding")}return H},ne.concat=function(fe,D){if(je(Fe(fe),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===fe.length)return new ne(0);if(1===fe.length)return fe[0];if("number"!=typeof D)for(Ue=D=0;Ue<fe.length;Ue++)D+=fe[Ue].length;for(var H=new ne(D),Se=0,Ue=0;Ue<fe.length;Ue++){var at=fe[Ue];at.copy(H,Se),Se+=at.length}return H},ne.prototype.write=function(fe,D,H,Se){isFinite(D)?isFinite(H)||(Se=H,H=void 0):(et=Se,Se=D,D=H,H=et),D=Number(D)||0;var Ue,at,hn,ln,et=this.length-D;
vendor: 6,797 bytes, line 1
1switch((!H||et<(H=Number(H)))&&(H=et),Se=String(Se||"utf8").toLowerCase()){case"hex":Ue=function(G,_e,Te,P){Te=Number(Te)||0;var F=G.length-Te;(!P||F<(P=Number(P)))&&(P=F),je((F=_e.length)%2==0,"Invalid hex string"),F/2<P&&(P=F/2);for(var de=0;de<P;de++){var Ae=parseInt(_e.substr(2*de,2),16);je(!isNaN(Ae),"Invalid hex string"),G[Te+de]=Ae}return ne._charsWritten=2*de,de}(this,fe,D,H);break;case"utf8":case"utf-8":at=this,hn=D,ln=H,Ue=ne._charsWritten=Ke(ze(fe),at,hn,ln);break;case"ascii":case"binary":Ue=function te(fe,D,H,Se){return ne._charsWritten=Ke(function(Ue){for(var at=[],hn=0;hn<Ue.length;hn++)at.push(255&Ue.charCodeAt(hn));return at}(D),fe,H,Se)}(this,fe,D,H);break;case"base64":at=this,hn=D,ln=H,Ue=ne._charsWritten=Ke(bt(fe),at,hn,ln);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Ue=function $(fe,D,H,Se){return ne._charsWritten=Ke(function(Ue){for(var at,hn,ln=[],et=0;et<Ue.length;et++)at=(hn=Ue.charCodeAt(et))>>8,ln.push(hn%=256),ln.push(at);return ln}(D),fe,H,Se)}(this,fe,D,H);break;default:throw new Error("Unknown encoding")}return Ue},ne.prototype.toString=function(fe,D,H){var Se,Ue,at,hn,ln=this;if(fe=String(fe||"utf8").toLowerCase(),D=Number(D)||0,(H=void 0!==H?Number(H):ln.length)===D)return"";switch(fe){case"hex":Se=function(et,G,_e){var Te=et.length;(!G||G<0)&&(G=0),(!_e||_e<0||Te<_e)&&(_e=Te);for(var P="",F=G;F<_e;F++)P+=We(et[F]);return P}(ln,D,H);break;case"utf8":case"utf-8":Se=function(et,G,_e){var Te="",P="";_e=Math.min(et.length,_e);for(var F=G;F<_e;F++)et[F]<=127?(Te+=Me(P)+String.fromCharCode(et[F]),P=""):P+="%"+et[F].toString(16);return Te+Me(P)}(ln,D,H);break;case"ascii":case"binary":Se=function J(fe,D,H){var Se="";H=Math.min(fe.length,H);for(var Ue=D;Ue<H;Ue++)Se+=String.fromCharCode(fe[Ue]);return Se}(ln,D,H);break;case"base64":Ue=ln,hn=H,Se=0===(at=D)&&hn===Ue.length?ue.fromByteArray(Ue):ue.fromByteArray(Ue.slice(at,hn));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Se=function(et,G,_e){for(var Te=et.slice(G,_e),P="",F=0;F<Te.length;F+=2)P+=String.fromCharCode(Te[F]+256*Te[F+1]);return P}(ln,D,H);break;default:throw new Error("Unknown encoding")}return Se},ne.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},ne.prototype.copy=function(fe,D,H,Se){if(D=D||0,(Se=Se||0===Se?Se:this.length)!==(H=H||0)&&0!==fe.length&&0!==this.length){je(H<=Se,"sourceEnd < sourceStart"),je(0<=D&&D<fe.length,"targetStart out of bounds"),je(0<=H&&H<this.length,"sourceStart out of bounds"),je(0<=Se&&Se<=this.length,"sourceEnd out of bounds"),Se>this.length&&(Se=this.length);var Ue=(Se=fe.length-D<Se-H?fe.length-D+H:Se)-H;if(Ue<100||!ne._useTypedArrays)for(var at=0;at<Ue;at++)fe[at+D]=this[at+H];else fe._set(this.subarray(H,H+Ue),D)}},ne.prototype.slice=function(fe,D){var H=this.length;if(fe=ge(fe,H,0),D=ge(D,H,H),ne._useTypedArrays)return ne._augment(this.subarray(fe,D));for(var Se=D-fe,Ue=new ne(Se,void 0,!0),at=0;at<Se;at++)Ue[at]=this[at+fe];return Ue},ne.prototype.get=function(fe){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(fe)},ne.prototype.set=function(fe,D){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(fe,D)},ne.prototype.readUInt8=function(fe,D){if(D||(je(null!=fe,"missing offset"),je(fe<this.length,"Trying to read beyond buffer length")),!(fe>=this.length))return this[fe]},ne.prototype.readUInt16LE=function(fe,D){return se(this,fe,!0,D)},ne.prototype.readUInt16BE=function(fe,D){return se(this,fe,!1,D)},ne.prototype.readUInt32LE=function(fe,D){return De(this,fe,!0,D)},ne.prototype.readUInt32BE=function(fe,D){return De(this,fe,!1,D)},ne.prototype.readInt8=function(fe,D){if(D||(je(null!=fe,"missing offset"),je(fe<this.length,"Trying to read beyond buffer length")),!(fe>=this.length))return 128&this[fe]?-1*(255-this[fe]+1):this[fe]},ne.prototype.readInt16LE=function(fe,D){return Ce(this,fe,!0,D)},ne.prototype.readInt16BE=function(fe,D){return Ce(this,fe,!1,D)},ne.prototype.readInt32LE=function(fe,D){return ce(this,fe,!0,D)},ne.prototype.readInt32BE=function(fe,D){return ce(this,fe,!1,D)},ne.prototype.readFloatLE=function(fe,D){return _(this,fe,!0,D)},ne.prototype.readFloatBE=function(fe,D){return _(this,fe,!1,D)},ne.prototype.readDoubleLE=function(fe,D){return R(this,fe,!0,D)},ne.prototype.readDoubleBE=function(fe,D){return R(this,fe,!1,D)},ne.prototype.writeUInt8=function(fe,D,H){H||(je(null!=fe,"missing value"),je(null!=D,"missing offset"),je(D<this.length,"trying to write beyond buffer length"),tt(fe,255)),D>=this.length||(this[D]=fe)},ne.prototype.writeUInt16LE=function(fe,D,H){w(this,fe,D,!0,H)},ne.prototype.writeUInt16BE=function(fe,D,H){w(this,fe,D,!1,H)},ne.prototype.writeUInt32LE=function(fe,D,H){B(this,fe,D,!0,H)},ne.prototype.writeUInt32BE=function(fe,D,H){B(this,fe,D,!1,H)},ne.prototype.writeInt8=function(fe,D,H){H||(je(null!=fe,"missing value"),je(null!=D,"missing offset"),je(D<this.length,"Trying to write beyond buffer length"),He(fe,127,-128)),D>=this.length||this.writeUInt8(0<=fe?fe:255+fe+1,D,H)},ne.prototype.writeInt16LE=function(fe,D,H){z(this,fe,D,!0,H)},ne.prototype.writeInt16BE=function(fe,D,H){z(this,fe,D,!1,H)},ne.prototype.writeInt32LE=function(fe,D,H){oe(this,fe,D,!0,H)},ne.prototype.writeInt32BE=function(fe,D,H){oe(this,fe,D,!1,H)},ne.prototype.writeFloatLE=function(fe,D,H){V(this,fe,D,!0,H)},ne.prototype.writeFloatBE=function(fe,D,H){V(this,fe,D,!1,H)},ne.prototype.writeDoubleLE=function(fe,D,H){k(this,fe,D,!0,H)},ne.prototype.writeDoubleBE=function(fe,D,H){k(this,fe,D,!1,H)},ne.prototype.fill=function(fe,D,H){if(D=D||0,H=H||this.length,je("number"==typeof(fe="string"==typeof(fe=fe||0)?fe.charCodeAt(0):fe)&&!isNaN(fe),"value is not a number"),je(D<=H,"end < start"),H!==D&&0!==this.length){je(0<=D&&D<this.length,"start out of bounds"),je(0<=H&&H<=this.length,"end out of bounds");for(var Se=D;Se<H;Se++)this[Se]=fe}},ne.prototype.inspect=function(){for(var fe=[],D=this.length,H=0;H<D;H++)if(fe[H]=We(this[H]),H===p.INSPECT_MAX_BYTES){fe[H+1]="...";break}return"<Buffer "+fe.join(" ")+">"},ne.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(ne._useTypedArrays)return new ne(this).buffer;for(var fe=new Uint8Array(this.length),D=0,H=fe.length;D<H;D+=1)fe[D]=this[D];return fe.buffer};var K=ne.prototype;function ge(fe,D,H){return"number"!=typeof fe?H:D<=(fe=~~fe)?D:0<=fe||0<=(fe+=D)?fe:0}function ve(fe){return(fe=~~Math.ceil(+fe))<0?0:fe}function Fe(fe){return(Array.isArray||function(D){return"[object Array]"===Object.prototype.toString.call(D)})(fe)}function We(fe){return fe<16?"0"+fe.toString(16):fe.toString(16)}function ze(fe){for(var D=[],H=0;H<fe.length;H++){var Se=fe.charCodeAt(H);
1if(Se<=127)D.push(fe.charCodeAt(H));else for(var Ue=H,at=(55296<=Se&&Se<=57343&&H++,encodeURIComponent(fe.slice(Ue,H+1)).substr(1).split("%")),hn=0;hn<at.length;hn++)D.push(parseInt(at[hn],16))}return D}function bt(fe){return ue.toByteArray(fe)}function Ke(fe,D,H,Se){for(var Ue=0;Ue<Se&&!(Ue+H>=D.length||Ue>=fe.length);Ue++)D[Ue+H]=fe[Ue];return Ue}function Me(fe){try{return decodeURIComponent(fe)}catch(D){return"\ufffd"}}function tt(fe,D){je("number"==typeof fe,"cannot write a non-number as a number"),je(0<=fe,"specified a negative value for writing an unsigned value"),je(fe<=D,"value is larger than maximum value for type"),je(Math.floor(fe)===fe,"value has a fractional component")}function He(fe,D,H){je("number"==typeof fe,"cannot write a non-number as a number"),je(fe<=D,"value larger than maximum allowed value"),je(H<=fe,"value smaller than minimum allowed value"),je(Math.floor(fe)===fe,"value has a fractional component")}function ot(fe,D,H){je("number"==typeof fe,"cannot write a non-number as a number"),je(fe<=D,"value larger than maximum allowed value"),je(H<=fe,"value smaller than minimum allowed value")}function je(fe,D){if(!fe)throw new Error(D||"Failed assertion")}ne._augment=function(fe){return fe._isBuffer=!0,fe._get=fe.get,fe._set=fe.set,fe.get=K.get,fe.set=K.set,fe.write=K.write,fe.toString=K.toString,fe.toLocaleString=K.toString,fe.toJSON=K.toJSON,fe.copy=K.copy,fe.slice=K.slice,fe.readUInt8=K.readUInt8,fe.readUInt16LE=K.readUInt16LE,fe.readUInt16BE=K.readUInt16BE,fe.readUInt32LE=K.readUInt32LE,fe.readUInt32BE=K.readUInt32BE,fe.readInt8=K.readInt8,fe.readInt16LE=K.readInt16LE,fe.readInt16BE=K.readInt16BE,fe.readInt32LE=K.readInt32LE,fe.readInt32BE=K.readInt32BE,fe.readFloatLE=K.readFloatLE,fe.readFloatBE=K.readFloatBE,fe.readDoubleLE=K.readDoubleLE,fe.readDoubleBE=K.readDoubleBE,fe.writeUInt8=K.writeUInt8,fe.writeUInt16LE=K.writeUInt16LE,fe.writeUInt16BE=K.writeUInt16BE,fe.writeUInt32LE=K.writeUInt32LE,fe.writeUInt32BE=K.writeUInt32BE,fe.writeInt8=K.writeInt8,fe.writeInt16LE=K.writeInt16LE,fe.writeInt16BE=K.writeInt16BE,fe.writeInt32LE=K.writeInt32LE,fe.writeInt32BE=K.writeInt32BE,fe.writeFloatLE=K.writeFloatLE,fe.writeFloatBE=K.writeFloatBE,fe.writeDoubleLE=K.writeDoubleLE,fe.writeDoubleBE=K.writeDoubleBE,fe.fill=K.fill,fe.inspect=K.inspect,fe.toArrayBuffer=K.toArrayBuffer,fe}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(E,d,p){(function(u,o,ue,O,x,U,Q,re,be){ue=E("buffer").Buffer;var ne=new ue(4);ne.fill(0),d.exports={hash:function(te,$,J,se){for(var De=$(function(w,B){w.length%4!=0&&(w=ue.concat([w,ne],w.length+(4-w.length%4)));for(var oe=[],V=B?w.readInt32BE:w.readInt32LE,k=0;k<w.length;k+=4)oe.push(V.call(w,k));return oe}(te=ue.isBuffer(te)?te:new ue(te),se),8*te.length),Ce=($=se,new ue(J)),ce=$?Ce.writeInt32BE:Ce.writeInt32LE,_=0;_<De.length;_++)ce.call(Ce,De[_],4*_,!0);return Ce}}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(E,d,p){(function(u,o,ue,O,x,U,Q,re,be){ue=E("buffer").Buffer;var X=E("./sha"),ne=E("./sha256"),te=E("./rng"),$={sha1:X,sha256:ne,md5:E("./md5")},J=64,se=new ue(J);function De(w,B){var z=$[w=w||"sha1"],oe=[];return z||Ce("algorithm:",w,"is not yet supported"),{update:function(V){return ue.isBuffer(V)||(V=new ue(V)),oe.push(V),this},digest:function(V){var k=ue.concat(oe);return k=B?function(K,ge,ve){ue.isBuffer(ge)||(ge=new ue(ge)),ue.isBuffer(ve)||(ve=new ue(ve)),ge.length>J?ge=K(ge):ge.length<J&&(ge=ue.concat([ge,se],J));for(var Fe=new ue(J),We=new ue(J),ze=0;ze<J;ze++)Fe[ze]=54^ge[ze],We[ze]=92^ge[ze];return ve=K(ue.concat([Fe,ve])),K(ue.concat([We,ve]))}(z,B,k):z(k),oe=null,V?k.toString(V):k}}}function Ce(){var w=[].slice.call(arguments).join(" ");throw new Error([w,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}se.fill(0),p.createHash=function(w){return De(w)},p.createHmac=De,p.randomBytes=function(w,B){if(!B||!B.call)return new ue(te(w));try{B.call(this,void 0,new ue(te(w)))}catch(z){B(z)}};var ce,_=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],R=function(w){p[w]=function(){Ce("sorry,",w,"is not implemented yet")}};for(ce in _)R(_[ce])}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){var ue=E("./helpers");function X(Ce,ce){Ce[ce>>5]|=128<<ce%32,Ce[14+(ce+64>>>9<<4)]=ce;for(var _=1732584193,R=-271733879,w=-1732584194,B=271733878,z=0;z<Ce.length;z+=16){var oe=_,V=R,k=w,K=B;_=te(_,R,w,B,Ce[z+0],7,-680876936),B=te(B,_,R,w,Ce[z+1],12,-389564586),w=te(w,B,_,R,Ce[z+2],17,606105819),R=te(R,w,B,_,Ce[z+3],22,-1044525330),_=te(_,R,w,B,Ce[z+4],7,-176418897),B=te(B,_,R,w,Ce[z+5],12,1200080426),w=te(w,B,_,R,Ce[z+6],17,-1473231341),R=te(R,w,B,_,Ce[z+7],22,-45705983),_=te(_,R,w,B,Ce[z+8],7,1770035416),B=te(B,_,R,w,Ce[z+9],12,-1958414417),w=te(w,B,_,R,Ce[z+10],17,-42063),R=te(R,w,B,_,Ce[z+11],22,-1990404162),_=te(_,R,w,B,Ce[z+12],7,1804603682),B=te(B,_,R,w,Ce[z+13],12,-40341101),w=te(w,B,_,R,Ce[z+14],17,-1502002290),_=$
vendor: 5,036 bytes, line 1
1(_,R=te(R,w,B,_,Ce[z+15],22,1236535329),w,B,Ce[z+1],5,-165796510),B=$(B,_,R,w,Ce[z+6],9,-1069501632),w=$(w,B,_,R,Ce[z+11],14,643717713),R=$(R,w,B,_,Ce[z+0],20,-373897302),_=$(_,R,w,B,Ce[z+5],5,-701558691),B=$(B,_,R,w,Ce[z+10],9,38016083),w=$(w,B,_,R,Ce[z+15],14,-660478335),R=$(R,w,B,_,Ce[z+4],20,-405537848),_=$(_,R,w,B,Ce[z+9],5,568446438),B=$(B,_,R,w,Ce[z+14],9,-1019803690),w=$(w,B,_,R,Ce[z+3],14,-187363961),R=$(R,w,B,_,Ce[z+8],20,1163531501),_=$(_,R,w,B,Ce[z+13],5,-1444681467),B=$(B,_,R,w,Ce[z+2],9,-51403784),w=$(w,B,_,R,Ce[z+7],14,1735328473),_=J(_,R=$(R,w,B,_,Ce[z+12],20,-1926607734),w,B,Ce[z+5],4,-378558),B=J(B,_,R,w,Ce[z+8],11,-2022574463),w=J(w,B,_,R,Ce[z+11],16,1839030562),R=J(R,w,B,_,Ce[z+14],23,-35309556),_=J(_,R,w,B,Ce[z+1],4,-1530992060),B=J(B,_,R,w,Ce[z+4],11,1272893353),w=J(w,B,_,R,Ce[z+7],16,-155497632),R=J(R,w,B,_,Ce[z+10],23,-1094730640),_=J(_,R,w,B,Ce[z+13],4,681279174),B=J(B,_,R,w,Ce[z+0],11,-358537222),w=J(w,B,_,R,Ce[z+3],16,-722521979),R=J(R,w,B,_,Ce[z+6],23,76029189),_=J(_,R,w,B,Ce[z+9],4,-640364487),B=J(B,_,R,w,Ce[z+12],11,-421815835),w=J(w,B,_,R,Ce[z+15],16,530742520),_=se(_,R=J(R,w,B,_,Ce[z+2],23,-995338651),w,B,Ce[z+0],6,-198630844),B=se(B,_,R,w,Ce[z+7],10,1126891415),w=se(w,B,_,R,Ce[z+14],15,-1416354905),R=se(R,w,B,_,Ce[z+5],21,-57434055),_=se(_,R,w,B,Ce[z+12],6,1700485571),B=se(B,_,R,w,Ce[z+3],10,-1894986606),w=se(w,B,_,R,Ce[z+10],15,-1051523),R=se(R,w,B,_,Ce[z+1],21,-2054922799),_=se(_,R,w,B,Ce[z+8],6,1873313359),B=se(B,_,R,w,Ce[z+15],10,-30611744),w=se(w,B,_,R,Ce[z+6],15,-1560198380),R=se(R,w,B,_,Ce[z+13],21,1309151649),_=se(_,R,w,B,Ce[z+4],6,-145523070),B=se(B,_,R,w,Ce[z+11],10,-1120210379),w=se(w,B,_,R,Ce[z+2],15,718787259),R=se(R,w,B,_,Ce[z+9],21,-343485551),_=De(_,oe),R=De(R,V),w=De(w,k),B=De(B,K)}return Array(_,R,w,B)}function ne(Ce,ce,_,R,w,B){return De((ce=De(De(ce,Ce),De(R,B)))<<w|ce>>>32-w,_)}function te(Ce,ce,_,R,w,B,z){return ne(ce&_|~ce&R,Ce,ce,w,B,z)}function $(Ce,ce,_,R,w,B,z){return ne(ce&R|_&~R,Ce,ce,w,B,z)}function J(Ce,ce,_,R,w,B,z){return ne(ce^_^R,Ce,ce,w,B,z)}function se(Ce,ce,_,R,w,B,z){return ne(_^(ce|~R),Ce,ce,w,B,z)}function De(Ce,ce){var _=(65535&Ce)+(65535&ce);return(Ce>>16)+(ce>>16)+(_>>16)<<16|65535&_}d.exports=function(Ce){return ue.hash(Ce,X,16)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){d.exports=function(X){for(var ne,te=new Array(X),$=0;$<X;$++)!(3&$)&&(ne=4294967296*Math.random()),te[$]=ne>>>((3&$)<<3)&255;return te}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){var ue=E("./helpers");function X($,J){$[J>>5]|=128<<24-J%32,$[15+(J+64>>9<<4)]=J;for(var se,De,Ce,ce=Array(80),_=1732584193,R=-271733879,w=-1732584194,B=271733878,z=-1009589776,oe=0;oe<$.length;oe+=16){for(var V=_,k=R,K=w,ge=B,ve=z,Fe=0;Fe<80;Fe++){ce[Fe]=Fe<16?$[oe+Fe]:te(ce[Fe-3]^ce[Fe-8]^ce[Fe-14]^ce[Fe-16],1);var We=ne(ne(te(_,5),(We=R,De=w,Ce=B,(se=Fe)<20?We&De|~We&Ce:!(se<40)&&se<60?We&De|We&Ce|De&Ce:We^De^Ce)),ne(ne(z,ce[Fe]),(se=Fe)<20?1518500249:se<40?1859775393:se<60?-1894007588:-899497514));z=B,B=w,w=te(R,30),R=_,_=We}_=ne(_,V),R=ne(R,k),w=ne(w,K),B=ne(B,ge),z=ne(z,ve)}return Array(_,R,w,B,z)}function ne($,J){var se=(65535&$)+(65535&J);return($>>16)+(J>>16)+(se>>16)<<16|65535&se}function te($,J){return $<<J|$>>>32-J}d.exports=function($){return ue.hash($,X,20,!0)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){function ue(J,se){var De=(65535&J)+(65535&se);return(J>>16)+(se>>16)+(De>>16)<<16|65535&De}function X(J,se){var De,Ce=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298),ce=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),_=new Array(64);J[se>>5]|=128<<24-se%32,J[15+(se+64>>9<<4)]=se;for(var R,w,B=0;B<J.length;B+=16){for(var z=ce[0],oe=ce[1],V=ce[2],k=ce[3],K=ce[4],ge=ce[5],ve=ce[6],Fe=ce[7],We=0;We<64;We++)_[We]=We<16?J[We+B]:ue(ue(ue(te(w=_[We-2],17)^te(w,19)^$(w,10),_[We-7]),te(w=_[We-15],7)^te(w,18)^$(w,3)),_[We-16]),De=ue(ue(ue(ue(Fe,te(w=K,6)^te(w,11)^te(w,25)),K&ge^~K&ve),Ce[We]),_[We]),R=ue(te(R=z,2)^te(R,13)^te(R,22),z&oe^z&V^oe&V),Fe=ve,ve=ge,ge=K,K=ue(k,De),k=V,V=oe,oe=z,z=ue(De,R);ce[0]=ue(z,ce[0]),ce[1]=ue(oe,ce[1]),ce[2]=ue(V,ce[2]),ce[3]=ue(k,ce[3]),ce[4]=ue(K,ce[4]),ce[5]=ue(ge,ce[5]),ce[6]=ue(ve,ce[6]),ce[7]=ue(Fe,ce[7])}return ce}var ne=E("./helpers"),te=function(J,se){return J>>>se|J<<32-se},$=function(J,se){return J>>>se};d.exports=function(J){return ne.hash(J,X,32,!0)}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){p.read=function(ue,X,ne,te,B){var J,se,De=8*B-te-1,Ce=(1<<De)-1,ce=Ce>>1,_=-7,R=ne?B-1:0,w=ne?-1:1;for(B=ue[X+R],R+=w,J=B&(1<<-_)-1,B>>=-_,_+=De;0<_;J=256*J+ue[X+R],R+=w,_-=8);for(se=J&(1<<-_)-1,J>>=-_,_+=te;0<_;se=256*se+ue[X+R],R+=w,_-=8);if(0===J)J=1-ce;else{if(J===Ce)return se?NaN:1/0*(B?-1:1);se+=Math.pow(2,te),J-=ce}return(B?-1:1)*se*Math.pow(2,J-te)},p.write=function(ue,X,ne,te,$,z){var se,De,Ce=8*z-$-1,ce=(1<<Ce)-1,_=ce>>1,R=23===$?Math.pow(2,-24)-Math.pow(2,-77):0,w=te?0:z-1,B=te?1:-1;for(z=X<0||0===X&&1/X<0?1:0,X=Math.abs(X),isNaN(X)||X===1/0?(De=isNaN(X)?1:0,se=ce):(se=Math.floor(Math.log(X)/Math.LN2),X*(te=Math.pow(2,-se))<1&&(se--,te*=2),2<=(X+=1<=se+_?R/te:R*Math.pow(2,1-_))*te&&(se++,te/=2),ce<=se+_?(De=0,se=ce):1<=se+_?(De=(X*te-1)*Math.pow(2,$),se+=_):(De=X*Math.pow(2,_-1)*Math.pow(2,$),se=0));8<=$;ue[ne+w]=255&De,w+=B,De/=256,$-=8);for(se=se<<$|De,Ce+=$;0<Ce;ue[ne+w]=255&se,w+=B,se/=256,Ce-=8);ue[ne+w-B]|=128*z}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(E,d,p){(function(u,o,v,O,x,U,Q,re,be){var ue,X,ne;function te(){}(u=d.exports={}).nextTick=(X=typeof window<"u"&&window.setImmediate,ne=typeof window<"u"&&window.postMessage&&window.addEventListener,X?function($){return window.setImmediate($)}:ne?(ue=[],window.addEventListener("message",function($){var J=$.source;J!==window&&null!==J||"process-tick"!==$.data||($.stopPropagation(),0<ue.length&&ue.shift()())},!0),function($){ue.push($),window.postMessage("process-tick","*")}):function($){setTimeout($,0)}),u.title="browser",u.browser=!0,u.env={},u.argv=[],u.on=te,u.addListener=te,u.once=te,u.off=te,u.removeListener=te,u.removeAllListeners=te,u.emit=te,u.binding=function($){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function($){throw new Error("process.chdir is not supported")}}).call(this,E("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},E("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)},5630:(le,E,d)=>{"use strict";function u(te,$){void 0===$&&($={});for(var J=function p(te){for(var $=[],J=0;J<te.length;){var se=te[J];if("*"!==se&&"+"!==se&&"?"!==se)if("\\"!==se)if("{"!==se)if("}"!==se)if(":"!==se)if("("!==se)$.push({type:"CHAR",index:J,value:te[J++]});else{var _=1,R="";if("?"===te[Ce=J+1])throw new TypeError('Pattern cannot start with "?" at '.concat(Ce));for(;Ce<te.length;)if("\\"!==te[Ce]){if(")"===te[Ce]){if(0==--_){Ce++;break}}else if("("===te[Ce]&&(_++,"?"!==te[Ce+1]))throw new TypeError("Capturing groups are not allowed at ".concat(Ce));R+=te[Ce++]}else R+=te[Ce++]+te[Ce++];if(_)throw new TypeError("Unbalanced pattern at ".concat(J));if(!R)throw new TypeError("Missing pattern at ".concat(J));$.push({type:"PATTERN",index:J,value:R}),J=Ce}else{for(var De="",Ce=J+1;Ce<te.length;){var ce=te.charCodeAt(Ce);if(!(ce>=48&&ce<=57||ce>=65&&ce<=90||ce>=97&&ce<=122||95===ce))break;De+=te[Ce++]}if(!De)throw new TypeError("Missing parameter name at ".concat(J));$.push({type:"NAME",index:J,value:De}),J=Ce}else $.push({type:"CLOSE",index:J,value:te[J++]});else $.push({type:"OPEN",index:J,value:te[J++]});else $.push({type:"ESCAPED_CHAR",index:J++,value:te[J++]});else $.push({type:"MODIFIER",index:J,value:te[J++]})}return $.push({type:"END",index:J,value:""}),$}(te),se=$.prefixes,De=void 0===se?"./":se,Ce="[^".concat(U($.delimiter||"/#?"),"]+?"),ce=[],_=0,R=0,w="",B=function(Ke){if(R<J.length&&J[R].type===Ke)return J[R++].value},z=function(Ke){var Me=B(Ke);if(void 0!==Me)return Me;var tt=J[R],ot=tt.index;throw new TypeError("Unexpected ".concat(tt.type," at ").concat(ot,", expected ").concat(Ke))},oe=function(){for(var Me,Ke="";Me=B("CHAR")||B("ESCAPED_CHAR");)Ke+=Me;return Ke};R<J.length;){var V=B("CHAR"),k=B("NAME"),K=B("PATTERN");if(k||K)-1===De.indexOf(ge=V||"")&&(w+=ge,ge=""),w&&(ce.push(w),w=""),ce.push({name:k||_++,prefix:ge,suffix:"",pattern:K||Ce,modifier:B("MODIFIER")||""});else{var ve=V||B("ESCAPED_CHAR");
1if(ve)w+=ve;else if(w&&(ce.push(w),w=""),B("OPEN")){var ge=oe(),We=B("NAME")||"",ze=B("PATTERN")||"",bt=oe();z("CLOSE"),ce.push({name:We||(ze?_++:""),pattern:We&&!ze?Ce:ze,prefix:ge,suffix:bt,modifier:B("MODIFIER")||""})}else z("END")}}return ce}function o(te,$){return function v(te,$){void 0===$&&($={});var J=Q($),se=$.encode,De=void 0===se?function(R){return R}:se,Ce=$.validate,ce=void 0===Ce||Ce,_=te.map(function(R){if("object"==typeof R)return new RegExp("^(?:".concat(R.pattern,")$"),J)});return function(R){for(var w="",B=0;B<te.length;B++){var z=te[B];if("string"!=typeof z){var oe=R?R[z.name]:void 0,V="?"===z.modifier||"*"===z.modifier,k="*"===z.modifier||"+"===z.modifier;if(Array.isArray(oe)){if(!k)throw new TypeError('Expected "'.concat(z.name,'" to not repeat, but got an array'));if(0===oe.length){if(V)continue;throw new TypeError('Expected "'.concat(z.name,'" to not be empty'))}for(var K=0;K<oe.length;K++){var ge=De(oe[K],z);if(ce&&!_[B].test(ge))throw new TypeError('Expected all "'.concat(z.name,'" to match "').concat(z.pattern,'", but got "').concat(ge,'"'));w+=z.prefix+ge+z.suffix}}else if("string"!=typeof oe&&"number"!=typeof oe){if(!V){var ve=k?"an array":"a string";throw new TypeError('Expected "'.concat(z.name,'" to be ').concat(ve))}}else{if(ge=De(String(oe),z),ce&&!_[B].test(ge))throw new TypeError('Expected "'.concat(z.name,'" to match "').concat(z.pattern,'", but got "').concat(ge,'"'));w+=z.prefix+ge+z.suffix}}else w+=z}return w}}(u(te,$),$)}function O(te,$){var J=[];return function x(te,$,J){void 0===J&&(J={});var se=J.decode,De=void 0===se?function(Ce){return Ce}:se;return function(Ce){var ce=te.exec(Ce);if(!ce)return!1;for(var _=ce[0],R=ce.index,w=Object.create(null),B=function(oe){if(void 0===ce[oe])return"continue";var V=$[oe-1];w[V.name]="*"===V.modifier||"+"===V.modifier?ce[oe].split(V.prefix+V.suffix).map(function(k){return De(k,V)}):De(ce[oe],V)},z=1;z<ce.length;z++)B(z);return{path:_,index:R,params:w}}}(ne(te,J,$),J,$)}function U(te){return te.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function Q(te){return te&&te.sensitive?"":"i"}function ne(te,$,J){return te instanceof RegExp?function re(te,$){if(!$)return te;for(var J=/\((?:\?<(.*?)>)?(?!\?)/g,se=0,De=J.exec(te.source);De;)$.push({name:De[1]||se++,prefix:"",suffix:"",modifier:"",pattern:""}),De=J.exec(te.source);return te}(te,$):Array.isArray(te)?function be(te,$,J){var se=te.map(function(De){return ne(De,$,J).source});return new RegExp("(?:".concat(se.join("|"),")"),Q(J))}(te,$,J):function ue(te,$,J){return function X(te,$,J){void 0===J&&(J={});for(var se=J.strict,De=void 0!==se&&se,Ce=J.start,ce=void 0===Ce||Ce,_=J.end,R=void 0===_||_,w=J.encode,B=void 0===w?function(ot){return ot}:w,z=J.delimiter,oe=void 0===z?"/#?":z,V=J.endsWith,K="[".concat(U(void 0===V?"":V),"]|$"),ge="[".concat(U(oe),"]"),ve=ce?"^":"",Fe=0,We=te;Fe<We.length;Fe++){var ze=We[Fe];if("string"==typeof ze)ve+=U(B(ze));else{var bt=U(B(ze.prefix)),Ke=U(B(ze.suffix));if(ze.pattern)if($&&$.push(ze),bt||Ke)if("+"===ze.modifier||"*"===ze.modifier){var Me="*"===ze.modifier?"?":"";ve+="(?:".concat(bt,"((?:").concat(ze.pattern,")(?:").concat(Ke).concat(bt,"(?:").concat(ze.pattern,"))*)").concat(Ke,")").concat(Me)}else ve+="(?:".concat(bt,"(").concat(ze.pattern,")").concat(Ke,")").concat(ze.modifier);else ve+="+"===ze.modifier||"*"===ze.modifier?"((?:".concat(ze.pattern,")").concat(ze.modifier,")"):"(".concat(ze.pattern,")").concat(ze.modifier);else ve+="(?:".concat(bt).concat(Ke,")").concat(ze.modifier)}}if(R)De||(ve+="".concat(ge,"?")),ve+=J.endsWith?"(?=".concat(K,")"):"$";else{var tt=te[te.length-1],He="string"==typeof tt?ge.indexOf(tt[tt.length-1])>-1:void 0===tt;De||(ve+="(?:".concat(ge,"(?=").concat(K,"))?")),He||(ve+="(?=".concat(ge,"|").concat(K,")"))}return new RegExp(ve,Q(J))}(u(te,J),$,J)}(te,$,J)}d.d(E,{YW:()=>O,qg:()=>u,wE:()=>o})},4412:(le,E,d)=>{"use strict";d.d(E,{t:()=>u});var p=d(1413);class u extends p.B{constructor(v){super(),this._value=v}get value(){return this.getValue()}_subscribe(v){const O=super._subscribe(v);return!O.closed&&v.next(this._value),O}getValue(){const{hasError:v,thrownError:O,_value:x}=this;if(v)throw O;return this._throwIfClosed(),x}next(v){super.next(this._value=v)}}},1985:(le,E,d)=>{"use strict";d.d(E,{c:()=>Q});var p=d(7707),u=d(8359),o=d(3494),v=d(1203),O=d(1026),x=d(8071),U=d(9786);let Q=(()=>{class X{constructor(te){te&&(this._subscribe=te)}lift(te){const $=new X;return $.source=this,$.operator=te,$}subscribe(te,$,J){const se=function ue(X){return X&&X instanceof p.vU||function be(X){return X&&(0,x.T)(X.next)&&(0,x.T)(X.error)&&(0,x.T)(X.complete)}(X)&&(0,u.Uv)(X)}
1(te)?te:new p.Ms(te,$,J);return(0,U.Y)(()=>{const{operator:De,source:Ce}=this;se.add(De?De.call(se,Ce):Ce?this._subscribe(se):this._trySubscribe(se))}),se}_trySubscribe(te){try{return this._subscribe(te)}catch($){te.error($)}}forEach(te,$){return new($=re($))((J,se)=>{const De=new p.Ms({next:Ce=>{try{te(Ce)}catch(ce){se(ce),De.unsubscribe()}},error:se,complete:J});this.subscribe(De)})}_subscribe(te){var $;return null===($=this.source)||void 0===$?void 0:$.subscribe(te)}[o.s](){return this}pipe(...te){return(0,v.m)(te)(this)}toPromise(te){return new(te=re(te))(($,J)=>{let se;this.subscribe(De=>se=De,De=>J(De),()=>$(se))})}}return X.create=ne=>new X(ne),X})();function re(X){var ne;return null!==(ne=null!=X?X:O.$.Promise)&&void 0!==ne?ne:Promise}},2771:(le,E,d)=>{"use strict";d.d(E,{m:()=>o});var p=d(1413),u=d(6129);class o extends p.B{constructor(O=1/0,x=1/0,U=u.U){super(),this._bufferSize=O,this._windowTime=x,this._timestampProvider=U,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=x===1/0,this._bufferSize=Math.max(1,O),this._windowTime=Math.max(1,x)}next(O){const{isStopped:x,_buffer:U,_infiniteTimeWindow:Q,_timestampProvider:re,_windowTime:be}=this;x||(U.push(O),!Q&&U.push(re.now()+be)),this._trimBuffer(),super.next(O)}_subscribe(O){this._throwIfClosed(),this._trimBuffer();const x=this._innerSubscribe(O),{_infiniteTimeWindow:U,_buffer:Q}=this,re=Q.slice();for(let be=0;be<re.length&&!O.closed;be+=U?1:2)O.next(re[be]);return this._checkFinalizedStatuses(O),x}_trimBuffer(){const{_bufferSize:O,_timestampProvider:x,_buffer:U,_infiniteTimeWindow:Q}=this,re=(Q?1:2)*O;if(O<1/0&&re<U.length&&U.splice(0,U.length-re),!Q){const be=x.now();let ue=0;for(let X=1;X<U.length&&U[X]<=be;X+=2)ue=X;ue&&U.splice(0,ue+1)}}}},1413:(le,E,d)=>{"use strict";d.d(E,{B:()=>U});var p=d(1985),u=d(8359);const v=(0,d(1853).L)(re=>function(){re(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var O=d(7908),x=d(9786);let U=(()=>{class re extends p.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ue){const X=new Q(this,this);return X.operator=ue,X}_throwIfClosed(){if(this.closed)throw new v}next(ue){(0,x.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const X of this.currentObservers)X.next(ue)}})}error(ue){(0,x.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ue;const{observers:X}=this;for(;X.length;)X.shift().error(ue)}})}complete(){(0,x.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ue}=this;for(;ue.length;)ue.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ue;return(null===(ue=this.observers)||void 0===ue?void 0:ue.length)>0}_trySubscribe(ue){return this._throwIfClosed(),super._trySubscribe(ue)}_subscribe(ue){return this._throwIfClosed(),this._checkFinalizedStatuses(ue),this._innerSubscribe(ue)}_innerSubscribe(ue){const{hasError:X,isStopped:ne,observers:te}=this;return X||ne?u.Kn:(this.currentObservers=null,te.push(ue),new u.yU(()=>{this.currentObservers=null,(0,O.o)(te,ue)}))}_checkFinalizedStatuses(ue){const{hasError:X,thrownError:ne,isStopped:te}=this;X?ue.error(ne):te&&ue.complete()}asObservable(){const ue=new p.c;return ue.source=this,ue}}return re.create=(be,ue)=>new Q(be,ue),re})();class Q extends U{constructor(be,ue){super(),this.destination=be,this.source=ue}next(be){var ue,X;null===(X=null===(ue=this.destination)||void 0===ue?void 0:ue.next)||void 0===X||X.call(ue,be)}error(be){var ue,X;null===(X=null===(ue=this.destination)||void 0===ue?void 0:ue.error)||void 0===X||X.call(ue,be)}complete(){var be,ue;null===(ue=null===(be=this.destination)||void 0===be?void 0:be.complete)||void 0===ue||ue.call(be)}_subscribe(be){var ue,X;return null!==(X=null===(ue=this.source)||void 0===ue?void 0:ue.subscribe(be))&&void 0!==X?X:u.Kn}}},7707:(le,E,d)=>{"use strict";d.d(E,{Ms:()=>J,vU:()=>X});
1var p=d(8071),u=d(8359),o=d(1026),v=d(5334),O=d(5343);const x=re("C",void 0,void 0);function re(_,R,w){return{kind:_,value:R,error:w}}var be=d(9270),ue=d(9786);class X extends u.yU{constructor(R){super(),this.isStopped=!1,R?(this.destination=R,(0,u.Uv)(R)&&R.add(this)):this.destination=ce}static create(R,w,B){return new J(R,w,B)}next(R){this.isStopped?Ce(function Q(_){return re("N",_,void 0)}(R),this):this._next(R)}error(R){this.isStopped?Ce(function U(_){return re("E",void 0,_)}(R),this):(this.isStopped=!0,this._error(R))}complete(){this.isStopped?Ce(x,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(R){this.destination.next(R)}_error(R){try{this.destination.error(R)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ne=Function.prototype.bind;function te(_,R){return ne.call(_,R)}class ${constructor(R){this.partialObserver=R}next(R){const{partialObserver:w}=this;if(w.next)try{w.next(R)}catch(B){se(B)}}error(R){const{partialObserver:w}=this;if(w.error)try{w.error(R)}catch(B){se(B)}else se(R)}complete(){const{partialObserver:R}=this;if(R.complete)try{R.complete()}catch(w){se(w)}}}class J extends X{constructor(R,w,B){let z;if(super(),(0,p.T)(R)||!R)z={next:null!=R?R:void 0,error:null!=w?w:void 0,complete:null!=B?B:void 0};else{let oe;this&&o.$.useDeprecatedNextContext?(oe=Object.create(R),oe.unsubscribe=()=>this.unsubscribe(),z={next:R.next&&te(R.next,oe),error:R.error&&te(R.error,oe),complete:R.complete&&te(R.complete,oe)}):z=R}this.destination=new $(z)}}function se(_){o.$.useDeprecatedSynchronousErrorHandling?(0,ue.l)(_):(0,v.m)(_)}function Ce(_,R){const{onStoppedNotification:w}=o.$;w&&be.f.setTimeout(()=>w(_,R))}const ce={closed:!0,next:O.l,error:function De(_){throw _},complete:O.l}},8359:(le,E,d)=>{"use strict";d.d(E,{Kn:()=>x,yU:()=>O,Uv:()=>U});var p=d(8071);const o=(0,d(1853).L)(re=>function(ue){re(this),this.message=ue?"".concat(ue.length," errors occurred during unsubscription:\n").concat(ue.map((X,ne)=>"".concat(ne+1,") ").concat(X.toString())).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=ue});var v=d(7908);class O{constructor(be){this.initialTeardown=be,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let be;if(!this.closed){this.closed=!0;const{_parentage:ue}=this;if(ue)if(this._parentage=null,Array.isArray(ue))for(const te of ue)te.remove(this);else ue.remove(this);const{initialTeardown:X}=this;if((0,p.T)(X))try{X()}catch(te){be=te instanceof o?te.errors:[te]}const{_finalizers:ne}=this;if(ne){this._finalizers=null;for(const te of ne)try{Q(te)}catch($){be=null!=be?be:[],$ instanceof o?be=[...be,...$.errors]:be.push($)}}if(be)throw new o(be)}}add(be){var ue;if(be&&be!==this)if(this.closed)Q(be);else{if(be instanceof O){if(be.closed||be._hasParent(this))return;be._addParent(this)}(this._finalizers=null!==(ue=this._finalizers)&&void 0!==ue?ue:[]).push(be)}}_hasParent(be){const{_parentage:ue}=this;return ue===be||Array.isArray(ue)&&ue.includes(be)}_addParent(be){const{_parentage:ue}=this;this._parentage=Array.isArray(ue)?(ue.push(be),ue):ue?[ue,be]:be}_removeParent(be){const{_parentage:ue}=this;ue===be?this._parentage=null:Array.isArray(ue)&&(0,v.o)(ue,be)}remove(be){const{_finalizers:ue}=this;ue&&(0,v.o)(ue,be),be instanceof O&&be._removeParent(this)}}O.EMPTY=(()=>{const re=new O;return re.closed=!0,re})();const x=O.EMPTY;function U(re){return re instanceof O||re&&"closed"in re&&(0,p.T)(re.remove)&&(0,p.T)(re.add)&&(0,p.T)(re.unsubscribe)}function Q(re){(0,p.T)(re)?re():re.unsubscribe()}},1026:(le,E,d)=>{"use strict";d.d(E,{$:()=>p});const p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4843:(le,E,d)=>{"use strict";d.d(E,{_:()=>o});var p=d(9350),u=d(7707);function o(v,O){const x="object"==typeof O;return new Promise((U,Q)=>{const re=new u.Ms({next:be=>{U(be),re.unsubscribe()},error:Q,complete:()=>{x?U(O.defaultValue):Q(new p.G)}});v.subscribe(re)})}},4572:(le,E,d)=>{"use strict";d.d(E,{z:()=>be});var p=d(1985),u=d(3073),o=d(9724),v=d(3669),O=d(6450),x=d(9326),U=d(8496),Q=d(4360),re=d(5225);function be(...ne){const te=(0,x.lI)(ne),$=(0,x.ms)(ne),{args:J,keys:se}=(0,u.D)(ne);if(0===J.length)return(0,o.H)([],te);const De=new p.c(function ue(ne,te,$=v.D){return J=>{X(te,()=>{const{length:se}=ne,De=new Array(se);let Ce=se,ce=se;for(let _=0;_<se;_++)X(te,()=>{const R=(0,o.H)(ne[_],te);let w=!1;R.subscribe((0,Q._)(J,B=>{De[_]=B,w||(w=!0,ce--),ce||J.next($(De.slice()))},()=>{--Ce||J.complete()}
1))},J)},J)}}(J,te,se?Ce=>(0,U.e)(se,Ce):v.D));return $?De.pipe((0,O.I)($)):De}function X(ne,te,$){ne?(0,re.N)($,ne,te):te()}},8793:(le,E,d)=>{"use strict";d.d(E,{x:()=>O});var p=d(6365),o=d(9326),v=d(9724);function O(...x){return function u(){return(0,p.U)(1)}()((0,v.H)(x,(0,o.lI)(x)))}},983:(le,E,d)=>{"use strict";d.d(E,{w:()=>u});const u=new(d(1985).c)(O=>O.complete())},7468:(le,E,d)=>{"use strict";d.d(E,{p:()=>Q});var p=d(1985),u=d(3073),o=d(8750),v=d(9326),O=d(4360),x=d(6450),U=d(8496);function Q(...re){const be=(0,v.ms)(re),{args:ue,keys:X}=(0,u.D)(re),ne=new p.c(te=>{const{length:$}=ue;if(!$)return void te.complete();const J=new Array($);let se=$,De=$;for(let Ce=0;Ce<$;Ce++){let ce=!1;(0,o.Tg)(ue[Ce]).subscribe((0,O._)(te,_=>{ce||(ce=!0,De--),J[Ce]=_},()=>se--,void 0,()=>{(!se||!ce)&&(De||te.next(X?(0,U.e)(X,J):J),te.complete())}))}});return be?ne.pipe((0,x.I)(be)):ne}},9724:(le,E,d)=>{"use strict";d.d(E,{H:()=>o});var p=d(3083),u=d(8750);function o(v,O){return O?(0,p.c)(v,O):(0,u.Tg)(v)}},3726:(le,E,d)=>{"use strict";d.d(E,{R:()=>be});var p=d(8750),u=d(1985),o=d(1397),v=d(7441),O=d(8071),x=d(6450);const U=["addListener","removeListener"],Q=["addEventListener","removeEventListener"],re=["on","off"];function be($,J,se,De){if((0,O.T)(se)&&(De=se,se=void 0),De)return be($,J,se).pipe((0,x.I)(De));const[Ce,ce]=function te($){return(0,O.T)($.addEventListener)&&(0,O.T)($.removeEventListener)}($)?Q.map(_=>R=>$[_](J,R,se)):function X($){return(0,O.T)($.addListener)&&(0,O.T)($.removeListener)}($)?U.map(ue($,J)):function ne($){return(0,O.T)($.on)&&(0,O.T)($.off)}($)?re.map(ue($,J)):[];if(!Ce&&(0,v.X)($))return(0,o.Z)(_=>be(_,J,se))((0,p.Tg)($));if(!Ce)throw new TypeError("Invalid event target");return new u.c(_=>{const R=(...w)=>_.next(1<w.length?w:w[0]);return Ce(R),()=>ce(R)})}function ue($,J){return se=>De=>$[se](J,De)}},8750:(le,E,d)=>{"use strict";d.d(E,{Tg:()=>ne});var p=d(1635),u=d(7441),o=d(9858),v=d(1985),O=d(5055),x=d(7953),U=d(591),Q=d(5397),re=d(5196),be=d(8071),ue=d(5334),X=d(3494);function ne(_){if(_ instanceof v.c)return _;if(null!=_){if((0,O.l)(_))return function te(_){return new v.c(R=>{const w=_[X.s]();if((0,be.T)(w.subscribe))return w.subscribe(R);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_);if((0,u.X)(_))return function $(_){return new v.c(R=>{for(let w=0;w<_.length&&!R.closed;w++)R.next(_[w]);R.complete()})}(_);if((0,o.y)(_))return function J(_){return new v.c(R=>{_.then(w=>{R.closed||(R.next(w),R.complete())},w=>R.error(w)).then(null,ue.m)})}(_);if((0,x.T)(_))return De(_);if((0,Q.x)(_))return function se(_){return new v.c(R=>{for(const w of _)if(R.next(w),R.closed)return;R.complete()})}(_);if((0,re.U)(_))return function Ce(_){return De((0,re.C)(_))}(_)}throw(0,U.L)(_)}function De(_){return new v.c(R=>{(function ce(_,R){var w,B,z,oe;return(0,p.sH)(this,void 0,void 0,function*(){try{for(w=(0,p.xN)(_);!(B=yield w.next()).done;)if(R.next(B.value),R.closed)return}catch(V){z={error:V}}finally{try{B&&!B.done&&(oe=w.return)&&(yield oe.call(w))}finally{if(z)throw z.error}}R.complete()})})(_,R).catch(w=>R.error(w))})}},7786:(le,E,d)=>{"use strict";d.d(E,{h:()=>x});var p=d(6365),u=d(8750),o=d(983),v=d(9326),O=d(9724);function x(...U){const Q=(0,v.lI)(U),re=(0,v.R0)(U,1/0),be=U;return be.length?1===be.length?(0,u.Tg)(be[0]):(0,p.U)(re)((0,O.H)(be,Q)):o.w}},7673:(le,E,d)=>{"use strict";d.d(E,{of:()=>o});var p=d(9326),u=d(9724);function o(...v){const O=(0,p.lI)(v);return(0,u.H)(v,O)}},8810:(le,E,d)=>{"use strict";d.d(E,{$:()=>o});var p=d(1985),u=d(8071);function o(v,O){const x=(0,u.T)(v)?v:()=>v,U=Q=>Q.error(x());return new p.c(O?Q=>O.schedule(U,0,Q):U)}},1584:(le,E,d)=>{"use strict";d.d(E,{O:()=>O});var p=d(1985),u=d(3236),o=d(9470);function O(x=0,U,Q=u.b){let re=-1;return null!=U&&((0,o.m)(U)?Q=U:re=U),new p.c(be=>{let ue=function v(x){return x instanceof Date&&!isNaN(x)}(x)?+x-Q.now():x;ue<0&&(ue=0);let X=0;return Q.schedule(function(){be.closed||(be.next(X++),0<=re?this.schedule(void 0,re):be.complete())},ue)})}},4360:(le,E,d)=>{"use strict";d.d(E,{H:()=>o,_:()=>u});var p=d(7707);function u(v,O,x,U,Q){return new o(v,O,x,U,Q)}class o extends p.vU{constructor(O,x,U,Q,re,be){super(O),this.onFinalize=re,this.shouldUnsubscribe=be,this._next=x?function(ue){try{x(ue)}catch(X){O.error(X)}}:super._next,this._error=Q?function(ue){try{Q(ue)}catch(X){O.error(X)}finally{this.unsubscribe()}}:super._error,this._complete=U?function(){try{U()}catch(ue){O.error(ue)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var O;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:x}=this;super.unsubscribe(),!x&&(null===(O=this.onFinalize)||void 0===O||O.call(this))}}}},9437:(le,E,d)=>{"use strict";d.d(E,{W:()=>v});var p=d(8750),u=d(4360),o=d(9974);function v(O){return(0,o.N)((x,U)=>{let be,Q=null,re=!1;Q=x.subscribe((0,u._)(U,void 0,void 0,ue=>{be=(0,p.Tg)(O(ue,v(O)(x))),Q?(Q.unsubscribe(),Q=null,be.subscribe(U)):re=!0})),re&&(Q.unsubscribe(),Q=null,be.subscribe(U))})}},274:(le,E,d)=>{"use strict";d.d(E,{H:()=>o});var p=d(1397),u=d(8071);function o(v,O){return(0,u.T)(O)?(0,p.Z)(v,O,1):(0,p.Z)(v,1)}},152:(le,E,d)=>{"use strict";d.d(E,{B:()=>v});var p=d(3236),u=d(9974),o=d(4360);function v(O,x=p.E){return(0,u.N)((U,Q)=>{let re=null,be=null,ue=null;const X=()=>
1{if(re){re.unsubscribe(),re=null;const te=be;be=null,Q.next(te)}};function ne(){const te=ue+O,$=x.now();if($<te)return re=this.schedule(void 0,te-$),void Q.add(re);X()}U.subscribe((0,o._)(Q,te=>{be=te,ue=x.now(),re||(re=x.schedule(ne,O),Q.add(re))},()=>{X(),Q.complete()},void 0,()=>{be=re=null}))})}},9901:(le,E,d)=>{"use strict";d.d(E,{U:()=>o});var p=d(9974),u=d(4360);function o(v){return(0,p.N)((O,x)=>{let U=!1;O.subscribe((0,u._)(x,Q=>{U=!0,x.next(Q)},()=>{U||x.next(v),x.complete()}))})}},3294:(le,E,d)=>{"use strict";d.d(E,{F:()=>v});var p=d(3669),u=d(9974),o=d(4360);function v(x,U=p.D){return x=null!=x?x:O,(0,u.N)((Q,re)=>{let be,ue=!0;Q.subscribe((0,o._)(re,X=>{const ne=U(X);(ue||!x(be,ne))&&(ue=!1,be=ne,re.next(X))}))})}function O(x,U){return x===U}},5964:(le,E,d)=>{"use strict";d.d(E,{p:()=>o});var p=d(9974),u=d(4360);function o(v,O){return(0,p.N)((x,U)=>{let Q=0;x.subscribe((0,u._)(U,re=>v.call(O,re,Q++)&&U.next(re)))})}},980:(le,E,d)=>{"use strict";d.d(E,{j:()=>u});var p=d(9974);function u(o){return(0,p.N)((v,O)=>{try{v.subscribe(O)}finally{O.add(o)}})}},1594:(le,E,d)=>{"use strict";d.d(E,{$:()=>U});var p=d(9350),u=d(5964),o=d(6697),v=d(9901),O=d(3774),x=d(3669);function U(Q,re){const be=arguments.length>=2;return ue=>ue.pipe(Q?(0,u.p)((X,ne)=>Q(X,ne,ue)):x.D,(0,o.s)(1),be?(0,v.U)(re):(0,O.v)(()=>new p.G))}},6354:(le,E,d)=>{"use strict";d.d(E,{T:()=>o});var p=d(9974),u=d(4360);function o(v,O){return(0,p.N)((x,U)=>{let Q=0;x.subscribe((0,u._)(U,re=>{U.next(v.call(O,re,Q++))}))})}},6365:(le,E,d)=>{"use strict";d.d(E,{U:()=>o});var p=d(1397),u=d(3669);function o(v=1/0){return(0,p.Z)(u.D,v)}},1397:(le,E,d)=>{"use strict";d.d(E,{Z:()=>Q});var p=d(6354),u=d(8750),o=d(9974),v=d(5225),O=d(4360),U=d(8071);function Q(re,be,ue=1/0){return(0,U.T)(be)?Q((X,ne)=>(0,p.T)((te,$)=>be(X,te,ne,$))((0,u.Tg)(re(X,ne))),ue):("number"==typeof be&&(ue=be),(0,o.N)((X,ne)=>function x(re,be,ue,X,ne,te,$,J){const se=[];let De=0,Ce=0,ce=!1;const _=()=>{ce&&!se.length&&!De&&be.complete()},R=B=>De<X?w(B):se.push(B),w=B=>{te&&be.next(B),De++;let z=!1;(0,u.Tg)(ue(B,Ce++)).subscribe((0,O._)(be,oe=>{null==ne||ne(oe),te?R(oe):be.next(oe)},()=>{z=!0},void 0,()=>{if(z)try{for(De--;se.length&&De<X;){const oe=se.shift();$?(0,v.N)(be,$,()=>w(oe)):w(oe)}_()}catch(oe){be.error(oe)}}))};return re.subscribe((0,O._)(be,R,()=>{ce=!0,_()})),()=>{null==J||J()}}(X,ne,re,ue)))}},941:(le,E,d)=>{"use strict";d.d(E,{Q:()=>v});var p=d(5225),u=d(9974),o=d(4360);function v(O,x=0){return(0,u.N)((U,Q)=>{U.subscribe((0,o._)(Q,re=>(0,p.N)(Q,O,()=>Q.next(re),x),()=>(0,p.N)(Q,O,()=>Q.complete(),x),re=>(0,p.N)(Q,O,()=>Q.error(re),x)))})}},2816:(le,E,d)=>{"use strict";d.d(E,{S:()=>v});var p=d(9974),u=d(4360);function v(O,x){return(0,p.N)(function o(O,x,U,Q,re){return(be,ue)=>{let X=U,ne=x,te=0;be.subscribe((0,u._)(ue,$=>{const J=te++;ne=X?O(ne,$,J):(X=!0,$),Q&&ue.next(ne)},re&&(()=>{X&&ue.next(ne),ue.complete()})))}}(O,x,arguments.length>=2,!0))}},9568:(le,E,d)=>{"use strict";d.d(E,{t:()=>Q});var p=d(2771),u=d(8750),o=d(1413),v=d(7707),O=d(9974);function U(re,be,...ue){if(!0===be)return void re();if(!1===be)return;const X=new v.Ms({next:()=>{X.unsubscribe(),re()}});return(0,u.Tg)(be(...ue)).subscribe(X)}function Q(re,be,ue){let X,ne=!1;return re&&"object"==typeof re?({bufferSize:X=1/0,windowTime:be=1/0,refCount:ne=!1,scheduler:ue}=re):X=null!=re?re:1/0,function x(re={}){const{connector:be=()=>new o.B,resetOnError:ue=!0,resetOnComplete:X=!0,resetOnRefCountZero:ne=!0}=re;return te=>{let $,J,se,De=0,Ce=!1,ce=!1;const _=()=>{null==J||J.unsubscribe(),J=void 0},R=()=>{_(),$=se=void 0,Ce=ce=!1},w=()=>{const B=$;R(),null==B||B.unsubscribe()};return(0,O.N)((B,z)=>{De++,!ce&&!Ce&&_();const oe=se=null!=se?se:be();z.add(()=>{De--,0===De&&!ce&&!Ce&&(J=U(w,ne))}),oe.subscribe(z),!$&&De>0&&($=new v.Ms({next:V=>oe.next(V),error:V=>{ce=!0,_(),J=U(R,ue,V),oe.error(V)},complete:()=>{Ce=!0,_(),J=U(R,X),oe.complete()}}),(0,u.Tg)(B).subscribe($))})(te)}}({connector:()=>new p.m(X,be,ue),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:ne})}},5245:(le,E,d)=>{"use strict";d.d(E,{i:()=>u});var p=d(5964);function u(o){return(0,p.p)((v,O)=>o<=O)}},9172:(le,E,d)=>{"use strict";d.d(E,{Z:()=>v});var p=d(8793),u=d(9326),o=d(9974);function v(...O){const x=(0,u.lI)(O);return(0,o.N)((U,Q)=>{(x?(0,p.x)(O,U,x):(0,p.x)(O,U)).subscribe(Q)})}},5558:(le,E,d)=>{"use strict";d.d(E,{n:()=>v});var p=d(8750),u=d(9974),o=d(4360);function v(O,x){return(0,u.N)((U,Q)=>{let re=null,be=0,ue=!1;const X=()=>ue&&!re&&Q.complete();U.subscribe((0,o._)(Q,ne=>{null==re||re.unsubscribe();let te=0;const $=be++;(0,p.Tg)(O(ne,$)).subscribe(re=(0,o._)(Q,J=>Q.next(x?x(ne,J,$,te++):J),()=>{re=null,X()}))},()=>{ue=!0,X()}))})}},6697:(le,E,d)=>{"use strict";d.d(E,{s:()=>v});var p=d(983),u=d(9974),o=d(4360);function v(O){return O<=0?()=>p.w:(0,u.N)((x,U)=>{let Q=0;x.subscribe((0,o._)(U,re=>{++Q<=O&&(U.next(re),O<=Q&&U.complete())}))})}},6977:(le,E,d)=>{"use strict";d.d(E,{Q:()=>O});var p=d(9974),u=d(4360),o=d(8750),v=d(5343);function O(x){return(0,p.N)((U,Q)=>{(0,o.Tg)(x).subscribe((0,u._)(Q,()=>Q.complete(),v.l)),!Q.closed&&U.subscribe(Q)})}},8141:(le,E,d)=>{"use strict";d.d(E,{M:()=>O});var p=d(8071),u=d(9974),o=d(4360),v=d(3669);function O(x,U,Q){const re=(0,p.T)(x)||U||Q?{next:x,error:U,complete:Q}:x;return re?(0,u.N)((be,ue)=>{var X;null===(X=re.subscribe)||void 0===X||X.call(re);let ne=!0;be.subscribe((0,o._)(ue,te=>{var $;null===($=re.next)||void 0===$||$.call(re,te),ue.next(te)},()=>{var te;ne=!1,null===(te=re.complete)||void 0===te||te.call(re),ue.complete()},te=>{var $;ne=!1,null===($=re.error)||void 0===$||$.call(re,te),ue.error(te)},()=>{var te,$;ne&&(null===(te=re.unsubscribe)||void 0===te||te.call(re)),null===($=re.finalize)||void 0===$||$.call(re)}))}):v.D}},3386:(le,E,d)=>{"use strict";d.d(E,{c:()=>U});var p=d(3236),u=d(9974),o=d(4360),v=d(8750),x=d(1584);function U(Q,re=p.E,be){const ue=(0,x.O)(Q,re);return function O(Q,re){return(0,u.N)((be,ue)=>{const{leading:X=!0,trailing:ne=!1}=null!=re?re:{};let te=!1,$=null,J=null,se=!1;const De=()=>{null==J||J.unsubscribe(),J=null,ne&&(_(),se&&ue.complete())},Ce=()=>{J=null,se&&ue.complete()},ce=R=>J=(0,v.Tg)(Q(R)).subscribe((0,o._)(ue,De,Ce)),_=()=>{if(te){te=!1;const R=$;$=null,ue.next(R),!se&&ce(R)}};be.subscribe((0,o._)(ue,R=>{te=!0,$=R,(!J||J.closed)&&(X?_():ce(R))},()=>{se=!0,(!(ne&&te&&J)||J.closed)&&ue.complete()}
1))})}(()=>ue,be)}},3774:(le,E,d)=>{"use strict";d.d(E,{v:()=>v});var p=d(9350),u=d(9974),o=d(4360);function v(x=O){return(0,u.N)((U,Q)=>{let re=!1;U.subscribe((0,o._)(Q,be=>{re=!0,Q.next(be)},()=>re?Q.complete():Q.error(x())))})}function O(){return new p.G}},3993:(le,E,d)=>{"use strict";d.d(E,{E:()=>U});var p=d(9974),u=d(4360),o=d(8750),v=d(3669),O=d(5343),x=d(9326);function U(...Q){const re=(0,x.ms)(Q);return(0,p.N)((be,ue)=>{const X=Q.length,ne=new Array(X);let te=Q.map(()=>!1),$=!1;for(let J=0;J<X;J++)(0,o.Tg)(Q[J]).subscribe((0,u._)(ue,se=>{ne[J]=se,!$&&!te[J]&&(te[J]=!0,($=te.every(v.D))&&(te=null))},O.l));be.subscribe((0,u._)(ue,J=>{if($){const se=[J,...ne];ue.next(re?re(...se):se)}}))})}},3083:(le,E,d)=>{"use strict";d.d(E,{c:()=>R});var p=d(8750),u=d(941),o=d(9974);function v(w,B=0){return(0,o.N)((z,oe)=>{oe.add(w.schedule(()=>z.subscribe(oe),B))})}var U=d(1985),re=d(4761),be=d(8071),ue=d(5225);function ne(w,B){if(!w)throw new Error("Iterable cannot be null");return new U.c(z=>{(0,ue.N)(z,B,()=>{const oe=w[Symbol.asyncIterator]();(0,ue.N)(z,B,()=>{oe.next().then(V=>{V.done?z.complete():z.next(V.value)})},0,!0)})})}var te=d(5055),$=d(9858),J=d(7441),se=d(5397),De=d(7953),Ce=d(591),ce=d(5196);function R(w,B){if(null!=w){if((0,te.l)(w))return function O(w,B){return(0,p.Tg)(w).pipe(v(B),(0,u.Q)(B))}(w,B);if((0,J.X)(w))return function Q(w,B){return new U.c(z=>{let oe=0;return B.schedule(function(){oe===w.length?z.complete():(z.next(w[oe++]),z.closed||this.schedule())})})}(w,B);if((0,$.y)(w))return function x(w,B){return(0,p.Tg)(w).pipe(v(B),(0,u.Q)(B))}(w,B);if((0,De.T)(w))return ne(w,B);if((0,se.x)(w))return function X(w,B){return new U.c(z=>{let oe;return(0,ue.N)(z,B,()=>{oe=w[re.l](),(0,ue.N)(z,B,()=>{let V,k;try{({value:V,done:k}=oe.next())}catch(K){return void z.error(K)}k?z.complete():z.next(V)},0,!0)}),()=>(0,be.T)(null==oe?void 0:oe.return)&&oe.return()})}(w,B);if((0,ce.U)(w))return function _(w,B){return ne((0,ce.C)(w),B)}(w,B)}throw(0,Ce.L)(w)}},6780:(le,E,d)=>{"use strict";d.d(E,{R:()=>O});var p=d(8359);class u extends p.yU{constructor(U,Q){super()}schedule(U,Q=0){return this}}const o={setInterval(x,U,...Q){const{delegate:re}=o;return null!=re&&re.setInterval?re.setInterval(x,U,...Q):setInterval(x,U,...Q)},clearInterval(x){const{delegate:U}=o;return((null==U?void 0:U.clearInterval)||clearInterval)(x)},delegate:void 0};var v=d(7908);class O extends u{constructor(U,Q){super(U,Q),this.scheduler=U,this.work=Q,this.pending=!1}schedule(U,Q=0){var re;if(this.closed)return this;this.state=U;const be=this.id,ue=this.scheduler;return null!=be&&(this.id=this.recycleAsyncId(ue,be,Q)),this.pending=!0,this.delay=Q,this.id=null!==(re=this.id)&&void 0!==re?re:this.requestAsyncId(ue,this.id,Q),this}requestAsyncId(U,Q,re=0){return o.setInterval(U.flush.bind(U,this),re)}recycleAsyncId(U,Q,re=0){if(null!=re&&this.delay===re&&!1===this.pending)return Q;null!=Q&&o.clearInterval(Q)}execute(U,Q){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const re=this._execute(U,Q);if(re)return re;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(U,Q){let be,re=!1;try{this.work(U)}catch(ue){re=!0,be=ue||new Error("Scheduled action threw falsy error")}if(re)return this.unsubscribe(),be}unsubscribe(){if(!this.closed){const{id:U,scheduler:Q}=this,{actions:re}=Q;this.work=this.state=this.scheduler=null,this.pending=!1,(0,v.o)(re,this),null!=U&&(this.id=this.recycleAsyncId(Q,U,null)),this.delay=null,super.unsubscribe()}}}},9687:(le,E,d)=>{"use strict";d.d(E,{q:()=>o});var p=d(6129);class u{constructor(O,x=u.now){this.schedulerActionCtor=O,this.now=x}schedule(O,x=0,U){return new this.schedulerActionCtor(this,O).schedule(U,x)}}u.now=p.U.now;class o extends u{constructor(O,x=u.now){super(O,x),this.actions=[],this._active=!1}flush(O){const{actions:x}=this;if(this._active)return void x.push(O);let U;this._active=!0;do{if(U=O.execute(O.state,O.delay))break}while(O=x.shift());if(this._active=!1,U){for(;O=x.shift();)O.unsubscribe();throw U}}}},5007:(le,E,d)=>{"use strict";d.d(E,{$:()=>te});var p=d(6780);let o,u=1;const v={};function O(J){return J in v&&(delete v[J],!0)}const x={setImmediate(J){const se=u++;return v[se]=!0,o||(o=Promise.resolve()),o.then(()=>O(se)&&J()),se},clearImmediate(J){O(J)}},{setImmediate:Q,clearImmediate:re}=x,be={setImmediate(...J){const{delegate:se}=be;return((null==se?void 0:se.setImmediate)||Q)(...J)},clearImmediate(J){const{delegate:se}=be;return((null==se?void 0:se.clearImmediate)||re)(J)},delegate:void 0};var X=d(9687);
1const te=new class ne extends X.q{flush(se){this._active=!0;const De=this._scheduled;this._scheduled=void 0;const{actions:Ce}=this;let ce;se=se||Ce.shift();do{if(ce=se.execute(se.state,se.delay))break}while((se=Ce[0])&&se.id===De&&Ce.shift());if(this._active=!1,ce){for(;(se=Ce[0])&&se.id===De&&Ce.shift();)se.unsubscribe();throw ce}}}(class ue extends p.R{constructor(se,De){super(se,De),this.scheduler=se,this.work=De}requestAsyncId(se,De,Ce=0){return null!==Ce&&Ce>0?super.requestAsyncId(se,De,Ce):(se.actions.push(this),se._scheduled||(se._scheduled=be.setImmediate(se.flush.bind(se,void 0))))}recycleAsyncId(se,De,Ce=0){var ce;if(null!=Ce?Ce>0:this.delay>0)return super.recycleAsyncId(se,De,Ce);const{actions:_}=se;null!=De&&(null===(ce=_[_.length-1])||void 0===ce?void 0:ce.id)!==De&&(be.clearImmediate(De),se._scheduled===De&&(se._scheduled=void 0))}})},3236:(le,E,d)=>{"use strict";d.d(E,{E:()=>o,b:()=>v});var p=d(6780);const o=new(d(9687).q)(p.R),v=o},6129:(le,E,d)=>{"use strict";d.d(E,{U:()=>p});const p={now:()=>(p.delegate||Date).now(),delegate:void 0}},9270:(le,E,d)=>{"use strict";d.d(E,{f:()=>p});const p={setTimeout(u,o,...v){const{delegate:O}=p;return null!=O&&O.setTimeout?O.setTimeout(u,o,...v):setTimeout(u,o,...v)},clearTimeout(u){const{delegate:o}=p;return((null==o?void 0:o.clearTimeout)||clearTimeout)(u)},delegate:void 0}},4761:(le,E,d)=>{"use strict";d.d(E,{l:()=>u});const u=function p(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(le,E,d)=>{"use strict";d.d(E,{s:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(le,E,d)=>{"use strict";d.d(E,{G:()=>u});const u=(0,d(1853).L)(o=>function(){o(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(le,E,d)=>{"use strict";d.d(E,{R0:()=>x,lI:()=>O,ms:()=>v});var p=d(8071),u=d(9470);function o(U){return U[U.length-1]}function v(U){return(0,p.T)(o(U))?U.pop():void 0}function O(U){return(0,u.m)(o(U))?U.pop():void 0}function x(U,Q){return"number"==typeof o(U)?U.pop():Q}},3073:(le,E,d)=>{"use strict";d.d(E,{D:()=>O});const{isArray:p}=Array,{getPrototypeOf:u,prototype:o,keys:v}=Object;function O(U){if(1===U.length){const Q=U[0];if(p(Q))return{args:Q,keys:null};if(function x(U){return U&&"object"==typeof U&&u(U)===o}(Q)){const re=v(Q);return{args:re.map(be=>Q[be]),keys:re}}}return{args:U,keys:null}}},7908:(le,E,d)=>{"use strict";function p(u,o){if(u){const v=u.indexOf(o);0<=v&&u.splice(v,1)}}d.d(E,{o:()=>p})},1853:(le,E,d)=>{"use strict";function p(u){const v=u(O=>{Error.call(O),O.stack=(new Error).stack});return v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v}d.d(E,{L:()=>p})},8496:(le,E,d)=>{"use strict";function p(u,o){return u.reduce((v,O,x)=>(v[O]=o[x],v),{})}d.d(E,{e:()=>p})},9786:(le,E,d)=>{"use strict";d.d(E,{Y:()=>o,l:()=>v});var p=d(1026);let u=null;function o(O){if(p.$.useDeprecatedSynchronousErrorHandling){const x=!u;if(x&&(u={errorThrown:!1,error:null}),O(),x){const{errorThrown:U,error:Q}=u;if(u=null,U)throw Q}}else O()}function v(O){p.$.useDeprecatedSynchronousErrorHandling&&u&&(u.errorThrown=!0,u.error=O)}},5225:(le,E,d)=>{"use strict";function p(u,o,v,O=0,x=!1){const U=o.schedule(function(){v(),x?u.add(this.schedule(null,O)):this.unsubscribe()},O);if(u.add(U),!x)return U}d.d(E,{N:()=>p})},3669:(le,E,d)=>{"use strict";function p(u){return u}d.d(E,{D:()=>p})},7441:(le,E,d)=>{"use strict";d.d(E,{X:()=>p});const p=u=>u&&"number"==typeof u.length&&"function"!=typeof u},7953:(le,E,d)=>{"use strict";d.d(E,{T:()=>u});var p=d(8071);function u(o){return Symbol.asyncIterator&&(0,p.T)(null==o?void 0:o[Symbol.asyncIterator])}},8071:(le,E,d)=>{"use strict";function p(u){return"function"==typeof u}d.d(E,{T:()=>p})},5055:(le,E,d)=>{"use strict";d.d(E,{l:()=>o});var p=d(3494),u=d(8071);function o(v){return(0,u.T)(v[p.s])}},5397:(le,E,d)=>{"use strict";d.d(E,{x:()=>o});var p=d(4761),u=d(8071);function o(v){return(0,u.T)(null==v?void 0:v[p.l])}},4402:(le,E,d)=>{"use strict";d.d(E,{A:()=>o});var p=d(1985),u=d(8071);function o(v){return!!v&&(v instanceof p.c||(0,u.T)(v.lift)&&(0,u.T)(v.subscribe))}},9858:(le,E,d)=>{"use strict";d.d(E,{y:()=>u});var p=d(8071);function u(o){return(0,p.T)(null==o?void 0:o.then)}},5196:(le,E,d)=>{"use strict";d.d(E,{C:()=>o,U:()=>v});var p=d(1635),u=d(8071);function o(O){return(0,p.AQ)(this,arguments,function*(){const U=O.getReader();try{for(;;){const{value:Q,done:re}=yield(0,p.N3)(U.read());if(re)return yield(0,p.N3)(void 0);yield yield(0,p.N3)(Q)}}finally{U.releaseLock()}})}function v(O){return(0,u.T)(null==O?void 0:O.getReader)}},9470:(le,E,d)=>{"use strict";d.d(E,{m:()=>u});var p=d(8071);function u(o){return o&&(0,p.T)(o.schedule)}},9974:(le,E,d)=>{"use strict";d.d(E,{N:()=>o,S:()=>u});var p=d(8071);function u(v){return(0,p.T)(null==v?void 0:v.lift)}function o(v){return O=>{if(u(O))return O.lift(function(x){try{return v(x,this)}catch(U){this.error(U)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(le,E,d)=>{"use strict";d.d(E,{I:()=>v});var p=d(6354);const{isArray:u}=Array;function v(O){return(0,p.T)(x=>
1function o(O,x){return u(x)?O(...x):O(x)}(O,x))}},5343:(le,E,d)=>{"use strict";function p(){}d.d(E,{l:()=>p})},1203:(le,E,d)=>{"use strict";d.d(E,{F:()=>u,m:()=>o});var p=d(3669);function u(...v){return o(v)}function o(v){return 0===v.length?p.D:1===v.length?v[0]:function(x){return v.reduce((U,Q)=>Q(U),x)}}},5334:(le,E,d)=>{"use strict";d.d(E,{m:()=>o});var p=d(1026),u=d(9270);function o(v){u.f.setTimeout(()=>{const{onUnhandledError:O}=p.$;if(!O)throw v;O(v)})}},591:(le,E,d)=>{"use strict";function p(u){return new TypeError("You provided ".concat(null!==u&&"object"==typeof u?"an invalid object":"'".concat(u,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}d.d(E,{L:()=>p})},3785:(le,E,d)=>{var p;!function(){"use strict";var u={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function o(Q){return function O(Q,re){var X,te,$,J,se,De,Ce,ce,_,be=1,ue=Q.length,ne="";for(te=0;te<ue;te++)if("string"==typeof Q[te])ne+=Q[te];else if("object"==typeof Q[te]){if((J=Q[te]).keys)for(X=re[be],$=0;$<J.keys.length;$++){if(null==X)throw new Error(o('[sprintf] Cannot access property "%s" of undefined value "%s"',J.keys[$],J.keys[$-1]));X=X[J.keys[$]]}else X=J.param_no?re[J.param_no]:re[be++];if(u.not_type.test(J.type)&&u.not_primitive.test(J.type)&&X instanceof Function&&(X=X()),u.numeric_arg.test(J.type)&&"number"!=typeof X&&isNaN(X))throw new TypeError(o("[sprintf] expecting number but found %T",X));switch(u.number.test(J.type)&&(ce=X>=0),J.type){case"b":X=parseInt(X,10).toString(2);break;case"c":X=String.fromCharCode(parseInt(X,10));break;case"d":case"i":X=parseInt(X,10);break;case"j":X=JSON.stringify(X,null,J.width?parseInt(J.width):0);break;case"e":X=J.precision?parseFloat(X).toExponential(J.precision):parseFloat(X).toExponential();break;case"f":X=J.precision?parseFloat(X).toFixed(J.precision):parseFloat(X);break;case"g":X=J.precision?String(Number(X.toPrecision(J.precision))):parseFloat(X);break;case"o":X=(parseInt(X,10)>>>0).toString(8);break;case"s":X=String(X),X=J.precision?X.substring(0,J.precision):X;break;case"t":X=String(!!X),X=J.precision?X.substring(0,J.precision):X;break;case"T":X=Object.prototype.toString.call(X).slice(8,-1).toLowerCase(),X=J.precision?X.substring(0,J.precision):X;break;case"u":X=parseInt(X,10)>>>0;break;case"v":X=X.valueOf(),X=J.precision?X.substring(0,J.precision):X;break;case"x":X=(parseInt(X,10)>>>0).toString(16);break;case"X":X=(parseInt(X,10)>>>0).toString(16).toUpperCase()}u.json.test(J.type)?ne+=X:(!u.number.test(J.type)||ce&&!J.sign?_="":(_=ce?"+":"-",X=X.toString().replace(u.sign,"")),De=J.pad_char?"0"===J.pad_char?"0":J.pad_char.charAt(1):" ",Ce=J.width-(_+X).length,se=J.width&&Ce>0?De.repeat(Ce):"",ne+=J.align?_+X+se:"0"===De?_+se+X:se+_+X)}return ne}(function U(Q){if(x[Q])return x[Q];for(var be,re=Q,ue=[],X=0;re;){if(null!==(be=u.text.exec(re)))ue.push(be[0]);else if(null!==(be=u.modulo.exec(re)))ue.push("%");else{if(null===(be=u.placeholder.exec(re)))throw new SyntaxError("[sprintf] unexpected placeholder");if(be[2]){X|=1;var ne=[],te=be[2],$=[];if(null===($=u.key.exec(te)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(ne.push($[1]);""!==(te=te.substring($[0].length));)if(null!==($=u.key_access.exec(te)))ne.push($[1]);else{if(null===($=u.index_access.exec(te)))throw new SyntaxError("[sprintf] failed to parse named argument key");ne.push($[1])}be[2]=ne}else X|=2;if(3===X)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");ue.push({placeholder:be[0],param_no:be[1],keys:be[2],sign:be[3],pad_char:be[4],align:be[5],width:be[6],precision:be[7],type:be[8]})}re=re.substring(be[0].length)}return x[Q]=ue}(Q),arguments)}function v(Q,re){return o.apply(null,[Q].concat(re||[]))}var x=Object.create(null);E.sprintf=o,E.vsprintf=v,typeof window<"u"&&(window.sprintf=o,window.vsprintf=v,void 0!==(p=function(){return{sprintf:o,vsprintf:v}}.call(E,d,E,le))&&(le.exports=p))}()},6155:(le,E)=>{"use strict";E.qg=E.el=E.Op=void 0;const p={allowMultipleFractions:!0},u=[{unit:"years",symbol:"Y"},{unit:"months",symbol:"M"},{unit:"weeks",symbol:"W"},{unit:"days",symbol:"D"},{unit:"hours",symbol:"H"},{unit:"minutes",symbol:"M"},{unit:"seconds",symbol:"S"}],o=(re,be)=>"((?<".concat(re,">-?\\d*[\\.,]?\\d+)").concat(be,")?"),v=new RegExp(["(?<negative>-)?P",o("years","Y"),o("months","M"),o("weeks","W"),o("days","D"),"(T",o("hours","H"),o("minutes","M"),o("seconds","S"),")?"].join(""));function O(re){if(""!==re&&null!=re)return parseFloat(re.replace(",","."))}E.Op=new Error("Invalid duration"),E.el=new Error("Multiple fractions specified"),E.qg=function x(re,be=p){const ue=v.exec(re);if(!ue||!ue.groups)throw E.Op;let X=!0,ne=0;const te={};for(const{unit:J}of u)if(ue.groups[J]&&(X=!1,te[J]=O(ue.groups[J]),!be.allowMultipleFractions&&!Number.isInteger(te[J])&&(ne++,ne>1)))throw E.el;if(X)throw E.Op;const $=te;return ue.groups.negative&&($.negative=!0),$}},9969:(le,E,d)=>{"use strict";d.d(E,{FX:()=>V,If:()=>u,K2:()=>U,hZ:()=>v,i0:()=>O,iF:()=>Q,kY:()=>ue,kp:()=>o,sf:()=>z,ui:()=>oe,wk:()=>re});var p=d(1660),u=function(k){return k[k.State=0]="State",k[k.Transition=1]="Transition",k[k.Sequence=2]="Sequence",k[k.Group=3]="Group",k[k.Animate=4]="Animate",k[k.Keyframes=5]="Keyframes",k[k.Style=6]="Style",k[k.Trigger=7]="Trigger",k[k.Reference=8]="Reference",k[k.AnimateChild=9]="AnimateChild",k[k.AnimateRef=10]="AnimateRef",k[k.Query=11]="Query",k[k.Stagger=12]="Stagger",k}(u||{});const o="*";function v(k,K){return{type:u.Trigger,name:k,definitions:K,options:{}}}function O(k,K=null){return{type:u.Animate,styles:K,timings:k}}function U(k,K=null){return{type:u.Sequence,steps:k,options:K}}function Q(k){return{type:u.Style,styles:k,offset:null}}function re(k,K,ge){return{type:u.State,name:k,styles:K,options:ge}}function ue(k,K,ge=null){return{type:u.Transition,expr:k,animation:K,options:ge}}class z{constructor(K=0,ge=0){(0,p.A)(this,"_onDoneFns",[]),(0,p.A)(this,"_onStartFns",[]),(0,p.A)(this,"_onDestroyFns",[]),(0,p.A)(this,"_originalOnDoneFns",[]),(0,p.A)(this,"_originalOnStartFns",[]),(0,p.A)(this,"_started",!1),(0,p.A)(this,"_destroyed",!1),(0,p.A)(this,"_finished",!1),(0,p.A)(this,"_position",0),(0,p.A)(this,"parentPlayer",null),(0,p.A)(this,"totalTime",void 0),this.totalTime=K+ge}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(K=>K()),this._onDoneFns=[])}onStart(K){this._originalOnStartFns.push(K),this._onStartFns.push(K)}onDone(K){this._originalOnDoneFns.push(K),this._onDoneFns.push(K)}onDestroy(K){this._onDestroyFns.push(K)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(K=>K()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(K=>K()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(K){this._position=this.totalTime?K*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(K){const ge="start"==K?this._onStartFns:this._onDoneFns;ge.forEach(ve=>ve()),ge.length=0}}class oe{constructor(K){(0,p.A)(this,"_onDoneFns",[]),(0,p.A)(this,"_onStartFns",[]),(0,p.A)(this,"_finished",!1),(0,p.A)(this,"_started",!1),(0,p.A)(this,"_destroyed",!1),(0,p.A)(this,"_onDestroyFns",[]),(0,p.A)(this,"parentPlayer",null),(0,p.A)(this,"totalTime",0),(0,p.A)(this,"players",void 0),this.players=K;let ge=0,ve=0,Fe=0;const We=this.players.length;0==We?queueMicrotask(()=>
1this._onFinish()):this.players.forEach(ze=>{ze.onDone(()=>{++ge==We&&this._onFinish()}),ze.onDestroy(()=>{++ve==We&&this._onDestroy()}),ze.onStart(()=>{++Fe==We&&this._onStart()})}),this.totalTime=this.players.reduce((ze,bt)=>Math.max(ze,bt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(K=>K()),this._onDoneFns=[])}init(){this.players.forEach(K=>K.init())}onStart(K){this._onStartFns.push(K)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(K=>K()),this._onStartFns=[])}onDone(K){this._onDoneFns.push(K)}onDestroy(K){this._onDestroyFns.push(K)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(K=>K.play())}pause(){this.players.forEach(K=>K.pause())}restart(){this.players.forEach(K=>K.restart())}finish(){this._onFinish(),this.players.forEach(K=>K.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(K=>K.destroy()),this._onDestroyFns.forEach(K=>K()),this._onDestroyFns=[])}reset(){this.players.forEach(K=>K.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(K){const ge=K*this.totalTime;this.players.forEach(ve=>{const Fe=ve.totalTime?Math.min(1,ge/ve.totalTime):1;ve.setPosition(Fe)})}getPosition(){const K=this.players.reduce((ge,ve)=>null===ge||ve.totalTime>ge.totalTime?ve:ge,null);return null!=K?K.getPosition():0}beforeDestroy(){this.players.forEach(K=>{K.beforeDestroy&&K.beforeDestroy()})}triggerCallback(K){const ge="start"==K?this._onStartFns:this._onDoneFns;ge.forEach(ve=>ve()),ge.length=0}}const V="!"},2365:(le,E,d)=>{"use strict";d.d(E,{Bu:()=>et,FN:()=>br,Q_:()=>zi,g7:()=>no,_G:()=>dt,w6:()=>Ct});var p=d(9379),u=d(1660),o=d(177),v=d(3953),O=d(6860),x=d(7336),U=d(1413),Q=d(8359),be=(d(4402),d(7673)),ue=d(4412),X=d(8141),ne=d(152),te=d(5964),$=d(6354),J=d(6697),se=d(5245),De=d(3294),Ce=d(6977),_=d(4085),R=d(4572),w=d(8793),B=d(1985),z=d(9172);const V=new Set;let k,K=(()=>{var sn;class Ze{constructor(){(0,u.A)(this,"_platform",(0,v.WQX)(O.OD)),(0,u.A)(this,"_nonce",(0,v.WQX)(v.BIS,{optional:!0})),(0,u.A)(this,"_matchMedia",void 0),this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ve}matchMedia(pt){return(this._platform.WEBKIT||this._platform.BLINK)&&function ge(sn,Ze){if(!V.has(sn))try{k||(k=document.createElement("style"),Ze&&k.setAttribute("nonce",Ze),k.setAttribute("type","text/css"),document.head.appendChild(k)),k.sheet&&(k.sheet.insertRule("@media ".concat(sn," {body{ }}"),0),V.add(sn))}catch(Mt){console.error(Mt)}}(pt,this._nonce),this._matchMedia(pt)}}return sn=Ze,(0,u.A)(Ze,"\u0275fac",function(pt){return new(pt||sn)}),(0,u.A)(Ze,"\u0275prov",v.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})),Ze})();function ve(sn){return{matches:"all"===sn||""===sn,media:sn,addListener:()=>{},removeListener:()=>{}}}let Fe=(()=>{var sn;class Ze{constructor(){(0,u.A)(this,"_mediaMatcher",(0,v.WQX)(K)),(0,u.A)(this,"_zone",(0,v.WQX)(v.SKi)),(0,u.A)(this,"_queries",new Map),(0,u.A)(this,"_destroySubject",new U.B)}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(pt){return We((0,_.FG)(pt)).some(Cn=>this._registerQuery(Cn).mql.matches)}observe(pt){const Cn=We((0,_.FG)(pt)).map(ir=>this._registerQuery(ir).observable);let un=(0,R.z)(Cn);return un=(0,w.x)(un.pipe((0,J.s)(1)),un.pipe((0,se.i)(1),(0,ne.B)(0))),un.pipe((0,$.T)(ir=>{const vr={matches:!1,breakpoints:{}};return ir.forEach(({matches:Si,query:co})=>{vr.matches=vr.matches||Si,vr.breakpoints[co]=Si}),vr}))}_registerQuery(pt){if(this._queries.has(pt))return this._queries.get(pt);const Xt=this._mediaMatcher.matchMedia(pt),un={observable:new B.c(ir=>{const vr=Si=>this._zone.run(()=>ir.next(Si));return Xt.addListener(vr),()=>{Xt.removeListener(vr)}}).pipe((0,z.Z)(Xt),(0,$.T)(({matches:ir})=>({query:pt,matches:ir})),(0,Ce.Q)(this._destroySubject)),mql:Xt};return this._queries.set(pt,un),un}}return sn=Ze,(0,u.A)(Ze,"\u0275fac",function(pt){return new(pt||sn)}),(0,u.A)(Ze,"\u0275prov",v.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})),Ze})();function We(sn){return sn.map(Ze=>Ze.split(",")).reduce((Ze,Mt)=>Ze.concat(Mt)).map(Ze=>Ze.trim())}class at{constructor(Ze,Mt){(0,u.A)(this,"_letterKeyStream",new U.B),(0,u.A)(this,"_items",[]),(0,u.A)(this,"_selectedItemIndex",-1),(0,u.A)(this,"_pressedLetters",[]),(0,u.A)(this,"_skipPredicateFn",void 0),(0,u.A)(this,"_selectedItem",new U.B),(0,u.A)(this,"selectedItem",this._selectedItem);const pt="number"==typeof(null==Mt?void 0:Mt.debounceInterval)?Mt.debounceInterval:200;null!=Mt&&Mt.skipPredicate&&(this._skipPredicateFn=Mt.skipPredicate),this.setItems(Ze),this._setupKeyHandler(pt)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(Ze){this._selectedItemIndex=Ze}setItems(Ze){this._items=Ze}handleKey(Ze){const Mt=Ze.keyCode;Ze.key&&1===Ze.key.length?this._letterKeyStream.next(Ze.key.toLocaleUpperCase()):(Mt>=x.A&&Mt<=x.Z||Mt>=x.f2&&Mt<=x.bn)&&this._letterKeyStream.next(String.fromCharCode(Mt))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(Ze){this._letterKeyStream.pipe((0,X.M)(Mt=>this._pressedLetters.push(Mt)),(0,ne.B)(Ze),(0,te.p)(()=>this._pressedLetters.length>0),(0,$.T)(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(Mt=>{for(let Cn=1;Cn<this._items.length+1;Cn++){var pt,Xt;const ir=this._items[(this._selectedItemIndex+Cn)%this._items.length];if((null===(pt=this._skipPredicateFn)||void 0===pt||!pt.call(this,ir))&&0===(null===(Xt=ir.getLabel)||void 0===Xt?void 0:Xt.call(ir).toLocaleUpperCase().trim().indexOf(Mt))){this._selectedItem.next(ir);break}}this._pressedLetters=[]})}}class hn{constructor(Ze,Mt){(0,u.A)(this,"_items",void 0),(0,u.A)(this,"_activeItemIndex",-1),(0,u.A)(this,"_activeItem",(0,v.vPA)(null)),(0,u.A)(this,"_wrap",!1),(0,u.A)(this,"_typeaheadSub
1scription",Q.yU.EMPTY),(0,u.A)(this,"_itemChangesSubscription",void 0),(0,u.A)(this,"_vertical",!0),(0,u.A)(this,"_horizontal",void 0),(0,u.A)(this,"_allowedModifierKeys",[]),(0,u.A)(this,"_homeAndEnd",!1),(0,u.A)(this,"_pageUpAndDown",{enabled:!1,delta:10}),(0,u.A)(this,"_effectRef",void 0),(0,u.A)(this,"_typeahead",void 0),(0,u.A)(this,"_skipPredicateFn",pt=>pt.disabled),(0,u.A)(this,"tabOut",new U.B),(0,u.A)(this,"change",new U.B),this._items=Ze,Ze instanceof v.rOR?this._itemChangesSubscription=Ze.changes.subscribe(pt=>this._itemsChanged(pt.toArray())):(0,v.Hps)(Ze)&&(this._effectRef=(0,v.QZP)(()=>this._itemsChanged(Ze()),{injector:Mt}))}skipPredicate(Ze){return this._skipPredicateFn=Ze,this}withWrap(Ze=!0){return this._wrap=Ze,this}withVerticalOrientation(Ze=!0){return this._vertical=Ze,this}withHorizontalOrientation(Ze){return this._horizontal=Ze,this}withAllowedModifierKeys(Ze){return this._allowedModifierKeys=Ze,this}withTypeAhead(Ze=200){this._typeaheadSubscription.unsubscribe();const Mt=this._getItemsArray();return this._typeahead=new at(Mt,{debounceInterval:"number"==typeof Ze?Ze:void 0,skipPredicate:pt=>this._skipPredicateFn(pt)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(pt=>{this.setActiveItem(pt)}),this}cancelTypeahead(){var Ze;return null===(Ze=this._typeahead)||void 0===Ze||Ze.reset(),this}withHomeAndEnd(Ze=!0){return this._homeAndEnd=Ze,this}withPageUpDown(Ze=!0,Mt=10){return this._pageUpAndDown={enabled:Ze,delta:Mt},this}setActiveItem(Ze){const Mt=this._activeItem();this.updateActiveItem(Ze),this._activeItem()!==Mt&&this.change.next(this._activeItemIndex)}onKeydown(Ze){var Mt;const pt=Ze.keyCode,Cn=["altKey","ctrlKey","metaKey","shiftKey"].every(ir=>!Ze[ir]||this._allowedModifierKeys.indexOf(ir)>-1);switch(pt){case x.wn:return void this.tabOut.next();case x.n6:if(this._vertical&&Cn){this.setNextItemActive();break}return;case x.i7:if(this._vertical&&Cn){this.setPreviousItemActive();break}return;case x.LE:if(this._horizontal&&Cn){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case x.UQ:if(this._horizontal&&Cn){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case x.yZ:if(this._homeAndEnd&&Cn){this.setFirstItemActive();break}return;case x.Kp:if(this._homeAndEnd&&Cn){this.setLastItemActive();break}return;case x.w_:if(this._pageUpAndDown.enabled&&Cn){const ir=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ir>0?ir:0,1);break}return;case x.dB:if(this._pageUpAndDown.enabled&&Cn){const ir=this._activeItemIndex+this._pageUpAndDown.delta,vr=this._getItemsArray().length;this._setActiveItemByIndex(ir<vr?ir:vr-1,-1);break}return;default:var un;return void((Cn||(0,x.rp)(Ze,"shiftKey"))&&(null===(un=this._typeahead)||void 0===un||un.handleKey(Ze)))}null===(Mt=this._typeahead)||void 0===Mt||Mt.reset(),Ze.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ze){var Mt;const pt=this._getItemsArray(),Xt="number"==typeof Ze?Ze:pt.indexOf(Ze),Cn=pt[Xt];this._activeItem.set(null==Cn?null:Cn),this._activeItemIndex=Xt,null===(Mt=this._typeahead)||void 0===Mt||Mt.setCurrentSelectedItemIndex(Xt)}destroy(){var Ze,Mt,pt;this._typeaheadSubscription.unsubscribe(),null===(Ze=this._itemChangesSubscription)||void 0===Ze||Ze.unsubscribe(),null===(Mt=this._effectRef)||void 0===Mt||Mt.destroy(),null===(pt=this._typeahead)||void 0===pt||pt.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(Ze){this._wrap?this._setActiveInWrapMode(Ze):this._setActiveInDefaultMode(Ze)}_setActiveInWrapMode(Ze){const Mt=this._getItemsArray();for(let pt=1;pt<=Mt.length;pt++){const Xt=(this._activeItemIndex+Ze*pt+Mt.length)%Mt.length;if(!this._skipPredicateFn(Mt[Xt]))return void this.setActiveItem(Xt)}}_setActiveInDefaultMode(Ze){this._setActiveItemByIndex(this._activeItemIndex+Ze,Ze)}_setActiveItemByIndex(Ze,Mt){const pt=this._getItemsArray();if(pt[Ze]){for(;this._skipPredicateFn(pt[Ze]);)if(!pt[Ze+=Mt])return;this.setActiveItem(Ze)}}_getItemsArray(){return(0,v.Hps)(this._items)?this._items():this._items instanceof v.rOR?this._items.toArray():this._items}_itemsChanged(Ze){var Mt;null===(Mt=this._typeahead)||void 0===Mt||Mt.setItems(Ze);const pt=this._activeItem();if(pt){const Cn=Ze.indexOf(pt);var Xt;Cn>-1&&Cn!==this._activeItemIndex&&(this._activeItemIndex=Cn,null===(Xt=this._typeahead)||void 0===Xt||Xt.setCurrentSelectedItemIndex(Cn))}}}class et extends hn{constructor(...Ze){super(...Ze),(0,u.A)(this,"_origin","program")}setFocusOrigin(Ze){return this._origin=Ze,this}setActiveItem(Ze){super.setActiveItem(Ze),this.activeItem&&this.activeItem.focus(this._origin)}}function dt(sn){return 0===sn.buttons||0===sn.detail}function Ct(sn){const Ze=sn.touches&&sn.touches[0]||sn.changedTouches&&sn.changedTouches[0];
1return!(!Ze||-1!==Ze.identifier||null!=Ze.radiusX&&1!==Ze.radiusX||null!=Ze.radiusY&&1!==Ze.radiusY)}const Et=new v.nKC("cdk-input-modality-detector-options"),dn={ignoreKeys:[x.A$,x.W3,x.eg,x.Ge,x.FX]},Hn=(0,O.BQ)({passive:!0,capture:!0});let Cr=(()=>{var sn;class Ze{get mostRecentModality(){return this._modality.value}constructor(){(0,u.A)(this,"_platform",(0,v.WQX)(O.OD)),(0,u.A)(this,"modalityDetected",void 0),(0,u.A)(this,"modalityChanged",void 0),(0,u.A)(this,"_mostRecentTarget",null),(0,u.A)(this,"_modality",new ue.t(null)),(0,u.A)(this,"_options",void 0),(0,u.A)(this,"_lastTouchMs",0),(0,u.A)(this,"_onKeydown",un=>{var ir;null!==(ir=this._options)&&void 0!==ir&&null!==(ir=ir.ignoreKeys)&&void 0!==ir&&ir.some(vr=>vr===un.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,O.Fb)(un))}),(0,u.A)(this,"_onMousedown",un=>{Date.now()-this._lastTouchMs<650||(this._modality.next(dt(un)?"keyboard":"mouse"),this._mostRecentTarget=(0,O.Fb)(un))}),(0,u.A)(this,"_onTouchstart",un=>{Ct(un)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,O.Fb)(un))});const pt=(0,v.WQX)(v.SKi),Xt=(0,v.WQX)(o.qQ),Cn=(0,v.WQX)(Et,{optional:!0});this._options=(0,p.A)((0,p.A)({},dn),Cn),this.modalityDetected=this._modality.pipe((0,se.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,De.F)()),this._platform.isBrowser&&pt.runOutsideAngular(()=>{Xt.addEventListener("keydown",this._onKeydown,Hn),Xt.addEventListener("mousedown",this._onMousedown,Hn),Xt.addEventListener("touchstart",this._onTouchstart,Hn)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Hn),document.removeEventListener("mousedown",this._onMousedown,Hn),document.removeEventListener("touchstart",this._onTouchstart,Hn))}}return sn=Ze,(0,u.A)(Ze,"\u0275fac",function(pt){return new(pt||sn)}),(0,u.A)(Ze,"\u0275prov",v.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})),Ze})();var jn=function(sn){return sn[sn.IMMEDIATE=0]="IMMEDIATE",sn[sn.EVENTUAL=1]="EVENTUAL",sn}(jn||{});const Jn=new v.nKC("cdk-focus-monitor-default-options"),fr=(0,O.BQ)({passive:!0,capture:!0});let br=(()=>{var sn;class Ze{constructor(){(0,u.A)(this,"_ngZone",(0,v.WQX)(v.SKi)),(0,u.A)(this,"_platform",(0,v.WQX)(O.OD)),(0,u.A)(this,"_inputModalityDetector",(0,v.WQX)(Cr)),(0,u.A)(this,"_origin",null),(0,u.A)(this,"_lastFocusOrigin",void 0),(0,u.A)(this,"_windowFocused",!1),(0,u.A)(this,"_windowFocusTimeoutId",void 0),(0,u.A)(this,"_originTimeoutId",void 0),(0,u.A)(this,"_originFromTouchInteraction",!1),(0,u.A)(this,"_elementInfo",new Map),(0,u.A)(this,"_monitoredElementCount",0),(0,u.A)(this,"_rootNodeFocusListenerCount",new Map),(0,u.A)(this,"_detectionMode",void 0),(0,u.A)(this,"_windowFocusListener",()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)}),(0,u.A)(this,"_document",(0,v.WQX)(o.qQ,{optional:!0})),(0,u.A)(this,"_stopInputModalityDetector",new U.B),(0,u.A)(this,"_rootNodeFocusAndBlurListener",Xt=>{for(let un=(0,O.Fb)(Xt);un;un=un.parentElement)"focus"===Xt.type?this._onFocus(Xt,un):this._onBlur(Xt,un)});const pt=(0,v.WQX)(Jn,{optional:!0});this._detectionMode=(null==pt?void 0:pt.detectionMode)||jn.IMMEDIATE}monitor(pt,Xt=!1){const Cn=(0,_.i8)(pt);if(!this._platform.isBrowser||1!==Cn.nodeType)return(0,be.of)();const un=(0,O.KT)(Cn)||this._getDocument(),ir=this._elementInfo.get(Cn);if(ir)return Xt&&(ir.checkChildren=!0),ir.subject;const vr={checkChildren:Xt,subject:new U.B,rootNode:un};return this._elementInfo.set(Cn,vr),this._registerGlobalListeners(vr),vr.subject}stopMonitoring(pt){const Xt=(0,_.i8)(pt),Cn=this._elementInfo.get(Xt);Cn&&(Cn.subject.complete(),this._setClasses(Xt),this._elementInfo.delete(Xt),this._removeGlobalListeners(Cn))}focusVia(pt,Xt,Cn){const un=(0,_.i8)(pt);un===this._getDocument().activeElement?this._getClosestElementsInfo(un).forEach(([vr,Si])=>this._originChanged(vr,Xt,Si)):(this._setOrigin(Xt),"function"==typeof un.focus&&un.focus(Cn))}ngOnDestroy(){this._elementInfo.forEach((pt,Xt)=>this.stopMonitoring(Xt))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(pt){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(pt)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:pt&&this._isLastInteractionFromInputLabel(pt)?"mouse":"program"}_shouldBeAttributedToTouch(pt){return this._detectionMode===jn.EVENTUAL||!(null==pt||!pt.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(pt,Xt){pt.classList.toggle("cdk-focused",!!Xt),pt.classList.toggle("cdk-touch-focused","touch"===Xt),pt.classList.toggle("cdk-keyboard-focused","keyboard"===Xt),pt.classList.toggle("cdk-mouse-focused","mouse"===Xt),pt.classList.toggle("cdk-program-focused","program"===Xt)}_setOrigin(pt,Xt=!1){this._ngZone.runOutsideAngular(()=>{this._origin=pt,this._originFromTouchInteraction="touch"===pt&&Xt,this._detectionMode===jn.IMMEDIATE&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(pt,Xt){const Cn=this._elementInfo.get(Xt),un=(0,O.Fb)(pt);!Cn||!Cn.checkChildren&&Xt!==un||this._originChanged(Xt,this._getFocusOrigin(un),Cn)}_onBlur(pt,Xt){const Cn=this._elementInfo.get(Xt);!Cn||Cn.checkChildren&&pt.relatedTarget instanceof Node&&Xt.contains(pt.relatedTarget)||(this._setClasses(Xt),this._emitOrigin(Cn,null))}_emitOrigin(pt,Xt){pt.subject.observers.length&&this._ngZone.run(()=>pt.subject.next(Xt))}_registerGlobalListeners(pt){if(!this._platform.isBrowser)return;const Xt=pt.rootNode,Cn=this._rootNodeFocusListenerCount.get(Xt)||0;Cn||this._ngZone.runOutsideAngular(()=>{Xt.addEventListener("focus",this._rootNodeFocusAndBlurListener,fr),Xt.addEventListener("blur",this._rootNodeFocusAndBlurListener,fr)}),this._rootNodeFocusListenerCount.set(Xt,Cn+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Ce.Q)(this._stopInputModalityDetector)).subscribe(un=>{this._setOrigin(un,!0)}))}_removeGlobalListeners(pt){const Xt=pt.rootNode;if(this._rootNodeFocusListenerCount.has(Xt)){const Cn=this._rootNodeFocusListenerCount.get(Xt);Cn>1?this._rootNodeFocusListenerCount.set(Xt,Cn-1):(Xt.removeEventListener("focus",this._rootNodeFocusAndBlurListener,fr),Xt.removeEventListener("blur",this._rootNodeFocusAndBlurListener,fr),this._rootNodeFocusListenerCount.delete(Xt))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(pt,Xt,Cn){this._setClasses(pt,Xt),this._emitOrigin(Cn,Xt),this._lastFocusOrigin=Xt}_getClosestElementsInfo(pt){const Xt=[];return this._elementInfo.forEach((Cn,un)=>{(un===pt||Cn.checkChildren&&un.contains(pt))&&Xt.push([un,Cn])}),Xt}_isLastInteractionFromInputLabel(pt){const{_mostRecentTarget:Xt,mostRecentModality:Cn}=this._inputModalityDetector;if("mouse"!==Cn||!Xt||Xt===pt||"INPUT"!==pt.nodeName&&"TEXTAREA"!==pt.nodeName||pt.disabled)return!1;const un=pt.labels;if(un)for(let ir=0;ir<un.length;ir++)if(un[ir].contains(Xt))return!0;return!1}}return sn=Ze,(0,u.A)(Ze,"\u0275fac",function(pt){return new(pt||sn)}),(0,u.A)(Ze,"\u0275prov",v.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})),Ze})();var Qr=function(sn){return sn[sn.NONE=0]="NONE",sn[sn.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",sn[sn.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",sn}(Qr||{});const Ti="cdk-high-contrast-black-on-white",Ui="cdk-high-contrast-white-on-black",ui="cdk-high-contrast-active";let zi=(()=>{var sn;class Ze{constructor(){(0,u.A)(this,"_platform",(0,v.WQX)(O.OD)),(0,u.A)(this,"_hasCheckedHighContrastMode",void 0),(0,u.A)(this,"_document",(0,v.WQX)(o.qQ)),(0,u.A)(this,"_breakpointSubscription",void 0),this._breakpointSubscription=(0,v.WQX)(Fe).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasse
1s())})}getHighContrastMode(){if(!this._platform.isBrowser)return Qr.NONE;const pt=this._document.createElement("div");pt.style.backgroundColor="rgb(1,2,3)",pt.style.position="absolute",this._document.body.appendChild(pt);const Xt=this._document.defaultView||window,Cn=Xt&&Xt.getComputedStyle?Xt.getComputedStyle(pt):null,un=(Cn&&Cn.backgroundColor||"").replace(/ /g,"");switch(pt.remove(),un){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Qr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Qr.BLACK_ON_WHITE}return Qr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const pt=this._document.body.classList;pt.remove(ui,Ti,Ui),this._hasCheckedHighContrastMode=!0;const Xt=this.getHighContrastMode();Xt===Qr.BLACK_ON_WHITE?pt.add(ui,Ti):Xt===Qr.WHITE_ON_BLACK&&pt.add(ui,Ui)}}}return sn=Ze,(0,u.A)(Ze,"\u0275fac",function(pt){return new(pt||sn)}),(0,u.A)(Ze,"\u0275prov",v.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})),Ze})();const uo={};let no=(()=>{var sn;class Ze{constructor(){(0,u.A)(this,"_appId",(0,v.WQX)(v.sZ2))}getId(pt){return"ng"!==this._appId&&(pt+=this._appId),uo.hasOwnProperty(pt)||(uo[pt]=0),"".concat(pt).concat(uo[pt]++)}}return sn=Ze,(0,u.A)(Ze,"\u0275fac",function(pt){return new(pt||sn)}),(0,u.A)(Ze,"\u0275prov",v.jDH({token:sn,factory:sn.\u0275fac,providedIn:"root"})),Ze})()},8203:(le,E,d)=>{"use strict";d.d(E,{dS:()=>Q,jI:()=>be});var p=d(1660),u=d(3953),o=d(177);const v=new u.nKC("cdk-dir-doc",{providedIn:"root",factory:function O(){return(0,u.WQX)(o.qQ)}}),x=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Q=(()=>{var ue;class X{constructor(){(0,p.A)(this,"value","ltr"),(0,p.A)(this,"change",new u.bkB);const te=(0,u.WQX)(v,{optional:!0});te&&(this.value=function U(ue){var X;const ne=(null==ue?void 0:ue.toLowerCase())||"";return"auto"===ne&&typeof navigator<"u"&&null!==(X=navigator)&&void 0!==X&&X.language?x.test(navigator.language)?"rtl":"ltr":"rtl"===ne?"rtl":"ltr"}((te.body?te.body.dir:null)||(te.documentElement?te.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}}return ue=X,(0,p.A)(X,"\u0275fac",function(te){return new(te||ue)}),(0,p.A)(X,"\u0275prov",u.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})),X})(),be=(()=>{var ue;class X{}return ue=X,(0,p.A)(X,"\u0275fac",function(te){return new(te||ue)}),(0,p.A)(X,"\u0275mod",u.$C({type:ue})),(0,p.A)(X,"\u0275inj",u.G2t({})),X})()},4085:(le,E,d)=>{"use strict";d.d(E,{FG:()=>O,a1:()=>x,i8:()=>U});var p=d(3953);function O(re){return Array.isArray(re)?re:[re]}function x(re){return null==re?"":"string"==typeof re?re:"".concat(re,"px")}function U(re){return re instanceof p.aKT?re.nativeElement:re}},7336:(le,E,d)=>{"use strict";d.d(E,{A:()=>He,A$:()=>Q,FX:()=>x,Fm:()=>O,Ge:()=>$n,Kp:()=>$,LE:()=>Ce,UQ:()=>se,W3:()=>U,Z:()=>Pn,_f:()=>ue,bn:()=>ze,dB:()=>te,eg:()=>ci,f2:()=>z,i7:()=>De,n6:()=>ce,rp:()=>Vi,t6:()=>X,w_:()=>ne,wn:()=>o,yZ:()=>J});const o=9,O=13,x=16,U=17,Q=18,ue=27,X=32,ne=33,te=34,$=35,J=36,se=37,De=38,Ce=39,ce=40,z=48,ze=57,He=65,Pn=90,$n=91,ci=224;function Vi(di,...$r){return $r.length?$r.some(gi=>di[gi]):di.altKey||di.shiftKey||di.ctrlKey||di.metaKey}},6860:(le,E,d)=>{"use strict";d.d(E,{BQ:()=>X,CZ:()=>J,Fb:()=>R,KT:()=>ce,OD:()=>O,v8:()=>w});var p=d(1660),u=d(3953),o=d(177);let v;try{v=typeof Intl<"u"&&Intl.v8BreakIterator}catch(z){v=!1}let be,$,De,O=(()=>{var z;class oe{constructor(){(0,p.A)(this,"_platformId",(0,u.WQX)(u.Agw)),(0,p.A)(this,"isBrowser",this._platformId?(0,o.UE)(this._platformId):"object"==typeof document&&!!document),(0,p.A)(this,"EDGE",this.isBrowser&&/(edge)/i.test(navigator.userAgent)),(0,p.A)(this,"TRIDENT",this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent)),(0,p.A)(this,"BLINK",this.isBrowser&&!(!window.chrome&&!v)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT),(0,p.A)(this,"WEBKIT",this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT),(0,p.A)(this,"IOS",this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window)),(0,p.A)(this,"FIREFOX",this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent)),(0,p.A)(this,"ANDROID",this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT),(0,p.A)(this,"SAFARI",this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT)}}return z=oe,(0,p.A)(oe,"\u0275fac",function(k){return new(k||z)}
1),(0,p.A)(oe,"\u0275prov",u.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})),oe})();function X(z){return function ue(){if(null==be&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>be=!0}))}finally{be=be||!1}return be}()?z:!!z.capture}function J(){if(null==$){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return $=!1,$;if("scrollBehavior"in document.documentElement.style)$=!0;else{const z=Element.prototype.scrollTo;$=!!z&&!/\{\s*\[native code\]\s*\}/.test(z.toString())}}return $}function ce(z){if(function Ce(){if(null==De){const z=typeof document<"u"?document.head:null;De=!(!z||!z.createShadowRoot&&!z.attachShadow)}return De}()){const oe=z.getRootNode?z.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&oe instanceof ShadowRoot)return oe}return null}function R(z){return z.composedPath?z.composedPath()[0]:z.target}function w(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},9046:(le,E,d)=>{"use strict";d.d(E,{l:()=>v});var p=d(1660),u=d(3953);const o=new WeakMap;let v=(()=>{var x;class U{constructor(){(0,p.A)(this,"_appRef",void 0),(0,p.A)(this,"_injector",(0,u.WQX)(u.zZn)),(0,p.A)(this,"_environmentInjector",(0,u.WQX)(u.uvJ))}load(re){const be=this._appRef=this._appRef||this._injector.get(u.o8S);let ue=o.get(be);ue||(ue={loaders:new Set,refs:[]},o.set(be,ue),be.onDestroy(()=>{var X;null===(X=o.get(be))||void 0===X||X.refs.forEach(ne=>ne.destroy()),o.delete(be)})),ue.loaders.has(re)||(ue.loaders.add(re),ue.refs.push((0,u.a0P)(re,{environmentInjector:this._environmentInjector})))}}return x=U,(0,p.A)(U,"\u0275fac",function(re){return new(re||x)}),(0,p.A)(U,"\u0275prov",u.jDH({token:x,factory:x.\u0275fac,providedIn:"root"})),U})()},177:(le,E,d)=>{"use strict";d.d(E,{AJ:()=>Ot,B3:()=>Nn,Jj:()=>oi,MD:()=>Be,N0:()=>is,QT:()=>x,Sm:()=>Ce,Sq:()=>Qi,T3:()=>Gn,UE:()=>st,VF:()=>Q,Vw:()=>ue,Vy:()=>jt,WM:()=>Ts,Xr:()=>nr,YU:()=>ir,ZD:()=>U,_b:()=>Xt,aZ:()=>_,fw:()=>ce,hb:()=>se,hj:()=>X,kt:()=>ea,lG:()=>h,qQ:()=>be}),d(467);var u=d(1660),o=d(3953),v=d(1413);let O=null;function x(){return O}function U(W){null!=O||(O=W)}class Q{}const be=new o.nKC("");let ue=(()=>{var W;class ee{historyGo(q){throw new Error("")}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:()=>(0,o.WQX)(ne),providedIn:"platform"})),ee})();const X=new o.nKC("");let ne=(()=>{var W;class ee extends ue{constructor(){super(),(0,u.A)(this,"_location",void 0),(0,u.A)(this,"_history",void 0),(0,u.A)(this,"_doc",(0,o.WQX)(be)),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return x().getBaseHref(this._doc)}onPopState(q){const Re=x().getGlobalEventTarget(this._doc,"window");return Re.addEventListener("popstate",q,!1),()=>Re.removeEventListener("popstate",q)}onHashChange(q){const Re=x().getGlobalEventTarget(this._doc,"window");return Re.addEventListener("hashchange",q,!1),()=>Re.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,Re,it){this._history.pushState(q,Re,it)}replaceState(q,Re,it){this._history.replaceState(q,Re,it)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:()=>new W,providedIn:"platform"})),ee})();function te(W,ee){if(0==W.length)return ee;if(0==ee.length)return W;let Je=0;return W.endsWith("/")&&Je++,ee.startsWith("/")&&Je++,2==Je?W+ee.substring(1):1==Je?W+ee:W+"/"+ee}function $(W){const ee=W.match(/#|\?|$/),Je=ee&&ee.index||W.length;return W.slice(0,Je-("/"===W[Je-1]?1:0))+W.slice(Je)}function J(W){return W&&"?"!==W[0]?"?"+W:W}let se=(()=>{var W;class ee{historyGo(q){throw new Error("")}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:()=>(0,o.WQX)(Ce),providedIn:"root"})),ee})();const De=new o.nKC("");let Ce=(()=>{var W;class ee extends se{constructor(q,Re){var it,an,Sn;super(),(0,u.A)(this,"_platformLocation",void 0),(0,u.A)(this,"_baseHref",void 0),(0,u.A)(this,"_removeListenerFns",[]),this._platformLocation=q,this._baseHref=null!==(it=null!==(an=null!=Re?Re:this._platformLocation.getBaseHrefFromDOM())&&void 0!==an?an:null===(Sn=(0,o.WQX)(be).location)||void 0===Sn?void 0:Sn.origin)&&void 0!==it?it:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.on
1HashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return te(this._baseHref,q)}path(q=!1){const Re=this._platformLocation.pathname+J(this._platformLocation.search),it=this._platformLocation.hash;return it&&q?"".concat(Re).concat(it):Re}pushState(q,Re,it,an){const Sn=this.prepareExternalUrl(it+J(an));this._platformLocation.pushState(q,Re,Sn)}replaceState(q,Re,it,an){const Sn=this.prepareExternalUrl(it+J(an));this._platformLocation.replaceState(q,Re,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){var Re,it;null===(Re=(it=this._platformLocation).historyGo)||void 0===Re||Re.call(it,q)}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.KVO(ue),o.KVO(De,8))}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})),ee})(),ce=(()=>{var W;class ee extends se{constructor(q,Re){super(),(0,u.A)(this,"_platformLocation",void 0),(0,u.A)(this,"_baseHref",""),(0,u.A)(this,"_removeListenerFns",[]),this._platformLocation=q,null!=Re&&(this._baseHref=Re)}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){var Re;const it=null!==(Re=this._platformLocation.hash)&&void 0!==Re?Re:"#";return it.length>0?it.substring(1):it}prepareExternalUrl(q){const Re=te(this._baseHref,q);return Re.length>0?"#"+Re:Re}pushState(q,Re,it,an){let Sn=this.prepareExternalUrl(it+J(an));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.pushState(q,Re,Sn)}replaceState(q,Re,it,an){let Sn=this.prepareExternalUrl(it+J(an));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.replaceState(q,Re,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){var Re,it;null===(Re=(it=this._platformLocation).historyGo)||void 0===Re||Re.call(it,q)}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.KVO(ue),o.KVO(De,8))}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:W.\u0275fac})),ee})(),_=(()=>{var W;class ee{constructor(q){(0,u.A)(this,"_subject",new v.B),(0,u.A)(this,"_basePath",void 0),(0,u.A)(this,"_locationStrategy",void 0),(0,u.A)(this,"_urlChangeListeners",[]),(0,u.A)(this,"_urlChangeSubscription",null),this._locationStrategy=q;const Re=this._locationStrategy.getBaseHref();this._basePath=function z(W){if(new RegExp("^(https?:)?//").test(W)){const[,Je]=W.split(/\/\/[^\/]+/);return Je}return W}($(B(Re))),this._locationStrategy.onPopState(it=>{this._subject.next({url:this.path(!0),pop:!0,state:it.state,type:it.type})})}ngOnDestroy(){var q;null===(q=this._urlChangeSubscription)||void 0===q||q.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,Re=""){return this.path()==this.normalize(q+J(Re))}normalize(q){return ee.stripTrailingSlash(function w(W,ee){if(!W||!ee.startsWith(W))return ee;const Je=ee.substring(W.length);return""===Je||["/",";","?","#"].includes(Je[0])?Je:ee}(this._basePath,B(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,Re="",it=null){this._locationStrategy.pushState(it,"",q,Re),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+J(Re)),it)}replaceState(q,Re="",it=null){this._locationStrategy.replaceState(it,"",q,Re),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+J(Re)),it)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){var Re,it;null===(Re=(it=this._locationStrategy).historyGo)||void 0===Re||Re.call(it,q)}onUrlChange(q){var Re;return this._urlChangeListeners.push(q),null!==(Re=this._urlChangeSubscription)&&void 0!==Re||(this._urlChangeSubscription=this.subscribe(it=>{this._notifyUrlChangeListeners(it.url,it.state)})),()=>{const it=this._urlChangeListeners.indexOf(q);var an;this._urlChangeListeners.splice(it,1),0===this._urlChangeListeners.length&&(null===(an=this._urlChangeSubscription)||void 0===an||an.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",Re){this._urlChangeListeners.forEac
1h(it=>it(q,Re))}subscribe(q,Re,it){return this._subject.subscribe({next:q,error:null!=Re?Re:void 0,complete:null!=it?it:void 0})}}return W=ee,(0,u.A)(ee,"normalizeQueryParams",J),(0,u.A)(ee,"joinWithSlash",te),(0,u.A)(ee,"stripTrailingSlash",$),(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.KVO(se))}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:()=>function R(){return new _((0,o.KVO)(se))}(),providedIn:"root"})),ee})();function B(W){return W.replace(/\/index.html$/,"")}function Xt(W,ee){ee=encodeURIComponent(ee);for(const Je of W.split(";")){const q=Je.indexOf("="),[Re,it]=-1==q?[Je,""]:[Je.slice(0,q),Je.slice(q+1)];if(Re.trim()===ee)return decodeURIComponent(it)}return null}const Cn=/\s+/,un=[];let ir=(()=>{var W;class ee{constructor(q,Re){(0,u.A)(this,"_ngEl",void 0),(0,u.A)(this,"_renderer",void 0),(0,u.A)(this,"initialClasses",un),(0,u.A)(this,"rawClass",void 0),(0,u.A)(this,"stateMap",new Map),this._ngEl=q,this._renderer=Re}set klass(q){this.initialClasses=null!=q?q.trim().split(Cn):un}set ngClass(q){this.rawClass="string"==typeof q?q.trim().split(Cn):q}ngDoCheck(){for(const Re of this.initialClasses)this._updateState(Re,!0);const q=this.rawClass;if(Array.isArray(q)||q instanceof Set)for(const Re of q)this._updateState(Re,!0);else if(null!=q)for(const Re of Object.keys(q))this._updateState(Re,!!q[Re]);this._applyStateDiff()}_updateState(q,Re){const it=this.stateMap.get(q);void 0!==it?(it.enabled!==Re&&(it.changed=!0,it.enabled=Re),it.touched=!0):this.stateMap.set(q,{enabled:Re,changed:!0,touched:!0})}_applyStateDiff(){for(const q of this.stateMap){const Re=q[0],it=q[1];it.changed?(this._toggleClass(Re,it.enabled),it.changed=!1):it.touched||(it.enabled&&this._toggleClass(Re,!1),this.stateMap.delete(Re)),it.touched=!1}}_toggleClass(q,Re){(q=q.trim()).length>0&&q.split(Cn).forEach(it=>{Re?this._renderer.addClass(this._ngEl.nativeElement,it):this._renderer.removeClass(this._ngEl.nativeElement,it)})}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.rXU(o.aKT),o.rXU(o.sFG))}),(0,u.A)(ee,"\u0275dir",o.FsC({type:W,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})),ee})();class co{constructor(ee,Je,q,Re){(0,u.A)(this,"$implicit",void 0),(0,u.A)(this,"ngForOf",void 0),(0,u.A)(this,"index",void 0),(0,u.A)(this,"count",void 0),this.$implicit=ee,this.ngForOf=Je,this.index=q,this.count=Re}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 Qi=(()=>{var W;class ee{set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}constructor(q,Re,it){(0,u.A)(this,"_viewContainer",void 0),(0,u.A)(this,"_template",void 0),(0,u.A)(this,"_differs",void 0),(0,u.A)(this,"_ngForOf",null),(0,u.A)(this,"_ngForOfDirty",!0),(0,u.A)(this,"_differ",null),(0,u.A)(this,"_trackByFn",void 0),this._viewContainer=q,this._template=Re,this._differs=it}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 Re=this._viewContainer;q.forEachOperation((it,an,Sn)=>{if(null==it.previousIndex)Re.createEmbeddedView(this._template,new co(it.item,this._ngForOf,-1,-1),null===Sn?void 0:Sn);else if(null==Sn)Re.remove(null===an?void 0:an);else if(null!==an){const rr=Re.get(an);Re.move(rr,Sn),Dr(rr,it)}});for(let it=0,an=Re.length;it<an;it++){const rr=Re.get(it).context;rr.index=it,rr.count=an,rr.ngForOf=this._ngForOf}q.forEachIdentityChange(it=>{Dr(Re.get(it.currentIndex),it)})}static ngTemplateContextGuard(q,Re){return!0}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.rXU(o.c1b),o.rXU(o.C4Q),o.rXU(o._q3))}),(0,u.A)(ee,"\u0275dir",o.FsC({type:W,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})),ee})();function Dr(W,ee){W.context.$implicit=ee.item}let Nn=(()=>{var W;class ee{constructor(q,Re,it){(0,u.A)(this,"_ngEl",void 0),(0,u.A)(this,"_differs",void 0),(0,u.A)(this,"_renderer",void 0),(0,u.A)(this,"_ngStyle",null),(0,u.A)(this,"_differ",null),this._ngEl=q,this._differs=Re,this._renderer=it}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,Re){const[it,an]=q.split("."),Sn=-1===it.indexOf("-")?void 0:o.czy.DashCase;null!=Re?this._renderer.setStyle(this._ngEl.nativeElement,it,an?"".concat(Re).concat(an):Re,Sn):this._renderer.removeStyle(this._ngEl.nativeElement,it,Sn)}_applyChanges(q){q.forEachRemovedItem(Re=>this._setStyle(Re.key,null)),q.forEachAddedItem(Re=>this._setStyle(Re.key,Re.currentValue)),q.forEachChangedItem(Re=>this._setStyle(Re.key,Re.currentValue))}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.rXU(o.aKT),o.rXU(o.MKu),o.rXU(o.sFG))}),(0,u.A)(ee,"\u0275dir",o.FsC({type:W,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}
1)),ee})(),Gn=(()=>{var W;class ee{constructor(q){(0,u.A)(this,"_viewContainerRef",void 0),(0,u.A)(this,"_viewRef",null),(0,u.A)(this,"ngTemplateOutletContext",null),(0,u.A)(this,"ngTemplateOutlet",null),(0,u.A)(this,"ngTemplateOutletInjector",null),this._viewContainerRef=q}ngOnChanges(q){if(this._shouldRecreateView(q)){var Re;const it=this._viewContainerRef;if(this._viewRef&&it.remove(it.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const an=this._createContextForwardProxy();this._viewRef=it.createEmbeddedView(this.ngTemplateOutlet,an,{injector:null!==(Re=this.ngTemplateOutletInjector)&&void 0!==Re?Re:void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,Re,it)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,Re,it),get:(q,Re,it)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,Re,it)}})}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.rXU(o.c1b))}),(0,u.A)(ee,"\u0275dir",o.FsC({type:W,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[o.OA$]})),ee})();class or{createSubscription(ee,Je){return(0,o.O8t)(()=>ee.subscribe({next:Je,error:q=>{throw q}}))}dispose(ee){(0,o.O8t)(()=>ee.unsubscribe())}}class ar{createSubscription(ee,Je){return ee.then(Je,q=>{throw q})}dispose(ee){}}const Mi=new ar,si=new or;let oi=(()=>{var W;class ee{constructor(q){(0,u.A)(this,"_ref",void 0),(0,u.A)(this,"_latestValue",null),(0,u.A)(this,"markForCheckOnValueUpdate",!0),(0,u.A)(this,"_subscription",null),(0,u.A)(this,"_obj",null),(0,u.A)(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,Re=>this._updateLatestValue(q,Re))}_selectStrategy(q){if((0,o.jNT)(q))return Mi;if((0,o.zjR)(q))return si;throw function _r(W,ee){return new o.wOt(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(q,Re){var it;q===this._obj&&(this._latestValue=Re,this.markForCheckOnValueUpdate)&&(null===(it=this._ref)||void 0===it||it.markForCheck())}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.rXU(o.gRc,16))}),(0,u.A)(ee,"\u0275pipe",o.EJ8({name:"async",type:W,pure:!1})),ee})(),h=(()=>{var W;class ee{constructor(q){(0,u.A)(this,"differs",void 0),(0,u.A)(this,"differ",void 0),(0,u.A)(this,"keyValues",[]),(0,u.A)(this,"compareFn",S),this.differs=q}transform(q,Re=S){var it;if(!q||!(q instanceof Map)&&"object"!=typeof q)return null;null!==(it=this.differ)&&void 0!==it||(this.differ=this.differs.find(q).create());const an=this.differ.diff(q),Sn=Re!==this.compareFn;return an&&(this.keyValues=[],an.forEachItem(rr=>{this.keyValues.push(function Li(W,ee){return{key:W,value:ee}}(rr.key,rr.currentValue))})),(an||Sn)&&(Re&&this.keyValues.sort(Re),this.compareFn=Re),this.keyValues}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)(o.rXU(o.MKu,16))}),(0,u.A)(ee,"\u0275pipe",o.EJ8({name:"keyvalue",type:W,pure:!1})),ee})();function S(W,ee){const Je=W.key,q=ee.key;if(Je===q)return 0;if(void 0===Je)return 1;if(void 0===q)return-1;if(null===Je)return 1;if(null===q)return-1;if("string"==typeof Je&&"string"==typeof q)return Je<q?-1:1;if("number"==typeof Je&&"number"==typeof q)return Je-q;if("boolean"==typeof Je&&"boolean"==typeof q)return Je<q?-1:1;const Re=String(Je),it=String(q);return Re==it?0:Re<it?-1:1}let Be=(()=>{var W;class ee{}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)}),(0,u.A)(ee,"\u0275mod",o.$C({type:W})),(0,u.A)(ee,"\u0275inj",o.G2t({})),ee})();const Ot="browser",At="server";function st(W){return W===Ot}function jt(W){return W===At}let nr=(()=>{class ee{}return(0,u.A)(ee,"\u0275prov",(0,o.jDH)({token:ee,providedIn:"root",factory:()=>new Xr((0,o.WQX)(be),window)})),ee})();class Xr{constructor(ee,Je){(0,u.A)(this,"document",void 0),(0,u.A)(this,"window",void 0),(0,u.A)(this,"offset",()=>[0,0]),this.document=ee,this.window=Je}setOffset(ee){this.offset=Array.isArray(ee)?()=>ee:ee}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(ee){this.window.scrollTo(ee[0],ee[1])}scrollToAnchor(ee){const Je=function Lr(W,ee){const Je=W.getElementById(ee)||W.getElementsByName(ee)[0];if(Je)return Je;if("function"==typeof W.createTreeWalker&&W.body&&"function"==typeof W.body.attachShadow){const q=W.createTreeWalker(W.body,NodeFilter.SHOW_ELEMENT);let Re=q.currentNode;for(;Re;){const it=Re.shadowRoot;if(it){const an=it.getElementById(ee)||it.querySelector('[name="'.concat(ee,'"]'));if(an)return an}Re=q.nextNode()}}return null}(this.document,ee);Je&&(this.scrollToElement(Je),Je.focus())}setHistoryScrollRestoration(ee){this.window.history.scrollRestoration=ee}scrollToElement(ee){const Je=ee.getBoundingClientRect(),q=Je.left+this.window.pageXOffset,Re=Je.top+this.window.pageYOffset,it=this.offset();this.window.scrollTo(q-it[0],Re-it[1])}}class is{}const os=W=>W.src,Ts=new o.nKC("",{providedIn:"root",factory:()=>os}),Tn=new o.nKC("",{providedIn:"root",factory:()=>new Set});let Xn=(()=>{var W;class ee{constructor(){(0,u.A)(this,"preloadedImages",(0,o.WQX)(Tn)),(0,u.A)(this,"document",(0,o.WQX)(be))}createPreloadLinkTag(q,Re,it,an){if(this.preloadedImages.has(Re))return;this.preloadedImages.add(Re);const Sn=q.createElement("link");q.setAttribute(Sn,"as","image"),q.setAttribute(Sn,"href",Re),q.setAttribute(Sn,"rel","preload"),q.setAttribute(Sn,"fetchpriority","high"),an&&q.setAttribute(Sn,"imageSizes",an),it&&q.setAttribute(Sn,"imageSrcset",it),q.appendChild(this.document.head,Sn)}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)}),(0,u.A)(ee,"\u0275prov",o.jDH({token:W,factory:W.\u0275fac,providedIn:"root"})),ee})();const Pr=/^((\s*\d+w\s*(,|$)){1,})$/,Zn=[1,2];let ea=(()=>{var W;class ee{constructor(){(0,u.A)(this,"imageLoader",(0,o.WQX)(Ts)),(0,u.A)(this,"config",function $s(W){let ee={};return W.breakpoints&&(ee.breakpoints=W.breakpoints.sort((Je,q)=>
1Je-q)),Object.assign({},o.PUk,W,ee)}((0,o.WQX)(o.GGh))),(0,u.A)(this,"renderer",(0,o.WQX)(o.sFG)),(0,u.A)(this,"imgElement",(0,o.WQX)(o.aKT).nativeElement),(0,u.A)(this,"injector",(0,o.WQX)(o.zZn)),(0,u.A)(this,"isServer",jt((0,o.WQX)(o.Agw))),(0,u.A)(this,"preloadLinkCreator",(0,o.WQX)(Xn)),(0,u.A)(this,"lcpObserver",void 0),(0,u.A)(this,"_renderedSrc",null),(0,u.A)(this,"ngSrc",void 0),(0,u.A)(this,"ngSrcset",void 0),(0,u.A)(this,"sizes",void 0),(0,u.A)(this,"width",void 0),(0,u.A)(this,"height",void 0),(0,u.A)(this,"loading",void 0),(0,u.A)(this,"priority",!1),(0,u.A)(this,"loaderParams",void 0),(0,u.A)(this,"disableOptimizedSrcset",!1),(0,u.A)(this,"fill",!1),(0,u.A)(this,"placeholder",void 0),(0,u.A)(this,"placeholderConfig",void 0),(0,u.A)(this,"src",void 0),(0,u.A)(this,"srcset",void 0)}ngOnInit(){(0,o.ngT)("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||(this.sizes="100vw"):(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");const q=this.updateSrcAndSrcset();this.sizes?"lazy"===this.getLoadingBehavior()?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&Pr.test(this.ngSrcset)&&"lazy"===this.getLoadingBehavior()&&this.setHostAttribute("sizes","auto, 100vw"),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),q,this.sizes)}ngOnChanges(q){q.ngSrc&&!q.ngSrc.isFirstChange()&&this.updateSrcAndSrcset(!0)}callImageLoader(q){let Re=q;return this.loaderParams&&(Re.loaderParams=this.loaderParams),this.imageLoader(Re)}getLoadingBehavior(){return this.priority||void 0===this.loading?this.priority?"eager":"lazy":this.loading}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){return this._renderedSrc||(this._renderedSrc=this.callImageLoader({src:this.ngSrc})),this._renderedSrc}getRewrittenSrcset(){const q=Pr.test(this.ngSrcset);return this.ngSrcset.split(",").filter(it=>""!==it).map(it=>{it=it.trim();const an=q?parseFloat(it):parseFloat(it)*this.width;return"".concat(this.callImageLoader({src:this.ngSrc,width:an})," ").concat(it)}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){var q;const{breakpoints:Re}=this.config;let it=Re;return"100vw"===(null===(q=this.sizes)||void 0===q?void 0:q.trim())&&(it=Re.filter(Sn=>Sn>=640)),it.map(Sn=>"".concat(this.callImageLoader({src:this.ngSrc,width:Sn})," ").concat(Sn,"w")).join(", ")}updateSrcAndSrcset(q=!1){q&&(this._renderedSrc=null);const Re=this.getRewrittenSrc();let it;return this.setHostAttribute("src",Re),this.ngSrcset?it=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(it=this.getAutomaticSrcset()),it&&this.setHostAttribute("srcset",it),it}getFixedSrcset(){return Zn.map(Re=>"".concat(this.callImageLoader({src:this.ngSrc,width:this.width*Re})," ").concat(Re,"x")).join(", ")}shouldGenerateAutomaticSrcset(){let q=!1;return this.sizes||(q=this.width>1920||this.height>1080),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==os&&!q}generatePlaceholder(q){const{placeholderResolution:Re}=this.config;return!0===q?"url(".concat(this.callImageLoader({src:this.ngSrc,width:Re,isPlaceholder:!0}),")"):"string"==typeof q?"url(".concat(q,")"):null}shouldBlurPlaceholder(q){return!q||!q.hasOwnProperty("blur")||!!q.blur}removePlaceholderOnLoad(q){const Re=()=>{const Sn=this.injector.get(o.gRc);it(),an(),this.placeholder=!1,Sn.markForCheck()},it=this.renderer.listen(q,"load",Re),an=this.renderer.listen(q,"error",Re);!function na(W,ee){W.complete&&W.naturalWidth&&ee()}(q,Re)}setHostAttribute(q,Re){this.renderer.setAttribute(this.imgElement,q,Re)}}return W=ee,(0,u.A)(ee,"\u0275fac",function(q){return new(q||W)}),(0,u.A)(ee,"\u0275dir",o.FsC({type:W,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(q,Re){2&q&&o.xc7("position",Re.fill?"absolute":null)("width",Re.fill?"100%":null)("height",Re.fill?"100%":null)("inset",Re.fill?"0":null)("background-size",Re.placeholder?"cover":null)("background-position",Re.placeholder?"50% 50%":null)("background-repeat",Re.placeholder?"no-repeat":null)("background-image",Re.placeholder?Re.generatePlaceholder(Re.placeholder):null)("filter",Re.placeholder&&Re.shouldBlurPlaceholder(Re.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",iu],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",o.Udg],height:[2,"height","height",o.Udg],loading:"loading",priority:[2,"priority","priority",o.L39],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",o.L39],fill:[2,"fill","fill",o.L39],placeholder:[2,"placeholder","placeholder",qa],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[o.GFd,o.OA$]})),ee})();function iu(W){return"string"==typeof W?W:(0,o.rcV)(W)}function qa(W){return"string"==typeof W&&"true"!==W&&"false"!==W&&""!==W?W:(0,o.L39)(W)}},1626:(le,E,d)=>{"use strict";d.d(E,{$R:()=>fr,$m:()=>$r,Qq:()=>et});
1var p=d(2305),u=d(9379),v=(d(467),d(1660)),O=d(3953),x=d(7673),U=d(1985),Q=d(9724),re=d(274),be=d(5964),ue=d(6354),X=d(980),ne=d(5558),te=d(8141),$=d(177);const J=["isCacheActive"];class se{}class De{}class Ce{constructor(ht){(0,v.A)(this,"headers",void 0),(0,v.A)(this,"normalizedNames",new Map),(0,v.A)(this,"lazyInit",void 0),(0,v.A)(this,"lazyUpdate",null),ht?"string"==typeof ht?this.lazyInit=()=>{this.headers=new Map,ht.split("\n").forEach(Jt=>{const Bt=Jt.indexOf(":");if(Bt>0){const Mn=Jt.slice(0,Bt),Nn=Jt.slice(Bt+1).trim();this.addHeaderEntry(Mn,Nn)}})}:typeof Headers<"u"&&ht instanceof Headers?(this.headers=new Map,ht.forEach((Jt,Bt)=>{this.addHeaderEntry(Bt,Jt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ht).forEach(([Jt,Bt])=>{this.setHeaderEntries(Jt,Bt)})}:this.headers=new Map}has(ht){return this.init(),this.headers.has(ht.toLowerCase())}get(ht){this.init();const Jt=this.headers.get(ht.toLowerCase());return Jt&&Jt.length>0?Jt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ht){return this.init(),this.headers.get(ht.toLowerCase())||null}append(ht,Jt){return this.clone({name:ht,value:Jt,op:"a"})}set(ht,Jt){return this.clone({name:ht,value:Jt,op:"s"})}delete(ht,Jt){return this.clone({name:ht,value:Jt,op:"d"})}maybeSetNormalizedName(ht,Jt){this.normalizedNames.has(Jt)||this.normalizedNames.set(Jt,ht)}init(){this.lazyInit&&(this.lazyInit instanceof Ce?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ht=>this.applyUpdate(ht)),this.lazyUpdate=null))}copyFrom(ht){ht.init(),Array.from(ht.headers.keys()).forEach(Jt=>{this.headers.set(Jt,ht.headers.get(Jt)),this.normalizedNames.set(Jt,ht.normalizedNames.get(Jt))})}clone(ht){const Jt=new Ce;return Jt.lazyInit=this.lazyInit&&this.lazyInit instanceof Ce?this.lazyInit:this,Jt.lazyUpdate=(this.lazyUpdate||[]).concat([ht]),Jt}applyUpdate(ht){const Jt=ht.name.toLowerCase();switch(ht.op){case"a":case"s":let Bt=ht.value;if("string"==typeof Bt&&(Bt=[Bt]),0===Bt.length)return;this.maybeSetNormalizedName(ht.name,Jt);const Mn=("a"===ht.op?this.headers.get(Jt):void 0)||[];Mn.push(...Bt),this.headers.set(Jt,Mn);break;case"d":const Nn=ht.value;if(Nn){let Gn=this.headers.get(Jt);if(!Gn)return;Gn=Gn.filter(Wn=>-1===Nn.indexOf(Wn)),0===Gn.length?(this.headers.delete(Jt),this.normalizedNames.delete(Jt)):this.headers.set(Jt,Gn)}else this.headers.delete(Jt),this.normalizedNames.delete(Jt)}}addHeaderEntry(ht,Jt){const Bt=ht.toLowerCase();this.maybeSetNormalizedName(ht,Bt),this.headers.has(Bt)?this.headers.get(Bt).push(Jt):this.headers.set(Bt,[Jt])}setHeaderEntries(ht,Jt){const Bt=(Array.isArray(Jt)?Jt:[Jt]).map(Nn=>Nn.toString()),Mn=ht.toLowerCase();this.headers.set(Mn,Bt),this.maybeSetNormalizedName(ht,Mn)}forEach(ht){this.init(),Array.from(this.normalizedNames.keys()).forEach(Jt=>ht(this.normalizedNames.get(Jt),this.headers.get(Jt)))}}class _{encodeKey(ht){return z(ht)}encodeValue(ht){return z(ht)}decodeKey(ht){return decodeURIComponent(ht)}decodeValue(ht){return decodeURIComponent(ht)}}const w=/%(\d[a-f0-9])/gi,B={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function z(Ge){return encodeURIComponent(Ge).replace(w,(ht,Jt)=>{var Bt;return null!==(Bt=B[Jt])&&void 0!==Bt?Bt:ht})}function oe(Ge){return"".concat(Ge)}class V{constructor(ht={}){if((0,v.A)(this,"map",void 0),(0,v.A)(this,"encoder",void 0),(0,v.A)(this,"updates",null),(0,v.A)(this,"cloneFrom",null),this.encoder=ht.encoder||new _,ht.fromString){if(ht.fromObject)throw new O.wOt(2805,!1);this.map=function R(Ge,ht){const Jt=new Map;return Ge.length>0&&Ge.replace(/^\?/,"").split("&").forEach(Mn=>{const Nn=Mn.indexOf("="),[Gn,Wn]=-1==Nn?[ht.decodeKey(Mn),""]:[ht.decodeKey(Mn.slice(0,Nn)),ht.decodeValue(Mn.slice(Nn+1))],_r=Jt.get(Gn)||[];_r.push(Wn),Jt.set(Gn,_r)}),Jt}(ht.fromString,this.encoder)}else ht.fromObject?(this.map=new Map,Object.keys(ht.fromObject).forEach(Jt=>{const Bt=ht.fromObject[Jt],Mn=Array.isArray(Bt)?Bt.map(oe):[oe(Bt)];this.map.set(Jt,Mn)})):this.map=null}has(ht){return this.init(),this.map.has(ht)}get(ht){this.init();const Jt=this.map.get(ht);return Jt?Jt[0]:null}getAll(ht){return this.init(),this.map.get(ht)||null}
1keys(){return this.init(),Array.from(this.map.keys())}append(ht,Jt){return this.clone({param:ht,value:Jt,op:"a"})}appendAll(ht){const Jt=[];return Object.keys(ht).forEach(Bt=>{const Mn=ht[Bt];Array.isArray(Mn)?Mn.forEach(Nn=>{Jt.push({param:Bt,value:Nn,op:"a"})}):Jt.push({param:Bt,value:Mn,op:"a"})}),this.clone(Jt)}set(ht,Jt){return this.clone({param:ht,value:Jt,op:"s"})}delete(ht,Jt){return this.clone({param:ht,value:Jt,op:"d"})}toString(){return this.init(),this.keys().map(ht=>{const Jt=this.encoder.encodeKey(ht);return this.map.get(ht).map(Bt=>Jt+"="+this.encoder.encodeValue(Bt)).join("&")}).filter(ht=>""!==ht).join("&")}clone(ht){const Jt=new V({encoder:this.encoder});return Jt.cloneFrom=this.cloneFrom||this,Jt.updates=(this.updates||[]).concat(ht),Jt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ht=>this.map.set(ht,this.cloneFrom.map.get(ht))),this.updates.forEach(ht=>{switch(ht.op){case"a":case"s":const Jt=("a"===ht.op?this.map.get(ht.param):void 0)||[];Jt.push(oe(ht.value)),this.map.set(ht.param,Jt);break;case"d":if(void 0===ht.value){this.map.delete(ht.param);break}{let Bt=this.map.get(ht.param)||[];const Mn=Bt.indexOf(oe(ht.value));-1!==Mn&&Bt.splice(Mn,1),Bt.length>0?this.map.set(ht.param,Bt):this.map.delete(ht.param)}}}),this.cloneFrom=this.updates=null)}}class K{constructor(){(0,v.A)(this,"map",new Map)}set(ht,Jt){return this.map.set(ht,Jt),this}get(ht){return this.map.has(ht)||this.map.set(ht,ht.defaultValue()),this.map.get(ht)}delete(ht){return this.map.delete(ht),this}has(ht){return this.map.has(ht)}keys(){return this.map.keys()}}function ve(Ge){return typeof ArrayBuffer<"u"&&Ge instanceof ArrayBuffer}function Fe(Ge){return typeof Blob<"u"&&Ge instanceof Blob}function We(Ge){return typeof FormData<"u"&&Ge instanceof FormData}const bt="Content-Type",Ke="X-Request-URL",Me="text/plain",tt="application/json",He="".concat(tt,", ").concat(Me,", */*");class ot{constructor(ht,Jt,Bt,Mn){var Nn,Gn;let Wn;if((0,v.A)(this,"url",void 0),(0,v.A)(this,"body",null),(0,v.A)(this,"headers",void 0),(0,v.A)(this,"context",void 0),(0,v.A)(this,"reportProgress",!1),(0,v.A)(this,"withCredentials",!1),(0,v.A)(this,"responseType","json"),(0,v.A)(this,"method",void 0),(0,v.A)(this,"params",void 0),(0,v.A)(this,"urlWithParams",void 0),(0,v.A)(this,"transferCache",void 0),this.url=Jt,this.method=ht.toUpperCase(),function ge(Ge){switch(Ge){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Mn?(this.body=void 0!==Bt?Bt:null,Wn=Mn):Wn=Bt,Wn&&(this.reportProgress=!!Wn.reportProgress,this.withCredentials=!!Wn.withCredentials,Wn.responseType&&(this.responseType=Wn.responseType),Wn.headers&&(this.headers=Wn.headers),Wn.context&&(this.context=Wn.context),Wn.params&&(this.params=Wn.params),this.transferCache=Wn.transferCache),null!==(Nn=this.headers)&&void 0!==Nn||(this.headers=new Ce),null!==(Gn=this.context)&&void 0!==Gn||(this.context=new K),this.params){const _r=this.params.toString();if(0===_r.length)this.urlWithParams=Jt;else{const or=Jt.indexOf("?");this.urlWithParams=Jt+(-1===or?"?":or<Jt.length-1?"&":"")+_r}}else this.params=new V,this.urlWithParams=Jt}serializeBody(){return null===this.body?null:"string"==typeof this.body||ve(this.body)||Fe(this.body)||We(this.body)||function ze(Ge){return typeof URLSearchParams<"u"&&Ge instanceof URLSearchParams}(this.body)?this.body:this.body instanceof V?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||We(this.body)?null:Fe(this.body)?this.body.type||null:ve(this.body)?null:"string"==typeof this.body?Me:this.body instanceof V?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?tt:null}clone(ht={}){var Jt,Bt,Mn,Nn;const Gn=ht.method||this.method,Wn=ht.url||this.url,_r=ht.responseType||this.responseType,or=null!==(Jt=ht.transferCache)&&void 0!==Jt?Jt:this.transferCache,ar=void 0!==ht.body?ht.body:this.body,Mi=null!==(Bt=ht.withCredentials)&&void 0!==Bt?Bt:this.withCredentials,si=null!==(Mn=ht.reportProgress)&&void 0!==Mn?Mn:this.reportProgress;let oi=ht.headers||this.headers,Gr=ht.params||this.params;const nt=null!==(Nn=ht.context)&&void 0!==Nn?Nn:this.context;return void 0!==ht.setHeaders&&(oi=Object.keys(ht.setHeaders).reduce((Nt,qt)=>Nt.set(qt,ht.setHeaders[qt]),oi)),ht.setParams&&(Gr=Object.keys(ht.setParams).reduce((Nt,qt)=>Nt.set(qt,ht.setParams[qt]),Gr)),new ot(Gn,Wn,ar,{params:Gr,headers:oi,context:nt,reportProgress:si,responseType:_r,withCredentials:Mi,transferCache:or})}}
1var je=function(Ge){return Ge[Ge.Sent=0]="Sent",Ge[Ge.UploadProgress=1]="UploadProgress",Ge[Ge.ResponseHeader=2]="ResponseHeader",Ge[Ge.DownloadProgress=3]="DownloadProgress",Ge[Ge.Response=4]="Response",Ge[Ge.User=5]="User",Ge}(je||{});class fe{constructor(ht,Jt=200,Bt="OK"){(0,v.A)(this,"headers",void 0),(0,v.A)(this,"status",void 0),(0,v.A)(this,"statusText",void 0),(0,v.A)(this,"url",void 0),(0,v.A)(this,"ok",void 0),(0,v.A)(this,"type",void 0),this.headers=ht.headers||new Ce,this.status=void 0!==ht.status?ht.status:Jt,this.statusText=ht.statusText||Bt,this.url=ht.url||null,this.ok=this.status>=200&&this.status<300}}class D extends fe{constructor(ht={}){super(ht),(0,v.A)(this,"type",je.ResponseHeader)}clone(ht={}){return new D({headers:ht.headers||this.headers,status:void 0!==ht.status?ht.status:this.status,statusText:ht.statusText||this.statusText,url:ht.url||this.url||void 0})}}class H extends fe{constructor(ht={}){super(ht),(0,v.A)(this,"body",void 0),(0,v.A)(this,"type",je.Response),this.body=void 0!==ht.body?ht.body:null}clone(ht={}){return new H({body:void 0!==ht.body?ht.body:this.body,headers:ht.headers||this.headers,status:void 0!==ht.status?ht.status:this.status,statusText:ht.statusText||this.statusText,url:ht.url||this.url||void 0})}}class Se extends fe{constructor(ht){super(ht,0,"Unknown Error"),(0,v.A)(this,"name","HttpErrorResponse"),(0,v.A)(this,"message",void 0),(0,v.A)(this,"error",void 0),(0,v.A)(this,"ok",!1),this.message=this.status>=200&&this.status<300?"Http failure during parsing for ".concat(ht.url||"(unknown url)"):"Http failure response for ".concat(ht.url||"(unknown url)",": ").concat(ht.status," ").concat(ht.statusText),this.error=ht.error||null}}function ln(Ge,ht){return{body:ht,headers:Ge.headers,context:Ge.context,observe:Ge.observe,params:Ge.params,reportProgress:Ge.reportProgress,responseType:Ge.responseType,withCredentials:Ge.withCredentials,transferCache:Ge.transferCache}}let et=(()=>{var Ge;class ht{constructor(Bt){(0,v.A)(this,"handler",void 0),this.handler=Bt}request(Bt,Mn,Nn={}){let Gn;if(Bt instanceof ot)Gn=Bt;else{let or,ar;or=Nn.headers instanceof Ce?Nn.headers:new Ce(Nn.headers),Nn.params&&(ar=Nn.params instanceof V?Nn.params:new V({fromObject:Nn.params})),Gn=new ot(Bt,Mn,void 0!==Nn.body?Nn.body:null,{headers:or,context:Nn.context,params:ar,reportProgress:Nn.reportProgress,responseType:Nn.responseType||"json",withCredentials:Nn.withCredentials,transferCache:Nn.transferCache})}const Wn=(0,x.of)(Gn).pipe((0,re.H)(or=>this.handler.handle(or)));if(Bt instanceof ot||"events"===Nn.observe)return Wn;const _r=Wn.pipe((0,be.p)(or=>or instanceof H));switch(Nn.observe||"body"){case"body":switch(Gn.responseType){case"arraybuffer":return _r.pipe((0,ue.T)(or=>{if(null!==or.body&&!(or.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return or.body}));case"blob":return _r.pipe((0,ue.T)(or=>{if(null!==or.body&&!(or.body instanceof Blob))throw new Error("Response is not a Blob.");return or.body}));case"text":return _r.pipe((0,ue.T)(or=>{if(null!==or.body&&"string"!=typeof or.body)throw new Error("Response is not a string.");return or.body}));default:return _r.pipe((0,ue.T)(or=>or.body))}case"response":return _r;default:throw new Error("Unreachable: unhandled observe type ".concat(Nn.observe,"}"))}}delete(Bt,Mn={}){return this.request("DELETE",Bt,Mn)}get(Bt,Mn={}){return this.request("GET",Bt,Mn)}head(Bt,Mn={}){return this.request("HEAD",Bt,Mn)}jsonp(Bt,Mn){return this.request("JSONP",Bt,{params:(new V).append(Mn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Bt,Mn={}){return this.request("OPTIONS",Bt,Mn)}patch(Bt,Mn,Nn={}){return this.request("PATCH",Bt,ln(Nn,Mn))}post(Bt,Mn,Nn={}){return this.request("POST",Bt,ln(Nn,Mn))}put(Bt,Mn,Nn={}){return this.request("PUT",Bt,ln(Nn,Mn))}}return Ge=ht,(0,v.A)(ht,"\u0275fac",function(Bt){return new(Bt||Ge)(O.KVO(se))}),(0,v.A)(ht,"\u0275prov",O.jDH({token:Ge,factory:Ge.\u0275fac})),ht})();const Te=new O.nKC("");function Oe(Ge,ht){return ht(Ge)}const en=new O.nKC(""),Dn=new O.nKC(""),Pn=new O.nKC("",{providedIn:"root",factory:()=>!0});let qe=(()=>{var Ge;class ht extends se{constructor(Bt,Mn){super(),(0,v.A)(this,"backend",void 0),(0,v.A)(this,"injector",void 0),(0,v.A)(this,"chain",null),(0,v.A)(this,"pendingTasks",(0,O.WQX)(O.Ua0)),(0,v.A)(this,"contributeToStability",(0,O.WQX)(Pn)),this.backend=Bt,this.injector=Mn}handle(Bt){if(null===this.chain){const Mn=Array.from(new Set([...this.injector.get(en),...this.injector.get(Dn,[])]));this.chain=Mn.reduceRight((Nn,Gn)=>function Tt(Ge,ht,Jt){return(Bt,Mn)=>(0,O.N4e)(Jt,()=>ht(Bt,Nn=>Ge(Nn,Mn)))}(Nn,Gn,this.injector),Oe)}if(this.contributeToStability){const Mn=this.pendingTasks.add();return this.chain(Bt,Nn=>this.backend.handle(Nn)).pipe((0,X.j)(()=>this.pendingTasks.remove(Mn)))}return this.chain(Bt,Mn=>this.backend.handle(Mn))}}return Ge=ht,(0,v.A)(ht,"\u0275fac",function(Bt){return new(Bt||Ge)(O.KVO(De),O.KVO(O.uvJ))}),(0,v.A)(ht,"\u0275prov",O.jDH({token:Ge,factory:Ge.\u0275fac})),ht})();const dt=/^\)\]\}',?\n/,Ct=RegExp("^".concat(Ke,":"),"m");let dn=(()=>{var Ge;class ht{constructor(Bt){(0,v.A)(this,"xhrFactory",void 0),this.xhrFactory=Bt}handle(Bt){if("JSONP"===Bt.method)throw new O.wOt(-2800,!1);const Mn=this.xhrFactory;
1return(Mn.\u0275loadImpl?(0,Q.H)(Mn.\u0275loadImpl()):(0,x.of)(null)).pipe((0,ne.n)(()=>new U.c(Gn=>{const Wn=Mn.build();if(Wn.open(Bt.method,Bt.urlWithParams),Bt.withCredentials&&(Wn.withCredentials=!0),Bt.headers.forEach((Nt,qt)=>Wn.setRequestHeader(Nt,qt.join(","))),Bt.headers.has("Accept")||Wn.setRequestHeader("Accept",He),!Bt.headers.has(bt)){const Nt=Bt.detectContentTypeHeader();null!==Nt&&Wn.setRequestHeader(bt,Nt)}if(Bt.responseType){const Nt=Bt.responseType.toLowerCase();Wn.responseType="json"!==Nt?Nt:"text"}const _r=Bt.serializeBody();let or=null;const ar=()=>{if(null!==or)return or;const Nt=Wn.statusText||"OK",qt=new Ce(Wn.getAllResponseHeaders()),kt=function Et(Ge){return"responseURL"in Ge&&Ge.responseURL?Ge.responseURL:Ct.test(Ge.getAllResponseHeaders())?Ge.getResponseHeader(Ke):null}(Wn)||Bt.url;return or=new D({headers:qt,status:Wn.status,statusText:Nt,url:kt}),or},Mi=()=>{let{headers:Nt,status:qt,statusText:kt,url:An}=ar(),Rn=null;204!==qt&&(Rn=typeof Wn.response>"u"?Wn.responseText:Wn.response),0===qt&&(qt=Rn?200:0);let sr=qt>=200&&qt<300;if("json"===Bt.responseType&&"string"==typeof Rn){const Hr=Rn;Rn=Rn.replace(dt,"");try{Rn=""!==Rn?JSON.parse(Rn):null}catch(xr){Rn=Hr,sr&&(sr=!1,Rn={error:xr,text:Rn})}}sr?(Gn.next(new H({body:Rn,headers:Nt,status:qt,statusText:kt,url:An||void 0})),Gn.complete()):Gn.error(new Se({error:Rn,headers:Nt,status:qt,statusText:kt,url:An||void 0}))},si=Nt=>{const{url:qt}=ar(),kt=new Se({error:Nt,status:Wn.status||0,statusText:Wn.statusText||"Unknown Error",url:qt||void 0});Gn.error(kt)};let oi=!1;const Gr=Nt=>{oi||(Gn.next(ar()),oi=!0);let qt={type:je.DownloadProgress,loaded:Nt.loaded};Nt.lengthComputable&&(qt.total=Nt.total),"text"===Bt.responseType&&Wn.responseText&&(qt.partialText=Wn.responseText),Gn.next(qt)},nt=Nt=>{let qt={type:je.UploadProgress,loaded:Nt.loaded};Nt.lengthComputable&&(qt.total=Nt.total),Gn.next(qt)};return Wn.addEventListener("load",Mi),Wn.addEventListener("error",si),Wn.addEventListener("timeout",si),Wn.addEventListener("abort",si),Bt.reportProgress&&(Wn.addEventListener("progress",Gr),null!==_r&&Wn.upload&&Wn.upload.addEventListener("progress",nt)),Wn.send(_r),Gn.next({type:je.Sent}),()=>{Wn.removeEventListener("error",si),Wn.removeEventListener("abort",si),Wn.removeEventListener("load",Mi),Wn.removeEventListener("timeout",si),Bt.reportProgress&&(Wn.removeEventListener("progress",Gr),null!==_r&&Wn.upload&&Wn.upload.removeEventListener("progress",nt)),Wn.readyState!==Wn.DONE&&Wn.abort()}})))}}return Ge=ht,(0,v.A)(ht,"\u0275fac",function(Bt){return new(Bt||Ge)(O.KVO($.N0))}),(0,v.A)(ht,"\u0275prov",O.jDH({token:Ge,factory:Ge.\u0275fac})),ht})();const Bn=new O.nKC(""),Cr=new O.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),mt=new O.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ut{}let _t=(()=>{var Ge;class ht{constructor(Bt,Mn,Nn){(0,v.A)(this,"doc",void 0),(0,v.A)(this,"platform",void 0),(0,v.A)(this,"cookieName",void 0),(0,v.A)(this,"lastCookieString",""),(0,v.A)(this,"lastToken",null),(0,v.A)(this,"parseCount",0),this.doc=Bt,this.platform=Mn,this.cookieName=Nn}getToken(){if("server"===this.platform)return null;const Bt=this.doc.cookie||"";return Bt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,$._b)(Bt,this.cookieName),this.lastCookieString=Bt),this.lastToken}}return Ge=ht,(0,v.A)(ht,"\u0275fac",function(Bt){return new(Bt||Ge)(O.KVO($.qQ),O.KVO(O.Agw),O.KVO(Cr))}),(0,v.A)(ht,"\u0275prov",O.jDH({token:Ge,factory:Ge.\u0275fac})),ht})();function Ft(Ge,ht){const Jt=Ge.url.toLowerCase();if(!(0,O.WQX)(Bn)||"GET"===Ge.method||"HEAD"===Ge.method||Jt.startsWith("http://")||Jt.startsWith("https://"))return ht(Ge);const Bt=(0,O.WQX)(Ut).getToken(),Mn=(0,O.WQX)(mt);return null!=Bt&&!Ge.headers.has(Mn)&&(Ge=Ge.clone({headers:Ge.headers.set(Mn,Bt)})),ht(Ge)}function fr(...Ge){const ht=[et,dn,qe,{provide:se,useExisting:qe},{provide:De,useFactory:()=>{var Jt;return null!==(Jt=(0,O.WQX)(Te,{optional:!0}))&&void 0!==Jt?Jt:(0,O.WQX)(dn)}},{provide:en,useValue:Ft,multi:!0},{provide:Bn,useValue:!0},{provide:Ut,useClass:_t}];for(const Jt of Ge)ht.push(...Jt.\u0275providers);return(0,O.EmA)(ht)}const Ze=new O.nKC(""),Mt="b",pt="h",Xt="s",Cn="st",un="u",ir="rt",vr=new O.nKC(""),Si=["GET","HEAD"];function co(Ge,ht){var Jt;const Bt=(0,O.WQX)(vr),{isCacheActive:Mn}=Bt,Nn=(0,p.A)(Bt,J),{transferCache:Gn,method:Wn}=Ge;if(!Mn||!1===Gn||"POST"===Wn&&!Nn.includePostRequests&&!Gn||"POST"!==Wn&&!Si.includes(Wn)||!Nn.includeRequestsWithAuthHeaders&&function Qi(Ge){return Ge.headers.has("authorization")||Ge.headers.has("proxy-authorization")}(Ge)||!1===(null===(Jt=Nn.filter)||void 0===Jt?void 0:Jt.call(Nn,Ge)))return ht(Ge);const _r=(0,O.WQX)(O.pJN);if((0,O.WQX)(Ze,{optional:!0}))throw new O.wOt(2803,!1);const Mi=function Vi(Ge,ht){const{params:Jt,method:Bt,responseType:Mn}=Ge,Nn=ci(Jt);let Gn=Ge.serializeBody();Gn instanceof URLSearchParams?Gn=ci(Gn):"string"!=typeof Gn&&(Gn="");const _r=function di(Ge){let ht=0;for(const Jt of Ge)ht=Math.imul(31,ht)+Jt.charCodeAt(0)|0;return ht+=2147483648,ht.toString()}([Bt,Mn,ht,Gn,Nn].join("|"));return(0,O.zw6)(_r)}(Ge,Ge.url),si=_r.get(Mi,null);let oi=Nn.includeHeaders;if("object"==typeof Gn&&Gn.includeHeaders&&(oi=Gn.includeHeaders),si){const{[Mt]:Gr,[ir]:nt,[pt]:Nt,[Xt]:qt,[Cn]:kt,[un]:An}=si;let Rn=Gr;switch(nt){case"arraybuffer":Rn=(new TextEncoder).encode(Gr).buffer;break;case"blob":Rn=new Blob([Gr])}let sr=new Ce(Nt);return(0,x.of)(new H({body:Rn,headers:sr,status:qt,statusText:kt,url:An}))}return ht(Ge).pipe((0,te.M)(Gr=>{}))}function ci(Ge){return[...Ge.keys()].sort().map(ht=>"".concat(ht,"=").concat(Ge.getAll(ht))).join("&")}function $r(Ge){return[{provide:vr,useFactory:()=>((0,O.ngT)("NgHttpTransferCache"),(0,u.A)({isCacheActive:!0},Ge))},{provide:Dn,useValue:co,multi:!0,deps:[O.pJN,vr]},{provide:O.iLQ,multi:!0,useFactory:()=>{const ht=(0,O.WQX)(O.o8S),Jt=(0,O.WQX)(vr);return()=>{ht.whenStable().then(()=>{Jt.isCacheActive=!1})}}}]}},3953:(le,E,d)=>{"use strict";d.d(E,{bc$:()=>y_,iLQ:()=>Ap,sZ2:()=>Gl,hnV:()=>ey,Hbi:()=>jL,o8S:()=>ha,BIS:()=>E_,gRc:()=>uD,Ql9:()=>aL,OM3:()=>sf,Ocv:()=>pL,abz:()=>Sa,Z63:()=>_s,aKT:()=>Sc,uvJ:()=>Ri,zcH:()=>Da,bkB:()=>Us,y_5:()=>xs,$GK:()=>W,nKC:()=>xn,zZn:()=>Jr,_q3:()=>zy,MKu:()=>Qy,xe9:()=>Vy,Co$:()=>xC,Vns:()=>Kc,SKi:()=>Hi,Xx1:()=>ia,Agw:()=>Rh,PLl:()=>wh,rOR:()=>Ih,sFG:()=>VM,_9s:()=>S0,czy:()=>Mm,WPN:()=>Uc,kdw:()=>ou,C4Q:()=>sp,NYb:()=>UR,giA:()=>db,pJN:()=>ul,RxE:()=>ZS,c1b:()=>$m,gXe:()=>Zl,mal:()=>Ql,Tzd:()=>$h,Af3:()=>ks,tdH:()=>Vh,L39:()=>Ck,EWP:()=>Sf,a0P:()=>zk,Ol2:()=>j0,w6W:()=>Ew,oH4:()=>oD,QZP:()=>qy,SmG:()=>SL,Rfq:()=>Yr,WQX:()=>Qn,hFB:()=>
1Nu,naY:()=>TL,Hps:()=>Dh,QuC:()=>xa,uuI:()=>HD,EmA:()=>La,zw6:()=>Nh,Udg:()=>bk,CGW:()=>Ch,fpN:()=>BL,phd:()=>jR,HJs:()=>Qk,N4e:()=>If,vPA:()=>Id,O8t:()=>ec,H3F:()=>rb,GGh:()=>am,PUk:()=>sm,H8p:()=>pn,KH2:()=>Cf,Ua0:()=>zs,wOt:()=>zn,WHO:()=>ub,e01:()=>cb,Lf2:()=>zl,lNU:()=>Js,PpM:()=>al,h9k:()=>WE,$MX:()=>Cm,ZF7:()=>Xd,Kcf:()=>eO,e5t:()=>iO,UyX:()=>nO,cWb:()=>tO,osQ:()=>rO,H5H:()=>yy,Zy3:()=>bo,mq5:()=>lT,JZv:()=>Di,LfX:()=>Yo,plB:()=>zu,jNT:()=>q0,zjR:()=>fb,ngT:()=>Eo,hVU:()=>FR,TL$:()=>v_,Tbb:()=>ki,zUL:()=>va,rcV:()=>Jl,M8M:()=>yk,C1y:()=>Ek,nM4:()=>WC,Vt3:()=>$0,GFd:()=>QC,OA$:()=>fc,Jv_:()=>ES,R7$:()=>rA,BMQ:()=>oy,HbH:()=>Ub,ZvI:()=>Hb,ZWY:()=>Gb,ee0:()=>zb,AVh:()=>fy,BUC:()=>Qb,vxM:()=>Jb,wni:()=>HT,SS7:()=>Py,VBU:()=>kC,FsC:()=>UC,jDH:()=>Fr,G2t:()=>Zi,$C:()=>V0,EJ8:()=>BC,rXU:()=>Zd,nrm:()=>vy,eu8:()=>_y,bVm:()=>iv,qex:()=>rv,k0s:()=>nv,j41:()=>tv,RV6:()=>oT,xGo:()=>Og,KVO:()=>Ei,kS0:()=>Ac,QTQ:()=>oA,bIt:()=>Cy,lsd:()=>QT,qSk:()=>Zf,XpG:()=>NT,nI1:()=>RS,bMT:()=>NS,i5U:()=>xS,SdG:()=>LT,NAR:()=>xT,Y8G:()=>uy,lJ4:()=>bS,eq3:()=>TS,l_i:()=>SS,sMw:()=>DS,mGM:()=>zT,r8f:()=>_S,sdS:()=>XT,Dyx:()=>nT,Z7z:()=>tT,fX1:()=>eT,Vm6:()=>qb,Njj:()=>Ua,eBV:()=>ng,npT:()=>KE,f$h:()=>j_,B4B:()=>B_,n$t:()=>HE,wjB:()=>AS,bH3:()=>vS,Aen:()=>Qa,xc7:()=>dy,DNE:()=>H0,C5r:()=>LS,EFF:()=>oS,JRh:()=>Dy,SpI:()=>uv,DH7:()=>gS,mxI:()=>Oy,R50:()=>Iy,GBs:()=>GT});var p=d(467),u=d(9379),o=d(1660);function v(e,t){return Object.is(e,t)}let O=null,x=!1,U=1;const Q=Symbol("SIGNAL");function re(e){const t=O;return O=e,t}function be(){return O}const ne={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,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function te(e){if(x)throw new Error("");if(null===O)return;O.consumerOnSignalRead(e);const t=O.nextProducerIndex++;k(O),t<O.producerNode.length&&O.producerNode[t]!==e&&V(O)&&oe(O.producerNode[t],O.producerIndexOfThis[t]),O.producerNode[t]!==e&&(O.producerNode[t]=e,O.producerIndexOfThis[t]=V(O)?z(e,O,t):0),O.producerLastReadVersion[t]=e.version}function J(e){if((!V(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==U)){if(!e.producerMustRecompute(e)&&!w(e))return void ce(e);e.producerRecomputeValue(e),ce(e)}}function se(e){if(void 0===e.liveConsumerNode)return;const t=x;x=!0;try{for(const n of e.liveConsumerNode)n.dirty||Ce(n)}finally{x=t}}function De(){var e;return!1!==(null===(e=O)||void 0===e?void 0:e.consumerAllowSignalWrites)}function Ce(e){var t;e.dirty=!0,se(e),null===(t=e.consumerMarkedDirty)||void 0===t||t.call(e,e)}function ce(e){e.dirty=!1,e.lastCleanEpoch=U}function _(e){return e&&(e.nextProducerIndex=0),re(e)}function R(e,t){if(re(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(V(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)oe(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function w(e){k(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(J(n),r!==n.version))return!0}return!1}function B(e){if(k(e),V(e))for(let t=0;t<e.producerNode.length;t++)oe(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 z(e,t,n){if(K(e),0===e.liveConsumerNode.length&&ge(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=z(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function oe(e,t){if(K(e),1===e.liveConsumerNode.length&&ge(e))for(let r=0;r<e.producerNode.length;r++)oe(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],s=e.liveConsumerNode[t];k(s),s.producerIndexOfThis[r]=t}}function V(e){var t,n;return e.consumerIsAlwaysLive||(null!==(t=null==e||null===(n=e.liveConsumerNode)||void 0===n?void 0:n.length)&&void 0!==t?t:0)>0}function k(e){var t,n,r;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(n=e.producerIndexOfThis)&&void 0!==n||(e.producerIndexOfThis=[]),null!==(r=e.producerLastReadVersion)&&void 0!==r||(e.producerLastReadVersion=[])}function K(e){var t,n;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(n=e.liveConsumerIndexOfThis)&&void 0!==n||(e.liveConsumerIndexOfThis=[])}function ge(e){return void 0!==e.producerNode}const Fe=Symbol("UNSET"),We=Symbol("COMPUTING"),ze=Symbol("ERRORED"),bt=(0,u.A)((0,u.A)({},ne),{},{value:Fe,dirty:!0,error:null,equal:v,kind:"computed",producerMustRecompute:e=>e.value===Fe||e.value===We,producerRecomputeValue(e){if(e.value===We)throw new Error("Detected cycle in computations.");const t=e.value;e.value=We;const n=_(e);let r,s=!1;try{r=e.computation(),re(null),s=t!==Fe&&t!==ze&&r!==ze&&e.equal(t,r)}catch(f){r=ze,e.error=f}finally{R(e,n)}s?e.value=t:(e.value=r,e.version++)}});let Me=function Ke(){throw new Error};function tt(){Me()}let ot=null;function H(e,t){De()||tt(),e.equal(e.value,t)||(e.value=t,function hn(e){var t;e.version++,function $(){U++}(),se(e),null===(t=ot)||void 0===t||t()}(e))}function Se(e,t){De()||tt(),H(e,t(e.value))}const at=(0,u.A)((0,u.A)({},ne),{},{equal:v,value:void 0,kind:"signal"});const P=()=>{},F=(0,u.A)((0,u.A)({},ne),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:P});var Ae=d(4412),Oe=d(1413),vt=d(8359);const en={};function $n(e,t){e.__jsaction=t}const Ie=["mouseenter","mouseleave","pointerenter","pointerleave"],yt=["focus","blur","error","load","toggle"],Rt=e=>yt.indexOf(e)>=0;function Et(e,t){e.removeEventListener?e.removeEventListener(t.eventType,t.handler,"boolean"==typeof t.passive?{capture:t.capture}:t.capture):e.detachEvent&&e.detachEvent("on".concat(t.eventType),t.handler)}let Cr=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&navigator,typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||navigator),typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&navigator;const co=typeof navigator<"u"&&/iPhone|iPad|iPod/.test(navigator.userAgent);class Qi{constructor(t){(0,o.A)(this,"element",void 0),(0,o.A)(this,"handlerInfos",[]),this.element=t}addEventListener(t,n,r){co&&(this.element.style.cursor="pointer"),this.handlerInfos.push(function Ct(e,t,n,r){let s=!1;return Rt(t)&&(s=!0),e.addEventListener(t,n,"boolean"==typeof r?{capture:s,passive:r}:s),{eventType:t,handler:n,capture:s,passive:r}}(this.element,t,n(this.element),r))}cleanUp(){for(let t=0;t<this.handlerInfos.length;t++)Et(this.element,this.handlerInfos[t]);this.handlerInfos=[]}}function ci(e){return e.eventType}function Vi(e,t){e.eventType=t}function di(e){return e.event}function $r(e,t){e.event=t}function gi(e){return e.targetElement}function ei(e,t){e.targetElement=t}function $i(e){return e.eic}function Bt(e){return e.eia}function Mn(e,t,n){e.eia=[t,n]}function Nn(e){e.eia=void 0}function Wn(e){return e[1]}function or(e,t){e.eirp=t}function si(e){return e.eir}function oi(e,t){e.eir=t}function Gr(e){return{eventType:e.eventType,event:e.event,targetElement:e.targetElement,eic:e.eic,eia:e.eia,timeStamp:e.timeStamp,eirp:e.eirp,eiack:e.eiack,eir:e.eir}}class qt{constructor(t){(0,o.A)(this,"eventInfo",void 0),this.eventInfo=t}getEventType(){return ci(this.eventInfo)}setEventType(t){Vi(this.eventInfo,t)}getEvent(){return di(this.eventInfo)}setEvent(t){$r(this.eventInfo,t)}getTargetElement(){return gi(this.eventInfo)}setTargetElement(t){ei(this.eventInfo,t)}getContainer(){return $i(this.eventInfo)}setContainer(t){!function Ge(e,t){e.eic=t}(this.eventInfo,t)}getTimestamp(){return function ht(e){return e.timeStamp}(this.eventInfo)}setTimestamp(t){!function Jt(e,t){e.timeStamp=t}(this.eventInfo,t)}getAction(){const t=Bt(this.eventInfo);if(t)return{name:t[0],element:t[1]}}setAction(t){t?Mn(this.eventInfo,t.name,t.element):Nn(this.eventInfo)}getIsReplay(){return function _r(e){return e.eirp}(this.eventInfo)}setIsReplay(t){or(this.eventInfo,t)}getResolved(){return si(this.eventInfo)}setResolved(t){oi(this.eventInfo,t)}clone(){return new qt(Gr(this.eventInfo))}}const kt={},An=/\s*;\s*/;class sr{constructor({syntheticMouseEventSupport:t=!1,clickModSupport:n=!0}={}){(0,o.A)(this,"a11yClickSupport",!1),(0,o.A)(this,"clickModSupport",!0),(0,o.A)(this,"syntheticMouseEventSupport",void 0),(0,o.A)(this,"updateEventInfoForA11yClick",void 0),(0,o.A)(this,"preventDefaultForA11yClick",void 0),(0,o.A)(this,"populateClickOnlyAction",void 0),this.syntheticMouseEventSupport=t,this.clickModSupport=n}resolveEventType(t){this.clickModSupport&&"click"===ci(t)&&function mt(e){return Cr&&e.metaKey||!Cr&&e.ctrlKey||function Qt(e){return 2===e.which||null==e.which&&4===e.button}(e)||e.shiftKey}(di(t))?Vi(t,"clickmod"):this.a11yClickSupport&&this.updateEventInfoForA11yClick(t)}resolveAction(t){si(t)||(this.populateAction(t,gi(t)),oi(t,!0))}
1resolveParentAction(t){const n=Bt(t),r=n&&Wn(n);Nn(t);const s=r&&this.getParentNode(r);s&&this.populateAction(t,s)}populateAction(t,n){let r=n;for(;r&&r!==$i(t)&&(r.nodeType===Node.ELEMENT_NODE&&this.populateActionOnElement(r,t),!Bt(t));)r=this.getParentNode(r);const s=Bt(t);if(s&&(this.a11yClickSupport&&this.preventDefaultForA11yClick(t),this.syntheticMouseEventSupport&&("mouseenter"===ci(t)||"mouseleave"===ci(t)||"pointerenter"===ci(t)||"pointerleave"===ci(t))))if(function Ui(e,t,n){const r=e.relatedTarget;return("mouseover"===e.type&&"mouseenter"===t||"mouseout"===e.type&&"mouseleave"===t||"pointerover"===e.type&&"pointerenter"===t||"pointerout"===e.type&&"pointerleave"===t)&&(!r||r!==n&&!n.contains(r))}(di(t),ci(t),Wn(s))){const f=function ui(e,t){const n={};for(const r in e){if("srcElement"===r||"target"===r)continue;const f=e[r];"function"!=typeof f&&(n[r]=f)}return n.type="mouseover"===e.type?"mouseenter":"mouseout"===e.type?"mouseleave":"pointerover"===e.type?"pointerenter":"pointerleave",n.target=n.srcElement=t,n.bubbles=!1,n}(di(t),Wn(s));$r(t,f),ei(t,Wn(s))}else Nn(t)}getParentNode(t){const n=t.__owner;if(n)return n;const r=t.parentNode;var s;return"#document-fragment"===(null==r?void 0:r.nodeName)?null!==(s=null==r?void 0:r.host)&&void 0!==s?s:null:r}populateActionOnElement(t,n){const r=this.parseActions(t),s=r[ci(n)];void 0!==s&&Mn(n,s,t),this.a11yClickSupport&&this.populateClickOnlyAction(t,n,r)}parseActions(t){let n=function Dn(e){return e.__jsaction}(t);if(!n){const r=t.getAttribute("jsaction");if(r){if(n=function In(e){return en[e]}(r),!n){n={};const s=r.split(An);for(let f=0;f<s.length;f++){const m=s[f];if(!m)continue;const A=m.indexOf(":"),T=-1!==A,Z=T?m.substr(0,A).trim():"click",ye=T?m.substr(A+1).trim():m;n[Z]=ye}!function xt(e,t){en[e]=t}(r,n)}$n(t,n)}else n=kt,$n(t,n)}return n}addA11yClickSupport(t,n,r){this.a11yClickSupport=!0,this.updateEventInfoForA11yClick=t,this.preventDefaultForA11yClick=n,this.populateClickOnlyAction=r}}var Hr=function(e){return e[e.I_AM_THE_JSACTION_FRAMEWORK=0]="I_AM_THE_JSACTION_FRAMEWORK",e}(Hr||{});class xr{constructor(t,{actionResolver:n,eventReplayer:r}={}){(0,o.A)(this,"dispatchDelegate",void 0),(0,o.A)(this,"actionResolver",void 0),(0,o.A)(this,"eventReplayer",void 0),(0,o.A)(this,"eventReplayScheduled",!1),(0,o.A)(this,"replayEventInfoWrappers",[]),this.dispatchDelegate=t,this.actionResolver=n,this.eventReplayer=r}dispatch(t){var n,r;const s=new qt(t);null===(n=this.actionResolver)||void 0===n||n.resolveEventType(t),null===(r=this.actionResolver)||void 0===r||r.resolveAction(t);const f=s.getAction();f&&function Tr(e,t){return"A"===e.tagName&&("click"===t.getEventType()||"clickmod"===t.getEventType())}(f.element,s)&&function Bn(e){e.preventDefault?e.preventDefault():e.returnValue=!1}(s.getEvent()),this.eventReplayer&&s.getIsReplay()?this.scheduleEventInfoWrapperReplay(s):this.dispatchDelegate(s)}scheduleEventInfoWrapperReplay(t){this.replayEventInfoWrappers.push(t),!this.eventReplayScheduled&&(this.eventReplayScheduled=!0,Promise.resolve().then(()=>{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)}))}}const h=Symbol.for("propagationStopped");class Wt{constructor(t,n=!0){(0,o.A)(this,"dispatchDelegate",void 0),(0,o.A)(this,"clickModSupport",void 0),(0,o.A)(this,"actionResolver",void 0),(0,o.A)(this,"dispatcher",void 0),this.dispatchDelegate=t,this.clickModSupport=n,this.actionResolver=new sr({clickModSupport:n}),this.dispatcher=new xr(r=>{this.dispatchToDelegate(r)},{actionResolver:this.actionResolver})}dispatch(t){this.dispatcher.dispatch(t)}dispatchToDelegate(t){for(t.getIsReplay()&&function Be(e){const t=e.getEvent(),n=e.getTargetElement(),r=t.preventDefault.bind(t);At(t,"target",n),At(t,"eventPhase",101),At(t,"preventDefault",()=>{throw r(),new Error("`preventDefault` called during event replay.")}),At(t,"composedPath",()=>{throw new Error("`composedPath` called during event replay.")})}(t),function Fn(e){const t=e.getEvent(),n=e.getEvent().stopPropagation.bind(t),r=()=>{t[h]=!0,n()};At(t,"stopPropagation",r),At(t,"stopImmediatePropagation",r)}(t);t.getAction();){if(Ot(t),Rt(t.getEventType())&&t.getAction().element!==t.getTargetElement()||(this.dispatchDelegate(t.getEvent(),t.getAction().name),t.getEvent()[h]))return;this.actionResolver.resolveParentAction(t.eventInfo)}}}function Ot(e){var t;const n=e.getEvent(),r=null===(t=e.getAction())||void 0===t?void 0:t.element;r&&At(n,"currentTarget",r,{configurable:!0})}function At(e,t,n,{configurable:r=!1}={}){Object.defineProperty(e,t,{value:n,configurable:r})}function is(e,t,n,r){for(let s=0;s<t.length;s++)e.removeEventListener(t[s],n,r)}let wo=(()=>{class e{constructor(n){(0,o.A)(this,"containerManager",void 0),(0,o.A)(this,"eventHandlers",{}),(0,o.A)(this,"browserEventTypeToExtraEventTypes",{}),(0,o.A)(this,"dispatcher",null),(0,o.A)(this,"queuedEventInfos",[]),this.containerManager=n}handleEvent(n,r,s){const f=function nt(e,t,n,r,s,f,m,A){return{eventType:e,event:t,targetElement:n,eic:r,timeStamp:s,eia:f,eirp:m,eiack:A}}(n,r,r.target,s,Date.now());this.handleEventInfo(f)}handleEventInfo(n){var r;if(!this.dispatcher)return or(n,!0),void(null===(r=this.queuedEventInfos)||void 0===r||r.push(n));this.dispatcher(n)}
1addEvent(n,r,s){if(n in this.eventHandlers||!this.containerManager||!e.MOUSE_SPECIAL_SUPPORT&&Ie.indexOf(n)>=0)return;const f=(A,T,Z)=>{this.handleEvent(A,T,Z)};this.eventHandlers[n]=f;const m=function dt(e){return"mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":"pointerenter"===e?"pointerover":"pointerleave"===e?"pointerout":e}(r||n);if(m!==n){const A=this.browserEventTypeToExtraEventTypes[m]||[];A.push(n),this.browserEventTypeToExtraEventTypes[m]=A}this.containerManager.addEventListener(m,A=>T=>{f(n,T,A)},s)}replayEarlyEvents(n=window._ejsa){n&&(this.replayEarlyEventInfos(n.q),function ro(e){e&&(is(e.c,e.et,e.h),is(e.c,e.etc,e.h,!0))}(n),delete window._ejsa)}replayEarlyEventInfos(n){for(let r=0;r<n.length;r++){const s=n[r],f=this.getEventTypesForBrowserEventType(s.eventType);for(let m=0;m<f.length;m++){const A=Gr(s);Vi(A,f[m]),this.handleEventInfo(A)}}}getEventTypesForBrowserEventType(n){const r=[];return this.eventHandlers[n]&&r.push(n),this.browserEventTypeToExtraEventTypes[n]&&r.push(...this.browserEventTypeToExtraEventTypes[n]),r}handler(n){return this.eventHandlers[n]}cleanUp(){var n;null===(n=this.containerManager)||void 0===n||n.cleanUp(),this.containerManager=null,this.eventHandlers={},this.browserEventTypeToExtraEventTypes={},this.dispatcher=null,this.queuedEventInfos=[]}registerDispatcher(n,r){this.ecrd(n,r)}ecrd(n,r){var s;if(this.dispatcher=n,null!==(s=this.queuedEventInfos)&&void 0!==s&&s.length){for(let f=0;f<this.queuedEventInfos.length;f++)this.handleEventInfo(this.queuedEventInfos[f]);this.queuedEventInfos=null}}}return(0,o.A)(e,"MOUSE_SPECIAL_SUPPORT",!1),e})();function hs(e,t=window){t._ejsas&&(t._ejsas[e]=void 0)}var Ts,os=d(6354);const Js="https://g.co/ng/security#xss";class zn extends Error{constructor(t,n){super(bo(t,n)),(0,o.A)(this,"code",void 0),this.code=t}}function bo(e,t){const n="NG0".concat(Math.abs(e));return"".concat(n).concat(t?": "+t:"")}const pa=Symbol("InputSignalNode#UNSET"),qs=(0,u.A)((0,u.A)({},at),{},{transformFn:void 0,applyValueToInputSignal(e,t){H(e,t)}});function El(e,t){const n=Object.create(qs);function r(){if(te(n),n.value===pa)throw new zn(-950,!1);return n.value}return n.value=e,n.transformFn=null==t?void 0:t.transform,r[Q]=n,r}function To(e){return{toString:e}.toString()}const ps="__parameters__";function Ds(e,t,n){return To(()=>{const r=function Ss(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...f){if(this instanceof s)return r.apply(this,f),this;const m=new s(...f);return A.annotation=m,A;function A(T,Z,ye){const we=T.hasOwnProperty(ps)?T[ps]:Object.defineProperty(T,ps,{value:[]})[ps];for(;we.length<=ye;)we.push(null);return(we[ye]=we[ye]||[]).push(m),T}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const Di=globalThis;function ti(e){for(let t in e)if(e[t]===ti)return t;throw Error("Could not find renamed property on target object.")}function ma(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ki(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ki).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(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 wa(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}function va(e,t=100){if(!e||t<1||e.length<=t)return e;if(1==t)return e.substring(0,1)+"...";const n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}const Za=ti({__forward_ref__:ti});function Yr(e){return e.__forward_ref__=Yr,e.toString=function(){return ki(this())},e}function Ne(e){return I(e)?e():e}function I(e){return"function"==typeof e&&e.hasOwnProperty(Za)&&e.__forward_ref__===Yr}function Fr(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Zi(e){return{providers:e.providers||[],imports:e.imports||[]}}function ho(e){return _a(e,ea)||_a(e,tr)}function Yo(e){return null!==ho(e)}function _a(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ro(e){return e&&(e.hasOwnProperty($s)||e.hasOwnProperty(It))?e[$s]:null}const ea=ti({\u0275prov:ti}),$s=ti({\u0275inj:ti}),tr=ti({ngInjectableDef:ti}),It=ti({ngInjectorDef:ti});class xn{constructor(t,n){(0,o.A)(this,"_desc",void 0),(0,o.A)(this,"ngMetadataName","InjectionToken"),(0,o.A)(this,"\u0275prov",void 0),this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Fr({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return"InjectionToken ".concat(this._desc)}}function Os(e){return e&&!!e.\u0275providers}const Wi=ti({\u0275cmp:ti}),Ra=ti({\u0275dir:ti}),Cl=ti({\u0275pipe:ti}),Ks=ti({\u0275mod:ti}),Ps=ti({\u0275fac:ti}),Ms=ti({__NG_ELEMENT_ID__:ti}),Br=ti({__NG_ENV_ID__:ti});function pr(e){return"string"==typeof e?e:null==e?"":String(e)}function qa(e,t){throw new zn(-201,!1)}var W=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}(W||{});let ee;function Je(){return ee}function q(e){const t=ee;return ee=e,t}function Re(e,t,n){const r=ho(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&W.Optional?null:void 0!==t?t:void qa()}const Sn={},rr="__NG_DI_FLAG__",Nr="ngTempTokenPath",jr=/\n/gm,kr="__source";let hi;function Kn(e){const t=hi;return hi=e,t}function ws(e,t=W.Default){if(void 0===hi)throw new zn(-203,!1);return null===hi?Re(e,void 0,t):hi.get(e,t&W.Optional?null:void 0,t)}function Ei(e,t=W.Default){return(Je()||ws)(Ne(e),t)}function Qn(e,t=W.Default){return Ei(e,Rs(t))}function Rs(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Na(e){const t=[];for(let n=0;n<e.length;n++){const r=Ne(e[n]);if(Array.isArray(r)){if(0===r.length)throw new zn(900,!1);let s,f=W.Default;for(let m=0;m<r.length;m++){const A=r[m],T=Yc(A);"number"==typeof T?-1===T?s=A.token:f|=T:s=A}t.push(Ei(s,f))}else t.push(Ei(r))}return t}function Ns(e,t){return e[rr]=t,e.prototype[rr]=t,e}function Yc(e){return e[rr]}const xs=Ns(Ds("Inject",e=>({token:e})),-1),ia=Ns(Ds("Optional"),8),ou=Ns(Ds("SkipSelf"),4);function qo(e,t){return e.hasOwnProperty(Ps)?e[Ps]:null}function el(e,t){e.forEach(n=>Array.isArray(n)?el(n,t):t(n))}
1function Jc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Sl(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function rc(e,t,n){const r=e.length-n;for(;t<r;)e[t]=e[t+n],t++;for(;n--;)e.pop()}function qc(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}function ss(e,t,n){let r=Il(e,t);return r>=0?e[1|r]=n:(r=~r,qc(e,r,t,n)),r}function oc(e,t){const n=Il(e,t);if(n>=0)return e[1|n]}function Il(e,t){return function sc(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const f=r+(s-r>>1),m=e[f<<n];if(t===m)return f<<n;m>t?s=f:r=f+1}return~(s<<n)}(e,t,1)}const vs={},ri=[],_s=new xn(""),ed=new xn("",-1),td=new xn("");class su{get(t,n=Sn){if(n===Sn){const r=new Error("NullInjectorError: No provider for ".concat(ki(t),"!"));throw r.name="NullInjectorError",r}return n}}function Do(e,t){const n=e[Ks]||null;if(!n&&!0===t)throw new Error("Type ".concat(ki(e)," does not have '\u0275mod' property."));return n}function Wr(e){return e[Wi]||null}function yo(e){return e[Ra]||null}function Io(e){return e[Cl]||null}function xa(e){const t=Wr(e)||yo(e)||Io(e);return null!==t&&t.standalone}function La(e){return{\u0275providers:e}}function ac(...e){return{\u0275providers:au(0,e),\u0275fromNgModule:!0}}function au(e,...t){const n=[],r=new Set;let s;const f=m=>{n.push(m)};return el(t,m=>{const A=m;N(A,f,[],r)&&(s||(s=[]),s.push(A))}),void 0!==s&&M(s,f),n}function M(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:s}=e[n];L(s,f=>{t(f,r)})}}function N(e,t,n,r){if(!(e=Ne(e)))return!1;let s=null,f=Ro(e);const m=!f&&Wr(e);if(f||m){if(m&&!m.standalone)return!1;s=e}else{const T=e.ngModule;if(f=Ro(T),!f)return!1;s=T}const A=r.has(s);if(m){if(A)return!1;if(r.add(s),m.dependencies){const T="function"==typeof m.dependencies?m.dependencies():m.dependencies;for(const Z of T)N(Z,t,n,r)}}else{if(!f)return!1;{if(null!=f.imports&&!A){let Z;r.add(s);try{el(f.imports,ye=>{N(ye,t,n,r)&&(Z||(Z=[]),Z.push(ye))})}finally{}void 0!==Z&&M(Z,t)}if(!A){const Z=qo(s)||(()=>new s);t({provide:s,useFactory:Z,deps:ri},s),t({provide:td,useValue:s,multi:!0},s),t({provide:_s,useValue:()=>Ei(s),multi:!0},s)}const T=f.providers;if(null!=T&&!A){const Z=e;L(T,ye=>{t(ye,Z)})}}}return s!==e&&void 0!==e.providers}function L(e,t){for(let n of e)Os(n)&&(n=n.\u0275providers),Array.isArray(n)?L(n,t):t(n)}const ae=ti({provide:String,useValue:ti});function Le(e){return null!==e&&"object"==typeof e&&ae in e}function yn(e){return"function"==typeof e}const pn=new xn(""),hr={},lr={};let Mr;function wi(){return void 0===Mr&&(Mr=new su),Mr}class Ri{}class Ki extends Ri{get destroyed(){return this._destroyed}constructor(t,n,r,s){super(),(0,o.A)(this,"parent",void 0),(0,o.A)(this,"source",void 0),(0,o.A)(this,"scopes",void 0),(0,o.A)(this,"records",new Map),(0,o.A)(this,"_ngOnDestroyHooks",new Set),(0,o.A)(this,"_onDestroyHooks",[]),(0,o.A)(this,"_destroyed",!1),(0,o.A)(this,"injectorDefTypes",void 0),this.parent=n,this.source=r,this.scopes=s,oa(t,m=>this.processProvider(m)),this.records.set(ed,tl(void 0,this)),s.has("environment")&&this.records.set(Ri,tl(void 0,this));const f=this.records.get(pn);null!=f&&"string"==typeof f.value&&this.scopes.add(f.value),this.injectorDefTypes=new Set(this.get(td,ri,W.Self))}destroy(){ka(this),this._destroyed=!0;const t=re(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(),re(t)}}onDestroy(t){return ka(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){ka(this);const n=Kn(this),r=q(void 0);try{return t()}finally{Kn(n),q(r)}}get(t,n=Sn,r=W.Default){if(ka(this),t.hasOwnProperty(Br))return t[Br](this);r=Rs(r);const f=Kn(this),m=q(void 0);try{if(!(r&W.SkipSelf)){let T=this.records.get(t);if(void 0===T){const Z=function Mv(e){return"function"==typeof e||"object"==typeof e&&e instanceof xn}(t)&&ho(t);T=Z&&this.injectableDefInScope(Z)?tl(Ls(t),hr):null,this.records.set(t,T)}if(null!=T)return this.hydrate(t,T)}return(r&W.Self?wi():this.parent).get(t,n=r&W.Optional&&n===Sn?null:n)}catch(A){if("NullInjectorError"===A.name){if((A[Nr]=A[Nr]||[]).unshift(ki(t)),f)throw A;return function Ln(e,t,n,r){const s=e[Nr];throw t[kr]&&s.unshift(t[kr]),e.message=function Zc(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=ki(t);if(Array.isArray(t))s=t.map(ki).join(" -> ");else if("object"==typeof t){let f=[];for(let m in t)if(t.hasOwnProperty(m)){let A=t[m];
1f.push(m+":"+("string"==typeof A?JSON.stringify(A):ki(A)))}s="{".concat(f.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(s,"]: ").concat(e.replace(jr,"\n  "))}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[Nr]=null,e}(A,t,"R3InjectorError",this.source)}throw A}finally{q(m),Kn(f)}}resolveInjectorInitializers(){const t=re(null),n=Kn(this),r=q(void 0);try{const f=this.get(_s,ri,W.Self);for(const m of f)m()}finally{Kn(n),q(r),re(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ki(r));return"R3Injector[".concat(t.join(", "),"]")}processProvider(t){let n=yn(t=Ne(t))?t:Ne(t&&t.provide);const r=function lu(e){return Le(e)?tl(void 0,e.useValue):tl(uu(e),hr)}(t);if(!yn(t)&&!0===t.multi){let s=this.records.get(n);s||(s=tl(void 0,hr,!0),s.factory=()=>Na(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=re(null);try{return n.value===hr&&(n.value=lr,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Bp(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{re(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=Ne(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 Ls(e){const t=ho(e),n=null!==t?t.factory:qo(e);if(null!==n)return n;if(e instanceof xn)throw new zn(204,!1);if(e instanceof Function)return function ys(e){if(e.length>0)throw new zn(204,!1);const n=function Zo(e){return e&&(e[ea]||e[tr])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new zn(204,!1)}function uu(e,t,n){let r;if(yn(e)){const s=Ne(e);return qo(s)||Ls(s)}if(Le(e))r=()=>Ne(e.useValue);else if(function Yt(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Na(e.deps||[]));else if(function $e(e){return!(!e||!e.useExisting)}(e))r=()=>Ei(Ne(e.useExisting));else{const s=Ne(e&&(e.useClass||e.provide));if(!function cu(e){return!!e.deps}(e))return qo(s)||Ls(s);r=()=>new s(...Na(e.deps))}return r}function ka(e){if(e.destroyed)throw new zn(205,!1)}function tl(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oa(e,t){for(const n of e)Array.isArray(n)?oa(n,t):n&&Os(n)?oa(n.\u0275providers,t):t(n)}function If(e,t){e instanceof Ki&&ka(e);const r=Kn(e),s=q(void 0);try{return t()}finally{Kn(r),q(s)}}function jp(){return void 0!==Je()||null!=function ms(){return hi}()}function ks(e){if(!jp())throw new zn(-203,!1)}const Oi=0,Un=1,yr=2,ao=3,Wo=4,xo=5,as=6,ls=7,Fi=8,go=9,Fa=10,Rr=11,fu=12,wf=13,lc=14,Ji=15,hu=16,pu=17,Ko=18,Ol=19,Wp=20,Ea=21,gu=22,us=23,Lo=24,cr=25,Rf=1,Es=6,ii=7,mu=9,qi=10;function lo(e){return Array.isArray(e)&&"object"==typeof e[Rf]}function Oo(e){return Array.isArray(e)&&!0===e[Rf]}function Nf(e){return!!(4&e.flags)}function il(e){return e.componentOffset>-1}function od(e){return!(1&~e.flags)}function sa(e){return!!e.template}function uc(e){return!!(512&e[yr])}function ol(e){return!(256&~e[yr])}class kv{constructor(t,n,r){(0,o.A)(this,"previousValue",void 0),(0,o.A)(this,"currentValue",void 0),(0,o.A)(this,"firstChange",void 0),this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Lf(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}const fc=(()=>{const e=()=>Fv;return e.ngInherit=!0,e})();function Fv(e){return e.type.prototype.ngOnChanges&&(e.setInput=ad),lE}function lE(){const e=ld(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===vs)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ad(e,t,n,r,s){const f=this.declaredInputs[r],m=ld(e)||function kf(e,t){return e[Qp]=t}(e,{previous:vs,current:null}),A=m.current||(m.current={}),T=m.previous,Z=T[f];A[f]=new kv(Z&&Z.currentValue,n,T===vs),Lf(e,t,s,n)}const Qp="__ngSimpleChanges__";function ld(e){return e[Qp]||null}const Ho=function(e,t,n){},Ff="svg";function li(e){for(;Array.isArray(e);)e=e[Oi];return e}function Ll(e,t){return li(t[e])}function es(e,t){return li(t[e.index])}function As(e,t){return e.data[t]}function kl(e,t){return e[t]}function Cs(e,t){const n=t[e];return lo(n)?n:n[Oi]}function hc(e){return!(128&~e[yr])}function Fs(e,t){return null==t?null:e[t]}function jf(e){e[pu]=0}function ud(e){1024&e[yr]||(e[yr]|=1024,hc(e)&&yu(e))}function cd(e){var t;return!!(9216&e[yr]||null!==(t=e[Lo])&&void 0!==t&&t.dirty)}function $f(e){var t;null===(t=e[Fa].changeDetectionScheduler)||void 0===t||t.notify(9),64&e[yr]&&(e[yr]|=1024),cd(e)&&yu(e)}function yu(e){var t;null===(t=e[Fa].changeDetectionScheduler)||void 0===t||t.notify(0);let n=aa(e);for(;null!==n&&!(8192&n[yr])&&(n[yr]|=8192,hc(n));)n=aa(n)}function pc(e,t){if(ol(e))throw new zn(911,!1);null===e[Ea]&&(e[Ea]=[]),e[Ea].push(t)}function aa(e){const t=e[ao];return Oo(t)?t[ao]:t}function Eu(e){var t;return null!==(t=e[ls])&&void 0!==t?t:e[ls]=[]}function Zp(e){var t;return null!==(t=e.cleanup)&&void 0!==t?t:e.cleanup=[]}const wr={lFrame:lg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Hs=!1;function Kf(){return wr.bindingsEnabled}function sl(){return null!==wr.skipHydrationRootTNode}function gn(){return wr.lFrame.lView}function Sr(){return wr.lFrame.tView}function ng(e){return wr.lFrame.contextLView=e,e[Fi]}function Ua(e){return wr.lFrame.contextLView=null,e}function zr(){let e=rg();for(;null!==e&&64===e.type;)e=e.parent;return e}function rg(){return wr.lFrame.currentTNode}function Gs(e,t){const n=wr.lFrame;n.currentTNode=e,n.isParent=t}function gc(){return wr.lFrame.isParent}function mc(){wr.lFrame.isParent=!1}function dd(){return wr.lFrame.contextLView}function Hf(){return Hs}function Fl(e){const t=Hs;return Hs=e,t}function Po(){const e=wr.lFrame;let t=e.bindingRootIndex;
1return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ba(){return wr.lFrame.bindingIndex}function cs(){return wr.lFrame.bindingIndex++}function Ca(e){const t=wr.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function sg(e,t){const n=wr.lFrame;n.bindingIndex=n.bindingRootIndex=e,Qf(t)}function Qf(e){wr.lFrame.currentDirectiveIndex=e}function Ni(){return wr.lFrame.currentQueryIndex}function hd(e){wr.lFrame.currentQueryIndex=e}function Cu(e){const t=e[Un];return 2===t.type?t.declTNode:1===t.type?e[xo]:null}function Yf(e,t,n){if(n&W.SkipSelf){let s=t,f=e;for(;!(s=s.parent,null!==s||n&W.Host||(s=Cu(f),null===s||(f=f[lc],10&s.type))););if(null===s)return!1;t=s,e=f}const r=wr.lFrame=ag();return r.currentTNode=t,r.lView=e,!0}function pd(e){const t=ag(),n=e[Un];wr.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ag(){const e=wr.lFrame,t=null===e?null:e.child;return null===t?lg(e):t}function lg(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 ug(){const e=wr.lFrame;return wr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const gd=ug;function cg(){const e=ug();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 ts(){return wr.lFrame.selectedIndex}function la(e){wr.lFrame.selectedIndex=e}function Ii(){const e=wr.lFrame;return As(e.tView,e.selectedIndex)}function Zf(){wr.lFrame.currentNamespace=Ff}function fg(){return wr.lFrame.currentNamespace}let hg=!0;function vc(){return hg}function ua(e){hg=e}function Su(e,t){for(let Z=t.directiveStart,ye=t.directiveEnd;Z<ye;Z++){const Qe=e.data[Z].type.prototype,{ngAfterContentInit:ct,ngAfterContentChecked:Pt,ngAfterViewInit:Gt,ngAfterViewChecked:bn,ngOnDestroy:kn}=Qe;var n,r,s,f,m,A,T;ct&&(null!==(n=e.contentHooks)&&void 0!==n?n:e.contentHooks=[]).push(-Z,ct),Pt&&((null!==(r=e.contentHooks)&&void 0!==r?r:e.contentHooks=[]).push(Z,Pt),(null!==(s=e.contentCheckHooks)&&void 0!==s?s:e.contentCheckHooks=[]).push(Z,Pt)),Gt&&(null!==(f=e.viewHooks)&&void 0!==f?f:e.viewHooks=[]).push(-Z,Gt),bn&&((null!==(m=e.viewHooks)&&void 0!==m?m:e.viewHooks=[]).push(Z,bn),(null!==(A=e.viewCheckHooks)&&void 0!==A?A:e.viewCheckHooks=[]).push(Z,bn)),null!=kn&&(null!==(T=e.destroyHooks)&&void 0!==T?T:e.destroyHooks=[]).push(Z,kn)}}function ja(e,t,n){Jf(e,t,3,n)}function Du(e,t,n,r){(3&e[yr])===n&&Jf(e,t,n,r)}function _c(e,t){let n=e[yr];(3&n)===t&&(n&=16383,n+=1,e[yr]=n)}function Jf(e,t,n,r){const f=null!=r?r:-1,m=t.length-1;let A=0;for(let T=void 0!==r?65535&e[pu]:0;T<m;T++)if("number"==typeof t[T+1]){if(A=t[T],null!=r&&A>=r)break}else t[T]<0&&(e[pu]+=65536),(A<f||-1==f)&&(Gv(e,n,t,T),e[pu]=(4294901760&e[pu])+T+2),T++}function pg(e,t){Ho(4,e,t);const n=re(null);try{t.call(e)}finally{re(n),Ho(5,e,t)}}function Gv(e,t,n,r){const s=n[r]<0,f=n[r+1],A=e[s?-n[r]:n[r]];s?e[yr]>>14<e[pu]>>16&&(3&e[yr])===t&&(e[yr]+=16384,pg(A,f)):pg(A,f)}const Iu=-1;class yc{constructor(t,n,r){(0,o.A)(this,"factory",void 0),(0,o.A)(this,"injectImpl",void 0),(0,o.A)(this,"resolving",!1),(0,o.A)(this,"canSeeViewProviders",void 0),(0,o.A)(this,"multi",void 0),(0,o.A)(this,"componentProviders",void 0),(0,o.A)(this,"index",void 0),(0,o.A)(this,"providerFactory",void 0),this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}}function vg(e){return 3===e||4===e||6===e}function _g(e){return 64===e.charCodeAt(0)}function Pu(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 s=t[r];"number"==typeof s?n=s:0===n||yg(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function yg(e,t,n,r,s){let f=0,m=e.length;if(-1===t)m=-1;else for(;f<e.length;){const A=e[f++];if("number"==typeof A){if(A===t){m=-1;break}if(A>t){m=f-1;break}}}for(;f<e.length;){const A=e[f];if("number"==typeof A)break;
1if(A===n){if(null===r)return void(null!==s&&(e[f+1]=s));if(r===e[f+1])return void(e[f+2]=s)}f++,null!==r&&f++,null!==s&&f++}-1!==m&&(e.splice(m,0,t),f=m+1),e.splice(f++,0,n),null!==r&&e.splice(f++,0,r),null!==s&&e.splice(f++,0,s)}const eh={};class jl{constructor(t,n){(0,o.A)(this,"injector",void 0),(0,o.A)(this,"parentInjector",void 0),this.injector=t,this.parentInjector=n}get(t,n,r){r=Rs(r);const s=this.injector.get(t,eh,r);return s!==eh||n===eh?s:this.parentInjector.get(t,n,r)}}function th(e){return e!==Iu}function Vl(e){return 32767&e}function Mu(e,t){let n=function Qv(e){return e>>16}(e),r=t;for(;n>0;)r=r[lc],n--;return r}let $a=!0;function Ec(e){const t=$a;return $a=e,t}const Eg=255,nh=5;let Yv=0;const ba={};function vd(e,t){const n=Ag(e,t);if(-1!==n)return n;const r=t[Un];r.firstCreatePass&&(e.injectorIndex=t.length,ih(r.data,e),ih(t,null),ih(r.blueprint,null));const s=_d(e,t),f=e.injectorIndex;if(th(s)){const m=Vl(s),A=Mu(s,t),T=A[Un].data;for(let Z=0;Z<8;Z++)t[f+Z]=A[m+Z]|T[m+Z]}return t[f+8]=s,f}function ih(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ag(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function _d(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=lh(s),null===r)return Iu;if(n++,s=s[lc],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Iu}function oh(e,t,n){!function rh(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ms)&&(r=n[Ms]),null==r&&(r=n[Ms]=Yv++);const s=r&Eg;t.data[e+(s>>nh)]|=1<<s}(e,t,n)}function Cg(e,t,n){if(n&W.Optional||void 0!==e)return e;qa()}function Jv(e,t,n,r){if(n&W.Optional&&void 0===r&&(r=null),!(n&(W.Self|W.Host))){const s=e[go],f=q(void 0);try{return s?s.get(t,r,n&W.Optional):Re(t,r,n&W.Optional)}finally{q(f)}}return Cg(r,0,n)}function bg(e,t,n,r=W.Default,s){if(null!==e){if(2048&t[yr]&&!(r&W.Self)){const m=function e_(e,t,n,r,s){let f=e,m=t;for(;null!==f&&null!==m&&2048&m[yr]&&!(512&m[yr]);){const A=Tg(f,m,n,r|W.Self,ba);if(A!==ba)return A;let T=f.parent;if(!T){const Z=m[Wp];if(Z){const ye=Z.get(n,ba,r);if(ye!==ba)return ye}T=lh(m),m=m[lc]}f=T}return s}(e,t,n,r,ba);if(m!==ba)return m}const f=Tg(e,t,n,r,ba);if(f!==ba)return f}return Jv(t,n,r,s)}function Tg(e,t,n,r,s){const f=function Sg(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ms)?e[Ms]:void 0;return"number"==typeof t?t>=0?t&Eg:Ig:t}(n);if("function"==typeof f){if(!Yf(t,e,r))return r&W.Host?Cg(s,0,r):Jv(t,n,r,s);try{let m;if(m=f(r),null!=m||r&W.Optional)return m;qa()}finally{gd()}}else if("number"==typeof f){let m=null,A=Ag(e,t),T=Iu,Z=r&W.Host?t[Ji][xo]:null;for((-1===A||r&W.SkipSelf)&&(T=-1===A?_d(e,t):t[A+8],T!==Iu&&sh(r,!1)?(m=t[Un],A=Vl(T),t=Mu(T,t)):A=-1);-1!==A;){const ye=t[Un];if(Dg(f,A,ye.data)){const we=qv(A,t,n,m,r,Z);if(we!==ba)return we}
1T=t[A+8],T!==Iu&&sh(r,t[Un].data[A+8]===Z)&&Dg(f,A,t)?(m=ye,A=Vl(T),t=Mu(T,t)):A=-1}}return s}function qv(e,t,n,r,s,f){const m=t[Un],A=m.data[e+8],ye=yd(A,m,n,null==r?il(A)&&$a:r!=m&&!!(3&A.type),s&W.Host&&f===A);return null!==ye?$l(t,m,ye,A):ba}function yd(e,t,n,r,s){const f=e.providerIndexes,m=t.data,A=1048575&f,T=e.directiveStart,ye=f>>20,Qe=s?A+ye:e.directiveEnd;for(let ct=r?A:A+ye;ct<Qe;ct++){const Pt=m[ct];if(ct<T&&n===Pt||ct>=T&&Pt.type===n)return ct}if(s){const ct=m[T];if(ct&&sa(ct)&&ct.type===n)return T}return null}function $l(e,t,n,r){let s=e[n];const f=t.data;if(function gg(e){return e instanceof yc}(s)){const m=s;m.resolving&&function na(e,t){throw t&&". Dependency path: ".concat(t.join(" > ")," > ").concat(e),new zn(-200,e)}(function ai(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():pr(e)}(f[n]));const A=Ec(m.canSeeViewProviders);m.resolving=!0;const Z=m.injectImpl?q(m.injectImpl):null;Yf(e,r,W.Default);try{s=e[n]=m.factory(void 0,f,e,r),t.firstCreatePass&&n>=r.directiveStart&&function md(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:f}=t.type.prototype;if(r){var m,A;const we=Fv(t);(null!==(m=n.preOrderHooks)&&void 0!==m?m:n.preOrderHooks=[]).push(e,we),(null!==(A=n.preOrderCheckHooks)&&void 0!==A?A:n.preOrderCheckHooks=[]).push(e,we)}var T,Z,ye;s&&(null!==(T=n.preOrderHooks)&&void 0!==T?T:n.preOrderHooks=[]).push(0-e,s),f&&((null!==(Z=n.preOrderHooks)&&void 0!==Z?Z:n.preOrderHooks=[]).push(e,f),(null!==(ye=n.preOrderCheckHooks)&&void 0!==ye?ye:n.preOrderCheckHooks=[]).push(e,f))}(n,f[n],t)}finally{null!==Z&&q(Z),Ec(A),m.resolving=!1,gd()}}return s}function Dg(e,t,n){return!!(n[t+(e>>nh)]&1<<e)}function sh(e,t){return!(e&W.Self||e&W.Host&&t)}class to{constructor(t,n){(0,o.A)(this,"_tNode",void 0),(0,o.A)(this,"_lView",void 0),this._tNode=t,this._lView=n}get(t,n,r){return bg(this._tNode,this._lView,t,Rs(r),n)}}function Ig(){return new to(zr(),gn())}function Og(e){return To(()=>{const t=e.prototype.constructor,n=t[Ps]||ah(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const f=s[Ps]||ah(s);if(f&&f!==n)return f;s=Object.getPrototypeOf(s)}return f=>new f})}function ah(e){return I(e)?()=>{const t=ah(Ne(e));return t&&t()}:qo(e)}function lh(e){const t=e[Un],n=t.type;return 2===n?t.declTNode:1===n?e[xo]:null}function Ac(e){return function Zv(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 s=0;for(;s<r;){const f=n[s];if(vg(f))break;if(0===f)s+=2;else if("number"==typeof f)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(f===t)return n[s+1];s+=2}}}return null}(zr(),e)}function ph(e,t=null,n=null,r){const s=gh(e,t,n,r);return s.resolveInjectorInitializers(),s}function gh(e,t=null,n=null,r,s=new Set){const f=[n||ri,ac(e)];return r=r||("object"==typeof e?void 0:ki(e)),new Ki(f,t||wi(),r||null,s)}class Jr{static create(t,n){if(Array.isArray(t))return ph({name:""},n,t,"");{var r;const s=null!==(r=t.name)&&void 0!==r?r:"";return ph({name:s},t.parent,t.providers,s)}}}Ts=Jr,(0,o.A)(Jr,"THROW_IF_NOT_FOUND",Sn),(0,o.A)(Jr,"NULL",new su),(0,o.A)(Jr,"\u0275prov",Fr({token:Ts,providedIn:"any",factory:()=>Ei(ed)})),(0,o.A)(Jr,"__NG_ELEMENT_ID__",-1),new xn("").__NG_ELEMENT_ID__=e=>{const t=zr();if(null===t)throw new zn(204,!1);if(2&t.type)return t.value;if(e&W.Optional)return null;throw new zn(204,!1)};const Rg=!1;let Sa=(()=>{class e{}return(0,o.A)(e,"__NG_ELEMENT_ID__",xg),(0,o.A)(e,"__NG_ENV_ID__",t=>t),e})();class Ng extends Sa{constructor(t){super(),(0,o.A)(this,"_lView",void 0),this._lView=t}onDestroy(t){return pc(this._lView,t),()=>function Wf(e,t){if(null===e[Ea])return;const n=e[Ea].indexOf(t);-1!==n&&e[Ea].splice(n,1)}(this._lView,t)}}function xg(){return new Ng(gn())}class ds{}const al=new xn("",{providedIn:"root",factory:()=>!1}),Lg=new xn(""),Cd=new xn("");let zs=(()=>{var e;class t{constructor(){(0,o.A)(this,"taskId",0),(0,o.A)(this,"pendingTasks",new Set),(0,o.A)(this,"hasPendingTasks",new Ae.t(!1))}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const r=this.taskId++;return this.pendingTasks.add(r),r}has(r){return this.pendingTasks.has(r)}remove(r){this.pendingTasks.delete(r),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"root",factory:()=>new e})),t})();const Us=class kg extends Oe.B{constructor(t=!1){var n,r;super(),(0,o.A)(this,"__isAsync",void 0),(0,o.A)(this,"destroyRef",void 0),(0,o.A)(this,"pendingTasks",void 0),this.__isAsync=t,jp()&&(this.destroyRef=null!==(n=Qn(Sa,{optional:!0}))&&void 0!==n?n:void 0,this.pendingTasks=null!==(r=Qn(zs,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const n=re(null);try{super.next(t)}finally{re(n)}}subscribe(t,n,r){let s=t,f=n||(()=>null),m=r;if(t&&"object"==typeof t){var A,T,Z;const we=t;s=null===(A=we.next)||void 0===A?void 0:A.bind(we),f=null===(T=we.error)||void 0===T?void 0:T.bind(we),m=null===(Z=we.complete)||void 0===Z?void 0:Z.bind(we)}this.__isAsync&&(f=this.wrapInTimeout(f),s&&(s=this.wrapInTimeout(s)),m&&(m=this.wrapInTimeout(m)));const ye=super.subscribe({next:s,error:f,complete:m});return t instanceof vt.yU&&t.add(ye),ye}wrapInTimeout(t){return n=>{var r;const s=null===(r=this.pendingTasks)||void 0===r?void 0:r.add();setTimeout(()=>{var f;t(n),void 0!==s&&(null===(f=this.pendingTasks)||void 0===f||f.remove(s))})}}};function Ru(...e){}function bd(e){let t,n;function r(){e=Ru;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch(s){}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function vh(e){return queueMicrotask(()=>e()),()=>{e=Ru}}
1const _h="isAngularZone",Td=_h+"_ID";let Tc=0;class Hi{constructor(t){(0,o.A)(this,"hasPendingMacrotasks",!1),(0,o.A)(this,"hasPendingMicrotasks",!1),(0,o.A)(this,"isStable",!0),(0,o.A)(this,"onUnstable",new Us(!1)),(0,o.A)(this,"onMicrotaskEmpty",new Us(!1)),(0,o.A)(this,"onStable",new Us(!1)),(0,o.A)(this,"onError",new Us(!1));const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:s=!1,scheduleInRootZone:f=Rg}=t;if(typeof Zone>"u")throw new zn(908,!1);Zone.assertZonePatched();const m=this;m._nesting=0,m._outer=m._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(m._inner=m._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(m._inner=m._inner.fork(Zone.longStackTraceZoneSpec)),m.shouldCoalesceEventChangeDetection=!s&&r,m.shouldCoalesceRunChangeDetection=s,m.callbackScheduled=!1,m.scheduleInRootZone=f,function i_(e){const t=()=>{!function r_(e){function t(){bd(()=>{e.callbackScheduled=!1,Ug(e),e.isCheckStableRunning=!0,Sd(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Ug(e))}(e)},n=Tc++;e._inner=e._inner.fork({name:"angular",properties:{[_h]:!0,[Td]:n,[Td+n]:!0},onInvokeTask:(r,s,f,m,A,T)=>{if(function Bg(e){return jg(e,"__ignore_ng_zone__")}(T))return r.invokeTask(f,m,A,T);try{return Dd(e),r.invokeTask(f,m,A,T)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||e.shouldCoalesceRunChangeDetection)&&t(),yh(e)}},onInvoke:(r,s,f,m,A,T,Z)=>{try{return Dd(e),r.invoke(f,m,A,T,Z)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function o_(e){return jg(e,"__scheduler_tick__")}(T)&&t(),yh(e)}},onHasTask:(r,s,f,m)=>{r.hasTask(f,m),s===f&&("microTask"==m.change?(e._hasPendingMicrotasks=m.microTask,Ug(e),Sd(e)):"macroTask"==m.change&&(e.hasPendingMacrotasks=m.macroTask))},onHandleError:(r,s,f,m)=>(r.handleError(f,m),e.runOutsideAngular(()=>e.onError.emit(m)),!1)})}(m)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(_h)}static assertInAngularZone(){if(!Hi.isInAngularZone())throw new zn(909,!1)}static assertNotInAngularZone(){if(Hi.isInAngularZone())throw new zn(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const f=this._inner,m=f.scheduleEventTask("NgZoneEvent: "+s,t,Fg,Ru,Ru);try{return f.runTask(m,n,r)}finally{f.cancelTask(m)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Fg={};function Sd(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 Ug(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Dd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yh(e){e._nesting--,Sd(e)}class Kl{constructor(){(0,o.A)(this,"hasPendingMicrotasks",!1),(0,o.A)(this,"hasPendingMacrotasks",!1),(0,o.A)(this,"isStable",!0),(0,o.A)(this,"onUnstable",new Us),(0,o.A)(this,"onMicrotaskEmpty",new Us),(0,o.A)(this,"onStable",new Us),(0,o.A)(this,"onError",new Us)}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}function jg(e,t){var n;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(n=e[0])||void 0===n||null===(n=n.data)||void 0===n?void 0:n[t])}class Da{constructor(){(0,o.A)(this,"_console",console)}handleError(t){this._console.error("ERROR",t)}}const Eh=new xn("",{providedIn:"root",factory:()=>{const e=Qn(Hi),t=Qn(Da);return n=>e.runOutsideAngular(()=>t.handleError(n))}});class Ah{constructor(){(0,o.A)(this,"destroyed",!1),(0,o.A)(this,"listeners",null),(0,o.A)(this,"errorHandler",Qn(Da,{optional:!0})),(0,o.A)(this,"destroyRef",Qn(Sa)),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){var n;if(this.destroyed)throw new zn(953,!1);return(null!==(n=this.listeners)&&void 0!==n?n:this.listeners=[]).push(t),{unsubscribe:()=>{var r;const s=null===(r=this.listeners)||void 0===r?void 0:r.indexOf(t);var f;void 0!==s&&-1!==s&&(null===(f=this.listeners)||void 0===f||f.splice(s,1))}}}emit(t){if(this.destroyed)throw new zn(953,!1);if(null===this.listeners)return;const n=re(null);try{for(const s of this.listeners)try{s(t)}catch(f){var r;null===(r=this.errorHandler)||void 0===r||r.handleError(f)}}finally{re(n)}}}function Ch(e){return new Ah}function bh(e,t){return El(e,t)}const Nu=(bh.required=function Vg(e){return El(pa,e)},bh);function $g(){return ll(zr(),gn())}function ll(e,t){return new Sc(es(e,t))}let Sc=(()=>{class e{constructor(n){(0,o.A)(this,"nativeElement",void 0),this.nativeElement=n}}return(0,o.A)(e,"__NG_ELEMENT_ID__",$g),e})();function Th(e){return e instanceof Sc?e.nativeElement:e}const Sh=new Set;function Eo(e){var t,n;Sh.has(e)||(Sh.add(e),null===(t=performance)||void 0===t||null===(n=t.mark)||void 0===n||n.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Dh(e){return"function"==typeof e&&void 0!==e[Q]}function Id(e,t){Eo("NgSignals");const n=function je(e){const t=Object.create(at);t.value=e;const n=()=>(te(t),t.value);return n[Q]=t,n}(e),r=n[Q];return null!=t&&t.equal&&(r.equal=t.equal),n.set=s=>H(r,s),n.update=s=>Se(r,s),n.asReadonly=xu.bind(n),n}function xu(){const e=this[Q];if(void 0===e.readonlyFn){const t=()=>this();t[Q]=e,e.readonlyFn=t}return e.readonlyFn}function Kg(e){return Dh(e)&&"function"==typeof e.set}function Hg(){return this._results[Symbol.iterator]()}class Ih{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Oe.B}constructor(t=!1){(0,o.A)(this,"_emitDistinctChangesOnly",void 0),(0,o.A)(this,"dirty",!0),(0,o.A)(this,"_onDirty",void 0),(0,o.A)(this,"_results",[]),(0,o.A)(this,"_changesDetected",!1),(0,o.A)(this,"_changes",void 0),(0,o.A)(this,"length",0),(0,o.A)(this,"first",void 0),(0,o.A)(this,"last",void 0),(0,o.A)(this,Symbol.iterator,Hg),this._emitDistinctChangesOnly=t}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)}
1forEach(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 No(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function so(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],f=t[r];if(n&&(s=n(s),f=n(f)),f!==s)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.next(this)}onDirty(t){this._onDirty=t}setDirty(){var t;this.dirty=!0,null===(t=this._onDirty)||void 0===t||t.call(this)}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}const Hl="ngSkipHydration",Od="ngskiphydration";function Pd(e){const t=e.mergedAttrs;if(null===t)return!1;for(let n=0;n<t.length;n+=2){const r=t[n];if("number"==typeof r)return!1;if("string"==typeof r&&r.toLowerCase()===Od)return!0}return!1}function Oh(e){return e.hasAttribute(Hl)}function Md(e){return!(128&~e.flags)}var Wa=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Wa||{});const Dc=new Map;let vE=0;function Qg(e){Dc.delete(e[Ol])}const ku="__ngContext__";function ns(e,t){lo(t)?(e[ku]=t[Ol],function Gg(e){Dc.set(e[Ol],e)}(t)):e[ku]=t}function em(e){return nm(e[fu])}function tm(e){return nm(e[Wo])}function nm(e){for(;null!==e&&!Oo(e);)e=e[Wo];return e}let dr;function v_(e){dr=e}function bs(){if(void 0!==dr)return dr;if(typeof document<"u")return document;throw new zn(210,!1)}const Gl=new xn("",{providedIn:"root",factory:()=>__}),__="ng",wh=new xn(""),Rh=new xn("",{providedIn:"platform",factory:()=>"unknown"}),y_=new xn(""),E_=new xn("",{providedIn:"root",factory:()=>{var e;return(null===(e=bs().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}}),sm={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},am=new xn("",{providedIn:"root",factory:()=>sm});function Nh(e){return e}function A_(){const e=new ul;return"browser"===Qn(Rh)&&(e.store=function C_(e,t){const n=e.getElementById(t+"-state");if(null!=n&&n.textContent)try{return JSON.parse(n.textContent)}catch(r){console.warn("Exception while restoring TransferState for app "+t,r)}return{}}(bs(),Qn(Gl))),e}let ul=(()=>{class t{constructor(){(0,o.A)(this,"store",{}),(0,o.A)(this,"onSerializeCallbacks",{})}get(r,s){return void 0!==this.store[r]?this.store[r]:s}set(r,s){this.store[r]=s}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(r,s){this.onSerializeCallbacks[r]=s}toJson(){for(const r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(s){console.warn("Exception in onSerialize callback: ",s)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return(0,o.A)(t,"\u0275prov",Fr({token:t,providedIn:"root",factory:A_})),t})();const xh="h",Lh="b",kh="f",lm="n",wc="e",Ud="t",ju="c",cl="x",ca="r",Fh="i",Rc="n",Vu="d",Uh="di",Nc="t",$u=new xn(""),dm=new xn("",{providedIn:"root",factory:()=>!1}),Bh=new xn(""),hm=!1,pm=new xn(""),xc=new xn("",{providedIn:"root",factory:()=>new Map});var jh=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(jh||{});const zl=new xn("");function Vh(e,t){if(null!==be())throw new zn(-602,!1)}var Wu=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Wu||{});let gm=(()=>{var e;class t{constructor(){(0,o.A)(this,"impl",null)}execute(){var r;null===(r=this.impl)||void 0===r||r.execute()}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"root",factory:()=>new e})),t})();const Vd=[Wu.EarlyRead,Wu.Write,Wu.MixedReadWrite,Wu.Read];let T_=(()=>{var e;class t{constructor(){(0,o.A)(this,"ngZone",Qn(Hi)),(0,o.A)(this,"scheduler",Qn(ds)),(0,o.A)(this,"errorHandler",Qn(Da,{optional:!0})),(0,o.A)(this,"sequences",new Set),(0,o.A)(this,"deferredRegistrations",new Set),(0,o.A)(this,"executing",!1),Qn(zl,{optional:!0})}execute(){this.executing=!0;for(const s of Vd)for(const f of this.sequences)if(!f.erroredOrDestroyed&&f.hooks[s])try{f.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>f.hooks[s](f.pipelinedValue),f.snapshot))}catch(m){var r;f.erroredOrDestroyed=!0,null===(r=this.errorHandler)||void 0===r||r.handleError(m)}this.executing=!1;for(const s of this.sequences)s.afterRun(),s.once&&(this.sequences.delete(s),s.destroy());for(const s of this.deferredRegistrations)this.sequences.add(s);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(r){this.executing?this.deferredRegistrations.add(r):(this.sequences.add(r),this.scheduler.notify(7))}unregister(r){this.executing&&this.sequences.has(r)?(r.erroredOrDestroyed=!0,r.pipelinedValue=void 0,r.once=!0):(this.sequences.delete(r),this.deferredRegistrations.delete(r))}maybeTrace(r,s){return s?s.run(jh.AFTER_NEXT_RENDER,r):r()}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"root",factory:()=>new e})),t})();class $d{constructor(t,n,r,s,f=null){(0,o.A)(this,"impl",void 0),(0,o.A)(this,"hooks",void 0),(0,o.A)(this,"once",void 0),(0,o.A)(this,"snapshot",void 0),(0,o.A)(this,"erroredOrDestroyed",!1),(0,o.A)(this,"pipelinedValue",void 0),(0,o.A)(this,"unregisterOnDestroy",void 0),this.impl=t,this.hooks=n,this.once=r,this.snapshot=f,this.unregisterOnDestroy=null==s?void 0:s.onDestroy(()=>this.destroy())}afterRun(){var t;this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,null===(t=this.snapshot)||void 0===t||t.dis
1pose(),this.snapshot=null}destroy(){var t;this.impl.unregister(this),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function $h(e,t){var n;(null==t||!t.injector)&&ks();const r=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Qn(Jr);return Eo("NgAfterRender"),mm(e,r,t,!1)}function Ql(e,t){var n;(null==t||!t.injector)&&ks();const r=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Qn(Jr);return Eo("NgAfterNextRender"),mm(e,r,t,!0)}function mm(e,t,n,r){var s,f;const m=t.get(gm);null!==(s=m.impl)&&void 0!==s||(m.impl=t.get(T_));const A=t.get(zl,null,{optional:!0}),T=null!==(f=null==n?void 0:n.phase)&&void 0!==f?f:Wu.MixedReadWrite,Z=!0!==(null==n?void 0:n.manualCleanup)?t.get(Sa):null,ye=new $d(m.impl,function S_(e,t){if(e instanceof Function){const n=[void 0,void 0,void 0,void 0];return n[t]=e,n}return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}(e,T),r,Z,null==A?void 0:A.snapshot(null));return m.impl.register(ye),ye}var mo=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}(mo||{}),i=function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e}(i||{}),Lt=function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e}(Lt||{});function cn(e,t){const n=function nn(e){let t=4;return 1===e?t=5:2===e&&(t=9),t}(e),r=t[n];if(null!==r){for(const s of r)s();t[n]=null}}function On(e){return e+1}function _n(e,t){return e[On(t.index)]}function wn(e,t){const n=On(t.index);return e.data[n]}function qr(e,t){var n,r,s,f;return t===i.Placeholder?null!==(n=null===(r=e.placeholderBlockConfig)||void 0===r?void 0:r[0])&&void 0!==n?n:null:t===i.Loading&&null!==(s=null===(f=e.loadingBlockConfig)||void 0===f?void 0:f[0])&&void 0!==s?s:null}function Pi(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 vo=new WeakMap,fl=["click","keydown"],Ha=["mouseenter","mouseover","focusin"];let fs=null,Ga=0;class hl{constructor(){(0,o.A)(this,"callbacks",new Set),(0,o.A)(this,"listener",()=>{for(const t of this.callbacks)t()})}}function Lc(e,t,n){const r=n.get(Hi);let s=vo.get(e);return fs=fs||r.runOutsideAngular(()=>new IntersectionObserver(f=>{for(const m of f)m.isIntersecting&&vo.has(m.target)&&r.run(vo.get(m.target).listener)})),s||(s=new hl,r.runOutsideAngular(()=>fs.observe(e)),vo.set(e,s),Ga++),s.callbacks.add(t),()=>{var f,m;vo.has(e)&&(s.callbacks.delete(t),0===s.callbacks.size&&(null===(f=fs)||void 0===f||f.unobserve(e),vo.delete(e),Ga--),0===Ga&&(null===(m=fs)||void 0===m||m.disconnect(),fs=null))}}const Yl="ngb",Hh=(e,t,n)=>{var r,s;const f=e,m=null!==(r=f.__jsaction_fns)&&void 0!==r?r:new Map,A=null!==(s=m.get(t))&&void 0!==s?s:[];A.push(n),m.set(t,A),f.__jsaction_fns=m},zd=(e,t)=>{var n,r;let s=null!==(n=e.getAttribute(Yl))&&void 0!==n?n:"";const f=e,m=null!==(r=t.get(s))&&void 0!==r?r:new Set;m.has(f)||m.add(f),t.set(s,m)},gl=e=>{e.removeAttribute("jsaction"),e.removeAttribute(Yl),e.__jsaction_fns=void 0},rs=new xn("",{providedIn:"root",factory:()=>({})});function CE(e,t){var n;const r=null==t||null===(n=t.__jsaction_fns)||void 0===n?void 0:n.get(e.type);if(r)for(const s of r)s(e)}const Hu=new xn("");let DI=(()=>{var e;class t{constructor(){(0,o.A)(this,"registry",new Map),(0,o.A)(this,"cleanupFns",new Map),(0,o.A)(this,"jsActionMap",Qn(xc)),(0,o.A)(this,"contract",Qn(rs)),(0,o.A)(this,"hydrating",new Map)}add(r,s){this.registry.set(r,s)}get(r){var s;return null!==(s=this.registry.get(r))&&void 0!==s?s:null}has(r){return this.registry.has(r)}cleanup(r){!function Gh(e,t){if(e.length>0){let n=[];for(let s of e)t.has(s)&&(n=[...n,...t.get(s)]);new Set(n).forEach(gl)}}(r,this.jsActionMap);for(let f of r)this.registry.delete(f),this.jsActionMap.delete(f),this.invokeTriggerCleanupFns(f),this.hydrating.delete(f);var s;0===this.size&&(null===(s=this.contract.instance)||void 0===s||s.cleanUp())}get size(){return this.registry.size}addCleanupFn(r,s){let f=[];this.cleanupFns.has(r)&&(f=this.cleanupFns.get(r)),f.push(s),this.cleanupFns.set(r,f)}invokeTriggerCleanupFns(r){var s;const f=null!==(s=this.cleanupFns.get(r))&&void 0!==s?s:[];for(let m of f)m();this.cleanupFns.delete(r)}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:null,factory:()=>new e})),t})();const D_="__nghData__",_m="__nghDeferData__",zh="ngh",II="nghm";let bE=()=>null;function OI(e,t,n=!1){var r;let s=e.getAttribute(zh);if(null==s)return null;const[f,m]=s.split("|");if(s=n?m:f,!s)return null;const A=m?"|".concat(m):"",T=n?f:A;let Z={};if(""!==s){const we=t.get(ul,null,{optional:!0});null!==we&&(Z=we.get(D_,[])[Number(s)])}const ye={data:Z,firstChild:null!==(r=e.firstChild)&&void 0!==r?r:null};return n&&(ye.firstChild=e,ym(ye,0,e.nextSibling)),T?e.setAttribute(zh,T):e.removeAttribute(zh),ye}function I_(e,t,n=!1){return bE(e,t,n)}function TE(e){let t=e._lView;return 2===t[Un].type?null:(uc(t)&&(t=t[cr]),t)}function ym(e,t,n){var r;null!==(r=e.segmentHeads)&&void 0!==r||(e.segmentHeads={}),e.segmentHeads[t]=n}function P_(e,t){var n,r;return null!==(n=null===(r=e.segmentHeads)||void 0===r?void 0:r[t])&&void 0!==n?n:null}function IE(e,t){var n,r;return null!==(n=null===(r=e.data[ju])||void 0===r?void 0:r[t])&&void 0!==n?n:null}function M_(e,t){var n;const r=null!==(n=IE(e,t))&&void 0!==n?n:[];let s=0;for(let m of r){var f;s+=m[ca]*(null!==(f=m[cl])&&void 0!==f?f:1)}return s}function kc(e,t){var n;if(typeof e.disconnectedNodes>"u"){const r=e.data[Vu];e.disconnectedNodes=r?new Set(r):null}return!(null===(n=function OE(e){if(typeof e.disconnectedNodes>"u"){const t=e.data[Vu];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}(e))||void 0===n||!n.has(t))}let ME=()=>({});function BI(e){const t=e.get(ul,null,{optional:!0});return null!==t?t.get(_m,{}):{}}function WI(e){var t,n;const r=null===(t=e[Nc])||void 0===t?void 0:t.find(s=>
1function $I(e){return"object"==typeof e&&5===e.trigger}(s));return null!==(n=null==r?void 0:r.delay)&&void 0!==n?n:null}function w_(e,t){var n,r;return null!==(n=null===(r=e[Nc])||void 0===r?void 0:r.includes(t))&&void 0!==n&&n}function KI(e){return{data:e,hydrate:{idle:w_(e,0),immediate:w_(e,1),timer:WI(e),viewport:w_(e,2)}}}function wE(e,t){const n=e.contentQueries;if(null!==n){const r=re(null);try{for(let s=0;s<n.length;s+=2){const m=n[s+1];if(-1!==m){const A=e.data[m];hd(n[s]),A.contentQueries(2,t[m],m)}}}finally{re(r)}}}function R_(e,t,n){hd(0);const r=re(null);try{t(e,n)}finally{re(r)}}function N_(e,t,n){if(Nf(t)){const r=re(null);try{const f=t.directiveEnd;for(let m=t.directiveStart;m<f;m++){const A=e.data[m];A.contentQueries&&A.contentQueries(1,n[m],m)}}finally{re(r)}}}var Zl=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Zl||{});let Em,Am;function Qd(e){var t;return(null===(t=function x_(){if(void 0===Em&&(Em=null,Di.trustedTypes))try{Em=Di.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Em}())||void 0===t?void 0:t.createHTML(e))||e}function L_(){if(void 0===Am&&(Am=null,Di.trustedTypes))try{Am=Di.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Am}function RE(e){var t;return(null===(t=L_())||void 0===t?void 0:t.createHTML(e))||e}function xE(e){var t;return(null===(t=L_())||void 0===t?void 0:t.createScriptURL(e))||e}class Fc{constructor(t){(0,o.A)(this,"changingThisBreaksApplicationSecurity",void 0),this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see ".concat(Js,")")}}class QI extends Fc{getTypeName(){return"HTML"}}class XI extends Fc{getTypeName(){return"Style"}}class YI extends Fc{getTypeName(){return"Script"}}class ZI extends Fc{getTypeName(){return"URL"}}class JI extends Fc{getTypeName(){return"ResourceURL"}}function Jl(e){return e instanceof Fc?e.changingThisBreaksApplicationSecurity:e}function Xd(e,t){const n=function qI(e){return e instanceof Fc&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see ").concat(Js,")"))}return n===t}function eO(e){return new QI(e)}function tO(e){return new XI(e)}function nO(e){return new YI(e)}function rO(e){return new ZI(e)}function iO(e){return new JI(e)}class oO{constructor(t){(0,o.A)(this,"inertDocumentHelper",void 0),this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{var n;const r=(new window.DOMParser).parseFromString(Qd(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(null===(n=r.firstChild)||void 0===n||n.remove(),r)}catch(r){return null}}}class sO{constructor(t){(0,o.A)(this,"defaultDoc",void 0),(0,o.A)(this,"inertDocument",void 0),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Qd(t),n}}const lO=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Cm(e){return(e=String(e)).match(lO)?e:"unsafe:"+e}function ql(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Zh(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const kE=ql("area,br,col,hr,img,wbr"),FE=ql("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),UE=ql("rp,rt"),k_=Zh(kE,Zh(FE,ql("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")),Zh(UE,ql("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")),Zh(UE,FE)),F_=ql("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),BE=Zh(F_,ql("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,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"),ql("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")),uO=ql("script,style,template");class cO{constructor(){(0,o.A)(this,"sanitizedSomething",!1),(0,o.A)(this,"buf",[])}sanitizeChildren(t){let n=t.firstChild,r=!0,s=[];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)s.push(n),n=hO(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let f=fO(n);if(f){n=f;break}n=s.pop()}return this.buf.join("")}startElement(t){const n=jE(t).toLowerCase();if(!k_.hasOwnProperty(n))return this.sanitizedSomething=!0,!uO.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const f=r.item(s),m=f.name,A=m.toLowerCase();if(!BE.hasOwnProperty(A)){this.sanitizedSomething=!0;continue}let T=f.value;F_[A]&&(T=Cm(T)),this.buf.push(" ",m,'="',$E(T),'"')}return this.buf.push(">"),!0}endElement(t){const n=jE(t).toLowerCase();k_.hasOwnProperty(n)&&!kE.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push($E(t))}}function fO(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw VE(t);return t}function hO(e){const t=e.firstChild;if(t&&function dO(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw VE(t);return t}function jE(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function VE(e){return new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML))}const pO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gO=/([^\#-~ |!])/g;function $E(e){return e.replace(/&/g,"&amp;").replace(pO,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gO,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let bm;function WE(e,t){let n=null;try{bm=bm||function LE(e){const t=new sO(e);return function aO(){try{return!!(new window.DOMParser).parseFromString(Qd(""),"text/html")}catch(e){return!1}}()?new oO(t):t}(e);let r=t?String(t):"";n=bm.getInertBodyElement(r);let s=5,f=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=f,f=n.innerHTML,n=bm.getInertBodyElement(r)}while(r!==f);return Qd((new cO).sanitizeChildren(U_(n)||n))}finally{if(n){const r=U_(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function U_(e){return"content"in e&&function mO(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Uc=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}(Uc||{});function KE(e){const t=Jh();return t?RE(t.sanitize(Uc.HTML,e)||""):Xd(e,"HTML")?RE(Jl(e)):WE(bs(),pr(e))}function B_(e){const t=Jh();return t?t.sanitize(Uc.URL,e)||"":Xd(e,"URL")?Jl(e):Cm(pr(e))}function j_(e){const t=Jh();if(t)return xE(t.sanitize(Uc.RESOURCE_URL,e)||"");if(Xd(e,"ResourceURL"))return xE(Jl(e));throw new zn(904,!1)}function HE(e,t,n){return function AO(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?j_:B_}(t,n)(e)}function Jh(){const e=gn();return e&&e[Fa].sanitizer}const CO=/^>|^->|<!--|-->|--!>|<!-$/g,bO=/(<|>)/g,TO="\u200b$1\u200b";function fa(e){return e instanceof Function?e():e}var Gu=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Gu||{});function LO(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const f=t.length;if(s+f===r||e.charCodeAt(s+f)<=32)return s}n=s+1}}const eA="ng-template";function kO(e,t,n,r){let s=0;if(r){for(;s<t.length&&"string"==typeof t[s];s+=2)if("class"===t[s]&&-1!==LO(t[s+1].toLowerCase(),n,0))return!0}else if(W_(e))return!1;if(s=t.indexOf(1,s),s>-1){let f;for(;++s<t.length&&"string"==typeof(f=t[s]);)if(f.toLowerCase()===n)return!0}return!1}function W_(e){return 4===e.type&&e.value!==eA}function FO(e,t,n){return t===(4!==e.type||n?e.value:eA)}function UO(e,t,n){let r=4;const s=e.attrs,f=null!==s?function VO(e){for(let t=0;t<e.length;t++)if(vg(e[t]))return t;return e.length}(s):0;let m=!1;for(let A=0;A<t.length;A++){const T=t[A];if("number"!=typeof T){if(!m)if(4&r){if(r=2|1&r,""!==T&&!FO(e,T,n)||""===T&&1===t.length){if(za(r))return!1;m=!0}}else if(8&r){if(null===s||!kO(e,s,T,n)){if(za(r))return!1;m=!0}}else{const Z=t[++A],ye=BO(T,s,W_(e),n);if(-1===ye){if(za(r))return!1;m=!0;continue}if(""!==Z){let we;if(we=ye>f?"":s[ye+1].toLowerCase(),2&r&&Z!==we){if(za(r))return!1;m=!0}}}}else{if(!m&&!za(r)&&!za(T))return!1;if(m&&za(T))continue;m=!1,r=T|1&r}}return za(r)||m}function za(e){return!(1&e)}function BO(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let f=!1;for(;s<t.length;){const m=t[s];if(m===e)return s;if(3===m||6===m)f=!0;else{if(1===m||2===m){let A=t[++s];for(;"string"==typeof A;)A=t[++s];continue}if(4===m)break;if(0===m){s+=4;continue}}s+=f?1:2}return-1}return function $O(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 tA(e,t,n=!1){for(let r=0;r<t.length;r++)if(UO(e,t[r],n))return!0;return!1}function WO(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function nA(e,t){return e?":not("+t.trim()+")":t}function KO(e){let t=e[0],n=1,r=2,s="",f=!1;for(;n<e.length;){let m=e[n];if("string"==typeof m)if(2&r){const A=e[++n];s+="["+m+(A.length>0?'="'+A+'"':"")+"]"}else 8&r?s+="."+m:4&r&&(s+=" "+m);else""!==s&&!za(m)&&(t+=nA(f,s),s=""),r=m,f=f||!za(r);n++}return""!==s&&(t+=nA(f,s)),t}const Kr={};
1function rA(e=1){iA(Sr(),gn(),ts()+e,!1)}function iA(e,t,n,r){if(!r)if(3&~t[yr]){const f=e.preOrderHooks;null!==f&&Du(t,f,0,n)}else{const f=e.preOrderCheckHooks;null!==f&&ja(t,f,n)}la(n)}function Zd(e,t=W.Default){const n=gn();return null===n?Ei(e,t):bg(zr(),n,Ne(e),t)}function oA(){throw new Error("invalid")}function sA(e,t,n,r,s,f){const m=re(null);try{let A=null;s&Gu.SignalBased&&(A=t[r][Q]),null!==A&&void 0!==A.transformFn&&(f=A.transformFn(f)),s&Gu.HasDecoratorInputTransform&&(f=e.inputTransforms[r].call(t,f)),null!==e.setInput?e.setInput(t,A,f,n,r):Lf(t,A,r,f)}finally{re(m)}}function K_(e,t){return e.createText(t)}function H_(e,t){return e.createComment(function GE(e){return e.replace(CO,t=>t.replace(bO,TO))}(t))}function Dm(e,t,n){return e.createElement(t,n)}function Bc(e,t,n,r,s){e.insertBefore(t,n,r,s)}function lA(e,t,n){e.appendChild(t,n)}function uA(e,t,n,r,s){null!==r?Bc(e,t,n,r,s):lA(e,t,n)}function qh(e,t,n){e.removeChild(null,t,n)}function cA(e){e.textContent=""}function dA(e,t,n){const{mergedAttrs:r,classes:s,styles:f}=n;null!==r&&function mg(e,t,n){let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const f=n[r++],m=n[r++],A=n[r++];e.setAttribute(t,m,A,f)}else{const f=s,m=n[++r];_g(f)?e.setProperty(t,f,m):e.setAttribute(t,f,m),r++}}}(e,t,r),null!==s&&function QO(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}(e,t,s),null!==f&&function zO(e,t,n){e.setAttribute(t,"style",n)}(e,t,f)}function ep(e,t,n,r,s,f,m,A,T,Z,ye){const we=t.blueprint.slice();return we[Oi]=s,we[yr]=1228|r,(null!==Z||e&&2048&e[yr])&&(we[yr]|=2048),jf(we),we[ao]=we[lc]=e,we[Fi]=n,we[Fa]=m||e&&e[Fa],we[Rr]=A||e&&e[Rr],we[go]=T||e&&e[go]||null,we[xo]=f,we[Ol]=function Ph(){return vE++}(),we[as]=ye,we[Wp]=Z,we[Ji]=2==t.type?e[Ji]:we,we}function tp(e,t,n,r){if(0===n)return-1;const s=t.length;for(let f=0;f<n;f++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function fA(e,t,n,r,s){const f=ts(),m=2&r;try{la(-1),m&&t.length>cr&&iA(e,t,cr,!1),Ho(m?2:0,s),n(r,s)}finally{la(f),Ho(m?3:1,s)}}function G_(e,t,n){Kf()&&(function sP(e,t,n,r){const s=n.directiveStart,f=n.directiveEnd;il(n)&&function hP(e,t,n){const r=es(t,e),s=Q_(n),f=e[Fa].rendererFactory,m=Im(e,ep(e,s,null,J_(n),r,t,null,f.createRenderer(r,n),null,null,null));e[t.index]=m}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||vd(n,t),ns(r,t);const m=n.initialInputs;for(let A=s;A<f;A++){const T=e.data[A],Z=$l(t,e,A,n);ns(Z,t),null!==m&&pP(0,A-s,Z,T,0,m),sa(T)&&(Cs(n.index,t)[Fi]=$l(t,e,A,n))}}(e,t,n,es(n,t)),!(64&~n.flags)&&vA(e,t,n))}function z_(e,t,n=es){const r=t.localNames;if(null!==r){let s=t.index+1;for(let f=0;f<r.length;f+=2){const m=r[f+1],A=-1===m?n(t,e):e[m];e[s++]=A}}}function Q_(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=X_(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function X_(e,t,n,r,s,f,m,A,T,Z,ye){const we=cr+r,Qe=we+s,ct=function XO(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Kr);return n}(we,Qe),Pt="function"==typeof Z?Z():Z;return ct[Un]={type:e,blueprint:ct,template:n,queries:null,viewQuery:A,declTNode:t,data:ct.slice().fill(null,we),bindingStartIndex:we,expandoStartIndex:Qe,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 f?f():f,pipeRegistry:"function"==typeof m?m():m,firstChild:null,schemas:T,consts:Pt,incompleteFirstPass:!1,ssrId:ye}}let hA=()=>null;function JO(e){Oh(e)?cA(e):function wI(e){const t=bs(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(f){const m=function MI(e){var t;return null===(t=e.textContent)||void 0===t?void 0:t.replace(/\s/gm,"")}(f);return"ngetn"===m||"ngtns"===m?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let r;const s=[];for(;r=n.nextNode();)s.push(r);for(const f of s)"ngetn"===f.textContent?f.replaceWith(t.createTextNode("")):f.remove()}(e)}
1function pA(e,t,n,r,s){for(let f in t){if(!t.hasOwnProperty(f))continue;const m=t[f];if(void 0===m)continue;null!=r||(r={});let A,T=Gu.None;Array.isArray(m)?(A=m[0],T=m[1]):A=m;let Z=f;if(null!==s){if(!s.hasOwnProperty(f))continue;Z=s[f]}0===e?gA(r,n,Z,A,T):gA(r,n,Z,A)}return r}function gA(e,t,n,r,s){let f;e.hasOwnProperty(n)?(f=e[n]).push(t,r):f=e[n]=[t,r],void 0!==s&&f.push(s)}function Ys(e,t,n,r,s,f,m,A){const T=es(t,n);let ye,Z=t.inputs;!A&&null!=Z&&(ye=Z[r])?(e0(e,n,ye,r,s),il(t)&&function nP(e,t){const n=Cs(t,e);16&n[yr]||(n[yr]|=64)}(n,t.index)):3&t.type&&(r=function tP(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=m?m(s,t.value||"",r):s,f.setProperty(T,r,s))}function Y_(e,t,n,r){if(Kf()){const s=null===r?null:{"":-1},f=function lP(e,t){const n=e.directiveRegistry;let r=null,s=null;if(n)for(let m=0;m<n.length;m++){const A=n[m];if(tA(t,A.selectors,!1))if(r||(r=[]),sa(A))if(null!==A.findHostDirectiveDefs){const T=[];s=s||new Map,A.findHostDirectiveDefs(A,T,s),r.unshift(...T,A),Z_(e,t,T.length)}else r.unshift(A),Z_(e,t,0);else{var f;s=s||new Map,null===(f=A.findHostDirectiveDefs)||void 0===f||f.call(A,A,r,s),r.push(A)}}return null===r?null:[r,s]}(e,n);let m,A;null===f?m=A=null:[m,A]=f,null!==m&&mA(e,t,n,m,s,A),s&&function uP(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const f=n[t[s+1]];if(null==f)throw new zn(-301,!1);r.push(t[s],f)}}}(n,r,s)}n.mergedAttrs=Pu(n.mergedAttrs,n.attrs)}function mA(e,t,n,r,s,f){for(let we=0;we<r.length;we++)oh(vd(n,t),e,r[we].type);!function dP(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let we=0;we<r.length;we++){const Qe=r[we];Qe.providersResolver&&Qe.providersResolver(Qe)}let m=!1,A=!1,T=tp(e,t,r.length,null);for(let we=0;we<r.length;we++){const Qe=r[we];n.mergedAttrs=Pu(n.mergedAttrs,Qe.hostAttrs),fP(e,n,t,T,Qe),cP(T,Qe,s),null!==Qe.contentQueries&&(n.flags|=4),(null!==Qe.hostBindings||null!==Qe.hostAttrs||0!==Qe.hostVars)&&(n.flags|=64);const ct=Qe.type.prototype;var Z,ye;!m&&(ct.ngOnChanges||ct.ngOnInit||ct.ngDoCheck)&&((null!==(Z=e.preOrderHooks)&&void 0!==Z?Z:e.preOrderHooks=[]).push(n.index),m=!0),A||!ct.ngOnChanges&&!ct.ngDoCheck||((null!==(ye=e.preOrderCheckHooks)&&void 0!==ye?ye:e.preOrderCheckHooks=[]).push(n.index),A=!0),T++}!function eP(e,t,n){const s=t.directiveEnd,f=e.data,m=t.attrs,A=[];let T=null,Z=null;for(let ye=t.directiveStart;ye<s;ye++){const we=f[ye],Qe=n?n.get(we):null,Pt=Qe?Qe.outputs:null;T=pA(0,we.inputs,ye,T,Qe?Qe.inputs:null),Z=pA(1,we.outputs,ye,Z,Pt);const Gt=null===T||null===m||W_(t)?null:gP(T,ye,m);A.push(Gt)}null!==T&&(T.hasOwnProperty("class")&&(t.flags|=8),T.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=A,t.inputs=T,t.outputs=Z}(e,n,f)}function vA(e,t,n){const r=n.directiveStart,s=n.directiveEnd,f=n.index,m=function zf(){return wr.lFrame.currentDirectiveIndex}();try{la(f);for(let A=r;A<s;A++){const T=e.data[A],Z=t[A];Qf(A),(null!==T.hostBindings||0!==T.hostVars||null!==T.hostAttrs)&&aP(T,Z)}}finally{la(-1),Qf(m)}}function aP(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Z_(e,t,n){var r;t.componentOffset=n,(null!==(r=e.components)&&void 0!==r?r:e.components=[]).push(t.index)}function cP(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;sa(t)&&(n[""]=e)}}function fP(e,t,n,r,s){e.data[r]=s;const f=s.factory||(s.factory=qo(s.type)),m=new yc(f,sa(s),Zd);e.blueprint[r]=m,n[r]=m,function iP(e,t,n,r,s){const f=s.hostBindings;if(f){let m=e.hostBindingOpCodes;null===m&&(m=e.hostBindingOpCodes=[]);const A=~t.index;(function oP(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(m)!=A&&m.push(A),m.push(n,r,f)}}(e,t,r,tp(e,n,s.hostVars,Kr),s)}function J_(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ml(e,t,n,r,s,f){const m=es(e,t);!function q_(e,t,n,r,s,f,m){if(null==f)e.removeAttribute(t,s,n);else{const A=null==m?pr(f):m(f,r||"",s);e.setAttribute(t,s,A,n)}}(t[Rr],m,f,e.value,n,r,s)}function pP(e,t,n,r,s,f){const m=f[t];if(null!==m)for(let A=0;A<m.length;)sA(r,n,m[A++],m[A++],m[A++],m[A++])}function gP(e,t,n){let r=null,s=0;for(;s<n.length;){const f=n[s];if(0!==f)if(5!==f){if("number"==typeof f)break;if(e.hasOwnProperty(f)){null===r&&(r=[]);const m=e[f];for(let A=0;A<m.length;A+=3)if(m[A]===t){r.push(f,m[A+1],m[A+2],n[s+1]);break}}s+=2}else s+=2;else s+=4}return r}function _A(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Im(e,t){return e[fu]?e[wf][Wo]=t:e[fu]=t,e[wf]=t,t}
1function Om(e,t){const n=e[go],r=n?n.get(Da,null):null;r&&r.handleError(t)}function e0(e,t,n,r,s){for(let f=0;f<n.length;){const m=n[f++],A=n[f++],T=n[f++];sA(e.data[m],t[m],r,A,T,s)}}function mP(e,t){const n=Cs(t,e),r=n[Un];!function vP(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const s=n[Oi];null!==s&&null===n[as]&&(n[as]=I_(s,n[go])),Pm(r,n,n[Fi])}function Pm(e,t,n){pd(t);try{var r;const s=e.viewQuery;null!==s&&R_(1,s,n);const f=e.template;null!==f&&fA(e,t,f,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),null===(r=t[Ko])||void 0===r||r.finishViewCreation(e),e.staticContentQueries&&wE(e,t),e.staticViewQueries&&R_(2,e.viewQuery,n);const m=e.components;null!==m&&function _P(e,t){for(let n=0;n<t.length;n++)mP(e,t[n])}(t,m)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),s}finally{t[yr]&=-5,cg()}}var Mm=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Mm||{});let t0;function n0(e,t){return t0(e,t)}function Jd(e,t,n,r,s){if(null!=r){let f,m=!1;Oo(r)?f=r:lo(r)&&(m=!0,r=r[Oi]);const A=li(r);0===e&&null!==n?null==s?lA(t,n,A):Bc(t,n,A,s||null,!0):1===e&&null!==n?Bc(t,n,A,s||null,!0):2===e?qh(t,A,m):3===e&&t.destroyNode(A),null!=f&&function DP(e,t,n,r,s){const f=n[ii];f!==li(n)&&Jd(t,e,r,f,s);for(let A=qi;A<n.length;A++){const T=n[A];Rm(T[Un],T,e,t,r,f)}}(t,e,f,n,s)}}function AA(e,t){var n;null===(n=t[Fa].changeDetectionScheduler)||void 0===n||n.notify(10),Rm(e,t,t[Rr],2,null,null)}function CA(e,t){const n=e[mu],r=t[ao];(lo(r)||t[Ji]!==r[ao][Ji])&&(e[yr]|=2),null===n?e[mu]=[t]:n.push(t)}function r0(e,t){const n=e[mu],r=n.indexOf(t);n.splice(r,1)}function np(e,t){if(e.length<=qi)return;const n=qi+t,r=e[n];if(r){const s=r[hu];null!==s&&s!==e&&r0(s,r),t>0&&(e[n-1][Wo]=r[Wo]);const f=Sl(e,qi+t);!function EA(e,t){AA(e,t),t[Oi]=null,t[xo]=null}(r[Un],r);const m=f[Ko];null!==m&&m.detachView(f[Un]),r[ao]=null,r[Wo]=null,r[yr]&=-129}return r}function rp(e,t){if(ol(t))return;const n=t[Rr];n.destroyNode&&Rm(e,t,n,3,null,null),function AP(e){let t=e[fu];if(!t)return o0(e[Un],e);for(;t;){let n=null;if(lo(t))n=t[fu];else{const r=t[qi];r&&(n=r)}if(!n){for(;t&&!t[Wo]&&t!==e;)lo(t)&&o0(t[Un],t),t=t[ao];null===t&&(t=e),lo(t)&&o0(t[Un],t),n=t&&t[Wo]}t=n}}(t)}function o0(e,t){if(ol(t))return;const n=re(null);try{t[yr]&=-129,t[yr]|=256,t[Lo]&&B(t[Lo]),function TP(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof yc)){const f=n[r+1];if(Array.isArray(f))for(let m=0;m<f.length;m+=2){const A=s[f[m]],T=f[m+1];Ho(4,A,T);try{T.call(A)}finally{Ho(5,A,T)}}else{Ho(4,s,f);try{f.call(s)}finally{Ho(5,s,f)}}}}}(e,t),function bP(e,t){const n=e.cleanup,r=t[ls];if(null!==n)for(let m=0;m<n.length-1;m+=2)if("string"==typeof n[m]){const A=n[m+3];A>=0?r[A]():r[-A].unsubscribe(),m+=2}else n[m].call(r[n[m+1]]);null!==r&&(t[ls]=null);const s=t[Ea];if(null!==s){t[Ea]=null;for(let m=0;m<s.length;m++)(0,s[m])()}const f=t[us];if(null!==f){t[us]=null;for(const m of f)m.destroy()}}(e,t),1===t[Un].type&&t[Rr].destroy();const r=t[hu];if(null!==r&&Oo(t[ao])){r!==t[ao]&&r0(r,t);const s=t[Ko];null!==s&&s.detachView(e)}Qg(t)}finally{re(n)}}function s0(e,t,n){return function bA(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[Oi];{const{componentOffset:s}=r;if(s>-1){const{encapsulation:f}=e.data[r.directiveStart+s];if(f===Zl.None||f===Zl.Emulated)return null}return es(r,n)}}(e,t.parent,n)}function TA(e,t,n){return DA(e,t,n)}let a0,DA=function SA(e,t,n){return 40&e.type?es(e,n):null};function wm(e,t,n,r){const s=s0(e,r,t),f=t[Rr],A=TA(r.parent||t[xo],r,t);if(null!=s)if(Array.isArray(n))for(let T=0;T<n.length;T++)uA(f,s,n[T],A,!1);else uA(f,s,n,A,!1);void 0!==a0&&a0(f,r,t,n,s)}function jc(e,t){if(null!==t){const n=t.type;if(3&n)return es(t,e);if(4&n)return l0(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return jc(e,r);{const s=e[t.index];return Oo(s)?l0(-1,s):li(s)}}if(128&n)return jc(e,t.next);if(32&n)return n0(t,e)()||li(e[t.index]);{const r=OA(e,t);return null!==r?Array.isArray(r)?r[0]:jc(aa(e[Ji]),r):jc(e,t.next)}}return null}function OA(e,t){return null!==t?e[Ji][xo].projection[t.projection]:null}function l0(e,t){const n=qi+e+1;
1if(n<t.length){const r=t[n],s=r[Un].firstChild;if(null!==s)return jc(r,s)}return t[ii]}function u0(e,t,n,r,s,f,m){for(;null!=n;){if(128===n.type){n=n.next;continue}const A=r[n.index],T=n.type;if(m&&0===t&&(A&&ns(li(A),r),n.flags|=2),32&~n.flags)if(8&T)u0(e,t,n.child,r,s,f,!1),Jd(t,e,s,A,f);else if(32&T){const Z=n0(n,r);let ye;for(;ye=Z();)Jd(t,e,s,ye,f);Jd(t,e,s,A,f)}else 16&T?PA(e,t,r,n,s,f):Jd(t,e,s,A,f);n=m?n.projectionNext:n.next}}function Rm(e,t,n,r,s,f){u0(n,r,e.firstChild,t,s,f,!1)}function PA(e,t,n,r,s,f){const m=n[Ji],T=m[xo].projection[r.projection];if(Array.isArray(T))for(let Z=0;Z<T.length;Z++)Jd(t,e,s,T[Z],f);else{let Z=T;const ye=m[ao];Md(r)&&(Z.flags|=128),u0(e,t,Z,ye,s,f,!0)}}function qd(e,t,n,r){const s=re(null);try{var f,m,A;const T=t.tView,we=ep(e,T,n,4096&e[yr]?4096:16,null,t,null,null,null!==(f=null==r?void 0:r.injector)&&void 0!==f?f:null,null!==(m=null==r?void 0:r.embeddedViewInjector)&&void 0!==m?m:null,null!==(A=null==r?void 0:r.dehydratedView)&&void 0!==A?A:null);we[hu]=e[t.index];const ct=e[Ko];return null!==ct&&(we[Ko]=ct.createEmbeddedView(T)),Pm(T,we,n),we}finally{re(s)}}function MA(e,t){const n=qi+t;if(n<e.length)return e[n]}function Vc(e,t){return!t||null===t.firstChild||Md(e)}function ef(e,t,n,r=!0){const s=t[Un];if(function CP(e,t,n,r){const s=qi+r,f=n.length;r>0&&(n[s-1][Wo]=t),r<f-qi?(t[Wo]=n[s],Jc(n,qi+r,t)):(n.push(t),t[Wo]=null),t[ao]=n;const m=t[hu];null!==m&&n!==m&&CA(m,t);const A=t[Ko];null!==A&&A.insertView(e),$f(t),t[yr]|=128}(s,t,e,n),r){const m=l0(n,e),A=t[Rr],T=A.parentNode(e[ii]);null!==T&&function EP(e,t,n,r,s,f){r[Oi]=s,r[xo]=t,Rm(e,r,n,1,s,f)}(s,e[xo],A,t,T,m)}const f=t[as];null!==f&&null!==f.firstChild&&(f.firstChild=null)}function c0(e,t){const n=np(e,t);return void 0!==n&&rp(n[Un],n),n}function tf(e,t,n,r,s=!1){for(;null!==n;){if(128===n.type){n=s?n.projectionNext:n.next;continue}const f=t[n.index];null!==f&&r.push(li(f)),Oo(f)&&d0(f,r);const m=n.type;if(8&m)tf(e,t,n.child,r);else if(32&m){const A=n0(n,t);let T;for(;T=A();)r.push(T)}else if(16&m){const A=OA(t,n);if(Array.isArray(A))r.push(...A);else{const T=aa(t[Ji]);tf(T[Un],T,A,r,!0)}}n=s?n.projectionNext:n.next}return r}function d0(e,t){for(let n=qi;n<e.length;n++){const r=e[n],s=r[Un].firstChild;null!==s&&tf(r[Un],r,s,t)}e[ii]!==e[Oi]&&t.push(e[ii])}let wA=[];const RP=(0,u.A)((0,u.A)({},ne),{},{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{yu(e.lView)},consumerOnSignalRead(){this.lView[Lo]=this}}),xP=(0,u.A)((0,u.A)({},ne),{},{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=aa(e.lView);for(;t&&!RA(t[Un]);)t=aa(t);t&&ud(t)},consumerOnSignalRead(){this.lView[Lo]=this}});function RA(e){return 2!==e.type}function NA(e){if(null===e[us])return;let t=!0;for(;t;){let n=!1;for(const r of e[us])r.dirty&&(n=!0,null===r.zone||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(8192&e[yr])}}function Nm(e,t=!0,n=0){const s=e[Fa].rendererFactory;var m;null===(m=s.begin)||void 0===m||m.call(s);try{!function kP(e,t){const n=Hf();try{Fl(!0),f0(e,t);let r=0;for(;cd(e);){if(100===r)throw new zn(103,!1);r++,f0(e,1)}}finally{Fl(n)}}(e,n)}catch(T){throw t&&Om(e,T),T}finally{var A;null===(A=s.end)||void 0===A||A.call(s)}}function LA(e,t,n,r){if(ol(t))return;const s=t[yr];pd(t);let A=!0,T=null,Z=null;RA(e)?(Z=function OP(e){var t;return null!==(t=e[Lo])&&void 0!==t?t:function MP(e){var t;const n=null!==(t=wA.pop())&&void 0!==t?t:Object.create(RP);return n.lView=e,n}(e)}(t),T=_(Z)):null===be()?(A=!1,Z=function NP(e){var t;const n=null!==(t=e[Lo])&&void 0!==t?t:Object.create(xP);return n.lView=e,n}(t),T=_(Z)):t[Lo]&&(B(t[Lo]),t[Lo]=null);try{jf(t),function Ul(e){return wr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&fA(e,t,n,2,r);const ye=!(3&~s);if(ye){const ct=e.preOrderCheckHooks;null!==ct&&ja(t,ct,null)}else{const ct=e.preOrderHooks;null!==ct&&Du(t,ct,0,null),_c(t,0)}if(function FP(e){for(let t=em(e);null!==t;t=tm(t)){if(!(2&t[yr]))continue;const n=t[mu];for(let r=0;r<n.length;r++)ud(n[r])}}(t),NA(t),kA(t,0),null!==e.contentQueries&&wE(e,t),ye){const ct=e.contentCheckHooks;null!==ct&&ja(t,ct)}else{const ct=e.contentHooks;null!==ct&&Du(t,ct,1),_c(t,1)}!function BP(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)la(~s);else{const f=s,m=n[++r],A=n[++r];sg(m,f);const T=t[f];Ho(24,T),A(2,T),Ho(25,T)}}}finally{la(-1)}}(e,t);const we=e.components;
1null!==we&&UA(t,we,0);const Qe=e.viewQuery;if(null!==Qe&&R_(2,Qe,r),ye){const ct=e.viewCheckHooks;null!==ct&&ja(t,ct)}else{const ct=e.viewHooks;null!==ct&&Du(t,ct,2),_c(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[gu]){for(const ct of t[gu])ct();t[gu]=null}t[yr]&=-73}catch(ye){throw yu(t),ye}finally{null!==Z&&(R(Z,T),A&&function wP(e){e.lView[Lo]!==e&&(e.lView=null,wA.push(e))}(Z)),cg()}}function kA(e,t){for(let n=em(e);null!==n;n=tm(n))for(let r=qi;r<n.length;r++)FA(n[r],t)}function UP(e,t,n){FA(Cs(t,e),n)}function FA(e,t){hc(e)&&f0(e,t)}function f0(e,t){const r=e[Un],s=e[yr],f=e[Lo];let m=!!(0===t&&16&s);if(m||(m=!!(64&s&&0===t)),m||(m=!!(1024&s)),m||(m=!(null==f||!f.dirty||!w(f))),m||(m=!1),f&&(f.dirty=!1),e[yr]&=-9217,m)LA(r,e,r.template,e[Fi]);else if(8192&s){NA(e),kA(e,1);const A=r.components;null!==A&&UA(e,A,1)}}function UA(e,t,n){for(let r=0;r<t.length;r++)UP(e,t[r],n)}function ip(e,t){var n;const r=Hf()?64:1088;for(null===(n=e[Fa].changeDetectionScheduler)||void 0===n||n.notify(t);e;){e[yr]|=r;const s=aa(e);if(uc(e)&&!s)return e;e=s}return null}class op{get rootNodes(){const t=this._lView,n=t[Un];return tf(n,t,n.firstChild,[])}constructor(t,n,r=!0){(0,o.A)(this,"_lView",void 0),(0,o.A)(this,"_cdRefInjectingView",void 0),(0,o.A)(this,"notifyErrorHandler",void 0),(0,o.A)(this,"_appRef",null),(0,o.A)(this,"_attachedToViewContainer",!1),this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Fi]}get dirty(){var t;return!!(9280&this._lView[yr])||!(null===(t=this._lView[Lo])||void 0===t||!t.dirty)}set context(t){this._lView[Fi]=t}get destroyed(){return ol(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ao];if(Oo(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(np(t,r),Sl(n,r))}this._attachedToViewContainer=!1}rp(this._lView[Un],this._lView)}onDestroy(t){pc(this._lView,t)}markForCheck(){ip(this._cdRefInjectingView||this._lView,4)}markForRefresh(){ud(this._cdRefInjectingView||this._lView)}detach(){this._lView[yr]&=-129}reattach(){$f(this._lView),this._lView[yr]|=128}detectChanges(){this._lView[yr]|=1024,Nm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new zn(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=uc(this._lView),n=this._lView[hu];null!==n&&!t&&r0(n,this._lView),AA(this._lView[Un],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new zn(902,!1);this._appRef=t;const n=uc(this._lView),r=this._lView[hu];null!==r&&!n&&CA(r,this._lView),$f(this._lView)}}let sp=(()=>{class e{}return(0,o.A)(e,"__NG_ELEMENT_ID__",$P),e})();const jP=sp,VP=class extends jP{constructor(t,n,r){super(),(0,o.A)(this,"_declarationLView",void 0),(0,o.A)(this,"_declarationTContainer",void 0),(0,o.A)(this,"elementRef",void 0),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const s=qd(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new op(s)}};function $P(){return xm(zr(),gn())}function xm(e,t){return 4&e.type?new VP(t,e,ll(e,t)):null}function $c(e,t,n,r,s){let f=e.data[t];if(null===f)f=function m0(e,t,n,r,s){const f=rg(),m=gc(),T=e.data[t]=function qP(e,t,n,r,s,f){let m=t?t.injectorIndex:-1,A=0;return sl()&&(A|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:m,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:A,providerIndexes:0,value:s,attrs:f,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?f:f&&f.parent,n,t,r,s);return function JP(e,t,n,r){null===e.firstChild&&(e.firstChild=t),null!==n&&(r?null==n.child&&null!==t.parent&&(n.child=t):null===n.next&&(n.next=t,t.prev=n))}(e,T,f,m),T}
1(e,t,n,r,s),function Gf(){return wr.lFrame.inI18n}()&&(f.flags|=32);else if(64&f.type){f.type=n,f.value=r,f.attrs=s;const m=function Au(){const e=wr.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();f.injectorIndex=null===m?-1:m.injectorIndex}return Gs(f,!0),f}const uM=new RegExp("^(\\d+)*(".concat(Lh,"|").concat(xh,")*(.*)"));function _0(e){return e.index-cr}function fp(e,t,n,r){const s=_0(r);let f=function YA(e,t){const n=e.i18nNodes;if(n)return n.get(t)}(e,s);if(void 0===f){const A=e.data[Rc];if(null!=A&&A[s])f=function ZA(e,t){const[n,...r]=function dM(e){const t=e.match(uM),[n,r,s,f]=t,m=r?parseInt(r,10):s,A=[];for(const[T,Z,ye]of f.matchAll(/(f|n)(\d*)/g)){const we=parseInt(ye,10)||1;A.push(Z,we)}return[m,...A]}(e);let s;s=n===xh?t[Ji][Oi]:n===Lh?function YE(e){return e.ownerDocument.body}(t[Ji][Oi]):li(t[Number(n)+cr]);return function pM(e,t){let n=e;for(let r=0;r<t.length;r+=2){const s=t[r],f=t[r+1];for(let m=0;m<f;m++)switch(s){case kh:n=n.firstChild;break;case lm:n=n.nextSibling}}return n}(s,r)}(A[s],n);else if(t.firstChild===r)f=e.firstChild;else{var m;const T=null===r.prev,Z=null!==(m=r.prev)&&void 0!==m?m:r.parent;if(function fM(e){var t;return!e.prev&&8===(null===(t=e.parent)||void 0===t?void 0:t.type)}(r))f=P_(e,_0(r.parent));else{let ye=es(Z,n);if(T)f=ye.firstChild;else{const we=_0(Z),Qe=P_(e,we);f=2===Z.type&&Qe?Um(M_(e,we)+1,Qe):ye.nextSibling}}}}return f}function Um(e,t){let n=t;for(let r=0;r<e;r++)n=n.nextSibling;return n}function _M(e){var t;return null!==(t=e.textContent)&&void 0!==t&&t.trimStart().startsWith("ngh=")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}let qA=!1;function NM(e,t,n){for(const r of n.node.cases[n.case]){const s=t.get(r.index-cr);s&&qh(e,s,!1)}}function rC(e){var t;const n=null!==(t=e[Es])&&void 0!==t?t:[],s=e[ao][Rr],f=[];for(const m of n)void 0!==m.data[Uh]?f.push(m):xM(m,s);e[Es]=f}function xM(e,t){let n=0,r=e.firstChild;if(r){const s=e.data[ca];for(;n<s;){const f=r.nextSibling;qh(t,r,!1),r=f,n++}}}function T0(e){rC(e);const t=e[Oi];lo(t)&&Bm(t);for(let n=qi;n<e.length;n++)Bm(e[n])}function Bm(e){!function RM(e){const t=e[as];if(t){const{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){const s=e[Rr];for(const f of r.values())NM(s,n,f)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}(e);const t=e[Un];for(let n=cr;n<t.bindingStartIndex;n++)Oo(e[n])?T0(e[n]):lo(e[n])&&Bm(e[n])}function iC(e){const t=e._views;for(const n of t){const r=TE(n);null!==r&&null!==r[Oi]&&(lo(r)?Bm(r):T0(r))}}let oC=()=>null;function FM(e,t){const n=e[Es];return t&&null!==n&&0!==n.length?n[0].data[Fh]===t?n.shift():(rC(e),null):null}function rf(e,t){return oC(e,t)}class BM{}class sC{}class jM{resolveComponentFactory(t){throw Error("No component factory found for ".concat(ki(t),"."))}}class sf{}(0,o.A)(sf,"NULL",new jM);class S0{}let VM=(()=>{class e{constructor(){(0,o.A)(this,"destroyNode",null)}}return(0,o.A)(e,"__NG_ELEMENT_ID__",()=>function $M(){const e=gn(),n=Cs(zr().index,e);return(lo(n)?n:e)[Rr]}()),e})(),WM=(()=>{class t{}return(0,o.A)(t,"\u0275prov",Fr({token:t,providedIn:"root",factory:()=>null})),t})();function zu(e){return!!Do(e)}function Vm(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,f=0;if(null!==t)for(let m=0;m<t.length;m++){const A=t[m];"number"==typeof A?f=A:1==f?s=wa(s,A):2==f&&(r=wa(r,A+": "+t[++m]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}class uC extends sf{constructor(t){super(),(0,o.A)(this,"ngModule",void 0),this.ngModule=t}resolveComponentFactory(t){const n=Wr(t);return new mp(n,this.ngModule)}}function cC(e,t){const n=[];for(const r in e){if(!e.hasOwnProperty(r))continue;const s=e[r];if(void 0===s)continue;const f=Array.isArray(s),m=f?s[0]:s;n.push(t?{propName:m,templateName:r,isSignal:!!((f?s[1]:Gu.None)&Gu.SignalBased)}:{propName:m,templateName:r})}return n}class mp extends sC{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=cC(t.inputs,!0);if(null!==n)for(const s of r)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return r}get outputs(){return cC(this.componentDef.outputs,!1)}constructor(t,n){super(),(0,o.A)(this,"componentDef",void 0),(0,o.A)(this,"ngModule",void 0),(0,o.A)(this,"selector",void 0),(0,o.A)(this,"componentType",void 0),(0,o.A)(this,"ngContentSelectors",void 0),(0,o.A)(this,"isBoundToModule",void 0),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function HO(e){return e.map(KO).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,s){const f=re(null);try{var A;let T=(s=s||this.ngModule)instanceof Ri?s:null===(A=s)||void 0===A?void 0:A.injector;T&&null!==this.componentDef.getStandaloneInjector&&(T=this.componentDef.getStandaloneInjector(T)||T);const Z=T?new jl(t,T):t,ye=Z.get(S0,null);if(null===ye)throw new zn(407,!1);
1const ct={rendererFactory:ye,sanitizer:Z.get(WM,null),changeDetectionScheduler:Z.get(ds,null)},Pt=ye.createRenderer(null,this.componentDef),Gt=this.componentDef.selectors[0][0]||"div",bn=r?function YO(e,t,n,r){const f=r.get(dm,!1)||n===Zl.ShadowDom,m=e.selectRootElement(t,f);return function ZO(e){hA(e)}(m),m}(Pt,r,this.componentDef.encapsulation,Z):Dm(Pt,Gt,function GM(e){const t=e.toLowerCase();return"svg"===t?Ff:"math"===t?"math":null}(Gt));let kn=512;this.componentDef.signals?kn|=4096:this.componentDef.onPush||(kn|=16);let fn=null;null!==bn&&(fn=I_(bn,Z,!0));const mr=X_(0,null,null,1,0,null,null,null,null,null,null),Ar=ep(null,mr,null,kn,null,null,ct,Pt,Z,null,fn);Ar[cr]=bn,pd(Ar);let bi,_o=null;try{const Oa=this.componentDef;let tc,tE=null;Oa.findHostDirectiveDefs?(tc=[],tE=new Map,Oa.findHostDirectiveDefs(Oa,tc,tE),tc.push(Oa)):tc=[Oa];const XD=r?["ng-version","19.1.3"]:function zM(e){const{attrs:t,classes:n}=function GO(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let f=e[r];if("string"==typeof f)2===s?""!==f&&t.push(f,e[++r]):8===s&&n.push(f);else{if(!za(s))break;s=f}r++}return{attrs:t,classes:n}}(e),r=t;return n.length&&r.push(1,...n),r}(this.componentDef.selectors[0]),tu=$c(mr,cr,2,"#host",XD);for(const Xk of tc)tu.mergedAttrs=Pu(tu.mergedAttrs,Xk.hostAttrs);tu.mergedAttrs=Pu(tu.mergedAttrs,XD),Vm(tu,tu.mergedAttrs,!0),bn&&dA(Pt,bn,tu),_o=function XM(e,t,n,r,s,f){const m=s[Un];let A=null;null!==t&&(A=I_(t,s[go]));const T=f.rendererFactory.createRenderer(t,n),Z=ep(s,Q_(n),null,J_(n),s[e.index],e,f,T,null,null,A);return m.firstCreatePass&&Z_(m,e,r.length-1),Im(s,Z),s[e.index]=Z}(tu,bn,Oa,tc,Ar,ct),void 0!==n&&function ZM(e,t,n){const r=e.projection=[];for(let s=0;s<t.length;s++){const f=n[s];r.push(null!=f&&f.length?Array.from(f):null)}}(tu,this.ngContentSelectors,n),bi=function YM(e,t,n,r,s,f){const m=zr(),A=s[Un],T=es(m,s);mA(A,s,m,n,null,r);for(let ye=0;ye<n.length;ye++)ns($l(s,A,m.directiveStart+ye,m),s);vA(A,s,m),T&&ns(T,s);const Z=$l(s,A,m.directiveStart+m.componentOffset,m);if(e[Fi]=s[Fi]=Z,null!==f)for(const ye of f)ye(Z,t);return N_(A,m,s),Z}(_o,Oa,tc,tE,Ar,[JM]),Pm(mr,Ar,null)}catch(Oa){throw null!==_o&&Qg(_o),Qg(Ar),Oa}finally{cg()}const Uo=As(mr,cr);return new QM(this.componentType,bi,ll(Uo,Ar),Ar,Uo)}finally{re(f)}}}class QM extends BM{constructor(t,n,r,s,f){super(),(0,o.A)(this,"location",void 0),(0,o.A)(this,"_rootLView",void 0),(0,o.A)(this,"_tNode",void 0),(0,o.A)(this,"instance",void 0),(0,o.A)(this,"hostView",void 0),(0,o.A)(this,"changeDetectorRef",void 0),(0,o.A)(this,"componentType",void 0),(0,o.A)(this,"previousInputValues",null),this.location=r,this._rootLView=s,this._tNode=f,this.instance=n,this.hostView=this.changeDetectorRef=new op(s,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let s;if(null!==r&&(s=r[t])){var f;if(null!==(f=this.previousInputValues)&&void 0!==f||(this.previousInputValues=new Map),this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const m=this._rootLView;e0(m[Un],m,s,t,n),this.previousInputValues.set(t,n),ip(Cs(this._tNode.index,m),1)}}get injector(){return new to(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function JM(){const e=zr();Su(gn()[Un],e)}let $m=(()=>{class e{}return(0,o.A)(e,"__NG_ELEMENT_ID__",qM),e})();function qM(){return hC(zr(),gn())}const ew=$m,dC=class extends ew{constructor(t,n,r){super(),(0,o.A)(this,"_lContainer",void 0),(0,o.A)(this,"_hostTNode",void 0),(0,o.A)(this,"_hostLView",void 0),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return ll(this._hostTNode,this._hostLView)}get injector(){return new to(this._hostTNode,this._hostLView)}get parentInjector(){const t=_d(this._hostTNode,this._hostLView);if(th(t)){const n=Mu(t,this._hostLView),r=Vl(t);return new to(n[Un].data[r+8],n)}return new to(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=fC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-qi}createEmbeddedView(t,n,r){let s,f;"number"==typeof r?s=r:null!=r&&(s=r.index,f=r.injector);const m=rf(this._lContainer,t.ssrId),A=t.createEmbeddedViewImpl(n||{},f,m);return this.insertImpl(A,s,Vc(this._hostTNode,m)),A}createComponent(t,n,r,s,f){var m,A,T;const Z=t&&!function rl(e){return"function"==typeof e}(t);let ye;if(Z)ye=n;
1else{const kn=n||{};ye=kn.index,r=kn.injector,s=kn.projectableNodes,f=kn.environmentInjector||kn.ngModuleRef}const we=Z?t:new mp(Wr(t)),Qe=r||this.parentInjector;if(!f&&null==we.ngModule){const fn=(Z?Qe:this.parentInjector).get(Ri,null);fn&&(f=fn)}const ct=Wr(null!==(m=we.componentType)&&void 0!==m?m:{}),Pt=rf(this._lContainer,null!==(A=null==ct?void 0:ct.id)&&void 0!==A?A:null),Gt=null!==(T=null==Pt?void 0:Pt.firstChild)&&void 0!==T?T:null,bn=we.create(Qe,s,Gt,f);return this.insertImpl(bn.hostView,ye,Vc(this._hostTNode,Pt)),bn}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const s=t._lView;if(function Yp(e){return Oo(e[ao])}(s)){const A=this.indexOf(t);if(-1!==A)this.detach(A);else{const T=s[ao],Z=new dC(T,T[xo],T[ao]);Z.detach(Z.indexOf(t))}}const f=this._adjustIndex(n),m=this._lContainer;return ef(m,s,f,r),t.attachToViewContainerRef(),Jc(O0(m),f,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=fC(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=np(this._lContainer,n);r&&(Sl(O0(this._lContainer),n),rp(r[Un],r))}detach(t){const n=this._adjustIndex(t,-1),r=np(this._lContainer,n);return r&&null!=Sl(O0(this._lContainer),n)?new op(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function fC(e){return e[8]}function O0(e){return e[8]||(e[8]=[])}function hC(e,t){let n;const r=t[e.index];return Oo(r)?n=r:(n=_A(r,t,null,e),t[e.index]=n,Im(t,n)),pC(n,t,e,r),new dC(n,e,t)}let pC=mC,P0=()=>!1;function mC(e,t,n,r){if(e[ii])return;let s;s=8&n.type?li(r):function tw(e,t){const n=e[Rr],r=n.createComment(""),s=es(t,e),f=n.parentNode(s);return Bc(n,f,r,n.nextSibling(s),!1),r}(t,n),e[ii]=s}function nw(e,t,n){var r;if(e[ii]&&e[Es])return!0;const s=n[as],f=t.index-cr;if(!s||function wd(e){if(Md(e))return!0;let t=e.parent;for(;t;){if(Md(e)||Pd(t))return!0;t=t.parent}return!1}(t)||kc(s,f))return!1;const A=P_(s,f),T=null===(r=s.data[ju])||void 0===r?void 0:r[f],[Z,ye]=function kM(e,t){const n=[];for(const s of t)for(let f=0;f<(null!==(r=s[cl])&&void 0!==r?r:1);f++){var r;const m={data:s,firstChild:null};s[ca]>0&&(m.firstChild=e,e=Um(s[ca],e)),n.push(m)}return[e,n]}(A,T);return e[ii]=Z,e[Es]=ye,!0}function rw(e,t,n,r){P0(e,n,t)||mC(e,t,n,r)}class M0{constructor(t){(0,o.A)(this,"queryList",void 0),(0,o.A)(this,"matches",null),this.queryList=t}clone(){return new M0(this.queryList)}setDirty(){this.queryList.setDirty()}}class w0{constructor(t=[]){(0,o.A)(this,"queries",void 0),this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let f=0;f<r;f++){const m=n.getByIndex(f);s.push(this.queries[m.indexInDeclarationView].clone())}return new w0(s)}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!==k0(t,n).matches&&this.queries[n].setDirty()}}class vC{constructor(t,n,r=null){(0,o.A)(this,"flags",void 0),(0,o.A)(this,"read",void 0),(0,o.A)(this,"predicate",void 0),this.flags=n,this.read=r,this.predicate="string"==typeof t?function uw(e){return e.split(",").map(t=>t.trim())}(t):t}}class R0{constructor(t=[]){(0,o.A)(this,"queries",void 0),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 s=null!==n?n.length:0,f=this.getByIndex(r).embeddedTView(t,s);f&&(f.indexInDeclarationView=r,null!==n?n.push(f):n=[f])}return null!==n?new R0(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 N0{constructor(t,n=-1){(0,o.A)(this,"metadata",void 0),(0,o.A)(this,"matches",null),(0,o.A)(this,"indexInDeclarationView",-1),(0,o.A)(this,"crossesNgTemplate",!1),(0,o.A)(this,"_declarationNodeIndex",void 0),(0,o.A)(this,"_appliesToNextNode",!0),this.metadata=t,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 N0(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}
1matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const f=r[s];this.matchTNodeWithReadOption(t,n,ow(n,f)),this.matchTNodeWithReadOption(t,n,yd(n,t,f,!1,!1))}else r===sp?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,yd(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Sc||s===$m||s===sp&&4&n.type)this.addMatch(n.index,-2);else{const f=yd(n,t,s,!1,!1);null!==f&&this.addMatch(n.index,f)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function ow(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 aw(e,t,n,r){return-1===n?function sw(e,t){return 11&e.type?ll(e,t):4&e.type?xm(e,t):null}(t,e):-2===n?function lw(e,t,n){return n===Sc?ll(t,e):n===sp?xm(t,e):n===$m?hC(t,e):void 0}(e,t,r):$l(e,e[Un],n,t)}function _C(e,t,n,r){const s=t[Ko].queries[r];if(null===s.matches){const f=e.data,m=n.matches,A=[];for(let T=0;null!==m&&T<m.length;T+=2){const Z=m[T];A.push(Z<0?null:aw(t,f[Z],m[T+1],n.metadata.read))}s.matches=A}return s.matches}function x0(e,t,n,r){const s=e.queries.getByIndex(n),f=s.matches;if(null!==f){const m=_C(e,t,s,n);for(let A=0;A<f.length;A+=2){const T=f[A];if(T>0)r.push(m[A/2]);else{const Z=f[A+1],ye=t[-T];for(let we=qi;we<ye.length;we++){const Qe=ye[we];Qe[hu]===Qe[ao]&&x0(Qe[Un],Qe,Z,r)}if(null!==ye[mu]){const we=ye[mu];for(let Qe=0;Qe<we.length;Qe++){const ct=we[Qe];x0(ct[Un],ct,Z,r)}}}}}return r}function yC(e,t,n){var r;const s=new Ih(!(4&~n));return function Jp(e,t,n,r){const s=Eu(t);s.push(n),e.firstCreatePass&&Zp(e).push(r,s.length-1)}(e,t,s,s.destroy),(null!==(r=t[Ko])&&void 0!==r?r:t[Ko]=new w0).queries.push(new M0(s))-1}function CC(e,t,n){null===e.queries&&(e.queries=new R0),e.queries.track(new N0(t,n))}function k0(e,t){return e.queries.getByIndex(t)}function bC(e,t){const n=e[Un],r=k0(n,t);return r.crossesNgTemplate?x0(n,e,t,[]):_C(n,e,r,t)}class Kc{}class xC{}function Ew(e,t){return new U0(e,null!=t?t:null,[])}class U0 extends Kc{constructor(t,n,r,s=!0){super(),(0,o.A)(this,"ngModuleType",void 0),(0,o.A)(this,"_parent",void 0),(0,o.A)(this,"_bootstrapComponents",[]),(0,o.A)(this,"_r3Injector",void 0),(0,o.A)(this,"instance",void 0),(0,o.A)(this,"destroyCbs",[]),(0,o.A)(this,"componentFactoryResolver",new uC(this)),this.ngModuleType=t,this._parent=n;const f=Do(t);this._bootstrapComponents=fa(f.bootstrap),this._r3Injector=gh(t,n,[{provide:Kc,useValue:this},{provide:sf,useValue:this.componentFactoryResolver},...r],ki(t),new Set(["environment"])),s&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}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 B0 extends xC{constructor(t){super(),(0,o.A)(this,"moduleType",void 0),this.moduleType=t}create(t){return new U0(this.moduleType,t,[])}}class LC extends Kc{constructor(t){super(),(0,o.A)(this,"injector",void 0),(0,o.A)(this,"componentFactoryResolver",new uC(this)),(0,o.A)(this,"instance",null);const n=new Ki([...t.providers,{provide:Kc,useValue:this},{provide:sf,useValue:this.componentFactoryResolver}],t.parent||wi(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function j0(e,t,n=null){return new LC({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Cw=(()=>{var e;class t{constructor(r){(0,o.A)(this,"_injector",void 0),(0,o.A)(this,"cachedInjectors",new Map),this._injector=r}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){const s=au(0,r.type),f=s.length>0?j0([s],this._injector,"Standalone[".concat(r.type.name,"]")):null;this.cachedInjectors.set(r,f)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"environment",factory:()=>new e(Ei(Ri))})),t})();function kC(e){return To(()=>{var t;const n=jC(e),r=(0,u.A)((0,u.A)({},n),{},{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Wa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:n.standalone?f=>f.get(Cw).getOrCreateStandaloneInjector(r):null,getExternalStyles:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||Zl.Emulated,styles:e.styles||ri,_:null,schemas:e.schemas||null,tView:null,id:""});n.standalone&&Eo("NgStandalone"),VC(r);const s=e.dependencies;return r.directiveDefs=Km(s,!1),r.pipeDefs=Km(s,!0),r.id=function Dw(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":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];for(const f of r.join("|"))t=Math.imul(31,t)+f.charCodeAt(0)|0;return t+=2147483648,"c"+t}(r),r})}function bw(e){return Wr(e)||yo(e)}function Tw(e){return null!==e}function V0(e){return To(()=>({type:e.type,bootstrap:e.bootstrap||ri,declarations:e.declarations||ri,imports:e.imports||ri,exports:e.exports||r
1i,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function FC(e,t){if(null==e)return vs;const n={};for(const s in e)if(e.hasOwnProperty(s)){const f=e[s];let m,A,T=Gu.None;var r;Array.isArray(f)?(T=f[0],m=f[1],A=null!==(r=f[2])&&void 0!==r?r:m):(m=f,A=f),t?(n[m]=T!==Gu.None?[s,T]:s,t[m]=A):n[m]=s}return n}function UC(e){return To(()=>{const t=jC(e);return VC(t),t})}function BC(e){var t;return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:null===(t=e.standalone)||void 0===t||t,onDestroy:e.type.prototype.ngOnDestroy||null}}function jC(e){var t;const n={};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:n,inputTransforms:null,inputConfig:e.inputs||vs,exportAs:e.exportAs||null,standalone:null===(t=e.standalone)||void 0===t||t,signals:!0===e.signals,selectors:e.selectors||ri,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:FC(e.inputs,n),outputs:FC(e.outputs),debugInfo:null}}function VC(e){var t;null===(t=e.features)||void 0===t||t.forEach(n=>n(e))}function Km(e,t){if(!e)return null;const n=t?Io:bw;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Tw)}function $0(e){let t=function $C(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(sa(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new zn(903,!1);s=t.\u0275dir}if(s){if(n){r.push(s);const m=e;m.inputs=Hm(e.inputs),m.inputTransforms=Hm(e.inputTransforms),m.declaredInputs=Hm(e.declaredInputs),m.outputs=Hm(e.outputs);const A=s.hostBindings;A&&ww(e,A);const T=s.viewQuery,Z=s.contentQueries;if(T&&Pw(e,T),Z&&Mw(e,Z),Iw(e,s),ma(e.outputs,s.outputs),sa(s)&&s.data.animation){const ye=e.data;ye.animation=(ye.animation||[]).concat(s.data.animation)}}const f=s.features;if(f)for(let m=0;m<f.length;m++){const A=f[m];A&&A.ngInherit&&A(e),A===$0&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Ow(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Pu(s.hostAttrs,n=Pu(n,s.hostAttrs))}}(r)}function Iw(e,t){for(const r in t.inputs){if(!t.inputs.hasOwnProperty(r)||e.inputs.hasOwnProperty(r))continue;const s=t.inputs[r];if(void 0!==s&&(e.inputs[r]=s,e.declaredInputs[r]=t.declaredInputs[r],null!==t.inputTransforms)){var n;const f=Array.isArray(s)?s[0]:s;if(!t.inputTransforms.hasOwnProperty(f))continue;null!==(n=e.inputTransforms)&&void 0!==n||(e.inputTransforms={}),e.inputTransforms[f]=t.inputTransforms[f]}}}function Hm(e){return e===vs?{}:e===ri?[]:e}function Pw(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Mw(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,f)=>{t(r,s,f),n(r,s,f)}:t}function ww(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}function WC(e){const t=n=>{const r=Array.isArray(e);null===n.hostDirectives?(n.findHostDirectiveDefs=KC,n.hostDirectives=r?e.map(W0):[e]):r?n.hostDirectives.unshift(...e.map(W0)):n.hostDirectives.unshift(e)};return t.ngInherit=!0,t}function KC(e,t,n){if(null!==e.hostDirectives)for(const r of e.hostDirectives)if("function"==typeof r){const s=r();for(const f of s)HC(W0(f),t,n)}else HC(r,t,n)}function HC(e,t,n){const r=yo(e.directive);(function Lw(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[t[n]]=e[n])})(r.declaredInputs,e.inputs),KC(r,t,n),n.set(r,e),t.push(r)}function W0(e){return"function"==typeof e?{directive:Ne(e),inputs:vs,outputs:vs}:{directive:Ne(e.directive),inputs:GC(e.inputs),outputs:GC(e.outputs)}}function GC(e){if(void 0===e||0===e.length)return vs;const t={};for(let n=0;n<e.length;n+=2)t[e[n]]=e[n+1];return t}function QC(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];Array.isArray(s)&&s[3]&&(n[r]=s[3])}e.inputTransforms=n}function Gm(e){return!!K0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function K0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function vl(e,t,n){return e[t]=n}function Ao(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Hc(e,t,n,r){const s=Ao(e,t,n);return Ao(e,t+1,r)||s}
1function zm(e,t,n,r,s){const f=Hc(e,t,n,r);return Ao(e,t+2,s)||f}function lf(e){return!(32&~e.flags)}function yp(e,t,n,r,s,f,m,A,T,Z){const ye=n+cr,we=t.firstCreatePass?function Bw(e,t,n,r,s,f,m,A,T){const Z=t.consts,ye=$c(t,e,4,m||null,A||null);Y_(t,n,ye,Fs(Z,T)),Su(t,ye);const we=ye.tView=X_(2,ye,r,s,f,t.directiveRegistry,t.pipeRegistry,null,t.schemas,Z,null);return null!==t.queries&&(t.queries.template(t,ye),we.queries=t.queries.embeddedTView(ye)),ye}(ye,t,e,r,s,f,m,A,T):t.data[ye];Gs(we,!1);const Qe=XC(t,e,we,n);vc()&&wm(t,e,Qe,we),ns(Qe,e);const ct=_A(Qe,e,Qe,we);return e[ye]=ct,Im(e,ct),function gC(e,t,n){return P0(e,t,n)}(ct,we,e),od(we)&&G_(t,e,we),null!=T&&z_(e,we,Z),we}function H0(e,t,n,r,s,f,m,A){const T=gn(),Z=Sr();return yp(T,Z,e,t,n,r,s,Fs(Z.consts,f),m,A),H0}let XC=YC;function YC(e,t,n,r){return ua(!0),t[Rr].createComment("")}function jw(e,t,n,r){var s,f;const m=t[as],A=!m||sl()||lf(n)||kc(m,r);if(ua(A),A)return YC(0,t);const T=null!==(s=null===(f=m.data[Ud])||void 0===f?void 0:f[r])&&void 0!==s?s:null;null!==T&&null!==n.tView&&null===n.tView.ssrId&&(n.tView.ssrId=T);const Z=fp(m,e,t,n);return ym(m,r,Z),Um(M_(m,r),Z)}function Qm(e,t){const n=t.get(Kw);return n.add(e),()=>n.remove(e)}let Kw=(()=>{var e;class t{constructor(){(0,o.A)(this,"executingCallbacks",!1),(0,o.A)(this,"idleId",null),(0,o.A)(this,"current",new Set),(0,o.A)(this,"deferred",new Set),(0,o.A)(this,"ngZone",Qn(Hi)),(0,o.A)(this,"requestIdleCallbackFn",(typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout).bind(globalThis)),(0,o.A)(this,"cancelIdleCallbackFn",(typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout).bind(globalThis))}add(r){(this.executingCallbacks?this.deferred:this.current).add(r),null===this.idleId&&this.scheduleIdleCallback()}remove(r){const{current:s,deferred:f}=this;s.delete(r),f.delete(r),0===s.size&&0===f.size&&this.cancelIdleCallback()}scheduleIdleCallback(){const r=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(const s of this.current)s();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(const s of this.deferred)this.current.add(s);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(r))}cancelIdleCallback(){null!==this.idleId&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"root",factory:()=>new e})),t})();function Xm(e){return(t,n)=>function ZC(e,t,n){const r=n.get(Hw);return r.add(e,t),()=>r.remove(t)}(e,t,n)}let Hw=(()=>{var e;class t{constructor(){(0,o.A)(this,"executingCallbacks",!1),(0,o.A)(this,"timeoutId",null),(0,o.A)(this,"invokeTimerAt",null),(0,o.A)(this,"current",[]),(0,o.A)(this,"deferred",[])}add(r,s){this.addToQueue(this.executingCallbacks?this.deferred:this.current,Date.now()+r,s),this.scheduleTimer()}remove(r){const{current:s,deferred:f}=this;-1===this.removeFromQueue(s,r)&&this.removeFromQueue(f,r),0===s.length&&0===f.length&&this.clearTimeout()}addToQueue(r,s,f){let m=r.length;for(let A=0;A<r.length;A+=2)if(r[A]>s){m=A;break}qc(r,m,s,f)}removeFromQueue(r,s){let f=-1;for(let m=0;m<r.length;m+=2)if(r[m+1]===s){f=m;break}return f>-1&&rc(r,f,2),f}scheduleTimer(){const r=()=>{this.clearTimeout(),this.executingCallbacks=!0;const f=[...this.current],m=Date.now();for(let T=0;T<f.length;T+=2){const ye=f[T+1];if(!(f[T]<=m))break;ye()}let A=-1;for(let T=0;T<this.current.length&&this.current[T]<=m;T+=2)A=T+1;if(A>=0&&rc(this.current,0,A+1),this.executingCallbacks=!1,this.deferred.length>0){for(let T=0;T<this.deferred.length;T+=2)this.addToQueue(this.current,this.deferred[T],this.deferred[T+1]);this.deferred.length=0}this.scheduleTimer()};if(this.current.length>0){const f=Date.now(),m=this.current[0];if(null===this.timeoutId||this.invokeTimerAt&&this.invokeTimerAt-m>16){this.clearTimeout();const A=Math.max(m-f,16);this.invokeTimerAt=m,this.timeoutId=setTimeout(r,A)}}}clearTimeout(){null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"root",factory:()=>new e})),t})(),Gw=(()=>{var e;
1class t{constructor(){(0,o.A)(this,"cachedInjectors",new Map)}getOrCreateInjector(r,s,f,m){if(!this.cachedInjectors.has(r)){const A=f.length>0?j0(f,s,m):null;this.cachedInjectors.set(r,A)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(const r of this.cachedInjectors.values())null!==r&&r.destroy()}finally{this.cachedInjectors.clear()}}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"environment",factory:()=>new e})),t})();const zw=new xn("");function G0(e,t,n){return e.get(Gw).getOrCreateInjector(t,e,n,"")}function Xu(e,t,n,r=!1){var s;const f=n[ao],m=f[Un];if(ol(f))return;const A=_n(f,t),Z=A[7];if(!(null!==Z&&e<Z)&&eb(A[1],e)&&eb(null!==(s=A[0])&&void 0!==s?s:-1,e)){const ye=wn(m,t),Qe=r||null===function vi(e){var t,n;return null!==(t=null===(n=e.loadingBlockConfig)||void 0===n?void 0:n[1])&&void 0!==t?t:null}(ye)&&null===qr(ye,i.Loading)&&!qr(ye,i.Placeholder)?JC:z0;try{Qe(e,A,n,t,f)}catch(ct){Om(f,ct)}}}function JC(e,t,n,r,s){const f=function Vr(e,t,n){const s=wn(t[Un],n);switch(e){case i.Complete:return s.primaryTmplIndex;case i.Loading:return s.loadingTmplIndex;case i.Error:return s.errorTmplIndex;case i.Placeholder:return s.placeholderTmplIndex;default:return null}}(e,s,r);if(null!==f){t[1]=e;const m=s[Un],T=As(m,f+cr),Z=0;let ye;if(c0(n,Z),e===i.Complete){const ct=wn(m,r),Pt=ct.providers;Pt&&Pt.length>0&&(ye=function Qw(e,t,n){if(e instanceof jl){const s=e.injector,m=G0(e.parentInjector,t,n);return new jl(s,m)}const r=e.get(Ri);if(r!==e){const s=G0(r,t,n);return new jl(e,s)}return G0(e,t,n)}(s[go],ct,Pt))}const we=function Xw(e,t){var n,r;return null!==(n=null===(r=e[Es])||void 0===r?void 0:r.find(s=>s.data.s===t[1]))&&void 0!==n?n:null}(n,t);n[Es]=null;const Qe=qd(s,T,null,{injector:ye,dehydratedView:we});if(ef(n,Qe,Z,Vc(T,we)),ip(Qe,2),(e===i.Complete||e===i.Error)&&Array.isArray(t[8])){for(const ct of t[8])ct();t[8]=null}}}function eb(e,t){return e<t}function tb(e,t,n){e.loadingPromise.then(()=>{e.loadingState===mo.COMPLETE?Xu(i.Complete,t,n):e.loadingState===mo.FAILED&&Xu(i.Error,t,n)})}let z0=null,rb=(()=>{var e;class t{log(r){console.log(r)}warn(r){console.warn(r)}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"platform"})),t})();const Z0="ng";function FR(e,t){!function lb(e,t){if(typeof COMPILED>"u"||!COMPILED){var n;const r=Di;null!==(n=r[Z0])&&void 0!==n||(r[Z0]={}),r[Z0][e]=t}}(e,t)}const ub=new xn(""),cb=new xn("");let J0,UR=(()=>{var e;class t{constructor(r,s,f){(0,o.A)(this,"_ngZone",void 0),(0,o.A)(this,"registry",void 0),(0,o.A)(this,"_isZoneStable",!0),(0,o.A)(this,"_callbacks",[]),(0,o.A)(this,"taskTrackingZone",null),this._ngZone=r,this.registry=s,J0||(function BR(e){J0=e}(f),f.addToWindow(s)),this._watchAngularEvents(),r.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:()=>{Hi.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(r)||(clearTimeout(s.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,s,f){let m=-1;s&&s>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(A=>A.timeoutId!==m),r()},s)),this._callbacks.push({doneCb:r,timeoutId:m,updateCb:f})}whenStable(r,s,f){if(f&&!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(r,s,f),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,s,f){return[]}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)(Ei(Hi),Ei(db),Ei(cb))}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac})),t})(),db=(()=>{var e;class t{constructor(){(0,o.A)(this,"_applications",new Map)}registerApplication(r,s){this._applications.set(r,s)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,s=!0){var f,m;return null!==(f=null===(m=J0)||void 0===m?void 0:m.findTestabilityInTree(this,r,s))&&void 0!==f?f:null}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"platform"})),t})();function q0(e){return!!e&&"function"==typeof e.then}function fb(e){return!!e&&"function"==typeof e.subscribe}const ey=new xn("");function jR(e){return La([{provide:ey,multi:!0,useValue:e}])}let hb=(()=>{var e;class t{constructor(){var r;(0,o.A)(this,"resolve",void 0),(0,o.A)(this,"reject",void 0),(0,o.A)(this,"initialized",!1),(0,o.A)(this,"done",!1),(0,o.A)(this,"donePromise",new Promise((s,f)=>{this.resolve=s,this.reject=f})),(0,o.A)(this,"appInits",null!==(r=Qn(ey,{optional:!0}))&&void 0!==r?r:[]),(0,o.A)(this,"injector",Qn(Jr))}
1runInitializers(){if(this.initialized)return;const r=[];for(const f of this.appInits){const m=If(this.injector,f);if(q0(m))r.push(m);else if(fb(m)){const A=new Promise((T,Z)=>{m.subscribe({complete:T,error:Z})});r.push(A)}}const s=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{s()}).catch(f=>{this.reject(f)}),0===r.length&&s(),this.initialized=!0}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"root"})),t})(),ty=(()=>{class t{}return(0,o.A)(t,"\u0275prov",Fr({token:t,providedIn:"root",factory:()=>new pb})),t})();class pb{constructor(){(0,o.A)(this,"queuedEffectCount",0),(0,o.A)(this,"queues",new Map)}schedule(t){this.enqueue(t)}remove(t){const r=this.queues.get(t.zone);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){const n=t.zone;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()}}const Ap=new xn("");function mb(e,t){return Array.isArray(t)?t.reduce(mb,e):(0,u.A)((0,u.A)({},e),t)}let ha=(()=>{var e;class t{get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}constructor(){(0,o.A)(this,"_runningTick",!1),(0,o.A)(this,"_destroyed",!1),(0,o.A)(this,"_destroyListeners",[]),(0,o.A)(this,"_views",[]),(0,o.A)(this,"internalErrorHandler",Qn(Eh)),(0,o.A)(this,"afterRenderManager",Qn(gm)),(0,o.A)(this,"zonelessEnabled",Qn(al)),(0,o.A)(this,"rootEffectScheduler",Qn(ty)),(0,o.A)(this,"dirtyFlags",0),(0,o.A)(this,"deferredDirtyFlags",0),(0,o.A)(this,"tracingSnapshot",null),(0,o.A)(this,"externalTestViews",new Set),(0,o.A)(this,"afterTick",new Oe.B),(0,o.A)(this,"componentTypes",[]),(0,o.A)(this,"components",[]),(0,o.A)(this,"isStable",Qn(zs).hasPendingTasks.pipe((0,os.T)(r=>!r))),(0,o.A)(this,"_injector",Qn(Ri)),(0,o.A)(this,"_rendererFactory",null),(0,o.A)(this,"_tick",()=>{if(null!==this.tracingSnapshot){const s=this.tracingSnapshot;return this.tracingSnapshot=null,s.run(jh.CHANGE_DETECTION,this._tick),void s.dispose()}if(this._runningTick)throw new zn(101,!1);const r=re(null);try{this._runningTick=!0,this.synchronize()}catch(s){this.internalErrorHandler(s)}finally{this._runningTick=!1,re(r),this.afterTick.next()}}),Qn(zl,{optional:!0})}whenStable(){let r;return new Promise(s=>{r=this.isStable.subscribe({next:f=>{f&&s()}})}).finally(()=>{r.unsubscribe()})}get injector(){return this._injector}bootstrap(r,s){const f=r instanceof sC;if(!this._injector.get(hb).done)throw!f&&xa(r),new zn(405,!1);let A;A=f?r:this._injector.get(sf).resolveComponentFactory(r),this.componentTypes.push(A.componentType);const T=function VR(e){return e.isBoundToModule}(A)?void 0:this._injector.get(Kc),ye=A.create(Jr.NULL,[],s||A.selector,T),we=ye.location.nativeElement,Qe=ye.injector.get(ub,null);return null==Qe||Qe.registerApplication(we),ye.onDestroy(()=>{this.detachView(ye.hostView),Zm(this.components,ye),null==Qe||Qe.unregisterApplication(we)}),this._loadComponent(ye),ye}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(S0,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;0!==this.dirtyFlags&&r++<10;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),7&this.dirtyFlags){const A=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:T,notifyErrorHandler:Z}of this.allViews)KR(T,Z,A,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}else{var r,s,f,m;null===(r=this._rendererFactory)||void 0===r||null===(s=r.begin)||void 0===s||s.call(r),null===(f=this._rendererFactory)||void 0===f||null===(m=f.end
1)||void 0===m||m.call(f)}8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:r})=>cd(r))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(r){const s=r;this._views.push(s),s.attachToAppRef(this)}detachView(r){const s=r;Zm(this._views,s),s.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r),this._injector.get(Ap,[]).forEach(f=>f(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>Zm(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new zn(406,!1);const r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Zm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function KR(e,t,n,r){(n||cd(e))&&Nm(e,t,n&&!r?0:1)}function Gc(e,t,n){const r=t[Un],s=t[n.index];if(!function Eb(e,t){const r=t[go].get(zw,null,{optional:!0});return(null==r?void 0:r.behavior)!==Lt.Manual}(0,t))return;const f=_n(t,n),m=wn(r,n);
1switch(function En(e){cn(1,e),cn(0,e),cn(2,e)}(f),m.loadingState){case mo.NOT_STARTED:Xu(i.Loading,n,s),function ny(e,t,n){const r=t[go],s=t[Un];var f;if(e.loadingState!==mo.NOT_STARTED)return null!==(f=e.loadingPromise)&&void 0!==f?f:Promise.resolve();const m=_n(t,n),A=function Fo(e,t){return As(e,t.primaryTmplIndex+cr)}(s,e);e.loadingState=mo.IN_PROGRESS,cn(1,m);let T=e.dependencyResolverFn;const Z=r.get(zs),ye=Z.add();return T?(e.loadingPromise=Promise.allSettled(T()).then(we=>{let Qe=!1;const ct=[],Pt=[];for(const Gt of we){if("fulfilled"!==Gt.status){Qe=!0;break}{const bn=Gt.value,kn=Wr(bn)||yo(bn);if(kn)ct.push(kn);else{const fn=Io(bn);fn&&Pt.push(fn)}}}if(e.loadingPromise=null,Z.remove(ye),Qe){if(e.loadingState=mo.FAILED,null===e.errorTmplIndex){const bn=new zn(-750,!1);Om(t,bn)}}else{e.loadingState=mo.COMPLETE;const Gt=A.tView;if(ct.length>0){Gt.directiveRegistry=Pi(Gt.directiveRegistry,ct);const kn=au(!1,...ct.map(fn=>fn.type));e.providers=kn}Pt.length>0&&(Gt.pipeRegistry=Pi(Gt.pipeRegistry,Pt))}}),e.loadingPromise):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=mo.COMPLETE,Z.remove(ye)}),e.loadingPromise)}(m,t,n),m.loadingState===mo.IN_PROGRESS&&tb(m,n,s);break;case mo.IN_PROGRESS:Xu(i.Loading,n,s),tb(m,n,s);break;
1case mo.COMPLETE:Xu(i.Complete,n,s);break;case mo.FAILED:Xu(i.Error,n,s)}}function Yu(e,t,n){return ry.apply(this,arguments)}function ry(){return(ry=(0,p.A)(function*(e,t,n){var r;const s=e.get(Hu),f=s.hydrating;if(f.has(t))return;const{parentBlockPromise:m,hydrationQueue:A}=function kI(e,t){const n=t.get(Hu),s=t.get(ul).get(_m,{});let f=!1,m=e,A=null;const T=[];for(;!f&&m;){f=n.has(m);const Z=n.hydrating.get(m);if(null===A&&null!=Z){A=Z.promise;break}T.unshift(m),m=s[m].p}return{parentBlockPromise:A,hydrationQueue:T}}(t,e);!function HR(e,t){for(let n of t)e.hydrating.set(n,Promise.withResolvers())}(s,A);const T=e.get(zs),Z=T.add();null!==m&&(yield m);for(const ye of A)yield zR(ye,s),yield GR(e),f.get(ye).resolve();yield null===(r=f.get(t))||void 0===r?void 0:r.promise,T.remove(Z),n&&n(A),function LM(e,t,n,r){null!==e&&(n.cleanup(t),T0(e.lContainer),iC(r))}(s.get(t),A,s,e.get(ha))})).apply(this,arguments)}function GR(e){return new Promise(t=>Ql(t,{injector:e}))}function zR(e,t){return iy.apply(this,arguments)}function iy(){return(iy=(0,p.A)(function*(e,t){const n=t.get(e);if(null===n)return;const{tNode:r,lView:s}=n,f=_n(s,r);return new Promise(m=>{(function QR(e,t){Array.isArray(e[8])||(e[8]=[]),e[8].push(t)})(f,m),Gc(0,s,r)})})).apply(this,arguments)}function oy(e,t,n,r){const s=gn();return Ao(s,cs(),t)&&(Sr(),ml(Ii(),s,e,t,n,r)),oy}function ff(e,t,n,r){return Ao(e,cs(),n)?t+pr(n)+r:Kr}function gf(e,t,n,r,s,f,m,A,T,Z){const we=function Ia(e,t,n,r,s,f){const m=Hc(e,t,n,r);return Hc(e,t+2,s,f)||m}(e,Ba(),n,s,m,T);return Ca(4),we?t+pr(n)+r+pr(s)+f+pr(m)+A+pr(T)+Z:Kr}function Jm(e,t){return e<<17|t<<2}function Ju(e){return e>>17&32767}function sy(e){return 2|e}function zc(e){return(131068&e)>>2}function ay(e,t){return-131069&e|t<<2}function ly(e){return 1|e}function wb(e,t,n,r){const s=e[n+1],f=null===t;let m=r?Ju(s):zc(s),A=!1;for(;0!==m&&(!1===A||f);){const Z=e[m+1];ON(e[m],t)&&(A=!0,e[m+1]=r?ly(Z):sy(Z)),m=r?Ju(Z):zc(Z)}A&&(e[n+1]=r?sy(s):ly(s))}function ON(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Il(e,t)>=0}const zo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Rb(e){return e.substring(zo.key,zo.keyEnd)}function PN(e){return e.substring(zo.value,zo.valueEnd)}function Nb(e,t){const n=zo.textEnd;return n===t?-1:(t=zo.keyEnd=function RN(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,zo.key=t,n),Ef(e,t,n))}function xb(e,t){const n=zo.textEnd;let r=zo.key=Ef(e,t,n);return n===r?-1:(r=zo.keyEnd=function NN(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=kb(e,r,n),r=zo.value=Ef(e,r,n),r=zo.valueEnd=function xN(e,t,n){let r=-1,s=-1,f=-1,m=t,A=m;for(;m<n;){const T=e.charCodeAt(m++);if(59===T)return A;34===T||39===T?A=m=Fb(e,T,m,n):t===m-4&&85===f&&82===s&&76===r&&40===T?A=m=Fb(e,41,m,n):T>32&&(A=m),f=s,s=r,r=-33&T}return A}(e,r,n),kb(e,r,n))}function Lb(e){zo.key=0,zo.keyEnd=0,zo.value=0,zo.valueEnd=0,zo.textEnd=e.length}function Ef(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function kb(e,t,n,r){return(t=Ef(e,t,n))<n&&t++,t}function Fb(e,t,n,r){let s=-1,f=n;for(;f<r;){const m=e.charCodeAt(f++);if(m==t&&92!==s)return f;s=92==m&&92===s?0:m}throw new Error}function uy(e,t,n){const r=gn();return Ao(r,cs(),t)&&Ys(Sr(),Ii(),r,e,t,r[Rr],n,!1),uy}function cy(e,t,n,r,s){const m=s?"class":"style";e0(e,n,t.inputs[m],m,r)}function dy(e,t,n){return Xa(e,t,n,!1),dy}function fy(e,t){return Xa(e,t,null,!0),fy}function Qa(e){Ya(Vb,LN,e,!1)}function LN(e,t){for(let n=function wN(e){return Lb(e),xb(e,Ef(e,0,zo.textEnd))}(t);n>=0;n=xb(t,n))Vb(e,Rb(t),PN(t))}function Ub(e){Ya(VN,_l,e,!0)}function _l(e,t){for(let n=function MN(e){return Lb(e),Nb(e,Ef(e,0,zo.textEnd))}(t);n>=0;n=Nb(t,n))ss(e,Rb(t),!0)}function Xa(e,t,n,r){const s=gn(),f=Sr(),m=Ca(2);f.firstUpdatePass&&jb(f,e,m,r),t!==Kr&&Ao(s,m,t)&&$b(f,f.data[ts()],s,s[Rr],e,s[m+1]=function WN(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ki(Jl(e)))),e}(t,n),r,m)}function Ya(e,t,n,r){const s=Sr(),f=Ca(2);s.firstUpdatePass&&jb(s,null,f,r);const m=gn();if(n!==Kr&&Ao(m,f,n)){const A=s.data[ts()];if(Kb(A,r)&&!Bb(s,f)){let T=r?A.classesWithoutHost:A.stylesWithoutHost;null!==T&&(n=wa(T,n||"")),cy(s,A,m,n,r)}else!function $N(e,t,n,r,s,f,m,A){s===Kr&&(s=ri);let T=0,Z=0,ye=0<s.length?s[0]:null,we=0<f.length?f[0]:null;for(;null!==ye||null!==we;){const Qe=T<s.length?s[T+1]:void 0,ct=Z<f.length?f[Z+1]:void 0;let Gt,Pt=null;ye===we?(T+=2,Z+=2,Qe!==ct&&(Pt=we,Gt=ct)):null===we||null!==ye&&ye<we?(T+=2,Pt=ye):(Z+=2,Pt=we,Gt=ct),null!==Pt&&$b(e,t,n,r,Pt,Gt,m,A),ye=T<s.length?s[T]:null,we=Z<f.length?f[Z]:null}}(s,A,m,m[Rr],m[f+1],m[f+1]=function jN(e,t,n){if(null==n||""===n)return ri;const r=[],s=Jl(n);if(Array.isArray(s))for(let f=0;f<s.length;f++)e(r,s[f],!0);else if("object"==typeof s)for(const f in s)s.hasOwnProperty(f)&&e(r,f,s[f]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,f)}}function Bb(e,t){return t>=e.expandoStartIndex}function jb(e,t,n,r){const s=e.data;
1if(null===s[n+1]){const f=s[ts()],m=Bb(e,n);Kb(f,r)&&null===t&&!m&&(t=!1),t=function kN(e,t,n,r){const s=function Xf(e){const t=wr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let f=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=bp(n=hy(null,e,t,n,r),t.attrs,r),f=null);else{const m=t.directiveStylingLast;if(-1===m||e[m]!==s)if(n=hy(s,e,t,n,r),null===f){let T=function FN(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==zc(r))return e[Ju(r)]}(e,t,r);void 0!==T&&Array.isArray(T)&&(T=hy(null,e,t,T[1],r),T=bp(T,t.attrs,r),function UN(e,t,n,r){e[Ju(n?t.classBindings:t.styleBindings)]=r}(e,t,r,T))}else f=function BN(e,t,n){let r;const s=t.directiveEnd;for(let f=1+t.directiveStylingLast;f<s;f++)r=bp(r,e[f].hostAttrs,n);return bp(r,t.attrs,n)}(e,t,r)}return void 0!==f&&(r?t.residualClasses=f:t.residualStyles=f),n}(s,f,t,r),function DN(e,t,n,r,s,f){let m=f?t.classBindings:t.styleBindings,A=Ju(m),T=zc(m);e[r]=n;let ye,Z=!1;if(Array.isArray(n)?(ye=n[1],(null===ye||Il(n,ye)>0)&&(Z=!0)):ye=n,s)if(0!==T){const Qe=Ju(e[A+1]);e[r+1]=Jm(Qe,A),0!==Qe&&(e[Qe+1]=ay(e[Qe+1],r)),e[A+1]=function TN(e,t){return 131071&e|t<<17}(e[A+1],r)}else e[r+1]=Jm(A,0),0!==A&&(e[A+1]=ay(e[A+1],r)),A=r;else e[r+1]=Jm(T,0),0===A?A=r:e[T+1]=ay(e[T+1],r),T=r;Z&&(e[r+1]=sy(e[r+1])),wb(e,ye,r,!0),wb(e,ye,r,!1),function IN(e,t,n,r,s){const f=s?e.residualClasses:e.residualStyles;null!=f&&"string"==typeof t&&Il(f,t)>=0&&(n[r+1]=ly(n[r+1]))}(t,ye,e,r,f),m=Jm(A,T),f?t.classBindings=m:t.styleBindings=m}(s,f,t,n,m,r)}}function hy(e,t,n,r,s){let f=null;const m=n.directiveEnd;let A=n.directiveStylingLast;for(-1===A?A=n.directiveStart:A++;A<m&&(f=t[A],r=bp(r,f.hostAttrs,s),f!==e);)A++;return null!==e&&(n.directiveStylingLast=A),r}function bp(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let f=0;f<t.length;f++){const m=t[f];"number"==typeof m?s=m:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ss(e,m,!!n||t[++f]))}return void 0===e?null:e}function Vb(e,t,n){ss(e,t,Jl(n))}function VN(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&ss(e,r,n)}function $b(e,t,n,r,s,f,m,A){if(!(3&t.type))return;const T=e.data,Z=T[A+1],ye=function SN(e){return!(1&~e)}(Z)?Wb(T,t,n,s,zc(Z),m):void 0;qm(ye)||(qm(f)||function bN(e){return!(2&~e)}(Z)&&(f=Wb(T,null,n,s,A,m)),function IP(e,t,n,r,s){if(t)s?e.addClass(n,r):e.removeClass(n,r);else{let f=-1===r.indexOf("-")?void 0:Mm.DashCase;null==s?e.removeStyle(n,r,f):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),f|=Mm.Important),e.setStyle(n,r,s,f))}}(r,m,Ll(ts(),n),s,f))}function Wb(e,t,n,r,s,f){const m=null===t;let A;for(;s>0;){const T=e[s],Z=Array.isArray(T),ye=Z?T[1]:T,we=null===ye;let Qe=n[s+1];Qe===Kr&&(Qe=we?ri:void 0);let ct=we?oc(Qe,r):ye===r?Qe:void 0;if(Z&&!qm(ct)&&(ct=oc(T,r)),qm(ct)&&(A=ct,m))return A;const Pt=e[s+1];s=m?Ju(Pt):zc(Pt)}if(null!==t){let T=f?t.residualClasses:t.residualStyles;null!=T&&(A=oc(T,r))}return A}function qm(e){return void 0!==e}function Kb(e,t){return!!(e.flags&(t?8:16))}function Hb(e,t,n){Ya(ss,_l,ff(gn(),e,t,n),!0)}function Gb(e,t,n,r,s,f,m){Ya(ss,_l,function pf(e,t,n,r,s,f,m,A){const Z=zm(e,Ba(),n,s,m);return Ca(3),Z?t+pr(n)+r+pr(s)+f+pr(m)+A:Kr}(gn(),e,t,n,r,s,f,m),!0)}function zb(e,t,n,r,s,f,m,A,T){Ya(ss,_l,gf(gn(),e,t,n,r,s,f,m,A,T),!0)}function Qb(){return gn()[Ji][Fi]}class YN{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),s=Math.max(t,n),f=this.detach(s);if(s-r>1){const m=this.detach(r);this.attach(r,f),this.attach(s,m)}else this.attach(r,f)}move(t,n){this.attach(n,this.detach(t))}}function py(e,t,n,r,s){return e===n&&Object.is(t,r)?1:Object.is(s(e,t),s(n,r))?-1:0}function gy(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function Xb(e,t,n,r,s){if(gy(e,t,r,n(r,s)))e.updateValue(r,s);else{const f=e.create(r,s);e.attach(r,f)}}function Yb(e,t,n,r){const s=new Set;for(let f=t;f<=n;f++)s.add(r(f,e.at(f)));return s}class Zb{constructor(){(0,o.A)(this,"kvMap",new Map),(0,o.A)(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 s=this._vMap;for(;s.has(r);)r=s.get(r);s.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 s=this._vMap;for(;s.has(r);)r=s.get(r),t(r,n)}}}function Jb(e,t){Eo("NgControlFlow");const n=gn(),r=cs(),s=n[r]!==Kr?n[r]:-1,f=-1!==s?ev(n,cr+s):void 0;if(Ao(n,r,e)){const A=re(null);try{if(void 0!==f&&c0(f,0),-1!==e){const T=cr+e,Z=ev(n,T),ye=my(n[Un],T),we=rf(Z,ye.tView.ssrId);ef(Z,qd(n,ye,t,{dehydratedView:we}),0,Vc(ye,we))}}finally{re(A)}}else if(void 0!==f){const A=MA(f,0);void 0!==A&&(A[Fi]=t)}}class JN{constructor(t,n,r){(0,o.A)(this,"lContainer",void 0),(0,o.A)(this,"$implicit",void 0),(0,o.A)(this,"$index",void 0),this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-qi}}function qb(e){return e}function eT(e,t){return t}class qN{constructor(t,n,r){(0,o.A)(this,"hasEmptyBlock",void 0),(0,o.A)(this,"trackByFn",void 0),(0,o.A)(this,"liveCollection",void 0),this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function tT(e,t,n,r,s,f,m,A,T,Z,ye,we,Qe){Eo("NgControlFlow");const ct=gn(),Pt=Sr(),Gt=void 0!==T,bn=gn(),kn=A?m.bind(bn[Ji][Fi]):m,fn=new qN(Gt,kn);bn[cr+e]=fn,yp(ct,Pt,e+1,t,n,r,s,Fs(Pt.consts,f)),Gt&&yp(ct,Pt,e+2,T,Z,ye,we,Fs(Pt.consts,Qe))}class e1 extends YN{constructor(t,n,r){super(),(0,o.A)(this,"lContainer",void 0),(0,o.A)(this,"hostLView",void 0),(0,o.A)(this,"templateTNode",void 0),(0,o.A)(this,"operationsCounter",void 0),(0,o.A)(this,"needsIndexUpdate",!1),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-qi}at(t){return this.getLView(t)[Fi].$implicit}attach(t,n){const r=n[as];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),ef(this.lContainer,n,t,Vc(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function t1(e,t){return np(e,t)}(this.lContainer,t)}create(t,n){var r;const s=rf(this.lContainer,this.templateTNode.tView.ssrId),f=qd(this.hostLView,this.templateTNode,new JN(this.lContainer,n,t),{dehydratedView:s});return null===(r=this.operationsCounter)||void 0===r||r.recordCreate(),f}destroy(t){var n;rp(t[Un],t),null===(n=this.operationsCounter)||void 0===n||n.recordDestroy()}updateValue(t,n){this.getLView(t)[Fi].$implicit=n}reset(){var t;this.needsIndexUpdate=!1,null===(t=this.operationsCounter)||void 0===t||t.reset()}
1updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Fi].$index=t}getLView(t){return function n1(e,t){return MA(e,t)}(this.lContainer,t)}}function nT(e){const t=re(null),n=ts();try{const s=gn(),f=s[Un],m=s[n],A=n+1,T=ev(s,A);if(void 0===m.liveCollection){const ye=my(f,A);m.liveCollection=new e1(T,s,ye)}else m.liveCollection.reset();const Z=m.liveCollection;if(function ZN(e,t,n){var r;let s,f,m=0,A=e.length-1;if(Array.isArray(t)){let Z=t.length-1;for(;m<=A&&m<=Z;){const ye=e.at(m),we=t[m],Qe=py(m,ye,m,we,n);if(0!==Qe){Qe<0&&e.updateValue(m,we),m++;continue}const ct=e.at(A),Pt=t[Z],Gt=py(A,ct,Z,Pt,n);if(0!==Gt){Gt<0&&e.updateValue(A,Pt),A--,Z--;continue}const bn=n(m,ye),kn=n(A,ct),fn=n(m,we);if(Object.is(fn,kn)){const mr=n(Z,Pt);Object.is(mr,bn)?(e.swap(m,A),e.updateValue(A,Pt),Z--,A--):e.move(A,m),e.updateValue(m,we),m++}else if(null!=s||(s=new Zb),null!=f||(f=Yb(e,m,A,n)),gy(e,s,m,fn))e.updateValue(m,we),m++,A++;else if(f.has(fn))s.set(bn,e.detach(m)),A--;else{const mr=e.create(m,t[m]);e.attach(m,mr),m++,A++}}for(;m<=Z;)Xb(e,s,n,m,t[m]),m++}else if(null!=t){const Z=t[Symbol.iterator]();let ye=Z.next();for(;!ye.done&&m<=A;){const we=e.at(m),Qe=ye.value,ct=py(m,we,m,Qe,n);if(0!==ct)ct<0&&e.updateValue(m,Qe),m++,ye=Z.next();else{null!=s||(s=new Zb),null!=f||(f=Yb(e,m,A,n));const Pt=n(m,Qe);if(gy(e,s,m,Pt))e.updateValue(m,Qe),m++,A++,ye=Z.next();else if(f.has(Pt)){const Gt=n(m,we);s.set(Gt,e.detach(m)),A--}else e.attach(m,e.create(m,Qe)),m++,A++,ye=Z.next()}}for(;!ye.done;)Xb(e,s,n,e.length,ye.value),ye=Z.next()}for(;m<=A;)e.destroy(e.detach(A--));null===(r=s)||void 0===r||r.forEach(Z=>{e.destroy(Z)})}(Z,e,m.trackByFn),Z.updateIndexes(),m.hasEmptyBlock){const ye=cs(),we=0===Z.length;if(Ao(s,ye,we)){const Qe=n+2,ct=ev(s,Qe);if(we){const Pt=my(f,Qe),Gt=rf(ct,Pt.tView.ssrId);ef(ct,qd(s,Pt,void 0,{dehydratedView:Gt}),0,Vc(Pt,Gt))}else c0(ct,0)}}}finally{re(t)}}function ev(e,t){return e[t]}function my(e,t){return As(e,t)}function tv(e,t,n,r){const s=gn(),f=Sr(),m=cr+e,A=s[Rr],T=f.firstCreatePass?function r1(e,t,n,r,s,f){const m=t.consts,T=$c(t,e,2,r,Fs(m,s));return Y_(t,n,T,Fs(m,f)),null!==T.attrs&&Vm(T,T.attrs,!1),null!==T.mergedAttrs&&Vm(T,T.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,T),T}(m,f,s,t,n,r):f.data[m],Z=rT(f,s,T,A,t,e);s[m]=Z;const ye=od(T);return Gs(T,!0),dA(A,Z,T),!lf(T)&&vc()&&wm(f,s,Z,T),0===function qp(){return wr.lFrame.elementDepthCount}()&&ns(Z,s),function Vv(){wr.lFrame.elementDepthCount++}(),ye&&(G_(f,s,T),N_(f,T,s)),null!==r&&z_(s,T),tv}function nv(){let e=zr();gc()?mc():(e=e.parent,Gs(e,!1));const t=e;(function eg(e){return wr.skipHydrationRootTNode===e})(t)&&function Hv(){wr.skipHydrationRootTNode=null}(),function $v(){wr.lFrame.elementDepthCount--}();const n=Sr();return n.firstCreatePass&&(Su(n,e),Nf(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function qf(e){return!!(8&e.flags)}(t)&&cy(n,t,gn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function zv(e){return!!(16&e.flags)}(t)&&cy(n,t,gn(),t.stylesWithoutHost,!1),nv}function vy(e,t,n,r){return tv(e,t,n,r),nv(),vy}let rT=(e,t,n,r,s,f)=>(ua(!0),Dm(r,s,fg()));function i1(e,t,n,r,s,f){const m=t[as],A=!m||sl()||lf(n)||kc(m,f);if(ua(A),A)return Dm(r,s,fg());const T=fp(m,e,t,n);return IE(m,f)&&ym(m,f,T.nextSibling),m&&(Pd(n)||Oh(T))&&il(n)&&(function tg(e){wr.skipHydrationRootTNode=e}(n),cA(T)),T}function rv(e,t,n){const r=gn(),s=Sr(),f=e+cr,m=s.firstCreatePass?function s1(e,t,n,r,s){const f=t.consts,m=Fs(f,r),A=$c(t,e,8,"ng-container",m);return null!==m&&Vm(A,m,!0),Y_(t,n,A,Fs(f,s)),null!==t.queries&&t.queries.elementStart(t,A),A}(f,s,r,t,n):s.data[f];Gs(m,!0);const A=iT(s,r,m,e);return r[f]=A,vc()&&wm(s,r,A,m),ns(A,r),od(m)&&(G_(s,r,m),N_(s,m,r)),null!=n&&z_(r,m),rv}function iv(){let e=zr();const t=Sr();return gc()?mc():(e=e.parent,Gs(e,!1)),t.firstCreatePass&&(Su(t,e),Nf(e)&&t.queries.elementEnd(e)),iv}function _y(e,t,n){return rv(e,t,n),iv(),_y}let iT=(e,t,n,r)=>(ua(!0),H_(t[Rr],""));function a1(e,t,n,r){let s;const f=t[as],m=!f||sl()||kc(f,r)||lf(n);if(ua(m),m)return H_(t[Rr],"");const A=fp(f,e,t,n),T=function DE(e,t){var n,r,s;const f=e.data;let m=null!==(n=null===(r=f[wc])||void 0===r?void 0:r[t])&&void 0!==n?n:null;return null===m&&null!==(s=f[ju])&&void 0!==s&&s[t]&&(m=M_(e,t)),m}(f,r);return ym(f,r,A),s=Um(T,A),s}function oT(){return gn()}const Qc=void 0;var c1=["en",[["a","p"],["AM","PM"],Qc],[["AM","PM"],Qc,Qc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Qc,[["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"]],Qc,[["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}",Qc,"{1} 'at' {0}",Qc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function u1(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Af={};function yy(e){const t=function d1(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=uT(t);if(n)return n;const r=t.split("-")[0];if(n=uT(r),n)return n;if("en"===r)return c1;throw new zn(701,!1)}function lT(e){return yy(e)[Cf.PluralCase]}function uT(e){return e in Af||(Af[e]=Di.ng&&Di.ng.common&&Di.ng.common.locales&&Di.ng.common.locales[e]),Af[e]}var Cf=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}(Cf||{});const ov="en-US";let cT=ov,OT=(e,t,n)=>{};function PT(e){OT=e}function Cy(e,t,n,r){const s=gn(),f=Sr(),m=zr();return by(f,s,s[Rr],m,e,t,r),Cy}function by(e,t,n,r,s,f,m){const A=od(r),Z=e.firstCreatePass&&Zp(e),ye=t[Fi],we=Eu(t);let Qe=!0;if(3&r.type||m){const Gt=es(r,t),bn=m?m(Gt):Gt,kn=we.length,fn=m?Ar=>m(li(Ar[r.index])):r.index;let mr=null;if(!m&&A&&(mr=function q1(e,t,n,r){const s=e.cleanup;if(null!=s)for(let f=0;f<s.length-1;f+=2){const m=s[f];if(m===n&&s[f+1]===r){const A=t[ls],T=s[f+2];return A.length>T?A[T]:null}"string"==typeof m&&(f+=2)}return null}(e,t,s,r.index)),null!==mr)(mr.__ngLastListenerFn__||mr).__ngNextListenerFn__=f,mr.__ngLastListenerFn__=f,Qe=!1;else{f=RT(r,t,ye,f),OT(Gt,s,f);const Ar=n.listen(bn,s,f);we.push(f,Ar),Z&&Z.push(s,fn,kn,kn+1)}}else f=RT(r,t,ye,f);const ct=r.outputs;let Pt;if(Qe&&null!==ct&&(Pt=ct[s])){const Gt=Pt.length;if(Gt)for(let bn=0;bn<Gt;bn+=2){const bi=t[Pt[bn]][Pt[bn+1]].subscribe(f),_o=we.length;we.push(f,bi),Z&&Z.push(s,r.index,_o,-(_o+1))}}}function wT(e,t,n,r){const s=re(null);try{return Ho(6,t,n),!1!==n(r)}catch(f){return Om(e,f),!1}finally{Ho(7,t,n),re(s)}}function RT(e,t,n,r){return function s(f){if(f===Function)return r;ip(e.componentOffset>-1?Cs(e.index,t):t,5);let A=wT(t,n,r,f),T=s.__ngNextListenerFn__;for(;T;)A=wT(t,n,T,f)&&A,T=T.__ngNextListenerFn__;return A}}function NT(e=1){return function cE(e){return(wr.lFrame.contextLView=function Vf(e,t){for(;e>0;)t=t[lc],e--;return t}(e,wr.lFrame.contextLView))[Fi]}(e)}function ex(e,t){let n=null;const r=function jO(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 s=0;s<t.length;s++){const f=t[s];if("*"!==f){if(null===r?tA(e,f,!0):WO(r,f))return s}else n=s}return n}function xT(e){const t=gn()[Ji][xo];if(!t.projection){const r=t.projection=function Dl(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),s=r.slice();let f=t.child;for(;null!==f;){if(128!==f.type){const m=e?ex(f,e):0;null!==m&&(s[m]?s[m].projectionNext=f:r[m]=f,s[m]=f)}f=f.next}}}function LT(e,t=0,n,r,s,f){const m=gn(),A=Sr(),T=r?e+1:null;null!==T&&yp(m,A,T,r,s,f,null,n);const Z=$c(A,cr+e,16,null,n||null);null===Z.projection&&(Z.projection=t),mc();const we=!m[as]||sl();null===m[Ji][xo].projection[Z.projection]&&null!==T?function tx(e,t,n){const r=cr+n,s=t.data[r],f=e[r],m=rf(f,s.tView.ssrId);ef(f,qd(e,s,void 0,{dehydratedView:m}),0,Vc(s,m))}(m,A,T):we&&32&~Z.flags&&function SP(e,t,n){PA(t[Rr],0,t,n,s0(e,n,t),TA(n.parent||t[xo],n,t))}(A,m,Z)}function HT(e,t,n,r){!function AC(e,t,n,r){const s=Sr();if(s.firstCreatePass){const f=zr();CC(s,new vC(t,n,r),f.index),function cw(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}
1(s,e),!(2&~n)&&(s.staticContentQueries=!0)}return yC(s,gn(),n)}(e,t,n,r)}function GT(e,t,n){!function EC(e,t,n){const r=Sr();return r.firstCreatePass&&(CC(r,new vC(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),yC(r,gn(),t)}(e,t,n)}function zT(e){const t=gn(),n=Sr(),r=Ni();hd(r+1);const s=k0(n,r);if(e.dirty&&function Xp(e){return!(4&~e[yr])}(t)===!(2&~s.metadata.flags)){if(null===s.matches)e.reset([]);else{const f=bC(t,r);e.reset(f,Th),e.notifyOnChanges()}return!0}return!1}function QT(){return function L0(e,t){return e[Ko].queries[t].queryList}(gn(),Ni())}function Sy(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function XT(e){return kl(dd(),cr+e)}function oS(e,t=""){const n=gn(),r=Sr(),s=e+cr,f=r.firstCreatePass?$c(r,s,1,t,null):r.data[s],m=sS(r,n,f,t,e);n[s]=m,vc()&&wm(r,n,m,f),Gs(f,!1)}let sS=(e,t,n,r,s)=>(ua(!0),K_(t[Rr],r));function px(e,t,n,r,s){const f=t[as],m=!f||sl()||lf(n)||kc(f,s);return ua(m),m?K_(t[Rr],r):fp(f,e,t,n)}function Dy(e){return uv("",e,""),Dy}function uv(e,t,n){const r=gn(),s=ff(r,e,t,n);return s!==Kr&&function eu(e,t,n){const r=Ll(t,e);!function aA(e,t,n){e.setValue(t,n)}(e[Rr],r,n)}(r,ts(),s),uv}function Iy(e,t,n){Kg(t)&&(t=t());const r=gn();return Ao(r,cs(),t)&&Ys(Sr(),Ii(),r,e,t,r[Rr],n,!1),Iy}function gS(e,t){const n=Kg(e);return n&&e.set(t),n}function Oy(e,t){const n=gn(),r=Sr(),s=zr();return by(r,n,n[Rr],s,e,t),Oy}const mS={};function Py(e){const t=Sr(),n=gn(),r=e+cr;return Gs($c(t,r,128,null,null),!1),Sy(t,n,r,mS),Py}function vS(e){return Eo("NgLet"),Sy(Sr(),gn(),ts(),e),e}function _S(e){const n=kl(dd(),cr+e);if(n===mS)throw new zn(314,!1);return n}function My(e,t,n,r,s){if(e=Ne(e),Array.isArray(e))for(let f=0;f<e.length;f++)My(e[f],t,n,r,s);else{const f=Sr(),m=gn(),A=zr();let T=yn(e)?e:Ne(e.provide);const Z=uu(e),ye=1048575&A.providerIndexes,we=A.directiveStart,Qe=A.providerIndexes>>20;if(yn(e)||!e.multi){const ct=new yc(Z,s,Zd),Pt=Ry(T,t,s?ye:ye+Qe,we);-1===Pt?(oh(vd(A,m),f,T),wy(f,e,t.length),t.push(T),A.directiveStart++,A.directiveEnd++,s&&(A.providerIndexes+=1048576),n.push(ct),m.push(ct)):(n[Pt]=ct,m[Pt]=ct)}else{const ct=Ry(T,t,ye+Qe,we),Pt=Ry(T,t,ye,ye+Qe),bn=Pt>=0&&n[Pt];if(s&&!bn||!s&&!(ct>=0&&n[ct])){oh(vd(A,m),f,T);const kn=function Ex(e,t,n,r,s){const f=new yc(e,n,Zd);return f.multi=[],f.index=t,f.componentProviders=0,yS(f,s,r&&!n),f}(s?yx:_x,n.length,s,r,Z);!s&&bn&&(n[Pt].providerFactory=kn),wy(f,e,t.length,0),t.push(T),A.directiveStart++,A.directiveEnd++,s&&(A.providerIndexes+=1048576),n.push(kn),m.push(kn)}else wy(f,e,ct>-1?ct:Pt,yS(n[s?Pt:ct],Z,!s&&r));!s&&r&&bn&&n[Pt].componentProviders++}}}function wy(e,t,n,r){const s=yn(t),f=function tn(e){return!!e.useClass}(t);if(s||f){const T=(f?Ne(t.useClass):t).prototype.ngOnDestroy;if(T){const Z=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const ye=Z.indexOf(n);-1===ye?Z.push(n,[r,T]):Z[ye+1].push(r,T)}else Z.push(n,T)}}}function yS(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ry(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function _x(e,t,n,r){return Ny(this.multi,[])}function yx(e,t,n,r){const s=this.multi;let f;if(this.providerFactory){const m=this.providerFactory.componentProviders,A=$l(n,n[Un],this.providerFactory.index,r);f=A.slice(0,m),Ny(s,f);for(let T=m;T<A.length;T++)f.push(A[T])}else f=[],Ny(s,f);return f}function Ny(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function ES(e,t=[]){return n=>{n.providersResolver=(r,s)=>function vx(e,t,n){const r=Sr();if(r.firstCreatePass){const s=sa(e);My(n,r.data,r.blueprint,s,!0),My(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}function AS(e,t,n){const r=e.\u0275cmp;r.directiveDefs=Km(t,!1),r.pipeDefs=Km(n,!0)}function bS(e,t,n){const r=Po()+e,s=gn();return s[r]===Kr?vl(s,r,n?t.call(n):t()):function _p(e,t){return e[t]}(s,r)}function TS(e,t,n,r){return IS(gn(),Po(),e,t,n,r)}
1function SS(e,t,n,r,s){return OS(gn(),Po(),e,t,n,r,s)}function DS(e,t,n,r,s,f){return function PS(e,t,n,r,s,f,m,A){const T=t+n;return zm(e,T,s,f,m)?vl(e,T+3,A?r.call(A,s,f,m):r(s,f,m)):Pp(e,T+3)}(gn(),Po(),e,t,n,r,s,f)}function Pp(e,t){const n=e[t];return n===Kr?void 0:n}function IS(e,t,n,r,s,f){const m=t+n;return Ao(e,m,s)?vl(e,m+1,f?r.call(f,s):r(s)):Pp(e,m+1)}function OS(e,t,n,r,s,f,m){const A=t+n;return Hc(e,A,s,f)?vl(e,A+2,m?r.call(m,s,f):r(s,f)):Pp(e,A+2)}function RS(e,t){const n=Sr();let r;const s=e+cr;var f;n.firstCreatePass?(r=function Px(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[s]=r,r.onDestroy&&(null!==(f=n.destroyHooks)&&void 0!==f?f:n.destroyHooks=[]).push(s,r.onDestroy)):r=n.data[s];const m=r.factory||(r.factory=qo(r.type)),T=q(Zd);try{const Z=Ec(!1),ye=m();return Ec(Z),Sy(n,gn(),s,ye),ye}finally{q(T)}}function NS(e,t,n){const r=e+cr,s=gn(),f=kl(s,r);return Mp(s,r)?IS(s,Po(),t,f.transform,n,f):f.transform(n)}function xS(e,t,n,r){const s=e+cr,f=gn(),m=kl(f,s);return Mp(f,s)?OS(f,Po(),t,m.transform,n,r,m):m.transform(n,r)}function Mp(e,t){return e[Un].data[t].pure}function LS(e,t){return xm(e,t)}class ZS{constructor(t){(0,o.A)(this,"full",void 0),(0,o.A)(this,"major",void 0),(0,o.A)(this,"minor",void 0),(0,o.A)(this,"patch",void 0),this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}class sL{constructor(t,n){(0,o.A)(this,"ngModuleFactory",void 0),(0,o.A)(this,"componentFactories",void 0),this.ngModuleFactory=t,this.componentFactories=n}}let aL=(()=>{var e;class t{compileModuleSync(r){return new B0(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){const s=this.compileModuleSync(r),m=fa(Do(r).declarations).reduce((A,T)=>{const Z=Wr(T);return Z&&A.push(new mp(Z)),A},[]);return new sL(s,m)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"root"})),t})(),cL=(()=>{var e;class t{constructor(){(0,o.A)(this,"zone",Qn(Hi)),(0,o.A)(this,"changeDetectionScheduler",Qn(ds)),(0,o.A)(this,"applicationRef",Qn(ha)),(0,o.A)(this,"_onMicrotaskEmptySubscription",void 0)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var r;null===(r=this._onMicrotaskEmptySubscription)||void 0===r||r.unsubscribe()}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();function Uy({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return null!=e||(e=()=>new Hi((0,u.A)((0,u.A)({},By()),{},{scheduleInRootZone:n}))),[{provide:Hi,useFactory:e},{provide:_s,multi:!0,useFactory:()=>{const r=Qn(cL,{optional:!0});return()=>r.initialize()}},{provide:_s,multi:!0,useFactory:()=>{const r=Qn(fL);return()=>{r.initialize()}}},!0===t?{provide:Lg,useValue:!0}:[],{provide:Cd,useValue:null!=n?n:Rg}]}function By(e){var t,n;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(n=null==e?void 0:e.runCoalescing)&&void 0!==n&&n}}let fL=(()=>{var e;class t{constructor(){(0,o.A)(this,"subscription",new vt.yU),(0,o.A)(this,"initialized",!1),(0,o.A)(this,"zone",Qn(Hi)),(0,o.A)(this,"pendingTasks",Qn(zs))}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Hi.assertNotInAngularZone(),queueMicrotask(()=>{null!==r&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}
1))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Hi.assertInAngularZone(),null!=r||(r=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"root"})),t})(),Rp=(()=>{var e;class t{constructor(){var r,s,f;(0,o.A)(this,"appRef",Qn(ha)),(0,o.A)(this,"taskService",Qn(zs)),(0,o.A)(this,"ngZone",Qn(Hi)),(0,o.A)(this,"zonelessEnabled",Qn(al)),(0,o.A)(this,"tracing",Qn(zl,{optional:!0})),(0,o.A)(this,"disableScheduling",null!==(r=Qn(Lg,{optional:!0}))&&void 0!==r&&r),(0,o.A)(this,"zoneIsDefined",typeof Zone<"u"&&!!Zone.root.run),(0,o.A)(this,"schedulerTickApplyArgs",[{data:{__scheduler_tick__:!0}}]),(0,o.A)(this,"subscriptions",new vt.yU),(0,o.A)(this,"angularZoneId",this.zoneIsDefined?null===(s=this.ngZone._inner)||void 0===s?void 0:s.get(Td):null),(0,o.A)(this,"scheduleInRootZone",!this.zonelessEnabled&&this.zoneIsDefined&&null!==(f=Qn(Cd,{optional:!0}))&&void 0!==f&&f),(0,o.A)(this,"cancelScheduledCallback",null),(0,o.A)(this,"useMicrotaskScheduler",!1),(0,o.A)(this,"runningTick",!1),(0,o.A)(this,"pendingRenderTaskId",null),this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||(this.disableScheduling=!this.zonelessEnabled&&(this.ngZone instanceof Kl||!this.zoneIsDefined))}notify(r){var s,f;if(!this.zonelessEnabled&&5===r)return;let m=!1;switch(r){case 0:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 8:this.appRef.deferredDirtyFlags|=8;break;case 6:case 14:this.appRef.dirtyFlags|=2,m=!0;break;case 13:this.appRef.dirtyFlags|=16,m=!0;break;case 12:m=!0;break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=null!==(s=null===(f=this.tracing)||void 0===f?void 0:f.snapshot(this.appRef.tracingSnapshot))&&void 0!==s?s:null,!this.shouldScheduleTick(m))return;const A=this.useMicrotaskScheduler?vh:bd;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>A(()=>this.tick())):this.ngZone.runOutsideAngular(()=>A(()=>this.tick()))}shouldScheduleTick(r){return!(this.disableScheduling&&!r||this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Td+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(s){throw this.taskService.remove(r),s}finally{this.cleanup()}this.useMicrotaskScheduler=!0,vh(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){var r;if(this.runningTick=!1,null===(r=this.cancelScheduledCallback)||void 0===r||r.call(this),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const s=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(s)}}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"root"})),t})();const Vy=new xn("",{providedIn:"root",factory:()=>Qn(Vy,W.Optional|W.SkipSelf)||function hL(){return typeof $localize<"u"&&$localize.locale||ov}()}),pL=new xn("",{providedIn:"root",factory:()=>"USD"}),hv=new xn(""),yL=new xn("");function Np(e){return!e.moduleRef}let rD=(()=>{var e;class t{constructor(r){(0,o.A)(this,"_injector",void 0),(0,o.A)(this,"_modules",[]),(0,o.A)(this,"_destroyListeners",[]),(0,o.A)(this,"_destroyed",!1),this._injector=r}bootstrapModuleFactory(r,s){const f=null==s?void 0:s.scheduleInRootZone,T=[Uy({ngZoneFactory:()=>function s_(e="zone.js",t){return"noop"===e?new Kl:"zone.js"===e?new Hi(t):e}(null==s?void 0:s.ngZone,(0,u.A)((0,u.A)({},By({eventCoalescing:null==s?void 0:s.ngZoneEventCoalescing,runCoalescing:null==s?void 0:s.ngZoneRunCoalescing})),{},{scheduleInRootZone:f})),ignoreChangesOutsideZone:null==s?void 0:s.ignoreChangesOutsideZone}),{provide:ds,useExisting:Rp}
1],Z=function Aw(e,t,n){return new U0(e,t,n,!1)}(r.moduleType,this.injector,T);return function nD(e){const t=Np(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Hi);return n.run(()=>{Np(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(Da,null);let s;if(n.runOutsideAngular(()=>{s=n.onError.subscribe({next:f=>{r.handleError(f)}})}),Np(e)){const f=()=>t.destroy(),m=e.platformInjector.get(hv);m.add(f),t.onDestroy(()=>{s.unsubscribe(),m.delete(f)})}else{const f=()=>e.moduleRef.destroy(),m=e.platformInjector.get(hv);m.add(f),e.moduleRef.onDestroy(()=>{Zm(e.allPlatformModules,e.moduleRef),s.unsubscribe(),m.delete(f)})}return function WR(e,t,n){try{const r=n();return q0(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(r,n,()=>{const f=t.get(hb);return f.runInitializers(),f.donePromise.then(()=>{if(function g1(e){"string"==typeof e&&(cT=e.toLowerCase().replace(/_/g,"-"))}(t.get(Vy,ov)||ov),!t.get(yL,!0))return Np(e)?t.get(ha):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Np(e)){const T=t.get(ha);return void 0!==e.rootComponent&&T.bootstrap(e.rootComponent),T}return function EL(e,t){const n=e.injector.get(ha);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new zn(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}({moduleRef:Z,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(r,s=[]){const f=mb({},s);return function uL(e,t,n){const r=new B0(n);return Promise.resolve(r)}(0,0,r).then(m=>this.bootstrapModuleFactory(m,f))}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new zn(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const r=this._injector.get(hv,null);r&&(r.forEach(s=>s()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)(Ei(Jr))}),(0,o.A)(t,"\u0275prov",Fr({token:e,factory:e.\u0275fac,providedIn:"platform"})),t})(),qu=null;const iD=new xn("");function oD(e,t,n=[]){const r="Platform: ".concat(t),s=new xn(r);return(f=[])=>{let m=$y();if(!m||m.injector.get(iD,!1)){const A=[...n,...f,{provide:s,useValue:!0}];e?e(A):function AL(e){if(qu&&!qu.get(iD,!1))throw new zn(400,!1);(function gb(){!function He(e){Me=e}(()=>{throw new zn(600,!1)})})(),qu=e;const t=e.get(rD);(function aD(e){const t=e.get(wh,null);If(e,()=>{null==t||t.forEach(n=>n())})})(e)}(function sD(e=[],t){return Jr.create({name:t,providers:[{provide:pn,useValue:"platform"},{provide:hv,useValue:new Set([()=>qu=null])},...e]})}(A,r))}return function CL(){const t=$y();if(!t)throw new zn(401,!1);return t}()}}function $y(){var e,t;return null!==(e=null===(t=qu)||void 0===t?void 0:t.get(rD))&&void 0!==e?e:null}function TL(){return!1}function SL(){}let uD=(()=>{class e{}return(0,o.A)(e,"__NG_ELEMENT_ID__",DL),e})();function DL(e){return function IL(e,t,n){if(il(e)&&!n){const r=Cs(e.index,t);return new op(r,r)}return 175&e.type?new op(t[Ji],t):null}(zr(),gn(),!(16&~e))}class hD{constructor(){}supports(t){return Gm(t)}create(t){return new RL(t)}}const wL=(e,t)=>t;class RL{constructor(t){(0,o.A)(this,"length",0),(0,o.A)(this,"collection",void 0),(0,o.A)(this,"_linkedRecords",null),(0,o.A)(this,"_unlinkedRecords",null),(0,o.A)(this,"_previousItHead",null),(0,o.A)(this,"_itHead",null),(0,o.A)(this,"_itTail",null),(0,o.A)(this,"_additionsHead",null),(0,o.A)(this,"_additionsTail",null),(0,o.A)(this,"_movesHead",null),(0,o.A)(this,"_movesTail",null),(0,o.A)(this,"_removalsHead",null),(0,o.A)(this,"_removalsTail",null),(0,o.A)(this,"_identityChangesHead",null),(0,o.A)(this,"_identityChangesTail",null),(0,o.A)(this,"_trackByFn",void 0),this._trackByFn=t||wL}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,f=null;for(;n||r;){const m=!r||n&&n.currentIndex<gD(r,s,f)?n:r,A=gD(m,s,f),T=m.currentIndex;if(m===r)s--,r=r._nextRemoved;else if(n=n._next,null==m.previousIndex)s++;else{f||(f=[]);const Z=A-s,ye=T-s;if(Z!=ye){for(let Qe=0;Qe<Z;Qe++){const ct=Qe<f.length?f[Qe]:f[Qe]=0,Pt=ct+Qe;ye<=Pt&&Pt<Z&&(f[Qe]=ct+1)}f[m.previousIndex]=ye-Z}}A!==T&&t(m,A,T)}}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;
vendor: 5,270 bytes, line 1
1n=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=[]),!Gm(t))throw new zn(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,f,m,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let A=0;A<this.length;A++)f=t[A],m=this._trackByFn(A,f),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,f,m,A)),Object.is(n.item,f)||this._addIdentityChange(n,f)):(n=this._mismatch(n,f,m,A),r=!0),n=n._next}else s=0,function Fw(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,A=>{m=this._trackByFn(s,A),null!==n&&Object.is(n.trackById,m)?(r&&(n=this._verifyReinsertion(n,A,m,s)),Object.is(n.item,A)||this._addIdentityChange(n,A)):(n=this._mismatch(n,A,m,s),r=!0),n=n._next,s++}),this.length=s;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,s){let f;return null===t?f=this._itTail:(f=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,f,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,f,s)):t=this._addAfter(new NL(n,r),f,s),t}_verifyReinsertion(t,n,r,s){let f=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==f?t=this._reinsertAfter(f,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),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 s=t._prevRemoved,f=t._nextRemoved;return null===s?this._removalsHead=f:s._nextRemoved=f,null===f?this._removalsTail=s:f._prevRemoved=s,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 s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new pD),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 pD),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 NL{constructor(t,n){(0,o.A)(this,"item",void 0),(0,o.A)(this,"trackById",void 0),(0,o.A)(this,"currentIndex",null),(0,o.A)(this,"previousIndex",null),(0,o.A)(this,"_nextPrevious",null),(0,o.A)(this,"_prev",null),(0,o.A)(this,"_next",null),(0,o.A)(this,"_prevDup",null),(0,o.A)(this,"_nextDup",null),(0,o.A)(this,"_prevRemoved",null),(0,o.A)(this,"_nextRemoved",null),(0,o.A)(this,"_nextAdded",null),(0,o.A)(this,"_nextMoved",null),(0,o.A)(this,"_nextIdentityChange",null),this.item=t,this.trackById=n}}class xL{constructor(){(0,o.A)(this,"_head",null),(0,o.A)(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;
1r=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 pD{constructor(){(0,o.A)(this,"map",new Map)}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new xL,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.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 gD(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class mD{constructor(){}supports(t){return t instanceof Map||K0(t)}create(){return new LL}}class LL{constructor(){(0,o.A)(this,"_records",new Map),(0,o.A)(this,"_mapHead",null),(0,o.A)(this,"_appendAfter",null),(0,o.A)(this,"_previousMapHead",null),(0,o.A)(this,"_changesHead",null),(0,o.A)(this,"_changesTail",null),(0,o.A)(this,"_additionsHead",null),(0,o.A)(this,"_additionsTail",null),(0,o.A)(this,"_removalsHead",null),(0,o.A)(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||K0(t)))throw new zn(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,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const f=this._getOrCreateRecordForKey(s,r);
1n=this._insertBeforeOrAppend(n,f)}}),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 s=this._records.get(t);this._maybeAddToChanges(s,n);const f=s._prev,m=s._next;return f&&(f._next=m),m&&(m._prev=f),s._next=null,s._prev=null,s}const r=new kL(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 kL{constructor(t){(0,o.A)(this,"key",void 0),(0,o.A)(this,"previousValue",null),(0,o.A)(this,"currentValue",null),(0,o.A)(this,"_nextPrevious",null),(0,o.A)(this,"_next",null),(0,o.A)(this,"_prev",null),(0,o.A)(this,"_nextAdded",null),(0,o.A)(this,"_nextRemoved",null),(0,o.A)(this,"_nextChanged",null),this.key=t}}function vD(){return new zy([new hD])}let zy=(()=>{class t{constructor(r){(0,o.A)(this,"factories",void 0),this.factories=r}static create(r,s){if(null!=s){const f=s.factories.slice();r=r.concat(f)}return new t(r)}static extend(r){return{provide:t,useFactory:s=>t.create(r,s||vD()),deps:[[t,new ou,new ia]]}}find(r){const s=this.factories.find(f=>f.supports(r));if(null!=s)return s;throw new zn(901,!1)}}return(0,o.A)(t,"\u0275prov",Fr({token:t,providedIn:"root",factory:vD})),t})();function _D(){return new Qy([new mD])}let Qy=(()=>{class t{constructor(r){(0,o.A)(this,"factories",void 0),this.factories=r}static create(r,s){if(s){const f=s.factories.slice();r=r.concat(f)}return new t(r)}static extend(r){return{provide:t,useFactory:s=>t.create(r,s||_D()),deps:[[t,new ou,new ia]]}}find(r){const s=this.factories.find(f=>f.supports(r));if(s)return s;throw new zn(901,!1)}}return(0,o.A)(t,"\u0275prov",Fr({token:t,providedIn:"root",factory:_D})),t})();const BL=oD(null,"core",[]);let jL=(()=>{var e;class t{constructor(r){}}return e=t,(0,o.A)(t,"\u0275fac",function(r){return new(r||e)(Ei(ha))}),(0,o.A)(t,"\u0275mod",V0({type:e})),(0,o.A)(t,"\u0275inj",Zi({})),t})();const Av=new WeakSet,RD="";let Cv=[];function ND(e){return e.get(Bh,hm)}function JL(){const e=[{provide:Bh,useFactory:()=>{let t=!0;{var n;const r=Qn(Gl);t=!(null===(n=window._ejsas)||void 0===n||!n[r])}return t&&Eo("NgEventReplay"),t}}];return e.push({provide:_s,useValue:()=>{const t=Qn(Jr),n=t.get(ha);if(!Av.has(n)){const r=Qn(xc);ND(t)&&PT((s,f,m)=>{Hh(s,f,m),zd(s,r)})}},multi:!0},{provide:Ap,useFactory:()=>{const t=Qn(Gl),n=Qn(Jr),r=Qn(ha);return()=>{!ND(n)||Av.has(r)||(Av.add(r),r.onDestroy(()=>{Av.delete(r),hs(t),PT(()=>{})}),r.whenStable().then(()=>{var s;const f=n.get(rs);qL(f,n);const m=n.get(xc);null===(s=m.get(RD))||void 0===s||s.forEach(gl),m.delete(RD);const A=f.instance;!function Yh(e){return e.get(pm,!1,{optional:!0})}(n)?A.cleanUp():r.onDestroy(()=>A.cleanUp())}))}},multi:!0}),e}const qL=(e,t)=>{const n=t.get(Gl),r=window._ejsas[n],s=e.instance=new wo(new Qi(r.c));for(const A of r.et)s.addEvent(A);for(const A of r.etc)s.addEvent(A);const f=function jo(e,t=window){var n;return function Xr(e){var t;return null!==(t=null==e?void 0:e.q)&&void 0!==t?t:[]}(null===(n=t._ejsas)||void 0===n?void 0:n[e])}(n);s.replayEarlyEventInfos(f),hs(n);const m=new Wt(A=>
1{!function tk(e,t,n){var r;const s=null!==(r=n&&n.getAttribute(Yl))&&void 0!==r?r:"";/d\d+/.test(s)?function nk(e,t,n,r){Cv.push({event:n,currentTarget:r}),Yu(t,e,rk)}(s,e,t,n):101===t.eventPhase&&CE(t,n)}(t,A,A.currentTarget)});!function st(e,t){e.ecrd(n=>{t.dispatch(n)},Hr.I_AM_THE_JSACTION_FRAMEWORK)}(s,m)};function rk(e){const t=[...Cv],n=new Set(e);Cv=[];for(let{event:r,currentTarget:s}of t){const f=s.getAttribute(Yl);n.has(f)?CE(r,s):Cv.push({event:r,currentTarget:s})}}let jD=!1,$D=!1;function yk(){const e=[{provide:$u,useFactory:()=>{let t=!0;{const n=Qn(ul,{optional:!0});t=!(null==n||!n.get(D_,null))}return t&&Eo("NgHydration"),t}},{provide:_s,useValue:()=>{(function tC(e){qA=e})(!1),Qn($u)&&(function Ak(){const e=bs();let t;for(const r of e.body.childNodes){var n;if(r.nodeType===Node.COMMENT_NODE&&(null===(n=r.textContent)||void 0===n?void 0:n.trim())===II){t=r;break}}if(!t)throw new zn(-507,!1)}(),function pk(){jD||(jD=!0,function PI(){bE=OI}(),function o1(){rT=i1}(),function gx(){sS=px}(),function l1(){iT=a1}(),function Vw(){XC=jw}(),function iw(){pC=rw,P0=nw}(),function UM(){oC=FM}(),function qO(){hA=JO}())}())},multi:!0}];return e.push({provide:dm,useFactory:()=>Qn($u)},{provide:Ap,useFactory:()=>
1{if(Qn($u)){const t=Qn(ha);return Qn(Jr),()=>{(function vk(e){return e.whenStable()})(t).then(()=>{iC(t)})}}return()=>{}},multi:!0}),La(e)}function Ek(){const e=[JL(),{provide:pm,useValue:!0},{provide:Hu,useClass:DI},{provide:_s,useValue:()=>{(function mk(){$D||($D=!0,function jI(){ME=BI}())})(),Eo("NgIncrementalHydration")},multi:!0}];return e.push({provide:Ap,useFactory:()=>{const t=Qn(Jr),n=bs();return()=>{const r=function HI(e){const t=function VI(e){return ME(e)}(e);let n=new Map;for(let r in t)n.set(r,KI(t[r]));return n}(t),s=function vM(e,t){const n=e.createNodeIterator(t,NodeFilter.SHOW_COMMENT,{acceptNode:_M});let r;const s=new Map;for(;r=n.nextNode();){var f,m;const A="ngh=",T=null===(f=r)||void 0===f?void 0:f.textContent,Z=null!==(m=null==T?void 0:T.indexOf(A))&&void 0!==m?m:-1;if(Z>-1){const ye=T.substring(Z+A.length).trim();s.set(ye,r)}}return s}(n,n.body);(function XR(e,t,n){const r=[],s=[],f=[],m=[];for(let[A,T]of t){const Z=n.get(A);if(void 0!==Z){const ye=T.data[ca];let we=Z;for(let Qe=0;Qe<ye;Qe++){if(we=we.previousSibling,we.nodeType!==Node.ELEMENT_NODE)continue;const ct={el:we,blockName:A};T.hydrate.idle&&r.push(ct),T.hydrate.immediate&&m.push(ct),null!==T.hydrate.timer&&(ct.delay=T.hydrate.timer,s.push(ct)),T.hydrate.viewport&&f.push(ct)}}}(function YR(e,t){for(const n of t){const r=e.get(Hu),f=Qm(()=>Yu(e,n.blockName),e);r.addCleanupFn(n.blockName,f)}})(e,r),function qR(e,t){for(const n of t)Yu(e,n.blockName)}(e,m),function ZR(e,t){if(t.length>0){const n=e.get(Hu);for(let r of t){const s=Lc(r.el,()=>Yu(e,r.blockName),e);n.addCleanupFn(r.blockName,s)}}}(e,f),function JR(e,t){for(const n of t){const r=e.get(Hu),s=()=>Yu(e,n.blockName),m=Xm(n.delay)(s,e);r.addCleanupFn(n.blockName,m)}}(e,s)})(t,r,s),function UI(e,t){const n=function FI(e){const t=e.body.querySelectorAll("[jsaction]"),n=new Set;for(let r of t){const s=r.getAttribute("jsaction"),f=r.getAttribute("ngb"),m=[...Ha.join(":;"),...fl.join(":;")].join("|");null!=s&&s.match(m)&&null!==f&&n.add(r)}return n}(e);for(let r of n){const s=t.get(xc);zd(r,s)}}(n,t)}},multi:!0}),e}function Ck(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function bk(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function Sf(e,t){Eo("NgSignals");const n=function ve(e){const t=Object.create(bt);t.computation=e;const n=()=>
1{if(J(t),te(t),t.value===ze)throw t.error;return t.value};return n[Q]=t,n}(e);return null!=t&&t.equal&&(n[Q].equal=t.equal),n}function HD(e,t){Eo("NgSignals");const n="function"==typeof e,r=Object.create(Ok);r.source=n?e:e.source,n||(r.computation=e.computation);const s=n?null==t?void 0:t.equal:e.equal;return s&&(r.equal=s),function Ik(e){const n=()=>{if(J(e),te(e),e.value===Dv)throw e.error;return e.value};return n[Q]=e,n.set=r=>{J(e),H(e,r),ce(e)},n.update=r=>{J(e),Se(e,r),ce(e)},n.asReadonly=xu.bind(n),n}(r)}const Sv=Symbol("UNSET"),Zy=Symbol("COMPUTING"),Dv=Symbol("ERRORED"),Ok=(0,u.A)((0,u.A)({},ne),{},{value:Sv,dirty:!0,error:null,equal:v,computation:e=>e,producerMustRecompute:e=>e.value===Sv||e.value===Zy,producerRecomputeValue(e){if(e.value===Zy)throw new Error("Detected cycle in computations.");const t=e.value;e.value=Zy;const n=_(e);let r;try{const s=e.source();r=e.computation(s,t===Sv||t===Dv?void 0:{source:e.sourceValue,value:t}),e.sourceValue=s}catch(s){r=Dv,e.error=s}finally{R(e,n)}t!==Sv&&r!==Dv&&e.equal(t,r)?e.value=t:(e.value=r,e.version++)}});function ec(e){const t=re(null);try{return e()}finally{re(t)}}let GD=(()=>{class e{constructor(n,r){(0,o.A)(this,"view",void 0),(0,o.A)(this,"node",void 0),this.view=n,this.node=r}}return(0,o.A)(e,"__NG_ELEMENT_ID__",Pk),e})();function Pk(){return new GD(gn(),zr())}let wk=(()=>{var e;class t extends pb{constructor(...r){super(...r),(0,o.A)(this,"pendingTasks",Qn(zs)),(0,o.A)(this,"taskId",null)}schedule(r){super.schedule(r),null===this.taskId&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{null!==this.taskId&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}}return(0,o.A)(t,"\u0275prov",Fr({token:e=t,providedIn:"root",factory:()=>new e})),t})();class Rk{constructor(t,n,r,s,f,m){(0,o.A)(this,"scheduler",void 0),(0,o.A)(this,"effectFn",void 0),(0,o.A)(this,"zone",void 0),(0,o.A)(this,"injector",void 0),(0,o.A)(this,"unregisterOnDestroy",void 0),(0,o.A)(this,"watcher",void 0),this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=f,this.watcher=function Te(e,t,n){const r=Object.create(F);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;const s=T=>{r.cleanupFn=T};return r.ref={notify:()=>Ce(r),run:()=>{if(null===r.fn)return;if(function ue(){return x}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!w(r))return;r.hasRun=!0;const T=_(r);try{r.cleanupFn(),r.cleanupFn=P,r.fn(s)}finally{R(r,T)}},cleanup:()=>r.cleanupFn(),destroy:()=>function m(T){(function f(T){return null===T.fn&&null===T.schedule})(T)||(B(T),T.cleanupFn(),T.fn=null,T.schedule=null,T.cleanupFn=P)}(r),[Q]:r},r.ref}(A=>this.runEffect(A),()=>this.schedule(),m),this.unregisterOnDestroy=null==s?void 0:s.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){const r=this.injector.get(Da,null,{optional:!0});null==r||r.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}let Jy=!1;class Lk{constructor(t){(0,o.A)(this,Q,void 0),this[Q]=t}destroy(){this[Q].destroy()}}function qy(e,t){var n;if(Jy)return function xk(e,t){var n,r;Eo("NgSignals"),(null==t||!t.injector)&&ks();const s=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Qn(Jr),f=!0!==(null==t?void 0:t.manualCleanup)?s.get(Sa):null,m=new Rk(s.get(wk),e,typeof Zone>"u"?null:Zone.current,f,s,null!==(r=null==t?void 0:t.allowSignalWrites)&&void 0!==r&&r),A=s.get(uD,null,{optional:!0});var T,Z;return A&&8&A._lView[yr]?(null!==(Z=(T=A._lView)[gu])&&void 0!==Z?Z:T[gu]=[]).push(m.watcher.notify):m.watcher.notify(),m}(e,t);Eo("NgSignals"),(null==t||!t.injector)&&ks();const r=null!==(n=null==t?void 0:t.injector)&&void 0!==n?n:Qn(Jr);let f,s=!0!==(null==t?void 0:t.manualCleanup)?r.get(Sa):null;const m=r.get(GD,null,{optional:!0}),A=r.get(ds);return null===m||null!=t&&t.forceRoot?f=function Bk(e,t,n){const r=Object.create(kk);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}(e,r.get(ty),A):(f=function Uk(e,t,n){var r;const s=Object.create(Fk);return s.view=e,s.zone=typeof Zone<"u"?Zone.current:null,s.notifier=t,s.fn=n,null!==(r=e[us])&&void 0!==r||(e[us]=new Set),e[us].add(s),s.consumerMarkedDirty(s),s}(m.view,A,e),s instanceof Ng&&s._lView===m.view&&(s=null)),f.injector=r,null!==s&&(f.onDestroyFn=s.onDestroy(()=>f.destroy())),new Lk(f)}const zD=(0,u.A)((0,u.A)({},ne),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Ru,run(){if(this.dirty=!1,this.hasRun&&!w(this))return;this.hasRun=!0;const e=r=>{var s;return(null!==(s=this.cleanupFns)&&void 0!==s?s:this.cleanupFns=[]).push(r)},t=_(this),n=Fl(!1);try{this.maybeCleanup(),this.fn(e)}finally{Fl(n),R(this,t)}},maybeCleanup(){var e;if(null!==(e=this.cleanupFns)&&void 0!==e&&e.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),kk=(0,u.A)((0,u.A)({},zD),{},{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){B(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),Fk=(0,u.A)((0,u.A)({},zD),{},{consumerMarkedDirty(){this.view[yr]|=8192,yu(this.view),this.notifier.notify(14)},destroy(){var e;B(this),this.onDestroyFn(),this.maybeCleanup(),null===(e=this.view[us])||void 0===e||e.delete(this)}}),eE=Symbol("NOT_SET"),QD=new Set;function zk(e,t){const n=Wr(e),r=t.elementInjector||wi();return new mp(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function Qk(e){const t=Wr(e);if(!t)return null;const n=new mp(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}}}(0,u.A)((0,u.A)({},at),{},{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:eE,cleanup:null,consumerMarkedDirty(){
1if(this.sequence.impl.executing){if(null===this.sequence.lastPhase||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==eE&&!w(this))return this.signal;try{for(const m of null!==(t=this.cleanup)&&void 0!==t?t:QD){var t;m()}}finally{var n;null===(n=this.cleanup)||void 0===n||n.clear()}const r=[];void 0!==e&&r.push(e),r.push(this.registerCleanupFn);const s=_(this);let f;try{f=this.userFn.apply(null,r)}finally{R(this,s)}return(this.value===eE||!this.equal(this.value,f))&&(this.value=f,this.version++),this.signal}})},9079:(le,E,d)=>{"use strict";d.d(E,{ot:()=>be,pQ:()=>v});var p=d(3953),u=d(1985),o=d(6977);function v(te){te||((0,p.Af3)(v),te=(0,p.WQX)(p.abz));const $=new u.c(J=>te.onDestroy(J.next.bind(J)));return J=>J.pipe((0,o.Q)($))}function be(te,$){var J,se;const De=!(null!=$&&$.manualCleanup);De&&(null==$||!$.injector)&&(0,p.Af3)(be);const Ce=De?null!==(J=null==$||null===(se=$.injector)||void 0===se?void 0:se.get(p.abz))&&void 0!==J?J:(0,p.WQX)(p.abz):null,ce=function ue(te=Object.is){return($,J)=>1===$.kind&&1===J.kind&&te($.value,J.value)}(null==$?void 0:$.equal);let _;_=(0,p.vPA)(null!=$&&$.requireSync?{kind:0}:{kind:1,value:null==$?void 0:$.initialValue},{equal:ce});const R=te.subscribe({next:w=>_.set({kind:1,value:w}),error:w=>{if(null!=$&&$.rejectErrors)throw w;_.set({kind:2,error:w})}});if(null!=$&&$.requireSync&&0===_().kind)throw new p.wOt(601,!1);return null==Ce||Ce.onDestroy(R.unsubscribe.bind(R)),(0,p.EWP)(()=>{const w=_();switch(w.kind){case 1:return w.value;case 2:throw w.error;case 0:throw new p.wOt(601,!1)}},{equal:null==$?void 0:$.equal})}},3:(le,E,d)=>{"use strict";d.d(E,{$E:()=>Oe,Ah:()=>je,pZ:()=>Tt,r6:()=>vt,yE:()=>w});var p=d(9379),u=d(1660),o=d(3953),v=d(2365),O=d(8203),x=d(6860),U=d(4085),Q=d(9046);let w=(()=>{var gt;class dt{constructor(){(0,o.WQX)(v.Q_)._applyBodyHighContrastModeCssClasses()}}return gt=dt,(0,u.A)(dt,"\u0275fac",function(Et){return new(Et||gt)}),(0,u.A)(dt,"\u0275mod",o.$C({type:gt})),(0,u.A)(dt,"\u0275inj",o.G2t({imports:[O.jI,O.jI]})),dt})(),je=(()=>{var gt;class dt{}return gt=dt,(0,u.A)(dt,"\u0275fac",function(Et){return new(Et||gt)}),(0,u.A)(dt,"\u0275cmp",o.VBU({type:gt,selectors:[["structural-styles"]],decls:0,vars:0,template:function(Et,dn){},styles:['.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}'],encapsulation:2,changeDetection:0})),dt})();var Ue=function(gt){return gt[gt.FADING_IN=0]="FADING_IN",gt[gt.VISIBLE=1]="VISIBLE",gt[gt.FADING_OUT=2]="FADING_OUT",gt[gt.HIDDEN=3]="HIDDEN",gt}(Ue||{});class at{constructor(dt,Ct,Et,dn=!1){(0,u.A)(this,"_renderer",void 0),(0,u.A)(this,"element",void 0),(0,u.A)(this,"config",void 0),(0,u.A)(this,"_animationForciblyDisabledThroughCss",void 0),(0,u.A)(this,"state",Ue.HIDDEN),this._renderer=dt,this.element=Ct,this.config=Et,this._animationForciblyDisabledThroughCss=dn}fadeOut(){this._renderer.fadeOutRipple(this)}}const hn=(0,x.BQ)({passive:!0,capture:!0});class ln{constructor(){(0,u.A)(this,"_events",new Map),(0,u.A)(this,"_delegateEventHandler",dt=>{const Ct=(0,x.Fb)(dt);var Et;Ct&&(null===(Et=this._events.get(dt.type))||void 0===Et||Et.forEach((dn,Bn)=>{(Bn===Ct||Bn.contains(Ct))&&dn.forEach(Hn=>Hn.handleEvent(dt))}))})}addHandler(dt,Ct,Et,dn){const Bn=this._events.get(Ct);if(Bn){const Hn=Bn.get(Et);Hn?Hn.add(dn):Bn.set(Et,new Set([dn]))}else this._events.set(Ct,new Map([[Et,new Set([dn])]])),dt.runOutsideAngular(()=>{document.addEventListener(Ct,this._delegateEventHandler,hn)})}removeHandler(dt,Ct,Et){const dn=this._events.get(dt);if(!dn)return;const Bn=dn.get(Ct);Bn&&(Bn.delete(Et),0===Bn.size&&dn.delete(Ct),0===dn.size&&(this._events.delete(
1dt),document.removeEventListener(dt,this._delegateEventHandler,hn)))}}const et={enterDuration:225,exitDuration:150},_e=(0,x.BQ)({passive:!0,capture:!0}),Te=["mousedown","touchstart"],P=["mouseup","mouseleave","touchend","touchcancel"];let F=(()=>{var gt;class dt{}return gt=dt,(0,u.A)(dt,"\u0275fac",function(Et){return new(Et||gt)}),(0,u.A)(dt,"\u0275cmp",o.VBU({type:gt,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(Et,dn){},styles:[".mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}"],encapsulation:2,changeDetection:0})),dt})();class de{constructor(dt,Ct,Et,dn,Bn){(0,u.A)(this,"_target",void 0),(0,u.A)(this,"_ngZone",void 0),(0,u.A)(this,"_platform",void 0),(0,u.A)(this,"_containerElement",void 0),(0,u.A)(this,"_triggerElement",void 0),(0,u.A)(this,"_isPointerDown",!1),(0,u.A)(this,"_activeRipples",new Map),(0,u.A)(this,"_mostRecentTransientRipple",void 0),(0,u.A)(this,"_lastTouchStartEvent",void 0),(0,u.A)(this,"_pointerUpEventsRegistered",!1),(0,u.A)(this,"_containerRect",void 0),this._target=dt,this._ngZone=Ct,this._platform=dn,dn.isBrowser&&(this._containerElement=(0,U.i8)(Et)),Bn&&Bn.get(Q.l).load(F)}fadeInRipple(dt,Ct,Et={}){const dn=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Bn=(0,p.A)((0,p.A)({},et),Et.animation);Et.centered&&(dt=dn.left+dn.width/2,Ct=dn.top+dn.height/2);const Hn=Et.radius||function Ae(gt,dt,Ct){const Et=Math.max(Math.abs(gt-Ct.left),Math.abs(gt-Ct.right)),dn=Math.max(Math.abs(dt-Ct.top),Math.abs(dt-Ct.bottom));return Math.sqrt(Et*Et+dn*dn)}(dt,Ct,dn),Cr=dt-dn.left,Qt=Ct-dn.top,mt=Bn.enterDuration,Ut=document.createElement("div");Ut.classList.add("mat-ripple-element"),Ut.style.left="".concat(Cr-Hn,"px"),Ut.style.top="".concat(Qt-Hn,"px"),Ut.style.height="".concat(2*Hn,"px"),Ut.style.width="".concat(2*Hn,"px"),null!=Et.color&&(Ut.style.backgroundColor=Et.color),Ut.style.transitionDuration="".concat(mt,"ms"),this._containerElement.appendChild(Ut);const _t=window.getComputedStyle(Ut),mn=_t.transitionDuration,jn="none"===_t.transitionProperty||"0s"===mn||"0s, 0s"===mn||0===dn.width&&0===dn.height,Jn=new at(this,Ut,Et,jn);Ut.style.transform="scale3d(1, 1, 1)",Jn.state=Ue.FADING_IN,Et.persistent||(this._mostRecentTransientRipple=Jn);let fr=null;return!jn&&(mt||Bn.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const br=()=>{fr&&(fr.fallbackTimer=null),clearTimeout(Qr),this._finishRippleTransition(Jn)},Er=()=>this._destroyRipple(Jn),Qr=setTimeout(Er,mt+100);Ut.addEventListener("transitionend",br),Ut.addEventListener("transitioncancel",Er),fr={onTransitionEnd:br,onTransitionCancel:Er,fallbackTimer:Qr}}),this._activeRipples.set(Jn,fr),(jn||!mt)&&this._finishRippleTransition(Jn),Jn}fadeOutRipple(dt){if(dt.state===Ue.FADING_OUT||dt.state===Ue.HIDDEN)return;const Ct=dt.element,Et=(0,p.A)((0,p.A)({},et),dt.config.animation);Ct.style.transitionDuration="".concat(Et.exitDuration,"ms"),Ct.style.opacity="0",dt.state=Ue.FADING_OUT,(dt._animationForciblyDisabledThroughCss||!Et.exitDuration)&&this._finishRippleTransition(dt)}fadeOutAll(){this._getActiveRipples().forEach(dt=>dt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(dt=>{dt.config.persistent||dt.fadeOut()})}setupTriggerEvents(dt){const Ct=(0,U.i8)(dt);!this._platform.isBrowser||!Ct||Ct===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Ct,Te.forEach(Et=>{de._eventManager.addHandler(this._ngZone,Et,Ct,this)}))}handleEvent(dt){"mousedown"===dt.type?this._onMousedown(dt):"touchstart"===dt.type?this._onTouchStart(dt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{P.forEach(Ct=>{this._triggerElement.addEventListener(Ct,this,_e)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(dt){dt.state===Ue.FADING_IN?this._startFadeOutTransition(dt):dt.state===Ue.FADING_OUT&&this._destroyRipple(dt)}_startFadeOutTransition(dt){const Ct=dt===this._mostRecentTransientRipple,{persistent:Et}=dt.config;dt.state=Ue.VISIBLE,!Et&&(!Ct||!this._isPointerDown)&&dt.fadeOut()}_destroyRipple(dt){var Ct;const Et=null!==(Ct=this._activeRipples.get(dt))&&void 0!==Ct?Ct:null;
1this._activeRipples.delete(dt),this._activeRipples.size||(this._containerRect=null),dt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),dt.state=Ue.HIDDEN,null!==Et&&(dt.element.removeEventListener("transitionend",Et.onTransitionEnd),dt.element.removeEventListener("transitioncancel",Et.onTransitionCancel),null!==Et.fallbackTimer&&clearTimeout(Et.fallbackTimer)),dt.element.remove()}_onMousedown(dt){const Ct=(0,v._G)(dt),Et=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!Ct&&!Et&&(this._isPointerDown=!0,this.fadeInRipple(dt.clientX,dt.clientY,this._target.rippleConfig))}_onTouchStart(dt){if(!this._target.rippleDisabled&&!(0,v.w6)(dt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const Ct=dt.changedTouches;if(Ct)for(let Et=0;Et<Ct.length;Et++)this.fadeInRipple(Ct[Et].clientX,Ct[Et].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(dt=>{!dt.config.persistent&&(dt.state===Ue.VISIBLE||dt.config.terminateOnPointerUp&&dt.state===Ue.FADING_IN)&&dt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const dt=this._triggerElement;dt&&(Te.forEach(Ct=>de._eventManager.removeHandler(Ct,dt,this)),this._pointerUpEventsRegistered&&(P.forEach(Ct=>dt.removeEventListener(Ct,this,_e)),this._pointerUpEventsRegistered=!1))}}(0,u.A)(de,"_eventManager",new ln);const Oe=new o.nKC("mat-ripple-global-options");let vt=(()=>{var gt;class dt{get disabled(){return this._disabled}set disabled(Et){Et&&this.fadeOutAllNonPersistent(),this._disabled=Et,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Et){this._trigger=Et,this._setupTriggerEventsIfEnabled()}constructor(){(0,u.A)(this,"_elementRef",(0,o.WQX)(o.aKT)),(0,u.A)(this,"_animationMode",(0,o.WQX)(o.bc$,{optional:!0})),(0,u.A)(this,"color",void 0),(0,u.A)(this,"unbounded",void 0),(0,u.A)(this,"centered",void 0),(0,u.A)(this,"radius",0),(0,u.A)(this,"animation",void 0),(0,u.A)(this,"_disabled",!1),(0,u.A)(this,"_trigger",void 0),(0,u.A)(this,"_rippleRenderer",void 0),(0,u.A)(this,"_globalOptions",void 0),(0,u.A)(this,"_isInitialized",!1);const Et=(0,o.WQX)(o.SKi),dn=(0,o.WQX)(x.OD),Bn=(0,o.WQX)(Oe,{optional:!0}),Hn=(0,o.WQX)(o.zZn);this._globalOptions=Bn||{},this._rippleRenderer=new de(this,Et,this._elementRef,dn,Hn)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:(0,p.A)((0,p.A)((0,p.A)({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Et,dn=0,Bn){return"number"==typeof Et?this._rippleRenderer.fadeInRipple(Et,dn,(0,p.A)((0,p.A)({},this.rippleConfig),Bn)):this._rippleRenderer.fadeInRipple(0,0,(0,p.A)((0,p.A)({},this.rippleConfig),Et))}}return gt=dt,(0,u.A)(dt,"\u0275fac",function(Et){return new(Et||gt)}),(0,u.A)(dt,"\u0275dir",o.FsC({type:gt,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Et,dn){2&Et&&o.AVh("mat-ripple-unbounded",dn.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})),dt})(),Tt=(()=>{var gt;class dt{}return gt=dt,(0,u.A)(dt,"\u0275fac",function(Et){return new(Et||gt)}),(0,u.A)(dt,"\u0275mod",o.$C({type:gt})),(0,u.A)(dt,"\u0275inj",o.G2t({imports:[w,w]})),dt})()},728:(le,E,d)=>{"use strict";d.d(E,{wb:()=>wa});var p=d(1660),u=d(3953),o=d(345),v=d(2305),O=d(9379),x=d(9969);const U=["value"];function re(Ne){return new u.wOt(3e3,!1)}function Ue(Ne){switch(Ne.length){case 0:return new x.sf;case 1:return Ne[0];default:return new x.ui(Ne)}}function at(Ne,I,j=new Map,pe=new Map){const xe=[],Ye=[];let St=-1,wt=null;
1if(I.forEach(on=>{const Tn=on.get("offset"),Xn=Tn==St,qn=Xn&&wt||new Map;on.forEach((Pr,Ir)=>{let gr=Ir,er=Pr;if("offset"!==Ir)switch(gr=Ne.normalizePropertyName(gr,xe),er){case x.FX:er=j.get(Ir);break;case x.kp:er=pe.get(Ir);break;default:er=Ne.normalizeStyleValue(Ir,gr,er,xe)}qn.set(gr,er)}),Xn||Ye.push(qn),wt=qn,St=Tn}),xe.length)throw function We(){return new u.wOt(3502,!1)}();return Ye}function hn(Ne,I,j,pe){switch(I){case"start":Ne.onStart(()=>pe(j&&ln(j,"start",Ne)));break;case"done":Ne.onDone(()=>pe(j&&ln(j,"done",Ne)));break;case"destroy":Ne.onDestroy(()=>pe(j&&ln(j,"destroy",Ne)))}}function ln(Ne,I,j){const pe=j.totalTime,Ye=et(Ne.element,Ne.triggerName,Ne.fromState,Ne.toState,I||Ne.phaseName,null==pe?Ne.totalTime:pe,!!j.disabled),St=Ne._data;return null!=St&&(Ye._data=St),Ye}function et(Ne,I,j,pe,xe="",Ye=0,St){return{element:Ne,triggerName:I,fromState:j,toState:pe,phaseName:xe,totalTime:Ye,disabled:!!St}}function G(Ne,I,j){let pe=Ne.get(I);return pe||Ne.set(I,pe=j),pe}function _e(Ne){const I=Ne.indexOf(":");return[Ne.substring(1,I),Ne.slice(I+1)]}const Te=typeof document>"u"?null:document.documentElement;function P(Ne){const I=Ne.parentNode||Ne.host||null;return I===Te?null:I}let de=null,Ae=!1;function Dt(Ne,I){for(;I;){if(I===Ne)return!0;I=P(I)}return!1}function en(Ne,I,j){if(j)return Array.from(Ne.querySelectorAll(I));const pe=Ne.querySelector(I);return pe?[pe]:[]}let Pn=(()=>{var Ne;class I{validateStyleProperty(pe){return function Oe(Ne){de||(de=function Tt(){return typeof document<"u"?document.body:null}()||{},Ae=!!de.style&&"WebkitAppearance"in de.style);let I=!0;return de.style&&!function F(Ne){return"ebkit"==Ne.substring(1,6)}(Ne)&&(I=Ne in de.style,!I&&Ae&&(I="Webkit"+Ne.charAt(0).toUpperCase()+Ne.slice(1)in de.style)),I}(pe)}containsElement(pe,xe){return Dt(pe,xe)}getParentElement(pe){return P(pe)}query(pe,xe,Ye){return en(pe,xe,Ye)}computeStyle(pe,xe,Ye){return Ye||""}animate(pe,xe,Ye,St,wt,on=[],Tn){return new x.sf(Ye,St)}}return Ne=I,(0,p.A)(I,"\u0275fac",function(pe){return new(pe||Ne)}),(0,p.A)(I,"\u0275prov",u.jDH({token:Ne,factory:Ne.\u0275fac})),I})();class $n{}(0,p.A)($n,"NOOP",new Pn);class In{}const Ve="ng-enter",yt="ng-leave",Rt="ng-trigger",zt=".ng-trigger",ft="ng-animating",Ht=".ng-animating";function Zt(Ne){if("number"==typeof Ne)return Ne;const I=Ne.match(/^(-?[\.\d]+)(m?s)/);return!I||I.length<2?0:Vt(parseFloat(I[1]),I[2])}function Vt(Ne,I){return"s"===I?1e3*Ne:Ne}function gt(Ne,I,j){return Ne.hasOwnProperty("duration")?Ne:function dt(Ne,I,j){let xe,Ye=0,St="";if("string"==typeof Ne){const wt=Ne.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===wt)return I.push(re()),{duration:0,delay:0,easing:""};xe=Vt(parseFloat(wt[1]),wt[2]);const on=wt[3];null!=on&&(Ye=Vt(parseFloat(on),wt[4]));const Tn=wt[5];Tn&&(St=Tn)}else xe=Ne;if(!j){let wt=!1,on=I.length;xe<0&&(I.push(function be(){return new u.wOt(3100,!1)}()),wt=!0),Ye<0&&(I.push(function ue(){return new u.wOt(3101,!1)}()),wt=!0),wt&&I.splice(on,0,re())}return{duration:xe,delay:Ye,easing:St}}(Ne,I,j)}function dn(Ne,I,j){I.forEach((pe,xe)=>{const Ye=Ft(xe);j&&!j.has(xe)&&j.set(xe,Ne.style[Ye]),Ne.style[Ye]=pe})}function Bn(Ne,I){I.forEach((j,pe)=>{const xe=Ft(pe);Ne.style[xe]=""})}function Hn(Ne){return Array.isArray(Ne)?1==Ne.length?Ne[0]:(0,x.K2)(Ne):Ne}const Qt=new RegExp("".concat("{{","\\s*(.+?)\\s*").concat("}}"),"g");function mt(Ne){let I=[];if("string"==typeof Ne){let j;for(;j=Qt.exec(Ne);)I.push(j[1]);Qt.lastIndex=0}return I}function Ut(Ne,I,j){const pe="".concat(Ne),xe=pe.replace(Qt,(Ye,St)=>{let wt=I[St];return null==wt&&(j.push(function ne(){return new u.wOt(3003,!1)}()),wt=""),wt.toString()});return xe==pe?Ne:xe}const _t=/-+([a-z0-9])/g;function Ft(Ne){return Ne.replace(_t,(...I)=>I[1].toUpperCase())}function fr(Ne,I,j){switch(I.type){case x.If.Trigger:return Ne.visitTrigger(I,j);case x.If.State:return Ne.visitState(I,j);case x.If.Transition:return Ne.visitTransition(I,j);case x.If.Sequence:return Ne.visitSequence(I,j);case x.If.Group:return Ne.visitGroup(I,j);case x.If.Animate:return Ne.visitAnimate(I,j);case x.If.Keyframes:return Ne.visitKeyframes(I,j);case x.If.Style:return Ne.visitStyle(I,j);case x.If.Reference:return Ne.visitReference(I,j);case x.If.AnimateChild:return Ne.visitAnimateChild(I,j);case x.If.AnimateRef:return Ne.visitAnimateRef(I,j);case x.If.Query:return Ne.visitQuery(I,j);case x.If.Stagger:return Ne.visitStagger(I,j);default:throw function te(){return new u.wOt(3004,!1)}()}}function br(Ne,I){return window.getComputedStyle(Ne)[I]}const Er=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 Qr extends In{normalizePropertyName(I,j){return Ft(I)}normalizeStyleValue(I,j,pe,xe){let Ye="";const St=pe.toString().trim();if(Er.has(j)&&0!==pe&&"0"!==pe)if("number"==typeof pe)Ye="px";else{const wt=pe.match(/^[+-]?[\d\.]+([a-z]*)$/);wt&&0==wt[1].length&&xe.push(function $(){return new u.wOt(3005,!1)}())}return St+Ye}}const pt=new Set(["true","1"]),Xt=new Set(["false","0"]);function Cn(Ne,I){const j=pt.has(Ne)||Xt.has(Ne),pe=pt.has(I)||Xt.has(I);return(xe,Ye)=>{let St="*"==Ne||Ne==xe,wt="*"==I||I==Ye;return!St&&j&&"boolean"==typeof xe&&(St=xe?pt.has(Ne):Xt.has(Ne)),!wt&&pe&&"boolean"==typeof Ye&&(wt=Ye?pt.has(I):Xt.has(I)),St&&wt}}const ir=new RegExp("s*".concat(":self","s*,?"),"g");function vr(Ne,I,j,pe){return new co(Ne).build(I,j,pe)}class co{constructor(I){(0,p.A)(this,"_driver",void 0),this._driver=I}build(I,j,pe){const xe=new ci(j);return this._resetContextStyleTimingState(xe),fr(this,Hn(I),xe)}_resetContextStyleTimingState(I){I.currentQuerySelector="",I.collectedStyles=new Map,I.collectedStyles.set("",new Map),I.currentTime=0}visitTrigger(I,j){let pe=j.queryCount=0,xe=j.depCount=0;const Ye=[],St=[];return"@"==I.name.charAt(0)&&j.errors.push(function J(){return new u.wOt(3006,!1)}()),I.definitions.forEach(wt=>{if(this._resetContextStyleTimingState(j),wt.type==x.If.State){const on=wt,Tn=on.name;
1Tn.toString().split(/\s*,\s*/).forEach(Xn=>{on.name=Xn,Ye.push(this.visitState(on,j))}),on.name=Tn}else if(wt.type==x.If.Transition){const on=this.visitTransition(wt,j);pe+=on.queryCount,xe+=on.depCount,St.push(on)}else j.errors.push(function se(){return new u.wOt(3007,!1)}())}),{type:x.If.Trigger,name:I.name,states:Ye,transitions:St,queryCount:pe,depCount:xe,options:null}}visitState(I,j){const pe=this.visitStyle(I.styles,j),xe=I.options&&I.options.params||null;if(pe.containsDynamicStyles){const Ye=new Set,St=xe||{};pe.styles.forEach(wt=>{wt instanceof Map&&wt.forEach(on=>{mt(on).forEach(Tn=>{St.hasOwnProperty(Tn)||Ye.add(Tn)})})}),Ye.size&&j.errors.push(function De(){return new u.wOt(3008,!1)}(0,Ye.values()))}return{type:x.If.State,name:I.name,style:pe,options:xe?{params:xe}:null}}visitTransition(I,j){j.queryCount=0,j.depCount=0;const pe=fr(this,Hn(I.animation),j),xe=function sn(Ne,I){const j=[];return"string"==typeof Ne?Ne.split(/\s*,\s*/).forEach(pe=>function Ze(Ne,I,j){if(":"==Ne[0]){const on=function Mt(Ne,I){switch(Ne){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(j,pe)=>parseFloat(pe)>parseFloat(j);case":decrement":return(j,pe)=>parseFloat(pe)<parseFloat(j);default:return I.push(function K(){return new u.wOt(3016,!1)}()),"* => *"}}(Ne,j);if("function"==typeof on)return void I.push(on);Ne=on}const pe=Ne.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==pe||pe.length<4)return j.push(function k(){return new u.wOt(3015,!1)}()),I;const xe=pe[1],Ye=pe[2],St=pe[3];I.push(Cn(xe,St)),"<"==Ye[0]&&("*"!=xe||"*"!=St)&&I.push(Cn(St,xe))}(pe,j,I)):j.push(Ne),j}(I.expr,j.errors);return{type:x.If.Transition,matchers:xe,animation:pe,queryCount:j.queryCount,depCount:j.depCount,options:$r(I.options)}}visitSequence(I,j){return{type:x.If.Sequence,steps:I.steps.map(pe=>fr(this,pe,j)),options:$r(I.options)}}visitGroup(I,j){const pe=j.currentTime;let xe=0;const Ye=I.steps.map(St=>{j.currentTime=pe;const wt=fr(this,St,j);return xe=Math.max(xe,j.currentTime),wt});return j.currentTime=xe,{type:x.If.Group,steps:Ye,options:$r(I.options)}}visitAnimate(I,j){const pe=function di(Ne,I){if(Ne.hasOwnProperty("duration"))return Ne;if("number"==typeof Ne)return gi(gt(Ne,I).duration,0,"");const j=Ne;if(j.split(/\s+/).some(Ye=>"{"==Ye.charAt(0)&&"{"==Ye.charAt(1))){const Ye=gi(0,0,"");return Ye.dynamic=!0,Ye.strValue=j,Ye}const xe=gt(j,I);return gi(xe.duration,xe.delay,xe.easing)}(I.timings,j.errors);j.currentAnimateTimings=pe;let xe,Ye=I.styles?I.styles:(0,x.iF)({});if(Ye.type==x.If.Keyframes)xe=this.visitKeyframes(Ye,j);else{let St=I.styles,wt=!1;if(!St){wt=!0;const Tn={};pe.easing&&(Tn.easing=pe.easing),St=(0,x.iF)(Tn)}j.currentTime+=pe.duration+pe.delay;const on=this.visitStyle(St,j);on.isEmptyStep=wt,xe=on}return j.currentAnimateTimings=null,{type:x.If.Animate,timings:pe,style:xe,options:null}}visitStyle(I,j){const pe=this._makeStyleAst(I,j);return this._validateStyleAst(pe,j),pe}_makeStyleAst(I,j){const pe=[],xe=Array.isArray(I.styles)?I.styles:[I.styles];for(let wt of xe)"string"==typeof wt?wt===x.kp?pe.push(wt):j.errors.push(new u.wOt(3002,!1)):pe.push(new Map(Object.entries(wt)));let Ye=!1,St=null;return pe.forEach(wt=>{if(wt instanceof Map&&(wt.has("easing")&&(St=wt.get("easing"),wt.delete("easing")),!Ye))for(let on of wt.values())if(on.toString().indexOf("{{")>=0){Ye=!0;break}}),{type:x.If.Style,styles:pe,easing:St,offset:I.offset,containsDynamicStyles:Ye,options:null}}_validateStyleAst(I,j){const pe=j.currentAnimateTimings;let xe=j.currentTime,Ye=j.currentTime;pe&&Ye>0&&(Ye-=pe.duration+pe.delay),I.styles.forEach(St=>{"string"!=typeof St&&St.forEach((wt,on)=>{const Tn=j.collectedStyles.get(j.currentQuerySelector),Xn=Tn.get(on);let qn=!0;Xn&&(Ye!=xe&&Ye>=Xn.startTime&&xe<=Xn.endTime&&(j.errors.push(function _(){return new u.wOt(3010,!1)}()),qn=!1),Ye=Xn.startTime),qn&&Tn.set(on,{startTime:Ye,endTime:xe}),j.options&&function Cr(Ne,I,j){const pe=I.params||{},xe=mt(Ne);xe.length&&xe.forEach(Ye=>{pe.hasOwnProperty(Ye)||j.push(function X(){return new u.wOt(3001,!1)}())})}(wt,j.options,j.errors)})})}visitKeyframes(I,j){const pe={type:x.If.Keyframes,styles:[],options:null};if(!j.currentAnimateTimings)return j.errors.push(function R(){return new u.wOt(3011,!1)}()),pe;let Ye=0;const St=[];let wt=!1,on=!1,Tn=0;const Xn=I.steps.map(Bi=>{const Xi=this._makeStyleAst(Bi,j);let fo=null!=Xi.offset?Xi.offset:function Vi(Ne){if("string"==typeof Ne)return null;let I=null;if(Array.isArray(Ne))Ne.forEach(j=>{if(j instanceof Map&&j.has("offset")){const pe=j;I=parseFloat(pe.get("offset")),pe.delete("offset")}});else if(Ne instanceof Map&&Ne.has("offset")){const j=Ne;I=parseFloat(j.get("offset")),j.delete("offset")}return I}(Xi.styles),ji=0;return null!=fo&&(Ye++,ji=Xi.offset=fo),on=on||ji<0||ji>1,wt=wt||ji<Tn,Tn=ji,St.push(ji),Xi});on&&j.errors.push(function w(){return new u.wOt(3012,!1)}()),wt&&j.errors.push(function B(){return new u.wOt(3200,!1)}());const qn=I.steps.length;let Pr=0;Ye>0&&Ye<qn?j.errors.push(function z(){return new u.wOt(3202,!1)}()):0==Ye&&(Pr=1/(qn-1));const Ir=qn-1,gr=j.currentTime,er=j.currentAnimateTimings,Zn=er.duration;return Xn.forEach((Bi,Xi)=>{const fo=Pr>0?Xi==Ir?1:Pr*Xi:St[Xi],ji=fo*Zn;
1j.currentTime=gr+er.delay+ji,er.duration=ji,this._validateStyleAst(Bi,j),Bi.offset=fo,pe.styles.push(Bi)}),pe}visitReference(I,j){return{type:x.If.Reference,animation:fr(this,Hn(I.animation),j),options:$r(I.options)}}visitAnimateChild(I,j){return j.depCount++,{type:x.If.AnimateChild,options:$r(I.options)}}visitAnimateRef(I,j){return{type:x.If.AnimateRef,animation:this.visitReference(I.animation,j),options:$r(I.options)}}visitQuery(I,j){const pe=j.currentQuerySelector,xe=I.options||{};j.queryCount++,j.currentQuery=I;const[Ye,St]=function Qi(Ne){const I=!!Ne.split(/\s*,\s*/).find(j=>":self"==j);return I&&(Ne=Ne.replace(ir,"")),Ne=Ne.replace(/@\*/g,zt).replace(/@\w+/g,j=>zt+"-"+j.slice(1)).replace(/:animating/g,Ht),[Ne,I]}(I.selector);j.currentQuerySelector=pe.length?pe+" "+Ye:Ye,G(j.collectedStyles,j.currentQuerySelector,new Map);const wt=fr(this,Hn(I.animation),j);return j.currentQuery=null,j.currentQuerySelector=pe,{type:x.If.Query,selector:Ye,limit:xe.limit||0,optional:!!xe.optional,includeSelf:St,animation:wt,originalSelector:I.selector,options:$r(I.options)}}visitStagger(I,j){j.currentQuery||j.errors.push(function oe(){return new u.wOt(3013,!1)}());const pe="full"===I.timings?{duration:0,delay:0,easing:"full"}:gt(I.timings,j.errors,!0);return{type:x.If.Stagger,animation:fr(this,Hn(I.animation),j),timings:pe,options:null}}}class ci{constructor(I){(0,p.A)(this,"errors",void 0),(0,p.A)(this,"queryCount",0),(0,p.A)(this,"depCount",0),(0,p.A)(this,"currentTransition",null),(0,p.A)(this,"currentQuery",null),(0,p.A)(this,"currentQuerySelector",null),(0,p.A)(this,"currentAnimateTimings",null),(0,p.A)(this,"currentTime",0),(0,p.A)(this,"collectedStyles",new Map),(0,p.A)(this,"options",null),(0,p.A)(this,"unsupportedCSSPropertiesFound",new Set),this.errors=I}}function $r(Ne){return Ne?(Ne=(0,O.A)({},Ne)).params&&(Ne.params=function Dr(Ne){return Ne?(0,O.A)({},Ne):null}(Ne.params)):Ne={},Ne}function gi(Ne,I,j){return{duration:Ne,delay:I,easing:j}}function ei(Ne,I,j,pe,xe,Ye,St=null,wt=!1){return{type:1,element:Ne,keyframes:I,preStyleProps:j,postStyleProps:pe,duration:xe,delay:Ye,totalTime:xe+Ye,easing:St,subTimeline:wt}}class $i{constructor(){(0,p.A)(this,"_map",new Map)}get(I){return this._map.get(I)||[]}append(I,j){let pe=this._map.get(I);pe||this._map.set(I,pe=[]),pe.push(...j)}has(I){return this._map.has(I)}clear(){this._map.clear()}}const Jt=new RegExp(":enter","g"),Mn=new RegExp(":leave","g");function Nn(Ne,I,j,pe,xe,Ye=new Map,St=new Map,wt,on,Tn=[]){return(new Gn).buildKeyframes(Ne,I,j,pe,xe,Ye,St,wt,on,Tn)}class Gn{buildKeyframes(I,j,pe,xe,Ye,St,wt,on,Tn,Xn=[]){Tn=Tn||new $i;const qn=new _r(I,j,Tn,xe,Ye,Xn,[]);qn.options=on;const Pr=on.delay?Zt(on.delay):0;qn.currentTimeline.delayNextStep(Pr),qn.currentTimeline.setStyles([St],null,qn.errors,on),fr(this,pe,qn);const Ir=qn.timelines.filter(gr=>gr.containsAnimation());if(Ir.length&&wt.size){let gr;for(let er=Ir.length-1;er>=0;er--){const Zn=Ir[er];if(Zn.element===j){gr=Zn;break}}gr&&!gr.allowOnlyTimelineStyles()&&gr.setStyles([wt],null,qn.errors,on)}return Ir.length?Ir.map(gr=>gr.buildKeyframes()):[ei(j,[],[],[],0,Pr,"",!1)]}visitTrigger(I,j){}visitState(I,j){}visitTransition(I,j){}visitAnimateChild(I,j){const pe=j.subInstructions.get(j.element);if(pe){const xe=j.createSubContext(I.options),Ye=j.currentTimeline.currentTime,St=this._visitSubInstructions(pe,xe,xe.options);Ye!=St&&j.transformIntoNewTimeline(St)}j.previousNode=I}visitAnimateRef(I,j){const pe=j.createSubContext(I.options);pe.transformIntoNewTimeline(),this._applyAnimationRefDelays([I.options,I.animation.options],j,pe),this.visitReference(I.animation,pe),j.transformIntoNewTimeline(pe.currentTimeline.currentTime),j.previousNode=I}_applyAnimationRefDelays(I,j,pe){for(const Ye of I){const St=null==Ye?void 0:Ye.delay;if(St){var xe;const wt="number"==typeof St?St:Zt(Ut(St,null!==(xe=null==Ye?void 0:Ye.params)&&void 0!==xe?xe:{},j.errors));pe.delayNextStep(wt)}}}_visitSubInstructions(I,j,pe){let Ye=j.currentTimeline.currentTime;const St=null!=pe.duration?Zt(pe.duration):null,wt=null!=pe.delay?Zt(pe.delay):null;return 0!==St&&I.forEach(on=>{const Tn=j.appendInstructionToTimeline(on,St,wt);Ye=Math.max(Ye,Tn.duration+Tn.delay)}),Ye}visitReference(I,j){j.updateOptions(I.options,!0),fr(this,I.animation,j),j.previousNode=I}visitSequence(I,j){const pe=j.subContextCount;let xe=j;const Ye=I.options;if(Ye&&(Ye.params||Ye.delay)&&(xe=j.createSubContext(Ye),xe.transformIntoNewTimeline(),null!=Ye.delay)){xe.previousNode.type==x.If.Style&&(xe.currentTimeline.snapshotCurrentStyles(),xe.previousNode=Wn);const St=Zt(Ye.delay);xe.delayNextStep(St)}I.steps.length&&(I.steps.forEach(St=>fr(this,St,xe)),xe.currentTimeline.applyStylesToKeyframe(),xe.subContextCount>pe&&xe.transformIntoNewTimeline()),j.previousNode=I}visitGroup(I,j){const pe=[];let xe=j.currentTimeline.currentTime;const Ye=I.options&&I.options.delay?Zt(I.options.delay):0;I.steps.forEach(St=>{const wt=j.createSubContext(I.options);Ye&&wt.delayNextStep(Ye),fr(this,St,wt),xe=Math.max(xe,wt.currentTimeline.currentTime),pe.push(wt.currentTimeline)}),pe.forEach(St=>j.currentTimeline.mergeTimelineCollectedStyles(St)),j.transformIntoNewTimeline(xe),j.previousNode=I}_visitTiming(I,j){if(I.dynamic){const pe=I.strValue;return gt(j.params?Ut(pe,j.params,j.errors):pe,j.errors)}return{duration:I.duration,delay:I.delay,easing:I.easing}}visitAnimate(I,j){const pe=j.currentAnimateTimings=this._visitTiming(I.timings,j),xe=j.currentTimeline;pe.delay&&(j.incrementTime(pe.delay),xe.snapshotCurrentStyles());const Ye=I.style;Ye.type==x.If.Keyframes?this.visitKeyframes(Ye,j):(j.incrementTime(pe.duration),this.visitStyle(Ye,j),xe.applyStylesToKeyframe()),j.currentAnimateTimings=null,j.previousNode=I}visitStyle(I,j){const pe=j.currentTimeline,xe=j.currentAnimateTimings;!xe&&pe.hasCurrentStyleProperties()&&pe.forwardFrame();const Ye=xe&&xe.easing||I.easing;I.isEmptyStep?pe.applyEmptyStep(Ye):pe.setStyles(I.styles,Ye,j.errors,j.options),j.previousNode=I}visitKeyframes(I,j){const pe=j.currentAnimateTimings,xe=j.currentTimeline.duration,Ye=pe.duration,wt=j.createSubContext().currentTimeline;
1wt.easing=pe.easing,I.styles.forEach(on=>{wt.forwardTime((on.offset||0)*Ye),wt.setStyles(on.styles,on.easing,j.errors,j.options),wt.applyStylesToKeyframe()}),j.currentTimeline.mergeTimelineCollectedStyles(wt),j.transformIntoNewTimeline(xe+Ye),j.previousNode=I}visitQuery(I,j){const pe=j.currentTimeline.currentTime,xe=I.options||{},Ye=xe.delay?Zt(xe.delay):0;Ye&&(j.previousNode.type===x.If.Style||0==pe&&j.currentTimeline.hasCurrentStyleProperties())&&(j.currentTimeline.snapshotCurrentStyles(),j.previousNode=Wn);let St=pe;const wt=j.invokeQuery(I.selector,I.originalSelector,I.limit,I.includeSelf,!!xe.optional,j.errors);j.currentQueryTotal=wt.length;let on=null;wt.forEach((Tn,Xn)=>{j.currentQueryIndex=Xn;const qn=j.createSubContext(I.options,Tn);Ye&&qn.delayNextStep(Ye),Tn===j.element&&(on=qn.currentTimeline),fr(this,I.animation,qn),qn.currentTimeline.applyStylesToKeyframe(),St=Math.max(St,qn.currentTimeline.currentTime)}),j.currentQueryIndex=0,j.currentQueryTotal=0,j.transformIntoNewTimeline(St),on&&(j.currentTimeline.mergeTimelineCollectedStyles(on),j.currentTimeline.snapshotCurrentStyles()),j.previousNode=I}visitStagger(I,j){const pe=j.parentContext,xe=j.currentTimeline,Ye=I.timings,St=Math.abs(Ye.duration),wt=St*(j.currentQueryTotal-1);let on=St*j.currentQueryIndex;switch(Ye.duration<0?"reverse":Ye.easing){case"reverse":on=wt-on;break;case"full":on=pe.currentStaggerTime}const Xn=j.currentTimeline;on&&Xn.delayNextStep(on);const qn=Xn.currentTime;fr(this,I.animation,j),j.previousNode=I,pe.currentStaggerTime=xe.currentTime-qn+(xe.startTime-pe.currentTimeline.startTime)}}const Wn={};class _r{constructor(I,j,pe,xe,Ye,St,wt,on){(0,p.A)(this,"_driver",void 0),(0,p.A)(this,"element",void 0),(0,p.A)(this,"subInstructions",void 0),(0,p.A)(this,"_enterClassName",void 0),(0,p.A)(this,"_leaveClassName",void 0),(0,p.A)(this,"errors",void 0),(0,p.A)(this,"timelines",void 0),(0,p.A)(this,"parentContext",null),(0,p.A)(this,"currentTimeline",void 0),(0,p.A)(this,"currentAnimateTimings",null),(0,p.A)(this,"previousNode",Wn),(0,p.A)(this,"subContextCount",0),(0,p.A)(this,"options",{}),(0,p.A)(this,"currentQueryIndex",0),(0,p.A)(this,"currentQueryTotal",0),(0,p.A)(this,"currentStaggerTime",0),this._driver=I,this.element=j,this.subInstructions=pe,this._enterClassName=xe,this._leaveClassName=Ye,this.errors=St,this.timelines=wt,this.currentTimeline=on||new or(this._driver,j,0),wt.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(I,j){if(!I)return;const pe=I;let xe=this.options;null!=pe.duration&&(xe.duration=Zt(pe.duration)),null!=pe.delay&&(xe.delay=Zt(pe.delay));const Ye=pe.params;if(Ye){let St=xe.params;St||(St=this.options.params={}),Object.keys(Ye).forEach(wt=>{(!j||!St.hasOwnProperty(wt))&&(St[wt]=Ut(Ye[wt],St,this.errors))})}}_copyOptions(){const I={};if(this.options){const j=this.options.params;if(j){const pe=I.params={};Object.keys(j).forEach(xe=>{pe[xe]=j[xe]})}}return I}createSubContext(I=null,j,pe){const xe=j||this.element,Ye=new _r(this._driver,xe,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(xe,pe||0));return Ye.previousNode=this.previousNode,Ye.currentAnimateTimings=this.currentAnimateTimings,Ye.options=this._copyOptions(),Ye.updateOptions(I),Ye.currentQueryIndex=this.currentQueryIndex,Ye.currentQueryTotal=this.currentQueryTotal,Ye.parentContext=this,this.subContextCount++,Ye}transformIntoNewTimeline(I){return this.previousNode=Wn,this.currentTimeline=this.currentTimeline.fork(this.element,I),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(I,j,pe){const xe={duration:null!=j?j:I.duration,delay:this.currentTimeline.currentTime+(null!=pe?pe:0)+I.delay,easing:""},Ye=new ar(this._driver,I.element,I.keyframes,I.preStyleProps,I.postStyleProps,xe,I.stretchStartingKeyframe);return this.timelines.push(Ye),xe}incrementTime(I){this.currentTimeline.forwardTime(this.currentTimeline.duration+I)}delayNextStep(I){I>0&&this.currentTimeline.delayNextStep(I)}invokeQuery(I,j,pe,xe,Ye,St){let wt=[];if(xe&&wt.push(this.element),I.length>0){I=(I=I.replace(Jt,"."+this._enterClassName)).replace(Mn,"."+this._leaveClassName);let Tn=this._driver.query(this.element,I,1!=pe);0!==pe&&(Tn=pe<0?Tn.slice(Tn.length+pe,Tn.length):Tn.slice(0,pe)),wt.push(...Tn)}return!Ye&&0==wt.length&&St.push(function V(){return new u.wOt(3014,!1)}()),wt}}class or{constructor(I,j,pe,xe){(0,p.A)(this,"_driver",void 0),(0,p.A)(this,"element",void 0),(0,p.A)(this,"startTime",void 0),(0,p.A)(this,"_elementTimelineStylesLookup",void 0),(0,p.A)(this,"duration",0),(0,p.A)(this,"easing",null),(0,p.A)(this,"_previousKeyframe",new Map),(0,p.A)(this,"_currentKeyframe",new Map),(0,p.A)(this,"_keyframes",new Map),(0,p.A)(this,"_styleSummary",new Map),(0,p.A)(this,"_localTimelineStyles",new Map),(0,p.A)(this,"_globalTimelineStyles",void 0),(0,p.A)(this,"_pendingStyles",new Map),(0,p.A)(this,"_backFill",new Map),(0,p.A)(this,"_currentEmptyStepKeyframe",null),this._driver=I,this.element=j,this.startTime=pe,this._elementTimelineStylesLookup=xe,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(j),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(j,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}
1hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(I){const j=1===this._keyframes.size&&this._pendingStyles.size;this.duration||j?(this.forwardTime(this.currentTime+I),j&&this.snapshotCurrentStyles()):this.startTime+=I}fork(I,j){return this.applyStylesToKeyframe(),new or(this._driver,I,j||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(I){this.applyStylesToKeyframe(),this.duration=I,this._loadKeyframe()}_updateStyle(I,j){this._localTimelineStyles.set(I,j),this._globalTimelineStyles.set(I,j),this._styleSummary.set(I,{time:this.currentTime,value:j})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(I){I&&this._previousKeyframe.set("easing",I);for(let[j,pe]of this._globalTimelineStyles)this._backFill.set(j,pe||x.kp),this._currentKeyframe.set(j,x.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(I,j,pe,xe){j&&this._previousKeyframe.set("easing",j);const Ye=xe&&xe.params||{},St=function si(Ne,I){const j=new Map;let pe;return Ne.forEach(xe=>{if("*"===xe){null!=pe||(pe=I.keys());for(let Ye of pe)j.set(Ye,x.kp)}else for(let[Ye,St]of xe)j.set(Ye,St)}),j}(I,this._globalTimelineStyles);for(let[on,Tn]of St){const Xn=Ut(Tn,Ye,pe);var wt;this._pendingStyles.set(on,Xn),this._localTimelineStyles.has(on)||this._backFill.set(on,null!==(wt=this._globalTimelineStyles.get(on))&&void 0!==wt?wt:x.kp),this._updateStyle(on,Xn)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((I,j)=>{this._currentKeyframe.set(j,I)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((I,j)=>{this._currentKeyframe.has(j)||this._currentKeyframe.set(j,I)}))}snapshotCurrentStyles(){for(let[I,j]of this._localTimelineStyles)this._pendingStyles.set(I,j),this._updateStyle(I,j)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const I=[];for(let j in this._currentKeyframe)I.push(j);return I}
1mergeTimelineCollectedStyles(I){I._styleSummary.forEach((j,pe)=>{const xe=this._styleSummary.get(pe);(!xe||j.time>xe.time)&&this._updateStyle(pe,j.value)})}buildKeyframes(){this.applyStylesToKeyframe();const I=new Set,j=new Set,pe=1===this._keyframes.size&&0===this.duration;let xe=[];this._keyframes.forEach((wt,on)=>{const Tn=new Map([...this._backFill,...wt]);Tn.forEach((Xn,qn)=>{Xn===x.FX?I.add(qn):Xn===x.kp&&j.add(qn)}),pe||Tn.set("offset",on/this.duration),xe.push(Tn)});const Ye=[...I.values()],St=[...j.values()];if(pe){const wt=xe[0],on=new Map(wt);wt.set("offset",0),on.set("offset",1),xe=[wt,on]}return ei(this.element,xe,Ye,St,this.duration,this.startTime,this.easing,!1)}}class ar extends or{constructor(I,j,pe,xe,Ye,St,wt=!1){super(I,j,St.delay),(0,p.A)(this,"keyframes",void 0),(0,p.A)(this,"preStyleProps",void 0),(0,p.A)(this,"postStyleProps",void 0),(0,p.A)(this,"_stretchStartingKeyframe",void 0),(0,p.A)(this,"timings",void 0),this.keyframes=pe,this.preStyleProps=xe,this.postStyleProps=Ye,this._stretchStartingKeyframe=wt,this.timings={duration:St.duration,delay:St.delay,easing:St.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let I=this.keyframes,{delay:j,duration:pe,easing:xe}=this.timings;if(this._stretchStartingKeyframe&&j){const Ye=[],St=pe+j,wt=j/St,on=new Map(I[0]);on.set("offset",0),Ye.push(on);const Tn=new Map(I[0]);Tn.set("offset",Mi(wt)),Ye.push(Tn);const Xn=I.length-1;for(let qn=1;qn<=Xn;qn++){let Pr=new Map(I[qn]);const Ir=Pr.get("offset");Pr.set("offset",Mi((j+Ir*pe)/St)),Ye.push(Pr)}pe=St,j=0,xe="",I=Ye}return ei(this.element,I,this.preStyleProps,this.postStyleProps,pe,j,xe,!0)}}function Mi(Ne,I=3){const j=Math.pow(10,I-1);return Math.round(Ne*j)/j}function oi(Ne,I,j,pe,xe,Ye,St,wt,on,Tn,Xn,qn,Pr){return{type:0,element:Ne,triggerName:I,isRemovalTransition:xe,fromState:j,fromStyles:Ye,toState:pe,toStyles:St,timelines:wt,queriedElements:on,preStyleProps:Tn,postStyleProps:Xn,totalTime:qn,errors:Pr}}const Gr={};class nt{constructor(I,j,pe){(0,p.A)(this,"_triggerName",void 0),(0,p.A)(this,"ast",void 0),(0,p.A)(this,"_stateStyles",void 0),this._triggerName=I,this.ast=j,this._stateStyles=pe}match(I,j,pe,xe){return function qt(Ne,I,j,pe,xe){return Ne.some(Ye=>Ye(I,j,pe,xe))}(this.ast.matchers,I,j,pe,xe)}buildStyles(I,j,pe){let xe=this._stateStyles.get("*");return void 0!==I&&(xe=this._stateStyles.get(null==I?void 0:I.toString())||xe),xe?xe.buildStyles(j,pe):new Map}build(I,j,pe,xe,Ye,St,wt,on,Tn,Xn){var qn;const Pr=[],Ir=this.ast.options&&this.ast.options.params||Gr,er=this.buildStyles(pe,wt&&wt.params||Gr,Pr),Zn=on&&on.params||Gr,Bi=this.buildStyles(xe,Zn,Pr),Xi=new Set,fo=new Map,ji=new Map,Is="void"===xe,Fr={params:kt(Zn,Ir),delay:null===(qn=this.ast.options)||void 0===qn?void 0:qn.delay},Yi=Xn?[]:Nn(I,j,this.ast.animation,Ye,St,er,Bi,Fr,Tn,Pr);let Zi=0;return Yi.forEach(ho=>{Zi=Math.max(ho.duration+ho.delay,Zi)}),Pr.length?oi(j,this._triggerName,pe,xe,Is,er,Bi,[],[],fo,ji,Zi,Pr):(Yi.forEach(ho=>{const Yo=ho.element,_a=G(fo,Yo,new Set);ho.preStyleProps.forEach(Ro=>_a.add(Ro));const Zo=G(ji,Yo,new Set);ho.postStyleProps.forEach(Ro=>Zo.add(Ro)),Yo!==j&&Xi.add(Yo)}),oi(j,this._triggerName,pe,xe,Is,er,Bi,Yi,[...Xi.values()],fo,ji,Zi))}}function kt(Ne,I){const j=(0,O.A)({},I);return Object.entries(Ne).forEach(([pe,xe])=>{null!=xe&&(j[pe]=xe)}),j}class An{constructor(I,j,pe){(0,p.A)(this,"styles",void 0),(0,p.A)(this,"defaultParams",void 0),(0,p.A)(this,"normalizer",void 0),this.styles=I,this.defaultParams=j,this.normalizer=pe}buildStyles(I,j){const pe=new Map,xe=kt(I,this.defaultParams);return this.styles.styles.forEach(Ye=>{"string"!=typeof Ye&&Ye.forEach((St,wt)=>{St&&(St=Ut(St,xe,j));const on=this.normalizer.normalizePropertyName(wt,j);St=this.normalizer.normalizeStyleValue(wt,on,St,j),pe.set(wt,St)})}),pe}}class sr{constructor(I,j,pe){(0,p.A)(this,"name",void 0),(0,p.A)(this,"ast",void 0),(0,p.A)(this,"_normalizer",void 0),(0,p.A)(this,"transitionFactories",[]),(0,p.A)(this,"fallbackTransition",void 0),(0,p.A)(this,"states",new Map),this.name=I,this.ast=j,this._normalizer=pe,j.states.forEac
1h(xe=>{this.states.set(xe.name,new An(xe.style,xe.options&&xe.options.params||{},pe))}),xr(this.states,"true","1"),xr(this.states,"false","0"),j.transitions.forEach(xe=>{this.transitionFactories.push(new nt(I,xe,this.states))}),this.fallbackTransition=function Hr(Ne,I){return new nt(Ne,{type:x.If.Transition,animation:{type:x.If.Sequence,steps:[],options:null},matchers:[(St,wt)=>!0],options:null,queryCount:0,depCount:0},I)}(I,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(I,j,pe,xe){return this.transitionFactories.find(St=>St.match(I,j,pe,xe))||null}matchStyles(I,j,pe){return this.fallbackTransition.buildStyles(I,j,pe)}}function xr(Ne,I,j){Ne.has(I)?Ne.has(j)||Ne.set(j,Ne.get(I)):Ne.has(j)&&Ne.set(I,Ne.get(j))}const fi=new $i;class Tr{constructor(I,j,pe){(0,p.A)(this,"bodyNode",void 0),(0,p.A)(this,"_driver",void 0),(0,p.A)(this,"_normalizer",void 0),(0,p.A)(this,"_animations",new Map),(0,p.A)(this,"_playersById",new Map),(0,p.A)(this,"players",[]),this.bodyNode=I,this._driver=j,this._normalizer=pe}register(I,j){const pe=[],Ye=vr(this._driver,j,pe,[]);if(pe.length)throw function ze(){return new u.wOt(3503,!1)}();this._animations.set(I,Ye)}_buildPlayer(I,j,pe){const xe=I.element,Ye=at(this._normalizer,I.keyframes,j,pe);return this._driver.animate(xe,Ye,I.duration,I.delay,I.easing,[],!0)}create(I,j,pe={}){const xe=[],Ye=this._animations.get(I);let St;const wt=new Map;if(Ye?(St=Nn(this._driver,j,Ye,Ve,yt,new Map,new Map,pe,fi,xe),St.forEach(Xn=>{const qn=G(wt,Xn.element,new Map);Xn.postStyleProps.forEach(Pr=>qn.set(Pr,null))})):(xe.push(function bt(){return new u.wOt(3300,!1)}()),St=[]),xe.length)throw function Ke(){return new u.wOt(3504,!1)}();wt.forEach((Xn,qn)=>{Xn.forEach((Pr,Ir)=>{Xn.set(Ir,this._driver.computeStyle(qn,Ir,x.kp))})});const Tn=Ue(St.map(Xn=>{const qn=wt.get(Xn.element);return this._buildPlayer(Xn,new Map,qn)}));return this._playersById.set(I,Tn),Tn.onDestroy(()=>this.destroy(I)),this.players.push(Tn),Tn}destroy(I){const j=this._getPlayer(I);j.destroy(),this._playersById.delete(I);const pe=this.players.indexOf(j);pe>=0&&this.players.splice(pe,1)}_getPlayer(I){const j=this._playersById.get(I);if(!j)throw function Me(){return new u.wOt(3301,!1)}();return j}listen(I,j,pe,xe){const Ye=et(j,"","","");return hn(this._getPlayer(I),pe,Ye,xe),()=>{}}command(I,j,pe,xe){if("register"==pe)return void this.register(I,xe[0]);if("create"==pe)return void this.create(I,j,xe[0]||{});const Ye=this._getPlayer(I);switch(pe){case"play":Ye.play();break;case"pause":Ye.pause();break;case"reset":Ye.reset();break;case"restart":Ye.restart();break;case"finish":Ye.finish();break;case"init":Ye.init();break;case"setPosition":Ye.setPosition(parseFloat(xe[0]));break;case"destroy":this.destroy(I)}}}const Li="ng-animate-queued",S="ng-animate-disabled",$t=[],Wt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Fn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vn="__ng_removed";class Be{get params(){return this.options.params}constructor(I,j=""){(0,p.A)(this,"namespaceId",void 0),(0,p.A)(this,"value",void 0),(0,p.A)(this,"options",void 0),this.namespaceId=j;const pe=I&&I.hasOwnProperty("value");if(this.value=function Xr(Ne){return null!=Ne?Ne:null}(pe?I.value:I),pe){const St=(0,v.A)(I,U);this.options=St}else this.options={};this.options.params||(this.options.params={})}absorbOptions(I){const j=I.params;if(j){const pe=this.options.params;Object.keys(j).forEach(xe=>{null==pe[xe]&&(pe[xe]=j[xe])})}}}const Ot="void",At=new Be(Ot);class st{constructor(I,j,pe){(0,p.A)(this,"id",void 0),(0,p.A)(this,"hostElement",void 0),(0,p.A)(this,"_engine",void 0),(0,p.A)(this,"players",[]),(0,p.A)(this,"_triggers",new Map),(0,p.A)(this,"_queue",[]),(0,p.A)(this,"_elementListeners",new Map),(0,p.A)(this,"_hostClassName",void 0),this.id=I,this.hostElement=j,this._engine=pe,this._hostClassName="ng-tns-"
1+I,io(j,this._hostClassName)}listen(I,j,pe,xe){if(!this._triggers.has(j))throw function tt(){return new u.wOt(3302,!1)}();if(null==pe||0==pe.length)throw function He(){return new u.wOt(3303,!1)}();if(!function ro(Ne){return"start"==Ne||"done"==Ne}(pe))throw function ot(){return new u.wOt(3400,!1)}();const Ye=G(this._elementListeners,I,[]),St={name:j,phase:pe,callback:xe};Ye.push(St);const wt=G(this._engine.statesByElement,I,new Map);return wt.has(j)||(io(I,Rt),io(I,Rt+"-"+j),wt.set(j,At)),()=>{this._engine.afterFlush(()=>{const on=Ye.indexOf(St);on>=0&&Ye.splice(on,1),this._triggers.has(j)||wt.delete(j)})}}register(I,j){return!this._triggers.has(I)&&(this._triggers.set(I,j),!0)}_getTrigger(I){const j=this._triggers.get(I);if(!j)throw function je(){return new u.wOt(3401,!1)}();return j}trigger(I,j,pe,xe=!0){const Ye=this._getTrigger(j),St=new vn(this.id,j,I);let wt=this._engine.statesByElement.get(I);wt||(io(I,Rt),io(I,Rt+"-"+j),this._engine.statesByElement.set(I,wt=new Map));let on=wt.get(j);const Tn=new Be(pe,this.id);if(!(pe&&pe.hasOwnProperty("value"))&&on&&Tn.absorbOptions(on.options),wt.set(j,Tn),on||(on=At),Tn.value!==Ot&&on.value===Tn.value){if(!function os(Ne,I){const j=Object.keys(Ne),pe=Object.keys(I);if(j.length!=pe.length)return!1;for(let xe=0;xe<j.length;xe++){const Ye=j[xe];if(!I.hasOwnProperty(Ye)||Ne[Ye]!==I[Ye])return!1}return!0}(on.params,Tn.params)){const er=[],Zn=Ye.matchStyles(on.value,on.params,er),Bi=Ye.matchStyles(Tn.value,Tn.params,er);er.length?this._engine.reportError(er):this._engine.afterFlush(()=>{Bn(I,Zn),dn(I,Bi)})}return}const Pr=G(this._engine.playersByElement,I,[]);Pr.forEach(er=>{er.namespaceId==this.id&&er.triggerName==j&&er.queued&&er.destroy()});let Ir=Ye.matchTransition(on.value,Tn.value,I,Tn.params),gr=!1;if(!Ir){if(!xe)return;Ir=Ye.fallbackTransition,gr=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:I,triggerName:j,transition:Ir,fromState:on,toState:Tn,player:St,isFallbackTransition:gr}),gr||(io(I,Li),St.onStart(()=>{jo(I,Li)})),St.onDone(()=>{let er=this.players.indexOf(St);er>=0&&this.players.splice(er,1);const Zn=this._engine.playersByElement.get(I);if(Zn){let Bi=Zn.indexOf(St);Bi>=0&&Zn.splice(Bi,1)}}),this.players.push(St),Pr.push(St),St}deregister(I){this._triggers.delete(I),this._engine.statesByElement.forEach(j=>j.delete(I)),this._elementListeners.forEach((j,pe)=>{this._elementListeners.set(pe,j.filter(xe=>xe.name!=I))})}clearElementCache(I){this._engine.statesByElement.delete(I),this._elementListeners.delete(I);const j=this._engine.playersByElement.get(I);j&&(j.forEach(pe=>pe.destroy()),this._engine.playersByElement.delete(I))}_signalRemovalForInnerTriggers(I,j){const pe=this._engine.driver.query(I,zt,!0);pe.forEach(xe=>{if(xe[Vn])return;const Ye=this._engine.fetchNamespacesByElement(xe);Ye.size?Ye.forEach(St=>St.triggerLeaveAnimation(xe,j,!1,!0)):this.clearElementCache(xe)}),this._engine.afterFlushAnimationsDone(()=>pe.forEach(xe=>this.clearElementCache(xe)))}triggerLeaveAnimation(I,j,pe,xe){const Ye=this._engine.statesByElement.get(I),St=new Map;if(Ye){const wt=[];if(Ye.forEach((on,Tn)=>{if(St.set(Tn,on.value),this._triggers.has(Tn)){const Xn=this.trigger(I,Tn,Ot,xe);Xn&&wt.push(Xn)}}),wt.length)return this._engine.markElementAsRemoved(this.id,I,!0,j,St),pe&&Ue(wt).onDone(()=>this._engine.processLeaveNode(I)),!0}return!1}prepareLeaveAnimationListeners(I){const j=this._elementListeners.get(I),pe=this._engine.statesByElement.get(I);if(j&&pe){const xe=new Set;j.forEach(Ye=>{const St=Ye.name;if(xe.has(St))return;xe.add(St);const on=this._triggers.get(St).fallbackTransition,Tn=pe.get(St)||At,Xn=new Be(Ot),qn=new vn(this.id,St,I);this._engine.totalQueuedPlayers++,this._queue.push({element:I,triggerName:St,transition:on,fromState:Tn,toState:Xn,player:qn,isFallbackTransition:!0})})}}removeNode(I,j){const pe=this._engine;if(I.childElementCount&&this._signalRemovalForInnerTriggers(I,j),this.triggerLeaveAnimation(I,j,!0))return;let xe=!1;if(pe.totalAnimations){const Ye=pe.players.length?pe.playersByQueriedElement.get(I):[];if(Ye&&Ye.length)xe=!0;else{let St=I;for(;St=St.parentNode;)if(pe.statesByElement.get(St)){xe=!0;break}}}if(this.prepareLeaveAnimationListeners(I),xe)pe.markElementAsRemoved(this.id,I,!1,j);else{const Ye=I[Vn];(!Ye||Ye===Wt)&&(pe.afterFlush(()=>this.clearElementCache(I)),pe.destroyInnerAnimations(I),pe._onRemovalComplete(I,j))}}insertNode(I,j){io(I,this._hostClassName)}drainQueuedTransitions(I){const j=[];return this._queue.forEach(pe=>{const xe=pe.player;if(xe.destroyed)return;const Ye=pe.element,St=this._elementListeners.get(Ye);St&&St.forEach(wt=>{if(wt.name==pe.triggerName){const on=et(Ye,pe.triggerName,pe.fromState.value,pe.toState.value);on._data=I,hn(pe.player,wt.phase,on,wt.callback)}}),xe.markedForDestroy?this._engine.afterFlush(()=>{xe.destroy()}):j.push(pe)}),this._queue=[],j.sort((pe,xe)=>{const Ye=pe.transition.ast.depCount,St=xe.transition.ast.depCount;return 0==Ye||0==St?Ye-St:this._engine.driver.containsElement(pe.element,xe.element)?1:-1})}
1destroy(I){this.players.forEach(j=>j.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,I)}}class jt{_onRemovalComplete(I,j){this.onRemovalComplete(I,j)}constructor(I,j,pe){(0,p.A)(this,"bodyNode",void 0),(0,p.A)(this,"driver",void 0),(0,p.A)(this,"_normalizer",void 0),(0,p.A)(this,"players",[]),(0,p.A)(this,"newHostElements",new Map),(0,p.A)(this,"playersByElement",new Map),(0,p.A)(this,"playersByQueriedElement",new Map),(0,p.A)(this,"statesByElement",new Map),(0,p.A)(this,"disabledNodes",new Set),(0,p.A)(this,"totalAnimations",0),(0,p.A)(this,"totalQueuedPlayers",0),(0,p.A)(this,"_namespaceLookup",{}),(0,p.A)(this,"_namespaceList",[]),(0,p.A)(this,"_flushFns",[]),(0,p.A)(this,"_whenQuietFns",[]),(0,p.A)(this,"namespacesByHostElement",new Map),(0,p.A)(this,"collectedEnterElements",[]),(0,p.A)(this,"collectedLeaveElements",[]),(0,p.A)(this,"onRemovalComplete",(xe,Ye)=>{}),this.bodyNode=I,this.driver=j,this._normalizer=pe}get queuedPlayers(){const I=[];return this._namespaceList.forEach(j=>{j.players.forEach(pe=>{pe.queued&&I.push(pe)})}),I}createNamespace(I,j){const pe=new st(I,j,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,j)?this._balanceNamespaceList(pe,j):(this.newHostElements.set(j,pe),this.collectEnterElement(j)),this._namespaceLookup[I]=pe}_balanceNamespaceList(I,j){const pe=this._namespaceList,xe=this.namespacesByHostElement;if(pe.length-1>=0){let St=!1,wt=this.driver.getParentElement(j);for(;wt;){const on=xe.get(wt);if(on){const Tn=pe.indexOf(on);pe.splice(Tn+1,0,I),St=!0;break}wt=this.driver.getParentElement(wt)}St||pe.unshift(I)}else pe.push(I);return xe.set(j,I),I}register(I,j){let pe=this._namespaceLookup[I];return pe||(pe=this.createNamespace(I,j)),pe}registerTrigger(I,j,pe){let xe=this._namespaceLookup[I];xe&&xe.register(j,pe)&&this.totalAnimations++}destroy(I,j){I&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const pe=this._fetchNamespace(I);this.namespacesByHostElement.delete(pe.hostElement);const xe=this._namespaceList.indexOf(pe);xe>=0&&this._namespaceList.splice(xe,1),pe.destroy(j),delete this._namespaceLookup[I]}))}_fetchNamespace(I){return this._namespaceLookup[I]}fetchNamespacesByElement(I){const j=new Set,pe=this.statesByElement.get(I);if(pe)for(let xe of pe.values())if(xe.namespaceId){const Ye=this._fetchNamespace(xe.namespaceId);Ye&&j.add(Ye)}return j}trigger(I,j,pe,xe){if(Lr(j)){const Ye=this._fetchNamespace(I);if(Ye)return Ye.trigger(j,pe,xe),!0}return!1}insertNode(I,j,pe,xe){if(!Lr(j))return;const Ye=j[Vn];if(Ye&&Ye.setForRemoval){Ye.setForRemoval=!1,Ye.setForMove=!0;const St=this.collectedLeaveElements.indexOf(j);St>=0&&this.collectedLeaveElements.splice(St,1)}if(I){const St=this._fetchNamespace(I);St&&St.insertNode(j,pe)}xe&&this.collectEnterElement(j)}collectEnterElement(I){this.collectedEnterElements.push(I)}markElementAsDisabled(I,j){j?this.disabledNodes.has(I)||(this.disabledNodes.add(I),io(I,S)):this.disabledNodes.has(I)&&(this.disabledNodes.delete(I),jo(I,S))}removeNode(I,j,pe){if(Lr(j)){const xe=I?this._fetchNamespace(I):null;xe?xe.removeNode(j,pe):this.markElementAsRemoved(I,j,!1,pe);const Ye=this.namespacesByHostElement.get(j);Ye&&Ye.id!==I&&Ye.removeNode(j,pe)}else this._onRemovalComplete(j,pe)}markElementAsRemoved(I,j,pe,xe,Ye){this.collectedLeaveElements.push(j),j[Vn]={namespaceId:I,setForRemoval:xe,hasAnimation:pe,removedBeforeQueried:!1,previousTriggersValues:Ye}}listen(I,j,pe,xe,Ye){return Lr(j)?this._fetchNamespace(I).listen(j,pe,xe,Ye):()=>{}}_buildInstruction(I,j,pe,xe,Ye){return I.transition.build(this.driver,I.element,I.fromState.value,I.toState.value,pe,xe,I.fromState.options,I.toState.options,j,Ye)}destroyInnerAnimations(I){let j=this.driver.query(I,zt,!0);j.forEach(pe=>this.destroyActiveAnimationsForElement(pe)),0!=this.playersByQueriedElement.size&&(j=this.driver.query(I,Ht,!0),j.forEac
1h(pe=>this.finishActiveQueriedAnimationOnElement(pe)))}destroyActiveAnimationsForElement(I){const j=this.playersByElement.get(I);j&&j.forEach(pe=>{pe.queued?pe.markedForDestroy=!0:pe.destroy()})}finishActiveQueriedAnimationOnElement(I){const j=this.playersByQueriedElement.get(I);j&&j.forEach(pe=>pe.finish())}whenRenderingDone(){return new Promise(I=>{if(this.players.length)return Ue(this.players).onDone(()=>I());I()})}processLeaveNode(I){var j;const pe=I[Vn];if(pe&&pe.setForRemoval){if(I[Vn]=Wt,pe.namespaceId){this.destroyInnerAnimations(I);const xe=this._fetchNamespace(pe.namespaceId);xe&&xe.clearElementCache(I)}this._onRemovalComplete(I,pe.setForRemoval)}null!==(j=I.classList)&&void 0!==j&&j.contains(S)&&this.markElementAsDisabled(I,!1),this.driver.query(I,".ng-animate-disabled",!0).forEach(xe=>{this.markElementAsDisabled(xe,!1)})}flush(I=-1){let j=[];if(this.newHostElements.size&&(this.newHostElements.forEach((pe,xe)=>this._balanceNamespaceList(pe,xe)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let pe=0;pe<this.collectedEnterElements.length;pe++)io(this.collectedEnterElements[pe],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const pe=[];try{j=this._flushAnimations(pe,I)}finally{for(let xe=0;xe<pe.length;xe++)pe[xe]()}}else for(let pe=0;pe<this.collectedLeaveElements.length;pe++)this.processLeaveNode(this.collectedLeaveElements[pe]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(pe=>pe()),this._flushFns=[],this._whenQuietFns.length){const pe=this._whenQuietFns;this._whenQuietFns=[],j.length?Ue(j).onDone(()=>{pe.forEach(xe=>xe())}):pe.forEach(xe=>xe())}}reportError(I){throw function fe(){return new u.wOt(3402,!1)}()}_flushAnimations(I,j){const pe=new $i,xe=[],Ye=new Map,St=[],wt=new Map,on=new Map,Tn=new Map,Xn=new Set;this.disabledNodes.forEach(tr=>{Xn.add(tr);const It=this.driver.query(tr,".ng-animate-queued",!0);for(let xn=0;xn<It.length;xn++)Xn.add(It[xn])});const qn=this.bodyNode,Pr=Array.from(this.statesByElement.keys()),Ir=wo(Pr,this.collectedEnterElements),gr=new Map;let er=0;Ir.forEach((tr,It)=>{const xn=Ve+er++;gr.set(It,xn),tr.forEach(Or=>io(Or,xn))});const Zn=[],Bi=new Set,Xi=new Set;for(let tr=0;tr<this.collectedLeaveElements.length;tr++){const It=this.collectedLeaveElements[tr],xn=It[Vn];xn&&xn.setForRemoval&&(Zn.push(It),Bi.add(It),xn.hasAnimation?this.driver.query(It,".ng-star-inserted",!0).forEach(Or=>Bi.add(Or)):Xi.add(It))}const fo=new Map,ji=wo(Pr,Array.from(Bi));ji.forEach((tr,It)=>{const xn=yt+er++;fo.set(It,xn),tr.forEach(Or=>io(Or,xn))}),I.push(()=>{Ir.forEach((tr,It)=>{const xn=gr.get(It);tr.forEach(Or=>jo(Or,xn))}),ji.forEach((tr,It)=>{const xn=fo.get(It);tr.forEach(Or=>jo(Or,xn))}),Zn.forEach(tr=>{this.processLeaveNode(tr)})});const Is=[],Fr=[];for(let tr=this._namespaceList.length-1;tr>=0;
1tr--)this._namespaceList[tr].drainQueuedTransitions(j).forEach(xn=>{const Or=xn.player,ni=xn.element;if(Is.push(Or),this.collectedEnterElements.length){const oo=ni[Vn];if(oo&&oo.setForMove){if(oo.previousTriggersValues&&oo.previousTriggersValues.has(xn.triggerName)){const Ws=oo.previousTriggersValues.get(xn.triggerName),So=this.statesByElement.get(xn.element);if(So&&So.has(xn.triggerName)){const Os=So.get(xn.triggerName);Os.value=Ws,So.set(xn.triggerName,Os)}}return void Or.destroy()}}const mi=!qn||!this.driver.containsElement(qn,ni),po=fo.get(ni),Jo=gr.get(ni),_i=this._buildInstruction(xn,pe,Jo,po,mi);if(_i.errors&&_i.errors.length)return void Fr.push(_i);if(mi)return Or.onStart(()=>Bn(ni,_i.fromStyles)),Or.onDestroy(()=>dn(ni,_i.toStyles)),void xe.push(Or);if(xn.isFallbackTransition)return Or.onStart(()=>Bn(ni,_i.fromStyles)),Or.onDestroy(()=>dn(ni,_i.toStyles)),void xe.push(Or);const Ja=[];_i.timelines.forEach(oo=>{oo.stretchStartingKeyframe=!0,this.disabledNodes.has(oo.element)||Ja.push(oo)}),_i.timelines=Ja,pe.append(ni,_i.timelines),St.push({instruction:_i,player:Or,element:ni}),_i.queriedElements.forEach(oo=>G(wt,oo,[]).push(Or)),_i.preStyleProps.forEach((oo,Ws)=>{if(oo.size){let So=on.get(Ws);So||on.set(Ws,So=new Set),oo.forEach((Os,Wi)=>So.add(Wi))}}),_i.postStyleProps.forEach((oo,Ws)=>{let So=Tn.get(Ws);So||Tn.set(Ws,So=new Set),oo.forEach((Os,Wi)=>So.add(Wi))})});if(Fr.length){const tr=[];Fr.forEach(It=>{tr.push(function H(){return new u.wOt(3505,!1)}())}),Is.forEach(It=>It.destroy()),this.reportError(tr)}const Yi=new Map,Zi=new Map;St.forEach(tr=>{const It=tr.element;pe.has(It)&&(Zi.set(It,It),this._beforeAnimationBuild(tr.player.namespaceId,tr.instruction,Yi))}),xe.forEach(tr=>{const It=tr.element;this._getPreviousPlayers(It,!1,tr.namespaceId,tr.triggerName,null).forEach(Or=>{G(Yi,It,[]).push(Or),Or.destroy()})});const ho=Zn.filter(tr=>Ts(tr,on,Tn)),Yo=new Map;Xo(Yo,this.driver,Xi,Tn,x.kp).forEach(tr=>{Ts(tr,on,Tn)&&ho.push(tr)});const Zo=new Map;Ir.forEach((tr,It)=>{Xo(Zo,this.driver,new Set(tr),on,x.FX)}),ho.forEach(tr=>{var It,xn;const Or=Yo.get(tr),ni=Zo.get(tr);Yo.set(tr,new Map([...null!==(It=null==Or?void 0:Or.entries())&&void 0!==It?It:[],...null!==(xn=null==ni?void 0:ni.entries())&&void 0!==xn?xn:[]]))});const Ro=[],ea=[],$s={};St.forEach(tr=>{const{element:It,player:xn,instruction:Or}=tr;if(pe.has(It)){if(Xn.has(It))return xn.onDestroy(()=>dn(It,Or.toStyles)),xn.disabled=!0,xn.overrideTotalTime(Or.totalTime),void xe.push(xn);let ni=$s;if(Zi.size>1){let po=It;const Jo=[];for(;po=po.parentNode;){const _i=Zi.get(po);if(_i){ni=_i;break}Jo.push(po)}Jo.forEach(_i=>Zi.set(_i,ni))}const mi=this._buildAnimation(xn.namespaceId,Or,Yi,Ye,Zo,Yo);if(xn.setRealPlayer(mi),ni===$s)Ro.push(xn);else{const po=this.playersByElement.get(ni);po&&po.length&&(xn.parentPlayer=Ue(po)),xe.push(xn)}}else Bn(It,Or.fromStyles),xn.onDestroy(()=>dn(It,Or.toStyles)),ea.push(xn),Xn.has(It)&&xe.push(xn)}),ea.forEach(tr=>{const It=Ye.get(tr.element);if(It&&It.length){const xn=Ue(It);tr.setRealPlayer(xn)}}),xe.forEach(tr=>{tr.parentPlayer?tr.syncPlayerEvents(tr.parentPlayer):tr.destroy()});for(let tr=0;tr<Zn.length;tr++){const It=Zn[tr],xn=It[Vn];if(jo(It,yt),xn&&xn.hasAnimation)continue;let Or=[];if(wt.size){let mi=wt.get(It);mi&&mi.length&&Or.push(...mi);let po=this.driver.query(It,Ht,!0);for(let Jo=0;Jo<po.length;Jo++){let _i=wt.get(po[Jo]);_i&&_i.length&&Or.push(..._i)}}const ni=Or.filter(mi=>!mi.destroyed);ni.length?Pa(this,It,ni):this.processLeaveNode(It)}return Zn.length=0,Ro.forEach(tr=>{this.players.push(tr),tr.onDone(()=>{tr.destroy();const It=this.players.indexOf(tr);this.players.splice(It,1)}),tr.play()}),Ro}afterFlush(I){this._flushFns.push(I)}afterFlushAnimationsDone(I){this._whenQuietFns.push(I)}_getPreviousPlayers(I,j,pe,xe,Ye){let St=[];if(j){const wt=this.playersByQueriedElement.get(I);wt&&(St=wt)}else{const wt=this.playersByElement.get(I);if(wt){const on=!Ye||Ye==Ot;wt.forEach(Tn=>{Tn.queued||!on&&Tn.triggerName!=xe||St.push(Tn)})}}return(pe||xe)&&(St=St.filter(wt=>!(pe&&pe!=wt.namespaceId||xe&&xe!=wt.triggerName))),St}_beforeAnimationBuild(I,j,pe){const Ye=j.element,St=j.isRemovalTransition?void 0:I,wt=j.isRemovalTransition?void 0:j.triggerName;for(const on of j.timelines){const Tn=on.element,Xn=Tn!==Ye,qn=G(pe,Tn,[]);this._getPreviousPlayers(Tn,Xn,St,wt,j.toState).forEach(Ir=>{const gr=Ir.getRealPlayer();gr.beforeDestroy&&gr.beforeDestroy(),Ir.destroy(),qn.push(Ir)})}Bn(Ye,j.fromStyles)}_buildAnimation(I,j,pe,xe,Ye,St){const wt=j.triggerName,on=j.element,Tn=[],Xn=new Set,qn=new Set,Pr=j.timelines.map(gr=>{const er=gr.element;Xn.add(er);const Zn=er[Vn];if(Zn&&Zn.removedBeforeQueried)return new x.sf(gr.duration,gr.delay);const Bi=er!==on,Xi=function Ma(Ne){const I=[];return hs(Ne,I),I}((pe.get(er)||$t).map(Yi=>Yi.getRealPlayer())).filter(Yi=>!!Yi.element&&Yi.element===er),fo=Ye.get(er),ji=St.get(er),Is=at(this._normalizer,gr.keyframes,fo,ji),Fr=this._buildPlayer(gr,Is,Xi);if(gr.subTimeline&&xe&&qn.add(er),Bi){const Yi=new vn(I,wt,er);Yi.setRealPlayer(Fr),Tn.push(Yi)}return Fr});
1Tn.forEach(gr=>{G(this.playersByQueriedElement,gr.element,[]).push(gr),gr.onDone(()=>function nr(Ne,I,j){let pe=Ne.get(I);if(pe){if(pe.length){const xe=pe.indexOf(j);pe.splice(xe,1)}0==pe.length&&Ne.delete(I)}return pe}(this.playersByQueriedElement,gr.element,gr))}),Xn.forEach(gr=>io(gr,ft));const Ir=Ue(Pr);return Ir.onDestroy(()=>{Xn.forEach(gr=>jo(gr,ft)),dn(on,j.toStyles)}),qn.forEach(gr=>{G(xe,gr,[]).push(Ir)}),Ir}_buildPlayer(I,j,pe){return j.length>0?this.driver.animate(I.element,j,I.duration,I.delay,I.easing,pe):new x.sf(I.duration,I.delay)}}class vn{constructor(I,j,pe){(0,p.A)(this,"namespaceId",void 0),(0,p.A)(this,"triggerName",void 0),(0,p.A)(this,"element",void 0),(0,p.A)(this,"_player",new x.sf),(0,p.A)(this,"_containsRealPlayer",!1),(0,p.A)(this,"_queuedCallbacks",new Map),(0,p.A)(this,"destroyed",!1),(0,p.A)(this,"parentPlayer",null),(0,p.A)(this,"markedForDestroy",!1),(0,p.A)(this,"disabled",!1),(0,p.A)(this,"queued",!0),(0,p.A)(this,"totalTime",0),this.namespaceId=I,this.triggerName=j,this.element=pe}setRealPlayer(I){this._containsRealPlayer||(this._player=I,this._queuedCallbacks.forEach((j,pe)=>{j.forEach(xe=>hn(I,pe,void 0,xe))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(I.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(I){this.totalTime=I}syncPlayerEvents(I){const j=this._player;j.triggerCallback&&I.onStart(()=>j.triggerCallback("start")),I.onDone(()=>this.finish()),I.onDestroy(()=>this.destroy())}_queueEvent(I,j){G(this._queuedCallbacks,I,[]).push(j)}onDone(I){this.queued&&this._queueEvent("done",I),this._player.onDone(I)}onStart(I){this.queued&&this._queueEvent("start",I),this._player.onStart(I)}onDestroy(I){this.queued&&this._queueEvent("destroy",I),this._player.onDestroy(I)}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(I){this.queued||this._player.setPosition(I)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(I){const j=this._player;j.triggerCallback&&j.triggerCallback(I)}}function Lr(Ne){return Ne&&1===Ne.nodeType}function is(Ne,I){const j=Ne.style.display;return Ne.style.display=null!=I?I:"none",j}function Xo(Ne,I,j,pe,xe){const Ye=[];j.forEach(on=>Ye.push(is(on)));const St=[];pe.forEach((on,Tn)=>{const Xn=new Map;on.forEach(qn=>{const Pr=I.computeStyle(Tn,qn,xe);Xn.set(qn,Pr),(!Pr||0==Pr.length)&&(Tn[Vn]=Fn,St.push(Tn))}),Ne.set(Tn,Xn)});let wt=0;return j.forEach(on=>is(on,Ye[wt++])),St}function wo(Ne,I){const j=new Map;if(Ne.forEach(wt=>j.set(wt,[])),0==I.length)return j;const xe=new Set(I),Ye=new Map;function St(wt){if(!wt)return 1;let on=Ye.get(wt);if(on)return on;const Tn=wt.parentNode;return on=j.has(Tn)?Tn:xe.has(Tn)?1:St(Tn),Ye.set(wt,on),on}return I.forEach(wt=>{const on=St(wt);1!==on&&j.get(on).push(wt)}),j}function io(Ne,I){var j;null===(j=Ne.classList)||void 0===j||j.add(I)}function jo(Ne,I){var j;null===(j=Ne.classList)||void 0===j||j.remove(I)}function Pa(Ne,I,j){Ue(j).onDone(()=>Ne.processLeaveNode(I))}function hs(Ne,I){for(let j=0;j<Ne.length;j++){const pe=Ne[j];pe instanceof x.ui?hs(pe.players,I):I.push(pe)}}function Ts(Ne,I,j){const pe=j.get(Ne);if(!pe)return!1;let xe=I.get(Ne);return xe?pe.forEach(Ye=>xe.add(Ye)):I.set(Ne,pe),j.delete(Ne),!0}class Vs{constructor(I,j,pe){(0,p.A)(this,"_driver",void 0),(0,p.A)(this,"_normalizer",void 0),(0,p.A)(this,"_transitionEngine",void 0),(0,p.A)(this,"_timelineEngine",void 0),(0,p.A)(this,"_triggerCache",{}),(0,p.A)(this,"onRemovalComplete",(xe,Ye)=>{}),this._driver=j,this._normalizer=pe,this._transitionEngine=new jt(I.body,j,pe),this._timelineEngine=new Tr(I.body,j,pe),this._transitionEngine.onRemovalComplete=(xe,Ye)=>this.onRemovalComplete(xe,Ye)}registerTrigger(I,j,pe,xe,Ye){const St=I+"-"+xe;let wt=this._triggerCache[St];if(!wt){const on=[],Xn=vr(this._driver,Ye,on,[]);if(on.length)throw function Fe(){return new u.wOt(3404,!1)}();wt=function Rn(Ne,I,j){return new sr(Ne,I,j)}(xe,Xn,this._normalizer),this._triggerCache[St]=wt}this._transitionEngine.registerTrigger(j,xe,wt)}
1register(I,j){this._transitionEngine.register(I,j)}destroy(I,j){this._transitionEngine.destroy(I,j)}onInsert(I,j,pe,xe){this._transitionEngine.insertNode(I,j,pe,xe)}onRemove(I,j,pe){this._transitionEngine.removeNode(I,j,pe)}disableAnimations(I,j){this._transitionEngine.markElementAsDisabled(I,j)}process(I,j,pe,xe){if("@"==pe.charAt(0)){const[Ye,St]=_e(pe);this._timelineEngine.command(Ye,j,St,xe)}else this._transitionEngine.trigger(I,j,pe,xe)}listen(I,j,pe,xe,Ye){if("@"==pe.charAt(0)){const[St,wt]=_e(pe);return this._timelineEngine.listen(St,j,wt,Ye)}return this._transitionEngine.listen(I,j,pe,xe,Ye)}flush(I=-1){this._transitionEngine.flush(I)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(I){this._transitionEngine.afterFlushAnimationsDone(I)}}let zn=(()=>{class Ne{constructor(j,pe,xe){(0,p.A)(this,"_element",void 0),(0,p.A)(this,"_startStyles",void 0),(0,p.A)(this,"_endStyles",void 0),(0,p.A)(this,"_state",0),(0,p.A)(this,"_initialStyles",void 0),this._element=j,this._startStyles=pe,this._endStyles=xe;let Ye=Ne.initialStylesByElement.get(j);Ye||Ne.initialStylesByElement.set(j,Ye=new Map),this._initialStyles=Ye}start(){this._state<1&&(this._startStyles&&dn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dn(this._element,this._initialStyles),this._endStyles&&(dn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Ne.initialStylesByElement.delete(this._element),this._startStyles&&(Bn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Bn(this._element,this._endStyles),this._endStyles=null),dn(this._element,this._initialStyles),this._state=3)}}return(0,p.A)(Ne,"initialStylesByElement",new WeakMap),Ne})();function bo(Ne){let I=null;return Ne.forEach((j,pe)=>{(function pa(Ne){return"display"===Ne||"position"===Ne})(pe)&&(I=I||new Map,I.set(pe,j))}),I}class qs{constructor(I,j,pe,xe){(0,p.A)(this,"element",void 0),(0,p.A)(this,"keyframes",void 0),(0,p.A)(this,"options",void 0),(0,p.A)(this,"_specialStyles",void 0),(0,p.A)(this,"_onDoneFns",[]),(0,p.A)(this,"_onStartFns",[]),(0,p.A)(this,"_onDestroyFns",[]),(0,p.A)(this,"_duration",void 0),(0,p.A)(this,"_delay",void 0),(0,p.A)(this,"_initialized",!1),(0,p.A)(this,"_finished",!1),(0,p.A)(this,"_started",!1),(0,p.A)(this,"_destroyed",!1),(0,p.A)(this,"_finalKeyframe",void 0),(0,p.A)(this,"_originalOnDoneFns",[]),(0,p.A)(this,"_originalOnStartFns",[]),(0,p.A)(this,"domPlayer",void 0),(0,p.A)(this,"time",0),(0,p.A)(this,"parentPlayer",null),(0,p.A)(this,"currentSnapshot",new Map),this.element=I,this.keyframes=j,this.options=pe,this._specialStyles=xe,this._duration=pe.duration,this._delay=pe.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(I=>I()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const I=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,I,this.options),this._finalKeyframe=I.length?I[I.length-1]:new Map;const j=()=>this._onFinish();this.domPlayer.addEventListener("finish",j),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",j)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(I){const j=[];return I.forEach(pe=>{j.push(Object.fromEntries(pe))}),j}_triggerWebAnimation(I,j,pe){return I.animate(this._convertKeyframesToObject(j),pe)}onStart(I){this._originalOnStartFns.push(I),this._onStartFns.push(I)}onDone(I){this._originalOnDoneFns.push(I),this._onDoneFns.push(I)}onDestroy(I){this._onDestroyFns.push(I)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(I=>I()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(I=>I()),this._onDestroyFns=[])}setPosition(I){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=I*this.time}getPosition(){var I;return+(null!==(I=this.domPlayer.currentTime)&&void 0!==I?I:0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const I=new Map;this.hasStarted()&&this._finalKeyframe.forEach((pe,xe)=>{"offset"!==xe&&I.set(xe,this._finished?pe:br(this.element,xe))}),this.currentSnapshot=I}triggerCallback(I){const j="start"===I?this._onStartFns:this._onDoneFns;
1j.forEach(pe=>pe()),j.length=0}}class yl{validateStyleProperty(I){return!0}validateAnimatableStyleProperty(I){return!0}containsElement(I,j){return Dt(I,j)}getParentElement(I){return P(I)}query(I,j,pe){return en(I,j,pe)}computeStyle(I,j,pe){return br(I,j)}animate(I,j,pe,xe,Ye,St=[]){const on={duration:pe,delay:xe,fill:0==xe?"both":"forwards"};Ye&&(on.easing=Ye);const Tn=new Map,Xn=St.filter(Ir=>Ir instanceof qs);(function jn(Ne,I){return 0===Ne||0===I})(pe,xe)&&Xn.forEach(Ir=>{Ir.currentSnapshot.forEach((gr,er)=>Tn.set(er,gr))});let qn=function Ct(Ne){return Ne.length?Ne[0]instanceof Map?Ne:Ne.map(I=>new Map(Object.entries(I))):[]}(j).map(Ir=>new Map(Ir));qn=function Jn(Ne,I,j){if(j.size&&I.length){let pe=I[0],xe=[];if(j.forEach((Ye,St)=>{pe.has(St)||xe.push(St),pe.set(St,Ye)}),xe.length)for(let Ye=1;Ye<I.length;Ye++){let St=I[Ye];xe.forEach(wt=>St.set(wt,br(Ne,wt)))}}return I}(I,qn,Tn);const Pr=function Js(Ne,I){let j=null,pe=null;return Array.isArray(I)&&I.length?(j=bo(I[0]),I.length>1&&(pe=bo(I[I.length-1]))):I instanceof Map&&(j=bo(I)),j||pe?new zn(Ne,j,pe):null}(I,qn);return new qs(I,qn,on,Pr)}}const Vo="@.disabled";class ps{constructor(I,j,pe,xe){(0,p.A)(this,"namespaceId",void 0),(0,p.A)(this,"delegate",void 0),(0,p.A)(this,"engine",void 0),(0,p.A)(this,"_onDestroy",void 0),(0,p.A)(this,"\u0275type",0),this.namespaceId=I,this.delegate=j,this.engine=pe,this._onDestroy=xe}get data(){return this.delegate.data}destroyNode(I){var j,pe;null===(j=(pe=this.delegate).destroyNode)||void 0===j||j.call(pe,I)}destroy(){var I;this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),null===(I=this._onDestroy)||void 0===I||I.call(this)}createElement(I,j){return this.delegate.createElement(I,j)}createComment(I){return this.delegate.createComment(I)}createText(I){return this.delegate.createText(I)}appendChild(I,j){this.delegate.appendChild(I,j),this.engine.onInsert(this.namespaceId,j,I,!1)}insertBefore(I,j,pe,xe=!0){this.delegate.insertBefore(I,j,pe),this.engine.onInsert(this.namespaceId,j,I,xe)}removeChild(I,j,pe){this.parentNode(j)&&this.engine.onRemove(this.namespaceId,j,this.delegate)}selectRootElement(I,j){return this.delegate.selectRootElement(I,j)}parentNode(I){return this.delegate.parentNode(I)}nextSibling(I){return this.delegate.nextSibling(I)}setAttribute(I,j,pe,xe){this.delegate.setAttribute(I,j,pe,xe)}removeAttribute(I,j,pe){this.delegate.removeAttribute(I,j,pe)}addClass(I,j){this.delegate.addClass(I,j)}removeClass(I,j){this.delegate.removeClass(I,j)}setStyle(I,j,pe,xe){this.delegate.setStyle(I,j,pe,xe)}removeStyle(I,j,pe){this.delegate.removeStyle(I,j,pe)}setProperty(I,j,pe){"@"==j.charAt(0)&&j==Vo?this.disableAnimations(I,!!pe):this.delegate.setProperty(I,j,pe)}setValue(I,j){this.delegate.setValue(I,j)}listen(I,j,pe,xe){return this.delegate.listen(I,j,pe,xe)}disableAnimations(I,j){this.engine.disableAnimations(I,j)}}class $o extends ps{constructor(I,j,pe,xe,Ye){super(j,pe,xe,Ye),(0,p.A)(this,"factory",void 0),this.factory=I,this.namespaceId=j}setProperty(I,j,pe){"@"==j.charAt(0)?"."==j.charAt(1)&&j==Vo?this.disableAnimations(I,pe=void 0===pe||!!pe):this.engine.process(this.namespaceId,I,j.slice(1),pe):this.delegate.setProperty(I,j,pe)}listen(I,j,pe,xe){if("@"==j.charAt(0)){const Ye=function gs(Ne){switch(Ne){case"body":return document.body;case"document":return document;case"window":return window;default:return Ne}}(I);let St=j.slice(1),wt="";return"@"!=St.charAt(0)&&([St,wt]=function Ss(Ne){const I=Ne.indexOf(".");return[Ne.substring(0,I),Ne.slice(I+1)]}(St)),this.engine.listen(this.namespaceId,Ye,St,wt,on=>{this.factory.scheduleListenerCallback(on._data||-1,pe,on)})}return this.delegate.listen(I,j,pe,xe)}}class Ds{constructor(I,j,pe){(0,p.A)(this,"delegate",void 0),(0,p.A)(this,"engine",void 0),(0,p.A)(this,"_zone",void 0),(0,p.A)(this,"_currentId",0),(0,p.A)(this,"_microtaskId",1),(0,p.A)(this,"_animationCallbacksBuffer",[]),(0,p.A)(this,"_rendererCache",new Map),(0,p.A)(this,"_cdRecurDepth",0),this.delegate=I,this.engine=j,this._zone=pe,j.onRemovalComplete=(xe,Ye)=>{null==Ye||Ye.removeChild(null,xe)}}createRenderer(I,j){var pe;const Ye=this.delegate.createRenderer(I,j);if(!I||null==j||null===(pe=j.data)||void 0===pe||!pe.animation){const Xn=this._rendererCache;let qn=Xn.get(Ye);return qn||(qn=new ps("",Ye,this.engine,()=>Xn.delete(Ye)),Xn.set(Ye,qn)),qn}const St=j.id,wt=j.id+"-"+this._currentId;this._currentId++,this.engine.register(wt,I);const on=Xn=>{Array.isArray(Xn)?Xn.forEach(on):this.engine.registerTrigger(St,wt,I,Xn.name,Xn)};return j.data.animation.forEach(on),new $o(this,wt,Ye,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(I,j,pe){if(I>=0&&I<this._microtaskId)return void this._zone.run(()=>j(pe));const xe=this._animationCallbacksBuffer;0==xe.length&&queueMicrotask(()=>{this._zone.run(()=>{xe.forEach(Ye=>{const[St,wt]=Ye;St(wt)}),this._animationCallbacksBuffer=[]})}),xe.push([j,pe])}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()}componentReplaced(I){var j,pe;this.engine.flush(),null===(j=(pe=this.delegate).componentReplaced)||void 0===j||j.call(pe,I)}}var Al=d(177);const ti=[{provide:In,useFactory:function ga(){return new Qr}},{provide:Vs,useClass:(()=>{var Ne;class I extends Vs{constructor(pe,xe,Ye){super(pe,xe,Ye)}ngOnDestroy(){this.flush()}}return Ne=I,(0,p.A)(I,"\u0275fac",function(pe){return new(pe||Ne)(u.KVO(Al.qQ),u.KVO($n),u.KVO(In))}),(0,p.A)(I,"\u0275prov",u.jDH({token:Ne,factory:Ne.\u0275fac})),I})()},{provide:u._9s,useFactory:function ru(Ne,I,j){return new Ds(Ne,I,j)},deps:[o.B7,Vs,u.SKi]}],ma=[{provide:$n,useFactory:()=>new yl},{provide:u.bc$,useValue:"BrowserAnimations"},...ti],ki=[{provide:$n,useClass:Pn},{provide:u.bc$,useValue:"NoopAnimations"},...ti];let wa=(()=>{var Ne;class I{static withConfig(pe){return{ngModule:I,providers:pe.disableAnimations?ki:ma}}}return Ne=I,(0,p.A)(I,"\u0275fac",function(pe){return new(pe||Ne)}),(0,p.A)(I,"\u0275mod",u.$C({type:Ne})),(0,p.A)(I,"\u0275inj",u.G2t({providers:ma,imports:[o.Bb]})),I})()},345:(le,E,d)=>{"use strict";d.d(E,{$x:()=>Hn,B7:()=>Fe,Bb:()=>Ae,W8:()=>Oe,dE:()=>gt,hE:()=>Tt,rQ:()=>dn,sG:()=>Te,up:()=>ft});var p=d(9379),u=d(1660),o=d(177),v=d(3953),O=d(1626);class x extends o.VF{constructor(...mt){super(...mt),(0,u.A)(this,"supportsDOMEvents",!0)}}class U extends x{static makeCurrent(){(0,o.ZD)(new U)}onAndCancel(mt,Ut,_t,Ft){return mt.addEventListener(Ut,_t,Ft),()=>{mt.removeEventListener(Ut,_t,Ft)}}dispatchEvent(mt,Ut){mt.dispatchEvent(Ut)}remove(mt){mt.remove()}createElement(mt,Ut){return(Ut=Ut||this.getDefaultDocument()).createElement(mt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(mt){return mt.nodeType===Node.ELEMENT_NODE}isShadowRoot(mt){return mt instanceof DocumentFragment}getGlobalEventTarget(mt,Ut){return"window"===Ut?window:"document"===Ut?mt:"body"===Ut?mt.body:null}getBaseHref(mt){const Ut=function re(){return Q=Q||document.querySelector("base"),Q?Q.getAttribute("href"):null}();return null==Ut?null:function be(Qt){return new URL(Qt,document.baseURI).pathname}(Ut)}resetBaseElement(){Q=null}getUserAgent(){return window.navigator.userAgent}getCookie(mt){return(0,o._b)(document.cookie,mt)}}let Q=null,X=(()=>{var Qt;class mt{build(){return new XMLHttpRequest}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac})),mt})();const ne=new v.nKC("");let te=(()=>{var Qt;class mt{constructor(_t,Ft){(0,u.A)(this,"_zone",void 0),(0,u.A)(this,"_plugins",void 0),(0,u.A)(this,"_eventNameToPlugin",new Map),this._zone=Ft,_t.forEach(mn=>{mn.manager=this}),this._plugins=_t.slice().reverse()}addEventListener(_t,Ft,mn,jn){return this._findPluginFor(Ft).addEventListener(_t,Ft,mn,jn)}getZone(){return this._zone}_findPluginFor(_t){let Ft=this._eventNameToPlugin.get(_t);if(Ft)return Ft;if(Ft=this._plugins.find(jn=>jn.supports(_t)),!Ft)throw new v.wOt(5101,!1);return this._eventNameToPlugin.set(_t,Ft),Ft}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(ne),v.KVO(v.SKi))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac})),mt})();class ${constructor(mt){(0,u.A)(this,"_doc",void 0),(0,u.A)(this,"manager",void 0),this._doc=mt}}const J="ng-app-id";function se(Qt){for(const mt of Qt)mt.remove()}function De(Qt,mt){const Ut=mt.createElement("style");return Ut.textContent=Qt,Ut}function ce(Qt,mt){const Ut=mt.createElement("link");return Ut.setAttribute("rel","stylesheet"),Ut.setAttribute("href",Qt),Ut}let _=(()=>{var Qt;class mt{constructor(_t,Ft,mn,jn={}){(0,u.A)(this,"doc",void 0),(0,u.A)(this,"appId",void 0),(0,u.A)(this,"nonce",void 0),(0,u.A)(this,"inline",new Map),(0,u.A)(this,"external",new Map),(0,u.A)(this,"hosts",new Set),(0,u.A)(this,"isServer",void 0),this.doc=_t,this.appId=Ft,this.nonce=mn,this.isServer=(0,o.Vy)(jn),function Ce(Qt,mt,Ut,_t){var Ft;const mn=null===(Ft=Qt.head)||void 0===Ft?void 0:Ft.querySelectorAll("style[".concat(J,'="').concat(mt,'"],link[').concat(J,'="').concat(mt,'"]'));if(mn)for(const jn of mn)jn.removeAttribute(J),jn instanceof HTMLLinkElement?_t.set(jn.href.slice(jn.href.lastIndexOf("/")+1),{usage:0,elements:[jn]}):jn.textContent&&Ut.set(jn.textContent,{usage:0,elements:[jn]})}(_t,Ft,this.inline,this.external),this.hosts.add(_t.head)}addStyles(_t,Ft){for(const mn of _t)this.addUsage(mn,this.inline,De);null==Ft||Ft.forEach(mn=>this.addUsage(mn,this.external,ce))}removeStyles(_t,Ft){for(const mn of _t)this.removeUsage(mn,this.inline);null==Ft||Ft.forEach(mn=>this.removeUsage(mn,this.external))}addUsage(_t,Ft,mn){const jn=Ft.get(_t);jn?jn.usage++:Ft.set(_t,{usage:1,elements:[...this.hosts].map(Jn=>this.addElement(Jn,mn(_t,this.doc)))})}removeUsage(_t,Ft){const mn=Ft.get(_t);mn&&(mn.usage--,mn.usage<=0&&(se(mn.elements),Ft.delete(_t)))}ngOnDestroy(){for(const[,{elements:_t}]of[...this.inline,...this.external])se(_t);this.hosts.clear()}addHost(_t){this.hosts.add(_t);for(const[Ft,{elements:mn}]of this.inline)mn.push(this.addElement(_t,De(Ft,this.doc)));for(const[Ft,{elements:mn}]of this.external)mn.push(this.addElement(_t,ce(Ft,this.doc)))}removeHost(_t){this.hosts.delete(_t)}addElement(_t,Ft){return this.nonce&&Ft.setAttribute("nonce",this.nonce),this.isServer&&Ft.setAttribute(J,this.appId),_t.appendChild(Ft)}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(o.qQ),v.KVO(v.sZ2),v.KVO(v.BIS,8),v.KVO(v.Agw))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac})),mt})();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/Math/MathML"},w=/%COMP%/g,B="%COMP%",z="_nghost-".concat(B),oe="_ngcontent-".concat(B),k=new v.nKC("",{providedIn:"root",factory:()=>!0});function ve(Qt,mt){return mt.map(Ut=>Ut.replace(w,Qt))}let Fe=(()=>{var Qt;class mt{constructor(_t,Ft,mn,jn,Jn,fr,br,Er=null,Qr=null){(0,u.A)(this,"eventManager",void 0),(0,u.A)(this,"sharedStylesHost",void 0),(0,u.A)(this,"appId",void 0),(0,u.A)(this,"removeStylesOnCompDestroy",void 0),(0,u.A)(this,"doc",void 0),(0,u.A)(this,"platformId",void 0),(0,u.A)(this,"ngZone",void 0),(0,u.A)(this,"nonce",void 0),(0,u.A)(this,"tracingService",void 0),(0,u.A)(this,"rendererByCompId",new Map),(0,u.A)(this,"defaultRenderer",void 0),(0,u.A)(this,"platformIsServer",void 0),this.eventManager=_t,this.sharedStylesHost=Ft,this.appId=mn,this.removeStylesOnCompDestroy=jn,this.doc=Jn,this.platformId=fr,this.ngZone=br,this.nonce=Er,this.tracingService=Qr,this.platformIsServer=(0,o.Vy)(fr),this.defaultRenderer=new We(_t,Jn,br,this.platformIsServer,this.tracingService)}createRenderer(_t,Ft){if(!_t||!Ft)return this.defaultRenderer;this.platformIsServer&&Ft.encapsulation===v.gXe.ShadowDom&&(Ft=(0,p.A)((0,p.A)({},Ft),{},{encapsulation:v.gXe.Emulated}));const mn=this.getOrCreateRenderer(_t,Ft);
1return mn instanceof He?mn.applyToHost(_t):mn instanceof tt&&mn.applyStyles(),mn}getOrCreateRenderer(_t,Ft){const mn=this.rendererByCompId;let jn=mn.get(Ft.id);if(!jn){const Jn=this.doc,fr=this.ngZone,br=this.eventManager,Er=this.sharedStylesHost,Qr=this.removeStylesOnCompDestroy,Ti=this.platformIsServer;switch(Ft.encapsulation){case v.gXe.Emulated:jn=new He(br,Er,Ft,this.appId,Qr,Jn,fr,Ti,this.tracingService);break;case v.gXe.ShadowDom:return new Me(br,Er,_t,Ft,Jn,fr,this.nonce,Ti,this.tracingService);default:jn=new tt(br,Er,Ft,Qr,Jn,fr,Ti,this.tracingService)}mn.set(Ft.id,jn)}return jn}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(_t){this.rendererByCompId.delete(_t)}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(te),v.KVO(_),v.KVO(v.sZ2),v.KVO(k),v.KVO(o.qQ),v.KVO(v.Agw),v.KVO(v.SKi),v.KVO(v.BIS),v.KVO(v.Lf2,8))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac})),mt})();class We{constructor(mt,Ut,_t,Ft,mn){(0,u.A)(this,"eventManager",void 0),(0,u.A)(this,"doc",void 0),(0,u.A)(this,"ngZone",void 0),(0,u.A)(this,"platformIsServer",void 0),(0,u.A)(this,"tracingService",void 0),(0,u.A)(this,"data",Object.create(null)),(0,u.A)(this,"throwOnSyntheticProps",!0),(0,u.A)(this,"destroyNode",null),this.eventManager=mt,this.doc=Ut,this.ngZone=_t,this.platformIsServer=Ft,this.tracingService=mn}destroy(){}createElement(mt,Ut){return Ut?this.doc.createElementNS(R[Ut]||Ut,mt):this.doc.createElement(mt)}createComment(mt){return this.doc.createComment(mt)}createText(mt){return this.doc.createTextNode(mt)}appendChild(mt,Ut){(Ke(mt)?mt.content:mt).appendChild(Ut)}insertBefore(mt,Ut,_t){mt&&(Ke(mt)?mt.content:mt).insertBefore(Ut,_t)}removeChild(mt,Ut){Ut.remove()}selectRootElement(mt,Ut){let _t="string"==typeof mt?this.doc.querySelector(mt):mt;if(!_t)throw new v.wOt(-5104,!1);return Ut||(_t.textContent=""),_t}parentNode(mt){return mt.parentNode}nextSibling(mt){return mt.nextSibling}setAttribute(mt,Ut,_t,Ft){if(Ft){Ut=Ft+":"+Ut;const mn=R[Ft];mn?mt.setAttributeNS(mn,Ut,_t):mt.setAttribute(Ut,_t)}else mt.setAttribute(Ut,_t)}removeAttribute(mt,Ut,_t){if(_t){const Ft=R[_t];Ft?mt.removeAttributeNS(Ft,Ut):mt.removeAttribute("".concat(_t,":").concat(Ut))}else mt.removeAttribute(Ut)}addClass(mt,Ut){mt.classList.add(Ut)}removeClass(mt,Ut){mt.classList.remove(Ut)}setStyle(mt,Ut,_t,Ft){Ft&(v.czy.DashCase|v.czy.Important)?mt.style.setProperty(Ut,_t,Ft&v.czy.Important?"important":""):mt.style[Ut]=_t}removeStyle(mt,Ut,_t){_t&v.czy.DashCase?mt.style.removeProperty(Ut):mt.style[Ut]=""}
1setProperty(mt,Ut,_t){null!=mt&&(mt[Ut]=_t)}setValue(mt,Ut){mt.nodeValue=Ut}listen(mt,Ut,_t,Ft){if("string"==typeof mt&&!(mt=(0,o.QT)().getGlobalEventTarget(this.doc,mt)))throw new Error("Unsupported event target ".concat(mt," for event ").concat(Ut));let mn=this.decoratePreventDefault(_t);return null!==this.tracingService&&this.tracingService.wrapEventListener&&(mn=this.tracingService.wrapEventListener(mt,Ut,mn)),this.eventManager.addEventListener(mt,Ut,mn,Ft)}decoratePreventDefault(mt){return Ut=>{if("__ngUnwrap__"===Ut)return mt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>mt(Ut)):mt(Ut))&&Ut.preventDefault()}}}function Ke(Qt){return"TEMPLATE"===Qt.tagName&&void 0!==Qt.content}class Me extends We{constructor(mt,Ut,_t,Ft,mn,jn,Jn,fr,br){var Er;super(mt,mn,jn,fr,br),(0,u.A)(this,"sharedStylesHost",void 0),(0,u.A)(this,"hostEl",void 0),(0,u.A)(this,"shadowRoot",void 0),this.sharedStylesHost=Ut,this.hostEl=_t,this.shadowRoot=_t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Qr=ve(Ft.id,Ft.styles);for(const Ui of Qr){const ui=document.createElement("style");Jn&&ui.setAttribute("nonce",Jn),ui.textContent=Ui,this.shadowRoot.appendChild(ui)}const Ti=null===(Er=Ft.getExternalStyles)||void 0===Er?void 0:Er.call(Ft);if(Ti)for(const Ui of Ti){const ui=ce(Ui,mn);Jn&&ui.setAttribute("nonce",Jn),this.shadowRoot.appendChild(ui)}}nodeOrShadowRoot(mt){return mt===this.hostEl?this.shadowRoot:mt}appendChild(mt,Ut){return super.appendChild(this.nodeOrShadowRoot(mt),Ut)}insertBefore(mt,Ut,_t){return super.insertBefore(this.nodeOrShadowRoot(mt),Ut,_t)}removeChild(mt,Ut){return super.removeChild(null,Ut)}parentNode(mt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(mt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class tt extends We{constructor(mt,Ut,_t,Ft,mn,jn,Jn,fr,br){var Er;super(mt,mn,jn,Jn,fr),(0,u.A)(this,"sharedStylesHost",void 0),(0,u.A)(this,"removeStylesOnCompDestroy",void 0),(0,u.A)(this,"styles",void 0),(0,u.A)(this,"styleUrls",void 0),this.sharedStylesHost=Ut,this.removeStylesOnCompDestroy=Ft,this.styles=br?ve(br,_t.styles):_t.styles,this.styleUrls=null===(Er=_t.getExternalStyles)||void 0===Er?void 0:Er.call(_t,br)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class He extends tt{constructor(mt,Ut,_t,Ft,mn,jn,Jn,fr,br){const Er=Ft+"-"+_t.id;super(mt,Ut,_t,mn,jn,Jn,fr,br,Er),(0,u.A)(this,"contentAttr",void 0),(0,u.A)(this,"hostAttr",void 0),this.contentAttr=function K(Qt){return oe.replace(w,Qt)}(Er),this.hostAttr=function ge(Qt){return z.replace(w,Qt)}(Er)}applyToHost(mt){this.applyStyles(),this.setAttribute(mt,this.hostAttr,"")}createElement(mt,Ut){const _t=super.createElement(mt,Ut);return super.setAttribute(_t,this.contentAttr,""),_t}}let ot=(()=>{var Qt;class mt extends ${constructor(_t){super(_t)}supports(_t){return!0}addEventListener(_t,Ft,mn,jn){return _t.addEventListener(Ft,mn,jn),()=>this.removeEventListener(_t,Ft,mn,jn)}removeEventListener(_t,Ft,mn,jn){return _t.removeEventListener(Ft,mn,jn)}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(o.qQ))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac})),mt})();const je=["alt","control","meta","shift"],fe={"\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"},D={alt:Qt=>Qt.altKey,control:Qt=>Qt.ctrlKey,meta:Qt=>Qt.metaKey,shift:Qt=>Qt.shiftKey};let H=(()=>{var Qt;class mt extends ${constructor(_t){super(_t)}supports(_t){return null!=mt.parseEventName(_t)}addEventListener(_t,Ft,mn,jn){const Jn=mt.parseEventName(Ft),fr=mt.eventCallback(Jn.fullKey,mn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.QT)().onAndCancel(_t,Jn.domEventName,fr,jn))}static parseEventName(_t){const Ft=_t.toLowerCase().split("."),mn=Ft.shift();if(0===Ft.length||"keydown"!==mn&&"keyup"!==mn)return null;const jn=mt._normalizeKey(Ft.pop());let Jn="",fr=Ft.indexOf("code");if(fr>-1&&(Ft.splice(fr,1),Jn="code."),je.forEach(Er=>{const Qr=Ft.indexOf(Er);Qr>-1&&(Ft.splice(Qr,1),Jn+=Er+".")}),Jn+=jn,0!=Ft.length||0===jn.length)return null;const br={};return br.domEventName=mn,br.fullKey=Jn,br}static matchEventFullKeyCode(_t,Ft){let mn=fe[_t.key]||_t.key,jn="";
1return Ft.indexOf("code.")>-1&&(mn=_t.code,jn="code."),!(null==mn||!mn)&&(mn=mn.toLowerCase()," "===mn?mn="space":"."===mn&&(mn="dot"),je.forEach(Jn=>{Jn!==mn&&(0,D[Jn])(_t)&&(jn+=Jn+".")}),jn+=mn,jn===Ft)}static eventCallback(_t,Ft,mn){return jn=>{mt.matchEventFullKeyCode(jn,_t)&&mn.runGuarded(()=>Ft(jn))}}static _normalizeKey(_t){return"esc"===_t?"escape":_t}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(o.qQ))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac})),mt})();const Te=(0,v.oH4)(v.fpN,"browser",[{provide:v.Agw,useValue:o.AJ},{provide:v.PLl,useValue:function ln(){U.makeCurrent()},multi:!0},{provide:o.qQ,useFactory:function G(){return(0,v.TL$)(document),document},deps:[]}]),F=[{provide:v.e01,useClass:class ue{addToWindow(mt){v.JZv.getAngularTestability=(_t,Ft=!0)=>{const mn=mt.findTestabilityInTree(_t,Ft);if(null==mn)throw new v.wOt(5103,!1);return mn},v.JZv.getAllAngularTestabilities=()=>mt.getAllTestabilities(),v.JZv.getAllAngularRootElements=()=>mt.getAllRootElements(),v.JZv.frameworkStabilizers||(v.JZv.frameworkStabilizers=[]),v.JZv.frameworkStabilizers.push(_t=>{const Ft=v.JZv.getAllAngularTestabilities();let mn=Ft.length;const jn=function(){mn--,0==mn&&_t()};Ft.forEach(Jn=>{Jn.whenStable(jn)})})}findTestabilityInTree(mt,Ut,_t){if(null==Ut)return null;const Ft=mt.getTestability(Ut);return null!=Ft?Ft:_t?(0,o.QT)().isShadowRoot(Ut)?this.findTestabilityInTree(mt,Ut.host,!0):this.findTestabilityInTree(mt,Ut.parentElement,!0):null}},deps:[]},{provide:v.WHO,useClass:v.NYb,deps:[v.SKi,v.giA,v.e01]},{provide:v.NYb,useClass:v.NYb,deps:[v.SKi,v.giA,v.e01]}],de=[{provide:v.H8p,useValue:"root"},{provide:v.zcH,useFactory:function et(){return new v.zcH},deps:[]},{provide:ne,useClass:ot,multi:!0,deps:[o.qQ,v.SKi,v.Agw]},{provide:ne,useClass:H,multi:!0,deps:[o.qQ]},Fe,_,te,{provide:v._9s,useExisting:Fe},{provide:o.N0,useClass:X,deps:[]},[]];let Ae=(()=>{var Qt;class mt{constructor(){}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)}),(0,u.A)(mt,"\u0275mod",v.$C({type:Qt})),(0,u.A)(mt,"\u0275inj",v.G2t({providers:[...de,...F],imports:[o.MD,v.Hbi]})),mt})(),Oe=(()=>{var Qt;class mt{constructor(_t){(0,u.A)(this,"_doc",void 0),(0,u.A)(this,"_dom",void 0),this._doc=_t,this._dom=(0,o.QT)()}addTag(_t,Ft=!1){return _t?this._getOrCreateElement(_t,Ft):null}addTags(_t,Ft=!1){return _t?_t.reduce((mn,jn)=>(jn&&mn.push(this._getOrCreateElement(jn,Ft)),mn),[]):[]}getTag(_t){return _t&&this._doc.querySelector("meta[".concat(_t,"]"))||null}getTags(_t){if(!_t)return[];const Ft=this._doc.querySelectorAll("meta[".concat(_t,"]"));return Ft?[].slice.call(Ft):[]}updateTag(_t,Ft){if(!_t)return null;Ft=Ft||this._parseSelector(_t);const mn=this.getTag(Ft);return mn?this._setMetaElementAttributes(_t,mn):this._getOrCreateElement(_t,!0)}removeTag(_t){this.removeTagElement(this.getTag(_t))}removeTagElement(_t){_t&&this._dom.remove(_t)}_getOrCreateElement(_t,Ft=!1){if(!Ft){const Jn=this._parseSelector(_t),fr=this.getTags(Jn).filter(br=>this._containsAttributes(_t,br))[0];if(void 0!==fr)return fr}const mn=this._dom.createElement("meta");return this._setMetaElementAttributes(_t,mn),this._doc.getElementsByTagName("head")[0].appendChild(mn),mn}_setMetaElementAttributes(_t,Ft){return Object.keys(_t).forEach(mn=>Ft.setAttribute(this._getMetaKeyMap(mn),_t[mn])),Ft}_parseSelector(_t){const Ft=_t.name?"name":"property";return"".concat(Ft,'="').concat(_t[Ft],'"')}_containsAttributes(_t,Ft){return Object.keys(_t).every(mn=>Ft.getAttribute(this._getMetaKeyMap(mn))===_t[mn])}_getMetaKeyMap(_t){return vt[_t]||_t}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(o.qQ))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac,providedIn:"root"})),mt})();const vt={httpEquiv:"http-equiv"};let Tt=(()=>{var Qt;class mt{constructor(_t){(0,u.A)(this,"_doc",void 0),this._doc=_t}getTitle(){return this._doc.title}setTitle(_t){this._doc.title=_t||""}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(o.qQ))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac,providedIn:"root"})),mt})(),ft=(()=>{var Qt;class mt{}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:function(_t){let Ft=null;return Ft=_t?new(_t||Qt):v.KVO(Ht),Ft},providedIn:"root"})),mt})(),Ht=(()=>{var Qt;class mt extends ft{constructor(_t){super(),(0,u.A)(this,"_doc",void 0),this._doc=_t}sanitize(_t,Ft){if(null==Ft)return null;switch(_t){case v.WPN.NONE:return Ft;case v.WPN.HTML:return(0,v.ZF7)(Ft,"HTML")?(0,v.rcV)(Ft):(0,v.h9k)(this._doc,String(Ft)).toString();case v.WPN.STYLE:return(0,v.ZF7)(Ft,"Style")?(0,v.rcV)(Ft):Ft;case v.WPN.SCRIPT:if((0,v.ZF7)(Ft,"Script"))return(0,v.rcV)(Ft);throw new v.wOt(5200,!1);case v.WPN.URL:return(0,v.ZF7)(Ft,"URL")?(0,v.rcV)(Ft):(0,v.$MX)(String(Ft));case v.WPN.RESOURCE_URL:if((0,v.ZF7)(Ft,"ResourceURL"))return(0,v.rcV)(Ft);throw new v.wOt(5201,!1);default:throw new v.wOt(5202,!1)}}bypassSecurityTrustHtml(_t){return(0,v.Kcf)(_t)}bypassSecurityTrustStyle(_t){return(0,v.cWb)(_t)}bypassSecurityTrustScript(_t){return(0,v.UyX)(_t)}bypassSecurityTrustUrl(_t){return(0,v.osQ)(_t)}bypassSecurityTrustResourceUrl(_t){return(0,v.e5t)(_t)}}return Qt=mt,(0,u.A)(mt,"\u0275fac",function(_t){return new(_t||Qt)(v.KVO(o.qQ))}),(0,u.A)(mt,"\u0275prov",v.jDH({token:Qt,factory:Qt.\u0275fac,providedIn:"root"})),mt})();var Zt=function(Qt){return Qt[Qt.NoHttpTransferCache=0]="NoHttpTransferCache",Qt[Qt.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",Qt[Qt.I18nSupport=2]="I18nSupport",Qt[Qt.EventReplay=3]="EventReplay",Qt[Qt.IncrementalHydration=4]="IncrementalHydration",Qt}(Zt||{});function Vt(Qt,mt=[],Ut={}){return{\u0275kind:Qt,\u0275providers:mt}}function gt(){return Vt(Zt.NoHttpTransferCache)}function dn(){return Vt(Zt.IncrementalHydration,(0,v.C1y)())}function Hn(...Qt){const mt=[],Ut=new Set,_t=Ut.has(Zt.HttpTransferCacheOptions);for(const{\u0275providers:Ft,\u0275kind:mn}of Qt)Ut.add(mn),Ft.length&&mt.push(Ft);
1return(0,v.EmA)([[],(0,v.M8M)(),Ut.has(Zt.NoHttpTransferCache)||_t?[]:(0,O.$m)({}),mt])}},3331:(le,E,d)=>{"use strict";d.d(E,{nX:()=>At,_d:()=>Mi,wF:()=>di,Z:()=>Vi,Xk:()=>H,bw:()=>Br,b:()=>it,Ix:()=>kr,iI:()=>vs,n3:()=>wo,OY:()=>si});var p=d(9379),u=d(1660),o=d(3953),v=d(4402),O=d(9724),x=d(7673),U=d(4412),Q=d(4572),re=d(9350),be=d(8793),ue=d(1985),X=d(8750);function ne(M){return new ue.c(N=>{(0,X.Tg)(M()).subscribe(N)})}var te=d(1203),$=d(8810),J=d(983),se=d(8359),De=d(9974),Ce=d(4360);function ce(){return(0,De.N)((M,N)=>{let ie=null;M._refCount++;const L=(0,Ce._)(N,void 0,void 0,void 0,()=>{if(!M||M._refCount<=0||0<--M._refCount)return void(ie=null);const ae=M._connection,Le=ie;ie=null,ae&&(!Le||ae===Le)&&ae.unsubscribe(),N.unsubscribe()});M.subscribe(L),L.closed||(ie=M.connect())})}class _ extends ue.c{constructor(N,ie){super(),this.source=N,this.subjectFactory=ie,this._subject=null,this._refCount=0,this._connection=null,(0,De.S)(N)&&(this.lift=N.lift)}_subscribe(N){return this.getSubject().subscribe(N)}getSubject(){const N=this._subject;return(!N||N.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:N}=this;this._subject=this._connection=null,null==N||N.unsubscribe()}connect(){let N=this._connection;if(!N){N=this._connection=new se.yU;const ie=this.getSubject();N.add(this.source.subscribe((0,Ce._)(ie,void 0,()=>{this._teardown(),ie.complete()},L=>{this._teardown(),ie.error(L)},()=>this._teardown()))),N.closed&&(this._connection=null,N=se.yU.EMPTY)}return N}refCount(){return ce()(this)}}var R=d(1413),w=d(177),B=d(6354),z=d(5558),oe=d(6697),V=d(9172),k=d(5964),K=d(1397),ge=d(1594),ve=d(274),Fe=d(8141),We=d(9437),ze=d(2816),bt=d(9901);function Ke(M){return M<=0?()=>J.w:(0,De.N)((N,ie)=>{let L=[];N.subscribe((0,Ce._)(ie,ae=>{L.push(ae),M<L.length&&L.shift()},()=>{for(const ae of L)ie.next(ae);ie.complete()},void 0,()=>{L=null}))})}
1var Me=d(3774),tt=d(3669),ot=d(980),je=d(6977),fe=d(6365),D=d(345);const H="primary",Se=Symbol("RouteTitle");class Ue{constructor(N){(0,u.A)(this,"params",void 0),this.params=N||{}}has(N){return Object.prototype.hasOwnProperty.call(this.params,N)}get(N){if(this.has(N)){const ie=this.params[N];return Array.isArray(ie)?ie[0]:ie}return null}getAll(N){if(this.has(N)){const ie=this.params[N];return Array.isArray(ie)?ie:[ie]}return[]}get keys(){return Object.keys(this.params)}}function at(M){return new Ue(M)}function hn(M,N,ie){const L=ie.path.split("/");if(L.length>M.length||"full"===ie.pathMatch&&(N.hasChildren()||L.length<M.length))return null;const ae={};for(let Le=0;Le<L.length;Le++){const $e=L[Le],Yt=M[Le];if(":"===$e[0])ae[$e.substring(1)]=Yt;else if($e!==Yt.path)return null}return{consumed:M.slice(0,L.length),posParams:ae}}function et(M,N){const ie=M?G(M):void 0,L=N?G(N):void 0;if(!ie||!L||ie.length!=L.length)return!1;let ae;for(let Le=0;Le<ie.length;Le++)if(ae=ie[Le],!_e(M[ae],N[ae]))return!1;return!0}function G(M){return[...Object.keys(M),...Object.getOwnPropertySymbols(M)]}function _e(M,N){if(Array.isArray(M)&&Array.isArray(N)){if(M.length!==N.length)return!1;const ie=[...M].sort(),L=[...N].sort();return ie.every((ae,Le)=>L[Le]===ae)}return M===N}function Te(M){return M.length>0?M[M.length-1]:null}function P(M){return(0,v.A)(M)?M:(0,o.jNT)(M)?(0,O.H)(Promise.resolve(M)):(0,x.of)(M)}const F={exact:function vt(M,N,ie){if(!qe(M.segments,N.segments)||!Dn(M.segments,N.segments,ie)||M.numberOfChildren!==N.numberOfChildren)return!1;for(const L in N.children)if(!M.children[L]||!vt(M.children[L],N.children[L],ie))return!1;return!0},subset:Dt},de={exact:function Oe(M,N){return et(M,N)},subset:function Tt(M,N){return Object.keys(N).length<=Object.keys(M).length&&Object.keys(N).every(ie=>_e(M[ie],N[ie]))},ignored:()=>!0};function Ae(M,N,ie){return F[ie.paths](M.root,N.root,ie.matrixParams)&&de[ie.queryParams](M.queryParams,N.queryParams)&&!("exact"===ie.fragment&&M.fragment!==N.fragment)}function Dt(M,N,ie){return en(M,N,N.segments,ie)}function en(M,N,ie,L){if(M.segments.length>ie.length){const ae=M.segments.slice(0,ie.length);return!(!qe(ae,ie)||N.hasChildren()||!Dn(ae,ie,L))}if(M.segments.length===ie.length){if(!qe(M.segments,ie)||!Dn(M.segments,ie,L))return!1;for(const ae in N.children)if(!M.children[ae]||!Dt(M.children[ae],N.children[ae],L))return!1;return!0}{const ae=ie.slice(0,M.segments.length),Le=ie.slice(M.segments.length);return!!(qe(M.segments,ae)&&Dn(M.segments,ae,L)&&M.children[H])&&en(M.children[H],N,Le,L)}}function Dn(M,N,ie){return N.every((L,ae)=>de[ie](M[ae].parameters,L.parameters))}class Pn{constructor(N=new $n([],{}),ie={},L=null){(0,u.A)(this,"root",void 0),(0,u.A)(this,"queryParams",void 0),(0,u.A)(this,"fragment",void 0),(0,u.A)(this,"_queryParamMap",void 0),this.root=N,this.queryParams=ie,this.fragment=L}get queryParamMap(){var N;return null!==(N=this._queryParamMap)&&void 0!==N||(this._queryParamMap=at(this.queryParams)),this._queryParamMap}toString(){return yt.serialize(this)}}class $n{constructor(N,ie){(0,u.A)(this,"segments",void 0),(0,u.A)(this,"children",void 0),(0,u.A)(this,"parent",null),this.segments=N,this.children=ie,Object.values(ie).forEach(L=>L.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rt(this)}}class In{constructor(N,ie){(0,u.A)(this,"path",void 0),(0,u.A)(this,"parameters",void 0),(0,u.A)(this,"_parameterMap",void 0),this.path=N,this.parameters=ie}get parameterMap(){var N;return null!==(N=this._parameterMap)&&void 0!==N||(this._parameterMap=at(this.parameters)),this._parameterMap}toString(){return Ct(this)}}function qe(M,N){return M.length===N.length&&M.every((ie,L)=>ie.path===N[L].path)}let Ie=(()=>{var M;class N{}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:()=>new Ve,providedIn:"root"})),N})();class Ve{parse(N){const ie=new mn(N);return new Pn(ie.parseRootSegment(),ie.parseQueryParams(),ie.parseFragment())}serialize(N){const ie="/".concat(zt(N.root,!0)),L=function dn(M){const N=Object.entries(M).map(([ie,L])=>Array.isArray(L)?L.map(ae=>"".concat(Ht(ie),"=").concat(Ht(ae))).join("&"):"".concat(Ht(ie),"=").concat(Ht(L))).filter(ie=>ie);return N.length?"?".concat(N.join("&")):""}(N.queryParams),ae="string"==typeof N.fragment?"#".concat(function Zt(M){return encodeURI(M)}(N.fragment)):"";return"".concat(ie).concat(L).concat(ae)}}const yt=new Ve;function Rt(M){return M.segments.map(N=>Ct(N)).join("/")}
1function zt(M,N){if(!M.hasChildren())return Rt(M);if(N){const ie=M.children[H]?zt(M.children[H],!1):"",L=[];return Object.entries(M.children).forEach(([ae,Le])=>{ae!==H&&L.push("".concat(ae,":").concat(zt(Le,!1)))}),L.length>0?"".concat(ie,"(").concat(L.join("//"),")"):ie}{const ie=function Kt(M,N){let ie=[];return Object.entries(M.children).forEach(([L,ae])=>{L===H&&(ie=ie.concat(N(ae,L)))}),Object.entries(M.children).forEach(([L,ae])=>{L!==H&&(ie=ie.concat(N(ae,L)))}),ie}(M,(L,ae)=>ae===H?[zt(M.children[H],!1)]:["".concat(ae,":").concat(zt(L,!1))]);return 1===Object.keys(M.children).length&&null!=M.children[H]?"".concat(Rt(M),"/").concat(ie[0]):"".concat(Rt(M),"/(").concat(ie.join("//"),")")}}function ft(M){return encodeURIComponent(M).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ht(M){return ft(M).replace(/%3B/gi,";")}function Vt(M){return ft(M).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gt(M){return decodeURIComponent(M)}function dt(M){return gt(M.replace(/\+/g,"%20"))}function Ct(M){return"".concat(Vt(M.path)).concat(function Et(M){return Object.entries(M).map(([N,ie])=>";".concat(Vt(N),"=").concat(Vt(ie))).join("")}(M.parameters))}const Bn=/^[^\/()?;#]+/;function Hn(M){const N=M.match(Bn);return N?N[0]:""}const Cr=/^[^\/()?;=#]+/,mt=/^[^=?&#]+/,_t=/^[^&#]+/;class mn{constructor(N){(0,u.A)(this,"url",void 0),(0,u.A)(this,"remaining",void 0),this.url=N,this.remaining=N}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $n([],{}):new $n([],this.parseChildren())}parseQueryParams(){const N={};if(this.consumeOptional("?"))do{this.parseQueryParam(N)}while(this.consumeOptional("&"));return N}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const N=[];for(this.peekStartsWith("(")||N.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),N.push(this.parseSegment());let ie={};this.peekStartsWith("/(")&&(this.capture("/"),ie=this.parseParens(!0));let L={};return this.peekStartsWith("(")&&(L=this.parseParens(!1)),(N.length>0||Object.keys(ie).length>0)&&(L[H]=new $n(N,ie)),L}parseSegment(){const N=Hn(this.remaining);if(""===N&&this.peekStartsWith(";"))throw new o.wOt(4009,!1);return this.capture(N),new In(gt(N),this.parseMatrixParams())}parseMatrixParams(){const N={};for(;this.consumeOptional(";");)this.parseParam(N);return N}parseParam(N){const ie=function Qt(M){const N=M.match(Cr);return N?N[0]:""}(this.remaining);if(!ie)return;this.capture(ie);let L="";if(this.consumeOptional("=")){const ae=Hn(this.remaining);ae&&(L=ae,this.capture(L))}N[gt(ie)]=gt(L)}parseQueryParam(N){const ie=function Ut(M){const N=M.match(mt);return N?N[0]:""}(this.remaining);if(!ie)return;this.capture(ie);let L="";if(this.consumeOptional("=")){const $e=function Ft(M){const N=M.match(_t);return N?N[0]:""}(this.remaining);$e&&(L=$e,this.capture(L))}const ae=dt(ie),Le=dt(L);if(N.hasOwnProperty(ae)){let $e=N[ae];Array.isArray($e)||($e=[$e],N[ae]=$e),$e.push(Le)}else N[ae]=Le}parseParens(N){const ie={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const L=Hn(this.remaining),ae=this.remaining[L.length];if("/"!==ae&&")"!==ae&&";"!==ae)throw new o.wOt(4010,!1);let Le;L.indexOf(":")>-1?(Le=L.slice(0,L.indexOf(":")),this.capture(Le),this.capture(":")):N&&(Le=H);const $e=this.parseChildren();ie[Le]=1===Object.keys($e).length?$e[H]:new $n([],$e),this.consumeOptional("//")}return ie}peekStartsWith(N){return this.remaining.startsWith(N)}consumeOptional(N){return!!this.peekStartsWith(N)&&(this.remaining=this.remaining.substring(N.length),!0)}capture(N){if(!this.consumeOptional(N))throw new o.wOt(4011,!1)}}function jn(M){return M.segments.length>0?new $n([],{[H]:M}):M}function Jn(M){const N={};for(const[L,ae]of Object.entries(M.children)){const Le=Jn(ae);if(L===H&&0===Le.segments.length&&Le.hasChildren())for(const[$e,Yt]of Object.entries(Le.children))N[$e]=Yt;else(Le.segments.length>0||Le.hasChildren())&&(N[L]=Le)}return function fr(M){if(1===M.numberOfChildren&&M.children[H]){const N=M.children[H];return new $n(M.segments.concat(N.segments),N.children)}return M}(new $n(M.segments,N))}function br(M){return M instanceof Pn}function Qr(M){let N;const ae=jn(function ie(Le){const $e={};for(const yn of Le.children){const tn=ie(yn);$e[yn.outlet]=tn}const Yt=new $n(Le.url,$e);return Le===M&&(N=Yt),Yt}(M.root));return null!=N?N:ae}function Ti(M,N,ie,L){let ae=M;for(;ae.parent;)ae=ae.parent;if(0===N.length)return zi(ae,ae,ae,ie,L);const Le=function no(M){if("string"==typeof M[0]&&1===M.length&&"/"===M[0])return new uo(!0,0,M);let N=0,ie=!1;const L=M.reduce((ae,Le,$e)=>{if("object"==typeof Le&&null!=Le){if(Le.outlets){const Yt={};
1return Object.entries(Le.outlets).forEach(([yn,tn])=>{Yt[yn]="string"==typeof tn?tn.split("/"):tn}),[...ae,{outlets:Yt}]}if(Le.segmentPath)return[...ae,Le.segmentPath]}return"string"!=typeof Le?[...ae,Le]:0===$e?(Le.split("/").forEach((Yt,yn)=>{0==yn&&"."===Yt||(0==yn&&""===Yt?ie=!0:".."===Yt?N++:""!=Yt&&ae.push(Yt))}),ae):[...ae,Le]},[]);return new uo(ie,N,L)}(N);if(Le.toRoot())return zi(ae,ae,new $n([],{}),ie,L);const $e=function Ze(M,N,ie){if(M.isAbsolute)return new sn(N,!0,0);if(!ie)return new sn(N,!1,NaN);if(null===ie.parent)return new sn(ie,!0,0);const L=Ui(M.commands[0])?0:1;return function Mt(M,N,ie){let L=M,ae=N,Le=ie;for(;Le>ae;){if(Le-=ae,L=L.parent,!L)throw new o.wOt(4005,!1);ae=L.segments.length}return new sn(L,!1,ae-Le)}(ie,ie.segments.length-1+L,M.numberOfDoubleDots)}(Le,ae,M),Yt=$e.processChildren?Cn($e.segmentGroup,$e.index,Le.commands):Xt($e.segmentGroup,$e.index,Le.commands);return zi(ae,$e.segmentGroup,Yt,ie,L)}function Ui(M){return"object"==typeof M&&null!=M&&!M.outlets&&!M.segmentPath}function ui(M){return"object"==typeof M&&null!=M&&M.outlets}function zi(M,N,ie,L,ae){let $e,Le={};L&&Object.entries(L).forEach(([yn,tn])=>{Le[yn]=Array.isArray(tn)?tn.map(pn=>"".concat(pn)):"".concat(tn)}),$e=M===N?ie:Bo(M,N,ie);const Yt=jn(Jn($e));return new Pn(Yt,Le,ae)}function Bo(M,N,ie){const L={};return Object.entries(M.children).forEach(([ae,Le])=>{L[ae]=Le===N?ie:Bo(Le,N,ie)}),new $n(M.segments,L)}class uo{constructor(N,ie,L){if((0,u.A)(this,"isAbsolute",void 0),(0,u.A)(this,"numberOfDoubleDots",void 0),(0,u.A)(this,"commands",void 0),this.isAbsolute=N,this.numberOfDoubleDots=ie,this.commands=L,N&&L.length>0&&Ui(L[0]))throw new o.wOt(4003,!1);const ae=L.find(ui);if(ae&&ae!==Te(L))throw new o.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class sn{constructor(N,ie,L){(0,u.A)(this,"segmentGroup",void 0),(0,u.A)(this,"processChildren",void 0),(0,u.A)(this,"index",void 0),this.segmentGroup=N,this.processChildren=ie,this.index=L}}function Xt(M,N,ie){if(null!=M||(M=new $n([],{})),0===M.segments.length&&M.hasChildren())return Cn(M,N,ie);const L=function un(M,N,ie){let L=0,ae=N;const Le={match:!1,pathIndex:0,commandIndex:0};for(;ae<M.segments.length;){if(L>=ie.length)return Le;const $e=M.segments[ae],Yt=ie[L];if(ui(Yt))break;const yn="".concat(Yt),tn=L<ie.length-1?ie[L+1]:null;if(ae>0&&void 0===yn)break;if(yn&&tn&&"object"==typeof tn&&void 0===tn.outlets){if(!co(yn,tn,$e))return Le;L+=2}else{if(!co(yn,{},$e))return Le;L++}ae++}return{match:!0,pathIndex:ae,commandIndex:L}}(M,N,ie),ae=ie.slice(L.commandIndex);if(L.match&&L.pathIndex<M.segments.length){const Le=new $n(M.segments.slice(0,L.pathIndex),{});return Le.children[H]=new $n(M.segments.slice(L.pathIndex),M.children),Cn(Le,0,ae)}return L.match&&0===ae.length?new $n(M.segments,{}):L.match&&!M.hasChildren()?ir(M,N,ie):L.match?Cn(M,0,ae):ir(M,N,ie)}function Cn(M,N,ie){if(0===ie.length)return new $n(M.segments,{});{const L=function pt(M){return ui(M[0])?M[0].outlets:{[H]:M}}(ie),ae={};if(Object.keys(L).some(Le=>Le!==H)&&M.children[H]&&1===M.numberOfChildren&&0===M.children[H].segments.length){const Le=Cn(M.children[H],N,ie);return new $n(M.segments,Le.children)}return Object.entries(L).forEach(([Le,$e])=>{"string"==typeof $e&&($e=[$e]),null!==$e&&(ae[Le]=Xt(M.children[Le],N,$e))}),Object.entries(M.children).forEach(([Le,$e])=>{void 0===L[Le]&&(ae[Le]=$e)}),new $n(M.segments,ae)}}function ir(M,N,ie){const L=M.segments.slice(0,N);let ae=0;for(;ae<ie.length;){const Le=ie[ae];if(ui(Le)){const yn=vr(Le.outlets);return new $n(L,yn)}if(0===ae&&Ui(ie[0])){L.push(new In(M.segments[N].path,Si(ie[0]))),ae++;continue}const $e=ui(Le)?Le.outlets[H]:"".concat(Le),Yt=ae<ie.length-1?ie[ae+1]:null;$e&&Yt&&Ui(Yt)?(L.push(new In($e,Si(Yt))),ae+=2):(L.push(new In($e,{})),ae++)}return new $n(L,{})}function vr(M){const N={};return Object.entries(M).forEach(([ie,L])=>{"string"==typeof L&&(L=[L]),null!==L&&(N[ie]=ir(new $n([],{}),0,L))}),N}function Si(M){const N={};return Object.entries(M).forEach(([ie,L])=>N[ie]="".concat(L)),N}function co(M,N,ie){return M==ie.path&&et(N,ie.parameters)}const Qi="imperative";var Dr=function(M){return M[M.NavigationStart=0]="NavigationStart",M[M.NavigationEnd=1]="NavigationEnd",M[M.NavigationCancel=2]="NavigationCancel",M[M.NavigationError=3]="NavigationError",M[M.RoutesRecognized=4]="RoutesRecognized",M[M.ResolveStart=5]="ResolveStart",M[M.ResolveEnd=6]="ResolveEnd",M[M.GuardsCheckStart=7]="GuardsCheckStart",M[M.GuardsCheckEnd=8]="GuardsCheckEnd",M[M.RouteConfigLoadStart=9]="RouteConfigLoadStart",M[M.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",M[M.ChildActivationStart=11]="ChildActivationStart",M[M.ChildActivationEnd=12]="ChildActivationEnd",M[M.ActivationStart=13]="ActivationStart",M[M.ActivationEnd=14]="ActivationEnd",M[M.Scroll=15]="Scroll",M[M.NavigationSkipped=16]="NavigationSkipped",M}(Dr||{});class ci{constructor(N,ie){(0,u.A)(this,"id",void 0),(0,u.A)(this,"url",void 0),this.id=N,this.url=ie}}class Vi extends ci{constructor(N,ie,L="imperative",ae=null){super(N,ie),(0,u.A)(this,"type",Dr.NavigationStart),
1(0,u.A)(this,"navigationTrigger",void 0),(0,u.A)(this,"restoredState",void 0),this.navigationTrigger=L,this.restoredState=ae}toString(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}class di extends ci{constructor(N,ie,L){super(N,ie),(0,u.A)(this,"urlAfterRedirects",void 0),(0,u.A)(this,"type",Dr.NavigationEnd),this.urlAfterRedirects=L}toString(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}var $r=function(M){return M[M.Redirect=0]="Redirect",M[M.SupersededByNewNavigation=1]="SupersededByNewNavigation",M[M.NoDataFromResolver=2]="NoDataFromResolver",M[M.GuardRejected=3]="GuardRejected",M}($r||{}),gi=function(M){return M[M.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",M[M.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",M}(gi||{});class ei extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"reason",void 0),(0,u.A)(this,"code",void 0),(0,u.A)(this,"type",Dr.NavigationCancel),this.reason=L,this.code=ae}toString(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}class $i extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"reason",void 0),(0,u.A)(this,"code",void 0),(0,u.A)(this,"type",Dr.NavigationSkipped),this.reason=L,this.code=ae}}class Ge extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"error",void 0),(0,u.A)(this,"target",void 0),(0,u.A)(this,"type",Dr.NavigationError),this.error=L,this.target=ae}toString(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}class ht extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"urlAfterRedirects",void 0),(0,u.A)(this,"state",void 0),(0,u.A)(this,"type",Dr.RoutesRecognized),this.urlAfterRedirects=L,this.state=ae}toString(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Jt extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"urlAfterRedirects",void 0),(0,u.A)(this,"state",void 0),(0,u.A)(this,"type",Dr.GuardsCheckStart),this.urlAfterRedirects=L,this.state=ae}toString(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Bt extends ci{constructor(N,ie,L,ae,Le){super(N,ie),(0,u.A)(this,"urlAfterRedirects",void 0),(0,u.A)(this,"state",void 0),(0,u.A)(this,"shouldActivate",void 0),(0,u.A)(this,"type",Dr.GuardsCheckEnd),this.urlAfterRedirects=L,this.state=ae,this.shouldActivate=Le}toString(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}class Mn extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"urlAfterRedirects",void 0),(0,u.A)(this,"state",void 0),(0,u.A)(this,"type",Dr.ResolveStart),this.urlAfterRedirects=L,this.state=ae}toString(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Nn extends ci{constructor(N,ie,L,ae){super(N,ie),(0,u.A)(this,"urlAfterRedirects",void 0),(0,u.A)(this,"state",void 0),(0,u.A)(this,"type",Dr.ResolveEnd),this.urlAfterRedirects=L,this.state=ae}toString(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}class Gn{constructor(N){(0,u.A)(this,"route",void 0),(0,u.A)(this,"type",Dr.RouteConfigLoadStart),this.route=N}toString(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}class Wn{constructor(N){(0,u.A)(this,"route",void 0),(0,u.A)(this,"type",Dr.RouteConfigLoadEnd),this.route=N}toString(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}class _r{constructor(N){(0,u.A)(this,"snapshot",void 0),(0,u.A)(this,"type",Dr.ChildActivationStart),this.snapshot=N}toString(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class or{constructor(N){(0,u.A)(this,"snapshot",void 0),(0,u.A)(this,"type",Dr.ChildActivationEnd),this.snapshot=N}toString(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class ar{constructor(N){(0,u.A)(this,"snapshot",void 0),(0,u.A)(this,"type",Dr.ActivationStart),this.snapshot=N}toString(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class Mi{constructor(N){(0,u.A)(this,"snapshot",void 0),(0,u.A)(this,"type",Dr.ActivationEnd),this.snapshot=N}toString(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}class si{constructor(N,ie,L){(0,u.A)(this,"routerEvent",void 0),(0,u.A)(this,"position",void 0),(0,u.A)(this,"anchor",void 0),(0,u.A)(this,"type",Dr.Scroll),this.routerEvent=N,this.position=ie,this.anchor=L}toString(){const N=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(N,"')")}}class oi{}class Gr{constructor(N,ie){(0,u.A)(this,"url",void 0),(0,u.A)(this,"navigationBehaviorOptions",void 0),this.url=N,this.navigationBehaviorOptions=ie}}function Tr(M){return M.outlet||H}function h(M){var N;if(!M)return null;
1if(null!==(N=M.routeConfig)&&void 0!==N&&N._injector)return M.routeConfig._injector;for(let ie=M.parent;ie;ie=ie.parent){const L=ie.routeConfig;if(null!=L&&L._loadedInjector)return L._loadedInjector;if(null!=L&&L._injector)return L._injector}return null}class S{get injector(){var N,ie;return null!==(N=h(null===(ie=this.route)||void 0===ie?void 0:ie.snapshot))&&void 0!==N?N:this.rootInjector}constructor(N){(0,u.A)(this,"rootInjector",void 0),(0,u.A)(this,"outlet",null),(0,u.A)(this,"route",null),(0,u.A)(this,"children",void 0),(0,u.A)(this,"attachRef",null),this.rootInjector=N,this.children=new me(this.rootInjector)}}let me=(()=>{var M;class N{constructor(L){(0,u.A)(this,"rootInjector",void 0),(0,u.A)(this,"contexts",new Map),this.rootInjector=L}onChildOutletCreated(L,ae){const Le=this.getOrCreateContext(L);Le.outlet=ae,this.contexts.set(L,Le)}onChildOutletDestroyed(L){const ae=this.getContext(L);ae&&(ae.outlet=null,ae.attachRef=null)}onOutletDeactivated(){const L=this.contexts;return this.contexts=new Map,L}onOutletReAttached(L){this.contexts=L}getOrCreateContext(L){let ae=this.getContext(L);return ae||(ae=new S(this.rootInjector),this.contexts.set(L,ae)),ae}getContext(L){return this.contexts.get(L)||null}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)(o.KVO(o.uvJ))}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();class Pe{constructor(N){(0,u.A)(this,"_root",void 0),this._root=N}get root(){return this._root.value}parent(N){const ie=this.pathFromRoot(N);return ie.length>1?ie[ie.length-2]:null}children(N){const ie=rt(N,this._root);return ie?ie.children.map(L=>L.value):[]}firstChild(N){const ie=rt(N,this._root);return ie&&ie.children.length>0?ie.children[0].value:null}siblings(N){const ie=$t(N,this._root);return ie.length<2?[]:ie[ie.length-2].children.map(ae=>ae.value).filter(ae=>ae!==N)}pathFromRoot(N){return $t(N,this._root).map(ie=>ie.value)}}function rt(M,N){if(M===N.value)return N;for(const ie of N.children){const L=rt(M,ie);if(L)return L}return null}function $t(M,N){if(M===N.value)return[N];for(const ie of N.children){const L=$t(M,ie);if(L.length)return L.unshift(N),L}return[]}class Wt{constructor(N,ie){(0,u.A)(this,"value",void 0),(0,u.A)(this,"children",void 0),this.value=N,this.children=ie}toString(){return"TreeNode(".concat(this.value,")")}}function Fn(M){const N={};return M&&M.children.forEach(ie=>N[ie.value.outlet]=ie),N}class Vn extends Pe{constructor(N,ie){super(N),(0,u.A)(this,"snapshot",void 0),this.snapshot=ie,nr(this,N)}toString(){return this.snapshot.toString()}}function Be(M){const N=function Ot(M){const Le=new jt([],{},{},"",{},H,M,null,{});return new vn("",new Wt(Le,[]))}(M),ie=new U.t([new In("",{})]),L=new U.t({}),ae=new U.t({}),Le=new U.t({}),$e=new U.t(""),Yt=new At(ie,L,Le,$e,ae,H,M,N.root);return Yt.snapshot=N.root,new Vn(new Wt(Yt,[]),N)}class At{constructor(N,ie,L,ae,Le,$e,Yt,yn){var tn,pn;(0,u.A)(this,"urlSubject",void 0),(0,u.A)(this,"paramsSubject",void 0),(0,u.A)(this,"queryParamsSubject",void 0),(0,u.A)(this,"fragmentSubject",void 0),(0,u.A)(this,"dataSubject",void 0),(0,u.A)(this,"outlet",void 0),(0,u.A)(this,"component",void 0),(0,u.A)(this,"snapshot",void 0),(0,u.A)(this,"_futureSnapshot",void 0),(0,u.A)(this,"_routerState",void 0),(0,u.A)(this,"_paramMap",void 0),(0,u.A)(this,"_queryParamMap",void 0),(0,u.A)(this,"title",void 0),(0,u.A)(this,"url",void 0),(0,u.A)(this,"params",void 0),(0,u.A)(this,"queryParams",void 0),(0,u.A)(this,"fragment",void 0),(0,u.A)(this,"data",void 0),this.urlSubject=N,this.paramsSubject=ie,this.queryParamsSubject=L,this.fragmentSubject=ae,this.dataSubject=Le,this.outlet=$e,this.component=Yt,this._futureSnapshot=yn,this.title=null!==(tn=null===(pn=this.dataSubject)||void 0===pn?void 0:pn.pipe((0,B.T)(hr=>hr[Se])))&&void 0!==tn?tn:(0,x.of)(void 0),this.url=N,this.params=ie,this.queryParams=L,this.fragment=ae,this.data=Le}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var N;return null!==(N=this._paramMap)&&void 0!==N||(this._paramMap=this.params.pipe((0,B.T)(ie=>at(ie)))),this._paramMap}get queryParamMap(){var N;return null!==(N=this._queryParamMap)&&void 0!==N||(this._queryParamMap=this.queryParams.pipe((0,B.T)(ie=>at(ie)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}function st(M,N,ie="emptyOnly"){var L;let ae;const{routeConfig:Le}=M;var $e;return ae=null===N||"always"!==ie&&""!==(null==Le?void 0:Le.path)&&(N.component||null!==(L=N.routeConfig)&&void 0!==L&&L.loadComponent)?{params:(0,p.A)({},M.params),data:(0,p.A)({},M.data),resolve:(0,p.A)((0,p.A)({},M.data),null!==($e=M._resolvedData)&&void 0!==$e?$e:{})}:{params:(0,p.A)((0,p.A)({},N.params),M.params),data:(0,p.A)((0,p.A)({},N.data),M.data),resolve:(0,p.A)((0,p.A)((0,p.A)((0,p.A)({},M.data),N.data),null==Le?void 0:Le.data),M._resolvedData)},Le&&is(Le)&&(ae.resolve[Se]=Le.title),ae}class jt{get title(){var N;return null===(N=this.data)||void 0===N?void 0:N[Se]}constructor(N,ie,L,ae,Le,$e,Yt,yn,tn){(0,u.A)(this,"url",void 0),(0,u.A)(this,"params",void 0),(0,u.A)(this,"queryParams",void 0),(0,u.A)(this,"fragment",void 0),(0,u.A)(this,"data",void 0),(0,u.A)(this,"outlet",void 0),(0,u.A)(this,"component",void 0),(0,u.A)(this,"routeConfig",void 0),(0,u.A)(this,"_resolve",void 0),(0,u.A)(this,"_resolvedData",void 0),(0,u.A)(this,"_routerState",void 0),(0,u.A)(this,"_paramMap",void 0),(0,u.A)(this,"_queryParamMap",void 0),this.url=N,this.params=ie,this.queryParams=L,this.fragment=ae,this.data=Le,this.outlet=$e,this.component=Yt,this.routeConfig=yn,this._resolve=tn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var N;return null!==(N=this._paramMap)&&void 0!==N||(this._paramMap=at(this.params)),this._paramMap}get queryParamMap(){var N;return null!==(N=this._queryParamMap)&&void 0!==N||(this._queryParamMap=at(this.queryParams)),this._queryParamMap}toString(){const N=this.url.map(L=>L.toString()).join("/"),ie=this.routeConfig?this.routeConfig.path:"";
1return"Route(url:'".concat(N,"', path:'").concat(ie,"')")}}class vn extends Pe{constructor(N,ie){super(ie),(0,u.A)(this,"url",void 0),this.url=N,nr(this,ie)}toString(){return Xr(this._root)}}function nr(M,N){N.value._routerState=M,N.children.forEach(ie=>nr(M,ie))}function Xr(M){const N=M.children.length>0?" { ".concat(M.children.map(Xr).join(", ")," } "):"";return"".concat(M.value).concat(N)}function Lr(M){if(M.snapshot){const N=M.snapshot,ie=M._futureSnapshot;M.snapshot=ie,et(N.queryParams,ie.queryParams)||M.queryParamsSubject.next(ie.queryParams),N.fragment!==ie.fragment&&M.fragmentSubject.next(ie.fragment),et(N.params,ie.params)||M.paramsSubject.next(ie.params),function ln(M,N){if(M.length!==N.length)return!1;for(let ie=0;ie<M.length;++ie)if(!et(M[ie],N[ie]))return!1;return!0}(N.url,ie.url)||M.urlSubject.next(ie.url),et(N.data,ie.data)||M.dataSubject.next(ie.data)}else M.snapshot=M._futureSnapshot,M.dataSubject.next(M._futureSnapshot.data)}function ro(M,N){const ie=et(M.params,N.params)&&function xt(M,N){return qe(M,N)&&M.every((ie,L)=>et(ie.parameters,N[L].parameters))}(M.url,N.url);return ie&&!(!M.parent!=!N.parent)&&(!M.parent||ro(M.parent,N.parent))}function is(M){return"string"==typeof M.title||null===M.title}const Xo=new o.nKC("");let wo=(()=>{var M;class N{constructor(){(0,u.A)(this,"activated",null),(0,u.A)(this,"_activatedRoute",null),(0,u.A)(this,"name",H),(0,u.A)(this,"activateEvents",new o.bkB),(0,u.A)(this,"deactivateEvents",new o.bkB),(0,u.A)(this,"attachEvents",new o.bkB),(0,u.A)(this,"detachEvents",new o.bkB),(0,u.A)(this,"routerOutletData",(0,o.hFB)(void 0)),(0,u.A)(this,"parentContexts",(0,o.WQX)(me)),(0,u.A)(this,"location",(0,o.WQX)(o.c1b)),(0,u.A)(this,"changeDetector",(0,o.WQX)(o.gRc)),(0,u.A)(this,"inputBinder",(0,o.WQX)(jo,{optional:!0})),(0,u.A)(this,"supportsBindingToComponentInputs",!0)}get activatedComponentRef(){return this.activated}ngOnChanges(L){if(L.name){const{firstChange:ae,previousValue:Le}=L.name;if(ae)return;this.isTrackedInParentContexts(Le)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Le)),this.initializeOutletWithName()}}ngOnDestroy(){var L;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(L=this.inputBinder)||void 0===L||L.unsubscribeFromRouteData(this)}isTrackedInParentContexts(L){var ae;return(null===(ae=this.parentContexts.getContext(L))||void 0===ae?void 0:ae.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const L=this.parentContexts.getContext(this.name);null!=L&&L.route&&(L.attachRef?this.attach(L.attachRef,L.route):this.activateWith(L.route,L.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.wOt(4012,!1);this.location.detach();const L=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(L.instance),L}attach(L,ae){var Le;this.activated=L,this._activatedRoute=ae,this.location.insert(L.hostView),null===(Le=this.inputBinder)||void 0===Le||Le.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(L.instance)}deactivate(){if(this.activated){const L=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(L)}}activateWith(L,ae){var Le;if(this.isActivated)throw new o.wOt(4013,!1);this._activatedRoute=L;const $e=this.location,yn=L.snapshot.component,tn=this.parentContexts.getOrCreateContext(this.name).children,pn=new io(L,tn,$e.injector,this.routerOutletData);this.activated=$e.createComponent(yn,{index:$e.length,injector:pn,environmentInjector:ae}),this.changeDetector.markForCheck(),null===(Le=this.inputBinder)||void 0===Le||Le.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275dir",o.FsC({type:M,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[o.OA$]})),N})();class io{__ngOutletInjector(N){return new io(this.route,this.childContexts,N,this.outletData)}constructor(N,ie,L,ae){(0,u.A)(this,"route",void 0),(0,u.A)(this,"childContexts",void 0),(0,u.A)(this,"parent",void 0),(0,u.A)(this,"outletData",void 0),this.route=N,this.childContexts=ie,this.parent=L,this.outletData=ae}get(N,ie){return N===At?this.route:N===me?this.childContexts:N===Xo?this.outletData:this.parent.get(N,ie)}}const jo=new o.nKC("");let Pa=(()=>{var M;class N{constructor(){(0,u.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(L){this.unsubscribeFromRouteData(L),this.subscribeToRouteData(L)}unsubscribeFromRouteData(L){var ae;null===(ae=this.outletDataSubscriptions.get(L))||void 0===ae||ae.unsubscribe(),this.outletDataSubscriptions.delete(L)}subscribeToRouteData(L){const{activatedRoute:ae}=L,Le=(0,Q.z)([ae.queryParams,ae.params,ae.data]).pipe((0,z.n)(([$e,Yt,yn],tn)=>(yn=(0,p.A)((0,p.A)((0,p.A)({},$e),Yt),yn),0===tn?(0,x.of)(yn):Promise.resolve(yn)))).subscribe($e=>{if(!L.isActivated||!L.activatedComponentRef||L.activatedRoute!==ae||null===ae.component)return void this.unsubscribeFromRouteData(L);const Yt=(0,o.HJs)(ae.component);if(Yt)for(const{templateName:yn}
1of Yt.inputs)L.activatedComponentRef.setInput(yn,$e[yn]);else this.unsubscribeFromRouteData(L)});this.outletDataSubscriptions.set(L,Le)}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac})),N})();function hs(M,N,ie){if(ie&&M.shouldReuseRoute(N.value,ie.value.snapshot)){const L=ie.value;L._futureSnapshot=N.value;const ae=function os(M,N,ie){return N.children.map(L=>{for(const ae of ie.children)if(M.shouldReuseRoute(L.value,ae.value.snapshot))return hs(M,L,ae);return hs(M,L)})}(M,N,ie);return new Wt(L,ae)}{if(M.shouldAttach(N.value)){const Le=M.retrieve(N.value);if(null!==Le){const $e=Le.route;return $e.value._futureSnapshot=N.value,$e.children=N.children.map(Yt=>hs(M,Yt)),$e}}const L=function Ts(M){return new At(new U.t(M.url),new U.t(M.params),new U.t(M.queryParams),new U.t(M.fragment),new U.t(M.data),M.outlet,M.component,M)}(N.value),ae=N.children.map(Le=>hs(M,Le));return new Wt(L,ae)}}class Vs{constructor(N,ie){(0,u.A)(this,"redirectTo",void 0),(0,u.A)(this,"navigationBehaviorOptions",void 0),this.redirectTo=N,this.navigationBehaviorOptions=ie}}const Js="ngNavigationCancelingError";function zn(M,N){const{redirectTo:ie,navigationBehaviorOptions:L}=br(N)?{redirectTo:N,navigationBehaviorOptions:void 0}:N,ae=bo(!1,$r.Redirect);return ae.url=ie,ae.navigationBehaviorOptions=L,ae}function bo(M,N){const ie=new Error("NavigationCancelingError: ".concat(M||""));return ie[Js]=!0,ie.cancellationCode=N,ie}function qs(M){return!!M&&M[Js]}class El{constructor(N,ie,L,ae,Le){(0,u.A)(this,"routeReuseStrategy",void 0),(0,u.A)(this,"futureState",void 0),(0,u.A)(this,"currState",void 0),(0,u.A)(this,"forwardEvent",void 0),(0,u.A)(this,"inputBindingEnabled",void 0),this.routeReuseStrategy=N,this.futureState=ie,this.currState=L,this.forwardEvent=ae,this.inputBindingEnabled=Le}activate(N){const ie=this.futureState._root,L=this.currState?this.currState._root:null;this.deactivateChildRoutes(ie,L,N),Lr(this.futureState.root),this.activateChildRoutes(ie,L,N)}deactivateChildRoutes(N,ie,L){const ae=Fn(ie);N.children.forEach(Le=>{const $e=Le.value.outlet;this.deactivateRoutes(Le,ae[$e],L),delete ae[$e]}),Object.values(ae).forEach(Le=>{this.deactivateRouteAndItsChildren(Le,L)})}deactivateRoutes(N,ie,L){const ae=N.value,Le=ie?ie.value:null;if(ae===Le)if(ae.component){const $e=L.getContext(ae.outlet);$e&&this.deactivateChildRoutes(N,ie,$e.children)}else this.deactivateChildRoutes(N,ie,L);else Le&&this.deactivateRouteAndItsChildren(ie,L)}deactivateRouteAndItsChildren(N,ie){N.value.component&&this.routeReuseStrategy.shouldDetach(N.value.snapshot)?this.detachAndStoreRouteSubtree(N,ie):this.deactivateRouteAndOutlet(N,ie)}detachAndStoreRouteSubtree(N,ie){const L=ie.getContext(N.value.outlet),ae=L&&N.value.component?L.children:ie,Le=Fn(N);for(const $e of Object.values(Le))this.deactivateRouteAndItsChildren($e,ae);if(L&&L.outlet){const $e=L.outlet.detach(),Yt=L.children.onOutletDeactivated();this.routeReuseStrategy.store(N.value.snapshot,{componentRef:$e,route:N,contexts:Yt})}}deactivateRouteAndOutlet(N,ie){const L=ie.getContext(N.value.outlet),ae=L&&N.value.component?L.children:ie,Le=Fn(N);for(const $e of Object.values(Le))this.deactivateRouteAndItsChildren($e,ae);L&&(L.outlet&&(L.outlet.deactivate(),L.children.onOutletDeactivated()),L.attachRef=null,L.route=null)}activateChildRoutes(N,ie,L){const ae=Fn(ie);N.children.forEach(Le=>{this.activateRoutes(Le,ae[Le.value.outlet],L),this.forwardEvent(new Mi(Le.value.snapshot))}),N.children.length&&this.forwardEvent(new or(N.value.snapshot))}activateRoutes(N,ie,L){const ae=N.value,Le=ie?ie.value:null;if(Lr(ae),ae===Le)if(ae.component){const $e=L.getOrCreateContext(ae.outlet);this.activateChildRoutes(N,ie,$e.children)}else this.activateChildRoutes(N,ie,L);else if(ae.component){const $e=L.getOrCreateContext(ae.outlet);if(this.routeReuseStrategy.shouldAttach(ae.snapshot)){const Yt=this.routeReuseStrategy.retrieve(ae.snapshot);this.routeReuseStrategy.store(ae.snapshot,null),$e.children.onOutletReAttached(Yt.contexts),$e.attachRef=Yt.componentRef,$e.route=Yt.route.value,$e.outlet&&$e.outlet.attach(Yt.componentRef,Yt.route.value),Lr(Yt.route.value),this.activateChildRoutes(N,null,$e.children)}else $e.attachRef=null,$e.route=ae,$e.outlet&&$e.outlet.activateWith(ae,$e.injector),this.activateChildRoutes(N,null,$e.children)}else this.activateChildRoutes(N,null,L)}}class To{constructor(N){(0,u.A)(this,"path",void 0),(0,u.A)(this,"route",void 0),this.path=N,this.route=this.path[this.path.length-1]}}class Vo{constructor(N,ie){(0,u.A)(this,"component",void 0),(0,u.A)(this,"route",void 0),this.component=N,this.route=ie}}function ps(M,N,ie){const L=M._root;return Ss(L,N?N._root:null,ie,[L.value])}function gs(M,N){const ie=Symbol(),L=N.get(M,ie);return L===ie?"function"!=typeof M||(0,o.LfX)(M)?N.get(M):M:L}function Ss(M,N,ie,L,ae={canDeactivateChecks:[],canActivateChecks:[]}){const Le=Fn(N);
1return M.children.forEach($e=>{(function Ds(M,N,ie,L,ae={canDeactivateChecks:[],canActivateChecks:[]}){const Le=M.value,$e=N?N.value:null,Yt=ie?ie.getContext(M.value.outlet):null;if($e&&Le.routeConfig===$e.routeConfig){const yn=function Al(M,N,ie){if("function"==typeof ie)return ie(M,N);switch(ie){case"pathParamsChange":return!qe(M.url,N.url);case"pathParamsOrQueryParamsChange":return!qe(M.url,N.url)||!et(M.queryParams,N.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ro(M,N)||!et(M.queryParams,N.queryParams);default:return!ro(M,N)}}($e,Le,Le.routeConfig.runGuardsAndResolvers);yn?ae.canActivateChecks.push(new To(L)):(Le.data=$e.data,Le._resolvedData=$e._resolvedData),Ss(M,N,Le.component?Yt?Yt.children:null:ie,L,ae),yn&&Yt&&Yt.outlet&&Yt.outlet.isActivated&&ae.canDeactivateChecks.push(new Vo(Yt.outlet.component,$e))}else $e&&Di(N,Yt,ae),ae.canActivateChecks.push(new To(L)),Ss(M,null,Le.component?Yt?Yt.children:null:ie,L,ae)})($e,Le[$e.value.outlet],ie,L.concat([$e.value]),ae),delete Le[$e.value.outlet]}),Object.entries(Le).forEach(([$e,Yt])=>Di(Yt,ie.getContext($e),ae)),ae}function Di(M,N,ie){const L=Fn(M),ae=M.value;Object.entries(L).forEach(([Le,$e])=>{Di($e,ae.component?N?N.children.getContext(Le):null:N,ie)}),ie.canDeactivateChecks.push(new Vo(ae.component&&N&&N.outlet&&N.outlet.isActivated?N.outlet.component:null,ae))}function ga(M){return"function"==typeof M}function Za(M){return M instanceof re.G||"EmptyError"===(null==M?void 0:M.name)}const Yr=Symbol("INITIAL_VALUE");function Ne(){return(0,z.n)(M=>(0,Q.z)(M.map(N=>N.pipe((0,oe.s)(1),(0,V.Z)(Yr)))).pipe((0,B.T)(N=>{for(const ie of N)if(!0!==ie){if(ie===Yr)return Yr;if(!1===ie||I(ie))return ie}return!0}),(0,k.p)(N=>N!==Yr),(0,oe.s)(1)))}function I(M){return br(M)||M instanceof Vs}function qn(M){return(0,te.F)((0,Fe.M)(N=>{if("boolean"!=typeof N)throw zn(0,N)}),(0,B.T)(N=>!0===N))}class Ir{constructor(N){(0,u.A)(this,"segmentGroup",void 0),this.segmentGroup=N||null}}class gr extends Error{constructor(N){super(),(0,u.A)(this,"urlTree",void 0),this.urlTree=N}}function er(M){return(0,$.$)(new Ir(M))}class fo{constructor(N,ie){(0,u.A)(this,"urlSerializer",void 0),(0,u.A)(this,"urlTree",void 0),this.urlSerializer=N,this.urlTree=ie}lineralizeSegments(N,ie){let L=[],ae=ie.root;for(;;){if(L=L.concat(ae.segments),0===ae.numberOfChildren)return(0,x.of)(L);if(ae.numberOfChildren>1||!ae.children[H])return"".concat(N.redirectTo),(0,$.$)(new o.wOt(4e3,!1));ae=ae.children[H]}}applyRedirectCommands(N,ie,L,ae,Le){if("string"!=typeof ie){const Yt=ie,{queryParams:yn,fragment:tn,routeC
1onfig:pn,url:hr,outlet:lr,params:Mr,data:wi,title:Ri}=ae,Ki=(0,o.N4e)(Le,()=>Yt({params:Mr,data:wi,queryParams:yn,fragment:tn,routeConfig:pn,url:hr,outlet:lr,title:Ri}));if(Ki instanceof Pn)throw new gr(Ki);ie=Ki}const $e=this.applyRedirectCreateUrlTree(ie,this.urlSerializer.parse(ie),N,L);if("/"===ie[0])throw new gr($e);return $e}applyRedirectCreateUrlTree(N,ie,L,ae){const Le=this.createSegmentGroup(N,ie.root,L,ae);return new Pn(Le,this.createQueryParams(ie.queryParams,this.urlTree.queryParams),ie.fragment)}createQueryParams(N,ie){const L={};return Object.entries(N).forEach(([ae,Le])=>{if("string"==typeof Le&&":"===Le[0]){const Yt=Le.substring(1);L[ae]=ie[Yt]}else L[ae]=Le}),L}createSegmentGroup(N,ie,L,ae){const Le=this.createSegments(N,ie.segments,L,ae);let $e={};return Object.entries(ie.children).forEach(([Yt,yn])=>{$e[Yt]=this.createSegmentGroup(N,yn,L,ae)}),new $n(Le,$e)}createSegments(N,ie,L,ae){return ie.map(Le=>":"===Le.path[0]?this.findPosParam(N,Le,ae):this.findOrReturn(Le,L))}findPosParam(N,ie,L){const ae=L[ie.path.substring(1)];if(!ae)throw new o.wOt(4001,!1);return ae}findOrReturn(N,ie){let L=0;for(const ae of ie){if(ae.path===N.path)return ie.splice(L),ae;L++}return N}}const ji={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Is(M,N,ie,L,ae){const Le=Fr(M,N,ie);return Le.matched?(L=function Nt(M,N){var ie;return M.providers&&!M._injector&&(M._injector=(0,o.Ol2)(M.providers,N,"Route: ".concat(M.path))),null!==(ie=M._injector)&&void 0!==ie?ie:N}(N,L),function Pr(M,N,ie,L){const ae=N.canMatch;if(!ae||0===ae.length)return(0,x.of)(!0);const Le=ae.map($e=>{const Yt=gs($e,M);return P(function va(M){return M&&ga(M.canMatch)}(Yt)?Yt.canMatch(N,ie):(0,o.N4e)(M,()=>Yt(N,ie)))});return(0,x.of)(Le).pipe(Ne(),qn())}(L,N,ie).pipe((0,B.T)($e=>!0===$e?Le:(0,p.A)({},ji)))):(0,x.of)(Le)}function Fr(M,N,ie){var L,ae;if("**"===N.path)return function Yi(M){return{matched:!0,parameters:M.length>0?Te(M).parameters:{},consumedSegments:M,remainingSegments:[],positionalParamSegments:{}}}(ie);if(""===N.path)return"full"===N.pathMatch&&(M.hasChildren()||ie.length>0)?(0,p.A)({},ji):{matched:!0,consumedSegments:[],remainingSegments:ie,parameters:{},positionalParamSegments:{}};const $e=(N.matcher||hn)(ie,M,N);if(!$e)return(0,p.A)({},ji);const Yt={};Object.entries(null!==(L=$e.posParams)&&void 0!==L?L:{}).forEach(([tn,pn])=>{Yt[tn]=pn.path});const yn=$e.consumed.length>0?(0,p.A)((0,p.A)({},Yt),$e.consumed[$e.consumed.length-1].parameters):Yt;return{matched:!0,consumedSegments:$e.consumed,remainingSegments:ie.slice($e.consumed.length),parameters:yn,positionalParamSegments:null!==(ae=$e.posParams)&&void 0!==ae?ae:{}}}function Zi(M,N,ie,L){return ie.length>0&&function _a(M,N,ie){return ie.some(L=>Ro(M,N,L)&&Tr(L)!==H)}(M,ie,L)?{segmentGroup:new $n(N,Yo(L,new $n(ie,M.children))),slicedSegments:[]}:0===ie.length&&function Zo(M,N,ie){return ie.some(L=>Ro(M,N,L))}(M,ie,L)?{segmentGroup:new $n(M.segments,ho(M,ie,L,M.children)),slicedSegments:ie}:{segmentGroup:new $n(M.segments,M.children),slicedSegments:ie}}function ho(M,N,ie,L){const ae={};for(const Le of ie)if(Ro(M,N,Le)&&!L[Tr(Le)]){const $e=new $n([],{});ae[Tr(Le)]=$e}return(0,p.A)((0,p.A)({},L),ae)}function Yo(M,N){const ie={};ie[H]=N;for(const L of M)if(""===L.path&&Tr(L)!==H){const ae=new $n([],{});ie[Tr(L)]=ae}return ie}function Ro(M,N,ie){return(!(M.hasChildren()||N.length>0)||"full"!==ie.pathMatch)&&""===ie.path}class $s{}class xn{constructor(N,ie,L,ae,Le,$e,Yt){(0,u.A)(this,"injector",void 0),(0,u.A)(this,"configLoader",void 0),(0,u.A)(this,"rootComponentType",void 0),(0,u.A)(this,"config",void 0),(0,u.A)(this,"urlTree",void 0),(0,u.A)(this,"paramsInheritanceStrategy",void 0),(0,u.A)(this,"urlSerializer",void 0),(0,u.A)(this,"applyRedirects",void 0),(0,u.A)(this,"absoluteRedirectCount",0),(0,u.A)(this,"allowRedirects",!0),this.injector=N,this.configLoader=ie,this.rootComponentType=L,this.config=ae,this.urlTree=Le,this.paramsInheritanceStrategy=$e,this.urlSerializer=Yt,this.applyRedirects=new fo(this.urlSerializer,this.urlTree)}noMatchError(N){return new o.wOt(4002,"'".concat(N.segmentGroup,"'"))}recognize(){const N=Zi(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(N).pipe((0,B.T)(({children:ie,rootSnapshot:L})=>{const ae=new Wt(L,ie),Le=new vn("",ae),$e=function Er(M,N,ie=null,L=null){return Ti(Qr(M),N,ie,L)}(L,[],this.urlTree.queryParams,this.urlTree.fragment);return $e.queryParams=this.urlTree.queryParams,Le.url=this.urlSerializer.serialize($e),{state:Le,tree:$e}}))}match(N){const ie=new jt([],Object.freeze({}),Object.freeze((0,p.A)({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),H,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,N,H,ie).pipe((0,B.T)(L=>({children:L,rootSnapshot:ie})),(0,We.W)(L=>{if(L instanceof gr)return this.urlTree=L.urlTree,this.match(L.urlTree.root);throw L instanceof Ir?this.noMatchError(L):L}))}processSegmentGroup(N,ie,L,ae,Le){return 0===L.segments.length&&L.hasChildren()?this.processChildren(N,ie,L,Le):this.processSegment(N,ie,L,L.segments,ae,!0,Le).pipe((0,B.T)($e=>$e instanceof Wt?[$e]:[]))}processChildren(N,ie,L,ae){const Le=[];
1for(const $e of Object.keys(L.children))"primary"===$e?Le.unshift($e):Le.push($e);return(0,O.H)(Le).pipe((0,ve.H)($e=>{const Yt=L.children[$e],yn=function Li(M,N){const ie=M.filter(L=>Tr(L)===N);return ie.push(...M.filter(L=>Tr(L)!==N)),ie}(ie,$e);return this.processSegmentGroup(N,yn,Yt,$e,ae)}),(0,ze.S)(($e,Yt)=>($e.push(...Yt),$e)),(0,bt.U)(null),function He(M,N){const ie=arguments.length>=2;return L=>L.pipe(M?(0,k.p)((ae,Le)=>M(ae,Le,L)):tt.D,Ke(1),ie?(0,bt.U)(N):(0,Me.v)(()=>new re.G))}(),(0,K.Z)($e=>{if(null===$e)return er(L);const Yt=mi($e);return function Or(M){M.sort((N,ie)=>N.value.outlet===H?-1:ie.value.outlet===H?1:N.value.outlet.localeCompare(ie.value.outlet))}(Yt),(0,x.of)(Yt)}))}processSegment(N,ie,L,ae,Le,$e,Yt){return(0,O.H)(ie).pipe((0,ve.H)(yn=>{var tn;return this.processSegmentAgainstRoute(null!==(tn=yn._injector)&&void 0!==tn?tn:N,ie,yn,L,ae,Le,$e,Yt).pipe((0,We.W)(pn=>{if(pn instanceof Ir)return(0,x.of)(null);throw pn}))}),(0,ge.$)(yn=>!!yn),(0,We.W)(yn=>{if(Za(yn))return function ea(M,N,ie){return 0===N.length&&!M.children[ie]}(L,ae,Le)?(0,x.of)(new $s):er(L);throw yn}))}processSegmentAgainstRoute(N,ie,L,ae,Le,$e,Yt,yn){return Tr(L)===$e||$e!==H&&Ro(ae,Le,L)?void 0===L.redirectTo?this.matchSegmentAgainstRoute(N,ae,L,Le,$e,yn):this.allowRedirects&&Yt?this.expandSegmentAgainstRouteUsingRedirect(N,ae,ie,L,Le,$e,yn):er(ae):er(ae)}expandSegmentAgainstRouteUsingRedirect(N,ie,L,ae,Le,$e,Yt){var yn,tn;const{matched:pn,parameters:hr,consumedSegments:lr,positionalParamSegments:Mr,remainingSegments:wi}=Fr(ie,ae,Le);if(!pn)return er(ie);"string"==typeof ae.redirectTo&&"/"===ae.redirectTo[0]&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Ri=new jt(Le,hr,Object.freeze((0,p.A)({},this.urlTree.queryParams)),this.urlTree.fragment,Jo(ae),Tr(ae),null!==(yn=null!==(tn=ae.component)&&void 0!==tn?tn:ae._loadedComponent)&&void 0!==yn?yn:null,ae,_i(ae)),Ki=st(Ri,Yt,this.paramsInheritanceStrategy);Ri.params=Object.freeze(Ki.params),Ri.data=Object.freeze(Ki.data);const Ls=this.applyRedirects.applyRedirectCommands(lr,ae.redirectTo,Mr,Ri,N);return this.applyRedirects.lineralizeSegments(ae,Ls).pipe((0,K.Z)(ys=>this.processSegment(N,L,ie,ys.concat(wi),$e,!1,Yt)))}matchSegmentAgainstRoute(N,ie,L,ae,Le,$e){const Yt=Is(ie,L,ae,N);return"**"===L.path&&(ie.children={}),Yt.pipe((0,z.n)(yn=>{var tn;return yn.matched?(N=null!==(tn=L._injector)&&void 0!==tn?tn:N,this.getChildConfig(N,L,ae).pipe((0,z.n)(({routes:pn})=>{var hr,lr,Mr;const wi=null!==(hr=L._loadedInjector)&&void 0!==hr?hr:N,{parameters:Ri,consumedSegments:Ki,remainingSegments:Ls}=yn,ys=new jt(Ki,Ri,Object.freeze((0,p.A)({},this.urlTree.queryParams)),this.urlTree.fragment,Jo(L),Tr(L),null!==(lr=null!==(Mr=L.component)&&void 0!==Mr?Mr:L._loadedComponent)&&void 0!==lr?lr:null,L,_i(L)),lu=st(ys,$e,this.paramsInheritanceStrategy);ys.params=Object.freeze(lu.params),ys.data=Object.freeze(lu.data);const{segmentGroup:uu,slicedSegments:ka}=Zi(ie,Ki,Ls,pn);if(0===ka.length&&uu.hasChildren())return this.processChildren(wi,pn,uu,ys).pipe((0,B.T)(cu=>new Wt(ys,cu)));if(0===pn.length&&0===ka.length)return(0,x.of)(new Wt(ys,[]));const tl=Tr(L)===Le;return this.processSegment(wi,pn,uu,ka,tl?H:Le,!0,ys).pipe((0,B.T)(cu=>new Wt(ys,cu instanceof Wt?[cu]:[])))}))):er(ie)}))}getChildConfig(N,ie,L){return ie.children?(0,x.of)({routes:ie.children,injector:N}):ie.loadChildren?void 0!==ie._loadedRoutes?(0,x.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector}):function Xn(M,N,ie,L){const ae=N.canLoad;if(void 0===ae||0===ae.length)return(0,x.of)(!0);const Le=ae.map($e=>{const Yt=gs($e,M);return P(function ti(M){return M&&ga(M.canLoad)}(Yt)?Yt.canLoad(N,ie):(0,o.N4e)(M,()=>Yt(N,ie)))});return(0,x.of)(Le).pipe(Ne(),qn())}(N,ie,L).pipe((0,K.Z)(ae=>ae?this.configLoader.loadChildren(N,ie).pipe((0,Fe.M)(Le=>{ie._loadedRoutes=Le.routes,ie._loadedInjector=Le.injector})):function Xi(){return(0,$.$)(bo(!1,$r.GuardRejected))}())):(0,x.of)({routes:[],injector:N})}}function ni(M){const N=M.value.routeConfig;return N&&""===N.path}function mi(M){const N=[],ie=new Set;for(const L of M){if(!ni(L)){N.push(L);continue}const ae=N.find(Le=>L.value.routeConfig===Le.value.routeConfig);void 0!==ae?(ae.children.push(...L.children),ie.add(ae)):N.push(L)}for(const L of ie){const ae=mi(L.children);N.push(new Wt(L.value,ae))}return N.filter(L=>!ie.has(L))}function Jo(M){return M.data||{}}function _i(M){return M.resolve||{}}function oo(M){const N=M.children.map(ie=>oo(ie)).flat();return[M,...N]}function Wi(M){return(0,z.n)(N=>{const ie=M(N);return ie?(0,O.H)(ie).pipe((0,B.T)(()=>N)):(0,x.of)(N)})}let Ra=(()=>{var M;class N{buildTitle(L){let ae,Le=L.root;for(;void 0!==Le;){var $e;ae=null!==($e=this.getResolvedTitleForRoute(Le))&&void 0!==$e?$e:ae,Le=Le.children.find(Yt=>Yt.outlet===H)}return ae}getResolvedTitleForRoute(L){return L.data[Se]}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:()=>(0,o.WQX)(Cl),providedIn:"root"})),N})(),Cl=(()=>{var M;class N extends Ra{constructor(L){super(),(0,u.A)(this,"title",void 0),this.title=L}updateTitle(L){const ae=this.buildTitle(L);void 0!==ae&&this.title.setTitle(ae)}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)(o.KVO(D.hE))}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();const Ks=new o.nKC("",{providedIn:"root",factory:()=>({})});let Ps=(()=>{var M;class N{}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275cmp",o.VBU({type:M,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(L,ae){1&L&&o.nrm(0,"router-outlet")},dependencies:[wo],encapsulation:2})),N})();function Ms(M){const N=M.children&&M.children.map(Ms),ie=N?(0,p.A)((0,p.A)({},M),{},{children:N}):(0,p.A)({},M);return!ie.component&&!ie.loadComponent&&(N||ie.loadChildren)&&ie.outlet&&ie.outlet!==H&&(ie.component=Ps),ie}const Br=new o.nKC("");let pr=(()=>{var M;class N{constructor(){(0,u.A)(this,"componentLoaders",new WeakMap),(0,u.A)(this,"childrenLoaders",new WeakMap),(0,u.A)(this,"onLoadStartListener",void 0),(0,u.A)(this,"onLoadEndListener",void 0),(0,u.A)(this,"compiler",(0,o.WQX)(o.Ql9))}loadComponent(L){if(this.componentLoaders.get(L))return this.componentLoaders.get(L);if(L._loadedComponent)return(0,x.of)(L._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(L);const ae=P(L.loadComponent()).pipe((0,B.T)(Tl),(0,Fe.M)($e=>{this.onLoadEndListener&&this.onLoadEndListener(L),L._loadedComponent=$e}),(0,ot.j)(()=>{this.componentLoaders.delete(L)})),Le=new _(ae,()=>new R.B).pipe(ce());return this.componentLoaders.set(L,Le),Le}loadChildren(L,ae){if(this.childrenLoaders.get(ae))return this.childrenLoaders.get(ae);if(ae._loadedRoutes)return(0,x.of)({routes:ae._loadedRoutes,injector:ae._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ae);const $e=function ai(M,N,ie,L){return P(M.loadChildren()).pipe((0,B.T)(Tl),(0,K.Z)(ae=>
1ae instanceof o.Co$||Array.isArray(ae)?(0,x.of)(ae):(0,O.H)(N.compileModuleAsync(ae))),(0,B.T)(ae=>{L&&L(M);let Le,$e,Yt=!1;return Array.isArray(ae)?($e=ae,!0):(Le=ae.create(ie).injector,$e=Le.get(Br,[],{optional:!0,self:!0}).flat()),{routes:$e.map(Ms),injector:Le}}))}(ae,this.compiler,L,this.onLoadEndListener).pipe((0,ot.j)(()=>{this.childrenLoaders.delete(ae)})),Yt=new _($e,()=>new R.B).pipe(ce());return this.childrenLoaders.set(ae,Yt),Yt}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();function Tl(M){return function bl(M){return M&&"object"==typeof M&&"default"in M}(M)?M.default:M}let na=(()=>{var M;class N{}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:()=>(0,o.WQX)(ya),providedIn:"root"})),N})(),ya=(()=>{var M;class N{shouldProcessUrl(L){return!0}extract(L){return L}merge(L,ae){return L}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();const iu=new o.nKC(""),qa=new o.nKC("");function W(M,N,ie){const L=M.get(qa),ae=M.get(w.qQ);return M.get(o.SKi).runOutsideAngular(()=>{if(!ae.startViewTransition||L.skipNextTransition)return L.skipNextTransition=!1,new Promise(tn=>setTimeout(tn));let Le;const $e=new Promise(tn=>{Le=tn}),Yt=ae.startViewTransition(()=>(Le(),function ee(M){return new Promise(N=>{(0,o.mal)({read:()=>setTimeout(N)},{injector:M})})}(M))),{onViewTransitionCreated:yn}=L;return yn&&(0,o.N4e)(M,()=>yn({transition:Yt,from:N,to:ie})),$e})}const Je=new o.nKC("");let q=(()=>{var M;class N{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){(0,u.A)(this,"currentNavigation",null),(0,u.A)(this,"currentTransition",null),(0,u.A)(this,"lastSuccessfulNavigation",null),(0,u.A)(this,"events",new R.B),(0,u.A)(this,"transitionAbortSubject",new R.B),(0,u.A)(this,"configLoader",(0,o.WQX)(pr)),(0,u.A)(this,"environmentInjector",(0,o.WQX)(o.uvJ)),(0,u.A)(this,"urlSerializer",(0,o.WQX)(Ie)),(0,u.A)(this,"rootContexts",(0,o.WQX)(me)),(0,u.A)(this,"location",(0,o.WQX)(w.aZ)),(0,u.A)(this,"inputBindingEnabled",null!==(0,o.WQX)(jo,{optional:!0})),(0,u.A)(this,"titleStrategy",(0,o.WQX)(Ra)),(0,u.A)(this,"options",(0,o.WQX)(Ks,{optional:!0})||{}),(0,u.A)(this,"paramsInheritanceStrategy",this.options.paramsInheritanceStrategy||"emptyOnly"),(0,u.A)(this,"urlHandlingStrategy",(0,o.WQX)(na)),(0,u.A)(this,"createViewTransition",(0,o.WQX)(iu,{optional:!0})),(0,u.A)(this,"navigationErrorHandler",(0,o.WQX)(Je,{optional:!0})),(0,u.A)(this,"navigationId",0),(0,u.A)(this,"transitions",void 0),(0,u.A)(this,"afterPreactivation",()=>(0,x.of)(void 0)),(0,u.A)(this,"rootComponentType",null),this.configLoader.onLoadEndListener=Le=>this.events.next(new Wn(Le)),this.configLoader.onLoadStartListener=Le=>this.events.next(new Gn(Le))}complete(){var L;null===(L=this.transitions)||void 0===L||L.complete()}handleNavigationRequest(L){var ae;const Le=++this.navigationId;null===(ae=this.transitions)||void 0===ae||ae.next((0,p.A)((0,p.A)((0,p.A)({},this.transitions.value),L),{},{id:Le}))}setupNavigations(L,ae,Le){return this.transitions=new U.t({id:0,currentUrlTree:ae,currentRawUrl:ae,extractedUrl:this.urlHandlingStrategy.extract(ae),urlAfterRedirects:this.urlHandlingStrategy.extract(ae),rawUrl:ae,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Qi,restoredState:null,currentSnapshot:Le.snapshot,targetSnapshot:null,currentRouterState:Le,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,k.p)($e=>0!==$e.id),(0,B.T)($e=>(0,p.A)((0,p.A)({},$e),{},{extractedUrl:this.urlHandlingStrategy.extract($e.rawUrl)})),(0,z.n)($e=>{let Yt=!1,yn=!1;return(0,x.of)($e).pipe((0,z.n)(tn=>{var pn;if(this.navigationId>$e.id)return this.cancelNavigationTransition($e,"",$r.SupersededByNewNavigation),J.w;this.currentTransition=$e,this.currentNavigation={id:tn.id,initialUrl:tn.rawUrl,extractedUrl:tn.extractedUrl,targetBrowserUrl:"string"==typeof tn.extras.browserUrl?this.urlSerializer.parse(tn.extras.browserUrl):tn.extras.browserUrl,trigger:tn.source,extras:tn.extras,previousNavigation:this.lastSuccessfulNavigation?(0,p.A)((0,p.A)({},this.lastSuccessfulNavigation),{},{previousNavigation:null}):null};const hr=!L.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),lr=null!==(pn=tn.extras.onSameUrlNavigation)&&void 0!==pn?pn:L.onSameUrlNavigation;if(!hr&&"reload"!==lr){const Mr="";return this.events.next(new $i(tn.id,this.urlSerializer.serialize(tn.rawUrl),Mr,gi.IgnoredSameUrlNavigation)),tn.resolve(!1),J.w}if(this.urlHandlingStrategy.shouldProcessUrl(tn.rawUrl))return(0,x.of)(tn).pipe((0,z.n)(Mr=>{var wi,Ri;const Ki=null===(wi=this.transitions)||void 0===wi?void 0:wi.getValue();return this.events.next(new Vi(Mr.id,this.urlSerializer.serialize(Mr.extractedUrl),Mr.source,Mr.restoredState)),Ki!==(null===(Ri=this.transitions)||void 0===Ri?void 0:Ri.getValue())?J.w:Promise.resolve(Mr)}),function Ja(M,N,ie,L,ae,Le){return(0,K.Z)($e=>function tr(M,N,ie,L,ae,Le,$e="emptyOnly"){return new xn(M,N,ie,L,ae,$e,Le).recognize()}
1(M,N,ie,L,$e.extractedUrl,ae,Le).pipe((0,B.T)(({state:Yt,tree:yn})=>(0,p.A)((0,p.A)({},$e),{},{targetSnapshot:Yt,urlAfterRedirects:yn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,L.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,Fe.M)(Mr=>{$e.targetSnapshot=Mr.targetSnapshot,$e.urlAfterRedirects=Mr.urlAfterRedirects,this.currentNavigation=(0,p.A)((0,p.A)({},this.currentNavigation),{},{finalUrl:Mr.urlAfterRedirects});const wi=new ht(Mr.id,this.urlSerializer.serialize(Mr.extractedUrl),this.urlSerializer.serialize(Mr.urlAfterRedirects),Mr.targetSnapshot);this.events.next(wi)}));if(hr&&this.urlHandlingStrategy.shouldProcessUrl(tn.currentRawUrl)){const{id:Mr,extractedUrl:wi,source:Ri,restoredState:Ki,extras:Ls}=tn,ys=new Vi(Mr,this.urlSerializer.serialize(wi),Ri,Ki);this.events.next(ys);const lu=Be(this.rootComponentType).snapshot;return this.currentTransition=$e=(0,p.A)((0,p.A)({},tn),{},{targetSnapshot:lu,urlAfterRedirects:wi,extras:(0,p.A)((0,p.A)({},Ls),{},{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=wi,(0,x.of)($e)}{const Mr="";return this.events.next(new $i(tn.id,this.urlSerializer.serialize(tn.extractedUrl),Mr,gi.IgnoredByUrlHandlingStrategy)),tn.resolve(!1),J.w}}),(0,Fe.M)(tn=>{const pn=new Jt(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot);this.events.next(pn)}),(0,B.T)(tn=>(this.currentTransition=$e=(0,p.A)((0,p.A)({},tn),{},{guards:ps(tn.targetSnapshot,tn.currentSnapshot,this.rootContexts)}),$e)),function j(M,N){return(0,K.Z)(ie=>{const{targetSnapshot:L,currentSnapshot:ae,guards:{canActivateChecks:Le,canDeactivateChecks:$e}}=ie;return 0===$e.length&&0===Le.length?(0,x.of)((0,p.A)((0,p.A)({},ie),{},{guardsResult:!0})):function pe(M,N,ie,L){return(0,O.H)(M).pipe((0,K.Z)(ae=>function Tn(M,N,ie,L,ae){const Le=N&&N.routeConfig?N.routeConfig.canDeactivate:null;if(!Le||0===Le.length)return(0,x.of)(!0);const $e=Le.map(Yt=>{var yn;const tn=null!==(yn=h(N))&&void 0!==yn?yn:ae,pn=gs(Yt,tn);return P(function wa(M){return M&&ga(M.canDeactivate)}(pn)?pn.canDeactivate(M,N,ie,L):(0,o.N4e)(tn,()=>pn(M,N,ie,L))).pipe((0,ge.$)())});return(0,x.of)($e).pipe(Ne())}(ae.component,ae.route,ie,N,L)),(0,ge.$)(ae=>!0!==ae,!0))}($e,L,ae,M).pipe((0,K.Z)(Yt=>Yt&&function ru(M){return"boolean"==typeof M}(Yt)?function xe(M,N,ie,L){return(0,O.H)(N).pipe((0,ve.H)(ae=>(0,be.x)(function St(M,N){return null!==M&&N&&N(new _r(M)),(0,x.of)(!0)}(ae.route.parent,L),function Ye(M,N){return null!==M&&N&&N(new ar(M)),(0,x.of)(!0)}(ae.route,L),function on(M,N,ie){const L=N[N.length-1],Le=N.slice(0,N.length-1).reverse().map($e=>function $o(M){const N=M.routeConfig?M.routeConfig.canActivateChild:null;return N&&0!==N.length?{node:M,guards:N}:null}($e)).filter($e=>null!==$e).map($e=>ne(()=>{const Yt=$e.guards.map(yn=>{var tn;const pn=null!==(tn=h($e.node))&&void 0!==tn?tn:ie,hr=gs(yn,pn);return P(function ki(M){return M&&ga(M.canActivateChild)}(hr)?hr.canActivateChild(L,M):(0,o.N4e)(pn,()=>hr(L,M))).pipe((0,ge.$)())});return(0,x.of)(Yt).pipe(Ne())}));return(0,x.of)(Le).pipe(Ne())}(M,ae.path,ie),function wt(M,N,ie){const L=N.routeConfig?N.routeConfig.canActivate:null;if(!L||0===L.length)return(0,x.of)(!0);const ae=L.map(Le=>ne(()=>{var $e;const Yt=null!==($e=h(N))&&void 0!==$e?$e:ie,yn=gs(Le,Yt);return P(function ma(M){return M&&ga(M.canActivate)}(yn)?yn.canActivate(N,M):(0,o.N4e)(Yt,()=>yn(N,M))).pipe((0,ge.$)())}));return(0,x.of)(ae).pipe(Ne())}(M,ae.route,ie))),(0,ge.$)(ae=>!0!==ae,!0))}(L,Le,M,N):(0,x.of)(Yt)),(0,B.T)(Yt=>(0,p.A)((0,p.A)({},ie),{},{guardsResult:Yt})))})}(this.environmentInjector,tn=>this.events.next(tn)),(0,Fe.M)(tn=>{if($e.guardsResult=tn.guardsResult,tn.guardsResult&&"boolean"!=typeof tn.guardsResult)throw zn(0,tn.guardsResult);const pn=new Bt(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects),tn.targetSnapshot,!!tn.guardsResult);this.events.next(pn)}),(0,k.p)(tn=>!!tn.guardsResult||(this.cancelNavigationTransition(tn,"",$r.GuardRejected),!1)),Wi(tn=>{if(tn.guards.canActivateChecks.length)return(0,x.of)(tn).pipe((0,Fe.M)(pn=>
1{const hr=new Mn(pn.id,this.urlSerializer.serialize(pn.extractedUrl),this.urlSerializer.serialize(pn.urlAfterRedirects),pn.targetSnapshot);this.events.next(hr)}),(0,z.n)(pn=>{let hr=!1;return(0,x.of)(pn).pipe(function ta(M,N){return(0,K.Z)(ie=>{const{targetSnapshot:L,guards:{canActivateChecks:ae}}=ie;if(!ae.length)return(0,x.of)(ie);const Le=new Set(ae.map(yn=>yn.route)),$e=new Set;for(const yn of Le)if(!$e.has(yn))for(const tn of oo(yn))$e.add(tn);let Yt=0;return(0,O.H)($e).pipe((0,ve.H)(yn=>Le.has(yn)?function Ws(M,N,ie,L){const ae=M.routeConfig,Le=M._resolve;return void 0!==(null==ae?void 0:ae.title)&&!is(ae)&&(Le[Se]=ae.title),function So(M,N,ie,L){const ae=G(M);if(0===ae.length)return(0,x.of)({});const Le={};return(0,O.H)(ae).pipe((0,K.Z)($e=>function Os(M,N,ie,L){var ae;const Le=null!==(ae=h(N))&&void 0!==ae?ae:L,$e=gs(M,Le);return P($e.resolve?$e.resolve(N,ie):(0,o.N4e)(Le,()=>$e(N,ie)))}(M[$e],N,ie,L).pipe((0,ge.$)(),(0,Fe.M)(Yt=>{if(Yt instanceof Vs)throw zn(new Ve,Yt);Le[$e]=Yt}))),Ke(1),(0,B.T)(()=>Le),(0,We.W)($e=>Za($e)?J.w:(0,$.$)($e)))}(Le,M,N,L).pipe((0,B.T)($e=>(M._resolvedData=$e,M.data=st(M,M.parent,ie).resolve,null)))}(yn,L,M,N):(yn.data=st(yn,yn.parent,M).resolve,(0,x.of)(void 0))),(0,Fe.M)(()=>Yt++),Ke(1),(0,K.Z)(yn=>Yt===$e.size?(0,x.of)(ie):J.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,Fe.M)({next:()=>hr=!0,complete:()=>{hr||this.cancelNavigationTransition(pn,"",$r.NoDataFromResolver)}}))}),(0,Fe.M)(pn=>
1{const hr=new Nn(pn.id,this.urlSerializer.serialize(pn.extractedUrl),this.urlSerializer.serialize(pn.urlAfterRedirects),pn.targetSnapshot);this.events.next(hr)}))}),Wi(tn=>{const pn=hr=>{var lr;const Mr=[];null!==(lr=hr.routeConfig)&&void 0!==lr&&lr.loadComponent&&!hr.routeConfig._loadedComponent&&Mr.push(this.configLoader.loadComponent(hr.routeConfig).pipe((0,Fe.M)(wi=>{hr.component=wi}),(0,B.T)(()=>{})));for(const wi of hr.children)Mr.push(...pn(wi));return Mr};return(0,Q.z)(pn(tn.targetSnapshot.root)).pipe((0,bt.U)(null),(0,oe.s)(1))}),Wi(()=>this.afterPreactivation()),(0,z.n)(()=>{var tn;const{currentSnapshot:pn,targetSnapshot:hr}=$e,lr=null===(tn=this.createViewTransition)||void 0===tn?void 0:tn.call(this,this.environmentInjector,pn.root,hr.root);return lr?(0,O.H)(lr).pipe((0,B.T)(()=>$e)):(0,x.of)($e)}),(0,B.T)(tn=>{const pn=function Ma(M,N,ie){const L=hs(M,N._root,ie?ie._root:void 0);return new Vn(L,N)}(L.routeReuseStrategy,tn.targetSnapshot,tn.currentRouterState);return this.currentTransition=$e=(0,p.A)((0,p.A)({},tn),{},{targetRouterState:pn}),this.currentNavigation.targetRouterState=pn,$e}),(0,Fe.M)(()=>{this.events.next(new oi)}),((M,N,ie,L)=>(0,B.T)(ae=>(new El(N,ae.targetRouterState,ae.currentRouterState,ie,L).activate(M),ae)))(this.rootContexts,L.routeReuseStrategy,tn=>this.events.next(tn),this.inputBindingEnabled),(0,oe.s)(1),(0,Fe.M)({next:tn=>{var pn;Yt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new di(tn.id,this.urlSerializer.serialize(tn.extractedUrl),this.urlSerializer.serialize(tn.urlAfterRedirects))),null===(pn=this.titleStrategy)||void 0===pn||pn.updateTitle(tn.targetRouterState.snapshot),tn.resolve(!0)},complete:()=>{Yt=!0}}),(0,je.Q)(this.transitionAbortSubject.pipe((0,Fe.M)(tn=>{throw tn}))),(0,ot.j)(()=>{var tn;!Yt&&!yn&&this.cancelNavigationTransition($e,"",$r.SupersededByNewNavigation),(null===(tn=this.currentTransition)||void 0===tn?void 0:tn.id)===$e.id&&(this.currentNavigation=null,this.currentTransition=null)}),(0,We.W)(tn=>{if(yn=!0,qs(tn))this.events.next(new ei($e.id,this.urlSerializer.serialize($e.extractedUrl),tn.message,tn.cancellationCode)),function pa(M){return qs(M)&&br(M.url)}(tn)?this.events.next(new Gr(tn.url,tn.navigationBehaviorOptions)):$e.resolve(!1);else{var pn;
1const hr=new Ge($e.id,this.urlSerializer.serialize($e.extractedUrl),tn,null!==(pn=$e.targetSnapshot)&&void 0!==pn?pn:void 0);try{const lr=(0,o.N4e)(this.environmentInjector,()=>{var Mr;return null===(Mr=this.navigationErrorHandler)||void 0===Mr?void 0:Mr.call(this,hr)});if(!(lr instanceof Vs))throw this.events.next(hr),tn;{const{message:Mr,cancellationCode:wi}=zn(0,lr);this.events.next(new ei($e.id,this.urlSerializer.serialize($e.extractedUrl),Mr,wi)),this.events.next(new Gr(lr.redirectTo,lr.navigationBehaviorOptions))}}catch(lr){this.options.resolveNavigationPromiseOnError?$e.resolve(!1):$e.reject(lr)}}return J.w}))}))}cancelNavigationTransition(L,ae,Le){const $e=new ei(L.id,this.urlSerializer.serialize(L.extractedUrl),ae,Le);this.events.next($e),L.resolve(!1)}isUpdatingInternalState(){var L,ae;return(null===(L=this.currentTransition)||void 0===L?void 0:L.extractedUrl.toString())!==(null===(ae=this.currentTransition)||void 0===ae?void 0:ae.currentUrlTree.toString())}isUpdatedBrowserUrl(){var L,ae,Le,$e;const Yt=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),yn=null!==(L=null===(ae=this.currentNavigation)||void 0===ae?void 0:ae.targetBrowserUrl)&&void 0!==L?L:null===(Le=this.currentNavigation)||void 0===Le?void 0:Le.extractedUrl;return Yt.toString()!==(null==yn?void 0:yn.toString())&&!(null!==($e=this.currentNavigation)&&void 0!==$e&&$e.extras.skipLocationChange)}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();function Re(M){return M!==Qi}let it=(()=>{var M;class N{}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:()=>(0,o.WQX)(Sn),providedIn:"root"})),N})();class an{shouldDetach(N){return!1}store(N,ie){}shouldAttach(N){return!1}retrieve(N){return null}shouldReuseRoute(N,ie){return N.routeConfig===ie.routeConfig}}let Sn=(()=>{var M;class N extends an{}return M=N,(0,u.A)(N,"\u0275fac",(()=>{let ie;return function(ae){return(ie||(ie=o.xGo(M)))(ae||M)}})()),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})(),rr=(()=>{var M;class N{}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:()=>(0,o.WQX)(Nr),providedIn:"root"})),N})(),Nr=(()=>{var M;class N extends rr{constructor(...L){super(...L),(0,u.A)(this,"location",(0,o.WQX)(w.aZ)),(0,u.A)(this,"urlSerializer",(0,o.WQX)(Ie)),(0,u.A)(this,"options",(0,o.WQX)(Ks,{optional:!0})||{}),(0,u.A)(this,"canceledNavigationResolution",this.options.canceledNavigationResolution||"replace"),(0,u.A)(this,"urlHandlingStrategy",(0,o.WQX)(na)),(0,u.A)(this,"urlUpdateStrategy",this.options.urlUpdateStrategy||"deferred"),(0,u.A)(this,"currentUrlTree",new Pn),(0,u.A)(this,"rawUrlTree",this.currentUrlTree),(0,u.A)(this,"currentPageId",0),(0,u.A)(this,"lastSuccessfulId",-1),(0,u.A)(this,"routerState",Be(null)),(0,u.A)(this,"stateMemento",this.createStateMemento())}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var L,ae;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(L=null===(ae=this.restoredState())||void 0===ae?void 0:ae.\u0275routerPageId)&&void 0!==L?L:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(L){return this.location.subscribe(ae=>{"popstate"===ae.type&&L(ae.url,ae.state)})}handleRouterEvent(L,ae){if(L instanceof Vi)this.stateMemento=this.createStateMemento();else if(L instanceof $i)this.rawUrlTree=ae.initialUrl;else if(L instanceof ht){if("eager"===this.urlUpdateStrategy&&!ae.extras.skipLocationChange){var Le;const Yt=this.urlHandlingStrategy.merge(ae.finalUrl,ae.initialUrl);this.setBrowserUrl(null!==(Le=ae.targetBrowserUrl)&&void 0!==Le?Le:Yt,ae)}}else if(L instanceof oi){var $e;this.currentUrlTree=ae.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(ae.finalUrl,ae.initialUrl),this.routerState=ae.targetRouterState,"deferred"!==this.urlUpdateStrategy||ae.extras.skipLocationChange||this.setBrowserUrl(null!==($e=ae.targetBrowserUrl)&&void 0!==$e?$e:this.rawUrlTree,ae)}else L instanceof ei&&(L.code===$r.GuardRejected||L.code===$r.NoDataFromRe
1solver)?this.restoreHistory(ae):L instanceof Ge?this.restoreHistory(ae,!0):L instanceof di&&(this.lastSuccessfulId=L.id,this.currentPageId=this.browserPageId)}setBrowserUrl(L,ae){const Le=L instanceof Pn?this.urlSerializer.serialize(L):L;if(this.location.isCurrentPathEqualTo(Le)||ae.extras.replaceUrl){const $e=this.browserPageId,Yt=(0,p.A)((0,p.A)({},ae.extras.state),this.generateNgRouterState(ae.id,$e));this.location.replaceState(Le,"",Yt)}else{const $e=(0,p.A)((0,p.A)({},ae.extras.state),this.generateNgRouterState(ae.id,this.browserPageId+1));this.location.go(Le,"",$e)}}restoreHistory(L,ae=!1){if("computed"===this.canceledNavigationResolution){const $e=this.currentPageId-this.browserPageId;0!==$e?this.location.historyGo($e):this.currentUrlTree===L.finalUrl&&0===$e&&(this.resetState(L),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ae&&this.resetState(L),this.resetUrlToCurrentUrlTree())}resetState(L){var ae;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(ae=L.finalUrl)&&void 0!==ae?ae:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(L,ae){return"computed"===this.canceledNavigationResolution?{navigationId:L,\u0275routerPageId:ae}:{navigationId:L}}}return M=N,(0,u.A)(N,"\u0275fac",(()=>{let ie;return function(ae){return(ie||(ie=o.xGo(M)))(ae||M)}})()),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();function Ur(M,N){M.events.pipe((0,k.p)(ie=>ie instanceof di||ie instanceof ei||ie instanceof Ge||ie instanceof $i),(0,B.T)(ie=>ie instanceof di||ie instanceof $i?0:ie instanceof ei&&(ie.code===$r.Redirect||ie.code===$r.SupersededByNewNavigation)?2:1),(0,k.p)(ie=>2!==ie),(0,oe.s)(1)).subscribe(()=>{N()})}const jr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yi={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let kr=(()=>{var M;class N{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var L,ae;(0,u.A)(this,"disposed",!1),(0,u.A)(this,"nonRouterCurrentEntryChangeSubscription",void 0),(0,u.A)(this,"console",(0,o.WQX)(o.H3F)),(0,u.A)(this,"stateManager",(0,o.WQX)(rr)),(0,u.A)(this,"options",(0,o.WQX)(Ks,{optional:!0})||{}),(0,u.A)(this,"pendingTasks",(0,o.WQX)(o.Ua0)),(0,u.A)(this,"urlUpdateStrategy",this.options.urlUpdateStrategy||"deferred"),(0,u.A)(this,"navigationTransitions",(0,o.WQX)(q)),(0,u.A)(this,"urlSerializer",(0,o.WQX)(Ie)),(0,u.A)(this,"location",(0,o.WQX)(w.aZ)),(0,u.A)(this,"urlHandlingStrategy",(0,o.WQX)(na)),(0,u.A)(this,"_events",new R.B),(0,u.A)(this,"navigated",!1),(0,u.A)(this,"routeReuseStrategy",(0,o.WQX)(it)),(0,u.A)(this,"onSameUrlNavigation",this.options.onSameUrlNavigation||"ignore"),(0,u.A)(this,"config",null!==(L=null===(ae=(0,o.WQX)(Br,{optional:!0}))||void 0===ae?void 0:ae.flat())&&void 0!==L?L:[]),(0,u.A)(this,"componentInputBindingEnabled",!!(0,o.WQX)(jo,{optional:!0})),(0,u.A)(this,"eventsSubscription",new se.yU),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:Le=>{this.console.warn(Le)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const L=this.navigationTransitions.events.subscribe(ae=>{try{const Le=this.navigationTransitions.currentTransition,$e=this.navigationTransitions.currentNavigation;if(null!==Le&&null!==$e)if(this.stateManager.handleRouterEvent(ae,$e),ae instanceof ei&&ae.code!==$r.Redirect&&ae.code!==$r.SupersededByNewNavigation)this.navigated=!0;else if(ae instanceof di)this.navigated=!0;else if(ae instanceof Gr){const Yt=ae.navigationBehaviorOptions,yn=this.urlHandlingStrategy.merge(ae.url,Le.currentRawUrl),tn=(0,p.A)({browserUrl:Le.extras.browserUrl,info:Le.extras.info,skipLocationChange:Le.extras.skipLocationChange,replaceUrl:Le.extras.replaceUrl||"eager"===this.urlUpdateStrategy||Re(Le.source)},Yt);this.scheduleNavigation(yn,Qi,null,tn,{resolve:Le.resolve,reject:Le.reject,promise:Le.promise})}(function ms(M){return!(M instanceof oi||M instanceof Gr)})(ae)&&this._events.next(ae)}catch(Le){this.navigationTransitions.transitionAbortSubject.next(Le)}});this.eventsSubscription.add(L)}resetRootComponentType(L){this.routerState.root.component=L,this.navigationTransitions.rootComponentType=L}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Qi,this.stateManager.restoredState())}setUpLocationChangeListener(){var L;null!==(L=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==L||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((ae,Le)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(ae,"popstate",Le)},0)}))}navigateToSyncWithBrowser(L,ae,Le){const $e={replaceUrl:!0},Yt=null!=Le&&Le.navigationId?Le:null;if(Le){const tn=(0,p.A)({},Le);delete tn.navigationId,delete tn.\u0275routerPageId,0!==Object.keys(tn).length&&($e.state=tn)}const yn=this.parseUrl(L);this.scheduleNavigation(yn,ae,Yt,$e)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(L){this.config=L.map(Ms),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(L,ae={}){const{relativeTo:Le,queryParams:$e,fragment:Yt,queryParamsHandling:yn,preserveFragment:tn}=ae,pn=tn?this.currentUrlTree.fragment:Yt;let lr,hr=null;switch(null!=yn?yn:this.options.defaultQueryParamsHandling){case"merge":hr=(0,p.A)((0,p.A)({},this.currentUrlTree.queryParams),$e);break;case"preserve":hr=this.currentUrlTree.queryParams;break;default:hr=$e||null}null!==hr&&(hr=this.removeEmptyProps(hr));try{lr=Qr(Le?Le.snapshot:this.routerState.snapshot.root)}catch(Mr){("string"!=typeof L[0]||"/"!==L[0][0])&&(L=[]),lr=this.currentUrlTree.root}return Ti(lr,L,hr,null!=pn?pn:null)}navigateByUrl(L,ae={skipLocationChange:!1}){const Le=br(L)?L:this.parseUrl(L),$e=this.urlHandlingStrategy.merge(Le,this.rawUrlTree);return this.scheduleNavigation($e,Qi,null,ae)}navigate(L,ae={skipLocationChange:!1}){return function hi(M){for(let N=0;N<M.length;N++)if(null==M[N])throw new o.wOt(4008,!1)}(L),this.navigateByUrl(this.createUrlTree(L,ae),ae)}serializeUrl(L){return this.urlSerializer.serialize(L)}parseUrl(L){try{return this.urlSerializer.parse(L)}catch(ae){return this.urlSerializer.parse("/")}}isActive(L,ae){let Le;if(Le=!0===ae?(0,p.A)({},jr):!1===ae?(0,p.A)({},yi):ae,br(L))return Ae(this.currentUrlTree,L,Le);const $e=this.parseUrl(L);return Ae(this.currentUrlTree,$e,Le)}removeEmptyProps(L){return Object.entries(L).reduce((ae,[Le,$e])=>(null!=$e&&(ae[Le]=$e),ae),{})}scheduleNavigation(L,ae,Le,$e,Yt){if(this.disposed)return Promise.resolve(!1);let yn,tn,pn;Yt?(yn=Yt.resolve,tn=Yt.reject,pn=Yt.promise):pn=new Promise((lr,Mr)=>{yn=lr,tn=Mr});const hr=this.pendingTasks.add();return Ur(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(hr))}),this.navigationTransitions.handleNavigationRequest({source:ae,restoredState:Le,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:L,extras:$e,resolve:yn,reject:tn,promise:pn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),pn.catch(lr=>Promise.reject(lr))}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();class ra{}let Na=(()=>{var M;class N{constructor(L,ae,Le,$e,Yt){(0,u.A)(this,"router",void 0),(0,u.A)(this,"injector",void 0),(0,u.A)(this,"preloadingStrategy",void 0),(0,u.A)(this,"loader",void 0),(0,u.A)(this,"subscription",void 0),this.router=L,this.injector=Le,this.preloadingStrategy=$e,this.loader=Yt}setUpPreloading(){this.subscription=this.router.events.pipe((0,k.p)(L=>L instanceof di),(0,ve.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(L,ae){const Le=[];for(const tn of ae){var $e,Yt;tn.providers&&!tn._injector&&(tn._injector=(0,o.Ol2)(tn.providers,L,"Route: ".concat(tn.path)));const pn=null!==($e=tn._injector)&&void 0!==$e?$e:L,hr=null!==(Yt=tn._loadedInjector)&&void 0!==Yt?Yt:pn;var yn;(tn.loadChildren&&!tn._loadedRoutes&&void 0===tn.canLoad||tn.loadComponent&&!tn._loadedComponent)&&Le.push(this.preloadConfig(pn,tn)),(tn.children||tn._loadedRoutes)&&Le.pu
1sh(this.processRoutes(hr,null!==(yn=tn.children)&&void 0!==yn?yn:tn._loadedRoutes))}return(0,O.H)(Le).pipe((0,fe.U)())}preloadConfig(L,ae){return this.preloadingStrategy.preload(ae,()=>{let Le;Le=ae.loadChildren&&void 0===ae.canLoad?this.loader.loadChildren(L,ae):(0,x.of)(null);const $e=Le.pipe((0,K.Z)(Yt=>{var yn;return null===Yt?(0,x.of)(void 0):(ae._loadedRoutes=Yt.routes,ae._loadedInjector=Yt.injector,this.processRoutes(null!==(yn=Yt.injector)&&void 0!==yn?yn:L,Yt.routes))}));if(ae.loadComponent&&!ae._loadedComponent){const Yt=this.loader.loadComponent(ae);return(0,O.H)([$e,Yt]).pipe((0,fe.U)())}return $e})}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)(o.KVO(kr),o.KVO(o.Ql9),o.KVO(o.uvJ),o.KVO(ra),o.KVO(pr))}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac,providedIn:"root"})),N})();const Ns=new o.nKC("");let Yc=(()=>{var M;class N{constructor(L,ae,Le,$e,Yt={}){(0,u.A)(this,"urlSerializer",void 0),(0,u.A)(this,"transitions",void 0),(0,u.A)(this,"viewportScroller",void 0),(0,u.A)(this,"zone",void 0),(0,u.A)(this,"options",void 0),(0,u.A)(this,"routerEventsSubscription",void 0),(0,u.A)(this,"scrollEventsSubscription",void 0),(0,u.A)(this,"lastId",0),(0,u.A)(this,"lastSource","imperative"),(0,u.A)(this,"restoredId",0),(0,u.A)(this,"store",{}),this.urlSerializer=L,this.transitions=ae,this.viewportScroller=Le,this.zone=$e,this.options=Yt,Yt.scrollPositionRestoration||(Yt.scrollPositionRestoration="disabled"),Yt.anchorScrolling||(Yt.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(L=>{L instanceof Vi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=L.navigationTrigger,this.restoredId=L.restoredState?L.restoredState.navigationId:0):L instanceof di?(this.lastId=L.id,this.scheduleScrollEvent(L,this.urlSerializer.parse(L.urlAfterRedirects).fragment)):L instanceof $i&&L.code===gi.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(L,this.urlSerializer.parse(L.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(L=>{L instanceof si&&(L.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(L.position):L.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(L.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(L,ae){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new si(L,"popstate"===this.lastSource?this.store[this.restoredId]:null,ae))})},0)})}ngOnDestroy(){var L,ae;null===(L=this.routerEventsSubscription)||void 0===L||L.unsubscribe(),null===(ae=this.scrollEventsSubscription)||void 0===ae||ae.unsubscribe()}}return M=N,(0,u.A)(N,"\u0275fac",function(L){o.QTQ()}),(0,u.A)(N,"\u0275prov",o.jDH({token:M,factory:M.\u0275fac})),N})();function xs(M,N){return{\u0275kind:M,\u0275providers:N}}function qo(){const M=(0,o.WQX)(o.zZn);return N=>{var ie,L;const ae=M.get(o.o8S);if(N!==ae.components[0])return;const Le=M.get(kr),$e=M.get(so);1===M.get(No)&&Le.initialNavigation(),null===(ie=M.get(Dl,null,o.$GK.Optional))||void 0===ie||ie.setUpPreloading(),null===(L=M.get(Ns,null,o.$GK.Optional))||void 0===L||L.init(),Le.resetRootComponentType(ae.componentTypes[0]),$e.closed||($e.next(),$e.complete(),$e.unsubscribe())}}const so=new o.nKC("",{factory:()=>new R.B}),No=new o.nKC("",{providedIn:"root",factory:()=>1}),Dl=new o.nKC("");function rc(M){return xs(0,[{provide:Dl,useExisting:Na},{provide:ra,useExisting:M}])}function oc(M){return xs(9,[{provide:iu,useValue:W},{provide:qa,useValue:(0,p.A)({skipNextTransition:!(null==M||!M.skipInitialTransition)},M)}])}const sc=[w.aZ,{provide:Ie,useClass:Ve},kr,me,{provide:At,useFactory:function Zc(M){return M.routerState.root},deps:[kr]},pr,[]];let vs=(()=>{var M;class N{constructor(){}static forRoot(L,ae){return{ngModule:N,providers:[sc,[],{provide:Br,multi:!0,useValue:L},[],null!=ae&&ae.errorHandler?{provide:Je,useValue:ae.errorHandler}:[],{provide:Ks,useValue:ae||{}},null!=ae&&ae.useHash?{provide:w.hb,useClass:w.fw}:{provide:w.hb,useClass:w.Sm},{provide:Ns,useFactory:()=>{const M=(0,o.WQX)(w.Xr),N=(0,o.WQX)(o.SKi),ie=(0,o.WQX)(Ks),L=(0,o.WQX)(q),ae=(0,o.WQX)(Ie);return ie.scrollOffset&&M.setOffset(ie.scrollOffset),new Yc(ae,L,M,N,ie)}},null!=ae&&ae.preloadingStrategy?rc(ae.preloadingStrategy).\u0275providers:[],null!=ae&&ae.initialNavigation?su(ae):[],null!=ae&&ae.b
1indToComponentInputs?xs(8,[Pa,{provide:jo,useExisting:Pa}]).\u0275providers:[],null!=ae&&ae.enableViewTransitions?oc().\u0275providers:[],[{provide:Do,useFactory:qo},{provide:o.iLQ,multi:!0,useExisting:Do}]]}}static forChild(L){return{ngModule:N,providers:[{provide:Br,multi:!0,useValue:L}]}}}return M=N,(0,u.A)(N,"\u0275fac",function(L){return new(L||M)}),(0,u.A)(N,"\u0275mod",o.$C({type:M})),(0,u.A)(N,"\u0275inj",o.G2t({})),N})();function su(M){return["disabled"===M.initialNavigation?xs(3,[{provide:o.hnV,multi:!0,useFactory:()=>{const N=(0,o.WQX)(kr);return()=>{N.setUpLocationChangeListener()}}},{provide:No,useValue:2}]).\u0275providers:[],"enabledBlocking"===M.initialNavigation?xs(2,[{provide:No,useValue:0},{provide:o.hnV,multi:!0,deps:[o.zZn],useFactory:N=>{const ie=N.get(w.hj,Promise.resolve());return()=>ie.then(()=>new Promise(L=>{const ae=N.get(kr),Le=N.get(so);Ur(ae,()=>{L(!0)}),N.get(q).afterPreactivation=()=>(L(!0),Le.closed?(0,x.of)(void 0):Le),ae.initialNavigation()}))}}]).\u0275providers:[]]}const Do=new o.nKC("")},6157:(le,E,d)=>{"use strict";d.d(E,{En:()=>fe,Vm:()=>Ie,EH:()=>ge,gp:()=>D});var p=d(9379),u=d(7786),o=d(1985),v=d(1413),O=d(9974),x=d(4360),U=d(5343),re=d(983),be=d(7673),ue=d(8810),X=d(8071);class te{constructor(Ht,Zt,Vt){this.kind=Ht,this.value=Zt,this.error=Vt,this.hasValue="N"===Ht}observe(Ht){return $(this,Ht)}do(Ht,Zt,Vt){const{kind:gt,value:dt,error:Ct}=this;return"N"===gt?null==Ht?void 0:Ht(dt):"E"===gt?null==Zt?void 0:Zt(Ct):null==Vt?void 0:Vt()}accept(Ht,Zt,Vt){var gt;return(0,X.T)(null===(gt=Ht)||void 0===gt?void 0:gt.next)?this.observe(Ht):this.do(Ht,Zt,Vt)}toObservable(){const{kind:Ht,value:Zt,error:Vt}=this,gt="N"===Ht?(0,be.of)(Zt):"E"===Ht?(0,ue.$)(()=>Vt):"C"===Ht?re.w:0;if(!gt)throw new TypeError("Unexpected notification kind ".concat(Ht));return gt}static createNext(Ht){return new te("N",Ht)}static createError(Ht){return new te("E",void 0,Ht)}static createComplete(){return te.completeNotification}}function $(ft,Ht){var Zt,Vt,gt;const{kind:dt,value:Ct,error:Et}=ft;if("string"!=typeof dt)throw new TypeError('Invalid notification, missing "kind"');"N"===dt?null===(Zt=Ht.next)||void 0===Zt||Zt.call(Ht,Ct):"E"===dt?null===(Vt=Ht.error)||void 0===Vt||Vt.call(Ht,Et):null===(gt=Ht.complete)||void 0===gt||gt.call(Ht)}te.completeNotification=new te("C");var se=d(6354),De=d(9437),Ce=d(5964),ce=d(8750);function _(ft,Ht,Zt,Vt){return(0,O.N)((gt,dt)=>{let Ct;Ht&&"function"!=typeof Ht?({duration:Zt,element:Ct,connector:Vt}=Ht):Ct=Ht;const Et=new Map,dn=Ut=>{Et.forEach(Ut),Ut(dt)},Bn=Ut=>dn(_t=>_t.error(Ut));let Hn=0,Cr=!1;const Qt=new x.H(dt,Ut=>{try{const _t=ft(Ut);let Ft=Et.get(_t);if(!Ft){Et.set(_t,Ft=Vt?Vt():new v.B);const mn=function mt(Ut,_t){const Ft=new o.c(mn=>{Hn++;const jn=_t.subscribe(mn);return()=>{jn.unsubscribe(),0==--Hn&&Cr&&Qt.unsubscribe()}});return Ft.key=Ut,Ft}(_t,Ft);if(dt.next(mn),Zt){const jn=(0,x._)(Ft,()=>{Ft.complete(),null==jn||jn.unsubscribe()},void 0,void 0,()=>Et.delete(_t));Qt.add((0,ce.Tg)(Zt(mn)).subscribe(jn))}}Ft.next(Ct?Ct(Ut):Ut)}catch(_t){Bn(_t)}},()=>dn(Ut=>
1Ut.complete()),Bn,()=>Et.clear(),()=>(Cr=!0,0===Hn));gt.subscribe(Qt)})}var R=d(1397);function w(ft,Ht){return Ht?Zt=>Zt.pipe(w((Vt,gt)=>(0,ce.Tg)(ft(Vt,gt)).pipe((0,se.T)((dt,Ct)=>Ht(Vt,dt,gt,Ct))))):(0,O.N)((Zt,Vt)=>{let gt=0,dt=null,Ct=!1;Zt.subscribe((0,x._)(Vt,Et=>{dt||(dt=(0,x._)(Vt,void 0,()=>{dt=null,Ct&&Vt.complete()}),(0,ce.Tg)(ft(Et,gt++)).subscribe(dt))},()=>{Ct=!0,!dt&&Vt.complete()}))})}var z=d(6697),oe=d(3953),V=d(4745);const k={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},K="__@ngrx/effects_create__";function ge(ft,Ht={}){const Zt=Ht.functional?ft:ft(),Vt=(0,p.A)((0,p.A)({},k),Ht);return Object.defineProperty(Zt,K,{value:Vt}),Zt}function ze(ft){return Object.getPrototypeOf(ft)}function Ke(ft){return"function"==typeof ft}function Me(ft){return ft.filter(Ke)}function He(ft,Ht,Zt){const Vt=ze(ft),dt=Vt&&"Object"!==Vt.constructor.name?Vt.constructor.name:null,Ct=function We(ft){return function ve(ft){return Object.getOwnPropertyNames(ft).filter(Vt=>!(!ft[Vt]||!ft[Vt].hasOwnProperty(K))&&ft[Vt][K].hasOwnProperty("dispatch")).map(Vt=>(0,p.A)({propertyName:Vt},ft[Vt][K]))}(ft)}(ft).map(({propertyName:Et,dispatch:dn,useEffectsErrorHandler:Bn})=>{const Hn="function"==typeof ft[Et]?ft[Et]():ft[Et],Cr=Bn?Zt(Hn,Ht):Hn;return!1===dn?Cr.pipe(function Q(){return(0,O.N)((ft,Ht)=>{ft.subscribe((0,x._)(Ht,U.l))})}()):Cr.pipe(function J(){return(0,O.N)((ft,Ht)=>{ft.subscribe((0,x._)(Ht,Zt=>{Ht.next(te.createNext(Zt))},()=>{Ht.next(te.createComplete()),Ht.complete()},Zt=>{Ht.next(te.createError(Zt)),Ht.complete()}))})}()).pipe((0,se.T)(mt=>({effect:ft[Et],notification:mt,propertyName:Et,sourceName:dt,sourceInstance:ft})))});return(0,u.h)(...Ct)}function je(ft,Ht,Zt=10){return ft.pipe((0,De.W)(Vt=>(Ht&&Ht.handleError(Vt),Zt<=1?ft:je(ft,Ht,Zt-1))))}let fe=(()=>{var ft;class Ht extends o.c{constructor(Vt){super(),Vt&&(this.source=Vt)}lift(Vt){const gt=new Ht;return gt.source=this,gt.operator=Vt,gt}}return(ft=Ht).\u0275fac=function(Vt){return new(Vt||ft)(oe.KVO(V.sA))},ft.\u0275prov=oe.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"}),Ht})();function D(...ft){return(0,Ce.p)(Ht=>ft.some(Zt=>"string"==typeof Zt?Zt===Ht.type:Zt.type===Ht.type))}const H=new oe.nKC("@ngrx/effects Internal Root Guard"),Se=new oe.nKC("@ngrx/effects User Provided Effects"),Ue=new oe.nKC("@ngrx/effects Internal Root Effects"),at=new oe.nKC("@ngrx/effects Internal Root Effects Instances"),hn=new oe.nKC("@ngrx/effects Internal Feature Effects"),ln=new oe.nKC("@ngrx/effects Internal Feature Effects Instance Groups"),et=new oe.nKC("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>je}),G="@ngrx/effects/init";function en(ft){return Dn(ft,"ngrxOnInitEffects")}function Dn(ft,Ht){return ft&&Ht in ft&&"function"==typeof ft[Ht]}(0,V.VP)(G);let Pn=(()=>{var ft;class Ht extends v.B{constructor(Vt,gt){super(),this.errorHandler=Vt,this.effectsErrorHandler=gt}addEffects(Vt){this.next(Vt)}toActions(){return this.pipe(_(Vt=>function bt(ft){return!!ft.constructor&&"Object"!==ft.constructor.name&&"Function"!==ft.constructor.name}(Vt)?ze(Vt):Vt),(0,R.Z)(Vt=>Vt.pipe(_($n))),(0,R.Z)(Vt=>{const gt=Vt.pipe(w(Ct=>function In(ft,Ht){return Zt=>{const Vt=He(Zt,ft,Ht);return function Tt(ft){return Dn(ft,"ngrxOnRunEffects")}(Zt)?Zt.ngrxOnRunEffects(Vt):Vt}}(this.errorHandler,this.effectsErrorHandler)(Ct)),(0,se.T)(Ct=>(function Te(ft,Ht){if("N"===ft.notification.kind){const Zt=ft.notification.value;!function P(ft){return"function"!=typeof ft&&ft&&ft.type&&"string"==typeof ft.type}(Zt)&&Ht.handleError(new Error("Effect ".concat(function F({propertyName:ft,sourceInstance:Ht,sourceName:Zt}){const Vt="function"==typeof Ht[ft];return Zt?'"'.concat(Zt,".").concat(String(ft)).concat(Vt?"()":"",'"'):'"'.concat(String(ft),'()"')}(ft)," dispatched an invalid action: ").concat(function de(ft){try{return JSON.stringify(ft)}catch(Ht){return ft}}(Zt))))}}(Ct,this.errorHandler),Ct.notification)),(0,Ce.p)(Ct=>"N"===Ct.kind&&null!=Ct.value),function B(){return(0,O.N)((ft,Ht)=>{ft.subscribe((0,x._)(Ht,Zt=>$(Zt,Ht)))})}()),dt=Vt.pipe((0,z.s)(1),(0,Ce.p)(en),(0,se.T)(Ct=>Ct.ngrxOnInitEffects()));return(0,u.h)(gt,dt)}))}}
1return(ft=Ht).\u0275fac=function(Vt){return new(Vt||ft)(oe.KVO(oe.zcH),oe.KVO(et))},ft.\u0275prov=oe.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"}),Ht})();function $n(ft){return function Oe(ft){return Dn(ft,"ngrxOnIdentifyEffects")}(ft)?ft.ngrxOnIdentifyEffects():""}let xt=(()=>{var ft;class Ht{get isStarted(){return!!this.effectsSubscription}constructor(Vt,gt){this.effectSources=Vt,this.store=gt,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return(ft=Ht).\u0275fac=function(Vt){return new(Vt||ft)(oe.KVO(Pn),oe.KVO(V.il))},ft.\u0275prov=oe.jDH({token:ft,factory:ft.\u0275fac,providedIn:"root"}),Ht})(),qe=(()=>{var ft;class Ht{constructor(Vt,gt,dt,Ct,Et,dn,Bn){this.sources=Vt,gt.start();for(const Hn of Ct)Vt.addEffects(Hn);dt.dispatch({type:G})}addEffects(Vt){this.sources.addEffects(Vt)}}return(ft=Ht).\u0275fac=function(Vt){return new(Vt||ft)(oe.KVO(Pn),oe.KVO(xt),oe.KVO(V.il),oe.KVO(at),oe.KVO(V.wc,8),oe.KVO(V.ae,8),oe.KVO(H,8))},ft.\u0275mod=oe.$C({type:ft}),ft.\u0275inj=oe.G2t({}),Ht})(),Kt=(()=>{var ft;class Ht{constructor(Vt,gt,dt,Ct){const Et=gt.flat();for(const dn of Et)Vt.addEffects(dn)}}return(ft=Ht).\u0275fac=function(Vt){return new(Vt||ft)(oe.KVO(qe),oe.KVO(ln),oe.KVO(V.wc,8),oe.KVO(V.ae,8))},ft.\u0275mod=oe.$C({type:ft}),ft.\u0275inj=oe.G2t({}),Ht})(),Ie=(()=>{var ft;class Ht{static forFeature(...Vt){const gt=Vt.flat(),dt=Me(gt);return{ngModule:Kt,providers:[dt,{provide:hn,multi:!0,useValue:gt},{provide:Se,multi:!0,useValue:[]},{provide:ln,multi:!0,useFactory:Ve,deps:[hn,Se]}]}}static forRoot(...Vt){const gt=Vt.flat(),dt=Me(gt);return{ngModule:qe,providers:[dt,{provide:Ue,useValue:[gt]},{provide:H,useFactory:yt},{provide:Se,multi:!0,useValue:[]},{provide:at,useFactory:Ve,deps:[Ue,Se]}]}}}return(ft=Ht).\u0275fac=function(Vt){return new(Vt||ft)},ft.\u0275mod=oe.$C({type:ft}),ft.\u0275inj=oe.G2t({}),Ht})();function Ve(ft,Ht){const Zt=[];for(const Vt of ft)Zt.push(...Vt);for(const Vt of Ht)Zt.push(...Vt);return Zt.map(Vt=>function tt(ft){return ft instanceof oe.nKC||Ke(ft)}(Vt)?(0,oe.WQX)(Vt):Vt)}function yt(){const ft=(0,oe.WQX)(xt,{optional:!0,skipSelf:!0}),Ht=(0,oe.WQX)(Ue,{self:!0});if((1!==Ht.length||0!==Ht[0].length)&&ft)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},4745:(le,E,d)=>{"use strict";d.d(E,{sA:()=>qe,il:()=>zt,ae:()=>Mi,md:()=>si,wc:()=>ar,VP:()=>_,UX:()=>ui,vy:()=>Gr,on:()=>oi,xk:()=>R});var p=d(9379),u=d(3953),o=d(4412),v=d(1985),O=d(1413),x=d(6780),Q=d(9687);const be=new class re extends Q.q{}(class U extends x.R{constructor(Nt,qt){super(Nt,qt),this.scheduler=Nt,this.work=qt}schedule(Nt,qt=0){return qt>0?super.schedule(Nt,qt):(this.delay=qt,this.state=Nt,this.scheduler.flush(this),this)}execute(Nt,qt){return qt>0||this.closed?super.execute(Nt,qt):this._execute(Nt,qt)}requestAsyncId(Nt,qt,kt=0){return null!=kt&&kt>0||null==kt&&this.delay>0?super.requestAsyncId(Nt,qt,kt):(Nt.flush(this),0)}});var X=d(941),ne=d(3993),te=d(2816),$=d(6354),se=d(3294),De=d(9079);const Ce={};function _(nt,Nt){if(Ce[nt]=(Ce[nt]||0)+1,"function"==typeof Nt)return B(nt,(...kt)=>(0,p.A)((0,p.A)({},Nt(...kt)),{},{type:nt}));switch(Nt?Nt._as:"empty"){case"empty":return B(nt,()=>({type:nt}));case"props":return B(nt,kt=>(0,p.A)((0,p.A)({},kt),{},{type:nt}));default:throw new Error("Unexpected config.")}}function R(){return{_as:"props",_p:void 0}}function B(nt,Nt){return Object.defineProperty(Nt,"type",{value:nt,writable:!1})}const Fe="@ngrx/store/init";let We=(()=>{var nt;class Nt extends o.t{constructor(){super({type:Fe})}next(kt){if("function"==typeof kt)throw new TypeError("\n        Dispatch expected an object, instead it received a function.\n        If you're using the createAction function, make sure to invoke the function\n        before dispatching the action. For example, someAction should be someAction().");if(typeof kt>"u")throw new TypeError("Actions must be objects");if(typeof kt.type>"u")throw new TypeError("Actions must have a type property");super.next(kt)}complete(){}ngOnDestroy(){super.complete()}}
1return(nt=Nt).\u0275fac=function(kt){return new(kt||nt)},nt.\u0275prov=u.jDH({token:nt,factory:nt.\u0275fac}),Nt})();const ze=[We],bt=new u.nKC("@ngrx/store Internal Root Guard"),Ke=new u.nKC("@ngrx/store Internal Initial State"),Me=new u.nKC("@ngrx/store Initial State"),tt=new u.nKC("@ngrx/store Reducer Factory"),He=new u.nKC("@ngrx/store Internal Reducer Factory Provider"),ot=new u.nKC("@ngrx/store Initial Reducers"),je=new u.nKC("@ngrx/store Internal Initial Reducers"),fe=new u.nKC("@ngrx/store Store Features"),D=new u.nKC("@ngrx/store Internal Store Reducers"),H=new u.nKC("@ngrx/store Internal Feature Reducers"),Se=new u.nKC("@ngrx/store Internal Feature Configs"),Ue=new u.nKC("@ngrx/store Internal Store Features"),at=new u.nKC("@ngrx/store Internal Feature Reducers Token"),hn=new u.nKC("@ngrx/store Feature Reducers"),ln=new u.nKC("@ngrx/store User Provided Meta Reducers"),et=new u.nKC("@ngrx/store Meta Reducers"),G=new u.nKC("@ngrx/store Internal Resolved Meta Reducers"),_e=new u.nKC("@ngrx/store User Runtime Checks Config"),Te=new u.nKC("@ngrx/store Internal User Runtime Checks Config"),P=new u.nKC("@ngrx/store Internal Runtime Checks"),F=new u.nKC("@ngrx/store Check if Action types are unique");function Oe(nt,Nt={}){const qt=Object.keys(nt),kt={};for(let Rn=0;Rn<qt.length;Rn++){const sr=qt[Rn];"function"==typeof nt[sr]&&(kt[sr]=nt[sr])}const An=Object.keys(kt);return function(sr,Hr){sr=void 0===sr?Nt:sr;let xr=!1;const fi={};for(let Tr=0;Tr<An.length;Tr++){const Li=An[Tr],S=sr[Li],me=(0,kt[Li])(S,Hr);fi[Li]=me,xr=xr||me!==S}return xr?fi:sr}}function Tt(...nt){return function(Nt){if(0===nt.length)return Nt;const qt=nt[nt.length-1];return nt.slice(0,-1).reduceRight((An,Rn)=>Rn(An),qt(Nt))}}function Dt(nt,Nt){return Array.isArray(Nt)&&Nt.length>0&&(nt=Tt.apply(null,[...Nt,nt])),(qt,kt)=>{const An=nt(qt);return(Rn,sr)=>An(Rn=void 0===Rn?kt:Rn,sr)}}new u.nKC("@ngrx/store Root Store Provider"),new u.nKC("@ngrx/store Feature State Provider");class Dn extends v.c{}class Pn extends We{}let In=(()=>{var nt;class Nt extends o.t{get currentReducers(){return this.reducers}constructor(kt,An,Rn,sr){super(sr(Rn,An)),this.dispatcher=kt,this.initialState=An,this.reducers=Rn,this.reducerFactory=sr}addFeature(kt){this.addFeatures([kt])}addFeatures(kt){const An=kt.reduce((Rn,{reducers:sr,reducerFactory:Hr,metaReducers:xr,initialState:fi,key:Tr})=>{const Li="function"==typeof sr?function en(nt){const Nt=Array.isArray(nt)&&nt.length>0?Tt(...nt):qt=>qt;return(qt,kt)=>(qt=Nt(qt),(An,Rn)=>qt(An=void 0===An?kt:An,Rn))}(xr)(sr,fi):Dt(Hr,xr)(sr,fi);return Rn[Tr]=Li,Rn},{});this.addReducers(An)}removeFeature(kt){this.removeFeatures([kt])}removeFeatures(kt){this.removeReducers(kt.map(An=>An.key))}addReducer(kt,An){this.addReducers({[kt]:An})}addReducers(kt){this.reducers=(0,p.A)((0,p.A)({},this.reducers),kt),this.updateReducers(Object.keys(kt))}removeReducer(kt){this.removeReducers([kt])}removeReducers(kt){kt.forEach(An=>{this.reducers=function vt(nt,Nt){return Object.keys(nt).filter(qt=>qt!==Nt).reduce((qt,kt)=>Object.assign(qt,{[kt]:nt[kt]}),{})}(this.reducers,An)}),this.updateReducers(kt)}updateReducers(kt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:"@ngrx/store/update-reducers",features:kt})}ngOnDestroy(){this.complete()}}return(nt=Nt).\u0275fac=function(kt){return new(kt||nt)(u.KVO(Pn),u.KVO(Me),u.KVO(ot),u.KVO(tt))},nt.\u0275prov=u.jDH({token:nt,factory:nt.\u0275fac}),Nt})();const xt=[In,{provide:Dn,useExisting:In},{provide:Pn,useExisting:We}];let qe=(()=>{var nt;class Nt extends O.B{ngOnDestroy(){this.complete()}}return(nt=Nt).\u0275fac=(()=>{let qt;return function(An){return(qt||(qt=u.xGo(nt)))(An||nt)}})(),nt.\u0275prov=u.jDH({token:nt,factory:nt.\u0275fac}),Nt})();const Kt=[qe];class Ie extends v.c{}let Ve=(()=>{var nt;class Nt extends o.t{constructor(kt,An,Rn,sr){super(sr);const Tr=kt.pipe((0,X.Q)(be)).pipe((0,ne.E)(An)).pipe((0,te.S)(yt,{state:sr}));this.stateSubscription=Tr.subscribe(({state:Li,action:h})=>{this.next(Li),Rn.next(h)}),this.state=(0,De.ot)(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return(nt=Nt).INIT=Fe,nt.\u0275fac=function(kt){return new(kt||nt)(u.KVO(We),u.KVO(Dn),u.KVO(qe),u.KVO(Me))},nt.\u0275prov=u.jDH({token:nt,factory:nt.\u0275fac}),Nt})();function yt(nt={state:void 0},[Nt,qt]){const{state:kt}=nt;return{state:qt(kt,Nt),action:Nt}}const Rt=[Ve,{provide:Ie,useExisting:Ve}];let zt=(()=>{var nt;class Nt extends v.c{constructor(kt,An,Rn,sr){super(),this.actionsObserver=An,this.reducerManager=Rn,this.injector=sr,this.source=kt,this.state=kt.state}select(kt,...An){return Ht.call(null,kt,...An)(this)}selectSignal(kt,An){return(0,u.EWP)(()=>kt(this.state()),An)}lift(kt){const An=new Nt(this,this.actionsObserver,this.reducerManager);return An.operator=kt,An}
1dispatch(kt,An){if("function"==typeof kt)return this.processDispatchFn(kt,An);this.actionsObserver.next(kt)}next(kt){this.actionsObserver.next(kt)}error(kt){this.actionsObserver.error(kt)}complete(){this.actionsObserver.complete()}addReducer(kt,An){this.reducerManager.addReducer(kt,An)}removeReducer(kt){this.reducerManager.removeReducer(kt)}processDispatchFn(kt,An){var Rn,sr;!function V(nt,Nt){if(null==nt)throw new Error("".concat(Nt," must be defined."))}(this.injector,"Store Injector");const Hr=null!==(Rn=null!==(sr=null==An?void 0:An.injector)&&void 0!==sr?sr:function Zt(){try{return(0,u.WQX)(u.zZn)}catch(nt){return}}())&&void 0!==Rn?Rn:this.injector;return(0,u.QZP)(()=>{const xr=kt();(0,u.O8t)(()=>this.dispatch(xr))},{injector:Hr})}}return(nt=Nt).\u0275fac=function(kt){return new(kt||nt)(u.KVO(Ie),u.KVO(We),u.KVO(In),u.KVO(u.zZn))},nt.\u0275prov=u.jDH({token:nt,factory:nt.\u0275fac}),Nt})();const ft=[zt];function Ht(nt,Nt,...qt){return function(An){let Rn;if("string"==typeof nt){const sr=[Nt,...qt].filter(Boolean);Rn=An.pipe(function J(...nt){const Nt=nt.length;if(0===Nt)throw new Error("list of properties cannot be empty.");return(0,$.T)(qt=>{let kt=qt;for(let An=0;An<Nt;An++){const Rn=null==kt?void 0:kt[nt[An]];if(!(typeof Rn<"u"))return;kt=Rn}return kt})}(nt,...sr))}else{if("function"!=typeof nt)throw new TypeError("Unexpected type '".concat(typeof nt,"' in select operator,")+" expected 'string' or 'function'");Rn=An.pipe((0,$.T)(sr=>nt(sr,Nt)))}return Rn.pipe((0,se.F)())}}const Vt="https://ngrx.io/guide/store/configuration/runtime-checks";function gt(nt){return void 0===nt}function dt(nt){return null===nt}function Ct(nt){return Array.isArray(nt)}function Hn(nt){return"object"==typeof nt&&null!==nt}function mt(nt){return"function"==typeof nt}let Ft=!1;function Jn(nt,Nt){return nt===Nt}function Er(nt,Nt=Jn,qt=Jn){let Rn,kt=null,An=null;return{memoized:function fi(){if(void 0!==Rn)return Rn.result;if(!kt)return An=nt.apply(null,arguments),kt=arguments,An;if(!function fr(nt,Nt,qt){for(let kt=0;kt<nt.length;kt++)if(!qt(nt[kt],Nt[kt]))return!0;return!1}(arguments,kt,Nt))return An;const Tr=nt.apply(null,arguments);return kt=arguments,qt(An,Tr)?An:(An=Tr,Tr)},reset:function sr(){kt=null,An=null},setResult:function Hr(Tr=void 0){Rn={result:Tr}},clearResult:function xr(){Rn=void 0}}}function Ti(nt,Nt,qt,kt){if(void 0===qt){const Rn=Nt.map(sr=>sr(nt));return kt.memoized.apply(null,Rn)}const An=Nt.map(Rn=>Rn(nt,qt));return kt.memoized.apply(null,[...An,qt])}function ui(nt){return function Qr(...nt){return function Ui(nt,Nt={stateFn:Ti}){return function(...qt){let kt=qt;if(Array.isArray(kt[0])){const[Tr,...Li]=kt;kt=[...Tr,...Li]}else 1===kt.length&&function zi(nt){return!!nt&&"object"==typeof nt&&Object.values(nt).every(Nt=>"function"==typeof Nt)}(kt[0])&&(kt=function Bo(nt){const Nt=Object.values(nt),qt=Object.keys(nt);return[...Nt,(...An)=>qt.reduce((Rn,sr,Hr)=>(0,p.A)((0,p.A)({},Rn),{},{[sr]:An[Hr]}),{})]}(kt[0]));const An=kt.slice(0,kt.length-1),Rn=kt[kt.length-1],sr=An.filter(Tr=>Tr.release&&"function"==typeof Tr.release),Hr=nt(function(...Tr){return Rn.apply(null,Tr)}),xr=Er(function(Tr,Li){return Nt.stateFn.apply(null,[Tr,An,Li,Hr])});return Object.assign(xr.memoized,{release:function fi(){xr.reset(),Hr.reset(),sr.forEach(Tr=>Tr.release())},projector:Hr.memoized,setResult:xr.setResult,clearResult:xr.clearResult})}}(Er)(...nt)}(Nt=>{const qt=Nt[nt];return!function jn(){return Ft}()&&(0,u.naY)()&&!(nt in Nt)&&console.warn('@ngrx/store: The feature name "'.concat(nt,'" does ')+"not exist in the state, therefore createFeatureSelector cannot access it.  Be sure it is imported in a loaded module "+"using StoreModule.forRoot('".concat(nt,"', ...) or ")+"StoreModule.forFeature('".concat(nt,"', ...).  If the default ")+"state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored."),qt},Nt=>Nt)}function Ze(nt){return nt instanceof u.nKC?(0,u.WQX)(nt):nt}function Mt(nt,Nt){return Nt.map((qt,kt)=>{if(nt[kt]instanceof u.nKC){const An=(0,u.WQX)(nt[kt]);return{key:qt.key,reducerFactory:An.reducerFactory?An.reducerFactory:Oe,metaReducers:An.metaReducers?An.metaReducers:[],initialState:An.initialState}}return qt})}function pt(nt){return nt.map(Nt=>Nt instanceof u.nKC?(0,u.WQX)(Nt):Nt)}function Xt(nt){return"function"==typeof nt?nt():nt}function Cn(nt,Nt){return nt.concat(Nt)}function un(){if((0,u.WQX)(zt,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function vr(nt){Object.freeze(nt);const Nt=mt(nt);return Object.getOwnPropertyNames(nt).forEach(qt=>{if(!qt.startsWith("\u0275")&&function _t(nt,Nt){return Object.prototype.hasOwnProperty.call(nt,Nt)}(nt,qt)&&(!Nt||"caller"!==qt&&"callee"!==qt&&"arguments"!==qt)){const kt=nt[qt];(Hn(kt)||mt(kt))&&!Object.isFrozen(kt)&&vr(kt)}}),nt}function co(nt,Nt=[]){return(gt(nt)||dt(nt))&&0===Nt.length?{path:["root"],value:nt}:Object.keys(nt).reduce((kt,An)=>{if(kt)return kt;const Rn=nt[An];return function Ut(nt){return mt(nt)&&nt.hasOwnProperty("\u0275cmp")}(Rn)?kt:!(gt(Rn)||dt(Rn)||function Bn(nt){return"number"==typeof nt}(Rn)||function dn(nt){return"boolean"==typeof nt}(Rn)||function Et(nt){return"string"==typeof nt}(Rn)||Ct(Rn))&&(function Qt(nt){if(!function Cr(nt){return Hn(nt)&&!Ct(nt)}(nt))return!1;const Nt=Object.getPrototypeOf(nt);return Nt===Object.prototype||null===Nt}(Rn)?co(Rn,[...Nt,An]):{path:[...Nt,An],value:Rn})},!1)}function Qi(nt,Nt){if(!1===nt)return;const qt=nt.path.join("."),kt=new Error("Detected unserializable ".concat(Nt,' at "').concat(qt,'". ').concat(Vt,"#strict").concat(Nt,"serializability"));throw kt.value=nt.value,kt.unserializablePath=qt,kt}
1function ci(nt){return(0,u.naY)()?(0,p.A)({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},nt):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Vi({strictActionSerializability:nt,strictStateSerializability:Nt}){return qt=>nt||Nt?function Si(nt,Nt){return function(qt,kt){Nt.action(kt)&&Qi(co(kt),"action");const An=nt(qt,kt);return Nt.state()&&Qi(co(An),"state"),An}}(qt,{action:kt=>nt&&!$r(kt),state:()=>Nt}):qt}function di({strictActionImmutability:nt,strictStateImmutability:Nt}){return qt=>nt||Nt?function ir(nt,Nt){return function(qt,kt){const An=Nt.action(kt)?vr(kt):kt,Rn=nt(qt,An);return Nt.state()?vr(Rn):Rn}}(qt,{action:kt=>nt&&!$r(kt),state:()=>Nt}):qt}function $r(nt){return nt.type.startsWith("@ngrx")}function gi({strictActionWithinNgZone:nt}){return Nt=>nt?function Dr(nt,Nt){return function(qt,kt){if(Nt.action(kt)&&!u.SKi.isInAngularZone())throw new Error("Action '".concat(kt.type,"' running outside NgZone. ").concat(Vt,"#strictactionwithinngzone"));return nt(qt,kt)}}(Nt,{action:qt=>nt&&!$r(qt)}):Nt}function ei(nt){return[{provide:Te,useValue:nt},{provide:_e,useFactory:Ge,deps:[Te]},{provide:P,deps:[_e],useFactory:ci},{provide:et,multi:!0,deps:[P],useFactory:di},{provide:et,multi:!0,deps:[P],useFactory:Vi},{provide:et,multi:!0,deps:[P],useFactory:gi}]}function $i(){return[{provide:F,multi:!0,deps:[P],useFactory:ht}]}function Ge(nt){return nt}function ht(nt){if(!nt.strictActionTypeUniqueness)return;const Nt=Object.entries(Ce).filter(([,qt])=>qt>1).map(([qt])=>qt);if(Nt.length)throw new Error("Action types are registered more than once, ".concat(Nt.map(qt=>'"'.concat(qt,'"')).join(", "),". ").concat(Vt,"#strictactiontypeuniqueness"))}function Bt(nt={},Nt={}){return[{provide:bt,useFactory:un},{provide:Ke,useValue:Nt.initialState},{provide:Me,useFactory:Xt,deps:[Ke]},{provide:je,useValue:nt},{provide:D,useExisting:nt instanceof u.nKC?nt:je},{provide:ot,deps:[je,[new u.y_5(D)]],useFactory:Ze},{provide:ln,useValue:Nt.metaReducers?Nt.metaReducers:[]},{provide:G,deps:[et,ln],useFactory:Cn},{provide:He,useValue:Nt.reducerFactory?Nt.reducerFactory:Oe},{provide:tt,deps:[He,G],useFactory:Dt},ze,xt,Kt,Rt,ft,ei(Nt.runtimeChecks),$i()]}function or(nt,Nt,qt={}){return[{provide:Se,multi:!0,useValue:nt instanceof Object?{}:qt}
1,{provide:fe,multi:!0,useValue:{key:nt instanceof Object?nt.name:nt,reducerFactory:qt instanceof u.nKC||!qt.reducerFactory?Oe:qt.reducerFactory,metaReducers:qt instanceof u.nKC||!qt.metaReducers?[]:qt.metaReducers,initialState:qt instanceof u.nKC||!qt.initialState?void 0:qt.initialState}},{provide:Ue,deps:[Se,fe],useFactory:Mt},{provide:H,multi:!0,useValue:nt instanceof Object?nt.reducer:Nt},{provide:at,multi:!0,useExisting:Nt instanceof u.nKC?Nt:H},{provide:hn,multi:!0,deps:[H,[new u.y_5(at)]],useFactory:pt},$i()]}let ar=(()=>{var nt;class Nt{constructor(kt,An,Rn,sr,Hr,xr){}}return(nt=Nt).\u0275fac=function(kt){return new(kt||nt)(u.KVO(We),u.KVO(Dn),u.KVO(qe),u.KVO(zt),u.KVO(bt,8),u.KVO(F,8))},nt.\u0275mod=u.$C({type:nt}),nt.\u0275inj=u.G2t({}),Nt})(),Mi=(()=>{var nt;class Nt{constructor(kt,An,Rn,sr,Hr){this.features=kt,this.featureReducers=An,this.reducerManager=Rn;const xr=kt.map((fi,Tr)=>{const h=An.shift()[Tr];return(0,p.A)((0,p.A)({},fi),{},{reducers:h,initialState:Xt(fi.initialState)})});Rn.addFeatures(xr)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return(nt=Nt).\u0275fac=function(kt){return new(kt||nt)(u.KVO(Ue),u.KVO(hn),u.KVO(In),u.KVO(ar),u.KVO(F,8))},nt.\u0275mod=u.$C({type:nt}),nt.\u0275inj=u.G2t({}),Nt})(),si=(()=>{var nt;class Nt{static forRoot(kt,An){return{ngModule:ar,providers:[...Bt(kt,An)]}}static forFeature(kt,An,Rn={}){return{ngModule:Mi,providers:[...or(kt,An,Rn)]}}}return(nt=Nt).\u0275fac=function(kt){return new(kt||nt)},nt.\u0275mod=u.$C({type:nt}),nt.\u0275inj=u.G2t({}),Nt})();function oi(...nt){return{reducer:nt.pop(),types:nt.map(kt=>kt.type)}}function Gr(nt,...Nt){const qt=new Map;for(const kt of Nt)for(const An of kt.types){const Rn=qt.get(An);qt.set(An,Rn?(Hr,xr)=>kt.reducer(Rn(Hr,xr),xr):kt.reducer)}return function(kt=nt,An){const Rn=qt.get(An.type);return Rn?Rn(kt,An):kt}}},5250:(le,E,d)=>{"use strict";d.d(E,{BK:()=>Wd,Fw:()=>mo,zt:()=>bt});var p=d(9379),u=d(467),o=d(1660);let O,x,U,Q,re,be,ue,X,ne,te,$,J,se,De,Ce,ce,_,R,w,B,z,oe,V,k,K,ge,We;var l,ze=((l=ze||{}).NOT_IMPLEMENTED="not implemented. Please override this method",l);class bt{constructor(i,c){this.major=i,this.minor=c}toString(){return"".concat(this.major,".").concat(this.minor)}}var Ke=(l=>(l.INVALIDATION="APP:INVALIDATION",l.MEDIA_STATUS="MEDIA:STATUS",l.MEDIA_PROGRESS="MEDIA:PROGRESS",l.ISSUE_PAGER_STATE="ISSUEPAGER:STATE",l))(Ke||{});const Me={sendEvent:(l,i)=>{window.dispatchEvent(new CustomEvent(l,{detail:i}))},addListener(l,i){window.addEventListener(l,i)},removeListener(l,i){window.removeEventListener(l,i)}};class tt{constructor(){(0,o.A)(this,"version",new bt(1,4))}addConnectionStateListener(i){}addInvalidationListener(i){Me.addListener(Ke.INVALIDATION,i)}invalidate(){return(0,u.A)(function*(){Me.sendEvent(Ke.INVALIDATION,{})})()}addLifecycleListener(i){}closeOnboarding(i){console.warn("app.closeOnboarding:"+ze.NOT_IMPLEMENTED)}performActionUrl(i){return(0,u.A)(function*(){console.warn("app.performActionUrl:"+ze.NOT_IMPLEMENTED)})()}performAuthentication(i){return(0,u.A)(function*(){return console.warn("app.performAuthentication:"+ze.NOT_IMPLEMENTED),{values:new Map}})()}removeConnectionStateListener(i){}removeInvalidationListener(i){Me.removeListener(Ke.INVALIDATION,i)}removeLifecycleListener(i){}}var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ot={},je={},fe={};Object.defineProperty(fe,"__esModule",{value:!0});var H,D={};Object.defineProperty(D,"__esModule",{value:!0}),D.APP_STATE_TYPE=void 0,function(l){l.STARTED="STARTED",l.RESUMED="RESUMED",l.PAUSED="PAUSED",l.STOPPED="STOPPED"}(H||(D.APP_STATE_TYPE=H={}));var Se={};Object.defineProperty(Se,"__esModule",{value:!0});var at,hn,Ue={};Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.CONNECTION_TYPE=Ue.CONNECTION_STATE=void 0,function(l){l.ONLINE="ONLINE",l.OFFLINE="OFFLINE"}(at||(Ue.CONNECTION_STATE=at={})),function(l){l.TYPE_3G="TYPE_3G",l.TYPE_WLAN="TYPE_WLAN"}(hn||(Ue.CONNECTION_TYPE=hn={}));var et,G,ln={};Object.defineProperty(ln,"__esModule",{value:!0}),ln.DisplayMode=ln.DISPLAY_MODE=void 0,function(l){l.EMBEDDED="embedded",l.MODAL="modal"}(et||(ln.DISPLAY_MODE=et={})),function(l){l.EMBEDDED="EMBEDDED",l.MODAL="MODAL"}(G||(ln.DisplayMode=G={}));var Te,P,_e={};
1Object.defineProperty(_e,"__esModule",{value:!0}),_e.LoginState=_e.ENTITLEMENT_MODE=void 0,function(l){l.ENTITLEMENT="entitlement",l.OAUTH="oauth",l.NONE="none"}(Te||(_e.ENTITLEMENT_MODE=Te={})),function(l){l.LOGGED_OUT="LOGGED_OUT",l.LOGGED_IN="LOGGED_IN"}(P||(_e.LoginState=P={}));var F={};Object.defineProperty(F,"__esModule",{value:!0});var de={};Object.defineProperty(de,"__esModule",{value:!0});var Oe,Ae={};Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.ISSUE_STATE=void 0,function(l){l.PURCHASABLE="PURCHASABLE",l.DOWNLOAD_PAUSED="DOWNLOAD_PAUSED",l.DOWNLOADING="DOWNLOADING",l.AVAILABLE="AVAILABLE",l.INSTALLING="INSTALLING",l.UPDATE="UPDATE",l.INSTALLED="INSTALLED",l.LOCKED="LOCKED",l.COMING_SOON="COMING_SOON",l.INDEXING="INDEXING",l.PARTIALLY_INSTALLED_DOWNLOADING="PARTIALLY_INSTALLED_DOWNLOADING",l.PARTIALLY_INSTALLED_PAUSED="PARTIALLY_INSTALLED_PAUSED"}(Oe||(Ae.ISSUE_STATE=Oe={}));var vt={};Object.defineProperty(vt,"__esModule",{value:!0});var Dt,Tt={};Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.MEDIA_PLAYBACK_STATE=void 0,function(l){l.NONE="NONE",l.ERROR="ERROR",l.LOADING="LOADING",l.READY="READY",l.PLAYING="PLAYING"}(Dt||(Tt.MEDIA_PLAYBACK_STATE=Dt={}));var Dn,en={};Object.defineProperty(en,"__esModule",{value:!0}),en.Platform=void 0,function(l){l.ANDROID="android",l.IOS="ios"}(Dn||(en.Platform=Dn={}));var $n,Pn={};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.PUBLICATION_TYPE=void 0,function(l){l.KIOSK="KIOSK",l.CHANNEL="CHANNEL"}($n||(Pn.PUBLICATION_TYPE=$n={}));var In={};Object.defineProperty(In,"__esModule",{value:!0});var xt={};Object.defineProperty(xt,"__esModule",{value:!0});var qe={};Object.defineProperty(qe,"__esModule",{value:!0});var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});var Ve,yt,Ie={};Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.OpenFileMode=Ie.OpenFileTarget=void 0,function(l){l.INTERNAL="INTERNAL",l.EXTERNAL="EXTERNAL"}(Ve||(Ie.OpenFileTarget=Ve={})),function(l){l.MODAL="MODAL",l.EMBEDDED="EMBEDDED"}(yt||(Ie.OpenFileMode=yt={}));var Rt={};
1Object.defineProperty(Rt,"__esModule",{value:!0});var ft,zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.METADATA_KEY=void 0,function(l){l.APP_ID="app_id",l.APP_VERSION="app_version",l.BUNDLE_ID="bundle_id",l.DEEPLINK_SCHEME="deeplink_scheme",l.PREVIEW_APP="preview_app",l.DEVICE_ID="device_id",l.DEVICE_MODEL="device_model",l.DEVICE_OS="device_os",l.PLATFORM="platform",l.LOCALE="locale",l.MANAGER_BASE_URL="manager_base_url",l.PUSH_REGISTRATION_TOKEN="push_registration_token",l.ENTITLEMENT_LOGIN="entitlement_login",l.ENTITLEMENT_TOKEN="entitlement_token",l.ENTITLEMENT_FORCED_LOGIN_ENABLED="entitlement_forced_login_enabled",l.ENTITLEMENT_LOGIN_MODE="entitlement_login_mode",l.ENTITLEMENT_MODE="entitlement_mode",l.ISSUE_ID="issue_id",l.ISSUE_NAME="issue_name",l.PUBLICATION_ID="publication_id",l.PUBLICATION_NAME="publication_name",l.PAGE_ID="page_id",l.PAGE_ALIAS="page_alias",l.PAGE_TITLE="page_title",l.PAGE_INDEX="page_index",l.PAGE_FILENAME="page_filename",l.PURPLE_VERSION="purple_version",l.ONBOARDING_MODE="onboarding_mode"}(ft||(zt.METADATA_KEY=ft={}));var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});var Zt={};Object.defineProperty(Zt,"__esModule",{value:!0});var gt,Vt={};Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.SUBSCRIPTION_STATE=void 0,function(l){l.NONE="NONE",l.PURCHASING="PURCHASING",l.VALIDATING="VALIDATING",l.PURCHASED="PURCHASED"}(gt||(Vt.SUBSCRIPTION_STATE=gt={}));var dt={};
1Object.defineProperty(dt,"__esModule",{value:!0});var Et,dn,Ct={};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.UPDATE_STOREFRONT_ERROR_CODE=Ct.UPDATE_STOREFRONT_TYPE=void 0,function(l){l.PARTIAL="PARTIAL",l.FULL="FULL",l.LOGIN="LOGIN",l.LOGOUT="LOGOUT"}(Et||(Ct.UPDATE_STOREFRONT_TYPE=Et={})),function(l){l.OFFLINE="OFFLINE",l.UNKNOWN="UNKNOWN"}(dn||(Ct.UPDATE_STOREFRONT_ERROR_CODE=dn={}));var Bn={};Object.defineProperty(Bn,"__esModule",{value:!0});var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});var Cr={},Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Ut,_t,mt={};Object.defineProperty(mt,"__esModule",{value:!0}),mt.AppSubscriptionType=mt.AppSubscriptionDuration=void 0,function(l){l.SEVEN_DAYS="SEVEN_DAYS",l.TWO_WEEKS="TWO_WEEKS",l.ONE_MONTH="ONE_MONTH",l.TWO_MONTHS="TWO_MONTHS",l.THREE_MONTHS="THREE_MONTHS",l.SIX_MONTHS="SIX_MONTHS",l.ONE_YEAR="ONE_YEAR"}(Ut||(mt.AppSubscriptionDuration=Ut={})),function(l){l.FREE="FREE",l.AUTORENEWABLE="AUTORENEWABLE",l.NONAUTORENEWABLE="NONAUTORENEWABLE"}(_t||(mt.AppSubscriptionType=_t={}));var mn,Ft={};Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.AppSubscriptionAdditionalBackIssueUnlocksType=void 0,function(l){l.DAY="DAY",l.WEEK="WEEK",l.MONTH="MONTH",l.YEAR="YEAR"}(mn||(Ft.AppSubscriptionAdditionalBackIssueUnlocksType=mn={}));var jn={};Object.defineProperty(jn,"__esModule",{value:!0});var Jn={};Object.defineProperty(Jn,"__esModule",{value:!0});var fr={};Object.defineProperty(fr,"__esModule",{value:!0});var br={};Object.defineProperty(br,"__esModule",{value:!0});var Qr,Ti,Ui,ui,Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.ContentResourceType=Er.CatalogBundleType=Er.CatalogContentType=Er.Access=void 0,function(l){l.FREE="FREE",l.HIDDEN="HIDDEN",l.PURCHASABLE="PURCHASABLE"}(Qr||(Er.Access=Qr={})),function(l){l.ISSUE="ISSUE",l.POST="POST",l.BUNDLE="BUNDLE"}(Ti||(Er.CatalogContentType=Ti={})),function(l){l.ISSUE="ISSUE",l.DOSSIER="DOSSIER"}(Ui||(Er.CatalogBundleType=Ui={})),function(l){l.ASSET="ASSET",l.CONTENT_BUNDLE="CONTENT_BUNDLE"}(ui||(Er.ContentResourceType=ui={}));var Bo,uo,zi={};Object.defineProperty(zi,"__esModule",{value:!0}),zi.IssueType=zi.PurchaseOption=void 0,function(l){l.APP_STORE_PURCHASE="APP_STORE_PURCHASE",l.APP_STORE_SUBSCRIPTION="APP_STORE_SUBSCRIPTION",l.ENTITLEMENT="ENTITLEMENT",l.SUBSCRIPTION_CODE="SUBSCRIPTION_CODE",l.TRIAL="TRIAL",l.PUBLICATION_PRODUCT="PUBLICATION_PRODUCT",l.ACCOUNT="ACCOUNT",l.NETWORK="NETWORK"}(Bo||(zi.PurchaseOption=Bo={})),function(l){l.ARTICLE="ARTICLE",l.ISSUE="ISSUE"}(uo||(zi.IssueType=uo={}));var no={};Object.defineProperty(no,"__esModule",{value:!0});var sn={};Object.defineProperty(sn,"__esModule",{value:!0});var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});var Mt={};Object.defineProperty(Mt,"__esModule",{value:!0});var Xt,pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.PublicationType=void 0,function(l){l.KIOSK="KIOSK",l.CHANNEL="CHANNEL"}(Xt||(pt.PublicationType=Xt={}));var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});var un={};Object.defineProperty(un,"__esModule",{value:!0});var ir={};Object.defineProperty(ir,"__esModule",{value:!0});var vr={};Object.defineProperty(vr,"__esModule",{value:!0});var co,Si={};Object.defineProperty(Si,"__esModule",{value:!0}),Si.SortDirection=void 0,function(l){l.ASC="ASC",l.DESC="DESC"}(co||(Si.SortDirection=co={}));var Qi={};Object.defineProperty(Qi,"__esModule",{value:!0});var Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});var ci={};Object.defineProperty(ci,"__esModule",{value:!0});var Vi={};Object.defineProperty(Vi,"__esModule",{value:!0});var di={};Object.defineProperty(di,"__esModule",{value:!0});var $r={};Object.defineProperty($r,"__esModule",{value:!0});var gi={};Object.defineProperty(gi,"__esModule",{value:!0});var ei={};Object.defineProperty(ei,"__esModule",{value:!0});var $i={};Object.defineProperty($i,"__esModule",{value:!0});var ht,Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.ERROR_CODE=void 0,function(l){l.ACCESS_DENIED="ACCESS_DENIED",l.ALREADY_LOGGED_IN="ALREADY_LOGGED_IN",l.ALREADY_OWNED="ALREADY_OWNED",l.CANCELLED="CANCELLED",l.CONFIGURATION_ERROR="CONFIGURATION_ERROR",l.DUPLICATE_CODE="DUPLICATE_CODE",l.ERROR_ILLEGAL_ARGUMENTS="ERROR_ILLEGAL_ARGUMENTS",l.ILLEGAL_ARGUMENTS="ILLEGAL_ARGUMENTS",l.INSTALLATION_LIMIT_EXCEEDED="INSTALLATION_LIMIT_EXCEEDED",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.INVALID_CODE="INVALID_CODE",l.INVALID_CREDENTIALS="INVALID_CREDENTIALS",l.NETWORK="NETWORK",l.NO_ISSUES_FOUND="NO_ISSUES_FOUND",l.NOT_AVAILABLE="NOT_AVAILABLE",l.NOT_FOUND="NOT_FOUND",l.ISSUE_NOT_FOUND="ISSUE_NOT_FOUND",l.RESOURCE_NOT_FOUND="RESOURCE_NOT_FOUND",l.NOT_HANDLED="NOT_HANDLED",l.NOTHING_LOADED="NOTHING_LOADED",l.NOT_LOGGED_IN="NOT_LOGGED_IN",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.UNKNOWN="UNKNOWN",l.UNKNOWN_CODE="UNKNOWN_CODE",l.UNKNOWN_OFFER="UNKNOWN_OFFER",l.UNKNOWN_PRODUCT="UNKNOWN_PRODUCT",l.UNKNOWN_VENDOR="UNKNOWN_VENDOR",l.USER_DEACTIVATED="USER_DEACTIVATED",l.VALIDATION_FAILED="VALIDATION_FAILED"}(ht||(Ge.ERROR_CODE=ht={}));var Bt,Mn,Nn,Gn,Jt={};
1Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.ListOperation=Jt.IntOperation=Jt.DateOperation=Jt.StringOperation=void 0,function(l){l.EQUAL="EQUAL",l.CONTAINS="CONTAINS",l.STARTS_WITH="STARTS_WITH",l.GREATER_THAN="GREATER_THAN",l.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",l.LESS_THAN="LESS_THAN",l.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",l.REGEX="REGEX"}(Bt||(Jt.StringOperation=Bt={})),function(l){l.GREATER_THAN="GREATER_THAN",l.LESS_THAN="LESS_THAN",l.EQUAL="EQUAL"}(Mn||(Jt.DateOperation=Mn={})),function(l){l.GREATER_THAN="GREATER_THAN",l.LESS_THAN="LESS_THAN",l.EQUAL="EQUAL"}(Nn||(Jt.IntOperation=Nn={})),function(l){l.CONTAINS="CONTAINS",l.CONTAINS_ONLY="CONTAINS_ONLY"}(Gn||(Jt.ListOperation=Gn={}));var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0});var _r={};Object.defineProperty(_r,"__esModule",{value:!0});var or={};Object.defineProperty(or,"__esModule",{value:!0});var ar={};Object.defineProperty(ar,"__esModule",{value:!0});var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});var si={};Object.defineProperty(si,"__esModule",{value:!0});var oi={};Object.defineProperty(oi,"__esModule",{value:!0});var Gr={};Object.defineProperty(Gr,"__esModule",{value:!0});var nt={};Object.defineProperty(nt,"__esModule",{value:!0});var Nt={};Object.defineProperty(Nt,"__esModule",{value:!0});var qt={};Object.defineProperty(qt,"__esModule",{value:!0});var kt={};Object.defineProperty(kt,"__esModule",{value:!0});var An={};Object.defineProperty(An,"__esModule",{value:!0});var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});var sr={};Object.defineProperty(sr,"__esModule",{value:!0});var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});var xr={};Object.defineProperty(xr,"__esModule",{value:!0});var fi={};Object.defineProperty(fi,"__esModule",{value:!0});var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});var Li={};Object.defineProperty(Li,"__esModule",{value:!0});var h={};Object.defineProperty(h,"__esModule",{value:!0});var S={};Object.defineProperty(S,"__esModule",{value:!0});var me={};Object.defineProperty(me,"__esModule",{value:!0});var Pe={};Object.defineProperty(Pe,"__esModule",{value:!0});var rt={};Object.defineProperty(rt,"__esModule",{value:!0});var $t={};Object.defineProperty($t,"__esModule",{value:!0});var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});var Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});var At={};Object.defineProperty(At,"__esModule",{value:!0});var jt,st={};Object.defineProperty(st,"__esModule",{value:!0}),st.PublicationProductType=void 0,function(l){l.BACK_ISSUE_COMPLETION="BACK_ISSUE_COMPLETION",l.REPEATABLE_ISSUE_PURCHASE="REPEATABLE_ISSUE_PURCHASE"}(jt||(st.PublicationProductType=jt={}));var vn={};Object.defineProperty(vn,"__esModule",{value:!0});var nr={};Object.defineProperty(nr,"__esModule",{value:!0});var Xr={};Object.defineProperty(Xr,"__esModule",{value:!0});var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});var is,ro={};Object.defineProperty(ro,"__esModule",{value:!0}),ro.SystemConsentStatus=void 0,function(l){l.GRANTED="GRANTED",l.DENIED="DENIED",l.UNDETERMINED="UNDETERMINED"}(is||(ro.SystemConsentStatus=is={}));var wo,Xo={};Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.UpdateTokenMode=void 0,function(l){l.VERIFY="VERIFY",l.REFRESH="REFRESH"}(wo||(Xo.UpdateTokenMode=wo={}));var io={};Object.defineProperty(io,"__esModule",{value:!0});var jo={};Object.defineProperty(jo,"__esModule",{value:!0});var Pa={};Object.defineProperty(Pa,"__esModule",{value:!0});var hs,Ma={};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.SearchResultSortCriteria=void 0,function(l){l.RELEVANCE="RELEVANCE",l.PUB_DATE_DESC="PUB_DATE_DESC"}(hs||(Ma.SearchResultSortCriteria=hs={}));var Ts,os={};Object.defineProperty(os,"__esModule",{value:!0}),os.SearchField=void 0,function(l){l.CONTENT="CONTENT",l.CONTENT_NAME="CONTENT_NAME",l.CONTENT_DESCRIPTION="CONTENT_DESCRIPTION",l.CUSTOM_TERMS="CUSTOM_TERMS"}(Ts||(os.SearchField=Ts={}));var Vs={};Object.defineProperty(Vs,"__esModule",{value:!0});var Js={};Object.defineProperty(Js,"__esModule",{value:!0});var zn={};Object.defineProperty(zn,"__esModule",{value:!0});var pa,bo={};Object.defineProperty(bo,"__esModule",{value:!0}),bo.StartDownloadError=void 0,function(l){l.NETWORK="NETWORK",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.NOT_FOUND="NOT_FOUND",l.UNKNOWN="UNKNOWN"}(pa||(bo.StartDownloadError=pa={}));var qs={};Object.defineProperty(qs,"__esModule",{value:!0});var yl={};
1Object.defineProperty(yl,"__esModule",{value:!0});var nu={};Object.defineProperty(nu,"__esModule",{value:!0});var El={};Object.defineProperty(El,"__esModule",{value:!0});var To={};Object.defineProperty(To,"__esModule",{value:!0});var Vo={};Object.defineProperty(Vo,"__esModule",{value:!0}),function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};Object.defineProperty(l,"__esModule",{value:!0}),c(Qt,l),c(mt,l),c(Ft,l),c(jn,l),c(Jn,l),c(fr,l),c(br,l),c(Er,l),c(zi,l),c(no,l),c(sn,l),c(Ze,l),c(Mt,l),c(pt,l),c(Cn,l),c(un,l),c(ir,l),c(vr,l),c(Si,l),c(Qi,l),c(Dr,l),c(ci,l),c(Vi,l),c(di,l),c($r,l),c(gi,l),c(ei,l),c($i,l),c(Ge,l),c(Jt,l),c(Wn,l),c(_r,l),c(or,l),c(ar,l),c(Mi,l),c(si,l),c(oi,l),c(Gr,l),c(nt,l),c(Nt,l),c(qt,l),c(kt,l),c(An,l),c(Rn,l),c(sr,l),c(Hr,l),c(xr,l),c(fi,l),c(Tr,l),c(Li,l),c(h,l),c(S,l),c(me,l),c(Pe,l),c(rt,l),c($t,l),c(Wt,l),c(Fn,l),c(Vn,l),c(Be,l),c(Ot,l),c(At,l),c(st,l),c(vn,l),c(nr,l),c(Xr,l),c(Lr,l),c(ro,l),c(Xo,l),c(io,l),c(jo,l),c(Pa,l),c(Ma,l),c(os,l),c(Vs,l),c(Js,l),c(zn,l),c(bo,l),c(qs,l),c(yl,l),c(nu,l),c(El,l),c(To,l),c(Vo,l)}(Cr);var gs,Ss,Ds,ps={},$o={};Object.defineProperty($o,"__esModule",{value:!0}),$o.ContentStateError=gs=$o.ContentInstallState=void 0,function(l){l.NOT_INSTALLED="NOT_INSTALLED",l.INCOMPLETE="INCOMPLETE",l.COMPLETE="COMPLETE"}
1(Ss||(gs=$o.ContentInstallState=Ss={})),function(l){l.NETWORK="NETWORK",l.INSUFFICIENT_SPACE="INSUFFICIENT_SPACE",l.PAYMENT_REQUIRED="PAYMENT_REQUIRED",l.NOT_FOUND="NOT_FOUND",l.UNKNOWN="UNKNOWN"}(Ds||($o.ContentStateError=Ds={}));var Al={};Object.defineProperty(Al,"__esModule",{value:!0});var Di={};Object.defineProperty(Di,"__esModule",{value:!0});var ga={};Object.defineProperty(ga,"__esModule",{value:!0});var ru={};Object.defineProperty(ru,"__esModule",{value:!0});var ti={};Object.defineProperty(ti,"__esModule",{value:!0});var ma={};Object.defineProperty(ma,"__esModule",{value:!0});var ki={};Object.defineProperty(ki,"__esModule",{value:!0});var wa={};Object.defineProperty(wa,"__esModule",{value:!0});var Za,va={};Object.defineProperty(va,"__esModule",{value:!0}),va.ElementAlignment=void 0,function(l){l.TOP_LEFT="TOP_LEFT",l.TOP_CENTER="TOP_CENTER",l.TOP_RIGHT="TOP_RIGHT",l.CENTER_LEFT="CENTER_LEFT",l.CENTER_CENTER="CENTER_CENTER",l.CENTER_RIGHT="CENTER_RIGHT",l.BOTTOM_LEFT="BOTTOM_LEFT",l.BOTTOM_CENTER="BOTTOM_CENTER",l.BOTTOM_RIGHT="BOTTOM_RIGHT"}(Za||(va.ElementAlignment=Za={}));var Yr={};Object.defineProperty(Yr,"__esModule",{value:!0});var Ne={};Object.defineProperty(Ne,"__esModule",{value:!0}),function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};Object.defineProperty(l,"__esModule",{value:!0}),c($o,l),c(Al,l),c(Di,l),c(ga,l),c(ru,l),c(ti,l),c(ma,l),c(ki,l),c(wa,l),c(va,l),c(Yr,l),c(Ne,l)}(ps);var I={},j={};Object.defineProperty(j,"__esModule",{value:!0});var pe={};Object.defineProperty(pe,"__esModule",{value:!0});var xe={};Object.defineProperty(xe,"__esModule",{value:!0});var Ye={};Object.defineProperty(Ye,"__esModule",{value:!0});var St={};Object.defineProperty(St,"__esModule",{value:!0});var wt={};Object.defineProperty(wt,"__esModule",{value:!0});var on={};Object.defineProperty(on,"__esModule",{value:!0});var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});var Xn={};Object.defineProperty(Xn,"__esModule",{value:!0});var qn={};Object.defineProperty(qn,"__esModule",{value:!0});var Pr={};Object.defineProperty(Pr,"__esModule",{value:!0});var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0});var gr={};Object.defineProperty(gr,"__esModule",{value:!0});var Zn,er={};Object.defineProperty(er,"__esModule",{value:!0}),er.ProrationMode=void 0,function(l){l.IMMEDIATE_WITH_TIME_PRORATION="IMMEDIATE_WITH_TIME_PRORATION",l.IMMEDIATE_AND_CHARGE_PRORATED_PRICE="IMMEDIATE_AND_CHARGE_PRORATED_PRICE",l.IMMEDIATE_WITHOUT_PRORATION="IMMEDIATE_WITHOUT_PRORATION",l.DEFERRED="DEFERRED"}(Zn||(er.ProrationMode=Zn={}));var Bi={};Object.defineProperty(Bi,"__esModule",{value:!0}),function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};Object.defineProperty(l,"__esModule",{value:!0}),c(j,l),c(pe,l),c(xe,l),c(Ye,l),c(St,l),c(wt,l),c(on,l),c(Tn,l),c(Xn,l),c(qn,l),c(Pr,l),c(Ir,l),c(gr,l),c(er,l),c(Bi,l)}(I);var Xi={},fo={};Object.defineProperty(fo,"__esModule",{value:!0});var ji={};Object.defineProperty(ji,"__esModule",{value:!0});var Is={};Object.defineProperty(Is,"__esModule",{value:!0});var Fr={};Object.defineProperty(Fr,"__esModule",{value:!0});var Yi={};Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.LAST_VISITED_PATH=void 0,Yi.LAST_VISITED_PATH="lastVisitedPath",function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};
1Object.defineProperty(l,"__esModule",{value:!0}),c(fo,l),c(ji,l),c(Is,l),c(Fr,l),c(Yi,l)}(Xi);var Yo,Zi={},ho={};Object.defineProperty(ho,"__esModule",{value:!0}),ho.AssignLocalPurchasesMode=void 0,function(l){l.UNASSIGNED="UNASSIGNED",l.REASSIGN="REASSIGN",l.ASSIGN="ASSIGN"}(Yo||(ho.AssignLocalPurchasesMode=Yo={})),function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};Object.defineProperty(l,"__esModule",{value:!0}),c(ho,l)}(Zi),function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};Object.defineProperty(l,"__esModule",{value:!0}),c(fe,l),c(D,l),c(Se,l),c(Ue,l),c(ln,l),c(_e,l),c(F,l),c(de,l),c(Ae,l),c(vt,l),c(Tt,l),c(en,l),c(Pn,l),c(In,l),c(xt,l),c(qe,l),c(Kt,l),c(Ie,l),c(Rt,l),c(zt,l),c(Ht,l),c(Zt,l),c(Vt,l),c(dt,l),c(Ct,l),c(Bn,l),c(Hn,l),c(Cr,l),c(ps,l),c(I,l),c(Xi,l),c(Zi,l)}(je),function(l){var i=He&&He.__createBinding||(Object.create?function(g,y,C,Y){void 0===Y&&(Y=C);var he=Object.getOwnPropertyDescriptor(y,C);(!he||("get"in he?!y.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return y[C]}}),Object.defineProperty(g,Y,he)}:function(g,y,C,Y){void 0===Y&&(Y=C),g[Y]=y[C]}),c=He&&He.__exportStar||function(g,y){for(var C in g)"default"!==C&&!Object.prototype.hasOwnProperty.call(y,C)&&i(y,g,C)};Object.defineProperty(l,"__esModule",{value:!0}),c(je,l)}(ot);class _a{constructor(){(0,o.A)(this,"version",new bt(2,0))}getDisplayConfig(){return(0,u.A)(function*(){return{controlsEnabled:!1,displayMode:ot.DisplayMode.EMBEDDED,statusBarEnabled:!1,titleBarEnabled:!1}})()}getDisplayMode(i){this.getDisplayConfig().then(c=>i(c.displayMode.toLowerCase()))}isControlsEnabled(i){this.getDisplayConfig().then(c=>i(c.controlsEnabled))}isStatusBarEnabled(i){this.getDisplayConfig().then(c=>i(c.statusBarEnabled))}isTitleBarEnabled(i){this.getDisplayConfig().then(c=>i(c.titleBarEnabled))}}class Zo{constructor(){(0,o.A)(this,"version",new bt(1,0))}assignLocalPurchases(i){return(0,u.A)(function*(){return Promise.resolve(void 0)})()}getUserData(){return(0,u.A)(function*(){return Promise.resolve({token:void 0})})()}login(i){return(0,u.A)(function*(){return Promise.resolve(void 0)})()}logout(){return(0,u.A)(function*(){return Promise.resolve(void 0)})()}}class Ro{constructor(){(0,o.A)(this,"version",new bt(2,0))}createBookmark(i){return(0,u.A)(function*(){return console.warn("bookmark.createBookmark:"+ze.NOT_IMPLEMENTED),null})()}deleteBookmark(i){return(0,u.A)(function*(){console.warn("bookmark.deleteBookmark:"+ze.NOT_IMPLEMENTED)})()}getBookmarks(){return(0,u.A)(function*(){return console.warn("bookmark.getBookmarks:"+ze.NOT_IMPLEMENTED),{bookmarks:[]}})()}}class ea{constructor(){(0,o.A)(this,"version",new bt(1,7))}open(i){return Promise.resolve()}getLocalContents(){return(0,u.A)(function*(){return console.warn("content.getLocalContents:"+ze.NOT_IMPLEMENTED),{contents:[],previewContents:[]}})()}syncLocalContents(i){return(0,u.A)(function*(){console.warn("content.syncLocalContents:"+ze.NOT_IMPLEMENTED)})()}startDownload(i){return(0,u.A)(function*(){console.warn("content.startDownload:"+ze.NOT_IMPLEMENTED)})()}pauseDownload(i){return(0,u.A)(function*(){console.warn("content.pauseDownload:"+ze.NOT_IMPLEMENTED)})()}deleteDownload(i){return(0,u.A)(function*(){console.warn("content.deleteDownload:"+ze.NOT_IMPLEMENTED)})()}getContentStates(i){return(0,u.A)(function*(){return Object.fromEntries(i.contents.map(({contentId:c})=>[c,{contentId:c,installState:gs.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}]))})()}addContentStateListener(i,c){console.warn("content.addContentStateListener:"+ze.NOT_IMPLEMENT
1ED)}removeContentStateListener(i,c){console.warn("content.removeContentStateListener:"+ze.NOT_IMPLEMENTED)}getPostResourceUrl(i){return(0,u.A)(function*(){return console.warn("content.getPostResourceUrl:"+ze.NOT_IMPLEMENTED),""})()}}var $s=function(l,i){return($s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,g){c.__proto__=g}||function(c,g){for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(c[y]=g[y])})(l,i)};function tr(l,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function c(){this.constructor=l}$s(l,i),l.prototype=null===i?Object.create(i):(c.prototype=i.prototype,new c)}var It=function(){return It=Object.assign||function(l){for(var i,c=1,g=arguments.length;c<g;c++)for(var y in i=arguments[c])Object.prototype.hasOwnProperty.call(i,y)&&(l[y]=i[y]);return l},It.apply(this,arguments)};function xn(l,i){var c={};for(var g in l)Object.prototype.hasOwnProperty.call(l,g)&&i.indexOf(g)<0&&(c[g]=l[g]);if(null!=l&&"function"==typeof Object.getOwnPropertySymbols){var y=0;for(g=Object.getOwnPropertySymbols(l);y<g.length;y++)i.indexOf(g[y])<0&&Object.prototype.propertyIsEnumerable.call(l,g[y])&&(c[g[y]]=l[g[y]])}return c}function Or(l,i,c,g){return new(c||(c=Promise))(function(C,Y){function he(Xe){try{Ee(g.next(Xe))}catch(ut){Y(ut)}}function ke(Xe){try{Ee(g.throw(Xe))}catch(ut){Y(ut)}}function Ee(Xe){Xe.done?C(Xe.value):function y(C){return C instanceof c?C:new c(function(Y){Y(C)})}(Xe.value).then(he,ke)}Ee((g=g.apply(l,i||[])).next())})}function ni(l,i){var g,y,C,Y,c={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return Y={next:he(0),throw:he(1),return:he(2)},"function"==typeof Symbol&&(Y[Symbol.iterator]=function(){return this}),Y;function he(Ee){return function(Xe){return function ke(Ee){if(g)throw new TypeError("Generator is already executing.");for(;Y&&(Y=0,Ee[0]&&(c=0)),c;)try{if(g=1,y&&(C=2&Ee[0]?y.return:Ee[0]?y.throw||((C=y.return)&&C.call(y),0):y.next)&&!(C=C.call(y,Ee[1])).done)return C;switch(y=0,C&&(Ee=[2&Ee[0],C.value]),Ee[0]){case 0:case 1:C=Ee;break;case 4:return c.label++,{value:Ee[1],done:!1};case 5:c.label++,y=Ee[1],Ee=[0];continue;case 7:Ee=c.ops.pop(),c.trys.pop();continue;default:if(!(C=(C=c.trys).length>0&&C[C.length-1])&&(6===Ee[0]||2===Ee[0])){c=0;continue}if(3===Ee[0]&&(!C||Ee[1]>C[0]&&Ee[1]<C[3])){c.label=Ee[1];break}if(6===Ee[0]&&c.label<C[1]){c.label=C[1],C=Ee;break}if(C&&c.label<C[2]){c.label=C[2],c.ops.push(Ee);break}C[2]&&c.ops.pop(),c.trys.pop();continue}Ee=i.call(l,c)}catch(Xe){Ee=[6,Xe],y=0}finally{g=C=0}if(5&Ee[0])throw Ee[1];return{value:Ee[0]?Ee[1]:void 0,done:!0}}([Ee,Xe])}}}function mi(l,i,c){if(c||2===arguments.length)for(var C,g=0,y=i.length;g<y;g++)(C||!(g in i))&&(C||(C=Array.prototype.slice.call(i,0,g)),C[g]=i[g]);return l.concat(C||Array.prototype.slice.call(i))}"function"==typeof SuppressedError&&SuppressedError;var po="Invariant Violation",Jo=Object.setPrototypeOf,_i=void 0===Jo?function(l,i){return l.__proto__=i,l}:Jo,Ja=function(l){function i(c){void 0===c&&(c=po);var g=l.call(this,"number"==typeof c?po+": "+c+" (see https://github.com/apollographql/invariant-packages)":c)||this;return g.framesToPop=1,g.name=po,_i(g,i.prototype),g}return tr(i,l),i}(Error);function ta(l,i){if(!l)throw new Ja(i)}var oo=["debug","log","warn","error","silent"],Ws=oo.indexOf("log");function So(l){return function(){if(oo.indexOf(l)>=Ws)return(console[l]||console.log).apply(console,arguments)}}!function(l){l.debug=So("debug"),l.log=So("log"),l.warn=So("warn"),l.error=So("error")}(ta||(ta={}));var Os="3.13.5";function Wi(l){try{return l()}catch(i){}}var Ra=Wi(function(){return globalThis})||Wi(function(){return window})||Wi(function(){return self})||Wi(function(){return global})||Wi(function(){return Wi.constructor("return this")()}),Cl=new Map;function Ks(l){var i=Cl.get(l)||1;return Cl.set(l,i+1),"".concat(l,":").concat(i,":").concat(Math.random().toString(36).slice(2))}function Ms(l){return function(i){for(var c=[],g=1;g<arguments.length;g++)c[g-1]=arguments[g];if("number"==typeof i){var y=i;(i=Tl(y))||(i=na(y,c),c=[])}l.apply(void 0,[i].concat(c))}}var Br=Object.assign(function(l,i){for(var c=[],g=2;g<arguments.length;g++)c[g-2]=arguments[g];l||ta(l,Tl(i,c)||na(i,c))},{debug:Ms(ta.debug),log:Ms(ta.log),warn:Ms(ta.warn),error:Ms(ta.error)});function pr(l){for(var i=[],c=1;c<arguments.length;c++)i[c-1]=arguments[c];return new Ja(Tl(l,i)||na(l,i))}var ai=Symbol.for("ApolloErrorMessageHandler_"+Os);function bl(l){if("string"==typeof l)return l;try{return function Ps(l,i){void 0===i&&(i=0);var c=Ks("stringifyForDisplay");return JSON.stringify(l,function(g,y){return void 0===y?c:y},i).split(JSON.stringify(c)).join("<undefined>")}(l,2).slice(0,1e3)}catch(i){return"<non-serializable>"}}function Tl(l,i){if(void 0===i&&(i=[]),l)return Ra[ai]&&Ra[ai](l,i.map(bl))}function na(l,i){if(void 0===i&&(i=[]),l)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:Os,message:l,args:i.map(bl)})))}function ya(l,i){if(!l)throw new Error(i)}function qa(l,i){if(!l)throw new Error("Unexpected invariant triggered.")}const W=/\r\n|[\n\r]/g;function ee(l,i){let c=0,g=1;for(const y of l.body.matchAll(W)){if("number"==typeof y.index||qa(!1),y.index>=i)break;c=y.index+y[0].length,g+=1}
1return{line:g,column:i+1-c}}function Je(l){return q(l.source,ee(l.source,l.start))}function q(l,i){const c=l.locationOffset.column-1,g="".padStart(c)+l.body,y=i.line-1,Y=i.line+(l.locationOffset.line-1),ke=i.column+(1===i.line?c:0),Ee="".concat(l.name,":").concat(Y,":").concat(ke,"\n"),Xe=g.split(/\r\n|[\n\r]/g),ut=Xe[y];if(ut.length>120){const lt=Math.floor(ke/80),Lt=ke%80,rn=[];for(let cn=0;cn<ut.length;cn+=80)rn.push(ut.slice(cn,cn+80));return Ee+Re([["".concat(Y," |"),rn[0]],...rn.slice(1,lt+1).map(cn=>["|",cn]),["|","^".padStart(Lt)],["|",rn[lt+1]]])}return Ee+Re([["".concat(Y-1," |"),Xe[y-1]],["".concat(Y," |"),ut],["|","^".padStart(ke)],["".concat(Y+1," |"),Xe[y+1]]])}function Re(l){const i=l.filter(([g,y])=>void 0!==y),c=Math.max(...i.map(([g])=>g.length));return i.map(([g,y])=>g.padStart(c)+(y?" "+y:"")).join("\n")}class an extends Error{constructor(i,...c){var g,y,C;const{nodes:Y,source:he,positions:ke,path:Ee,originalError:Xe,extensions:ut}=function it(l){const i=l[0];return null==i||"kind"in i||"length"in i?{nodes:i,source:l[1],positions:l[2],path:l[3],originalError:l[4],extensions:l[5]}:i}(c);super(i),this.name="GraphQLError",this.path=null!=Ee?Ee:void 0,this.originalError=null!=Xe?Xe:void 0,this.nodes=Sn(Array.isArray(Y)?Y:Y?[Y]:void 0);const lt=Sn(null===(g=this.nodes)||void 0===g?void 0:g.map(rn=>rn.loc).filter(rn=>null!=rn));this.source=null!=he?he:null==lt||null===(y=lt[0])||void 0===y?void 0:y.source,this.positions=null!=ke?ke:null==lt?void 0:lt.map(rn=>rn.start),this.locations=ke&&he?ke.map(rn=>ee(he,rn)):null==lt?void 0:lt.map(rn=>ee(rn.source,rn.start));const Lt=function iu(l){return"object"==typeof l&&null!==l}(null==Xe?void 0:Xe.extensions)?null==Xe?void 0:Xe.extensions:void 0;this.extensions=null!==(C=null!=ut?ut:Lt)&&void 0!==C?C:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=Xe&&Xe.stack?Object.defineProperty(this,"stack",{value:Xe.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,an):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let i=this.message;if(this.nodes)for(const c of this.nodes)c.loc&&(i+="\n\n"+Je(c.loc));else if(this.source&&this.locations)for(const c of this.locations)i+="\n\n"+q(this.source,c);return i}toJSON(){const i={message:this.message};return null!=this.locations&&(i.locations=this.locations),null!=this.path&&(i.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(i.extensions=this.extensions),i}}function Sn(l){return void 0===l||0===l.length?void 0:l}function rr(l,i,c){return new an("Syntax Error: ".concat(c),{source:l,positions:[i]})}class Nr{constructor(i,c,g){this.start=i.start,this.end=c.end,this.startToken=i,this.endToken=c,this.source=g}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Ur{constructor(i,c,g,y,C,Y){this.kind=i,this.start=c,this.end=g,this.line=y,this.column=C,this.value=Y,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const jr={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},yi=new Set(Object.keys(jr));function kr(l){const i=null==l?void 0:l.kind;return"string"==typeof i&&yi.has(i)}var hi,ms,Kn,Ln;function ws(l){return 9===l||32===l}function Ei(l){return l>=48&&l<=57}function ra(l){return l>=97&&l<=122||l>=65&&l<=90}function Qn(l){return ra(l)||95===l}function Rs(l){return ra(l)||Ei(l)||95===l}function Na(l){var i;let c=Number.MAX_SAFE_INTEGER,g=null,y=-1;for(let Y=0;Y<l.length;++Y){var C;const he=l[Y],ke=Ns(he);ke!==he.length&&(g=null!==(C=g)&&void 0!==C?C:Y,y=Y,0!==Y&&ke<c&&(c=ke))}return l.map((Y,he)=>0===he?Y:Y.slice(c)).slice(null!==(i=g)&&void 0!==i?i:0,y+1)}function Ns(l){let i=0;for(;i<l.length&&ws(l.charCodeAt(i));)++i;return i}!function(l){l.QUERY="query",l.MUTATION="mutation",l.SUBSCRIPTION="subscription"}(hi||(hi={})),function(l){l.QUERY="QUERY",l.MUTATION="MUTATION",l.SUBSCRIPTION="SUBSCRIPTION",l.FIELD="FIELD",l.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",l.FRAGMENT_SPREAD="FRAGMENT_SPREAD",l.INLINE_FRAGMENT="INLINE_FRAGMENT",l.VARIABLE_DEFINITION="VARIABLE_DEFINITION",l.SC
1HEMA="SCHEMA",l.SCALAR="SCALAR",l.OBJECT="OBJECT",l.FIELD_DEFINITION="FIELD_DEFINITION",l.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",l.INTERFACE="INTERFACE",l.UNION="UNION",l.ENUM="ENUM",l.ENUM_VALUE="ENUM_VALUE",l.INPUT_OBJECT="INPUT_OBJECT",l.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ms||(ms={})),function(l){l.NAME="Name",l.DOCUMENT="Document",l.OPERATION_DEFINITION="OperationDefinition",l.VARIABLE_DEFINITION="VariableDefinition",l.SELECTION_SET="SelectionSet",l.FIELD="Field",l.ARGUMENT="Argument",l.FRAGMENT_SPREAD="FragmentSpread",l.INLINE_FRAGMENT="InlineFragment",l.FRAGMENT_DEFINITION="FragmentDefinition",l.VARIABLE="Variable",l.INT="IntValue",l.FLOAT="FloatValue",l.STRING="StringValue",l.BOOLEAN="BooleanValue",l.NULL="NullValue",l.ENUM="EnumValue",l.LIST="ListValue",l.OBJECT="ObjectValue",l.OBJECT_FIELD="ObjectField",l.DIRECTIVE="Directive",l.NAMED_TYPE="NamedType",l.LIST_TYPE="ListType",l.NON_NULL_TYPE="NonNullType",l.SCHEMA_DEFINITION="SchemaDefinition",l.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",l.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",l.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",l.FIELD_DEFINITION="FieldDefinition",l.INPUT_VALUE_DEFINITION="InputValueDefinition",l.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",l.UNION_TYPE_DEFINITION="UnionTypeDefinition",l.ENUM_TYPE_DEFINITION="EnumTypeDefinition",l.ENUM_VALUE_DEFINITION="EnumValueDefinition",l.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",l.DIRECTIVE_DEFINITION="DirectiveDefinition",l.SCHEMA_EXTENSION="SchemaExtension",l.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",l.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",l.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",l.UNION_TYPE_EXTENSION="UnionTypeExtension",l.ENUM_TYPE_EXTENSION="EnumTypeExtension",l.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(Kn||(Kn={})),function(l){l.SOF="<SOF>",l.EOF="<EOF>",l.BANG="!",l.DOLLAR="$",l.AMP="&",l.PAREN_L="(",l.PAREN_R=")",l.SPREAD="...",l.COLON=":",l.EQUALS="=",l.AT="@",l.BRACKET_L="[",l.BRACKET_R="]",l.BRACE_L="{",l.PIPE="|",l.BRACE_R="}",l.NAME="Name",l.INT="Int",l.FLOAT="Float",l.STRING="String",l.BLOCK_STRING="BlockString",l.COMMENT="Comment"}(Ln||(Ln={}));class Zc{constructor(i){const c=new Ur(Ln.SOF,0,0,0,0);this.source=i,this.lastToken=c,this.token=c,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let i=this.token;if(i.kind!==Ln.EOF)do{if(i.next)i=i.next;else{const c=No(this,i.end);i.next=c,c.prev=i,i=c}}while(i.kind===Ln.COMMENT);return i}}function ia(l){return l>=0&&l<=55295||l>=57344&&l<=1114111}function nc(l,i){return ou(l.charCodeAt(i))&&Df(l.charCodeAt(i+1))}function ou(l){return l>=55296&&l<=56319}function Df(l){return l>=56320&&l<=57343}function qo(l,i){const c=l.source.body.codePointAt(i);if(void 0===c)return Ln.EOF;if(c>=32&&c<=126){const g=String.fromCodePoint(c);return'"'===g?"'\"'":'"'.concat(g,'"')}return"U+"+c.toString(16).toUpperCase().padStart(4,"0")}function so(l,i,c,g,y){return new Ur(i,c,g,l.line,1+c-l.lineStart,y)}function No(l,i){const c=l.source.body,g=c.length;let y=i;for(;y<g;){const C=c.charCodeAt(y);switch(C){case 65279:case 9:case 32:case 44:++y;continue;case 10:++y,++l.line,l.lineStart=y;continue;case 13:10===c.charCodeAt(y+1)?y+=2:++y,++l.line,l.lineStart=y;continue;case 35:return el(l,y);case 33:return so(l,Ln.BANG,y,y+1);case 36:return so(l,Ln.DOLLAR,y,y+1);case 38:return so(l,Ln.AMP,y,y+1);case 40:return so(l,Ln.PAREN_L,y,y+1);case 41:return so(l,Ln.PAREN_R,y,y+1);case 46:if(46===c.charCodeAt(y+1)&&46===c.charCodeAt(y+2))return so(l,Ln.SPREAD,y,y+3);break;case 58:return so(l,Ln.COLON,y,y+1);case 61:return so(l,Ln.EQUALS,y,y+1);case 64:return so(l,Ln.AT,y,y+1);case 91:return so(l,Ln.BRACKET_L,y,y+1);case 93:return so(l,Ln.BRACKET_R,y,y+1);case 123:return so(l,Ln.BRACE_L,y,y+1);case 124:return so(l,Ln.PIPE,y,y+1);case 125:return so(l,Ln.BRACE_R,y,y+1);case 34:return 34===c.charCodeAt(y+1)&&34===c.charCodeAt(y+2)?oc(l,y):Dl(l,y)}if(Ei(C)||45===C)return Jc(l,y,C);if(Qn(C))return Il(l,y);throw rr(l.source,y,39===C?"Unexpected single quote character ('), did you mean to use a double quote (\")?":ia(C)||nc(c,y)?"Unexpected character: ".concat(qo(l,y),"."):"Invalid character: ".concat(qo(l,y),"."))}return so(l,Ln.EOF,g,g)}function el(l,i){const c=l.source.body,g=c.length;let y=i+1;for(;y<g;){const C=c.charCodeAt(y);if(10===C||13===C)break;if(ia(C))++y;else{if(!nc(c,y))break;y+=2}}return so(l,Ln.COMMENT,i,y,c.slice(i+1,y))}
1function Jc(l,i,c){const g=l.source.body;let y=i,C=c,Y=!1;if(45===C&&(C=g.charCodeAt(++y)),48===C){if(C=g.charCodeAt(++y),Ei(C))throw rr(l.source,y,"Invalid number, unexpected digit after 0: ".concat(qo(l,y),"."))}else y=Sl(l,y,C),C=g.charCodeAt(y);if(46===C&&(Y=!0,C=g.charCodeAt(++y),y=Sl(l,y,C),C=g.charCodeAt(y)),(69===C||101===C)&&(Y=!0,C=g.charCodeAt(++y),(43===C||45===C)&&(C=g.charCodeAt(++y)),y=Sl(l,y,C),C=g.charCodeAt(y)),46===C||Qn(C))throw rr(l.source,y,"Invalid number, expected digit but got: ".concat(qo(l,y),"."));return so(l,Y?Ln.FLOAT:Ln.INT,i,y,g.slice(i,y))}function Sl(l,i,c){if(!Ei(c))throw rr(l.source,i,"Invalid number, expected digit but got: ".concat(qo(l,i),"."));const g=l.source.body;let y=i+1;for(;Ei(g.charCodeAt(y));)++y;return y}function Dl(l,i){const c=l.source.body,g=c.length;let y=i+1,C=y,Y="";for(;y<g;){const he=c.charCodeAt(y);if(34===he)return Y+=c.slice(C,y),so(l,Ln.STRING,i,y+1,Y);if(92!==he){if(10===he||13===he)break;if(ia(he))++y;else{if(!nc(c,y))throw rr(l.source,y,"Invalid character within String: ".concat(qo(l,y),"."));y+=2}}else{Y+=c.slice(C,y);const ke=117===c.charCodeAt(y+1)?123===c.charCodeAt(y+2)?rc(l,y):Iv(l,y):ss(l,y);Y+=ke.value,y+=ke.size,C=y}}throw rr(l.source,y,"Unterminated string.")}function rc(l,i){const c=l.source.body;let g=0,y=3;for(;y<12;){const C=c.charCodeAt(i+y++);if(125===C){if(y<5||!ia(g))break;return{value:String.fromCodePoint(g),size:y}}if(g=g<<4|ic(C),g<0)break}throw rr(l.source,i,'Invalid Unicode escape sequence: "'.concat(c.slice(i,i+y),'".'))}function Iv(l,i){const c=l.source.body,g=qc(c,i+2);if(ia(g))return{value:String.fromCodePoint(g),size:6};if(ou(g)&&92===c.charCodeAt(i+6)&&117===c.charCodeAt(i+7)){const y=qc(c,i+8);if(Df(y))return{value:String.fromCodePoint(g,y),size:12}}throw rr(l.source,i,'Invalid Unicode escape sequence: "'.concat(c.slice(i,i+6),'".'))}function qc(l,i){return ic(l.charCodeAt(i))<<12|ic(l.charCodeAt(i+1))<<8|ic(l.charCodeAt(i+2))<<4|ic(l.charCodeAt(i+3))}function ic(l){return l>=48&&l<=57?l-48:l>=65&&l<=70?l-55:l>=97&&l<=102?l-87:-1}function ss(l,i){const c=l.source.body;switch(c.charCodeAt(i+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw rr(l.source,i,'Invalid character escape sequence: "'.concat(c.slice(i,i+2),'".'))}function oc(l,i){const c=l.source.body,g=c.length;let y=l.lineStart,C=i+3,Y=C,he="";const ke=[];for(;C<g;){const Ee=c.charCodeAt(C);if(34===Ee&&34===c.charCodeAt(C+1)&&34===c.charCodeAt(C+2)){he+=c.slice(Y,C),ke.push(he);const Xe=so(l,Ln.BLOCK_STRING,i,C+3,Na(ke).join("\n"));return l.line+=ke.length-1,l.lineStart=y,Xe}if(92!==Ee||34!==c.charCodeAt(C+1)||34!==c.charCodeAt(C+2)||34!==c.charCodeAt(C+3))if(10!==Ee&&13!==Ee)if(ia(Ee))++C;else{if(!nc(c,C))throw rr(l.source,C,"Invalid character within String: ".concat(qo(l,C),"."));C+=2}else he+=c.slice(Y,C),ke.push(he),13===Ee&&10===c.charCodeAt(C+1)?C+=2:++C,he="",Y=C,y=C;else he+=c.slice(Y,C),Y=C+1,C+=4}throw rr(l.source,C,"Unterminated string.")}function Il(l,i){const c=l.source.body,g=c.length;let y=i+1;for(;y<g&&Rs(c.charCodeAt(y));)++y;return so(l,Ln.NAME,i,y,c.slice(i,y))}function vs(l){return ri(l,[])}function ri(l,i){switch(typeof l){case"string":return JSON.stringify(l);case"function":return l.name?"[function ".concat(l.name,"]"):"[function]";case"object":return function _s(l,i){if(null===l)return"null";if(i.includes(l))return"[Circular]";const c=[...i,l];if(function ed(l){return"function"==typeof l.toJSON}(l)){const g=l.toJSON();if(g!==l)return"string"==typeof g?g:ri(g,c)}else if(Array.isArray(l))return function su(l,i){if(0===l.length)return"[]";if(i.length>2)return"[Array]";const c=Math.min(10,l.length),g=l.length-c,y=[];for(let C=0;C<c;++C)y.push(ri(l[C],i));return 1===g?y.push("... 1 more item"):g>1&&y.push("... ".concat(g," more items")),"["+y.join(", ")+"]"}(l,c);return function td(l,i){const c=Object.entries(l);return 0===c.length?"{}":i.length>2?"["+function Do(l){const i=Object.prototype.toString.call(l).replace(/^\[object /,"").replace(/]$/,"");if("Object"===i&&"function"==typeof l.constructor){const c=l.constructor.name;if("string"==typeof c&&""!==c)return c}return i}(l)+"]":"{ "+c.map(([g,y])=>g+": "+ri(y,i)).join(", ")+" }"}(l,c)}(l,i);default:return String(l)}}const yo=globalThis.process?function(l,i){return l instanceof i}:function(l,i){if(l instanceof i)return!0;
vendor: 16,384 bytes, line 1
1if("object"==typeof l&&null!==l){var c;const g=i.prototype[Symbol.toStringTag];if(g===(Symbol.toStringTag in l?l[Symbol.toStringTag]:null===(c=l.constructor)||void 0===c?void 0:c.name)){const C=vs(l);throw new Error("Cannot use ".concat(g,' "').concat(C,'" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.'))}}return!1};class Io{constructor(i,c="GraphQL request",g={line:1,column:1}){"string"==typeof i||ya(!1,"Body must be a string. Received: ".concat(vs(i),".")),this.body=i,this.name=c,this.locationOffset=g,this.locationOffset.line>0||ya(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ya(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class Pv{constructor(i,c={}){const g=function xa(l){return yo(l,Io)}(i)?i:new Io(i);this._lexer=new Zc(g),this._options=c,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const i=this.expectToken(Ln.NAME);return this.node(i,{kind:Kn.NAME,value:i.value})}parseDocument(){return this.node(this._lexer.token,{kind:Kn.DOCUMENT,definitions:this.many(Ln.SOF,this.parseDefinition,Ln.EOF)})}parseDefinition(){if(this.peek(Ln.BRACE_L))return this.parseOperationDefinition();const i=this.peekDescription(),c=i?this._lexer.lookahead():this._lexer.token;if(c.kind===Ln.NAME){switch(c.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(i)throw rr(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(c.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(c)}parseOperationDefinition(){const i=this._lexer.token;if(this.peek(Ln.BRACE_L))return this.node(i,{kind:Kn.OPERATION_DEFINITION,operation:hi.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const c=this.parseOperationType();let g;return this.peek(Ln.NAME)&&(g=this.parseName()),this.node(i,{kind:Kn.OPERATION_DEFINITION,operation:c,name:g,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const i=this.expectToken(Ln.NAME);switch(i.value){case"query":return hi.QUERY;case"mutation":return hi.MUTATION;case"subscription":return hi.SUBSCRIPTION}throw this.unexpected(i)}parseVariableDefinitions(){return this.optionalMany(Ln.PAREN_L,this.parseVariableDefinition,Ln.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Kn.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ln.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ln.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const i=this._lexer.token;return this.expectToken(Ln.DOLLAR),this.node(i,{kind:Kn.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Kn.SELECTION_SET,selections:this.many(Ln.BRACE_L,this.parseSelection,Ln.BRACE_R)})}parseSelection(){return this.peek(Ln.SPREAD)?this.parseFragment():this.parseField()}parseField(){const i=this._lexer.token,c=this.parseName();let g,y;return this.expectOptionalToken(Ln.COLON)?(g=c,y=this.parseName()):y=c,this.node(i,{kind:Kn.FIELD,alias:g,name:y,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Ln.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(i){return this.optionalMany(Ln.PAREN_L,i?this.parseConstArgument:this.parseArgument,Ln.PAREN_R)}parseArgument(i=!1){const c=this._lexer.token,g=this.parseName();return this.expectToken(Ln.COLON),this.node(c,{kind:Kn.ARGUMENT,name:g,value:this.parseValueLiteral(i)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const i=this._lexer.token;this.expectToken(Ln.SPREAD);const c=this.expectOptionalKeyword("on");return!c&&this.peek(Ln.NAME)?this.node(i,{kind:Kn.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(i,{kind:Kn.INLINE_FRAGMENT,typeCondition:c?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const i=this._lexer.token;return this.expectKeyword("fragment"),this.node(i,!0===this._options.allowLegacyFragmentVariables?{kind:Kn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}:{kind:Kn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(i){const c=this._lexer.token;switch(c.kind){case Ln.BRACKET_L:return this.parseList(i);case Ln.BRACE_L:return this.parseObject(i);case Ln.INT:return this.advanceLexer(),this.node(c,{kind:Kn.INT,value:c.value});case Ln.FLOAT:return this.advanceLexer(),this.node(c,{kind:Kn.FLOAT,value:c.value});case Ln.STRING:case Ln.BLOCK_STRING:return this.parseStringLiteral();case Ln.NAME:switch(this.advanceLexer(),c.value){case"true":return this.node(c,{kind:Kn.BOOLEAN,value:!0});case"false":return this.node(c,{kind:Kn.BOOLEAN,value:!1});case"null":return this.node(c,{kind:Kn.NULL});default:return this.node(c,{kind:Kn.ENUM,value:c.value})}case Ln.DOLLAR:if(i){if(this.expectToken(Ln.DOLLAR),this._lexer.token.kind===Ln.NAME)throw rr(this._lexer.source,c.start,'Unexpected variable "$'.concat(this._lexer.token.value,'" in constant value.'));throw this.unexpected(c)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const i=this._lexer.token;return this.advanceLexer(),this.node(i,{kind:Kn.STRING,value:i.value,block:i.kind===Ln.BLOCK_STRING})}parseList(i){return this.node(this._lexer.token,{kind:Kn.LIST,values:this.any(Ln.BRACKET_L,()=>this.parseValueLiteral(i),Ln.BRACKET_R)})}parseObject(i){return this.node(this._lexer.token,{kind:Kn.OBJECT,fields:this.any(Ln.BRACE_L,()=>this.parseObjectField(i),Ln.BRACE_R)})}parseObjectField(i){const c=this._lexer.token,g=this.parseName();return this.expectToken(Ln.COLON),this.node(c,{kind:Kn.OBJECT_FIELD,name:g,value:this.parseValueLiteral(i)})}parseDirectives(i){const c=[];for(;this.peek(Ln.AT);)c.push(this.parseDirective(i));return c}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(i){const c=this._lexer.token;return this.expectToken(Ln.AT),this.node(c,{kind:Kn.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(i)})}parseTypeReference(){const i=this._lexer.token;let c;if(this.expectOptionalToken(Ln.BRACKET_L)){const g=this.parseTypeReference();this.expectToken(Ln.BRACKET_R),c=this.node(i,{kind:Kn.LIST_TYPE,type:g})}else c=this.parseNamedType();return this.expectOptionalToken(Ln.BANG)?this.node(i,{kind:Kn.NON_NULL_TYPE,type:c}):c}parseNamedType(){return this.node(this._lexer.token,{kind:Kn.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Ln.STRING)||this.peek(Ln.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("schema");const g=this.parseConstDirectives(),y=this.many(Ln.BRACE_L,this.parseOperationTypeDefinition,Ln.BRACE_R);return this.node(i,{kind:Kn.SCHEMA_DEFINITION,description:c,directives:g,operationTypes:y})}parseOperationTypeDefinition(){const i=this._lexer.token,c=this.parseOperationType();this.expectToken(Ln.COLON);const g=this.parseNamedType();return this.node(i,{kind:Kn.OPERATION_TYPE_DEFINITION,operation:c,type:g})}parseScalarTypeDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("scalar");const g=this.parseName(),y=this.parseConstDirectives();return this.node(i,{kind:Kn.SCALAR_TYPE_DEFINITION,description:c,name:g,directives:y})}parseObjectTypeDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("type");const g=this.parseName(),y=this.parseImplementsInterfaces(),C=this.parseConstDirectives(),Y=this.parseFieldsDefinition();return this.node(i,{kind:Kn.OBJECT_TYPE_DEFINITION,description:c,name:g,interfaces:y,directives:C,fields:Y})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Ln.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Ln.BRACE_L,this.parseFieldDefinition,Ln.BRACE_R)}parseFieldDefinition(){const i=this._lexer.token,c=this.parseDescription(),g=this.parseName(),y=this.parseArgumentDefs();this.expectToken(Ln.COLON);const C=this.parseTypeReference(),Y=this.parseConstDirectives();return this.node(i,{kind:Kn.FIELD_DEFINITION,description:c,name:g,arguments:y,type:C,directives:Y})}parseArgumentDefs(){return this.optionalMany(Ln.PAREN_L,this.parseInputValueDef,Ln.PAREN_R)}parseInputValueDef(){const i=this._lexer.token,c=this.parseDescription(),g=this.parseName();this.expectToken(Ln.COLON);const y=this.parseTypeReference();let C;this.expectOptionalToken(Ln.EQUALS)&&(C=this.parseConstValueLiteral());const Y=this.parseConstDirectives();return this.node(i,{kind:Kn.INPUT_VALUE_DEFINITION,description:c,name:g,type:y,defaultValue:C,directives:Y})}parseInterfaceTypeDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("interface");const g=this.parseName(),y=this.parseImplementsInterfaces(),C=this.parseConstDirectives(),Y=this.parseFieldsDefinition();return this.node(i,{kind:Kn.INTERFACE_TYPE_DEFINITION,description:c,name:g,interfaces:y,directives:C,fields:Y})}parseUnionTypeDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("union");const g=this.parseName(),y=this.parseConstDirectives(),C=this.parseUnionMemberTypes();return this.node(i,{kind:Kn.UNION_TYPE_DEFINITION,description:c,name:g,directives:y,types:C})}parseUnionMemberTypes(){return this.expectOptionalToken(Ln.EQUALS)?this.delimitedMany(Ln.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("enum");const g=this.parseName(),y=this.parseConstDirectives(),C=this.parseEnumValuesDefinition();return this.node(i,{kind:Kn.ENUM_TYPE_DEFINITION,description:c,name:g,directives:y,values:C})}parseEnumValuesDefinition(){return this.optionalMany(Ln.BRACE_L,this.parseEnumValueDefinition,Ln.BRACE_R)}parseEnumValueDefinition(){const i=this._lexer.token,c=this.parseDescription(),g=this.parseEnumValueName(),y=this.parseConstDirectives();return this.node(i,{kind:Kn.ENUM_VALUE_DEFINITION,description:c,name:g,directives:y})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw rr(this._lexer.source,this._lexer.token.start,"".concat(ac(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}parseInputObjectTypeDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("input");const g=this.parseName(),y=this.parseConstDirectives(),C=this.parseInputFieldsDefinition();return this.node(i,{kind:Kn.INPUT_OBJECT_TYPE_DEFINITION,description:c,name:g,directives:y,fields:C})}parseInputFieldsDefinition(){return this.optionalMany(Ln.BRACE_L,this.parseInputValueDef,Ln.BRACE_R)}parseTypeSystemExtension(){const i=this._lexer.lookahead();if(i.kind===Ln.NAME)switch(i.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(i)}parseSchemaExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const c=this.parseConstDirectives(),g=this.optionalMany(Ln.BRACE_L,this.parseOperationTypeDefinition,Ln.BRACE_R);if(0===c.length&&0===g.length)throw this.unexpected();return this.node(i,{kind:Kn.SCHEMA_EXTENSION,directives:c,operationTypes:g})}parseScalarTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const c=this.parseName(),g=this.parseConstDirectives();if(0===g.length)throw this.unexpected();return this.node(i,{kind:Kn.SCALAR_TYPE_EXTENSION,name:c,directives:g})}parseObjectTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const c=this.parseName(),g=this.parseImplementsInterfaces(),y=this.parseConstDirectives(),C=this.parseFieldsDefinition();if(0===g.length&&0===y.length&&0===C.length)throw this.unexpected();return this.node(i,{kind:Kn.OBJECT_TYPE_EXTENSION,name:c,interfaces:g,directives:y,fields:C})}parseInterfaceTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const c=this.parseName(),g=this.parseImplementsInterfaces(),y=this.parseConstDirectives(),C=this.parseFieldsDefinition();if(0===g.length&&0===y.length&&0===C.length)throw this.unexpected();return this.node(i,{kind:Kn.INTERFACE_TYPE_EXTENSION,name:c,interfaces:g,directives:y,fields:C})}parseUnionTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const c=this.parseName(),g=this.parseConstDirectives(),y=this.parseUnionMemberTypes();if(0===g.length&&0===y.length)throw this.unexpected();return this.node(i,{kind:Kn.UNION_TYPE_EXTENSION,name:c,directives:g,types:y})}parseEnumTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const c=this.parseName(),g=this.parseConstDirectives(),y=this.parseEnumValuesDefinition();if(0===g.length&&0===y.length)throw this.unexpected();return this.node(i,{kind:Kn.ENUM_TYPE_EXTENSION,name:c,directives:g,values:y})}parseInputObjectTypeExtension(){const i=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const c=this.parseName(),g=this.parseConstDirectives(),y=this.parseInputFieldsDefinition();if(0===g.length&&0===y.length)throw this.unexpected();return this.node(i,{kind:Kn.INPUT_OBJECT_TYPE_EXTENSION,name:c,directives:g,fields:y})}parseDirectiveDefinition(){const i=this._lexer.token,c=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Ln.AT);const g=this.parseName(),y=this.parseArgumentDefs(),C=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const Y=this.parseDirectiveLocations();return this.node(i,{kind:Kn.DIRECTIVE_DEFINITION,description:c,name:g,arguments:y,repeatable:C,locations:Y})}parseDirectiveLocations(){return this.delimitedMany(Ln.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const i=this._lexer.token,c=this.parseName();if(Object.prototype.hasOwnProperty.call(ms,c.value))return c;throw this.unexpected(i)}node(i,c){return!0!==this._options.noLocation&&(c.loc=new Nr(i,this._lexer.lastToken,this._lexer.source)),c}peek(i){return this._lexer.token.kind===i}expectToken(i){const c=this._lexer.token;if(c.kind===i)return this.advanceLexer(),c;throw rr(this._lexer.source,c.start,"Expected "
1.concat(au(i),", found ").concat(ac(c),"."))}expectOptionalToken(i){return this._lexer.token.kind===i&&(this.advanceLexer(),!0)}expectKeyword(i){const c=this._lexer.token;if(c.kind!==Ln.NAME||c.value!==i)throw rr(this._lexer.source,c.start,'Expected "'.concat(i,'", found ').concat(ac(c),"."));this.advanceLexer()}expectOptionalKeyword(i){const c=this._lexer.token;return c.kind===Ln.NAME&&c.value===i&&(this.advanceLexer(),!0)}unexpected(i){const c=null!=i?i:this._lexer.token;return rr(this._lexer.source,c.start,"Unexpected ".concat(ac(c),"."))}any(i,c,g){this.expectToken(i);const y=[];for(;!this.expectOptionalToken(g);)y.push(c.call(this));return y}optionalMany(i,c,g){if(this.expectOptionalToken(i)){const y=[];do{y.push(c.call(this))}while(!this.expectOptionalToken(g));return y}return[]}many(i,c,g){this.expectToken(i);const y=[];do{y.push(c.call(this))}while(!this.expectOptionalToken(g));return y}delimitedMany(i,c){this.expectOptionalToken(i);const g=[];do{g.push(c.call(this))}while(this.expectOptionalToken(i));return g}advanceLexer(){const{maxTokens:i}=this._options,c=this._lexer.advance();if(c.kind!==Ln.EOF&&(++this._tokenCounter,void 0!==i&&this._tokenCounter>i))throw rr(this._lexer.source,c.start,"Document contains more that ".concat(i," tokens. Parsing aborted."))}}function ac(l){const i=l.value;return au(l.kind)+(null!=i?' "'.concat(i,'"'):"")}function au(l){return function xs(l){return l===Ln.BANG||l===Ln.DOLLAR||l===Ln.AMP||l===Ln.PAREN_L||l===Ln.PAREN_R||l===Ln.SPREAD||l===Ln.COLON||l===Ln.EQUALS||l===Ln.AT||l===Ln.BRACKET_L||l===Ln.BRACKET_R||l===Ln.BRACE_L||l===Ln.PIPE||l===Ln.BRACE_R}(l)?'"'.concat(l,'"'):l}const N=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function ie(l){return L[l.charCodeAt(0)]}const L=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],ae=Object.freeze({});function Le(l,i,c=jr){const g=new Map;for(const nn of Object.values(Kn))g.set(nn,$e(i,nn));let y,Xe,ut,C=Array.isArray(l),Y=[l],he=-1,ke=[],Ee=l;const lt=[],Lt=[];do{he++;const nn=he===Y.length,On=nn&&0!==ke.length;if(nn){if(Xe=0===Lt.length?void 0:lt[lt.length-1],Ee=ut,ut=Lt.pop(),On)if(C){Ee=Ee.slice();let Yn=0;for(const[wn,ur]of ke){const Vr=wn-Yn;null===ur?(Ee.splice(Vr,1),Yn++):Ee[Vr]=ur}}else{Ee=Object.defineProperties({},Object.getOwnPropertyDescriptors(Ee));for(const[Yn,wn]of ke)Ee[Yn]=wn}he=y.index,Y=y.keys,ke=y.edits,C=y.inArray,y=y.prev}else if(ut){if(Xe=C?he:Y[he],Ee=ut[Xe],null==Ee)continue;lt.push(Xe)}let _n;if(!Array.isArray(Ee)){var rn,cn;kr(Ee)||ya(!1,"Invalid AST Node: ".concat(vs(Ee),"."));const Yn=nn?null===(rn=g.get(Ee.kind))||void 0===rn?void 0:rn.leave:null===(cn=g.get(Ee.kind))||void 0===cn?void 0:cn.enter;if(_n=null==Yn?void 0:Yn.call(i,Ee,Xe,ut,lt,Lt),_n===ae)break;if(!1===_n){if(!nn){lt.pop();continue}}else if(void 0!==_n&&(ke.push([Xe,_n]),!nn)){if(!kr(_n)){lt.pop();continue}Ee=_n}}var En;void 0===_n&&On&&ke.push([Xe,Ee]),nn?lt.pop():(y={inArray:C,index:he,keys:Y,edits:ke,prev:y},C=Array.isArray(Ee),Y=C?Ee:null!==(En=c[Ee.kind])&&void 0!==En?En:[],he=-1,ke=[],ut&&Lt.push(ut),ut=Ee)}while(void 0!==y);return 0!==ke.length?ke[ke.length-1][1]:l}function $e(l,i){const c=l[i];return"object"==typeof c?c:"function"==typeof c?{enter:c,leave:void 0}:{enter:l.enter,leave:l.leave}}const tn={Name:{leave:l=>l.value},Variable:{leave:l=>"$"+l.name},Document:{leave:l=>pn(l.definitions,"\n\n")},OperationDefinition:{leave(l){const i=lr("(",pn(l.variableDefinitions,", "),")"),c=pn([l.operation,pn([l.name,i]),pn(l.directives," ")]," ");return("query"===c?"":c+" ")+l.selectionSet}},VariableDefinition:{leave:({variable:l,type:i,defaultValue:c,directives:g})=>l+": "+i+lr(" = ",c)+lr(" ",pn(g," "))},SelectionSet:{leave:({selections:l})=>hr(l)},Field:{leave({alias:l,name:i,arguments:c,directives:g,selectionSet:y}){const C=lr("",l,": ")+i;let Y=C+lr("(",pn(c,", "),")");return Y.length>80&&(Y=C+lr("(\n",Mr(pn(c,"\n")),"\n)")),pn([Y,pn(g," "),y]," ")}},Argument:{leave:({name:l,value:i})=>l+": "+i},FragmentSpread:{leave:({name:l,directives:i})=>"..."+l+lr(" ",pn(i," "))},InlineFragment:{leave:({typeCondition:l,directives:i,selectionSet:c})=>pn(["...",lr("on ",l),pn(i," "),c]," ")},FragmentDefinition:{leave:({name:l,typeCondition:i,variableDefinitions:c,directives:g,selectionSet:y})=>"fragment ".concat(l).concat(lr("(",pn(c,", "),")")," on ").concat(i," ").concat(lr("",pn(g," ")," "))+y},IntValue:{leave:({value:l})=>l},FloatValue:{leave:({value:l})=>l}
1,StringValue:{leave:({value:l,block:i})=>i?function Yc(l){const c=l.replace(/"""/g,'\\"""'),g=c.split(/\r\n|[\n\r]/g),y=1===g.length,C=g.length>1&&g.slice(1).every(Lt=>0===Lt.length||ws(Lt.charCodeAt(0))),Y=c.endsWith('\\"""'),he=l.endsWith('"')&&!Y,ke=l.endsWith("\\"),Ee=he||ke,Xe=!y||l.length>70||Ee||C||Y;let ut="";const lt=y&&ws(l.charCodeAt(0));return(Xe&&!lt||C)&&(ut+="\n"),ut+=c,(Xe||Ee)&&(ut+="\n"),'"""'+ut+'"""'}(l):function M(l){return'"'.concat(l.replace(N,ie),'"')}(l)},BooleanValue:{leave:({value:l})=>l?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:l})=>l},ListValue:{leave:({values:l})=>"["+pn(l,", ")+"]"},ObjectValue:{leave:({fields:l})=>"{"+pn(l,", ")+"}"},ObjectField:{leave:({name:l,value:i})=>l+": "+i},Directive:{leave:({name:l,arguments:i})=>"@"+l+lr("(",pn(i,", "),")")},NamedType:{leave:({name:l})=>l},ListType:{leave:({type:l})=>"["+l+"]"},NonNullType:{leave:({type:l})=>l+"!"},SchemaDefinition:{leave:({description:l,directives:i,operationTypes:c})=>lr("",l,"\n")+pn(["schema",pn(i," "),hr(c)]," ")},OperationTypeDefinition:{leave:({operation:l,type:i})=>l+": "+i},ScalarTypeDefinition:{leave:({description:l,name:i,directives:c})=>lr("",l,"\n")+pn(["scalar",i,pn(c," ")]," ")},ObjectTypeDefinition:{leave:({description:l,name:i,interfaces:c,directives:g,fields:y})=>lr("",l,"\n")+pn(["type",i,lr("implements ",pn(c," & ")),pn(g," "),hr(y)]," ")},FieldDefinition:{leave:({description:l,name:i,arguments:c,type:g,directives:y})=>lr("",l,"\n")+i+(wi(c)?lr("(\n",Mr(pn(c,"\n")),"\n)"):lr("(",pn(c,", "),")"))+": "+g+lr(" ",pn(y," "))},InputValueDefinition:{leave:({description:l,name:i,type:c,defaultValue:g,directives:y})=>lr("",l,"\n")+pn([i+": "+c,lr("= ",g),pn(y," ")]," ")},InterfaceTypeDefinition:{leave:({description:l,name:i,interfaces:c,directives:g,fields:y})=>lr("",l,"\n")+pn(["interface",i,lr("implements ",pn(c," & ")),pn(g," "),hr(y)]," ")},UnionTypeDefinition:{leave:({description:l,name:i,directives:c,types:g})=>lr("",l,"\n")+pn(["union",i,pn(c," "),lr("= ",pn(g," | "))]," ")},EnumTypeDefinition:{leave:({description:l,name:i,directives:c,values:g})=>lr("",l,"\n")+pn(["enum",i,pn(c," "),hr(g)]," ")},EnumValueDefinition:{leave:({description:l,name:i,directives:c})=>lr("",l,"\n")+pn([i,pn(c," ")]," ")},InputObjectTypeDefinition:{leave:({description:l,name:i,directives:c,fields:g})=>lr("",l,"\n")+pn(["input",i,pn(c," "),hr(g)]," ")},DirectiveDefinition:{leave:({description:l,name:i,arguments:c,repeatable:g,locations:y})=>lr("",l,"\n")+"directive @"+i+(wi(c)?lr("(\n",Mr(pn(c,"\n")),"\n)"):lr("(",pn(c,", "),")"))+(g?" repeatable":"")+" on "+pn(y," | ")},SchemaExtension:{leave:({directives:l,operationTypes:i})=>pn(["extend schema",pn(l," "),hr(i)]," ")},ScalarTypeExtension:{leave:({name:l,directives:i})=>pn(["extend scalar",l,pn(i," ")]," ")},ObjectTypeExtension:{leave:({name:l,interfaces:i,directives:c,fields:g})=>pn(["extend type",l,lr("implements ",pn(i," & ")),pn(c," "),hr(g)]," ")},InterfaceTypeExtension:{leave:({name:l,interfaces:i,directives:c,fields:g})=>pn(["extend interface",l,lr("implements ",pn(i," & ")),pn(c," "),hr(g)]," ")},UnionTypeExtension:{leave:({name:l,directives:i,types:c})=>pn(["extend union",l,pn(i," "),lr("= ",pn(c," | "))]," ")},EnumTypeExtension:{leave:({name:l,directives:i,values:c})=>pn(["extend enum",l,pn(i," "),hr(c)]," ")},InputObjectTypeExtension:{leave:({name:l,directives:i,fields:c})=>pn(["extend input",l,pn(i," "),hr(c)]," ")}};function pn(l,i=""){var c;return null!==(c=null==l?void 0:l.filter(g=>g).join(i))&&void 0!==c?c:""}function hr(l){return lr("{\n",Mr(pn(l,"\n")),"\n}")}function lr(l,i,c=""){return null!=i&&""!==i?l+i+c:""}function Mr(l){return lr("  ",l.replace(/\n/g,"\n  "))}function wi(l){var i;return null!==(i=null==l?void 0:l.some(c=>c.includes("\n")))&&void 0!==i&&i}function Ri(l){return l.kind===Kn.FIELD||l.kind===Kn.FRAGMENT_SPREAD||l.kind===Kn.INLINE_FRAGMENT}function Ki(l,i){var c=l.directives;return!c||!c.length||function uu(l){var i=[];return l&&l.length&&l.forEach(function(c){if(function lu(l){var i=l.name.value;return"skip"===i||"include"===i}(c)){var g=c.arguments,y=c.name.value;Br(g&&1===g.length,79,y);var C=g[0];Br(C.name&&"if"===C.name.value,80,y);var Y=C.value;Br(Y&&("Variable"===Y.kind||"BooleanValue"===Y.kind),81,y),i.push({directive:c,ifArgument:C})}}),i}(c).every(function(g){var y=g.directive,C=g.ifArgument,Y=!1;return"Variable"===C.value.kind?Br(void 0!==(Y=i&&i[C.value.name.value]),78,y.name.value):Y=C.value.value,"skip"===y.name.value?!Y:Y})}function Ls(l,i,c){var g=new Set(l),y=g.size;return Le(i,{Directive:function(C){if(g.delete(C.name.value)&&(!c||!g.size))return ae}}),c?!g.size:g.size<y}function ys(l){return l&&Ls(["client","export"],l,!0)}function ka(l){var i,c,g=null===(i=l.directives)||void 0===i?void 0:i.find(function(C){return"unmask"===C.name.value});if(!g)return"mask";var y=null===(c=g.arguments)||void 0===c?void 0:c.find(function(C){return"mode"===C.name.value});return y&&"value"in y.value&&"migrate"===y.value.value?"migrate":"unmask"}const tl=()=>Object.create(null),{forEach:cu,slice:Bp}=Array.prototype,{hasOwnProperty:Mv}=Object.prototype;class oa{constructor(i=!0,c=tl){this.weakness=i,this.makeData=c}lookup(){return this.lookupArray(arguments)}lookupArray(i){let c=this;return cu.call(i,g=>c=c.getChildTrie(g)),Mv.call(c,"data")?c.data:c.data=this.makeData(Bp.call(i))}peek(){return this.peekArray(arguments)}peekArray(i){let c=this;for(let g=0,y=i.length;c&&g<y;++g){const C=c.mapFor(i[g],!1);c=C&&C.get(i[g])}return c&&c.data}remove(){return this.removeArray(arguments)}removeArray(i){let c;if(i.length){const g=i[0],y=this.mapFor(g,!1),C=y&&y.get(g);C&&(c=C.removeArray(Bp.call(i,1)),!C.data&&!C.weak&&(!C.strong||!C.strong.size)&&y.delete(g))}else c=this.data,delete this.data;return c}getChildTrie(i){const c=this.mapFor(i,!0);let g=c.get(i);return g||c.set(i,g=new oa(this.weakness,this.makeData)),g}mapFor(i,c){return this.weakness&&function If(l){switch(typeof l){case"object":if(null===l)break;case"function":return!0}return!1}(i)?this.weak||(c?this.weak=new WeakMap:void 0):this.strong||(c?this.strong=new Map:void 0)}}var jp="ReactNative"==Wi(function(){return navigator.product}),ks="function"==typeof WeakMap&&!(jp&&!global.HermesInternal),nl="function"==typeof WeakSet,Vp="function"==typeof Symbol&&"function"==typeof Symbol.for,nd=Vp&&Symbol.asyncIterator;function Zr(l){return null!==l&&"object"==typeof l}function $p(l,i){var c=i,g=[];return l.definitions.forEach(function(C){if("OperationDefinition"===C.kind)throw pr(85,C.operation,C.name?" named '".concat(C.name.value,"'"):"");"FragmentDefinition"===C.kind&&g.push(C)}),typeof c>"u"&&(Br(1===g.length,86,g.length),c=g[0].name.value),It(It({},l),{definitions:mi([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:c}}]}}],l.definitions,!0)})}function du(l){void 0===l&&(l=[]);var i={};return l.forEach(function(c){i[c.name.value]=c}),i}function rl(l,i){switch(l.kind){case"InlineFragment":return l;case"FragmentSpread":var c=l.name.value;if("function"==typeof i)return i(c);var g=i&&i[c];return Br(g,87,c),g||null;default:return null}}function wv(){}Wi(function(){return window.document.createElement}),Wi(function(){return navigator.userAgent.indexOf("jsdom")>=0});class Of{constructor(i=1/0,c=wv){this.max=i,this.dispose=c,this.map=new Map,this.newest=null,this.oldest=null}has(i){return this.map.has(i)}get(i){const c=this.getNode(i);return c&&c.value}get size(){return this.map.size}getNode(i){const c=this.map.get(i);if(c&&c!==this.newest){const{older:g,newer:y}=c;y&&(y.older=g),g&&(g.newer=y),c.older=this.newest,c.older.newer=c,c.newer=null,this.newest=c,c===this.oldest&&(this.oldest=y)}return c}set(i,c){let g=this.getNode(i);return g?g.value=c:(g={key:i,value:c,newer:null,older:this.newest},this.newest&&(this.newest.newer=g),this.newest=g,this.oldest=this.oldest||g,this.map.set(i,g),g.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(i){const c=this.map.get(i);return!!c&&(c===this.newest&&(this.newest=c.older),c===this.oldest&&(this.oldest=c.newer),c.newer&&(c.newer.older=c.older),c.older&&(c.older.newer=c.newer),this.map.delete(i),this.dispose(c.value,i),!0)}}function Pf(){}const Rv=Pf,Nv=typeof WeakRef<"u"?WeakRef:function(l){return{deref:()=>l}},Mf=typeof WeakMap<"u"?WeakMap:Map,rd=typeof FinalizationRegistry<"u"?FinalizationRegistry:function(){return{register:Pf,unregister:Pf}};class Un{constructor(i=1/0,c=Rv){this.max=i,this.dispose=c,this.map=new Mf,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const g=this.unfinalizedNodes.values();for(let y=0;y<10024;y++){const C=g.next().value;if(!C)break;this.unfinalizedNodes.delete(C);const Y=C.key;
1delete C.key,C.keyRef=new Nv(Y),this.registry.register(Y,C,C)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new rd(this.deleteNode.bind(this))}has(i){return this.map.has(i)}get(i){const c=this.getNode(i);return c&&c.value}getNode(i){const c=this.map.get(i);if(c&&c!==this.newest){const{older:g,newer:y}=c;y&&(y.older=g),g&&(g.newer=y),c.older=this.newest,c.older.newer=c,c.newer=null,this.newest=c,c===this.oldest&&(this.oldest=y)}return c}set(i,c){let g=this.getNode(i);return g?g.value=c:(g={key:i,value:c,newer:null,older:this.newest},this.newest&&(this.newest.newer=g),this.newest=g,this.oldest=this.oldest||g,this.scheduleFinalization(g),this.map.set(i,g),this.size++,g.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(i){i===this.newest&&(this.newest=i.older),i===this.oldest&&(this.oldest=i.newer),i.newer&&(i.newer.older=i.older),i.older&&(i.older.newer=i.newer),this.size--;const c=i.key||i.keyRef&&i.keyRef.deref();this.dispose(i.value,c),i.keyRef?this.registry.unregister(i):this.unfinalizedNodes.delete(i),c&&this.map.delete(c)}delete(i){const c=this.map.get(i);return!!c&&(this.deleteNode(c),!0)}scheduleFinalization(i){this.unfinalizedNodes.add(i),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}var yr=new WeakSet;function ao(l){l.size<=(l.max||-1)||yr.has(l)||(yr.add(l),setTimeout(function(){l.clean(),yr.delete(l)},100))}var Lo,Wo=function(l,i){var c=new Un(l,i);return c.set=function(g,y){var C=Un.prototype.set.call(this,g,y);return ao(this),C},c},xo=function(l,i){var c=new Of(l,i);return c.set=function(g,y){var C=Of.prototype.set.call(this,g,y);return ao(this),C},c},as=Symbol.for("apollo.cacheSize"),ls=It({},Ra[as]),us=Object.assign(function(l){return JSON.stringify(l,cr)},{reset:function(){Lo=new xo(ls.canonicalStringify||1e3)}});function cr(l,i){if(i&&"object"==typeof i){var c=Object.getPrototypeOf(i);if(c===Object.prototype||null===c){var g=Object.keys(i);if(g.every(Rf))return i;var y=JSON.stringify(g),C=Lo.get(y);if(!C){g.sort();var Y=JSON.stringify(g);C=Lo.get(Y)||g,Lo.set(y,C),Lo.set(Y,C)}var he=Object.create(c);
1return C.forEach(function(ke){he[ke]=i[ke]}),he}}return i}function Rf(l,i,c){return 0===i||c[i-1]<=l}function Es(l){return{__ref:String(l)}}function ii(l){return!(!l||"object"!=typeof l||"string"!=typeof l.__ref)}function Pl(l,i,c,g){if(function lo(l){return"IntValue"===l.kind}(c)||function Oo(l){return"FloatValue"===l.kind}(c))l[i.value]=Number(c.value);else if(function qi(l){return"BooleanValue"===l.kind}(c)||function mu(l){return"StringValue"===l.kind}(c))l[i.value]=c.value;else if(function il(l){return"ObjectValue"===l.kind}(c)){var y={};c.fields.map(function(Y){return Pl(y,Y.name,Y.value,g)}),l[i.value]=y}else if(function Nf(l){return"Variable"===l.kind}(c))l[i.value]=(g||{})[c.name.value];else if(function od(l){return"ListValue"===l.kind}(c))l[i.value]=c.values.map(function(Y){var he={};return Pl(he,i,Y,g),he[i.value]});else if(function sa(l){return"EnumValue"===l.kind}(c))l[i.value]=c.value;else{if(!function uc(l){return"NullValue"===l.kind}(c))throw pr(96,i.value,c.kind);l[i.value]=null}}us.reset();var ol=["connection","include","skip","client","rest","export","nonreactive"],vu=us,Kp=Object.assign(function(l,i,c){if(i&&c&&c.connection&&c.connection.key){if(c.connection.filter&&c.connection.filter.length>0){var g=c.connection.filter?c.connection.filter:[];g.sort();var y={};return g.forEach(function(he){y[he]=i[he]}),"".concat(c.connection.key,"(").concat(vu(y),")")}return c.connection.key}var C=l;if(i){var Y=vu(i);C+="(".concat(Y,")")}return c&&Object.keys(c).forEach(function(he){-1===ol.indexOf(he)&&(c[he]&&Object.keys(c[he]).length?C+="@".concat(he,"(").concat(vu(c[he]),")"):C+="@".concat(he))}),C},{setStringify:function(l){var i=vu;return vu=l,i}});function Ml(l,i){if(l.arguments&&l.arguments.length){var c={};return l.arguments.forEach(function(g){return Pl(c,g.name,g.value,i)}),c}return null}function wl(l){return l.alias?l.alias.value:l.name.value}function Hp(l,i,c){for(var g,y=0,C=i.selections;y<C.length;y++)if(Rl(Y=C[y])){if("__typename"===Y.name.value)return l[wl(Y)]}else g?g.push(Y):g=[Y];if("string"==typeof l.__typename)return l.__typename;if(g)for(var he=0,ke=g;he<ke.length;he++){var Y,Ee=Hp(l,rl(Y=ke[he],c).selectionSet,c);if("string"==typeof Ee)return Ee}}function Rl(l){return"Field"===l.kind}function cc(l){Br(l&&"Document"===l.kind,88);var i=l.definitions.filter(function(c){return"FragmentDefinition"!==c.kind}).map(function(c){if("OperationDefinition"!==c.kind)throw pr(89,c.kind);return c});return Br(i.length<=1,90,i.length),l}function dc(l){return cc(l),l.definitions.filter(function(i){return"OperationDefinition"===i.kind})[0]}function _u(l){return l.definitions.filter(function(i){return"OperationDefinition"===i.kind&&!!i.name}).map(function(i){return i.name.value})[0]||null}function Nl(l){return l.definitions.filter(function(i){return"FragmentDefinition"===i.kind})}function sd(l){cc(l);for(var i,c=0,g=l.definitions;c<g.length;c++){var y=g[c];if("OperationDefinition"===y.kind){var C=y.operation;if("query"===C||"mutation"===C||"subscription"===C)return y}"FragmentDefinition"===y.kind&&!i&&(i=y)}if(i)return i;throw pr(95)}function Gp(l){var i=Object.create(null),c=l&&l.variableDefinitions;return c&&c.length&&c.forEach(function(g){g.defaultValue&&Pl(i,g.variable.name,g.defaultValue)}),i}let ko=null;const xf={};let sE=1;function Lv(l){try{return l()}catch(i){}}const zp="@wry/context:Slot",Lf=Lv(()=>globalThis)||Lv(()=>global)||Object.create(null),fc=Lf[zp]||Array[zp]||function(l){try{Object.defineProperty(Lf,zp,{value:l,enumerable:!1,writable:!1,configurable:!0})}finally{return l}}(class{constructor(){this.id=["slot",sE++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let l=ko;l;l=l.parent)if(this.id in l.slots){const i=l.slots[this.id];if(i===xf)break;return l!==ko&&(ko.slots[this.id]=i),!0}return ko&&(ko.slots[this.id]=xf),!1}getValue(){if(this.hasValue())return ko.slots[this.id]}withValue(l,i,c,g){const C=ko;ko={parent:C,slots:{__proto__:null,[this.id]:l}};try{return i.apply(g,c)}finally{ko=C}}static bind(l){const i=ko;return function(){const c=ko;try{return ko=i,l.apply(this,arguments)}finally{ko=c}}}static noContext(l,i,c){if(!ko)return l.apply(c,i);{const g=ko;try{return ko=null,l.apply(c,i)}finally{ko=g}}}}),ad=new fc,{hasOwnProperty:Qp}=Object.prototype,ld=Array.from||function(l){const i=[];return l.forEach(c=>i.push(c)),i};function kf(l){const{unsubscribe:i}=l;"function"==typeof i&&(l.unsubscribe=void 0,i())}const xl=[];function Ho(l,i){if(!l)throw new Error(i||"assertion failure")}function Ff(l,i){const c=l.length;return c>0&&c===i.length&&l[c-1]===i[c-1]}function Uf(l){switch(l.length){case 0:throw new Error("unknown value");case 1:return l[0];case 2:throw l[1]}}function li(l){return l.slice(0)}let Bf=(()=>{class l{constructor(c){this.fn=c,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++l.count}peek(){if(1===this.value.length&&!As(this))return Ll(this),this.value[0]}recompute(c){return Ho(!this.recomputing,"already recomputing"),Ll(this),As(this)?function es(l,i){return ud(l),ad.withValue(l,Bv,[l,i]),function cd(l,i){if("function"==typeof l.subscribe)try{kf(l),l.unsubscribe=l.subscribe.apply(null,i)}catch(c){return l.setDirty(),!1}return!0}(l,i)&&function kl(l){l.dirty=!1,!As(l)&&Xp(l)}(l),Uf(l.value)}(this,c):Uf(this.value)}setDirty(){this.dirty||(this.dirty=!0,Cs(this),kf(this))}dispose(){this.setDirty(),ud(this),hc(this,(c,g)=>{c.setDirty(),Vf(c,this)})}forget(){this.dispose()}dependOn(c){c.add(this),this.deps||(this.deps=xl.pop()||new Set),this.deps.add(c)}
1forgetDeps(){this.deps&&(ld(this.deps).forEach(c=>c.delete(this)),this.deps.clear(),xl.push(this.deps),this.deps=null)}}return l.count=0,l})();function Ll(l){const i=ad.getValue();if(i)return l.parents.add(i),i.childValues.has(l)||i.childValues.set(l,[]),As(l)?Yp(i,l):Fs(i,l),i}function Bv(l,i){l.recomputing=!0;const{normalizeResult:c}=l;let g;c&&1===l.value.length&&(g=li(l.value)),l.value.length=0;try{if(l.value[0]=l.fn.apply(null,i),c&&g&&!Ff(g,l.value))try{l.value[0]=c(l.value[0],g[0])}catch(y){}}catch(y){l.value[1]=y}l.recomputing=!1}function As(l){return l.dirty||!(!l.dirtyChildren||!l.dirtyChildren.size)}function Cs(l){hc(l,Yp)}function Xp(l){hc(l,Fs)}function hc(l,i){const c=l.parents.size;if(c){const g=ld(l.parents);for(let y=0;y<c;++y)i(g[y],l)}}function Yp(l,i){Ho(l.childValues.has(i)),Ho(As(i));const c=!As(l);if(l.dirtyChildren){if(l.dirtyChildren.has(i))return}else l.dirtyChildren=xl.pop()||new Set;l.dirtyChildren.add(i),c&&Cs(l)}function Fs(l,i){Ho(l.childValues.has(i)),Ho(!As(i));const c=l.childValues.get(i);0===c.length?l.childValues.set(i,li(i.value)):Ff(c,i.value)||l.setDirty(),jf(l,i),!As(l)&&Xp(l)}function jf(l,i){const c=l.dirtyChildren;c&&(c.delete(i),0===c.size&&(xl.length<100&&xl.push(c),l.dirtyChildren=null))}function ud(l){l.childValues.size>0&&l.childValues.forEach((i,c)=>{Vf(l,c)}),l.forgetDeps(),Ho(null===l.dirtyChildren)}function Vf(l,i){i.parents.delete(l),l.childValues.delete(i),jf(l,i)}const $f={setDirty:!0,dispose:!0,forget:!0};function yu(l){const i=new Map;function c(g){const y=ad.getValue();if(y){let C=i.get(g);C||i.set(g,C=new Set),y.dependOn(C)}}return c.dirty=function(g,y){const C=i.get(g);if(C){const Y=y&&Qp.call($f,y)?y:"setDirty";ld(C).forEach(he=>he[Y]()),i.delete(g),kf(C)}},c}let pc;function Wf(...l){return(pc||(pc=new oa("function"==typeof WeakMap))).lookupArray(l)}const aa=new Set;function Eu(l,{max:i=Math.pow(2,16),keyArgs:c,makeCacheKey:g=Wf,normalizeResult:y,subscribe:C,cache:Y=Of}=Object.create(null)){const he="function"==typeof Y?new Y(i,lt=>lt.dispose()):Y,ke=function(){const lt=g.apply(null,c?c.apply(null,arguments):arguments);if(void 0===lt)return l.apply(null,arguments);let Lt=he.get(lt);Lt||(he.set(lt,Lt=new Bf(l)),Lt.normalizeResult=y,Lt.subscribe=C,Lt.forget=()=>he.delete(lt));const rn=Lt.recompute(Array.prototype.slice.call(arguments));return he.set(lt,Lt),aa.add(he),ad.hasValue()||(aa.forEach(cn=>cn.clean()),aa.clear()),rn};function Ee(lt){const Lt=lt&&he.get(lt);Lt&&Lt.setDirty()}function Xe(lt){const Lt=lt&&he.get(lt);if(Lt)return Lt.peek()}function ut(lt){return!!lt&&he.delete(lt)}return Object.defineProperty(ke,"size",{get:()=>he.size,configurable:!1,enumerable:!1}),Object.freeze(ke.options={max:i,keyArgs:c,makeCacheKey:g,normalizeResult:y,subscribe:C,cache:he}),ke.dirtyKey=Ee,ke.dirty=function(){Ee(g.apply(null,arguments))},ke.peekKey=Xe,ke.peek=function(){return Xe(g.apply(null,arguments))},ke.forgetKey=ut,ke.forget=function(){return ut(g.apply(null,arguments))},ke.makeCacheKey=g,ke.getKey=c?function(){return g.apply(null,c.apply(null,arguments))}:g,Object.freeze(ke)}function Zp(l){return l}var wr,Jp=function(){function l(i,c){void 0===c&&(c=Object.create(null)),this.resultCache=nl?new WeakSet:new Set,this.transform=i,c.getCacheKey&&(this.getCacheKey=c.getCacheKey),this.cached=!1!==c.cache,this.resetCache()}return l.prototype.getCacheKey=function(i){return[i]},l.identity=function(){return new l(Zp,{cache:!1})},l.split=function(i,c,g){return void 0===g&&(g=l.identity()),Object.assign(new l(function(y){return(i(y)?c:g).transformDocument(y)},{cache:!1}),{left:c,right:g})},l.prototype.resetCache=function(){var i=this;if(this.cached){var c=new oa(ks);this.performWork=Eu(l.prototype.performWork.bind(this),{makeCacheKey:function(g){var y=i.getCacheKey(g);if(y)return Br(Array.isArray(y),77),c.lookupArray(y)},max:ls["documentTransform.cache"],cache:Un})}},l.prototype.performWork=function(i){return cc(i),this.transform(i)},l.prototype.transformDocument=function(i){if(this.resultCache.has(i))return i;var c=this.performWork(i);return this.resultCache.add(c),c},l.prototype.concat=function(i){var c=this;return Object.assign(new l(function(g){return i.transformDocument(c.transformDocument(g))},{cache:!1}),{left:this,right:i})},l}(),Aa=Object.assign(function(l){var i=wr.get(l);
1return i||(i=function Yt(l){return Le(l,tn)}(l),wr.set(l,i)),i},{reset:function(){wr=new Wo(ls.print||2e3)}});Aa.reset();var eo=Array.isArray;function Hs(l){return Array.isArray(l)&&l.length>0}var jv={kind:Kn.FIELD,name:{kind:Kn.NAME,value:"__typename"}};function qp(l,i){return!l||l.selectionSet.selections.every(function(c){return c.kind===Kn.FRAGMENT_SPREAD&&qp(i[c.name.value],i)})}function Vv(l){return qp(dc(l)||function oE(l){Br("Document"===l.kind,92),Br(l.definitions.length<=1,93);var i=l.definitions[0];return Br("FragmentDefinition"===i.kind,94),i}(l),du(Nl(l)))?null:l}function Kf(l){var i=new Map;return function(c){void 0===c&&(c=l);var g=i.get(c);return g||i.set(c,g={variables:new Set,fragmentSpreads:new Set}),g}}function sl(l,i){cc(i);for(var c=Kf(""),g=Kf(""),y=function(nn){for(var On=0,_n=void 0;On<nn.length&&(_n=nn[On]);++On)if(!eo(_n)){if(_n.kind===Kn.OPERATION_DEFINITION)return c(_n.name&&_n.name.value);if(_n.kind===Kn.FRAGMENT_DEFINITION)return g(_n.name.value)}return null},C=0,Y=i.definitions.length-1;Y>=0;--Y)i.definitions[Y].kind===Kn.OPERATION_DEFINITION&&++C;var he=function $v(l){var i=new Map,c=new Map;return l.forEach(function(g){g&&(g.name?i.set(g.name,g):g.test&&c.set(g.test,g))}),function(g){var y=i.get(g.name.value);return!y&&c.size&&c.forEach(function(C,Y){Y(g)&&(y=C)}),y}}(l),ke=function(nn){return Hs(nn)&&nn.map(he).some(function(On){return On&&On.remove})},Ee=new Map,Xe=!1,ut={enter:function(nn){if(ke(nn.directives))return Xe=!0,null}},lt=Le(i,{Field:ut,InlineFragment:ut,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(nn,On,_n,Yn,wn){var ur=y(wn);ur&&ur.variables.add(nn.name.value)}},FragmentSpread:{enter:function(nn,On,_n,Yn,wn){if(ke(nn.directives))return Xe=!0,null;var ur=y(wn);ur&&ur.fragmentSpreads.add(nn.name.value)}},FragmentDefinition:{enter:function(nn,On,_n,Yn){Ee.set(JSON.stringify(Yn),nn)},leave:function(nn,On,_n,Yn){return nn===Ee.get(JSON.stringify(Yn))?nn:C>0&&nn.selectionSet.selections.every(function(ur){return ur.kind===Kn.FIELD&&"__typename"===ur.name.value})?(g(nn.name.value).removed=!0,Xe=!0,null):void 0}},Directive:{leave:function(nn){if(he(nn))return Xe=!0,null}}});if(!Xe)return i;var Lt=function(nn){return nn.transitiveVars||(nn.transitiveVars=new Set(nn.variables),nn.removed||nn.fragmentSpreads.forEach(function(On){Lt(g(On)).transitiveVars.forEach(function(_n){nn.transitiveVars.add(_n)})})),nn},rn=new Set;lt.definitions.forEach(function(nn){nn.kind===Kn.OPERATION_DEFINITION?Lt(c(nn.name&&nn.name.value)).fragmentSpreads.forEach(function(On){rn.add(On)}):nn.kind===Kn.FRAGMENT_DEFINITION&&0===C&&!g(nn.name.value).removed&&rn.add(nn.name.value)}),rn.forEach(function(nn){Lt(g(nn)).fragmentSpreads.forEach(function(On){rn.add(On)})});var En={enter:function(nn){if(function(nn){return!(rn.has(nn)&&!g(nn).removed)}(nn.name.value))return null}};return Vv(Le(lt,{FragmentSpread:En,FragmentDefinition:En,OperationDefinition:{leave:function(nn){if(nn.variableDefinitions){var On=Lt(c(nn.name&&nn.name.value)).transitiveVars;if(On.size<nn.variableDefinitions.length)return It(It({},nn),{variableDefinitions:nn.variableDefinitions.filter(function(_n){return On.has(_n.variable.name.value)})})}}}}))}var eg=Object.assign(function(l){return Le(l,{SelectionSet:{enter:function(i,c,g){if(!g||g.kind!==Kn.OPERATION_DEFINITION){var y=i.selections;if(y&&!y.some(function(he){return Rl(he)&&("__typename"===he.name.value||0===he.name.value.lastIndexOf("__",0))})){var Y=g;if(!(Rl(Y)&&Y.directives&&Y.directives.some(function(he){return"export"===he.name.value})))return It(It({},i),{selections:mi(mi([],y,!0),[jv],!1)})}}}}})},{added:function(l){return l===jv}});function Wv(l){return"query"===sd(l).operation?l:Le(l,{OperationDefinition:{enter:function(y){return It(It({},y),{operation:"query"})}}})}function tg(l){return cc(l),sl([{test:function(c){return"client"===c.name.value},remove:!0}],l)}function Kv(l){return cc(l),Le(l,{FragmentSpread:function(i){var c;if(null===(c=i.directives)||void 0===c||!c.some(function(g){return"unmask"===g.name.value}))return It(It({},i),{directives:mi(mi([],i.directives||[],!0),[{kind:Kn.DIRECTIVE,name:{kind:Kn.NAME,value:"nonreactive"}}
1],!1)})}})}var Hv=Object.prototype.hasOwnProperty;function gn(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];return Sr(l)}function Sr(l){var i=l[0]||{},c=l.length;if(c>1)for(var g=new Ua,y=1;y<c;++y)i=g.merge(i,l[y]);return i}var ng=function(l,i,c){return this.merge(l[c],i[c])},Ua=function(){function l(i){void 0===i&&(i=ng),this.reconciler=i,this.isObject=Zr,this.pastCopies=new Set}return l.prototype.merge=function(i,c){for(var g=this,y=[],C=2;C<arguments.length;C++)y[C-2]=arguments[C];return Zr(c)&&Zr(i)?(Object.keys(c).forEach(function(Y){if(Hv.call(i,Y)){var he=i[Y];if(c[Y]!==he){var ke=g.reconciler.apply(g,mi([i,c,Y],y,!1));ke!==he&&((i=g.shallowCopyForMerge(i))[Y]=ke)}}else(i=g.shallowCopyForMerge(i))[Y]=c[Y]}),i):c},l.prototype.shallowCopyForMerge=function(i){return Zr(i)&&(this.pastCopies.has(i)||(i=Array.isArray(i)?i.slice(0):It({__proto__:Object.getPrototypeOf(i)},i),this.pastCopies.add(i))),i},l}();function Au(l,i){(null==i||i>l.length)&&(i=l.length);for(var c=0,g=new Array(i);c<i;c++)g[c]=l[c];return g}function Gs(l,i){for(var c=0;c<i.length;c++){var g=i[c];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(l,g.key,g)}}function gc(l,i,c){return i&&Gs(l.prototype,i),c&&Gs(l,c),Object.defineProperty(l,"prototype",{writable:!1}),l}var mc=function(){return"function"==typeof Symbol},dd=function(l){return mc()&&!!Symbol[l]},ig=function(l){return dd(l)?Symbol[l]:"@@"+l};mc()&&!dd("observable")&&(Symbol.observable=Symbol("observable"));var uE=ig("iterator"),fd=ig("observable"),Hf=ig("species");function Fl(l,i){var c=l[i];if(null!=c){if("function"!=typeof c)throw new TypeError(c+" is not a function");return c}}function Po(l){var i=l.constructor;return void 0!==i&&null===(i=i[Hf])&&(i=void 0),void 0!==i?i:Ni}function Ul(l){Ul.log?Ul.log(l):setTimeout(function(){throw l})}function cs(l){Promise.resolve().then(function(){try{l()}catch(i){Ul(i)}})}function Ca(l){var i=l._cleanup;if(void 0!==i&&(l._cleanup=void 0,i))try{if("function"==typeof i)i();else{var c=Fl(i,"unsubscribe");c&&c.call(i)}}catch(g){Ul(g)}}function Gf(l){l._observer=void 0,l._queue=void 0,l._state="closed"}function sg(l,i,c){l._state="running";var g=l._observer;try{var y=Fl(g,i);switch(i){case"next":y&&y.call(g,c);break;case"error":if(Gf(l),!y)throw c;y.call(g,c);break;case"complete":Gf(l),y&&y.call(g)}}catch(C){Ul(C)}"closed"===l._state?Ca(l):"running"===l._state&&(l._state="ready")}function zf(l,i,c){if("closed"!==l._state){if("buffering"===l._state)return void l._queue.push({type:i,value:c});if("ready"!==l._state)return l._state="buffering",l._queue=[{type:i,value:c}],void cs(function(){return function og(l){var i=l._queue;if(i){l._queue=void 0,l._state="ready";for(var c=0;c<i.length&&(sg(l,i[c].type,i[c].value),"closed"!==l._state);++c);}}(l)});sg(l,i,c)}}var Qf=function(){function l(c,g){this._cleanup=void 0,this._observer=c,this._queue=void 0,this._state="initializing";var y=new Xf(this);try{this._cleanup=g.call(void 0,y)}catch(C){y.error(C)}"initializing"===this._state&&(this._state="ready")}return l.prototype.unsubscribe=function(){"closed"!==this._state&&(Gf(this),Ca(this))},gc(l,[{key:"closed",get:function(){return"closed"===this._state}}]),l}(),Xf=function(){function l(c){this._subscription=c}var i=l.prototype;return i.next=function(c){zf(this._subscription,"next",c)},i.error=function(c){zf(this._subscription,"error",c)},i.complete=function(){zf(this._subscription,"complete")},gc(l,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),l}(),Ni=function(){function l(c){if(!(this instanceof l))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof c)throw new TypeError("Observable initializer must be a function");this._subscriber=c}var i=l.prototype;return i.subscribe=function(c){return("object"!=typeof c||null===c)&&(c={next:c,error:arguments[1],complete:arguments[2]}),new Qf(c,this._subscriber)}
1,i.forEach=function(c){var g=this;return new Promise(function(y,C){if("function"==typeof c)var he=g.subscribe({next:function(ke){try{c(ke,Y)}catch(Ee){C(Ee),he.unsubscribe()}},error:C,complete:y});else C(new TypeError(c+" is not a function"));function Y(){he.unsubscribe(),y()}})},i.map=function(c){var g=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(Po(this))(function(C){return g.subscribe({next:function(Y){try{Y=c(Y)}catch(he){return C.error(he)}C.next(Y)},error:function(Y){C.error(Y)},complete:function(){C.complete()}})})},i.filter=function(c){var g=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");return new(Po(this))(function(C){return g.subscribe({next:function(Y){try{if(!c(Y))return}catch(he){return C.error(he)}C.next(Y)},error:function(Y){C.error(Y)},complete:function(){C.complete()}})})},i.reduce=function(c){var g=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var y=Po(this),C=arguments.length>1,Y=!1,ke=arguments[1];return new y(function(Ee){return g.subscribe({next:function(Xe){var ut=!Y;if(Y=!0,!ut||C)try{ke=c(ke,Xe)}catch(lt){return Ee.error(lt)}else ke=Xe},error:function(Xe){Ee.error(Xe)},complete:function(){if(!Y&&!C)return Ee.error(new TypeError("Cannot reduce an empty sequence"));Ee.next(ke),Ee.complete()}})})},i.concat=function(){for(var c=this,g=arguments.length,y=new Array(g),C=0;C<g;C++)y[C]=arguments[C];var Y=Po(this);return new Y(function(he){var ke,Ee=0;return function Xe(ut){ke=ut.subscribe({next:function(lt){he.next(lt)},error:function(lt){he.error(lt)},complete:function(){Ee===y.length?(ke=void 0,he.complete()):Xe(Y.from(y[Ee++]))}})}(c),function(){ke&&(ke.unsubscribe(),ke=void 0)}})},i.flatMap=function(c){var g=this;if("function"!=typeof c)throw new TypeError(c+" is not a function");var y=Po(this);return new y(function(C){var Y=[],he=g.subscribe({next:function(Ee){if(c)try{Ee=c(Ee)}catch(ut){return C.error(ut)}var Xe=y.from(Ee).subscribe({next:function(ut){C.next(ut)},error:function(ut){C.error(ut)},complete:function(){var ut=Y.indexOf(Xe);ut>=0&&Y.splice(ut,1),ke()}});Y.push(Xe)},error:function(Ee){C.error(Ee)},complete:function(){ke()}});function ke(){he.closed&&0===Y.length&&C.complete()}return function(){Y.forEach(function(Ee){return Ee.unsubscribe()}),he.unsubscribe()}})},i[fd]=function(){return this},l.from=function(c){var g="function"==typeof this?this:l;if(null==c)throw new TypeError(c+" is not an object");var y=Fl(c,fd);if(y){var C=y.call(c);if(Object(C)!==C)throw new TypeError(C+" is not an object");return function Ba(l){return l instanceof Ni}(C)&&C.constructor===g?C:new g(function(Y){return C.subscribe(Y)})}if(dd("iterator")&&(y=Fl(c,uE)))return new g(function(Y){cs(function(){if(!Y.closed){for(var ke,he=function zr(l,i){var c=typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(c)return(c=c.call(l)).next.bind(c);if(Array.isArray(l)||(c=function rg(l,i){if(l){if("string"==typeof l)return Au(l,i);var c=Object.prototype.toString.call(l).slice(8,-1);if("Object"===c&&l.constructor&&(c=l.constructor.name),"Map"===c||"Set"===c)return Array.from(l);if("Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return Au(l,i)}}(l))||i){c&&(l=c);var g=0;return function(){return g>=l.length?{done:!0}:{done:!1,value:l[g++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(y.call(c));!(ke=he()).done;)if(Y.next(ke.value),Y.closed)return;Y.complete()}})});if(Array.isArray(c))return new g(function(Y){cs(function(){if(!Y.closed){for(var he=0;he<c.length;++he)if(Y.next(c[he]),Y.closed)return;Y.complete()}})});throw new TypeError(c+" is not observable")},l.of=function(){for(var c=arguments.length,g=new Array(c),y=0;y<c;y++)g[y]=arguments[y];return new("function"==typeof this?this:l)(function(Y){cs(function(){if(!Y.closed){for(var he=0;he<g.length;++he)if(Y.next(g[he]),Y.closed)return;Y.complete()}})})},gc(l,null,[{key:Hf,get:function(){return this}}]),l}();mc()&&Object.defineProperty(Ni,Symbol("extensions"),{value:{symbol:fd,hostReportError:Ul},configurable:!0}),function hd(l){var i,c=l.Symbol;if("function"==typeof c)if(c.observable)i=c.observable;else{i="function"==typeof c.for?c.for("https://github.com/benlesh/symbol-observable"):c("https://github.com/benlesh/symbol-observable");try{c.observable=i}catch(g){}}
1else i="@@observable"}(typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:typeof module<"u"?module:Function("return this")());var Yf=Ni.prototype,pd="@@observable";Yf[pd]||(Yf[pd]=function(){return this});var lg=Object.prototype.toString;function ug(l){return gd(l)}function gd(l,i){switch(lg.call(l)){case"[object Array]":if((i=i||new Map).has(l))return i.get(l);var c=l.slice(0);return i.set(l,c),c.forEach(function(y,C){c[C]=gd(y,i)}),c;case"[object Object]":if((i=i||new Map).has(l))return i.get(l);var g=Object.create(Object.getPrototypeOf(l));return i.set(l,g),Object.keys(l).forEach(function(y){g[y]=gd(l[y],i)}),g;default:return l}}function la(l,i,c){var g=[];l.forEach(function(y){return y[i]&&g.push(y)}),g.forEach(function(y){return y[i](c)})}function Ii(l,i,c){return new Ni(function(g){var y={then:function(ke){return new Promise(function(Ee){return Ee(ke())})}};function C(ke,Ee){return function(Xe){if(ke){var ut=function(){return g.closed?0:ke(Xe)};y=y.then(ut,ut).then(function(lt){return g.next(lt)},function(lt){return g.error(lt)})}else g[Ee](Xe)}}var Y={next:C(i,"next"),error:C(c,"error"),complete:function(){y.then(function(){return g.complete()})}},he=l.subscribe(Y);return function(){return he.unsubscribe()}})}function Zf(l){function i(c){Object.defineProperty(l,c,{value:Ni})}return Vp&&Symbol.species&&i(Symbol.species),i("@@species"),l}function dg(l){return l&&"function"==typeof l.then}var bu=function(l){function i(c){var g=l.call(this,function(y){return g.addObserver(y),function(){return g.removeObserver(y)}})||this;return g.observers=new Set,g.promise=new Promise(function(y,C){g.resolve=y,g.reject=C}),g.handlers={next:function(y){null!==g.sub&&(g.latest=["next",y],g.notify("next",y),la(g.observers,"next",y))},error:function(y){var C=g.sub;null!==C&&(C&&setTimeout(function(){return C.unsubscribe()}),g.sub=null,g.latest=["error",y],g.reject(y),g.notify("error",y),la(g.observers,"error",y))},complete:function(){var C=g.sub,Y=g.sources;if(null!==C){var ke=(void 0===Y?[]:Y).shift();ke?dg(ke)?ke.then(function(Ee){return g.sub=Ee.subscribe(g.handlers)},g.handlers.error):g.sub=ke.subscribe(g.handlers):(C&&setTimeout(function(){return C.unsubscribe()}),g.sub=null,g.latest&&"next"===g.latest[0]?g.resolve(g.latest[1]):g.resolve(),g.notify("complete"),la(g.observers,"complete"))}}},g.nextResultListeners=new Set,g.cancel=function(y){g.reject(y),g.sources=[],g.handlers.error(y)},g.promise.catch(function(y){}),"function"==typeof c&&(c=[new Ni(c)]),dg(c)?c.then(function(y){return g.start(y)},g.handlers.error):g.start(c),g}return tr(i,l),i.prototype.start=function(c){void 0===this.sub&&(this.sources=Array.from(c),this.handlers.complete())},i.prototype.deliverLastMessage=function(c){if(this.latest){var g=this.latest[0],y=c[g];y&&y.call(c,this.latest[1]),null===this.sub&&"next"===g&&c.complete&&c.complete()}},i.prototype.addObserver=function(c){this.observers.has(c)||(this.deliverLastMessage(c),this.observers.add(c))},i.prototype.removeObserver=function(c){this.observers.delete(c)&&this.observers.size<1&&this.handlers.complete()},i.prototype.notify=function(c,g){var y=this.nextResultListeners;y.size&&(this.nextResultListeners=new Set,y.forEach(function(C){return C(c,g)}))},i.prototype.beforeNext=function(c){var g=!1;this.nextResultListeners.add(function(y,C){g||(g=!0,c(y,C))})},i}(Ni);function Tu(l){return"incremental"in l}function vc(l){return Zr(l)&&"payload"in l}function ua(l,i){var c=l,g=new Ua;return Tu(i)&&Hs(i.incremental)&&i.incremental.forEach(function(y){for(var C=y.data,Y=y.path,he=Y.length-1;he>=0;--he){var ke=Y[he],Xe=isNaN(+ke)?{}:[];Xe[ke]=C,C=Xe}c=g.merge(c,C)}),c}function md(l){return Hs(Su(l))}function Su(l){var i=Hs(l.errors)?l.errors.slice(0):[];return Tu(l)&&Hs(l.incremental)&&l.incremental.forEach(function(c){c.errors&&i.push.apply(i,c.errors)}),i}function ja(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];var c=Object.create(null);return l.forEach(function(g){g&&Object.keys(g).forEach(function(y){var C=g[y];void 0!==C&&(c[y]=C)})}),c}function Du(l,i){return ja(l,i,i.variables&&{variables:ja(It(It({},l&&l.variables),i.variables))})}function _c(l){return new Ni(function(i){i.error(l)})}Zf(bu);var Jf=function(l,i,c){var g=new Error(c);throw g.name="ServerError",g.response=l,g.statusCode=l.status,g.result=i,g};
1function gg(l,i){return i?i(l):Ni.of()}function Bl(l){return"function"==typeof l?new Va(l):l}function Ou(l){return l.request.length<=1}var Va=function(){function l(i){i&&(this.request=i)}return l.empty=function(){return new l(function(){return Ni.of()})},l.from=function(i){return 0===i.length?l.empty():i.map(Bl).reduce(function(c,g){return c.concat(g)})},l.split=function(i,c,g){var Y,y=Bl(c),C=Bl(g||new l(gg));return Y=Ou(y)&&Ou(C)?new l(function(he){return i(he)?y.request(he)||Ni.of():C.request(he)||Ni.of()}):new l(function(he,ke){return i(he)?y.request(he,ke)||Ni.of():C.request(he,ke)||Ni.of()}),Object.assign(Y,{left:y,right:C})},l.execute=function(i,c){return i.request(function Gv(l,i){var c=It({},l);return Object.defineProperty(i,"setContext",{enumerable:!1,value:function(C){c=It(It({},c),"function"==typeof C?C(c):C)}}),Object.defineProperty(i,"getContext",{enumerable:!1,value:function(){return It({},c)}}),i}(c.context,function Iu(l){var i={variables:l.variables||{},extensions:l.extensions||{},operationName:l.operationName,query:l.query};return i.operationName||(i.operationName="string"!=typeof i.query?_u(i.query)||void 0:""),i}(function pg(l){for(var i=["query","operationName","variables","extensions","context"],c=0,g=Object.keys(l);c<g.length;c++){var y=g[c];if(i.indexOf(y)<0)throw pr(46,y)}return l}(c))))||Ni.of()},l.concat=function(i,c){var g=Bl(i);if(Ou(g))return g;var C,y=Bl(c);return C=Ou(y)?new l(function(Y){return g.request(Y,function(he){return y.request(he)||Ni.of()})||Ni.of()}):new l(function(Y,he){return g.request(Y,function(ke){return y.request(ke,he)||Ni.of()})||Ni.of()}),Object.assign(C,{left:g,right:y})},l.prototype.split=function(i,c,g){return this.concat(l.split(i,c,g||new l(gg)))},l.prototype.concat=function(i){return l.concat(this,i)},l.prototype.request=function(i,c){throw pr(39)},l.prototype.onError=function(i,c){if(c&&c.error)return c.error(i),!1;throw i},l.prototype.setOnError=function(i){return this.onError=i,this},l}(),qf=Va.execute;function mg(l){var i={next:function(){return l.read()}};return nd&&(i[Symbol.asyncIterator]=function(){return this}),i}function th(l){var i=l;if(function vg(l){return!!l.body}(l)&&(i=l.body),function Pu(l){return!(!nd||!l[Symbol.asyncIterator])}(i))return function zv(l){var i,c=l[Symbol.asyncIterator]();return(i={next:function(){return c.next()}})[Symbol.asyncIterator]=function(){return this},i}(i);if(function _g(l){return!!l.getReader}(i))return mg(i.getReader());if(function yg(l){return!!l.stream}(i))return mg(i.stream().getReader());if(function eh(l){return!!l.arrayBuffer}(i))return function fE(l){var i=!1,c={next:function(){return i?Promise.resolve({value:void 0,done:!0}):(i=!0,new Promise(function(g,y){l.then(function(C){g({value:C,done:!1})}).catch(y)}))}};return nd&&(c[Symbol.asyncIterator]=function(){return this}),c}(i.arrayBuffer());if(function jl(l){return!!l.pipe}(i))return function dE(l){var i=null,c=null,g=!1,y=[],C=[];function Y(ut){if(!c){if(C.length){var lt=C.shift();if(Array.isArray(lt)&&lt[0])return lt[0]({value:ut,done:!1})}y.push(ut)}}function he(ut){c=ut,C.slice().forEach(function(Lt){Lt[1](ut)}),!i||i()}function ke(){g=!0,C.slice().forEach(function(lt){lt[0]({value:void 0,done:!0})}),!i||i()}i=function(){i=null,l.removeListener("data",Y),l.removeListener("error",he),l.removeListener("end",ke),l.removeListener("finish",ke),l.removeListener("close",ke)},l.on("data",Y),l.on("error",he),l.on("end",ke),l.on("finish",ke),l.on("close",ke);var Xe={next:function(){return function Ee(){return new Promise(function(ut,lt){return c?lt(c):y.length?ut({value:y.shift(),done:!1}):g?ut({value:void 0,done:!0}):void C.push([ut,lt])})}()}};return nd&&(Xe[Symbol.asyncIterator]=function(){return this}),Xe}(i);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Vl=Symbol();function Mu(l){return l.hasOwnProperty("graphQLErrors")}var $a=function(l){function i(c){var g=c.graphQLErrors,y=c.protocolErrors,C=c.clientErrors,Y=c.networkError,he=c.errorMessage,ke=c.extraInfo,Ee=l.call(this,he)||this;return Ee.name="ApolloError",Ee.graphQLErrors=g||[],Ee.protocolErrors=y||[],Ee.clientErrors=C||[],Ee.networkError=Y||null,Ee.message=he||function(l){var i=mi(mi(mi([],l.graphQLErrors,!0),l.clientErrors,!0),l.protocolErrors,!0);return l.networkError&&i.push(l.networkError),i.map(function(c){return Zr(c)&&c.message||"Error message not found."}).join("\n")}(Ee),Ee.extraInfo=ke,Ee.cause=mi(mi(mi([Y],g||[],!0),y||[],!0),C||[],!0).find(function(Xe){return!!Xe})||null,Ee.__proto__=i.prototype,Ee}return tr(i,l),i}(Error),Ec=Object.prototype.hasOwnProperty;function Eg(l){var i={};return l.split("\n").forEach(function(c){var g=c.indexOf(":");if(g>-1){var y=c.slice(0,g).trim().toLowerCase(),C=c.slice(g+1).trim();i[y]=C}}),i}function nh(l,i){l.status>=300&&Jf(l,function(){try{return JSON.parse(i)}catch(y){return i}}(),"Response not successful: Received status code ".concat(l.status));try{return JSON.parse(i)}catch(y){var g=y;throw g.name="ServerParseError",g.response=l,g.statusCode=l.status,g.bodyText=i,g}}var rh=function(l,i){var c;try{c=JSON.stringify(l)}catch(y){var g=pr(42,i,y.message);throw g.parseError=y,g}return c},_d={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},oh=function(l,i){return i(l)};var qv=Wi(function(){return fetch}),yd=function(l){void 0===l&&(l={});var i=l.uri,c=void 0===i?"/graphql":i,g=l.fetch,y=l.print,C=void 0===y?oh:y,Y=l.includeExtensions,he=l.preserveHeaderCase,ke=l.useGETForQueries,Ee=l.includeUnusedVariables,Xe=void 0!==Ee&&Ee,ut=xn(l,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),lt={http:{includeExtensions:Y,preserveHeaderCase:he},options:ut.fetchOptions,credentials:ut.credentials,headers:ut.headers};
1return new Va(function(Lt){var rn=function(l,i){return l.getContext().uri||("function"==typeof i?i(l):i||"/graphql")}(Lt,c),cn=Lt.getContext(),En={};if(cn.clientAwareness){var nn=cn.clientAwareness,On=nn.name,_n=nn.version;On&&(En["apollographql-client-name"]=On),_n&&(En["apollographql-client-version"]=_n)}var Yn=It(It({},En),cn.headers),wn={http:cn.http,options:cn.fetchOptions,credentials:cn.credentials,headers:Yn};if(Ls(["client"],Lt.query)){var ur=tg(Lt.query);if(!ur)return _c(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));Lt.query=ur}var Pi,Vr=function Zv(l,i){for(var c=[],g=2;g<arguments.length;g++)c[g-2]=arguments[g];var y={},C={};c.forEach(function(ut){y=It(It(It({},y),ut.options),{headers:It(It({},y.headers),ut.headers)}),ut.credentials&&(y.credentials=ut.credentials),C=It(It({},C),ut.http)}),y.headers&&(y.headers=function Cg(l,i){if(!i){var c={};
1return Object.keys(Object(l)).forEach(function(C){c[C.toLowerCase()]=l[C]}),c}var g={};Object.keys(Object(l)).forEach(function(C){g[C.toLowerCase()]={originalName:C,value:l[C]}});var y={};return Object.keys(g).forEach(function(C){y[g[C].originalName]=g[C].value}),y}(y.headers,C.preserveHeaderCase));var Ee=l.query,Xe={operationName:l.operationName,variables:l.variables};return C.includeExtensions&&(Xe.extensions=l.extensions),C.includeQuery&&(Xe.query=i(Ee,Aa)),{options:y,body:Xe}}(Lt,C,_d,lt,wn),qr=Vr.options,vi=Vr.body;vi.variables&&!Xe&&(vi.variables=function yc(l,i){var c=It({},l),g=new Set(Object.keys(l));return Le(i,{Variable:function(y,C,Y){Y&&"VariableDefinition"!==Y.kind&&g.delete(y.name.value)}}),g.forEach(function(y){delete c[y]}),c}(vi.variables,Lt.query)),!qr.signal&&typeof AbortController<"u"&&(Pi=new AbortController,qr.signal=Pi.signal);var vo,Gi="OperationDefinition"===(vo=sd(Lt.query)).kind&&"subscription"===vo.operation,da=Ls(["defer"],Lt.query);if(ke&&!Lt.query.definitions.some(function(vo){return"OperationDefinition"===vo.kind&&"mutation"===vo.operation})&&(qr.method="GET"),da||Gi){qr.headers=qr.headers||{};var Ku="multipart/mixed;";Gi?Ku+="boundary=graphql;subscriptionSpec=1.0,application/json":da&&(Ku+="deferSpec=20220824,application/json"),qr.headers.accept=Ku}if("GET"===qr.method){var Ka=function Tg(l,i){var c=[],g=function(ut,lt){c.push("".concat(ut,"=").concat(encodeURIComponent(lt)))};if("query"in i&&g("query",i.query),i.operationName&&g("operationName",i.operationName),i.variables){var y=void 0;try{y=rh(i.variables,"Variables map")}catch(ut){return{parseError:ut}}g("variables",y)}if(i.extensions){var C=void 0;try{C=rh(i.extensions,"Extensions map")}catch(ut){return{parseError:ut}}g("extensions",C)}var Y="",he=l,ke=l.indexOf("#");-1!==ke&&(Y=l.substr(ke),he=l.substr(0,ke));var Ee=-1===he.indexOf("?")?"?":"&";return{newURI:he+Ee+c.join("&")+Y}}(rn,vi),Xl=Ka.newURI,dl=Ka.parseError;if(dl)return _c(dl);rn=Xl}else try{qr.body=rh(vi,"Payload")}catch(vo){return _c(vo)}return new Ni(function(vo){var fl=g||Wi(function(){return fetch})||qv,Ha=vo.next.bind(vo);return fl(rn,qr).then(function(fs){var Ga;Lt.setContext({response:fs});var hl=null===(Ga=fs.headers)||void 0===Ga?void 0:Ga.get("content-type");return null!==hl&&/^multipart\/mixed/i.test(hl)?function hE(l,i){return Or(this,void 0,void 0,function(){var c,g,y,C,Y,he,ke,Ee,Xe,ut,lt,Lt,rn,cn,En,nn,On,_n,Yn,wn,ur,Vr,qr,vi;return ni(this,function(Pi){var Fo,Bs,Gi;switch(Pi.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");c=new TextDecoder("utf-8"),g=null===(vi=l.headers)||void 0===vi?void 0:vi.get("content-type"),y="boundary=",C=null!==(Fo=g)&&void 0!==Fo&&Fo.includes(y)?null===(Bs=g)||void 0===Bs?void 0:Bs.substring((null===(Gi=g)||void 0===Gi?void 0:Gi.indexOf(y))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",Y="\r\n--".concat(C),he="",ke=th(l),Ee=!0,Pi.label=1;case 1:return Ee?[4,ke.next()]:[3,3];case 2:for(Xe=Pi.sent(),lt=Xe.done,Lt="string"==typeof(ut=Xe.value)?ut:c.decode(ut),rn=he.length-Y.length+1,Ee=!lt,cn=(he+=Lt).indexOf(Y,rn);cn>-1;){if(En=void 0,Vr=[he.slice(0,cn),he.slice(cn+Y.length)],he=Vr[1],nn=(En=Vr[0]).indexOf("\r\n\r\n"),On=Eg(En.slice(0,nn)),(_n=On["content-type"])&&-1===_n.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(Yn=En.slice(nn))if(wn=nh(l,Yn),Object.keys(wn).length>1||"data"in wn||"incremental"in wn||"errors"in wn||"payload"in wn)if(vc(wn)){if(ur={},"payload"in wn){if(1===Object.keys(wn).length&&null===wn.payload)return[2];ur=It({},wn.payload)}"errors"in wn&&(ur=It(It({},ur),{extensions:It(It({},"extensions"in ur?ur.extensions:null),(qr={},qr[Vl]=wn.errors,qr))})),i(ur)}else i(wn);else if(1===Object.keys(wn).length&&"hasNext"in wn&&!wn.hasNext)return[2];cn=he.indexOf(Y)}return[3,1];case 3:return[2]}})})}(fs,Ha):function ba(l){return function(i){return i.text().then(function(c){return nh(i,c)}).then(function(c){return!Array.isArray(c)&&!Ec.call(c,"data")&&!Ec.call(c,"errors")&&Jf(i,c,"Server response was missing for query '".concat(Array.isArray(l)?l.map(function(g){return g.operationName}):l.operationName,"'.")),c})}}(Lt)(fs).then(Ha)}).then(function(){Pi=void 0,vo.complete()}).catch(function(fs){Pi=void 0,function Yv(l,i){l.result&&l.result.errors&&l.result.data&&i.next(l.result),i.error(l)}(fs,vo)}),function(){Pi&&Pi.abort()}})})},$l=function(l){function i(c){void 0===c&&(c={});var g=l.call(this,yd(c).request)||this;return g.options=c,g}return tr(i,l),i}(Va);const{toString:Sg,hasOwnProperty:Dg}=Object.prototype,sh=Function.prototype.toString,Ta=new Map;function Ai(l,i){try{return to(l,i)}finally{Ta.clear()}}function to(l,i){if(l===i)return!0;const c=Sg.call(l);
1if(c!==Sg.call(i))return!1;switch(c){case"[object Array]":if(l.length!==i.length)return!1;case"[object Object]":{if(lh(l,i))return!0;const y=Ig(l),C=Ig(i),Y=y.length;if(Y!==C.length)return!1;for(let he=0;he<Y;++he)if(!Dg.call(i,y[he]))return!1;for(let he=0;he<Y;++he){const ke=y[he];if(!to(l[ke],i[ke]))return!1}return!0}case"[object Error]":return l.name===i.name&&l.message===i.message;case"[object Number]":if(l!=l)return i!=i;case"[object Boolean]":case"[object Date]":return+l==+i;case"[object RegExp]":case"[object String]":return l=="".concat(i);case"[object Map]":case"[object Set]":{if(l.size!==i.size)return!1;if(lh(l,i))return!0;const y=l.entries(),C="[object Map]"===c;for(;;){const Y=y.next();if(Y.done)break;const[he,ke]=Y.value;if(!i.has(he)||C&&!to(ke,i.get(he)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":l=new Uint8Array(l),i=new Uint8Array(i);case"[object DataView]":{let y=l.byteLength;if(y===i.byteLength)for(;y--&&l[y]===i[y];);return-1===y}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const y=sh.call(l);return y===sh.call(i)&&!function e_(l,i){const c=l.length-i.length;return c>=0&&l.indexOf(i,c)===c}(y,ah)}}return!1}function Ig(l){return Object.keys(l).filter(Og,l)}function Og(l){return void 0!==this[l]}const ah="{ [native code] }";function lh(l,i){let c=Ta.get(l);if(c){if(c.has(i))return!0}else Ta.set(l,c=new Set);return c.add(i),!1}function Ac(l,i,c,g){var y=i.data,C=xn(i,["data"]),Y=c.data;return Ai(C,xn(c,["data"]))&&Ed(sd(l).selectionSet,y,Y,{fragmentMap:du(Nl(l)),variables:g})}function Ed(l,i,c,g){if(i===c)return!0;var y=new Set;return l.selections.every(function(C){if(y.has(C)||(y.add(C),!Ki(C,g.variables))||uh(C))return!0;if(Rl(C)){var Y=wl(C),he=i&&i[Y],ke=c&&c[Y],Ee=C.selectionSet;if(!Ee)return Ai(he,ke);var Xe=Array.isArray(he),ut=Array.isArray(ke);if(Xe!==ut)return!1;if(Xe&&ut){var lt=he.length;if(ke.length!==lt)return!1;for(var Lt=0;Lt<lt;++Lt)if(!Ed(Ee,he[Lt],ke[Lt],g))return!1;return!0}return Ed(Ee,he,ke,g)}var rn=rl(C,g.fragmentMap);return rn?!!uh(rn)||Ed(rn.selectionSet,i,c,g):void 0})}function uh(l){return!!l.directives&&l.directives.some(ch)}function ch(l){return"nonreactive"===l.name.value}var Cc=ks?WeakMap:Map,dh=nl?WeakSet:Set,fh=new fc;function hh(l,i,c){return fh.withValue(!0,function(){var g=wu(l,i,c,!1);return Object.isFrozen(l),g})}function wu(l,i,c,g,y){var Y=c.knownChanged,he=function t_(l,i){if(i.has(l))return i.get(l);var c=Array.isArray(l)?[]:Object.create(null);return i.set(l,c),c}(l,c.mutableTargets);if(Array.isArray(l)){for(var ke=0,Ee=Array.from(l.entries());ke<Ee.length;ke++){var Xe=Ee[ke],ut=Xe[0],lt=Xe[1];if(null!==lt){var Lt=wu(lt,i,c,g,void 0);Y.has(Lt)&&Y.add(he),he[ut]=Lt}else he[ut]=null}return Y.has(he)?he:l}for(var rn=0,cn=i.selections;rn<cn.length;rn++){var En=cn[rn],nn=void 0;if(g&&Y.add(he),En.kind===Kn.FIELD){var On=wl(En),_n=En.selectionSet;if(void 0===(nn=he[On]||l[On]))continue;_n&&null!==nn&&(Lt=wu(l[On],_n,c,g,void 0),Y.has(Lt)&&(nn=Lt)),he[On]=nn}if(En.kind===Kn.INLINE_FRAGMENT&&(!En.typeCondition||c.cache.fragmentMatches(En,l.__typename))&&(nn=wu(l,En.selectionSet,c,g,y)),En.kind===Kn.FRAGMENT_SPREAD){var Yn=En.name.value,wn=c.fragmentMap[Yn]||(c.fragmentMap[Yn]=c.cache.lookupFragment(Yn));Br(wn,47,Yn);var ur=ka(En);"mask"!==ur&&(nn=wu(l,wn.selectionSet,c,"migrate"===ur,y))}Y.has(nn)&&Y.add(he)}return"__typename"in l&&!("__typename"in he)&&(he.__typename=l.__typename),Object.keys(he).length!==Object.keys(l).length&&Y.add(he),Y.has(he)?he:l}function Mg(l,i,c,g){if(!c.fragmentMatches)return l;var y=i.definitions.filter(function(Y){return Y.kind===Kn.FRAGMENT_DEFINITION});typeof g>"u"&&(Br(1===y.length,49,y.length),g=y[0].name.value);var C=y.find(function(Y){return Y.name.value===g});return Br(!!C,50,g),null==l||Ai(l,{})?l:hh(l,C.selectionSet,{operationType:"fragment",operationName:C.name.value,fragmentMap:du(Nl(i)),cache:c,mutableTargets:new Cc,knownChanged:new dh})}var ph=function(){function l(){this.assumeImmutableResults=!1,this.getFragmentDoc=Eu($p,{max:ls["cache.fragmentQueryDocuments"]||1e3,cache:Un})}return l.prototype.lookupFragment=function(i){return null},l.prototype.batch=function(i){var y,c=this;return this.performTransaction(function(){return y=i.update(c)},"string"==typeof i.optimistic?i.optimistic:!1===i.optimistic?null:void 0),y},l.prototype.recordOptimisticTransaction=function(i,c){this.performTransaction(i,c)},l.prototype.transformDocument=function(i){return i},l.prototype.transformForLink=function(i){return i},l.prototype.identify=function(i){},l.prototype.gc=function(){return[]},l.prototype.modify=function(i){return!1},l.prototype.readQuery=function(i,c){return void 0===c&&(c=!!i.optimistic),this.read(It(It({},i),{rootId:i.id||"ROOT_QUERY",optimistic:c}))},l.prototype.watchFragment=function(i){var rn,c=this,g=i.fragment,y=i.fragmentName,C=i.from,Y=i.optimistic,he=void 0===Y||Y,ke=xn(i,["fragment","fragmentName","from","optimistic"]),Ee=this.getFragmentDoc(g,y),Xe=typeof C>"u"||"string"==typeof C?C:this.identify(C),ut=!!i[Symbol.for("apollo.dataMasking")],Lt=It(It({},ke),{returnPartialData:!0,id:Xe,query:Ee,optimistic:he});return new Ni(function(cn){return c.watch(It(It({},Lt),{immediate:!0,callback:function(En){var nn=ut?Mg(En.result,g,c,y):En.result;if(!rn||!Ac(Ee,{data:rn.result},{data:nn},i.variables)){var On={data:nn,complete:!!En.complete};En.missing&&(On.missing=Sr(En.missing.map(function(_n){return _n.missing}))),rn=It(It({},En),{result:nn}),cn.next(On)}}}))})},l.prototype.readFragment=function(i,c){return void 0===c&&(c=!!i.optimistic),this.read(It(It({},i),{query:this.getFragmentDoc(i.fragment,i.fragmentName),rootId:i.id,optimistic:c}))},l.prototype.writeQuery=function(i){var c=i.id,g=i.data,y=xn(i,["id","data"]);return this.write(Object.assign(y,{dataId:c||"ROOT_QUERY",result:g}))},l.prototype.writeFragment=function(i){var c=i.id,g=i.data,y=i.fragment,C=i.fragmentName,Y=xn(i,["id","data","fragment","fragmentName"]);return this.write(Object.assign(Y,{query:this.getFragmentDoc(y,C),dataId:c,result:g}))},l.prototype.updateQuery=function(i,c){return this.batch({update:function(g){var y=g.readQuery(i),C=c(y);return null==C?y:(g.writeQuery(It(It({},i),{data:C})),C)}})},l.prototype.updateFragment=function(i,c){return this.batch({update:function(g){var y=g.readFragment(i),C=c(y);return null==C?y:(g.writeFragment(It(It({},i),{data:C})),C)}})},l}(),gh=function(l){function i(c,g,y,C){var Y,he=l.call(this,c)||this;if(he.message=c,he.path=g,he.query=y,he.variables=C,Array.isArray(he.path)){he.missing=he.message;for(var ke=he.path.length-1;ke>=0;--ke)he.missing=((Y={})[he.path[ke]]=he.missing,Y)}else he.missing=he.path;return he.__proto__=i.prototype,he}return tr(i,l),i}(Error),Jr=Object.prototype.hasOwnProperty;function Ad(l){return null==l}function wg(l,i){var c=l.__typename,g=l.id,y=l._id;if("string"==typeof c&&(i&&(i.keyObject=Ad(g)?Ad(y)?void 0:{_id:y}:{id:g}),Ad(g)&&!Ad(y)&&(g=y),!Ad(g)))return"".concat(c,":").concat("number"==typeof g||"string"==typeof g?g:JSON.stringify(g))}var n_={dataIdFromObject:wg,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Sa(l){var i=l.canonizeResults;return void 0===i?n_.canonizeResults:i}var xg=/^[_a-z][_0-9a-z]*/i;function ds(l){var i=l.match(xg);return i?i[0]:l}function al(l,i,c){return!!Zr(i)&&(eo(i)?i.every(function(g){return al(l,g,c)}):l.selections.every(function(g){if(Rl(g)&&Ki(g,c)){var y=wl(g);return Jr.call(i,y)&&(!g.selectionSet||al(g.selectionSet,i[y],c))}return!0}))}function bc(l){return Zr(l)&&!ii(l)&&!eo(l)}function Cd(l,i){var c=du(Nl(l));return{fragmentMap:c,lookupFragment:function(g){var y=c[g];return!y&&i&&(y=i.lookup(g)),y||null}}}var zs=Object.create(null),mh=function(){return zs},kg=Object.create(null),Us=function(){function l(i,c){var g=this;this.policies=i,this.group=c,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(y,C){return ii(y)?g.get(y.__ref,C):y&&y[C]},this.canRead=function(y){return ii(y)?g.has(y.__ref):"object"==typeof y},this.toReference=function(y,C){if("string"==typeof y)return Es(y);if(ii(y))return y;var Y=g.policies.identify(y)[0];if(Y){var he=Es(Y);return C&&g.merge(Y,y),he}}}return l.prototype.toObject=function(){return It({},this.data)},l.prototype.has=function(i){return void 0!==this.lookup(i,!0)},l.prototype.get=function(i,c){if(this.group.depend(i,c),Jr.call(this.data,i)){var g=this.data[i];if(g&&Jr.call(g,c))return g[c]}return"__typename"===c&&Jr.call(this.policies.rootTypenamesById,i)?this.policies.rootTypenamesById[i]:this instanceof Wl?this.parent.get(i,c):void 0},l.prototype.lookup=function(i,c){return c&&this.group.depend(i,"__exists"),Jr.call(this.data,i)?this.data[i]:this instanceof Wl?this.parent.lookup(i,c):this.policies.rootTypenamesById[i]?Object.create(null):void 0},l.prototype.merge=function(i,c){var y,g=this;ii(i)&&(i=i.__ref),ii(c)&&(c=c.__ref);var C="string"==typeof i?this.lookup(y=i):i,Y="string"==typeof c?this.lookup(y=c):c;if(Y){Br("string"==typeof y,2);
1var he=new Ua(Td).merge(C,Y);if(this.data[y]=he,he!==C&&(delete this.refs[y],this.group.caching)){var ke=Object.create(null);C||(ke.__exists=1),Object.keys(Y).forEach(function(Ee){if(!C||C[Ee]!==he[Ee]){ke[Ee]=1;var Xe=ds(Ee);Xe!==Ee&&!g.policies.hasKeyArgs(he.__typename,Xe)&&(ke[Xe]=1),void 0===he[Ee]&&!(g instanceof Wl)&&delete he[Ee]}}),ke.__typename&&!(C&&C.__typename)&&this.policies.rootTypenamesById[y]===he.__typename&&delete ke.__typename,Object.keys(ke).forEach(function(Ee){return g.group.dirty(y,Ee)})}}},l.prototype.modify=function(i,c){var g=this,y=this.lookup(i);if(y){var C=Object.create(null),Y=!1,he=!0,ke={DELETE:zs,INVALIDATE:kg,isReference:ii,toReference:this.toReference,canRead:this.canRead,readField:function(Ee,Xe){return g.policies.readField("string"==typeof Ee?{fieldName:Ee,from:Xe||Es(i)}:Ee,{store:g})}};if(Object.keys(y).forEach(function(Ee){var Xe=ds(Ee),ut=y[Ee];if(void 0!==ut){var lt="function"==typeof c?c:c[Ee]||c[Xe];if(lt){var Lt=lt===mh?zs:lt(ut,It(It({},ke),{fieldName:Xe,storeFieldName:Ee,storage:g.getStorage(i,Ee)}));if(Lt===kg)g.group.dirty(i,Ee);else if(Lt===zs&&(Lt=void 0),Lt!==ut&&(C[Ee]=Lt,Y=!0,ut=Lt,0)&&!ii(Lt)&&Array.isArray(Lt))for(var nn;nn<(void 0).length;nn++){ii(undefined)}}void 0!==ut&&(he=!1)}}),Y)return this.merge(i,C),he&&(this instanceof Wl?this.data[i]=void 0:delete this.data[i],this.group.dirty(i,"__exists")),!0}return!1},l.prototype.delete=function(i,c,g){var y,C=this.lookup(i);if(C){var Y=this.getFieldValue(C,"__typename"),he=c&&g?this.policies.getStoreFieldName({typename:Y,fieldName:c,args:g}):c;return this.modify(i,he?((y={})[he]=mh,y):mh)}return!1},l.prototype.evict=function(i,c){var g=!1;return i.id&&(Jr.call(this.data,i.id)&&(g=this.delete(i.id,i.fieldName,i.args)),this instanceof Wl&&this!==c&&(g=this.parent.evict(i,c)||g),(i.fieldName||g)&&this.group.dirty(i.id,i.fieldName||"__exists")),g},l.prototype.clear=function(){this.replace(null)},l.prototype.extract=function(){var i=this,c=this.toObject(),g=[];return this.getRootIdSet().forEach(function(y){Jr.call(i.policies.rootTypenamesById,y)||g.push(y)}),g.length&&(c.__META={extraRootIds:g.sort()}),c},l.prototype.replace=function(i){var c=this;if(Object.keys(this.data).forEach(function(C){i&&Jr.call(i,C)||c.delete(C)}),i){var g=i.__META,y=xn(i,["__META"]);Object.keys(y).forEach(function(C){c.merge(C,y[C])}),g&&g.extraRootIds.forEach(this.retain,this)}},l.prototype.retain=function(i){return this.rootIds[i]=(this.rootIds[i]||0)+1},l.prototype.release=function(i){if(this.rootIds[i]>0){var c=--this.rootIds[i];return c||delete this.rootIds[i],c}return 0},l.prototype.getRootIdSet=function(i){return void 0===i&&(i=new Set),Object.keys(this.rootIds).forEach(i.add,i),this instanceof Wl?this.parent.getRootIdSet(i):Object.keys(this.policies.rootTypenamesById).forEach(i.add,i),i},l.prototype.gc=function(){var i=this,c=this.getRootIdSet(),g=this.toObject();c.forEach(function(Y){Jr.call(g,Y)&&(Object.keys(i.findChildRefIds(Y)).forEach(c.add,c),delete g[Y])});var y=Object.keys(g);if(y.length){for(var C=this;C instanceof Wl;)C=C.parent;y.forEach(function(Y){return C.delete(Y)})}return y},l.prototype.findChildRefIds=function(i){if(!Jr.call(this.refs,i)){var c=this.refs[i]=Object.create(null),g=this.data[i];if(!g)return c;var y=new Set([g]);y.forEach(function(C){ii(C)&&(c[C.__ref]=!0),Zr(C)&&Object.keys(C).forEach(function(Y){var he=C[Y];Zr(he)&&y.add(he)})})}return this.refs[i]},l.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},l}(),Ru=function(){function l(i,c){void 0===c&&(c=null),this.caching=i,this.parent=c,this.d=null,this.resetCaching()}return l.prototype.resetCaching=function(){this.d=this.caching?yu():null,this.keyMaker=new oa(ks)}
1,l.prototype.depend=function(i,c){if(this.d){this.d(bd(i,c));var g=ds(c);g!==c&&this.d(bd(i,g)),this.parent&&this.parent.depend(i,c)}},l.prototype.dirty=function(i,c){this.d&&this.d.dirty(bd(i,c),"__exists"===c?"forget":"setDirty")},l}();function bd(l,i){return i+"#"+l}function vh(l,i){Tc(l)&&l.group.depend(i,"__exists")}!function(l){var i=function(c){function g(y){var Y=y.resultCaching,ke=y.seed,Ee=c.call(this,y.policies,new Ru(void 0===Y||Y))||this;return Ee.stump=new _h(Ee),Ee.storageTrie=new oa(ks),ke&&Ee.replace(ke),Ee}return tr(g,c),g.prototype.addLayer=function(y,C){return this.stump.addLayer(y,C)},g.prototype.removeLayer=function(){return this},g.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},g}(l);l.Root=i}(Us||(Us={}));var Wl=function(l){function i(c,g,y,C){var Y=l.call(this,g.policies,C)||this;return Y.id=c,Y.parent=g,Y.replay=y,Y.group=C,y(Y),Y}return tr(i,l),i.prototype.addLayer=function(c,g){return new i(c,this,g,this.group)},i.prototype.removeLayer=function(c){var g=this,y=this.parent.removeLayer(c);return c===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(C){var Y=g.data[C],he=y.lookup(C);he?Y?Y!==he&&Object.keys(Y).forEach(function(ke){Ai(Y[ke],he[ke])||g.group.dirty(C,ke)}):(g.group.dirty(C,"__exists"),Object.keys(he).forEach(function(ke){g.group.dirty(C,ke)})):g.delete(C)}),y):y===this.parent?this:y.addLayer(this.id,this.replay)},i.prototype.toObject=function(){return It(It({},this.parent.toObject()),this.data)},i.prototype.findChildRefIds=function(c){var g=this.parent.findChildRefIds(c);return Jr.call(this.data,c)?It(It({},g),l.prototype.findChildRefIds.call(this,c)):g},i.prototype.getStorage=function(){for(var c=this.parent;c.parent;)c=c.parent;return c.getStorage.apply(c,arguments)},i}(Us),_h=function(l){function i(c){return l.call(this,"EntityStore.Stump",c,function(){},new Ru(c.group.caching,c.group))||this}return tr(i,l),i.prototype.removeLayer=function(){return this},i.prototype.merge=function(c,g){return this.parent.merge(c,g)},i}(Wl);function Td(l,i,c){var g=l[c],y=i[c];return Ai(g,y)?g:y}function Tc(l){return!!(l instanceof Us&&l.group.caching)}var Fg=function(){function l(){this.known=new(nl?WeakSet:Set),this.pool=new oa(ks),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return l.prototype.isKnown=function(i){return Zr(i)&&this.known.has(i)},l.prototype.pass=function(i){if(Zr(i)){var c=function Hi(l){return Zr(l)?eo(l)?l.slice(0):It({__proto__:Object.getPrototypeOf(l)},l):l}(i);return this.passes.set(c,i),c}return i},l.prototype.admit=function(i){var c=this;if(Zr(i)){var g=this.passes.get(i);if(g)return g;switch(Object.getPrototypeOf(i)){case Array.prototype:if(this.known.has(i))return i;var C=i.map(this.admit,this);return(Y=this.pool.lookupArray(C)).array||this.known.add(Y.array=C),Y.array;case null:case Object.prototype:if(this.known.has(i))return i;var he=Object.getPrototypeOf(i),ke=[he],Ee=this.sortedKeys(i);ke.push(Ee.json);var Y,Xe=ke.length;if(Ee.sorted.forEach(function(Lt){ke.push(c.admit(i[Lt]))}),!(Y=this.pool.lookupArray(ke)).object){var ut=Y.object=Object.create(he);this.known.add(ut),Ee.sorted.forEach(function(Lt,rn){ut[Lt]=ke[Xe+rn]})}return Y.object}}return i},l.prototype.sortedKeys=function(i){var c=Object.keys(i),g=this.pool.lookupArray(c);if(!g.keys){c.sort();var y=JSON.stringify(c);(g.keys=this.keysByJSON.get(y))||this.keysByJSON.set(y,g.keys={sorted:c,json:y})}return g.keys},l}();function Sd(l){return[l.selectionSet,l.objectOrReference,l.context,l.context.canonizeResults]}var r_=function(){function l(i){var c=this;this.knownResults=new(ks?WeakMap:Map),this.config=ja(i,{addTypename:!1!==i.addTypename,canonizeResults:Sa(i)}),this.canon=i.canon||new Fg,this.executeSelectionSet=Eu(function(g){var y,C=g.context.canonizeResults,Y=Sd(g);Y[3]=!C;var he=(y=c.executeSelectionSet).peek.apply(y,Y);return he?C?It(It({},he),{result:c.canon.admit(he.result)}):he:(vh(g.context.store,g.enclosingRef.__ref),c.execSelectionSetImpl(g))},{max:this.config.resultCacheMaxSize||ls["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Sd,makeCacheKey:function(g,y,C,Y){if(Tc(C.store))return C.store.makeCacheKey(g,ii(y)?y.__ref:y,C.varString,Y)}}),this.executeSubSelectedArray=Eu(function(g){return vh(g.context.store,g.enclosingRef.__ref),c.execSubSelectedArrayImpl(g)},{max:this.config.resultCacheMaxSize||ls["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(g){var y=g.field,C=g.array,Y=g.context;if(Tc(Y.store))return Y.store.makeCacheKey(y,C,Y.varString)}})}return l.prototype.resetCanon=function(){this.canon=new Fg},l.prototype.diffQueryAgainstStore=function(i){var c=i.store,g=i.query,y=i.rootId,C=void 0===y?"ROOT_QUERY":y,Y=i.variables,he=i.returnPartialData,ke=void 0===he||he,Ee=i.canonizeResults,Xe=void 0===Ee?this.config.canonizeResults:Ee,ut=this.config.cache.policies;Y=It(It({},Gp(function iE(l){var i=dc(l);return Br(i&&"query"===i.operation,91),i}(g))),Y);var rn,lt=Es(C),Lt=this.executeSelectionSet({selectionSet:sd(g).selectionSet,objectOrReference:lt,enclosingRef:lt,context:It({store:c,query:g,policies:ut,variables:Y,varStr
1ing:us(Y),canonizeResults:Xe},Cd(g,this.config.fragments))});if(Lt.missing&&(rn=[new gh(i_(Lt.missing),Lt.missing,g,Y)],!ke))throw rn[0];return{result:Lt.result,complete:!rn,missing:rn}},l.prototype.isFresh=function(i,c,g,y){if(Tc(y.store)&&this.knownResults.get(i)===g){var C=this.executeSelectionSet.peek(g,c,y,this.canon.isKnown(i));if(C&&i===C.result)return!0}return!1},l.prototype.execSelectionSetImpl=function(i){var c=this,g=i.selectionSet,y=i.objectOrReference,C=i.enclosingRef,Y=i.context;if(ii(y)&&!Y.policies.rootTypenamesById[y.__ref]&&!Y.store.has(y.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(y.__ref," object")};var lt,he=Y.variables,ke=Y.policies,Xe=Y.store.getFieldValue(y,"__typename"),ut=[],Lt=new Ua;function rn(_n,Yn){var wn;return _n.missing&&(lt=Lt.merge(lt,((wn={})[Yn]=_n.missing,wn))),_n.result}this.config.addTypename&&"string"==typeof Xe&&!ke.rootIdsByTypename[Xe]&&ut.push({__typename:Xe});var cn=new Set(g.selections);cn.forEach(function(_n){var Yn,wn;if(Ki(_n,he))if(Rl(_n)){var ur=ke.readField({fieldName:_n.name.value,field:_n,variables:Y.variables,from:y},Y),Vr=wl(_n);void 0===ur?eg.added(_n)||(lt=Lt.merge(lt,((Yn={})[Vr]="Can't find field '".concat(_n.name.value,"' on ").concat(ii(y)?y.__ref+" object":"object "+JSON.stringify(y,null,2)),Yn))):eo(ur)?ur.length>0&&(ur=rn(c.executeSubSelectedArray({field:_n,array:ur,enclosingRef:C,context:Y}),Vr)):_n.selectionSet?null!=ur&&(ur=rn(c.executeSelectionSet({selectionSet:_n.selectionSet,objectOrReference:ur,enclosingRef:ii(ur)?ur:C,context:Y}),Vr)):Y.canonizeResults&&(ur=c.canon.pass(ur)),void 0!==ur&&ut.push(((wn={})[Vr]=ur,wn))}else{var qr=rl(_n,Y.lookupFragment);if(!qr&&_n.kind===Kn.FRAGMENT_SPREAD)throw pr(10,_n.name.value);qr&&ke.fragmentMatches(qr,Xe)&&qr.selectionSet.selections.forEach(cn.add,cn)}});var nn={result:Sr(ut),missing:lt},On=Y.canonizeResults?this.canon.admit(nn):nn;return On.result&&this.knownResults.set(On.result,g),On},l.prototype.execSubSelectedArrayImpl=function(i){var he,c=this,g=i.field,y=i.array,C=i.enclosingRef,Y=i.context,ke=new Ua;function Ee(Xe,ut){var lt;return Xe.missing&&(he=ke.merge(he,((lt={})[ut]=Xe.missing,lt))),Xe.result}return g.selectionSet&&(y=y.filter(Y.store.canRead)),y=y.map(function(Xe,ut){return null===Xe?null:eo(Xe)?Ee(c.executeSubSelectedArray({field:g,array:Xe,enclosingRef:C,context:Y}),ut):g.selectionSet?Ee(c.executeSelectionSet({selectionSet:g.selectionSet,objectOrReference:Xe,enclosingRef:ii(Xe)?Xe:C,context:Y}),ut):Xe}),{result:Y.canonizeResults?this.canon.admit(y):y,missing:he}},l}();function i_(l){try{JSON.stringify(l,function(i,c){if("string"==typeof c)throw c;return c})}catch(i){return i}}var Dd=new fc,yh=new WeakMap;function Kl(l){var i=yh.get(l);return i||yh.set(l,i={vars:new Set,dep:yu()}),i}function Bg(l){Kl(l).vars.forEach(function(i){return i.forgetCache(l)})}function jg(l){var i=new Set,c=new Set,g=function(C){if(arguments.length>0){if(l!==C){l=C,i.forEach(function(ke){Kl(ke).dep.dirty(g),function s_(l){l.broadcastWatches&&l.broadcastWatches()}(ke)});var Y=Array.from(c);c.clear(),Y.forEach(function(ke){return ke(l)})}}else{var he=Dd.getValue();he&&(y(he),Kl(he).dep(g))}return l};g.onNextChange=function(C){return c.add(C),function(){c.delete(C)}};var y=g.attachCache=function(C){return i.add(C),Kl(C).vars.add(g),g};return g.forgetCache=function(C){return i.delete(C)},g}var Da=Object.create(null);function Eh(l){var i=JSON.stringify(l);return Da[i]||(Da[i]=Object.create(null))}function Ah(l){var i=Eh(l);return i.keyFieldsFn||(i.keyFieldsFn=function(c,g){var y=function(Y,he){return g.readField(he,Y)},C=g.keyObject=Ch(l,function(Y){var he=Nu(g.storeObject,Y,y);return void 0===he&&c!==g.storeObject&&Jr.call(c,Y[0])&&(he=Nu(c,Y,Vg)),Br(void 0!==he,5,Y.join("."),c),he});return"".concat(g.typename,":").concat(JSON.stringify(C))})}function a_(l){var i=Eh(l);return i.keyArgsFn||(i.keyArgsFn=function(c,g){var y=g.field,C=g.variables,Y=g.fieldName,he=Ch(l,function(Ee){var Xe=Ee[0],ut=Xe.charAt(0);if("@"!==ut)if("$"!==ut){if(c)return Nu(c,Ee)}else{var cn=Xe.slice(1);if(C&&Jr.call(C,cn)){var En=Ee.slice(0);return En[0]=cn,Nu(C,En)}}else if(y&&Hs(y.directives)){var lt=Xe.slice(1),Lt=y.directives.find(function(nn){return nn.name.value===lt}),rn=Lt&&Ml(Lt,C);return rn&&Nu(rn,Ee.slice(1))}}),ke=JSON.stringify(he);return(c||"{}"!==ke)&&(Y+=":"+ke),Y})}function Ch(l,i){var c=new Ua;return bh(l).reduce(function(g,y){var C,Y=i(y);if(void 0!==Y){for(var he=y.length-1;he>=0;--he)(C={})[y[he]]=Y,Y=C;
1g=c.merge(g,Y)}return g},Object.create(null))}function bh(l){var i=Eh(l);if(!i.paths){var c=i.paths=[],g=[];l.forEach(function(y,C){eo(y)?(bh(y).forEach(function(Y){return c.push(g.concat(Y))}),g.length=0):(g.push(y),eo(l[C+1])||(c.push(g.slice(0)),g.length=0))})}return i.paths}function Vg(l,i){return l[i]}function Nu(l,i,c){return c=c||Vg,$g(i.reduce(function g(y,C){return eo(y)?y.map(function(Y){return g(Y,C)}):y&&c(y,C)},l))}function $g(l){return Zr(l)?eo(l)?l.map($g):Ch(Object.keys(l).sort(),function(i){return Nu(l,i)}):l}function ll(l){return void 0!==l.args?l.args:l.field?Ml(l.field,l.variables):null}var Sc=function(){},Th=function(l,i){return i.fieldName},Sh=function(l,i,c){return(0,c.mergeObjects)(l,i)},Eo=function(l,i){return i},Dh=function(){function l(i){this.config=i,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=It({dataIdFromObject:wg},i),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),i.possibleTypes&&this.addPossibleTypes(i.possibleTypes),i.typePolicies&&this.addTypePolicies(i.typePolicies)}return l.prototype.identify=function(i,c){var g,y=this,C=c&&(c.typename||(null===(g=c.storeObject)||void 0===g?void 0:g.__typename))||i.__typename;if(C===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var ke,Y=c&&c.storeObject||i,he=It(It({},c),{typename:C,storeObject:Y,readField:c&&c.readField||function(){var ut=Wg(arguments,Y);return y.readField(ut,{store:y.cache.data,variables:ut.variables})}}),Ee=C&&this.getTypePolicy(C),Xe=Ee&&Ee.keyFn||this.config.dataIdFromObject;return fh.withValue(!0,function(){for(;Xe;){var ut=Xe(It(It({},i),Y),he);if(!eo(ut)){ke=ut;break}Xe=Ah(ut)}}),ke=ke?String(ke):void 0,he.keyObject?[ke,he.keyObject]:[ke]},l.prototype.addTypePolicies=function(i){var c=this;
vendor: 1,208 bytes, line 1
1Object.keys(i).forEach(function(g){var y=i[g],C=y.queryType,Y=y.mutationType,he=y.subscriptionType,ke=xn(y,["queryType","mutationType","subscriptionType"]);C&&c.setRootTypename("Query",g),Y&&c.setRootTypename("Mutation",g),he&&c.setRootTypename("Subscription",g),Jr.call(c.toBeAdded,g)?c.toBeAdded[g].push(ke):c.toBeAdded[g]=[ke]})},l.prototype.updateTypePolicy=function(i,c){var g=this,y=this.getTypePolicy(i),C=c.keyFields,Y=c.fields;function he(ke,Ee){ke.merge="function"==typeof Ee?Ee:!0===Ee?Sh:!1===Ee?Eo:ke.merge}he(y,c.merge),y.keyFn=!1===C?Sc:eo(C)?Ah(C):"function"==typeof C?C:y.keyFn,Y&&Object.keys(Y).forEach(function(ke){var Ee=g.getFieldPolicy(i,ke,!0),Xe=Y[ke];if("function"==typeof Xe)Ee.read=Xe;else{var ut=Xe.keyArgs,lt=Xe.read,Lt=Xe.merge;Ee.keyFn=!1===ut?Th:eo(ut)?a_(ut):"function"==typeof ut?ut:Ee.keyFn,"function"==typeof lt&&(Ee.read=lt),he(Ee,Lt)}Ee.read&&Ee.merge&&(Ee.keyFn=Ee.keyFn||Th)})},l.prototype.setRootTypename=function(i,c){void 0===c&&(c=i);var g="ROOT_"+i.toUpperCase(),y=this.rootTypenamesById[g];c!==y&&(Br(!y||y===i,6,i),y&&delete this.rootIdsByTypename[y],this.rootIdsByTypename[c]=g,this.rootTypenamesById[g]=c)},l.prototype.addPossibleTypes=function(i){var c=this;
1this.usingPossibleTypes=!0,Object.keys(i).forEach(function(g){c.getSupertypeSet(g,!0),i[g].forEach(function(y){c.getSupertypeSet(y,!0).add(g);var C=y.match(xg);(!C||C[0]!==y)&&c.fuzzySubtypes.set(y,new RegExp(y))})})},l.prototype.getTypePolicy=function(i){var c=this;if(!Jr.call(this.typePolicies,i)){var g=this.typePolicies[i]=Object.create(null);g.fields=Object.create(null);var y=this.supertypeMap.get(i);!y&&this.fuzzySubtypes.size&&(y=this.getSupertypeSet(i,!0),this.fuzzySubtypes.forEach(function(Y,he){if(Y.test(i)){var ke=c.supertypeMap.get(he);ke&&ke.forEach(function(Ee){return y.add(Ee)})}})),y&&y.size&&y.forEach(function(Y){var he=c.getTypePolicy(Y),ke=he.fields,Ee=xn(he,["fields"]);Object.assign(g,Ee),Object.assign(g.fields,ke)})}var C=this.toBeAdded[i];return C&&C.length&&C.splice(0).forEach(function(Y){c.updateTypePolicy(i,Y)}),this.typePolicies[i]},l.prototype.getFieldPolicy=function(i,c,g){if(i){var y=this.getTypePolicy(i).fields;return y[c]||g&&(y[c]=Object.create(null))}},l.prototype.getSupertypeSet=function(i,c){var g=this.supertypeMap.get(i);return!g&&c&&this.supertypeMap.set(i,g=new Set),g},l.prototype.fragmentMatches=function(i,c,g,y){var C=this;if(!i.typeCondition)return!0;if(!c)return!1;var Y=i.typeCondition.name.value;if(c===Y)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(Y))for(var he=this.getSupertypeSet(c,!0),ke=[he],Ee=function(rn){var cn=C.getSupertypeSet(rn,!1);cn&&cn.size&&ke.indexOf(cn)<0&&ke.push(cn)},Xe=!(!g||!this.fuzzySubtypes.size),lt=0;lt<ke.length;++lt){var Lt=ke[lt];if(Lt.has(Y))return he.has(Y)||he.add(Y),!0;Lt.forEach(Ee),Xe&&lt===ke.length-1&&al(i.selectionSet,g,y)&&(Xe=!1,this.fuzzySubtypes.forEach(function(rn,cn){var En=c.match(rn);En&&En[0]===c&&Ee(cn)}))}return!1},l.prototype.hasKeyArgs=function(i,c){var g=this.getFieldPolicy(i,c,!1);return!(!g||!g.keyFn)},l.prototype.getStoreFieldName=function(i){var C,c=i.typename,g=i.fieldName,y=this.getFieldPolicy(c,g,!1),Y=y&&y.keyFn;if(Y&&c)for(var he={typename:c,fieldName:g,field:i.field||null,variables:i.variables},ke=ll(i);Y;){var Ee=Y(ke,he);if(!eo(Ee)){C=Ee||g;break}Y=a_(Ee)}return void 0===C&&(C=i.field?function xv(l,i){var c=null;l.directives&&(c={},l.directives.forEach(function(y){c[y.name.value]={},y.arguments&&y.arguments.forEach(function(C){return Pl(c[y.name.value],C.name,C.value,i)})}));var g=null;return l.arguments&&l.arguments.length&&(g={},l.arguments.forEach(function(y){return Pl(g,y.name,y.value,i)})),Kp(l.name.value,g,c)}(i.field,i.variables):Kp(g,ll(i))),!1===C?g:g===ds(C)?C:g+":"+C},l.prototype.readField=function(i,c){var g=i.from;if(g&&(i.field||i.fieldName)){if(void 0===i.typename){var C=c.store.getFieldValue(g,"__typename");C&&(i.typename=C)}var Y=this.getStoreFieldName(i),he=ds(Y),ke=c.store.getFieldValue(g,Y),Ee=this.getFieldPolicy(i.typename,he,!1),Xe=Ee&&Ee.read;if(Xe){var ut=l_(this,g,i,c,c.store.getStorage(ii(g)?g.__ref:g,Y));return Dd.withValue(this.cache,Xe,[ke,ut])}return ke}},l.prototype.getReadFunction=function(i,c){var g=this.getFieldPolicy(i,c,!1);return g&&g.read},l.prototype.getMergeFunction=function(i,c,g){var y=this.getFieldPolicy(i,c,!1),C=y&&y.merge;return!C&&g&&(C=(y=this.getTypePolicy(g))&&y.merge),C},l.prototype.runMergeFunction=function(i,c,g,y,C){var Y=g.field,he=g.typename,ke=g.merge;return ke===Sh?Id(y.store)(i,c):ke===Eo?c:(y.overwrite&&(i=void 0),ke(i,c,l_(this,void 0,{typename:he,fieldName:Y.name.value,field:Y,variables:y.variables},y,C||Object.create(null))))},l}();function l_(l,i,c,g,y){var C=l.getStoreFieldName(c),Y=ds(C),he=c.variables||g.variables,ke=g.store,Ee=ke.toReference,Xe=ke.canRead;return{args:ll(c),field:c.field||null,fieldName:Y,storeFieldName:C,variables:he,isReference:ii,toReference:Ee,storage:y,cache:l.cache,canRead:Xe,readField:function(){return l.readField(Wg(arguments,i,he),g)},mergeObjects:Id(g.store)}}function Wg(l,i,c){var Y,g=l[0];return"string"==typeof g?Y={fieldName:g,from:l.length>1?l[1]:i}:(Y=It({},g),Jr.call(Y,"from")||(Y.from=i)),void 0===Y.variables&&(Y.variables=c),Y}function Id(l){return function(i,c){if(eo(i)||eo(c))throw pr(9);if(Zr(i)&&Zr(c)){var g=l.getFieldValue(i,"__typename"),y=l.getFieldValue(c,"__typename");if(g&&y&&g!==y)return c;if(ii(i)&&bc(c))return l.merge(i.__ref,c),i;if(bc(i)&&ii(c))return l.merge(i,c.__ref),c;if(bc(i)&&bc(c))return It(It({},i),c)}return c}}
1function xu(l,i,c){var g="".concat(i).concat(c),y=l.flavors.get(g);return y||l.flavors.set(g,y=l.clientOnly===i&&l.deferred===c?l:It(It({},l),{clientOnly:i,deferred:c})),y}var Ci,Kg=function(){function l(i,c,g){this.cache=i,this.reader=c,this.fragments=g}return l.prototype.writeToStore=function(i,c){var g=this,y=c.query,C=c.result,Y=c.dataId,he=c.variables,ke=c.overwrite,Ee=dc(y),Xe=function Lg(){return new Ua}();he=It(It({},Gp(Ee)),he);var ut=It(It({store:i,written:Object.create(null),merge:function(Lt,rn){return Xe.merge(Lt,rn)},variables:he,varString:us(he)},Cd(y,this.fragments)),{overwrite:!!ke,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),lt=this.processSelectionSet({result:C||Object.create(null),dataId:Y,selectionSet:Ee.selectionSet,mergeTree:{map:new Map},context:ut});if(!ii(lt))throw pr(12,C);return ut.incomingById.forEach(function(Lt,rn){var cn=Lt.storeObject,En=Lt.mergeTree,On=Es(rn);if(En&&En.map.size){var _n=g.applyMerges(En,On,cn,ut);if(ii(_n))return;cn=_n}i.merge(rn,cn)}),i.retain(lt.__ref),lt},l.prototype.processSelectionSet=function(i){var c=this,g=i.dataId,y=i.result,C=i.selectionSet,Y=i.context,he=i.mergeTree,ke=this.cache.policies,Ee=Object.create(null),Xe=g&&ke.rootTypenamesById[g]||Hp(y,C,Y.fragmentMap)||g&&Y.store.get(g,"__typename");"string"==typeof Xe&&(Ee.__typename=Xe);var ut=function(){var _n=Wg(arguments,Ee,Y.variables);if(ii(_n.from)){var Yn=Y.incomingById.get(_n.from.__ref);if(Yn){var wn=ke.readField(It(It({},_n),{from:Yn.storeObject}),Y);if(void 0!==wn)return wn}}return ke.readField(_n,Y)},lt=new Set;this.flattenFields(C,y,Y,Xe).forEach(function(_n,Yn){var wn,ur=wl(Yn),Vr=y[ur];if(lt.add(Yn),void 0!==Vr){var qr=ke.getStoreFieldName({typename:Xe,fieldName:Yn.name.value,field:Yn,variables:_n.variables}),vi=Ih(he,qr),Pi=c.processFieldValue(Vr,Yn,Yn.selectionSet?xu(_n,!1,!1):_n,vi),Fo=void 0;Yn.selectionSet&&(ii(Pi)||bc(Pi))&&(Fo=ut("__typename",Pi));var Bs=ke.getMergeFunction(Xe,Yn.name.value,Fo);Bs?vi.info={field:Yn,typename:Xe,merge:Bs}:Pd(he,qr),Ee=_n.merge(Ee,((wn={})[qr]=Pi,wn))}});try{var Lt=ke.identify(y,{typename:Xe,selectionSet:C,fragmentMap:Y.fragmentMap,storeObject:Ee,readField:ut}),cn=Lt[1];g=g||Lt[0],cn&&(Ee=Y.merge(Ee,cn))}catch(_n){if(!g)throw _n}if("string"==typeof g){var En=Es(g),nn=Y.written[g]||(Y.written[g]=[]);if(nn.indexOf(C)>=0||(nn.push(C),this.reader&&this.reader.isFresh(y,En,C,Y)))return En;var On=Y.incomingById.get(g);return On?(On.storeObject=Y.merge(On.storeObject,Ee),On.mergeTree=Hl(On.mergeTree,he),lt.forEach(function(_n){return On.fieldNodeSet.add(_n)})):Y.incomingById.set(g,{storeObject:Ee,mergeTree:Od(he)?void 0:he,fieldNodeSet:lt}),En}return Ee},l.prototype.processFieldValue=function(i,c,g,y){var C=this;return c.selectionSet&&null!==i?eo(i)?i.map(function(Y,he){var ke=C.processFieldValue(Y,c,g,Ih(y,he));return Pd(y,he),ke}):this.processSelectionSet({result:i,selectionSet:c.selectionSet,context:g,mergeTree:y}):i},l.prototype.flattenFields=function(i,c,g,y){void 0===y&&(y=Hp(c,i,g.fragmentMap));var C=new Map,Y=this.cache.policies,he=new oa(!1);return function ke(Ee,Xe){var ut=he.lookup(Ee,Xe.clientOnly,Xe.deferred);ut.visited||(ut.visited=!0,Ee.selections.forEach(function(lt){if(Ki(lt,g.variables)){var Lt=Xe.clientOnly,rn=Xe.deferred;if(!(Lt&&rn)&&Hs(lt.directives)&&lt.directives.forEach(function(nn){var On=nn.name.value;if("client"===On&&(Lt=!0),"defer"===On){var _n=Ml(nn,g.variables);(!_n||!1!==_n.if)&&(rn=!0)}}),Rl(lt)){var cn=C.get(lt);cn&&(Lt=Lt&&cn.clientOnly,rn=rn&&cn.deferred),C.set(lt,xu(g,Lt,rn))}else{var En=rl(lt,g.lookupFragment);if(!En&&lt.kind===Kn.FRAGMENT_SPREAD)throw pr(14,lt.name.value);En&&Y.fragmentMatches(En,y,c,g.variables)&&ke(En.selectionSet,xu(g,Lt,rn))}}}))}(i,g),C},l.prototype.applyMerges=function(i,c,g,y,C){var Y,he=this;if(i.map.size&&!ii(g)){var ke=eo(g)||!ii(c)&&!bc(c)?void 0:c,Ee=g;ke&&!C&&(C=[ii(ke)?ke.__ref:ke]);var Xe,ut=function(lt,Lt){return eo(lt)?"number"==typeof Lt?lt[Lt]:void 0:y.store.getFieldValue(lt,String(Lt))};i.map.forEach(function(lt,Lt){var rn=ut(ke,Lt),cn=ut(Ee,Lt);if(void 0!==cn){C&&C.push(Lt);var En=he.applyMerges(lt,rn,cn,y,C);En!==cn&&(Xe=Xe||new Map).set(Lt,En),C&&Br(C.pop()===Lt)}}),Xe&&(g=eo(Ee)?Ee.slice(0):It({},Ee),Xe.forEach(function(lt,Lt){g[Lt]=lt}))}return i.info?this.cache.policies.runMergeFunction(c,g,i.info,y,C&&
1(Y=y.store).getStorage.apply(Y,C)):g},l}(),Hg=[];function Ih(l,i){var c=l.map;return c.has(i)||c.set(i,Hg.pop()||{map:new Map}),c.get(i)}function Hl(l,i){if(l===i||!i||Od(i))return l;if(!l||Od(l))return i;var c=l.info&&i.info?It(It({},l.info),i.info):l.info||i.info,g=l.map.size&&i.map.size,C={info:c,map:g?new Map:l.map.size?l.map:i.map};if(g){var Y=new Set(i.map.keys());l.map.forEach(function(he,ke){C.map.set(ke,Hl(he,i.map.get(ke))),Y.delete(ke)}),Y.forEach(function(he){C.map.set(he,Hl(i.map.get(he),l.map.get(he)))})}return C}function Od(l){return!l||!(l.info||l.map.size)}function Pd(l,i){var c=l.map,g=c.get(i);g&&Od(g)&&(Hg.push(g),c.delete(i))}function Wa(l){return!!l&&l<7}!function(l){function i(c){void 0===c&&(c={});var g=l.call(this)||this;return g.watches=new Set,g.addTypenameTransform=new Jp(eg),g.assumeImmutableResults=!0,g.makeVar=jg,g.txCount=0,g.config=function Rg(l){return ja(n_,l)}(c),g.addTypename=!!g.config.addTypename,g.policies=new Dh({cache:g,dataIdFromObject:g.config.dataIdFromObject,possibleTypes:g.config.possibleTypes,typePolicies:g.config.typePolicies}),g.init(),g}tr(i,l),i.prototype.init=function(){var c=this.data=new Us.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=c.stump,this.resetResultCache()},i.prototype.resetResultCache=function(c){var g=this,y=this.storeReader,C=this.config.fragments;this.storeWriter=new Kg(this,this.storeReader=new r_({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Sa(this.config),canon:c?void 0:y&&y.canon,fragments:C}),C),this.maybeBroadcastWatch=Eu(function(Y,he){return g.broadcastWatch(Y,he)},{max:this.config.resultCacheMaxSize||ls["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(Y){var he=Y.optimistic?g.optimisticData:g.data;if(Tc(he))return he.makeCacheKey(Y.query,Y.callback,us({optimistic:Y.optimistic,id:Y.id,variables:Y.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(Y){return Y.resetCaching()})},i.prototype.restore=function(c){return this.init(),c&&this.data.replace(c),this},i.prototype.extract=function(c){return void 0===c&&(c=!1),(c?this.optimisticData:this.data).extract()},i.prototype.read=function(c){var g=c.returnPartialData,y=void 0!==g&&g;try{return this.storeReader.diffQueryAgainstStore(It(It({},c),{store:c.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:y})).result||null}catch(C){if(C instanceof gh)return null;throw C}},i.prototype.write=function(c){try{return++this.txCount,this.storeWriter.writeToStore(this.data,c)}finally{! --this.txCount&&!1!==c.broadcast&&this.broadcastWatches()}},i.prototype.modify=function(c){if(Jr.call(c,"id")&&!c.id)return!1;var g=c.optimistic?this.optimisticData:this.data;try{return++this.txCount,g.modify(c.id||"ROOT_QUERY",c.fields)}finally{! --this.txCount&&!1!==c.broadcast&&this.broadcastWatches()}},i.prototype.diff=function(c){return this.storeReader.diffQueryAgainstStore(It(It({},c),{store:c.optimistic?this.optimisticData:this.data,rootId:c.id||"ROOT_QUERY",config:this.config}))},i.prototype.watch=function(c){var g=this;return this.watches.size||function o_(l){Kl(l).vars.forEach(function(i){return i.attachCache(l)})}(this),this.watches.add(c),c.immediate&&this.maybeBroadcastWatch(c),function(){g.watches.delete(c)&&!g.watches.size&&Bg(g),g.maybeBroadcastWatch.forget(c)}},i.prototype.gc=function(c){var g;us.reset(),Aa.reset(),this.addTypenameTransform.resetCache(),null===(g=this.config.fragments)||void 0===g||g.resetCaches();var y=this.optimisticData.gc();return c&&!this.txCount&&(c.resetResultCache?this.resetResultCache(c.resetResultIdentities):c.resetResultIdentities&&this.storeReader.resetCanon()),y},i.prototype.retain=function(c,g){return(g?this.optimisticData:this.data).retain(c)},i.prototype.release=function(c,g){return(g?this.optimisticData:this.data).release(c)},i.prototype.identify=function(c){if(ii(c))return c.__ref;try{return this.policies.identify(c)[0]}catch(g){}},i.prototype.evict=function(c){if(!c.id){if(Jr.call(c,"id"))return!1;
1c=It(It({},c),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(c,this.data)}finally{! --this.txCount&&!1!==c.broadcast&&this.broadcastWatches()}},i.prototype.reset=function(c){var g=this;return this.init(),us.reset(),c&&c.discardWatches?(this.watches.forEach(function(y){return g.maybeBroadcastWatch.forget(y)}),this.watches.clear(),Bg(this)):this.broadcastWatches(),Promise.resolve()},i.prototype.removeOptimistic=function(c){var g=this.optimisticData.removeLayer(c);g!==this.optimisticData&&(this.optimisticData=g,this.broadcastWatches())},i.prototype.batch=function(c){var Ee,g=this,y=c.update,C=c.optimistic,Y=void 0===C||C,he=c.removeOptimistic,ke=c.onWatchUpdated,Xe=function(lt){var rn=g.data,cn=g.optimisticData;++g.txCount,lt&&(g.data=g.optimisticData=lt);try{return Ee=y(g)}finally{--g.txCount,g.data=rn,g.optimisticData=cn}},ut=new Set;return ke&&!this.txCount&&this.broadcastWatches(It(It({},c),{onWatchUpdated:function(lt){return ut.add(lt),!1}})),"string"==typeof Y?this.optimisticData=this.optimisticData.addLayer(Y,Xe):!1===Y?Xe(this.data):Xe(),"string"==typeof he&&(this.optimisticData=this.optimisticData.removeLayer(he)),ke&&ut.size?(this.broadcastWatches(It(It({},c),{onWatchUpdated:function(lt,Lt){var rn=ke.call(this,lt,Lt);return!1!==rn&&ut.delete(lt),rn}})),ut.size&&ut.forEach(function(lt){return g.maybeBroadcastWatch.dirty(lt)})):this.broadcastWatches(c),Ee},i.prototype.performTransaction=function(c,g){return this.batch({update:c,optimistic:g||null!==g})},i.prototype.transformDocument=function(c){return this.addTypenameToDocument(this.addFragmentsToDocument(c))},i.prototype.fragmentMatches=function(c,g){return this.policies.fragmentMatches(c,g)},i.prototype.lookupFragment=function(c){var g;return(null===(g=this.config.fragments)||void 0===g?void 0:g.lookup(c))||null},i.prototype.broadcastWatches=function(c){var g=this;this.txCount||this.watches.forEach(function(y){return g.maybeBroadcastWatch(y,c)})},i.prototype.addFragmentsToDocument=function(c){var g=this.config.fragments;return g?g.transform(c):c},i.prototype.addTypenameToDocument=function(c){return this.addTypename?this.addTypenameTransform.transformDocument(c):c},i.prototype.broadcastWatch=function(c,g){var y=c.lastDiff,C=this.diff(c);g&&(c.optimistic&&"string"==typeof g.optimistic&&(C.fromOptimisticTransaction=!0),g.onWatchUpdated&&!1===g.onWatchUpdated.call(this,c,C,y))||(!y||!Ai(y.result,C.result))&&c.callback(c.lastDiff=C,y)}}(ph),function(l){l[l.loading=1]="loading",l[l.setVariables=2]="setVariables",l[l.fetchMore=3]="fetchMore",l[l.refetch=4]="refetch",l[l.poll=6]="poll",l[l.ready=7]="ready",l[l.error=8]="error"}(Ci||(Ci={}));var Dc=Object.assign,Ph=function(l){function i(c){var g=c.queryManager,y=c.queryInfo,C=c.options,Y=l.call(this,function(En){try{var nn=En._subscription._observer;nn&&!nn.error&&(nn.error=zg)}catch(Yn){}var On=!Y.observers.size;Y.observers.add(En);var _n=Y.last;return _n&&_n.error?En.error&&En.error(_n.error):_n&&_n.result&&En.next&&En.next(Y.maskResult(_n.result)),On&&Y.reobserve().catch(function(){}),function(){Y.observers.delete(En)&&!Y.observers.size&&Y.tearDownQuery()}})||this;Y.observers=new Set,Y.subscriptions=new Set,Y.queryInfo=y,Y.queryManager=g,Y.waitForOwnResult=Mh(C.fetchPolicy),Y.isTornDown=!1,Y.subscribeToMore=Y.subscribeToMore.bind(Y),Y.maskResult=Y.maskResult.bind(Y);var he=g.defaultOptions.watchQuery,Ee=(void 0===he?{}:he).fetchPolicy,Xe=void 0===Ee?"cache-first":Ee,ut=C.fetchPolicy,lt=void 0===ut?Xe:ut,Lt=C.initialFetchPolicy,rn=void 0===Lt?"standby"===lt?Xe:lt:Lt;Y.options=It(It({},C),{initialFetchPolicy:rn,fetchPolicy:lt}),Y.queryId=y.queryId||g.generateQueryId();var cn=dc(Y.query);return Y.queryName=cn&&cn.name&&cn.name.value,Y}return tr(i,l),Object.defineProperty(i.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),i.prototype.result=function(){var c=this;return new Promise(function(g,y){var C={next:function(he){g(he),c.observers.delete(C),c.observers.size||c.queryManager.removeQuery(c.queryId),setTimeout(function(){Y.unsubscribe()},0)},error:y},Y=c.subscribe(C)})},i.prototype.resetDiff=function(){this.queryInfo.resetDiff()},i.prototype.getCurrentFullResult=function(c){void 0===c&&(c=!0);var g=this.getLastResult(!0),y=this.queryInfo.networkStatus||g&&g.networkStatus||Ci.ready,C=It(It({},g),{loading:Wa(y),networkStatus:y}),Y=this.options.fetchPolicy,he=void 0===Y?"cache-first":Y;if(!Mh(he)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var ke=this.queryInfo.getDiff();(ke.complete||this.options.returnPartialData)&&(C.data=ke.result),Ai(C.data,{})&&(C.data=void 0),ke.complete?(delete C.partial,ke.complete&&C.networkStatus===Ci.loading&&("cache-first"===he||"cache-only"===he)&&(C.networkStatus=Ci.ready,C.loading=!1)):C.partial=!0,C.networkStatus===Ci.ready&&(C.error||C.errors)&&(C.networkStatus=Ci.error)}return c&&this.updateLastResult(C),C},i.prototype.getCurrentResult=function(c){return void 0===c&&(c=!0),this.maskResult(this.getCurrentFullResult(c))},i.prototype.isDifferentFromLastResult=function(c,g){if(!this.last)return!0;var y=this.queryManager.getDocumentInfo(this.query),C=this.queryManager.dataMasking;return(C||y.hasNonreactiveDirective?!Ac(C?y.nonReactiveQuery:this.query,this.last.result,c,this.variables):!Ai(this.last.result,c))||g&&!Ai(this.last.variables,g)},i.prototype.getLast=function(c,g){var y=this.last;if(y&&y[c]&&(!g||Ai(y.variables,this.variables)))return y[c]},i.prototype.getLastResult=function(c){return this.getLast("result",c)},i.prototype.getLastError=function(c){return this.getLast("error",c)},i.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},i.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},i.prototype.refetch=function(c){var y={pollInterval:0};return y.fetchPolicy="no-cache"===this.options.fetchPolicy?"no-cache":"network-only",c&&!Ai(this.options.variables,c)&&(y.variables=this.options.variables=It
1(It({},this.options.variables),c)),this.queryInfo.resetLastWrite(),this.reobserve(y,Ci.refetch)},i.prototype.fetchMore=function(c){var g=this,y=It(It({},c.query?c:It(It(It(It({},this.options),{query:this.options.query}),c),{variables:It(It({},this.options.variables),c.variables)})),{fetchPolicy:"no-cache"});y.query=this.transformDocument(y.query);var C=this.queryManager.generateQueryId();this.lastQuery=c.query?this.transformDocument(this.options.query):y.query;var Y=this.queryInfo,he=Y.networkStatus;Y.networkStatus=Ci.fetchMore,y.notifyOnNetworkStatusChange&&this.observe();var ke=new Set,Ee=null==c?void 0:c.updateQuery,Xe="no-cache"!==this.options.fetchPolicy;return Xe||Br(Ee,22),this.queryManager.fetchQuery(C,y,Ci.fetchMore).then(function(ut){if(g.queryManager.removeQuery(C),Y.networkStatus===Ci.fetchMore&&(Y.networkStatus=he),Xe)g.queryManager.cache.batch({update:function(rn){var cn=c.updateQuery;cn?rn.updateQuery({query:g.query,variables:g.variables,returnPartialData:!0,optimistic:!1},function(En){return cn(En,{fetchMoreResult:ut.data,variables:y.variables})}):rn.writeQuery({query:y.query,variables:y.variables,data:ut.data})},onWatchUpdated:function(rn){ke.add(rn.query)}});else{var lt=g.getLast("result"),Lt=Ee(lt.data,{fetchMoreResult:ut.data,variables:y.variables});g.reportResult(It(It({},lt),{networkStatus:he,loading:Wa(he),data:Lt}),g.variables)}return g.maskResult(ut)}).finally(function(){Xe&&!ke.has(g.query)&&Gg(g)})},i.prototype.subscribeToMore=function(c){var g=this,y=this.queryManager.startGraphQLSubscription({query:c.document,variables:c.variables,context:c.context}).subscribe({next:function(C){var Y=c.updateQuery;Y&&g.updateQuery(function(he,ke){return Y(he,It({subscriptionData:C},ke))})},error:function(C){c.onError&&c.onError(C)}});return this.subscriptions.add(y),function(){g.subscriptions.delete(y)&&y.unsubscribe()}},i.prototype.setOptions=function(c){return this.reobserve(c)},i.prototype.silentSetOptions=function(c){var g=ja(this.options,c||{});Dc(this.options,g)},i.prototype.setVariables=function(c){return Ai(this.variables,c)?this.observers.size?this.result():Promise.resolve():(this.options.variables=c,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:c},Ci.setVariables):Promise.resolve())},i.prototype.updateQuery=function(c){var g=this.queryManager,y=g.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),C=y.result,he=c(C,{variables:this.variables,complete:!!y.complete,previousData:C});he&&(g.cache.writeQuery({query:this.options.query,data:he,variables:this.variables}),g.broadcastQueries())},i.prototype.startPolling=function(c){this.options.pollInterval=c,this.updatePolling()},i.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},i.prototype.applyNextFetchPolicy=function(c,g){if(g.nextFetchPolicy){var y=g.fetchPolicy,C=void 0===y?"cache-first":y,Y=g.initialFetchPolicy,he=void 0===Y?C:Y;"standby"===C||(g.fetchPolicy="function"==typeof g.nextFetchPolicy?g.nextFetchPolicy(C,{reason:c,options:g,observable:this,initialFetchPolicy:he}):"variables-changed"===c?he:g.nextFetchPolicy)}return g.fetchPolicy},i.prototype.fetch=function(c,g,y){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,c,g,y)},i.prototype.updatePolling=function(){var c=this;if(!this.queryManager.ssrMode){var y=this.pollingInfo,C=this.options.pollInterval;if(!C||!this.hasObservers())return void(y&&(clearTimeout(y.timeout),delete this.pollingInfo));if(!y||y.interval!==C){Br(C,24),(y||(this.pollingInfo={})).interval=C;var he=function(){var Ee,Xe;c.pollingInfo&&(Wa(c.queryInfo.networkStatus)||null!==(Xe=(Ee=c.options).skipPollAttempt)&&void 0!==Xe&&Xe.call(Ee)?ke():c.reobserve({fetchPolicy:"no-cache"===c.options.initialFetchPolicy?"no-cache":"network-only"},Ci.poll).then(ke,ke))},ke=function(){var Ee=c.pollingInfo;Ee&&(clearTimeout(Ee.timeout),Ee.timeout=setTimeout(he,Ee.interval))};ke()}}},i.prototype.updateLastResult=function(c,g){void 0===g&&(g=this.variables);var y=this.getLastError();return y&&this.last&&!Ai(g,this.last.variables)&&(y=void 0),this.last=
1It({result:this.queryManager.assumeImmutableResults?c:ug(c),variables:g},y?{error:y}:null)},i.prototype.reobserveAsConcast=function(c,g){var y=this;this.isTornDown=!1;var C=g===Ci.refetch||g===Ci.fetchMore||g===Ci.poll,Y=this.options.variables,he=this.options.fetchPolicy,ke=ja(this.options,c||{}),Ee=C?ke:Dc(this.options,ke),Xe=this.transformDocument(Ee.query);this.lastQuery=Xe,C||(this.updatePolling(),c&&c.variables&&!Ai(c.variables,Y)&&"standby"!==Ee.fetchPolicy&&(Ee.fetchPolicy===he||"function"==typeof Ee.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",Ee),void 0===g&&(g=Ci.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Mh(Ee.fetchPolicy));var ut=function(){y.concast===rn&&(y.waitForOwnResult=!1)},lt=Ee.variables&&It({},Ee.variables),Lt=this.fetch(Ee,g,Xe),rn=Lt.concast,En={next:function(nn){Ai(y.variables,lt)&&(ut(),y.reportResult(nn,lt))},error:function(nn){Ai(y.variables,lt)&&(Mu(nn)||(nn=new $a({networkError:nn})),ut(),y.reportError(nn,lt))}};return!C&&(Lt.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=rn,this.observer=En),rn.addObserver(En),rn},i.prototype.reobserve=function(c,g){return function ag(l){return l.catch(function(){}),l}(this.reobserveAsConcast(c,g).promise.then(this.maskResult))},i.prototype.resubscribeAfterError=function(){for(var c=[],g=0;g<arguments.length;g++)c[g]=arguments[g];var y=this.last;this.resetLastResults();var C=this.subscribe.apply(this,c);return this.last=y,C},i.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},i.prototype.reportResult=function(c,g){var y=this.getLastError(),C=this.isDifferentFromLastResult(c,g);(y||!c.partial||this.options.returnPartialData)&&this.updateLastResult(c,g),(y||C)&&la(this.observers,"next",this.maskResult(c))},i.prototype.reportError=function(c,g){var y=It(It({},this.getLastResult()),{error:c,errors:c.graphQLErrors,networkStatus:Ci.error,loading:!1});this.updateLastResult(y,g),la(this.observers,"error",this.last.error=c)},i.prototype.hasObservers=function(){return this.observers.size>0},i.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(c){return c.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},i.prototype.transformDocument=function(c){return this.queryManager.transform(c)},i.prototype.maskResult=function(c){return c&&"data"in c?It(It({},c),{data:this.queryManager.maskOperation({document:this.query,data:c.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):c},i}(Ni);function Gg(l){var i=l.options,c=i.fetchPolicy,g=i.nextFetchPolicy;return"cache-and-network"===c||"network-only"===c?l.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(y,C){return this.nextFetchPolicy=g,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(y,C):c}}):l.reobserve()}function zg(l){}function Mh(l){return"network-only"===l||"no-cache"===l||"standby"===l}Zf(Ph);var Lu=new(ks?WeakMap:Map);function Go(l,i){var c=l[i];"function"==typeof c&&(l[i]=function(){return Lu.set(l,(Lu.get(l)+1)%1e15),c.apply(this,arguments)})}function Rd(l){l.notifyTimeout&&(clearTimeout(l.notifyTimeout),l.notifyTimeout=void 0)}var Nd=function(){function l(i,c){void 0===c&&(c=i.generateQueryId()),this.queryId=c,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var g=this.cache=i.cache;Lu.has(g)||(Lu.set(g,0),Go(g,"evict"),Go(g,"modify"),Go(g,"reset"))}return l.prototype.init=function(i){var c=i.networkStatus||Ci.loading;return this.variables&&this.networkStatus!==Ci.loading&&!Ai(this.variables,i.variables)&&(c=Ci.setVariables),Ai(i.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:i.document,variables:i.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:c}),i.observableQuery&&this.setObservableQuery(i.observableQuery),i.lastRequestId&&(this.lastRequestId=i.lastRequestId),this},l.prototype.reset=function(){Rd(this),this.dirty=!1},l.prototype.resetDiff=function(){this.lastDiff=void 0},l.prototype.getDiff=function(){var i=this.getDiffOptions();if(this.lastDiff&&Ai(i,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var c=this.observableQuery;if(c&&"no-cache"===c.options.fetchPolicy)return{complete:!1};var g=this.cache.diff(i);return this.updateLastDiff(g,i),g},l.prototype.updateLastDiff=function(i,c){this.lastDiff=i?{diff:i,options:c||this.getDiffOptions()}:void 0},l.prototype.getDiffOptions=function(i){var c;return void 0===i&&(i=this.variables),{query:this.document,variables:i,returnPartialData:!0,optimistic:!0,canonizeResults:null===(c=this.observableQuery)||void 0===c?void 0:c.options.canonizeResults}},l.prototype.setDiff=function(i){var g,c=this,y=this.lastDiff&&this.lastDiff.diff;i&&!i.complete&&null!==(g=this.observableQuery)&&void 0!==g&&g.getLastError()||(this.updateLastDiff(i),!this.dirty&&!Ai(y&&y.result,i&&i.result)&&(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return c.notify()},0))))},l.prototype.setObservableQuery=function(i){var c=this;i!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=i,i?(i.queryInfo=this,this.listeners.add(this.oqListener=function(){c.getDiff().fromOptimisticTransaction?i.observe():Gg(i)})):delete this.oqListener)},l.prototype.notify=function(){var i=this;
1Rd(this),this.shouldNotify()&&this.listeners.forEach(function(c){return c(i)}),this.dirty=!1},l.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Wa(this.networkStatus)&&this.observableQuery){var i=this.observableQuery.options.fetchPolicy;if("cache-only"!==i&&"cache-and-network"!==i)return!1}return!0},l.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel();var i=this.observableQuery;i&&i.stopPolling()}},l.prototype.cancel=function(){var i;null===(i=this.cancelWatch)||void 0===i||i.call(this),this.cancelWatch=void 0},l.prototype.updateWatch=function(i){var c=this;void 0===i&&(i=this.variables);var g=this.observableQuery;if(!g||"no-cache"!==g.options.fetchPolicy){var y=It(It({},this.getDiffOptions(i)),{watcher:this,callback:function(C){return c.setDiff(C)}});(!this.lastWatch||!Ai(y,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=y))}},l.prototype.resetLastWrite=function(){this.lastWrite=void 0},l.prototype.shouldWrite=function(i,c){var g=this.lastWrite;return!(g&&g.dmCount===Lu.get(this.cache)&&Ai(c,g.variables)&&Ai(i.data,g.result.data))},l.prototype.markResult=function(i,c,g,y){var C=this,Y=new Ua,he=Hs(i.errors)?i.errors.slice(0):[];if(this.reset(),"incremental"in i&&Hs(i.incremental)){var ke=ua(this.getDiff().result,i);i.data=ke}else if("hasNext"in i&&i.hasNext){var Ee=this.getDiff();i.data=Y.merge(Ee.result,i.data)}this.graphQLErrors=he,"no-cache"===g.fetchPolicy?this.updateLastDiff({result:i.data,complete:!0},this.getDiffOptions(g.variables)):0!==y&&(ku(i,g.errorPolicy)?this.cache.performTransaction(function(Xe){if(C.shouldWrite(i,g.variables))Xe.writeQuery({query:c,data:i.data,variables:g.variables,overwrite:1===y}),C.lastWrite={result:i,variables:g.variables,dmCount:Lu.get(C.cache)};else if(C.lastDiff&&C.lastDiff.diff.complete)return void(i.data=C.lastDiff.diff.result);var ut=C.getDiffOptions(g.variables),lt=Xe.diff(ut);!C.stopped&&Ai(C.variables,g.variables)&&C.updateWatch(g.variables),C.updateLastDiff(lt,ut),lt.complete&&(i.data=lt.result)}):this.lastWrite=void 0)},l.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Ci.ready},l.prototype.markError=function(i){return this.networkStatus=Ci.error,this.lastWrite=void 0,this.reset(),i.graphQLErrors&&(this.graphQLErrors=i.graphQLErrors),i.networkError&&(this.networkError=i.networkError),i},l}();function ku(l,i){void 0===i&&(i="none");var c="ignore"===i||"all"===i,g=!md(l);return!g&&c&&l.data&&(g=!0),g}var _E=Object.prototype.hasOwnProperty,u_=Object.create(null),ns=function(){function l(i){var c=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Wo(ls["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new oa(!1),this.noCacheWarningsByQueryId=new Set;var g=new Jp(function(C){return c.cache.transformDocument(C)},{cache:!1});this.cache=i.cache,this.link=i.link,this.defaultOptions=i.defaultOptions,this.queryDeduplication=i.queryDeduplication,this.clientAwareness=i.clientAwareness,this.localState=i.localState,this.ssrMode=i.ssrMode,this.assumeImmutableResults=i.assumeImmutableResults,this.dataMasking=i.dataMasking;var y=i.documentTransform;this.documentTransform=y?g.concat(y).concat(g):g,this.defaultContext=i.defaultContext||Object.create(null),(this.onBroadcast=i.onBroadcast)&&(this.mutationStore=Object.create(null))}return l.prototype.stop=function(){var i=this;this.queries.forEach(function(c,g){i.stopQueryNoBroadcast(g)}),this.cancelPendingFetches(pr(27))},l.prototype.cancelPendingFetches=function(i){this.fetchCancelFns.forEach(function(c){return c(i)}),this.fetchCancelFns.clear()},l.prototype.mutate=function(i){return Or(this,arguments,void 0,function(c){var g,y,C,Y,he,ke,Ee,Xe=c.mutation,ut=c.variables,lt=c.optimisticResponse,Lt=c.updateQueries,rn=c.refetchQueries,cn=void 0===rn?[]:rn,En=c.awaitRefetchQueries,nn=void 0!==En&&En,On=c.update,_n=c.onQueryUpdated,Yn=c.fetchPolicy,wn=void 0===Yn?(null===(ke=this.defaultOptions.mutate)||void 0===ke?void 0:ke.fetchPolicy)||"network-only":Yn,ur=c.errorPolicy,Vr=void 0===ur?(null===(Ee=this.defaultOptions.mutate)||void 0===Ee?void 0:Ee.errorPolicy)||"none":ur,qr=c.keepRootFields,vi=c.context;return ni(this,function(Pi){switch(Pi.label){case 0:return Br(Xe,28),Br("network-only"===wn||"no-cache"===wn,29),g=this.generateMutationId(),Xe=this.cache.transformForLink(this.transform(Xe)),y=this.getDocumentInfo(Xe).hasClientExports,ut=this.getVariables(Xe,ut),y?[4,this.localState.addExportedVariables(Xe,ut,vi)]:[3,2];case 1:ut=Pi.sent(),Pi.label=2;case 2:return C=this.mutationStore&&(this.mutationStore[g]={mutation:Xe,variables:ut,loading:!0,error:null}),Y=lt&&this.markMutationOptimistic(lt,{mutationId:g,document:Xe,variables:ut,fetchPolicy:wn,errorPolicy:Vr,context:vi,updateQueries:Lt,update:On,keepRootFields:qr}),this.broadcastQueries(),he=this,[2,new Promise(function(Fo,Bs){return Ii(he.getObservableFromLink(Xe,It(It({},vi),{optimisticResponse:Y?lt:void 0}),ut,{},!1),function(Gi){if(md(Gi)&&"none"===Vr)throw new $a({graphQLErrors:Su(Gi)});C&&(C.loading=!1,C.error=null);var da=It({},Gi);return"function"==typeof cn&&(cn=cn(da)),"ignore"===Vr&&md(da)&&delete da.errors,he.markMutationResult({mutationId:g,result:da,document:Xe,variables:ut,fetchPolicy:wn,errorPolicy:Vr,context:vi,update:On,updateQueries:Lt,awaitRefetchQueries:nn,refetchQueries:cn,removeOptimistic:Y?g:void 0,onQueryUpdated:_n,keepRootFields:qr})}).subscribe({next:function(Gi){he.broadcastQueries(),(!("hasNext"in Gi)||!1===Gi.hasNext)&&Fo(It(It({},Gi),{data:he.maskOperation({document:Xe,data:Gi.data,fetchPolicy:wn,id:g})}))},error:function(Gi){C&&(C.loading=!1,C.error=Gi),Y&&he.cache.removeOptimistic(g),he.broadcastQueries(),Bs(Gi instanceof $a?Gi:new $a({networkError:Gi}))}})})]}})})},l.prototype.markMutationResult=function(i,c){var g=this;void 0===c&&(c=this.cache);var y=i.result,C=[],Y="no-cache"===i.fetchPolicy;if(!Y&&ku(y,i.errorPolicy)){if(Tu(y)||C.push({result:y.data,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}),Tu(y)&&Hs(y.incremental)){var he=c.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0}
1),ke=void 0;he.result&&(ke=ua(he.result,y)),typeof ke<"u"&&(y.data=ke,C.push({result:ke,dataId:"ROOT_MUTATION",query:i.document,variables:i.variables}))}var Ee=i.updateQueries;Ee&&this.queries.forEach(function(ut,lt){var Lt=ut.observableQuery,rn=Lt&&Lt.queryName;if(rn&&_E.call(Ee,rn)){var cn=Ee[rn],En=g.queries.get(lt),nn=En.document,On=En.variables,_n=c.diff({query:nn,variables:On,returnPartialData:!0,optimistic:!1}),Yn=_n.result;if(_n.complete&&Yn){var ur=cn(Yn,{mutationResult:y,queryName:nn&&_u(nn)||void 0,queryVariables:On});ur&&C.push({result:ur,dataId:"ROOT_QUERY",query:nn,variables:On})}}})}if(C.length>0||(i.refetchQueries||"").length>0||i.update||i.onQueryUpdated||i.removeOptimistic){var Xe=[];if(this.refetchQueries({updateCache:function(ut){Y||C.forEach(function(cn){return ut.write(cn)});var lt=i.update,Lt=!function hg(l){return Tu(l)||function fg(l){return"hasNext"in l&&"data"in l}(l)}(y)||Tu(y)&&!y.hasNext;if(lt){if(!Y){var rn=ut.diff({id:"ROOT_MUTATION",query:g.getDocumentInfo(i.document).asQuery,variables:i.variables,optimistic:!1,returnPartialData:!0});rn.complete&&("incremental"in(y=It(It({},y),{data:rn.result}))&&delete y.incremental,"hasNext"in y&&delete y.hasNext)}Lt&&lt(ut,y,{context:i.context,variables:i.variables})}!Y&&!i.keepRootFields&&Lt&&ut.modify({id:"ROOT_MUTATION",fields:function(cn,En){return"__typename"===En.fieldName?cn:En.DELETE}})},include:i.refetchQueries,optimistic:!1,removeOptimistic:i.removeOptimistic,onQueryUpdated:i.onQueryUpdated||null}).forEach(function(ut){return Xe.push(ut)}),i.awaitRefetchQueries||i.onQueryUpdated)return Promise.all(Xe).then(function(){return y})}return Promise.resolve(y)},l.prototype.markMutationOptimistic=function(i,c){var g=this,y="function"==typeof i?i(c.variables,{IGNORE:u_}):i;return y!==u_&&(this.cache.recordOptimisticTransaction(function(C){try{g.markMutationResult(It(It({},c),{result:{data:y}}),C)}catch(Y){}},c.mutationId),!0)},l.prototype.fetchQuery=function(i,c,g){return this.fetchConcastWithInfo(i,c,g).concast.promise},l.prototype.getQueryStore=function(){var i=Object.create(null);return this.queries.forEach(function(c,g){i[g]={variables:c.variables,networkStatus:c.networkStatus,networkError:c.networkError,graphQLErrors:c.graphQLErrors}}),i},l.prototype.resetErrors=function(i){var c=this.queries.get(i);c&&(c.networkError=void 0,c.graphQLErrors=[])},l.prototype.transform=function(i){return this.documentTransform.transformDocument(i)},l.prototype.getDocumentInfo=function(i){var c=this.transformCache;if(!c.has(i)){var g={hasClientExports:ys(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),hasNonreactiveDirective:Ls(["nonreactive"],i),nonReactiveQuery:Kv(i),clientQuery:this.localState.clientQuery(i),serverQuery:sl([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],i),defaultVars:Gp(dc(i)),asQuery:It(It({},i),{definitions:i.definitions.map(function(y){return"OperationDefinition"===y.kind&&"query"!==y.operation?It(It({},y),{operation:"query"}):y})})};c.set(i,g)}return c.get(i)},l.prototype.getVariables=function(i,c){return It(It({},this.getDocumentInfo(i).defaultVars),c)},l.prototype.watchQuery=function(i){var c=this.transform(i.query);typeof(i=It(It({},i),{variables:this.getVariables(c,i.variables)})).notifyOnNetworkStatusChange>"u"&&(i.notifyOnNetworkStatusChange=!1);var g=new Nd(this),y=new Ph({queryManager:this,queryInfo:g,options:i});return y.lastQuery=c,this.queries.set(y.queryId,g),g.init({document:c,observableQuery:y,variables:y.variables}),y},l.prototype.query=function(i,c){var g=this;void 0===c&&(c=this.generateQueryId()),Br(i.query,30),Br("Document"===i.query.kind,31),Br(!i.returnPartialData,32),Br(!i.pollInterval,33);var y=this.transform(i.query);return this.fetchQuery(c,It(It({},i),{query:y})).then(function(C){return C&&It(It({},C),{data:g.maskOperation({document:y,data:C.data,fetchPolicy:i.fetchPolicy,id:c})})}).finally(function(){return g.stopQuery(c)})},l.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},l.prototype.generateRequestId=function(){return this.requestIdCounter++},l.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},l.prototype.stopQueryInStore=function(i){this.stopQueryInStoreNoBroadcast(i),this.broadcastQueries()},l.prototype.stopQueryInStoreNoBroadcast=function(i){var c=this.queries.get(i);c&&c.stop()},l.prototype.clearStore=function(i){return void 0===i&&(i={discardWatches:!0}
1),this.cancelPendingFetches(pr(34)),this.queries.forEach(function(c){c.observableQuery?c.networkStatus=Ci.loading:c.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(i)},l.prototype.getObservableQueries=function(i){var c=this;void 0===i&&(i="active");var g=new Map,y=new Map,C=new Map,Y=new Set;return Array.isArray(i)&&i.forEach(function(he){if("string"==typeof he)y.set(he,he),C.set(he,!1);else if(function id(l){return Zr(l)&&"Document"===l.kind&&Array.isArray(l.definitions)}(he)){var ke=Aa(c.transform(he));y.set(ke,_u(he)),C.set(ke,!1)}else Zr(he)&&he.query&&Y.add(he)}),this.queries.forEach(function(he,ke){var Ee=he.observableQuery,Xe=he.document;if(Ee){if("all"===i)return void g.set(ke,Ee);var ut=Ee.queryName;if("standby"===Ee.options.fetchPolicy||"active"===i&&!Ee.hasObservers())return;("active"===i||ut&&C.has(ut)||Xe&&C.has(Aa(Xe)))&&(g.set(ke,Ee),ut&&C.set(ut,!0),Xe&&C.set(Aa(Xe),!0))}}),Y.size&&Y.forEach(function(he){var ke=Ks("legacyOneTimeQuery"),Ee=c.getQuery(ke).init({document:he.query,variables:he.variables}),Xe=new Ph({queryManager:c,queryInfo:Ee,options:It(It({},he),{fetchPolicy:"network-only"})});Br(Xe.queryId===ke),Ee.setObservableQuery(Xe),g.set(ke,Xe)}),g},l.prototype.reFetchObservableQueries=function(i){var c=this;void 0===i&&(i=!1);var g=[];return this.getObservableQueries(i?"all":"active").forEach(function(y,C){var Y=y.options.fetchPolicy;y.resetLastResults(),(i||"standby"!==Y&&"cache-only"!==Y)&&g.push(y.refetch()),c.getQuery(C).setDiff(null)}),this.broadcastQueries(),Promise.all(g)},l.prototype.setObservableQuery=function(i){this.getQuery(i.queryId).setObservableQuery(i)},l.prototype.startGraphQLSubscription=function(i){var c=this,g=i.query,y=i.variables,C=i.fetchPolicy,Y=i.errorPolicy,he=void 0===Y?"none":Y,ke=i.context,Ee=void 0===ke?{}:ke,Xe=i.extensions,ut=void 0===Xe?{}:Xe;g=this.transform(g),y=this.getVariables(g,y);var lt=function(rn){return c.getObservableFromLink(g,Ee,rn,ut).map(function(cn){"no-cache"!==C&&(ku(cn,he)&&c.cache.write({query:g,result:cn.data,dataId:"ROOT_SUBSCRIPTION",variables:rn}),c.broadcastQueries());var En=md(cn),nn=function Qv(l){return!!l.extensions&&Array.isArray(l.extensions[Vl])}(cn);if(En||nn){var On={};if(En&&(On.graphQLErrors=cn.errors),nn&&(On.protocolErrors=cn.extensions[Vl]),"none"===he||nn)throw new $a(On)}return"ignore"===he&&delete cn.errors,cn})};if(this.getDocumentInfo(g).hasClientExports){var Lt=this.localState.addExportedVariables(g,y,Ee).then(lt);return new Ni(function(rn){var cn=null;return Lt.then(function(En){return cn=En.subscribe(rn)},rn.error),function(){return cn&&cn.unsubscribe()}})}return lt(y)},l.prototype.stopQuery=function(i){this.stopQueryNoBroadcast(i),this.broadcastQueries()},l.prototype.stopQueryNoBroadcast=function(i){this.stopQueryInStoreNoBroadcast(i),this.removeQuery(i)},l.prototype.removeQuery=function(i){this.fetchCancelFns.delete(i),this.queries.has(i)&&(this.getQuery(i).stop(),this.queries.delete(i))},l.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(i){return i.notify()})},l.prototype.getLocalState=function(){return this.localState},l.prototype.getObservableFromLink=function(i,c,g,y,C){var Y,ke,he=this;void 0===C&&(C=null!==(ke=null===(Y=c)||void 0===Y?void 0:Y.queryDeduplication)&&void 0!==ke?ke:this.queryDeduplication);var Ee,Xe=this.getDocumentInfo(i),ut=Xe.serverQuery,lt=Xe.clientQuery;if(ut){var rn=this.inFlightLinkObservables,cn=this.link,En={query:ut,variables:g,operationName:_u(ut)||void 0,context:this.prepareContext(It(It({},c),{forceFetch:!C})),extensions:y};if(c=En.context,C){var nn=Aa(ut),On=us(g),_n=rn.lookup(nn,On);if(!(Ee=_n.observable)){var Yn=new bu([qf(cn,En)]);Ee=_n.observable=Yn,Yn.beforeNext(function wn(ur,Vr){"next"===ur&&"hasNext"in Vr&&Vr.hasNext?Yn.beforeNext(wn):rn.remove(nn,On)})}}else Ee=new bu([qf(cn,En)])}else Ee=new bu([Ni.of({data:{}})]),c=this.prepareContext(c);return lt&&(Ee=Ii(Ee,function(wn){return he.localState.runResolvers({document:lt,remoteResult:wn,context:c,variables:g})})),Ee},l.prototype.getResultsFromLink=function(i,c,g){var y=i.lastRequestId=this.generateRequestId(),C=this.cache.transformForLink(g.query);return Ii(this.getObservableFromLink(C,g.context,g.variables),function(Y){var he=Su(Y),ke=he.length>0,Ee=g.errorPolicy;if(y>
1=i.lastRequestId){if(ke&&"none"===Ee)throw i.markError(new $a({graphQLErrors:he}));i.markResult(Y,C,g,c),i.markReady()}var Xe={data:Y.data,loading:!1,networkStatus:Ci.ready};return ke&&"none"===Ee&&(Xe.data=void 0),ke&&"ignore"!==Ee&&(Xe.errors=he,Xe.networkStatus=Ci.error),Xe},function(Y){var he=Mu(Y)?Y:new $a({networkError:Y});throw y>=i.lastRequestId&&i.markError(he),he})},l.prototype.fetchConcastWithInfo=function(i,c,g,y){var C=this;void 0===g&&(g=Ci.loading),void 0===y&&(y=c.query);var ur,Vr,Y=this.getVariables(y,c.variables),he=this.getQuery(i),ke=this.defaultOptions.watchQuery,Ee=c.fetchPolicy,ut=c.errorPolicy,Lt=c.returnPartialData,cn=c.notifyOnNetworkStatusChange,nn=c.context,_n=Object.assign({},c,{query:y,variables:Y,fetchPolicy:void 0===Ee?ke&&ke.fetchPolicy||"cache-first":Ee,errorPolicy:void 0===ut?ke&&ke.errorPolicy||"none":ut,returnPartialData:void 0!==Lt&&Lt,notifyOnNetworkStatusChange:void 0!==cn&&cn,context:void 0===nn?{}:nn}),Yn=function(vi){_n.variables=vi;var Pi=C.fetchQueryByPolicy(he,_n,g);return"standby"!==_n.fetchPolicy&&Pi.sources.length>0&&he.observableQuery&&he.observableQuery.applyNextFetchPolicy("after-fetch",c),Pi},wn=function(){return C.fetchCancelFns.delete(i)};if(this.fetchCancelFns.set(i,function(vi){wn(),setTimeout(function(){return ur.cancel(vi)})}),this.getDocumentInfo(_n.query).hasClientExports)ur=new bu(this.localState.addExportedVariables(_n.query,_n.variables,_n.context).then(Yn).then(function(vi){return vi.sources})),Vr=!0;else{var qr=Yn(_n.variables);Vr=qr.fromLink,ur=new bu(qr.sources)}return ur.promise.then(wn,wn),{concast:ur,fromLink:Vr}},l.prototype.refetchQueries=function(i){var c=this,g=i.updateCache,y=i.include,C=i.optimistic,Y=void 0!==C&&C,he=i.removeOptimistic,ke=void 0===he?Y?Ks("refetchQueries"):void 0:he,Ee=i.onQueryUpdated,Xe=new Map;y&&this.getObservableQueries(y).forEach(function(lt,Lt){Xe.set(Lt,{oq:lt,lastDiff:c.getQuery(Lt).getDiff()})});var ut=new Map;return g&&this.cache.batch({update:g,optimistic:Y&&ke||!1,removeOptimistic:ke,onWatchUpdated:function(lt,Lt,rn){var cn=lt.watcher instanceof Nd&&lt.watcher.observableQuery;if(cn){if(Ee){Xe.delete(cn.queryId);var En=Ee(cn,Lt,rn);return!0===En&&(En=cn.refetch()),!1!==En&&ut.set(cn,En),En}null!==Ee&&Xe.set(cn.queryId,{oq:cn,lastDiff:rn,diff:Lt})}}}),Xe.size&&Xe.forEach(function(lt,Lt){var nn,rn=lt.oq,cn=lt.lastDiff,En=lt.diff;if(Ee){if(!En){var On=rn.queryInfo;On.reset(),En=On.getDiff()}nn=Ee(rn,En,cn)}(!Ee||!0===nn)&&(nn=rn.refetch()),!1!==nn&&ut.set(rn,nn),Lt.indexOf("legacyOneTimeQuery")>=0&&c.stopQueryNoBroadcast(Lt)}),ke&&this.cache.removeOptimistic(ke),ut},l.prototype.maskOperation=function(i){var Y=i.data;return this.dataMasking?function mE(l,i,c){var g;if(!c.fragmentMatches)return l;var y=dc(i);return Br(y,51),null==l?l:hh(l,y.selectionSet,{operationType:y.operation,operationName:null===(g=y.name)||void 0===g?void 0:g.value,fragmentMap:du(Nl(i)),cache:c,mutableTargets:new Cc,knownChanged:new dh})}(Y,i.document,this.cache):Y},l.prototype.maskFragment=function(i){var c=i.data;return this.dataMasking?Mg(c,i.fragment,this.cache,i.fragmentName):c},l.prototype.fetchQueryByPolicy=function(i,c,g){var y=this,C=c.query,Y=c.variables,he=c.fetchPolicy,ke=c.refetchWritePolicy,Ee=c.errorPolicy,Xe=c.returnPartialData,ut=c.context,lt=c.notifyOnNetworkStatusChange,Lt=i.networkStatus;i.init({document:C,variables:Y,networkStatus:g});var rn=function(){return i.getDiff()},cn=function(Yn,wn){void 0===wn&&(wn=i.networkStatus||Ci.loading);var ur=Yn.result,Vr=function(qr){return Ni.of(It({data:qr,loading:Wa(wn),networkStatus:wn},Yn.complete?null:{partial:!0}))};return ur&&y.getDocumentInfo(C).hasForcedResolvers?y.localState.runResolvers({document:C,remoteResult:{data:ur},context:ut,variables:Y,onlyRunForcedResolvers:!0}).then(function(qr){return Vr(qr.data||void 0)}):"none"===Ee&&wn===Ci.refetch&&Array.isArray(Yn.missing)?Vr(void 0):Vr(ur)},En="no-cache"===he?0:g===Ci.refetch&&"merge"!==ke?1:2,nn=function(){return y.getResultsFromLink(i,En,{query:C,variables:Y,context:ut,fetchPolicy:he,errorPolicy:Ee})},On=lt&&"number"==typeof Lt&&Lt!==g&&Wa(g);switch(he){default:case"cache-first":return(_n=rn()).complete?{fromLink:!1,sources:[cn(_n,i.markReady())]}:Xe||On?{fromLink:!0,sources:[cn(_n),nn()]}:{fromLink:!0,sources:[nn()]};case"cache-and-network":var _n;return(_n=rn()).complete||Xe||On?{fromLink:!0,sources:[cn(_n),nn()]}:{fromLink:!0,sources:[nn()]};case"cache-only":return{fromLink:!1,sources:[cn(rn(),i.markReady())]};case"network-only":return On?{fromLink:!0,sources:[cn(rn()),nn()]}:{fromLink:!0,sources:[nn()]};case"no-cache":return On?{fromLink:!0,sources:[cn(i.getDiff()),nn()]}:{fromLink:!0,sources:[nn()]};case"standby":return{fromLink:!1,sources:[]}}},l.prototype.getQuery=function(i){return i&&!this.queries.has(i)&&this.queries.set(i,new Nd(this,i)),this.queries.get(i)},l.prototype.prepareContext=function(i){void 0===i&&(i={});var c=this.localState.prepareContext(i);return It(It(It({},this.defaultContext),c),{clientAwareness:this.clientAwareness})},l}(),Fu=function(){function l(i){var c=i.cache,g=i.client,y=i.resolvers,C=i.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=c,g&&(this.client=g),y&&this.addResolvers(y),C&&this.setFragmentMatcher(C)}return l.prototype.addResolvers=function(i){var c=this;this.resolvers=this.resolvers||{}
vendor: 2,252 bytes, line 1
1,Array.isArray(i)?i.forEach(function(g){c.resolvers=gn(c.resolvers,g)}):this.resolvers=gn(this.resolvers,i)},l.prototype.setResolvers=function(i){this.resolvers={},this.addResolvers(i)},l.prototype.getResolvers=function(){return this.resolvers||{}},l.prototype.runResolvers=function(i){return Or(this,arguments,void 0,function(c){var g=c.document,y=c.remoteResult,C=c.context,Y=c.variables,he=c.onlyRunForcedResolvers,ke=void 0!==he&&he;return ni(this,function(Ee){return g?[2,this.resolveDocument(g,y.data,C,Y,this.fragmentMatcher,ke).then(function(Xe){return It(It({},y),{data:Xe.result})})]:[2,y]})})},l.prototype.setFragmentMatcher=function(i){this.fragmentMatcher=i},l.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},l.prototype.clientQuery=function(i){return Ls(["client"],i)&&this.resolvers?i:null},l.prototype.serverQuery=function(i){return tg(i)},l.prototype.prepareContext=function(i){var c=this.cache;return It(It({},i),{cache:c,getCacheKey:function(g){return c.identify(g)}})},l.prototype.addExportedVariables=function(i){return Or(this,arguments,void 0,function(c,g,y){return void 0===g&&(g={}),void 0===y&&(y={}),ni(this,function(C){return c?[2,this.resolveDocument(c,this.buildRootValueFromCache(c,g)||{},this.prepareContext(y),g).then(function(Y){return It(It({},g),Y.exportedVariables)})]:[2,It({},g)]})})},l.prototype.shouldForceResolvers=function(i){var c=!1;return Le(i,{Directive:{enter:function(g){if("client"===g.name.value&&g.arguments&&(c=g.arguments.some(function(y){return"always"===y.name.value&&"BooleanValue"===y.value.kind&&!0===y.value.value})))return ae}}}),c},l.prototype.buildRootValueFromCache=function(i,c){return this.cache.diff({query:Wv(i),variables:c,returnPartialData:!0,optimistic:!1}).result},l.prototype.resolveDocument=function(i,c){return Or(this,arguments,void 0,function(g,y,C,Y,he,ke){var Ee,Xe,ut,lt,Lt,rn,cn,En,nn,On;return void 0===C&&(C={}),void 0===Y&&(Y={}),void 0===he&&(he=function(){return!0}),void 0===ke&&(ke=!1),ni(this,function(Yn){return Ee=sd(g),Xe=Nl(g),ut=du(Xe),lt=this.collectSelectionsToResolve(Ee,ut),rn=(Lt=Ee.operation)?Lt.charAt(0).toUpperCase()+Lt.slice(1):"Query",En=(cn=this).cache,nn=cn.client,On={fragmentMap:ut,context:It(It({},C),{cache:En,client:nn}
1),variables:Y,fragmentMatcher:he,defaultOperationType:rn,exportedVariables:{},selectionsToResolve:lt,onlyRunForcedResolvers:ke},[2,this.resolveSelectionSet(Ee.selectionSet,!1,y,On).then(function(wn){return{result:wn,exportedVariables:On.exportedVariables}})]})})},l.prototype.resolveSelectionSet=function(i,c,g,y){return Or(this,void 0,void 0,function(){var C,Y,he,ke,Ee,Xe=this;return ni(this,function(ut){return C=y.fragmentMap,Y=y.context,he=y.variables,ke=[g],Ee=function(lt){return Or(Xe,void 0,void 0,function(){var Lt;return ni(this,function(cn){return(c||y.selectionsToResolve.has(lt))&&Ki(lt,he)?Rl(lt)?[2,this.resolveField(lt,c,g,y).then(function(En){var nn;typeof En<"u"&&ke.push(((nn={})[wl(lt)]=En,nn))})]:(function rE(l){return"InlineFragment"===l.kind}(lt)?Lt=lt:Br(Lt=C[lt.name.value],19,lt.name.value),Lt&&Lt.typeCondition&&y.fragmentMatcher(g,Lt.typeCondition.name.value,Y)?[2,this.resolveSelectionSet(Lt.selectionSet,c,g,y).then(function(En){ke.push(En)})]:[2]):[2]})})},[2,Promise.all(i.selections.map(Ee)).then(function(){return Sr(ke)})]})})},l.prototype.resolveField=function(i,c,g,y){return Or(this,void 0,void 0,function(){var C,Y,he,ke,Ee,Xe,ut,lt,Lt,rn=this;return ni(this,function(cn){return g?(C=y.variables,Y=i.name.value,he=wl(i),ke=Y!==he,Ee=g[he]||g[Y],Xe=Promise.resolve(Ee),(!y.onlyRunForcedResolvers||this.shouldForceResolvers(i))&&(ut=g.__typename||y.defaultOperationType,(lt=this.resolvers&&this.resolvers[ut])&&(Lt=lt[ke?Y:he])&&(Xe=Promise.resolve(Dd.withValue(this.cache,Lt,[g,Ml(i,C),y.context,{field:i,fragmentMap:y.fragmentMap}])))),[2,Xe.then(function(En){var nn,On;if(void 0===En&&(En=Ee),i.directives&&i.directives.forEach(function(Yn){"export"===Yn.name.value&&Yn.arguments&&Yn.arguments.forEach(function(wn){"as"===wn.name.value&&"StringValue"===wn.value.kind&&(y.exportedVariables[wn.value.value]=En)})}),!i.selectionSet||null==En)return En;var _n=null!==(On=null===(nn=i.directives)||void 0===nn?void 0:nn.some(function(Yn){return"client"===Yn.name.value}))&&void 0!==On&&On;return Array.isArray(En)?rn.resolveSubSelectedArray(i,c||_n,En,y):i.selectionSet?rn.resolveSelectionSet(i.selectionSet,c||_n,En,y):void 0})]):[2,null]})})},l.prototype.resolveSubSelectedArray=function(i,c,g,y){var C=this;return Promise.all(g.map(function(Y){return null===Y?null:Array.isArray(Y)?C.resolveSubSelectedArray(i,c,Y,y):i.selectionSet?C.resolveSelectionSet(i.selectionSet,c,Y,y):void 0}))},l.prototype.collectSelectionsToResolve=function(i,c){var g=function(Y){return!Array.isArray(Y)},y=this.selectionsToResolveCache;return function C(Y){if(!y.has(Y)){var he=new Set;y.set(Y,he),Le(Y,{Directive:function(ke,Ee,Xe,ut,lt){"client"===ke.name.value&&lt.forEach(function(Lt){g(Lt)&&Ri(Lt)&&he.add(Lt)})},FragmentSpread:function(ke,Ee,Xe,ut,lt){var Lt=c[ke.name.value];Br(Lt,20,ke.name.value);var rn=C(Lt);rn.size>0&&(lt.forEach(function(cn){g(cn)&&Ri(cn)&&he.add(cn)}),he.add(ke),rn.forEach(function(cn){he.add(cn)}))}})}return y.get(Y)}(i)},l}(),Yg=function(){function l(i){var g,c=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!i.cache)throw pr(16);var y=i.uri,he=i.cache,ke=i.documentTransform,Ee=i.ssrMode,Xe=void 0!==Ee&&Ee,ut=i.ssrForceFetchDelay,lt=void 0===ut?0:ut,Lt=i.connectToDevTools,rn=i.queryDeduplication,cn=void 0===rn||rn,En=i.defaultOptions,nn=i.defaultContext,On=i.assumeImmutableResults,_n=void 0===On?he.assumeImmutableResults:On,Yn=i.resolvers,wn=i.typeDefs,ur=i.fragmentMatcher,Vr=i.name,qr=i.version,vi=i.devtools,Pi=i.dataMasking,Fo=i.link;Fo||(Fo=y?new $l({uri:y,credentials:i.credentials,headers:i.headers}):Va.empty()),this.link=Fo,this.cache=he,this.disableNetworkFetches=Xe||lt>0,this.queryDeduplication=cn,this.defaultOptions=En||Object.create(null),this.typeDefs=wn,this.devtoolsConfig=It(It({},vi),{enabled:null!==(g=null==vi?void 0:vi.enabled)&&void 0!==g?g:Lt}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1),lt&&setTimeout(function(){return c.disableNetworkFetches=!1},lt),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=Os,this.localState=new Fu({cache:he,client:this,resolvers:Yn,fragmentMatcher:ur}
1),this.queryManager=new ns({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:nn,documentTransform:ke,queryDeduplication:cn,ssrMode:Xe,dataMasking:!!Pi,clientAwareness:{name:Vr,version:qr},localState:this.localState,assumeImmutableResults:_n,onBroadcast:this.devtoolsConfig.enabled?function(){c.devToolsHookCb&&c.devToolsHookCb({action:{},state:{queries:c.queryManager.getQueryStore(),mutations:c.queryManager.mutationStore||{}},dataWithOptimisticResults:c.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return l.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var i=window,c=Symbol.for("apollo.devtools");(i[c]=i[c]||[]).push(this),i.__APOLLO_CLIENT__=this}},Object.defineProperty(l.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),l.prototype.stop=function(){this.queryManager.stop()},l.prototype.watchQuery=function(i){return this.defaultOptions.watchQuery&&(i=Du(this.defaultOptions.watchQuery,i)),this.disableNetworkFetches&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i=It(It({},i),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(i)},l.prototype.query=function(i){return this.defaultOptions.query&&(i=Du(this.defaultOptions.query,i)),Br("cache-and-network"!==i.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===i.fetchPolicy&&(i=It(It({},i),{fetchPolicy:"cache-first"})),this.queryManager.query(i)},l.prototype.mutate=function(i){return this.defaultOptions.mutate&&(i=Du(this.defaultOptions.mutate,i)),this.queryManager.mutate(i)},l.prototype.subscribe=function(i){var c=this,g=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(i).map(function(y){return It(It({},y),{data:c.queryManager.maskOperation({document:i.query,data:y.data,fetchPolicy:i.fetchPolicy,id:g})})})},l.prototype.readQuery=function(i,c){return void 0===c&&(c=!1),this.cache.readQuery(i,c)},l.prototype.watchFragment=function(i){var c;return this.cache.watchFragment(It(It({},i),((c={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,c)))},l.prototype.readFragment=function(i,c){return void 0===c&&(c=!1),this.cache.readFragment(i,c)},l.prototype.writeQuery=function(i){var c=this.cache.writeQuery(i);return!1!==i.broadcast&&this.queryManager.broadcastQueries(),c},l.prototype.writeFragment=function(i){var c=this.cache.writeFragment(i);return!1!==i.broadcast&&this.queryManager.broadcastQueries(),c},l.prototype.__actionHookForDevTools=function(i){this.devToolsHookCb=i},l.prototype.__requestRaw=function(i){return qf(this.link,i)},l.prototype.resetStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(i.resetStoreCallbacks.map(function(c){return c()}))}).then(function(){return i.reFetchObservableQueries()})},l.prototype.clearStore=function(){var i=this;return Promise.resolve().then(function(){return i.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(i.clearStoreCallbacks.map(function(c){return c()}))})},l.prototype.onResetStore=function(i){var c=this;return this.resetStoreCallbacks.push(i),function(){c.resetStoreCallbacks=c.resetStoreCallbacks.filter(function(g){return g!==i})}},l.prototype.onClearStore=function(i){var c=this;return this.clearStoreCallbacks.push(i),function(){c.clearStoreCallbacks=c.clearStoreCallbacks.filter(function(g){return g!==i})}},l.prototype.reFetchObservableQueries=function(i){return this.queryManager.reFetchObservableQueries(i)},l.prototype.refetchQueries=function(i){var c=this.queryManager.refetchQueries(i),g=[],y=[];c.forEach(function(Y,he){g.push(he),y.push(Y)});var C=Promise.all(y);return C.queries=g,C.results=y,C.catch(function(Y){}),C},l.prototype.getObservableQueries=function(i){return void 0===i&&(i="active"),this.queryManager.getObservableQueries(i)},l.prototype.extract=function(i){return this.cache.extract(i)},l.prototype.restore=function(i){return this.cache.restore(i)},l.prototype.addResolvers=function(i){this.localState.addResolvers(i)},l.prototype.setResolvers=function(i){this.localState.setResolvers(i)},l.prototype.getResolvers=function(){return this.localState.getResolvers()},l.prototype.setLocalStateFragmentMatcher=function(i){this.localState.setFragmentMatcher(i)},l.prototype.setLink=function(i){this.link=this.queryManager.link=i},Object.defineProperty(l.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),l}(),xd=new Map,Ld=new Map,Zg=!0,Ic=!1;function Jg(l){return l.replace(/[\s,]+/g," ").trim()}function f_(l){var i=Jg(l);if(!xd.has(i)){var c=function La(l,i){const c=new Pv(l,i),g=c.parseDocument();return Object.defineProperty(g,"tokenCount",{enumerable:!1,value:c.tokenCount}),g}(l,{experimentalFragmentVariables:Ic,allowLegacyFragmentVariables:Ic});if(!c||"Document"!==c.kind)throw new Error("Not a valid GraphQL document.");xd.set(i,function d_(l){var i=new Set(l.definitions);i.forEach(function(g){g.loc&&delete g.loc,Object.keys(g).forEach(function(y){var C=g[y];C&&"object"==typeof C&&i.add(C)})});var c=l.loc;return c&&(delete c.startToken,delete c.endToken),l}(function c_(l){var i=new Set,c=[];return l.definitions.forEach(function(g){if("FragmentDefinition"===g.kind){var y=g.name.value,C=function qg(l){return Jg(l.source.body.substring(l.start,l.end))}(g.loc),Y=Ld.get(y);Y&&!Y.has(C)?Zg&&console.warn("Warning: fragment with name "+y+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):Y||Ld.set(y,Y=new Set),Y.add(C),i.has(C)||(i.add(C),c.push(g))}else c.push(g)}),It(It({},l),{definitions:c})}(c)))}return xd.get(i)}function pi(l){for(var i=[],c=1;c<arguments.length;c++)i[c-1]=arguments[c];"string"==typeof l&&(l=[l]);var g=l[0];return i.forEach(function(y,C){g+=y&&"Document"===y.kind?y.loc.source.body:y,g+=l[C+1]}),f_(g)}var Uu_gql=pi,Uu_resetCaches=function em(){xd.clear(),Ld.clear()},Uu_disableFragmentWarnings=function tm(){Zg=!1},Uu_enableExperimentalFragmentVariables=function nm(){Ic=!0},Uu_disableExperimentalFragmentVariables=function kd(){Ic=!1};(function(l){l.gql=Uu_gql,l.resetCaches=Uu_resetCaches,l.disableFragmentWarnings=Uu_disableFragmentWarnings,l.enableExperimentalFragmentVariables=Uu_enableExperimentalFragmentVariables,l.disableExperimentalFragmentVariables=Uu_disableExperimentalFragmentVariables})(pi||(pi={})),pi.default=pi;const Qs="pageInfo { hasNextPage, endCursor }";function Xs(l){return l?"totalCount":""}const rm=l=>"preview_".concat(l),Oc=pi(O||(O=ZD||(ZD=xi(["\nfragment TaxonomySummaryFragment on Taxonomy {\n  id\n  internalId\n  name\n  type\n  parentId\n  seoMetadata @include(if: $includeContentSeoMetadata) {\n    key\n    value\n  }\n  properties {\n    key\n    value\n  }\n}\n"])))),Pc=pi(x||(x=JD||(JD=xi(["\n  fragment ContentFragment on Content {\n    __typename\n    id\n    version\n    name\n    description\n    index\n    alias\n    externalId\n    publicationDate\n    unpublishDate\n    lastModified\n    access\n    productId\n    purchaseData {\n      purchased\n      purchasedBy\n    }\n    publication {\n      id\n    }\n    properties (filter: $propertyFilter) {\n      key\n      value\n    }\n    seoMetadata @include(if: $includeContentSeoMetadata) {\n      key\n      value\n    }\n    thumbnails {\n      kind\n      url\n      properties {\n        key\n        value\n      }\n    }\n    categories\n    tags\n  }\n"])))),h_=pi(U||(U=qD||(qD=xi(["\nfragment ContentBlockFragment on ContentBlock {\n  id\n  type\n  parentId\n  children\n  sequence\n  html\n  level\n  properties {\n    key\n    value\n    type\n  }\n}\n"])))),Mc=pi(Q||(Q=eI||(eI=xi(["\nfragment IssueFragment on Issue {\n  contentLength\n  numberOfPages\n  previewContentLength\n  resources @include(if: $includeResources) {\n    id\n    url\n    type\n    contentLength\n    properties {\n      key\n      value\n      type\n    }\n  }\n}\n"])))),Bu=pi(re||(re=tI||(tI=xi(["\nfragment PostFragment on Post {\n  postType\n  bundleId\n  bundles {\n    id\n    bundleType\n  }\n  taxonomies {\n    ...TaxonomySummaryFragment\n  }\n  authors {\n    name\n    email\n  }\n  bundleId\n  content @include(if: $includeBlocks) {\n    ...ContentBlockFragment\n  }\n\n  previewContentBlocks @include(if: $includeBlocks) {\n    ...ContentBlockFragment\n  }\n\n  contentHtml @include(if: $includeHtml)\n  previewContentHtml @include(if: $includeHtml)\n  resources @include(if: $includeResources) {\n    id\n    url\n    type\n    contentLength\n    properties {\n      key\n      value\n      type\n    }\n  }\n}\n\n","\n"]))),h_),Fd=pi(be||(be=nI||(nI=xi(["\n  fragment BundleFragment on Bundle {\n    bundleType\n    contentsCount\n    taxonomies {\n      ...TaxonomySummaryFragment\n    }\n    authors {\n      name\n      email\n    }\n    contents @include(if: $includeBundledContent) {\n      id\n      content {\n        ...ContentFragment\n        ...PostFragment\n      }\n    }\n  }\n"])))),g_=pi(ne||(ne=oI||(oI=xi(["\nfragment PostSearchResultFragment on PostSearchResult {\n  post {\n    ...ContentFragment\n    ...PostFragment\n  },\n  excerpt\n}\n  "]))));var dr=(l=>(l.APP_PERFORM_ACTION_URL="APP_PERFORM_ACTION_URL",l.APP_INVALIDATE="APP_INVALIDATE",l.APP_BROWSER_GET_DISPLAY_CONFIG="APP_BROWSER_GET_DISPLAY_CONFIG",l.ACCOUNT_ASSIGN_LOCAL_PURCHASES="ACCOUNT_ASSIGN_LOCAL_PURCHASES",l.ACCOUNT_GET_USER_DATA="ACCOUNT_GET_USER_DATA",l.ACCOUNT_LOGIN="ACCOUNT_LOGIN",l.ACCOUNT_LOGOUT="ACCOUNT_LOGOUT",l.BOOKMARK_CREATE="BOOKMARK_CREATE",l.BOOKMARK_DELETE="BOOKMARK_DELETE",l.BOOKMARK_GET="BOOKMARK_GET",l.CATALOG_GET_CATEGORIES="CATALOG_GET_CATEGORIES",l.CATALOG_GET_ISSUES="CATALOG_GET_ISSUES",l.CATALOG_GET_METADATA="CATALOG_GET_METADATA",l.CATALOG_GET_CONTENT="CATALOG_GET_CONTENT",l.CATALOG_GET_PRODUCTS="CATALOG_GET_PRODUCTS",l.CATALOG_GET_PUBLICATION_PRODUCTS="CATALOG_GET_PUBLICATION_PRODUCTS",l.CATALOG_GET_PUBLICATIONS="CATALOG_GET_PUBLICATIONS",l.CATALOG_GET_SUBSCRIPTIONS="CATALOG_GET_PUBLICATIONS",l.CATALOG_SEARCH="CATALOG_SEARCH",l.CATALOG_GET_ISSUE_STATES="CATALOG_GET_ISSUE_STATES",l.CATALOG_GET_MENUS="CATALOG_GET_MENUS",l.CATALOG_GET_TAXONOMIES="CATALOG_GET_TAXONOMIES",l.CATALOG_GET_COLLECTIONS="CATALOG_GET_COLLECTIONS",l.CATALOG_GET_APP_SETTINGS="CATALOG_GET_APP_SETTINGS",l.CATALOG_GET_REDIRECTS="CATALOG_GET_REDIRECTS",l.CATALOG_LOOKUP_PATH_SEGMENTS="CATALOG_LOOKUP_PATH_SEGMENTS",l.CLOSE_VIEW="CLOSE_V
1IEW",l.CONTENT_OPEN="CONTENT_OPEN",l.ENTITLEMENT_GET_USER_DATA="ENTITLEMENT_GET_USER_DATA",l.ENTITLEMENT_LOGIN="ENTITLEMENT_LOGIN",l.ENTITLEMENT_LOGIN_OAUTH="ENTITLEMENT_LOGIN_OAUTH",l.ENTITLEMENT_LOGOUT="ENTITLEMENT_LOGOUT",l.ENTITLEMENT_UPDATE_TOKEN="ENTITLEMENT_UPDATE_TOKEN",l.ENTITLEMENT_INVALIDATE_TOKENS="ENTITLEMENT_INVALIDATE_TOKENS",l.ENTITLEMENT_CHECK_OAUTH="ENTITLEMENT_CHECK_OAUTH",l.ENTITLEMENT_VERIFY_ACCESS_TOKEN="ENTITLEMENT_VERIFY_ACCESS_TOKEN",l.CONSENT_GET_CONSENT="CONSENT_GET_CONSENT",l.CONSENT_GRANT_CONSENT="CONSENT_GRANT_CONSENT",l.CONSENT_SHOW_PRIVACY_MANAGER="CONSENT_SHOW_PRIVACY_MANAGER",l.CONSENT_GET_SYSTEM_CONSENT="CONSENT_GET_SYSTEM_CONSENT",l.CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER="CONSENT_SHOW_SYSTEM_PRIVACY_MANAGER",l.ENV_RESOURCE_URL="ENV_RESOURCE_URL",l.ENV_RESIZE="ENV_RESIZE",l.ENV_CSS_URLS="ENV_CSS_URLS",l.ENV_INIT="ENV_INIT",l.ENV_TITLE="ENV_TITLE",l.ENV_PRINT="ENV_PRINT",l.ENV_BACK="ENV_BACK",l.ENV_FORWARD="ENV_FORWARD",l.ENV_RELOAD="ENV_RELOAD",l.ENV_LOCATION="ENV_LOCATION",l.ISSUE_GET_BASE_URL="ISSUE_GET_BASE_URL",l.ISSUE_GET_PAGES="ISSUE_GET_PAGES",l.ISSUE_GET_TOC="ISSUE_GET_TOC",l.ISSUE_PAGER_GET_INFO="ISSUE_PAGER_GET_INFO",l.ISSUE_PAGER_NAVIGATE_TO="ISSUE_PAGER_NAVIGATE_TO",l.MEDIA_START_AUDIO="MEDIA_START_AUDIO",l.MEDIA_PAUSE_AUDIO="MEDIA_PAUSE_AUDIO",l.MEDIA_RESUME_AUDIO="MEDIA_RESUME_AUDIO",l.MEDIA_STOP_AUDIO="MEDIA_STOP_AUDIO",l.MEDIA_SEEK_TO="MEDIA_SEEK_TO",l.MEDIA_GET_PLAYBACK_RATE="MEDIA_GET_PLAYBACK_RATE",l.MEDIA_SET_PLAYBACK_RATE="MEDIA_SET_PLAYBACK_RATE",l.METADATA_GET_METADATA="METADATA_GET_METADATA",l.SHARE_SHARE="SHARE_SHARE",l.STATE_GET_STATE="STATE_GET_STATE",l.STATE_SET_STATE="STATE_SET_STATE",l.STORE_ADD_SUBSCRIPTION_CODES="STORE_ADD_SUBSCRIPTION_CODES",l.STORE_ADD_SUBSCRIPTION_CODE="STORE_ADD_SUBSCRIPTION_CODE",l.STORE_GET_PRICES="STORE_GET_PRICES",l.STORE_GET_SUBSCRIPTION_CODES="STORE_GET_SUBSCRIPTION_CODES",l.STORE_OPEN_CODE_REDEMPTION="STORE_OPEN_CODE_REDEMPTION",l.STORE_PURCHASE="STORE_PURCHASE",l.STORE_REMOVE_SUBSCRIPTION_CODE="STORE_REMOVE_SUBSCRIPTION_CODE",l.STORE_REMOVE_SUBSCRIPTION_CODES="STORE_REMOVE_SUBSCRIPTION_CODES",l.STORE_RESTORE_PURCHASES="STORE_RESTORE_PURCHASES",l.STORE_SUBSCRIBE="STORE_SUBSCRIBE",l.TRACKING_TRACK_ACTION="TRACKING_TRACK_ACTION",l.TRACKING_TRACK_VIEW="TRACKING_TRACK_VIEW",l.TRACKING_TRACK_PURCHASE="TRACKING_TRACK_PURCHASE",l.TRACKING_SET_USER_ATTRIBUTE="TRACKING_SET_USER_ATTRIBUTE",l))(dr||{}),v_=(l=>(l.ANDROID="ANDROID",l.IOS="IOS",l.WEB="WEB",l))(v_||{}),bs=(l=>(l.CONNECTIONS_STATE="APP_CONNECTION_STATE",l.LIFECYCLE="APP_LIFECYCLE",l.INVALIDATION="APP_INVALIDATION",l.MEDIA_STATUS="MEDIA_STATUS",l.MEDIA_PROGRESS="MEDIA_PROGRESS",l.ISSUE_PAGER_STATE="ISSUE_PAGER_STATE",l))(bs||{});class am{constructor(i,c,g,y,C,Y){var he=this;(0,o.A)(this,"version",new bt(1,15)),(0,o.A)(this,"getPublications",function(){var ke=(0,u.A)(function*(Ee){var Xe,ut,lt,Lt,rn,cn,En;const nn=null===(Xe=Ee=he.convertPublicationsParams(Ee))||void 0===Xe?void 0:Xe.contentsParams,On=null==nn?void 0:nn.fetchOptions,_n=(yield he.queryWithAuthRetry(function m_(l,i){return pi($||($=aI||(aI=xi(["\nquery CatalogPublicationQuery(\n    $appInfo: AppInfo!,\n    $deviceInfo: DeviceInfo!,\n    $authorization: Authorization!,\n    $filter: PublicationFilter,\n    $sort: [PublicationComparator!],\n    $first: Int,\n    $after: String,\n    $includeContents: Boolean!,\n    $contentFilter: ContentFilter,\n    $contentSort: [ContentComparator!],\n    $contentFirst: Int,\n    $contentAfter: String,\n    $includeBundledContent: Boolean!,\n    $includeResources: Boolean!,\n    $includeBlocks: Boolean!,\n    $includeHtml: Boolean!,\n    $includeContentSeoMetadata: Boolean!,\n    $propertyFilter: PropertyFilter\n) {\n    catalog(\n        appInfo: $appInfo,\n        deviceInfo: $deviceInfo,\n        authorization: $authorization\n    ) {\n        publicationsConnection(\n            filter: $filter,\n            sort: $sort,\n            first: $first,\n            after: $after\n        ) {\n            ","\n            ","\n            edges {\n                publication: node {\n                    ...PublicationFragment\n                }\n            }\n        }\n    }\n}\n\n","\n  "]))),Qs,Xs(null==l?void 0:l.totalCount),function p_(l){return pi(X||(X=iI||(iI=xi(["\nfragment PublicationFragment on Publication {\n  id\n  name\n  description\n  type\n  language\n  index\n  currentContentId\n  contentsConnection(\n    filter: $contentFilter,\n    sort: $contentSort,\n    first: $contentFirst,\n    after: $contentAfter\n  ) @include(if: $includeContents) {\n    ",",\n    ",",\n    edges {\n      node {\n        ...ContentFragment\n        ...IssueFragment\n        ...PostFragment\n        ...Bun
1dleFragment\n      }\n    }\n  }\n  properties {\n      key\n      value\n  }\n  thumbnails {\n      kind\n      url\n      properties {\n        key\n        value\n      }\n  },\n  tocSettings {\n    pageLabelsEnabled\n    style\n  }\n}\n\n","\n","\n","\n","\n","\n"]))),Qs,Xs(null==l?void 0:l.totalCount),Pc,Mc,Bu,Fd,Oc)}(i))}(null===(ut=Ee)||void 0===ut?void 0:ut.fetchOptions,On),{filter:null===(lt=Ee)||void 0===lt?void 0:lt.publicationFilter,sort:null===(Lt=Ee)||void 0===Lt?void 0:Lt.sort,first:null===(rn=Ee)||void 0===rn?void 0:rn.first,after:null===(cn=Ee)||void 0===cn?void 0:cn.after,includeContents:!(null===(En=Ee)||void 0===En||!En.includeContents),contentFilter:null==nn?void 0:nn.contentFilter,contentSort:null==nn?void 0:nn.sort,contentFirst:null==nn?void 0:nn.first,contentAfter:null==nn?void 0:nn.after,includeBundledContent:!(null==On||!On.includeBundledContent),includeResources:!(null==On||!On.includeResources),includeBlocks:!(null==On||!On.includeBlocks),includeHtml:!(null==On||!On.includeHtml),includeContentSeoMetadata:!(null==On||!On.seoMetadata),propertyFilter:null==On?void 0:On.properties})).catalog;return he.toPage(_n.publicationsConnection,Yn=>he.mapPublication(Yn.publication))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getIssues",function(){var ke=(0,u.A)(function*(Ee){const Xe=he.convertIssueParams(Ee);return he.getContents(Xe)});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getContents",function(){var ke=(0,u.A)(function*(Ee){const Xe=null==Ee?void 0:Ee.fetchOptions,ut=(yield he.queryWithAuthRetry(function yE(l){return pi(te||(te=sI||(sI=xi(["\nquery CatalogContentsQuery(\n    $appInfo: AppInfo!,\n    $deviceInfo: DeviceInfo!,\n    $authorization: Authorization!,\n    $filter: ContentFilter,\n    $sort: [ContentComparator!],\n    $first: Int,\n    $after: String,\n    $includeBundledContent: Boolean!,\n    $includeResources: Boolean!,\n    $includeBlocks: Boolean!,\n    $includeHtml: Boolean!,\n    $includeContentSeoMetadata: Boolean!,\n    $propertyFilter: PropertyFilter\n) {\n    catalog(\n        appInfo: $appInfo,\n        deviceInfo: $deviceInfo,\n        authorization: $authorization\n    ) {\n        contentsConnection(\n            filter: $filter,\n            sort: $sort,\n            first: $first,\n            after: $after\n        ) {\n            ","\n            ","\n            edges {\n                content: node {\n                    __typename\n                    ...ContentFragment\n                    ...PostFragment\n                    ...IssueFragment \n                    ...BundleFragment\n                }\n            }\n        }\n    }\n}\n","\n","\n","\n","\n","\n"]))),Qs,Xs(null==l?void 0:l.totalCount),Pc,Bu,Fd,Mc,Oc)}(Xe),{filter:null==Ee?void 0:Ee.contentFilter,sort:null==Ee?void 0:Ee.sort,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeBlocks:!(null==Xe||!Xe.includeBlocks),includeHtml:!(null==Xe||!Xe.includeHtml),includeResources:!(null==Xe||!Xe.includeResources),includeBundledContent:!(null==Xe||!Xe.includeBundledContent),includeContentSeoMetadata:!(null==Xe||!Xe.seoMetadata),propertyFilter:null==Xe?void 0:Xe.properties})).catalog;return he.toPage(ut.contentsConnection,lt=>he.mapContent(lt.content))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getMenus",function(){var ke=(0,u.A)(function*(Ee){const Xe=(yield he.queryWithAuthRetry(function __(l){return pi(se||(se=uI||(uI=xi(["\n    query MenuQuery(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!,\n        $authorization: Authorization!,\n        $filter: MenuFilter,\n        $first: Int,\n        $after: String,\n        $includeItems: Boolean!\n    ) {\n        catalog(\n            appInfo: $appInfo\n            deviceInfo: $deviceInfo\n            authorization: $authorization\n        ) {\n            menusConnection(filter: $filter, first: $first, after: $after) {\n                edges {\n                    node {\n                        id\n                        name\n                        properties {\n                            key\n                            value\n                            type\n                        }\n                        items @include(if: $includeItems) {\n                            id\n                            sortIndex\n                            parentId\n                            url\n                            name\n                            title\n                            description\n                            target\n                            cssClasse
1s\n                            properties {\n                                key\n                                value\n                                type\n                            }\n                            thumbnails {\n                                kind\n                                url\n                                properties {\n                                    key\n                                    value\n                                }\n                            }\n                        }\n                    }\n                },\n                ","\n                ","\n            }\n        }\n    }\n"]))),Qs,Xs(null==l?void 0:l.totalCount))}(null==Ee?void 0:Ee.fetchOptions),{filter:null==Ee?void 0:Ee.menuFilter,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeItems:!(null==Ee||!Ee.includeItems)})).catalog;return he.toPage(Xe.menusConnection,ut=>he.mapMenu(ut.node))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getCollections",function(){var ke=(0,u.A)(function*(Ee){const Xe=null==Ee?void 0:Ee.elementsParams,ut=null==Ee?void 0:Ee.fetchOptions,lt=null==Xe?void 0:Xe.fetchOptions,Lt=(yield he.queryWithAuthRetry(function wh(l,i){return pi(De||(De=cI||(cI=xi(["\nquery CatalogCollections(\n    $appInfo: AppInfo!,\n    $deviceInfo: DeviceInfo!,\n    $authorization: Authorization!,\n    $filter: CollectionFilter,\n    $sort: [CollectionComparator!],\n    $first: Int,\n    $after: String,\n    $includeElements: Boolean!,\n    $elementsFirst: Int,\n    $elementsAfter: String,\n    $includeBundledContent: Boolean!,\n    $includeResources: Boolean!,\n    $includeBlocks: Boolean!,\n    $includeHtml: Boolean!,\n    $includeContentSeoMetadata: Boolean!,\n    $propertyFilter: PropertyFilter\n) {\n    catalog(appInfo: $appInfo, deviceInfo: $deviceInfo, authorization: $authorization) {\n        collectionsConnection(\n            filter: $filter\n            sort: $sort\n            first: $first\n            after: $after\n        ) {\n            ","\n            ","\n            edges {\n                node {\n                    id\n                    name\n                    properties {\n                        key\n                        value\n                    }\n                    elementsConnection(\n                        first: $elementsFirst,\n                        after: $elementsAfter\n                    ) @include(if: $includeElements) {\n                        ","\n                        ","\n                        edges {\n                            node {\n                                __typename\n                                ... on ContentElement {\n                                    id\n                                    sortIndex\n                                    content {\n                                        ...ContentFragment\n                                        ...IssueFragment\n                                        ...PostFragment\n                                        ...BundleFragment\n                                    }\n                                }\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n","\n","\n","\n","\n","\n"]))),Qs,Xs(null==l?void 0:l.totalCount),Qs,Xs(null==i?void 0:i.totalCount),Pc,Mc,Bu,Fd,Oc)}(ut,lt),{filter:null==Ee?void 0:Ee.collectionFilter,sort:null==Ee?void 0:Ee.sort,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeElements:!(null==Ee||!Ee.includeElements),elementsFirst:null==Xe?void 0:Xe.first,elementsAfter:null==Xe?void 0:Xe.after,includeBlocks:!(null==lt||!lt.includeBlocks),includeHtml:!(null==lt||!lt.includeHtml),includeResources:!(null==lt||!lt.includeResources),includeBundledContent:!(null==lt||!lt.includeBundledContent),includeContentSeoMetadata:!(null==lt||!lt.seoMetadata),propertyFilter:null==lt?void 0:lt.properties})).catalog;return he.toPage(Lt.collectionsConnection,rn=>he.mapCollection(rn.node))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getCategories",function(){var ke=(0,u.A)(function*(Ee){const Xe=he.convertCategoriesParams(Ee),ut=yield he.getTaxonomies(Xe);return he.convertToCategoryPage(ut)});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getTaxonomies",function(){var ke=(0,u.A)(function*(Ee){var Xe;const ut=null==Ee?void 0:Ee.contentsParams,lt=null==ut?void 0:ut.fetchOptions,Lt=(yield he.queryWithAuthRetry(function Rh(l,i){return pi(Ce||(Ce=dI||(dI=xi(["\nquery CatalogTaxonomiesQuery(\n    $appInfo: AppInfo!,\n    $deviceInfo: DeviceInfo!,\n    $authorization: Authorization!,\n    $filter: TaxonomyFilter,\n    $sort: [TaxonomyComparator!],\n    $first: Int,\n    $after: String,\n    $includeTaxonomySeoMetadata: Boolean!,\n    $includeContents: Boolean!,\n    $contentFilter: ContentFilter,\n    $contentSort: [ContentComparator!],\n    $contentFirst: Int,\n    $contentAfter: String,\n    $includeBundledContent: Boolean!,\n    $includeResources: Boolean!,\n    $includeBlocks: Boolean!,\n    $includeHtml: Boolean!,\n    $includeContentSeoMetadata: Boolean!,\n    $propertyFilter: PropertyFilter\n) {\n    catalog(\n        appInfo: $appInfo,\n        deviceInfo: $deviceInfo,\n        authorization: $authorization\n    ) {\n        taxonomiesConnection(\n            first: $first,\n            after: $after,\n            sort: $sort,\n            filter: $filter\n        ) {\n            ","\n            ","\n            edges {\n                node {\n                    __typename\n                    ...TaxonomyFragment\n                }\n            }\n        }\n    }\n}\n","\n"]))),Qs,Xs(null==l?void 0:l.totalCount),function im(l){return pi(ue||(ue=rI||(rI=xi(["\n  fragment TaxonomyFragment on Taxonomy {\n    id\n    internalId\n    name\n    description\n    type\n    parentId\n    seoMetadata @include(if: $includeTaxonomySeoMetadata) {\
1n      key\n      value\n    }\n    properties {\n      key\n      value\n    }\n    thumbnails {\n      kind\n      url\n      properties {\n        key\n        value\n      }\n    }\n    contentsConnection(\n      filter: $contentFilter,\n      sort: $contentSort,\n      first: $contentFirst,\n      after: $contentAfter\n    ) @include(if: $includeContents) {\n      ",",\n      ",",\n      edges {\n        node {\n          ...ContentFragment\n          ...IssueFragment\n          ...PostFragment\n          ...BundleFragment\n        }\n      }\n    }\n  }\n\n  ","\n  ","\n  ","\n  ","\n  ","\n"]))),Qs,Xs(null==l?void 0:l.totalCount),Pc,Mc,Bu,Fd,Oc)}(i))}(null==Ee?void 0:Ee.fetchOptions,lt),{filter:null==Ee?void 0:Ee.taxonomyFilter,sort:null==Ee?void 0:Ee.sort,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after,includeTaxonomySeoMetadata:!(null==Ee||null===(Xe=Ee.fetchOptions)||void 0===Xe||!Xe.seoMetadata),includeContents:!(null==Ee||!Ee.includeContents),contentFilter:null==ut?void 0:ut.contentFilter,contentSort:null==ut?void 0:ut.sort,contentFirst:null==ut?void 0:ut.first,contentAfter:null==ut?void 0:ut.after,includeBundledContent:!(null==lt||!lt.includeBundledContent),includeResources:!(null==lt||!lt.includeResources),includeBlocks:!(null==lt||!lt.includeBlocks),includeHtml:!(null==lt||!lt.includeHtml),includeContentSeoMetadata:!(null==lt||!lt.seoMetadata),propertyFilter:null==lt?void 0:lt.properties})).catalog;return he.toPage(Lt.taxonomiesConnection,rn=>he.mapTaxonomy(rn.node))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getAppSettings",function(){var ke=(0,u.A)(function*(Ee){const Xe=(yield he.queryWithAuthRetry(function EE(l){return pi(ce||(ce=fI||(fI=xi(["\n        query AppSettingsQuery(\n            $appInfo: AppInfo!\n            $deviceInfo: DeviceInfo!\n            $authorization: Authorization!\n            $filter: AppSettingFilter\n            $first: Int\n            $after: String\n        ) {\n            catalog(\n                appInfo: $appInfo\n                deviceInfo: $deviceInfo\n                authorization: $authorization\n            ) {\n                appSettingsConnection(filter: $filter, first: $first, after: $after) {\n                    edges {\n                        node {\n                            key\n                            value\n                        }\n                    },\n                    ","\n                    ","\n                }\n            }\n        }\n    "]))),Qs,Xs(null==l?void 0:l.totalCount))}(null==Ee?void 0:Ee.fetchOptions),{filter:null==Ee?void 0:Ee.appSettingFilter,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after})).catalog;return he.toPage(Xe.appSettingsConnection,ut=>ut.node)});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"getRedirects",function(){var ke=(0,u.A)(function*(Ee){const Xe=(yield he.queryWithAuthRetry(function y_(l){return pi(_||(_=hI||(hI=xi(["\n        query RedirectsQuery(\n            $appInfo: AppInfo!\n            $deviceInfo: DeviceInfo!\n            $authorization: Authorization!\n            $filter: RedirectFilter,\n            $first: Int,\n            $after: String\n        ) {\n            catalog(\n                appInfo: $appInfo\n                deviceInfo: $deviceInfo\n                authorization: $authorization\n            ) {\n              redirectsConnection(filter: $filter, first: $first, after: $after) {\n                    edges {\n                        node {\n                            id\n                            identifier\n                            type\n                            target\n                            statusCode\n                        }\n                    },\n                    ","\n                    ","\n                }\n            }\n        }\n    "]))),Qs,Xs(null==l?void 0:l.totalCount))}(null==Ee?void 0:Ee.fetchOptions),{filter:null==Ee?void 0:Ee.redirectFilter,first:null==Ee?void 0:Ee.first,after:null==Ee?void 0:Ee.after})).catalog;return he.toPage(Xe.redirectsConnection,ut=>he.mapRedirect(ut.node))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"lookupPathSegments",function(){var ke=(0,u.A)(function*(Ee){return(yield he.queryWithAuthRetry(function E_(){return pi(R||(R=pI||(pI=xi(["\n        query LookupPathSegmentsQuery(\n            $appInfo: AppInfo!\n            $deviceInfo: DeviceInfo!\n            $authorization: Authorization!\n            $pathSegments: [String!]!\n        ) {\n            catalog(\n                appInfo: $appInfo\n                deviceInfo: $deviceInfo\n                authorization: $authorization\n            ) {\n              lookupPathSegments(pathSegments: $pathSegments) {\n                    identifier\n                    matches {\n                      __typename\n                      ... on ContentMatch {\n                        id\n                        contentType\n                        postType\n                      }\n                      ... on TaxonomyMatch {\n                        id\n                        identifier\n                        parentIdentifier\n                        name\n                        taxonomyType\n                      }\n                      ... on CollectionMatch {\n                        id\n                        name\n                      }\n                      ... on RedirectMatch {\n                        id\n                        identifier\n                        redirectType\n                        target\n                        statusCode\n                      }\n                    }\n                }\n            }\n        }\n    "]))))}(),{pathSegments:Ee.pathSegments})).catalog.lookupPathSegments.map(Xe=>he.mapPathSegmentLookupResult(Xe))});return function(Ee){return ke.apply(this,arguments)}}()),(0,o.A)(this,"search",function(){var ke=(0,u.A)(function*(Ee){var Xe,ut,lt,Lt,rn,cn,En;let On=Ee.contentFilter;if(Ee.phrase||Ee.issueFilter){const Vr={contentType:{value:ot.CatalogContentType.ISSUE}};On=Ee.issueFilter?{AND:[Vr,Ee.issueFilter]}:Vr}let _n=Ee.sort;if(!_n&&null!==(Xe=Ee.options)&&void 0!==Xe&&Xe.sortBy)switch(null===(ut=Ee.options)||void 0===ut?void 0:ut.sortBy){case ot.SearchResultSortCriteria.RELEVANCE:_n=[{relevance:{direction:ot.SortDirection.DESC}}];break;case ot.SearchResultSortCriteria.PUB_DATE_DESC:_n=[{publicationDate:{direction:ot.SortDirection.DESC}}]}let Yn=null===(lt=Ee.options)||void 0===lt?void 0:lt.pageSort;!Yn&&null!==(Lt=Ee.options)&&void 0!==Lt&&Lt.sortPages&&(Yn=[{index:{direction:ot.SortDirection.ASC}}]);const wn=Ee.fetchOptions,ur=(yield he.queryWithAuthRetry(function om(l){return pi(J||(J=lI||(lI=xi(["\nquery CatalogSearchQuery(\n    $appInfo: AppInfo!,\n    $deviceInfo: DeviceInfo!,\n    $authorization: Authorization!,\n    $phrase: String!,\n    $fields: [SearchField!],\n    $fuzzy: Boolean,\n    $pageSort: [IssuePageComparator!]\n    $sort: [ContentSearchResultComparator!]\n    $findAll: Boolean,\n    $contentFilter: ContentFilter,\n    $first: Int,\n    $after: String,\n    $includeHtml: Boolean!,\n    $includeBlocks: Boolean!,\n    $includeResources: Boolean!,\n    $includeBundledContent: Boolean!,\n    $includeContentSeoMetadata: Boolean!,\n    $propertyFilter: PropertyFilter\n) {\n    catalog(\n        appInfo: $appInfo,\n        deviceInfo: $deviceInfo,\n        authorization: $authorization\n    ) {\n        contentSearchConnection(\n            searchPhrase: $phrase,\n            searchFields: $fields,\n            contentFilter: $contentFilter,\n            fuzzyMatching: $fuzzy,\n            sort: $sort,\n            findAllWords: $findAll,\n            first: $first,\n            after: $after\n        ) {\n            ","\n            ","\n            edges {\n                searchResult: node {\n                  __typename\n                  ... on IssueSearchResult {\n                      issue {\n                          ...ContentFragment\n                          ...IssueFragment\n                      }\n                      pagesConnection(\n                          sort: $pageSort\n                      ) {\n                          edges {\n                              node {\n                                  excerpt\n                                  pageIndex\n                                  pageNumber\n                                  pageLabel\n                                  pageTitle\n                                  elementAlias\n                              }\n                          }\n                      }\n                  }\n                  ...PostSearchResultFragment\n                  ... on BundleSearchResult {\n                      bundle {\n                        ...ContentFragment\n                        ...Bun
1dleFragment\n                      }\n                      posts {\n                        ...PostSearchResultFragment\n                      }\n                  }\n                }\n            }\n        }\n    }\n}\n","\n","\n","\n","\n","\n","\n  "]))),Qs,Xs(null==l?void 0:l.totalCount),g_,Mc,Pc,Fd,Bu,Oc)}(wn),{phrase:null!==(rn=Ee.searchPhrase)&&void 0!==rn?rn:Ee.phrase,fields:Ee.searchFields,fuzzy:null===(cn=Ee.options)||void 0===cn?void 0:cn.fuzzy,sort:_n,findAll:null===(En=Ee.options)||void 0===En?void 0:En.findAll,contentFilter:On,pageSort:Yn,first:Ee.first,after:Ee.after,includeHtml:!(null==wn||!wn.includeHtml),includeBlocks:!(null==wn||!wn.includeBlocks),includeBundledContent:!(null==wn||!wn.includeBundledContent),includeResources:!(null==wn||!wn.includeResources),includeContentSeoMetadata:!(null==wn||!wn.seoMetadata),propertyFilter:null==wn?void 0:wn.properties})).catalog;return he.toPage(ur.contentSearchConnection,Vr=>he.mapSearchResult(Vr.searchResult))});return function(Ee){return ke.apply(this,arguments)}}()),this.getConfig=i,this.thisPurple=c,this.client=g,this.appInfo=y,this.deviceInfo=C,this.authorization=Y}get config(){return this.getConfig()}getDataOrThrow(i){if(i.data)return i.data;throw{message:i.errors[0].message,code:"UNKNOWN"}}queryWithAuthRetry(i,c){var g=this;return(0,u.A)(function*(){var y;const C=Date.now();g.config.requestLogging&&console.log("[GQL][".concat(_u(i),"][start][").concat(JSON.stringify(null==c?void 0:c.filter),"]"));let Y=yield g.client.query({query:i,variables:(0,p.A)((0,p.A)({},c),{},{appInfo:g.appInfo(),deviceInfo:g.deviceInfo(),authorization:g.authorization()})});if(g.config.requestLogging&&console.log("[GQL][".concat(_u(i),"][").concat(Date.now()-C,"ms][").concat(JSON.stringify(null==c?void 0:c.filter),"]")),null!==(y=Y.errors)&&void 0!==y&&y.some(he=>"INVALID_ENTITLEMENT_TOKEN"===he.extensions.code)){console.warn("err: INVALID_ENTITLEMENT_TOKEN, refreshing token and retrying again");try{yield g.thisPurple.entitlement.refreshAccessToken()}catch(he){return g.logoutAndReturnResponse(Y,"Error during refresh: logging user out",he)}console.debug("refreshed accessToken, retrying query again"),Y=yield g.client.query({query:i,variables:(0,p.A)((0,p.A)({},c),{},{appInfo:g.appInfo(),deviceInfo:g.deviceInfo(),authorization:g.authorization()})})}return g.getDataOrThrow(Y)})()}logoutAndReturnResponse(i,c,g){return console.error(c,g),this.thisPurple.entitlement.clearLocalData(),this.getDataOrThrow(i)}toPage(i,c){return{totalCount:i.totalCount,cursor:i.pageInfo.endCursor,hasNextPage:i.pageInfo.hasNextPage,nodes:i.edges.map(c).filter(g=>!!g)}}mapProperties(i){return i.reduce((c,g)=>(0,p.A)((0,p.A)({},c),{},{[g.key]:g.value}),{})}mapSeoMetadata(i){return null==i?void 0:i.reduce((c,g)=>(0,p.A)((0,p.A)({},c),{},{[g.key]:g.value}),{})}mapThumbnails(i){return i.reduce((c,g)=>(0,p.A)((0,p.A)({},c),{},{[g.kind]:g.url}),{})}mapThumbnailsExtended(i){return i.reduce((c,g)=>(c[g.kind]={kind:g.kind,url:g.url,properties:this.mapProperties(g.properties)},c),{})}mapPublication(i){return{id:i.id,currentContentId:i.currentContentId,currentIssueId:i.currentContentId,description:i.description,freeConsumable:i.freeConsumable,index:i.index,contents:i.contentsConnection?this.toPage(i.contentsConnection,c=>this.mapContent(c.node)):null,language:i.language,name:i.name,printSubscriptionEnabled:i.printSubscriptionEnabled,properties:this.mapProperties(i.properties),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails),type:i.type,tocSettings:i.tocSettings}}mapIssueToCatalogPreviewIssue(i){return{id:rm(i.id),contentLength:i.contentLength,numberOfPages:i.numberOfPages,state:this.getIssueState(i.id),version:i.version}}getIssueState(i){return{installState:ot.ContentInstallState.NOT_INSTALLED,downloading:!1,issueId:i,progress:0,updateAvailable:!1}}mapIssue(i){const c=this.mapContent(i);if((null==c?void 0:c.contentType)!==ot.CatalogContentType.ISSUE)throw new Error("mapIssue received contentType: ".concat(c.contentType));return c}mapIssueSpecificFields(i){var c;return{comingSoon:!1,contentLength:i.contentLength,numberOfPages:i.numberOfPages,previewIssue:i.previewContentLength>0?this.mapIssueToCatalogPreviewIssue(i):void 0,state:this.getIssueState(i.id),purchasable:i.access===ot.Access.PURCHASABLE,type:ot.IssueType.ISSUE,externalIssueId:i.externalId,purchased:i.purchaseData.purchased,purchasedBy:i.purchaseData.purchased,categories:i.categories,tags:i.tags,resources:null===(c=i.resources)||void 0===c?void 0:c.map(g=>this.mapResource(g))}}mapPost(i){const c=this.mapContent(i);if((null==c?void 0:c.contentType)!==ot.CatalogContentType.POST)throw new Error("mapPost received contentType: "+c.contentType);return c}mapPostSpecificFields(i){var c,g,y,C,Y;return{postType:i.postType,content:null===(c=i.content)||void 0===c?void 0:c.map(he=>this.mapPostBlock(he)),previewContent:null===(g=i.previewContent)||void 0===g?void 0:g.map(he=>this.mapPostBlock(he)),contentHtml:i.contentHtml,previewContentHtml:i.previewContentHtml,authors:null===(y=i.authors)||void 0===y?void 0:y.map(he=>this.mapAuthor(he)),resources:null===(C=i.resources)||void 0===C?void 0:C.map(he=>this.mapResource(he)),previewResources:null===(Y=i.previewResources)||void 0===Y?void 0:Y.map(he=>this.mapResource(he)),taxonomies:i.taxonomies.map(he=>this.mapTaxonomySummary(he)),bundleId:i.bundleId,bundles:i.bundles.map(he=>this.mapBundleSummary(he))}}mapBundle(i){const c=this.mapContent(i);if((null==c?void 0:c.contentType)!==ot.CatalogContentType.BUNDLE)throw new Error("mapBundle received contentType: "+c.contentType);return c}mapPostBlock(i){return{id:i.id,html:i.html,children:i.children,level:i.level,properties:this.mapProperties(i.properties),sequence:i.sequence,type:i.type,parentId:i.parentId}}mapBundleSummary(i){return{id:i.id,bundleType:i.bundleType}}mapAuthor(i){return{name:i.name,email:i.email}}mapBundleSpecificFields(i){var c,g;return{bundleType:i.bundleType,contentsCount:i.contentsCount,taxonomies:i.taxonomies.map(y=>
1this.mapTaxonomySummary(y)),contents:null===(c=i.contents)||void 0===c?void 0:c.map(y=>this.mapBundleContent(y)),authors:null===(g=i.authors)||void 0===g?void 0:g.map(y=>this.mapAuthor(y))}}mapBundleContent(i){return{id:i.id,post:this.mapPost(i.content)}}mapContent(i){var c;const g=i.__typename.toUpperCase(),y={contentType:g,id:i.id,publicationId:i.publication.id,version:i.version,name:i.name,description:null!==(c=i.description)&&void 0!==c?c:"",alias:i.alias,externalId:i.externalId,publicationDate:Nh(i.publicationDate),lastModified:Nh(i.lastModified),unpublishDate:Nh(i.unpublishDate),index:i.index,productId:i.productId,access:i.access,purchaseData:i.purchaseData,properties:this.mapProperties(i.properties),seoMetadata:this.mapSeoMetadata(i.seoMetadata),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails)};switch(g){case ot.CatalogContentType.ISSUE:return(0,p.A)((0,p.A)({},y),this.mapIssueSpecificFields(i));case ot.CatalogContentType.BUNDLE:return(0,p.A)((0,p.A)({},y),this.mapBundleSpecificFields(i));case ot.CatalogContentType.POST:return(0,p.A)((0,p.A)({},y),this.mapPostSpecificFields(i));default:return}}mapResource(i){return{id:i.id,url:i.url,properties:this.mapProperties(i.properties),contentLength:i.contentLength,type:i.type}}mapPathSegmentLookupResult(i){return{identifier:i.identifier,matches:i.matches.map(c=>this.mapPathSegmentMatch(c)).filter(c=>!!c)}}mapPathSegmentMatch(i){switch(i.__typename){case"ContentMatch":return{type:"CONTENT",contentType:i.contentType,id:i.id,postType:i.postType};case"TaxonomyMatch":return{type:"TAXONOMY",id:i.id,identifier:i.identifier,name:i.name,taxonomyType:i.taxonomyType,parentIdentifier:i.parentIdentifier};case"CollectionMatch":return{type:"COLLECTION",id:i.id,name:i.name};case"RedirectMatch":return{type:"REDIRECT",id:i.id,identifier:i.identifier,redirectType:i.redirectType,statusCode:i.statusCode,target:i.target};default:return}}mapTaxonomy(i){return{id:i.id,internalId:i.internalId,name:i.name,description:i.description,seoMetadata:this.mapSeoMetadata(i.seoMetadata),properties:this.mapProperties(i.properties),thumbnails:this.mapThumbnails(i.thumbnails),thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails),type:i.type,parentId:i.parentId,contents:i.contentsConnection?this.toPage(i.contentsConnection,c=>this.mapContent(c.node)):null}}mapTaxonomySummary(i){return{id:i.id,internalId:i.internalId,name:i.name,seoMetadata:this.mapSeoMetadata(i.seoMetadata),properties:this.mapProperties(i.properties),type:i.type,parentId:i.parentId}}mapCollection(i){return{id:i.id,name:i.name,properties:i.properties?this.mapProperties(i.properties):null,elements:i.elementsConnection?this.toPage(i.elementsConnection,c=>this.mapCollectionElement(c.node)):void 0}}mapCollectionElement(i){if("ContentElement"===i.__typename)return{id:i.id,sortIndex:i.sortIndex,type:"CONTENT",content:this.mapContent(i.content)}}mapIssueSearchResult(i){return{contentType:ot.CatalogContentType.ISSUE,issue:this.mapIssue(i.issue),pageHits:i.pagesConnection.edges.map(({node:c})=>({excerpt:c.excerpt,pageIndex:c.pageIndex,pageNumber:c.pageNumber,pageLabel:c.pageLabel,pageTitle:c.pageTitle,elementAlias:c.elementAlias}))}}mapPostSearchResult(i){return{contentType:ot.CatalogContentType.POST,excerpt:i.excerpt,post:this.mapPost(i.post)}}mapBundleSearchResult(i){return{contentType:ot.CatalogContentType.BUNDLE,bundle:this.mapBundle(i.bundle),posts:i.posts.map(c=>this.mapPostSearchResult(c))}}mapSearchResult(i){switch(i.__typename){case"IssueSearchResult":return this.mapIssueSearchResult(i);case"PostSearchResult":return this.mapPostSearchResult(i);case"BundleSearchResult":return this.mapBundleSearchResult(i);default:return}}mapRedirect(i){return{id:i.id,identifier:i.identifier,statusCode:i.statusCode,target:i.target,type:i.type}}mapMenu(i){var c;return{id:i.id,name:i.name,properties:this.mapProperties(i.properties),items:null===(c=i.items)||void 0===c?void 0:c.map(g=>this.mapMenuItem(g))}}mapMenuItem(i){return{id:i.id,name:i.name,properties:this.mapProperties(i.properties),title:i.title,description:i.description,target:i.target,cssClasse
1s:i.cssClasses,sortIndex:i.sortIndex,url:i.url,parentId:i.parentId,thumbnailsExtended:this.mapThumbnailsExtended(i.thumbnails)}}getLocalIssues(){return(0,u.A)(function*(){return Promise.resolve({issues:[],previewIssues:[]})})()}getIssueStates(i){return(0,u.A)(function*(){return Object.fromEntries(i.issues.map(({issueId:c})=>[c,{issueId:c,installState:ot.ContentInstallState.NOT_INSTALLED,updateAvailable:!1,downloading:!1,progress:0}]))})()}startDownload(i){return(0,u.A)(function*(){console.warn("catalog.startDownload:"+ze.NOT_IMPLEMENTED)})()}pauseDownload(i){return(0,u.A)(function*(){console.warn("catalog.pauseDownload:"+ze.NOT_IMPLEMENTED)})()}addInvalidationListener(i){Me.addListener(Ke.INVALIDATION,i)}addIssueStateListener(i,c){}deleteIssue(i){return(0,u.A)(function*(){console.warn("catalog.deleteIssue:"+ze.NOT_IMPLEMENTED)})()}deleteIssues(i){return(0,u.A)(function*(){return console.warn("catalog.deleteIssues:"+ze.NOT_IMPLEMENTED),{}})()}getMetadata(){var i=this;return(0,u.A)(function*(){var c;return{activePurchaseTypes:null!==(c=(yield i.queryWithAuthRetry(pi(w||(w=gI||(gI=xi(["\n        query AppMetadata(\n            $appInfo: AppInfo!,\n            $deviceInfo: DeviceInfo!,\n            $authorization: Authorization!\n        ) {\n            catalog(\n                appInfo: $appInfo,\n                deviceInfo: $deviceInfo,\n                authorization: $authorization\n            ) {\n                activePurchases\n            }\n        }"])))),void 0)).catalog.activePurchases)&&void 0!==c?c:[]}})()}getPublicationProducts(i){return(0,u.A)(function*(){return console.warn("catalog.getPublicationProducts:"+ze.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}})()}getSubscriptions(i){return(0,u.A)(function*(){return console.warn("catalog.getSubscriptions:"+ze.NOT_IMPLEMENTED),{cursor:"",hasNextPage:!1,nodes:[],totalCount:0}})()}pauseDownloads(i){return(0,u.A)(function*(){return console.warn("catalog.pauseDownloads:"+ze.NOT_IMPLEMENTED),{}})()}removeInvalidationListener(i){Me.removeListener(Ke.INVALIDATION,i)}removeIssueStateListener(i,c){}startDownloads(i){return(0,u.A)(function*(){return console.warn("catalog.startDownloads:"+ze.NOT_IMPLEMENTED),{}})()}syncLocalIssues(i){return(0,u.A)(function*(){console.warn("catalog.syncLocalIssues:"+ze.NOT_IMPLEMENTED)})()}getProducts(i){return(0,u.A)(function*(){return console.warn("catalog.getProducts:"+ze.NOT_IMPLEMENTED),{issues:[],subscriptions:[],publicationProducts:[],contents:[]}})()}convertIssueParams(i){return i?{contentFilter:this.issueToContentFilter(i.issueFilter,!0),sort:i.sort&&i.sort.map(c=>this.issueToContentSort(c)),first:i.first,after:i.after}:{contentFilter:this.issueToContentFilter(void 0,!0)}}convertCategoriesParams(i){return i?{taxonomyFilter:this.categoryToTaxonomyFilter(i.categoryFilter,!0),sort:i.sort&&i.sort.map(c=>this.categoryToTaxonomySort(c)),first:i.first,after:i.after,includeContents:i.includeIssues,contentsParams:i.includeIssues?this.convertIssueParams(i.issuesParams):void 0}:{taxonomyFilter:this.categoryToTaxonomyFilter(void 0,!0)}}convertPublicationsParams(i){var c;let g=null==i?void 0:i.contentsParams;return null!=i&&i.includeIssues&&(console.warn('PublicationParams: deprecated "includeIssues", use "includeContents" instead',i),g=this.convertIssueParams(null==i?void 0:i.issuesParams)),(0,p.A)((0,p.A)({},i),{},{publicationFilter:this.pubToPubFilter(null==i?void 0:i.publicationFilter),sort:null==i||null===(c=i.sort)||void 0===c?void 0:c.map(y=>this.pubToPubSort(y)),includeContents:(null==i?void 0:i.includeContents)||(null==i?void 0:i.includeIssues),contentsParams:g})}convertToCategoryPage(i){return{hasNextPage:i.hasNextPage,totalCount:i.totalCount,cursor:i.cursor,nodes:i.nodes.map(c=>({id:c.id,name:c.name,type:c.type,parentCategoryId:c.parentId,thumbnails:c.thumbnails,properties:c.properties,issues:c.contents}))}}issueToContentSort(i){return i&&{index:i.index,publicationDate:i.publicationDate,property:i.property}}categoryToTaxonomySort(i){return i&&{name:i.name,property:i.property}}pubToPubSort(i){if(i)return i.currentIssuePublicationDate&&console.warn('PublicationComparator: deprecated "currentIssuePublicationDate" use "currentContentPublicationDate" instead'),{index:i.index,property:i.property,currentContentPublicationDate:i.currentContentPublicationDate||i.currentIssuePublicationDate}}categoryToTaxonomyFilter(i,c){const g=i&&{AND:i.AND&&i.AND.map(y=>this.categoryToTaxonomyFilter(y,!1)),OR:i.OR&&i.OR.map(y=>this.categoryToTaxonomyFilter(y,!1)),id:i.id,parentId:i.parentCategoryId,name:i.name,properties:i.properties,contents:this.issueListToContentListFilter(i.issues)};return c?this.wrapAsCategoryFilter(g):g}issueToContentFilter(i,c){const g=i&&{AND:i.AND&&i.AND.map(y=>this.issueToContentFilter(y,!1)),OR:i.OR&&i.OR.map(y=>this.issueToContentFilter(y,!1)),id:i.id,externalId:i.externalIssueId,alias:i.alias,publicationDate:i.publicationDate,access:this.purchasableToAccessFilter(i.purchasable),purchased:i.purchased,publication:this.pubToPubFilter(i.publication)||this.issueTypeToPubFilter(i.type),properties:i.properties,taxonomies:this.stringListToTaxonomyListFilter("category",i.categories)||this.stringListToTaxonomyListFilter("tag",i.tags)};return c?this.wrapAsIssueFilter(g):g}purchasableToAccessFilter(i){return i&&{value:ot.Access.FREE,negated:i.value}}stringListToTaxonomyListFilter(i,c){if(c)return{negated:c.negated,content:this.stringListContentToTaxonomyListContentFilter(i,c.content),size:c.size}}stringListContentToTaxonomyListContentFilter(i,c){if(c)return{operation:c.operation,value:this.stringFilterToTaxonomyFilter(i,c.value)}}stringFilterToTaxonomyFilter(i,c){return{AND:[{type:{value:i}},{id:c}]}}issueTypeToPubFilter(i){if(i)return{type:{negated:i.negated,value:"ARTICLE"===i.value?ot.PublicationType.CHANNEL:ot.PublicationType.
1KIOSK}}}pubToPubFilter(i){if(!i)return;let c=i.contents;return!i.contents&&i.issues&&(console.warn('PublicationFilter: deprecated "issues", use "contents" instead'),c=this.issueListToContentListFilter(i.issues)),{AND:i.AND&&i.AND.map(g=>this.pubToPubFilter(g)),OR:i.OR&&i.OR.map(g=>this.pubToPubFilter(g)),id:i.id,type:i.type,language:i.language,properties:i.properties,contents:c}}issueListToContentListFilter(i){return i&&{negated:i.negated,content:this.issueListContentToContentListContentFilter(i.content),size:i.size}}issueListContentToContentListContentFilter(i){return i&&{operation:i.operation,value:this.issueToContentFilter(i.value,!0)}}wrapAsCategoryFilter(i){return i?{AND:[{type:{value:"category"}},i]}:{type:{value:"category"}}}wrapAsIssueFilter(i){return i?{AND:[{contentType:{value:ot.CatalogContentType.ISSUE}},i]}:{contentType:{value:ot.CatalogContentType.ISSUE}}}}function Nh(l){return new Date(l).getTime()}class A_{constructor(i){(0,o.A)(this,"version",new bt(2,2)),this._getMetadata=i}getMetadata(i,c,g){return Promise.resolve((0,p.A)({},this._getMetadata(g)))}}class ul{constructor(){(0,o.A)(this,"version",new bt(2,0))}getState(i,c){let g;g="string"==typeof i?i:i.key;let y=localStorage.getItem("storefront-"+g);if(void 0===y&&(y=null),!c)return Promise.resolve({key:g,value:y});c(g,y)}setState(i,c){let g,y;return"string"==typeof i?(g=i,y=c):(g=i.key,y=i.value),null==y?localStorage.removeItem("storefront-"+g):localStorage.setItem("storefront-"+g,y),Promise.resolve()}}class xh{constructor(i,c,g,y,C){(0,o.A)(this,"version",new bt(2,4)),this.setConfigValue=i,this.getConfig=c,this.client=g,this.appInfo=y,this.deviceInfo=C}get config(){return this.getConfig()}sanitizeCode(i){return i.substring(0,255).trim().toUpperCase()}addSubscriptionCode(i){var c=this;return(0,u.A)(function*(){const g=c.sanitizeCode(i.code);if(c.config.subscriptionCodes.includes(g))throw{code:"DUPLICATE_CODE",message:"Code is already added: ".concat(i.code)};try{if(!((yield c.client.mutate({mutation:pi(B||(B=mI||(mI=xi(["\n    mutation CheckSubscriptionCodes(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!\n        $subscriptionCodes: [String!]!\n    ) {\n        subscriptionCodes(\n            appInfo: $appInfo\n            deviceInfo: $deviceInfo\n            codes: $subscriptionCodes\n        ) {\n            codes {\n                code\n                valid\n            }\n        }\n    }\n    "])))),variables:{appInfo:c.appInfo(),deviceInfo:c.deviceInfo(),subscriptionCodes:[g]}})).data.subscriptionCodes.codes.filter(y=>y.code===g&&y.valid).length>0))throw{code:"INVALID_CODE",message:"Code is invalid: ".concat(i.code)};c.setConfigValue("subscriptionCodes",c.config.subscriptionCodes.concat(g)),Me.sendEvent(Ke.INVALIDATION,{})}catch(y){throw console.warn(y),y}})()}addSubscriptionCodes(i,c){console.warn("store.addSubscriptionCodes:"+ze.NOT_IMPLEMENTED),c({success:!0})}getPrices(i,c){return console.warn("store.getPrices:"+ze.NOT_IMPLEMENTED),Promise.resolve({priceInfos:[]})}getSubscriptionCodes(i){const c=this.config.subscriptionCodes;if("function"!=typeof i)return Promise.resolve({subscriptionCodes:c});i(c)}openCodeRedemption(){return(0,u.A)(function*(){console.warn("store.purchase:"+ze.NOT_IMPLEMENTED)})()}purchase(i,c){return console.warn("store.purchase:"+ze.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof i?i:i.productId})}removeSubscriptionCode(i){var c=this;return(0,u.A)(function*(){const g=c.sanitizeCode(i.code),y=c.config.subscriptionCodes,C=y.indexOf(g);if(!(C>-1))throw{code:"UNKNOWN_CODE",message:"No such code found: ".concat(i.code)};y.splice(C,1),c.setConfigValue("subscriptionCodes",y),Me.sendEvent(Ke.INVALIDATION,{})})()}removeSubscriptionCodes(i,c){}restorePurchases(i){console.warn("store.restorePurchases:"+ze.NOT_IMPLEMENTED)}setPurchaseStateListener(i){}subscribe(i,c){return console.warn("store.subscribe:"+ze.NOT_IMPLEMENTED),Promise.resolve({productId:"string"==typeof i?i:i.productId})}}class Lh{constructor(){(0,o.A)(this,"version",new bt(2,1))}setUserAttribute(i){return(0,u.A)(function*(){console.warn("tracking.setUserAttribute:"+ze.NOT_IMPLEMENT
1ED)})()}trackAction(i,c,g){console.warn("tracking.trackAction:"+ze.NOT_IMPLEMENTED)}trackPurchase(i,c,g,y,C,Y,he){console.warn("tracking.trackPurchase:"+ze.NOT_IMPLEMENTED)}trackView(i,c,g){console.warn("tracking.trackView:"+ze.NOT_IMPLEMENTED)}debug(i){return(0,u.A)(function*(){console.warn("tracking.debug:"+ze.NOT_IMPLEMENTED)})()}}const cl=pi(ge||(ge=CI||(CI=xi(["\nfragment EntitlementFields on EntitlementResult {\n    ... on EntitlementError {\n        code\n        message\n    }\n    ... on EntitlementUserData {\n        accessToken\n        refreshToken\n        roles\n    }\n}\n"])))),ca="oauthState";class Fh{constructor(i,c,g,y,C){(0,o.A)(this,"version",new bt(1,3)),(0,o.A)(this,"isRefreshing",!1),(0,o.A)(this,"refreshSubscribers",[]),this.setConfigValue=i,this.getConfig=c,this.client=g,this.appInfo=y,this.deviceInfo=C}get config(){return this.getConfig()}entitlementMutation(i,c,g,y,C){var Y=this;return(0,u.A)(function*(){try{const he=yield Y.client.mutate({mutation:i,variables:(0,p.A)((0,p.A)({},c),{},{appInfo:Y.appInfo(),deviceInfo:Y.deviceInfo()})});return Y.handleEntitlementResult(g(he.data),y,C)}catch(he){throw{code:he.code||ot.ERROR_CODE.UNKNOWN,message:he.message,error:he}}})()}handleEntitlementResult(i,c,g){const y=this.mapEntitlementResult(i);if(function Rc(l){return"code"in l}(y))throw y;return g&&this.setConfigValue("entitlementLogin",g),this.setConfigValue("entitlementToken",y.accessToken),y.refreshToken&&this.setConfigValue("entitlementRefreshToken",y.refreshToken),y.roles&&this.setConfigValue("entitlementRoles",y.roles),c&&Me.sendEvent(Ke.INVALIDATION,{}),y}getUserData(){var i=this;return(0,u.A)(function*(){return{username:i.config.entitlementLogin,accessToken:i.config.entitlementToken,refreshToken:i.config.entitlementRefreshToken,roles:i.config.entitlementRoles,state:i.config.entitlementToken?ot.LoginState.LOGGED_IN:ot.LoginState.LOGGED_OUT}})()}login(i){var c=this;return(0,u.A)(function*(){if(null!=i&&i.externalToken)return c.loginWithExternalToken(i.externalToken);{const g=c.config.entitlementConfig;switch(g.mode){case ot.ENTITLEMENT_MODE.ENTITLEMENT:return c.loginWithUsernameAndPassword(i.username,i.password);case ot.ENTITLEMENT_MODE.OAUTH:return c.loginWithOauth(g,null==i?void 0:i.state);default:throw{code:ot.ERROR_CODE.CONFIGURATION_ERROR,message:"No Entitlement configured"}}}})()}loginWithExternalToken(i){var c=this;return(0,u.A)(function*(){return yield c.entitlementMutation(function ju(){return pi(K||(K=AI||(AI=xi(["\n    mutation LoginWithExternalToken(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!,\n        $externalToken: String!,\n    ) {\n        loginWithExternalToken(\n            appInfo: $appInfo,\n            deviceInfo: $deviceInfo,\n            externalToken: $externalToken,\n        ) {\n            ... EntitlementFields\n        }\n    }",""]))),cl)}(),{externalToken:i},g=>g.loginWithExternalToken,!0)})()}loginWithUsernameAndPassword(i,c){var g=this;return(0,u.A)(function*(){return yield g.entitlementMutation(function kh(){return pi(z||(z=vI||(vI=xi(["\n    mutation Login(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!,\n        $username: String!,\n        $password: String\n    ) {\n        login(\n            appInfo: $appInfo,\n            deviceInfo: $deviceInfo,\n            username: $username,\n            password: $password\n        ) {\n            ... EntitlementFields\n        }\n    }\n    \n    ",""]))),cl)}(),{username:i,password:c},y=>y.login,!0,i)})()}loginWithOauth(i,c){var g=this;return(0,u.A)(function*(){const y=new URL(i.loginUrl);y.searchParams.set("response_type","code"),y.searchParams.set("client_id",i.clientId),y.searchParams.set("device_id",g.config.deviceId);const C=g.config.oauthRedirectUri;y.searchParams.set("redirectUri",C);const Y=function Bd(){var l=new Uint32Array(28);return window.crypto.getRandomValues(l),Array.from(l,Vu).join("")}(),he=yield function um(l){return Nc.apply(this,arguments)}(Y);if(y.searchParams.set("code_challenge",he),y.searchParams.set("code_challenge_method","S256"),!g.config.deviceId)throw{code:"MISSING_DEVICE_ID",message:"oauth is only available if an deviceId was specified"};const ke=encodeURIComponent(btoa(JSON.stringify({state:c,verifier:Y,tokenRedirectUrl:C})));return y.searchParams.set("state",ke),localStorage.setItem(ca,JSON.stringify({type:"login",state:ke})),window.location.href=y.toString(),new Promise(()=>{})})()}checkForOauthEntitlement(){var i=this;return(0,u.A)(function*(){var c;const{type:g,state:y}=JSON.parse(null!==(c=localStorage.getItem(ca))&&void 0!==c?c:"{}");switch(localStorage.removeItem(ca),g){case"login":return yield i.handleOauthLogin(y);case"logout":return i.handleOauthLogout(y);default:console.warn("Unknown oauth state",g,y)}})()}handleOauthLogin(i){var c=this;return(0,u.A)(function*(){const g=new URL(window.location.href),y=g.searchParams.get("code"),C=g.searchParams.get("state");if(i&&i!=C)throw{code:ot.ERROR_CODE.INVALID_CREDENTIALS,message:"Invalid State"};const Y=JSON.parse(atob(decodeURIComponent(C))),he=c.config.entitlementConfig;if(he.mode!==ot.ENTITLEMENT_MODE.OAUTH)throw{code:ot.ERROR_CODE.CONFIGURATION_ERROR,message:"Invalid entitlement mode"};const ke=he.clientId,Ee=he.tokenUrl,Xe=new FormData;Xe.append("grant_type","authorization_code"),Xe.append("code",y),Xe.append("redirect_uri",Y.tokenRedirectUrl),Xe.append("code_verifier",Y.verifier),Xe.append("client_id",ke);const ut=yield(yield fetch(Ee,{method:"POST",body:Xe})).json();if(ut.error)throw{code:ot.ERROR_CODE.INVALID_CREDENTIALS,message:"Error when retrieving token"};if(ut.access_token){var lt;const Lt={accessToken:ut.access_token,refreshToken:ut.refresh_token,roles:ut.roles,state:ot.LoginState.LOGGED_IN};return c.setConfigValue("entitlementToken",Lt.accessToken),c.setConfigValue("entitlementRefreshToken",Lt.refreshToken),c.setConfigValue("entitlementRoles",Lt.roles),Me.sendEvent(Ke.INVALIDATION,{}),null==Y||null===(lt=Y.state)||void 0===lt?void 0:lt.redirectUrl}})()}logout(i){var c=this;return(0,u.A)(function*(){const g=c.config.entitlementToken,y=c.config.entitlementRefreshToken;if(!g)throw new Error("No accessToken to logout");try{const he=c.config.entitlementConfig;if(he.mode===ot.ENTITLEMENT_MODE.OAUTH&&he.logoutUrl){var C,Y;
1const ke=new URL(he.logoutUrl);ke.searchParams.set("redirect_uri",c.config.oauthRedirectUri),ke.searchParams.set("device_id",c.config.deviceId);const Ee={type:"logout",state:null!==(C=null==i||null===(Y=i.state)||void 0===Y?void 0:Y.redirectUrl)&&void 0!==C?C:"purple://app/home/open"};return localStorage.setItem(ca,JSON.stringify(Ee)),window.location.href=ke.href,new Promise(()=>{})}yield c.client.mutate({mutation:pi(oe||(oe=_I||(_I=xi(["\n    mutation Logout(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!,\n        $accessToken: String!,\n        $refreshToken: String\n    ) {\n        logout(\n            appInfo: $appInfo,\n            deviceInfo: $deviceInfo,\n            accessToken: $accessToken,\n            refreshToken: $refreshToken\n        )\n    }"])))),variables:{appInfo:c.appInfo(),deviceInfo:c.deviceInfo(),accessToken:g,refreshToken:y}}),c.clearLocalData()}catch(he){throw console.warn(he),he}})()}handleOauthLogout(i){return this.clearLocalData(),i}refreshAccessToken(){var i=this;return(0,u.A)(function*(){const c=i.config.entitlementRefreshToken;if(!c)throw{code:"NO_REFRESH_TOKEN",message:"Tried to refresh without refresh token"};if(i.isRefreshing)return new Promise(g=>{i.addRefreshSubscriber(y=>{g(y)})});i.isRefreshing=!0;try{const g=yield i.entitlementMutation(function Ud(){return pi(k||(k=EI||(EI=xi(["\n    mutation RefreshAccessToken(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!,\n        $refreshToken: String!\n    ) {\n        refreshAccessToken(\n            appInfo: $appInfo,\n            deviceInfo: $deviceInfo\n            refreshToken: $refreshToken\n        ) {\n            ... EntitlementFields\n        }\n    }\n    ",""]))),cl)}(),{refreshToken:c},y=>y.refreshAccessToken,!1);return i.notifyRefreshSubscribers(g),g}catch(g){throw g}finally{i.isRefreshing=!1}})()}addRefreshSubscriber(i){this.refreshSubscribers.push(i)}notifyRefreshSubscribers(i){this.refreshSubscribers.forEach(c=>c(i)),this.refreshSubscribers=[]}mapEntitlementResult(i){return i.accessToken?this.mapEntitlementUserData(i):this.mapEntitlementError(i)}mapEntitlementUserData(i){return{accessToken:i.accessToken,refreshToken:i.refreshToken,roles:i.roles,state:ot.LoginState.LOGGED_IN}}mapEntitlementError(i){return{message:i.message,code:this.mapEntitlementErrorCode(i.code)}}mapEntitlementErrorCode(i){switch(i){case"WRONG_PASSWORD_OR_USERNAME":case"WRONG_PASSWORD":case"AUTHENTICATION_ERROR":return ot.ERROR_CODE.INVALID_CREDENTIALS;case"USER_DEACTIVATED":return ot.ERROR_CODE.USER_DEACTIVATED;case"INSTALLATION_LIMIT_EXCEEDED":return ot.ERROR_CODE.INSTALLATION_LIMIT_EXCEEDED;case"SYSTEM_ERROR_IN_REMOTE_SYSTEM":case"PARAMETER_ERROR_IN_REMOTE_SYSTEM":return ot.ERROR_CODE.CONFIGURATION_ERROR;default:return ot.ERROR_CODE.UNKNOWN}}updateToken(i){var c=this;return(0,u.A)(function*(){if(!c.config.entitlementToken)throw{code:"NOT_LOGGED_IN",message:"Not logged in"};if(i.mode===ot.UpdateTokenMode.VERIFY)yield c.verifyAccessToken({accessToken:c.config.entitlementToken});else{if(i.mode!==ot.UpdateTokenMode.REFRESH||c.config.entitlementConfig.mode!==ot.ENTITLEMENT_MODE.OAUTH)throw{code:ot.ERROR_CODE.ILLEGAL_ARGUMENTS,message:"Illegal arguments"};yield c.refreshAccessToken()}return yield c.getUserData()})()}invalidateTokens(i){null!=i&&i.refreshTokenOnly||this.setConfigValue("entitlementToken","devtest_".concat(this.config.entitlementToken)),null!=i&&i.accessTokenOnly||this.setConfigValue("entitlementRefreshToken","devtest_".concat(this.config.entitlementRefreshToken))}clearLocalData(){this.setConfigValue("entitlementLogin",null),this.setConfigValue("entitlementToken",null),this.setConfigValue("entitlementRefreshToken",null),this.setConfigValue("entitlementRoles",null),Me.sendEvent(Ke.INVALIDATION,{})}verifyAccessToken(i){var c=this;return(0,u.A)(function*(){return yield c.entitlementMutation(function wc(){return pi(V||(V=yI||(yI=xi(["\n    mutation VerifyToken(\n        $appInfo: AppInfo!,\n        $deviceInfo: DeviceInfo!,\n        $accessToken: String!\n    ) {\n        verify(\n            appInfo: $appInfo,\n            deviceInfo: $deviceInfo,\n            accessToken: $accessToken\n        ) {\n            ... EntitlementFields\n        }\n    }\n    ",""]))),cl)}(),{accessToken:i.accessToken},g=>g.verify,!0)})()}}function Vu(l){return("0"+l.toString(16)).substr(-2)}function Nc(){return Nc=(0,u.A)(function*(l){const i=yield function j
1d(l){const i=(new TextEncoder).encode(l);return window.crypto.subtle.digest("SHA-256",i)}(l);return function Uh(l){let i="",c=new Uint8Array(l),g=c.byteLength;for(let y=0;y<g;y++)i+=String.fromCharCode(c[y]);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}(i)}),Nc.apply(this,arguments)}const b_="purple-catalog-audio-context";class $u{constructor(){(0,o.A)(this,"version",new bt(2,0)),(0,o.A)(this,"audioElement",void 0),(0,o.A)(this,"title",void 0),(0,o.A)(this,"playbackRate",1),this.audioElement=document.getElementById(b_),this.audioElement||this.setupAudioElement(),this.setupEventListeners()}setupAudioElement(){this.audioElement=document.createElement("audio"),this.audioElement.id=b_,document.body.append(this.audioElement)}setupEventListeners(){this.audioElement.addEventListener("playing",()=>this.sendStatus({playbackState:"PLAYING"})),this.audioElement.addEventListener("pause",()=>this.sendStatus({playbackState:this.audioElement.src?"READY":"NONE"})),this.audioElement.addEventListener("timeupdate",()=>this.sendProgress({currentTime:1e3*this.audioElement.currentTime,duration:1e3*this.audioElement.duration})),this.audioElement.addEventListener("waiting",()=>this.sendStatus({playbackState:"LOADING"}))}sendStatus(i){const c=(0,p.A)({displayName:this.title,url:this.audioElement.src},i);Me.sendEvent(Ke.MEDIA_STATUS,c)}sendProgress(i){Me.sendEvent(Ke.MEDIA_PROGRESS,i)}addProgressListener(i){Me.addListener(Ke.MEDIA_PROGRESS,i)}addStatusListener(i){Me.addListener(Ke.MEDIA_STATUS,i)}getPlaybackRate(i){var c=this;return(0,u.A)(function*(){return{playbackRate:c.playbackRate}})()}pauseAudio(){var i=this;return(0,u.A)(function*(){i.audioElement.pause()})()}removeProgressListener(i){Me.removeListener(Ke.MEDIA_PROGRESS,i)}removeStatusListener(i){Me.removeListener(Ke.MEDIA_STATUS,i)}resumeAudio(){return this.audioElement.play()}seekTo(i){var c=this;return(0,u.A)(function*(){"number"==typeof i&&(i={time:i}),c.audioElement.currentTime=i.time/1e3})()}setPlaybackRate(i){var c=this;return(0,u.A)(function*(){return"number"==typeof i&&(i={playbackRate:i}),c.playbackRate=i.playbackRate,c.audioElement.playbackRate=c.playbackRate,{playbackRate:c.audioElement.playbackRate}})()}startAudio(i,c){var g=this;return(0,u.A)(function*(){"string"==typeof i&&(i={displayName:i,url:c}),g.audioElement.src=i.url,g.audioElement.playbackRate=g.playbackRate,g.title=i.displayName;try{return g.audioElement.play()}catch(y){g.sendStatus({playbackState:"ERROR"})}})()}stopAudio(){this.audioElement.pause(),this.audioElement.currentTime=0,this.audioElement.removeAttribute("src"),this.audioElement.load(),this.title=null,this.sendStatus({playbackState:"NONE"}),this.sendProgress({duration:-1,currentTime:0})}}class cm{constructor(){(0,o.A)(this,"version",new bt(2,0))}getBaseUrl(){return(0,u.A)(function*(){return console.warn("issue.getBaseUrl:"+ze.NOT_IMPLEMENTED),{baseUrl:""}})()}getPages(i){return(0,u.A)(function*(){return console.warn("issue.getPages:"+ze.NOT_IMPLEMENTED),[]})()}getToc(i){return(0,u.A)(function*(){return console.warn("issue.getToc:"+ze.NOT_IMPLEMENTED),[]})()}openFile(i){return(0,u.A)(function*(){console.warn("issue.openFile:"+ze.NOT_IMPLEMENTED)})()}}class dm{constructor(){(0,o.A)(this,"version",new bt(1,0))}share(i){return(0,u.A)(function*(){console.warn("Share.share:"+ze.NOT_IMPLEMENTED)})()}}class fm{constructor(i){(0,o.A)(this,"version",new bt(1,2)),this.getPagerInfo=i}getInfo(){return Promise.resolve(this.getPagerInfo())}navigateTo(i){return Promise.resolve(void 0)}addIssueChangeListener(i){}removeIssueChangeListener(i){}retryLoad(){}}class Bh{constructor(){(0,o.A)(this,"version",new bt(1,1))}getConsent(i){throw new Error("Method not implemented.")}grantConsent(i){throw new Error("Method not implemented.")}showPrivacyManager(){throw new Error("Method not implemented.")}getSystemConsent(){throw new Error("Method not implemented.")}showSystemPrivacyManager(){throw new Error("Method not implemented.")}}pi(We||(We=SI||(SI=xi(["\n    fragment AppWebConfigurationFields on AppWebConfiguration {\n        id\n        dynamicResources {\n            lastModified\n        }\n        favicons {\n            url\n            mimeType\n        }\n        entitlementConfig {\n            __typename\n            ... on EntitlementConfig {\n                dummy\n            }\n            ... on OAuthConfig {\n                clientId\n                tokenUrl\n                loginUrl\n                logoutUrl\n            }\n        }\n        contentLastModified\n    }\n"]))));
1class jh extends ph{constructor(...i){super(...i),(0,o.A)(this,"read",()=>null),(0,o.A)(this,"write",()=>{}),(0,o.A)(this,"diff",()=>({})),(0,o.A)(this,"watch",()=>()=>{}),(0,o.A)(this,"reset",(0,u.A)(function*(){})),(0,o.A)(this,"evict",()=>!1),(0,o.A)(this,"restore",()=>this),(0,o.A)(this,"extract",()=>({})),(0,o.A)(this,"removeOptimistic",()=>{}),(0,o.A)(this,"batch",()=>{}),(0,o.A)(this,"performTransaction",()=>{}),(0,o.A)(this,"recordOptimisticTransaction",()=>{}),(0,o.A)(this,"transformDocument",c=>c),(0,o.A)(this,"transformForLink",c=>c),(0,o.A)(this,"identify",()=>{}),(0,o.A)(this,"gc",()=>[]),(0,o.A)(this,"modify",()=>!1),(0,o.A)(this,"readQuery",()=>null),(0,o.A)(this,"readFragment",()=>null),(0,o.A)(this,"writeQuery",()=>{}),(0,o.A)(this,"writeFragment",()=>{}),(0,o.A)(this,"updateQuery",()=>null),(0,o.A)(this,"updateFragment",()=>null)}}class mo{constructor(i,c){(0,o.A)(this,"version",new bt(3,1)),(0,o.A)(this,"account",void 0),(0,o.A)(this,"app",void 0),(0,o.A)(this,"appBrowser",void 0),(0,o.A)(this,"bookmark",void 0),(0,o.A)(this,"catalog",void 0),(0,o.A)(this,"consent",void 0),(0,o.A)(this,"content",void 0),(0,o.A)(this,"entitlement",void 0),(0,o.A)(this,"experience",void 0),(0,o.A)(this,"issue",void 0),(0,o.A)(this,"issuePager",void 0),(0,o.A)(this,"media",void 0),(0,o.A)(this,"metadata",void 0),(0,o.A)(this,"share",void 0),(0,o.A)(this,"storefront",void 0),(0,o.A)(this,"state",void 0),(0,o.A)(this,"store",void 0),(0,o.A)(this,"tracking",void 0),(0,o.A)(this,"pageData",{}),(0,o.A)(this,"pagerInfo",void 0),this.config=i,this.onConfigChange=c;const g=(l=>new Yg({uri:l,cache:new jh,defaultOptions:{watchQuery:{fetchPolicy:"no-cache",errorPolicy:"ignore"},query:{fetchPolicy:"no-cache",errorPolicy:"all"},mutate:{errorPolicy:"all"}}}))("".concat(this.config.baseUrl,"/graphql"));this.account=new Zo,this.app=new tt,this.appBrowser=new _a,this.bookmark=new Ro,this.catalog=new am(()=>this.config,this,g,this.appInfo,this.deviceInfo,this.authorization),this.consent=new Bh,this.content=new ea,this.entitlement=new Fh((y,C)=>this.setConfigValue(y,C),()=>i,g,this.appInfo,this.deviceInfo),this.issue=new cm,this.issuePager=new fm(()=>this.pagerInfo),this.media=new $u,this.metadata=new A_(y=>this.configToMetadata(y)),this.share=new dm,this.state=new ul,this.store=new xh((y,C)=>this.setConfigValue(y,C),()=>i,g,this.appInfo,this.deviceInfo),this.tracking=new Lh,this.storefront=null}appInfo(){return{appId:this.config.appId,appVersion:this.config.appVersion,preview:this.config.preview}}deviceInfo(){var i;return{deviceId:this.config.deviceId,deviceModel:this.config.deviceModel,locale:this.config.locale,deviceOs:this.config.deviceOs,platform:(null!==(i=this.config.platform)&&void 0!==i?i:"web").toUpperCase()}}authorization(){return{accessToken:this.config.entitlementToken,subscriptionCodes:this.config.subscriptionCodes,accountAccessToken:this.config.accountAccessToken}}closeView(){console.warn("closeView:"+ze.NOT_IMPLEMENTED)}setConfig(i,c){this.config=i,this.onConfigChange((0,p.A)({},this.config),c)}setConfigValue(i,c){this.config[i]=c,this.setConfig(this.config,i)}setPageData(i,c){this.pageData[i]=c}setIssuePagerInfo(i){this.pagerInfo=i}configToMetadata(i){const c=this.pageData[i]||{};return{app_id:this.config.appId,app_version:this.config.appVersion,bundle_id:this.config.bundleId,device_id:this.config.deviceId,device_model:this.config.deviceModel,device_os:this.config.deviceOs,entitlement_forced_login_enabled:this.config.entitlementForcedLoginEnabled,entitlement_login:this.config.entitlementLogin,entitlement_login_mode:this.config.entitlementLoginMode,entitlement_mode:this.config.entitlementConfig.mode,entitlement_token:this.config.entitlementToken,locale:this.config.locale,manager_base_url:this.config.baseUrl,platform:this.config.platform,preview_app:this.config.preview.toString(),purple_version:this.config.purpleVersion,issue_id:this.config.issueId,issue_name:this.config.issueName,publication_id:this.config.publicationId,publication_name:this.config.publicationName,page_id:c.id,page_alias:c.alias,page_title:c.title,page_filename:c.filename,page_index:c.number}}}class Wd{constructor(i){(0,o.A)(this,"purple",void 0),(0,o.A)(this,"getCssUrls",void 0),(0,o.A)(this,"getResourceUrl",void 0),(0,o.A)(this,"onLocationChange",void 0),(0,o.A)(this,"onSetTitle",void 0),(0,o.A)(this,"windows",[]),(0,o.A)(this,"messageEventListener",void 0),(0,o.A)(this,"invalidationEventListener",void 0),(0,o.A)(this,"audioStatusListener",void 0),(0,o.A)(this,"audioProgressListener",void 0),(0,o.A)(this,"issuePagerStateListener",void 0),this.purple=i.purple,this.getCssUrls=i.getCssUrls||(()=>({})),this.getResourceUrl=i.getResourceUrl||(c=>c),this.onLocationChange=i.onLocationChange||(c=>{}),this.onSetTitle=i.onSetTitle||(c=>{}),this.setup()}setup(){var i=this;this.messageEventListener=function(){var c=(0,u.A)(function*(g){if(i.windows.includes(g.source))try{const y=JSON.parse(g.data),{callback:C,key:Y,params:he,webViewId:ke,pageId:Ee}=y;
1if(C&&Y){let Xe,ut;try{Xe=yield i.handleMessage(Y,he,ke,Ee)}catch(lt){console.warn(lt),ut=lt}g.source.postMessage(JSON.stringify({callback:C,data:Xe,error:ut}),"*")}}catch(y){console.warn(y)}});return function(g){return c.apply(this,arguments)}}(),this.invalidationEventListener=c=>{this.windows.forEach(g=>{g.postMessage(JSON.stringify({key:bs.INVALIDATION,data:c.detail}),"*")})},this.audioStatusListener=c=>{this.windows.forEach(g=>{g.postMessage(JSON.stringify({key:bs.MEDIA_STATUS,data:c.detail}),"*")})},this.audioProgressListener=c=>{this.windows.forEach(g=>{g.postMessage(JSON.stringify({key:bs.MEDIA_PROGRESS,data:c.detail}),"*")})},this.issuePagerStateListener=c=>{this.windows.forEach(g=>{g.postMessage(JSON.stringify({key:bs.ISSUE_PAGER_STATE,data:c.detail}),"*")})},Me.addListener(Ke.INVALIDATION,this.invalidationEventListener),Me.addListener(Ke.MEDIA_STATUS,this.audioStatusListener),Me.addListener(Ke.MEDIA_PROGRESS,this.audioProgressListener),Me.addListener(Ke.ISSUE_PAGER_STATE,this.issuePagerStateListener),window.addEventListener("message",this.messageEventListener)}destroy(){window.removeEventListener("message",this.messageEventListener),Me.removeListener(Ke.INVALIDATION,this.invalidationEventListener),Me.removeListener(Ke.MEDIA_STATUS,this.audioStatusListener),Me.removeListener(Ke.MEDIA_PROGRESS,this.audioProgressListener),Me.removeListener(Ke.ISSUE_PAGER_STATE,this.issuePagerStateListener)}connectWindow(i){i.postMessage(dr.ENV_INIT,"*"),this.windows.push(i)}disconnectWindow(i){this.windows=this.windows.filter(c=>c!==i)}handleMessage(i,c,g,y){var C=this;return(0,u.A)(function*(){var Y,he,ke,Ee,Xe,ut,lt,Lt,rn,cn,En,nn,On,_n,Yn,wn,ur,Vr,qr,vi,Pi,Fo,Bs,Gi,da,Ku,Ka,Xl,dl,vo,fl,Ha,fs,Ga,hl,Kd,Hd,Lc,Wh,Kh,pl,Yl,vm,Gd,Hh,zd,Gh;switch(i){case dr.APP_PERFORM_ACTION_URL:return null===(Y=C.purple.app)||void 0===Y?void 0:Y.performActionUrl(c);case dr.APP_INVALIDATE:return null===(he=C.purple.app)||void 0===he?void 0:he.invalidate();case dr.APP_BROWSER_GET_DISPLAY_CONFIG:return C.purple.appBrowser.getDisplayConfig();case dr.ACCOUNT_ASSIGN_LOCAL_PURCHASES:return null===(ke=C.purple.account)||void 0===ke?void 0:ke.assignLocalPurchases(c);case dr.ACCOUNT_GET_USER_DATA:return null===(Ee=C.purple.account)||void 0===Ee?void 0:Ee.getUserData();case dr.ACCOUNT_LOGIN:return null===(Xe=C.purple.account)||void 0===Xe?void 0:Xe.login(c);case dr.ACCOUNT_LOGOUT:return null===(ut=C.purple.account)||void 0===ut?void 0:ut.logout();case dr.BOOKMARK_CREATE:return null===(lt=C.purple.bookmark)||void 0===lt?void 0:lt.createBookmark(c);case dr.BOOKMARK_DELETE:return null===(Lt=C.purple.bookmark)||void 0===Lt?void 0:Lt.deleteBookmark(c);case dr.BOOKMARK_GET:return null===(rn=C.purple.bookmark)||void 0===rn?void 0:rn.getBookmarks();case dr.CATALOG_GET_CATEGORIES:return null===(cn=C.purple.catalog)||void 0===cn?void 0:cn.getCategories(c);case dr.CATALOG_GET_ISSUES:return null===(En=C.purple.catalog)||void 0===En?void 0:En.getIssues(c);case dr.CATALOG_GET_METADATA:return null===(nn=C.purple.catalog)||void 0===nn?void 0:nn.getMetadata();case dr.CATALOG_GET_PUBLICATIONS:return null===(On=C.purple.catalog)||void 0===On?void 0:On.getPublications(c);case dr.CATALOG_GET_PUBLICATION_PRODUCTS:return null===(_n=C.purple.catalog)||void 0===_n?void 0:_n.getPublicationProducts(c);case dr.CATALOG_GET_SUBSCRIPTIONS:return null===(Yn=C.purple.catalog)||void 0===Yn?void 0:Yn.getSubscriptions(c);case dr.CATALOG_SEARCH:return null===(wn=C.purple.catalog)||void 0===wn?void 0:wn.search(c);case dr.CATALOG_GET_ISSUE_STATES:return null===(ur=C.purple.catalog)||void 0===ur?void 0:ur.getIssueStates(c);case dr.CLOSE_VIEW:return C.purple.closeView();case dr.CONTENT_OPEN:return C.purple.content.open(c);case dr.ENTITLEMENT_GET_USER_DATA:return null===(Vr=C.purple.entitlement)||void 0===Vr?void 0:Vr.getUserData();case dr.ENTITLEMENT_LOGIN:return null===(qr=C.purple.entitlement)||void 0===qr?void 0:qr.login(c);case dr.ENTITLEMENT_LOGOUT:return null===(vi=C.purple.entitlement)||void 0===vi?void 0:vi.logout();case dr.ENTITLEMENT_UPDATE_TOKEN:return null===(Pi=C.purple.entitlement)||void 0===Pi?void 0:Pi.updateToken(c);case dr.ENV_RESOURCE_URL:return C.getResourceUrl(c);case dr.ENV_RESIZE:return C.handleResize(g,c);case dr.ENV_CSS_URLS:return C.getCssUrls();case dr.ENV_TITLE:return C.onSetTitle(c);case dr.ENV_LOCATION:return C.onLocationChange(c);case dr.ISSUE_GET_BASE_URL:return null===(Fo=C.purple.issue)||void 0===Fo?void 0:Fo.getBaseUrl();case dr.ISSUE_GET_PAGES:return new Promise(gl=>{var rs;return null===(rs=C.purple.issue)||void 0===rs?void 0:rs.getPages(gl)});case dr.ISSUE_GET_TOC:return new Promise(gl=>{var rs;return null===(rs=C.purple.issue)||void 0===rs?void 0:rs.getToc(gl)});case dr.ISSUE_PAGER_GET_INFO:return null===(Bs=C.purple.issuePager)||void 0===Bs?void 0:Bs.getInfo();case dr.ISSUE_PAGER_NAVIGATE_TO:return null===(Gi=C.purple.issuePager)||void 0===Gi?void 0:Gi.navigateTo(c);case dr.MEDIA_START_AUDIO:return null===(da=C.purple.media)||void 0===da?void 0:da.startAudio(c);case dr.MEDIA_PAUSE_AUDIO:return null===(Ku=C.purple.media)||void 0===Ku?void 0:Ku.pauseAudio();case dr.MEDIA_RESUME_AUDIO:return null===(Ka=C.purple.media)||void 0===Ka?void 0:Ka.resumeAudio();case dr.MEDIA_STOP_AUDIO:return null===(Xl=C.purple.media)||void 0===Xl?void 0:Xl.stopAudio();case dr.MEDIA_SEEK_TO:return null===(dl=C.purple.media)||void 0===dl?void 0:dl.seekTo(c);case dr.MEDIA_GET_PLAYBACK_RATE:return null===(vo=C.purple.media)||void 0===vo?void 0:vo.getPlaybackRate();case dr.MEDIA_SET_PLAYBACK_RATE:return null===(fl=C.purple.media)||void 0===fl?void 0:fl.setPlaybackRate(c);case dr.METADATA_GET_METADATA:return null===(Ha=C.purple.metadata)||void 0===Ha?void 0:Ha.getMetadata(c,null,y);case dr.SHARE_SHARE:return null===(fs=C.purple.share)||void 0===fs?void 0:fs.share(c);case dr.STATE_GET_STATE:return null===(Ga=C.purple.state)||void 0===Ga?void 0:Ga.getState(c);case dr.STATE_SET_STATE:return null===(hl=C.purple.state)||void 0===hl?void 0:hl.setState(c);case dr.STORE_ADD_SUBSCRIPTION_CODE:return null===(Kd=C.purple.store)||void 0===Kd?void 0:Kd.addSubscriptionCode(c);case dr.STORE_ADD_SUBSCRIPTION_CODES:return new Promise(gl=>{var rs;return null===(rs=C.purple.store)||void 0===rs?void 0:rs.addSubscriptionCodes(c,gl)});case dr.STORE_GET_PRICES:return null===(Hd=C.purple.store)||void 0===Hd?void 0:Hd.getPrices(c);case dr.STORE_GET_SUBSCRIPTION_CODES:return null===(Lc=C.purple.store)||void 0===Lc?void 0:Lc.getSubscriptionCodes();case dr.STORE_OPEN_CODE_REDEMPTION:return null===(Wh=C.purple.store)||void 0===Wh?void 0:Wh.openCodeRedemption();case dr.STORE_PURCHASE:return null===(Kh=C.purple.store)||void 0===Kh?void 0:Kh.purchase(c);case dr.STORE_REMOVE_SUBSCRIPTION_CODE:return null===(pl=C.purple.store)||void 0===pl?void 0:pl.removeSubscriptionCode(c);case dr.STORE_REMOVE_SUBSCRIPTION_CODES:return new Promise(gl=>{var rs;return null===(rs=C.purple.store)||void 0===rs?void 0:rs.removeSubscriptionCodes(c,gl)});case dr.STORE_RESTORE_PURCHASES:return null===(Yl=C.purple.store)||void 0===Yl?void 0:Yl.restorePurchases();case dr.STORE_SUBSCRIBE:return null===(vm=C.purple.store)||void 0===vm?void 0:vm.subscribe(c);case dr.TRACKING_TRACK_ACTION:return null===(Gd=C.purple.tracking)||void 0===Gd?void 0:Gd.trackAction(c);case dr.TRACKING_TRACK_VIEW:return null===(Hh=C.purple.tracking)||void 0===Hh?void 0:Hh.trackView(c);case dr.TRACKING_TRACK_PURCHASE:return null===(zd=C.purple.tracking)||void 0===zd?void 0:zd.trackPurchase(c);case dr.TRACKING_SET_USER_ATTRIBUTE:return null===(Gh=C.purple.tracking)||void 0===Gh?void 0:Gh.setUserAttribute(c)}})()}handleResize(i,c){return(0,u.A)(function*(){if(i){const g="webView-"+i;let y=document.getElementById(g);y||(y=document.createElement("style"),y.id=g,document.head.appendChild(y)),y.innerHTML="@media print {#"+i+" iframe {height: "+c+"px !important;}}"}})()}print(i){i.postMessage(dr.ENV_PRINT,"*")}back(i){i.postMessage(dr.ENV_BACK,"*")}forward(i){i.postMessage(dr.ENV_FORWARD,"*")}reload(i){i.postMessage(dr.ENV_RELOAD,"*")}}},9360:(le,E,d)=>{"use strict";function p(U){return null!==U&&"object"==typeof U&&"constructor"in U&&U.constructor===Object}function u(U={},Q={}
1){Object.keys(Q).forEach(re=>{typeof U[re]>"u"?U[re]=Q[re]:p(Q[re])&&p(U[re])&&Object.keys(Q[re]).length>0&&u(U[re],Q[re])})}d.d(E,{YE:()=>v,zk:()=>x});const o={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function v(){const U=typeof document<"u"?document:{};return u(U,o),U}const O={document:o,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:U=>typeof setTimeout>"u"?(U(),null):setTimeout(U,0),cancelAnimationFrame(U){typeof setTimeout>"u"||clearTimeout(U)}};function x(){const U=typeof window<"u"?window:{};return u(U,O),U}},467:(le,E,d)=>{"use strict";function p(o,v,O,x,U,Q,re){try{var be=o[Q](re),ue=be.value}catch(X){return void O(X)}be.done?v(ue):Promise.resolve(ue).then(x,U)}function u(o){return function(){var v=this,O=arguments;return new Promise(function(x,U){var Q=o.apply(v,O);function re(ue){p(Q,x,U,re,be,"next",ue)}function be(ue){p(Q,x,U,re,be,"throw",ue)}re(void 0)})}}d.d(E,{A:()=>u})},1660:(le,E,d)=>{"use strict";d.d(E,{A:()=>v});var p=d(2284);function v(O,x,U){return(x=function o(O){var x=function u(O,x){if("object"!=(0,p.A)(O)||!O)return O;var U=O[Symbol.toPrimitive];if(void 0!==U){var Q=U.call(O,x||"default");if("object"!=(0,p.A)(Q))return Q;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===x?String:Number)(O)}(O,"string");return"symbol"==(0,p.A)(x)?x:x+""}(x))in O?Object.defineProperty(O,x,{value:U,enumerable:!0,configurable:!0,writable:!0}):O[x]=U,O}},9379:(le,E,d)=>{"use strict";d.d(E,{A:()=>o});var p=d(1660);function u(v,O){var x=Object.keys(v);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(v);O&&(U=U.filter(function(Q){return Object.getOwnPropertyDescriptor(v,Q).enumerable})),x.push.apply(x,U)}return x}function o(v){for(var O=1;O<arguments.length;O++){var x=null!=arguments[O]?arguments[O]:{};O%2?u(Object(x),!0).forEach(function(U){(0,p.A)(v,U,x[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(x)):u(Object(x)).forEach(function(U){Object.defineProperty(v,U,Object.getOwnPropertyDescriptor(x,U))})}return v}},2305:(le,E,d)=>{"use strict";function u(o,v){if(null==o)return{};var O,x,U=function p(o,v){if(null==o)return{};var O={};for(var x in o)if({}.hasOwnProperty.call(o,x)){if(v.includes(x))continue;O[x]=o[x]}return O}(o,v);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(o);for(x=0;x<Q.length;x++)v.includes(O=Q[x])||{}.propertyIsEnumerable.call(o,O)&&(U[O]=o[O])}return U}d.d(E,{A:()=>u})},2284:(le,E,d)=>{"use strict";function p(u){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(u)}d.d(E,{A:()=>p})},7027:(le,E,d)=>{"use strict";d.d(E,{A:()=>v});var p=d(2284);function u(O,x){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,Q){return U.__proto__=Q,U})(O,x)}function v(){v=function(be,ue){return new U(be,void 0,ue)};var O=RegExp.prototype,x=new WeakMap;function U(re,be,ue){var X=RegExp(re,be);return x.set(X,ue||x.get(re)),u(X,U.prototype)}function Q(re,be){var ue=x.get(be);return Object.keys(ue).reduce(function(X,ne){var te=ue[ne];if("number"==typeof te)X[ne]=re[te];else{for(var $=0;void 0===re[te[$]]&&$+1<te.length;)$++;X[ne]=re[te[$]]}return X},Object.create(null))}return function o(O,x){if("function"!=typeof x&&null!==x)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(x&&x.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),x&&u(O,x)}(U,RegExp),U.prototype.exec=function(re){var be=O.exec.call(this,re);if(be){be.groups=Q(be,this);var ue=be.indices;ue&&(ue.groups=Q(ue,this))}return be},U.prototype[Symbol.replace]=function(re,be){if("string"==typeof be){var ue=x.get(this);return O[Symbol.replace].call(this,re,be.replace(/\$<([^>]+)>/g,function(ne,te){var $=ue[te];return"$"+(Array.isArray($)?$.join("$"):$)}))}if("function"==typeof be){var X=this;return O[Symbol.replace].call(this,re,function(){var ne=arguments;return"object"!=(0,p.A)(ne[ne.length-1])&&(ne=[].slice.call(ne)).push(Q(ne,X)),be.apply(this,ne)})}return O[Symbol.replace].call(this,re,be)},v.apply(this,arguments)}},1635:(le,E,d)=>{"use strict";function X(Ke,Me,tt,He){return new(tt||(tt=Promise))(function(je,fe){function D(Ue){try{Se(He.next(Ue))}catch(at){fe(at)}}function H(Ue){try{Se(He.throw(Ue))}catch(at){fe(at)}}function Se(Ue){Ue.done?je(Ue.value):function ot(je){return je instanceof tt?je:new tt(function(fe){fe(je)})}(Ue.value).then(D,H)}Se((He=He.apply(Ke,Me||[])).next())})}function _(Ke){return this instanceof _?(this.v=Ke,this):new _(Ke)}function R(Ke,Me,tt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ot,He=tt.apply(Ke,Me||[]),je=[];return ot={},D("next"),D("throw"),D("return",function fe(ln){return function(et){return Promise.resolve(et).then(ln,at)}}),ot[Symbol.asyncIterator]=function(){return this},ot;function D(ln,et){He[ln]&&(ot[ln]=function(G){return new Promise(function(_e,Te){je.push([ln,G,_e,Te])>1||H(ln,G)}
1)},et&&(ot[ln]=et(ot[ln])))}function H(ln,et){try{!function Se(ln){ln.value instanceof _?Promise.resolve(ln.value.v).then(Ue,at):hn(je[0][2],ln)}(He[ln](et))}catch(G){hn(je[0][3],G)}}function Ue(ln){H("next",ln)}function at(ln){H("throw",ln)}function hn(ln,et){ln(et),je.shift(),je.length&&H(je[0][0],je[0][1])}}function B(Ke){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var tt,Me=Ke[Symbol.asyncIterator];return Me?Me.call(Ke):(Ke=function J(Ke){var Me="function"==typeof Symbol&&Symbol.iterator,tt=Me&&Ke[Me],He=0;if(tt)return tt.call(Ke);if(Ke&&"number"==typeof Ke.length)return{next:function(){return Ke&&He>=Ke.length&&(Ke=void 0),{value:Ke&&Ke[He++],done:!Ke}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ke),tt={},He("next"),He("throw"),He("return"),tt[Symbol.asyncIterator]=function(){return this},tt);function He(je){tt[je]=Ke[je]&&function(fe){return new Promise(function(D,H){!function ot(je,fe,D,H){Promise.resolve(H).then(function(Se){je({value:Se,done:D})},fe)}(D,H,(fe=Ke[je](fe)).done,fe.value)})}}}d.d(E,{AQ:()=>R,N3:()=>_,sH:()=>X,xN:()=>B}),"function"==typeof SuppressedError&&SuppressedError},8330:le=>{"use strict";le.exports=JSON.parse('{"rE":"4.2.0-SNAPSHOT"}')}},le=>{le(le.s=972)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.