(self.webpackChunknxt_ecom_frontend=self.webpackChunknxt_ecom_frontend||[]).push([[179],{5914:(Je,Rt,c)=>{"use strict";c.d(Rt,{cf:()=>et,Nb:()=>Be,AE:()=>de,Gv:()=>cn,yh:()=>Se,yC:()=>be,Me:()=>J,Ux:()=>Dt,xi:()=>kt,PS:()=>$e});const o={type:null,entityIds:null,skip:!1,payload:null};let e=!1;function x(xe,Mt,Kt){l(xe,Mt,Kt),e=!0}function l(xe,Mt,Kt){!1===e&&(o.type=xe,o.entityIds=Mt,o.payload=Kt)}let f={resettable:!1,ttl:null,producerFn:void 0};function y(){return f}function G(xe){return null==xe}function U(xe){return!1===G(xe)}var lt=c(8645),ut=c(7328);const Ht=new lt.x,A=new ut.t(50,5e3),xt=new lt.x,j=typeof window<"u",q=!j,ht=()=>{try{return typeof localStorage<"u"}catch{return!1}},vt=()=>{try{return typeof sessionStorage<"u"}catch{return!1}},gt={},zt={};function Ct(xe){return xe&&xe.charAt(0).toUpperCase()+xe.slice(1)}j&&(window.$$stores=gt,window.$$queries=zt);let H=[];function J(xe,Mt={}){if(q||!window.__REDUX_DEVTOOLS_EXTENSION__)return;H.length&&H.forEach(Vn=>{Vn.unsubscribe?Vn.unsubscribe():Vn&&Vn()}),xe&&xe.run||((xe=xe||{}).run=Vn=>Vn(),Mt=xe);const Pe=Object.assign({},{name:"Akita",shallow:!0,storesWhitelist:[]},Mt),un=Pe.storesWhitelist,Dn=window.__REDUX_DEVTOOLS_EXTENSION__.connect(Pe);let Un={};const Qn=Vn=>!un.length||un.indexOf(Vn)>-1;H.push(A.subscribe(Vn=>{!1!==Qn(Vn)&&(Un={...Un,[Vn]:gt[Vn]._value()},Dn.send({type:`[${Ct(Vn)}] - @@INIT`},Un))})),H.push(Ht.subscribe(Vn=>{!1!==Qn(Vn)&&(delete Un[Vn],Dn.send({type:`[${Vn}] - Delete Store`},Un))})),H.push(xt.subscribe(({storeName:Vn,action:Oi})=>{if(!1===Qn(Vn))return;const{type:ni,entityIds:pi,skip:Gi,...Zn}=Oi,Li=Zn.payload;if(Gi)return void function i(xe=!0){o.skip=xe}(!1);const So=gt[Vn];if(!So||!1===Mt.shallow&&Un[Vn]&&JSON.stringify(So._value())===JSON.stringify(Un[Vn]))return;Un={...Un,[Vn]:So._value()};const mo=Ct(Vn);let qn=U(pi)?`[${mo}] - ${ni} (ids: ${pi})`:`[${mo}] - ${ni}`;if(Mt.logTrace&&(console.group(qn),console.trace(),console.groupEnd()),Mt.sortAlphabetically){const jo=Object.keys(Un).sort().reduce((Bo,Ao)=>(Bo[Ao]=Un[Ao],Bo),{});Dn.send({type:qn,...Li},jo)}else Dn.send({type:qn,...Li},Un)})),H.push(Dn.subscribe(Vn=>{if("DISPATCH"===Vn.type){if("COMMIT"===Vn.payload.type)return void Dn.init(Un);if(Vn.state){const ni=JSON.parse(Vn.state);for(let pi=0,Gi=Object.keys(ni);pi<Gi.length;pi++){const Zn=Gi[pi];gt[Zn]&&xe.run(()=>{gt[Zn]._setState(()=>ni[Zn],!1)})}}}}))}function z(xe){return"function"==typeof xe}var F=function(xe){return xe.ASC="asc",xe.DESC="desc",xe}(F||{});function V(xe){return G(xe)?[]:Array.isArray(xe)?xe:[xe]}var $t=function(xe){return xe.Set="Set",xe.Add="Add",xe.Update="Update",xe.Remove="Remove",xe}($t||{}),Lt=c(655);function Jt(xe,Mt){return xe.hasOwnProperty(Mt)}let pt=!0;function Dt(){pt=!1,j&&(delete window.$$stores,delete window.$$queries)}function St(){return pt}function mt(xe){const Mt=typeof xe;return null!=xe&&("object"==Mt||"function"==Mt)}function yt(xe){return Array.isArray(xe)}function At(xe){return!!yt(xe)&&0===xe.length}function st(xe){return void 0===xe}function ie(xe){return xe.hasOwnProperty("active")}function Ae(xe){return yt(xe)}function en({active:xe,ids:Mt,entities:Kt}){return Ae(xe)?function In(xe,Mt){const Kt=xe.filter(ge=>Mt.indexOf(ge)>-1);return Kt.length===xe.length?xe:Kt}(xe,Mt):!1===Jt(Kt,xe)?null:xe}function Ce(xe,Mt){let Kt={};for(const ge of Object.keys(xe))Kt[ge]=Mt(xe[ge]);return Kt}var me=c(5619),De=c(7398),tn=c(3997);function gn(xe){Object.freeze(xe);const Mt="function"==typeof xe,Kt=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(xe).forEach(function(ge){Kt.call(xe,ge)&&(!Mt||"caller"!==ge&&"callee"!==ge&&"arguments"!==ge)&&null!==xe[ge]&&("object"==typeof xe[ge]||"function"==typeof xe[ge])&&!Object.isFrozen(xe[ge])&&gn(xe[ge])}),xe}function re(xe){return null!=xe&&"false"!=`${xe}`}function ue(xe){return re(xe)&&"Object"===xe.constructor.name}const Ft="akitaConfig";function be(xe){return function(Mt){Mt[Ft]={idKey:"id"};for(let Kt=0,ge=Object.keys(xe);Kt<ge.length;Kt++){const Pe=ge[Kt];"name"===Pe?Mt[Ft].storeName=xe[Pe]:Mt[Ft][Pe]=xe[Pe]}}}var qt=c(2096);const Te=new lt.x,Me=new me.X(!1),_n={activeTransactions:0,batchTransaction:null};function Xt(){return _n.activeTransactions>0}function oe(xe,Mt=void 0){!function ce(){Xt()||(_n.batchTransaction=new lt.x),_n.activeTransactions++,Me.next(!0)}();try{return xe.apply(Mt)}finally{x("@Transaction"),function ye(){0==--_n.activeTransactions&&(_n.batchTransaction.next(!0),_n.batchTransaction.complete(),Me.next(!1),Te.next(!0))}()}}function $e(){return function(xe,Mt,Kt){const ge=Kt.value;return Kt.value=function(...Pe){return oe(()=>ge.apply(this,Pe),this)},Kt}}class Se{constructor(Mt,Kt={}){this.options=Kt,this.inTransaction=!1,this.cache={active:new me.X(!1),ttl:null},this.onInit(Mt)}setLoading(Mt=!1){Mt!==this._value().loading&&(St()&&l("Set Loading"),this._setState(Kt=>({...Kt,loading:Mt})))}setHasCache(Mt,Kt={restartTTL:!1}){if(Mt!==this.cache.active.value&&this.cache.active.next(Mt),Kt.restartTTL){const ge=this.getCacheTTL();ge&&(null!==this.cache.ttl&&clearTimeout(this.cache.ttl),this.cache.ttl=setTimeout(()=>this.setHasCache(!1),ge))}}getValue(){return this.storeValue}setError(Mt){Mt!==this._value().error&&(St()&&l("Set Error"),this._setState(Kt=>({...Kt,error:Mt})))}_select(Mt){return this.store.asObservable().pipe((0,De.U)(Kt=>Mt(Kt.state)),(0,tn.x)())}_value(){return this.storeValue}_cache(){return this.cache.active}get config(){return this.constructor[Ft]||{}}get storeName(){return this.config.storeName||this.options.storeName||this.options.name}get deepFreeze(){return this.config.deepFreezeFn||this.options.deepFreezeFn||gn}get cacheConfig(){return this.config.cache||this.options.cache}get _producerFn(){return this.config.producerFn||this.options.producerFn||function O(){return f.producerFn}()}get resettable(){return U(this.config.resettable)?this.config.resettable:this.options.resettable}_setState(Mt,Kt=!0){if(z(Mt)){const ge=Mt(this._value());this.storeValue=pt?this.deepFreeze(ge):ge}else this.storeValue=Mt;if(!this.store)return this.store=new me.X({state:this.storeValue}),void(St()&&this.store.subscribe(({action:ge})=>{ge&&function _(xe,Mt){xt.next({storeName:xe,action:Mt})}(this.storeName,ge)}));Xt()?this.handleTransaction():this.dispatch(this.storeValue,Kt)}reset(){this.isResettable()&&(St()&&l("Reset"),this._setState(()=>Object.assign({},this._initialState)),this.setHasCache(!1))}update(Mt){let Kt;St()&&l("Update");const ge=this._value();Kt=z(Mt)?z(this._producerFn)?this._producerFn(ge,Mt):Mt(ge):Mt;const Pe=this.akitaPreUpdate(ge,{...ge,...Kt}),un=ue(ge)?Pe:new ge.constructor(Pe);this._setState(un)}updateStoreConfig(Mt){this.options={...this.options,...Mt}}akitaPreUpdate(Mt,Kt){return Kt}destroy(){(!j||!window.hmrEnabled)&&this===gt[this.storeName]&&(delete gt[this.storeName],function tt(xe){Ht.next(xe)}(this.storeName),this.setHasCache(!1),this.cache.active.complete(),this.store.complete())}onInit(Mt){gt[this.storeName]=this,this._setState(()=>Mt),function ct(xe){A.next(xe)}(this.storeName),this.isResettable()&&(this._initialState=Mt),St()&&function rn(xe,Mt){xe||console.error(`@StoreConfig({ name }) is missing in ${Mt}`)}(this.storeName,this.constructor.name)}dispatch(Mt,Kt=!0){let ge;Kt&&(ge=o,function g(){e=!1}()),this.store.next({state:Mt,action:ge})}watchTransaction(){(function on(){return _n.batchTransaction?_n.batchTransaction.asObservable():(0,qt.of)(!0)})().subscribe(()=>{this.inTransaction=!1,this.dispatch(this._value())})}isResettable(){return!1!==this.resettable&&(this.resettable||y().resettable)}handleTransaction(){this.inTransaction||(this.watchTransaction(),this.inTransaction=!0)}getCacheTTL(){return this.cacheConfig&&this.cacheConfig.ttl||y().ttl}}var Qe;class et extends Se{constructor(Mt={},Kt={}){super({entities:{},ids:[],loading:!0,error:null,...Mt},Kt),this.options=Kt,this.entityActions=new lt.x,this.entityIdChanges=new lt.x}get selectEntityAction$(){return this.entityActions.asObservable()}get selectEntityIdChanges$(){return this.entityIdChanges.asObservable()}get idKey(){return this.config.idKey||this.options.idKey||"id"}set(Mt,Kt={}){if(G(Mt))return;St()&&l("Set Entity");const ge=this.akitaPreAddEntity===et.prototype.akitaPreAddEntity;this.setHasCache(!0,{restartTTL:!0}),this._setState(Pe=>{const un=function ve({state:xe,entities:Mt,idKey:Kt,preAddEntity:ge,isNativePreAdd:Pe}){let un,Dn;if(yt(Mt)){const Qn=function ft(xe,Mt,Kt){const ge={entities:{},ids:[]};for(const Pe of xe){const un=Kt(Pe);ge.entities[un[Mt]]=un,ge.ids.push(un[Mt])}return ge}(Mt,Kt,ge);un=Qn.entities,Dn=Qn.ids}else!function Gt(xe){return xe.entities&&xe.ids}(Mt)?(un=Pe?Mt:Ce(Mt,ge),Dn=Object.keys(un).map(Qn=>isNaN(Qn)?Qn:Number(Qn))):(un=Pe?Mt.entities:Ce(Mt.entities,ge),Dn=Mt.ids);const Un={...xe,entities:un,ids:Dn,loading:!1};return ie(xe)&&(Un.active=en(Un)),Un}({state:Pe,entities:Mt,idKey:this.idKey,preAddEntity:this.akitaPreAddEntity.bind(this),isNativePreAdd:ge});return!1===st(Kt.activeId)&&(un.active=Kt.activeId),un}),this.hasInitialUIState()&&this.handleUICreation(),this.entityActions.next({type:$t.Set,ids:this.ids})}add(Mt,Kt={loading:!1}){const ge=V(Mt);if(At(ge))return;const Pe=function Tt({state:xe,entities:Mt,idKey:Kt,options:ge={},preAddEntity:Pe}){let un={},Dn=[],Un=!1;for(const Qn of Mt)if(!1===Jt(xe.entities,Qn[Kt])){const Vn=Pe(Qn),Oi=Vn[Kt];un[Oi]=Vn,ge.prepend?Dn.unshift(Oi):Dn.push(Oi),Un=!0}return Un?{newState:{...xe,entities:{...xe.entities,...un},ids:ge.prepend?[...Dn,...xe.ids]:[...xe.ids,...Dn]},newIds:Dn}:null}({state:this._value(),preAddEntity:this.akitaPreAddEntity.bind(this),entities:ge,idKey:this.idKey,options:Kt});Pe&&(St()&&l("Add Entity"),Pe.newState.loading=Kt.loading,this._setState(()=>Pe.newState),this.hasInitialUIState()&&this.handleUICreation(!0),this.entityActions.next({type:$t.Add,ids:Pe.newIds}))}update(Mt,Kt){if(st(Kt))return void super.update(Mt);let Pe,ge=[];ge=z(Mt)?this.ids.filter(un=>Mt(this.entities[un])):G(Mt)?this.ids:V(Mt),At(ge)||(St()&&l("Update Entity",ge),this._setState(un=>function Ke({state:xe,ids:Mt,idKey:Kt,newStateOrFn:ge,preUpdateEntity:Pe,producerFn:un,onEntityIdChanges:Dn}){const Un={};let Vn,Qn=!1;for(const pi of Mt){if(!1===Jt(xe.entities,pi))continue;const Gi=xe.entities[pi];let Zn;Zn=z(ge)?z(un)?un(Gi,ge):ge(Gi):ge;const Li=Zn.hasOwnProperty(Kt)&&Zn[Kt]!==Gi[Kt];let So;Vn=pi,Li&&(Qn=!0,Vn=Zn[Kt]);const mo={...Gi,...Zn};So=ue(Gi)?mo:ue(Zn)?new Gi.constructor(mo):new Zn.constructor(mo),Un[Vn]=Pe(Gi,So)}let Oi=xe.ids,ni=xe.entities;if(Qn){const[pi]=Mt,{[pi]:Gi,...Zn}=xe.entities;ni=Zn,Oi=xe.ids.map(Li=>Li===pi?Vn:Li),Dn(pi,Vn)}return{...xe,entities:{...ni,...Un},ids:Oi}}({idKey:this.idKey,ids:ge,preUpdateEntity:this.akitaPreUpdateEntity.bind(this),state:un,newStateOrFn:Kt,producerFn:this._producerFn,onEntityIdChanges:(Dn,Un)=>{Pe={oldId:Dn,newId:Un},this.entityIdChanges.next({...Pe,pending:!0})}})),Pe&&this.entityIdChanges.next({...Pe,pending:!1}),this.entityActions.next({type:$t.Update,ids:ge}))}upsert(Mt,Kt,ge,Pe={}){const un=V(Mt),Dn=ni=>pi=>Jt(this.entities,pi)===ni,Un=z(ge)?Pe.baseClass:ge?ge.baseClass:void 0,Qn=z(Un),Vn=un.filter(Dn(!0)),Oi=un.filter(Dn(!1)).map(ni=>{const pi="function"==typeof Kt?Kt({}):Kt,Zn={...z(ge)?ge(ni,pi):pi,[this.idKey]:ni};return Qn?new Un(Zn):Zn});this.update(Vn,Kt),this.add(Oi),St()&&x("Upsert Entity")}upsertMany(Mt,Kt={}){const ge=[],Pe=[],un={};for(const Dn of Mt){const Un=this.akitaPreCheckEntity(Dn),Qn=Un[this.idKey];if(Jt(this.entities,Qn)){const Vn=this._value().entities[Qn],Oi={...this._value().entities[Qn],...Un},ni=Kt.baseClass?new Kt.baseClass(Oi):Oi,pi=this.akitaPreUpdateEntity(Vn,ni),Gi=pi[this.idKey];un[Gi]=pi,Pe.push(Gi)}else{const Vn=Kt.baseClass?new Kt.baseClass(Un):Un,Oi=this.akitaPreAddEntity(Vn),ni=Oi[this.idKey];ge.push(ni),un[ni]=Oi}}St()&&x("Upsert Many"),this._setState(Dn=>({...Dn,ids:ge.length?[...Dn.ids,...ge]:Dn.ids,entities:{...Dn.entities,...un},loading:!!Kt.loading})),Pe.length&&this.entityActions.next({type:$t.Update,ids:Pe}),ge.length&&this.entityActions.next({type:$t.Add,ids:ge}),ge.length&&this.hasUIStore()&&this.handleUICreation(!0)}replace(Mt,Kt){const ge=V(Mt);if(At(ge))return;const Pe={};for(const un of ge)Pe[un]={...Kt,[this.idKey]:un};St()&&l("Replace Entity",Mt),this._setState(un=>({...un,entities:{...un.entities,...Pe}}))}move(Mt,Kt){const ge=this.ids.slice();ge.splice(Kt<0?ge.length+Kt:Kt,0,ge.splice(Mt,1)[0]),St()&&l("Move Entity"),this._setState(Pe=>({...Pe,entities:{...Pe.entities},ids:ge}))}remove(Mt){if(At(this.ids))return;const Kt=U(Mt);let ge=[];ge=z(Mt)?this.ids.filter(Pe=>Mt(this.entities[Pe])):Kt?V(Mt):this.ids,!At(ge)&&(St()&&l("Remove Entity",ge),this._setState(Pe=>function Ve({state:xe,ids:Mt}){if(G(Mt))return function jt(xe){return{...xe,entities:{},ids:[],active:Ae(xe.active)?[]:null}}(xe);const Kt=xe.entities;let ge={};for(const un of xe.ids)!1===Mt.includes(un)&&(ge[un]=Kt[un]);const Pe={...xe,entities:ge,ids:xe.ids.filter(un=>!1===Mt.includes(un))};return ie(xe)&&(Pe.active=en(Pe)),Pe}({state:Pe,ids:ge})),Kt||this.setHasCache(!1),this.handleUIRemove(ge),this.entityActions.next({type:$t.Remove,ids:ge}))}updateActive(Mt){const Kt=V(this.active);St()&&l("Update Active",Kt),this.update(Kt,Mt)}setActive(Mt){const Kt=function ee(xe,Mt,Kt){let ge;if(yt(xe))ge=xe;else if(mt(xe)){if(G(Kt))return;xe=Object.assign({wrap:!0},xe);const Pe=Mt.indexOf(Kt);if(xe.prev){const un=0===Pe;if(un&&!xe.wrap)return;ge=un?Mt[Mt.length-1]:Mt[Pe-1]}else if(xe.next){const un=Mt.length===Pe+1;if(un&&!xe.wrap)return;ge=un?Mt[0]:Mt[Pe+1]}}else{if(xe===Kt)return;ge=xe}return ge}(Mt,this.ids,this.active);void 0!==Kt&&(St()&&l("Set Active",Kt),this._setActive(Kt))}addActive(Mt){const Kt=V(Mt);At(Kt)||Kt.every(Pe=>this.active.indexOf(Pe)>-1)||(St()&&l("Add Active",Mt),this._setState(Pe=>{const un=Array.from(new Set([...Pe.active,...Kt]));return{...Pe,active:un}}))}removeActive(Mt){const Kt=V(Mt);At(Kt)||!Kt.some(Pe=>this.active.indexOf(Pe)>-1)||(St()&&l("Remove Active",Mt),this._setState(Pe=>({...Pe,active:Array.isArray(Pe.active)?Pe.active.filter(un=>-1===Kt.indexOf(un)):null})))}toggleActive(Mt){const Kt=V(Mt),ge=Dn=>Un=>this.active.includes(Un)===Dn,Pe=Kt.filter(ge(!0)),un=Kt.filter(ge(!1));this.removeActive(Pe),this.addActive(un),St()&&x("Toggle Active")}createUIStore(Mt={},Kt={}){return this.ui=new nt(Mt,{name:`UI/${this.storeName}`,idKey:this.idKey,...Kt}),this.ui}destroy(){super.destroy(),this.ui instanceof et&&this.ui.destroy(),this.entityActions.complete()}akitaPreUpdateEntity(Mt,Kt){return Kt}akitaPreAddEntity(Mt){return Mt}akitaPreCheckEntity(Mt){return Mt}get ids(){return this._value().ids}get entities(){return this._value().entities}get active(){return this._value().active}_setActive(Mt){this._setState(Kt=>({...Kt,active:Mt}))}handleUICreation(Mt=!1){const Kt=this.ids,ge=z(this.ui._akitaCreateEntityFn);let Pe;const un=Dn=>{const Un=this.entities[Dn],Qn=ge?this.ui._akitaCreateEntityFn(Un):this.ui._akitaCreateEntityFn;return{[this.idKey]:Un[this.idKey],...Qn}};Pe=Mt?this.ids.filter(Dn=>st(this.ui.entities[Dn])).map(un):Kt.map(un),Mt?this.ui.add(Pe):this.ui.set(Pe)}hasInitialUIState(){return this.hasUIStore()&&!1===st(this.ui._akitaCreateEntityFn)}handleUIRemove(Mt){this.hasUIStore()&&this.ui.remove(Mt)}hasUIStore(){return this.ui instanceof nt}}(0,Lt.gn)([$e(),(0,Lt.w6)("design:type",Function),(0,Lt.w6)("design:paramtypes",[Object,Object,Object,Object]),(0,Lt.w6)("design:returntype",void 0)],et.prototype,"upsert",null),(0,Lt.gn)([$e(),(0,Lt.w6)("design:type",Function),(0,Lt.w6)("design:paramtypes",["function"==typeof(Qe=typeof T<"u"&&T)?Qe:Object]),(0,Lt.w6)("design:returntype",void 0)],et.prototype,"toggleActive",null);class nt extends et{constructor(Mt={},Kt={}){super(Mt,Kt)}setInitialEntityState(Mt){this._akitaCreateEntityFn=Mt}}function Ot(xe){return"string"==typeof xe}class de{constructor(Mt){this.store=Mt,this.__store__=Mt,St()&&(zt[Mt.storeName]=this)}select(Mt){let Kt;if(z(Mt))Kt=Mt;else if(Ot(Mt))Kt=ge=>ge[Mt];else{if(Array.isArray(Mt))return this.store._select(ge=>ge).pipe((0,tn.x)(function it(xe){return function(Mt,Kt){const ge=z(xe[0]);return!1===xe.some(Pe=>ge?Pe(Mt)!==Pe(Kt):Mt[Pe]!==Kt[Pe])}}(Mt)),(0,De.U)(ge=>z(Mt[0])?Mt.map(Pe=>Pe(ge)):Mt.reduce((Pe,un)=>(Pe[un]=ge[un],Pe),{})));Kt=ge=>ge}return this.store._select(Kt)}selectLoading(){return this.select(Mt=>Mt.loading)}selectError(){return this.select(Mt=>Mt.error)}getValue(){return this.store._value()}selectHasCache(){return this.store._cache().asObservable()}getHasCache(){return this.store._cache().value}get config(){return this.constructor.akitaQueryConfig}}var He=c(4664),X=c(2181);function ke(xe,Mt){return function(Kt){const ge=Kt[xe];if(!st(ge))return Mt?Ot(Mt)?ge[Mt]:Mt(ge):ge}}class cn extends de{constructor(Mt,Kt={}){super(Mt),this.options=Kt,this.__store__=Mt}selectAll(Mt={asObject:!1}){return this.select(Kt=>Kt.entities).pipe((0,De.U)(()=>this.getAll(Mt)))}getAll(Mt={asObject:!1,filterBy:void 0,limitTo:void 0}){return Mt.asObject?function Tn(xe,Mt){const Kt={},{filterBy:ge,limitTo:Pe}=Mt,{ids:un,entities:Dn}=xe;if(!ge&&!Pe)return Dn;const Un=!1===G(Pe);if(ge&&Un){let Qn=0;for(let Vn=0,Oi=un.length;Vn<Oi&&Qn!==Pe;Vn++){const ni=un[Vn],pi=Dn[ni];V(ge).every(Zn=>Zn(pi,Vn))&&(Kt[ni]=pi,Qn++)}}else{const Qn=Math.min(Pe||un.length,un.length);for(let Vn=0;Vn<Qn;Vn++){const Oi=un[Vn],ni=Dn[Oi];ge?V(ge).every(Gi=>Gi(ni,Vn))&&(Kt[Oi]=ni):Kt[Oi]=ni}}return Kt}(this.getValue(),Mt):(function le(xe,Mt){xe.sortBy=xe.sortBy||Mt&&Mt.sortBy,xe.sortByOrder=xe.sortByOrder||Mt&&Mt.sortByOrder}(Mt,this.config||this.options),function Pt(xe,Mt){let Kt=[];const{ids:ge,entities:Pe}=xe,{filterBy:un,limitTo:Dn,sortBy:Un,sortByOrder:Qn}=Mt;for(let Oi=0;Oi<ge.length;Oi++){const ni=Pe[ge[Oi]];un?V(un).every(Zn=>Zn(ni,Oi))&&Kt.push(ni):Kt.push(ni)}if(Un){let Oi=z(Un)?Un:function rt(xe,Mt=F.ASC){return function(Kt,ge){if(!Kt.hasOwnProperty(xe)||!ge.hasOwnProperty(xe))return 0;const Pe="string"==typeof Kt[xe]?Kt[xe].toUpperCase():Kt[xe],un="string"==typeof ge[xe]?ge[xe].toUpperCase():ge[xe];let Dn=0;return Pe>un?Dn=1:Pe<un&&(Dn=-1),Mt==F.DESC?-1*Dn:Dn}}(Un,Qn);Kt=Kt.sort((ni,pi)=>Oi(ni,pi,xe))}const Vn=Math.min(Dn||Kt.length,Kt.length);return Vn===Kt.length?Kt:Kt.slice(0,Vn)}(this.getValue(),Mt))}selectMany(Mt,Kt){return Mt&&Mt.length?this.select(ge=>ge.entities).pipe((0,De.U)(ge=>function Ne(xe,Mt){return xe.reduce((Kt,ge,Pe,un)=>{const Dn=Mt(ge,Pe,un);return void 0!==Dn&&Kt.push(Dn),Kt},[])}(Mt,Pe=>ke(Pe,Kt)(ge))),function ze(){return(0,tn.x)((xe,Mt)=>xe===Mt||!(!yt(xe)||!yt(Mt))&&(!(!At(xe)||!At(Mt))||xe.length===Mt.length&&!1===Mt.some((ge,Pe)=>xe[Pe]!==ge)))}()):(0,qt.of)([])}selectEntity(Mt,Kt){let ge=Mt;return z(Mt)&&(ge=function je(xe,Mt){for(const Kt of Object.keys(Mt))if(!0===xe(Mt[Kt]))return Kt}(Mt,this.getValue().entities)),this.select(Pe=>Pe.entities).pipe((0,De.U)(ke(ge,Kt)),(0,tn.x)())}getEntity(Mt){return this.getValue().entities[Mt]}selectActiveId(){return this.select(Mt=>Mt.active)}getActiveId(){return this.getValue().active}selectActive(Mt){return yt(this.getActive())?this.selectActiveId().pipe((0,He.w)(Kt=>this.selectMany(Kt,Mt))):this.selectActiveId().pipe((0,He.w)(Kt=>this.selectEntity(Kt,Mt)))}getActive(){const Mt=this.getActiveId();return yt(Mt)?Mt.map(Kt=>this.getValue().entities[Kt]):re(Mt)?this.getEntity(Mt):void 0}selectCount(Mt){return this.select(Kt=>Kt.entities).pipe((0,De.U)(()=>this.getCount(Mt)))}getCount(Mt){return z(Mt)?this.getAll().filter(Mt).length:this.getValue().ids.length}selectLast(Mt){return this.selectAt(Kt=>Kt[Kt.length-1],Mt)}selectFirst(Mt){return this.selectAt(Kt=>Kt[0],Mt)}selectEntityAction(Mt){if(G(Mt))return this.store.selectEntityAction$;const Kt=yt(Mt)?Pe=>Pe:({ids:Pe})=>Pe,ge=V(Mt);return this.store.selectEntityAction$.pipe((0,X.h)(({type:Pe})=>ge.includes(Pe)),(0,De.U)(Pe=>Kt(Pe)))}hasEntity(Mt){return G(Mt)?this.getValue().ids.length>0:z(Mt)?this.getAll().some(Mt):yt(Mt)?Mt.every(Kt=>Kt in this.getValue().entities):Mt in this.getValue().entities}hasActive(Mt){const Kt=this.getValue().active,ge=U(Mt);return Array.isArray(Kt)?ge?Kt.includes(Mt):Kt.length>0:ge?Kt===Mt:U(Kt)}createUIQuery(){this.ui=new se(this.__store__.ui)}selectAt(Mt,Kt){return this.select(ge=>ge.ids).pipe((0,De.U)(Mt),(0,tn.x)(),(0,He.w)(ge=>this.selectEntity(ge,Kt)))}}class se extends cn{constructor(Mt){super(Mt)}}var Ji=c(2664),Ei=c(7715),Yi=c(836);function No(xe,Mt){return 1===Mt.split(".").length?xe:Mt.split(".").slice(1).join(".").split(".").reduce((ge,Pe)=>ge&&ge[Pe],xe)}function Mo(xe,Mt,Kt,ge=!1){const Pe=Mt.split(".");if(1===Pe.length)return{...xe,...Kt};xe={...xe};const un=Pe.length-2;return Mt.split(".").slice(1).reduce((Un,Qn,Vn)=>Vn!==un?(Un[Qn]={...Un[Qn]},Un&&Un[Qn]):(Un[Qn]=ge||Array.isArray(Un[Qn])||!mt(Un[Qn])?Kt:{...Un[Qn],...Kt},Un&&Un[Qn]),xe),xe}let Ai=!1;const Ui=new ut.t(1);function Ye(xe){Ai=xe}function Sn(){return Ai}function Zt(xe){return function N(xe){return xe&&z(xe.then)}(xe)||(0,Ji.b)(xe)?(0,Ei.D)(xe):(0,qt.of)(xe)}function kt(xe){const Mt={key:"AkitaStores",enableInNonBrowser:!1,storage:ht()?localStorage:xe.storage,deserialize:JSON.parse,serialize:JSON.stringify,include:[],select:[],persistOnDestroy:!1,preStorageUpdate:function(Ri,Pi){return Pi},preStoreUpdate:function(Ri,Pi){return Pi},skipStorageUpdate:Sn,preStorageUpdateOperator:()=>Ri=>Ri},{storage:Kt,enableInNonBrowser:ge,deserialize:Pe,serialize:un,include:Dn,select:Un,key:Qn,preStorageUpdate:Vn,persistOnDestroy:Oi,preStorageUpdateOperator:ni,preStoreUpdate:pi,skipStorageUpdate:Gi}=Object.assign({},Mt,xe);if(q&&!ge||!Kt)return;const Zn=Dn.length>0,Li=Un.length>0;let So,mo;Zn&&(So=Dn.reduce((Ri,Pi)=>(z(Pi)?Ri.fns.push(Pi):Ri[Pi.split(".")[0]]=Pi,Ri),{fns:[]})),Li&&(mo=Un.reduce((Ri,Pi)=>(Ri[Pi.storeName]=Pi,Ri),{}));let qn={};const jo={},Bo=[],Ao=[];function nr(Ri){Zt(Ri).subscribe(()=>{const Pi=Ao.shift();Pi&&nr(Pi)})}const Jr=ht()&&Kt===localStorage||vt()&&Kt===sessionStorage;return Zt(Kt.getItem(Qn)).subscribe(Ri=>{let Pi=mt(Ri)?Ri:Pe(Ri||"{}");function oo(Xn){Pi.$cache={...Pi.$cache||{},...Xn},Pi=Object.assign({},Pi,jo),Ao.push(Kt.setItem(Qn,Jr?un(Pi):Pi)),nr(Ao.shift())}function Go(Xn,Zo){qn[Xn]=gt[Xn]._select(uo=>No(uo,Zo)).pipe((0,Yi.T)(1),(0,De.U)(uo=>Li&&mo[Xn]?mo[Xn](uo):uo),(0,X.h)(()=>!1===Gi()),ni()).subscribe(uo=>{jo[Xn]=Vn(Xn,uo),Promise.resolve().then(()=>oo({[Xn]:gt[Xn]._cache().getValue()}))})}function bi(Xn,Zo,uo){Xn in Pi&&(l("@PersistState"),Zo._setState(or=>Mo(or,uo,pi(Xn,Pi[Xn],or))),gt[Xn].setHasCache(!!Pi.$cache&&Pi.$cache[Xn],{restartTTL:!0}))}Bo.push(Ht.subscribe(Xn=>{qn[Xn]&&(!1===Oi&&oo({[Xn]:!1}),qn[Xn].unsubscribe(),delete qn[Xn])})),Bo.push(A.subscribe(Xn=>{if("router"===Xn)return;const Zo=gt[Xn];if(Zn){let uo=So[Xn];if(!uo){if(!So.fns.some(or=>or(Xn)))return;uo=Xn}bi(Xn,Zo,uo),Go(Xn,uo)}else bi(Xn,Zo,Xn),Go(Xn,Xn)})),Ui.next(!0)}),{destroy(){Bo.forEach(Ri=>Ri.unsubscribe());for(let Ri=0,Pi=Object.keys(qn);Ri<Pi.length;Ri++)qn[Pi[Ri]].unsubscribe();qn={}},clear(){Kt.clear()},clearStore(Ri){G(Ri)?Zt(Kt.setItem(Qn,"{}")).subscribe():Zt(Kt.getItem(Qn)).subscribe(oo=>{const Go=Pe(oo||"{}");Go[Ri]&&(delete Go[Ri],Zt(Kt.setItem(Qn,un(Go))).subscribe())})}}}class Gn{constructor(Mt,Kt){this.query=Mt,Kt&&Kt.resetFn&&y().resettable&&this.onReset(Kt.resetFn)}getQuery(){return this.query}getStore(){return this.getQuery().__store__}isEntityBased(Mt){return re(Mt)}selectSource(Mt,Kt){return this.isEntityBased(Mt)?this.getQuery().selectEntity(Mt).pipe(function sn(){return(0,X.h)(xe=>null!=xe)}()):Kt?this.getQuery().select(ge=>No(ge,this.withStoreName(Kt))):this.getQuery().select()}getSource(Mt,Kt){if(this.isEntityBased(Mt))return this.getQuery().getEntity(Mt);const ge=this.getQuery().getValue();return Kt?No(ge,this.withStoreName(Kt)):ge}withStoreName(Mt){return`${this.storeName}.${Mt}`}get storeName(){return this.getStore().storeName}updateStore(Mt,Kt,ge,Pe=!1){if(this.isEntityBased(Kt)){const un=this.getStore();Pe?un.replace(Kt,Mt):un.update(Kt,Mt)}else{if(ge)return void this.getStore()._setState(Dn=>Mo(Dn,this.withStoreName(ge),Mt,!0));const un=Pe?Mt:Dn=>({...Dn,...Mt});this.getStore()._setState(un)}}onReset(Mt){const Kt=this.getStore().reset;this.getStore().reset=(...ge)=>{setTimeout(()=>{Kt.apply(this.getStore(),ge),Mt()})}}}var Rn=c(5177),Bt=c(8180);const he={pagesControls:!1,range:!1,startWith:1,cacheTimeout:void 0,clearStoreWithCache:!0};class Be extends Gn{constructor(Mt,Kt={}){super(Mt,{resetFn:()=>{this.initial=!1,this.destroy({clearCache:!0,currentPage:1})}}),this.query=Mt,this.config=Kt,this.metadata=new Map,this.pages=new Map,this.pagination={currentPage:1,perPage:0,total:0,lastPage:0,data:[]},this.initial=!0,this.isLoading$=this.query.selectLoading().pipe((0,Rn.g)(0)),this.config={...he,...Kt};const{startWith:ge,cacheTimeout:Pe}=this.config;this.page=new me.X(ge),(0,Ji.b)(Pe)&&(this.clearCacheSubscription=Pe.subscribe(()=>this.clearCache()))}get pageChanges(){return this.page.asObservable()}get currentPage(){return this.pagination.currentPage}get isFirst(){return 1===this.currentPage}get isLast(){return this.currentPage===this.pagination.lastPage}withControls(){return this.config.pagesControls=!0,this}withRange(){return this.config.range=!0,this}setLoading(Mt=!0){this.getStore().setLoading(Mt)}update(Mt){this.pagination=Mt,this.addPage(Mt.data)}addPage(Mt){this.pages.set(this.currentPage,{ids:Mt.map(Kt=>Kt[this.getStore().idKey])}),this.getStore().upsertMany(Mt)}clearCache(Mt={}){this.initial||(x("@Pagination - Clear Cache"),!1!==Mt.clearStore&&(this.config.clearStoreWithCache||Mt.clearStore)&&this.getStore().remove(),this.pages=new Map,this.metadata=new Map),this.initial=!1}clearPage(Mt){this.pages.delete(Mt)}destroy({clearCache:Mt,currentPage:Kt}={}){this.clearCacheSubscription&&this.clearCacheSubscription.unsubscribe(),Mt&&this.clearCache(),st(Kt)||this.setPage(Kt),this.initial=!0}isPageActive(Mt){return this.currentPage===Mt}setPage(Mt){(Mt!==this.currentPage||!this.hasPage(Mt))&&this.page.next(this.pagination.currentPage=Mt)}nextPage(){this.currentPage!==this.pagination.lastPage&&this.setPage(this.pagination.currentPage+1)}prevPage(){this.pagination.currentPage>1&&this.setPage(this.pagination.currentPage-1)}setLastPage(){this.setPage(this.pagination.lastPage)}setFirstPage(){this.setPage(1)}hasPage(Mt){return this.pages.has(Mt)}getPage(Mt){let Kt=this.pagination.currentPage;return this.hasPage(Kt)?this.selectPage(Kt):(this.setLoading(!0),(0,Ei.D)(Mt()).pipe((0,He.w)(ge=>(Kt=ge.currentPage,oe(()=>{this.setLoading(!1),this.update(ge)}),this.selectPage(Kt)))))}getQuery(){return this.query}refreshCurrentPage(){!1===G(this.currentPage)&&(this.clearPage(this.currentPage),this.setPage(this.currentPage))}getFrom(){return this.isFirst?1:(this.currentPage-1)*this.pagination.perPage+1}getTo(){return this.isLast?this.pagination.total:this.currentPage*this.pagination.perPage}selectPage(Mt){return this.query.selectAll({asObject:!0}).pipe((0,Bt.q)(1),(0,De.U)(Kt=>{const ge={...this.pagination,data:this.pages.get(Mt).ids.map(Dn=>Kt[Dn])},{range:Pe,pagesControls:un}=this.config;return isNaN(this.pagination.total)&&(ge.total=1===ge.lastPage?ge.data?ge.data.length:0:ge.perPage*ge.lastPage,this.pagination.total=ge.total),Pe&&(ge.from=this.getFrom(),ge.to=this.getTo()),un&&(ge.pageControls=function xn(xe,Mt){const Kt=Math.ceil(xe/Mt),ge=[];for(let Pe=0;Pe<Kt;Pe++)ge.push(Pe+1);return ge}(this.pagination.total,this.pagination.perPage)),ge}))}}(0,Lt.gn)([function R(xe,Mt){return function(Kt,ge,Pe){const un=Pe.value;return Pe.value=function(...Dn){return x(xe,Mt),un.apply(this,Dn)},Pe}}("@Pagination - New Page"),(0,Lt.w6)("design:type",Function),(0,Lt.w6)("design:paramtypes",[Object]),(0,Lt.w6)("design:returntype",void 0)],Be.prototype,"update",null),new class wr{getStoresSnapshot(Mt=[]){const Kt={},Pe=Mt.length>0?Mt:Object.keys(gt);for(let un=0;un<Pe.length;un++){const Dn=Pe[un];"router"!==Dn&&(Kt[Dn]=gt[Dn]._value())}return Kt}setStoresSnapshot(Mt,Kt){const ge={skipStorageUpdate:!1,lazy:!1,...Kt};ge.skipStorageUpdate&&Ye(!0);let Pe=Mt;Ot(Mt)&&(Pe=JSON.parse(Pe));const un=Object.keys(Pe).length;if(ge.lazy)A.pipe((0,X.h)(Dn=>Pe.hasOwnProperty(Dn)),(0,Bt.q)(un)).subscribe(Dn=>gt[Dn]._setState(()=>Pe[Dn]));else for(let Dn=0,Un=Object.keys(Pe);Dn<Un.length;Dn++){const Qn=Un[Dn];gt[Qn]&&gt[Qn]._setState(()=>Pe[Qn])}ge.skipStorageUpdate&&Ye(!1)}}},9372:(Je,Rt,c)=>{"use strict";c.d(Rt,{Uy:()=>st,rF:()=>ie,_j:()=>Ae});var o=c(2787),e=c(7299),g=c(5515),x=c(6093),l=c(2802),i=c(5879),R=c(7954),f=c(8514);let t=(()=>{class en extends l.I{constructor(Ve,jt){super(Ve,"pageNotFound",{meta:!0}),this.response=jt,this.mobileImage=!1,this.image="assets/404.png",this.title=this.content.get("titleText"),this.description=this.content.get("descriptionText");const ft=this.contentService.getSharedContent();this.buttonText=ft.get("goToMainPageButtonText"),this.contentService.getMerchant()?.type===x.Pc.FANDANKO&&(this.mobileImage=!0,this.image="assets/images/fandanko/404.png")}ngOnInit(){this.response&&this.response.status(404)}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(R._s),i.Y36(g.Y,8))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-page-not-found"]],hostVars:2,hostBindings:function(jt,ft){2&jt&&i.ekj("mobile-image",ft.mobileImage)},features:[i.qOj],decls:9,vars:4,consts:[[1,"text-container"],[1,"title"],["routerLink","/"],["aria-hidden","true",1,"image-container"],[3,"src"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"div",0)(1,"h1",1),i._uU(2),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.qZA(),i.TgZ(5,"app-text-button",2),i._uU(6),i.qZA()(),i.TgZ(7,"div",3),i._UZ(8,"img",4),i.qZA()),2&jt&&(i.xp6(2),i.Oqu(ft.title),i.xp6(2),i.hij(" ",ft.description," "),i.xp6(2),i.Oqu(ft.buttonText),i.xp6(2),i.Q6J("src",ft.image,i.LSH))},dependencies:[f.h,o.rH],styles:["[_nghost-%COMP%]{flex-direction:column;width:100%;height:100%;background-color:var(--background-color);justify-content:center;align-items:center;display:flex;flex-direction:row;justify-content:space-evenly}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{flex-direction:column}.mobile-image[_nghost-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]:not(.mobile-image)   .image-container[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:450px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .text-container[_ngcontent-%COMP%]{width:80vw;align-items:center;text-align:center}}[_nghost-%COMP%]   .text-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:4em;font-weight:900}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .text-container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:2.5em}}[_nghost-%COMP%]   .text-container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#a6a6a6}[_nghost-%COMP%]   .text-container[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:200px;height:56px;font-weight:600;margin-top:50px}[_nghost-%COMP%]   .image-container[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:center;align-items:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .image-container[_ngcontent-%COMP%]{order:-1}}[_nghost-%COMP%]   .image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}"]})}return en})();var y=c(1119),O=c(1952),G=c(3595),U=c(4918);let lt=(()=>{class en extends l.I{constructor(Ve,jt){super(Ve,"cookies",{meta:!0}),this.dialogService=jt}ngOnInit(){this.title=this.content.get("titleText"),this.body=this.content.get("descriptionText"),this.body=this.contentService.addImageSource(this.body),this.body=this.contentService.addLinkSource(this.body),this.changeConsentLabel=this.content.get("changeConsentLabelText")}changeConsent(){this.dialogService.openCookieConsentDialog(!0)}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(R._s),i.Y36(O.x))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-kage-policy"]],features:[i.qOj],decls:7,vars:5,consts:[[1,"rich-text",3,"innerHTML"],[3,"click"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"app-center-section")(1,"h1"),i._uU(2),i.qZA(),i._UZ(3,"div",0),i.ALo(4,"sanitizeHtml"),i.TgZ(5,"app-text-button",1),i.NdJ("click",function(){return ft.changeConsent()}),i._uU(6),i.qZA()()),2&jt&&(i.xp6(2),i.Oqu(ft.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(4,3,ft.body),i.oJD),i.xp6(3),i.Oqu(ft.changeConsentLabel))},dependencies:[f.h,G.R,U.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:80px 0}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.25em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:280px}"]})}return en})(),ut=(()=>{class en extends l.I{constructor(Ve){super(Ve,"termsOfService",{meta:!0})}ngOnInit(){this.title=this.content.get("titleText"),this.body=this.content.get("descriptionText"),this.body=this.contentService.addImageSource(this.body),this.body=this.contentService.addLinkSource(this.body)}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(R._s))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-gdpr"]],features:[i.qOj],decls:5,vars:4,consts:[[1,"rich-text",3,"innerHTML"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"app-center-section")(1,"h1"),i._uU(2),i.qZA(),i._UZ(3,"div",0),i.ALo(4,"sanitizeHtml"),i.qZA()),2&jt&&(i.xp6(2),i.Oqu(ft.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(4,2,ft.body),i.oJD))},dependencies:[G.R,U.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:80px 0}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.25em}}"]})}return en})();var Ht=c(7394),A=c(8712);let xt=(()=>{class en{constructor(Ve,jt,ft,Gt,Ce){this.contentService=Ve,this.router=jt,this.activatedRoute=ft,this.themeService=Gt,this.elRef=Ce,this.subscription=new Ht.w0,this.subscription.add(this.activatedRoute.url.subscribe(ve=>{const me=ve[0].path.toLowerCase(),tn=this.contentService.getMerchantPages().get(me);tn?(this.title=tn.titleText,this.body=tn.contentText,this.body=this.contentService.addImageSource(this.body),this.body=this.contentService.addLinkSource(this.body),this.setSEO(tn)):this.router.navigate([e.environment.urls.page_not_found])}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}setSEO(Ve){const{titleText:jt,pageTitle:ft,pageDescription:Gt}=Ve;this.contentService.setTitle(ft||jt),this.contentService.setDescription(Gt),this.contentService.setNoIndex(!1)}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(A._s),i.Y36(o.F0),i.Y36(o.gz),i.Y36(R.fY),i.Y36(i.SBq))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-simple-content"]],decls:5,vars:4,consts:[[1,"rich-text",3,"innerHTML"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"app-center-section")(1,"h1"),i._uU(2),i.qZA(),i._UZ(3,"div",0),i.ALo(4,"sanitizeHtml"),i.qZA()),2&jt&&(i.xp6(2),i.Oqu(ft.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(4,2,ft.body),i.oJD))},dependencies:[G.R,U.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{background-color:var(--background-color);color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]     p{color:var(--primary-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:80px 0}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     iframe{max-width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     img{max-width:100%;object-fit:contain}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     img{height:auto!important}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{overflow-y:auto}"]})}return en})(),tt=(()=>{class en extends l.I{constructor(Ve){super(Ve,"limitationOfLiability",{meta:!0})}ngOnInit(){this.title=this.content.get("titleText"),this.body=this.contentService.addImageSource(this.content.get("descriptionText"))}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(R._s))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-trade-conditions"]],features:[i.qOj],decls:5,vars:4,consts:[[1,"rich-text",3,"innerHTML"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"app-center-section")(1,"h1"),i._uU(2),i.qZA(),i._UZ(3,"div",0),i.ALo(4,"sanitizeHtml"),i.qZA()),2&jt&&(i.xp6(2),i.Oqu(ft.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(4,2,ft.body),i.oJD))},dependencies:[G.R,U.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:80px 0}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.25em}}"]})}return en})();var ct=c(6825),_=c(6223),j=c(125),q=c(6593),ht=c(9862),vt=c(2939),gt=c(6814),zt=c(3025);const Ct=["formDirective"];function H(en,In){if(1&en&&i._UZ(0,"iframe",3),2&en){const Ve=i.oxw();i.Q6J("@mapAnimation",void 0)("src",Ve.googleApiUrl,i.uOi)}}function J(en,In){if(1&en){const Ve=i.EpF();i.TgZ(0,"form",4,5),i.NdJ("ngSubmit",function(){i.CHM(Ve);const ft=i.oxw();return i.KtG(ft.postContactForm())}),i.TgZ(3,"div"),i._UZ(4,"app-text-input",6)(5,"app-text-input",6)(6,"app-text-input",6)(7,"app-text-input",6)(8,"app-text-input",7),i.qZA(),i.TgZ(9,"app-text-button",8),i._uU(10),i.qZA()()}if(2&en){const Ve=i.MAs(2),jt=i.oxw();i.Q6J("formGroup",jt.form),i.xp6(4),i.Q6J("control",jt.form.controls.firstName)("directive",Ve)("name",jt.formContent.firstNameLabel)("placeholder",jt.formContent.firstNamePlaceholder),i.xp6(1),i.Q6J("control",jt.form.controls.lastName)("directive",Ve)("name",jt.formContent.lastNameLabel)("placeholder",jt.formContent.lastNamePlaceholder),i.xp6(1),i.Q6J("control",jt.form.controls.email)("directive",Ve)("name",jt.formContent.emailLabel)("placeholder",jt.formContent.emailPlaceholder),i.xp6(1),i.Q6J("control",jt.form.controls.phone)("directive",Ve)("name",jt.formContent.phoneLabel)("placeholder",jt.formContent.phonePlaceholder),i.xp6(1),i.Q6J("control",jt.form.controls.message)("directive",Ve)("name",jt.formContent.messageLabel)("placeholder",jt.formContent.messagePlaceholder)("textarea",!0)("minRows",12)("maxRows",12),i.xp6(2),i.Oqu(jt.submitButton)}}let z=(()=>{class en extends l.I{constructor(Ve,jt,ft,Gt){super(Ve,"contact",{meta:!0}),this.sanitizer=jt,this.http=ft,this.snackBar=Gt,this.apiContactUrl=`${e.environment.apiOrigin}/Email/ContactUs`,this.apiContactUrl=this.apiContactUrl+=`/${this.contentService.getMerchantId()}`;const Ce=this.content.get("googleAPIKey"),ve=this.content.get("storeAddressText");Ce&&ve&&(this.googleApiUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.google.com/maps/embed/v1/place?q=${ve}&key=${Ce}`)),this.title=this.content.get("titleText"),this.description=this.contentService.addImageSource(this.content.get("descriptionText"));const me=this.contentService.getDefault("contact");this.formContent={firstNameLabel:me.get("firstNameLabelText"),firstNamePlaceholder:me.get("firstNamePlaceholderText"),lastNameLabel:me.get("lastNameLabelText"),lastNamePlaceholder:me.get("lastNamePlaceholderText"),emailLabel:me.get("emailLabelText"),emailPlaceholder:me.get("emailPlaceholderText"),phoneLabel:me.get("phoneLabelText"),phonePlaceholder:me.get("phonePlaceholderText"),messageLabel:me.get("messageLabelText"),messagePlaceholder:me.get("messagePlaceholderText")},this.submitButton=me.get("sendMessageButtonText"),this.messageDuration=3e3,this.messageSuccess=me.get("successMessageText"),this.messageError=me.get("errorMessageText"),this.messageCloseButton=me.get("closeButtonText")}ngOnInit(){this.form=this.createForm({firstName:void 0,lastName:void 0,email:void 0,phone:void 0,message:void 0}),this.contentService.getMerchant().type===x.Pc.LA_BRAVA&&(this.disable=!0)}postContactForm(){this.form.invalid||this.http.post(this.apiContactUrl,{firstName:this.form.value.firstName,lastName:this.form.value.lastName,fromEmail:this.form.value.email,phone:this.form.value.phone,message:this.form.value.message},{observe:"response"}).subscribe({next:()=>{this.openSnackBar(this.messageSuccess),this.formDirective.resetForm()},error:()=>this.openSnackBar(this.messageError,"warn")})}openSnackBar(Ve,jt="primary"){this.snackBar.open(Ve,this.messageCloseButton,{duration:this.messageDuration,panelClass:jt})}createForm(Ve){const jt=(0,j.Tg)(Ve,{updateOn:"submit"});return jt.controls.firstName.setValidators([_.kI.required]),jt.controls.lastName.setValidators([_.kI.required]),jt.controls.email.setValidators([_.kI.required,_.kI.email]),jt.controls.phone.setValidators([_.kI.required]),jt.controls.message.setValidators([_.kI.required]),jt}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(R._s),i.Y36(q.H7),i.Y36(ht.eN),i.Y36(vt.ux))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-contact-us"]],viewQuery:function(jt,ft){if(1&jt&&i.Gf(Ct,5),2&jt){let Gt;i.iGM(Gt=i.CRH())&&(ft.formDirective=Gt.first)}},features:[i.qOj],decls:7,vars:6,consts:[["frameborder","0","allowfullscreen","",3,"src",4,"ngIf"],[1,"page-description","rich-text",3,"innerHTML"],[3,"formGroup","ngSubmit",4,"ngIf"],["frameborder","0","allowfullscreen","",3,"src"],[3,"formGroup","ngSubmit"],["formDirective","ngForm","contactForm","ngForm"],[3,"control","directive","name","placeholder"],[1,"large-field",3,"control","directive","name","placeholder","textarea","minRows","maxRows"],[1,"submit-button"]],template:function(jt,ft){1&jt&&(i.YNc(0,H,1,2,"iframe",0),i.TgZ(1,"app-center-section")(2,"h1"),i._uU(3),i.qZA(),i._UZ(4,"div",1),i.ALo(5,"sanitizeHtml"),i.YNc(6,J,11,25,"form",2),i.qZA()),2&jt&&(i.Q6J("ngIf",ft.googleApiUrl),i.xp6(3),i.Oqu(ft.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(5,4,ft.description),i.oJD),i.xp6(2),i.Q6J("ngIf",!ft.disable))},dependencies:[gt.O5,_._Y,_.JL,_.sg,f.h,zt.t,G.R,U.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}[_nghost-%COMP%]   iframe[_ngcontent-%COMP%]{width:100%;height:420px;background-color:#f7f7f7}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   iframe[_ngcontent-%COMP%]{height:280px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0 80px}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.25em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .page-description[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .page-description[_ngcontent-%COMP%]     p{margin:.25em 0}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:1fr 100px;grid-column-gap:16px;margin-bottom:24px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .large-field[_ngcontent-%COMP%]{grid-column:span 2}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:1fr 1fr 1fr 100px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .large-field[_ngcontent-%COMP%]{grid-column:1}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:280px;height:54px;font-weight:600}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{align-self:center}}"],data:{animation:[(0,ct.X$)("mapAnimation",[(0,ct.eR)(":enter",[(0,ct.oB)({opacity:.5,height:0}),(0,ct.jt)("300ms ease-out",(0,ct.oB)({opacity:1,height:"*"}))])])]}})}return en})(),F=(()=>{class en{constructor(Ve,jt,ft){switch(this.contentService=Ve,this.router=jt,this.activatedRoute=ft,this.contentService.getMerchant().type){case x.Pc.MENY:this.email="service@meny.dk",this.phone="88 20 68 11";break;case x.Pc.SPAR:this.email="kundeservice@spar.dk",this.phone="88 20 68 13";break;case x.Pc.MIN_KOBMAND:this.email="kundeservice@minkobmand.dk",this.phone="88 20 68 16";break;default:this.router.navigate([e.environment.urls.page_not_found])}}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(A._s),i.Y36(o.F0),i.Y36(o.gz))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-customer-service"]],decls:11,vars:3,consts:[[3,"href"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"app-center-section")(1,"h1"),i._uU(2,"Kundeservice"),i.qZA(),i.TgZ(3,"p"),i._uU(4," Herunder finder du kontaktinfo til vores kundeservice, der kan hj\xe6lpe dig, hvis du har brug for hj\xe6lp til din bestilling, problemer med at logge ind eller har et andet kundeservice-relateret emne. "),i.qZA(),i.TgZ(5,"p"),i._uU(6," Mail: "),i.TgZ(7,"a",0),i._uU(8),i.qZA()(),i.TgZ(9,"p"),i._uU(10),i.qZA()()),2&jt&&(i.xp6(7),i.MGl("href","mailto:",ft.email,"",i.LSH),i.xp6(1),i.Oqu(ft.email),i.xp6(2),i.hij("Tlf: ",ft.phone,""))},dependencies:[G.R],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:80px 0}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     iframe{max-width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     img{max-width:100%;object-fit:contain}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     img{height:auto!important}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{overflow-y:auto}"]})}return en})();var rt=c(6734),V=c(2104),Pt=c(424),$t=c(5619),Lt=c(4222),Jt=c(8862),Tt=c(617),$=c(4187),pt=c(7592);function Dt(en,In){if(1&en&&(i.TgZ(0,"mat-error")(1,"div"),i._UZ(2,"mat-icon",8),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.qZA()()),2&en){const Ve=i.oxw().ngLet;i.xp6(4),i.Oqu(Ve)}}function St(en,In){if(1&en&&(i.TgZ(0,"div",5),i._UZ(1,"app-text-input",6)(2,"app-text-input",6),i.YNc(3,Dt,5,1,"mat-error",7),i.qZA()),2&en){const Ve=In.ngLet,jt=i.oxw(),ft=i.MAs(6);i.xp6(1),i.Q6J("control",jt.passwordUpdateForm.controls.password)("directive",ft)("name",jt.passwordLabel),i.xp6(1),i.Q6J("control",jt.passwordUpdateForm.controls.confirmPassword)("directive",ft)("name",jt.confirmPasswordLabel),i.xp6(1),i.Q6J("ngIf",Ve)}}var mt=function(en){return en.Welcome="welcome",en.Reset="reset",en}(mt||{});let yt=(()=>{class en extends l.I{constructor(Ve,jt,ft,Gt,Ce){const ve=jt.queryParams.value,{display:me,token:De}=ve;super(Ve,me===mt.Welcome?"welcomeMember":"resetMember",{meta:!0}),this.router=ft,this.authService=Gt,this.snackBar=Ce,this.display=me,this.token=decodeURIComponent(De)}ngOnInit(){this.token?(this.error=new $t.X(void 0),this.initContent(),this.passwordUpdateForm=this.createUpdateForm({password:void 0,confirmPassword:void 0})):this.router.navigate(["/"])}initContent(){this.title=this.content.get("titleText")||"Nulstil adgangskode",this.body=this.content.get("descriptionText")||"Skriv en ny adgangskode p\xe5 min. 12 tegn herunder og tryk p\xe5 knappen for at opdatere adgangskoden",this.passwordLabel=this.content.get("passwordLabelText")||"Ny adgangskode",this.confirmPasswordLabel=this.content.get("confirmPasswordLabelText")||"Gentag ny adgangskode",this.submit=this.content.get("submitButtonText")||"Opdater kode",this.passwordMatchError=this.content.get("passwordMatchError")||"Kodeordene passer ikke sammen",this.passwordSuccess=this.content.get("passwordSuccess")||"Kodeord opdateret",this.passwordError=this.content.get("passwordError")||"Noget gik galt",this.body=this.contentService.addImageSource(this.body),this.body=this.contentService.addLinkSource(this.body)}onPasswordSubmit(){if(this.error.next(void 0),this.passwordUpdateForm.invalid)return;const{password:Ve,confirmPassword:jt}=this.passwordUpdateForm.value;Ve===jt?this.authService.updatePassword(this.token,Ve).subscribe({next:()=>{this.snackBar.open(this.passwordSuccess,"Luk",{panelClass:"primary"})},error:()=>{this.error.next(this.passwordError)}}):this.error.next(this.passwordMatchError)}createUpdateForm(Ve){const jt=(0,j.Tg)(Ve,{updateOn:"submit"});return jt.controls.password.setValidators([_.kI.required,_.kI.minLength(12)]),jt.controls.confirmPassword.setValidators([_.kI.required]),jt}static#t=this.\u0275fac=function(jt){return new(jt||en)(i.Y36(R._s),i.Y36(o.gz),i.Y36(o.F0),i.Y36(Lt.e8),i.Y36(vt.ux))};static#e=this.\u0275cmp=i.Xpm({type:en,selectors:[["app-member-password"]],features:[i.qOj],decls:11,vars:9,consts:[[3,"innerHTML"],["novalidate","",3,"formGroup","ngSubmit"],["resetDirective","ngForm"],["mat-dialog-content","",4,"ngLet"],[1,"submit-button"],["mat-dialog-content",""],["type","password",3,"control","directive","name"],[4,"ngIf"],["aria-hidden","false","aria-label","error","svgIcon","error"]],template:function(jt,ft){1&jt&&(i.TgZ(0,"app-center-section")(1,"h1"),i._uU(2),i.qZA(),i._UZ(3,"div",0),i.ALo(4,"sanitizeHtml"),i.TgZ(5,"form",1,2),i.NdJ("ngSubmit",function(){return ft.onPasswordSubmit()}),i.YNc(7,St,4,7,"div",3),i.ALo(8,"async"),i.TgZ(9,"app-text-button",4),i._uU(10),i.qZA()()()),2&jt&&(i.xp6(2),i.Oqu(ft.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(4,5,ft.body),i.oJD),i.xp6(2),i.Q6J("formGroup",ft.passwordUpdateForm),i.xp6(2),i.Q6J("ngLet",i.lcZ(8,7,ft.error)),i.xp6(3),i.Oqu(ft.submit))},dependencies:[gt.O5,_._Y,_.JL,_.sg,Jt.h,Tt.Hw,$.nI,pt.Rb,f.h,zt.t,G.R,gt.Ov,U.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:80px 0}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:500px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:500px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{align-self:center;font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.25em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     p{color:#48494a}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]     p>*{color:#000}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:160px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:75%;margin:8px 0 16px;border:1px solid var(--accent-color);border-radius:4px;color:inherit}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;align-items:center;justify-content:center;align-self:stretch;box-sizing:border-box;max-width:60px;padding:0 8px;margin:-1px;background-color:var(--warn-color);border-top-left-radius:4px;border-bottom-left-radius:4px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:1 1 auto;padding:8px}"]})}return en})();var ee=c(4260),B=c(3982);let st=(()=>{class en extends o.sz{parse(Ve){const[jt,...ft]=Ve.split("?");let Gt=jt.toLowerCase();if(ft.length>0){const Ce=ft.join("?").split("&"),ve=[];for(const me of Ce){const[De,...tn]=me.split("="),gn=`${De.toLowerCase()}=${tn.join("=").replaceAll("+","%2B")}`;ve.push(gn)}Gt=`${Gt}?${ve.join("&")}`}return super.parse(Gt)}static#t=this.\u0275fac=function(){let Ve;return function(ft){return(Ve||(Ve=i.n5z(en)))(ft||en)}}();static#e=this.\u0275prov=i.Yz7({token:en,factory:en.\u0275fac})}return en})();const ie=en=>en instanceof o.m2,Ae=[{path:e.environment.urls.products,children:[{matcher:function At(en){if(1===en.length&&en[0].path.match(/^.*-\d+$|\d+$/))return{consumed:en}},component:B.c},{path:"**",component:ee.FX,data:{showFilter:!0}}]},{path:"",children:[{path:"",component:Pt.O},{path:e.environment.urls.content.trade_conditions,component:tt},{path:e.environment.urls.content.gdpr,component:ut},{path:e.environment.urls.content.cookie_policy,component:lt},{path:e.environment.urls.content.questions_and_answers,component:rt.o},{path:e.environment.urls.content.contact_us,component:z},{path:e.environment.urls.content.customer_service,component:F},{path:e.environment.urls.content.merchant_content,children:[{path:"**",component:xt}]}]},{path:e.environment.urls.gift_card,component:ee.d5},{path:e.environment.urls.basket,component:y.S3,data:{showBasket:!1}},{path:e.environment.urls.checkout,loadChildren:()=>c.e(834).then(c.bind(c,5834)).then(en=>en.CheckoutModule)},{path:e.environment.urls.confirmation,component:V.D,data:{showBasket:!1,showShipping:!1,showNavigation:!1,showFooter:!1}},{path:`${e.environment.urls.confirmation}/:id`,component:V.D,data:{showBasket:!1,showShipping:!1,showNavigation:!1,showFooter:!1}},{path:e.environment.urls.member_set_password,component:yt,data:{showBasket:!1,showShipping:!1,showNavigation:!1,showFooter:!1}},{path:e.environment.urls.page_not_found,component:t,data:{showBasket:!1,showShipping:!1,showNavigation:!1,showFooter:!1}},{path:"**",redirectTo:e.environment.urls.page_not_found}]},6939:(Je,Rt,c)=>{"use strict";c.d(Rt,{b:()=>o,t:()=>e});const o="assets/placeholder.png",e="assets/images/category.png"},608:(Je,Rt,c)=>{"use strict";c.d(Rt,{Pc:()=>o,X9:()=>e,Xb:()=>x,_H:()=>g});var o=function(l){return l[l.CATERSYS=0]="CATERSYS",l[l.MENY=1]="MENY",l[l.CITYCATERING=2]="CITYCATERING",l[l.NEW_YEAR=3]="NEW_YEAR",l[l.GOURMIDDAG=4]="GOURMIDDAG",l[l.GASTRO_BY_BOEGH=5]="GASTRO_BY_BOEGH",l[l.VICTORS_MADHUS=6]="VICTORS_MADHUS",l[l.LA_BRAVA=7]="LA_BRAVA",l[l.KOKKEFROEEN=8]="KOKKEFROEEN",l[l.HERLIGHEDER=9]="HERLIGHEDER",l[l.KROHN=10]="KROHN",l[l.FANDANKO=11]="FANDANKO",l[l.SPAR=12]="SPAR",l[l.NOERREGADES_KOEKKEN=13]="NOERREGADES_KOEKKEN",l[l.MIN_KOBMAND=14]="MIN_KOBMAND",l[l.DEMO_SHOP=15]="DEMO_SHOP",l[l.SAAKIN=16]="SAAKIN",l[l.DEMO_SLAGTER=17]="DEMO_SLAGTER",l[l.STECHERS=18]="STECHERS",l[l.GRENAA_SLAGTEHUS=19]="GRENAA_SLAGTEHUS",l[l.ASAA_MOLLEHUS=20]="ASAA_MOLLEHUS",l[l.STYLING_ONE=21]="STYLING_ONE",l[l.CLPARTYSERVICE=22]="CLPARTYSERVICE",l[l.APETIT=23]="APETIT",l[l.GASTROLUX=24]="GASTROLUX",l[l.HUMOER_MOEBLER=25]="HUMOER_MOEBLER",l}(o||{});const e=["catersys","meny","city-catering","new-year","gourmiddag","gastro-by-boegh","victors-madhus","la-brava","kokkefroeen","herligheder","krohn","fandanko","spar","noerregades-koekken","min-kobmand","demo-shop","saakin","demo-slagter","stechers","grenaa-slagtehus","asaa-mollehus","styling-one","clpartyservice","apetit","gastrolux","humoer-moebler"];var g=function(l){return l.HERLIGHEDER="herligheder.dk",l.FANDANKO="fandanko.dk",l}(g||{}),x=function(l){return l[l.Strip=0]="Strip",l[l.Infobox=1]="Infobox",l[l.IconLine=2]="IconLine",l}(x||{})},3212:(Je,Rt,c)=>{"use strict";c.d(Rt,{W:()=>o});var o=function(e){return e[e.Gift=0]="Gift",e[e.Punch=1]="Punch",e}(o||{})},8086:(Je,Rt,c)=>{"use strict";c.d(Rt,{H:()=>o});const o="order"},6093:(Je,Rt,c)=>{"use strict";c.d(Rt,{az:()=>ut.az,$:()=>o,WD:()=>f,U5:()=>t,pc:()=>lt,py:()=>i,Xb:()=>y.Xb,Y4:()=>ut.Y4,EN:()=>ut.EN,V7:()=>ut.V7,v4:()=>tt,W5:()=>O,_H:()=>y._H,Pc:()=>y.Pc,FW:()=>U,yN:()=>ct,d0:()=>x,e9:()=>l,VK:()=>A,$f:()=>xt,qM:()=>g});var o=function(_){return _[_.Left=0]="Left",_[_.Right=1]="Right",_[_.Full=2]="Full",_[_.Hero=3]="Hero",_}(o||{});const g=["top left","top middel","top right","bottom left","bottom middel","bottom right"],x=_=>void 0!==_?.productId,l=_=>{if(!_)return!1;for(const[j,q]of Object.entries(_))if(x(q))return!0;return!1};var i=function(_){return _[_.Unknown=0]="Unknown",_[_.Shipping=1]="Shipping",_[_.Product=2]="Product",_[_.Price=3]="Price",_}(i||{});class f{static find(j,q){return j||(j=[]),this.searchAll(j,q)}static searchAll(j,q){let vt,ht=[];for(const gt of j)vt=this.searchCategory(q,gt,[]),vt&&(ht=ht.concat(vt));if(1===ht.length)return ht[0];if(ht.length>1){let gt=ht[0];for(const zt of ht)zt.depth<gt.depth&&(gt=zt);return gt}}static searchCategory(j,q,ht){if(!q)return;if(j(q))return ht.push(q),ht;let vt;for(const gt of q.subCategories)if(vt=this.searchCategory(j,gt,ht),vt)return vt}}var t=function(_){return _[_.Multiple=0]="Multiple",_[_.Single=1]="Single",_}(t||{}),y=c(608),O=function(_){return _.Happy="Happy",_.Ok="Ok",_.Sad="Sad",_}(O||{}),U=function(_){return _[_.Customer=0]="Customer",_[_.Assistant=1]="Assistant",_}(U||{}),lt=function(_){return _[_.Default=0]="Default",_[_.Cash=1]="Cash",_[_.Invoice=2]="Invoice",_}(lt||{}),ut=c(8492),Ht=c(6676);const A=_=>{const ht=/^(\d+\.|)([0-1]\d|2[0-3]):([0-5]\d):([0-5]\d)$/g.exec(_).map((H,J)=>+H||0),[,vt,gt,zt,Ct]=ht;return{days:vt,hours:gt,minutes:zt,seconds:Ct}},xt=_=>[Ht(_.from),Ht(_.to)];var tt=function(_){return _[_.fixedPrice=0]="fixedPrice",_[_.priceGroups=1]="priceGroups",_}(tt||{}),ct=function(_){return _[_.None=0]="None",_[_.InvalidAddress=1]="InvalidAddress",_[_.Expired=2]="Expired",_}(ct||{})},8492:(Je,Rt,c)=>{"use strict";c.d(Rt,{EN:()=>R,V7:()=>i,Y4:()=>f,az:()=>l,cr:()=>g});const g="categoryId",l=["Glutenholdige","Krebsdyr","\xc6g","Fisk","Jordn\xf8dder","Soja","M\xe6lk","N\xf8dder","Selleri","Sennep","Sesamfr\xf8","Svovldioxid","Lupin","Bl\xf8ddyr"];var i=function(t){return t[t.Catering=0]="Catering",t[t.Online=1]="Online",t}(i||{}),R=function(t){return t[t.One=0]="One",t[t.Two=1]="Two",t[t.Five=2]="Five",t}(R||{});const f=["one-image","two-images","five-images"]},7985:(Je,Rt,c)=>{"use strict";c.d(Rt,{V5:()=>ut,Ym:()=>G,qq:()=>O});var o=c(6814),e=c(5879),g=c(5515),x=c(2181),l=c(8180),i=c(7299),R=c(6093),f=c(7954),t=c(617),y=c(6593);const O={basket:"basket",bigCross:"big_cross",contact:"contact",lock:"lock",lock_open:"lock_open",menu:"menu",news:"news",shipping:"shipping",support:"support",filter:"filter",trash:"trash"},G={arrow:"arrow",delete:"delete",dropdown:"dropdown",error:"error",info:"info",minus:"minus",plus:"plus",search:"search",tick:"tick",left_expand_arrow:"left_expand_arrow",arrow_forward:"arrow_forward",left_arrow:"left_arrow",warning:"warning",do_not_disturb_on:"do_not_disturb_on",verified_user:"verified_user",ad_group:"ad_group",calendar:"calendar",schedule:"schedule",location:"location",home:"home",edit:"edit",facebook:"facebook",instagram:"instagram"},U={basket:"basket",contact:"contact",news:"news",shipping:"shipping",support:"support",location:"location",shop:"shop",menu:"menu",delivery:"delivery",calendar:"calendar",watch:"watch",edit:"edit",cancel:"cancel"},lt={dankort:"dankort",mastercard:"mastercard",mobilepay:"mobilepay",visa:"visa",ean:"ean",contact:"contact",smiley:"smileyordning"};let ut=(()=>{class Ht{constructor(xt,tt,ct,_,j){this.contentService=xt,this.matIconRegistry=tt,this.sanitizer=ct,this.platformId=_,this.request=j,(0,o.PM)(this.platformId)&&(this.port=process?.env.PORT||i.environment.defaultPort);for(const q of Object.values(O).concat(Object.values(G)))this.registerIcon(q,`assets/icons/${q}.svg`);this.contentService.loaded.pipe((0,x.h)(q=>q),(0,l.q)(1)).subscribe(()=>{this.registerStoreIcons()})}registerStoreIcons(){const xt=this.contentService.getMerchant();if(xt?.type===R.Pc.MENY||xt?.type===R.Pc.SPAR||xt?.type===R.Pc.MIN_KOBMAND)for(const tt of Object.values(U))this.registerIcon(tt,`assets/icons/meny/${tt}.svg`);if(xt?.type===R.Pc.FANDANKO)for(const tt of Object.values(lt))this.registerIcon(tt,`assets/icons/fandanko/${tt}.svg`)}registerIcon(xt,tt){const ct=(0,o.PM)(this.platformId)?`${this.request.protocol}://localhost:${this.port}/`:"";this.matIconRegistry.addSvgIcon(xt,this.sanitizer.bypassSecurityTrustResourceUrl(ct+tt))}static#t=this.\u0275fac=function(tt){return new(tt||Ht)(e.LFG(f._s),e.LFG(t.jv),e.LFG(y.H7),e.LFG(e.Lbi),e.LFG(g.Z,8))};static#e=this.\u0275mod=e.oAB({type:Ht});static#n=this.\u0275inj=e.cJS({})}return Ht})()},4283:(Je,Rt,c)=>{"use strict";c.d(Rt,{m:()=>re});var o=c(1088),e=c(8484),g=c(6814),x=c(9862),l=c(5879),i=c(6223),R=c(3680),f=c(6676);const y=f||c.t(f,2),O=new l.OlP("MAT_MOMENT_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:function G(){return{useUtc:!1}}});function U(ue,Ft){const be=Array(ue);for(let qt=0;qt<ue;qt++)be[qt]=Ft(qt);return be}let lt=(()=>{class ue extends R._A{constructor(be,qt){super(),this._options=qt,this.setLocale(be||y.locale())}setLocale(be){super.setLocale(be);let qt=y.localeData(be);this._localeData={firstDayOfWeek:qt.firstDayOfWeek(),longMonths:qt.months(),shortMonths:qt.monthsShort(),dates:U(31,Te=>this.createDate(2017,0,Te+1).format("D")),longDaysOfWeek:qt.weekdays(),shortDaysOfWeek:qt.weekdaysShort(),narrowDaysOfWeek:qt.weekdaysMin()}}getYear(be){return this.clone(be).year()}getMonth(be){return this.clone(be).month()}getDate(be){return this.clone(be).date()}getDayOfWeek(be){return this.clone(be).day()}getMonthNames(be){return"long"==be?this._localeData.longMonths:this._localeData.shortMonths}getDateNames(){return this._localeData.dates}getDayOfWeekNames(be){return"long"==be?this._localeData.longDaysOfWeek:"short"==be?this._localeData.shortDaysOfWeek:this._localeData.narrowDaysOfWeek}getYearName(be){return this.clone(be).format("YYYY")}getFirstDayOfWeek(){return this._localeData.firstDayOfWeek}getNumDaysInMonth(be){return this.clone(be).daysInMonth()}clone(be){return be.clone().locale(this.locale)}createDate(be,qt,Te){const Me=this._createMoment({year:be,month:qt,date:Te}).locale(this.locale);return Me.isValid(),Me}today(){return this._createMoment().locale(this.locale)}parse(be,qt){return be&&"string"==typeof be?this._createMoment(be,qt,this.locale):be?this._createMoment(be).locale(this.locale):null}format(be,qt){return be=this.clone(be),this.isValid(be),be.format(qt)}addCalendarYears(be,qt){return this.clone(be).add({years:qt})}addCalendarMonths(be,qt){return this.clone(be).add({months:qt})}addCalendarDays(be,qt){return this.clone(be).add({days:qt})}toIso8601(be){return this.clone(be).format()}deserialize(be){let qt;if(be instanceof Date)qt=this._createMoment(be).locale(this.locale);else if(this.isDateInstance(be))return this.clone(be);if("string"==typeof be){if(!be)return null;qt=this._createMoment(be,y.ISO_8601).locale(this.locale)}return qt&&this.isValid(qt)?this._createMoment(qt).locale(this.locale):super.deserialize(be)}isDateInstance(be){return y.isMoment(be)}isValid(be){return this.clone(be).isValid()}invalid(){return y.invalid()}_createMoment(be,qt,Te){const{strict:Me,useUtc:_n}=this._options||{};return _n?y.utc(be,qt,Te,Me):y(be,qt,Te,Me)}static#t=this.\u0275fac=function(qt){return new(qt||ue)(l.LFG(R.Ad,8),l.LFG(O,8))};static#e=this.\u0275prov=l.Yz7({token:ue,factory:ue.\u0275fac})}return ue})();const ut={parse:{dateInput:"l"},display:{dateInput:"l",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}};var xt=c(9014),tt=c(8005),ct=c(8034),_=c(3305),j=c(617),q=c(4505),ht=c(4021),vt=c(7592),gt=c(4187),zt=c(2400),Ct=c(6718),H=c(1438),J=c(1036),z=c(1830),F=c(2214),rt=c(2651),V=c(2939),Pt=c(3566),$t=c(2787),Lt=c(4807),Jt=c(8862),Tt=c(459),$=c(8750),pt=c(6283),Dt=c(4953),St=c(7472),mt=c(7299),yt=c(7954),ee=c(1904),B=c(4222),At=c(2096);let st=(()=>{class ue{constructor(be){this.transferState=be}intercept(be,qt){if("GET"!==be.method)return qt.handle(be);const Te=this.transferState.get((0,l.Cb6)(be.urlWithParams),null);if(Te){const Me=new x.Zn({body:Te,status:200});return(0,At.of)(Me)}return qt.handle(be)}static#t=this.\u0275fac=function(qt){return new(qt||ue)(l.LFG(l.kie))};static#e=this.\u0275prov=l.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})();var ie=c(7688),Ae=c(1829),en=c(9671);function In(ue,Ft,be,qt){const[Te,...Me]=be;return()=>new Promise((_n,ce)=>{Ft.load().then((0,en.Z)(function*(){yield Te()})).then((0,en.Z)(function*(){yield Promise.all(Me.map(ye=>ye()))})).then(()=>{_n()}).catch(ye=>{ce(ye)}),ue.load()})}var Ve=c(8906),jt=c(7350),ft=c(6543),Gt=c(3823),Ce=c(7985);const ve=void 0,De=["da",[["a","p"],["AM","PM"],ve],[["AM","PM"],ve,ve],[["S","M","T","O","T","F","L"],["s\xf8n.","man.","tir.","ons.","tor.","fre.","l\xf8r."],["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"],["s\xf8","ma","ti","on","to","fr","l\xf8"]],[["S","M","T","O","T","F","L"],["s\xf8n","man","tir","ons","tor","fre","l\xf8r"],["s\xf8ndag","mandag","tirsdag","onsdag","torsdag","fredag","l\xf8rdag"],["s\xf8","ma","ti","on","to","fr","l\xf8"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]],ve,[["fKr","eKr"],["f.Kr.","e.Kr."],ve],1,[6,0],["dd.MM.y","d. MMM y","d. MMMM y","EEEE 'den' d. MMMM y"],["HH.mm","HH.mm.ss","HH.mm.ss z","HH.mm.ss zzzz"],["{1} {0}",ve,"{1} 'kl'. {0}",ve],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN","."],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"DKK","kr.","dansk krone",{AUD:["AU$","$"],BYN:[ve,"Br."],DKK:["kr."],ISK:[ve,"kr."],JPY:["JP\xa5","\xa5"],NOK:[ve,"kr."],PHP:[ve,"\u20b1"],RON:[ve,"L"],SEK:[ve,"kr."],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function me(ue){const Ft=ue,be=Math.floor(Math.abs(ue)),qt=parseInt(ue.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;return 1===Ft||0!==qt&&(0===be||1===be)?1:5}];c(605);var gn=c(6261),Xe=c(2357);(0,g.qS)(De,"da");const rn=new l.OlP("configDeps");let re=(()=>{class ue{static#t=this.\u0275fac=function(qt){return new(qt||ue)};static#e=this.\u0275mod=l.oAB({type:ue});static#n=this.\u0275inj=l.cJS({providers:[Tt.N,{provide:l.ip1,useFactory:In,multi:!0,deps:[yt.VH,yt._s,rn]},{provide:rn,useFactory:(be,qt,Te,Me,_n,ce)=>[(0,B.Ed)(be),(0,jt.Q5)(qt),(0,yt.tf)(Te),(0,Ae.V)(Me),(0,ie.W)(_n),(0,St.o)(ce)],deps:[B.e8,jt.Nk,yt.HE,Ae.z,ie.Z,St.K]},{provide:ee.p$,useFactory:ee.sI,deps:[g.K0,l.FYo,yt._s,Ve.C,yt.Ns,jt.VG,jt.Nk,B.e8,ft.ki,l.ip1]},{provide:gn.NN,useFactory:gn._v,deps:[g.K0,l.FYo,yt._s,l.ip1]},{provide:Xe.MA,useFactory:Xe.J1,deps:[g.K0,l.FYo,yt._s,l.ip1]},{provide:x.TP,useClass:st,multi:!0},{provide:x.TP,useClass:B.aQ,multi:!0},{provide:x.TP,useClass:B.sk,multi:!0},{provide:l.soG,useValue:mt.environment.i18n.language},{provide:R.Ad,useValue:mt.environment.i18n.language},{provide:R.sG,useValue:ut},{provide:R._A,useClass:lt,deps:[R.Ad]},{provide:$.x0,useClass:yt.Yd},g.H9,ft.B5,ft.ki,ft.Iw,ft.V2,Gt.u,ft.lb],imports:[g.ez,$t.Bz,i.u5,i.UX,o.xu,Ce.V5,e.eL,pt.Rq,Lt.A0,Dt.kb,Jt.f,q.yu,ht.Zh,j.Ps,z.Wd,gt.wp,zt.x4,ct.FA,vt.yj,rt.SJ,xt.g,tt._r,F.U5,Pt.JX,V.ZX,Ct.jT,H.UK,J.Xo,_.To,g.ez,i.u5,i.UX,o.xu,Ce.V5,e.eL,pt.Rq,Lt.A0,Dt.kb,Jt.f,q.yu,ht.Zh,j.Ps,z.Wd,gt.wp,zt.x4,ct.FA,vt.yj,rt.SJ,xt.g,tt._r,F.U5,Pt.JX,V.ZX,Ct.jT,H.UK,J.Xo,_.To]})}return ue})()},4726:(Je,Rt,c)=>{"use strict";c.d(Rt,{z:()=>x});var o=c(7592),e=c(5879),g=c(8514);let x=(()=>{class l{constructor(R,f){this.dialogRef=R,this.data=f,this.title=f.title,this.description=f.description,this.acceptButton=f.acceptButton,this.rejectButton=f.rejectButton}reject(){this.dialogRef.close()}accept(){this.dialogRef.close(!0)}static#t=this.\u0275fac=function(f){return new(f||l)(e.Y36(o.hV),e.Y36(o.eJ))};static#e=this.\u0275cmp=e.Xpm({type:l,selectors:[["app-confirmation-dialog"]],decls:9,vars:4,consts:[["mat-dialog-title",""],[1,"dialog-options"],["type","button","color","accent",1,"close-button",3,"click"],["cdkFocusInitial","",1,"submit-button",3,"click"]],template:function(f,t){1&f&&(e.TgZ(0,"h1",0),e._uU(1),e.qZA(),e.TgZ(2,"p"),e._uU(3),e.qZA(),e.TgZ(4,"div",1)(5,"app-text-button",2),e.NdJ("click",function(){return t.reject()}),e._uU(6),e.qZA(),e.TgZ(7,"app-text-button",3),e.NdJ("click",function(){return t.accept()}),e._uU(8),e.qZA()()),2&f&&(e.xp6(1),e.Oqu(t.title),e.xp6(2),e.Oqu(t.description),e.xp6(3),e.hij(" ",t.rejectButton," "),e.xp6(2),e.hij(" ",t.acceptButton," "))},dependencies:[o.YS,g.h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:400px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%}}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:900;margin:12px 0;text-align:center}[_nghost-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9em;color:#878787;margin:4px 0 16px;text-align:center}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex-direction:row}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex-direction:column;align-items:center}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:0;margin-bottom:16px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:1 1 auto;height:56px;width:100%;font-weight:600}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:44px}}"]})}return l})()},1119:(Je,Rt,c)=>{"use strict";c.d(Rt,{kb:()=>Cr,GU:()=>Xr,S3:()=>Zi,Hl:()=>q,lS:()=>ft,e4:()=>kt,GT:()=>po,f:()=>Hr,Md:()=>Yn,e1:()=>et,_Z:()=>js,_0:()=>pr});var o=c(1545),e=c(2787),g=c(7394),x=c(2181),l=c(836),i=c(6093),R=c(2802),f=c(7299),t=c(5879),y=c(7954),O=c(1829),G=c(7688),U=c(4222),lt=c(6574);function ut(p,K){if(1&p&&t._uU(0),2&p){const d=t.oxw();t.Oqu(d.shippingStepLabel)}}function Ht(p,K){if(1&p&&t._UZ(0,"app-delivery-step",8),2&p){const d=t.oxw(),v=t.MAs(1);t.Q6J("form",d.form)("stepper",v)}}function A(p,K){if(1&p&&t._UZ(0,"app-meny-delivery-step",8),2&p){const d=t.oxw(),v=t.MAs(1);t.Q6J("form",d.form)("stepper",v)}}function xt(p,K){if(1&p&&t._uU(0),2&p){const d=t.oxw();t.Oqu(d.approvalStepLabel)}}function tt(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-complete-step",9),t.NdJ("redirect",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.redirectToPayment())}),t.qZA()}if(2&p){const d=t.oxw(),v=t.MAs(1);t.Q6J("form",d.form)("stepper",v)}}function ct(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-meny-complete-step",9),t.NdJ("redirect",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.redirectToPayment())}),t.qZA()}if(2&p){const d=t.oxw(),v=t.MAs(1);t.Q6J("form",d.form)("stepper",v)}}function _(p,K){if(1&p&&t._uU(0),2&p){const d=t.oxw();t.Oqu(d.paymentStepLabel)}}function j(p,K){if(1&p&&(t.TgZ(0,"div",10)(1,"button",11),t._UZ(2,"mat-icon",12),t.TgZ(3,"span"),t._uU(4,"Tilbage til kurven"),t.qZA()()()),2&p){const d=t.oxw();t.xp6(1),t.Q6J("routerLink",d.basketOverviewUrl)}}let q=(()=>{class p extends R.I{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei){super(d,"basketShipping",{meta:!0,noIndex:!0}),this.router=v,this.customerDetailService=S,this.checkoutService=pe,this.authService=Ue,this.shippingQuery=hn,this.woltService=yn,this.themeService=An,this.elRef=Nn,this.basketService=ui,this.mParticle=ei,this.subscription=new g.w0,this.basketOverviewUrl=`/${f.environment.urls.basket}`,this.shippingStepLabel=this.content.get("shippingStepLabelText"),this.approvalStepLabel=this.content.get("approvalStepLabelText"),this.paymentStepLabel=this.content.get("paymentStepLabelText"),this.isDagrofa=this.contentService.isDagrofa}ngOnInit(){this.form=this.customerDetailService.getForm(),this.isWolt=this.shippingQuery.selectIsWolt$,this.woltResponse=this.woltService.woltDelivery,this.subscription.add(this.router.events.pipe((0,x.h)(d=>d instanceof e.OD)).subscribe(()=>{this.checkoutService.isCheckingOut=!1})),this.subscription.add(this.authService.member.pipe((0,l.T)(1)).subscribe(()=>{this.router.navigate([this.basketOverviewUrl])}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngAfterViewInit(){this.stepper._getIndicatorType=()=>"number",this.subscription.add(this.stepper.selectionChange.subscribe(d=>{1===d.selectedIndex&&this.basketService.validateDiscountCode()})),this.mParticle&&(this.mParticle.viewCheckoutDelivery(),this.subscription.add(this.stepper.selectionChange.subscribe(d=>{0===d.selectedIndex&&this.mParticle.viewCheckoutDelivery(),1===d.selectedIndex&&this.mParticle.viewCheckoutApproval(),0===d.previouslySelectedIndex&&this.mParticle.sticthLogin(this.form.controls.payment.controls.email.value)})))}ngOnDestroy(){this.subscription.unsubscribe()}unloadNotification(d){this.form.dirty&&!this.checkoutService.submitting&&(d.returnValue=this.contentService.getSharedContent().get("leaveWithoutSavingChangesText")||"You have unfinished changes"),this.checkoutService.doneSubmitting()}get ErrorType(){return i.yN}redirectToPayment(){this.mParticle?.viewCheckoutPayment(),this.checkoutService.checkout()}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(e.F0),t.Y36(O.z),t.Y36(G.Z),t.Y36(U.e8),t.Y36(y.VG),t.Y36(y.Nc),t.Y36(lt.f),t.Y36(t.SBq),t.Y36(y.vD),t.Y36(y.p$,8))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-checkout"]],viewQuery:function(v,S){if(1&v&&t.Gf(o.Vq,5),2&v){let pe;t.iGM(pe=t.CRH())&&(S.stepper=pe.first)}},hostBindings:function(v,S){1&v&&t.NdJ("beforeunload",function(Ue){return S.unloadNotification(Ue)},!1,t.Jf7)},features:[t.qOj],decls:13,vars:12,consts:[["labelPosition","bottom",3,"linear"],["stepper",""],[3,"stepControl"],["matStepLabel",""],[3,"form","stepper",4,"ngIf"],[3,"completed"],[3,"form","stepper","redirect",4,"ngIf"],["class","button-wrapper",4,"ngIf"],[3,"form","stepper"],[3,"form","stepper","redirect"],[1,"button-wrapper"],[1,"back","unstyled-button",3,"routerLink"],["svgIcon","left_arrow"]],template:function(v,S){if(1&v&&(t.TgZ(0,"mat-stepper",0,1)(2,"mat-step",2),t.YNc(3,ut,1,1,"ng-template",3),t.YNc(4,Ht,1,2,"app-delivery-step",4),t.YNc(5,A,1,2,"app-meny-delivery-step",4),t.qZA(),t.TgZ(6,"mat-step",5),t.YNc(7,xt,1,1,"ng-template",3),t.YNc(8,tt,1,2,"app-complete-step",6),t.YNc(9,ct,1,2,"app-meny-complete-step",6),t.qZA(),t.TgZ(10,"mat-step"),t.YNc(11,_,1,1,"ng-template",3),t.qZA()(),t.YNc(12,j,5,1,"div",7)),2&v){const pe=t.MAs(1);t.ekj("second",pe.selectedIndex>=1)("third",pe.selectedIndex>=2),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",S.form),t.xp6(2),t.Q6J("ngIf",0===pe.selectedIndex&&!S.isDagrofa),t.xp6(1),t.Q6J("ngIf",0===pe.selectedIndex&&S.isDagrofa),t.xp6(1),t.Q6J("completed",!1),t.xp6(2),t.Q6J("ngIf",!S.isDagrofa),t.xp6(1),t.Q6J("ngIf",S.isDagrofa),t.xp6(3),t.Q6J("ngIf",S.isDagrofa)}},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;background-color:var(--background-color);height:100%}.min-kobmand-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container, .spar-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container, .meny-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container{width:80%;align-self:flex-end}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container, .spar-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container, .meny-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container{width:90%}}.min-kobmand-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header, .spar-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header, .meny-theme[_nghost-%COMP%]     .mat-horizontal-stepper-header-container .mat-horizontal-stepper-header{padding:24px 12px}.min-kobmand-theme[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]{max-width:1296px}.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{max-width:1296px;width:70vw}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:85vw}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]{width:95vw}}.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{position:absolute;top:32px;display:flex;gap:8px;padding:0;height:32px;align-items:center;justify-content:center;font-size:12px;line-height:12px;font-weight:700;text-transform:uppercase}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;border-radius:32px;width:32px;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}.min-kobmand-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .button-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:12px;width:12px}.apetit-theme[_nghost-%COMP%]     h2, .clpartyservice-theme[_nghost-%COMP%]     h2{color:#fff}.apetit-theme[_nghost-%COMP%]     .mat-step-label-active div, .clpartyservice-theme[_nghost-%COMP%]     .mat-step-label-active div{color:#fff}[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]{margin-top:8px;background-color:inherit}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]{width:70vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]{width:85vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]{width:95vw}}[_nghost-%COMP%]   mat-stepper.second[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:first-child .mat-step-icon{background-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.second[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:first-child:after{border-top-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.second[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:nth-child(2){border-top-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.second[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:nth-child(3):before{border-top-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.third[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:nth-child(3) .mat-step-icon{background-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.third[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:nth-child(3):after{border-top-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.third[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:nth-child(4){border-top-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper.third[_ngcontent-%COMP%]     .mat-horizontal-stepper-header-container>:nth-child(5):before{border-top-color:var(--primary-color)}[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]     .mat-stepper-horizontal-line{border-top-width:2px!important}[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]     mat-step-header{border-radius:36px;padding:20px}[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]     mat-step-header:before, [_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]     mat-step-header:after{width:calc(50% - 16px)!important;border-top-width:2px!important}[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]     mat-step-header .mat-step-icon{width:32px;height:32px}[_nghost-%COMP%]   mat-stepper[_ngcontent-%COMP%]     mat-step-header:last-child{pointer-events:none}"]})}return p})();var ht=c(9671),vt=c(2572),gt=c(708),zt=c(7398),Ct=c(7921),H=c(8180),J=c(6939),z=c(9259),F=c(1952);let rt=(()=>{class p extends R.I{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui){super(d,"basketApproval"),this.shippingService=v,this.basketQuery=S,this.basketService=pe,this.dialogService=Ue,this.authService=hn,this.productService=yn,this.woltService=An,this.checkoutService=Nn,this.shippingQuery=ui,this.locale=f.environment.i18n.language,this.currency=f.environment.i18n.currency,this.placeholder=J.b,this.redirect=new t.vpe,this.shippingTitle=this.content.get("shippingTitleText"),this.shippingAddressLabel=this.content.get("shippingAddressLabelText"),this.billingAddressLabel=this.content.get("billingAddressLabelText"),this.orderTitle=this.content.get("orderTitleText");const ei=this.contentService.getSharedContent(!0);this.totalPriceLabel=ei.get("totalPriceLabelText"),this.goToPaymentButton=this.content.get("goToPaymentButtonText"),this.confirmPurchaseButton=this.content.get("confirmPurchaseButtonText"),this.paymentLabels={default:this.content.get("paymentDefault")||"Kortbetaling/MobilePay",cash:this.content.get("paymentCash")||"Kontant",invoice:this.content.get("paymentInvoice")||"Faktura"},this.selectPaymentLabel=this.content.get("selectPaymentLabel")||"V\xe6lg betalingsform:",this.confirmationData={title:this.content.get("confirmationTitleText"),description:this.content.get("confirmationDescriptionText"),acceptButton:this.content.get("acceptButtonText"),rejectButton:this.content.get("rejectButtonText")},this.subscription=new g.w0}ngOnInit(){this.customer=this.authService.member.pipe((0,zt.U)(v=>this.authService.getCustomerDetails(v)));const d=this.contentService.getMerchant();this.allowCardPayment=d.allowCardPayments,this.allowCashPayment=d.allowCashPayments,this.allowInvoice=this.authService.member.pipe((0,zt.U)(v=>v?d.enableMemberInvoice:d.enableNonMemberInvoice)),d.cardPaymentText&&(this.paymentLabels.default=d.cardPaymentText),d.cashPaymentText&&(this.paymentLabels.cash=d.cashPaymentText),d.invoicePaymentText&&(this.paymentLabels.invoice=d.invoicePaymentText),this.paymentTypes=(0,vt.a)([this.customer,this.allowInvoice,this.form.controls.isBusiness.valueChanges.pipe((0,Ct.O)(this.form.controls.isBusiness.value))]).pipe((0,zt.U)(([v,S,pe])=>{if(this.paymentDisabled=!1,this.form.value.payment.EAN)return void this.selectPayment(void 0);if(!v){this.selectPayment(this.allowCardPayment?i.pc.Default:this.allowCashPayment?i.pc.Cash:S&&pe?i.pc.Invoice:void 0);const yn={default:this.allowCardPayment,cash:this.allowCashPayment,invoice:S&&pe};return this.shippingQuery.isWolt&&(yn.cash=!1),yn}if(v.paymentTypes.length<1)return void(this.paymentDisabled=!0);if(v.paymentTypes.length<2)return void this.selectPayment(v.paymentTypes[0]);const Ue=[!1,!1,!1];for(const yn of v.paymentTypes)Ue[yn]=!0;const hn={default:this.allowCardPayment&&Ue[0],cash:this.allowCashPayment&&Ue[1],invoice:S&&Ue[2]};return this.shippingQuery.isWolt&&(hn.cash=!1),hn})),this.totalPrice$=this.basketQuery.selectTotal$,this.shipping=this.shippingService.getShipping(),this.woltResponse=this.woltService.woltDelivery,this.productLines$=this.basketQuery.selectProductLines$,this.productLinesPrice$=this.basketQuery.selectLinesTotal$,this.packagingPrice$=this.basketQuery.selectPackagingPrice$,this.discount$=this.basketQuery.selectDiscount$,this.giftCardDiscount$=this.basketQuery.selectGiftCardDiscount$,this.giftCardRemainingValue$=this.basketQuery.selectRemainingGiftCardValue$,this.discountCodeAlreadyUsed=this.basketQuery.selectDiscountCodeAlreadyUsed$,this.paymentDetailsForm=this.form.controls.payment,this.shippingDetailsForm=this.form.value.alternativeShipping?this.form.controls.shipping:this.form.controls.payment,this.subscription.add(this.form.controls.alternativeShipping.valueChanges.subscribe(v=>{this.shippingDetailsForm=v?this.form.controls.shipping:this.form.controls.payment})),this.subscription.add(this.shipping.pipe().subscribe(v=>{const S=this.shippingService.getShippingOptions();this.shippingName=S.find(pe=>pe.id===v.shippingType)?.name}))}ngOnDestroy(){this.subscription.unsubscribe()}getProduct(d){return this.basketService.getProductObservable(d)}createProductUrl(d){return this.productService.createProductUrl(d)}openShippingDialog(){this.dialogService.openShippingDialog()}calculateTax(...d){let v=0;for(const S of d)S&&(v+=.2*S);return v}selectPayment(d){this.checkoutService.paymentType=d}redirectToPayment(){var d=this;return(0,ht.Z)(function*(){t:if(d.shippingQuery.isWolt){const S=yield d.woltService.newResponse();if(!S)break t;if(!(yield(0,gt.n)(d.dialogService.openWoltDialog(S).afterClosed().pipe((0,H.q)(1)))))return}d.form.value.payment.EAN||d.checkoutService.paymentType!==i.pc.Default?d.dialogService.openConfirmationDialog(d.confirmationData).afterClosed().pipe((0,H.q)(1)).subscribe(S=>{S&&d.redirect.emit()}):d.redirect.emit()})()}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(z.N),t.Y36(y.Ns),t.Y36(y.vD),t.Y36(F.x),t.Y36(U.e8),t.Y36(y.M5),t.Y36(y.Nc),t.Y36(G.Z),t.Y36(y.VG))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-complete-step-utility"]],inputs:{form:"form",stepper:"stepper"},outputs:{redirect:"redirect"},features:[t.qOj],decls:0,vars:0,template:function(v,S){},encapsulation:2})}return p})();var V=c(7350);function Pt(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Oqu(d.companyName)}}function $t(p,K){if(1&p&&(t.TgZ(0,"div")(1,"h3"),t._uU(2),t.qZA(),t.YNc(3,Pt,2,1,"span",12),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA(),t.TgZ(10,"span"),t._uU(11),t.qZA()()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.shippingAddressLabel),t.xp6(1),t.Q6J("ngIf",d.companyName),t.xp6(2),t.AsE("",d.firstName," ",d.lastName,""),t.xp6(2),t.Oqu(d.address),t.xp6(2),t.AsE("",d.zip," ",d.city,""),t.xp6(2),t.Oqu(d.telephone)}}function Lt(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Oqu(d.companyName)}}function Jt(p,K){if(1&p&&(t.TgZ(0,"div")(1,"h3"),t._uU(2),t.qZA(),t.YNc(3,Lt,2,1,"span",12),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA(),t.TgZ(10,"span"),t._uU(11),t.qZA(),t.TgZ(12,"span"),t._uU(13),t.qZA()()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.billingAddressLabel),t.xp6(1),t.Q6J("ngIf",d.companyName),t.xp6(2),t.AsE("",d.firstName," ",d.lastName,""),t.xp6(2),t.Oqu(d.address),t.xp6(2),t.AsE("",d.zip," ",d.city,""),t.xp6(2),t.Oqu(d.telephone),t.xp6(2),t.Oqu(d.email)}}function Tt(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().$implicit;t.xp6(1),t.Oqu(d.summary)}}function $(p,K){if(1&p&&(t.TgZ(0,"tr",36)(1,"td",19)(2,"div",21),t._UZ(3,"img",22),t.ALo(4,"source"),t.qZA(),t.TgZ(5,"div",23)(6,"b"),t._uU(7),t.qZA(),t.YNc(8,Tt,2,1,"span",12),t.qZA()(),t.TgZ(9,"td",37)(10,"div",38)(11,"div"),t._uU(12),t.qZA()()()()),2&p){const d=K.$implicit,v=t.oxw(3).ngIf,S=t.oxw().$implicit;t.xp6(3),t.Q6J("src",t.lcZ(4,5,d),t.LSH)("alt",d.productDisplayName),t.xp6(4),t.Oqu(d.productDisplayName),t.xp6(1),t.Q6J("ngIf",v.summary),t.xp6(4),t.Oqu(d.quantity*S.quantity)}}function pt(p,K){if(1&p&&(t.TgZ(0,"div",34),t.YNc(1,$,13,7,"tr",35),t.qZA()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngForOf",d)}}function Dt(p,K){if(1&p&&(t.ynx(0),t.YNc(1,pt,2,1,"div",33),t.BQk()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngIf",null==d?null:d.length)}}function St(p,K){if(1&p&&(t.TgZ(0,"div")(1,"tr",18)(2,"td",19)(3,"a",20)(4,"div",21),t._UZ(5,"img",22),t.ALo(6,"source"),t.qZA(),t.TgZ(7,"div",23)(8,"b"),t._uU(9),t.qZA(),t.TgZ(10,"span"),t._uU(11),t.qZA()()()(),t.TgZ(12,"td",24)(13,"a",20)(14,"div",21),t._UZ(15,"img",22),t.ALo(16,"source"),t.qZA()()(),t.TgZ(17,"td",25)(18,"div",23)(19,"b"),t._uU(20),t.qZA()()(),t.TgZ(21,"td",26)(22,"label",27),t._uU(23),t.qZA(),t.TgZ(24,"span",28),t._uU(25),t.ALo(26,"number"),t.ALo(27,"sum"),t.ALo(28,"displayCurrency"),t.qZA()(),t.TgZ(29,"td",29)(30,"label",30),t._uU(31),t.qZA(),t.TgZ(32,"span",31),t._uU(33),t.ALo(34,"number"),t.ALo(35,"sum"),t.ALo(36,"displayCurrency"),t.qZA()(),t.TgZ(37,"td",32)(38,"div"),t._uU(39),t.qZA()()(),t.YNc(40,Dt,2,1,"ng-container",1),t.ALo(41,"modules"),t.qZA()),2&p){const d=K.ngIf,v=t.oxw().$implicit,S=t.oxw(2);t.xp6(3),t.Q6J("routerLink",S.createProductUrl(d)),t.xp6(2),t.Q6J("src",t.lcZ(6,17,d),t.LSH)("alt",d.productDisplayName),t.xp6(4),t.Oqu(d.productDisplayName),t.xp6(2),t.Oqu(d.summary),t.xp6(2),t.Q6J("routerLink",S.createProductUrl(d)),t.xp6(2),t.Q6J("src",t.lcZ(16,19,d),t.LSH)("alt",d.productDisplayName),t.xp6(5),t.Oqu(d.productDisplayName),t.xp6(3),t.Oqu(S.columns.price),t.xp6(2),t.AsE(" ",t.Dn7(26,21,t.lcZ(27,25,v)/v.quantity,".2-2",S.locale)," ",t.lcZ(28,27,S.currency)," "),t.xp6(6),t.Oqu(S.columns.total),t.xp6(2),t.AsE("",t.Dn7(34,29,t.lcZ(35,33,v),".2-2",S.locale)," ",t.lcZ(36,35,S.currency),""),t.xp6(6),t.Oqu(v.quantity),t.xp6(1),t.Q6J("ngLet",t.lcZ(41,37,d))}}function mt(p,K){if(1&p&&(t.ynx(0),t.YNc(1,St,42,39,"div",12),t.ALo(2,"async"),t.BQk()),2&p){const d=K.$implicit,v=t.oxw(2);t.xp6(1),t.Q6J("ngIf",t.lcZ(2,1,v.getProduct(d)))}}function yt(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-center-section",13)(1,"header")(2,"span"),t._uU(3),t.ALo(4,"date"),t.qZA(),t.TgZ(5,"app-text-button",14),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.openShippingDialog())}),t._uU(6),t.qZA()(),t.YNc(7,mt,3,3,"ng-container",15),t.ALo(8,"async"),t.TgZ(9,"tfoot")(10,"tr")(11,"th")(12,"label",16),t._uU(13),t._UZ(14,"br"),t.TgZ(15,"span"),t._uU(16),t.qZA()()(),t.TgZ(17,"td")(18,"span",17),t._uU(19),t.ALo(20,"number"),t.ALo(21,"async"),t.ALo(22,"displayCurrency"),t.qZA()()()()()}if(2&p){const d=K.ngLet,v=t.oxw();t.xp6(3),t.lnq("",v.shippingName," ",t.xi3(4,9,d.date.toDate(),"fullDate")," ",d.time.period,""),t.xp6(3),t.Oqu(v.changeDeliveryTimeButton),t.xp6(1),t.Q6J("ngForOf",t.lcZ(8,12,v.productLines$)),t.xp6(6),t.hij(" ",v.totalPriceLabel,""),t.xp6(3),t.Oqu(v.includingVATDeclaration),t.xp6(3),t.AsE(" ",t.Dn7(20,14,t.lcZ(21,18,v.productLinesPrice$),".2-2",v.locale)," ",t.lcZ(22,20,v.currency)," ")}}function ee(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",49),t._uU(2),t.qZA(),t.TgZ(3,"span",50),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.discountPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,null==d?null:d.discount,".2-2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function B(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",51),t._uU(2),t.qZA(),t.TgZ(3,"span",52),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.giftCardDiscountPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.giftCardDiscount,".2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function At(p,K){1&p&&(t.TgZ(0,"div",53)(1,"span"),t._uU(2,"Rabatkoden er allerede brugt og vil ikke blive anvendt p\xe5 denne ordre"),t.qZA()())}function st(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",54),t._uU(2),t.qZA(),t.TgZ(3,"span",55),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.giftCardRemainingValuePriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.giftCardRemaining,".2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function ie(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"div")(2,"label",39),t._uU(3),t.qZA(),t.TgZ(4,"span",40),t._uU(5),t.ALo(6,"number"),t.ALo(7,"displayCurrency"),t.qZA()(),t.TgZ(8,"div")(9,"label",41),t._uU(10),t.qZA(),t.TgZ(11,"span",42),t._uU(12),t.ALo(13,"number"),t.ALo(14,"displayCurrency"),t.qZA()(),t.TgZ(15,"div")(16,"label",43),t._uU(17),t.qZA(),t.TgZ(18,"span",44),t._uU(19),t.ALo(20,"number"),t.ALo(21,"displayCurrency"),t.qZA()(),t.YNc(22,ee,7,9,"div",12),t.YNc(23,B,7,9,"div",12),t.TgZ(24,"div",45)(25,"label",46),t._uU(26),t._UZ(27,"br"),t.TgZ(28,"span"),t._uU(29),t.qZA()(),t.TgZ(30,"span",47),t._uU(31),t.ALo(32,"number"),t.ALo(33,"displayCurrency"),t.qZA()(),t.YNc(34,At,3,0,"div",48),t.ALo(35,"async"),t.YNc(36,st,7,9,"div",12),t.BQk()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(3),t.Oqu(v.shippingPriceLabel),t.xp6(2),t.AsE("",t.Dn7(6,17,d.shipping,".2-2",v.locale)," ",t.lcZ(7,21,v.currency),""),t.xp6(5),t.Oqu(v.packagingPriceLabel),t.xp6(2),t.AsE("",t.Dn7(13,23,(null==d?null:d.packaging)||0,".2-2",v.locale)," ",t.lcZ(14,27,v.currency),""),t.xp6(5),t.Oqu(v.VATLabel),t.xp6(2),t.AsE(" ",t.Dn7(20,29,v.calculateTax(d.total),".2-2",v.locale)," ",t.lcZ(21,33,v.currency)," "),t.xp6(3),t.Q6J("ngIf",d.discount),t.xp6(1),t.Q6J("ngIf",0!==d.giftCardDiscount),t.xp6(3),t.hij(" ",v.totalPriceLabel,""),t.xp6(3),t.Oqu(v.includingVATDeclaration),t.xp6(2),t.AsE("",t.Dn7(32,35,d.total,".2-2",v.locale)," ",t.lcZ(33,39,v.currency),""),t.xp6(3),t.Q6J("ngIf",t.lcZ(35,41,v.discountCodeAlreadyUsed)),t.xp6(2),t.Q6J("ngIf",0!==d.giftCardDiscount)}}function Ae(p,K){if(1&p&&(t.TgZ(0,"label",61),t._uU(1),t.qZA()),2&p){const d=t.oxw(3);t.xp6(1),t.Oqu(d.selectPaymentLabel)}}function en(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div",58),t.YNc(1,Ae,2,1,"label",59),t.TgZ(2,"app-payment-select",60),t.NdJ("selectedPaymentOptionChange",function(S){t.CHM(d);const pe=t.oxw(2);return t.KtG(pe.selectPayment(S))}),t.qZA()()}if(2&p){const d=K.ngIf,v=t.oxw(2);t.xp6(1),t.Q6J("ngIf",d.cash||d.invoice),t.xp6(1),t.Q6J("paymentTypes",d)("paymentLabels",v.paymentLabels)("selectedPaymentOptionValue",v.checkoutService.paymentType)}}function In(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.YNc(1,en,3,4,"div",56),t.ALo(2,"async"),t.TgZ(3,"app-text-button",57),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.redirectToPayment())}),t._uU(4),t.qZA(),t.BQk()}if(2&p){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",t.lcZ(2,3,d.paymentTypes)),t.xp6(2),t.Q6J("disabled",d.paymentDisabled||void 0===d.checkoutService.paymentType),t.xp6(1),t.hij(" ",d.goToPaymentButton," ")}}function Ve(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"app-text-button",62),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.redirectToPayment())}),t._uU(2),t.qZA(),t.BQk()}if(2&p){const d=t.oxw();t.xp6(2),t.hij(" ",d.confirmPurchaseButton," ")}}const jt=function(p,K,d,v,S,pe,Ue){return{total:p,shipping:K,products:d,packaging:v,discount:S,giftCardDiscount:pe,giftCardRemaining:Ue}};let ft=(()=>{class p extends rt{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui){super(d,v,S,pe,Ue,hn,yn,An,Nn,ui),this.changeInformationButton=this.content.get("changeInformationButtonText"),this.columns={name:this.content.get("itemColumnNameLabelText"),price:this.content.get("itemPriceColumnLabelText"),total:this.content.get("itemTotalColumnLabelText"),quantity:this.content.get("itemQuantityColumnLabelText")},this.deliveryTimeLabel=this.content.get("deliveryTimeLabelText"),this.changeDeliveryTimeButton=this.content.get("changeDeliveryTimeButtonText"),this.includingVATDeclaration=this.content.get("inclVATLabelText"),this.shippingPriceLabel=this.content.get("shippingPriceLabelText"),this.packagingPriceLabel=this.content.get("packagingLabelText"),this.VATLabel=this.content.get("vATPriceLabelText"),this.discountPriceLabel=this.content.get("discountPriceLabelText")||"Besparelse",this.giftCardDiscountPriceLabel=this.content.get("giftCardDiscountPriceLabel")||"Gavekort besparelse",this.giftCardRemainingValuePriceLabel=this.content.get("giftCardRemainingValuePriceLabel")||"Bel\xf8b tilbage p\xe5 gavekort"}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(z.N),t.Y36(y.Ns),t.Y36(y.vD),t.Y36(F.x),t.Y36(U.e8),t.Y36(y.M5),t.Y36(V.Nc),t.Y36(G.Z),t.Y36(V.VG))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-complete-step"]],features:[t.qOj],decls:37,vars:37,consts:[[1,"payment-info"],[4,"ngLet"],["color","accent",3,"click"],["scope","col",1,"name-header"],["scope","col",1,"product-price-header"],["scope","col",1,"line-price-header"],["scope","col",1,"quantity-header"],["class","order-overview",4,"ngLet"],[1,"total-payment"],[1,"payment"],["for","checkout"],[1,"payment-actions"],[4,"ngIf"],[1,"order-overview"],[3,"click"],[4,"ngFor","ngForOf"],["for","product-line-price-total"],["id","product-line-price-total"],[1,"product-line"],[1,"product-info"],[3,"routerLink"],[1,"basket-product-image-container"],[3,"src","alt"],[1,"basket-product-description"],[1,"mobile-product-info","mobile-basket-product-image-container"],[1,"mobile-product-info","mobile-basket-product-description"],[1,"product-price"],["for","product-price"],["id","product-price"],[1,"basket-price"],["for","total-price"],["id","total-price"],[1,"product-quantity"],["class","modules",4,"ngIf"],[1,"modules"],["class","module-line",4,"ngFor","ngForOf"],[1,"module-line"],[1,"product-quantity","module-quantity"],[1,"module-quantity"],["for","shipping-price"],["id","shipping-price"],["for","shipping-packaging"],["id","shipping-packaging"],["for","tax"],["id","tax"],[1,"price-total"],["for","total"],["id","total"],["class","discount-used",4,"ngIf"],["for","discount"],["id","discount"],["for","giftCardDiscount"],["id","giftCardDiscount"],[1,"discount-used"],["for","gift-card-remaining"],["id","gift-card-remaining"],["class","payment-select",4,"ngIf"],["id","checkout",3,"disabled","click"],[1,"payment-select"],["for","payment-options",4,"ngIf"],["id","payment-options",3,"paymentTypes","paymentLabels","selectedPaymentOptionValue","selectedPaymentOptionChange"],["for","payment-options"],["id","checkout",3,"click"]],template:function(v,S){1&v&&(t.TgZ(0,"div")(1,"h2"),t._uU(2),t.qZA(),t.TgZ(3,"app-center-section",0),t.YNc(4,$t,12,8,"div",1),t.YNc(5,Jt,14,9,"div",1),t.TgZ(6,"app-text-button",2),t.NdJ("click",function(){return S.stepper.previous()}),t._uU(7),t.qZA()(),t.TgZ(8,"h2"),t._uU(9),t.qZA(),t.TgZ(10,"table")(11,"thead")(12,"tr")(13,"th",3),t._uU(14),t.qZA(),t.TgZ(15,"th",4),t._uU(16),t.qZA(),t.TgZ(17,"th",5),t._uU(18),t.qZA(),t.TgZ(19,"th",6),t._uU(20),t.qZA()()(),t.YNc(21,yt,23,22,"app-center-section",7),t.ALo(22,"async"),t.qZA(),t.TgZ(23,"app-center-section",8),t.YNc(24,ie,37,43,"ng-container",1),t.ALo(25,"async"),t.ALo(26,"async"),t.ALo(27,"async"),t.ALo(28,"async"),t.ALo(29,"async"),t.ALo(30,"async"),t.ALo(31,"async"),t.TgZ(32,"div",9),t._UZ(33,"app-payment-options",10),t.TgZ(34,"div",11),t.YNc(35,In,5,5,"ng-container",12),t.YNc(36,Ve,3,1,"ng-container",12),t.qZA()()()()),2&v&&(t.xp6(2),t.Oqu(S.shippingTitle),t.xp6(2),t.Q6J("ngLet",S.shippingDetailsForm.getRawValue()),t.xp6(1),t.Q6J("ngLet",S.paymentDetailsForm.getRawValue()),t.xp6(2),t.Oqu(S.changeInformationButton),t.xp6(2),t.Oqu(S.orderTitle),t.xp6(5),t.Oqu(S.columns.name),t.xp6(2),t.Oqu(S.columns.price),t.xp6(2),t.Oqu(S.columns.total),t.xp6(2),t.Oqu(S.columns.quantity),t.xp6(1),t.Q6J("ngLet",t.lcZ(22,13,S.shipping)),t.xp6(3),t.Q6J("ngLet",t.Hh0(29,jt,t.lcZ(25,15,S.totalPrice$),t.lcZ(26,17,S.shipping).price,t.lcZ(27,19,S.productLinesPrice$),t.lcZ(28,21,S.packagingPrice$),t.lcZ(29,23,S.discount$)||0,t.lcZ(30,25,S.giftCardDiscount$)||0,t.lcZ(31,27,S.giftCardRemainingValue$)||0)),t.xp6(11),t.Q6J("ngIf",!(S.form.value.isBusiness&&S.form.value.payment.EAN)),t.xp6(1),t.Q6J("ngIf",S.form.value.isBusiness&&S.form.value.payment.EAN))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{font-size:.95em}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:var(--nxt-width);max-width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{box-shadow:0 1px 10px 1px #0000001a;width:100%}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{margin:32px 0}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 200px;grid-template-rows:1fr;grid-column-gap:20px;box-sizing:border-box;width:100%}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr 160px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin-bottom:12px}}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{margin-top:0;margin-bottom:12px}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#878787;margin:4px 0}[_nghost-%COMP%]   table[_ngcontent-%COMP%]{display:block;border-spacing:0;border-collapse:unset;border-color:unset;margin-top:28px}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{display:flex;margin-bottom:12px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px 128px;grid-template-rows:100%;grid-column-gap:8px;box-sizing:border-box;width:100%;padding:8px 16px}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#a6a6a6;font-size:.9em;font-weight:500}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .name-header[_ngcontent-%COMP%]{justify-self:left}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .product-price-header[_ngcontent-%COMP%]{justify-self:center}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .line-price-header[_ngcontent-%COMP%]{justify-self:center}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .quantity-header[_ngcontent-%COMP%]{justify-self:center}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:40px;padding:0;box-shadow:0 1px 10px 1px #0000001a;overflow:hidden}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:center;align-items:center;max-width:88px;margin-right:12px}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;max-height:100%;object-fit:cover}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;overflow:hidden}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.85em;margin-bottom:4px}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.9em;font-weight:500;color:var(--text-accent-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-quantity[_ngcontent-%COMP%]{justify-self:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-quantity[_ngcontent-%COMP%]{grid-column:1/span 3;grid-row:3;width:100%}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-quantity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:8px 44px;border:1px solid #d1d9dc;border-radius:48px;font-weight:500}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-quantity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{text-align:center}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background-color:#f7f7f7}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{flex:0 0 auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{flex:0 1 auto;white-space:normal;margin-right:8px}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;height:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 1 auto}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px 128px;grid-template-rows:100%;grid-column-gap:8px;align-items:center;height:100px;box-sizing:border-box;padding:16px}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-product-info[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]{grid-template-columns:min-content 1fr min-content;grid-template-rows:repeat(3,1fr);grid-column-gap:8px;height:160px}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-product-info[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{max-width:100%}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{max-width:inherit}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;height:100%}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-self:flex-start;color:inherit;text-decoration:none;height:100%}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-basket-product-image-container[_ngcontent-%COMP%]{grid-column:1;grid-row:1;justify-self:center;min-height:0;width:100%}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-basket-product-image-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-basket-product-image-container[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{display:flex;margin:0}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-basket-product-description[_ngcontent-%COMP%]{grid-column:2;grid-row:1;justify-self:center;width:100%;overflow:hidden}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .mobile-basket-product-description[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9em;margin-bottom:4px}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-self:center;text-align:right;white-space:nowrap}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%]{grid-column:1;grid-row:2;justify-self:start;font-size:.8em}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:initial;align-self:center;font-weight:500}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-weight:600;white-space:nowrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{align-self:center}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{justify-self:center}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-weight:600;white-space:nowrap}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{grid-column:3;grid-row:2;margin:0;justify-self:end;font-size:.8em}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:initial;align-self:center;font-weight:500}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   tfoot[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 16px 20px;font-size:1.5em;font-weight:700;line-height:.8em}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   tfoot[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#a2b2b8;font-weight:600;font-size:.65em}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]{margin:0 0 12px 40px}@media only screen and (min-width: 0px) and (max-width: 400px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]{margin-left:0}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px 128px;grid-template-rows:100%;grid-column-gap:20px;align-items:center;height:60px;box-sizing:border-box;padding:8px 16px 0;margin:0}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]:only-child{padding:8px 16px}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]{grid-template-columns:1fr min-content}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{flex-direction:row;justify-content:flex-start;grid-column:1/span 3}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{grid-column:1}}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{height:52px;width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]{grid-row:1;grid-column:2}[_nghost-%COMP%]   .order-overview[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:auto}}[_nghost-%COMP%]   .debitor-warning[_ngcontent-%COMP%]{background-color:#ffd600;font-weight:600;margin-bottom:40px}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:120px;padding:0;font-weight:700}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]{font-size:.95em}}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:16px 28px}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .price-total[_ngcontent-%COMP%]{font-size:1.5em;line-height:.8em}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .price-total[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#a2b2b8;font-weight:600;font-size:.65em}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .discount-used[_ngcontent-%COMP%]{color:var(--warn-color);justify-content:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]{flex-direction:column;gap:8px}}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   app-payment-options[_ngcontent-%COMP%]{flex:0 1 auto;margin-top:0}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]{flex-direction:column;width:100%}}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   .payment-select[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   .payment-select[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{font-size:14px;padding-left:10px}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   app-payment-select[_ngcontent-%COMP%]{min-width:200px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   app-payment-select[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 1 auto;width:auto;min-width:200px;height:56px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total-payment[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:100%;height:40px}}"]})}return p})();c(4726);var Ce=c(8750);function ve(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().ngIf;t.xp6(1),t.Oqu(d.companyName)}}function me(p,K){if(1&p&&(t.TgZ(0,"div")(1,"h3"),t._uU(2),t.qZA(),t.YNc(3,ve,2,1,"span",2),t.TgZ(4,"span"),t._uU(5),t.qZA(),t.TgZ(6,"span"),t._uU(7),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA(),t.TgZ(10,"span",15),t._uU(11),t.qZA()()),2&p){const d=K.ngIf,v=t.oxw();t.xp6(2),t.Oqu(v.shippingAddressLabel),t.xp6(1),t.Q6J("ngIf",d.companyName),t.xp6(2),t.AsE("",d.firstName," ",d.lastName,""),t.xp6(2),t.Oqu(d.address),t.xp6(2),t.AsE("",d.zip,", ",d.city,""),t.xp6(2),t.hij("Telefon: ",d.telephone,"")}}function De(p,K){if(1&p&&(t.TgZ(0,"h3"),t._uU(1),t.qZA()),2&p){const d=t.oxw(2);t.xp6(1),t.Oqu(d.billingAddressLabel)}}function tn(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Oqu(d.companyName)}}function gn(p,K){if(1&p&&(t.TgZ(0,"div"),t.YNc(1,De,2,1,"h3",2),t.YNc(2,tn,2,1,"span",2),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"span"),t._uU(8),t.qZA(),t.TgZ(9,"span",15),t._uU(10),t.qZA(),t.TgZ(11,"span"),t._uU(12),t.qZA()()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(1),t.Q6J("ngIf",v.form.controls.alternativeShipping.value),t.xp6(1),t.Q6J("ngIf",d.companyName),t.xp6(2),t.AsE("",d.firstName," ",d.lastName,""),t.xp6(2),t.Oqu(d.address),t.xp6(2),t.AsE("",d.zip,", ",d.city,""),t.xp6(2),t.hij("Telefon: ",d.telephone,""),t.xp6(2),t.hij("Email: ",d.email,"")}}function Xe(p,K){if(1&p&&(t.TgZ(0,"div",25)(1,"span"),t._uU(2),t.qZA()()),2&p){const d=K.$implicit;t.xp6(2),t.AsE("",d.quantity," X ",d.productDisplayName,"")}}function rn(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Xe,3,2,"div",24),t.BQk()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngForOf",d)}}function re(p,K){if(1&p&&(t.TgZ(0,"div",17)(1,"a",18),t._UZ(2,"img",19),t.ALo(3,"source"),t.qZA(),t.TgZ(4,"a",20)(5,"div",21)(6,"b"),t._uU(7),t.qZA(),t.YNc(8,rn,2,1,"ng-container",3),t.ALo(9,"modules"),t.qZA()(),t.TgZ(10,"span",22),t._uU(11),t.ALo(12,"number"),t.ALo(13,"sum"),t.ALo(14,"displayCurrency"),t.qZA(),t.TgZ(15,"span",23),t._uU(16),t.qZA()()),2&p){const d=K.ngLet,v=t.oxw().$implicit,S=t.oxw();t.xp6(1),t.Q6J("routerLink",S.createProductUrl(d)),t.xp6(1),t.Q6J("src",t.lcZ(3,9,d),t.LSH)("alt",d.productDisplayName),t.xp6(2),t.Q6J("routerLink",S.createProductUrl(d)),t.xp6(3),t.Oqu(d.productDisplayName),t.xp6(1),t.Q6J("ngLet",t.lcZ(9,11,d)),t.xp6(3),t.AsE("",t.Dn7(12,13,t.lcZ(13,17,v),".2-2",S.locale)," ",t.lcZ(14,19,S.currency),""),t.xp6(5),t.Oqu(v.quantity)}}function ue(p,K){if(1&p&&(t.ynx(0),t.YNc(1,re,17,21,"div",16),t.ALo(2,"async"),t.BQk()),2&p){const d=K.$implicit,v=t.oxw();t.xp6(1),t.Q6J("ngLet",t.lcZ(2,1,v.getProduct(d)))}}function Ft(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.ALo(3,"displayCurrency"),t.qZA()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(1),t.AsE("",t.Dn7(2,2,d.packaging,".2-2",v.locale)," ",t.lcZ(3,6,v.currency),"")}}function be(p,K){1&p&&(t.TgZ(0,"span"),t._uU(1,"Gratis"),t.qZA())}function qt(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.ALo(3,"displayCurrency"),t.qZA()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(1),t.AsE("",t.Dn7(2,2,d.shipping,".2-2",v.locale)," ",t.lcZ(3,6,v.currency),"")}}function Te(p,K){1&p&&(t.TgZ(0,"span"),t._uU(1,"Gratis"),t.qZA())}function Me(p,K){if(1&p&&(t.TgZ(0,"span",31)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.discountPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.discount,".2-2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function _n(p,K){1&p&&(t.TgZ(0,"span",32),t._uU(1," Rabatkoden er allerede brugt og vil ikke blive anvendt p\xe5 denne ordre "),t.qZA())}function ce(p,K){if(1&p&&(t.TgZ(0,"div",26)(1,"span",27)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"span"),t._uU(5),t.ALo(6,"number"),t.ALo(7,"displayCurrency"),t.qZA()(),t.TgZ(8,"span",27)(9,"span"),t._uU(10),t.qZA(),t.YNc(11,Ft,4,8,"span",2),t.YNc(12,be,2,0,"span",2),t.qZA(),t.TgZ(13,"span",27)(14,"span"),t._uU(15),t.qZA(),t.YNc(16,qt,4,8,"span",2),t.YNc(17,Te,2,0,"span",2),t.qZA(),t.YNc(18,Me,7,9,"span",28),t.TgZ(19,"span",27)(20,"b"),t._uU(21),t.qZA(),t.TgZ(22,"b"),t._uU(23),t.ALo(24,"number"),t.ALo(25,"displayCurrency"),t.qZA()(),t.TgZ(26,"span",29),t._uU(27),t.ALo(28,"number"),t.ALo(29,"displayCurrency"),t.qZA(),t.YNc(30,_n,2,0,"span",30),t.ALo(31,"async"),t.qZA()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(3),t.Oqu(v.totalProductsPriceLabel),t.xp6(2),t.AsE("",t.Dn7(6,16,d.products,".2-2",v.locale)," ",t.lcZ(7,20,v.currency),""),t.xp6(5),t.Oqu(v.packagingPriceLabel),t.xp6(1),t.Q6J("ngIf",d.packaging),t.xp6(1),t.Q6J("ngIf",!d.packaging),t.xp6(3),t.Oqu(v.shippingPriceLabel),t.xp6(1),t.Q6J("ngIf",d.shipping),t.xp6(1),t.Q6J("ngIf",!d.shipping),t.xp6(1),t.Q6J("ngIf",0!==d.discount),t.xp6(3),t.Oqu(v.totalPriceLabel),t.xp6(2),t.AsE("",t.Dn7(24,22,d.total,".2-2",v.locale)," ",t.lcZ(25,26,v.currency),""),t.xp6(4),t.AsE("(heraf moms ",t.Dn7(28,28,v.calculateTax(d.total),".2-2",v.locale)," ",t.lcZ(29,32,v.currency),")"),t.xp6(3),t.Q6J("ngIf",t.lcZ(31,34,v.discountCodeAlreadyUsed))}}function ye(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"date"),t.ALo(4,"date"),t.qZA(),t.BQk()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(2),t.AsE(" ",v.isMobile?t.xi3(3,2,d.date.toDate(),"shortDate"):t.xi3(4,5,d.date.toDate(),"fullDate")," ",d.time.period," ")}}function Xt(p,K){if(1&p&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t._UZ(2,"app-payment-options",37),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("value",0)("checked",0===d.checkoutService.paymentType),t.xp6(1),t.hij(" ",d.paymentLabels.default," ")}}function on(p,K){if(1&p&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("value",1)("checked",1===d.checkoutService.paymentType),t.xp6(1),t.hij(" ",d.paymentLabels.cash," ")}}function oe(p,K){if(1&p&&(t.TgZ(0,"mat-radio-button",36),t._uU(1),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("value",2)("checked",2===d.checkoutService.paymentType),t.xp6(1),t.hij(" ",d.paymentLabels.invoice," ")}}function $e(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div",33)(1,"h2"),t._uU(2),t.qZA(),t.TgZ(3,"mat-radio-group",34),t.NdJ("change",function(S){t.CHM(d);const pe=t.oxw();return t.KtG(pe.selectPayment(S.value))}),t.YNc(4,Xt,3,3,"mat-radio-button",35),t.YNc(5,on,2,3,"mat-radio-button",35),t.YNc(6,oe,2,3,"mat-radio-button",35),t.qZA()()}if(2&p){const d=K.ngIf,v=t.oxw();t.xp6(2),t.Oqu(v.selectPaymentLabel),t.xp6(2),t.Q6J("ngIf",d.default),t.xp6(1),t.Q6J("ngIf",d.cash),t.xp6(1),t.Q6J("ngIf",d.invoice)}}function te(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"app-text-button",38),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.redirectToPayment())}),t._uU(2),t.qZA(),t.BQk()}if(2&p){const d=t.oxw();t.xp6(1),t.Q6J("disabled",d.paymentDisabled||void 0===d.checkoutService.paymentType),t.xp6(1),t.hij(" ",d.goToPaymentButton," ")}}function Se(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"app-text-button",39),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.redirectToPayment())}),t._uU(2),t.qZA(),t.BQk()}if(2&p){const d=t.oxw();t.xp6(2),t.hij(" ",d.confirmPurchaseButton," ")}}function Ke(p,K){if(1&p&&(t.TgZ(0,"a",43),t._UZ(1,"mat-icon",44),t._uU(2),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("href","tel:"+d.contactPhoneNumber,t.LSH),t.xp6(2),t.hij(" ",d.contactPhoneNumber," ")}}function Oe(p,K){if(1&p&&(t.TgZ(0,"div",40)(1,"label",41),t._uU(2),t.qZA(),t.YNc(3,Ke,3,2,"a",42),t.qZA()),2&p){const d=t.oxw();t.xp6(2),t.Oqu(d.contactInformation),t.xp6(1),t.Q6J("ngIf",d.contactPhoneNumber)}}const Qe=function(p,K,d,v,S){return{total:p,shipping:K,products:d,packaging:v,discount:S}};let et=(()=>{class p extends rt{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei){super(d,v,S,pe,Ue,hn,yn,An,Nn,ui),this.deviceService=ei;const jn=this.contentService.get("basketOverview");this.totalProductsPriceLabel=jn.get("totalItemsLabelText"),this.packagingPriceLabel=jn.get("packagingPriceLabelText"),this.shippingPriceLabel=jn.get("shippingPriceLabel"),this.discountPriceLabel=jn.get("discountPriceLabelText")||"Besparelse";const oi=this.contentService.get("basketOverview");this.contactInformation=oi.get("contactInformation"),this.contactPhoneNumber=oi.get("contactPhoneNumber")}ngOnInit(){super.ngOnInit(),this.isMobile=this.deviceService.isMobile()}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(z.N),t.Y36(y.Ns),t.Y36(y.vD),t.Y36(F.x),t.Y36(U.e8),t.Y36(y.M5),t.Y36(y.Nc),t.Y36(G.Z),t.Y36(y.VG),t.Y36(Ce.x0))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-meny-complete-step"]],features:[t.qOj],decls:34,vars:36,consts:[["id","checkout",1,"checkout-top",3,"disabled","click"],[1,"payment-info"],[4,"ngIf"],[4,"ngLet"],[1,"basket"],[4,"ngFor","ngForOf"],[1,"divider"],["class","total-price",4,"ngLet"],[1,"shipping-select",3,"click"],[1,"shipping-selected"],["svgIcon","shop"],["class","payment-select",4,"ngIf"],[1,"payment"],[1,"payment-actions"],["class","contact",4,"ngIf"],[1,"phoneLabel"],["class","basket-item",4,"ngLet"],[1,"basket-item"],[1,"product-image",3,"routerLink"],[3,"src","alt"],[1,"product-info",3,"routerLink"],[1,"basket-product-description"],[1,"basket-price"],[1,"basket-quantity"],["class","modules",4,"ngFor","ngForOf"],[1,"modules"],[1,"total-price"],[1,"prices"],["class","prices discount",4,"ngIf"],[1,"tax"],["class","discount-used",4,"ngIf"],[1,"prices","discount"],[1,"discount-used"],[1,"payment-select"],[3,"change"],[3,"value","checked",4,"ngIf"],[3,"value","checked"],["for","checkout"],["id","checkout",3,"disabled","click"],["id","checkout",3,"click"],[1,"contact"],["for","contact-information"],["class","contact-number unstyled-link",3,"href",4,"ngIf"],[1,"contact-number","unstyled-link",3,"href"],["svgIcon","contact"]],template:function(v,S){if(1&v&&(t.TgZ(0,"div")(1,"app-text-button",0),t.NdJ("click",function(){return S.redirectToPayment()}),t._uU(2),t.qZA(),t.TgZ(3,"app-center-section",1)(4,"h2"),t._uU(5),t.qZA(),t.YNc(6,me,12,8,"div",2),t.YNc(7,gn,13,9,"div",3),t.qZA(),t.TgZ(8,"div",4)(9,"h2"),t._uU(10),t.qZA(),t.YNc(11,ue,3,3,"ng-container",5),t.ALo(12,"async"),t._UZ(13,"div",6),t.YNc(14,ce,32,36,"div",7),t.ALo(15,"async"),t.ALo(16,"async"),t.ALo(17,"async"),t.ALo(18,"async"),t.ALo(19,"async"),t.qZA(),t.TgZ(20,"a",8),t.NdJ("click",function(){return S.openShippingDialog()}),t.ynx(21,9),t.TgZ(22,"span"),t._UZ(23,"mat-icon",10),t._uU(24),t.qZA(),t.YNc(25,ye,5,8,"ng-container",3),t.ALo(26,"async"),t.BQk(),t.qZA(),t.YNc(27,$e,7,4,"div",11),t.ALo(28,"async"),t.TgZ(29,"div",12)(30,"div",13),t.YNc(31,te,3,2,"ng-container",2),t.YNc(32,Se,3,1,"ng-container",2),t.qZA()(),t.YNc(33,Oe,4,2,"div",14),t.qZA()),2&v){let pe;t.xp6(1),t.Q6J("disabled",S.paymentDisabled||void 0===S.checkoutService.paymentType),t.xp6(1),t.hij(" ",S.goToPaymentButton," "),t.xp6(3),t.Oqu(S.shippingTitle),t.xp6(1),t.Q6J("ngIf",S.form.controls.alternativeShipping.value&&S.shippingDetailsForm.getRawValue()),t.xp6(1),t.Q6J("ngLet",S.paymentDetailsForm.getRawValue()),t.xp6(3),t.Oqu(S.orderTitle),t.xp6(1),t.Q6J("ngForOf",t.lcZ(12,14,S.productLines$)),t.xp6(3),t.Q6J("ngLet",t.qbA(30,Qe,t.lcZ(15,16,S.totalPrice$),(null==(pe=t.lcZ(16,18,S.shipping))?null:pe.price)||0,t.lcZ(17,20,S.productLinesPrice$),t.lcZ(18,22,S.packagingPrice$)||0,t.lcZ(19,24,S.discount$)||0)),t.xp6(10),t.hij(" ",S.shippingName," "),t.xp6(1),t.Q6J("ngLet",t.lcZ(26,26,S.shipping)),t.xp6(2),t.Q6J("ngIf",t.lcZ(28,28,S.paymentTypes)),t.xp6(4),t.Q6J("ngIf",!(S.form.value.isBusiness&&S.form.value.payment.EAN)),t.xp6(1),t.Q6J("ngIf",S.form.value.isBusiness&&S.form.value.payment.EAN),t.xp6(1),t.Q6J("ngIf",S.contactInformation)}},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{font-size:.95em}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px;width:var(--nxt-width);max-width:100%}[_nghost-%COMP%]   .checkout-top[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{box-shadow:0 1px 10px 1px #0000001a;width:100%}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:18px;line-height:22px}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-column-gap:16px;grid-row-gap:16px;box-sizing:border-box;width:100%;padding:16px}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{grid-column:span 2}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{margin-top:0;margin-bottom:12px;font-size:18px;line-height:22px}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#3c3c3b;margin:4px 0}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.phoneLabel[_ngcontent-%COMP%]{margin-top:16px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;background-color:#fff;border-radius:8px;padding:16px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:100px 2fr max-content minmax(max-content,1fr);gap:16px;align-items:center;height:100%;max-width:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.24);border-radius:8px;padding:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]{grid-template-columns:100px 1fr;grid-template-rows:1fr min-content min-content}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]{grid-row-start:1;grid-row-end:span 3}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{grid-row-start:3;grid-column:2;justify-self:end}}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px;object-fit:cover;border-radius:8px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;max-width:100%;overflow:hidden}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{flex:0 0 auto;font-size:18px;line-height:22px;margin-bottom:8px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:0 0 auto;font-size:14px;line-height:22px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{font-size:18px;line-height:22px;font-weight:700}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-item[_ngcontent-%COMP%]   .basket-quantity[_ngcontent-%COMP%]{height:40px;width:100%;max-width:150px;display:flex;justify-content:center;justify-self:flex-end;align-items:center;border:1px solid var(--accent-color);border-radius:64px;font-size:16px;line-height:18px;font-weight:700}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{border-top:1px solid #ebebeb}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:flex-end;align-items:flex-end;padding:16px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-size:18px;line-height:22px;margin-top:8px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:300px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;line-height:22px;color:#8d8d8d}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices.discount[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#609433}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .tax[_ngcontent-%COMP%]{font-size:12px;line-height:16px;color:#8d8d8d}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   .discount-used[_ngcontent-%COMP%]{color:var(--warn-color);align-self:center}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:30px 24px;cursor:pointer;font-size:16px;line-height:18px;text-transform:uppercase;font-weight:700}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]{gap:8px;font-size:12px;line-height:14px}}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   .no-shipping-selected[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   .no-shipping-selected[_ngcontent-%COMP%]     path{fill:var(--warn-color)}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{text-decoration-line:underline}[_nghost-%COMP%]   .debitor-warning[_ngcontent-%COMP%]{background-color:#ffd600;font-weight:600;margin-bottom:40px}[_nghost-%COMP%]   .payment-select[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;background-color:#fff;border-radius:8px;padding:16px}[_nghost-%COMP%]   .payment-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .payment-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content{display:flex;justify-content:space-between;width:100%;align-items:center;padding:10px 0 10px 16px}[_nghost-%COMP%]   .payment-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content app-payment-options{gap:8px;margin-top:0}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]{flex-direction:column;gap:8px}}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   app-payment-options[_ngcontent-%COMP%]{flex:0 1 auto;margin-top:0;gap:16px;background-color:unset}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]{flex-direction:column;width:100%}}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   .payment-select[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   .payment-select[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{font-size:14px;padding-left:10px}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   app-payment-select[_ngcontent-%COMP%]{min-width:200px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   .payment-actions[_ngcontent-%COMP%]   app-payment-select[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 1 auto;width:auto;height:48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:100%;height:40px}}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;font-family:Poppins}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-weight:700}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:27px;height:27px}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#000}"]})}return p})();var nt=c(8075),it=c(7985);const Ot=["ageVerification"];let Fe=(()=>{class p extends R.I{constructor(d,v,S,pe,Ue,hn){super(d,"basketShipping"),this.dialogService=v,this.shippingQuery=S,this.checkoutService=pe,this.basketQuery=Ue,this.authService=hn,this.sgTokenSessionKey="sgAgeVerificationToken",this.tradeCondtionsLink=`/${f.environment.urls.content.trade_conditions}`,this.GDPRLink=`/${f.environment.urls.content.gdpr}`,this.basketLink=`/${f.environment.urls.basket}`,this.ageVerificationFailedIcon=it.Ym.do_not_disturb_on,this.ageVerifiedUserIcon=it.Ym.verified_user,this.ageVerifiedPopupIcon=it.Ym.ad_group,this.mitIDImage="assets/images/mitid.png",this.termsOfServiceLabel=this.content.get("termsOfServiceTextText"),this.termsOfServiceLinkLabel=this.content.get("termsOfServiceLinkText"),this.contactConsentDescription=this.content.get("contactConsentTextText"),this.processingTimeDescription=this.content.get("processingTimeTextText"),this.processingTimeLinkLabel=this.content.get("processingTimeLinkText"),this.backButton=this.content.get("backButtonText"),this.approvalButton=this.content.get("approvalButtonText"),this.subscription=new g.w0,this.setFormContent()}setFormContent(){this.billingAddressTitle=this.content.get("billingAddressTitleText"),this.billingAddressContent={firstNameLabel:this.content.get("billingFirstNameLabelText"),firstNamePlaceholder:this.content.get("billingFirstNamePlacerholderText"),lastNameLabel:this.content.get("billingLastNameLabelText"),lastNamePlaceholder:this.content.get("billingLastNamePlaceholderText"),emailLabel:this.content.get("billingEmailLabelText"),emailPlaceholder:this.content.get("billingEmailPlaceholderText"),phoneLabel:this.content.get("billingPhoneLabelText"),phonePlaceholder:this.content.get("billingPhonePlaceholderText"),companyLabel:this.content.get("billingCompanyNameLabelText"),companyPlaceholder:this.content.get("billingCompanyNamePlaceholderText"),CVRLabel:this.content.get("billingCVRLabelText")||"CVR",CVRPlaceholder:this.content.get("billingCVRPlaceholderText")||"Indtast CVR nummer",eanLabel:this.content.get("billingEanLabelText")||"EAN",eanPlaceholder:this.content.get("billingEanPlaceholderText")||"Indtast EAN (13 tegn)",requisitionLabel:this.content.get("billingRequisitionLabelText")||"Rekvisitionsnummer",requisitionPlaceholder:this.content.get("billingRequisitionPlaceholderText")||"Indtast rekvisitionsnummer",addressLabel:this.content.get("billingAddressLabelText"),addressPlaceholder:this.content.get("billingAddressPlaceholderText"),zipCodeLabel:this.content.get("billingZipCodeLabelText"),zipCodePlaceholder:this.content.get("billingZipCodePlaceholderText"),cityLabel:this.content.get("billingCityLabelText"),cityPlaceholder:this.content.get("billingCityPlaceholderText"),noteLabel:this.content.get("billingNoteLabelText"),noteWoltLabel:this.content.get("billingNoteWoltLabelText")||"Skriv eventuelt en besked til buddet her.",noteSubtitle:this.content.get("billingNoteSubtitleText"),notePlaceholder:this.content.get("billingNotePlaceholderText")},this.shippingAddressSameAsBillingAddressLabel=this.content.get("shippingAddressSameAsBillingAddressLabelText"),this.shippingAddressTitle=this.content.get("shippingAddressTitleText"),this.shippingAddressContent={firstNameLabel:this.content.get("shippingFirstNameLabelText"),firstNamePlaceholder:this.content.get("shippingFirstNamePlacerholderText"),lastNameLabel:this.content.get("shippingLastNameLabelText"),lastNamePlaceholder:this.content.get("shippingLastNamePlaceholderText"),emailLabel:this.content.get("shippingEmailLabelText"),emailPlaceholder:this.content.get("shippingEmailPlaceholderText"),phoneLabel:this.content.get("shippingPhoneLabelText"),phonePlaceholder:this.content.get("shippingPhonePlaceholderText"),companyLabel:this.content.get("shippingCompanyNameLabelText"),companyPlaceholder:this.content.get("shippingCompanyNamePlaceholderText"),addressLabel:this.content.get("shippingAddressLabelText"),addressPlaceholder:this.content.get("shippingAddressPlaceholderText"),zipCodeLabel:this.content.get("shippingZipCodeLabelText"),zipCodePlaceholder:this.content.get("shippingZipCodePlaceholderText"),cityLabel:this.content.get("shippingCityLabelText"),cityPlaceholder:this.content.get("shippingCityPlaceholderText")},this.reclaimAddressSameAsBillingAddressLabel=this.content.get("reclaimAddressSameAsBillingAddressLabelText"),this.reclaimAddressTitle=this.content.get("reclaimAddressTitleText"),this.ageVerificationContent={title:this.content.get("ageVerificationTitleText")||"Verificer din alder",buttonText:this.content.get("ageVerificationButtonText")||"Verificer med MitID",verifyLabel:this.content.get("ageVerificationVerifyLabelText")||"Da du har lagt aldersbegr\xe6nsede varer i din kurv, skal du af juridiske \xe5rsager verificere din alder, inden du gennemf\xf8rer dit k\xf8b.",failedLabel:this.content.get("ageVerificationFailedLabelText")||"Verificeringen kunne ikke godkendes. Du er enten ikke gammel nok, eller ogs\xe5 gik noget galt. Pr\xf8v igen, eller kontakt butikken, hvis du mener, der er sket en fejl.",successLabel:this.content.get("ageVerificationSuccessLabelText")||"Verificeringen er godkendt, og du kan g\xe5 videre med dit k\xf8b.",failedToOpenLabel:this.content.get("ageVerificationFailedToOpenText")||"Det lykkes ikke at \xe5bne MitId vinduet, pr\xf8v igen og hvis det forsat ikke virker tjek dine browser indstillinger",behindPopupLabel:this.content.get("ageVerificationBehindPopupLabelText")||"Er vinduet til MitID forsvundet?\nKlik p\xe5 knappen herunder for at \xe5bne det igen.",behindPopupButtonText:this.content.get("ageVerificationBehindPopupButtonText")||"\xc5bn MitID verificering igen",behindPopupCancelText:this.content.get("ageVerificationBehindPopupCancelText")||"Afbryd",assistantMessageText:this.content.get("assistantMessageText")||"Alderverificeringen kan foretages af enhver person over 18 \xe5r og kr\xe6ver ikke brug af borgerens MitID. \nMitID anvendes udelukkende til at bekr\xe6fte, at k\xf8beren er fyldt 18 \xe5r, og oplysninger opbevares eller lagres IKKE."}}ngOnInit(){const d=this.contentService.getMerchant();this.enableEAN=d.enableEAN,this.enableReclaimAddress=d.enableReclaimAddress,this.isWolt=this.shippingQuery.selectIsWolt$,this.containsAlcohol$=this.basketQuery.selectContainsAlcohol$,this.ageVerificationFailed=!1,this.ageVerificationFailedToOpen=!1,this.useAgeVerification=d.useAgeVerification,this.sgAgeVerificationToken=sessionStorage.getItem(this.sgTokenSessionKey),this.subscription.add(this.form.statusChanges.subscribe(v=>{this.formInvalid="VALID"!==v})),this.subscription.add(this.authService.member.subscribe(v=>this.isAssistant=this.authService.hasAssistant(v))),this.form.updateValueAndValidity()}ngOnDestroy(){this.subscription.unsubscribe(),this.ageVerificationSubscription?.unsubscribe()}openShippingDialog(){this.dialogService.openShippingDialog()}toggleBusiness(){this.form.controls.isBusiness.value=!this.form.controls.isBusiness.value,this.form.controls.isBusiness.updateValueAndValidity({onlySelf:!0}),this.form.controls.payment.controls.CVR.updateValueAndValidity()}next(){this.useAgeVerification?this.containsAlcohol$.pipe((0,H.q)(1)).subscribe(d=>{if(d&&(this.ageVerificationFailed||!this.sgAgeVerificationToken))return this.ageVerificationRef.nativeElement.scrollIntoView({behavior:"smooth"}),void(this.ageVerificationHighlight=!0);this.stepper.next()}):this.stepper.next()}openVerifyAgePopup(){this.ageVerificationSubscription&&!this.ageVerificationSubscription.closed&&this.ageVerificationSubscription.unsubscribe(),this.ageVerificationSubscription=new g.w0,this.ageVerificationSubscription.add(window.addEventListener("message",d=>{if(d.origin==f.environment.signaturGruppen_BrokerOgirin&&"webmessage_flow_response"===d.data?.command)return this.ageVerificationLoading=!0,this.ageVerificationHighlight=!1,this.ageVerificationSubscription.unsubscribe(),this.ageVerificationPopup?.close(),typeof JSON.parse(d.data?.result||"{}").id_token>"u"?(this.ageVerificationFailed=!0,void(this.ageVerificationLoading=!1)):void this.checkoutService.validateAgeVerificationToken(d.data.result).pipe((0,nt.X)({count:5,delay:500}),(0,H.q)(1)).subscribe(({valid:S})=>{this.ageVerificationLoading=!1,S?(this.ageVerificationFailed=!1,this.sgAgeVerificationToken=d.data.result,sessionStorage.setItem(this.sgTokenSessionKey,this.sgAgeVerificationToken)):this.ageVerificationFailed=!0})},!1)),this.checkoutService.getAgeVerificationUrl().pipe((0,H.q)(1)).subscribe(({popupUrl:d})=>{this.openAgeVerificationPopup(d)})}focusAgeVerificationPopup(){!this.ageVerificationPopup||this.ageVerificationPopup.closed||this.ageVerificationPopup.focus()}cancelAgeVerificationPopup(){this.ageVerificationPopup&&!this.ageVerificationPopup.closed&&this.ageVerificationPopup.close(),this.ageVerificationSubscription&&!this.ageVerificationSubscription.closed&&this.ageVerificationSubscription.unsubscribe()}openAgeVerificationPopup(d){const Ue=window.outerHeight/2+window.screenY-320,hn=window.outerWidth/2+window.screenX-226;this.ageVerificationPopup=window.open(d,"Verificer Alder",`toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,copyhistory=no,height=640,width=452,top=${Ue},left=${hn}`),this.ageVerificationPopup?.focus(),this.ageVerificationFailedToOpen=!this.ageVerificationPopup}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(F.x),t.Y36(y.VG),t.Y36(y.ZY),t.Y36(y.Ns),t.Y36(y.e8))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-delivery-step-utility"]],viewQuery:function(v,S){if(1&v&&t.Gf(Ot,5,t.SBq),2&v){let pe;t.iGM(pe=t.CRH())&&(S.ageVerificationRef=pe.first)}},inputs:{form:"form",stepper:"stepper"},features:[t.qOj],decls:0,vars:0,template:function(v,S){},encapsulation:2})}return p})();var Cn=c(6814),de=c(6223),He=c(8862),X=c(617),_e=c(8514),ze=c(3025),dn=c(3595),Tn=c(9716),je=c(4918);function ke(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-text-button",12),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.openLoginDialog())}),t.ALo(1,"async"),t._uU(2),t.qZA()}if(2&p){const d=t.oxw();t.ekj("visible",d.showMember&&null===t.lcZ(1,3,d.member)),t.xp6(2),t.hij(" ",d.accountButton,"\n")}}function Ne(p,K){if(1&p&&t._UZ(0,"app-text-input",18),2&p){const d=t.oxw(3);t.Q6J("control",d.form.controls.payment.controls.EAN)("name",d.billingAddressContent.eanLabel)("placeholder",d.billingAddressContent.eanPlaceholder)}}function le(p,K){if(1&p&&t._UZ(0,"app-text-input",18),2&p){const d=t.oxw(3);t.Q6J("control",d.form.controls.payment.controls.requisition)("name",d.billingAddressContent.requisitionLabel)("placeholder",d.billingAddressContent.requisitionPlaceholder)}}function cn(p,K){if(1&p&&(t.ynx(0),t._UZ(1,"app-text-input",18)(2,"app-text-input",28),t.YNc(3,Ne,1,3,"app-text-input",22),t.YNc(4,le,1,3,"app-text-input",22),t.BQk()),2&p){const d=t.oxw(2);t.xp6(1),t.Q6J("control",d.form.controls.payment.controls.companyName)("name",d.billingAddressContent.companyLabel)("placeholder",d.billingAddressContent.companyPlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.payment.controls.CVR)("name",d.billingAddressContent.CVRLabel)("placeholder",d.billingAddressContent.CVRPlaceholder),t.xp6(1),t.Q6J("ngIf",d.enableEAN),t.xp6(1),t.Q6J("ngIf",d.enableEAN)}}function se(p,K){if(1&p&&t._UZ(0,"app-text-input",29),2&p){const d=t.oxw(2);t.Q6J("control",d.form.controls.payment.controls.address)("name",d.billingAddressContent.addressLabel)("placeholder",d.billingAddressContent.addressPlaceholder)}}function Ie(p,K){if(1&p&&t._UZ(0,"app-text-input",18),2&p){const d=t.oxw(2);t.Q6J("control",d.form.controls.payment.controls.zip)("name",d.billingAddressContent.zipCodeLabel)("placeholder",d.billingAddressContent.zipCodePlaceholder)}}function We(p,K){if(1&p&&t._UZ(0,"app-text-input",18),2&p){const d=t.oxw(2);t.Q6J("control",d.form.controls.payment.controls.city)("name",d.billingAddressContent.cityLabel)("placeholder",d.billingAddressContent.cityPlaceholder)}}function Mn(p,K){if(1&p&&t._UZ(0,"app-text-input",30),2&p){const d=t.oxw(2);t.Q6J("control",d.form.controls.payment.controls.note)("name",d.billingAddressContent.noteLabel)("subtitle",d.billingAddressContent.noteSubtitle)("placeholder",d.billingAddressContent.notePlaceholder)("textarea",!0)}}function ci(p,K){if(1&p&&(t.TgZ(0,"div",31),t._UZ(1,"app-toggle",5),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&p){const d=t.oxw(2);t.xp6(1),t.Q6J("control",d.form.controls.alternativeShipping),t.xp6(2),t.Oqu(d.shippingAddressSameAsBillingAddressLabel)}}function Ji(p,K){if(1&p&&(t.TgZ(0,"div",31),t._UZ(1,"app-toggle",5),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&p){const d=t.oxw(2);t.xp6(1),t.Q6J("control",d.form.controls.alternativeReclaimAddress),t.xp6(2),t.Oqu(d.reclaimAddressSameAsBillingAddressLabel)}}function Ei(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-center-section",13)(1,"button",14),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.toggleBusiness())}),t.TgZ(2,"span",15),t._uU(3,"Privat"),t.qZA(),t.TgZ(4,"span",16),t._uU(5,"Erhverv"),t.qZA()(),t.TgZ(6,"form",17),t.YNc(7,cn,5,8,"ng-container",2),t._UZ(8,"app-text-input",18)(9,"app-text-input",18)(10,"app-text-input",19)(11,"app-text-input",20),t.YNc(12,se,1,3,"app-text-input",21),t.YNc(13,Ie,1,3,"app-text-input",22),t.YNc(14,We,1,3,"app-text-input",22),t.TgZ(15,"div",23)(16,"label",24),t._uU(17),t.qZA(),t.TgZ(18,"app-text-button",25),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.openShippingDialog())}),t._uU(19),t.qZA()(),t.YNc(20,Mn,1,5,"app-text-input",26),t.YNc(21,ci,4,2,"div",27),t.YNc(22,Ji,4,2,"div",27),t.qZA()()}if(2&p){const d=K.ngLet,v=t.oxw();t.xp6(1),t.uIk("aria-label",d?"Erhverv":"Privat"),t.xp6(1),t.ekj("selected",!d),t.xp6(2),t.ekj("selected",d),t.xp6(2),t.Q6J("formGroup",v.form.controls.payment),t.xp6(1),t.Q6J("ngIf",d),t.xp6(1),t.Q6J("control",v.form.controls.payment.controls.firstName)("name",v.billingAddressContent.firstNameLabel)("placeholder",v.billingAddressContent.firstNamePlaceholder),t.xp6(1),t.Q6J("control",v.form.controls.payment.controls.lastName)("name",v.billingAddressContent.lastNameLabel)("placeholder",v.billingAddressContent.lastNamePlaceholder),t.xp6(1),t.Q6J("control",v.form.controls.payment.controls.email)("name",v.billingAddressContent.emailLabel)("placeholder",v.billingAddressContent.emailPlaceholder),t.xp6(1),t.Q6J("control",v.form.controls.payment.controls.telephone)("name",v.billingAddressContent.phoneLabel)("placeholder",v.billingAddressContent.phonePlaceholder),t.xp6(1),t.Q6J("ngIf",!v.disableAddress),t.xp6(1),t.Q6J("ngIf",!v.disableAddress),t.xp6(1),t.Q6J("ngIf",!v.disableAddress),t.xp6(3),t.Oqu(v.shippingPickupPriceLabel),t.xp6(2),t.hij(" ",v.shippingPickupButton," "),t.xp6(1),t.Q6J("ngIf",!v.eventShop),t.xp6(1),t.Q6J("ngIf",!v.disableAddress),t.xp6(1),t.Q6J("ngIf",v.enableReclaimAddress)}}function Yi(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"h2"),t._uU(2),t.qZA(),t.TgZ(3,"app-center-section",32)(4,"form",17),t._UZ(5,"app-text-input",18)(6,"app-text-input",18)(7,"app-text-input",20)(8,"app-text-input",29)(9,"app-text-input",29)(10,"app-text-input",18)(11,"app-text-input",18),t.qZA()(),t.BQk()),2&p){const d=t.oxw();t.xp6(2),t.Oqu(d.shippingAddressTitle),t.xp6(2),t.Q6J("formGroup",d.form.controls.shipping),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.firstName)("name",d.shippingAddressContent.firstNameLabel)("placeholder",d.shippingAddressContent.firstNamePlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.lastName)("name",d.shippingAddressContent.lastNameLabel)("placeholder",d.shippingAddressContent.lastNamePlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.telephone)("name",d.shippingAddressContent.phoneLabel)("placeholder",d.shippingAddressContent.phonePlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.companyName)("name",d.shippingAddressContent.companyLabel)("placeholder",d.shippingAddressContent.companyPlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.address)("name",d.shippingAddressContent.addressLabel)("placeholder",d.shippingAddressContent.addressPlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.zip)("name",d.shippingAddressContent.zipCodeLabel)("placeholder",d.shippingAddressContent.zipCodePlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.shipping.controls.city)("name",d.shippingAddressContent.cityLabel)("placeholder",d.shippingAddressContent.cityPlaceholder)}}function No(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"h2"),t._uU(2),t.qZA(),t.TgZ(3,"app-center-section",32)(4,"form",17),t._UZ(5,"app-text-input",19)(6,"app-text-input",20)(7,"app-text-input",29)(8,"app-text-input",18)(9,"app-text-input",18),t.qZA()(),t.BQk()),2&p){const d=t.oxw();t.xp6(2),t.Oqu(d.reclaimAddressTitle),t.xp6(2),t.Q6J("formGroup",d.form.controls.reclaim),t.xp6(1),t.Q6J("control",d.form.controls.reclaim.controls.email)("name",d.shippingAddressContent.emailLabel)("placeholder",d.shippingAddressContent.emailPlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.reclaim.controls.telephone)("name",d.shippingAddressContent.phoneLabel)("placeholder",d.shippingAddressContent.phonePlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.reclaim.controls.address)("name",d.shippingAddressContent.addressLabel)("placeholder",d.shippingAddressContent.addressPlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.reclaim.controls.zip)("name",d.shippingAddressContent.zipCodeLabel)("placeholder",d.shippingAddressContent.zipCodePlaceholder),t.xp6(1),t.Q6J("control",d.form.controls.reclaim.controls.city)("name",d.shippingAddressContent.cityLabel)("placeholder",d.shippingAddressContent.cityPlaceholder)}}function Mo(p,K){if(1&p&&(t.TgZ(0,"app-center-section",38)(1,"span"),t._UZ(2,"mat-icon",39),t._uU(3),t.qZA()()),2&p){const d=t.oxw(2);t.xp6(3),t.Oqu(d.ageVerificationContent.assistantMessageText)}}function Ai(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"img",40),t.TgZ(4,"app-text-button",41),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.openVerifyAgePopup())}),t._uU(5),t.qZA()()}if(2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.verifyLabel),t.xp6(1),t.Q6J("src",d.mitIDImage,t.LSH),t.xp6(2),t.Oqu(d.ageVerificationContent.buttonText)}}function Ui(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"mat-icon",42),t.TgZ(4,"app-text-button",41),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.openVerifyAgePopup())}),t._uU(5),t.qZA()()}if(2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.failedToOpenLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerificationFailedIcon),t.xp6(2),t.Oqu(d.ageVerificationContent.buttonText)}}function io(p,K){if(1&p&&(t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"mat-icon",43),t.qZA()),2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.successLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerifiedUserIcon)}}function Ye(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"mat-icon",42),t.TgZ(4,"app-text-button",41),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.openVerifyAgePopup())}),t._uU(5),t.qZA()()}if(2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.failedLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerificationFailedIcon),t.xp6(2),t.Oqu(d.ageVerificationContent.buttonText)}}function Sn(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Mo,4,1,"app-center-section",33),t.TgZ(2,"app-center-section",34,35)(4,"span",36),t._UZ(5,"mat-icon",37),t._uU(6),t.qZA(),t.YNc(7,Ai,6,3,"div",2),t.YNc(8,Ui,6,3,"div",2),t.YNc(9,io,4,2,"div",2),t.YNc(10,Ye,6,3,"div",2),t.qZA(),t.BQk()),2&p){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",d.isAssistant),t.xp6(1),t.ekj("missing",d.ageVerificationHighlight),t.xp6(3),t.Q6J("svgIcon",d.ageVerifiedUserIcon),t.xp6(1),t.hij(" ",d.ageVerificationContent.title," "),t.xp6(1),t.Q6J("ngIf",!d.ageVerificationFailed&&!d.sgAgeVerificationToken&&!d.ageVerificationFailedToOpen),t.xp6(1),t.Q6J("ngIf",!d.ageVerificationFailed&&!d.sgAgeVerificationToken&&d.ageVerificationFailedToOpen),t.xp6(1),t.Q6J("ngIf",!d.ageVerificationFailed&&d.sgAgeVerificationToken),t.xp6(1),t.Q6J("ngIf",d.ageVerificationFailed)}}function N(p,K){1&p&&t._UZ(0,"br")}function Zt(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div",44)(1,"div")(2,"span"),t._uU(3),t.qZA(),t._UZ(4,"mat-icon",37),t.TgZ(5,"app-text-button",41),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.focusAgeVerificationPopup())}),t._uU(6),t.qZA(),t.TgZ(7,"a",45),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.cancelAgeVerificationPopup())}),t._uU(8),t.qZA()()()}if(2&p){const d=t.oxw();t.xp6(3),t.Oqu(d.ageVerificationContent.behindPopupLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerifiedPopupIcon),t.xp6(2),t.Oqu(d.ageVerificationContent.behindPopupButtonText),t.xp6(2),t.Oqu(d.ageVerificationContent.behindPopupCancelText)}}let kt=(()=>{class p extends Fe{constructor(d,v,S,pe,Ue,hn){super(d,v,S,pe,Ue,hn),this.accountButton=this.content.get("accountButtonText");const yn=this.contentService.get("basketOverview");this.shippingPickupPriceLabel=yn.get("shippingPickupPriceLabelText"),this.shippingPickupButton=yn.get("shippingPickupButtonText")}ngOnInit(){super.ngOnInit(),this.eventShop=this.contentService.isEventShop,this.member=this.authService.member;const d=this.contentService.getMerchant();this.enableMembers=d.enableMembers,this.disableAddress=d.disableAddress}ngAfterViewInit(){setTimeout(()=>{this.showMember=!0},1e3)}openLoginDialog(){this.dialogService.openLoginDialog()}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(F.x),t.Y36(y.VG),t.Y36(y.ZY),t.Y36(y.Ns),t.Y36(U.e8))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-delivery-step"]],features:[t.qOj],decls:33,vars:25,consts:[["class","account-button",3,"visible","click",4,"ngIf"],["class","payment-info",4,"ngLet"],[4,"ngIf"],[1,"questions"],[1,"options"],[3,"control"],["target","_blank",3,"routerLink"],[1,"rich-text",3,"innerHtml"],[1,"stepper-buttons"],[3,"routerLink"],[3,"disabled","click"],["class","age-verification-behind",4,"ngIf"],[1,"account-button",3,"click"],[1,"payment-info"],[1,"business-toggle","unstyled-button",3,"click"],[1,"privat"],[1,"business"],[3,"formGroup"],[3,"control","name","placeholder"],["type","email",3,"control","name","placeholder"],["type","tel",3,"control","name","placeholder"],["class","large-field",3,"control","name","placeholder",4,"ngIf"],[3,"control","name","placeholder",4,"ngIf"],[1,"shipping-options"],["for","shippingOptions"],["id","shippingOptions","color","accent",3,"click"],["class","large-field",3,"control","name","subtitle","placeholder","textarea",4,"ngIf"],["class","alternative-toggle",4,"ngIf"],["type","number",3,"control","name","placeholder"],[1,"large-field",3,"control","name","placeholder"],[1,"large-field",3,"control","name","subtitle","placeholder","textarea"],[1,"alternative-toggle"],[1,"delivery-info"],["class","age-verification-assistant",4,"ngIf"],[1,"age-verification"],["ageVerification",""],[1,"age-verification-title"],[3,"svgIcon"],[1,"age-verification-assistant"],["svgIcon","info"],[1,"not-verified",3,"src"],[3,"click"],[1,"verify-failed",3,"svgIcon"],[1,"verify-success",3,"svgIcon"],[1,"age-verification-behind"],[1,"age-verificaiton-cancel",3,"click"]],template:function(v,S){1&v&&(t.YNc(0,ke,3,5,"app-text-button",0),t.TgZ(1,"div")(2,"h2"),t._uU(3),t.qZA(),t.YNc(4,Ei,23,27,"app-center-section",1),t.YNc(5,Yi,12,23,"ng-container",2),t.YNc(6,No,10,17,"ng-container",2),t.YNc(7,Sn,11,9,"ng-container",2),t.ALo(8,"async"),t.TgZ(9,"app-center-section",3)(10,"div",4)(11,"div"),t._UZ(12,"app-toggle",5),t.TgZ(13,"span"),t._uU(14),t._UZ(15,"br"),t.TgZ(16,"a",6),t._uU(17),t.qZA()()(),t.TgZ(18,"div"),t._UZ(19,"app-toggle",5),t.TgZ(20,"span"),t._UZ(21,"div",7),t.ALo(22,"sanitizeHtml"),t.YNc(23,N,1,0,"br",2),t._uU(24),t.TgZ(25,"a",6),t._uU(26),t.qZA()()()(),t.TgZ(27,"div",8)(28,"a",9),t._uU(29),t.qZA(),t.TgZ(30,"app-text-button",10),t.NdJ("click",function(){return S.next()}),t._uU(31),t.qZA()()()(),t.YNc(32,Zt,9,4,"div",11)),2&v&&(t.Q6J("ngIf",S.enableMembers),t.xp6(3),t.Oqu(S.billingAddressTitle),t.xp6(1),t.Q6J("ngLet",S.form.controls.isBusiness.value),t.xp6(1),t.Q6J("ngIf",S.form.controls.alternativeShipping.value),t.xp6(1),t.Q6J("ngIf",S.enableReclaimAddress&&S.form.controls.alternativeReclaimAddress.value),t.xp6(1),t.Q6J("ngIf",S.useAgeVerification&&t.lcZ(8,21,S.containsAlcohol$)),t.xp6(5),t.Q6J("control",S.form.controls.tradeAgreement),t.xp6(2),t.hij(" ",S.termsOfServiceLabel,""),t.xp6(2),t.Q6J("routerLink",S.tradeCondtionsLink),t.xp6(1),t.Oqu(S.termsOfServiceLinkLabel),t.xp6(2),t.Q6J("control",S.form.controls.newsletterConsent),t.xp6(2),t.Q6J("innerHtml",t.lcZ(22,23,S.contactConsentDescription),t.oJD),t.xp6(2),t.Q6J("ngIf",S.contactConsentDescription),t.xp6(1),t.hij(" ",S.processingTimeDescription," "),t.xp6(1),t.Q6J("routerLink",S.GDPRLink),t.xp6(1),t.Oqu(S.processingTimeLinkLabel),t.xp6(2),t.Q6J("routerLink",S.basketLink),t.xp6(1),t.Oqu(S.backButton),t.xp6(1),t.Q6J("disabled",S.formInvalid),t.xp6(1),t.hij(" ",S.approvalButton," "),t.xp6(1),t.Q6J("ngIf",S.ageVerificationPopup&&!S.ageVerificationPopup.closed))},dependencies:[Cn.O5,de._Y,de.JL,de.sg,He.h,X.Hw,_e.h,ze.t,dn.R,Tn.n,e.rH,Cn.Ov,je.A],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{box-shadow:0 1px 10px 1px #0000001a;width:100%}[_nghost-%COMP%]   .account-button[_ngcontent-%COMP%]{position:absolute;left:0;top:240px;height:52px;font-size:1em;font-weight:600;opacity:0;transform:translate(-100%);transition:transform 1.6s ease}[_nghost-%COMP%]   .account-button.visible[_ngcontent-%COMP%]{display:block;position:absolute;opacity:1;transform:translate(0);width:auto}[_nghost-%COMP%]   .account-button.visible[_ngcontent-%COMP%]     button{border-top-left-radius:0!important;border-bottom-left-radius:0!important}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .account-button.visible[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .account-button.visible[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .business-toggle[_ngcontent-%COMP%]{border:1px solid #878787;border-radius:4px;display:flex;padding:4px;gap:2px;margin-bottom:16px}[_nghost-%COMP%]   .business-toggle[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding:8px 16px;border-radius:4px;font-size:14px;line-height:14px}[_nghost-%COMP%]   .business-toggle[_ngcontent-%COMP%]   span.selected[_ngcontent-%COMP%]{background:var(--primary-color);color:#fff}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%], [_nghost-%COMP%]   .delivery-info[_ngcontent-%COMP%]{margin-bottom:28px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%]{margin-top:8px}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{word-break:break-word}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;grid-column-gap:20px;grid-row-gap:20px;box-sizing:border-box;width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .large-field[_ngcontent-%COMP%]{grid-column:span 2}[_nghost-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-toggle[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500;font-size:.95em}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.9em;font-weight:600}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;font-weight:600;font-size:.9em;padding:0 28px 16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{display:flex;flex-direction:column}}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]:first-child{padding-top:28px;border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   app-toggle[_ngcontent-%COMP%]{margin:3px 16px 0 0}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;align-items:flex-start}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:8px}}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]     p{margin:0}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:96px;margin:0 28px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]{margin:0 12px}}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{flex:0 1 auto;color:inherit;font-weight:600}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:before{content:"\\a0";display:inline-block;flex:0 0 auto;width:18px;height:18px;margin-right:8px;transform:rotate(180deg);background-image:url(/assets/icons/arrow.svg);background-size:100% 100%}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:200px;height:54px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 1 auto;width:auto;height:40px}}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:28px;border:2px solid #fff}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:16px;line-height:18px;font-weight:700;white-space:pre-wrap}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;width:20px;height:20px}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{fill:#000}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:28px;border:2px solid #fff}[_nghost-%COMP%]   .age-verification.missing[_ngcontent-%COMP%]{border-color:var(--warn-color)}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]   .age-verification-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:16px;line-height:18px;font-weight:700}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]   .age-verification-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]   .age-verification-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{fill:#000}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:0 28px}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .not-verified[_ngcontent-%COMP%]{height:40px;padding:10px 0;width:-moz-fit-content;width:fit-content;align-self:center}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .verify-failed[_ngcontent-%COMP%]{height:60px;width:-moz-fit-content;width:fit-content;align-self:center}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .verify-success[_ngcontent-%COMP%]{height:116px;width:-moz-fit-content;width:fit-content;align-self:center}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:max-content;align-self:center}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%]{position:fixed;z-index:1001;top:0;width:100vw;height:100vh;background-color:#000c}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;height:100%}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#fff;white-space:pre;text-align:center}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{height:48px;width:48px}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .age-verificaiton-cancel[_ngcontent-%COMP%]{color:#fff;cursor:pointer;text-decoration:none}']})}return p})();var fe=c(4021),sn=c(4187),Gn=c(2400);function Do(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(3);t.xp6(2),t.Oqu(v.billingAddressContent.companyLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.companyLabel)("formControl",d)}}function Fo(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(3);t.xp6(2),t.Oqu(v.billingAddressContent.CVRLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.CVRLabel)("formControl",d)}}function ir(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Do,4,3,"mat-form-field",22),t.YNc(2,Fo,4,3,"mat-form-field",22),t.BQk()),2&p){const d=t.oxw(2);t.xp6(1),t.Q6J("ngLet",d.form.controls.payment.controls.companyName),t.xp6(1),t.Q6J("ngLet",d.form.controls.payment.controls.CVR)}}function Ut(p,K){1&p&&t._UZ(0,"mat-icon",35)}function Rn(p,K){1&p&&t._UZ(0,"mat-icon",36)}function Bt(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,Ut,1,0,"mat-icon",33),t.YNc(2,Rn,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function he(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.YNc(4,Bt,3,2,"ng-container",31),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.firstNameLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.firstNamePlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value)}}function Be(p,K){1&p&&t._UZ(0,"mat-icon",35)}function xn(p,K){1&p&&t._UZ(0,"mat-icon",36)}function Fn(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,Be,1,0,"mat-icon",33),t.YNc(2,xn,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function li(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.YNc(4,Fn,3,2,"ng-container",31),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.lastNameLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.lastNamePlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value)}}function ji(p,K){1&p&&t._UZ(0,"mat-icon",35)}function wo(p,K){1&p&&t._UZ(0,"mat-icon",36)}function Wi(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,ji,1,0,"mat-icon",33),t.YNc(2,wo,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function go(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.YNc(4,Wi,3,2,"ng-container",31),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.addressLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.addressPlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value)}}function Xi(p,K){1&p&&t._UZ(0,"mat-icon",35)}function co(p,K){1&p&&t._UZ(0,"mat-icon",36)}function Ho(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,Xi,1,0,"mat-icon",33),t.YNc(2,co,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function ko(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",37)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.YNc(4,Ho,3,2,"ng-container",31),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.zipCodeLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.zipCodePlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value)}}function ii(p,K){1&p&&t._UZ(0,"mat-icon",35)}function lo(p,K){1&p&&t._UZ(0,"mat-icon",36)}function xo(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,ii,1,0,"mat-icon",33),t.YNc(2,lo,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function $o(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",38)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.YNc(4,xo,3,2,"ng-container",31),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.cityLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.cityPlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value)}}function Eo(p,K){1&p&&t._UZ(0,"mat-icon",35)}function wr(p,K){1&p&&t._UZ(0,"mat-icon",36)}function ur(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,Eo,1,0,"mat-icon",33),t.YNc(2,wr,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function xe(p,K){1&p&&(t.TgZ(0,"mat-error"),t._uU(1,"Mindst 8 tal eller start med landkode"),t.qZA())}function Mt(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.YNc(4,ur,3,2,"ng-container",31),t.YNc(5,xe,2,0,"mat-error",1),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.phoneLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.phonePlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value),t.xp6(1),t.Q6J("ngIf",d.hasError("telephone"))}}function Kt(p,K){1&p&&t._UZ(0,"mat-icon",35)}function ge(p,K){1&p&&t._UZ(0,"mat-icon",36)}function Pe(p,K){if(1&p&&(t.ynx(0,32),t.YNc(1,Kt,1,0,"mat-icon",33),t.YNc(2,ge,1,0,"mat-icon",34),t.BQk()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngIf",d.valid),t.xp6(1),t.Q6J("ngIf",!d.valid)}}function un(p,K){1&p&&(t.TgZ(0,"mat-error"),t._uU(1,"Ugyldig email"),t.qZA())}function Dn(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",39),t.YNc(4,Pe,3,2,"ng-container",31),t.YNc(5,un,2,0,"mat-error",1),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.billingAddressContent.emailLabel),t.xp6(1),t.Q6J("placeholder",v.billingAddressContent.emailPlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.touched||d.value),t.xp6(1),t.Q6J("ngIf",d.hasError("email"))}}function Un(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.ALo(3,"async"),t.qZA(),t._UZ(4,"textarea",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(t.lcZ(3,3,v.isWolt)?v.billingAddressContent.noteWoltLabel:v.billingAddressContent.noteLabel),t.xp6(2),t.Q6J("placeholder",v.billingAddressContent.notePlaceholder)("formControl",d)}}function Qn(p,K){if(1&p&&(t.TgZ(0,"mat-checkbox",8),t._uU(1),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("formControl",d.form.controls.alternativeReclaimAddress),t.xp6(1),t.hij(" ",d.reclaimAddressSameAsBillingAddressLabel," ")}}function Vn(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-center-section",16)(1,"h2"),t._uU(2),t.qZA(),t.TgZ(3,"button",17),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.toggleBusiness())}),t.TgZ(4,"span",18),t._uU(5,"Privat"),t.qZA(),t.TgZ(6,"span",19),t._uU(7,"Erhverv"),t.qZA()(),t.TgZ(8,"form",20),t.YNc(9,ir,3,2,"ng-container",1),t.TgZ(10,"div",21),t.YNc(11,he,5,4,"mat-form-field",22),t.YNc(12,li,5,4,"mat-form-field",22),t.qZA(),t.YNc(13,go,5,4,"mat-form-field",22),t.TgZ(14,"div",23),t.YNc(15,ko,5,4,"mat-form-field",24),t.YNc(16,$o,5,4,"mat-form-field",25),t.qZA(),t.YNc(17,Mt,6,5,"mat-form-field",22),t.YNc(18,Dn,6,5,"mat-form-field",22),t.YNc(19,Un,5,5,"mat-form-field",22),t.TgZ(20,"div",26)(21,"mat-checkbox",8),t._uU(22),t.qZA(),t.YNc(23,Qn,2,2,"mat-checkbox",27),t.qZA()()()}if(2&p){const d=K.ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.billingAddressTitle),t.xp6(1),t.uIk("aria-label",d?"Erhverv":"Privat"),t.xp6(1),t.ekj("selected",!d),t.xp6(2),t.ekj("selected",d),t.xp6(2),t.Q6J("formGroup",v.form.controls.payment),t.xp6(1),t.Q6J("ngIf",d),t.xp6(2),t.Q6J("ngLet",v.form.controls.payment.controls.firstName),t.xp6(1),t.Q6J("ngLet",v.form.controls.payment.controls.lastName),t.xp6(1),t.Q6J("ngLet",v.form.controls.payment.controls.address),t.xp6(2),t.Q6J("ngLet",v.form.controls.payment.controls.zip),t.xp6(1),t.Q6J("ngLet",v.form.controls.payment.controls.city),t.xp6(1),t.Q6J("ngLet",v.form.controls.payment.controls.telephone),t.xp6(1),t.Q6J("ngLet",v.form.controls.payment.controls.email),t.xp6(1),t.Q6J("ngLet",v.form.controls.payment.controls.note),t.xp6(2),t.Q6J("formControl",v.form.controls.alternativeShipping),t.xp6(1),t.Oqu(v.shippingAddressSameAsBillingAddressLabel),t.xp6(1),t.Q6J("ngIf",v.enableReclaimAddress)}}function Oi(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.firstNameLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.firstNamePlaceholder)("formControl",d)}}function ni(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.lastNameLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.lastNamePlaceholder)("formControl",d)}}function pi(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.addressLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.addressPlaceholder)("formControl",d)}}function Gi(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",37)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.zipCodeLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.zipCodePlaceholder)("formControl",d)}}function Zn(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",38)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.cityLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.cityPlaceholder)("formControl",d)}}function Li(p,K){1&p&&(t.TgZ(0,"mat-error"),t._uU(1,"Mindst 8 tal eller start med landkode"),t.qZA())}function So(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.YNc(4,Li,2,0,"mat-error",1),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.phoneLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.phonePlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.hasError("telephone"))}}function mo(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"app-center-section",40)(2,"h2"),t._uU(3),t.qZA(),t.TgZ(4,"form",20)(5,"div",21),t.YNc(6,Oi,4,3,"mat-form-field",22),t.YNc(7,ni,4,3,"mat-form-field",22),t.qZA(),t.YNc(8,pi,4,3,"mat-form-field",22),t.TgZ(9,"div",23),t.YNc(10,Gi,4,3,"mat-form-field",24),t.YNc(11,Zn,4,3,"mat-form-field",25),t.qZA(),t.YNc(12,So,5,4,"mat-form-field",22),t.qZA()(),t.BQk()),2&p){const d=t.oxw();t.xp6(3),t.Oqu(d.shippingAddressTitle),t.xp6(1),t.Q6J("formGroup",d.form.controls.shipping),t.xp6(2),t.Q6J("ngLet",d.form.controls.shipping.controls.firstName),t.xp6(1),t.Q6J("ngLet",d.form.controls.shipping.controls.lastName),t.xp6(1),t.Q6J("ngLet",d.form.controls.shipping.controls.address),t.xp6(2),t.Q6J("ngLet",d.form.controls.shipping.controls.zip),t.xp6(1),t.Q6J("ngLet",d.form.controls.shipping.controls.city),t.xp6(1),t.Q6J("ngLet",d.form.controls.shipping.controls.telephone)}}function qn(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",41),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.addressLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.addressPlaceholder)("formControl",d)}}function jo(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",37)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.zipCodeLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.zipCodePlaceholder)("formControl",d)}}function Bo(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",38)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",29),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.cityLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.cityPlaceholder)("formControl",d)}}function Ao(p,K){1&p&&(t.TgZ(0,"mat-error"),t._uU(1,"Mindst 8 tal eller start med landkode"),t.qZA())}function nr(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",30),t.YNc(4,Ao,2,0,"mat-error",1),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.phoneLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.phonePlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.hasError("telephone"))}}function Jr(p,K){1&p&&(t.TgZ(0,"mat-error"),t._uU(1,"Ugyldig email"),t.qZA())}function Ri(p,K){if(1&p&&(t.TgZ(0,"mat-form-field",28)(1,"mat-label"),t._uU(2),t.qZA(),t._UZ(3,"input",39),t.YNc(4,Jr,2,0,"mat-error",1),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingAddressContent.emailLabel),t.xp6(1),t.Q6J("placeholder",v.shippingAddressContent.emailPlaceholder)("formControl",d),t.xp6(1),t.Q6J("ngIf",d.hasError("email"))}}function Pi(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"app-center-section",40)(2,"h2"),t._uU(3),t.qZA(),t.TgZ(4,"form",20),t.YNc(5,qn,4,3,"mat-form-field",22),t.TgZ(6,"div",23),t.YNc(7,jo,4,3,"mat-form-field",24),t.YNc(8,Bo,4,3,"mat-form-field",25),t.qZA(),t.YNc(9,nr,5,4,"mat-form-field",22),t.YNc(10,Ri,5,4,"mat-form-field",22),t.qZA()(),t.BQk()),2&p){const d=t.oxw();t.xp6(3),t.Oqu(d.reclaimAddressTitle),t.xp6(1),t.Q6J("formGroup",d.form.controls.reclaim),t.xp6(1),t.Q6J("ngLet",d.form.controls.reclaim.controls.address),t.xp6(2),t.Q6J("ngLet",d.form.controls.reclaim.controls.zip),t.xp6(1),t.Q6J("ngLet",d.form.controls.reclaim.controls.city),t.xp6(1),t.Q6J("ngLet",d.form.controls.reclaim.controls.telephone),t.xp6(1),t.Q6J("ngLet",d.form.controls.reclaim.controls.email)}}function oo(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"date"),t.ALo(4,"date"),t.qZA(),t.BQk()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(2),t.AsE(" ",v.isMobile?t.xi3(3,2,d.date.toDate(),"shortDate"):t.xi3(4,5,d.date.toDate(),"fullDate")," ",null==d||null==d.time?null:d.time.period," ")}}function Go(p,K){if(1&p&&(t.TgZ(0,"app-center-section",47)(1,"span"),t._UZ(2,"mat-icon",48),t._uU(3),t.qZA()()),2&p){const d=t.oxw(2);t.xp6(3),t.Oqu(d.ageVerificationContent.assistantMessageText)}}function bi(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"img",49),t.TgZ(4,"app-text-button",50),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.openVerifyAgePopup())}),t._uU(5),t.qZA()()}if(2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.verifyLabel),t.xp6(1),t.Q6J("src",d.mitIDImage,t.LSH),t.xp6(2),t.Oqu(d.ageVerificationContent.buttonText)}}function Xn(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"mat-icon",51),t.TgZ(4,"app-text-button",50),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.openVerifyAgePopup())}),t._uU(5),t.qZA()()}if(2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.failedToOpenLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerificationFailedIcon),t.xp6(2),t.Oqu(d.ageVerificationContent.buttonText)}}function Zo(p,K){if(1&p&&(t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"mat-icon",52),t.qZA()),2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.successLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerifiedUserIcon)}}function uo(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div")(1,"span"),t._uU(2),t.qZA(),t._UZ(3,"mat-icon",51),t.TgZ(4,"app-text-button",50),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.openVerifyAgePopup())}),t._uU(5),t.qZA()()}if(2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.ageVerificationContent.failedLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerificationFailedIcon),t.xp6(2),t.Oqu(d.ageVerificationContent.buttonText)}}function Jo(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Go,4,1,"app-center-section",42),t.TgZ(2,"app-center-section",43,44)(4,"span",45),t._UZ(5,"mat-icon",46),t._uU(6),t.qZA(),t.YNc(7,bi,6,3,"div",1),t.YNc(8,Xn,6,3,"div",1),t.YNc(9,Zo,4,2,"div",1),t.YNc(10,uo,6,3,"div",1),t.qZA(),t.BQk()),2&p){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",d.isAssistant),t.xp6(1),t.ekj("missing",d.ageVerificationHighlight),t.xp6(3),t.Q6J("svgIcon",d.ageVerifiedUserIcon),t.xp6(1),t.hij(" ",d.ageVerificationContent.title," "),t.xp6(1),t.Q6J("ngIf",!d.ageVerificationFailed&&!d.sgAgeVerificationToken&&!d.ageVerificationFailedToOpen),t.xp6(1),t.Q6J("ngIf",!d.ageVerificationFailed&&!d.sgAgeVerificationToken&&d.ageVerificationFailedToOpen),t.xp6(1),t.Q6J("ngIf",!d.ageVerificationFailed&&d.sgAgeVerificationToken),t.xp6(1),t.Q6J("ngIf",d.ageVerificationFailed)}}function or(p,K){1&p&&t._UZ(0,"br")}function gr(p,K){if(1&p&&(t.TgZ(0,"a",56),t._UZ(1,"mat-icon",57),t._uU(2),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("href","tel:"+d.contactPhoneNumber,t.LSH),t.xp6(2),t.hij(" ",d.contactPhoneNumber," ")}}function rr(p,K){if(1&p&&(t.TgZ(0,"div",53)(1,"label",54),t._uU(2),t.qZA(),t.YNc(3,gr,3,2,"a",55),t.qZA()),2&p){const d=t.oxw();t.xp6(2),t.Oqu(d.contactInformation),t.xp6(1),t.Q6J("ngIf",d.contactPhoneNumber)}}function fo(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div",58)(1,"div")(2,"span"),t._uU(3),t.qZA(),t._UZ(4,"mat-icon",46),t.TgZ(5,"app-text-button",50),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.focusAgeVerificationPopup())}),t._uU(6),t.qZA(),t.TgZ(7,"a",59),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.cancelAgeVerificationPopup())}),t._uU(8),t.qZA()()()}if(2&p){const d=t.oxw();t.xp6(3),t.Oqu(d.ageVerificationContent.behindPopupLabel),t.xp6(1),t.Q6J("svgIcon",d.ageVerifiedPopupIcon),t.xp6(2),t.Oqu(d.ageVerificationContent.behindPopupButtonText),t.xp6(2),t.Oqu(d.ageVerificationContent.behindPopupCancelText)}}let js=(()=>{class p extends Fe{constructor(d,v,S,pe,Ue,hn,yn,An){super(d,v,S,pe,Ue,hn),this.shippingService=yn,this.deviceService=An,this.GDPRLink="https://www.dagrofa.dk/om-dagrofa/privatlivspolitik-dagrofa/";const Nn=this.contentService.get("basketOverview");this.contactInformation=Nn.get("contactInformation"),this.contactPhoneNumber=Nn.get("contactPhoneNumber")}ngOnInit(){super.ngOnInit(),this.isMobile=this.deviceService.isMobile(),this.shipping$=this.shippingService.getShipping(),this.subscription.add(this.shipping$.pipe().subscribe(d=>{const v=this.shippingService.getShippingOptions();this.shippingName=v.find(S=>S.id===d.shippingType)?.name}))}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(F.x),t.Y36(V.VG),t.Y36(y.ZY),t.Y36(y.Ns),t.Y36(y.e8),t.Y36(V.Nk),t.Y36(Ce.x0))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-meny-delivery-step"]],features:[t.qOj],decls:31,vars:26,consts:[["class","payment-info",4,"ngLet"],[4,"ngIf"],[1,"shipping-select",3,"click"],[1,"shipping-selected"],["svgIcon","shop"],[4,"ngLet"],[1,"questions"],[1,"options"],[3,"formControl"],["target","_blank",3,"routerLink"],[1,"rich-text",3,"innerHtml"],["target","_blank",3,"href"],[1,"stepper-buttons"],[3,"disabled","click"],["class","contact",4,"ngIf"],["class","age-verification-behind",4,"ngIf"],[1,"payment-info"],[1,"business-toggle","unstyled-button",3,"click"],[1,"privat"],[1,"business"],[3,"formGroup"],[1,"nameForm"],["appearance","outline",4,"ngLet"],[1,"addressForm"],["class","zipcode","appearance","outline",4,"ngLet"],["class","city","appearance","outline",4,"ngLet"],[1,"alternative-toggle"],[3,"formControl",4,"ngIf"],["appearance","outline"],["matInput","","type","text",3,"placeholder","formControl"],["matInput","","type","tel",3,"placeholder","formControl"],["matSuffix","",4,"ngIf"],["matSuffix",""],["class","valid","svgIcon","tick",4,"ngIf"],["class","invalid","svgIcon","cancel",4,"ngIf"],["svgIcon","tick",1,"valid"],["svgIcon","cancel",1,"invalid"],["appearance","outline",1,"zipcode"],["appearance","outline",1,"city"],["matInput","","type","email",3,"placeholder","formControl"],[1,"delivery-info"],["matInput","","type","texk",3,"placeholder","formControl"],["class","age-verification-assistant",4,"ngIf"],[1,"age-verification"],["ageVerification",""],[1,"age-verification-title"],[3,"svgIcon"],[1,"age-verification-assistant"],["svgIcon","info"],[1,"not-verified",3,"src"],[3,"click"],[1,"verify-failed",3,"svgIcon"],[1,"verify-success",3,"svgIcon"],[1,"contact"],["for","contact-information"],["class","contact-number",3,"href",4,"ngIf"],[1,"contact-number",3,"href"],["svgIcon","contact"],[1,"age-verification-behind"],[1,"age-verificaiton-cancel",3,"click"]],template:function(v,S){1&v&&(t.TgZ(0,"div"),t.YNc(1,Vn,24,19,"app-center-section",0),t.YNc(2,mo,13,8,"ng-container",1),t.YNc(3,Pi,11,7,"ng-container",1),t.TgZ(4,"a",2),t.NdJ("click",function(){return S.openShippingDialog()}),t.ynx(5,3),t.TgZ(6,"span"),t._UZ(7,"mat-icon",4),t._uU(8),t.qZA(),t.YNc(9,oo,5,8,"ng-container",5),t.ALo(10,"async"),t.BQk(),t.qZA(),t.YNc(11,Jo,11,9,"ng-container",1),t.ALo(12,"async"),t.TgZ(13,"app-center-section",6)(14,"div",7)(15,"mat-checkbox",8),t._uU(16),t.TgZ(17,"a",9),t._uU(18),t.qZA()(),t.TgZ(19,"mat-checkbox",8),t._UZ(20,"div",10),t.ALo(21,"sanitizeHtml"),t.YNc(22,or,1,0,"br",1),t._uU(23),t.TgZ(24,"a",11),t._uU(25),t.qZA()()()(),t.TgZ(26,"div",12)(27,"app-text-button",13),t.NdJ("click",function(){return S.next()}),t._uU(28),t.qZA(),t.YNc(29,rr,4,2,"div",14),t.qZA()(),t.YNc(30,fo,9,4,"div",15)),2&v&&(t.xp6(1),t.Q6J("ngLet",S.form.controls.isBusiness.value),t.xp6(1),t.Q6J("ngIf",S.form.controls.alternativeShipping.value),t.xp6(1),t.Q6J("ngIf",S.enableReclaimAddress&&S.form.controls.alternativeReclaimAddress.value),t.xp6(5),t.hij(" ",S.shippingName," "),t.xp6(1),t.Q6J("ngLet",t.lcZ(10,20,S.shipping$)),t.xp6(2),t.Q6J("ngIf",S.useAgeVerification&&t.lcZ(12,22,S.containsAlcohol$)),t.xp6(4),t.Q6J("formControl",S.form.controls.tradeAgreement),t.xp6(1),t.hij(" ",S.termsOfServiceLabel," "),t.xp6(1),t.Q6J("routerLink",S.tradeCondtionsLink),t.xp6(1),t.hij(" ",S.termsOfServiceLinkLabel," "),t.xp6(1),t.Q6J("formControl",S.form.controls.newsletterConsent),t.xp6(1),t.Q6J("innerHtml",t.lcZ(21,24,S.contactConsentDescription),t.oJD),t.xp6(2),t.Q6J("ngIf",S.contactConsentDescription),t.xp6(1),t.hij(" ",S.processingTimeDescription," "),t.xp6(1),t.Q6J("href",S.GDPRLink,t.LSH),t.xp6(1),t.Oqu(S.processingTimeLinkLabel),t.xp6(2),t.Q6J("disabled",S.formInvalid),t.xp6(1),t.hij(" ",S.approvalButton," "),t.xp6(1),t.Q6J("ngIf",S.contactInformation),t.xp6(1),t.Q6J("ngIf",S.ageVerificationPopup&&!S.ageVerificationPopup.closed))},dependencies:[Cn.O5,de._Y,de.Fj,de.JJ,de.JL,de.oH,de.sg,He.h,fe.FC,X.Hw,sn.nI,sn.v_,sn.$V,sn.nX,Gn.k0,_e.h,dn.R,e.rH,Cn.Ov,Cn.uU,je.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{box-shadow:0 1px 10px 1px #0000001a;width:100%;max-width:1296px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:95vw}}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#000}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%]{margin-top:8px}[_nghost-%COMP%]   .payment-info[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{word-break:break-word}}[_nghost-%COMP%]   .business-toggle[_ngcontent-%COMP%]{border:1px solid #8d8d8d;border-radius:48px;display:flex;padding:4px;gap:2px;margin-bottom:16px}[_nghost-%COMP%]   .business-toggle[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding:8px 16px;border-radius:48px;font-size:14px;line-height:14px}[_nghost-%COMP%]   .business-toggle[_ngcontent-%COMP%]   span.selected[_ngcontent-%COMP%]{background:#ce0029;color:#fff}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;box-sizing:border-box;width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-label, [_nghost-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-outline{color:#bebcbc}[_nghost-%COMP%]   form[_ngcontent-%COMP%]     mat-icon.valid path{fill:var(--primary-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]     mat-icon.invalid path{fill:var(--warn-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .nameForm[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:50%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .nameForm[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .nameForm[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .addressForm[_ngcontent-%COMP%]   .zipcode[_ngcontent-%COMP%]{width:25%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .addressForm[_ngcontent-%COMP%]   .city[_ngcontent-%COMP%]{width:75%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .addressForm[_ngcontent-%COMP%]   .zipcode[_ngcontent-%COMP%]{width:calc(40% - 8px)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .addressForm[_ngcontent-%COMP%]   .city[_ngcontent-%COMP%]{width:calc(60% - 8px)}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{width:50%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .alternative-toggle[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:30px 24px;cursor:pointer;font-size:16px;line-height:18px;text-transform:uppercase;font-weight:700}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]{gap:8px;font-size:12px;line-height:14px}}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   .no-shipping-selected[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   .no-shipping-selected[_ngcontent-%COMP%]     path{fill:var(--warn-color)}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{text-decoration-line:underline}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;border:2px solid #fff}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:16px;line-height:18px;font-weight:700;white-space:pre-wrap}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;width:20px;height:20px}[_nghost-%COMP%]   .age-verification-assistant[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{fill:#000}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;border:2px solid #fff}[_nghost-%COMP%]   .age-verification.missing[_ngcontent-%COMP%]{border-color:var(--warn-color)}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]   .age-verification-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-size:16px;line-height:18px;text-transform:uppercase;font-weight:700}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]   .age-verification-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%]   .age-verification-title[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg{fill:#000}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:0 28px}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .not-verified[_ngcontent-%COMP%]{height:40px;padding:10px 0;width:-moz-fit-content;width:fit-content;align-self:center}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .verify-failed[_ngcontent-%COMP%]{height:60px;width:-moz-fit-content;width:fit-content;align-self:center}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .verify-success[_ngcontent-%COMP%]{height:116px;width:-moz-fit-content;width:fit-content;align-self:center}[_nghost-%COMP%]   .age-verification[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:max-content;align-self:center}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:24px}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;align-items:flex-start}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .questions[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]     p{margin:0}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;gap:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]{flex-direction:column-reverse;gap:16px}}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:200px;height:48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;font-family:Poppins}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-weight:700}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:27px;height:27px}[_nghost-%COMP%]   .stepper-buttons[_ngcontent-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#000}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     label{white-space:pre-line}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:20px;height:20px;margin-top:2px}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%]{position:fixed;z-index:1001;top:0;width:100vw;height:100vh;background-color:#000c}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;align-items:center;justify-content:center;height:100%}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#fff;white-space:pre;text-align:center}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{height:48px;width:48px}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   .age-verification-behind[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .age-verificaiton-cancel[_ngcontent-%COMP%]{color:#fff;cursor:pointer;text-decoration:none}"]})}return p})();var Io=c(7592),_o=c(8712);let pr=(()=>{class p extends R.I{constructor(d,v,S,pe){super(d,"woltApprovalLJ"),this.woltService=v,this.dialogRef=S,this.woltResponse=pe,this.locale=f.environment.i18n.language,this.title=this.content.get("woltTitleText")||"Wolt \xe6ndring",this.description=this.content.get("woltDescriptionText")||"Din Wolt levering har \xe6ndret sig. Du kan forts\xe6tte dit k\xf8b med de f\xf8lgende \xe6ndringer, eller g\xe5 tilbage og v\xe6lge en anden levering",this.acceptButton=this.content.get("acceptButtonText")||"Ok",this.rejectButton=this.content.get("rejectButtonText")||"Ellers tak"}reject(){this.dialogRef.close()}accept(){this.woltService.save(this.woltResponse),this.dialogRef.close(!0)}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(_o._s),t.Y36(V.Nc),t.Y36(Io.hV),t.Y36(Io.eJ))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-wolt-dialog"]],features:[t.qOj],decls:16,vars:13,consts:[[1,"delivery"],[1,"dialog-options"],["type","secondary",1,"close-button",3,"click"],["cdkFocusInitial","",1,"submit-button",3,"click"]],template:function(v,S){1&v&&(t.TgZ(0,"h1"),t._uU(1),t.qZA(),t.TgZ(2,"p"),t._uU(3),t.qZA(),t.TgZ(4,"div",0)(5,"span"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.ALo(10,"number"),t.qZA()(),t.TgZ(11,"div",1)(12,"app-text-button",2),t.NdJ("click",function(){return S.reject()}),t._uU(13),t.qZA(),t.TgZ(14,"app-text-button",3),t.NdJ("click",function(){return S.accept()}),t._uU(15),t.qZA()()),2&v&&(t.xp6(1),t.Oqu(S.title),t.xp6(2),t.Oqu(S.description),t.xp6(3),t.hij("Tid: ",t.xi3(7,6,S.woltResponse.agreedTime,"d. MMMM y, HH:mm"),""),t.xp6(3),t.hij("Pris: ",t.Dn7(10,9,S.woltResponse.agreedPrice/100,".2-2",S.locale),",-"),t.xp6(4),t.hij(" ",S.rejectButton," "),t.xp6(2),t.hij(" ",S.acceptButton," "))},dependencies:[_e.h,Cn.JJ,Cn.uU],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:400px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%}}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:900;margin:12px 0;text-align:center}[_nghost-%COMP%]   p[_ngcontent-%COMP%]{font-size:.9em;color:#878787;margin:4px 0 16px;text-align:center}[_nghost-%COMP%]   .delivery[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:24px;height:40px}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex-direction:row}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex-direction:column;align-items:center}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:0;margin-bottom:16px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;height:56px;width:auto;font-weight:600}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:44px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 24px}}"]})}return p})();var mr=c(2444);const Wr=["title"];let fr=(()=>{class p extends R.I{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi){super(d,"basketOverview",{meta:!0,noIndex:!0}),this.categoryService=v,this.checkoutService=S,this.dialogService=pe,this.shippingService=Ue,this.router=hn,this.basketQuery=yn,this.basketService=An,this.cdr=Nn,this.deviceService=ui,this.customerDetailService=ei,this.themeService=jn,this.elRef=oi,this.mParticle=gi,this.checkoutUrl=`/${f.environment.urls.checkout}`,this.locale=f.environment.i18n.language,this.currency=f.environment.i18n.currency,this.subscription=new g.w0;const di=this.contentService.getSharedContent();this.totalPriceLabel=di.get("totalPriceLabelText"),this.storeClosed=this.contentService.getStoreClosed(),this.basketTitle=this.content.get("basketTitleLabelText"),this.checkoutButton=this.content.get("checkoutButtonLabel"),this.totalProductsPriceLabel=this.content.get("totalItemsLabelText"),this.packagingPriceLabel=this.content.get("packagingPriceLabelText"),this.shippingPriceLabel=this.content.get("shippingPriceLabel"),this.discountPriceLabel=this.content.get("discountPriceLabelText")||"Besparelse",this.giftCardDiscountPriceLabel=this.content.get("giftCardDiscountPriceLabel")||"Gavekort besparelse",this.giftCardRemainingValuePriceLabel=this.content.get("giftCardRemainingValuePriceLabel")||"Bel\xf8b tilbage p\xe5 gavekort",this.shippingPickupPriceLabel=this.content.get("shippingPickupPriceLabelText"),this.shippingPickupButton=this.content.get("shippingPickupButtonText"),this.ageRestrictedLabel=this.content.get("ageRestrictedText")||"Da du har tilf\xf8jet varer til din kurv med aldersbegr\xe6nsning, bedes du tilkendegive, at du er 18 \xe5r eller \xe6ldre",this.contactInformation=this.content.get("contactInformation"),this.contactPhoneNumber=this.content.get("contactPhoneNumber"),this.promotionCodeLabel=this.content.get("promotionCodeLabelText")||"Rabatkode",this.promotionCodePlaceholder=this.content.get("promotionPlaceholderText")||"Indtast rabatkode",this.promotionCodeButton=this.content.get("promotionCodeButtonText")||"Check",this.errorMessage={title:this.content.get("errorMessageTitle")||"Justering N\xf8dvendig",message:this.content.get("errorMessageContent")||"Et eller flere af de produkter, du har lagt i kurven, g\xf8r at du ikke kan g\xe5 til betaling. Produkterne der er fremh\xe6vet med en r\xf8d kant, kan ikke k\xf8bes med den udleveringstype, du har valgt. Du kan pr\xf8ve at fjerne produktet med den r\xf8de kant, eller pr\xf8ve at skifte udleveringstype. Hvis du \xf8nsker det, kan du klikke p\xe5 knappen herunder, og s\xe5 fjerner systemet de produkter, der g\xf8r du ikke kan g\xe5 til betaling.",button:this.content.get("errorMessageButtonText")||"Juster min Kurv"}}ngOnInit(){this.productHasErrors=!1,this.showProductErrors=!1,this.isMobile=this.deviceService.isMobile(),this.isLoading$=this.basketQuery.selectLoading(),this.totalPrice$=this.basketQuery.selectTotal$,this.linesTotalPrice$=this.basketQuery.selectLinesTotal$,this.packagingPrice$=this.basketQuery.selectPackagingPrice$,this.discount$=this.basketQuery.selectDiscount$,this.giftCardDiscount$=this.basketQuery.selectGiftCardDiscount$,this.giftCardRemainingValue$=this.basketQuery.selectRemainingGiftCardValue$,this.containsAlcohol$=this.basketQuery.selectContainsAlcohol$,this.shipping$=this.shippingService.getShipping(),this.shippingValid$=this.shippingService.getShippingValid(),this.missingBasketTotal$=this.shippingService.getMissingBasketTotal(),this.form=this.customerDetailService.getForm();const d=this.contentService.getMerchant();this.giftCardEnabled=d.enableGiftCards,this.useAgeVerification=d.useAgeVerification,this.subscription.add(this.router.events.pipe((0,x.h)(v=>v instanceof e.OD)).subscribe(()=>{this.checkoutService.isCheckingOut=!0})),d.enableDiscountCodes&&this.subscription.add(this.basketQuery.selectDiscountCode$.subscribe(v=>{this.promotionForm=this.basketService.getPromotionForm(v)})),this.subscription.add(this.basketQuery.selectErrorProductIds$.subscribe(v=>{this.productHasErrors=v.length>0,this.showProductErrors&&0===v.length&&(this.showProductErrors=!1)})),this.subscription.add((0,vt.a)([this.basketQuery.selectProductLines$,this.shippingValid$,this.containsAlcohol$,this.form.controls.legalAgeConsent.valueChanges.pipe((0,Ct.O)(this.form.controls.legalAgeConsent.value)),this.missingBasketTotal$]).subscribe(([v,S,pe,Ue,hn])=>{this.isValidState=v.length>0&&S&&(!(!this.useAgeVerification&&pe)||Ue)&&0===hn,this.cdr.detectChanges()})),this.mParticle?.viewBasket()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}getCategoryById(d){return this.categoryService.getById(d)}openShippingDialog(){this.dialogService.openShippingDialog()}getSelectedShipping(d){return this.shippingService.getSelectedShipping(d)}startCheckout(){this.checkoutService.isCheckingOut=!0}checkout(){if(this.validSubscription?.unsubscribe(),this.validateBasket(),this.productHasErrors)return void this.titleRef.nativeElement.scrollIntoView({behavior:"smooth"});const d=this.basketQuery.getErrors();d.length?this.basketService.displayError(d[0].errorMessage):this.router.navigate([this.checkoutUrl])}validateBasket(){this.showProductErrors=this.productHasErrors}submitDiscount(){var d=this;return(0,ht.Z)(function*(){const{promotionCode:v}=d.promotionForm.value,S=d.basketService.validateGiftCardCode(v?.trim());if(d.giftCardEnabled&&S)d.basketService.addGiftcardCode(v?.trim());else if(!(yield d.basketService.addDiscountCode(v)))return d.promotionForm.controls.promotionCode.setErrors({"invalid-code":!0}),void d.promotionForm.updateValueAndValidity();d.promotionForm.controls.promotionCode.setErrors(void 0),d.promotionForm.updateValueAndValidity()})()}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(y.HE),t.Y36(G.Z),t.Y36(y.xA),t.Y36(V.Nk),t.Y36(e.F0),t.Y36(y.Ns),t.Y36(y.vD),t.Y36(t.sBO),t.Y36(Ce.x0),t.Y36(y.zc),t.Y36(y.fY),t.Y36(t.SBq),t.Y36(y.p$,8))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-basket-utilty"]],viewQuery:function(v,S){if(1&v&&t.Gf(Wr,5,t.SBq),2&v){let pe;t.iGM(pe=t.CRH())&&(S.titleRef=pe.first)}},features:[t.qOj],decls:0,vars:0,template:function(v,S){},encapsulation:2,changeDetection:0})}return p})();function ms(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"div",15)(2,"h3"),t._UZ(3,"mat-icon",16),t._uU(4),t.qZA(),t.TgZ(5,"p"),t._uU(6),t.qZA()(),t.TgZ(7,"app-text-button",17),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.removeInvalidBasket())}),t._uU(8),t.qZA(),t.BQk()}if(2&p){const d=t.oxw();t.xp6(4),t.Oqu(d.errorMessage.title),t.xp6(2),t.Oqu(d.errorMessage.message),t.xp6(2),t.Oqu(d.errorMessage.button)}}function fs(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-basket-overview-item",22),t.NdJ("callback",function(){t.CHM(d);const S=t.oxw(3);return t.KtG(S.showProductErrors&&S.validateBasket())}),t.qZA()}if(2&p){const d=K.$implicit,v=t.oxw(3);t.Q6J("productLine",d)("columns",v.columns)("error",v.showProductErrors&&d.error)}}function _s(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"th",20),t._uU(2),t.qZA(),t.YNc(3,fs,1,3,"app-basket-overview-item",21),t.BQk()),2&p){const d=K.$implicit;t.xp6(2),t.Oqu(d.key),t.xp6(1),t.Q6J("ngForOf",d.value)}}function sr(p,K){if(1&p&&(t.TgZ(0,"div",18),t.YNc(1,_s,4,2,"ng-container",19),t.ALo(2,"keyvalue"),t.qZA()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngForOf",t.lcZ(2,1,d))}}function wt(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",33),t._uU(2),t.qZA(),t._UZ(3,"app-toggle",34),t.qZA()),2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.customerPackagingLabel),t.xp6(1),t.Q6J("control",d.form.controls.customerPackaging)}}function Nt(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-text-button",39),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(3);return t.KtG(S.openShippingDialog())}),t._uU(1),t.qZA()}if(2&p){const d=t.oxw(3);t.xp6(1),t.hij(" ",d.shippingPickupButton," ")}}function ot(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-text-button",40),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(3);return t.KtG(S.openShippingDialog())}),t._uU(1),t.ALo(2,"date"),t.ALo(3,"date"),t.qZA()}if(2&p){const d=K.ngIf,v=t.oxw(3);t.xp6(1),t.AsE(" ",v.isMobile?t.xi3(2,2,d.date.toDate(),"shortDate"):t.xi3(3,5,d.date.toDate(),"fullDate")," ",null==d||null==d.time?null:d.time.period," ")}}function ae(p,K){if(1&p&&(t.TgZ(0,"div",35)(1,"label",36),t._uU(2),t.qZA(),t.YNc(3,Nt,2,1,"app-text-button",37),t.YNc(4,ot,4,8,"app-text-button",38),t.ALo(5,"async"),t.qZA()),2&p){const d=K.ngLet,v=t.oxw(2);t.xp6(2),t.Oqu(v.shippingPickupPriceLabel),t.xp6(1),t.Q6J("ngIf",!d),t.xp6(1),t.Q6J("ngIf",t.lcZ(5,3,d&&v.shipping$))}}function Ge(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",41),t._uU(2),t.qZA(),t.TgZ(3,"span",42),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.shippingPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.shipping,".2-2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function ri(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",43),t._uU(2),t.qZA(),t.TgZ(3,"span",44),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.discountPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.discount,".2-2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function Ti(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",45),t._uU(2),t.qZA(),t.TgZ(3,"span",46),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.giftCardDiscountPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.giftCardDiscount,".2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function _r(p,K){1&p&&(t.TgZ(0,"div",49),t._UZ(1,"img",50),t.qZA())}function Br(p,K){if(1&p&&(t.TgZ(0,"span",51),t._uU(1),t.ALo(2,"number"),t.ALo(3,"displayCurrency"),t.qZA()),2&p){const d=t.oxw(2).ngLet,v=t.oxw();t.xp6(1),t.AsE(" ",t.Dn7(2,2,d.total,".2-2",v.locale)," ",t.lcZ(3,6,v.currency)," ")}}function $r(p,K){if(1&p&&(t.ynx(0),t.YNc(1,_r,2,0,"div",47),t.YNc(2,Br,4,8,"span",48),t.BQk()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngIf",d),t.xp6(1),t.Q6J("ngIf",!d)}}function Cs(p,K){if(1&p&&(t.TgZ(0,"div")(1,"label",52),t._uU(2),t.qZA(),t.TgZ(3,"span",53),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.giftCardRemainingValuePriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.giftCardRemaining,".2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function Co(p,K){1&p&&(t.TgZ(0,"mat-error"),t._uU(1,"Ugyldig kode"),t.qZA())}function Gs(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"div",54)(1,"label",55),t._uU(2),t.qZA(),t.TgZ(3,"form",56),t.NdJ("ngSubmit",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.submitDiscount())}),t.TgZ(4,"app-text-input",57),t.YNc(5,Co,2,0,"mat-error",3),t.qZA(),t.TgZ(6,"app-text-button"),t._uU(7),t.qZA()()()}if(2&p){const d=K.ngIf,v=t.oxw(2);t.xp6(2),t.Oqu(v.promotionCodeLabel),t.xp6(1),t.Q6J("formGroup",v.promotionForm),t.xp6(1),t.Q6J("control",d)("placeholder",v.promotionCodePlaceholder),t.xp6(1),t.Q6J("ngIf",d.hasError("invalid-code")),t.xp6(2),t.Oqu(v.promotionCodeButton)}}function zs(p,K){if(1&p&&(t.TgZ(0,"div",58)(1,"div")(2,"label",59),t._uU(3),t.TgZ(4,"span"),t._uU(5,"*"),t.qZA()(),t._UZ(6,"app-toggle",60),t.qZA(),t._UZ(7,"img",61),t.qZA()),2&p){const d=t.oxw(2);t.xp6(3),t.Oqu(d.ageRestrictedLabel),t.xp6(3),t.Q6J("control",null==d.form||null==d.form.controls?null:d.form.controls.legalAgeConsent)}}function Rs(p,K){if(1&p&&(t.TgZ(0,"a",65),t._UZ(1,"mat-icon",66),t._uU(2),t.qZA()),2&p){const d=t.oxw(3);t.Q6J("href","tel:"+d.contactPhoneNumber,t.LSH),t.xp6(2),t.hij(" ",d.contactPhoneNumber," ")}}function ga(p,K){if(1&p&&(t.TgZ(0,"div",62)(1,"label",63),t._uU(2),t.qZA(),t.YNc(3,Rs,3,2,"a",64),t.qZA()),2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.contactInformation),t.xp6(1),t.Q6J("ngIf",d.contactPhoneNumber)}}function Fi(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"div")(2,"label",23),t._uU(3),t.qZA(),t.TgZ(4,"span",24),t._uU(5),t.ALo(6,"number"),t.ALo(7,"displayCurrency"),t.qZA()(),t.YNc(8,wt,4,2,"div",3),t.ALo(9,"async"),t.TgZ(10,"div")(11,"label",25),t._uU(12),t.qZA(),t.TgZ(13,"span",26),t._uU(14),t.ALo(15,"number"),t.ALo(16,"displayCurrency"),t.qZA()(),t.YNc(17,ae,6,5,"div",27),t.ALo(18,"async"),t.YNc(19,Ge,7,9,"div",3),t.YNc(20,ri,7,9,"div",3),t.YNc(21,Ti,7,9,"div",3),t.TgZ(22,"div",28)(23,"label",29),t._uU(24),t.qZA(),t.YNc(25,$r,3,2,"ng-container",10),t.ALo(26,"async"),t.qZA(),t.YNc(27,Cs,7,9,"div",3),t.YNc(28,Gs,8,6,"div",30),t.YNc(29,zs,8,2,"div",31),t.ALo(30,"async"),t.YNc(31,ga,4,2,"div",32),t.BQk()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(3),t.Oqu(v.totalProductsPriceLabel),t.xp6(2),t.AsE("",t.Dn7(6,17,d.products,".2-2",v.locale)," ",t.lcZ(7,21,v.currency),""),t.xp6(3),t.Q6J("ngIf",t.lcZ(9,23,v.allowCustomerPackaging)),t.xp6(4),t.Oqu(v.packagingPriceLabel),t.xp6(2),t.AsE("",t.Dn7(15,25,d.packaging,".2-2",v.locale)," ",t.lcZ(16,29,v.currency),""),t.xp6(3),t.Q6J("ngLet",t.lcZ(18,31,v.shippingValid$)),t.xp6(2),t.Q6J("ngIf",void 0!==d.shipping),t.xp6(1),t.Q6J("ngIf",0!==d.discount),t.xp6(1),t.Q6J("ngIf",0!==d.giftCardDiscount),t.xp6(3),t.Oqu(v.totalPriceLabel),t.xp6(1),t.Q6J("ngLet",t.lcZ(26,33,v.isLoading$)),t.xp6(2),t.Q6J("ngIf",0!==d.giftCardDiscount),t.xp6(1),t.Q6J("ngIf",null==v.promotionForm?null:v.promotionForm.controls.promotionCode),t.xp6(1),t.Q6J("ngIf",t.lcZ(30,35,!v.useAgeVerification&&v.containsAlcohol$)),t.xp6(2),t.Q6J("ngIf",v.contactInformation)}}function Ns(p,K){if(1&p&&(t.TgZ(0,"div",67),t._UZ(1,"app-text-input",68),t.qZA()),2&p){const d=t.oxw();t.xp6(1),t.Q6J("control",d.form.controls.payment.controls.note)("name",d.noteLabel)("subtitle",d.noteSubtitle)("placeholder",d.notePlaceholder)("textarea",!0)}}function Ko(p,K){if(1&p&&(t.TgZ(0,"span",69),t._uU(1),t.qZA()),2&p){const d=t.oxw();t.xp6(1),t.Oqu(d.missingShippingText)}}const ar=function(p,K,d,v,S,pe,Ue){return{total:p,shipping:K,products:d,packaging:v,discount:S,giftCardDiscount:pe,giftCardRemaining:Ue}};let Cr=(()=>{class p extends fr{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi,di){super(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi),this.shippingQuery=di,this.buyMoreButton=this.content.get("buyMoreButtonText"),this.columns={name:this.content.get("productNameColumnLabelText"),price:this.content.get("itemPriceColumnLabelText"),total:this.content.get("productTotalPriceLabelText"),quantity:this.content.get("quantity"),delete:this.content.get("removeItemColumnLabelText")},this.customerPackagingLabel=this.content.get("customerPackagingLabelText")||"Medbring egen emballage";const si=this.contentService.get("basketShipping");this.noteLabel=si.get("billingNoteLabelText"),this.noteSubtitle=si.get("billingNoteSubtitleText"),this.notePlaceholder=si.get("billingNotePlaceholderText")}ngOnInit(){super.ngOnInit();const d=this.contentService.getMerchant().type===i.Pc.APETIT;this.missingShippingText=d?"Husk at v\xe6lge afhentningstidspunkt":"V\xe6lg hvordan du vil have varerne",this.eventShop=this.contentService.isEventShop,this.productLines$=this.basketQuery.selectProductLines$.pipe((0,mr.V)(this.basketQuery.selectErrorProductIds$),(0,zt.U)(([v,S])=>{const pe=new Map;for(const Ue of v){const hn=this.basketService.getProduct(Ue);if(!hn)continue;const yn=this.categoryService.getById(hn.primaryCategoryId)?.name;pe.has(yn)||pe.set(yn,[]);const An=S.includes(Ue.productId),Nn=pe.get(yn),ui={...Ue,product:hn,error:An};Nn.push(ui),pe.set(yn,Nn)}return pe})),this.allowCustomerPackaging=this.shippingQuery.selectCustomerPackaging$,this.subscription.add(this.form.controls.customerPackaging.valueChanges.subscribe(v=>{this.basketService.customerPackaging=v,this.basketService.calculateBasket()})),this.cdr.detectChanges()}removeInvalidBasket(){const d=this.basketQuery.getErrorProductIds();this.productLines$.pipe((0,H.q)(1)).subscribe(v=>{for(const[S,pe]of v)for(const Ue of pe)d.includes(Ue.productId)&&this.basketService.deleteProduct(Ue.product)})}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(y.HE),t.Y36(G.Z),t.Y36(F.x),t.Y36(z.N),t.Y36(e.F0),t.Y36(y.Ns),t.Y36(y.vD),t.Y36(t.sBO),t.Y36(Ce.x0),t.Y36(O.z),t.Y36(y.fY),t.Y36(t.SBq),t.Y36(y.p$,8),t.Y36(V.VG))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-basket-overview"]],features:[t.qOj],decls:42,vars:42,consts:[["title",""],["color","accent","routerLink","/"],[1,"checkout-button",3,"disabled","click"],[4,"ngIf"],["scope","col",1,"name-header"],["scope","col",1,"product-price-header"],["scope","col",1,"line-price-header"],["scope","col",1,"quantity-header"],["scope","col",1,"remove-header"],["class","table-content",4,"ngLet"],[4,"ngLet"],["class","note-field-wrapper",4,"ngIf"],[1,"payment"],["class","missing-shipping",4,"ngIf"],[3,"disabled","click"],[1,"basket-error"],["svgIcon","warning"],[1,"basket-error-button",3,"click"],[1,"table-content"],[4,"ngFor","ngForOf"],["scope","row",1,"category-header"],[3,"productLine","columns","error","callback",4,"ngFor","ngForOf"],[3,"productLine","columns","error","callback"],["for","total-groceries"],["id","total-groceries"],["for","total-packaging"],["id","total-packaging"],["class","shipping-options",4,"ngLet"],[1,"total-price"],["for","total-price"],["class","discount-code",4,"ngIf"],["class","age-restricted",4,"ngIf"],["class","contact",4,"ngIf"],["for","customer-packaging"],["id","customer-packaging",3,"control"],[1,"shipping-options"],["for","shippingOptions"],["id","shippingOptions","color","primary",3,"click",4,"ngIf"],["id","shippingOptions","color","accent",3,"click",4,"ngIf"],["id","shippingOptions","color","primary",3,"click"],["id","shippingOptions","color","accent",3,"click"],["for","shipping-price"],["id","shipping-price"],["for","discount"],["id","discount"],["for","giftCardDiscount"],["id","giftCardDiscount"],["class","loading",4,"ngIf"],["id","total-price",4,"ngIf"],[1,"loading"],["src","assets/preloader.gif","alt","loading price"],["id","total-price"],["for","gift-card-remaining"],["id","gift-card-remaining"],[1,"discount-code"],["for","discount-code"],["id","discount-code",3,"formGroup","ngSubmit"],[3,"control","placeholder"],[1,"age-restricted"],["for","age-restricted"],["id","age-restricted",3,"control"],["src","assets/images/sundhedsstyrelsen.png","alt","Aldersgr\xe6nse for salg: 16 \xe5r for alkohol under 16,5% og 18 \xe5r for alkohol fra 16,5%"],[1,"contact"],["for","contact-information","tabindex","0"],["class","contact-number unstyled-link",3,"href",4,"ngIf"],[1,"contact-number","unstyled-link",3,"href"],["svgIcon","contact"],[1,"note-field-wrapper"],[1,"note-field",3,"control","name","subtitle","placeholder","textarea"],[1,"missing-shipping"]],template:function(v,S){if(1&v&&(t.TgZ(0,"div")(1,"header")(2,"h1",null,0),t._uU(4),t.qZA(),t.TgZ(5,"div")(6,"app-text-button",1),t._uU(7),t.qZA(),t.TgZ(8,"app-text-button",2),t.NdJ("click",function(){return S.checkout()}),t._uU(9),t.qZA()()(),t.YNc(10,ms,9,3,"ng-container",3),t.TgZ(11,"table")(12,"thead")(13,"tr")(14,"th",4),t._uU(15),t.qZA(),t.TgZ(16,"th",5),t._uU(17),t.qZA(),t.TgZ(18,"th",6),t._uU(19),t.qZA(),t.TgZ(20,"th",7),t._uU(21),t.qZA(),t.TgZ(22,"th",8),t._uU(23),t.qZA()()(),t.TgZ(24,"app-center-section"),t.YNc(25,sr,3,3,"div",9),t.ALo(26,"async"),t.YNc(27,Fi,32,37,"ng-container",10),t.ALo(28,"async"),t.ALo(29,"async"),t.ALo(30,"async"),t.ALo(31,"async"),t.ALo(32,"async"),t.ALo(33,"async"),t.ALo(34,"async"),t.YNc(35,Ns,2,5,"div",11),t.TgZ(36,"div",12),t._UZ(37,"app-payment-options"),t.YNc(38,Ko,2,1,"span",13),t.ALo(39,"async"),t.TgZ(40,"app-text-button",14),t.NdJ("click",function(){return S.checkout()}),t._uU(41),t.qZA()()()()()),2&v){let pe;t.xp6(4),t.Oqu(S.basketTitle),t.xp6(3),t.Oqu(S.buyMoreButton),t.xp6(1),t.Q6J("disabled",!S.isValidState||S.storeClosed),t.xp6(1),t.hij(" ",S.checkoutButton," "),t.xp6(1),t.Q6J("ngIf",S.showProductErrors),t.xp6(5),t.Oqu(S.columns.name),t.xp6(2),t.Oqu(S.columns.price),t.xp6(2),t.Oqu(S.columns.total),t.xp6(2),t.Oqu(S.columns.quantity),t.xp6(2),t.Oqu(S.columns.delete),t.xp6(2),t.Q6J("ngLet",t.lcZ(26,16,S.productLines$)),t.xp6(2),t.Q6J("ngLet",t.Hh0(34,ar,t.lcZ(28,18,S.totalPrice$),(null==(pe=t.lcZ(29,20,S.shipping$))?null:pe.price)||0,t.lcZ(30,22,S.linesTotalPrice$),t.lcZ(31,24,S.packagingPrice$)||0,t.lcZ(32,26,S.discount$)||0,t.lcZ(33,28,S.giftCardDiscount$)||0,t.lcZ(34,30,S.giftCardRemainingValue$)||0)),t.xp6(8),t.Q6J("ngIf",!S.eventShop&&S.form),t.xp6(3),t.Q6J("ngIf",!1===t.lcZ(39,32,S.shippingValid$)),t.xp6(2),t.Q6J("disabled",!S.isValidState||S.storeClosed),t.xp6(1),t.Oqu(S.checkoutButton)}},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color);padding:0}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{font-size:.95em}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .note-field-wrapper[_ngcontent-%COMP%]{display:none}.clpartyservice-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   .checkout-button[_ngcontent-%COMP%]     .text-button{color:var(--text-primary-color)}.apetit-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}.apetit-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .checkout-button[_ngcontent-%COMP%]     .text-button{border:1px solid #fff;color:#fff}.spar-theme[_nghost-%COMP%]   div[_ngcontent-%COMP%]:not(.table-content)   .contact[_ngcontent-%COMP%]{font-family:Poppins}[_nghost-%COMP%]   img.hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{margin-top:20px;max-width:var(--nxt-width)}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   header[_ngcontent-%COMP%]{flex-direction:column;justify-content:initial;align-items:flex-start}}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{min-width:160px;margin-right:8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:first-child{flex:1 1 auto;min-width:unset}}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(2){min-width:200px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(2){flex:1 1 auto;min-width:unset}}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:24px;margin-bottom:24px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{display:flex;gap:8px;margin:0 0 8px;font-size:18px;line-height:20px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:unset;font-size:14px;line-height:16px}[_nghost-%COMP%]   .basket-error-button[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;line-height:18px;font-weight:700;height:48px;width:min-content;align-self:flex-end;margin-bottom:32px}[_nghost-%COMP%]   table[_ngcontent-%COMP%]{display:block;box-sizing:border-box;border-spacing:0;border-collapse:unset;border-color:unset;margin-top:40px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   table[_ngcontent-%COMP%]{overflow-x:auto;max-width:100vw}}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{display:flex;margin-bottom:12px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px 160px 64px;grid-template-rows:100%;grid-column-gap:20px;box-sizing:border-box;width:100%;padding:8px 16px}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{color:#a6a6a6;font-size:.9em;font-weight:500}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .name-header[_ngcontent-%COMP%]{justify-self:left}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .product-price-header[_ngcontent-%COMP%]{justify-self:center}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .line-price-header[_ngcontent-%COMP%]{justify-self:center}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .quantity-header[_ngcontent-%COMP%]{justify-self:left;margin-left:70px;transform:translate(-50%)}[_nghost-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   .remove-header[_ngcontent-%COMP%]{justify-self:left}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin-bottom:200px;min-width:960px;padding:0 0 28px;box-shadow:0 1px 10px 1px #0000001a;overflow:hidden}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{min-width:360px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child):not(.error){border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .category-header[_ngcontent-%COMP%]{display:flex;align-items:center;height:40px;padding:8px 16px;background-color:#f7f7f7}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   app-basket-overview-item[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content){display:flex;justify-content:space-between;align-items:center;padding:12px 20px;font-weight:600;border-top:1px solid #d1d9dc}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content){font-size:.95em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).shipping-options{flex:0 1 auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).shipping-options{font-size:.95em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).shipping-options   label[_ngcontent-%COMP%]{padding-right:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).shipping-options   app-text-button[_ngcontent-%COMP%]{height:40px;width:unset}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).shipping-options   app-text-button[_ngcontent-%COMP%]{line-height:1em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).contact{font-size:.8em;color:#5f6061}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).contact   mat-icon[_ngcontent-%COMP%]{width:27px;height:27px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).total-price{font-size:1.5em;line-height:.8em}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).total-price   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#a2b2b8;font-weight:600;font-size:.6em}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).total-price   .loading[_ngcontent-%COMP%]{margin-right:64px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code, [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code   label[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code   label[_ngcontent-%COMP%]{align-self:flex-start}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code   form[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code   form[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code   form[_ngcontent-%COMP%]   app-text-input[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code   form[_ngcontent-%COMP%]   app-text-input[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{max-width:max-content}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code   form[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code   form[_ngcontent-%COMP%]{display:flex;gap:16px;margin-bottom:-10px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).discount-code   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).gift-card-code   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:44px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).age-restricted{flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).age-restricted > div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).age-restricted > img[_ngcontent-%COMP%]{width:min-content}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).payment{flex-direction:column;gap:8px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).payment   app-payment-options[_ngcontent-%COMP%]{flex:0 1 auto;margin-top:0}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).payment   .missing-shipping[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).payment   app-text-button[_ngcontent-%COMP%]{flex:0 1 auto;width:200px;height:56px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.table-content).payment   app-text-button[_ngcontent-%COMP%]{width:100%;height:40px}}[_nghost-%COMP%]   .note-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .note-field[_ngcontent-%COMP%]  label{font-size:1em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .note-field[_ngcontent-%COMP%]  label{font-size:.95em}}"],changeDetection:0})}return p})();function Qs(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Oqu(d.summary)}}function yi(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"td",19)(1,"app-counter",20),t.NdJ("add",function(S){t.CHM(d);const pe=t.oxw().ngLet,Ue=t.oxw();return t.KtG(Ue.addProduct(pe,S))})("remove",function(S){t.CHM(d);const pe=t.oxw().ngLet,Ue=t.oxw();return t.KtG(Ue.removeProduct(pe,S))}),t.qZA()()}if(2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(1),t.Q6J("minCount",d.minCount)("lockRemove",v.productLine.quantity===d.minCount)("count",v.productLine.quantity)}}function tr(p,K){if(1&p&&(t.TgZ(0,"td",19)(1,"div"),t._uU(2),t.qZA()()),2&p){const d=t.oxw(2);t.xp6(2),t.Oqu(d.productLine.quantity)}}function Oo(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&p){const d=t.oxw().$implicit;t.xp6(1),t.Oqu(d.summary)}}function Kr(p,K){if(1&p&&t._UZ(0,"mat-icon",27),2&p){const d=t.oxw(6);t.Q6J("svgIcon",d.multiplyIcon)}}function as(p,K){if(1&p&&(t.TgZ(0,"div"),t._uU(1),t.YNc(2,Kr,1,1,"mat-icon",26),t._uU(3),t.qZA()),2&p){const d=t.oxw().$implicit,v=t.oxw(4);t.xp6(1),t.hij(" ",d.quantity," "),t.xp6(1),t.Q6J("ngIf",1!==v.productLine.quantity),t.xp6(1),t.hij(" ",1!==v.productLine.quantity?v.productLine.quantity:""," ")}}function qr(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"tr",24)(1,"td",2)(2,"div",4)(3,"img",5),t.NdJ("load",function(){t.CHM(d);const S=t.oxw(4);return t.KtG(S.cdr.detectChanges())}),t.ALo(4,"source"),t.qZA()(),t.TgZ(5,"div",6)(6,"b"),t._uU(7),t.qZA(),t.YNc(8,Oo,2,1,"span",7),t.qZA()(),t.TgZ(9,"td",19)(10,"div",25),t.YNc(11,as,4,3,"div",7),t.qZA()()()}if(2&p){const d=K.$implicit,v=t.oxw(3).ngLet;t.xp6(3),t.Q6J("src",t.lcZ(4,5,d),t.LSH)("alt",d.productDisplayName),t.xp6(4),t.Oqu(d.productDisplayName),t.xp6(1),t.Q6J("ngIf",v.summary),t.xp6(3),t.Q6J("ngIf",d.price||1!==d.quantity)}}function Sr(p,K){if(1&p&&(t.TgZ(0,"div",22),t.YNc(1,qr,12,7,"tr",23),t.qZA()),2&p){const d=t.oxw().ngLet;t.xp6(1),t.Q6J("ngForOf",d)}}function Or(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Sr,2,1,"div",21),t.BQk()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngIf",null==d?null:d.length)}}function Ur(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"tr",1)(2,"td",2)(3,"a",3)(4,"div",4)(5,"img",5),t.NdJ("load",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.cdr.detectChanges())}),t.ALo(6,"source"),t.qZA()(),t.TgZ(7,"div",6)(8,"b"),t._uU(9),t.qZA(),t.YNc(10,Qs,2,1,"span",7),t.qZA()()(),t.TgZ(11,"td",8)(12,"a",3)(13,"div",4)(14,"img",5),t.NdJ("load",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.cdr.detectChanges())}),t.ALo(15,"source"),t.qZA()()()(),t.TgZ(16,"td",9)(17,"div",6)(18,"b"),t._uU(19),t.qZA()()(),t.TgZ(20,"td",10)(21,"label",11),t._uU(22),t.qZA(),t.TgZ(23,"span",12),t._uU(24),t.ALo(25,"number"),t.ALo(26,"sum"),t.ALo(27,"displayCurrency"),t.qZA()(),t.TgZ(28,"td",13)(29,"label",14),t._uU(30),t.qZA(),t.TgZ(31,"span",15),t._uU(32),t.ALo(33,"number"),t.ALo(34,"sum"),t.ALo(35,"displayCurrency"),t.qZA()(),t.YNc(36,yi,2,3,"td",16),t.YNc(37,tr,3,1,"td",16),t.TgZ(38,"td",17)(39,"app-icon-button",18),t.NdJ("click",function(){const pe=t.CHM(d).ngLet,Ue=t.oxw();return t.KtG(Ue.deleteProduct(pe))}),t.qZA()()(),t.YNc(40,Or,2,1,"ng-container",0),t.ALo(41,"modules"),t.BQk()}if(2&p){const d=K.ngLet,v=t.oxw();t.xp6(3),t.Q6J("routerLink",v.productLine.giftCardInfo?v.giftCardUrl:v.createProductUrl(d)),t.xp6(2),t.Q6J("src",t.lcZ(6,20,d),t.LSH)("alt",d.productDisplayName),t.xp6(4),t.Oqu(d.productDisplayName),t.xp6(1),t.Q6J("ngIf",d.summary),t.xp6(2),t.Q6J("routerLink",v.productLine.giftCardInfo?v.giftCardUrl:v.createProductUrl(d)),t.xp6(2),t.Q6J("src",t.lcZ(15,22,d),t.LSH)("alt",d.productDisplayName),t.xp6(5),t.Oqu(d.productDisplayName),t.xp6(3),t.Oqu(v.columns.price),t.xp6(2),t.AsE("",t.Dn7(25,24,t.lcZ(26,28,v.productLine)/v.productLine.quantity,".2-2",v.locale)," ",t.lcZ(27,30,v.currency),""),t.xp6(6),t.Oqu(v.columns.total),t.xp6(2),t.AsE("",t.Dn7(33,32,t.lcZ(34,36,v.productLine),".2-2",v.locale)," ",t.lcZ(35,38,v.currency),""),t.xp6(4),t.Q6J("ngIf",!v.productLine.giftCardInfo),t.xp6(1),t.Q6J("ngIf",v.productLine.giftCardInfo),t.xp6(2),t.Q6J("icon",v.deleteLineIcon)("border",!1),t.xp6(1),t.Q6J("ngLet",t.lcZ(41,40,d))}}let Xr=(()=>{class p{constructor(d,v,S){this.basketService=d,this.productService=v,this.cdr=S,this.giftCardUrl=`/${f.environment.urls.gift_card}`,this.callback=new t.vpe,this.error=!1,this.locale=f.environment.i18n.language,this.currency=f.environment.i18n.currency,this.deleteLineIcon=it.qq.bigCross,this.multiplyIcon=it.Ym.delete,this.placeholder=J.b}addProduct(d,v){this.callback.emit(),this.basketService.addProduct(d,v)}removeProduct(d,v){this.callback.emit(),this.basketService.removeProduct(d,v)}deleteProduct(d){this.callback.emit(),this.basketService.deleteProduct(d)}createProductUrl(d){return this.productService.createProductUrl(d)}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y.vD),t.Y36(y.M5),t.Y36(t.sBO))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-basket-overview-item"]],hostVars:2,hostBindings:function(v,S){2&v&&t.ekj("error",S.error)},inputs:{productLine:"productLine",columns:"columns",error:"error"},outputs:{callback:"callback"},decls:1,vars:1,consts:[[4,"ngLet"],[1,"product"],[1,"product-info"],[3,"routerLink"],[1,"basket-product-image-container"],[3,"src","alt","load"],[1,"basket-product-description"],[4,"ngIf"],[1,"mobile-product-info","mobile-basket-product-image-container"],[1,"mobile-product-info","mobile-basket-product-description"],[1,"product-price"],["for","product-price"],["id","product-price"],[1,"basket-price"],["for","total-price"],["id","total-price"],["class","basket-product-quantity",4,"ngIf"],[1,"basket-remove-product"],[3,"icon","border","click"],[1,"basket-product-quantity"],[3,"minCount","lockRemove","count","add","remove"],["class","modules",4,"ngIf"],[1,"modules"],["class","module-line",4,"ngFor","ngForOf"],[1,"module-line"],[1,"module-quantity"],["class","multiply-icon",3,"svgIcon",4,"ngIf"],[1,"multiply-icon",3,"svgIcon"]],template:function(v,S){1&v&&t.YNc(0,Ur,42,42,"ng-container",0),2&v&&t.Q6J("ngLet",S.productLine.product)},styles:["[_nghost-%COMP%]{max-width:100%;box-sizing:border-box}.error[_nghost-%COMP%]{border:4px solid var(--warn-color)}[_nghost-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:center;align-items:center;max-width:88px;margin-right:12px}[_nghost-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;max-height:100%;object-fit:contain}[_nghost-%COMP%]   .basket-product-description[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;max-width:100%;overflow:hidden}[_nghost-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.85em;margin-bottom:4px}[_nghost-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.9em;font-weight:500;color:var(--text-accent-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px 160px 64px;grid-template-rows:100%;grid-column-gap:20px;align-items:center;height:100px;max-width:100%;box-sizing:border-box;padding:16px}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;height:100%}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .mobile-product-info[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]{grid-template-columns:min-content 1fr min-content;grid-template-rows:repeat(3,1fr);grid-column-gap:8px;height:160px}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .mobile-product-info[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:initial;align-self:center;font-weight:500}}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;justify-self:left;color:inherit;text-decoration:none;height:100%;min-height:0}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .mobile-basket-product-image-container[_ngcontent-%COMP%]{grid-column:1;grid-row:1;min-height:0;width:100%}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .mobile-basket-product-image-container[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .mobile-basket-product-description[_ngcontent-%COMP%]{grid-column:2;grid-row:1;justify-self:center;width:100%;overflow:hidden}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .mobile-basket-product-description[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9em;margin-bottom:4px}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-self:center;text-align:right;font-weight:600;white-space:nowrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .product-price[_ngcontent-%COMP%]{grid-column:1;grid-row:2;justify-self:start;font-size:.8em}}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{justify-self:right;margin-right:32px;font-weight:600;white-space:nowrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{grid-column:3;grid-row:2;margin:0;justify-self:end;font-size:.8em}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]{grid-column:1/span 3;grid-row:3}}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{height:32px;width:140px;line-height:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]     app-icon-button{height:32px;width:32px;min-height:32px;min-width:32px}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:60px;line-height:32px;margin:0 40px;background-color:var(--accent-lighter-color);box-sizing:border-box;font-weight:700;text-align:center;border-style:solid;border-width:1px;border-radius:64px;border-color:var(--accent-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(100% - 80px)}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-remove-product[_ngcontent-%COMP%]{grid-column:3;grid-row:1;justify-self:center;align-self:start;height:auto}}[_nghost-%COMP%]   .product[_ngcontent-%COMP%]   .basket-remove-product[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]{margin:0 0 12px 40px}@media only screen and (min-width: 0px) and (max-width: 400px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]{margin-left:0}}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,1fr) 160px 160px 160px 64px;grid-template-rows:100%;grid-column-gap:20px;align-items:center;height:100px;max-width:100%;box-sizing:border-box;height:60px;padding:8px 16px 0;margin:0}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;height:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]{grid-template-columns:1fr min-content}}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{flex-direction:row;justify-content:flex-start;grid-column:1/span 3}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{grid-column:1}}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{height:52px;width:100%}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]{grid-column:4}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]{grid-column:2}}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]{display:flex;justify-content:center;width:140px;margin-left:auto;margin-right:16px}@media only screen and (min-width: 0px) and (max-width: 400px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]{width:60px;margin-right:0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]{width:60px}}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]   .multiply-icon[_ngcontent-%COMP%]{height:15px;width:10px;padding:0 3px}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;justify-self:flex-end;box-sizing:border-box;height:32px;width:60px;font-weight:700;border:1px solid var(--accent-color);border-radius:64px}"]})}return p})();function vs(p,K){1&p&&t._UZ(0,"app-basket-overview")}function Zr(p,K){1&p&&t._UZ(0,"app-meny-basket-overview")}let Zi=(()=>{class p extends R.I{constructor(d){super(d,"basketOverview",{noIndex:!0}),this.isDagrofa=this.contentService.isDagrofa}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-basket-overview-wrapper"]],features:[t.qOj],decls:2,vars:2,consts:[[4,"ngIf"]],template:function(v,S){1&v&&(t.YNc(0,vs,1,0,"app-basket-overview",0),t.YNc(1,Zr,1,0,"app-meny-basket-overview",0)),2&v&&(t.Q6J("ngIf",!S.isDagrofa),t.xp6(1),t.Q6J("ngIf",S.isDagrofa))},changeDetection:0})}return p})();function Fs(p,K){if(1&p&&(t.TgZ(0,"div",10)(1,"span"),t._uU(2),t.qZA()()),2&p){const d=K.$implicit;t.xp6(2),t.AsE("",d.quantity," X ",d.productDisplayName,"")}}function ts(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Fs,3,2,"div",9),t.BQk()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngForOf",d)}}let Hr=(()=>{class p{constructor(d,v,S){this.basketService=d,this.productService=v,this.cdr=S,this.callback=new t.vpe,this.locale=f.environment.i18n.language,this.currency=f.environment.i18n.currency,this.deleteLineIcon=it.qq.bigCross,this.placeholder=J.b}addProduct(d,v){this.callback.emit(),this.basketService.addProduct(d,v)}removeProduct(d,v,S){this.callback.emit(),v!==(S=S||1)?this.basketService.removeProduct(d,S):this.basketService.deleteProduct(d)}deleteProduct(d){this.callback.emit(),this.basketService.deleteProduct(d)}createProductUrl(d){return this.productService.createProductUrl(d)}calculatePrice(){let d=this.product.price,v=0;const S=this.product.productModules;(this.product?.hasModules||S?.length>0)&&Object.values(this.product.moduleChoices).forEach(Ue=>{Object.values(Ue.products).forEach(hn=>{d+=hn.price*hn.quantity,v+=hn.quantity})});let pe=0;return this.product.discountLevels&&this.product.discountLevels.forEach(Ue=>{pe<Ue.discountPercent&&(this.quantity>=Ue.minimumQuantity||Ue.includeModuleProducts&&v>=Ue.minimumQuantity)&&(pe=Ue.discountPercent)}),d*this.quantity*(1-pe/100)}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y.vD),t.Y36(y.M5),t.Y36(t.sBO))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-meny-basket-item"]],inputs:{product:"product",quantity:"quantity",error:"error"},outputs:{callback:"callback"},decls:17,vars:23,consts:[[1,"product-image",3,"routerLink"],[3,"src","alt","load"],[1,"product-info",3,"routerLink"],[1,"basket-product-description"],[4,"ngLet"],[1,"basket-price"],[1,"basket-quantity"],[3,"minCount","count","add","remove"],["icon","trash",3,"border","click"],["class","modules",4,"ngFor","ngForOf"],[1,"modules"]],template:function(v,S){1&v&&(t.TgZ(0,"div")(1,"a",0)(2,"img",1),t.NdJ("load",function(){return S.cdr.detectChanges()}),t.ALo(3,"source"),t.qZA()(),t.TgZ(4,"a",2)(5,"div",3)(6,"b"),t._uU(7),t.qZA(),t.YNc(8,ts,2,1,"ng-container",4),t.ALo(9,"modules"),t.qZA()(),t.TgZ(10,"span",5),t._uU(11),t.ALo(12,"number"),t.ALo(13,"displayCurrency"),t.qZA(),t.TgZ(14,"div",6)(15,"app-counter",7),t.NdJ("add",function(Ue){return S.addProduct(S.product,Ue)})("remove",function(Ue){return S.removeProduct(S.product,S.quantity,Ue)}),t.qZA(),t.TgZ(16,"app-icon-button",8),t.NdJ("click",function(){return S.deleteProduct(S.product)}),t.qZA()()()),2&v&&(t.ekj("error",S.error),t.xp6(1),t.Q6J("routerLink",S.createProductUrl(S.product)),t.xp6(1),t.Q6J("src",t.lcZ(3,13,S.product),t.LSH)("alt",S.product.productDisplayName),t.xp6(2),t.Q6J("routerLink",S.createProductUrl(S.product)),t.xp6(3),t.Oqu(S.product.productDisplayName),t.xp6(1),t.Q6J("ngLet",t.lcZ(9,15,S.product)),t.xp6(3),t.AsE("",t.Dn7(12,17,S.calculatePrice(),".2-2",S.locale)," ",t.lcZ(13,21,S.currency),""),t.xp6(4),t.Q6J("minCount",S.product.minCount)("count",S.quantity),t.xp6(1),t.Q6J("border",!1))},styles:["[_nghost-%COMP%]{max-width:100%}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:100px 2fr max-content minmax(max-content,1fr);gap:16px;align-items:center;height:100%;max-width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:24px}[_nghost-%COMP%] > div.error[_ngcontent-%COMP%]{border:4px solid var(--warn-color);padding:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:100px 1fr;grid-template-rows:1fr min-content min-content;padding:16px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]{grid-row-start:1;grid-row-end:span 3}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{grid-row-start:3;grid-column:2;justify-self:end}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100px;width:100px;object-fit:cover;border-radius:8px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;max-width:100%;overflow:hidden}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{flex:0 0 auto;font-size:18px;line-height:22px;margin-bottom:8px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-info[_ngcontent-%COMP%]   .basket-product-description[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:0 0 auto;font-size:14px;line-height:22px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{font-size:18px;line-height:22px;font-weight:700}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-quantity[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;gap:16px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-quantity[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{height:40px;max-width:150px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-quantity[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:40px;height:40px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-quantity[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button{padding:12px;background-color:#f1eee2}"]})}return p})();function Vr(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"div",14)(2,"h3"),t._UZ(3,"mat-icon",15),t._uU(4),t.qZA(),t.TgZ(5,"p"),t._uU(6),t.qZA()(),t.TgZ(7,"app-text-button",16),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.removeInvalidBasket())}),t._uU(8),t.qZA(),t.BQk()}if(2&p){const d=t.oxw();t.xp6(4),t.Oqu(d.errorMessage.title),t.xp6(2),t.Oqu(d.errorMessage.message),t.xp6(2),t.Oqu(d.errorMessage.button)}}function cs(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"app-meny-basket-item",19),t.NdJ("callback",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.showProductErrors&&S.validateBasket())}),t.qZA()}if(2&p){const d=K.$implicit,v=t.oxw(2);t.Q6J("product",d.product)("quantity",d.quantity)("error",v.showProductErrors&&d.error)}}function Bs(p,K){if(1&p&&(t.TgZ(0,"div",17),t.YNc(1,cs,1,3,"app-meny-basket-item",18),t.qZA()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngForOf",d)}}function Js(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.ALo(3,"displayCurrency"),t.qZA()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(1),t.AsE("",t.Dn7(2,2,d.packaging,".2-2",v.locale)," ",t.lcZ(3,6,v.currency),"")}}function Ws(p,K){1&p&&(t.TgZ(0,"span"),t._uU(1,"Gratis"),t.qZA())}function Yr(p,K){if(1&p&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"number"),t.ALo(3,"displayCurrency"),t.qZA()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(1),t.AsE("",t.Dn7(2,2,d.shipping,".2-2",v.locale)," ",t.lcZ(3,6,v.currency),"")}}function cr(p,K){1&p&&(t.TgZ(0,"span"),t._uU(1,"Gratis"),t.qZA())}function Ar(p,K){if(1&p&&(t.TgZ(0,"span",24)(1,"span"),t._uU(2),t.qZA(),t.TgZ(3,"span"),t._uU(4),t.ALo(5,"number"),t.ALo(6,"displayCurrency"),t.qZA()()),2&p){const d=t.oxw().ngLet,v=t.oxw();t.xp6(2),t.Oqu(v.discountPriceLabel),t.xp6(2),t.AsE("",t.Dn7(5,3,d.discount,".2-2",v.locale)," ",t.lcZ(6,7,v.currency),"")}}function bs(p,K){if(1&p&&(t.TgZ(0,"div",20)(1,"span",21)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"span"),t._uU(5),t.ALo(6,"number"),t.ALo(7,"displayCurrency"),t.qZA()(),t.TgZ(8,"span",21)(9,"span"),t._uU(10),t.qZA(),t.YNc(11,Js,4,8,"span",3),t.YNc(12,Ws,2,0,"span",3),t.qZA(),t.TgZ(13,"span",21)(14,"span"),t._uU(15),t.qZA(),t.YNc(16,Yr,4,8,"span",3),t.YNc(17,cr,2,0,"span",3),t.qZA(),t.YNc(18,Ar,7,9,"span",22),t.TgZ(19,"span",21)(20,"b"),t._uU(21),t.qZA(),t.TgZ(22,"b"),t._uU(23),t.ALo(24,"number"),t.ALo(25,"displayCurrency"),t.qZA()(),t.TgZ(26,"span",23),t._uU(27),t.ALo(28,"number"),t.ALo(29,"displayCurrency"),t.qZA()()),2&p){const d=K.ngLet,v=t.oxw();t.xp6(3),t.Oqu(v.totalProductsPriceLabel),t.xp6(2),t.AsE("",t.Dn7(6,15,d.products,".2-2",v.locale)," ",t.lcZ(7,19,v.currency),""),t.xp6(5),t.Oqu(v.packagingPriceLabel),t.xp6(1),t.Q6J("ngIf",d.packaging),t.xp6(1),t.Q6J("ngIf",!d.packaging),t.xp6(3),t.Oqu(v.shippingPriceLabel),t.xp6(1),t.Q6J("ngIf",d.shipping),t.xp6(1),t.Q6J("ngIf",!d.shipping),t.xp6(1),t.Q6J("ngIf",0!==d.discount),t.xp6(3),t.Oqu(v.totalPriceLabel),t.xp6(2),t.AsE("",t.Dn7(24,21,d.total,".2-2",v.locale)," ",t.lcZ(25,25,v.currency),""),t.xp6(4),t.AsE(" (heraf moms ",t.Dn7(28,27,v.calculateTax(d.products,d.shipping,d.packaging,d.discount),".2-2",v.locale)," ",t.lcZ(29,31,v.currency),") ")}}function Ms(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"a",25),t.NdJ("click",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.showDiscount=!0)}),t._uU(2,"Har du en rabatkode?"),t.qZA(),t.BQk()}}function Us(p,K){if(1&p){const d=t.EpF();t.ynx(0),t.TgZ(1,"form",26),t.NdJ("ngSubmit",function(){t.CHM(d);const S=t.oxw(2);return t.KtG(S.submitDiscount())}),t.TgZ(2,"mat-form-field",27)(3,"mat-label"),t._uU(4),t.qZA(),t._UZ(5,"input",28),t.qZA(),t.TgZ(6,"button",29),t._uU(7),t.qZA()(),t.BQk()}if(2&p){const d=t.oxw().ngIf,v=t.oxw();t.xp6(1),t.Q6J("formGroup",v.promotionForm),t.xp6(3),t.Oqu(v.promotionCodePlaceholder),t.xp6(1),t.Q6J("placeholder",v.promotionCodePlaceholder)("formControl",d),t.xp6(2),t.Oqu(v.promotionCodeButton)}}function ls(p,K){if(1&p&&(t.ynx(0),t.YNc(1,Ms,3,0,"ng-container",3),t.YNc(2,Us,8,5,"ng-container",3),t.BQk()),2&p){const d=t.oxw();t.xp6(1),t.Q6J("ngIf",!d.showDiscount),t.xp6(1),t.Q6J("ngIf",d.showDiscount)}}function Zs(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"span",32),t._UZ(2,"mat-icon",33),t._uU(3),t.qZA(),t.TgZ(4,"span",32),t._uU(5),t.qZA(),t.BQk()),2&p){const d=t.oxw(2);t.xp6(3),t.hij(" ",d.shippingPickupPriceLabel," "),t.xp6(2),t.Oqu(d.shippingPickupButton)}}function jr(p,K){if(1&p&&(t.ynx(0),t.TgZ(1,"span"),t._uU(2),t.ALo(3,"date"),t.ALo(4,"date"),t.qZA(),t.BQk()),2&p){const d=K.ngLet,v=t.oxw(3);t.xp6(2),t.AsE(" ",v.isMobile?t.xi3(3,2,d.date.toDate(),"shortDate"):t.xi3(4,5,d.date.toDate(),"fullDate")," ",null==d||null==d.time?null:d.time.period," ")}}function Ir(p,K){if(1&p&&(t.ynx(0,34),t.TgZ(1,"span"),t._UZ(2,"mat-icon",33),t._uU(3),t.qZA(),t.YNc(4,jr,5,8,"ng-container",12),t.ALo(5,"async"),t.BQk()),2&p){const d=t.oxw(2);t.xp6(3),t.hij(" ",d.shippingName," "),t.xp6(1),t.Q6J("ngLet",t.lcZ(5,2,d.shipping$))}}function L(p,K){if(1&p){const d=t.EpF();t.TgZ(0,"a",30),t.NdJ("click",function(){t.CHM(d);const S=t.oxw();return t.KtG(S.openShippingDialog())}),t.YNc(1,Zs,6,2,"ng-container",3),t.YNc(2,Ir,6,4,"ng-container",31),t.qZA()}if(2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngIf",!d),t.xp6(1),t.Q6J("ngIf",d)}}function Vt(p,K){if(1&p&&(t.TgZ(0,"div",35)(1,"div")(2,"label",36),t._uU(3),t.TgZ(4,"span"),t._uU(5,"*"),t.qZA()(),t._UZ(6,"app-toggle",37),t.qZA(),t._UZ(7,"img",38),t.qZA()),2&p){const d=t.oxw();t.xp6(3),t.Oqu(d.ageRestrictedLabel),t.xp6(3),t.Q6J("control",null==d.form||null==d.form.controls?null:d.form.controls.legalAgeConsent)}}function at(p,K){if(1&p&&t._UZ(0,"app-product-additions",40),2&p){const d=t.oxw().ngLet;t.Q6J("additions",d)}}function It(p,K){if(1&p&&(t.ynx(0),t.YNc(1,at,1,1,"app-product-additions",39),t.BQk()),2&p){const d=K.ngLet;t.xp6(1),t.Q6J("ngIf",d.display)}}function Le(p,K){if(1&p&&(t.TgZ(0,"a",44),t._UZ(1,"mat-icon",45),t._uU(2),t.qZA()),2&p){const d=t.oxw(2);t.Q6J("href","tel:"+d.contactPhoneNumber,t.LSH),t.xp6(2),t.hij(" ",d.contactPhoneNumber," ")}}function mn(p,K){if(1&p&&(t.TgZ(0,"div",41)(1,"label",42),t._uU(2),t.qZA(),t.YNc(3,Le,3,2,"a",43),t.qZA()),2&p){const d=t.oxw();t.xp6(2),t.Oqu(d.contactInformation),t.xp6(1),t.Q6J("ngIf",d.contactPhoneNumber)}}const Pn=function(p,K,d,v,S){return{total:p,shipping:K,products:d,packaging:v,discount:S}};let Yn=(()=>{class p extends fr{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi){super(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi),this.confirmationData={title:"Er du sikker p\xe5 at du vil t\xf8mme din kurv?",description:"",acceptButton:"T\xf8m kurv",rejectButton:"Tilbage"},this.showDiscount=!1}ngOnInit(){super.ngOnInit(),this.productLines$=this.basketQuery.selectProductLines$.pipe((0,mr.V)(this.basketQuery.selectErrorProductIds$),(0,zt.U)(([d,v])=>{const S=[];for(const pe of d){const Ue=this.basketService.getProduct(pe);if(!Ue)continue;const hn=v.includes(pe.productId),yn={...pe,product:Ue,error:hn};S.push(yn)}return S})),this.subscription.add(this.shipping$.pipe().subscribe(d=>{const v=this.shippingService.getShippingOptions();this.shippingName=v.find(S=>S.id===d.shippingType)?.name})),this.cdr.detectChanges()}calculateTax(...d){let v=0;for(const S of d)S&&(v+=.2*S);return v}removeInvalidBasket(){const d=this.basketQuery.getErrorProductIds();this.productLines$.pipe((0,H.q)(1)).subscribe(v=>{for(const S of v)d.includes(S.productId)&&this.basketService.deleteProduct(S.product)})}resetBasket(){this.dialogService.openConfirmationDialog(this.confirmationData).afterClosed().pipe((0,H.q)(1)).subscribe(d=>{d&&this.basketService.resetBasket()})}getProductAdditions(d){const v={id:0,name:"EKSTRA TILVALG",display:!1,carousel:!1,products:[]};return d?.forEach(S=>{S.product.productAdditions?.forEach(Ue=>{Ue.display&&v.products.push(...Ue.products)})}),v.display=v.products.length>0,v.products=v.products.filter((S,pe,Ue)=>pe===Ue.findIndex(hn=>hn.id===S.id)),v}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(y.HE),t.Y36(G.Z),t.Y36(F.x),t.Y36(z.N),t.Y36(e.F0),t.Y36(y.Ns),t.Y36(y.vD),t.Y36(t.sBO),t.Y36(Ce.x0),t.Y36(y.zc),t.Y36(y.fY),t.Y36(t.SBq),t.Y36(y.p$,8))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-meny-basket-overview"]],features:[t.qOj],decls:32,vars:35,consts:[["onclick","history.back()",1,"back","unstyled-button"],["svgIcon","left_arrow"],["title",""],[4,"ngIf"],["class","basket-items",4,"ngLet"],[1,"discount-price-wrapper"],["class","total-price",4,"ngLet"],["class","shipping-select","tabindex","0",3,"click",4,"ngLet"],["class","age-restricted",4,"ngIf"],[1,"buttons"],[1,"emptyBasket","unstyled-button",3,"click"],[3,"disabled","click"],[4,"ngLet"],["class","contact",4,"ngIf"],[1,"basket-error"],["svgIcon","warning"],[1,"basket-error-button",3,"click"],[1,"basket-items"],[3,"product","quantity","error","callback",4,"ngFor","ngForOf"],[3,"product","quantity","error","callback"],[1,"total-price"],[1,"prices"],["class","prices discount",4,"ngIf"],[1,"tax"],[1,"prices","discount"],[3,"click"],[3,"formGroup","ngSubmit"],["appearance","outline"],["matInput","","type","text",3,"placeholder","formControl"],[1,"unstyled-button"],["tabindex","0",1,"shipping-select",3,"click"],["class","shipping-selected",4,"ngIf"],[1,"no-shipping-selected"],["svgIcon","shop"],[1,"shipping-selected"],[1,"age-restricted"],["for","age-restricted"],["id","age-restricted",3,"control"],["src","assets/images/sundhedsstyrelsen.png","alt","Aldersgr\xe6nse for salg: 16 \xe5r for alkohol under 16,5% og 18 \xe5r for alkohol fra 16,5%"],[3,"additions",4,"ngIf"],[3,"additions"],[1,"contact"],["for","contact-information","tabindex","0"],["class","contact-number unstyled-link",3,"href",4,"ngIf"],[1,"contact-number","unstyled-link",3,"href"],["svgIcon","contact"]],template:function(v,S){if(1&v&&(t.TgZ(0,"div")(1,"header")(2,"button",0),t._UZ(3,"mat-icon",1),t.TgZ(4,"span"),t._uU(5,"Tilbage"),t.qZA()(),t.TgZ(6,"h1",null,2),t._uU(8),t.qZA()(),t.YNc(9,Vr,9,3,"ng-container",3),t.YNc(10,Bs,2,1,"div",4),t.ALo(11,"async"),t.TgZ(12,"div",5),t.YNc(13,bs,30,33,"div",6),t.ALo(14,"async"),t.ALo(15,"async"),t.ALo(16,"async"),t.ALo(17,"async"),t.ALo(18,"async"),t.YNc(19,ls,3,2,"ng-container",3),t.qZA(),t.YNc(20,L,3,2,"a",7),t.ALo(21,"async"),t.YNc(22,Vt,8,2,"div",8),t.ALo(23,"async"),t.TgZ(24,"div",9)(25,"button",10),t.NdJ("click",function(){return S.resetBasket()}),t._uU(26,"T\xf8m kurv"),t.qZA(),t.TgZ(27,"app-text-button",11),t.NdJ("click",function(){return S.checkout()}),t._uU(28),t.qZA()(),t.YNc(29,It,2,1,"ng-container",12),t.ALo(30,"async"),t.YNc(31,mn,4,2,"div",13),t.qZA()),2&v){let pe;t.xp6(8),t.Oqu(S.basketTitle),t.xp6(1),t.Q6J("ngIf",S.showProductErrors),t.xp6(1),t.Q6J("ngLet",t.lcZ(11,11,S.productLines$)),t.xp6(3),t.Q6J("ngLet",t.qbA(29,Pn,t.lcZ(14,13,S.totalPrice$),(null==(pe=t.lcZ(15,15,S.shipping$))?null:pe.price)||0,t.lcZ(16,17,S.linesTotalPrice$),t.lcZ(17,19,S.packagingPrice$)||0,t.lcZ(18,21,S.discount$)||0)),t.xp6(6),t.Q6J("ngIf",null==S.promotionForm?null:S.promotionForm.controls.promotionCode),t.xp6(1),t.Q6J("ngLet",t.lcZ(21,23,S.shippingValid$)),t.xp6(2),t.Q6J("ngIf",t.lcZ(23,25,!S.useAgeVerification&&S.containsAlcohol$)),t.xp6(5),t.Q6J("disabled",!S.isValidState||S.storeClosed),t.xp6(1),t.Oqu(S.checkoutButton),t.xp6(1),t.Q6J("ngLet",S.getProductAdditions(t.lcZ(30,27,S.productLines$))),t.xp6(2),t.Q6J("ngIf",S.contactInformation)}},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color)}.spar-theme[_nghost-%COMP%]   #discount-input[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{text-transform:uppercase;border-radius:8px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:840px;width:100%}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{max-width:1074px;width:80vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:95vw}}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{display:grid;grid-template-columns:78px auto 78px;gap:32px;justify-items:center;align-items:center;margin:56px 0 48px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;gap:8px;padding:0;height:32px;align-items:center;justify-content:center;font-size:12px;line-height:12px;font-weight:700;text-transform:uppercase}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#fff;border-radius:32px;width:32px;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:12px;width:12px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:18px;line-height:24px;margin:0}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:24px;margin-bottom:24px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{display:flex;gap:8px;margin:0 0 8px;font-size:18px;line-height:20px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px}[_nghost-%COMP%]   .basket-error[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:unset;font-size:14px;line-height:16px}[_nghost-%COMP%]   .basket-error-button[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;line-height:18px;font-weight:700;height:48px;width:min-content;align-self:flex-end;margin-bottom:32px}[_nghost-%COMP%]   .basket-items[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row-reverse;justify-content:space-between;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]{flex-direction:column-reverse}}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{height:min-content;font-weight:700;font-size:14px;line-height:18px;text-decoration-line:underline;cursor:pointer}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;height:min-content;width:100%}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-label, [_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-outline{color:#bebcbc}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-appearance-outline .mat-form-field-outline{background-color:#fff;border-radius:6px}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:unset}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{max-width:250px;width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{min-width:40%}}[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{height:48px;width:min-content;background-color:unset;color:#3a3b3c;border:2px solid #3a3b3c;margin:-2px;padding:15px 32px;border-radius:128px;font-weight:700;font-size:16px;line-height:16px;white-space:nowrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .discount-price-wrapper[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{padding:12px 24px}}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-self:flex-end;align-items:flex-end;margin:0 24px 40px;width:calc(100% - 48px);max-width:300px}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-size:18px;line-height:22px;margin-top:8px}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices[_ngcontent-%COMP%]{display:flex;justify-content:space-between;max-width:300px;width:100%}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;line-height:22px;color:#8d8d8d}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices.discount[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#609433}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]   .tax[_ngcontent-%COMP%]{font-size:12px;line-height:16px;color:#8d8d8d}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;max-width:100%;background-color:#fff;margin:8px 0 40px;padding:16px;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;border-radius:8px}[_nghost-%COMP%]   .total-price[_ngcontent-%COMP%]   .prices[_ngcontent-%COMP%]{max-width:100%}}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:30px 24px;cursor:pointer;font-size:16px;line-height:18px;text-transform:uppercase;font-weight:700;margin-bottom:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]{gap:8px;font-size:12px;line-height:14px}}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   .no-shipping-selected[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   .no-shipping-selected[_ngcontent-%COMP%]     path{fill:var(--warn-color)}[_nghost-%COMP%]   .shipping-select[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child{text-decoration-line:underline}[_nghost-%COMP%]   .age-restricted[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%;box-sizing:border-box;border-radius:8px;background-color:#fff;box-shadow:0 2px 2px #00000024,0 1px 5px #0000001f;padding:30px 24px;margin-bottom:24px;line-height:28px}[_nghost-%COMP%]   .age-restricted[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%]   .age-restricted[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{width:min-content;align-self:center}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-bottom:48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{justify-content:space-evenly}}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;line-height:18px;font-weight:700;height:48px}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .emptyBasket[_ngcontent-%COMP%]{padding:15px 32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-product-additions[_ngcontent-%COMP%]{width:100vw;margin-left:-2.5vw;padding-left:2.5vw;background-color:#fff}[_nghost-%COMP%]   app-product-additions[_ngcontent-%COMP%]:first-of-type{padding-top:32px}[_nghost-%COMP%]   app-product-additions[_ngcontent-%COMP%]:last-of-type{margin-bottom:28px}}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px;margin-bottom:60px;font-family:Poppins;font-weight:400;font-size:16px;line-height:24px}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;font-weight:700}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:27px;height:27px}[_nghost-%COMP%]   .contact[_ngcontent-%COMP%]   .contact-number[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#000}"],changeDetection:0})}return p})();var to=c(5699);let po=(()=>{class p extends R.I{constructor(d,v,S){super(d,"goToBasketDialog"),this.dialogRef=v,this.router=S,this.basketUrl=`/${f.environment.urls.basket}`,this.closeIcon=it.qq.bigCross,this.title=this.content.get("title")||"Har du f\xe5et alt med?",this.buyMoreButton=this.content.get("buyMoreButton")||"Forts\xe6t med at handle",this.goToBasketButton=this.content.get("goToBasketButton")||"G\xe5 til kassen"}buyMore(){this.dialogRef.close()}goToBasket(){this.router.navigate([this.basketUrl]),this.dialogRef.close()}static#t=this.\u0275fac=function(v){return new(v||p)(t.Y36(y._s),t.Y36(Io.hV),t.Y36(e.F0))};static#e=this.\u0275cmp=t.Xpm({type:p,selectors:[["app-go-to-basket-dialog"]],features:[t.qOj],decls:8,vars:5,consts:[[3,"icon","border","click"],["mat-dialog-title",""],[1,"dialog-options"],["type","button","color","accent",1,"close-button",3,"click"],["cdkFocusInitial","",1,"submit-button",3,"click"]],template:function(v,S){1&v&&(t.TgZ(0,"app-icon-button",0),t.NdJ("click",function(){return S.buyMore()}),t.qZA(),t.TgZ(1,"h1",1),t._uU(2),t.qZA(),t.TgZ(3,"div",2)(4,"app-text-button",3),t.NdJ("click",function(){return S.buyMore()}),t._uU(5),t.qZA(),t.TgZ(6,"app-text-button",4),t.NdJ("click",function(){return S.goToBasket()}),t._uU(7),t.qZA()()),2&v&&(t.Q6J("icon",S.closeIcon)("border",!1),t.xp6(2),t.Oqu(S.title),t.xp6(3),t.Oqu(S.buyMoreButton),t.xp6(2),t.Oqu(S.goToBasketButton))},dependencies:[Io.YS,_e.h,to.r],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:400px;padding-top:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%;min-width:unset}}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;right:0;top:0;height:40px;width:40px}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{background-color:#3c3c3b}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path{fill:#fff}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:900;margin:20px 0;text-align:center}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex-direction:row}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex-direction:column;align-items:center}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-right:0;margin-bottom:16px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:1 1 auto;height:56px;width:100%;font-weight:600}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:44px}}"]})}return p})()},6734:(Je,Rt,c)=>{"use strict";c.d(Rt,{o:()=>R});var o=c(7299),e=c(2802),g=c(5879),x=c(7954);function l(f,t){if(1&f){const y=g.EpF();g.TgZ(0,"img",3),g.NdJ("error",function(){g.CHM(y);const G=g.oxw();return g.KtG(G.imageError())}),g.qZA()}if(2&f){const y=g.oxw();g.Q6J("src",y.bannerImage,g.LSH)}}function i(f,t){if(1&f&&g._UZ(0,"app-accordion",4),2&f){const y=t.$implicit;g.Q6J("title",y.QuestionText)("text",y.AnswerText)}}let R=(()=>{class f extends e.I{constructor(y){super(y,"questionsAndAnswers",{meta:!0}),this.contentUrl=o.environment.cmsOrigin,this.questions=[]}ngOnInit(){const y=this.content.get("bannerImage");y&&(this.bannerImage=`${this.contentUrl}/${y}`),this.title=this.content.get("titleText"),this.description=this.contentService.addImageSource(this.content.get("descriptionText"));const O=this.content.get("questionsAndAnswersContent");O&&(this.questions=O)}imageError(){this.bannerImage=""}static#t=this.\u0275fac=function(O){return new(O||f)(g.Y36(x._s))};static#e=this.\u0275cmp=g.Xpm({type:f,selectors:[["app-questions-and-answers"]],features:[g.qOj],decls:7,vars:6,consts:[[3,"src","error",4,"ngIf"],[1,"page-description","rich-text",3,"innerHTML"],[3,"title","text",4,"ngFor","ngForOf"],[3,"src","error"],[3,"title","text"]],template:function(O,G){1&O&&(g.YNc(0,l,1,1,"img",0),g.TgZ(1,"app-center-section")(2,"h1"),g._uU(3),g.qZA(),g._UZ(4,"div",1),g.ALo(5,"sanitizeHtml"),g.YNc(6,i,1,2,"app-accordion",2),g.qZA()),2&O&&(g.Q6J("ngIf",G.bannerImage),g.xp6(3),g.Oqu(G.title),g.xp6(1),g.Q6J("innerHTML",g.lcZ(5,4,G.description),g.oJD),g.xp6(2),g.Q6J("ngForOf",G.questions))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-height:500px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0 80px}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.25em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .page-description[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-accordion[_ngcontent-%COMP%]{margin-top:16px}"]})}return f})()},2104:(Je,Rt,c)=>{"use strict";c.d(Rt,{D:()=>z});var o=c(9671),e=c(5619),g=c(8075),x=c(2181),l=c(8180),i=c(6093),R=c(8086),f=c(2802),t=c(7299),y=c(5879),O=c(7954),G=c(5189),U=c(9259),lt=c(2365),ut=c(7688),Ht=c(1829),A=c(7350),xt=c(8906),tt=c(120),ct=c(2787);function _(F,rt){if(1&F&&(y.TgZ(0,"div",4)(1,"h1",5),y._uU(2),y.qZA(),y.TgZ(3,"span"),y._uU(4),y.qZA(),y.TgZ(5,"app-text-button",6),y._uU(6),y.qZA()()),2&F){const V=y.oxw(2);y.xp6(2),y.Oqu(V.title),y.xp6(2),y.hij(" ",V.description," "),y.xp6(2),y.Oqu(V.buttonText)}}function j(F,rt){if(1&F&&(y.TgZ(0,"div",4)(1,"h1",5),y._uU(2),y.qZA(),y.TgZ(3,"span"),y._uU(4),y.qZA(),y.TgZ(5,"app-text-button",6),y._uU(6),y.qZA()()),2&F){const V=y.oxw(2);y.xp6(2),y.Oqu(V.waitTitle),y.xp6(2),y.Oqu(V.waitDescription),y.xp6(2),y.Oqu(V.buttonText)}}function q(F,rt){if(1&F&&(y._UZ(0,"img",12),y.ALo(1,"cms")),2&F){const V=y.oxw(3);y.Q6J("src",y.xi3(1,1,V.advertisementIcon,50),y.LSH)}}function ht(F,rt){if(1&F&&y._UZ(0,"app-richtext-box",13),2&F){const V=y.oxw(3);y.Q6J("content",V.advertisementDescription)("simple",!0)}}function vt(F,rt){if(1&F&&y._UZ(0,"img",14),2&F){const V=y.oxw(3);y.Q6J("src",V.contentUrl+V.advertisementImage+"?height=360&mode=max",y.LSH)}}function gt(F,rt){if(1&F&&(y.TgZ(0,"app-text-button",15),y._uU(1),y.qZA()),2&F){const V=y.oxw(3);y.Q6J("href",V.advertisementLink.Url)("target",V.advertisementLink.Target),y.xp6(1),y.hij(" ",V.advertisementLink.Name," ")}}function zt(F,rt){if(1&F&&(y.TgZ(0,"div",7)(1,"div"),y.YNc(2,q,2,4,"img",8),y.YNc(3,ht,1,2,"app-richtext-box",9),y.YNc(4,vt,1,1,"img",10),y.YNc(5,gt,2,3,"app-text-button",11),y.qZA()()),2&F){const V=y.oxw(2);y.Udp("background",V.advertisementBackground+" no-repeat center center fixed"),y.xp6(2),y.Q6J("ngIf",V.advertisementIcon),y.xp6(1),y.Q6J("ngIf",V.advertisementDescription),y.xp6(1),y.Q6J("ngIf",V.advertisementImage),y.xp6(1),y.Q6J("ngIf",V.advertisementLink)}}function Ct(F,rt){if(1&F&&(y.TgZ(0,"div",16)(1,"span"),y._uU(2),y.qZA(),y.TgZ(3,"app-text-button",17),y.ALo(4,"async"),y._uU(5),y.qZA(),y.TgZ(6,"span"),y._uU(7),y.qZA()()),2&F){const V=y.oxw(2);y.xp6(2),y.hij(" ",V.woltDescriptionText," "),y.xp6(1),y.Q6J("href",y.lcZ(4,4,V.woltTrackingLink)),y.xp6(2),y.Oqu(V.woltButtonText),y.xp6(2),y.hij(" ",V.woltFootnoteText," ")}}function H(F,rt){if(1&F&&(y.ynx(0),y.YNc(1,_,7,3,"div",1),y.YNc(2,j,7,3,"div",1),y.YNc(3,zt,6,6,"div",2),y.YNc(4,Ct,8,6,"div",3),y.BQk()),2&F){const V=y.oxw();y.xp6(1),y.Q6J("ngIf",V.showCompleted),y.xp6(1),y.Q6J("ngIf",!V.showCompleted),y.xp6(1),y.Q6J("ngIf",!V.isWolt&&(V.advertisementDescription||V.advertisementLink)),y.xp6(1),y.Q6J("ngIf",V.isWolt)}}function J(F,rt){1&F&&y._UZ(0,"app-failure")}let z=(()=>{class F extends f.I{constructor(V,Pt,$t,Lt,Jt,Tt,$,pt,Dt,St,mt,yt,ee,B,At){super(V,"basketComplete"),this.basketService=Pt,this.basketQuery=$t,this.shippingService=Lt,this.shippingQuery=Jt,this.checkoutService=Tt,this.customerDetailService=$,this.woltService=pt,this.cookieService=Dt,this.gtmService=St,this.route=mt,this.router=yt,this.themeService=ee,this.elRef=B,this.mParticle=At,this.contentUrl=`${t.environment.cmsOrigin}`,this.paymentError=!1,this.showCompleted=!1,this.authorizedKey="authorized",this.title=this.content.get("titleText"),this.description=this.content.get("descriptionText"),this.waitTitle=this.content.get("waitTitle")||"Vent venligst..",this.waitDescription=this.content.get("waitDescription")||"Vent venligst mens din ordre bearbejdes";const st=this.contentService.getSharedContent();this.buttonText=st.get("goToMainPageButtonText");const ie=this.contentService.get("WoltSuccessTracking");this.woltDescriptionText=ie.get("woltDescriptionText")||"Du kan f\xf8lge din bestillings vej til dig, ved at klikke p\xe5 knappen herunder.",this.woltButtonText=ie.get("woltButtonText")||"F\xf8lg bestilling",this.woltFootnoteText=ie.get("woltFootnoteText")||"*Dit tracking-link er ogs\xe5 sendt til din mailadresse."}ngOnInit(){if(typeof window>"u")return;this.woltTrackingLink=new e.X(void 0),this.authorizedId=localStorage?.getItem(this.authorizedKey),this.showCompleted=!0,this.productAdvertisement();const V=this.route.snapshot;if(this.orderId=V.paramMap.get("id"),this.transactionId=V.queryParamMap.get("transactionid")||V.queryParamMap.get("txnid")||V.queryParamMap.get("paymentid"),this.responseCode=V.queryParamMap.get("responsecode"),"CANCEL"===this.responseCode?.toUpperCase())return void this.router.navigate(["/"]);if("OK"!==this.responseCode?.toUpperCase()&&!this.transactionId)return void(this.paymentError=!0);const Pt=!!V.queryParamMap.get("transactionid");if("OK"!==this.responseCode?.toUpperCase()&&Pt)return void(this.paymentError=!0);let $t;try{$t=JSON.parse(localStorage?.getItem(R.H)),this.orderId=this.orderId??$t.orderId,localStorage.removeItem(R.H)}catch{}this.isWolt="true"===$t?.isWolt?.toLowerCase(),this.orderId&&this.transactionId&&this.orderId!==this.authorizedId&&(this.showCompleted=!1,setTimeout(()=>this.showCompleted=!0,5e3),this.checkoutService.authorizeOrder(this.transactionId,+this.orderId).pipe((0,g.X)({count:10,delay:2e3})).subscribe({next:()=>{this.authorizedId=this.orderId,localStorage?.setItem(this.authorizedKey,this.orderId),this.isWolt&&this.checkoutService.getWoltTrackingLink(this.orderId).subscribe(({woltTrackingLink:Lt})=>{this.woltTrackingLink.next(Lt)}),this.showCompleted=!0},error:Lt=>{this.paymentError=!0}})),this.isWolt&&!this.transactionId&&this.checkoutService.getWoltTrackingLink(this.orderId).subscribe(({woltTrackingLink:Lt})=>{this.woltTrackingLink.next(Lt)}),this.submitStatisticsAndCleanUp($t)}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}productAdvertisement(){const V=this.contentService.getConfirmationAds();if(!V||!V.length)return;const Pt=[];if(V.some(Lt=>Lt.productIds?.length)){const Lt=this.basketQuery.getProducts(),Jt=Object.keys(Lt);for(const Tt of V)Tt.productIds?.length&&Jt.some($=>Tt.productIds.includes($))&&Pt.push(Tt)}Pt.length||Pt.push(...V);const $t=Pt.reduce((Lt,Jt)=>Lt&&Lt.priority>0&&Lt.priority<Jt.priority?Lt:Jt);this.advertisementIcon=$t.iconImage,this.advertisementDescription=$t.descriptionText,this.advertisementLink=$t.link,this.advertisementImage=$t.advertisementImage,this.advertisementBackground=`url("${this.contentUrl}${$t.background}")`}submitStatisticsAndCleanUp(V){var Pt=this;return(0,o.Z)(function*(){Pt.cookieService.checkCookie()&&V&&(yield Promise.all([Pt.submitStatistics(V),Pt.mParticle?.purchase(V)]),Pt.mParticle?.viewCheckoutComplete()),Pt.basketService.resetBasket(),Pt.shippingService.resetShipping(),Pt.customerDetailService.resetCustomerDetails(),Pt.woltService.resetWoltDelivery(),Pt.checkoutService.doneSubmitting(),sessionStorage.clear()})()}submitStatistics(V){var Pt=this;return(0,o.Z)(function*(){!Pt.contentService.gTagKey||!V||(yield new Promise($t=>{Pt.basketQuery.selectLoading().pipe((0,x.h)(Lt=>!1===Lt),(0,l.q)(1)).subscribe((0,o.Z)(function*(){const Lt={};Object.values(Pt.basketQuery.getValue().products).forEach(yt=>{if((0,i.d0)(yt)){const{product:ee}=yt;return Lt[ee.id]=ee.productDisplayName,void(yt.moduleLines?.length&&Object.values(yt.moduleLines).forEach(B=>{const{product:At}=B;Lt[At.id]=At.productDisplayName}))}Object.values(yt).forEach(ee=>{const{product:B}=ee;Lt[B.id]=B.productDisplayName,ee.moduleLines?.length&&Object.values(ee.moduleLines).forEach(At=>{const{product:st}=At;Lt[st.id]=st.productDisplayName})})});const Jt=Pt.basketQuery.getValue().ui,Tt=[];Jt.products.forEach(yt=>{Tt.push({productName:Lt[yt.productId],productNumber:yt.productId,quantity:yt.quantity,total:yt.price,discountTotal:yt.discount}),yt.moduleLines?.forEach(At=>{Tt.push({productName:Lt[At.productId],productNumber:At.productId,quantity:At.quantity*yt.quantity,total:At.price,discountTotal:At.discount})})});const $=Jt.total,pt=Pt.shippingQuery.shipping;let Dt=""+Pt.contentService.getMerchantId();if(Pt.contentService.isEventShop){const{eventStore:yt}=Pt.shippingQuery;yt&&(Dt=""+yt.StoreId)}const St={transactionId:V.orderId,transactionAffiliation:Dt,transactionTotal:$,transactionTax:Math.floor(.2*$*100)/100,transactionShipping:pt.price,transactionProducts:[]};for(const yt of Tt)St.transactionProducts.push({name:yt.productName,sku:""+yt.productNumber,price:yt.total,quantity:yt.quantity});const mt={transaction_id:V.orderId,affiliation:Dt,value:$,tax:Math.floor(.2*$*100)/100,shipping:pt.price,currency:"DKK",items:[]};for(const yt of Tt)mt.items.push({item_id:""+yt.productNumber,item_name:yt.productName,affiliation:Dt,currency:"DKK",price:yt.total,quantity:yt.quantity});Pt.gtmService.clearEcommerce(),Pt.gtmService.purchase({ua:St,ga4:mt}),$t()}))}))})()}isNumeric(V){return"string"==typeof V&&!isNaN(V)&&!isNaN(parseFloat(V))}static#t=this.\u0275fac=function(Pt){return new(Pt||F)(y.Y36(O._s),y.Y36(O.vD),y.Y36(G.N),y.Y36(U.N),y.Y36(lt.V),y.Y36(ut.Z),y.Y36(Ht.z),y.Y36(A.Nc),y.Y36(xt.C),y.Y36(tt.b),y.Y36(ct.gz),y.Y36(ct.F0),y.Y36(O.fY),y.Y36(y.SBq),y.Y36(O.p$,8))};static#e=this.\u0275cmp=y.Xpm({type:F,selectors:[["app-success"]],features:[y.qOj],decls:2,vars:2,consts:[[4,"ngIf"],["class","container",4,"ngIf"],["class","advertisement",3,"background",4,"ngIf"],["class","wolt-tracking",4,"ngIf"],[1,"container"],[1,"title"],["routerLink","/"],[1,"advertisement"],["class","icon",3,"src",4,"ngIf"],[3,"content","simple",4,"ngIf"],["class","image",3,"src",4,"ngIf"],[3,"href","target",4,"ngIf"],[1,"icon",3,"src"],[3,"content","simple"],[1,"image",3,"src"],[3,"href","target"],[1,"wolt-tracking"],["target","_blank",3,"href"]],template:function(Pt,$t){1&Pt&&(y.YNc(0,H,5,4,"ng-container",0),y.YNc(1,J,1,0,"app-failure",0)),2&Pt&&(y.Q6J("ngIf",!$t.paymentError),y.xp6(1),y.Q6J("ngIf",$t.paymentError))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--background-color);position:relative;justify-content:center;align-items:center}.apetit-theme[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{color:#fff}.apetit-theme[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]     .text-button{border:1px solid #fff}[_nghost-%COMP%]:has(.advertisement), [_nghost-%COMP%]:has(.wolt-tracking){flex-direction:row;justify-content:space-around}[_nghost-%COMP%]:has(.advertisement) > *[_ngcontent-%COMP%], [_nghost-%COMP%]:has(.wolt-tracking) > *[_ngcontent-%COMP%]{width:50vw}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]:has(.advertisement) > *[_ngcontent-%COMP%], [_nghost-%COMP%]:has(.wolt-tracking) > *[_ngcontent-%COMP%]{width:100%}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]:has(.advertisement), [_nghost-%COMP%]:has(.wolt-tracking){flex-direction:column}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{gap:20px;width:100%}}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:2.5em;font-weight:900}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#a6a6a6}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%]{display:flex;align-self:stretch;justify-content:center;align-items:center;background-size:cover!important}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:min-content min-content 56px;gap:8px;padding:20px;justify-content:center;align-items:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:min-content min-content 240px 56px;width:90vw}}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{grid-column:1/span 2;grid-row:1;width:auto;height:80px;max-height:100%;margin:auto}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-richtext-box[_ngcontent-%COMP%]{grid-column:1;grid-row:2;justify-self:center;height:min-content}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-richtext-box[_ngcontent-%COMP%]     h1, [_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-richtext-box[_ngcontent-%COMP%]     h2, [_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-richtext-box[_ngcontent-%COMP%]     h3{margin-top:0}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{grid-column:2;grid-row:2/span 2;width:auto;height:360px;max-height:100%;margin:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image[_ngcontent-%COMP%]{grid-column:1;grid-row:3}}[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{grid-column:1;grid-row:3;width:min-content;justify-self:center;margin:0}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .advertisement[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{grid-row:4}}[_nghost-%COMP%]   .wolt-tracking[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:24px}[_nghost-%COMP%]   .wolt-tracking[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:200px;height:56px;font-weight:600;margin-top:50px}"]})}return F})()},424:(Je,Rt,c)=>{"use strict";c.d(Rt,{L:()=>f,O:()=>t});var o=c(6093),e=c(5879),g=c(7954);function x(y,O){if(1&y&&e._UZ(0,"app-home-simple"),2&y){const G=e.oxw();e.ekj("content-below",null==G.strips?null:G.strips.length)}}function l(y,O){1&y&&e._UZ(0,"app-home-meny")}function i(y,O){1&y&&e._UZ(0,"app-home-fancy")}function R(y,O){if(1&y&&e._UZ(0,"app-strip-container",3),2&y){const G=e.oxw();e.Q6J("strips",G.strips)}}var f=function(y){return y.simple="nxtFrontpage",y.fancy="nxtFrontpageFancy",y.meny="nxtFrontpageMeny",y}(f||{});let t=(()=>{class y{constructor(G){this.contentService=G}ngOnInit(){this.homeType=f.simple;const G=this.contentService.getMerchant().type;G===o.Pc.MENY||G===o.Pc.SPAR||G===o.Pc.MIN_KOBMAND?this.homeType=f.meny:this.contentService.get(f.fancy)?.size&&(this.homeType=f.fancy),this.strips=this.contentService.getOnlineHomeContent()}get HomeType(){return f}static#t=this.\u0275fac=function(U){return new(U||y)(e.Y36(g._s))};static#e=this.\u0275cmp=e.Xpm({type:y,selectors:[["app-home"]],decls:4,vars:4,consts:[[3,"content-below",4,"ngIf"],[4,"ngIf"],[3,"strips",4,"ngIf"],[3,"strips"]],template:function(U,lt){1&U&&(e.YNc(0,x,1,2,"app-home-simple",0),e.YNc(1,l,1,0,"app-home-meny",1),e.YNc(2,i,1,0,"app-home-fancy",1),e.YNc(3,R,1,1,"app-strip-container",2)),2&U&&(e.Q6J("ngIf",lt.homeType===lt.HomeType.simple),e.xp6(1),e.Q6J("ngIf",lt.homeType===lt.HomeType.meny),e.xp6(1),e.Q6J("ngIf",lt.homeType===lt.HomeType.fancy),e.xp6(1),e.Q6J("ngIf",null==lt.strips?null:lt.strips.length))},styles:["[_nghost-%COMP%]{background-color:var(--background-color)}"]})}return y})()},4260:(Je,Rt,c)=>{"use strict";c.d(Rt,{_4:()=>je,d5:()=>ht,zD:()=>Ko,j$:()=>Pn,yr:()=>N,cT:()=>Zt.c,jl:()=>Ei,rs:()=>Ar,FX:()=>po,Gw:()=>io,xg:()=>Eo,_N:()=>xe});var o=c(6223),e=c(3212),g=c(125),x=c(2802),l=c(7299),i=c(5879),R=c(7954),f=c(2787),t=c(2939);function y(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"img",13),i.NdJ("error",function(){i.CHM(d);const S=i.oxw();return i.KtG(S.imageError())}),i.qZA()}if(2&p){const d=i.oxw();i.Q6J("src",d.bannerImage,i.LSH)}}function O(p,K){if(1&p&&(i.TgZ(0,"ng-option",4),i._uU(1),i.qZA()),2&p){const d=K.$implicit;i.Q6J("value",d),i.xp6(1),i.Oqu(d)}}function G(p,K){if(1&p&&(i.TgZ(0,"p",25),i._uU(1),i.ALo(2,"displayCurrency"),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.AsE(" samlet minimumsk\xf8b er ",d.minimumGiftCardAmount," ",i.lcZ(2,2,d.currency)," ")}}function U(p,K){if(1&p&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&p){const d=i.oxw(2).ngLet;i.xp6(1),i.hij(" ",d.valueClarification," ")}}const lt=function(){return[2,3,4,5,6,7,8,9,10]};function ut(p,K){if(1&p&&(i.TgZ(0,"section",19)(1,"div",20)(2,"label"),i._uU(3,"V\xe6lg hvor mange klip"),i.qZA(),i.TgZ(4,"ng-select",3),i.YNc(5,O,2,2,"ng-option",21),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.ALo(8,"displayCurrency"),i.qZA(),i.YNc(9,G,3,4,"p",22),i.qZA(),i.TgZ(10,"div",23),i._UZ(11,"app-text-input",24),i.YNc(12,U,2,1,"p",8),i.qZA()()),2&p){const d=i.oxw().ngLet,v=i.oxw();let S;i.xp6(4),i.Q6J("formControl",v.form.controls.charges),i.xp6(1),i.Q6J("ngForOf",i.DdM(13,lt)),i.xp6(1),i.ekj("error",v.form.value.charges&&v.form.value.chargesAmount&&v.form.value.charges*v.form.value.chargesAmount<v.minimumGiftCardAmount),i.xp6(1),i.AsE(" Samlet bel\xf8b: ",null!==(S=v.form.value.charges*v.form.value.chargesAmount)&&void 0!==S?S:"0"," ",i.lcZ(8,11,v.currency)," "),i.xp6(2),i.Q6J("ngIf",v.form.value.charges&&v.form.value.chargesAmount&&v.form.value.charges*v.form.value.chargesAmount<v.minimumGiftCardAmount),i.xp6(2),i.Q6J("control",v.form.controls.chargesAmount)("name",d.valueLabel)("placeholder",d.valuePlaceholder),i.xp6(1),i.Q6J("ngIf",d.valueClarification)}}function Ht(p,K){if(1&p&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&p){const d=i.oxw(2).ngLet;i.xp6(1),i.hij(" ",d.valueClarification," ")}}function A(p,K){if(1&p&&(i.TgZ(0,"section",19)(1,"div",23),i._UZ(2,"app-text-input",24),i.YNc(3,Ht,2,1,"p",8),i.qZA()()),2&p){const d=i.oxw().ngLet,v=i.oxw();i.xp6(2),i.Q6J("control",v.form.controls.value)("name",d.valueLabel)("placeholder",d.valuePlaceholder),i.xp6(1),i.Q6J("ngIf",d.valueClarification)}}function xt(p,K){if(1&p&&(i.ynx(0),i.YNc(1,ut,13,14,"section",14),i.YNc(2,A,4,4,"section",14),i.TgZ(3,"section",15)(4,"h2"),i._uU(5),i.qZA(),i.TgZ(6,"p"),i._uU(7),i.qZA()(),i.TgZ(8,"section",16)(9,"h2"),i._uU(10),i.qZA(),i._UZ(11,"app-text-input",17)(12,"app-text-input",17)(13,"app-text-input",18),i.qZA(),i.BQk()),2&p){const d=K.ngLet,v=i.oxw();i.xp6(1),i.Q6J("ngIf",v.form.value.type===v.GiftCardType.Punch),i.xp6(1),i.Q6J("ngIf",v.form.value.type===v.GiftCardType.Gift),i.xp6(3),i.Oqu(v.senderTitle),i.xp6(2),i.Oqu(v.senderDescription),i.xp6(3),i.Oqu(v.recipientTitle),i.xp6(1),i.Q6J("control",v.form.controls.recipientName)("name",v.nameLabel)("placeholder",v.namePlaceholder),i.xp6(1),i.Q6J("control",v.form.controls.recipientEmail)("name",d.emailLabel)("placeholder",d.emailPlaceholder),i.xp6(1),i.Q6J("control",v.form.controls.accompanyingMessage)("name",d.accompanyingMessageLabel)("placeholder",d.accompanyingMessagePlaceholder)("textarea",!0)}}function tt(p,K){if(1&p&&(i.ynx(0),i._uU(1),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Oqu(d.overview.amount)}}function ct(p,K){if(1&p&&(i.ynx(0),i.TgZ(1,"td"),i._uU(2),i.qZA(),i._UZ(3,"td"),i.TgZ(4,"td"),i._uU(5),i.qZA(),i.BQk()),2&p){const d=i.oxw();i.xp6(2),i.Oqu(d.form.value.value>=d.minimumGiftCardAmount?d.form.value.value+" "+d.currency:""),i.xp6(3),i.Oqu(d.form.value.value>=d.minimumGiftCardAmount?d.form.value.value+" "+d.currency:"")}}function _(p,K){if(1&p&&(i.ynx(0),i.TgZ(1,"td"),i._uU(2),i.qZA(),i.TgZ(3,"td"),i._uU(4),i.qZA(),i.TgZ(5,"td"),i._uU(6),i.qZA(),i.BQk()),2&p){const d=i.oxw();i.xp6(2),i.hij(" ",d.form.value.chargesAmount*d.form.value.charges>=d.minimumGiftCardAmount?d.form.value.chargesAmount+" "+d.currency:""," "),i.xp6(2),i.Oqu(d.form.value.chargesAmount*d.form.value.charges>=d.minimumGiftCardAmount?d.form.value.charges:""),i.xp6(2),i.hij(" ",d.form.value.chargesAmount*d.form.value.charges>=d.minimumGiftCardAmount?d.form.value.chargesAmount*d.form.value.charges+" "+d.currency:""," ")}}function j(p,K){if(1&p&&(i.TgZ(0,"b",26),i._uU(1),i.ALo(2,"displayCurrency"),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.AsE(" ",d.form.value.value>=d.minimumGiftCardAmount?d.form.value.value:0," ",i.lcZ(2,2,d.currency)," ")}}function q(p,K){if(1&p&&(i.TgZ(0,"b",26),i._uU(1),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.AsE(" ",d.form.value.chargesAmount*d.form.value.charges>=d.minimumGiftCardAmount?d.form.value.chargesAmount*d.form.value.charges:0," "," "+d.currency," ")}}let ht=(()=>{class p extends x.I{constructor(d,v,S,pe){super(d,"giftcard",{meta:!0}),this.router=v,this.basketService=S,this.snackBar=pe,this.contentUrl=l.environment.cmsOrigin,this.currency=l.environment.i18n.currency,this.pageNotFoundUrl=l.environment.urls.page_not_found,this.GiftCardType=e.W;const Ue=this.contentService.getMerchant();if(!Ue.enableGiftCards)return void this.router.navigate([this.pageNotFoundUrl]);this.minimumGiftCardAmount=Ue.minimumGiftCardAmount,this.giftCardMonths=Ue.giftCardMonths;const hn=this.content.get("bannerImage");hn&&(this.bannerImage=`${this.contentUrl}/${hn}`),this.title=this.content.get("titleText"),this.description=this.contentService.addImageSource(this.content.get("descriptionText")),this.senderTitle=this.content.get("senderTitleText"),this.senderDescription=this.content.get("senderDescriptionText"),this.recipientTitle=this.content.get("recipientTitleText"),this.nameLabel=this.content.get("nameLabelText"),this.namePlaceholder=this.content.get("namePlaceholderText"),this.addToBasketButton=this.content.get("addToBasketButton");const yn=this.content.get("giftCardText");this.giftContent={type:yn,valueLabel:this.content.get("valueLabelText")?.replaceAll("{type}",yn),valuePlaceholder:this.content.get("valuePlaceholderText")?.replaceAll("{type}",yn)?.replaceAll("{giftCardPrice}",this.minimumGiftCardAmount),valueClarification:this.content.get("valueClarificationText")?.replaceAll("{type}",yn)?.replaceAll("{giftCardPrice}",this.minimumGiftCardAmount)?.replaceAll("{giftCardMonths}",this.giftCardMonths),emailLabel:this.content.get("emailLabelText")?.replaceAll("{type}",yn),emailPlaceholder:this.content.get("emailPlaceholderText")?.replaceAll("{type}",yn),accompanyingMessageLabel:this.content.get("accompanyingMessageLabelText")?.replaceAll("{type}",yn),accompanyingMessagePlaceholder:this.content.get("accompanyingMessagePlaceholderText")?.replaceAll("{type}",yn)};const An=this.content.get("punchCardText");this.punchContent={type:An,valueLabel:this.content.get("valueLabelText")?.replaceAll("{type}",An),valuePlaceholder:this.content.get("valuePlaceholderText")?.replaceAll("{type}",An)?.replaceAll("{giftCardPrice}",this.minimumGiftCardAmount),valueClarification:this.content.get("valueClarificationText")?.replaceAll("{type}",An)?.replaceAll("{giftCardPrice}",this.minimumGiftCardAmount)?.replaceAll("{giftCardMonths}",this.giftCardMonths),emailLabel:this.content.get("emailLabelText")?.replaceAll("{type}",An),emailPlaceholder:this.content.get("emailPlaceholderText")?.replaceAll("{type}",An),accompanyingMessageLabel:this.content.get("accompanyingMessageLabelText")?.replaceAll("{type}",An),accompanyingMessagePlaceholder:this.content.get("accompanyingMessagePlaceholderText")?.replaceAll("{type}",An)},this.overviewTitle=this.content.get("overviewTitle"),this.overview={name:this.content.get("overviewNameText"),pricePerUnit:this.content.get("overviewPricePerUnit"),pricePerPunch:this.content.get("overviewPricePerPunch"),amount:this.content.get("overviewAmount"),totalPrice:this.content.get("overviewTotalPrice"),totalSummary:this.content.get("overviewTotalSummary")}}ngOnInit(){this.form=this.createForm({type:e.W.Gift,value:void 0,recipientName:void 0,recipientEmail:void 0,accompanyingMessage:void 0,charges:void 0,chargesAmount:void 0})}imageError(){this.bannerImage=""}createForm(d){const v=(0,g.zN)(d,{updateOn:"change"}),S=/^\d*$/;return v.controls.value.setValidators([o.kI.required,o.kI.min(this.minimumGiftCardAmount),o.kI.pattern(S)]),v.controls.recipientName.setValidators([o.kI.required]),v.controls.recipientEmail.setValidators([o.kI.required]),v.controls.chargesAmount.setValidators([o.kI.pattern(S)]),v}addToBasket(){if(this.form.value.type===e.W.Punch&&this.form.controls.value.setValue(this.form.value.charges*this.form.value.chargesAmount),!this.form.valid){let v="Der mangler at blive udfyld modtager navn og/eller email";return this.form.value.value<this.minimumGiftCardAmount&&(v=`Gavekort bel\xf8bet er for lavt, det skal mindst v\xe6re p\xe5 ${this.minimumGiftCardAmount} kr`),void this.snackBar.open(v,"luk",{duration:8e3,panelClass:"warn"})}const d=this.form.value;this.form.value.type===e.W.Gift&&(d.charges=void 0),this.basketService.addGiftCard(d),this.snackBar.open("Gavekort er lagt i kurven","luk",{duration:8e3,panelClass:"primary"})}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(f.F0),i.Y36(R.vD),i.Y36(t.ux))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-gift-card"]],features:[i.qOj],decls:38,vars:21,consts:[[3,"src","error",4,"ngIf"],[1,"page-description","rich-text",3,"innerHTML"],[3,"formGroup"],[3,"formControl"],[3,"value"],[4,"ngLet"],[1,"card-price-overview"],[1,"card-name"],[4,"ngIf"],[1,"price-total"],["for","total-price"],["id","total-price",4,"ngIf"],[3,"click"],[3,"src","error"],["class","card-settings",4,"ngIf"],[1,"sender"],[1,"recipient"],["type","text",3,"control","name","placeholder"],["type","text",1,"message",3,"control","name","placeholder","textarea"],[1,"card-settings"],[1,"punches"],[3,"value",4,"ngFor","ngForOf"],["class","error",4,"ngIf"],[1,"price"],["type","number",3,"control","name","placeholder"],[1,"error"],["id","total-price"]],template:function(v,S){1&v&&(i.YNc(0,y,1,1,"img",0),i.TgZ(1,"app-center-section")(2,"h1"),i._uU(3),i.qZA(),i._UZ(4,"div",1),i.ALo(5,"sanitizeHtml"),i.TgZ(6,"form",2)(7,"mat-radio-group",3)(8,"mat-radio-button",4),i._uU(9,"GAVEKORT"),i.qZA(),i.TgZ(10,"mat-radio-button",4),i._uU(11,"KLIPPEKORT"),i.qZA()(),i.YNc(12,xt,14,15,"ng-container",5),i.qZA(),i.TgZ(13,"div",6)(14,"h2"),i._uU(15),i.qZA(),i.TgZ(16,"table")(17,"tr")(18,"td",7),i._uU(19),i.qZA(),i.TgZ(20,"td"),i._uU(21),i.qZA(),i.TgZ(22,"td"),i.YNc(23,tt,2,1,"ng-container",8),i.qZA(),i.TgZ(24,"td"),i._uU(25),i.qZA()(),i.TgZ(26,"tr")(27,"td",7),i._uU(28,"Gavekort"),i.qZA(),i.YNc(29,ct,6,2,"ng-container",8),i.YNc(30,_,7,3,"ng-container",8),i.qZA()(),i.TgZ(31,"div",9)(32,"label",10),i._uU(33),i.qZA(),i.YNc(34,j,3,4,"b",11),i.YNc(35,q,2,2,"b",11),i.qZA()(),i.TgZ(36,"app-text-button",12),i.NdJ("click",function(){return S.addToBasket()}),i._uU(37),i.qZA()()),2&v&&(i.Q6J("ngIf",S.bannerImage),i.xp6(3),i.Oqu(S.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(5,19,S.description),i.oJD),i.xp6(2),i.Q6J("formGroup",S.form),i.xp6(1),i.Q6J("formControl",S.form.controls.type),i.xp6(1),i.Q6J("value",0),i.xp6(2),i.Q6J("value",1),i.xp6(2),i.Q6J("ngLet",S.form.value.type===S.GiftCardType.Punch?S.punchContent:S.giftContent),i.xp6(3),i.Oqu(S.overviewTitle),i.xp6(4),i.Oqu(S.overview.name),i.xp6(2),i.Oqu(S.form.value.type===S.GiftCardType.Punch?S.overview.pricePerPunch:S.overview.pricePerUnit),i.xp6(2),i.Q6J("ngIf",S.form.value.type===S.GiftCardType.Punch),i.xp6(2),i.Oqu(S.overview.totalPrice),i.xp6(4),i.Q6J("ngIf",S.form.value.type===S.GiftCardType.Gift),i.xp6(1),i.Q6J("ngIf",S.form.value.type===S.GiftCardType.Punch),i.xp6(3),i.Oqu(S.overview.totalSummary),i.xp6(1),i.Q6J("ngIf",S.form.value.type===S.GiftCardType.Gift),i.xp6(1),i.Q6J("ngIf",S.form.value.type===S.GiftCardType.Punch),i.xp6(2),i.Oqu(S.addToBasketButton))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-height:500px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0 80px}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:60vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:40px 0;width:80vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{margin:20px 0;width:95vw}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.25em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .page-description[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;gap:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-radio-group[_ngcontent-%COMP%]{display:flex;gap:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;box-sizing:border-box;height:44px;padding:4px 12px;background-color:#fff;border:1px solid #000;border-radius:4px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     label{gap:40px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button.mat-radio-checked[_ngcontent-%COMP%]{background-color:var(--primary-color);color:var(--text-primary-color);border-color:var(--primary-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]{flex:1 1 auto;display:grid;grid-template-columns:1fr 1fr;gap:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]{display:flex;flex-direction:column}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .punches[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .punches[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin:8px 0;font-size:.9em;font-weight:600}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .punches[_ngcontent-%COMP%]   ng-select[_ngcontent-%COMP%]     .ng-select-container{height:44px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .punches[_ngcontent-%COMP%]   ng-select[_ngcontent-%COMP%]     .ng-select-container .ng-input{top:unset}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .punches[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:12px 0 0}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .punches[_ngcontent-%COMP%]   p.error[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]     app-text-input .mat-form-field{margin-bottom:0}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .card-settings[_ngcontent-%COMP%]   .price[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-top:12px;white-space:pre-line}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:min-content min-content 1fr;row-gap:8px;-moz-column-gap:20px;column-gap:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{grid-column:1/span 2}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .recipient[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{grid-column:1/span 2}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom:1px solid #000;width:15%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th.card-name[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td.card-name[_ngcontent-%COMP%]{width:55%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:last-child{text-align:right}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   .price-total[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.95em}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .card-price-overview[_ngcontent-%COMP%]   .price-total[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:360px}"]})}return p})();var vt=c(9671),gt=c(6825),zt=c(7394),Ct=c(5619),H=c(2572),J=c(2438),z=c(836),F=c(7398),rt=c(3620),V=c(6939),Pt=c(6093),$t=c(7985),Lt=c(6574),Jt=c(8750);const Tt=["productContent"],$=["productDescription"],pt=["composite"],Dt=["stickyBottom"];function St(p,K){if(1&p&&i._UZ(0,"app-savings",31),2&p){const d=i.oxw();i.Q6J("savings",d.savings)}}function mt(p,K){if(1&p&&(i.TgZ(0,"span",32),i._uU(1),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.Oqu(d.summaryLabel)}}function yt(p,K){if(1&p&&i._UZ(0,"app-price",33),2&p){const d=i.oxw();i.Q6J("value",d.price)("forceSuperscript",!0)}}function ee(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&p){const d=i.oxw().$implicit;i.xp6(1),i.AsE(" ",d.discountPercent,"% for ",d.minimumQuantity," stk. ")}}function B(p,K){if(1&p&&(i.TgZ(0,"div")(1,"span"),i._uU(2),i.qZA(),i.YNc(3,ee,2,2,"span",15),i.qZA()),2&p){const d=K.$implicit;i.xp6(2),i.Oqu(d.displayText),i.xp6(1),i.Q6J("ngIf",!d.hidePercentPerQuantity)}}function At(p,K){if(1&p&&(i.TgZ(0,"span",34),i._uU(1),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.Oqu(d.product.altPriceText)}}function st(p,K){if(1&p&&(i.TgZ(0,"span",35),i._uU(1),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.Oqu(d.product.infoText)}}function ie(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-product-main-options",37),i.NdJ("add",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.add(S))})("remove",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.remove(S))}),i.ALo(1,"async"),i.qZA()}if(2&p){const d=i.oxw().$implicit,v=i.oxw(2);i.Q6J("module",d)("composition",v.composition)("locked",!!i.lcZ(1,4,v.basketProductLine))("highlightRequired",v.requiredModules[d.id])}}function Ae(p,K){if(1&p&&(i.ynx(0),i.YNc(1,ie,2,6,"app-product-main-options",36),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",d.main)}}function en(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ae,2,1,"ng-container",10),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngForOf",d.product.productModules)}}function In(p,K){1&p&&i._UZ(0,"img",38)}function Ve(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&p){const d=i.oxw().ngIf;i.xp6(1),i.hij("Udleveres n\xe6ste gang ",i.xi3(2,1,d.from,"fullDate"),"")}}function jt(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.ALo(3,"date"),i.qZA()),2&p){const d=i.oxw().ngIf;i.xp6(1),i.AsE(" Udleveres n\xe6ste gang mellem ",i.xi3(2,2,d.from,"fullDate")," og ",i.xi3(3,5,d.to,"fullDate")," ")}}function ft(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ve,3,4,"span",15),i.YNc(2,jt,4,8,"span",15),i.BQk()),2&p){const d=K.ngIf;i.xp6(1),i.Q6J("ngIf",d.from===d.to),i.xp6(1),i.Q6J("ngIf",d.from!==d.to)}}function Gt(p,K){if(1&p&&(i.TgZ(0,"div",39),i._UZ(1,"mat-icon",40),i.YNc(2,ft,3,2,"ng-container",15),i.ALo(3,"limit"),i.qZA()),2&p){const d=i.oxw();i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,d.product))}}function Ce(p,K){if(1&p&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Oqu(d.product.productDisplayName)}}function ve(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ce,2,1,"h2",15),i._UZ(2,"div",41),i.ALo(3,"sanitizeHtml"),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngIf",d.product.productDisplayTitle),i.xp6(1),i.Q6J("innerHTML",i.lcZ(3,2,d.product.productDescription),i.oJD)}}function me(p,K){if(1&p&&(i.TgZ(0,"div",42)(1,"h2"),i._uU(2,"Allergener"),i.qZA(),i.TgZ(3,"span"),i._UZ(4,"mat-icon",43),i._uU(5),i.qZA()()),2&p){const d=i.oxw();i.xp6(5),i.Oqu(d.getAllergensString(d.product.allergens))}}function De(p,K){if(1&p&&(i.TgZ(0,"div",44)(1,"h2"),i._uU(2,"Alkoholprocent"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.qZA()()),2&p){const d=i.oxw();i.xp6(4),i.hij("",d.product.alcoholPercent," %")}}function tn(p,K){if(1&p&&(i.TgZ(0,"app-text-button",48),i._uU(1),i.ALo(2,"pdfName"),i.qZA()),2&p){const d=K.$implicit,v=i.oxw(2);i.Q6J("href",v.contentUrl+d),i.xp6(1),i.hij(" ",i.lcZ(2,2,d)," ")}}function gn(p,K){if(1&p&&(i.TgZ(0,"div",45)(1,"h2"),i._uU(2),i.qZA(),i.TgZ(3,"div",46),i.YNc(4,tn,3,4,"app-text-button",47),i.qZA()()),2&p){const d=i.oxw();i.xp6(2),i.Oqu(d.preparationGuideLabel),i.xp6(2),i.Q6J("ngForOf",d.product.pdfUrls)}}function Xe(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"div",49),i._UZ(1,"div",50),i.TgZ(2,"button",51),i.NdJ("click",function(){i.CHM(d);const S=i.oxw();return i.KtG(S.toggleReadMore())}),i._uU(3),i.qZA()()}if(2&p){const d=i.oxw();i.Udp("width",d.readMoreWidth,"px"),i.xp6(3),i.Oqu(d.readMoreLabel)}}function rn(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"div",56),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(5),pe=i.MAs(36);return i.KtG(S.scroll(pe))}),i._uU(1),i.qZA()}if(2&p){const d=i.oxw().$implicit;i.xp6(1),i.hij(" ",d.productDisplayTitle||d.productDisplayName," ")}}function re(p,K){if(1&p&&(i.ynx(0),i.YNc(1,rn,2,1,"div",55),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",d.forSale)}}function ue(p,K){if(1&p&&(i.TgZ(0,"section",53)(1,"h2"),i._uU(2),i.qZA(),i.TgZ(3,"div",54),i.YNc(4,re,2,1,"ng-container",10),i.qZA()()),2&p){const d=i.oxw().$implicit;i.xp6(2),i.Oqu(d.name),i.xp6(2),i.Q6J("ngForOf",d.products)}}function Ft(p,K){if(1&p&&(i.ynx(0),i.YNc(1,ue,5,2,"section",52),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",null==d?null:d.display)}}function be(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ft,2,1,"ng-container",10),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngForOf",d.product.productAdditions)}}function qt(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-product-picker",37),i.NdJ("add",function(S){i.CHM(d);const pe=i.oxw(2);return i.KtG(pe.add(S))})("remove",function(S){i.CHM(d);const pe=i.oxw(2);return i.KtG(pe.remove(S))}),i.ALo(1,"async"),i.qZA()}if(2&p){const d=i.oxw().$implicit,v=i.oxw();i.Q6J("module",d)("composition",v.composition)("locked",!!i.lcZ(1,4,v.basketProductLine))("highlightRequired",v.requiredModules[d.id])}}function Te(p,K){if(1&p&&(i.ynx(0),i.YNc(1,qt,2,6,"app-product-picker",36),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",!d.main)}}function Me(p,K){if(1&p&&i._UZ(0,"app-product-additions",58),2&p){const d=i.oxw().$implicit;i.Q6J("additions",d)}}function _n(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Me,1,1,"app-product-additions",57),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",d.display)}}function ce(p,K){1&p&&(i.TgZ(0,"app-text-button",69),i._uU(1,"K\xf8b mere"),i.qZA())}function ye(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",70),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(4);return i.KtG(S.buyMore())}),i._uU(1,"K\xf8b mere"),i.qZA()}}function Xt(p,K){if(1&p&&(i.TgZ(0,"div",65),i.YNc(1,ce,2,0,"app-text-button",66),i.YNc(2,ye,2,0,"app-text-button",67),i.TgZ(3,"app-text-button",68),i._uU(4,"Kurv"),i.qZA()()),2&p){const d=i.oxw(3);i.Q6J("@slide",void 0),i.xp6(1),i.Q6J("ngIf",d.isFandanko),i.xp6(1),i.Q6J("ngIf",!d.isFandanko),i.xp6(1),i.Q6J("routerLink",d.basketOverviewUrl)}}function on(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.Oqu(d.product.altPriceText)}}function oe(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"number"),i.ALo(3,"displayCurrency"),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.AsE(" ",i.Dn7(2,2,d.compositePrice*(1-d.discountLevelPercent/100),".2-2",d.locale)," ",i.lcZ(3,6,d.currency)," ")}}function $e(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"number"),i.ALo(3,"sum"),i.ALo(4,"displayCurrency"),i.qZA()),2&p){const d=i.oxw(2).ngLet,v=i.oxw();i.xp6(1),i.AsE("",i.Dn7(2,2,i.lcZ(3,6,d),".2-2",v.locale)," ",i.lcZ(4,8,v.currency),"")}}function te(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",71),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.addToBasket(S.composition.minCount))}),i._uU(1),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("disabled",!d.product.forSale||!d.validated),i.xp6(1),i.hij(" ",d.product.forSale?d.sharedContent.addToBasketLabel:d.sharedContent.productNotForSale," ")}}function Se(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-counter",72),i.NdJ("add",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.addToBasket(S))})("remove",function(S){i.CHM(d);const pe=i.oxw(2).ngLet,Ue=i.oxw();return i.KtG(Ue.removeFromBasket(pe.quantity,S))}),i.qZA()}if(2&p){const d=i.oxw(2).ngLet,v=i.oxw();i.Q6J("minCount",v.product.minCount)("lockRemove",d.quantity===v.composition.minCount)("count",d.quantity)}}function Ke(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-icon-button",73),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.deleteFromBasket())}),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("icon",d.deleteIcon)}}function Oe(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Xt,5,4,"div",59),i.TgZ(2,"div",60)(3,"label"),i._uU(4),i.qZA(),i.YNc(5,on,2,1,"span",15),i.YNc(6,oe,4,8,"span",15),i.YNc(7,$e,5,10,"span",15),i.qZA(),i.TgZ(8,"div",61),i.YNc(9,te,2,2,"app-text-button",62),i.YNc(10,Se,1,3,"app-counter",63),i.YNc(11,Ke,1,1,"app-icon-button",64),i.qZA(),i.BQk()),2&p){const d=i.oxw().ngLet,v=i.oxw();i.xp6(1),i.Q6J("ngIf",d),i.xp6(3),i.Oqu(v.product.productDisplayName),i.xp6(1),i.Q6J("ngIf",v.showAltPrice&&v.product.altPriceText),i.xp6(1),i.Q6J("ngIf",!(v.showAltPrice&&v.product.altPriceText||d)),i.xp6(1),i.Q6J("ngIf",!(v.showAltPrice&&v.product.altPriceText)&&d),i.xp6(2),i.Q6J("ngIf",!d),i.xp6(1),i.Q6J("ngIf",d),i.xp6(1),i.Q6J("ngIf",d)}}function Qe(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"button",78),i.NdJ("click",function(){i.CHM(d);const S=i.oxw().$implicit,pe=i.oxw(2).$implicit,Ue=i.oxw(2).ngLet,hn=i.oxw();return i.KtG(!Ue&&hn.remove([pe,S,null]))}),i._uU(1),i._UZ(2,"mat-icon",79),i.qZA()}if(2&p){const d=i.oxw().$implicit;i.xp6(1),i.hij(" ",d.productDisplayName," ")}}function et(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Qe,3,1,"button",77),i.BQk()),2&p){const d=K.$implicit,v=i.oxw(2).$implicit,S=i.oxw(3);i.xp6(1),i.Q6J("ngIf",S.composition&&!(null==S.composition||null==S.composition.moduleChoices[v.id]||null==S.composition.moduleChoices[v.id].products[d.id]||!S.composition.moduleChoices[v.id].products[d.id].quantity))}}function nt(p,K){if(1&p&&(i.ynx(0),i.YNc(1,et,2,1,"ng-container",10),i.BQk()),2&p){const d=i.oxw().$implicit;i.xp6(1),i.Q6J("ngForOf",d.products)}}function it(p,K){if(1&p&&(i.ynx(0),i.YNc(1,nt,2,1,"ng-container",15),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",1===d.maxPickCount||d.singles)}}function Ot(p,K){if(1&p&&(i.TgZ(0,"label"),i._uU(1),i.qZA()),2&p){const d=i.oxw(2).ngLet;i.xp6(1),i.hij("Minimum ",d.minPickCount," stk.")}}function Fe(p,K){1&p&&(i.TgZ(0,"label"),i._uU(1,"Klar til bestilling!"),i.qZA())}function Cn(p,K){if(1&p&&(i.TgZ(0,"div",60)(1,"span"),i._uU(2),i.qZA(),i.YNc(3,Ot,2,1,"label",15),i.YNc(4,Fe,2,0,"label",15),i.qZA()),2&p){const d=i.oxw().ngLet,v=i.oxw(4);i.xp6(2),i.hij("",d.pickedCount," valgt"),i.xp6(1),i.Q6J("ngIf",!v.validated),i.xp6(1),i.Q6J("ngIf",v.validated)}}function de(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Cn,5,3,"div",80),i.BQk()),2&p){const d=K.ngLet;i.xp6(1),i.Q6J("ngIf",d.minPickCount>0)}}function He(p,K){if(1&p&&(i.ynx(0),i.YNc(1,de,2,1,"ng-container",30),i.BQk()),2&p){const d=i.oxw(3);i.xp6(1),i.Q6J("ngLet",d.getSelectCount())}}function X(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-counter",81),i.NdJ("add",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.addToQuantityCounter(S))})("remove",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.removeFromQuantityCounter(S))}),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("minCount",d.product.minCount)("count",d.quantityCounter)("lockRemove",d.quantityCounter===d.product.minCount)}}function _e(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",71),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.openBasket())}),i._uU(1),i.ALo(2,"number"),i.ALo(3,"displayCurrency"),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("disabled",!d.validated),i.xp6(1),i.lnq(" ",d.sharedContent.addToBasketLabel,": ",i.Dn7(2,4,d.compositePrice*(1-d.discountLevelPercent/100)*d.quantityCounter,".2-2",d.locale)," ",i.lcZ(3,8," "+d.currency)," ")}}function ze(p,K){if(1&p&&(i.TgZ(0,"app-text-button",82),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.Q6J("disabled",!d.product.forSale),i.xp6(1),i.hij(" ",d.sharedContent.productNotForSale," ")}}function dn(p,K){if(1&p&&(i.TgZ(0,"div")(1,"div",74),i.YNc(2,it,2,1,"ng-container",10),i.qZA(),i.YNc(3,He,2,1,"ng-container",15),i.YNc(4,X,1,3,"app-counter",75),i.YNc(5,_e,4,10,"app-text-button",62),i.YNc(6,ze,2,2,"app-text-button",76),i.qZA()),2&p){const d=i.oxw().ngLet,v=i.oxw();i.xp6(2),i.Q6J("ngForOf",v.product.productModules),i.xp6(1),i.Q6J("ngIf",!v.showCounter),i.xp6(1),i.Q6J("ngIf",v.showCounter),i.xp6(1),i.Q6J("ngIf",!d&&v.product.forSale),i.xp6(1),i.Q6J("ngIf",!d&&!v.product.forSale)}}function Tn(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Oe,12,8,"ng-container",15),i.YNc(2,dn,7,5,"div",15),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngIf",!d.isDagrofa),i.xp6(1),i.Q6J("ngIf",d.isDagrofa)}}let je=(()=>{class p extends x.I{constructor(d,v,S,pe,Ue,hn,yn){super(d,"productInfo"),this.dialogService=v,this.basketService=S,this.cdr=pe,this.themeService=Ue,this.elRef=hn,this.deviceService=yn,this.contentUrl=`${l.environment.cmsOrigin}`,this.CONTENT_MAX_HEIGHT=660,this.MOBILE_MAX_HEIGHT=900,this.basketOverviewUrl=`/${l.environment.urls.basket}`,this.deleteIcon=$t.qq.bigCross,this.locale=l.environment.i18n.language,this.currency=l.environment.i18n.currency,this.reload=new i.vpe,this.placeholder=V.b,this.readMoreWidth=0,this.subscription=new zt.w0;const{type:An}=this.contentService.getMerchant();this.isFandanko=An===Pt.Pc.FANDANKO,this.isDagrofa=this.contentService.isDagrofa,this.combineMenuButtonLabel=this.content.get("combineMenuButtonLabelText")||"Sammens\xe6t din ret",this.readMoreLabel=this.content.get("readMoreLabelText")||"L\xe6s mere",this.preparationGuideLabel=this.content.get("preparationGuideText")||"Tilberedningsvejledning"}ngOnChanges(d){if(d.product){this.showCounter=!0;for(const v of this.product.productModules)v.products.sort((S,pe)=>S.priority-pe.priority),v.main&&(this.mainOptions=!0),v.singles||(this.showCounter=!1);if(this.readMore=!this.isDagrofa,this.quantityCounter=this.product.minCount||1,this.composition=this.initComposition(),this.validated=this.validate(),this.lineId=new Ct.X(void 0),this.requiredModules={},this.summaryLabel=this.product.summary,this.isDagrofa){const v=this.getSelectCount().minPickCount;this.summaryLabel=`Minimum ${this.quantityCounter>1?this.quantityCounter:v||1} kuverter`}this.basketProductLine=(0,H.a)([this.basketProducts,this.lineId.pipe((0,z.T)(1))]).pipe((0,F.U)(([v,S])=>{const{id:pe}=this.composition;return this.composition.lineId=S,v?.[pe]?.[S]}))}}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngAfterViewInit(){const d=this.deviceService.isMobile()?this.MOBILE_MAX_HEIGHT:this.CONTENT_MAX_HEIGHT;this.productContent.nativeElement.offsetHeight<d-12&&(this.readMore=!0),this.readMoreWidth=this.productDescription.nativeElement.offsetWidth+4,this.cdr.detectChanges(),typeof window<"u"&&setTimeout(()=>{this.calculateOffset(),this.toggleSticky(),this.calculateOffsetRef=this.calculateOffset.bind(this),this.toggleStickyRef=this.toggleSticky.bind(this),this.subscription.add((0,J.R)(window,"resize").pipe((0,rt.b)(1)).subscribe(this.calculateOffsetRef)),this.subscription.add((0,J.R)(window,"scroll").pipe().subscribe(this.toggleStickyRef))},50)}ngOnDestroy(){this.subscription.unsubscribe()}initComposition(){const d={...this.product,moduleChoices:{}};return this.compositePrice=this.price,this.discountLevelPercent=0,this.showAltPrice=!0,d}add(d){new Promise(v=>{this.showAltPrice=!1;const S=d[0],pe=d[1],Ue=d[2];this.composition.moduleChoices[S.id]||(this.composition.moduleChoices[S.id]={products:{}});const hn=this.composition.moduleChoices[S.id];if("pick-one"===Ue){for(const An of Object.values(hn.products))this.compositePrice-=An.price*An.quantity;hn.products={}}if(!hn.products[pe.id])return hn.products[pe.id]={...pe,quantity:1},this.compositePrice+=pe.price,v();if("pick-many"===Ue||"pick-one"===Ue)return v();const yn=++hn.products[pe.id].quantity;return hn.products[pe.id]={...pe,quantity:yn},this.compositePrice+=pe.price,v()}).finally(()=>{if(this.composition.discountLevels){let Ue=0;Object.values(this.composition.moduleChoices).forEach(hn=>{Object.values(hn.products).forEach(yn=>{Ue+=yn.quantity})}),this.discountLevelPercent=0,this.composition.discountLevels.forEach(hn=>{hn.includeModuleProducts&&hn.minimumQuantity<=Ue&&this.discountLevelPercent<hn.discountPercent&&(this.discountLevelPercent=hn.discountPercent)})}this.validated=this.validate();const v=d[0];if(!this.requiredModules[v.id])return;let S=0;const pe=this.composition.moduleChoices[v.id];for(const Ue of Object.values(pe.products))S+=Ue.quantity;v.minPickCount<=S&&(!v.maxPickCount||S<=v.maxPickCount)&&delete this.requiredModules[v.id]})}remove(d){var v=this;return(0,vt.Z)(function*(){new Promise(S=>{const Ue=d[1],yn=v.composition.moduleChoices[d[0].id];if(!yn||!yn.products[Ue.id])return S();if(1===yn.products[Ue.id].quantity)return delete yn.products[Ue.id],v.compositePrice-=Ue.price,v.showAltPrice=void 0===Object.values(v.composition.moduleChoices).find(Nn=>Object.keys(Nn.products).length>0),S();const An=--yn.products[Ue.id].quantity;return yn.products[Ue.id]={...Ue,quantity:An},v.compositePrice-=Ue.price,S()}).finally(()=>{if(v.composition.discountLevels){let S=0;Object.values(v.composition.moduleChoices).forEach(pe=>{Object.values(pe.products).forEach(Ue=>{S+=Ue.quantity})}),v.discountLevelPercent=0,v.composition.discountLevels.forEach(pe=>{pe.includeModuleProducts&&pe.minimumQuantity<=S&&v.discountLevelPercent<pe.discountPercent&&(v.discountLevelPercent=pe.discountPercent)})}v.validated=v.validate()})})()}validate(){for(const d of this.product.productModules){const{minPickCount:v,maxPickCount:S}=d,Ue=this.composition.moduleChoices[d.id];if(!Ue&&v>0)return!1;if(Ue){let hn=0;for(const yn of Object.values(Ue.products))hn+=yn.quantity;if(S&&hn>S||hn<v)return!1}}return!0}addToBasket(d){if(d=d||1,this.validated){const v=this.basketService.addProduct(this.composition,d);this.lineId.next(v.lineId)}}removeFromBasket(d,v){if(v=v||1,this.validated){if(d===v)return void this.deleteFromBasket();const S=this.basketService.removeProduct(this.composition,v);this.lineId.next(S?.lineId)}}deleteFromBasket(){this.basketService.deleteProduct(this.composition),this.composition=this.initComposition(),this.validated=this.validate(),this.lineId.next(void 0)}validateRequiredAndScroll(d,v){const S={};let pe=!1;for(const Ue of this.product.productModules){const{minPickCount:hn,maxPickCount:yn,id:An,main:Nn}=Ue;if(hn<=0)continue;const ui=this.composition.moduleChoices[An];if(!ui){S[An]=!0,Nn&&(pe=!0);continue}let ei=0;for(const jn of Object.values(ui.products))ei+=jn.quantity;(ei<hn||yn&&yn<ei)&&(S[An]=!0,Nn&&(pe=!0))}this.requiredModules=S,pe?window.scroll({top:d.getBoundingClientRect().top+window.scrollY,behavior:"smooth"}):this.scroll(v)}scroll(d){d.scrollIntoView({behavior:"smooth"})}calculateOffset(){const{offsetHeight:d}=this.compositeRef.nativeElement,{clientHeight:v}=this.stickyRef.nativeElement,S=this.compositeRef.nativeElement.getBoundingClientRect().top+window.scrollY;this.totalOffset=d+S+(this.sticky?0:v),this.compositeRef.nativeElement.style.setProperty("--sticky-height",`${v}px`)}toggleSticky(){this.sticky=window.scrollY+window.innerHeight<=this.totalOffset}toggleReadMore(){this.readMore=!this.readMore,setTimeout(this.calculateOffsetRef,2e3)}buyMore(){this.composition=this.resetComposition(),this.validated=this.validate(),this.lineId.next(void 0)}resetComposition(){const d={...this.product,moduleChoices:{}},{maxPickCount:v}=this.composition.productModules[0];return this.showAltPrice=!0,this.discountLevelPercent=0,v&&1===v?(d.moduleChoices=this.composition.moduleChoices,d):(this.compositePrice=this.price,d)}getSelectCount(){const d={minPickCount:0,pickedCount:0};return this.product.productModules.forEach(v=>{1!==v.maxPickCount&&!v.singles&&v.minPickCount>0&&(d.minPickCount+=v.minPickCount,this.composition.moduleChoices[v.id]?.products&&Object.values(this.composition.moduleChoices[v.id].products).forEach(S=>{d.pickedCount+=S.quantity}))}),d}openBasket(){this.addToBasket(this.quantityCounter),this.dialogService.openMenyBasketDialog({product:this.composition,lineId:this.lineId.value,initialQuantity:this.quantityCounter}),this.buyMore()}addToQuantityCounter(d){this.quantityCounter+=d||1}removeFromQuantityCounter(d){this.quantityCounter-=d||1,this.quantityCounter=this.quantityCounter<this.composition.minCount?this.composition.minCount:this.quantityCounter}getAllergensString(d){return d.map(S=>Pt.az[S]).join(", ")}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(R.xA),i.Y36(R.vD),i.Y36(i.sBO),i.Y36(Lt.f),i.Y36(i.SBq),i.Y36(Jt.x0))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-composite-product-detail"]],viewQuery:function(v,S){if(1&v&&(i.Gf(Tt,5,i.SBq),i.Gf($,5,i.SBq),i.Gf(pt,5,i.SBq),i.Gf(Dt,5,i.SBq)),2&v){let pe;i.iGM(pe=i.CRH())&&(S.productContent=pe.first),i.iGM(pe=i.CRH())&&(S.productDescription=pe.first),i.iGM(pe=i.CRH())&&(S.compositeRef=pe.first),i.iGM(pe=i.CRH())&&(S.stickyRef=pe.first)}},inputs:{product:"product",sharedContent:"sharedContent",basketProducts:"basketProducts",price:"price",savings:"savings"},outputs:{reload:"reload"},features:[i.qOj,i.TTD],decls:42,vars:29,consts:[["composite",""],["productContent",""],[3,"savings",4,"ngIf"],[3,"product"],[1,"product-details"],[1,"product-summary"],[1,"product-details-name"],["class","product-details-summary",4,"ngIf"],["class","price-text",3,"value","forceSuperscript",4,"ngIf"],[1,"discount-levels"],[4,"ngFor","ngForOf"],["class","price-text",4,"ngIf"],["class","product-info-text",4,"ngIf"],[1,"target"],["mainModuleTarget",""],[4,"ngIf"],[1,"product-buttons"],[1,"basket-button",3,"click"],["src","assets/images/sundhedsstyrelsen.png","alt","Aldersgr\xe6nse for salg: 16 \xe5r for alkohol under 16,5% og 18 \xe5r for alkohol fra 16,5%","class","age-restricted",4,"ngIf"],[1,"product-descriptions"],["productDescription",""],["class","delivery-limit",4,"ngIf"],["class","allergener",4,"ngIf"],["class","alcohol",4,"ngIf"],["class","pdfs",4,"ngIf"],["class","read-more",3,"width",4,"ngIf"],["modulesTarget",""],["productAdditionsTarget",""],[1,"total"],["stickyBottom",""],[4,"ngLet"],[3,"savings"],[1,"product-details-summary"],[1,"price-text",3,"value","forceSuperscript"],[1,"price-text"],[1,"product-info-text"],[3,"module","composition","locked","highlightRequired","add","remove",4,"ngIf"],[3,"module","composition","locked","highlightRequired","add","remove"],["src","assets/images/sundhedsstyrelsen.png","alt","Aldersgr\xe6nse for salg: 16 \xe5r for alkohol under 16,5% og 18 \xe5r for alkohol fra 16,5%",1,"age-restricted"],[1,"delivery-limit"],["svgIcon","info"],[1,"rich-text","light",3,"innerHTML"],[1,"allergener"],["svgIcon","warning"],[1,"alcohol"],[1,"pdfs"],[1,"pdflinks-wrapper"],["target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"read-more"],[1,"fade"],[1,"unstyled-button",3,"click"],["class","product-additions-links",4,"ngIf"],[1,"product-additions-links"],[1,"product-additions-link-wrapper"],["class","unstyled-button product-additions-link",3,"click",4,"ngIf"],[1,"unstyled-button","product-additions-link",3,"click"],[3,"additions",4,"ngIf"],[3,"additions"],["class","buy-more",4,"ngIf"],[1,"total-price"],[1,"controls"],["class","basket-button",3,"disabled","click",4,"ngIf"],[3,"minCount","lockRemove","count","add","remove",4,"ngIf"],["class","delete-line",3,"icon","click",4,"ngIf"],[1,"buy-more"],["onClick","history.back()",4,"ngIf"],[3,"click",4,"ngIf"],[3,"routerLink"],["onClick","history.back()"],[3,"click"],[1,"basket-button",3,"disabled","click"],[3,"minCount","lockRemove","count","add","remove"],[1,"delete-line",3,"icon","click"],[1,"selected-labels"],[3,"minCount","count","lockRemove","add","remove",4,"ngIf"],["class","basket-button",3,"disabled",4,"ngIf"],["class","selected-product unstyled-button",3,"click",4,"ngIf"],[1,"selected-product","unstyled-button",3,"click"],["svgIcon","delete"],["class","total-price",4,"ngIf"],[3,"minCount","count","lockRemove","add","remove"],[1,"basket-button",3,"disabled"]],template:function(v,S){if(1&v){const pe=i.EpF();i.TgZ(0,"div",null,0)(2,"app-center-section",null,1),i.YNc(4,St,1,1,"app-savings",2),i._UZ(5,"app-image-carousel",3),i.TgZ(6,"div",4)(7,"section",5)(8,"h1",6),i._uU(9),i.qZA(),i.YNc(10,mt,2,1,"span",7),i.YNc(11,yt,1,2,"app-price",8),i.TgZ(12,"div",9),i.YNc(13,B,4,2,"div",10),i.qZA(),i.YNc(14,At,2,1,"span",11),i.YNc(15,st,2,1,"span",12),i._UZ(16,"div",13,14),i.YNc(18,en,2,1,"ng-container",15),i.TgZ(19,"div",16)(20,"app-text-button",17),i.NdJ("click",function(){i.CHM(pe);const hn=i.MAs(17),yn=i.MAs(33);return i.KtG(S.validateRequiredAndScroll(hn,yn))}),i._uU(21),i.qZA(),i.YNc(22,In,1,0,"img",18),i.qZA()(),i.TgZ(23,"section",19,20),i.YNc(25,Gt,4,3,"div",21),i.YNc(26,ve,4,4,"ng-container",15),i.YNc(27,me,6,1,"div",22),i.YNc(28,De,5,1,"div",23),i.YNc(29,gn,5,2,"div",24),i.YNc(30,Xe,4,3,"div",25),i.qZA(),i.YNc(31,be,2,1,"ng-container",15),i.qZA()(),i._UZ(32,"div",13,26),i.YNc(34,Te,2,1,"ng-container",10),i._UZ(35,"div",13,27),i.YNc(37,_n,2,1,"ng-container",10),i.qZA(),i.TgZ(38,"div",28,29),i.YNc(40,Tn,3,2,"ng-container",30),i.ALo(41,"async"),i.qZA()}2&v&&(i.ekj("sticky-padding",S.sticky),i.xp6(2),i.ekj("read-more",S.readMore),i.xp6(2),i.Q6J("ngIf",S.savings),i.xp6(1),i.Q6J("product",S.product),i.xp6(4),i.Oqu(S.product.productDisplayTitle||S.product.productDisplayName),i.xp6(1),i.Q6J("ngIf",S.summaryLabel),i.xp6(1),i.Q6J("ngIf",!S.product.altPriceText),i.xp6(2),i.Q6J("ngForOf",S.product.discountLevels),i.xp6(1),i.Q6J("ngIf",S.product.altPriceText),i.xp6(1),i.Q6J("ngIf",S.product.infoText),i.xp6(3),i.Q6J("ngIf",S.mainOptions),i.xp6(3),i.hij(" ",S.product.productPageButtonText?S.product.productPageButtonText:S.combineMenuButtonLabel," "),i.xp6(1),i.Q6J("ngIf",S.product.alcoholPercent),i.xp6(3),i.Q6J("ngIf",S.product.productDeliveryLimit),i.xp6(1),i.Q6J("ngIf",S.product.productDescription),i.xp6(1),i.Q6J("ngIf",(null==S.product.allergens?null:S.product.allergens.length)>0),i.xp6(1),i.Q6J("ngIf",S.product.alcoholPercent),i.xp6(1),i.Q6J("ngIf",S.product.displayPdfUrls&&(null==S.product.pdfUrls?null:S.product.pdfUrls.length)>0),i.xp6(1),i.Q6J("ngIf",!S.readMore),i.xp6(1),i.Q6J("ngIf",S.isDagrofa),i.xp6(3),i.Q6J("ngForOf",S.product.productModules),i.xp6(3),i.Q6J("ngForOf",S.product.productAdditions),i.xp6(1),i.ekj("sticky",S.sticky),i.xp6(2),i.Q6J("ngLet",i.lcZ(41,27,S.basketProductLine)))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:95vw}[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{display:none}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{max-width:1074px;display:grid;grid-template-columns:1fr 1fr;gap:32px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{display:flex}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%]{width:100%;max-width:100%;padding-top:0}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]{align-items:unset}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{font-size:34px;line-height:38px;margin-top:16px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{text-align:unset}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#6d6d6c}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{text-align:unset}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{font-size:34px;line-height:38px;padding-top:16px}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{width:250px;height:48px;font-size:16px;text-transform:uppercase}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--accent-color)}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%]:not(:last-of-type), .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%]:not(:last-of-type), .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%]:not(:last-of-type){margin-bottom:28px}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-size:16px;line-height:20px;margin-top:28px}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%] > .product-additions-link[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%] > .product-additions-link[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%] > .product-additions-link[_ngcontent-%COMP%]{font-weight:700;font-size:16px;line-height:18px;padding:15px 32px;border:2px solid #3c3c3b;border-radius:48px}.min-kobmand-theme.spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%] > .product-additions-link[_ngcontent-%COMP%], .spar-theme.spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%] > .product-additions-link[_ngcontent-%COMP%], .meny-theme.spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-additions-links[_ngcontent-%COMP%] > .product-additions-link-wrapper[_ngcontent-%COMP%] > .product-additions-link[_ngcontent-%COMP%]{border-radius:8px}.min-kobmand-theme.spar-theme[_nghost-%COMP%]   app-product-picker[_ngcontent-%COMP%]     .title-wrapper h2, .spar-theme.spar-theme[_nghost-%COMP%]   app-product-picker[_ngcontent-%COMP%]     .title-wrapper h2, .meny-theme.spar-theme[_nghost-%COMP%]   app-product-picker[_ngcontent-%COMP%]     .title-wrapper h2{text-transform:none}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-product-additions[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-product-additions[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-product-additions[_ngcontent-%COMP%]{background-color:#fff;margin:-30px -100px 0;padding:30px 100px 0}}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%]{justify-content:center}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%]{padding:16px}}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr max-content min-content;align-items:center;max-width:1296px;width:100%;gap:32px;overflow:hidden}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:1fr min-content;gap:8px}}@media only screen and (min-width: 0px) and (max-width: 400px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:1fr}}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]{display:flex;gap:4px;flex-wrap:wrap;overflow:auto;max-height:68px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]{grid-column:span 2;flex-wrap:nowrap;max-width:100vw}}@media only screen and (min-width: 0px) and (max-width: 400px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]{grid-column:1}}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;padding:5px 5px 5px 10px;height:min-content;min-width:max-content;font-size:10px;line-height:10px;font-weight:700;color:#4b7428;background-color:#f0f6eb;border:1px solid #4b7428;border-radius:32px}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:10px;width:10px;border:1px solid;border-radius:20px;padding:4px}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg g, .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg g, .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg g{fill:#4b7428}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{gap:4px}@media only screen and (min-width: 0px) and (max-width: 400px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{align-items:center}}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:18px;line-height:22px;font-weight:700}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%] > label[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{font-size:14px;line-height:22px}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{height:48px;width:150px;font-size:18px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{width:130px}}@media only screen and (min-width: 0px) and (max-width: 400px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{width:100%;box-sizing:border-box}}.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;width:auto;height:48px;margin-left:0;font-size:16px}@media only screen and (min-width: 0px) and (max-width: 400px){.min-kobmand-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:100%}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{font-size:2.25em}@media only screen and (min-width: 0px) and (max-width: 768px){.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{font-size:1.5em}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{font-size:1.1em}@media only screen and (min-width: 0px) and (max-width: 768px){.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{font-size:.9em}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-info-text[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff;max-width:max-content;padding:8px;border-radius:8px}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]{border-bottom-color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{color:#fe0}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{color:#fe0}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   app-product-main-options[_ngcontent-%COMP%]{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]     *{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   .fade[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,transparent,#000)}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%]{background-color:#fe0}.clpartyservice-theme[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     .text-button{border:1px solid #000}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{display:flex;margin:0 0 40px;padding:24px;gap:48px;overflow:hidden;max-height:660px;transition:max-height 2s ease-in}[_nghost-%COMP%]   app-center-section.read-more[_ngcontent-%COMP%]{max-height:9999px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{gap:24px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{flex-direction:column;gap:0;max-height:900px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-savings[_ngcontent-%COMP%]{font-size:1.5em;top:40px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%]{flex:1 0 auto;max-height:660px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;flex-direction:column;margin-bottom:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]{flex:1 1 auto;position:relative;display:flex;flex-direction:column;border-bottom:1px solid var(--accent-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]{align-items:center}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{flex:0 0 auto;font-size:2em;margin:28px 0 8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{text-align:center;font-size:1.2em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{flex:0 0 auto;font-size:1.2em;font-weight:500;color:var(--text-accent-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{text-align:center;font-size:.9em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{flex:1 0 auto;font-size:2.5em;font-weight:700;padding:12px 0 8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{font-size:2em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .discount-levels[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .discount-levels[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;padding:4px 10px;background-color:var(--primary-color);color:var(--text-primary-color);border-radius:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-info-text[_ngcontent-%COMP%]{margin-bottom:8px;margin-top:-8px;font-weight:500}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   app-product-main-options[_ngcontent-%COMP%]{margin-bottom:20px;width:100%}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:8px;margin-bottom:40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:16px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .basket-button[_ngcontent-%COMP%]{margin-right:0;margin-bottom:16px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .age-restricted[_ngcontent-%COMP%]{position:relative}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .basket-button[_ngcontent-%COMP%]{flex:0 0 auto;margin-right:16px;font-size:1.2em}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:254px;height:46px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .age-restricted[_ngcontent-%COMP%]{position:absolute;height:80px;right:0}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]{flex:1 1 auto;margin-top:24px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;font-size:1.1em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{margin-bottom:28px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{margin:8px 0 16px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .assortments[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto;margin-right:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .alcohol[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .allergener[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-size:16px;line-height:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .alcohol[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .allergener[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .alcohol[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .allergener[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;font-size:14px;line-height:22px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{display:flex;margin-top:-20px;gap:4px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;margin-left:-4px;width:24px;height:24px;transform:scale(.75)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{height:min-content;margin-top:4.5px;font-weight:500;font-size:12px;line-height:16px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .pdfs[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-size:16px;line-height:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .pdfs[_ngcontent-%COMP%]   .pdflinks-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .pdfs[_ngcontent-%COMP%]   .pdflinks-wrapper[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;bottom:0;right:24px;margin:0;color:#000;text-decoration:underline;font-size:1.05em;font-weight:600;cursor:pointer}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   .fade[_ngcontent-%COMP%]{height:20px;width:100%;padding-top:20px;background-image:linear-gradient(to bottom,transparent,white)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{padding:20px 0;box-sizing:border-box;background-color:#fff;outline:none}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:active{transform:scale(1)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;padding:20px 0;text-align:center}}[_nghost-%COMP%]   .sticky-padding[_ngcontent-%COMP%]{padding-bottom:var(--sticky-height, 100px)}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]{position:relative;bottom:0;display:flex;box-sizing:border-box;justify-content:flex-end;align-items:center;width:100vw;height:100px;background-color:#fff;gap:30px;box-shadow:0 0 5px 1px #0000001a;padding:0 32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]{height:auto;flex-direction:column;gap:16px;padding:32px 0}}[_nghost-%COMP%]   .total.sticky[_ngcontent-%COMP%]{position:fixed;z-index:1000}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]{display:flex;gap:24px;justify-self:flex-end;flex:0 0 auto;width:448px;height:46px;font-size:1.2em;margin-right:80px}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;width:212px;height:46px}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]{margin-right:0}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]{gap:12px;width:212px;margin-right:0}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:100px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]{gap:12px;width:212px;margin-right:0}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .buy-more[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:100px}}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:3;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:1.1em;font-weight:500;margin-bottom:2px}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.2em;font-weight:600}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{display:flex;gap:16px}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;width:212px;height:46px;margin-left:52px;font-size:1.2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{margin-left:unset}}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{flex:0 0 auto;width:212px;font-size:1.2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{padding:5px 0}}[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .delete-line[_ngcontent-%COMP%]{width:32px;height:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .total[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .delete-line[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;width:28px;height:28px;min-width:28px;min-height:28px}}"],data:{animation:[(0,gt.X$)("slide",[(0,gt.eR)(":enter",[(0,gt.oB)({opacity:0,"margin-right":"50px"}),(0,gt.jt)("400ms",(0,gt.oB)({opacity:1,"margin-right":"*"}))]),(0,gt.eR)(":leave",[(0,gt.oB)({opacity:1}),(0,gt.jt)("200ms",(0,gt.oB)({opacity:0}))])])]}})}return p})();var ke=c(6814),Ne=c(4021),le=c(1036);function cn(p,K){if(1&p&&(i.TgZ(0,"h3"),i._uU(1),i.qZA()),2&p){const d=i.oxw();i.ekj("required",d.highlightRequired),i.xp6(1),i.AsE(" ",d.module.name," ",d.module.minPickCount>0?"*":"","\n")}}function se(p,K){if(1&p&&(i.TgZ(0,"mat-radio-button",5),i._uU(1),i.qZA()),2&p){const d=K.$implicit;i.Q6J("value",d.id),i.xp6(1),i.hij(" ",d.productDisplayName," ")}}function Ie(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"mat-radio-group",3),i.NdJ("change",function(S){i.CHM(d);const pe=i.oxw();return i.KtG(pe.changeRadio(S.value))}),i.YNc(1,se,2,2,"mat-radio-button",4),i.qZA()}if(2&p){const d=i.oxw();i.Q6J("ngModel",d.radioValue)("disabled",d.locked),i.xp6(1),i.Q6J("ngForOf",d.module.products)}}function We(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"mat-checkbox",7),i.NdJ("change",function(){const pe=i.CHM(d).$implicit,Ue=i.oxw(2);return i.KtG(Ue.changeRadioCheck(pe.id))}),i._uU(1),i.qZA()}if(2&p){const d=K.$implicit,v=i.oxw(2);i.Q6J("disabled",v.locked)("checked",v.radioValue===d.id),i.xp6(1),i.hij(" ",d.productDisplayName," ")}}function Mn(p,K){if(1&p&&(i.ynx(0),i.YNc(1,We,2,3,"mat-checkbox",6),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngForOf",d.module.products)}}function ci(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"mat-checkbox",7),i.NdJ("change",function(S){const Ue=i.CHM(d).$implicit,hn=i.oxw(2);return i.KtG(hn.changeCheck(Ue,S.checked))}),i._uU(1),i.qZA()}if(2&p){const d=K.$implicit,v=i.oxw(2);i.Q6J("disabled",v.locked)("checked",v.composition&&!(null==v.composition||null==v.composition.moduleChoices[v.module.id]||null==v.composition.moduleChoices[v.module.id].products[d.id]||!v.composition.moduleChoices[v.module.id].products[d.id].quantity)),i.xp6(1),i.hij(" ",d.productDisplayName," ")}}function Ji(p,K){if(1&p&&(i.ynx(0),i.YNc(1,ci,2,3,"mat-checkbox",6),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngForOf",d.module.products)}}let Ei=(()=>{class p extends x.I{constructor(d){super(d,"productInfo"),this.add=new i.vpe,this.remove=new i.vpe,this.label="V\xe6lg produkt",this.selectLabel=this.content.get("selectLabelText"),this.selectedLabel=this.content.get("selectedLabelText")}ngOnInit(){const{maxPickCount:d,singles:v,name:S}=this.module;if(this.title=S,1!==d)v&&(this.type="pick-many"),v||(this.type="add");else{this.type="pick-one";for(const pe of this.module.products)if(this.composition&&this.composition?.moduleChoices[this.module.id]?.products[pe.id]?.quantity){this.radioValue=pe.id;break}}}changeRadio(d){this.radioValue&&this.removeProduct(this.getProductById(this.radioValue)),this.addProduct(this.getProductById(d)),this.radioValue=d}changeRadioCheck(d){this.radioValue&&this.removeProduct(this.getProductById(this.radioValue)),0!==this.module.minPickCount||this.radioValue!==d?(this.addProduct(this.getProductById(d)),this.radioValue=d):this.radioValue=void 0}changeCheck(d,v){v?this.addProduct(d):this.removeProduct(d)}getProductById(d){return this.module.products.find(v=>v.id===d)}addProduct(d){this.add.emit([this.module,d,this.type])}removeProduct(d){this.remove.emit([this.module,d,this.type])}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-product-main-options"]],hostVars:1,hostBindings:function(v,S){2&v&&i.uIk("aria-label",S.label)},inputs:{module:"module",composition:"composition",locked:"locked",highlightRequired:"highlightRequired"},outputs:{add:"add",remove:"remove"},features:[i.qOj],decls:4,vars:4,consts:[[3,"required",4,"ngIf"],[3,"ngModel","disabled","change",4,"ngIf"],[4,"ngIf"],[3,"ngModel","disabled","change"],["color","primary",3,"value",4,"ngFor","ngForOf"],["color","primary",3,"value"],["color","primary",3,"disabled","checked","change",4,"ngFor","ngForOf"],["color","primary",3,"disabled","checked","change"]],template:function(v,S){1&v&&(i.YNc(0,cn,2,4,"h3",0),i.YNc(1,Ie,2,3,"mat-radio-group",1),i.YNc(2,Mn,2,1,"ng-container",2),i.YNc(3,Ji,2,1,"ng-container",2)),2&v&&(i.Q6J("ngIf",S.module.showMainTitle||S.module.minPickCount>0),i.xp6(1),i.Q6J("ngIf","pick-one"===S.type&&1===S.module.minPickCount),i.xp6(1),i.Q6J("ngIf","pick-one"===S.type&&0===S.module.minPickCount),i.xp6(1),i.Q6J("ngIf","pick-many"===S.type))},dependencies:[ke.sg,ke.O5,o.JJ,o.On,Ne.FC,le.OY,le.vy],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   h3.required[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   mat-radio-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}[_nghost-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{width:14px;height:14px}[_nghost-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-container{height:14px;width:14px}[_nghost-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-outer-circle{height:14px;width:14px}[_nghost-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-inner-circle{height:14px;width:14px}[_nghost-%COMP%]   mat-radio-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-button .mat-radio-ripple{height:28px;width:28px;left:calc(50% - 14px);top:calc(50% - 14px)}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]     .mat-checkbox-inner-container{width:14px;height:14px}"]})}return p})();function Yi(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.Oqu(d.pickCountLabel)}}function No(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"button",9),i.NdJ("click",function(){i.CHM(d);const S=i.oxw().$implicit,pe=i.oxw(2);return i.KtG(pe.removeProduct(S))}),i._uU(1),i._UZ(2,"mat-icon",10),i.qZA()}if(2&p){const d=i.oxw().$implicit;i.xp6(1),i.hij(" ",d.productDisplayName," ")}}function Mo(p,K){if(1&p&&(i.ynx(0),i.YNc(1,No,3,1,"button",8),i.BQk()),2&p){const d=K.$implicit,v=i.oxw(2);i.xp6(1),i.Q6J("ngIf",v.composition&&!(null==v.composition||null==v.composition.moduleChoices[v.module.id]||null==v.composition.moduleChoices[v.module.id].products[d.id]||!v.composition.moduleChoices[v.module.id].products[d.id].quantity))}}function Ai(p,K){if(1&p&&(i.TgZ(0,"div",6),i.YNc(1,Mo,2,1,"ng-container",7),i.qZA()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("ngForOf",d.module.products)}}function Ui(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-product-card",11),i.NdJ("add",function(){const pe=i.CHM(d).$implicit,Ue=i.oxw();return i.KtG(Ue.addProduct(pe))})("remove",function(){const pe=i.CHM(d).$implicit,Ue=i.oxw();return i.KtG(Ue.removeProduct(pe))}),i.qZA()}if(2&p){const d=K.$implicit,v=i.oxw();i.Q6J("product",d)("baseCard",!0)("selectLabel",v.selectLabel)("selectedLabel",v.selectedLabel)("quantity","add"===v.type&&v.composition?null==v.composition||null==v.composition.moduleChoices[v.module.id]||null==v.composition.moduleChoices[v.module.id].products[d.id]?null:v.composition.moduleChoices[v.module.id].products[d.id].quantity:void 0)("picked","add"!==v.type&&v.composition&&!(null==v.composition||null==v.composition.moduleChoices[v.module.id]||null==v.composition.moduleChoices[v.module.id].products[d.id]||!v.composition.moduleChoices[v.module.id].products[d.id].quantity))("clearable",v.composition.minCount<1)("locked",v.locked)("small",!0)("moduleType",v.type)("hideImage",v.hideImages)}}let io=(()=>{class p extends x.I{constructor(d,v,S){super(d,"productInfo"),this.themeService=v,this.elRef=S,this.add=new i.vpe,this.remove=new i.vpe,this.selectLabel=this.content.get("selectLabelText"),this.selectedLabel=this.content.get("selectedLabelText")}ngOnInit(){const{minPickCount:d,maxPickCount:v,singles:S,name:pe}=this.module;this.title=pe,this.hideImages=!this.containsImages(this.module.products),(d||v)&&(!d&&v?this.pickCountLabel=`V\xe6lg op til ${v} stk.`:d&&!v?this.pickCountLabel=`V\xe6lg minimum ${d} stk.`:d===v?this.pickCountLabel=`V\xe6lg ${d} stk.`:d&&v&&d!=v&&(this.pickCountLabel=`V\xe6lg mellem ${d} og ${v} stk.`)),1!==v?(S&&(this.type="pick-many"),S||(this.type="add")):this.type="pick-one"}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}addProduct(d){this.add.emit([this.module,d,this.type])}removeProduct(d){this.remove.emit([this.module,d,this.type])}containsImages(d){for(const v of d)if(v.primaryImageUrl)return!0;return!1}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(Lt.f),i.Y36(i.SBq))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-product-picker"]],inputs:{module:"module",composition:"composition",locked:"locked",highlightRequired:"highlightRequired"},outputs:{add:"add",remove:"remove"},features:[i.qOj],decls:8,vars:7,consts:[[1,"header"],[1,"title-wrapper"],[4,"ngIf"],["class","selected-labels",4,"ngIf"],[1,"modules"],[3,"product","baseCard","selectLabel","selectedLabel","quantity","picked","clearable","locked","small","moduleType","hideImage","add","remove",4,"ngFor","ngForOf"],[1,"selected-labels"],[4,"ngFor","ngForOf"],["class","selected-product unstyled-button",3,"click",4,"ngIf"],[1,"selected-product","unstyled-button",3,"click"],["svgIcon","delete"],[3,"product","baseCard","selectLabel","selectedLabel","quantity","picked","clearable","locked","small","moduleType","hideImage","add","remove"]],template:function(v,S){1&v&&(i.TgZ(0,"div",0)(1,"div",1)(2,"h2"),i._uU(3),i.qZA(),i.YNc(4,Yi,2,1,"span",2),i.qZA(),i.YNc(5,Ai,2,1,"div",3),i.qZA(),i.TgZ(6,"div",4),i.YNc(7,Ui,1,11,"app-product-card",5),i.qZA()),2&v&&(i.xp6(2),i.ekj("required",S.highlightRequired),i.xp6(1),i.AsE("",S.title,"",S.module.minPickCount>0?"*":"",""),i.xp6(1),i.Q6J("ngIf",S.pickCountLabel),i.xp6(1),i.Q6J("ngIf","add"!==S.type),i.xp6(2),i.Q6J("ngForOf",S.module.products))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}@media only screen and (min-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{max-width:1074px}}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#8d8d8d}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]{text-transform:uppercase}.min-kobmand-theme[_nghost-%COMP%]   .modules[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .modules[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,244.5px);grid-column-gap:11px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .modules[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .modules[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.clpartyservice-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:#fe0}.apetit-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{display:flex;gap:16px;margin-bottom:30px;min-height:32px;max-height:68px;max-width:var(--nxt-width)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{flex-direction:column;gap:8px;overflow:hidden;margin-bottom:16px;max-width:95vw;height:96px;min-height:unset;max-height:unset}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{max-width:90vw;height:auto;min-height:68px}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-direction:column;gap:8px;max-width:50%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]{max-width:unset}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{color:#000;margin:0}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   h2.required[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .title-wrapper[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;font-size:16px;line-height:20px;color:#878787}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]{display:flex;gap:4px;flex-wrap:wrap;overflow:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]{flex-wrap:nowrap}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]{display:flex;align-items:center;gap:5px;padding:5px 5px 5px 10px;height:min-content;min-width:max-content;font-size:10px;line-height:10px;font-weight:700;color:#4b7428;background-color:#f0f6eb;border:1px solid #4b7428;border-radius:32px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:10px;width:10px;border:1px solid;border-radius:20px;padding:4px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .selected-labels[_ngcontent-%COMP%]   .selected-product[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     svg g{fill:#4b7428}[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,214px);grid-row-gap:20px;grid-column-gap:8px;margin-bottom:60px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .modules[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}"]})}return p})();function Ye(p,K){if(1&p&&i._UZ(0,"app-product-card",2),2&p){const d=i.oxw().$implicit;i.Q6J("product",d)("small",!0)}}function Sn(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ye,1,2,"app-product-card",1),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",d.forSale)}}let N=(()=>{class p extends x.I{constructor(d,v,S){super(d,"productInfo"),this.themeService=v,this.elRef=S}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnChanges(){const{name:d,products:v}=this.additions;this.title=d,this.products=v}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(Lt.f),i.Y36(i.SBq))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-product-additions"]],inputs:{additions:"additions"},features:[i.qOj,i.TTD],decls:4,vars:2,consts:[[4,"ngFor","ngForOf"],[3,"product","small",4,"ngIf"],[3,"product","small"]],template:function(v,S){1&v&&(i.TgZ(0,"h2"),i._uU(1),i.qZA(),i.TgZ(2,"div"),i.YNc(3,Sn,2,1,"ng-container",0),i.qZA()),2&v&&(i.xp6(1),i.Oqu(S.title),i.xp6(2),i.Q6J("ngForOf",S.products))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}.min-kobmand-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{text-transform:none}.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,244.5px);grid-column-gap:32px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}.clpartyservice-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{color:#fe0}.apetit-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{color:#000;margin-top:0;margin-bottom:30px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,214px);grid-row-gap:20px;grid-column-gap:8px;margin-bottom:60px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}"]})}return p})();var Zt=c(3982);const kt=["productContent"],fe=["productDescription"];function sn(p,K){if(1&p&&(i.TgZ(0,"span",24),i._uU(1),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Oqu(d.summaryLabel)}}function Gn(p,K){if(1&p&&i._UZ(0,"app-price",25),2&p){const d=i.oxw(2);i.Q6J("value",d.price)("forceSuperscript",!0)}}function Do(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&p){const d=i.oxw().$implicit;i.xp6(1),i.AsE(" ",d.discountPercent,"% for ",d.minimumQuantity," stk. ")}}function Fo(p,K){if(1&p&&(i.TgZ(0,"div")(1,"span"),i._uU(2),i.qZA(),i.YNc(3,Do,2,2,"span",1),i.qZA()),2&p){const d=K.$implicit;i.xp6(2),i.Oqu(d.displayText),i.xp6(1),i.Q6J("ngIf",!d.hidePercentPerQuantity)}}function ir(p,K){if(1&p&&(i.TgZ(0,"span",26),i._uU(1),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Oqu(d.product.altPriceText)}}function Ut(p,K){if(1&p&&(i.TgZ(0,"span",27),i._uU(1),i.ALo(2,"number"),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.AsE(" ",d.originalPriceLabel," ",i.Dn7(2,2,d.product.originalPrice,".2-2",d.locale)," ")}}function Rn(p,K){if(1&p&&(i.TgZ(0,"span",28),i._uU(1),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Oqu(d.product.infoText)}}function Bt(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",31),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.addProduct(S.product.minCount))}),i._uU(1),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("disabled",!d.product.forSale),i.xp6(1),i.hij(" ",d.product.forSale?d.product.productPageButtonText?d.product.productPageButtonText:d.sharedContent.addToBasketLabel:d.sharedContent.productNotForSale," ")}}function he(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-counter",32),i.NdJ("add",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.addProduct(S))})("remove",function(S){i.CHM(d);const pe=i.oxw().ngLet,Ue=i.oxw(2);return i.KtG(Ue.removeProduct(pe.quantity,S))}),i.qZA()}if(2&p){const d=i.oxw().ngLet,v=i.oxw(2);i.Q6J("count",d.quantity)("minCount",v.product.minCount)}}function Be(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Bt,2,2,"app-text-button",29),i.YNc(2,he,1,2,"app-counter",30),i.BQk()),2&p){const d=K.ngLet;i.xp6(1),i.Q6J("ngIf",!d),i.xp6(1),i.Q6J("ngIf",d)}}function xn(p,K){1&p&&i._UZ(0,"img",33)}function Fn(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.qZA()),2&p){const d=i.oxw().ngIf;i.xp6(1),i.hij("Udleveres n\xe6ste gang ",i.xi3(2,1,d.from,"fullDate"),"")}}function li(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"date"),i.ALo(3,"date"),i.qZA()),2&p){const d=i.oxw().ngIf;i.xp6(1),i.AsE(" Udleveres n\xe6ste gang mellem ",i.xi3(2,2,d.from,"fullDate")," og ",i.xi3(3,5,d.to,"fullDate")," ")}}function ji(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Fn,3,4,"span",1),i.YNc(2,li,4,8,"span",1),i.BQk()),2&p){const d=K.ngIf;i.xp6(1),i.Q6J("ngIf",d.from===d.to),i.xp6(1),i.Q6J("ngIf",d.from!==d.to)}}function wo(p,K){if(1&p&&(i.TgZ(0,"div",34),i._UZ(1,"mat-icon",35),i.YNc(2,ji,3,2,"ng-container",1),i.ALo(3,"limit"),i.qZA()),2&p){const d=i.oxw(2);i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,d.product))}}function Wi(p,K){if(1&p&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.Oqu(d.product.productDisplayName)}}function go(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Wi,2,1,"h2",1),i._UZ(2,"div",36),i.ALo(3,"sanitizeHtml"),i.BQk()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngIf",d.product.productDisplayTitle),i.xp6(1),i.Q6J("innerHTML",i.lcZ(3,2,d.product.productDescription),i.oJD)}}function Xi(p,K){if(1&p&&(i.TgZ(0,"div",37)(1,"h2"),i._uU(2,"Allergener"),i.qZA(),i.TgZ(3,"span"),i._UZ(4,"mat-icon",38),i._uU(5),i.qZA()()),2&p){const d=i.oxw(2);i.xp6(5),i.Oqu(d.getAllergensString(d.product.allergens))}}function co(p,K){if(1&p&&(i.TgZ(0,"div",39)(1,"h2"),i._uU(2,"Alkoholprocent"),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.qZA()()),2&p){const d=i.oxw(2);i.xp6(4),i.hij("",d.product.alcoholPercent," %")}}function Ho(p,K){if(1&p&&(i.TgZ(0,"app-text-button",43),i._uU(1),i.ALo(2,"pdfName"),i.qZA()),2&p){const d=K.$implicit,v=i.oxw(3);i.Q6J("href",v.contentUrl+d),i.xp6(1),i.hij(" ",i.lcZ(2,2,d)," ")}}function ko(p,K){if(1&p&&(i.TgZ(0,"div",40)(1,"h2"),i._uU(2),i.qZA(),i.TgZ(3,"div",41),i.YNc(4,Ho,3,4,"app-text-button",42),i.qZA()()),2&p){const d=i.oxw(2);i.xp6(2),i.Oqu(d.preparationGuideLabel),i.xp6(2),i.Q6J("ngForOf",d.product.pdfUrls)}}function ii(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"div",44),i._UZ(1,"div",45),i.TgZ(2,"button",46),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(2);return i.KtG(S.readMore=!0)}),i._uU(3),i.qZA()()}if(2&p){const d=i.oxw(2);i.Udp("width",d.readMoreWidth,"px"),i.xp6(3),i.Oqu(d.readMoreLabel)}}function lo(p,K){if(1&p&&(i.ynx(0),i._UZ(1,"app-image-carousel",3),i.TgZ(2,"div",4)(3,"section",5)(4,"div",6)(5,"h1",7),i._uU(6),i.qZA(),i.YNc(7,sn,2,1,"span",8),i.YNc(8,Gn,1,2,"app-price",9),i.TgZ(9,"div",10),i.YNc(10,Fo,4,2,"div",2),i.qZA(),i.YNc(11,ir,2,1,"span",11),i.YNc(12,Ut,3,6,"span",12),i.YNc(13,Rn,2,1,"span",13),i.qZA(),i.TgZ(14,"div",14),i.YNc(15,Be,3,2,"ng-container",15),i.ALo(16,"async"),i.YNc(17,xn,1,0,"img",16),i.qZA()(),i.TgZ(18,"section",17,18),i.YNc(20,wo,4,3,"div",19),i.YNc(21,go,4,4,"ng-container",1),i.YNc(22,Xi,6,1,"div",20),i.YNc(23,co,5,1,"div",21),i.YNc(24,ko,5,2,"div",22),i.YNc(25,ii,4,3,"div",23),i.qZA()(),i.BQk()),2&p){const d=i.oxw();i.xp6(1),i.Q6J("product",d.product),i.xp6(5),i.Oqu(d.product.productDisplayTitle||d.product.productDisplayName),i.xp6(1),i.Q6J("ngIf",d.summaryLabel),i.xp6(1),i.Q6J("ngIf",!d.product.altPriceText),i.xp6(2),i.Q6J("ngForOf",d.product.discountLevels),i.xp6(1),i.Q6J("ngIf",d.product.altPriceText),i.xp6(1),i.Q6J("ngIf",d.product.splash&&d.product.originalPrice!==d.product.price),i.xp6(1),i.Q6J("ngIf",d.product.infoText),i.xp6(2),i.Q6J("ngLet",d.isProductLine(i.lcZ(16,16,d.basketProducts)[d.product.id])),i.xp6(2),i.Q6J("ngIf",d.product.alcoholPercent),i.xp6(3),i.Q6J("ngIf",d.product.productDeliveryLimit),i.xp6(1),i.Q6J("ngIf",d.product.productDescription),i.xp6(1),i.Q6J("ngIf",(null==d.product.allergens?null:d.product.allergens.length)>0),i.xp6(1),i.Q6J("ngIf",d.product.alcoholPercent),i.xp6(1),i.Q6J("ngIf",d.product.displayPdfUrls&&(null==d.product.pdfUrls?null:d.product.pdfUrls.length)>0),i.xp6(1),i.Q6J("ngIf",!1===d.readMore)}}function xo(p,K){if(1&p&&i._UZ(0,"app-product-additions",48),2&p){const d=i.oxw().$implicit;i.Q6J("additions",d)}}function $o(p,K){if(1&p&&(i.ynx(0),i.YNc(1,xo,1,1,"app-product-additions",47),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",d.display)}}let Eo=(()=>{class p extends x.I{constructor(d,v,S,pe,Ue,hn){super(d,"productInfo"),this.basketService=v,this.cdr=S,this.themeService=pe,this.elRef=Ue,this.deviceService=hn,this.contentUrl=`${l.environment.cmsOrigin}`,this.locale=l.environment.i18n.language,this.CONTENT_MAX_HEIGHT=660,this.MOBILE_MAX_HEIGHT=900,this.placeholder=V.b,this.readMoreWidth=0,this.assortmentNames={},this.readMoreLabel=this.content.get("readMoreLabelText")||"L\xe6s mere",this.preparationGuideLabel=this.content.get("preparationGuideText")||"Tilberedningsvejledning";const yn=this.contentService.getSharedContent();this.originalPriceLabel=yn.get("originalPriceLabelText"),this.isDagrofa=this.contentService.isDagrofa,this.readMore=!this.isDagrofa}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngAfterViewInit(){if(typeof window>"u")return;const d=this.deviceService.isMobile()?this.MOBILE_MAX_HEIGHT:this.CONTENT_MAX_HEIGHT;this.productContent.nativeElement.offsetHeight<d-12&&(this.readMore=!0,this.cdr.detectChanges()),this.readMoreWidth=this.productDescription.nativeElement.offsetWidth+4}ngOnChanges(d){d.product&&(this.summaryLabel=this.product.summary,this.isDagrofa&&this.product.minCount>0&&(this.summaryLabel=`Minimum ${this.product.minCount} kuverter`))}addProduct(d){this.basketService.addProduct(this.product,d=d||1,!0)}removeProduct(d,v){d!==(v=v||1)?this.basketService.removeProduct(this.product,v):this.basketService.deleteProduct(this.product)}isProductLine(d){return d}getAllergensString(d){return d.map(S=>Pt.az[S]).join(", ")}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(R.vD),i.Y36(i.sBO),i.Y36(Lt.f),i.Y36(i.SBq),i.Y36(Jt.x0))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-simple-product-detail"]],viewQuery:function(v,S){if(1&v&&(i.Gf(kt,5,i.SBq),i.Gf(fe,5,i.SBq)),2&v){let pe;i.iGM(pe=i.CRH())&&(S.productContent=pe.first),i.iGM(pe=i.CRH())&&(S.productDescription=pe.first)}},inputs:{product:"product",sharedContent:"sharedContent",basketProducts:"basketProducts",price:"price",savings:"savings"},features:[i.qOj,i.TTD],decls:5,vars:4,consts:[["productContent",""],[4,"ngIf"],[4,"ngFor","ngForOf"],[3,"product"],[1,"product-details"],[1,"product-header"],[1,"product-summary"],[1,"product-details-name"],["class","product-details-summary",4,"ngIf"],["class","price-text",3,"value","forceSuperscript",4,"ngIf"],[1,"discount-levels"],["class","price-text",4,"ngIf"],["class","product-card-original-price",4,"ngIf"],["class","product-info-text",4,"ngIf"],[1,"product-buttons"],[4,"ngLet"],["src","assets/images/sundhedsstyrelsen.png","alt","Aldersgr\xe6nse for salg: 16 \xe5r for alkohol under 16,5% og 18 \xe5r for alkohol fra 16,5%","class","age-restricted",4,"ngIf"],[1,"product-descriptions"],["productDescription",""],["class","delivery-limit",4,"ngIf"],["class","allergener",4,"ngIf"],["class","alcohol",4,"ngIf"],["class","pdfs",4,"ngIf"],["class","read-more",3,"width",4,"ngIf"],[1,"product-details-summary"],[1,"price-text",3,"value","forceSuperscript"],[1,"price-text"],[1,"product-card-original-price"],[1,"product-info-text"],["class","basket-button",3,"disabled","click",4,"ngIf"],["class","basket-button",3,"count","minCount","add","remove",4,"ngIf"],[1,"basket-button",3,"disabled","click"],[1,"basket-button",3,"count","minCount","add","remove"],["src","assets/images/sundhedsstyrelsen.png","alt","Aldersgr\xe6nse for salg: 16 \xe5r for alkohol under 16,5% og 18 \xe5r for alkohol fra 16,5%",1,"age-restricted"],[1,"delivery-limit"],["svgIcon","info"],[1,"rich-text","light",3,"innerHTML"],[1,"allergener"],["svgIcon","warning"],[1,"alcohol"],[1,"pdfs"],[1,"pdflinks-wrapper"],["target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",3,"href"],[1,"read-more"],[1,"fade"],[1,"unstyled-button",3,"click"],[3,"additions",4,"ngIf"],[3,"additions"]],template:function(v,S){1&v&&(i.TgZ(0,"div")(1,"app-center-section",null,0),i.YNc(3,lo,26,18,"ng-container",1),i.qZA(),i.YNc(4,$o,2,1,"ng-container",2),i.qZA()),2&v&&(i.xp6(1),i.ekj("read-more",!0===S.readMore),i.xp6(2),i.Q6J("ngIf",S.product),i.xp6(1),i.Q6J("ngForOf",S.product.productAdditions))},styles:[".fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{font-size:2.25em}@media only screen and (min-width: 0px) and (max-width: 768px){.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{font-size:1.5em}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{font-size:1.1em}@media only screen and (min-width: 0px) and (max-width: 768px){.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{font-size:.9em}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-card-original-price[_ngcontent-%COMP%]{font-size:1.1em}@media only screen and (min-width: 0px) and (max-width: 768px){.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-card-original-price[_ngcontent-%COMP%]{font-size:.9em}}.fandanko-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-info-text[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff;max-width:max-content;padding:8px;border-radius:8px}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{max-width:1074px;display:grid;grid-template-columns:1fr 1fr;gap:32px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;max-height:900px}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%]{width:100%;max-width:100%;padding-top:0}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]{align-items:unset}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{font-size:34px;line-height:38px;margin-top:16px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{text-align:unset}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:#6d6d6c}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{text-align:unset}}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{font-size:34px;line-height:38px;padding-top:16px}.min-kobmand-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{display:none}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]{border-bottom-color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{color:#fe0}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{color:#fe0}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]     *{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]{color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   .fade[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,transparent,#000)}.clpartyservice-theme[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{background-color:#000}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{display:flex;margin:0 0 128px;padding:24px;gap:48px;overflow:hidden;max-height:660px;transition:max-height 2s ease-in}[_nghost-%COMP%]   app-center-section.read-more[_ngcontent-%COMP%]{max-height:9999px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{gap:24px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{flex-direction:column;gap:0;max-height:900px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   app-image-carousel[_ngcontent-%COMP%]{flex:1 0 auto;max-height:660px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;flex-direction:column;margin-bottom:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]{flex:1 0 auto;position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:260px;border-bottom:1px solid var(--accent-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]{align-items:center;height:auto}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{flex:0 0 auto;font-size:2em;margin:28px 0 8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{text-align:center;font-size:1.2em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{flex:0 0 auto;font-size:1.2em;font-weight:500;color:var(--text-accent-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-details-summary[_ngcontent-%COMP%]{text-align:center;font-size:.9em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{flex:0 0 auto;font-size:2.5em;font-weight:700;padding:12px 0 8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{font-size:1.8em}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .discount-levels[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .discount-levels[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;padding:4px 10px;background-color:var(--primary-color);color:var(--text-primary-color);border-radius:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-card-original-price[_ngcontent-%COMP%]{flex:0 0 auto;font-size:1.2em;font-weight:500;color:var(--text-accent-color)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-info-text[_ngcontent-%COMP%]{margin-bottom:8px;margin-top:-8px;font-weight:500}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:8px;margin-bottom:40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{flex-direction:column;margin-bottom:16px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .basket-button[_ngcontent-%COMP%]{flex:0 0 auto;margin-right:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .basket-button[_ngcontent-%COMP%]{margin-right:0;margin-bottom:16px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:216px;height:40px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%] > *.spar-theme[_ngcontent-%COMP%]{width:250px;height:48px;font-size:16px;text-transform:uppercase}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .age-restricted[_ngcontent-%COMP%]{position:absolute;height:80px;right:0}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .age-restricted[_ngcontent-%COMP%]{position:relative}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]{margin-top:24px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:700;font-size:1.1em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{margin-bottom:28px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{margin:8px 0 16px}}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .assortments[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto;margin-right:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .alcohol[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .allergener[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-size:16px;line-height:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .alcohol[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .allergener[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .alcohol[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], [_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .allergener[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;font-size:14px;line-height:22px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{display:flex;margin-top:-20px;gap:4px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;margin-left:-4px;width:24px;height:24px;transform:scale(.75)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{height:min-content;margin-top:4.5px;font-weight:500;font-size:12px;line-height:16px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .pdfs[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-size:16px;line-height:20px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .pdfs[_ngcontent-%COMP%]   .pdflinks-wrapper[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .pdfs[_ngcontent-%COMP%]   .pdflinks-wrapper[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;bottom:0;right:24px;margin:0;color:#000;text-decoration:underline;font-size:1.05em;font-weight:600;cursor:pointer}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%]   .fade[_ngcontent-%COMP%]{height:20px;width:100%;padding-top:20px;background-image:linear-gradient(to bottom,transparent,white)}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{padding:20px 0;box-sizing:border-box;background-color:#fff;outline:none}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:active{transform:scale(1)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-descriptions[_ngcontent-%COMP%]   .read-more[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;padding:20px 0;text-align:center}}[_nghost-%COMP%]   app-counter[_ngcontent-%COMP%]{width:216px;height:40px;line-height:40px}[_nghost-%COMP%]   app-counter[_ngcontent-%COMP%]     app-icon-button{min-width:40px;min-height:40px}"]})}return p})();var wr=c(4664);function ur(p,K){1&p&&i._UZ(0,"app-product-card",1),2&p&&i.Q6J("product",K.$implicit)}let xe=(()=>{class p{constructor(d,v,S){this.contentService=d,this.productService=v,this.productQuery=S;const pe=this.contentService.getSharedContent();this.title=pe.get("suggestedProductsTitle")||"Andre kiggede p\xe5"}ngOnInit(){this.productService.getSuggestedProducts(5),this.suggestedProducts=this.productQuery.selectSuggestedProducts$.pipe((0,wr.w)(d=>this.productQuery.selectMany(d)))}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(R.M5),i.Y36(R.sO))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-suggested-products"]],inputs:{product:"product"},decls:5,vars:4,consts:[[3,"product",4,"ngFor","ngForOf"],[3,"product"]],template:function(v,S){1&v&&(i.TgZ(0,"h2"),i._uU(1),i.qZA(),i.TgZ(2,"div"),i.YNc(3,ur,1,1,"app-product-card",0),i.ALo(4,"async"),i.qZA()),2&v&&(i.xp6(1),i.Oqu(S.title),i.xp6(2),i.Q6J("ngForOf",i.lcZ(4,2,S.suggestedProducts)))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{color:#000;margin-bottom:30px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,214px);justify-content:space-between;grid-row-gap:20px;grid-column-gap:8px;margin-bottom:100px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{justify-content:space-around}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]{justify-content:space-around}}"]})}return p})();var Mt=function(){return Mt=Object.assign||function(p){for(var K,d=1,v=arguments.length;d<v;d++)for(var S in K=arguments[d])Object.prototype.hasOwnProperty.call(K,S)&&(p[S]=K[S]);return p},Mt.apply(this,arguments)};function Kt(p,K,d){if(d||2===arguments.length)for(var v,S=0,pe=K.length;S<pe;S++)!v&&S in K||(v||(v=Array.prototype.slice.call(K,0,S)),v[S]=K[S]);return p.concat(v||Array.prototype.slice.call(K))}function ge(p){return Array.prototype.slice.call(p)}function Pe(p,K){var d=Math.floor(p);return d===K||d+1===K?p:K}function un(){return Date.now()}function Dn(p,K,d){if(K="data-keen-slider-"+K,null===d)return p.removeAttribute(K);p.setAttribute(K,d||"")}function Un(p,K){return K=K||document,"function"==typeof p&&(p=p(K)),Array.isArray(p)?p:"string"==typeof p?ge(K.querySelectorAll(p)):p instanceof HTMLElement?[p]:p instanceof NodeList?ge(p):[]}function Qn(p){p.raw&&(p=p.raw),p.cancelable&&!p.defaultPrevented&&p.preventDefault()}function Vn(p){p.raw&&(p=p.raw),p.stopPropagation&&p.stopPropagation()}function Oi(){var p=[];return{add:function(K,d,v,S){K.addListener?K.addListener(v):K.addEventListener(d,v,S),p.push([K,d,v,S])},input:function(K,d,v,S){var pe;this.add(K,d,(pe=v,function(Ue){Ue.nativeEvent&&(Ue=Ue.nativeEvent);var hn=Ue.changedTouches||[],yn=Ue.targetTouches||[],An=Ue.detail&&Ue.detail.x?Ue.detail:null;return pe({id:An?An.identifier?An.identifier:"i":yn[0]?yn[0]?yn[0].identifier:"e":"d",idChanged:An?An.identifier?An.identifier:"i":hn[0]?hn[0]?hn[0].identifier:"e":"d",raw:Ue,x:An&&An.x?An.x:yn[0]?yn[0].screenX:An?An.x:Ue.pageX,y:An&&An.y?An.y:yn[0]?yn[0].screenY:An?An.y:Ue.pageY})}),S)},purge:function(){p.forEach(function(K){K[0].removeListener?K[0].removeListener(K[2]):K[0].removeEventListener(K[1],K[2],K[3])}),p=[]}}}function ni(p,K,d){return Math.min(Math.max(p,K),d)}function pi(p){return(p>0?1:0)-(p<0?1:0)||+p}function Gi(p){var K=p.getBoundingClientRect();return{height:Pe(K.height,p.offsetHeight),width:Pe(K.width,p.offsetWidth)}}function Zn(p,K,d,v){var S=p&&p[K];return null==S?d:v&&"function"==typeof S?S():S}function Li(p){return Math.round(1e6*p)/1e6}function qn(p){var K,d,v,S,pe,Ue,hn,yn;function An(si){return 2*si}function Nn(si){return ni(si,hn,yn)}function ui(si){return 1-Math.pow(1-si,3)}function ei(){return v?p.track.velocity():0}function oi(si,Ci){void 0===Ci&&(Ci=1e3);var mi=147e-9+(si=Math.abs(si))/Ci;return{dist:Math.pow(si,2)/mi,dur:si/mi}}function gi(){var si=p.track.details;si&&(pe=si.min,Ue=si.max,hn=si.minIdx,yn=si.maxIdx)}function di(){p.animator.stop()}p.on("updated",gi),p.on("optionsChanged",gi),p.on("created",gi),p.on("dragStarted",function(){v=!1,di(),K=d=p.track.details.abs}),p.on("dragChecked",function(){v=!0}),p.on("dragEnded",function(){var si=p.options.mode;"snap"===si&&function(){var Ci=p.track,mi=p.track.details,Si=mi.position,Hi=pi(ei());(Si>Ue||Si<pe)&&(Hi=0);var vo=K+Hi;0===mi.slides[Ci.absToRel(vo)].portion&&(vo-=Hi),K!==d&&(vo=d),pi(Ci.idxToDist(vo,!0))!==Hi&&(vo+=Hi),vo=Nn(vo);var zo=Ci.idxToDist(vo,!0);p.animator.start([{distance:zo,duration:500,easing:function(Kn){return 1+--Kn*Kn*Kn*Kn*Kn}}])}(),"free"!==si&&"free-snap"!==si||function jn(){di();var si="free-snap"===p.options.mode,Ci=p.track,mi=ei();S=pi(mi);var Si=p.track.details,Hi=[];if(mi||!si){var vo=oi(mi),zo=vo.dist,Kn=vo.dur;if(Kn=An(Kn),zo*=S,si){var eo=Ci.idxToDist(Ci.distToIdx(zo),!0);eo&&(zo=eo)}Hi.push({distance:zo,duration:Kn,easing:ui});var Wo=Si.position,hr=Wo+zo;if(hr<pe||hr>Ue){var vr=hr<pe?pe-Wo:Ue-Wo,Di=0,hi=mi;if(pi(vr)===S){var Bn=Math.min(Math.abs(vr)/Math.abs(zo),1),$n=(1-Math.pow(1-Bn,1/3))*Kn;Hi[0].earlyExit=$n,hi=mi*(1-Bn)}else Hi[0].earlyExit=0,Di+=vr;var ki=oi(hi,100),Mi=ki.dist*S;p.options.rubberband&&(Hi.push({distance:Mi,duration:An(ki.dur),easing:ui}),Hi.push({distance:-Mi+Di,duration:500,easing:ui}))}p.animator.start(Hi)}else p.moveToIdx(Nn(Si.abs),!0,{duration:500,easing:function(Ii){return 1+--Ii*Ii*Ii*Ii*Ii}})}()}),p.on("dragged",function(){d=p.track.details.abs})}function jo(p){var K,d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi,di,si,Ci,mi=Oi();function Si(Di){if(Ue&&yn===Di.id){var hi=Kn(Di);if(An){if(!zo(Di))return vo(Di);Nn=hi,An=!1,p.emit("dragChecked")}if(di)return Nn=hi;Qn(Di);var Bn=function(ki){if(si===-1/0&&Ci===1/0)return ki;var Mi=p.track.details,Ii=Mi.length,bo=Mi.position,Po=ni(ki,si-bo,Ci-bo);if(0===Ii)return 0;if(!p.options.rubberband)return Po;if(bo<=Ci&&bo>=si||bo<si&&d>0||bo>Ci&&d<0)return ki;var $s=Math.abs((bo<si?bo-si:bo-Ci)/Ii*(S*Ii)),na=Math.max(0,1-$s/pe*2);return na*na*ki}(hn(Nn-hi)/S*v);d=pi(Bn);var $n=p.track.details.position;($n>si&&$n<Ci||$n===si&&d>0||$n===Ci&&d<0)&&Vn(Di),ui+=Bn,!ei&&Math.abs(ui*S)>5&&(ei=!0),p.track.add(Bn),Nn=hi,p.emit("dragged")}}function Hi(Di){!Ue&&p.track.details&&p.track.details.length&&(ui=0,Ue=!0,ei=!1,An=!0,yn=Di.id,zo(Di),Nn=Kn(Di),p.emit("dragStarted"))}function vo(Di){Ue&&yn===Di.idChanged&&(Ue=!1,p.emit("dragEnded"))}function zo(Di){var hi=eo(),Bn=hi?Di.y:Di.x,$n=hi?Di.x:Di.y,ki=void 0!==jn&&void 0!==oi&&Math.abs(oi-$n)<=Math.abs(jn-Bn);return jn=Bn,oi=$n,ki}function Kn(Di){return eo()?Di.y:Di.x}function eo(){return p.options.vertical}function Wo(){S=p.size,pe=eo()?window.innerHeight:window.innerWidth;var Di=p.track.details;Di&&(si=Di.min,Ci=Di.max)}function hr(Di){ei&&(Vn(Di),Qn(Di))}function vr(){if(mi.purge(),p.options.drag&&!p.options.disabled){var Di;hn="function"==typeof(Di=p.options.dragSpeed||1)?Di:function(Bn){return Bn*Di},v=p.options.rtl?-1:1,Wo(),K=p.container,Un("[".concat("data-keen-slider-clickable","]:not([").concat("data-keen-slider-clickable","=false])"),K).map(function($n){mi.add($n,"dragstart",Vn),mi.add($n,"mousedown",Vn),mi.add($n,"touchstart",Vn)}),mi.add(K,"dragstart",function(Bn){Qn(Bn)}),mi.add(K,"click",hr,{capture:!0}),mi.input(K,"ksDragStart",Hi),mi.input(K,"ksDrag",Si),mi.input(K,"ksDragEnd",vo),mi.input(K,"mousedown",Hi),mi.input(K,"mousemove",Si),mi.input(K,"mouseleave",vo),mi.input(K,"mouseup",vo),mi.input(K,"touchstart",Hi,{passive:!0}),mi.input(K,"touchmove",Si,{passive:!1}),mi.input(K,"touchend",vo),mi.input(K,"touchcancel",vo),mi.add(window,"wheel",function(Bn){Ue&&Qn(Bn)});var hi="data-keen-slider-scrollable";Un("[".concat(hi,"]:not([").concat(hi,"=false])"),p.container).map(function(Bn){return mi.input($n=Bn,"touchstart",function(Mi){ki=Kn(Mi),di=!0,gi=!0},{passive:!0}),mi.input($n,"touchmove",function(Mi){var Ii=eo(),bo=Ii?$n.scrollHeight-$n.clientHeight:$n.scrollWidth-$n.clientWidth,Po=ki-Kn(Mi),To=Ii?$n.scrollTop:$n.scrollLeft,Pr=Ii&&"scroll"===$n.style.overflowY||!Ii&&"scroll"===$n.style.overflowX;if(ki=Kn(Mi),(Po<0&&To>0||Po>0&&To<bo)&&gi&&Pr)return di=!0;gi=!1,Qn(Mi),di=!1}),void mi.input($n,"touchend",function(){di=!1});var $n,ki})}}p.on("updated",Wo),p.on("optionsChanged",vr),p.on("created",vr),p.on("destroyed",mi.purge)}function Bo(p){var K,d,v=null;function S(jn,oi,gi){p.animator.active?Ue(jn,oi,gi):requestAnimationFrame(function(){return Ue(jn,oi,gi)})}function pe(){S(!1,!1,d)}function Ue(jn,oi,gi){var di=0,si=p.size,Ci=p.track.details;if(Ci&&K){var mi=Ci.slides;K.forEach(function(Si,Hi){if(jn)!v&&oi&&yn(Si,null,gi),An(Si,null,gi);else{if(!mi[Hi])return;var vo=mi[Hi].size*si;!v&&oi&&yn(Si,vo,gi),An(Si,mi[Hi].distance*si-di,gi),di+=vo}})}}function hn(jn){return"performance"===p.options.renderMode?Math.round(jn):jn}function yn(jn,oi,gi){var di=gi?"height":"width";null!==oi&&(oi=hn(oi)+"px"),jn.style["min-"+di]=oi,jn.style["max-"+di]=oi}function An(jn,oi,gi){if(null!==oi){oi=hn(oi);var di=gi?oi:0;oi="translate3d(".concat(gi?0:oi,"px, ").concat(di,"px, 0)")}jn.style.transform=oi,jn.style["-webkit-transform"]=oi}function Nn(){K&&(Ue(!0,!0,d),K=null),p.on("detailsChanged",pe,!0)}function ui(){S(!1,!0,d)}function ei(){Nn(),d=p.options.vertical,p.options.disabled||"custom"===p.options.renderMode||(v="auto"===Zn(p.options.slides,"perView",null),p.on("detailsChanged",pe),(K=p.slides).length&&ui())}p.on("created",ei),p.on("optionsChanged",ei),p.on("beforeOptionsChanged",function(){Nn()}),p.on("updated",ui),p.on("destroyed",Nn)}function Ao(p,K){return function(d){var v,S,pe,Ue,yn,An=Oi();function Nn(Kn){Dn(d.container,"reverse","rtl"!==window.getComputedStyle(d.container,null).getPropertyValue("direction")||Kn?null:""),Dn(d.container,"v",d.options.vertical&&!Kn?"":null),Dn(d.container,"disabled",d.options.disabled&&!Kn?"":null)}function ui(){ei()&&si()}function ei(){var Kn=null;if(Ue.forEach(function(Wo){Wo.matches&&(Kn=Wo.__media)}),Kn===v)return!1;v||d.emit("beforeOptionsChanged"),v=Kn;var eo=Kn?pe.breakpoints[Kn]:pe;return d.options=Mt(Mt({},pe),eo),Nn(),vo(),zo(),mi(),!0}function jn(Kn){var eo=Gi(Kn);return(d.options.vertical?eo.height:eo.width)/d.size||1}function oi(){return d.options.trackConfig.length}function gi(Kn){for(var eo in v=!1,pe=Mt(Mt({},K),Kn),An.purge(),S=d.size,Ue=[],pe.breakpoints||[]){var Wo=window.matchMedia(eo);Wo.__media=eo,Ue.push(Wo),An.add(Wo,"change",ui)}An.add(window,"orientationchange",Hi),An.add(window,"resize",Si),ei()}function di(Kn){d.animator.stop();var eo=d.track.details;d.track.init(Kn??(eo?eo.abs:0))}function si(Kn){di(Kn),d.emit("optionsChanged")}function Ci(Kn,eo){if(Kn)return gi(Kn),void si(eo);vo(),zo();var Wo=oi();mi(),oi()!==Wo?si(eo):di(eo),d.emit("updated")}function mi(){var Kn=d.options.slides;if("function"==typeof Kn)return d.options.trackConfig=Kn(d.size,d.slides);for(var eo=d.slides,hr="number"==typeof Kn?Kn:Zn(Kn,"number",eo.length,!0),vr=[],Di=Zn(Kn,"perView",1,!0),hi=Zn(Kn,"spacing",0,!0)/d.size||0,Bn="auto"===Di?hi:hi/Di,$n=Zn(Kn,"origin","auto"),ki=0,Mi=0;Mi<hr;Mi++){var Ii="auto"===Di?jn(eo[Mi]):1/Di-hi+Bn;vr.push({origin:"center"===$n?.5-Ii/2:"auto"===$n?0:$n,size:Ii,spacing:hi}),ki+=Ii}if(ki+=hi*(hr-1),"auto"===$n&&!d.options.loop&&1!==Di){var Po=0;vr.map(function(To){var Pr=ki-Po;return Po+=To.size+hi,Pr>=1||(To.origin=1-Pr-(ki>1?0:1-ki)),To})}d.options.trackConfig=vr}function Si(){vo();var Kn=d.size;d.options.disabled||Kn===S||(S=Kn,Ci())}function Hi(){Si(),setTimeout(Si,500),setTimeout(Si,2e3)}function vo(){var Kn=Gi(d.container);d.size=(d.options.vertical?Kn.height:Kn.width)||1}function zo(){d.slides=Un(d.options.selector,d.container)}d.container=(yn=Un(p,document)).length?yn[0]:null,d.destroy=function(){An.purge(),d.emit("destroyed"),Nn(!0)},d.prev=function(){d.moveToIdx(d.track.details.abs-1,!0)},d.next=function(){d.moveToIdx(d.track.details.abs+1,!0)},d.update=Ci,gi(d.options)}}var nr=function(p,K,d){try{return v=K,S=Kt([Ao(p,{drag:!0,mode:"snap",renderMode:"precision",rubberband:!0,selector:".keen-slider__slide"}),Bo,jo,qn],d||[],!0),Ue={},pe={emit:function(hn){Ue[hn]&&Ue[hn].forEach(function(An){An(pe)});var yn=pe.options&&pe.options[hn];yn&&yn(pe)},moveToIdx:function(hn,yn,An){var Nn=pe.track.idxToDist(hn,yn);if(Nn){var ui=pe.options.defaultAnimation;pe.animator.start([{distance:Nn,duration:Zn(An||ui,"duration",500),easing:Zn(An||ui,"easing",function(ei){return 1+--ei*ei*ei*ei*ei})}])}},on:function(hn,yn,An){void 0===An&&(An=!1),Ue[hn]||(Ue[hn]=[]);var Nn=Ue[hn].indexOf(yn);Nn>-1?An&&delete Ue[hn][Nn]:An||Ue[hn].push(yn)},options:v},function(){if(pe.track=function mo(p){var K,d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn,oi,gi=1/0,di=[],si=null,Ci=0;function mi(hi){vr(Ci+hi)}function Si(hi){var Bn=Hi(Ci+hi).abs;return Kn(Bn)?Bn:null}function Hi(hi){var Bn=Math.floor(Math.abs(Li(hi/d))),$n=Li((hi%d+d)%d);$n===d&&($n=0);var ki=pi(hi),Mi=hn.indexOf(Kt([],hn,!0).reduce(function(bo,Po){return Math.abs(Po-$n)<Math.abs(bo-$n)?Po:bo})),Ii=Mi;return ki<0&&Bn++,Mi===Ue&&(Ii=0,Bn+=ki>0?1:-1),{abs:Ii+Bn*Ue*ki,origin:Mi,rel:Ii}}function vo(hi,Bn,$n){var ki;if(Bn||!Wo())return zo(hi,$n);if(!Kn(hi))return null;var Mi=Hi($n??Ci),bo=hi-Mi.rel,Po=Mi.abs+bo;ki=zo(Po);var To=zo(Po-Ue*pi(bo));return(null!==To&&Math.abs(To)<Math.abs(ki)||null===ki)&&(ki=To),Li(ki)}function zo(hi,Bn){if(null==Bn&&(Bn=Li(Ci)),!Kn(hi)||null===hi)return null;hi=Math.round(hi);var $n=Hi(Bn),ki=$n.abs,Mi=$n.rel,Ii=$n.origin,bo=hr(hi),Po=(Bn%d+d)%d,To=hn[Ii],Pr=Math.floor((hi-(ki-Mi))/Ue)*d;return Li(To-Po-To+hn[bo]+Pr+(Ii===Ue?d:0))}function Kn(hi){return eo(hi)===hi}function eo(hi){return ni(hi,An,Nn)}function Wo(){return S.loop}function hr(hi){return(hi%Ue+Ue)%Ue}function vr(hi){di.push({distance:hi-Ci,timestamp:un()}),di.length>6&&(di=di.slice(-6)),Ci=Li(hi);var $n=Di().abs;if($n!==si){var ki=null!==si;si=$n,ki&&p.emit("slideChanged")}}function Di(hi){var Bn=hi?null:function(){if(Ue){var $n=Wo(),ki=$n?(Ci%d+d)%d:Ci,Mi=($n?Ci%d:Ci)-pe[0][2],Ii=0-(Mi<0&&$n?d-Math.abs(Mi):Mi),bo=0,Po=Hi(Ci),To=Po.abs,Pr=Po.rel,$s=pe[Pr][2],na=pe.map(function(Tr,wa){var kn=Ii+bo;(kn<0-Tr[0]||kn>1)&&(kn+=(Math.abs(kn)>d-1&&$n?d:0)*pi(-kn));var Qi=wa-Pr,ia=pi(Qi),xs=Qi+To;$n&&(-1===ia&&kn>$s&&(xs+=Ue),1===ia&&kn<$s&&(xs-=Ue),null!==ui&&xs<ui&&(kn+=d),null!==ei&&xs>ei&&(kn-=d));var qo=kn+Tr[0]+Tr[1],Ks=Math.max(kn>=0&&qo<=1?1:qo<0||kn>1?0:kn<0?Math.min(1,(Tr[0]+kn)/Tr[0]):(1-kn)/Tr[0],0);return bo+=Tr[0]+Tr[1],{abs:xs,distance:S.rtl?-1*kn+1-Tr[0]:kn,portion:Ks,size:Tr[0]}});return To=eo(To),Pr=hr(To),{abs:eo(To),length:v,max:oi,maxIdx:Nn,min:jn,minIdx:An,position:Ci,progress:$n?ki/d:Ci/v,rel:Pr,slides:na,slidesLength:d}}}();return K.details=Bn,p.emit("detailsChanged"),Bn}return K={absToRel:hr,add:mi,details:null,distToIdx:Si,idxToDist:vo,init:function(hi){if(function(){if(pe=((S=p.options).trackConfig||[]).map(function(Mi){return[Zn(Mi,"size",1),Zn(Mi,"spacing",0),Zn(Mi,"origin",0)]}),Ue=pe.length){d=Li(pe.reduce(function(Mi,Ii){return Mi+Ii[0]+Ii[1]},0));var $n,ki=Ue-1;v=Li(d+pe[0][2]-pe[ki][0]-pe[ki][2]-pe[ki][1]),hn=pe.reduce(function(Mi,Ii){if(!Mi)return[0];var bo=pe[Mi.length-1],Po=Mi[Mi.length-1]+(bo[0]+bo[2])+bo[1];return Mi[Mi.length-1]>(Po-=Ii[2])&&(Po=Mi[Mi.length-1]),Po=Li(Po),Mi.push(Po),(!$n||$n<Po)&&(yn=Mi.length-1),$n=Po,Mi},null),0===v&&(yn=0),hn.push(Li(d))}}(),!Ue)return Di(!0);var Bn;(function(){var $n=p.options.range,ki=p.options.loop;ui=An=ki?Zn(ki,"min",-1/0):0,ei=Nn=ki?Zn(ki,"max",gi):yn;var Mi=Zn($n,"min",null),Ii=Zn($n,"max",null);null!==Mi&&(An=Mi),null!==Ii&&(Nn=Ii),jn=An===-1/0?An:p.track.idxToDist(An||0,!0,0),oi=Nn===gi?Nn:vo(Nn,!0,0),null===Ii&&(ei=Nn),Zn($n,"align",!1)&&Nn!==gi&&0===pe[hr(Nn)][2]&&(oi-=1-pe[hr(Nn)][0],Nn=Si(oi-Ci)),jn=Li(jn),oi=Li(oi)})(),Bn=hi,Number(Bn)===Bn?mi(zo(eo(hi))):Di()},to:vr,velocity:function(){var hi=un(),Bn=di.reduce(function($n,ki){var Mi=ki.distance,Ii=ki.timestamp;return hi-Ii>200||(pi(Mi)!==pi($n.distance)&&$n.distance&&($n={distance:0,lastTimestamp:0,time:0}),$n.time&&($n.distance+=Mi),$n.lastTimestamp&&($n.time+=Ii-$n.lastTimestamp),$n.lastTimestamp=Ii),$n},{distance:0,lastTimestamp:0,time:0});return Bn.distance/Bn.time||0}}}(pe),pe.animator=function So(p){var K,d,v,S,pe,Ue;function hn(ei){Ue||(Ue=ei),yn(!0);var jn=ei-Ue;jn>v&&(jn=v);var oi=S[d];if(oi[3]<jn)return d++,hn(ei);var di=oi[4],si=oi[0],Ci=oi[1]*(0,oi[5])(0===di?1:(jn-oi[2])/di);if(Ci&&p.track.to(si+Ci),jn<v)return Nn();Ue=null,yn(!1),An(null),p.emit("animationEnded")}function yn(ei){K.active=ei}function An(ei){K.targetIdx=ei}function Nn(){pe=window.requestAnimationFrame(hn)}function ui(){window.cancelAnimationFrame(pe),yn(!1),An(null),Ue&&p.emit("animationStopped"),Ue=null}return K={active:!1,start:function(ei){if(ui(),p.track.details){var jn=0,oi=p.track.details.position;d=0,v=0,S=ei.map(function(gi){var di,si=Number(oi),Ci=null!==(di=gi.earlyExit)&&void 0!==di?di:gi.duration,mi=gi.easing,Si=gi.distance*mi(Ci/gi.duration)||0;return oi+=Si,jn+=Si,[si,gi.distance,v,v+=Ci,gi.duration,mi]}),An(p.track.distToIdx(jn)),Nn(),p.emit("animationStarted")}},stop:ui,targetIdx:null}}(pe),S)for(var hn=0,yn=S;hn<yn.length;hn++)(0,yn[hn])(pe);pe.track.init(pe.options.initial||0),pe.emit("created")}(),pe}catch(v){console.error(v)}var v,S,pe,Ue};const Jr=["mobileImgSliderRef"],Ri=["productAdditionSliderRef"];function Pi(p,K){if(1&p&&(i._UZ(0,"img",32),i.ALo(1,"cms")),2&p){const d=K.$implicit,v=i.oxw(3);i.Q6J("src",i.lcZ(1,2,d),i.LSH)("alt",v.product.productDisplayName)}}function oo(p,K){if(1&p&&(i.TgZ(0,"div",30,31),i._UZ(2,"img",32),i.ALo(3,"source"),i.YNc(4,Pi,2,4,"img",33),i.qZA()),2&p){const d=i.oxw(2);i.xp6(2),i.Q6J("src",i.lcZ(3,3,d.product),i.LSH)("alt",d.product.productDisplayName),i.xp6(2),i.Q6J("ngForOf",d.product.imageUrls)}}function Go(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"img",8),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.openCarousel(1))}),i.ALo(1,"cms"),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("src",i.lcZ(1,2,d.product.imageUrls[0]),i.LSH)("alt",d.product.productDisplayName)}}function bi(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"img",8),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.openCarousel(2))}),i.ALo(1,"cms"),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("src",i.lcZ(1,2,d.product.imageUrls[1]),i.LSH)("alt",d.product.productDisplayName)}}function Xn(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"img",8),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.openCarousel(3))}),i.ALo(1,"cms"),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("src",i.lcZ(1,2,d.product.imageUrls[2]),i.LSH)("alt",d.product.productDisplayName)}}function Zo(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"img",8),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.openCarousel(4))}),i.ALo(1,"cms"),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("src",i.lcZ(1,2,d.product.imageUrls[3]),i.LSH)("alt",d.product.productDisplayName)}}function uo(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Go,2,4,"img",34),i.YNc(2,bi,2,4,"img",34),i.YNc(3,Xn,2,4,"img",34),i.YNc(4,Zo,2,4,"img",34),i.BQk()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngIf",d.product.imageUrls[0]),i.xp6(1),i.Q6J("ngIf",d.product.imageUrls[1]&&d.product.onlineImageStyle===d.OnlineImageStyle.Five),i.xp6(1),i.Q6J("ngIf",d.product.imageUrls[2]&&d.product.onlineImageStyle===d.OnlineImageStyle.Five),i.xp6(1),i.Q6J("ngIf",d.product.imageUrls[3]&&d.product.onlineImageStyle===d.OnlineImageStyle.Five)}}function Jo(p,K){if(1&p&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.Oqu(d.product.productDisplayName)}}function or(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Jo,2,1,"h2",2),i._UZ(2,"div",35),i.ALo(3,"sanitizeHtml"),i.BQk()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngIf",d.product.productDisplayTitle),i.xp6(1),i.Q6J("innerHTML",i.lcZ(3,2,d.product.productDescription),i.oJD)}}function gr(p,K){if(1&p&&(i.TgZ(0,"span",36),i._uU(1),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Oqu(d.product.summary)}}function rr(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.qZA()),2&p){const d=i.oxw().$implicit;i.xp6(1),i.AsE(" ",d.discountPercent,"% for ",d.minimumQuantity," stk. ")}}function fo(p,K){if(1&p&&(i.TgZ(0,"div")(1,"span"),i._uU(2),i.qZA(),i.YNc(3,rr,2,2,"span",2),i.qZA()),2&p){const d=K.$implicit;i.xp6(2),i.Oqu(d.displayText),i.xp6(1),i.Q6J("ngIf",!d.hidePercentPerQuantity)}}function js(p,K){if(1&p&&(i.TgZ(0,"div",37),i.YNc(1,fo,4,2,"div",21),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngForOf",d.product.discountLevels)}}function Io(p,K){if(1&p&&(i.TgZ(0,"span",38),i._uU(1),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Oqu(d.product.infoText)}}function _o(p,K){if(1&p&&(i.TgZ(0,"a",42),i._uU(1),i.qZA()),2&p){const d=K.$implicit,v=i.oxw(3);i.Q6J("routerLink",v.productUrl+d.productUrl+"-"+d.productId),i.xp6(1),i.hij(" ",d.name," ")}}function pr(p,K){if(1&p&&(i.TgZ(0,"div",39)(1,"span"),i._uU(2),i.qZA(),i.TgZ(3,"div",40),i.YNc(4,_o,2,2,"a",41),i.qZA()()),2&p){const d=i.oxw(2);i.xp6(2),i.Oqu(d.product.onlineProductLinksName),i.xp6(2),i.Q6J("ngForOf",d.product.onlineProductLinks)}}function mr(p,K){}function Wr(p,K){if(1&p&&(i.TgZ(0,"div",47)(1,"span"),i._uU(2),i.qZA(),i.TgZ(3,"span"),i._uU(4),i.qZA()()),2&p){const d=K.items,v=i.oxw(2).$implicit;i.xp6(2),i.Oqu(v.name),i.xp6(2),i.hij("",d.length," valgt")}}function vn(p,K){1&p&&(i.ynx(0),i.YNc(1,mr,0,0,"ng-template",45),i.YNc(2,Wr,5,2,"ng-template",46),i.BQk())}function fr(p,K){if(1&p&&i._UZ(0,"app-price",48),2&p){const d=i.oxw().$implicit;i.Q6J("value",d.price)}}function ms(p,K){if(1&p&&(i.TgZ(0,"ng-option",48),i._uU(1),i.YNc(2,fr,1,1,"app-price",49),i.qZA()),2&p){const d=K.$implicit;i.Q6J("value",d.id),i.xp6(1),i.hij(" ",d.productDisplayName," "),i.xp6(1),i.Q6J("ngIf",d.price)}}function fs(p,K){if(1&p){const d=i.EpF();i.ynx(0),i.TgZ(1,"ng-select",43),i.NdJ("change",function(S){const Ue=i.CHM(d).$implicit,hn=i.oxw(2);return i.KtG(hn.add(Ue,S))})("add",function(S){const Ue=i.CHM(d).$implicit,hn=i.oxw(2);return i.KtG(hn.add(Ue,S))})("remove",function(S){const Ue=i.CHM(d).$implicit,hn=i.oxw(2);return i.KtG(hn.remove(Ue,S))})("clear",function(){const pe=i.CHM(d).$implicit,Ue=i.oxw(2);return i.KtG(Ue.clearSelected(pe))}),i.YNc(2,vn,3,0,"ng-container",2),i.YNc(3,ms,3,3,"ng-option",44),i.qZA(),i.BQk()}if(2&p){const d=K.$implicit;i.xp6(1),i.Q6J("searchable",!1)("clearable",0===d.minPickCount)("placeholder",d.name)("closeOnSelect",1===d.maxPickCount)("multiple",1!==d.maxPickCount)("maxSelectedItems",0===d.maxPickCount?d.products.length:d.maxPickCount),i.xp6(1),i.Q6J("ngIf",1!==d.maxPickCount),i.xp6(1),i.Q6J("ngForOf",d.products)}}function _s(p,K){if(1&p&&(i.TgZ(0,"div"),i._UZ(1,"img",51),i.TgZ(2,"label"),i._uU(3),i.qZA()()),2&p){const d=K.$implicit,v=i.oxw(3);i.xp6(1),i.Q6J("src",v.contentUrl+d.icon,i.LSH),i.xp6(2),i.Oqu(d.text)}}function sr(p,K){if(1&p&&(i.TgZ(0,"div",50)(1,"h3"),i._uU(2),i.qZA(),i.YNc(3,_s,4,2,"div",21),i.qZA()),2&p){const d=K.$implicit;i.xp6(2),i.Oqu(d.title),i.xp6(1),i.Q6J("ngForOf",d.lines)}}function wt(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"div",56)(1,"app-text-button",57),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.buyMore())}),i._uU(2,"K\xf8b mere"),i.qZA()()}2&p&&i.Q6J("@slide",void 0)}function Nt(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",58),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(3);return i.KtG(S.addToBasket(S.composition.minCount))}),i._uU(1),i.qZA()}if(2&p){const d=i.oxw(3);i.Q6J("disabled",!d.product.forSale||!d.validated),i.xp6(1),i.hij(" ",d.product.forSale?d.sharedContent.addToBasketLabel:d.sharedContent.productNotForSale," ")}}function ot(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-counter",59),i.NdJ("add",function(S){i.CHM(d);const pe=i.oxw(3);return i.KtG(pe.addToBasket(S))})("remove",function(S){i.CHM(d);const pe=i.oxw().ngLet,Ue=i.oxw(2);return i.KtG(Ue.removeFromBasket(pe.quantity,S))}),i.qZA()}if(2&p){const d=i.oxw().ngLet,v=i.oxw(2);i.Q6J("minCount",v.product.minCount)("lockRemove",d.quantity===v.composition.minCount)("count",d.quantity)}}function ae(p,K){if(1&p&&(i.ynx(0),i.YNc(1,wt,3,1,"div",52),i.TgZ(2,"div",53),i.YNc(3,Nt,2,2,"app-text-button",54),i.YNc(4,ot,1,3,"app-counter",55),i.qZA(),i.BQk()),2&p){const d=K.ngLet;i.xp6(1),i.Q6J("ngIf",d),i.xp6(2),i.Q6J("ngIf",!d),i.xp6(1),i.Q6J("ngIf",d)}}function Ge(p,K){1&p&&(i.TgZ(0,"div",60),i._UZ(1,"span"),i._uU(2," P\xe5 lager - forventet levering 1-3 hverdage"),i.qZA())}function ri(p,K){1&p&&(i.TgZ(0,"div",61),i._UZ(1,"span"),i._uU(2," Ikke p\xe5 lager"),i.qZA())}function Ti(p,K){if(1&p&&(i.TgZ(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),i._uU(3),i.qZA()(),i._UZ(4,"div",62),i.ALo(5,"sanitizeHtml"),i.qZA()),2&p){const d=K.$implicit;i.xp6(3),i.Oqu(d.title),i.xp6(1),i.Q6J("innerHTML",i.lcZ(5,2,d.info),i.oJD)}}function _r(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ti,6,4,"mat-expansion-panel",21),i.BQk()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngForOf",d.infoboxes)}}function Br(p,K){if(1&p&&(i.TgZ(0,"h2"),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.Oqu(d.product.productDisplayName)}}function $r(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Br,2,1,"h2",2),i._UZ(2,"div",35),i.ALo(3,"sanitizeHtml"),i.BQk()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngIf",d.product.productDisplayTitle),i.xp6(1),i.Q6J("innerHTML",i.lcZ(3,2,d.product.productDescription),i.oJD)}}function Cs(p,K){if(1&p){const d=i.EpF();i.ynx(0),i.TgZ(1,"div",5),i.YNc(2,oo,5,5,"div",6),i.TgZ(3,"div",7)(4,"img",8),i.NdJ("click",function(){i.CHM(d);const S=i.oxw();return i.KtG(S.openCarousel(0))}),i.ALo(5,"source"),i.qZA(),i.YNc(6,uo,5,4,"ng-container",2),i.qZA(),i.TgZ(7,"section",9),i.YNc(8,or,4,4,"ng-container",2),i.qZA()(),i.TgZ(9,"div",10)(10,"section",11)(11,"div",12)(12,"h1",13),i._uU(13),i.qZA(),i.YNc(14,gr,2,1,"span",14),i.qZA(),i.TgZ(15,"div",15),i._UZ(16,"app-price",16),i.YNc(17,js,2,1,"div",17),i.YNc(18,Io,2,1,"span",18),i.qZA(),i.YNc(19,pr,5,2,"div",19),i.TgZ(20,"div",20),i.YNc(21,fs,4,8,"ng-container",21),i.qZA()(),i.YNc(22,sr,4,2,"div",22),i.TgZ(23,"div",23),i.YNc(24,ae,5,3,"ng-container",24),i.ALo(25,"async"),i.TgZ(26,"div",25),i.YNc(27,Ge,3,0,"div",26),i.YNc(28,ri,3,0,"div",27),i.qZA()(),i.TgZ(29,"div",28),i.YNc(30,_r,2,1,"ng-container",21),i.qZA(),i.TgZ(31,"section",29),i.YNc(32,$r,4,4,"ng-container",2),i.qZA()(),i.BQk()}if(2&p){const d=i.oxw();i.xp6(2),i.Q6J("ngIf",d.product),i.xp6(1),i.Q6J("ngClass",d.OnlineImageClass[d.product.onlineImageStyle]),i.xp6(1),i.Q6J("src",i.lcZ(5,19,d.product),i.LSH)("alt",d.product.productDisplayName),i.xp6(2),i.Q6J("ngIf",(null==d.product.imageUrls?null:d.product.imageUrls.length)&&d.product.onlineImageStyle!==d.OnlineImageStyle.One),i.xp6(2),i.Q6J("ngIf",d.product.productDescription),i.xp6(5),i.Oqu(d.product.productDisplayTitle||d.product.productDisplayName),i.xp6(1),i.Q6J("ngIf",d.product.summary),i.xp6(2),i.Q6J("value",d.compositePrice),i.xp6(1),i.Q6J("ngIf",null==d.product.discountLevels?null:d.product.discountLevels.length),i.xp6(1),i.Q6J("ngIf",d.product.infoText),i.xp6(1),i.Q6J("ngIf",null==d.product.onlineProductLinks?null:d.product.onlineProductLinks.length),i.xp6(2),i.Q6J("ngForOf",d.product.productModules),i.xp6(1),i.Q6J("ngForOf",d.iconLines),i.xp6(2),i.Q6J("ngLet",i.lcZ(25,21,d.basketProductLine)),i.xp6(3),i.Q6J("ngIf",d.product.forSale&&d.validated),i.xp6(1),i.Q6J("ngIf",!d.product.forSale||!d.validated),i.xp6(2),i.Q6J("ngForOf",d.infoboxes),i.xp6(2),i.Q6J("ngIf",d.product.productDescription)}}function Co(p,K){if(1&p&&i._UZ(0,"app-strip-container",63),2&p){const d=i.oxw();i.Q6J("strips",d.strips)}}function Gs(p,K){1&p&&i._UZ(0,"app-online-product-card",70),2&p&&i.Q6J("product",K.$implicit)}function zs(p,K){if(1&p&&(i.TgZ(0,"div",67,68),i.YNc(2,Gs,1,1,"app-online-product-card",69),i.qZA()),2&p){const d=i.oxw(2).$implicit;i.xp6(2),i.Q6J("ngForOf",d.products)}}function Rs(p,K){1&p&&i._UZ(0,"app-online-product-card",73),2&p&&i.Q6J("product",K.$implicit)}function ga(p,K){if(1&p&&(i.TgZ(0,"div",71),i.YNc(1,Rs,1,1,"app-online-product-card",72),i.qZA()),2&p){const d=i.oxw(2).$implicit;i.xp6(1),i.Q6J("ngForOf",d.products)}}function Fi(p,K){if(1&p&&(i.ynx(0),i.TgZ(1,"h2"),i._uU(2),i.qZA(),i.YNc(3,zs,3,1,"div",65),i.YNc(4,ga,2,1,"div",66),i.BQk()),2&p){const d=i.oxw().$implicit;i.xp6(2),i.Oqu(d.name),i.xp6(1),i.Q6J("ngIf",d.carousel),i.xp6(1),i.Q6J("ngIf",!d.carousel)}}function Ns(p,K){if(1&p&&(i.TgZ(0,"div",64),i.YNc(1,Fi,5,3,"ng-container",2),i.qZA()),2&p){const d=K.$implicit;i.xp6(1),i.Q6J("ngIf",d.display)}}let Ko=(()=>{class p extends x.I{constructor(d,v,S,pe,Ue,hn,yn){super(d,"productInfo"),this.dialogService=v,this.basketService=S,this.cdr=pe,this.themeService=Ue,this.elRef=hn,this.deviceService=yn,this.contentUrl=`${l.environment.cmsOrigin}`,this.OnlineImageStyle=Pt.EN,this.OnlineImageClass=Pt.Y4,this.basketOverviewUrl=`/${l.environment.urls.basket}`,this.productUrl=`/${l.environment.urls.products}/`,this.deleteIcon=$t.qq.bigCross,this.locale=l.environment.i18n.language,this.currency=l.environment.i18n.currency,this.reload=new i.vpe,this.placeholder=V.b,this.subscription=new zt.w0}ngOnChanges(d){if(d.product){for(const S of this.product.productModules)S.products.sort((pe,Ue)=>pe.priority-Ue.priority);this.product.onlineProductLinks.sort((S,pe)=>S.displayPriority-pe.displayPriority),this.composition=this.initComposition(),this.validated=this.validate(),this.lineId=new Ct.X(void 0),this.requiredModules={},this.basketProductLine=(0,H.a)([this.basketProducts,this.lineId.pipe((0,z.T)(1))]).pipe((0,F.U)(([S,pe])=>{const{id:Ue}=this.composition;return this.composition.lineId=pe,S?.[Ue]?.[pe]}));const{id:v}=this.product;this.strips=this.contentService.getOnlineProductContent(v,Pt.Xb.Strip),this.iconLines=this.contentService.getOnlineProductContent(v,Pt.Xb.IconLine),this.infoboxes=this.contentService.getOnlineProductContent(v,Pt.Xb.Infobox),this.setSliders=!0}}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngAfterViewChecked(){typeof document>"u"||!this.setSliders||(this.setSliders=!1,this.imgSlider&&this.imgSlider.destroy(),this.smallProductSlider&&this.smallProductSlider.destroy(),this.productSliders?.length&&this.productSliders.forEach(d=>d.destroy()),this.imgSlider=new nr(this.imgSliderRef.nativeElement,{loop:!0,slides:{origin:"center",perView:1.2,spacing:12}}),this.productSliders=[],this.productAdditionRefs.forEach(d=>{this.productSliders.push(new nr(d.nativeElement,{loop:!0,mode:"free-snap",slides:{origin:"center",perView:"auto",spacing:20}}))}),this.imgSlider.on("updated",()=>window.dispatchEvent(new Event("resize"))),setTimeout(()=>window.dispatchEvent(new Event("resize")),500))}ngOnDestroy(){this.subscription.unsubscribe(),this.imgSlider&&this.imgSlider.destroy(),this.smallProductSlider&&this.smallProductSlider.destroy(),this.productSliders?.length&&this.productSliders.forEach(d=>d.destroy())}initComposition(){const d={...this.product,moduleChoices:{}};return this.compositePrice=this.price,this.discountLevelPercent=0,this.showAltPrice=!0,d}add(d,v){new Promise(S=>{this.showAltPrice=!1;const pe=d.products.find(hn=>hn.id===v);this.composition.moduleChoices[d.id]||(this.composition.moduleChoices[d.id]={products:{}});const Ue=this.composition.moduleChoices[d.id];if(1===d.maxPickCount){for(const hn of Object.values(Ue.products))this.compositePrice-=hn.price*hn.quantity;Ue.products={}}return Ue.products[pe.id]||(Ue.products[pe.id]={...pe,quantity:1},this.compositePrice+=pe.price),S()}).finally(()=>{if(this.composition.discountLevels){let Ue=0;Object.values(this.composition.moduleChoices).forEach(hn=>{Object.values(hn.products).forEach(yn=>{Ue+=yn.quantity})}),this.discountLevelPercent=0,this.composition.discountLevels.forEach(hn=>{hn.includeModuleProducts&&hn.minimumQuantity<=Ue&&this.discountLevelPercent<hn.discountPercent&&(this.discountLevelPercent=hn.discountPercent)})}if(this.validated=this.validate(),!this.requiredModules[d.id])return;let S=0;const pe=this.composition.moduleChoices[d.id];for(const Ue of Object.values(pe.products))S+=Ue.quantity;d.minPickCount<=S&&(!d.maxPickCount||S<=d.maxPickCount)&&delete this.requiredModules[d.id]})}clearSelected(d){const v=this.composition.moduleChoices[d.id];for(const S of Object.values(v.products))this.remove(d,S.id)}remove(d,v){var S=this;return(0,vt.Z)(function*(){new Promise(pe=>{const Ue=S.composition.moduleChoices[d.id],hn=d.products.find(An=>An.id===v);if(!Ue||!Ue.products[hn.id])return pe();if(1===Ue.products[hn.id].quantity)return delete Ue.products[hn.id],S.compositePrice-=hn.price,S.showAltPrice=void 0===Object.values(S.composition.moduleChoices).find(An=>Object.keys(An.products).length>0),pe();const yn=--Ue.products[hn.id].quantity;return Ue.products[hn.id]={...hn,quantity:yn},S.compositePrice-=hn.price,pe()}).finally(()=>{if(S.composition.discountLevels){let pe=0;Object.values(S.composition.moduleChoices).forEach(Ue=>{Object.values(Ue.products).forEach(hn=>{pe+=hn.quantity})}),S.discountLevelPercent=0,S.composition.discountLevels.forEach(Ue=>{Ue.includeModuleProducts&&Ue.minimumQuantity<=pe&&S.discountLevelPercent<Ue.discountPercent&&(S.discountLevelPercent=Ue.discountPercent)})}S.validated=S.validate()})})()}validate(){for(const d of this.product.productModules){const{minPickCount:v,maxPickCount:S}=d,Ue=this.composition.moduleChoices[d.id];if(!Ue&&v>0)return!1;if(Ue){let hn=0;for(const yn of Object.values(Ue.products))hn+=yn.quantity;if(S&&hn>S||hn<v)return!1}}return!0}addToBasket(d){if(d=d||1,this.validated){const v=this.basketService.addProduct(this.composition,d);this.lineId.next(v.lineId)}}removeFromBasket(d,v){if(v=v||1,this.validated){if(d===v)return void this.deleteFromBasket();const S=this.basketService.removeProduct(this.composition,v);this.lineId.next(S?.lineId)}}deleteFromBasket(){this.basketService.deleteProduct(this.composition),this.composition=this.initComposition(),this.validated=this.validate(),this.lineId.next(void 0)}validateRequiredAndScroll(d,v){const S={};let pe=!1;for(const Ue of this.product.productModules){const{minPickCount:hn,maxPickCount:yn,id:An,main:Nn}=Ue;if(hn<=0)continue;const ui=this.composition.moduleChoices[An];if(!ui){S[An]=!0,Nn&&(pe=!0);continue}let ei=0;for(const jn of Object.values(ui.products))ei+=jn.quantity;(ei<hn||yn&&yn<ei)&&(S[An]=!0,Nn&&(pe=!0))}this.requiredModules=S,pe?window.scroll({top:d.getBoundingClientRect().top+window.scrollY,behavior:"smooth"}):this.scroll(v)}scroll(d){d.scrollIntoView({behavior:"smooth"})}buyMore(){this.composition=this.resetComposition(),this.validated=this.validate(),this.lineId.next(void 0)}resetComposition(){const d={...this.product,moduleChoices:{}},{maxPickCount:v}=this.composition.productModules[0];return this.showAltPrice=!0,this.discountLevelPercent=0,v&&1===v?(d.moduleChoices=this.composition.moduleChoices,d):(this.compositePrice=this.price,d)}getSelectCount(){const d={minPickCount:0,pickedCount:0};return this.product.productModules.forEach(v=>{1!==v.maxPickCount&&!v.singles&&v.minPickCount>0&&(d.minPickCount+=v.minPickCount,this.composition.moduleChoices[v.id]?.products&&Object.values(this.composition.moduleChoices[v.id].products).forEach(S=>{d.pickedCount+=S.quantity}))}),d}getAllergenString(d){return d.map(S=>Pt.az[S]).join(", ")}openCarousel(d){const S={imageUrls:[this.product.primaryImageUrl,...this.product.imageUrls],index:d};this.dialogService.openImageCarouselDialog(S)}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(R.xA),i.Y36(R.vD),i.Y36(i.sBO),i.Y36(Lt.f),i.Y36(i.SBq),i.Y36(Jt.x0))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-online-product-detail"]],viewQuery:function(v,S){if(1&v&&(i.Gf(Jr,5),i.Gf(Ri,5)),2&v){let pe;i.iGM(pe=i.CRH())&&(S.imgSliderRef=pe.first),i.iGM(pe=i.CRH())&&(S.productAdditionRefs=pe)}},inputs:{product:"product",sharedContent:"sharedContent",basketProducts:"basketProducts",price:"price",savings:"savings"},outputs:{reload:"reload"},features:[i.qOj,i.TTD],decls:5,vars:3,consts:[[1,"product-wrapper"],[1,"product-section"],[4,"ngIf"],[3,"strips",4,"ngIf"],["class","product-additions product-wrapper",4,"ngFor","ngForOf"],[1,"product-image-description"],["class","mobile-image keen-slider",4,"ngIf"],[1,"destop-product-images",3,"ngClass"],[3,"src","alt","click"],[1,"product-descriptions"],[1,"product-details"],[1,"product-header"],[1,"product-summary"],[1,"product-details-name"],["class","product-details-summary",4,"ngIf"],[1,"product-price"],[1,"price-text",3,"value"],["class","discount-levels",4,"ngIf"],["class","product-info-text",4,"ngIf"],["class","product-links",4,"ngIf"],[1,"product-modules"],[4,"ngFor","ngForOf"],["class","icon-lines",4,"ngFor","ngForOf"],[1,"product-buttons"],[4,"ngLet"],[1,"sale-status"],["class","green",4,"ngIf"],["class","red",4,"ngIf"],[1,"infoboxes"],[1,"mobile-product-descriptions"],[1,"mobile-image","keen-slider"],["mobileImgSliderRef",""],[1,"keen-slider__slide",3,"src","alt"],["class","keen-slider__slide",3,"src","alt",4,"ngFor","ngForOf"],[3,"src","alt","click",4,"ngIf"],[1,"rich-text","light",3,"innerHTML"],[1,"product-details-summary"],[1,"discount-levels"],[1,"product-info-text"],[1,"product-links"],[1,"links"],["routerLinkActive","active",3,"routerLink",4,"ngFor","ngForOf"],["routerLinkActive","active",3,"routerLink"],[3,"searchable","clearable","placeholder","closeOnSelect","multiple","maxSelectedItems","change","add","remove","clear"],[3,"value",4,"ngFor","ngForOf"],["ng-label-tmp",""],["ng-multi-label-tmp",""],[1,"select-multi-label"],[3,"value"],[3,"value",4,"ngIf"],[1,"icon-lines"],[3,"src"],["class","buy-more",4,"ngIf"],[1,"controls"],["class","basket-button",3,"disabled","click",4,"ngIf"],[3,"minCount","lockRemove","count","add","remove",4,"ngIf"],[1,"buy-more"],[3,"click"],[1,"basket-button",3,"disabled","click"],[3,"minCount","lockRemove","count","add","remove"],[1,"green"],[1,"red"],[1,"rich-text",3,"innerHTML"],[3,"strips"],[1,"product-additions","product-wrapper"],["class","keen-slider",4,"ngIf"],["class","static",4,"ngIf"],[1,"keen-slider"],["productAdditionSliderRef",""],["class","keen-slider__slide",3,"product",4,"ngFor","ngForOf"],[1,"keen-slider__slide",3,"product"],[1,"static"],[3,"product",4,"ngFor","ngForOf"],[3,"product"]],template:function(v,S){1&v&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,Cs,33,23,"ng-container",2),i.qZA()(),i.YNc(3,Co,1,1,"app-strip-container",3),i.YNc(4,Ns,2,1,"div",4)),2&v&&(i.xp6(2),i.Q6J("ngIf",S.product),i.xp6(1),i.Q6J("ngIf",null==S.strips?null:S.strips.length),i.xp6(1),i.Q6J("ngForOf",S.product.productAdditions))},styles:[".keen-slider[_ngcontent-%COMP%]:not([data-keen-slider-disabled]){-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;align-content:flex-start;display:flex;overflow:hidden;position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none;-khtml-user-select:none;width:100%}.keen-slider[_ngcontent-%COMP%]:not([data-keen-slider-disabled])   .keen-slider__slide[_ngcontent-%COMP%]{min-height:100%;overflow:hidden;position:relative;width:100%}.keen-slider[_ngcontent-%COMP%]:not([data-keen-slider-disabled])[data-keen-slider-reverse]{flex-direction:row-reverse}.keen-slider[_ngcontent-%COMP%]:not([data-keen-slider-disabled])[data-keen-slider-v]{flex-wrap:wrap}","[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%}[_nghost-%COMP%]   .product-wrapper[_ngcontent-%COMP%]{max-width:var(--online-width);margin-bottom:20px}[_nghost-%COMP%]   .mobile-image.keen-slider[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:100vw;max-height:83.3333333333vw;padding:30px 0;background-color:var(--accent-color)}[_nghost-%COMP%]   .mobile-product-descriptions[_ngcontent-%COMP%], [_nghost-%COMP%]   .destop-product-images[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   .product-wrapper[_ngcontent-%COMP%]{width:90vw}[_nghost-%COMP%]   .mobile-image.keen-slider[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .destop-product-images[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-gap:10px;max-height:calc((var(--online-width) - 32px) * .65)}[_nghost-%COMP%]   .destop-product-images.two-images[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}[_nghost-%COMP%]   .destop-product-images.two-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:nth-child(-n+2){grid-column:span 3}[_nghost-%COMP%]   .destop-product-images.five-images[_ngcontent-%COMP%]{grid-template-columns:repeat(6,1fr)}[_nghost-%COMP%]   .destop-product-images.five-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:nth-child(-n+2){grid-column:span 3}[_nghost-%COMP%]   .destop-product-images.five-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:nth-child(3), [_nghost-%COMP%]   .destop-product-images.five-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:nth-child(4), [_nghost-%COMP%]   .destop-product-images.five-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:nth-child(5){grid-column:span 2}[_nghost-%COMP%]   .destop-product-images[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;cursor:pointer;width:100%}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-wrapper[_ngcontent-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]{width:95vw;margin:0 2.5vw}[_nghost-%COMP%]   .product-descriptions[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .mobile-product-descriptions[_ngcontent-%COMP%]{order:2;display:block;border-top:1px solid #000}}[_nghost-%COMP%]   .product-section[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,65fr) minmax(0,35fr);grid-gap:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:24px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]{order:0;display:flex;flex-direction:column;gap:16px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-summary[_ngcontent-%COMP%]   .product-details-name[_ngcontent-%COMP%]{margin:0 0 8px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-links[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-links[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-links[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--text-primary-color);text-decoration:none;cursor:pointer;background-color:var(--primary-color);padding:8px 32px;border-radius:32px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-links[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{box-shadow:0 1px 10px 1px #0006}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   .select-multi-label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]     .ng-select-container{border-radius:32px;padding:0 15px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]     .ng-select-container .ng-placeholder{top:unset;padding:0}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]     .ng-select-container .ng-input{display:none}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-header[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{position:absolute;right:47px;font-size:1em}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .icon-lines[_ngcontent-%COMP%]{order:1;display:flex;flex-direction:column;width:100%;gap:8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .icon-lines[_ngcontent-%COMP%]{order:2;border-top:1px solid #000;padding-top:8px}}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .icon-lines[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;font-weight:600;margin:0}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .icon-lines[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .icon-lines[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;width:24px;height:24px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .icon-lines[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{order:2}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{order:0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]{order:1}}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .basket-button[_ngcontent-%COMP%]{height:50px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .product-buttons[_ngcontent-%COMP%]   .basket-button[_ngcontent-%COMP%]     .text-button{border-radius:32px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .sale-status[_ngcontent-%COMP%]{display:flex;justify-content:center;margin:8px 8px 0}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .sale-status[_ngcontent-%COMP%]   .green[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-color:green;border-radius:256px;margin-right:8px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .sale-status[_ngcontent-%COMP%]   .red[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block;width:10px;height:10px;background-color:red;border-radius:256px;margin-right:8px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .infoboxes[_ngcontent-%COMP%]{order:3;display:flex;flex-direction:column;width:100%;gap:8px}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .infoboxes[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]{box-shadow:none;background-color:unset;border-top:1px solid #000;border-radius:0}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .infoboxes[_ngcontent-%COMP%]   mat-expansion-panel[_ngcontent-%COMP%]:last-child{border-bottom:1px solid #000}[_nghost-%COMP%]   .product-details[_ngcontent-%COMP%]   .small-product-additions[_ngcontent-%COMP%]{order:4;width:95%}[_nghost-%COMP%]   .product-additions[_ngcontent-%COMP%]{margin:16px 0;width:95%}[_nghost-%COMP%]   .product-additions[_ngcontent-%COMP%]   .static[_ngcontent-%COMP%]{display:flex;gap:40px}[_nghost-%COMP%]   .product-additions[_ngcontent-%COMP%]   .static[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:nth-child(-n+4)){display:none}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-additions[_ngcontent-%COMP%]   .static[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-additions[_ngcontent-%COMP%]   .static[_ngcontent-%COMP%]{flex-direction:column;align-items:center}}[_nghost-%COMP%]   .product-additions[_ngcontent-%COMP%]   .keen-slider__slide[_ngcontent-%COMP%]{min-width:400px!important;max-width:400px!important}"],data:{animation:[(0,gt.X$)("slide",[(0,gt.eR)(":enter",[(0,gt.oB)({opacity:0,"margin-right":"50px"}),(0,gt.jt)("400ms",(0,gt.oB)({opacity:1,"margin-right":"*"}))]),(0,gt.eR)(":leave",[(0,gt.oB)({opacity:1}),(0,gt.jt)("200ms",(0,gt.oB)({opacity:0}))])])]}})}return p})();var ar=c(2181),Cr=c(2444),Qs=c(9983),yi=c(4222),tr=c(8005),Oo=c(6593);let as=(()=>{class p extends x.I{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn){super(d,"productsOverview",{meta:!0}),this.activatedRoute=v,this.router=S,this.productQuery=pe,this.productService=Ue,this.categoryService=hn,this.authService=yn,this.cdr=An,this.bottomSheet=Nn,this.themeService=ui,this.elRef=ei,this.sanitizer=jn,this.subscription=new zt.w0,this.cmsOrigin=l.environment.cmsOrigin,this.placeholder=V.t,this.routeLoading=!1,this.reset=!1,this.isDagrofa=this.contentService.isDagrofa;const oi=this.contentService.getMerchant().type;this.showBasketIcon=oi===Pt.Pc.SPAR,this.filterMenu={categoryTitle:this.content.get("categoryLabelText"),allProducts:this.content.get("allProductsFilterText")||(this.isDagrofa?"Se alle":null)},this.loadingProductsAlt=this.content.get("loadingProductsAlternativeText"),this.openCategoriesMenu=this.content.get("openCategoriesMenuText"),this.loadMoreButton=this.content.get("loadMoreButtonText")||"Vis flere",this.allProductsTitle=this.content.get("allProductsLabelText"),this.filters={},this.productService.updateSearchOverview(!0),this.category=this.categoryService.selected.pipe((0,F.U)(gi=>{if(1!==gi.size)return void this.setMeta();const di=gi.values().next().value;return this.categoryService.getById(di)})),this.subscription.add((0,H.a)([this.router.events.pipe((0,ar.h)(gi=>gi instanceof f.m2)),this.activatedRoute.queryParams,this.category]).subscribe(([gi,di,si])=>{this.reset=!0,this.filters=(p=>{const K={};for(const[d,v]of Object.entries(p)){const S=Object.keys(K).find(pe=>pe.toLowerCase()===d.toLowerCase());S&&(K[S]=v)}return K})(di),this.fetchProducts(!0)})),this.subscription.add(this.authService.member.subscribe(()=>{this.reset=!0,this.fetchProducts(!0)})),this.subscription.add(this.category.subscribe(gi=>{this.backgroundStyle=gi?.backgroundImageUrl?this.sanitizer.bypassSecurityTrustStyle(`url(${this.cmsOrigin}${gi.backgroundImageUrl})`):""}))}ngOnInit(){this.products=this.productQuery.selectSearchResults$.pipe((0,wr.w)(d=>this.productQuery.selectMany(d))),this.pageTotal$=this.productQuery.pagedResponse$.pipe((0,F.U)(d=>d.total)),this.loading=this.productQuery.selectLoading(),(this.isDagrofa||this.contentService.getMerchant().enableCategoryCards)&&(this.categories=this.categoryService.getFlat().pipe((0,F.U)(d=>d.filter(v=>!v.hidden)))),this.pageSize$=this.productQuery.selectPageSize$,this.pageShowing$=this.productQuery.selectPage$.pipe((0,Cr.V)(this.pageSize$),(0,F.U)(([d,v])=>d*v))}ngAfterViewChecked(){this.reset&&(this.reset=!1,this.cdr.detectChanges())}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.productService.updateSearchFilters({}),this.productService.updateSearchOverview(!1),this.contentService.setOGImage(),this.subscription.unsubscribe(),this.categoryService.clearSelectedSubject()}updateFilters(d){const v={};for(const[S,pe]of Object.entries(d))"true"===pe&&(v[S]=!0);this.router.navigate([],{queryParams:v,queryParamsHandling:"merge"})}hasMore(){return this.productQuery.getHasMore()}loadMore(){this.productQuery.getHasMore()&&this.fetchProducts(!1)}openFilterMenu(){this.bottomSheet.open(Qs.o,{data:this.filterMenu})}scroll(d){d.scrollIntoView({behavior:"smooth"})}clickCategory(d){this.categoryService.clickCategory(d)}fetchProducts(d){var v=this;return(0,vt.Z)(function*(){const S={};for(const[pe,Ue]of Object.entries(v.filters))Ue&&(S[pe]=Ue.toString());v.productService.updateSearchFilters(S),yield v.productService.searchProducts(d)})()}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(f.gz),i.Y36(f.F0),i.Y36(R.sO),i.Y36(R.M5),i.Y36(R.HE),i.Y36(yi.e8),i.Y36(i.sBO),i.Y36(tr.ch),i.Y36(Lt.f),i.Y36(i.SBq),i.Y36(Oo.H7))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-product-overview-utilty"]],hostVars:2,hostBindings:function(v,S){2&v&&i.Udp("background-image",S.backgroundStyle)},features:[i.qOj],decls:0,vars:0,template:function(v,S){},encapsulation:2})}return p})();function qr(p,K){if(1&p&&(i.TgZ(0,"div",8)(1,"div",16)(2,"h2"),i._uU(3),i.qZA()()()),2&p){const d=i.oxw(3);i.xp6(3),i.Oqu(d.filterMenu.categoryTitle)}}function Sr(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"div",20),i.NdJ("click",function(){i.CHM(d),i.oxw(3);const S=i.MAs(5),pe=i.oxw();return i.KtG(pe.scroll(S))}),i.TgZ(1,"label"),i._uU(2),i.qZA(),i.TgZ(3,"div",21),i._UZ(4,"img",22),i.qZA()()}if(2&p){const d=i.oxw(4);i.xp6(2),i.Oqu(d.filterMenu.allProducts)}}function Or(p,K){if(1&p&&i._UZ(0,"img",26),2&p){const d=i.oxw().$implicit,v=i.oxw(4);i.Q6J("src",v.cmsOrigin+d.imageUrl,i.LSH)}}function Ur(p,K){1&p&&i._UZ(0,"img",22)}function Xr(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"div",20),i.NdJ("click",function(){const pe=i.CHM(d).$implicit,Ue=i.oxw(4);return i.KtG(Ue.clickCategory(pe.id))}),i.TgZ(1,"label"),i._uU(2),i.qZA(),i.TgZ(3,"div",23),i.YNc(4,Or,1,1,"img",24),i.YNc(5,Ur,1,0,"img",25),i.qZA()()}if(2&p){const d=K.$implicit;i.xp6(2),i.Oqu(d.name),i.xp6(2),i.Q6J("ngIf",d.imageUrl),i.xp6(1),i.Q6J("ngIf",!d.imageUrl)}}function vs(p,K){if(1&p&&(i.TgZ(0,"div",17),i.YNc(1,Sr,5,1,"div",18),i.YNc(2,Xr,6,3,"div",19),i.qZA()),2&p){const d=i.oxw().ngIf,v=i.oxw(2);i.xp6(1),i.Q6J("ngIf",v.filterMenu.allProducts),i.xp6(1),i.Q6J("ngForOf",d)}}function Zr(p,K){if(1&p&&(i.ynx(0),i.YNc(1,qr,4,1,"div",14),i.YNc(2,vs,3,2,"div",15),i.BQk()),2&p){const d=K.ngIf;i.xp6(1),i.Q6J("ngIf",d.length>0),i.xp6(1),i.Q6J("ngIf",d.length)}}function Zi(p,K){if(1&p&&(i.TgZ(0,"h1"),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.Oqu(d.allProductsTitle)}}function Fs(p,K){if(1&p&&(i.TgZ(0,"h1"),i._uU(1),i.qZA()),2&p){const d=i.oxw().ngLet;i.xp6(1),i.Oqu(d.title||d.name)}}function ts(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"async"),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.hij("",i.lcZ(2,1,d.pageTotal$)," varer")}}function Hr(p,K){if(1&p&&(i.TgZ(0,"div",16),i.YNc(1,Zi,2,1,"h1",7),i.YNc(2,Fs,2,1,"h1",7),i.YNc(3,ts,3,3,"span",7),i.qZA()),2&p){const d=K.ngLet,v=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!d&&v.allProductsTitle),i.xp6(1),i.Q6J("ngIf",d),i.xp6(1),i.Q6J("ngIf",d||v.allProductsTitle)}}function Vr(p,K){if(1&p&&i._UZ(0,"app-product-card",27),2&p){const d=K.$implicit,v=i.oxw(2);i.Q6J("@searchItemAnimation",void 0)("product",d)("showBasketIcon",v.showBasketIcon)}}function cs(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",31),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(4);return i.KtG(S.loadMore())}),i._uU(1),i.qZA()}if(2&p){const d=K.ngIf,v=i.oxw().ngLet,S=i.oxw().ngIf;i.xp6(1),i.hij(" Vis n\xe6ste ",S-v<d?S-v:d," produkter ")}}function Bs(p,K){if(1&p&&(i.ynx(0),i.TgZ(1,"span",29),i._uU(2),i.qZA(),i.YNc(3,cs,2,1,"app-text-button",30),i.ALo(4,"async"),i.BQk()),2&p){const d=K.ngLet,v=i.oxw().ngIf,S=i.oxw(2);i.xp6(2),i.AsE(" Viser ",d>v?v:d," ud af ",v," produkter "),i.xp6(1),i.Q6J("ngIf",i.lcZ(4,3,S.hasMore()&&S.pageSize$))}}function Js(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Bs,5,5,"ng-container",28),i.ALo(2,"async"),i.BQk()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngLet",i.lcZ(2,1,d.pageShowing$))}}function Ws(p,K){if(1&p&&(i.TgZ(0,"div",32),i._UZ(1,"img",33),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("alt",d.loadingProductsAlt)}}function Yr(p,K){if(1&p&&(i.TgZ(0,"div",6),i.YNc(1,Zr,3,2,"ng-container",7),i.ALo(2,"async"),i.ALo(3,"async"),i.TgZ(4,"div",8,9),i.YNc(6,Hr,4,3,"div",10),i.ALo(7,"async"),i.qZA(),i.TgZ(8,"div",11),i.YNc(9,Vr,1,3,"app-product-card",12),i.ALo(10,"async"),i.qZA(),i.YNc(11,Js,3,3,"ng-container",7),i.ALo(12,"async"),i.YNc(13,Ws,2,1,"div",13),i.qZA()),2&p){const d=K.ngLet,v=i.oxw();i.xp6(1),i.Q6J("ngIf",i.lcZ(2,8,void 0===i.lcZ(3,10,v.category)&&v.categories)),i.xp6(5),i.Q6J("ngLet",i.lcZ(7,12,v.category)),i.xp6(2),i.Q6J("infiniteScrollDistance",3)("infiniteScrollThrottle",50)("infiniteScrollDisabled",v.reset),i.xp6(1),i.Q6J("ngForOf",i.lcZ(10,14,v.products)),i.xp6(2),i.Q6J("ngIf",i.lcZ(12,16,!d&&v.pageTotal$)),i.xp6(2),i.Q6J("ngIf",d)}}function cr(p,K){1&p&&(i._UZ(0,"div",34),i.ALo(1,"sanitizeHtml")),2&p&&i.Q6J("innerHTML",i.lcZ(1,1,K.ngIf),i.oJD)}let Ar=(()=>{class p extends as{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn){super(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn)}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(f.gz),i.Y36(f.F0),i.Y36(R.sO),i.Y36(R.M5),i.Y36(R.HE),i.Y36(yi.e8),i.Y36(i.sBO),i.Y36(tr.ch),i.Y36(Lt.f),i.Y36(i.SBq),i.Y36(Oo.H7))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-product-overview"]],features:[i.qOj],decls:11,vars:12,consts:[[3,"categoryId"],[1,"product-overview"],[3,"categoriesTitle","allProducts"],[1,"filter-button",3,"click"],["class","product-overview-content",4,"ngLet"],["class","description rich-text",3,"innerHTML",4,"ngIf"],[1,"product-overview-content"],[4,"ngIf"],[1,"product-overview-header"],["target",""],["class","title",4,"ngLet"],["infiniteScroll","",1,"product-overview-cards",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],[3,"product","showBasketIcon",4,"ngFor","ngForOf"],["class","loading",4,"ngIf"],["class","product-overview-header",4,"ngIf"],["class","category-cards",4,"ngIf"],[1,"title"],[1,"category-cards"],[3,"click",4,"ngIf"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],[1,"image-gradient","all"],[1,"fill"],[1,"image-gradient"],[3,"src",4,"ngIf"],["class","fill",4,"ngIf"],[3,"src"],[3,"product","showBasketIcon"],[4,"ngLet"],[1,"currently-showing"],["class","load-more",3,"click",4,"ngIf"],[1,"load-more",3,"click"],[1,"loading"],["src","assets/preloader.gif",3,"alt"],[1,"description","rich-text",3,"innerHTML"]],template:function(v,S){if(1&v&&(i.TgZ(0,"div"),i._UZ(1,"app-breadcrumb",0),i.ALo(2,"async"),i.TgZ(3,"div",1),i._UZ(4,"app-filter-menu",2),i.TgZ(5,"app-text-button",3),i.NdJ("click",function(){return S.openFilterMenu()}),i._uU(6),i.qZA(),i.YNc(7,Yr,14,18,"div",4),i.ALo(8,"async"),i.qZA()(),i.YNc(9,cr,2,3,"div",5),i.ALo(10,"async")),2&v){let pe,Ue;i.xp6(1),i.Q6J("categoryId",null==(pe=i.lcZ(2,6,S.category))?null:pe.id),i.xp6(3),i.Q6J("categoriesTitle",S.filterMenu.categoryTitle)("allProducts",S.filterMenu.allProducts),i.xp6(2),i.Oqu(S.openCategoriesMenu),i.xp6(1),i.Q6J("ngLet",i.lcZ(8,8,S.loading)),i.xp6(2),i.Q6J("ngIf",null==(Ue=i.lcZ(10,10,S.category))?null:Ue.description)}},styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color);padding-top:48px}.min-kobmand-theme[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{margin-left:0}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{max-width:1296px}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-filter-menu[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-filter-menu[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-filter-menu[_ngcontent-%COMP%]{margin-right:32px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:none}}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:24px;text-transform:uppercase}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;line-height:20px;letter-spacing:1px}}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(3,300px)}@media only screen and (min-width: 1024px) and (max-width: 1360px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,300px)}}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-row-gap:8px;grid-column-gap:8px}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{justify-content:space-around;grid-template-columns:repeat(2,1fr);grid-row-gap:8px;grid-column-gap:8px}}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:300px}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:auto;max-width:300px}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:auto}}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(3,300px);grid-row-gap:32px;grid-column-gap:32px;margin-bottom:40px}@media only screen and (min-width: 1024px) and (max-width: 1360px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,300px)}}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-row-gap:12px;grid-column-gap:12px}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{justify-content:space-around;grid-template-columns:repeat(2,1fr);grid-row-gap:12px;grid-column-gap:12px}}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%]{text-transform:uppercase}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-family:var(--font);text-transform:unset}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover   .image-gradient[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:not(.fill), .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover   .image-gradient[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:not(.fill){filter:brightness(60%)}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover   .image-gradient.all[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover   .image-gradient.all[_ngcontent-%COMP%]{filter:brightness(60%)}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]{background:unset}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:not(.fill), .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]:not(.fill){filter:brightness(50%)}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]   img.fill[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]   img.fill[_ngcontent-%COMP%]{mix-blend-mode:normal}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient.all[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient.all[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:right;background-size:60% 100%;background-color:var(--primary-color)}.min-kobmand-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient.all[_ngcontent-%COMP%]   img.fill[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient.all[_ngcontent-%COMP%]   img.fill[_ngcontent-%COMP%]{background-color:transparent}.spar-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient.all[_ngcontent-%COMP%]{background-image:url(/assets/images/spar/category-all-plp.png)}.apetit-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .apetit-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .apetit-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}.apetit-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     .text-button{border:1px solid #fff}.clpartyservice-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#fff}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{padding-top:20px}}[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{margin:0 0 25px 16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{margin:10px 12px 25px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:90vw;max-width:var(--nxt-width)}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{justify-content:flex-start}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{justify-content:flex-start}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{flex-direction:column;width:99vw}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-filter-menu[_ngcontent-%COMP%]{flex:0 0 auto;align-self:flex-start;top:16px;margin-right:16px;margin-bottom:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-filter-menu[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:block;align-self:center;width:90vw;margin-bottom:28px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;flex-direction:column}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]{padding:0 12px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]{padding:14px 0 28px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{justify-content:space-between}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], [_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:32px;line-height:38px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:22px;white-space:nowrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,214px);gap:32px;margin-bottom:48px}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,214px)}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-row-gap:8px;grid-column-gap:8px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%]{justify-content:space-around;grid-template-columns:repeat(2,1fr);grid-row-gap:8px;grid-column-gap:8px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative;width:214px;height:238px;cursor:pointer;border-radius:8px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:auto;max-width:214px;height:133px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:auto;height:133px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{filter:brightness(80%)}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{position:absolute;box-sizing:border-box;top:50%;width:100%;transform:translateY(-50%);padding:10px;z-index:500;font-size:40px;font-family:var(--font);font-weight:700;text-align:center;color:var(--text-primary-color);word-break:break-word;cursor:pointer}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:24px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:24px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]{height:100%;background:linear-gradient(0deg,rgba(0,0,0,.32),rgba(0,0,0,.32));border-radius:8px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;height:100%;width:100%;border-radius:8px;mix-blend-mode:multiply}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .category-cards[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .image-gradient[_ngcontent-%COMP%]   img.fill[_ngcontent-%COMP%]{background-color:var(--primary-color)}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,214px);justify-content:space-between;grid-row-gap:20px;grid-column-gap:8px;margin-bottom:40px}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(3,214px)}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-row-gap:12px;grid-column-gap:12px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{justify-content:space-around;grid-template-columns:repeat(2,1fr);grid-row-gap:12px;grid-column-gap:12px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .currently-showing[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;margin:24px 0;font-size:18px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;margin-bottom:40px;width:-moz-fit-content;width:fit-content;height:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%]{width:calc(100vw - 24px)}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{flex:1 0 auto;align-self:center;box-sizing:border-box;height:36px;margin:16px 0}[_nghost-%COMP%]   .description[_ngcontent-%COMP%]{box-sizing:border-box;width:90vw;max-width:var(--nxt-width);padding:8px 24px;margin:4px 0 40px;border-radius:8px;background-color:#fff}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .description[_ngcontent-%COMP%]{width:calc(100vw - 16px)}}"],data:{animation:[(0,gt.X$)("searchItemAnimation",[(0,gt.eR)(":enter",[(0,gt.oB)({opacity:0}),(0,gt.jt)("400ms ease-out",(0,gt.oB)({opacity:1}))])])]}})}return p})();function bs(p,K){if(1&p&&(i.TgZ(0,"h1"),i._uU(1),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.Oqu(d.allProductsTitle)}}function Ms(p,K){if(1&p&&(i.TgZ(0,"h1"),i._uU(1),i.qZA()),2&p){const d=i.oxw().ngLet;i.xp6(1),i.Oqu(d.title||d.name)}}function Us(p,K){if(1&p&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"async"),i.qZA()),2&p){const d=i.oxw(3);i.xp6(1),i.hij("",i.lcZ(2,1,d.pageTotal$)," varer")}}function ls(p,K){if(1&p&&(i.TgZ(0,"div",14),i.YNc(1,bs,2,1,"h1",6),i.YNc(2,Ms,2,1,"h1",6),i.YNc(3,Us,3,3,"span",6),i.qZA()),2&p){const d=K.ngLet,v=i.oxw(2);i.xp6(1),i.Q6J("ngIf",!d&&v.allProductsTitle),i.xp6(1),i.Q6J("ngIf",d),i.xp6(1),i.Q6J("ngIf",d||v.allProductsTitle)}}function Zs(p,K){if(1&p&&i._UZ(0,"app-online-product-card",15),2&p){const d=K.$implicit;i.Q6J("@searchItemAnimation",void 0)("product",d)}}function jr(p,K){if(1&p){const d=i.EpF();i.TgZ(0,"app-text-button",19),i.NdJ("click",function(){i.CHM(d);const S=i.oxw(4);return i.KtG(S.loadMore())}),i._uU(1),i.qZA()}if(2&p){const d=K.ngIf,v=i.oxw().ngLet,S=i.oxw().ngIf;i.xp6(1),i.hij(" Vis n\xe6ste ",S-v<d?S-v:d," produkter ")}}function Ir(p,K){if(1&p&&(i.ynx(0),i.TgZ(1,"span",17),i._uU(2),i.qZA(),i.YNc(3,jr,2,1,"app-text-button",18),i.ALo(4,"async"),i.BQk()),2&p){const d=K.ngLet,v=i.oxw().ngIf,S=i.oxw(2);i.xp6(2),i.AsE(" Viser ",d>v?v:d," ud af ",v," produkter "),i.xp6(1),i.Q6J("ngIf",i.lcZ(4,3,S.hasMore()&&S.pageSize$))}}function L(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Ir,5,5,"ng-container",16),i.ALo(2,"async"),i.BQk()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("ngLet",i.lcZ(2,1,d.pageShowing$))}}function Vt(p,K){if(1&p&&(i.TgZ(0,"div",20),i._UZ(1,"img",21),i.qZA()),2&p){const d=i.oxw(2);i.xp6(1),i.Q6J("alt",d.loadingProductsAlt)}}function at(p,K){if(1&p&&(i.TgZ(0,"div",7)(1,"div",8,9),i.YNc(3,ls,4,3,"div",10),i.ALo(4,"async"),i.qZA(),i.TgZ(5,"div",11),i.YNc(6,Zs,1,2,"app-online-product-card",12),i.ALo(7,"async"),i.qZA(),i.YNc(8,L,3,3,"ng-container",6),i.ALo(9,"async"),i.YNc(10,Vt,2,1,"div",13),i.qZA()),2&p){const d=K.ngLet,v=i.oxw();i.xp6(3),i.Q6J("ngLet",i.lcZ(4,7,v.category)),i.xp6(2),i.Q6J("infiniteScrollDistance",3)("infiniteScrollThrottle",50)("infiniteScrollDisabled",v.reset),i.xp6(1),i.Q6J("ngForOf",i.lcZ(7,9,v.products)),i.xp6(2),i.Q6J("ngIf",i.lcZ(9,11,!d&&v.pageTotal$)),i.xp6(2),i.Q6J("ngIf",d)}}function It(p,K){1&p&&(i._UZ(0,"div",22),i.ALo(1,"sanitizeHtml")),2&p&&i.Q6J("innerHTML",i.lcZ(1,1,K.ngIf),i.oJD)}function Le(p,K){if(1&p&&i._UZ(0,"app-strip-container",24),2&p){const d=i.oxw().ngIf;i.Q6J("strips",d)}}function mn(p,K){if(1&p&&(i.ynx(0),i.YNc(1,Le,1,1,"app-strip-container",23),i.BQk()),2&p){const d=K.ngIf;i.xp6(1),i.Q6J("ngIf",null==d?null:d.length)}}let Pn=(()=>{class p extends as{constructor(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn){super(d,v,S,pe,Ue,hn,yn,An,Nn,ui,ei,jn)}ngOnInit(){super.ngOnInit(),this.strips=this.category.pipe((0,F.U)(d=>this.contentService.getOnlineCategoryContent(d?.id)))}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R._s),i.Y36(f.gz),i.Y36(f.F0),i.Y36(R.sO),i.Y36(R.M5),i.Y36(R.HE),i.Y36(yi.e8),i.Y36(i.sBO),i.Y36(tr.ch),i.Y36(Lt.f),i.Y36(i.SBq),i.Y36(Oo.H7))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-online-product-overview"]],features:[i.qOj],decls:13,vars:15,consts:[[3,"categoryId"],[1,"product-overview"],[3,"categoriesTitle","allProducts"],[1,"filter-button",3,"click"],["class","product-overview-content",4,"ngLet"],["class","description rich-text",3,"innerHTML",4,"ngIf"],[4,"ngIf"],[1,"product-overview-content"],[1,"product-overview-header"],["target",""],["class","title",4,"ngLet"],["infiniteScroll","",1,"product-overview-cards",3,"infiniteScrollDistance","infiniteScrollThrottle","infiniteScrollDisabled"],[3,"product",4,"ngFor","ngForOf"],["class","loading",4,"ngIf"],[1,"title"],[3,"product"],[4,"ngLet"],[1,"currently-showing"],["class","load-more",3,"click",4,"ngIf"],[1,"load-more",3,"click"],[1,"loading"],["src","assets/preloader.gif",3,"alt"],[1,"description","rich-text",3,"innerHTML"],[3,"strips",4,"ngIf"],[3,"strips"]],template:function(v,S){if(1&v&&(i.TgZ(0,"div"),i._UZ(1,"app-breadcrumb",0),i.ALo(2,"async"),i.TgZ(3,"div",1),i._UZ(4,"app-online-filter-menu",2),i.TgZ(5,"app-text-button",3),i.NdJ("click",function(){return S.openFilterMenu()}),i._uU(6),i.qZA(),i.YNc(7,at,11,13,"div",4),i.ALo(8,"async"),i.qZA()(),i.YNc(9,It,2,3,"div",5),i.ALo(10,"async"),i.YNc(11,mn,2,1,"ng-container",6),i.ALo(12,"async")),2&v){let pe,Ue;i.xp6(1),i.Q6J("categoryId",null==(pe=i.lcZ(2,7,S.category))?null:pe.id),i.xp6(3),i.Q6J("categoriesTitle",S.filterMenu.categoryTitle)("allProducts",S.filterMenu.allProducts),i.xp6(2),i.Oqu(S.openCategoriesMenu),i.xp6(1),i.Q6J("ngLet",i.lcZ(8,9,S.loading)),i.xp6(2),i.Q6J("ngIf",null==(Ue=i.lcZ(10,11,S.category))?null:Ue.description),i.xp6(2),i.Q6J("ngIf",i.lcZ(12,13,S.strips))}},styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color);padding-top:48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{padding-top:20px}}[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{margin-bottom:25px}[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]  .breadcrumb{grid-column-start:1;text-align:left}[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]  .breadcrumb a{font-size:16px;font-weight:600}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-breadcrumb[_ngcontent-%COMP%]{margin:10px 12px 25px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:90vw;max-width:var(--online-width)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]{flex-direction:column;width:99vw}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-online-filter-menu[_ngcontent-%COMP%]{margin:16px 16px 32px 0}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   app-online-filter-menu[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:block;align-self:center;width:90vw;margin-bottom:28px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;flex-direction:column}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]{padding:0 12px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]{padding:14px 0 28px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{justify-content:space-between}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], [_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-weight:700;font-size:32px;line-height:38px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:22px;white-space:nowrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,400px);justify-content:space-between;grid-row-gap:60px;grid-column-gap:30px;margin-bottom:40px}@media only screen and (max-width: 1680px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(2,400px)}}@media only screen and (max-width: 1200px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(1,400px)}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{grid-template-columns:repeat(1,1fr);grid-row-gap:12px;grid-column-gap:12px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%]{justify-content:space-around;grid-template-columns:repeat(1,1fr);grid-row-gap:12px;grid-column-gap:12px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .product-overview-cards[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{justify-self:center}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .currently-showing[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;margin:24px 0;font-size:18px}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;margin-bottom:40px;width:-moz-fit-content;width:fit-content;height:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .load-more[_ngcontent-%COMP%]{width:calc(100vw - 24px)}}[_nghost-%COMP%]   .product-overview[_ngcontent-%COMP%]   .product-overview-content[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{flex:1 0 auto;align-self:center;box-sizing:border-box;height:36px;margin:16px 0}[_nghost-%COMP%]   .description[_ngcontent-%COMP%]{box-sizing:border-box;width:90vw;max-width:var(--online-width);padding:8px 24px;margin:4px 0 40px;border-radius:8px;background-color:#fff}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .description[_ngcontent-%COMP%]{width:calc(100vw - 16px)}}"],data:{animation:[(0,gt.X$)("searchItemAnimation",[(0,gt.eR)(":enter",[(0,gt.oB)({opacity:0}),(0,gt.jt)("400ms ease-out",(0,gt.oB)({opacity:1}))])])]}})}return p})();function Yn(p,K){1&p&&i._UZ(0,"app-product-overview")}function to(p,K){1&p&&i._UZ(0,"app-online-product-overview")}let po=(()=>{class p{constructor(d){this.themeService=d}ngOnInit(){this.isOnline=this.themeService.isOnline}static#t=this.\u0275fac=function(v){return new(v||p)(i.Y36(R.fY))};static#e=this.\u0275cmp=i.Xpm({type:p,selectors:[["app-product-overview-wrapper"]],decls:2,vars:2,consts:[[4,"ngIf"]],template:function(v,S){1&v&&(i.YNc(0,Yn,1,0,"app-product-overview",0),i.YNc(1,to,1,0,"app-online-product-overview",0)),2&v&&(i.Q6J("ngIf",!S.isOnline),i.xp6(1),i.Q6J("ngIf",S.isOnline))},encapsulation:2})}return p})()},1165:(Je,Rt,c)=>{"use strict";c.d(Rt,{s:()=>Ht});var o=c(7592),e=c(7394),g=c(5619),x=c(7985),l=c(2802),i=c(7299),R=c(5879),f=c(8712),t=c(7954),y=c(2787);function O(A,xt){if(1&A&&(R.ynx(0),R._UZ(1,"app-meny-basket-item",5),R.BQk()),2&A){const tt=xt.$implicit;R.xp6(1),R.Q6J("product",tt.product)("quantity",tt.quantity)}}function G(A,xt){if(1&A&&(R.TgZ(0,"div",12)(1,"b"),R._uU(2),R.ALo(3,"number"),R.ALo(4,"displayCurrency"),R.qZA(),R.TgZ(5,"span",13),R._uU(6),R.ALo(7,"number"),R.ALo(8,"displayCurrency"),R.qZA()()),2&A){const tt=xt.ngLet,ct=R.oxw();R.xp6(2),R.AsE("Total: ",R.Dn7(3,4,tt,".2-2",ct.locale)," ",R.lcZ(4,8,ct.currency)," "),R.xp6(4),R.AsE(" heraf moms ",R.Dn7(7,10,.2*tt,".2-2",ct.locale)," ",R.lcZ(8,14,ct.currency)," ")}}function U(A,xt){if(1&A&&R._UZ(0,"app-product-card",16),2&A){const tt=R.oxw().$implicit;R.Q6J("product",tt)}}function lt(A,xt){if(1&A&&(R.ynx(0),R.YNc(1,U,1,1,"app-product-card",15),R.BQk()),2&A){const tt=xt.$implicit;R.xp6(1),R.Q6J("ngIf",tt.forSale)}}function ut(A,xt){if(1&A&&(R.TgZ(0,"div",14)(1,"h2"),R._uU(2),R.qZA(),R.TgZ(3,"div"),R.YNc(4,lt,2,1,"ng-container",6),R.qZA()()),2&A){const tt=R.oxw();R.xp6(2),R.Oqu(tt.displayedProductAddition.name),R.xp6(2),R.Q6J("ngForOf",null==tt.displayedProductAddition?null:tt.displayedProductAddition.products)}}let Ht=(()=>{class A extends l.I{constructor(tt,ct,_,j,q,ht,vt){super(_,"basket"),this.dialogRef=tt,this.data=ct,this.basketQuery=j,this.router=q,this.themeService=ht,this.elRef=vt,this.closeIcon=x.qq.bigCross,this.productsUrl=`/${i.environment.urls.products}`,this.basketOverviewUrl=`/${i.environment.urls.basket}`,this.locale=i.environment.i18n.language,this.currency=i.environment.i18n.currency,this.subscription=new e.w0,this.buyMoreButtonText="K\xf8b mere",this.basketButtonText=this.content.get("goToBasketButtonText")}ngOnInit(){this.productLine=new g.X(void 0),this.quantity=new g.X(this.data.initialQuantity),this.productAdditions=new g.X([]),this.subscription.add(this.basketQuery.selectProductLines$.subscribe(tt=>{const ct=tt.find(j=>j.lineId===this.data.lineId);this.productLine.next(ct),this.quantity.next(ct?.quantity);const _=[];this.data.product.productAdditions?.forEach(j=>{j.products.forEach(q=>{const ht=tt.find(vt=>vt.productId===q.id);if(ht){const vt={...ht,product:q};_.push(vt)}})}),this.productAdditions.next(_)})),this.displayedProductAddition=this.data.product.productAdditions?.find(tt=>tt.display)}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}redirectAndClose(tt){this.router.navigate([tt]),this.dialogRef.close()}getPrice(tt,ct){let _=0;if(tt){const j=tt.quantity;if(_+=tt.price*j,tt.moduleLines)for(const q of tt.moduleLines)_+=q.price*q.quantity*j}for(const j of ct){if(!j)continue;const q=j.quantity;if(_+=j.price*q,j.moduleLines)for(const ht of j.moduleLines)_+=ht.price*ht.quantity*q}return _}static#t=this.\u0275fac=function(ct){return new(ct||A)(R.Y36(o.hV),R.Y36(o.eJ),R.Y36(f._s),R.Y36(t.Ns),R.Y36(y.F0),R.Y36(t.fY),R.Y36(R.SBq))};static#e=this.\u0275cmp=R.Xpm({type:A,selectors:[["app-meny-basket-dialog"]],features:[R.qOj],decls:21,vars:17,consts:[[3,"icon","border","click"],[1,"wrapper"],[1,"inner-wrapper"],[1,"basket"],[1,"basket-items"],[3,"product","quantity"],[4,"ngFor","ngForOf"],["class","total-price",4,"ngLet"],[1,"buttons"],["color","accent",1,"buy-more",3,"click"],[3,"click"],["class","additional-products",4,"ngIf"],[1,"total-price"],["id","tax"],[1,"additional-products"],[3,"product",4,"ngIf"],[3,"product"]],template:function(ct,_){1&ct&&(R.TgZ(0,"app-icon-button",0),R.NdJ("click",function(){return _.dialogRef.close()}),R.qZA(),R.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"header")(5,"h2"),R._uU(6,"Tilf\xf8jet til kurven"),R.qZA()(),R.TgZ(7,"div",4),R._UZ(8,"app-meny-basket-item",5),R.ALo(9,"async"),R.YNc(10,O,2,2,"ng-container",6),R.ALo(11,"async"),R.qZA(),R.YNc(12,G,9,16,"div",7),R.ALo(13,"async"),R.ALo(14,"async"),R.TgZ(15,"div",8)(16,"app-text-button",9),R.NdJ("click",function(){return _.dialogRef.close()}),R._uU(17),R.qZA(),R.TgZ(18,"app-text-button",10),R.NdJ("click",function(){return _.redirectAndClose(_.basketOverviewUrl)}),R._uU(19),R.qZA()()(),R.YNc(20,ut,5,2,"div",11),R.qZA()()),2&ct&&(R.Q6J("icon",_.closeIcon)("border",!1),R.xp6(8),R.Q6J("product",_.data.product)("quantity",R.lcZ(9,9,_.quantity)),R.xp6(2),R.Q6J("ngForOf",R.lcZ(11,11,_.productAdditions)),R.xp6(2),R.Q6J("ngLet",_.getPrice(R.lcZ(13,13,_.productLine),R.lcZ(14,15,_.productAdditions))),R.xp6(5),R.Oqu(_.buyMoreButtonText),R.xp6(2),R.Oqu(_.basketButtonText),R.xp6(1),R.Q6J("ngIf",_.displayedProductAddition))},styles:["[_nghost-%COMP%]{margin:-24px;display:flex;flex-direction:column;position:relative;max-height:90vh;max-width:1074px;width:90vw}.meny-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{text-transform:uppercase}.spar-theme[_nghost-%COMP%]   .buy-more[_ngcontent-%COMP%]     .text-button{background-color:#59193c}[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;border-radius:8px}[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]   .inner-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow-y:auto}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{max-width:90vw;min-width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:95vw;min-width:95vw;max-height:calc(var(--vh, vh) * 95)}}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;right:8px;top:8px;height:40px;width:40px;z-index:100}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{background-color:#3c3c3b}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path{fill:#fff}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]{padding:48px 48px 0;background-color:var(--background-color)}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]{padding:48px 16px 0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]{padding:48px 16px 0}}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-items[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;margin-bottom:16px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]{display:flex;flex-direction:column;text-align:end;margin-bottom:40px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{font-size:18px;line-height:22px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .total-price[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:14px;line-height:22px;color:#8d8d8d}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-around;margin-bottom:48px;gap:8px}[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;line-height:18px;font-weight:700;height:48px;width:min-content}[_nghost-%COMP%]   .additional-products[_ngcontent-%COMP%]{padding:0 48px 48px;background-color:#fff;margin-top:32px;display:flex;flex-direction:column}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .additional-products[_ngcontent-%COMP%]{padding:0 16px 48px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .additional-products[_ngcontent-%COMP%]{padding:0 16px 48px}}[_nghost-%COMP%]   .additional-products[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,300px);justify-content:space-between;grid-row-gap:20px;grid-column-gap:8px;margin-bottom:60px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .additional-products[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{justify-content:space-around}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .additional-products[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{justify-content:space-around}}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;line-height:24px;margin:0 0 32px}"]})}return A})()},3982:(Je,Rt,c)=>{"use strict";c.d(Rt,{c:()=>q});var o=c(9671),e=c(6825),g=c(2787),x=c(7394),l=c(4036),i=c(8504),R=c(8075),f=c(8180),t=c(6093),y=c(2802),O=c(7299),G=c(5879),U=c(7954),lt=c(9862),ut=c(4222),Ht=c(120),A=c(6574);function xt(ht,vt){if(1&ht&&G._UZ(0,"app-simple-product-detail",6),2&ht){const gt=G.oxw(2);G.Q6J("product",gt.product)("sharedContent",gt.sharedDetailContent)("price",gt.price)("savings",gt.savings)("basketProducts",gt.basketProducts$)}}function tt(ht,vt){if(1&ht&&G._UZ(0,"app-composite-product-detail",6),2&ht){const gt=G.oxw(2);G.Q6J("product",gt.product)("sharedContent",gt.sharedDetailContent)("price",gt.price)("savings",gt.savings)("basketProducts",gt.basketProducts$)}}function ct(ht,vt){if(1&ht&&(G.ynx(0),G.YNc(1,xt,1,5,"app-simple-product-detail",5),G.YNc(2,tt,1,5,"app-composite-product-detail",5),G.BQk()),2&ht){const gt=G.oxw();G.xp6(1),G.Q6J("ngIf",0===gt.product.productModules.length),G.xp6(1),G.Q6J("ngIf",gt.product.productModules.length>0)}}function _(ht,vt){if(1&ht&&G._UZ(0,"app-online-product-detail",6),2&ht){const gt=G.oxw();G.Q6J("product",gt.product)("sharedContent",gt.sharedDetailContent)("price",gt.price)("savings",gt.savings)("basketProducts",gt.basketProducts$)}}function j(ht,vt){if(1&ht&&(G.TgZ(0,"div")(1,"app-center-section")(2,"span"),G._uU(3),G.qZA()()()),2&ht){const gt=G.oxw();G.xp6(3),G.Oqu(gt.productNotFoundWarning)}}let q=(()=>{class ht extends y.I{constructor(gt,zt,Ct,H,J,z,F,rt,V){super(gt,"productInfo"),this.router=zt,this.activatedRoute=Ct,this.http=H,this.basketQuery=J,this.authService=z,this.gtmService=F,this.themeService=rt,this.elRef=V,this.productEndpoint=`${O.environment.apiOrigin}/Product`,this.productMemberEndpoint=`${O.environment.apiOrigin}/Product/member`,this.subscription=new x.w0,this.productTypes=t.V7,this.loading=!1;const Pt=gt.getSharedContent(!0);this.sharedDetailContent={addToBasketLabel:Pt.get("addToBasketText"),maxQuantityTitle:Pt.get("maxQuantityTitleText"),maxQuantityPriceExplaination:Pt.get("maxQuantityExplainationTemplate"),productNotForSale:this.content.get("productNotForSaleText")||"Udsolgt"},this.productNotFoundWarning=this.content.get("productNotFoundText")}ngOnInit(){this.productNotFound=!1,this.loading=!0,this.basketProducts$=this.basketQuery.selectProducts$,this.requestEndpoint=this.productEndpoint,this.subscription.add(this.authService.member.subscribe(gt=>{this.requestEndpoint=gt?this.productMemberEndpoint:this.productEndpoint,this.customerId=gt?this.authService.getCustomerDetails(gt).id:null,this.getProduct()})),this.subscription.add(this.router.events.subscribe(gt=>{gt instanceof g.m2&&(this.productNotFound=!1,this.loading=!0,this.getProduct())}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.contentService.setOGImage(),this.subscription.unsubscribe()}getProduct(){var gt=this;const zt=this.parseId(this.activatedRoute.snapshot.url[0].path);let Ct=`${this.requestEndpoint}/${zt}?merchantId=${this.contentService.getMerchantId()}`;var H;this.customerId&&(Ct+=`&customerId=${this.customerId}`),this.http.get(Ct).pipe((0,R.X)({count:2,delay:1e3}),(0,f.q)(1)).subscribe({next:(H=(0,o.Z)(function*(J){let z=!1;for(const F of J.categories)if(z=F.frontPageCategory||F.frontendDisplay||F.isInherited,z)break;if(!z)return gt.productNotFound=!0,void(gt.loading=!1);if(J=yield gt.getProductDetails(J),gt.product=J,gt.price=gt.product.price,gt.product.splash&&gt.product.originalPrice!==gt.product.price){const rt=gt.contentService.getSharedContent().get("savingsLabelText");gt.savings={quantity:1,label:rt,price:gt.product.originalPrice-gt.product.price}}gt.gtmService?.clearEcommerce(),gt.gtmService?.viewItem(J),gt.setSEO(),gt.loading=!1}),function(z){return H.apply(this,arguments)}),error:H=>this.handleError(H)})}getProductDetails(gt){var zt=this;return(0,o.Z)(function*(){let Ct=`${zt.requestEndpoint}/${gt.id}/Modules?merchantId=${zt.contentService.getMerchantId()}`;zt.customerId&&(Ct+=`&customerId=${zt.customerId}`);const H=yield(0,l.z)(zt.http.get(Ct));gt.productModules=H?.length?H:[];const J=`${zt.productEndpoint}/${gt.id}/Additions?merchantId=${zt.contentService.getMerchantId()}`,z=yield(0,l.z)(zt.http.get(J));return gt.productAdditions=z?.length?z:[],gt})()}parseId(gt){const{groups:{complex:zt,simple:Ct}}=/^.*-(?<complex>\d+)$|(?<simple>\d+)$/.exec(gt);return+(zt||Ct)}handleError(gt){return this.productNotFound=!0,(0,i._)(()=>gt)}setSEO(){const{productPageTitle:gt,productDisplayName:zt,primaryImageUrl:Ct}=this.product;this.contentService.setTitle(gt||zt),this.contentService.setDescription(this.product.productPageDescription),this.contentService.setNoIndex(!1),this.contentService.setOGImage(Ct)}static#t=this.\u0275fac=function(zt){return new(zt||ht)(G.Y36(U._s),G.Y36(g.F0),G.Y36(g.gz),G.Y36(lt.eN),G.Y36(U.Ns),G.Y36(ut.e8),G.Y36(Ht.b),G.Y36(A.f),G.Y36(G.SBq))};static#e=this.\u0275cmp=G.Xpm({type:ht,selectors:[["app-product-detail"]],features:[G.qOj],decls:9,vars:8,consts:[[1,"breadcrumb-wrapper"],["onclick","history.back()",1,"back","unstyled-button"],["svgIcon","left_arrow"],[3,"categoryId","product"],[4,"ngIf"],[3,"product","sharedContent","price","savings","basketProducts",4,"ngIf"],[3,"product","sharedContent","price","savings","basketProducts"]],template:function(zt,Ct){1&zt&&(G.TgZ(0,"div")(1,"div",0)(2,"button",1),G._UZ(3,"mat-icon",2),G._uU(4," Tilbage"),G.qZA(),G._UZ(5,"app-breadcrumb",3),G.qZA(),G.YNc(6,ct,3,2,"ng-container",4),G.YNc(7,_,1,5,"app-online-product-detail",5),G.YNc(8,j,4,1,"div",4),G.qZA()),2&zt&&(G.Q6J("@contentAnimation",Ct.loading?"loading":"done"),G.xp6(1),G.ekj("online",(null==Ct.product?null:Ct.product.productType)===Ct.productTypes.Online),G.xp6(4),G.Q6J("categoryId",null==Ct.product?null:Ct.product.primaryCategoryId)("product",Ct.product),G.xp6(1),G.Q6J("ngIf",Ct.product&&Ct.product.productType===Ct.productTypes.Catering),G.xp6(1),G.Q6J("ngIf",Ct.product&&Ct.product.productType===Ct.productTypes.Online),G.xp6(1),G.Q6J("ngIf",Ct.productNotFound))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color);position:relative}.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{max-width:1296px;width:100%;display:grid;grid-template-columns:78px auto 78px;gap:32px;margin-bottom:36px}@media only screen and (min-width: 1024px) and (max-width: 1360px){.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;max-width:1074px;width:80vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;max-width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;max-width:95vw}}.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;max-width:78px;font-size:12px;line-height:12px;font-weight:700;text-transform:uppercase;padding:0}.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:12px;width:12px}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{max-width:var(--nxt-width);width:80vw;margin:60px 0 24px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper.online[_ngcontent-%COMP%]{max-width:var(--online-width);width:90vw}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .breadcrumb-wrapper[_ngcontent-%COMP%]{width:95vw}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   app-center-section[_ngcontent-%COMP%]{display:flex;margin:24px 0 80px;padding:24px;min-height:500px;overflow:hidden}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]   app-center-section[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   app-center-section[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 1 auto}"],data:{animation:[(0,e.X$)("contentAnimation",[(0,e.SB)("loading",(0,e.oB)({height:"500px",opacity:0})),(0,e.SB)("done",(0,e.oB)({height:"*",opacity:1}))])]}})}return ht})()},6261:(Je,Rt,c)=>{"use strict";c.d(Rt,{NN:()=>y,_v:()=>O});var o=c(6814),e=c(7299),g=c(5879),x=c(8712);const l={DEMO:8},R="{API_KEY}",t=`\n  ConveyThis_Initializer.init({\n    api_key: "${R}"\n  });\n`;let y=(()=>{class G{constructor(lt,ut,Ht){this.doc=lt,this.rendererFactory=ut,this.contentService=Ht,this.renderer=this.rendererFactory.createRenderer(null,null),this.setConveyThis()}setConveyThis(){let ut;if(this.contentService.getMerchantId()===l.DEMO&&(ut="pub_ab148f6ba83c94ff3d97fd107274ce5b"),!ut)return;const Ht=new RegExp(R,"g");let A=t;A=A.replace(Ht,ut),this.installConveyThis(A)}installConveyThis(lt){const ut=this.doc.getElementsByTagName("head")[0],Ht=this.renderer.createElement("script");Ht.src="//cdn.conveythis.com/javascript/conveythis-initializer.js",ut.appendChild(Ht),Ht.addEventListener("load",()=>{const A=this.renderer.createElement("script");A.innerHTML=lt,ut.appendChild(A)})}static#t=this.\u0275fac=function(ut){return new(ut||G)(g.LFG(o.K0),g.LFG(g.FYo),g.LFG(x._s))};static#e=this.\u0275prov=g.Yz7({token:G,factory:G.\u0275fac})}return G})();const O=(G,U,lt)=>{const ut=lt.getMerchantId();return e.environment.production&&Object.values(l).includes(ut)?new y(G,U,lt):null}},120:(Je,Rt,c)=>{"use strict";c.d(Rt,{b:()=>x});var o=c(5879),e=c(6543),g=function(l){return l.Granted="granted",l.Denied="denied",l}(g||{});let x=(()=>{class l{constructor(R){this.productModulePipe=R,this.order="GTM_ORDER"}purchase(R){const{ua:f,ga4:t}=R,y=f?.transactionId?f.transactionId:t?.transaction_id;!y||localStorage.getItem(this.order)===y||(localStorage.setItem(this.order,y),window.dataLayer?.push({event:"purchase",...f,ecommerce:{...t}}))}enhancedPurchase(R){localStorage.getItem(this.order)!==R.purchase.actionField.id&&(localStorage.setItem(this.order,R.purchase.actionField.id),window.dataLayer?.push({event:"purchase",ecommerce:R}))}clearEcommerce(){typeof window>"u"||window.dataLayer?.push({ecommerce:null})}updateConsent(R,f=!1){if(typeof window>"u"||!R)return;this.updateConsentMode(R);const{necessary:t,functional:y,statistics:O,marketing:G}=R;window.dataLayer.push({event:f?"cookieConsentUpdated":"cookieConsentGiven",consented:!0,necessary:t,functional:y,statistics:O,marketing:G});const U=new Event(f?"NXTCookieConsentUpdated":"NXTCookieConsentGiven");window.dispatchEvent(U)}updateConsentMode(R){if(!window.dataLayer)return;const{necessary:f,functional:t,statistics:y,marketing:O}=R;gtag("consent","update",{ad_storage:O?g.Granted:g.Denied,analytics_storage:y?g.Granted:g.Denied,functionality_storage:t?g.Granted:g.Denied,personalization_storage:t?g.Granted:g.Denied,security_storage:f?g.Granted:g.Denied,ad_user_data:O?g.Granted:g.Denied,ad_personalization:O?g.Granted:g.Denied,wait_for_update:2e3})}addToCart(R,f){if(typeof window>"u"||!R||!f)return;const t=[];let y=R.price;this.productModulePipe.transform(R)?.map(ut=>{y+=ut.price,t.push(ut.productDisplayName)});const{productDisplayName:G,...U}=R,lt={productDisplayName:G,price:y,quantity:f,moduleProducts:t};window.dataLayer?.push({event:"add_to_cart",ecommerce:{items:lt}})}initiateCheckout(){typeof window>"u"||window.dataLayer?.push({event:"begin_checkout"})}viewItem(R){if(typeof window>"u"||!R)return;const{productDisplayName:f,price:t,...y}=R,O={productDisplayName:f,price:t};window.dataLayer?.push({event:"view_item",ecommerce:{items:O}})}static#t=this.\u0275fac=function(f){return new(f||l)(o.LFG(e.ki))};static#e=this.\u0275prov=o.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},1904:(Je,Rt,c)=>{"use strict";c.d(Rt,{p$:()=>J,sI:()=>z});var o=c(9671),e=c(6814),g=c(9818),l=c(7394),i=c(836),R=c(3997),f=c(2181),t=c(8180),y=c(6093),O=c(7299),G=c(5879),U=c(8712),lt=c(8906),ut=c(7890),Ht=c(7350),A=c(4222),xt=c(6543);const _="{CONFIG}",j=`\n  window.mParticle = {\n    config: ${_},\n  };\n  (\n    function(t){window.mParticle=window.mParticle||{};window.mParticle.EventType={Unknown:0,Navigation:1,Location:2,Search:3,Transaction:4,UserContent:5,UserPreference:6,Social:7,Other:8};window.mParticle.eCommerce={Cart:{}};window.mParticle.Identity={};window.mParticle.config=window.mParticle.config||{};window.mParticle.config.rq=[];window.mParticle.config.snippetVersion=2.3;window.mParticle.ready=function(t){window.mParticle.config.rq.push(t)};var e=["endSession","logError","logBaseEvent","logEvent","logForm","logLink","logPageView","setSessionAttribute","setAppName","setAppVersion","setOptOut","setPosition","startNewSession","startTrackingLocation","stopTrackingLocation"];var o=["setCurrencyCode","logCheckout"];var i=["identify","login","logout","modify"];e.forEach(function(t){window.mParticle[t]=n(t)});o.forEach(function(t){window.mParticle.eCommerce[t]=n(t,"eCommerce")});i.forEach(function(t){window.mParticle.Identity[t]=n(t,"Identity")});function n(e,o){return function(){if(o){e=o+"."+e}var t=Array.prototype.slice.call(arguments);t.unshift(e);window.mParticle.config.rq.push(t)}}var dpId,dpV,config=window.mParticle.config,env=config.isDevelopmentMode?1:0,dbUrl="?env="+env,dataPlan=window.mParticle.config.dataPlan;dataPlan&&(dpId=dataPlan.planId,dpV=dataPlan.planVersion,dpId&&(dpV&&(dpV<1||dpV>1e3)&&(dpV=null),dbUrl+="&plan_id="+dpId+(dpV?"&plan_version="+dpV:"")));var mp=document.createElement("script");mp.type="text/javascript";mp.async=true;mp.src=("https:"==document.location.protocol?"https://jssdkcdns":"http://jssdkcdn")+".mparticle.com/js/v2/"+t+"/mparticle.js" + dbUrl;var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(mp,c)}\n  )\n  ('{KEY}');\n`,q_MENY={planId:"meny_data_plan",planVersion:1},q_SPAR={planId:"spar_data_plan",planVersion:1},q_MIN_KOBMAND={planId:"minkobmand_data_plan",planVersion:1},ht="Catering",zt={MENY:"Meny",SPAR:"Spar",MK:"Min K\xf8bmand"},Ct={MENY_SMALL:"Meny small",MENY_BIG:"Meny Big",MENY_GOURMET:"Meny Gourmet",SPAR:"Spar",MK:"Min K\xf8bmand"},H={HOVEDSTADEN:"Hovedstaden",MIDTJYLLAND:"Midtjylland",NORDJYLLAND:"Nordjylland",SYDDANMARK:"Syddanmark",SJAELLAND:"Sj\xe6lland"};let J=(()=>{class F{constructor(V,Pt,$t,Lt,Jt,Tt,$,pt,Dt){this.document=V,this.rendererFactory=Pt,this.contentService=$t,this.cookiePolicyService=Lt,this.basketQuery=Jt,this.shippingQuery=Tt,this.shippingService=$,this.authService=pt,this.productModulePipe=Dt,this.subscription=new l.w0,this.renderer=this.rendererFactory.createRenderer(null,null),this.setMParticle()}ngOnDestroy(){this.subscription.unsubscribe()}setMParticle(){const{type:V}=this.contentService.getMerchant();let Pt,$t={};switch(V){case y.Pc.MIN_KOBMAND:Pt="eu1-0d5696b08639204c9bbbace822df25e9",$t=q_MIN_KOBMAND;break;case y.Pc.SPAR:Pt="eu1-d336073821c2774f9e3fd0f264d7990b",$t=q_SPAR;break;case y.Pc.MENY:Pt="eu1-7121918041cea14cbac2fcc0b9088f3a",$t=q_MENY}if(!Pt)return;const Lt={isDevelopmentMode:!O.environment.production,logLevel:O.environment.production?"none":"verbose",dataPlan:$t};if(typeof window>"u"||!window.mParticle){const Jt=new RegExp("{KEY}","g");let Tt=j;Tt=Tt.replace(Jt,Pt);const $=new RegExp(_,"g");Tt=Tt.replace($,JSON.stringify(Lt));const pt=this.document.getElementsByTagName("head")[0],Dt=this.renderer.createElement("script");Dt.innerHTML=Tt,pt.appendChild(Dt)}typeof window<"u"&&(window.mParticle?.eCommerce.setCurrencyCode("DKK"),this.subscription.add(this.cookiePolicyService.cookiePolicyChoice.pipe((0,i.T)(1),(0,R.x)((Jt,Tt)=>g(Jt,Tt))).subscribe(Jt=>{Jt&&this.setConsentState(Jt)})),this.subscription.add(this.authService.member.pipe((0,i.T)(1),(0,R.x)((Jt,Tt)=>Jt?.id===Tt?.id)).subscribe(Jt=>{Jt?this.login(Jt.email,`${Jt.id}`):this.logout()})))}login(V,Pt){typeof window>"u"||!window.mParticle?.Identity||window.mParticle.Identity.login({userIdentities:{email:V,other3:Pt}},this.identityCallback.bind(this))}sticthLogin(V){if(typeof window>"u"||!window.mParticle?.Identity||!V)return;const Pt=window.mParticle.Identity.getCurrentUser();Pt&&Pt.isLoggedIn()&&Pt.getUserIdentities().userIdentities.email===V||window.mParticle.Identity.login({userIdentities:{email:V}},this.identityCallback.bind(this))}logout(){typeof window>"u"||!window.mParticle||window.mParticle.Identity.logout({},this.identityCallback.bind(this))}deliveryMethodOpen(){typeof window>"u"||!window.mParticle?.logEvent||window.mParticle.logEvent("Catering Select Delivery Method Open",window.mParticle.EventType.Other,{origin:ht})}deliveryMethodComplete(V){if(typeof window>"u"||!window.mParticle?.logEvent||!V)return;const{shippingType:Pt,date:Lt}=V.value,Jt=this.shippingService.getSelectedShipping(Pt).info.displayName.toLowerCase().includes("afhent");window.mParticle.logEvent("Catering Select Delivery Method Complete",window.mParticle.EventType.Other,{origin:ht,delivery_method:Jt?"delivery":"collection",deliivery_date:Lt.format("YYYY-MM-DD"),delivery_time:"afternoon"})}viewBasket(){if(typeof window>"u"||!window.mParticle?.logPageView)return;const V=window.location.href;window.mParticle.logPageView("Catering View Shopping Cart",{origin:ht,url:V,pageTitle:this.document.title})}viewCheckoutDelivery(){if(typeof window>"u"||!window.mParticle?.logPageView)return;const V=window.location.href;window.mParticle.logPageView("Catering Checkout Step 1 Delivery",{origin:ht,url:V,pageTitle:this.document.title})}viewCheckoutApproval(){if(typeof window>"u"||!window.mParticle?.logPageView)return;const V=window.location.href;window.mParticle.logPageView("Catering Checkout Step 2 Approval",{origin:ht,url:V,pageTitle:this.document.title})}viewCheckoutPayment(){if(typeof window>"u"||!window.mParticle?.logPageView)return;const V=window.location.href;window.mParticle.logPageView("Catering Checkout Step 3 Payment",{origin:ht,url:V,pageTitle:this.document.title})}viewCheckoutComplete(){if(typeof window>"u"||!window.mParticle)return;const V=window.location.href,Pt=this.document.title;window.mParticle?.logPageView("Catering Checkout Step 4 Complete",{origin:ht,url:V,pageTitle:Pt})}viewLogin(){if(typeof window>"u"||!window.mParticle?.logPageView)return;const V=window.location.href;window.mParticle.logPageView("Catering Account Costumer Login",{origin:ht,url:V,pageTitle:this.document.title})}viewResetPassword(){if(typeof window>"u"||!window.mParticle?.logPageView)return;const V=window.location.href;window.mParticle.logPageView("Catering Account Customer Password Reset",{origin:ht,url:V,pageTitle:this.document.title})}addToCart(V,Pt,$t){if(typeof window>"u"||!window.mParticle?.eCommerce?.createProduct||!V||!Pt||!$t)return;let Lt=Pt.price;this.productModulePipe.transform(Pt)?.map(Dt=>{Lt+=Dt.price});const Tt=window.mParticle.eCommerce.createProduct(Pt.productDisplayName,`${Pt.id}`,Lt,$t),$=V.ui.total+Lt*$t,pt=Math.floor(.2*$*100)/100;window.mParticle.eCommerce.logProductAction(window.mParticle.ProductActionType.AddToCart,[Tt],this.getMerchantInfo(),null,{Id:V.ui.id,Revenue:$||.01,Tax:pt})}removeFromCart(V,Pt,$t){if(typeof window>"u"||!window.mParticle?.eCommerce?.createProduct||!V||!Pt||!$t)return;let Lt=Pt.price;this.productModulePipe.transform(Pt)?.map(Dt=>{Lt+=Dt.price});const Tt=window.mParticle.eCommerce.createProduct(Pt.productDisplayName,`${Pt.id}`,Lt,$t),$=V.ui.total-Lt*$t,pt=Math.floor(.2*$*100)/100;window.mParticle.eCommerce.logProductAction(window.mParticle.ProductActionType.RemoveFromCart,[Tt],this.getMerchantInfo(),null,{Id:V.ui.id,Revenue:$||.01,Tax:pt})}purchase(V){var Pt=this;return(0,o.Z)(function*(){typeof window>"u"||!window.mParticle?.eCommerce?.createProduct||!V||(yield new Promise($t=>{Pt.basketQuery.selectLoading().pipe((0,f.h)(Lt=>!1===Lt),(0,t.q)(1)).subscribe((0,o.Z)(function*(){const Lt={};Object.values(Pt.basketQuery.getValue().products).forEach(mt=>{if((0,y.d0)(mt)){const{product:yt}=mt;return Lt[yt.id]=yt.productDisplayName,void(mt.moduleLines?.length&&Object.values(mt.moduleLines).forEach(ee=>{const{product:B}=ee;Lt[B.id]=B.productDisplayName}))}Object.values(mt).forEach(yt=>{const{product:ee}=yt;Lt[ee.id]=ee.productDisplayName,yt.moduleLines?.length&&Object.values(yt.moduleLines).forEach(B=>{const{product:At}=B;Lt[At.id]=At.productDisplayName})})});const Jt=Pt.basketQuery.getValue().ui,Tt=[];Jt.products.map(mt=>{const ee=window.mParticle.eCommerce.createProduct(Lt[mt.productId],`${mt.productId}`,mt.price,mt.quantity);Tt.push(ee),mt.moduleLines?.forEach(B=>{const st=window.mParticle.eCommerce.createProduct(Lt[B.productId],`${B.productId}`,B.price,B.quantity);Tt.push(st)})});const pt=Pt.shippingQuery.shipping.price||0,Dt=Jt.total,St=Math.floor(.2*Dt*100)/100;window.mParticle?.eCommerce?.logProductAction(window.mParticle?.ProductActionType?.Purchase,Tt,Pt.getMerchantInfo(),null,{Id:Jt.id,Revenue:Dt,Tax:St,Shipping:`${pt}`}),$t()}))}))})()}setConsentState(V){if(V&&(this.consent=V),typeof window>"u"||!window.mParticle?.Identity?.getCurrentUser||!this.consent)return;const Pt=window.mParticle.Identity.getCurrentUser(),{statistics:$t,marketing:Lt}=this.consent,Jt=window.location.hostname,Tt=`MPID:${Pt.getMPID()}`,$=window.mParticle.Consent.createGDPRConsent($t,Date.now(),"",Jt,Tt),pt=window.mParticle.Consent.createGDPRConsent(Lt,Date.now(),"",Jt,Tt),Dt=window.mParticle.Consent.createConsentState();Dt.addGDPRConsentState("statistics",$),Dt.addGDPRConsentState("marketing",pt),Pt.setConsentState(Dt)}identityCallback(V){V.getUser()&&this.setConsentState()}getMerchantInfo(){const V=this.contentService.getMerchant(),Pt={origin:ht,store_id:V.id||void 0,store_name:V.name||void 0,store_address:V.address||void 0,store_brand:V.brand||void 0,store_subbrand:V.subbrand||void 0,store_region:V.region||void 0};if(Pt.store_brand)switch(Pt.store_brand.toLowerCase()){case zt.SPAR.toLowerCase():Pt.store_brand=zt.SPAR;break;case zt.MENY.toLowerCase():Pt.store_brand=zt.MENY;break;case zt.MK.toLowerCase():Pt.store_brand=zt.MK;break;default:Pt.store_brand=void 0}if(Pt.store_subbrand)switch(Pt.store_subbrand.toLowerCase()){case Ct.MENY_BIG.toLowerCase():Pt.store_subbrand=Ct.MENY_BIG;break;case Ct.MENY_SMALL.toLowerCase():Pt.store_subbrand=Ct.MENY_SMALL;break;case Ct.MENY_GOURMET.toLowerCase():Pt.store_subbrand=Ct.MENY_GOURMET;break;case Ct.SPAR.toLowerCase():Pt.store_subbrand=Ct.SPAR;break;case Ct.MK.toLowerCase():Pt.store_subbrand=Ct.MK;break;default:Pt.store_subbrand=void 0}if(Pt.store_region)switch(Pt.store_region.toLowerCase()){case H.HOVEDSTADEN.toLowerCase():Pt.store_region=H.HOVEDSTADEN;break;case H.MIDTJYLLAND.toLowerCase():Pt.store_region=H.MIDTJYLLAND;break;case H.NORDJYLLAND.toLowerCase():Pt.store_region=H.NORDJYLLAND;break;case H.SJAELLAND.toLowerCase():Pt.store_region=H.SJAELLAND;break;case H.SYDDANMARK.toLowerCase():Pt.store_region=H.SYDDANMARK;break;default:Pt.store_region=void 0}return Pt}static#t=this.\u0275fac=function(Pt){return new(Pt||F)(G.LFG(e.K0),G.LFG(G.FYo),G.LFG(U._s),G.LFG(lt.C),G.LFG(ut.Ns),G.LFG(Ht.VG),G.LFG(Ht.Nk),G.LFG(A.e8),G.LFG(xt.ki))};static#e=this.\u0275prov=G.Yz7({token:F,factory:F.\u0275fac})}return F})();const z=(F,rt,V,Pt,$t,Lt,Jt,Tt,$)=>{const{type:pt}=V.getMerchant();return!O.environment.analytics||pt!==y.Pc.MIN_KOBMAND&&pt!==y.Pc.SPAR&&pt!==y.Pc.MENY?null:new J(F,rt,V,Pt,$t,Lt,Jt,Tt,$)}},2357:(Je,Rt,c)=>{"use strict";c.d(Rt,{J1:()=>t,MA:()=>f});var o=c(6814),e=c(5879),g=c(8712);const x={GASTROLUX:165};let f=(()=>{class y{constructor(G,U,lt){this.doc=G,this.rendererFactory=U,this.contentService=lt,this.renderer=this.rendererFactory.createRenderer(null,null),this.setSalesIQ()}setSalesIQ(){this.installSalesIQ()}installSalesIQ(){const G=this.doc.getElementsByTagName("head")[0],U=this.renderer.createElement("script");U.innerHTML="window.$zoho=window.$zoho || {};$zoho.salesiq=$zoho.salesiq||{ready:function(){}}",G.appendChild(U);const lt=this.renderer.createElement("script");lt.src="https://salesiq.zohopublic.eu/widget?wc=siq376ddf7844bdce27ea78f28188e30214fde447b721c4f26514f30b9c73e9910e",lt.id="zsiqscript",lt.defer=!0,G.appendChild(lt)}static#t=this.\u0275fac=function(U){return new(U||y)(e.LFG(o.K0),e.LFG(e.FYo),e.LFG(g._s))};static#e=this.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac})}return y})();const t=(y,O,G)=>{const U=G.getMerchantId();return Object.values(x).includes(U)?new f(y,O,G):null}},4222:(Je,Rt,c)=>{"use strict";c.d(Rt,{sk:()=>vt,e8:()=>_,aQ:()=>gt,Ed:()=>j});var o=c(5879);const e=new o.OlP("JWT_OPTIONS");let g=(()=>{class zt{constructor(H=null){this.tokenGetter=H&&H.tokenGetter||function(){}}urlBase64Decode(H){let J=H.replace(/-/g,"+").replace(/_/g,"/");switch(J.length%4){case 0:break;case 2:J+="==";break;case 3:J+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(J)}b64decode(H){let z="";if((H=String(H).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let rt,V,F=0,Pt=0;V=H.charAt(Pt++);~V&&(rt=F%4?64*rt+V:V,F++%4)?z+=String.fromCharCode(255&rt>>(-2*F&6)):0)V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(V);return z}b64DecodeUnicode(H){return decodeURIComponent(Array.prototype.map.call(this.b64decode(H),J=>"%"+("00"+J.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(H=this.tokenGetter()){return H instanceof Promise?H.then(J=>this._decodeToken(J)):this._decodeToken(H)}_decodeToken(H){if(!H||""===H)return null;const J=H.split(".");if(3!==J.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const z=this.urlBase64Decode(J[1]);if(!z)throw new Error("Cannot decode the token.");return JSON.parse(z)}getTokenExpirationDate(H=this.tokenGetter()){return H instanceof Promise?H.then(J=>this._getTokenExpirationDate(J)):this._getTokenExpirationDate(H)}_getTokenExpirationDate(H){let J;if(J=this.decodeToken(H),!J||!J.hasOwnProperty("exp"))return null;const z=new Date(0);return z.setUTCSeconds(J.exp),z}isTokenExpired(H=this.tokenGetter(),J){return H instanceof Promise?H.then(z=>this._isTokenExpired(z,J)):this._isTokenExpired(H,J)}_isTokenExpired(H,J){if(!H||""===H)return!0;const z=this.getTokenExpirationDate(H);return J=J||0,null!==z&&!(z.valueOf()>(new Date).valueOf()+1e3*J)}getAuthScheme(H,J){return"function"==typeof H?H(J):H}}return zt.\u0275fac=function(H){return new(H||zt)(o.LFG(e))},zt.\u0275prov=o.Yz7({token:zt,factory:zt.\u0275fac}),zt})();var R=c(5619),f=c(8504),t=c(2096),y=c(2181),O=c(8180),G=c(6306),U=c(9769),lt=c(7398),ut=c(6093),Ht=c(7299),A=c(9862),xt=c(8712),tt=c(2939);const ct="bearer";let _=(()=>{class zt{constructor(H,J,z){this.http=H,this.contentService=J,this.snackBar=z,this.authEndpoint=`${Ht.environment.apiOrigin}/Auth/member/token`,this.refreshEndpoint=`${Ht.environment.apiOrigin}/Auth/member/refresh`,this.memberEndpoint=`${Ht.environment.apiOrigin}/Member`,this.passwordTokenEndpoint=`${Ht.environment.apiOrigin}/Member/token`,this.updatePasswordEndpoint=`${Ht.environment.apiOrigin}/Member/update`,this.refreshKey="refresh",this.customerKey="customer",this.jwtHelper=new g,this.logoutMessage={delay:400,duration:1e4},this.member=new R.X(null),this.isAuthenticated=new R.X(!1),this.contentService.loaded.pipe((0,y.h)(F=>F),(0,O.q)(1)).subscribe(()=>{const F=this.contentService.getDefault("account");this.logoutMessage={text:F.get("loggedOutText"),closeButton:F.get("loggedOutCloseButtonText"),...this.logoutMessage}})}load(){return new Promise(H=>{this.authenticate()?(this.isAuthenticated.next(!0),this.loadMember(!0).subscribe(()=>{H()})):H()})}tokenGetter(){return typeof window>"u"?"":localStorage.getItem(ct)}authenticate(){const H=this.tokenGetter(),J=!this.jwtHelper.isTokenExpired(H);return this.isAuthenticated.next(J),J}isLoggedIn(){return!!this.member.value?.user}login(H){return this.http.post(this.authEndpoint,H).pipe((0,G.K)(J=>{401===J.status&&this.logout();const z=J?.error||J;return(0,f._)(()=>z)}),(0,U.z)(J=>{const{auth:z}=J;return z?(localStorage.setItem(ct,z.access_token),localStorage.setItem(this.refreshKey,z.refresh_token),this.isAuthenticated.next(!0),this.loadMember(!1)):(0,t.of)(null)}))}resetPassword(H){const J=this.contentService.getMerchantId();this.http.post(this.passwordTokenEndpoint,{merchantId:J,username:H}).subscribe()}updatePassword(H,J){const z=this.contentService.getMerchantId();return this.http.post(this.updatePasswordEndpoint,{merchantId:z,token:H,password:J})}selectCustomer(H){const J=this.member.value;this.hasAssistant(J)&&(J.user.customer=H,localStorage.setItem(this.customerKey,`${H.id}`),this.member.next(J))}refresh(){if(typeof window>"u")return;const H=localStorage.getItem(this.refreshKey);H&&this.http.post(this.refreshEndpoint,{refresh_token:H}).subscribe(z=>{z&&(localStorage.setItem(ct,z.access_token),localStorage.setItem(this.refreshKey,z.refresh_token),this.isAuthenticated.next(!0))})}logout(H=!1){const J=!!this.member.value;localStorage.removeItem(ct),localStorage.removeItem(this.refreshKey),localStorage.removeItem(this.customerKey),this.isAuthenticated.next(!1),this.member.next(null),H&&J&&setTimeout(()=>{this.showLoggedOutMessage()},this.logoutMessage.delay)}hasCustomer(H){return H?.user?.userType===ut.FW.Customer}hasAssistant(H){return H?.user?.userType===ut.FW.Assistant}getCustomerDetails(H){return H?this.hasAssistant(H)?H.user.customer:H.user:null}getPaymentDetails(H){if(!H)return null;let J;return J=this.hasAssistant(H)?{memberAssistantId:H.user.id,memberId:H.user.customer.id}:{memberId:H.user.id},J}loadMember(H){const J=this.contentService.getMerchantId();return this.http.get(this.memberEndpoint,{params:{MerchantId:J}}).pipe((0,G.K)(z=>{if(this.logout(),H)return null;const F=z?.error||z;return(0,f._)(()=>F)}),(0,lt.U)(z=>{if(!z?.user)return this.logout(),null;if(z.user=this.toLowerKeys(z.user),z.key=this.getAccountKey(z.id,this.contentService.getMerchantId()),H&&this.hasAssistant(z)){const F=localStorage.getItem(this.customerKey);if(!F)return void this.logout();const rt=z.user.customers.find(V=>V.id===+F);if(!rt)return void this.logout();z.user.customer=rt}return this.member.next(z),z}))}getAccountKey(H,J){return`${J}-${H}`}toLowerKeys(H){return Object.keys(H).reduce((J,z)=>(J[z.charAt(0).toLowerCase()+z.slice(1)]=H[z],J),{})}showLoggedOutMessage(){const{duration:H,text:J,closeButton:z}=this.logoutMessage;this.snackBar.open(J,z,{duration:H,panelClass:"info"})}static#t=this.\u0275fac=function(J){return new(J||zt)(o.LFG(A.eN),o.LFG(xt._s),o.LFG(tt.ux))};static#e=this.\u0275prov=o.Yz7({token:zt,factory:zt.\u0275fac,providedIn:"root"})}return zt})();const j=zt=>()=>zt.load();let vt=(()=>{class zt{constructor(H){this.authService=H,this.apiUrl=Ht.environment.apiOrigin}intercept(H,J){return H.url.startsWith(this.apiUrl)&&this.authService.isAuthenticated.value&&(H=H.clone({setHeaders:{Authorization:`Bearer ${this.authService.tokenGetter()}`}})),J.handle(H)}static#t=this.\u0275fac=function(J){return new(J||zt)(o.LFG(_))};static#e=this.\u0275prov=o.Yz7({token:zt,factory:zt.\u0275fac})}return zt})(),gt=(()=>{class zt{constructor(H){this.authService=H}intercept(H,J){return J.handle(H).pipe((0,G.K)(z=>(z.error instanceof Error?console.error("An error occurred:",z.error.message):(401===z.status&&this.authService.isLoggedIn()&&(this.authService.authenticate()||(alert("Dit login er l\xf8bet ud, pr\xf8ver at logge ind igen."),this.authService.refresh())),z.status>=500&&console.error(`Backend returned code ${z.status}, body was:`,z)),(0,f._)(()=>z))))}static#t=this.\u0275fac=function(J){return new(J||zt)(o.LFG(_))};static#e=this.\u0275prov=o.Yz7({token:zt,factory:zt.\u0275fac})}return zt})()},5189:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>l});var o=c(5914),e=c(6093),g=c(5879),x=c(4403);let l=(()=>{class i extends o.AE{constructor(f){super(f),this.store=f,this.selectUI$=this.select(t=>t.ui),this.selectOpen$=this.select(t=>t.ui.overlayOpen),this.selectTotal$=this.select(t=>t.ui.total),this.selectLinesTotal$=this.select(t=>t.ui.linesTotal),this.selectDiscount$=this.select(t=>t.ui.discount),this.selectProducts$=this.select(t=>t.products),this.selectProductLines$=this.select(t=>t.ui.products),this.selectPackagingPrice$=this.select(t=>t.ui.packaging),this.selectDiscountCode$=this.select(t=>t.ui.discountCode),this.selectDiscountCodeAlreadyUsed$=this.select(t=>t.ui.discountCodeAlreadyUsed),this.selectGiftCardCode$=this.select(t=>t.ui.giftCardCode),this.selectGiftCardDiscount$=this.select(t=>t.ui.giftCardDiscount),this.selectRemainingGiftCardValue$=this.select(t=>t.ui.remainingGiftCardValue),this.selectContainsAlcohol$=this.select(t=>t.ui.containsAlcohol),this.selectErrorProductIds$=this.select(t=>[...new Set(t.ui.errors.filter(y=>y.entityType===e.py.Product).map(y=>y.entityIds).flat())]),this.selectErrors$=this.select(t=>t.ui.errors)}getProducts(){return this.getValue().products}getLineId(){return this.getValue().lineId}getTotal(){return this.getValue().ui.total}getLinesTotal(){return this.getValue().ui.linesTotal}getProductLines(){return this.getValue().ui.products}getErrorProductIds(){return[...new Set(this.getValue().ui.errors.filter(f=>f.entityType===e.py.Product).map(f=>f.entityIds).flat())]}getErrors(){return this.getValue().ui.errors}static#t=this.\u0275fac=function(t){return new(t||i)(g.LFG(x.O5))};static#e=this.\u0275prov=g.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})()},4403:(Je,Rt,c)=>{"use strict";c.d(Rt,{I2:()=>R,O5:()=>f,uG:()=>i});var o=c(655),e=c(5914),g=c(6093),x=c(4004),l=c(5879);const i={lineId:2,products:{},ui:{id:void 0,total:0,linesTotal:0,discount:0,packaging:0,discountCode:void 0,discountCodeAlreadyUsed:!1,products:[],overlayOpen:!1,openShippingDialog:!0,containsAlcohol:!1,errors:[],giftCardCode:void 0,giftCardDiscount:0,remainingGiftCardValue:0}},R=[g.Pc.FANDANKO];let f=class Pu extends e.yh{constructor(){super({...i,ui:{...i.ui,id:(0,x.Z)()}})}static#t=this.\u0275fac=function(O){return new(O||Pu)};static#e=this.\u0275prov=l.Yz7({token:Pu,factory:Pu.\u0275fac,providedIn:"root"})};f=(0,o.gn)([(0,e.yC)({name:"basket",cache:{ttl:864e5}})],f)},7890:(Je,Rt,c)=>{"use strict";c.d(Rt,{Ns:()=>o.N,vD:()=>Jt,uG:()=>gt.uG});var o=c(5189),e=c(9671),g=c(655),x=c(5914),l=c(8645),i=c(7394),R=c(6321),f=c(4825);function t(Tt=0,$=R.z){return Tt<0&&(Tt=0),(0,f.H)(Tt,Tt,$)}var y=c(2096),O=c(4036),G=c(9360),U=c(2420),lt=c(8251),ut=c(4829);function Ht(Tt){return(0,G.e)(($,pt)=>{let Dt=!1,St=null,mt=null;const yt=()=>{if(mt?.unsubscribe(),mt=null,Dt){Dt=!1;const ee=St;St=null,pt.next(ee)}};$.subscribe((0,lt.x)(pt,ee=>{mt?.unsubscribe(),Dt=!0,St=ee,mt=(0,lt.x)(pt,yt,U.Z),(0,ut.Xf)(Tt(ee)).subscribe(mt)},()=>{yt(),pt.complete()},void 0,()=>{St=mt=null}))})}var A=c(8075),xt=c(6306),tt=c(2181),ct=c(7398),_=c(6093),j=c(3212),q=c(125),ht=c(7299),vt=c(4004),gt=c(4403),zt=c(5879),Ct=c(8712),H=c(9259),J=c(2365),z=c(5954),F=c(9862),rt=c(1952),V=c(4222),Pt=c(120),$t=c(2939),Lt=c(1904);class Jt{constructor($,pt,Dt,St,mt,yt,ee,B,At,st,ie,Ae){this.contentService=$,this.basketStore=pt,this.basketQuery=Dt,this.shippingService=St,this.shippingQuery=mt,this.customerDetailsQuery=yt,this.http=ee,this.dialogService=B,this.authService=At,this.gtmService=st,this.snackBar=ie,this.mParticle=Ae,this.basketEndpoint=`${ht.environment.apiOrigin}/Basket/Calculate`,this.discountEndpoint=`${ht.environment.apiOrigin}/DiscountCodes/Validate`,this.discountEmailEndpoint=`${ht.environment.apiOrigin}/DiscountCodes/ValidateEmail`,this.basketChanges=new l.x,this.calculateRequest=!1,this.flush=!1;const en=this.contentService.getDefault("basketShipping");this.errorMessage={closeButton:en.get("errorCloseButtonText")||"Luk"},this.subscription=new i.w0,this.customerPackaging=this.customerDetailsQuery.getCustomerPackaging(),this.subscription.add(this.basketChanges.pipe(Ht(()=>this.calculateRequest?(0,y.of)({}):t(500))).subscribe(()=>{this.calculateRequest=!1;const jt=this.basketQuery.getValue().products;if(Object.values(jt).length<1)return void this.resetBasket(!1);this.basketStore.setLoading(!0);const ft=[];for(const me of Object.values(jt))if((0,_.d0)(me)){const{changes:De,product:tn,...gn}=me;ft.push(gn)}else for(const De of Object.values(me)){const{changes:tn,product:gn,...Xe}=De;ft.push(Xe)}let Gt;if(this.shippingService.getShippingValid()?.value){const{shippingType:me,date:De,time:tn,price:gn,address:Xe,zipCode:rn,city:re,isWolt:ue}=this.shippingQuery.shipping;Gt={shippingType:me,deliveryDate:De.toISOString(),deliveryTime:tn?.period,price:gn,address:Xe,zipCode:rn,city:re,isWolt:ue}}const Ce={merchantId:this.contentService.getMerchantId(),orderlines:ft,shipping:Gt,discountCode:this.basketQuery.getValue().ui.discountCode,customerPackaging:this.customerPackaging},ve=this.basketQuery.getValue().ui.giftCardCode;ve&&this.validateGiftCardCode(ve)&&(Ce.giftCardToken=ve),this.authService.isLoggedIn()&&(Ce.customerId=this.authService.getCustomerDetails(this.authService.member.value).id),this.http.post(this.basketEndpoint,Ce).pipe((0,A.X)({count:5,delay:1e3}),(0,xt.K)(me=>{throw console.error(me),me})).subscribe({next:me=>{if(this.flush)return void(this.flush=!1);const{orderTotal:De,linesTotal:tn,codeDiscount:gn,orderlines:Xe,packaging:rn,containsAlcohol:re,errors:ue,giftCardDiscount:Ft,remainingGiftCardValue:be}=me,qt=ue.find(Te=>Te.entityType===_.py.Price);this.shippingService.updateShippingPrice(me.shippingPrice,qt?.price||0),ue?.length&&!this.basketQuery.getValue().ui.openShippingDialog&&this.displayError(ue[0].errorMessage),this.updateBasket(Xe,De,tn,gn,rn.cost,re,ue,Ft,be)},error:me=>{this.resetBasket()}})}));const In=this.basketStore.getValue().products;Object.getOwnPropertyNames(In).length>0&&this.basketChanges.next(),this.contentService.getMerchant().enableGoToBasketDialog&&this.subscription.add(this.basketChanges.pipe((0,tt.h)(jt=>!!jt),Ht(()=>t(2e3))).subscribe(()=>{this.dialogService.openGoToBasketDialog()}))}ngOnDestroy(){this.subscription.unsubscribe()}updateBasket($,pt,Dt,St,mt,yt,ee,B,At){this.basketStore.update(ie=>({...ie,ui:{...ie.ui,total:pt,linesTotal:Dt,discount:St,products:$,packaging:mt,containsAlcohol:yt,errors:ee||[],giftCardDiscount:B,remainingGiftCardValue:At}})),this.basketStore.setLoading(!1);const st=this.basketQuery.getValue().ui;if(st.openShippingDialog){const ie=this.contentService.getMerchant().type;if(gt.I2.includes(ie))return void this.basketStore.update({ui:{...st,openShippingDialog:!1}});this.dialogService.openShippingDialog()}}calculateBasket(){this.calculateRequest=!0,this.basketChanges.next()}displayError($){const{closeButton:pt}=this.errorMessage;this.snackBar.open($,pt,{duration:8e3,panelClass:"info"})}getProductObservable($){const{productId:pt,lineId:Dt}=$;return this.basketQuery.selectProducts$.pipe((0,ct.U)(St=>{let mt;const yt=St[pt];return yt&&((0,_.d0)(yt)?mt=yt.product:Dt&&(mt=yt[Dt]?.product)),mt}))}getProduct($){const{productId:pt,lineId:Dt}=$;let mt;const yt=this.basketQuery.getProducts()[pt];return yt&&((0,_.d0)(yt)?mt=yt.product:Dt&&(mt=yt[Dt]?.product)),mt}addProduct($,pt=1,Dt){let St;if(this.basketStore.setLoading(!0),this.basketStore.update(mt=>{const yt={...mt.products},{id:ee}=$;if(this.mParticle?.addToCart(mt,$,pt),this.gtmService?.clearEcommerce(),this.gtmService?.addToCart($,pt),this.isProductComposition($)){const At=this.addCompositeProduct(mt,ee,pt,$,yt);return St=At.line,At.state}const B=this.addSimpleProduct(mt,ee,pt,$,yt);return St=B.line,B.state}),$.shippings?.length>0&&!this.shippingService.getShippingValid().value){const mt=this.shippingService.getShippingOptions(),yt=$.shippings.find(ee=>mt.find(B=>B.id===ee.shippingId));yt&&this.shippingService.saveShippingId(yt.shippingId)}return this.basketChanges.next(Dt),St}addGiftCard($,pt=1){this.basketStore.setLoading(!0);let Dt=`Gavekort til ${$.recipientName}`;$.type===j.W.Punch&&(Dt=`Klippekort med ${$.charges} klip til ${$.recipientName}`);const St={id:0,productDisplayName:Dt,productUrl:ht.environment.urls.gift_card,price:$.value,originalPrice:$.value,forSale:!0,imageUrls:void 0,primaryCategoryId:void 0,categories:void 0,minCount:0,allergens:void 0,shippings:void 0,productDeliveryLimit:void 0,alcoholPercent:0,productCategoryTags:void 0,productDisplayTitle:void 0,productPageTitle:void 0,productPageDescription:void 0,productDescription:void 0,productModules:void 0,productAdditions:void 0,pdfUrls:void 0,displayPdfUrls:!1,moduleChoices:void 0,discountLevels:void 0,productType:_.V7.Catering,onlineProductLinksName:void 0,onlineProductLinks:void 0,onlineImageStyle:void 0};let mt;return this.basketStore.update(yt=>{const ee={...yt.products};this.mParticle?.addToCart(yt,St,pt),this.gtmService?.clearEcommerce(),this.gtmService?.addToCart(St,pt);const B=this.addCompositeProduct(yt,St.id,pt,St,ee);return mt=B.line,mt.giftCardInfo=$,B.state}),this.basketChanges.next(!1),mt}removeProduct($,pt=1){let Dt;return this.basketStore.setLoading(!0),this.basketStore.update(St=>{const mt=JSON.parse(JSON.stringify(St.products)),{id:yt}=$;if(this.mParticle?.removeFromCart(St,$,pt),this.isProductComposition($)){const B=this.removeCompositeProduct(St,yt,pt,$,mt);return Dt=B.line,B.state}const ee=this.removeSimpleProduct(St,yt,pt,$,mt);return Dt=ee.line,ee.state}),this.basketChanges.next(),Dt}deleteProduct($){this.basketStore.setLoading(!0),this.basketStore.update(pt=>{const Dt=JSON.parse(JSON.stringify(pt.products)),{id:St,lineId:mt}=$;return this.mParticle?.removeFromCart(pt,$,Dt[St].quantity),(0,_.e9)(Dt[St])?this.deleteCompositeProduct(pt,St,Dt,mt):this.deleteSimpleProduct(pt,St,Dt)}),this.basketChanges.next()}resetBasket($=!0){this.basketStore.update({...gt.uG,ui:{...gt.uG.ui,id:(0,vt.Z)()}}),this.basketStore.setLoading(!1),this.basketQuery.getValue().loading&&(this.flush=!0),$&&this.shippingService.resetShipping()}setOverlay($){this.basketStore.update(pt=>({...pt,ui:{...pt.ui,overlayOpen:$}}))}addDiscountCode($){var pt=this;return(0,e.Z)(function*(){const Dt=pt.contentService.getMerchantId(),St=yield(0,O.z)(pt.http.get(pt.discountEndpoint,{params:{merchantId:Dt,discountCode:$}}));return St?.valid&&pt.basketStore.update(mt=>({...mt,ui:{...mt.ui,discountCode:$,discountCodeAlreadyUsed:!1}})),pt.basketChanges.next(),!!St?.valid})()}validateDiscountCode(){var $=this;return(0,e.Z)(function*(){const pt=$.basketStore.getValue().ui.discountCode,Dt=$.contentService.getMerchantId(),St=$.customerDetailsQuery.getCustomerDetails().payment.email;if(!pt||!Dt||!St)return!1;const mt=yield(0,O.z)($.http.get($.discountEmailEndpoint,{params:{merchantId:Dt,discountCode:pt,email:St}}));return mt?.valid||($.basketStore.update(yt=>({...yt,ui:{...yt.ui,discountCode:void 0,discountCodeAlreadyUsed:!0}})),$.basketChanges.next()),!!mt?.valid})()}getDiscountForm($){return(0,q.zN)({discountCode:$},{updateOn:"submit"})}getPromotionForm($){return(0,q.zN)({promotionCode:$},{updateOn:"submit"})}addGiftcardCode($){return this.basketStore.update(pt=>({...pt,ui:{...pt.ui,giftCardCode:$}})),this.basketChanges.next(),this.validateGiftCardCode($)}getGiftCardForm($){return(0,q.zN)({giftCardCode:$},{updateOn:"submit"})}validateGiftCardCode($){return $&&/^G-[A-Za-z0-9\xe6\xf8\xe5\xc6\xd8\xc5]*$/.test($)}addSimpleProduct($,pt,Dt,St,mt){const yt=mt[pt];if(yt)mt[pt]={...mt[pt],product:St,quantity:yt.quantity+Dt};else{const ee=this.createProductLine(St,Dt);mt[pt]=ee}return{state:{...$,products:mt},line:mt[pt]}}addCompositeProduct($,pt,Dt,St,mt){let{lineId:yt}=St;const ee=St.moduleChoices;let B=mt[pt];if(B||(mt[pt]={},B=mt[pt]),B={...B},B[yt])B[yt]={...B[yt],quantity:Dt+=B[yt].quantity};else{const At=this.createProductLine(St,Dt,ee);yt=At.lineId,B[yt]=At}return mt[pt]=B,{state:{...$,lineId:yt>$.lineId?yt+1:$.lineId,products:mt},line:B[yt]}}removeSimpleProduct($,pt,Dt,St,mt){const yt=mt[pt];if(St.minCount&&St.minCount>yt.quantity-Dt)return{state:$,line:yt};let B,ee=!1;return yt&&yt.quantity<=Dt?(ee=!0,delete mt[pt]):mt[pt]=this.createProductLine(St,Dt=yt.quantity-Dt),ee||(B=mt[pt]),{state:{...$,products:mt},line:B}}removeCompositeProduct($,pt,Dt,St,mt){const{lineId:yt}=St,ee=mt[pt];let At,B=!1;if(ee){if(Dt=ee[yt].quantity-Dt,St.minCount&&St.minCount>Dt)return{state:$,line:ee[yt]};Object.keys(ee).length<2&&Dt<=0?(B=!0,delete mt[pt]):Dt<=0?(B=!0,delete ee[yt]):ee[yt]={...ee[yt],quantity:Dt}}return ee&&!B&&(At=ee[yt]),{state:{...$,products:mt},line:At}}deleteSimpleProduct($,pt,Dt){const St=[...$.ui.products],mt=St.findIndex(yt=>yt.productId===pt);return delete Dt[pt],mt>-1&&St.splice(mt,1),{...$,products:Dt,ui:{...$.ui,products:St}}}deleteCompositeProduct($,pt,Dt,St){const mt=[...$.ui.products],yt=mt.findIndex(B=>B.lineId===St);yt>-1&&mt.splice(yt,1);const ee=Dt[pt];return ee&&Object.keys(ee).length<2?delete Dt[pt]:delete ee[St],{...$,products:Dt,ui:{...$.ui,products:mt}}}createProductLine($,pt,Dt){$=JSON.parse(JSON.stringify($));const{id:St,price:mt}=$,yt=[];if(Dt)for(const At of Object.values(Dt))for(const st of Object.values(At?.products)){const ie=this.createProductLine(st,st.quantity);yt.push(ie)}const ee=Dt&&0===Object.keys(Dt).length?1:this.lineIdCounter();return $.lineId=ee,{lineId:ee,productId:St,price:mt,discount:0,moduleLines:yt,quantity:pt,product:$}}isProductComposition($){const pt=$.productModules;return $?.hasModules||pt?.length>0}lineIdCounter(){return this.basketQuery.getLineId()+1}static#t=this.\u0275fac=function(pt){return new(pt||Jt)(zt.LFG(Ct._s),zt.LFG(gt.O5),zt.LFG(o.N),zt.LFG(H.N),zt.LFG(J.V),zt.LFG(z.uv),zt.LFG(F.eN),zt.LFG(rt.x),zt.LFG(V.e8),zt.LFG(Pt.b),zt.LFG($t.ux),zt.LFG(Lt.p$,8))};static#e=this.\u0275prov=zt.Yz7({token:Jt,factory:Jt.\u0275fac,providedIn:"root"})}(0,g.gn)([(0,x.PS)()],Jt.prototype,"updateBasket",null)},3902:(Je,Rt,c)=>{"use strict";c.d(Rt,{H:()=>ut,t:()=>Ht});var o=c(7394),e=c(5619),g=c(2572),x=c(4036),l=c(2181),i=c(7398),R=c(8180),f=c(9372),t=c(6093),y=c(7299),O=c(5879),G=c(9862),U=c(2787),lt=c(8712);let ut=(()=>{class A{constructor(tt,ct,_,j){this.http=tt,this.activatedRoute=ct,this.router=_,this.contentService=j,this.contentEndpoint=`${y.environment.apiOrigin}/Category/nested`,this.productsUrl=`/${y.environment.urls.products}`,this.subscription=new o.w0,this.categories=new e.X(void 0),this.flatCategories=new e.X(void 0),this.frontpage=new e.X(void 0),this.mode=new e.X(void 0),this.selectedSubject=new e.X(new Set),this.selected=(0,g.a)([this.selectedSubject.asObservable(),this.categories.pipe((0,l.h)(q=>q?.length>0))]).pipe((0,i.U)(([q,ht])=>q))}ngOnDestroy(){this.subscription.unsubscribe()}load(){const{id:tt,categoryMode:ct}=this.contentService.getMerchant();return this.mode.next(ct),new Promise((_,j)=>{this.http.get(`${this.contentEndpoint}?merchantId=${tt}`).subscribe({next:q=>{this.frontpage.next(q.filter(ht=>ht.frontPageCategory)),q=this.parseDescriptions(q),q=this.addDepth(q.filter(ht=>ht.frontendDisplay)),this.categories.next(q),this.flatCategories.next(this.flattenCategories(q)),this.mode.value===t.U5.Multiple&&this.setupMultipleEvent(),this.mode.value===t.U5.Single&&(this.setupSingleEvent(),this.selectSubjectSingle({url:this.router.url})),_()},error:q=>{j(q)}})})}setupMultipleEvent(){this.subscription.add(this.activatedRoute.queryParams.pipe((0,l.h)(this.hasCategories)).subscribe(tt=>{this.selectSubjectMultiple(tt)})),this.subscription.add(this.activatedRoute.queryParams.pipe((0,l.h)(tt=>this.selectedSubject.value.size&&!Object.prototype.hasOwnProperty.call(tt,"categories"))).subscribe(()=>{this.selectedSubject.next(new Set)}))}setupSingleEvent(){this.subscription.add(this.router.events.pipe((0,l.h)(f.rF),(0,l.h)(tt=>tt.url.indexOf(y.environment.urls.products)>-1)).subscribe(tt=>{this.selectSubjectSingle(tt)}))}selectSubjectMultiple(tt){const ct="string"==typeof tt.categories?[+tt.categories]:tt.categories.map(_=>+_);this.selectedSubject.next(new Set(ct))}selectSubjectSingle(tt){const ct=tt.url.split("?")[0].split("/").filter(Boolean);let _;if(ct[1]){const j=decodeURI(ct[1]),q=this.getByUrl(j);q&&(this.contentService.setTitle(q.pageTitle||j),this.contentService.setDescription(q.pageDescription),this.contentService.setNoIndex(q.hidden),_=q.id)}this.selectedSubject.next(_?new Set([_]):new Set)}getByName(tt){return t.WD.find(this.categories?.value,ct=>ct.name.toLowerCase()===tt.toLowerCase())}getById(tt){return t.WD.find(this.categories?.value,ct=>ct.id===tt)}getByUrl(tt){return t.WD.find(this.categories?.value,ct=>ct.categoryUrl?ct.categoryUrl.toLowerCase()===tt.toLowerCase():ct.name.replace(/\s/g,"-").toLowerCase()===tt.toLowerCase())}getTree(){return this.categories.pipe((0,l.h)(tt=>void 0!==tt))}getFlat(){return this.flatCategories.pipe((0,l.h)(tt=>void 0!==tt))}getFrontpage(){return this.frontpage.pipe((0,l.h)(tt=>void 0!==tt))}getSelectedCategories(){return(0,x.z)((0,g.a)([this.selectedSubject,this.flatCategories]).pipe((0,l.h)(([tt,ct])=>void 0!==ct),(0,i.U)(([tt,ct])=>{let _=[...tt.values()];return _.length||(_=ct.filter(j=>!j.hidden).map(j=>j.id)),_})))}clickCategory(tt){this.mode.pipe((0,R.q)(1)).subscribe(ct=>{switch(ct){case t.U5.Multiple:this.queryCategory(tt);break;case t.U5.Single:this.selectCategory(tt)}})}queryCategory(tt){const ct=this.selectedSubject.value;ct.has(tt)?ct.delete(tt):ct.add(tt);const _=[...ct.values()];this.router.navigate([`${this.productsUrl}`],{queryParams:{categories:_}})}selectCategory(tt){const ct=this.selectedSubject.value,_=ct.has(tt);if(ct.clear(),_)return void this.router.navigate([`${this.productsUrl}`]);ct.add(tt);const j=this.getById(tt),q=j.categoryUrl||j.name.replace(/\s/g,"-").toLowerCase();this.contentService.setOGImage(j.imageUrl),this.router.navigate([`${this.productsUrl}/${q}`])}getCategoryUrl(tt){const ct=this.getById(tt),_=ct.categoryUrl||ct.name.replace(/\s/g,"-").toLowerCase();return`${this.productsUrl}/${_}`}clearCategories(){const ct={...this.activatedRoute.snapshot.queryParams};delete ct.categories,this.router.navigate([`${this.productsUrl}`],{queryParams:ct})}clearSelectedSubject(){this.selectedSubject.next(new Set)}buildUrl(...tt){if(!tt||!tt.length)return;const ct=[];for(const ht of tt){const vt=this.getById(ht);if(!vt)return void console.warn("Product category not recognized: ",ht);ct.push(vt.id)}return this.router.createUrlTree([`/${y.environment.urls.products}`],{queryParams:{categories:ct}})}addDepth(tt,ct=0){const _=[...tt];for(const j of _)j.depth=ct,j.subCategories&&this.addDepth(j.subCategories,ct+1);return _}parseDescriptions(tt){for(const ct of tt)ct.description&&(ct.description=this.contentService.addImageSource(ct.description),ct.description=this.contentService.addLinkSource(ct.description));return tt}flattenCategories(tt){const ct=[];for(const _ of tt)ct.push(_),_.subCategories&&ct.push(...this.flattenCategories(_.subCategories));return ct}hasCategories(tt){return void 0!==tt?.categories}static#t=this.\u0275fac=function(ct){return new(ct||A)(O.LFG(G.eN),O.LFG(U.gz),O.LFG(U.F0),O.LFG(lt._s))};static#e=this.\u0275prov=O.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})}return A})();const Ht=A=>()=>A.load()},5473:(Je,Rt,c)=>{"use strict";c.d(Rt,{m:()=>i});var o=c(5879),e=c(7299),g=c(2787),x=c(7688);let l=(()=>{class R{constructor(t,y){this.router=t,this.checkoutService=y,this.basketUrl=`/${e.environment.urls.basket}`}canActivateChild(){return!!this.checkoutService.isCheckingOut||(this.router.navigate([this.basketUrl]),!1)}static#t=this.\u0275fac=function(y){return new(y||R)(o.LFG(g.F0),o.LFG(x.Z))};static#e=this.\u0275prov=o.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})();const i=()=>(0,o.f3M)(l).canActivateChild()},7688:(Je,Rt,c)=>{"use strict";c.d(Rt,{Z:()=>_,W:()=>j});var o=c(6676),e=c(4036),g=c(8504),x=c(1374),l=c(6306),i=c(6093),R=c(8086),f=c(7299),t=c(5879),y=c(9862),O=c(2787);let G=(()=>{class q{constructor(vt){this.router=vt}confirm(){this.router.navigate([f.environment.urls.confirmation],{queryParams:{responsecode:"ok"}})}post(vt){window.location.href=vt}static#t=this.\u0275fac=function(gt){return new(gt||q)(t.LFG(O.F0))};static#e=this.\u0275prov=t.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();var U=c(8712),lt=c(1829),ut=c(7890),Ht=c(2365),A=c(2939),xt=c(4222),tt=c(120),ct=c(7350);let _=(()=>{class q{constructor(vt,gt,zt,Ct,H,J,z,F,rt,V){this.http=vt,this.redirectService=gt,this.contentService=zt,this.customerDetailService=Ct,this.basketQuery=H,this.shippingQuery=J,this.snackBar=z,this.authService=F,this.gtmService=rt,this.woltService=V,this.checkoutUrl=`${f.environment.apiOrigin}/Order/CreateAndPrepareOrderForPayment`,this.authorizeUrl=`${f.environment.apiOrigin}/Payment/AuthorizeOrder`,this.woltTrackingUrl=`${f.environment.apiOrigin}/Wolt/TrackingLink`,this.ageVerificationEndpoint=`${f.environment.apiOrigin}/AgeVerification`,this.accountOrderReturnCode=6,this.isCheckingOutValue=!1}load(){this.submitting=!1;const vt=this.contentService.getDefault("basketShipping");this.errorMessage={text:vt.get("errorText")||"Der skete en fejl",closeButton:vt.get("errorCloseButtonText")||"Luk"}}checkout(){if(this.submitting)return;this.submitting=!0;const vt=o().format("HH:mm:ss"),gt=this.basketQuery.getValue().ui,zt=gt.products.map(pt=>({...pt,productName:""})),Ct=gt.total,H=gt.packaging,J=this.shippingQuery.shipping,z=J.date.format("YYYY-MM-DD"),F=this.shippingQuery.eventStore,rt=this.customerDetailService.getForm().getRawValue(),V=rt.payment,Pt=rt.shipping,$t=rt.newsletterConsent,Lt=rt.reclaim,Jt=!!rt.customerPackaging;rt.isBusiness||(V.CVR=null,V.EAN=null,V.companyName=null,V.requisition=null);const Tt=this.authService.getPaymentDetails(this.authService.member.value),$={merchantId:this.contentService.getMerchantId(),newsletterConsent:$t,clientTime:vt,order:{...Tt,customerUserPaymentType:this.paymentType,comment:V.note,orderTotal:Ct,discountTotal:0,packagingTotal:H,cashPayment:this.paymentType===i.pc.Cash,customerPackaging:Jt,CVR:V.CVR,EAN:V.EAN,requisition:V.requisition,discountCode:gt.discountCode,orderlines:zt,billingAddress:{firstName:V.firstName,lastName:V.lastName,email:V.email,phoneNumber:V.telephone.replace(/\s/g,""),addressLine1:V.address,addressLine2:void 0,city:V.city,zip:V.zip,companyName:V.companyName,country:f.environment.i18n.country},orderShipping:{amount:J.price,deliveryDate:z,deliveryTime:J.time.period,shippingAddress:{firstName:Pt.firstName,lastName:Pt.lastName,phoneNumber:Pt.telephone.replace(/\s/g,""),addressLine1:Pt.address,addressLine2:void 0,city:Pt.city,zip:Pt.zip,companyName:Pt.companyName,country:f.environment.i18n.country},shippingId:J.shippingType,isWolt:J.isWolt}}};if($.order.orderShipping.isWolt){const{id:pt,agreedPrice:Dt,lat:St,lon:mt,agreedTime:yt,agreedPickupTime:ee,validUntil:B}=this.woltService.woltDelivery.value;$.order.orderShipping={...$.order.orderShipping,deliveryDate:o(yt).format("YYYY-MM-DD"),deliveryTime:o(yt).format("HH:mm"),woltId:pt,woltAgreedPrice:Dt,woltLat:St,woltLon:mt,woltPickupTime:ee,woltAgreedTime:yt},J.woltUsePriceGroups||($.order.orderShipping.amount=Dt/100);const At=o(),st=o(B);if(At.isAfter(st))return void(0,e.z)(this.handleError({error:{errorMessage:"Wolt levering er udl\xf8bet. G\xe5 tilbage og v\xe6lg et nyt leveringstidspunkt"}}))}this.gtmService?.clearEcommerce(),this.gtmService?.initiateCheckout(),F&&($.order.eventStore=F),gt.giftCardCode&&($.order.giftCardToken=gt.giftCardCode),rt.alternativeReclaimAddress&&Lt&&($.order.reclaimAddress={firstName:void 0,lastName:void 0,phoneNumber:Lt.telephone.replace(/\s/g,""),email:Lt.email,addressLine1:Lt.address,addressLine2:void 0,city:Lt.city,zip:Lt.zip,companyName:void 0,country:f.environment.i18n.country}),this.http.post(this.checkoutUrl,$).pipe((0,x.P)(),(0,l.K)(pt=>this.handleError(pt))).subscribe(pt=>{const{content:Dt}=pt;$.order.orderShipping.isWolt&&(Dt.isWolt=`${$.order.orderShipping.isWolt}`),localStorage.setItem(R.H,JSON.stringify(Dt)),pt.responseCode!==this.accountOrderReturnCode?this.redirectService.post(Dt.redirectUrl):this.redirectService.confirm()})}authorizeOrder(vt,gt){return this.http.post(`${this.authorizeUrl}`,{transactionId:vt,orderId:gt})}doneSubmitting(){this.submitting=!1}getWoltTrackingLink(vt){return this.http.get(`${this.woltTrackingUrl}/${vt}`)}getAgeVerificationUrl(){const vt=this.contentService.getMerchantId();return this.http.get(`${this.ageVerificationEndpoint}/GetUrl?MerchantId=${vt}`)}validateAgeVerificationToken(vt){return this.http.post(`${this.ageVerificationEndpoint}/Validate`,{token:vt})}set isCheckingOut(vt){this.isCheckingOutValue=vt}get isCheckingOut(){return this.isCheckingOutValue}handleError(vt){return this.openSnackBar(vt?.error?.errorMessage),this.doneSubmitting(),(0,g._)(()=>vt)}openSnackBar(vt){const{text:gt,closeButton:zt}=this.errorMessage;this.snackBar.open(vt=`${gt}: ${vt}`,zt,{duration:8e3,panelClass:"warn"})}static#t=this.\u0275fac=function(gt){return new(gt||q)(t.LFG(y.eN),t.LFG(G),t.LFG(U._s),t.LFG(lt.z),t.LFG(ut.Ns),t.LFG(Ht.V),t.LFG(A.ux),t.LFG(xt.e8),t.LFG(tt.b),t.LFG(ct.Nc))};static#e=this.\u0275prov=t.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();const j=q=>()=>q.load()},4641:(Je,Rt,c)=>{"use strict";c.d(Rt,{u:()=>x});var o=c(5914),e=c(5879),g=c(6471);let x=(()=>{class l extends o.AE{constructor(R){super(R),this.store=R,this.selectCustomerDetails$=this.select(f=>f.customerDetails)}getCustomerDetails(){return this.getValue().customerDetails}getCustomerPackaging(){return this.getValue().customerDetails.customerPackaging}static#t=this.\u0275fac=function(f){return new(f||l)(e.LFG(g.A))};static#e=this.\u0275prov=e.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},1829:(Je,Rt,c)=>{"use strict";c.d(Rt,{V:()=>A,z:()=>Ht});var o=c(9671),e=c(655),g=c(6223),x=c(5914),l=c(7394),i=c(5619),R=c(4036),f=c(2181),t=c(6093),y=c(125),O=c(6471),G=c(5879),U=c(8712),lt=c(4641),ut=c(4222);class Ht{constructor(tt,ct,_,j){this.contentService=tt,this.customerDetailStore=ct,this.customerDetailQuery=_,this.authService=j,this.subscription=new l.w0,this.loaded=new i.X(!1)}ngOnDestroy(){this.subscription.unsubscribe()}load(){const tt=this.contentService.getMerchant().enableReclaimAddress;this.initCustomerDetailsForm(),this.subscription.add(this.customerDetailsForm.controls.alternativeShipping.valueChanges.subscribe(ct=>{ct?this.setShippingValidation(this.customerDetailsForm.controls.shipping):(this.removeShippingValidation(this.customerDetailsForm.controls.shipping),this.customerDetailsForm.controls.shipping.setValue({firstName:"",lastName:"",telephone:"",companyName:"",address:"",zip:"",city:""}))})),tt&&this.subscription.add(this.customerDetailsForm.controls.alternativeReclaimAddress.valueChanges.subscribe(ct=>{ct?this.setReclaimValidation(this.customerDetailsForm.controls.reclaim):(this.removeReclaimValidation(this.customerDetailsForm.controls.reclaim),this.customerDetailsForm.controls.reclaim.setValue({email:"",telephone:"",address:"",zip:"",city:""}))})),this.subscription.add(this.customerDetailsForm.valueChanges.subscribe(()=>{const ct=this.customerDetailsForm.getRawValue();this.saveCustomerDetails(ct)})),this.subscription.add(this.authService.member.subscribe(ct=>{this.customerDetailsForm.controls.payment.enable(),this.customerDetailsForm.controls.shipping.enable(),this.customerDetailsForm.controls.alternativeShipping.enable();const _=this.authService.hasAssistant(ct);if(!ct||_&&!this.authService.getCustomerDetails(ct))return void this.customerDetailsForm.controls.shipping.setValue({firstName:"",lastName:"",telephone:"",companyName:"",address:"",zip:"",city:""});const{firstName:j,lastName:q,email:ht,phone:vt,address:gt,zip:zt,city:Ct,companyName:H,cVR:J,eAN:z,requisition:F,lockAddress:rt}=this.authService.getCustomerDetails(ct);this.customerDetailsForm.controls.payment.setValue({firstName:j,lastName:q,email:ht,telephone:vt,companyName:H||"",CVR:J||"",EAN:z||"",requisition:F||"",address:gt,zip:zt,city:Ct,note:""}),(H||J||z||F)&&this.customerDetailsForm.controls.isBusiness.setValue(!0),(rt||_)&&(j&&this.customerDetailsForm.controls.payment.controls.firstName.disable(),q&&this.customerDetailsForm.controls.payment.controls.lastName.disable(),ht&&this.customerDetailsForm.controls.payment.controls.email.disable(),vt&&this.customerDetailsForm.controls.payment.controls.telephone.disable(),gt&&this.customerDetailsForm.controls.payment.controls.address.disable(),zt&&this.customerDetailsForm.controls.payment.controls.zip.disable(),Ct&&this.customerDetailsForm.controls.payment.controls.city.disable(),H&&this.customerDetailsForm.controls.payment.controls.companyName.disable(),J&&this.customerDetailsForm.controls.payment.controls.CVR.disable(),z&&this.customerDetailsForm.controls.payment.controls.EAN.disable(),F&&this.customerDetailsForm.controls.payment.controls.requisition.disable(),this.customerDetailsForm.controls.shipping.disable(),this.customerDetailsForm.controls.alternativeShipping.value=!1,this.customerDetailsForm.controls.alternativeShipping.disable())})),this.loaded.next(!0)}getForm(){return this.customerDetailsForm}getFormAsync(){var tt=this;return(0,o.Z)(function*(){return(0,R.z)(tt.loaded.pipe((0,f.h)(ct=>!0===ct))).then(()=>tt.customerDetailsForm)})()}resetCustomerDetails(){this.contentService.getMerchant().type!==t.Pc.FANDANKO&&(this.customerDetailStore.update(()=>({...O.g})),this.initCustomerDetailsForm())}saveCustomerDetails(tt){this.customerDetailStore.update(ct=>({...ct,customerDetails:tt}))}initCustomerDetailsForm(){let tt=this.customerDetailQuery.getCustomerDetails();this.contentService.getMerchant().enableReclaimAddress&&(tt={...tt,alternativeReclaimAddress:!1,reclaim:{email:"",telephone:"",address:"",zip:"",city:""}});const ct=(0,y.Tg)(tt,{updateOn:"blur"});this.setPaymentValidation(ct.controls.payment),tt.alternativeShipping&&this.setShippingValidation(ct.controls.shipping),tt.alternativeReclaimAddress&&this.setReclaimValidation(ct.controls.reclaim);const j=new y.rV(ct.controls.tradeAgreement.value,{updateOn:"change"});j.setParent(ct),ct.controls.tradeAgreement=j;const ht=new y.rV(ct.controls.alternativeShipping.value,{updateOn:"change"});ht.setParent(ct),ct.controls.alternativeShipping=ht;const gt=new y.rV(ct.controls.customerPackaging.value,{updateOn:"change"});gt.setParent(ct),ct.controls.customerPackaging=gt,void 0===ct.controls.legalAgeConsent&&(ct.controls.legalAgeConsent=new y.rV(!1));const Ct=new y.rV(ct.controls.legalAgeConsent.value,{updateOn:"change"});Ct.setParent(ct),ct.controls.legalAgeConsent=Ct,void 0===ct.controls.isBusiness&&(ct.controls.isBusiness=new y.rV(!1));const J=new y.rV(ct.controls.isBusiness.value,{updateOn:"change"});if(J.setParent(ct),ct.controls.isBusiness=J,ct.controls.payment.controls.CVR.addValidators([this.requiredIfValidator(()=>!!ct.controls.isBusiness.value)]),ct.controls.reclaim){const F=new y.rV(ct.controls.alternativeReclaimAddress.value,{updateOn:"change"});F.setParent(ct),ct.controls.alternativeReclaimAddress=F}ct.controls.tradeAgreement.setValidators([g.kI.requiredTrue]),ct.controls.tradeAgreement.updateValueAndValidity(),this.customerDetailsForm=ct}setPaymentValidation(tt){tt.controls.firstName.setValidators([g.kI.required]),tt.controls.lastName.setValidators([g.kI.required]),tt.controls.email.setValidators([g.kI.required,g.kI.email]),tt.controls.telephone.setValidators([g.kI.required,this.phoneNumberValidator()]),this.contentService.getMerchant().disableAddress||(tt.controls.address.setValidators([g.kI.required]),tt.controls.zip.setValidators([g.kI.required]),tt.controls.city.setValidators([g.kI.required])),tt.controls.EAN?.setValidators([g.kI.minLength(13),g.kI.maxLength(13)]),tt.controls.CVR?.setValidators([g.kI.minLength(8),g.kI.maxLength(8)]);for(const ct of Object.values(tt.controls))ct.updateValueAndValidity();this.subscription.add(tt.controls.companyName?.valueChanges.subscribe(()=>{tt.controls.CVR?.updateValueAndValidity()}))}setShippingValidation(tt){tt.controls.firstName.setValidators([g.kI.required]),tt.controls.lastName.setValidators([g.kI.required]),tt.controls.telephone.setValidators([g.kI.required,this.phoneNumberValidator()]),tt.controls.address.setValidators([g.kI.required]),tt.controls.zip.setValidators([g.kI.required]),tt.controls.city.setValidators([g.kI.required]);for(const ct of Object.values(tt.controls))ct.updateValueAndValidity({emitEvent:!1})}phoneNumberValidator(){return tt=>!tt.value||tt.value?.replace(/\s/g,"")?.match(/^((\+|00)[0-9]+|[0-9]{8})$/)?null:{telephone:!0}}removeShippingValidation(tt){tt.controls.firstName.setValidators(void 0),tt.controls.lastName.setValidators(void 0),tt.controls.telephone.setValidators(void 0),tt.controls.address.setValidators(void 0),tt.controls.zip.setValidators(void 0),tt.controls.city.setValidators(void 0);for(const ct of Object.values(tt.controls))ct.updateValueAndValidity()}setReclaimValidation(tt){tt.controls.email.setValidators([g.kI.email]),tt.controls.address.setValidators([g.kI.required]),tt.controls.zip.setValidators([g.kI.required]),tt.controls.city.setValidators([g.kI.required]);for(const ct of Object.values(tt.controls))ct.updateValueAndValidity()}removeReclaimValidation(tt){tt.controls.email.setValidators(void 0),tt.controls.address.setValidators(void 0),tt.controls.zip.setValidators(void 0),tt.controls.city.setValidators(void 0);for(const ct of Object.values(tt.controls))ct.updateValueAndValidity()}requiredIfValidator(tt){return ct=>ct.parent&&tt()?g.kI.required(ct):null}static#t=this.\u0275fac=function(ct){return new(ct||Ht)(G.LFG(U._s),G.LFG(O.A),G.LFG(lt.u),G.LFG(ut.e8))};static#e=this.\u0275prov=G.Yz7({token:Ht,factory:Ht.\u0275fac,providedIn:"root"})}(0,e.gn)([(0,x.PS)()],Ht.prototype,"resetCustomerDetails",null),(0,e.gn)([(0,x.PS)()],Ht.prototype,"saveCustomerDetails",null);const A=xt=>()=>xt.load()},6471:(Je,Rt,c)=>{"use strict";c.d(Rt,{A:()=>l,g:()=>x});var o=c(655),e=c(5914),g=c(5879);const x={customerDetails:{tradeAgreement:!1,newsletterConsent:!1,alternativeShipping:!1,customerPackaging:!1,legalAgeConsent:!1,isBusiness:!1,payment:{firstName:"",lastName:"",email:"",telephone:"",companyName:"",CVR:"",EAN:"",requisition:"",address:"",zip:"",city:"",note:""},shipping:{firstName:"",lastName:"",telephone:"",companyName:"",address:"",zip:"",city:""}}};let l=class yu extends e.yh{constructor(){super(x)}static#t=this.\u0275fac=function(f){return new(f||yu)};static#e=this.\u0275prov=g.Yz7({token:yu,factory:yu.\u0275fac,providedIn:"root"})};l=(0,o.gn)([(0,e.yC)({name:"customer-details",cache:{ttl:864e5}})],l)},5954:(Je,Rt,c)=>{"use strict";c.d(Rt,{ZY:()=>e.Z,uv:()=>g.u,zc:()=>x.z}),c(5473);var e=c(7688),g=c(4641),x=c(1829);c(6471)},8712:(Je,Rt,c)=>{"use strict";c.d(Rt,{NS:()=>lt,_s:()=>A,ye:()=>ut});var o=c(5515),e=c(5619),g=c(8645),x=c(2572),l=c(1374),i=c(7398),R=c(6093),f=c(7299),t=c(5879),y=c(9862),O=c(6593),G=c(6574),U=c(2787);const lt={header:"nxtHeader",footer:"nxtFooter",richFooter:"nxtFooterRTE",seo:"nxtSeo",sharedContent:"sharedContent",merchantContentFolder:"merchantContentFolder",confirmationAdvertisementFolder:"confirmationAdvertisementFolder",onlineFolder:"onlineFolder",eventStore:"eventShop",errors:"errors"},ut={header:"headerSection",navigation:"navigationSection"};let A=(()=>{class tt{constructor(_,j,q,ht,vt,gt,zt){this.http=_,this.titleService=j,this.metaService=q,this.rendererFactory=ht,this.themeService=vt,this.router=gt,this.contentEndpoint=`${f.environment.apiOrigin}/Content`,this.cmsOrigin=f.environment.cmsOrigin,this.contentUrl=`${f.environment.urls.content.merchant_content}/`,this.mailingListEndpoint=`${f.environment.cmsOrigin}/umbraco/api/mail/GetNewsletterMailingLists`,this.content={},this.defaultContent={},this.requestUrl=typeof window<"u"?window.location.host:zt.headers.host,!f.environment.production&&f.environment.devOrigin&&(this.requestUrl=f.environment.devOrigin),this.renderer=this.rendererFactory.createRenderer(null,null),this.mailingLists=new e.X(void 0),this.loadedSubject=new g.x,this.loaded=this.loadedSubject.asObservable()}getMerchantId(){return this.merchantId}getMerchant(){return this.merchant}getStoreAddress(){if(this.content[lt.header])return this.content[lt.header].get("address")}getRequestUrl(){return this.requestUrl}getTitle(){if(this.content[lt.seo])return this.content[lt.seo].get("websiteTitle")}getDescription(){if(this.content[lt.seo])return this.content[lt.seo].get("websiteDescription")}getFavicon(){if(this.content[lt.seo])return this.content[lt.seo].get("favicon")}getOGImage(){if(this.content[lt.seo])return this.content[lt.seo].get("ogImage")}getDisclaimer(){if(this.content[lt.header])return this.content[lt.header].get("disclaimerContentText")}getMerchantPages(){let _=this.content[ut.navigation];_||(_=new Map);let j=this.content[ut.header];return j||(j=new Map),new Map([..._,...j])}getMerchantContent(_=ut.navigation){return this.content[_]?this.contentPages[_]:[]}getConfirmationAds(){return this.confirmationAdvertisements}getOnlineProductContent(_,j){return this.onlineProductContent?(_&&this.onlineProductContent[_]||[]).filter(vt=>vt.type===j):[]}getOnlineCategoryContent(_){return this.onlineCategoryContent&&_&&this.onlineCategoryContent[_]||[]}getOnlineHomeContent(){return this.onlineHomeContent}getHasSubNavigation(){return this.hasSubNavigation}getHeaderType(){return this.headerType}getSharedContent(_=!1){return _?this.defaultContent[lt.sharedContent]:this.content[lt.sharedContent]}getStoreClosed(){return this.storeClosed}get isEventShop(){return this.get(lt.eventStore)?.size>0}get isDagrofa(){const{type:_}=this.merchant;return _===R.Pc.MENY||_===R.Pc.SPAR||_===R.Pc.MIN_KOBMAND}get(_){return this.content[_]?this.content[_]:new Map}getDefault(_){return this.defaultContent[_]?this.defaultContent[_]:new Map}addImageSource(_){const q=new RegExp('src="/',"g");return _&&_.replace(q,`src="${this.cmsOrigin}/`)}addLinkSource(_){const q=new RegExp('href="/media',"g");return _&&_.replace(q,`href="${this.cmsOrigin}/media`)}processLink(_){const j=_.target;if("A"===j.nodeName){const q=j;if(q.host!==window.location.host)return;_.preventDefault();const ht=decodeURIComponent(q.pathname);this.router.navigate([ht])}}setTitle(_){this.titleService.setTitle(_?`${this.getTitle()} | ${_}`:this.getTitle())}setDescription(_){const j=this.metaService.getTag("name=description");_?j?this.metaService.updateTag({name:"description",content:_}):this.metaService.addTag({name:"description",content:_}):j?this.metaService.updateTag({name:"description",content:this.getDescription()}):this.metaService.addTag({name:"description",content:this.getDescription()})}setOGImage(_){if(!(_=_||this.getOGImage()))return this.metaService.removeTag('name="image"'),void this.metaService.removeTag('name="image:width"');this.metaService.updateTag({name:"image",property:"og:image",content:`${this.cmsOrigin}${_}?width=500&mode=max`}),this.metaService.updateTag({name:"image:width",property:"og:image:width",content:"500"})}setNoIndex(_){const j=this.metaService.getTag("name=robots");if((j||_)&&(!_||!j)){if(!_&&j)return void this.metaService.removeTag("name=robots");this.metaService.addTag({name:"robots",content:"noindex"})}}getContentLink(_){return"link"===_.type?_:{type:"link",titleText:_.titleText,targetUrl:this.contentUrl+_.titleText.toLowerCase(),new:!1}}sameSite(_){if(typeof window>"u")return;const j=JSON.parse(JSON.stringify(_));return"targetUrl"in j&&(j.targetUrl=this.checkSameSite(j.targetUrl),j.targetUrl)||"Url"in j&&(j.Url=this.checkSameSite(j.Url),j.Url)?j:void 0}checkSameSite(_){const j=document.createElement("a");if(j.href=_,j.host===window.location.host)return decodeURIComponent(j.pathname)}load(){return new Promise(_=>{const j=this.contentRequests();(0,x.a)([j.content,j.defaultContent]).subscribe(([vt,gt])=>{this.merchantId=vt.merchant.id,this.merchant=vt.merchant,this.storeClosed="Closed"===vt.content.Children[0].Properties[0].Value;const zt=vt.content.Children[0];zt.Children.forEach(J=>{if(J.Name===lt.merchantContentFolder){let F=ut.navigation;zt.Children.find(Pt=>"nxtNavigationHeader"===Pt.Name)&&(this.headerType=!0,J.Properties[0].Value&&(F=ut.header)),this.contentPages||(this.contentPages={}),this.content[F]=new Map;const V=J.Children.map(Pt=>this.mapContentNodes(Pt,F)).filter(Pt=>!!Pt);return void(this.contentPages[F]=V)}if(J.Name===lt.confirmationAdvertisementFolder){const F=[];for(const rt of J.Children)F.push({descriptionText:rt.Properties[0].Value,link:rt.Properties[1].Value,background:rt.Properties[2]?.Value,advertisementImage:rt.Properties[3]?.Value,iconImage:rt.Properties[4]?.Value,priority:rt.Properties[5]?.Value||0,productIds:rt.Properties[6]?.Value});return void(this.confirmationAdvertisements=F)}if(J.Name===lt.richFooter&&(J.Name=lt.footer,this.richFooter=!0),J.Name===lt.onlineFolder){this.onlineHomeContent||(this.onlineHomeContent=[]),this.onlineCategoryContent||(this.onlineCategoryContent={}),this.onlineProductContent||(this.onlineProductContent={});for(const F of J.Children){const rt=F.Properties,V=rt[0]?.Value;switch(F.Name){case"onlineStrip":{const Pt=rt[1]?.Value,$t={type:R.Xb.Strip,productIds:V,categoryIds:Pt,displayHome:rt[2]?.Value,stripTitleText:rt[3]?.Value,link:rt[4]?.Value,bodyText:rt[5]?.Value,mediaPosition:rt[6]?.Value??"Left",mediaContent:rt[7]?.Value,backgroundColor:rt[8]?.Value,primaryColor:rt[9]?.Value,secondaryColor:rt[10]?.Value,buttonBgColor:rt[11]?.Value,buttonTextColor:rt[12]?.Value};$t.displayHome&&this.onlineHomeContent.push($t);for(const Lt of Pt)Lt in this.onlineCategoryContent||(this.onlineCategoryContent[Lt]=[]),this.onlineCategoryContent[Lt].push($t);for(const Lt of V)Lt in this.onlineProductContent||(this.onlineProductContent[Lt]=[]),this.onlineProductContent[Lt].push($t);break}case"onlineIconLines":{const Pt=rt[2]?.Value,$t={type:R.Xb.IconLine,productIds:V,title:rt[1]?.Value,lines:Pt.map(Lt=>({icon:Lt.Media,text:Lt.Label}))};for(const Lt of V)Lt in this.onlineProductContent||(this.onlineProductContent[Lt]=[]),this.onlineProductContent[Lt].push($t);break}case"onlineInfobox":{const Pt=rt[1]?.Value,$t={type:R.Xb.Infobox,productIds:V,infoboxes:Pt.map(Lt=>({title:Lt.QuestionText,info:Lt.AnswerText}))};for(const Lt of V)Lt in this.onlineProductContent||(this.onlineProductContent[Lt]=[]),this.onlineProductContent[Lt].push($t);break}}}}const z=this.createPropertyMap(J);this.content[J.Name]=z}),vt.content.Children[0].Children.forEach(J=>{const z=this.createPropertyMap(J);this.defaultContent[J.Name]=z}),this.setTitle(),this.setDescription(),this.setOGImage(),this.setStoreType(),this.setMailingWorkspace();const H=this.defaultContent[lt.errors];this.errorMessages={somethingWentWrong:H.get("somethingWentWrongText"),invalidLogin:H.get("invalidLoginText")},this.loadedSubject.next(!0),_(vt)})})}contentRequests(){const _=this.http.get(this.contentEndpoint,{params:{callerHost:this.requestUrl,bypassCache:!0}}).pipe((0,l.P)(),(0,i.U)(q=>({...q,content:JSON.parse(q.content)})));return{content:_,defaultContent:_}}setStoreType(){const{type:_}=this.getMerchant();this.themeService.setTheme(this.renderer,_),this.setGoogleSiteVerification(_),this.setFacebookSiteVerification(_)}setMailingWorkspace(){this.mailingWorkspace=this.merchant.mailingWorkspaceId,this.mailingWorkspace&&this.http.get(this.mailingListEndpoint,{params:{workspace:this.mailingWorkspace}}).pipe((0,l.P)()).subscribe(_=>{this.mailingLists.next(_.Data.mailingLists)})}createPropertyMap(_){const j=new Map;for(const q of _.Properties)j.set(q.Name,q.Value);for(const q of _.Children){const ht=this.createPropertyNodes(q);j.set(q.Name,ht)}return j}createPropertyNodes(_){const j={};for(const q of _.Properties)j[q.Name]=q.Value;for(const q of _.Children){const ht=this.createPropertyNodes(q);j[q.Name]=ht}return j}mapContentNodes(_,j){switch(_.Name){case"simpleContentPage":{const q={type:"simple",titleText:_.Properties[0].Value,contentText:_.Properties[1].Value,pageTitle:_.Properties[2]?.Value,pageDescription:_.Properties[3]?.Value};return q.titleText?(this.content[j].set(q.titleText.toLowerCase(),q),q):void 0}case"hiddenSimpleContentPage":{const q={type:"hidden",titleText:_.Properties[0].Value,contentText:_.Properties[1].Value,pageTitle:_.Properties[2]?.Value,pageDescription:_.Properties[3]?.Value};return q.titleText?(this.content[j].set(q.titleText.toLowerCase(),q),q):void 0}case"link":{const q={type:"link",titleText:_.Properties[0].Value,targetUrl:_.Properties[1].Value,new:!!_.Properties[2].Value};return q.titleText&&q.targetUrl?(this.content[j].set(q.titleText.toLowerCase(),q),q):void 0}case"burgerMenuContent":{const q={type:"burger",pages:[]};for(const ht of _.Children){const vt=this.mapContentNodes(ht,j);if(!vt)continue;const gt=this.getContentLink(vt);q.pages.push(gt)}return q}case"subNavigationContentFolder":{const q={type:"subNav",title:_.Properties[0].Value,pages:[],showContentPage:!1};if(_.Properties[1]?.Value){const ht={type:"simple",titleText:_.Properties[2]?.Value,contentText:_.Properties[3]?.Value,pageTitle:_.Properties[7]?.Value,pageDescription:_.Properties[8]?.Value};ht.titleText&&(q.showContentPage=!0,this.content[j].set(ht.titleText.toLowerCase(),ht))}for(const ht of _.Children){const vt=this.mapContentNodes(ht,j);if(!vt)continue;const gt=this.getContentLink(vt);q.pages.push(gt)}return q.pages.length&&(this.hasSubNavigation=!0),q}default:return}}setGoogleSiteVerification(_){let j;switch(_){case R.Pc.KOKKEFROEEN:j="ykxSJfG_fSCaeDE3Qu4HjgdJDjXl4f08Dc1Vb-P-D3U";break;case R.Pc.NEW_YEAR:j="4PqfNJdj-voGMyhFMA9BrtC8gUftjoqjdGVzqXxcR6s";break;case R.Pc.FANDANKO:j="bvCPRJRnauDFzfQPeimNIjSIKPcZvryRMTXq2KKCJhM"}j&&this.metaService.addTag({name:"google-site-verification",content:j})}setFacebookSiteVerification(_){let j;switch(_){case R.Pc.HERLIGHEDER:j="x7iblx2cggdwuuuvsv2elup78t0iu0";break;case R.Pc.NEW_YEAR:j="dd407s57g8lp349knbmz1ydwh76jma"}j&&this.metaService.addTag({name:"facebook-domain-verification",content:j})}static#t=this.\u0275fac=function(j){return new(j||tt)(t.LFG(y.eN),t.LFG(O.Dx),t.LFG(O.h_),t.LFG(t.FYo),t.LFG(G.f),t.LFG(U.F0),t.LFG(o.Z,8))};static#e=this.\u0275prov=t.Yz7({token:tt,factory:tt.\u0275fac,providedIn:"root"})}return tt})()},8906:(Je,Rt,c)=>{"use strict";c.d(Rt,{C:()=>f});var o=c(6676),g=c(5619),x=c(3997),l=c(7299),i=c(5879),R=c(459);let f=(()=>{class t{constructor(O){this.cookieService=O,this.cookiePolicyUrl=`/${l.environment.urls.content.cookie_policy}`,this.cookie="Cookie-Policy",this.enabled=!1,this.update=!1,this.cookiePolicyChoiceSubject=new g.X({necessary:!0,functional:!1,statistics:!1,marketing:!1}),this.cookiePolicyChoice=this.cookiePolicyChoiceSubject.asObservable().pipe((0,x.x)((G,U)=>{for(const[lt,ut]of Object.entries(G))if(ut!==U[lt])return!1;return!0}))}setCookie(O,G=!1){this.update=G,this.cookieService.set(this.cookie,JSON.stringify(O),o().add(1,"year").toDate()),this.cookiePolicyChoiceSubject.next(O)}checkCookie(){const O=this.cookieService.get(this.cookie);if(!O)return!1;const G=JSON.parse(O);return this.cookiePolicyChoiceSubject.next(G),!0}enable(){this.enabled=!0}static#t=this.\u0275fac=function(G){return new(G||t)(i.LFG(R.N))};static#e=this.\u0275prov=i.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},1952:(Je,Rt,c)=>{"use strict";c.d(Rt,{x:()=>H});var o=c(7592),e=c(8180),g=c(6093),x=c(1119),l=c(4726),i=c(1165),R=c(6191),f=c(413),t=c(7188),y=c(7394),O=c(8712),G=c(7985),U=c(2802),lt=c(5879),ut=c(6814),Ht=c(8514),A=c(5699),xt=c(4918);function tt(J,z){if(1&J){const F=lt.EpF();lt.TgZ(0,"app-icon-button",3),lt.NdJ("click",function(){lt.CHM(F);const V=lt.oxw();return lt.KtG(V.close())}),lt.qZA()}if(2&J){const F=lt.oxw();lt.Q6J("icon",F.closeIcon)("border",!1)}}let ct=(()=>{class J extends U.I{constructor(F,rt){super(F,O.NS.header),this.dialogRef=rt,this.subscription=new y.w0,this.closeIcon=G.qq.bigCross,this.showButton=!1,this.body=this.content.get("disclaimerContentText"),this.okButton=this.content.get("okButtonText")}ngOnInit(){this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1}))}close(){this.dialogRef.close()}static#t=this.\u0275fac=function(rt){return new(rt||J)(lt.Y36(O._s),lt.Y36(o.hV))};static#e=this.\u0275cmp=lt.Xpm({type:J,selectors:[["app-disclaimer"]],features:[lt.qOj],decls:5,vars:5,consts:[["class","close-button",3,"icon","border","click",4,"ngIf"],[1,"body","rich-text",3,"innerHTML"],[1,"ok-button",3,"click"],[1,"close-button",3,"icon","border","click"]],template:function(rt,V){1&rt&&(lt.YNc(0,tt,1,2,"app-icon-button",0),lt._UZ(1,"div",1),lt.ALo(2,"sanitizeHtml"),lt.TgZ(3,"app-text-button",2),lt.NdJ("click",function(){return V.close()}),lt._uU(4),lt.qZA()),2&rt&&(lt.Q6J("ngIf",V.showButton),lt.xp6(1),lt.Q6J("innerHTML",lt.lcZ(2,3,V.body),lt.oJD),lt.xp6(3),lt.Oqu(V.okButton))},dependencies:[ut.O5,Ht.h,A.r,xt.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-width:800px;max-width:800px;margin-top:-16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:80vw;min-width:80vw;height:auto;max-height:calc(var(--vh, 1vh) * 95);overflow-y:auto}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{max-width:80vw;min-width:80vw;height:auto;max-height:calc(var(--vh, 1vh) * 95);overflow-y:auto}}[_nghost-%COMP%]   .close-button[_ngcontent-%COMP%]{position:fixed;right:32px;top:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .close-button[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .body[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}[_nghost-%COMP%]   .ok-button[_ngcontent-%COMP%]{align-self:flex-end;width:120px;height:40px}"]})}return J})();var _=c(9850),j=c(2459),q=c(1176),ht=c(1166),vt=c(5189),gt=c(4403),zt=c(9594),Ct=c(8750);let H=(()=>{class J{constructor(F,rt,V,Pt,$t,Lt){this.contentService=F,this.dialog=rt,this.basketQuery=V,this.basketStore=Pt,this.overlay=$t,this.deviceService=Lt,this.storeClosed=this.contentService.getStoreClosed(),this.shippingDialogOpen=!1,this.openGoToBasket=!1}openCookieConsentDialog(F=!1){return this.openDialog(t.$,{data:{update:F},disableClose:!0})}openDisclaimerDialog(){return this.openDialog(ct,{classes:["disclaimer-dialog"]})}openLoginDialog(){return this.openDialog(f.D,{classes:["login-dialog"]})}openConfirmationDialog(F){return this.openDialog(l.z,{data:F,classes:["confirmation-dialog"]})}openImageCarouselDialog(F){return this.openDialog(R.Vn,{data:F,classes:["image-carousel-dialog"]})}openProductDialog(F){return this.openDialog(R.Rl,{data:F,classes:["product-dialog"]})}openWoltDialog(F){return this.openDialog(x._0,{data:F,classes:["wolt-dialog"]})}openShippingDialog(){if(this.storeClosed||this.shippingDialogOpen)return;this.shippingDialogOpen=!0;let F=j.k,rt=["shipping-dialog"],V=0;const Pt=this.basketQuery.getValue().ui;Pt.openShippingDialog&&(this.basketStore.update({ui:{...Pt,openShippingDialog:!1}}),V=100);const $t=this.contentService.getMerchant().type;($t===g.Pc.MENY||$t===g.Pc.SPAR||$t===g.Pc.MIN_KOBMAND)&&(F=q.K,rt=["meny-shipping-dialog"]),setTimeout(()=>this.openDialog(F,{classes:rt}).afterClosed().pipe((0,e.q)(1)).subscribe(()=>{this.shippingDialogOpen=!1,this.openGoToBasket&&this.openGoToBasketDialog()}),V)}openGoToBasketDialog(){return this.shippingDialogOpen?(this.openGoToBasket=!0,null):(this.openGoToBasket=!1,this.openDialog(x.GT,{classes:["go-to-basket-dialog"]}))}openMenyBasketDialog(F){return this.openDialog(i.s,{data:F,classes:["meny-basket-dialog"]})}openEditAddressDialog(F){return this.openDialog(ht.PU,{data:F,classes:["shipping-address-dialog"]})}openNewsletterDialog(){return this.openDialog(_.v6,{classes:["newsletter-dialog"]})}openDialog(F,rt={disableClose:!1}){const{disableClose:V,data:Pt,classes:$t}=rt,Lt=new o.w6;if(Lt.autoFocus=!1,Lt.panelClass=["app-dialog-style"].concat($t),Lt.disableClose=V,Lt.data=Pt,typeof window<"u"){const Jt=this.deviceService.getDeviceInfo();"Safari"===Jt.browser&&"iPhone"===Jt.device&&"iOS"===Jt.os&&(Lt.scrollStrategy=this.overlay.scrollStrategies.noop())}return this.dialog.open(F,Lt)}static#t=this.\u0275fac=function(rt){return new(rt||J)(lt.LFG(O._s),lt.LFG(o.on),lt.LFG(vt.N),lt.LFG(gt.O5),lt.LFG(zt.aV),lt.LFG(Ct.x0))};static#e=this.\u0275prov=lt.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"})}return J})()},7954:(Je,Rt,c)=>{"use strict";c.d(Rt,{gv:()=>tt,e8:()=>_.e8,QD:()=>Ct,Ns:()=>H.Ns,vD:()=>H.vD,HE:()=>J.H,ZY:()=>z.ZY,_s:()=>O._s,zc:()=>z.zc,xA:()=>Pt.x,p$:()=>ct.p$,Wf:()=>$t.W,sO:()=>Lt.sO,M5:()=>Lt.M5,VH:()=>$,VG:()=>Dt.VG,Nk:()=>Dt.Nk,fY:()=>St.f,Yd:()=>V,Nc:()=>Dt.Nc,tf:()=>J.t,headerSections:()=>O.ye,uG:()=>H.uG,NS:()=>O.NS});var o=c(6814),e=c(2787),g=c(9818),x=c(7394),l=c(2181),i=c(836),R=c(3997),f=c(6093),t=c(7299),y=c(5879),O=c(8712),G=c(8906),U=c(120);const ut="{TAG}",A=`\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='+i+dl;f.parentNode.insertBefore(j,f);\n  })(window,document,'script','dataLayer','${ut}');\n`,xt=`\n  <iframe src="https://www.googletagmanager.com/ns.html?id=${ut}"\n    height="0" width="0" style="display:none;visibility:hidden"></iframe>\n`;let tt=(()=>{class mt{constructor(ee,B,At,st,ie,Ae){this.document=ee,this.rendererFactory=B,this.contentService=At,this.cookiePolicyService=st,this.gtmService=ie,this.router=Ae,this.subscription=new x.w0,this.renderer=this.rendererFactory.createRenderer(null,null)}ngOnDestroy(){this.subscription.unsubscribe()}setGoogleAnalytics(ee){if(t.environment.analytics){switch(ee){case f.Pc.MENY:this.contentService.gTagKey="GTM-WV3KKB8";break;case f.Pc.CITYCATERING:this.contentService.gTagKey="GTM-WWTG54Q";break;case f.Pc.LA_BRAVA:this.contentService.gTagKey="GTM-K28LNSK";break;case f.Pc.HERLIGHEDER:this.contentService.gTagKey="GTM-TVFPKC7";break;case f.Pc.KOKKEFROEEN:this.contentService.gTagKey="GTM-TPWHZ8D";break;case f.Pc.FANDANKO:this.contentService.gTagKey="GTM-PQ4K6RK"}if(this.contentService.isEventShop)switch(ee){case f.Pc.SPAR:this.contentService.gTagKey="GTM-WNLL6J5";break;case f.Pc.MIN_KOBMAND:this.contentService.gTagKey="GTM-5PLP476"}if(this.contentService.gTagKey){if(typeof window>"u"||!window.dataLayer){const B=new RegExp(ut,"g");let At=A;At=At.replace(B,this.contentService.gTagKey);let st=xt;st=st.replace(B,this.contentService.gTagKey),this.installGoogleTagManager(At,st)}typeof window<"u"&&window.dataLayer&&(this.subscription.add(this.router.events.pipe((0,l.h)(B=>B instanceof e.m2)).subscribe(()=>{window.dataLayer.push({event:"pageview"})})),this.subscription.add(this.cookiePolicyService.cookiePolicyChoice.pipe((0,i.T)(1),(0,R.x)((B,At)=>g(B,At))).subscribe(B=>{B&&this.gtmService.updateConsent(B,this.cookiePolicyService.update)})))}}}installGoogleTagManager(ee,B){const At=this.document.getElementsByTagName("head")[0],st=this.document.getElementsByTagName("body")[0],ie=this.renderer.createElement("script");ie.innerHTML="\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n\n  // Default ad_storage to 'denied'.\n  gtag('consent', 'default', {\n    'ad_storage': 'denied',\n    'analytics_storage': 'denied',\n    'functionality_storage': 'denied',\n    'personalization_storage': 'denied',\n    'security_storage': 'granted',\n    'ad_user_data': 'denied',\n    'ad_personalization': 'denied',\n    'wait_for_update': 2000,\n  });\n",At.appendChild(ie);const Ae=this.renderer.createElement("script");Ae.innerHTML=ee,At.appendChild(Ae);const en=this.renderer.createElement("noscript");en.innerHTML=B,st.insertBefore(en,st.children[0])}static#t=this.\u0275fac=function(B){return new(B||mt)(y.LFG(o.K0),y.LFG(y.FYo),y.LFG(O._s),y.LFG(G.C),y.LFG(U.b),y.LFG(e.F0))};static#e=this.\u0275prov=y.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();var ct=c(1904),_=c(4222),j=c(6676),q=c(7398),ht=c(7328),vt=c(3020),zt=c(9862);let Ct=(()=>{class mt{constructor(ee){this.http=ee,this.bannerEndpoint=`${t.environment.apiOrigin}/banner`,this.CACHE_SIZE=1}getBanners(ee){return this.getActiveBanners(ee).pipe((0,q.U)(B=>{const At=j();return B.filter(st=>st.type!==f.$.Hero&&j(st.startDate).isSameOrBefore(At,"day")&&(!st.endDate||j(st.endDate).isSameOrAfter(At,"day")))}))}getHeroBanners(ee){return this.getActiveBanners(ee).pipe((0,q.U)(B=>{const At=j();return B.filter(st=>st.type===f.$.Hero&&j(st.startDate).isSameOrBefore(At,"day")&&(!st.endDate||j(st.endDate).isSameOrAfter(At,"day")))}))}getActiveBanners(ee){return this.cache||(this.cache=this.requestActiveBanners(ee).pipe(function gt(mt,yt,ee){let B,At=!1;return mt&&"object"==typeof mt?({bufferSize:B=1/0,windowTime:yt=1/0,refCount:At=!1,scheduler:ee}=mt):B=mt??1/0,(0,vt.B)({connector:()=>new ht.t(B,yt,ee),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:At})}(this.CACHE_SIZE))),this.cache}requestActiveBanners(ee){return this.http.get(`${this.bannerEndpoint}/${ee}/active`)}static#t=this.\u0275fac=function(B){return new(B||mt)(y.LFG(zt.eN))};static#e=this.\u0275prov=y.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();var H=c(7890),J=c(3902),z=c(5954),F=c(5515),rt=c(8750);let V=(()=>{class mt extends rt.x0{constructor(ee,B){super(ee),(0,o.PM)(ee)&&super.setDeviceInfo(B.headers["user-agent"]||"")}static#t=this.\u0275fac=function(B){return new(B||mt)(y.LFG(y.Lbi),y.LFG(F.Z,8))};static#e=this.\u0275prov=y.Yz7({token:mt,factory:mt.\u0275fac})}return mt})();var Pt=c(1952),$t=c(4466),Lt=c(380);const Jt=[{path:"kontakt_8.html",redirectTo:"/kontakt-os"},{path:"levering_78.html",redirectTo:"/sp\xf8rgsm\xe5l-og-svar"},{path:"om-fandanko_79.html",redirectTo:"$/artikler/om%20mad%20af%20kvalitet"},{path:"ean-betaling_113.html",redirectTo:"/artikler/ean-betaling"},{path:"allergener_95.html",redirectTo:"/sp\xf8rgsm\xe5l-og-svar"},{path:"persondatapolitik_102.html",redirectTo:"/persondatapolitik"},{path:"betingelser_3.html",redirectTo:"/handelsbetingelser"},{path:"afhentning-af-emballage_116.html",redirectTo:"/sp\xf8rgsm\xe5l-og-svar"},{path:"persondatapolitik_102.html",redirectTo:"/persondatapolitik"},{path:"om-fandanko_79.html",redirectTo:"/artikler/om%20mad%20af%20kvalitet"},{path:"betingelser_3.html",redirectTo:"/handelsbetingelser"},{path:"job_121.html",redirectTo:"/artikler/job"},{path:"kontakt_8.html",redirectTo:"/kontakt-os"},{path:"sandwich_50.html",redirectTo:`${t.environment.urls.products}/sandwich`},{path:"brunch_49.html",redirectTo:`${t.environment.urls.products}/Brunch`},{path:"ready2heat_52.html",redirectTo:`${t.environment.urls.products}/varm_selv`},{path:"tapas2go_53.html",redirectTo:`${t.environment.urls.products}/tapas`},{path:"luksus-tapas-_109.html",redirectTo:`${t.environment.urls.products}/TEST`},{path:"alt-godt-fra-havet-tapas_105.html",redirectTo:`${t.environment.urls.products}/tapas`},{path:"unika-oste-tapas_93.html",redirectTo:`${t.environment.urls.products}/tapas`},{path:"mad-til-de-smaa_100.html",redirectTo:`${t.environment.urls.products}/boernemenu`},{path:"selskabsmenuer_59.html",redirectTo:`${t.environment.urls.products}/selskabsmenu`},{path:"receptionsmenuer_60.html",redirectTo:`${t.environment.urls.products}/receptionsmenuer`},{path:"soedt---laekkert_61.html",redirectTo:`${t.environment.urls.products}/desserter`},{path:"drikkevarer_70.html",redirectTo:`${t.environment.urls.products}/drikkevarer`},{path:"gavekurve_108.html",redirectTo:`${t.environment.urls.products}/Gavekurv`},{path:"fandankos-paaskefrokost_57.html",redirectTo:`${t.environment.urls.products}/paasketapas-3492`},{path:"unika-oste-tapas_93.html",redirectTo:`${t.environment.urls.products}/Osttapas-2744`},{path:"alt-godt-fra-havet-tapas_105.html",redirectTo:`${t.environment.urls.products}/FiskTapas-2742`},{path:"tapas2go_53.html",redirectTo:`${t.environment.urls.products}/Tapas-2842`},{path:"kaempe-muffin_61r173.html",redirectTo:`${t.environment.urls.products}/ChokoladeCroissant-2861`},{path:"skinke---ost---deluxe_50r36.html",redirectTo:`${t.environment.urls.products}/SandwichSkinkeOst-2822`},{path:"laks-med-smag_50r42.html",redirectTo:`${t.environment.urls.products}/LaksSandwich-2824`},{path:"fandankos-flaeskestegssandwich---lun_50r209.html",redirectTo:`${t.environment.urls.products}/Flaeskesteg_sandwich-2827`},{path:"lasagne_52r430.html",redirectTo:`${t.environment.urls.products}/Lasagne-2848`},{path:"pulled-pork-(lun)_50r475.html",redirectTo:`${t.environment.urls.products}/PulledPork-2816`},{path:"drikkevarer_70.html",redirectTo:`${t.environment.urls.products}/drikkevarer`},{path:"gourmetpizza_52r429.html",redirectTo:`${t.environment.urls.products}/Gourmetpizza-2847`},{path:"pastrami_50r37.html",redirectTo:`${t.environment.urls.products}/PastramiSandwich-2823`},{path:"vegetar/vegansk-sandwich_50r292.html",redirectTo:`${t.environment.urls.products}/Sandwich_vegetar_vegansk-2825`},{path:"dessert-tapas-_61r52.html",redirectTo:`${t.environment.urls.products}/Dessert%20_Tapas-2846`},{path:"hjemmelavet-pesto_53r240.html",redirectTo:`${t.environment.urls.products}/FANDANKOs%20Pesto-2898`},{path:"gavekurve_108.html",redirectTo:`${t.environment.urls.products}/Gavekurv`},{path:"selskabsmenuer_59.html",redirectTo:`${t.environment.urls.products}/selskabsmenu`},{path:"lufttoerret-skinke_50r38.html",redirectTo:`${t.environment.urls.products}/SandwichSkinke-2818`},{path:"pappardelle-med-kylling-og-svampe_52r432.html",redirectTo:`${t.environment.urls.products}/Pappardelle-2852`},{path:"gratineret-foccacia-(lun)_50r40.html",redirectTo:`${t.environment.urls.products}/GratineretFoccacia-2819`},{path:"fandankos-kreative_50r55.html",redirectTo:`${t.environment.urls.products}/KreativSandwich-2817`},{path:"troeffel-mac---cheese-med-crispy-kylling-i-panko_52r436.html",redirectTo:`${t.environment.urls.products}/Mac_and_cheese-2849`},{path:"butter-chicken-med-naanbroed-og-couscous_52r435.html",redirectTo:`${t.environment.urls.products}/Butter_Chicken-2851`},{path:"fandankos-favorit_50r391.html",redirectTo:`${t.environment.urls.products}/SandwichFavorit-2731`},{path:"fandankos-egen-is_61r50.html",redirectTo:`${t.environment.urls.products}/Chokoladeis-2875`},{path:"brunch2go_49r10.html",redirectTo:`${t.environment.urls.products}/Brunch-2729`},{path:"skoenne-gourmetkager_61r388.html",redirectTo:`${t.environment.urls.products}/GourmetKager-2872`},{path:"hjemmelavet-aioli_53r239.html",redirectTo:`${t.environment.urls.products}/BasilikumAioli-2897`},{path:"chili-con-carne-a-la-heston-blumenthal_52r510.html",redirectTo:`${t.environment.urls.products}/Chili%20Con%20Carne-2853`},{path:"philly-cheese-a-la-fandanko---lun_50r291.html",redirectTo:`${t.environment.urls.products}/PhillyCheese-2826`},{path:"sandwich-buffet_50r113.html",redirectTo:`${t.environment.urls.products}/Sandwich_Buffet-2828`},{path:"lufttoerret-skinke_53r38.html",redirectTo:`${t.environment.urls.products}/SandwichSkinke-2818`},{path:"coca-cola-025_70r145.html",redirectTo:`${t.environment.urls.products}/CocaCola25-2904`},{path:"oekologisk-saft_53r149.html",redirectTo:`${t.environment.urls.products}/Hyldeblomstsaft-2905`},{path:"coca-cola-05_70r146.html",redirectTo:`${t.environment.urls.products}/CocaCola50cl-2906`},{path:"antipasto-a-la-fandanko_51r45.html",redirectTo:`${t.environment.urls.products}/Antipasto-2845`},{path:"fandanko-kildevand-05_53r152.html",redirectTo:`${t.environment.urls.products}/Kildevand-2908`},{path:"fandankos-valg---salat_51r44.html",redirectTo:`${t.environment.urls.products}/salat`},{path:"fandankos-store-broed_51r385.html",redirectTo:`${t.environment.urls.products}/broed`},{path:"receptionsmenu-nr.-1_60r598.html",redirectTo:`${t.environment.urls.products}/Receptionsmenu1-2857`},{path:"glutenfri-broed_51r315.html",redirectTo:`${t.environment.urls.products}/Glutenfrit_broed-2909`},{path:"luksus-receptionsmenu_60r600.html",redirectTo:`${t.environment.urls.products}/LuksusReceptionsmenu-2859`},{path:"receptionsmenu-nr.-2_60r599.html",redirectTo:`${t.environment.urls.products}/Receptionsmenu2-2858`},{path:"cola-zero-05_53r150.html",redirectTo:`${t.environment.urls.products}/CocaColaZero-2910`},{path:"sacred-hill-sauvignon-blanc-reserve-marlborough_70r413.html",redirectTo:`${t.environment.urls.products}/Sacred_Hill_Sauvignon_Blanc-2911`},{path:"les-glaneuses-rose_70r414.html",redirectTo:`${t.environment.urls.products}/LesGlaneusesRos\xe9-2913`},{path:"hjemmelavet-mojito-iscreme_53r256.html",redirectTo:`${t.environment.urls.products}/Mojitois-2886`},{path:"fandanko-kildevand-05_53r152.html",redirectTo:`${t.environment.urls.products}/Kildevand-2908`},{path:"let---laekkert_51.html",redirectTo:`${t.environment.urls.products}/tapas`},{path:"nytaarsmenu-2021_124.html",redirectTo:`${t.environment.urls.products}/nytaarsmenu`},{path:"jule-tapas-2021_56.html",redirectTo:`${t.environment.urls.products}/jul`},{path:"studentermenu-fandanko_85.html",redirectTo:`${t.environment.urls.products}/studentermenu`},{path:"bestilling_16.html",redirectTo:"/kurv"}],Tt=[{path:"shop/boern-117c1.html",redirectTo:`${t.environment.urls.products}/b\xf8rne-menu-2176`},{path:"shop/broed-121c1.html",redirectTo:`${t.environment.urls.products}/b\xf8rne-menu-2176`},{path:"shop/brunch-95s1.html",redirectTo:`${t.environment.urls.products}/traditionel-brunch-2173`},{path:"shop/buffet med dessert 285p.html",redirectTo:`${t.environment.urls.products}/buffet-med-dessert-2050`},{path:"shop/buffet-286p.html",redirectTo:`${t.environment.urls.products}/buffet-1940`},{path:"shop/buffeter-94s1.html",redirectTo:`${t.environment.urls.products}/buffeter`},{path:"shop/buffet-med-2-292p.html",redirectTo:`${t.environment.urls.products}/buffet-1940`},{path:"shop/buffet-med-dessert-285p.html",redirectTo:`${t.environment.urls.products}/buffet-med-dessert-2050`},{path:"shop/buffet-med-forret-283p.html",redirectTo:`${t.environment.urls.products}/buffet-med-forret-1992`},{path:"shop/buffet-med-forret-284p.html",redirectTo:`${t.environment.urls.products}/buffet-med-forret-1992`},{path:"shop/flaeskesteg-med-svaer-401p.html",redirectTo:`${t.environment.urls.products}/produkter/fl\xe6skesteg-med-sv\xe6r-1922`},{path:"shop/gammeldags-30c1.html",redirectTo:`${t.environment.urls.products}/gammeldags-oksesteg-1923`},{path:"shop/konfirmation-48c1.html",redirectTo:`${t.environment.urls.products}/konfirmations-menu-2019`},{path:"shop/konfirmationsmenu-357p.html",redirectTo:`${t.environment.urls.products}/konfirmations-menu-2019`},{path:"shop/luksus-brunch-398p.html",redirectTo:`${t.environment.urls.products}/luksus-brunch-1919`},{path:"shop/luksus-brunch-398p.html",redirectTo:`${t.environment.urls.products}/luksus-brunch-1919`},{path:"shop/natmad-119c1.html",redirectTo:`${t.environment.urls.products}/natmad-2054`},{path:"shop/oksefiletvalgfri-dessert-319p.html",redirectTo:`${t.environment.urls.products}/buffet-med-dessert-2050`},{path:"shop/oksemoerbradforret-og-337p.html",redirectTo:`${t.environment.urls.products}/buffet-med-dessert-2050`},{path:"shop/oksesteg-med-valgfri-314p.html",redirectTo:`${t.environment.urls.products}/buffet-med-dessert-2050`},{path:"shop/studenter-menu-tilbud-382p.html",redirectTo:`${t.environment.urls.products}/studentermenu-1921`},{path:"shop/studentertilbud-91s1.html",redirectTo:`${t.environment.urls.products}/studentermenu-1921`},{path:"shop/svinekamforret-og-dessert-333p.html",redirectTo:`${t.environment.urls.products}/buffet-med-forret-og-dessert-1993`},{path:"shop/svinekam-som-vildtforret-336p.html",redirectTo:`${t.environment.urls.products}/buffet-med-forret-og-dessert-1993`},{path:"shop/svinekam-stegt-som-311p.html",redirectTo:`${t.environment.urls.products}/buffet-med-forret-og-dessert-1993`},{path:"shop/tapas-116c1.html",redirectTo:`${t.environment.urls.products}/tapas-1920`},{path:"shop/traditionel-brunch-med-298p.html",redirectTo:`${t.environment.urls.products}/traditionel-brunch-2173`},{path:"shop/6-retter-52c1.html",redirectTo:`${t.environment.urls.products}/produkter/6-retter-2650`},{path:"shop/bestil-laekker-menu-443p.html",redirectTo:`${t.environment.urls.products}/produkter/buffet-med-forret-og-dessert-1993`},{path:"shop/den-store-sult-432p.html",redirectTo:`${t.environment.urls.products}/produkter/buffet-med-forret-og-dessert-1993`},{path:"shop/farseret-kalkunbryst-309p.html",redirectTo:`${t.environment.urls.products}/produkter/farseret-kalkunbryst-2653`},{path:"shop/farseret-kalkunbrystforret-334p.html",redirectTo:`${t.environment.urls.products}/produkter/farseret-kalkunbryst-2653`},{path:"shop/fredags-menu-302p.html",redirectTo:`${t.environment.urls.products}/produkter/fredags-menu-2654`},{path:"shop/gaeste-menu-331p.html",redirectTo:`${t.environment.urls.products}/produkter/gaeste-menu-2655`},{path:"shop/gammeldags-oksesteg-med-440p.html",redirectTo:`${t.environment.urls.products}/produkter/gammeldags-oksesteg-1923`},{path:"shop/graesk-tema-379p.html",redirectTo:`${t.environment.urls.products}/produkter/gr\xe6sk-tema-2656`},{path:"shop/grillbuffet-175-med-430p.html",redirectTo:`${t.environment.urls.products}/produkter/buffet-med-forret-og-dessert-1993`},{path:"shop/hannes-buffet-326p.html",redirectTo:`${t.environment.urls.products}/produkter/buffet-med-forret-og-dessert-1993`},{path:"shop/italiensk-tema-300p.html",redirectTo:`${t.environment.urls.products}/produkter/Italiensk%20tema%20buffet-2657`},{path:"shop/jubilaeumsmenu-396p.html",redirectTo:`${t.environment.urls.products}/produkter/buffet-med-forret-og-dessert-1993`},{path:"shop/kalvestegforret-og-dessert-335p.html",redirectTo:`${t.environment.urls.products}/produkter/kalvefilet%2Bvalgfri-dessert-2659`},{path:"shop/klassikere-111s1.html",redirectTo:`${t.environment.urls.products}/produkter/klassikere`},{path:"shop/koldt-bord-375p.html",redirectTo:`${t.environment.urls.products}/produkter/koldt-bord-2660`},{path:"shop/koldt-bord-stor-376p.html",redirectTo:`${t.environment.urls.products}/produkter/koldt-bord-stor-2661`},{path:"shop/madbroed-293p.html",redirectTo:`${t.environment.urls.products}/produkter/madbr\xf8d-1925`},{path:"shop/mexicansk-tema-301p.html",redirectTo:`${t.environment.urls.products}/produkter/mexicansk-tema-2662`},{path:"shop/nytaarsmenu-281p.html",redirectTo:`${t.environment.urls.products}/produkter/nyt\xe5rsmenu-2649`},{path:"shop/oel-tema-menu-377p.html",redirectTo:`${t.environment.urls.products}/produkter/\xf8l-tema-menu-2663`},{path:"shop/receptionsmenu-295p.html",redirectTo:`${t.environment.urls.products}/produkter/6-retter-2650`},{path:"shop/receptionsmenu-296p.html",redirectTo:`${t.environment.urls.products}/produkter/6-retter-2650`},{path:"shop/receptionsmenu-366p.html",redirectTo:`${t.environment.urls.products}/produkter/6-retter-2650`},{path:"shop/tunmousse-med-stenbiderrogn-443p.html",redirectTo:`${t.environment.urls.products}/produkter/buffet-med-forret-1992`},{path:"-o",redirectTo:`${t.environment}`},{path:"shop/frontpage.html",redirectTo:""},{path:"shop/6-retter-52c1.html",redirectTo:""},{path:"shop/bestil-laekker-menu-443p.html",redirectTo:""},{path:"shop/den-store-sult-432p.html",redirectTo:""},{path:"shop/farseret-kalkunbryst-309p.html",redirectTo:""},{path:"shop/farseret-kalkunbrystforret-334p.html",redirectTo:""},{path:"shop/fredags-menu-302p.html",redirectTo:""},{path:"shop/gaeste-menu-331p.html",redirectTo:""},{path:"shop/gammeldags-oksesteg-med-440p.html",redirectTo:""},{path:"shop/graesk-tema-379p.html",redirectTo:""},{path:"shop/grillbuffet-175-med-430p.html",redirectTo:""},{path:"shop/hannes-buffet-326p.html",redirectTo:""},{path:"shop/italiensk-tema-300p.html",redirectTo:""},{path:"shop/jubilaeumsmenu-396p.html",redirectTo:""},{path:"shop/kalvestegforret-og-dessert-335p.html",redirectTo:""},{path:"shop/klassikere-111s1.html",redirectTo:""},{path:"shop/koldt-bord-375p.html",redirectTo:""},{path:"shop/koldt-bord-stor-376p.html",redirectTo:""},{path:"shop/madbroed-293p.html",redirectTo:""},{path:"shop/mexicansk-tema-301p.html",redirectTo:""},{path:"shop/nytaarsmenu-281p.html",redirectTo:""},{path:"shop/oel-tema-menu-377p.html",redirectTo:""},{path:"shop/receptionsmenu-295p.html",redirectTo:""},{path:"shop/receptionsmenu-296p.html",redirectTo:""},{path:"shop/receptionsmenu-366p.html",redirectTo:""},{path:"shop/tunmousse-med-stenbiderrogn-443p.html",redirectTo:""},{path:"shop/buffeter-94s1.html",redirectTo:""},{path:"shop/brunch-95s1.html",redirectTo:""},{path:"shop/traditionel-brunch-med-298p.html",redirectTo:""},{path:"shop/tapas-116c1.html",redirectTo:""},{path:"shop/natmad-119c1.html",redirectTo:""},{path:"shop/luksus-brunch-398p.html",redirectTo:""},{path:"shop/konfirmation-48c1.html",redirectTo:""},{path:"shop/konfirmationsmenu-357p.html",redirectTo:""},{path:"shop/gammeldags-30c1.html",redirectTo:""},{path:"shop/flaeskesteg-med-svaer-401p.html",redirectTo:""},{path:"shop/buffet-med-forret-283p.html",redirectTo:""},{path:"shop/buffet-med-forret-284p.html",redirectTo:""},{path:"shop/svinekamforret-og-dessert-333p.html",redirectTo:""},{path:"shop/svinekam-som-vildtforret-336p.html",redirectTo:""},{path:"shop/svinekam-stegt-som-311p.html",redirectTo:""},{path:"shop/buffet med dessert 285p.html",redirectTo:""},{path:"shop/buffet-med-dessert-285p.html",redirectTo:""},{path:"shop/oksefiletvalgfri-dessert-319p.html",redirectTo:""},{path:"shop/oksemoerbradforret-og-337p.html",redirectTo:""},{path:"shop/oksesteg-med-valgfri-314p.html",redirectTo:""},{path:"shop/buffet-286p.html",redirectTo:""},{path:"shop/buffet-med-2-292p.html",redirectTo:""},{path:"shop/boern-117c1.html",redirectTo:""},{path:"shop/broed-121c1.html",redirectTo:""},{path:"shop/studenter-menu-tilbud-382p.html",redirectTo:""},{path:"shop/studentertilbud-91s1.html",redirectTo:""},{path:"shop/6-retter-52c1.html",redirectTo:""},{path:"shop/aspargessuppe-342p.html",redirectTo:""},{path:"shop/bestil-laekker-menu-443p.html",redirectTo:""},{path:"shop/broed-buffet-til-399p.html",redirectTo:""},{path:"shop/den-store-sult-432p.html",redirectTo:""},{path:"shop/den-traditionelle-julebuffet-341p.html",redirectTo:""},{path:"shop/den-utraditionelle-julebuffet-325p.html",redirectTo:""},{path:"shop/farseret-kalkunbryst-309p.html",redirectTo:""},{path:"shop/farseret-kalkunbrystforret-334p.html",redirectTo:""},{path:"shop/fredags-menu-302p.html",redirectTo:""},{path:"shop/gaeste-menu-331p.html",redirectTo:""},{path:"shop/gammeldags-oksesteg-med-440p.html",redirectTo:""},{path:"shop/graesk-tema-379p.html",redirectTo:""},{path:"shop/grillbuffet-175-med-430p.html",redirectTo:""},{path:"shop/hannes-buffet-326p.html",redirectTo:""},{path:"shop/italiensk-tema-300p.html",redirectTo:""},{path:"shop/jubilaeumsmenu-396p.html",redirectTo:""},{path:"shop/jule-buffet-28s1.html",redirectTo:""},{path:"shop/kalvefiletvalgfri-dessert-318p.html",redirectTo:""},{path:"shop/kalvestegforret-og-dessert-335p.html",redirectTo:""},{path:"shop/klassikere-111s1.html",redirectTo:""},{path:"shop/koldt-bord-375p.html",redirectTo:""},{path:"shop/koldt-bord-stor-376p.html",redirectTo:""},{path:"shop/luksus-120c1.html",redirectTo:""},{path:"shop/luksus-menu-med-330p.html",redirectTo:""},{path:"shop/madbroed-293p.html",redirectTo:""},{path:"shop/mexicansk-tema-301p.html",redirectTo:""},{path:"shop/nytaarsmenu-281p.html",redirectTo:""},{path:"shop/oel-tema-menu-377p.html",redirectTo:""},{path:"shop/pulled-pork-burger-400p.html",redirectTo:""},{path:"shop/paaske-tilbud-123c1.html",redirectTo:""},{path:"shop/paaske-tilbud-452p.html",redirectTo:""},{path:"shop/receptionsmenu-295p.html",redirectTo:""},{path:"shop/receptionsmenu-296p.html",redirectTo:""},{path:"shop/receptionsmenu-366p.html",redirectTo:""},{path:"shop/sandwich-372p.html",redirectTo:""},{path:"shop/showbasket.html",redirectTo:""},{path:"shop/sommer-studentertilbud-381p.html",redirectTo:""},{path:"shop/spagetti-351p.html",redirectTo:""},{path:"shop/tunmousse-med-stenbiderrogn-443p.html",redirectTo:""},{path:"shop/vaelg-en-laekker-412p.html",redirectTo:""},{path:"shop/vaelg-en-laekker-413p.html",redirectTo:""}];let $=(()=>{class mt{constructor(ee,B){this.router=ee,this.requestUrl=typeof window<"u"?window.location.host:B.headers.host}load(){switch(this.requestUrl){case f._H.HERLIGHEDER:this.createRoutes(Tt);break;case f._H.FANDANKO:this.createRoutes(Jt)}}createRoutes(ee){const B=[...ee,...this.router.config];this.router.resetConfig(B)}static#t=this.\u0275fac=function(B){return new(B||mt)(y.LFG(e.F0),y.LFG(F.Z,8))};static#e=this.\u0275prov=y.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"})}return mt})();var Dt=c(7350),St=c(6574)},4132:(Je,Rt,c)=>{"use strict";c.d(Rt,{P:()=>g});var o=c(5879),e=c(1088);let g=(()=>{class x{constructor(i){this.breakpointObserver=i}get isMobile(){return this.breakpointObserver.isMatched("(max-width: 768px)")}get isTablet(){return this.breakpointObserver.isMatched("(min-width: 768px) and (max-width: 1024px)")}get isDesktop(){return this.breakpointObserver.isMatched("(min-width: 1024px)")}get isLargeDesktop(){return this.breakpointObserver.isMatched("(min-width: 1640px)")}static#t=this.\u0275fac=function(R){return new(R||x)(o.LFG(e.Yg))};static#e=this.\u0275prov=o.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},4466:(Je,Rt,c)=>{"use strict";c.d(Rt,{W:()=>g});var o=c(5619),e=c(5879);let g=(()=>{class x{constructor(){this.mobileMenuOpen=new o.X(!1)}setOverlay(i){this.loaded=!0,this.mobileMenuOpen.next(i)}static#t=this.\u0275fac=function(R){return new(R||x)};static#e=this.\u0275prov=e.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},380:(Je,Rt,c)=>{"use strict";c.d(Rt,{sO:()=>i,M5:()=>ct});var o=c(5879),e=c(5914),g=c(655);const x={searchTerm:"",searchFilters:void 0,searchResults:[],frontpageProducts:[],suggestedProducts:[],hasMore:!1,pagedResponse:{total:0,products:[]},page:0,pageSize:20,searchPageSize:4,loading:!1,searchOpen:!1,searchOverview:!1};let l=class wu extends e.cf{constructor(){super(x)}resetSearch(){this.update({searchResults:[],hasMore:!0,page:x.page})}updatePage(j){this.update(j)}static#t=this.\u0275fac=function(q){return new(q||wu)};static#e=this.\u0275prov=o.Yz7({token:wu,factory:wu.\u0275fac,providedIn:"root"})};l=(0,g.gn)([(0,e.yC)({name:"products"})],l);let i=(()=>{class _ extends e.Gv{constructor(q){super(q),this.store=q,this.selectSearchTerm$=this.select(ht=>ht.searchTerm),this.selectSearchOpen$=this.select(ht=>ht.searchOpen),this.selectSearchOverview$=this.select(ht=>ht.searchOverview),this.selectSearchResults$=this.select(ht=>ht.searchResults),this.selectCategoryProducts$=this.select(ht=>ht.frontpageProducts),this.selectSuggestedProducts$=this.select(ht=>ht.suggestedProducts),this.pagedResponse$=this.select(ht=>ht.pagedResponse),this.selectPage$=this.select(ht=>ht.page),this.selectPageSize$=this.select(ht=>ht.pageSize)}getLoading(){return this.getValue().loading}getSearchTerm(){return this.getValue().searchTerm}getSearchFilters(){return this.getValue().searchFilters}getSearchOverview(){return this.getValue().searchOverview}getSearchResults(){return this.getValue().searchResults}getTotal(){return this.getValue().pagedResponse.total}getHasMore(){return this.getValue().hasMore}getPage(){return this.getValue().page}getPageSize(){return this.getValue().pageSize}getSearchPageSize(){return this.getValue().searchPageSize}getProduct(q){return this.getValue().entities[q]}static#t=this.\u0275fac=function(ht){return new(ht||_)(o.LFG(l))};static#e=this.\u0275prov=o.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})();new o.OlP("PRODUCTS_PAGINATOR",{providedIn:"root",factory:()=>{const _=(0,o.f3M)(i);return new e.Nb(_).withControls().withRange()}});var f=c(9671),t=c(7394),y=c(3997),O=c(8075),G=c(8180),U=c(7299),lt=c(8492),ut=c(2787),Ht=c(9862),A=c(8712),xt=c(3902),tt=c(4222);class ct{constructor(j,q,ht,vt,gt,zt,Ct){this.router=j,this.productStore=q,this.productQuery=ht,this.http=vt,this.contentService=gt,this.categoryService=zt,this.authService=Ct,this.productEndpoint=`${U.environment.apiOrigin}/Product/query`,this.productMemberEndpoint=`${U.environment.apiOrigin}/Product/memberquery`,this.emptyResponse={total:0,products:[]},this.subscription=new t.w0,this.currentSearchId=0,this.subscription.add(this.authService.member.pipe((0,y.x)((H,J)=>!this.authService.getCustomerDetails(J)&&H?.id===J?.id)).subscribe(H=>{this.requestEndpoint=H?this.productMemberEndpoint:this.productEndpoint,this.productStore.remove()}))}ngOnDestroy(){this.subscription.unsubscribe()}searchProducts(j){var q=this;return(0,f.Z)(function*(){const ht=q.productQuery.getSearchOverview(),vt=q.productQuery.getSearchTerm(),gt=q.productQuery.getSearchFilters();if(ht&&vt&&gt?.categoryId)return q.router.navigate([`/${U.environment.urls.products}`]),new Promise(z=>z());!ht&&vt&&gt&&q.updateSearchFilters(void 0),ht||q.categoryService.clearCategories(),j&&q.productStore.resetSearch();const zt=++q.currentSearchId,Ct=ht?q.productQuery.getPageSize():q.productQuery.getSearchPageSize(),H=q.productQuery.getPage(),J=yield q.categoryService.getSelectedCategories();return q.get(zt,H,Ct,ht,vt,J,gt)})()}get(j,q,ht,vt,gt,zt,Ct,H=!0){this.productStore.setLoading(!0);const z={MerchantId:this.contentService.getMerchantId(),PageSize:ht,PageNumber:q,Childless:!1,SearchTerm:gt||"",SortColumn:"priority",SortDirection:"asc",DisplayInStore:!0};if(zt&&zt.length&&(z.CategoryIds=zt),this.authService.isLoggedIn()){const rt=this.authService.getCustomerDetails(this.authService.member.value)?.id;rt&&(z.CustomerId=rt)}const F=this.http.get(this.requestEndpoint,{params:z}).pipe((0,O.X)({count:2,delay:1e3}),(0,G.q)(1));return H?new Promise(rt=>{F.subscribe({next:V=>{this.updateProducts(V,()=>{const Pt=this.productQuery.getSearchResults(),$t=V.products.map(({id:Lt})=>Lt);this.productStore.update({searchResults:Pt.concat($t)}),this.productStore.update({searchOpen:!vt})},j),this.productStore.setLoading(!1),rt()},error:V=>{this.productStore.setLoading(!1),rt()}})}):F}updateSearchTerm(j){this.productStore.update({searchTerm:j})}updateSearchFilters(j){this.productStore.update({searchFilters:j});let q=!1;if(j)for(const[ht,vt]of Object.entries(j))vt===(!0).toString()&&(q=!0),ht===lt.cr&&(q=!0);q&&this.updateSearchTerm("")}updateSearchOverview(j){this.productStore.update({searchOverview:j})}closeSearch(){this.productStore.update({searchOpen:!1})}getCategoryProducts(j,q){var ht=this;return(0,f.Z)(function*(){return new Promise(vt=>{ht.get(null,0,j,!1,"",[q],null,!1).subscribe(gt=>ht.updateProducts(gt,()=>{const zt=[...ht.productStore.getValue().frontpageProducts];zt.push(gt.products.map(({id:Ct})=>Ct)),ht.productStore.update({frontpageProducts:zt}),vt()}))})})()}getSuggestedProducts(j){this.get(null,0,j,!1,"",null,null,!1).subscribe(q=>this.updateProducts(q,()=>{const ht=q.products.map(({id:vt})=>vt);this.productStore.update({suggestedProducts:ht})}))}createProductUrl(j){const q=j.productUrl||j.productDisplayName.toLowerCase().replace(/\s/g,"-");return`/${U.environment.urls.products}/${q}-${j.id}`}updateProducts(j,q,ht){if(ht&&ht<this.currentSearchId)return;this.productStore.update({pagedResponse:j}),this.productStore.add(j.products);const{page:vt,pageSize:gt}=this.productQuery.getValue(),zt=vt+1;this.productStore.updatePage({hasMore:j.total>zt*gt,page:zt}),q&&q()}resetProducts(){this.productStore.update({...x}),this.productStore.setLoading(!1)}static#t=this.\u0275fac=function(q){return new(q||ct)(o.LFG(ut.F0),o.LFG(l),o.LFG(i),o.LFG(Ht.eN),o.LFG(A._s),o.LFG(xt.H),o.LFG(tt.e8))};static#e=this.\u0275prov=o.Yz7({token:ct,factory:ct.\u0275fac,providedIn:"root"})}(0,g.gn)([(0,e.PS)()],ct.prototype,"updateProducts",null)},7472:(Je,Rt,c)=>{"use strict";c.d(Rt,{K:()=>i,o:()=>R});var o=c(8180),e=c(7299),g=c(5879),x=c(9862),l=c(8712);let i=(()=>{class f{constructor(y,O){this.http=y,this.content=O,this.productComponentEndpoint=`${e.environment.apiOrigin}/ProductTag`}load(){const y=this.content.getMerchantId();return this.getProductTag(y)}getProductTag(y){return new Promise(O=>{this.http.get(`${this.productComponentEndpoint}/ProductCategoryTags/${y}`).pipe((0,o.q)(1)).subscribe({next:G=>{this.merchantProductTags=G,O()},error:()=>{console.warn(`Tag service failed to load tags for merchant id ${y}`),this.merchantProductTags=[],O()}})})}getPrimaryTag(y){return this.merchantProductTags?.find(O=>O.id===y)}static#t=this.\u0275fac=function(O){return new(O||f)(g.LFG(x.eN),g.LFG(l._s))};static#e=this.\u0275prov=g.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const R=f=>()=>f.load()},7350:(Je,Rt,c)=>{"use strict";c.d(Rt,{Nc:()=>x.N,Nk:()=>e.N,Q5:()=>e.Q,VG:()=>o.V,Zh:()=>g.Z});var o=c(2365),e=c(9259),g=c(257),x=c(107)},2365:(Je,Rt,c)=>{"use strict";c.d(Rt,{V:()=>R});var o=c(5914),e=c(6676),x=c(7398),l=c(5879),i=c(257);let R=(()=>{class f extends o.AE{constructor(y){super(y),this.store=y,this.selectOptions$=this.select(O=>O.options),this.selectTypes$=this.select(O=>O.types),this.selectEventStore$=this.select(O=>O.eventStore),this.selectShipping$=this.select(O=>O.shipping).pipe((0,x.U)(O=>this.parseMoment(O))),this.selectIsWolt$=this.select(O=>O.shipping.isWolt),this.selectCustomerPackaging$=this.select(O=>O).pipe((0,x.U)(O=>O.types.find(U=>U.id===O.shipping.shippingType)?.info.customerPackaging))}get options(){return this.getValue().options}get types(){return this.getValue().types}get priceModel(){const y=this.getValue().shipping.shippingType;return this.getValue().types.find(O=>O.id===y).info.priceModel}get eventStore(){return this.getValue().eventStore}get shipping(){return this.parseMoment(this.getValue().shipping)}get shippingType(){return this.getValue().types.find(y=>y.id===this.shipping.shippingType)}get isWolt(){return!!this.getValue().shipping.isWolt}parseMoment(y){let O=null;return y.date&&(O=e(y.date)),{...y,date:O}}static#t=this.\u0275fac=function(O){return new(O||f)(l.LFG(i.d))};static#e=this.\u0275prov=l.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})()},9259:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>Ct,Q:()=>H});var o=c(9671),e=c(655),g=c(6223),x=c(5914),l=c(9818),R=c(6676),t=c(7394),y=c(5619),O=c(4036),G=c(836),U=c(8180),lt=c(1374),ut=c(8075),Ht=c(7398),A=c(6093),xt=c(125),tt=c(7299),ct=c(257),_=c(5879),j=c(9862),q=c(2365),ht=c(4222),vt=c(1829),gt=c(8712),zt=c(107);class Ct{constructor(z,F,rt,V,Pt,$t,Lt){this.http=z,this.shippingStore=F,this.shippingQuery=rt,this.authService=V,this.customerDetailService=Pt,this.content=$t,this.woltService=Lt,this.shippingPriceEndpoint=`${tt.environment.apiOrigin}/ShippingPrice/calculate`,this.shippingIdsEndpoint=`${tt.environment.apiOrigin}/Shipping/getShippingIds`,this.shippingEndpoint=`${tt.environment.apiOrigin}/Shipping/getShipping`,this.shippingIntervalsEndpoint=`${tt.environment.apiOrigin}/Shipping/getShippingIntervals`,this.closeDeliveryIntervalsEndpoint=`${tt.environment.apiOrigin}/CloseDeliveryIntervals`,this.subscription=new t.w0,this.formSubscription=new t.w0,this.shippingValid=new y.X(!1),this.addressNotFound=new y.X(!1),this.addressTooFarAway=new y.X(!1),this.addressInvalid=new y.X(!1),this.missingBasketTotal=new y.X(0),this.foundAddress=new y.X(void 0),this.shippingOptions=new y.X(this.shippingQuery.options),this.subscription.add(this.authService.member.pipe((0,G.T)(1)).subscribe(Jt=>{Jt&&Jt.user.userType===A.FW.Assistant&&!this.authService.getCustomerDetails(Jt)||this.filterShippingOptions()}))}ngOnDestroy(){this.subscription.unsubscribe(),this.formSubscription.unsubscribe()}load(){this.shippingStore.setLoading(!0);const z=this.content.getMerchantId();return this.http.get(`${this.closeDeliveryIntervalsEndpoint}?MerchantId=${z}`).pipe((0,U.q)(1)).subscribe({next:F=>{this.closeDeliveryIntervals=F},error:()=>{console.warn("Shipping service close delivery intervals failed to load"),this.closeDeliveryIntervals=[]}}),new Promise(F=>{this.http.get(`${this.shippingIdsEndpoint}/${z}?IsActive=true`).pipe((0,lt.P)()).subscribe({next:rt=>{this.loadShippingOptions(rt),this.filterShippingOptions(),this.shippingStore.setLoading(!1),F(rt)},error:rt=>{console.warn("Shipping service failed to load, used empty response");const V={shippings:[]};this.loadShippingOptions(V),this.filterShippingOptions(),this.shippingStore.setLoading(!1),F(V)}})})}loadShippingOptions(z){const{shippings:F}=z;this.shippingStore.update(rt=>F.find(V=>V.id===rt.shipping?.shippingType)?{...rt,options:F}:{...ct.Z,options:F})}filterShippingOptions(){const z=this.authService.getCustomerDetails(this.authService.member.value);let F=this.shippingQuery.options;z||(F=F.filter(rt=>!rt.membersOnly)),z?.shippings&&(F=F.filter(rt=>z.shippings.find(V=>V===rt.id))),this.shippingOptions.next(F),this.shippingQuery.shipping.shippingType&&!F.find(rt=>rt.id===this.shippingQuery.shipping.shippingType)&&this.resetShipping()}loadShipping(z,F=!1){return F&&this.shippingQuery.types.find(rt=>rt.id===z)?new Promise(rt=>rt()):new Promise(rt=>{const V=this.content.getMerchantId();this.http.get(`${this.shippingEndpoint}/${V}?IsActive=true&Id=${z}`).pipe((0,ut.X)({count:2,delay:2e3}),(0,lt.P)()).subscribe({next:Pt=>{const{shipping:$t}=Pt;this.updateShippingType($t),rt()},error:()=>{this.resetShipping()}})})}loadSelectedShipping(){const z=this.shippingQuery.shipping.shippingType;z&&this.loadShipping(z)}loadShippingDay(z,F){const rt={MerchantId:this.content.getMerchantId(),Id:z,Date:`${F.format("YYYY-MM-DD")}`};return this.http.get(this.shippingIntervalsEndpoint,{params:rt}).pipe((0,ut.X)({count:2,delay:2e3}),(0,Ht.U)(V=>{const Pt=V.shippingDay;Pt.intervalGroups=Pt.intervalGroups.sort(($t,Lt)=>$t.index-Lt.index);for(const $t of Pt.intervalGroups)$t.intervals=$t.intervals.sort((Lt,Jt)=>Lt.index-Jt.index);return Pt}))}closeDeliveryIntervalsForDay(z,F,rt){var V=this;return(0,o.Z)(function*(){const Pt=yield(0,O.z)(V.loadShippingDay(z,F)),$t="HH:mm:ss";for(const Dt of V.closeDeliveryIntervals)if(F.isSame(Dt.date,"date")){const St=R(Dt.start,$t),mt=R(Dt.end,$t);for(const yt of Pt.intervalGroups){const ee=[];for(const B of yt.intervals){const At=R(B.period,$t);At.isValid()&&!At.isBetween(St,mt,"minute","[]")&&ee.push(B)}yt.intervals=ee}}const Lt=R(),{days:Jt,hours:Tt,minutes:$,seconds:pt}=(0,A.VK)(rt);for(const Dt of Pt.intervalGroups)if(Dt.generateIntervals)for(const St of Dt.intervals){const mt=R(St.period.substring(0,5),$t).year(F.year()).month(F.month()).date(F.date()).subtract(Jt,"days").subtract(Tt,"hours").subtract($,"minutes").subtract(pt,"seconds");mt.isValid()&&!Lt.isBefore(mt,"minutes")&&(St.disabled=!0)}return Pt})()}getShippingOptions(){return this.shippingOptions.value}getShippingTypes(){return this.shippingQuery.types}getSelectedShipping(z){return this.shippingQuery.types.find(F=>F?.id===z)}getShipping(){return this.shippingQuery.selectShipping$}getShippingValid(){return this.shippingValid}getAddressNotFound(){return this.addressNotFound}getAddressTooFarAway(){return this.addressTooFarAway}getAddressInvalid(){return this.addressInvalid}getMissingBasketTotal(){return this.missingBasketTotal}getFoundAddress(){return this.foundAddress}saveShipping(z){const F=this.parseMoment(z.getRawValue());this.shippingValid.next(z.valid||z.value.isWolt&&!this.getSelectedShipping(F.shippingType).info.woltUsePriceGroups),this.shippingStore.update(V=>({...V,shipping:F}));const rt=this.customerDetailService.getForm();this.formSubscription&&this.formSubscription.unsubscribe(),this.lockAddress(rt.value.alternativeShipping,F,rt),this.formSubscription=rt.controls.alternativeShipping.valueChanges.subscribe(V=>{this.lockAddress(V,F,rt)})}saveShippingId(z){this.shippingStore.update(F=>({...F,shipping:{...F.shipping,shippingType:z,date:null,time:null}}))}lockAddress(z,F,rt){const{address:V,zipCode:Pt,city:$t}=F,Lt=this.authService.member.getValue(),Jt=this.authService.getCustomerDetails(Lt);let Tt=!0,$=!0,pt=!0;Jt&&(Jt.lockAddress||this.authService.hasAssistant(Lt))&&(Tt=!Jt.address,$=!Jt.zip,pt=!Jt.city),Tt&&(rt.controls.payment.controls.address.enable(),rt.controls.shipping.controls.address.enable()),$&&(rt.controls.payment.controls.zip.enable(),rt.controls.shipping.controls.zip.enable()),pt&&(rt.controls.payment.controls.city.enable(),rt.controls.shipping.controls.city.enable()),this.shippingQuery.priceModel===A.v4.priceGroups&&(z?(Tt&&(rt.controls.shipping.controls.address.setValue(V),rt.controls.shipping.controls.address.disable()),$&&(rt.controls.shipping.controls.zip.setValue(Pt),rt.controls.shipping.controls.zip.disable()),pt&&(rt.controls.shipping.controls.city.setValue($t),rt.controls.shipping.controls.city.disable())):(Tt&&(rt.controls.payment.controls.address.setValue(V),rt.controls.payment.controls.address.disable()),$&&(rt.controls.payment.controls.zip.setValue(Pt),rt.controls.payment.controls.zip.disable()),pt&&(rt.controls.payment.controls.city.setValue($t),rt.controls.payment.controls.city.disable())))}saveEventStore(z){this.shippingStore.update(F=>({...F,eventStore:z}))}calculateShippingPrice(z,F,rt,V,Pt){const $t=`${F} ${rt} ${V}`;this.addressTooFarAway.next(!1),this.missingBasketTotal.next(0);const Lt=this.getSelectedShipping(Pt.value.shippingType);return Lt?Pt.value.isWolt?new Promise(F&&rt&&V?Jt=>{const Tt=this.content.getMerchantId(),pt=Pt.value.date,Dt=Pt.value.time?.period?R(Pt.value.time.period.substring(0,5),"HH:mm:ss").year(pt.year()).month(pt.month()).date(pt.date()).add(15,"minutes").toISOString():null;this.woltService.deliveryInfo(Tt,F,rt,V,Dt).then(St=>{if(R(St.agreedTime).date(),Pt.value.date.date(),St.error!==A.yN.InvalidAddress)return Lt.info.woltUsePriceGroups?void this.calculatePrice(Lt.id,$t,z,Pt).then(()=>{Jt()}):(Pt.controls.price.setValue(St.agreedPrice/100),Jt());this.addressInvalid.next(!0)})}:Jt=>Jt()):this.calculatePrice(Lt.id,$t,z,Pt):new Promise(Jt=>Jt())}updateShippingPrice(z,F){this.missingBasketTotal.next(F),this.shippingValid&&this.shippingStore.update(rt=>{const V={...rt.shipping};return V?(V.price=z,{...rt,shipping:V}):rt})}resetShipping(){this.shippingValid.next(!1);const z=this.shippingOptions.value;z.length<1||this.shippingStore.update(F=>({...ct.Z,options:z,types:F.types}))}createForm(z){const F=(0,xt.zN)(z,{updateOn:"change"});return F.controls.date.value||F.controls.date.disable(),F.controls.date.setValidators([g.kI.required]),F.controls.address.setValidators([g.kI.required]),F.controls.zipCode.setValidators([g.kI.required]),F.controls.city.setValidators([g.kI.required]),F.controls.time.setValidators([g.kI.required]),F}calculatePrice(z,F,rt,V){return new Promise(Pt=>{this.http.post(this.shippingPriceEndpoint,{id:z,destination:F,basketTotal:rt}).pipe((0,U.q)(1)).subscribe($t=>{$t.addressNotFound?this.addressNotFound.next(!0):(this.foundAddress.next($t.destinationAddress),$t.addressTooFarAway?this.addressTooFarAway.next(!0):($t.missingBasketTotal>0&&this.missingBasketTotal.next($t.missingBasketTotal),V.controls.price.setValue($t.shippingPrice),Pt()))})})}parseMoment(z){let F=null;return z.date&&(F=z.date.format()),{...z,date:F}}updateShippingType(z){this.shippingStore.update(F=>{const rt=[...F.types],V=rt.findIndex(Pt=>Pt.id===z.id);if(-1!==V){const Pt=rt[V];return rt[V]=z,F.shipping.shippingType!==z.id||this.validateShipping(Pt,z)?{...F,types:rt}:{...F,types:rt,shipping:ct.Z.shipping}}return{...F,types:[...F.types,z]}})}validateShipping(z,F){return l(z,F)}static#t=this.\u0275fac=function(F){return new(F||Ct)(_.LFG(j.eN),_.LFG(ct.d),_.LFG(q.V),_.LFG(ht.e8),_.LFG(vt.z),_.LFG(gt._s),_.LFG(zt.N))};static#e=this.\u0275prov=_.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"})}(0,e.gn)([(0,x.PS)()],Ct.prototype,"saveShipping",null),(0,e.gn)([(0,x.PS)()],Ct.prototype,"saveEventStore",null),(0,e.gn)([(0,x.PS)()],Ct.prototype,"resetShipping",null),(0,e.gn)([(0,x.PS)()],Ct.prototype,"updateShippingType",null);const H=J=>()=>J.load()},257:(Je,Rt,c)=>{"use strict";c.d(Rt,{Z:()=>x,d:()=>l});var o=c(655),e=c(5914),g=c(5879);const x={types:[],options:[],shipping:{shippingType:null,date:null,time:null,address:"",zipCode:"",city:"",price:null,isWolt:!1,woltUsePriceGroups:!1,fastestPossible:!0},eventStore:null};let l=class Tu extends e.yh{constructor(){super(x)}static#t=this.\u0275fac=function(f){return new(f||Tu)};static#e=this.\u0275prov=g.Yz7({token:Tu,factory:Tu.\u0275fac,providedIn:"root"})};l=(0,o.gn)([(0,e.yC)({name:"shipping",cache:{ttl:864e5}})],l)},107:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>y});var o=c(9671),e=c(6676),x=c(5619),l=c(4036),i=c(6093),R=c(7299),f=c(5879),t=c(9862);let y=(()=>{class O{constructor(U){this.http=U,this.woltEndpoint=`${R.environment.apiOrigin}/Wolt`,this.woltDelivery=new x.X(null)}deliveryInfo(U,lt,ut,Ht,A,xt=!1){var tt=this;return(0,o.Z)(function*(){const ct={merchantId:U.toString(),street:lt,city:ut,postCode:Ht};A&&(ct.deliveryTime=A);const _=yield(0,l.z)(tt.http.get(tt.woltEndpoint,{params:ct}));return xt||(tt.request={merchantId:U.toString(),street:lt,city:ut,postCode:Ht,deliveryTime:A},tt.woltDelivery.next(_)),_})()}newResponse(){var U=this;return(0,o.Z)(function*(){const{merchantId:lt,street:ut,city:Ht,postCode:A,deliveryTime:xt}=U.request,tt=U.woltDelivery.value,ct=yield U.deliveryInfo(lt,ut,Ht,A,xt,!0),_=e(tt.agreedTime),j=e(ct.agreedTime);return tt.agreedPrice===ct.agreedPrice&&_.isSame(j,"minutes")&&ct.error===i.yN.None?void 0:ct})()}save(U){U&&this.woltDelivery.next(U)}resetWoltDelivery(){this.woltDelivery.next(null),this.request=void 0}static#t=this.\u0275fac=function(lt){return new(lt||O)(f.LFG(t.eN))};static#e=this.\u0275prov=f.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"})}return O})()},6574:(Je,Rt,c)=>{"use strict";c.d(Rt,{f:()=>i});var o=c(6814),e=c(7394),g=c(5619),x=c(608),l=c(5879);let i=(()=>{class R{constructor(t){this.document=t,this.dagrofaStores=[x.Pc.MENY,x.Pc.SPAR,x.Pc.MIN_KOBMAND],this.onlineStores=[x.Pc.GASTROLUX,x.Pc.HUMOER_MOEBLER],this.subscription=new e.w0,this.theme=new g.X("")}ngOnDestroy(){this.subscription.unsubscribe()}setTheme(t,y){const G=`${x.X9[y]}-theme`;this.theme.next(G),t.addClass(this.document.body,G),this.isDagrofa=this.dagrofaStores.findIndex(U=>U===y)>-1,this.isOnline=this.onlineStores.findIndex(U=>U===y)>-1}subscribeComponent(t){this.subscription.add(this.theme.subscribe(y=>{t.nativeElement.className+=` ${y}`}))}static#t=this.\u0275fac=function(y){return new(y||R)(l.LFG(o.K0))};static#e=this.\u0275prov=l.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"})}return R})()},413:(Je,Rt,c)=>{"use strict";c.d(Rt,{D:()=>mt});var o=c(6223),e=c(7394),g=c(5619),x=c(1374),l=c(6093),i=c(7985),R=c(125),f=c(2802),O=c(5879),G=c(8712),U=c(4222),lt=c(7592),ut=c(7954),Ht=c(6814),A=c(8862),xt=c(617),tt=c(4187),ct=c(8514),_=c(3025),j=c(5699),q=c(4807);function ht(yt,ee){if(1&yt&&(O.TgZ(0,"div",3),O._uU(1),O.qZA()),2&yt){const B=ee.item;O.xp6(1),O.AsE("",B.firstName," ",B.lastName,"")}}function vt(yt,ee){1&yt&&(O.TgZ(0,"label"),O._uU(1,"Tlf:"),O.qZA())}function gt(yt,ee){1&yt&&(O.TgZ(0,"label"),O._uU(1,"Adresse:"),O.qZA())}function zt(yt,ee){if(1&yt&&(O.TgZ(0,"span"),O._uU(1),O.qZA()),2&yt){const B=O.oxw().item;O.xp6(1),O.Oqu(B.phone)}}function Ct(yt,ee){if(1&yt&&(O.TgZ(0,"span"),O._uU(1),O.qZA()),2&yt){const B=O.oxw().item;O.xp6(1),O.Oqu(B.address)}}function H(yt,ee){if(1&yt&&(O.TgZ(0,"span"),O._uU(1),O.qZA()),2&yt){const B=O.oxw().item;O.xp6(1),O.Oqu(B.dagrofaAccountNumber)}}function J(yt,ee){if(1&yt&&(O.TgZ(0,"div",4)(1,"div",5)(2,"label"),O._uU(3,"Navn:"),O.qZA(),O.YNc(4,vt,2,0,"label",6),O.YNc(5,gt,2,0,"label",6),O.TgZ(6,"label"),O._uU(7,"Kontonr:"),O.qZA()(),O.TgZ(8,"div",7)(9,"span"),O._uU(10),O.qZA(),O.YNc(11,zt,2,1,"span",6),O.YNc(12,Ct,2,1,"span",6),O.YNc(13,H,2,1,"span",6),O.qZA()()),2&yt){const B=ee.item;O.xp6(4),O.Q6J("ngIf",B.phone),O.xp6(1),O.Q6J("ngIf",B.address),O.xp6(5),O.AsE("",B.firstName," ",B.lastName,""),O.xp6(1),O.Q6J("ngIf",B.phone),O.xp6(1),O.Q6J("ngIf",B.address),O.xp6(1),O.Q6J("ngIf",B.dagrofaAccountNumber)}}let z=(()=>{class yt{constructor(){this.required=!0,this.selectedCustomerOptionChange=new O.vpe}set selectedCustomerOption(B){this.selectedCustomerOptionValue=B,this.selectedCustomerOptionChange.emit(B?.id)}get selectedCustomerOption(){return this.selectedCustomerOptionValue}ngOnInit(){this.selectedCustomerOption=this.options.find(B=>B.id===this.initSelection),this.placeholder=this.placeholder??"Klik for at v\xe6lge kunde"}searchFn(B,At){const st=+(B=B.toLowerCase());return!!(st&&At.dagrofaAccountNumber===st||`${At.firstName} ${At.lastName}`.toLowerCase().includes(B)||At.phone?.toLowerCase().includes(B)||At.address?.toLowerCase().includes(B)||At.dagrofaAccountNumber?.toString().includes(B))}clear(){this.selectedCustomerOption=void 0}static#t=this.\u0275fac=function(At){return new(At||yt)};static#e=this.\u0275cmp=O.Xpm({type:yt,selectors:[["app-customer-select"]],inputs:{required:"required",options:"options",initSelection:"initSelection",placeholder:"placeholder"},outputs:{selectedCustomerOptionChange:"selectedCustomerOptionChange"},decls:3,vars:4,consts:[["labelForId","customerId",3,"items","ngModel","searchFn","placeholder","ngModelChange","clear"],["ng-label-tmp","","ng-label-tmp",""],["ng-option-tmp",""],[1,"customer-selected"],[1,"customer-options"],[1,"labels"],[4,"ngIf"],[1,"values"]],template:function(At,st){1&At&&(O.TgZ(0,"ng-select",0),O.NdJ("ngModelChange",function(Ae){return st.selectedCustomerOption=Ae})("clear",function(){return st.clear()}),O.YNc(1,ht,2,2,"ng-template",1),O.YNc(2,J,14,7,"ng-template",2),O.qZA()),2&At&&O.Q6J("items",st.options)("ngModel",st.selectedCustomerOption)("searchFn",st.searchFn)("placeholder",st.placeholder)},dependencies:[Ht.O5,o.JJ,o.On,q.w9,q.ir,q.mR],styles:["[_nghost-%COMP%]   .customer-options[_ngcontent-%COMP%]{display:flex;gap:40px;font-weight:600}[_nghost-%COMP%]   .customer-options[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}return yt})();var F=c(4918);function rt(yt,ee){if(1&yt){const B=O.EpF();O.TgZ(0,"app-icon-button",10),O.NdJ("click",function(){O.CHM(B);const st=O.oxw(2);return O.KtG(st.close())}),O.qZA()}if(2&yt){const B=O.oxw(2);O.Q6J("icon",B.closeIcon)("border",!1)}}function V(yt,ee){if(1&yt&&(O.TgZ(0,"mat-error")(1,"div"),O._UZ(2,"mat-icon",14),O.qZA(),O.TgZ(3,"span"),O._uU(4),O.qZA()()),2&yt){const B=O.oxw().ngLet;O.xp6(4),O.Oqu(B)}}function Pt(yt,ee){if(1&yt&&(O.TgZ(0,"div",11),O._UZ(1,"app-text-input",12)(2,"app-text-input",13),O.YNc(3,V,5,1,"mat-error",0),O.qZA()),2&yt){const B=ee.ngLet;O.oxw();const At=O.MAs(7),st=O.oxw();O.xp6(1),O.Q6J("control",st.form.controls.username)("directive",At)("name",st.usernameLabel)("placeholder",st.usernamePlaceholder),O.xp6(1),O.ekj("no-error",!B),O.Q6J("control",st.form.controls.password)("directive",At)("name",st.passwordLabel)("placeholder",st.passwordPlaceholder),O.xp6(1),O.Q6J("ngIf",B)}}function $t(yt,ee){if(1&yt){const B=O.EpF();O.TgZ(0,"a",15),O.NdJ("click",function(){O.CHM(B);const st=O.oxw(2);return O.KtG(st.goToResetPassword())}),O._uU(1,"Eller klik her for at nulstille og modtage en ny adgangskode"),O.qZA()}}function Lt(yt,ee){if(1&yt){const B=O.EpF();O.ynx(0),O.YNc(1,rt,1,2,"app-icon-button",1),O.TgZ(2,"h1",2),O._uU(3),O.qZA(),O.TgZ(4,"p"),O._uU(5),O.qZA(),O.TgZ(6,"form",3,4),O.NdJ("ngSubmit",function(){O.CHM(B);const st=O.oxw();return O.KtG(st.onLoginSubmit())}),O.YNc(8,Pt,4,11,"div",5),O.ALo(9,"async"),O.YNc(10,$t,2,0,"a",6),O.TgZ(11,"div",7)(12,"app-text-button",8),O.NdJ("click",function(){O.CHM(B);const st=O.oxw();return O.KtG(st.close())}),O._uU(13),O.qZA(),O.TgZ(14,"app-text-button",9),O._uU(15),O.qZA()()(),O.BQk()}if(2&yt){const B=O.oxw();O.xp6(1),O.Q6J("ngIf",B.showButton),O.xp6(2),O.Oqu(B.title),O.xp6(2),O.Oqu(B.description),O.xp6(1),O.Q6J("formGroup",B.form),O.xp6(2),O.Q6J("ngLet",O.lcZ(9,8,B.error)),O.xp6(2),O.Q6J("ngIf",!B.isFandanko),O.xp6(3),O.Oqu(B.closeButton),O.xp6(2),O.Oqu(B.loginButton)}}function Jt(yt,ee){if(1&yt&&(O.TgZ(0,"mat-error")(1,"div"),O._UZ(2,"mat-icon",14),O.qZA(),O.TgZ(3,"span"),O._uU(4),O.qZA()()),2&yt){const B=ee.ngIf;O.xp6(4),O.Oqu(B)}}function Tt(yt,ee){if(1&yt){const B=O.EpF();O.ynx(0),O.TgZ(1,"h1",2),O._uU(2,"Hvilken kunde \xf8nsker du at handle for?"),O.qZA(),O.TgZ(3,"p",16),O._uU(4,' Da du har flere kontokunder, du kan handle for, skal du v\xe6lge hvilken kunde du vil handle for herunder. Klik dern\xe6st p\xe5 "forts\xe6t". '),O.qZA(),O.TgZ(5,"p",17),O._uU(6," OBS. Skal du handle for en anden kunde derefter, skal du logge ud og logge ind igen og v\xe6lge p\xe5 ny hvilken kunde du vil handle for. "),O.qZA(),O.TgZ(7,"app-customer-select",18),O.NdJ("selectedCustomerOptionChange",function(st){O.CHM(B);const ie=O.oxw();return O.KtG(ie.selectCustomer(st))}),O.qZA(),O.YNc(8,Jt,5,1,"mat-error",0),O.ALo(9,"async"),O.TgZ(10,"div",7)(11,"app-text-button",19),O.NdJ("click",function(){O.CHM(B);const st=O.oxw();return O.KtG(st.onCustomerSubmit())}),O._uU(12,"Forts\xe6t"),O.qZA()(),O.BQk()}if(2&yt){const B=O.oxw();O.xp6(7),O.Q6J("options",B.customerOptions),O.xp6(1),O.Q6J("ngIf",O.lcZ(9,2,B.error))}}function $(yt,ee){if(1&yt&&(O.TgZ(0,"div",11),O._UZ(1,"app-text-input",23),O.qZA()),2&yt){O.oxw();const B=O.MAs(6),At=O.oxw();O.xp6(1),O.Q6J("control",At.resetForm.controls.email)("directive",B)("name",At.usernameLabel)("placeholder",At.usernamePlaceholder)}}function pt(yt,ee){if(1&yt){const B=O.EpF();O.ynx(0),O.TgZ(1,"h1",2),O._uU(2),O.qZA(),O._UZ(3,"div",20),O.ALo(4,"sanitizeHtml"),O.TgZ(5,"form",3,21),O.NdJ("ngSubmit",function(){O.CHM(B);const st=O.oxw();return O.KtG(st.onResetSubmit())}),O.YNc(7,$,2,4,"div",5),O.ALo(8,"async"),O.TgZ(9,"div",7)(10,"app-text-button",9),O._uU(11,"Nulstil"),O.qZA()(),O.TgZ(12,"a",22),O.NdJ("click",function(){O.CHM(B);const st=O.oxw();return O.KtG(st.goToLogin())}),O._uU(13,"Tilbage"),O.qZA()(),O.BQk()}if(2&yt){const B=O.oxw();O.xp6(2),O.Oqu(B.resetPasswordTitle),O.xp6(1),O.Q6J("innerHTML",O.lcZ(4,4,B.resetPasswordDescription),O.oJD),O.xp6(2),O.Q6J("formGroup",B.resetForm),O.xp6(2),O.Q6J("ngLet",O.lcZ(8,6,B.error))}}function Dt(yt,ee){if(1&yt){const B=O.EpF();O.ynx(0),O.TgZ(1,"h1",2),O._uU(2),O.qZA(),O._UZ(3,"div",24),O.ALo(4,"sanitizeHtml"),O.TgZ(5,"app-text-button",25),O.NdJ("click",function(){O.CHM(B);const st=O.oxw();return O.KtG(st.close())}),O._uU(6),O.qZA(),O.BQk()}if(2&yt){const B=O.oxw();O.xp6(2),O.Oqu(B.passwordWasResetTitle),O.xp6(1),O.Q6J("innerHTML",O.lcZ(4,3,B.passwordWasResetDescription),O.oJD),O.xp6(3),O.Oqu(B.closeButton)}}var St=function(yt){return yt[yt.Login=0]="Login",yt[yt.CustomerSelect=1]="CustomerSelect",yt[yt.ResetPassword=2]="ResetPassword",yt[yt.PasswordWasReset=3]="PasswordWasReset",yt}(St||{});let mt=(()=>{class yt extends f.I{constructor(B,At,st,ie){super(B,"account"),this.authService=At,this.dialogRef=st,this.mParticle=ie,this.subscription=new e.w0,this.closeIcon=i.qq.bigCross,this.errorIcon=i.Ym.error,this.showButton=!1,this.loading=!1,this.states=St,this.title=this.content.get("loginTitleText")||"Log ind som kontokunde",this.description=this.content.get("loginDescriptionText")||"Er du kontokunde hos os, kan du logge ind her med de loginoplysninger, du har modtaget i din velkomst e-mail. \xd8nsker du at blive kontokunde, kan du kontakte os via kontaktoplysningerne nederst p\xe5 siden.",this.usernameLabel=this.content.get("usernameLabelText")||"Brugernavn",this.usernamePlaceholder=this.content.get("usernamePlaceholderText")||"Indtast dit brugernavn",this.passwordLabel=this.content.get("passwordLabelText")||"Adgangskode",this.passwordPlaceholder=this.content.get("passwordPlaceholderText")||"Indtast din adgangskode",this.loginButton=this.content.get("loginDialogButtonText")||"Log ind",this.closeButton=this.content.get("closeButtonText")||"Luk",this.resetPasswordTitle="Nulstilling af adgangskode",this.resetPasswordDescription=this.content.get("resetPasswordDescriptionText")||'<p>N\xe5r du klikker p\xe5 "Nulstil" herunder, modtager du en ny adgangskode som du skal bruge fremadrettet, n\xe5r du vil logge ind.</p>\n<p>Af sikkerhedsm\xe6ssige \xe5rsager, sendes adgangskoden til den mailadresse, du logger ind med.</p>\n<p>Mail-afsenderen af den nye kode hedder: support@nxtcatersys.dk</p>',this.passwordWasResetTitle="Din adgangskode er blevet nulstillet",this.passwordWasResetDescription=this.content.get("passwordWasResetDescriptionText")||"<p>Tak for din anmodning.</p>\n<p>Vi har sendt en ny adgangskode afsted til den mailadresse, du bruger til at logge ind med.</p>\n<p>Logger den ikke i din indbakke, anbefaler vi dig, at du tjekker din spam-indbakke.</p>",this.isFandanko=this.contentService.getMerchant().type===l.Pc.FANDANKO}ngOnInit(){this.state=St.Login,this.form=this.createForm({username:"",password:""}),this.resetForm=this.createResetForm({email:""}),this.errorSubject=new g.X(void 0),this.error=this.errorSubject.asObservable(),this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1})),this.mParticle?.viewLogin()}ngOnDestroy(){this.subscription.unsubscribe()}goToLogin(){this.state=St.Login}goToResetPassword(){this.mParticle?.viewResetPassword(),this.state=St.ResetPassword}onLoginSubmit(){if(this.form.invalid)return;this.loading=!0;const{username:B,password:At}=this.form.value;this.authService.login({username:B,password:At}).pipe((0,x.P)()).subscribe({next:st=>{if(this.loading=!1,st&&this.authService.hasAssistant(st))return this.errorSubject.next(void 0),this.dialogRef.disableClose=!0,this.customerOptions=st.user.customers,void(this.state=St.CustomerSelect);this.close()},error:st=>{let ie;this.loading=!1,ie=401===st.status?this.contentService.errorMessages.invalidLogin:this.contentService.errorMessages.somethingWentWrong,this.errorSubject.next(ie)}})}onResetSubmit(){if(this.resetForm.invalid)return;const{email:B}=this.resetForm.value;this.authService.resetPassword(B),this.state=St.PasswordWasReset}selectCustomer(B){this.customer=B?this.customerOptions.find(At=>At.id===B):void 0}onCustomerSubmit(){this.customer?(this.authService.selectCustomer(this.customer),this.close()):this.errorSubject.next(this.contentService.errorMessages?.pickCustomer??"V\xe6lg en kunde")}close(){this.dialogRef.close()}createForm(B){const At=(0,R.Tg)(B,{updateOn:"submit"});return At.controls.username.setValidators([o.kI.required]),At.controls.password.setValidators([o.kI.required]),At}createResetForm(B){const At=(0,R.Tg)(B,{updateOn:"submit"});return At.controls.email.setValidators([o.kI.required]),At}static#t=this.\u0275fac=function(At){return new(At||yt)(O.Y36(G._s),O.Y36(U.e8),O.Y36(lt.hV),O.Y36(ut.p$,8))};static#e=this.\u0275cmp=O.Xpm({type:yt,selectors:[["app-login-dialog"]],features:[O.qOj],decls:4,vars:4,consts:[[4,"ngIf"],[3,"icon","border","click",4,"ngIf"],["mat-dialog-title",""],["novalidate","",3,"formGroup","ngSubmit"],["loginForm","ngForm"],["mat-dialog-content","",4,"ngLet"],["class","reset-password",3,"click",4,"ngIf"],[1,"dialog-options"],["type","button","color","accent",1,"close-button",3,"click"],[1,"submit-button"],[3,"icon","border","click"],["mat-dialog-content",""],[3,"control","directive","name","placeholder"],["type","password",3,"control","directive","name","placeholder"],["aria-hidden","false","aria-label","error","svgIcon","error"],[1,"reset-password",3,"click"],[1,"customer-description"],[1,"customer-disclaimer"],["id","customer-options",3,"options","selectedCustomerOptionChange"],[1,"submit-button",3,"click"],[1,"reset-description","rich-text",3,"innerHTML"],["resetDirective","ngForm"],[1,"return-to-login",3,"click"],["type","email",3,"control","directive","name","placeholder"],[1,"reset-description",3,"innerHTML"],["type","button",1,"close-button",3,"click"]],template:function(At,st){1&At&&(O.YNc(0,Lt,16,10,"ng-container",0),O.YNc(1,Tt,13,4,"ng-container",0),O.YNc(2,pt,14,8,"ng-container",0),O.YNc(3,Dt,7,5,"ng-container",0)),2&At&&(O.Q6J("ngIf",st.state===st.states.Login),O.xp6(1),O.Q6J("ngIf",st.state===st.states.CustomerSelect),O.xp6(1),O.Q6J("ngIf",st.state===st.states.ResetPassword),O.xp6(1),O.Q6J("ngIf",st.state===st.states.PasswordWasReset))},dependencies:[Ht.O5,o._Y,o.JL,o.sg,A.h,xt.Hw,tt.nI,lt.YS,lt.Rb,ct.h,_.t,j.r,z,Ht.Ov,F.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:360px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%}}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:600;margin:12px 0}[_nghost-%COMP%]   p[_ngcontent-%COMP%]{margin:4px 0 16px}[_nghost-%COMP%]   .reset-description[_ngcontent-%COMP%]{margin-top:-12px}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:fixed;right:32px;top:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   mat-error[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:75%;margin:8px 0 16px;border:1px solid var(--accent-color);border-radius:4px;color:inherit}[_nghost-%COMP%]   mat-error[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;align-items:center;justify-content:center;align-self:stretch;box-sizing:border-box;max-width:60px;padding:0 8px;margin:-1px;background-color:var(--warn-color);border-top-left-radius:4px;border-bottom-left-radius:4px}[_nghost-%COMP%]   mat-error[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:1 1 auto;padding:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]{flex:1 0 auto}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]   app-text-input[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .mat-dialog-content[_ngcontent-%COMP%]   .no-error[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]{margin-top:24px}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#000;font-weight:600;cursor:pointer}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   a.reset-password[_ngcontent-%COMP%]{font-size:.75em;margin-bottom:16px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   a.return-to-login[_ngcontent-%COMP%]{font-size:.9em;margin-top:16px}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;height:44px;width:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:36px}}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 24px}}[_nghost-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   app-customer-select[_ngcontent-%COMP%]{margin-bottom:17px}"]})}return yt})()},303:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>ut});var o=c(7954),e=c(2802),g=c(7299),x=c(5879),l=c(4222),i=c(1952),R=c(6574),f=c(6814),t=c(8862),y=c(617);function O(Ht,A){if(1&Ht){const xt=x.EpF();x.TgZ(0,"button",5),x.NdJ("click",function(){x.CHM(xt);const ct=x.oxw(2);return x.KtG(ct.openLoginDialog())}),x.TgZ(1,"span"),x._uU(2),x.qZA(),x._UZ(3,"mat-icon",6),x.qZA()}if(2&Ht){const xt=x.oxw(2);x.xp6(2),x.Oqu(xt.loginButton)}}function G(Ht,A){if(1&Ht){const xt=x.EpF();x.TgZ(0,"button",7),x.NdJ("click",function(){x.CHM(xt);const ct=x.oxw(2);return x.KtG(ct.logout())}),x.TgZ(1,"span"),x._uU(2),x.qZA(),x._UZ(3,"mat-icon",8),x.qZA()}if(2&Ht){const xt=x.oxw(2);x.xp6(2),x.Oqu(xt.logoutButton)}}function U(Ht,A){if(1&Ht&&(x.TgZ(0,"div",9),x._uU(1),x.qZA()),2&Ht){const xt=x.oxw().ngLet;x.xp6(1),x.hij("Logget ind som: ",xt.userName,"")}}function lt(Ht,A){if(1&Ht&&(x.ynx(0),x.TgZ(1,"div",1),x.YNc(2,O,4,1,"button",2),x.YNc(3,G,4,1,"button",3),x.qZA(),x.YNc(4,U,2,1,"div",4),x.BQk()),2&Ht){const xt=A.ngLet;x.xp6(2),x.Q6J("ngIf",!xt),x.xp6(1),x.Q6J("ngIf",xt),x.xp6(1),x.Q6J("ngIf",xt)}}let ut=(()=>{class Ht extends e.I{get alternativeBackground(){return this.altBackground}constructor(xt,tt,ct,_,j){super(xt,"account"),this.authService=tt,this.dialogService=ct,this.themeService=_,this.elRef=j,this.ordersUrl=`/${g.environment.urls.orders}`,this.loginButton=this.content.get("menuLoginButtonText")||"Kontokunde - log ind",this.logoutButton=this.content.get("menuLogoutButtonText")||"Log ud",this.altBackground=this.contentService.get(o.NS.header).get("backgroundColor")===(!0).toString()}ngOnInit(){this.member=this.authService.member}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openLoginDialog(){this.dialogService.openLoginDialog()}logout(){this.authService.logout()}static#t=this.\u0275fac=function(tt){return new(tt||Ht)(x.Y36(o._s),x.Y36(l.e8),x.Y36(i.x),x.Y36(R.f),x.Y36(x.SBq))};static#e=this.\u0275cmp=x.Xpm({type:Ht,selectors:[["app-member-bar"]],hostVars:2,hostBindings:function(tt,ct){2&tt&&x.ekj("alternative-background",ct.alternativeBackground)},features:[x.qOj],decls:2,vars:3,consts:[[4,"ngLet"],[1,"controls"],["class","unstyled-button login",3,"click",4,"ngIf"],["class","unstyled-button logout",3,"click",4,"ngIf"],["class","logged-in",4,"ngIf"],[1,"unstyled-button","login",3,"click"],["aria-hidden","true","svgIcon","lock_open"],[1,"unstyled-button","logout",3,"click"],["aria-hidden","true","svgIcon","lock"],[1,"logged-in"]],template:function(tt,ct){1&tt&&(x.YNc(0,lt,5,3,"ng-container",0),x.ALo(1,"async")),2&tt&&x.Q6J("ngLet",x.lcZ(1,1,ct.member))},dependencies:[f.O5,t.h,y.Hw,f.Ov],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;width:auto;font-size:.8em;font-weight:600}.spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%], .min-kobmand-theme[_nghost-%COMP%], .fandanko-theme[_nghost-%COMP%]{color:#fff}.spar-theme[_nghost-%COMP%]     svg, .meny-theme[_nghost-%COMP%]     svg, .min-kobmand-theme[_nghost-%COMP%]     svg, .fandanko-theme[_nghost-%COMP%]     svg{fill:#fff}.alternative-background[_nghost-%COMP%]{color:#fff}.alternative-background[_nghost-%COMP%]     svg{fill:#fff}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;cursor:pointer;text-decoration:none}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link{color:inherit}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited{color:inherit}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#878787}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:inherit}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{display:flex;align-items:center;height:24px;outline:none}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]:active{transform:unset}[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:18px;width:18px;margin:0 0 4px 2px}[_nghost-%COMP%]   .logged-in[_ngcontent-%COMP%]{padding:0 8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{font-size:1em;font-weight:600}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{background-color:#000;color:#fff;border-bottom-left-radius:8px}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{order:1}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:24px;width:24px;margin:0 8px 4px 0}[_nghost-%COMP%]   button.login[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%]   button.logout[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%]     mat-icon svg{fill:#fff}}"]})}return Ht})()},8810:(Je,Rt,c)=>{"use strict";c.d(Rt,{S:()=>lt});var o=c(7394),e=c(7398),g=c(6093),x=c(5879),l=c(7954),i=c(8750),R=c(6814),f=c(8862),t=c(5143),y=c(586);function O(ut,Ht){if(1&ut&&x._UZ(0,"app-full-banner",2),2&ut){const A=x.oxw().ngLet,xt=x.oxw();x.Q6J("content",A[0])("isMobile",xt.isMobile)}}function G(ut,Ht){if(1&ut&&x._UZ(0,"app-split-banner",2),2&ut){const A=x.oxw().ngLet,xt=x.oxw();x.Q6J("content",A)("isMobile",xt.isMobile)}}function U(ut,Ht){if(1&ut&&(x.ynx(0),x.YNc(1,O,1,2,"app-full-banner",1),x.YNc(2,G,1,2,"app-split-banner",1),x.BQk()),2&ut){const A=Ht.ngLet;x.xp6(1),x.Q6J("ngIf",1===(null==A?null:A.length)),x.xp6(1),x.Q6J("ngIf",(null==A?null:A.length)>1)}}let lt=(()=>{class ut{constructor(A,xt,tt,ct){this.bannerService=A,this.content=xt,this.cdr=tt,this.deviceService=ct,this.hidden=!1,this.subscription=new o.w0}ngOnInit(){this.isMobile=this.deviceService.isMobile(),this.activeBanners=this.bannerService.getBanners(this.content.getMerchantId()).pipe((0,e.U)(A=>{if(!A?.length)return[];let xt=[A[0]];const tt=xt[0].type;if(tt===g.$.Left||tt===g.$.Right){const ct=this.findPartner(A);ct&&(xt.push(ct),xt=xt.sort((_,j)=>j.type-_.type))}return xt}))}ngAfterContentInit(){this.subscription.add(this.activeBanners.subscribe(A=>{A?.length||(this.hidden=!0),this.cdr.detectChanges()}))}ngOnDestroy(){this.subscription.unsubscribe()}findPartner(A){const tt=A[0].type===g.$.Left?g.$.Right:g.$.Left;for(const ct of A)if(ct.type===tt)return ct}static#t=this.\u0275fac=function(xt){return new(xt||ut)(x.Y36(l.QD),x.Y36(l._s),x.Y36(x.sBO),x.Y36(i.x0))};static#e=this.\u0275cmp=x.Xpm({type:ut,selectors:[["app-banner"]],hostVars:2,hostBindings:function(xt,tt){2&xt&&x.ekj("hidden",tt.hidden)},decls:2,vars:3,consts:[[4,"ngLet"],[3,"content","isMobile",4,"ngIf"],[3,"content","isMobile"]],template:function(xt,tt){1&xt&&(x.YNc(0,U,3,2,"ng-container",0),x.ALo(1,"async")),2&xt&&x.Q6J("ngLet",x.lcZ(1,1,tt.activeBanners))},dependencies:[R.O5,f.h,t.H,y.w,R.Ov],styles:["[_nghost-%COMP%]{display:block;height:-moz-fit-content;height:fit-content;max-width:var(--nxt-width)}.hidden[_nghost-%COMP%]{display:none}"]})}return ut})()},5143:(Je,Rt,c)=>{"use strict";c.d(Rt,{H:()=>y});var o=c(5879),e=c(6814),g=c(3991);function x(O,G){if(1&O){const U=o.EpF();o.TgZ(0,"img",4),o.NdJ("error",function(){o.CHM(U);const ut=o.oxw(2);return o.KtG(ut.imageError())}),o.ALo(1,"cms"),o.qZA()}if(2&O){const U=o.oxw(2);o.Q6J("src",o.Dn7(1,2,U.isMobile&&U.content.mobileImage?U.content.mobileImage:U.content.image,75,768),o.LSH)("alt",U.content.title)}}function l(O,G){if(1&O&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&O){const U=o.oxw(2);o.xp6(1),o.Oqu(U.content.title)}}function i(O,G){if(1&O&&(o.TgZ(0,"a",2),o.YNc(1,x,2,6,"img",3),o.YNc(2,l,2,1,"span",1),o.qZA()),2&O){const U=o.oxw();o.Q6J("href",U.content.link,o.LSH)("target",U.content.target),o.xp6(1),o.Q6J("ngIf",U.content.image),o.xp6(1),o.Q6J("ngIf",!U.content.image)}}function R(O,G){if(1&O){const U=o.EpF();o.TgZ(0,"img",4),o.NdJ("error",function(){o.CHM(U);const ut=o.oxw(2);return o.KtG(ut.imageError())}),o.ALo(1,"cms"),o.qZA()}if(2&O){const U=o.oxw(2);o.Q6J("src",o.Dn7(1,2,U.isMobile&&U.content.mobileImage?U.content.mobileImage:U.content.image,75,768),o.LSH)("alt",U.content.title)}}function f(O,G){if(1&O&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&O){const U=o.oxw(2);o.xp6(1),o.Oqu(U.content.title)}}function t(O,G){if(1&O&&(o.TgZ(0,"div"),o.YNc(1,R,2,6,"img",3),o.YNc(2,f,2,1,"span",1),o.qZA()),2&O){const U=o.oxw();o.xp6(1),o.Q6J("ngIf",U.content.image),o.xp6(1),o.Q6J("ngIf",!U.content.image)}}let y=(()=>{class O{imageError(){this.content.image=""}static#t=this.\u0275fac=function(lt){return new(lt||O)};static#e=this.\u0275cmp=o.Xpm({type:O,selectors:[["app-full-banner"]],inputs:{content:"content",isMobile:"isMobile"},decls:2,vars:2,consts:[[3,"href","target",4,"ngIf"],[4,"ngIf"],[3,"href","target"],[3,"src","alt","error",4,"ngIf"],[3,"src","alt","error"]],template:function(lt,ut){1&lt&&(o.YNc(0,i,3,4,"a",0),o.YNc(1,t,3,2,"div",1)),2&lt&&(o.Q6J("ngIf",ut.content.link),o.xp6(1),o.Q6J("ngIf",!ut.content.link))},dependencies:[e.O5,g.I],styles:["[_nghost-%COMP%]{display:inline-flex;justify-content:center;align-items:center;height:-moz-fit-content;height:fit-content;max-width:var(--nxt-width)}@media only screen and (min-width: 1024px){[_nghost-%COMP%]{width:80vw;max-height:460px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:90vw;max-height:280px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100vw}}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:auto;max-height:inherit;padding:6px;border-radius:8px;background:white;box-shadow:0 0 10px 1px #0000001a}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > *[_ngcontent-%COMP%]{padding:0;border-radius:0}}[_nghost-%COMP%] > *[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:inherit;max-width:100%;max-height:inherit;object-fit:contain;border-radius:8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > *[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:0}}[_nghost-%COMP%] > *[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.5em;font-weight:700}"]})}return O})()},586:(Je,Rt,c)=>{"use strict";c.d(Rt,{w:()=>A});var o=c(6939),e=c(6093),g=c(5879),x=c(6574),l=c(6814),i=c(8514),R=c(3991);const f=function(xt){return{$implicit:xt}};function t(xt,tt){if(1&xt&&(g.TgZ(0,"a",6),g.GkF(1,7),g.qZA()),2&xt){const ct=g.oxw(2),_=g.MAs(3);g.Q6J("href",ct.leftBanner.link,g.LSH)("target",ct.leftBanner.target),g.xp6(1),g.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",g.VKq(4,f,ct.leftBanner))}}function y(xt,tt){if(1&xt&&(g.TgZ(0,"div"),g.GkF(1,7),g.qZA()),2&xt){const ct=g.oxw(2),_=g.MAs(3);g.xp6(1),g.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",g.VKq(2,f,ct.leftBanner))}}function O(xt,tt){if(1&xt&&(g.TgZ(0,"div",3),g.YNc(1,t,2,6,"a",4),g.YNc(2,y,2,4,"div",5),g.qZA()),2&xt){const ct=g.oxw();g.xp6(1),g.Q6J("ngIf",ct.leftBanner.link),g.xp6(1),g.Q6J("ngIf",!ct.leftBanner.link)}}function G(xt,tt){if(1&xt&&(g.TgZ(0,"a",6),g.GkF(1,7),g.qZA()),2&xt){const ct=g.oxw(2),_=g.MAs(3);g.Q6J("href",ct.rightBanner.link,g.LSH)("target",ct.rightBanner.target),g.xp6(1),g.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",g.VKq(4,f,ct.rightBanner))}}function U(xt,tt){if(1&xt&&(g.TgZ(0,"div"),g.GkF(1,7),g.qZA()),2&xt){const ct=g.oxw(2),_=g.MAs(3);g.xp6(1),g.Q6J("ngTemplateOutlet",_)("ngTemplateOutletContext",g.VKq(2,f,ct.rightBanner))}}function lt(xt,tt){if(1&xt&&(g.TgZ(0,"div",8),g.YNc(1,G,2,6,"a",4),g.YNc(2,U,2,4,"div",5),g.qZA()),2&xt){const ct=g.oxw();g.xp6(1),g.Q6J("ngIf",ct.rightBanner.link),g.xp6(1),g.Q6J("ngIf",!ct.rightBanner.link)}}function ut(xt,tt){if(1&xt&&(g.TgZ(0,"app-text-button"),g._uU(1),g.qZA()),2&xt){const ct=g.oxw().$implicit;g.xp6(1),g.Oqu(ct.textboxButton?ct.textboxButton:"Se mere")}}function Ht(xt,tt){if(1&xt&&(g._UZ(0,"img",9),g.ALo(1,"cms"),g.TgZ(2,"div")(3,"h2"),g._uU(4),g.qZA(),g.YNc(5,ut,2,1,"app-text-button",5),g.qZA()),2&xt){const ct=tt.$implicit,_=g.oxw();g.Q6J("src",g.Dn7(1,4,_.isMobile&&ct.mobileImage?ct.mobileImage:ct.image,75,768),g.LSH)("alt",ct.title),g.xp6(4),g.Oqu(ct.title),g.xp6(1),g.Q6J("ngIf",ct.link)}}let A=(()=>{class xt{constructor(ct,_){this.themeService=ct,this.elRef=_,this.placeholder=o.b}ngOnInit(){this.leftBanner=this.content.find(ct=>ct?.type===e.$.Left),this.rightBanner=this.content.find(ct=>ct?.type===e.$.Right)}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}static#t=this.\u0275fac=function(_){return new(_||xt)(g.Y36(x.f),g.Y36(g.SBq))};static#e=this.\u0275cmp=g.Xpm({type:xt,selectors:[["app-split-banner"]],inputs:{content:"content",isMobile:"isMobile"},decls:4,vars:2,consts:[["class","left-banner",4,"ngIf"],["class","right-banner",4,"ngIf"],["contentTemplate",""],[1,"left-banner"],[3,"href","target",4,"ngIf"],[4,"ngIf"],[3,"href","target"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"right-banner"],[3,"src","alt"]],template:function(_,j){1&_&&(g.YNc(0,O,3,2,"div",0),g.YNc(1,lt,3,2,"div",1),g.YNc(2,Ht,6,8,"ng-template",null,2,g.W1O)),2&_&&(g.Q6J("ngIf",j.leftBanner),g.xp6(1),g.Q6J("ngIf",j.rightBanner))},dependencies:[l.O5,l.tP,i.h,R.I],styles:["[_nghost-%COMP%]{display:grid;max-width:var(--nxt-width);grid-template-columns:1fr 1fr;gap:20px}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}@media only screen and (min-width: 1024px){[_nghost-%COMP%]{width:80vw;height:460px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:90vw;height:280px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{display:flex;flex-direction:column;width:100vw}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{height:280px}}.meny-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:Veneer;font-size:2em;padding-top:2px}@media only screen and (min-width: 768px) and (max-width: 1024px){.meny-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.5em}}@media only screen and (min-width: 0px) and (max-width: 768px){.meny-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.5em}}.clpartyservice-theme[_nghost-%COMP%] > *[_ngcontent-%COMP%]{background-color:var(--background-color);color:#fff}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{box-sizing:border-box;height:inherit;padding:6px;border-radius:6px;background:white;box-shadow:0 0 10px 1px #0000001a}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > *[_ngcontent-%COMP%]{padding:0;border-radius:0}}[_nghost-%COMP%] > *.left-banner[_ngcontent-%COMP%]{grid-column:1}[_nghost-%COMP%] > *.right-banner[_ngcontent-%COMP%]{grid-column:2}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;object-fit:cover;border-radius:4px}@media only screen and (min-width: 1024px){[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:360px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:200px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:200px}}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;height:100%;padding:8px}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;width:70%;display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2em}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2em}}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{font-size:1.35em;width:146px;height:42px}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1.5em;font-weight:700}"]})}return xt})()},2305:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>l});var o=c(5879),e=c(6223),g=c(4021);const x=["*"];let l=(()=>{class i{constructor(){this.labelPosition="before",this.disabled=!1,this.checkedValue=!1,this.checkedChange=new o.vpe}get checked(){return this.checkedValue}set checked(f){this.checkedValue=f,this.checkedChange.emit(this.checkedValue)}static#t=this.\u0275fac=function(t){return new(t||i)};static#e=this.\u0275cmp=o.Xpm({type:i,selectors:[["app-checkbox-button"]],inputs:{disabled:"disabled",checked:"checked"},outputs:{checkedChange:"checkedChange"},ngContentSelectors:x,decls:2,vars:3,consts:[["color","primary",3,"ngModel","labelPosition","disabled","ngModelChange"]],template:function(t,y){1&t&&(o.F$t(),o.TgZ(0,"mat-checkbox",0),o.NdJ("ngModelChange",function(G){return y.checked=G}),o.Hsn(1),o.qZA()),2&t&&o.Q6J("ngModel",y.checked)("labelPosition",y.labelPosition)("disabled",y.disabled)},dependencies:[e.JJ,e.On,g.FC],styles:["[_nghost-%COMP%]{display:inline-block;width:100%;height:40px;line-height:40px}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{box-sizing:border-box;width:inherit;height:inherit;line-height:inherit}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout{box-sizing:border-box;width:inherit;height:inherit;padding:0 16px;overflow:hidden;text-overflow:ellipsis;background-color:var(--accent-lighter-color);border:1px solid var(--accent-darker-color);border-radius:4px}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout  .mat-checkbox-label{box-sizing:border-box;line-height:inherit;margin-right:8px;text-overflow:ellipsis;overflow:hidden}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout  .mat-checkbox-inner-container{height:28px;width:28px;margin:auto 0 auto auto}[_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout  .mat-checkbox-inner-container  .mat-checkbox-frame, [_nghost-%COMP%]   mat-checkbox[_ngcontent-%COMP%]  .mat-checkbox-layout  .mat-checkbox-inner-container  .mat-checkbox-background{border-radius:16px}"]})}return i})()},5699:(Je,Rt,c)=>{"use strict";c.d(Rt,{r:()=>O});var o=c(5879),e=c(6814),g=c(4505),x=c(617);function l(G,U){1&G&&o.GkF(0)}function i(G,U){if(1&G&&(o.TgZ(0,"button",3),o._UZ(1,"mat-icon",4),o.YNc(2,l,1,0,"ng-container",5),o.qZA()),2&G){const lt=o.oxw(),ut=o.MAs(3);o.ekj("border",lt.border),o.Q6J("type",lt.type)("disabled",lt.disabled),o.xp6(1),o.ekj("small",lt.smallIcon),o.Q6J("svgIcon",lt.icon),o.xp6(1),o.Q6J("ngTemplateOutlet",ut)}}function R(G,U){1&G&&o.GkF(0)}function f(G,U){if(1&G&&(o.TgZ(0,"a",6),o._UZ(1,"mat-icon",4),o.YNc(2,R,1,0,"ng-container",5),o.qZA()),2&G){const lt=o.oxw(),ut=o.MAs(3);o.ekj("border",lt.border),o.Q6J("disabled",lt.disabled)("href",lt.href,o.LSH),o.xp6(1),o.ekj("small",lt.smallIcon),o.Q6J("svgIcon",lt.icon),o.xp6(1),o.Q6J("ngTemplateOutlet",ut)}}function t(G,U){1&G&&(o.TgZ(0,"span",7),o.Hsn(1),o.qZA())}const y=["*"];let O=(()=>{class G{constructor(){this.tabindex=-1,this.disabled=!1,this.smallIcon=!1,this.border=!0,this.type="submit"}static#t=this.\u0275fac=function(ut){return new(ut||G)};static#e=this.\u0275cmp=o.Xpm({type:G,selectors:[["app-icon-button"]],hostVars:1,hostBindings:function(ut,Ht){2&ut&&o.Ikx("tabindex",Ht.tabindex)},inputs:{disabled:"disabled",smallIcon:"smallIcon",icon:"icon",border:"border",href:"href",type:"type"},ngContentSelectors:y,decls:4,vars:2,consts:[["class","icon-button","mat-flat-button","",3,"type","border","disabled",4,"ngIf"],["class","icon-button","mat-flat-button","",3,"border","disabled","href",4,"ngIf"],["content",""],["mat-flat-button","",1,"icon-button",3,"type","disabled"],[3,"svgIcon"],[4,"ngTemplateOutlet"],["mat-flat-button","",1,"icon-button",3,"disabled","href"],[1,"screen-reader-only"]],template:function(ut,Ht){1&ut&&(o.F$t(),o.YNc(0,i,3,8,"button",0),o.YNc(1,f,3,8,"a",1),o.YNc(2,t,2,0,"ng-template",null,2,o.W1O)),2&ut&&(o.Q6J("ngIf",!Ht.href),o.xp6(1),o.Q6J("ngIf",Ht.href))},dependencies:[e.O5,e.tP,g.eB,g.Nr,x.Hw],styles:["[_nghost-%COMP%]{display:inline-block;box-sizing:border-box;height:64px;min-height:36px;width:64px;min-width:36px}[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;min-width:100%;min-height:100%;border-radius:256px;padding:0;appearance:none;-webkit-appearance:none;-moz-appearance:none;cursor:pointer;align-items:center;justify-content:center}[_nghost-%COMP%]   .icon-button.border[_ngcontent-%COMP%]{border:1px solid var(--accent-color)}[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]:hover{border-color:#000}[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]:disabled{pointer-events:none;cursor:none}[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]  .mat-button-wrapper{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:flex;height:100%;width:100%}[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]   mat-icon.small[_ngcontent-%COMP%]{height:50%;width:50%}"]})}return G})()},8514:(Je,Rt,c)=>{"use strict";c.d(Rt,{h:()=>lt});var o=c(5879),e=c(6574),g=c(6814),x=c(2787),l=c(4505);function i(ut,Ht){1&ut&&o.GkF(0)}function R(ut,Ht){if(1&ut&&(o.TgZ(0,"button",4),o.YNc(1,i,1,0,"ng-container",5),o.qZA()),2&ut){const A=o.oxw(),xt=o.MAs(4);o.Q6J("type",A.type)("disabled",A.disabled)("color",A.color),o.xp6(1),o.Q6J("ngTemplateOutlet",xt)}}function f(ut,Ht){1&ut&&o.GkF(0)}function t(ut,Ht){if(1&ut&&(o.TgZ(0,"a",6),o.YNc(1,f,1,0,"ng-container",5),o.qZA()),2&ut){const A=o.oxw(),xt=o.MAs(4);o.Q6J("type",A.type)("disabled",A.disabled)("color",A.color)("target",A.target)("routerLink",A.routerLink),o.xp6(1),o.Q6J("ngTemplateOutlet",xt)}}function y(ut,Ht){1&ut&&o.GkF(0)}function O(ut,Ht){if(1&ut&&(o.TgZ(0,"a",7),o.YNc(1,y,1,0,"ng-container",5),o.qZA()),2&ut){const A=o.oxw(),xt=o.MAs(4);o.Q6J("type",A.type)("disabled",A.disabled)("color",A.color)("target",A.target)("href",A.href,o.LSH),o.xp6(1),o.Q6J("ngTemplateOutlet",xt)}}function G(ut,Ht){1&ut&&o.Hsn(0)}const U=["*"];let lt=(()=>{class ut{constructor(A,xt){this.themeService=A,this.elRef=xt,this.tabindex=-1,this.disabled=!1,this.type="submit",this.target="_self",this.color="primary"}ngOnChanges(){this.isLink=!!this.href||!!this.routerLink,this.pointerEvents=this.disabled?"none":"auto"}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}static#t=this.\u0275fac=function(xt){return new(xt||ut)(o.Y36(e.f),o.Y36(o.SBq))};static#e=this.\u0275cmp=o.Xpm({type:ut,selectors:[["app-text-button"]],hostVars:3,hostBindings:function(xt,tt){2&xt&&(o.Ikx("tabindex",tt.tabindex),o.Udp("pointer-events",tt.pointerEvents))},inputs:{disabled:"disabled",type:"type",target:"target",color:"color",href:"href",routerLink:"routerLink"},features:[o.TTD],ngContentSelectors:U,decls:5,vars:3,consts:[["class","text-button","mat-flat-button","",3,"type","disabled","color",4,"ngIf"],["class","text-button","mat-flat-button","",3,"type","disabled","color","target","routerLink",4,"ngIf"],["class","text-button","mat-flat-button","",3,"type","disabled","color","target","href",4,"ngIf"],["content",""],["mat-flat-button","",1,"text-button",3,"type","disabled","color"],[4,"ngTemplateOutlet"],["mat-flat-button","",1,"text-button",3,"type","disabled","color","target","routerLink"],["mat-flat-button","",1,"text-button",3,"type","disabled","color","target","href"]],template:function(xt,tt){1&xt&&(o.F$t(),o.YNc(0,R,2,4,"button",0),o.YNc(1,t,2,6,"a",1),o.YNc(2,O,2,6,"a",2),o.YNc(3,G,1,0,"ng-template",null,3,o.W1O)),2&xt&&(o.Q6J("ngIf",!tt.isLink),o.xp6(1),o.Q6J("ngIf",tt.routerLink),o.xp6(1),o.Q6J("ngIf",tt.href))},dependencies:[g.O5,g.tP,x.rH,l.eB,l.Nr],styles:["[_nghost-%COMP%]{display:block;height:36px;width:100%;-webkit-appearance:none;appearance:none;cursor:pointer}[_nghost-%COMP%]   .text-button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;font-weight:inherit;font-size:inherit;line-height:inherit;border-width:0px;border-radius:4px;padding:4px 20px;height:inherit;width:inherit;min-height:inherit;min-width:inherit;max-height:inherit;max-width:inherit;text-transform:inherit;-webkit-appearance:none;appearance:none}.min-kobmand-theme[_nghost-%COMP%]   .text-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .text-button[_ngcontent-%COMP%]{font-weight:700;padding:15px 32px;border-radius:8px}.meny-theme[_nghost-%COMP%]   .text-button[_ngcontent-%COMP%]{border-radius:128px;font-weight:700;padding:15px 32px}.stechers-theme[_nghost-%COMP%]   .text-button[_ngcontent-%COMP%]{border-radius:unset}"]})}return ut})()},3595:(Je,Rt,c)=>{"use strict";c.d(Rt,{R:()=>g});var o=c(5879);const e=["*"];let g=(()=>{class x{static#t=this.\u0275fac=function(R){return new(R||x)};static#e=this.\u0275cmp=o.Xpm({type:x,selectors:[["app-center-section"]],ngContentSelectors:e,decls:1,vars:0,template:function(R,f){1&R&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%]{display:block;box-sizing:border-box;position:relative;background-color:#fff;padding:28px;border-radius:12px;max-width:var(--nxt-width)}@media only screen and (min-width: 1024px){[_nghost-%COMP%]{width:80vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:95vw}}"]})}return x})()},3752:(Je,Rt,c)=>{"use strict";c.d(Rt,{p:()=>Ht});var o=c(6718),e=c(7985),g=c(5879),x=c(6574),l=c(7954),i=c(6814),R=c(4505),f=c(617),t=c(2787);function y(A,xt){if(1&A&&g._UZ(0,"mat-icon",5),2&A){const tt=g.oxw();g.Q6J("svgIcon",tt.menuIcon)}}function O(A,xt){if(1&A&&g._UZ(0,"mat-icon",5),2&A){const tt=g.oxw();g.Q6J("svgIcon",tt.closeIcon)}}function G(A,xt){if(1&A&&(g.TgZ(0,"a",8),g._uU(1),g.ALo(2,"titlecase"),g.qZA()),2&A){const tt=xt.ngIf;g.Q6J("routerLink",tt.targetUrl)("target",tt.new?"_blank":"_self"),g.xp6(1),g.hij(" ",g.lcZ(2,3,tt.titleText)," ")}}function U(A,xt){if(1&A&&(g.TgZ(0,"a",9),g._uU(1),g.ALo(2,"titlecase"),g.qZA()),2&A){const tt=g.oxw().$implicit;g.Q6J("href",tt.targetUrl,g.LSH)("target",tt.new?"_blank":"_self"),g.xp6(1),g.hij(" ",g.lcZ(2,3,tt.titleText)," ")}}function lt(A,xt){if(1&A&&(g.ynx(0),g.YNc(1,G,3,5,"a",6),g.YNc(2,U,3,5,"a",7),g.BQk()),2&A){const tt=xt.$implicit,ct=g.oxw();g.xp6(1),g.Q6J("ngIf",ct.sameSite(tt)),g.xp6(1),g.Q6J("ngIf",!ct.sameSite(tt))}}const ut=["*"];let Ht=(()=>{class A{constructor(tt,ct,_,j){this.cdr=tt,this.themeService=ct,this.elRef=_,this.contentService=j}ngOnInit(){this.menuIcon=e.qq.menu,this.closeIcon=e.qq.bigCross}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngAfterContentChecked(){this.cdr.detectChanges()}get open(){return this.trigger.menuOpen}sameSite(tt){return this.contentService.sameSite(tt)}static#t=this.\u0275fac=function(ct){return new(ct||A)(g.Y36(g.sBO),g.Y36(x.f),g.Y36(g.SBq),g.Y36(l._s))};static#e=this.\u0275cmp=g.Xpm({type:A,selectors:[["app-content-menu"]],viewQuery:function(ct,_){if(1&ct&&g.Gf(o.D8,5),2&ct){let j;g.iGM(j=g.CRH())&&(_.trigger=j.first)}},inputs:{links:"links"},ngContentSelectors:ut,decls:7,vars:6,consts:[["mat-flat-button","",1,"icon-button",3,"matMenuTriggerFor"],[3,"svgIcon",4,"ngIf"],[1,"content-menu"],["menu","matMenu"],[4,"ngFor","ngForOf"],[3,"svgIcon"],["class","nav","mat-menu-item","",3,"routerLink","target",4,"ngIf"],["class","nav","mat-menu-item","",3,"href","target",4,"ngIf"],["mat-menu-item","",1,"nav",3,"routerLink","target"],["mat-menu-item","",1,"nav",3,"href","target"]],template:function(ct,_){if(1&ct&&(g.F$t(),g.TgZ(0,"button",0),g.YNc(1,y,1,1,"mat-icon",1),g.YNc(2,O,1,1,"mat-icon",1),g.Hsn(3),g.qZA(),g.TgZ(4,"mat-menu",2,3),g.YNc(6,lt,3,2,"ng-container",4),g.qZA()),2&ct){const j=g.MAs(5);g.ekj("border",!1),g.Q6J("matMenuTriggerFor",j),g.xp6(1),g.Q6J("ngIf",_.trigger&&!_.open),g.xp6(1),g.Q6J("ngIf",_.trigger&&_.open),g.xp6(4),g.Q6J("ngForOf",_.links)}},dependencies:[i.sg,i.O5,R.eB,f.Hw,o.W0,o.tN,o.D8,t.rH,i.rS],styles:["[_nghost-%COMP%]{box-sizing:border-box;display:inline-block;width:inherit;height:inherit}.city-catering-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]{background-color:#c3bf9c}.city-catering-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=menu] *{stroke:#fff}.city-catering-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=big_cross] *{fill:#fff}.new-year-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]{background-color:#392154}.new-year-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=menu] *{stroke:#fff}.new-year-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=big_cross] *{fill:#fff}.gourmiddag-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]{background-color:#d1af8b}.gourmiddag-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=menu] *{stroke:#fff}.gourmiddag-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=big_cross] *{fill:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]{background-color:#081d39}.gastro-by-boegh-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=menu] *{stroke:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=big_cross] *{fill:#fff}.krohn-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]{background-color:#000}.krohn-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=menu] *{stroke:#fff}.krohn-theme[_nghost-%COMP%]   .icon-button[_ngcontent-%COMP%]     mat-icon[data-mat-icon-name=big_cross] *{fill:#fff}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:inherit;height:inherit;color:#000;font-size:1.2em;font-weight:500;border-radius:0;padding:0}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:56px;width:56px;margin:2px}"]})}return A})()},9983:(Je,Rt,c)=>{"use strict";c.d(Rt,{o:()=>Ht});var o=c(8005),e=c(7398),g=c(8180),x=c(6093),l=c(2802),i=c(5879),R=c(7954),f=c(3902),t=c(6574),y=c(6814),O=c(617);function G(A,xt){if(1&A){const tt=i.EpF();i.TgZ(0,"li",6),i.NdJ("click",function(){i.CHM(tt);const _=i.oxw(3);return i.KtG(_.clearCategory())}),i.ALo(1,"async"),i.TgZ(2,"div",7),i._uU(3),i.qZA(),i._UZ(4,"mat-icon",8),i.qZA()}if(2&A){const tt=i.oxw(3);let ct;i.ekj("selected",!(null!=(ct=i.lcZ(1,3,tt.selectedCategories))&&ct.size)),i.xp6(3),i.Oqu(tt.allProducts)}}function U(A,xt){if(1&A){const tt=i.EpF();i.TgZ(0,"li",9),i.NdJ("click",function(){const j=i.CHM(tt).$implicit,q=i.oxw(3);return i.KtG(q.clickCategory(j.id))}),i.ALo(1,"async"),i.TgZ(2,"div",7),i._uU(3),i.qZA(),i._UZ(4,"mat-icon",8),i.qZA()}if(2&A){const tt=xt.$implicit,ct=i.oxw(3);i.ekj("selected",i.lcZ(1,3,ct.selectedCategories).has(tt.id)),i.xp6(3),i.hij(" ",tt.name," ")}}function lt(A,xt){if(1&A&&(i.ynx(0),i.YNc(1,G,5,5,"li",4),i.YNc(2,U,5,5,"li",5),i.ALo(3,"async"),i.BQk()),2&A){const tt=i.oxw(2);i.xp6(1),i.Q6J("ngIf",tt.allProducts),i.xp6(1),i.Q6J("ngForOf",i.lcZ(3,2,tt.categories))}}function ut(A,xt){if(1&A&&(i.TgZ(0,"section")(1,"div",1)(2,"h3",2),i._uU(3),i.qZA()(),i.TgZ(4,"ul",3),i.YNc(5,lt,4,4,"ng-container",0),i.qZA()()),2&A){const tt=i.oxw();i.xp6(3),i.Oqu(tt.categoriesTitle),i.xp6(2),i.Q6J("ngIf",tt.categories)}}let Ht=(()=>{class A extends l.I{constructor(tt,ct,_,j,q,ht){super(tt,"productsOverview"),this.categoryService=ct,this.themeService=_,this.elRef=j,this.bottomSheetRef=q,this.data=ht,this.selectedCategories=ct.selected,this.data&&(this.categoriesTitle=this.data.categoryTitle,this.allProducts=this.data.allProducts)}ngOnInit(){this.categories=this.categoryService.getFlat().pipe((0,e.U)(tt=>tt.filter(ct=>!ct.hidden)))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}clickCategory(tt){this.categoryService.clickCategory(tt),this.categoryService.mode.pipe((0,g.q)(1)).subscribe(ct=>{ct===x.U5.Single&&this.bottomSheetRef?.dismiss()})}clearCategory(){return this.categoryService.clearCategories()}static#t=this.\u0275fac=function(ct){return new(ct||A)(i.Y36(R._s),i.Y36(f.H),i.Y36(t.f),i.Y36(i.SBq),i.Y36(o.oL,8),i.Y36(o.OG,8))};static#e=this.\u0275cmp=i.Xpm({type:A,selectors:[["app-filter-menu"]],inputs:{categoriesTitle:"categoriesTitle",allProducts:"allProducts"},features:[i.qOj],decls:1,vars:1,consts:[[4,"ngIf"],[1,"filter-menu-section-header"],["id","categoryHeader"],[1,"categories"],["class","show-all-category",3,"selected","click",4,"ngIf"],[3,"selected","click",4,"ngFor","ngForOf"],[1,"show-all-category",3,"click"],["aria-labelledby","categoryHeader"],["svgIcon","tick","aria-hidden","true"],[3,"click"]],template:function(ct,_){1&ct&&i.YNc(0,ut,6,2,"section",0),2&ct&&i.Q6J("ngIf",_.categories)},dependencies:[y.sg,y.O5,O.Hw,y.Ov],styles:["[_nghost-%COMP%]{flex:0 0 auto;align-self:flex-start;display:flex;flex-direction:column;width:292px;height:auto;background-color:#fff;border-radius:8px;box-shadow:0 1px 10px 1px #0000001a;overflow:hidden}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%;height:100%;padding-bottom:0;border-radius:0;box-shadow:unset}}.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{width:300px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{width:100%}}.min-kobmand-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]{height:66px;align-items:center;background-color:#3c3c3b}.min-kobmand-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 0 20px;font-size:22px;color:#fff;text-transform:uppercase;letter-spacing:1px}.min-kobmand-theme[_nghost-%COMP%]   .categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:18px;font-weight:700;height:60px;padding-left:16px;margin-left:0}.min-kobmand-theme[_nghost-%COMP%]   .categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{display:none}.min-kobmand-theme[_nghost-%COMP%]   .selected[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .selected[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .selected[_ngcontent-%COMP%]{color:var(--primary-color)}.min-kobmand-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-family:var(--font);font-size:24px;text-transform:unset;letter-spacing:unset}.min-kobmand-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-size:16px}.spar-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]{background-color:#3e122a}.clpartyservice-theme[_nghost-%COMP%]{background-color:var(--background-color)}.clpartyservice-theme[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){border-bottom-color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]{color:var(--primary-color);background-color:var(--background-color)}.clpartyservice-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){border-bottom-color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{border-color:var(--primary-color);fill:#0000}.clpartyservice-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #00000040}.clpartyservice-theme[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{background-color:var(--primary-color);fill:var(--background-color)}[_nghost-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{overflow-x:auto}[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]{display:flex;align-items:flex-end;height:48px;background-color:#f7f7f7}[_nghost-%COMP%]   .filter-menu-section-header[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 8px 16px;font-size:1.2em}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%]   ul.categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:1em;cursor:pointer}[_nghost-%COMP%]   ul.filters[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;padding:8px 16px 8px 0;margin-left:16px;height:44px;font-size:.9em;font-weight:600}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{border:1px solid #d1d9dc;border-radius:256px;fill:#0000}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #00000040}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{background-color:#eef4f6;fill:var(--primary-color)}"]})}return A})()},5330:(Je,Rt,c)=>{"use strict";c.d(Rt,{L:()=>lt});var o=c(6676),g=c(5879),x=c(4132),l=c(6814),i=c(6223),R=c(4187),f=c(2400),t=c(8034);function y(ut,Ht){if(1&ut&&(g.TgZ(0,"mat-label"),g._uU(1),g.qZA()),2&ut){const A=g.oxw();g.xp6(1),g.Oqu(A.name)}}function O(ut,Ht){1&ut&&(g.TgZ(0,"span",9),g._uU(1,"* "),g.qZA())}function G(ut,Ht){if(1&ut&&(g.TgZ(0,"label",7),g.YNc(1,O,2,0,"span",8),g._uU(2),g.qZA()),2&ut){const A=g.oxw();g.Q6J("for",A.name),g.xp6(1),g.Q6J("ngIf",A.required),g.xp6(1),g.Oqu(A.name)}}function U(ut,Ht){if(1&ut&&(g.TgZ(0,"mat-error"),g._uU(1),g.qZA()),2&ut){const A=Ht.ngIf;g.xp6(1),g.Oqu(A)}}let lt=(()=>{class ut{constructor(A){this.layoutService=A,this.placeholder="",this.name="",this.required=!1,this.appearance="none",this.minDateError="Dato ligger for tidligt. V\xe6lg en senere dato.",this.maxDateError="Dato ligger for langt ude i fremtiden. V\xe6lg en tidligere dato",this.filterError="Ugyldig dato valgt"}ngOnInit(){this.required=!!this.required||this.isRequired(),this.control.value&&(this.control.markAsTouched(),this.control.updateValueAndValidity({emitEvent:!0}))}ngOnChanges(){if(this.control.enabled&&(!this.control.value||!this.dateCheck(this.control.value))){let A=!1,xt=o(),tt=0;const ct=730;for(;!A&&tt<ct;)this.dateCheck(xt)?A=!0:xt=xt.add(1,"day"),tt++;this.control.setValue(xt),this.control.markAsTouched()}}isRequired(){if(this.control.validator){const A=this.control.validator({});if(A&&A.required)return!0}return!1}getErrorMessage(){let A;switch(!0){case this.control.hasError("matDatepickerMin"):A=this.minDateError;break;case this.control.hasError("matDatepickerMax"):A=this.maxDateError;break;case this.control.hasError("matDatepickerFilter"):A=this.filterError;break;default:A=void 0}return A}dateCheck(A){if(this.min){const xt=this.min.clone().startOf("day");if(A.isBefore(xt))return!1}if(this.max){const xt=this.max.clone().startOf("day");if(A.isAfter(xt))return!1}return!(this.filter&&!this.filter(A))}static#t=this.\u0275fac=function(xt){return new(xt||ut)(g.Y36(x.P))};static#e=this.\u0275cmp=g.Xpm({type:ut,selectors:[["app-date-picker"]],hostVars:2,hostBindings:function(xt,tt){2&xt&&g.ekj("disableStyle",tt.disableStyle)},inputs:{placeholder:"placeholder",name:"name",control:"control",required:"required",min:"min",max:"max",filter:"filter",disableStyle:"disableStyle",appearance:"appearance"},features:[g.TTD],decls:9,vars:14,consts:[[3,"appearance"],[4,"ngIf"],["matInput","",3,"formControl","matDatepicker","name","placeholder","required","min","max","matDatepickerFilter"],["matSuffix","",3,"for"],[3,"for",4,"ngIf"],[3,"touchUi"],["picker",""],[3,"for"],["class","star",4,"ngIf"],[1,"star"]],template:function(xt,tt){if(1&xt&&(g.ynx(0),g.TgZ(1,"mat-form-field",0),g.YNc(2,y,2,1,"mat-label",1),g._UZ(3,"input",2)(4,"mat-datepicker-toggle",3),g.qZA(),g.YNc(5,G,3,3,"label",4),g._UZ(6,"mat-datepicker",5,6),g.YNc(8,U,2,1,"mat-error",1),g.BQk()),2&xt){const ct=g.MAs(7);g.xp6(1),g.Q6J("appearance",tt.appearance),g.xp6(1),g.Q6J("ngIf",tt.disableStyle),g.xp6(1),g.Q6J("formControl",tt.control)("matDatepicker",ct)("name",tt.name)("placeholder",tt.placeholder)("required",tt.required)("min",tt.min)("max",tt.max)("matDatepickerFilter",tt.filter),g.xp6(1),g.Q6J("for",ct),g.xp6(1),g.Q6J("ngIf",!tt.disableStyle&&tt.name),g.xp6(1),g.Q6J("touchUi",tt.layoutService.isMobile),g.xp6(2),g.Q6J("ngIf",tt.getErrorMessage())}},dependencies:[l.O5,i.Fj,i.JJ,i.Q7,i.oH,R.nI,R.v_,R.$V,R.nX,f.k0,t.Mq,t.hl,t.nW],styles:["[_nghost-%COMP%]{position:relative;display:inline-flex;flex-direction:column}[_nghost-%COMP%]:not(.disableStyle)   label[_ngcontent-%COMP%]{display:inline-block;margin:8px 0;font-size:.9em;font-weight:600;order:-1}[_nghost-%COMP%]:not(.disableStyle)   label[_ngcontent-%COMP%]   .star[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:17px}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] {margin-bottom:0}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] >.mat-form-field-wrapper{border-color:var(--warn-color)}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] +label{color:var(--warn-color)}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper{background-color:var(--accent-lighter-color);box-sizing:border-box;height:40px;border-style:solid;border-width:1px;border-radius:4px;border-color:var(--accent-color);padding-bottom:2px!important}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper .mat-form-field-flex{align-items:center}[_nghost-%COMP%]:not(.disableStyle)   .mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper .mat-form-field-flex .mat-form-field-infix{padding:0 0 0 10px;border-top:none}[_nghost-%COMP%]:not(.disableStyle)   mat-datepicker-toggle[_ngcontent-%COMP%]     button{height:36px;width:36px;line-height:36px}[_nghost-%COMP%]:not(.disableStyle)   mat-error[_ngcontent-%COMP%]{font-size:75%;padding:2px 8px}"]})}return ut})()},3025:(Je,Rt,c)=>{"use strict";c.d(Rt,{t:()=>z});var o=c(5879),e=c(6814),g=c(6223),x=c(4187),l=c(6263),i=c(2400);const R=["tooltipRef"];function f(F,rt){if(1&F&&o._UZ(0,"input",8),2&F){const V=o.oxw();o.Q6J("formControl",V.control)("type",V.type)("name",V.name)("placeholder",V.placeholder)("required",V.required)}}function t(F,rt){if(1&F&&o._UZ(0,"textarea",9,10),2&F){const V=o.oxw();o.Q6J("formControl",V.control)("type",V.type)("name",V.name)("placeholder",V.placeholder)("required",V.required)("cdkAutosizeMinRows",V.minRows)("cdkAutosizeMaxRows",V.maxRows)}}function y(F,rt){1&F&&(o.TgZ(0,"span",15),o._uU(1,"* "),o.qZA())}function O(F,rt){if(1&F&&(o.TgZ(0,"h3"),o._uU(1),o.qZA()),2&F){const V=o.oxw(3);o.xp6(1),o.Oqu(V.tooltip.title)}}function G(F,rt){if(1&F&&(o.TgZ(0,"p"),o._uU(1),o.qZA()),2&F){const V=o.oxw(3);o.xp6(1),o.Oqu(V.tooltip.description)}}function U(F,rt){if(1&F){const V=o.EpF();o.TgZ(0,"div",16)(1,"span",17),o.NdJ("mouseenter",function(){o.CHM(V);const $t=o.oxw(2);return o.KtG($t.openTooltip())})("click",function(){o.CHM(V);const $t=o.oxw(2);return o.KtG($t.openTooltip())}),o._uU(2,"?"),o.qZA(),o.TgZ(3,"div",18,19),o.NdJ("blur",function(){o.CHM(V);const $t=o.oxw(2);return o.KtG($t.closeTooltip())}),o.YNc(5,O,2,1,"h3",20),o.YNc(6,G,2,1,"p",20),o.qZA()()}if(2&F){const V=o.oxw(2);o.xp6(3),o.ekj("hidden",!V.showTooltip),o.uIk("aria-label",V.tooltip.title),o.xp6(2),o.Q6J("ngIf",V.tooltip.title),o.xp6(1),o.Q6J("ngIf",V.tooltip.description)}}function lt(F,rt){if(1&F&&(o.TgZ(0,"span",21),o._uU(1),o.qZA()),2&F){const V=o.oxw(2);o.xp6(1),o.Oqu(V.subtitle)}}function ut(F,rt){if(1&F&&(o.TgZ(0,"label",11)(1,"span"),o.YNc(2,y,2,0,"span",12),o._uU(3),o.YNc(4,U,7,5,"div",13),o.qZA(),o.YNc(5,lt,2,1,"span",14),o.qZA()),2&F){const V=o.oxw();o.Q6J("for",V.name),o.xp6(2),o.Q6J("ngIf",V.required||V.control.hasError("required")),o.xp6(1),o.hij("",V.name," "),o.xp6(1),o.Q6J("ngIf",V.tooltip&&(V.tooltip.title||V.tooltip.description)),o.xp6(1),o.Q6J("ngIf",V.subtitle)}}function Ht(F,rt){if(1&F&&(o.TgZ(0,"mat-error"),o._uU(1),o.ALo(2,"lowercase"),o.qZA()),2&F){const V=o.oxw(2);o.xp6(1),o.hij("Indtast ",o.lcZ(2,1,V.name),"")}}function A(F,rt){}function xt(F,rt){if(1&F&&(o.ynx(0),o.YNc(1,Ht,3,3,"mat-error",20),o.YNc(2,A,0,0,"ng-template",5),o.BQk()),2&F){const V=o.oxw(),Pt=o.MAs(9);o.xp6(1),o.Q6J("ngIf",V.control.hasError("required")),o.xp6(1),o.Q6J("ngTemplateOutlet",Pt)}}function tt(F,rt){}function ct(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"Ugyldig email"),o.qZA())}function _(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"Mindst 1 lille bogstav"),o.qZA())}function j(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"Mindst 1 stort bogstav"),o.qZA())}function q(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"Mindst 1 specialtegn"),o.qZA())}function ht(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"Mindst 1 tal"),o.qZA())}function vt(F,rt){if(1&F&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&F){const V=o.oxw(2);o.xp6(1),o.hij("Mindst ",null==V.control||null==V.control.errors.minlength?null:V.control.errors.minlength.requiredLength," tegn")}}function gt(F,rt){if(1&F&&(o.TgZ(0,"mat-error"),o._uU(1),o.qZA()),2&F){const V=o.oxw(2);o.xp6(1),o.hij("Maksimalt ",null==V.control||null==V.control.errors.maxlength?null:V.control.errors.maxlength.requiredLength," tegn")}}function zt(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"Mindst 8 tal eller start med landkode"),o.qZA())}function Ct(F,rt){1&F&&(o.TgZ(0,"mat-error"),o._uU(1,"\xa0"),o.qZA())}function H(F,rt){if(1&F&&(o.YNc(0,ct,2,0,"mat-error",20),o.YNc(1,_,2,0,"mat-error",20),o.YNc(2,j,2,0,"mat-error",20),o.YNc(3,q,2,0,"mat-error",20),o.YNc(4,ht,2,0,"mat-error",20),o.YNc(5,vt,2,1,"mat-error",20),o.YNc(6,gt,2,1,"mat-error",20),o.YNc(7,zt,2,0,"mat-error",20),o.Hsn(8),o.YNc(9,Ct,2,0,"mat-error",20)),2&F){const V=o.oxw();o.Q6J("ngIf",V.control.hasError("email")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("lowercase")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("uppercase")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("specialCharacter")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("digit")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("minlength")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("maxlength")),o.xp6(1),o.Q6J("ngIf",V.control.hasError("telephone")),o.xp6(2),o.Q6J("ngIf",V.control.hasError("required")&&V.control.touched)}}const J=["*"];let z=(()=>{class F{constructor(){this.type="text",this.placeholder="",this.name="",this.required=!1,this.textarea=!1,this.minRows=5,this.maxRows=5,this.showTooltip=!1,this.appearance="none"}ngOnInit(){this.required=!!this.required||this.isRequired(),this.control.value&&this.control.markAsTouched()}isRequired(){if(this.control.validator){const V=this.control.validator({});if(V&&V.required)return!0}return!1}openTooltip(){this.showTooltip=!0,this.tooltipRef.nativeElement.focus()}closeTooltip(){this.showTooltip=!1}static#t=this.\u0275fac=function(Pt){return new(Pt||F)};static#e=this.\u0275cmp=o.Xpm({type:F,selectors:[["app-text-input"]],viewQuery:function(Pt,$t){if(1&Pt&&o.Gf(R,5),2&Pt){let Lt;o.iGM(Lt=o.CRH())&&($t.tooltipRef=Lt.first)}},inputs:{type:"type",placeholder:"placeholder",name:"name",control:"control",directive:"directive",required:"required",textarea:"textarea",subtitle:"subtitle",minRows:"minRows",maxRows:"maxRows",tooltip:"tooltip"},ngContentSelectors:J,decls:10,vars:7,consts:[[3,"appearance"],["matInput","",3,"formControl","type","name","placeholder","required",4,"ngIf"],["matInput","","cdkTextareaAutosize","",3,"formControl","type","name","placeholder","required","cdkAutosizeMinRows","cdkAutosizeMaxRows",4,"ngIf"],[3,"for",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet"],["defaultErrors",""],["errors",""],["matInput","",3,"formControl","type","name","placeholder","required"],["matInput","","cdkTextareaAutosize","",3,"formControl","type","name","placeholder","required","cdkAutosizeMinRows","cdkAutosizeMaxRows"],["autosize","cdkTextareaAutosize"],[3,"for"],["class","star",4,"ngIf"],["class","tooltip-wrapper",4,"ngIf"],["class","subtitle",4,"ngIf"],[1,"star"],[1,"tooltip-wrapper"],["aria-hidden","true",1,"help",3,"mouseenter","click"],["tabindex","-1",1,"tooltip",3,"blur"],["tooltipRef",""],[4,"ngIf"],[1,"subtitle"]],template:function(Pt,$t){if(1&Pt&&(o.F$t(),o.ynx(0),o.TgZ(1,"mat-form-field",0),o.YNc(2,f,1,5,"input",1),o.YNc(3,t,2,7,"textarea",2),o.qZA(),o.YNc(4,ut,6,5,"label",3),o.YNc(5,xt,3,2,"ng-container",4),o.YNc(6,tt,0,0,"ng-template",5,6,o.W1O),o.YNc(8,H,10,9,"ng-template",null,7,o.W1O),o.BQk()),2&Pt){const Lt=o.MAs(7),Jt=o.MAs(9);o.xp6(1),o.Q6J("appearance",$t.appearance),o.xp6(1),o.Q6J("ngIf",!$t.textarea),o.xp6(1),o.Q6J("ngIf",$t.textarea),o.xp6(1),o.Q6J("ngIf",$t.name),o.xp6(1),o.Q6J("ngIf",null==$t.directive?null:$t.directive.submitted)("ngIfElse",Lt),o.xp6(1),o.Q6J("ngTemplateOutlet",Jt)}},dependencies:[e.O5,e.tP,g.Fj,g.JJ,g.Q7,g.oH,x.nI,x.v_,l.IC,i.k0,e.i8],styles:['[_nghost-%COMP%]{display:inline-flex;flex-direction:column}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:.9em;font-weight:600;order:-1}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .star[_ngcontent-%COMP%]{color:var(--warn-color);margin-right:4px}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .help[_ngcontent-%COMP%]{display:inline-flex;position:relative;justify-content:center;align-items:center;height:16px;width:16px;margin-left:8px;border:1px solid black;border-radius:128px}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]{position:absolute;display:flex;flex-direction:column;min-width:180px;max-width:240px;padding:8px;background-color:#fff;box-shadow:0 0 3px 1px #0000001a;border-radius:8px;top:0;left:calc(100% + 16px);transform:translateY(-20px)}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.05em;margin:0}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#878787;font-weight:500;margin:0}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(2){margin-top:8px}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:after{right:calc(100% - 8px);top:28px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;box-sizing:border-box;border:8px solid black;border-color:white transparent transparent white;transform:rotate(-45deg);margin-top:-8px;box-shadow:-3px -3px 3px #0000001a}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]{top:0;left:0;transform:translate(-50%,calc(-100% - 16px))}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]:after{top:calc(100% - 2px);right:72px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;box-sizing:border-box;border:8px solid black;border-color:white transparent transparent white;transform:rotate(-135deg);margin-top:-8px;box-shadow:-3px -3px 3px #0000001a}}[_nghost-%COMP%]   label[_ngcontent-%COMP%]   .tooltip-wrapper[_ngcontent-%COMP%]   .tooltip.hidden[_ngcontent-%COMP%]{overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}[_nghost-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:17px}[_nghost-%COMP%]   .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] {margin-bottom:0}[_nghost-%COMP%]   .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] >.mat-form-field-wrapper{border-color:var(--warn-color)}[_nghost-%COMP%]   .mat-form-field.mat-form-field-invalid[_ngcontent-%COMP%] +label{color:var(--warn-color)}[_nghost-%COMP%]   .mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper{background-color:var(--accent-lighter-color);min-height:40px;border-style:solid;border-width:1px;border-radius:4px;border-color:var(--accent-color);padding-bottom:2px!important}[_nghost-%COMP%]   .mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper .mat-form-field-infix{padding:0 .5em;border-bottom:.4em solid transparent}[_nghost-%COMP%]     mat-error{font-size:75%;padding:2px 8px}[_nghost-%COMP%]     mat-error+mat-error{display:none}']})}return F})()},5961:(Je,Rt,c)=>{"use strict";c.d(Rt,{G:()=>ee});var o=c(9671),e=c(7394),g=c(4036),x=c(5619),l=c(7398),i=c(6093),R=c(7985),f=c(5879),t=c(7954),y=c(8750),O=c(6814),G=c(8862),U=c(617),lt=c(8514),ut=c(2787),Ht=c(5699),A=c(3991);const xt=["slides"],tt=["player"];function ct(B,At){if(1&B&&(f.TgZ(0,"video",10),f._UZ(1,"source",11),f._uU(2," Your browser does not support the video tag. "),f.qZA()),2&B){const st=f.oxw().ngIf;f.Q6J("muted",!0),f.xp6(1),f.Q6J("src",st.videoSrc,f.LSH)}}const _=function(B){return{$implicit:B,cmsQuality:25}};function j(B,At){if(1&B&&(f.TgZ(0,"div",7),f.YNc(1,ct,3,2,"video",8),f.GkF(2,9),f.qZA()),2&B){const st=At.ngIf;f.oxw(2);const ie=f.MAs(3);f.xp6(1),f.Q6J("ngIf",st.videoSrc),f.xp6(1),f.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",f.VKq(3,_,st))}}function q(B,At){if(1&B&&(f.TgZ(0,"video",13,14),f._UZ(2,"source",11),f._uU(3," Your browser does not support the video tag. "),f.qZA()),2&B){const st=f.oxw().ngLet;f.Q6J("muted",!0),f.xp6(2),f.Q6J("src",st.videoSrc,f.LSH)}}const ht=function(B){return{$implicit:B,cmsQuality:75}};function vt(B,At){if(1&B&&(f.TgZ(0,"div",7),f.YNc(1,q,4,2,"video",12),f.GkF(2,9),f.qZA()),2&B){const st=At.ngLet,ie=f.oxw(2),Ae=f.MAs(3);f.ekj("single-banner",1===ie.activeBanners.length),f.xp6(1),f.Q6J("ngIf",st.videoSrc),f.xp6(1),f.Q6J("ngTemplateOutlet",Ae)("ngTemplateOutletContext",f.VKq(5,ht,st))}}function gt(B,At){if(1&B&&(f.TgZ(0,"video",10),f._UZ(1,"source",11),f._uU(2," Your browser does not support the video tag. "),f.qZA()),2&B){const st=f.oxw().ngIf;f.Q6J("muted",!0),f.xp6(1),f.Q6J("src",st.videoSrc,f.LSH)}}function zt(B,At){if(1&B&&(f.TgZ(0,"div",7),f.YNc(1,gt,3,2,"video",8),f.GkF(2,9),f.qZA()),2&B){const st=At.ngIf;f.oxw(2);const ie=f.MAs(3);f.xp6(1),f.Q6J("ngIf",st.videoSrc),f.xp6(1),f.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",f.VKq(3,_,st))}}function Ct(B,At){if(1&B&&(f.TgZ(0,"div",3,4),f.YNc(2,j,3,5,"div",5),f.YNc(3,vt,3,7,"div",6),f.ALo(4,"async"),f.YNc(5,zt,3,5,"div",5),f.qZA()),2&B){const st=f.oxw();f.xp6(2),f.Q6J("ngIf",st.activeBanners.length>1&&st.activeBanners[st.prevSlide]),f.xp6(1),f.Q6J("ngLet",st.activeBanners[f.lcZ(4,3,st.currentSlide)]),f.xp6(2),f.Q6J("ngIf",st.activeBanners.length>1&&st.activeBanners[st.nextSlide])}}function H(B,At){if(1&B){const st=f.EpF();f.ynx(0),f.TgZ(1,"app-icon-button",15),f.NdJ("click",function(){f.CHM(st);const Ae=f.oxw();return f.KtG(Ae.selectSlide("prev"))}),f.qZA(),f.TgZ(2,"app-icon-button",16),f.NdJ("click",function(){f.CHM(st);const Ae=f.oxw();return f.KtG(Ae.selectSlide("next"))}),f.qZA(),f.BQk()}if(2&B){const st=f.oxw();f.xp6(1),f.Q6J("icon",st.arrowIcon),f.xp6(1),f.Q6J("icon",st.arrowIcon)}}function J(B,At){if(1&B&&(f._UZ(0,"img",23),f.ALo(1,"cms")),2&B){const st=f.oxw(4),ie=st.$implicit,Ae=st.cmsQuality,en=f.oxw();f.Q6J("src",f.Dn7(1,2,en.isMobile&&ie.mobileImage?ie.mobileImage:ie.image,Ae,768),f.LSH)("alt",ie.title)}}function z(B,At){if(1&B&&(f.TgZ(0,"label",24),f._uU(1),f.qZA()),2&B){const st=f.oxw(4).$implicit;f.xp6(1),f.Oqu(st.title)}}function F(B,At){if(1&B&&(f.TgZ(0,"a",21),f.YNc(1,J,2,6,"img",17),f.YNc(2,z,2,1,"label",22),f.qZA()),2&B){const st=f.oxw(3).$implicit;f.Q6J("routerLink",st.link)("target",st.target),f.xp6(1),f.Q6J("ngIf",st.image),f.xp6(1),f.Q6J("ngIf",st.title)}}function rt(B,At){if(1&B&&(f._UZ(0,"img",23),f.ALo(1,"cms")),2&B){const st=f.oxw(4),ie=st.$implicit,Ae=st.cmsQuality,en=f.oxw();f.Q6J("src",f.Dn7(1,2,en.isMobile&&ie.mobileImage?ie.mobileImage:ie.image,Ae,768),f.LSH)("alt",ie.title)}}function V(B,At){if(1&B&&(f.TgZ(0,"label",24),f._uU(1),f.qZA()),2&B){const st=f.oxw(4).$implicit;f.xp6(1),f.Oqu(st.title)}}function Pt(B,At){if(1&B&&(f.TgZ(0,"a",25),f.YNc(1,rt,2,6,"img",17),f.YNc(2,V,2,1,"label",22),f.qZA()),2&B){const st=f.oxw(3).$implicit;f.Q6J("href",st.link,f.LSH)("target",st.target),f.xp6(1),f.Q6J("ngIf",st.image),f.xp6(1),f.Q6J("ngIf",st.title)}}function $t(B,At){if(1&B&&(f.ynx(0),f.YNc(1,F,3,4,"a",19),f.YNc(2,Pt,3,4,"a",20),f.BQk()),2&B){const st=f.oxw(2).$implicit,ie=f.oxw();f.xp6(1),f.Q6J("ngIf",ie.sameSite(st.link)),f.xp6(1),f.Q6J("ngIf",!ie.sameSite(st.link))}}function Lt(B,At){if(1&B&&(f._UZ(0,"img",23),f.ALo(1,"cms")),2&B){const st=f.oxw(2),ie=st.$implicit,Ae=st.cmsQuality,en=f.oxw();f.Q6J("src",f.Dn7(1,2,en.isMobile&&ie.mobileImage?ie.mobileImage:ie.image,Ae,768),f.LSH)("alt",ie.title)}}function Jt(B,At){if(1&B&&(f.TgZ(0,"label",26),f._uU(1),f.qZA()),2&B){const st=f.oxw(2).$implicit;f.xp6(1),f.Oqu(st.title)}}function Tt(B,At){if(1&B&&(f.ynx(0),f.YNc(1,$t,3,2,"ng-container",1),f.YNc(2,Lt,2,6,"img",17),f.YNc(3,Jt,2,1,"label",18),f.BQk()),2&B){const st=f.oxw().$implicit;f.xp6(1),f.Q6J("ngIf",st.link),f.xp6(1),f.Q6J("ngIf",!st.link&&st.image),f.xp6(1),f.Q6J("ngIf",st.title&&!st.link)}}function $(B,At){if(1&B&&(f.TgZ(0,"h1"),f._uU(1),f.qZA()),2&B){const st=f.oxw(2).$implicit;f.xp6(1),f.Oqu(st.title)}}function pt(B,At){if(1&B&&(f.TgZ(0,"app-text-button",31),f._uU(1),f._UZ(2,"mat-icon",32),f.qZA()),2&B){const st=f.oxw(3).$implicit;f.Q6J("routerLink",st.link),f.xp6(1),f.hij("",st.textboxButton," ")}}function Dt(B,At){if(1&B&&(f.TgZ(0,"app-text-button",25),f._uU(1),f._UZ(2,"mat-icon",32),f.qZA()),2&B){const st=f.oxw(3).$implicit;f.Q6J("href",st.link)("target",st.target),f.xp6(1),f.hij("",st.textboxButton," ")}}function St(B,At){if(1&B&&(f.ynx(0),f.YNc(1,pt,3,2,"app-text-button",30),f.YNc(2,Dt,3,3,"app-text-button",20),f.BQk()),2&B){const st=f.oxw(2).$implicit,ie=f.oxw();f.xp6(1),f.Q6J("ngIf",ie.sameSite(st.link)&&"_self"===st.target),f.xp6(1),f.Q6J("ngIf",!ie.sameSite(st.link)||"_self"!==st.target)}}function mt(B,At){if(1&B&&(f.ynx(0),f._UZ(1,"img",27),f.ALo(2,"cms"),f.TgZ(3,"div",28)(4,"div",29),f.YNc(5,$,2,1,"h1",1),f.YNc(6,St,3,2,"ng-container",1),f.qZA()(),f.BQk()),2&B){const st=f.oxw(),ie=st.$implicit,Ae=st.cmsQuality,en=f.oxw();f.xp6(1),f.Q6J("src",f.Dn7(2,4,en.isMobile&&ie.mobileImage?ie.mobileImage:ie.image,Ae,768),f.LSH),f.xp6(2),f.Q6J("ngClass",en.textboxPlacementClass[ie.textboxPlacement]),f.xp6(2),f.Q6J("ngIf",ie.title),f.xp6(1),f.Q6J("ngIf",ie.link)}}function yt(B,At){if(1&B&&(f.YNc(0,Tt,4,3,"ng-container",1),f.YNc(1,mt,7,8,"ng-container",1)),2&B){const st=At.$implicit;f.Q6J("ngIf",!st.textboxPlacement&&0!==st.textboxPlacement),f.xp6(1),f.Q6J("ngIf",st.textboxPlacement||0===st.textboxPlacement)}}let ee=(()=>{class B{constructor(st,ie,Ae,en,In,Ve,jt){this.renderer=st,this.cdr=ie,this.contentService=Ae,this.bannerService=en,this.themeService=In,this.elRef=Ve,this.deviceService=jt,this.subscription=new e.w0,this.arrowIcon=R.Ym.left_expand_arrow,this.textboxPlacementClass=i.qM,this.hidden=!1,this.animationTimeout=750,this.manualOperationTimeout=1e4}ngOnInit(){var st=this;return(0,o.Z)(function*(){st.activeBanners=yield st.loadBanners(),st.isMobile=st.deviceService.isMobile(),st.setupBanner()})()}ngOnDestroy(){this.subscription.unsubscribe()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}sameSite(st){return this.contentService.sameSite({type:"link",titleText:null,targetUrl:st,new:null})?.targetUrl}loadBanners(){var st=this;return(0,o.Z)(function*(){return(0,g.z)(st.bannerService.getHeroBanners(st.contentService.getMerchantId()).pipe((0,l.U)(ie=>ie?.length?(ie.forEach(Ae=>(Ae.title=Ae.title.replace(/\\n/g,"\n"),Ae)),ie):(st.hidden=!0,[]))))})()}setupBanner(){if(this.animating=!1,this.currentSlide=new x.X(0),typeof window<"u"&&(this.activeBanners.length>1&&this.subscription.add(this.currentSlide.subscribe(st=>{const ie=this.activeBanners[st];if(this.bannerHeight=ie.height,this.bannerMaxHeight=ie.maxHeight,this.bannerMobileHeight=ie.mobileHeight,this.bannerMobileMaxHeight=ie.mobileMaxHeight,ie.displayTimeSeconds){let Ae=1e3*ie.displayTimeSeconds;this.manual&&(Ae=this.manualOperationTimeout,this.manual=!1),this.timeoutSelect("next",Ae)}})),1===this.activeBanners.length)){const st=this.activeBanners[0];this.bannerHeight=st.height,this.bannerMaxHeight=st.maxHeight,this.bannerMobileHeight=st.mobileHeight,this.bannerMobileMaxHeight=st.mobileMaxHeight}}get prevSlide(){return this.mod(this.currentSlide.value-1,this.activeBanners.length)}get nextSlide(){return this.mod(this.currentSlide.value+1,this.activeBanners.length)}resetPlayer(){}selectSlide(st,ie=!0){var Ae=this;return(0,o.Z)(function*(){Ae.manual=ie,Ae.animating?Ae.timeoutSelect(st):(Ae.player?.nativeElement.pause(),yield Ae.animateSlide(st),Ae.player&&(Ae.player.nativeElement.currentTime=0),Ae.player?.nativeElement.play(),"next"===st?Ae.currentSlide.next(Ae.nextSlide):"prev"===st&&Ae.currentSlide.next(Ae.prevSlide))})()}timeoutSelect(st,ie=this.animationTimeout){clearTimeout(this.timerId),this.timerId=setTimeout(()=>{this.selectSlide(st,!1)},ie)}animateSlide(st){var ie=this;return(0,o.Z)(function*(){return ie.animating=!0,ie.cdr.detectChanges(),new Promise(Ae=>{const en=ie.slidesElement.nativeElement.offsetWidth;ie.renderer.setStyle(ie.slidesElement.nativeElement,"transition",`all ${ie.animationTimeout}ms ease-out`),ie.renderer.setStyle(ie.slidesElement.nativeElement,"transform","next"===st?`translateX(-${en}px)`:`translateX(${en}px)`),setTimeout(()=>{ie.renderer.setStyle(ie.slidesElement.nativeElement,"transition",""),ie.renderer.setStyle(ie.slidesElement.nativeElement,"transform",""),ie.animating=!1,ie.cdr.detectChanges(),Ae()},ie.animationTimeout)})})()}mod(st,ie){return(st%ie+ie)%ie}static#t=this.\u0275fac=function(ie){return new(ie||B)(f.Y36(f.Qsj),f.Y36(f.sBO),f.Y36(t._s),f.Y36(t.QD),f.Y36(t.fY),f.Y36(f.SBq),f.Y36(y.x0))};static#e=this.\u0275cmp=f.Xpm({type:B,selectors:[["app-hero-banner"]],viewQuery:function(ie,Ae){if(1&ie&&(f.Gf(xt,5),f.Gf(tt,5)),2&ie){let en;f.iGM(en=f.CRH())&&(Ae.slidesElement=en.first),f.iGM(en=f.CRH())&&(Ae.player=en.first)}},hostVars:11,hostBindings:function(ie,Ae){2&ie&&(f.Ikx("aria-hidden",Ae.hidden),f.Udp("--banner-height",Ae.bannerHeight)("--banner-max-height",Ae.bannerMaxHeight)("--banner-mobile-height",Ae.bannerMobileHeight)("--banner-mobile-max-height",Ae.bannerMobileMaxHeight),f.ekj("hidden",Ae.hidden))},decls:4,vars:2,consts:[["class","slide-track",4,"ngIf"],[4,"ngIf"],["contentTemplate",""],[1,"slide-track"],["slides",""],["class","slide",4,"ngIf"],["class","slide",3,"single-banner",4,"ngLet"],[1,"slide"],["loop","","preload","auto",3,"muted",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["loop","","preload","auto",3,"muted"],["type","video/mp4",3,"src"],["loop","","playsinline","","autoplay","","preload","auto",3,"muted",4,"ngIf"],["loop","","playsinline","","autoplay","","preload","auto",3,"muted"],["player",""],[1,"prev",3,"icon","click"],[1,"next",3,"icon","click"],[3,"src","alt",4,"ngIf"],["class","title",4,"ngIf"],[3,"routerLink","target",4,"ngIf"],[3,"href","target",4,"ngIf"],[3,"routerLink","target"],["class","title link",4,"ngIf"],[3,"src","alt"],[1,"title","link"],[3,"href","target"],[1,"title"],[1,"textbox-img",3,"src"],[1,"textbox-wrapper",3,"ngClass"],[1,"textbox"],[3,"routerLink",4,"ngIf"],[3,"routerLink"],["svgIcon","arrow_forward"]],template:function(ie,Ae){1&ie&&(f.YNc(0,Ct,6,5,"div",0),f.YNc(1,H,3,2,"ng-container",1),f.YNc(2,yt,2,2,"ng-template",null,2,f.W1O)),2&ie&&(f.Q6J("ngIf",null==Ae.activeBanners?null:Ae.activeBanners.length),f.xp6(1),f.Q6J("ngIf",(null==Ae.activeBanners?null:Ae.activeBanners.length)>1))},dependencies:[O.mk,O.O5,O.tP,G.h,U.Hw,lt.h,ut.rH,Ht.r,O.Ov,A.I],styles:["[_nghost-%COMP%]{position:relative;width:100%;max-height:var(--banner-max-height, 500px)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-height:var(--banner-mobile-max-height, 300px)}}.grenaa-slagtehus-theme[_nghost-%COMP%], .herligheder-theme[_nghost-%COMP%]{max-height:650px}.grenaa-slagtehus-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%], .herligheder-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]{max-height:650px}.grenaa-slagtehus-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%], .herligheder-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]{height:650px;max-height:650px}.grenaa-slagtehus-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]:not(.single-banner), .herligheder-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]:not(.single-banner){height:650px}.grenaa-slagtehus-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%], .herligheder-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]{max-width:1560px}.grenaa-slagtehus-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%], .herligheder-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{max-width:468px}@media only screen and (min-width: 0px) and (max-width: 768px){.grenaa-slagtehus-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%], .herligheder-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{max-width:unset}}.meny-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]{max-height:var(--banner-max-height, 500px);height:var(--banner-height, 32vw)}@media only screen and (min-width: 0px) and (max-width: 768px){.meny-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]{max-height:var(--banner-mobile-max-height, 300px);height:var(--banner-mobile-max-height, 58vw)}}.meny-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(.5)}.meny-theme.spar-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .spar-theme.spar-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .min-kobmand-theme.spar-theme[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   div.slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:brightness(.8)}@media only screen and (min-width: 0px) and (max-width: 768px){.meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:36px;height:36px;top:unset;bottom:-12px}.meny-theme[_nghost-%COMP%]   app-icon-button.prev[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button.prev[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   app-icon-button.prev[_ngcontent-%COMP%]{left:calc(45vw - 36px)}.meny-theme[_nghost-%COMP%]   app-icon-button.next[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button.next[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   app-icon-button.next[_ngcontent-%COMP%]{right:calc(45vw - 36px)}}.hidden[_nghost-%COMP%]{display:none}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]{display:flex;white-space:nowrap;overflow:visible;width:100%;height:100%;max-height:var(--banner-max-height, 500px)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]{max-height:var(--banner-mobile-max-height, 300px)}}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]{flex:0 0 auto;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;background-size:cover;background-position:center;overflow:hidden;width:100%;max-height:var(--banner-max-height, 500px);height:var(--banner-height, 500px)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]{max-height:var(--banner-mobile-max-height, 300px);height:var(--banner-mobile-height, 300px)}}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]:not(.single-banner){transform:translate(-100%)}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;max-height:100%;object-fit:cover}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   img.textbox-img[_ngcontent-%COMP%]{position:absolute}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{position:absolute;z-index:500;display:flex;justify-content:center;align-items:center;text-align:center;font-size:60px;font-family:var(--font);font-weight:700;line-height:65px;letter-spacing:1px;color:#fff;white-space:pre-wrap;width:80vw;height:100%;margin:0 10vw}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .title.link[_ngcontent-%COMP%]{cursor:pointer}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:34px;line-height:38px}}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;max-width:var(--nxt-width);width:100%;height:100%;min-height:var(--banner-height, 500px);margin:0 auto}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.left[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.middel[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.right[_ngcontent-%COMP%]{justify-content:flex-end}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.top[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{margin-bottom:auto}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.bottom[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{margin-top:auto}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.bottom-right[_ngcontent-%COMP%]{justify-content:flex-end}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper.bottom-right[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{margin-top:auto}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{max-width:calc(var(--nxt-width) * .4);background-color:#fff;padding:40px;white-space:normal;overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]{width:100%;max-width:unset}}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%] > h1[_ngcontent-%COMP%]{font-size:48px;margin-top:0}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content;height:50px}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%]   .textbox-wrapper[_ngcontent-%COMP%]   .textbox[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     .text-button{border-radius:128px}[_nghost-%COMP%]   .slide-track[_ngcontent-%COMP%]   .slide[_ngcontent-%COMP%] > video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;width:46px;height:46px;top:50%;transform:translateY(-50%)}[_nghost-%COMP%]   app-icon-button.prev[_ngcontent-%COMP%]{left:64px}[_nghost-%COMP%]   app-icon-button.next[_ngcontent-%COMP%]{right:64px}[_nghost-%COMP%]   app-icon-button.next[_ngcontent-%COMP%]     mat-icon{transform:rotateY(180deg)}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{background-color:#fff0}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button mat-icon{padding-right:4px;width:24px!important;height:24px!important}"]})}return B})()},6191:(Je,Rt,c)=>{"use strict";c.d(Rt,{Zf:()=>R,LI:()=>_,N7:()=>j.N,RU:()=>on,o0:()=>gt.o,r2:()=>q.r,KN:()=>yt,Vn:()=>$t,Ns:()=>t.N,t5:()=>Ne,gX:()=>ye,Jn:()=>Ve,pJ:()=>Cn,Yc:()=>ve.Y,Rl:()=>nt,YI:()=>de.Y,_:()=>Ot,Yx:()=>X});var o=c(7985),e=c(5879),g=c(6574),x=c(617),l=c(4918);const i=["content"];let R=(()=>{class le{constructor(se,Ie,We){this.renderer=se,this.themeService=Ie,this.elRef=We,this.hidden=!0,this.icon=this.hidden?o.Ym.plus:o.Ym.minus}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngAfterContentChecked(){this.setHeight()}toggle(){this.hidden=!this.hidden,this.icon=this.hidden?o.Ym.plus:o.Ym.minus,this.setHeight()}setHeight(){this.renderer.setStyle(this.content.nativeElement,"max-height",`${this.hidden?0:this.content.nativeElement.scrollHeight}px`)}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(e.Qsj),e.Y36(g.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-accordion"]],viewQuery:function(Ie,We){if(1&Ie&&e.Gf(i,7),2&Ie){let Mn;e.iGM(Mn=e.CRH())&&(We.content=Mn.first)}},inputs:{title:"title",text:"text"},decls:7,vars:7,consts:[[3,"click"],["for","answer"],[3,"svgIcon"],["id","answer",1,"rich-text","light",3,"innerHTML"],["content",""]],template:function(Ie,We){1&Ie&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return We.toggle()}),e.TgZ(1,"label",1),e._uU(2),e.qZA(),e._UZ(3,"mat-icon",2),e.qZA(),e._UZ(4,"div",3,4),e.ALo(6,"sanitizeHtml")),2&Ie&&(e.xp6(2),e.Oqu(We.title),e.xp6(1),e.Q6J("svgIcon",We.icon),e.xp6(1),e.ekj("hidden",We.hidden),e.Q6J("innerHTML",e.lcZ(6,5,We.text),e.oJD))},dependencies:[x.Hw,l.A],styles:["[_nghost-%COMP%]{display:block;border:1px solid var(--accent-darker-color);border-radius:8px;padding:16px}.fandanko-theme[_nghost-%COMP%]   button[_ngcontent-%COMP%], .stechers-theme[_nghost-%COMP%]   button[_ngcontent-%COMP%], .apetit-theme[_nghost-%COMP%]   button[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   button[_ngcontent-%COMP%]{color:#000}.gastrolux-theme[_nghost-%COMP%]   button[_ngcontent-%COMP%]{color:#000}.gastrolux-theme[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]    >*{color:#000}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{position:relative;cursor:pointer;background-color:inherit;color:var(--warn-color);font-size:1.2em;width:100%;padding:0;border:none;text-align:left;outline:none}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:600}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:16px;height:16px}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]{white-space:pre-line;margin:0;padding:16px 8px 0 0;height:100%;max-height:100%;overflow:hidden;transition:all .3s ease-out}[_nghost-%COMP%]   .rich-text.hidden[_ngcontent-%COMP%]{padding:0 8px 0 0}"]})}return le})();c(413);var t=c(303),U=(c(8810),c(5143),c(586),c(7954)),lt=c(2802),ut=c(2787),Ht=c(3902),A=c(6814),xt=c(9388);function tt(le,cn){1&le&&(e.TgZ(0,"div",3)(1,"button",4),e._UZ(2,"mat-icon",5),e.qZA()())}function ct(le,cn){if(1&le&&(e.TgZ(0,"li",6)(1,"a",7),e._uU(2),e.ALo(3,"titlecase"),e.qZA()()),2&le){const se=cn.$implicit;e.xp6(1),e.Q6J("routerLink",se.url),e.xp6(1),e.hij(" ",e.lcZ(3,2,se.label)," ")}}let _=(()=>{class le extends lt.I{constructor(se,Ie,We,Mn,ci){super(se,U.NS.header),this.route=Ie,this.categoryService=We,this.themeService=Mn,this.elRef=ci,this.breadcrumbs=[],this.groceries=this.content.get("groceries"),this.isDagrofa=this.contentService.isDagrofa}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnChanges(){this.breadcrumbs=this.buildBreadCrumb(this.categoryId)}buildBreadCrumb(se){const We=`/${this.route.parent.routeConfig?this.route.parent.routeConfig.path:""}`;let Mn=[];this.groceries&&(Mn=[...Mn,{label:this.groceries,url:We}]),this.isDagrofa&&(Mn=[{label:"Forside",url:"/"},...Mn]);const ci=this.buildCategoryBreadcrumb(se,We);if(ci&&(Mn=[...Mn,ci]),this.product){const Ji={label:this.product.productDisplayTitle||this.product.productDisplayName,url:null};Mn=[...Mn,Ji]}return Mn.reverse()}buildCategoryBreadcrumb(se,Ie){if(!se)return null;const We=this.categoryService.getById(se);if(!We)return console.warn("Product category not recognized: ",se),null;if(!We.frontendDisplay||We.hidden)return null;const Mn=We.categoryUrl||We.name.replace(/\s/g,"-").toLowerCase();return{label:We.name,url:`${Ie}/${Mn}`}}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(U._s),e.Y36(ut.gz),e.Y36(Ht.H),e.Y36(g.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-breadcrumb"]],inputs:{categoryId:"categoryId",product:"product"},features:[e.qOj,e.TTD],decls:3,vars:2,consts:[["class","back-wrapper",4,"ngIf"],["dir","rtl",1,"breadcrumb"],["class","breadcrumb-item",4,"ngFor","ngForOf"],[1,"back-wrapper"],["onclick","history.back()",1,"back","unstyled-button"],["svgIcon","left_arrow"],[1,"breadcrumb-item"],["queryParamsHandling","merge",3,"routerLink"]],template:function(Ie,We){1&Ie&&(e.YNc(0,tt,3,0,"div",0),e.TgZ(1,"ol",1),e.YNc(2,ct,4,4,"li",2),e.qZA()),2&Ie&&(e.Q6J("ngIf",We.isDagrofa),e.xp6(2),e.Q6J("ngForOf",We.breadcrumbs))},dependencies:[A.sg,A.O5,xt.Lv,x.Hw,ut.rH,A.rS],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:grid;grid-template-columns:1fr;max-width:100%}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{grid-template-columns:32px 1fr}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{grid-template-columns:32px 1fr}}.min-kobmand-theme[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-transform:uppercase}.min-kobmand-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]{display:none;position:absolute;margin-top:-10px;margin-left:12px}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]{display:inline}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]{display:inline}}.min-kobmand-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:10px;width:32px;height:32px;background-color:#fff;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;border-radius:8px}.min-kobmand-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path, .spar-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path, .meny-theme[_nghost-%COMP%]   .back-wrapper[_ngcontent-%COMP%]   .back[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#000}.grenaa-slagtehus-theme[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child)   a[_ngcontent-%COMP%]{color:#878787}.grenaa-slagtehus-theme[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{color:#878787}.clpartyservice-theme[_nghost-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fe0}.apetit-theme[_nghost-%COMP%]   ol[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]{box-sizing:border-box;list-style-type:none;padding:0;height:20px;font-weight:700;font-size:12px;text-align:left;margin:0;grid-column-start:1}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:clip;text-align:right;width:100%;max-width:100%;padding-left:40px;grid-column-start:2}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]{overflow:hidden;white-space:nowrap;text-overflow:clip;text-align:right;width:100%;max-width:100%;padding-left:40px;grid-column-start:2}}[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child)   a[_ngcontent-%COMP%]{color:#b1bfc3}[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{content:"\\2014";padding:0 4px;color:#b1bfc3}[_nghost-%COMP%]   .breadcrumb[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--text-primary-lighter-color);text-decoration:none}']})}return le})();var j=c(2305),q=c(5699),ht=c(8514),gt=(c(3752),c(9983)),H=(c(5330),c(5961),c(7592)),J=c(7394),z=c(4953),F=c(3991);function rt(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"app-icon-button",8),e.NdJ("click",function(){e.CHM(se);const We=e.oxw();return e.KtG(We.close())}),e.qZA()}if(2&le){const se=e.oxw();e.Q6J("icon",se.closeIcon)("border",!1)}}function V(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"img",9),e.NdJ("click",function(){const Mn=e.CHM(se).index,ci=e.oxw();return e.KtG(ci.selected=Mn)}),e.ALo(1,"cms"),e.qZA()}2&le&&e.Q6J("src",e.lcZ(1,1,cn.$implicit),e.LSH)}function Pt(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"img",9),e.NdJ("click",function(){const Mn=e.CHM(se).index,ci=e.oxw();return e.KtG(ci.selected=Mn)}),e.ALo(1,"cms"),e.qZA()}2&le&&e.Q6J("src",e.lcZ(1,1,cn.$implicit),e.LSH)}let $t=(()=>{class le{constructor(se,Ie){this.dialogRef=se,this.data=Ie,this.subscription=new J.w0,this.closeIcon=o.qq.bigCross,this.showButton=!1}ngOnInit(){this.selected=this.data.index,this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1}))}ngOnDestroy(){this.subscription.unsubscribe()}close(){this.dialogRef.close()}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(H.hV),e.Y36(H.eJ))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-image-carousel-dialog"]],decls:11,vars:6,consts:[[3,"icon","border","click",4,"ngIf"],[1,"desktop"],[1,"selected"],[3,"src"],[1,"list"],[3,"src","click",4,"ngFor","ngForOf"],[1,"mobile"],[1,"mobile-content"],[3,"icon","border","click"],[3,"src","click"]],template:function(Ie,We){1&Ie&&(e.YNc(0,rt,1,2,"app-icon-button",0),e.TgZ(1,"div",1)(2,"div",2),e._UZ(3,"img",3),e.ALo(4,"cms"),e.qZA(),e.TgZ(5,"ng-scrollbar")(6,"div",4),e.YNc(7,V,2,3,"img",5),e.qZA()()(),e.TgZ(8,"ng-scrollbar",6)(9,"div",7),e.YNc(10,Pt,2,3,"img",5),e.qZA()()),2&Ie&&(e.Q6J("ngIf",We.showButton),e.xp6(3),e.Q6J("src",e.lcZ(4,4,We.data.imageUrls[We.selected]),e.LSH),e.xp6(4),e.Q6J("ngForOf",We.data.imageUrls),e.xp6(3),e.Q6J("ngForOf",We.data.imageUrls))},dependencies:[A.sg,A.O5,z.KC,q.r,F.I],styles:["[_nghost-%COMP%]{display:flex;width:90vw;height:90vh;max-width:100%;max-height:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{height:90vh}}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:fixed;right:32px;top:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{z-index:1000;right:40px;top:40px}}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{border-radius:8px}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]{position:relative;display:flex;gap:16px;width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;justify-content:center;align-items:flex-start;height:100%;width:calc(100% - 156px)}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]   .selected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain;width:100%;max-width:100%;max-height:100%}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]   ng-scrollbar[_ngcontent-%COMP%]{flex:0 0 auto;width:140px}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]   ng-scrollbar[_ngcontent-%COMP%]  .scrollbar-control{right:-16px!important}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]   ng-scrollbar[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:140px;gap:16px}[_nghost-%COMP%]   .desktop[_ngcontent-%COMP%]   ng-scrollbar[_ngcontent-%COMP%]   .list[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{cursor:pointer;object-fit:cover}[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]{display:none;width:100%;margin-right:-8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]  .scrollbar-control{right:-16px!important}[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:calc(100% - 8px)}[_nghost-%COMP%]   .mobile[_ngcontent-%COMP%]   .mobile-content[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;width:100%}"]})}return le})();var Lt=c(6939),Jt=c(3176);function Tt(le,cn){if(1&le&&(e.TgZ(0,"div",5),e._uU(1),e.qZA()),2&le){const se=cn.ngIf;e.xp6(1),e.Oqu(se.label)}}function $(le,cn){1&le&&(e._UZ(0,"img",6),e.ALo(1,"cms")),2&le&&e.Q6J("src",e.Dn7(1,1,cn.ngIf,75,80),e.LSH)}function pt(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"img",3),e.NdJ("click",function(){e.CHM(se);const We=e.oxw(2);return e.KtG(We.openCarousel(1))}),e.ALo(1,"cms"),e.qZA()}if(2&le){const se=e.oxw(2);e.Q6J("src",e.lcZ(1,2,se.images[1]),e.LSH)("alt",se.product.productDisplayName)}}function Dt(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"img",3),e.NdJ("click",function(){e.CHM(se);const We=e.oxw(2);return e.KtG(We.openCarousel(2))}),e.ALo(1,"cms"),e.qZA()}if(2&le){const se=e.oxw(2);e.Q6J("src",e.lcZ(1,2,se.images[2]),e.LSH)("alt",se.product.productDisplayName)}}function St(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"img",3),e.NdJ("click",function(){e.CHM(se);const We=e.oxw(2);return e.KtG(We.openCarousel(3))}),e.ALo(1,"cms"),e.qZA()}if(2&le){const se=e.oxw(2);e.Q6J("src",e.lcZ(1,2,se.images[3]),e.LSH)("alt",se.product.productDisplayName)}}function mt(le,cn){if(1&le&&(e.TgZ(0,"div",7),e.YNc(1,pt,2,4,"img",8),e.YNc(2,Dt,2,4,"img",8),e.YNc(3,St,2,4,"img",8),e.qZA()),2&le){const se=e.oxw();e.xp6(1),e.Q6J("ngIf",se.images[1]),e.xp6(1),e.Q6J("ngIf",se.images[2]),e.xp6(1),e.Q6J("ngIf",se.images[3])}}let yt=(()=>{class le{constructor(se,Ie,We){this.dialogService=se,this.themeService=Ie,this.elRef=We,this.tabindex=-1,this.placeholder=Lt.b}ngOnChanges(se){if(se.product){const{primaryImageUrl:Ie,imageUrls:We}=this.product;this.images=[Ie,...We]}}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openCarousel(se){this.dialogService.openImageCarouselDialog({imageUrls:this.images,index:se})}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(U.xA),e.Y36(U.fY),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-image-carousel"]],hostVars:1,hostBindings:function(Ie,We){2&Ie&&e.Ikx("tabindex",We.tabindex)},inputs:{product:"product"},features:[e.TTD],decls:6,vars:9,consts:[["class","delivery-limit badge",4,"ngIf"],["class","product-badge","alt","badge",3,"src",4,"ngIf"],[1,"primary"],[3,"src","alt","click"],["class","secondary",4,"ngIf"],[1,"delivery-limit","badge"],["alt","badge",1,"product-badge",3,"src"],[1,"secondary"],[3,"src","alt","click",4,"ngIf"]],template:function(Ie,We){1&Ie&&(e.YNc(0,Tt,2,1,"div",0),e.YNc(1,$,2,5,"img",1),e.TgZ(2,"div",2)(3,"img",3),e.NdJ("click",function(){return We.openCarousel(0)}),e.ALo(4,"source"),e.qZA()(),e.YNc(5,mt,4,3,"div",4)),2&Ie&&(e.Q6J("ngIf",We.product.productDeliveryLimit),e.xp6(1),e.Q6J("ngIf",We.product.badgeUrl),e.xp6(1),e.ekj("fill",!(null!=We.product.imageUrls&&We.product.imageUrls.length)),e.xp6(1),e.Q6J("src",e.lcZ(4,7,We.product),e.LSH)("alt",We.product.productDisplayName),e.xp6(2),e.Q6J("ngIf",null==We.product.imageUrls?null:We.product.imageUrls.length))},dependencies:[A.O5,Jt.N,F.I],styles:["[_nghost-%COMP%]{align-self:flex-start;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;width:40%;max-width:40%;padding-top:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{flex:1 1 auto;width:100%;height:100%;max-width:100%;margin-right:0;margin-bottom:16px;padding-top:0}}.meny-theme[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{padding:0 24px;border-radius:128px;font-weight:700}.spar-theme[_nghost-%COMP%]   img[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   img[_ngcontent-%COMP%]{object-fit:contain}[_nghost-%COMP%]   .product-badge[_ngcontent-%COMP%]{position:absolute;top:-10px;right:-10px;width:80px;height:80px}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;box-sizing:border-box;height:36px;top:16px;right:0;padding:0 20px;background-color:var(--primary-color);color:var(--text-primary-color);border-radius:4px;border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right-width:0px;font-weight:500}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]:has( + .product-badge)[_ngcontent-%COMP%]{top:80px}[_nghost-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover;border-radius:8px;cursor:pointer}[_nghost-%COMP%]   .primary[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .primary[_ngcontent-%COMP%]{max-height:340px;width:100%}}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   .primary.fill[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:600px}}[_nghost-%COMP%]   .primary[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   .primary[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:490px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .primary[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:340px;object-fit:contain}}[_nghost-%COMP%]   .secondary[_ngcontent-%COMP%]{flex:0 0 auto;display:grid;grid-template-columns:repeat(3,1fr);width:100%;gap:10px;margin-bottom:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .secondary[_ngcontent-%COMP%]{height:100%}}[_nghost-%COMP%]   .secondary[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-height:100px}"]})}return le})();c(4502);var st=c(6223),ie=c(4807);function Ae(le,cn){if(1&le&&(e.TgZ(0,"ng-option",2),e._uU(1),e.qZA()),2&le){const se=e.oxw();e.Q6J("value",0),e.xp6(1),e.Oqu(se.paymentLabels.default)}}function en(le,cn){if(1&le&&(e.TgZ(0,"ng-option",2),e._uU(1),e.qZA()),2&le){const se=e.oxw();e.Q6J("value",1),e.xp6(1),e.Oqu(se.paymentLabels.cash)}}function In(le,cn){if(1&le&&(e.TgZ(0,"ng-option",2),e._uU(1),e.qZA()),2&le){const se=e.oxw();e.Q6J("value",2),e.xp6(1),e.Oqu(se.paymentLabels.invoice)}}let Ve=(()=>{class le{constructor(){this.required=!0,this.selectedPaymentOptionChange=new e.vpe}set selectedPaymentOption(se){this.selectedPaymentOptionValue=se,this.selectedPaymentOptionChange.emit(se)}get selectedPaymentOption(){return this.selectedPaymentOptionValue}static#t=this.\u0275fac=function(Ie){return new(Ie||le)};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-payment-select"]],inputs:{required:"required",paymentTypes:"paymentTypes",paymentLabels:"paymentLabels",selectedPaymentOptionValue:"selectedPaymentOptionValue"},outputs:{selectedPaymentOptionChange:"selectedPaymentOptionChange"},decls:4,vars:6,consts:[["placeholder","V\xe6lg betalingsform","labelForId","paymentId",3,"ngModel","searchable","clearable","ngModelChange"],[3,"value",4,"ngIf"],[3,"value"]],template:function(Ie,We){1&Ie&&(e.TgZ(0,"ng-select",0),e.NdJ("ngModelChange",function(ci){return We.selectedPaymentOption=ci}),e.YNc(1,Ae,2,2,"ng-option",1),e.YNc(2,en,2,2,"ng-option",1),e.YNc(3,In,2,2,"ng-option",1),e.qZA()),2&Ie&&(e.Q6J("ngModel",We.selectedPaymentOption)("searchable",!1)("clearable",!1),e.xp6(1),e.Q6J("ngIf",We.paymentTypes.default),e.xp6(1),e.Q6J("ngIf",We.paymentTypes.cash),e.xp6(1),e.Q6J("ngIf",We.paymentTypes.invoice))},dependencies:[A.O5,st.JJ,st.On,ie.w9,ie.jq]})}return le})();var jt=c(6093);c(7299);var ve=c(4291),me=c(7472);function De(le,cn){if(1&le&&(e.TgZ(0,"div",14),e._uU(1),e.qZA()),2&le){const se=cn.ngIf;e.xp6(1),e.Oqu(se.label)}}function tn(le,cn){1&le&&(e._UZ(0,"img",15),e.ALo(1,"cms")),2&le&&e.Q6J("src",e.Dn7(1,1,cn.ngIf,75,80),e.LSH)}function gn(le,cn){if(1&le&&e._UZ(0,"app-savings",16),2&le){const se=e.oxw();e.Q6J("savings",se.savings)}}function Xe(le,cn){if(1&le&&e._UZ(0,"mat-icon",19),2&le){const se=e.oxw(2);e.Q6J("svgIcon",se.primaryTag.icon)}}const rn=function(le){return{"background-color":le}};function re(le,cn){if(1&le&&(e.TgZ(0,"span",17),e.YNc(1,Xe,1,1,"mat-icon",18),e._uU(2),e.qZA()),2&le){const se=e.oxw();e.Q6J("ngStyle",e.VKq(3,rn,se.primaryTag.color)),e.xp6(1),e.Q6J("ngIf",se.primaryTag.icon),e.xp6(1),e.hij(" ",se.primaryTag.name," ")}}function ue(le,cn){if(1&le&&e._UZ(0,"app-price",20),2&le){const se=e.oxw();e.Q6J("value",se.price)}}function Ft(le,cn){if(1&le&&(e.TgZ(0,"span",21),e._uU(1),e.qZA()),2&le){const se=e.oxw();e.ekj("small",se.smallAltText),e.xp6(1),e.Oqu(se.product.altPriceText)}}function be(le,cn){if(1&le&&(e.TgZ(0,"span",22),e._uU(1),e.ALo(2,"number"),e.qZA()),2&le){const se=e.oxw();e.xp6(1),e.AsE(" ",se.originalPriceLabel," ",e.Dn7(2,2,se.product.originalPrice,".2-2",se.locale)," ")}}function qt(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"app-text-button",26),e.NdJ("click",function(){e.CHM(se);const We=e.oxw(3);return e.KtG(We.addProduct(We.product.minCount))}),e._uU(1),e.qZA()}if(2&le){const se=e.oxw(3);e.Q6J("disabled",!1===se.product.forSale),e.xp6(1),e.hij(" ",se.addToBasketLabel," ")}}function Te(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"app-counter",27),e.NdJ("add",function(We){e.CHM(se);const Mn=e.oxw(3);return e.KtG(Mn.addProduct(We))})("remove",function(We){e.CHM(se);const Mn=e.oxw().ngLet,ci=e.oxw(2);return e.KtG(ci.removeProduct(Mn.quantity,We))}),e.qZA()}if(2&le){const se=e.oxw().ngLet,Ie=e.oxw(2);e.Q6J("count",se.quantity)("minCount",Ie.product.minCount)}}function Me(le,cn){if(1&le&&(e.ynx(0),e.YNc(1,qt,2,2,"app-text-button",24),e.YNc(2,Te,1,2,"app-counter",25),e.BQk()),2&le){const se=cn.ngLet;e.xp6(1),e.Q6J("ngIf",!se),e.xp6(1),e.Q6J("ngIf",se)}}function _n(le,cn){if(1&le&&(e.ynx(0),e.YNc(1,Me,3,2,"ng-container",23),e.ALo(2,"async"),e.BQk()),2&le){const se=e.oxw();e.xp6(1),e.Q6J("ngLet",se.isProductLine(e.lcZ(2,1,se.basketProducts$)[se.product.id]))}}function ce(le,cn){if(1&le&&(e.TgZ(0,"app-text-button",28),e._uU(1),e.qZA()),2&le){const se=e.oxw();e.Q6J("routerLink",se.productUrl)("disabled",!1===se.product.forSale),e.xp6(1),e.hij(" ",se.chooseVariationLabel," ")}}let ye=(()=>{class le extends ve.Y{constructor(se,Ie,We,Mn,ci,Ji,Ei,Yi){super(se,Ie,We,Mn,ci,Ji,Ei,Yi)}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(U._s),e.Y36(U.vD),e.Y36(U.Ns),e.Y36(U.M5),e.Y36(U.fY),e.Y36(e.SBq),e.Y36(U.xA),e.Y36(me.K))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-online-product-card"]],features:[e.qOj],decls:17,vars:21,consts:[[3,"routerLink","click"],["class","delivery-limit badge",4,"ngIf"],["class","product-card-badge badge","alt","badge",3,"src",4,"ngIf"],["class","badge",3,"savings",4,"ngIf"],[1,"product-card-image-container"],[3,"srcset","src","alt"],["class","primary-tag",3,"ngStyle",4,"ngIf"],[1,"product-card-name"],["class","price-text",3,"value",4,"ngIf"],["class","price-text",3,"small",4,"ngIf"],["class","product-card-original-price",4,"ngIf"],[1,"buttons"],[4,"ngIf"],[3,"routerLink","disabled",4,"ngIf"],[1,"delivery-limit","badge"],["alt","badge",1,"product-card-badge","badge",3,"src"],[1,"badge",3,"savings"],[1,"primary-tag",3,"ngStyle"],["class","primary-tag-icon",3,"svgIcon",4,"ngIf"],[1,"primary-tag-icon",3,"svgIcon"],[1,"price-text",3,"value"],[1,"price-text"],[1,"product-card-original-price"],[4,"ngLet"],[3,"disabled","click",4,"ngIf"],[3,"count","minCount","add","remove",4,"ngIf"],[3,"disabled","click"],[3,"count","minCount","add","remove"],[3,"routerLink","disabled"]],template:function(Ie,We){1&Ie&&(e.TgZ(0,"a",0),e.NdJ("click",function(){return We.baseCard?We.openProductDialog():null}),e.YNc(1,De,2,1,"div",1),e.YNc(2,tn,2,5,"img",2),e.YNc(3,gn,1,1,"app-savings",3),e.TgZ(4,"div",4),e._UZ(5,"img",5),e.ALo(6,"productSizes"),e.ALo(7,"source"),e.YNc(8,re,3,5,"span",6),e.qZA(),e.TgZ(9,"b",7),e._uU(10),e.qZA(),e.YNc(11,ue,1,1,"app-price",8),e.YNc(12,Ft,2,3,"span",9),e.YNc(13,be,3,6,"span",10),e.qZA(),e.TgZ(14,"div",11),e.YNc(15,_n,3,3,"ng-container",12),e.YNc(16,ce,2,3,"app-text-button",13),e.qZA()),2&Ie&&(e.ekj("discount",We.product.splash&&We.product.originalPrice!==We.product.price),e.Q6J("routerLink",We.baseCard?null:We.productUrl),e.xp6(1),e.Q6J("ngIf",We.product.productDeliveryLimit),e.xp6(1),e.Q6J("ngIf",We.product.badgeUrl),e.xp6(1),e.Q6J("ngIf",We.savings),e.xp6(2),e.Q6J("srcset",e.xi3(6,16,We.product,We.big))("src",e.lcZ(7,19,We.product),e.LSH)("alt",We.product.productDisplayName),e.xp6(3),e.Q6J("ngIf",We.primaryTag&&!0===We.primaryTag.showFrontend),e.xp6(2),e.Oqu(We.product.productDisplayName),e.xp6(1),e.Q6J("ngIf",!We.product.altPriceText),e.xp6(1),e.Q6J("ngIf",We.product.altPriceText),e.xp6(1),e.Q6J("ngIf",We.product.splash&&We.product.originalPrice!==We.product.price),e.xp6(2),e.Q6J("ngIf",!We.product.hasModules),e.xp6(1),e.Q6J("ngIf",We.product.hasModules))},styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;width:400px;height:500px;max-width:400px;padding:0;border-radius:8px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:100%}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%}}[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]{position:absolute;top:10px;right:0;display:flex;align-items:center;padding:5px 10px;border-radius:5px 0 0 5px;color:#fff;background-color:var(--primary-color);z-index:10;font-family:var(--TypographyFamillySecondary);font-size:var(--TypographySizeL2);font-weight:700;line-height:var(--TypographyLineweightL2);text-align:right;max-width:150px;overflow:hidden;white-space:nowrap}[_nghost-%COMP%]   .primary-tag-icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:5px;object-fit:contain}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-rows:432px min-content auto;justify-items:start;height:100%;color:inherit;text-decoration:none}[_nghost-%COMP%]   a.discount[_ngcontent-%COMP%]{grid-template-rows:432px min-content auto 18px}[_nghost-%COMP%]   a[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.badge){width:100%}[_nghost-%COMP%]   app-savings[_ngcontent-%COMP%]{top:16px}[_nghost-%COMP%]   .product-card-badge[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:64px;height:64px}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;box-sizing:border-box;height:36px;top:16px;right:0;padding:0 20px;background-color:var(--primary-color);color:var(--text-primary-color);border-radius:4px;border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right-width:0px;font-weight:500}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]:has( + app-savings)[_ngcontent-%COMP%]{top:72px}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]:has( + .product-card-badge)[_ngcontent-%COMP%]{top:72px}[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{justify-self:center;display:flex;justify-content:center;align-items:center;height:400px;background-color:#fff;box-shadow:0 0 5px 1px #0000001a}[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:100%;max-height:100%;object-fit:contain;border-radius:2px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{object-fit:cover}}[_nghost-%COMP%]   .product-card-name[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:1.5em;margin-bottom:4px}[_nghost-%COMP%]   .price-text[_ngcontent-%COMP%]{align-self:flex-end;font-weight:700;font-size:1.3em}[_nghost-%COMP%]   .price-text.small[_ngcontent-%COMP%]{font-size:1em}[_nghost-%COMP%]   .product-card-original-price[_ngcontent-%COMP%]{font-size:.9em;font-weight:500;color:var(--text-accent-color)}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{position:absolute;top:340px;right:12px}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:12px}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]{position:relative;box-sizing:border-box}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button{background-color:#fff;border:1px solid var(--accent-color);color:#000}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;top:6px;left:8px;width:24px;height:24px;min-width:24px;min-height:24px;z-index:10}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button{background-color:#a2b3b9}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button   #Group-3{fill:#fff}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%]{display:none}"]})}return le})(),on=(()=>{class le{constructor(se,Ie){this.elRef=se,this.themeService=Ie,this.count=0,this.lockRemove=!1,this.lockAdd=!1,this.add=new e.vpe,this.remove=new e.vpe}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}submitCount(se){const Ie=se?.target?.value;if(!this.isNumeric(Ie))return;let Mn=+Ie-this.count;Mn<0?(Mn=Math.abs(Mn),this.remove.emit(Mn)):Mn>0&&this.add.emit(Mn),this.elRef.nativeElement.blur()}subtract(){this.lockRemove&&this.count<this.minCount?this.count=this.minCount:this.remove.emit(this.count===this.minCount?this.count:1)}isNumeric(se){return"string"==typeof se&&!isNaN(se)&&!isNaN(parseFloat(se))}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(e.SBq),e.Y36(g.f))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-counter"]],inputs:{count:"count",minCount:"minCount",lockRemove:"lockRemove",lockAdd:"lockAdd"},outputs:{add:"add",remove:"remove"},decls:7,vars:8,consts:[[1,"minus",3,"disabled","icon","smallIcon","click"],[3,"ngSubmit"],["type","number",3,"value","blur"],["icon","plus",1,"plus",3,"disabled","smallIcon","click"]],template:function(Ie,We){1&Ie&&(e.ynx(0),e.TgZ(1,"app-icon-button",0),e.NdJ("click",function(){return!We.lockRemove&&We.subtract()}),e._uU(2,"-"),e.qZA(),e.TgZ(3,"form",1),e.NdJ("ngSubmit",function(ci){return We.submitCount(ci.target.children[0].value)}),e.TgZ(4,"input",2),e.NdJ("blur",function(ci){return We.submitCount(ci)}),e.qZA()(),e.TgZ(5,"app-icon-button",3),e.NdJ("click",function(){return!We.lockAdd&&We.add.emit(1)}),e._uU(6,"+"),e.qZA(),e.BQk()),2&Ie&&(e.xp6(1),e.ekj("trashCan",!We.lockRemove&&We.count===(We.minCount||1)),e.Q6J("disabled",We.lockRemove)("icon",We.lockRemove||We.count!==(We.minCount||1)?"minus":"trash")("smallIcon",!0),e.xp6(3),e.Q6J("value",We.count),e.xp6(1),e.Q6J("disabled",We.lockAdd)("smallIcon",!0))},dependencies:[st._Y,st.JL,st.F,q.r],styles:["[_nghost-%COMP%]{display:flex;height:36px;line-height:36px;align-items:center}.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{height:20px;line-height:18px;border-style:solid;border-width:1px;border-radius:64px;border-color:var(--accent-color)}.min-kobmand-theme[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:unset;border-style:unset;border-width:unset;border-radius:unset;border-color:unset}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:20px;height:20px}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button.minus[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button.minus[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-icon-button.minus[_ngcontent-%COMP%]{margin-left:14px}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button.minus.trashCan[_ngcontent-%COMP%]     button, .spar-theme[_nghost-%COMP%]   app-icon-button.minus.trashCan[_ngcontent-%COMP%]     button, .meny-theme[_nghost-%COMP%]   app-icon-button.minus.trashCan[_ngcontent-%COMP%]     button{border:unset}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button.minus.trashCan[_ngcontent-%COMP%]     button mat-icon.small, .spar-theme[_nghost-%COMP%]   app-icon-button.minus.trashCan[_ngcontent-%COMP%]     button mat-icon.small, .meny-theme[_nghost-%COMP%]   app-icon-button.minus.trashCan[_ngcontent-%COMP%]     button mat-icon.small{height:100%;width:100%}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button.plus[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button.plus[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-icon-button.plus[_ngcontent-%COMP%]{margin-right:14px}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]    , .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]    , .meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]    {min-width:20px;min-height:20px}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button.border, .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button.border, .meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button.border{border-color:#000}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{-webkit-appearance:none;appearance:none;box-sizing:border-box;height:inherit;width:100%;margin:0 8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:inline-block;background-color:var(--accent-lighter-color);box-sizing:border-box;height:inherit;width:100%;font-weight:700;text-align:center;border-style:solid;border-width:1px;border-radius:64px;border-color:var(--accent-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{outline:none;border-color:#000}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-outer-spin-button, [_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:36px;height:36px}"]})}return le})();function oe(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"app-icon-button",10),e.NdJ("click",function(){e.CHM(se);const We=e.oxw();return e.KtG(We.close())}),e.qZA()}if(2&le){const se=e.oxw();e.Q6J("icon",se.crossIcon)("border",!1)}}function $e(le,cn){if(1&le&&(e._UZ(0,"div",11),e.ALo(1,"sanitizeHtml")),2&le){const se=e.oxw();e.Q6J("innerHTML",e.lcZ(1,1,se.product.productDescription),e.oJD)}}function te(le,cn){if(1&le&&(e.TgZ(0,"div",12)(1,"h2"),e._uU(2,"Allergener"),e.qZA(),e.TgZ(3,"span"),e._UZ(4,"mat-icon",13),e._uU(5),e.qZA()()),2&le){const se=e.oxw();e.xp6(5),e.Oqu(se.getAllergensString(se.product.allergens))}}function Se(le,cn){if(1&le&&(e.TgZ(0,"div"),e._uU(1),e.ALo(2,"date"),e.ALo(3,"date"),e.qZA()),2&le){const se=cn.$implicit;e.xp6(1),e.AsE(" Fra d. ",e.xi3(2,2,se.from,"shortDate")," til d. ",e.xi3(3,5,se.to,"shortDate")," ")}}function Ke(le,cn){if(1&le&&(e.TgZ(0,"div",14)(1,"label"),e._uU(2),e.qZA(),e.YNc(3,Se,4,8,"div",15),e.qZA()),2&le){const se=cn.ngIf;e.xp6(2),e.Oqu(se.label),e.xp6(1),e.Q6J("ngForOf",se.intervals)}}function Oe(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"app-text-button",16),e.NdJ("click",function(){e.CHM(se);const We=e.oxw();return e.KtG(We.addProduct(We.product.minCount))}),e._uU(1),e.qZA()}if(2&le){const se=e.oxw();e.Q6J("disabled",se.locked),e.xp6(1),e.Oqu(se.selectLabel)}}function Qe(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"div",17)(1,"app-text-button"),e._uU(2),e._UZ(3,"mat-icon",18),e.qZA(),e.TgZ(4,"app-icon-button",19),e.NdJ("click",function(){e.CHM(se);const We=e.oxw();return e.KtG(We.removeProduct())}),e.qZA()()}if(2&le){const se=e.oxw();e.xp6(2),e.hij("",se.selectedLabel," "),e.xp6(2),e.Q6J("icon",se.crossIcon)("disabled",se.locked)("border",!1)}}function et(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"app-counter",20),e.NdJ("add",function(We){e.CHM(se);const Mn=e.oxw();return e.KtG(Mn.addProduct(We))})("remove",function(We){e.CHM(se);const Mn=e.oxw();return e.KtG(Mn.removeProduct(We))}),e.qZA()}if(2&le){const se=e.oxw();e.Q6J("count",se.quantity)("minCount",se.product.minCount)("lockAdd",se.locked)("lockRemove",se.locked)}}let nt=(()=>{class le{constructor(se,Ie,We,Mn){this.dialogRef=se,this.data=Ie,this.themeService=We,this.elRef=Mn,this.placeholder=Lt.b,this.crossIcon=o.qq.bigCross,this.add=new e.vpe,this.remove=new e.vpe,this.subscription=new J.w0,this.product=Ie.product,this.quantity=Ie.quantity,this.picked=Ie.picked,this.selectLabel=Ie.selectLabel,this.selectedLabel=Ie.selectedLabel,this.locked=Ie.locked,this.moduleType=Ie.moduleType}ngOnInit(){this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}close(){this.dialogRef.close()}addProduct(se){if(!this.picked){if(this.add.emit(se),"add"!==this.moduleType)return void(this.picked=!0);this.quantity++}}removeProduct(se){this.remove.emit(se),this.picked&&(this.picked=!1),this.quantity&&this.quantity--}getAllergensString(se){return se.map(We=>jt.az[We]).join(", ")}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(H.hV),e.Y36(H.eJ),e.Y36(g.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-product-dialog"]],outputs:{add:"add",remove:"remove"},decls:13,vars:12,consts:[[3,"icon","border","click",4,"ngIf"],[1,"product-image-container"],[3,"src","alt"],["class","rich-text",3,"innerHTML",4,"ngIf"],["class","allergener",4,"ngIf"],["class","delivery-limit",4,"ngIf"],[1,"buttons"],[3,"disabled","click",4,"ngIf"],["class","picked-button",4,"ngIf"],[3,"count","minCount","lockAdd","lockRemove","add","remove",4,"ngIf"],[3,"icon","border","click"],[1,"rich-text",3,"innerHTML"],[1,"allergener"],["svgIcon","warning"],[1,"delivery-limit"],[4,"ngFor","ngForOf"],[3,"disabled","click"],[1,"picked-button"],["svgIcon","tick",1,"meny-selected-icon"],[1,"clear-selected",3,"icon","disabled","border","click"],[3,"count","minCount","lockAdd","lockRemove","add","remove"]],template:function(Ie,We){1&Ie&&(e.YNc(0,oe,1,2,"app-icon-button",0),e.TgZ(1,"div",1),e._UZ(2,"img",2),e.ALo(3,"source"),e.qZA(),e.TgZ(4,"h2"),e._uU(5),e.qZA(),e.YNc(6,$e,2,3,"div",3),e.YNc(7,te,6,1,"div",4),e.YNc(8,Ke,4,2,"div",5),e.TgZ(9,"div",6),e.YNc(10,Oe,2,2,"app-text-button",7),e.YNc(11,Qe,5,4,"div",8),e.YNc(12,et,1,4,"app-counter",9),e.qZA()),2&Ie&&(e.Q6J("ngIf",We.showButton),e.xp6(2),e.Q6J("src",e.lcZ(3,10,We.product),e.LSH)("alt",We.product.productDisplayName),e.xp6(3),e.Oqu(We.product.productDisplayName),e.xp6(1),e.Q6J("ngIf",We.product.productDescription),e.xp6(1),e.Q6J("ngIf",(null==We.product.allergens?null:We.product.allergens.length)>0),e.xp6(1),e.Q6J("ngIf",We.product.productDeliveryLimit),e.xp6(2),e.Q6J("ngIf",!We.quantity&&!We.picked),e.xp6(1),e.Q6J("ngIf",!We.quantity&&We.picked),e.xp6(1),e.Q6J("ngIf",We.quantity))},dependencies:[A.sg,A.O5,x.Hw,ht.h,q.r,on,A.uU,Jt.N,l.A],styles:["[_nghost-%COMP%]{display:flex;position:relative;flex-direction:column;width:90vw;max-width:600px;max-height:90vh;margin:-24px;padding:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:90vw;max-height:90vh}}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{height:48px;width:max-content;text-transform:uppercase;font-size:14px;line-height:16px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%]{display:inline-block;height:16px;width:16px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .clear-selected[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .clear-selected[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .clear-selected[_ngcontent-%COMP%]{display:none}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button, .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button, .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button{background-color:#3c3c3b;border:unset;color:#fff}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;right:16px;top:16px;height:40px;width:40px}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button, .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button, .meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{background-color:#3c3c3b}.min-kobmand-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path, .spar-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path, .meny-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path{fill:#fff}[_nghost-%COMP%]   .product-image-container[_ngcontent-%COMP%]{justify-self:center;display:flex;justify-content:center;align-items:center;height:300px}[_nghost-%COMP%]   .product-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:100%;max-height:100%;object-fit:cover;border-radius:8px}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;margin:24px 0 16px}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]{font-size:14px;line-height:22px;padding-bottom:24px}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     p{margin:0}[_nghost-%COMP%]   .allergener[_ngcontent-%COMP%]{border-top:1px solid #d1d9dc}[_nghost-%COMP%]   .allergener[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:20px;width:20px}[_nghost-%COMP%]   .allergener[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;font-size:14px;line-height:22px}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{flex:0 0 auto;width:150px;box-sizing:border-box}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]{position:relative;box-sizing:border-box}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button{background-color:#fff;border:1px solid var(--accent-color);color:#000}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;top:6px;left:8px;width:24px;height:24px;min-width:24px;min-height:24px;z-index:10}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button{background-color:#a2b3b9}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button   #Group-3{fill:#fff}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:fixed;right:32px;top:32px}"]})}return le})();function it(le,cn){if(1&le&&(e.ynx(0),e._uU(1),e.BQk()),2&le){const se=e.oxw();e.xp6(1),e.hij("",se.savings.quantity," ")}}let Ot=(()=>{class le{constructor(se,Ie){this.themeService=se,this.elRef=Ie,this.position="right"}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}get right(){return"right"===this.position}get left(){return"left"===this.position}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(g.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-savings"]],hostVars:4,hostBindings:function(Ie,We){2&Ie&&e.ekj("right",We.right)("left",We.left)},inputs:{savings:"savings",position:"position"},decls:5,vars:5,consts:[[4,"ngIf"],[3,"value"]],template:function(Ie,We){1&Ie&&(e.TgZ(0,"b"),e.YNc(1,it,2,1,"ng-container",0),e._uU(2),e.ALo(3,"uppercase"),e.qZA(),e._UZ(4,"app-price",1)),2&Ie&&(e.xp6(1),e.Q6J("ngIf",We.savings.quantity>1),e.xp6(1),e.hij("",e.lcZ(3,3,We.savings.label),"\n"),e.xp6(2),e.Q6J("value",We.savings.price))},styles:["[_nghost-%COMP%]{position:absolute;display:flex;flex-direction:column;align-content:center;padding:4px 8px 0;background-color:#ffd600;border:2px solid white;z-index:10}.fandanko-theme[_nghost-%COMP%]{color:#fff;background-color:#000}.fandanko-theme[_nghost-%COMP%]   app-price[_ngcontent-%COMP%], .fandanko-theme[_nghost-%COMP%]   b[_ngcontent-%COMP%]{text-align:left}.right[_nghost-%COMP%]{right:0;border-right:0px;border-top-left-radius:4px;border-bottom-left-radius:4px;box-shadow:-1px 0 5px #0000001a}.left[_nghost-%COMP%]{left:0;border-left:0px;border-top-right-radius:4px;border-bottom-right-radius:4px;box-shadow:1px 0 5px #0000001a}[_nghost-%COMP%]   b[_ngcontent-%COMP%]{font-size:.6em;font-weight:900;text-align:right}[_nghost-%COMP%]   app-price[_ngcontent-%COMP%]{font-weight:900;text-align:right}"]})}return le})();function Fe(le,cn){if(1&le&&(e.TgZ(0,"sup"),e._uU(1),e.qZA()),2&le){const se=e.oxw();e.xp6(1),e.Oqu(se.lifted)}}let Cn=(()=>{class le{constructor(se){this.contentService=se,this.bold=!0,this.splash=!1,this.forceSuperscript=!1,this.exactPriceNotation=",-",this.format=".",this.formatPrice=()=>{if(this.lower="",this.lifted="",null==this.value)return;const Mn=this.value.toFixed(2).toString().split(this.format);this.lower=Mn[0],this.isSpar?this.lower=`${Mn[0]},${Mn[1]}`:(this.isGastrolux&&(this.lower=this.lower.toString().replace(new RegExp("\\B(?<!\\.\\d*)(?=(\\d{3})+(?!\\d))","g"),".")),!Mn[1]||(()=>!this.forceSuperscript&&("0"===Mn[1]||"00"===Mn[1]))()?this.lower+=this.exactPriceNotation:this.lifted=Mn[1])};const Ie=this.contentService.getMerchant().type;Ie===jt.Pc.SPAR&&(this.currency=" kr.",this.isSpar=!0),Ie===jt.Pc.GASTROLUX&&(this.isGastrolux=!0)}ngOnChanges(){this.formatPrice()}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(U._s))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-price"]],hostVars:4,hostBindings:function(Ie,We){2&Ie&&e.ekj("bold",We.bold)("splash",We.splash)},inputs:{bold:"bold",splash:"splash",forceSuperscript:"forceSuperscript",value:"value",currency:"currency"},features:[e.TTD],decls:3,vars:3,consts:[[4,"ngIf"]],template:function(Ie,We){1&Ie&&(e._uU(0),e.YNc(1,Fe,2,1,"sup",0),e._uU(2)),2&Ie&&(e.Oqu(We.lower),e.xp6(1),e.Q6J("ngIf",We.lifted),e.xp6(1),e.hij(" ",We.currency,"\n"))},dependencies:[A.O5],styles:["[_nghost-%COMP%]{font-size:1.75em}.bold[_nghost-%COMP%]{font-weight:700}.splash[_nghost-%COMP%]{text-decoration:underline}[_nghost-%COMP%]   sup[_ngcontent-%COMP%]{padding-left:1px;font-size:.6em}"]})}return le})();var de=c(6373);function He(le,cn){if(1&le&&(e.TgZ(0,"ng-option",2),e._uU(1),e.qZA()),2&le){const se=cn.$implicit;e.Q6J("value",se.id),e.xp6(1),e.hij(" ",se.name," ")}}let X=(()=>{class le{constructor(){this.required=!0,this.selectedShippingOptionChange=new e.vpe}set selectedShippingOption(se){this.selectedShippingOptionValue=se,this.selectedShippingOptionChange.emit(se)}get selectedShippingOption(){return this.selectedShippingOptionValue}ngOnChanges(se){this.initShipping&&(this.selectedShippingOptionValue=this.initShipping.id);const Ie=se.options;Ie&&!Ie.firstChange&&!this.options.find(We=>We.id===this.selectedShippingOption)&&(this.selectedShippingOption=void 0)}static#t=this.\u0275fac=function(Ie){return new(Ie||le)};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-shipping-dropdown"]],inputs:{required:"required",options:"options",optionsPlaceholder:"optionsPlaceholder",initShipping:"initShipping",disabled:"disabled"},outputs:{selectedShippingOptionChange:"selectedShippingOptionChange"},features:[e.TTD],decls:2,vars:6,consts:[["labelForId","shippingId",3,"ngModel","searchable","clearable","disabled","placeholder","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(Ie,We){1&Ie&&(e.TgZ(0,"ng-select",0),e.NdJ("ngModelChange",function(ci){return We.selectedShippingOption=ci}),e.YNc(1,He,2,2,"ng-option",1),e.qZA()),2&Ie&&(e.Q6J("ngModel",We.selectedShippingOption)("searchable",!1)("clearable",!1)("disabled",We.disabled)("placeholder",We.optionsPlaceholder),e.xp6(1),e.Q6J("ngForOf",We.options))},dependencies:[A.sg,st.JJ,st.On,ie.w9,ie.jq],styles:["[_nghost-%COMP%]   app-price[_ngcontent-%COMP%]{position:absolute;right:32px;font-size:1em}"]})}return le})();c(5181);var ze=c(8005);function dn(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"li",4),e.NdJ("click",function(){e.CHM(se);const We=e.oxw(3);return e.KtG(We.clearCategory())}),e.ALo(1,"async"),e.TgZ(2,"div",5),e._uU(3),e.qZA(),e._UZ(4,"mat-icon",6),e.qZA()}if(2&le){const se=e.oxw(3);let Ie;e.ekj("selected",!(null!=(Ie=e.lcZ(1,3,se.selectedCategories))&&Ie.size)),e.xp6(3),e.Oqu(se.allProducts)}}function Tn(le,cn){if(1&le){const se=e.EpF();e.TgZ(0,"li",7),e.NdJ("click",function(){const Mn=e.CHM(se).$implicit,ci=e.oxw(3);return e.KtG(ci.clickCategory(Mn.id))}),e.ALo(1,"async"),e.TgZ(2,"div",5),e._uU(3),e.qZA()()}if(2&le){const se=cn.$implicit,Ie=e.oxw(3);e.ekj("selected",e.lcZ(1,3,Ie.selectedCategories).has(se.id)),e.xp6(3),e.hij(" ",se.name," ")}}function je(le,cn){if(1&le&&(e.ynx(0),e.YNc(1,dn,5,5,"li",2),e.YNc(2,Tn,4,5,"li",3),e.ALo(3,"async"),e.BQk()),2&le){const se=e.oxw(2);e.xp6(1),e.Q6J("ngIf",se.allProducts),e.xp6(1),e.Q6J("ngForOf",e.lcZ(3,2,se.categories))}}function ke(le,cn){if(1&le&&(e.TgZ(0,"section")(1,"ul",1),e.YNc(2,je,4,4,"ng-container",0),e.qZA()()),2&le){const se=e.oxw();e.xp6(2),e.Q6J("ngIf",se.categories)}}let Ne=(()=>{class le extends gt.o{constructor(se,Ie,We,Mn,ci,Ji){super(se,Ie,We,Mn,ci,Ji)}static#t=this.\u0275fac=function(Ie){return new(Ie||le)(e.Y36(U._s),e.Y36(Ht.H),e.Y36(g.f),e.Y36(e.SBq),e.Y36(ze.oL,8),e.Y36(ze.OG,8))};static#e=this.\u0275cmp=e.Xpm({type:le,selectors:[["app-online-filter-menu"]],features:[e.qOj],decls:1,vars:1,consts:[[4,"ngIf"],[1,"categories"],["class","show-all-category",3,"selected","click",4,"ngIf"],[3,"selected","click",4,"ngFor","ngForOf"],[1,"show-all-category",3,"click"],["aria-labelledby","categoryHeader"],["svgIcon","tick","aria-hidden","true"],[3,"click"]],template:function(Ie,We){1&Ie&&e.YNc(0,ke,3,1,"section",0),2&Ie&&e.Q6J("ngIf",We.categories)},dependencies:[A.sg,A.O5,x.Hw,A.Ov],styles:["[_nghost-%COMP%]{flex:0 0 auto;align-self:flex-start;display:flex;flex-direction:column;width:292px;height:auto;overflow:hidden}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%;height:100%;padding-bottom:0}}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{overflow-x:auto}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;text-decoration:none}[_nghost-%COMP%]   ul.categories[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-size:1em;cursor:pointer}[_nghost-%COMP%]   ul.filters[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:28px;width:auto}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;padding:8px 16px 8px 0;height:44px;font-size:.9em;font-weight:400}[_nghost-%COMP%]   ul[_ngcontent-%COMP%]   li.selected[_ngcontent-%COMP%]{font-weight:700}"]})}return le})()},4502:(Je,Rt,c)=>{"use strict";c.d(Rt,{p:()=>G});var o=c(6093),e=c(7299),g=c(2802),x=c(5879),l=c(7954),i=c(6814),R=c(617);function f(U,lt){1&U&&(x.ynx(0),x._UZ(1,"img",1)(2,"img",2)(3,"img",3),x.BQk())}function t(U,lt){1&U&&(x.ynx(0),x._UZ(1,"mat-icon",4)(2,"mat-icon",5)(3,"mat-icon",6)(4,"mat-icon",7)(5,"mat-icon",8),x.BQk())}function y(U,lt){if(1&U&&x._UZ(0,"img",10),2&U){const ut=lt.$implicit;x.Q6J("src",ut.img,x.LSH)("alt",ut.name)}}function O(U,lt){if(1&U&&(x.ynx(0),x.YNc(1,y,1,2,"img",9),x.BQk()),2&U){const ut=x.oxw();x.xp6(1),x.Q6J("ngForOf",ut.paymentOptions)}}let G=(()=>{class U extends g.I{constructor(ut){super(ut,"paymentOptions"),this.imageOrigin=e.environment.cmsOrigin;const Ht=this.content.get("paymentOptionList");Ht&&(this.paymentOptions=Ht.map(A=>{const{PaymentOptionImage:xt,PaymentOptionName:tt}=A;return{name:tt,img:`${this.imageOrigin}${xt}`}})),this.contentService.getMerchant()?.type===o.Pc.FANDANKO&&(this.useIcons=!0)}static#t=this.\u0275fac=function(Ht){return new(Ht||U)(x.Y36(l._s))};static#e=this.\u0275cmp=x.Xpm({type:U,selectors:[["app-payment-options"]],hostVars:2,hostBindings:function(Ht,A){2&Ht&&x.ekj("use-icons",A.useIcons)},features:[x.qOj],decls:3,vars:3,consts:[[4,"ngIf"],["src","assets/images/mastercard@2x.png","alt","Mastercard"],["src","assets/images/visa@2x.png","alt","Visa"],["src","assets/images/dankort@2x.png","alt","Dankort"],["svgIcon","mastercard","alt","Mastercard"],["svgIcon","visa","alt","Visa"],["svgIcon","dankort","alt","Dankort"],["svgIcon","mobilepay","alt","MobilePay"],["svgIcon","ean","alt","EAN"],[3,"src","alt",4,"ngFor","ngForOf"],[3,"src","alt"]],template:function(Ht,A){1&Ht&&(x.YNc(0,f,4,0,"ng-container",0),x.YNc(1,t,6,0,"ng-container",0),x.YNc(2,O,2,1,"ng-container",0)),2&Ht&&(x.Q6J("ngIf",!A.paymentOptions&&!A.useIcons),x.xp6(1),x.Q6J("ngIf",!A.paymentOptions&&A.useIcons),x.xp6(1),x.Q6J("ngIf",A.paymentOptions))},dependencies:[i.sg,i.O5,R.Hw],styles:["[_nghost-%COMP%]{display:inline-flex;background-color:#fff;color:#000;height:28px;width:-moz-fit-content;width:fit-content;padding:1px;border-radius:4px;margin-top:16px;white-space:nowrap}.use-icons[_nghost-%COMP%]{background-color:#000;padding:2px;gap:8px}[_nghost-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{flex:0 1 auto;height:28px;min-width:0;max-width:100%;object-fit:contain}[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:auto;width:44px}"]})}return U})()},4291:(Je,Rt,c)=>{"use strict";c.d(Rt,{Y:()=>Lt});var o=c(5879),e=c(7394),g=c(8180),x=c(6939),l=c(6093),i=c(7985),R=c(2802),f=c(7299),t=c(7954),y=c(6574),O=c(7472);function G(Jt,Tt){if(1&Jt&&(o.TgZ(0,"div",13),o._uU(1),o.qZA()),2&Jt){const $=Tt.ngIf;o.xp6(1),o.Oqu($.label)}}function U(Jt,Tt){1&Jt&&(o._UZ(0,"img",14),o.ALo(1,"cms")),2&Jt&&o.Q6J("src",o.Dn7(1,1,Tt.ngIf,75,80),o.LSH)}function lt(Jt,Tt){if(1&Jt&&o._UZ(0,"app-savings",15),2&Jt){const $=o.oxw();o.Q6J("savings",$.savings)}}function ut(Jt,Tt){if(1&Jt&&o._UZ(0,"mat-icon",18),2&Jt){const $=o.oxw(2);o.Q6J("svgIcon",$.primaryTag.icon)}}const Ht=function(Jt){return{"background-color":Jt}};function A(Jt,Tt){if(1&Jt&&(o.TgZ(0,"span",16),o.YNc(1,ut,1,1,"mat-icon",17),o.TgZ(2,"span"),o._uU(3),o.qZA()()),2&Jt){const $=o.oxw();o.Q6J("ngStyle",o.VKq(3,Ht,$.primaryTag.color)),o.xp6(1),o.Q6J("ngIf",$.primaryTag.icon),o.xp6(2),o.Oqu($.primaryTag.name)}}function xt(Jt,Tt){if(1&Jt&&o._UZ(0,"app-price",19),2&Jt){const $=o.oxw();o.Q6J("value",$.price)}}function tt(Jt,Tt){if(1&Jt&&(o.TgZ(0,"span",20),o._uU(1),o.qZA()),2&Jt){const $=o.oxw();o.ekj("small",$.smallAltText),o.xp6(1),o.Oqu($.product.altPriceText)}}function ct(Jt,Tt){if(1&Jt&&(o.TgZ(0,"span",21),o._uU(1),o.ALo(2,"number"),o.qZA()),2&Jt){const $=o.oxw();o.xp6(1),o.AsE(" ",$.originalPriceLabel," ",o.Dn7(2,2,$.product.originalPrice,".2-2",$.locale)," ")}}function _(Jt,Tt){if(1&Jt&&o._UZ(0,"mat-icon",30),2&Jt){const $=o.oxw(5);o.Q6J("svgIcon",$.basketIcon)}}function j(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"app-text-button",28),o.NdJ("click",function(){o.CHM($);const Dt=o.oxw(4);return o.KtG(Dt.addProduct(Dt.product.minCount))}),o.YNc(1,_,1,1,"mat-icon",29),o._uU(2),o.qZA()}if(2&Jt){const $=o.oxw(4);o.ekj("basket-icon",$.showBasketIcon),o.Q6J("disabled",!1===$.product.forSale),o.xp6(1),o.Q6J("ngIf",$.showBasketIcon),o.xp6(1),o.hij(" ",$.showBasketIcon?"":$.addToBasketLabel," ")}}function q(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"app-counter",31),o.NdJ("add",function(Dt){o.CHM($);const St=o.oxw(4);return o.KtG(St.addProduct(Dt))})("remove",function(Dt){o.CHM($);const St=o.oxw().ngLet,mt=o.oxw(3);return o.KtG(mt.removeProduct(St.quantity,Dt))}),o.qZA()}if(2&Jt){const $=o.oxw().ngLet,pt=o.oxw(3);o.Q6J("count",$.quantity)("minCount",pt.product.minCount)}}function ht(Jt,Tt){if(1&Jt&&(o.ynx(0),o.YNc(1,j,3,5,"app-text-button",26),o.YNc(2,q,1,2,"app-counter",27),o.BQk()),2&Jt){const $=Tt.ngLet;o.xp6(1),o.Q6J("ngIf",!$),o.xp6(1),o.Q6J("ngIf",$)}}function vt(Jt,Tt){if(1&Jt&&(o.ynx(0),o.YNc(1,ht,3,2,"ng-container",25),o.ALo(2,"async"),o.BQk()),2&Jt){const $=o.oxw(2);o.xp6(1),o.Q6J("ngLet",$.isProductLine(o.lcZ(2,1,$.basketProducts$)[$.product.id]))}}function gt(Jt,Tt){if(1&Jt&&o._UZ(0,"mat-icon",30),2&Jt){const $=o.oxw(5);o.Q6J("svgIcon",$.basketIcon)}}function zt(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"app-text-button",28),o.NdJ("click",function(){o.CHM($);const Dt=o.oxw().ngLet,St=o.oxw(3);return o.KtG(St.addCompositeProduct(St.product.minCount,null==Dt?null:Dt.lineId))}),o.YNc(1,gt,1,1,"mat-icon",29),o._uU(2),o.qZA()}if(2&Jt){const $=o.oxw(4);o.ekj("basket-icon",$.showBasketIcon),o.Q6J("disabled",!1===$.product.forSale),o.xp6(1),o.Q6J("ngIf",$.showBasketIcon),o.xp6(1),o.hij(" ",$.showBasketIcon?"":$.addToBasketLabel," ")}}function Ct(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"app-counter",31),o.NdJ("add",function(Dt){o.CHM($);const St=o.oxw().ngLet,mt=o.oxw(3);return o.KtG(mt.addCompositeProduct(Dt,null==St?null:St.lineId))})("remove",function(Dt){o.CHM($);const St=o.oxw().ngLet,mt=o.oxw(3);return o.KtG(mt.removeCompositeProduct(St.quantity,Dt,null==St?null:St.lineId))}),o.qZA()}if(2&Jt){const $=o.oxw().ngLet,pt=o.oxw(3);o.Q6J("count",$.quantity)("minCount",pt.product.minCount)}}function H(Jt,Tt){if(1&Jt&&(o.ynx(0),o.YNc(1,zt,3,5,"app-text-button",26),o.YNc(2,Ct,1,2,"app-counter",27),o.BQk()),2&Jt){const $=Tt.ngLet;o.xp6(1),o.Q6J("ngIf",!$),o.xp6(1),o.Q6J("ngIf",$)}}function J(Jt,Tt){if(1&Jt&&(o.ynx(0),o.YNc(1,H,3,2,"ng-container",25),o.ALo(2,"async"),o.BQk()),2&Jt){const $=o.oxw(2);o.xp6(1),o.Q6J("ngLet",$.isInnerLineMap(o.lcZ(2,1,$.basketProducts$)[$.product.id]))}}function z(Jt,Tt){if(1&Jt&&(o.TgZ(0,"app-text-button",32),o._uU(1),o.qZA()),2&Jt){const $=o.oxw(2);o.Q6J("routerLink",$.productUrl)("disabled",!1===$.product.forSale),o.xp6(1),o.hij(" ",$.chooseVariationLabel," ")}}function F(Jt,Tt){if(1&Jt&&(o.TgZ(0,"div",22),o.YNc(1,vt,3,3,"ng-container",23),o.YNc(2,J,3,3,"ng-container",23),o.YNc(3,z,2,3,"app-text-button",24),o.qZA()),2&Jt){const $=o.oxw();o.xp6(1),o.Q6J("ngIf",!$.product.hasModules),o.xp6(1),o.Q6J("ngIf",$.product.hasModules&&$.product.quickCompositePurchase),o.xp6(1),o.Q6J("ngIf",$.product.hasModules)}}function rt(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"app-text-button",28),o.NdJ("click",function(){o.CHM($);const Dt=o.oxw(2);return o.KtG(Dt.add.emit(Dt.product.minCount))}),o._uU(1),o.qZA()}if(2&Jt){const $=o.oxw(2);o.Q6J("disabled",$.locked),o.xp6(1),o.Oqu($.selectLabel)}}function V(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"div",36)(1,"app-text-button"),o._uU(2),o._UZ(3,"mat-icon",37),o.qZA(),o.TgZ(4,"app-icon-button",38),o.NdJ("click",function(){o.CHM($);const Dt=o.oxw(2);return o.KtG(Dt.remove.emit())}),o.qZA()()}if(2&Jt){const $=o.oxw(2);o.xp6(2),o.hij("",$.selectedLabel," "),o.xp6(2),o.Q6J("icon",$.clearSelectionIcon)("disabled",$.locked)("border",!1)}}function Pt(Jt,Tt){if(1&Jt){const $=o.EpF();o.TgZ(0,"app-counter",39),o.NdJ("add",function(Dt){o.CHM($);const St=o.oxw(2);return o.KtG(St.add.emit(Dt))})("remove",function(Dt){o.CHM($);const St=o.oxw(2);return o.KtG(St.remove.emit(Dt))}),o.qZA()}if(2&Jt){const $=o.oxw(2);o.Q6J("count",$.quantity)("minCount",$.product.minCount)("lockAdd",$.locked)("lockRemove",$.locked)}}function $t(Jt,Tt){if(1&Jt&&(o.TgZ(0,"div",22),o.YNc(1,rt,2,2,"app-text-button",33),o.YNc(2,V,5,4,"div",34),o.YNc(3,Pt,1,4,"app-counter",35),o.qZA()),2&Jt){const $=o.oxw();o.xp6(1),o.Q6J("ngIf",!$.quantity&&!$.picked),o.xp6(1),o.Q6J("ngIf",!$.quantity&&$.picked),o.xp6(1),o.Q6J("ngIf",$.quantity)}}let Lt=(()=>{class Jt extends R.I{constructor($,pt,Dt,St,mt,yt,ee,B){super($,"sharedContent"),this.basketService=pt,this.basketQuery=Dt,this.productService=St,this.themeService=mt,this.elRef=yt,this.dialogService=ee,this.productTagService=B,this.locale=f.environment.i18n.language,this.placeholder=x.b,this.basketIcon=i.qq.basket,this.big=!1,this.small=!1,this.hideImage=!1,this.splash=!1,this.locked=!1,this.add=new o.vpe,this.remove=new o.vpe,this.lineId=1,this.clearSelectionIcon=i.qq.bigCross,this.smallAltText=!1,this.addToBasketLabel=this.content.get("addToBasketText"),this.chooseVariationLabel=this.content.get("chooseVariationText")||"V\xe6lg variation",this.originalPriceLabel=this.content.get("originalPriceLabelText"),this.isDagrofa=this.contentService.isDagrofa}ngOnInit(){if(this.basketProducts$=this.basketQuery.selectProducts$,this.price=this.product.price,this.smallAltText=!this.containsNumbers(this.product.altPriceText),this.splash=this.product?.splash,this.summaryLabel=this.product.summary,this.isDagrofa&&this.product.minCount>0&&!this.moduleType&&(this.summaryLabel=`Minimum ${this.product.minCount} kuverter`),this.product.hasModules){const $={...this.product,moduleChoices:{},price:this.price,lineId:void 0};this.composition=$}if(this.product.splash&&this.product.originalPrice!==this.product.price){let $="",pt=0;$=this.content.get("savingsLabelText"),pt=this.product.originalPrice-this.product.price,this.savings={quantity:1,label:$,price:pt}}this.primaryTag=this.productTagService.getPrimaryTag(this.product.productCategoryTagId),this.productUrl=this.createProductUrl()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}addProduct($){this.basketService.addProduct(this.product,$=$||1,!0)}removeProduct($,pt=1){this.composition={...this.composition},$!==(pt=pt||1)?this.basketService.removeProduct(this.product,pt):this.basketService.deleteProduct(this.product)}addCompositeProduct($,pt){this.composition={...this.composition},$=$||1,this.composition.lineId=pt,this.basketService.addProduct(this.composition,$)}removeCompositeProduct($,pt=1,Dt){if(pt=pt||1,this.composition.lineId=Dt,$===pt)return this.basketService.deleteProduct(this.composition),void(this.composition.lineId=void 0);this.basketService.removeProduct(this.composition,pt)}createProductUrl(){return this.productService.createProductUrl(this.product)}isProductLine($){if((0,l.d0)($))return $}isInnerLineMap($){if((0,l.e9)($))return $[this.lineId]}openProductDialog(){const pt=this.dialogService.openProductDialog({product:this.product,quantity:this.quantity,picked:this.picked,selectLabel:this.selectLabel,selectedLabel:this.selectedLabel,locked:this.locked,moduleType:this.moduleType}),Dt=new e.w0;Dt.add(pt.componentInstance.add.subscribe(St=>this.add.emit(St))),Dt.add(pt.componentInstance.remove.subscribe(St=>this.remove.emit(St))),pt.afterClosed().pipe((0,g.q)(1)).subscribe(()=>Dt.unsubscribe())}containsNumbers($){return!!$&&/[0-9]/i.test($)}static#t=this.\u0275fac=function(pt){return new(pt||Jt)(o.Y36(t._s),o.Y36(t.vD),o.Y36(t.Ns),o.Y36(t.M5),o.Y36(y.f),o.Y36(o.SBq),o.Y36(t.xA),o.Y36(O.K))};static#e=this.\u0275cmp=o.Xpm({type:Jt,selectors:[["app-product-card"]],hostVars:8,hostBindings:function(pt,Dt){2&pt&&o.ekj("big",Dt.big)("small",Dt.small)("hideImage",Dt.hideImage)("splash",Dt.splash)},inputs:{product:"product",showBasketIcon:"showBasketIcon",big:"big",small:"small",hideImage:"hideImage",baseCard:"baseCard",quantity:"quantity",picked:"picked",clearable:"clearable",selectLabel:"selectLabel",selectedLabel:"selectedLabel",locked:"locked",moduleType:"moduleType"},outputs:{add:"add",remove:"remove"},features:[o.qOj],decls:18,vars:24,consts:[[3,"routerLink","click"],["class","delivery-limit badge",4,"ngIf"],["class","product-card-badge badge","alt","badge",3,"src",4,"ngIf"],["class","badge",3,"savings",4,"ngIf"],[1,"product-card-image-container"],[3,"srcset","src","alt"],["class","primary-tag",3,"ngStyle",4,"ngIf"],[1,"product-card-name"],[1,"product-card-summary"],["class","price-text",3,"value",4,"ngIf"],["class","price-text",3,"small",4,"ngIf"],["class","product-card-original-price",4,"ngIf"],["class","buttons",4,"ngIf"],[1,"delivery-limit","badge"],["alt","badge",1,"product-card-badge","badge",3,"src"],[1,"badge",3,"savings"],[1,"primary-tag",3,"ngStyle"],["class","primary-tag-icon",3,"svgIcon",4,"ngIf"],[1,"primary-tag-icon",3,"svgIcon"],[1,"price-text",3,"value"],[1,"price-text"],[1,"product-card-original-price"],[1,"buttons"],[4,"ngIf"],[3,"routerLink","disabled",4,"ngIf"],[4,"ngLet"],[3,"basket-icon","disabled","click",4,"ngIf"],[3,"count","minCount","add","remove",4,"ngIf"],[3,"disabled","click"],[3,"svgIcon",4,"ngIf"],[3,"svgIcon"],[3,"count","minCount","add","remove"],[3,"routerLink","disabled"],[3,"disabled","click",4,"ngIf"],["class","picked-button",4,"ngIf"],[3,"count","minCount","lockAdd","lockRemove","add","remove",4,"ngIf"],[1,"picked-button"],["svgIcon","tick",1,"meny-selected-icon"],[1,"clear-selected",3,"icon","disabled","border","click"],[3,"count","minCount","lockAdd","lockRemove","add","remove"]],template:function(pt,Dt){1&pt&&(o.TgZ(0,"a",0),o.NdJ("click",function(){return Dt.baseCard?Dt.openProductDialog():null}),o.YNc(1,G,2,1,"div",1),o.YNc(2,U,2,5,"img",2),o.YNc(3,lt,1,1,"app-savings",3),o.TgZ(4,"div",4),o._UZ(5,"img",5),o.ALo(6,"productSizes"),o.ALo(7,"source"),o.YNc(8,A,4,5,"span",6),o.qZA(),o.TgZ(9,"b",7),o._uU(10),o.qZA(),o.TgZ(11,"span",8),o._uU(12),o.qZA(),o.YNc(13,xt,1,1,"app-price",9),o.YNc(14,tt,2,3,"span",10),o.YNc(15,ct,3,6,"span",11),o.qZA(),o.YNc(16,F,4,3,"div",12),o.YNc(17,$t,4,3,"div",12)),2&pt&&(o.ekj("discount",Dt.product.splash&&Dt.product.originalPrice!==Dt.product.price)("quick-purchase",Dt.product.hasModules&&Dt.product.quickCompositePurchase),o.Q6J("routerLink",Dt.baseCard?null:Dt.productUrl),o.xp6(1),o.Q6J("ngIf",Dt.product.productDeliveryLimit),o.xp6(1),o.Q6J("ngIf",Dt.product.badgeUrl),o.xp6(1),o.Q6J("ngIf",Dt.savings),o.xp6(2),o.Q6J("srcset",o.xi3(6,19,Dt.product,Dt.big))("src",o.lcZ(7,22,Dt.product),o.LSH)("alt",Dt.product.productDisplayName),o.xp6(3),o.Q6J("ngIf",Dt.primaryTag&&!0===Dt.primaryTag.showFrontend),o.xp6(2),o.Oqu(Dt.product.productDisplayName),o.xp6(2),o.hij(" ",Dt.summaryLabel," "),o.xp6(1),o.Q6J("ngIf",!Dt.product.altPriceText),o.xp6(1),o.Q6J("ngIf",Dt.product.altPriceText),o.xp6(1),o.Q6J("ngIf",Dt.product.splash&&Dt.product.originalPrice!==Dt.product.price),o.xp6(1),o.Q6J("ngIf",!Dt.baseCard),o.xp6(1),o.Q6J("ngIf",Dt.baseCard))},styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;justify-content:space-between;background-color:#fff;box-sizing:border-box;width:214px;height:340px;padding:11px;border-radius:8px;box-shadow:0 0 5px 1px #0000001a}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:auto;max-width:214px;padding:12px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:auto;padding:12px}}[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]{position:absolute;top:21px;right:11px;display:flex;align-items:center;height:32px;padding:0 10px;border-radius:5px 0 0 5px;color:#fff;background-color:var(--primary-color);z-index:10;font-weight:700;text-align:right;max-width:150px;overflow:hidden;white-space:nowrap}[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]   .primary-tag-icon[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:5px;object-fit:contain}.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{width:300px;height:370px;padding:0 12px 12px}.min-kobmand-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]{top:46px;right:0;font-size:12px;line-height:12px;text-transform:uppercase;border-radius:4px 0 0 4px;padding:0 10px 0 8px}.min-kobmand-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]   .primary-tag-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]   .primary-tag-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%]   .primary-tag-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-right:0}.min-kobmand-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .primary-tag[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-left:6px}.min-kobmand-theme.hideImage[_nghost-%COMP%], .spar-theme.hideImage[_nghost-%COMP%], .meny-theme.hideImage[_nghost-%COMP%]{height:130px;padding-top:12px}@media only screen and (min-width: 768px) and (max-width: 1024px){.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{width:auto;max-width:300px}}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{width:auto;height:330px;padding:0 12px 72px}.min-kobmand-theme.hideImage[_nghost-%COMP%], .spar-theme.hideImage[_nghost-%COMP%], .meny-theme.hideImage[_nghost-%COMP%]{height:170px;padding-top:12px}}.min-kobmand-theme.small[_nghost-%COMP%], .spar-theme.small[_nghost-%COMP%], .meny-theme.small[_nghost-%COMP%]{width:244.5px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme.small[_nghost-%COMP%], .spar-theme.small[_nghost-%COMP%], .meny-theme.small[_nghost-%COMP%]{width:auto}}.min-kobmand-theme.small[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme.small[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme.small[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{font-size:18px}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{height:100%;grid-template-rows:246px min-content 20px auto}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{grid-template-rows:172px min-content 16px auto}}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{padding:0 24px;font-weight:700;border-radius:128px}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{height:240px;width:calc(100% + 24px)}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{height:160px}}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:8px 8px 0 0}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%]{font-size:18px;line-height:22px;margin:0}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-name[_ngcontent-%COMP%]{font-size:14px;line-height:18px}}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{font-size:14px;line-height:20px;line-clamp:1;-webkit-line-clamp:1}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{font-size:12px;line-height:16px}}.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{display:flex;align-items:center;height:48px;font-size:14px;word-break:break-all;max-width:calc(50% - 20px)}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{height:22px;max-width:unset}}.min-kobmand-theme[_nghost-%COMP%]   .product-card-badge[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .product-card-badge[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .product-card-badge[_ngcontent-%COMP%]{top:-10px;right:-10px;width:80px;height:80px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{position:absolute;right:12px;bottom:12px;max-width:50%;width:max-content}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{width:calc(100% - 24px);max-width:calc(100% - 24px)}}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{height:48px;margin-top:unset;text-transform:uppercase;font-size:14px;line-height:16px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]{width:48px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]     .text-button, .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]     .text-button, .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]     .text-button{padding:15px;border-radius:128px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]     .mat-icon path, .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]     .mat-icon path, .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .basket-icon[_ngcontent-%COMP%]     .mat-icon path{fill:#fff}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%]{display:inline-block;height:16px;width:16px}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .clear-selected[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .clear-selected[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .clear-selected[_ngcontent-%COMP%]{display:none}.min-kobmand-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button, .spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button, .meny-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button{background-color:#3c3c3b;border:unset;color:#fff}.spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{font-family:Poppins;font-size:14px;line-height:22px;color:#6d6d6c}@media only screen and (min-width: 0px) and (max-width: 768px){.spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{line-height:18px}}.spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{max-width:calc(50% - 2px);font-family:Gotham;font-size:18px;font-weight:700;line-height:22px;word-break:break-word}@media only screen and (min-width: 0px) and (max-width: 768px){.spar-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]   .price-text[_ngcontent-%COMP%]{max-width:unset}}.spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{bottom:16px;font-size:14px}.spar-theme[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]     a{padding:17px 24px}.clpartyservice-theme[_nghost-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   .product-card-name[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .product-card-summary[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .price-text[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .product-card-original-price[_ngcontent-%COMP%]{color:#fff}.big[_nghost-%COMP%]{width:288px;height:400px}.big[_nghost-%COMP%]   a[_ngcontent-%COMP%]{grid-template-rows:216px min-content 40px auto}.big[_nghost-%COMP%]   a.discount[_ngcontent-%COMP%]{grid-template-rows:216px min-content 40px auto 18px}.big[_nghost-%COMP%]   a.quick-purchase[_ngcontent-%COMP%]{grid-template-rows:216px min-content auto}.big[_nghost-%COMP%]   a.quick-purchase[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{display:none}.big[_nghost-%COMP%]   a.quick-purchase.discount[_ngcontent-%COMP%]{grid-template-rows:216px min-content auto 18px}.big[_nghost-%COMP%]   a.quick-purchase.discount[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{height:204px}.big[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{height:204px}.big[_nghost-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{font-size:1em}.hideImage[_nghost-%COMP%]{height:210px}.hideImage[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{display:none}.hideImage[_nghost-%COMP%]   a[_ngcontent-%COMP%]{grid-template-rows:min-content 32px auto}.hideImage[_nghost-%COMP%]   a.discount[_ngcontent-%COMP%]{grid-template-rows:min-content 32px auto 18px}.hideImage[_nghost-%COMP%]   a.quick-purchase[_ngcontent-%COMP%]{grid-template-rows:min-content auto}.hideImage[_nghost-%COMP%]   a.quick-purchase.discount[_ngcontent-%COMP%]{grid-template-rows:min-content auto 18px}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;grid-template-rows:142px min-content 32px auto;justify-items:start;height:calc(100% - 48px);color:inherit;text-decoration:none}[_nghost-%COMP%]   a.discount[_ngcontent-%COMP%]{grid-template-rows:142px min-content 32px auto 18px}[_nghost-%COMP%]   a.quick-purchase[_ngcontent-%COMP%]{grid-template-rows:142px min-content auto}[_nghost-%COMP%]   a.quick-purchase[_ngcontent-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   a.quick-purchase.discount[_ngcontent-%COMP%]{grid-template-rows:124px min-content auto 18px}[_nghost-%COMP%]   a.quick-purchase.discount[_ngcontent-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{height:112px}[_nghost-%COMP%]   a[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(.badge){width:100%}[_nghost-%COMP%]   app-savings[_ngcontent-%COMP%]{top:16px}[_nghost-%COMP%]   .product-card-badge[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:64px;height:64px}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;box-sizing:border-box;height:36px;top:16px;right:0;padding:0 20px;background-color:var(--primary-color);color:var(--text-primary-color);border-radius:4px;border-top-right-radius:0!important;border-bottom-right-radius:0!important;border-right-width:0px;font-weight:500}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]:has( + app-savings)[_ngcontent-%COMP%]{top:72px}[_nghost-%COMP%]   .delivery-limit[_ngcontent-%COMP%]:has( + .product-card-badge)[_ngcontent-%COMP%]{top:72px}[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]{justify-self:center;display:flex;justify-content:center;align-items:center;height:130px}[_nghost-%COMP%]   .product-card-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;width:100%;max-height:100%;object-fit:cover;border-radius:4px}[_nghost-%COMP%]   .product-card-name[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:1em;margin-bottom:4px}[_nghost-%COMP%]   .product-card-summary[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.9em;color:var(--text-accent-color)}[_nghost-%COMP%]   .price-text[_ngcontent-%COMP%]{align-self:flex-end;font-weight:700;font-size:1.75em}[_nghost-%COMP%]   .price-text.small[_ngcontent-%COMP%]{font-size:1em}[_nghost-%COMP%]   .product-card-original-price[_ngcontent-%COMP%]{font-size:.9em;font-weight:500;color:var(--text-accent-color)}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%], [_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{flex:0 0 auto;margin-top:12px}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]{position:relative;box-sizing:border-box}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button{background-color:#fff;border:1px solid var(--accent-color);color:#000}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;top:6px;left:8px;width:24px;height:24px;min-width:24px;min-height:24px;z-index:10}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button{background-color:#a2b3b9}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .picked-button[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button   #Group-3{fill:#fff}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]   .meny-selected-icon[_ngcontent-%COMP%]{display:none}"]})}return Jt})()},6373:(Je,Rt,c)=>{"use strict";c.d(Rt,{Y:()=>f});var o=c(5879),e=c(7954),g=c(6814),x=c(3595),l=c(4918);function i(t,y){if(1&t&&(o.TgZ(0,"app-center-section"),o._UZ(1,"div",2),o.ALo(2,"sanitizeHtml"),o.qZA()),2&t){const O=o.oxw();o.xp6(1),o.Q6J("innerHTML",o.lcZ(2,1,O.content),o.oJD)}}function R(t,y){if(1&t&&(o._UZ(0,"div",2),o.ALo(1,"sanitizeHtml")),2&t){const O=o.oxw();o.Q6J("innerHTML",o.lcZ(1,1,O.content),o.oJD)}}let f=(()=>{class t{constructor(O,G,U){this.contentService=O,this.themeService=G,this.elRef=U}ngOnInit(){let O=this.content;O=this.contentService.addImageSource(O),O=this.contentService.addLinkSource(O),this.content=O}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}static#t=this.\u0275fac=function(G){return new(G||t)(o.Y36(e._s),o.Y36(e.fY),o.Y36(o.SBq))};static#e=this.\u0275cmp=o.Xpm({type:t,selectors:[["app-richtext-box"]],inputs:{content:"content",simple:"simple"},decls:2,vars:2,consts:[[4,"ngIf"],["class","rich-text",3,"innerHTML",4,"ngIf"],[1,"rich-text",3,"innerHTML"]],template:function(G,U){1&G&&(o.YNc(0,i,3,3,"app-center-section",0),o.YNc(1,R,2,3,"div",1)),2&G&&(o.Q6J("ngIf",!U.simple),o.xp6(1),o.Q6J("ngIf",U.simple))},dependencies:[g.O5,x.R,l.A],styles:[".meny-theme[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     h1, .meny-theme[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     h2, .meny-theme[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     h3{font-family:Veneer;font-size:40px}[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{max-width:var(--nxt-width);box-shadow:0 0 10px 1px #0000001a}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:80vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-center-section[_ngcontent-%COMP%]{width:100vw}}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     h1{font-size:2em}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     h1{font-size:1.25em}}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     .highlight{color:#e6c045}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]     img{max-width:100%;object-fit:contain}"]})}return t})()},5181:(Je,Rt,c)=>{"use strict";c.d(Rt,{B:()=>Ht});var o=c(5619),e=c(7299),g=c(5879),x=c(7954),l=c(4132),i=c(6814),R=c(2787),f=c(8514),t=c(4918);function y(A,xt){if(1&A){const tt=g.EpF();g.TgZ(0,"div",7),g.NdJ("mouseout",function(){g.CHM(tt);const _=g.oxw(2);return g.KtG(_.hover.next(!1))})("mouseover",function(){g.CHM(tt);const _=g.oxw(2);return g.KtG(_.hover.next(!0))}),g.TgZ(1,"video",8,9),g.NdJ("ended",function(){g.CHM(tt);const _=g.MAs(2),j=g.oxw(2);return g.KtG(j.ended(_))})("click",function(){g.CHM(tt);const _=g.MAs(2),j=g.oxw(2);return g.KtG(j.play(_))}),g._UZ(3,"source",10),g._uU(4," Your browser does not support the video tag. "),g.qZA(),g.TgZ(5,"div",11),g.ALo(6,"async"),g.ALo(7,"async"),g._uU(8,"\u25b6"),g.qZA()()}if(2&A){const tt=g.oxw(2);g.xp6(3),g.Q6J("src",tt.contentUrl+tt.content.mediaContent,g.LSH),g.xp6(2),g.Akn(g.lcZ(6,3,tt.hover)||!1===g.lcZ(7,5,tt.playing)?"display: flex":"display: none")}}function O(A,xt){if(1&A&&g._UZ(0,"img",12),2&A){const tt=g.oxw(2);g.Q6J("src",tt.contentUrl+tt.content.mediaContent,g.LSH)}}function G(A,xt){if(1&A&&(g.TgZ(0,"div",4),g.YNc(1,y,9,7,"div",5),g.YNc(2,O,1,1,"img",6),g.qZA()),2&A){const tt=g.oxw();g.xp6(1),g.Q6J("ngIf",tt.isVideo),g.xp6(1),g.Q6J("ngIf",!tt.isVideo)}}function U(A,xt){if(1&A&&(g.TgZ(0,"app-text-button",15),g._uU(1),g.qZA()),2&A){const tt=g.oxw().ngIf;g.Q6J("href",tt.Url)("target",tt.Target),g.xp6(1),g.Oqu(tt.Name)}}function lt(A,xt){if(1&A&&(g.TgZ(0,"app-text-button",16),g._uU(1),g.qZA()),2&A){const tt=g.oxw().ngIf;g.Q6J("routerLink",tt.Url)("target",tt.Target),g.xp6(1),g.Oqu(tt.Name)}}function ut(A,xt){if(1&A&&(g.ynx(0),g.YNc(1,U,2,3,"app-text-button",13),g.YNc(2,lt,2,3,"app-text-button",14),g.BQk()),2&A){const tt=g.oxw();g.xp6(1),g.Q6J("ngIf",!tt.sameSite(tt.content.link)),g.xp6(1),g.Q6J("ngIf",tt.sameSite(tt.content.link))}}let Ht=(()=>{class A{constructor(tt,ct){this.contentService=tt,this.layoutService=ct,this.contentUrl=e.environment.cmsOrigin}ngOnInit(){this.isVideo=/\.mp4$/g.test(this.content.mediaContent),this.hover=new o.X(!1),this.playing=new o.X(!1),this.right="Right"===this.content.mediaPosition,this.bgColor=this.content.backgroundColor,this.primaryColor=this.content.primaryColor,this.secondaryColor=this.content.secondaryColor,this.buttonBgColor=this.content.buttonBgColor,this.buttonTextColor=this.content.buttonTextColor}sameSite(tt){return this.contentService.sameSite(tt)}play(tt){const ct=tt.nextElementSibling;this.layoutService.isMobile&&(this.hover.next(!1),tt.play()),"\u25b6"===ct.innerHTML?(this.playing.next(!0),tt.setAttribute("controls",""),ct.innerHTML="| |"):(this.playing.next(!1),tt.pause(),ct.innerHTML="\u25b6",tt.removeAttribute("controls"))}ended(tt){if(this.layoutService.isMobile)return;const ct=tt.nextElementSibling;ct.style.display="flex",ct.innerHTML="\u25b6"}static#t=this.\u0275fac=function(ct){return new(ct||A)(g.Y36(x._s),g.Y36(l.P))};static#e=this.\u0275cmp=g.Xpm({type:A,selectors:[["app-strip"]],hostVars:12,hostBindings:function(ct,_){2&ct&&(g.Udp("--strip-bg-color",_.bgColor)("--strip-primary-color",_.primaryColor)("--strip-secondary-color",_.secondaryColor)("--strip-button-bg-color",_.buttonBgColor)("--strip-button-text-color",_.buttonTextColor),g.ekj("right",_.right))},inputs:{content:"content"},decls:7,vars:6,consts:[["class","media",4,"ngIf"],[1,"content"],[1,"rich-text",3,"innerHTML"],[4,"ngIf"],[1,"media"],["class","video-container",3,"mouseout","mouseover",4,"ngIf"],[3,"src",4,"ngIf"],[1,"video-container",3,"mouseout","mouseover"],["controlslist","nodownload noremoteplayback","disablepictureinpicture","","preload","auto",3,"ended","click"],["video",""],["type","video/mp4",3,"src"],[1,"start"],[3,"src"],[3,"href","target",4,"ngIf"],[3,"routerLink","target",4,"ngIf"],[3,"href","target"],[3,"routerLink","target"]],template:function(ct,_){1&ct&&(g.YNc(0,G,3,2,"div",0),g.TgZ(1,"div",1)(2,"h2"),g._uU(3),g.qZA(),g._UZ(4,"div",2),g.ALo(5,"sanitizeHtml"),g.YNc(6,ut,3,2,"ng-container",3),g.qZA()),2&ct&&(g.Q6J("ngIf",_.content.mediaContent),g.xp6(3),g.Oqu(_.content.stripTitleText),g.xp6(1),g.Q6J("innerHTML",g.lcZ(5,4,_.content.bodyText),g.oJD),g.xp6(2),g.Q6J("ngIf",_.content.link))},dependencies:[i.O5,R.rH,f.h,i.Ov,t.A],styles:["[_nghost-%COMP%]{display:flex;width:100%;background-color:var(--strip-bg-color)}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]{color:var(--strip-secondary-color)}[_nghost-%COMP%]   .rich-text[_ngcontent-%COMP%]  p{color:var(--strip-secondary-color)}[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{color:var(--strip-primary-color)}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]     .text-button{background-color:var(--strip-button-bg-color);color:var(--strip-button-text-color)}@media only screen and (min-width: 768px){[_nghost-%COMP%]{min-height:500px;gap:40px}[_nghost-%COMP%]:not(.right)   .content[_ngcontent-%COMP%]{padding-left:0}.right[_nghost-%COMP%]{flex-direction:row-reverse}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{height:min-content;flex-direction:column-reverse}}[_nghost-%COMP%]   .media[_ngcontent-%COMP%]{width:50%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .media[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .media[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;font-family:Oswald,sans-serif;cursor:pointer}[_nghost-%COMP%]   .media[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]   .start[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border:6px solid #fff;border-radius:50%;padding:1em;display:flex;justify-content:center;align-items:center;color:#fff;font-size:3em;font-weight:400;width:.5em;height:.5em;white-space:nowrap;line-height:0;pointer-events:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .media[_ngcontent-%COMP%]   .video-container[_ngcontent-%COMP%]   .start[_ngcontent-%COMP%]{font-size:2em}}[_nghost-%COMP%]   .media[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   .media[_ngcontent-%COMP%]   video[_ngcontent-%COMP%]{display:block;box-sizing:border-box;width:100%;height:100%;object-fit:cover;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .media[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{padding:40px 24px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{box-sizing:border-box;width:50%;padding:40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{width:100vw}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:auto;min-width:200px;max-width:max-content;margin-top:20px}"]})}return A})()},9716:(Je,Rt,c)=>{"use strict";c.d(Rt,{n:()=>R});var o=c(5879),e=c(6814),g=c(6223),x=c(1830);function l(f,t){if(1&f){const y=o.EpF();o.TgZ(0,"mat-slide-toggle",2),o.NdJ("ngModelChange",function(G){o.CHM(y);const U=o.oxw();return o.KtG(U.checked=G)}),o.qZA()}if(2&f){const y=o.oxw();o.Q6J("ngModel",y.checked)("disabled",y.disabled)("disableRipple",y.disableRipple)}}function i(f,t){if(1&f&&o._UZ(0,"mat-slide-toggle",3),2&f){const y=o.oxw();o.Q6J("disableRipple",y.disableRipple)("formControl",y.control)("checked",y.checked)("name",y.name)}}let R=(()=>{class f{constructor(){this.checkedValue=!1,this.checkedChange=new o.vpe,this.disableRipple=!0}set checked(y){this.checkedValue=y,this.checkedChange.emit(this.checkedValue)}get checked(){return this.checkedValue}static#t=this.\u0275fac=function(O){return new(O||f)};static#e=this.\u0275cmp=o.Xpm({type:f,selectors:[["app-toggle"]],inputs:{name:"name",control:"control",disabled:"disabled",checked:"checked"},outputs:{checkedChange:"checkedChange"},decls:2,vars:2,consts:[["color","primary",3,"ngModel","disabled","disableRipple","ngModelChange",4,"ngIf"],["color","primary",3,"disableRipple","formControl","checked","name",4,"ngIf"],["color","primary",3,"ngModel","disabled","disableRipple","ngModelChange"],["color","primary",3,"disableRipple","formControl","checked","name"]],template:function(O,G){1&O&&(o.YNc(0,l,1,3,"mat-slide-toggle",0),o.YNc(1,i,1,4,"mat-slide-toggle",1)),2&O&&(o.Q6J("ngIf",!G.control),o.xp6(1),o.Q6J("ngIf",!!G.control))},dependencies:[e.O5,g.JJ,g.On,g.oH,x.iZ],styles:["[_nghost-%COMP%]{width:52px;height:28px}[_nghost-%COMP%]     .mat-slide-toggle{width:52px;height:28px}[_nghost-%COMP%]     .mat-slide-toggle-bar{width:100%;height:100%;border-radius:16px}[_nghost-%COMP%]     .mat-slide-toggle-thumb-container{width:24px;height:24px;top:2px;left:2px;transform:translateZ(0)}[_nghost-%COMP%]     .mat-slide-toggle-thumb-container .mat-slide-toggle-thumb{height:100%;width:100%}[_nghost-%COMP%]     .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(24px,0,0)}[_nghost-%COMP%]     .mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:var(--text-primary-color)}[_nghost-%COMP%]     .mat-primary.mat-checked .mat-slide-toggle-bar{background-color:var(--primary-color)}"]})}return f})()},125:(Je,Rt,c)=>{"use strict";c.d(Rt,{Tg:()=>R,rV:()=>l,zN:()=>t});var o=c(6223),e=c(6676);class x extends o.nJ{setValue(O,G){super.setValue(O,G)}}class l extends o.p4{setValue(O,G){super.setValue(O,G)}}class i extends o.vC{setValue(O,G){super.setValue(O,G)}}function R(y,O){const G=new x({},O);return Object.entries(y).forEach(([U,lt])=>{Array.isArray(lt)?G.addControl(U,new i(lt.map(ut=>R(ut)))):function f(y){return e.isMoment(y)}(lt)?G.addControl(U,new l(lt)):G.addControl(U,lt instanceof Object?R(lt):new l(lt))}),G}function t(y,O){const G=new x({},O);return Object.entries(y).forEach(([U,lt])=>{Array.isArray(lt)?G.addControl(U,new i(lt.map(ut=>R(ut)))):G.addControl(U,new l(lt))}),G}},2802:(Je,Rt,c)=>{"use strict";c.d(Rt,{I:()=>o});class o{constructor(g,x,l={meta:!1,noIndex:!1}){this.contentService=g,this.titleKey="seoTitleText",this.descriptionKey="seoDescriptionText",this.pageId=x,this.content=this.contentService.get(this.pageId),this.defaultContent=this.contentService.getDefault(this.pageId),l.meta&&(this.setMeta(),this.contentService.setNoIndex(!!l.noIndex))}setMeta(){const g=this.content.get(this.titleKey)||this.defaultContent.get(this.titleKey);this.contentService.setTitle(g);const x=this.content.get(this.descriptionKey)||this.defaultContent.get(this.descriptionKey);this.contentService.setDescription(x)}}},7188:(Je,Rt,c)=>{"use strict";c.d(Rt,{$:()=>ye});var o=c(7592),e=c(2214),g=c(7299),x=c(2802),l=c(5879),i=c(8712),R=c(8906);const f=["details"],t=["necessarySort"],y=["functionalSort"],O=["statsSort"],G=["marketingSort"];function U(Xt,on){if(1&Xt&&(l._UZ(0,"img",25),l.ALo(1,"cms")),2&Xt){const oe=l.oxw();l.Q6J("src",l.xi3(1,2,oe.storeLogo,50),l.LSH)("alt",oe.title)}}function lt(Xt,on){if(1&Xt){const oe=l.EpF();l.TgZ(0,"app-text-button",26),l.NdJ("click",function(){l.CHM(oe);const te=l.oxw();return l.KtG(te.updateConsent(!1))}),l._uU(1),l.ALo(2,"uppercase"),l.qZA()}if(2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(l.lcZ(2,1,oe.denyAllButton))}}function ut(Xt,on){if(1&Xt){const oe=l.EpF();l.TgZ(0,"app-text-button",26),l.NdJ("click",function(){l.CHM(oe);const te=l.oxw();return l.KtG(te.updateConsent(!1))}),l._uU(1),l.ALo(2,"uppercase"),l.qZA()}if(2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(l.lcZ(2,1,oe.updateConsentButton))}}function Ht(Xt,on){if(1&Xt&&(l.TgZ(0,"label"),l._uU(1),l.ALo(2,"titlecase"),l.qZA()),2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(l.lcZ(2,1,oe.showDetails))}}function A(Xt,on){if(1&Xt&&(l.TgZ(0,"label"),l._uU(1),l.ALo(2,"titlecase"),l.qZA()),2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(l.lcZ(2,1,oe.hideDetails))}}function xt(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.nameLabel)}}function tt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.NameText)}}function ct(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.dataProccesorLabel)}}function _(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.DataProcessorText)}}function j(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.purposeLabel)}}function q(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.PurposeText)}}function ht(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.expirationLabel)}}function vt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.ExpirationText)}}function gt(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.typeLabel)}}function zt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.TypeText)}}function Ct(Xt,on){1&Xt&&l._UZ(0,"tr",40)}function H(Xt,on){1&Xt&&l._UZ(0,"tr",41)}function J(Xt,on){if(1&Xt&&(l.TgZ(0,"table",27,28),l.ynx(2,29),l.YNc(3,xt,2,1,"th",30),l.YNc(4,tt,2,1,"td",31),l.BQk(),l.ynx(5,32),l.YNc(6,ct,2,1,"th",30),l.YNc(7,_,2,1,"td",31),l.BQk(),l.ynx(8,33),l.YNc(9,j,2,1,"th",30),l.YNc(10,q,2,1,"td",31),l.BQk(),l.ynx(11,34),l.YNc(12,ht,2,1,"th",30),l.YNc(13,vt,2,1,"td",31),l.BQk(),l.ynx(14,35),l.YNc(15,gt,2,1,"th",30),l.YNc(16,zt,2,1,"td",31),l.BQk(),l.YNc(17,Ct,1,0,"tr",36),l.YNc(18,H,1,0,"tr",37),l.qZA()),2&Xt){const oe=l.oxw();l.Q6J("dataSource",oe.necessaryCookies),l.xp6(17),l.Q6J("matHeaderRowDef",oe.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",oe.displayedColumns)}}function z(Xt,on){if(1&Xt&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(oe.noCookies)}}function F(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.nameLabel)}}function rt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.NameText)}}function V(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.dataProccesorLabel)}}function Pt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.DataProcessorText)}}function $t(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.purposeLabel)}}function Lt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.PurposeText)}}function Jt(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.expirationLabel)}}function Tt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.ExpirationText)}}function $(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.typeLabel)}}function pt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.TypeText)}}function Dt(Xt,on){1&Xt&&l._UZ(0,"tr",40)}function St(Xt,on){1&Xt&&l._UZ(0,"tr",41)}function mt(Xt,on){if(1&Xt&&(l.TgZ(0,"table",27,42),l.ynx(2,29),l.YNc(3,F,2,1,"th",30),l.YNc(4,rt,2,1,"td",31),l.BQk(),l.ynx(5,32),l.YNc(6,V,2,1,"th",30),l.YNc(7,Pt,2,1,"td",31),l.BQk(),l.ynx(8,33),l.YNc(9,$t,2,1,"th",30),l.YNc(10,Lt,2,1,"td",31),l.BQk(),l.ynx(11,34),l.YNc(12,Jt,2,1,"th",30),l.YNc(13,Tt,2,1,"td",31),l.BQk(),l.ynx(14,35),l.YNc(15,$,2,1,"th",30),l.YNc(16,pt,2,1,"td",31),l.BQk(),l.YNc(17,Dt,1,0,"tr",36),l.YNc(18,St,1,0,"tr",37),l.qZA()),2&Xt){const oe=l.oxw();l.Q6J("dataSource",oe.functionalCookies),l.xp6(17),l.Q6J("matHeaderRowDef",oe.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",oe.displayedColumns)}}function yt(Xt,on){if(1&Xt&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(oe.noCookies)}}function ee(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.nameLabel)}}function B(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.NameText)}}function At(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.dataProccesorLabel)}}function st(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.DataProcessorText)}}function ie(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.purposeLabel)}}function Ae(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.PurposeText)}}function en(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.expirationLabel)}}function In(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.ExpirationText)}}function Ve(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.typeLabel)}}function jt(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.TypeText)}}function ft(Xt,on){1&Xt&&l._UZ(0,"tr",40)}function Gt(Xt,on){1&Xt&&l._UZ(0,"tr",41)}function Ce(Xt,on){if(1&Xt&&(l.TgZ(0,"table",27,43),l.ynx(2,29),l.YNc(3,ee,2,1,"th",30),l.YNc(4,B,2,1,"td",31),l.BQk(),l.ynx(5,32),l.YNc(6,At,2,1,"th",30),l.YNc(7,st,2,1,"td",31),l.BQk(),l.ynx(8,33),l.YNc(9,ie,2,1,"th",30),l.YNc(10,Ae,2,1,"td",31),l.BQk(),l.ynx(11,34),l.YNc(12,en,2,1,"th",30),l.YNc(13,In,2,1,"td",31),l.BQk(),l.ynx(14,35),l.YNc(15,Ve,2,1,"th",30),l.YNc(16,jt,2,1,"td",31),l.BQk(),l.YNc(17,ft,1,0,"tr",36),l.YNc(18,Gt,1,0,"tr",37),l.qZA()),2&Xt){const oe=l.oxw();l.Q6J("dataSource",oe.statsCookies),l.xp6(17),l.Q6J("matHeaderRowDef",oe.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",oe.displayedColumns)}}function ve(Xt,on){if(1&Xt&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(oe.noCookies)}}function me(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.nameLabel)}}function De(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.NameText)}}function tn(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.dataProccesorLabel)}}function gn(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.DataProcessorText)}}function Xe(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.purposeLabel)}}function rn(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.PurposeText)}}function re(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.expirationLabel)}}function ue(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.ExpirationText)}}function Ft(Xt,on){if(1&Xt&&(l.TgZ(0,"th",38),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw(2);l.xp6(1),l.Oqu(oe.typeLabel)}}function be(Xt,on){if(1&Xt&&(l.TgZ(0,"td",39),l._uU(1),l.qZA()),2&Xt){const oe=on.$implicit;l.xp6(1),l.Oqu(oe.TypeText)}}function qt(Xt,on){1&Xt&&l._UZ(0,"tr",40)}function Te(Xt,on){1&Xt&&l._UZ(0,"tr",41)}function Me(Xt,on){if(1&Xt&&(l.TgZ(0,"table",27,44),l.ynx(2,29),l.YNc(3,me,2,1,"th",30),l.YNc(4,De,2,1,"td",31),l.BQk(),l.ynx(5,32),l.YNc(6,tn,2,1,"th",30),l.YNc(7,gn,2,1,"td",31),l.BQk(),l.ynx(8,33),l.YNc(9,Xe,2,1,"th",30),l.YNc(10,rn,2,1,"td",31),l.BQk(),l.ynx(11,34),l.YNc(12,re,2,1,"th",30),l.YNc(13,ue,2,1,"td",31),l.BQk(),l.ynx(14,35),l.YNc(15,Ft,2,1,"th",30),l.YNc(16,be,2,1,"td",31),l.BQk(),l.YNc(17,qt,1,0,"tr",36),l.YNc(18,Te,1,0,"tr",37),l.qZA()),2&Xt){const oe=l.oxw();l.Q6J("dataSource",oe.marketingCookies),l.xp6(17),l.Q6J("matHeaderRowDef",oe.displayedColumns),l.xp6(1),l.Q6J("matRowDefColumns",oe.displayedColumns)}}function _n(Xt,on){if(1&Xt&&(l.TgZ(0,"span"),l._uU(1),l.qZA()),2&Xt){const oe=l.oxw();l.xp6(1),l.Oqu(oe.noCookies)}}const ce="cookies";let ye=(()=>{class Xt extends x.I{constructor(oe,$e,te,Se,Ke){super(oe,ce),this.cookieConsentService=$e,this.dialogRef=te,this.renderer=Se,this.data=Ke,this.cookieUrl=g.environment.urls.content.cookie_policy,this.detailsHidden=!0;const Qe=this.contentService.get(ce).get("storeLogoImage");Qe&&(this.storeLogo=Qe),this.title=this.content.get("dialogTitleText"),this.declaration=this.content.get("declarationText"),this.aboutCookies={name:this.content.get("aboutCookiesText"),url:this.cookieUrl},this.denyAllButton=this.content.get("denyAllButtonText"),this.updateConsentButton=this.content.get("updateConsentText"),this.acceptAllButton=this.content.get("acceptAllButtonText"),this.showDetails=this.content.get("showDetailsText"),this.hideDetails=this.content.get("hideDetailsText"),this.lastUpdated=this.content.get("lastUpdatedText"),this.necessaryLabel=this.content.get("necessaryLabelText"),this.functionalLabel=this.content.get("functionLabelText"),this.statsLabel=this.content.get("statisticsLabelText"),this.marketingLabel=this.content.get("marketingLabelText"),this.necessaryDescription=this.content.get("necessaryDescriptionText"),this.functionalDescription=this.content.get("functionDescriptionText"),this.statsDescription=this.content.get("statsDescriptionText"),this.marketingDescription=this.content.get("marketingDescriptionText"),this.displayedColumns=["nameText","dataProcessorText","purposeText","expirationText","typeText"],this.nameLabel=this.content.get("nameLabelText"),this.dataProccesorLabel=this.content.get("dataProcessorLabelText"),this.purposeLabel=this.content.get("purposeLabelText"),this.expirationLabel=this.content.get("expirationLabelText"),this.typeLabel=this.content.get("typeLabelText"),this.noCookies=this.content.get("noCookiesText");const et=this.content.get("necessaryCookies");et&&(this.necessaryCookies=new e.r4(et));const nt=this.content.get("functionCookies");nt&&(this.functionalCookies=new e.r4(nt));const it=this.content.get("statisticsCookies");it&&(this.statsCookies=new e.r4(it));const Ot=this.content.get("marketingCookies");Ot&&(this.marketingCookies=new e.r4(Ot))}ngOnInit(){this.consent={necessary:!0,functional:!1,statistics:!1,marketing:!1},this.necessaryCookies&&(this.necessaryCookies.sort=this.necessarySort),this.functionalCookies&&(this.functionalCookies.sort=this.functionalSort),this.statsCookies&&(this.statsCookies.sort=this.statsSort),this.marketingCookies&&(this.marketingCookies.sort=this.marketingSort)}ngAfterContentInit(){this.detailsHeight=this.detailsRef.nativeElement.scrollHeight,this.setDetailsHeight()}changed(){return this.consent.functional||this.consent.statistics||this.consent.marketing}updateConsent(oe){oe&&(this.consent={necessary:!0,functional:!0,statistics:!0,marketing:!0}),this.cookieConsentService.setCookie(this.consent,this.data.update),this.close()}toggleDetails(){this.detailsHidden=!this.detailsHidden,this.setDetailsHeight()}close(){this.dialogRef.close()}setDetailsHeight(){this.renderer.setStyle(this.detailsRef.nativeElement,"max-height",`${this.detailsHidden?0:this.detailsHeight}px`)}static#t=this.\u0275fac=function($e){return new($e||Xt)(l.Y36(i._s),l.Y36(R.C),l.Y36(o.hV),l.Y36(l.Qsj),l.Y36(o.eJ))};static#e=this.\u0275cmp=l.Xpm({type:Xt,selectors:[["app-kage-consent"]],viewQuery:function($e,te){if(1&$e&&(l.Gf(f,7),l.Gf(t,7),l.Gf(y,7),l.Gf(O,7),l.Gf(G,7)),2&$e){let Se;l.iGM(Se=l.CRH())&&(te.detailsRef=Se.first),l.iGM(Se=l.CRH())&&(te.necessarySort=Se.first),l.iGM(Se=l.CRH())&&(te.functionalSort=Se.first),l.iGM(Se=l.CRH())&&(te.statsSort=Se.first),l.iGM(Se=l.CRH())&&(te.marketingSort=Se.first)}},features:[l.qOj],decls:65,vars:56,consts:[[3,"src","alt",4,"ngIf"],[1,"declaration"],[1,"rich-text"],[3,"outerHTML"],[3,"routerLink","click"],[1,"last-updated"],[1,"buttons"],["color","accent",3,"click",4,"ngIf"],[3,"click"],[1,"details"],[4,"ngIf"],[1,"cookies"],["details",""],[3,"title"],[1,"cookie-description"],["mat-table","","matSort","",3,"dataSource",4,"ngIf"],[1,"toggles"],["for","necessary"],["id","necessary",3,"checked","disabled"],["for","functional"],["id","functional",3,"checked","checkedChange"],["for","statistics"],["id","statistics",3,"checked","checkedChange"],["for","marketing"],["id","marketing",3,"checked","checkedChange"],[3,"src","alt"],["color","accent",3,"click"],["mat-table","","matSort","",3,"dataSource"],["necessarySort","matSort"],["matColumnDef","nameText"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","dataProcessorText"],["matColumnDef","purposeText"],["matColumnDef","expirationText"],["matColumnDef","typeText"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["functionalSort","matSort"],["statsSort","matSort"],["marketingSort","matSort"]],template:function($e,te){1&$e&&(l.YNc(0,U,2,5,"img",0),l.TgZ(1,"h1"),l._uU(2),l.ALo(3,"titlecase"),l.qZA(),l.TgZ(4,"div",1)(5,"div",2),l._UZ(6,"div",3),l.ALo(7,"sanitizeHtml"),l.TgZ(8,"a",4),l.NdJ("click",function(){return te.close()}),l._uU(9),l.qZA()(),l.TgZ(10,"span",5),l._uU(11),l.qZA()(),l.TgZ(12,"div",6),l.YNc(13,lt,3,3,"app-text-button",7),l.YNc(14,ut,3,3,"app-text-button",7),l.TgZ(15,"app-text-button",8),l.NdJ("click",function(){return te.updateConsent(!0)}),l._uU(16),l.ALo(17,"uppercase"),l.qZA()(),l.TgZ(18,"div",9)(19,"button",8),l.NdJ("click",function(){return te.toggleDetails()}),l.YNc(20,Ht,3,3,"label",10),l.YNc(21,A,3,3,"label",10),l.qZA(),l.TgZ(22,"div",11,12)(24,"app-kage-consent-details",13)(25,"p",14),l._uU(26),l.qZA(),l.YNc(27,J,19,3,"table",15),l.YNc(28,z,2,1,"span",10),l.qZA(),l.TgZ(29,"app-kage-consent-details",13)(30,"p",14),l._uU(31),l.qZA(),l.YNc(32,mt,19,3,"table",15),l.YNc(33,yt,2,1,"span",10),l.qZA(),l.TgZ(34,"app-kage-consent-details",13)(35,"p",14),l._uU(36),l.qZA(),l.YNc(37,Ce,19,3,"table",15),l.YNc(38,ve,2,1,"span",10),l.qZA(),l.TgZ(39,"app-kage-consent-details",13)(40,"p",14),l._uU(41),l.qZA(),l.YNc(42,Me,19,3,"table",15),l.YNc(43,_n,2,1,"span",10),l.qZA()()(),l.TgZ(44,"div",16)(45,"div")(46,"label",17),l._uU(47),l.ALo(48,"titlecase"),l.qZA(),l._UZ(49,"app-toggle",18),l.qZA(),l.TgZ(50,"div")(51,"label",19),l._uU(52),l.ALo(53,"titlecase"),l.qZA(),l.TgZ(54,"app-toggle",20),l.NdJ("checkedChange",function(Ke){return te.consent.functional=Ke}),l.qZA()(),l.TgZ(55,"div")(56,"label",21),l._uU(57),l.ALo(58,"titlecase"),l.qZA(),l.TgZ(59,"app-toggle",22),l.NdJ("checkedChange",function(Ke){return te.consent.statistics=Ke}),l.qZA()(),l.TgZ(60,"div")(61,"label",23),l._uU(62),l.ALo(63,"titlecase"),l.qZA(),l.TgZ(64,"app-toggle",24),l.NdJ("checkedChange",function(Ke){return te.consent.marketing=Ke}),l.qZA()()()),2&$e&&(l.Q6J("ngIf",te.storeLogo),l.xp6(1),l.ekj("no-image",!te.storeLogo),l.xp6(1),l.Oqu(l.lcZ(3,42,te.title)),l.xp6(4),l.Q6J("outerHTML",l.lcZ(7,44,te.declaration),l.oJD),l.xp6(2),l.Q6J("routerLink",te.aboutCookies.url),l.xp6(1),l.Oqu(te.aboutCookies.name),l.xp6(2),l.Oqu(te.lastUpdated),l.xp6(2),l.Q6J("ngIf",!te.changed()),l.xp6(1),l.Q6J("ngIf",te.changed()),l.xp6(2),l.Oqu(l.lcZ(17,46,te.acceptAllButton)),l.xp6(2),l.ekj("displayed",!te.detailsHidden),l.xp6(2),l.Q6J("ngIf",te.detailsHidden),l.xp6(1),l.Q6J("ngIf",!te.detailsHidden),l.xp6(1),l.ekj("hidden",te.detailsHidden),l.xp6(2),l.Q6J("title",te.necessaryLabel),l.xp6(2),l.Oqu(te.necessaryDescription),l.xp6(1),l.Q6J("ngIf",te.necessaryCookies),l.xp6(1),l.Q6J("ngIf",!te.necessaryCookies),l.xp6(1),l.Q6J("title",te.functionalLabel),l.xp6(2),l.Oqu(te.functionalDescription),l.xp6(1),l.Q6J("ngIf",te.functionalCookies),l.xp6(1),l.Q6J("ngIf",!te.functionalCookies),l.xp6(1),l.Q6J("title",te.statsLabel),l.xp6(2),l.Oqu(te.statsDescription),l.xp6(1),l.Q6J("ngIf",te.statsCookies),l.xp6(1),l.Q6J("ngIf",!te.statsCookies),l.xp6(1),l.Q6J("title",te.marketingLabel),l.xp6(2),l.Oqu(te.marketingDescription),l.xp6(1),l.Q6J("ngIf",te.marketingCookies),l.xp6(1),l.Q6J("ngIf",!te.marketingCookies),l.xp6(4),l.Oqu(l.lcZ(48,48,te.necessaryLabel)),l.xp6(2),l.Q6J("checked",te.consent.necessary)("disabled",!0),l.xp6(3),l.Oqu(l.lcZ(53,50,te.functionalLabel)),l.xp6(2),l.Q6J("checked",te.consent.functional),l.xp6(3),l.Oqu(l.lcZ(58,52,te.statsLabel)),l.xp6(2),l.Q6J("checked",te.consent.statistics),l.xp6(3),l.Oqu(l.lcZ(63,54,te.marketingLabel)),l.xp6(2),l.Q6J("checked",te.consent.marketing))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-width:600px;max-width:600px;min-height:600px;max-height:calc(var(--vh, 1vh) * 90);margin:-24px;height:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:90vw;min-width:90vw;min-height:calc(var(--vh, 1vh) * 95);max-height:calc(var(--vh, 1vh) * 95);overflow:hidden;overflow-y:auto}}[_nghost-%COMP%] > img[_ngcontent-%COMP%]{flex:0 0 auto;align-self:center;width:30%;padding-top:16px}[_nghost-%COMP%] > h1[_ngcontent-%COMP%]{padding:0 24px;margin:0;font-size:1.2em}[_nghost-%COMP%] > h1.no-image[_ngcontent-%COMP%]{padding-top:16px}[_nghost-%COMP%]   .declaration[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;overflow:hidden;justify-content:space-between;margin:16px 24px 32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .declaration[_ngcontent-%COMP%]{overflow:visible}}[_nghost-%COMP%]   .declaration[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:0;overflow:auto}[_nghost-%COMP%]   .declaration[_ngcontent-%COMP%]   .last-updated[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:space-between;margin:0 24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%]{flex-direction:column;align-items:center;margin:24px 0}}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:35%;height:56px;font-weight:600}[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]    >button{width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:70%}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .buttons[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-bottom:16px}}[_nghost-%COMP%]   .details[_ngcontent-%COMP%]{flex:0 1 auto;position:relative;display:flex;flex-direction:column;justify-content:space-between;align-items:center;margin:12px 0 0;overflow:hidden}[_nghost-%COMP%]   .details.displayed[_ngcontent-%COMP%]{flex:1 1 auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .details[_ngcontent-%COMP%]{overflow:visible}}[_nghost-%COMP%]   .details[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{position:relative;cursor:pointer;background-color:inherit;width:100%;padding:0;border:none;outline:none}[_nghost-%COMP%]   .details[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer}[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;margin:16px 0 0;padding:0;width:100%;height:calc(100% - 2px);max-height:0;overflow:hidden;overflow-y:auto;transition:all .3s ease-out;background-color:#eef4f6;border-top:1px solid #d1d9dc}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]:not(.hidden){max-height:unset!important}}[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]   app-kage-consent-details[_ngcontent-%COMP%]{padding:8px 24px;border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]   app-kage-consent-details[_ngcontent-%COMP%]:last-child{border-bottom:unset}[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]   .cookie-description[_ngcontent-%COMP%]{padding:0;margin:0 0 16px}[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{margin-top:8px;width:100%;border:1px solid #d1d9dc}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .details[_ngcontent-%COMP%]   .cookies[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{overflow-x:auto}}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%]{flex:0 0 auto;justify-self:flex-end;display:flex;justify-content:space-around;padding:0 24px;border-top:1px solid #d1d9dc}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){border-right:1px solid #d1d9dc}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%]{flex-wrap:wrap;align-items:center}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){border:unset}}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:auto;height:100%;padding:8px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:45%}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:auto}}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     app-toggle{width:96px;height:46px}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     app-toggle .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(48px,0,0)}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     app-toggle .mat-slide-toggle{width:96px;height:48px;line-height:48px}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     app-toggle .mat-slide-toggle .mat-slide-toggle-bar{border-radius:48px}[_nghost-%COMP%]   .toggles[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]     app-toggle .mat-slide-toggle .mat-slide-toggle-bar .mat-slide-toggle-thumb-container{width:40px;height:40px;top:4px;left:4px}"]})}return Xt})()},7313:(Je,Rt,c)=>{"use strict";c.d(Rt,{c:()=>ct});var o=c(2181),e=c(7299),g=c(7985),x=c(2802),l=c(5879),i=c(7954),R=c(6574);function f(_,j){if(1&_&&l._UZ(0,"app-newsletter-quick-signup",8),2&_){const q=l.oxw().ngIf;l.Q6J("mailingLists",q)}}function t(_,j){if(1&_&&(l.ynx(0),l.YNc(1,f,1,1,"app-newsletter-quick-signup",7),l.BQk()),2&_){const q=j.ngIf;l.xp6(1),l.Q6J("ngIf",(null==q?null:q.length)>0)}}function y(_,j){if(1&_&&(l.TgZ(0,"a",12)(1,"app-icon-button",13),l._uU(2),l.qZA(),l._uU(3),l.qZA()),2&_){const q=l.oxw(2);l.Q6J("href",q.newsletterLink,l.LSH),l.xp6(1),l.Q6J("smallIcon",q.isDagrofa)("icon",q.newsletterIcon),l.xp6(1),l.Oqu(q.newsletter),l.xp6(1),l.hij(" ",q.newsletter," ")}}function O(_,j){if(1&_){const q=l.EpF();l.TgZ(0,"a",14),l.NdJ("click",function(){l.CHM(q);const vt=l.oxw(2);return l.KtG(vt.openNewsletter())}),l.TgZ(1,"app-icon-button",13),l._uU(2),l.qZA(),l._uU(3),l.qZA()}if(2&_){const q=l.oxw(2);l.xp6(1),l.Q6J("smallIcon",q.isDagrofa)("icon",q.newsletterIcon),l.xp6(1),l.Oqu(q.newsletter),l.xp6(1),l.hij(" ",q.newsletter," ")}}function G(_,j){if(1&_&&(l.TgZ(0,"a",15)(1,"app-icon-button",13),l._uU(2),l.qZA(),l._uU(3),l.qZA()),2&_){const q=l.oxw(2);l.Q6J("routerLink",q.questions.url),l.xp6(1),l.Q6J("smallIcon",q.isDagrofa)("icon",q.questionsIcon),l.xp6(1),l.Oqu(q.questions.name),l.xp6(1),l.hij(" ",q.questions.name," ")}}function U(_,j){if(1&_&&(l.TgZ(0,"a",15)(1,"app-icon-button",13),l._uU(2),l.qZA(),l._uU(3),l.qZA()),2&_){const q=l.oxw(2);l.Q6J("routerLink",q.contactUs.url),l.xp6(1),l.ekj("contact",!q.isDagrofa),l.Q6J("smallIcon",q.isDagrofa)("icon",q.contactUsIcon),l.xp6(1),l.Oqu(q.contactUs.name),l.xp6(1),l.hij(" ",q.contactUs.name," ")}}function lt(_,j){if(1&_&&(l.TgZ(0,"div"),l.YNc(1,y,4,5,"a",9),l.YNc(2,O,4,4,"a",10),l.YNc(3,G,4,5,"a",11),l.YNc(4,U,4,7,"a",11),l.qZA()),2&_){const q=j.ngLet,ht=l.oxw();l.xp6(1),l.Q6J("ngIf",ht.newsletter&&!q),l.xp6(1),l.Q6J("ngIf",ht.newsletter&&q),l.xp6(1),l.Q6J("ngIf",ht.questions.name),l.xp6(1),l.Q6J("ngIf",ht.contactUs.name)}}function ut(_,j){1&_&&l._UZ(0,"app-default-info")}function Ht(_,j){1&_&&l._UZ(0,"app-rich-info")}function A(_,j){if(1&_&&(l.TgZ(0,"a",15),l._uU(1),l.qZA()),2&_){const q=j.ngIf;l.Q6J("routerLink",q.url),l.xp6(1),l.Oqu(q.name)}}function xt(_,j){if(1&_&&(l.TgZ(0,"a",12),l._uU(1),l.qZA()),2&_){const q=l.oxw().$implicit;l.Q6J("href",q.url,l.LSH),l.xp6(1),l.Oqu(q.name)}}function tt(_,j){if(1&_&&(l.TgZ(0,"li"),l.YNc(1,A,2,2,"a",11),l.YNc(2,xt,2,2,"a",9),l.qZA()),2&_){const q=j.$implicit,ht=l.oxw();l.xp6(1),l.Q6J("ngIf",ht.sameSite(q)),l.xp6(1),l.Q6J("ngIf",!ht.sameSite(q))}}let ct=(()=>{class _ extends x.I{constructor(q,ht,vt,gt){super(q,"nxtFooter"),this.dialogService=ht,this.themeService=vt,this.elRef=gt,this.questionAndAnswersLink=`/${e.environment.urls.content.questions_and_answers}`,this.contactUsLink=`/${e.environment.urls.content.contact_us}`,this.role="contentinfo",this.contactUsIcon=g.qq.contact,this.newsletterIcon=g.qq.news,this.questionsIcon=g.qq.support,this.newsletter=this.content.get("newsletter"),this.newsletterLink=this.content.get("newsletterLink"),this.questions={name:this.content.get("questionsAndAnswers"),url:this.questionAndAnswersLink},this.contactUs={name:this.content.get("contactUs"),url:this.contactUsLink},this.isRichText=this.contentService.richFooter,this.nxtLink=q.getMerchant().nxtTrackingLink??"http://www.nxtcatersys.dk"}ngOnInit(){this.isDagrofa=this.contentService.isDagrofa,this.newsletterQuickSignup=!!this.contentService.get("newsletterStudioQuickSignup"),this.mailingList=this.contentService.mailingLists.pipe((0,o.h)(gt=>void 0!==gt));const{trade_conditions:q,gdpr:ht,cookie_policy:vt}=e.environment.urls.content;this.legalLinks=[{name:this.content.get("responsibilityLimitation"),url:q},{name:this.content.get("personalDataPolicy"),url:this.isDagrofa?"https://www.dagrofa.dk/om-dagrofa/privatlivspolitik-dagrofa/":ht},{name:this.content.get("cookies"),url:vt}]}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openNewsletter(){this.dialogService.openNewsletterDialog()}sameSite(q){const ht=this.contentService.sameSite({type:"link",titleText:q.name,targetUrl:q.url,new:!1});return ht?{...q,url:ht.targetUrl}:void 0}static#t=this.\u0275fac=function(ht){return new(ht||_)(l.Y36(i._s),l.Y36(i.xA),l.Y36(R.f),l.Y36(l.SBq))};static#e=this.\u0275cmp=l.Xpm({type:_,selectors:[["app-footer"]],hostVars:1,hostBindings:function(ht,vt){2&ht&&l.uIk("role",vt.role)},features:[l.qOj],decls:13,vars:10,consts:[[4,"ngIf"],[1,"questions-and-news"],[4,"ngLet"],[1,"info"],[1,"legal"],[4,"ngFor","ngForOf"],["target","_blank",1,"nxt-branding",3,"href"],[3,"mailingLists",4,"ngIf"],[3,"mailingLists"],["target","_blank",3,"href",4,"ngIf"],[3,"click",4,"ngIf"],[3,"routerLink",4,"ngIf"],["target","_blank",3,"href"],[3,"smallIcon","icon"],[3,"click"],[3,"routerLink"]],template:function(ht,vt){if(1&ht&&(l.YNc(0,t,2,1,"ng-container",0),l.ALo(1,"async"),l.TgZ(2,"nav",1),l.YNc(3,lt,5,4,"div",2),l.ALo(4,"async"),l.qZA(),l.TgZ(5,"div",3),l.YNc(6,ut,1,0,"app-default-info",0),l.YNc(7,Ht,1,0,"app-rich-info",0),l.qZA(),l.TgZ(8,"nav",4)(9,"ul"),l.YNc(10,tt,3,2,"li",5),l.qZA(),l.TgZ(11,"a",6),l._uU(12,"Powered by NXT Controls"),l.qZA()()),2&ht){let gt;l.Q6J("ngIf",l.lcZ(1,6,vt.newsletterQuickSignup&&vt.mailingList)),l.xp6(3),l.Q6J("ngLet",(null==(gt=l.lcZ(4,8,vt.mailingList))?null:gt.length)>0),l.xp6(3),l.Q6J("ngIf",!vt.isRichText),l.xp6(1),l.Q6J("ngIf",vt.isRichText),l.xp6(3),l.Q6J("ngForOf",vt.legalLinks),l.xp6(1),l.Q6J("href",vt.nxtLink,l.LSH)}},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;background-color:#3a3b3c}.city-catering-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#c3bf9c}.city-catering-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.city-catering-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#fff}.new-year-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#f0e8f8}.gourmiddag-theme[_nghost-%COMP%]{background-color:#fff}.gourmiddag-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.gourmiddag-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .gourmiddag-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .gourmiddag-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active, .gourmiddag-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.gourmiddag-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#d1af8b}.gourmiddag-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.gourmiddag-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#fff}.gourmiddag-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >*{color:#fff;background-color:#caa279}.gourmiddag-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >* section:not(:first-child){border-left:1px solid #fff}.gourmiddag-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{color:#fff;background-color:#d1af8b;border-top:1px solid #fff}.gastro-by-boegh-theme[_nghost-%COMP%]{background-color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .gastro-by-boegh-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .gastro-by-boegh-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active, .gastro-by-boegh-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#081d39}.gastro-by-boegh-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#051223}.gastro-by-boegh-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >*{color:#d1d9dc}.gastro-by-boegh-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >* section:not(:first-child){border-left:1px solid #d1d9dc}.gastro-by-boegh-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{color:#fff;background-color:#081d39;border-top:1px solid #fff}.krohn-theme[_nghost-%COMP%]{background-color:#fff}.krohn-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.krohn-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .krohn-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .krohn-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active, .krohn-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.krohn-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#014026}.krohn-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.krohn-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#fff}.krohn-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >*{color:#fff;background-color:#3a3b3c}.krohn-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >* section:not(:first-child){border-left:1px solid #fff}.krohn-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{background-color:#3a3b3c;color:#fff;border-top:1px solid #fff}.fandanko-theme[_nghost-%COMP%]{background-color:#fff}.fandanko-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.fandanko-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .fandanko-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .fandanko-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active, .fandanko-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.fandanko-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#000;padding-bottom:40px}.fandanko-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.fandanko-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#fff}.fandanko-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button svg{fill:#000}.fandanko-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]{display:none;gap:8px;align-items:center;justify-content:center;background-color:#000}@media only screen and (min-width: 0px) and (max-width: 768px){.fandanko-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]{display:flex}}@media only screen and (min-width: 768px) and (max-width: 1024px){.fandanko-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]{display:flex}}.fandanko-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:30px;width:30px}.fandanko-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]   mat-icon.contact[_ngcontent-%COMP%]{fill:#000}.fandanko-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#000}.fandanko-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:20px 120px 16px}.fandanko-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >*{color:#fff}.fandanko-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >* section:not(:first-child){border-left:unset}.fandanko-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{color:#fff;background-color:#000;border-top:unset}.fandanko-theme[_nghost-%COMP%]   .nxt-branding[_ngcontent-%COMP%]{font-size:.6em;color:#fff}.herligheder-theme[_nghost-%COMP%]{background-color:#799e91}.herligheder-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{display:none}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{max-width:1560px;width:100%;align-self:center;border-color:#fff}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:0}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{margin-right:10px}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:not(:first-child){border-left:1px solid #fff;padding-left:10px}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   .nxt-branding[_ngcontent-%COMP%]{margin-right:0}@media only screen and (min-width: 768px) and (max-width: 1024px){.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:40px}.herligheder-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   .nxt-branding[_ngcontent-%COMP%]{margin-right:40px}}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;justify-content:center;color:#fff}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]{color:#fff}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]{grid-auto-columns:1fr 1fr 2fr;max-width:1560px;width:100%;align-self:center}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]    >section{border-left:unset}@media only screen and (min-width: 1024px){.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]     .right{display:flex;flex-direction:row-reverse;gap:48px}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]     .right .mandatory-info{flex:0 0 auto;margin-top:76px}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]     .right .link-hover{flex:1 1 auto}}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-rich-info[_ngcontent-%COMP%]     h2{border-bottom:1px solid #fff;padding-bottom:8px;font-weight:400}.spar-theme[_nghost-%COMP%]{background-color:#3e122a}.spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#59193c}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{font-family:var(--font);font-weight:700}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{height:244px}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-content:space-around;height:100%}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:50%}}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-size:14px}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]{width:48px;height:48px}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button, .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:transparent;border:2px solid #fff}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button:hover, .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#878787}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button g, .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button g{stroke:#fff;stroke-width:2px}.min-kobmand-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]     mat-icon, .spar-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]     mat-icon{width:24px;height:24px}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:40px 8px}}.min-kobmand-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-default-info[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-default-info[_ngcontent-%COMP%]{color:#fff;padding:48px 28px;margin:0}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{height:90px;padding:0 28px}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{flex-wrap:wrap;padding:0;gap:16px 48px}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin:0}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff;cursor:pointer;text-decoration:none;font-size:14px;font-weight:700}@media only screen and (min-width: 1024px){.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:48px}}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active, .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:link, .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:visited, .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:active{color:#fff}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#a6a6a6}.min-kobmand-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   .nxt-branding[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   .nxt-branding[_ngcontent-%COMP%]{margin-right:0}.meny-theme[_nghost-%COMP%]{background-color:#1c1c1a}.meny-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#3c3c3b}.meny-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#3c3c3b;border:2px solid #fff}.meny-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#878787}.meny-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button g{stroke:#fff;stroke-width:2px}.meny-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-default-info[_ngcontent-%COMP%]{color:#fff}.grenaa-slagtehus-theme[_nghost-%COMP%]{background-color:#000;color:#fff}.grenaa-slagtehus-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#000}.grenaa-slagtehus-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]{background-color:#676767;color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#2d2d2d}.stechers-theme[_nghost-%COMP%]{background-color:#fff}.stechers-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.stechers-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .stechers-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .stechers-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active, .stechers-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#fff}.stechers-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#000;padding-bottom:40px}.stechers-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#fff}.stechers-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#fff}.stechers-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button svg{fill:#000}.stechers-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]{display:none;gap:8px;align-items:center;justify-content:center;background-color:#000}@media only screen and (min-width: 0px) and (max-width: 768px){.stechers-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]{display:flex}}@media only screen and (min-width: 768px) and (max-width: 1024px){.stechers-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]{display:flex}}.stechers-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:30px;width:30px}.stechers-theme[_nghost-%COMP%]   .socials[_ngcontent-%COMP%]   mat-icon.contact[_ngcontent-%COMP%]{fill:#000}.stechers-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#000}.stechers-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{padding:20px 120px 16px}.stechers-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >*{color:#fff}.stechers-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >* section:not(:first-child){border-left:unset}.stechers-theme[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{color:#fff;background-color:#000;border-top:unset}.stechers-theme[_nghost-%COMP%]   .nxt-branding[_ngcontent-%COMP%]{font-size:.6em;color:#fff}.styling-one-theme[_nghost-%COMP%]{background-color:var(--primary-color)}.styling-one-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#f4f0e4}.styling-one-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#000}.styling-one-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:var(--primary-color)}.styling-one-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >*{color:#000}.styling-one-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]    >* section:not(:first-child){border-left-color:#000}.styling-one-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.styling-one-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .styling-one-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .styling-one-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active{color:#000}.apetit-theme[_nghost-%COMP%]{background-color:#3b3833}.clpartyservice-theme[_nghost-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#000}.humoer-moebler-theme[_nghost-%COMP%]{background-color:#e4dacf;color:#000}.humoer-moebler-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{background-color:#eee}.humoer-moebler-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#000}.humoer-moebler-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#e4dacf;border:none}.humoer-moebler-theme[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#ede7df}.humoer-moebler-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#000}.humoer-moebler-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, .humoer-moebler-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, .humoer-moebler-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:active{color:#000}.humoer-moebler-theme[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#0009}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#a6a6a6;cursor:pointer;text-decoration:none}[_nghost-%COMP%]   a[_ngcontent-%COMP%]:link, [_nghost-%COMP%]   a[_ngcontent-%COMP%]:visited, [_nghost-%COMP%]   a[_ngcontent-%COMP%]:active{color:#a6a6a6}[_nghost-%COMP%]   a[_ngcontent-%COMP%]:hover{color:#eef4f6}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center;height:160px;background-color:#48494a}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-evenly;width:100%}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button{background-color:#a6a6a6;border:none}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]  .icon-button:hover{background-color:#d1d9dc}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     mat-icon{width:45%;height:45%}[_nghost-%COMP%]   .questions-and-news[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-icon-button.contact[_ngcontent-%COMP%]  mat-icon{width:75%;height:75%}[_nghost-%COMP%]   .info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;display:grid;grid-auto-flow:column;grid-auto-columns:1fr 1fr 250px;justify-content:space-evenly;align-items:stretch;min-height:40px;padding:60px 0 48px;margin:0 24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .info[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:60px 8px 48px;box-sizing:border-box}}[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #5f6061}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]{flex-direction:column;font-size:.75em;justify-content:center}}[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{display:flex;list-style-type:none;box-sizing:border-box}[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .legal[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding:12px}}[_nghost-%COMP%]   .legal[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-right:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .legal[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-right:0;margin-bottom:16px}}"]})}return _})()},9850:(Je,Rt,c)=>{"use strict";c.d(Rt,{hr:()=>lt,ci:()=>ut.c,v6:()=>$t,O0:()=>Tt,yQ:()=>St});var o=c(2802),e=c(5879),g=c(7954),x=c(7592),l=c(6574);function i(mt,yt){if(1&mt&&(e.ynx(0),e.TgZ(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"p"),e._uU(4),e.qZA(),e.BQk()),2&mt){const ee=yt.$implicit;e.xp6(2),e.Oqu(ee.title),e.xp6(2),e.Oqu(ee.description)}}function R(mt,yt){if(1&mt&&(e.TgZ(0,"span"),e._uU(1," CVR-nummer: "),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&mt){const ee=e.oxw();e.xp6(3),e.Oqu(ee.contactInfo.cvr)}}function f(mt,yt){if(1&mt&&(e.TgZ(0,"h3"),e._uU(1),e.qZA()),2&mt){const ee=e.oxw(2);e.xp6(1),e.Oqu(ee.socialsTitle)}}function t(mt,yt){if(1&mt&&(e.TgZ(0,"a",14),e._UZ(1,"mat-icon",15),e.qZA()),2&mt){const ee=e.oxw(2);e.Q6J("href",ee.socials.facebook,e.LSH)}}function y(mt,yt){if(1&mt&&(e.TgZ(0,"a",16),e._UZ(1,"mat-icon",17),e.qZA()),2&mt){const ee=e.oxw(2);e.Q6J("href",ee.socials.instagram,e.LSH)}}function O(mt,yt){if(1&mt&&(e.TgZ(0,"div",11),e.YNc(1,f,2,1,"h3",3),e.TgZ(2,"div"),e.YNc(3,t,2,1,"a",12),e.YNc(4,y,2,1,"a",13),e.qZA()()),2&mt){const ee=e.oxw();e.xp6(1),e.Q6J("ngIf",ee.socialsTitle),e.xp6(2),e.Q6J("ngIf",ee.socials.facebook),e.xp6(1),e.Q6J("ngIf",ee.socials.instagram)}}function G(mt,yt){if(1&mt&&(e.TgZ(0,"a",18),e._UZ(1,"img",19),e.ALo(2,"cms"),e.qZA()),2&mt){const ee=e.oxw();e.Q6J("href",ee.controlReport.url,e.LSH),e.xp6(1),e.Q6J("src",e.xi3(2,3,ee.controlReport.src,50),e.LSH)("alt",null==ee.controlReport?null:ee.controlReport.alt)}}function U(mt,yt){if(1&mt&&(e.TgZ(0,"a",18),e._UZ(1,"img",19),e.ALo(2,"cms"),e.qZA()),2&mt){const ee=e.oxw();e.Q6J("href",ee.controlReport.url,e.LSH),e.xp6(1),e.Q6J("src",e.xi3(2,3,ee.controlReport.src,50),e.LSH)("alt",null==ee.controlReport?null:ee.controlReport.alt)}}let lt=(()=>{class mt extends o.I{constructor(ee,B,At,st){super(ee,"nxtFooter"),this.dialog=B,this.themeService=At,this.elRef=st,this.storeOpenDescription=[{title:this.content.get("openingHoursStoreHeader"),description:this.content.get("openingHoursStore")}],this.contactInfo={title:this.content.get("contactUsHeader"),address:`${this.content.get("streetAndNumber")}\n${this.content.get("postalCodeAndCity")}`,telephone:this.content.get("telephone"),email:this.content.get("email"),cvr:this.content.get("cvr")},this.showSocials=this.content.get("showSocials"),this.showSocials&&(this.socialsTitle=this.content.get("socialsTitleText"),this.socials={facebook:this.content.get("facebookLink"),instagram:this.content.get("instagramLink")}),this.payment="Betalingsformer";const ie=this.content.get("controlReportUrl");ie&&(this.controlReport={src:this.content.get("controlReportImage"),alt:this.content.get("controlReportLabelText"),url:ie})}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}static#t=this.\u0275fac=function(B){return new(B||mt)(e.Y36(g._s),e.Y36(x.on),e.Y36(l.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:mt,selectors:[["app-default-info"]],features:[e.qOj],decls:26,vars:11,consts:[[1,"store-open-description"],[4,"ngFor","ngForOf"],[1,"contact-info"],[4,"ngIf"],[1,"find-us"],["class","socials",4,"ngIf"],[1,"payment"],["id","payment-options"],["aria-labelledby","payment-options"],["class","control-report","target","_blank",3,"href",4,"ngIf"],[1,"mobile-payment-options"],[1,"socials"],["target","_blank","aria-label","Facebook",3,"href",4,"ngIf"],["target","_blank","aria-label","Instagram",3,"href",4,"ngIf"],["target","_blank","aria-label","Facebook",3,"href"],["svgIcon","facebook","alt","Facebook"],["target","_blank","aria-label","Instagram",3,"href"],["svgIcon","instagram","alt","Instagram"],["target","_blank",1,"control-report",3,"href"],[3,"src","alt"]],template:function(B,At){1&B&&(e.TgZ(0,"section",0),e.YNc(1,i,5,2,"ng-container",1),e.qZA(),e.TgZ(2,"section",2)(3,"h3"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"span"),e._uU(8," Tlf: "),e.TgZ(9,"span"),e._uU(10),e.qZA()(),e.TgZ(11,"span"),e._uU(12," E-mail: "),e.TgZ(13,"span"),e._uU(14),e.qZA()(),e.YNc(15,R,4,1,"span",3),e.qZA(),e.TgZ(16,"section",4),e.YNc(17,O,5,3,"div",5),e.TgZ(18,"div",6)(19,"h3",7),e._uU(20),e.qZA(),e._UZ(21,"app-payment-options",8),e.qZA(),e.YNc(22,G,3,6,"a",9),e.qZA(),e.TgZ(23,"div",10),e._UZ(24,"app-payment-options"),e.YNc(25,U,3,6,"a",9),e.qZA()),2&B&&(e.xp6(1),e.Q6J("ngForOf",At.storeOpenDescription),e.xp6(3),e.Oqu(At.contactInfo.title),e.xp6(2),e.Oqu(At.contactInfo.address),e.xp6(4),e.Oqu(At.contactInfo.telephone),e.xp6(4),e.Oqu(At.contactInfo.email),e.xp6(1),e.Q6J("ngIf",At.contactInfo.cvr),e.xp6(2),e.Q6J("ngIf",At.showSocials),e.xp6(3),e.Oqu(At.payment),e.xp6(2),e.Q6J("ngIf",At.controlReport),e.xp6(2),e.uIk("aria-label",At.payment),e.xp6(1),e.Q6J("ngIf",At.controlReport))},styles:["[_nghost-%COMP%]{color:#a6a6a6;line-height:1.5em}.stechers-theme[_nghost-%COMP%]   .payment[_ngcontent-%COMP%], .stechers-theme[_nghost-%COMP%]   .mobile-payment-options[_ngcontent-%COMP%] > app-payment-options[_ngcontent-%COMP%]{display:none}.spar-theme[_nghost-%COMP%]{gap:16px}.spar-theme[_nghost-%COMP%]   h3[_ngcontent-%COMP%]{font-size:22px}.spar-theme[_nghost-%COMP%]   section[_ngcontent-%COMP%]{width:100%;border-left:none!important;padding:0!important;text-align:left}.spar-theme[_nghost-%COMP%]   .contact-info[_ngcontent-%COMP%]{display:flex!important}.spar-theme[_nghost-%COMP%]   .find-us[_ngcontent-%COMP%]{display:block!important}.spar-theme[_nghost-%COMP%]   .mobile-payment-options[_ngcontent-%COMP%] > app-payment-options[_ngcontent-%COMP%]{display:none}.humoer-moebler-theme[_nghost-%COMP%]{color:#000}.humoer-moebler-theme[_nghost-%COMP%]   h3[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%]   h3[_ngcontent-%COMP%]{color:#fff;font-size:1em;line-height:normal;margin:0}[_nghost-%COMP%]   .mobile-payment-options[_ngcontent-%COMP%]{flex:0 0 auto;display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .mobile-payment-options[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{flex:1 0 auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   section[_ngcontent-%COMP%]{min-width:260px;margin:0}}[_nghost-%COMP%]   section[_ngcontent-%COMP%]:not(:first-child){border-left:1px solid #5f6061;padding-left:24px}[_nghost-%COMP%]   section[_ngcontent-%COMP%]:not(:last-child){padding-right:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   section[_ngcontent-%COMP%]:not(:last-child){padding-right:unset}}[_nghost-%COMP%]   section.store-open-description[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{white-space:pre-wrap}[_nghost-%COMP%]   section.contact-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   section.contact-info[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   section.contact-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{white-space:pre-wrap;margin-bottom:0}[_nghost-%COMP%]   section.contact-info[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]:last-child{margin-top:0}[_nghost-%COMP%]   section.contact-info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{text-decoration:underline}[_nghost-%COMP%]   section.find-us[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   section.find-us[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   section.find-us[_ngcontent-%COMP%]   .socials[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}[_nghost-%COMP%]   section.find-us[_ngcontent-%COMP%]   .socials[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;gap:4px}[_nghost-%COMP%]   section.find-us[_ngcontent-%COMP%]   .socials[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;height:24px}[_nghost-%COMP%]   section.find-us[_ngcontent-%COMP%]   .payment[_ngcontent-%COMP%]   app-payment-options[_ngcontent-%COMP%]{margin-top:8px;max-width:100%;height:min-content}.control-report[_ngcontent-%COMP%]{display:block;height:42px;width:130px;margin-top:16px}.control-report[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}"]})}return mt})();var ut=c(7313),Ht=c(6223),A=c(7394),xt=c(1374),tt=c(7985),ct=c(125),_=c(7299),j=c(8712),q=c(9862),ht=c(6814),vt=c(4187),gt=c(8514),zt=c(3025),Ct=c(2305),H=c(5699);function J(mt,yt){if(1&mt){const ee=e.EpF();e.TgZ(0,"app-icon-button",11),e.NdJ("click",function(){e.CHM(ee);const At=e.oxw();return e.KtG(At.close())}),e.qZA()}if(2&mt){const ee=e.oxw();e.Q6J("icon",ee.closeIcon)("border",!1)}}function z(mt,yt){if(1&mt&&(e.TgZ(0,"div",12),e._UZ(1,"img",13),e.qZA()),2&mt){const ee=e.oxw();e.xp6(1),e.Q6J("src",ee.image.src,e.LSH)("alt",ee.image.alt)}}function F(mt,yt){if(1&mt){const ee=e.EpF();e.TgZ(0,"app-checkbox-button",17),e.NdJ("checkedChange",function(At){const ie=e.CHM(ee).$implicit,Ae=e.oxw(2);return e.KtG(Ae.selectSubscription(At,ie.Id))}),e._uU(1),e.qZA()}if(2&mt){const ee=yt.$implicit,B=e.oxw(2);e.Q6J("id",ee.Id)("checked",B.form.value.mailList===ee.Id),e.xp6(1),e.hij(" ",ee.Name," ")}}function rt(mt,yt){1&mt&&(e.TgZ(0,"mat-error"),e._uU(1," V\xe6lg en mail liste du gerne vil knyttes til "),e.qZA())}function V(mt,yt){if(1&mt&&(e.TgZ(0,"div",14),e.YNc(1,F,2,3,"app-checkbox-button",15),e.YNc(2,rt,2,0,"mat-error",16),e.qZA()),2&mt){const ee=e.oxw();e.xp6(1),e.Q6J("ngForOf",ee.mailingLists),e.xp6(1),e.Q6J("ngIf",ee.form.touched&&ee.form.controls.mailList.hasError("required"))}}function Pt(mt,yt){if(1&mt&&(e.TgZ(0,"app-checkbox-button",18),e._uU(1),e.qZA()),2&mt){const ee=e.oxw();e.Q6J("id",ee.mailingLists[0].Id)("checked",!0),e.xp6(1),e.hij(" ",ee.mailingLists[0].Name," ")}}let $t=(()=>{class mt extends o.I{constructor(ee,B,At){super(ee,"moduleNewletterLJ"),this.dialogRef=B,this.http=At,this.submitSubscriptionEndpoint=`${_.environment.cmsOrigin}/umbraco/api/mail/PostNewsletterSubscription`,this.subscription=new A.w0,this.closeIcon=tt.qq.bigCross,this.showButton=!1;const st=this.content.get("signUpImage");st&&(this.image={src:`${_.environment.cmsOrigin}${st}`,alt:"Newsletter signup"}),this.title=this.content.get("titleText")||"Bliv en del af Gastrolux",this.description=this.content.get("bodyTextText"),this.nameLabel="Fornavn",this.namePlaceholder="Indtast fornavn",this.emailLabel="E-mail",this.emailPlaceholder="Indtast e-mail",this.closeButton="Luk",this.submitButton=this.content.get("signUpButtonText")||"Tilmeld"}ngOnInit(){this.form=this.createForm({name:"",email:"",mailList:void 0}),this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1})),this.mailingLists=this.contentService.mailingLists.value}ngOnDestroy(){this.subscription.unsubscribe()}close(){this.dialogRef.close()}selectSubscription(ee,B){ee&&(this.form.controls.mailList.markAsTouched(),this.form.controls.mailList.setValue(B));const At=this.form.controls.mailList.value;!ee&&At&&B===At&&this.form.controls.mailList.setValue(void 0)}subscribe(){if(this.form.markAsTouched(),this.form.valid){const{name:ee,email:B,mailList:At}=this.form.value,st=this.mailingLists.find(ie=>ie.Id===At).UniqueKey;this.http.post(this.submitSubscriptionEndpoint,void 0,{params:{workspace:this.contentService.mailingWorkspace,mailingList:st,name:ee,email:B,source:window.location.hostname}}).pipe((0,xt.P)()).subscribe({complete:()=>{this.dialogRef.close()}})}}createForm(ee){const B=(0,ct.Tg)(ee,{updateOn:"submit"});return B.controls.name.setValidators([Ht.kI.required]),B.controls.email.setValidators([Ht.kI.required,Ht.kI.email]),B.controls.mailList.setValidators([Ht.kI.required]),B}static#t=this.\u0275fac=function(B){return new(B||mt)(e.Y36(j._s),e.Y36(x.hV),e.Y36(q.eN))};static#e=this.\u0275cmp=e.Xpm({type:mt,selectors:[["app-newsletter-dialog"]],features:[e.qOj],decls:19,vars:17,consts:[[3,"icon","border","click",4,"ngIf"],["class","newsletter-image-container",4,"ngIf"],[1,"newsletter-content-container"],[3,"formGroup","ngSubmit"],["newsletterForm","ngForm"],[3,"control","directive","name","placeholder"],["class","mailing-list",4,"ngIf"],["class","hidden",3,"id","checked",4,"ngIf"],[1,"dialog-options"],["type","secondary",1,"close-button",3,"click"],["buttonType","submit",1,"submit-button"],[3,"icon","border","click"],[1,"newsletter-image-container"],[3,"src","alt"],[1,"mailing-list"],[3,"id","checked","checkedChange",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"id","checked","checkedChange"],[1,"hidden",3,"id","checked"]],template:function(B,At){if(1&B&&(e.YNc(0,J,1,2,"app-icon-button",0),e.YNc(1,z,2,2,"div",1),e.TgZ(2,"div",2)(3,"h1"),e._uU(4),e.qZA(),e.TgZ(5,"p"),e._uU(6),e.qZA(),e.TgZ(7,"form",3,4),e.NdJ("ngSubmit",function(){return At.subscribe()}),e.TgZ(9,"div"),e._UZ(10,"app-text-input",5)(11,"app-text-input",5),e.YNc(12,V,3,2,"div",6),e.YNc(13,Pt,2,3,"app-checkbox-button",7),e.qZA(),e.TgZ(14,"div",8)(15,"app-text-button",9),e.NdJ("click",function(){return At.close()}),e._uU(16),e.qZA(),e.TgZ(17,"app-text-button",10),e._uU(18),e.qZA()()()()),2&B){const st=e.MAs(8);e.Q6J("ngIf",At.showButton),e.xp6(1),e.Q6J("ngIf",At.image),e.xp6(3),e.Oqu(At.title),e.xp6(2),e.Oqu(At.description),e.xp6(1),e.Q6J("formGroup",At.form),e.xp6(3),e.Q6J("control",At.form.controls.name)("directive",st)("name",At.nameLabel)("placeholder",At.namePlaceholder),e.xp6(1),e.Q6J("control",At.form.controls.email)("directive",st)("name",At.emailLabel)("placeholder",At.emailPlaceholder),e.xp6(1),e.Q6J("ngIf",At.mailingLists.length>1),e.xp6(1),e.Q6J("ngIf",1===At.mailingLists.length),e.xp6(3),e.Oqu(At.closeButton),e.xp6(2),e.Oqu(At.submitButton)}},dependencies:[ht.sg,ht.O5,Ht._Y,Ht.JL,Ht.sg,vt.nI,gt.h,zt.t,Ct.N,H.r],styles:["[_nghost-%COMP%]{display:flex}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{flex-direction:column;max-width:100vw;max-height:95vh;height:calc(var(--vh, 1vh) * 95 - 48px);padding-right:16px;margin-right:-16px;overflow-y:auto}}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:600;margin:12px 0}[_nghost-%COMP%]   p[_ngcontent-%COMP%]{margin:4px 0 16px}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:fixed;right:32px;top:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .hidden[_ngcontent-%COMP%]{visibility:hidden}[_nghost-%COMP%]   .newsletter-image-container[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:center;align-items:center;width:360px;margin-right:24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .newsletter-image-container[_ngcontent-%COMP%]{width:100%;height:240px;margin-right:0}}[_nghost-%COMP%]   .newsletter-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:100%;object-fit:contain;border-radius:16px}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:column;width:360px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;flex-direction:column;justify-content:space-between}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 0 auto;width:100%}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-input[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .mailing-list[_ngcontent-%COMP%]{margin:8px 0 20px}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .mailing-list[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child):not(mat-error){margin-top:8px}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .mailing-list[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:last-child:not(mat-error){margin-bottom:17px}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .mailing-list[_ngcontent-%COMP%]   mat-error[_ngcontent-%COMP%]{font-size:75%;margin:4px 0 16px 8px}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;justify-content:space-between}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]{margin-top:24px}}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;height:44px;width:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:36px}}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 24px}}[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .newsletter-content-container[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:block}}"]})}return mt})();var Lt=c(2939),Jt=c(2400);let Tt=(()=>{class mt extends o.I{constructor(ee,B,At){super(ee,"newsletterStudioQuickSignup"),this.snackBar=B,this.http=At,this.submitSubscriptionEndpoint=`${_.environment.cmsOrigin}/umbraco/api/mail/PostNewsletterSubscription`,this.title=this.content.get("titleText")||"Nyhedsbrev",this.nameLabel="Navn",this.emailLabel="Mailadresse",this.submitButton=this.content.get("signUpButtonText")||"Tilmeld",this.signUpSuccess=this.content.get("signUpSuccess")||"Tak for din tilmelding!",this.signUpFailure=this.content.get("signUpFailure")||"Det lykkedes ikke at tilmelde dig"}ngOnInit(){this.form=this.createForm({name:"",email:"",mailList:this.mailingLists[0].Id}),this.bgColor=this.content.get("backgroundColor"),this.textColor=this.content.get("textColor"),this.bgInputColor=this.content.get("inputBackgroundColor")}subscribe(){if(this.form.markAsTouched(),this.form.valid){const{name:ee,email:B,mailList:At}=this.form.value,st=this.mailingLists.find(ie=>ie.Id===At).UniqueKey;this.http.post(this.submitSubscriptionEndpoint,void 0,{params:{workspace:this.contentService.mailingWorkspace,mailingList:st,name:ee,email:B,source:window.location.hostname}}).pipe((0,xt.P)()).subscribe({next:()=>{this.snackBar.open(this.signUpSuccess,"luk",{duration:4e3,panelClass:"info"})},error:()=>{this.snackBar.open(this.signUpFailure,"luk",{duration:4e3,panelClass:"warn"})}})}}createForm(ee){const B=(0,ct.Tg)(ee,{updateOn:"submit"});return B.controls.name.setValidators([Ht.kI.required]),B.controls.email.setValidators([Ht.kI.required,Ht.kI.email]),B}static#t=this.\u0275fac=function(B){return new(B||mt)(e.Y36(j._s),e.Y36(Lt.ux),e.Y36(q.eN))};static#e=this.\u0275cmp=e.Xpm({type:mt,selectors:[["app-newsletter-quick-signup"]],hostVars:6,hostBindings:function(B,At){2&B&&e.Udp("--newsletter-bg-color",At.bgColor)("--newsletter-text-color",At.textColor)("--newsletter-input-bg-color",At.bgInputColor)},inputs:{mailingLists:"mailingLists"},features:[e.qOj],decls:14,vars:7,consts:[[3,"formGroup","ngSubmit"],["newsletterForm","ngForm"],["appearance","outline"],["matInput","",3,"formControl"],["buttonType","submit",1,"submit-button"]],template:function(B,At){1&B&&(e.TgZ(0,"h1"),e._uU(1),e.qZA(),e.TgZ(2,"form",0,1),e.NdJ("ngSubmit",function(){return At.subscribe()}),e.TgZ(4,"mat-form-field",2)(5,"mat-label"),e._uU(6),e.qZA(),e._UZ(7,"input",3),e.qZA(),e.TgZ(8,"mat-form-field",2)(9,"mat-label"),e._uU(10),e.qZA(),e._UZ(11,"input",3),e.qZA(),e.TgZ(12,"app-text-button",4),e._uU(13),e.qZA()()),2&B&&(e.xp6(1),e.Oqu(At.title),e.xp6(1),e.Q6J("formGroup",At.form),e.xp6(4),e.Oqu(At.nameLabel),e.xp6(1),e.Q6J("formControl",At.form.controls.name),e.xp6(3),e.Oqu(At.emailLabel),e.xp6(1),e.Q6J("formControl",At.form.controls.email),e.xp6(2),e.Oqu(At.submitButton))},dependencies:[Ht._Y,Ht.Fj,Ht.JJ,Ht.JL,Ht.oH,Ht.sg,vt.v_,vt.$V,Jt.k0,gt.h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:60px 0 120px;background-color:var(--newsletter-bg-color);color:var(--newsletter-text-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:500px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:90vw}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-outline>*{background-color:var(--newsletter-input-bg-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-outline .mat-form-field-outline-start{border-radius:128px 0 0 128px;width:27px!important}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-outline .mat-form-field-outline-end{border-radius:0 128px 128px 0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-infix{padding-left:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-infix .mat-form-field-label-wrapper{left:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content;height:60px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     button{padding:4px 60px;border-radius:128px}"]})}return mt})();function $(mt,yt){if(1&mt&&(e.TgZ(0,"h3",13),e._uU(1),e.qZA()),2&mt){const ee=e.oxw();e.xp6(1),e.Oqu(ee.payment)}}function pt(mt,yt){if(1&mt&&(e.TgZ(0,"a",14),e._UZ(1,"img",15),e.ALo(2,"cms"),e.qZA()),2&mt){const ee=e.oxw();e.Q6J("href",ee.controlReport.url,e.LSH),e.xp6(1),e.Q6J("src",e.xi3(2,3,ee.controlReport.src,50),e.LSH)("alt",ee.controlReport.alt)}}function Dt(mt,yt){if(1&mt&&(e.TgZ(0,"a",16),e._UZ(1,"img",15),e.ALo(2,"cms"),e.qZA()),2&mt){const ee=e.oxw();e.Q6J("href",ee.controlReport.url,e.LSH),e.xp6(1),e.Q6J("src",e.xi3(2,3,ee.controlReport.src,50),e.LSH)("alt",ee.controlReport.alt)}}let St=(()=>{class mt extends o.I{constructor(ee,B,At,st){super(ee,"nxtFooter"),this.dialog=B,this.themeService=At,this.elRef=st,this.left=this.addSources(this.content.get("footerInfoLeft")),this.center=this.addSources(this.content.get("footerInfoCenter")),this.right=this.addSources(this.content.get("footerInfoRight")),this.payment=this.content.has("paymentOptionsLabel")?this.content.get("paymentOptionsLabel"):"Betalingsformer";const ie=this.content.get("controlReportUrl");ie&&(this.controlReport={src:this.content.get("controlReportImage"),alt:this.content.get("controlReportLabelText"),url:ie})}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}addSources(ee){return ee=this.contentService.addImageSource(ee),this.contentService.addLinkSource(ee)}processLinks(ee){this.contentService.processLink(ee)}static#t=this.\u0275fac=function(B){return new(B||mt)(e.Y36(g._s),e.Y36(x.on),e.Y36(l.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:mt,selectors:[["app-rich-info"]],features:[e.qOj],decls:21,vars:14,consts:[[1,"left"],[1,"link-hover",3,"innerHTML","click"],[1,"center"],[1,"right"],[1,"mandatory-info"],[1,"payment"],["id","payment-options",4,"ngIf"],["aria-labelledby","payment-options"],[1,"control-report"],["id","control-report"],["aria-labelledby","control-report","target","_blank","rel","noopener",3,"href",4,"ngIf"],[1,"mobile-payment-options"],["target","_blank","rel","noopener",3,"href",4,"ngIf"],["id","payment-options"],["aria-labelledby","control-report","target","_blank","rel","noopener",3,"href"],[3,"src","alt"],["target","_blank","rel","noopener",3,"href"]],template:function(B,At){1&B&&(e.TgZ(0,"section",0)(1,"div",1),e.NdJ("click",function(ie){return At.processLinks(ie)}),e.ALo(2,"sanitizeHtml"),e.qZA()(),e.TgZ(3,"section",2)(4,"div",1),e.NdJ("click",function(ie){return At.processLinks(ie)}),e.ALo(5,"sanitizeHtml"),e.qZA()(),e.TgZ(6,"section",3)(7,"div",4)(8,"div",5),e.YNc(9,$,2,1,"h3",6),e._UZ(10,"app-payment-options",7),e.qZA(),e.TgZ(11,"div",8)(12,"h3",9),e._uU(13),e.qZA(),e.YNc(14,pt,3,6,"a",10),e.qZA()(),e.TgZ(15,"div",1),e.NdJ("click",function(ie){return At.processLinks(ie)}),e.ALo(16,"sanitizeHtml"),e.qZA()(),e.TgZ(17,"div",11),e._UZ(18,"app-payment-options"),e.TgZ(19,"div",8),e.YNc(20,Dt,3,6,"a",12),e.qZA()()),2&B&&(e.xp6(1),e.Q6J("innerHTML",e.lcZ(2,8,At.left),e.oJD),e.xp6(3),e.Q6J("innerHTML",e.lcZ(5,10,At.center),e.oJD),e.xp6(5),e.Q6J("ngIf",At.payment),e.xp6(4),e.Oqu(null==At.controlReport?null:At.controlReport.alt),e.xp6(1),e.Q6J("ngIf",At.controlReport),e.xp6(1),e.Q6J("innerHTML",e.lcZ(16,12,At.right),e.oJD),e.xp6(3),e.uIk("aria-label",At.payment),e.xp6(2),e.Q6J("ngIf",At.controlReport))},styles:["[_nghost-%COMP%]{color:#a6a6a6;line-height:1.5em}[_nghost-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1em;line-height:normal;margin:0}[_nghost-%COMP%]   .mobile-payment-options[_ngcontent-%COMP%]{flex:0 0 auto;display:none}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{flex:1 1 auto}[_nghost-%COMP%]   section[_ngcontent-%COMP%]:not(:first-child){border-left:1px solid #5f6061;padding-left:24px}[_nghost-%COMP%]   section[_ngcontent-%COMP%]:not(:last-child){padding-right:24px}[_nghost-%COMP%]   section[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]{width:100%;height:min-content}[_nghost-%COMP%]   section[_ngcontent-%COMP%]   .rich-text[_ngcontent-%COMP%]    >:first-child{margin-top:0}[_nghost-%COMP%]   section[_ngcontent-%COMP%]   .link-hover[_ngcontent-%COMP%]     img{height:100%;max-width:100%;object-fit:contain}[_nghost-%COMP%]   section.right[_ngcontent-%COMP%]   .mandatory-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   section.right[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}[_nghost-%COMP%]   .payment[_ngcontent-%COMP%]   app-payment-options[_ngcontent-%COMP%]{margin-top:0;max-width:100%;height:100%}[_nghost-%COMP%]   .control-report[_ngcontent-%COMP%]{margin-top:16px}[_nghost-%COMP%]   .control-report[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;height:42px;width:130px;margin-top:8px}[_nghost-%COMP%]   .control-report[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center;padding:60px 8px 48px}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{min-width:260px;margin:0;padding:0!important}[_nghost-%COMP%]   section.center[_ngcontent-%COMP%]{border-left:unset}[_nghost-%COMP%]   section[_ngcontent-%COMP%]   .mobile-payment-options[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column}[_nghost-%COMP%]   section.right[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .control-report[_ngcontent-%COMP%]{margin-top:0}}"]})}return mt})()},9817:(Je,Rt,c)=>{"use strict";c.d(Rt,{w:()=>ct});var o=c(7398),e=c(6939),g=c(7985),x=c(7299),l=c(2802),i=c(5879),R=c(7954),f=c(4222);function t(_,j){if(1&_&&(i.TgZ(0,"span",7),i._uU(1),i.ALo(2,"number"),i.ALo(3,"async"),i.ALo(4,"displayCurrency"),i.qZA()),2&_){const q=i.oxw(2);i.xp6(1),i.AsE("",i.Dn7(2,2,i.lcZ(3,6,q.price$),".2-2",q.locale)," ",i.lcZ(4,8,q.currency),"")}}function y(_,j){1&_&&(i.TgZ(0,"div",8),i._UZ(1,"img",9),i.qZA())}function O(_,j){if(1&_&&(i.ynx(0),i.YNc(1,t,5,10,"span",5),i.YNc(2,y,2,0,"div",6),i.BQk()),2&_){const q=j.ngLet;i.xp6(1),i.Q6J("ngIf",!q),i.xp6(1),i.Q6J("ngIf",q)}}function G(_,j){if(1&_){const q=i.EpF();i.TgZ(0,"app-counter",22),i.NdJ("add",function(vt){i.CHM(q);const gt=i.oxw().ngIf,zt=i.oxw(2);return i.KtG(zt.addProduct(gt,vt))})("remove",function(vt){i.CHM(q);const gt=i.oxw().ngIf,zt=i.oxw(2);return i.KtG(zt.removeProduct(gt,vt))}),i.qZA()}if(2&_){const q=i.oxw().ngIf,ht=i.oxw().$implicit;i.Q6J("count",ht.quantity)("minCount",q.minCount)("lockRemove",ht.quantity===q.minCount)}}function U(_,j){if(1&_&&(i.TgZ(0,"span",23),i._uU(1),i.qZA()),2&_){const q=i.oxw(2).$implicit;i.xp6(1),i.Oqu(q.quantity)}}function lt(_,j){if(1&_&&i._UZ(0,"mat-icon",29),2&_){const q=i.oxw(6);i.Q6J("svgIcon",q.multiplyIcon)}}function ut(_,j){if(1&_&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,lt,1,1,"mat-icon",28),i._uU(3),i.qZA()),2&_){const q=i.oxw().$implicit,ht=i.oxw(3).$implicit;i.xp6(1),i.hij(" ",q.quantity," "),i.xp6(1),i.Q6J("ngIf",1!==ht.quantity),i.xp6(1),i.hij(" ",1!==ht.quantity?ht.quantity:""," ")}}function Ht(_,j){if(1&_&&(i.TgZ(0,"div",26)(1,"div",14),i._UZ(2,"img",15),i.ALo(3,"source"),i.qZA(),i.TgZ(4,"div",16)(5,"b"),i._uU(6),i.qZA(),i.TgZ(7,"span"),i._uU(8),i.qZA()(),i.TgZ(9,"div",27),i.YNc(10,ut,4,3,"div",10),i.qZA()()),2&_){const q=j.$implicit;i.xp6(2),i.Q6J("src",i.lcZ(3,5,q),i.LSH)("alt",q.productDisplayName),i.xp6(4),i.Oqu(q.productDisplayName),i.xp6(2),i.hij("",q.summary,"\u200d"),i.xp6(2),i.Q6J("ngIf",q.price||1!==q.quantity)}}function A(_,j){if(1&_&&(i.TgZ(0,"div",24),i.YNc(1,Ht,11,7,"div",25),i.qZA()),2&_){const q=j.ngIf;i.xp6(1),i.Q6J("ngForOf",q)}}function xt(_,j){if(1&_){const q=i.EpF();i.TgZ(0,"div")(1,"div",11)(2,"div",12)(3,"a",13),i.NdJ("click",function(){i.CHM(q);const vt=i.oxw(2);return i.KtG(vt.close())}),i.TgZ(4,"div",14),i._UZ(5,"img",15),i.ALo(6,"source"),i.qZA(),i.TgZ(7,"div",16)(8,"b"),i._uU(9),i.qZA(),i.TgZ(10,"span"),i._uU(11),i.qZA(),i._UZ(12,"app-price",17),i.ALo(13,"sum"),i.qZA()(),i.YNc(14,G,1,3,"app-counter",18),i.YNc(15,U,2,1,"span",19),i.TgZ(16,"app-icon-button",20),i.NdJ("click",function(){const gt=i.CHM(q).ngIf,zt=i.oxw(2);return i.KtG(zt.deleteProduct(gt))}),i.qZA()(),i.YNc(17,A,2,1,"div",21),i.ALo(18,"modules"),i.qZA()()}if(2&_){const q=j.ngIf,ht=i.oxw().$implicit,vt=i.oxw();i.xp6(3),i.Q6J("routerLink",vt.createProductUrl(q)),i.xp6(2),i.Q6J("src",i.lcZ(6,12,q),i.LSH)("alt",q.productDisplayName),i.xp6(4),i.Oqu(q.productDisplayName),i.xp6(2),i.Oqu(q.summary),i.xp6(1),i.Q6J("forceSuperscript",!0)("value",i.lcZ(13,14,ht)),i.xp6(2),i.Q6J("ngIf",!ht.giftCardInfo),i.xp6(1),i.Q6J("ngIf",ht.giftCardInfo),i.xp6(1),i.Q6J("icon",vt.closeIcon)("border",!1),i.xp6(1),i.Q6J("ngIf",i.lcZ(18,16,q))}}function tt(_,j){if(1&_&&(i.ynx(0),i.YNc(1,xt,19,18,"div",10),i.ALo(2,"async"),i.BQk()),2&_){const q=j.$implicit,ht=i.oxw();i.xp6(1),i.Q6J("ngIf",i.lcZ(2,1,ht.getProduct(q)))}}let ct=(()=>{class _ extends l.I{constructor(q,ht,vt,gt,zt){super(q,"basket"),this.basketService=ht,this.basketQuery=vt,this.authService=gt,this.productService=zt,this.closeIcon=g.qq.bigCross,this.basketOverviewUrl=`/${x.environment.urls.basket}`,this.locale=x.environment.i18n.language,this.currency=x.environment.i18n.currency,this.placeholder=e.b,this.multiplyIcon=g.Ym.delete,this.show=!1,this.basketButtonText=this.content.get("goToBasketButtonText");const Ct=this.contentService.getSharedContent(!0);this.priceHeader=Ct.get("totalPriceLabelText"),this.debitorWarningLabel=Ct.get("debitorWarningText"),this.discountLabel=this.content.get("discountLabelText")}ngOnInit(){this.price$=this.basketQuery.selectTotal$,this.discount$=this.basketQuery.selectDiscount$,this.productLines$=this.basketQuery.selectProductLines$,this.isLoading$=this.basketQuery.selectLoading(),this.loggedIn=this.authService.member.pipe((0,o.U)(q=>!!q))}getProduct(q){return this.basketService.getProductObservable(q)}addProduct(q,ht){this.basketService.addProduct(q,ht)}removeProduct(q,ht=1){this.basketService.removeProduct(q,ht)}deleteProduct(q){this.basketService.deleteProduct(q)}createProductUrl(q){return this.productService.createProductUrl(q)}close(){this.basketService.setOverlay(!1)}static#t=this.\u0275fac=function(ht){return new(ht||_)(i.Y36(R._s),i.Y36(R.vD),i.Y36(R.Ns),i.Y36(f.e8),i.Y36(R.M5))};static#e=this.\u0275cmp=i.Xpm({type:_,selectors:[["app-basket"]],inputs:{show:"show"},features:[i.qOj],decls:13,vars:13,consts:[[3,"icon","click"],["for","total-price"],[4,"ngLet"],[3,"routerLink","disabled","click"],[4,"ngFor","ngForOf"],["id","total-price",4,"ngIf"],["class","loading",4,"ngIf"],["id","total-price"],[1,"loading"],["src","assets/preloader.gif","alt","loading price"],[4,"ngIf"],[1,"product-line"],[1,"product"],[3,"routerLink","click"],[1,"basket-product-image-container"],[3,"src","alt"],[1,"basket-product-content"],[3,"forceSuperscript","value"],[3,"count","minCount","lockRemove","add","remove",4,"ngIf"],["class","basket-product-quantity",4,"ngIf"],[1,"remove-product",3,"icon","border","click"],["class","product-modules",4,"ngIf"],[3,"count","minCount","lockRemove","add","remove"],[1,"basket-product-quantity"],[1,"product-modules"],["class","module-line",4,"ngFor","ngForOf"],[1,"module-line"],[1,"module-quantity"],["class","multiply-icon",3,"svgIcon",4,"ngIf"],[1,"multiply-icon",3,"svgIcon"]],template:function(ht,vt){1&ht&&(i.TgZ(0,"header")(1,"app-icon-button",0),i.NdJ("click",function(){return vt.close()}),i.qZA(),i.TgZ(2,"div")(3,"label",1),i._uU(4),i.qZA(),i.YNc(5,O,3,2,"ng-container",2),i.ALo(6,"async"),i.TgZ(7,"app-text-button",3),i.NdJ("click",function(){return vt.close()}),i.ALo(8,"async"),i._uU(9),i.qZA()()(),i.TgZ(10,"div"),i.YNc(11,tt,3,3,"ng-container",4),i.ALo(12,"async"),i.qZA()),2&ht&&(i.xp6(1),i.Q6J("icon",vt.closeIcon),i.xp6(3),i.Oqu(vt.priceHeader),i.xp6(1),i.Q6J("ngLet",i.lcZ(6,7,vt.isLoading$)),i.xp6(2),i.Q6J("routerLink",vt.basketOverviewUrl)("disabled",i.lcZ(8,9,vt.productLines$).length<1),i.xp6(2),i.hij(" ",vt.basketButtonText," "),i.xp6(2),i.Q6J("ngForOf",i.lcZ(12,11,vt.productLines$)))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;background-color:#fff;box-sizing:border-box;padding:16px 0 0;height:100vh}@media only screen and (min-width: 1024px){[_nghost-%COMP%]{width:440px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:340px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100vw}}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{display:flex;padding:0 16px 20px;border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{flex:0 0 auto;margin-right:16px}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1 0 auto;display:flex;flex-direction:column}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-top:16px;font-size:1.1em}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-top:4px;font-size:1.3em;font-weight:700}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{margin-top:4px;display:flex;align-items:center;height:23px}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{margin:20px 0}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;flex-direction:column;height:100%;overflow-y:auto}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;justify-content:center;align-items:center;height:66px;width:88px;margin-right:12px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-image-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:cover}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-content[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;flex-direction:column;overflow:hidden}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-content[_ngcontent-%COMP%]   b[_ngcontent-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex:0 0 auto;font-size:.9em}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-content[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-content[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:500;color:var(--text-accent-color);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .basket-product-content[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]{border-bottom:1px solid #d1d9dc;font-size:.9em}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;position:relative;justify-content:space-between;align-items:center;box-sizing:border-box;height:min-content;padding:8px 16px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]{padding:8px}}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;color:inherit;text-decoration:none;overflow:hidden}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]:only-child   app-price[_ngcontent-%COMP%]{padding-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]{flex:0 0 auto;height:32px;width:140px;line-height:32px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   app-counter[_ngcontent-%COMP%]     app-icon-button{height:32px;width:32px;min-height:32px;min-width:32px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .basket-product-quantity[_ngcontent-%COMP%]{flex:0 0 auto;height:32px;width:60px;line-height:32px;margin:0 40px;background-color:var(--accent-lighter-color);box-sizing:border-box;font-weight:700;text-align:center;border-style:solid;border-width:1px;border-radius:64px;border-color:var(--accent-color)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product[_ngcontent-%COMP%]   .remove-product[_ngcontent-%COMP%]{position:absolute;top:4px;right:4px;height:24px;width:24px;min-width:24px;min-height:24px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]{margin-left:40px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]{display:flex;align-items:center;height:min-content;margin-bottom:12px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-left:auto;margin-right:16px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%]   .multiply-icon[_ngcontent-%COMP%]{height:15px;width:10px;padding:0 3px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]   .product-line[_ngcontent-%COMP%]   .product-modules[_ngcontent-%COMP%]   .module-line[_ngcontent-%COMP%]   .module-quantity[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;justify-self:flex-end;box-sizing:border-box;height:32px;width:60px;font-weight:700;border:1px solid var(--accent-color);border-radius:64px}"]})}return _})()},9683:(Je,Rt,c)=>{"use strict";c.d(Rt,{G:()=>_});var o=c(7398),e=c(7954),g=c(7299),x=c(7985),l=c(2802),i=c(5879),R=c(8750),f=c(6574);function t(j,q){if(1&j&&(i.TgZ(0,"a",11),i._uU(1),i.qZA()),2&j){const ht=q.ngIf;i.Q6J("routerLink",ht.targetUrl)("target",ht.new?"_blank":"_self"),i.xp6(1),i.hij(" ",ht.titleText," ")}}function y(j,q){if(1&j&&(i.TgZ(0,"a",12),i._uU(1),i.qZA()),2&j){const ht=i.oxw().$implicit;i.Q6J("href",ht.targetUrl,i.LSH)("target",ht.new?"_blank":"_self"),i.xp6(1),i.Oqu(ht.titleText)}}function O(j,q){if(1&j&&(i.ynx(0),i.YNc(1,t,2,3,"a",9),i.YNc(2,y,2,3,"a",10),i.BQk()),2&j){const ht=q.$implicit,vt=i.oxw(2);i.xp6(1),i.Q6J("ngIf",vt.sameSite(ht)),i.xp6(1),i.Q6J("ngIf",!vt.sameSite(ht))}}function G(j,q){1&j&&i._UZ(0,"app-member-bar")}function U(j,q){if(1&j&&(i.TgZ(0,"div",6)(1,"div",7),i.YNc(2,O,3,2,"ng-container",8),i.YNc(3,G,1,0,"app-member-bar",1),i.qZA()()),2&j){const ht=i.oxw();i.xp6(2),i.Q6J("ngForOf",ht.headerLinks),i.xp6(1),i.Q6J("ngIf",ht.enableMembers)}}function lt(j,q){1&j&&i._UZ(0,"app-member-bar")}function ut(j,q){if(1&j){const ht=i.EpF();i.TgZ(0,"div",16)(1,"app-icon-button",15),i.NdJ("click",function(){i.CHM(ht);const gt=i.oxw(2);return i.KtG(gt.openMenu())}),i.qZA(),i.TgZ(2,"label",17),i.NdJ("click",function(){i.CHM(ht);const gt=i.oxw(2);return i.KtG(gt.openMenu())}),i._uU(3),i.qZA()()}if(2&j){const ht=i.oxw(2);i.xp6(1),i.Q6J("icon",ht.shippingIcon),i.xp6(2),i.Oqu(ht.menuLabel)}}function Ht(j,q){if(1&j){const ht=i.EpF();i.ynx(0),i.YNc(1,ut,4,2,"div",13),i.TgZ(2,"div",14)(3,"app-icon-button",15),i.NdJ("click",function(){i.CHM(ht);const gt=i.oxw();return i.KtG(gt.openMobileMenu())}),i.qZA()(),i.BQk()}if(2&j){const ht=i.oxw();i.xp6(1),i.Q6J("ngIf",!ht.storeClosed),i.xp6(2),i.Q6J("icon",ht.mobileMenuIcon)}}function A(j,q){if(1&j&&(i.TgZ(0,"span",25),i._uU(1),i.ALo(2,"number"),i.ALo(3,"async"),i.ALo(4,"displayCurrency"),i.qZA()),2&j){const ht=i.oxw(3);i.xp6(1),i.AsE(" ",i.Dn7(2,2,i.lcZ(3,6,ht.price$),".2-2",ht.locale)," ",i.lcZ(4,8,ht.currency)," ")}}function xt(j,q){1&j&&(i.TgZ(0,"div",26),i._UZ(1,"img",27),i.qZA())}function tt(j,q){if(1&j&&(i.ynx(0),i.YNc(1,A,5,10,"span",23),i.YNc(2,xt,2,0,"div",24),i.BQk()),2&j){const ht=q.ngLet;i.xp6(1),i.Q6J("ngIf",!ht),i.xp6(1),i.Q6J("ngIf",ht)}}function ct(j,q){if(1&j){const ht=i.EpF();i.TgZ(0,"div",18)(1,"div",19)(2,"label",20),i._uU(3),i.qZA(),i.YNc(4,tt,3,2,"ng-container",21),i.ALo(5,"async"),i.qZA(),i.TgZ(6,"app-icon-button",22),i.NdJ("click",function(){i.CHM(ht);const gt=i.oxw();return i.KtG(gt.openBasket())}),i.ALo(7,"async"),i.qZA()()}if(2&j){const ht=i.oxw();i.xp6(3),i.Oqu(ht.basketLabel),i.xp6(1),i.Q6J("ngLet",i.lcZ(5,4,ht.isLoading$)),i.xp6(2),i.Q6J("icon",ht.basketIcon)("matBadge",i.lcZ(7,6,ht.count$))}}let _=(()=>{class j extends l.I{constructor(ht,vt,gt,zt,Ct,H,J,z){super(ht,e.NS.header),this.basketService=vt,this.basketQuery=gt,this.dialogService=zt,this.mobileService=Ct,this.deviceService=H,this.themeService=J,this.elRef=z,this.shippingIcon=x.qq.shipping,this.mobileMenuIcon=x.qq.menu,this.basketIcon=x.qq.basket,this.locale=g.environment.i18n.language,this.currency=g.environment.i18n.currency,this.showBasket=!0,this.showShipping=!0,this.showInfoBar=!1,this.isMobile=!1,this.enableMembers=this.contentService.getMerchant().enableMembers,this.storeClosed=this.contentService.getStoreClosed(),this.menuLabel=this.content.get("deliveryPickup"),this.basketLabel=this.content.get("totalPrice"),this.storeLogo={src:this.content.get("headerImage"),alt:this.contentService.getTitle()},this.showOnlyLogo=169===this.contentService.getMerchant().id}ngOnInit(){if(this.price$=this.basketQuery.selectTotal$,this.count$=this.basketQuery.selectProductLines$.pipe((0,o.U)(ht=>{let vt=0;return ht.forEach(gt=>vt+=gt.quantity),vt})),this.isLoading$=this.basketQuery.selectLoading(),this.showInfoBar){const ht=this.contentService.getMerchantContent(e.headerSections.header);this.headerLinks=[];for(const vt of ht)switch(vt.type){case"simple":{const gt=this.contentService.getContentLink(vt);this.headerLinks.push(gt);break}case"link":this.headerLinks.push(vt)}}}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openMenu(){this.dialogService.openShippingDialog()}openMobileMenu(){this.mobileService.setOverlay(!0)}openBasket(){this.basketService.setOverlay(!0)}sameSite(ht){return this.contentService.sameSite(ht)}static#t=this.\u0275fac=function(vt){return new(vt||j)(i.Y36(e._s),i.Y36(e.vD),i.Y36(e.Ns),i.Y36(e.xA),i.Y36(e.Wf),i.Y36(R.x0),i.Y36(f.f),i.Y36(i.SBq))};static#e=this.\u0275cmp=i.Xpm({type:j,selectors:[["app-header"]],inputs:{showBasket:"showBasket",showShipping:"showShipping",showInfoBar:"showInfoBar"},features:[i.qOj],decls:8,vars:9,consts:[["class","info",4,"ngIf"],[4,"ngIf"],[1,"header"],["routerLink","/",1,"logo-container"],[3,"src","alt"],["class","basket",4,"ngIf"],[1,"info"],[1,"info-wrapper"],[4,"ngFor","ngForOf"],["class","nav",3,"routerLink","target",4,"ngIf"],["class","nav",3,"href","target",4,"ngIf"],[1,"nav",3,"routerLink","target"],[1,"nav",3,"href","target"],["class","shipping",4,"ngIf"],[1,"shipping","mobileMenu"],["id","menu",3,"icon","click"],[1,"shipping"],["for","menu",3,"click"],[1,"basket"],[1,"basket-label"],["for","price"],[4,"ngLet"],[3,"icon","matBadge","click"],["id","price","class","basket-price",4,"ngIf"],["class","loading",4,"ngIf"],["id","price",1,"basket-price"],[1,"loading"],["src","assets/preloader.gif","alt","loading price"]],template:function(vt,gt){1&vt&&(i.YNc(0,U,4,2,"div",0),i.YNc(1,lt,1,0,"app-member-bar",1),i.TgZ(2,"div",2),i.YNc(3,Ht,4,2,"ng-container",1),i.TgZ(4,"a",3),i._UZ(5,"img",4),i.ALo(6,"cms"),i.qZA(),i.YNc(7,ct,8,8,"div",5),i.qZA()),2&vt&&(i.Q6J("ngIf",gt.showInfoBar),i.xp6(1),i.Q6J("ngIf",gt.enableMembers),i.xp6(2),i.Q6J("ngIf",gt.showShipping&&!gt.showOnlyLogo),i.xp6(2),i.Q6J("src",i.xi3(6,6,gt.storeLogo.src,50),i.LSH)("alt",gt.storeLogo.alt),i.xp6(2),i.Q6J("ngIf",gt.showBasket&&!gt.showOnlyLogo))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 20px;z-index:100}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{box-shadow:0 0 10px 1px #0000001a}}.new-year-theme[_nghost-%COMP%]{background-color:#fff}.catersys-theme[_nghost-%COMP%]{background-color:#ededed}.city-catering-theme[_nghost-%COMP%]{background-color:#3a3b3c;color:#fff}.city-catering-theme[_nghost-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{background-color:#778258!important}.gourmiddag-theme[_nghost-%COMP%]{background-color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]{background-color:#081d39;color:#fff}.victors-madhus-theme[_nghost-%COMP%]{background-color:#48494a;color:#fff}.la-brava-theme[_nghost-%COMP%]{background-color:#fff}.la-brava-theme[_nghost-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{background-color:#c41113!important}.kokkefroeen-theme[_nghost-%COMP%]{background-color:#fff}.herligheder-theme[_nghost-%COMP%]{background-color:#fff}.demo-shop-theme[_nghost-%COMP%]{background-color:#fff}.saakin-theme[_nghost-%COMP%]{background-color:#fff}.stechers-theme[_nghost-%COMP%]{background-color:#fff}.stechers-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{background-color:#000}.krohn-theme[_nghost-%COMP%]{background-color:#fff;color:#000}.fandanko-theme[_nghost-%COMP%]{background-color:#000;color:#fff}.fandanko-theme[_nghost-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{border:1px solid #fff}.fandanko-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%] > .shipping[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{text-decoration:none}.grenaa-slagtehus-theme[_nghost-%COMP%]{background-color:#000;color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]{background-color:#c9ad60;color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{border:1px solid #fff}.apetit-theme[_nghost-%COMP%]{background-color:#3b3833;color:#fff}.clpartyservice-theme[_nghost-%COMP%]{background-color:#000;color:#fff}.clpartyservice-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button{background-color:inherit}.clpartyservice-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button.border{border:unset}.clpartyservice-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button svg>image{filter:invert(76%) sepia(99%) saturate(642%) hue-rotate(358deg) brightness(102%) contrast(105%)}.clpartyservice-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button svg line{stroke:var(--primary-color)}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:50px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{color:inherit;text-decoration:none;font-size:.8em;cursor:pointer;border-right:1px solid #fff;padding:0 16px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]{font-weight:400;margin-left:16px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]     mat-icon{display:none}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{flex:1 1 auto;display:grid;grid-template-columns:repeat(3,1fr);max-width:1392px;width:100%;overflow:hidden}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{max-width:unset}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{grid-template-columns:68px auto 68px;max-width:unset;padding:0}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:50px;height:50px}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:flex;grid-column:1;justify-self:start}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{text-decoration:underline;cursor:pointer}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping.mobileMenu[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping.mobileMenu[_ngcontent-%COMP%]{display:flex}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping.mobileMenu[_ngcontent-%COMP%]{display:flex}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{grid-column:2;justify-self:center;display:flex;justify-content:center;align-items:center;height:140px;max-height:140px;max-width:320px;margin:28px auto 8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{height:50px;max-height:50px;max-width:160px;margin:auto}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{display:flex;grid-column:3;justify-self:end}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-label[_ngcontent-%COMP%]{text-align:right}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-label[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-label[_ngcontent-%COMP%]   .basket-price[_ngcontent-%COMP%]{font-size:1.3em;font-weight:700}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   .basket-label[_ngcontent-%COMP%]   .loading[_ngcontent-%COMP%]{margin-top:4px;display:flex;align-items:center;height:18px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{align-items:center}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:8px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{white-space:pre-line}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content, [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{right:-3px;top:0;background-color:var(--primary-color)}[_nghost-%COMP%]   app-member-bar[_ngcontent-%COMP%]{position:absolute;top:4px;right:8px;z-index:500}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-member-bar[_ngcontent-%COMP%]{display:none}}"]})}return j})()},1166:(Je,Rt,c)=>{"use strict";c.d(Rt,{wP:()=>o.w,Gt:()=>e.G,f6:()=>g.f,PU:()=>Tt,kb:()=>$.k});var o=c(9817),e=c(9683),g=c(8470),x=c(9671),l=c(6223),i=c(7592),R=c(6676),f=c.n(R),t=c(7394),y=c(5619),O=c(7921),G=c(3620),U=c(6093),lt=c(7985),ut=c(125),Ht=c(2802),A=c(5879),xt=c(7954),tt=c(6814),ct=c(8862),_=c(617),j=c(4187),q=c(2400),ht=c(8514),vt=c(5699);function gt(pt,Dt){if(1&pt){const St=A.EpF();A.TgZ(0,"app-icon-button",10),A.NdJ("click",function(){A.CHM(St);const yt=A.oxw();return A.KtG(yt.close())}),A.qZA()}if(2&pt){const St=A.oxw();A.Q6J("icon",St.closeIcon)("border",!1)}}function zt(pt,Dt){1&pt&&A._UZ(0,"mat-icon",17)}function Ct(pt,Dt){1&pt&&A._UZ(0,"mat-icon",18)}function H(pt,Dt){if(1&pt&&(A.ynx(0,14),A.YNc(1,zt,1,0,"mat-icon",15),A.YNc(2,Ct,1,0,"mat-icon",16),A.BQk()),2&pt){const St=A.oxw().ngLet;A.xp6(1),A.Q6J("ngIf",St.valid),A.xp6(1),A.Q6J("ngIf",!St.valid)}}function J(pt,Dt){if(1&pt&&(A.TgZ(0,"mat-form-field",11)(1,"mat-label"),A._uU(2),A.qZA(),A._UZ(3,"input",12),A.YNc(4,H,3,2,"ng-container",13),A.qZA()),2&pt){const St=Dt.ngLet,mt=A.oxw();A.xp6(2),A.Oqu(mt.addressLabel),A.xp6(1),A.Q6J("placeholder",mt.addressPlaceholder)("formControl",St),A.xp6(1),A.Q6J("ngIf",St.touched||St.value)}}function z(pt,Dt){1&pt&&A._UZ(0,"mat-icon",17)}function F(pt,Dt){1&pt&&A._UZ(0,"mat-icon",18)}function rt(pt,Dt){if(1&pt&&(A.ynx(0,14),A.YNc(1,z,1,0,"mat-icon",15),A.YNc(2,F,1,0,"mat-icon",16),A.BQk()),2&pt){const St=A.oxw().ngLet;A.xp6(1),A.Q6J("ngIf",St.valid),A.xp6(1),A.Q6J("ngIf",!St.valid)}}function V(pt,Dt){if(1&pt&&(A.TgZ(0,"mat-form-field",11)(1,"mat-label"),A._uU(2),A.qZA(),A._UZ(3,"input",12),A.YNc(4,rt,3,2,"ng-container",13),A.qZA()),2&pt){const St=Dt.ngLet,mt=A.oxw();A.xp6(2),A.Oqu(mt.zipCodeLabel),A.xp6(1),A.Q6J("placeholder",mt.zipCodePlaceholder)("formControl",St),A.xp6(1),A.Q6J("ngIf",St.touched||St.value)}}function Pt(pt,Dt){1&pt&&A._UZ(0,"mat-icon",17)}function $t(pt,Dt){1&pt&&A._UZ(0,"mat-icon",18)}function Lt(pt,Dt){if(1&pt&&(A.ynx(0,14),A.YNc(1,Pt,1,0,"mat-icon",15),A.YNc(2,$t,1,0,"mat-icon",16),A.BQk()),2&pt){const St=A.oxw().ngLet;A.xp6(1),A.Q6J("ngIf",St.valid),A.xp6(1),A.Q6J("ngIf",!St.valid)}}function Jt(pt,Dt){if(1&pt&&(A.TgZ(0,"mat-form-field",11)(1,"mat-label"),A._uU(2),A.qZA(),A._UZ(3,"input",12),A.YNc(4,Lt,3,2,"ng-container",13),A.qZA()),2&pt){const St=Dt.ngLet,mt=A.oxw();A.xp6(2),A.Oqu(mt.cityLabel),A.xp6(1),A.Q6J("placeholder",mt.cityPlaceholder)("formControl",St),A.xp6(1),A.Q6J("ngIf",St.touched||St.value)}}let Tt=(()=>{class pt extends Ht.I{constructor(St,mt,yt,ee){super(St,"moduleShipping"),this.woltService=mt,this.dialogRef=yt,this.data=ee,this.closeIcon=lt.qq.bigCross,this.addressLabel=this.content.get("enterAddressLabelText"),this.addressPlaceholder=this.content.get("addressPlaceholderText"),this.zipCodeLabel=this.content.get("shippingZipCodeLabelText"),this.zipCodePlaceholder=this.content.get("shippingZipCodePlaceholderText"),this.cityLabel=this.content.get("shippingCityLabelText"),this.cityPlaceholder=this.content.get("shippingCityPlaceholderText"),this.closeButton=this.content.get("closeButtonText"),this.saveButton=this.content.get("saveButtonText")}ngOnInit(){var St=this;this.subscription=new t.w0,this.invalid=new y.X(!0);let mt={address:"",zipCode:"",city:""};this.data.form&&(mt={address:this.data.form.controls.address.value,zipCode:this.data.form.controls.zipCode.value,city:this.data.form.controls.city.value}),this.form=this.buildForm(mt),this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1})),this.subscription.add(this.form.valueChanges.pipe((0,O.O)(this.form.value),(0,G.b)(800)).subscribe(function(){var yt=(0,x.Z)(function*(ee){const{address:B,city:At,zipCode:st}=ee;if(!B||!At||!st)return;const Ae=St.data.form.value.date,en=St.data.form.value.time?.period?f()(St.data.form.value.time.period.substring(0,5),"HH:mm:ss").year(Ae.year()).month(Ae.month()).date(Ae.date()).add(15,"minutes").toISOString():null,In=yield St.woltService.deliveryInfo(St.contentService.getMerchantId(),B,At,st,en,!0);St.invalid.next(In.error!==U.yN.None)});return function(ee){return yt.apply(this,arguments)}}()))}ngOnDestroy(){this.subscription.unsubscribe()}buildForm(St){const mt=(0,ut.zN)(St,{updateOn:"change"});return mt.controls.address.setValidators([l.kI.required]),mt.controls.city.setValidators([l.kI.required]),mt.controls.zipCode.setValidators([l.kI.required]),mt}close(){this.dialogRef.close()}submitShippingAddress(){this.invalid.value||this.dialogRef.close(this.form.value)}static#t=this.\u0275fac=function(mt){return new(mt||pt)(A.Y36(xt._s),A.Y36(xt.Nc),A.Y36(i.hV),A.Y36(i.eJ))};static#e=this.\u0275cmp=A.Xpm({type:pt,selectors:[["app-shipping-address-dialog"]],features:[A.qOj],decls:19,vars:10,consts:[[3,"icon","border","click",4,"ngIf"],["mat-dialog-title",""],["svgIcon","location"],[3,"formGroup","ngSubmit"],["shippingForm","ngForm"],["appearance","outline",4,"ngLet"],[1,"zip-city-wrapper"],[1,"dialog-options"],["color","accent",1,"close-button",3,"click"],[1,"save-button",3,"disabled","click"],[3,"icon","border","click"],["appearance","outline"],["matInput","","type","text",3,"placeholder","formControl"],["matSuffix","",4,"ngIf"],["matSuffix",""],["class","valid","svgIcon","tick",4,"ngIf"],["class","invalid","svgIcon","cancel",4,"ngIf"],["svgIcon","tick",1,"valid"],["svgIcon","cancel",1,"invalid"]],template:function(mt,yt){1&mt&&(A.YNc(0,gt,1,2,"app-icon-button",0),A.TgZ(1,"header")(2,"h1",1),A._UZ(3,"mat-icon",2),A._uU(4,"Tilf\xf8j adresse"),A.qZA(),A.TgZ(5,"p"),A._uU(6,"Skriv den \xf8nskede adresse til levering"),A.qZA()(),A.TgZ(7,"form",3,4),A.NdJ("ngSubmit",function(){return yt.submitShippingAddress()}),A.YNc(9,J,5,4,"mat-form-field",5),A.TgZ(10,"div",6),A.YNc(11,V,5,4,"mat-form-field",5),A.YNc(12,Jt,5,4,"mat-form-field",5),A.qZA()(),A.TgZ(13,"div",7)(14,"app-text-button",8),A.NdJ("click",function(){return yt.close()}),A._uU(15),A.qZA(),A.TgZ(16,"app-text-button",9),A.NdJ("click",function(){return yt.submitShippingAddress()}),A.ALo(17,"async"),A._uU(18),A.qZA()()),2&mt&&(A.Q6J("ngIf",yt.showButton),A.xp6(7),A.Q6J("formGroup",yt.form),A.xp6(2),A.Q6J("ngLet",yt.form.controls.address),A.xp6(2),A.Q6J("ngLet",yt.form.controls.zipCode),A.xp6(1),A.Q6J("ngLet",yt.form.controls.city),A.xp6(3),A.Oqu(yt.closeButton),A.xp6(1),A.Q6J("disabled",!yt.form.valid||A.lcZ(17,8,yt.invalid)),A.xp6(2),A.hij(" ",yt.saveButton," "))},dependencies:[tt.O5,l._Y,l.Fj,l.JJ,l.JL,l.oH,l.sg,ct.h,_.Hw,j.v_,j.$V,j.nX,q.k0,i.YS,ht.h,vt.r,tt.Ov],styles:["[_nghost-%COMP%]{display:flex;position:relative;flex-direction:column;width:780px;max-width:780px;max-height:90vh;margin:-24px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:580px;max-width:580px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:90vw;min-width:90vw;max-height:calc(var(--vh, vh) * 95)}}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;right:16px;top:16px;height:40px;width:40px}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{background-color:#3c3c3b}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path{fill:#fff}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{padding:24px 64px 0 24px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:24px;line-height:34px;font-weight:700;margin:0 0 12px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:12px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#3c3c3b}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:400;line-height:22px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:auto;flex:1 1 auto;box-sizing:border-box;overflow-y:auto;padding:24px;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding:0 24px}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     mat-icon.valid path{fill:var(--primary-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]     mat-icon.invalid path{fill:var(--warn-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]:not(.mat-form-field-invalid)     .mat-form-field-outline, [_nghost-%COMP%]   form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]:not(.mat-form-field-invalid)     .mat-form-field-label{color:#8d8d8d}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .zip-city-wrapper[_ngcontent-%COMP%]{display:flex;gap:8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   .zip-city-wrapper[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;box-sizing:border-box;flex-direction:column;align-items:center;width:100%;padding:0 24px 24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex:0 0 auto;justify-self:flex-end;flex-direction:row;justify-content:space-between;padding-bottom:16px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;height:48px;width:auto}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.save-button[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:none;align-self:flex-start}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:block}}"]})}return pt})();var $=c(2459)},8470:(Je,Rt,c)=>{"use strict";c.d(Rt,{f:()=>F});var o=c(6825),e=c(7398),g=c(6093),x=c(7985),l=c(7954),i=c(7299),R=c(2802),f=c(5879);function t(rt,V){1&rt&&f._UZ(0,"app-member-bar")}function y(rt,V){if(1&rt){const Pt=f.EpF();f.ynx(0),f.TgZ(1,"app-icon-button",8),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(2);return f.KtG(Lt.openShippingMenu())}),f.qZA(),f.TgZ(2,"label",9),f._uU(3),f.qZA(),f.BQk()}if(2&rt){const Pt=f.oxw(2);f.xp6(1),f.Q6J("icon",Pt.shippingIcon),f.xp6(2),f.Oqu(Pt.shippingLabel)}}function O(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"header")(1,"div",6),f.YNc(2,y,4,2,"ng-container",0),f.qZA(),f.TgZ(3,"app-icon-button",7),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw();return f.KtG(Lt.close())}),f.qZA()()}if(2&rt){const Pt=f.oxw();f.xp6(2),f.Q6J("ngIf",!Pt.storeClosed),f.xp6(1),f.Q6J("icon",Pt.closeIcon)}}function G(rt,V){if(1&rt&&(f.TgZ(0,"a",18),f._UZ(1,"mat-icon",19),f.TgZ(2,"span",15),f._uU(3),f.qZA()()),2&rt){const Pt=f.oxw(2);f.Q6J("href",Pt.findShopUrl,f.LSH),f.xp6(3),f.Oqu(Pt.store)}}function U(rt,V){if(1&rt&&(f.TgZ(0,"div",20),f._UZ(1,"mat-icon",19),f.TgZ(2,"span",15),f._uU(3),f.qZA()()),2&rt){const Pt=f.oxw(2);f.xp6(3),f.Oqu(Pt.store)}}function lt(rt,V){1&rt&&(f.ynx(0),f._uU(1," V\xc6LG: DATO & TID "),f.BQk())}function ut(rt,V){if(1&rt&&(f.ynx(0),f._uU(1),f.ALo(2,"date"),f.BQk()),2&rt){const Pt=V.ngLet;f.xp6(1),f.AsE(" ",f.xi3(2,2,Pt.date.toDate(),"dd/MM/yy")," Kl. ",Pt.time.period," ")}}function Ht(rt,V){if(1&rt&&(f.ynx(0),f.YNc(1,ut,3,5,"ng-container",23),f.ALo(2,"async"),f.BQk()),2&rt){const Pt=f.oxw(5);f.xp6(1),f.Q6J("ngLet",f.lcZ(2,1,Pt.shipping$))}}function A(rt,V){if(1&rt&&(f.ynx(0),f._UZ(1,"mat-icon",24),f.YNc(2,lt,2,0,"ng-container",0),f.YNc(3,Ht,3,3,"ng-container",0),f.BQk()),2&rt){const Pt=V.ngLet;f.xp6(2),f.Q6J("ngIf",!Pt),f.xp6(1),f.Q6J("ngIf",Pt)}}function xt(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"a",22),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(3);return f.KtG(Lt.openShippingMenu())}),f.YNc(1,A,4,2,"ng-container",23),f.ALo(2,"async"),f.qZA()}if(2&rt){const Pt=f.oxw(3);f.xp6(1),f.Q6J("ngLet",f.lcZ(2,1,Pt.shippingValid$))}}function tt(rt,V){if(1&rt&&(f.ynx(0),f.YNc(1,xt,3,3,"a",21),f.BQk()),2&rt){const Pt=f.oxw(2);f.xp6(1),f.Q6J("ngIf",!Pt.storeClosed)}}function ct(rt,V){if(1&rt){const Pt=f.EpF();f.ynx(0),f.TgZ(1,"div",10)(2,"div",11),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw();return f.KtG(Lt.close())}),f._UZ(3,"mat-icon",12),f.TgZ(4,"label"),f._uU(5,"luk"),f.qZA()(),f.TgZ(6,"a",13),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw();return f.KtG(Lt.close())}),f._UZ(7,"mat-icon",14),f.TgZ(8,"span",15),f._uU(9,"Kundeservice"),f.qZA()(),f.YNc(10,G,4,2,"a",16),f.YNc(11,U,4,1,"div",17),f.qZA(),f.TgZ(12,"header")(13,"div",6),f.YNc(14,tt,2,1,"ng-container",0),f.qZA()(),f.BQk()}if(2&rt){const Pt=f.oxw();f.xp6(3),f.Q6J("svgIcon",Pt.closeIcon),f.xp6(3),f.Q6J("routerLink",Pt.customerServiceUrl),f.xp6(4),f.Q6J("ngIf",Pt.findShopUrl),f.xp6(1),f.Q6J("ngIf",!Pt.findShopUrl),f.xp6(3),f.Q6J("ngIf",!Pt.storeClosed)}}function _(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"a",26),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(2);return f.KtG(Lt.close())}),f._uU(1),f.ALo(2,"titlecase"),f.qZA()}if(2&rt){const Pt=V.$implicit,$t=f.oxw(2);f.Q6J("routerLink",$t.getCategory(Pt.id)),f.xp6(1),f.hij(" ",f.lcZ(2,2,Pt.name)," ")}}function j(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"li")(1,"div",25)(2,"a",26),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw();return f.KtG(Lt.close())}),f._uU(3),f.ALo(4,"titlecase"),f.qZA(),f.YNc(5,_,3,4,"a",27),f.ALo(6,"async"),f.qZA()()}if(2&rt){const Pt=f.oxw();f.xp6(2),f.Q6J("routerLink",Pt.groceries.url),f.xp6(1),f.Oqu(f.lcZ(4,3,Pt.groceries.name)),f.xp6(2),f.Q6J("ngForOf",f.lcZ(6,5,Pt.categories))}}function q(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"a",30),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(2);return f.KtG(Lt.close())}),f._uU(1),f.ALo(2,"titlecase"),f.qZA()}if(2&rt){const Pt=V.ngIf;f.Q6J("routerLink",Pt.targetUrl)("target",Pt.new?"_blank":"_self"),f.xp6(1),f.hij(" ",f.lcZ(2,3,Pt.titleText)," ")}}function ht(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"a",31),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(2);return f.KtG(Lt.close())}),f._uU(1),f.ALo(2,"titlecase"),f.qZA()}if(2&rt){const Pt=f.oxw().$implicit;f.Q6J("href",Pt.targetUrl,f.LSH)("target",Pt.new?"_blank":"_self"),f.xp6(1),f.hij(" ",f.lcZ(2,3,Pt.titleText)," ")}}function vt(rt,V){if(1&rt&&(f.ynx(0),f.YNc(1,q,3,5,"a",28),f.YNc(2,ht,3,5,"a",29),f.BQk()),2&rt){const Pt=V.$implicit,$t=f.oxw();f.xp6(1),f.Q6J("ngIf",$t.sameSite(Pt)),f.xp6(1),f.Q6J("ngIf",!$t.sameSite(Pt))}}function gt(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"a",34),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(3);return f.KtG(Lt.close())}),f._uU(1),f.qZA()}if(2&rt){const Pt=V.ngIf;f.Q6J("routerLink",Pt.targetUrl)("target",Pt.new?"_blank":"_self"),f.xp6(1),f.hij("",Pt.titleText," ")}}function zt(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"a",35),f.NdJ("click",function(){f.CHM(Pt);const Lt=f.oxw(3);return f.KtG(Lt.close())}),f._uU(1),f.qZA()}if(2&rt){const Pt=f.oxw().$implicit;f.Q6J("href",Pt.targetUrl,f.LSH)("target",Pt.new?"_blank":"_self"),f.xp6(1),f.hij("",Pt.titleText," ")}}function Ct(rt,V){if(1&rt&&(f.ynx(0),f.YNc(1,gt,2,3,"a",32),f.YNc(2,zt,2,3,"a",33),f.BQk()),2&rt){const Pt=V.$implicit,$t=f.oxw(2);f.xp6(1),f.Q6J("ngIf",$t.sameSite(Pt)),f.xp6(1),f.Q6J("ngIf",!$t.sameSite(Pt))}}const H=function(rt){return[rt]},J=function(){return[]};function z(rt,V){if(1&rt){const Pt=f.EpF();f.TgZ(0,"div",25)(1,"a",26),f.NdJ("click",function(){const Jt=f.CHM(Pt).$implicit,Tt=f.oxw();return f.KtG(Jt.showContentPage&&Tt.close())}),f._uU(2),f.ALo(3,"titlecase"),f.qZA(),f.YNc(4,Ct,3,2,"ng-container",4),f.qZA()}if(2&rt){const Pt=V.$implicit,$t=f.oxw();f.xp6(1),f.Q6J("routerLink",Pt.showContentPage?f.VKq(5,H,$t.contentUrl+Pt.title):f.DdM(7,J)),f.xp6(1),f.hij(" ",f.lcZ(3,3,Pt.title)," "),f.xp6(2),f.Q6J("ngForOf",Pt.pages)}}let F=(()=>{class rt extends R.I{constructor(Pt,$t,Lt,Jt,Tt,$,pt){super(Pt,l.NS.header),this.mobileService=$t,this.dialogService=Lt,this.categoryService=Jt,this.shippingService=Tt,this.themeService=$,this.elRef=pt,this.contentUrl=`${i.environment.urls.content.merchant_content}/`,this.closeIcon=x.qq.bigCross,this.shippingIcon=x.qq.shipping,this.productUrl=`/${i.environment.urls.products}`,this.customerServiceUrl=`/${i.environment.urls.content.customer_service}`,this.show=!1,this.storeClosed=this.contentService.getStoreClosed(),this.shippingLabel=this.content.get("shippingLabelText"),this.mainMenuTitle=this.content.get("mainMenuTitleText"),this.groceriesTitle=this.content.get("groceriesTitleText"),this.categoriesTitle=this.content.get("categoriesTitleText"),this.groceries={url:i.environment.urls.products,name:this.content.get("groceries")};const Dt=this.contentService.getMerchantContent();this.links=[],this.subNavigations=[];for(const mt of Dt)switch(mt.type){case"simple":{const yt=this.contentService.getContentLink(mt);this.links.push(yt);break}case"link":this.links.push(mt);break;case"burger":this.links.push(...mt.pages);break;case"subNav":this.subNavigations.push(mt)}this.installAppLabel=this.contentService.getSharedContent(!0).get("installApplicationLabelText"),this.isDagrofa=this.contentService.isDagrofa,this.contentService.getMerchant().type===g.Pc.MENY&&(this.findShopUrl="https://meny.dk/find-butik"),this.store=this.contentService.getStoreAddress(),this.isOnline=this.themeService.isOnline}ngOnInit(){this.enableMembers=this.contentService.getMerchant().enableMembers,this.title=this.mainMenuTitle,this.categories=this.categoryService.getFlat().pipe((0,e.U)(Pt=>Pt.filter($t=>!$t.hidden))),this.selectedCategories=this.categoryService.selected,this.shipping$=this.shippingService.getShipping(),this.shippingValid$=this.shippingService.getShippingValid()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openShippingMenu(){this.dialogService.openShippingDialog()}getCategory(Pt){return this.categoryService.getCategoryUrl(Pt)}close(){this.mobileService.setOverlay(!1)}sameSite(Pt){return this.contentService.sameSite(Pt)}static#t=this.\u0275fac=function($t){return new($t||rt)(f.Y36(l._s),f.Y36(l.Wf),f.Y36(l.xA),f.Y36(l.HE),f.Y36(l.Nk),f.Y36(l.fY),f.Y36(f.SBq))};static#e=this.\u0275cmp=f.Xpm({type:rt,selectors:[["app-mobile-menu"]],inputs:{show:"show"},features:[f.qOj],decls:13,vars:9,consts:[[4,"ngIf"],[1,"menu"],[1,"title","line"],["id","header"],[4,"ngFor","ngForOf"],["class","sub-navigation line",4,"ngFor","ngForOf"],[1,"shipping"],[3,"icon","click"],["id","menu",3,"icon","click"],["for","menu"],[1,"controls"],[1,"close",3,"click"],[3,"svgIcon"],[1,"store",3,"routerLink","click"],["svgIcon","support"],[1,"notranslate","label"],["target","_blank","class","store",3,"href",4,"ngIf"],["target","_blank","class","store",4,"ngIf"],["target","_blank",1,"store",3,"href"],["svgIcon","location"],["target","_blank",1,"store"],["class","unstyled-button shipping",3,"click",4,"ngIf"],[1,"unstyled-button","shipping",3,"click"],[4,"ngLet"],["svgIcon","shop"],[1,"sub-navigation","line"],[3,"routerLink","click"],[3,"routerLink","click",4,"ngFor","ngForOf"],["class","line","routerLinkActive","active",3,"routerLink","target","click",4,"ngIf"],["class","line",3,"href","target","click",4,"ngIf"],["routerLinkActive","active",1,"line",3,"routerLink","target","click"],[1,"line",3,"href","target","click"],["class","nav small samesite",3,"routerLink","target","click",4,"ngIf"],["class","nav small",3,"href","target","click",4,"ngIf"],[1,"nav","small","samesite",3,"routerLink","target","click"],[1,"nav","small",3,"href","target","click"]],template:function($t,Lt){1&$t&&(f.YNc(0,t,1,0,"app-member-bar",0),f.YNc(1,O,4,2,"header",0),f.YNc(2,ct,15,5,"ng-container",0),f.TgZ(3,"div",1)(4,"div",2)(5,"h3",3),f._uU(6),f.ALo(7,"titlecase"),f.qZA()(),f.TgZ(8,"ul"),f.YNc(9,j,7,7,"li",0),f.TgZ(10,"li"),f.YNc(11,vt,3,2,"ng-container",4),f.YNc(12,z,5,8,"div",5),f.qZA()()()),2&$t&&(f.Q6J("ngIf",Lt.enableMembers),f.xp6(1),f.Q6J("ngIf",!Lt.isDagrofa),f.xp6(1),f.Q6J("ngIf",Lt.isDagrofa),f.xp6(4),f.Oqu(f.lcZ(7,7,Lt.title)),f.xp6(3),f.Q6J("ngIf",!Lt.isOnline),f.xp6(2),f.Q6J("ngForOf",Lt.links),f.xp6(1),f.Q6J("ngForOf",Lt.subNavigations))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;background-color:#fff;height:100%}@media only screen and (min-width: 1024px){[_nghost-%COMP%]{width:440px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:340px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:80vw}}.min-kobmand-theme[_nghost-%COMP%], .spar-theme[_nghost-%COMP%], .meny-theme[_nghost-%COMP%]{text-transform:uppercase}.min-kobmand-theme[_nghost-%COMP%]   app-member-bar[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   app-member-bar[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   app-member-bar[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff}.min-kobmand-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;padding:16px;background-color:var(--primary-color);color:#fff;font-weight:700;font-size:10px;letter-spacing:unset}.min-kobmand-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px}.min-kobmand-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:30px;width:30px;margin-top:-4px}.min-kobmand-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path, .spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path, .meny-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#fff}.min-kobmand-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:inherit}.min-kobmand-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px}.min-kobmand-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]{justify-content:flex-end;align-items:center;height:68px;padding:0 16px;background-color:#3c3c3b;color:#fff;font-weight:700;font-size:14px;line-height:14px}.min-kobmand-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:flex;align-items:center}.min-kobmand-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-right:11px}.min-kobmand-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path, .spar-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path, .meny-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#fff}.min-kobmand-theme[_nghost-%COMP%]   .title[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .title[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{display:none}.min-kobmand-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{font-family:var(--font);font-style:normal;font-weight:700;font-size:18px;line-height:22px}.min-kobmand-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child), .spar-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child), .meny-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child){border-top:1px solid #d1d9dc;margin:0 -20px;width:unset;padding:0 20px}.min-kobmand-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .meny-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:flex;align-items:center}.min-kobmand-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after, .spar-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after, .meny-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:after{content:"\\a0";display:inline-block;flex:0 0 auto;width:12px;height:12px;margin-left:auto;-webkit-mask:url(/assets/icons/right_expand_arrow.svg) no-repeat 50% 50%;mask:url(/assets/icons/right_expand_arrow.svg) no-repeat 50% 50%;background-color:#000}.min-kobmand-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child), .spar-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child), .meny-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child){background-color:var(--background-color)}.spar-theme[_nghost-%COMP%]{background-color:#f1eee2;text-transform:none}.spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]{background-color:#59193c}.spar-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]{background-color:#3e122a}.spar-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{height:60px}.clpartyservice-theme[_nghost-%COMP%]{background-color:#000;color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#000}.clpartyservice-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{border:unset;background:unset}.clpartyservice-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{border-color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child){border-top-color:var(--primary-color);padding-left:20px}.clpartyservice-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{border-bottom-color:var(--primary-color)}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:50px;height:50px}[_nghost-%COMP%]   app-member-bar[_ngcontent-%COMP%]{height:48px;width:100%}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding:8px 12px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{margin-right:8px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{text-decoration:underline;font-size:.8em}[_nghost-%COMP%]   header[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]{margin-left:8px}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:.9em;font-weight:600}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:inherit;font-weight:inherit;margin:0}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{border-top:1px solid #d1d9dc;border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{background-color:#ebf1f3}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{width:100%;height:100%;color:inherit;text-decoration:none;font-size:inherit;font-weight:inherit}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:auto}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .sub-navigation[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(:first-child){border-top:1px dotted #d1d9dc;padding-left:20px}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%]   .line[_ngcontent-%COMP%]{box-sizing:border-box;height:46px;line-height:46px;padding:0 20px;border-bottom:1px solid #d1d9dc}'],data:{animation:[(0,o.X$)("installAnimation",[(0,o.eR)(":enter",[(0,o.oB)({width:0}),(0,o.jt)("800ms ease-out",(0,o.oB)({width:"*"}))]),(0,o.eR)(":leave",[(0,o.oB)({width:"*"}),(0,o.jt)("800ms ease-in",(0,o.oB)({width:0}))])])]}})}return rt})()},2459:(Je,Rt,c)=>{"use strict";c.d(Rt,{k:()=>ue});var o=c(9671),e=c(6223),g=c(6676),l=c(7394),i=c(5619),R=c(2572),f=c(708),t=c(3997),y=c(7921),O=c(2181),G=c(3620),U=c(8180),lt=c(836),ut=c(6093),Ht=c(7985),A=c(8712),xt=c(125),tt=c(7299),ct=c(2802),_=c(5879),j=c(9259),q=c(2365),ht=c(7954),vt=c(7592);function gt(Ft,be){if(1&Ft){const qt=_.EpF();_.TgZ(0,"app-icon-button",6),_.NdJ("click",function(){_.CHM(qt);const Me=_.oxw();return _.KtG(Me.close())}),_.qZA()}if(2&Ft){const qt=_.oxw();_.Q6J("icon",qt.closeIcon)("border",!1)}}function zt(Ft,be){if(1&Ft){const qt=_.EpF();_.ynx(0),_.TgZ(1,"div",20)(2,"label",21),_._uU(3),_.qZA(),_.TgZ(4,"app-event-dropdown",22),_.NdJ("selectedEventStoreOptionChange",function(Me){_.CHM(qt);const _n=_.oxw(2);return _.KtG(_n.selectEvent(Me))}),_.ALo(5,"async"),_.qZA()(),_.BQk()}if(2&Ft){const qt=_.oxw(2);let Te;_.xp6(3),_.Oqu(qt.eventOptionsLabel),_.xp6(1),_.Q6J("options",qt.eventStores)("initSelection",null==(Te=_.lcZ(5,3,qt.selectedEventStore))?null:Te.StoreId)}}function Ct(Ft,be){if(1&Ft){const qt=_.EpF();_.TgZ(0,"div",23)(1,"label",24),_._uU(2,"Tidspunkt for levering"),_.qZA(),_.TgZ(3,"mat-radio-group",25),_.NdJ("change",function(Me){_.CHM(qt);const _n=_.oxw(2);return _.KtG(_n.toggleFastestPossible(Me.value))}),_.TgZ(4,"mat-radio-button",26)(5,"div",27),_._UZ(6,"mat-icon",28),_.TgZ(7,"div",29)(8,"span",30),_._uU(9,"F\xf8rst mulige tid"),_.qZA()()()(),_.TgZ(10,"mat-radio-button",26)(11,"div",27),_._UZ(12,"mat-icon",31),_.TgZ(13,"div",29)(14,"span",30),_._uU(15,"Senere tidspunkt"),_.qZA(),_.TgZ(16,"span",32),_._uU(17,"V\xe6lg tidspunkt"),_.qZA()()()()()()}if(2&Ft){const qt=_.oxw(2);_.xp6(4),_.Q6J("value",1)("checked",!0===qt.form.value.fastestPossible),_.xp6(6),_.Q6J("value",2)("checked",!1===qt.form.value.fastestPossible)}}function H(Ft,be){if(1&Ft&&(_._UZ(0,"app-date-picker",33),_.ALo(1,"async"),_.ALo(2,"async")),2&Ft){const qt=_.oxw(2);_.Q6J("control",qt.form.controls.date)("name",qt.dateLabel)("min",_.lcZ(1,5,qt.shippingDayThreshold))("max",qt.form.controls.isWolt.value&&qt.woltDatepickerMax)("filter",_.lcZ(2,7,qt.filter))}}function J(Ft,be){if(1&Ft&&(_.TgZ(0,"span",42),_._uU(1),_.ALo(2,"uppercase"),_.ALo(3,"date"),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,_.xi3(3,4,null==qt.form.controls.date.value?null:qt.form.controls.date.value.toDate(),"fullDate"))," kl. ",null==qt.form.controls.time.value?null:qt.form.controls.time.value.period," ")}}function z(Ft,be){if(1&Ft&&(_.TgZ(0,"span",43),_._uU(1),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(1),_.Oqu(qt.noFastestPossibleText)}}function F(Ft,be){if(1&Ft&&(_.TgZ(0,"span"),_._uU(1),_.ALo(2,"uppercase"),_.ALo(3,"date"),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(1),_.AsE(" ",_.lcZ(2,2,_.xi3(3,4,null==qt.form.controls.date.value?null:qt.form.controls.date.value.toDate(),"fullDate"))," KL. ",null==qt.form.controls.time.value?null:qt.form.controls.time.value.period," ")}}function rt(Ft,be){if(1&Ft&&(_.TgZ(0,"span",44),_._uU(1),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(1),_.Oqu(qt.noFastestPossibleText)}}function V(Ft,be){if(1&Ft){const qt=_.EpF();_.TgZ(0,"div",34)(1,"label"),_._uU(2,"Leveringstidspunkt"),_.qZA(),_.TgZ(3,"div",35),_.YNc(4,J,4,7,"span",36),_.YNc(5,z,2,1,"span",37),_.TgZ(6,"button",38),_.NdJ("click",function(){_.CHM(qt);const Me=_.oxw(2);return _.KtG(Me.toggleFastestPossible(2))}),_.TgZ(7,"span"),_._UZ(8,"mat-icon",39),_._uU(9,"Rediger tidspunkt"),_.qZA()()(),_.TgZ(10,"div",40)(11,"button",38),_.NdJ("click",function(){_.CHM(qt);const Me=_.oxw(2);return _.KtG(Me.toggleFastestPossible(2))}),_.YNc(12,F,4,7,"span",10),_.YNc(13,rt,2,1,"span",41),_.TgZ(14,"span"),_._uU(15,"Rediger tidspunkt"),_._UZ(16,"mat-icon",39),_.qZA()()()()}if(2&Ft){const qt=_.oxw(2);_.xp6(4),_.Q6J("ngIf",!qt.noFastestPossible),_.xp6(1),_.Q6J("ngIf",qt.noFastestPossible),_.xp6(7),_.Q6J("ngIf",!qt.noFastestPossible),_.xp6(1),_.Q6J("ngIf",qt.noFastestPossible)}}function Pt(Ft,be){if(1&Ft&&(_.TgZ(0,"span",51),_._uU(1),_.qZA()),2&Ft){const qt=be.ngIf,Te=_.oxw(3);_.xp6(1),_.AsE("",Te.foundAddressLabel," ",qt,"")}}function $t(Ft,be){if(1&Ft&&_._UZ(0,"app-price",55),2&Ft){const qt=_.oxw().ngLet;_.Q6J("value",qt)}}function Lt(Ft,be){if(1&Ft&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&Ft){const qt=_.oxw(9);_.xp6(1),_.Oqu(qt.noPriceCalculatedWarning)}}function Jt(Ft,be){1&Ft&&(_.TgZ(0,"span"),_._UZ(1,"img",56),_.qZA())}function Tt(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,$t,1,1,"app-price",54),_.YNc(2,Lt,2,1,"span",10),_.YNc(3,Jt,2,0,"span",10),_.BQk()),2&Ft){const qt=be.ngLet,Te=_.oxw(8);_.xp6(1),_.Q6J("ngIf",null!=qt),_.xp6(1),_.Q6J("ngIf",null==qt&&!Te.shippingPriceLoading),_.xp6(1),_.Q6J("ngIf",null==qt&&Te.shippingPriceLoading)}}function $(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,Tt,4,3,"ng-container",50),_.BQk()),2&Ft){const qt=_.oxw(7);_.xp6(1),_.Q6J("ngLet",qt.form.controls.price.value)}}function pt(Ft,be){if(1&Ft&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&Ft){const qt=_.oxw(7);_.xp6(1),_.Oqu(qt.addressNotFoundWarning)}}function Dt(Ft,be){if(1&Ft&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&Ft){const qt=_.oxw(7);_.xp6(1),_.Oqu(qt.addressTooFarAwayWarning)}}function St(Ft,be){if(1&Ft&&(_.TgZ(0,"span"),_._uU(1),_.qZA()),2&Ft){const qt=_.oxw(7);_.xp6(1),_.Oqu(qt.addressInvalidWarning)}}function mt(Ft,be){if(1&Ft&&(_.TgZ(0,"span"),_._uU(1),_.ALo(2,"missingPrice"),_.qZA()),2&Ft){const qt=_.oxw(2).ngLet,Te=_.oxw(5);_.xp6(1),_.Oqu(_.xi3(2,1,Te.missingBasketTotalWarning,qt))}}function yt(Ft,be){if(1&Ft&&(_.TgZ(0,"div",53)(1,"span"),_._uU(2,"Leveringspris:"),_.qZA(),_.YNc(3,$,2,1,"ng-container",10),_.YNc(4,pt,2,1,"span",10),_.YNc(5,Dt,2,1,"span",10),_.YNc(6,St,2,1,"span",10),_.YNc(7,mt,3,4,"span",10),_.qZA()),2&Ft){const qt=be.ngLet,Te=_.oxw().ngLet,Me=_.oxw().ngLet,_n=_.oxw().ngLet;_.xp6(3),_.Q6J("ngIf",!Me&&!qt&&!_n),_.xp6(1),_.Q6J("ngIf",Me),_.xp6(1),_.Q6J("ngIf",qt),_.xp6(1),_.Q6J("ngIf",_n),_.xp6(1),_.Q6J("ngIf",Te>0)}}function ee(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,yt,8,5,"div",52),_.ALo(2,"async"),_.BQk()),2&Ft){const qt=_.oxw(5);_.xp6(1),_.Q6J("ngLet",_.lcZ(2,1,qt.addressTooFarAway))}}function B(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,ee,3,3,"ng-container",50),_.ALo(2,"async"),_.BQk()),2&Ft){const qt=_.oxw(4);_.xp6(1),_.Q6J("ngLet",_.lcZ(2,1,qt.missingBasketTotal))}}function At(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,B,3,3,"ng-container",50),_.ALo(2,"async"),_.BQk()),2&Ft){const qt=_.oxw(3);_.xp6(1),_.Q6J("ngLet",_.lcZ(2,1,qt.addressNotFound))}}function st(Ft,be){if(1&Ft&&(_.ynx(0),_.TgZ(1,"div",45),_._UZ(2,"app-text-input",46),_.qZA(),_._UZ(3,"app-text-input",47)(4,"app-text-input",48),_.YNc(5,Pt,2,2,"span",49),_.ALo(6,"async"),_.YNc(7,At,3,3,"ng-container",50),_.ALo(8,"async"),_.BQk()),2&Ft){_.oxw();const qt=_.MAs(1),Te=_.oxw();_.xp6(2),_.Q6J("control",Te.form.controls.address)("directive",qt)("placeholder",Te.addressPlaceholder)("name",Te.addressLabel),_.xp6(1),_.Q6J("control",Te.form.controls.zipCode)("directive",qt)("placeholder",Te.zipCodePlaceholder)("name",Te.zipCodeLabel),_.xp6(1),_.Q6J("control",Te.form.controls.city)("directive",qt)("placeholder",Te.cityPlaceholder)("name",Te.cityLabel),_.xp6(1),_.Q6J("ngIf",_.lcZ(6,14,Te.foundAddress)),_.xp6(2),_.Q6J("ngLet",_.lcZ(8,16,Te.addressInvalid))}}function ie(Ft,be){1&Ft&&(_.TgZ(0,"div",57),_._UZ(1,"mat-spinner"),_.qZA())}function Ae(Ft,be){if(1&Ft){const qt=_.EpF();_.TgZ(0,"app-checkbox-button",65),_.NdJ("checkedChange",function(Me){const ce=_.CHM(qt).$implicit,ye=_.oxw(6);return _.KtG(ye.setInterval(Me,ce))}),_._uU(1),_.qZA()}if(2&Ft){const qt=be.$implicit,Te=_.oxw().ngLet;_.Q6J("id",qt.id)("disabled",null==qt?null:qt.disabled)("checked",Te&&Te.id===qt.id),_.xp6(1),_.hij(" ",qt.period," ")}}function en(Ft,be){if(1&Ft&&(_.TgZ(0,"div",63),_.YNc(1,Ae,2,4,"app-checkbox-button",64),_.qZA()),2&Ft){const qt=_.oxw().$implicit;_.xp6(1),_.Q6J("ngForOf",qt.intervals)}}function In(Ft,be){if(1&Ft&&(_.ynx(0),_.TgZ(1,"h2"),_._uU(2),_.qZA(),_.YNc(3,en,2,1,"div",62),_.BQk()),2&Ft){const qt=be.$implicit,Te=_.oxw(4);_.xp6(2),_.Oqu(qt.groupName),_.xp6(1),_.Q6J("ngLet",Te.form.controls.time.value)}}function Ve(Ft,be){if(1&Ft&&(_.TgZ(0,"section",60),_.YNc(1,In,4,2,"ng-container",61),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(1),_.Q6J("ngForOf",qt.shippingDay.intervalGroups)}}function jt(Ft,be){if(1&Ft){const qt=_.EpF();_.TgZ(0,"app-shipping-interval-select",68),_.NdJ("selectedIntervalOptionChange",function(Me){_.CHM(qt);const _n=_.oxw(4);return _.KtG(_n.setInterval(!0,Me))}),_.qZA()}if(2&Ft){const qt=be.ngLet,Te=_.oxw(4);_.Q6J("shippingDay",Te.shippingDay)("init",null==qt?null:qt.id)("isWolt",Te.form.controls.isWolt.value)}}function ft(Ft,be){if(1&Ft&&(_.TgZ(0,"section",66)(1,"h2"),_._uU(2),_.qZA(),_.YNc(3,jt,1,3,"app-shipping-interval-select",67),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(2),_.Oqu(qt.shortDeliveryTitle),_.xp6(1),_.Q6J("ngLet",qt.form.controls.time.value)}}function Gt(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,Ve,2,1,"section",58),_.YNc(2,ft,4,2,"section",59),_.BQk()),2&Ft){const qt=_.oxw(2);_.xp6(1),_.Q6J("ngIf",qt.shippingDay.intervalGroups.length>0&&!qt.isGenerateIntervals),_.xp6(1),_.Q6J("ngIf",qt.shippingDay.intervalGroups.length>0&&qt.isGenerateIntervals)}}function Ce(Ft,be){if(1&Ft&&(_._UZ(0,"app-price",75),_.ALo(1,"displayCurrency")),2&Ft){const qt=_.oxw(2).ngLet,Te=_.oxw(4);_.Q6J("value",qt)("currency",_.lcZ(1,2,Te.currency))}}function ve(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,Ce,2,4,"app-price",74),_.BQk()),2&Ft){const qt=be.ngLet,Te=_.oxw().ngLet;_.xp6(1),_.Q6J("ngIf",null!=Te&&!qt)}}function me(Ft,be){if(1&Ft&&(_.ynx(0),_.YNc(1,ve,2,1,"ng-container",50),_.ALo(2,"async"),_.BQk()),2&Ft){const qt=_.oxw(4);_.xp6(1),_.Q6J("ngLet",_.lcZ(2,1,qt.addressInvalid))}}function De(Ft,be){if(1&Ft&&(_.TgZ(0,"div",72),_._UZ(1,"mat-icon",73),_.TgZ(2,"span"),_._uU(3),_.qZA(),_.YNc(4,me,3,3,"ng-container",50),_.qZA()),2&Ft){const qt=_.oxw(3);_.xp6(3),_.lnq("",qt.form.controls.address.value,", ",qt.form.controls.zipCode.value," ",qt.form.controls.city.value,""),_.xp6(1),_.Q6J("ngLet",qt.form.controls.price.value)}}function tn(Ft,be){1&Ft&&(_.TgZ(0,"span"),_._uU(1,"Tilf\xf8j adresse"),_.qZA())}function gn(Ft,be){1&Ft&&(_.TgZ(0,"span"),_._uU(1,"Rediger adresse"),_.qZA())}function Xe(Ft,be){if(1&Ft){const qt=_.EpF();_.ynx(0),_.TgZ(1,"h2"),_._uU(2,"Adresse"),_.qZA(),_.YNc(3,De,5,4,"div",69),_.TgZ(4,"div",70),_.NdJ("click",function(){_.CHM(qt);const Me=_.oxw(2);return _.KtG(Me.openEditAddressDialog())}),_._UZ(5,"mat-icon",71),_.YNc(6,tn,2,0,"span",10),_.YNc(7,gn,2,0,"span",10),_.qZA(),_.BQk()}if(2&Ft){const qt=_.oxw(2);_.xp6(3),_.Q6J("ngIf",qt.form.controls.address.value),_.xp6(3),_.Q6J("ngIf",!qt.form.controls.address.value),_.xp6(1),_.Q6J("ngIf",qt.form.controls.address.value)}}function rn(Ft,be){if(1&Ft){const qt=_.EpF();_.TgZ(0,"form",7,8),_.NdJ("ngSubmit",function(){_.CHM(qt);const Me=_.oxw();return _.KtG(Me.submitShipping())}),_.TgZ(2,"section",9),_.YNc(3,zt,6,5,"ng-container",10),_.TgZ(4,"div",11)(5,"div",12)(6,"label",13),_._uU(7),_.qZA(),_.TgZ(8,"app-shipping-dropdown",14),_.NdJ("selectedShippingOptionChange",function(Me){_.CHM(qt);const _n=_.oxw();return _.KtG(_n.selectShipping(Me))}),_.ALo(9,"async"),_.qZA()(),_.YNc(10,Ct,18,4,"div",15),_.YNc(11,H,3,9,"app-date-picker",16),_.qZA(),_.YNc(12,V,17,4,"div",17),_.YNc(13,st,9,18,"ng-container",10),_.YNc(14,ie,2,0,"div",18),_.qZA(),_.YNc(15,Gt,3,2,"ng-container",10),_.TgZ(16,"section",19),_.YNc(17,Xe,8,3,"ng-container",10),_.qZA()()}if(2&Ft){const qt=be.ngLet,Te=_.oxw();let Me;_.Q6J("formGroup",Te.form),_.xp6(3),_.Q6J("ngIf",!Te.loading&&Te.eventStores),_.xp6(4),_.Oqu(Te.shippingOptionsLabel),_.xp6(1),_.Q6J("options",Te.eventStores?Te.eventShippingOptions:Te.shippingOptions)("optionsPlaceholder",Te.shippingOptionsPlaceholder)("initShipping",qt)("disabled",Te.eventStores&&!(null!=(Me=_.lcZ(9,14,Te.selectedEventStore))&&Me.StoreId)),_.xp6(2),_.Q6J("ngIf",Te.form.controls.isWolt.value),_.xp6(1),_.Q6J("ngIf",!Te.form.controls.isWolt.value||!0!==Te.form.value.fastestPossible),_.xp6(1),_.Q6J("ngIf",Te.form.value.isWolt&&!0===Te.form.value.fastestPossible),_.xp6(1),_.Q6J("ngIf",!Te.form.controls.isWolt.value&&!Te.loading&&!Te.loadingIntervals&&qt&&qt.info.priceModel===Te.priceGroup),_.xp6(1),_.Q6J("ngIf",Te.loading||Te.loadingIntervals),_.xp6(1),_.Q6J("ngIf",(!Te.form.controls.isWolt.value||!0!==Te.form.value.fastestPossible)&&!Te.loading&&!Te.loadingIntervals&&Te.shippingDay),_.xp6(2),_.Q6J("ngIf",!Te.loading&&!Te.loadingIntervals&&qt&&qt.info.priceModel===Te.priceGroup)}}var re=function(Ft){return Ft[Ft.fastest=1]="fastest",Ft[Ft.future=2]="future",Ft}(re||{});let ue=(()=>{class Ft extends ct.I{constructor(qt,Te,Me,_n,ce,ye,Xt,on,oe,$e,te,Se){super(qt,"moduleShipping"),this.shippingService=Te,this.shippingQuery=Me,this.basketQuery=_n,this.basketService=ce,this.authService=ye,this.dialogRef=Xt,this.cdr=on,this.themeService=oe,this.elRef=$e,this.dialogService=te,this.mParticle=Se,this.subscription=new l.w0,this.currency=tt.environment.i18n.currency,this.closeIcon=Ht.qq.bigCross,this.showButton=!1,this.valuesLoaded=!1,this.shippingPriceLoading=!1,this.priceGroup=ut.v4.priceGroups,this.hideOtherShippings=!0,this.loadingIntervals=0,this.woltFastestId=0,this.noFastestPossible=!1,this.title=this.content.get("titleText"),this.subtitle=this.content.get("descriptionText"),this.shippingOptionsLabel=this.content.get("pickupOrDeliveryLabelText"),this.eventOptionsLabel=this.content.get("eventOptionsLabelText")||"Skriv butiksnavn og v\xe6lg din butik",this.shippingOptionsPlaceholder=this.content.get("shippingOptionsPlaceholderText")||"V\xe6lg udleveringsmetode",this.dateLabel=this.content.get("chooseDateLabelText"),this.woltDescription=this.content.get("woltDescriptionContent")||"Udbringning sker via Wolt, pris og tidspunkt oplyses efter valg af produkter",this.addressLabel=this.content.get("enterAddressLabelText"),this.addressPlaceholder=this.content.get("addressPlaceholderText"),this.zipCodeLabel=this.content.get("shippingZipCodeLabelText"),this.zipCodePlaceholder=this.content.get("shippingZipCodePlaceholderText"),this.cityLabel=this.content.get("shippingCityLabelText"),this.cityPlaceholder=this.content.get("shippingCityPlaceholderText"),this.addressNotFoundWarning=this.content.get("addressNotFoundText"),this.addressTooFarAwayWarning=this.content.get("addressTooFarAwayText"),this.addressInvalidWarning=this.content.get("addressInvalidText")||"Ugyldig adresse",this.missingBasketTotalWarning=this.content.get("missingBasketTotalText")||"Du mangler at k\xf8be for {price} kr. for at f\xe5 leveret med den valgte udlevering",this.foundAddressLabel=this.content.get("foundAddressLabelText"),this.noPriceCalculatedWarning=this.content.get("noPriceCalculatedText"),this.shortDeliveryTitle=this.content.get("shortDeliveryTitleText")||"V\xe6lg tidspunkt",this.closeButton=this.content.get("closeButtonText"),this.saveButton=this.content.get("saveButtonText"),this.noFastestPossibleText=this.content.get("noFastestPossibleText")||"Der er ingen tilg\xe6ngelige dage til denne levering",this.noShippingNoteText="OBS: \xc8t eller flere af dine varer i din kurv g\xf8r, at du ikke kan gennemf\xf8re din bestilling i \xe9n bestilling. Du er muligvis n\xf8dt til at foretage flere bestillinger, for at k\xf8be alt i din kurv. Pr\xf8v at slette et produkt fra din kurv og se, om du kan v\xe6lge afhentning eller levering derefter.";const Ke=this.contentService.get(A.NS.eventStore);this.contentService.isEventShop&&(this.eventStores=Ke.get("eventStores"),this.eventStores=this.eventStores.filter(Oe=>!Oe.Excepted),this.eventStores.sort((Oe,Qe)=>Oe.StoreName.localeCompare(Qe.StoreName,"da-DK")))}ngOnInit(){var qt=this;this.form=this.shippingService.createForm(this.shippingQuery.shipping),this.woltFastestIntervalSubject=new i.X(void 0);const Me=this.basketQuery.getProductLines().reduce((ce,ye)=>{const Xt=this.basketService.getProduct(ye);if(Xt&&Xt.shippings?.length){const on=[...Xt.shippings.map(te=>te.shippingId)],oe=[...ce];ce=oe?.length>0?on.filter(te=>oe.includes(te)):on}return ce},[]);if(this.shippingOptions=this.shippingService.getShippingOptions(),this.hideOtherShippings&&Me?.length&&(this.shippingOptions=this.shippingOptions.filter(ce=>Me.includes(ce.id))),this.selectedShipping=new i.X(void 0),this.shippingDay=void 0,this.shippingDayThreshold=new i.X(void 0),this.filter=new i.X(void 0),this.addressNotFound=this.shippingService.getAddressNotFound(),this.addressTooFarAway=this.shippingService.getAddressTooFarAway(),this.addressInvalid=this.shippingService.getAddressInvalid(),this.foundAddress=this.shippingService.getFoundAddress(),this.productDeliveryLimits=this.basketQuery.getProductLines().reduce((ce,ye)=>{const Xt=this.basketService.getProduct(ye);return Xt&&Xt.productDeliveryLimit&&ce.push(Xt.productDeliveryLimit),ce},[]),this.eventStores&&(this.selectedEventStore=this.shippingQuery.selectEventStore$),Me?.length&&!Me.find(ce=>ce===this.form.controls.shippingType.value)){const ce=Me.find(ye=>this.shippingOptions.find(Xt=>Xt.id===ye));ce&&this.form.controls.shippingType.setValue(ce)}this.selectShipping(this.form.controls.shippingType.value).then(()=>{this.updateShippingDay(this.form.value.date,this.selectedShipping.value)}),this.subscription.add(this.form.controls.isWolt.valueChanges.subscribe(ce=>{ce&&this.toggleFastestPossible(this.form.value.fastestPossible?re.fastest:re.future)})),this.subscription.add((0,R.a)([this.form.controls.isWolt.valueChanges,this.form.controls.fastestPossible.valueChanges]).subscribe(([ce,ye])=>{this.form.controls.date.setValidators(ce&&ye?void 0:e.kI.required)})),this.subscription.add(this.dialogRef.afterOpened().subscribe(()=>{this.showButton=!0})),this.subscription.add(this.dialogRef.beforeClosed().subscribe(()=>{this.showButton=!1})),this.subscription.add((0,R.a)([this.form.controls.date.valueChanges,this.selectedShipping]).pipe((0,t.x)((ce,ye)=>!(!ce[0]?.isSame(ye[0],"day")||ce[1]?.id!==ye[1]?.id))).subscribe(function(){var ce=(0,o.Z)(function*([ye,Xt]){qt.valuesLoaded&&qt.form.controls.time.setValue(void 0),qt.updateShippingDay(ye,Xt)});return function(ye){return ce.apply(this,arguments)}}())),this.subscription.add((0,R.a)([this.form.controls.address.valueChanges,this.form.controls.zipCode.valueChanges,this.form.controls.city.valueChanges,this.form.controls.time.valueChanges.pipe((0,y.O)(this.form.controls.time.value)),this.selectedShipping.pipe((0,O.h)(ce=>void 0!==ce))]).pipe((0,G.b)(500)).subscribe(function(){var ce=(0,o.Z)(function*([ye,Xt,on,oe,$e]){qt.addressNotFound.next(!1),qt.addressTooFarAway.next(!1),qt.addressInvalid.next(!1),qt.foundAddress.next(void 0);const te=qt.basketQuery.getLinesTotal();qt.shippingPriceLoading=!0,qt.shippingService.calculateShippingPrice(te,ye,on,Xt,qt.form).then(()=>{qt.shippingPriceLoading=!1})});return function(ye){return ce.apply(this,arguments)}}())),this.mParticle?.deliveryMethodOpen();const _n=this.authService.member.getValue();if(_n){const ce=this.authService.hasAssistant(_n),{address:ye,zip:Xt,city:on,lockAddress:oe}=this.authService.getCustomerDetails(_n);if(ye&&this.form.controls.address.setValue(ye),Xt&&this.form.controls.zipCode.setValue(Xt),on&&this.form.controls.city.setValue(on),oe||ce)return ye&&this.form.controls.address.disable(),Xt&&this.form.controls.zipCode.disable(),void(on&&this.form.controls.city.disable())}this.form.controls.address.enable(),this.form.controls.zipCode.enable(),this.form.controls.city.enable()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.basketService.calculateBasket(),this.subscription.unsubscribe()}selectShipping(qt){var Te=this;return(0,o.Z)(function*(){if(!qt||Te.eventStores&&!Te.eventShippingOptions?.find(ce=>ce.id===qt))return Te.form.controls.shippingType.setValue(void 0),Te.selectedShipping.next(void 0),Te.shippingDay=void 0,Te.shippingDayThreshold.next(void 0),Te.filter.next(void 0),Te.addressNotFound.next(!1),Te.addressTooFarAway.next(!1),Te.addressInvalid.next(!1),void Te.form.controls.date.disable();if(Te.selectedShipping.value&&qt===Te.form.controls.shippingType.value&&!Te.loading||(Te.loading=!0,Te.form.controls.date.disable(),yield Te.shippingService.loadShipping(qt,!0),!Te.loading))return;Te.loading=!1,Te.form.controls.shippingType.setValue(qt),Te.selectedShipping.next(Te.shippingService.getSelectedShipping(qt)),Te.form.controls.price.setValue(void 0),Te.isShortDelivery=Te.selectedShipping.value.info.shortTimeDelivery;const Me=Te.getShippingDayThreshold();Te.shippingDayThreshold.next(Me),Te.woltDatepickerMax=g().add(Te.selectedShipping.value.info.woltOpenDays-1,"days"),Te.form.controls.date.value?.isSameOrAfter(Me)||Te.form.controls.date.setValue(Me);const _n=yield Te.getShippingFilter();Te.filter.next(_n),Te.addressNotFound.next(!1),Te.addressTooFarAway.next(!1),Te.addressInvalid.next(!1),Te.selectedShipping.value.info.priceModel===ut.v4.fixedPrice?(Te.form.controls.address.setValidators(void 0),Te.form.controls.zipCode.setValidators(void 0),Te.form.controls.city.setValidators(void 0)):(Te.form.controls.address.setValidators([e.kI.required]),Te.form.controls.zipCode.setValidators([e.kI.required]),Te.form.controls.city.setValidators([e.kI.required])),Te.form.controls.woltUsePriceGroups||(Te.form.controls.woltUsePriceGroups=new xt.rV(!1)),Te.form.controls.isWolt.setValue(Te.selectedShipping.value.info?.woltShipping),Te.form.controls.woltUsePriceGroups.setValue(Te.selectedShipping.value.info?.woltUsePriceGroups),Te.form.controls.address.updateValueAndValidity(),Te.form.controls.zipCode.updateValueAndValidity(),Te.form.controls.city.updateValueAndValidity(),Te.form.controls.date.enable(),Te.valuesLoaded||(Te.valuesLoaded=!0)})()}selectEvent(qt){const Te=this.eventStores.find(Me=>Me.StoreId===qt);Te&&(this.eventShippingOptions=this.shippingOptions.filter(Me=>Te.ShippingIds.find(_n=>+_n===Me.id))),this.shippingService.saveEventStore(Te),this.cdr.detectChanges()}getShippingDayThreshold(){const qt=this.selectedShipping.value.info.orderDeadlineBeforeDeliveryTime,{days:Te,hours:Me,minutes:_n,seconds:ce}=(0,ut.VK)(qt),ye=g();return this.isShortDelivery?ye.clone().add(Te,"days").add(Me,"hours").add(_n,"minutes").add(ce,"seconds").clone():ye.clone().add({day:1}).add(Te,"days").add(Me,"hours").add(_n,"minutes").add(ce,"seconds").startOf("day").clone()}getShippingFilter(){var qt=this;return(0,o.Z)(function*(){const{openedDays:Te,closedDays:Me,openDaysOfWeek:_n}=qt.selectedShipping.value.info,ce=qt.productDeliveryLimits;return ce.sort((ye,Xt)=>ye.intervals.length-Xt.intervals.length),ye=>{const Xt=ye||g();if(_n&&!_n.find(te=>te.day===Xt.day()))return!1;const on=te=>{for(const Se of te){const[Ke,Oe]=(0,ut.$f)(Se);if(Xt.isBetween(Ke,Oe,"day","[]"))return!0}return!1};let oe=!0;if(ce.length)for(const te of ce)if(oe=on(te.intervals),!oe)break;let $e=!0;return Te.length?$e=on(Te):Me.length&&($e=!on(Me)),oe&&$e}})()}updateShippingDay(qt,Te){var Me=this;return(0,o.Z)(function*(){if(!qt||!Te)return;Me.loadingIntervals++;const _n=Me.loadingIntervals,ce=yield Me.shippingService.closeDeliveryIntervalsForDay(Te.id,qt,Te.info.orderDeadlineBeforeDeliveryTime);_n===Me.loadingIntervals&&(Me.shippingDay=ce,Me.isGenerateIntervals=ce.intervalGroups[0]?.generateIntervals,Me.loadingIntervals=0,Me.woltFastestIntervalSubject.next())})()}toggleFastestPossible(qt){var Te=this;return(0,o.Z)(function*(){if(qt!==re.fastest)Te.form.controls.fastestPossible.setValue(!1);else{Te.form.controls.fastestPossible.setValue(!0);const Me=Te.filter.getValue(),_n=Te.shippingDayThreshold.value.clone();Te.woltFastestId++;const ce=Te.woltFastestId,ye=Te.selectedShipping?.value.info.woltOpenDays;yield Te.woltFindFastestPossible(ce,ye,Me,_n)}})()}setInterval(qt,Te){if(!this.valuesLoaded)return;qt&&this.form.controls.time.setValue(Te);const Me=this.form.controls.time.value;!qt&&Me&&Te.id===Me.id&&this.form.controls.time.setValue(void 0)}submitShipping(){var qt=this;return(0,o.Z)(function*(){!qt.form.value.isWolt&&!qt.form.valid||(qt.mParticle?.deliveryMethodComplete(qt.form),qt.shippingService.saveShipping(qt.form),qt.dialogRef.close())})()}close(){this.dialogRef.close()}openEditAddressDialog(){this.dialogService.openEditAddressDialog({form:this.form}).afterClosed().pipe((0,U.q)(1)).subscribe(qt=>{qt&&(this.form.controls.address.setValue(qt.address),this.form.controls.zipCode.setValue(qt.zipCode),this.form.controls.city.setValue(qt.city))})}woltFindFastestPossible(qt,Te,Me,_n,ce=0){var ye=this;return(0,o.Z)(function*(){if(!Te||qt!==ye.woltFastestId)return;let Xt=Me(_n)&&ce<=Te;for(ce++;!Xt&&ce<Te;)_n.add(1,"day"),ce++,Xt=Me(_n);if(!Xt||qt!==ye.woltFastestId)return void(ye.noFastestPossible=!0);if(ye.noFastestPossible=!1,!_n.isSame(ye.form.controls.date.value,"day")||ye.loadingIntervals>0){const oe=(0,f.n)(ye.woltFastestIntervalSubject.pipe((0,lt.T)(1),(0,U.q)(1)));ye.form.controls.date.setValue(_n.clone()),yield oe}const on=ye.shippingDay.intervalGroups.find(oe=>oe.intervals.findIndex($e=>!$e.disabled)>=0);if(on){const oe=on.intervals.find($e=>!$e.disabled);ye.setInterval(!0,oe)}else yield ye.woltFindFastestPossible(qt,Te,Me,_n.add(1,"day"),ce)})()}static#t=this.\u0275fac=function(Te){return new(Te||Ft)(_.Y36(A._s),_.Y36(j.N),_.Y36(q.V),_.Y36(ht.Ns),_.Y36(ht.vD),_.Y36(ht.e8),_.Y36(vt.hV),_.Y36(_.sBO),_.Y36(ht.fY),_.Y36(_.SBq),_.Y36(ht.xA),_.Y36(ht.p$,8))};static#e=this.\u0275cmp=_.Xpm({type:Ft,selectors:[["app-shipping"]],features:[_.qOj],decls:16,vars:15,consts:[[3,"icon","border","click",4,"ngIf"],["mat-dialog-title",""],[3,"formGroup","ngSubmit",4,"ngLet"],[1,"dialog-options"],["color","accent",1,"close-button",3,"click"],[1,"save-button",3,"disabled","click"],[3,"icon","border","click"],[3,"formGroup","ngSubmit"],["shippingForm","ngForm"],[1,"middle-section"],[4,"ngIf"],[1,"shipping-type"],[1,"delivery"],["for","shipping-options"],["id","shipping-options",3,"options","optionsPlaceholder","initShipping","disabled","selectedShippingOptionChange"],["class","wolt-fastest-toggle",4,"ngIf"],["id","shipping-date","class","date",3,"control","name","min","max","filter",4,"ngIf"],["class","shipping-fastest",4,"ngIf"],["class","loading",4,"ngIf"],[1,"wolt-address-section"],[1,"event"],["for","event-options"],["id","event-options",3,"options","initSelection","selectedEventStoreOptionChange"],[1,"wolt-fastest-toggle"],["for","wolt-time-select"],["id","wolt-time-select",1,"wolt-time-select",3,"change"],[3,"value","checked"],[1,"shipping-option"],["svgIcon","schedule"],[1,"shipping-option-title"],[1,"title"],["svgIcon","calendar"],[1,"subtitle"],["id","shipping-date",1,"date",3,"control","name","min","max","filter"],[1,"shipping-fastest"],[1,"shipping-fastest-gorup-mobile"],["class","date",4,"ngIf"],["class","date no-date",4,"ngIf"],[1,"unstyled-button",3,"click"],["svgIcon","edit"],[1,"shipping-fastest-group"],["class","no-date",4,"ngIf"],[1,"date"],[1,"date","no-date"],[1,"no-date"],[1,"address"],["id","customer-address",3,"control","directive","placeholder","name"],["id","customer-zip",3,"control","directive","placeholder","name"],["id","customer-city",3,"control","directive","placeholder","name"],["class","found-address",4,"ngIf"],[4,"ngLet"],[1,"found-address"],["class","shipping-price",4,"ngLet"],[1,"shipping-price"],[3,"value",4,"ngIf"],[3,"value"],["src","assets/preloader.gif","alt","loading shipping price"],[1,"loading"],["class","shipping-intervals",4,"ngIf"],["class","short-intervals",4,"ngIf"],[1,"shipping-intervals"],[4,"ngFor","ngForOf"],["class","shipping-interval-group",4,"ngLet"],[1,"shipping-interval-group"],[3,"id","disabled","checked","checkedChange",4,"ngFor","ngForOf"],[3,"id","disabled","checked","checkedChange"],[1,"short-intervals"],[3,"shippingDay","init","isWolt","selectedIntervalOptionChange",4,"ngLet"],[3,"shippingDay","init","isWolt","selectedIntervalOptionChange"],["class","address-button",4,"ngIf"],[1,"address-button","edit-address-button",3,"click"],["svgIcon","plus"],[1,"address-button"],["svgIcon","home"],[3,"value","currency",4,"ngIf"],[3,"value","currency"]],template:function(Te,Me){1&Te&&(_.YNc(0,gt,1,2,"app-icon-button",0),_.TgZ(1,"header")(2,"h1",1),_._uU(3),_.qZA(),_.TgZ(4,"p"),_._uU(5),_.qZA()(),_.YNc(6,rn,18,16,"form",2),_.ALo(7,"async"),_.TgZ(8,"div",3)(9,"app-text-button",4),_.NdJ("click",function(){return Me.close()}),_._uU(10),_.qZA(),_.TgZ(11,"app-text-button",5),_.NdJ("click",function(){return Me.submitShipping()}),_.ALo(12,"async"),_.ALo(13,"async"),_.ALo(14,"async"),_._uU(15),_.qZA()()),2&Te&&(_.Q6J("ngIf",Me.showButton),_.xp6(3),_.Oqu(Me.title),_.xp6(2),_.Oqu(Me.subtitle),_.xp6(1),_.Q6J("ngLet",_.lcZ(7,7,Me.selectedShipping)),_.xp6(4),_.Oqu(Me.closeButton),_.xp6(1),_.Q6J("disabled",!Me.form.value.isWolt&&(!Me.form.valid||_.lcZ(12,9,Me.addressTooFarAway)||Me.eventStores&&void 0===_.lcZ(13,11,Me.selectedEventStore)||_.lcZ(14,13,Me.missingBasketTotal)>0)),_.xp6(4),_.hij(" ",Me.saveButton," "))},styles:["[_nghost-%COMP%]{display:flex;position:relative;flex-direction:column;width:800px;max-width:800px;height:90vh;margin:-24px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:600px;max-width:600px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:100vw;min-width:100vw;max-height:100vh;height:calc(var(--vh, 1vh) * 100)}}.clpartyservice-theme[_nghost-%COMP%]{background-color:#000;border:1px solid var(--primary-color);border-radius:16px;color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   app-date-picker[_ngcontent-%COMP%]     input, .clpartyservice-theme[_nghost-%COMP%]   app-text-input[_ngcontent-%COMP%]     input{color:#333}.clpartyservice-theme[_nghost-%COMP%]   header[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]:not(:last-child), .clpartyservice-theme[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .shipping-price[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{border-color:var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   .save-button[_ngcontent-%COMP%]     .text-button{color:var(--text-primary-color)}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:1.5em;font-weight:600;margin:12px 0}[_nghost-%COMP%]   p[_ngcontent-%COMP%]{margin:0;color:var(--text-accent-color)}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:fixed;right:32px;top:32px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{padding:24px;border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:auto;flex:1 1 auto;box-sizing:border-box;overflow-y:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding:0}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px 24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{flex:1 0 auto}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid #d1d9dc}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:min-content;grid-column-gap:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-block;margin:8px 0;font-size:.9em;font-weight:600}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .event[_ngcontent-%COMP%]{grid-column:1/span 2;display:flex;flex-direction:column}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]{grid-column:1/span 2;display:flex;flex-wrap:wrap;gap:20px;width:100%;max-width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .delivery[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;flex-direction:column;justify-content:space-between;width:calc(50% - 10px)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .delivery[_ngcontent-%COMP%]   app-shipping-dropdown[_ngcontent-%COMP%]{margin-bottom:17px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .delivery[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{flex:0 0 auto;width:calc(50% - 10px)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]   app-date-picker[_ngcontent-%COMP%]{width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{width:100%}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]{flex:1 0 auto}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]{display:flex;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{direction:rtl;display:flex;padding:8px 16px;border-radius:8px;border:1px solid #a2b2b8;box-sizing:border-box;height:70px;width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button.mat-radio-disabled[_ngcontent-%COMP%]{opacity:30%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content{width:100%;margin-right:27px;padding-left:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option{direction:ltr;display:flex;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option mat-icon{margin-right:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option mat-icon   path{fill:#878787}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title{display:flex;flex-direction:column}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title .title{font-size:16px;font-weight:700;line-height:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-type[_ngcontent-%COMP%]   .wolt-fastest-toggle[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title .subtitle{font-size:14px;font-weight:400;line-height:22px;color:#8d8d8d}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]{grid-column:1/span 2;margin-top:20px;display:flex;flex-direction:column}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]{gap:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{gap:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-group[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%]   .no-date[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{display:flex;padding:8px 16px;border-radius:8px;border:1px solid #a2b2b8;box-sizing:border-box;height:70px;width:100%;align-items:center;justify-content:space-between;font-weight:700}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;gap:27px;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-fastest[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]     path{fill:#878787}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .address[_ngcontent-%COMP%]{position:relative;grid-column:1/span 2}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .address[_ngcontent-%COMP%]   app-text-input[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .found-address[_ngcontent-%COMP%]{font-size:75%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .shipping-price[_ngcontent-%COMP%]{grid-column:1/span 2;display:flex;justify-content:space-between;align-items:center;justify-self:start;padding:12px;border-radius:6px;box-sizing:border-box;min-height:50px;background-color:var(--primary-lighter-color);border:1px solid var(--accent-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .shipping-price[_ngcontent-%COMP%]{margin:16px 0}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .shipping-price[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:1em;font-weight:500;margin-right:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%] > .shipping-price[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{font-size:1.3em}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:1fr auto;grid-auto-flow:column;grid-auto-rows:min-content;grid-column-gap:20px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2em}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   app-checkbox-button[_ngcontent-%COMP%]{padding-bottom:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-group[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.short-intervals[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2em;margin:8px 0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2em;margin:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%]{display:flex;padding:8px 16px;border-radius:8px;border:1px solid #a2b2b8;box-sizing:border-box;height:70px;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{margin-right:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]     path{fill:#878787}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{margin-left:auto;font-size:16px;font-weight:700;line-height:24px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.wolt-address-section[_ngcontent-%COMP%]   .address-button.edit-address-button[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;box-sizing:border-box;flex-direction:column;align-items:center;width:100%;padding:16px 24px 24px;border-top:1px solid #d1d9dc}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex:0 0 auto;justify-self:flex-end;flex-direction:row;justify-content:space-between;padding-bottom:16px;gap:8px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;height:44px;width:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 1 auto;height:36px;width:100%}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]  .text-button{padding:0 24px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.save-button[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:none;align-self:flex-start}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .loading[_ngcontent-%COMP%]{grid-column:1/span 2;display:flex;justify-content:center;align-items:center}"]})}return Ft})()},1176:(Je,Rt,c)=>{"use strict";c.d(Rt,{K:()=>Jt});var o=c(2459),e=c(5879),g=c(8712),x=c(9259),l=c(2365),i=c(7954),R=c(7592);function f(Tt,$){if(1&Tt){const pt=e.EpF();e.TgZ(0,"app-icon-button",6),e.NdJ("click",function(){e.CHM(pt);const St=e.oxw();return e.KtG(St.close())}),e.qZA()}if(2&Tt){const pt=e.oxw();e.Q6J("icon",pt.closeIcon)("border",!1)}}function t(Tt,$){if(1&Tt){const pt=e.EpF();e.ynx(0),e.TgZ(1,"div",17)(2,"label",18),e._uU(3),e.qZA(),e.TgZ(4,"app-event-dropdown",19),e.NdJ("selectedEventStoreOptionChange",function(St){e.CHM(pt);const mt=e.oxw(2);return e.KtG(mt.selectEvent(St))}),e.ALo(5,"async"),e.qZA()(),e.BQk()}if(2&Tt){const pt=e.oxw(2);let Dt;e.xp6(3),e.Oqu(pt.eventOptionsLabel),e.xp6(1),e.Q6J("options",pt.eventStores)("initSelection",null==(Dt=e.lcZ(5,3,pt.selectedEventStore))?null:Dt.StoreId)}}function y(Tt,$){if(1&Tt&&(e.TgZ(0,"div")(1,"p")(2,"span",20),e._uU(3,"*"),e.qZA(),e._uU(4),e.qZA()()),2&Tt){const pt=e.oxw(2);e.xp6(4),e.Oqu(pt.noShippingNoteText)}}function O(Tt,$){1&Tt&&e._UZ(0,"mat-icon",31)}function G(Tt,$){1&Tt&&e._UZ(0,"mat-icon",32)}function U(Tt,$){if(1&Tt&&(e.TgZ(0,"span",33),e._uU(1),e.qZA()),2&Tt){const pt=e.oxw().$implicit;e.xp6(1),e.AsE(" ",pt.price?pt.price:"Gratis","",pt.price?" kr.":""," ")}}function lt(Tt,$){if(1&Tt&&(e.TgZ(0,"span",33),e._uU(1),e.qZA()),2&Tt){const pt=e.oxw().$implicit;e.xp6(1),e.hij("Fra ",pt.price," kr.")}}function ut(Tt,$){if(1&Tt){const pt=e.EpF();e.TgZ(0,"mat-radio-button",23),e.NdJ("change",function(){const mt=e.CHM(pt).$implicit,yt=e.oxw(3);return e.KtG(yt.selectShipping(mt.id))}),e.ALo(1,"async"),e.TgZ(2,"div",24),e.YNc(3,O,1,0,"mat-icon",25),e.YNc(4,G,1,0,"mat-icon",26),e.TgZ(5,"div",27)(6,"span",28),e._uU(7),e.qZA(),e.TgZ(8,"span",29),e._uU(9),e.qZA()(),e.YNc(10,U,2,2,"span",30),e.YNc(11,lt,2,1,"span",30),e.qZA()()}if(2&Tt){const pt=$.$implicit,Dt=e.oxw(2).ngLet,St=e.oxw();let mt;e.Q6J("value",""+pt.id)("disabled",St.eventStores&&!(null!=(mt=e.lcZ(1,9,St.selectedEventStore))&&mt.StoreId))("checked",(null==Dt?null:Dt.id)===pt.id),e.xp6(3),e.Q6J("ngIf",pt.fixedPrice),e.xp6(1),e.Q6J("ngIf",!pt.fixedPrice),e.xp6(3),e.Oqu(pt.name),e.xp6(2),e.Oqu(pt.subTitle),e.xp6(1),e.Q6J("ngIf",pt.fixedPrice),e.xp6(1),e.Q6J("ngIf",!pt.fixedPrice)}}function Ht(Tt,$){if(1&Tt&&(e.TgZ(0,"mat-radio-group",21),e.YNc(1,ut,12,11,"mat-radio-button",22),e.qZA()),2&Tt){const pt=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",pt.eventStores?pt.eventShippingOptions:pt.shippingOptions)}}function A(Tt,$){if(1&Tt){const pt=e.EpF();e.ynx(0),e.TgZ(1,"h2"),e._uU(2,"Tidspunkt for levering"),e.qZA(),e.TgZ(3,"mat-radio-group",34),e.NdJ("change",function(St){e.CHM(pt);const mt=e.oxw(2);return e.KtG(mt.toggleFastestPossible(St.value))}),e.TgZ(4,"mat-radio-button",13)(5,"div",24),e._UZ(6,"mat-icon",35),e.TgZ(7,"div",27)(8,"span",28),e._uU(9,"F\xf8rst mulige tid"),e.qZA()()()(),e.TgZ(10,"mat-radio-button",13)(11,"div",24),e._UZ(12,"mat-icon",36),e.TgZ(13,"div",27)(14,"span",28),e._uU(15,"Senere tidspunkt"),e.qZA(),e.TgZ(16,"span",29),e._uU(17,"V\xe6lg tidspunkt"),e.qZA()()()()(),e.BQk()}if(2&Tt){const pt=e.oxw(2);e.xp6(4),e.Q6J("value",1)("checked",!0===pt.form.value.fastestPossible),e.xp6(6),e.Q6J("value",2)("checked",!1===pt.form.value.fastestPossible)}}function xt(Tt,$){if(1&Tt&&(e._UZ(0,"app-date-picker",37),e.ALo(1,"async"),e.ALo(2,"async")),2&Tt){const pt=e.oxw(2);e.Q6J("disableStyle",!0)("control",pt.form.controls.date)("min",e.lcZ(1,5,pt.shippingDayThreshold))("max",pt.form.controls.isWolt.value&&pt.woltDatepickerMax)("filter",e.lcZ(2,7,pt.filter))}}function tt(Tt,$){1&Tt&&(e.TgZ(0,"div",38),e._UZ(1,"mat-spinner"),e.qZA())}function ct(Tt,$){if(1&Tt){const pt=e.EpF();e.TgZ(0,"mat-radio-button",23),e.NdJ("change",function(){const mt=e.CHM(pt).$implicit,yt=e.oxw(6);return e.KtG(yt.setRadioInterval(mt))}),e._uU(1),e.qZA()}if(2&Tt){const pt=$.$implicit,Dt=e.oxw().ngLet;e.Q6J("value",""+pt.id)("disabled",null==pt?null:pt.disabled)("checked",Dt&&Dt.id===pt.id),e.xp6(1),e.hij(" ",pt.period," ")}}function _(Tt,$){if(1&Tt&&(e.TgZ(0,"mat-radio-group",45),e.YNc(1,ct,2,4,"mat-radio-button",22),e.qZA()),2&Tt){const pt=e.oxw().$implicit;e.xp6(1),e.Q6J("ngForOf",pt.intervals)}}function j(Tt,$){if(1&Tt&&(e.TgZ(0,"div")(1,"h3"),e._uU(2),e.qZA(),e.YNc(3,_,2,1,"mat-radio-group",44),e.qZA()),2&Tt){const pt=$.$implicit,Dt=e.oxw(4);e.xp6(2),e.Oqu(pt.groupName),e.xp6(1),e.Q6J("ngLet",Dt.form.controls.time.value)}}function q(Tt,$){if(1&Tt&&(e.TgZ(0,"section",41)(1,"h2"),e._uU(2),e.qZA(),e.TgZ(3,"div",42),e.YNc(4,j,4,2,"div",43),e.qZA()()),2&Tt){const pt=e.oxw(3);e.xp6(2),e.Oqu(pt.form.controls.isWolt.value?"Leveringstidspunkt":"Afhentningstidspunkt"),e.xp6(2),e.Q6J("ngForOf",pt.shippingDay.intervalGroups)}}function ht(Tt,$){if(1&Tt&&(e.TgZ(0,"span",54),e._uU(1),e.ALo(2,"uppercase"),e.ALo(3,"date"),e.qZA()),2&Tt){const pt=e.oxw(4);e.xp6(1),e.AsE(" ",e.lcZ(2,2,e.xi3(3,4,null==pt.form.controls.date.value?null:pt.form.controls.date.value.toDate(),"fullDate"))," kl. ",null==pt.form.controls.time.value?null:pt.form.controls.time.value.period," ")}}function vt(Tt,$){if(1&Tt&&(e.TgZ(0,"span",55),e._uU(1),e.qZA()),2&Tt){const pt=e.oxw(4);e.xp6(1),e.Oqu(pt.noFastestPossibleText)}}function gt(Tt,$){if(1&Tt&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"uppercase"),e.ALo(3,"date"),e.qZA()),2&Tt){const pt=e.oxw(4);e.xp6(1),e.AsE(" ",e.lcZ(2,2,e.xi3(3,4,null==pt.form.controls.date.value?null:pt.form.controls.date.value.toDate(),"fullDate"))," KL. ",null==pt.form.controls.time.value?null:pt.form.controls.time.value.period," ")}}function zt(Tt,$){if(1&Tt&&(e.TgZ(0,"span",56),e._uU(1),e.qZA()),2&Tt){const pt=e.oxw(4);e.xp6(1),e.Oqu(pt.noFastestPossibleText)}}function Ct(Tt,$){if(1&Tt){const pt=e.EpF();e.TgZ(0,"section",46)(1,"h2"),e._uU(2,"Leveringstidspunkt"),e.qZA(),e.TgZ(3,"div",47),e.YNc(4,ht,4,7,"span",48),e.YNc(5,vt,2,1,"span",49),e.TgZ(6,"button",50),e.NdJ("click",function(){e.CHM(pt);const St=e.oxw(3);return e.KtG(St.toggleFastestPossible(2))}),e.TgZ(7,"span"),e._UZ(8,"mat-icon",51),e._uU(9,"Rediger tidspunkt"),e.qZA()()(),e.TgZ(10,"div",52)(11,"button",50),e.NdJ("click",function(){e.CHM(pt);const St=e.oxw(3);return e.KtG(St.toggleFastestPossible(2))}),e.YNc(12,gt,4,7,"span",10),e.YNc(13,zt,2,1,"span",53),e.TgZ(14,"span"),e._uU(15,"Rediger tidspunkt"),e._UZ(16,"mat-icon",51),e.qZA()()()()}if(2&Tt){const pt=e.oxw(3);e.xp6(4),e.Q6J("ngIf",!pt.noFastestPossible),e.xp6(1),e.Q6J("ngIf",pt.noFastestPossible),e.xp6(7),e.Q6J("ngIf",!pt.noFastestPossible),e.xp6(1),e.Q6J("ngIf",pt.noFastestPossible)}}function H(Tt,$){if(1&Tt&&(e.ynx(0),e.YNc(1,q,5,2,"section",39),e.YNc(2,Ct,17,4,"section",40),e.BQk()),2&Tt){const pt=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!pt.form.controls.isWolt.value||!1===pt.form.value.fastestPossible),e.xp6(1),e.Q6J("ngIf",pt.form.value.isWolt&&!0===pt.form.value.fastestPossible)}}function J(Tt,$){if(1&Tt&&(e._UZ(0,"app-price",63),e.ALo(1,"displayCurrency")),2&Tt){const pt=e.oxw(2).ngLet,Dt=e.oxw(4);e.Q6J("value",pt)("currency",e.lcZ(1,2,Dt.currency))}}function z(Tt,$){if(1&Tt&&(e.ynx(0),e.YNc(1,J,2,4,"app-price",62),e.BQk()),2&Tt){const pt=$.ngLet,Dt=e.oxw().ngLet;e.xp6(1),e.Q6J("ngIf",null!=Dt&&!pt)}}function F(Tt,$){if(1&Tt&&(e.ynx(0),e.YNc(1,z,2,1,"ng-container",61),e.ALo(2,"async"),e.BQk()),2&Tt){const pt=e.oxw(4);e.xp6(1),e.Q6J("ngLet",e.lcZ(2,1,pt.addressInvalid))}}function rt(Tt,$){if(1&Tt&&(e.TgZ(0,"div",60),e._UZ(1,"mat-icon",31),e.TgZ(2,"span"),e._uU(3),e.qZA(),e.YNc(4,F,3,3,"ng-container",61),e.qZA()),2&Tt){const pt=e.oxw(3);e.xp6(3),e.lnq("",pt.form.controls.address.value,", ",pt.form.controls.zipCode.value," ",pt.form.controls.city.value,""),e.xp6(1),e.Q6J("ngLet",pt.form.controls.price.value)}}function V(Tt,$){1&Tt&&(e.TgZ(0,"span"),e._uU(1,"Tilf\xf8j adresse"),e.qZA())}function Pt(Tt,$){1&Tt&&(e.TgZ(0,"span"),e._uU(1,"Rediger adresse"),e.qZA())}function $t(Tt,$){if(1&Tt){const pt=e.EpF();e.ynx(0),e.TgZ(1,"h2"),e._uU(2,"Adresse"),e.qZA(),e.YNc(3,rt,5,4,"div",57),e.TgZ(4,"div",58),e.NdJ("click",function(){e.CHM(pt);const St=e.oxw(2);return e.KtG(St.openEditAddressDialog())}),e._UZ(5,"mat-icon",59),e.YNc(6,V,2,0,"span",10),e.YNc(7,Pt,2,0,"span",10),e.qZA(),e.BQk()}if(2&Tt){const pt=e.oxw(2);e.xp6(3),e.Q6J("ngIf",pt.form.controls.address.value),e.xp6(3),e.Q6J("ngIf",!pt.form.controls.address.value),e.xp6(1),e.Q6J("ngIf",pt.form.controls.address.value)}}function Lt(Tt,$){if(1&Tt){const pt=e.EpF();e.TgZ(0,"form",7,8),e.NdJ("ngSubmit",function(){e.CHM(pt);const St=e.oxw();return e.KtG(St.submitShipping())}),e.TgZ(2,"section",9),e.YNc(3,t,6,5,"ng-container",10),e.YNc(4,y,5,1,"div",10),e.YNc(5,Ht,2,1,"mat-radio-group",11),e.YNc(6,A,18,4,"ng-container",10),e.TgZ(7,"mat-radio-group",12)(8,"mat-radio-button",13)(9,"span",14),e._uU(10),e.qZA()()(),e.YNc(11,xt,3,9,"app-date-picker",15),e.YNc(12,tt,2,0,"div",16),e.qZA(),e.YNc(13,H,3,2,"ng-container",10),e.TgZ(14,"section",9),e.YNc(15,$t,8,3,"ng-container",10),e.qZA()()}if(2&Tt){const pt=$.ngLet,Dt=e.oxw();e.Q6J("formGroup",Dt.form),e.xp6(3),e.Q6J("ngIf",!Dt.loading&&Dt.eventStores),e.xp6(1),e.Q6J("ngIf",!(null!=Dt.shippingOptions&&Dt.shippingOptions.length)),e.xp6(1),e.Q6J("ngIf",null==Dt.shippingOptions?null:Dt.shippingOptions.length),e.xp6(1),e.Q6J("ngIf",Dt.form.controls.isWolt.value),e.xp6(2),e.Q6J("value",1)("checked",!0),e.xp6(2),e.Oqu(Dt.merchantName),e.xp6(1),e.Q6J("ngIf",!Dt.form.controls.isWolt.value||!0!==Dt.form.value.fastestPossible),e.xp6(1),e.Q6J("ngIf",Dt.loading||Dt.loadingIntervals),e.xp6(1),e.Q6J("ngIf",!Dt.loading&&!Dt.loadingIntervals&&Dt.shippingDay&&Dt.shippingDay.intervalGroups.length>0),e.xp6(2),e.Q6J("ngIf",!Dt.loading&&!Dt.loadingIntervals&&pt&&pt.info.priceModel===Dt.priceGroup)}}let Jt=(()=>{class Tt extends o.k{constructor(pt,Dt,St,mt,yt,ee,B,At,st,ie,Ae,en){super(pt,Dt,St,mt,yt,ee,B,At,st,ie,Ae,en),this.merchantName=this.contentService.getMerchant().name}setRadioInterval(pt){this.valuesLoaded&&(this.form.value.fastestPossible&&this.form.controls.fastestPossible.setValue(!1),this.form.controls.time.setValue(pt))}ngOnInit(){super.ngOnInit(),this.form.controls.shippingType.value||this.selectShipping(this.shippingOptions[0]?.id)}selectEvent(pt){super.selectEvent(pt),this.selectShipping(this.eventShippingOptions&&this.eventShippingOptions[0]?.id)}static#t=this.\u0275fac=function(Dt){return new(Dt||Tt)(e.Y36(g._s),e.Y36(x.N),e.Y36(l.V),e.Y36(i.Ns),e.Y36(i.vD),e.Y36(i.e8),e.Y36(R.hV),e.Y36(e.sBO),e.Y36(i.fY),e.Y36(e.SBq),e.Y36(i.xA),e.Y36(i.p$))};static#e=this.\u0275cmp=e.Xpm({type:Tt,selectors:[["app-meny-shipping"]],features:[e.qOj],decls:15,vars:13,consts:[[3,"icon","border","click",4,"ngIf"],["mat-dialog-title",""],[3,"formGroup","ngSubmit",4,"ngLet"],[1,"dialog-options"],["color","accent",1,"close-button",3,"click"],[1,"save-button",3,"disabled","click"],[3,"icon","border","click"],[3,"formGroup","ngSubmit"],["shippingForm","ngForm"],[1,"middle-section"],[4,"ngIf"],["class","shipping-options",4,"ngIf"],[1,"shop-name"],[3,"value","checked"],[1,"shop"],["id","shipping-date","class","date","appearance","outline","name","V\xe6lg dato for afhentning",3,"disableStyle","control","min","max","filter",4,"ngIf"],["class","loading",4,"ngIf"],[1,"event"],["for","event-options"],["id","event-options",3,"options","initSelection","selectedEventStoreOptionChange"],[1,"red"],[1,"shipping-options"],[3,"value","disabled","checked","change",4,"ngFor","ngForOf"],[3,"value","disabled","checked","change"],[1,"shipping-option"],["svgIcon","shop",4,"ngIf"],["svgIcon","delivery",4,"ngIf"],[1,"shipping-option-title"],[1,"title"],[1,"subtitle"],["class","shipping-option-price",4,"ngIf"],["svgIcon","shop"],["svgIcon","delivery"],[1,"shipping-option-price"],[1,"wolt-time-select",3,"change"],["svgIcon","watch"],["svgIcon","calendar"],["id","shipping-date","appearance","outline","name","V\xe6lg dato for afhentning",1,"date",3,"disableStyle","control","min","max","filter"],[1,"loading"],["class","shipping-intervals",4,"ngIf"],["class","shipping-fastest",4,"ngIf"],[1,"shipping-intervals"],[1,"shipping-interval-groups"],[4,"ngFor","ngForOf"],["class","shipping-interval-group",4,"ngLet"],[1,"shipping-interval-group"],[1,"shipping-fastest"],[1,"shipping-fastest-gorup-mobile"],["class","date",4,"ngIf"],["class","date no-date",4,"ngIf"],[1,"unstyled-button",3,"click"],["svgIcon","edit"],[1,"shipping-fastest-group"],["class","no-date",4,"ngIf"],[1,"date"],[1,"date","no-date"],[1,"no-date"],["class","address-button",4,"ngIf"],[1,"address-button","edit-address-button",3,"click"],["svgIcon","plus"],[1,"address-button"],[4,"ngLet"],[3,"value","currency",4,"ngIf"],[3,"value","currency"]],template:function(Dt,St){1&Dt&&(e.YNc(0,f,1,2,"app-icon-button",0),e.TgZ(1,"header")(2,"h1",1),e._uU(3),e.qZA(),e.TgZ(4,"p"),e._uU(5),e.qZA()(),e.YNc(6,Lt,16,12,"form",2),e.ALo(7,"async"),e.TgZ(8,"div",3)(9,"app-text-button",4),e.NdJ("click",function(){return St.close()}),e._uU(10),e.qZA(),e.TgZ(11,"app-text-button",5),e.NdJ("click",function(){return St.submitShipping()}),e.ALo(12,"async"),e.ALo(13,"async"),e._uU(14),e.qZA()()),2&Dt&&(e.Q6J("ngIf",St.showButton),e.xp6(3),e.Oqu(St.title),e.xp6(2),e.Oqu(St.subtitle),e.xp6(1),e.Q6J("ngLet",e.lcZ(7,7,St.selectedShipping)),e.xp6(4),e.Oqu(St.closeButton),e.xp6(1),e.Q6J("disabled",!St.form.valid||e.lcZ(12,9,St.addressTooFarAway)||St.eventStores&&void 0===e.lcZ(13,11,St.selectedEventStore)),e.xp6(3),e.hij(" ",St.saveButton," "))},styles:["[_nghost-%COMP%]{display:flex;position:relative;flex-direction:column;width:800px;max-width:800px;max-height:90vh;margin:-24px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{width:600px;max-width:600px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{max-width:95vw;min-width:95vw;max-height:calc(var(--vh, vh) * 95)}}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]{position:absolute;right:16px;top:16px;height:40px;width:40px}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{background-color:#3c3c3b}[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button path{fill:#fff}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{padding:24px 64px 0 24px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:24px;line-height:34px;font-weight:700;margin:0 0 12px}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:400;line-height:22px}[_nghost-%COMP%]   .red[_ngcontent-%COMP%]{color:red}[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:auto;flex:1 1 auto;box-sizing:border-box;overflow-y:auto}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding:0}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px 24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{flex:1 0 auto}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline-block;margin:8px 0;font-size:.9em;font-weight:600}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{direction:rtl;display:flex;padding:8px 16px;border-radius:8px;border:2px solid #8d8d8d;box-sizing:border-box;height:70px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button.mat-radio-checked[_ngcontent-%COMP%]     .mat-radio-outer-circle{border-color:#609433}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button.mat-radio-checked[_ngcontent-%COMP%]     .mat-radio-inner-circle{background-color:#609433}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-outer-circle{border-color:#3c3c3b}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content{width:100%;margin-right:27px;padding-left:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option{direction:ltr;display:flex;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option mat-icon{margin-right:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title{display:flex;flex-direction:column}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title .title{font-size:16px;font-weight:700;line-height:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title .subtitle{font-size:14px;font-weight:400;line-height:22px;color:#8d8d8d}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shipping-options[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-price{margin-left:auto}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]{padding:8px 16px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .shop-name[_ngcontent-%COMP%]   .shop[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:20px;white-space:normal}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .event[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   app-date-picker[_ngcontent-%COMP%]     .mat-form-field-wrapper{padding-bottom:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   app-date-picker[_ngcontent-%COMP%]     .mat-form-field-outline, [_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   app-date-picker[_ngcontent-%COMP%]     .mat-form-field-label{color:#8d8d8d}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%]{display:flex;padding:8px 16px;border-radius:8px;border:2px solid #8d8d8d;box-sizing:border-box;height:70px;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{margin-right:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:16px;font-weight:700;line-height:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .address-button[_ngcontent-%COMP%]   app-price[_ngcontent-%COMP%]{margin-left:auto;font-size:16px;font-weight:700;line-height:24px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .address-button.edit-address-button[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]{display:flex;gap:16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{direction:rtl;display:flex;padding:8px 16px;border-radius:8px;border:2px solid #8d8d8d;box-sizing:border-box;height:70px;width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button.mat-radio-disabled[_ngcontent-%COMP%]{opacity:30%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button.mat-radio-checked[_ngcontent-%COMP%]     .mat-radio-outer-circle{border-color:#609433}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button.mat-radio-checked[_ngcontent-%COMP%]     .mat-radio-inner-circle{background-color:#609433}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content{width:100%;margin-right:27px;padding-left:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option{direction:ltr;display:flex;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option mat-icon{margin-right:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title{display:flex;flex-direction:column}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title .title{font-size:16px;font-weight:700;line-height:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.middle-section[_ngcontent-%COMP%]   .wolt-time-select[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-label-content .shipping-option .shipping-option-title .subtitle{font-size:14px;font-weight:400;line-height:22px;color:#8d8d8d}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;line-height:22px;margin:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:16px;line-height:20px;margin:0}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-groups[_ngcontent-%COMP%]{display:flex;gap:16px;width:100%}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-groups[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-groups[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;width:100%}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]{background-color:#dae8cd;padding:20px;border-radius:8px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-intervals[_ngcontent-%COMP%]   .shipping-interval-group[_ngcontent-%COMP%]   mat-radio-button[_ngcontent-%COMP%]     .mat-radio-outer-circle{background-color:#fff}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]{gap:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]   .date[_ngcontent-%COMP%]{font-size:14px;font-weight:700}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-gorup-mobile[_ngcontent-%COMP%]   button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{gap:34px}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]   .shipping-fastest-group[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%]   .no-date[_ngcontent-%COMP%]{color:var(--warn-color)}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{display:flex;padding:8px 16px;border-radius:8px;border:2px solid #8d8d8d;box-sizing:border-box;height:70px;width:100%;align-items:center;justify-content:space-between;font-weight:700}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.shipping-fastest[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;gap:27px;align-items:center}[_nghost-%COMP%]   form[_ngcontent-%COMP%]   section.short-intervals[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.2em}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{display:flex;box-sizing:border-box;flex-direction:column;align-items:center;width:100%;padding:16px 24px 24px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]{flex:0 0 auto;justify-self:flex-end;flex-direction:row;justify-content:space-between;padding-bottom:16px}}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{flex:0 0 auto;height:48px;width:auto}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.save-button[_ngcontent-%COMP%]{align-self:flex-end}[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:none;align-self:flex-start}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .dialog-options[_ngcontent-%COMP%]   app-text-button.close-button[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   .loading[_ngcontent-%COMP%]{grid-column:1/span 2;display:flex;justify-content:center;align-items:center}"]})}return Tt})()},3823:(Je,Rt,c)=>{"use strict";c.d(Rt,{u:()=>x});var o=c(6676),g=c(5879);let x=(()=>{class l{transform(R){const f=o(),t={...R.productDeliveryLimit?.intervals?.find(O=>o(O.to).isSameOrAfter(f,"date"))};return o(t.from).isSameOrBefore(f,"date")&&(t.from=f.toISOString()),t}static#t=this.\u0275fac=function(f){return new(f||l)};static#e=this.\u0275pipe=g.Yjl({name:"limit",type:l,pure:!0})}return l})()},4754:(Je,Rt,c)=>{"use strict";c.d(Rt,{k:()=>g});var o=c(5879),e=c(7954);let g=(()=>{class x{constructor(i){this.themeService=i}transform(i){return this.themeService.isDagrofa&&(i="kr."),i}static#t=this.\u0275fac=function(R){return new(R||x)(o.Y36(e.fY,16))};static#e=this.\u0275pipe=o.Yjl({name:"displayCurrency",type:x,pure:!0})}return x})()},3991:(Je,Rt,c)=>{"use strict";c.d(Rt,{I:()=>x});var o=c(7299),e=c(5879),g=c(8750);let x=(()=>{class l{constructor(R){this.deviceService=R,this.imageEndpoint=`${o.environment.cmsOrigin}`}transform(R,f=25,t=500){return R?this.deviceService.isMobile()?`${this.imageEndpoint}${R}?quality=75&width=${t}&height=500&mode=max&autorotate=true`:`${this.imageEndpoint}${R}`:"assets/placeholder.png"}static#t=this.\u0275fac=function(f){return new(f||l)(e.Y36(g.x0,16))};static#e=this.\u0275pipe=e.Yjl({name:"cms",type:l,pure:!0})}return l})()},6543:(Je,Rt,c)=>{"use strict";c.d(Rt,{Iw:()=>x.I,lb:()=>t.l,V2:()=>i.V,B5:()=>R.B,ki:()=>l.k}),c(7299),c(3823);var x=c(3991),l=c(1408),i=c(9696),R=c(3449),t=(c(3176),c(1028));c(4754)},1028:(Je,Rt,c)=>{"use strict";c.d(Rt,{l:()=>e});var o=c(5879);let e=(()=>{class g{transform(l,i){return l&&l.replace("{price}",i.toString()),l}static#t=this.\u0275fac=function(i){return new(i||g)};static#e=this.\u0275pipe=o.Yjl({name:"missingPrice",type:g,pure:!0})}return g})()},1408:(Je,Rt,c)=>{"use strict";c.d(Rt,{k:()=>e});var o=c(5879);let e=(()=>{class g{transform(l){if(!this.isProductComposition(l))return;const i=[];for(const R of Object.values(l.moduleChoices))for(const f of Object.values(R.products))i.push(f);return i}isProductComposition(l){return void 0!==l.moduleChoices}static#t=this.\u0275fac=function(i){return new(i||g)};static#e=this.\u0275pipe=o.Yjl({name:"modules",type:g,pure:!0})}return g})()},9696:(Je,Rt,c)=>{"use strict";c.d(Rt,{V:()=>e});var o=c(5879);let e=(()=>{class g{constructor(){this.pdfNameRegex=/.+\/(.*?)\.[a-zA-Z]+$/g}transform(l){if(l){const i=this.pdfNameRegex.exec(l),R=i&&2==i.length?i[1]?.replace(/-/g," ")?.replaceAll("aa","\xe5")?.replaceAll("ae","\xe6")?.replaceAll("oe","\xf8"):l;return R?`${R.charAt(0).toUpperCase()}${R.slice(1)}`:l}return l}static#t=this.\u0275fac=function(i){return new(i||g)};static#e=this.\u0275pipe=o.Yjl({name:"pdfName",type:g,pure:!0})}return g})()},3449:(Je,Rt,c)=>{"use strict";c.d(Rt,{B:()=>e});var o=c(5879);let e=(()=>{class g{transform(...l){let i=0;for(const R of l){if(!R)continue;const f=R.quantity;if(i+=R.price*f,R.moduleLines)for(const t of R.moduleLines)i+=t.price*t.quantity*f}return i}static#t=this.\u0275fac=function(i){return new(i||g)};static#e=this.\u0275pipe=o.Yjl({name:"sum",type:g,pure:!0})}return g})()},3176:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>g});var o=c(7299),e=c(5879);let g=(()=>{class x{constructor(){this.imageEndpoint=`${o.environment.cmsOrigin}`}transform(i){return i?.primaryImageUrl?`${this.imageEndpoint}${i?.primaryImageUrl}`:"assets/placeholder.png"}static#t=this.\u0275fac=function(R){return new(R||x)};static#e=this.\u0275pipe=e.Yjl({name:"source",type:x,pure:!0})}return x})()},4918:(Je,Rt,c)=>{"use strict";c.d(Rt,{A:()=>g});var o=c(5879),e=c(6593);let g=(()=>{class x{constructor(i){this.sanitizer=i}transform(i){return this.sanitizer.bypassSecurityTrustHtml(i)}static#t=this.\u0275fac=function(R){return new(R||x)(o.Y36(e.H7,16))};static#e=this.\u0275pipe=o.Yjl({name:"sanitizeHtml",type:x,pure:!0})}return x})()},7299:(Je,Rt,c)=>{"use strict";c.d(Rt,{environment:()=>e});const e={production:!1,analytics:!1,defaultPort:4201,cmsOrigin:"https://nxtumbraco.azurewebsites.net",apiOrigin:"https://nxtecom.azurewebsites.net",signaturGruppen_BrokerOgirin:"https://netseidbroker.dk",i18n:{language:"da-DK",currency:"DKK",country:"Danmark"},urls:{content:{trade_conditions:"handelsbetingelser",gdpr:"persondatapolitik",cookie_policy:"cookiepolitik",questions_and_answers:"sp\xf8rgsm\xe5l-og-svar",contact_us:"kontakt-os",merchant_content:"artikler",customer_service:"kundeservice"},products:"produkter",gift_card:"gavekort",basket:"kurv",orders:"ordre",checkout:"checkout",confirmation:"confirmation",member_set_password:"member-login",page_not_found:"404"},production:!0,analytics:!0}},357:(Je,Rt,c)=>{"use strict";var o=c(6593),e=c(5879),g=c(5914),x=c(4004),l=c(9862),i=c(6825);function f(E){return new e.vHH(3e3,!1)}function yt(E){switch(E.length){case 0:return new i.ZN;case 1:return E[0];default:return new i.ZE(E)}}function ee(E,b,h=new Map,P=new Map){const W=[],Yt=[];let we=-1,Ze=null;if(b.forEach(an=>{const On=an.get("offset"),zn=On==we,Jn=zn&&Ze||new Map;an.forEach((qi,Bi)=>{let vi=Bi,_i=qi;if("offset"!==Bi)switch(vi=E.normalizePropertyName(vi,W),_i){case i.k1:_i=h.get(Bi);break;case i.l3:_i=P.get(Bi);break;default:_i=E.normalizeStyleValue(Bi,vi,_i,W)}Jn.set(vi,_i)}),zn||Yt.push(Jn),Ze=Jn,we=On}),W.length)throw function F(E){return new e.vHH(3502,!1)}();return Yt}function B(E,b,h,P){switch(b){case"start":E.onStart(()=>P(h&&At(h,"start",E)));break;case"done":E.onDone(()=>P(h&&At(h,"done",E)));break;case"destroy":E.onDestroy(()=>P(h&&At(h,"destroy",E)))}}function At(E,b,h){const Yt=st(E.element,E.triggerName,E.fromState,E.toState,b||E.phaseName,h.totalTime??E.totalTime,!!h.disabled),we=E._data;return null!=we&&(Yt._data=we),Yt}function st(E,b,h,P,W="",Yt=0,we){return{element:E,triggerName:b,fromState:h,toState:P,phaseName:W,totalTime:Yt,disabled:!!we}}function ie(E,b,h){let P=E.get(b);return P||E.set(b,P=h),P}function Ae(E){const b=E.indexOf(":");return[E.substring(1,b),E.slice(b+1)]}const en=(()=>typeof document>"u"?null:document.documentElement)();function In(E){const b=E.parentNode||E.host||null;return b===en?null:b}let jt=null,ft=!1;function me(E,b){for(;b;){if(b===E)return!0;b=In(b)}return!1}function De(E,b,h){if(h)return Array.from(E.querySelectorAll(b));const P=E.querySelector(b);return P?[P]:[]}let gn=(()=>{class E{validateStyleProperty(h){return function Gt(E){jt||(jt=function ve(){return typeof document<"u"?document.body:null}()||{},ft=!!jt.style&&"WebkitAppearance"in jt.style);let b=!0;return jt.style&&!function Ve(E){return"ebkit"==E.substring(1,6)}(E)&&(b=E in jt.style,!b&&ft&&(b="Webkit"+E.charAt(0).toUpperCase()+E.slice(1)in jt.style)),b}(h)}matchesElement(h,P){return!1}containsElement(h,P){return me(h,P)}getParentElement(h){return In(h)}query(h,P,W){return De(h,P,W)}computeStyle(h,P,W){return W||""}animate(h,P,W,Yt,we,Ze=[],an){return new i.ZN(W,Yt)}static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac})}return E})(),Xe=(()=>{class E{static#t=this.NOOP=new gn}return E})();const rn=1e3,Ft="ng-enter",be="ng-leave",qt="ng-trigger",Te=".ng-trigger",Me="ng-animating",_n=".ng-animating";function ce(E){if("number"==typeof E)return E;const b=E.match(/^(-?[\.\d]+)(m?s)/);return!b||b.length<2?0:ye(parseFloat(b[1]),b[2])}function ye(E,b){return"s"===b?E*rn:E}function Xt(E,b,h){return E.hasOwnProperty("duration")?E:function on(E,b,h){let W,Yt=0,we="";if("string"==typeof E){const Ze=E.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ze)return b.push(f()),{duration:0,delay:0,easing:""};W=ye(parseFloat(Ze[1]),Ze[2]);const an=Ze[3];null!=an&&(Yt=ye(parseFloat(an),Ze[4]));const On=Ze[5];On&&(we=On)}else W=E;if(!h){let Ze=!1,an=b.length;W<0&&(b.push(function t(){return new e.vHH(3100,!1)}()),Ze=!0),Yt<0&&(b.push(function y(){return new e.vHH(3101,!1)}()),Ze=!0),Ze&&b.splice(an,0,f())}return{duration:W,delay:Yt,easing:we}}(E,b,h)}function oe(E,b={}){return Object.keys(E).forEach(h=>{b[h]=E[h]}),b}function $e(E){const b=new Map;return Object.keys(E).forEach(h=>{b.set(h,E[h])}),b}function Ke(E,b=new Map,h){if(h)for(let[P,W]of h)b.set(P,W);for(let[P,W]of E)b.set(P,W);return b}function Oe(E,b,h){b.forEach((P,W)=>{const Yt=He(W);h&&!h.has(W)&&h.set(W,E.style[Yt]),E.style[Yt]=P})}function Qe(E,b){b.forEach((h,P)=>{const W=He(P);E.style[W]=""})}function et(E){return Array.isArray(E)?1==E.length?E[0]:(0,i.vP)(E):E}const it=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ot(E){let b=[];if("string"==typeof E){let h;for(;h=it.exec(E);)b.push(h[1]);it.lastIndex=0}return b}function Fe(E,b,h){const P=E.toString(),W=P.replace(it,(Yt,we)=>{let Ze=b[we];return null==Ze&&(h.push(function G(E){return new e.vHH(3003,!1)}()),Ze=""),Ze.toString()});return W==P?E:W}function Cn(E){const b=[];let h=E.next();for(;!h.done;)b.push(h.value),h=E.next();return b}const de=/-+([a-z0-9])/g;function He(E){return E.replace(de,(...b)=>b[1].toUpperCase())}function dn(E,b,h){switch(b.type){case 7:return E.visitTrigger(b,h);case 0:return E.visitState(b,h);case 1:return E.visitTransition(b,h);case 2:return E.visitSequence(b,h);case 3:return E.visitGroup(b,h);case 4:return E.visitAnimate(b,h);case 5:return E.visitKeyframes(b,h);case 6:return E.visitStyle(b,h);case 8:return E.visitReference(b,h);case 9:return E.visitAnimateChild(b,h);case 10:return E.visitAnimateRef(b,h);case 11:return E.visitQuery(b,h);case 12:return E.visitStagger(b,h);default:throw function U(E){return new e.vHH(3004,!1)}()}}function Tn(E,b){return window.getComputedStyle(E)[b]}const Ie="*";function We(E,b){const h=[];return"string"==typeof E?E.split(/\s*,\s*/).forEach(P=>function Mn(E,b,h){if(":"==E[0]){const an=function ci(E,b){switch(E){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(h,P)=>parseFloat(P)>parseFloat(h);case":decrement":return(h,P)=>parseFloat(P)<parseFloat(h);default:return b.push(function Ct(E){return new e.vHH(3016,!1)}()),"* => *"}}(E,h);if("function"==typeof an)return void b.push(an);E=an}const P=E.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==P||P.length<4)return h.push(function zt(E){return new e.vHH(3015,!1)}()),b;const W=P[1],Yt=P[2],we=P[3];b.push(Yi(W,we));"<"==Yt[0]&&!(W==Ie&&we==Ie)&&b.push(Yi(we,W))}(P,h,b)):h.push(E),h}const Ji=new Set(["true","1"]),Ei=new Set(["false","0"]);function Yi(E,b){const h=Ji.has(E)||Ei.has(E),P=Ji.has(b)||Ei.has(b);return(W,Yt)=>{let we=E==Ie||E==W,Ze=b==Ie||b==Yt;return!we&&h&&"boolean"==typeof W&&(we=W?Ji.has(E):Ei.has(E)),!Ze&&P&&"boolean"==typeof Yt&&(Ze=Yt?Ji.has(b):Ei.has(b)),we&&Ze}}const Mo=new RegExp("s*:selfs*,?","g");function Ai(E,b,h,P){return new io(E).build(b,h,P)}class io{constructor(b){this._driver=b}build(b,h,P){const W=new N(h);return this._resetContextStyleTimingState(W),dn(this,et(b),W)}_resetContextStyleTimingState(b){b.currentQuerySelector="",b.collectedStyles=new Map,b.collectedStyles.set("",new Map),b.currentTime=0}visitTrigger(b,h){let P=h.queryCount=0,W=h.depCount=0;const Yt=[],we=[];return"@"==b.name.charAt(0)&&h.errors.push(function ut(){return new e.vHH(3006,!1)}()),b.definitions.forEach(Ze=>{if(this._resetContextStyleTimingState(h),0==Ze.type){const an=Ze,On=an.name;On.toString().split(/\s*,\s*/).forEach(zn=>{an.name=zn,Yt.push(this.visitState(an,h))}),an.name=On}else if(1==Ze.type){const an=this.visitTransition(Ze,h);P+=an.queryCount,W+=an.depCount,we.push(an)}else h.errors.push(function Ht(){return new e.vHH(3007,!1)}())}),{type:7,name:b.name,states:Yt,transitions:we,queryCount:P,depCount:W,options:null}}visitState(b,h){const P=this.visitStyle(b.styles,h),W=b.options&&b.options.params||null;if(P.containsDynamicStyles){const Yt=new Set,we=W||{};P.styles.forEach(Ze=>{Ze instanceof Map&&Ze.forEach(an=>{Ot(an).forEach(On=>{we.hasOwnProperty(On)||Yt.add(On)})})}),Yt.size&&(Cn(Yt.values()),h.errors.push(function A(E,b){return new e.vHH(3008,!1)}()))}return{type:0,name:b.name,style:P,options:W?{params:W}:null}}visitTransition(b,h){h.queryCount=0,h.depCount=0;const P=dn(this,et(b.animation),h);return{type:1,matchers:We(b.expr,h.errors),animation:P,queryCount:h.queryCount,depCount:h.depCount,options:fe(b.options)}}visitSequence(b,h){return{type:2,steps:b.steps.map(P=>dn(this,P,h)),options:fe(b.options)}}visitGroup(b,h){const P=h.currentTime;let W=0;const Yt=b.steps.map(we=>{h.currentTime=P;const Ze=dn(this,we,h);return W=Math.max(W,h.currentTime),Ze});return h.currentTime=W,{type:3,steps:Yt,options:fe(b.options)}}visitAnimate(b,h){const P=function kt(E,b){if(E.hasOwnProperty("duration"))return E;if("number"==typeof E)return sn(Xt(E,b).duration,0,"");const h=E;if(h.split(/\s+/).some(Yt=>"{"==Yt.charAt(0)&&"{"==Yt.charAt(1))){const Yt=sn(0,0,"");return Yt.dynamic=!0,Yt.strValue=h,Yt}const W=Xt(h,b);return sn(W.duration,W.delay,W.easing)}(b.timings,h.errors);h.currentAnimateTimings=P;let W,Yt=b.styles?b.styles:(0,i.oB)({});if(5==Yt.type)W=this.visitKeyframes(Yt,h);else{let we=b.styles,Ze=!1;if(!we){Ze=!0;const On={};P.easing&&(On.easing=P.easing),we=(0,i.oB)(On)}h.currentTime+=P.duration+P.delay;const an=this.visitStyle(we,h);an.isEmptyStep=Ze,W=an}return h.currentAnimateTimings=null,{type:4,timings:P,style:W,options:null}}visitStyle(b,h){const P=this._makeStyleAst(b,h);return this._validateStyleAst(P,h),P}_makeStyleAst(b,h){const P=[],W=Array.isArray(b.styles)?b.styles:[b.styles];for(let Ze of W)"string"==typeof Ze?Ze===i.l3?P.push(Ze):h.errors.push(new e.vHH(3002,!1)):P.push($e(Ze));let Yt=!1,we=null;return P.forEach(Ze=>{if(Ze instanceof Map&&(Ze.has("easing")&&(we=Ze.get("easing"),Ze.delete("easing")),!Yt))for(let an of Ze.values())if(an.toString().indexOf("{{")>=0){Yt=!0;break}}),{type:6,styles:P,easing:we,offset:b.offset,containsDynamicStyles:Yt,options:null}}_validateStyleAst(b,h){const P=h.currentAnimateTimings;let W=h.currentTime,Yt=h.currentTime;P&&Yt>0&&(Yt-=P.duration+P.delay),b.styles.forEach(we=>{"string"!=typeof we&&we.forEach((Ze,an)=>{const On=h.collectedStyles.get(h.currentQuerySelector),zn=On.get(an);let Jn=!0;zn&&(Yt!=W&&Yt>=zn.startTime&&W<=zn.endTime&&(h.errors.push(function ct(E,b,h,P,W){return new e.vHH(3010,!1)}()),Jn=!1),Yt=zn.startTime),Jn&&On.set(an,{startTime:Yt,endTime:W}),h.options&&function nt(E,b,h){const P=b.params||{},W=Ot(E);W.length&&W.forEach(Yt=>{P.hasOwnProperty(Yt)||h.push(function O(E){return new e.vHH(3001,!1)}())})}(Ze,h.options,h.errors)})})}visitKeyframes(b,h){const P={type:5,styles:[],options:null};if(!h.currentAnimateTimings)return h.errors.push(function _(){return new e.vHH(3011,!1)}()),P;let Yt=0;const we=[];let Ze=!1,an=!1,On=0;const zn=b.steps.map(Vo=>{const xr=this._makeStyleAst(Vo,h);let Rr=null!=xr.offset?xr.offset:function Zt(E){if("string"==typeof E)return null;let b=null;if(Array.isArray(E))E.forEach(h=>{if(h instanceof Map&&h.has("offset")){const P=h;b=parseFloat(P.get("offset")),P.delete("offset")}});else if(E instanceof Map&&E.has("offset")){const h=E;b=parseFloat(h.get("offset")),h.delete("offset")}return b}(xr.styles),lr=0;return null!=Rr&&(Yt++,lr=xr.offset=Rr),an=an||lr<0||lr>1,Ze=Ze||lr<On,On=lr,we.push(lr),xr});an&&h.errors.push(function j(){return new e.vHH(3012,!1)}()),Ze&&h.errors.push(function q(){return new e.vHH(3200,!1)}());const Jn=b.steps.length;let qi=0;Yt>0&&Yt<Jn?h.errors.push(function ht(){return new e.vHH(3202,!1)}()):0==Yt&&(qi=1/(Jn-1));const Bi=Jn-1,vi=h.currentTime,_i=h.currentAnimateTimings,no=_i.duration;return zn.forEach((Vo,xr)=>{const Rr=qi>0?xr==Bi?1:qi*xr:we[xr],lr=Rr*no;h.currentTime=vi+_i.delay+lr,_i.duration=lr,this._validateStyleAst(Vo,h),Vo.offset=Rr,P.styles.push(Vo)}),P}visitReference(b,h){return{type:8,animation:dn(this,et(b.animation),h),options:fe(b.options)}}visitAnimateChild(b,h){return h.depCount++,{type:9,options:fe(b.options)}}visitAnimateRef(b,h){return{type:10,animation:this.visitReference(b.animation,h),options:fe(b.options)}}visitQuery(b,h){const P=h.currentQuerySelector,W=b.options||{};h.queryCount++,h.currentQuery=b;const[Yt,we]=function Ye(E){const b=!!E.split(/\s*,\s*/).find(h=>":self"==h);return b&&(E=E.replace(Mo,"")),E=E.replace(/@\*/g,Te).replace(/@\w+/g,h=>Te+"-"+h.slice(1)).replace(/:animating/g,_n),[E,b]}(b.selector);h.currentQuerySelector=P.length?P+" "+Yt:Yt,ie(h.collectedStyles,h.currentQuerySelector,new Map);const Ze=dn(this,et(b.animation),h);return h.currentQuery=null,h.currentQuerySelector=P,{type:11,selector:Yt,limit:W.limit||0,optional:!!W.optional,includeSelf:we,animation:Ze,originalSelector:b.selector,options:fe(b.options)}}visitStagger(b,h){h.currentQuery||h.errors.push(function vt(){return new e.vHH(3013,!1)}());const P="full"===b.timings?{duration:0,delay:0,easing:"full"}:Xt(b.timings,h.errors,!0);return{type:12,animation:dn(this,et(b.animation),h),timings:P,options:null}}}class N{constructor(b){this.errors=b,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function fe(E){return E?(E=oe(E)).params&&(E.params=function Sn(E){return E?oe(E):null}(E.params)):E={},E}function sn(E,b,h){return{duration:E,delay:b,easing:h}}function Gn(E,b,h,P,W,Yt,we=null,Ze=!1){return{type:1,element:E,keyframes:b,preStyleProps:h,postStyleProps:P,duration:W,delay:Yt,totalTime:W+Yt,easing:we,subTimeline:Ze}}class Do{constructor(){this._map=new Map}get(b){return this._map.get(b)||[]}append(b,h){let P=this._map.get(b);P||this._map.set(b,P=[]),P.push(...h)}has(b){return this._map.has(b)}clear(){this._map.clear()}}const Ut=new RegExp(":enter","g"),Bt=new RegExp(":leave","g");function he(E,b,h,P,W,Yt=new Map,we=new Map,Ze,an,On=[]){return(new Be).buildKeyframes(E,b,h,P,W,Yt,we,Ze,an,On)}class Be{buildKeyframes(b,h,P,W,Yt,we,Ze,an,On,zn=[]){On=On||new Do;const Jn=new Fn(b,h,On,W,Yt,zn,[]);Jn.options=an;const qi=an.delay?ce(an.delay):0;Jn.currentTimeline.delayNextStep(qi),Jn.currentTimeline.setStyles([we],null,Jn.errors,an),dn(this,P,Jn);const Bi=Jn.timelines.filter(vi=>vi.containsAnimation());if(Bi.length&&Ze.size){let vi;for(let _i=Bi.length-1;_i>=0;_i--){const no=Bi[_i];if(no.element===h){vi=no;break}}vi&&!vi.allowOnlyTimelineStyles()&&vi.setStyles([Ze],null,Jn.errors,an)}return Bi.length?Bi.map(vi=>vi.buildKeyframes()):[Gn(h,[],[],[],0,qi,"",!1)]}visitTrigger(b,h){}visitState(b,h){}visitTransition(b,h){}visitAnimateChild(b,h){const P=h.subInstructions.get(h.element);if(P){const W=h.createSubContext(b.options),Yt=h.currentTimeline.currentTime,we=this._visitSubInstructions(P,W,W.options);Yt!=we&&h.transformIntoNewTimeline(we)}h.previousNode=b}visitAnimateRef(b,h){const P=h.createSubContext(b.options);P.transformIntoNewTimeline(),this._applyAnimationRefDelays([b.options,b.animation.options],h,P),this.visitReference(b.animation,P),h.transformIntoNewTimeline(P.currentTimeline.currentTime),h.previousNode=b}_applyAnimationRefDelays(b,h,P){for(const W of b){const Yt=W?.delay;if(Yt){const we="number"==typeof Yt?Yt:ce(Fe(Yt,W?.params??{},h.errors));P.delayNextStep(we)}}}_visitSubInstructions(b,h,P){let Yt=h.currentTimeline.currentTime;const we=null!=P.duration?ce(P.duration):null,Ze=null!=P.delay?ce(P.delay):null;return 0!==we&&b.forEach(an=>{const On=h.appendInstructionToTimeline(an,we,Ze);Yt=Math.max(Yt,On.duration+On.delay)}),Yt}visitReference(b,h){h.updateOptions(b.options,!0),dn(this,b.animation,h),h.previousNode=b}visitSequence(b,h){const P=h.subContextCount;let W=h;const Yt=b.options;if(Yt&&(Yt.params||Yt.delay)&&(W=h.createSubContext(Yt),W.transformIntoNewTimeline(),null!=Yt.delay)){6==W.previousNode.type&&(W.currentTimeline.snapshotCurrentStyles(),W.previousNode=xn);const we=ce(Yt.delay);W.delayNextStep(we)}b.steps.length&&(b.steps.forEach(we=>dn(this,we,W)),W.currentTimeline.applyStylesToKeyframe(),W.subContextCount>P&&W.transformIntoNewTimeline()),h.previousNode=b}visitGroup(b,h){const P=[];let W=h.currentTimeline.currentTime;const Yt=b.options&&b.options.delay?ce(b.options.delay):0;b.steps.forEach(we=>{const Ze=h.createSubContext(b.options);Yt&&Ze.delayNextStep(Yt),dn(this,we,Ze),W=Math.max(W,Ze.currentTimeline.currentTime),P.push(Ze.currentTimeline)}),P.forEach(we=>h.currentTimeline.mergeTimelineCollectedStyles(we)),h.transformIntoNewTimeline(W),h.previousNode=b}_visitTiming(b,h){if(b.dynamic){const P=b.strValue;return Xt(h.params?Fe(P,h.params,h.errors):P,h.errors)}return{duration:b.duration,delay:b.delay,easing:b.easing}}visitAnimate(b,h){const P=h.currentAnimateTimings=this._visitTiming(b.timings,h),W=h.currentTimeline;P.delay&&(h.incrementTime(P.delay),W.snapshotCurrentStyles());const Yt=b.style;5==Yt.type?this.visitKeyframes(Yt,h):(h.incrementTime(P.duration),this.visitStyle(Yt,h),W.applyStylesToKeyframe()),h.currentAnimateTimings=null,h.previousNode=b}visitStyle(b,h){const P=h.currentTimeline,W=h.currentAnimateTimings;!W&&P.hasCurrentStyleProperties()&&P.forwardFrame();const Yt=W&&W.easing||b.easing;b.isEmptyStep?P.applyEmptyStep(Yt):P.setStyles(b.styles,Yt,h.errors,h.options),h.previousNode=b}visitKeyframes(b,h){const P=h.currentAnimateTimings,W=h.currentTimeline.duration,Yt=P.duration,Ze=h.createSubContext().currentTimeline;Ze.easing=P.easing,b.styles.forEach(an=>{Ze.forwardTime((an.offset||0)*Yt),Ze.setStyles(an.styles,an.easing,h.errors,h.options),Ze.applyStylesToKeyframe()}),h.currentTimeline.mergeTimelineCollectedStyles(Ze),h.transformIntoNewTimeline(W+Yt),h.previousNode=b}visitQuery(b,h){const P=h.currentTimeline.currentTime,W=b.options||{},Yt=W.delay?ce(W.delay):0;Yt&&(6===h.previousNode.type||0==P&&h.currentTimeline.hasCurrentStyleProperties())&&(h.currentTimeline.snapshotCurrentStyles(),h.previousNode=xn);let we=P;const Ze=h.invokeQuery(b.selector,b.originalSelector,b.limit,b.includeSelf,!!W.optional,h.errors);h.currentQueryTotal=Ze.length;let an=null;Ze.forEach((On,zn)=>{h.currentQueryIndex=zn;const Jn=h.createSubContext(b.options,On);Yt&&Jn.delayNextStep(Yt),On===h.element&&(an=Jn.currentTimeline),dn(this,b.animation,Jn),Jn.currentTimeline.applyStylesToKeyframe(),we=Math.max(we,Jn.currentTimeline.currentTime)}),h.currentQueryIndex=0,h.currentQueryTotal=0,h.transformIntoNewTimeline(we),an&&(h.currentTimeline.mergeTimelineCollectedStyles(an),h.currentTimeline.snapshotCurrentStyles()),h.previousNode=b}visitStagger(b,h){const P=h.parentContext,W=h.currentTimeline,Yt=b.timings,we=Math.abs(Yt.duration),Ze=we*(h.currentQueryTotal-1);let an=we*h.currentQueryIndex;switch(Yt.duration<0?"reverse":Yt.easing){case"reverse":an=Ze-an;break;case"full":an=P.currentStaggerTime}const zn=h.currentTimeline;an&&zn.delayNextStep(an);const Jn=zn.currentTime;dn(this,b.animation,h),h.previousNode=b,P.currentStaggerTime=W.currentTime-Jn+(W.startTime-P.currentTimeline.startTime)}}const xn={};class Fn{constructor(b,h,P,W,Yt,we,Ze,an){this._driver=b,this.element=h,this.subInstructions=P,this._enterClassName=W,this._leaveClassName=Yt,this.errors=we,this.timelines=Ze,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=xn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=an||new li(this._driver,h,0),Ze.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(b,h){if(!b)return;const P=b;let W=this.options;null!=P.duration&&(W.duration=ce(P.duration)),null!=P.delay&&(W.delay=ce(P.delay));const Yt=P.params;if(Yt){let we=W.params;we||(we=this.options.params={}),Object.keys(Yt).forEach(Ze=>{(!h||!we.hasOwnProperty(Ze))&&(we[Ze]=Fe(Yt[Ze],we,this.errors))})}}_copyOptions(){const b={};if(this.options){const h=this.options.params;if(h){const P=b.params={};Object.keys(h).forEach(W=>{P[W]=h[W]})}}return b}createSubContext(b=null,h,P){const W=h||this.element,Yt=new Fn(this._driver,W,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(W,P||0));return Yt.previousNode=this.previousNode,Yt.currentAnimateTimings=this.currentAnimateTimings,Yt.options=this._copyOptions(),Yt.updateOptions(b),Yt.currentQueryIndex=this.currentQueryIndex,Yt.currentQueryTotal=this.currentQueryTotal,Yt.parentContext=this,this.subContextCount++,Yt}transformIntoNewTimeline(b){return this.previousNode=xn,this.currentTimeline=this.currentTimeline.fork(this.element,b),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(b,h,P){const W={duration:h??b.duration,delay:this.currentTimeline.currentTime+(P??0)+b.delay,easing:""},Yt=new ji(this._driver,b.element,b.keyframes,b.preStyleProps,b.postStyleProps,W,b.stretchStartingKeyframe);return this.timelines.push(Yt),W}incrementTime(b){this.currentTimeline.forwardTime(this.currentTimeline.duration+b)}delayNextStep(b){b>0&&this.currentTimeline.delayNextStep(b)}invokeQuery(b,h,P,W,Yt,we){let Ze=[];if(W&&Ze.push(this.element),b.length>0){b=(b=b.replace(Ut,"."+this._enterClassName)).replace(Bt,"."+this._leaveClassName);let On=this._driver.query(this.element,b,1!=P);0!==P&&(On=P<0?On.slice(On.length+P,On.length):On.slice(0,P)),Ze.push(...On)}return!Yt&&0==Ze.length&&we.push(function gt(E){return new e.vHH(3014,!1)}()),Ze}}class li{constructor(b,h,P,W){this._driver=b,this.element=h,this.startTime=P,this._elementTimelineStylesLookup=W,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(h),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(h,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(b){const h=1===this._keyframes.size&&this._pendingStyles.size;this.duration||h?(this.forwardTime(this.currentTime+b),h&&this.snapshotCurrentStyles()):this.startTime+=b}fork(b,h){return this.applyStylesToKeyframe(),new li(this._driver,b,h||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(b){this.applyStylesToKeyframe(),this.duration=b,this._loadKeyframe()}_updateStyle(b,h){this._localTimelineStyles.set(b,h),this._globalTimelineStyles.set(b,h),this._styleSummary.set(b,{time:this.currentTime,value:h})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(b){b&&this._previousKeyframe.set("easing",b);for(let[h,P]of this._globalTimelineStyles)this._backFill.set(h,P||i.l3),this._currentKeyframe.set(h,i.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(b,h,P,W){h&&this._previousKeyframe.set("easing",h);const Yt=W&&W.params||{},we=function Wi(E,b){const h=new Map;let P;return E.forEach(W=>{if("*"===W){P=P||b.keys();for(let Yt of P)h.set(Yt,i.l3)}else Ke(W,h)}),h}(b,this._globalTimelineStyles);for(let[Ze,an]of we){const On=Fe(an,Yt,P);this._pendingStyles.set(Ze,On),this._localTimelineStyles.has(Ze)||this._backFill.set(Ze,this._globalTimelineStyles.get(Ze)??i.l3),this._updateStyle(Ze,On)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((b,h)=>{this._currentKeyframe.set(h,b)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((b,h)=>{this._currentKeyframe.has(h)||this._currentKeyframe.set(h,b)}))}snapshotCurrentStyles(){for(let[b,h]of this._localTimelineStyles)this._pendingStyles.set(b,h),this._updateStyle(b,h)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const b=[];for(let h in this._currentKeyframe)b.push(h);return b}mergeTimelineCollectedStyles(b){b._styleSummary.forEach((h,P)=>{const W=this._styleSummary.get(P);(!W||h.time>W.time)&&this._updateStyle(P,h.value)})}buildKeyframes(){this.applyStylesToKeyframe();const b=new Set,h=new Set,P=1===this._keyframes.size&&0===this.duration;let W=[];this._keyframes.forEach((Ze,an)=>{const On=Ke(Ze,new Map,this._backFill);On.forEach((zn,Jn)=>{zn===i.k1?b.add(Jn):zn===i.l3&&h.add(Jn)}),P||On.set("offset",an/this.duration),W.push(On)});const Yt=b.size?Cn(b.values()):[],we=h.size?Cn(h.values()):[];if(P){const Ze=W[0],an=new Map(Ze);Ze.set("offset",0),an.set("offset",1),W=[Ze,an]}return Gn(this.element,W,Yt,we,this.duration,this.startTime,this.easing,!1)}}class ji extends li{constructor(b,h,P,W,Yt,we,Ze=!1){super(b,h,we.delay),this.keyframes=P,this.preStyleProps=W,this.postStyleProps=Yt,this._stretchStartingKeyframe=Ze,this.timings={duration:we.duration,delay:we.delay,easing:we.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let b=this.keyframes,{delay:h,duration:P,easing:W}=this.timings;if(this._stretchStartingKeyframe&&h){const Yt=[],we=P+h,Ze=h/we,an=Ke(b[0]);an.set("offset",0),Yt.push(an);const On=Ke(b[0]);On.set("offset",wo(Ze)),Yt.push(On);const zn=b.length-1;for(let Jn=1;Jn<=zn;Jn++){let qi=Ke(b[Jn]);const Bi=qi.get("offset");qi.set("offset",wo((h+Bi*P)/we)),Yt.push(qi)}P=we,h=0,W="",b=Yt}return Gn(this.element,b,this.preStyleProps,this.postStyleProps,P,h,W,!0)}}function wo(E,b=3){const h=Math.pow(10,b-1);return Math.round(E*h)/h}class Xi{}const Ho=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 ko extends Xi{normalizePropertyName(b,h){return He(b)}normalizeStyleValue(b,h,P,W){let Yt="";const we=P.toString().trim();if(Ho.has(h)&&0!==P&&"0"!==P)if("number"==typeof P)Yt="px";else{const Ze=P.match(/^[+-]?[\d\.]+([a-z]*)$/);Ze&&0==Ze[1].length&&W.push(function lt(E,b){return new e.vHH(3005,!1)}())}return we+Yt}}function ii(E,b,h,P,W,Yt,we,Ze,an,On,zn,Jn,qi){return{type:0,element:E,triggerName:b,isRemovalTransition:W,fromState:h,fromStyles:Yt,toState:P,toStyles:we,timelines:Ze,queriedElements:an,preStyleProps:On,postStyleProps:zn,totalTime:Jn,errors:qi}}const lo={};class xo{constructor(b,h,P){this._triggerName=b,this.ast=h,this._stateStyles=P}match(b,h,P,W){return function Eo(E,b,h,P,W){return E.some(Yt=>Yt(b,h,P,W))}(this.ast.matchers,b,h,P,W)}buildStyles(b,h,P){let W=this._stateStyles.get("*");return void 0!==b&&(W=this._stateStyles.get(b?.toString())||W),W?W.buildStyles(h,P):new Map}build(b,h,P,W,Yt,we,Ze,an,On,zn){const Jn=[],qi=this.ast.options&&this.ast.options.params||lo,vi=this.buildStyles(P,Ze&&Ze.params||lo,Jn),_i=an&&an.params||lo,no=this.buildStyles(W,_i,Jn),Vo=new Set,xr=new Map,Rr=new Map,lr="void"===W,Cc={params:wr(_i,qi),delay:this.ast.options?.delay},ca=zn?[]:he(b,h,this.ast.animation,Yt,we,vi,no,Cc,On,Jn);let os=0;if(ca.forEach(_a=>{os=Math.max(_a.duration+_a.delay,os)}),Jn.length)return ii(h,this._triggerName,P,W,lr,vi,no,[],[],xr,Rr,os,Jn);ca.forEach(_a=>{const la=_a.element,vc=ie(xr,la,new Set);_a.preStyleProps.forEach(va=>vc.add(va));const Ca=ie(Rr,la,new Set);_a.postStyleProps.forEach(va=>Ca.add(va)),la!==h&&Vo.add(la)});const fa=Cn(Vo.values());return ii(h,this._triggerName,P,W,lr,vi,no,ca,fa,xr,Rr,os)}}function wr(E,b){const h=oe(b);for(const P in E)E.hasOwnProperty(P)&&null!=E[P]&&(h[P]=E[P]);return h}class ur{constructor(b,h,P){this.styles=b,this.defaultParams=h,this.normalizer=P}buildStyles(b,h){const P=new Map,W=oe(this.defaultParams);return Object.keys(b).forEach(Yt=>{const we=b[Yt];null!==we&&(W[Yt]=we)}),this.styles.styles.forEach(Yt=>{"string"!=typeof Yt&&Yt.forEach((we,Ze)=>{we&&(we=Fe(we,W,h));const an=this.normalizer.normalizePropertyName(Ze,h);we=this.normalizer.normalizeStyleValue(Ze,an,we,h),P.set(Ze,we)})}),P}}class Mt{constructor(b,h,P){this.name=b,this.ast=h,this._normalizer=P,this.transitionFactories=[],this.states=new Map,h.states.forEach(W=>{this.states.set(W.name,new ur(W.style,W.options&&W.options.params||{},P))}),ge(this.states,"true","1"),ge(this.states,"false","0"),h.transitions.forEach(W=>{this.transitionFactories.push(new xo(b,W,this.states))}),this.fallbackTransition=function Kt(E,b,h){return new xo(E,{type:1,animation:{type:2,steps:[],options:null},matchers:[(we,Ze)=>!0],options:null,queryCount:0,depCount:0},b)}(b,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(b,h,P,W){return this.transitionFactories.find(we=>we.match(b,h,P,W))||null}matchStyles(b,h,P){return this.fallbackTransition.buildStyles(b,h,P)}}function ge(E,b,h){E.has(b)?E.has(h)||E.set(h,E.get(b)):E.has(h)&&E.set(b,E.get(h))}const Pe=new Do;class un{constructor(b,h,P){this.bodyNode=b,this._driver=h,this._normalizer=P,this._animations=new Map,this._playersById=new Map,this.players=[]}register(b,h){const P=[],Yt=Ai(this._driver,h,P,[]);if(P.length)throw function rt(E){return new e.vHH(3503,!1)}();this._animations.set(b,Yt)}_buildPlayer(b,h,P){const W=b.element,Yt=ee(this._normalizer,b.keyframes,h,P);return this._driver.animate(W,Yt,b.duration,b.delay,b.easing,[],!0)}create(b,h,P={}){const W=[],Yt=this._animations.get(b);let we;const Ze=new Map;if(Yt?(we=he(this._driver,h,Yt,Ft,be,new Map,new Map,P,Pe,W),we.forEach(zn=>{const Jn=ie(Ze,zn.element,new Map);zn.postStyleProps.forEach(qi=>Jn.set(qi,null))})):(W.push(function V(){return new e.vHH(3300,!1)}()),we=[]),W.length)throw function Pt(E){return new e.vHH(3504,!1)}();Ze.forEach((zn,Jn)=>{zn.forEach((qi,Bi)=>{zn.set(Bi,this._driver.computeStyle(Jn,Bi,i.l3))})});const On=yt(we.map(zn=>{const Jn=Ze.get(zn.element);return this._buildPlayer(zn,new Map,Jn)}));return this._playersById.set(b,On),On.onDestroy(()=>this.destroy(b)),this.players.push(On),On}destroy(b){const h=this._getPlayer(b);h.destroy(),this._playersById.delete(b);const P=this.players.indexOf(h);P>=0&&this.players.splice(P,1)}_getPlayer(b){const h=this._playersById.get(b);if(!h)throw function $t(E){return new e.vHH(3301,!1)}();return h}listen(b,h,P,W){const Yt=st(h,"","","");return B(this._getPlayer(b),P,Yt,W),()=>{}}command(b,h,P,W){if("register"==P)return void this.register(b,W[0]);if("create"==P)return void this.create(b,h,W[0]||{});const Yt=this._getPlayer(b);switch(P){case"play":Yt.play();break;case"pause":Yt.pause();break;case"reset":Yt.reset();break;case"restart":Yt.restart();break;case"finish":Yt.finish();break;case"init":Yt.init();break;case"setPosition":Yt.setPosition(parseFloat(W[0]));break;case"destroy":this.destroy(b)}}}const Dn="ng-animate-queued",Qn="ng-animate-disabled",pi=[],Gi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Zn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Li="__ng_removed";class So{get params(){return this.options.params}constructor(b,h=""){this.namespaceId=h;const P=b&&b.hasOwnProperty("value");if(this.value=function Jr(E){return E??null}(P?b.value:b),P){const Yt=oe(b);delete Yt.value,this.options=Yt}else this.options={};this.options.params||(this.options.params={})}absorbOptions(b){const h=b.params;if(h){const P=this.options.params;Object.keys(h).forEach(W=>{null==P[W]&&(P[W]=h[W])})}}}const mo="void",qn=new So(mo);class jo{constructor(b,h,P){this.id=b,this.hostElement=h,this._engine=P,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+b,Xn(h,this._hostClassName)}listen(b,h,P,W){if(!this._triggers.has(h))throw function Lt(E,b){return new e.vHH(3302,!1)}();if(null==P||0==P.length)throw function Jt(E){return new e.vHH(3303,!1)}();if(!function Pi(E){return"start"==E||"done"==E}(P))throw function Tt(E,b){return new e.vHH(3400,!1)}();const Yt=ie(this._elementListeners,b,[]),we={name:h,phase:P,callback:W};Yt.push(we);const Ze=ie(this._engine.statesByElement,b,new Map);return Ze.has(h)||(Xn(b,qt),Xn(b,qt+"-"+h),Ze.set(h,qn)),()=>{this._engine.afterFlush(()=>{const an=Yt.indexOf(we);an>=0&&Yt.splice(an,1),this._triggers.has(h)||Ze.delete(h)})}}register(b,h){return!this._triggers.has(b)&&(this._triggers.set(b,h),!0)}_getTrigger(b){const h=this._triggers.get(b);if(!h)throw function $(E){return new e.vHH(3401,!1)}();return h}trigger(b,h,P,W=!0){const Yt=this._getTrigger(h),we=new Ao(this.id,h,b);let Ze=this._engine.statesByElement.get(b);Ze||(Xn(b,qt),Xn(b,qt+"-"+h),this._engine.statesByElement.set(b,Ze=new Map));let an=Ze.get(h);const On=new So(P,this.id);if(!(P&&P.hasOwnProperty("value"))&&an&&On.absorbOptions(an.options),Ze.set(h,On),an||(an=qn),On.value!==mo&&an.value===On.value){if(!function gr(E,b){const h=Object.keys(E),P=Object.keys(b);if(h.length!=P.length)return!1;for(let W=0;W<h.length;W++){const Yt=h[W];if(!b.hasOwnProperty(Yt)||E[Yt]!==b[Yt])return!1}return!0}(an.params,On.params)){const _i=[],no=Yt.matchStyles(an.value,an.params,_i),Vo=Yt.matchStyles(On.value,On.params,_i);_i.length?this._engine.reportError(_i):this._engine.afterFlush(()=>{Qe(b,no),Oe(b,Vo)})}return}const qi=ie(this._engine.playersByElement,b,[]);qi.forEach(_i=>{_i.namespaceId==this.id&&_i.triggerName==h&&_i.queued&&_i.destroy()});let Bi=Yt.matchTransition(an.value,On.value,b,On.params),vi=!1;if(!Bi){if(!W)return;Bi=Yt.fallbackTransition,vi=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:b,triggerName:h,transition:Bi,fromState:an,toState:On,player:we,isFallbackTransition:vi}),vi||(Xn(b,Dn),we.onStart(()=>{Zo(b,Dn)})),we.onDone(()=>{let _i=this.players.indexOf(we);_i>=0&&this.players.splice(_i,1);const no=this._engine.playersByElement.get(b);if(no){let Vo=no.indexOf(we);Vo>=0&&no.splice(Vo,1)}}),this.players.push(we),qi.push(we),we}deregister(b){this._triggers.delete(b),this._engine.statesByElement.forEach(h=>h.delete(b)),this._elementListeners.forEach((h,P)=>{this._elementListeners.set(P,h.filter(W=>W.name!=b))})}clearElementCache(b){this._engine.statesByElement.delete(b),this._elementListeners.delete(b);const h=this._engine.playersByElement.get(b);h&&(h.forEach(P=>P.destroy()),this._engine.playersByElement.delete(b))}_signalRemovalForInnerTriggers(b,h){const P=this._engine.driver.query(b,Te,!0);P.forEach(W=>{if(W[Li])return;const Yt=this._engine.fetchNamespacesByElement(W);Yt.size?Yt.forEach(we=>we.triggerLeaveAnimation(W,h,!1,!0)):this.clearElementCache(W)}),this._engine.afterFlushAnimationsDone(()=>P.forEach(W=>this.clearElementCache(W)))}triggerLeaveAnimation(b,h,P,W){const Yt=this._engine.statesByElement.get(b),we=new Map;if(Yt){const Ze=[];if(Yt.forEach((an,On)=>{if(we.set(On,an.value),this._triggers.has(On)){const zn=this.trigger(b,On,mo,W);zn&&Ze.push(zn)}}),Ze.length)return this._engine.markElementAsRemoved(this.id,b,!0,h,we),P&&yt(Ze).onDone(()=>this._engine.processLeaveNode(b)),!0}return!1}prepareLeaveAnimationListeners(b){const h=this._elementListeners.get(b),P=this._engine.statesByElement.get(b);if(h&&P){const W=new Set;h.forEach(Yt=>{const we=Yt.name;if(W.has(we))return;W.add(we);const an=this._triggers.get(we).fallbackTransition,On=P.get(we)||qn,zn=new So(mo),Jn=new Ao(this.id,we,b);this._engine.totalQueuedPlayers++,this._queue.push({element:b,triggerName:we,transition:an,fromState:On,toState:zn,player:Jn,isFallbackTransition:!0})})}}removeNode(b,h){const P=this._engine;if(b.childElementCount&&this._signalRemovalForInnerTriggers(b,h),this.triggerLeaveAnimation(b,h,!0))return;let W=!1;if(P.totalAnimations){const Yt=P.players.length?P.playersByQueriedElement.get(b):[];if(Yt&&Yt.length)W=!0;else{let we=b;for(;we=we.parentNode;)if(P.statesByElement.get(we)){W=!0;break}}}if(this.prepareLeaveAnimationListeners(b),W)P.markElementAsRemoved(this.id,b,!1,h);else{const Yt=b[Li];(!Yt||Yt===Gi)&&(P.afterFlush(()=>this.clearElementCache(b)),P.destroyInnerAnimations(b),P._onRemovalComplete(b,h))}}insertNode(b,h){Xn(b,this._hostClassName)}drainQueuedTransitions(b){const h=[];return this._queue.forEach(P=>{const W=P.player;if(W.destroyed)return;const Yt=P.element,we=this._elementListeners.get(Yt);we&&we.forEach(Ze=>{if(Ze.name==P.triggerName){const an=st(Yt,P.triggerName,P.fromState.value,P.toState.value);an._data=b,B(P.player,Ze.phase,an,Ze.callback)}}),W.markedForDestroy?this._engine.afterFlush(()=>{W.destroy()}):h.push(P)}),this._queue=[],h.sort((P,W)=>{const Yt=P.transition.ast.depCount,we=W.transition.ast.depCount;return 0==Yt||0==we?Yt-we:this._engine.driver.containsElement(P.element,W.element)?1:-1})}destroy(b){this.players.forEach(h=>h.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,b)}}class Bo{_onRemovalComplete(b,h){this.onRemovalComplete(b,h)}constructor(b,h,P){this.bodyNode=b,this.driver=h,this._normalizer=P,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(W,Yt)=>{}}get queuedPlayers(){const b=[];return this._namespaceList.forEach(h=>{h.players.forEach(P=>{P.queued&&b.push(P)})}),b}createNamespace(b,h){const P=new jo(b,h,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,h)?this._balanceNamespaceList(P,h):(this.newHostElements.set(h,P),this.collectEnterElement(h)),this._namespaceLookup[b]=P}_balanceNamespaceList(b,h){const P=this._namespaceList,W=this.namespacesByHostElement;if(P.length-1>=0){let we=!1,Ze=this.driver.getParentElement(h);for(;Ze;){const an=W.get(Ze);if(an){const On=P.indexOf(an);P.splice(On+1,0,b),we=!0;break}Ze=this.driver.getParentElement(Ze)}we||P.unshift(b)}else P.push(b);return W.set(h,b),b}register(b,h){let P=this._namespaceLookup[b];return P||(P=this.createNamespace(b,h)),P}registerTrigger(b,h,P){let W=this._namespaceLookup[b];W&&W.register(h,P)&&this.totalAnimations++}destroy(b,h){b&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const P=this._fetchNamespace(b);this.namespacesByHostElement.delete(P.hostElement);const W=this._namespaceList.indexOf(P);W>=0&&this._namespaceList.splice(W,1),P.destroy(h),delete this._namespaceLookup[b]}))}_fetchNamespace(b){return this._namespaceLookup[b]}fetchNamespacesByElement(b){const h=new Set,P=this.statesByElement.get(b);if(P)for(let W of P.values())if(W.namespaceId){const Yt=this._fetchNamespace(W.namespaceId);Yt&&h.add(Yt)}return h}trigger(b,h,P,W){if(Ri(h)){const Yt=this._fetchNamespace(b);if(Yt)return Yt.trigger(h,P,W),!0}return!1}insertNode(b,h,P,W){if(!Ri(h))return;const Yt=h[Li];if(Yt&&Yt.setForRemoval){Yt.setForRemoval=!1,Yt.setForMove=!0;const we=this.collectedLeaveElements.indexOf(h);we>=0&&this.collectedLeaveElements.splice(we,1)}if(b){const we=this._fetchNamespace(b);we&&we.insertNode(h,P)}W&&this.collectEnterElement(h)}collectEnterElement(b){this.collectedEnterElements.push(b)}markElementAsDisabled(b,h){h?this.disabledNodes.has(b)||(this.disabledNodes.add(b),Xn(b,Qn)):this.disabledNodes.has(b)&&(this.disabledNodes.delete(b),Zo(b,Qn))}removeNode(b,h,P){if(Ri(h)){const W=b?this._fetchNamespace(b):null;W?W.removeNode(h,P):this.markElementAsRemoved(b,h,!1,P);const Yt=this.namespacesByHostElement.get(h);Yt&&Yt.id!==b&&Yt.removeNode(h,P)}else this._onRemovalComplete(h,P)}markElementAsRemoved(b,h,P,W,Yt){this.collectedLeaveElements.push(h),h[Li]={namespaceId:b,setForRemoval:W,hasAnimation:P,removedBeforeQueried:!1,previousTriggersValues:Yt}}listen(b,h,P,W,Yt){return Ri(h)?this._fetchNamespace(b).listen(h,P,W,Yt):()=>{}}_buildInstruction(b,h,P,W,Yt){return b.transition.build(this.driver,b.element,b.fromState.value,b.toState.value,P,W,b.fromState.options,b.toState.options,h,Yt)}destroyInnerAnimations(b){let h=this.driver.query(b,Te,!0);h.forEach(P=>this.destroyActiveAnimationsForElement(P)),0!=this.playersByQueriedElement.size&&(h=this.driver.query(b,_n,!0),h.forEach(P=>this.finishActiveQueriedAnimationOnElement(P)))}destroyActiveAnimationsForElement(b){const h=this.playersByElement.get(b);h&&h.forEach(P=>{P.queued?P.markedForDestroy=!0:P.destroy()})}finishActiveQueriedAnimationOnElement(b){const h=this.playersByQueriedElement.get(b);h&&h.forEach(P=>P.finish())}whenRenderingDone(){return new Promise(b=>{if(this.players.length)return yt(this.players).onDone(()=>b());b()})}processLeaveNode(b){const h=b[Li];if(h&&h.setForRemoval){if(b[Li]=Gi,h.namespaceId){this.destroyInnerAnimations(b);const P=this._fetchNamespace(h.namespaceId);P&&P.clearElementCache(b)}this._onRemovalComplete(b,h.setForRemoval)}b.classList?.contains(Qn)&&this.markElementAsDisabled(b,!1),this.driver.query(b,".ng-animate-disabled",!0).forEach(P=>{this.markElementAsDisabled(P,!1)})}flush(b=-1){let h=[];if(this.newHostElements.size&&(this.newHostElements.forEach((P,W)=>this._balanceNamespaceList(P,W)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let P=0;P<this.collectedEnterElements.length;P++)Xn(this.collectedEnterElements[P],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const P=[];try{h=this._flushAnimations(P,b)}finally{for(let W=0;W<P.length;W++)P[W]()}}else for(let P=0;P<this.collectedLeaveElements.length;P++)this.processLeaveNode(this.collectedLeaveElements[P]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(P=>P()),this._flushFns=[],this._whenQuietFns.length){const P=this._whenQuietFns;this._whenQuietFns=[],h.length?yt(h).onDone(()=>{P.forEach(W=>W())}):P.forEach(W=>W())}}reportError(b){throw function pt(E){return new e.vHH(3402,!1)}()}_flushAnimations(b,h){const P=new Do,W=[],Yt=new Map,we=[],Ze=new Map,an=new Map,On=new Map,zn=new Set;this.disabledNodes.forEach(ai=>{zn.add(ai);const wi=this.driver.query(ai,".ng-animate-queued",!0);for(let Ni=0;Ni<wi.length;Ni++)zn.add(wi[Ni])});const Jn=this.bodyNode,qi=Array.from(this.statesByElement.keys()),Bi=bi(qi,this.collectedEnterElements),vi=new Map;let _i=0;Bi.forEach((ai,wi)=>{const Ni=Ft+_i++;vi.set(wi,Ni),ai.forEach(ho=>Xn(ho,Ni))});const no=[],Vo=new Set,xr=new Set;for(let ai=0;ai<this.collectedLeaveElements.length;ai++){const wi=this.collectedLeaveElements[ai],Ni=wi[Li];Ni&&Ni.setForRemoval&&(no.push(wi),Vo.add(wi),Ni.hasAnimation?this.driver.query(wi,".ng-star-inserted",!0).forEach(ho=>Vo.add(ho)):xr.add(wi))}const Rr=new Map,lr=bi(qi,Array.from(Vo));lr.forEach((ai,wi)=>{const Ni=be+_i++;Rr.set(wi,Ni),ai.forEach(ho=>Xn(ho,Ni))}),b.push(()=>{Bi.forEach((ai,wi)=>{const Ni=vi.get(wi);ai.forEach(ho=>Zo(ho,Ni))}),lr.forEach((ai,wi)=>{const Ni=Rr.get(wi);ai.forEach(ho=>Zo(ho,Ni))}),no.forEach(ai=>{this.processLeaveNode(ai)})});const Cc=[],ca=[];for(let ai=this._namespaceList.length-1;ai>=0;ai--)this._namespaceList[ai].drainQueuedTransitions(h).forEach(Ni=>{const ho=Ni.player,dr=Ni.element;if(Cc.push(ho),this.collectedEnterElements.length){const Nr=dr[Li];if(Nr&&Nr.setForMove){if(Nr.previousTriggersValues&&Nr.previousTriggersValues.has(Ni.triggerName)){const Na=Nr.previousTriggersValues.get(Ni.triggerName),Es=this.statesByElement.get(Ni.element);if(Es&&Es.has(Ni.triggerName)){const bc=Es.get(Ni.triggerName);bc.value=Na,Es.set(Ni.triggerName,bc)}}return void ho.destroy()}}const ps=!Jn||!this.driver.containsElement(Jn,dr),hs=Rr.get(dr),ba=vi.get(dr),er=this._buildInstruction(Ni,P,ba,hs,ps);if(er.errors&&er.errors.length)return void ca.push(er);if(ps)return ho.onStart(()=>Qe(dr,er.fromStyles)),ho.onDestroy(()=>Oe(dr,er.toStyles)),void W.push(ho);if(Ni.isFallbackTransition)return ho.onStart(()=>Qe(dr,er.fromStyles)),ho.onDestroy(()=>Oe(dr,er.toStyles)),void W.push(ho);const Rl=[];er.timelines.forEach(Nr=>{Nr.stretchStartingKeyframe=!0,this.disabledNodes.has(Nr.element)||Rl.push(Nr)}),er.timelines=Rl,P.append(dr,er.timelines),we.push({instruction:er,player:ho,element:dr}),er.queriedElements.forEach(Nr=>ie(Ze,Nr,[]).push(ho)),er.preStyleProps.forEach((Nr,Na)=>{if(Nr.size){let Es=an.get(Na);Es||an.set(Na,Es=new Set),Nr.forEach((bc,Fl)=>Es.add(Fl))}}),er.postStyleProps.forEach((Nr,Na)=>{let Es=On.get(Na);Es||On.set(Na,Es=new Set),Nr.forEach((bc,Fl)=>Es.add(Fl))})});if(ca.length){const ai=[];ca.forEach(wi=>{ai.push(function St(E,b){return new e.vHH(3505,!1)}())}),Cc.forEach(wi=>wi.destroy()),this.reportError(ai)}const os=new Map,fa=new Map;we.forEach(ai=>{const wi=ai.element;P.has(wi)&&(fa.set(wi,wi),this._beforeAnimationBuild(ai.player.namespaceId,ai.instruction,os))}),W.forEach(ai=>{const wi=ai.element;this._getPreviousPlayers(wi,!1,ai.namespaceId,ai.triggerName,null).forEach(ho=>{ie(os,wi,[]).push(ho),ho.destroy()})});const _a=no.filter(ai=>rr(ai,an,On)),la=new Map;Go(la,this.driver,xr,On,i.l3).forEach(ai=>{rr(ai,an,On)&&_a.push(ai)});const Ca=new Map;Bi.forEach((ai,wi)=>{Go(Ca,this.driver,new Set(ai),an,i.k1)}),_a.forEach(ai=>{const wi=la.get(ai),Ni=Ca.get(ai);la.set(ai,new Map([...wi?.entries()??[],...Ni?.entries()??[]]))});const va=[],Il=[],Ll={};we.forEach(ai=>{const{element:wi,player:Ni,instruction:ho}=ai;if(P.has(wi)){if(zn.has(wi))return Ni.onDestroy(()=>Oe(wi,ho.toStyles)),Ni.disabled=!0,Ni.overrideTotalTime(ho.totalTime),void W.push(Ni);let dr=Ll;if(fa.size>1){let hs=wi;const ba=[];for(;hs=hs.parentNode;){const er=fa.get(hs);if(er){dr=er;break}ba.push(hs)}ba.forEach(er=>fa.set(er,dr))}const ps=this._buildAnimation(Ni.namespaceId,ho,os,Yt,Ca,la);if(Ni.setRealPlayer(ps),dr===Ll)va.push(Ni);else{const hs=this.playersByElement.get(dr);hs&&hs.length&&(Ni.parentPlayer=yt(hs)),W.push(Ni)}}else Qe(wi,ho.fromStyles),Ni.onDestroy(()=>Oe(wi,ho.toStyles)),Il.push(Ni),zn.has(wi)&&W.push(Ni)}),Il.forEach(ai=>{const wi=Yt.get(ai.element);if(wi&&wi.length){const Ni=yt(wi);ai.setRealPlayer(Ni)}}),W.forEach(ai=>{ai.parentPlayer?ai.syncPlayerEvents(ai.parentPlayer):ai.destroy()});for(let ai=0;ai<no.length;ai++){const wi=no[ai],Ni=wi[Li];if(Zo(wi,be),Ni&&Ni.hasAnimation)continue;let ho=[];if(Ze.size){let ps=Ze.get(wi);ps&&ps.length&&ho.push(...ps);let hs=this.driver.query(wi,_n,!0);for(let ba=0;ba<hs.length;ba++){let er=Ze.get(hs[ba]);er&&er.length&&ho.push(...er)}}const dr=ho.filter(ps=>!ps.destroyed);dr.length?uo(this,wi,dr):this.processLeaveNode(wi)}return no.length=0,va.forEach(ai=>{this.players.push(ai),ai.onDone(()=>{ai.destroy();const wi=this.players.indexOf(ai);this.players.splice(wi,1)}),ai.play()}),va}afterFlush(b){this._flushFns.push(b)}afterFlushAnimationsDone(b){this._whenQuietFns.push(b)}_getPreviousPlayers(b,h,P,W,Yt){let we=[];if(h){const Ze=this.playersByQueriedElement.get(b);Ze&&(we=Ze)}else{const Ze=this.playersByElement.get(b);if(Ze){const an=!Yt||Yt==mo;Ze.forEach(On=>{On.queued||!an&&On.triggerName!=W||we.push(On)})}}return(P||W)&&(we=we.filter(Ze=>!(P&&P!=Ze.namespaceId||W&&W!=Ze.triggerName))),we}_beforeAnimationBuild(b,h,P){const Yt=h.element,we=h.isRemovalTransition?void 0:b,Ze=h.isRemovalTransition?void 0:h.triggerName;for(const an of h.timelines){const On=an.element,zn=On!==Yt,Jn=ie(P,On,[]);this._getPreviousPlayers(On,zn,we,Ze,h.toState).forEach(Bi=>{const vi=Bi.getRealPlayer();vi.beforeDestroy&&vi.beforeDestroy(),Bi.destroy(),Jn.push(Bi)})}Qe(Yt,h.fromStyles)}_buildAnimation(b,h,P,W,Yt,we){const Ze=h.triggerName,an=h.element,On=[],zn=new Set,Jn=new Set,qi=h.timelines.map(vi=>{const _i=vi.element;zn.add(_i);const no=_i[Li];if(no&&no.removedBeforeQueried)return new i.ZN(vi.duration,vi.delay);const Vo=_i!==an,xr=function Jo(E){const b=[];return or(E,b),b}((P.get(_i)||pi).map(os=>os.getRealPlayer())).filter(os=>!!os.element&&os.element===_i),Rr=Yt.get(_i),lr=we.get(_i),Cc=ee(this._normalizer,vi.keyframes,Rr,lr),ca=this._buildPlayer(vi,Cc,xr);if(vi.subTimeline&&W&&Jn.add(_i),Vo){const os=new Ao(b,Ze,_i);os.setRealPlayer(ca),On.push(os)}return ca});On.forEach(vi=>{ie(this.playersByQueriedElement,vi.element,[]).push(vi),vi.onDone(()=>function nr(E,b,h){let P=E.get(b);if(P){if(P.length){const W=P.indexOf(h);P.splice(W,1)}0==P.length&&E.delete(b)}return P}(this.playersByQueriedElement,vi.element,vi))}),zn.forEach(vi=>Xn(vi,Me));const Bi=yt(qi);return Bi.onDestroy(()=>{zn.forEach(vi=>Zo(vi,Me)),Oe(an,h.toStyles)}),Jn.forEach(vi=>{ie(W,vi,[]).push(Bi)}),Bi}_buildPlayer(b,h,P){return h.length>0?this.driver.animate(b.element,h,b.duration,b.delay,b.easing,P):new i.ZN(b.duration,b.delay)}}class Ao{constructor(b,h,P){this.namespaceId=b,this.triggerName=h,this.element=P,this._player=new i.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(b){this._containsRealPlayer||(this._player=b,this._queuedCallbacks.forEach((h,P)=>{h.forEach(W=>B(b,P,void 0,W))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(b.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(b){this.totalTime=b}syncPlayerEvents(b){const h=this._player;h.triggerCallback&&b.onStart(()=>h.triggerCallback("start")),b.onDone(()=>this.finish()),b.onDestroy(()=>this.destroy())}_queueEvent(b,h){ie(this._queuedCallbacks,b,[]).push(h)}onDone(b){this.queued&&this._queueEvent("done",b),this._player.onDone(b)}onStart(b){this.queued&&this._queueEvent("start",b),this._player.onStart(b)}onDestroy(b){this.queued&&this._queueEvent("destroy",b),this._player.onDestroy(b)}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(b){this.queued||this._player.setPosition(b)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(b){const h=this._player;h.triggerCallback&&h.triggerCallback(b)}}function Ri(E){return E&&1===E.nodeType}function oo(E,b){const h=E.style.display;return E.style.display=b??"none",h}function Go(E,b,h,P,W){const Yt=[];h.forEach(an=>Yt.push(oo(an)));const we=[];P.forEach((an,On)=>{const zn=new Map;an.forEach(Jn=>{const qi=b.computeStyle(On,Jn,W);zn.set(Jn,qi),(!qi||0==qi.length)&&(On[Li]=Zn,we.push(On))}),E.set(On,zn)});let Ze=0;return h.forEach(an=>oo(an,Yt[Ze++])),we}function bi(E,b){const h=new Map;if(E.forEach(Ze=>h.set(Ze,[])),0==b.length)return h;const W=new Set(b),Yt=new Map;function we(Ze){if(!Ze)return 1;let an=Yt.get(Ze);if(an)return an;const On=Ze.parentNode;return an=h.has(On)?On:W.has(On)?1:we(On),Yt.set(Ze,an),an}return b.forEach(Ze=>{const an=we(Ze);1!==an&&h.get(an).push(Ze)}),h}function Xn(E,b){E.classList?.add(b)}function Zo(E,b){E.classList?.remove(b)}function uo(E,b,h){yt(h).onDone(()=>E.processLeaveNode(b))}function or(E,b){for(let h=0;h<E.length;h++){const P=E[h];P instanceof i.ZE?or(P.players,b):b.push(P)}}function rr(E,b,h){const P=h.get(E);if(!P)return!1;let W=b.get(E);return W?P.forEach(Yt=>W.add(Yt)):b.set(E,P),h.delete(E),!0}class fo{constructor(b,h,P){this.bodyNode=b,this._driver=h,this._normalizer=P,this._triggerCache={},this.onRemovalComplete=(W,Yt)=>{},this._transitionEngine=new Bo(b,h,P),this._timelineEngine=new un(b,h,P),this._transitionEngine.onRemovalComplete=(W,Yt)=>this.onRemovalComplete(W,Yt)}registerTrigger(b,h,P,W,Yt){const we=b+"-"+W;let Ze=this._triggerCache[we];if(!Ze){const an=[],zn=Ai(this._driver,Yt,an,[]);if(an.length)throw function z(E,b){return new e.vHH(3404,!1)}();Ze=function xe(E,b,h){return new Mt(E,b,h)}(W,zn,this._normalizer),this._triggerCache[we]=Ze}this._transitionEngine.registerTrigger(h,W,Ze)}register(b,h){this._transitionEngine.register(b,h)}destroy(b,h){this._transitionEngine.destroy(b,h)}onInsert(b,h,P,W){this._transitionEngine.insertNode(b,h,P,W)}onRemove(b,h,P){this._transitionEngine.removeNode(b,h,P)}disableAnimations(b,h){this._transitionEngine.markElementAsDisabled(b,h)}process(b,h,P,W){if("@"==P.charAt(0)){const[Yt,we]=Ae(P);this._timelineEngine.command(Yt,h,we,W)}else this._transitionEngine.trigger(b,h,P,W)}listen(b,h,P,W,Yt){if("@"==P.charAt(0)){const[we,Ze]=Ae(P);return this._timelineEngine.listen(we,h,Ze,Yt)}return this._transitionEngine.listen(b,h,P,W,Yt)}flush(b=-1){this._transitionEngine.flush(b)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(b){this._transitionEngine.afterFlushAnimationsDone(b)}}let Io=(()=>{class E{static#t=this.initialStylesByElement=new WeakMap;constructor(h,P,W){this._element=h,this._startStyles=P,this._endStyles=W,this._state=0;let Yt=E.initialStylesByElement.get(h);Yt||E.initialStylesByElement.set(h,Yt=new Map),this._initialStyles=Yt}start(){this._state<1&&(this._startStyles&&Oe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Oe(this._element,this._initialStyles),this._endStyles&&(Oe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(E.initialStylesByElement.delete(this._element),this._startStyles&&(Qe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Qe(this._element,this._endStyles),this._endStyles=null),Oe(this._element,this._initialStyles),this._state=3)}}return E})();function _o(E){let b=null;return E.forEach((h,P)=>{(function pr(E){return"display"===E||"position"===E})(P)&&(b=b||new Map,b.set(P,h))}),b}class mr{constructor(b,h,P,W){this.element=b,this.keyframes=h,this.options=P,this._specialStyles=W,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=P.duration,this._delay=P.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(b=>b()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const b=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,b,this.options),this._finalKeyframe=b.length?b[b.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(b){const h=[];return b.forEach(P=>{h.push(Object.fromEntries(P))}),h}_triggerWebAnimation(b,h,P){return b.animate(this._convertKeyframesToObject(h),P)}onStart(b){this._originalOnStartFns.push(b),this._onStartFns.push(b)}onDone(b){this._originalOnDoneFns.push(b),this._onDoneFns.push(b)}onDestroy(b){this._onDestroyFns.push(b)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(b=>b()),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(b=>b()),this._onDestroyFns=[])}setPosition(b){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=b*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const b=new Map;this.hasStarted()&&this._finalKeyframe.forEach((P,W)=>{"offset"!==W&&b.set(W,this._finished?P:Tn(this.element,W))}),this.currentSnapshot=b}triggerCallback(b){const h="start"===b?this._onStartFns:this._onDoneFns;h.forEach(P=>P()),h.length=0}}class Wr{validateStyleProperty(b){return!0}validateAnimatableStyleProperty(b){return!0}matchesElement(b,h){return!1}containsElement(b,h){return me(b,h)}getParentElement(b){return In(b)}query(b,h,P){return De(b,h,P)}computeStyle(b,h,P){return window.getComputedStyle(b)[h]}animate(b,h,P,W,Yt,we=[]){const an={duration:P,delay:W,fill:0==W?"both":"forwards"};Yt&&(an.easing=Yt);const On=new Map,zn=we.filter(Bi=>Bi instanceof mr);(function _e(E,b){return 0===E||0===b})(P,W)&&zn.forEach(Bi=>{Bi.currentSnapshot.forEach((vi,_i)=>On.set(_i,vi))});let Jn=function te(E){return E.length?E[0]instanceof Map?E:E.map(b=>$e(b)):[]}(h).map(Bi=>Ke(Bi));Jn=function ze(E,b,h){if(h.size&&b.length){let P=b[0],W=[];if(h.forEach((Yt,we)=>{P.has(we)||W.push(we),P.set(we,Yt)}),W.length)for(let Yt=1;Yt<b.length;Yt++){let we=b[Yt];W.forEach(Ze=>we.set(Ze,Tn(E,Ze)))}}return b}(b,Jn,On);const qi=function js(E,b){let h=null,P=null;return Array.isArray(b)&&b.length?(h=_o(b[0]),b.length>1&&(P=_o(b[b.length-1]))):b instanceof Map&&(h=_o(b)),h||P?new Io(E,h,P):null}(b,Jn);return new mr(b,Jn,an,qi)}}var vn=c(6814);let fr=(()=>{class E extends i._j{constructor(h,P){super(),this._nextAnimationId=0,this._renderer=h.createRenderer(P.body,{id:"0",encapsulation:e.ifc.None,styles:[],data:{animation:[]}})}build(h){const P=this._nextAnimationId.toString();this._nextAnimationId++;const W=Array.isArray(h)?(0,i.vP)(h):h;return _s(this._renderer,null,P,"register",[W]),new ms(P,this._renderer)}static#t=this.\u0275fac=function(P){return new(P||E)(e.LFG(e.FYo),e.LFG(vn.K0))};static#e=this.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac})}return E})();class ms extends i.LC{constructor(b,h){super(),this._id=b,this._renderer=h}create(b,h){return new fs(this._id,b,h||{},this._renderer)}}class fs{constructor(b,h,P,W){this.id=b,this.element=h,this._renderer=W,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",P)}_listen(b,h){return this._renderer.listen(this.element,`@@${this.id}:${b}`,h)}_command(b,...h){return _s(this._renderer,this.element,this.id,b,h)}onDone(b){this._listen("done",b)}onStart(b){this._listen("start",b)}onDestroy(b){this._listen("destroy",b)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(b){this._command("setPosition",b)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function _s(E,b,h,P,W){return E.setProperty(b,`@@${h}:${P}`,W)}const wt="@.disabled";let Nt=(()=>{class E{constructor(h,P,W){this.delegate=h,this.engine=P,this._zone=W,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,P.onRemovalComplete=(Yt,we)=>{const Ze=we?.parentNode(Yt);Ze&&we.removeChild(Ze,Yt)}}createRenderer(h,P){const Yt=this.delegate.createRenderer(h,P);if(!(h&&P&&P.data&&P.data.animation)){let zn=this._rendererCache.get(Yt);return zn||(zn=new ot("",Yt,this.engine,()=>this._rendererCache.delete(Yt)),this._rendererCache.set(Yt,zn)),zn}const we=P.id,Ze=P.id+"-"+this._currentId;this._currentId++,this.engine.register(Ze,h);const an=zn=>{Array.isArray(zn)?zn.forEach(an):this.engine.registerTrigger(we,Ze,h,zn.name,zn)};return P.data.animation.forEach(an),new ae(this,Ze,Yt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(h,P,W){h>=0&&h<this._microtaskId?this._zone.run(()=>P(W)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Yt=>{const[we,Ze]=Yt;we(Ze)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([P,W]))}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()}static#t=this.\u0275fac=function(P){return new(P||E)(e.LFG(e.FYo),e.LFG(fo),e.LFG(e.R0b))};static#e=this.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac})}return E})();class ot{constructor(b,h,P,W){this.namespaceId=b,this.delegate=h,this.engine=P,this._onDestroy=W}get data(){return this.delegate.data}destroyNode(b){this.delegate.destroyNode?.(b)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(b,h){return this.delegate.createElement(b,h)}createComment(b){return this.delegate.createComment(b)}createText(b){return this.delegate.createText(b)}appendChild(b,h){this.delegate.appendChild(b,h),this.engine.onInsert(this.namespaceId,h,b,!1)}insertBefore(b,h,P,W=!0){this.delegate.insertBefore(b,h,P),this.engine.onInsert(this.namespaceId,h,b,W)}removeChild(b,h,P){this.engine.onRemove(this.namespaceId,h,this.delegate)}selectRootElement(b,h){return this.delegate.selectRootElement(b,h)}parentNode(b){return this.delegate.parentNode(b)}nextSibling(b){return this.delegate.nextSibling(b)}setAttribute(b,h,P,W){this.delegate.setAttribute(b,h,P,W)}removeAttribute(b,h,P){this.delegate.removeAttribute(b,h,P)}addClass(b,h){this.delegate.addClass(b,h)}removeClass(b,h){this.delegate.removeClass(b,h)}setStyle(b,h,P,W){this.delegate.setStyle(b,h,P,W)}removeStyle(b,h,P){this.delegate.removeStyle(b,h,P)}setProperty(b,h,P){"@"==h.charAt(0)&&h==wt?this.disableAnimations(b,!!P):this.delegate.setProperty(b,h,P)}setValue(b,h){this.delegate.setValue(b,h)}listen(b,h,P){return this.delegate.listen(b,h,P)}disableAnimations(b,h){this.engine.disableAnimations(b,h)}}class ae extends ot{constructor(b,h,P,W,Yt){super(h,P,W,Yt),this.factory=b,this.namespaceId=h}setProperty(b,h,P){"@"==h.charAt(0)?"."==h.charAt(1)&&h==wt?this.disableAnimations(b,P=void 0===P||!!P):this.engine.process(this.namespaceId,b,h.slice(1),P):this.delegate.setProperty(b,h,P)}listen(b,h,P){if("@"==h.charAt(0)){const W=function Ge(E){switch(E){case"body":return document.body;case"document":return document;case"window":return window;default:return E}}(b);let Yt=h.slice(1),we="";return"@"!=Yt.charAt(0)&&([Yt,we]=function ri(E){const b=E.indexOf(".");return[E.substring(0,b),E.slice(b+1)]}(Yt)),this.engine.listen(this.namespaceId,W,Yt,we,Ze=>{this.factory.scheduleListenerCallback(Ze._data||-1,P,Ze)})}return this.delegate.listen(b,h,P)}}const $r=[{provide:i._j,useClass:fr},{provide:Xi,useFactory:function _r(){return new ko}},{provide:fo,useClass:(()=>{class E extends fo{constructor(h,P,W,Yt){super(h.body,P,W)}ngOnDestroy(){this.flush()}static#t=this.\u0275fac=function(P){return new(P||E)(e.LFG(vn.K0),e.LFG(Xe),e.LFG(Xi),e.LFG(e.z2F))};static#e=this.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac})}return E})()},{provide:e.FYo,useFactory:function Br(E,b,h){return new Nt(E,b,h)},deps:[o.se,fo,e.R0b]}],Cs=[{provide:Xe,useFactory:()=>new Wr},{provide:e.QbO,useValue:"BrowserAnimations"},...$r],Co=[{provide:Xe,useClass:gn},{provide:e.QbO,useValue:"NoopAnimations"},...$r];let Gs=(()=>{class E{static withConfig(h){return{ngModule:E,providers:h.disableAnimations?Co:Cs}}static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275mod=e.oAB({type:E});static#n=this.\u0275inj=e.cJS({providers:Cs,imports:[o.b2]})}return E})();var Fi=c(2787);const Ns=new e.OlP("DevtoolsOptions");let Ko=(()=>{class E{constructor(h,P){this.ngZone=h,this.options=P,(0,g.Me)(this.ngZone,this.options)}}return E.\u0275fac=function(h){return new(h||E)(e.LFG(e.R0b),e.LFG(Ns))},E.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})();function ar(){}function Cr(E){return ar}let Qs=(()=>{class E{static forRoot(h){return{ngModule:E,providers:[{provide:Ns,useValue:h},{provide:e.ip1,useFactory:Cr,deps:[Ko],multi:!0}]}}}return E.\u0275fac=function(h){return new(h||E)},E.\u0275mod=e.oAB({type:E}),E.\u0275inj=e.cJS({}),E})();var yi=c(7299),tr=c(9671),Oo=c(7394),Kr=c(2438),as=c(708),qr=c(2181),Sr=c(3620);const Or_mobile_min=0,Or_mobile_max=768,Or_tablet_min=768,Or_tablet_max=1024,Or_desktop_min=1024,Ur=E=>E>Or_mobile_min&&E<Or_mobile_max,Xr=E=>E>=Or_tablet_min&&E<=Or_tablet_max,Zr="index-reset";var Zi=c(7954),Fs=c(5189),ts=c(1952),Hr=c(8906),Vr=c(9259),cs=c(8750),Bs=c(7890),Js=c(7350),Ws=c(5954),Yr=c(380);const cr="store-reset",Ar="kagemand2";let bs=(()=>{class E{constructor(h,P,W,Yt){this.basketService=h,this.shippingService=P,this.customerDetailService=W,this.productService=Yt,!(typeof window>"u")&&localStorage.getItem(cr)!==Ar&&(this.basketService.resetBasket(),this.shippingService.resetShipping(),this.customerDetailService.resetCustomerDetails(),this.productService.resetProducts(),localStorage.setItem(cr,Ar))}static#t=this.\u0275fac=function(P){return new(P||E)(e.LFG(Bs.vD),e.LFG(Js.Nk),e.LFG(Ws.zc),e.LFG(Yr.M5))};static#e=this.\u0275prov=e.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"})}return E})();var Ms=c(6261),Us=c(2357),ls=c(4466),Zs=c(2651),jr=c(9683),Ir=c(7313),L=c(9817),Vt=c(8470),at=c(6093),It=c(7985),Le=c(2802),mn=c(6574),Pn=c(617),Yn=c(8514),to=c(3752);const po=["tooltipRef"];function p(E,b){if(1&E&&e._UZ(0,"app-content-menu",8),2&E){const h=e.oxw();e.Q6J("links",h.burgerMenuLinks)}}function K(E,b){if(1&E&&(e.TgZ(0,"a",9),e._uU(1),e.qZA()),2&E){const h=e.oxw();e.Q6J("routerLink",h.groceries.url),e.xp6(1),e.Oqu(h.groceries.name)}}function d(E,b){if(1&E&&(e.TgZ(0,"app-text-button",10),e._uU(1),e.qZA()),2&E){const h=e.oxw();e.Q6J("routerLink",h.groceries.url),e.xp6(1),e.Oqu(h.groceries.name)}}function v(E,b){if(1&E&&(e.TgZ(0,"a",13),e._uU(1),e.qZA()),2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function S(E,b){if(1&E&&(e.TgZ(0,"a",14),e._uU(1),e.qZA()),2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.Oqu(h.titleText)}}function pe(E,b){if(1&E&&(e.ynx(0),e.YNc(1,v,2,3,"a",11),e.YNc(2,S,2,3,"a",12),e.BQk()),2&E){const h=b.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}function Ue(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",22),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function hn(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",23),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function yn(E,b){if(1&E&&(e.ynx(0),e.YNc(1,Ue,2,3,"a",20),e.YNc(2,hn,2,3,"a",21),e.BQk()),2&E){const h=b.$implicit,P=e.oxw(3);e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}const An=function(E){return[E]},Nn=function(){return[]};function ui(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",16)(1,"a",17),e.NdJ("mouseenter",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("focus",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("click",function(){const Yt=e.CHM(h).$implicit,we=e.oxw(2);return e.KtG(Yt.showContentPage&&we.closeNavigation())}),e._uU(2),e.qZA(),e.TgZ(3,"div",18,19)(5,"div"),e.YNc(6,yn,3,2,"ng-container",5),e.qZA()()()}if(2&E){const h=b.$implicit,P=e.oxw(2);e.xp6(1),e.Q6J("routerLink",h.showContentPage?e.VKq(5,An,P.contentUrl+h.title):e.DdM(7,Nn)),e.xp6(1),e.hij(" ",h.title," "),e.xp6(1),e.ekj("display",P.openNavigationName===h.title),e.xp6(3),e.Q6J("ngForOf",h.pages)}}function ei(E,b){if(1&E&&(e.ynx(0),e.YNc(1,ui,7,8,"div",15),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngForOf",h.subNavigations)}}function jn(E,b){if(1&E&&(e.TgZ(0,"a",29),e._UZ(1,"mat-icon",30),e.qZA()),2&E){const h=e.oxw(2);e.Q6J("href",h.socials.facebook,e.LSH)}}function oi(E,b){if(1&E&&(e.TgZ(0,"a",31),e._UZ(1,"mat-icon",32),e.qZA()),2&E){const h=e.oxw(2);e.Q6J("href",h.socials.instagram,e.LSH)}}function gi(E,b){if(1&E&&(e.TgZ(0,"div",24),e.YNc(1,jn,2,1,"a",25),e.YNc(2,oi,2,1,"a",26),e.TgZ(3,"a",27),e._UZ(4,"mat-icon",28),e.qZA()()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.socials.facebook),e.xp6(1),e.Q6J("ngIf",h.socials.instagram),e.xp6(1),e.Q6J("routerLink",h.contactUsLink)}}let di=(()=>{class E extends Le.I{onFocusOut(h){!this.openNavigationRef?.contains(h.relatedTarget)&&this.document.hasFocus()&&this.closeNavigation()}constructor(h,P,W,Yt,we){super(h,Zi.NS.header),this.themeService=P,this.elRef=W,this.router=Yt,this.document=we,this.contentUrl=`${yi.environment.urls.content.merchant_content}/`,this.contactUsLink=`/${yi.environment.urls.content.contact_us}`,this.filterIcon=It.qq.filter,this.hideBorder=!1,this.installAppDesktopLabel="",this.searchPlaceholder="",this.searchButton="",this.showTooltip=!1,this.showSocials=!1;const Ze=this.content.get("groceriesButton");this.groceries={url:yi.environment.urls.products,name:this.content.get("groceries")||"groceries",button:Ze},this.searchPlaceholder=this.content.get("searchPlaceholder")||"searchPlaceholder",this.searchButton=this.content.get("searchButtonText")||"searchButtonText",this.socials={facebook:this.content.get("facebookLink"),instagram:this.content.get("instagramLink")};const an=this.contentService.getMerchantContent();this.links=[],this.burgerMenuLinks=[],this.subNavigations=[];for(const On of an)switch(On.type){case"simple":{const zn=this.contentService.getContentLink(On);this.links.push(zn);break}case"link":this.links.push(On);break;case"burger":this.burgerMenuLinks.push(...On.pages);break;case"subNav":this.subNavigations.push(On)}this.installAppDesktopLabel=this.contentService.getSharedContent(!0).get("installApplicationDesktopLabelText")}ngOnInit(){this.subscription=new Oo.w0,this.contentService.getMerchant().type===at.Pc.FANDANKO&&(this.showSocials=!0),"/"===this.router.url&&(this.hideBorder=!0),this.subscription.add(this.router.events.subscribe(h=>{this.hideBorder=1==(h instanceof Fi.m2&&"/"===h.url)}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}openTooltip(){this.showTooltip=!0,this.tooltipRef.nativeElement.focus()}openNavigation(h,P){this.openNavigationRef&&this.openNavigationRef.blur(),this.openNavigationName=P,this.openNavigationRef=h,setTimeout(()=>h.focus(),0)}closeNavigation(){this.openNavigationName=void 0}closeTooltip(){this.showTooltip=!1}sameSite(h){return this.contentService.sameSite(h)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(mn.f),e.Y36(e.SBq),e.Y36(Fi.F0),e.Y36(vn.K0))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-navigation"]],viewQuery:function(P,W){if(1&P&&e.Gf(po,5),2&P){let Yt;e.iGM(Yt=e.CRH())&&(W.tooltipRef=Yt.first)}},hostVars:2,hostBindings:function(P,W){1&P&&e.NdJ("focusout",function(we){return W.onFocusOut(we)}),2&P&&e.ekj("hide-border",W.hideBorder)},inputs:{showFilter:"showFilter"},features:[e.qOj],decls:8,vars:6,consts:[[1,"spacer"],[1,"links"],[3,"links",4,"ngIf"],["class","nav products","routerLinkActive","active",3,"routerLink",4,"ngIf"],["class","nav","routerLinkActive","active",3,"routerLink",4,"ngIf"],[4,"ngFor","ngForOf"],[4,"ngIf"],["class","socials",4,"ngIf"],[3,"links"],["routerLinkActive","active",1,"nav","products",3,"routerLink"],["routerLinkActive","active",1,"nav",3,"routerLink"],["class","nav","routerLinkActive","active",3,"routerLink","target",4,"ngIf"],["class","nav",3,"href","target",4,"ngIf"],["routerLinkActive","active",1,"nav",3,"routerLink","target"],[1,"nav",3,"href","target"],["class","sub-nav",4,"ngFor","ngForOf"],[1,"sub-nav"],["routerLinkActive","active","tabindex","0",1,"nav",3,"routerLink","mouseenter","focus","click"],["tabindex","-1",1,"sub-nav-content"],["navContent",""],["class","nav small","routerLinkActive","active",3,"routerLink","target","click",4,"ngIf"],["class","nav small",3,"href","target","click",4,"ngIf"],["routerLinkActive","active",1,"nav","small",3,"routerLink","target","click"],[1,"nav","small",3,"href","target","click"],[1,"socials"],["target","_blank","aria-label","Facebook",3,"href",4,"ngIf"],["target","_blank","aria-label","Instagram",3,"href",4,"ngIf"],["routerLinkActive","active","aria-label","Kontakt os",3,"routerLink"],["svgIcon","contact","alt","Kontakt os",1,"contact"],["target","_blank","aria-label","Facebook",3,"href"],["svgIcon","facebook","alt","Facebook"],["target","_blank","aria-label","Instagram",3,"href"],["svgIcon","instagram","alt","Instagram"]],template:function(P,W){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,p,1,1,"app-content-menu",2),e.YNc(3,K,2,2,"a",3),e.YNc(4,d,2,2,"app-text-button",4),e.YNc(5,pe,3,2,"ng-container",5),e.YNc(6,ei,2,1,"ng-container",6),e.qZA(),e.YNc(7,gi,5,3,"div",7),e.qZA()),2&P&&(e.xp6(2),e.Q6J("ngIf",W.burgerMenuLinks.length>0),e.xp6(1),e.Q6J("ngIf",!W.groceries.button),e.xp6(1),e.Q6J("ngIf",W.groceries.button),e.xp6(1),e.Q6J("ngForOf",W.links),e.xp6(1),e.Q6J("ngIf",null==W.subNavigations?null:W.subNavigations.length),e.xp6(1),e.Q6J("ngIf",W.showSocials))},dependencies:[vn.sg,vn.O5,Pn.Hw,Yn.h,Fi.rH,Fi.Od,to.p],styles:["[_nghost-%COMP%]{position:relative;display:flex;justify-content:center;flex:1 0 auto;height:70px;z-index:500}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{display:none}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{display:none}}.city-catering-theme[_nghost-%COMP%]{background-color:#c3bf9c}.city-catering-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#aca676}.city-catering-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.fandanko-theme[_nghost-%COMP%]{background-color:#fff}.fandanko-theme[_nghost-%COMP%]:not(.hide-border){border-bottom:2px solid black}.fandanko-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#e0e0e0}.fandanko-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .products[_ngcontent-%COMP%]{padding:6px 12px 4px;border-radius:6px;background-color:#000;color:#fff;font-family:BebasNeue;font-size:1.35em;text-transform:uppercase;letter-spacing:1px}.fandanko-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]:not(.products){font-size:1.15em;color:#000}.stechers-theme[_nghost-%COMP%]{background-color:#000}.stechers-theme[_nghost-%COMP%]:not(.hide-border){border-bottom:2px solid black}.stechers-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#000}.stechers-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .products[_ngcontent-%COMP%]{padding:6px 12px 4px;background-color:#000;color:#fff;font-family:var(--font);font-size:1.35em;text-transform:uppercase;letter-spacing:1px}.stechers-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]:not(.products){font-size:1.15em;color:#fff}.noerregades-koekken-theme[_nghost-%COMP%]{background-color:#b0c4de}.noerregades-koekken-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#dbe4f0}.noerregades-koekken-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.new-year-theme[_nghost-%COMP%]{background-color:#392154}.new-year-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#1b1028}.new-year-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.gourmiddag-theme[_nghost-%COMP%]{background-color:#d1af8b}.gourmiddag-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#c0915f}.gourmiddag-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.gastro-by-boegh-theme[_nghost-%COMP%]{background-color:#081d39}.gastro-by-boegh-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#030b15}.gastro-by-boegh-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.la-brava-theme[_nghost-%COMP%]{background-color:#c41113}.la-brava-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#9e0e0f}.la-brava-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.kokkefroeen-theme[_nghost-%COMP%]{background-color:#01aa01}.kokkefroeen-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#0f110d}.kokkefroeen-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.demo-shop-theme[_nghost-%COMP%]{background-color:#efd8bd}.demo-shop-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#e7c59c}.demo-shop-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#8d9fb8;text-shadow:1px 1px 2px #fff}.saakin-theme[_nghost-%COMP%]{background-color:#eb5933}.saakin-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#df3f16}.saakin-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fcb029}.krohn-theme[_nghost-%COMP%]{background-color:#000}.krohn-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#141414}.krohn-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.grenaa-slagtehus-theme[_nghost-%COMP%]{background-color:#000;color:#fff}.grenaa-slagtehus-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#141414}.grenaa-slagtehus-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.grenaa-slagtehus-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{color:#a91124}.asaa-mollehus-theme[_nghost-%COMP%]{background-color:#c9ad60;color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.apetit-theme[_nghost-%COMP%]:not(.hide-border){border-bottom:2px solid var(--primary-color)}.clpartyservice-theme[_nghost-%COMP%]:not(.hide-border){border-bottom:2px solid #ffee00}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;max-width:var(--nxt-width);width:80vw}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.socials) > [_ngcontent-%COMP%]:not(:last-child){margin-right:24px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:46px;width:auto}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     a{padding:4px 36px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{color:#000;text-decoration:none;font-size:1.25em;font-weight:600;cursor:pointer}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .nav.small[_ngcontent-%COMP%]{font-size:1.05em;font-weight:400}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .socials[_ngcontent-%COMP%]{flex:0 1 auto;display:flex;gap:8px;align-items:center;width:min-content}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .socials[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{height:30px;width:30px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .socials[_ngcontent-%COMP%]   mat-icon.contact[_ngcontent-%COMP%]{fill:#000}[_nghost-%COMP%]   .filter[_ngcontent-%COMP%]{display:none;box-sizing:border-box;width:28px;height:28px;min-width:28px;min-height:28px;margin-left:8px}[_nghost-%COMP%]   .filter[_ngcontent-%COMP%]     button{background-color:transparent}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{position:absolute;display:none;justify-content:center;top:100%;left:0;width:100%;height:60px}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content.display[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:40px;width:80vw;max-width:var(--nxt-width)}"],data:{animation:[(0,i.X$)("installAnimation",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0,width:0}),(0,i.jt)("800ms ease-out",(0,i.oB)({opacity:1,width:"*"}))]),(0,i.eR)(":leave",[(0,i.oB)({opacity:1,width:"*"}),(0,i.jt)("800ms ease-in",(0,i.oB)({opacity:0,width:0}))])])]}})}return E})();var si=c(7398),Ci=c(9014),mi=c(303),Si=c(5699),Hi=c(3991);const vo=["tooltipRef"];function zo(E,b){if(1&E&&(e.TgZ(0,"a",14),e._uU(1),e.qZA()),2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function Kn(E,b){if(1&E&&(e.TgZ(0,"a",15),e._uU(1),e.qZA()),2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.Oqu(h.titleText)}}function eo(E,b){if(1&E&&(e.ynx(0),e.YNc(1,zo,2,3,"a",12),e.YNc(2,Kn,2,3,"a",13),e.BQk()),2&E){const h=b.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}function Wo(E,b){1&E&&e._UZ(0,"app-member-bar")}function hr(E,b){if(1&E&&e._UZ(0,"app-content-menu",16),2&E){const h=e.oxw();e.Q6J("links",h.burgerMenuLinks)}}function vr(E,b){if(1&E&&(e.TgZ(0,"a",14),e._uU(1),e.qZA()),2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function Di(E,b){if(1&E&&(e.TgZ(0,"a",15),e._uU(1),e.qZA()),2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.Oqu(h.titleText)}}function hi(E,b){if(1&E&&(e.ynx(0),e.YNc(1,vr,2,3,"a",12),e.YNc(2,Di,2,3,"a",13),e.BQk()),2&E){const h=b.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}function Bn(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",24),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=e.oxw().$implicit;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function $n(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",25),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function ki(E,b){if(1&E&&(e.ynx(0),e.YNc(1,Bn,2,3,"a",22),e.YNc(2,$n,2,3,"a",23),e.BQk()),2&E){const h=b.$implicit,P=e.oxw(3);e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}const Mi=function(E){return[E]},Ii=function(){return[]};function bo(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",18)(1,"a",19),e.NdJ("mouseenter",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("focus",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("click",function(){const Yt=e.CHM(h).$implicit,we=e.oxw(2);return e.KtG(Yt.showContentPage&&we.closeNavigation())}),e._uU(2),e.qZA(),e.TgZ(3,"div",20,21)(5,"div"),e.YNc(6,ki,3,2,"ng-container",2),e.qZA()()()}if(2&E){const h=b.$implicit,P=e.oxw(2);e.xp6(1),e.Q6J("routerLink",h.showContentPage?e.VKq(5,Mi,P.merchantContentUrl+h.title):e.DdM(7,Ii)),e.xp6(1),e.hij(" ",h.title," "),e.xp6(1),e.ekj("display",P.openNavigationName===h.title),e.xp6(3),e.Q6J("ngForOf",h.pages)}}function Po(E,b){if(1&E&&(e.ynx(0),e.YNc(1,bo,7,8,"div",17),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngForOf",h.subNavigations)}}function To(E,b){if(1&E&&(e.TgZ(0,"a",26),e._uU(1),e.qZA()),2&E){const h=e.oxw();e.Q6J("routerLink",h.groceries.url),e.xp6(1),e.Oqu(h.groceries.name)}}function Pr(E,b){if(1&E&&(e.TgZ(0,"app-text-button",27),e._uU(1),e.qZA()),2&E){const h=e.oxw();e.Q6J("routerLink",h.groceries.url),e.xp6(1),e.hij(" ",h.groceries.name," ")}}function $s(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",31)(1,"app-icon-button",32),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(2);return e.KtG(W.openMenu())}),e.qZA(),e.TgZ(2,"label",33),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(2);return e.KtG(W.openMenu())}),e._uU(3),e.qZA()()}if(2&E){const h=e.oxw(2);e.xp6(1),e.Q6J("icon",h.menuIcon)("border",!1),e.xp6(2),e.Oqu(h.menuLabel)}}function na(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",34)(1,"app-icon-button",35),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(2);return e.KtG(W.openBasket())}),e.ALo(2,"async"),e.qZA()()}if(2&E){const h=e.oxw(2);e.xp6(1),e.Q6J("icon",h.basketIcon)("border",!1)("matBadge",e.lcZ(2,3,h.count$))}}function Tr(E,b){if(1&E&&(e.TgZ(0,"div",28),e.YNc(1,$s,4,3,"div",29),e.YNc(2,na,3,5,"div",30),e.qZA()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.showShipping&&!(!h.isMobile&&h.storeClosed)),e.xp6(1),e.Q6J("ngIf",h.showBasket)}}let wa=(()=>{class E extends Le.I{onFocusOut(h){!this.openNavigationRef?.contains(h.relatedTarget)&&this.document.hasFocus()&&this.closeNavigation()}constructor(h,P,W,Yt,we,Ze,an,On,zn){super(h,"nxtNavigationHeader"),this.basketService=P,this.basketQuery=W,this.dialogService=Yt,this.mobileService=we,this.themeService=Ze,this.elRef=an,this.router=On,this.document=zn,this.merchantContentUrl=`${yi.environment.urls.content.merchant_content}/`,this.contactUsLink=`/${yi.environment.urls.content.contact_us}`,this.filterIcon=It.qq.filter,this.hideBorder=!1,this.installAppDesktopLabel="",this.searchPlaceholder="",this.searchButton="",this.showTooltip=!1,this.showBasket=!0,this.basketIcon=It.qq.basket,this.showShipping=!0,this.isMobile=!1,this.enableMembers=this.contentService.getMerchant().enableMembers;const Jn=this.content.get("groceriesButton");this.groceries={url:yi.environment.urls.products,name:this.content.get("groceries")||"groceries",button:Jn},this.searchPlaceholder=this.content.get("searchPlaceholder")||"searchPlaceholder",this.searchButton=this.content.get("searchButtonText")||"searchButtonText",this.storeClosed=this.contentService.getStoreClosed(),this.menuLabel=this.content.get("deliveryPickup"),this.storeLogo={src:this.content.get("headerImage"),alt:this.contentService.getTitle()},typeof window<"u"&&this.checkScreenSize(window.innerWidth);const{header:qi,navigation:Bi}=Zi.headerSections,vi=this.contentService.getMerchantContent(qi);this.headerLinks=[];for(const no of vi)switch(no.type){case"simple":{const Vo=this.contentService.getContentLink(no);this.headerLinks.push(Vo);break}case"link":this.headerLinks.push(no)}const _i=this.contentService.getMerchantContent(Bi);this.links=[],this.burgerMenuLinks=[],this.subNavigations=[];for(const no of _i)switch(no.type){case"simple":{const Vo=this.contentService.getContentLink(no);this.links.push(Vo);break}case"link":this.links.push(no);break;case"burger":this.burgerMenuLinks.push(...no.pages);break;case"subNav":this.subNavigations.push(no)}this.installAppDesktopLabel=this.contentService.getSharedContent(!0).get("installApplicationDesktopLabelText"),this.showOnlyLogo=169===this.contentService.getMerchant().id}onResize(h){this.checkScreenSize(h.target.innerWidth)}checkScreenSize(h){switch(!0){case Ur(h):case Xr(h):this.menuIcon=It.qq.menu,this.isMobile=!0;break;default:this.menuIcon=It.qq.shipping,this.isMobile=!1}}ngOnInit(){this.subscription=new Oo.w0,this.count$=this.basketQuery.selectProductLines$.pipe((0,si.U)(h=>{let P=0;return h.forEach(W=>P+=W.quantity),P})),"/"===this.router.url&&(this.hideBorder=!0),this.subscription.add(this.router.events.subscribe(h=>{this.hideBorder=1==(h instanceof Fi.m2&&"/"===h.url)}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}openTooltip(){this.showTooltip=!0,this.tooltipRef.nativeElement.focus()}openNavigation(h,P){this.openNavigationRef&&this.openNavigationRef.blur(),this.openNavigationName=P,this.openNavigationRef=h,setTimeout(()=>h.focus(),0)}closeNavigation(){this.openNavigationName=void 0}closeTooltip(){this.showTooltip=!1}sameSite(h){return this.contentService.sameSite(h)}openMenu(){this.isMobile?this.mobileService.setOverlay(!0):this.dialogService.openShippingDialog()}openBasket(){this.basketService.setOverlay(!0)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Zi.vD),e.Y36(Zi.Ns),e.Y36(Zi.xA),e.Y36(Zi.Wf),e.Y36(mn.f),e.Y36(e.SBq),e.Y36(Fi.F0),e.Y36(vn.K0))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-navigation-header"]],viewQuery:function(P,W){if(1&P&&e.Gf(vo,5),2&P){let Yt;e.iGM(Yt=e.CRH())&&(W.tooltipRef=Yt.first)}},hostVars:2,hostBindings:function(P,W){1&P&&e.NdJ("focusout",function(we){return W.onFocusOut(we)})("resize",function(we){return W.onResize(we)},!1,e.Jf7),2&P&&e.ekj("hide-border",W.hideBorder)},inputs:{showFilter:"showFilter",showBasket:"showBasket",showShipping:"showShipping"},features:[e.qOj],decls:15,vars:13,consts:[[1,"info"],[1,"info-wrapper"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"spacer"],["routerLink","/",1,"logo-container"],[3,"src","alt"],[1,"links"],[3,"links",4,"ngIf"],["class","nav products",3,"routerLink",4,"ngIf"],["class","nav",3,"routerLink",4,"ngIf"],["class","shipping-basket-wrapper",4,"ngIf"],["class","nav",3,"routerLink","target",4,"ngIf"],["class","nav",3,"href","target",4,"ngIf"],[1,"nav",3,"routerLink","target"],[1,"nav",3,"href","target"],[3,"links"],["class","sub-nav",4,"ngFor","ngForOf"],[1,"sub-nav"],["tabindex","0",1,"nav",3,"routerLink","mouseenter","focus","click"],["tabindex","-1",1,"sub-nav-content"],["navContent",""],["class","nav small",3,"routerLink","target","click",4,"ngIf"],["class","nav small",3,"href","target","click",4,"ngIf"],[1,"nav","small",3,"routerLink","target","click"],[1,"nav","small",3,"href","target","click"],[1,"nav","products",3,"routerLink"],[1,"nav",3,"routerLink"],[1,"shipping-basket-wrapper"],["class","shipping",4,"ngIf"],["class","basket",4,"ngIf"],[1,"shipping"],["id","menu",3,"icon","border","click"],["for","menu",3,"click"],[1,"basket"],[3,"icon","border","matBadge","click"]],template:function(P,W){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,eo,3,2,"ng-container",2),e.YNc(3,Wo,1,0,"app-member-bar",3),e.qZA()(),e.TgZ(4,"div",4)(5,"a",5),e._UZ(6,"img",6),e.ALo(7,"cms"),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,hr,1,1,"app-content-menu",8),e.YNc(10,hi,3,2,"ng-container",2),e.YNc(11,Po,2,1,"ng-container",3),e.YNc(12,To,2,2,"a",9),e.YNc(13,Pr,2,2,"app-text-button",10),e.qZA(),e.YNc(14,Tr,3,2,"div",11),e.qZA()),2&P&&(e.xp6(2),e.Q6J("ngForOf",W.headerLinks),e.xp6(1),e.Q6J("ngIf",W.enableMembers),e.xp6(3),e.Q6J("src",e.xi3(7,10,W.storeLogo.src,50),e.LSH)("alt",W.storeLogo.alt),e.xp6(3),e.Q6J("ngIf",W.burgerMenuLinks.length>0),e.xp6(1),e.Q6J("ngForOf",W.links),e.xp6(1),e.Q6J("ngIf",null==W.subNavigations?null:W.subNavigations.length),e.xp6(1),e.Q6J("ngIf",!W.groceries.button&&!W.showOnlyLogo),e.xp6(1),e.Q6J("ngIf",W.groceries.button&&!W.showOnlyLogo),e.xp6(1),e.Q6J("ngIf",!W.showOnlyLogo))},dependencies:[vn.sg,vn.O5,Ci.k,Yn.h,Fi.rH,mi.N,to.p,Si.r,vn.Ov,Hi.I],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 auto;height:150px;z-index:500}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]{height:120px}}.herligheder-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#b1d9ae}.herligheder-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#799e91;color:#fff}.demo-shop-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%], .new-year-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#4d2d71;color:#fff}.demo-shop-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%], .new-year-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#392154;color:#fff}.demo-slagter-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#4d2d71;color:#fff}.demo-slagter-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#e0c590;color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff}.asaa-mollehus-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff}.styling-one-theme[_nghost-%COMP%]{border-bottom:1px solid #f4f0e4}.styling-one-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff}.styling-one-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:var(--primary-color);color:#fff}.clpartyservice-theme[_nghost-%COMP%]{background-color:#fe0}.clpartyservice-theme[_nghost-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{background-color:#000;color:#fff}.clpartyservice-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#000;color:#fff}.clpartyservice-theme[_nghost-%COMP%]   .links[_ngcontent-%COMP%]{color:#000;font-family:var(--font)}.clpartyservice-theme[_nghost-%COMP%]   .logo-container[_ngcontent-%COMP%]{background-color:#000}.clpartyservice-theme[_nghost-%COMP%]   app-icon-button[_ngcontent-%COMP%]     button{background-color:inherit}.clpartyservice-theme[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{background-color:#000;color:#fff}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:50px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%;max-width:1560px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{color:inherit;text-decoration:none;font-size:.8em;cursor:pointer;border-right:1px solid #fff;padding:0 16px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]{font-weight:400;margin-left:16px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]     mat-icon{display:none}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;max-width:1560px;width:100%;font-size:.9em}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{grid-column:2;justify-self:center;display:flex;justify-content:center;align-items:center;height:100px;max-height:100px;max-width:320px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{height:50px;max-height:50px;max-width:160px;margin:auto}}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:46px;width:auto}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     a{padding:4px 36px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{width:95vw}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{width:90vw}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > .links[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:24px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{color:inherit;text-decoration:none;font-size:1.25em;cursor:pointer}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .nav.small[_ngcontent-%COMP%]{font-size:1.05em;font-weight:400}}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{font-size:.8em}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{height:80px;max-height:80px;max-width:160px}}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{position:absolute;display:none;justify-content:center;top:100%;left:0;width:100%;height:60px}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content.display[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:40px;width:80vw;max-width:var(--nxt-width)}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:flex;align-items:center;grid-column:1;justify-self:start;font-weight:600}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]{width:40px;height:40px}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:pointer;white-space:pre-line}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]{width:40px;height:40px;margin:8px}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{top:unset;right:-3px;bottom:0;background-color:var(--primary-color)}"],data:{animation:[(0,i.X$)("installAnimation",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0,width:0}),(0,i.jt)("800ms ease-out",(0,i.oB)({opacity:1,width:"*"}))]),(0,i.eR)(":leave",[(0,i.oB)({opacity:1,width:"*"}),(0,i.jt)("800ms ease-in",(0,i.oB)({opacity:0,width:0}))])])]}})}return E})();function kn(E,b){if(1&E&&(e.TgZ(0,"a",17),e._uU(1),e.qZA()),2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function Qi(E,b){if(1&E&&(e.TgZ(0,"a",18),e._uU(1),e.qZA()),2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.Oqu(h.titleText)}}function ia(E,b){if(1&E&&(e.ynx(0),e.YNc(1,kn,2,3,"a",15),e.YNc(2,Qi,2,3,"a",16),e.BQk()),2&E){const h=b.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}function xs(E,b){1&E&&e._UZ(0,"app-member-bar")}function qo(E,b){if(1&E&&e._UZ(0,"app-content-menu",19),2&E){const h=e.oxw();e.Q6J("links",h.burgerMenuLinks)}}function Ks(E,b){if(1&E&&(e.TgZ(0,"a",17),e._uU(1),e.qZA()),2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function Os(E,b){if(1&E&&(e.TgZ(0,"a",18),e._uU(1),e.qZA()),2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.Oqu(h.titleText)}}function Gr(E,b){if(1&E&&(e.ynx(0),e.YNc(1,Ks,2,3,"a",15),e.YNc(2,Os,2,3,"a",16),e.BQk()),2&E){const h=b.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}function Ta(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",27),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=e.oxw().$implicit;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function Va(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",28),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function Ec(E,b){if(1&E&&(e.ynx(0),e.YNc(1,Ta,2,3,"a",25),e.YNc(2,Va,2,3,"a",26),e.BQk()),2&E){const h=b.$implicit,P=e.oxw(3);e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}const ml=function(E){return[E]},ec=function(){return[]};function br(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",21)(1,"a",22),e.NdJ("mouseenter",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("focus",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("click",function(){const Yt=e.CHM(h).$implicit,we=e.oxw(2);return e.KtG(Yt.showContentPage&&we.closeNavigation())}),e._uU(2),e.qZA(),e.TgZ(3,"div",23,24)(5,"div"),e.YNc(6,Ec,3,2,"ng-container",3),e.qZA()()()}if(2&E){const h=b.$implicit,P=e.oxw(2);e.xp6(1),e.Q6J("routerLink",h.showContentPage?e.VKq(5,ml,P.merchantContentUrl+h.title):e.DdM(7,ec)),e.xp6(1),e.hij(" ",h.title," "),e.xp6(1),e.ekj("display",P.openNavigationName===h.title),e.xp6(3),e.Q6J("ngForOf",h.pages)}}function Ps(E,b){if(1&E&&(e.ynx(0),e.YNc(1,br,7,8,"div",20),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngForOf",h.subNavigations)}}const I=["*"];let Y=(()=>{class E extends Le.I{onFocusOut(h){!this.openNavigationRef?.contains(h.relatedTarget)&&this.document.hasFocus()&&this.closeNavigation()}constructor(h,P,W,Yt,we,Ze,an,On,zn){super(h,Zi.NS.header),this.basketService=P,this.basketQuery=W,this.dialogService=Yt,this.mobileService=we,this.themeService=Ze,this.elRef=an,this.router=On,this.document=zn,this.merchantContentUrl=`${yi.environment.urls.content.merchant_content}/`,this.contactUsLink=`/${yi.environment.urls.content.contact_us}`,this.filterIcon=It.qq.filter,this.mobileMenuIcon=It.qq.menu,this.installAppDesktopLabel="",this.searchPlaceholder="",this.searchButton=It.Ym.search,this.basketIcon=It.qq.basket,this.isMobile=!1,this.enableMembers=this.contentService.getMerchant().enableMembers,this.storeClosed=this.contentService.getStoreClosed(),this.menuLabel=this.content.get("deliveryPickup"),this.storeLogo={src:this.content.get("headerImage"),alt:this.contentService.getTitle()},this.searchPlaceholder=this.content.get("searchPlaceholder")||"searchPlaceholder",typeof window<"u"&&this.checkScreenSize(window.innerWidth);const{header:Jn,navigation:qi}=Zi.headerSections,Bi=this.contentService.getMerchantContent(Jn);this.headerLinks=[];for(const _i of Bi)switch(_i.type){case"simple":{const no=this.contentService.getContentLink(_i);this.headerLinks.push(no);break}case"link":this.headerLinks.push(_i)}const vi=this.contentService.getMerchantContent(qi);this.links=[],this.burgerMenuLinks=[],this.subNavigations=[];for(const _i of vi)switch(_i.type){case"simple":{const no=this.contentService.getContentLink(_i);this.links.push(no);break}case"link":this.links.push(_i);break;case"burger":this.burgerMenuLinks.push(..._i.pages);break;case"subNav":this.subNavigations.push(_i)}this.installAppDesktopLabel=this.contentService.getSharedContent(!0).get("installApplicationDesktopLabelText")}onResize(h){this.checkScreenSize(h.target.innerWidth)}checkScreenSize(h){switch(!0){case Ur(h):case Xr(h):this.menuIcon=It.qq.menu,this.isMobile=!0;break;default:this.menuIcon=It.qq.shipping,this.isMobile=!1}}ngOnInit(){this.subscription=new Oo.w0,this.count$=this.basketQuery.selectProductLines$.pipe((0,si.U)(h=>{let P=0;return h.forEach(W=>P+=W.quantity),P}))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}openNavigation(h,P){this.openNavigationRef&&this.openNavigationRef.blur(),this.openNavigationName=P,this.openNavigationRef=h,setTimeout(()=>h.focus(),0)}closeNavigation(){this.openNavigationName=void 0}sameSite(h){return this.contentService.sameSite(h)}openMobileMenu(){this.mobileService.setOverlay(!0)}openBasket(){this.basketService.setOverlay(!0)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Zi.vD),e.Y36(Zi.Ns),e.Y36(Zi.xA),e.Y36(Zi.Wf),e.Y36(mn.f),e.Y36(e.SBq),e.Y36(Fi.F0),e.Y36(vn.K0))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-online-header"]],hostBindings:function(P,W){1&P&&e.NdJ("focusout",function(we){return W.onFocusOut(we)})("resize",function(we){return W.onResize(we)},!1,e.Jf7)},features:[e.qOj],ngContentSelectors:I,decls:20,vars:17,consts:[[1,"info"],[1,"info-wrapper"],[1,"info-message"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"spacer"],[1,"mobileMenu"],["id","menu",3,"icon","border","click"],["routerLink","/",1,"logo-container"],[3,"src","alt"],[1,"links"],[3,"links",4,"ngIf"],[1,"shipping-basket-wrapper"],[1,"basket"],[3,"icon","border","matBadge","click"],["class","nav",3,"routerLink","target",4,"ngIf"],["class","nav",3,"href","target",4,"ngIf"],[1,"nav",3,"routerLink","target"],[1,"nav",3,"href","target"],[3,"links"],["class","sub-nav",4,"ngFor","ngForOf"],[1,"sub-nav"],["tabindex","0",1,"nav",3,"routerLink","mouseenter","focus","click"],["tabindex","-1",1,"sub-nav-content"],["navContent",""],["class","nav small",3,"routerLink","target","click",4,"ngIf"],["class","nav small",3,"href","target","click",4,"ngIf"],[1,"nav","small",3,"routerLink","target","click"],[1,"nav","small",3,"href","target","click"]],template:function(P,W){1&P&&(e.F$t(),e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e.Hsn(3),e.qZA(),e.YNc(4,ia,3,2,"ng-container",3),e.YNc(5,xs,1,0,"app-member-bar",4),e.qZA()(),e.TgZ(6,"div",5)(7,"div",6)(8,"app-icon-button",7),e.NdJ("click",function(){return W.openMobileMenu()}),e.qZA()(),e.TgZ(9,"a",8),e._UZ(10,"img",9),e.ALo(11,"cms"),e.qZA(),e.TgZ(12,"div",10),e.YNc(13,qo,1,1,"app-content-menu",11),e.YNc(14,Gr,3,2,"ng-container",3),e.YNc(15,Ps,2,1,"ng-container",4),e.qZA(),e.TgZ(16,"div",12)(17,"div",13)(18,"app-icon-button",14),e.NdJ("click",function(){return W.openBasket()}),e.ALo(19,"async"),e.qZA()()()()),2&P&&(e.xp6(4),e.Q6J("ngForOf",W.headerLinks),e.xp6(1),e.Q6J("ngIf",W.enableMembers),e.xp6(3),e.Q6J("icon",W.mobileMenuIcon)("border",!1),e.xp6(2),e.Q6J("src",e.xi3(11,12,W.storeLogo.src,50),e.LSH)("alt",W.storeLogo.alt),e.xp6(3),e.Q6J("ngIf",W.burgerMenuLinks.length>0),e.xp6(1),e.Q6J("ngForOf",W.links),e.xp6(1),e.Q6J("ngIf",null==W.subNavigations?null:W.subNavigations.length),e.xp6(3),e.Q6J("icon",W.basketIcon)("border",!1)("matBadge",e.lcZ(19,15,W.count$)))},dependencies:[vn.sg,vn.O5,Ci.k,Fi.rH,mi.N,to.p,Si.r,vn.Ov,Hi.I],styles:["[_nghost-%COMP%]{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1 0 auto;height:100px;z-index:500}.humoer-moebler-theme[_nghost-%COMP%]{box-shadow:0 1px 10px 1px #0000001a}.humoer-moebler-theme[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{background-color:#e4dacf;color:#000}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:30px;background-color:#000;color:#fff}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:90vw;max-width:var(--online-width)}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .info-message[_ngcontent-%COMP%]{flex:1;justify-self:flex-start}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{color:inherit;text-decoration:none;font-size:.8em;cursor:pointer;border-right:1px solid #fff;padding:0 16px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]{font-weight:400;margin-left:16px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]     mat-icon{display:none}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{display:flex;gap:16px;align-items:center;max-width:var(--online-width);width:90vw;font-size:.9em}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .mobileMenu[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{grid-column:2;justify-self:center;display:flex;justify-content:center;align-items:center;height:70px;max-height:70px;max-width:320px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{height:50px;max-height:50px;max-width:160px;margin:auto}}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > .links[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:not(:last-child){margin-right:24px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{color:inherit;text-decoration:none;font-size:1.25em;cursor:pointer}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   .nav.small[_ngcontent-%COMP%]{font-size:1.05em;font-weight:400}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{height:46px;width:auto}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]     a{padding:4px 36px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-left:auto}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]{width:40px;height:40px;margin:8px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{top:unset;right:-3px;bottom:0;background-color:var(--primary-color)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{height:80px}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   .info-wrapper[_ngcontent-%COMP%]{width:95vw}[_nghost-%COMP%]   .info[_ngcontent-%COMP%]   app-member-bar[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{gap:0;justify-content:space-between;width:95vw;height:50px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .mobileMenu[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .mobileMenu[_ngcontent-%COMP%] > app-icon-button[_ngcontent-%COMP%]{width:50px;height:50px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .links[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]{margin-left:unset}[_nghost-%COMP%]   .shipping-basket-wrapper[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]{position:absolute;display:none;justify-content:center;top:100%;left:0;width:100%;height:60px}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content.display[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]   .sub-nav[_ngcontent-%COMP%]   .sub-nav-content[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center;gap:40px;width:80vw;max-width:var(--nxt-width)}"],data:{animation:[(0,i.X$)("installAnimation",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0,width:0}),(0,i.jt)("800ms ease-out",(0,i.oB)({opacity:1,width:"*"}))]),(0,i.eR)(":leave",[(0,i.oB)({opacity:1,width:"*"}),(0,i.jt)("800ms ease-in",(0,i.oB)({opacity:0,width:0}))])])]}})}return E})();const D=["*"];let Q=(()=>{class E{static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-address-bar"]],ngContentSelectors:D,decls:1,vars:0,template:function(P,W){1&P&&(e.F$t(),e.Hsn(0))},styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;position:fixed;top:0;left:50%;transform:translate(-50%);width:auto;height:24px;line-height:24px;padding:0 8px;background-color:#000;color:#fff;border-bottom-right-radius:8px;border-bottom-left-radius:8px;z-index:1000}[_nghost-%COMP%]:before{content:"\\a0";position:absolute;top:0;left:-26px;z-index:1000;width:32px;height:24px;background-color:transparent;background-image:url(/assets/icons/address_bar_side.svg);background-size:100% 100%;transform:scaleX(-1)}[_nghost-%COMP%]:after{content:"\\a0";position:absolute;top:0;right:-26px;z-index:1000;width:32px;height:24px;background-image:url(/assets/icons/address_bar_side.svg);background-size:100% 100%}']})}return E})();var _t=c(8862),Wt=c(4754);function Re(E,b){1&E&&(e.TgZ(0,"div",13),e._UZ(1,"app-member-bar"),e.qZA())}function bn(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",14),e.NdJ("click",function(){e.CHM(h);const W=e.oxw();return e.KtG(W.openMenu())}),e.TgZ(1,"div",15),e._UZ(2,"app-icon-button",16),e.TgZ(3,"label",17),e._uU(4,"Menu"),e.qZA()()()}if(2&E){const h=e.oxw();e.xp6(2),e.Q6J("icon",h.menuIcon)}}function fn(E,b){if(1&E&&(e.TgZ(0,"a",20),e._UZ(1,"mat-icon",21),e.TgZ(2,"span",9),e._uU(3),e.qZA()()),2&E){const h=e.oxw(2);e.Q6J("href",h.findShopUrl,e.LSH),e.xp6(3),e.Oqu(h.store)}}function Wn(E,b){if(1&E&&(e.TgZ(0,"div",22),e._UZ(1,"mat-icon",21),e.TgZ(2,"span",9),e._uU(3),e.qZA()()),2&E){const h=e.oxw(2);e.xp6(3),e.Oqu(h.store)}}function wn(E,b){if(1&E&&(e.ynx(0),e.YNc(1,fn,4,2,"a",18),e.YNc(2,Wn,4,1,"div",19),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngIf",h.findShopUrl),e.xp6(1),e.Q6J("ngIf",!h.findShopUrl)}}function Lo(E,b){1&E&&(e.TgZ(0,"label",26),e._uU(1,"Kurv"),e.qZA())}function so(E,b){if(1&E&&(e.TgZ(0,"span",27),e._uU(1),e.ALo(2,"number"),e.ALo(3,"displayCurrency"),e.qZA()),2&E){const h=e.oxw().ngLet,P=e.oxw();e.xp6(1),e.AsE("",e.Dn7(2,2,h,".2-2",P.locale)," ",e.lcZ(3,6,P.currency),"")}}function Lr(E,b){if(1&E&&(e.ynx(0),e._UZ(1,"app-icon-button",23),e.ALo(2,"async"),e.YNc(3,Lo,2,0,"label",24),e.YNc(4,so,4,8,"span",25),e.BQk()),2&E){const h=b.ngLet,P=e.oxw();e.xp6(1),e.Q6J("icon",P.basketIcon)("routerLink",P.basketUrl)("matBadge",e.lcZ(2,6,P.count$))("border",!1),e.xp6(2),e.Q6J("ngIf",h<=0),e.xp6(1),e.Q6J("ngIf",h>0)}}let Ki=(()=>{class E extends Le.I{constructor(h,P,W,Yt,we,Ze,an){super(h,Zi.NS.header),this.basketService=P,this.basketQuery=W,this.dialogService=Yt,this.mobileService=we,this.themeService=Ze,this.elRef=an,this.contentUrl=yi.environment.cmsOrigin,this.basketIcon=It.qq.basket,this.locale=yi.environment.i18n.language,this.currency=yi.environment.i18n.currency,this.customerServiceUrl=`/${yi.environment.urls.content.customer_service}`,this.basketUrl=yi.environment.urls.basket,this.showBasket=!0,this.showShipping=!0,this.isMobile=!1,this.enableMembers=this.contentService.getMerchant().enableMembers,this.store=this.contentService.getStoreAddress(),this.menuLabel=this.content.get("deliveryPickup"),this.basketLabel=this.content.get("totalPrice"),this.storeLogo={src:this.content.get("headerImage"),alt:this.contentService.getTitle()},typeof window<"u"&&this.checkScreenSize(window.innerWidth),this.contentService.getMerchant().type===at.Pc.MENY&&(this.findShopUrl="https://meny.dk/find-butik"),this.isEventStore=this.contentService.isEventShop}onResize(h){this.checkScreenSize(h.target.innerWidth)}checkScreenSize(h){switch(!0){case Ur(h):case Xr(h):this.menuIcon=It.qq.menu,this.isMobile=!0;break;default:this.menuIcon=It.qq.shipping,this.isMobile=!1}}ngOnInit(){this.price$=this.basketQuery.selectTotal$,this.count$=this.basketQuery.selectProductLines$.pipe((0,si.U)(h=>{let P=0;return h.forEach(W=>P+=W.quantity),P})),this.isLoading$=this.basketQuery.selectLoading()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openMenu(){this.isMobile?this.mobileService.setOverlay(!0):this.dialogService.openShippingDialog()}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Zi.vD),e.Y36(Zi.Ns),e.Y36(Zi.xA),e.Y36(Zi.Wf),e.Y36(mn.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-meny-header"]],hostBindings:function(P,W){1&P&&e.NdJ("resize",function(we){return W.onResize(we)},!1,e.Jf7)},inputs:{showBasket:"showBasket",showShipping:"showShipping"},features:[e.qOj],decls:16,vars:12,consts:[[1,"header"],[1,"black-bar"],["class","login-bar",4,"ngIf"],["class","shipping",3,"click",4,"ngIf"],["routerLink","/",1,"logo-container"],[3,"src","alt"],[1,"controls"],[1,"store",3,"routerLink"],["svgIcon","support"],[1,"notranslate","label"],[4,"ngIf"],[1,"basket"],[4,"ngLet"],[1,"login-bar"],[1,"shipping",3,"click"],[1,"menu"],["id","menu",3,"icon"],["for","menu"],["target","_blank","class","store",3,"href",4,"ngIf"],["class","store",4,"ngIf"],["target","_blank",1,"store",3,"href"],["svgIcon","location"],[1,"store"],["id","basket",3,"icon","routerLink","matBadge","border"],["for","basket",4,"ngIf"],["id","price","class","label",4,"ngIf"],["for","basket"],["id","price",1,"label"]],template:function(P,W){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Re,2,0,"div",2),e.qZA(),e.YNc(3,bn,5,1,"div",3),e.TgZ(4,"a",4),e._UZ(5,"img",5),e.ALo(6,"cms"),e.qZA(),e.TgZ(7,"div",6)(8,"a",7),e._UZ(9,"mat-icon",8),e.TgZ(10,"span",9),e._uU(11,"Kundeservice"),e.qZA()(),e.YNc(12,wn,3,2,"ng-container",10),e.TgZ(13,"div",11),e.YNc(14,Lr,5,8,"ng-container",12),e.ALo(15,"async"),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("ngIf",W.enableMembers),e.xp6(1),e.Q6J("ngIf",W.showShipping&&W.isMobile),e.xp6(2),e.Q6J("src",e.xi3(6,7,W.storeLogo.src,50),e.LSH)("alt",W.storeLogo.alt),e.xp6(3),e.Q6J("routerLink",W.customerServiceUrl),e.xp6(4),e.Q6J("ngIf",!W.isEventStore),e.xp6(2),e.Q6J("ngLet",e.lcZ(15,10,W.price$)))},dependencies:[vn.O5,_t.h,Pn.Hw,Ci.k,Fi.rH,mi.N,Si.r,vn.Ov,vn.JJ,Wt.k,Hi.I],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;align-items:center;padding:0 12px;z-index:1000}.spar-theme[_nghost-%COMP%]{background-color:#59193c}.spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]{background-color:#3e122a}.spar-theme[_nghost-%COMP%]   .controls[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{background-color:#12a650}.min-kobmand-theme[_nghost-%COMP%]{background-color:var(--primary-color)}.min-kobmand-theme[_nghost-%COMP%]   .basket[_ngcontent-%COMP%]     .mat-badge-content{background-color:#00764c}.min-kobmand-theme[_nghost-%COMP%]     app-icon-button button, .spar-theme[_nghost-%COMP%]     app-icon-button button{border:unset}.min-kobmand-theme[_nghost-%COMP%]     app-icon-button .icon-button, .spar-theme[_nghost-%COMP%]     app-icon-button .icon-button{background-color:unset}.min-kobmand-theme[_nghost-%COMP%]     app-icon-button .icon-button.border, .spar-theme[_nghost-%COMP%]     app-icon-button .icon-button.border{border:unset}.min-kobmand-theme[_nghost-%COMP%]     svg g, .spar-theme[_nghost-%COMP%]     svg g{stroke:#fff}.min-kobmand-theme[_nghost-%COMP%]     svg g rect, .spar-theme[_nghost-%COMP%]     svg g rect{fill:#fff}@media only screen and (min-width: 0px) and (max-width: 768px){.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{height:auto}}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{height:40px;width:40px;margin:0}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button, .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button{padding:8px}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     path, .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     path{fill:#fff}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content, .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{right:-8px;top:-8px}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{margin-bottom:8px}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{margin-bottom:6px}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{gap:2px}.min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .min-kobmand-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], .spar-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-size:14px;line-height:14px;letter-spacing:1px;font-family:var(--font)}.meny-theme[_nghost-%COMP%]{background-color:var(--primary-color)}.meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]{background-color:#3c3c3b}@media only screen and (min-width: 1024px){.meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{margin-top:-24px}}.meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]     path, .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     path{fill:#fff}.meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]     svg g, .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     svg g{stroke:#fff}.meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]     app-icon-button .icon-button, .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     app-icon-button .icon-button{background-color:unset;border:unset}.meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content, .meny-theme[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]     .mat-badge-medium.mat-badge-overlap .mat-badge-content{right:-6px;top:-3px;background-color:#3c3c3b}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{flex:1 1 auto;display:grid;grid-template-columns:repeat(3,1fr);height:80px;padding-top:54px;max-width:1296px;overflow:visible}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{max-width:unset}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{grid-template-columns:68px auto 68px;grid-template-rows:auto 1fr;max-width:unset;height:auto;padding:0;margin:0 0 16px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:50px;height:50px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{grid-template-columns:68px auto 68px;grid-template-rows:auto 1fr;max-width:unset;height:auto;padding:0}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{width:50px;height:50px}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]{display:flex;justify-content:center;position:absolute;top:0;left:0;width:100%;height:54px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]   .login-bar[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;max-width:1296px;width:100%;height:54px;padding:0 20px}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .black-bar[_ngcontent-%COMP%]   .login-bar[_ngcontent-%COMP%]{max-width:unset}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{font-style:normal;font-weight:700;font-size:10px;line-height:10px;text-transform:uppercase;white-space:nowrap}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{flex-direction:column;display:none}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{grid-column:1;justify-self:start}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{grid-column:1;justify-self:start;justify-content:center}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:4px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{height:24px;width:24px;min-height:24px;min-width:24px;margin:8px 0}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{margin-left:0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{margin-left:0}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{grid-column:2;justify-self:center;align-self:center;display:flex;justify-content:center;align-items:center;position:absolute;height:70px;max-width:320px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{height:70px;max-width:240px;margin:8px auto;position:unset}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]{height:68px;max-width:156px;margin:14px auto;position:unset}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .logo-container[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;max-width:100%;object-fit:contain}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{grid-column:3;justify-self:end;align-items:end;font-weight:600}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:2px;justify-self:flex-end}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:32px;height:32px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]{text-decoration:none;color:inherit}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:24px;height:24px;margin-bottom:8px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]{display:none}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .store[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]{display:none;margin-bottom:unset}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]{cursor:pointer;padding:0 20px;margin-bottom:18px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .profile[_ngcontent-%COMP%]{margin-bottom:unset}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{gap:4px;margin-bottom:18px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{margin-bottom:unset}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]{height:40px;width:40px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]   app-icon-button[_ngcontent-%COMP%]     .icon-button mat-icon{height:26px;width:26px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{margin-right:0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   .basket[_ngcontent-%COMP%]{margin-right:0}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--text-primary-color)}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:8px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%] > *[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0}}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{white-space:pre-line}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   div[_ngcontent-%COMP%], [_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .controls[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}return E})();function ds(E,b){if(1&E&&e._UZ(0,"app-content-menu",9),2&E){const h=e.oxw();e.Q6J("links",h.burgerMenuLinks)}}function oa(E,b){if(1&E&&(e.TgZ(0,"a",12),e._uU(1),e._UZ(2,"mat-icon",4),e.qZA()),2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function us(E,b){if(1&E&&(e.TgZ(0,"a",13),e._uU(1),e._UZ(2,"mat-icon",4),e.qZA()),2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij(" ",h.titleText," ")}}function Da(E,b){if(1&E&&(e.ynx(0),e.YNc(1,oa,3,3,"a",10),e.YNc(2,us,3,3,"a",11),e.BQk()),2&E){const h=b.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}function fl(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",21),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=b.ngIf;e.Q6J("routerLink",h.targetUrl)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function _l(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"a",22),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(4);return e.KtG(W.closeNavigation())}),e._uU(1),e.qZA()}if(2&E){const h=e.oxw().$implicit;e.Q6J("href",h.targetUrl,e.LSH)("target",h.new?"_blank":"_self"),e.xp6(1),e.hij("",h.titleText," ")}}function Dr(E,b){if(1&E&&(e.ynx(0),e.YNc(1,fl,2,3,"a",19),e.YNc(2,_l,2,3,"a",20),e.BQk()),2&E){const h=b.$implicit,P=e.oxw(3);e.xp6(1),e.Q6J("ngIf",P.sameSite(h)),e.xp6(1),e.Q6J("ngIf",!P.sameSite(h))}}const ra=function(E){return[E]},yo=function(){return[]};function Sc(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",15)(1,"a",16),e.NdJ("mouseenter",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("focus",function(){const Yt=e.CHM(h).$implicit,we=e.MAs(4),Ze=e.oxw(2);return e.KtG(Ze.openNavigation(we,Yt.title))})("click",function(){const Yt=e.CHM(h).$implicit,we=e.oxw(2);return e.KtG(Yt.showContentPage&&we.closeNavigation())}),e._uU(2),e.qZA(),e.TgZ(3,"div",17,18)(5,"div"),e.YNc(6,Dr,3,2,"ng-container",5),e.qZA()()()}if(2&E){const h=b.$implicit,P=e.oxw(2);e.xp6(1),e.Q6J("routerLink",h.showContentPage?e.VKq(5,ra,P.contentUrl+h.title):e.DdM(7,yo)),e.xp6(1),e.hij(" ",h.title," "),e.xp6(1),e.ekj("display",P.openNavigationName===h.title),e.xp6(3),e.Q6J("ngForOf",h.pages)}}function Ac(E,b){if(1&E&&(e.ynx(0),e.YNc(1,Sc,7,8,"div",14),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngForOf",h.subNavigations)}}function Ic(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"button",23),e.NdJ("click",function(){e.CHM(h);const W=e.oxw();return e.KtG(W.openShipping())}),e._UZ(1,"mat-icon",24),e._uU(2," V\xc6LG AFHENTNING: DATO & TID "),e.qZA()}}let Cl=(()=>{class E extends Le.I{onFocusOut(h){!this.openNavigationRef?.contains(h.relatedTarget)&&this.document.hasFocus()&&this.closeNavigation()}constructor(h,P,W,Yt,we){super(h,Zi.NS.header),this.themeService=P,this.elRef=W,this.dialogService=Yt,this.document=we,this.contentUrl=`${yi.environment.urls.content.merchant_content}/`,this.groceries={url:yi.environment.urls.products,name:this.content.get("groceries")};const Ze=this.contentService.getMerchantContent();this.links=[],this.burgerMenuLinks=[],this.subNavigations=[];for(const an of Ze)switch(an.type){case"simple":{const On=this.contentService.getContentLink(an);this.links.push(On);break}case"link":this.links.push(an);break;case"burger":this.burgerMenuLinks.push(...an.pages);break;case"subNav":this.subNavigations.push(an)}}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}openShipping(){this.dialogService.openShippingDialog()}openNavigation(h,P){this.openNavigationRef&&this.openNavigationRef.blur(),this.openNavigationName=P,this.openNavigationRef=h,setTimeout(()=>h.focus(),0)}closeNavigation(){this.openNavigationName=void 0}sameSite(h){return this.contentService.sameSite(h)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(mn.f),e.Y36(e.SBq),e.Y36(ts.x),e.Y36(vn.K0))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-meny-navigation"]],hostBindings:function(P,W){1&P&&e.NdJ("focusout",function(we){return W.onFocusOut(we)})},inputs:{showShipping:"showShipping"},features:[e.qOj],decls:10,vars:6,consts:[[1,"spacer"],[1,"links"],[3,"links",4,"ngIf"],["routerLinkActive","active",1,"nav","products",3,"routerLink"],["svgIcon","left_arrow",1,"arrow"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"actions"],["class","unstyled-button shipping","tabindex","0",3,"click",4,"ngIf"],[3,"links"],["class","nav","routerLinkActive","active",3,"routerLink","target",4,"ngIf"],["class","nav",3,"href","target",4,"ngIf"],["routerLinkActive","active",1,"nav",3,"routerLink","target"],[1,"nav",3,"href","target"],["class","sub-nav",4,"ngFor","ngForOf"],[1,"sub-nav"],["routerLinkActive","active","tabindex","0",1,"nav",3,"routerLink","mouseenter","focus","click"],["tabindex","-1",1,"sub-nav-content"],["navContent",""],["class","nav small","routerLinkActive","active",3,"routerLink","target","click",4,"ngIf"],["class","nav small",3,"href","target","click",4,"ngIf"],["routerLinkActive","active",1,"nav","small",3,"routerLink","target","click"],[1,"nav","small",3,"href","target","click"],["tabindex","0",1,"unstyled-button","shipping",3,"click"],["svgIcon","shop"]],template:function(P,W){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,ds,1,1,"app-content-menu",2),e.TgZ(3,"a",3),e._uU(4),e._UZ(5,"mat-icon",4),e.qZA(),e.YNc(6,Da,3,2,"ng-container",5),e.YNc(7,Ac,2,1,"ng-container",6),e.qZA(),e.TgZ(8,"div",7),e.YNc(9,Ic,3,0,"button",8),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",W.burgerMenuLinks.length>0),e.xp6(1),e.Q6J("routerLink",W.groceries.url),e.xp6(1),e.hij(" ",W.groceries.name," "),e.xp6(2),e.Q6J("ngForOf",W.links),e.xp6(1),e.Q6J("ngIf",null==W.subNavigations?null:W.subNavigations.length),e.xp6(2),e.Q6J("ngIf",W.showShipping))},dependencies:[vn.sg,vn.O5,Pn.Hw,Fi.rH,Fi.Od,to.p],styles:["[_nghost-%COMP%]{display:flex;justify-content:center;position:relative;flex:1 0 auto;height:76px;z-index:500;font-size:16px;line-height:18px;font-weight:700;text-transform:uppercase;box-shadow:0 24px 70px -20px #00000040}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]{display:none}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{display:none}}.spar-theme[_nghost-%COMP%]{text-transform:none;box-shadow:0 24px 70px #00000026}.spar-theme[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]   .arrow[_ngcontent-%COMP%]{display:none;transform:rotate(180deg);width:16px;height:px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;box-sizing:border-box;position:relative;align-items:center;width:1296px}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%]{width:964px}}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div.links[_ngcontent-%COMP%]{gap:8px;margin-left:-32px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div.links[_ngcontent-%COMP%]   .nav[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;text-decoration:none;margin:15px 32px;color:#000}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div.links[_ngcontent-%COMP%]   .nav.active[_ngcontent-%COMP%]{color:var(--primary-color)}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]   .shipping[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;transform:scaleX(-1)}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   .spacer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto;height:100%}}"],data:{animation:[(0,i.X$)("installAnimation",[(0,i.eR)(":enter",[(0,i.oB)({opacity:0,width:0}),(0,i.jt)("800ms ease-out",(0,i.oB)({opacity:1,width:"*"}))]),(0,i.eR)(":leave",[(0,i.oB)({opacity:1,width:"*"}),(0,i.jt)("800ms ease-in",(0,i.oB)({opacity:0,width:0}))])])]}})}return E})();function nc(E,b){1&E&&e._UZ(0,"app-mobile-menu")}function Lc(E,b){if(1&E&&(e.TgZ(0,"app-address-bar"),e._uU(1),e.qZA()),2&E){const h=e.oxw();e.xp6(1),e.Oqu(h.address)}}function ka(E,b){if(1&E&&e._UZ(0,"app-meny-navigation",6),2&E){const h=e.oxw(2);e.Q6J("showShipping",h.showShipping)}}function ys(E,b){if(1&E&&(e.ynx(0),e._UZ(1,"app-meny-header",4),e.YNc(2,ka,1,1,"app-meny-navigation",5),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("showShipping",h.showShipping)("showBasket",h.showBasket),e.xp6(1),e.Q6J("ngIf",h.showNavigation)}}function vl(E,b){if(1&E&&(e.ynx(0),e.TgZ(1,"app-online-header"),e._uU(2),e.qZA(),e.BQk()),2&E){const h=e.oxw();e.xp6(2),e.Oqu(h.address)}}function Ya(E,b){if(1&E&&e._UZ(0,"app-navigation",9),2&E){const h=e.oxw(2);e.Q6J("showFilter",h.showFilter)}}function es(E,b){if(1&E&&(e.ynx(0),e._UZ(1,"app-header",7),e.YNc(2,Ya,1,1,"app-navigation",8),e.BQk()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("showShipping",h.showShipping)("showBasket",h.showBasket)("showInfoBar",h.navigationHeader),e.xp6(1),e.Q6J("ngIf",h.showNavigation)}}function ja(E,b){1&E&&e._UZ(0,"app-navigation-header")}function ic(E,b){1&E&&e._UZ(0,"app-footer")}let Rc=(()=>{class E{onResize(h){!this.navigationHeader||this.isDagrofa||this.setHeader(h.target.innerWidth)}constructor(h,P,W,Yt,we,Ze,an,On,zn,Jn,qi,Bi,vi,_i,no,Vo,xr,Rr){this.document=h,this.contentService=P,this.renderer=W,this.router=Yt,this.activatedRoute=we,this.productQuery=Ze,this.basketQuery=an,this.dialogService=On,this.cookiePolicyService=zn,this.shippingService=Jn,this.analyticService=qi,this.deviceService=Bi,this.resetService=vi,this.conveyThisService=_i,this.salesIQService=no,this.themeService=Vo,this.mobileService=xr,this.basketService=Rr,this.contentUrl=`${yi.environment.cmsOrigin}`,this.apiUrl=`${yi.environment.apiOrigin}`,this.disclaimerShown="Disclaimer",this.showShipping=!1,this.showBasket=!1,this.showNavigation=!1,this.showFooter=!1,this.showFilter=!1,this.navigationHeader=!1,this.showNavigationHeader=!1;const lr=this.contentService.getFavicon();if(this.address=this.contentService.getStoreAddress(),this.document.getElementById("app-fav-icon").setAttribute("href",`${this.contentUrl}${lr}`),this.setupAppEvents(),this.isDagrofa=this.contentService.isDagrofa,this.navigationHeader=this.contentService.getHeaderType(),this.navigationHeader&&!this.isDagrofa){if(typeof window<"u")return void this.setHeader(window.innerWidth);this.showNavigationHeader=!0===this.deviceService.isDesktop()}}ngOnInit(){if(this.subscription=new Oo.w0,this.isOnline=this.themeService.isOnline,this.searchOpen$=this.productQuery.selectSearchOpen$,this.basketOpen$=this.basketQuery.selectOpen$,this.mobileMenuOpen$=this.mobileService.mobileMenuOpen,this.setAnalytics(),this.clearReset(),this.subscription.add(this.router.events.pipe((0,qr.h)(W=>W instanceof Fi.m2)).subscribe(W=>{this.showShipping=!1!==this.activatedRoute.firstChild.snapshot.data.showShipping,this.showBasket=!1!==this.activatedRoute.firstChild.snapshot.data.showBasket,this.showNavigation=!1!==this.activatedRoute.firstChild.snapshot.data.showNavigation,this.showFooter=!1!==this.activatedRoute.firstChild.snapshot.data.showFooter,this.showFilter=!1,this.activatedRoute.firstChild.snapshot.firstChild&&(this.showFilter=!!this.activatedRoute.firstChild.snapshot.firstChild.data.showFilter),typeof window<"u"&&window.scrollTo(0,0)})),typeof window>"u")return this.preconnect(this.contentUrl),void this.preconnect(this.apiUrl);const h=W=>{W?this.renderer.addClass(this.document.body,"no-scroll"):this.renderer.removeClass(this.document.body,"no-scroll")};this.subscription.add(this.basketOpen$.subscribe(W=>{h(W)})),this.subscription.add(this.mobileMenuOpen$.subscribe(W=>{h(W)}));const P=()=>{const W=.01*window.innerHeight;this.document.documentElement.style.setProperty("--vh",`${W}px`)};P(),this.subscription.add((0,Kr.R)(window,"resize").pipe((0,Sr.b)(50)).subscribe(P))}ngAfterViewInit(){var h=this;typeof window<"u"&&(function(){var W=(0,tr.Z)(function*(){const Yt=h.contentService.getDisclaimer();Yt?localStorage.getItem(h.disclaimerShown)||(localStorage.setItem(h.disclaimerShown,"displayed"),yield(0,as.n)(h.dialogService.openDisclaimerDialog().afterClosed())):localStorage.removeItem(h.disclaimerShown),h.cookiePolicyService.enable(),Yt&&h.router.url.toLowerCase()!==h.cookiePolicyService.cookiePolicyUrl&&!h.cookiePolicyService.checkCookie()&&h.dialogService.openCookieConsentDialog(),h.shippingService.loadSelectedShipping()});return function(){return W.apply(this,arguments)}}()(),this.subscription.add(this.router.events.subscribe(W=>{W instanceof Fi.m2&&W.url.toLowerCase()!==this.cookiePolicyService.cookiePolicyUrl.toLowerCase()&&this.cookiePolicyService.enabled&&!this.cookiePolicyService.checkCookie()&&this.dialogService.openCookieConsentDialog()})))}ngOnDestroy(){this.subscription.unsubscribe()}clearReset(){typeof window>"u"||localStorage.getItem(Zr)&&setTimeout(()=>{localStorage.removeItem(Zr)},5e3)}setHeader(h){this.showNavigationHeader=(E=>E>Or_desktop_min)(h)}setAnalytics(){const{type:h}=this.contentService.getMerchant();this.analyticService.setGoogleAnalytics(h)}setupAppEvents(){typeof window<"u"&&window.navigator&&navigator.serviceWorker&&navigator.serviceWorker.getRegistrations().then(function(h){for(const P of h)P.unregister()})}preconnect(h){const P=this.document.head,W=this.document.createElement("link");W.rel="preconnect",W.href=h,P.appendChild(W)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(vn.K0),e.Y36(Zi._s),e.Y36(e.Qsj),e.Y36(Fi.F0),e.Y36(Fi.gz),e.Y36(Zi.sO),e.Y36(Fs.N),e.Y36(ts.x),e.Y36(Hr.C),e.Y36(Vr.N),e.Y36(Zi.gv),e.Y36(cs.x0),e.Y36(bs),e.Y36(Ms.NN),e.Y36(Us.MA),e.Y36(Zi.fY),e.Y36(ls.W),e.Y36(Zi.vD))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-root"]],hostBindings:function(P,W){1&P&&e.NdJ("resize",function(we){return W.onResize(we)},!1,e.Jf7)},decls:16,vars:17,consts:[["mode","over","position","end",3,"opened","closedStart"],["mode","over","position","start",3,"opened","closedStart"],[4,"ngIf"],["aria-hidden","open$ | async",1,"content-body"],[3,"showShipping","showBasket"],[3,"showShipping",4,"ngIf"],[3,"showShipping"],[3,"showShipping","showBasket","showInfoBar"],[3,"showFilter",4,"ngIf"],[3,"showFilter"]],template:function(P,W){1&P&&(e.TgZ(0,"mat-sidenav-container")(1,"mat-sidenav",0),e.NdJ("closedStart",function(){return W.basketService.setOverlay(!1)}),e.ALo(2,"async"),e._UZ(3,"app-basket"),e.qZA(),e.TgZ(4,"mat-sidenav",1),e.NdJ("closedStart",function(){return W.mobileService.setOverlay(!1)}),e.ALo(5,"async"),e.YNc(6,nc,1,0,"app-mobile-menu",2),e.qZA(),e.YNc(7,Lc,2,1,"app-address-bar",2),e.YNc(8,ys,3,3,"ng-container",2),e.YNc(9,vl,3,1,"ng-container",2),e.YNc(10,es,3,4,"ng-container",2),e.YNc(11,ja,1,0,"app-navigation-header",2),e.TgZ(12,"div",3),e.ALo(13,"async"),e._UZ(14,"router-outlet"),e.qZA(),e.YNc(15,ic,1,0,"app-footer",2),e.qZA()),2&P&&(e.xp6(1),e.Q6J("opened",e.lcZ(2,11,W.basketOpen$)),e.xp6(3),e.Q6J("opened",e.lcZ(5,13,W.mobileMenuOpen$)),e.xp6(2),e.Q6J("ngIf",W.mobileService.loaded),e.xp6(1),e.Q6J("ngIf",W.address&&!W.isOnline),e.xp6(1),e.Q6J("ngIf",W.isDagrofa),e.xp6(1),e.Q6J("ngIf",W.isOnline),e.xp6(1),e.Q6J("ngIf",!W.showNavigationHeader&&!W.isDagrofa&&!W.isOnline),e.xp6(1),e.Q6J("ngIf",W.showNavigationHeader&&!W.isDagrofa&&!W.isOnline),e.xp6(1),e.ekj("content-body-shadow",e.lcZ(13,15,W.searchOpen$)),e.xp6(3),e.Q6J("ngIf",W.showFooter))},dependencies:[vn.O5,Zs.JX,Zs.TM,Fi.lC,jr.G,Ir.c,L.w,Vt.f,di,wa,Y,Q,Ki,Cl,vn.Ov],styles:['[_nghost-%COMP%]{display:block;position:relative;min-width:320px;min-height:100%;width:100%;overflow:auto}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]{display:block;height:100%;width:100%;overflow:unset}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]  mat-sidenav-content{display:flex;flex-direction:column;min-height:100vh;width:100%;overflow:unset}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]  mat-sidenav-content>*:not(app-address-bar):not(app-member-bar):not(.content-body){flex:0 0 auto}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]  mat-sidenav-content .content-body{flex:1 0 auto;display:flex;flex-direction:column;position:relative}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]  mat-sidenav-content .content-body>*:not(router-outlet){flex:1 0 auto}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]  mat-sidenav-content .content-body:before{content:"";display:block;position:absolute;top:0;width:100%;height:100%;background-color:#000;opacity:0;transition:opacity .4s ease;pointer-events:none;z-index:100}[_nghost-%COMP%]   mat-sidenav-container[_ngcontent-%COMP%]  mat-sidenav-content .content-body.content-body-shadow:before{opacity:.35}[_nghost-%COMP%]   mat-sidenav[_ngcontent-%COMP%]{position:fixed;max-height:100vh}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   app-address-bar[_ngcontent-%COMP%]{display:none}}']})}return E})();var oc=c(9372),bl=c(4283),kr=c(1119),Ea=c(6734),ws=c(4918);let fd=(()=>{class E extends Le.I{constructor(h,P){super(h,"paymentFailed"),this.basketService=P,this.defaultDescription="\n    <p>Pr\xf8v igen eller pr\xf8v evt. med et andet kort hvis du har mulighed for det.</p>\n    <p>Hvis du har mulighed for at betale med mobilepay, vil vi anbefale at v\xe6lge det.</p>\n  ",this.title=this.content.get("titleText")||"Betaling er fejlet ved Nets";let W=this.content.get("descriptionText")||this.defaultDescription;W=this.contentService.addImageSource(W),W=this.contentService.addLinkSource(W),this.description=W;const Yt=this.contentService.getSharedContent();this.buttonText=Yt.get("goToMainPageButtonText")}ngOnInit(){this.basketService.resetBasket()}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Zi.vD))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-failure"]],features:[e.qOj],decls:7,vars:5,consts:[[1,"container"],[1,"title"],[1,"rich-text",3,"innerHTML"],["routerLink","/"]],template:function(P,W){1&P&&(e.TgZ(0,"div",0)(1,"h1",1),e._uU(2),e.qZA(),e._UZ(3,"div",2),e.ALo(4,"sanitizeHtml"),e.TgZ(5,"app-text-button",3),e._uU(6),e.qZA()()),2&P&&(e.xp6(2),e.Oqu(W.title),e.xp6(1),e.Q6J("innerHTML",e.lcZ(4,3,W.description),e.oJD),e.xp6(3),e.Oqu(W.buttonText))},dependencies:[Yn.h,Fi.rH,ws.A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;background-color:var(--background-color);justify-content:center;align-items:center}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]{width:100%}}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;text-align:center}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{font-size:2.5em;font-weight:900}[_nghost-%COMP%]   .container[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:200px;height:56px;font-weight:600;margin-top:50px}"]})}return E})();var rc=c(2104),Nc=c(8180),Hs=c(4664),Ga=c(424),Ml=c(4222),xl=c(4291),za=c(6373),sa=c(5961);function Ol(E,b){1&E&&e._UZ(0,"app-product-card",17),2&E&&e.Q6J("product",b.$implicit)("big",!0)}function Sa(E,b){if(1&E&&(e.TgZ(0,"div",11)(1,"div",12)(2,"h2"),e._uU(3),e.qZA(),e.TgZ(4,"a",13),e._uU(5),e._UZ(6,"mat-icon",14),e.qZA()(),e.TgZ(7,"div",15),e.YNc(8,Ol,1,2,"app-product-card",16),e.ALo(9,"async"),e.qZA()()),2&E){const h=b.ngLet,P=e.oxw(2);e.xp6(3),e.Oqu(P.primarySection.title),e.xp6(1),e.Q6J("routerLink",h.url),e.xp6(1),e.hij("",h.name," "),e.xp6(3),e.Q6J("ngForOf",e.lcZ(9,4,P.primarySection.products))}}function sc(E,b){if(1&E&&(e.TgZ(0,"div",9),e.YNc(1,Sa,10,6,"div",10),e.qZA()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngLet",h.primarySection.link)}}function ns(E,b){if(1&E&&(e._UZ(0,"img",18),e.ALo(1,"cms")),2&E){const h=e.oxw();e.Q6J("src",e.lcZ(1,1,h.topTextareaImage),e.LSH)}}function Aa(E,b){if(1&E&&e._UZ(0,"app-richtext-box",19),2&E){const h=e.oxw();e.Q6J("content",h.topTextarea)("simple",!0)}}function Fc(E,b){if(1&E&&(e.TgZ(0,"app-text-button",20),e._uU(1),e._UZ(2,"mat-icon",14),e.qZA()),2&E){const h=e.oxw();e.Q6J("routerLink",h.topTextareaLink.Url)("target",h.topTextareaLink.Target),e.xp6(1),e.hij(" ",h.topTextareaLink.Name," ")}}function Bc(E,b){if(1&E&&e._UZ(0,"app-richtext-box",19),2&E){const h=e.oxw();e.Q6J("content",h.bottomTextarea)("simple",!0)}}function Pl(E,b){if(1&E&&(e._UZ(0,"img",18),e.ALo(1,"cms")),2&E){const h=e.oxw();e.Q6J("src",e.lcZ(1,1,h.bottomTextareaImage),e.LSH)}}let Ts=(()=>{class E extends Le.I{constructor(h,P,W,Yt,we,Ze,an){super(h,Ga.L.fancy,{meta:!0}),this.productQuery=P,this.productService=W,this.categoryService=Yt,this.authService=we,this.themeService=Ze,this.elRef=an,this.subNavigation=!1,this.topTextarea=this.content.get("topArticleText"),this.topTextareaImage=this.content.get("topImage"),this.topTextareaLink=this.content.get("topArticleLink"),this.bottomTextarea=this.content.get("bottomArticleText"),this.bottomTextareaImage=this.content.get("bottomImage"),this.subNavigation=this.contentService.getHasSubNavigation()}ngOnInit(){var h=this;return(0,tr.Z)(function*(){h.subscription=new Oo.w0,h.loading=h.productQuery.selectLoading(),yield h.initFrontPageProducts(4),h.subscription.add(h.authService.member.subscribe(()=>{h.initFrontPageProducts(4)}))})()}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}initFrontPageProducts(h){var P=this;this.categoryService.getFrontpage().pipe((0,Nc.q)(1)).subscribe(function(){var W=(0,tr.Z)(function*(Yt){const Ze=[...Yt].shift();if(Ze){yield P.productService.getCategoryProducts(h,Ze.id);const an={url:`${yi.environment.urls.products}`,params:{categories:Ze.id},name:P.content.get("productLink")||"Se vores fulde udvalg"},On={title:P.content.get("productTitle")||Ze.name,products:P.productQuery.selectCategoryProducts$.pipe((0,Hs.w)(zn=>P.productQuery.selectMany(zn[0]))),link:an};P.primarySection=On}});return function(Yt){return W.apply(this,arguments)}}())}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Yr.sO),e.Y36(Yr.M5),e.Y36(Zi.HE),e.Y36(Ml.e8),e.Y36(mn.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-home-fancy"]],hostVars:2,hostBindings:function(P,W){2&P&&e.ekj("has-sub-navigation",W.subNavigation)},features:[e.qOj],decls:12,vars:6,consts:[[1,"content"],["class","deals-wrapper",4,"ngIf"],[1,"textarea-wrapper"],[3,"src",4,"ngIf"],[1,"textarea-right"],[3,"content","simple",4,"ngIf"],[3,"routerLink","target",4,"ngIf"],[1,"textarea-wrapper","bottom"],[1,"textarea-left"],[1,"deals-wrapper"],["class","deals",4,"ngLet"],[1,"deals"],[1,"deals-header"],[3,"routerLink"],["svgIcon","arrow_forward"],[1,"deals-content"],[3,"product","big",4,"ngFor","ngForOf"],[3,"product","big"],[3,"src"],[3,"content","simple"],[3,"routerLink","target"]],template:function(P,W){1&P&&(e._UZ(0,"app-hero-banner"),e.TgZ(1,"div",0),e.YNc(2,sc,2,1,"div",1),e.TgZ(3,"div",2),e.YNc(4,ns,2,3,"img",3),e.TgZ(5,"div",4),e.YNc(6,Aa,1,2,"app-richtext-box",5),e.YNc(7,Fc,3,3,"app-text-button",6),e.qZA()(),e.TgZ(8,"div",7)(9,"div",8),e.YNc(10,Bc,1,2,"app-richtext-box",5),e.qZA(),e.YNc(11,Pl,2,3,"img",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",W.primarySection),e.xp6(2),e.Q6J("ngIf",W.topTextareaImage),e.xp6(2),e.Q6J("ngIf",W.topTextarea),e.xp6(1),e.Q6J("ngIf",W.topTextareaLink),e.xp6(3),e.Q6J("ngIf",W.bottomTextarea),e.xp6(1),e.Q6J("ngIf",W.bottomTextareaImage))},dependencies:[vn.sg,vn.O5,_t.h,Pn.Hw,Yn.h,Fi.rH,xl.Y,za.Y,sa.G,vn.Ov,Hi.I],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:var(--background-color);overflow-x:hidden}@media only screen and (min-width: 0px) and (max-width: 768px){.herligheder-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:30px}}.herligheder-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#799e91}.herligheder-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .price-text{color:#1a3791}.herligheder-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%]  .buttons .text-button{color:#1a3791}.demo-slagter-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#2c3d5e}.demo-slagter-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .price-text{color:#2c3d5e}.demo-slagter-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%]  .buttons .text-button{color:#2c3d5e}.grenaa-slagtehus-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .product-card-name{font-family:Proxima Nova,sans-serif}.styling-one-theme[_nghost-%COMP%]{background-color:#fff}[_nghost-%COMP%]   h1[_ngcontent-%COMP%]{font-size:3em}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{max-width:1560px;width:95vw}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:1560px;margin:80px 0 100px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:16px 0 10px;border-bottom:1px solid #000;padding-bottom:10px}@media only screen and (min-width: 1024px) and (max-width: 1640px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]{padding:0 20px 10px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{font-size:2em}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{color:#000;font-size:2.5em;font-weight:600;margin:0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:flex;color:unset;font-size:1.25em;text-decoration:none;align-self:flex-end}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:40px}@media only screen and (min-width: 1200px) and (max-width: 1640px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]{justify-content:space-around}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(4){display:none}}@media only screen and (min-width: 700px) and (max-width: 1200px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]{justify-content:space-around}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(3), [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:nth-child(4){display:none}}@media only screen and (max-width: 700px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]{flex-direction:column;align-content:center;flex-wrap:wrap}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%]{position:relative;background-color:var(--background-color);max-width:360px;width:95vw;height:auto;border:none;box-shadow:none;padding:0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a{display:flex;flex-direction:column;height:100%}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .product-card-image-container{flex:0 0 auto;height:360px;padding-bottom:10px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .product-card-image-container>img{border-radius:unset}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .product-card-name{flex:0 0 auto;font-size:1.5em;font-family:Playfair;font-weight:600;margin:0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .product-card-summary{flex:1 0 auto;line-clamp:unset;-webkit-line-clamp:unset;color:unset}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%] >a .price-text{font-size:1.25em;padding-top:10px;justify-self:flex-end}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%]  .buttons{position:absolute;right:0;bottom:0;width:180px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%]  .buttons app-text-button{height:unset}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]   .deals-content[_ngcontent-%COMP%]   app-product-card[_ngcontent-%COMP%]  .buttons .text-button{background-color:unset;border-width:unset;border-radius:unset;color:unset;justify-content:flex-end;padding:unset}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin:180px 0}@media only screen and (min-width: 1024px) and (max-width: 1640px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{padding:0 20px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper.bottom[_ngcontent-%COMP%]{flex-direction:column-reverse}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper.bottom[_ngcontent-%COMP%]{flex-direction:column-reverse}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   app-richtext-box[_ngcontent-%COMP%]     iframe{width:unset}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:50%}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:80%}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:95vw}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 1 0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   .textarea-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:80px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   .textarea-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   .textarea-right[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-left:0}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   .textarea-left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:80px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   .textarea-left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:0}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .textarea-wrapper[_ngcontent-%COMP%]   .textarea-left[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:0}}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content}[_nghost-%COMP%]   app-text-button[_ngcontent-%COMP%]     .text-button{border-radius:100px}"]})}return E})();function yl(E,b){if(1&E&&e._UZ(0,"img",11),2&E){const h=e.oxw().$implicit,P=e.oxw();e.Q6J("src",P.contentUrl+h.imageUrl,e.LSH)}}function ma(E,b){if(1&E){const h=e.EpF();e.ynx(0),e.TgZ(1,"a",8),e.NdJ("click",function(){const Yt=e.CHM(h).$implicit,we=e.oxw();return e.KtG(we.clickCategory(Yt.id))}),e.YNc(2,yl,1,1,"img",9),e.TgZ(3,"label",10),e._uU(4),e.qZA()(),e.BQk()}if(2&E){const h=b.$implicit;e.xp6(1),e.ekj("no-image",!h.imageUrl),e.Q6J("id","category-"+h.id),e.xp6(1),e.Q6J("ngIf",h.imageUrl),e.xp6(1),e.Q6J("for","category-"+h.id),e.xp6(1),e.Oqu(h.name)}}function qs(E,b){if(1&E&&e._UZ(0,"img",11),2&E){const h=e.oxw(3);e.Q6J("src",h.contentUrl+h.leftBanner.image,e.LSH)}}function Ia(E,b){if(1&E&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&E){const h=e.oxw(3);e.xp6(1),e.Oqu(h.leftBanner.subtitle)}}function ro(E,b){if(1&E&&(e.TgZ(0,"a",15),e.YNc(1,qs,1,1,"img",9),e.TgZ(2,"label"),e._uU(3),e.qZA(),e.YNc(4,Ia,2,1,"span",16),e.TgZ(5,"app-text-button"),e._uU(6,"SE MERE"),e.qZA()()),2&E){const h=e.oxw(2);e.ekj("no-image",!h.leftBanner.image),e.Q6J("routerLink",h.leftBanner.link)("target",h.leftBanner.target),e.xp6(1),e.Q6J("ngIf",h.leftBanner.image),e.xp6(2),e.Oqu(h.leftBanner.title),e.xp6(1),e.Q6J("ngIf",h.leftBanner.subtitle)}}function C(E,b){if(1&E&&e._UZ(0,"img",11),2&E){const h=e.oxw(3);e.Q6J("src",h.contentUrl+h.rightBanner.image,e.LSH)}}function w(E,b){if(1&E&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&E){const h=e.oxw(3);e.xp6(1),e.Oqu(h.rightBanner.subtitle)}}function dt(E,b){if(1&E&&(e.TgZ(0,"a",15),e.YNc(1,C,1,1,"img",9),e.TgZ(2,"label"),e._uU(3),e.qZA(),e.YNc(4,w,2,1,"span",16),e.TgZ(5,"app-text-button"),e._uU(6,"SE MERE"),e.qZA()()),2&E){const h=e.oxw(2);e.ekj("no-image",!h.rightBanner.image),e.Q6J("routerLink",h.rightBanner.link)("target",h.rightBanner.target),e.xp6(1),e.Q6J("ngIf",h.rightBanner.image),e.xp6(2),e.Oqu(h.rightBanner.title),e.xp6(1),e.Q6J("ngIf",h.rightBanner.subtitle)}}function Et(E,b){if(1&E&&(e.TgZ(0,"div",12)(1,"h2"),e._uU(2),e.qZA(),e.TgZ(3,"div",13),e.YNc(4,ro,7,7,"a",14),e.YNc(5,dt,7,7,"a",14),e.qZA()()),2&E){const h=e.oxw();e.xp6(2),e.Oqu(h.title),e.xp6(2),e.Q6J("ngIf",h.leftBanner),e.xp6(1),e.Q6J("ngIf",h.rightBanner)}}let ne=(()=>{class E extends Le.I{constructor(h,P,W,Yt,we){super(h,Ga.L.meny,{meta:!0}),this.categoryService=P,this.bannerService=W,this.themeService=Yt,this.elRef=we,this.contentUrl=yi.environment.cmsOrigin,this.productsUrl=yi.environment.urls.products,this.subNavigation=!1,this.subscription=new Oo.w0,this.subNavigation=this.contentService.getHasSubNavigation(),this.title=this.content.get("title")||"Popul\xe6rt lige nu",this.maxCategories=this.content.get("maxCategories")||4}ngOnInit(){this.subscription.add(this.bannerService.getBanners(this.contentService.getMerchantId()).subscribe(h=>{this.leftBanner=h.find(P=>P?.type===at.$.Left),this.rightBanner=h.find(P=>P?.type===at.$.Right)})),this.categories=this.categoryService.getFlat().pipe((0,si.U)(h=>h.filter(P=>!P.hidden)))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}clickCategory(h){this.categoryService.clickCategory(h)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Zi.HE),e.Y36(Zi.QD),e.Y36(mn.f),e.Y36(e.SBq))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-home-meny"]],hostVars:2,hostBindings:function(P,W){2&P&&e.ekj("has-sub-navigation",W.subNavigation)},features:[e.qOj],decls:14,vars:9,consts:[[1,"content"],[1,"category-links-wrapper"],[1,"category-links"],["id","category-all",1,"unstyled-link","no-image",3,"routerLink"],["src","/assets/images/spar/category-all-home.png"],["for","category-all"],[4,"ngFor","ngForOf"],["class","big-links-wrapper",4,"ngIf"],[1,"unstyled-link",3,"id","click"],[3,"src",4,"ngIf"],[3,"for"],[3,"src"],[1,"big-links-wrapper"],[1,"big-links"],["class","unstyled-link",3,"no-image","routerLink","target",4,"ngIf"],[1,"unstyled-link",3,"routerLink","target"],[4,"ngIf"]],template:function(P,W){1&P&&(e._UZ(0,"app-hero-banner"),e.TgZ(1,"div",0)(2,"div",1)(3,"h2"),e._uU(4,"Kategorier"),e.qZA(),e.TgZ(5,"div",2)(6,"a",3),e._UZ(7,"img",4),e.TgZ(8,"label",5),e._uU(9,"Se alle"),e.qZA()(),e.YNc(10,ma,5,6,"ng-container",6),e.ALo(11,"slice"),e.ALo(12,"async"),e.qZA()(),e.YNc(13,Et,6,3,"div",7),e.qZA()),2&P&&(e.xp6(6),e.Q6J("routerLink",W.productsUrl),e.xp6(4),e.Q6J("ngForOf",e.Dn7(11,3,e.lcZ(12,7,W.categories),0,W.maxCategories)),e.xp6(3),e.Q6J("ngIf",W.leftBanner||W.rightBanner))},dependencies:[vn.sg,vn.O5,Yn.h,Fi.rH,sa.G,vn.Ov,vn.OU],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;overflow-x:hidden}.has-sub-navigation[_nghost-%COMP%]{padding:108px 0 100px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]   a#category-all[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:block;right:unset;width:180px;height:200px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{text-transform:none}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:24px;text-transform:none}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]{background-color:#f1eee2}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{text-transform:none;font-size:48px;line-height:48px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-top:0;font-size:22px;font-weight:700;line-height:26px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{box-sizing:border-box;width:132px;height:48px}@media only screen and (min-width: 0px) and (max-width: 768px){.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding-top:0}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links-wrapper[_ngcontent-%COMP%]{margin-top:32px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links-wrapper[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]   a#category-all[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{right:unset;width:117px;height:130px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0 0 16px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a.unstyled-link[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:24px;line-height:34px}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a.unstyled-link[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:none}.spar-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a.unstyled-link[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{margin-top:8px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;max-width:1296px;width:100%}@media only screen and (min-width: 1024px) and (max-width: 1360px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{width:964px}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{width:calc(100vw - 24px);padding-top:32px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links-wrapper[_ngcontent-%COMP%]{width:100%;padding-top:48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links-wrapper[_ngcontent-%COMP%]{padding-top:0}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%;gap:32px;margin-bottom:48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]{margin-bottom:32px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1 1 0px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;text-decoration:none}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a.no-image[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a.no-image[_ngcontent-%COMP%]{background-color:var(--primary-color);border-radius:8px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;inset:0;height:100%;width:100%;object-fit:cover;border-radius:8px;filter:brightness(.5)}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a#category-all[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a#category-all[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{display:none;filter:none}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%]{filter:brightness(.6)}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%], [_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{background-color:#0000;font-family:var(--font);font-style:normal;font-weight:700;font-size:30px;line-height:35px;color:var(--text-primary-darker-color);text-align:center;text-transform:uppercase;padding:0 10px;word-break:break-word;cursor:pointer;z-index:500}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{height:200px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{height:130px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:22px;line-height:28px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{display:none;margin:0 0 16px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .category-links-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{display:inline-block}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;background-color:#e7e1dd;padding:40px 9999px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0 0 32px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%]{flex-direction:column;gap:16px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%]{flex-direction:column;gap:8px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{height:300px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1 1 auto}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex:1 1 auto;height:160px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:50px;line-height:55px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:30px;line-height:35px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--text-primary-darker-color);font-weight:700;font-size:22px;line-height:26px;margin-top:16px;z-index:500}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .big-links-wrapper[_ngcontent-%COMP%]   .big-links[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{width:min-content;margin-top:24px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;line-height:24px;letter-spacing:1px;text-transform:uppercase}"]})}return E})();var qe=c(836),ln=c(6191),fi=c(8005),Vi=c(5143),Ro=c(8810);function yr(E,b){if(1&E&&e._UZ(0,"app-richtext-box",6),2&E){const h=e.oxw();e.Q6J("content",h.topTextBanner)}}function Ds(E,b){if(1&E&&(e.TgZ(0,"a",16),e._uU(1),e.qZA()),2&E){const h=e.oxw().ngLet;e.Q6J("routerLink",h.url)("queryParams",h.params),e.xp6(1),e.Oqu(h.name)}}function is(E,b){1&E&&e._UZ(0,"app-product-card",19),2&E&&e.Q6J("product",b.$implicit)("big",!0)}function Du(E,b){if(1&E&&(e.ynx(0),e.TgZ(1,"div",17),e.YNc(2,is,1,2,"app-product-card",18),e.qZA(),e.BQk()),2&E){const h=b.ngLet;e.xp6(1),e.ekj("rows-1",h.length<=4)("rows-2",4<h.length&&h.length<=8)("rows-3",8<h.length&&h.length<=12)("rows-4",12<h.length&&h.length<=16)("rows-5",16<h.length),e.xp6(1),e.Q6J("ngForOf",h)}}function zr(E,b){if(1&E&&(e.TgZ(0,"app-text-button",20),e._uU(1),e.qZA()),2&E){const h=e.oxw().ngLet;e.Q6J("routerLink",h.url)("queryParams",h.params),e.xp6(1),e.hij(" ",h.name," ")}}function ku(E,b){if(1&E){const h=e.EpF();e.TgZ(0,"div",10)(1,"app-text-button",11),e.NdJ("click",function(){e.CHM(h);const W=e.oxw(2);return e.KtG(W.openFilterMenu())}),e._uU(2),e.qZA(),e.TgZ(3,"div",12)(4,"h2"),e._uU(5),e.qZA(),e.YNc(6,Ds,2,3,"a",13),e.qZA(),e.YNc(7,Du,3,11,"ng-container",14),e.ALo(8,"async"),e.YNc(9,zr,2,3,"app-text-button",15),e.qZA()}if(2&E){const h=b.ngLet,P=e.oxw(2);e.ekj("border",P.secondarySections&&P.secondarySections.length>0),e.xp6(2),e.Oqu(P.openCategoriesMenu),e.xp6(3),e.Oqu(P.primarySection.title),e.xp6(1),e.Q6J("ngIf",h.name),e.xp6(1),e.Q6J("ngLet",e.lcZ(8,7,P.primarySection.products)),e.xp6(2),e.Q6J("ngIf",h.name)}}function _d(E,b){if(1&E&&(e.TgZ(0,"a",16),e._uU(1),e.qZA()),2&E){const h=e.oxw().ngLet;e.Q6J("routerLink",h.url)("queryParams",h.params),e.xp6(1),e.Oqu(h.name)}}function wl(E,b){1&E&&e._UZ(0,"app-product-card",19),2&E&&e.Q6J("product",b.$implicit)("big",!0)}function Eu(E,b){if(1&E&&(e.ynx(0),e.TgZ(1,"div",17),e.YNc(2,wl,1,2,"app-product-card",18),e.qZA(),e.BQk()),2&E){const h=b.ngLet;e.xp6(1),e.ekj("rows-1",h.length<=4)("rows-2",4<h.length&&h.length<=8)("rows-3",8<h.length&&h.length<=12)("rows-4",12<h.length&&h.length<=16)("rows-5",16<h.length),e.xp6(1),e.Q6J("ngForOf",h)}}function Cd(E,b){if(1&E&&(e.TgZ(0,"app-text-button",20),e._uU(1),e.qZA()),2&E){const h=e.oxw().ngLet;e.Q6J("routerLink",h.url)("queryParams",h.params),e.xp6(1),e.hij(" ",h.name," ")}}function Tl(E,b){if(1&E&&(e.ynx(0),e.TgZ(1,"div",12)(2,"h2"),e._uU(3),e.qZA(),e.YNc(4,_d,2,3,"a",13),e.qZA(),e.YNc(5,Eu,3,11,"ng-container",14),e.ALo(6,"async"),e.YNc(7,Cd,2,3,"app-text-button",15),e.BQk()),2&E){const h=b.ngLet,P=e.oxw().$implicit;e.xp6(3),e.Oqu(P.title),e.xp6(1),e.Q6J("ngIf",h.name),e.xp6(1),e.Q6J("ngLet",e.lcZ(6,4,P.products)),e.xp6(2),e.Q6J("ngIf",h.name)}}function Qa(E,b){if(1&E&&(e.TgZ(0,"div",21),e.YNc(1,Tl,8,6,"ng-container",14),e.qZA()),2&E){const h=b.$implicit;e.xp6(1),e.Q6J("ngLet",h.link)}}function Ja(E,b){if(1&E&&(e.TgZ(0,"div",7),e.YNc(1,ku,10,9,"div",8),e.YNc(2,Qa,2,1,"div",9),e.qZA()),2&E){const h=e.oxw();e.xp6(1),e.Q6J("ngLet",h.primarySection.link),e.xp6(1),e.Q6J("ngForOf",h.secondarySections)}}function Wa(E,b){if(1&E&&e._UZ(0,"app-full-banner",22),2&E){const h=e.oxw();e.Q6J("content",h.bottomBanner)}}function vd(E,b){if(1&E&&e._UZ(0,"app-richtext-box",23),2&E){const h=e.oxw();e.Q6J("content",h.bottomTextBanner)}}let Dl=(()=>{class E extends Le.I{constructor(h,P,W,Yt,we,Ze,an,On,zn){super(h,Ga.L.simple,{meta:!0}),this.productQuery=P,this.productService=W,this.categoryService=Yt,this.deviceService=we,this.authService=Ze,this.themeService=an,this.elRef=On,this.bottomSheet=zn,this.subNavigation=!1,this.topTextBanner=this.content.get("textBannerTop"),this.bottomBanner={image:this.content.get("campaign2BannerImage"),link:this.content.get("campaign2BannerUrl"),title:this.content.get("campaign2BannerName")},this.bottomTextBanner=this.content.get("textBannerBottom");const Jn=this.contentService.get("productsOverview");this.filterMenu={categoryTitle:Jn.get("categoryLabelText"),allProducts:Jn.get("allProductsFilterText")},this.openCategoriesMenu=Jn.get("openCategoriesMenuText"),this.subNavigation=this.contentService.getHasSubNavigation()}ngOnInit(){this.subscription=new Oo.w0,169!==this.contentService.getMerchant().id&&(this.loading=this.productQuery.selectLoading(),this.initFrontPageProducts(),this.subscription.add(this.authService.member.pipe((0,qe.T)(1)).subscribe(()=>{this.initFrontPageProducts()})))}ngAfterContentInit(){this.themeService.subscribeComponent(this.elRef)}ngOnDestroy(){this.subscription.unsubscribe()}initFrontPageProducts(){var h=this;this.categoryService.getFrontpage().pipe((0,Nc.q)(1)).subscribe(function(){var P=(0,tr.Z)(function*(W){const Yt=[...W],we=Yt.shift();if(we){yield h.productService.getCategoryProducts(we.frontPageProductsCount,we.id);const Ze={url:`${yi.environment.urls.products}`,params:{categories:we.id},name:h.content.get("seeAllLocalOffers")},an={title:we.name,products:h.productQuery.selectCategoryProducts$.pipe((0,Hs.w)(On=>h.productQuery.selectMany(On[0]))),link:Ze};h.primarySection=an}if(h.secondarySections=[],Yt.length)for(const[Ze,an]of Yt.entries()){yield h.productService.getCategoryProducts(an.frontPageProductsCount,an.id);const On={url:`${yi.environment.urls.products}`,params:{categories:an.id},name:an.name},zn={title:an.name,products:h.productQuery.selectCategoryProducts$.pipe((0,Hs.w)(Jn=>h.productQuery.selectMany(Jn[Ze+1]))),link:On};h.secondarySections.push(zn)}});return function(W){return P.apply(this,arguments)}}())}openFilterMenu(){this.bottomSheet.open(ln.o0,{data:this.filterMenu})}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(Zi._s),e.Y36(Yr.sO),e.Y36(Yr.M5),e.Y36(Zi.HE),e.Y36(cs.x0),e.Y36(Ml.e8),e.Y36(mn.f),e.Y36(e.SBq),e.Y36(fi.ch))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-home-simple"]],hostVars:2,hostBindings:function(P,W){2&P&&e.ekj("has-sub-navigation",W.subNavigation)},features:[e.qOj],decls:7,vars:4,consts:[[1,"content"],[1,"top-banner"],[3,"content",4,"ngIf"],["class","deals-wrapper",4,"ngIf"],["class","bottom-banner",3,"content",4,"ngIf"],["class","bottom-text-banner",3,"content",4,"ngIf"],[3,"content"],[1,"deals-wrapper"],["class","deals primary",3,"border",4,"ngLet"],["class","deals secondary",4,"ngFor","ngForOf"],[1,"deals","primary"],[1,"filter-button",3,"click"],[1,"deals-header"],[3,"routerLink","queryParams",4,"ngIf"],[4,"ngLet"],["color","accent",3,"routerLink","queryParams",4,"ngIf"],[3,"routerLink","queryParams"],[1,"deals-content"],[3,"product","big",4,"ngFor","ngForOf"],[3,"product","big"],["color","accent",3,"routerLink","queryParams"],[1,"deals","secondary"],[1,"bottom-banner",3,"content"],[1,"bottom-text-banner",3,"content"]],template:function(P,W){1&P&&(e._UZ(0,"app-hero-banner"),e.TgZ(1,"div",0),e._UZ(2,"app-banner",1),e.YNc(3,yr,1,1,"app-richtext-box",2),e.YNc(4,Ja,3,2,"div",3),e.YNc(5,Wa,1,1,"app-full-banner",4),e.YNc(6,vd,1,1,"app-richtext-box",5),e.qZA()),2&P&&(e.xp6(3),e.Q6J("ngIf",W.topTextBanner),e.xp6(1),e.Q6J("ngIf",W.primarySection),e.xp6(1),e.Q6J("ngIf",W.bottomBanner&&W.bottomBanner.image),e.xp6(1),e.Q6J("ngIf",W.bottomTextBanner))},dependencies:[vn.sg,vn.O5,_t.h,Yn.h,Fi.rH,xl.Y,Vi.H,Ro.S,za.Y,sa.G,vn.Ov],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:center;width:100%;height:100%;background-color:#ededed;overflow-x:hidden;padding:48px 0 100px}[_nghost-%COMP%]   app-hero-banner[_ngcontent-%COMP%]{margin:-48px 0 24px}.has-sub-navigation[_nghost-%COMP%]{padding:108px 0 100px}@media only screen and (min-width: 0px) and (max-width: 768px){.content-below[_nghost-%COMP%]{padding-bottom:0}}.city-catering-theme[_nghost-%COMP%]{background-color:#eeeddb}.new-year-theme[_nghost-%COMP%]{background-color:#f0e8f8}.la-brava-theme[_nghost-%COMP%]{background-color:#d6d6d6}.herligheder-theme[_nghost-%COMP%]{background-color:#fff}.demo-shop-theme[_nghost-%COMP%]{background-color:#e9e9e9}.fandanko-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:BebasNeue}.clpartyservice-theme[_nghost-%COMP%]{background-color:var(--background-color)}.clpartyservice-theme[_nghost-%COMP%]   h2[_ngcontent-%COMP%]{font-family:var(--font)}.clpartyservice-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .clpartyservice-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.apetit-theme[_nghost-%COMP%]{background-color:#3b3833}.apetit-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .apetit-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}.apetit-theme[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]     .text-button{background-color:#3b3833;border:1px solid #fff}.humoer-moebler-theme[_nghost-%COMP%]{background-color:#fff}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{max-width:var(--nxt-width)}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{padding:24px 0}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .top-banner[_ngcontent-%COMP%]{margin:0 0 48px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .top-banner[_ngcontent-%COMP%]{margin:0 0 24px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .bottom-banner[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .bottom-text-banner[_ngcontent-%COMP%]{margin:20px 0 0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .bottom-text-banner[_ngcontent-%COMP%]     app-center-section{background-color:#0000;box-shadow:unset}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin:16px 0 28px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%]{justify-content:center}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:0 0 auto}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{color:#000;font-size:1.5em;font-weight:600;margin:0}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-header[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#000;font-weight:600}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   app-text-button[_ngcontent-%COMP%]{text-align:center;margin:32px 0 40px;height:46px;width:auto}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;position:relative}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]{display:flex;flex-direction:column;max-width:var(--nxt-width)}@media only screen and (min-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]{width:80vw}}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]{width:90vw}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%]{width:95vw}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals.primary[_ngcontent-%COMP%]{margin-bottom:40px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals.primary[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals.primary.border[_ngcontent-%COMP%]{border-bottom:1px solid var(--accent-color)}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals.primary[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:none}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals.primary[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{display:block;align-self:center;width:90vw;margin-bottom:28px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals.secondary[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,288px);overflow:hidden;justify-content:space-between;grid-row-gap:20px;grid-column-gap:8px;padding:5px;margin:-5px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content[_ngcontent-%COMP%]{justify-content:space-around}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-1[_ngcontent-%COMP%]{grid-template-rows:repeat(1,1fr);height:400px;max-height:400px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-1[_ngcontent-%COMP%]{grid-template-rows:repeat(1,1fr);height:400px;max-height:400px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-1[_ngcontent-%COMP%]{grid-template-rows:repeat(2,1fr);height:820px;max-height:820px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-2[_ngcontent-%COMP%]{grid-template-rows:repeat(2,1fr);height:820px;max-height:820px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-2[_ngcontent-%COMP%]{grid-template-rows:repeat(2,1fr);height:820px;max-height:820px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-2[_ngcontent-%COMP%]{grid-template-rows:repeat(4,1fr);height:1660px;max-height:1660px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-3[_ngcontent-%COMP%]{grid-template-rows:repeat(3,1fr);height:1240px;max-height:1240px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-3[_ngcontent-%COMP%]{grid-template-rows:repeat(3,1fr);height:1240px;max-height:1240px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-3[_ngcontent-%COMP%]{grid-template-rows:repeat(6,1fr);height:2500px;max-height:2500px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-4[_ngcontent-%COMP%]{grid-template-rows:repeat(4,1fr);height:1660px;max-height:1660px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-4[_ngcontent-%COMP%]{grid-template-rows:repeat(4,1fr);height:1660px;max-height:1660px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-4[_ngcontent-%COMP%]{grid-template-rows:repeat(8,1fr);height:3340px;max-height:3340px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-5[_ngcontent-%COMP%]{grid-template-rows:repeat(5,1fr);height:2080px;max-height:2080px}@media only screen and (min-width: 768px) and (max-width: 1024px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-5[_ngcontent-%COMP%]{grid-template-rows:repeat(5,1fr);height:2080px;max-height:2080px}}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > .deals-content.rows-5[_ngcontent-%COMP%]{grid-template-rows:repeat(10,1fr);height:4180px;max-height:4180px}}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{display:none;align-self:center;width:230px;height:42px}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .content[_ngcontent-%COMP%]   .deals[_ngcontent-%COMP%] > app-text-button[_ngcontent-%COMP%]{display:block}}"]})}return E})();var Qo=c(4260),tg=c(1165),Xo=c(6223),Xs=c(4807);function eg(E,b){if(1&E&&(e.TgZ(0,"div",3),e._uU(1),e.qZA()),2&E){const h=b.item;e.xp6(1),e.Oqu(h.StoreName)}}function ng(E,b){1&E&&(e.TgZ(0,"label"),e._uU(1,"Tlf:"),e.qZA())}function ig(E,b){1&E&&(e.TgZ(0,"label"),e._uU(1,"Adresse:"),e.qZA())}function og(E,b){if(1&E&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&E){const h=e.oxw().item;e.xp6(1),e.Oqu(h.Phone)}}function rg(E,b){if(1&E&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&E){const h=e.oxw().item;e.xp6(1),e.lnq("",h.Address," ",h.ZipCode," ",h.City,"")}}function $a(E,b){if(1&E&&(e.TgZ(0,"a",10),e.NdJ("click",function(P){return P.stopPropagation()}),e._UZ(1,"img",11),e.qZA()),2&E){const h=e.oxw().item,P=e.oxw();e.Q6J("href",h.SmileyLink,e.LSH),e.xp6(1),e.Q6J("src",P.getSmiley(h.SmileyIcon),e.LSH)}}function Su(E,b){if(1&E&&(e.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"span"),e._uU(4),e.qZA()()(),e.TgZ(5,"div",5)(6,"div",7),e.YNc(7,ng,2,0,"label",8),e.YNc(8,ig,2,0,"label",8),e.qZA(),e.TgZ(9,"div",6),e.YNc(10,og,2,1,"span",8),e.YNc(11,rg,2,3,"span",8),e.qZA()(),e.YNc(12,$a,2,2,"a",9),e.qZA()),2&E){const h=b.item;e.xp6(4),e.Oqu(h.StoreName),e.xp6(3),e.Q6J("ngIf",h.Phone),e.xp6(1),e.Q6J("ngIf",h.Address),e.xp6(2),e.Q6J("ngIf",h.Phone),e.xp6(1),e.Q6J("ngIf",h.Address),e.xp6(1),e.Q6J("ngIf",h.SmileyLink)}}let bd=(()=>{class E{constructor(){this.required=!0,this.selectedEventStoreOptionChange=new e.vpe}set selectedEventStoreOption(h){this.selectedEventStoreOptionValue=h,this.selectedEventStoreOptionChange.emit(h?.StoreId)}get selectedEventStoreOption(){return this.selectedEventStoreOptionValue}ngOnInit(){this.selectedEventStoreOption=this.options.find(h=>h.StoreId===this.initSelection),this.placeholder=this.placeholder??"V\xe6lg udleveringsbutik"}searchFn(h,P){const W=+(h=h.toLowerCase());return!!(W&&P.StoreId===W||P.StoreName.toLowerCase().includes(h)||P.Phone?.toLowerCase().includes(h)||`${P.Address} ${P.ZipCode} ${P.City}`?.toLowerCase().includes(h))}getSmiley(h){let P;switch(h){case at.W5.Happy:P="assets/icons/smiley/happy.png";break;case at.W5.Ok:P="assets/icons/smiley/ok.png";break;case at.W5.Sad:P="assets/icons/smiley/sad.png"}return P}static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-event-dropdown"]],inputs:{required:"required",options:"options",initSelection:"initSelection",placeholder:"placeholder"},outputs:{selectedEventStoreOptionChange:"selectedEventStoreOptionChange"},decls:3,vars:5,consts:[["labelForId","customerId",3,"items","ngModel","searchFn","placeholder","clearable","ngModelChange"],["ng-label-tmp","","ng-label-tmp",""],["ng-option-tmp",""],[1,"customer-selected"],[1,"event-options"],[1,"group"],[1,"values"],[1,"labels"],[4,"ngIf"],["target","_blank",3,"href","click",4,"ngIf"],["target","_blank",3,"href","click"],[1,"smiley",3,"src"]],template:function(P,W){1&P&&(e.TgZ(0,"ng-select",0),e.NdJ("ngModelChange",function(we){return W.selectedEventStoreOption=we}),e.YNc(1,eg,2,1,"ng-template",1),e.YNc(2,Su,13,6,"ng-template",2),e.qZA()),2&P&&e.Q6J("items",W.options)("ngModel",W.selectedEventStoreOption)("searchFn",W.searchFn)("placeholder",W.placeholder)("clearable",!1)},dependencies:[vn.O5,Xo.JJ,Xo.On,Xs.w9,Xs.ir,Xs.mR],styles:["[_nghost-%COMP%]   .event-options[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(100px,1fr)) 32px;grid-template-rows:1fr;gap:20px;font-weight:600}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .event-options[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:auto;gap:4px}}[_nghost-%COMP%]   .event-options[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;gap:16px;text-overflow:ellipsis;overflow:hidden;white-space:pre-wrap}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .event-options[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{gap:8px}}[_nghost-%COMP%]   .event-options[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .event-options[_ngcontent-%COMP%]   .smiley[_ngcontent-%COMP%]{width:32px;height:32px}"]})}return E})();var Mr=c(9983);const Au=["content"],ac=["*"];let Iu=(()=>{class E{constructor(h){this.renderer=h,this.hidden=!0,this.icon=this.hidden?It.Ym.plus:It.Ym.minus}ngAfterViewInit(){this.height=this.content.nativeElement.getBoundingClientRect().height,this.setHeight()}toggle(){this.hidden=!this.hidden,this.icon=this.hidden?It.Ym.plus:It.Ym.minus,this.setHeight()}setHeight(){this.renderer.setStyle(this.content.nativeElement,"max-height",`${this.hidden?0:this.height}px`)}static#t=this.\u0275fac=function(P){return new(P||E)(e.Y36(e.Qsj))};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-kage-consent-details"]],viewQuery:function(P,W){if(1&P&&e.Gf(Au,7),2&P){let Yt;e.iGM(Yt=e.CRH())&&(W.content=Yt.first)}},inputs:{title:"title"},ngContentSelectors:ac,decls:7,vars:4,consts:[[3,"click"],["for","content"],[3,"svgIcon"],["id","content",1,"text"],["content",""]],template:function(P,W){1&P&&(e.F$t(),e.TgZ(0,"button",0),e.NdJ("click",function(){return W.toggle()}),e.TgZ(1,"label",1),e._uU(2),e.qZA(),e._UZ(3,"mat-icon",2),e.qZA(),e.TgZ(4,"div",3,4),e.Hsn(6),e.qZA()),2&P&&(e.xp6(2),e.Oqu(W.title),e.xp6(1),e.Q6J("svgIcon",W.icon),e.xp6(1),e.ekj("hidden",W.hidden))},dependencies:[Pn.Hw],styles:["[_nghost-%COMP%]{display:block;width:100%;box-sizing:border-box;padding-right:16px}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{position:relative;cursor:pointer;background-color:inherit;font-size:1.2em;width:100%;padding:0;border:none;text-align:left;outline:none}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:600}[_nghost-%COMP%]   button[_ngcontent-%COMP%]   mat-icon[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:16px;height:16px}[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{white-space:pre-line;color:#878787;margin:0;padding:16px 8px 0 0;height:100%;max-height:100%;overflow:hidden;transition:all .3s ease-out}@media only screen and (min-width: 0px) and (max-width: 768px){[_nghost-%COMP%]   .text[_ngcontent-%COMP%]{overflow-x:visible}}[_nghost-%COMP%]   .text.hidden[_ngcontent-%COMP%]{padding:0 8px 0 0}"]})}return E})();var ks=c(7188),Vs=c(9850),cc=c(1166),Uc=c(1176),lc=c(5181);function Lu(E,b){1&E&&e._UZ(0,"app-strip",1),2&E&&e.Q6J("content",b.$implicit)}let Md=(()=>{class E{static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-strip-container"]],inputs:{strips:"strips"},decls:1,vars:1,consts:[[3,"content",4,"ngFor","ngForOf"],[3,"content"]],template:function(P,W){1&P&&e.YNc(0,Lu,1,1,"app-strip",0),2&P&&e.Q6J("ngForOf",W.strips)},dependencies:[vn.sg,lc.B],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%}"]})}return E})();function Ru(E){return()=>{if((0,vn.NF)(E)){const b=Array.from(document.querySelectorAll("style[ng-transition]")),h=document.body.querySelector("app-root"),P=h.cloneNode();h.setAttribute("ng-non-bindable",""),P.style.display="none",document.body.insertBefore(P,h),b.forEach(W=>{W.removeAttribute("ng-transition")}),(0,Kr.R)(window,"load").pipe((0,Nc.q)(1)).subscribe({complete:()=>{b.forEach(W=>W.remove()),P.style.display="block",h.remove()}})}}}var dc=c(3176),Qr=c(3449),uc=c(1408),La=c(7592),Nu=c(1438),Ra=c(1036),kl=c(3025),xd=c(5330);function Fu(E,b){if(1&E&&(e.TgZ(0,"ng-option",2),e._uU(1),e.qZA()),2&E){const h=b.$implicit;e.Q6J("value",h.id)("disabled",h.disabled),e.xp6(1),e.hij(" ",h.period," ")}}let Bu=(()=>{class E{constructor(){this.loaded=!0,this.isWolt=!1,this.selectedIntervalOptionChange=new e.vpe}set selectedIntervalOption(h){this.selectedIntervalValue=h,this.selectedInterval=this.findInterval(h),this.selectedIntervalOptionChange.emit(this.selectedInterval)}get selectedIntervalOption(){return this.selectedIntervalValue}ngOnChanges(h){if(!this.loaded||(this.intervals=this.getIntervals(),!h.init&&!h.shippingDay))return;const P=h.init?.currentValue;if((null===P||this.selectedIntervalOption!==P)&&h.init?.firstChange&&null!==P&&P>=-1){const W=this.findInterval(P);this.selectedIntervalOption=W.id}}getIntervals(){const h=[];if(this.shippingDay){const P=this.shippingDay;for(const W of P.intervalGroups)for(const Yt of W.intervals)this.isWolt&&(Yt.period=Yt.period.substring(0,5)),h.push(Yt)}return h}findInterval(h){return this.intervals.find(P=>P.id===h)}static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275cmp=e.Xpm({type:E,selectors:[["app-shipping-interval-select"]],inputs:{shippingDay:"shippingDay",init:"init",loaded:"loaded",isWolt:"isWolt"},outputs:{selectedIntervalOptionChange:"selectedIntervalOptionChange"},features:[e.TTD],decls:2,vars:4,consts:[["placeholder","V\xe6lg udleveringstidspunkt","notFoundText","Ingen gyldige tidspunkter","labelForId","intervalId",3,"ngModel","searchable","clearable","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],[3,"value","disabled"]],template:function(P,W){1&P&&(e.TgZ(0,"ng-select",0),e.NdJ("ngModelChange",function(we){return W.selectedIntervalOption=we}),e.YNc(1,Fu,2,3,"ng-option",1),e.qZA()),2&P&&(e.Q6J("ngModel",W.selectedIntervalOption)("searchable",!0)("clearable",!1),e.xp6(1),e.Q6J("ngForOf",W.intervals))},dependencies:[vn.sg,Xo.JJ,Xo.On,Xs.w9,Xs.jq],encapsulation:2})}return E})();var Uu=c(1028),El=c(4187),pc=c(4502),aa=c(3595),Sl=c(9716),hc=c(6283),ta=c(2214),gc=c(3566),Od=c(9696),Al=c(3823),mc=c(3305);let fc=(()=>{class E{constructor(){this.imageEndpoint=`${yi.environment.cmsOrigin}`}transform(h,P=!1){if(h?.primaryImageUrl){const W=`${this.imageEndpoint}${h?.primaryImageUrl}?width=360&mode=max&autorotate=true`;return`${W}&quality=60 0.5x, ${W}&quality=80 0.75x, ${W}`}return"assets/placeholder.png"}static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275pipe=e.Yjl({name:"productSizes",type:E,pure:!0})}return E})();var Pd=c(2400);let Zu=(()=>{class E{static#t=this.\u0275fac=function(P){return new(P||E)};static#e=this.\u0275mod=e.oAB({type:E,bootstrap:[Rc]});static#n=this.\u0275inj=e.cJS({providers:[{provide:e.AFp,useValue:"nxt-ecom-frontend"},{provide:e.ip1,useFactory:Ru,multi:!0,deps:[e.Lbi]},{provide:Fi.Hx,useClass:oc.Uy},(0,o.ly)((0,o.FL)())],imports:[bl.m,l.JF,o.b2,Fi.Bz.forRoot(oc._j,{initialNavigation:"enabledBlocking"}),Gs,yi.environment.production?[]:Qs.forRoot()]})}return E})();e.B6R(cc.Gt,function(){return[vn.sg,vn.O5,_t.h,Ci.k,Fi.rH,ln.Ns,ln.r2]},function(){return[vn.Ov,vn.JJ,Wt.k,Hi.I]}),e.B6R(Vs.ci,function(){return[vn.sg,vn.O5,_t.h,Fi.rH,Vs.hr,Vs.yQ,ln.r2,Vs.O0]},function(){return[vn.Ov]}),e.B6R(cc.wP,function(){return[vn.sg,vn.O5,_t.h,Pn.Hw,Yn.h,Fi.rH,ln.r2,ln.pJ,ln.RU]},function(){return[vn.Ov,vn.JJ,Wt.k,dc.N,Qr.B,uc.k]}),e.B6R(cc.f6,function(){return[vn.sg,vn.O5,_t.h,Pn.Hw,Fi.rH,Fi.Od,ln.Ns,ln.r2]},function(){return[vn.Ov,vn.rS,vn.uU]}),e.B6R(cc.kb,function(){return[vn.sg,vn.O5,Xo._Y,Xo.JL,Xo.sg,_t.h,Pn.Hw,La.YS,Nu.sN,Ra.OY,Ra.vy,Yn.h,kl.t,xd.L,Bu,ln.N7,ln.r2,ln.pJ,ln.Yx,bd]},function(){return[vn.Ov,vn.gd,vn.uU,Wt.k,Uu.l]}),e.B6R(Ga.O,function(){return[vn.O5,Ts,Dl,Md,ne]},[]),e.B6R(kr.kb,function(){return[vn.sg,vn.O5,Xo._Y,Xo.JL,Xo.sg,_t.h,Pn.Hw,El.nI,Yn.h,kl.t,pc.p,aa.R,Sl.n,Fi.rH,kr.GU]},function(){return[vn.Ov,vn.JJ,vn.uU,vn.Nd,Wt.k]}),e.B6R(kr.S3,function(){return[vn.O5,kr.kb,kr.Md]},[]),e.B6R(kr.GU,function(){return[vn.sg,vn.O5,_t.h,Pn.Hw,Fi.rH,ln.r2,ln.RU]},function(){return[vn.JJ,Wt.k,dc.N,Qr.B,uc.k]}),e.B6R(Qo.cT,function(){return[vn.O5,Pn.Hw,aa.R,Qo.xg,Qo._4,Qo.zD,ln.LI]},[]),e.B6R(Qo.rs,function(){return[vn.sg,vn.O5,hc.Ry,_t.h,Yn.h,Mr.o,ln.Yc,ln.LI]},function(){return[vn.Ov,ws.A]}),e.B6R(Qo.FX,function(){return[vn.O5,Qo.rs,Qo.j$]},[]),e.B6R(Qo.j$,function(){return[vn.sg,vn.O5,hc.Ry,_t.h,Yn.h,ln.t5,Md,ln.gX,ln.LI]},function(){return[vn.Ov,ws.A]}),e.B6R(rc.D,function(){return[vn.O5,Yn.h,Fi.rH,fd,ln.YI]},function(){return[vn.Ov,Hi.I]}),e.B6R(Ea.o,function(){return[vn.sg,vn.O5,aa.R,ln.Zf]},function(){return[ws.A]}),e.B6R(ks.$,function(){return[vn.O5,ta.ty,ta.wO,ta.S4,ta.t3,ta.R3,ta.Al,ta.L7,ta.ML,ta.fg,ta.Zw,gc.YE,gc.nU,Yn.h,Sl.n,Fi.rH,Iu]},function(){return[vn.gd,vn.rS,ws.A,Hi.I]}),e.B6R(Qo.xg,function(){return[vn.sg,vn.O5,_t.h,Pn.Hw,Yn.h,aa.R,Qo.yr,ln.pJ,ln.RU,ln.KN]},function(){return[vn.Ov,vn.JJ,vn.uU,ws.A,Od.V,Al.u]}),e.B6R(Qo._4,function(){return[vn.sg,vn.O5,_t.h,Pn.Hw,Yn.h,aa.R,Fi.rH,Qo.Gw,Qo.jl,Qo.yr,ln.r2,ln.pJ,ln._,ln.RU,ln.KN]},function(){return[vn.Ov,vn.JJ,vn.uU,Wt.k,ws.A,Qr.B,Od.V,Al.u]}),e.B6R(Qo.zD,function(){return[vn.mk,vn.sg,vn.O5,Xs.w9,Xs.jq,Xs.mR,Xs.zB,_t.h,mc.ib,mc.yz,mc.yK,Yn.h,Fi.rH,Fi.Od,Md,ln.pJ,ln.gX,ln.RU]},function(){return[vn.Ov,dc.N,ws.A,Hi.I]}),e.B6R(Qo._N,function(){return[vn.sg,ln.Yc]},function(){return[vn.Ov]}),e.B6R(Qo.Gw,function(){return[vn.sg,vn.O5,Pn.Hw,ln.Yc]},[]),e.B6R(Vs.hr,function(){return[vn.sg,vn.O5,Pn.Hw,pc.p]},function(){return[Hi.I]}),e.B6R(Vs.yQ,function(){return[vn.O5,pc.p]},function(){return[ws.A,Hi.I]}),e.B6R(Qo.yr,function(){return[vn.sg,vn.O5,ln.Yc]},[]),e.B6R(Qo.d5,function(){return[vn.sg,vn.O5,Xo._Y,Xo.JJ,Xo.JL,Xo.oH,Xo.sg,Xs.w9,Xs.jq,_t.h,Ra.OY,Ra.vy,Yn.h,kl.t,aa.R]},function(){return[Wt.k,ws.A]}),e.B6R(ln._,function(){return[vn.O5,ln.pJ]},function(){return[vn.gd]}),e.B6R(ln.Yc,function(){return[vn.O5,vn.PC,_t.h,Pn.Hw,Yn.h,Fi.rH,ln.r2,ln.pJ,ln._,ln.RU]},function(){return[vn.Ov,vn.JJ,dc.N,fc,Hi.I]}),e.B6R(ln.gX,function(){return[vn.O5,vn.PC,_t.h,Pn.Hw,Yn.h,Fi.rH,ln.pJ,ln._,ln.RU]},function(){return[vn.Ov,vn.JJ,dc.N,fc,Hi.I]}),e.B6R(kr.Md,function(){return[vn.sg,vn.O5,Xo._Y,Xo.Fj,Xo.JJ,Xo.JL,Xo.oH,Xo.sg,_t.h,Pn.Hw,El.v_,El.$V,Pd.k0,Yn.h,Sl.n,Qo.yr,kr.f]},function(){return[vn.Ov,vn.JJ,vn.uU,Wt.k]}),e.B6R(kr.f,function(){return[vn.sg,_t.h,Fi.rH,ln.r2,ln.RU]},function(){return[vn.JJ,Wt.k,dc.N,uc.k]}),e.B6R(tg.s,function(){return[vn.sg,vn.O5,_t.h,Yn.h,ln.r2,ln.Yc,kr.f]},function(){return[vn.Ov,vn.JJ,Wt.k]}),e.B6R(Uc.K,function(){return[vn.sg,vn.O5,Xo._Y,Xo.JL,Xo.sg,_t.h,Pn.Hw,La.YS,Nu.sN,Ra.OY,Ra.vy,Yn.h,xd.L,ln.r2,ln.pJ,bd]},function(){return[vn.Ov,vn.gd,vn.uU,Wt.k]}),yi.environment.production&&((0,e.G48)(),(0,g.Ux)());const _c=[{provide:"BASE_URL",useFactory:function Hu(){return document.getElementsByTagName("base")[0].href},deps:[]},{provide:"persistStorage",useValue:(0,g.xi)({include:["basket","customer-details","shipping"],preStorageUpdate:(E,b)=>{if("basket"===E){const h=b,{products:P,lineId:W}=h;let Yt=!0;return Object.values(P).length>0&&(Yt=!1),{lineId:W,products:P,ui:{...Zi.uG.ui,id:(0,x.Z)(),openShippingDialog:Yt}}}if("shipping"===E){const h=b,{shipping:P,eventStore:W}=h;return{...Js.Zh,shipping:P,eventStore:W}}if("customer-details"===E){const h=JSON.parse(JSON.stringify(b));return h.customerDetails.payment.note="",{...h}}return b}})}];document.addEventListener("DOMContentLoaded",()=>{o.q6(_c).bootstrapModule(Zu).catch(E=>console.log(E))})},9818:Je=>{"use strict";Je.exports=function Rt(c,o){if(c===o)return!0;if(c&&o&&"object"==typeof c&&"object"==typeof o){if(c.constructor!==o.constructor)return!1;var e,g,x;if(Array.isArray(c)){if((e=c.length)!=o.length)return!1;for(g=e;0!=g--;)if(!Rt(c[g],o[g]))return!1;return!0}if(c.constructor===RegExp)return c.source===o.source&&c.flags===o.flags;if(c.valueOf!==Object.prototype.valueOf)return c.valueOf()===o.valueOf();if(c.toString!==Object.prototype.toString)return c.toString()===o.toString();if((e=(x=Object.keys(c)).length)!==Object.keys(o).length)return!1;for(g=e;0!=g--;)if(!Object.prototype.hasOwnProperty.call(o,x[g]))return!1;for(g=e;0!=g--;){var l=x[g];if(!Rt(c[l],o[l]))return!1}return!0}return c!=c&&o!=o}},605:function(Je,Rt,c){!function(o){"use strict";o.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(c(6676))},6676:function(Je,Rt,c){(Je=c.nmd(Je)).exports=function(){"use strict";var o,Ht;function e(){return o.apply(null,arguments)}function x(C){return C instanceof Array||"[object Array]"===Object.prototype.toString.call(C)}function l(C){return null!=C&&"[object Object]"===Object.prototype.toString.call(C)}function i(C,w){return Object.prototype.hasOwnProperty.call(C,w)}function R(C){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(C).length;var w;for(w in C)if(i(C,w))return!1;return!0}function f(C){return void 0===C}function t(C){return"number"==typeof C||"[object Number]"===Object.prototype.toString.call(C)}function y(C){return C instanceof Date||"[object Date]"===Object.prototype.toString.call(C)}function O(C,w){var Et,dt=[],ne=C.length;for(Et=0;Et<ne;++Et)dt.push(w(C[Et],Et));return dt}function G(C,w){for(var dt in w)i(w,dt)&&(C[dt]=w[dt]);return i(w,"toString")&&(C.toString=w.toString),i(w,"valueOf")&&(C.valueOf=w.valueOf),C}function U(C,w,dt,Et){return Cs(C,w,dt,Et,!0).utc()}function ut(C){return null==C._pf&&(C._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),C._pf}function A(C){if(null==C._isValid){var w=ut(C),dt=Ht.call(w.parsedDateParts,function(ne){return null!=ne}),Et=!isNaN(C._d.getTime())&&w.overflow<0&&!w.empty&&!w.invalidEra&&!w.invalidMonth&&!w.invalidWeekday&&!w.weekdayMismatch&&!w.nullInput&&!w.invalidFormat&&!w.userInvalidated&&(!w.meridiem||w.meridiem&&dt);if(C._strict&&(Et=Et&&0===w.charsLeftOver&&0===w.unusedTokens.length&&void 0===w.bigHour),null!=Object.isFrozen&&Object.isFrozen(C))return Et;C._isValid=Et}return C._isValid}function xt(C){var w=U(NaN);return null!=C?G(ut(w),C):ut(w).userInvalidated=!0,w}Ht=Array.prototype.some?Array.prototype.some:function(C){var Et,w=Object(this),dt=w.length>>>0;for(Et=0;Et<dt;Et++)if(Et in w&&C.call(this,w[Et],Et,w))return!0;return!1};var tt=e.momentProperties=[],ct=!1;function _(C,w){var dt,Et,ne,qe=tt.length;if(f(w._isAMomentObject)||(C._isAMomentObject=w._isAMomentObject),f(w._i)||(C._i=w._i),f(w._f)||(C._f=w._f),f(w._l)||(C._l=w._l),f(w._strict)||(C._strict=w._strict),f(w._tzm)||(C._tzm=w._tzm),f(w._isUTC)||(C._isUTC=w._isUTC),f(w._offset)||(C._offset=w._offset),f(w._pf)||(C._pf=ut(w)),f(w._locale)||(C._locale=w._locale),qe>0)for(dt=0;dt<qe;dt++)f(ne=w[Et=tt[dt]])||(C[Et]=ne);return C}function j(C){_(this,C),this._d=new Date(null!=C._d?C._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===ct&&(ct=!0,e.updateOffset(this),ct=!1)}function q(C){return C instanceof j||null!=C&&null!=C._isAMomentObject}function ht(C){!1===e.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+C)}function vt(C,w){var dt=!0;return G(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,C),dt){var ne,qe,ln,Et=[],fi=arguments.length;for(qe=0;qe<fi;qe++){if(ne="","object"==typeof arguments[qe]){for(ln in ne+="\n["+qe+"] ",arguments[0])i(arguments[0],ln)&&(ne+=ln+": "+arguments[0][ln]+", ");ne=ne.slice(0,-2)}else ne=arguments[qe];Et.push(ne)}ht(C+"\nArguments: "+Array.prototype.slice.call(Et).join("")+"\n"+(new Error).stack),dt=!1}return w.apply(this,arguments)},w)}var F,gt={};function zt(C,w){null!=e.deprecationHandler&&e.deprecationHandler(C,w),gt[C]||(ht(w),gt[C]=!0)}function Ct(C){return typeof Function<"u"&&C instanceof Function||"[object Function]"===Object.prototype.toString.call(C)}function J(C,w){var Et,dt=G({},C);for(Et in w)i(w,Et)&&(l(C[Et])&&l(w[Et])?(dt[Et]={},G(dt[Et],C[Et]),G(dt[Et],w[Et])):null!=w[Et]?dt[Et]=w[Et]:delete dt[Et]);for(Et in C)i(C,Et)&&!i(w,Et)&&l(C[Et])&&(dt[Et]=G({},dt[Et]));return dt}function z(C){null!=C&&this.set(C)}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,F=Object.keys?Object.keys:function(C){var w,dt=[];for(w in C)i(C,w)&&dt.push(w);return dt};function Pt(C,w,dt){var Et=""+Math.abs(C);return(C>=0?dt?"+":"":"-")+Math.pow(10,Math.max(0,w-Et.length)).toString().substr(1)+Et}var $t=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Lt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Jt={},Tt={};function $(C,w,dt,Et){var ne=Et;"string"==typeof Et&&(ne=function(){return this[Et]()}),C&&(Tt[C]=ne),w&&(Tt[w[0]]=function(){return Pt(ne.apply(this,arguments),w[1],w[2])}),dt&&(Tt[dt]=function(){return this.localeData().ordinal(ne.apply(this,arguments),C)})}function pt(C){return C.match(/\[[\s\S]/)?C.replace(/^\[|\]$/g,""):C.replace(/\\/g,"")}function St(C,w){return C.isValid()?(w=mt(w,C.localeData()),Jt[w]=Jt[w]||function Dt(C){var dt,Et,w=C.match($t);for(dt=0,Et=w.length;dt<Et;dt++)w[dt]=Tt[w[dt]]?Tt[w[dt]]:pt(w[dt]);return function(ne){var ln,qe="";for(ln=0;ln<Et;ln++)qe+=Ct(w[ln])?w[ln].call(ne,C):w[ln];return qe}}(w),Jt[w](C)):C.localeData().invalidDate()}function mt(C,w){var dt=5;function Et(ne){return w.longDateFormat(ne)||ne}for(Lt.lastIndex=0;dt>=0&&Lt.test(C);)C=C.replace(Lt,Et),Lt.lastIndex=0,dt-=1;return C}var jt={};function ft(C,w){var dt=C.toLowerCase();jt[dt]=jt[dt+"s"]=jt[w]=C}function Gt(C){return"string"==typeof C?jt[C]||jt[C.toLowerCase()]:void 0}function Ce(C){var dt,Et,w={};for(Et in C)i(C,Et)&&(dt=Gt(Et))&&(w[dt]=C[Et]);return w}var ve={};function me(C,w){ve[C]=w}function tn(C){return C%4==0&&C%100!=0||C%400==0}function gn(C){return C<0?Math.ceil(C)||0:Math.floor(C)}function Xe(C){var w=+C,dt=0;return 0!==w&&isFinite(w)&&(dt=gn(w)),dt}function rn(C,w){return function(dt){return null!=dt?(ue(this,C,dt),e.updateOffset(this,w),this):re(this,C)}}function re(C,w){return C.isValid()?C._d["get"+(C._isUTC?"UTC":"")+w]():NaN}function ue(C,w,dt){C.isValid()&&!isNaN(dt)&&("FullYear"===w&&tn(C.year())&&1===C.month()&&29===C.date()?(dt=Xe(dt),C._d["set"+(C._isUTC?"UTC":"")+w](dt,C.month(),ci(dt,C.month()))):C._d["set"+(C._isUTC?"UTC":"")+w](dt))}var it,qt=/\d/,Te=/\d\d/,Me=/\d{3}/,_n=/\d{4}/,ce=/[+-]?\d{6}/,ye=/\d\d?/,Xt=/\d\d\d\d?/,on=/\d\d\d\d\d\d?/,oe=/\d{1,3}/,$e=/\d{1,4}/,te=/[+-]?\d{1,6}/,Se=/\d+/,Ke=/[+-]?\d+/,Oe=/Z|[+-]\d\d:?\d\d/gi,Qe=/Z|[+-]\d\d(?::?\d\d)?/gi,nt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Ot(C,w,dt){it[C]=Ct(w)?w:function(Et,ne){return Et&&dt?dt:w}}function Fe(C,w){return i(it,C)?it[C](w._strict,w._locale):new RegExp(function Cn(C){return de(C.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(w,dt,Et,ne,qe){return dt||Et||ne||qe}))}(C))}function de(C){return C.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}it={};var He={};function X(C,w){var dt,ne,Et=w;for("string"==typeof C&&(C=[C]),t(w)&&(Et=function(qe,ln){ln[w]=Xe(qe)}),ne=C.length,dt=0;dt<ne;dt++)He[C[dt]]=Et}function _e(C,w){X(C,function(dt,Et,ne,qe){ne._w=ne._w||{},w(dt,ne._w,ne,qe)})}function ze(C,w,dt){null!=w&&i(He,C)&&He[C](w,dt._a,dt,C)}var Mn,dn=0,Tn=1,je=2,ke=3,Ne=4,le=5,cn=6,se=7,Ie=8;function ci(C,w){if(isNaN(C)||isNaN(w))return NaN;var dt=function We(C,w){return(C%w+w)%w}(w,12);return C+=(w-dt)/12,1===dt?tn(C)?29:28:31-dt%7%2}Mn=Array.prototype.indexOf?Array.prototype.indexOf:function(C){var w;for(w=0;w<this.length;++w)if(this[w]===C)return w;return-1},$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(C){return this.localeData().monthsShort(this,C)}),$("MMMM",0,0,function(C){return this.localeData().months(this,C)}),ft("month","M"),me("month",8),Ot("M",ye),Ot("MM",ye,Te),Ot("MMM",function(C,w){return w.monthsShortRegex(C)}),Ot("MMMM",function(C,w){return w.monthsRegex(C)}),X(["M","MM"],function(C,w){w[Tn]=Xe(C)-1}),X(["MMM","MMMM"],function(C,w,dt,Et){var ne=dt._locale.monthsParse(C,Et,dt._strict);null!=ne?w[Tn]=ne:ut(dt).invalidMonth=C});var Ji="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ei="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Yi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,No=nt,Mo=nt;function io(C,w,dt){var Et,ne,qe,ln=C.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Et=0;Et<12;++Et)qe=U([2e3,Et]),this._shortMonthsParse[Et]=this.monthsShort(qe,"").toLocaleLowerCase(),this._longMonthsParse[Et]=this.months(qe,"").toLocaleLowerCase();return dt?"MMM"===w?-1!==(ne=Mn.call(this._shortMonthsParse,ln))?ne:null:-1!==(ne=Mn.call(this._longMonthsParse,ln))?ne:null:"MMM"===w?-1!==(ne=Mn.call(this._shortMonthsParse,ln))||-1!==(ne=Mn.call(this._longMonthsParse,ln))?ne:null:-1!==(ne=Mn.call(this._longMonthsParse,ln))||-1!==(ne=Mn.call(this._shortMonthsParse,ln))?ne:null}function Sn(C,w){var dt;if(!C.isValid())return C;if("string"==typeof w)if(/^\d+$/.test(w))w=Xe(w);else if(!t(w=C.localeData().monthsParse(w)))return C;return dt=Math.min(C.date(),ci(C.year(),w)),C._d["set"+(C._isUTC?"UTC":"")+"Month"](w,dt),C}function N(C){return null!=C?(Sn(this,C),e.updateOffset(this,!0),this):re(this,"Month")}function sn(){function C(ln,fi){return fi.length-ln.length}var ne,qe,w=[],dt=[],Et=[];for(ne=0;ne<12;ne++)qe=U([2e3,ne]),w.push(this.monthsShort(qe,"")),dt.push(this.months(qe,"")),Et.push(this.months(qe,"")),Et.push(this.monthsShort(qe,""));for(w.sort(C),dt.sort(C),Et.sort(C),ne=0;ne<12;ne++)w[ne]=de(w[ne]),dt[ne]=de(dt[ne]);for(ne=0;ne<24;ne++)Et[ne]=de(Et[ne]);this._monthsRegex=new RegExp("^("+Et.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+dt.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+w.join("|")+")","i")}function Gn(C){return tn(C)?366:365}$("Y",0,0,function(){var C=this.year();return C<=9999?Pt(C,4):"+"+C}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,!0],0,"year"),ft("year","y"),me("year",1),Ot("Y",Ke),Ot("YY",ye,Te),Ot("YYYY",$e,_n),Ot("YYYYY",te,ce),Ot("YYYYYY",te,ce),X(["YYYYY","YYYYYY"],dn),X("YYYY",function(C,w){w[dn]=2===C.length?e.parseTwoDigitYear(C):Xe(C)}),X("YY",function(C,w){w[dn]=e.parseTwoDigitYear(C)}),X("Y",function(C,w){w[dn]=parseInt(C,10)}),e.parseTwoDigitYear=function(C){return Xe(C)+(Xe(C)>68?1900:2e3)};var Do=rn("FullYear",!0);function ir(C,w,dt,Et,ne,qe,ln){var fi;return C<100&&C>=0?(fi=new Date(C+400,w,dt,Et,ne,qe,ln),isFinite(fi.getFullYear())&&fi.setFullYear(C)):fi=new Date(C,w,dt,Et,ne,qe,ln),fi}function Ut(C){var w,dt;return C<100&&C>=0?((dt=Array.prototype.slice.call(arguments))[0]=C+400,w=new Date(Date.UTC.apply(null,dt)),isFinite(w.getUTCFullYear())&&w.setUTCFullYear(C)):w=new Date(Date.UTC.apply(null,arguments)),w}function Rn(C,w,dt){var Et=7+w-dt;return-(7+Ut(C,0,Et).getUTCDay()-w)%7+Et-1}function Bt(C,w,dt,Et,ne){var Vi,Ro,fi=1+7*(w-1)+(7+dt-Et)%7+Rn(C,Et,ne);return fi<=0?Ro=Gn(Vi=C-1)+fi:fi>Gn(C)?(Vi=C+1,Ro=fi-Gn(C)):(Vi=C,Ro=fi),{year:Vi,dayOfYear:Ro}}function he(C,w,dt){var qe,ln,Et=Rn(C.year(),w,dt),ne=Math.floor((C.dayOfYear()-Et-1)/7)+1;return ne<1?qe=ne+Be(ln=C.year()-1,w,dt):ne>Be(C.year(),w,dt)?(qe=ne-Be(C.year(),w,dt),ln=C.year()+1):(ln=C.year(),qe=ne),{week:qe,year:ln}}function Be(C,w,dt){var Et=Rn(C,w,dt),ne=Rn(C+1,w,dt);return(Gn(C)-Et+ne)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),ft("week","w"),ft("isoWeek","W"),me("week",5),me("isoWeek",5),Ot("w",ye),Ot("ww",ye,Te),Ot("W",ye),Ot("WW",ye,Te),_e(["w","ww","W","WW"],function(C,w,dt,Et){w[Et.substr(0,1)]=Xe(C)});function co(C,w){return C.slice(w,7).concat(C.slice(0,w))}$("d",0,"do","day"),$("dd",0,0,function(C){return this.localeData().weekdaysMin(this,C)}),$("ddd",0,0,function(C){return this.localeData().weekdaysShort(this,C)}),$("dddd",0,0,function(C){return this.localeData().weekdays(this,C)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),ft("day","d"),ft("weekday","e"),ft("isoWeekday","E"),me("day",11),me("weekday",11),me("isoWeekday",11),Ot("d",ye),Ot("e",ye),Ot("E",ye),Ot("dd",function(C,w){return w.weekdaysMinRegex(C)}),Ot("ddd",function(C,w){return w.weekdaysShortRegex(C)}),Ot("dddd",function(C,w){return w.weekdaysRegex(C)}),_e(["dd","ddd","dddd"],function(C,w,dt,Et){var ne=dt._locale.weekdaysParse(C,Et,dt._strict);null!=ne?w.d=ne:ut(dt).invalidWeekday=C}),_e(["d","e","E"],function(C,w,dt,Et){w[Et]=Xe(C)});var Ho="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ko="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ii="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),lo=nt,xo=nt,$o=nt;function xe(C,w,dt){var Et,ne,qe,ln=C.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Et=0;Et<7;++Et)qe=U([2e3,1]).day(Et),this._minWeekdaysParse[Et]=this.weekdaysMin(qe,"").toLocaleLowerCase(),this._shortWeekdaysParse[Et]=this.weekdaysShort(qe,"").toLocaleLowerCase(),this._weekdaysParse[Et]=this.weekdays(qe,"").toLocaleLowerCase();return dt?"dddd"===w?-1!==(ne=Mn.call(this._weekdaysParse,ln))?ne:null:"ddd"===w?-1!==(ne=Mn.call(this._shortWeekdaysParse,ln))?ne:null:-1!==(ne=Mn.call(this._minWeekdaysParse,ln))?ne:null:"dddd"===w?-1!==(ne=Mn.call(this._weekdaysParse,ln))||-1!==(ne=Mn.call(this._shortWeekdaysParse,ln))||-1!==(ne=Mn.call(this._minWeekdaysParse,ln))?ne:null:"ddd"===w?-1!==(ne=Mn.call(this._shortWeekdaysParse,ln))||-1!==(ne=Mn.call(this._weekdaysParse,ln))||-1!==(ne=Mn.call(this._minWeekdaysParse,ln))?ne:null:-1!==(ne=Mn.call(this._minWeekdaysParse,ln))||-1!==(ne=Mn.call(this._weekdaysParse,ln))||-1!==(ne=Mn.call(this._shortWeekdaysParse,ln))?ne:null}function Qn(){function C(yr,Ds){return Ds.length-yr.length}var qe,ln,fi,Vi,Ro,w=[],dt=[],Et=[],ne=[];for(qe=0;qe<7;qe++)ln=U([2e3,1]).day(qe),fi=de(this.weekdaysMin(ln,"")),Vi=de(this.weekdaysShort(ln,"")),Ro=de(this.weekdays(ln,"")),w.push(fi),dt.push(Vi),Et.push(Ro),ne.push(fi),ne.push(Vi),ne.push(Ro);w.sort(C),dt.sort(C),Et.sort(C),ne.sort(C),this._weekdaysRegex=new RegExp("^("+ne.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Et.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+dt.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+w.join("|")+")","i")}function Vn(){return this.hours()%12||12}function ni(C,w){$(C,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),w)})}function pi(C,w){return w._meridiemParse}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,Vn),$("k",["kk",2],0,function Oi(){return this.hours()||24}),$("hmm",0,0,function(){return""+Vn.apply(this)+Pt(this.minutes(),2)}),$("hmmss",0,0,function(){return""+Vn.apply(this)+Pt(this.minutes(),2)+Pt(this.seconds(),2)}),$("Hmm",0,0,function(){return""+this.hours()+Pt(this.minutes(),2)}),$("Hmmss",0,0,function(){return""+this.hours()+Pt(this.minutes(),2)+Pt(this.seconds(),2)}),ni("a",!0),ni("A",!1),ft("hour","h"),me("hour",13),Ot("a",pi),Ot("A",pi),Ot("H",ye),Ot("h",ye),Ot("k",ye),Ot("HH",ye,Te),Ot("hh",ye,Te),Ot("kk",ye,Te),Ot("hmm",Xt),Ot("hmmss",on),Ot("Hmm",Xt),Ot("Hmmss",on),X(["H","HH"],ke),X(["k","kk"],function(C,w,dt){var Et=Xe(C);w[ke]=24===Et?0:Et}),X(["a","A"],function(C,w,dt){dt._isPm=dt._locale.isPM(C),dt._meridiem=C}),X(["h","hh"],function(C,w,dt){w[ke]=Xe(C),ut(dt).bigHour=!0}),X("hmm",function(C,w,dt){var Et=C.length-2;w[ke]=Xe(C.substr(0,Et)),w[Ne]=Xe(C.substr(Et)),ut(dt).bigHour=!0}),X("hmmss",function(C,w,dt){var Et=C.length-4,ne=C.length-2;w[ke]=Xe(C.substr(0,Et)),w[Ne]=Xe(C.substr(Et,2)),w[le]=Xe(C.substr(ne)),ut(dt).bigHour=!0}),X("Hmm",function(C,w,dt){var Et=C.length-2;w[ke]=Xe(C.substr(0,Et)),w[Ne]=Xe(C.substr(Et))}),X("Hmmss",function(C,w,dt){var Et=C.length-4,ne=C.length-2;w[ke]=Xe(C.substr(0,Et)),w[Ne]=Xe(C.substr(Et,2)),w[le]=Xe(C.substr(ne))});var Li=rn("Hours",!0);var Bo,mo={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ji,monthsShort:Ei,week:{dow:0,doy:6},weekdays:Ho,weekdaysMin:ii,weekdaysShort:ko,meridiemParse:/[ap]\.?m?\.?/i},qn={},jo={};function Ao(C,w){var dt,Et=Math.min(C.length,w.length);for(dt=0;dt<Et;dt+=1)if(C[dt]!==w[dt])return dt;return Et}function nr(C){return C&&C.toLowerCase().replace("_","-")}function Pi(C){var w=null;if(void 0===qn[C]&&Je&&Je.exports&&function Ri(C){return null!=C.match("^[^/\\\\]*$")}(C))try{w=Bo._abbr,Object(function(){var ne=new Error("Cannot find module 'undefined'");throw ne.code="MODULE_NOT_FOUND",ne}()),oo(w)}catch{qn[C]=null}return qn[C]}function oo(C,w){var dt;return C&&((dt=f(w)?Xn(C):Go(C,w))?Bo=dt:typeof console<"u"&&console.warn&&console.warn("Locale "+C+" not found. Did you forget to load it?")),Bo._abbr}function Go(C,w){if(null!==w){var dt,Et=mo;if(w.abbr=C,null!=qn[C])zt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Et=qn[C]._config;else if(null!=w.parentLocale)if(null!=qn[w.parentLocale])Et=qn[w.parentLocale]._config;else{if(null==(dt=Pi(w.parentLocale)))return jo[w.parentLocale]||(jo[w.parentLocale]=[]),jo[w.parentLocale].push({name:C,config:w}),null;Et=dt._config}return qn[C]=new z(J(Et,w)),jo[C]&&jo[C].forEach(function(ne){Go(ne.name,ne.config)}),oo(C),qn[C]}return delete qn[C],null}function Xn(C){var w;if(C&&C._locale&&C._locale._abbr&&(C=C._locale._abbr),!C)return Bo;if(!x(C)){if(w=Pi(C))return w;C=[C]}return function Jr(C){for(var dt,Et,ne,qe,w=0;w<C.length;){for(dt=(qe=nr(C[w]).split("-")).length,Et=(Et=nr(C[w+1]))?Et.split("-"):null;dt>0;){if(ne=Pi(qe.slice(0,dt).join("-")))return ne;if(Et&&Et.length>=dt&&Ao(qe,Et)>=dt-1)break;dt--}w++}return Bo}(C)}function uo(C){var w,dt=C._a;return dt&&-2===ut(C).overflow&&(w=dt[Tn]<0||dt[Tn]>11?Tn:dt[je]<1||dt[je]>ci(dt[dn],dt[Tn])?je:dt[ke]<0||dt[ke]>24||24===dt[ke]&&(0!==dt[Ne]||0!==dt[le]||0!==dt[cn])?ke:dt[Ne]<0||dt[Ne]>59?Ne:dt[le]<0||dt[le]>59?le:dt[cn]<0||dt[cn]>999?cn:-1,ut(C)._overflowDayOfYear&&(w<dn||w>je)&&(w=je),ut(C)._overflowWeeks&&-1===w&&(w=se),ut(C)._overflowWeekday&&-1===w&&(w=Ie),ut(C).overflow=w),C}var Jo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,or=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,gr=/Z|[+-]\d\d(?::?\d\d)?/,rr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],js=/^\/?Date\((-?\d+)/i,Io=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_o={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function pr(C){var w,dt,qe,ln,fi,Vi,Et=C._i,ne=Jo.exec(Et)||or.exec(Et),Ro=rr.length,yr=fo.length;if(ne){for(ut(C).iso=!0,w=0,dt=Ro;w<dt;w++)if(rr[w][1].exec(ne[1])){ln=rr[w][0],qe=!1!==rr[w][2];break}if(null==ln)return void(C._isValid=!1);if(ne[3]){for(w=0,dt=yr;w<dt;w++)if(fo[w][1].exec(ne[3])){fi=(ne[2]||" ")+fo[w][0];break}if(null==fi)return void(C._isValid=!1)}if(!qe&&null!=fi)return void(C._isValid=!1);if(ne[4]){if(!gr.exec(ne[4]))return void(C._isValid=!1);Vi="Z"}C._f=ln+(fi||"")+(Vi||""),ae(C)}else C._isValid=!1}function Wr(C){var w=parseInt(C,10);return w<=49?2e3+w:w<=999?1900+w:w}function fs(C){var dt,w=Io.exec(function vn(C){return C.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(C._i));if(w){if(dt=function mr(C,w,dt,Et,ne,qe){var ln=[Wr(C),Ei.indexOf(w),parseInt(dt,10),parseInt(Et,10),parseInt(ne,10)];return qe&&ln.push(parseInt(qe,10)),ln}(w[4],w[3],w[2],w[5],w[6],w[7]),!function fr(C,w,dt){return!C||ko.indexOf(C)===new Date(w[0],w[1],w[2]).getDay()||(ut(dt).weekdayMismatch=!0,dt._isValid=!1,!1)}(w[1],dt,C))return;C._a=dt,C._tzm=function ms(C,w,dt){if(C)return _o[C];if(w)return 0;var Et=parseInt(dt,10),ne=Et%100;return(Et-ne)/100*60+ne}(w[8],w[9],w[10]),C._d=Ut.apply(null,C._a),C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),ut(C).rfc2822=!0}else C._isValid=!1}function sr(C,w,dt){return C??w??dt}function Nt(C){var w,dt,ne,qe,ln,Et=[];if(!C._d){for(ne=function wt(C){var w=new Date(e.now());return C._useUTC?[w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()]:[w.getFullYear(),w.getMonth(),w.getDate()]}(C),C._w&&null==C._a[je]&&null==C._a[Tn]&&function ot(C){var w,dt,Et,ne,qe,ln,fi,Vi,Ro;null!=(w=C._w).GG||null!=w.W||null!=w.E?(qe=1,ln=4,dt=sr(w.GG,C._a[dn],he(Co(),1,4).year),Et=sr(w.W,1),((ne=sr(w.E,1))<1||ne>7)&&(Vi=!0)):(qe=C._locale._week.dow,ln=C._locale._week.doy,Ro=he(Co(),qe,ln),dt=sr(w.gg,C._a[dn],Ro.year),Et=sr(w.w,Ro.week),null!=w.d?((ne=w.d)<0||ne>6)&&(Vi=!0):null!=w.e?(ne=w.e+qe,(w.e<0||w.e>6)&&(Vi=!0)):ne=qe),Et<1||Et>Be(dt,qe,ln)?ut(C)._overflowWeeks=!0:null!=Vi?ut(C)._overflowWeekday=!0:(fi=Bt(dt,Et,ne,qe,ln),C._a[dn]=fi.year,C._dayOfYear=fi.dayOfYear)}(C),null!=C._dayOfYear&&(ln=sr(C._a[dn],ne[dn]),(C._dayOfYear>Gn(ln)||0===C._dayOfYear)&&(ut(C)._overflowDayOfYear=!0),dt=Ut(ln,0,C._dayOfYear),C._a[Tn]=dt.getUTCMonth(),C._a[je]=dt.getUTCDate()),w=0;w<3&&null==C._a[w];++w)C._a[w]=Et[w]=ne[w];for(;w<7;w++)C._a[w]=Et[w]=null==C._a[w]?2===w?1:0:C._a[w];24===C._a[ke]&&0===C._a[Ne]&&0===C._a[le]&&0===C._a[cn]&&(C._nextDay=!0,C._a[ke]=0),C._d=(C._useUTC?Ut:ir).apply(null,Et),qe=C._useUTC?C._d.getUTCDay():C._d.getDay(),null!=C._tzm&&C._d.setUTCMinutes(C._d.getUTCMinutes()-C._tzm),C._nextDay&&(C._a[ke]=24),C._w&&typeof C._w.d<"u"&&C._w.d!==qe&&(ut(C).weekdayMismatch=!0)}}function ae(C){if(C._f!==e.ISO_8601)if(C._f!==e.RFC_2822){C._a=[],ut(C).empty=!0;var dt,Et,ne,qe,ln,Ro,yr,w=""+C._i,fi=w.length,Vi=0;for(yr=(ne=mt(C._f,C._locale).match($t)||[]).length,dt=0;dt<yr;dt++)(Et=(w.match(Fe(qe=ne[dt],C))||[])[0])&&((ln=w.substr(0,w.indexOf(Et))).length>0&&ut(C).unusedInput.push(ln),w=w.slice(w.indexOf(Et)+Et.length),Vi+=Et.length),Tt[qe]?(Et?ut(C).empty=!1:ut(C).unusedTokens.push(qe),ze(qe,Et,C)):C._strict&&!Et&&ut(C).unusedTokens.push(qe);ut(C).charsLeftOver=fi-Vi,w.length>0&&ut(C).unusedInput.push(w),C._a[ke]<=12&&!0===ut(C).bigHour&&C._a[ke]>0&&(ut(C).bigHour=void 0),ut(C).parsedDateParts=C._a.slice(0),ut(C).meridiem=C._meridiem,C._a[ke]=function Ge(C,w,dt){var Et;return null==dt?w:null!=C.meridiemHour?C.meridiemHour(w,dt):(null!=C.isPM&&((Et=C.isPM(dt))&&w<12&&(w+=12),!Et&&12===w&&(w=0)),w)}(C._locale,C._a[ke],C._meridiem),null!==(Ro=ut(C).era)&&(C._a[dn]=C._locale.erasConvertYear(Ro,C._a[dn])),Nt(C),uo(C)}else fs(C);else pr(C)}function Br(C){var w=C._i,dt=C._f;return C._locale=C._locale||Xn(C._l),null===w||void 0===dt&&""===w?xt({nullInput:!0}):("string"==typeof w&&(C._i=w=C._locale.preparse(w)),q(w)?new j(uo(w)):(y(w)?C._d=w:x(dt)?function ri(C){var w,dt,Et,ne,qe,ln,fi=!1,Vi=C._f.length;if(0===Vi)return ut(C).invalidFormat=!0,void(C._d=new Date(NaN));for(ne=0;ne<Vi;ne++)qe=0,ln=!1,w=_({},C),null!=C._useUTC&&(w._useUTC=C._useUTC),w._f=C._f[ne],ae(w),A(w)&&(ln=!0),qe+=ut(w).charsLeftOver,qe+=10*ut(w).unusedTokens.length,ut(w).score=qe,fi?qe<Et&&(Et=qe,dt=w):(null==Et||qe<Et||ln)&&(Et=qe,dt=w,ln&&(fi=!0));G(C,dt||w)}(C):dt?ae(C):function $r(C){var w=C._i;f(w)?C._d=new Date(e.now()):y(w)?C._d=new Date(w.valueOf()):"string"==typeof w?function _s(C){var w=js.exec(C._i);null===w?(pr(C),!1===C._isValid&&(delete C._isValid,fs(C),!1===C._isValid&&(delete C._isValid,C._strict?C._isValid=!1:e.createFromInputFallback(C)))):C._d=new Date(+w[1])}(C):x(w)?(C._a=O(w.slice(0),function(dt){return parseInt(dt,10)}),Nt(C)):l(w)?function Ti(C){if(!C._d){var w=Ce(C._i);C._a=O([w.year,w.month,void 0===w.day?w.date:w.day,w.hour,w.minute,w.second,w.millisecond],function(Et){return Et&&parseInt(Et,10)}),Nt(C)}}(C):t(w)?C._d=new Date(w):e.createFromInputFallback(C)}(C),A(C)||(C._d=null),C))}function Cs(C,w,dt,Et,ne){var qe={};return(!0===w||!1===w)&&(Et=w,w=void 0),(!0===dt||!1===dt)&&(Et=dt,dt=void 0),(l(C)&&R(C)||x(C)&&0===C.length)&&(C=void 0),qe._isAMomentObject=!0,qe._useUTC=qe._isUTC=ne,qe._l=dt,qe._i=C,qe._f=w,qe._strict=Et,function _r(C){var w=new j(uo(Br(C)));return w._nextDay&&(w.add(1,"d"),w._nextDay=void 0),w}(qe)}function Co(C,w,dt,Et){return Cs(C,w,dt,Et,!1)}e.createFromInputFallback=vt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(C){C._d=new Date(C._i+(C._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Gs=vt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=Co.apply(null,arguments);return this.isValid()&&C.isValid()?C<this?this:C:xt()}),zs=vt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var C=Co.apply(null,arguments);return this.isValid()&&C.isValid()?C>this?this:C:xt()});function Rs(C,w){var dt,Et;if(1===w.length&&x(w[0])&&(w=w[0]),!w.length)return Co();for(dt=w[0],Et=1;Et<w.length;++Et)(!w[Et].isValid()||w[Et][C](dt))&&(dt=w[Et]);return dt}var Ko=["year","quarter","month","week","day","hour","minute","second","millisecond"];function yi(C){var w=Ce(C),dt=w.year||0,Et=w.quarter||0,ne=w.month||0,qe=w.week||w.isoWeek||0,ln=w.day||0,fi=w.hour||0,Vi=w.minute||0,Ro=w.second||0,yr=w.millisecond||0;this._isValid=function ar(C){var w,Et,dt=!1,ne=Ko.length;for(w in C)if(i(C,w)&&(-1===Mn.call(Ko,w)||null!=C[w]&&isNaN(C[w])))return!1;for(Et=0;Et<ne;++Et)if(C[Ko[Et]]){if(dt)return!1;parseFloat(C[Ko[Et]])!==Xe(C[Ko[Et]])&&(dt=!0)}return!0}(w),this._milliseconds=+yr+1e3*Ro+6e4*Vi+1e3*fi*60*60,this._days=+ln+7*qe,this._months=+ne+3*Et+12*dt,this._data={},this._locale=Xn(),this._bubble()}function tr(C){return C instanceof yi}function Oo(C){return C<0?-1*Math.round(-1*C):Math.round(C)}function as(C,w){$(C,0,0,function(){var dt=this.utcOffset(),Et="+";return dt<0&&(dt=-dt,Et="-"),Et+Pt(~~(dt/60),2)+w+Pt(~~dt%60,2)})}as("Z",":"),as("ZZ",""),Ot("Z",Qe),Ot("ZZ",Qe),X(["Z","ZZ"],function(C,w,dt){dt._useUTC=!0,dt._tzm=Sr(Qe,C)});var qr=/([\+\-]|\d\d)/gi;function Sr(C,w){var ne,qe,dt=(w||"").match(C);return null===dt?null:0===(qe=60*(ne=((dt[dt.length-1]||[])+"").match(qr)||["-",0,0])[1]+Xe(ne[2]))?0:"+"===ne[0]?qe:-qe}function Or(C,w){var dt,Et;return w._isUTC?(dt=w.clone(),Et=(q(C)||y(C)?C.valueOf():Co(C).valueOf())-dt.valueOf(),dt._d.setTime(dt._d.valueOf()+Et),e.updateOffset(dt,!1),dt):Co(C).local()}function Ur(C){return-Math.round(C._d.getTimezoneOffset())}function Js(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var Ws=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function cr(C,w){var ne,qe,ln,dt=C,Et=null;return tr(C)?dt={ms:C._milliseconds,d:C._days,M:C._months}:t(C)||!isNaN(+C)?(dt={},w?dt[w]=+C:dt.milliseconds=+C):(Et=Ws.exec(C))?(ne="-"===Et[1]?-1:1,dt={y:0,d:Xe(Et[je])*ne,h:Xe(Et[ke])*ne,m:Xe(Et[Ne])*ne,s:Xe(Et[le])*ne,ms:Xe(Oo(1e3*Et[cn]))*ne}):(Et=Yr.exec(C))?dt={y:Ar(Et[2],ne="-"===Et[1]?-1:1),M:Ar(Et[3],ne),w:Ar(Et[4],ne),d:Ar(Et[5],ne),h:Ar(Et[6],ne),m:Ar(Et[7],ne),s:Ar(Et[8],ne)}:null==dt?dt={}:"object"==typeof dt&&("from"in dt||"to"in dt)&&(ln=function Ms(C,w){var dt;return C.isValid()&&w.isValid()?(w=Or(w,C),C.isBefore(w)?dt=bs(C,w):((dt=bs(w,C)).milliseconds=-dt.milliseconds,dt.months=-dt.months),dt):{milliseconds:0,months:0}}(Co(dt.from),Co(dt.to)),(dt={}).ms=ln.milliseconds,dt.M=ln.months),qe=new yi(dt),tr(C)&&i(C,"_locale")&&(qe._locale=C._locale),tr(C)&&i(C,"_isValid")&&(qe._isValid=C._isValid),qe}function Ar(C,w){var dt=C&&parseFloat(C.replace(",","."));return(isNaN(dt)?0:dt)*w}function bs(C,w){var dt={};return dt.months=w.month()-C.month()+12*(w.year()-C.year()),C.clone().add(dt.months,"M").isAfter(w)&&--dt.months,dt.milliseconds=+w-+C.clone().add(dt.months,"M"),dt}function Us(C,w){return function(dt,Et){var qe;return null!==Et&&!isNaN(+Et)&&(zt(w,"moment()."+w+"(period, number) is deprecated. Please use moment()."+w+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),qe=dt,dt=Et,Et=qe),ls(this,cr(dt,Et),C),this}}function ls(C,w,dt,Et){var ne=w._milliseconds,qe=Oo(w._days),ln=Oo(w._months);C.isValid()&&(Et=Et??!0,ln&&Sn(C,re(C,"Month")+ln*dt),qe&&ue(C,"Date",re(C,"Date")+qe*dt),ne&&C._d.setTime(C._d.valueOf()+ne*dt),Et&&e.updateOffset(C,qe||ln))}cr.fn=yi.prototype,cr.invalid=function Qs(){return cr(NaN)};var Zs=Us(1,"add"),jr=Us(-1,"subtract");function Ir(C){return"string"==typeof C||C instanceof String}function L(C){return q(C)||y(C)||Ir(C)||t(C)||function at(C){var w=x(C),dt=!1;return w&&(dt=0===C.filter(function(Et){return!t(Et)&&Ir(C)}).length),w&&dt}(C)||function Vt(C){var ne,w=l(C)&&!R(C),dt=!1,Et=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ln=Et.length;for(ne=0;ne<ln;ne+=1)dt=dt||i(C,Et[ne]);return w&&dt}(C)||null==C}function S(C,w){if(C.date()<w.date())return-S(w,C);var dt=12*(w.year()-C.year())+(w.month()-C.month()),Et=C.clone().add(dt,"months");return-(dt+(w-Et<0?(w-Et)/(Et-C.clone().add(dt-1,"months")):(w-Et)/(C.clone().add(dt+1,"months")-Et)))||0}function jn(C){var w;return void 0===C?this._locale._abbr:(null!=(w=Xn(C))&&(this._locale=w),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=vt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(C){return void 0===C?this.localeData():this.locale(C)});function gi(){return this._locale}var si=6e4,Ci=60*si,mi=3506328*Ci;function Si(C,w){return(C%w+w)%w}function Hi(C,w,dt){return C<100&&C>=0?new Date(C+400,w,dt)-mi:new Date(C,w,dt).valueOf()}function vo(C,w,dt){return C<100&&C>=0?Date.UTC(C+400,w,dt)-mi:Date.UTC(C,w,dt)}function Qi(C,w){return w.erasAbbrRegex(C)}function Ks(){var ne,qe,C=[],w=[],dt=[],Et=[],ln=this.eras();for(ne=0,qe=ln.length;ne<qe;++ne)w.push(de(ln[ne].name)),C.push(de(ln[ne].abbr)),dt.push(de(ln[ne].narrow)),Et.push(de(ln[ne].name)),Et.push(de(ln[ne].abbr)),Et.push(de(ln[ne].narrow));this._erasRegex=new RegExp("^("+Et.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+w.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+C.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+dt.join("|")+")","i")}function Os(C,w){$(0,[C,C.length],0,w)}function br(C,w,dt,Et,ne){var qe;return null==C?he(this,Et,ne).year:(w>(qe=Be(C,Et,ne))&&(w=qe),Ps.call(this,C,w,dt,Et,ne))}function Ps(C,w,dt,Et,ne){var qe=Bt(C,w,dt,Et,ne),ln=Ut(qe.year,0,qe.dayOfYear);return this.year(ln.getUTCFullYear()),this.month(ln.getUTCMonth()),this.date(ln.getUTCDate()),this}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),Ot("N",Qi),Ot("NN",Qi),Ot("NNN",Qi),Ot("NNNN",function ia(C,w){return w.erasNameRegex(C)}),Ot("NNNNN",function xs(C,w){return w.erasNarrowRegex(C)}),X(["N","NN","NNN","NNNN","NNNNN"],function(C,w,dt,Et){var ne=dt._locale.erasParse(C,Et,dt._strict);ne?ut(dt).era=ne:ut(dt).invalidEra=C}),Ot("y",Se),Ot("yy",Se),Ot("yyy",Se),Ot("yyyy",Se),Ot("yo",function qo(C,w){return w._eraYearOrdinalRegex||Se}),X(["y","yy","yyy","yyyy"],dn),X(["yo"],function(C,w,dt,Et){var ne;dt._locale._eraYearOrdinalRegex&&(ne=C.match(dt._locale._eraYearOrdinalRegex)),w[dn]=dt._locale.eraYearOrdinalParse?dt._locale.eraYearOrdinalParse(C,ne):parseInt(C,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Os("gggg","weekYear"),Os("ggggg","weekYear"),Os("GGGG","isoWeekYear"),Os("GGGGG","isoWeekYear"),ft("weekYear","gg"),ft("isoWeekYear","GG"),me("weekYear",1),me("isoWeekYear",1),Ot("G",Ke),Ot("g",Ke),Ot("GG",ye,Te),Ot("gg",ye,Te),Ot("GGGG",$e,_n),Ot("gggg",$e,_n),Ot("GGGGG",te,ce),Ot("ggggg",te,ce),_e(["gggg","ggggg","GGGG","GGGGG"],function(C,w,dt,Et){w[Et.substr(0,2)]=Xe(C)}),_e(["gg","GG"],function(C,w,dt,Et){w[Et]=e.parseTwoDigitYear(C)}),$("Q",0,"Qo","quarter"),ft("quarter","Q"),me("quarter",7),Ot("Q",qt),X("Q",function(C,w){w[Tn]=3*(Xe(C)-1)}),$("D",["DD",2],"Do","date"),ft("date","D"),me("date",9),Ot("D",ye),Ot("DD",ye,Te),Ot("Do",function(C,w){return C?w._dayOfMonthOrdinalParse||w._ordinalParse:w._dayOfMonthOrdinalParseLenient}),X(["D","DD"],je),X("Do",function(C,w){w[je]=Xe(C.match(ye)[0])});var Y=rn("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),ft("dayOfYear","DDD"),me("dayOfYear",4),Ot("DDD",oe),Ot("DDDD",Me),X(["DDD","DDDD"],function(C,w,dt){dt._dayOfYear=Xe(C)}),$("m",["mm",2],0,"minute"),ft("minute","m"),me("minute",14),Ot("m",ye),Ot("mm",ye,Te),X(["m","mm"],Ne);var Q=rn("Minutes",!1);$("s",["ss",2],0,"second"),ft("second","s"),me("second",15),Ot("s",ye),Ot("ss",ye,Te),X(["s","ss"],le);var Wt,Re,_t=rn("Seconds",!1);for($("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ft("millisecond","ms"),me("millisecond",16),Ot("S",oe,qt),Ot("SS",oe,Te),Ot("SSS",oe,Me),Wt="SSSS";Wt.length<=9;Wt+="S")Ot(Wt,Se);function bn(C,w){w[cn]=Xe(1e3*("0."+C))}for(Wt="S";Wt.length<=9;Wt+="S")X(Wt,bn);Re=rn("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var wn=j.prototype;function Lr(C){return C}wn.add=Zs,wn.calendar=function mn(C,w){1===arguments.length&&(arguments[0]?L(arguments[0])?(C=arguments[0],w=void 0):function It(C){var ne,w=l(C)&&!R(C),dt=!1,Et=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(ne=0;ne<Et.length;ne+=1)dt=dt||i(C,Et[ne]);return w&&dt}(arguments[0])&&(w=arguments[0],C=void 0):(C=void 0,w=void 0));var dt=C||Co(),Et=Or(dt,this).startOf("day"),ne=e.calendarFormat(this,Et)||"sameElse",qe=w&&(Ct(w[ne])?w[ne].call(this,dt):w[ne]);return this.format(qe||this.localeData().calendar(ne,this,Co(dt)))},wn.clone=function Pn(){return new j(this)},wn.diff=function v(C,w,dt){var Et,ne,qe;if(!this.isValid())return NaN;if(!(Et=Or(C,this)).isValid())return NaN;switch(ne=6e4*(Et.utcOffset()-this.utcOffset()),w=Gt(w)){case"year":qe=S(this,Et)/12;break;case"month":qe=S(this,Et);break;case"quarter":qe=S(this,Et)/3;break;case"second":qe=(this-Et)/1e3;break;case"minute":qe=(this-Et)/6e4;break;case"hour":qe=(this-Et)/36e5;break;case"day":qe=(this-Et-ne)/864e5;break;case"week":qe=(this-Et-ne)/6048e5;break;default:qe=this-Et}return dt?qe:gn(qe)},wn.endOf=function Kn(C){var w,dt;if(void 0===(C=Gt(C))||"millisecond"===C||!this.isValid())return this;switch(dt=this._isUTC?vo:Hi,C){case"year":w=dt(this.year()+1,0,1)-1;break;case"quarter":w=dt(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":w=dt(this.year(),this.month()+1,1)-1;break;case"week":w=dt(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":w=dt(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":w=dt(this.year(),this.month(),this.date()+1)-1;break;case"hour":w=this._d.valueOf(),w+=Ci-Si(w+(this._isUTC?0:this.utcOffset()*si),Ci)-1;break;case"minute":w=this._d.valueOf(),w+=si-Si(w,si)-1;break;case"second":w=this._d.valueOf(),w+=1e3-Si(w,1e3)-1}return this._d.setTime(w),e.updateOffset(this,!0),this},wn.format=function yn(C){C||(C=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var w=St(this,C);return this.localeData().postformat(w)},wn.from=function An(C,w){return this.isValid()&&(q(C)&&C.isValid()||Co(C).isValid())?cr({to:this,from:C}).locale(this.locale()).humanize(!w):this.localeData().invalidDate()},wn.fromNow=function Nn(C){return this.from(Co(),C)},wn.to=function ui(C,w){return this.isValid()&&(q(C)&&C.isValid()||Co(C).isValid())?cr({from:this,to:C}).locale(this.locale()).humanize(!w):this.localeData().invalidDate()},wn.toNow=function ei(C){return this.to(Co(),C)},wn.get=function Ft(C){return Ct(this[C=Gt(C)])?this[C]():this},wn.invalidAt=function ki(){return ut(this).overflow},wn.isAfter=function Yn(C,w){var dt=q(C)?C:Co(C);return!(!this.isValid()||!dt.isValid())&&("millisecond"===(w=Gt(w)||"millisecond")?this.valueOf()>dt.valueOf():dt.valueOf()<this.clone().startOf(w).valueOf())},wn.isBefore=function to(C,w){var dt=q(C)?C:Co(C);return!(!this.isValid()||!dt.isValid())&&("millisecond"===(w=Gt(w)||"millisecond")?this.valueOf()<dt.valueOf():this.clone().endOf(w).valueOf()<dt.valueOf())},wn.isBetween=function po(C,w,dt,Et){var ne=q(C)?C:Co(C),qe=q(w)?w:Co(w);return!!(this.isValid()&&ne.isValid()&&qe.isValid())&&("("===(Et=Et||"()")[0]?this.isAfter(ne,dt):!this.isBefore(ne,dt))&&(")"===Et[1]?this.isBefore(qe,dt):!this.isAfter(qe,dt))},wn.isSame=function p(C,w){var Et,dt=q(C)?C:Co(C);return!(!this.isValid()||!dt.isValid())&&("millisecond"===(w=Gt(w)||"millisecond")?this.valueOf()===dt.valueOf():(Et=dt.valueOf(),this.clone().startOf(w).valueOf()<=Et&&Et<=this.clone().endOf(w).valueOf()))},wn.isSameOrAfter=function K(C,w){return this.isSame(C,w)||this.isAfter(C,w)},wn.isSameOrBefore=function d(C,w){return this.isSame(C,w)||this.isBefore(C,w)},wn.isValid=function Bn(){return A(this)},wn.lang=oi,wn.locale=jn,wn.localeData=gi,wn.max=zs,wn.min=Gs,wn.parsingFlags=function $n(){return G({},ut(this))},wn.set=function be(C,w){if("object"==typeof C){var Et,dt=function De(C){var dt,w=[];for(dt in C)i(C,dt)&&w.push({unit:dt,priority:ve[dt]});return w.sort(function(Et,ne){return Et.priority-ne.priority}),w}(C=Ce(C)),ne=dt.length;for(Et=0;Et<ne;Et++)this[dt[Et].unit](C[dt[Et].unit])}else if(Ct(this[C=Gt(C)]))return this[C](w);return this},wn.startOf=function zo(C){var w,dt;if(void 0===(C=Gt(C))||"millisecond"===C||!this.isValid())return this;switch(dt=this._isUTC?vo:Hi,C){case"year":w=dt(this.year(),0,1);break;case"quarter":w=dt(this.year(),this.month()-this.month()%3,1);break;case"month":w=dt(this.year(),this.month(),1);break;case"week":w=dt(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":w=dt(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":w=dt(this.year(),this.month(),this.date());break;case"hour":w=this._d.valueOf(),w-=Si(w+(this._isUTC?0:this.utcOffset()*si),Ci);break;case"minute":w=this._d.valueOf(),w-=Si(w,si);break;case"second":w=this._d.valueOf(),w-=Si(w,1e3)}return this._d.setTime(w),e.updateOffset(this,!0),this},wn.subtract=jr,wn.toArray=function vr(){var C=this;return[C.year(),C.month(),C.date(),C.hour(),C.minute(),C.second(),C.millisecond()]},wn.toObject=function Di(){var C=this;return{years:C.year(),months:C.month(),date:C.date(),hours:C.hours(),minutes:C.minutes(),seconds:C.seconds(),milliseconds:C.milliseconds()}},wn.toDate=function hr(){return new Date(this.valueOf())},wn.toISOString=function Ue(C){if(!this.isValid())return null;var w=!0!==C,dt=w?this.clone().utc():this;return dt.year()<0||dt.year()>9999?St(dt,w?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Ct(Date.prototype.toISOString)?w?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",St(dt,"Z")):St(dt,w?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.inspect=function hn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var dt,Et,C="moment",w="";return this.isLocal()||(C=0===this.utcOffset()?"moment.utc":"moment.parseZone",w="Z"),dt="["+C+'("]',Et=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(dt+Et+"-MM-DD[T]HH:mm:ss.SSS"+w+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(wn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),wn.toJSON=function hi(){return this.isValid()?this.toISOString():null},wn.toString=function pe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function Wo(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function eo(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.eraName=function To(){var C,w,dt,Et=this.localeData().eras();for(C=0,w=Et.length;C<w;++C)if(dt=this.clone().startOf("day").valueOf(),Et[C].since<=dt&&dt<=Et[C].until||Et[C].until<=dt&&dt<=Et[C].since)return Et[C].name;return""},wn.eraNarrow=function Pr(){var C,w,dt,Et=this.localeData().eras();for(C=0,w=Et.length;C<w;++C)if(dt=this.clone().startOf("day").valueOf(),Et[C].since<=dt&&dt<=Et[C].until||Et[C].until<=dt&&dt<=Et[C].since)return Et[C].narrow;return""},wn.eraAbbr=function $s(){var C,w,dt,Et=this.localeData().eras();for(C=0,w=Et.length;C<w;++C)if(dt=this.clone().startOf("day").valueOf(),Et[C].since<=dt&&dt<=Et[C].until||Et[C].until<=dt&&dt<=Et[C].since)return Et[C].abbr;return""},wn.eraYear=function na(){var C,w,dt,Et,ne=this.localeData().eras();for(C=0,w=ne.length;C<w;++C)if(dt=ne[C].since<=ne[C].until?1:-1,Et=this.clone().startOf("day").valueOf(),ne[C].since<=Et&&Et<=ne[C].until||ne[C].until<=Et&&Et<=ne[C].since)return(this.year()-e(ne[C].since).year())*dt+ne[C].offset;return this.year()},wn.year=Do,wn.isLeapYear=function Fo(){return tn(this.year())},wn.weekYear=function Gr(C){return br.call(this,C,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function Ta(C){return br.call(this,C,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function I(C){return null==C?Math.ceil((this.month()+1)/3):this.month(3*(C-1)+this.month()%3)},wn.month=N,wn.daysInMonth=function Zt(){return ci(this.year(),this.month())},wn.week=wn.weeks=function wo(C){var w=this.localeData().week(this);return null==C?w:this.add(7*(C-w),"d")},wn.isoWeek=wn.isoWeeks=function Wi(C){var w=he(this,1,4).week;return null==C?w:this.add(7*(C-w),"d")},wn.weeksInYear=function ml(){var C=this.localeData()._week;return Be(this.year(),C.dow,C.doy)},wn.weeksInWeekYear=function ec(){var C=this.localeData()._week;return Be(this.weekYear(),C.dow,C.doy)},wn.isoWeeksInYear=function Va(){return Be(this.year(),1,4)},wn.isoWeeksInISOWeekYear=function Ec(){return Be(this.isoWeekYear(),1,4)},wn.date=Y,wn.day=wn.days=function Kt(C){if(!this.isValid())return null!=C?this:NaN;var w=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=C?(C=function go(C,w){return"string"!=typeof C?C:isNaN(C)?"number"==typeof(C=w.weekdaysParse(C))?C:null:parseInt(C,10)}(C,this.localeData()),this.add(C-w,"d")):w},wn.weekday=function ge(C){if(!this.isValid())return null!=C?this:NaN;var w=(this.day()+7-this.localeData()._week.dow)%7;return null==C?w:this.add(C-w,"d")},wn.isoWeekday=function Pe(C){if(!this.isValid())return null!=C?this:NaN;if(null!=C){var w=function Xi(C,w){return"string"==typeof C?w.weekdaysParse(C)%7||7:isNaN(C)?null:C}(C,this.localeData());return this.day(this.day()%7?w:w-7)}return this.day()||7},wn.dayOfYear=function D(C){var w=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==C?w:this.add(C-w,"d")},wn.hour=wn.hours=Li,wn.minute=wn.minutes=Q,wn.second=wn.seconds=_t,wn.millisecond=wn.milliseconds=Re,wn.utcOffset=function Xr(C,w,dt){var ne,Et=this._offset||0;if(!this.isValid())return null!=C?this:NaN;if(null!=C){if("string"==typeof C){if(null===(C=Sr(Qe,C)))return this}else Math.abs(C)<16&&!dt&&(C*=60);return!this._isUTC&&w&&(ne=Ur(this)),this._offset=C,this._isUTC=!0,null!=ne&&this.add(ne,"m"),Et!==C&&(!w||this._changeInProgress?ls(this,cr(C-Et,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?Et:Ur(this)},wn.utc=function Zr(C){return this.utcOffset(0,C)},wn.local=function Zi(C){return this._isUTC&&(this.utcOffset(0,C),this._isUTC=!1,C&&this.subtract(Ur(this),"m")),this},wn.parseZone=function Fs(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var C=Sr(Oe,this._i);null!=C?this.utcOffset(C):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function ts(C){return!!this.isValid()&&(C=C?Co(C).utcOffset():0,(this.utcOffset()-C)%60==0)},wn.isDST=function Hr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function cs(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function Bs(){return!!this.isValid()&&this._isUTC},wn.isUtc=Js,wn.isUTC=Js,wn.zoneAbbr=function fn(){return this._isUTC?"UTC":""},wn.zoneName=function Wn(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=vt("dates accessor is deprecated. Use date instead.",Y),wn.months=vt("months accessor is deprecated. Use month instead",N),wn.years=vt("years accessor is deprecated. Use year instead",Do),wn.zone=vt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function vs(C,w){return null!=C?("string"!=typeof C&&(C=-C),this.utcOffset(C,w),this):-this.utcOffset()}),wn.isDSTShifted=vt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Vr(){if(!f(this._isDSTShifted))return this._isDSTShifted;var w,C={};return _(C,this),(C=Br(C))._a?(w=C._isUTC?U(C._a):Co(C._a),this._isDSTShifted=this.isValid()&&function Kr(C,w,dt){var ln,Et=Math.min(C.length,w.length),ne=Math.abs(C.length-w.length),qe=0;for(ln=0;ln<Et;ln++)(dt&&C[ln]!==w[ln]||!dt&&Xe(C[ln])!==Xe(w[ln]))&&qe++;return qe+ne}(C._a,w.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Ki=z.prototype;function ds(C,w,dt,Et){var ne=Xn(),qe=U().set(Et,w);return ne[dt](qe,C)}function oa(C,w,dt){if(t(C)&&(w=C,C=void 0),C=C||"",null!=w)return ds(C,w,dt,"month");var Et,ne=[];for(Et=0;Et<12;Et++)ne[Et]=ds(C,Et,dt,"month");return ne}function us(C,w,dt,Et){"boolean"==typeof C?(t(w)&&(dt=w,w=void 0),w=w||""):(dt=w=C,C=!1,t(w)&&(dt=w,w=void 0),w=w||"");var ln,ne=Xn(),qe=C?ne._week.dow:0,fi=[];if(null!=dt)return ds(w,(dt+qe)%7,Et,"day");for(ln=0;ln<7;ln++)fi[ln]=ds(w,(ln+qe)%7,Et,"day");return fi}Ki.calendar=function V(C,w,dt){var Et=this._calendar[C]||this._calendar.sameElse;return Ct(Et)?Et.call(w,dt):Et},Ki.longDateFormat=function ee(C){var w=this._longDateFormat[C],dt=this._longDateFormat[C.toUpperCase()];return w||!dt?w:(this._longDateFormat[C]=dt.match($t).map(function(Et){return"MMMM"===Et||"MM"===Et||"DD"===Et||"dddd"===Et?Et.slice(1):Et}).join(""),this._longDateFormat[C])},Ki.invalidDate=function At(){return this._invalidDate},Ki.ordinal=function Ae(C){return this._ordinal.replace("%d",C)},Ki.preparse=Lr,Ki.postformat=Lr,Ki.relativeTime=function In(C,w,dt,Et){var ne=this._relativeTime[dt];return Ct(ne)?ne(C,w,dt,Et):ne.replace(/%d/i,C)},Ki.pastFuture=function Ve(C,w){var dt=this._relativeTime[C>0?"future":"past"];return Ct(dt)?dt(w):dt.replace(/%s/i,w)},Ki.set=function H(C){var w,dt;for(dt in C)i(C,dt)&&(Ct(w=C[dt])?this[dt]=w:this["_"+dt]=w);this._config=C,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ki.eras=function Ii(C,w){var dt,Et,ne,qe=this._eras||Xn("en")._eras;for(dt=0,Et=qe.length;dt<Et;++dt)switch("string"==typeof qe[dt].since&&(ne=e(qe[dt].since).startOf("day"),qe[dt].since=ne.valueOf()),typeof qe[dt].until){case"undefined":qe[dt].until=1/0;break;case"string":ne=e(qe[dt].until).startOf("day").valueOf(),qe[dt].until=ne.valueOf()}return qe},Ki.erasParse=function bo(C,w,dt){var Et,ne,ln,fi,Vi,qe=this.eras();for(C=C.toUpperCase(),Et=0,ne=qe.length;Et<ne;++Et)if(ln=qe[Et].name.toUpperCase(),fi=qe[Et].abbr.toUpperCase(),Vi=qe[Et].narrow.toUpperCase(),dt)switch(w){case"N":case"NN":case"NNN":if(fi===C)return qe[Et];break;case"NNNN":if(ln===C)return qe[Et];break;case"NNNNN":if(Vi===C)return qe[Et]}else if([ln,fi,Vi].indexOf(C)>=0)return qe[Et]},Ki.erasConvertYear=function Po(C,w){var dt=C.since<=C.until?1:-1;return void 0===w?e(C.since).year():e(C.since).year()+(w-C.offset)*dt},Ki.erasAbbrRegex=function wa(C){return i(this,"_erasAbbrRegex")||Ks.call(this),C?this._erasAbbrRegex:this._erasRegex},Ki.erasNameRegex=function Tr(C){return i(this,"_erasNameRegex")||Ks.call(this),C?this._erasNameRegex:this._erasRegex},Ki.erasNarrowRegex=function kn(C){return i(this,"_erasNarrowRegex")||Ks.call(this),C?this._erasNarrowRegex:this._erasRegex},Ki.months=function Ai(C,w){return C?x(this._months)?this._months[C.month()]:this._months[(this._months.isFormat||Yi).test(w)?"format":"standalone"][C.month()]:x(this._months)?this._months:this._months.standalone},Ki.monthsShort=function Ui(C,w){return C?x(this._monthsShort)?this._monthsShort[C.month()]:this._monthsShort[Yi.test(w)?"format":"standalone"][C.month()]:x(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ki.monthsParse=function Ye(C,w,dt){var Et,ne,qe;if(this._monthsParseExact)return io.call(this,C,w,dt);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Et=0;Et<12;Et++){if(ne=U([2e3,Et]),dt&&!this._longMonthsParse[Et]&&(this._longMonthsParse[Et]=new RegExp("^"+this.months(ne,"").replace(".","")+"$","i"),this._shortMonthsParse[Et]=new RegExp("^"+this.monthsShort(ne,"").replace(".","")+"$","i")),!dt&&!this._monthsParse[Et]&&(qe="^"+this.months(ne,"")+"|^"+this.monthsShort(ne,""),this._monthsParse[Et]=new RegExp(qe.replace(".",""),"i")),dt&&"MMMM"===w&&this._longMonthsParse[Et].test(C))return Et;if(dt&&"MMM"===w&&this._shortMonthsParse[Et].test(C))return Et;if(!dt&&this._monthsParse[Et].test(C))return Et}},Ki.monthsRegex=function fe(C){return this._monthsParseExact?(i(this,"_monthsRegex")||sn.call(this),C?this._monthsStrictRegex:this._monthsRegex):(i(this,"_monthsRegex")||(this._monthsRegex=Mo),this._monthsStrictRegex&&C?this._monthsStrictRegex:this._monthsRegex)},Ki.monthsShortRegex=function kt(C){return this._monthsParseExact?(i(this,"_monthsRegex")||sn.call(this),C?this._monthsShortStrictRegex:this._monthsShortRegex):(i(this,"_monthsShortRegex")||(this._monthsShortRegex=No),this._monthsShortStrictRegex&&C?this._monthsShortStrictRegex:this._monthsShortRegex)},Ki.week=function xn(C){return he(C,this._week.dow,this._week.doy).week},Ki.firstDayOfYear=function ji(){return this._week.doy},Ki.firstDayOfWeek=function li(){return this._week.dow},Ki.weekdays=function Eo(C,w){var dt=x(this._weekdays)?this._weekdays:this._weekdays[C&&!0!==C&&this._weekdays.isFormat.test(w)?"format":"standalone"];return!0===C?co(dt,this._week.dow):C?dt[C.day()]:dt},Ki.weekdaysMin=function ur(C){return!0===C?co(this._weekdaysMin,this._week.dow):C?this._weekdaysMin[C.day()]:this._weekdaysMin},Ki.weekdaysShort=function wr(C){return!0===C?co(this._weekdaysShort,this._week.dow):C?this._weekdaysShort[C.day()]:this._weekdaysShort},Ki.weekdaysParse=function Mt(C,w,dt){var Et,ne,qe;if(this._weekdaysParseExact)return xe.call(this,C,w,dt);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Et=0;Et<7;Et++){if(ne=U([2e3,1]).day(Et),dt&&!this._fullWeekdaysParse[Et]&&(this._fullWeekdaysParse[Et]=new RegExp("^"+this.weekdays(ne,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Et]=new RegExp("^"+this.weekdaysShort(ne,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Et]=new RegExp("^"+this.weekdaysMin(ne,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Et]||(qe="^"+this.weekdays(ne,"")+"|^"+this.weekdaysShort(ne,"")+"|^"+this.weekdaysMin(ne,""),this._weekdaysParse[Et]=new RegExp(qe.replace(".",""),"i")),dt&&"dddd"===w&&this._fullWeekdaysParse[Et].test(C))return Et;if(dt&&"ddd"===w&&this._shortWeekdaysParse[Et].test(C))return Et;if(dt&&"dd"===w&&this._minWeekdaysParse[Et].test(C))return Et;if(!dt&&this._weekdaysParse[Et].test(C))return Et}},Ki.weekdaysRegex=function un(C){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qn.call(this),C?this._weekdaysStrictRegex:this._weekdaysRegex):(i(this,"_weekdaysRegex")||(this._weekdaysRegex=lo),this._weekdaysStrictRegex&&C?this._weekdaysStrictRegex:this._weekdaysRegex)},Ki.weekdaysShortRegex=function Dn(C){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qn.call(this),C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xo),this._weekdaysShortStrictRegex&&C?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ki.weekdaysMinRegex=function Un(C){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||Qn.call(this),C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$o),this._weekdaysMinStrictRegex&&C?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ki.isPM=function Gi(C){return"p"===(C+"").toLowerCase().charAt(0)},Ki.meridiem=function So(C,w,dt){return C>11?dt?"pm":"PM":dt?"am":"AM"},oo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(C){var w=C%10;return C+(1===Xe(C%100/10)?"th":1===w?"st":2===w?"nd":3===w?"rd":"th")}}),e.lang=vt("moment.lang is deprecated. Use moment.locale instead.",oo),e.langData=vt("moment.langData is deprecated. Use moment.localeData instead.",Xn);var yo=Math.abs;function Ac(C,w,dt,Et){var ne=cr(w,dt);return C._milliseconds+=Et*ne._milliseconds,C._days+=Et*ne._days,C._months+=Et*ne._months,C._bubble()}function nc(C){return C<0?Math.floor(C):Math.ceil(C)}function ka(C){return 4800*C/146097}function ys(C){return 146097*C/4800}function es(C){return function(){return this.as(C)}}var ja=es("ms"),ic=es("s"),Rc=es("m"),oc=es("h"),bl=es("d"),kr=es("w"),Ea=es("M"),ws=es("Q"),fd=es("y");function Hs(C){return function(){return this.isValid()?this._data[C]:NaN}}var Ga=Hs("milliseconds"),Ml=Hs("seconds"),xl=Hs("minutes"),za=Hs("hours"),sa=Hs("days"),Ol=Hs("months"),Sa=Hs("years");var ns=Math.round,Aa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Fc(C,w,dt,Et,ne){return ne.relativeTime(w||1,!!dt,C,Et)}var ma=Math.abs;function qs(C){return(C>0)-(C<0)||+C}function Ia(){if(!this.isValid())return this.localeData().invalidDate();var Et,ne,qe,ln,Vi,Ro,yr,Ds,C=ma(this._milliseconds)/1e3,w=ma(this._days),dt=ma(this._months),fi=this.asSeconds();return fi?(Et=gn(C/60),ne=gn(Et/60),C%=60,Et%=60,qe=gn(dt/12),dt%=12,ln=C?C.toFixed(3).replace(/\.?0+$/,""):"",Vi=fi<0?"-":"",Ro=qs(this._months)!==qs(fi)?"-":"",yr=qs(this._days)!==qs(fi)?"-":"",Ds=qs(this._milliseconds)!==qs(fi)?"-":"",Vi+"P"+(qe?Ro+qe+"Y":"")+(dt?Ro+dt+"M":"")+(w?yr+w+"D":"")+(ne||Et||C?"T":"")+(ne?Ds+ne+"H":"")+(Et?Ds+Et+"M":"")+(C?Ds+ln+"S":"")):"P0D"}var ro=yi.prototype;return ro.isValid=function Cr(){return this._isValid},ro.abs=function Sc(){var C=this._data;return this._milliseconds=yo(this._milliseconds),this._days=yo(this._days),this._months=yo(this._months),C.milliseconds=yo(C.milliseconds),C.seconds=yo(C.seconds),C.minutes=yo(C.minutes),C.hours=yo(C.hours),C.months=yo(C.months),C.years=yo(C.years),this},ro.add=function Ic(C,w){return Ac(this,C,w,1)},ro.subtract=function Cl(C,w){return Ac(this,C,w,-1)},ro.as=function vl(C){if(!this.isValid())return NaN;var w,dt,Et=this._milliseconds;if("month"===(C=Gt(C))||"quarter"===C||"year"===C)switch(w=this._days+Et/864e5,dt=this._months+ka(w),C){case"month":return dt;case"quarter":return dt/3;case"year":return dt/12}else switch(w=this._days+Math.round(ys(this._months)),C){case"week":return w/7+Et/6048e5;case"day":return w+Et/864e5;case"hour":return 24*w+Et/36e5;case"minute":return 1440*w+Et/6e4;case"second":return 86400*w+Et/1e3;case"millisecond":return Math.floor(864e5*w)+Et;default:throw new Error("Unknown unit "+C)}},ro.asMilliseconds=ja,ro.asSeconds=ic,ro.asMinutes=Rc,ro.asHours=oc,ro.asDays=bl,ro.asWeeks=kr,ro.asMonths=Ea,ro.asQuarters=ws,ro.asYears=fd,ro.valueOf=function Ya(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Xe(this._months/12):NaN},ro._bubble=function Lc(){var ne,qe,ln,fi,Vi,C=this._milliseconds,w=this._days,dt=this._months,Et=this._data;return C>=0&&w>=0&&dt>=0||C<=0&&w<=0&&dt<=0||(C+=864e5*nc(ys(dt)+w),w=0,dt=0),Et.milliseconds=C%1e3,ne=gn(C/1e3),Et.seconds=ne%60,qe=gn(ne/60),Et.minutes=qe%60,ln=gn(qe/60),Et.hours=ln%24,w+=gn(ln/24),dt+=Vi=gn(ka(w)),w-=nc(ys(Vi)),fi=gn(dt/12),dt%=12,Et.days=w,Et.months=dt,Et.years=fi,this},ro.clone=function rc(){return cr(this)},ro.get=function Nc(C){return C=Gt(C),this.isValid()?this[C+"s"]():NaN},ro.milliseconds=Ga,ro.seconds=Ml,ro.minutes=xl,ro.hours=za,ro.days=sa,ro.weeks=function sc(){return gn(this.days()/7)},ro.months=Ol,ro.years=Sa,ro.humanize=function yl(C,w){if(!this.isValid())return this.localeData().invalidDate();var ne,qe,dt=!1,Et=Aa;return"object"==typeof C&&(w=C,C=!1),"boolean"==typeof C&&(dt=C),"object"==typeof w&&(Et=Object.assign({},Aa,w),null!=w.s&&null==w.ss&&(Et.ss=w.s-1)),qe=function Bc(C,w,dt,Et){var ne=cr(C).abs(),qe=ns(ne.as("s")),ln=ns(ne.as("m")),fi=ns(ne.as("h")),Vi=ns(ne.as("d")),Ro=ns(ne.as("M")),yr=ns(ne.as("w")),Ds=ns(ne.as("y")),is=qe<=dt.ss&&["s",qe]||qe<dt.s&&["ss",qe]||ln<=1&&["m"]||ln<dt.m&&["mm",ln]||fi<=1&&["h"]||fi<dt.h&&["hh",fi]||Vi<=1&&["d"]||Vi<dt.d&&["dd",Vi];return null!=dt.w&&(is=is||yr<=1&&["w"]||yr<dt.w&&["ww",yr]),(is=is||Ro<=1&&["M"]||Ro<dt.M&&["MM",Ro]||Ds<=1&&["y"]||["yy",Ds])[2]=w,is[3]=+C>0,is[4]=Et,Fc.apply(null,is)}(this,!dt,Et,ne=this.localeData()),dt&&(qe=ne.pastFuture(+this,qe)),ne.postformat(qe)},ro.toISOString=Ia,ro.toString=Ia,ro.toJSON=Ia,ro.locale=jn,ro.localeData=gi,ro.toIsoString=vt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ia),ro.lang=oi,$("X",0,0,"unix"),$("x",0,0,"valueOf"),Ot("x",Ke),Ot("X",/[+-]?\d+(\.\d{1,3})?/),X("X",function(C,w,dt){dt._d=new Date(1e3*parseFloat(C))}),X("x",function(C,w,dt){dt._d=new Date(Xe(C))}),e.version="2.29.4",function g(C){o=C}(Co),e.fn=wn,e.min=function ga(){return Rs("isBefore",[].slice.call(arguments,0))},e.max=function Fi(){return Rs("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=U,e.unix=function Lo(C){return Co(1e3*C)},e.months=function Da(C,w){return oa(C,w,"months")},e.isDate=y,e.locale=oo,e.invalid=xt,e.duration=cr,e.isMoment=q,e.weekdays=function _l(C,w,dt){return us(C,w,dt,"weekdays")},e.parseZone=function so(){return Co.apply(null,arguments).parseZone()},e.localeData=Xn,e.isDuration=tr,e.monthsShort=function fl(C,w){return oa(C,w,"monthsShort")},e.weekdaysMin=function ra(C,w,dt){return us(C,w,dt,"weekdaysMin")},e.defineLocale=Go,e.updateLocale=function bi(C,w){if(null!=w){var dt,Et,ne=mo;null!=qn[C]&&null!=qn[C].parentLocale?qn[C].set(J(qn[C]._config,w)):(null!=(Et=Pi(C))&&(ne=Et._config),w=J(ne,w),null==Et&&(w.abbr=C),(dt=new z(w)).parentLocale=qn[C],qn[C]=dt),oo(C)}else null!=qn[C]&&(null!=qn[C].parentLocale?(qn[C]=qn[C].parentLocale,C===oo()&&oo(C)):null!=qn[C]&&delete qn[C]);return qn[C]},e.locales=function Zo(){return F(qn)},e.weekdaysShort=function Dr(C,w,dt){return us(C,w,dt,"weekdaysShort")},e.normalizeUnits=Gt,e.relativeTimeRounding=function Pl(C){return void 0===C?ns:"function"==typeof C&&(ns=C,!0)},e.relativeTimeThreshold=function Ts(C,w){return void 0!==Aa[C]&&(void 0===w?Aa[C]:(Aa[C]=w,"s"===C&&(Aa.ss=w-1),!0))},e.calendarFormat=function Le(C,w){var dt=C.diff(w,"days",!0);return dt<-6?"sameElse":dt<-1?"lastWeek":dt<0?"lastDay":dt<1?"sameDay":dt<2?"nextDay":dt<7?"nextWeek":"sameElse"},e.prototype=wn,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},5619:(Je,Rt,c)=>{"use strict";c.d(Rt,{X:()=>e});var o=c(8645);class e extends o.x{constructor(x){super(),this._value=x}get value(){return this.getValue()}_subscribe(x){const l=super._subscribe(x);return!l.closed&&x.next(this._value),l}getValue(){const{hasError:x,thrownError:l,_value:i}=this;if(x)throw l;return this._throwIfClosed(),i}next(x){super.next(this._value=x)}}},5592:(Je,Rt,c)=>{"use strict";c.d(Rt,{y:()=>f});var o=c(305),e=c(7394),g=c(4850),x=c(8407),l=c(2653),i=c(4674),R=c(1441);let f=(()=>{class G{constructor(lt){lt&&(this._subscribe=lt)}lift(lt){const ut=new G;return ut.source=this,ut.operator=lt,ut}subscribe(lt,ut,Ht){const A=function O(G){return G&&G instanceof o.Lv||function y(G){return G&&(0,i.m)(G.next)&&(0,i.m)(G.error)&&(0,i.m)(G.complete)}(G)&&(0,e.Nn)(G)}(lt)?lt:new o.Hp(lt,ut,Ht);return(0,R.x)(()=>{const{operator:xt,source:tt}=this;A.add(xt?xt.call(A,tt):tt?this._subscribe(A):this._trySubscribe(A))}),A}_trySubscribe(lt){try{return this._subscribe(lt)}catch(ut){lt.error(ut)}}forEach(lt,ut){return new(ut=t(ut))((Ht,A)=>{const xt=new o.Hp({next:tt=>{try{lt(tt)}catch(ct){A(ct),xt.unsubscribe()}},error:A,complete:Ht});this.subscribe(xt)})}_subscribe(lt){var ut;return null===(ut=this.source)||void 0===ut?void 0:ut.subscribe(lt)}[g.L](){return this}pipe(...lt){return(0,x.U)(lt)(this)}toPromise(lt){return new(lt=t(lt))((ut,Ht)=>{let A;this.subscribe(xt=>A=xt,xt=>Ht(xt),()=>ut(A))})}}return G.create=U=>new G(U),G})();function t(G){var U;return null!==(U=G??l.config.Promise)&&void 0!==U?U:Promise}},7328:(Je,Rt,c)=>{"use strict";c.d(Rt,{t:()=>g});var o=c(8645),e=c(4552);class g extends o.x{constructor(l=1/0,i=1/0,R=e.l){super(),this._bufferSize=l,this._windowTime=i,this._timestampProvider=R,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=i===1/0,this._bufferSize=Math.max(1,l),this._windowTime=Math.max(1,i)}next(l){const{isStopped:i,_buffer:R,_infiniteTimeWindow:f,_timestampProvider:t,_windowTime:y}=this;i||(R.push(l),!f&&R.push(t.now()+y)),this._trimBuffer(),super.next(l)}_subscribe(l){this._throwIfClosed(),this._trimBuffer();const i=this._innerSubscribe(l),{_infiniteTimeWindow:R,_buffer:f}=this,t=f.slice();for(let y=0;y<t.length&&!l.closed;y+=R?1:2)l.next(t[y]);return this._checkFinalizedStatuses(l),i}_trimBuffer(){const{_bufferSize:l,_timestampProvider:i,_buffer:R,_infiniteTimeWindow:f}=this,t=(f?1:2)*l;if(l<1/0&&t<R.length&&R.splice(0,R.length-t),!f){const y=i.now();let O=0;for(let G=1;G<R.length&&R[G]<=y;G+=2)O=G;O&&R.splice(0,O+1)}}}},8645:(Je,Rt,c)=>{"use strict";c.d(Rt,{x:()=>R});var o=c(5592),e=c(7394);const x=(0,c(2306).d)(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var l=c(9039),i=c(1441);let R=(()=>{class t extends o.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(O){const G=new f(this,this);return G.operator=O,G}_throwIfClosed(){if(this.closed)throw new x}next(O){(0,i.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const G of this.currentObservers)G.next(O)}})}error(O){(0,i.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=O;const{observers:G}=this;for(;G.length;)G.shift().error(O)}})}complete(){(0,i.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:O}=this;for(;O.length;)O.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var O;return(null===(O=this.observers)||void 0===O?void 0:O.length)>0}_trySubscribe(O){return this._throwIfClosed(),super._trySubscribe(O)}_subscribe(O){return this._throwIfClosed(),this._checkFinalizedStatuses(O),this._innerSubscribe(O)}_innerSubscribe(O){const{hasError:G,isStopped:U,observers:lt}=this;return G||U?e.Lc:(this.currentObservers=null,lt.push(O),new e.w0(()=>{this.currentObservers=null,(0,l.P)(lt,O)}))}_checkFinalizedStatuses(O){const{hasError:G,thrownError:U,isStopped:lt}=this;G?O.error(U):lt&&O.complete()}asObservable(){const O=new o.y;return O.source=this,O}}return t.create=(y,O)=>new f(y,O),t})();class f extends R{constructor(y,O){super(),this.destination=y,this.source=O}next(y){var O,G;null===(G=null===(O=this.destination)||void 0===O?void 0:O.next)||void 0===G||G.call(O,y)}error(y){var O,G;null===(G=null===(O=this.destination)||void 0===O?void 0:O.error)||void 0===G||G.call(O,y)}complete(){var y,O;null===(O=null===(y=this.destination)||void 0===y?void 0:y.complete)||void 0===O||O.call(y)}_subscribe(y){var O,G;return null!==(G=null===(O=this.source)||void 0===O?void 0:O.subscribe(y))&&void 0!==G?G:e.Lc}}},305:(Je,Rt,c)=>{"use strict";c.d(Rt,{Hp:()=>Ht,Lv:()=>G});var o=c(4674),e=c(7394),g=c(2653),x=c(3894),l=c(2420);const i=t("C",void 0,void 0);function t(_,j,q){return{kind:_,value:j,error:q}}var y=c(7599),O=c(1441);class G extends e.w0{constructor(j){super(),this.isStopped=!1,j?(this.destination=j,(0,e.Nn)(j)&&j.add(this)):this.destination=ct}static create(j,q,ht){return new Ht(j,q,ht)}next(j){this.isStopped?tt(function f(_){return t("N",_,void 0)}(j),this):this._next(j)}error(j){this.isStopped?tt(function R(_){return t("E",void 0,_)}(j),this):(this.isStopped=!0,this._error(j))}complete(){this.isStopped?tt(i,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(j){this.destination.next(j)}_error(j){try{this.destination.error(j)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const U=Function.prototype.bind;function lt(_,j){return U.call(_,j)}class ut{constructor(j){this.partialObserver=j}next(j){const{partialObserver:q}=this;if(q.next)try{q.next(j)}catch(ht){A(ht)}}error(j){const{partialObserver:q}=this;if(q.error)try{q.error(j)}catch(ht){A(ht)}else A(j)}complete(){const{partialObserver:j}=this;if(j.complete)try{j.complete()}catch(q){A(q)}}}class Ht extends G{constructor(j,q,ht){let vt;if(super(),(0,o.m)(j)||!j)vt={next:j??void 0,error:q??void 0,complete:ht??void 0};else{let gt;this&&g.config.useDeprecatedNextContext?(gt=Object.create(j),gt.unsubscribe=()=>this.unsubscribe(),vt={next:j.next&&lt(j.next,gt),error:j.error&&lt(j.error,gt),complete:j.complete&&lt(j.complete,gt)}):vt=j}this.destination=new ut(vt)}}function A(_){g.config.useDeprecatedSynchronousErrorHandling?(0,O.O)(_):(0,x.h)(_)}function tt(_,j){const{onStoppedNotification:q}=g.config;q&&y.z.setTimeout(()=>q(_,j))}const ct={closed:!0,next:l.Z,error:function xt(_){throw _},complete:l.Z}},7394:(Je,Rt,c)=>{"use strict";c.d(Rt,{Lc:()=>i,w0:()=>l,Nn:()=>R});var o=c(4674);const g=(0,c(2306).d)(t=>function(O){t(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((G,U)=>`${U+1}) ${G.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=O});var x=c(9039);class l{constructor(y){this.initialTeardown=y,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let y;if(!this.closed){this.closed=!0;const{_parentage:O}=this;if(O)if(this._parentage=null,Array.isArray(O))for(const lt of O)lt.remove(this);else O.remove(this);const{initialTeardown:G}=this;if((0,o.m)(G))try{G()}catch(lt){y=lt instanceof g?lt.errors:[lt]}const{_finalizers:U}=this;if(U){this._finalizers=null;for(const lt of U)try{f(lt)}catch(ut){y=y??[],ut instanceof g?y=[...y,...ut.errors]:y.push(ut)}}if(y)throw new g(y)}}add(y){var O;if(y&&y!==this)if(this.closed)f(y);else{if(y instanceof l){if(y.closed||y._hasParent(this))return;y._addParent(this)}(this._finalizers=null!==(O=this._finalizers)&&void 0!==O?O:[]).push(y)}}_hasParent(y){const{_parentage:O}=this;return O===y||Array.isArray(O)&&O.includes(y)}_addParent(y){const{_parentage:O}=this;this._parentage=Array.isArray(O)?(O.push(y),O):O?[O,y]:y}_removeParent(y){const{_parentage:O}=this;O===y?this._parentage=null:Array.isArray(O)&&(0,x.P)(O,y)}remove(y){const{_finalizers:O}=this;O&&(0,x.P)(O,y),y instanceof l&&y._removeParent(this)}}l.EMPTY=(()=>{const t=new l;return t.closed=!0,t})();const i=l.EMPTY;function R(t){return t instanceof l||t&&"closed"in t&&(0,o.m)(t.remove)&&(0,o.m)(t.add)&&(0,o.m)(t.unsubscribe)}function f(t){(0,o.m)(t)?t():t.unsubscribe()}},2653:(Je,Rt,c)=>{"use strict";c.d(Rt,{config:()=>o});const o={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4036:(Je,Rt,c)=>{"use strict";c.d(Rt,{z:()=>g});var o=c(6973),e=c(305);function g(x,l){const i="object"==typeof l;return new Promise((R,f)=>{const t=new e.Hp({next:y=>{R(y),t.unsubscribe()},error:f,complete:()=>{i?R(l.defaultValue):f(new o.K)}});x.subscribe(t)})}},708:(Je,Rt,c)=>{"use strict";c.d(Rt,{n:()=>e});var o=c(6973);function e(g,x){const l="object"==typeof x;return new Promise((i,R)=>{let t,f=!1;g.subscribe({next:y=>{t=y,f=!0},error:R,complete:()=>{f?i(t):l?i(x.defaultValue):R(new o.K)}})})}},3168:(Je,Rt,c)=>{"use strict";c.d(Rt,{c:()=>i});var o=c(5592),e=c(7394),g=c(6196),x=c(8251),l=c(9360);class i extends o.y{constructor(f,t){super(),this.source=f,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,(0,l.A)(f)&&(this.lift=f.lift)}_subscribe(f){return this.getSubject().subscribe(f)}getSubject(){const f=this._subject;return(!f||f.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:f}=this;this._subject=this._connection=null,f?.unsubscribe()}connect(){let f=this._connection;if(!f){f=this._connection=new e.w0;const t=this.getSubject();f.add(this.source.subscribe((0,x.x)(t,void 0,()=>{this._teardown(),t.complete()},y=>{this._teardown(),t.error(y)},()=>this._teardown()))),f.closed&&(this._connection=null,f=e.w0.EMPTY)}return f}refCount(){return(0,g.x)()(this)}}},2572:(Je,Rt,c)=>{"use strict";c.d(Rt,{a:()=>y,l:()=>O});var o=c(5592),e=c(7453),g=c(7715),x=c(2737),l=c(7400),i=c(9940),R=c(2714),f=c(8251),t=c(7103);function y(...U){const lt=(0,i.yG)(U),ut=(0,i.jO)(U),{args:Ht,keys:A}=(0,e.D)(U);if(0===Ht.length)return(0,g.D)([],lt);const xt=new o.y(O(Ht,lt,A?tt=>(0,R.n)(A,tt):x.y));return ut?xt.pipe((0,l.Z)(ut)):xt}function O(U,lt,ut=x.y){return Ht=>{G(lt,()=>{const{length:A}=U,xt=new Array(A);let tt=A,ct=A;for(let _=0;_<A;_++)G(lt,()=>{const j=(0,g.D)(U[_],lt);let q=!1;j.subscribe((0,f.x)(Ht,ht=>{xt[_]=ht,q||(q=!0,ct--),ct||Ht.next(ut(xt.slice()))},()=>{--tt||Ht.complete()}))},Ht)},Ht)}}function G(U,lt,ut){U?(0,t.f)(ut,U,lt):lt()}},5211:(Je,Rt,c)=>{"use strict";c.d(Rt,{z:()=>l});var o=c(7537),g=c(9940),x=c(7715);function l(...i){return function e(){return(0,o.J)(1)}()((0,x.D)(i,(0,g.yG)(i)))}},4911:(Je,Rt,c)=>{"use strict";c.d(Rt,{P:()=>g});var o=c(5592),e=c(4829);function g(x){return new o.y(l=>{(0,e.Xf)(x()).subscribe(l)})}},6232:(Je,Rt,c)=>{"use strict";c.d(Rt,{E:()=>e});const e=new(c(5592).y)(l=>l.complete())},9315:(Je,Rt,c)=>{"use strict";c.d(Rt,{D:()=>f});var o=c(5592),e=c(7453),g=c(4829),x=c(9940),l=c(8251),i=c(7400),R=c(2714);function f(...t){const y=(0,x.jO)(t),{args:O,keys:G}=(0,e.D)(t),U=new o.y(lt=>{const{length:ut}=O;if(!ut)return void lt.complete();const Ht=new Array(ut);let A=ut,xt=ut;for(let tt=0;tt<ut;tt++){let ct=!1;(0,g.Xf)(O[tt]).subscribe((0,l.x)(lt,_=>{ct||(ct=!0,xt--),Ht[tt]=_},()=>A--,void 0,()=>{(!A||!ct)&&(xt||lt.next(G?(0,R.n)(G,Ht):Ht),lt.complete())}))}});return y?U.pipe((0,i.Z)(y)):U}},7715:(Je,Rt,c)=>{"use strict";c.d(Rt,{D:()=>ht});var o=c(4829),e=c(7103),g=c(9360),x=c(8251);function l(vt,gt=0){return(0,g.e)((zt,Ct)=>{zt.subscribe((0,x.x)(Ct,H=>(0,e.f)(Ct,vt,()=>Ct.next(H),gt),()=>(0,e.f)(Ct,vt,()=>Ct.complete(),gt),H=>(0,e.f)(Ct,vt,()=>Ct.error(H),gt)))})}function i(vt,gt=0){return(0,g.e)((zt,Ct)=>{Ct.add(vt.schedule(()=>zt.subscribe(Ct),gt))})}var t=c(5592),O=c(4971),G=c(4674);function lt(vt,gt){if(!vt)throw new Error("Iterable cannot be null");return new t.y(zt=>{(0,e.f)(zt,gt,()=>{const Ct=vt[Symbol.asyncIterator]();(0,e.f)(zt,gt,()=>{Ct.next().then(H=>{H.done?zt.complete():zt.next(H.value)})},0,!0)})})}var ut=c(8382),Ht=c(4026),A=c(4266),xt=c(3664),tt=c(5726),ct=c(9853),_=c(541);function ht(vt,gt){return gt?function q(vt,gt){if(null!=vt){if((0,ut.c)(vt))return function R(vt,gt){return(0,o.Xf)(vt).pipe(i(gt),l(gt))}(vt,gt);if((0,A.z)(vt))return function y(vt,gt){return new t.y(zt=>{let Ct=0;return gt.schedule(function(){Ct===vt.length?zt.complete():(zt.next(vt[Ct++]),zt.closed||this.schedule())})})}(vt,gt);if((0,Ht.t)(vt))return function f(vt,gt){return(0,o.Xf)(vt).pipe(i(gt),l(gt))}(vt,gt);if((0,tt.D)(vt))return lt(vt,gt);if((0,xt.T)(vt))return function U(vt,gt){return new t.y(zt=>{let Ct;return(0,e.f)(zt,gt,()=>{Ct=vt[O.h](),(0,e.f)(zt,gt,()=>{let H,J;try{({value:H,done:J}=Ct.next())}catch(z){return void zt.error(z)}J?zt.complete():zt.next(H)},0,!0)}),()=>(0,G.m)(Ct?.return)&&Ct.return()})}(vt,gt);if((0,_.L)(vt))return function j(vt,gt){return lt((0,_.Q)(vt),gt)}(vt,gt)}throw(0,ct.z)(vt)}(vt,gt):(0,o.Xf)(vt)}},2438:(Je,Rt,c)=>{"use strict";c.d(Rt,{R:()=>y});var o=c(4829),e=c(5592),g=c(9769),x=c(4266),l=c(4674),i=c(7400);const R=["addListener","removeListener"],f=["addEventListener","removeEventListener"],t=["on","off"];function y(ut,Ht,A,xt){if((0,l.m)(A)&&(xt=A,A=void 0),xt)return y(ut,Ht,A).pipe((0,i.Z)(xt));const[tt,ct]=function lt(ut){return(0,l.m)(ut.addEventListener)&&(0,l.m)(ut.removeEventListener)}(ut)?f.map(_=>j=>ut[_](Ht,j,A)):function G(ut){return(0,l.m)(ut.addListener)&&(0,l.m)(ut.removeListener)}(ut)?R.map(O(ut,Ht)):function U(ut){return(0,l.m)(ut.on)&&(0,l.m)(ut.off)}(ut)?t.map(O(ut,Ht)):[];if(!tt&&(0,x.z)(ut))return(0,g.z)(_=>y(_,Ht,A))((0,o.Xf)(ut));if(!tt)throw new TypeError("Invalid event target");return new e.y(_=>{const j=(...q)=>_.next(1<q.length?q:q[0]);return tt(j),()=>ct(j)})}function O(ut,Ht){return A=>xt=>ut[A](Ht,xt)}},4829:(Je,Rt,c)=>{"use strict";c.d(Rt,{Xf:()=>U});var o=c(655),e=c(4266),g=c(4026),x=c(5592),l=c(8382),i=c(5726),R=c(9853),f=c(3664),t=c(541),y=c(4674),O=c(3894),G=c(4850);function U(_){if(_ instanceof x.y)return _;if(null!=_){if((0,l.c)(_))return function lt(_){return new x.y(j=>{const q=_[G.L]();if((0,y.m)(q.subscribe))return q.subscribe(j);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(_);if((0,e.z)(_))return function ut(_){return new x.y(j=>{for(let q=0;q<_.length&&!j.closed;q++)j.next(_[q]);j.complete()})}(_);if((0,g.t)(_))return function Ht(_){return new x.y(j=>{_.then(q=>{j.closed||(j.next(q),j.complete())},q=>j.error(q)).then(null,O.h)})}(_);if((0,i.D)(_))return xt(_);if((0,f.T)(_))return function A(_){return new x.y(j=>{for(const q of _)if(j.next(q),j.closed)return;j.complete()})}(_);if((0,t.L)(_))return function tt(_){return xt((0,t.Q)(_))}(_)}throw(0,R.z)(_)}function xt(_){return new x.y(j=>{(function ct(_,j){var q,ht,vt,gt;return(0,o.mG)(this,void 0,void 0,function*(){try{for(q=(0,o.KL)(_);!(ht=yield q.next()).done;)if(j.next(ht.value),j.closed)return}catch(zt){vt={error:zt}}finally{try{ht&&!ht.done&&(gt=q.return)&&(yield gt.call(q))}finally{if(vt)throw vt.error}}j.complete()})})(_,j).catch(q=>j.error(q))})}},3019:(Je,Rt,c)=>{"use strict";c.d(Rt,{T:()=>i});var o=c(7537),e=c(4829),g=c(6232),x=c(9940),l=c(7715);function i(...R){const f=(0,x.yG)(R),t=(0,x._6)(R,1/0),y=R;return y.length?1===y.length?(0,e.Xf)(y[0]):(0,o.J)(t)((0,l.D)(y,f)):g.E}},2096:(Je,Rt,c)=>{"use strict";c.d(Rt,{of:()=>g});var o=c(9940),e=c(7715);function g(...x){const l=(0,o.yG)(x);return(0,e.D)(x,l)}},8504:(Je,Rt,c)=>{"use strict";c.d(Rt,{_:()=>g});var o=c(5592),e=c(4674);function g(x,l){const i=(0,e.m)(x)?x:()=>x,R=f=>f.error(i());return new o.y(l?f=>l.schedule(R,0,f):R)}},4825:(Je,Rt,c)=>{"use strict";c.d(Rt,{H:()=>l});var o=c(5592),e=c(6321),g=c(671);function l(i=0,R,f=e.P){let t=-1;return null!=R&&((0,g.K)(R)?f=R:t=R),new o.y(y=>{let O=function x(i){return i instanceof Date&&!isNaN(i)}(i)?+i-f.now():i;O<0&&(O=0);let G=0;return f.schedule(function(){y.closed||(y.next(G++),0<=t?this.schedule(void 0,t):y.complete())},O)})}},8251:(Je,Rt,c)=>{"use strict";c.d(Rt,{x:()=>e});var o=c(305);function e(x,l,i,R,f){return new g(x,l,i,R,f)}class g extends o.Lv{constructor(l,i,R,f,t,y){super(l),this.onFinalize=t,this.shouldUnsubscribe=y,this._next=i?function(O){try{i(O)}catch(G){l.error(G)}}:super._next,this._error=f?function(O){try{f(O)}catch(G){l.error(G)}finally{this.unsubscribe()}}:super._error,this._complete=R?function(){try{R()}catch(O){l.error(O)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var l;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:i}=this;super.unsubscribe(),!i&&(null===(l=this.onFinalize)||void 0===l||l.call(this))}}}},9028:(Je,Rt,c)=>{"use strict";c.d(Rt,{e:()=>R});var o=c(6321),e=c(9360),g=c(4829),x=c(8251),i=c(4825);function R(f,t=o.z){return function l(f){return(0,e.e)((t,y)=>{let O=!1,G=null,U=null,lt=!1;const ut=()=>{if(U?.unsubscribe(),U=null,O){O=!1;const A=G;G=null,y.next(A)}lt&&y.complete()},Ht=()=>{U=null,lt&&y.complete()};t.subscribe((0,x.x)(y,A=>{O=!0,G=A,U||(0,g.Xf)(f(A)).subscribe(U=(0,x.x)(y,ut,Ht))},()=>{lt=!0,(!O||!U||U.closed)&&y.complete()}))})}(()=>(0,i.H)(f,t))}},6306:(Je,Rt,c)=>{"use strict";c.d(Rt,{K:()=>x});var o=c(4829),e=c(8251),g=c(9360);function x(l){return(0,g.e)((i,R)=>{let y,f=null,t=!1;f=i.subscribe((0,e.x)(R,void 0,void 0,O=>{y=(0,o.Xf)(l(O,x(l)(i))),f?(f.unsubscribe(),f=null,y.subscribe(R)):t=!0})),t&&(f.unsubscribe(),f=null,y.subscribe(R))})}},2444:(Je,Rt,c)=>{"use strict";c.d(Rt,{V:()=>t});var o=c(2572),e=c(9360);const{isArray:g}=Array;function x(y){return 1===y.length&&g(y[0])?y[0]:y}var l=c(7400),i=c(8407),R=c(9940);function f(...y){const O=(0,R.jO)(y);return O?(0,i.z)(f(...y),(0,l.Z)(O)):(0,e.e)((G,U)=>{(0,o.l)([G,...x(y)])(U)})}function t(...y){return f(...y)}},6328:(Je,Rt,c)=>{"use strict";c.d(Rt,{b:()=>g});var o=c(9769),e=c(4674);function g(x,l){return(0,e.m)(l)?(0,o.z)(x,l,1):(0,o.z)(x,1)}},3620:(Je,Rt,c)=>{"use strict";c.d(Rt,{b:()=>x});var o=c(6321),e=c(9360),g=c(8251);function x(l,i=o.z){return(0,e.e)((R,f)=>{let t=null,y=null,O=null;const G=()=>{if(t){t.unsubscribe(),t=null;const lt=y;y=null,f.next(lt)}};function U(){const lt=O+l,ut=i.now();if(ut<lt)return t=this.schedule(void 0,lt-ut),void f.add(t);G()}R.subscribe((0,g.x)(f,lt=>{y=lt,O=i.now(),t||(t=i.schedule(U,l),f.add(t))},()=>{G(),f.complete()},void 0,()=>{y=t=null}))})}},3572:(Je,Rt,c)=>{"use strict";c.d(Rt,{d:()=>g});var o=c(9360),e=c(8251);function g(x){return(0,o.e)((l,i)=>{let R=!1;l.subscribe((0,e.x)(i,f=>{R=!0,i.next(f)},()=>{R||i.next(x),i.complete()}))})}},5177:(Je,Rt,c)=>{"use strict";c.d(Rt,{g:()=>U});var o=c(6321),e=c(5211),g=c(8180),x=c(9360),l=c(8251),i=c(2420),f=c(975),t=c(9769),y=c(4829);function O(lt,ut){return ut?Ht=>(0,e.z)(ut.pipe((0,g.q)(1),function R(){return(0,x.e)((lt,ut)=>{lt.subscribe((0,l.x)(ut,i.Z))})}()),Ht.pipe(O(lt))):(0,t.z)((Ht,A)=>(0,y.Xf)(lt(Ht,A)).pipe((0,g.q)(1),(0,f.h)(Ht)))}var G=c(4825);function U(lt,ut=o.z){const Ht=(0,G.H)(lt,ut);return O(()=>Ht)}},3997:(Je,Rt,c)=>{"use strict";c.d(Rt,{x:()=>x});var o=c(2737),e=c(9360),g=c(8251);function x(i,R=o.y){return i=i??l,(0,e.e)((f,t)=>{let y,O=!0;f.subscribe((0,g.x)(t,G=>{const U=R(G);(O||!i(y,U))&&(O=!1,y=U,t.next(G))}))})}function l(i,R){return i===R}},2181:(Je,Rt,c)=>{"use strict";c.d(Rt,{h:()=>g});var o=c(9360),e=c(8251);function g(x,l){return(0,o.e)((i,R)=>{let f=0;i.subscribe((0,e.x)(R,t=>x.call(l,t,f++)&&R.next(t)))})}},4716:(Je,Rt,c)=>{"use strict";c.d(Rt,{x:()=>e});var o=c(9360);function e(g){return(0,o.e)((x,l)=>{try{x.subscribe(l)}finally{l.add(g)}})}},1374:(Je,Rt,c)=>{"use strict";c.d(Rt,{P:()=>R});var o=c(6973),e=c(2181),g=c(8180),x=c(3572),l=c(3026),i=c(2737);function R(f,t){const y=arguments.length>=2;return O=>O.pipe(f?(0,e.h)((G,U)=>f(G,U,O)):i.y,(0,g.q)(1),y?(0,x.d)(t):(0,l.T)(()=>new o.K))}},7398:(Je,Rt,c)=>{"use strict";c.d(Rt,{U:()=>g});var o=c(9360),e=c(8251);function g(x,l){return(0,o.e)((i,R)=>{let f=0;i.subscribe((0,e.x)(R,t=>{R.next(x.call(l,t,f++))}))})}},975:(Je,Rt,c)=>{"use strict";c.d(Rt,{h:()=>e});var o=c(7398);function e(g){return(0,o.U)(()=>g)}},7537:(Je,Rt,c)=>{"use strict";c.d(Rt,{J:()=>g});var o=c(9769),e=c(2737);function g(x=1/0){return(0,o.z)(e.y,x)}},564:(Je,Rt,c)=>{"use strict";c.d(Rt,{p:()=>x});var o=c(4829),e=c(7103),g=c(8251);function x(l,i,R,f,t,y,O,G){const U=[];let lt=0,ut=0,Ht=!1;const A=()=>{Ht&&!U.length&&!lt&&i.complete()},xt=ct=>lt<f?tt(ct):U.push(ct),tt=ct=>{y&&i.next(ct),lt++;let _=!1;(0,o.Xf)(R(ct,ut++)).subscribe((0,g.x)(i,j=>{t?.(j),y?xt(j):i.next(j)},()=>{_=!0},void 0,()=>{if(_)try{for(lt--;U.length&&lt<f;){const j=U.shift();O?(0,e.f)(i,O,()=>tt(j)):tt(j)}A()}catch(j){i.error(j)}}))};return l.subscribe((0,g.x)(i,xt,()=>{Ht=!0,A()})),()=>{G?.()}}},9769:(Je,Rt,c)=>{"use strict";c.d(Rt,{z:()=>i});var o=c(7398),e=c(4829),g=c(9360),x=c(564),l=c(4674);function i(R,f,t=1/0){return(0,l.m)(f)?i((y,O)=>(0,o.U)((G,U)=>f(y,G,O,U))((0,e.Xf)(R(y,O))),t):("number"==typeof f&&(t=f),(0,g.e)((y,O)=>(0,x.p)(y,O,R,t)))}},6196:(Je,Rt,c)=>{"use strict";c.d(Rt,{x:()=>g});var o=c(9360),e=c(8251);function g(){return(0,o.e)((x,l)=>{let i=null;x._refCount++;const R=(0,e.x)(l,void 0,void 0,void 0,()=>{if(!x||x._refCount<=0||0<--x._refCount)return void(i=null);const f=x._connection,t=i;i=null,f&&(!t||f===t)&&f.unsubscribe(),l.unsubscribe()});x.subscribe(R),R.closed||(i=x.connect())})}},8075:(Je,Rt,c)=>{"use strict";c.d(Rt,{X:()=>i});var o=c(9360),e=c(8251),g=c(2737),x=c(4825),l=c(4829);function i(R=1/0){let f;f=R&&"object"==typeof R?R:{count:R};const{count:t=1/0,delay:y,resetOnSuccess:O=!1}=f;return t<=0?g.y:(0,o.e)((G,U)=>{let ut,lt=0;const Ht=()=>{let A=!1;ut=G.subscribe((0,e.x)(U,xt=>{O&&(lt=0),U.next(xt)},void 0,xt=>{if(lt++<t){const tt=()=>{ut?(ut.unsubscribe(),ut=null,Ht()):A=!0};if(null!=y){const ct="number"==typeof y?(0,x.H)(y):(0,l.Xf)(y(xt,lt)),_=(0,e.x)(U,()=>{_.unsubscribe(),tt()},()=>{U.complete()});ct.subscribe(_)}else tt()}else U.error(xt)})),A&&(ut.unsubscribe(),ut=null,Ht())};Ht()})}},3020:(Je,Rt,c)=>{"use strict";c.d(Rt,{B:()=>l});var o=c(4829),e=c(8645),g=c(305),x=c(9360);function l(R={}){const{connector:f=(()=>new e.x),resetOnError:t=!0,resetOnComplete:y=!0,resetOnRefCountZero:O=!0}=R;return G=>{let U,lt,ut,Ht=0,A=!1,xt=!1;const tt=()=>{lt?.unsubscribe(),lt=void 0},ct=()=>{tt(),U=ut=void 0,A=xt=!1},_=()=>{const j=U;ct(),j?.unsubscribe()};return(0,x.e)((j,q)=>{Ht++,!xt&&!A&&tt();const ht=ut=ut??f();q.add(()=>{Ht--,0===Ht&&!xt&&!A&&(lt=i(_,O))}),ht.subscribe(q),!U&&Ht>0&&(U=new g.Hp({next:vt=>ht.next(vt),error:vt=>{xt=!0,tt(),lt=i(ct,t,vt),ht.error(vt)},complete:()=>{A=!0,tt(),lt=i(ct,y),ht.complete()}}),(0,o.Xf)(j).subscribe(U))})(G)}}function i(R,f,...t){if(!0===f)return void R();if(!1===f)return;const y=new g.Hp({next:()=>{y.unsubscribe(),R()}});return(0,o.Xf)(f(...t)).subscribe(y)}},836:(Je,Rt,c)=>{"use strict";c.d(Rt,{T:()=>e});var o=c(2181);function e(g){return(0,o.h)((x,l)=>g<=l)}},7921:(Je,Rt,c)=>{"use strict";c.d(Rt,{O:()=>x});var o=c(5211),e=c(9940),g=c(9360);function x(...l){const i=(0,e.yG)(l);return(0,g.e)((R,f)=>{(i?(0,o.z)(l,R,i):(0,o.z)(l,R)).subscribe(f)})}},4664:(Je,Rt,c)=>{"use strict";c.d(Rt,{w:()=>x});var o=c(4829),e=c(9360),g=c(8251);function x(l,i){return(0,e.e)((R,f)=>{let t=null,y=0,O=!1;const G=()=>O&&!t&&f.complete();R.subscribe((0,g.x)(f,U=>{t?.unsubscribe();let lt=0;const ut=y++;(0,o.Xf)(l(U,ut)).subscribe(t=(0,g.x)(f,Ht=>f.next(i?i(U,Ht,ut,lt++):Ht),()=>{t=null,G()}))},()=>{O=!0,G()}))})}},8180:(Je,Rt,c)=>{"use strict";c.d(Rt,{q:()=>x});var o=c(6232),e=c(9360),g=c(8251);function x(l){return l<=0?()=>o.E:(0,e.e)((i,R)=>{let f=0;i.subscribe((0,g.x)(R,t=>{++f<=l&&(R.next(t),l<=f&&R.complete())}))})}},9773:(Je,Rt,c)=>{"use strict";c.d(Rt,{R:()=>l});var o=c(9360),e=c(8251),g=c(4829),x=c(2420);function l(i){return(0,o.e)((R,f)=>{(0,g.Xf)(i).subscribe((0,e.x)(f,()=>f.complete(),x.Z)),!f.closed&&R.subscribe(f)})}},9397:(Je,Rt,c)=>{"use strict";c.d(Rt,{b:()=>l});var o=c(4674),e=c(9360),g=c(8251),x=c(2737);function l(i,R,f){const t=(0,o.m)(i)||R||f?{next:i,error:R,complete:f}:i;return t?(0,e.e)((y,O)=>{var G;null===(G=t.subscribe)||void 0===G||G.call(t);let U=!0;y.subscribe((0,g.x)(O,lt=>{var ut;null===(ut=t.next)||void 0===ut||ut.call(t,lt),O.next(lt)},()=>{var lt;U=!1,null===(lt=t.complete)||void 0===lt||lt.call(t),O.complete()},lt=>{var ut;U=!1,null===(ut=t.error)||void 0===ut||ut.call(t,lt),O.error(lt)},()=>{var lt,ut;U&&(null===(lt=t.unsubscribe)||void 0===lt||lt.call(t)),null===(ut=t.finalize)||void 0===ut||ut.call(t)}))}):x.y}},3026:(Je,Rt,c)=>{"use strict";c.d(Rt,{T:()=>x});var o=c(6973),e=c(9360),g=c(8251);function x(i=l){return(0,e.e)((R,f)=>{let t=!1;R.subscribe((0,g.x)(f,y=>{t=!0,f.next(y)},()=>t?f.complete():f.error(i())))})}function l(){return new o.K}},1954:(Je,Rt,c)=>{"use strict";c.d(Rt,{o:()=>l});var o=c(7394);class e extends o.w0{constructor(R,f){super()}schedule(R,f=0){return this}}const g={setInterval(i,R,...f){const{delegate:t}=g;return t?.setInterval?t.setInterval(i,R,...f):setInterval(i,R,...f)},clearInterval(i){const{delegate:R}=g;return(R?.clearInterval||clearInterval)(i)},delegate:void 0};var x=c(9039);class l extends e{constructor(R,f){super(R,f),this.scheduler=R,this.work=f,this.pending=!1}schedule(R,f=0){var t;if(this.closed)return this;this.state=R;const y=this.id,O=this.scheduler;return null!=y&&(this.id=this.recycleAsyncId(O,y,f)),this.pending=!0,this.delay=f,this.id=null!==(t=this.id)&&void 0!==t?t:this.requestAsyncId(O,this.id,f),this}requestAsyncId(R,f,t=0){return g.setInterval(R.flush.bind(R,this),t)}recycleAsyncId(R,f,t=0){if(null!=t&&this.delay===t&&!1===this.pending)return f;null!=f&&g.clearInterval(f)}execute(R,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const t=this._execute(R,f);if(t)return t;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(R,f){let y,t=!1;try{this.work(R)}catch(O){t=!0,y=O||new Error("Scheduled action threw falsy error")}if(t)return this.unsubscribe(),y}unsubscribe(){if(!this.closed){const{id:R,scheduler:f}=this,{actions:t}=f;this.work=this.state=this.scheduler=null,this.pending=!1,(0,x.P)(t,this),null!=R&&(this.id=this.recycleAsyncId(f,R,null)),this.delay=null,super.unsubscribe()}}}},2631:(Je,Rt,c)=>{"use strict";c.d(Rt,{v:()=>g});var o=c(4552);class e{constructor(l,i=e.now){this.schedulerActionCtor=l,this.now=i}schedule(l,i=0,R){return new this.schedulerActionCtor(this,l).schedule(R,i)}}e.now=o.l.now;class g extends e{constructor(l,i=e.now){super(l,i),this.actions=[],this._active=!1}flush(l){const{actions:i}=this;if(this._active)return void i.push(l);let R;this._active=!0;do{if(R=l.execute(l.state,l.delay))break}while(l=i.shift());if(this._active=!1,R){for(;l=i.shift();)l.unsubscribe();throw R}}}},927:(Je,Rt,c)=>{"use strict";c.d(Rt,{Z:()=>R});var o=c(1954),e=c(7394);const g={schedule(t){let y=requestAnimationFrame,O=cancelAnimationFrame;const{delegate:G}=g;G&&(y=G.requestAnimationFrame,O=G.cancelAnimationFrame);const U=y(lt=>{O=void 0,t(lt)});return new e.w0(()=>O?.(U))},requestAnimationFrame(...t){const{delegate:y}=g;return(y?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){const{delegate:y}=g;return(y?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var l=c(2631);const R=new class i extends l.v{flush(y){this._active=!0;const O=this._scheduled;this._scheduled=void 0;const{actions:G}=this;let U;y=y||G.shift();do{if(U=y.execute(y.state,y.delay))break}while((y=G[0])&&y.id===O&&G.shift());if(this._active=!1,U){for(;(y=G[0])&&y.id===O&&G.shift();)y.unsubscribe();throw U}}}(class x extends o.o{constructor(y,O){super(y,O),this.scheduler=y,this.work=O}requestAsyncId(y,O,G=0){return null!==G&&G>0?super.requestAsyncId(y,O,G):(y.actions.push(this),y._scheduled||(y._scheduled=g.requestAnimationFrame(()=>y.flush(void 0))))}recycleAsyncId(y,O,G=0){var U;if(null!=G?G>0:this.delay>0)return super.recycleAsyncId(y,O,G);const{actions:lt}=y;null!=O&&(null===(U=lt[lt.length-1])||void 0===U?void 0:U.id)!==O&&(g.cancelAnimationFrame(O),y._scheduled=void 0)}})},6410:(Je,Rt,c)=>{"use strict";c.d(Rt,{E:()=>lt});var o=c(1954);let g,e=1;const x={};function l(Ht){return Ht in x&&(delete x[Ht],!0)}const i={setImmediate(Ht){const A=e++;return x[A]=!0,g||(g=Promise.resolve()),g.then(()=>l(A)&&Ht()),A},clearImmediate(Ht){l(Ht)}},{setImmediate:f,clearImmediate:t}=i,y={setImmediate(...Ht){const{delegate:A}=y;return(A?.setImmediate||f)(...Ht)},clearImmediate(Ht){const{delegate:A}=y;return(A?.clearImmediate||t)(Ht)},delegate:void 0};var G=c(2631);const lt=new class U extends G.v{flush(A){this._active=!0;const xt=this._scheduled;this._scheduled=void 0;const{actions:tt}=this;let ct;A=A||tt.shift();do{if(ct=A.execute(A.state,A.delay))break}while((A=tt[0])&&A.id===xt&&tt.shift());if(this._active=!1,ct){for(;(A=tt[0])&&A.id===xt&&tt.shift();)A.unsubscribe();throw ct}}}(class O extends o.o{constructor(A,xt){super(A,xt),this.scheduler=A,this.work=xt}requestAsyncId(A,xt,tt=0){return null!==tt&&tt>0?super.requestAsyncId(A,xt,tt):(A.actions.push(this),A._scheduled||(A._scheduled=y.setImmediate(A.flush.bind(A,void 0))))}recycleAsyncId(A,xt,tt=0){var ct;if(null!=tt?tt>0:this.delay>0)return super.recycleAsyncId(A,xt,tt);const{actions:_}=A;null!=xt&&(null===(ct=_[_.length-1])||void 0===ct?void 0:ct.id)!==xt&&(y.clearImmediate(xt),A._scheduled===xt&&(A._scheduled=void 0))}})},6321:(Je,Rt,c)=>{"use strict";c.d(Rt,{P:()=>x,z:()=>g});var o=c(1954);const g=new(c(2631).v)(o.o),x=g},4552:(Je,Rt,c)=>{"use strict";c.d(Rt,{l:()=>o});const o={now:()=>(o.delegate||Date).now(),delegate:void 0}},7599:(Je,Rt,c)=>{"use strict";c.d(Rt,{z:()=>o});const o={setTimeout(e,g,...x){const{delegate:l}=o;return l?.setTimeout?l.setTimeout(e,g,...x):setTimeout(e,g,...x)},clearTimeout(e){const{delegate:g}=o;return(g?.clearTimeout||clearTimeout)(e)},delegate:void 0}},4971:(Je,Rt,c)=>{"use strict";c.d(Rt,{h:()=>e});const e=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Je,Rt,c)=>{"use strict";c.d(Rt,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(Je,Rt,c)=>{"use strict";c.d(Rt,{K:()=>e});const e=(0,c(2306).d)(g=>function(){g(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(Je,Rt,c)=>{"use strict";c.d(Rt,{_6:()=>i,jO:()=>x,yG:()=>l});var o=c(4674),e=c(671);function g(R){return R[R.length-1]}function x(R){return(0,o.m)(g(R))?R.pop():void 0}function l(R){return(0,e.K)(g(R))?R.pop():void 0}function i(R,f){return"number"==typeof g(R)?R.pop():f}},7453:(Je,Rt,c)=>{"use strict";c.d(Rt,{D:()=>l});const{isArray:o}=Array,{getPrototypeOf:e,prototype:g,keys:x}=Object;function l(R){if(1===R.length){const f=R[0];if(o(f))return{args:f,keys:null};if(function i(R){return R&&"object"==typeof R&&e(R)===g}(f)){const t=x(f);return{args:t.map(y=>f[y]),keys:t}}}return{args:R,keys:null}}},9039:(Je,Rt,c)=>{"use strict";function o(e,g){if(e){const x=e.indexOf(g);0<=x&&e.splice(x,1)}}c.d(Rt,{P:()=>o})},2306:(Je,Rt,c)=>{"use strict";function o(e){const x=e(l=>{Error.call(l),l.stack=(new Error).stack});return x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x}c.d(Rt,{d:()=>o})},2714:(Je,Rt,c)=>{"use strict";function o(e,g){return e.reduce((x,l,i)=>(x[l]=g[i],x),{})}c.d(Rt,{n:()=>o})},1441:(Je,Rt,c)=>{"use strict";c.d(Rt,{O:()=>x,x:()=>g});var o=c(2653);let e=null;function g(l){if(o.config.useDeprecatedSynchronousErrorHandling){const i=!e;if(i&&(e={errorThrown:!1,error:null}),l(),i){const{errorThrown:R,error:f}=e;if(e=null,R)throw f}}else l()}function x(l){o.config.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=l)}},7103:(Je,Rt,c)=>{"use strict";function o(e,g,x,l=0,i=!1){const R=g.schedule(function(){x(),i?e.add(this.schedule(null,l)):this.unsubscribe()},l);if(e.add(R),!i)return R}c.d(Rt,{f:()=>o})},2737:(Je,Rt,c)=>{"use strict";function o(e){return e}c.d(Rt,{y:()=>o})},4266:(Je,Rt,c)=>{"use strict";c.d(Rt,{z:()=>o});const o=e=>e&&"number"==typeof e.length&&"function"!=typeof e},5726:(Je,Rt,c)=>{"use strict";c.d(Rt,{D:()=>e});var o=c(4674);function e(g){return Symbol.asyncIterator&&(0,o.m)(g?.[Symbol.asyncIterator])}},4674:(Je,Rt,c)=>{"use strict";function o(e){return"function"==typeof e}c.d(Rt,{m:()=>o})},8382:(Je,Rt,c)=>{"use strict";c.d(Rt,{c:()=>g});var o=c(4850),e=c(4674);function g(x){return(0,e.m)(x[o.L])}},3664:(Je,Rt,c)=>{"use strict";c.d(Rt,{T:()=>g});var o=c(4971),e=c(4674);function g(x){return(0,e.m)(x?.[o.h])}},2664:(Je,Rt,c)=>{"use strict";c.d(Rt,{b:()=>g});var o=c(5592),e=c(4674);function g(x){return!!x&&(x instanceof o.y||(0,e.m)(x.lift)&&(0,e.m)(x.subscribe))}},4026:(Je,Rt,c)=>{"use strict";c.d(Rt,{t:()=>e});var o=c(4674);function e(g){return(0,o.m)(g?.then)}},541:(Je,Rt,c)=>{"use strict";c.d(Rt,{L:()=>x,Q:()=>g});var o=c(655),e=c(4674);function g(l){return(0,o.FC)(this,arguments,function*(){const R=l.getReader();try{for(;;){const{value:f,done:t}=yield(0,o.qq)(R.read());if(t)return yield(0,o.qq)(void 0);yield yield(0,o.qq)(f)}}finally{R.releaseLock()}})}function x(l){return(0,e.m)(l?.getReader)}},671:(Je,Rt,c)=>{"use strict";c.d(Rt,{K:()=>e});var o=c(4674);function e(g){return g&&(0,o.m)(g.schedule)}},9360:(Je,Rt,c)=>{"use strict";c.d(Rt,{A:()=>e,e:()=>g});var o=c(4674);function e(x){return(0,o.m)(x?.lift)}function g(x){return l=>{if(e(l))return l.lift(function(i){try{return x(i,this)}catch(R){this.error(R)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Je,Rt,c)=>{"use strict";c.d(Rt,{Z:()=>x});var o=c(7398);const{isArray:e}=Array;function x(l){return(0,o.U)(i=>function g(l,i){return e(i)?l(...i):l(i)}(l,i))}},2420:(Je,Rt,c)=>{"use strict";function o(){}c.d(Rt,{Z:()=>o})},8407:(Je,Rt,c)=>{"use strict";c.d(Rt,{U:()=>g,z:()=>e});var o=c(2737);function e(...x){return g(x)}function g(x){return 0===x.length?o.y:1===x.length?x[0]:function(i){return x.reduce((R,f)=>f(R),i)}}},3894:(Je,Rt,c)=>{"use strict";c.d(Rt,{h:()=>g});var o=c(2653),e=c(7599);function g(x){e.z.setTimeout(()=>{const{onUnhandledError:l}=o.config;if(!l)throw x;l(x)})}},9853:(Je,Rt,c)=>{"use strict";function o(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}c.d(Rt,{z:()=>o})},4004:(Je,Rt,c)=>{"use strict";c.d(Rt,{Z:()=>O});const e={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let g;const x=new Uint8Array(16);function l(){if(!g&&(g=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!g))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return g(x)}const i=[];for(let G=0;G<256;++G)i.push((G+256).toString(16).slice(1));const O=function y(G,U,lt){if(e.randomUUID&&!U&&!G)return e.randomUUID();const ut=(G=G||{}).random||(G.rng||l)();if(ut[6]=15&ut[6]|64,ut[8]=63&ut[8]|128,U){lt=lt||0;for(let Ht=0;Ht<16;++Ht)U[lt+Ht]=ut[Ht];return U}return function R(G,U=0){return i[G[U+0]]+i[G[U+1]]+i[G[U+2]]+i[G[U+3]]+"-"+i[G[U+4]]+i[G[U+5]]+"-"+i[G[U+6]]+i[G[U+7]]+"-"+i[G[U+8]]+i[G[U+9]]+"-"+i[G[U+10]]+i[G[U+11]]+i[G[U+12]]+i[G[U+13]]+i[G[U+14]]+i[G[U+15]]}(ut)}},655:(Je,Rt,c)=>{"use strict";function l(Ct,H,J,z){var V,F=arguments.length,rt=F<3?H:null===z?z=Object.getOwnPropertyDescriptor(H,J):z;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)rt=Reflect.decorate(Ct,H,J,z);else for(var Pt=Ct.length-1;Pt>=0;Pt--)(V=Ct[Pt])&&(rt=(F<3?V(rt):F>3?V(H,J,rt):V(H,J))||rt);return F>3&&rt&&Object.defineProperty(H,J,rt),rt}function R(Ct,H){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Ct,H)}function f(Ct,H,J,z){return new(J||(J=Promise))(function(rt,V){function Pt(Jt){try{Lt(z.next(Jt))}catch(Tt){V(Tt)}}function $t(Jt){try{Lt(z.throw(Jt))}catch(Tt){V(Tt)}}function Lt(Jt){Jt.done?rt(Jt.value):function F(rt){return rt instanceof J?rt:new J(function(V){V(rt)})}(Jt.value).then(Pt,$t)}Lt((z=z.apply(Ct,H||[])).next())})}function A(Ct){return this instanceof A?(this.v=Ct,this):new A(Ct)}function xt(Ct,H,J){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F,z=J.apply(Ct,H||[]),rt=[];return F={},V("next"),V("throw"),V("return"),F[Symbol.asyncIterator]=function(){return this},F;function V($){z[$]&&(F[$]=function(pt){return new Promise(function(Dt,St){rt.push([$,pt,Dt,St])>1||Pt($,pt)})})}function Pt($,pt){try{!function $t($){$.value instanceof A?Promise.resolve($.value.v).then(Lt,Jt):Tt(rt[0][2],$)}(z[$](pt))}catch(Dt){Tt(rt[0][3],Dt)}}function Lt($){Pt("next",$)}function Jt($){Pt("throw",$)}function Tt($,pt){$(pt),rt.shift(),rt.length&&Pt(rt[0][0],rt[0][1])}}function ct(Ct){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,H=Ct[Symbol.asyncIterator];return H?H.call(Ct):(Ct=function G(Ct){var H="function"==typeof Symbol&&Symbol.iterator,J=H&&Ct[H],z=0;if(J)return J.call(Ct);if(Ct&&"number"==typeof Ct.length)return{next:function(){return Ct&&z>=Ct.length&&(Ct=void 0),{value:Ct&&Ct[z++],done:!Ct}}};throw new TypeError(H?"Object is not iterable.":"Symbol.iterator is not defined.")}(Ct),J={},z("next"),z("throw"),z("return"),J[Symbol.asyncIterator]=function(){return this},J);function z(rt){J[rt]=Ct[rt]&&function(V){return new Promise(function(Pt,$t){!function F(rt,V,Pt,$t){Promise.resolve($t).then(function(Lt){rt({value:Lt,done:Pt})},V)}(Pt,$t,(V=Ct[rt](V)).done,V.value)})}}}c.d(Rt,{FC:()=>xt,KL:()=>ct,gn:()=>l,mG:()=>f,qq:()=>A,w6:()=>R})},9671:(Je,Rt,c)=>{"use strict";function o(g,x,l,i,R,f,t){try{var y=g[f](t),O=y.value}catch(G){return void l(G)}y.done?x(O):Promise.resolve(O).then(i,R)}function e(g){return function(){var x=this,l=arguments;return new Promise(function(i,R){var f=g.apply(x,l);function t(O){o(f,i,R,t,y,"next",O)}function y(O){o(f,i,R,t,y,"throw",O)}t(void 0)})}}c.d(Rt,{Z:()=>e})},6825:(Je,Rt,c)=>{"use strict";c.d(Rt,{F4:()=>y,IO:()=>ut,LC:()=>e,SB:()=>t,X$:()=>x,ZE:()=>xt,ZN:()=>A,_j:()=>o,eR:()=>O,jt:()=>l,k1:()=>tt,l3:()=>g,oB:()=>f,pV:()=>U,ru:()=>i,vP:()=>R});class o{}class e{}const g="*";function x(ct,_){return{type:7,name:ct,definitions:_,options:{}}}function l(ct,_=null){return{type:4,styles:_,timings:ct}}function i(ct,_=null){return{type:3,steps:ct,options:_}}function R(ct,_=null){return{type:2,steps:ct,options:_}}function f(ct){return{type:6,styles:ct,offset:null}}function t(ct,_,j){return{type:0,name:ct,styles:_,options:j}}function y(ct){return{type:5,steps:ct}}function O(ct,_,j=null){return{type:1,expr:ct,animation:_,options:j}}function U(ct=null){return{type:9,options:ct}}function ut(ct,_,j=null){return{type:11,selector:ct,animation:_,options:j}}class A{constructor(_=0,j=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=_+j}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}onStart(_){this._originalOnStartFns.push(_),this._onStartFns.push(_)}onDone(_){this._originalOnDoneFns.push(_),this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(_=>_()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(_=>_()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(_){this._position=this.totalTime?_*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(_){const j="start"==_?this._onStartFns:this._onDoneFns;j.forEach(q=>q()),j.length=0}}class xt{constructor(_){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=_;let j=0,q=0,ht=0;const vt=this.players.length;0==vt?queueMicrotask(()=>this._onFinish()):this.players.forEach(gt=>{gt.onDone(()=>{++j==vt&&this._onFinish()}),gt.onDestroy(()=>{++q==vt&&this._onDestroy()}),gt.onStart(()=>{++ht==vt&&this._onStart()})}),this.totalTime=this.players.reduce((gt,zt)=>Math.max(gt,zt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(_=>_()),this._onDoneFns=[])}init(){this.players.forEach(_=>_.init())}onStart(_){this._onStartFns.push(_)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(_=>_()),this._onStartFns=[])}onDone(_){this._onDoneFns.push(_)}onDestroy(_){this._onDestroyFns.push(_)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(_=>_.play())}pause(){this.players.forEach(_=>_.pause())}restart(){this.players.forEach(_=>_.restart())}finish(){this._onFinish(),this.players.forEach(_=>_.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(_=>_.destroy()),this._onDestroyFns.forEach(_=>_()),this._onDestroyFns=[])}reset(){this.players.forEach(_=>_.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(_){const j=_*this.totalTime;this.players.forEach(q=>{const ht=q.totalTime?Math.min(1,j/q.totalTime):1;q.setPosition(ht)})}getPosition(){const _=this.players.reduce((j,q)=>null===j||q.totalTime>j.totalTime?q:j,null);return null!=_?_.getPosition():0}beforeDestroy(){this.players.forEach(_=>{_.beforeDestroy&&_.beforeDestroy()})}triggerCallback(_){const j="start"==_?this._onStartFns:this._onDoneFns;j.forEach(q=>q()),j.length=0}}const tt="!"},4300:(Je,Rt,c)=>{"use strict";c.d(Rt,{$s:()=>Ct,Em:()=>rt,Kd:()=>ue,X6:()=>ft,ic:()=>Pt,kH:()=>Me,mK:()=>ie,qV:()=>st,qm:()=>Xt,rt:()=>on,tE:()=>Te,yG:()=>Gt});var o=c(6814),e=c(5879),g=c(2831),x=c(8645),l=c(7394),i=c(5619),R=c(2096),f=c(6028),t=c(9397),y=c(3620),O=c(2181),G=c(7398),U=c(8180),lt=c(836),ut=c(3997),Ht=c(9773),A=c(2495),xt=c(7131),tt=c(1088);function q(oe,$e){return(oe.getAttribute($e)||"").match(/\S+/g)||[]}const vt="cdk-describedby-message",gt="cdk-describedby-host";let zt=0,Ct=(()=>{class oe{constructor(te,Se){this._platform=Se,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+zt++,this._document=te,this._id=(0,e.f3M)(e.AFp)+"-"+zt++}describe(te,Se,Ke){if(!this._canBeDescribed(te,Se))return;const Oe=H(Se,Ke);"string"!=typeof Se?(J(Se,this._id),this._messageRegistry.set(Oe,{messageElement:Se,referenceCount:0})):this._messageRegistry.has(Oe)||this._createMessageElement(Se,Ke),this._isElementDescribedByMessage(te,Oe)||this._addMessageReference(te,Oe)}removeDescription(te,Se,Ke){if(!Se||!this._isElementNode(te))return;const Oe=H(Se,Ke);if(this._isElementDescribedByMessage(te,Oe)&&this._removeMessageReference(te,Oe),"string"==typeof Se){const Qe=this._messageRegistry.get(Oe);Qe&&0===Qe.referenceCount&&this._deleteMessageElement(Oe)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const te=this._document.querySelectorAll(`[${gt}="${this._id}"]`);for(let Se=0;Se<te.length;Se++)this._removeCdkDescribedByReferenceIds(te[Se]),te[Se].removeAttribute(gt);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(te,Se){const Ke=this._document.createElement("div");J(Ke,this._id),Ke.textContent=te,Se&&Ke.setAttribute("role",Se),this._createMessagesContainer(),this._messagesContainer.appendChild(Ke),this._messageRegistry.set(H(te,Se),{messageElement:Ke,referenceCount:0})}_deleteMessageElement(te){this._messageRegistry.get(te)?.messageElement?.remove(),this._messageRegistry.delete(te)}_createMessagesContainer(){if(this._messagesContainer)return;const te="cdk-describedby-message-container",Se=this._document.querySelectorAll(`.${te}[platform="server"]`);for(let Oe=0;Oe<Se.length;Oe++)Se[Oe].remove();const Ke=this._document.createElement("div");Ke.style.visibility="hidden",Ke.classList.add(te),Ke.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&Ke.setAttribute("platform","server"),this._document.body.appendChild(Ke),this._messagesContainer=Ke}_removeCdkDescribedByReferenceIds(te){const Se=q(te,"aria-describedby").filter(Ke=>0!=Ke.indexOf(vt));te.setAttribute("aria-describedby",Se.join(" "))}_addMessageReference(te,Se){const Ke=this._messageRegistry.get(Se);(function _(oe,$e,te){const Se=q(oe,$e);Se.some(Ke=>Ke.trim()==te.trim())||(Se.push(te.trim()),oe.setAttribute($e,Se.join(" ")))})(te,"aria-describedby",Ke.messageElement.id),te.setAttribute(gt,this._id),Ke.referenceCount++}_removeMessageReference(te,Se){const Ke=this._messageRegistry.get(Se);Ke.referenceCount--,function j(oe,$e,te){const Ke=q(oe,$e).filter(Oe=>Oe!=te.trim());Ke.length?oe.setAttribute($e,Ke.join(" ")):oe.removeAttribute($e)}(te,"aria-describedby",Ke.messageElement.id),te.removeAttribute(gt)}_isElementDescribedByMessage(te,Se){const Ke=q(te,"aria-describedby"),Oe=this._messageRegistry.get(Se),Qe=Oe&&Oe.messageElement.id;return!!Qe&&-1!=Ke.indexOf(Qe)}_canBeDescribed(te,Se){if(!this._isElementNode(te))return!1;if(Se&&"object"==typeof Se)return!0;const Ke=null==Se?"":`${Se}`.trim(),Oe=te.getAttribute("aria-label");return!(!Ke||Oe&&Oe.trim()===Ke)}_isElementNode(te){return te.nodeType===this._document.ELEMENT_NODE}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(o.K0),e.LFG(g.t4))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();function H(oe,$e){return"string"==typeof oe?`${$e||""}/${oe}`:oe}function J(oe,$e){oe.id||(oe.id=`${vt}-${$e}-${zt++}`)}class z{constructor($e){this._items=$e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new x.x,this._typeaheadSubscription=l.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=te=>te.disabled,this._pressedLetters=[],this.tabOut=new x.x,this.change=new x.x,$e instanceof e.n_E&&(this._itemChangesSubscription=$e.changes.subscribe(te=>{if(this._activeItem){const Ke=te.toArray().indexOf(this._activeItem);Ke>-1&&Ke!==this._activeItemIndex&&(this._activeItemIndex=Ke)}}))}skipPredicate($e){return this._skipPredicateFn=$e,this}withWrap($e=!0){return this._wrap=$e,this}withVerticalOrientation($e=!0){return this._vertical=$e,this}withHorizontalOrientation($e){return this._horizontal=$e,this}withAllowedModifierKeys($e){return this._allowedModifierKeys=$e,this}withTypeAhead($e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,t.b)(te=>this._pressedLetters.push(te)),(0,y.b)($e),(0,O.h)(()=>this._pressedLetters.length>0),(0,G.U)(()=>this._pressedLetters.join(""))).subscribe(te=>{const Se=this._getItemsArray();for(let Ke=1;Ke<Se.length+1;Ke++){const Oe=(this._activeItemIndex+Ke)%Se.length,Qe=Se[Oe];if(!this._skipPredicateFn(Qe)&&0===Qe.getLabel().toUpperCase().trim().indexOf(te)){this.setActiveItem(Oe);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd($e=!0){return this._homeAndEnd=$e,this}withPageUpDown($e=!0,te=10){return this._pageUpAndDown={enabled:$e,delta:te},this}setActiveItem($e){const te=this._activeItem;this.updateActiveItem($e),this._activeItem!==te&&this.change.next(this._activeItemIndex)}onKeydown($e){const te=$e.keyCode,Ke=["altKey","ctrlKey","metaKey","shiftKey"].every(Oe=>!$e[Oe]||this._allowedModifierKeys.indexOf(Oe)>-1);switch(te){case f.Mf:return void this.tabOut.next();case f.JH:if(this._vertical&&Ke){this.setNextItemActive();break}return;case f.LH:if(this._vertical&&Ke){this.setPreviousItemActive();break}return;case f.SV:if(this._horizontal&&Ke){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.oh:if(this._horizontal&&Ke){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.Sd:if(this._homeAndEnd&&Ke){this.setFirstItemActive();break}return;case f.uR:if(this._homeAndEnd&&Ke){this.setLastItemActive();break}return;case f.Ku:if(this._pageUpAndDown.enabled&&Ke){const Oe=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(Oe>0?Oe:0,1);break}return;case f.VM:if(this._pageUpAndDown.enabled&&Ke){const Oe=this._activeItemIndex+this._pageUpAndDown.delta,Qe=this._getItemsArray().length;this._setActiveItemByIndex(Oe<Qe?Oe:Qe-1,-1);break}return;default:return void((Ke||(0,f.Vb)($e,"shiftKey"))&&($e.key&&1===$e.key.length?this._letterKeyStream.next($e.key.toLocaleUpperCase()):(te>=f.A&&te<=f.Z||te>=f.xE&&te<=f.aO)&&this._letterKeyStream.next(String.fromCharCode(te))))}this._pressedLetters=[],$e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem($e){const te=this._getItemsArray(),Se="number"==typeof $e?$e:te.indexOf($e);this._activeItem=te[Se]??null,this._activeItemIndex=Se}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta($e){this._wrap?this._setActiveInWrapMode($e):this._setActiveInDefaultMode($e)}_setActiveInWrapMode($e){const te=this._getItemsArray();for(let Se=1;Se<=te.length;Se++){const Ke=(this._activeItemIndex+$e*Se+te.length)%te.length;if(!this._skipPredicateFn(te[Ke]))return void this.setActiveItem(Ke)}}_setActiveInDefaultMode($e){this._setActiveItemByIndex(this._activeItemIndex+$e,$e)}_setActiveItemByIndex($e,te){const Se=this._getItemsArray();if(Se[$e]){for(;this._skipPredicateFn(Se[$e]);)if(!Se[$e+=te])return;this.setActiveItem($e)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class rt extends z{constructor(){super(...arguments),this._origin="program"}setFocusOrigin($e){return this._origin=$e,this}setActiveItem($e){super.setActiveItem($e),this.activeItem&&this.activeItem.focus(this._origin)}}let Pt=(()=>{class oe{constructor(te){this._platform=te}isDisabled(te){return te.hasAttribute("disabled")}isVisible(te){return function Lt(oe){return!!(oe.offsetWidth||oe.offsetHeight||"function"==typeof oe.getClientRects&&oe.getClientRects().length)}(te)&&"visible"===getComputedStyle(te).visibility}isTabbable(te){if(!this._platform.isBrowser)return!1;const Se=function $t(oe){try{return oe.frameElement}catch{return null}}(function B(oe){return oe.ownerDocument&&oe.ownerDocument.defaultView||window}(te));if(Se&&(-1===mt(Se)||!this.isVisible(Se)))return!1;let Ke=te.nodeName.toLowerCase(),Oe=mt(te);return te.hasAttribute("contenteditable")?-1!==Oe:!("iframe"===Ke||"object"===Ke||this._platform.WEBKIT&&this._platform.IOS&&!function yt(oe){let $e=oe.nodeName.toLowerCase(),te="input"===$e&&oe.type;return"text"===te||"password"===te||"select"===$e||"textarea"===$e}(te))&&("audio"===Ke?!!te.hasAttribute("controls")&&-1!==Oe:"video"===Ke?-1!==Oe&&(null!==Oe||this._platform.FIREFOX||te.hasAttribute("controls")):te.tabIndex>=0)}isFocusable(te,Se){return function ee(oe){return!function Tt(oe){return function pt(oe){return"input"==oe.nodeName.toLowerCase()}(oe)&&"hidden"==oe.type}(oe)&&(function Jt(oe){let $e=oe.nodeName.toLowerCase();return"input"===$e||"select"===$e||"button"===$e||"textarea"===$e}(oe)||function $(oe){return function Dt(oe){return"a"==oe.nodeName.toLowerCase()}(oe)&&oe.hasAttribute("href")}(oe)||oe.hasAttribute("contenteditable")||St(oe))}(te)&&!this.isDisabled(te)&&(Se?.ignoreVisibility||this.isVisible(te))}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(g.t4))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();function St(oe){if(!oe.hasAttribute("tabindex")||void 0===oe.tabIndex)return!1;let $e=oe.getAttribute("tabindex");return!(!$e||isNaN(parseInt($e,10)))}function mt(oe){if(!St(oe))return null;const $e=parseInt(oe.getAttribute("tabindex")||"",10);return isNaN($e)?-1:$e}class At{get enabled(){return this._enabled}set enabled($e){this._enabled=$e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($e,this._startAnchor),this._toggleAnchorTabIndex($e,this._endAnchor))}constructor($e,te,Se,Ke,Oe=!1){this._element=$e,this._checker=te,this._ngZone=Se,this._document=Ke,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,Oe||this.attachAnchors()}destroy(){const $e=this._startAnchor,te=this._endAnchor;$e&&($e.removeEventListener("focus",this.startAnchorListener),$e.remove()),te&&(te.removeEventListener("focus",this.endAnchorListener),te.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady($e){return new Promise(te=>{this._executeOnStable(()=>te(this.focusInitialElement($e)))})}focusFirstTabbableElementWhenReady($e){return new Promise(te=>{this._executeOnStable(()=>te(this.focusFirstTabbableElement($e)))})}focusLastTabbableElementWhenReady($e){return new Promise(te=>{this._executeOnStable(()=>te(this.focusLastTabbableElement($e)))})}_getRegionBoundary($e){const te=this._element.querySelectorAll(`[cdk-focus-region-${$e}], [cdkFocusRegion${$e}], [cdk-focus-${$e}]`);return"start"==$e?te.length?te[0]:this._getFirstTabbableElement(this._element):te.length?te[te.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement($e){const te=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(te){if(!this._checker.isFocusable(te)){const Se=this._getFirstTabbableElement(te);return Se?.focus($e),!!Se}return te.focus($e),!0}return this.focusFirstTabbableElement($e)}focusFirstTabbableElement($e){const te=this._getRegionBoundary("start");return te&&te.focus($e),!!te}focusLastTabbableElement($e){const te=this._getRegionBoundary("end");return te&&te.focus($e),!!te}hasAttached(){return this._hasAttached}_getFirstTabbableElement($e){if(this._checker.isFocusable($e)&&this._checker.isTabbable($e))return $e;const te=$e.children;for(let Se=0;Se<te.length;Se++){const Ke=te[Se].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(te[Se]):null;if(Ke)return Ke}return null}_getLastTabbableElement($e){if(this._checker.isFocusable($e)&&this._checker.isTabbable($e))return $e;const te=$e.children;for(let Se=te.length-1;Se>=0;Se--){const Ke=te[Se].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(te[Se]):null;if(Ke)return Ke}return null}_createAnchor(){const $e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,$e),$e.classList.add("cdk-visually-hidden"),$e.classList.add("cdk-focus-trap-anchor"),$e.setAttribute("aria-hidden","true"),$e}_toggleAnchorTabIndex($e,te){$e?te.setAttribute("tabindex","0"):te.removeAttribute("tabindex")}toggleAnchors($e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex($e,this._startAnchor),this._toggleAnchorTabIndex($e,this._endAnchor))}_executeOnStable($e){this._ngZone.isStable?$e():this._ngZone.onStable.pipe((0,U.q)(1)).subscribe($e)}}let st=(()=>{class oe{constructor(te,Se,Ke){this._checker=te,this._ngZone=Se,this._document=Ke}create(te,Se=!1){return new At(te,this._checker,this._ngZone,this._document,Se)}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(Pt),e.LFG(e.R0b),e.LFG(o.K0))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),ie=(()=>{class oe{get enabled(){return this.focusTrap.enabled}set enabled(te){this.focusTrap.enabled=(0,A.Ig)(te)}get autoCapture(){return this._autoCapture}set autoCapture(te){this._autoCapture=(0,A.Ig)(te)}constructor(te,Se,Ke){this._elementRef=te,this._focusTrapFactory=Se,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(te){const Se=te.autoCapture;Se&&!Se.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,g.ht)(),this.focusTrap.focusInitialElementWhenReady()}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.Y36(e.SBq),e.Y36(st),e.Y36(o.K0))};static#e=this.\u0275dir=e.lG2({type:oe,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]})}return oe})();function ft(oe){return 0===oe.buttons||0===oe.offsetX&&0===oe.offsetY}function Gt(oe){const $e=oe.touches&&oe.touches[0]||oe.changedTouches&&oe.changedTouches[0];return!(!$e||-1!==$e.identifier||null!=$e.radiusX&&1!==$e.radiusX||null!=$e.radiusY&&1!==$e.radiusY)}const Ce=new e.OlP("cdk-input-modality-detector-options"),ve={ignoreKeys:[f.zL,f.jx,f.b2,f.MW,f.JU]},De=(0,g.i$)({passive:!0,capture:!0});let tn=(()=>{class oe{get mostRecentModality(){return this._modality.value}constructor(te,Se,Ke,Oe){this._platform=te,this._mostRecentTarget=null,this._modality=new i.X(null),this._lastTouchMs=0,this._onKeydown=Qe=>{this._options?.ignoreKeys?.some(et=>et===Qe.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,g.sA)(Qe))},this._onMousedown=Qe=>{Date.now()-this._lastTouchMs<650||(this._modality.next(ft(Qe)?"keyboard":"mouse"),this._mostRecentTarget=(0,g.sA)(Qe))},this._onTouchstart=Qe=>{Gt(Qe)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,g.sA)(Qe))},this._options={...ve,...Oe},this.modalityDetected=this._modality.pipe((0,lt.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ut.x)()),te.isBrowser&&Se.runOutsideAngular(()=>{Ke.addEventListener("keydown",this._onKeydown,De),Ke.addEventListener("mousedown",this._onMousedown,De),Ke.addEventListener("touchstart",this._onTouchstart,De)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,De),document.removeEventListener("mousedown",this._onMousedown,De),document.removeEventListener("touchstart",this._onTouchstart,De))}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(g.t4),e.LFG(e.R0b),e.LFG(o.K0),e.LFG(Ce,8))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();const gn=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Xe(){return null}}),rn=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let re=0,ue=(()=>{class oe{constructor(te,Se,Ke,Oe){this._ngZone=Se,this._defaultOptions=Oe,this._document=Ke,this._liveElement=te||this._createLiveElement()}announce(te,...Se){const Ke=this._defaultOptions;let Oe,Qe;return 1===Se.length&&"number"==typeof Se[0]?Qe=Se[0]:[Oe,Qe]=Se,this.clear(),clearTimeout(this._previousTimeout),Oe||(Oe=Ke&&Ke.politeness?Ke.politeness:"polite"),null==Qe&&Ke&&(Qe=Ke.duration),this._liveElement.setAttribute("aria-live",Oe),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(et=>this._currentResolve=et)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=te,"number"==typeof Qe&&(this._previousTimeout=setTimeout(()=>this.clear(),Qe)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const te="cdk-live-announcer-element",Se=this._document.getElementsByClassName(te),Ke=this._document.createElement("div");for(let Oe=0;Oe<Se.length;Oe++)Se[Oe].remove();return Ke.classList.add(te),Ke.classList.add("cdk-visually-hidden"),Ke.setAttribute("aria-atomic","true"),Ke.setAttribute("aria-live","polite"),Ke.id="cdk-live-announcer-"+re++,this._document.body.appendChild(Ke),Ke}_exposeAnnouncerToModals(te){const Se=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Ke=0;Ke<Se.length;Ke++){const Oe=Se[Ke],Qe=Oe.getAttribute("aria-owns");Qe?-1===Qe.indexOf(te)&&Oe.setAttribute("aria-owns",Qe+" "+te):Oe.setAttribute("aria-owns",te)}}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(gn,8),e.LFG(e.R0b),e.LFG(o.K0),e.LFG(rn,8))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();const be=new e.OlP("cdk-focus-monitor-default-options"),qt=(0,g.i$)({passive:!0,capture:!0});let Te=(()=>{class oe{constructor(te,Se,Ke,Oe,Qe){this._ngZone=te,this._platform=Se,this._inputModalityDetector=Ke,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new x.x,this._rootNodeFocusAndBlurListener=et=>{for(let it=(0,g.sA)(et);it;it=it.parentElement)"focus"===et.type?this._onFocus(et,it):this._onBlur(et,it)},this._document=Oe,this._detectionMode=Qe?.detectionMode||0}monitor(te,Se=!1){const Ke=(0,A.fI)(te);if(!this._platform.isBrowser||1!==Ke.nodeType)return(0,R.of)();const Oe=(0,g.kV)(Ke)||this._getDocument(),Qe=this._elementInfo.get(Ke);if(Qe)return Se&&(Qe.checkChildren=!0),Qe.subject;const et={checkChildren:Se,subject:new x.x,rootNode:Oe};return this._elementInfo.set(Ke,et),this._registerGlobalListeners(et),et.subject}stopMonitoring(te){const Se=(0,A.fI)(te),Ke=this._elementInfo.get(Se);Ke&&(Ke.subject.complete(),this._setClasses(Se),this._elementInfo.delete(Se),this._removeGlobalListeners(Ke))}focusVia(te,Se,Ke){const Oe=(0,A.fI)(te);Oe===this._getDocument().activeElement?this._getClosestElementsInfo(Oe).forEach(([et,nt])=>this._originChanged(et,Se,nt)):(this._setOrigin(Se),"function"==typeof Oe.focus&&Oe.focus(Ke))}ngOnDestroy(){this._elementInfo.forEach((te,Se)=>this.stopMonitoring(Se))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(te){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(te)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:te&&this._isLastInteractionFromInputLabel(te)?"mouse":"program"}_shouldBeAttributedToTouch(te){return 1===this._detectionMode||!!te?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(te,Se){te.classList.toggle("cdk-focused",!!Se),te.classList.toggle("cdk-touch-focused","touch"===Se),te.classList.toggle("cdk-keyboard-focused","keyboard"===Se),te.classList.toggle("cdk-mouse-focused","mouse"===Se),te.classList.toggle("cdk-program-focused","program"===Se)}_setOrigin(te,Se=!1){this._ngZone.runOutsideAngular(()=>{this._origin=te,this._originFromTouchInteraction="touch"===te&&Se,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(te,Se){const Ke=this._elementInfo.get(Se),Oe=(0,g.sA)(te);!Ke||!Ke.checkChildren&&Se!==Oe||this._originChanged(Se,this._getFocusOrigin(Oe),Ke)}_onBlur(te,Se){const Ke=this._elementInfo.get(Se);!Ke||Ke.checkChildren&&te.relatedTarget instanceof Node&&Se.contains(te.relatedTarget)||(this._setClasses(Se),this._emitOrigin(Ke,null))}_emitOrigin(te,Se){te.subject.observers.length&&this._ngZone.run(()=>te.subject.next(Se))}_registerGlobalListeners(te){if(!this._platform.isBrowser)return;const Se=te.rootNode,Ke=this._rootNodeFocusListenerCount.get(Se)||0;Ke||this._ngZone.runOutsideAngular(()=>{Se.addEventListener("focus",this._rootNodeFocusAndBlurListener,qt),Se.addEventListener("blur",this._rootNodeFocusAndBlurListener,qt)}),this._rootNodeFocusListenerCount.set(Se,Ke+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,Ht.R)(this._stopInputModalityDetector)).subscribe(Oe=>{this._setOrigin(Oe,!0)}))}_removeGlobalListeners(te){const Se=te.rootNode;if(this._rootNodeFocusListenerCount.has(Se)){const Ke=this._rootNodeFocusListenerCount.get(Se);Ke>1?this._rootNodeFocusListenerCount.set(Se,Ke-1):(Se.removeEventListener("focus",this._rootNodeFocusAndBlurListener,qt),Se.removeEventListener("blur",this._rootNodeFocusAndBlurListener,qt),this._rootNodeFocusListenerCount.delete(Se))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(te,Se,Ke){this._setClasses(te,Se),this._emitOrigin(Ke,Se),this._lastFocusOrigin=Se}_getClosestElementsInfo(te){const Se=[];return this._elementInfo.forEach((Ke,Oe)=>{(Oe===te||Ke.checkChildren&&Oe.contains(te))&&Se.push([Oe,Ke])}),Se}_isLastInteractionFromInputLabel(te){const{_mostRecentTarget:Se,mostRecentModality:Ke}=this._inputModalityDetector;if("mouse"!==Ke||!Se||Se===te||"INPUT"!==te.nodeName&&"TEXTAREA"!==te.nodeName||te.disabled)return!1;const Oe=te.labels;if(Oe)for(let Qe=0;Qe<Oe.length;Qe++)if(Oe[Qe].contains(Se))return!0;return!1}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(e.R0b),e.LFG(g.t4),e.LFG(tn),e.LFG(o.K0,8),e.LFG(be,8))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),Me=(()=>{class oe{constructor(te,Se){this._elementRef=te,this._focusMonitor=Se,this._focusOrigin=null,this.cdkFocusChange=new e.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const te=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(te,1===te.nodeType&&te.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(Se=>{this._focusOrigin=Se,this.cdkFocusChange.emit(Se)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.Y36(e.SBq),e.Y36(Te))};static#e=this.\u0275dir=e.lG2({type:oe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return oe})();const _n="cdk-high-contrast-black-on-white",ce="cdk-high-contrast-white-on-black",ye="cdk-high-contrast-active";let Xt=(()=>{class oe{constructor(te,Se){this._platform=te,this._document=Se,this._breakpointSubscription=(0,e.f3M)(tt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const te=this._document.createElement("div");te.style.backgroundColor="rgb(1,2,3)",te.style.position="absolute",this._document.body.appendChild(te);const Se=this._document.defaultView||window,Ke=Se&&Se.getComputedStyle?Se.getComputedStyle(te):null,Oe=(Ke&&Ke.backgroundColor||"").replace(/ /g,"");switch(te.remove(),Oe){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const te=this._document.body.classList;te.remove(ye,_n,ce),this._hasCheckedHighContrastMode=!0;const Se=this.getHighContrastMode();1===Se?te.add(ye,_n):2===Se&&te.add(ye,ce)}}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(g.t4),e.LFG(o.K0))};static#e=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),on=(()=>{class oe{constructor(te){te._applyBodyHighContrastModeCssClasses()}static#t=this.\u0275fac=function(Se){return new(Se||oe)(e.LFG(Xt))};static#e=this.\u0275mod=e.oAB({type:oe});static#n=this.\u0275inj=e.cJS({imports:[xt.Q8]})}return oe})()},9388:(Je,Rt,c)=>{"use strict";c.d(Rt,{Is:()=>R,Lv:()=>f,vT:()=>t});var o=c(5879),e=c(6814);const g=new o.OlP("cdk-dir-doc",{providedIn:"root",factory:function x(){return(0,o.f3M)(e.K0)}}),l=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function i(y){const O=y?.toLowerCase()||"";return"auto"===O&&typeof navigator<"u"&&navigator?.language?l.test(navigator.language)?"rtl":"ltr":"rtl"===O?"rtl":"ltr"}let R=(()=>{class y{constructor(G){this.value="ltr",this.change=new o.vpe,G&&(this.value=i((G.body?G.body.dir:null)||(G.documentElement?G.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#t=this.\u0275fac=function(U){return new(U||y)(o.LFG(g,8))};static#e=this.\u0275prov=o.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),f=(()=>{class y{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new o.vpe}get dir(){return this._dir}set dir(G){const U=this._dir;this._dir=i(G),this._rawDir=G,U!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static#t=this.\u0275fac=function(U){return new(U||y)};static#e=this.\u0275dir=o.lG2({type:y,selectors:[["","dir",""]],hostVars:1,hostBindings:function(U,lt){2&U&&o.uIk("dir",lt._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[o._Bn([{provide:R,useExisting:y}])]})}return y})(),t=(()=>{class y{static#t=this.\u0275fac=function(U){return new(U||y)};static#e=this.\u0275mod=o.oAB({type:y});static#n=this.\u0275inj=o.cJS({})}return y})()},2495:(Je,Rt,c)=>{"use strict";c.d(Rt,{Eq:()=>l,HM:()=>i,Ig:()=>e,du:()=>f,fI:()=>R,su:()=>g,t6:()=>x});var o=c(5879);function e(t){return null!=t&&"false"!=`${t}`}function g(t,y=0){return x(t)?Number(t):y}function x(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function l(t){return Array.isArray(t)?t:[t]}function i(t){return null==t?"":"string"==typeof t?t:`${t}px`}function R(t){return t instanceof o.SBq?t.nativeElement:t}function f(t,y=/\s+/){const O=[];if(null!=t){const G=Array.isArray(t)?t:`${t}`.split(y);for(const U of G){const lt=`${U}`.trim();lt&&O.push(lt)}}return O}},8337:(Je,Rt,c)=>{"use strict";c.d(Rt,{A8:()=>y,Z9:()=>x,eX:()=>R,k:()=>O,o2:()=>g,yy:()=>i});var o=c(3168),e=c(5879);class g{}function x(G){return G&&"function"==typeof G.connect&&!(G instanceof o.c)}class i{applyChanges(U,lt,ut,Ht,A){U.forEachOperation((xt,tt,ct)=>{let _,j;if(null==xt.previousIndex){const q=ut(xt,tt,ct);_=lt.createEmbeddedView(q.templateRef,q.context,q.index),j=1}else null==ct?(lt.remove(tt),j=3):(_=lt.get(tt),lt.move(_,ct),j=2);A&&A({context:_?.context,operation:j,record:xt})})}detach(){}}class R{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(U,lt,ut,Ht,A){U.forEachOperation((xt,tt,ct)=>{let _,j;null==xt.previousIndex?(_=this._insertView(()=>ut(xt,tt,ct),ct,lt,Ht(xt)),j=_?1:0):null==ct?(this._detachAndCacheView(tt,lt),j=3):(_=this._moveView(tt,ct,lt,Ht(xt)),j=2),A&&A({context:_?.context,operation:j,record:xt})})}detach(){for(const U of this._viewCache)U.destroy();this._viewCache=[]}_insertView(U,lt,ut,Ht){const A=this._insertViewFromCache(lt,ut);if(A)return void(A.context.$implicit=Ht);const xt=U();return ut.createEmbeddedView(xt.templateRef,xt.context,xt.index)}_detachAndCacheView(U,lt){const ut=lt.detach(U);this._maybeCacheView(ut,lt)}_moveView(U,lt,ut,Ht){const A=ut.get(U);return ut.move(A,lt),A.context.$implicit=Ht,A}_maybeCacheView(U,lt){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(U);else{const ut=lt.indexOf(U);-1===ut?U.destroy():lt.remove(ut)}}_insertViewFromCache(U,lt){const ut=this._viewCache.pop();return ut&&lt.insert(ut,U),ut||null}}let y=(()=>{class G{constructor(){this._listeners=[]}notify(lt,ut){for(let Ht of this._listeners)Ht(lt,ut)}listen(lt){return this._listeners.push(lt),()=>{this._listeners=this._listeners.filter(ut=>lt!==ut)}}ngOnDestroy(){this._listeners=[]}static#t=this.\u0275fac=function(ut){return new(ut||G)};static#e=this.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"})}return G})();const O=new e.OlP("_ViewRepeater")},8836:(Je,Rt,c)=>{"use strict";c.d(Rt,{LL:()=>Ht,Su:()=>gt,Vq:()=>ht,ib:()=>lt});var o=c(4300),e=c(9594),g=c(2831),x=c(8484),l=c(6814),i=c(5879),R=c(6028),f=c(8645),t=c(4911),y=c(2096),O=c(9388),G=c(7921);function U(zt,Ct){}class lt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Ht=(()=>{class zt extends x.en{constructor(H,J,z,F,rt,V,Pt,$t){super(),this._elementRef=H,this._focusTrapFactory=J,this._config=F,this._interactivityChecker=rt,this._ngZone=V,this._overlayRef=Pt,this._focusMonitor=$t,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Lt=>{this._portalOutlet.hasAttached();const Jt=this._portalOutlet.attachDomPortal(Lt);return this._contentAttached(),Jt},this._document=z,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(H){this._portalOutlet.hasAttached();const J=this._portalOutlet.attachComponentPortal(H);return this._contentAttached(),J}attachTemplatePortal(H){this._portalOutlet.hasAttached();const J=this._portalOutlet.attachTemplatePortal(H);return this._contentAttached(),J}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(H,J){this._interactivityChecker.isFocusable(H)||(H.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const z=()=>{H.removeEventListener("blur",z),H.removeEventListener("mousedown",z),H.removeAttribute("tabindex")};H.addEventListener("blur",z),H.addEventListener("mousedown",z)})),H.focus(J)}_focusByCssSelector(H,J){let z=this._elementRef.nativeElement.querySelector(H);z&&this._forceFocus(z,J)}_trapFocus(){const H=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||H.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(J=>{J||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const H=this._config.restoreFocus;let J=null;if("string"==typeof H?J=this._document.querySelector(H):"boolean"==typeof H?J=H?this._elementFocusedBeforeDialogWasOpened:null:H&&(J=H),this._config.restoreFocus&&J&&"function"==typeof J.focus){const z=(0,g.ht)(),F=this._elementRef.nativeElement;(!z||z===this._document.body||z===F||F.contains(z))&&(this._focusMonitor?(this._focusMonitor.focusVia(J,this._closeInteractionType),this._closeInteractionType=null):J.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const H=this._elementRef.nativeElement,J=(0,g.ht)();return H===J||H.contains(J)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,g.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#t=this.\u0275fac=function(J){return new(J||zt)(i.Y36(i.SBq),i.Y36(o.qV),i.Y36(l.K0,8),i.Y36(lt),i.Y36(o.ic),i.Y36(i.R0b),i.Y36(e.Iu),i.Y36(o.tE))};static#e=this.\u0275cmp=i.Xpm({type:zt,selectors:[["cdk-dialog-container"]],viewQuery:function(J,z){if(1&J&&i.Gf(x.Pl,7),2&J){let F;i.iGM(F=i.CRH())&&(z._portalOutlet=F.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(J,z){2&J&&i.uIk("id",z._config.id||null)("role",z._config.role)("aria-modal",z._config.ariaModal)("aria-labelledby",z._config.ariaLabel?null:z._ariaLabelledByQueue[0])("aria-label",z._config.ariaLabel)("aria-describedby",z._config.ariaDescribedBy||null)},features:[i.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(J,z){1&J&&i.YNc(0,U,0,0,"ng-template",0)},dependencies:[x.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return zt})();class A{constructor(Ct,H){this.overlayRef=Ct,this.config=H,this.closed=new f.x,this.disableClose=H.disableClose,this.backdropClick=Ct.backdropClick(),this.keydownEvents=Ct.keydownEvents(),this.outsidePointerEvents=Ct.outsidePointerEvents(),this.id=H.id,this.keydownEvents.subscribe(J=>{J.keyCode===R.hY&&!this.disableClose&&!(0,R.Vb)(J)&&(J.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ct.detachments().subscribe(()=>{!1!==H.closeOnOverlayDetachments&&this.close()})}close(Ct,H){if(this.containerInstance){const J=this.closed;this.containerInstance._closeInteractionType=H?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),J.next(Ct),J.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ct="",H=""){return this.overlayRef.updateSize({width:Ct,height:H}),this}addPanelClass(Ct){return this.overlayRef.addPanelClass(Ct),this}removePanelClass(Ct){return this.overlayRef.removePanelClass(Ct),this}}const xt=new i.OlP("DialogScrollStrategy"),tt=new i.OlP("DialogData"),ct=new i.OlP("DefaultDialogConfig"),j={provide:xt,deps:[e.aV],useFactory:function _(zt){return()=>zt.scrollStrategies.block()}};let q=0,ht=(()=>{class zt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(H,J,z,F,rt,V){this._overlay=H,this._injector=J,this._defaultOptions=z,this._parentDialog=F,this._overlayContainer=rt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new f.x,this._afterOpenedAtThisLevel=new f.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,t.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,G.O)(void 0))),this._scrollStrategy=V}open(H,J){(J={...this._defaultOptions||new lt,...J}).id=J.id||"cdk-dialog-"+q++,J.id&&this.getDialogById(J.id);const F=this._getOverlayConfig(J),rt=this._overlay.create(F),V=new A(rt,J),Pt=this._attachContainer(rt,V,J);return V.containerInstance=Pt,this._attachDialogContent(H,V,Pt,J),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(V),V.closed.subscribe(()=>this._removeOpenDialog(V,!0)),this.afterOpened.next(V),V}closeAll(){vt(this.openDialogs,H=>H.close())}getDialogById(H){return this.openDialogs.find(J=>J.id===H)}ngOnDestroy(){vt(this._openDialogsAtThisLevel,H=>{!1===H.config.closeOnDestroy&&this._removeOpenDialog(H,!1)}),vt(this._openDialogsAtThisLevel,H=>H.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(H){const J=new e.X_({positionStrategy:H.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:H.scrollStrategy||this._scrollStrategy(),panelClass:H.panelClass,hasBackdrop:H.hasBackdrop,direction:H.direction,minWidth:H.minWidth,minHeight:H.minHeight,maxWidth:H.maxWidth,maxHeight:H.maxHeight,width:H.width,height:H.height,disposeOnNavigation:H.closeOnNavigation});return H.backdropClass&&(J.backdropClass=H.backdropClass),J}_attachContainer(H,J,z){const F=z.injector||z.viewContainerRef?.injector,rt=[{provide:lt,useValue:z},{provide:A,useValue:J},{provide:e.Iu,useValue:H}];let V;z.container?"function"==typeof z.container?V=z.container:(V=z.container.type,rt.push(...z.container.providers(z))):V=Ht;const Pt=new x.C5(V,z.viewContainerRef,i.zs3.create({parent:F||this._injector,providers:rt}),z.componentFactoryResolver);return H.attach(Pt).instance}_attachDialogContent(H,J,z,F){if(H instanceof i.Rgc){const rt=this._createInjector(F,J,z,void 0);let V={$implicit:F.data,dialogRef:J};F.templateContext&&(V={...V,..."function"==typeof F.templateContext?F.templateContext():F.templateContext}),z.attachTemplatePortal(new x.UE(H,null,V,rt))}else{const rt=this._createInjector(F,J,z,this._injector),V=z.attachComponentPortal(new x.C5(H,F.viewContainerRef,rt,F.componentFactoryResolver));J.componentRef=V,J.componentInstance=V.instance}}_createInjector(H,J,z,F){const rt=H.injector||H.viewContainerRef?.injector,V=[{provide:tt,useValue:H.data},{provide:A,useValue:J}];return H.providers&&("function"==typeof H.providers?V.push(...H.providers(J,H,z)):V.push(...H.providers)),H.direction&&(!rt||!rt.get(O.Is,null,{optional:!0}))&&V.push({provide:O.Is,useValue:{value:H.direction,change:(0,y.of)()}}),i.zs3.create({parent:rt||F,providers:V})}_removeOpenDialog(H,J){const z=this.openDialogs.indexOf(H);z>-1&&(this.openDialogs.splice(z,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((F,rt)=>{F?rt.setAttribute("aria-hidden",F):rt.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),J&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const H=this._overlayContainer.getContainerElement();if(H.parentElement){const J=H.parentElement.children;for(let z=J.length-1;z>-1;z--){const F=J[z];F!==H&&"SCRIPT"!==F.nodeName&&"STYLE"!==F.nodeName&&!F.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(F,F.getAttribute("aria-hidden")),F.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const H=this._parentDialog;return H?H._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#t=this.\u0275fac=function(J){return new(J||zt)(i.LFG(e.aV),i.LFG(i.zs3),i.LFG(ct,8),i.LFG(zt,12),i.LFG(e.Xj),i.LFG(xt))};static#e=this.\u0275prov=i.Yz7({token:zt,factory:zt.\u0275fac})}return zt})();function vt(zt,Ct){let H=zt.length;for(;H--;)Ct(zt[H])}let gt=(()=>{class zt{static#t=this.\u0275fac=function(J){return new(J||zt)};static#e=this.\u0275mod=i.oAB({type:zt});static#n=this.\u0275inj=i.cJS({providers:[ht,j],imports:[e.U8,x.eL,o.rt,x.eL]})}return zt})()},6028:(Je,Rt,c)=>{"use strict";c.d(Rt,{A:()=>Tt,JH:()=>ct,JU:()=>i,K5:()=>l,Ku:()=>U,LH:()=>xt,L_:()=>G,MW:()=>rn,Mf:()=>g,SV:()=>tt,Sd:()=>Ht,VM:()=>lt,Vb:()=>kt,Z:()=>Xe,aO:()=>V,b2:()=>Zt,hY:()=>O,jx:()=>R,oh:()=>A,uR:()=>ut,xE:()=>vt,zL:()=>f});const g=9,l=13,i=16,R=17,f=18,O=27,G=32,U=33,lt=34,ut=35,Ht=36,A=37,xt=38,tt=39,ct=40,vt=48,V=57,Tt=65,Xe=90,rn=91,Zt=224;function kt(fe,...sn){return sn.length?sn.some(Gn=>fe[Gn]):fe.altKey||fe.shiftKey||fe.ctrlKey||fe.metaKey}},1088:(Je,Rt,c)=>{"use strict";c.d(Rt,{Yg:()=>ct,u3:()=>j,xu:()=>lt});var o=c(5879),e=c(2495),g=c(8645),x=c(2572),l=c(5211),i=c(5592),R=c(8180),f=c(836),t=c(3620),y=c(7398),O=c(7921),G=c(9773),U=c(2831);let lt=(()=>{class q{static#t=this.\u0275fac=function(gt){return new(gt||q)};static#e=this.\u0275mod=o.oAB({type:q});static#n=this.\u0275inj=o.cJS({})}return q})();const ut=new Set;let Ht,A=(()=>{class q{constructor(vt,gt){this._platform=vt,this._nonce=gt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):tt}matchMedia(vt){return(this._platform.WEBKIT||this._platform.BLINK)&&function xt(q,ht){if(!ut.has(q))try{Ht||(Ht=document.createElement("style"),ht&&(Ht.nonce=ht),Ht.setAttribute("type","text/css"),document.head.appendChild(Ht)),Ht.sheet&&(Ht.sheet.insertRule(`@media ${q} {body{ }}`,0),ut.add(q))}catch(vt){console.error(vt)}}(vt,this._nonce),this._matchMedia(vt)}static#t=this.\u0275fac=function(gt){return new(gt||q)(o.LFG(U.t4),o.LFG(o.Ojb,8))};static#e=this.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();function tt(q){return{matches:"all"===q||""===q,media:q,addListener:()=>{},removeListener:()=>{}}}let ct=(()=>{class q{constructor(vt,gt){this._mediaMatcher=vt,this._zone=gt,this._queries=new Map,this._destroySubject=new g.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(vt){return _((0,e.Eq)(vt)).some(zt=>this._registerQuery(zt).mql.matches)}observe(vt){const zt=_((0,e.Eq)(vt)).map(H=>this._registerQuery(H).observable);let Ct=(0,x.a)(zt);return Ct=(0,l.z)(Ct.pipe((0,R.q)(1)),Ct.pipe((0,f.T)(1),(0,t.b)(0))),Ct.pipe((0,y.U)(H=>{const J={matches:!1,breakpoints:{}};return H.forEach(({matches:z,query:F})=>{J.matches=J.matches||z,J.breakpoints[F]=z}),J}))}_registerQuery(vt){if(this._queries.has(vt))return this._queries.get(vt);const gt=this._mediaMatcher.matchMedia(vt),Ct={observable:new i.y(H=>{const J=z=>this._zone.run(()=>H.next(z));return gt.addListener(J),()=>{gt.removeListener(J)}}).pipe((0,O.O)(gt),(0,y.U)(({matches:H})=>({query:vt,matches:H})),(0,G.R)(this._destroySubject)),mql:gt};return this._queries.set(vt,Ct),Ct}static#t=this.\u0275fac=function(gt){return new(gt||q)(o.LFG(A),o.LFG(o.R0b))};static#e=this.\u0275prov=o.Yz7({token:q,factory:q.\u0275fac,providedIn:"root"})}return q})();function _(q){return q.map(ht=>ht.split(",")).reduce((ht,vt)=>ht.concat(vt)).map(ht=>ht.trim())}const j={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7131:(Je,Rt,c)=>{"use strict";c.d(Rt,{Q8:()=>t,wD:()=>f});var o=c(2495),e=c(5879),g=c(5592),x=c(8645),l=c(3620);let i=(()=>{class y{create(G){return typeof MutationObserver>"u"?null:new MutationObserver(G)}static#t=this.\u0275fac=function(U){return new(U||y)};static#e=this.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),R=(()=>{class y{constructor(G){this._mutationObserverFactory=G,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((G,U)=>this._cleanupObserver(U))}observe(G){const U=(0,o.fI)(G);return new g.y(lt=>{const Ht=this._observeElement(U).subscribe(lt);return()=>{Ht.unsubscribe(),this._unobserveElement(U)}})}_observeElement(G){if(this._observedElements.has(G))this._observedElements.get(G).count++;else{const U=new x.x,lt=this._mutationObserverFactory.create(ut=>U.next(ut));lt&&lt.observe(G,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(G,{observer:lt,stream:U,count:1})}return this._observedElements.get(G).stream}_unobserveElement(G){this._observedElements.has(G)&&(this._observedElements.get(G).count--,this._observedElements.get(G).count||this._cleanupObserver(G))}_cleanupObserver(G){if(this._observedElements.has(G)){const{observer:U,stream:lt}=this._observedElements.get(G);U&&U.disconnect(),lt.complete(),this._observedElements.delete(G)}}static#t=this.\u0275fac=function(U){return new(U||y)(e.LFG(i))};static#e=this.\u0275prov=e.Yz7({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),f=(()=>{class y{get disabled(){return this._disabled}set disabled(G){this._disabled=(0,o.Ig)(G),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(G){this._debounce=(0,o.su)(G),this._subscribe()}constructor(G,U,lt){this._contentObserver=G,this._elementRef=U,this._ngZone=lt,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const G=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?G.pipe((0,l.b)(this.debounce)):G).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#t=this.\u0275fac=function(U){return new(U||y)(e.Y36(R),e.Y36(e.SBq),e.Y36(e.R0b))};static#e=this.\u0275dir=e.lG2({type:y,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return y})(),t=(()=>{class y{static#t=this.\u0275fac=function(U){return new(U||y)};static#e=this.\u0275mod=e.oAB({type:y});static#n=this.\u0275inj=e.cJS({providers:[i]})}return y})()},9594:(Je,Rt,c)=>{"use strict";c.d(Rt,{Iu:()=>rt,U8:()=>In,X_:()=>q,Xj:()=>F,_G:()=>$t,aV:()=>ee});var o=c(6672),e=c(6814),g=c(5879),x=c(2495),l=c(2831),i=c(2181),R=c(8180),f=c(9773),t=c(9388),y=c(8484),O=c(8645),G=c(7394),U=c(3019);const lt=(0,l.Mq)();class ut{constructor(ft,Gt){this._viewportRuler=ft,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Gt}attach(){}enable(){if(this._canBeEnabled()){const ft=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ft.style.left||"",this._previousHTMLStyles.top=ft.style.top||"",ft.style.left=(0,x.HM)(-this._previousScrollPosition.left),ft.style.top=(0,x.HM)(-this._previousScrollPosition.top),ft.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ft=this._document.documentElement,Ce=ft.style,ve=this._document.body.style,me=Ce.scrollBehavior||"",De=ve.scrollBehavior||"";this._isEnabled=!1,Ce.left=this._previousHTMLStyles.left,Ce.top=this._previousHTMLStyles.top,ft.classList.remove("cdk-global-scrollblock"),lt&&(Ce.scrollBehavior=ve.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),lt&&(Ce.scrollBehavior=me,ve.scrollBehavior=De)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Gt=this._document.body,Ce=this._viewportRuler.getViewportSize();return Gt.scrollHeight>Ce.height||Gt.scrollWidth>Ce.width}}class A{constructor(ft,Gt,Ce,ve){this._scrollDispatcher=ft,this._ngZone=Gt,this._viewportRuler=Ce,this._config=ve,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ft){this._overlayRef=ft}enable(){if(this._scrollSubscription)return;const ft=this._scrollDispatcher.scrolled(0).pipe((0,i.h)(Gt=>!Gt||!this._overlayRef.overlayElement.contains(Gt.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ft.subscribe(()=>{const Gt=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Gt-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ft.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class xt{enable(){}disable(){}attach(){}}function tt(jt,ft){return ft.some(Gt=>jt.bottom<Gt.top||jt.top>Gt.bottom||jt.right<Gt.left||jt.left>Gt.right)}function ct(jt,ft){return ft.some(Gt=>jt.top<Gt.top||jt.bottom>Gt.bottom||jt.left<Gt.left||jt.right>Gt.right)}class _{constructor(ft,Gt,Ce,ve){this._scrollDispatcher=ft,this._viewportRuler=Gt,this._ngZone=Ce,this._config=ve,this._scrollSubscription=null}attach(ft){this._overlayRef=ft}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const Gt=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ce,height:ve}=this._viewportRuler.getViewportSize();tt(Gt,[{width:Ce,height:ve,bottom:ve,right:Ce,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let j=(()=>{class jt{constructor(Gt,Ce,ve,me){this._scrollDispatcher=Gt,this._viewportRuler=Ce,this._ngZone=ve,this.noop=()=>new xt,this.close=De=>new A(this._scrollDispatcher,this._ngZone,this._viewportRuler,De),this.block=()=>new ut(this._viewportRuler,this._document),this.reposition=De=>new _(this._scrollDispatcher,this._viewportRuler,this._ngZone,De),this._document=me}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(o.mF),g.LFG(o.rL),g.LFG(g.R0b),g.LFG(e.K0))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})();class q{constructor(ft){if(this.scrollStrategy=new xt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ft){const Gt=Object.keys(ft);for(const Ce of Gt)void 0!==ft[Ce]&&(this[Ce]=ft[Ce])}}}class gt{constructor(ft,Gt){this.connectionPair=ft,this.scrollableViewProperties=Gt}}let H=(()=>{class jt{constructor(Gt){this._attachedOverlays=[],this._document=Gt}ngOnDestroy(){this.detach()}add(Gt){this.remove(Gt),this._attachedOverlays.push(Gt)}remove(Gt){const Ce=this._attachedOverlays.indexOf(Gt);Ce>-1&&this._attachedOverlays.splice(Ce,1),0===this._attachedOverlays.length&&this.detach()}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(e.K0))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})(),J=(()=>{class jt extends H{constructor(Gt,Ce){super(Gt),this._ngZone=Ce,this._keydownListener=ve=>{const me=this._attachedOverlays;for(let De=me.length-1;De>-1;De--)if(me[De]._keydownEvents.observers.length>0){const tn=me[De]._keydownEvents;this._ngZone?this._ngZone.run(()=>tn.next(ve)):tn.next(ve);break}}}add(Gt){super.add(Gt),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(e.K0),g.LFG(g.R0b,8))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})(),z=(()=>{class jt extends H{constructor(Gt,Ce,ve){super(Gt),this._platform=Ce,this._ngZone=ve,this._cursorStyleIsSet=!1,this._pointerDownListener=me=>{this._pointerDownEventTarget=(0,l.sA)(me)},this._clickListener=me=>{const De=(0,l.sA)(me),tn="click"===me.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:De;this._pointerDownEventTarget=null;const gn=this._attachedOverlays.slice();for(let Xe=gn.length-1;Xe>-1;Xe--){const rn=gn[Xe];if(rn._outsidePointerEvents.observers.length<1||!rn.hasAttached())continue;if(rn.overlayElement.contains(De)||rn.overlayElement.contains(tn))break;const re=rn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>re.next(me)):re.next(me)}}}add(Gt){if(super.add(Gt),!this._isAttached){const Ce=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ce)):this._addEventListeners(Ce),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ce.style.cursor,Ce.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const Gt=this._document.body;Gt.removeEventListener("pointerdown",this._pointerDownListener,!0),Gt.removeEventListener("click",this._clickListener,!0),Gt.removeEventListener("auxclick",this._clickListener,!0),Gt.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Gt.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Gt){Gt.addEventListener("pointerdown",this._pointerDownListener,!0),Gt.addEventListener("click",this._clickListener,!0),Gt.addEventListener("auxclick",this._clickListener,!0),Gt.addEventListener("contextmenu",this._clickListener,!0)}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(e.K0),g.LFG(l.t4),g.LFG(g.R0b,8))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})(),F=(()=>{class jt{constructor(Gt,Ce){this._platform=Ce,this._document=Gt}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Gt="cdk-overlay-container";if(this._platform.isBrowser||(0,l.Oy)()){const ve=this._document.querySelectorAll(`.${Gt}[platform="server"], .${Gt}[platform="test"]`);for(let me=0;me<ve.length;me++)ve[me].remove()}const Ce=this._document.createElement("div");Ce.classList.add(Gt),(0,l.Oy)()?Ce.setAttribute("platform","test"):this._platform.isBrowser||Ce.setAttribute("platform","server"),this._document.body.appendChild(Ce),this._containerElement=Ce}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(e.K0),g.LFG(l.t4))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})();class rt{constructor(ft,Gt,Ce,ve,me,De,tn,gn,Xe,rn=!1){this._portalOutlet=ft,this._host=Gt,this._pane=Ce,this._config=ve,this._ngZone=me,this._keyboardDispatcher=De,this._document=tn,this._location=gn,this._outsideClickDispatcher=Xe,this._animationsDisabled=rn,this._backdropElement=null,this._backdropClick=new O.x,this._attachments=new O.x,this._detachments=new O.x,this._locationChanges=G.w0.EMPTY,this._backdropClickHandler=re=>this._backdropClick.next(re),this._backdropTransitionendHandler=re=>{this._disposeBackdrop(re.target)},this._keydownEvents=new O.x,this._outsidePointerEvents=new O.x,ve.scrollStrategy&&(this._scrollStrategy=ve.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ve.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ft){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const Gt=this._portalOutlet.attach(ft);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof Gt?.onDestroy&&Gt.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Gt}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ft=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ft}dispose(){const ft=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ft&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ft){ft!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ft,this.hasAttached()&&(ft.attach(this),this.updatePosition()))}updateSize(ft){this._config={...this._config,...ft},this._updateElementSize()}setDirection(ft){this._config={...this._config,direction:ft},this._updateElementDirection()}addPanelClass(ft){this._pane&&this._toggleClasses(this._pane,ft,!0)}removePanelClass(ft){this._pane&&this._toggleClasses(this._pane,ft,!1)}getDirection(){const ft=this._config.direction;return ft?"string"==typeof ft?ft:ft.value:"ltr"}updateScrollStrategy(ft){ft!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ft,this.hasAttached()&&(ft.attach(this),ft.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ft=this._pane.style;ft.width=(0,x.HM)(this._config.width),ft.height=(0,x.HM)(this._config.height),ft.minWidth=(0,x.HM)(this._config.minWidth),ft.minHeight=(0,x.HM)(this._config.minHeight),ft.maxWidth=(0,x.HM)(this._config.maxWidth),ft.maxHeight=(0,x.HM)(this._config.maxHeight)}_togglePointerEvents(ft){this._pane.style.pointerEvents=ft?"":"none"}_attachBackdrop(){const ft="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ft)})}):this._backdropElement.classList.add(ft)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ft=this._backdropElement;if(ft){if(this._animationsDisabled)return void this._disposeBackdrop(ft);ft.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ft.addEventListener("transitionend",this._backdropTransitionendHandler)}),ft.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ft)},500))}}_toggleClasses(ft,Gt,Ce){const ve=(0,x.Eq)(Gt||[]).filter(me=>!!me);ve.length&&(Ce?ft.classList.add(...ve):ft.classList.remove(...ve))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ft=this._ngZone.onStable.pipe((0,f.R)((0,U.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ft.unsubscribe())})})}_disposeScrollStrategy(){const ft=this._scrollStrategy;ft&&(ft.disable(),ft.detach&&ft.detach())}_disposeBackdrop(ft){ft&&(ft.removeEventListener("click",this._backdropClickHandler),ft.removeEventListener("transitionend",this._backdropTransitionendHandler),ft.remove(),this._backdropElement===ft&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const V="cdk-overlay-connected-position-bounding-box",Pt=/([A-Za-z%]+)$/;class $t{get positions(){return this._preferredPositions}constructor(ft,Gt,Ce,ve,me){this._viewportRuler=Gt,this._document=Ce,this._platform=ve,this._overlayContainer=me,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new O.x,this._resizeSubscription=G.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ft)}attach(ft){this._validatePositions(),ft.hostElement.classList.add(V),this._overlayRef=ft,this._boundingBox=ft.hostElement,this._pane=ft.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ft=this._originRect,Gt=this._overlayRect,Ce=this._viewportRect,ve=this._containerRect,me=[];let De;for(let tn of this._preferredPositions){let gn=this._getOriginPoint(ft,ve,tn),Xe=this._getOverlayPoint(gn,Gt,tn),rn=this._getOverlayFit(Xe,Gt,Ce,tn);if(rn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(tn,gn);this._canFitWithFlexibleDimensions(rn,Xe,Ce)?me.push({position:tn,origin:gn,overlayRect:Gt,boundingBoxRect:this._calculateBoundingBoxRect(gn,tn)}):(!De||De.overlayFit.visibleArea<rn.visibleArea)&&(De={overlayFit:rn,overlayPoint:Xe,originPoint:gn,position:tn,overlayRect:Gt})}if(me.length){let tn=null,gn=-1;for(const Xe of me){const rn=Xe.boundingBoxRect.width*Xe.boundingBoxRect.height*(Xe.position.weight||1);rn>gn&&(gn=rn,tn=Xe)}return this._isPushed=!1,void this._applyPosition(tn.position,tn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(De.position,De.originPoint);this._applyPosition(De.position,De.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Lt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(V),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ft=this._lastPosition;if(ft){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const Gt=this._getOriginPoint(this._originRect,this._containerRect,ft);this._applyPosition(ft,Gt)}else this.apply()}withScrollableContainers(ft){return this._scrollables=ft,this}withPositions(ft){return this._preferredPositions=ft,-1===ft.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ft){return this._viewportMargin=ft,this}withFlexibleDimensions(ft=!0){return this._hasFlexibleDimensions=ft,this}withGrowAfterOpen(ft=!0){return this._growAfterOpen=ft,this}withPush(ft=!0){return this._canPush=ft,this}withLockedPosition(ft=!0){return this._positionLocked=ft,this}setOrigin(ft){return this._origin=ft,this}withDefaultOffsetX(ft){return this._offsetX=ft,this}withDefaultOffsetY(ft){return this._offsetY=ft,this}withTransformOriginOn(ft){return this._transformOriginSelector=ft,this}_getOriginPoint(ft,Gt,Ce){let ve,me;if("center"==Ce.originX)ve=ft.left+ft.width/2;else{const De=this._isRtl()?ft.right:ft.left,tn=this._isRtl()?ft.left:ft.right;ve="start"==Ce.originX?De:tn}return Gt.left<0&&(ve-=Gt.left),me="center"==Ce.originY?ft.top+ft.height/2:"top"==Ce.originY?ft.top:ft.bottom,Gt.top<0&&(me-=Gt.top),{x:ve,y:me}}_getOverlayPoint(ft,Gt,Ce){let ve,me;return ve="center"==Ce.overlayX?-Gt.width/2:"start"===Ce.overlayX?this._isRtl()?-Gt.width:0:this._isRtl()?0:-Gt.width,me="center"==Ce.overlayY?-Gt.height/2:"top"==Ce.overlayY?0:-Gt.height,{x:ft.x+ve,y:ft.y+me}}_getOverlayFit(ft,Gt,Ce,ve){const me=Tt(Gt);let{x:De,y:tn}=ft,gn=this._getOffset(ve,"x"),Xe=this._getOffset(ve,"y");gn&&(De+=gn),Xe&&(tn+=Xe);let ue=0-tn,Ft=tn+me.height-Ce.height,be=this._subtractOverflows(me.width,0-De,De+me.width-Ce.width),qt=this._subtractOverflows(me.height,ue,Ft),Te=be*qt;return{visibleArea:Te,isCompletelyWithinViewport:me.width*me.height===Te,fitsInViewportVertically:qt===me.height,fitsInViewportHorizontally:be==me.width}}_canFitWithFlexibleDimensions(ft,Gt,Ce){if(this._hasFlexibleDimensions){const ve=Ce.bottom-Gt.y,me=Ce.right-Gt.x,De=Jt(this._overlayRef.getConfig().minHeight),tn=Jt(this._overlayRef.getConfig().minWidth);return(ft.fitsInViewportVertically||null!=De&&De<=ve)&&(ft.fitsInViewportHorizontally||null!=tn&&tn<=me)}return!1}_pushOverlayOnScreen(ft,Gt,Ce){if(this._previousPushAmount&&this._positionLocked)return{x:ft.x+this._previousPushAmount.x,y:ft.y+this._previousPushAmount.y};const ve=Tt(Gt),me=this._viewportRect,De=Math.max(ft.x+ve.width-me.width,0),tn=Math.max(ft.y+ve.height-me.height,0),gn=Math.max(me.top-Ce.top-ft.y,0),Xe=Math.max(me.left-Ce.left-ft.x,0);let rn=0,re=0;return rn=ve.width<=me.width?Xe||-De:ft.x<this._viewportMargin?me.left-Ce.left-ft.x:0,re=ve.height<=me.height?gn||-tn:ft.y<this._viewportMargin?me.top-Ce.top-ft.y:0,this._previousPushAmount={x:rn,y:re},{x:ft.x+rn,y:ft.y+re}}_applyPosition(ft,Gt){if(this._setTransformOrigin(ft),this._setOverlayElementStyles(Gt,ft),this._setBoundingBoxStyles(Gt,ft),ft.panelClass&&this._addPanelClasses(ft.panelClass),this._lastPosition=ft,this._positionChanges.observers.length){const Ce=this._getScrollVisibility(),ve=new gt(ft,Ce);this._positionChanges.next(ve)}this._isInitialRender=!1}_setTransformOrigin(ft){if(!this._transformOriginSelector)return;const Gt=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Ce,ve=ft.overlayY;Ce="center"===ft.overlayX?"center":this._isRtl()?"start"===ft.overlayX?"right":"left":"start"===ft.overlayX?"left":"right";for(let me=0;me<Gt.length;me++)Gt[me].style.transformOrigin=`${Ce} ${ve}`}_calculateBoundingBoxRect(ft,Gt){const Ce=this._viewportRect,ve=this._isRtl();let me,De,tn,rn,re,ue;if("top"===Gt.overlayY)De=ft.y,me=Ce.height-De+this._viewportMargin;else if("bottom"===Gt.overlayY)tn=Ce.height-ft.y+2*this._viewportMargin,me=Ce.height-tn+this._viewportMargin;else{const Ft=Math.min(Ce.bottom-ft.y+Ce.top,ft.y),be=this._lastBoundingBoxSize.height;me=2*Ft,De=ft.y-Ft,me>be&&!this._isInitialRender&&!this._growAfterOpen&&(De=ft.y-be/2)}if("end"===Gt.overlayX&&!ve||"start"===Gt.overlayX&&ve)ue=Ce.width-ft.x+this._viewportMargin,rn=ft.x-this._viewportMargin;else if("start"===Gt.overlayX&&!ve||"end"===Gt.overlayX&&ve)re=ft.x,rn=Ce.right-ft.x;else{const Ft=Math.min(Ce.right-ft.x+Ce.left,ft.x),be=this._lastBoundingBoxSize.width;rn=2*Ft,re=ft.x-Ft,rn>be&&!this._isInitialRender&&!this._growAfterOpen&&(re=ft.x-be/2)}return{top:De,left:re,bottom:tn,right:ue,width:rn,height:me}}_setBoundingBoxStyles(ft,Gt){const Ce=this._calculateBoundingBoxRect(ft,Gt);!this._isInitialRender&&!this._growAfterOpen&&(Ce.height=Math.min(Ce.height,this._lastBoundingBoxSize.height),Ce.width=Math.min(Ce.width,this._lastBoundingBoxSize.width));const ve={};if(this._hasExactPosition())ve.top=ve.left="0",ve.bottom=ve.right=ve.maxHeight=ve.maxWidth="",ve.width=ve.height="100%";else{const me=this._overlayRef.getConfig().maxHeight,De=this._overlayRef.getConfig().maxWidth;ve.height=(0,x.HM)(Ce.height),ve.top=(0,x.HM)(Ce.top),ve.bottom=(0,x.HM)(Ce.bottom),ve.width=(0,x.HM)(Ce.width),ve.left=(0,x.HM)(Ce.left),ve.right=(0,x.HM)(Ce.right),ve.alignItems="center"===Gt.overlayX?"center":"end"===Gt.overlayX?"flex-end":"flex-start",ve.justifyContent="center"===Gt.overlayY?"center":"bottom"===Gt.overlayY?"flex-end":"flex-start",me&&(ve.maxHeight=(0,x.HM)(me)),De&&(ve.maxWidth=(0,x.HM)(De))}this._lastBoundingBoxSize=Ce,Lt(this._boundingBox.style,ve)}_resetBoundingBoxStyles(){Lt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Lt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ft,Gt){const Ce={},ve=this._hasExactPosition(),me=this._hasFlexibleDimensions,De=this._overlayRef.getConfig();if(ve){const rn=this._viewportRuler.getViewportScrollPosition();Lt(Ce,this._getExactOverlayY(Gt,ft,rn)),Lt(Ce,this._getExactOverlayX(Gt,ft,rn))}else Ce.position="static";let tn="",gn=this._getOffset(Gt,"x"),Xe=this._getOffset(Gt,"y");gn&&(tn+=`translateX(${gn}px) `),Xe&&(tn+=`translateY(${Xe}px)`),Ce.transform=tn.trim(),De.maxHeight&&(ve?Ce.maxHeight=(0,x.HM)(De.maxHeight):me&&(Ce.maxHeight="")),De.maxWidth&&(ve?Ce.maxWidth=(0,x.HM)(De.maxWidth):me&&(Ce.maxWidth="")),Lt(this._pane.style,Ce)}_getExactOverlayY(ft,Gt,Ce){let ve={top:"",bottom:""},me=this._getOverlayPoint(Gt,this._overlayRect,ft);return this._isPushed&&(me=this._pushOverlayOnScreen(me,this._overlayRect,Ce)),"bottom"===ft.overlayY?ve.bottom=this._document.documentElement.clientHeight-(me.y+this._overlayRect.height)+"px":ve.top=(0,x.HM)(me.y),ve}_getExactOverlayX(ft,Gt,Ce){let De,ve={left:"",right:""},me=this._getOverlayPoint(Gt,this._overlayRect,ft);return this._isPushed&&(me=this._pushOverlayOnScreen(me,this._overlayRect,Ce)),De=this._isRtl()?"end"===ft.overlayX?"left":"right":"end"===ft.overlayX?"right":"left","right"===De?ve.right=this._document.documentElement.clientWidth-(me.x+this._overlayRect.width)+"px":ve.left=(0,x.HM)(me.x),ve}_getScrollVisibility(){const ft=this._getOriginRect(),Gt=this._pane.getBoundingClientRect(),Ce=this._scrollables.map(ve=>ve.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ct(ft,Ce),isOriginOutsideView:tt(ft,Ce),isOverlayClipped:ct(Gt,Ce),isOverlayOutsideView:tt(Gt,Ce)}}_subtractOverflows(ft,...Gt){return Gt.reduce((Ce,ve)=>Ce-Math.max(ve,0),ft)}_getNarrowedViewportRect(){const ft=this._document.documentElement.clientWidth,Gt=this._document.documentElement.clientHeight,Ce=this._viewportRuler.getViewportScrollPosition();return{top:Ce.top+this._viewportMargin,left:Ce.left+this._viewportMargin,right:Ce.left+ft-this._viewportMargin,bottom:Ce.top+Gt-this._viewportMargin,width:ft-2*this._viewportMargin,height:Gt-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ft,Gt){return"x"===Gt?null==ft.offsetX?this._offsetX:ft.offsetX:null==ft.offsetY?this._offsetY:ft.offsetY}_validatePositions(){}_addPanelClasses(ft){this._pane&&(0,x.Eq)(ft).forEach(Gt=>{""!==Gt&&-1===this._appliedPanelClasses.indexOf(Gt)&&(this._appliedPanelClasses.push(Gt),this._pane.classList.add(Gt))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ft=>{this._pane.classList.remove(ft)}),this._appliedPanelClasses=[])}_getOriginRect(){const ft=this._origin;if(ft instanceof g.SBq)return ft.nativeElement.getBoundingClientRect();if(ft instanceof Element)return ft.getBoundingClientRect();const Gt=ft.width||0,Ce=ft.height||0;return{top:ft.y,bottom:ft.y+Ce,left:ft.x,right:ft.x+Gt,height:Ce,width:Gt}}}function Lt(jt,ft){for(let Gt in ft)ft.hasOwnProperty(Gt)&&(jt[Gt]=ft[Gt]);return jt}function Jt(jt){if("number"!=typeof jt&&null!=jt){const[ft,Gt]=jt.split(Pt);return Gt&&"px"!==Gt?null:parseFloat(ft)}return jt||null}function Tt(jt){return{top:Math.floor(jt.top),right:Math.floor(jt.right),bottom:Math.floor(jt.bottom),left:Math.floor(jt.left),width:Math.floor(jt.width),height:Math.floor(jt.height)}}const Dt="cdk-global-overlay-wrapper";class St{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ft){const Gt=ft.getConfig();this._overlayRef=ft,this._width&&!Gt.width&&ft.updateSize({width:this._width}),this._height&&!Gt.height&&ft.updateSize({height:this._height}),ft.hostElement.classList.add(Dt),this._isDisposed=!1}top(ft=""){return this._bottomOffset="",this._topOffset=ft,this._alignItems="flex-start",this}left(ft=""){return this._xOffset=ft,this._xPosition="left",this}bottom(ft=""){return this._topOffset="",this._bottomOffset=ft,this._alignItems="flex-end",this}right(ft=""){return this._xOffset=ft,this._xPosition="right",this}start(ft=""){return this._xOffset=ft,this._xPosition="start",this}end(ft=""){return this._xOffset=ft,this._xPosition="end",this}width(ft=""){return this._overlayRef?this._overlayRef.updateSize({width:ft}):this._width=ft,this}height(ft=""){return this._overlayRef?this._overlayRef.updateSize({height:ft}):this._height=ft,this}centerHorizontally(ft=""){return this.left(ft),this._xPosition="center",this}centerVertically(ft=""){return this.top(ft),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ft=this._overlayRef.overlayElement.style,Gt=this._overlayRef.hostElement.style,Ce=this._overlayRef.getConfig(),{width:ve,height:me,maxWidth:De,maxHeight:tn}=Ce,gn=!("100%"!==ve&&"100vw"!==ve||De&&"100%"!==De&&"100vw"!==De),Xe=!("100%"!==me&&"100vh"!==me||tn&&"100%"!==tn&&"100vh"!==tn),rn=this._xPosition,re=this._xOffset,ue="rtl"===this._overlayRef.getConfig().direction;let Ft="",be="",qt="";gn?qt="flex-start":"center"===rn?(qt="center",ue?be=re:Ft=re):ue?"left"===rn||"end"===rn?(qt="flex-end",Ft=re):("right"===rn||"start"===rn)&&(qt="flex-start",be=re):"left"===rn||"start"===rn?(qt="flex-start",Ft=re):("right"===rn||"end"===rn)&&(qt="flex-end",be=re),ft.position=this._cssPosition,ft.marginLeft=gn?"0":Ft,ft.marginTop=Xe?"0":this._topOffset,ft.marginBottom=this._bottomOffset,ft.marginRight=gn?"0":be,Gt.justifyContent=qt,Gt.alignItems=Xe?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ft=this._overlayRef.overlayElement.style,Gt=this._overlayRef.hostElement,Ce=Gt.style;Gt.classList.remove(Dt),Ce.justifyContent=Ce.alignItems=ft.marginTop=ft.marginBottom=ft.marginLeft=ft.marginRight=ft.position="",this._overlayRef=null,this._isDisposed=!0}}let mt=(()=>{class jt{constructor(Gt,Ce,ve,me){this._viewportRuler=Gt,this._document=Ce,this._platform=ve,this._overlayContainer=me}global(){return new St}flexibleConnectedTo(Gt){return new $t(Gt,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(o.rL),g.LFG(e.K0),g.LFG(l.t4),g.LFG(F))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})(),yt=0,ee=(()=>{class jt{constructor(Gt,Ce,ve,me,De,tn,gn,Xe,rn,re,ue,Ft){this.scrollStrategies=Gt,this._overlayContainer=Ce,this._componentFactoryResolver=ve,this._positionBuilder=me,this._keyboardDispatcher=De,this._injector=tn,this._ngZone=gn,this._document=Xe,this._directionality=rn,this._location=re,this._outsideClickDispatcher=ue,this._animationsModuleType=Ft}create(Gt){const Ce=this._createHostElement(),ve=this._createPaneElement(Ce),me=this._createPortalOutlet(ve),De=new q(Gt);return De.direction=De.direction||this._directionality.value,new rt(me,Ce,ve,De,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Gt){const Ce=this._document.createElement("div");return Ce.id="cdk-overlay-"+yt++,Ce.classList.add("cdk-overlay-pane"),Gt.appendChild(Ce),Ce}_createHostElement(){const Gt=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Gt),Gt}_createPortalOutlet(Gt){return this._appRef||(this._appRef=this._injector.get(g.z2F)),new y.u0(Gt,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#t=this.\u0275fac=function(Ce){return new(Ce||jt)(g.LFG(j),g.LFG(F),g.LFG(g._Vd),g.LFG(mt),g.LFG(J),g.LFG(g.zs3),g.LFG(g.R0b),g.LFG(e.K0),g.LFG(t.Is),g.LFG(e.Ye),g.LFG(z),g.LFG(g.QbO,8))};static#e=this.\u0275prov=g.Yz7({token:jt,factory:jt.\u0275fac,providedIn:"root"})}return jt})();const en={provide:new g.OlP("cdk-connected-overlay-scroll-strategy"),deps:[ee],useFactory:function Ae(jt){return()=>jt.scrollStrategies.reposition()}};let In=(()=>{class jt{static#t=this.\u0275fac=function(Ce){return new(Ce||jt)};static#e=this.\u0275mod=g.oAB({type:jt});static#n=this.\u0275inj=g.cJS({providers:[ee,en],imports:[t.vT,y.eL,o.Cl,o.Cl]})}return jt})()},2831:(Je,Rt,c)=>{"use strict";c.d(Rt,{Mq:()=>lt,Oy:()=>_,_i:()=>ut,ht:()=>tt,i$:()=>O,kV:()=>xt,qK:()=>f,sA:()=>ct,t4:()=>x});var o=c(5879),e=c(6814);let g;try{g=typeof Intl<"u"&&Intl.v8BreakIterator}catch{g=!1}let i,x=(()=>{class j{constructor(ht){this._platformId=ht,this.isBrowser=this._platformId?(0,e.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!g)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#t=this.\u0275fac=function(vt){return new(vt||j)(o.LFG(o.Lbi))};static#e=this.\u0275prov=o.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})();const R=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function f(){if(i)return i;if("object"!=typeof document||!document)return i=new Set(R),i;let j=document.createElement("input");return i=new Set(R.filter(q=>(j.setAttribute("type",q),j.type===q))),i}let t,G,U,Ht;function O(j){return function y(){if(null==t&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>t=!0}))}finally{t=t||!1}return t}()?j:!!j.capture}function lt(){if(null==U){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return U=!1,U;if("scrollBehavior"in document.documentElement.style)U=!0;else{const j=Element.prototype.scrollTo;U=!!j&&!/\{\s*\[native code\]\s*\}/.test(j.toString())}}return U}function ut(){if("object"!=typeof document||!document)return 0;if(null==G){const j=document.createElement("div"),q=j.style;j.dir="rtl",q.width="1px",q.overflow="auto",q.visibility="hidden",q.pointerEvents="none",q.position="absolute";const ht=document.createElement("div"),vt=ht.style;vt.width="2px",vt.height="1px",j.appendChild(ht),document.body.appendChild(j),G=0,0===j.scrollLeft&&(j.scrollLeft=1,G=0===j.scrollLeft?1:2),j.remove()}return G}function xt(j){if(function A(){if(null==Ht){const j=typeof document<"u"?document.head:null;Ht=!(!j||!j.createShadowRoot&&!j.attachShadow)}return Ht}()){const q=j.getRootNode?j.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&q instanceof ShadowRoot)return q}return null}function tt(){let j=typeof document<"u"&&document?document.activeElement:null;for(;j&&j.shadowRoot;){const q=j.shadowRoot.activeElement;if(q===j)break;j=q}return j}function ct(j){return j.composedPath?j.composedPath()[0]:j.target}function _(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(Je,Rt,c)=>{"use strict";c.d(Rt,{C5:()=>y,Pl:()=>tt,UE:()=>O,eL:()=>_,en:()=>U,u0:()=>ut});var o=c(5879),e=c(6814);class t{attach(ht){return this._attachedHost=ht,ht.attach(this)}detach(){let ht=this._attachedHost;null!=ht&&(this._attachedHost=null,ht.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ht){this._attachedHost=ht}}class y extends t{constructor(ht,vt,gt,zt,Ct){super(),this.component=ht,this.viewContainerRef=vt,this.injector=gt,this.componentFactoryResolver=zt,this.projectableNodes=Ct}}class O extends t{constructor(ht,vt,gt,zt){super(),this.templateRef=ht,this.viewContainerRef=vt,this.context=gt,this.injector=zt}get origin(){return this.templateRef.elementRef}attach(ht,vt=this.context){return this.context=vt,super.attach(ht)}detach(){return this.context=void 0,super.detach()}}class G extends t{constructor(ht){super(),this.element=ht instanceof o.SBq?ht.nativeElement:ht}}class U{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ht){return ht instanceof y?(this._attachedPortal=ht,this.attachComponentPortal(ht)):ht instanceof O?(this._attachedPortal=ht,this.attachTemplatePortal(ht)):this.attachDomPortal&&ht instanceof G?(this._attachedPortal=ht,this.attachDomPortal(ht)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ht){this._disposeFn=ht}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ut extends U{constructor(ht,vt,gt,zt,Ct){super(),this.outletElement=ht,this._componentFactoryResolver=vt,this._appRef=gt,this._defaultInjector=zt,this.attachDomPortal=H=>{const J=H.element,z=this._document.createComment("dom-portal");J.parentNode.insertBefore(z,J),this.outletElement.appendChild(J),this._attachedPortal=H,super.setDisposeFn(()=>{z.parentNode&&z.parentNode.replaceChild(J,z)})},this._document=Ct}attachComponentPortal(ht){const gt=(ht.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ht.component);let zt;return ht.viewContainerRef?(zt=ht.viewContainerRef.createComponent(gt,ht.viewContainerRef.length,ht.injector||ht.viewContainerRef.injector,ht.projectableNodes||void 0),this.setDisposeFn(()=>zt.destroy())):(zt=gt.create(ht.injector||this._defaultInjector||o.zs3.NULL),this._appRef.attachView(zt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(zt.hostView),zt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(zt)),this._attachedPortal=ht,zt}attachTemplatePortal(ht){let vt=ht.viewContainerRef,gt=vt.createEmbeddedView(ht.templateRef,ht.context,{injector:ht.injector});return gt.rootNodes.forEach(zt=>this.outletElement.appendChild(zt)),gt.detectChanges(),this.setDisposeFn(()=>{let zt=vt.indexOf(gt);-1!==zt&&vt.remove(zt)}),this._attachedPortal=ht,gt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ht){return ht.hostView.rootNodes[0]}}let tt=(()=>{class q extends U{constructor(vt,gt,zt){super(),this._componentFactoryResolver=vt,this._viewContainerRef=gt,this._isInitialized=!1,this.attached=new o.vpe,this.attachDomPortal=Ct=>{const H=Ct.element,J=this._document.createComment("dom-portal");Ct.setAttachedHost(this),H.parentNode.insertBefore(J,H),this._getRootNode().appendChild(H),this._attachedPortal=Ct,super.setDisposeFn(()=>{J.parentNode&&J.parentNode.replaceChild(H,J)})},this._document=zt}get portal(){return this._attachedPortal}set portal(vt){this.hasAttached()&&!vt&&!this._isInitialized||(this.hasAttached()&&super.detach(),vt&&super.attach(vt),this._attachedPortal=vt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(vt){vt.setAttachedHost(this);const gt=null!=vt.viewContainerRef?vt.viewContainerRef:this._viewContainerRef,Ct=(vt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(vt.component),H=gt.createComponent(Ct,gt.length,vt.injector||gt.injector,vt.projectableNodes||void 0);return gt!==this._viewContainerRef&&this._getRootNode().appendChild(H.hostView.rootNodes[0]),super.setDisposeFn(()=>H.destroy()),this._attachedPortal=vt,this._attachedRef=H,this.attached.emit(H),H}attachTemplatePortal(vt){vt.setAttachedHost(this);const gt=this._viewContainerRef.createEmbeddedView(vt.templateRef,vt.context,{injector:vt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=vt,this._attachedRef=gt,this.attached.emit(gt),gt}_getRootNode(){const vt=this._viewContainerRef.element.nativeElement;return vt.nodeType===vt.ELEMENT_NODE?vt:vt.parentNode}static#t=this.\u0275fac=function(gt){return new(gt||q)(o.Y36(o._Vd),o.Y36(o.s_b),o.Y36(e.K0))};static#e=this.\u0275dir=o.lG2({type:q,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.qOj]})}return q})(),_=(()=>{class q{static#t=this.\u0275fac=function(gt){return new(gt||q)};static#e=this.\u0275mod=o.oAB({type:q});static#n=this.\u0275inj=o.cJS({})}return q})()},6672:(Je,Rt,c)=>{"use strict";c.d(Rt,{Cl:()=>$t,PQ:()=>q,ZD:()=>Pt,mF:()=>j,rL:()=>vt});var o=c(2495),e=c(5879),g=c(8645),x=c(2096),l=c(5592),i=c(2438),t=(c(927),c(6410),c(9028)),y=c(2181),O=c(9773),G=c(2831),U=c(6814),lt=c(9388);let j=(()=>{class Lt{constructor(Tt,$,pt){this._ngZone=Tt,this._platform=$,this._scrolled=new g.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=pt}register(Tt){this.scrollContainers.has(Tt)||this.scrollContainers.set(Tt,Tt.elementScrolled().subscribe(()=>this._scrolled.next(Tt)))}deregister(Tt){const $=this.scrollContainers.get(Tt);$&&($.unsubscribe(),this.scrollContainers.delete(Tt))}scrolled(Tt=20){return this._platform.isBrowser?new l.y($=>{this._globalSubscription||this._addGlobalListener();const pt=Tt>0?this._scrolled.pipe((0,t.e)(Tt)).subscribe($):this._scrolled.subscribe($);return this._scrolledCount++,()=>{pt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,x.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Tt,$)=>this.deregister($)),this._scrolled.complete()}ancestorScrolled(Tt,$){const pt=this.getAncestorScrollContainers(Tt);return this.scrolled($).pipe((0,y.h)(Dt=>!Dt||pt.indexOf(Dt)>-1))}getAncestorScrollContainers(Tt){const $=[];return this.scrollContainers.forEach((pt,Dt)=>{this._scrollableContainsElement(Dt,Tt)&&$.push(Dt)}),$}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Tt,$){let pt=(0,o.fI)($),Dt=Tt.getElementRef().nativeElement;do{if(pt==Dt)return!0}while(pt=pt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Tt=this._getWindow();return(0,i.R)(Tt.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#t=this.\u0275fac=function($){return new($||Lt)(e.LFG(e.R0b),e.LFG(G.t4),e.LFG(U.K0,8))};static#e=this.\u0275prov=e.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}return Lt})(),q=(()=>{class Lt{constructor(Tt,$,pt,Dt){this.elementRef=Tt,this.scrollDispatcher=$,this.ngZone=pt,this.dir=Dt,this._destroyed=new g.x,this._elementScrolled=new l.y(St=>this.ngZone.runOutsideAngular(()=>(0,i.R)(this.elementRef.nativeElement,"scroll").pipe((0,O.R)(this._destroyed)).subscribe(St)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(Tt){const $=this.elementRef.nativeElement,pt=this.dir&&"rtl"==this.dir.value;null==Tt.left&&(Tt.left=pt?Tt.end:Tt.start),null==Tt.right&&(Tt.right=pt?Tt.start:Tt.end),null!=Tt.bottom&&(Tt.top=$.scrollHeight-$.clientHeight-Tt.bottom),pt&&0!=(0,G._i)()?(null!=Tt.left&&(Tt.right=$.scrollWidth-$.clientWidth-Tt.left),2==(0,G._i)()?Tt.left=Tt.right:1==(0,G._i)()&&(Tt.left=Tt.right?-Tt.right:Tt.right)):null!=Tt.right&&(Tt.left=$.scrollWidth-$.clientWidth-Tt.right),this._applyScrollToOptions(Tt)}_applyScrollToOptions(Tt){const $=this.elementRef.nativeElement;(0,G.Mq)()?$.scrollTo(Tt):(null!=Tt.top&&($.scrollTop=Tt.top),null!=Tt.left&&($.scrollLeft=Tt.left))}measureScrollOffset(Tt){const $="left",Dt=this.elementRef.nativeElement;if("top"==Tt)return Dt.scrollTop;if("bottom"==Tt)return Dt.scrollHeight-Dt.clientHeight-Dt.scrollTop;const St=this.dir&&"rtl"==this.dir.value;return"start"==Tt?Tt=St?"right":$:"end"==Tt&&(Tt=St?$:"right"),St&&2==(0,G._i)()?Tt==$?Dt.scrollWidth-Dt.clientWidth-Dt.scrollLeft:Dt.scrollLeft:St&&1==(0,G._i)()?Tt==$?Dt.scrollLeft+Dt.scrollWidth-Dt.clientWidth:-Dt.scrollLeft:Tt==$?Dt.scrollLeft:Dt.scrollWidth-Dt.clientWidth-Dt.scrollLeft}static#t=this.\u0275fac=function($){return new($||Lt)(e.Y36(e.SBq),e.Y36(j),e.Y36(e.R0b),e.Y36(lt.Is,8))};static#e=this.\u0275dir=e.lG2({type:Lt,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]],standalone:!0})}return Lt})(),vt=(()=>{class Lt{constructor(Tt,$,pt){this._platform=Tt,this._change=new g.x,this._changeListener=Dt=>{this._change.next(Dt)},this._document=pt,$.runOutsideAngular(()=>{if(Tt.isBrowser){const Dt=this._getWindow();Dt.addEventListener("resize",this._changeListener),Dt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Tt=this._getWindow();Tt.removeEventListener("resize",this._changeListener),Tt.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Tt={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Tt}getViewportRect(){const Tt=this.getViewportScrollPosition(),{width:$,height:pt}=this.getViewportSize();return{top:Tt.top,left:Tt.left,bottom:Tt.top+pt,right:Tt.left+$,height:pt,width:$}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Tt=this._document,$=this._getWindow(),pt=Tt.documentElement,Dt=pt.getBoundingClientRect();return{top:-Dt.top||Tt.body.scrollTop||$.scrollY||pt.scrollTop||0,left:-Dt.left||Tt.body.scrollLeft||$.scrollX||pt.scrollLeft||0}}change(Tt=20){return Tt>0?this._change.pipe((0,t.e)(Tt)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Tt=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Tt.innerWidth,height:Tt.innerHeight}:{width:0,height:0}}static#t=this.\u0275fac=function($){return new($||Lt)(e.LFG(G.t4),e.LFG(e.R0b),e.LFG(U.K0,8))};static#e=this.\u0275prov=e.Yz7({token:Lt,factory:Lt.\u0275fac,providedIn:"root"})}return Lt})(),Pt=(()=>{class Lt{static#t=this.\u0275fac=function($){return new($||Lt)};static#e=this.\u0275mod=e.oAB({type:Lt});static#n=this.\u0275inj=e.cJS({})}return Lt})(),$t=(()=>{class Lt{static#t=this.\u0275fac=function($){return new($||Lt)};static#e=this.\u0275mod=e.oAB({type:Lt});static#n=this.\u0275inj=e.cJS({imports:[lt.vT,Pt,lt.vT,Pt]})}return Lt})()},6263:(Je,Rt,c)=>{"use strict";c.d(Rt,{IC:()=>U,Ky:()=>lt,Lq:()=>O});var o=c(2831),e=c(5879),g=c(2495),x=c(6232),l=c(8645),i=c(2438),R=c(9028),f=c(9773),t=c(6814);const y=(0,o.i$)({passive:!0});let O=(()=>{class ut{constructor(A,xt){this._platform=A,this._ngZone=xt,this._monitoredElements=new Map}monitor(A){if(!this._platform.isBrowser)return x.E;const xt=(0,g.fI)(A),tt=this._monitoredElements.get(xt);if(tt)return tt.subject;const ct=new l.x,_="cdk-text-field-autofilled",j=q=>{"cdk-text-field-autofill-start"!==q.animationName||xt.classList.contains(_)?"cdk-text-field-autofill-end"===q.animationName&&xt.classList.contains(_)&&(xt.classList.remove(_),this._ngZone.run(()=>ct.next({target:q.target,isAutofilled:!1}))):(xt.classList.add(_),this._ngZone.run(()=>ct.next({target:q.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{xt.addEventListener("animationstart",j,y),xt.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(xt,{subject:ct,unlisten:()=>{xt.removeEventListener("animationstart",j,y)}}),ct}stopMonitoring(A){const xt=(0,g.fI)(A),tt=this._monitoredElements.get(xt);tt&&(tt.unlisten(),tt.subject.complete(),xt.classList.remove("cdk-text-field-autofill-monitored"),xt.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(xt))}ngOnDestroy(){this._monitoredElements.forEach((A,xt)=>this.stopMonitoring(xt))}static#t=this.\u0275fac=function(xt){return new(xt||ut)(e.LFG(o.t4),e.LFG(e.R0b))};static#e=this.\u0275prov=e.Yz7({token:ut,factory:ut.\u0275fac,providedIn:"root"})}return ut})(),U=(()=>{class ut{get minRows(){return this._minRows}set minRows(A){this._minRows=(0,g.su)(A),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(A){this._maxRows=(0,g.su)(A),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(A){A=(0,g.Ig)(A),this._enabled!==A&&((this._enabled=A)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(A){this._cachedPlaceholderHeight=void 0,A?this._textareaElement.setAttribute("placeholder",A):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}constructor(A,xt,tt,ct){this._elementRef=A,this._platform=xt,this._ngZone=tt,this._destroyed=new l.x,this._enabled=!0,this._previousMinRows=-1,this._isViewInited=!1,this._handleFocusEvent=_=>{this._hasFocus="focus"===_.type},this._document=ct,this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){const A=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;A&&(this._textareaElement.style.minHeight=A)}_setMaxHeight(){const A=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;A&&(this._textareaElement.style.maxHeight=A)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{const A=this._getWindow();(0,i.R)(A,"resize").pipe((0,R.e)(16),(0,f.R)(this._destroyed)).subscribe(()=>this.resizeToFitContent(!0)),this._textareaElement.addEventListener("focus",this._handleFocusEvent),this._textareaElement.addEventListener("blur",this._handleFocusEvent)}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._textareaElement.removeEventListener("focus",this._handleFocusEvent),this._textareaElement.removeEventListener("blur",this._handleFocusEvent),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let A=this._textareaElement.cloneNode(!1);A.rows=1,A.style.position="absolute",A.style.visibility="hidden",A.style.border="none",A.style.padding="0",A.style.height="",A.style.minHeight="",A.style.maxHeight="",A.style.overflow="hidden",this._textareaElement.parentNode.appendChild(A),this._cachedLineHeight=A.clientHeight,A.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){const A=this._textareaElement,xt=A.style.marginBottom||"",tt=this._platform.FIREFOX,ct=tt&&this._hasFocus,_=tt?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";ct&&(A.style.marginBottom=`${A.clientHeight}px`),A.classList.add(_);const j=A.scrollHeight-4;return A.classList.remove(_),ct&&(A.style.marginBottom=xt),j}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||null!=this._cachedPlaceholderHeight)return;if(!this.placeholder)return void(this._cachedPlaceholderHeight=0);const A=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=A}ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(A=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;const xt=this._elementRef.nativeElement,tt=xt.value;if(!A&&this._minRows===this._previousMinRows&&tt===this._previousValue)return;const ct=this._measureScrollHeight(),_=Math.max(ct,this._cachedPlaceholderHeight||0);xt.style.height=`${_}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(xt)):setTimeout(()=>this._scrollToCaretPosition(xt))}),this._previousValue=tt,this._previousMinRows=this._minRows}reset(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollToCaretPosition(A){const{selectionStart:xt,selectionEnd:tt}=A;!this._destroyed.isStopped&&this._hasFocus&&A.setSelectionRange(xt,tt)}static#t=this.\u0275fac=function(xt){return new(xt||ut)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(e.R0b),e.Y36(t.K0,8))};static#e=this.\u0275dir=e.lG2({type:ut,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(xt,tt){1&xt&&e.NdJ("input",function(){return tt._noopInputHandler()})},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return ut})(),lt=(()=>{class ut{static#t=this.\u0275fac=function(xt){return new(xt||ut)};static#e=this.\u0275mod=e.oAB({type:ut});static#n=this.\u0275inj=e.cJS({})}return ut})()},6814:(Je,Rt,c)=>{"use strict";c.d(Rt,{Do:()=>Ht,ED:()=>Fo,EM:()=>Bo,H9:()=>un,HT:()=>x,JF:()=>Ri,JJ:()=>ge,K0:()=>i,Mx:()=>Ei,NF:()=>Li,Nd:()=>Mt,O5:()=>Zt,OU:()=>Qn,Ov:()=>Wi,PC:()=>Bt,PM:()=>So,RF:()=>Gn,S$:()=>U,V_:()=>f,Ye:()=>A,b0:()=>ut,bD:()=>ni,ez:()=>Oi,gd:()=>Ho,i8:()=>go,mk:()=>Mo,n9:()=>Do,q:()=>g,qS:()=>Ji,rS:()=>co,sg:()=>Ye,tP:()=>he,uU:()=>xo,w_:()=>l});var o=c(5879);let e=null;function g(){return e}function x(L){e||(e=L)}class l{}const i=new o.OlP("DocumentToken");let R=(()=>{class L{historyGo(at){throw new Error("Not implemented")}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275prov=o.Yz7({token:L,factory:function(){return(0,o.f3M)(t)},providedIn:"platform"})}return L})();const f=new o.OlP("Location Initialized");let t=(()=>{class L extends R{constructor(){super(),this._doc=(0,o.f3M)(i),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return g().getBaseHref(this._doc)}onPopState(at){const It=g().getGlobalEventTarget(this._doc,"window");return It.addEventListener("popstate",at,!1),()=>It.removeEventListener("popstate",at)}onHashChange(at){const It=g().getGlobalEventTarget(this._doc,"window");return It.addEventListener("hashchange",at,!1),()=>It.removeEventListener("hashchange",at)}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(at){this._location.pathname=at}pushState(at,It,Le){this._history.pushState(at,It,Le)}replaceState(at,It,Le){this._history.replaceState(at,It,Le)}forward(){this._history.forward()}back(){this._history.back()}historyGo(at=0){this._history.go(at)}getState(){return this._history.state}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275prov=o.Yz7({token:L,factory:function(){return new L},providedIn:"platform"})}return L})();function y(L,Vt){if(0==L.length)return Vt;if(0==Vt.length)return L;let at=0;return L.endsWith("/")&&at++,Vt.startsWith("/")&&at++,2==at?L+Vt.substring(1):1==at?L+Vt:L+"/"+Vt}function O(L){const Vt=L.match(/#|\?|$/),at=Vt&&Vt.index||L.length;return L.slice(0,at-("/"===L[at-1]?1:0))+L.slice(at)}function G(L){return L&&"?"!==L[0]?"?"+L:L}let U=(()=>{class L{historyGo(at){throw new Error("Not implemented")}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275prov=o.Yz7({token:L,factory:function(){return(0,o.f3M)(ut)},providedIn:"root"})}return L})();const lt=new o.OlP("appBaseHref");let ut=(()=>{class L extends U{constructor(at,It){super(),this._platformLocation=at,this._removeListenerFns=[],this._baseHref=It??this._platformLocation.getBaseHrefFromDOM()??(0,o.f3M)(i).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(at){this._removeListenerFns.push(this._platformLocation.onPopState(at),this._platformLocation.onHashChange(at))}getBaseHref(){return this._baseHref}prepareExternalUrl(at){return y(this._baseHref,at)}path(at=!1){const It=this._platformLocation.pathname+G(this._platformLocation.search),Le=this._platformLocation.hash;return Le&&at?`${It}${Le}`:It}pushState(at,It,Le,mn){const Pn=this.prepareExternalUrl(Le+G(mn));this._platformLocation.pushState(at,It,Pn)}replaceState(at,It,Le,mn){const Pn=this.prepareExternalUrl(Le+G(mn));this._platformLocation.replaceState(at,It,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(at=0){this._platformLocation.historyGo?.(at)}static#t=this.\u0275fac=function(It){return new(It||L)(o.LFG(R),o.LFG(lt,8))};static#e=this.\u0275prov=o.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})(),Ht=(()=>{class L extends U{constructor(at,It){super(),this._platformLocation=at,this._baseHref="",this._removeListenerFns=[],null!=It&&(this._baseHref=It)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(at){this._removeListenerFns.push(this._platformLocation.onPopState(at),this._platformLocation.onHashChange(at))}getBaseHref(){return this._baseHref}path(at=!1){let It=this._platformLocation.hash;return null==It&&(It="#"),It.length>0?It.substring(1):It}prepareExternalUrl(at){const It=y(this._baseHref,at);return It.length>0?"#"+It:It}pushState(at,It,Le,mn){let Pn=this.prepareExternalUrl(Le+G(mn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.pushState(at,It,Pn)}replaceState(at,It,Le,mn){let Pn=this.prepareExternalUrl(Le+G(mn));0==Pn.length&&(Pn=this._platformLocation.pathname),this._platformLocation.replaceState(at,It,Pn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(at=0){this._platformLocation.historyGo?.(at)}static#t=this.\u0275fac=function(It){return new(It||L)(o.LFG(R),o.LFG(lt,8))};static#e=this.\u0275prov=o.Yz7({token:L,factory:L.\u0275fac})}return L})(),A=(()=>{class L{constructor(at){this._subject=new o.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=at;const It=this._locationStrategy.getBaseHref();this._basePath=function _(L){if(new RegExp("^(https?:)?//").test(L)){const[,at]=L.split(/\/\/[^\/]+/);return at}return L}(O(ct(It))),this._locationStrategy.onPopState(Le=>{this._subject.emit({url:this.path(!0),pop:!0,state:Le.state,type:Le.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(at=!1){return this.normalize(this._locationStrategy.path(at))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(at,It=""){return this.path()==this.normalize(at+G(It))}normalize(at){return L.stripTrailingSlash(function tt(L,Vt){if(!L||!Vt.startsWith(L))return Vt;const at=Vt.substring(L.length);return""===at||["/",";","?","#"].includes(at[0])?at:Vt}(this._basePath,ct(at)))}prepareExternalUrl(at){return at&&"/"!==at[0]&&(at="/"+at),this._locationStrategy.prepareExternalUrl(at)}go(at,It="",Le=null){this._locationStrategy.pushState(Le,"",at,It),this._notifyUrlChangeListeners(this.prepareExternalUrl(at+G(It)),Le)}replaceState(at,It="",Le=null){this._locationStrategy.replaceState(Le,"",at,It),this._notifyUrlChangeListeners(this.prepareExternalUrl(at+G(It)),Le)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(at=0){this._locationStrategy.historyGo?.(at)}onUrlChange(at){return this._urlChangeListeners.push(at),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(It=>{this._notifyUrlChangeListeners(It.url,It.state)})),()=>{const It=this._urlChangeListeners.indexOf(at);this._urlChangeListeners.splice(It,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(at="",It){this._urlChangeListeners.forEach(Le=>Le(at,It))}subscribe(at,It,Le){return this._subject.subscribe({next:at,error:It,complete:Le})}static#t=this.normalizeQueryParams=G;static#e=this.joinWithSlash=y;static#n=this.stripTrailingSlash=O;static#i=this.\u0275fac=function(It){return new(It||L)(o.LFG(U))};static#o=this.\u0275prov=o.Yz7({token:L,factory:function(){return function xt(){return new A((0,o.LFG)(U))}()},providedIn:"root"})}return L})();function ct(L){return L.replace(/\/index.html$/,"")}const j={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var q=function(L){return L[L.Decimal=0]="Decimal",L[L.Percent=1]="Percent",L[L.Currency=2]="Currency",L[L.Scientific=3]="Scientific",L}(q||{}),vt=function(L){return L[L.Format=0]="Format",L[L.Standalone=1]="Standalone",L}(vt||{}),gt=function(L){return L[L.Narrow=0]="Narrow",L[L.Abbreviated=1]="Abbreviated",L[L.Wide=2]="Wide",L[L.Short=3]="Short",L}(gt||{}),zt=function(L){return L[L.Short=0]="Short",L[L.Medium=1]="Medium",L[L.Long=2]="Long",L[L.Full=3]="Full",L}(zt||{}),Ct=function(L){return L[L.Decimal=0]="Decimal",L[L.Group=1]="Group",L[L.List=2]="List",L[L.PercentSign=3]="PercentSign",L[L.PlusSign=4]="PlusSign",L[L.MinusSign=5]="MinusSign",L[L.Exponential=6]="Exponential",L[L.SuperscriptingExponent=7]="SuperscriptingExponent",L[L.PerMille=8]="PerMille",L[L.Infinity=9]="Infinity",L[L.NaN=10]="NaN",L[L.TimeSeparator=11]="TimeSeparator",L[L.CurrencyDecimal=12]="CurrencyDecimal",L[L.CurrencyGroup=13]="CurrencyGroup",L}(Ct||{});function Lt(L,Vt){return Ae((0,o.cg1)(L)[o.wAp.DateFormat],Vt)}function Jt(L,Vt){return Ae((0,o.cg1)(L)[o.wAp.TimeFormat],Vt)}function Tt(L,Vt){return Ae((0,o.cg1)(L)[o.wAp.DateTimeFormat],Vt)}function $(L,Vt){const at=(0,o.cg1)(L),It=at[o.wAp.NumberSymbols][Vt];if(typeof It>"u"){if(Vt===Ct.CurrencyDecimal)return at[o.wAp.NumberSymbols][Ct.Decimal];if(Vt===Ct.CurrencyGroup)return at[o.wAp.NumberSymbols][Ct.Group]}return It}function pt(L,Vt){return(0,o.cg1)(L)[o.wAp.NumberFormats][Vt]}function B(L){if(!L[o.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${L[o.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ae(L,Vt){for(let at=Vt;at>-1;at--)if(typeof L[at]<"u")return L[at];throw new Error("Locale data API: locale data undefined")}function en(L){const[Vt,at]=L.split(":");return{hours:+Vt,minutes:+at}}const ft=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gt={},Ce=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var ve=function(L){return L[L.Short=0]="Short",L[L.ShortGMT=1]="ShortGMT",L[L.Long=2]="Long",L[L.Extended=3]="Extended",L}(ve||{}),me=function(L){return L[L.FullYear=0]="FullYear",L[L.Month=1]="Month",L[L.Date=2]="Date",L[L.Hours=3]="Hours",L[L.Minutes=4]="Minutes",L[L.Seconds=5]="Seconds",L[L.FractionalSeconds=6]="FractionalSeconds",L[L.Day=7]="Day",L}(me||{}),De=function(L){return L[L.DayPeriods=0]="DayPeriods",L[L.Days=1]="Days",L[L.Months=2]="Months",L[L.Eras=3]="Eras",L}(De||{});function tn(L,Vt,at,It){let Le=function Qe(L){if(nt(L))return L;if("number"==typeof L&&!isNaN(L))return new Date(L);if("string"==typeof L){if(L=L.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(L)){const[Le,mn=1,Pn=1]=L.split("-").map(Yn=>+Yn);return gn(Le,mn-1,Pn)}const at=parseFloat(L);if(!isNaN(L-at))return new Date(at);let It;if(It=L.match(ft))return function et(L){const Vt=new Date(0);let at=0,It=0;const Le=L[8]?Vt.setUTCFullYear:Vt.setFullYear,mn=L[8]?Vt.setUTCHours:Vt.setHours;L[9]&&(at=Number(L[9]+L[10]),It=Number(L[9]+L[11])),Le.call(Vt,Number(L[1]),Number(L[2])-1,Number(L[3]));const Pn=Number(L[4]||0)-at,Yn=Number(L[5]||0)-It,to=Number(L[6]||0),po=Math.floor(1e3*parseFloat("0."+(L[7]||0)));return mn.call(Vt,Pn,Yn,to,po),Vt}(It)}const Vt=new Date(L);if(!nt(Vt))throw new Error(`Unable to convert "${L}" into a date`);return Vt}(L);Vt=Xe(at,Vt)||Vt;let Yn,Pn=[];for(;Vt;){if(Yn=Ce.exec(Vt),!Yn){Pn.push(Vt);break}{Pn=Pn.concat(Yn.slice(1));const p=Pn.pop();if(!p)break;Vt=p}}let to=Le.getTimezoneOffset();It&&(to=Se(It,to),Le=function Oe(L,Vt,at){const It=at?-1:1,Le=L.getTimezoneOffset();return function Ke(L,Vt){return(L=new Date(L.getTime())).setMinutes(L.getMinutes()+Vt),L}(L,It*(Se(Vt,Le)-Le))}(Le,It,!0));let po="";return Pn.forEach(p=>{const K=function te(L){if($e[L])return $e[L];let Vt;switch(L){case"G":case"GG":case"GGG":Vt=qt(De.Eras,gt.Abbreviated);break;case"GGGG":Vt=qt(De.Eras,gt.Wide);break;case"GGGGG":Vt=qt(De.Eras,gt.Narrow);break;case"y":Vt=Ft(me.FullYear,1,0,!1,!0);break;case"yy":Vt=Ft(me.FullYear,2,0,!0,!0);break;case"yyy":Vt=Ft(me.FullYear,3,0,!1,!0);break;case"yyyy":Vt=Ft(me.FullYear,4,0,!1,!0);break;case"Y":Vt=oe(1);break;case"YY":Vt=oe(2,!0);break;case"YYY":Vt=oe(3);break;case"YYYY":Vt=oe(4);break;case"M":case"L":Vt=Ft(me.Month,1,1);break;case"MM":case"LL":Vt=Ft(me.Month,2,1);break;case"MMM":Vt=qt(De.Months,gt.Abbreviated);break;case"MMMM":Vt=qt(De.Months,gt.Wide);break;case"MMMMM":Vt=qt(De.Months,gt.Narrow);break;case"LLL":Vt=qt(De.Months,gt.Abbreviated,vt.Standalone);break;case"LLLL":Vt=qt(De.Months,gt.Wide,vt.Standalone);break;case"LLLLL":Vt=qt(De.Months,gt.Narrow,vt.Standalone);break;case"w":Vt=on(1);break;case"ww":Vt=on(2);break;case"W":Vt=on(1,!0);break;case"d":Vt=Ft(me.Date,1);break;case"dd":Vt=Ft(me.Date,2);break;case"c":case"cc":Vt=Ft(me.Day,1);break;case"ccc":Vt=qt(De.Days,gt.Abbreviated,vt.Standalone);break;case"cccc":Vt=qt(De.Days,gt.Wide,vt.Standalone);break;case"ccccc":Vt=qt(De.Days,gt.Narrow,vt.Standalone);break;case"cccccc":Vt=qt(De.Days,gt.Short,vt.Standalone);break;case"E":case"EE":case"EEE":Vt=qt(De.Days,gt.Abbreviated);break;case"EEEE":Vt=qt(De.Days,gt.Wide);break;case"EEEEE":Vt=qt(De.Days,gt.Narrow);break;case"EEEEEE":Vt=qt(De.Days,gt.Short);break;case"a":case"aa":case"aaa":Vt=qt(De.DayPeriods,gt.Abbreviated);break;case"aaaa":Vt=qt(De.DayPeriods,gt.Wide);break;case"aaaaa":Vt=qt(De.DayPeriods,gt.Narrow);break;case"b":case"bb":case"bbb":Vt=qt(De.DayPeriods,gt.Abbreviated,vt.Standalone,!0);break;case"bbbb":Vt=qt(De.DayPeriods,gt.Wide,vt.Standalone,!0);break;case"bbbbb":Vt=qt(De.DayPeriods,gt.Narrow,vt.Standalone,!0);break;case"B":case"BB":case"BBB":Vt=qt(De.DayPeriods,gt.Abbreviated,vt.Format,!0);break;case"BBBB":Vt=qt(De.DayPeriods,gt.Wide,vt.Format,!0);break;case"BBBBB":Vt=qt(De.DayPeriods,gt.Narrow,vt.Format,!0);break;case"h":Vt=Ft(me.Hours,1,-12);break;case"hh":Vt=Ft(me.Hours,2,-12);break;case"H":Vt=Ft(me.Hours,1);break;case"HH":Vt=Ft(me.Hours,2);break;case"m":Vt=Ft(me.Minutes,1);break;case"mm":Vt=Ft(me.Minutes,2);break;case"s":Vt=Ft(me.Seconds,1);break;case"ss":Vt=Ft(me.Seconds,2);break;case"S":Vt=Ft(me.FractionalSeconds,1);break;case"SS":Vt=Ft(me.FractionalSeconds,2);break;case"SSS":Vt=Ft(me.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Vt=Me(ve.Short);break;case"ZZZZZ":Vt=Me(ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Vt=Me(ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Vt=Me(ve.Long);break;default:return null}return $e[L]=Vt,Vt}(p);po+=K?K(Le,at,to):"''"===p?"'":p.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),po}function gn(L,Vt,at){const It=new Date(0);return It.setFullYear(L,Vt,at),It.setHours(0,0,0),It}function Xe(L,Vt){const at=function J(L){return(0,o.cg1)(L)[o.wAp.LocaleId]}(L);if(Gt[at]=Gt[at]||{},Gt[at][Vt])return Gt[at][Vt];let It="";switch(Vt){case"shortDate":It=Lt(L,zt.Short);break;case"mediumDate":It=Lt(L,zt.Medium);break;case"longDate":It=Lt(L,zt.Long);break;case"fullDate":It=Lt(L,zt.Full);break;case"shortTime":It=Jt(L,zt.Short);break;case"mediumTime":It=Jt(L,zt.Medium);break;case"longTime":It=Jt(L,zt.Long);break;case"fullTime":It=Jt(L,zt.Full);break;case"short":const Le=Xe(L,"shortTime"),mn=Xe(L,"shortDate");It=rn(Tt(L,zt.Short),[Le,mn]);break;case"medium":const Pn=Xe(L,"mediumTime"),Yn=Xe(L,"mediumDate");It=rn(Tt(L,zt.Medium),[Pn,Yn]);break;case"long":const to=Xe(L,"longTime"),po=Xe(L,"longDate");It=rn(Tt(L,zt.Long),[to,po]);break;case"full":const p=Xe(L,"fullTime"),K=Xe(L,"fullDate");It=rn(Tt(L,zt.Full),[p,K])}return It&&(Gt[at][Vt]=It),It}function rn(L,Vt){return Vt&&(L=L.replace(/\{([^}]+)}/g,function(at,It){return null!=Vt&&It in Vt?Vt[It]:at})),L}function re(L,Vt,at="-",It,Le){let mn="";(L<0||Le&&L<=0)&&(Le?L=1-L:(L=-L,mn=at));let Pn=String(L);for(;Pn.length<Vt;)Pn="0"+Pn;return It&&(Pn=Pn.slice(Pn.length-Vt)),mn+Pn}function Ft(L,Vt,at=0,It=!1,Le=!1){return function(mn,Pn){let Yn=function be(L,Vt){switch(L){case me.FullYear:return Vt.getFullYear();case me.Month:return Vt.getMonth();case me.Date:return Vt.getDate();case me.Hours:return Vt.getHours();case me.Minutes:return Vt.getMinutes();case me.Seconds:return Vt.getSeconds();case me.FractionalSeconds:return Vt.getMilliseconds();case me.Day:return Vt.getDay();default:throw new Error(`Unknown DateType value "${L}".`)}}(L,mn);if((at>0||Yn>-at)&&(Yn+=at),L===me.Hours)0===Yn&&-12===at&&(Yn=12);else if(L===me.FractionalSeconds)return function ue(L,Vt){return re(L,3).substring(0,Vt)}(Yn,Vt);const to=$(Pn,Ct.MinusSign);return re(Yn,Vt,to,It,Le)}}function qt(L,Vt,at=vt.Format,It=!1){return function(Le,mn){return function Te(L,Vt,at,It,Le,mn){switch(at){case De.Months:return function rt(L,Vt,at){const It=(0,o.cg1)(L),mn=Ae([It[o.wAp.MonthsFormat],It[o.wAp.MonthsStandalone]],Vt);return Ae(mn,at)}(Vt,Le,It)[L.getMonth()];case De.Days:return function F(L,Vt,at){const It=(0,o.cg1)(L),mn=Ae([It[o.wAp.DaysFormat],It[o.wAp.DaysStandalone]],Vt);return Ae(mn,at)}(Vt,Le,It)[L.getDay()];case De.DayPeriods:const Pn=L.getHours(),Yn=L.getMinutes();if(mn){const po=function At(L){const Vt=(0,o.cg1)(L);return B(Vt),(Vt[o.wAp.ExtraData][2]||[]).map(It=>"string"==typeof It?en(It):[en(It[0]),en(It[1])])}(Vt),p=function st(L,Vt,at){const It=(0,o.cg1)(L);B(It);const mn=Ae([It[o.wAp.ExtraData][0],It[o.wAp.ExtraData][1]],Vt)||[];return Ae(mn,at)||[]}(Vt,Le,It),K=po.findIndex(d=>{if(Array.isArray(d)){const[v,S]=d,pe=Pn>=v.hours&&Yn>=v.minutes,Ue=Pn<S.hours||Pn===S.hours&&Yn<S.minutes;if(v.hours<S.hours){if(pe&&Ue)return!0}else if(pe||Ue)return!0}else if(d.hours===Pn&&d.minutes===Yn)return!0;return!1});if(-1!==K)return p[K]}return function z(L,Vt,at){const It=(0,o.cg1)(L),mn=Ae([It[o.wAp.DayPeriodsFormat],It[o.wAp.DayPeriodsStandalone]],Vt);return Ae(mn,at)}(Vt,Le,It)[Pn<12?0:1];case De.Eras:return function V(L,Vt){return Ae((0,o.cg1)(L)[o.wAp.Eras],Vt)}(Vt,It)[L.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${at}`)}}(Le,mn,L,Vt,at,It)}}function Me(L){return function(Vt,at,It){const Le=-1*It,mn=$(at,Ct.MinusSign),Pn=Le>0?Math.floor(Le/60):Math.ceil(Le/60);switch(L){case ve.Short:return(Le>=0?"+":"")+re(Pn,2,mn)+re(Math.abs(Le%60),2,mn);case ve.ShortGMT:return"GMT"+(Le>=0?"+":"")+re(Pn,1,mn);case ve.Long:return"GMT"+(Le>=0?"+":"")+re(Pn,2,mn)+":"+re(Math.abs(Le%60),2,mn);case ve.Extended:return 0===It?"Z":(Le>=0?"+":"")+re(Pn,2,mn)+":"+re(Math.abs(Le%60),2,mn);default:throw new Error(`Unknown zone width "${L}"`)}}}const _n=0,ce=4;function Xt(L){return gn(L.getFullYear(),L.getMonth(),L.getDate()+(ce-L.getDay()))}function on(L,Vt=!1){return function(at,It){let Le;if(Vt){const mn=new Date(at.getFullYear(),at.getMonth(),1).getDay()-1,Pn=at.getDate();Le=1+Math.floor((Pn+mn)/7)}else{const mn=Xt(at),Pn=function ye(L){const Vt=gn(L,_n,1).getDay();return gn(L,0,1+(Vt<=ce?ce:ce+7)-Vt)}(mn.getFullYear()),Yn=mn.getTime()-Pn.getTime();Le=1+Math.round(Yn/6048e5)}return re(Le,L,$(It,Ct.MinusSign))}}function oe(L,Vt=!1){return function(at,It){return re(Xt(at).getFullYear(),L,$(It,Ct.MinusSign),Vt)}}const $e={};function Se(L,Vt){L=L.replace(/:/g,"");const at=Date.parse("Jan 01, 1970 00:00:00 "+L)/6e4;return isNaN(at)?Vt:at}function nt(L){return L instanceof Date&&!isNaN(L.valueOf())}const it=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ot=22,Fe=".",Cn="0",de=";",He=",",X="#";function dn(L,Vt,at,It,Le,mn,Pn=!1){let Yn="",to=!1;if(isFinite(L)){let po=function cn(L){let It,Le,mn,Pn,Yn,Vt=Math.abs(L)+"",at=0;for((Le=Vt.indexOf(Fe))>-1&&(Vt=Vt.replace(Fe,"")),(mn=Vt.search(/e/i))>0?(Le<0&&(Le=mn),Le+=+Vt.slice(mn+1),Vt=Vt.substring(0,mn)):Le<0&&(Le=Vt.length),mn=0;Vt.charAt(mn)===Cn;mn++);if(mn===(Yn=Vt.length))It=[0],Le=1;else{for(Yn--;Vt.charAt(Yn)===Cn;)Yn--;for(Le-=mn,It=[],Pn=0;mn<=Yn;mn++,Pn++)It[Pn]=Number(Vt.charAt(mn))}return Le>Ot&&(It=It.splice(0,Ot-1),at=Le-1,Le=1),{digits:It,exponent:at,integerLen:Le}}(L);Pn&&(po=function le(L){if(0===L.digits[0])return L;const Vt=L.digits.length-L.integerLen;return L.exponent?L.exponent+=2:(0===Vt?L.digits.push(0,0):1===Vt&&L.digits.push(0),L.integerLen+=2),L}(po));let p=Vt.minInt,K=Vt.minFrac,d=Vt.maxFrac;if(mn){const yn=mn.match(it);if(null===yn)throw new Error(`${mn} is not a valid digit info`);const An=yn[1],Nn=yn[3],ui=yn[5];null!=An&&(p=Ie(An)),null!=Nn&&(K=Ie(Nn)),null!=ui?d=Ie(ui):null!=Nn&&K>d&&(d=K)}!function se(L,Vt,at){if(Vt>at)throw new Error(`The minimum number of digits after fraction (${Vt}) is higher than the maximum (${at}).`);let It=L.digits,Le=It.length-L.integerLen;const mn=Math.min(Math.max(Vt,Le),at);let Pn=mn+L.integerLen,Yn=It[Pn];if(Pn>0){It.splice(Math.max(L.integerLen,Pn));for(let K=Pn;K<It.length;K++)It[K]=0}else{Le=Math.max(0,Le),L.integerLen=1,It.length=Math.max(1,Pn=mn+1),It[0]=0;for(let K=1;K<Pn;K++)It[K]=0}if(Yn>=5)if(Pn-1<0){for(let K=0;K>Pn;K--)It.unshift(0),L.integerLen++;It.unshift(1),L.integerLen++}else It[Pn-1]++;for(;Le<Math.max(0,mn);Le++)It.push(0);let to=0!==mn;const po=Vt+L.integerLen,p=It.reduceRight(function(K,d,v,S){return S[v]=(d+=K)<10?d:d-10,to&&(0===S[v]&&v>=po?S.pop():to=!1),d>=10?1:0},0);p&&(It.unshift(p),L.integerLen++)}(po,K,d);let v=po.digits,S=po.integerLen;const pe=po.exponent;let Ue=[];for(to=v.every(yn=>!yn);S<p;S++)v.unshift(0);for(;S<0;S++)v.unshift(0);S>0?Ue=v.splice(S,v.length):(Ue=v,v=[0]);const hn=[];for(v.length>=Vt.lgSize&&hn.unshift(v.splice(-Vt.lgSize,v.length).join(""));v.length>Vt.gSize;)hn.unshift(v.splice(-Vt.gSize,v.length).join(""));v.length&&hn.unshift(v.join("")),Yn=hn.join($(at,It)),Ue.length&&(Yn+=$(at,Le)+Ue.join("")),pe&&(Yn+=$(at,Ct.Exponential)+"+"+pe)}else Yn=$(at,Ct.Infinity);return Yn=L<0&&!to?Vt.negPre+Yn+Vt.negSuf:Vt.posPre+Yn+Vt.posSuf,Yn}function Ne(L,Vt="-"){const at={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},It=L.split(de),Le=It[0],mn=It[1],Pn=-1!==Le.indexOf(Fe)?Le.split(Fe):[Le.substring(0,Le.lastIndexOf(Cn)+1),Le.substring(Le.lastIndexOf(Cn)+1)],Yn=Pn[0],to=Pn[1]||"";at.posPre=Yn.substring(0,Yn.indexOf(X));for(let p=0;p<to.length;p++){const K=to.charAt(p);K===Cn?at.minFrac=at.maxFrac=p+1:K===X?at.maxFrac=p+1:at.posSuf+=K}const po=Yn.split(He);if(at.gSize=po[1]?po[1].length:0,at.lgSize=po[2]||po[1]?(po[2]||po[1]).length:0,mn){const p=Le.length-at.posPre.length-at.posSuf.length,K=mn.indexOf(X);at.negPre=mn.substring(0,K).replace(/'/g,""),at.negSuf=mn.slice(K+p).replace(/'/g,"")}else at.negPre=Vt+at.posPre,at.negSuf=at.posSuf;return at}function Ie(L){const Vt=parseInt(L);if(isNaN(Vt))throw new Error("Invalid integer literal when parsing "+L);return Vt}function Ji(L,Vt,at){return(0,o.dwT)(L,Vt,at)}function Ei(L,Vt){Vt=encodeURIComponent(Vt);for(const at of L.split(";")){const It=at.indexOf("="),[Le,mn]=-1==It?[at,""]:[at.slice(0,It),at.slice(It+1)];if(Le.trim()===Vt)return decodeURIComponent(mn)}return null}const Yi=/\s+/,No=[];let Mo=(()=>{class L{constructor(at,It,Le,mn){this._iterableDiffers=at,this._keyValueDiffers=It,this._ngEl=Le,this._renderer=mn,this.initialClasses=No,this.stateMap=new Map}set klass(at){this.initialClasses=null!=at?at.trim().split(Yi):No}set ngClass(at){this.rawClass="string"==typeof at?at.trim().split(Yi):at}ngDoCheck(){for(const It of this.initialClasses)this._updateState(It,!0);const at=this.rawClass;if(Array.isArray(at)||at instanceof Set)for(const It of at)this._updateState(It,!0);else if(null!=at)for(const It of Object.keys(at))this._updateState(It,!!at[It]);this._applyStateDiff()}_updateState(at,It){const Le=this.stateMap.get(at);void 0!==Le?(Le.enabled!==It&&(Le.changed=!0,Le.enabled=It),Le.touched=!0):this.stateMap.set(at,{enabled:It,changed:!0,touched:!0})}_applyStateDiff(){for(const at of this.stateMap){const It=at[0],Le=at[1];Le.changed?(this._toggleClass(It,Le.enabled),Le.changed=!1):Le.touched||(Le.enabled&&this._toggleClass(It,!1),this.stateMap.delete(It)),Le.touched=!1}}_toggleClass(at,It){(at=at.trim()).length>0&&at.split(Yi).forEach(Le=>{It?this._renderer.addClass(this._ngEl.nativeElement,Le):this._renderer.removeClass(this._ngEl.nativeElement,Le)})}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.ZZ4),o.Y36(o.aQg),o.Y36(o.SBq),o.Y36(o.Qsj))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return L})();class io{constructor(Vt,at,It,Le){this.$implicit=Vt,this.ngForOf=at,this.index=It,this.count=Le}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ye=(()=>{class L{set ngForOf(at){this._ngForOf=at,this._ngForOfDirty=!0}set ngForTrackBy(at){this._trackByFn=at}get ngForTrackBy(){return this._trackByFn}constructor(at,It,Le){this._viewContainer=at,this._template=It,this._differs=Le,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(at){at&&(this._template=at)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const at=this._ngForOf;!this._differ&&at&&(this._differ=this._differs.find(at).create(this.ngForTrackBy))}if(this._differ){const at=this._differ.diff(this._ngForOf);at&&this._applyChanges(at)}}_applyChanges(at){const It=this._viewContainer;at.forEachOperation((Le,mn,Pn)=>{if(null==Le.previousIndex)It.createEmbeddedView(this._template,new io(Le.item,this._ngForOf,-1,-1),null===Pn?void 0:Pn);else if(null==Pn)It.remove(null===mn?void 0:mn);else if(null!==mn){const Yn=It.get(mn);It.move(Yn,Pn),Sn(Yn,Le)}});for(let Le=0,mn=It.length;Le<mn;Le++){const Yn=It.get(Le).context;Yn.index=Le,Yn.count=mn,Yn.ngForOf=this._ngForOf}at.forEachIdentityChange(Le=>{Sn(It.get(Le.currentIndex),Le)})}static ngTemplateContextGuard(at,It){return!0}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return L})();function Sn(L,Vt){L.context.$implicit=Vt.item}let Zt=(()=>{class L{constructor(at,It){this._viewContainer=at,this._context=new kt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=It}set ngIf(at){this._context.$implicit=this._context.ngIf=at,this._updateView()}set ngIfThen(at){fe("ngIfThen",at),this._thenTemplateRef=at,this._thenViewRef=null,this._updateView()}set ngIfElse(at){fe("ngIfElse",at),this._elseTemplateRef=at,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(at,It){return!0}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.s_b),o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return L})();class kt{constructor(){this.$implicit=null,this.ngIf=null}}function fe(L,Vt){if(Vt&&!Vt.createEmbeddedView)throw new Error(`${L} must be a TemplateRef, but received '${(0,o.AaK)(Vt)}'.`)}class sn{constructor(Vt,at){this._viewContainerRef=Vt,this._templateRef=at,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Vt){Vt&&!this._created?this.create():!Vt&&this._created&&this.destroy()}}let Gn=(()=>{class L{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(at){this._ngSwitch=at,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(at){this._defaultViews.push(at)}_matchCase(at){const It=at==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||It,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),It}_updateDefaultCases(at){if(this._defaultViews.length>0&&at!==this._defaultUsed){this._defaultUsed=at;for(const It of this._defaultViews)It.enforceState(at)}}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return L})(),Do=(()=>{class L{constructor(at,It,Le){this.ngSwitch=Le,Le._addCase(),this._view=new sn(at,It)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(Gn,9))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return L})(),Fo=(()=>{class L{constructor(at,It,Le){Le._addDefault(new sn(at,It))}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(Gn,9))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return L})(),Bt=(()=>{class L{constructor(at,It,Le){this._ngEl=at,this._differs=It,this._renderer=Le,this._ngStyle=null,this._differ=null}set ngStyle(at){this._ngStyle=at,!this._differ&&at&&(this._differ=this._differs.find(at).create())}ngDoCheck(){if(this._differ){const at=this._differ.diff(this._ngStyle);at&&this._applyChanges(at)}}_setStyle(at,It){const[Le,mn]=at.split("."),Pn=-1===Le.indexOf("-")?void 0:o.JOm.DashCase;null!=It?this._renderer.setStyle(this._ngEl.nativeElement,Le,mn?`${It}${mn}`:It,Pn):this._renderer.removeStyle(this._ngEl.nativeElement,Le,Pn)}_applyChanges(at){at.forEachRemovedItem(It=>this._setStyle(It.key,null)),at.forEachAddedItem(It=>this._setStyle(It.key,It.currentValue)),at.forEachChangedItem(It=>this._setStyle(It.key,It.currentValue))}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.SBq),o.Y36(o.aQg),o.Y36(o.Qsj))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return L})(),he=(()=>{class L{constructor(at){this._viewContainerRef=at,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(at){if(at.ngTemplateOutlet||at.ngTemplateOutletInjector){const It=this._viewContainerRef;if(this._viewRef&&It.remove(It.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Le,ngTemplateOutletContext:mn,ngTemplateOutletInjector:Pn}=this;this._viewRef=It.createEmbeddedView(Le,mn,Pn?{injector:Pn}:void 0)}else this._viewRef=null}else this._viewRef&&at.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.s_b))};static#e=this.\u0275dir=o.lG2({type:L,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[o.TTD]})}return L})();function xn(L,Vt){return new o.vHH(2100,!1)}class Fn{createSubscription(Vt,at){return(0,o.rg0)(()=>Vt.subscribe({next:at,error:It=>{throw It}}))}dispose(Vt){(0,o.rg0)(()=>Vt.unsubscribe())}}class li{createSubscription(Vt,at){return Vt.then(at,It=>{throw It})}dispose(Vt){}}const ji=new li,wo=new Fn;let Wi=(()=>{class L{constructor(at){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=at}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(at){return this._obj?at!==this._obj?(this._dispose(),this.transform(at)):this._latestValue:(at&&this._subscribe(at),this._latestValue)}_subscribe(at){this._obj=at,this._strategy=this._selectStrategy(at),this._subscription=this._strategy.createSubscription(at,It=>this._updateLatestValue(at,It))}_selectStrategy(at){if((0,o.QGY)(at))return ji;if((0,o.F4k)(at))return wo;throw xn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(at,It){at===this._obj&&(this._latestValue=It,this._ref.markForCheck())}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.sBO,16))};static#e=this.\u0275pipe=o.Yjl({name:"async",type:L,pure:!1,standalone:!0})}return L})(),go=(()=>{class L{transform(at){if(null==at)return null;if("string"!=typeof at)throw xn();return at.toLowerCase()}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275pipe=o.Yjl({name:"lowercase",type:L,pure:!0,standalone:!0})}return L})();const Xi=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let co=(()=>{class L{transform(at){if(null==at)return null;if("string"!=typeof at)throw xn();return at.replace(Xi,It=>It[0].toUpperCase()+It.slice(1).toLowerCase())}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275pipe=o.Yjl({name:"titlecase",type:L,pure:!0,standalone:!0})}return L})(),Ho=(()=>{class L{transform(at){if(null==at)return null;if("string"!=typeof at)throw xn();return at.toUpperCase()}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275pipe=o.Yjl({name:"uppercase",type:L,pure:!0,standalone:!0})}return L})();const ii=new o.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),lo=new o.OlP("DATE_PIPE_DEFAULT_OPTIONS");let xo=(()=>{class L{constructor(at,It,Le){this.locale=at,this.defaultTimezone=It,this.defaultOptions=Le}transform(at,It,Le,mn){if(null==at||""===at||at!=at)return null;try{return tn(at,It??this.defaultOptions?.dateFormat??"mediumDate",mn||this.locale,Le??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Pn){throw xn()}}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.soG,16),o.Y36(ii,24),o.Y36(lo,24))};static#e=this.\u0275pipe=o.Yjl({name:"date",type:L,pure:!0,standalone:!0})}return L})(),Mt=(()=>{class L{constructor(at){this.differs=at,this.keyValues=[],this.compareFn=Kt}transform(at,It=Kt){if(!at||!(at instanceof Map)&&"object"!=typeof at)return null;this.differ||(this.differ=this.differs.find(at).create());const Le=this.differ.diff(at),mn=It!==this.compareFn;return Le&&(this.keyValues=[],Le.forEachItem(Pn=>{this.keyValues.push(function xe(L,Vt){return{key:L,value:Vt}}(Pn.key,Pn.currentValue))})),(Le||mn)&&(this.keyValues.sort(It),this.compareFn=It),this.keyValues}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.aQg,16))};static#e=this.\u0275pipe=o.Yjl({name:"keyvalue",type:L,pure:!1,standalone:!0})}return L})();function Kt(L,Vt){const at=L.key,It=Vt.key;if(at===It)return 0;if(void 0===at)return 1;if(void 0===It)return-1;if(null===at)return 1;if(null===It)return-1;if("string"==typeof at&&"string"==typeof It)return at<It?-1:1;if("number"==typeof at&&"number"==typeof It)return at-It;if("boolean"==typeof at&&"boolean"==typeof It)return at<It?-1:1;const Le=String(at),mn=String(It);return Le==mn?0:Le<mn?-1:1}let ge=(()=>{class L{constructor(at){this._locale=at}transform(at,It,Le){if(!Dn(at))return null;Le=Le||this._locale;try{return function ke(L,Vt,at){return dn(L,Ne(pt(Vt,q.Decimal),$(Vt,Ct.MinusSign)),Vt,Ct.Group,Ct.Decimal,at)}(Un(at),Le,It)}catch(mn){throw xn()}}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.soG,16))};static#e=this.\u0275pipe=o.Yjl({name:"number",type:L,pure:!0,standalone:!0})}return L})(),un=(()=>{class L{constructor(at,It="USD"){this._locale=at,this._defaultCurrencyCode=It}transform(at,It=this._defaultCurrencyCode,Le="symbol",mn,Pn){if(!Dn(at))return null;Pn=Pn||this._locale,"boolean"==typeof Le&&(Le=Le?"symbol":"code");let Yn=It||this._defaultCurrencyCode;"code"!==Le&&(Yn="symbol"===Le||"symbol-narrow"===Le?function In(L,Vt,at="en"){const It=function yt(L){return(0,o.cg1)(L)[o.wAp.Currencies]}(at)[L]||j[L]||[],Le=It[1];return"narrow"===Vt&&"string"==typeof Le?Le:It[0]||L}(Yn,"symbol"===Le?"wide":"narrow",Pn):Le);try{return function Tn(L,Vt,at,It,Le){const Pn=Ne(pt(Vt,q.Currency),$(Vt,Ct.MinusSign));return Pn.minFrac=function jt(L){let Vt;const at=j[L];return at&&(Vt=at[2]),"number"==typeof Vt?Vt:2}(It),Pn.maxFrac=Pn.minFrac,dn(L,Pn,Vt,Ct.CurrencyGroup,Ct.CurrencyDecimal,Le).replace("\xa4",at).replace("\xa4","").trim()}(Un(at),Pn,Yn,It,mn)}catch(to){throw xn()}}static#t=this.\u0275fac=function(It){return new(It||L)(o.Y36(o.soG,16),o.Y36(o.EJc,16))};static#e=this.\u0275pipe=o.Yjl({name:"currency",type:L,pure:!0,standalone:!0})}return L})();function Dn(L){return!(null==L||""===L||L!=L)}function Un(L){if("string"==typeof L&&!isNaN(Number(L)-parseFloat(L)))return Number(L);if("number"!=typeof L)throw new Error(`${L} is not a number`);return L}let Qn=(()=>{class L{transform(at,It,Le){if(null==at)return null;if(!this.supports(at))throw xn();return at.slice(It,Le)}supports(at){return"string"==typeof at||Array.isArray(at)}static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275pipe=o.Yjl({name:"slice",type:L,pure:!1,standalone:!0})}return L})(),Oi=(()=>{class L{static#t=this.\u0275fac=function(It){return new(It||L)};static#e=this.\u0275mod=o.oAB({type:L});static#n=this.\u0275inj=o.cJS({})}return L})();const ni="browser",pi="server";function Li(L){return L===ni}function So(L){return L===pi}let Bo=(()=>{class L{static#t=this.\u0275prov=(0,o.Yz7)({token:L,providedIn:"root",factory:()=>new Ao((0,o.LFG)(i),window)})}return L})();class Ao{constructor(Vt,at){this.document=Vt,this.window=at,this.offset=()=>[0,0]}setOffset(Vt){this.offset=Array.isArray(Vt)?()=>Vt:Vt}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Vt){this.supportsScrolling()&&this.window.scrollTo(Vt[0],Vt[1])}scrollToAnchor(Vt){if(!this.supportsScrolling())return;const at=function nr(L,Vt){const at=L.getElementById(Vt)||L.getElementsByName(Vt)[0];if(at)return at;if("function"==typeof L.createTreeWalker&&L.body&&"function"==typeof L.body.attachShadow){const It=L.createTreeWalker(L.body,NodeFilter.SHOW_ELEMENT);let Le=It.currentNode;for(;Le;){const mn=Le.shadowRoot;if(mn){const Pn=mn.getElementById(Vt)||mn.querySelector(`[name="${Vt}"]`);if(Pn)return Pn}Le=It.nextNode()}}return null}(this.document,Vt);at&&(this.scrollToElement(at),at.focus())}setHistoryScrollRestoration(Vt){this.supportsScrolling()&&(this.window.history.scrollRestoration=Vt)}scrollToElement(Vt){const at=Vt.getBoundingClientRect(),It=at.left+this.window.pageXOffset,Le=at.top+this.window.pageYOffset,mn=this.offset();this.window.scrollTo(It-mn[0],Le-mn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Ri{}},9862:(Je,Rt,c)=>{"use strict";c.d(Rt,{JF:()=>Fe,TP:()=>st,Zn:()=>Pt,dh:()=>Tn,eN:()=>Jt});var o=c(5879),e=c(2096),g=c(7715),x=c(5592),l=c(6328),i=c(2181),R=c(7398),f=c(4716),t=c(4664),y=c(9397),O=c(1374),G=c(6814);class U{}class lt{}class ut{constructor(ke){this.normalizedNames=new Map,this.lazyUpdate=null,ke?"string"==typeof ke?this.lazyInit=()=>{this.headers=new Map,ke.split("\n").forEach(Ne=>{const le=Ne.indexOf(":");if(le>0){const cn=Ne.slice(0,le),se=cn.toLowerCase(),Ie=Ne.slice(le+1).trim();this.maybeSetNormalizedName(cn,se),this.headers.has(se)?this.headers.get(se).push(Ie):this.headers.set(se,[Ie])}})}:typeof Headers<"u"&&ke instanceof Headers?(this.headers=new Map,ke.forEach((Ne,le)=>{this.setHeaderEntries(le,Ne)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(ke).forEach(([Ne,le])=>{this.setHeaderEntries(Ne,le)})}:this.headers=new Map}has(ke){return this.init(),this.headers.has(ke.toLowerCase())}get(ke){this.init();const Ne=this.headers.get(ke.toLowerCase());return Ne&&Ne.length>0?Ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(ke){return this.init(),this.headers.get(ke.toLowerCase())||null}append(ke,Ne){return this.clone({name:ke,value:Ne,op:"a"})}set(ke,Ne){return this.clone({name:ke,value:Ne,op:"s"})}delete(ke,Ne){return this.clone({name:ke,value:Ne,op:"d"})}maybeSetNormalizedName(ke,Ne){this.normalizedNames.has(Ne)||this.normalizedNames.set(Ne,ke)}init(){this.lazyInit&&(this.lazyInit instanceof ut?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(ke=>this.applyUpdate(ke)),this.lazyUpdate=null))}copyFrom(ke){ke.init(),Array.from(ke.headers.keys()).forEach(Ne=>{this.headers.set(Ne,ke.headers.get(Ne)),this.normalizedNames.set(Ne,ke.normalizedNames.get(Ne))})}clone(ke){const Ne=new ut;return Ne.lazyInit=this.lazyInit&&this.lazyInit instanceof ut?this.lazyInit:this,Ne.lazyUpdate=(this.lazyUpdate||[]).concat([ke]),Ne}applyUpdate(ke){const Ne=ke.name.toLowerCase();switch(ke.op){case"a":case"s":let le=ke.value;if("string"==typeof le&&(le=[le]),0===le.length)return;this.maybeSetNormalizedName(ke.name,Ne);const cn=("a"===ke.op?this.headers.get(Ne):void 0)||[];cn.push(...le),this.headers.set(Ne,cn);break;case"d":const se=ke.value;if(se){let Ie=this.headers.get(Ne);if(!Ie)return;Ie=Ie.filter(We=>-1===se.indexOf(We)),0===Ie.length?(this.headers.delete(Ne),this.normalizedNames.delete(Ne)):this.headers.set(Ne,Ie)}else this.headers.delete(Ne),this.normalizedNames.delete(Ne)}}setHeaderEntries(ke,Ne){const le=(Array.isArray(Ne)?Ne:[Ne]).map(se=>se.toString()),cn=ke.toLowerCase();this.headers.set(cn,le),this.maybeSetNormalizedName(ke,cn)}forEach(ke){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ne=>ke(this.normalizedNames.get(Ne),this.headers.get(Ne)))}}class A{encodeKey(ke){return _(ke)}encodeValue(ke){return _(ke)}decodeKey(ke){return decodeURIComponent(ke)}decodeValue(ke){return decodeURIComponent(ke)}}const tt=/%(\d[a-f0-9])/gi,ct={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _(je){return encodeURIComponent(je).replace(tt,(ke,Ne)=>ct[Ne]??ke)}function j(je){return`${je}`}class q{constructor(ke={}){if(this.updates=null,this.cloneFrom=null,this.encoder=ke.encoder||new A,ke.fromString){if(ke.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xt(je,ke){const Ne=new Map;return je.length>0&&je.replace(/^\?/,"").split("&").forEach(cn=>{const se=cn.indexOf("="),[Ie,We]=-1==se?[ke.decodeKey(cn),""]:[ke.decodeKey(cn.slice(0,se)),ke.decodeValue(cn.slice(se+1))],Mn=Ne.get(Ie)||[];Mn.push(We),Ne.set(Ie,Mn)}),Ne}(ke.fromString,this.encoder)}else ke.fromObject?(this.map=new Map,Object.keys(ke.fromObject).forEach(Ne=>{const le=ke.fromObject[Ne],cn=Array.isArray(le)?le.map(j):[j(le)];this.map.set(Ne,cn)})):this.map=null}has(ke){return this.init(),this.map.has(ke)}get(ke){this.init();const Ne=this.map.get(ke);return Ne?Ne[0]:null}getAll(ke){return this.init(),this.map.get(ke)||null}keys(){return this.init(),Array.from(this.map.keys())}append(ke,Ne){return this.clone({param:ke,value:Ne,op:"a"})}appendAll(ke){const Ne=[];return Object.keys(ke).forEach(le=>{const cn=ke[le];Array.isArray(cn)?cn.forEach(se=>{Ne.push({param:le,value:se,op:"a"})}):Ne.push({param:le,value:cn,op:"a"})}),this.clone(Ne)}set(ke,Ne){return this.clone({param:ke,value:Ne,op:"s"})}delete(ke,Ne){return this.clone({param:ke,value:Ne,op:"d"})}toString(){return this.init(),this.keys().map(ke=>{const Ne=this.encoder.encodeKey(ke);return this.map.get(ke).map(le=>Ne+"="+this.encoder.encodeValue(le)).join("&")}).filter(ke=>""!==ke).join("&")}clone(ke){const Ne=new q({encoder:this.encoder});return Ne.cloneFrom=this.cloneFrom||this,Ne.updates=(this.updates||[]).concat(ke),Ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(ke=>this.map.set(ke,this.cloneFrom.map.get(ke))),this.updates.forEach(ke=>{switch(ke.op){case"a":case"s":const Ne=("a"===ke.op?this.map.get(ke.param):void 0)||[];Ne.push(j(ke.value)),this.map.set(ke.param,Ne);break;case"d":if(void 0===ke.value){this.map.delete(ke.param);break}{let le=this.map.get(ke.param)||[];const cn=le.indexOf(j(ke.value));-1!==cn&&le.splice(cn,1),le.length>0?this.map.set(ke.param,le):this.map.delete(ke.param)}}}),this.cloneFrom=this.updates=null)}}class vt{constructor(){this.map=new Map}set(ke,Ne){return this.map.set(ke,Ne),this}get(ke){return this.map.has(ke)||this.map.set(ke,ke.defaultValue()),this.map.get(ke)}delete(ke){return this.map.delete(ke),this}has(ke){return this.map.has(ke)}keys(){return this.map.keys()}}function zt(je){return typeof ArrayBuffer<"u"&&je instanceof ArrayBuffer}function Ct(je){return typeof Blob<"u"&&je instanceof Blob}function H(je){return typeof FormData<"u"&&je instanceof FormData}class z{constructor(ke,Ne,le,cn){let se;if(this.url=Ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=ke.toUpperCase(),function gt(je){switch(je){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||cn?(this.body=void 0!==le?le:null,se=cn):se=le,se&&(this.reportProgress=!!se.reportProgress,this.withCredentials=!!se.withCredentials,se.responseType&&(this.responseType=se.responseType),se.headers&&(this.headers=se.headers),se.context&&(this.context=se.context),se.params&&(this.params=se.params)),this.headers||(this.headers=new ut),this.context||(this.context=new vt),this.params){const Ie=this.params.toString();if(0===Ie.length)this.urlWithParams=Ne;else{const We=Ne.indexOf("?");this.urlWithParams=Ne+(-1===We?"?":We<Ne.length-1?"&":"")+Ie}}else this.params=new q,this.urlWithParams=Ne}serializeBody(){return null===this.body?null:zt(this.body)||Ct(this.body)||H(this.body)||function J(je){return typeof URLSearchParams<"u"&&je instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof q?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||H(this.body)?null:Ct(this.body)?this.body.type||null:zt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof q?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(ke={}){const Ne=ke.method||this.method,le=ke.url||this.url,cn=ke.responseType||this.responseType,se=void 0!==ke.body?ke.body:this.body,Ie=void 0!==ke.withCredentials?ke.withCredentials:this.withCredentials,We=void 0!==ke.reportProgress?ke.reportProgress:this.reportProgress;let Mn=ke.headers||this.headers,ci=ke.params||this.params;const Ji=ke.context??this.context;return void 0!==ke.setHeaders&&(Mn=Object.keys(ke.setHeaders).reduce((Ei,Yi)=>Ei.set(Yi,ke.setHeaders[Yi]),Mn)),ke.setParams&&(ci=Object.keys(ke.setParams).reduce((Ei,Yi)=>Ei.set(Yi,ke.setParams[Yi]),ci)),new z(Ne,le,se,{params:ci,headers:Mn,context:Ji,reportProgress:We,responseType:cn,withCredentials:Ie})}}var F=function(je){return je[je.Sent=0]="Sent",je[je.UploadProgress=1]="UploadProgress",je[je.ResponseHeader=2]="ResponseHeader",je[je.DownloadProgress=3]="DownloadProgress",je[je.Response=4]="Response",je[je.User=5]="User",je}(F||{});class rt{constructor(ke,Ne=200,le="OK"){this.headers=ke.headers||new ut,this.status=void 0!==ke.status?ke.status:Ne,this.statusText=ke.statusText||le,this.url=ke.url||null,this.ok=this.status>=200&&this.status<300}}class V extends rt{constructor(ke={}){super(ke),this.type=F.ResponseHeader}clone(ke={}){return new V({headers:ke.headers||this.headers,status:void 0!==ke.status?ke.status:this.status,statusText:ke.statusText||this.statusText,url:ke.url||this.url||void 0})}}class Pt extends rt{constructor(ke={}){super(ke),this.type=F.Response,this.body=void 0!==ke.body?ke.body:null}clone(ke={}){return new Pt({body:void 0!==ke.body?ke.body:this.body,headers:ke.headers||this.headers,status:void 0!==ke.status?ke.status:this.status,statusText:ke.statusText||this.statusText,url:ke.url||this.url||void 0})}}class $t extends rt{constructor(ke){super(ke,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${ke.url||"(unknown url)"}`:`Http failure response for ${ke.url||"(unknown url)"}: ${ke.status} ${ke.statusText}`,this.error=ke.error||null}}function Lt(je,ke){return{body:ke,headers:je.headers,context:je.context,observe:je.observe,params:je.params,reportProgress:je.reportProgress,responseType:je.responseType,withCredentials:je.withCredentials}}let Jt=(()=>{class je{constructor(Ne){this.handler=Ne}request(Ne,le,cn={}){let se;if(Ne instanceof z)se=Ne;else{let Mn,ci;Mn=cn.headers instanceof ut?cn.headers:new ut(cn.headers),cn.params&&(ci=cn.params instanceof q?cn.params:new q({fromObject:cn.params})),se=new z(Ne,le,void 0!==cn.body?cn.body:null,{headers:Mn,context:cn.context,params:ci,reportProgress:cn.reportProgress,responseType:cn.responseType||"json",withCredentials:cn.withCredentials})}const Ie=(0,e.of)(se).pipe((0,l.b)(Mn=>this.handler.handle(Mn)));if(Ne instanceof z||"events"===cn.observe)return Ie;const We=Ie.pipe((0,i.h)(Mn=>Mn instanceof Pt));switch(cn.observe||"body"){case"body":switch(se.responseType){case"arraybuffer":return We.pipe((0,R.U)(Mn=>{if(null!==Mn.body&&!(Mn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Mn.body}));case"blob":return We.pipe((0,R.U)(Mn=>{if(null!==Mn.body&&!(Mn.body instanceof Blob))throw new Error("Response is not a Blob.");return Mn.body}));case"text":return We.pipe((0,R.U)(Mn=>{if(null!==Mn.body&&"string"!=typeof Mn.body)throw new Error("Response is not a string.");return Mn.body}));default:return We.pipe((0,R.U)(Mn=>Mn.body))}case"response":return We;default:throw new Error(`Unreachable: unhandled observe type ${cn.observe}}`)}}delete(Ne,le={}){return this.request("DELETE",Ne,le)}get(Ne,le={}){return this.request("GET",Ne,le)}head(Ne,le={}){return this.request("HEAD",Ne,le)}jsonp(Ne,le){return this.request("JSONP",Ne,{params:(new q).append(le,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ne,le={}){return this.request("OPTIONS",Ne,le)}patch(Ne,le,cn={}){return this.request("PATCH",Ne,Lt(cn,le))}post(Ne,le,cn={}){return this.request("POST",Ne,Lt(cn,le))}put(Ne,le,cn={}){return this.request("PUT",Ne,Lt(cn,le))}static#t=this.\u0275fac=function(le){return new(le||je)(o.LFG(U))};static#e=this.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac})}return je})();function ee(je,ke){return ke(je)}function B(je,ke){return(Ne,le)=>ke.intercept(Ne,{handle:cn=>je(cn,le)})}const st=new o.OlP(""),ie=new o.OlP(""),Ae=new o.OlP("");function en(){let je=null;return(ke,Ne)=>{null===je&&(je=((0,o.f3M)(st,{optional:!0})??[]).reduceRight(B,ee));const le=(0,o.f3M)(o.HDt),cn=le.add();return je(ke,Ne).pipe((0,f.x)(()=>le.remove(cn)))}}let In=(()=>{class je extends U{constructor(Ne,le){super(),this.backend=Ne,this.injector=le,this.chain=null,this.pendingTasks=(0,o.f3M)(o.HDt)}handle(Ne){if(null===this.chain){const cn=Array.from(new Set([...this.injector.get(ie),...this.injector.get(Ae,[])]));this.chain=cn.reduceRight((se,Ie)=>function At(je,ke,Ne){return(le,cn)=>Ne.runInContext(()=>ke(le,se=>je(se,cn)))}(se,Ie,this.injector),ee)}const le=this.pendingTasks.add();return this.chain(Ne,cn=>this.backend.handle(cn)).pipe((0,f.x)(()=>this.pendingTasks.remove(le)))}static#t=this.\u0275fac=function(le){return new(le||je)(o.LFG(lt),o.LFG(o.lqb))};static#e=this.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac})}return je})();const rn=/^\)\]\}',?\n/;let ue=(()=>{class je{constructor(Ne){this.xhrFactory=Ne}handle(Ne){if("JSONP"===Ne.method)throw new o.vHH(-2800,!1);const le=this.xhrFactory;return(le.\u0275loadImpl?(0,g.D)(le.\u0275loadImpl()):(0,e.of)(null)).pipe((0,t.w)(()=>new x.y(se=>{const Ie=le.build();if(Ie.open(Ne.method,Ne.urlWithParams),Ne.withCredentials&&(Ie.withCredentials=!0),Ne.headers.forEach((Ai,Ui)=>Ie.setRequestHeader(Ai,Ui.join(","))),Ne.headers.has("Accept")||Ie.setRequestHeader("Accept","application/json, text/plain, */*"),!Ne.headers.has("Content-Type")){const Ai=Ne.detectContentTypeHeader();null!==Ai&&Ie.setRequestHeader("Content-Type",Ai)}if(Ne.responseType){const Ai=Ne.responseType.toLowerCase();Ie.responseType="json"!==Ai?Ai:"text"}const We=Ne.serializeBody();let Mn=null;const ci=()=>{if(null!==Mn)return Mn;const Ai=Ie.statusText||"OK",Ui=new ut(Ie.getAllResponseHeaders()),io=function re(je){return"responseURL"in je&&je.responseURL?je.responseURL:/^X-Request-URL:/m.test(je.getAllResponseHeaders())?je.getResponseHeader("X-Request-URL"):null}(Ie)||Ne.url;return Mn=new V({headers:Ui,status:Ie.status,statusText:Ai,url:io}),Mn},Ji=()=>{let{headers:Ai,status:Ui,statusText:io,url:Ye}=ci(),Sn=null;204!==Ui&&(Sn=typeof Ie.response>"u"?Ie.responseText:Ie.response),0===Ui&&(Ui=Sn?200:0);let N=Ui>=200&&Ui<300;if("json"===Ne.responseType&&"string"==typeof Sn){const Zt=Sn;Sn=Sn.replace(rn,"");try{Sn=""!==Sn?JSON.parse(Sn):null}catch(kt){Sn=Zt,N&&(N=!1,Sn={error:kt,text:Sn})}}N?(se.next(new Pt({body:Sn,headers:Ai,status:Ui,statusText:io,url:Ye||void 0})),se.complete()):se.error(new $t({error:Sn,headers:Ai,status:Ui,statusText:io,url:Ye||void 0}))},Ei=Ai=>{const{url:Ui}=ci(),io=new $t({error:Ai,status:Ie.status||0,statusText:Ie.statusText||"Unknown Error",url:Ui||void 0});se.error(io)};let Yi=!1;const No=Ai=>{Yi||(se.next(ci()),Yi=!0);let Ui={type:F.DownloadProgress,loaded:Ai.loaded};Ai.lengthComputable&&(Ui.total=Ai.total),"text"===Ne.responseType&&Ie.responseText&&(Ui.partialText=Ie.responseText),se.next(Ui)},Mo=Ai=>{let Ui={type:F.UploadProgress,loaded:Ai.loaded};Ai.lengthComputable&&(Ui.total=Ai.total),se.next(Ui)};return Ie.addEventListener("load",Ji),Ie.addEventListener("error",Ei),Ie.addEventListener("timeout",Ei),Ie.addEventListener("abort",Ei),Ne.reportProgress&&(Ie.addEventListener("progress",No),null!==We&&Ie.upload&&Ie.upload.addEventListener("progress",Mo)),Ie.send(We),se.next({type:F.Sent}),()=>{Ie.removeEventListener("error",Ei),Ie.removeEventListener("abort",Ei),Ie.removeEventListener("load",Ji),Ie.removeEventListener("timeout",Ei),Ne.reportProgress&&(Ie.removeEventListener("progress",No),null!==We&&Ie.upload&&Ie.upload.removeEventListener("progress",Mo)),Ie.readyState!==Ie.DONE&&Ie.abort()}})))}static#t=this.\u0275fac=function(le){return new(le||je)(o.LFG(G.JF))};static#e=this.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac})}return je})();const Ft=new o.OlP("XSRF_ENABLED"),qt=new o.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Me=new o.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class _n{}let ce=(()=>{class je{constructor(Ne,le,cn){this.doc=Ne,this.platform=le,this.cookieName=cn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ne=this.doc.cookie||"";return Ne!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,G.Mx)(Ne,this.cookieName),this.lastCookieString=Ne),this.lastToken}static#t=this.\u0275fac=function(le){return new(le||je)(o.LFG(G.K0),o.LFG(o.Lbi),o.LFG(qt))};static#e=this.\u0275prov=o.Yz7({token:je,factory:je.\u0275fac})}return je})();function ye(je,ke){const Ne=je.url.toLowerCase();if(!(0,o.f3M)(Ft)||"GET"===je.method||"HEAD"===je.method||Ne.startsWith("http://")||Ne.startsWith("https://"))return ke(je);const le=(0,o.f3M)(_n).getToken(),cn=(0,o.f3M)(Me);return null!=le&&!je.headers.has(cn)&&(je=je.clone({headers:je.headers.set(cn,le)})),ke(je)}var on=function(je){return je[je.Interceptors=0]="Interceptors",je[je.LegacyInterceptors=1]="LegacyInterceptors",je[je.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",je[je.NoXsrfProtection=3]="NoXsrfProtection",je[je.JsonpSupport=4]="JsonpSupport",je[je.RequestsMadeViaParent=5]="RequestsMadeViaParent",je[je.Fetch=6]="Fetch",je}(on||{});function $e(...je){const ke=[Jt,ue,In,{provide:U,useExisting:In},{provide:lt,useExisting:ue},{provide:ie,useValue:ye,multi:!0},{provide:Ft,useValue:!0},{provide:_n,useClass:ce}];for(const Ne of je)ke.push(...Ne.\u0275providers);return(0,o.MR2)(ke)}const Se=new o.OlP("LEGACY_INTERCEPTOR_FN");function Ke(){return function oe(je,ke){return{\u0275kind:je,\u0275providers:ke}}(on.LegacyInterceptors,[{provide:Se,useFactory:en},{provide:ie,useExisting:Se,multi:!0}])}let Fe=(()=>{class je{static#t=this.\u0275fac=function(le){return new(le||je)};static#e=this.\u0275mod=o.oAB({type:je});static#n=this.\u0275inj=o.cJS({providers:[$e(Ke())]})}return je})();const de=new o.OlP(""),He=["GET","HEAD"];function X(je,ke){const{isCacheActive:Ne}=(0,o.f3M)(de);if(!Ne||!He.includes(je.method))return ke(je);const le=(0,o.f3M)(o.kie),cn=function ze(je){const{params:ke,method:Ne,responseType:le,url:cn}=je,We=function dn(je){let ke=0;for(const Ne of je)ke=Math.imul(31,ke)+Ne.charCodeAt(0)<<0;return ke+=2147483648,ke.toString()}(Ne+"."+le+"."+cn+"?"+ke.keys().sort().map(Mn=>`${Mn}=${ke.getAll(Mn)}`).join("&"));return(0,o.Cb6)(We)}(je),se=le.get(cn,null);if(se){let Ie=se.body;switch(se.responseType){case"arraybuffer":Ie=(new TextEncoder).encode(se.body).buffer;break;case"blob":Ie=new Blob([se.body])}return(0,e.of)(new Pt({body:Ie,headers:new ut(se.headers),status:se.status,statusText:se.statusText,url:se.url}))}return ke(je).pipe((0,y.b)(Ie=>{Ie instanceof Pt&&le.set(cn,{body:Ie.body,headers:_e(Ie.headers),status:Ie.status,statusText:Ie.statusText,url:Ie.url||"",responseType:je.responseType})}))}function _e(je){const ke={};for(const Ne of je.keys()){const le=je.getAll(Ne);null!==le&&(ke[Ne]=le)}return ke}function Tn(){return[{provide:de,useFactory:()=>((0,o.f3M)(o.DRi).add("httpcache"),{isCacheActive:!0})},{provide:Ae,useValue:X,multi:!0,deps:[o.kie,de]},{provide:o.tb,multi:!0,useFactory:()=>{const je=(0,o.f3M)(o.z2F),ke=(0,o.f3M)(de);return()=>{je.isStable.pipe((0,O.P)(Ne=>Ne)).toPromise().then(()=>{ke.isCacheActive=!1})}}}]}},5879:(Je,Rt,c)=>{"use strict";c.d(Rt,{$8M:()=>Tl,$WT:()=>$o,$Z:()=>Em,AFp:()=>Jg,ALo:()=>gC,AaK:()=>U,Akn:()=>ua,AsE:()=>gh,B6R:()=>ji,BQk:()=>ou,CHM:()=>ia,CRH:()=>AC,Cb6:()=>Qb,DRi:()=>$g,DdM:()=>nC,Dn7:()=>_C,EGt:()=>h1,EJc:()=>oy,EiD:()=>Bg,EpF:()=>Pf,F$t:()=>Ef,F4k:()=>yf,FYo:()=>nm,FiY:()=>hc,G48:()=>Uy,Gf:()=>EC,GfV:()=>im,GkF:()=>nh,Gpc:()=>Ht,Gre:()=>a_,HDt:()=>ev,Hh0:()=>cC,Hsn:()=>Sf,Ikx:()=>fh,JOm:()=>ps,JVY:()=>fb,JZr:()=>_,Jf7:()=>mm,KtG:()=>xs,L6k:()=>_b,LAX:()=>vb,LFG:()=>de,LSH:()=>rp,Lbi:()=>mp,Lck:()=>qO,MAs:()=>Mf,MGl:()=>ru,MMx:()=>J_,MR2:()=>cp,NdJ:()=>oh,O4$:()=>Sc,Ojb:()=>zb,OlP:()=>Uo,Oqu:()=>hh,P3R:()=>Zg,PXZ:()=>Sy,Q6J:()=>Xp,QGY:()=>ih,QbO:()=>Gb,Qsj:()=>l0,R0b:()=>Fr,RDi:()=>lb,Rgc:()=>hd,SBq:()=>Wl,Sil:()=>ay,Suo:()=>SC,TTD:()=>K,TgZ:()=>eu,Udp:()=>dh,VKq:()=>iC,VuI:()=>m1,W1O:()=>NC,WFA:()=>rh,WLB:()=>oC,XFs:()=>me,Xpm:()=>li,Xq5:()=>rf,Xts:()=>jl,Y36:()=>$c,YKP:()=>z_,YNc:()=>Cf,Yjl:()=>ko,Yz7:()=>At,Z0I:()=>en,ZZ4:()=>$h,_Bn:()=>G_,_UZ:()=>eh,_Vd:()=>Jl,_c5:()=>e1,_uU:()=>Xf,aQg:()=>Kh,c2e:()=>tv,cJS:()=>ie,cg1:()=>Ch,d8E:()=>_h,dDg:()=>Ty,dqk:()=>re,dwT:()=>qx,eBb:()=>Cb,eFA:()=>uv,eJc:()=>Lh,ekj:()=>uh,eoX:()=>av,f3M:()=>X,g9A:()=>Wg,h0i:()=>Dc,hGG:()=>n1,hij:()=>cu,iGM:()=>kC,ifc:()=>cn,ip1:()=>XC,jDz:()=>W_,kEZ:()=>rC,kL8:()=>__,kcU:()=>Ic,kie:()=>Gl,kuF:()=>q,l5B:()=>sC,lG2:()=>Ho,lcZ:()=>mC,lnq:()=>mh,lqb:()=>Ma,lri:()=>rv,mCW:()=>Id,n5z:()=>_d,n_E:()=>hu,oAB:()=>go,oJD:()=>Ug,oxw:()=>kf,pB0:()=>bb,q3G:()=>Oc,qFp:()=>_1,qLn:()=>qa,qOj:()=>Gp,qZA:()=>nu,qbA:()=>aC,qzn:()=>Yc,rWj:()=>sv,rg0:()=>mn,s9C:()=>sh,sBO:()=>Zy,s_b:()=>fu,soG:()=>Cu,tb:()=>jh,tp0:()=>gc,uIk:()=>Qp,uOi:()=>sp,vHH:()=>j,vpe:()=>xa,wAp:()=>ll,xi3:()=>fC,xp6:()=>Dm,ynx:()=>iu,z2F:()=>hl,z3N:()=>Fa,zSh:()=>up,zs3:()=>da});var o=c(8645),e=c(7394),g=c(5592),x=c(3019),l=c(5619),i=c(2096),R=c(3020),f=c(4664),t=c(3997),y=c(1374);function O(n){for(let r in n)if(n[r]===O)return r;throw Error("Could not find renamed property on target object.")}function G(n,r){for(const s in r)r.hasOwnProperty(s)&&!n.hasOwnProperty(s)&&(n[s]=r[s])}function U(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(U).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const r=n.toString();if(null==r)return""+r;const s=r.indexOf("\n");return-1===s?r:r.substring(0,s)}function lt(n,r){return null==n||""===n?null===r?"":r:null==r||""===r?n:n+" "+r}const ut=O({__forward_ref__:O});function Ht(n){return n.__forward_ref__=Ht,n.toString=function(){return U(this())},n}function A(n){return xt(n)?n():n}function xt(n){return"function"==typeof n&&n.hasOwnProperty(ut)&&n.__forward_ref__===Ht}function tt(n){return n&&!!n.\u0275providers}const _="https://g.co/ng/security#xss";class j extends Error{constructor(r,s){super(q(r,s)),this.code=r}}function q(n,r){return`NG0${Math.abs(n)}${r?": "+r:""}`}function ht(n){return"string"==typeof n?n:null==n?"":String(n)}function H(n,r){throw new j(-201,!1)}function St(n,r){null==n&&function mt(n,r,s,a){throw new Error(`ASSERTION ERROR: ${n}`+(null==a?"":` [Expected=> ${s} ${a} ${r} <=Actual]`))}(r,n,null,"!=")}function At(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ie(n){return{providers:n.providers||[],imports:n.imports||[]}}function Ae(n){return In(n,ft)||In(n,Ce)}function en(n){return null!==Ae(n)}function In(n,r){return n.hasOwnProperty(r)?n[r]:null}function jt(n){return n&&(n.hasOwnProperty(Gt)||n.hasOwnProperty(ve))?n[Gt]:null}const ft=O({\u0275prov:O}),Gt=O({\u0275inj:O}),Ce=O({ngInjectableDef:O}),ve=O({ngInjectorDef:O});var me=function(n){return n[n.Default=0]="Default",n[n.Host=1]="Host",n[n.Self=2]="Self",n[n.SkipSelf=4]="SkipSelf",n[n.Optional=8]="Optional",n}(me||{});let De;function gn(n){const r=De;return De=n,r}function Xe(n,r,s){const a=Ae(n);return a&&"root"==a.providedIn?void 0===a.value?a.value=a.factory():a.value:s&me.Optional?null:void 0!==r?r:void H(U(n))}const re=globalThis,te={},Se="__NG_DI_FLAG__",Ke="ngTempTokenPath",Qe=/\n/gm,nt="__source";let it;function Fe(n){const r=it;return it=n,r}function Cn(n,r=me.Default){if(void 0===it)throw new j(-203,!1);return null===it?Xe(n,void 0,r):it.get(n,r&me.Optional?null:void 0,r)}function de(n,r=me.Default){return(function tn(){return De}()||Cn)(A(n),r)}function X(n,r=me.Default){return de(n,_e(r))}function _e(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function ze(n){const r=[];for(let s=0;s<n.length;s++){const a=A(n[s]);if(Array.isArray(a)){if(0===a.length)throw new j(900,!1);let u,m=me.Default;for(let M=0;M<a.length;M++){const k=a[M],Z=Tn(k);"number"==typeof Z?-1===Z?u=k.token:m|=Z:u=k}r.push(de(u,m))}else r.push(de(a))}return r}function dn(n,r){return n[Se]=r,n.prototype[Se]=r,n}function Tn(n){return n[Se]}function Ne(n){return{toString:n}.toString()}var le=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(le||{}),cn=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(cn||{});const se={},Ie=[],We=O({\u0275cmp:O}),Mn=O({\u0275dir:O}),ci=O({\u0275pipe:O}),Ji=O({\u0275mod:O}),Ei=O({\u0275fac:O}),Yi=O({__NG_ELEMENT_ID__:O}),No=O({__NG_ENV_ID__:O});function Mo(n,r,s){let a=n.length;for(;;){const u=n.indexOf(r,s);if(-1===u)return u;if(0===u||n.charCodeAt(u-1)<=32){const m=r.length;if(u+m===a||n.charCodeAt(u+m)<=32)return u}s=u+1}}function Ai(n,r,s){let a=0;for(;a<s.length;){const u=s[a];if("number"==typeof u){if(0!==u)break;a++;const m=s[a++],M=s[a++],k=s[a++];n.setAttribute(r,M,k,m)}else{const m=u,M=s[++a];io(m)?n.setProperty(r,m,M):n.setAttribute(r,m,M),a++}}return a}function Ui(n){return 3===n||4===n||6===n}function io(n){return 64===n.charCodeAt(0)}function Ye(n,r){if(null!==r&&0!==r.length)if(null===n||0===n.length)n=r.slice();else{let s=-1;for(let a=0;a<r.length;a++){const u=r[a];"number"==typeof u?s=u:0===s||Sn(n,s,u,null,-1===s||2===s?r[++a]:null)}}return n}function Sn(n,r,s,a,u){let m=0,M=n.length;if(-1===r)M=-1;else for(;m<n.length;){const k=n[m++];if("number"==typeof k){if(k===r){M=-1;break}if(k>r){M=m-1;break}}}for(;m<n.length;){const k=n[m];if("number"==typeof k)break;if(k===s){if(null===a)return void(null!==u&&(n[m+1]=u));if(a===n[m+1])return void(n[m+2]=u)}m++,null!==a&&m++,null!==u&&m++}-1!==M&&(n.splice(M,0,r),m=M+1),n.splice(m++,0,s),null!==a&&n.splice(m++,0,a),null!==u&&n.splice(m++,0,u)}const N="ng-template";function Zt(n,r,s){let a=0,u=!0;for(;a<n.length;){let m=n[a++];if("string"==typeof m&&u){const M=n[a++];if(s&&"class"===m&&-1!==Mo(M.toLowerCase(),r,0))return!0}else{if(1===m){for(;a<n.length&&"string"==typeof(m=n[a++]);)if(m.toLowerCase()===r)return!0;return!1}"number"==typeof m&&(u=!1)}}return!1}function kt(n){return 4===n.type&&n.value!==N}function fe(n,r,s){return r===(4!==n.type||s?n.value:N)}function sn(n,r,s){let a=4;const u=n.attrs||[],m=function Ut(n){for(let r=0;r<n.length;r++)if(Ui(n[r]))return r;return n.length}(u);let M=!1;for(let k=0;k<r.length;k++){const Z=r[k];if("number"!=typeof Z){if(!M)if(4&a){if(a=2|1&a,""!==Z&&!fe(n,Z,s)||""===Z&&1===r.length){if(Gn(a))return!1;M=!0}}else{const bt=8&a?Z:r[++k];if(8&a&&null!==n.attrs){if(!Zt(n.attrs,bt,s)){if(Gn(a))return!1;M=!0}continue}const Ee=Do(8&a?"class":Z,u,kt(n),s);if(-1===Ee){if(Gn(a))return!1;M=!0;continue}if(""!==bt){let nn;nn=Ee>m?"":u[Ee+1].toLowerCase();const pn=8&a?nn:null;if(pn&&-1!==Mo(pn,bt,0)||2&a&&bt!==nn){if(Gn(a))return!1;M=!0}}}}else{if(!M&&!Gn(a)&&!Gn(Z))return!1;if(M&&Gn(Z))continue;M=!1,a=Z|1&a}}return Gn(a)||M}function Gn(n){return 0==(1&n)}function Do(n,r,s,a){if(null===r)return-1;let u=0;if(a||!s){let m=!1;for(;u<r.length;){const M=r[u];if(M===n)return u;if(3===M||6===M)m=!0;else{if(1===M||2===M){let k=r[++u];for(;"string"==typeof k;)k=r[++u];continue}if(4===M)break;if(0===M){u+=4;continue}}u+=m?1:2}return-1}return function Rn(n,r){let s=n.indexOf(4);if(s>-1)for(s++;s<n.length;){const a=n[s];if("number"==typeof a)return-1;if(a===r)return s;s++}return-1}(r,n)}function Fo(n,r,s=!1){for(let a=0;a<r.length;a++)if(sn(n,r[a],s))return!0;return!1}function Bt(n,r){t:for(let s=0;s<r.length;s++){const a=r[s];if(n.length===a.length){for(let u=0;u<n.length;u++)if(n[u]!==a[u])continue t;return!0}}return!1}function he(n,r){return n?":not("+r.trim()+")":r}function Be(n){let r=n[0],s=1,a=2,u="",m=!1;for(;s<n.length;){let M=n[s];if("string"==typeof M)if(2&a){const k=n[++s];u+="["+M+(k.length>0?'="'+k+'"':"")+"]"}else 8&a?u+="."+M:4&a&&(u+=" "+M);else""!==u&&!Gn(M)&&(r+=he(m,u),u=""),a=M,m=m||!Gn(a);s++}return""!==u&&(r+=he(m,u)),r}function li(n){return Ne(()=>{const r=wr(n),s={...r,decls:n.decls,vars:n.vars,template:n.template,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,onPush:n.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&n.dependencies||null,getStandaloneInjector:null,signals:n.signals??!1,data:n.data||{},encapsulation:n.encapsulation||cn.Emulated,styles:n.styles||Ie,_:null,schemas:n.schemas||null,tView:null,id:""};ur(s);const a=n.dependencies;return s.directiveDefs=xe(a,!1),s.pipeDefs=xe(a,!0),s.id=function Kt(n){let r=0;const s=[n.selectors,n.ngContentSelectors,n.hostVars,n.hostAttrs,n.consts,n.vars,n.decls,n.encapsulation,n.standalone,n.signals,n.exportAs,JSON.stringify(n.inputs),JSON.stringify(n.outputs),Object.getOwnPropertyNames(n.type.prototype),!!n.contentQueries,!!n.viewQuery].join("|");for(const u of s)r=Math.imul(31,r)+u.charCodeAt(0)<<0;return r+=2147483648,"c"+r}(s),s})}function ji(n,r,s){const a=n.\u0275cmp;a.directiveDefs=xe(r,!1),a.pipeDefs=xe(s,!0)}function wo(n){return ii(n)||lo(n)}function Wi(n){return null!==n}function go(n){return Ne(()=>({type:n.type,bootstrap:n.bootstrap||Ie,declarations:n.declarations||Ie,imports:n.imports||Ie,exports:n.exports||Ie,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function co(n,r){if(null==n)return se;const s={};for(const a in n)if(n.hasOwnProperty(a)){let u=n[a],m=u;Array.isArray(u)&&(m=u[1],u=u[0]),s[u]=a,r&&(r[u]=m)}return s}function Ho(n){return Ne(()=>{const r=wr(n);return ur(r),r})}function ko(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ii(n){return n[We]||null}function lo(n){return n[Mn]||null}function xo(n){return n[ci]||null}function $o(n){const r=ii(n)||lo(n)||xo(n);return null!==r&&r.standalone}function Eo(n,r){const s=n[Ji]||null;if(!s&&!0===r)throw new Error(`Type ${U(n)} does not have '\u0275mod' property.`);return s}function wr(n){const r={};return{type:n.type,providersResolver:null,factory:null,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:r,inputTransforms:null,inputConfig:n.inputs||se,exportAs:n.exportAs||null,standalone:!0===n.standalone,signals:!0===n.signals,selectors:n.selectors||Ie,viewQuery:n.viewQuery||null,features:n.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:co(n.inputs,r),outputs:co(n.outputs)}}function ur(n){n.features?.forEach(r=>r(n))}function xe(n,r){if(!n)return null;const s=r?xo:wo;return()=>("function"==typeof n?n():n).map(a=>s(a)).filter(Wi)}const ge=0,Pe=1,un=2,Dn=3,Un=4,Qn=5,Vn=6,Oi=7,ni=8,pi=9,Gi=10,Zn=11,Li=12,So=13,mo=14,qn=15,jo=16,Bo=17,Ao=18,nr=19,Jr=20,Ri=21,Pi=22,oo=23,Go=24,bi=25,Zo=1,uo=2,Jo=7,gr=9,rr=10,fo=11;function Io(n){return Array.isArray(n)&&"object"==typeof n[Zo]}function _o(n){return Array.isArray(n)&&!0===n[Zo]}function pr(n){return 0!=(4&n.flags)}function mr(n){return n.componentOffset>-1}function Wr(n){return 1==(1&n.flags)}function vn(n){return!!n.template}function fr(n){return 0!=(512&n[un])}function Ko(n,r){return n.hasOwnProperty(Ei)?n[Ei]:null}let yi=null,tr=!1;function Oo(n){const r=yi;return yi=n,r}const Kr={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function qr(n){if(!Hr(n)||n.dirty){if(!n.producerMustRecompute(n)&&!Zr(n))return void(n.dirty=!1);n.producerRecomputeValue(n),n.dirty=!1}}function Ur(n){n.dirty=!0,function Sr(n){if(void 0===n.liveConsumerNode)return;const r=tr;tr=!0;try{for(const s of n.liveConsumerNode)s.dirty||Ur(s)}finally{tr=r}}(n),n.consumerMarkedDirty?.(n)}function Xr(n){return n&&(n.nextProducerIndex=0),Oo(n)}function vs(n,r){if(Oo(r),n&&void 0!==n.producerNode&&void 0!==n.producerIndexOfThis&&void 0!==n.producerLastReadVersion){if(Hr(n))for(let s=n.nextProducerIndex;s<n.producerNode.length;s++)ts(n.producerNode[s],n.producerIndexOfThis[s]);for(;n.producerNode.length>n.nextProducerIndex;)n.producerNode.pop(),n.producerLastReadVersion.pop(),n.producerIndexOfThis.pop()}}function Zr(n){Vr(n);for(let r=0;r<n.producerNode.length;r++){const s=n.producerNode[r],a=n.producerLastReadVersion[r];if(a!==s.version||(qr(s),a!==s.version))return!0}return!1}function Zi(n){if(Vr(n),Hr(n))for(let r=0;r<n.producerNode.length;r++)ts(n.producerNode[r],n.producerIndexOfThis[r]);n.producerNode.length=n.producerLastReadVersion.length=n.producerIndexOfThis.length=0,n.liveConsumerNode&&(n.liveConsumerNode.length=n.liveConsumerIndexOfThis.length=0)}function ts(n,r){if(function cs(n){n.liveConsumerNode??=[],n.liveConsumerIndexOfThis??=[]}(n),Vr(n),1===n.liveConsumerNode.length)for(let a=0;a<n.producerNode.length;a++)ts(n.producerNode[a],n.producerIndexOfThis[a]);const s=n.liveConsumerNode.length-1;if(n.liveConsumerNode[r]=n.liveConsumerNode[s],n.liveConsumerIndexOfThis[r]=n.liveConsumerIndexOfThis[s],n.liveConsumerNode.length--,n.liveConsumerIndexOfThis.length--,r<n.liveConsumerNode.length){const a=n.liveConsumerIndexOfThis[r],u=n.liveConsumerNode[r];Vr(u),u.producerIndexOfThis[a]=r}}function Hr(n){return n.consumerIsAlwaysLive||(n?.liveConsumerNode?.length??0)>0}function Vr(n){n.producerNode??=[],n.producerIndexOfThis??=[],n.producerLastReadVersion??=[]}let bs=null;function mn(n){const r=Oo(null);try{return n()}finally{Oo(r)}}const Yn=()=>{},to=(()=>({...Kr,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:n=>{n.schedule(n.ref)},hasRun:!1,cleanupFn:Yn}))();class p{constructor(r,s,a){this.previousValue=r,this.currentValue=s,this.firstChange=a}isFirstChange(){return this.firstChange}}function K(){return d}function d(n){return n.type.prototype.ngOnChanges&&(n.setInput=S),v}function v(){const n=Ue(this),r=n?.current;if(r){const s=n.previous;if(s===se)n.previous=r;else for(let a in r)s[a]=r[a];n.current=null,this.ngOnChanges(r)}}function S(n,r,s,a){const u=this.declaredInputs[s],m=Ue(n)||function hn(n,r){return n[pe]=r}(n,{previous:se,current:null}),M=m.current||(m.current={}),k=m.previous,Z=k[u];M[u]=new p(Z&&Z.currentValue,r,k===se),n[a]=r}K.ngInherit=!0;const pe="__ngSimpleChanges__";function Ue(n){return n[pe]||null}const Nn=function(n,r,s){},ui="svg";function jn(n){for(;Array.isArray(n);)n=n[ge];return n}function gi(n,r){return jn(r[n])}function di(n,r){return jn(r[n.index])}function Ci(n,r){return n.data[r]}function mi(n,r){return n[r]}function Si(n,r){const s=r[n];return Io(s)?s:s[ge]}function Kn(n,r){return null==r?null:n[r]}function eo(n){n[Bo]=0}function Wo(n){1024&n[un]||(n[un]|=1024,vr(n,1))}function hr(n){1024&n[un]&&(n[un]&=-1025,vr(n,-1))}function vr(n,r){let s=n[Dn];if(null===s)return;s[Qn]+=r;let a=s;for(s=s[Dn];null!==s&&(1===r&&1===a[Qn]||-1===r&&0===a[Qn]);)s[Qn]+=r,a=s,s=s[Dn]}const Bn={lFrame:ds(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Po(){return Bn.bindingsEnabled}function To(){return null!==Bn.skipHydrationRootTNode}function kn(){return Bn.lFrame.lView}function Qi(){return Bn.lFrame.tView}function ia(n){return Bn.lFrame.contextLView=n,n[ni]}function xs(n){return Bn.lFrame.contextLView=null,n}function qo(){let n=Ks();for(;null!==n&&64===n.type;)n=n.parent;return n}function Ks(){return Bn.lFrame.currentTNode}function Gr(n,r){const s=Bn.lFrame;s.currentTNode=n,s.isParent=r}function Ta(){return Bn.lFrame.isParent}function Va(){Bn.lFrame.isParent=!1}function br(){const n=Bn.lFrame;let r=n.bindingRootIndex;return-1===r&&(r=n.bindingRootIndex=n.tView.bindingStartIndex),r}function Ps(){return Bn.lFrame.bindingIndex}function Y(){return Bn.lFrame.bindingIndex++}function D(n){const r=Bn.lFrame,s=r.bindingIndex;return r.bindingIndex=r.bindingIndex+n,s}function Wt(n,r){const s=Bn.lFrame;s.bindingIndex=s.bindingRootIndex=n,bn(r)}function bn(n){Bn.lFrame.currentDirectiveIndex=n}function fn(n){const r=Bn.lFrame.currentDirectiveIndex;return-1===r?null:n[r]}function Wn(){return Bn.lFrame.currentQueryIndex}function wn(n){Bn.lFrame.currentQueryIndex=n}function Lo(n){const r=n[Pe];return 2===r.type?r.declTNode:1===r.type?n[Vn]:null}function so(n,r,s){if(s&me.SkipSelf){let u=r,m=n;for(;!(u=u.parent,null!==u||s&me.Host||(u=Lo(m),null===u||(m=m[mo],10&u.type))););if(null===u)return!1;r=u,n=m}const a=Bn.lFrame=Ki();return a.currentTNode=r,a.lView=n,!0}function Lr(n){const r=Ki(),s=n[Pe];Bn.lFrame=r,r.currentTNode=s.firstChild,r.lView=n,r.tView=s,r.contextLView=n,r.bindingIndex=s.bindingStartIndex,r.inI18n=!1}function Ki(){const n=Bn.lFrame,r=null===n?null:n.child;return null===r?ds(n):r}function ds(n){const r={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:n,child:null,inI18n:!1};return null!==n&&(n.child=r),r}function oa(){const n=Bn.lFrame;return Bn.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const us=oa;function Da(){const n=oa();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Dr(){return Bn.lFrame.selectedIndex}function ra(n){Bn.lFrame.selectedIndex=n}function yo(){const n=Bn.lFrame;return Ci(n.tView,n.selectedIndex)}function Sc(){Bn.lFrame.currentNamespace=ui}function Ic(){!function Cl(){Bn.lFrame.currentNamespace=null}()}function nc(){return Bn.lFrame.currentNamespace}let Lc=!0;function ka(){return Lc}function ys(n){Lc=n}function Ya(n,r){for(let s=r.directiveStart,a=r.directiveEnd;s<a;s++){const m=n.data[s].type.prototype,{ngAfterContentInit:M,ngAfterContentChecked:k,ngAfterViewInit:Z,ngAfterViewChecked:bt,ngOnDestroy:Qt}=m;M&&(n.contentHooks??=[]).push(-s,M),k&&((n.contentHooks??=[]).push(s,k),(n.contentCheckHooks??=[]).push(s,k)),Z&&(n.viewHooks??=[]).push(-s,Z),bt&&((n.viewHooks??=[]).push(s,bt),(n.viewCheckHooks??=[]).push(s,bt)),null!=Qt&&(n.destroyHooks??=[]).push(s,Qt)}}function es(n,r,s){Rc(n,r,3,s)}function ja(n,r,s,a){(3&n[un])===s&&Rc(n,r,s,a)}function ic(n,r){let s=n[un];(3&s)===r&&(s&=8191,s+=1,n[un]=s)}function Rc(n,r,s,a){const m=a??-1,M=r.length-1;let k=0;for(let Z=void 0!==a?65535&n[Bo]:0;Z<M;Z++)if("number"==typeof r[Z+1]){if(k=r[Z],null!=a&&k>=a)break}else r[Z]<0&&(n[Bo]+=65536),(k<m||-1==m)&&(bl(n,s,r,Z),n[Bo]=(4294901760&n[Bo])+Z+2),Z++}function oc(n,r){Nn(4,n,r);const s=Oo(null);try{r.call(n)}finally{Oo(s),Nn(5,n,r)}}function bl(n,r,s,a){const u=s[a]<0,m=s[a+1],k=n[u?-s[a]:s[a]];u?n[un]>>13<n[Bo]>>16&&(3&n[un])===r&&(n[un]+=8192,oc(k,m)):oc(k,m)}const kr=-1;class Ea{constructor(r,s,a){this.factory=r,this.resolving=!1,this.canSeeViewProviders=s,this.injectImpl=a}}function za(n){return n!==kr}function sa(n){return 32767&n}function Sa(n,r){let s=function Ol(n){return n>>16}(n),a=r;for(;s>0;)a=a[mo],s--;return a}let sc=!0;function ns(n){const r=sc;return sc=n,r}const Fc=255,Bc=5;let Pl=0;const Ts={};function ma(n,r){const s=Ia(n,r);if(-1!==s)return s;const a=r[Pe];a.firstCreatePass&&(n.injectorIndex=r.length,qs(a.data,n),qs(r,null),qs(a.blueprint,null));const u=ro(n,r),m=n.injectorIndex;if(za(u)){const M=sa(u),k=Sa(u,r),Z=k[Pe].data;for(let bt=0;bt<8;bt++)r[m+bt]=k[M+bt]|Z[M+bt]}return r[m+8]=u,m}function qs(n,r){n.push(0,0,0,0,0,0,0,0,r)}function Ia(n,r){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===r[n.injectorIndex+8]?-1:n.injectorIndex}function ro(n,r){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let s=0,a=null,u=r;for(;null!==u;){if(a=Cd(u),null===a)return kr;if(s++,u=u[mo],-1!==a.injectorIndex)return a.injectorIndex|s<<16}return kr}function C(n,r,s){!function yl(n,r,s){let a;"string"==typeof s?a=s.charCodeAt(0)||0:s.hasOwnProperty(Yi)&&(a=s[Yi]),null==a&&(a=s[Yi]=Pl++);const u=a&Fc;r.data[n+(u>>Bc)]|=1<<u}(n,r,s)}function dt(n,r,s){if(s&me.Optional||void 0!==n)return n;H()}function Et(n,r,s,a){if(s&me.Optional&&void 0===a&&(a=null),!(s&(me.Self|me.Host))){const u=n[pi],m=gn(void 0);try{return u?u.get(r,a,s&me.Optional):Xe(r,a,s&me.Optional)}finally{gn(m)}}return dt(a,0,s)}function ne(n,r,s,a=me.Default,u){if(null!==n){if(2048&r[un]&&!(a&me.Self)){const M=function Eu(n,r,s,a,u){let m=n,M=r;for(;null!==m&&null!==M&&2048&M[un]&&!(512&M[un]);){const k=qe(m,M,s,a|me.Self,Ts);if(k!==Ts)return k;let Z=m.parent;if(!Z){const bt=M[Jr];if(bt){const Qt=bt.get(s,Ts,a);if(Qt!==Ts)return Qt}Z=Cd(M),M=M[mo]}m=Z}return u}(n,r,s,a,Ts);if(M!==Ts)return M}const m=qe(n,r,s,a,Ts);if(m!==Ts)return m}return Et(r,s,a,u)}function qe(n,r,s,a,u){const m=function Ro(n){if("string"==typeof n)return n.charCodeAt(0)||0;const r=n.hasOwnProperty(Yi)?n[Yi]:void 0;return"number"==typeof r?r>=0?r&Fc:ku:r}(s);if("function"==typeof m){if(!so(r,n,a))return a&me.Host?dt(u,0,a):Et(r,s,a,u);try{let M;if(M=m(a),null!=M||a&me.Optional)return M;H()}finally{us()}}else if("number"==typeof m){let M=null,k=Ia(n,r),Z=kr,bt=a&me.Host?r[qn][Vn]:null;for((-1===k||a&me.SkipSelf)&&(Z=-1===k?ro(n,r):r[k+8],Z!==kr&&Ds(a,!1)?(M=r[Pe],k=sa(Z),r=Sa(Z,r)):k=-1);-1!==k;){const Qt=r[Pe];if(yr(m,k,Qt.data)){const Ee=ln(k,r,s,M,a,bt);if(Ee!==Ts)return Ee}Z=r[k+8],Z!==kr&&Ds(a,r[Pe].data[k+8]===bt)&&yr(m,k,r)?(M=Qt,k=sa(Z),r=Sa(Z,r)):k=-1}}return u}function ln(n,r,s,a,u,m){const M=r[Pe],k=M.data[n+8],Qt=fi(k,M,s,null==a?mr(k)&&sc:a!=M&&0!=(3&k.type),u&me.Host&&m===k);return null!==Qt?Vi(r,M,Qt,k):Ts}function fi(n,r,s,a,u){const m=n.providerIndexes,M=r.data,k=1048575&m,Z=n.directiveStart,Qt=m>>20,nn=u?k+Qt:n.directiveEnd;for(let pn=a?k:k+Qt;pn<nn;pn++){const En=M[pn];if(pn<Z&&s===En||pn>=Z&&En.type===s)return pn}if(u){const pn=M[Z];if(pn&&vn(pn)&&pn.type===s)return Z}return null}function Vi(n,r,s,a){let u=n[s];const m=r.data;if(function ws(n){return n instanceof Ea}(u)){const M=u;M.resolving&&function gt(n,r){const s=r?`. Dependency path: ${r.join(" > ")} > ${n}`:"";throw new j(-200,`Circular dependency in DI detected for ${n}${s}`)}(function vt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ht(n)}(m[s]));const k=ns(M.canSeeViewProviders);M.resolving=!0;const bt=M.injectImpl?gn(M.injectImpl):null;so(n,a,me.Default);try{u=n[s]=M.factory(void 0,m,n,a),r.firstCreatePass&&s>=a.directiveStart&&function vl(n,r,s){const{ngOnChanges:a,ngOnInit:u,ngDoCheck:m}=r.type.prototype;if(a){const M=d(r);(s.preOrderHooks??=[]).push(n,M),(s.preOrderCheckHooks??=[]).push(n,M)}u&&(s.preOrderHooks??=[]).push(0-n,u),m&&((s.preOrderHooks??=[]).push(n,m),(s.preOrderCheckHooks??=[]).push(n,m))}(s,m[s],r)}finally{null!==bt&&gn(bt),ns(k),M.resolving=!1,us()}}return u}function yr(n,r,s){return!!(s[r+(n>>Bc)]&1<<n)}function Ds(n,r){return!(n&me.Self||n&me.Host&&r)}class zr{constructor(r,s){this._tNode=r,this._lView=s}get(r,s,a){return ne(this._tNode,this._lView,r,_e(a),s)}}function ku(){return new zr(qo(),kn())}function _d(n){return Ne(()=>{const r=n.prototype.constructor,s=r[Ei]||wl(r),a=Object.prototype;let u=Object.getPrototypeOf(n.prototype).constructor;for(;u&&u!==a;){const m=u[Ei]||wl(u);if(m&&m!==s)return m;u=Object.getPrototypeOf(u)}return m=>new m})}function wl(n){return xt(n)?()=>{const r=wl(A(n));return r&&r()}:Ko(n)}function Cd(n){const r=n[Pe],s=r.type;return 2===s?r.declTNode:1===s?n[Vn]:null}function Tl(n){return function w(n,r){if("class"===r)return n.classes;if("style"===r)return n.styles;const s=n.attrs;if(s){const a=s.length;let u=0;for(;u<a;){const m=s[u];if(Ui(m))break;if(0===m)u+=2;else if("number"==typeof m)for(u++;u<a&&"string"==typeof s[u];)u++;else{if(m===r)return s[u+1];u+=2}}}return null}(qo(),n)}const Ja="__parameters__";function Qo(n,r,s){return Ne(()=>{const a=function Dl(n){return function(...s){if(n){const a=n(...s);for(const u in a)this[u]=a[u]}}}(r);function u(...m){if(this instanceof u)return a.apply(this,m),this;const M=new u(...m);return k.annotation=M,k;function k(Z,bt,Qt){const Ee=Z.hasOwnProperty(Ja)?Z[Ja]:Object.defineProperty(Z,Ja,{value:[]})[Ja];for(;Ee.length<=Qt;)Ee.push(null);return(Ee[Qt]=Ee[Qt]||[]).push(M),Z}}return s&&(u.prototype=Object.create(s.prototype)),u.prototype.ngMetadataName=n,u.annotationCls=u,u})}function Vs(n,r){n.forEach(s=>Array.isArray(s)?Vs(s,r):r(s))}function cc(n,r,s){r>=n.length?n.push(s):n.splice(r,0,s)}function Uc(n,r){return r>=n.length-1?n.pop():n.splice(r,1)[0]}function lc(n,r){const s=[];for(let a=0;a<n;a++)s.push(r);return s}function Qr(n,r,s){let a=La(n,r);return a>=0?n[1|a]=s:(a=~a,function Ru(n,r,s,a){let u=n.length;if(u==r)n.push(s,a);else if(1===u)n.push(a,n[0]),n[0]=s;else{for(u--,n.push(n[u-1],n[u]);u>r;)n[u]=n[u-2],u--;n[r]=s,n[r+1]=a}}(n,a,r,s)),a}function uc(n,r){const s=La(n,r);if(s>=0)return n[1|s]}function La(n,r){return function Ra(n,r,s){let a=0,u=n.length>>s;for(;u!==a;){const m=a+(u-a>>1),M=n[m<<s];if(r===M)return m<<s;M>r?u=m:a=m+1}return~(u<<s)}(n,r,1)}const hc=dn(Qo("Optional"),8),gc=dn(Qo("SkipSelf"),4),ai="ngSkipHydration";function wi(n){const r=ai.toLowerCase(),s=n.mergedAttrs;if(null===s)return!1;for(let a=0;a<s.length;a+=2){const u=s[a];if("number"==typeof u)return!1;if("string"==typeof u&&u.toLowerCase()===r)return!0}return!1}function Ni(n){return n.hasAttribute(ai)}function ho(n){return 128==(128&n.flags)}var ps=function(n){return n[n.Important=1]="Important",n[n.DashCase=2]="DashCase",n}(ps||{});const hs=/^>|^->|<!--|-->|--!>|<!-$/g,ba=/(<|>)/g,er="\u200b$1\u200b";const Nl=new Map;let Nr=0;const Yu="__ngContext__";function rs(n,r){Io(r)?(n[Yu]=r[nr],function Es(n){Nl.set(n[nr],n)}(r)):n[Yu]=r}let ju;function Gu(n,r){return ju(n,r)}function Ul(n){const r=n[Dn];return _o(r)?r[Dn]:r}function pg(n){return gg(n[Li])}function hg(n){return gg(n[Un])}function gg(n){for(;null!==n&&!_o(n);)n=n[Un];return n}function Zc(n,r,s,a,u){if(null!=a){let m,M=!1;_o(a)?m=a:Io(a)&&(M=!0,a=a[ge]);const k=jn(a);0===n&&null!==s?null==u?Cg(r,s,k):Mc(r,s,k,u||null,!0):1===n&&null!==s?Mc(r,s,k,u||null,!0):2===n?Ed(r,k,M):3===n&&r.destroyNode(k),null!=m&&function ib(n,r,s,a,u){const m=s[Jo];m!==jn(s)&&Zc(r,n,a,m,u);for(let k=fo;k<s.length;k++){const Z=s[k];Hl(Z[Pe],Z,n,r,a,m)}}(r,n,m,s,u)}}function yd(n,r){return n.createText(r)}function zu(n,r){return n.createComment(function Rl(n){return n.replace(hs,r=>r.replace(ba,er))}(r))}function wd(n,r,s){return n.createElement(r,s)}function fg(n,r){const s=n[gr],a=s.indexOf(r);hr(r),s.splice(a,1)}function Td(n,r){if(n.length<=fo)return;const s=fo+r,a=n[s];if(a){const u=a[jo];null!==u&&u!==n&&fg(u,a),r>0&&(n[s-1][Un]=a[Un]);const m=Uc(n,fo+r);!function zv(n,r){Hl(n,r,r[Zn],2,null,null),r[ge]=null,r[Vn]=null}(a[Pe],a);const M=m[Ao];null!==M&&M.detachView(m[Pe]),a[Dn]=null,a[Un]=null,a[un]&=-129}return a}function Qu(n,r){if(!(256&r[un])){const s=r[Zn];r[oo]&&Zi(r[oo]),r[Go]&&Zi(r[Go]),s.destroyNode&&Hl(n,r,s,3,null,null),function Wv(n){let r=n[Li];if(!r)return Ju(n[Pe],n);for(;r;){let s=null;if(Io(r))s=r[Li];else{const a=r[fo];a&&(s=a)}if(!s){for(;r&&!r[Un]&&r!==n;)Io(r)&&Ju(r[Pe],r),r=r[Dn];null===r&&(r=n),Io(r)&&Ju(r[Pe],r),s=r&&r[Un]}r=s}}(r)}}function Ju(n,r){if(!(256&r[un])){r[un]&=-129,r[un]|=256,function Xv(n,r){let s;if(null!=n&&null!=(s=n.destroyHooks))for(let a=0;a<s.length;a+=2){const u=r[s[a]];if(!(u instanceof Ea)){const m=s[a+1];if(Array.isArray(m))for(let M=0;M<m.length;M+=2){const k=u[m[M]],Z=m[M+1];Nn(4,k,Z);try{Z.call(k)}finally{Nn(5,k,Z)}}else{Nn(4,u,m);try{m.call(u)}finally{Nn(5,u,m)}}}}}(n,r),function qv(n,r){const s=n.cleanup,a=r[Oi];if(null!==s)for(let m=0;m<s.length-1;m+=2)if("string"==typeof s[m]){const M=s[m+3];M>=0?a[M]():a[-M].unsubscribe(),m+=2}else s[m].call(a[s[m+1]]);null!==a&&(r[Oi]=null);const u=r[Ri];if(null!==u){r[Ri]=null;for(let m=0;m<u.length;m++)(0,u[m])()}}(n,r),1===r[Pe].type&&r[Zn].destroy();const s=r[jo];if(null!==s&&_o(r[Dn])){s!==r[Dn]&&fg(s,r);const a=r[Ao];null!==a&&a.detachView(n)}!function Fl(n){Nl.delete(n[nr])}(r)}}function Wu(n,r,s){return function _g(n,r,s){let a=r;for(;null!==a&&40&a.type;)a=(r=a).parent;if(null===a)return s[ge];{const{componentOffset:u}=a;if(u>-1){const{encapsulation:m}=n.data[a.directiveStart+u];if(m===cn.None||m===cn.Emulated)return null}return di(a,s)}}(n,r.parent,s)}function Mc(n,r,s,a,u){n.insertBefore(r,s,a,u)}function Cg(n,r,s){n.appendChild(r,s)}function vg(n,r,s,a,u){null!==a?Mc(n,r,s,a,u):Cg(n,r,s)}function Dd(n,r){return n.parentNode(r)}function bg(n,r,s){return xg(n,r,s)}let $u,Sd,tp,Ad,xg=function Mg(n,r,s){return 40&n.type?di(n,s):null};function kd(n,r,s,a){const u=Wu(n,a,r),m=r[Zn],k=bg(a.parent||r[Vn],a,r);if(null!=u)if(Array.isArray(s))for(let Z=0;Z<s.length;Z++)vg(m,u,s[Z],k,!1);else vg(m,u,s,k,!1);void 0!==$u&&$u(m,a,r,s,u)}function Zl(n,r){if(null!==r){const s=r.type;if(3&s)return di(r,n);if(4&s)return Ku(-1,n[r.index]);if(8&s){const a=r.child;if(null!==a)return Zl(n,a);{const u=n[r.index];return _o(u)?Ku(-1,u):jn(u)}}if(32&s)return Gu(r,n)()||jn(n[r.index]);{const a=Pg(n,r);return null!==a?Array.isArray(a)?a[0]:Zl(Ul(n[qn]),a):Zl(n,r.next)}}return null}function Pg(n,r){return null!==r?n[qn][Vn].projection[r.projection]:null}function Ku(n,r){const s=fo+n+1;if(s<r.length){const a=r[s],u=a[Pe].firstChild;if(null!==u)return Zl(a,u)}return r[Jo]}function Ed(n,r,s){const a=Dd(n,r);a&&function tb(n,r,s,a){n.removeChild(r,s,a)}(n,a,r,s)}function yg(n){n.textContent=""}function qu(n,r,s,a,u,m,M){for(;null!=s;){const k=a[s.index],Z=s.type;if(M&&0===r&&(k&&rs(jn(k),a),s.flags|=2),32!=(32&s.flags))if(8&Z)qu(n,r,s.child,a,u,m,!1),Zc(r,n,u,k,m);else if(32&Z){const bt=Gu(s,a);let Qt;for(;Qt=bt();)Zc(r,n,u,Qt,m);Zc(r,n,u,k,m)}else 16&Z?wg(n,r,a,s,u,m):Zc(r,n,u,k,m);s=M?s.projectionNext:s.next}}function Hl(n,r,s,a,u,m){qu(s,a,n.firstChild,r,u,m,!1)}function wg(n,r,s,a,u,m){const M=s[qn],Z=M[Vn].projection[a.projection];if(Array.isArray(Z))for(let bt=0;bt<Z.length;bt++)Zc(r,n,u,Z[bt],m);else{let bt=Z;const Qt=M[Dn];ho(a)&&(bt.flags|=128),qu(n,r,bt,Qt,u,m,!0)}}function Tg(n,r,s){""===s?n.removeAttribute(r,"class"):n.setAttribute(r,"class",s)}function Dg(n,r,s){const{mergedAttrs:a,classes:u,styles:m}=s;null!==a&&Ai(n,r,a),null!==u&&Tg(n,r,u),null!==m&&function rb(n,r,s){n.setAttribute(r,"style",s)}(n,r,m)}function Hc(n){return function Xu(){if(void 0===Sd&&(Sd=null,re.trustedTypes))try{Sd=re.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Sd}()?.createHTML(n)||n}function lb(n){tp=n}function Vc(){if(void 0!==tp)return tp;if(typeof document<"u")return document;throw new j(210,!1)}function ep(){if(void 0===Ad&&(Ad=null,re.trustedTypes))try{Ad=re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Ad}function kg(n){return ep()?.createHTML(n)||n}function Sg(n){return ep()?.createScriptURL(n)||n}class xc{constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${_})`}}class db extends xc{getTypeName(){return"HTML"}}class ub extends xc{getTypeName(){return"Style"}}class pb extends xc{getTypeName(){return"Script"}}class hb extends xc{getTypeName(){return"URL"}}class gb extends xc{getTypeName(){return"ResourceURL"}}function Fa(n){return n instanceof xc?n.changingThisBreaksApplicationSecurity:n}function Yc(n,r){const s=function mb(n){return n instanceof xc&&n.getTypeName()||null}(n);if(null!=s&&s!==r){if("ResourceURL"===s&&"URL"===r)return!0;throw new Error(`Required a safe ${r}, got a ${s} (see ${_})`)}return s===r}function fb(n){return new db(n)}function _b(n){return new ub(n)}function Cb(n){return new pb(n)}function vb(n){return new hb(n)}function bb(n){return new gb(n)}class Mb{constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r="<body><remove></remove>"+r;try{const s=(new window.DOMParser).parseFromString(Hc(r),"text/html").body;return null===s?this.inertDocumentHelper.getInertBodyElement(r):(s.removeChild(s.firstChild),s)}catch{return null}}}class xb{constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){const s=this.inertDocument.createElement("template");return s.innerHTML=Hc(r),s}}const Pb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Id(n){return(n=String(n)).match(Pb)?n:"unsafe:"+n}function Ba(n){const r={};for(const s of n.split(","))r[s]=!0;return r}function Vl(...n){const r={};for(const s of n)for(const a in s)s.hasOwnProperty(a)&&(r[a]=!0);return r}const Ig=Ba("area,br,col,hr,img,wbr"),Lg=Ba("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rg=Ba("rp,rt"),np=Vl(Ig,Vl(Lg,Ba("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")),Vl(Rg,Ba("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")),Vl(Rg,Lg)),ip=Ba("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ng=Vl(ip,Ba("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Ba("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")),yb=Ba("script,style,template");class wb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(r){let s=r.firstChild,a=!0;for(;s;)if(s.nodeType===Node.ELEMENT_NODE?a=this.startElement(s):s.nodeType===Node.TEXT_NODE?this.chars(s.nodeValue):this.sanitizedSomething=!0,a&&s.firstChild)s=s.firstChild;else for(;s;){s.nodeType===Node.ELEMENT_NODE&&this.endElement(s);let u=this.checkClobberedElement(s,s.nextSibling);if(u){s=u;break}s=this.checkClobberedElement(s,s.parentNode)}return this.buf.join("")}startElement(r){const s=r.nodeName.toLowerCase();if(!np.hasOwnProperty(s))return this.sanitizedSomething=!0,!yb.hasOwnProperty(s);this.buf.push("<"),this.buf.push(s);const a=r.attributes;for(let u=0;u<a.length;u++){const m=a.item(u),M=m.name,k=M.toLowerCase();if(!Ng.hasOwnProperty(k)){this.sanitizedSomething=!0;continue}let Z=m.value;ip[k]&&(Z=Id(Z)),this.buf.push(" ",M,'="',Fg(Z),'"')}return this.buf.push(">"),!0}endElement(r){const s=r.nodeName.toLowerCase();np.hasOwnProperty(s)&&!Ig.hasOwnProperty(s)&&(this.buf.push("</"),this.buf.push(s),this.buf.push(">"))}chars(r){this.buf.push(Fg(r))}checkClobberedElement(r,s){if(s&&(r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`);return s}}const Tb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Db=/([^\#-~ |!])/g;function Fg(n){return n.replace(/&/g,"&amp;").replace(Tb,function(r){return"&#"+(1024*(r.charCodeAt(0)-55296)+(r.charCodeAt(1)-56320)+65536)+";"}).replace(Db,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ld;function Bg(n,r){let s=null;try{Ld=Ld||function Ag(n){const r=new xb(n);return function Ob(){try{return!!(new window.DOMParser).parseFromString(Hc(""),"text/html")}catch{return!1}}()?new Mb(r):r}(n);let a=r?String(r):"";s=Ld.getInertBodyElement(a);let u=5,m=a;do{if(0===u)throw new Error("Failed to sanitize html because the input is unstable");u--,a=m,m=s.innerHTML,s=Ld.getInertBodyElement(a)}while(a!==m);return Hc((new wb).sanitizeChildren(op(s)||s))}finally{if(s){const a=op(s)||s;for(;a.firstChild;)a.removeChild(a.firstChild)}}}function op(n){return"content"in n&&function kb(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var Oc=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(Oc||{});function Ug(n){const r=Yl();return r?kg(r.sanitize(Oc.HTML,n)||""):Yc(n,"HTML")?kg(Fa(n)):Bg(Vc(),ht(n))}function rp(n){const r=Yl();return r?r.sanitize(Oc.URL,n)||"":Yc(n,"URL")?Fa(n):Id(ht(n))}function sp(n){const r=Yl();if(r)return Sg(r.sanitize(Oc.RESOURCE_URL,n)||"");if(Yc(n,"ResourceURL"))return Sg(Fa(n));throw new j(904,!1)}function Zg(n,r,s){return function Lb(n,r){return"src"===r&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===r&&("base"===n||"link"===n)?sp:rp}(r,s)(n)}function Yl(){const n=kn();return n&&n[Gi].sanitizer}class Uo{constructor(r,s){this._desc=r,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof s?this.__NG_ELEMENT_ID__=s:void 0!==s&&(this.\u0275prov=At({token:this,providedIn:s.providedIn||"root",factory:s.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const jl=new Uo("ENVIRONMENT_INITIALIZER"),Hg=new Uo("INJECTOR",-1),Vg=new Uo("INJECTOR_DEF_TYPES");class ap{get(r,s=te){if(s===te){const a=new Error(`NullInjectorError: No provider for ${U(r)}!`);throw a.name="NullInjectorError",a}return s}}function cp(n){return{\u0275providers:n}}function Rb(...n){return{\u0275providers:Yg(0,n),\u0275fromNgModule:!0}}function Yg(n,...r){const s=[],a=new Set;let u;const m=M=>{s.push(M)};return Vs(r,M=>{const k=M;Rd(k,m,[],a)&&(u||=[],u.push(k))}),void 0!==u&&jg(u,m),s}function jg(n,r){for(let s=0;s<n.length;s++){const{ngModule:a,providers:u}=n[s];lp(u,m=>{r(m,a)})}}function Rd(n,r,s,a){if(!(n=A(n)))return!1;let u=null,m=jt(n);const M=!m&&ii(n);if(m||M){if(M&&!M.standalone)return!1;u=n}else{const Z=n.ngModule;if(m=jt(Z),!m)return!1;u=Z}const k=a.has(u);if(M){if(k)return!1;if(a.add(u),M.dependencies){const Z="function"==typeof M.dependencies?M.dependencies():M.dependencies;for(const bt of Z)Rd(bt,r,s,a)}}else{if(!m)return!1;{if(null!=m.imports&&!k){let bt;a.add(u);try{Vs(m.imports,Qt=>{Rd(Qt,r,s,a)&&(bt||=[],bt.push(Qt))})}finally{}void 0!==bt&&jg(bt,r)}if(!k){const bt=Ko(u)||(()=>new u);r({provide:u,useFactory:bt,deps:Ie},u),r({provide:Vg,useValue:u,multi:!0},u),r({provide:jl,useValue:()=>de(u),multi:!0},u)}const Z=m.providers;if(null!=Z&&!k){const bt=n;lp(Z,Qt=>{r(Qt,bt)})}}}return u!==n&&void 0!==n.providers}function lp(n,r){for(let s of n)tt(s)&&(s=s.\u0275providers),Array.isArray(s)?lp(s,r):r(s)}const Nb=O({provide:String,useValue:O});function dp(n){return null!==n&&"object"==typeof n&&Nb in n}function Pc(n){return"function"==typeof n}const up=new Uo("Set Injector scope."),Nd={},Bb={};let pp;function Fd(){return void 0===pp&&(pp=new ap),pp}class Ma{}class Bd extends Ma{get destroyed(){return this._destroyed}constructor(r,s,a,u){super(),this.parent=s,this.source=a,this.scopes=u,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,gp(r,M=>this.processProvider(M)),this.records.set(Hg,jc(void 0,this)),u.has("environment")&&this.records.set(Ma,jc(void 0,this));const m=this.records.get(up);null!=m&&"string"==typeof m.value&&this.scopes.add(m.value),this.injectorDefTypes=new Set(this.get(Vg.multi,Ie,me.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const s of this._ngOnDestroyHooks)s.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const s of r)s()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(r){return this.assertNotDestroyed(),this._onDestroyHooks.push(r),()=>this.removeOnDestroy(r)}runInContext(r){this.assertNotDestroyed();const s=Fe(this),a=gn(void 0);try{return r()}finally{Fe(s),gn(a)}}get(r,s=te,a=me.Default){if(this.assertNotDestroyed(),r.hasOwnProperty(No))return r[No](this);a=_e(a);const m=Fe(this),M=gn(void 0);try{if(!(a&me.SkipSelf)){let Z=this.records.get(r);if(void 0===Z){const bt=function Yb(n){return"function"==typeof n||"object"==typeof n&&n instanceof Uo}(r)&&Ae(r);Z=bt&&this.injectableDefInScope(bt)?jc(hp(r),Nd):null,this.records.set(r,Z)}if(null!=Z)return this.hydrate(r,Z)}return(a&me.Self?Fd():this.parent).get(r,s=a&me.Optional&&s===te?null:s)}catch(k){if("NullInjectorError"===k.name){if((k[Ke]=k[Ke]||[]).unshift(U(r)),m)throw k;return function je(n,r,s,a){const u=n[Ke];throw r[nt]&&u.unshift(r[nt]),n.message=function ke(n,r,s,a=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let u=U(r);if(Array.isArray(r))u=r.map(U).join(" -> ");else if("object"==typeof r){let m=[];for(let M in r)if(r.hasOwnProperty(M)){let k=r[M];m.push(M+":"+("string"==typeof k?JSON.stringify(k):U(k)))}u=`{${m.join(", ")}}`}return`${s}${a?"("+a+")":""}[${u}]: ${n.replace(Qe,"\n  ")}`}("\n"+n.message,u,s,a),n.ngTokenPath=u,n[Ke]=null,n}(k,r,"R3InjectorError",this.source)}throw k}finally{gn(M),Fe(m)}}resolveInjectorInitializers(){const r=Fe(this),s=gn(void 0);try{const u=this.get(jl.multi,Ie,me.Self);for(const m of u)m()}finally{Fe(r),gn(s)}}toString(){const r=[],s=this.records;for(const a of s.keys())r.push(U(a));return`R3Injector[${r.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new j(205,!1)}processProvider(r){let s=Pc(r=A(r))?r:A(r&&r.provide);const a=function Zb(n){return dp(n)?jc(void 0,n.useValue):jc(Qg(n),Nd)}(r);if(Pc(r)||!0!==r.multi)this.records.get(s);else{let u=this.records.get(s);u||(u=jc(void 0,Nd,!0),u.factory=()=>ze(u.multi),this.records.set(s,u)),s=r,u.multi.push(r)}this.records.set(s,a)}hydrate(r,s){return s.value===Nd&&(s.value=Bb,s.value=s.factory()),"object"==typeof s.value&&s.value&&function Vb(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(s.value)&&this._ngOnDestroyHooks.add(s.value),s.value}injectableDefInScope(r){if(!r.providedIn)return!1;const s=A(r.providedIn);return"string"==typeof s?"any"===s||this.scopes.has(s):this.injectorDefTypes.has(s)}removeOnDestroy(r){const s=this._onDestroyHooks.indexOf(r);-1!==s&&this._onDestroyHooks.splice(s,1)}}function hp(n){const r=Ae(n),s=null!==r?r.factory:Ko(n);if(null!==s)return s;if(n instanceof Uo)throw new j(204,!1);if(n instanceof Function)return function Ub(n){const r=n.length;if(r>0)throw lc(r,"?"),new j(204,!1);const s=function Ve(n){return n&&(n[ft]||n[Ce])||null}(n);return null!==s?()=>s.factory(n):()=>new n}(n);throw new j(204,!1)}function Qg(n,r,s){let a;if(Pc(n)){const u=A(n);return Ko(u)||hp(u)}if(dp(n))a=()=>A(n.useValue);else if(function zg(n){return!(!n||!n.useFactory)}(n))a=()=>n.useFactory(...ze(n.deps||[]));else if(function Gg(n){return!(!n||!n.useExisting)}(n))a=()=>de(A(n.useExisting));else{const u=A(n&&(n.useClass||n.provide));if(!function Hb(n){return!!n.deps}(n))return Ko(u)||hp(u);a=()=>new u(...ze(n.deps))}return a}function jc(n,r,s=!1){return{factory:n,value:r,multi:s?[]:void 0}}function gp(n,r){for(const s of n)Array.isArray(s)?gp(s,r):s&&tt(s)?gp(s.\u0275providers,r):r(s)}const Jg=new Uo("AppId",{providedIn:"root",factory:()=>jb}),jb="ng",Wg=new Uo("Platform Initializer"),mp=new Uo("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Gb=new Uo("AnimationModuleType"),zb=new Uo("CSP nonce",{providedIn:"root",factory:()=>Vc().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),$g=new Uo("",{providedIn:"root",factory:()=>new Set});function Qb(n){return n}function Jb(){const n=new Gl;return"browser"===X(mp)&&(n.store=function Wb(n,r){const s=n.getElementById(r+"-state");if(s?.textContent)try{return JSON.parse(s.textContent)}catch(a){console.warn("Exception while restoring TransferState for app "+r,a)}return{}}(Vc(),X(Jg))),n}let Gl=(()=>{class n{constructor(){this.store={},this.onSerializeCallbacks={}}static#t=this.\u0275prov=At({token:n,providedIn:"root",factory:Jb});get(s,a){return void 0!==this.store[s]?this.store[s]:a}set(s,a){this.store[s]=a}remove(s){delete this.store[s]}hasKey(s){return this.store.hasOwnProperty(s)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(s,a){this.onSerializeCallbacks[s]=a}toJson(){for(const s in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(s))try{this.store[s]=this.onSerializeCallbacks[s]()}catch(a){console.warn("Exception in onSerialize callback: ",a)}return JSON.stringify(this.store).replace(/</g,"\\u003C")}}return n})();const fp="h",_p="b";var Gc=function(n){return n.FirstChild="f",n.NextSibling="n",n}(Gc||{});const Cp="e",vp="t",zl="c",Ud="x",zc="r",bp="i",Mp="n",Zd="d",xp="__\u0275nghData__",Ql="ngh",$b="nghm";let Kg=(n,r,s)=>null;function Kb(n,r,s=!1){let a=n.getAttribute(Ql);if(null==a)return null;const[u,m]=a.split("|");if(a=s?m:u,!a)return null;const M=s?u:m?`|${m}`:"";let k={};if(""!==a){const bt=r.get(Gl,null,{optional:!0});null!==bt&&(k=bt.get(xp,[])[Number(a)])}const Z={data:k,firstChild:n.firstChild??null};return s&&(Z.firstChild=n,Hd(Z,0,n.nextSibling)),M?n.setAttribute(Ql,M):n.removeAttribute(Ql),Z}function Op(n,r,s=!1){return Kg(n,r,s)}function qg(n){let r=n._lView;return 2===r[Pe].type?null:(fr(r)&&(r=r[bi]),r)}function Hd(n,r,s){n.segmentHeads??={},n.segmentHeads[r]=s}function Pp(n,r){return n.segmentHeads?.[r]??null}function Xg(n,r){return n.data[zl]?.[r]??null}function yp(n,r){const s=Xg(n,r)??[];let a=0;for(let u of s)a+=u[zc]*(u[Ud]??1);return a}function Vd(n,r){if(typeof n.disconnectedNodes>"u"){const s=n.data[Zd];n.disconnectedNodes=s?new Set(s):null}return!!n.disconnectedNodes?.has(r)}class o0{}class tm{}class s0{resolveComponentFactory(r){throw function r0(n){const r=Error(`No component factory found for ${U(n)}.`);return r.ngComponent=n,r}(r)}}let Jl=(()=>{class n{static#t=this.NULL=new s0}return n})();function a0(){return Qc(qo(),kn())}function Qc(n,r){return new Wl(di(n,r))}let Wl=(()=>{class n{constructor(s){this.nativeElement=s}static#t=this.__NG_ELEMENT_ID__=a0}return n})();function c0(n){return n instanceof Wl?n.nativeElement:n}class nm{}let l0=(()=>{class n{constructor(){this.destroyNode=null}static#t=this.__NG_ELEMENT_ID__=()=>function d0(){const n=kn(),s=Si(qo().index,n);return(Io(s)?s:n)[Zn]}()}return n})(),u0=(()=>{class n{static#t=this.\u0275prov=At({token:n,providedIn:"root",factory:()=>null})}return n})();class im{constructor(r){this.full=r,this.major=r.split(".")[0],this.minor=r.split(".")[1],this.patch=r.split(".").slice(2).join(".")}}const p0=new im("16.2.10"),wp={};function am(n,r=null,s=null,a){const u=cm(n,r,s,a);return u.resolveInjectorInitializers(),u}function cm(n,r=null,s=null,a,u=new Set){const m=[s||Ie,Rb(n)];return a=a||("object"==typeof n?void 0:U(n)),new Bd(m,r||Fd(),a||null,u)}let da=(()=>{class n{static#t=this.THROW_IF_NOT_FOUND=te;static#e=this.NULL=new ap;static create(s,a){if(Array.isArray(s))return am({name:""},a,s,"");{const u=s.name??"";return am({name:u},s.parent,s.providers,u)}}static#n=this.\u0275prov=At({token:n,providedIn:"any",factory:()=>de(Hg)});static#i=this.__NG_ELEMENT_ID__=-1}return n})();function Dp(n){return n.ngOriginalError}class qa{constructor(){this._console=console}handleError(r){const s=this._findOriginalError(r);this._console.error("ERROR",r),s&&this._console.error("ORIGINAL ERROR",s)}_findOriginalError(r){let s=r&&Dp(r);for(;s&&Dp(s);)s=Dp(s);return s||null}}function Ep(n){return r=>{setTimeout(n,void 0,r)}}const xa=class v0 extends o.x{constructor(r=!1){super(),this.__isAsync=r}emit(r){super.next(r)}subscribe(r,s,a){let u=r,m=s||(()=>null),M=a;if(r&&"object"==typeof r){const Z=r;u=Z.next?.bind(Z),m=Z.error?.bind(Z),M=Z.complete?.bind(Z)}this.__isAsync&&(m=Ep(m),u&&(u=Ep(u)),M&&(M=Ep(M)));const k=super.subscribe({next:u,error:m,complete:M});return r instanceof e.w0&&r.add(k),k}};function dm(...n){}class Fr{constructor({enableLongStackTrace:r=!1,shouldCoalesceEventChangeDetection:s=!1,shouldCoalesceRunChangeDetection:a=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xa(!1),this.onMicrotaskEmpty=new xa(!1),this.onStable=new xa(!1),this.onError=new xa(!1),typeof Zone>"u")throw new j(908,!1);Zone.assertZonePatched();const u=this;u._nesting=0,u._outer=u._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(u._inner=u._inner.fork(new Zone.TaskTrackingZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(u._inner=u._inner.fork(Zone.longStackTraceZoneSpec)),u.shouldCoalesceEventChangeDetection=!a&&s,u.shouldCoalesceRunChangeDetection=a,u.lastRequestAnimationFrameId=-1,u.nativeRequestAnimationFrame=function b0(){const n="function"==typeof re.requestAnimationFrame;let r=re[n?"requestAnimationFrame":"setTimeout"],s=re[n?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&r&&s){const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a);const u=s[Zone.__symbol__("OriginalDelegate")];u&&(s=u)}return{nativeRequestAnimationFrame:r,nativeCancelAnimationFrame:s}}().nativeRequestAnimationFrame,function O0(n){const r=()=>{!function x0(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(re,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Ap(n),n.isCheckStableRunning=!0,Sp(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Ap(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(s,a,u,m,M,k)=>{if(function y0(n){return!(!Array.isArray(n)||1!==n.length)&&!0===n[0].data?.__ignore_ng_zone__}(k))return s.invokeTask(u,m,M,k);try{return um(n),s.invokeTask(u,m,M,k)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===m.type||n.shouldCoalesceRunChangeDetection)&&r(),pm(n)}},onInvoke:(s,a,u,m,M,k,Z)=>{try{return um(n),s.invoke(u,m,M,k,Z)}finally{n.shouldCoalesceRunChangeDetection&&r(),pm(n)}},onHasTask:(s,a,u,m)=>{s.hasTask(u,m),a===u&&("microTask"==m.change?(n._hasPendingMicrotasks=m.microTask,Ap(n),Sp(n)):"macroTask"==m.change&&(n.hasPendingMacrotasks=m.macroTask))},onHandleError:(s,a,u,m)=>(s.handleError(u,m),n.runOutsideAngular(()=>n.onError.emit(m)),!1)})}(u)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fr.isInAngularZone())throw new j(909,!1)}static assertNotInAngularZone(){if(Fr.isInAngularZone())throw new j(909,!1)}run(r,s,a){return this._inner.run(r,s,a)}runTask(r,s,a,u){const m=this._inner,M=m.scheduleEventTask("NgZoneEvent: "+u,r,M0,dm,dm);try{return m.runTask(M,s,a)}finally{m.cancelTask(M)}}runGuarded(r,s,a){return this._inner.runGuarded(r,s,a)}runOutsideAngular(r){return this._outer.run(r)}}const M0={};function Sp(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Ap(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function um(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function pm(n){n._nesting--,Sp(n)}class P0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xa,this.onMicrotaskEmpty=new xa,this.onStable=new xa,this.onError=new xa}run(r,s,a){return r.apply(s,a)}runGuarded(r,s,a){return r.apply(s,a)}runOutsideAngular(r){return r()}runTask(r,s,a,u){return r.apply(s,a)}}const hm=new Uo("",{providedIn:"root",factory:gm});function gm(){const n=X(Fr);let r=!0;const s=new g.y(u=>{r=n.isStable&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks,n.runOutsideAngular(()=>{u.next(r),u.complete()})}),a=new g.y(u=>{let m;n.runOutsideAngular(()=>{m=n.onStable.subscribe(()=>{Fr.assertNotInAngularZone(),queueMicrotask(()=>{!r&&!n.hasPendingMacrotasks&&!n.hasPendingMicrotasks&&(r=!0,u.next(!0))})})});const M=n.onUnstable.subscribe(()=>{Fr.assertInAngularZone(),r&&(r=!1,n.runOutsideAngular(()=>{u.next(!1)}))});return()=>{m.unsubscribe(),M.unsubscribe()}});return(0,x.T)(s,a.pipe((0,R.B)()))}function mm(n){return n.ownerDocument.defaultView}function Ua(n){return n instanceof Function?n():n}function Wc(n){return"browser"===(n??X(da)).get(mp)}let Ip=(()=>{class n{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#t=this.\u0275prov=At({token:n,providedIn:"root",factory:()=>new n})}return n})();function $l(n){for(;n;){n[un]|=64;const r=Ul(n);if(fr(n)&&!r)return n;n=r}return null}const Yd=new Uo(""),bm=new Uo("",{providedIn:"root",factory:()=>!1});let jd=null;function Pm(n,r){return n[r]??Tm()}function ym(n,r){const s=Tm();s.producerNode?.length&&(n[r]=jd,s.lView=n,jd=wm())}const L0={...Kr,consumerIsAlwaysLive:!0,consumerMarkedDirty:n=>{$l(n.lView)},lView:null};function wm(){return Object.create(L0)}function Tm(){return jd??=wm(),jd}const $i={};function Dm(n){km(Qi(),kn(),Dr()+n,!1)}function km(n,r,s,a){if(!a)if(3==(3&r[un])){const m=n.preOrderCheckHooks;null!==m&&es(r,m,s)}else{const m=n.preOrderHooks;null!==m&&ja(r,m,0,s)}ra(s)}function $c(n,r=me.Default){const s=kn();return null===s?de(n,r):ne(qo(),s,A(n),r)}function Em(){throw new Error("invalid")}function Gd(n,r,s,a,u,m,M,k,Z,bt,Qt){const Ee=r.blueprint.slice();return Ee[ge]=u,Ee[un]=140|a,(null!==bt||n&&2048&n[un])&&(Ee[un]|=2048),eo(Ee),Ee[Dn]=Ee[mo]=n,Ee[ni]=s,Ee[Gi]=M||n&&n[Gi],Ee[Zn]=k||n&&n[Zn],Ee[pi]=Z||n&&n[pi]||null,Ee[Vn]=m,Ee[nr]=function Na(){return Nr++}(),Ee[Pi]=Qt,Ee[Jr]=bt,Ee[qn]=2==r.type?n[qn]:Ee,Ee}function Kc(n,r,s,a,u){let m=n.data[r];if(null===m)m=function Lp(n,r,s,a,u){const m=Ks(),M=Ta(),Z=n.data[r]=function V0(n,r,s,a,u,m){let M=r?r.injectorIndex:-1,k=0;return To()&&(k|=128),{type:s,index:a,insertBeforeIndex:null,injectorIndex:M,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:k,providerIndexes:0,value:u,attrs:m,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,M?m:m&&m.parent,s,r,a,u);return null===n.firstChild&&(n.firstChild=Z),null!==m&&(M?null==m.child&&null!==Z.parent&&(m.child=Z):null===m.next&&(m.next=Z,Z.prev=m)),Z}(n,r,s,a,u),function Q(){return Bn.lFrame.inI18n}()&&(m.flags|=32);else if(64&m.type){m.type=s,m.value=a,m.attrs=u;const M=function Os(){const n=Bn.lFrame,r=n.currentTNode;return n.isParent?r:r.parent}();m.injectorIndex=null===M?-1:M.injectorIndex}return Gr(m,!0),m}function Kl(n,r,s,a){if(0===s)return-1;const u=r.length;for(let m=0;m<s;m++)r.push(a),n.blueprint.push(a),n.data.push(null);return u}function Sm(n,r,s,a,u){const m=Pm(r,oo),M=Dr(),k=2&a;try{ra(-1),k&&r.length>bi&&km(n,r,bi,!1),Nn(k?2:0,u);const bt=k?m:null,Qt=Xr(bt);try{null!==bt&&(bt.dirty=!1),s(a,u)}finally{vs(bt,Qt)}}finally{k&&null===r[oo]&&ym(r,oo),ra(M),Nn(k?3:1,u)}}function Rp(n,r,s){if(pr(r)){const a=Oo(null);try{const m=r.directiveEnd;for(let M=r.directiveStart;M<m;M++){const k=n.data[M];k.contentQueries&&k.contentQueries(1,s[M],M)}}finally{Oo(a)}}}function Np(n,r,s){Po()&&(function W0(n,r,s,a){const u=s.directiveStart,m=s.directiveEnd;mr(s)&&function nM(n,r,s){const a=di(r,n),u=Am(s);let M=16;s.signals?M=4096:s.onPush&&(M=64);const k=zd(n,Gd(n,u,null,M,a,r,null,n[Gi].rendererFactory.createRenderer(a,s),null,null,null));n[r.index]=k}(r,s,n.data[u+s.componentOffset]),n.firstCreatePass||ma(s,r),rs(a,r);const M=s.initialInputs;for(let k=u;k<m;k++){const Z=n.data[k],bt=Vi(r,n,k,s);rs(bt,r),null!==M&&iM(0,k-u,bt,Z,0,M),vn(Z)&&(Si(s.index,r)[ni]=Vi(r,n,k,s))}}(n,r,s,di(s,r)),64==(64&s.flags)&&Fm(n,r,s))}function Fp(n,r,s=di){const a=r.localNames;if(null!==a){let u=r.index+1;for(let m=0;m<a.length;m+=2){const M=a[m+1],k=-1===M?s(r,n):n[M];n[u++]=k}}}function Am(n){const r=n.tView;return null===r||r.incompleteFirstPass?n.tView=Bp(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts,n.id):r}function Bp(n,r,s,a,u,m,M,k,Z,bt,Qt){const Ee=bi+a,nn=Ee+u,pn=function N0(n,r){const s=[];for(let a=0;a<r;a++)s.push(a<n?null:$i);return s}(Ee,nn),En="function"==typeof bt?bt():bt;return pn[Pe]={type:n,blueprint:pn,template:s,queries:null,viewQuery:k,declTNode:r,data:pn.slice().fill(null,Ee),bindingStartIndex:Ee,expandoStartIndex:nn,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 m?m():m,pipeRegistry:"function"==typeof M?M():M,firstChild:null,schemas:Z,consts:En,incompleteFirstPass:!1,ssrId:Qt}}let Im=n=>null;function U0(n){Ni(n)?yg(n):function t0(n){const r=Vc(),s=r.createNodeIterator(n,NodeFilter.SHOW_COMMENT,{acceptNode(m){const M=function Xb(n){return n.textContent?.replace(/\s/gm,"")}(m);return"ngetn"===M||"ngtns"===M?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let a;const u=[];for(;a=s.nextNode();)u.push(a);for(const m of u)"ngetn"===m.textContent?m.replaceWith(r.createTextNode("")):m.remove()}(n)}function Lm(n,r,s,a){for(let u in n)if(n.hasOwnProperty(u)){s=null===s?{}:s;const m=n[u];null===a?Rm(s,r,u,m):a.hasOwnProperty(u)&&Rm(s,r,a[u],m)}return s}function Rm(n,r,s,a){n.hasOwnProperty(s)?n[s].push(r,a):n[s]=[r,a]}function Ys(n,r,s,a,u,m,M,k){const Z=di(r,s);let Qt,bt=r.inputs;!k&&null!=bt&&(Qt=bt[a])?(Yp(n,s,Qt,a,u),mr(r)&&function G0(n,r){const s=Si(r,n);16&s[un]||(s[un]|=64)}(s,r.index)):3&r.type&&(a=function j0(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(a),u=null!=M?M(u,r.value||"",a):u,m.setProperty(Z,a,u))}function Up(n,r,s,a){if(Po()){const u=null===a?null:{"":-1},m=function K0(n,r){const s=n.directiveRegistry;let a=null,u=null;if(s)for(let m=0;m<s.length;m++){const M=s[m];if(Fo(r,M.selectors,!1))if(a||(a=[]),vn(M))if(null!==M.findHostDirectiveDefs){const k=[];u=u||new Map,M.findHostDirectiveDefs(M,k,u),a.unshift(...k,M),Zp(n,r,k.length)}else a.unshift(M),Zp(n,r,0);else u=u||new Map,M.findHostDirectiveDefs?.(M,a,u),a.push(M)}return null===a?null:[a,u]}(n,s);let M,k;null===m?M=k=null:[M,k]=m,null!==M&&Nm(n,r,s,M,u,k),u&&function q0(n,r,s){if(r){const a=n.localNames=[];for(let u=0;u<r.length;u+=2){const m=s[r[u+1]];if(null==m)throw new j(-301,!1);a.push(r[u],m)}}}(s,a,u)}s.mergedAttrs=Ye(s.mergedAttrs,s.attrs)}function Nm(n,r,s,a,u,m){for(let bt=0;bt<a.length;bt++)C(ma(s,r),n,a[bt].type);!function tM(n,r,s){n.flags|=1,n.directiveStart=r,n.directiveEnd=r+s,n.providerIndexes=r}(s,n.data.length,a.length);for(let bt=0;bt<a.length;bt++){const Qt=a[bt];Qt.providersResolver&&Qt.providersResolver(Qt)}let M=!1,k=!1,Z=Kl(n,r,a.length,null);for(let bt=0;bt<a.length;bt++){const Qt=a[bt];s.mergedAttrs=Ye(s.mergedAttrs,Qt.hostAttrs),eM(n,s,r,Z,Qt),X0(Z,Qt,u),null!==Qt.contentQueries&&(s.flags|=4),(null!==Qt.hostBindings||null!==Qt.hostAttrs||0!==Qt.hostVars)&&(s.flags|=64);const Ee=Qt.type.prototype;!M&&(Ee.ngOnChanges||Ee.ngOnInit||Ee.ngDoCheck)&&((n.preOrderHooks??=[]).push(s.index),M=!0),!k&&(Ee.ngOnChanges||Ee.ngDoCheck)&&((n.preOrderCheckHooks??=[]).push(s.index),k=!0),Z++}!function Y0(n,r,s){const u=r.directiveEnd,m=n.data,M=r.attrs,k=[];let Z=null,bt=null;for(let Qt=r.directiveStart;Qt<u;Qt++){const Ee=m[Qt],nn=s?s.get(Ee):null,En=nn?nn.outputs:null;Z=Lm(Ee.inputs,Qt,Z,nn?nn.inputs:null),bt=Lm(Ee.outputs,Qt,bt,En);const Hn=null===Z||null===M||kt(r)?null:oM(Z,Qt,M);k.push(Hn)}null!==Z&&(Z.hasOwnProperty("class")&&(r.flags|=8),Z.hasOwnProperty("style")&&(r.flags|=16)),r.initialInputs=k,r.inputs=Z,r.outputs=bt}(n,s,m)}function Fm(n,r,s){const a=s.directiveStart,u=s.directiveEnd,m=s.index,M=function Re(){return Bn.lFrame.currentDirectiveIndex}();try{ra(m);for(let k=a;k<u;k++){const Z=n.data[k],bt=r[k];bn(k),(null!==Z.hostBindings||0!==Z.hostVars||null!==Z.hostAttrs)&&$0(Z,bt)}}finally{ra(-1),bn(M)}}function $0(n,r){null!==n.hostBindings&&n.hostBindings(1,r)}function Zp(n,r,s){r.componentOffset=s,(n.components??=[]).push(r.index)}function X0(n,r,s){if(s){if(r.exportAs)for(let a=0;a<r.exportAs.length;a++)s[r.exportAs[a]]=n;vn(r)&&(s[""]=n)}}function eM(n,r,s,a,u){n.data[a]=u;const m=u.factory||(u.factory=Ko(u.type)),M=new Ea(m,vn(u),$c);n.blueprint[a]=M,s[a]=M,function Q0(n,r,s,a,u){const m=u.hostBindings;if(m){let M=n.hostBindingOpCodes;null===M&&(M=n.hostBindingOpCodes=[]);const k=~r.index;(function J0(n){let r=n.length;for(;r>0;){const s=n[--r];if("number"==typeof s&&s<0)return s}return 0})(M)!=k&&M.push(k),M.push(s,a,m)}}(n,r,a,Kl(n,s,u.hostVars,$i),u)}function Oa(n,r,s,a,u,m){const M=di(n,r);!function Hp(n,r,s,a,u,m,M){if(null==m)n.removeAttribute(r,u,s);else{const k=null==M?ht(m):M(m,a||"",u);n.setAttribute(r,u,k,s)}}(r[Zn],M,m,n.value,s,a,u)}function iM(n,r,s,a,u,m){const M=m[r];if(null!==M)for(let k=0;k<M.length;)Bm(a,s,M[k++],M[k++],M[k++])}function Bm(n,r,s,a,u){const m=Oo(null);try{const M=n.inputTransforms;null!==M&&M.hasOwnProperty(a)&&(u=M[a].call(r,u)),null!==n.setInput?n.setInput(r,u,s,a):r[a]=u}finally{Oo(m)}}function oM(n,r,s){let a=null,u=0;for(;u<s.length;){const m=s[u];if(0!==m)if(5!==m){if("number"==typeof m)break;if(n.hasOwnProperty(m)){null===a&&(a=[]);const M=n[m];for(let k=0;k<M.length;k+=2)if(M[k]===r){a.push(m,M[k+1],s[u+1]);break}}u+=2}else u+=2;else u+=4}return a}function Um(n,r,s,a){return[n,!0,!1,r,null,0,a,s,null,null,null]}function Zm(n,r){const s=n.contentQueries;if(null!==s)for(let a=0;a<s.length;a+=2){const m=s[a+1];if(-1!==m){const M=n.data[m];wn(s[a]),M.contentQueries(2,r[m],m)}}}function zd(n,r){return n[Li]?n[So][Un]=r:n[Li]=r,n[So]=r,r}function Vp(n,r,s){wn(0);const a=Oo(null);try{r(n,s)}finally{Oo(a)}}function Hm(n){return n[Oi]||(n[Oi]=[])}function Vm(n){return n.cleanup||(n.cleanup=[])}function Ym(n,r,s){return(null===n||vn(n))&&(s=function oi(n){for(;Array.isArray(n);){if("object"==typeof n[Zo])return n;n=n[ge]}return null}(s[r.index])),s[Zn]}function jm(n,r){const s=n[pi],a=s?s.get(qa,null):null;a&&a.handleError(r)}function Yp(n,r,s,a,u){for(let m=0;m<s.length;){const M=s[m++],k=s[m++];Bm(n.data[M],r[M],a,k,u)}}function Za(n,r,s){const a=gi(r,n);!function mg(n,r,s){n.setValue(r,s)}(n[Zn],a,s)}function rM(n,r){const s=Si(r,n),a=s[Pe];!function sM(n,r){for(let s=r.length;s<n.blueprint.length;s++)r.push(n.blueprint[s])}(a,s);const u=s[ge];null!==u&&null===s[Pi]&&(s[Pi]=Op(u,s[pi])),jp(a,s,s[ni])}function jp(n,r,s){Lr(r);try{const a=n.viewQuery;null!==a&&Vp(1,a,s);const u=n.template;null!==u&&Sm(n,r,u,1,s),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Zm(n,r),n.staticViewQueries&&Vp(2,n.viewQuery,s);const m=n.components;null!==m&&function aM(n,r){for(let s=0;s<r.length;s++)rM(n,r[s])}(r,m)}catch(a){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),a}finally{r[un]&=-5,Da()}}let Gm=(()=>{class n{constructor(){this.all=new Set,this.queue=new Map}create(s,a,u){const m=typeof Zone>"u"?null:Zone.current,M=function Pn(n,r,s){const a=Object.create(to);s&&(a.consumerAllowSignalWrites=!0),a.fn=n,a.schedule=r;const u=M=>{a.cleanupFn=M};return a.ref={notify:()=>Ur(a),run:()=>{if(a.dirty=!1,a.hasRun&&!Zr(a))return;a.hasRun=!0;const M=Xr(a);try{a.cleanupFn(),a.cleanupFn=Yn,a.fn(u)}finally{vs(a,M)}},cleanup:()=>a.cleanupFn()},a.ref}(s,bt=>{this.all.has(bt)&&this.queue.set(bt,m)},u);let k;this.all.add(M),M.notify();const Z=()=>{M.cleanup(),k?.(),this.all.delete(M),this.queue.delete(M)};return k=a?.onDestroy(Z),{destroy:Z}}flush(){if(0!==this.queue.size)for(const[s,a]of this.queue)this.queue.delete(s),a?a.run(()=>s.run()):s.run()}get isQueueEmpty(){return 0===this.queue.size}static#t=this.\u0275prov=At({token:n,providedIn:"root",factory:()=>new n})}return n})();function Qd(n,r,s){let a=s?n.styles:null,u=s?n.classes:null,m=0;if(null!==r)for(let M=0;M<r.length;M++){const k=r[M];"number"==typeof k?m=k:1==m?u=lt(u,k):2==m&&(a=lt(a,k+": "+r[++M]+";"))}s?n.styles=a:n.stylesWithoutHost=a,s?n.classes=u:n.classesWithoutHost=u}function ql(n,r,s,a,u=!1){for(;null!==s;){const m=r[s.index];null!==m&&a.push(jn(m)),_o(m)&&zm(m,a);const M=s.type;if(8&M)ql(n,r,s.child,a);else if(32&M){const k=Gu(s,r);let Z;for(;Z=k();)a.push(Z)}else if(16&M){const k=Pg(r,s);if(Array.isArray(k))a.push(...k);else{const Z=Ul(r[qn]);ql(Z[Pe],Z,k,a,!0)}}s=u?s.projectionNext:s.next}return a}function zm(n,r){for(let s=fo;s<n.length;s++){const a=n[s],u=a[Pe].firstChild;null!==u&&ql(a[Pe],a,u,r)}n[Jo]!==n[ge]&&r.push(n[Jo])}function Jd(n,r,s,a=!0){const u=r[Gi],m=u.rendererFactory,M=u.afterRenderEventManager;m.begin?.(),M?.begin();try{Qm(n,r,n.template,s)}catch(Z){throw a&&jm(r,Z),Z}finally{m.end?.(),u.effectManager?.flush(),M?.end()}}function Qm(n,r,s,a){const u=r[un];if(256!=(256&u)){r[Gi].effectManager?.flush(),Lr(r);try{eo(r),function I(n){return Bn.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==s&&Sm(n,r,s,2,a);const M=3==(3&u);if(M){const bt=n.preOrderCheckHooks;null!==bt&&es(r,bt,null)}else{const bt=n.preOrderHooks;null!==bt&&ja(r,bt,0,null),ic(r,0)}if(function dM(n){for(let r=pg(n);null!==r;r=hg(r)){if(!r[uo])continue;const s=r[gr];for(let a=0;a<s.length;a++){Wo(s[a])}}}(r),Jm(r,2),null!==n.contentQueries&&Zm(n,r),M){const bt=n.contentCheckHooks;null!==bt&&es(r,bt)}else{const bt=n.contentHooks;null!==bt&&ja(r,bt,1),ic(r,1)}!function R0(n,r){const s=n.hostBindingOpCodes;if(null===s)return;const a=Pm(r,Go);try{for(let u=0;u<s.length;u++){const m=s[u];if(m<0)ra(~m);else{const M=m,k=s[++u],Z=s[++u];Wt(k,M),a.dirty=!1;const bt=Xr(a);try{Z(2,r[M])}finally{vs(a,bt)}}}}finally{null===r[Go]&&ym(r,Go),ra(-1)}}(n,r);const k=n.components;null!==k&&$m(r,k,0);const Z=n.viewQuery;if(null!==Z&&Vp(2,Z,a),M){const bt=n.viewCheckHooks;null!==bt&&es(r,bt)}else{const bt=n.viewHooks;null!==bt&&ja(r,bt,2),ic(r,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),r[un]&=-73,hr(r)}finally{Da()}}}function Jm(n,r){for(let s=pg(n);null!==s;s=hg(s))for(let a=fo;a<s.length;a++)Wm(s[a],r)}function uM(n,r,s){Wm(Si(r,n),s)}function Wm(n,r){if(!function vo(n){return 128==(128&n[un])}(n))return;const s=n[Pe],a=n[un];if(80&a&&0===r||1024&a||2===r)Qm(s,n,s.template,n[ni]);else if(n[Qn]>0){Jm(n,1);const u=s.components;null!==u&&$m(n,u,1)}}function $m(n,r,s){for(let a=0;a<r.length;a++)uM(n,r[a],s)}class Xl{get rootNodes(){const r=this._lView,s=r[Pe];return ql(s,r,s.firstChild,[])}constructor(r,s){this._lView=r,this._cdRefInjectingView=s,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ni]}set context(r){this._lView[ni]=r}get destroyed(){return 256==(256&this._lView[un])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const r=this._lView[Dn];if(_o(r)){const s=r[8],a=s?s.indexOf(this):-1;a>-1&&(Td(r,a),Uc(s,a))}this._attachedToViewContainer=!1}Qu(this._lView[Pe],this._lView)}onDestroy(r){!function Di(n,r){if(256==(256&n[un]))throw new j(911,!1);null===n[Ri]&&(n[Ri]=[]),n[Ri].push(r)}(this._lView,r)}markForCheck(){$l(this._cdRefInjectingView||this._lView)}detach(){this._lView[un]&=-129}reattach(){this._lView[un]|=128}detectChanges(){Jd(this._lView[Pe],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new j(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Jv(n,r){Hl(n,r,r[Zn],2,null,null)}(this._lView[Pe],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new j(902,!1);this._appRef=r}}class pM extends Xl{constructor(r){super(r),this._view=r}detectChanges(){const r=this._view;Jd(r[Pe],r,r[ni],!1)}checkNoChanges(){}get context(){return null}}class Km extends Jl{constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){const s=ii(r);return new td(s,this.ngModule)}}function qm(n){const r=[];for(let s in n)n.hasOwnProperty(s)&&r.push({propName:n[s],templateName:s});return r}class gM{constructor(r,s){this.injector=r,this.parentInjector=s}get(r,s,a){a=_e(a);const u=this.injector.get(r,wp,a);return u!==wp||s===wp?u:this.parentInjector.get(r,s,a)}}class td extends tm{get inputs(){const r=this.componentDef,s=r.inputTransforms,a=qm(r.inputs);if(null!==s)for(const u of a)s.hasOwnProperty(u.propName)&&(u.transform=s[u.propName]);return a}get outputs(){return qm(this.componentDef.outputs)}constructor(r,s){super(),this.componentDef=r,this.ngModule=s,this.componentType=r.type,this.selector=function xn(n){return n.map(Be).join(",")}(r.selectors),this.ngContentSelectors=r.ngContentSelectors?r.ngContentSelectors:[],this.isBoundToModule=!!s}create(r,s,a,u){let m=(u=u||this.ngModule)instanceof Ma?u:u?.injector;m&&null!==this.componentDef.getStandaloneInjector&&(m=this.componentDef.getStandaloneInjector(m)||m);const M=m?new gM(r,m):r,k=M.get(nm,null);if(null===k)throw new j(407,!1);const Ee={rendererFactory:k,sanitizer:M.get(u0,null),effectManager:M.get(Gm,null),afterRenderEventManager:M.get(Ip,null)},nn=k.createRenderer(null,this.componentDef),pn=this.componentDef.selectors[0][0]||"div",En=a?function F0(n,r,s,a){const m=a.get(bm,!1)||s===cn.ShadowDom,M=n.selectRootElement(r,m);return function B0(n){Im(n)}(M),M}(nn,a,this.componentDef.encapsulation,M):wd(nn,pn,function hM(n){const r=n.toLowerCase();return"svg"===r?ui:"math"===r?"math":null}(pn)),xi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Ln=null;null!==En&&(Ln=Op(En,M,!0));const zi=Bp(0,null,null,1,0,null,null,null,null,null,null),ao=Gd(null,zi,null,xi,null,null,Ee,nn,M,null,Ln);let Yo,Ls;Lr(ao);try{const Ha=this.componentDef;let gl,Xh=null;Ha.findHostDirectiveDefs?(gl=[],Xh=new Map,Ha.findHostDirectiveDefs(Ha,gl,Xh),gl.push(Ha)):gl=[Ha];const C1=function fM(n,r){const s=n[Pe],a=bi;return n[a]=r,Kc(s,a,2,"#host",null)}(ao,En),v1=function _M(n,r,s,a,u,m,M){const k=u[Pe];!function CM(n,r,s,a){for(const u of n)r.mergedAttrs=Ye(r.mergedAttrs,u.hostAttrs);null!==r.mergedAttrs&&(Qd(r,r.mergedAttrs,!0),null!==s&&Dg(a,s,r))}(a,n,r,M);let Z=null;null!==r&&(Z=Op(r,u[pi]));const bt=m.rendererFactory.createRenderer(r,s);let Qt=16;s.signals?Qt=4096:s.onPush&&(Qt=64);const Ee=Gd(u,Am(s),null,Qt,u[n.index],n,m,bt,null,null,Z);return k.firstCreatePass&&Zp(k,n,a.length-1),zd(u,Ee),u[n.index]=Ee}(C1,En,Ha,gl,ao,Ee,nn);Ls=Ci(zi,bi),En&&function bM(n,r,s,a){if(a)Ai(n,s,["ng-version",p0.full]);else{const{attrs:u,classes:m}=function Fn(n){const r=[],s=[];let a=1,u=2;for(;a<n.length;){let m=n[a];if("string"==typeof m)2===u?""!==m&&r.push(m,n[++a]):8===u&&s.push(m);else{if(!Gn(u))break;u=m}a++}return{attrs:r,classes:s}}(r.selectors[0]);u&&Ai(n,s,u),m&&m.length>0&&Tg(n,s,m.join(" "))}}(nn,Ha,En,a),void 0!==s&&function MM(n,r,s){const a=n.projection=[];for(let u=0;u<r.length;u++){const m=s[u];a.push(null!=m?Array.from(m):null)}}(Ls,this.ngContentSelectors,s),Yo=function vM(n,r,s,a,u,m){const M=qo(),k=u[Pe],Z=di(M,u);Nm(k,u,M,s,null,a);for(let Qt=0;Qt<s.length;Qt++)rs(Vi(u,k,M.directiveStart+Qt,M),u);Fm(k,u,M),Z&&rs(Z,u);const bt=Vi(u,k,M.directiveStart+M.componentOffset,M);if(n[ni]=u[ni]=bt,null!==m)for(const Qt of m)Qt(bt,r);return Rp(k,M,n),bt}(v1,Ha,gl,Xh,ao,[xM]),jp(zi,ao,null)}finally{Da()}return new mM(this.componentType,Yo,Qc(Ls,ao),ao,Ls)}}class mM extends o0{constructor(r,s,a,u,m){super(),this.location=a,this._rootLView=u,this._tNode=m,this.previousInputValues=null,this.instance=s,this.hostView=this.changeDetectorRef=new pM(u),this.componentType=r}setInput(r,s){const a=this._tNode.inputs;let u;if(null!==a&&(u=a[r])){if(this.previousInputValues??=new Map,this.previousInputValues.has(r)&&Object.is(this.previousInputValues.get(r),s))return;const m=this._rootLView;Yp(m[Pe],m,u,r,s),this.previousInputValues.set(r,s),$l(Si(this._tNode.index,m))}}get injector(){return new zr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(r){this.hostView.onDestroy(r)}}function xM(){const n=qo();Ya(kn()[Pe],n)}function Gp(n){let r=function Xm(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),s=!0;const a=[n];for(;r;){let u;if(vn(n))u=r.\u0275cmp||r.\u0275dir;else{if(r.\u0275cmp)throw new j(903,!1);u=r.\u0275dir}if(u){if(s){a.push(u);const M=n;M.inputs=Wd(n.inputs),M.inputTransforms=Wd(n.inputTransforms),M.declaredInputs=Wd(n.declaredInputs),M.outputs=Wd(n.outputs);const k=u.hostBindings;k&&wM(n,k);const Z=u.viewQuery,bt=u.contentQueries;if(Z&&PM(n,Z),bt&&yM(n,bt),G(n.inputs,u.inputs),G(n.declaredInputs,u.declaredInputs),G(n.outputs,u.outputs),null!==u.inputTransforms&&(null===M.inputTransforms&&(M.inputTransforms={}),G(M.inputTransforms,u.inputTransforms)),vn(u)&&u.data.animation){const Qt=n.data;Qt.animation=(Qt.animation||[]).concat(u.data.animation)}}const m=u.features;if(m)for(let M=0;M<m.length;M++){const k=m[M];k&&k.ngInherit&&k(n),k===Gp&&(s=!1)}}r=Object.getPrototypeOf(r)}!function OM(n){let r=0,s=null;for(let a=n.length-1;a>=0;a--){const u=n[a];u.hostVars=r+=u.hostVars,u.hostAttrs=Ye(u.hostAttrs,s=Ye(s,u.hostAttrs))}}(a)}function Wd(n){return n===se?{}:n===Ie?[]:n}function PM(n,r){const s=n.viewQuery;n.viewQuery=s?(a,u)=>{r(a,u),s(a,u)}:r}function yM(n,r){const s=n.contentQueries;n.contentQueries=s?(a,u,m)=>{r(a,u,m),s(a,u,m)}:r}function wM(n,r){const s=n.hostBindings;n.hostBindings=s?(a,u)=>{r(a,u),s(a,u)}:r}function rf(n){const r=n.inputConfig,s={};for(const a in r)if(r.hasOwnProperty(a)){const u=r[a];Array.isArray(u)&&u[2]&&(s[a]=u[2])}n.inputTransforms=s}function $d(n){return!!zp(n)&&(Array.isArray(n)||!(n instanceof Map)&&Symbol.iterator in n)}function zp(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function Pa(n,r,s){return n[r]=s}function ed(n,r){return n[r]}function ss(n,r,s){return!Object.is(n[r],s)&&(n[r]=s,!0)}function yc(n,r,s,a){const u=ss(n,r,s);return ss(n,r+1,a)||u}function Kd(n,r,s,a,u){const m=yc(n,r,s,a);return ss(n,r+2,u)||m}function ea(n,r,s,a,u,m){const M=yc(n,r,s,a);return yc(n,r+2,u,m)||M}function Qp(n,r,s,a){const u=kn();return ss(u,Y(),r)&&(Qi(),Oa(yo(),u,n,r,s,a)),Qp}function Xc(n,r,s,a){return ss(n,Y(),s)?r+ht(s)+a:$i}const YM=new RegExp(`^(\\d+)*(${_p}|${fp})*(.*)`);function Kp(n){return n.index-bi}function Xd(n,r,s,a){let u=null;const m=Kp(a),M=n.data[Mp];if(M?.[m])u=function JM(n,r){const[s,...a]=function GM(n){const r=n.match(YM),[s,a,u,m]=r,M=a?parseInt(a,10):u,k=[];for(const[Z,bt,Qt]of m.matchAll(/(f|n)(\d*)/g)){const Ee=parseInt(Qt,10)||1;k.push(bt,Ee)}return[M,...k]}(n);let u;return u=s===fp?r[qn][ge]:s===_p?function fm(n){return n.ownerDocument.body}(r[qn][ge]):jn(r[Number(s)+bi]),function QM(n,r){let s=n;for(let a=0;a<r.length;a+=2){const u=r[a],m=r[a+1];for(let M=0;M<m;M++)switch(u){case Gc.FirstChild:s=s.firstChild;break;case Gc.NextSibling:s=s.nextSibling}}return s}(u,a)}(M[m],s);else if(r.firstChild===a)u=n.firstChild;else{const k=null===a.prev,Z=a.prev??a.parent;if(function zM(n){return!n.prev&&8===n.parent?.type}(a))u=Pp(n,Kp(a.parent));else{let bt=di(Z,s);if(k)u=bt.firstChild;else{const Qt=Kp(Z),Ee=Pp(n,Qt);u=2===Z.type&&Ee?tu(yp(n,Qt)+1,Ee):bt.nextSibling}}}return u}function tu(n,r){let s=r;for(let a=0;a<n;a++)s=s.nextSibling;return s}function Cf(n,r,s,a,u,m,M,k){const Z=kn(),bt=Qi(),Qt=n+bi,Ee=bt.firstCreatePass?function KM(n,r,s,a,u,m,M,k,Z){const bt=r.consts,Qt=Kc(r,n,4,M||null,Kn(bt,k));Up(r,s,Qt,Kn(bt,Z)),Ya(r,Qt);const Ee=Qt.tView=Bp(2,Qt,a,u,m,r.directiveRegistry,r.pipeRegistry,null,r.schemas,bt,null);return null!==r.queries&&(r.queries.template(r,Qt),Ee.queries=r.queries.embeddedTView(Qt)),Qt}(Qt,bt,Z,r,s,a,u,m,M):bt.data[Qt];Gr(Ee,!1);const nn=vf(bt,Z,Ee,n);ka()&&kd(bt,Z,nn,Ee),rs(nn,Z),zd(Z,Z[Qt]=Um(nn,Z,nn,Ee)),Wr(Ee)&&Np(bt,Z,Ee),null!=M&&Fp(Z,Ee,k)}let vf=bf;function bf(n,r,s,a){return ys(!0),r[Zn].createComment("")}function qM(n,r,s,a){const u=r[Pi],m=!u||To()||Vd(u,a);if(ys(m),m)return bf(0,r);const M=u.data[vp]?.[a]??null;null!==M&&null!==s.tView&&null===s.tView.ssrId&&(s.tView.ssrId=M);const k=Xd(u,n,r,s);return Hd(u,a,k),tu(yp(u,a),k)}function Mf(n){return mi(function Ec(){return Bn.lFrame.contextLView}(),bi+n)}function Xp(n,r,s){const a=kn();return ss(a,Y(),r)&&Ys(Qi(),yo(),a,n,r,a[Zn],s,!1),Xp}function th(n,r,s,a,u){const M=u?"class":"style";Yp(n,s,r.inputs[M],M,a)}function eu(n,r,s,a){const u=kn(),m=Qi(),M=bi+n,k=u[Zn],Z=m.firstCreatePass?function ex(n,r,s,a,u,m){const M=r.consts,Z=Kc(r,n,2,a,Kn(M,u));return Up(r,s,Z,Kn(M,m)),null!==Z.attrs&&Qd(Z,Z.attrs,!1),null!==Z.mergedAttrs&&Qd(Z,Z.mergedAttrs,!0),null!==r.queries&&r.queries.elementStart(r,Z),Z}(M,m,u,r,s,a):m.data[M],bt=xf(m,u,Z,k,r,n);u[M]=bt;const Qt=Wr(Z);return Gr(Z,!0),Dg(k,bt,Z),32!=(32&Z.flags)&&ka()&&kd(m,u,bt,Z),0===function Mi(){return Bn.lFrame.elementDepthCount}()&&rs(bt,u),function Ii(){Bn.lFrame.elementDepthCount++}(),Qt&&(Np(m,u,Z),Rp(m,Z,u)),null!==a&&Fp(u,Z),eu}function nu(){let n=qo();Ta()?Va():(n=n.parent,Gr(n,!1));const r=n;(function Pr(n){return Bn.skipHydrationRootTNode===n})(r)&&function wa(){Bn.skipHydrationRootTNode=null}(),function bo(){Bn.lFrame.elementDepthCount--}();const s=Qi();return s.firstCreatePass&&(Ya(s,n),pr(n)&&s.queries.elementEnd(n)),null!=r.classesWithoutHost&&function Hs(n){return 0!=(8&n.flags)}(r)&&th(s,r,kn(),r.classesWithoutHost,!0),null!=r.stylesWithoutHost&&function Ga(n){return 0!=(16&n.flags)}(r)&&th(s,r,kn(),r.stylesWithoutHost,!1),nu}function eh(n,r,s,a){return eu(n,r,s,a),nu(),eh}let xf=(n,r,s,a,u,m)=>(ys(!0),wd(a,u,nc()));function nx(n,r,s,a,u,m){const M=r[Pi],k=!M||To()||Vd(M,m);if(ys(k),k)return wd(a,u,nc());const Z=Xd(M,n,r,s);return Xg(M,m)&&Hd(M,m,Z.nextSibling),M&&(wi(s)||Ni(Z))&&mr(s)&&(function na(n){Bn.skipHydrationRootTNode=n}(s),yg(Z)),Z}function iu(n,r,s){const a=kn(),u=Qi(),m=n+bi,M=u.firstCreatePass?function ox(n,r,s,a,u){const m=r.consts,M=Kn(m,a),k=Kc(r,n,8,"ng-container",M);return null!==M&&Qd(k,M,!0),Up(r,s,k,Kn(m,u)),null!==r.queries&&r.queries.elementStart(r,k),k}(m,u,a,r,s):u.data[m];Gr(M,!0);const k=Of(u,a,M,n);return a[m]=k,ka()&&kd(u,a,k,M),rs(k,a),Wr(M)&&(Np(u,a,M),Rp(u,M,a)),null!=s&&Fp(a,M),iu}function ou(){let n=qo();const r=Qi();return Ta()?Va():(n=n.parent,Gr(n,!1)),r.firstCreatePass&&(Ya(r,n),pr(n)&&r.queries.elementEnd(n)),ou}function nh(n,r,s){return iu(n,r,s),ou(),nh}let Of=(n,r,s,a)=>(ys(!0),zu(r[Zn],""));function rx(n,r,s,a){let u;const m=r[Pi],M=!m||To();if(ys(M),M)return zu(r[Zn],"");const k=Xd(m,n,r,s),Z=function n0(n,r){const s=n.data;let a=s[Cp]?.[r]??null;return null===a&&s[zl]?.[r]&&(a=yp(n,r)),a}(m,a);return Hd(m,a,k),u=tu(Z,k),u}function Pf(){return kn()}function ih(n){return!!n&&"function"==typeof n.then}function yf(n){return!!n&&"function"==typeof n.subscribe}function oh(n,r,s,a){const u=kn(),m=Qi(),M=qo();return wf(m,u,u[Zn],M,n,r,a),oh}function rh(n,r){const s=qo(),a=kn(),u=Qi();return wf(u,a,Ym(fn(u.data),s,a),s,n,r),rh}function wf(n,r,s,a,u,m,M){const k=Wr(a),bt=n.firstCreatePass&&Vm(n),Qt=r[ni],Ee=Hm(r);let nn=!0;if(3&a.type||M){const Hn=di(a,r),ti=M?M(Hn):Hn,xi=Ee.length,Ln=M?ao=>M(jn(ao[a.index])):a.index;let zi=null;if(!M&&k&&(zi=function ax(n,r,s,a){const u=n.cleanup;if(null!=u)for(let m=0;m<u.length-1;m+=2){const M=u[m];if(M===s&&u[m+1]===a){const k=r[Oi],Z=u[m+2];return k.length>Z?k[Z]:null}"string"==typeof M&&(m+=2)}return null}(n,r,u,a.index)),null!==zi)(zi.__ngLastListenerFn__||zi).__ngNextListenerFn__=m,zi.__ngLastListenerFn__=m,nn=!1;else{m=Df(a,r,Qt,m,!1);const ao=s.listen(ti,u,m);Ee.push(m,ao),bt&&bt.push(u,Ln,xi,xi+1)}}else m=Df(a,r,Qt,m,!1);const pn=a.outputs;let En;if(nn&&null!==pn&&(En=pn[u])){const Hn=En.length;if(Hn)for(let ti=0;ti<Hn;ti+=2){const Yo=r[En[ti]][En[ti+1]].subscribe(m),Ls=Ee.length;Ee.push(m,Yo),bt&&bt.push(u,a.index,Ls,-(Ls+1))}}}function Tf(n,r,s,a){try{return Nn(6,r,s),!1!==s(a)}catch(u){return jm(n,u),!1}finally{Nn(7,r,s)}}function Df(n,r,s,a,u){return function m(M){if(M===Function)return a;$l(n.componentOffset>-1?Si(n.index,r):r);let Z=Tf(r,s,a,M),bt=m.__ngNextListenerFn__;for(;bt;)Z=Tf(r,s,bt,M)&&Z,bt=bt.__ngNextListenerFn__;return u&&!1===Z&&M.preventDefault(),Z}}function kf(n=1){return function fl(n){return(Bn.lFrame.contextLView=function _l(n,r){for(;n>0;)r=r[mo],n--;return r}(n,Bn.lFrame.contextLView))[ni]}(n)}function cx(n,r){let s=null;const a=function ir(n){const r=n.attrs;if(null!=r){const s=r.indexOf(5);if(!(1&s))return r[s+1]}return null}(n);for(let u=0;u<r.length;u++){const m=r[u];if("*"!==m){if(null===a?Fo(n,m,!0):Bt(a,m))return u}else s=u}return s}function Ef(n){const r=kn()[qn][Vn];if(!r.projection){const a=r.projection=lc(n?n.length:1,null),u=a.slice();let m=r.child;for(;null!==m;){const M=n?cx(m,n):0;null!==M&&(u[M]?u[M].projectionNext=m:a[M]=m,u[M]=m),m=m.next}}}function Sf(n,r=0,s){const a=kn(),u=Qi(),m=Kc(u,bi+n,16,null,s||null);null===m.projection&&(m.projection=r),Va(),(!a[Pi]||To())&&32!=(32&m.flags)&&function nb(n,r,s){wg(r[Zn],0,r,s,Wu(n,s,r),bg(s.parent||r[Vn],s,r))}(u,a,m)}function sh(n,r,s){return ru(n,"",r,"",s),sh}function ru(n,r,s,a,u){const m=kn(),M=Xc(m,r,s,a);return M!==$i&&Ys(Qi(),yo(),m,n,M,m[Zn],u,!1),ru}function su(n,r){return n<<17|r<<2}function Xa(n){return n>>17&32767}function ah(n){return 2|n}function wc(n){return(131068&n)>>2}function ch(n,r){return-131069&n|r<<2}function lh(n){return 1|n}function Zf(n,r,s,a,u){const m=n[s+1],M=null===r;let k=a?Xa(m):wc(m),Z=!1;for(;0!==k&&(!1===Z||M);){const Qt=n[k+1];gx(n[k],r)&&(Z=!0,n[k+1]=a?lh(Qt):ah(Qt)),k=a?Xa(Qt):wc(Qt)}Z&&(n[s+1]=a?ah(m):lh(m))}function gx(n,r){return null===n||null==r||(Array.isArray(n)?n[1]:n)===r||!(!Array.isArray(n)||"string"!=typeof r)&&La(n,r)>=0}const Er={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hf(n){return n.substring(Er.key,Er.keyEnd)}function mx(n){return n.substring(Er.value,Er.valueEnd)}function Vf(n,r){const s=Er.textEnd;return s===r?-1:(r=Er.keyEnd=function Cx(n,r,s){for(;r<s&&n.charCodeAt(r)>32;)r++;return r}(n,Er.key=r,s),al(n,r,s))}function Yf(n,r){const s=Er.textEnd;let a=Er.key=al(n,r,s);return s===a?-1:(a=Er.keyEnd=function vx(n,r,s){let a;for(;r<s&&(45===(a=n.charCodeAt(r))||95===a||(-33&a)>=65&&(-33&a)<=90||a>=48&&a<=57);)r++;return r}(n,a,s),a=Gf(n,a,s),a=Er.value=al(n,a,s),a=Er.valueEnd=function bx(n,r,s){let a=-1,u=-1,m=-1,M=r,k=M;for(;M<s;){const Z=n.charCodeAt(M++);if(59===Z)return k;34===Z||39===Z?k=M=zf(n,Z,M,s):r===M-4&&85===m&&82===u&&76===a&&40===Z?k=M=zf(n,41,M,s):Z>32&&(k=M),m=u,u=a,a=-33&Z}return k}(n,a,s),Gf(n,a,s))}function jf(n){Er.key=0,Er.keyEnd=0,Er.value=0,Er.valueEnd=0,Er.textEnd=n.length}function al(n,r,s){for(;r<s&&n.charCodeAt(r)<=32;)r++;return r}function Gf(n,r,s,a){return(r=al(n,r,s))<s&&r++,r}function zf(n,r,s,a){let u=-1,m=s;for(;m<a;){const M=n.charCodeAt(m++);if(M==r&&92!==u)return m;u=92==M&&92===u?0:M}throw new Error}function dh(n,r,s){return pa(n,r,s,!1),dh}function uh(n,r){return pa(n,r,null,!0),uh}function ua(n){ha(Wf,Mx,n,!1)}function Mx(n,r){for(let s=function _x(n){return jf(n),Yf(n,al(n,0,Er.textEnd))}(r);s>=0;s=Yf(r,s))Wf(n,Hf(r),mx(r))}function ya(n,r){for(let s=function fx(n){return jf(n),Vf(n,al(n,0,Er.textEnd))}(r);s>=0;s=Vf(r,s))Qr(n,Hf(r),!0)}function pa(n,r,s,a){const u=kn(),m=Qi(),M=D(2);m.firstUpdatePass&&Jf(m,n,M,a),r!==$i&&ss(u,M,r)&&$f(m,m.data[Dr()],u,u[Zn],n,u[M+1]=function Ex(n,r){return null==n||""===n||("string"==typeof r?n+=r:"object"==typeof n&&(n=U(Fa(n)))),n}(r,s),a,M)}function ha(n,r,s,a){const u=Qi(),m=D(2);u.firstUpdatePass&&Jf(u,null,m,a);const M=kn();if(s!==$i&&ss(M,m,s)){const k=u.data[Dr()];if(qf(k,a)&&!Qf(u,m)){let Z=a?k.classesWithoutHost:k.stylesWithoutHost;null!==Z&&(s=lt(Z,s||"")),th(u,k,M,s,a)}else!function kx(n,r,s,a,u,m,M,k){u===$i&&(u=Ie);let Z=0,bt=0,Qt=0<u.length?u[0]:null,Ee=0<m.length?m[0]:null;for(;null!==Qt||null!==Ee;){const nn=Z<u.length?u[Z+1]:void 0,pn=bt<m.length?m[bt+1]:void 0;let Hn,En=null;Qt===Ee?(Z+=2,bt+=2,nn!==pn&&(En=Ee,Hn=pn)):null===Ee||null!==Qt&&Qt<Ee?(Z+=2,En=Qt):(bt+=2,En=Ee,Hn=pn),null!==En&&$f(n,r,s,a,En,Hn,M,k),Qt=Z<u.length?u[Z]:null,Ee=bt<m.length?m[bt]:null}}(u,k,M,M[Zn],M[m+1],M[m+1]=function Tx(n,r,s){if(null==s||""===s)return Ie;const a=[],u=Fa(s);if(Array.isArray(u))for(let m=0;m<u.length;m++)n(a,u[m],!0);else if("object"==typeof u)for(const m in u)u.hasOwnProperty(m)&&n(a,m,u[m]);else"string"==typeof u&&r(a,u);return a}(n,r,s),a,m)}}function Qf(n,r){return r>=n.expandoStartIndex}function Jf(n,r,s,a){const u=n.data;if(null===u[s+1]){const m=u[Dr()],M=Qf(n,s);qf(m,a)&&null===r&&!M&&(r=!1),r=function Ox(n,r,s,a){const u=fn(n);let m=a?r.residualClasses:r.residualStyles;if(null===u)0===(a?r.classBindings:r.styleBindings)&&(s=rd(s=ph(null,n,r,s,a),r.attrs,a),m=null);else{const M=r.directiveStylingLast;if(-1===M||n[M]!==u)if(s=ph(u,n,r,s,a),null===m){let Z=function Px(n,r,s){const a=s?r.classBindings:r.styleBindings;if(0!==wc(a))return n[Xa(a)]}(n,r,a);void 0!==Z&&Array.isArray(Z)&&(Z=ph(null,n,r,Z[1],a),Z=rd(Z,r.attrs,a),function yx(n,r,s,a){n[Xa(s?r.classBindings:r.styleBindings)]=a}(n,r,a,Z))}else m=function wx(n,r,s){let a;const u=r.directiveEnd;for(let m=1+r.directiveStylingLast;m<u;m++)a=rd(a,n[m].hostAttrs,s);return rd(a,r.attrs,s)}(n,r,a)}return void 0!==m&&(a?r.residualClasses=m:r.residualStyles=m),s}(u,m,r,a),function px(n,r,s,a,u,m){let M=m?r.classBindings:r.styleBindings,k=Xa(M),Z=wc(M);n[a]=s;let Qt,bt=!1;if(Array.isArray(s)?(Qt=s[1],(null===Qt||La(s,Qt)>0)&&(bt=!0)):Qt=s,u)if(0!==Z){const nn=Xa(n[k+1]);n[a+1]=su(nn,k),0!==nn&&(n[nn+1]=ch(n[nn+1],a)),n[k+1]=function dx(n,r){return 131071&n|r<<17}(n[k+1],a)}else n[a+1]=su(k,0),0!==k&&(n[k+1]=ch(n[k+1],a)),k=a;else n[a+1]=su(Z,0),0===k?k=a:n[Z+1]=ch(n[Z+1],a),Z=a;bt&&(n[a+1]=ah(n[a+1])),Zf(n,Qt,a,!0),Zf(n,Qt,a,!1),function hx(n,r,s,a,u){const m=u?n.residualClasses:n.residualStyles;null!=m&&"string"==typeof r&&La(m,r)>=0&&(s[a+1]=lh(s[a+1]))}(r,Qt,n,a,m),M=su(k,Z),m?r.classBindings=M:r.styleBindings=M}(u,m,r,s,M,a)}}function ph(n,r,s,a,u){let m=null;const M=s.directiveEnd;let k=s.directiveStylingLast;for(-1===k?k=s.directiveStart:k++;k<M&&(m=r[k],a=rd(a,m.hostAttrs,u),m!==n);)k++;return null!==n&&(s.directiveStylingLast=k),a}function rd(n,r,s){const a=s?1:2;let u=-1;if(null!==r)for(let m=0;m<r.length;m++){const M=r[m];"number"==typeof M?u=M:u===a&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Qr(n,M,!!s||r[++m]))}return void 0===n?null:n}function Wf(n,r,s){Qr(n,r,Fa(s))}function $f(n,r,s,a,u,m,M,k){if(!(3&r.type))return;const Z=n.data,bt=Z[k+1],Qt=function ux(n){return 1==(1&n)}(bt)?Kf(Z,r,s,u,wc(bt),M):void 0;au(Qt)||(au(m)||function lx(n){return 2==(2&n)}(bt)&&(m=Kf(Z,null,s,u,k,M)),function ob(n,r,s,a,u){if(r)u?n.addClass(s,a):n.removeClass(s,a);else{let m=-1===a.indexOf("-")?void 0:ps.DashCase;null==u?n.removeStyle(s,a,m):("string"==typeof u&&u.endsWith("!important")&&(u=u.slice(0,-10),m|=ps.Important),n.setStyle(s,a,u,m))}}(a,M,gi(Dr(),s),u,m))}function Kf(n,r,s,a,u,m){const M=null===r;let k;for(;u>0;){const Z=n[u],bt=Array.isArray(Z),Qt=bt?Z[1]:Z,Ee=null===Qt;let nn=s[u+1];nn===$i&&(nn=Ee?Ie:void 0);let pn=Ee?uc(nn,a):Qt===a?nn:void 0;if(bt&&!au(pn)&&(pn=uc(Z,a)),au(pn)&&(k=pn,M))return k;const En=n[u+1];u=M?Xa(En):wc(En)}if(null!==r){let Z=m?r.residualClasses:r.residualStyles;null!=Z&&(k=uc(Z,a))}return k}function au(n){return void 0!==n}function qf(n,r){return 0!=(n.flags&(r?8:16))}function Xf(n,r=""){const s=kn(),a=Qi(),u=n+bi,m=a.firstCreatePass?Kc(a,u,1,r,null):a.data[u],M=t_(a,s,m,r,n);s[u]=M,ka()&&kd(a,s,M,m),Gr(m,!1)}let t_=(n,r,s,a,u)=>(ys(!0),yd(r[Zn],a));function Sx(n,r,s,a,u){const m=r[Pi],M=!m||To()||Vd(m,u);return ys(M),M?yd(r[Zn],a):Xd(m,n,r,s)}function hh(n){return cu("",n,""),hh}function cu(n,r,s){const a=kn(),u=Xc(a,n,r,s);return u!==$i&&Za(a,Dr(),u),cu}function gh(n,r,s,a,u){const m=kn(),M=function tl(n,r,s,a,u,m){const k=yc(n,Ps(),s,u);return D(2),k?r+ht(s)+a+ht(u)+m:$i}(m,n,r,s,a,u);return M!==$i&&Za(m,Dr(),M),gh}function mh(n,r,s,a,u,m,M){const k=kn(),Z=function el(n,r,s,a,u,m,M,k){const bt=Kd(n,Ps(),s,u,M);return D(3),bt?r+ht(s)+a+ht(u)+m+ht(M)+k:$i}(k,n,r,s,a,u,m,M);return Z!==$i&&Za(k,Dr(),Z),mh}function a_(n,r,s){ha(Qr,ya,Xc(kn(),n,r,s),!0)}function fh(n,r,s){const a=kn();return ss(a,Y(),r)&&Ys(Qi(),yo(),a,n,r,a[Zn],s,!0),fh}function _h(n,r,s){const a=kn();if(ss(a,Y(),r)){const m=Qi(),M=yo();Ys(m,M,a,n,r,Ym(fn(m.data),M,a),s,!0)}return _h}const Tc=void 0;var Kx=["en",[["a","p"],["AM","PM"],Tc],[["AM","PM"],Tc,Tc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Tc,[["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"]],Tc,[["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}",Tc,"{1} 'at' {0}",Tc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function $x(n){const s=Math.floor(Math.abs(n)),a=n.toString().replace(/^[^.]*\.?/,"").length;return 1===s&&0===a?1:5}];let cl={};function qx(n,r,s){"string"!=typeof r&&(s=r,r=n[ll.LocaleId]),r=r.toLowerCase().replace(/_/g,"-"),cl[r]=n,s&&(cl[r][ll.ExtraData]=s)}function Ch(n){const r=function Xx(n){return n.toLowerCase().replace(/_/g,"-")}(n);let s=C_(r);if(s)return s;const a=r.split("-")[0];if(s=C_(a),s)return s;if("en"===a)return Kx;throw new j(701,!1)}function __(n){return Ch(n)[ll.PluralCase]}function C_(n){return n in cl||(cl[n]=re.ng&&re.ng.common&&re.ng.common.locales&&re.ng.common.locales[n]),cl[n]}var ll=function(n){return n[n.LocaleId=0]="LocaleId",n[n.DayPeriodsFormat=1]="DayPeriodsFormat",n[n.DayPeriodsStandalone=2]="DayPeriodsStandalone",n[n.DaysFormat=3]="DaysFormat",n[n.DaysStandalone=4]="DaysStandalone",n[n.MonthsFormat=5]="MonthsFormat",n[n.MonthsStandalone=6]="MonthsStandalone",n[n.Eras=7]="Eras",n[n.FirstDayOfWeek=8]="FirstDayOfWeek",n[n.WeekendRange=9]="WeekendRange",n[n.DateFormat=10]="DateFormat",n[n.TimeFormat=11]="TimeFormat",n[n.DateTimeFormat=12]="DateTimeFormat",n[n.NumberSymbols=13]="NumberSymbols",n[n.NumberFormats=14]="NumberFormats",n[n.CurrencyCode=15]="CurrencyCode",n[n.CurrencySymbol=16]="CurrencySymbol",n[n.CurrencyName=17]="CurrencyName",n[n.Currencies=18]="Currencies",n[n.Directionality=19]="Directionality",n[n.PluralCase=20]="PluralCase",n[n.ExtraData=21]="ExtraData",n}(ll||{});const dl="en-US";let v_=dl;function Mh(n,r,s,a,u){if(n=A(n),Array.isArray(n))for(let m=0;m<n.length;m++)Mh(n[m],r,s,a,u);else{const m=Qi(),M=kn(),k=qo();let Z=Pc(n)?n:A(n.provide);const bt=Qg(n),Qt=1048575&k.providerIndexes,Ee=k.directiveStart,nn=k.providerIndexes>>20;if(Pc(n)||!n.multi){const pn=new Ea(bt,u,$c),En=Oh(Z,r,u?Qt:Qt+nn,Ee);-1===En?(C(ma(k,M),m,Z),xh(m,n,r.length),r.push(Z),k.directiveStart++,k.directiveEnd++,u&&(k.providerIndexes+=1048576),s.push(pn),M.push(pn)):(s[En]=pn,M[En]=pn)}else{const pn=Oh(Z,r,Qt+nn,Ee),En=Oh(Z,r,Qt,Qt+nn),ti=En>=0&&s[En];if(u&&!ti||!u&&!(pn>=0&&s[pn])){C(ma(k,M),m,Z);const xi=function KO(n,r,s,a,u){const m=new Ea(n,s,$c);return m.multi=[],m.index=r,m.componentProviders=0,j_(m,u,a&&!s),m}(u?$O:WO,s.length,u,a,bt);!u&&ti&&(s[En].providerFactory=xi),xh(m,n,r.length,0),r.push(Z),k.directiveStart++,k.directiveEnd++,u&&(k.providerIndexes+=1048576),s.push(xi),M.push(xi)}else xh(m,n,pn>-1?pn:En,j_(s[u?En:pn],bt,!u&&a));!u&&a&&ti&&s[En].componentProviders++}}}function xh(n,r,s,a){const u=Pc(r),m=function Fb(n){return!!n.useClass}(r);if(u||m){const Z=(m?A(r.useClass):r).prototype.ngOnDestroy;if(Z){const bt=n.destroyHooks||(n.destroyHooks=[]);if(!u&&r.multi){const Qt=bt.indexOf(s);-1===Qt?bt.push(s,[a,Z]):bt[Qt+1].push(a,Z)}else bt.push(s,Z)}}}function j_(n,r,s){return s&&n.componentProviders++,n.multi.push(r)-1}function Oh(n,r,s,a){for(let u=s;u<a;u++)if(r[u]===n)return u;return-1}function WO(n,r,s,a){return Ph(this.multi,[])}function $O(n,r,s,a){const u=this.multi;let m;if(this.providerFactory){const M=this.providerFactory.componentProviders,k=Vi(s,s[Pe],this.providerFactory.index,a);m=k.slice(0,M),Ph(u,m);for(let Z=M;Z<k.length;Z++)m.push(k[Z])}else m=[],Ph(u,m);return m}function Ph(n,r){for(let s=0;s<n.length;s++)r.push((0,n[s])());return r}function G_(n,r=[]){return s=>{s.providersResolver=(a,u)=>function JO(n,r,s){const a=Qi();if(a.firstCreatePass){const u=vn(n);Mh(s,a.data,a.blueprint,u,!0),Mh(r,a.data,a.blueprint,u,!1)}}(a,u?u(n):n,r)}}class Dc{}class z_{}function qO(n,r){return new yh(n,r??null,[])}class yh extends Dc{constructor(r,s,a){super(),this._parent=s,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Km(this);const u=Eo(r);this._bootstrapComponents=Ua(u.bootstrap),this._r3Injector=cm(r,s,[{provide:Dc,useValue:this},{provide:Jl,useValue:this.componentFactoryResolver},...a],U(r),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(r)}get injector(){return this._r3Injector}destroy(){const r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(s=>s()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}}class wh extends z_{constructor(r){super(),this.moduleType=r}create(r){return new yh(this.moduleType,r,[])}}class Q_ extends Dc{constructor(r){super(),this.componentFactoryResolver=new Km(this),this.instance=null;const s=new Bd([...r.providers,{provide:Dc,useValue:this},{provide:Jl,useValue:this.componentFactoryResolver}],r.parent||Fd(),r.debugName,new Set(["environment"]));this.injector=s,r.runEnvironmentInitializers&&s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}}function J_(n,r,s=null){return new Q_({providers:n,parent:r,debugName:s,runEnvironmentInitializers:!0}).injector}let tP=(()=>{class n{constructor(s){this._injector=s,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(s){if(!s.standalone)return null;if(!this.cachedInjectors.has(s)){const a=Yg(0,s.type),u=a.length>0?J_([a],this._injector,`Standalone[${s.type.name}]`):null;this.cachedInjectors.set(s,u)}return this.cachedInjectors.get(s)}ngOnDestroy(){try{for(const s of this.cachedInjectors.values())null!==s&&s.destroy()}finally{this.cachedInjectors.clear()}}static#t=this.\u0275prov=At({token:n,providedIn:"environment",factory:()=>new n(de(Ma))})}return n})();function W_(n){n.getStandaloneInjector=r=>r.get(tP).getOrCreateStandaloneInjector(n)}function nC(n,r,s){const a=br()+n,u=kn();return u[a]===$i?Pa(u,a,s?r.call(s):r()):ed(u,a)}function iC(n,r,s,a){return lC(kn(),br(),n,r,s,a)}function oC(n,r,s,a,u){return dC(kn(),br(),n,r,s,a,u)}function rC(n,r,s,a,u,m){return uC(kn(),br(),n,r,s,a,u,m)}function sC(n,r,s,a,u,m,M){return function pC(n,r,s,a,u,m,M,k,Z){const bt=r+s;return ea(n,bt,u,m,M,k)?Pa(n,bt+4,Z?a.call(Z,u,m,M,k):a(u,m,M,k)):ud(n,bt+4)}(kn(),br(),n,r,s,a,u,m,M)}function aC(n,r,s,a,u,m,M,k){const Z=br()+n,bt=kn(),Qt=ea(bt,Z,s,a,u,m);return ss(bt,Z+4,M)||Qt?Pa(bt,Z+5,k?r.call(k,s,a,u,m,M):r(s,a,u,m,M)):ed(bt,Z+5)}function cC(n,r,s,a,u,m,M,k,Z,bt){const Qt=br()+n,Ee=kn();let nn=ea(Ee,Qt,s,a,u,m);return Kd(Ee,Qt+4,M,k,Z)||nn?Pa(Ee,Qt+7,bt?r.call(bt,s,a,u,m,M,k,Z):r(s,a,u,m,M,k,Z)):ed(Ee,Qt+7)}function ud(n,r){const s=n[r];return s===$i?void 0:s}function lC(n,r,s,a,u,m){const M=r+s;return ss(n,M,u)?Pa(n,M+1,m?a.call(m,u):a(u)):ud(n,M+1)}function dC(n,r,s,a,u,m,M){const k=r+s;return yc(n,k,u,m)?Pa(n,k+2,M?a.call(M,u,m):a(u,m)):ud(n,k+2)}function uC(n,r,s,a,u,m,M,k){const Z=r+s;return Kd(n,Z,u,m,M)?Pa(n,Z+3,k?a.call(k,u,m,M):a(u,m,M)):ud(n,Z+3)}function gC(n,r){const s=Qi();let a;const u=n+bi;s.firstCreatePass?(a=function pP(n,r){if(r)for(let s=r.length-1;s>=0;s--){const a=r[s];if(n===a.name)return a}}(r,s.pipeRegistry),s.data[u]=a,a.onDestroy&&(s.destroyHooks??=[]).push(u,a.onDestroy)):a=s.data[u];const m=a.factory||(a.factory=Ko(a.type)),k=gn($c);try{const Z=ns(!1),bt=m();return ns(Z),function tx(n,r,s,a){s>=n.data.length&&(n.data[s]=null,n.blueprint[s]=null),r[s]=a}(s,kn(),u,bt),bt}finally{gn(k)}}function mC(n,r,s){const a=n+bi,u=kn(),m=mi(u,a);return pd(u,a)?lC(u,br(),r,m.transform,s,m):m.transform(s)}function fC(n,r,s,a){const u=n+bi,m=kn(),M=mi(m,u);return pd(m,u)?dC(m,br(),r,M.transform,s,a,M):M.transform(s,a)}function _C(n,r,s,a,u){const m=n+bi,M=kn(),k=mi(M,m);return pd(M,m)?uC(M,br(),r,k.transform,s,a,u,k):k.transform(s,a,u)}function pd(n,r){return n[Pe].data[r].pure}function mP(){return this._results[Symbol.iterator]()}class hu{static#t=Symbol.iterator;get changes(){return this._changes||(this._changes=new xa)}constructor(r=!1){this._emitDistinctChangesOnly=r,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const s=hu.prototype;s[Symbol.iterator]||(s[Symbol.iterator]=mP)}get(r){return this._results[r]}map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,s){return this._results.reduce(r,s)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,s){const a=this;a.dirty=!1;const u=function ks(n){return n.flat(Number.POSITIVE_INFINITY)}(r);(this._changesDetected=!function Iu(n,r,s){if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++){let u=n[a],m=r[a];if(s&&(u=s(u),m=s(m)),m!==u)return!1}return!0}(a._results,u,s))&&(a._results=u,a.length=u.length,a.last=u[this.length-1],a.first=u[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function _P(n,r,s,a=!0){const u=r[Pe];if(function $v(n,r,s,a){const u=fo+a,m=s.length;a>0&&(s[u-1][Un]=r),a<m-fo?(r[Un]=s[u],cc(s,fo+a,r)):(s.push(r),r[Un]=null),r[Dn]=s;const M=r[jo];null!==M&&s!==M&&function Kv(n,r){const s=n[gr];r[qn]!==r[Dn][Dn][qn]&&(n[uo]=!0),null===s?n[gr]=[r]:s.push(r)}(M,r);const k=r[Ao];null!==k&&k.insertView(n),r[un]|=128}(u,r,n,s),a){const m=Ku(s,n),M=r[Zn],k=Dd(M,n[Jo]);null!==k&&function Qv(n,r,s,a,u,m){a[ge]=u,a[Vn]=r,Hl(n,a,s,1,u,m)}(u,n[Vn],M,r,k,m)}}let hd=(()=>{class n{static#t=this.__NG_ELEMENT_ID__=bP}return n})();const CP=hd,vP=class extends CP{constructor(r,s,a){super(),this._declarationLView=r,this._declarationTContainer=s,this.elementRef=a}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(r,s){return this.createEmbeddedViewImpl(r,s)}createEmbeddedViewImpl(r,s,a){const u=function fP(n,r,s,a){const u=r.tView,k=Gd(n,u,s,4096&n[un]?4096:16,null,r,null,null,null,a?.injector??null,a?.hydrationInfo??null);k[jo]=n[r.index];const bt=n[Ao];return null!==bt&&(k[Ao]=bt.createEmbeddedView(u)),jp(u,k,s),k}(this._declarationLView,this._declarationTContainer,r,{injector:s,hydrationInfo:a});return new Xl(u)}};function bP(){return gu(qo(),kn())}function gu(n,r){return 4&n.type?new vP(r,n,Qc(n,r)):null}function CC(n){const r=n[rr]??[],a=n[Dn][Zn];for(const u of r)MP(u,a);n[rr]=Ie}function MP(n,r){let s=0,a=n.firstChild;if(a){const u=n.data[zc];for(;s<u;){const m=a.nextSibling;Ed(r,a,!1),a=m,s++}}}function vC(n){CC(n);for(let r=fo;r<n.length;r++)mu(n[r])}function mu(n){const r=n[Pe];for(let s=bi;s<r.bindingStartIndex;s++)_o(n[s])?vC(n[s]):Array.isArray(n[s])&&mu(n[s])}let bC=(n,r)=>null;function PP(n,r){const s=n[rr];return r&&null!==s&&0!==s.length?s[0].data[bp]===r?s.shift():(CC(n),null):null}function MC(n,r){return bC(n,r)}let fu=(()=>{class n{static#t=this.__NG_ELEMENT_ID__=wP}return n})();function wP(){return PC(qo(),kn())}const TP=fu,xC=class extends TP{constructor(r,s,a){super(),this._lContainer=r,this._hostTNode=s,this._hostLView=a}get element(){return Qc(this._hostTNode,this._hostLView)}get injector(){return new zr(this._hostTNode,this._hostLView)}get parentInjector(){const r=ro(this._hostTNode,this._hostLView);if(za(r)){const s=Sa(r,this._hostLView),a=sa(r);return new zr(s[Pe].data[a+8],s)}return new zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){const s=OC(this._lContainer);return null!==s&&s[r]||null}get length(){return this._lContainer.length-fo}createEmbeddedView(r,s,a){let u,m;"number"==typeof a?u=a:null!=a&&(u=a.index,m=a.injector);const M=MC(this._lContainer,r.ssrId),k=r.createEmbeddedViewImpl(s||{},m,M),Z=!!M&&!ho(this._hostTNode);return this.insertImpl(k,u,Z),k}createComponent(r,s,a,u,m){const M=r&&!function ac(n){return"function"==typeof n}(r);let k;if(M)k=s;else{const Hn=s||{};k=Hn.index,a=Hn.injector,u=Hn.projectableNodes,m=Hn.environmentInjector||Hn.ngModuleRef}const Z=M?r:new td(ii(r)),bt=a||this.parentInjector;if(!m&&null==Z.ngModule){const ti=(M?bt:this.parentInjector).get(Ma,null);ti&&(m=ti)}const Qt=ii(Z.componentType??{}),Ee=MC(this._lContainer,Qt?.id??null),pn=Z.create(bt,u,Ee?.firstChild??null,m),En=!!Ee&&!ho(this._hostTNode);return this.insertImpl(pn.hostView,k,En),pn}insert(r,s){return this.insertImpl(r,s,!1)}insertImpl(r,s,a){const u=r._lView;if(function zo(n){return _o(n[Dn])}(u)){const Z=this.indexOf(r);if(-1!==Z)this.detach(Z);else{const bt=u[Dn],Qt=new xC(bt,bt[Vn],bt[Dn]);Qt.detach(Qt.indexOf(r))}}const M=this._adjustIndex(s),k=this._lContainer;return _P(k,u,M,!a),r.attachToViewContainerRef(),cc(Dh(k),M,r),r}move(r,s){return this.insert(r,s)}indexOf(r){const s=OC(this._lContainer);return null!==s?s.indexOf(r):-1}remove(r){const s=this._adjustIndex(r,-1),a=Td(this._lContainer,s);a&&(Uc(Dh(this._lContainer),s),Qu(a[Pe],a))}detach(r){const s=this._adjustIndex(r,-1),a=Td(this._lContainer,s);return a&&null!=Uc(Dh(this._lContainer),s)?new Xl(a):null}_adjustIndex(r,s=0){return r??this.length+s}};function OC(n){return n[8]}function Dh(n){return n[8]||(n[8]=[])}function PC(n,r){let s;const a=r[n.index];return _o(a)?s=a:(s=Um(a,r,null,n),r[n.index]=s,zd(r,s)),yC(s,r,n,a),new xC(s,n,r)}let yC=wC;function wC(n,r,s,a){if(n[Jo])return;let u;u=8&s.type?jn(a):function DP(n,r){const s=n[Zn],a=s.createComment(""),u=di(r,n);return Mc(s,Dd(s,u),a,function eb(n,r){return n.nextSibling(r)}(s,u),!1),a}(r,s),n[Jo]=u}function kP(n,r,s,a){if(n[Jo]&&n[rr])return;const u=r[Pi],m=s.index-bi,M=function dr(n){let r=n.parent;for(;r;){if(wi(r))return!0;r=r.parent}return!1}(s)||ho(s);if(!u||M||Vd(u,m))return wC(n,r,s,a);const Z=Pp(u,m),bt=u.data[zl]?.[m],[Qt,Ee]=function OP(n,r){const s=[];for(const a of r)for(let u=0;u<(a[Ud]??1);u++){const m={data:a,firstChild:null};a[zc]>0&&(m.firstChild=n,n=tu(a[zc],n)),s.push(m)}return[n,s]}(Z,bt);n[Jo]=Qt,n[rr]=Ee}class kh{constructor(r){this.queryList=r,this.matches=null}clone(){return new kh(this.queryList)}setDirty(){this.queryList.setDirty()}}class Eh{constructor(r=[]){this.queries=r}createEmbeddedView(r){const s=r.queries;if(null!==s){const a=null!==r.contentQueries?r.contentQueries[0]:s.length,u=[];for(let m=0;m<a;m++){const M=s.getByIndex(m);u.push(this.queries[M.indexInDeclarationView].clone())}return new Eh(u)}return null}insertView(r){this.dirtyQueriesWithMatches(r)}detachView(r){this.dirtyQueriesWithMatches(r)}dirtyQueriesWithMatches(r){for(let s=0;s<this.queries.length;s++)null!==RC(r,s).matches&&this.queries[s].setDirty()}}class TC{constructor(r,s,a=null){this.predicate=r,this.flags=s,this.read=a}}class Sh{constructor(r=[]){this.queries=r}elementStart(r,s){for(let a=0;a<this.queries.length;a++)this.queries[a].elementStart(r,s)}elementEnd(r){for(let s=0;s<this.queries.length;s++)this.queries[s].elementEnd(r)}embeddedTView(r){let s=null;for(let a=0;a<this.length;a++){const u=null!==s?s.length:0,m=this.getByIndex(a).embeddedTView(r,u);m&&(m.indexInDeclarationView=a,null!==s?s.push(m):s=[m])}return null!==s?new Sh(s):null}template(r,s){for(let a=0;a<this.queries.length;a++)this.queries[a].template(r,s)}getByIndex(r){return this.queries[r]}get length(){return this.queries.length}track(r){this.queries.push(r)}}class Ah{constructor(r,s=-1){this.metadata=r,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=s}elementStart(r,s){this.isApplyingToNode(s)&&this.matchTNode(r,s)}elementEnd(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}template(r,s){this.elementStart(r,s)}embeddedTView(r,s){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,s),new Ah(this.metadata)):null}isApplyingToNode(r){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const s=this._declarationNodeIndex;let a=r.parent;for(;null!==a&&8&a.type&&a.index!==s;)a=a.parent;return s===(null!==a?a.index:-1)}return this._appliesToNextNode}matchTNode(r,s){const a=this.metadata.predicate;if(Array.isArray(a))for(let u=0;u<a.length;u++){const m=a[u];this.matchTNodeWithReadOption(r,s,SP(s,m)),this.matchTNodeWithReadOption(r,s,fi(s,r,m,!1,!1))}else a===hd?4&s.type&&this.matchTNodeWithReadOption(r,s,-1):this.matchTNodeWithReadOption(r,s,fi(s,r,a,!1,!1))}matchTNodeWithReadOption(r,s,a){if(null!==a){const u=this.metadata.read;if(null!==u)if(u===Wl||u===fu||u===hd&&4&s.type)this.addMatch(s.index,-2);else{const m=fi(s,r,u,!1,!1);null!==m&&this.addMatch(s.index,m)}else this.addMatch(s.index,a)}}addMatch(r,s){null===this.matches?this.matches=[r,s]:this.matches.push(r,s)}}function SP(n,r){const s=n.localNames;if(null!==s)for(let a=0;a<s.length;a+=2)if(s[a]===r)return s[a+1];return null}function IP(n,r,s,a){return-1===s?function AP(n,r){return 11&n.type?Qc(n,r):4&n.type?gu(n,r):null}(r,n):-2===s?function LP(n,r,s){return s===Wl?Qc(r,n):s===hd?gu(r,n):s===fu?PC(r,n):void 0}(n,r,a):Vi(n,n[Pe],s,r)}function DC(n,r,s,a){const u=r[Ao].queries[a];if(null===u.matches){const m=n.data,M=s.matches,k=[];for(let Z=0;Z<M.length;Z+=2){const bt=M[Z];k.push(bt<0?null:IP(r,m[bt],M[Z+1],s.metadata.read))}u.matches=k}return u.matches}function Ih(n,r,s,a){const u=n.queries.getByIndex(s),m=u.matches;if(null!==m){const M=DC(n,r,u,s);for(let k=0;k<m.length;k+=2){const Z=m[k];if(Z>0)a.push(M[k/2]);else{const bt=m[k+1],Qt=r[-Z];for(let Ee=fo;Ee<Qt.length;Ee++){const nn=Qt[Ee];nn[jo]===nn[Dn]&&Ih(nn[Pe],nn,bt,a)}if(null!==Qt[gr]){const Ee=Qt[gr];for(let nn=0;nn<Ee.length;nn++){const pn=Ee[nn];Ih(pn[Pe],pn,bt,a)}}}}}return a}function kC(n){const r=kn(),s=Qi(),a=Wn();wn(a+1);const u=RC(s,a);if(n.dirty&&function Hi(n){return 4==(4&n[un])}(r)===(2==(2&u.metadata.flags))){if(null===u.matches)n.reset([]);else{const m=u.crossesNgTemplate?Ih(s,r,a,[]):DC(s,r,u,a);n.reset(m,c0),n.notifyOnChanges()}return!0}return!1}function EC(n,r,s){const a=Qi();a.firstCreatePass&&(LC(a,new TC(n,r,s),-1),2==(2&r)&&(a.staticViewQueries=!0)),IC(a,kn(),r)}function SC(n,r,s,a){const u=Qi();if(u.firstCreatePass){const m=qo();LC(u,new TC(r,s,a),m.index),function NP(n,r){const s=n.contentQueries||(n.contentQueries=[]);r!==(s.length?s[s.length-1]:-1)&&s.push(n.queries.length-1,r)}(u,n),2==(2&s)&&(u.staticContentQueries=!0)}IC(u,kn(),s)}function AC(){return function RP(n,r){return n[Ao].queries[r].queryList}(kn(),Wn())}function IC(n,r,s){const a=new hu(4==(4&s));(function H0(n,r,s,a){const u=Hm(r);u.push(s),n.firstCreatePass&&Vm(n).push(a,u.length-1)})(n,r,a,a.destroy),null===r[Ao]&&(r[Ao]=new Eh),r[Ao].queries.push(new kh(a))}function LC(n,r,s){null===n.queries&&(n.queries=new Sh),n.queries.track(new Ah(r,s))}function RC(n,r){return n.queries.getByIndex(r)}function NC(n,r){return gu(n,r)}function Lh(n){return!!Eo(n)}const XC=new Uo("Application Initializer");let Uh=(()=>{class n{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,a)=>{this.resolve=s,this.reject=a}),this.appInits=X(XC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const s=[];for(const u of this.appInits){const m=u();if(ih(m))s.push(m);else if(yf(m)){const M=new Promise((k,Z)=>{m.subscribe({complete:k,error:Z})});s.push(M)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(s).then(()=>{a()}).catch(u=>{this.reject(u)}),0===s.length&&a(),this.initialized=!0}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),tv=(()=>{class n{log(s){console.log(s)}warn(s){console.warn(s)}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();const Cu=new Uo("LocaleId",{providedIn:"root",factory:()=>X(Cu,me.Optional|me.SkipSelf)||function iy(){return typeof $localize<"u"&&$localize.locale||dl}()}),oy=new Uo("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let ev=(()=>{class n{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new l.X(!1)}add(){this.hasPendingTasks.next(!0);const s=this.taskId++;return this.pendingTasks.add(s),s}remove(s){this.pendingTasks.delete(s),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();class sy{constructor(r,s){this.ngModuleFactory=r,this.componentFactories=s}}let ay=(()=>{class n{compileModuleSync(s){return new wh(s)}compileModuleAsync(s){return Promise.resolve(this.compileModuleSync(s))}compileModuleAndAllComponentsSync(s){const a=this.compileModuleSync(s),m=Ua(Eo(s).declarations).reduce((M,k)=>{const Z=ii(k);return Z&&M.push(new td(Z)),M},[]);return new sy(a,m)}compileModuleAndAllComponentsAsync(s){return Promise.resolve(this.compileModuleAndAllComponentsSync(s))}clearCache(){}clearCacheFor(s){}getModuleId(s){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();const rv=new Uo(""),sv=new Uo("");let Vh,Ty=(()=>{class n{constructor(s,a,u){this._ngZone=s,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Vh||(function Dy(n){Vh=n}(u),u.addToWindow(a)),this._watchAngularEvents(),s.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Fr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let s=this._callbacks.pop();clearTimeout(s.timeoutId),s.doneCb(this._didWork)}this._didWork=!1});else{let s=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(s)||(clearTimeout(a.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(s=>({source:s.source,creationLocation:s.creationLocation,data:s.data})):[]}addCallback(s,a,u){let m=-1;a&&a>0&&(m=setTimeout(()=>{this._callbacks=this._callbacks.filter(M=>M.timeoutId!==m),s(this._didWork,this.getPendingTasks())},a)),this._callbacks.push({doneCb:s,timeoutId:m,updateCb:u})}whenStable(s,a,u){if(u&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(s,a,u),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(s){this.registry.registerApplication(s,this)}unregisterApplication(s){this.registry.unregisterApplication(s)}findProviders(s,a,u){return[]}static#t=this.\u0275fac=function(a){return new(a||n)(de(Fr),de(av),de(sv))};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac})}return n})(),av=(()=>{class n{constructor(){this._applications=new Map}registerApplication(s,a){this._applications.set(s,a)}unregisterApplication(s){this._applications.delete(s)}unregisterAllApplications(){this._applications.clear()}getTestability(s){return this._applications.get(s)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(s,a=!0){return Vh?.findTestabilityInTree(this,s,a)??null}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})(),tc=null;const cv=new Uo("AllowMultipleToken"),Yh=new Uo("PlatformDestroyListeners"),jh=new Uo("appBootstrapListener");class Sy{constructor(r,s){this.name=r,this.token=s}}function uv(n,r,s=[]){const a=`Platform: ${r}`,u=new Uo(a);return(m=[])=>{let M=Gh();if(!M||M.injector.get(cv,!1)){const k=[...s,...m,{provide:u,useValue:!0}];n?n(k):function Ay(n){if(tc&&!tc.get(cv,!1))throw new j(400,!1);(function lv(){!function Us(n){bs=n}(()=>{throw new j(600,!1)})})(),tc=n;const r=n.get(hv);(function dv(n){n.get(Wg,null)?.forEach(s=>s())})(n)}(function pv(n=[],r){return da.create({name:r,providers:[{provide:up,useValue:"platform"},{provide:Yh,useValue:new Set([()=>tc=null])},...n]})}(k,a))}return function Ly(n){const r=Gh();if(!r)throw new j(401,!1);return r}()}}function Gh(){return tc?.get(hv)??null}let hv=(()=>{class n{constructor(s){this._injector=s,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(s,a){const u=function Ry(n="zone.js",r){return"noop"===n?new P0:"zone.js"===n?new Fr(r):n}(a?.ngZone,function gv(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:n?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:n?.runCoalescing??!1}}({eventCoalescing:a?.ngZoneEventCoalescing,runCoalescing:a?.ngZoneRunCoalescing}));return u.run(()=>{const m=function XO(n,r,s){return new yh(n,r,s)}(s.moduleType,this.injector,function vv(n){return[{provide:Fr,useFactory:n},{provide:jl,multi:!0,useFactory:()=>{const r=X(Fy,{optional:!0});return()=>r.initialize()}},{provide:Cv,useFactory:Ny},{provide:hm,useFactory:gm}]}(()=>u)),M=m.injector.get(qa,null);return u.runOutsideAngular(()=>{const k=u.onError.subscribe({next:Z=>{M.handleError(Z)}});m.onDestroy(()=>{bu(this._modules,m),k.unsubscribe()})}),function mv(n,r,s){try{const a=s();return ih(a)?a.catch(u=>{throw r.runOutsideAngular(()=>n.handleError(u)),u}):a}catch(a){throw r.runOutsideAngular(()=>n.handleError(a)),a}}(M,u,()=>{const k=m.injector.get(Uh);return k.runInitializers(),k.donePromise.then(()=>(function b_(n){St(n,"Expected localeId to be defined"),"string"==typeof n&&(v_=n.toLowerCase().replace(/_/g,"-"))}(m.injector.get(Cu,dl)||dl),this._moduleDoBootstrap(m),m))})})}bootstrapModule(s,a=[]){const u=fv({},a);return function ky(n,r,s){const a=new wh(s);return Promise.resolve(a)}(0,0,s).then(m=>this.bootstrapModuleFactory(m,u))}_moduleDoBootstrap(s){const a=s.injector.get(hl);if(s._bootstrapComponents.length>0)s._bootstrapComponents.forEach(u=>a.bootstrap(u));else{if(!s.instance.ngDoBootstrap)throw new j(-403,!1);s.instance.ngDoBootstrap(a)}this._modules.push(s)}onDestroy(s){this._destroyListeners.push(s)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new j(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const s=this._injector.get(Yh,null);s&&(s.forEach(a=>a()),s.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#t=this.\u0275fac=function(a){return new(a||n)(de(da))};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"platform"})}return n})();function fv(n,r){return Array.isArray(r)?r.reduce(fv,n):{...n,...r}}let hl=(()=>{class n{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=X(Cv),this.zoneIsStable=X(hm),this.componentTypes=[],this.components=[],this.isStable=X(ev).hasPendingTasks.pipe((0,f.w)(s=>s?(0,i.of)(!1):this.zoneIsStable),(0,t.x)(),(0,R.B)()),this._injector=X(Ma)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(s,a){const u=s instanceof tm;if(!this._injector.get(Uh).done)throw!u&&$o(s),new j(405,!1);let M;M=u?s:this._injector.get(Jl).resolveComponentFactory(s),this.componentTypes.push(M.componentType);const k=function Ey(n){return n.isBoundToModule}(M)?void 0:this._injector.get(Dc),bt=M.create(da.NULL,[],a||M.selector,k),Qt=bt.location.nativeElement,Ee=bt.injector.get(rv,null);return Ee?.registerApplication(Qt),bt.onDestroy(()=>{this.detachView(bt.hostView),bu(this.components,bt),Ee?.unregisterApplication(Qt)}),this._loadComponent(bt),bt}tick(){if(this._runningTick)throw new j(101,!1);try{this._runningTick=!0;for(let s of this._views)s.detectChanges()}catch(s){this.internalErrorHandler(s)}finally{this._runningTick=!1}}attachView(s){const a=s;this._views.push(a),a.attachToAppRef(this)}detachView(s){const a=s;bu(this._views,a),a.detachFromAppRef()}_loadComponent(s){this.attachView(s.hostView),this.tick(),this.components.push(s);const a=this._injector.get(jh,[]);a.push(...this._bootstrapListeners),a.forEach(u=>u(s))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(s=>s()),this._views.slice().forEach(s=>s.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(s){return this._destroyListeners.push(s),()=>bu(this._destroyListeners,s)}destroy(){if(this._destroyed)throw new j(406,!1);const s=this._injector;s.destroy&&!s.destroyed&&s.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function bu(n,r){const s=n.indexOf(r);s>-1&&n.splice(s,1)}const Cv=new Uo("",{providedIn:"root",factory:()=>X(qa).handleError.bind(void 0)});function Ny(){const n=X(Fr),r=X(qa);return s=>n.runOutsideAngular(()=>r.handleError(s))}let Fy=(()=>{class n{constructor(){this.zone=X(Fr),this.applicationRef=X(hl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#t=this.\u0275fac=function(a){return new(a||n)};static#e=this.\u0275prov=At({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function Uy(){}let Zy=(()=>{class n{static#t=this.__NG_ELEMENT_ID__=Hy}return n})();function Hy(n){return function Vy(n,r,s){if(mr(n)&&!s){const a=Si(n.index,r);return new Xl(a,a)}return 47&n.type?new Xl(r[qn],r):null}(qo(),kn(),16==(16&n))}class Ov{constructor(){}supports(r){return $d(r)}create(r){return new Jy(r)}}const Qy=(n,r)=>r;class Jy{constructor(r){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=r||Qy}forEachItem(r){let s;for(s=this._itHead;null!==s;s=s._next)r(s)}forEachOperation(r){let s=this._itHead,a=this._removalsHead,u=0,m=null;for(;s||a;){const M=!a||s&&s.currentIndex<yv(a,u,m)?s:a,k=yv(M,u,m),Z=M.currentIndex;if(M===a)u--,a=a._nextRemoved;else if(s=s._next,null==M.previousIndex)u++;else{m||(m=[]);const bt=k-u,Qt=Z-u;if(bt!=Qt){for(let nn=0;nn<bt;nn++){const pn=nn<m.length?m[nn]:m[nn]=0,En=pn+nn;Qt<=En&&En<bt&&(m[nn]=pn+1)}m[M.previousIndex]=Qt-bt}}k!==Z&&r(M,k,Z)}}forEachPreviousItem(r){let s;for(s=this._previousItHead;null!==s;s=s._nextPrevious)r(s)}forEachAddedItem(r){let s;for(s=this._additionsHead;null!==s;s=s._nextAdded)r(s)}forEachMovedItem(r){let s;for(s=this._movesHead;null!==s;s=s._nextMoved)r(s)}forEachRemovedItem(r){let s;for(s=this._removalsHead;null!==s;s=s._nextRemoved)r(s)}forEachIdentityChange(r){let s;for(s=this._identityChangesHead;null!==s;s=s._nextIdentityChange)r(s)}diff(r){if(null==r&&(r=[]),!$d(r))throw new j(900,!1);return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let u,m,M,s=this._itHead,a=!1;if(Array.isArray(r)){this.length=r.length;for(let k=0;k<this.length;k++)m=r[k],M=this._trackByFn(k,m),null!==s&&Object.is(s.trackById,M)?(a&&(s=this._verifyReinsertion(s,m,M,k)),Object.is(s.item,m)||this._addIdentityChange(s,m)):(s=this._mismatch(s,m,M,k),a=!0),s=s._next}else u=0,function IM(n,r){if(Array.isArray(n))for(let s=0;s<n.length;s++)r(n[s]);else{const s=n[Symbol.iterator]();let a;for(;!(a=s.next()).done;)r(a.value)}}(r,k=>{M=this._trackByFn(u,k),null!==s&&Object.is(s.trackById,M)?(a&&(s=this._verifyReinsertion(s,k,M,u)),Object.is(s.item,k)||this._addIdentityChange(s,k)):(s=this._mismatch(s,k,M,u),a=!0),s=s._next,u++}),this.length=u;return this._truncate(s),this.collection=r,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;null!==r;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;null!==r;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,s,a,u){let m;return null===r?m=this._itTail:(m=r._prev,this._remove(r)),null!==(r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null))?(Object.is(r.item,s)||this._addIdentityChange(r,s),this._reinsertAfter(r,m,u)):null!==(r=null===this._linkedRecords?null:this._linkedRecords.get(a,u))?(Object.is(r.item,s)||this._addIdentityChange(r,s),this._moveAfter(r,m,u)):r=this._addAfter(new Wy(s,a),m,u),r}_verifyReinsertion(r,s,a,u){let m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(a,null);return null!==m?r=this._reinsertAfter(m,r._prev,u):r.currentIndex!=u&&(r.currentIndex=u,this._addToMoves(r,u)),r}_truncate(r){for(;null!==r;){const s=r._next;this._addToRemovals(this._unlink(r)),r=s}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(r,s,a){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(r);const u=r._prevRemoved,m=r._nextRemoved;return null===u?this._removalsHead=m:u._nextRemoved=m,null===m?this._removalsTail=u:m._prevRemoved=u,this._insertAfter(r,s,a),this._addToMoves(r,a),r}_moveAfter(r,s,a){return this._unlink(r),this._insertAfter(r,s,a),this._addToMoves(r,a),r}_addAfter(r,s,a){return this._insertAfter(r,s,a),this._additionsTail=null===this._additionsTail?this._additionsHead=r:this._additionsTail._nextAdded=r,r}_insertAfter(r,s,a){const u=null===s?this._itHead:s._next;return r._next=u,r._prev=s,null===u?this._itTail=r:u._prev=r,null===s?this._itHead=r:s._next=r,null===this._linkedRecords&&(this._linkedRecords=new Pv),this._linkedRecords.put(r),r.currentIndex=a,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){null!==this._linkedRecords&&this._linkedRecords.remove(r);const s=r._prev,a=r._next;return null===s?this._itHead=a:s._next=a,null===a?this._itTail=s:a._prev=s,r}_addToMoves(r,s){return r.previousIndex===s||(this._movesTail=null===this._movesTail?this._movesHead=r:this._movesTail._nextMoved=r),r}_addToRemovals(r){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Pv),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,s){return r.item=s,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=r:this._identityChangesTail._nextIdentityChange=r,r}}class Wy{constructor(r,s){this.item=r,this.trackById=s,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class $y{constructor(){this._head=null,this._tail=null}add(r){null===this._head?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,s){let a;for(a=this._head;null!==a;a=a._nextDup)if((null===s||s<=a.currentIndex)&&Object.is(a.trackById,r))return a;return null}remove(r){const s=r._prevDup,a=r._nextDup;return null===s?this._head=a:s._nextDup=a,null===a?this._tail=s:a._prevDup=s,null===this._head}}class Pv{constructor(){this.map=new Map}put(r){const s=r.trackById;let a=this.map.get(s);a||(a=new $y,this.map.set(s,a)),a.add(r)}get(r,s){const u=this.map.get(r);return u?u.get(r,s):null}remove(r){const s=r.trackById;return this.map.get(s).remove(r)&&this.map.delete(s),r}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function yv(n,r,s){const a=n.previousIndex;if(null===a)return a;let u=0;return s&&a<s.length&&(u=s[a]),a+r+u}class wv{constructor(){}supports(r){return r instanceof Map||zp(r)}create(){return new Ky}}class Ky{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(r){let s;for(s=this._mapHead;null!==s;s=s._next)r(s)}forEachPreviousItem(r){let s;for(s=this._previousMapHead;null!==s;s=s._nextPrevious)r(s)}forEachChangedItem(r){let s;for(s=this._changesHead;null!==s;s=s._nextChanged)r(s)}forEachAddedItem(r){let s;for(s=this._additionsHead;null!==s;s=s._nextAdded)r(s)}forEachRemovedItem(r){let s;for(s=this._removalsHead;null!==s;s=s._nextRemoved)r(s)}diff(r){if(r){if(!(r instanceof Map||zp(r)))throw new j(900,!1)}else r=new Map;return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let s=this._mapHead;if(this._appendAfter=null,this._forEach(r,(a,u)=>{if(s&&s.key===u)this._maybeAddToChanges(s,a),this._appendAfter=s,s=s._next;else{const m=this._getOrCreateRecordForKey(u,a);s=this._insertBeforeOrAppend(s,m)}}),s){s._prev&&(s._prev._next=null),this._removalsHead=s;for(let a=s;null!==a;a=a._nextRemoved)a===this._mapHead&&(this._mapHead=null),this._records.delete(a.key),a._nextRemoved=a._next,a.previousValue=a.currentValue,a.currentValue=null,a._prev=null,a._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(r,s){if(r){const a=r._prev;return s._next=r,s._prev=a,r._prev=s,a&&(a._next=s),r===this._mapHead&&(this._mapHead=s),this._appendAfter=r,r}return this._appendAfter?(this._appendAfter._next=s,s._prev=this._appendAfter):this._mapHead=s,this._appendAfter=s,null}_getOrCreateRecordForKey(r,s){if(this._records.has(r)){const u=this._records.get(r);this._maybeAddToChanges(u,s);const m=u._prev,M=u._next;return m&&(m._next=M),M&&(M._prev=m),u._next=null,u._prev=null,u}const a=new qy(r);return this._records.set(r,a),a.currentValue=s,this._addToAdditions(a),a}_reset(){if(this.isDirty){let r;for(this._previousMapHead=this._mapHead,r=this._previousMapHead;null!==r;r=r._next)r._nextPrevious=r._next;for(r=this._changesHead;null!==r;r=r._nextChanged)r.previousValue=r.currentValue;for(r=this._additionsHead;null!=r;r=r._nextAdded)r.previousValue=r.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(r,s){Object.is(s,r.currentValue)||(r.previousValue=r.currentValue,r.currentValue=s,this._addToChanges(r))}_addToAdditions(r){null===this._additionsHead?this._additionsHead=this._additionsTail=r:(this._additionsTail._nextAdded=r,this._additionsTail=r)}_addToChanges(r){null===this._changesHead?this._changesHead=this._changesTail=r:(this._changesTail._nextChanged=r,this._changesTail=r)}_forEach(r,s){r instanceof Map?r.forEach(s):Object.keys(r).forEach(a=>s(r[a],a))}}class qy{constructor(r){this.key=r,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Tv(){return new $h([new Ov])}let $h=(()=>{class n{static#t=this.\u0275prov=At({token:n,providedIn:"root",factory:Tv});constructor(s){this.factories=s}static create(s,a){if(null!=a){const u=a.factories.slice();s=s.concat(u)}return new n(s)}static extend(s){return{provide:n,useFactory:a=>n.create(s,a||Tv()),deps:[[n,new gc,new hc]]}}find(s){const a=this.factories.find(u=>u.supports(s));if(null!=a)return a;throw new j(901,!1)}}return n})();function Dv(){return new Kh([new wv])}let Kh=(()=>{class n{static#t=this.\u0275prov=At({token:n,providedIn:"root",factory:Dv});constructor(s){this.factories=s}static create(s,a){if(a){const u=a.factories.slice();s=s.concat(u)}return new n(s)}static extend(s){return{provide:n,useFactory:a=>n.create(s,a||Dv()),deps:[[n,new gc,new hc]]}}find(s){const a=this.factories.find(u=>u.supports(s));if(a)return a;throw new j(901,!1)}}return n})();const e1=uv(null,"core",[]);let n1=(()=>{class n{constructor(s){}static#t=this.\u0275fac=function(a){return new(a||n)(de(hl))};static#e=this.\u0275mod=go({type:n});static#n=this.\u0275inj=ie({})}return n})(),Nv=!1;function h1(){return cp([{provide:Yd,useFactory:()=>{let n=!0;return Wc()&&(n=!!X(Gl,{optional:!0})?.get(xp,null)),n&&X($g).add("hydration"),n}},{provide:jl,useValue:()=>{Wc()&&X(Yd)&&(function g1(){const n=Vc();let r;for(const s of n.body.childNodes)if(s.nodeType===Node.COMMENT_NODE&&s.textContent?.trim()===$b){r=s;break}if(!r)throw new j(-507,!1)}(),function u1(){Nv||(Nv=!0,function qb(){Kg=Kb}(),function ix(){xf=nx}(),function Ax(){t_=Sx}(),function sx(){Of=rx}(),function XM(){vf=qM}(),function EP(){yC=kP}(),function yP(){bC=PP}(),function Z0(){Im=U0}())}())},multi:!0},{provide:bm,useFactory:()=>Wc()&&X(Yd)},{provide:jh,useFactory:()=>{if(Wc()&&X(Yd)){const n=X(hl);return X(da),()=>{(function p1(n,r){return n.isStable.pipe((0,y.P)(a=>a)).toPromise().then(()=>{})})(n).then(()=>{Fr.assertInAngularZone(),function xP(n){const r=n._views;for(const s of r){const a=qg(s);null!==a&&null!==a[ge]&&(Io(a)?mu(a):(mu(a[ge]),vC(a)))}}(n)})}}return()=>{}},multi:!0}])}function m1(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}function _1(n){const r=ii(n);if(!r)return null;const s=new td(r);return{get selector(){return s.selector},get type(){return s.componentType},get inputs(){return s.inputs},get outputs(){return s.outputs},get ngContentSelectors(){return s.ngContentSelectors},get isStandalone(){return r.standalone},get isSignal(){return r.signals}}}},6223:(Je,Rt,c)=>{"use strict";c.d(Rt,{Cf:()=>A,F:()=>Sn,Fj:()=>lt,JJ:()=>In,JL:()=>Ve,JU:()=>f,On:()=>xn,Q7:()=>Pi,UX:()=>sr,Zs:()=>oo,_Y:()=>Fn,a5:()=>st,kI:()=>ct,nJ:()=>et,oH:()=>xo,p4:()=>fe,sg:()=>Eo,u5:()=>_s,vC:()=>pr});var o=c(5879),e=c(6814),g=c(7715),x=c(9315),l=c(7398);let i=(()=>{class wt{constructor(ot,ae){this._renderer=ot,this._elementRef=ae,this.onChange=Ge=>{},this.onTouched=()=>{}}setProperty(ot,ae){this._renderer.setProperty(this._elementRef.nativeElement,ot,ae)}registerOnTouched(ot){this.onTouched=ot}registerOnChange(ot){this.onChange=ot}setDisabledState(ot){this.setProperty("disabled",ot)}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(o.Qsj),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:wt})}return wt})(),R=(()=>{class wt extends i{static#t=this.\u0275fac=function(){let ot;return function(Ge){return(ot||(ot=o.n5z(wt)))(Ge||wt)}}();static#e=this.\u0275dir=o.lG2({type:wt,features:[o.qOj]})}return wt})();const f=new o.OlP("NgValueAccessor"),O={provide:f,useExisting:(0,o.Gpc)(()=>lt),multi:!0},U=new o.OlP("CompositionEventMode");let lt=(()=>{class wt extends i{constructor(ot,ae,Ge){super(ot,ae),this._compositionMode=Ge,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function G(){const wt=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(wt.toLowerCase())}())}writeValue(ot){this.setProperty("value",ot??"")}_handleInput(ot){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(ot)}_compositionStart(){this._composing=!0}_compositionEnd(ot){this._composing=!1,this._compositionMode&&this.onChange(ot)}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(U,8))};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(ae,Ge){1&ae&&o.NdJ("input",function(Ti){return Ge._handleInput(Ti.target.value)})("blur",function(){return Ge.onTouched()})("compositionstart",function(){return Ge._compositionStart()})("compositionend",function(Ti){return Ge._compositionEnd(Ti.target.value)})},features:[o._Bn([O]),o.qOj]})}return wt})();function ut(wt){return null==wt||("string"==typeof wt||Array.isArray(wt))&&0===wt.length}function Ht(wt){return null!=wt&&"number"==typeof wt.length}const A=new o.OlP("NgValidators"),xt=new o.OlP("NgAsyncValidators"),tt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class ct{static min(Nt){return function _(wt){return Nt=>{if(ut(Nt.value)||ut(wt))return null;const ot=parseFloat(Nt.value);return!isNaN(ot)&&ot<wt?{min:{min:wt,actual:Nt.value}}:null}}(Nt)}static max(Nt){return function j(wt){return Nt=>{if(ut(Nt.value)||ut(wt))return null;const ot=parseFloat(Nt.value);return!isNaN(ot)&&ot>wt?{max:{max:wt,actual:Nt.value}}:null}}(Nt)}static required(Nt){return q(Nt)}static requiredTrue(Nt){return ht(Nt)}static email(Nt){return function vt(wt){return ut(wt.value)||tt.test(wt.value)?null:{email:!0}}(Nt)}static minLength(Nt){return function gt(wt){return Nt=>ut(Nt.value)||!Ht(Nt.value)?null:Nt.value.length<wt?{minlength:{requiredLength:wt,actualLength:Nt.value.length}}:null}(Nt)}static maxLength(Nt){return function zt(wt){return Nt=>Ht(Nt.value)&&Nt.value.length>wt?{maxlength:{requiredLength:wt,actualLength:Nt.value.length}}:null}(Nt)}static pattern(Nt){return function Ct(wt){if(!wt)return H;let Nt,ot;return"string"==typeof wt?(ot="","^"!==wt.charAt(0)&&(ot+="^"),ot+=wt,"$"!==wt.charAt(wt.length-1)&&(ot+="$"),Nt=new RegExp(ot)):(ot=wt.toString(),Nt=wt),ae=>{if(ut(ae.value))return null;const Ge=ae.value;return Nt.test(Ge)?null:{pattern:{requiredPattern:ot,actualValue:Ge}}}}(Nt)}static nullValidator(Nt){return null}static compose(Nt){return $t(Nt)}static composeAsync(Nt){return Jt(Nt)}}function q(wt){return ut(wt.value)?{required:!0}:null}function ht(wt){return!0===wt.value?null:{required:!0}}function H(wt){return null}function J(wt){return null!=wt}function z(wt){return(0,o.QGY)(wt)?(0,g.D)(wt):wt}function F(wt){let Nt={};return wt.forEach(ot=>{Nt=null!=ot?{...Nt,...ot}:Nt}),0===Object.keys(Nt).length?null:Nt}function rt(wt,Nt){return Nt.map(ot=>ot(wt))}function Pt(wt){return wt.map(Nt=>function V(wt){return!wt.validate}(Nt)?Nt:ot=>Nt.validate(ot))}function $t(wt){if(!wt)return null;const Nt=wt.filter(J);return 0==Nt.length?null:function(ot){return F(rt(ot,Nt))}}function Lt(wt){return null!=wt?$t(Pt(wt)):null}function Jt(wt){if(!wt)return null;const Nt=wt.filter(J);return 0==Nt.length?null:function(ot){const ae=rt(ot,Nt).map(z);return(0,x.D)(ae).pipe((0,l.U)(F))}}function Tt(wt){return null!=wt?Jt(Pt(wt)):null}function $(wt,Nt){return null===wt?[Nt]:Array.isArray(wt)?[...wt,Nt]:[wt,Nt]}function pt(wt){return wt._rawValidators}function Dt(wt){return wt._rawAsyncValidators}function St(wt){return wt?Array.isArray(wt)?wt:[wt]:[]}function mt(wt,Nt){return Array.isArray(wt)?wt.includes(Nt):wt===Nt}function yt(wt,Nt){const ot=St(Nt);return St(wt).forEach(Ge=>{mt(ot,Ge)||ot.push(Ge)}),ot}function ee(wt,Nt){return St(Nt).filter(ot=>!mt(wt,ot))}class B{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Nt){this._rawValidators=Nt||[],this._composedValidatorFn=Lt(this._rawValidators)}_setAsyncValidators(Nt){this._rawAsyncValidators=Nt||[],this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Nt){this._onDestroyCallbacks.push(Nt)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Nt=>Nt()),this._onDestroyCallbacks=[]}reset(Nt=void 0){this.control&&this.control.reset(Nt)}hasError(Nt,ot){return!!this.control&&this.control.hasError(Nt,ot)}getError(Nt,ot){return this.control?this.control.getError(Nt,ot):null}}class At extends B{get formDirective(){return null}get path(){return null}}class st extends B{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ie{constructor(Nt){this._cd=Nt}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let In=(()=>{class wt extends ie{constructor(ot){super(ot)}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(st,2))};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ae,Ge){2&ae&&o.ekj("ng-untouched",Ge.isUntouched)("ng-touched",Ge.isTouched)("ng-pristine",Ge.isPristine)("ng-dirty",Ge.isDirty)("ng-valid",Ge.isValid)("ng-invalid",Ge.isInvalid)("ng-pending",Ge.isPending)},features:[o.qOj]})}return wt})(),Ve=(()=>{class wt extends ie{constructor(ot){super(ot)}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(At,10))};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ae,Ge){2&ae&&o.ekj("ng-untouched",Ge.isUntouched)("ng-touched",Ge.isTouched)("ng-pristine",Ge.isPristine)("ng-dirty",Ge.isDirty)("ng-valid",Ge.isValid)("ng-invalid",Ge.isInvalid)("ng-pending",Ge.isPending)("ng-submitted",Ge.isSubmitted)},features:[o.qOj]})}return wt})();const Me="VALID",_n="INVALID",ce="PENDING",ye="DISABLED";function Xt(wt){return(te(wt)?wt.validators:wt)||null}function oe(wt,Nt){return(te(Nt)?Nt.asyncValidators:wt)||null}function te(wt){return null!=wt&&!Array.isArray(wt)&&"object"==typeof wt}function Se(wt,Nt,ot){const ae=wt.controls;if(!(Nt?Object.keys(ae):ae).length)throw new o.vHH(1e3,"");if(!ae[ot])throw new o.vHH(1001,"")}function Ke(wt,Nt,ot){wt._forEachChild((ae,Ge)=>{if(void 0===ot[Ge])throw new o.vHH(1002,"")})}class Oe{constructor(Nt,ot){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Nt),this._assignAsyncValidators(ot)}get validator(){return this._composedValidatorFn}set validator(Nt){this._rawValidators=this._composedValidatorFn=Nt}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Nt){this._rawAsyncValidators=this._composedAsyncValidatorFn=Nt}get parent(){return this._parent}get valid(){return this.status===Me}get invalid(){return this.status===_n}get pending(){return this.status==ce}get disabled(){return this.status===ye}get enabled(){return this.status!==ye}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Nt){this._assignValidators(Nt)}setAsyncValidators(Nt){this._assignAsyncValidators(Nt)}addValidators(Nt){this.setValidators(yt(Nt,this._rawValidators))}addAsyncValidators(Nt){this.setAsyncValidators(yt(Nt,this._rawAsyncValidators))}removeValidators(Nt){this.setValidators(ee(Nt,this._rawValidators))}removeAsyncValidators(Nt){this.setAsyncValidators(ee(Nt,this._rawAsyncValidators))}hasValidator(Nt){return mt(this._rawValidators,Nt)}hasAsyncValidator(Nt){return mt(this._rawAsyncValidators,Nt)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Nt={}){this.touched=!0,this._parent&&!Nt.onlySelf&&this._parent.markAsTouched(Nt)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Nt=>Nt.markAllAsTouched())}markAsUntouched(Nt={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(ot=>{ot.markAsUntouched({onlySelf:!0})}),this._parent&&!Nt.onlySelf&&this._parent._updateTouched(Nt)}markAsDirty(Nt={}){this.pristine=!1,this._parent&&!Nt.onlySelf&&this._parent.markAsDirty(Nt)}markAsPristine(Nt={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(ot=>{ot.markAsPristine({onlySelf:!0})}),this._parent&&!Nt.onlySelf&&this._parent._updatePristine(Nt)}markAsPending(Nt={}){this.status=ce,!1!==Nt.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Nt.onlySelf&&this._parent.markAsPending(Nt)}disable(Nt={}){const ot=this._parentMarkedDirty(Nt.onlySelf);this.status=ye,this.errors=null,this._forEachChild(ae=>{ae.disable({...Nt,onlySelf:!0})}),this._updateValue(),!1!==Nt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Nt,skipPristineCheck:ot}),this._onDisabledChange.forEach(ae=>ae(!0))}enable(Nt={}){const ot=this._parentMarkedDirty(Nt.onlySelf);this.status=Me,this._forEachChild(ae=>{ae.enable({...Nt,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Nt.emitEvent}),this._updateAncestors({...Nt,skipPristineCheck:ot}),this._onDisabledChange.forEach(ae=>ae(!1))}_updateAncestors(Nt){this._parent&&!Nt.onlySelf&&(this._parent.updateValueAndValidity(Nt),Nt.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Nt){this._parent=Nt}getRawValue(){return this.value}updateValueAndValidity(Nt={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Me||this.status===ce)&&this._runAsyncValidator(Nt.emitEvent)),!1!==Nt.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Nt.onlySelf&&this._parent.updateValueAndValidity(Nt)}_updateTreeValidity(Nt={emitEvent:!0}){this._forEachChild(ot=>ot._updateTreeValidity(Nt)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Nt.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ye:Me}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Nt){if(this.asyncValidator){this.status=ce,this._hasOwnPendingAsyncValidator=!0;const ot=z(this.asyncValidator(this));this._asyncValidationSubscription=ot.subscribe(ae=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ae,{emitEvent:Nt})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Nt,ot={}){this.errors=Nt,this._updateControlsErrors(!1!==ot.emitEvent)}get(Nt){let ot=Nt;return null==ot||(Array.isArray(ot)||(ot=ot.split(".")),0===ot.length)?null:ot.reduce((ae,Ge)=>ae&&ae._find(Ge),this)}getError(Nt,ot){const ae=ot?this.get(ot):this;return ae&&ae.errors?ae.errors[Nt]:null}hasError(Nt,ot){return!!this.getError(Nt,ot)}get root(){let Nt=this;for(;Nt._parent;)Nt=Nt._parent;return Nt}_updateControlsErrors(Nt){this.status=this._calculateStatus(),Nt&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Nt)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?ye:this.errors?_n:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ce)?ce:this._anyControlsHaveStatus(_n)?_n:Me}_anyControlsHaveStatus(Nt){return this._anyControls(ot=>ot.status===Nt)}_anyControlsDirty(){return this._anyControls(Nt=>Nt.dirty)}_anyControlsTouched(){return this._anyControls(Nt=>Nt.touched)}_updatePristine(Nt={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Nt.onlySelf&&this._parent._updatePristine(Nt)}_updateTouched(Nt={}){this.touched=this._anyControlsTouched(),this._parent&&!Nt.onlySelf&&this._parent._updateTouched(Nt)}_registerOnCollectionChange(Nt){this._onCollectionChange=Nt}_setUpdateStrategy(Nt){te(Nt)&&null!=Nt.updateOn&&(this._updateOn=Nt.updateOn)}_parentMarkedDirty(Nt){return!Nt&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Nt){return null}_assignValidators(Nt){this._rawValidators=Array.isArray(Nt)?Nt.slice():Nt,this._composedValidatorFn=function on(wt){return Array.isArray(wt)?Lt(wt):wt||null}(this._rawValidators)}_assignAsyncValidators(Nt){this._rawAsyncValidators=Array.isArray(Nt)?Nt.slice():Nt,this._composedAsyncValidatorFn=function $e(wt){return Array.isArray(wt)?Tt(wt):wt||null}(this._rawAsyncValidators)}}class Qe extends Oe{constructor(Nt,ot,ae){super(Xt(ot),oe(ae,ot)),this.controls=Nt,this._initObservables(),this._setUpdateStrategy(ot),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Nt,ot){return this.controls[Nt]?this.controls[Nt]:(this.controls[Nt]=ot,ot.setParent(this),ot._registerOnCollectionChange(this._onCollectionChange),ot)}addControl(Nt,ot,ae={}){this.registerControl(Nt,ot),this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}removeControl(Nt,ot={}){this.controls[Nt]&&this.controls[Nt]._registerOnCollectionChange(()=>{}),delete this.controls[Nt],this.updateValueAndValidity({emitEvent:ot.emitEvent}),this._onCollectionChange()}setControl(Nt,ot,ae={}){this.controls[Nt]&&this.controls[Nt]._registerOnCollectionChange(()=>{}),delete this.controls[Nt],ot&&this.registerControl(Nt,ot),this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}contains(Nt){return this.controls.hasOwnProperty(Nt)&&this.controls[Nt].enabled}setValue(Nt,ot={}){Ke(this,0,Nt),Object.keys(Nt).forEach(ae=>{Se(this,!0,ae),this.controls[ae].setValue(Nt[ae],{onlySelf:!0,emitEvent:ot.emitEvent})}),this.updateValueAndValidity(ot)}patchValue(Nt,ot={}){null!=Nt&&(Object.keys(Nt).forEach(ae=>{const Ge=this.controls[ae];Ge&&Ge.patchValue(Nt[ae],{onlySelf:!0,emitEvent:ot.emitEvent})}),this.updateValueAndValidity(ot))}reset(Nt={},ot={}){this._forEachChild((ae,Ge)=>{ae.reset(Nt?Nt[Ge]:null,{onlySelf:!0,emitEvent:ot.emitEvent})}),this._updatePristine(ot),this._updateTouched(ot),this.updateValueAndValidity(ot)}getRawValue(){return this._reduceChildren({},(Nt,ot,ae)=>(Nt[ae]=ot.getRawValue(),Nt))}_syncPendingControls(){let Nt=this._reduceChildren(!1,(ot,ae)=>!!ae._syncPendingControls()||ot);return Nt&&this.updateValueAndValidity({onlySelf:!0}),Nt}_forEachChild(Nt){Object.keys(this.controls).forEach(ot=>{const ae=this.controls[ot];ae&&Nt(ae,ot)})}_setUpControls(){this._forEachChild(Nt=>{Nt.setParent(this),Nt._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Nt){for(const[ot,ae]of Object.entries(this.controls))if(this.contains(ot)&&Nt(ae))return!0;return!1}_reduceValue(){return this._reduceChildren({},(ot,ae,Ge)=>((ae.enabled||this.disabled)&&(ot[Ge]=ae.value),ot))}_reduceChildren(Nt,ot){let ae=Nt;return this._forEachChild((Ge,ri)=>{ae=ot(ae,Ge,ri)}),ae}_allControlsDisabled(){for(const Nt of Object.keys(this.controls))if(this.controls[Nt].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Nt){return this.controls.hasOwnProperty(Nt)?this.controls[Nt]:null}}const et=Qe,Fe=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Cn}),Cn="always";function He(wt,Nt,ot=Cn){dn(wt,Nt),Nt.valueAccessor.writeValue(wt.value),(wt.disabled||"always"===ot)&&Nt.valueAccessor.setDisabledState?.(wt.disabled),function je(wt,Nt){Nt.valueAccessor.registerOnChange(ot=>{wt._pendingValue=ot,wt._pendingChange=!0,wt._pendingDirty=!0,"change"===wt.updateOn&&Ne(wt,Nt)})}(wt,Nt),function le(wt,Nt){const ot=(ae,Ge)=>{Nt.valueAccessor.writeValue(ae),Ge&&Nt.viewToModelUpdate(ae)};wt.registerOnChange(ot),Nt._registerOnDestroy(()=>{wt._unregisterOnChange(ot)})}(wt,Nt),function ke(wt,Nt){Nt.valueAccessor.registerOnTouched(()=>{wt._pendingTouched=!0,"blur"===wt.updateOn&&wt._pendingChange&&Ne(wt,Nt),"submit"!==wt.updateOn&&wt.markAsTouched()})}(wt,Nt),function ze(wt,Nt){if(Nt.valueAccessor.setDisabledState){const ot=ae=>{Nt.valueAccessor.setDisabledState(ae)};wt.registerOnDisabledChange(ot),Nt._registerOnDestroy(()=>{wt._unregisterOnDisabledChange(ot)})}}(wt,Nt)}function X(wt,Nt,ot=!0){const ae=()=>{};Nt.valueAccessor&&(Nt.valueAccessor.registerOnChange(ae),Nt.valueAccessor.registerOnTouched(ae)),Tn(wt,Nt),wt&&(Nt._invokeOnDestroyCallbacks(),wt._registerOnCollectionChange(()=>{}))}function _e(wt,Nt){wt.forEach(ot=>{ot.registerOnValidatorChange&&ot.registerOnValidatorChange(Nt)})}function dn(wt,Nt){const ot=pt(wt);null!==Nt.validator?wt.setValidators($(ot,Nt.validator)):"function"==typeof ot&&wt.setValidators([ot]);const ae=Dt(wt);null!==Nt.asyncValidator?wt.setAsyncValidators($(ae,Nt.asyncValidator)):"function"==typeof ae&&wt.setAsyncValidators([ae]);const Ge=()=>wt.updateValueAndValidity();_e(Nt._rawValidators,Ge),_e(Nt._rawAsyncValidators,Ge)}function Tn(wt,Nt){let ot=!1;if(null!==wt){if(null!==Nt.validator){const Ge=pt(wt);if(Array.isArray(Ge)&&Ge.length>0){const ri=Ge.filter(Ti=>Ti!==Nt.validator);ri.length!==Ge.length&&(ot=!0,wt.setValidators(ri))}}if(null!==Nt.asyncValidator){const Ge=Dt(wt);if(Array.isArray(Ge)&&Ge.length>0){const ri=Ge.filter(Ti=>Ti!==Nt.asyncValidator);ri.length!==Ge.length&&(ot=!0,wt.setAsyncValidators(ri))}}}const ae=()=>{};return _e(Nt._rawValidators,ae),_e(Nt._rawAsyncValidators,ae),ot}function Ne(wt,Nt){wt._pendingDirty&&wt.markAsDirty(),wt.setValue(wt._pendingValue,{emitModelToViewChange:!1}),Nt.viewToModelUpdate(wt._pendingValue),wt._pendingChange=!1}function cn(wt,Nt){dn(wt,Nt)}function Ei(wt,Nt){if(!wt.hasOwnProperty("model"))return!1;const ot=wt.model;return!!ot.isFirstChange()||!Object.is(Nt,ot.currentValue)}function No(wt,Nt){wt._syncPendingControls(),Nt.forEach(ot=>{const ae=ot.control;"submit"===ae.updateOn&&ae._pendingChange&&(ot.viewToModelUpdate(ae._pendingValue),ae._pendingChange=!1)})}function Mo(wt,Nt){if(!Nt)return null;let ot,ae,Ge;return Array.isArray(Nt),Nt.forEach(ri=>{ri.constructor===lt?ot=ri:function Yi(wt){return Object.getPrototypeOf(wt.constructor)===R}(ri)?ae=ri:Ge=ri}),Ge||ae||ot||null}const io={provide:At,useExisting:(0,o.Gpc)(()=>Sn)},Ye=(()=>Promise.resolve())();let Sn=(()=>{class wt extends At{constructor(ot,ae,Ge){super(),this.callSetDisabledState=Ge,this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new Qe({},Lt(ot),Tt(ae))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(ot){Ye.then(()=>{const ae=this._findContainer(ot.path);ot.control=ae.registerControl(ot.name,ot.control),He(ot.control,ot,this.callSetDisabledState),ot.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(ot)})}getControl(ot){return this.form.get(ot.path)}removeControl(ot){Ye.then(()=>{const ae=this._findContainer(ot.path);ae&&ae.removeControl(ot.name),this._directives.delete(ot)})}addFormGroup(ot){Ye.then(()=>{const ae=this._findContainer(ot.path),Ge=new Qe({});cn(Ge,ot),ae.registerControl(ot.name,Ge),Ge.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(ot){Ye.then(()=>{const ae=this._findContainer(ot.path);ae&&ae.removeControl(ot.name)})}getFormGroup(ot){return this.form.get(ot.path)}updateModel(ot,ae){Ye.then(()=>{this.form.get(ot.path).setValue(ae)})}setValue(ot){this.control.setValue(ot)}onSubmit(ot){return this.submitted=!0,No(this.form,this._directives),this.ngSubmit.emit(ot),"dialog"===ot?.target?.method}onReset(){this.resetForm()}resetForm(ot=void 0){this.form.reset(ot),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(ot){return ot.pop(),ot.length?this.form.get(ot):this.form}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(A,10),o.Y36(xt,10),o.Y36(Fe,8))};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ae,Ge){1&ae&&o.NdJ("submit",function(Ti){return Ge.onSubmit(Ti)})("reset",function(){return Ge.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([io]),o.qOj]})}return wt})();function N(wt,Nt){const ot=wt.indexOf(Nt);ot>-1&&wt.splice(ot,1)}function Zt(wt){return"object"==typeof wt&&null!==wt&&2===Object.keys(wt).length&&"value"in wt&&"disabled"in wt}const kt=class extends Oe{constructor(Nt=null,ot,ae){super(Xt(ot),oe(ae,ot)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Nt),this._setUpdateStrategy(ot),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),te(ot)&&(ot.nonNullable||ot.initialValueIsDefault)&&(this.defaultValue=Zt(Nt)?Nt.value:Nt)}setValue(Nt,ot={}){this.value=this._pendingValue=Nt,this._onChange.length&&!1!==ot.emitModelToViewChange&&this._onChange.forEach(ae=>ae(this.value,!1!==ot.emitViewToModelChange)),this.updateValueAndValidity(ot)}patchValue(Nt,ot={}){this.setValue(Nt,ot)}reset(Nt=this.defaultValue,ot={}){this._applyFormState(Nt),this.markAsPristine(ot),this.markAsUntouched(ot),this.setValue(this.value,ot),this._pendingChange=!1}_updateValue(){}_anyControls(Nt){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Nt){this._onChange.push(Nt)}_unregisterOnChange(Nt){N(this._onChange,Nt)}registerOnDisabledChange(Nt){this._onDisabledChange.push(Nt)}_unregisterOnDisabledChange(Nt){N(this._onDisabledChange,Nt)}_forEachChild(Nt){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Nt){Zt(Nt)?(this.value=this._pendingValue=Nt.value,Nt.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Nt}},fe=kt,he={provide:st,useExisting:(0,o.Gpc)(()=>xn)},Be=(()=>Promise.resolve())();let xn=(()=>{class wt extends st{constructor(ot,ae,Ge,ri,Ti,_r){super(),this._changeDetectorRef=Ti,this.callSetDisabledState=_r,this.control=new kt,this._registered=!1,this.name="",this.update=new o.vpe,this._parent=ot,this._setValidators(ae),this._setAsyncValidators(Ge),this.valueAccessor=Mo(0,ri)}ngOnChanges(ot){if(this._checkForErrors(),!this._registered||"name"in ot){if(this._registered&&(this._checkName(),this.formDirective)){const ae=ot.name.previousValue;this.formDirective.removeControl({name:ae,path:this._getPath(ae)})}this._setUpControl()}"isDisabled"in ot&&this._updateDisabled(ot),Ei(ot,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(ot){this.viewModel=ot,this.update.emit(ot)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){He(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(ot){Be.then(()=>{this.control.setValue(ot,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(ot){const ae=ot.isDisabled.currentValue,Ge=0!==ae&&(0,o.VuI)(ae);Be.then(()=>{Ge&&!this.control.disabled?this.control.disable():!Ge&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(ot){return this._parent?function de(wt,Nt){return[...Nt.path,wt]}(ot,this._parent):[ot]}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(At,9),o.Y36(A,10),o.Y36(xt,10),o.Y36(f,10),o.Y36(o.sBO,8),o.Y36(Fe,8))};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([he]),o.qOj,o.TTD]})}return wt})(),Fn=(()=>{class wt{static#t=this.\u0275fac=function(ae){return new(ae||wt)};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return wt})(),go=(()=>{class wt{static#t=this.\u0275fac=function(ae){return new(ae||wt)};static#e=this.\u0275mod=o.oAB({type:wt});static#n=this.\u0275inj=o.cJS({})}return wt})();const ii=new o.OlP("NgModelWithFormControlWarning"),lo={provide:st,useExisting:(0,o.Gpc)(()=>xo)};let xo=(()=>{class wt extends st{set isDisabled(ot){}static#t=this._ngModelWarningSentOnce=!1;constructor(ot,ae,Ge,ri,Ti){super(),this._ngModelWarningConfig=ri,this.callSetDisabledState=Ti,this.update=new o.vpe,this._ngModelWarningSent=!1,this._setValidators(ot),this._setAsyncValidators(ae),this.valueAccessor=Mo(0,Ge)}ngOnChanges(ot){if(this._isControlChanged(ot)){const ae=ot.form.previousValue;ae&&X(ae,this,!1),He(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ei(ot,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&X(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(ot){this.viewModel=ot,this.update.emit(ot)}_isControlChanged(ot){return ot.hasOwnProperty("form")}static#e=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(A,10),o.Y36(xt,10),o.Y36(f,10),o.Y36(ii,8),o.Y36(Fe,8))};static#n=this.\u0275dir=o.lG2({type:wt,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o._Bn([lo]),o.qOj,o.TTD]})}return wt})();const $o={provide:At,useExisting:(0,o.Gpc)(()=>Eo)};let Eo=(()=>{class wt extends At{constructor(ot,ae,Ge){super(),this.callSetDisabledState=Ge,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.vpe,this._setValidators(ot),this._setAsyncValidators(ae)}ngOnChanges(ot){this._checkFormPresent(),ot.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Tn(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(ot){const ae=this.form.get(ot.path);return He(ae,ot,this.callSetDisabledState),ae.updateValueAndValidity({emitEvent:!1}),this.directives.push(ot),ae}getControl(ot){return this.form.get(ot.path)}removeControl(ot){X(ot.control||null,ot,!1),function Ai(wt,Nt){const ot=wt.indexOf(Nt);ot>-1&&wt.splice(ot,1)}(this.directives,ot)}addFormGroup(ot){this._setUpFormContainer(ot)}removeFormGroup(ot){this._cleanUpFormContainer(ot)}getFormGroup(ot){return this.form.get(ot.path)}addFormArray(ot){this._setUpFormContainer(ot)}removeFormArray(ot){this._cleanUpFormContainer(ot)}getFormArray(ot){return this.form.get(ot.path)}updateModel(ot,ae){this.form.get(ot.path).setValue(ae)}onSubmit(ot){return this.submitted=!0,No(this.form,this.directives),this.ngSubmit.emit(ot),"dialog"===ot?.target?.method}onReset(){this.resetForm()}resetForm(ot=void 0){this.form.reset(ot),this.submitted=!1}_updateDomValue(){this.directives.forEach(ot=>{const ae=ot.control,Ge=this.form.get(ot.path);ae!==Ge&&(X(ae||null,ot),(wt=>wt instanceof kt)(Ge)&&(He(Ge,ot,this.callSetDisabledState),ot.control=Ge))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(ot){const ae=this.form.get(ot.path);cn(ae,ot),ae.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(ot){if(this.form){const ae=this.form.get(ot.path);ae&&function se(wt,Nt){return Tn(wt,Nt)}(ae,ot)&&ae.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){dn(this.form,this),this._oldForm&&Tn(this._oldForm,this)}_checkFormPresent(){}static#t=this.\u0275fac=function(ae){return new(ae||wt)(o.Y36(A,10),o.Y36(xt,10),o.Y36(Fe,8))};static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["","formGroup",""]],hostBindings:function(ae,Ge){1&ae&&o.NdJ("submit",function(Ti){return Ge.onSubmit(Ti)})("reset",function(){return Ge.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([$o]),o.qOj,o.TTD]})}return wt})(),qn=(()=>{class wt{constructor(){this._validator=H}ngOnChanges(ot){if(this.inputName in ot){const ae=this.normalizeInput(ot[this.inputName].currentValue);this._enabled=this.enabled(ae),this._validator=this._enabled?this.createValidator(ae):H,this._onChange&&this._onChange()}}validate(ot){return this._validator(ot)}registerOnValidatorChange(ot){this._onChange=ot}enabled(ot){return null!=ot}static#t=this.\u0275fac=function(ae){return new(ae||wt)};static#e=this.\u0275dir=o.lG2({type:wt,features:[o.TTD]})}return wt})();const Jr={provide:A,useExisting:(0,o.Gpc)(()=>Pi),multi:!0},Ri={provide:A,useExisting:(0,o.Gpc)(()=>oo),multi:!0};let Pi=(()=>{class wt extends qn{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=o.VuI,this.createValidator=ot=>q}enabled(ot){return ot}static#t=this.\u0275fac=function(){let ot;return function(Ge){return(ot||(ot=o.n5z(wt)))(Ge||wt)}}();static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(ae,Ge){2&ae&&o.uIk("required",Ge._enabled?"":null)},inputs:{required:"required"},features:[o._Bn([Jr]),o.qOj]})}return wt})(),oo=(()=>{class wt extends Pi{constructor(){super(...arguments),this.createValidator=ot=>ht}static#t=this.\u0275fac=function(){let ot;return function(Ge){return(ot||(ot=o.n5z(wt)))(Ge||wt)}}();static#e=this.\u0275dir=o.lG2({type:wt,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(ae,Ge){2&ae&&o.uIk("required",Ge._enabled?"":null)},features:[o._Bn([Ri]),o.qOj]})}return wt})(),Io=(()=>{class wt{static#t=this.\u0275fac=function(ae){return new(ae||wt)};static#e=this.\u0275mod=o.oAB({type:wt});static#n=this.\u0275inj=o.cJS({imports:[go]})}return wt})();const pr=class _o extends Oe{constructor(Nt,ot,ae){super(Xt(ot),oe(ae,ot)),this.controls=Nt,this._initObservables(),this._setUpdateStrategy(ot),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Nt){return this.controls[this._adjustIndex(Nt)]}push(Nt,ot={}){this.controls.push(Nt),this._registerControl(Nt),this.updateValueAndValidity({emitEvent:ot.emitEvent}),this._onCollectionChange()}insert(Nt,ot,ae={}){this.controls.splice(Nt,0,ot),this._registerControl(ot),this.updateValueAndValidity({emitEvent:ae.emitEvent})}removeAt(Nt,ot={}){let ae=this._adjustIndex(Nt);ae<0&&(ae=0),this.controls[ae]&&this.controls[ae]._registerOnCollectionChange(()=>{}),this.controls.splice(ae,1),this.updateValueAndValidity({emitEvent:ot.emitEvent})}setControl(Nt,ot,ae={}){let Ge=this._adjustIndex(Nt);Ge<0&&(Ge=0),this.controls[Ge]&&this.controls[Ge]._registerOnCollectionChange(()=>{}),this.controls.splice(Ge,1),ot&&(this.controls.splice(Ge,0,ot),this._registerControl(ot)),this.updateValueAndValidity({emitEvent:ae.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Nt,ot={}){Ke(this,0,Nt),Nt.forEach((ae,Ge)=>{Se(this,!1,Ge),this.at(Ge).setValue(ae,{onlySelf:!0,emitEvent:ot.emitEvent})}),this.updateValueAndValidity(ot)}patchValue(Nt,ot={}){null!=Nt&&(Nt.forEach((ae,Ge)=>{this.at(Ge)&&this.at(Ge).patchValue(ae,{onlySelf:!0,emitEvent:ot.emitEvent})}),this.updateValueAndValidity(ot))}reset(Nt=[],ot={}){this._forEachChild((ae,Ge)=>{ae.reset(Nt[Ge],{onlySelf:!0,emitEvent:ot.emitEvent})}),this._updatePristine(ot),this._updateTouched(ot),this.updateValueAndValidity(ot)}getRawValue(){return this.controls.map(Nt=>Nt.getRawValue())}clear(Nt={}){this.controls.length<1||(this._forEachChild(ot=>ot._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Nt.emitEvent}))}_adjustIndex(Nt){return Nt<0?Nt+this.length:Nt}_syncPendingControls(){let Nt=this.controls.reduce((ot,ae)=>!!ae._syncPendingControls()||ot,!1);return Nt&&this.updateValueAndValidity({onlySelf:!0}),Nt}_forEachChild(Nt){this.controls.forEach((ot,ae)=>{Nt(ot,ae)})}_updateValue(){this.value=this.controls.filter(Nt=>Nt.enabled||this.disabled).map(Nt=>Nt.value)}_anyControls(Nt){return this.controls.some(ot=>ot.enabled&&Nt(ot))}_setUpControls(){this._forEachChild(Nt=>this._registerControl(Nt))}_allControlsDisabled(){for(const Nt of this.controls)if(Nt.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Nt){Nt.setParent(this),Nt._registerOnCollectionChange(this._onCollectionChange)}_find(Nt){return this.at(Nt)??null}};let _s=(()=>{class wt{static withConfig(ot){return{ngModule:wt,providers:[{provide:Fe,useValue:ot.callSetDisabledState??Cn}]}}static#t=this.\u0275fac=function(ae){return new(ae||wt)};static#e=this.\u0275mod=o.oAB({type:wt});static#n=this.\u0275inj=o.cJS({imports:[Io]})}return wt})(),sr=(()=>{class wt{static withConfig(ot){return{ngModule:wt,providers:[{provide:ii,useValue:ot.warnOnNgModelWithFormControl??"always"},{provide:Fe,useValue:ot.callSetDisabledState??Cn}]}}static#t=this.\u0275fac=function(ae){return new(ae||wt)};static#e=this.\u0275mod=o.oAB({type:wt});static#n=this.\u0275inj=o.cJS({imports:[Io]})}return wt})()},9014:(Je,Rt,c)=>{"use strict";c.d(Rt,{g:()=>y,k:()=>t});var o=c(5879),e=c(3680),g=c(4300),x=c(2495),l=c(6814);let i=0;const R=(0,e.Id)(class{}),f="mat-badge-content";let t=(()=>{class O extends R{get color(){return this._color}set color(U){this._setColor(U),this._color=U}get overlap(){return this._overlap}set overlap(U){this._overlap=(0,x.Ig)(U)}get content(){return this._content}set content(U){this._updateRenderedContent(U)}get description(){return this._description}set description(U){this._updateDescription(U)}get hidden(){return this._hidden}set hidden(U){this._hidden=(0,x.Ig)(U)}constructor(U,lt,ut,Ht,A){super(),this._ngZone=U,this._elementRef=lt,this._ariaDescriber=ut,this._renderer=Ht,this._animationMode=A,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=i++,this._isInitialized=!1,this._interactivityChecker=(0,o.f3M)(g.ic),this._document=(0,o.f3M)(l.K0)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){const U=this._renderer.createElement("span"),lt="mat-badge-active";return U.setAttribute("id",`mat-badge-content-${this._id}`),U.setAttribute("aria-hidden","true"),U.classList.add(f),"NoopAnimations"===this._animationMode&&U.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(U),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{U.classList.add(lt)})}):U.classList.add(lt),U}_updateRenderedContent(U){const lt=`${U??""}`.trim();this._isInitialized&&lt&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=lt),this._content=lt}_updateDescription(U){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!U||this._isHostInteractive())&&this._removeInlineDescription(),this._description=U,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,U):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(U){const lt=this._elementRef.nativeElement.classList;lt.remove(`mat-badge-${this._color}`),U&&lt.add(`mat-badge-${U}`)}_clearExistingBadges(){const U=this._elementRef.nativeElement.querySelectorAll(`:scope > .${f}`);for(const lt of Array.from(U))lt!==this._badgeElement&&lt.remove()}static#t=this.\u0275fac=function(lt){return new(lt||O)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(g.$s),o.Y36(o.Qsj),o.Y36(o.QbO,8))};static#e=this.\u0275dir=o.lG2({type:O,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(lt,ut){2&lt&&o.ekj("mat-badge-overlap",ut.overlap)("mat-badge-above",ut.isAbove())("mat-badge-below",!ut.isAbove())("mat-badge-before",!ut.isAfter())("mat-badge-after",ut.isAfter())("mat-badge-small","small"===ut.size)("mat-badge-medium","medium"===ut.size)("mat-badge-large","large"===ut.size)("mat-badge-hidden",ut.hidden||!ut.content)("mat-badge-disabled",ut.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[o.qOj]})}return O})(),y=(()=>{class O{static#t=this.\u0275fac=function(lt){return new(lt||O)};static#e=this.\u0275mod=o.oAB({type:O});static#n=this.\u0275inj=o.cJS({imports:[g.rt,e.BQ,e.BQ]})}return O})()},8005:(Je,Rt,c)=>{"use strict";c.d(Rt,{OG:()=>tt,_r:()=>xt,ch:()=>q,oL:()=>_});var o=c(8836),e=c(8484),g=c(5879),x=c(3680),l=c(4300),i=c(1088),R=c(9594),f=c(6814),t=c(6825),y=c(6028),O=c(8645),G=c(3019),U=c(2181),lt=c(8180);function ut(ht,vt){}const Ht={bottomSheetState:(0,t.X$)("state",[(0,t.SB)("void, hidden",(0,t.oB)({transform:"translateY(100%)"})),(0,t.SB)("visible",(0,t.oB)({transform:"translateY(0%)"})),(0,t.eR)("visible => void, visible => hidden",(0,t.ru)([(0,t.jt)(`${x.mZ.COMPLEX} ${x.yN.ACCELERATION_CURVE}`),(0,t.IO)("@*",(0,t.pV)(),{optional:!0})])),(0,t.eR)("void => visible",(0,t.ru)([(0,t.jt)(`${x.mZ.EXITING} ${x.yN.DECELERATION_CURVE}`),(0,t.IO)("@*",(0,t.pV)(),{optional:!0})]))])};let A=(()=>{class ht extends o.LL{constructor(gt,zt,Ct,H,J,z,F,rt,V,Pt){super(gt,zt,Ct,H,J,z,F,Pt),this._changeDetectorRef=V,this._animationState="void",this._animationStateChanged=new g.vpe,this._breakpointSubscription=rt.observe([i.u3.Medium,i.u3.Large,i.u3.XLarge]).subscribe(()=>{this._toggleClass("mat-bottom-sheet-container-medium",rt.isMatched(i.u3.Medium)),this._toggleClass("mat-bottom-sheet-container-large",rt.isMatched(i.u3.Large)),this._toggleClass("mat-bottom-sheet-container-xlarge",rt.isMatched(i.u3.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){this._destroyed||(this._animationState="hidden",this._changeDetectorRef.markForCheck())}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_onAnimationDone(gt){"visible"===gt.toState&&this._trapFocus(),this._animationStateChanged.emit(gt)}_onAnimationStart(gt){this._animationStateChanged.emit(gt)}_captureInitialFocus(){}_toggleClass(gt,zt){this._elementRef.nativeElement.classList.toggle(gt,zt)}static#t=this.\u0275fac=function(zt){return new(zt||ht)(g.Y36(g.SBq),g.Y36(l.qV),g.Y36(f.K0,8),g.Y36(o.ib),g.Y36(l.ic),g.Y36(g.R0b),g.Y36(R.Iu),g.Y36(i.Yg),g.Y36(g.sBO),g.Y36(l.tE))};static#e=this.\u0275cmp=g.Xpm({type:ht,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:4,hostBindings:function(zt,Ct){1&zt&&g.WFA("@state.start",function(J){return Ct._onAnimationStart(J)})("@state.done",function(J){return Ct._onAnimationDone(J)}),2&zt&&(g.uIk("role",Ct._config.role)("aria-modal",Ct._config.ariaModal)("aria-label",Ct._config.ariaLabel),g.d8E("@state",Ct._animationState))},features:[g.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(zt,Ct){1&zt&&g.YNc(0,ut,0,0,"ng-template",0)},dependencies:[e.Pl],styles:[".mat-bottom-sheet-container{--mat-bottom-sheet-container-shape:4px;box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;background:var(--mat-bottom-sheet-container-background-color);color:var(--mat-bottom-sheet-container-text-color);font-family:var(--mat-bottom-sheet-container-text-font);font-size:var(--mat-bottom-sheet-container-text-size);line-height:var(--mat-bottom-sheet-container-text-line-height);font-weight:var(--mat-bottom-sheet-container-text-weight);letter-spacing:var(--mat-bottom-sheet-container-text-tracking)}.cdk-high-contrast-active .mat-bottom-sheet-container{outline:1px solid}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape);border-top-right-radius:var(--mat-bottom-sheet-container-shape)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)}"],encapsulation:2,data:{animation:[Ht.bottomSheetState]}})}return ht})(),xt=(()=>{class ht{static#t=this.\u0275fac=function(zt){return new(zt||ht)};static#e=this.\u0275mod=g.oAB({type:ht});static#n=this.\u0275inj=g.cJS({imports:[o.Su,x.BQ,e.eL,x.BQ]})}return ht})();const tt=new g.OlP("MatBottomSheetData");class ct{constructor(){this.data=null,this.hasBackdrop=!0,this.disableClose=!1,this.ariaLabel=null,this.ariaModal=!0,this.closeOnNavigation=!0,this.autoFocus="dialog",this.restoreFocus=!0}}class _{get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}constructor(vt,gt,zt){this._ref=vt,this._afterOpened=new O.x,this.containerInstance=zt,this.disableClose=gt.disableClose,zt._animationStateChanged.pipe((0,U.h)(Ct=>"done"===Ct.phaseName&&"visible"===Ct.toState),(0,lt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),zt._animationStateChanged.pipe((0,U.h)(Ct=>"done"===Ct.phaseName&&"hidden"===Ct.toState),(0,lt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),vt.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),(0,G.T)(this.backdropClick(),this.keydownEvents().pipe((0,U.h)(Ct=>Ct.keyCode===y.hY))).subscribe(Ct=>{!this.disableClose&&("keydown"!==Ct.type||!(0,y.Vb)(Ct))&&(Ct.preventDefault(),this.dismiss())})}dismiss(vt){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe((0,U.h)(gt=>"start"===gt.phaseName),(0,lt.q)(1)).subscribe(gt=>{this._closeFallbackTimeout=setTimeout(()=>{this._ref.close(this._result)},gt.totalTime+100),this._ref.overlayRef.detachBackdrop()}),this._result=vt,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}}const j=new g.OlP("mat-bottom-sheet-default-options");let q=(()=>{class ht{get _openedBottomSheetRef(){const gt=this._parentBottomSheet;return gt?gt._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(gt){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=gt:this._bottomSheetRefAtThisLevel=gt}constructor(gt,zt,Ct,H){this._overlay=gt,this._parentBottomSheet=Ct,this._defaultOptions=H,this._bottomSheetRefAtThisLevel=null,this._dialog=zt.get(o.Vq)}open(gt,zt){const Ct={...this._defaultOptions||new ct,...zt};let H;return this._dialog.open(gt,{...Ct,disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:A,scrollStrategy:Ct.scrollStrategy||this._overlay.scrollStrategies.block(),positionStrategy:this._overlay.position().global().centerHorizontally().bottom("0"),templateContext:()=>({bottomSheetRef:H}),providers:(J,z,F)=>(H=new _(J,Ct,F),[{provide:_,useValue:H},{provide:tt,useValue:Ct.data}])}),H.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===H&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>H.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):H.containerInstance.enter(),this._openedBottomSheetRef=H,H}dismiss(gt){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(gt)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static#t=this.\u0275fac=function(zt){return new(zt||ht)(g.LFG(R.aV),g.LFG(g.zs3),g.LFG(ht,12),g.LFG(j,8))};static#e=this.\u0275prov=g.Yz7({token:ht,factory:ht.\u0275fac,providedIn:xt})}return ht})()},2296:(Je,Rt,c)=>{"use strict";c.d(Rt,{RK:()=>Pt,lW:()=>vt,ot:()=>Lt});var o=c(2831),e=c(5879),g=c(4300),x=c(2495),l=c(3680);const i=["mat-button",""],R=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],f=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],lt=["mat-icon-button",""],ut=["*"],tt=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],ct=(0,l.pj)((0,l.Id)((0,l.Kr)(class{constructor(Jt){this._elementRef=Jt}})));let _=(()=>{class Jt extends ct{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple($){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,$)}get disableRipple(){return this._disableRipple}set disableRipple($){this._disableRipple=(0,x.Ig)($),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled($){this._disabled=(0,x.Ig)($),this._updateRippleDisabled()}constructor($,pt,Dt,St){super($),this._platform=pt,this._ngZone=Dt,this._animationMode=St,this._focusMonitor=(0,e.f3M)(g.tE),this._rippleLoader=(0,e.f3M)(l.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const mt=$.nativeElement.classList;for(const yt of tt)this._hasHostAttributes(yt.selector)&&yt.mdcClasses.forEach(ee=>{mt.add(ee)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus($="program",pt){$?this._focusMonitor.focusVia(this._elementRef.nativeElement,$,pt):this._elementRef.nativeElement.focus(pt)}_hasHostAttributes(...$){return $.some(pt=>this._elementRef.nativeElement.hasAttribute(pt))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#t=this.\u0275fac=function(pt){e.$Z()};static#e=this.\u0275dir=e.lG2({type:Jt,features:[e.qOj]})}return Jt})(),vt=(()=>{class Jt extends _{constructor($,pt,Dt,St){super($,pt,Dt,St)}static#t=this.\u0275fac=function(pt){return new(pt||Jt)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))};static#e=this.\u0275cmp=e.Xpm({type:Jt,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(pt,Dt){2&pt&&(e.uIk("disabled",Dt.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===Dt._animationMode)("mat-unthemed",!Dt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:i,ngContentSelectors:f,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(pt,Dt){1&pt&&(e.F$t(R),e._UZ(0,"span",0),e.Hsn(1),e.TgZ(2,"span",1),e.Hsn(3,1),e.qZA(),e.Hsn(4,2),e._UZ(5,"span",2)(6,"span",3)),2&pt&&e.ekj("mdc-button__ripple",!Dt._isFab)("mdc-fab__ripple",Dt._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n      100% + 4px\n    );width:calc(\n      100% + 4px\n    );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Jt})(),Pt=(()=>{class Jt extends _{constructor($,pt,Dt,St){super($,pt,Dt,St),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#t=this.\u0275fac=function(pt){return new(pt||Jt)(e.Y36(e.SBq),e.Y36(o.t4),e.Y36(e.R0b),e.Y36(e.QbO,8))};static#e=this.\u0275cmp=e.Xpm({type:Jt,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(pt,Dt){2&pt&&(e.uIk("disabled",Dt.disabled||null),e.ekj("_mat-animation-noopable","NoopAnimations"===Dt._animationMode)("mat-unthemed",!Dt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[e.qOj],attrs:lt,ngContentSelectors:ut,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(pt,Dt){1&pt&&(e.F$t(),e._UZ(0,"span",0),e.Hsn(1),e._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Jt})(),Lt=(()=>{class Jt{static#t=this.\u0275fac=function(pt){return new(pt||Jt)};static#e=this.\u0275mod=e.oAB({type:Jt});static#n=this.\u0275inj=e.cJS({imports:[l.BQ,l.si,l.BQ]})}return Jt})()},3680:(Je,Rt,c)=>{"use strict";c.d(Rt,{yN:()=>tt,mZ:()=>ct,_A:()=>Pt,rD:()=>mt,sG:()=>$t,Ad:()=>rt,BQ:()=>q,wG:()=>me,Fq:()=>Oe,si:()=>De,pj:()=>Ct,Kr:()=>H,Id:()=>zt,FD:()=>z,dB:()=>F,sb:()=>J});var o=c(5879),e=c(4300),g=c(9388),l=c(6814),i=c(2831),R=c(2495),f=c(5592),t=c(8645);let tt=(()=>{class Qe{static#t=this.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)";static#e=this.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)";static#n=this.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)";static#i=this.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)"}return Qe})(),ct=(()=>{class Qe{static#t=this.COMPLEX="375ms";static#e=this.ENTERING="225ms";static#n=this.EXITING="195ms"}return Qe})();const j=new o.OlP("mat-sanity-checks",{providedIn:"root",factory:function _(){return!0}});let q=(()=>{class Qe{constructor(nt,it,Ot){this._sanityChecks=it,this._document=Ot,this._hasDoneGlobalChecks=!1,nt._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(nt){return!(0,i.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[nt])}static#t=this.\u0275fac=function(it){return new(it||Qe)(o.LFG(e.qm),o.LFG(j,8),o.LFG(l.K0))};static#e=this.\u0275mod=o.oAB({type:Qe});static#n=this.\u0275inj=o.cJS({imports:[g.vT,g.vT]})}return Qe})();function zt(Qe){return class extends Qe{get disabled(){return this._disabled}set disabled(et){this._disabled=(0,R.Ig)(et)}constructor(...et){super(...et),this._disabled=!1}}}function Ct(Qe,et){return class extends Qe{get color(){return this._color}set color(nt){const it=nt||this.defaultColor;it!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),it&&this._elementRef.nativeElement.classList.add(`mat-${it}`),this._color=it)}constructor(...nt){super(...nt),this.defaultColor=et,this.color=et}}}function H(Qe){return class extends Qe{get disableRipple(){return this._disableRipple}set disableRipple(et){this._disableRipple=(0,R.Ig)(et)}constructor(...et){super(...et),this._disableRipple=!1}}}function J(Qe,et=0){return class extends Qe{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(nt){this._tabIndex=null!=nt?(0,R.su)(nt):this.defaultTabIndex}constructor(...nt){super(...nt),this._tabIndex=et,this.defaultTabIndex=et}}}function z(Qe){return class extends Qe{updateErrorState(){const et=this.errorState,Fe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Fe!==et&&(this.errorState=Fe,this.stateChanges.next())}constructor(...et){super(...et),this.errorState=!1}}}function F(Qe){return class extends Qe{constructor(...et){super(...et),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new f.y(nt=>{this._isInitialized?this._notifySubscriber(nt):this._pendingSubscribers.push(nt)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(et){et.next(),et.complete()}}}const rt=new o.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function V(){return(0,o.f3M)(o.soG)}});class Pt{constructor(){this._localeChanges=new t.x,this.localeChanges=this._localeChanges}getValidDateOrNull(et){return this.isDateInstance(et)&&this.isValid(et)?et:null}deserialize(et){return null==et||this.isDateInstance(et)&&this.isValid(et)?et:this.invalid()}setLocale(et){this.locale=et,this._localeChanges.next()}compareDate(et,nt){return this.getYear(et)-this.getYear(nt)||this.getMonth(et)-this.getMonth(nt)||this.getDate(et)-this.getDate(nt)}sameDate(et,nt){if(et&&nt){let it=this.isValid(et),Ot=this.isValid(nt);return it&&Ot?!this.compareDate(et,nt):it==Ot}return et==nt}clampDate(et,nt,it){return nt&&this.compareDate(et,nt)<0?nt:it&&this.compareDate(et,it)>0?it:et}}const $t=new o.OlP("mat-date-formats");let mt=(()=>{class Qe{isErrorState(nt,it){return!!(nt&&nt.invalid&&(nt.touched||it&&it.submitted))}static#t=this.\u0275fac=function(it){return new(it||Qe)};static#e=this.\u0275prov=o.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}return Qe})();class st{constructor(et,nt,it,Ot=!1){this._renderer=et,this.element=nt,this.config=it,this._animationForciblyDisabledThroughCss=Ot,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ie=(0,i.i$)({passive:!0,capture:!0});class Ae{constructor(){this._events=new Map,this._delegateEventHandler=et=>{const nt=(0,i.sA)(et);nt&&this._events.get(et.type)?.forEach((it,Ot)=>{(Ot===nt||Ot.contains(nt))&&it.forEach(Fe=>Fe.handleEvent(et))})}}addHandler(et,nt,it,Ot){const Fe=this._events.get(nt);if(Fe){const Cn=Fe.get(it);Cn?Cn.add(Ot):Fe.set(it,new Set([Ot]))}else this._events.set(nt,new Map([[it,new Set([Ot])]])),et.runOutsideAngular(()=>{document.addEventListener(nt,this._delegateEventHandler,ie)})}removeHandler(et,nt,it){const Ot=this._events.get(et);if(!Ot)return;const Fe=Ot.get(nt);Fe&&(Fe.delete(it),0===Fe.size&&Ot.delete(nt),0===Ot.size&&(this._events.delete(et),document.removeEventListener(et,this._delegateEventHandler,ie)))}}const en={enterDuration:225,exitDuration:150},Ve=(0,i.i$)({passive:!0,capture:!0}),jt=["mousedown","touchstart"],ft=["mouseup","mouseleave","touchend","touchcancel"];class Gt{static#t=this._eventManager=new Ae;constructor(et,nt,it,Ot){this._target=et,this._ngZone=nt,this._platform=Ot,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Ot.isBrowser&&(this._containerElement=(0,R.fI)(it))}fadeInRipple(et,nt,it={}){const Ot=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Fe={...en,...it.animation};it.centered&&(et=Ot.left+Ot.width/2,nt=Ot.top+Ot.height/2);const Cn=it.radius||function Ce(Qe,et,nt){const it=Math.max(Math.abs(Qe-nt.left),Math.abs(Qe-nt.right)),Ot=Math.max(Math.abs(et-nt.top),Math.abs(et-nt.bottom));return Math.sqrt(it*it+Ot*Ot)}(et,nt,Ot),de=et-Ot.left,He=nt-Ot.top,X=Fe.enterDuration,_e=document.createElement("div");_e.classList.add("mat-ripple-element"),_e.style.left=de-Cn+"px",_e.style.top=He-Cn+"px",_e.style.height=2*Cn+"px",_e.style.width=2*Cn+"px",null!=it.color&&(_e.style.backgroundColor=it.color),_e.style.transitionDuration=`${X}ms`,this._containerElement.appendChild(_e);const ze=window.getComputedStyle(_e),Tn=ze.transitionDuration,je="none"===ze.transitionProperty||"0s"===Tn||"0s, 0s"===Tn||0===Ot.width&&0===Ot.height,ke=new st(this,_e,it,je);_e.style.transform="scale3d(1, 1, 1)",ke.state=0,it.persistent||(this._mostRecentTransientRipple=ke);let Ne=null;return!je&&(X||Fe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const le=()=>this._finishRippleTransition(ke),cn=()=>this._destroyRipple(ke);_e.addEventListener("transitionend",le),_e.addEventListener("transitioncancel",cn),Ne={onTransitionEnd:le,onTransitionCancel:cn}}),this._activeRipples.set(ke,Ne),(je||!X)&&this._finishRippleTransition(ke),ke}fadeOutRipple(et){if(2===et.state||3===et.state)return;const nt=et.element,it={...en,...et.config.animation};nt.style.transitionDuration=`${it.exitDuration}ms`,nt.style.opacity="0",et.state=2,(et._animationForciblyDisabledThroughCss||!it.exitDuration)&&this._finishRippleTransition(et)}fadeOutAll(){this._getActiveRipples().forEach(et=>et.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(et=>{et.config.persistent||et.fadeOut()})}setupTriggerEvents(et){const nt=(0,R.fI)(et);!this._platform.isBrowser||!nt||nt===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=nt,jt.forEach(it=>{Gt._eventManager.addHandler(this._ngZone,it,nt,this)}))}handleEvent(et){"mousedown"===et.type?this._onMousedown(et):"touchstart"===et.type?this._onTouchStart(et):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ft.forEach(nt=>{this._triggerElement.addEventListener(nt,this,Ve)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(et){0===et.state?this._startFadeOutTransition(et):2===et.state&&this._destroyRipple(et)}_startFadeOutTransition(et){const nt=et===this._mostRecentTransientRipple,{persistent:it}=et.config;et.state=1,!it&&(!nt||!this._isPointerDown)&&et.fadeOut()}_destroyRipple(et){const nt=this._activeRipples.get(et)??null;this._activeRipples.delete(et),this._activeRipples.size||(this._containerRect=null),et===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),et.state=3,null!==nt&&(et.element.removeEventListener("transitionend",nt.onTransitionEnd),et.element.removeEventListener("transitioncancel",nt.onTransitionCancel)),et.element.remove()}_onMousedown(et){const nt=(0,e.X6)(et),it=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!nt&&!it&&(this._isPointerDown=!0,this.fadeInRipple(et.clientX,et.clientY,this._target.rippleConfig))}_onTouchStart(et){if(!this._target.rippleDisabled&&!(0,e.yG)(et)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const nt=et.changedTouches;if(nt)for(let it=0;it<nt.length;it++)this.fadeInRipple(nt[it].clientX,nt[it].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(et=>{!et.config.persistent&&(1===et.state||et.config.terminateOnPointerUp&&0===et.state)&&et.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const et=this._triggerElement;et&&(jt.forEach(nt=>Gt._eventManager.removeHandler(nt,et,this)),this._pointerUpEventsRegistered&&ft.forEach(nt=>et.removeEventListener(nt,this,Ve)))}}const ve=new o.OlP("mat-ripple-global-options");let me=(()=>{class Qe{get disabled(){return this._disabled}set disabled(nt){nt&&this.fadeOutAllNonPersistent(),this._disabled=nt,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(nt){this._trigger=nt,this._setupTriggerEventsIfEnabled()}constructor(nt,it,Ot,Fe,Cn){this._elementRef=nt,this._animationMode=Cn,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Fe||{},this._rippleRenderer=new Gt(this,it,nt,Ot)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(nt,it=0,Ot){return"number"==typeof nt?this._rippleRenderer.fadeInRipple(nt,it,{...this.rippleConfig,...Ot}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...nt})}static#t=this.\u0275fac=function(it){return new(it||Qe)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(i.t4),o.Y36(ve,8),o.Y36(o.QbO,8))};static#e=this.\u0275dir=o.lG2({type:Qe,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(it,Ot){2&it&&o.ekj("mat-ripple-unbounded",Ot.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return Qe})(),De=(()=>{class Qe{static#t=this.\u0275fac=function(it){return new(it||Qe)};static#e=this.\u0275mod=o.oAB({type:Qe});static#n=this.\u0275inj=o.cJS({imports:[q,q]})}return Qe})();const on={capture:!0},oe=["focus","click","mouseenter","touchstart"],$e="mat-ripple-loader-uninitialized",te="mat-ripple-loader-class-name",Se="mat-ripple-loader-centered",Ke="mat-ripple-loader-disabled";let Oe=(()=>{class Qe{constructor(){this._document=(0,o.f3M)(l.K0,{optional:!0}),this._animationMode=(0,o.f3M)(o.QbO,{optional:!0}),this._globalRippleOptions=(0,o.f3M)(ve,{optional:!0}),this._platform=(0,o.f3M)(i.t4),this._ngZone=(0,o.f3M)(o.R0b),this._onInteraction=nt=>{if(!(nt.target instanceof HTMLElement))return;const Ot=nt.target.closest(`[${$e}]`);Ot&&this.createRipple(Ot)},this._ngZone.runOutsideAngular(()=>{for(const nt of oe)this._document?.addEventListener(nt,this._onInteraction,on)})}ngOnDestroy(){for(const nt of oe)this._document?.removeEventListener(nt,this._onInteraction,on)}configureRipple(nt,it){nt.setAttribute($e,""),(it.className||!nt.hasAttribute(te))&&nt.setAttribute(te,it.className||""),it.centered&&nt.setAttribute(Se,""),it.disabled&&nt.setAttribute(Ke,"")}getRipple(nt){return nt.matRipple?nt.matRipple:this.createRipple(nt)}setDisabled(nt,it){const Ot=nt.matRipple;Ot?Ot.disabled=it:it?nt.setAttribute(Ke,""):nt.removeAttribute(Ke)}createRipple(nt){if(!this._document)return;nt.querySelector(".mat-ripple")?.remove();const it=this._document.createElement("span");it.classList.add("mat-ripple",nt.getAttribute(te)),nt.append(it);const Ot=new me(new o.SBq(it),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Ot._isInitialized=!0,Ot.trigger=nt,Ot.centered=nt.hasAttribute(Se),Ot.disabled=nt.hasAttribute(Ke),this.attachRipple(nt,Ot),Ot}attachRipple(nt,it){nt.removeAttribute($e),nt.matRipple=it}static#t=this.\u0275fac=function(it){return new(it||Qe)};static#e=this.\u0275prov=o.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"})}return Qe})()},8034:(Je,Rt,c)=>{"use strict";c.d(Rt,{FA:()=>io,Mq:()=>Cn,hl:()=>dn,nW:()=>je});var o=c(4300),e=c(9594),g=c(8484),x=c(6814),l=c(5879),i=c(2296),R=c(6672),f=c(3680),t=c(8645),y=c(7394),O=c(3019),G=c(2096),U=c(6028),lt=c(9388),ut=c(2831),Ht=c(8180),A=c(7921),xt=c(2181),tt=c(2495),ct=c(6825),_=c(6223),j=c(1043),q=c(4516);const ht=["mat-calendar-body",""];function vt(Ye,Sn){if(1&Ye&&(l.TgZ(0,"tr",3)(1,"td",4),l._uU(2),l.qZA()()),2&Ye){const N=l.oxw();l.xp6(1),l.Udp("padding-top",N._cellPadding)("padding-bottom",N._cellPadding),l.uIk("colspan",N.numCols),l.xp6(1),l.hij(" ",N.label," ")}}function gt(Ye,Sn){if(1&Ye&&(l.TgZ(0,"td",4),l._uU(1),l.qZA()),2&Ye){const N=l.oxw(2);l.Udp("padding-top",N._cellPadding)("padding-bottom",N._cellPadding),l.uIk("colspan",N._firstRowOffset),l.xp6(1),l.hij(" ",N._firstRowOffset>=N.labelMinRequiredCells?N.label:""," ")}}function zt(Ye,Sn){if(1&Ye){const N=l.EpF();l.TgZ(0,"td",8)(1,"button",9),l.NdJ("click",function(kt){const sn=l.CHM(N).$implicit,Gn=l.oxw(2);return l.KtG(Gn._cellClicked(sn,kt))})("focus",function(kt){const sn=l.CHM(N).$implicit,Gn=l.oxw(2);return l.KtG(Gn._emitActiveDateChange(sn,kt))}),l.TgZ(2,"span",10),l._uU(3),l.qZA(),l._UZ(4,"span",11),l.qZA()()}if(2&Ye){const N=Sn.$implicit,Zt=Sn.index,kt=l.oxw().index,fe=l.oxw();l.Udp("width",fe._cellWidth)("padding-top",fe._cellPadding)("padding-bottom",fe._cellPadding),l.uIk("data-mat-row",kt)("data-mat-col",Zt),l.xp6(1),l.ekj("mat-calendar-body-disabled",!N.enabled)("mat-calendar-body-active",fe._isActiveCell(kt,Zt))("mat-calendar-body-range-start",fe._isRangeStart(N.compareValue))("mat-calendar-body-range-end",fe._isRangeEnd(N.compareValue))("mat-calendar-body-in-range",fe._isInRange(N.compareValue))("mat-calendar-body-comparison-bridge-start",fe._isComparisonBridgeStart(N.compareValue,kt,Zt))("mat-calendar-body-comparison-bridge-end",fe._isComparisonBridgeEnd(N.compareValue,kt,Zt))("mat-calendar-body-comparison-start",fe._isComparisonStart(N.compareValue))("mat-calendar-body-comparison-end",fe._isComparisonEnd(N.compareValue))("mat-calendar-body-in-comparison-range",fe._isInComparisonRange(N.compareValue))("mat-calendar-body-preview-start",fe._isPreviewStart(N.compareValue))("mat-calendar-body-preview-end",fe._isPreviewEnd(N.compareValue))("mat-calendar-body-in-preview",fe._isInPreview(N.compareValue)),l.Q6J("ngClass",N.cssClasses)("tabindex",fe._isActiveCell(kt,Zt)?0:-1),l.uIk("aria-label",N.ariaLabel)("aria-disabled",!N.enabled||null)("aria-pressed",fe._isSelected(N.compareValue))("aria-current",fe.todayValue===N.compareValue?"date":null)("aria-describedby",fe._getDescribedby(N.compareValue)),l.xp6(1),l.ekj("mat-calendar-body-selected",fe._isSelected(N.compareValue))("mat-calendar-body-comparison-identical",fe._isComparisonIdentical(N.compareValue))("mat-calendar-body-today",fe.todayValue===N.compareValue),l.xp6(1),l.hij(" ",N.displayValue," ")}}function Ct(Ye,Sn){if(1&Ye&&(l.TgZ(0,"tr",5),l.YNc(1,gt,2,6,"td",6),l.YNc(2,zt,5,48,"td",7),l.qZA()),2&Ye){const N=Sn.$implicit,Zt=Sn.index,kt=l.oxw();l.xp6(1),l.Q6J("ngIf",0===Zt&&kt._firstRowOffset),l.xp6(1),l.Q6J("ngForOf",N)}}function H(Ye,Sn){if(1&Ye&&(l.TgZ(0,"th",5)(1,"span",6),l._uU(2),l.qZA(),l.TgZ(3,"span",7),l._uU(4),l.qZA()()),2&Ye){const N=Sn.$implicit;l.xp6(2),l.Oqu(N.long),l.xp6(2),l.Oqu(N.narrow)}}const J=["*"];function z(Ye,Sn){}function F(Ye,Sn){if(1&Ye){const N=l.EpF();l.TgZ(0,"mat-month-view",5),l.NdJ("activeDateChange",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe.activeDate=kt)})("_userSelection",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._dateSelected(kt))})("dragStarted",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._dragStarted(kt))})("dragEnded",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._dragEnded(kt))}),l.qZA()}if(2&Ye){const N=l.oxw();l.Q6J("activeDate",N.activeDate)("selected",N.selected)("dateFilter",N.dateFilter)("maxDate",N.maxDate)("minDate",N.minDate)("dateClass",N.dateClass)("comparisonStart",N.comparisonStart)("comparisonEnd",N.comparisonEnd)("startDateAccessibleName",N.startDateAccessibleName)("endDateAccessibleName",N.endDateAccessibleName)("activeDrag",N._activeDrag)}}function rt(Ye,Sn){if(1&Ye){const N=l.EpF();l.TgZ(0,"mat-year-view",6),l.NdJ("activeDateChange",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe.activeDate=kt)})("monthSelected",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._monthSelectedInYearView(kt))})("selectedChange",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._goToDateInView(kt,"month"))}),l.qZA()}if(2&Ye){const N=l.oxw();l.Q6J("activeDate",N.activeDate)("selected",N.selected)("dateFilter",N.dateFilter)("maxDate",N.maxDate)("minDate",N.minDate)("dateClass",N.dateClass)}}function V(Ye,Sn){if(1&Ye){const N=l.EpF();l.TgZ(0,"mat-multi-year-view",7),l.NdJ("activeDateChange",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe.activeDate=kt)})("yearSelected",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._yearSelectedInMultiYearView(kt))})("selectedChange",function(kt){l.CHM(N);const fe=l.oxw();return l.KtG(fe._goToDateInView(kt,"year"))}),l.qZA()}if(2&Ye){const N=l.oxw();l.Q6J("activeDate",N.activeDate)("selected",N.selected)("dateFilter",N.dateFilter)("maxDate",N.maxDate)("minDate",N.minDate)("dateClass",N.dateClass)}}function Pt(Ye,Sn){}const $t=["button"];function Lt(Ye,Sn){1&Ye&&(l.O4$(),l.TgZ(0,"svg",3),l._UZ(1,"path",4),l.qZA())}const Jt=[[["","matDatepickerToggleIcon",""]]],Tt=["[matDatepickerToggleIcon]"];let mt=(()=>{class Ye{constructor(){this.changes=new t.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(N,Zt){return`${N} \u2013 ${Zt}`}formatYearRangeLabel(N,Zt){return`${N} to ${Zt}`}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)};static#e=this.\u0275prov=l.Yz7({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}return Ye})();class yt{constructor(Sn,N,Zt,kt,fe={},sn=Sn,Gn){this.value=Sn,this.displayValue=N,this.ariaLabel=Zt,this.enabled=kt,this.cssClasses=fe,this.compareValue=sn,this.rawValue=Gn}}let ee=1;const B=(0,ut.i$)({passive:!1,capture:!0}),At=(0,ut.i$)({passive:!0,capture:!0}),st=(0,ut.i$)({passive:!0});let ie=(()=>{class Ye{ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}constructor(N,Zt){this._elementRef=N,this._ngZone=Zt,this._platform=(0,l.f3M)(ut.t4),this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new l.vpe,this.previewChange=new l.vpe,this.activeDateChange=new l.vpe,this.dragStarted=new l.vpe,this.dragEnded=new l.vpe,this._didDragSinceMouseDown=!1,this._enterHandler=kt=>{if(this._skipNextFocus&&"focus"===kt.type)this._skipNextFocus=!1;else if(kt.target&&this.isRange){const fe=this._getCellFromElement(kt.target);fe&&this._ngZone.run(()=>this.previewChange.emit({value:fe.enabled?fe:null,event:kt}))}},this._touchmoveHandler=kt=>{if(!this.isRange)return;const fe=ft(kt),sn=fe?this._getCellFromElement(fe):null;fe!==kt.target&&(this._didDragSinceMouseDown=!0),en(kt.target)&&kt.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:sn?.enabled?sn:null,event:kt}))},this._leaveHandler=kt=>{null!==this.previewEnd&&this.isRange&&("blur"!==kt.type&&(this._didDragSinceMouseDown=!0),kt.target&&this._getCellFromElement(kt.target)&&(!kt.relatedTarget||!this._getCellFromElement(kt.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:kt})))},this._mousedownHandler=kt=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;const fe=kt.target&&this._getCellFromElement(kt.target);!fe||!this._isInRange(fe.rawValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:fe.rawValue,event:kt})})},this._mouseupHandler=kt=>{if(!this.isRange)return;const fe=en(kt.target);fe?fe.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{const sn=this._getCellFromElement(fe);this.dragEnded.emit({value:sn?.rawValue??null,event:kt})}):this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:kt})})},this._touchendHandler=kt=>{const fe=ft(kt);fe&&this._mouseupHandler({target:fe})},this._id="mat-calendar-body-"+ee++,this._startDateLabelId=`${this._id}-start-date`,this._endDateLabelId=`${this._id}-end-date`,Zt.runOutsideAngular(()=>{const kt=N.nativeElement;kt.addEventListener("touchmove",this._touchmoveHandler,B),kt.addEventListener("mouseenter",this._enterHandler,At),kt.addEventListener("focus",this._enterHandler,At),kt.addEventListener("mouseleave",this._leaveHandler,At),kt.addEventListener("blur",this._leaveHandler,At),kt.addEventListener("mousedown",this._mousedownHandler,st),kt.addEventListener("touchstart",this._mousedownHandler,st),this._platform.isBrowser&&(window.addEventListener("mouseup",this._mouseupHandler),window.addEventListener("touchend",this._touchendHandler))})}_cellClicked(N,Zt){this._didDragSinceMouseDown||N.enabled&&this.selectedValueChange.emit({value:N.value,event:Zt})}_emitActiveDateChange(N,Zt){N.enabled&&this.activeDateChange.emit({value:N.value,event:Zt})}_isSelected(N){return this.startValue===N||this.endValue===N}ngOnChanges(N){const Zt=N.numCols,{rows:kt,numCols:fe}=this;(N.rows||Zt)&&(this._firstRowOffset=kt&&kt.length&&kt[0].length?fe-kt[0].length:0),(N.cellAspectRatio||Zt||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/fe+"%"),(Zt||!this._cellWidth)&&(this._cellWidth=100/fe+"%")}ngOnDestroy(){const N=this._elementRef.nativeElement;N.removeEventListener("touchmove",this._touchmoveHandler,B),N.removeEventListener("mouseenter",this._enterHandler,At),N.removeEventListener("focus",this._enterHandler,At),N.removeEventListener("mouseleave",this._leaveHandler,At),N.removeEventListener("blur",this._leaveHandler,At),N.removeEventListener("mousedown",this._mousedownHandler,st),N.removeEventListener("touchstart",this._mousedownHandler,st),this._platform.isBrowser&&(window.removeEventListener("mouseup",this._mouseupHandler),window.removeEventListener("touchend",this._touchendHandler))}_isActiveCell(N,Zt){let kt=N*this.numCols+Zt;return N&&(kt-=this._firstRowOffset),kt==this.activeCell}_focusActiveCell(N=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,Ht.q)(1)).subscribe(()=>{setTimeout(()=>{const Zt=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Zt&&(N||(this._skipNextFocus=!0),Zt.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(N){return In(N,this.startValue,this.endValue)}_isRangeEnd(N){return Ve(N,this.startValue,this.endValue)}_isInRange(N){return jt(N,this.startValue,this.endValue,this.isRange)}_isComparisonStart(N){return In(N,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(N,Zt,kt){if(!this._isComparisonStart(N)||this._isRangeStart(N)||!this._isInRange(N))return!1;let fe=this.rows[Zt][kt-1];if(!fe){const sn=this.rows[Zt-1];fe=sn&&sn[sn.length-1]}return fe&&!this._isRangeEnd(fe.compareValue)}_isComparisonBridgeEnd(N,Zt,kt){if(!this._isComparisonEnd(N)||this._isRangeEnd(N)||!this._isInRange(N))return!1;let fe=this.rows[Zt][kt+1];if(!fe){const sn=this.rows[Zt+1];fe=sn&&sn[0]}return fe&&!this._isRangeStart(fe.compareValue)}_isComparisonEnd(N){return Ve(N,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(N){return jt(N,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(N){return this.comparisonStart===this.comparisonEnd&&N===this.comparisonStart}_isPreviewStart(N){return In(N,this.previewStart,this.previewEnd)}_isPreviewEnd(N){return Ve(N,this.previewStart,this.previewEnd)}_isInPreview(N){return jt(N,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(N){return this.isRange?this.startValue===N&&this.endValue===N?`${this._startDateLabelId} ${this._endDateLabelId}`:this.startValue===N?this._startDateLabelId:this.endValue===N?this._endDateLabelId:null:null}_getCellFromElement(N){const Zt=en(N);if(Zt){const kt=Zt.getAttribute("data-mat-row"),fe=Zt.getAttribute("data-mat-col");if(kt&&fe)return this.rows[parseInt(kt)][parseInt(fe)]}return null}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.SBq),l.Y36(l.R0b))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[l.TTD],attrs:ht,decls:6,vars:6,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],[1,"mat-calendar-body-hidden-label",3,"id"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(Zt,kt){1&Zt&&(l.YNc(0,vt,3,6,"tr",0),l.YNc(1,Ct,3,2,"tr",1),l.TgZ(2,"label",2),l._uU(3),l.qZA(),l.TgZ(4,"label",2),l._uU(5),l.qZA()),2&Zt&&(l.Q6J("ngIf",kt._firstRowOffset<kt.labelMinRequiredCells),l.xp6(1),l.Q6J("ngForOf",kt.rows),l.xp6(1),l.Q6J("id",kt._startDateLabelId),l.xp6(1),l.hij(" ",kt.startDateAccessibleName,"\n"),l.xp6(1),l.Q6J("id",kt._endDateLabelId),l.xp6(1),l.hij(" ",kt.endDateAccessibleName,"\n"))},dependencies:[x.mk,x.sg,x.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color)}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size);font-weight:var(--mat-datepicker-calendar-body-label-text-weight);color:var(--mat-datepicker-calendar-body-label-text-color)}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color)}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color)}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color);border-color:var(--mat-datepicker-calendar-date-outline-color)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color)}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color)}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color);color:var(--mat-datepicker-calendar-date-selected-state-text-color)}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color)}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color)}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color)}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color)}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color)}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0})}return Ye})();function Ae(Ye){return"TD"===Ye?.nodeName}function en(Ye){let Sn;return Ae(Ye)?Sn=Ye:Ae(Ye.parentNode)?Sn=Ye.parentNode:Ae(Ye.parentNode?.parentNode)&&(Sn=Ye.parentNode.parentNode),null!=Sn?.getAttribute("data-mat-row")?Sn:null}function In(Ye,Sn,N){return null!==N&&Sn!==N&&Ye<N&&Ye===Sn}function Ve(Ye,Sn,N){return null!==Sn&&Sn!==N&&Ye>=Sn&&Ye===N}function jt(Ye,Sn,N,Zt){return Zt&&null!==Sn&&null!==N&&Sn!==N&&Ye>=Sn&&Ye<=N}function ft(Ye){const Sn=Ye.changedTouches[0];return document.elementFromPoint(Sn.clientX,Sn.clientY)}class Gt{constructor(Sn,N){this.start=Sn,this.end=N}}let Ce=(()=>{class Ye{constructor(N,Zt){this.selection=N,this._adapter=Zt,this._selectionChanged=new t.x,this.selectionChanged=this._selectionChanged,this.selection=N}updateSelection(N,Zt){const kt=this.selection;this.selection=N,this._selectionChanged.next({selection:N,source:Zt,oldValue:kt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(N){return this._adapter.isDateInstance(N)&&this._adapter.isValid(N)}static#t=this.\u0275fac=function(Zt){l.$Z()};static#e=this.\u0275prov=l.Yz7({token:Ye,factory:Ye.\u0275fac})}return Ye})(),ve=(()=>{class Ye extends Ce{constructor(N){super(null,N)}add(N){super.updateSelection(N,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const N=new Ye(this._adapter);return N.updateSelection(this.selection,this),N}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.LFG(f._A))};static#e=this.\u0275prov=l.Yz7({token:Ye,factory:Ye.\u0275fac})}return Ye})();const tn={provide:Ce,deps:[[new l.FiY,new l.tp0,Ce],f._A],useFactory:function De(Ye,Sn){return Ye||new ve(Sn)}},rn=new l.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let qt=(()=>{class Ye{get activeDate(){return this._activeDate}set activeDate(N){const Zt=this._activeDate,kt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(kt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Zt,this._activeDate)||this._init()}get selected(){return this._selected}set selected(N){this._selected=N instanceof Gt?N:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(N){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get maxDate(){return this._maxDate}set maxDate(N){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}constructor(N,Zt,kt,fe,sn){this._changeDetectorRef=N,this._dateFormats=Zt,this._dateAdapter=kt,this._dir=fe,this._rangeStrategy=sn,this._rerenderSubscription=y.w0.EMPTY,this.activeDrag=null,this.selectedChange=new l.vpe,this._userSelection=new l.vpe,this.dragStarted=new l.vpe,this.dragEnded=new l.vpe,this.activeDateChange=new l.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,A.O)(null)).subscribe(()=>this._init())}ngOnChanges(N){const Zt=N.comparisonStart||N.comparisonEnd;Zt&&!Zt.firstChange&&this._setRanges(this.selected),N.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(N){const Zt=N.value,kt=this._getDateFromDayOfMonth(Zt);let fe,sn;this._selected instanceof Gt?(fe=this._getDateInCurrentMonth(this._selected.start),sn=this._getDateInCurrentMonth(this._selected.end)):fe=sn=this._getDateInCurrentMonth(this._selected),(fe!==Zt||sn!==Zt)&&this.selectedChange.emit(kt),this._userSelection.emit({value:kt,event:N.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(N){const kt=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(N.value),this._dateAdapter.compareDate(kt,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(N){const Zt=this._activeDate,kt=this._isRtl();switch(N.keyCode){case U.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,kt?1:-1);break;case U.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,kt?-1:1);break;case U.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case U.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case U.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case U.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case U.Ku:this.activeDate=N.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case U.VM:this.activeDate=N.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case U.K5:case U.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&N.preventDefault());case U.hY:return void(null!=this._previewEnd&&!(0,U.Vb)(N)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:N}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:N})),N.preventDefault(),N.stopPropagation()));default:return}this._dateAdapter.compareDate(Zt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),N.preventDefault()}_handleCalendarBodyKeyup(N){(N.keyCode===U.L_||N.keyCode===U.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:N}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let N=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(N)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(N){this._matCalendarBody._focusActiveCell(N)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:N,value:Zt}){if(this._rangeStrategy){const kt=Zt?Zt.rawValue:null,fe=this._rangeStrategy.createPreview(kt,this.selected,N);if(this._previewStart=this._getCellCompareValue(fe.start),this._previewEnd=this._getCellCompareValue(fe.end),this.activeDrag&&kt){const sn=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,kt,N);sn&&(this._previewStart=this._getCellCompareValue(sn.start),this._previewEnd=this._getCellCompareValue(sn.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(N){if(this.activeDrag)if(N.value){const Zt=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,N.value,N.event);this.dragEnded.emit({value:Zt??null,event:N.event})}else this.dragEnded.emit({value:null,event:N.event})}_getDateFromDayOfMonth(N){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),N)}_initWeekdays(){const N=this._dateAdapter.getFirstDayOfWeek(),Zt=this._dateAdapter.getDayOfWeekNames("narrow");let fe=this._dateAdapter.getDayOfWeekNames("long").map((sn,Gn)=>({long:sn,narrow:Zt[Gn]}));this._weekdays=fe.slice(N).concat(fe.slice(0,N))}_createWeekCells(){const N=this._dateAdapter.getNumDaysInMonth(this.activeDate),Zt=this._dateAdapter.getDateNames();this._weeks=[[]];for(let kt=0,fe=this._firstWeekOffset;kt<N;kt++,fe++){7==fe&&(this._weeks.push([]),fe=0);const sn=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),kt+1),Gn=this._shouldEnableDate(sn),Do=this._dateAdapter.format(sn,this._dateFormats.display.dateA11yLabel),Fo=this.dateClass?this.dateClass(sn,"month"):void 0;this._weeks[this._weeks.length-1].push(new yt(kt+1,Zt[kt],Do,Gn,Fo,this._getCellCompareValue(sn),sn))}}_shouldEnableDate(N){return!!N&&(!this.minDate||this._dateAdapter.compareDate(N,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(N,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(N))}_getDateInCurrentMonth(N){return N&&this._hasSameMonthAndYear(N,this.activeDate)?this._dateAdapter.getDate(N):null}_hasSameMonthAndYear(N,Zt){return!(!N||!Zt||this._dateAdapter.getMonth(N)!=this._dateAdapter.getMonth(Zt)||this._dateAdapter.getYear(N)!=this._dateAdapter.getYear(Zt))}_getCellCompareValue(N){if(N){const Zt=this._dateAdapter.getYear(N),kt=this._dateAdapter.getMonth(N),fe=this._dateAdapter.getDate(N);return new Date(Zt,kt,fe).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(N){N instanceof Gt?(this._rangeStart=this._getCellCompareValue(N.start),this._rangeEnd=this._getCellCompareValue(N.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(N),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(N){return!this.dateFilter||this.dateFilter(N)}_clearPreview(){this._previewStart=this._previewEnd=null}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.sBO),l.Y36(f.sG,8),l.Y36(f._A,8),l.Y36(lt.Is,8),l.Y36(rn,8))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-month-view"]],viewQuery:function(Zt,kt){if(1&Zt&&l.Gf(ie,5),2&Zt){let fe;l.iGM(fe=l.CRH())&&(kt._matCalendarBody=fe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[l.TTD],decls:7,vars:15,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName","selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(Zt,kt){1&Zt&&(l.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),l.YNc(3,H,5,2,"th",2),l.qZA(),l.TgZ(4,"tr"),l._UZ(5,"th",3),l.qZA()(),l.TgZ(6,"tbody",4),l.NdJ("selectedValueChange",function(sn){return kt._dateSelected(sn)})("activeDateChange",function(sn){return kt._updateActiveDate(sn)})("previewChange",function(sn){return kt._previewChanged(sn)})("dragStarted",function(sn){return kt.dragStarted.emit(sn)})("dragEnded",function(sn){return kt._dragEnded(sn)})("keyup",function(sn){return kt._handleCalendarBodyKeyup(sn)})("keydown",function(sn){return kt._handleCalendarBodyKeydown(sn)}),l.qZA()()),2&Zt&&(l.xp6(3),l.Q6J("ngForOf",kt._weekdays),l.xp6(3),l.Q6J("label",kt._monthLabel)("rows",kt._weeks)("todayValue",kt._todayDate)("startValue",kt._rangeStart)("endValue",kt._rangeEnd)("comparisonStart",kt._comparisonRangeStart)("comparisonEnd",kt._comparisonRangeEnd)("previewStart",kt._previewStart)("previewEnd",kt._previewEnd)("isRange",kt._isRange)("labelMinRequiredCells",3)("activeCell",kt._dateAdapter.getDate(kt.activeDate)-1)("startDateAccessibleName",kt.startDateAccessibleName)("endDateAccessibleName",kt.endDateAccessibleName))},dependencies:[x.sg,ie],encapsulation:2,changeDetection:0})}return Ye})();const Te=24;let _n=(()=>{class Ye{get activeDate(){return this._activeDate}set activeDate(N){let Zt=this._activeDate;const kt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(kt,this.minDate,this.maxDate),ce(this._dateAdapter,Zt,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(N){this._selected=N instanceof Gt?N:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N)),this._setSelectedYear(N)}get minDate(){return this._minDate}set minDate(N){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get maxDate(){return this._maxDate}set maxDate(N){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}constructor(N,Zt,kt){this._changeDetectorRef=N,this._dateAdapter=Zt,this._dir=kt,this._rerenderSubscription=y.w0.EMPTY,this.selectedChange=new l.vpe,this.yearSelected=new l.vpe,this.activeDateChange=new l.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,A.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Zt=this._dateAdapter.getYear(this._activeDate)-ye(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let kt=0,fe=[];kt<Te;kt++)fe.push(Zt+kt),4==fe.length&&(this._years.push(fe.map(sn=>this._createCellForYear(sn))),fe=[]);this._changeDetectorRef.markForCheck()}_yearSelected(N){const Zt=N.value,kt=this._dateAdapter.createDate(Zt,0,1),fe=this._getDateFromYear(Zt);this.yearSelected.emit(kt),this.selectedChange.emit(fe)}_updateActiveDate(N){const kt=this._activeDate;this.activeDate=this._getDateFromYear(N.value),this._dateAdapter.compareDate(kt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(N){const Zt=this._activeDate,kt=this._isRtl();switch(N.keyCode){case U.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,kt?1:-1);break;case U.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,kt?-1:1);break;case U.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case U.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case U.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ye(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case U.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Te-ye(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case U.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,N.altKey?10*-Te:-Te);break;case U.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,N.altKey?10*Te:Te);break;case U.K5:case U.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Zt,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),N.preventDefault()}_handleCalendarBodyKeyup(N){(N.keyCode===U.L_||N.keyCode===U.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:N}),this._selectionKeyPressed=!1)}_getActiveCell(){return ye(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(N){const Zt=this._dateAdapter.getMonth(this.activeDate),kt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(N,Zt,1));return this._dateAdapter.createDate(N,Zt,Math.min(this._dateAdapter.getDate(this.activeDate),kt))}_createCellForYear(N){const Zt=this._dateAdapter.createDate(N,0,1),kt=this._dateAdapter.getYearName(Zt),fe=this.dateClass?this.dateClass(Zt,"multi-year"):void 0;return new yt(N,kt,kt,this._shouldEnableYear(N),fe)}_shouldEnableYear(N){if(null==N||this.maxDate&&N>this._dateAdapter.getYear(this.maxDate)||this.minDate&&N<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let kt=this._dateAdapter.createDate(N,0,1);this._dateAdapter.getYear(kt)==N;kt=this._dateAdapter.addCalendarDays(kt,1))if(this.dateFilter(kt))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(N){if(this._selectedYear=null,N instanceof Gt){const Zt=N.start||N.end;Zt&&(this._selectedYear=this._dateAdapter.getYear(Zt))}else N&&(this._selectedYear=this._dateAdapter.getYear(N))}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.sBO),l.Y36(f._A,8),l.Y36(lt.Is,8))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-multi-year-view"]],viewQuery:function(Zt,kt){if(1&Zt&&l.Gf(ie,5),2&Zt){let fe;l.iGM(fe=l.CRH())&&(kt._matCalendarBody=fe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(Zt,kt){1&Zt&&(l.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),l._UZ(3,"th",2),l.qZA()(),l.TgZ(4,"tbody",3),l.NdJ("selectedValueChange",function(sn){return kt._yearSelected(sn)})("activeDateChange",function(sn){return kt._updateActiveDate(sn)})("keyup",function(sn){return kt._handleCalendarBodyKeyup(sn)})("keydown",function(sn){return kt._handleCalendarBodyKeydown(sn)}),l.qZA()()),2&Zt&&(l.xp6(4),l.Q6J("rows",kt._years)("todayValue",kt._todayYear)("startValue",kt._selectedYear)("endValue",kt._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",kt._getActiveCell()))},dependencies:[ie],encapsulation:2,changeDetection:0})}return Ye})();function ce(Ye,Sn,N,Zt,kt){const fe=Ye.getYear(Sn),sn=Ye.getYear(N),Gn=Xt(Ye,Zt,kt);return Math.floor((fe-Gn)/Te)===Math.floor((sn-Gn)/Te)}function ye(Ye,Sn,N,Zt){return function on(Ye,Sn){return(Ye%Sn+Sn)%Sn}(Ye.getYear(Sn)-Xt(Ye,N,Zt),Te)}function Xt(Ye,Sn,N){let Zt=0;return N?Zt=Ye.getYear(N)-Te+1:Sn&&(Zt=Ye.getYear(Sn)),Zt}let oe=(()=>{class Ye{get activeDate(){return this._activeDate}set activeDate(N){let Zt=this._activeDate;const kt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(kt,this.minDate,this.maxDate),this._dateAdapter.getYear(Zt)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(N){this._selected=N instanceof Gt?N:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N)),this._setSelectedMonth(N)}get minDate(){return this._minDate}set minDate(N){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get maxDate(){return this._maxDate}set maxDate(N){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}constructor(N,Zt,kt,fe){this._changeDetectorRef=N,this._dateFormats=Zt,this._dateAdapter=kt,this._dir=fe,this._rerenderSubscription=y.w0.EMPTY,this.selectedChange=new l.vpe,this.monthSelected=new l.vpe,this.activeDateChange=new l.vpe,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,A.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(N){const Zt=N.value,kt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Zt,1);this.monthSelected.emit(kt);const fe=this._getDateFromMonth(Zt);this.selectedChange.emit(fe)}_updateActiveDate(N){const kt=this._activeDate;this.activeDate=this._getDateFromMonth(N.value),this._dateAdapter.compareDate(kt,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(N){const Zt=this._activeDate,kt=this._isRtl();switch(N.keyCode){case U.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,kt?1:-1);break;case U.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,kt?-1:1);break;case U.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case U.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case U.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case U.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case U.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,N.altKey?-10:-1);break;case U.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,N.altKey?10:1);break;case U.K5:case U.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Zt,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),N.preventDefault()}_handleCalendarBodyKeyup(N){(N.keyCode===U.L_||N.keyCode===U.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:N}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let N=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Zt=>Zt.map(kt=>this._createCellForMonth(kt,N[kt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(N){return N&&this._dateAdapter.getYear(N)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(N):null}_getDateFromMonth(N){const Zt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),N,1),kt=this._dateAdapter.getNumDaysInMonth(Zt);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),N,Math.min(this._dateAdapter.getDate(this.activeDate),kt))}_createCellForMonth(N,Zt){const kt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),N,1),fe=this._dateAdapter.format(kt,this._dateFormats.display.monthYearA11yLabel),sn=this.dateClass?this.dateClass(kt,"year"):void 0;return new yt(N,Zt.toLocaleUpperCase(),fe,this._shouldEnableMonth(N),sn)}_shouldEnableMonth(N){const Zt=this._dateAdapter.getYear(this.activeDate);if(null==N||this._isYearAndMonthAfterMaxDate(Zt,N)||this._isYearAndMonthBeforeMinDate(Zt,N))return!1;if(!this.dateFilter)return!0;for(let fe=this._dateAdapter.createDate(Zt,N,1);this._dateAdapter.getMonth(fe)==N;fe=this._dateAdapter.addCalendarDays(fe,1))if(this.dateFilter(fe))return!0;return!1}_isYearAndMonthAfterMaxDate(N,Zt){if(this.maxDate){const kt=this._dateAdapter.getYear(this.maxDate),fe=this._dateAdapter.getMonth(this.maxDate);return N>kt||N===kt&&Zt>fe}return!1}_isYearAndMonthBeforeMinDate(N,Zt){if(this.minDate){const kt=this._dateAdapter.getYear(this.minDate),fe=this._dateAdapter.getMonth(this.minDate);return N<kt||N===kt&&Zt<fe}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(N){this._selectedMonth=N instanceof Gt?this._getMonthInCurrentYear(N.start)||this._getMonthInCurrentYear(N.end):this._getMonthInCurrentYear(N)}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.sBO),l.Y36(f.sG,8),l.Y36(f._A,8),l.Y36(lt.Is,8))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-year-view"]],viewQuery:function(Zt,kt){if(1&Zt&&l.Gf(ie,5),2&Zt){let fe;l.iGM(fe=l.CRH())&&(kt._matCalendarBody=fe.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(Zt,kt){1&Zt&&(l.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),l._UZ(3,"th",2),l.qZA()(),l.TgZ(4,"tbody",3),l.NdJ("selectedValueChange",function(sn){return kt._monthSelected(sn)})("activeDateChange",function(sn){return kt._updateActiveDate(sn)})("keyup",function(sn){return kt._handleCalendarBodyKeyup(sn)})("keydown",function(sn){return kt._handleCalendarBodyKeydown(sn)}),l.qZA()()),2&Zt&&(l.xp6(4),l.Q6J("label",kt._yearLabel)("rows",kt._months)("todayValue",kt._todayMonth)("startValue",kt._selectedMonth)("endValue",kt._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",kt._dateAdapter.getMonth(kt.activeDate)))},dependencies:[ie],encapsulation:2,changeDetection:0})}return Ye})(),$e=1,te=(()=>{class Ye{constructor(N,Zt,kt,fe,sn){this._intl=N,this.calendar=Zt,this._dateAdapter=kt,this._dateFormats=fe,this._id="mat-calendar-header-"+$e++,this._periodButtonLabelId=`${this._id}-period-label`,this.calendar.stateChanges.subscribe(()=>sn.markForCheck())}get periodButtonText(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return"month"==this.calendar.currentView?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():"year"==this.calendar.currentView?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-Te)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:Te)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(N,Zt){return"month"==this.calendar.currentView?this._dateAdapter.getYear(N)==this._dateAdapter.getYear(Zt)&&this._dateAdapter.getMonth(N)==this._dateAdapter.getMonth(Zt):"year"==this.calendar.currentView?this._dateAdapter.getYear(N)==this._dateAdapter.getYear(Zt):ce(this._dateAdapter,N,Zt,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){const Zt=this._dateAdapter.getYear(this.calendar.activeDate)-ye(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),kt=Zt+Te-1;return[this._dateAdapter.getYearName(this._dateAdapter.createDate(Zt,0,1)),this._dateAdapter.getYearName(this._dateAdapter.createDate(kt,0,1))]}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(mt),l.Y36((0,l.Gpc)(()=>Se)),l.Y36(f._A,8),l.Y36(f.sG,8),l.Y36(l.sBO))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:J,decls:13,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"],[1,"mat-calendar-hidden-label",3,"id"]],template:function(Zt,kt){1&Zt&&(l.F$t(),l.TgZ(0,"div",0)(1,"div",1)(2,"button",2),l.NdJ("click",function(){return kt.currentPeriodClicked()}),l.TgZ(3,"span",3),l._uU(4),l.qZA(),l.O4$(),l.TgZ(5,"svg",4),l._UZ(6,"polygon",5),l.qZA()(),l.kcU(),l._UZ(7,"div",6),l.Hsn(8),l.TgZ(9,"button",7),l.NdJ("click",function(){return kt.previousClicked()}),l.qZA(),l.TgZ(10,"button",8),l.NdJ("click",function(){return kt.nextClicked()}),l.qZA()()(),l.TgZ(11,"label",9),l._uU(12),l.qZA()),2&Zt&&(l.xp6(2),l.uIk("aria-label",kt.periodButtonLabel)("aria-describedby",kt._periodButtonLabelId),l.xp6(2),l.Oqu(kt.periodButtonText),l.xp6(1),l.ekj("mat-calendar-invert","month"!==kt.calendar.currentView),l.xp6(4),l.Q6J("disabled",!kt.previousEnabled()),l.uIk("aria-label",kt.prevButtonLabel),l.xp6(1),l.Q6J("disabled",!kt.nextEnabled()),l.uIk("aria-label",kt.nextButtonLabel),l.xp6(1),l.Q6J("id",kt._periodButtonLabelId),l.xp6(1),l.Oqu(kt.periodButtonDescription))},dependencies:[i.lW,i.RK],encapsulation:2,changeDetection:0})}return Ye})(),Se=(()=>{class Ye{get startAt(){return this._startAt}set startAt(N){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get selected(){return this._selected}set selected(N){this._selected=N instanceof Gt?N:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get minDate(){return this._minDate}set minDate(N){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get maxDate(){return this._maxDate}set maxDate(N){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get activeDate(){return this._clampedActiveDate}set activeDate(N){this._clampedActiveDate=this._dateAdapter.clampDate(N,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(N){const Zt=this._currentView!==N?N:null;this._currentView=N,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Zt&&this.viewChanged.emit(Zt)}constructor(N,Zt,kt,fe){this._dateAdapter=Zt,this._dateFormats=kt,this._changeDetectorRef=fe,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new l.vpe,this.yearSelected=new l.vpe,this.monthSelected=new l.vpe,this.viewChanged=new l.vpe(!0),this._userSelection=new l.vpe,this._userDragDrop=new l.vpe,this._activeDrag=null,this.stateChanges=new t.x,this._intlChanges=N.changes.subscribe(()=>{fe.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new g.C5(this.headerComponent||te),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(N){const Zt=N.minDate&&!this._dateAdapter.sameDate(N.minDate.previousValue,N.minDate.currentValue)?N.minDate:void 0,kt=N.maxDate&&!this._dateAdapter.sameDate(N.maxDate.previousValue,N.maxDate.currentValue)?N.maxDate:void 0,fe=Zt||kt||N.dateFilter;if(fe&&!fe.firstChange){const sn=this._getCurrentViewComponent();sn&&(this._changeDetectorRef.detectChanges(),sn._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(N){const Zt=N.value;(this.selected instanceof Gt||Zt&&!this._dateAdapter.sameDate(Zt,this.selected))&&this.selectedChange.emit(Zt),this._userSelection.emit(N)}_yearSelectedInMultiYearView(N){this.yearSelected.emit(N)}_monthSelectedInYearView(N){this.monthSelected.emit(N)}_goToDateInView(N,Zt){this.activeDate=N,this.currentView=Zt}_dragStarted(N){this._activeDrag=N}_dragEnded(N){this._activeDrag&&(N.value&&this._userDragDrop.emit(N),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(mt),l.Y36(f._A,8),l.Y36(f.sG,8),l.Y36(l.sBO))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-calendar"]],viewQuery:function(Zt,kt){if(1&Zt&&(l.Gf(qt,5),l.Gf(oe,5),l.Gf(_n,5)),2&Zt){let fe;l.iGM(fe=l.CRH())&&(kt.monthView=fe.first),l.iGM(fe=l.CRH())&&(kt.yearView=fe.first),l.iGM(fe=l.CRH())&&(kt.multiYearView=fe.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[l._Bn([tn]),l.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag","activeDateChange","_userSelection","dragStarted","dragEnded"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(Zt,kt){1&Zt&&(l.YNc(0,z,0,0,"ng-template",0),l.TgZ(1,"div",1),l.YNc(2,F,1,11,"mat-month-view",2),l.YNc(3,rt,1,6,"mat-year-view",3),l.YNc(4,V,1,6,"mat-multi-year-view",4),l.qZA()),2&Zt&&(l.Q6J("cdkPortalOutlet",kt._calendarHeaderPortal),l.xp6(1),l.Q6J("ngSwitch",kt.currentView),l.xp6(1),l.Q6J("ngSwitchCase","month"),l.xp6(1),l.Q6J("ngSwitchCase","year"),l.xp6(1),l.Q6J("ngSwitchCase","multi-year"))},dependencies:[x.RF,x.n9,o.kH,g.Pl,qt,oe,_n],styles:['.mat-calendar{display:block;font-family:var(--mat-datepicker-calendar-text-font);font-size:var(--mat-datepicker-calendar-text-size)}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size);font-weight:var(--mat-datepicker-calendar-period-button-text-weight)}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color)}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-content .mat-calendar-next-button{color:var(--mat-datepicker-calendar-navigation-button-icon-color)}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color);font-size:var(--mat-datepicker-calendar-header-text-size);font-weight:var(--mat-datepicker-calendar-header-text-weight)}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}.mat-calendar-hidden-label{display:none}'],encapsulation:2,changeDetection:0})}return Ye})();const Ke={transformPanel:(0,ct.X$)("transformPanel",[(0,ct.eR)("void => enter-dropdown",(0,ct.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ct.F4)([(0,ct.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ct.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ct.eR)("void => enter-dialog",(0,ct.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ct.F4)([(0,ct.oB)({opacity:0,transform:"scale(0.7)"}),(0,ct.oB)({transform:"none",opacity:1})]))),(0,ct.eR)("* => void",(0,ct.jt)("100ms linear",(0,ct.oB)({opacity:0})))]),fadeInCalendar:(0,ct.X$)("fadeInCalendar",[(0,ct.SB)("void",(0,ct.oB)({opacity:0})),(0,ct.SB)("enter",(0,ct.oB)({opacity:1})),(0,ct.eR)("void => *",(0,ct.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Oe=0;const Qe=new l.OlP("mat-datepicker-scroll-strategy"),nt={provide:Qe,deps:[e.aV],useFactory:function et(Ye){return()=>Ye.scrollStrategies.reposition()}},it=(0,f.pj)(class{constructor(Ye){this._elementRef=Ye}});let Ot=(()=>{class Ye extends it{constructor(N,Zt,kt,fe,sn,Gn){super(N),this._changeDetectorRef=Zt,this._globalModel=kt,this._dateAdapter=fe,this._rangeSelectionStrategy=sn,this._subscriptions=new y.w0,this._animationDone=new t.x,this._isAnimating=!1,this._actionsPortal=null,this._closeButtonText=Gn.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(N){const Zt=this._model.selection,kt=N.value,fe=Zt instanceof Gt;if(fe&&this._rangeSelectionStrategy){const sn=this._rangeSelectionStrategy.selectionFinished(kt,Zt,N.event);this._model.updateSelection(sn,this)}else kt&&(fe||!this._dateAdapter.sameDate(kt,Zt))&&this._model.add(kt);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(N){this._model.updateSelection(N.value,this)}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_handleAnimationEvent(N){this._isAnimating="start"===N.phaseName,this._isAnimating||this._animationDone.next()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(N,Zt){this._model=N?this._globalModel.clone():this._globalModel,this._actionsPortal=N,Zt&&this._changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(Ce),l.Y36(f._A),l.Y36(rn,8),l.Y36(mt))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-datepicker-content"]],viewQuery:function(Zt,kt){if(1&Zt&&l.Gf(Se,5),2&Zt){let fe;l.iGM(fe=l.CRH())&&(kt._calendar=fe.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(Zt,kt){1&Zt&&l.WFA("@transformPanel.start",function(sn){return kt._handleAnimationEvent(sn)})("@transformPanel.done",function(sn){return kt._handleAnimationEvent(sn)}),2&Zt&&(l.d8E("@transformPanel",kt._animationState),l.ekj("mat-datepicker-content-touch",kt.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[l.qOj],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(Zt,kt){if(1&Zt&&(l.TgZ(0,"div",0)(1,"mat-calendar",1),l.NdJ("yearSelected",function(sn){return kt.datepicker._selectYear(sn)})("monthSelected",function(sn){return kt.datepicker._selectMonth(sn)})("viewChanged",function(sn){return kt.datepicker._viewChanged(sn)})("_userSelection",function(sn){return kt._handleUserSelection(sn)})("_userDragDrop",function(sn){return kt._handleUserDragDrop(sn)}),l.qZA(),l.YNc(2,Pt,0,0,"ng-template",2),l.TgZ(3,"button",3),l.NdJ("focus",function(){return kt._closeButtonFocused=!0})("blur",function(){return kt._closeButtonFocused=!1})("click",function(){return kt.datepicker.close()}),l._uU(4),l.qZA()()),2&Zt){let fe;l.ekj("mat-datepicker-content-container-with-custom-header",kt.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",kt._actionsPortal),l.uIk("aria-modal",!0)("aria-labelledby",null!==(fe=kt._dialogLabelId)&&void 0!==fe?fe:void 0),l.xp6(1),l.Q6J("id",kt.datepicker.id)("ngClass",kt.datepicker.panelClass)("startAt",kt.datepicker.startAt)("startView",kt.datepicker.startView)("minDate",kt.datepicker._getMinDate())("maxDate",kt.datepicker._getMaxDate())("dateFilter",kt.datepicker._getDateFilter())("headerComponent",kt.datepicker.calendarHeaderComponent)("selected",kt._getSelected())("dateClass",kt.datepicker.dateClass)("comparisonStart",kt.comparisonStart)("comparisonEnd",kt.comparisonEnd)("@fadeInCalendar","enter")("startDateAccessibleName",kt.startDateAccessibleName)("endDateAccessibleName",kt.endDateAccessibleName),l.xp6(1),l.Q6J("cdkPortalOutlet",kt._actionsPortal),l.xp6(1),l.ekj("cdk-visually-hidden",!kt._closeButtonFocused),l.Q6J("color",kt.color||"primary"),l.xp6(1),l.Oqu(kt._closeButtonText)}},dependencies:[x.mk,i.lW,o.mK,g.Pl,Se],styles:[".mat-datepicker-content{box-shadow:0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12);display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color);color:var(--mat-datepicker-calendar-container-text-color)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{box-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[Ke.transformPanel,Ke.fadeInCalendar]},changeDetection:0})}return Ye})(),Fe=(()=>{class Ye{get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(N){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(N){this._color=N}get touchUi(){return this._touchUi}set touchUi(N){this._touchUi=(0,tt.Ig)(N)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(N){const Zt=(0,tt.Ig)(N);Zt!==this._disabled&&(this._disabled=Zt,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(N){this._restoreFocus=(0,tt.Ig)(N)}get panelClass(){return this._panelClass}set panelClass(N){this._panelClass=(0,tt.du)(N)}get opened(){return this._opened}set opened(N){(0,tt.Ig)(N)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}constructor(N,Zt,kt,fe,sn,Gn,Do){this._overlay=N,this._ngZone=Zt,this._viewContainerRef=kt,this._dateAdapter=sn,this._dir=Gn,this._model=Do,this._inputStateChanges=y.w0.EMPTY,this._document=(0,l.f3M)(x.K0),this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new l.vpe,this.monthSelected=new l.vpe,this.viewChanged=new l.vpe(!0),this.openedStream=new l.vpe,this.closedStream=new l.vpe,this._opened=!1,this.id="mat-datepicker-"+Oe++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new t.x,this._scrollStrategy=fe}ngOnChanges(N){const Zt=N.xPosition||N.yPosition;if(Zt&&!Zt.firstChange&&this._overlayRef){const kt=this._overlayRef.getConfig().positionStrategy;kt instanceof e._G&&(this._setConnectedPositions(kt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(N){this._model.add(N)}_selectYear(N){this.yearSelected.emit(N)}_selectMonth(N){this.monthSelected.emit(N)}_viewChanged(N){this.viewChanged.emit(N)}registerInput(N){return this._inputStateChanges.unsubscribe(),this.datepickerInput=N,this._inputStateChanges=N.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(N){this._actionsPortal=N,this._componentRef?.instance._assignActions(N,!0)}removeActions(N){N===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this._focusedElementBeforeOpen=(0,ut.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;const N=this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus,Zt=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){const{instance:kt,location:fe}=this._componentRef;kt._startExitAnimation(),kt._animationDone.pipe((0,Ht.q)(1)).subscribe(()=>{const sn=this._document.activeElement;N&&(!sn||sn===this._document.activeElement||fe.nativeElement.contains(sn))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()})}N?setTimeout(Zt):Zt()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(N){N.datepicker=this,N.color=this.color,N._dialogLabelId=this.datepickerInput.getOverlayLabelId(),N._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const N=this.touchUi,Zt=new g.C5(Ot,this._viewContainerRef),kt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:N?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[N?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:N?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(N?"dialog":"popup")}));this._getCloseStream(kt).subscribe(fe=>{fe&&fe.preventDefault(),this.close()}),kt.keydownEvents().subscribe(fe=>{const sn=fe.keyCode;(sn===U.LH||sn===U.JH||sn===U.oh||sn===U.SV||sn===U.Ku||sn===U.VM)&&fe.preventDefault()}),this._componentRef=kt.attach(Zt),this._forwardContentValues(this._componentRef.instance),N||this._ngZone.onStable.pipe((0,Ht.q)(1)).subscribe(()=>kt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const N=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(N)}_setConnectedPositions(N){const Zt="end"===this.xPosition?"end":"start",kt="start"===Zt?"end":"start",fe="above"===this.yPosition?"bottom":"top",sn="top"===fe?"bottom":"top";return N.withPositions([{originX:Zt,originY:sn,overlayX:Zt,overlayY:fe},{originX:Zt,originY:fe,overlayX:Zt,overlayY:sn},{originX:kt,originY:sn,overlayX:kt,overlayY:fe},{originX:kt,originY:fe,overlayX:kt,overlayY:sn}])}_getCloseStream(N){const Zt=["ctrlKey","shiftKey","metaKey"];return(0,O.T)(N.backdropClick(),N.detachments(),N.keydownEvents().pipe((0,xt.h)(kt=>kt.keyCode===U.hY&&!(0,U.Vb)(kt)||this.datepickerInput&&(0,U.Vb)(kt,"altKey")&&kt.keyCode===U.LH&&Zt.every(fe=>!(0,U.Vb)(kt,fe)))))}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(e.aV),l.Y36(l.R0b),l.Y36(l.s_b),l.Y36(Qe),l.Y36(f._A,8),l.Y36(lt.Is,8),l.Y36(Ce))};static#e=this.\u0275dir=l.lG2({type:Ye,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[l.TTD]})}return Ye})(),Cn=(()=>{class Ye extends Fe{static#t=this.\u0275fac=function(){let N;return function(kt){return(N||(N=l.n5z(Ye)))(kt||Ye)}}();static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[l._Bn([tn,{provide:Fe,useExisting:Ye}]),l.qOj],decls:0,vars:0,template:function(Zt,kt){},encapsulation:2,changeDetection:0})}return Ye})();class de{constructor(Sn,N){this.target=Sn,this.targetElement=N,this.value=this.target.value}}let He=(()=>{class Ye{get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(N){this._assignValueProgrammatically(N)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(N){const Zt=(0,tt.Ig)(N),kt=this._elementRef.nativeElement;this._disabled!==Zt&&(this._disabled=Zt,this.stateChanges.next(void 0)),Zt&&this._isInitialized&&kt.blur&&kt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(N){this._model=N,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Zt=>{if(this._shouldHandleChangeEvent(Zt)){const kt=this._getValueFromModel(Zt.selection);this._lastValueValid=this._isValidValue(kt),this._cvaOnChange(kt),this._onTouched(),this._formatValue(kt),this.dateInput.emit(new de(this,this._elementRef.nativeElement)),this.dateChange.emit(new de(this,this._elementRef.nativeElement))}})}constructor(N,Zt,kt){this._elementRef=N,this._dateAdapter=Zt,this._dateFormats=kt,this.dateChange=new l.vpe,this.dateInput=new l.vpe,this.stateChanges=new t.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=y.w0.EMPTY,this._localeSubscription=y.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=fe=>{const sn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe.value));return!sn||this._matchesFilter(sn)?null:{matDatepickerFilter:!0}},this._minValidator=fe=>{const sn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe.value)),Gn=this._getMinDate();return!Gn||!sn||this._dateAdapter.compareDate(Gn,sn)<=0?null:{matDatepickerMin:{min:Gn,actual:sn}}},this._maxValidator=fe=>{const sn=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(fe.value)),Gn=this._getMaxDate();return!Gn||!sn||this._dateAdapter.compareDate(Gn,sn)>=0?null:{matDatepickerMax:{max:Gn,actual:sn}}},this._lastValueValid=!1,this._localeSubscription=Zt.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(N){(function X(Ye,Sn){const N=Object.keys(Ye);for(let Zt of N){const{previousValue:kt,currentValue:fe}=Ye[Zt];if(!Sn.isDateInstance(kt)||!Sn.isDateInstance(fe))return!0;if(!Sn.sameDate(kt,fe))return!0}return!1})(N,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(N){this._validatorOnChange=N}validate(N){return this._validator?this._validator(N):null}writeValue(N){this._assignValueProgrammatically(N)}registerOnChange(N){this._cvaOnChange=N}registerOnTouched(N){this._onTouched=N}setDisabledState(N){this.disabled=N}_onKeydown(N){(0,U.Vb)(N,"altKey")&&N.keyCode===U.JH&&["ctrlKey","shiftKey","metaKey"].every(fe=>!(0,U.Vb)(N,fe))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),N.preventDefault())}_onInput(N){const Zt=this._lastValueValid;let kt=this._dateAdapter.parse(N,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(kt),kt=this._dateAdapter.getValidDateOrNull(kt);const fe=!this._dateAdapter.sameDate(kt,this.value);!kt||fe?this._cvaOnChange(kt):(N&&!this.value&&this._cvaOnChange(kt),Zt!==this._lastValueValid&&this._validatorOnChange()),fe&&(this._assignValue(kt),this.dateInput.emit(new de(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new de(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(N){this._elementRef.nativeElement.value=null!=N?this._dateAdapter.format(N,this._dateFormats.display.dateInput):""}_assignValue(N){this._model?(this._assignValueToModel(N),this._pendingValue=null):this._pendingValue=N}_isValidValue(N){return!N||this._dateAdapter.isValid(N)}_parentDisabled(){return!1}_assignValueProgrammatically(N){N=this._dateAdapter.deserialize(N),this._lastValueValid=this._isValidValue(N),N=this._dateAdapter.getValidDateOrNull(N),this._assignValue(N),this._formatValue(N)}_matchesFilter(N){const Zt=this._getDateFilter();return!Zt||Zt(N)}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.SBq),l.Y36(f._A,8),l.Y36(f.sG,8))};static#e=this.\u0275dir=l.lG2({type:Ye,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[l.TTD]})}return Ye})();const _e={provide:_.JU,useExisting:(0,l.Gpc)(()=>dn),multi:!0},ze={provide:_.Cf,useExisting:(0,l.Gpc)(()=>dn),multi:!0};let dn=(()=>{class Ye extends He{set matDatepicker(N){N&&(this._datepicker=N,this._closedSubscription=N.closedStream.subscribe(()=>this._onTouched()),this._registerModel(N.registerInput(this)))}get min(){return this._min}set min(N){const Zt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N));this._dateAdapter.sameDate(Zt,this._min)||(this._min=Zt,this._validatorOnChange())}get max(){return this._max}set max(N){const Zt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(N));this._dateAdapter.sameDate(Zt,this._max)||(this._max=Zt,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(N){const Zt=this._matchesFilter(this.value);this._dateFilter=N,this._matchesFilter(this.value)!==Zt&&this._validatorOnChange()}constructor(N,Zt,kt,fe){super(N,Zt,kt),this._formField=fe,this._closedSubscription=y.w0.EMPTY,this._validator=_.kI.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(N){return N}_assignValueToModel(N){this._model&&this._model.updateSelection(N,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(N){return N.source!==this}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(l.SBq),l.Y36(f._A,8),l.Y36(f.sG,8),l.Y36(j.G_,8))};static#e=this.\u0275dir=l.lG2({type:Ye,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(Zt,kt){1&Zt&&l.NdJ("input",function(sn){return kt._onInput(sn.target.value)})("change",function(){return kt._onChange()})("blur",function(){return kt._onBlur()})("keydown",function(sn){return kt._onKeydown(sn)}),2&Zt&&(l.Ikx("disabled",kt.disabled),l.uIk("aria-haspopup",kt._datepicker?"dialog":null)("aria-owns",(null==kt._datepicker?null:kt._datepicker.opened)&&kt._datepicker.id||null)("min",kt.min?kt._dateAdapter.toIso8601(kt.min):null)("max",kt.max?kt._dateAdapter.toIso8601(kt.max):null)("data-mat-calendar",kt._datepicker?kt._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[l._Bn([_e,ze,{provide:q.Jk,useExisting:Ye}]),l.qOj]})}return Ye})(),Tn=(()=>{class Ye{static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)};static#e=this.\u0275dir=l.lG2({type:Ye,selectors:[["","matDatepickerToggleIcon",""]]})}return Ye})(),je=(()=>{class Ye{get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(N){this._disabled=(0,tt.Ig)(N)}constructor(N,Zt,kt){this._intl=N,this._changeDetectorRef=Zt,this._stateChanges=y.w0.EMPTY;const fe=Number(kt);this.tabIndex=fe||0===fe?fe:null}ngOnChanges(N){N.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(N){this.datepicker&&!this.disabled&&(this.datepicker.open(),N.stopPropagation())}_watchStateChanges(){const N=this.datepicker?this.datepicker.stateChanges:(0,G.of)(),Zt=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,G.of)(),kt=this.datepicker?(0,O.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,G.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,O.T)(this._intl.changes,N,Zt,kt).subscribe(()=>this._changeDetectorRef.markForCheck())}static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)(l.Y36(mt),l.Y36(l.sBO),l.$8M("tabindex"))};static#e=this.\u0275cmp=l.Xpm({type:Ye,selectors:[["mat-datepicker-toggle"]],contentQueries:function(Zt,kt,fe){if(1&Zt&&l.Suo(fe,Tn,5),2&Zt){let sn;l.iGM(sn=l.CRH())&&(kt._customIcon=sn.first)}},viewQuery:function(Zt,kt){if(1&Zt&&l.Gf($t,5),2&Zt){let fe;l.iGM(fe=l.CRH())&&(kt._button=fe.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(Zt,kt){1&Zt&&l.NdJ("click",function(sn){return kt._open(sn)}),2&Zt&&(l.uIk("tabindex",null)("data-mat-calendar",kt.datepicker?kt.datepicker.id:null),l.ekj("mat-datepicker-toggle-active",kt.datepicker&&kt.datepicker.opened)("mat-accent",kt.datepicker&&"accent"===kt.datepicker.color)("mat-warn",kt.datepicker&&"warn"===kt.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[l.TTD],ngContentSelectors:Tt,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(Zt,kt){1&Zt&&(l.F$t(Jt),l.TgZ(0,"button",0,1),l.YNc(2,Lt,2,0,"svg",2),l.Hsn(3),l.qZA()),2&Zt&&(l.Q6J("disabled",kt.disabled)("disableRipple",kt.disableRipple),l.uIk("aria-haspopup",kt.datepicker?"dialog":null)("aria-label",kt.ariaLabel||kt._intl.openCalendarLabel)("tabindex",kt.disabled?-1:kt.tabIndex),l.xp6(2),l.Q6J("ngIf",!kt._customIcon))},dependencies:[x.O5,i.RK],styles:[".mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color)}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0})}return Ye})(),io=(()=>{class Ye{static#t=this.\u0275fac=function(Zt){return new(Zt||Ye)};static#e=this.\u0275mod=l.oAB({type:Ye});static#n=this.\u0275inj=l.cJS({providers:[mt,nt],imports:[x.ez,i.ot,e.U8,o.rt,g.eL,f.BQ,R.ZD]})}return Ye})()},3305:(Je,Rt,c)=>{"use strict";c.d(Rt,{To:()=>ee,ib:()=>Jt,yz:()=>Dt,yK:()=>mt});var o=c(5879),e=c(8337),g=c(2495),x=c(7394);const i=new o.OlP("CdkAccordion");let f=0,t=(()=>{class B{get expanded(){return this._expanded}set expanded(st){st=(0,g.Ig)(st),this._expanded!==st&&(this._expanded=st,this.expandedChange.emit(st),st?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(st){this._disabled=(0,g.Ig)(st)}constructor(st,ie,Ae){this.accordion=st,this._changeDetectorRef=ie,this._expansionDispatcher=Ae,this._openCloseAllSubscription=x.w0.EMPTY,this.closed=new o.vpe,this.opened=new o.vpe,this.destroyed=new o.vpe,this.expandedChange=new o.vpe,this.id="cdk-accordion-child-"+f++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=Ae.listen((en,In)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===In&&this.id!==en&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(st=>{this.disabled||(this.expanded=st)})}static#t=this.\u0275fac=function(ie){return new(ie||B)(o.Y36(i,12),o.Y36(o.sBO),o.Y36(e.A8))};static#e=this.\u0275dir=o.lG2({type:B,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[o._Bn([{provide:i,useValue:void 0}])]})}return B})(),y=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275mod=o.oAB({type:B});static#n=this.\u0275inj=o.cJS({})}return B})();var O=c(8484),G=c(6814),U=c(3680),lt=c(4300),ut=c(3997),Ht=c(7921),A=c(2181),xt=c(8180),tt=c(6028),ct=c(8645),_=c(6232),j=c(3019),q=c(6825);const ht=["body"];function vt(B,At){}const gt=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],zt=["mat-expansion-panel-header","*","mat-action-row"];function Ct(B,At){if(1&B&&o._UZ(0,"span",2),2&B){const st=o.oxw();o.Q6J("@indicatorRotate",st._getExpandedState())}}const H=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],J=["mat-panel-title","mat-panel-description","*"],z=new o.OlP("MAT_ACCORDION"),F="225ms cubic-bezier(0.4,0.0,0.2,1)",rt={indicatorRotate:(0,q.X$)("indicatorRotate",[(0,q.SB)("collapsed, void",(0,q.oB)({transform:"rotate(0deg)"})),(0,q.SB)("expanded",(0,q.oB)({transform:"rotate(180deg)"})),(0,q.eR)("expanded <=> collapsed, void => collapsed",(0,q.jt)(F))]),bodyExpansion:(0,q.X$)("bodyExpansion",[(0,q.SB)("collapsed, void",(0,q.oB)({height:"0px",visibility:"hidden"})),(0,q.SB)("expanded",(0,q.oB)({height:"*",visibility:""})),(0,q.eR)("expanded <=> collapsed, void => collapsed",(0,q.jt)(F))])},V=new o.OlP("MAT_EXPANSION_PANEL");let Pt=(()=>{class B{constructor(st,ie){this._template=st,this._expansionPanel=ie}static#t=this.\u0275fac=function(ie){return new(ie||B)(o.Y36(o.Rgc),o.Y36(V,8))};static#e=this.\u0275dir=o.lG2({type:B,selectors:[["ng-template","matExpansionPanelContent",""]]})}return B})(),$t=0;const Lt=new o.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let Jt=(()=>{class B extends t{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(st){this._hideToggle=(0,g.Ig)(st)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(st){this._togglePosition=st}constructor(st,ie,Ae,en,In,Ve,jt){super(st,ie,Ae),this._viewContainerRef=en,this._animationMode=Ve,this._hideToggle=!1,this.afterExpand=new o.vpe,this.afterCollapse=new o.vpe,this._inputChanges=new ct.x,this._headerId="mat-expansion-panel-header-"+$t++,this._bodyAnimationDone=new ct.x,this.accordion=st,this._document=In,this._bodyAnimationDone.pipe((0,ut.x)((ft,Gt)=>ft.fromState===Gt.fromState&&ft.toState===Gt.toState)).subscribe(ft=>{"void"!==ft.fromState&&("expanded"===ft.toState?this.afterExpand.emit():"collapsed"===ft.toState&&this.afterCollapse.emit())}),jt&&(this.hideToggle=jt.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,Ht.O)(null),(0,A.h)(()=>this.expanded&&!this._portal),(0,xt.q)(1)).subscribe(()=>{this._portal=new O.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(st){this._inputChanges.next(st)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const st=this._document.activeElement,ie=this._body.nativeElement;return st===ie||ie.contains(st)}return!1}static#t=this.\u0275fac=function(ie){return new(ie||B)(o.Y36(z,12),o.Y36(o.sBO),o.Y36(e.A8),o.Y36(o.s_b),o.Y36(G.K0),o.Y36(o.QbO,8),o.Y36(Lt,8))};static#e=this.\u0275cmp=o.Xpm({type:B,selectors:[["mat-expansion-panel"]],contentQueries:function(ie,Ae,en){if(1&ie&&o.Suo(en,Pt,5),2&ie){let In;o.iGM(In=o.CRH())&&(Ae._lazyContent=In.first)}},viewQuery:function(ie,Ae){if(1&ie&&o.Gf(ht,5),2&ie){let en;o.iGM(en=o.CRH())&&(Ae._body=en.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(ie,Ae){2&ie&&o.ekj("mat-expanded",Ae.expanded)("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)("mat-expansion-panel-spacing",Ae._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[o._Bn([{provide:z,useValue:void 0},{provide:V,useExisting:B}]),o.qOj,o.TTD],ngContentSelectors:zt,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(ie,Ae){1&ie&&(o.F$t(gt),o.Hsn(0),o.TgZ(1,"div",0,1),o.NdJ("@bodyExpansion.done",function(In){return Ae._bodyAnimationDone.next(In)}),o.TgZ(3,"div",2),o.Hsn(4,1),o.YNc(5,vt,0,0,"ng-template",3),o.qZA(),o.Hsn(6,2),o.qZA()),2&ie&&(o.xp6(1),o.Q6J("@bodyExpansion",Ae._getExpandedState())("id",Ae.id),o.uIk("aria-labelledby",Ae._headerId),o.xp6(4),o.Q6J("cdkPortalOutlet",Ae._portal))},dependencies:[O.Pl],styles:['.mat-expansion-panel{--mat-expansion-container-shape:4px;box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[rt.bodyExpansion]},changeDetection:0})}return B})();class ${}const pt=(0,U.sb)($);let Dt=(()=>{class B extends pt{constructor(st,ie,Ae,en,In,Ve,jt){super(),this.panel=st,this._element=ie,this._focusMonitor=Ae,this._changeDetectorRef=en,this._animationMode=Ve,this._parentChangeSubscription=x.w0.EMPTY;const ft=st.accordion?st.accordion._stateChanges.pipe((0,A.h)(Gt=>!(!Gt.hideToggle&&!Gt.togglePosition))):_.E;this.tabIndex=parseInt(jt||"")||0,this._parentChangeSubscription=(0,j.T)(st.opened,st.closed,ft,st._inputChanges.pipe((0,A.h)(Gt=>!!(Gt.hideToggle||Gt.disabled||Gt.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),st.closed.pipe((0,A.h)(()=>st._containsFocus())).subscribe(()=>Ae.focusVia(ie,"program")),In&&(this.expandedHeight=In.expandedHeight,this.collapsedHeight=In.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const st=this._isExpanded();return st&&this.expandedHeight?this.expandedHeight:!st&&this.collapsedHeight?this.collapsedHeight:null}_keydown(st){switch(st.keyCode){case tt.L_:case tt.K5:(0,tt.Vb)(st)||(st.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(st))}}focus(st,ie){st?this._focusMonitor.focusVia(this._element,st,ie):this._element.nativeElement.focus(ie)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(st=>{st&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static#t=this.\u0275fac=function(ie){return new(ie||B)(o.Y36(Jt,1),o.Y36(o.SBq),o.Y36(lt.tE),o.Y36(o.sBO),o.Y36(Lt,8),o.Y36(o.QbO,8),o.$8M("tabindex"))};static#e=this.\u0275cmp=o.Xpm({type:B,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(ie,Ae){1&ie&&o.NdJ("click",function(){return Ae._toggle()})("keydown",function(In){return Ae._keydown(In)}),2&ie&&(o.uIk("id",Ae.panel._headerId)("tabindex",Ae.tabIndex)("aria-controls",Ae._getPanelId())("aria-expanded",Ae._isExpanded())("aria-disabled",Ae.panel.disabled),o.Udp("height",Ae._getHeaderHeight()),o.ekj("mat-expanded",Ae._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ae._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ae._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ae._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[o.qOj],ngContentSelectors:J,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(ie,Ae){1&ie&&(o.F$t(H),o.TgZ(0,"span",0),o.Hsn(1),o.Hsn(2,1),o.Hsn(3,2),o.qZA(),o.YNc(4,Ct,1,1,"span",1)),2&ie&&(o.ekj("mat-content-hide-toggle",!Ae._showToggle()),o.xp6(4),o.Q6J("ngIf",Ae._showToggle()))},dependencies:[G.O5],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[rt.indicatorRotate]},changeDetection:0})}return B})(),mt=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275dir=o.lG2({type:B,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return B})(),ee=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275mod=o.oAB({type:B});static#n=this.\u0275inj=o.cJS({imports:[G.ez,U.BQ,y,O.eL]})}return B})()},1043:(Je,Rt,c)=>{"use strict";c.d(Rt,{Bi:()=>At,Eo:()=>ee,G_:()=>ie,Lv:()=>st,Px:()=>V,TN:()=>yt,UO:()=>B,Ve:()=>$t,ab:()=>J});var o=c(5879),e=c(6825);const J=new o.OlP("MatError"),V=new o.OlP("MatPrefix"),$t=new o.OlP("MatSuffix"),yt={transitionMessages:(0,e.X$)("transitionMessages",[(0,e.SB)("enter",(0,e.oB)({opacity:1,transform:"translateY(0%)"})),(0,e.eR)("void => enter",[(0,e.oB)({opacity:0,transform:"translateY(-5px)"}),(0,e.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let ee=(()=>{class ve{static#t=this.\u0275fac=function(tn){return new(tn||ve)};static#e=this.\u0275dir=o.lG2({type:ve})}return ve})();function B(){return Error("Placeholder attribute and child element were both specified.")}function At(ve){return Error(`A hint was already declared for 'align="${ve}"'.`)}function st(){return Error("mat-form-field must contain a MatFormFieldControl.")}const ie=new o.OlP("MatFormField")},617:(Je,Rt,c)=>{"use strict";c.d(Rt,{Hw:()=>Tt,Ps:()=>$,jv:()=>gt});var o=c(5879),e=c(3680),g=c(2495),x=c(6814),l=c(2096),i=c(8504),R=c(9315),f=c(7394),t=c(9397),y=c(7398),O=c(6306),G=c(4716),U=c(3020),lt=c(8180),ut=c(9862),Ht=c(6593);const A=["*"];let xt;function ct(pt){return function tt(){if(void 0===xt&&(xt=null,typeof window<"u")){const pt=window;void 0!==pt.trustedTypes&&(xt=pt.trustedTypes.createPolicy("angular#components",{createHTML:Dt=>Dt}))}return xt}()?.createHTML(pt)||pt}function _(pt){return Error(`Unable to find icon with the name "${pt}"`)}function q(pt){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${pt}".`)}function ht(pt){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${pt}".`)}class vt{constructor(Dt,St,mt){this.url=Dt,this.svgText=St,this.options=mt}}let gt=(()=>{class pt{constructor(St,mt,yt,ee){this._httpClient=St,this._sanitizer=mt,this._errorHandler=ee,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=yt}addSvgIcon(St,mt,yt){return this.addSvgIconInNamespace("",St,mt,yt)}addSvgIconLiteral(St,mt,yt){return this.addSvgIconLiteralInNamespace("",St,mt,yt)}addSvgIconInNamespace(St,mt,yt,ee){return this._addSvgIconConfig(St,mt,new vt(yt,null,ee))}addSvgIconResolver(St){return this._resolvers.push(St),this}addSvgIconLiteralInNamespace(St,mt,yt,ee){const B=this._sanitizer.sanitize(o.q3G.HTML,yt);if(!B)throw ht(yt);const At=ct(B);return this._addSvgIconConfig(St,mt,new vt("",At,ee))}addSvgIconSet(St,mt){return this.addSvgIconSetInNamespace("",St,mt)}addSvgIconSetLiteral(St,mt){return this.addSvgIconSetLiteralInNamespace("",St,mt)}addSvgIconSetInNamespace(St,mt,yt){return this._addSvgIconSetConfig(St,new vt(mt,null,yt))}addSvgIconSetLiteralInNamespace(St,mt,yt){const ee=this._sanitizer.sanitize(o.q3G.HTML,mt);if(!ee)throw ht(mt);const B=ct(ee);return this._addSvgIconSetConfig(St,new vt("",B,yt))}registerFontClassAlias(St,mt=St){return this._fontCssClassesByAlias.set(St,mt),this}classNameForFontAlias(St){return this._fontCssClassesByAlias.get(St)||St}setDefaultFontSetClass(...St){return this._defaultFontSetClass=St,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(St){const mt=this._sanitizer.sanitize(o.q3G.RESOURCE_URL,St);if(!mt)throw q(St);const yt=this._cachedIconsByUrl.get(mt);return yt?(0,l.of)(H(yt)):this._loadSvgIconFromConfig(new vt(St,null)).pipe((0,t.b)(ee=>this._cachedIconsByUrl.set(mt,ee)),(0,y.U)(ee=>H(ee)))}getNamedSvgIcon(St,mt=""){const yt=J(mt,St);let ee=this._svgIconConfigs.get(yt);if(ee)return this._getSvgFromConfig(ee);if(ee=this._getIconConfigFromResolvers(mt,St),ee)return this._svgIconConfigs.set(yt,ee),this._getSvgFromConfig(ee);const B=this._iconSetConfigs.get(mt);return B?this._getSvgFromIconSetConfigs(St,B):(0,i._)(_(yt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(St){return St.svgText?(0,l.of)(H(this._svgElementFromConfig(St))):this._loadSvgIconFromConfig(St).pipe((0,y.U)(mt=>H(mt)))}_getSvgFromIconSetConfigs(St,mt){const yt=this._extractIconWithNameFromAnySet(St,mt);if(yt)return(0,l.of)(yt);const ee=mt.filter(B=>!B.svgText).map(B=>this._loadSvgIconSetFromConfig(B).pipe((0,O.K)(At=>{const ie=`Loading icon set URL: ${this._sanitizer.sanitize(o.q3G.RESOURCE_URL,B.url)} failed: ${At.message}`;return this._errorHandler.handleError(new Error(ie)),(0,l.of)(null)})));return(0,R.D)(ee).pipe((0,y.U)(()=>{const B=this._extractIconWithNameFromAnySet(St,mt);if(!B)throw _(St);return B}))}_extractIconWithNameFromAnySet(St,mt){for(let yt=mt.length-1;yt>=0;yt--){const ee=mt[yt];if(ee.svgText&&ee.svgText.toString().indexOf(St)>-1){const B=this._svgElementFromConfig(ee),At=this._extractSvgIconFromSet(B,St,ee.options);if(At)return At}}return null}_loadSvgIconFromConfig(St){return this._fetchIcon(St).pipe((0,t.b)(mt=>St.svgText=mt),(0,y.U)(()=>this._svgElementFromConfig(St)))}_loadSvgIconSetFromConfig(St){return St.svgText?(0,l.of)(null):this._fetchIcon(St).pipe((0,t.b)(mt=>St.svgText=mt))}_extractSvgIconFromSet(St,mt,yt){const ee=St.querySelector(`[id="${mt}"]`);if(!ee)return null;const B=ee.cloneNode(!0);if(B.removeAttribute("id"),"svg"===B.nodeName.toLowerCase())return this._setSvgAttributes(B,yt);if("symbol"===B.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(B),yt);const At=this._svgElementFromString(ct("<svg></svg>"));return At.appendChild(B),this._setSvgAttributes(At,yt)}_svgElementFromString(St){const mt=this._document.createElement("DIV");mt.innerHTML=St;const yt=mt.querySelector("svg");if(!yt)throw Error("<svg> tag not found");return yt}_toSvgElement(St){const mt=this._svgElementFromString(ct("<svg></svg>")),yt=St.attributes;for(let ee=0;ee<yt.length;ee++){const{name:B,value:At}=yt[ee];"id"!==B&&mt.setAttribute(B,At)}for(let ee=0;ee<St.childNodes.length;ee++)St.childNodes[ee].nodeType===this._document.ELEMENT_NODE&&mt.appendChild(St.childNodes[ee].cloneNode(!0));return mt}_setSvgAttributes(St,mt){return St.setAttribute("fit",""),St.setAttribute("height","100%"),St.setAttribute("width","100%"),St.setAttribute("preserveAspectRatio","xMidYMid meet"),St.setAttribute("focusable","false"),mt&&mt.viewBox&&St.setAttribute("viewBox",mt.viewBox),St}_fetchIcon(St){const{url:mt,options:yt}=St,ee=yt?.withCredentials??!1;if(!this._httpClient)throw function j(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==mt)throw Error(`Cannot fetch icon from URL "${mt}".`);const B=this._sanitizer.sanitize(o.q3G.RESOURCE_URL,mt);if(!B)throw q(mt);const At=this._inProgressUrlFetches.get(B);if(At)return At;const st=this._httpClient.get(B,{responseType:"text",withCredentials:ee}).pipe((0,y.U)(ie=>ct(ie)),(0,G.x)(()=>this._inProgressUrlFetches.delete(B)),(0,U.B)());return this._inProgressUrlFetches.set(B,st),st}_addSvgIconConfig(St,mt,yt){return this._svgIconConfigs.set(J(St,mt),yt),this}_addSvgIconSetConfig(St,mt){const yt=this._iconSetConfigs.get(St);return yt?yt.push(mt):this._iconSetConfigs.set(St,[mt]),this}_svgElementFromConfig(St){if(!St.svgElement){const mt=this._svgElementFromString(St.svgText);this._setSvgAttributes(mt,St.options),St.svgElement=mt}return St.svgElement}_getIconConfigFromResolvers(St,mt){for(let yt=0;yt<this._resolvers.length;yt++){const ee=this._resolvers[yt](mt,St);if(ee)return z(ee)?new vt(ee.url,null,ee.options):new vt(ee,null)}}static#t=this.\u0275fac=function(mt){return new(mt||pt)(o.LFG(ut.eN,8),o.LFG(Ht.H7),o.LFG(x.K0,8),o.LFG(o.qLn))};static#e=this.\u0275prov=o.Yz7({token:pt,factory:pt.\u0275fac,providedIn:"root"})}return pt})();function H(pt){return pt.cloneNode(!0)}function J(pt,Dt){return pt+":"+Dt}function z(pt){return!(!pt.url||!pt.options)}const F=(0,e.pj)(class{constructor(pt){this._elementRef=pt}}),rt=new o.OlP("MAT_ICON_DEFAULT_OPTIONS"),V=new o.OlP("mat-icon-location",{providedIn:"root",factory:function Pt(){const pt=(0,o.f3M)(x.K0),Dt=pt?pt.location:null;return{getPathname:()=>Dt?Dt.pathname+Dt.search:""}}}),$t=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Lt=$t.map(pt=>`[${pt}]`).join(", "),Jt=/^url\(['"]?#(.*?)['"]?\)$/;let Tt=(()=>{class pt extends F{get inline(){return this._inline}set inline(St){this._inline=(0,g.Ig)(St)}get svgIcon(){return this._svgIcon}set svgIcon(St){St!==this._svgIcon&&(St?this._updateSvgIcon(St):this._svgIcon&&this._clearSvgElement(),this._svgIcon=St)}get fontSet(){return this._fontSet}set fontSet(St){const mt=this._cleanupFontValue(St);mt!==this._fontSet&&(this._fontSet=mt,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(St){const mt=this._cleanupFontValue(St);mt!==this._fontIcon&&(this._fontIcon=mt,this._updateFontIconClasses())}constructor(St,mt,yt,ee,B,At){super(St),this._iconRegistry=mt,this._location=ee,this._errorHandler=B,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=f.w0.EMPTY,At&&(At.color&&(this.color=this.defaultColor=At.color),At.fontSet&&(this.fontSet=At.fontSet)),yt||St.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(St){if(!St)return["",""];const mt=St.split(":");switch(mt.length){case 1:return["",mt[0]];case 2:return mt;default:throw Error(`Invalid icon name: "${St}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const St=this._elementsWithExternalReferences;if(St&&St.size){const mt=this._location.getPathname();mt!==this._previousPath&&(this._previousPath=mt,this._prependPathToReferences(mt))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(St){this._clearSvgElement();const mt=this._location.getPathname();this._previousPath=mt,this._cacheChildrenWithExternalReferences(St),this._prependPathToReferences(mt),this._elementRef.nativeElement.appendChild(St)}_clearSvgElement(){const St=this._elementRef.nativeElement;let mt=St.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();mt--;){const yt=St.childNodes[mt];(1!==yt.nodeType||"svg"===yt.nodeName.toLowerCase())&&yt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const St=this._elementRef.nativeElement,mt=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(yt=>yt.length>0);this._previousFontSetClass.forEach(yt=>St.classList.remove(yt)),mt.forEach(yt=>St.classList.add(yt)),this._previousFontSetClass=mt,this.fontIcon!==this._previousFontIconClass&&!mt.includes("mat-ligature-font")&&(this._previousFontIconClass&&St.classList.remove(this._previousFontIconClass),this.fontIcon&&St.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(St){return"string"==typeof St?St.trim().split(" ")[0]:St}_prependPathToReferences(St){const mt=this._elementsWithExternalReferences;mt&&mt.forEach((yt,ee)=>{yt.forEach(B=>{ee.setAttribute(B.name,`url('${St}#${B.value}')`)})})}_cacheChildrenWithExternalReferences(St){const mt=St.querySelectorAll(Lt),yt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ee=0;ee<mt.length;ee++)$t.forEach(B=>{const At=mt[ee],st=At.getAttribute(B),ie=st?st.match(Jt):null;if(ie){let Ae=yt.get(At);Ae||(Ae=[],yt.set(At,Ae)),Ae.push({name:B,value:ie[1]})}})}_updateSvgIcon(St){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),St){const[mt,yt]=this._splitIconName(St);mt&&(this._svgNamespace=mt),yt&&(this._svgName=yt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(yt,mt).pipe((0,lt.q)(1)).subscribe(ee=>this._setSvgElement(ee),ee=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${mt}:${yt}! ${ee.message}`))})}}static#t=this.\u0275fac=function(mt){return new(mt||pt)(o.Y36(o.SBq),o.Y36(gt),o.$8M("aria-hidden"),o.Y36(V),o.Y36(o.qLn),o.Y36(rt,8))};static#e=this.\u0275cmp=o.Xpm({type:pt,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(mt,yt){2&mt&&(o.uIk("data-mat-icon-type",yt._usingFontIcon()?"font":"svg")("data-mat-icon-name",yt._svgName||yt.fontIcon)("data-mat-icon-namespace",yt._svgNamespace||yt.fontSet)("fontIcon",yt._usingFontIcon()?yt.fontIcon:null),o.ekj("mat-icon-inline",yt.inline)("mat-icon-no-color","primary"!==yt.color&&"accent"!==yt.color&&"warn"!==yt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[o.qOj],ngContentSelectors:A,decls:1,vars:0,template:function(mt,yt){1&mt&&(o.F$t(),o.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return pt})(),$=(()=>{class pt{static#t=this.\u0275fac=function(mt){return new(mt||pt)};static#e=this.\u0275mod=o.oAB({type:pt});static#n=this.\u0275inj=o.cJS({imports:[e.BQ,e.BQ]})}return pt})()},4516:(Je,Rt,c)=>{"use strict";c.d(Rt,{Jk:()=>y,Nt:()=>lt});var o=c(2495),e=c(2831),g=c(6263),x=c(5879),l=c(6223),i=c(3680),R=c(1043),f=c(8645);const y=new x.OlP("MAT_INPUT_VALUE_ACCESSOR"),O=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let G=0;const U=(0,i.FD)(class{constructor(Ht,A,xt,tt){this._defaultErrorStateMatcher=Ht,this._parentForm=A,this._parentFormGroup=xt,this.ngControl=tt,this.stateChanges=new f.x}});let lt=(()=>{class Ht extends U{get disabled(){return this._disabled}set disabled(xt){this._disabled=(0,o.Ig)(xt),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(xt){this._id=xt||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(l.kI.required)??!1}set required(xt){this._required=(0,o.Ig)(xt)}get type(){return this._type}set type(xt){this._type=xt||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(xt){xt!==this.value&&(this._inputValueAccessor.value=xt,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(xt){this._readonly=(0,o.Ig)(xt)}constructor(xt,tt,ct,_,j,q,ht,vt,gt,zt){super(q,_,j,ct),this._elementRef=xt,this._platform=tt,this._autofillMonitor=vt,this._formField=zt,this._uid="mat-input-"+G++,this.focused=!1,this.stateChanges=new f.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(J=>(0,e.qK)().has(J)),this._iOSKeyupListener=J=>{const z=J.target;!z.value&&0===z.selectionStart&&0===z.selectionEnd&&(z.setSelectionRange(1,1),z.setSelectionRange(0,0))};const Ct=this._elementRef.nativeElement,H=Ct.nodeName.toLowerCase();this._inputValueAccessor=ht||Ct,this._previousNativeValue=this.value,this.id=this.id,tt.IOS&&gt.runOutsideAngular(()=>{xt.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===H,this._isTextarea="textarea"===H,this._isInFormField=!!zt,this._isNativeSelect&&(this.controlType=Ct.multiple?"mat-native-select-multiple":"mat-native-select")}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(xt=>{this.autofilled=xt.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&(this.updateErrorState(),null!==this.ngControl.disabled&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(xt){this._elementRef.nativeElement.focus(xt)}_focusChanged(xt){xt!==this.focused&&(this.focused=xt,this.stateChanges.next())}_onInput(){}_dirtyCheckNativeValue(){const xt=this._elementRef.nativeElement.value;this._previousNativeValue!==xt&&(this._previousNativeValue=xt,this.stateChanges.next())}_dirtyCheckPlaceholder(){const xt=this._getPlaceholder();if(xt!==this._previousPlaceholder){const tt=this._elementRef.nativeElement;this._previousPlaceholder=xt,xt?tt.setAttribute("placeholder",xt):tt.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){O.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let xt=this._elementRef.nativeElement.validity;return xt&&xt.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const xt=this._elementRef.nativeElement,tt=xt.options[0];return this.focused||xt.multiple||!this.empty||!!(xt.selectedIndex>-1&&tt&&tt.label)}return this.focused||!this.empty}setDescribedByIds(xt){xt.length?this._elementRef.nativeElement.setAttribute("aria-describedby",xt.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const xt=this._elementRef.nativeElement;return this._isNativeSelect&&(xt.multiple||xt.size>1)}static#t=this.\u0275fac=function(tt){return new(tt||Ht)(x.Y36(x.SBq),x.Y36(e.t4),x.Y36(l.a5,10),x.Y36(l.F,8),x.Y36(l.sg,8),x.Y36(i.rD),x.Y36(y,10),x.Y36(g.Lq),x.Y36(x.R0b),x.Y36(R.G_,8))};static#e=this.\u0275dir=x.lG2({type:Ht,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:18,hostBindings:function(tt,ct){1&tt&&x.NdJ("focus",function(){return ct._focusChanged(!0)})("blur",function(){return ct._focusChanged(!1)})("input",function(){return ct._onInput()}),2&tt&&(x.Ikx("id",ct.id)("disabled",ct.disabled)("required",ct.required),x.uIk("name",ct.name||null)("readonly",ct.readonly&&!ct._isNativeSelect||null)("aria-invalid",ct.empty&&ct.required?null:ct.errorState)("aria-required",ct.required)("id",ct.id),x.ekj("mat-input-server",ct._isServer)("mat-mdc-form-field-textarea-control",ct._isInFormField&&ct._isTextarea)("mat-mdc-form-field-input-control",ct._isInFormField)("mdc-text-field__input",ct._isInFormField)("mat-mdc-native-select-inline",ct._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[x._Bn([{provide:R.Eo,useExisting:Ht}]),x.qOj,x.TTD]})}return Ht})()},4505:(Je,Rt,c)=>{"use strict";c.d(Rt,{Nr:()=>O,eB:()=>y,yu:()=>G});var o=c(5879),e=c(3680),g=c(4300);const x=["mat-button",""],l=["*"],f=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],t=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(U){this._elementRef=U}})));let y=(()=>{class U extends t{constructor(ut,Ht,A){super(ut),this._focusMonitor=Ht,this._animationMode=A,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const xt of f)this._hasHostAttributes(xt)&&this._getHostElement().classList.add(xt);ut.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(ut,Ht){ut?this._focusMonitor.focusVia(this._getHostElement(),ut,Ht):this._getHostElement().focus(Ht)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ut){return ut.some(Ht=>this._getHostElement().hasAttribute(Ht))}static#t=this.\u0275fac=function(Ht){return new(Ht||U)(o.Y36(o.SBq),o.Y36(g.tE),o.Y36(o.QbO,8))};static#e=this.\u0275cmp=o.Xpm({type:U,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(Ht,A){if(1&Ht&&o.Gf(e.wG,5),2&Ht){let xt;o.iGM(xt=o.CRH())&&(A.ripple=xt.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(Ht,A){2&Ht&&(o.uIk("disabled",A.disabled||null),o.ekj("_mat-animation-noopable","NoopAnimations"===A._animationMode)("mat-button-disabled",A.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[o.qOj],attrs:x,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Ht,A){1&Ht&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1)(3,"span",2)),2&Ht&&(o.xp6(2),o.ekj("mat-button-ripple-round",A.isRoundButton||A.isIconButton),o.Q6J("matRippleDisabled",A._isRippleDisabled())("matRippleCentered",A.isIconButton)("matRippleTrigger",A._getHostElement()))},dependencies:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return U})(),O=(()=>{class U extends y{constructor(ut,Ht,A,xt){super(Ht,ut,A),this._ngZone=xt,this._haltDisabledEvents=tt=>{this.disabled&&(tt.preventDefault(),tt.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#t=this.\u0275fac=function(Ht){return new(Ht||U)(o.Y36(g.tE),o.Y36(o.SBq),o.Y36(o.QbO,8),o.Y36(o.R0b,8))};static#e=this.\u0275cmp=o.Xpm({type:U,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(Ht,A){2&Ht&&(o.uIk("tabindex",A.disabled?-1:A.tabIndex)("disabled",A.disabled||null)("aria-disabled",A.disabled.toString()),o.ekj("_mat-animation-noopable","NoopAnimations"===A._animationMode)("mat-button-disabled",A.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[o.qOj],attrs:x,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(Ht,A){1&Ht&&(o.F$t(),o.TgZ(0,"span",0),o.Hsn(1),o.qZA(),o._UZ(2,"span",1)(3,"span",2)),2&Ht&&(o.xp6(2),o.ekj("mat-button-ripple-round",A.isRoundButton||A.isIconButton),o.Q6J("matRippleDisabled",A._isRippleDisabled())("matRippleCentered",A.isIconButton)("matRippleTrigger",A._getHostElement()))},dependencies:[e.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return U})(),G=(()=>{class U{static#t=this.\u0275fac=function(Ht){return new(Ht||U)};static#e=this.\u0275mod=o.oAB({type:U});static#n=this.\u0275inj=o.cJS({imports:[e.si,e.BQ,e.BQ]})}return U})()},4021:(Je,Rt,c)=>{"use strict";c.d(Rt,{FC:()=>zt,Zh:()=>Ct});var o=c(4300),e=c(5879),g=c(6223),x=c(3680),l=c(2495);const i=["input"],R=["label"],t=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:y});function y(){return{color:"accent",clickAction:"check-indeterminate"}}let U=0;const lt=y(),ut=(0,x.sb)((0,x.pj)((0,x.Kr)((0,x.Id)(class{constructor(H){this._elementRef=H}}))));let Ht=(()=>{class H extends ut{get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(z){this._required=(0,l.Ig)(z)}constructor(z,F,rt,V,Pt,$t,Lt){super(F),this._changeDetectorRef=rt,this._ngZone=V,this._animationMode=$t,this._options=Lt,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||lt,this.color=this.defaultColor=this._options.color||lt.color,this.tabIndex=parseInt(Pt)||0,this.id=this._uniqueId=`${z}${++U}`}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(z){const F=(0,l.Ig)(z);F!=this.checked&&(this._checked=F,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(z){const F=(0,l.Ig)(z);F!==this.disabled&&(this._disabled=F,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(z){const F=z!=this._indeterminate;this._indeterminate=(0,l.Ig)(z),F&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(z){this.checked=!!z}registerOnChange(z){this._controlValueAccessorChangeFn=z}registerOnTouched(z){this._onTouched=z}setDisabledState(z){this.disabled=z}_transitionCheckState(z){let F=this._currentCheckState,rt=this._getAnimationTargetElement();if(F!==z&&rt&&(this._currentAnimationClass&&rt.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(F,z),this._currentCheckState=z,this._currentAnimationClass.length>0)){rt.classList.add(this._currentAnimationClass);const V=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{rt.classList.remove(V)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const z=this._options?.clickAction;this.disabled||"noop"===z?!this.disabled&&"noop"===z&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==z&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(z){z.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(z,F){if("NoopAnimations"===this._animationMode)return"";switch(z){case 0:if(1===F)return this._animationClasses.uncheckedToChecked;if(3==F)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===F?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===F?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===F?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(z){const F=this._inputElement;F&&(F.nativeElement.indeterminate=z)}static#t=this.\u0275fac=function(F){e.$Z()};static#e=this.\u0275dir=e.lG2({type:H,viewQuery:function(F,rt){if(1&F&&(e.Gf(i,5),e.Gf(R,5),e.Gf(x.wG,5)),2&F){let V;e.iGM(V=e.CRH())&&(rt._inputElement=V.first),e.iGM(V=e.CRH())&&(rt._labelElement=V.first),e.iGM(V=e.CRH())&&(rt.ripple=V.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[e.qOj]})}return H})(),ct=(()=>{class H{static#t=this.\u0275fac=function(F){return new(F||H)};static#e=this.\u0275mod=e.oAB({type:H});static#n=this.\u0275inj=e.cJS({})}return H})();var j=c(7131);const q=function(H){return{enterDuration:H}},ht=["*"];class vt{}const gt={provide:g.JU,useExisting:(0,e.Gpc)(()=>zt),multi:!0};let zt=(()=>{class H extends Ht{constructor(z,F,rt,V,Pt,$t,Lt){super("mat-checkbox-",z,F,V,Pt,$t,Lt),this._focusMonitor=rt,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(z){const F=new vt;return F.source=this,F.checked=z,F}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(z=>{z||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(z){z.stopPropagation(),super._handleInputClick()}focus(z,F){z?this._focusMonitor.focusVia(this._inputElement,z,F):this._inputElement.nativeElement.focus(F)}static#t=this.\u0275fac=function(F){return new(F||H)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(o.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(e.QbO,8),e.Y36(t,8))};static#e=this.\u0275cmp=e.Xpm({type:H,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(F,rt){2&F&&(e.Ikx("id",rt.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.ekj("mat-checkbox-indeterminate",rt.indeterminate)("mat-checkbox-checked",rt.checked)("mat-checkbox-disabled",rt.disabled)("mat-checkbox-label-before","before"==rt.labelPosition)("_mat-animation-noopable","NoopAnimations"===rt._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[e._Bn([gt]),e.qOj],ngContentSelectors:ht,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(F,rt){if(1&F&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(Pt){return rt._onInteractionEvent(Pt)})("click",function(Pt){return rt._onInputClick(Pt)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return rt._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&F){const V=e.MAs(1),Pt=e.MAs(13);e.uIk("for",rt.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!Pt.textContent||!Pt.textContent.trim()),e.xp6(1),e.Q6J("id",rt.inputId)("required",rt.required)("checked",rt.checked)("disabled",rt.disabled)("tabIndex",rt.tabIndex),e.uIk("value",rt.value)("name",rt.name)("aria-label",rt.ariaLabel||null)("aria-labelledby",rt.ariaLabelledby)("aria-describedby",rt.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",V)("matRippleDisabled",rt._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(18,q,"NoopAnimations"===rt._animationMode?0:150))}},dependencies:[x.wG,j.wD],styles:['@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-input:focus~.mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return H})(),Ct=(()=>{class H{static#t=this.\u0275fac=function(F){return new(F||H)};static#e=this.\u0275mod=e.oAB({type:H});static#n=this.\u0275inj=e.cJS({imports:[x.si,x.BQ,j.Q8,ct,x.BQ,ct]})}return H})()},7592:(Je,Rt,c)=>{"use strict";c.d(Rt,{eJ:()=>en,on:()=>Gt,w6:()=>st,Rb:()=>De,yj:()=>Xe,hV:()=>Ae,YS:()=>me});var o=c(8836),e=c(9594),g=c(8484),x=c(5879),l=c(3680),i=c(6814),R=c(4300),f=c(8645),t=c(3019),y=c(4911),O=c(2181),G=c(8180),U=c(7921),lt=c(6028),ut=c(6825);class A{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}let q=(()=>{class rn extends o.LL{constructor(ue,Ft,be,qt,Te,Me,_n,ce){super(ue,Ft,be,qt,Te,Me,_n,ce),this._animationStateChanged=new x.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(ue){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ue})}static#t=this.\u0275fac=function(Ft){return new(Ft||rn)(x.Y36(x.SBq),x.Y36(R.qV),x.Y36(i.K0,8),x.Y36(A),x.Y36(R.ic),x.Y36(x.R0b),x.Y36(e.Iu),x.Y36(R.tE))};static#e=this.\u0275cmp=x.Xpm({type:rn,selectors:[["ng-component"]],features:[x.qOj],decls:0,vars:0,template:function(Ft,be){},encapsulation:2})}return rn})();class zt{constructor(re,ue,Ft){this._ref=re,this._containerInstance=Ft,this._afterOpened=new f.x,this._beforeClosed=new f.x,this._state=0,this.disableClose=ue.disableClose,this.id=re.id,Ft._animationStateChanged.pipe((0,O.h)(be=>"opened"===be.state),(0,G.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ft._animationStateChanged.pipe((0,O.h)(be=>"closed"===be.state),(0,G.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),re.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,t.T)(this.backdropClick(),this.keydownEvents().pipe((0,O.h)(be=>be.keyCode===lt.hY&&!this.disableClose&&!(0,lt.Vb)(be)))).subscribe(be=>{this.disableClose||(be.preventDefault(),function Ct(rn,re,ue){rn._closeInteractionType=re,rn.close(ue)}(this,"keydown"===be.type?"keyboard":"mouse"))})}close(re){this._result=re,this._containerInstance._animationStateChanged.pipe((0,O.h)(ue=>"closing"===ue.state),(0,G.q)(1)).subscribe(ue=>{this._beforeClosed.next(re),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ue.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(re){let ue=this._ref.config.positionStrategy;return re&&(re.left||re.right)?re.left?ue.left(re.left):ue.right(re.right):ue.centerHorizontally(),re&&(re.top||re.bottom)?re.top?ue.top(re.top):ue.bottom(re.bottom):ue.centerVertically(),this._ref.updatePosition(),this}updateSize(re="",ue=""){return this._ref.updateSize(re,ue),this}addPanelClass(re){return this._ref.addPanelClass(re),this}removePanelClass(re){return this._ref.removePanelClass(re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}let Pt=0,$t=(()=>{class rn{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ue=this._parentDialog;return ue?ue._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(ue,Ft,be,qt,Te,Me,_n,ce,ye,Xt){this._overlay=ue,this._defaultOptions=be,this._parentDialog=qt,this._dialogRefConstructor=_n,this._dialogContainerType=ce,this._dialogDataToken=ye,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new f.x,this._afterOpenedAtThisLevel=new f.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=A,this.afterAllClosed=(0,y.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,U.O)(void 0))),this._scrollStrategy=Me,this._dialog=Ft.get(o.Vq)}open(ue,Ft){let be;(Ft={...this._defaultOptions||new A,...Ft}).id=Ft.id||`${this._idPrefix}${Pt++}`,Ft.scrollStrategy=Ft.scrollStrategy||this._scrollStrategy();const qt=this._dialog.open(ue,{...Ft,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Ft},{provide:o.ib,useValue:Ft}]},templateContext:()=>({dialogRef:be}),providers:(Te,Me,_n)=>(be=new this._dialogRefConstructor(Te,Ft,_n),be.updatePosition(Ft?.position),[{provide:this._dialogContainerType,useValue:_n},{provide:this._dialogDataToken,useValue:Me.data},{provide:this._dialogRefConstructor,useValue:be}])});return be.componentRef=qt.componentRef,be.componentInstance=qt.componentInstance,this.openDialogs.push(be),this.afterOpened.next(be),be.afterClosed().subscribe(()=>{const Te=this.openDialogs.indexOf(be);Te>-1&&(this.openDialogs.splice(Te,1),this.openDialogs.length||this._getAfterAllClosed().next())}),be}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ue){return this.openDialogs.find(Ft=>Ft.id===ue)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(ue){let Ft=ue.length;for(;Ft--;)ue[Ft].close()}static#t=this.\u0275fac=function(Ft){x.$Z()};static#e=this.\u0275prov=x.Yz7({token:rn,factory:rn.\u0275fac})}return rn})();const yt={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},ee={dialogContainer:(0,ut.X$)("dialogContainer",[(0,ut.SB)("void, exit",(0,ut.oB)({opacity:0,transform:"scale(0.7)"})),(0,ut.SB)("enter",(0,ut.oB)({transform:"none"})),(0,ut.eR)("* => enter",(0,ut.ru)([(0,ut.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,ut.oB)({transform:"none",opacity:1})),(0,ut.IO)("@*",(0,ut.pV)(),{optional:!0})]),yt),(0,ut.eR)("* => void, * => exit",(0,ut.ru)([(0,ut.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,ut.oB)({opacity:0})),(0,ut.IO)("@*",(0,ut.pV)(),{optional:!0})]),yt)])};function B(rn,re){}const At_params_enterAnimationDuration="150ms",At_params_exitAnimationDuration="75ms";class st extends A{constructor(){super(...arguments),this.enterAnimationDuration=yt.params.enterAnimationDuration,this.exitAnimationDuration=yt.params.exitAnimationDuration}}let ie=(()=>{class rn extends q{_onAnimationDone({toState:ue,totalTime:Ft}){"enter"===ue?this._openAnimationDone(Ft):"exit"===ue&&this._animationStateChanged.next({state:"closed",totalTime:Ft})}_onAnimationStart({toState:ue,totalTime:Ft}){"enter"===ue?this._animationStateChanged.next({state:"opening",totalTime:Ft}):("exit"===ue||"void"===ue)&&this._animationStateChanged.next({state:"closing",totalTime:Ft})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}constructor(ue,Ft,be,qt,Te,Me,_n,ce,ye){super(ue,Ft,be,qt,Te,Me,_n,ye),this._changeDetectorRef=ce,this._state="enter"}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||At_params_enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||At_params_exitAnimationDuration}}}static#t=this.\u0275fac=function(Ft){return new(Ft||rn)(x.Y36(x.SBq),x.Y36(R.qV),x.Y36(i.K0,8),x.Y36(st),x.Y36(R.ic),x.Y36(x.R0b),x.Y36(e.Iu),x.Y36(x.sBO),x.Y36(R.tE))};static#e=this.\u0275cmp=x.Xpm({type:rn,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(Ft,be){1&Ft&&x.WFA("@dialogContainer.start",function(Te){return be._onAnimationStart(Te)})("@dialogContainer.done",function(Te){return be._onAnimationDone(Te)}),2&Ft&&(x.Ikx("id",be._config.id),x.uIk("aria-modal",be._config.ariaModal)("role",be._config.role)("aria-labelledby",be._config.ariaLabel?null:be._ariaLabelledByQueue[0])("aria-label",be._config.ariaLabel)("aria-describedby",be._config.ariaDescribedBy||null),x.d8E("@dialogContainer",be._getAnimationState()))},features:[x.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ft,be){1&Ft&&x.YNc(0,B,0,0,"ng-template",0)},dependencies:[g.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[ee.dialogContainer]}})}return rn})();class Ae extends zt{}const en=new x.OlP("MatDialogData"),In=new x.OlP("mat-dialog-default-options"),Ve=new x.OlP("mat-dialog-scroll-strategy"),ft={provide:Ve,deps:[e.aV],useFactory:function jt(rn){return()=>rn.scrollStrategies.block()}};let Gt=(()=>{class rn extends $t{constructor(ue,Ft,be,qt,Te,Me,_n,ce){super(ue,Ft,qt,Me,_n,Te,Ae,ie,en,ce),this.dialogConfigClass=st}static#t=this.\u0275fac=function(Ft){return new(Ft||rn)(x.LFG(e.aV),x.LFG(x.zs3),x.LFG(i.Ye,8),x.LFG(In,8),x.LFG(Ve),x.LFG(rn,12),x.LFG(e.Xj),x.LFG(x.QbO,8))};static#e=this.\u0275prov=x.Yz7({token:rn,factory:rn.\u0275fac})}return rn})(),Ce=0,me=(()=>{class rn{constructor(ue,Ft,be){this._dialogRef=ue,this._elementRef=Ft,this._dialog=be,this.id="mat-dialog-title-"+Ce++}ngOnInit(){this._dialogRef||(this._dialogRef=function gn(rn,re){let ue=rn.nativeElement.parentElement;for(;ue&&!ue.classList.contains("mat-dialog-container");)ue=ue.parentElement;return ue?re.find(Ft=>Ft.id===ue.id):null}(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const ue=this._dialogRef?._containerInstance?._ariaLabelledByQueue;ue&&Promise.resolve().then(()=>{const Ft=ue.indexOf(this.id);Ft>-1&&ue.splice(Ft,1)})}static#t=this.\u0275fac=function(Ft){return new(Ft||rn)(x.Y36(Ae,8),x.Y36(x.SBq),x.Y36(Gt))};static#e=this.\u0275dir=x.lG2({type:rn,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(Ft,be){2&Ft&&x.Ikx("id",be.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return rn})(),De=(()=>{class rn{static#t=this.\u0275fac=function(Ft){return new(Ft||rn)};static#e=this.\u0275dir=x.lG2({type:rn,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]})}return rn})(),Xe=(()=>{class rn{static#t=this.\u0275fac=function(Ft){return new(Ft||rn)};static#e=this.\u0275mod=x.oAB({type:rn});static#n=this.\u0275inj=x.cJS({providers:[Gt,ft],imports:[o.Su,e.U8,g.eL,l.BQ,l.BQ]})}return rn})()},4187:(Je,Rt,c)=>{"use strict";c.d(Rt,{$V:()=>$t,nI:()=>F,nX:()=>yt,v_:()=>St,wp:()=>ee});var o=c(7131),e=c(6814),g=c(5879),x=c(3680),l=c(1043),i=c(9388),R=c(2495),f=c(8645),t=c(3019),y=c(2438),O=c(7921),G=c(9773),U=c(8180),lt=c(2831);const ut=["connectionContainer"],Ht=["inputContainer"],A=["label"];function xt(B,At){1&B&&(g.ynx(0),g.TgZ(1,"div",14),g._UZ(2,"div",15)(3,"div",16)(4,"div",17),g.qZA(),g.TgZ(5,"div",18),g._UZ(6,"div",15)(7,"div",16)(8,"div",17),g.qZA(),g.BQk())}function tt(B,At){if(1&B){const st=g.EpF();g.TgZ(0,"div",19),g.NdJ("cdkObserveContent",function(){g.CHM(st);const Ae=g.oxw();return g.KtG(Ae.updateOutlineGap())}),g.Hsn(1,1),g.qZA()}if(2&B){const st=g.oxw();g.Q6J("cdkObserveContentDisabled","outline"!=st.appearance)}}function ct(B,At){if(1&B&&(g.ynx(0),g.Hsn(1,2),g.TgZ(2,"span"),g._uU(3),g.qZA(),g.BQk()),2&B){const st=g.oxw(2);g.xp6(3),g.Oqu(st._control.placeholder)}}function _(B,At){1&B&&g.Hsn(0,3,["*ngSwitchCase","true"])}function j(B,At){1&B&&(g.TgZ(0,"span",23),g._uU(1," *"),g.qZA())}function q(B,At){if(1&B){const st=g.EpF();g.TgZ(0,"label",20,21),g.NdJ("cdkObserveContent",function(){g.CHM(st);const Ae=g.oxw();return g.KtG(Ae.updateOutlineGap())}),g.YNc(2,ct,4,1,"ng-container",12),g.YNc(3,_,1,0,"ng-content",12),g.YNc(4,j,2,0,"span",22),g.qZA()}if(2&B){const st=g.oxw();g.ekj("mat-empty",st._control.empty&&!st._shouldAlwaysFloat())("mat-form-field-empty",st._control.empty&&!st._shouldAlwaysFloat())("mat-accent","accent"==st.color)("mat-warn","warn"==st.color),g.Q6J("cdkObserveContentDisabled","outline"!=st.appearance)("id",st._labelId)("ngSwitch",st._hasLabel()),g.uIk("for",st._control.id)("aria-owns",st._control.id),g.xp6(2),g.Q6J("ngSwitchCase",!1),g.xp6(1),g.Q6J("ngSwitchCase",!0),g.xp6(1),g.Q6J("ngIf",!st.hideRequiredMarker&&st._control.required&&!st._control.disabled)}}function ht(B,At){1&B&&(g.TgZ(0,"div",24),g.Hsn(1,4),g.qZA())}function vt(B,At){if(1&B&&(g.TgZ(0,"div",25),g._UZ(1,"span",26),g.qZA()),2&B){const st=g.oxw();g.xp6(1),g.ekj("mat-accent","accent"==st.color)("mat-warn","warn"==st.color)}}function gt(B,At){if(1&B&&(g.TgZ(0,"div"),g.Hsn(1,5),g.qZA()),2&B){const st=g.oxw();g.Q6J("@transitionMessages",st._subscriptAnimationState)}}function zt(B,At){if(1&B&&(g.TgZ(0,"div",30),g._uU(1),g.qZA()),2&B){const st=g.oxw(2);g.Q6J("id",st._hintLabelId),g.xp6(1),g.Oqu(st.hintLabel)}}function Ct(B,At){if(1&B&&(g.TgZ(0,"div",27),g.YNc(1,zt,2,2,"div",28),g.Hsn(2,6),g._UZ(3,"div",29),g.Hsn(4,7),g.qZA()),2&B){const st=g.oxw();g.Q6J("@transitionMessages",st._subscriptAnimationState),g.xp6(1),g.Q6J("ngIf",st.hintLabel)}}const H=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],J=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let z=0,F=(()=>{class B{constructor(st,ie){this.id="mat-error-"+z++,st||ie.nativeElement.setAttribute("aria-live","polite")}static#t=this.\u0275fac=function(ie){return new(ie||B)(g.$8M("aria-live"),g.Y36(g.SBq))};static#e=this.\u0275dir=g.lG2({type:B,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(ie,Ae){2&ie&&g.uIk("id",Ae.id)},inputs:{id:"id"},features:[g._Bn([{provide:l.ab,useExisting:B}])]})}return B})();const V=new g.OlP("MatHint");let $t=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275dir=g.lG2({type:B,selectors:[["mat-label"]]})}return B})(),Lt=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275dir=g.lG2({type:B,selectors:[["mat-placeholder"]]})}return B})(),Jt=0;const pt=(0,x.pj)(class{constructor(B){this._elementRef=B}},"primary"),Dt=new g.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let St=(()=>{class B extends pt{get appearance(){return this._appearance}set appearance(st){const ie=this._appearance;this._appearance=st||this._defaults?.appearance||"legacy","outline"===this._appearance&&ie!==st&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(st){this._hideRequiredMarker=(0,R.Ig)(st)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(st){this._hintLabel=st,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(st){st!==this._floatLabel&&(this._floatLabel=st||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(st){this._explicitFormFieldControl=st}constructor(st,ie,Ae,en,In,Ve,jt){super(st),this._changeDetectorRef=ie,this._dir=Ae,this._defaults=en,this._platform=In,this._ngZone=Ve,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new f.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Jt++,this._labelId="mat-form-field-label-"+Jt++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==jt,this.appearance=en?.appearance||"legacy",en&&(this._hideRequiredMarker=!!en.hideRequiredMarker,en.color&&(this.color=this.defaultColor=en.color))}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const st=this._control;st.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${st.controlType}`),st.stateChanges.pipe((0,O.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),st.ngControl&&st.ngControl.valueChanges&&st.ngControl.valueChanges.pipe((0,G.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,t.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,O.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,G.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(st){const ie=this._control?this._control.ngControl:null;return ie&&ie[st]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,y.R)(this._label.nativeElement,"transitionend").pipe((0,U.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let st=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&st.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ie=this._hintChildren?this._hintChildren.find(en=>"start"===en.align):null,Ae=this._hintChildren?this._hintChildren.find(en=>"end"===en.align):null;ie?st.push(ie.id):this._hintLabel&&st.push(this._hintLabelId),Ae&&st.push(Ae.id)}else this._errorChildren&&st.push(...this._errorChildren.map(ie=>ie.id));this._control.setDescribedByIds(st)}}_validateControlChild(){}updateOutlineGap(){const st=this._label?this._label.nativeElement:null,ie=this._connectionContainerRef.nativeElement,Ae=".mat-form-field-outline-start",en=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!st||!st.children.length||!st.textContent.trim()){const Gt=ie.querySelectorAll(`${Ae}, ${en}`);for(let Ce=0;Ce<Gt.length;Ce++)Gt[Ce].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let In=0,Ve=0;const jt=ie.querySelectorAll(Ae),ft=ie.querySelectorAll(en);if(this._label&&this._label.nativeElement.children.length){const Gt=ie.getBoundingClientRect();if(0===Gt.width&&0===Gt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Ce=this._getStartEnd(Gt),ve=st.children,me=this._getStartEnd(ve[0].getBoundingClientRect());let De=0;for(let tn=0;tn<ve.length;tn++)De+=ve[tn].offsetWidth;In=Math.abs(me-Ce)-5,Ve=De>0?.75*De+10:0}for(let Gt=0;Gt<jt.length;Gt++)jt[Gt].style.width=`${In}px`;for(let Gt=0;Gt<ft.length;Gt++)ft[Gt].style.width=`${Ve}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(st){return this._dir&&"rtl"===this._dir.value?st.right:st.left}_isAttachedToDOM(){const st=this._elementRef.nativeElement;if(st.getRootNode){const ie=st.getRootNode();return ie&&ie!==st}return document.documentElement.contains(st)}static#t=this.\u0275fac=function(ie){return new(ie||B)(g.Y36(g.SBq),g.Y36(g.sBO),g.Y36(i.Is,8),g.Y36(Dt,8),g.Y36(lt.t4),g.Y36(g.R0b),g.Y36(g.QbO,8))};static#e=this.\u0275cmp=g.Xpm({type:B,selectors:[["mat-form-field"]],contentQueries:function(ie,Ae,en){if(1&ie&&(g.Suo(en,l.Eo,5),g.Suo(en,l.Eo,7),g.Suo(en,$t,5),g.Suo(en,$t,7),g.Suo(en,Lt,5),g.Suo(en,l.ab,5),g.Suo(en,V,5),g.Suo(en,l.Px,5),g.Suo(en,l.Ve,5)),2&ie){let In;g.iGM(In=g.CRH())&&(Ae._controlNonStatic=In.first),g.iGM(In=g.CRH())&&(Ae._controlStatic=In.first),g.iGM(In=g.CRH())&&(Ae._labelChildNonStatic=In.first),g.iGM(In=g.CRH())&&(Ae._labelChildStatic=In.first),g.iGM(In=g.CRH())&&(Ae._placeholderChild=In.first),g.iGM(In=g.CRH())&&(Ae._errorChildren=In),g.iGM(In=g.CRH())&&(Ae._hintChildren=In),g.iGM(In=g.CRH())&&(Ae._prefixChildren=In),g.iGM(In=g.CRH())&&(Ae._suffixChildren=In)}},viewQuery:function(ie,Ae){if(1&ie&&(g.Gf(ut,7),g.Gf(Ht,5),g.Gf(A,5)),2&ie){let en;g.iGM(en=g.CRH())&&(Ae._connectionContainerRef=en.first),g.iGM(en=g.CRH())&&(Ae._inputContainerRef=en.first),g.iGM(en=g.CRH())&&(Ae._label=en.first)}},hostAttrs:["ngSkipHydration","",1,"mat-form-field"],hostVars:40,hostBindings:function(ie,Ae){2&ie&&g.ekj("mat-form-field-appearance-standard","standard"==Ae.appearance)("mat-form-field-appearance-fill","fill"==Ae.appearance)("mat-form-field-appearance-outline","outline"==Ae.appearance)("mat-form-field-appearance-legacy","legacy"==Ae.appearance)("mat-form-field-invalid",Ae._control.errorState)("mat-form-field-can-float",Ae._canLabelFloat())("mat-form-field-should-float",Ae._shouldLabelFloat())("mat-form-field-has-label",Ae._hasFloatingLabel())("mat-form-field-hide-placeholder",Ae._hideControlPlaceholder())("mat-form-field-disabled",Ae._control.disabled)("mat-form-field-autofilled",Ae._control.autofilled)("mat-focused",Ae._control.focused)("ng-untouched",Ae._shouldForward("untouched"))("ng-touched",Ae._shouldForward("touched"))("ng-pristine",Ae._shouldForward("pristine"))("ng-dirty",Ae._shouldForward("dirty"))("ng-valid",Ae._shouldForward("valid"))("ng-invalid",Ae._shouldForward("invalid"))("ng-pending",Ae._shouldForward("pending"))("_mat-animation-noopable",!Ae._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[g._Bn([{provide:l.G_,useExisting:B}]),g.qOj],ngContentSelectors:J,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(ie,Ae){1&ie&&(g.F$t(H),g.TgZ(0,"div",0)(1,"div",1,2),g.NdJ("click",function(In){return Ae._control.onContainerClick(In)}),g.YNc(3,xt,9,0,"ng-container",3),g.YNc(4,tt,2,1,"div",4),g.TgZ(5,"div",5,6),g.Hsn(7),g.TgZ(8,"span",7),g.YNc(9,q,5,16,"label",8),g.qZA()(),g.YNc(10,ht,2,0,"div",9),g.qZA(),g.YNc(11,vt,2,4,"div",10),g.TgZ(12,"div",11),g.YNc(13,gt,2,1,"div",12),g.YNc(14,Ct,5,2,"div",13),g.qZA()()),2&ie&&(g.xp6(3),g.Q6J("ngIf","outline"==Ae.appearance),g.xp6(1),g.Q6J("ngIf",Ae._prefixChildren.length),g.xp6(5),g.Q6J("ngIf",Ae._hasFloatingLabel()),g.xp6(1),g.Q6J("ngIf",Ae._suffixChildren.length),g.xp6(1),g.Q6J("ngIf","outline"!=Ae.appearance),g.xp6(1),g.Q6J("ngSwitch",Ae._getDisplayedMessages()),g.xp6(1),g.Q6J("ngSwitchCase","error"),g.xp6(1),g.Q6J("ngSwitchCase","hint"))},dependencies:[e.O5,e.RF,e.n9,o.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}.mat-form-field .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-button-base,.mat-form-field .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-button-base{width:40px;height:40px;padding:8px 0}.mat-form-field .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{font-size:1em;display:inline-block;margin:-2px 0 1px}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button{font-size:inherit;width:1.5em;height:1.5em;padding:0}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle .mat-mdc-icon-button .mat-icon{line-height:1.5em;margin:0}.mat-form-field .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-datepicker-toggle .mat-mdc-button-base{vertical-align:baseline}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[l.TN.transitionMessages]},changeDetection:0})}return B})(),yt=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275dir=g.lG2({type:B,selectors:[["","matSuffix",""]],features:[g._Bn([{provide:l.Ve,useExisting:B}])]})}return B})(),ee=(()=>{class B{static#t=this.\u0275fac=function(ie){return new(ie||B)};static#e=this.\u0275mod=g.oAB({type:B});static#n=this.\u0275inj=g.cJS({imports:[e.ez,x.BQ,o.Q8,x.BQ]})}return B})()},2400:(Je,Rt,c)=>{"use strict";c.d(Rt,{k0:()=>R,x4:()=>f});var o=c(5879),e=c(4516),g=c(1043),x=c(4187),l=c(6263),i=c(3680);let R=(()=>{class t extends e.Nt{constructor(){super(...arguments),this._legacyFormField=(0,o.f3M)(g.G_,{optional:!0})}_getPlaceholder(){const O=this._legacyFormField;return O&&"legacy"===O.appearance&&!O._hasLabel?.()?null:this.placeholder}static#t=this.\u0275fac=function(){let O;return function(U){return(O||(O=o.n5z(t)))(U||t)}}();static#e=this.\u0275dir=o.lG2({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:15,hostBindings:function(G,U){2&G&&(o.uIk("data-placeholder",U.placeholder),o.ekj("mat-input-server",U._isServer)("mat-mdc-input-element",!1)("mat-mdc-form-field-textarea-control",!1)("mat-mdc-form-field-input-control",!1)("mdc-text-field__input",!1)("mat-mdc-native-select-inline",!1)("mat-native-select-inline",U._isInlineSelect()))},exportAs:["matInput"],features:[o._Bn([{provide:g.Eo,useExisting:t}]),o.qOj]})}return t})(),f=(()=>{class t{static#t=this.\u0275fac=function(G){return new(G||t)};static#e=this.\u0275mod=o.oAB({type:t});static#n=this.\u0275inj=o.cJS({providers:[i.rD],imports:[l.Ky,x.wp,i.BQ,l.Ky,x.wp]})}return t})()},6718:(Je,Rt,c)=>{"use strict";c.d(Rt,{W0:()=>ve,tN:()=>me,jT:()=>gn,D8:()=>De});var o=c(5879),e=c(4300),g=c(2495),x=c(6028),l=c(8645),i=c(3019),R=c(7394),f=c(2096),t=c(6410),y=c(7921),O=c(4664),G=c(8180),U=c(9773),lt=c(2181),ut=c(5177),Ht=c(3680),A=c(6814),xt=c(8484),tt=c(6825),ct=c(9388),_=c(9594),j=c(2831);const q=["mat-menu-item",""];function ht(Xe,rn){1&Xe&&(o.O4$(),o.TgZ(0,"svg",3),o._UZ(1,"polygon",4),o.qZA())}const vt=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],gt=["mat-icon, [matMenuItemIcon]","*"],H=new o.OlP("MAT_MENU_PANEL"),J=(0,Ht.Kr)((0,Ht.Id)(class{}));let z=(()=>{class Xe extends J{constructor(re,ue,Ft,be,qt){super(),this._elementRef=re,this._document=ue,this._focusMonitor=Ft,this._parentMenu=be,this._changeDetectorRef=qt,this.role="menuitem",this._hovered=new l.x,this._focused=new l.x,this._highlighted=!1,this._triggersSubmenu=!1,be?.addItem?.(this)}focus(re,ue){this._focusMonitor&&re?this._focusMonitor.focusVia(this._getHostElement(),re,ue):this._getHostElement().focus(ue),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(re){this.disabled&&(re.preventDefault(),re.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const re=this._elementRef.nativeElement.cloneNode(!0),ue=re.querySelectorAll("mat-icon, .material-icons");for(let Ft=0;Ft<ue.length;Ft++)ue[Ft].remove();return re.textContent?.trim()||""}_setHighlighted(re){this._highlighted=re,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(re){this._triggersSubmenu=re,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static#t=this.\u0275fac=function(ue){return new(ue||Xe)(o.Y36(o.SBq),o.Y36(A.K0),o.Y36(e.tE),o.Y36(H,8),o.Y36(o.sBO))};static#e=this.\u0275cmp=o.Xpm({type:Xe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(ue,Ft){1&ue&&o.NdJ("click",function(qt){return Ft._checkDisabled(qt)})("mouseenter",function(){return Ft._handleMouseEnter()}),2&ue&&(o.uIk("role",Ft.role)("tabindex",Ft._getTabIndex())("aria-disabled",Ft.disabled)("disabled",Ft.disabled||null),o.ekj("mat-mdc-menu-item-highlighted",Ft._highlighted)("mat-mdc-menu-item-submenu-trigger",Ft._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[o.qOj],attrs:q,ngContentSelectors:gt,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ue,Ft){1&ue&&(o.F$t(vt),o.Hsn(0),o.TgZ(1,"span",0),o.Hsn(2,1),o.qZA(),o._UZ(3,"div",1),o.YNc(4,ht,2,0,"svg",2)),2&ue&&(o.xp6(3),o.Q6J("matRippleDisabled",Ft.disableRipple||Ft.disabled)("matRippleTrigger",Ft._getHostElement()),o.xp6(1),o.Q6J("ngIf",Ft._triggersSubmenu))},dependencies:[A.O5,Ht.wG],encapsulation:2,changeDetection:0})}return Xe})();const Pt=new o.OlP("MatMenuContent"),Jt={transformMenu:(0,tt.X$)("transformMenu",[(0,tt.SB)("void",(0,tt.oB)({opacity:0,transform:"scale(0.8)"})),(0,tt.eR)("void => enter",(0,tt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,tt.oB)({opacity:1,transform:"scale(1)"}))),(0,tt.eR)("* => void",(0,tt.jt)("100ms 25ms linear",(0,tt.oB)({opacity:0})))]),fadeInItems:(0,tt.X$)("fadeInItems",[(0,tt.SB)("showing",(0,tt.oB)({opacity:1})),(0,tt.eR)("void => *",[(0,tt.oB)({opacity:0}),(0,tt.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let pt=0;const Dt=new o.OlP("mat-menu-default-options",{providedIn:"root",factory:function St(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let mt=(()=>{class Xe{get xPosition(){return this._xPosition}set xPosition(re){this._xPosition=re,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(re){this._yPosition=re,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(re){this._overlapTrigger=(0,g.Ig)(re)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(re){this._hasBackdrop=(0,g.Ig)(re)}set panelClass(re){const ue=this._previousPanelClass;ue&&ue.length&&ue.split(" ").forEach(Ft=>{this._classList[Ft]=!1}),this._previousPanelClass=re,re&&re.length&&(re.split(" ").forEach(Ft=>{this._classList[Ft]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(re){this.panelClass=re}constructor(re,ue,Ft,be){this._elementRef=re,this._ngZone=ue,this._changeDetectorRef=be,this._directDescendantItems=new o.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new l.x,this.closed=new o.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+pt++,this.overlayPanelClass=Ft.overlayPanelClass||"",this._xPosition=Ft.xPosition,this._yPosition=Ft.yPosition,this.backdropClass=Ft.backdropClass,this._overlapTrigger=Ft.overlapTrigger,this._hasBackdrop=Ft.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new e.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,y.O)(this._directDescendantItems),(0,O.w)(re=>(0,i.T)(...re.map(ue=>ue._focused)))).subscribe(re=>this._keyManager.updateActiveItem(re)),this._directDescendantItems.changes.subscribe(re=>{const ue=this._keyManager;if("enter"===this._panelAnimationState&&ue.activeItem?._hasFocus()){const Ft=re.toArray(),be=Math.max(0,Math.min(Ft.length-1,ue.activeItemIndex||0));Ft[be]&&!Ft[be].disabled?ue.setActiveItem(be):ue.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,y.O)(this._directDescendantItems),(0,O.w)(ue=>(0,i.T)(...ue.map(Ft=>Ft._hovered))))}addItem(re){}removeItem(re){}_handleKeydown(re){const ue=re.keyCode,Ft=this._keyManager;switch(ue){case x.hY:(0,x.Vb)(re)||(re.preventDefault(),this.closed.emit("keydown"));break;case x.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case x.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(ue===x.LH||ue===x.JH)&&Ft.setFocusOrigin("keyboard"),void Ft.onKeydown(re)}re.stopPropagation()}focusFirstItem(re="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>{let ue=null;if(this._directDescendantItems.length&&(ue=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!ue||!ue.contains(document.activeElement)){const Ft=this._keyManager;Ft.setFocusOrigin(re).setFirstItemActive(),!Ft.activeItem&&ue&&ue.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(re){const ue=Math.min(this._baseElevation+re,24),Ft=`${this._elevationPrefix}${ue}`,be=Object.keys(this._classList).find(qt=>qt.startsWith(this._elevationPrefix));(!be||be===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Ft]=!0,this._previousElevation=Ft)}setPositionClasses(re=this.xPosition,ue=this.yPosition){const Ft=this._classList;Ft["mat-menu-before"]="before"===re,Ft["mat-menu-after"]="after"===re,Ft["mat-menu-above"]="above"===ue,Ft["mat-menu-below"]="below"===ue,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(re){this._animationDone.next(re),this._isAnimating=!1}_onAnimationStart(re){this._isAnimating=!0,"enter"===re.toState&&0===this._keyManager.activeItemIndex&&(re.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,y.O)(this._allItems)).subscribe(re=>{this._directDescendantItems.reset(re.filter(ue=>ue._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#t=this.\u0275fac=function(ue){return new(ue||Xe)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Dt),o.Y36(o.sBO))};static#e=this.\u0275dir=o.lG2({type:Xe,contentQueries:function(ue,Ft,be){if(1&ue&&(o.Suo(be,Pt,5),o.Suo(be,z,5),o.Suo(be,z,4)),2&ue){let qt;o.iGM(qt=o.CRH())&&(Ft.lazyContent=qt.first),o.iGM(qt=o.CRH())&&(Ft._allItems=qt),o.iGM(qt=o.CRH())&&(Ft.items=qt)}},viewQuery:function(ue,Ft){if(1&ue&&o.Gf(o.Rgc,5),2&ue){let be;o.iGM(be=o.CRH())&&(Ft.templateRef=be.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}return Xe})();const ee=new o.OlP("mat-menu-scroll-strategy"),At={provide:ee,deps:[_.aV],useFactory:function B(Xe){return()=>Xe.scrollStrategies.reposition()}},st=(0,j.i$)({passive:!0});let Ae=(()=>{class Xe{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(re){this.menu=re}get menu(){return this._menu}set menu(re){re!==this._menu&&(this._menu=re,this._menuCloseSubscription.unsubscribe(),re&&(this._menuCloseSubscription=re.close.subscribe(ue=>{this._destroyMenu(ue),("click"===ue||"tab"===ue)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ue)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(re,ue,Ft,be,qt,Te,Me,_n,ce){this._overlay=re,this._element=ue,this._viewContainerRef=Ft,this._menuItemInstance=Te,this._dir=Me,this._focusMonitor=_n,this._ngZone=ce,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=R.w0.EMPTY,this._hoverSubscription=R.w0.EMPTY,this._menuCloseSubscription=R.w0.EMPTY,this._changeDetectorRef=(0,o.f3M)(o.sBO),this._handleTouchStart=ye=>{(0,e.yG)(ye)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new o.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new o.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=be,this._parentMaterialMenu=qt instanceof mt?qt:void 0,ue.nativeElement.addEventListener("touchstart",this._handleTouchStart,st)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,st),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const re=this.menu;if(this._menuOpen||!re)return;const ue=this._createOverlay(re),Ft=ue.getConfig(),be=Ft.positionStrategy;this._setPosition(re,be),Ft.hasBackdrop=null==re.hasBackdrop?!this.triggersSubmenu():re.hasBackdrop,ue.attach(this._getPortal(re)),re.lazyContent&&re.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(re),re instanceof mt&&(re._startAnimation(),re._directDescendantItems.changes.pipe((0,U.R)(re.close)).subscribe(()=>{be.withLockedPosition(!1).reapplyLastPosition(),be.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(re,ue){this._focusMonitor&&re?this._focusMonitor.focusVia(this._element,re,ue):this._element.nativeElement.focus(ue)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(re){if(!this._overlayRef||!this.menuOpen)return;const ue=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===re||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ue instanceof mt?(ue._resetAnimation(),ue.lazyContent?ue._animationDone.pipe((0,lt.h)(Ft=>"void"===Ft.toState),(0,G.q)(1),(0,U.R)(ue.lazyContent._attached)).subscribe({next:()=>ue.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ue?.lazyContent?.detach())}_initMenu(re){re.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,re.direction=this.dir,this._setMenuElevation(re),re.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(re){if(re.setElevation){let ue=0,Ft=re.parentMenu;for(;Ft;)ue++,Ft=Ft.parentMenu;re.setElevation(ue)}}_setIsMenuOpen(re){re!==this._menuOpen&&(this._menuOpen=re,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(re),this._changeDetectorRef.markForCheck())}_createOverlay(re){if(!this._overlayRef){const ue=this._getOverlayConfig(re);this._subscribeToPositions(re,ue.positionStrategy),this._overlayRef=this._overlay.create(ue),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(re){return new _.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:re.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:re.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(re,ue){re.setPositionClasses&&ue.positionChanges.subscribe(Ft=>{const be="start"===Ft.connectionPair.overlayX?"after":"before",qt="top"===Ft.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>re.setPositionClasses(be,qt)):re.setPositionClasses(be,qt)})}_setPosition(re,ue){let[Ft,be]="before"===re.xPosition?["end","start"]:["start","end"],[qt,Te]="above"===re.yPosition?["bottom","top"]:["top","bottom"],[Me,_n]=[qt,Te],[ce,ye]=[Ft,be],Xt=0;if(this.triggersSubmenu()){if(ye=Ft="before"===re.xPosition?"start":"end",be=ce="end"===Ft?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const on=this._parentMaterialMenu.items.first;this._parentInnerPadding=on?on._getHostElement().offsetTop:0}Xt="bottom"===qt?this._parentInnerPadding:-this._parentInnerPadding}}else re.overlapTrigger||(Me="top"===qt?"bottom":"top",_n="top"===Te?"bottom":"top");ue.withPositions([{originX:Ft,originY:Me,overlayX:ce,overlayY:qt,offsetY:Xt},{originX:be,originY:Me,overlayX:ye,overlayY:qt,offsetY:Xt},{originX:Ft,originY:_n,overlayX:ce,overlayY:Te,offsetY:-Xt},{originX:be,originY:_n,overlayX:ye,overlayY:Te,offsetY:-Xt}])}_menuClosingActions(){const re=this._overlayRef.backdropClick(),ue=this._overlayRef.detachments(),Ft=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,f.of)(),be=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,lt.h)(qt=>qt!==this._menuItemInstance),(0,lt.h)(()=>this._menuOpen)):(0,f.of)();return(0,i.T)(re,Ft,be,ue)}_handleMousedown(re){(0,e.X6)(re)||(this._openedBy=0===re.button?"mouse":void 0,this.triggersSubmenu()&&re.preventDefault())}_handleKeydown(re){const ue=re.keyCode;(ue===x.K5||ue===x.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ue===x.SV&&"ltr"===this.dir||ue===x.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(re){this.triggersSubmenu()?(re.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,lt.h)(re=>re===this._menuItemInstance&&!re.disabled),(0,ut.g)(0,t.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof mt&&this.menu._isAnimating?this.menu._animationDone.pipe((0,G.q)(1),(0,ut.g)(0,t.E),(0,U.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(re){return(!this._portal||this._portal.templateRef!==re.templateRef)&&(this._portal=new xt.UE(re.templateRef,this._viewContainerRef)),this._portal}static#t=this.\u0275fac=function(ue){return new(ue||Xe)(o.Y36(_.aV),o.Y36(o.SBq),o.Y36(o.s_b),o.Y36(ee),o.Y36(H,8),o.Y36(z,10),o.Y36(ct.Is,8),o.Y36(e.tE),o.Y36(o.R0b))};static#e=this.\u0275dir=o.lG2({type:Xe,hostVars:3,hostBindings:function(ue,Ft){1&ue&&o.NdJ("click",function(qt){return Ft._handleClick(qt)})("mousedown",function(qt){return Ft._handleMousedown(qt)})("keydown",function(qt){return Ft._handleKeydown(qt)}),2&ue&&o.uIk("aria-haspopup",Ft.menu?"menu":null)("aria-expanded",Ft.menuOpen)("aria-controls",Ft.menuOpen?Ft.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}return Xe})();var Ve=c(6672);function jt(Xe,rn){if(1&Xe){const re=o.EpF();o.TgZ(0,"div",0),o.NdJ("keydown",function(Ft){o.CHM(re);const be=o.oxw();return o.KtG(be._handleKeydown(Ft))})("click",function(){o.CHM(re);const Ft=o.oxw();return o.KtG(Ft.closed.emit("click"))})("@transformMenu.start",function(Ft){o.CHM(re);const be=o.oxw();return o.KtG(be._onAnimationStart(Ft))})("@transformMenu.done",function(Ft){o.CHM(re);const be=o.oxw();return o.KtG(be._onAnimationDone(Ft))}),o.TgZ(1,"div",1),o.Hsn(2),o.qZA()()}if(2&Xe){const re=o.oxw();o.Q6J("id",re.panelId)("ngClass",re._classList)("@transformMenu",re._panelAnimationState),o.uIk("aria-label",re.ariaLabel||null)("aria-labelledby",re.ariaLabelledby||null)("aria-describedby",re.ariaDescribedby||null)}}const ft=["*"],Gt=["mat-menu-item",""];function Ce(Xe,rn){1&Xe&&(o.O4$(),o.TgZ(0,"svg",2),o._UZ(1,"polygon",3),o.qZA())}let ve=(()=>{class Xe extends mt{constructor(re,ue,Ft,be){super(re,ue,Ft,be),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}static#t=this.\u0275fac=function(ue){return new(ue||Xe)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(Dt),o.Y36(o.sBO))};static#e=this.\u0275cmp=o.Xpm({type:Xe,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:4,hostBindings:function(ue,Ft){2&ue&&o.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)("mat-id-collision",null)},exportAs:["matMenu"],features:[o._Bn([{provide:H,useExisting:Xe}]),o.qOj],ngContentSelectors:ft,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ue,Ft){1&ue&&(o.F$t(),o.YNc(0,jt,3,6,"ng-template"))},dependencies:[A.mk],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px;position:relative}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Jt.transformMenu,Jt.fadeInItems]},changeDetection:0})}return Xe})(),me=(()=>{class Xe extends z{static#t=this.\u0275fac=function(){let re;return function(Ft){return(re||(re=o.n5z(Xe)))(Ft||Xe)}}();static#e=this.\u0275cmp=o.Xpm({type:Xe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:20,hostBindings:function(ue,Ft){2&ue&&(o.uIk("role",Ft.role)("tabindex",Ft._getTabIndex())("aria-disabled",Ft.disabled.toString())("disabled",Ft.disabled||null),o.ekj("mat-menu-item",!0)("mat-menu-item-highlighted",Ft._highlighted)("mat-menu-item-submenu-trigger",Ft._triggersSubmenu)("mat-mdc-menu-item",!1)("mat-mdc-focus-indicator",!1)("mdc-list-item",!1)("mat-mdc-menu-item-highlighted",!1)("mat-mdc-menu-item-submenu-trigger",!1))},inputs:{disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matMenuItem"],features:[o._Bn([{provide:z,useExisting:Xe}]),o.qOj],attrs:Gt,ngContentSelectors:ft,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(ue,Ft){1&ue&&(o.F$t(),o.Hsn(0),o._UZ(1,"div",0),o.YNc(2,Ce,2,0,"svg",1)),2&ue&&(o.xp6(1),o.Q6J("matRippleDisabled",Ft.disableRipple||Ft.disabled)("matRippleTrigger",Ft._getHostElement()),o.xp6(1),o.Q6J("ngIf",Ft._triggersSubmenu))},dependencies:[A.O5,Ht.wG],encapsulation:2,changeDetection:0})}return Xe})(),De=(()=>{class Xe extends Ae{static#t=this.\u0275fac=function(){let re;return function(Ft){return(re||(re=o.n5z(Xe)))(Ft||Xe)}}();static#e=this.\u0275dir=o.lG2({type:Xe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[o.qOj]})}return Xe})(),gn=(()=>{class Xe{static#t=this.\u0275fac=function(ue){return new(ue||Xe)};static#e=this.\u0275mod=o.oAB({type:Xe});static#n=this.\u0275inj=o.cJS({providers:[At],imports:[A.ez,Ht.BQ,Ht.si,_.U8,Ve.ZD,Ht.BQ]})}return Xe})()},1438:(Je,Rt,c)=>{"use strict";c.d(Rt,{sN:()=>ht,UK:()=>vt});var o=c(2495),e=c(2831),g=c(6672),x=c(6814),l=c(5879),i=c(3680);const y=new l.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function O(){return{diameter:G}}}),G=100;var A=c(7394);function xt(zt,Ct){if(1&zt&&(l.O4$(),l._UZ(0,"circle",4)),2&zt){const H=l.oxw(),J=l.MAs(1);l.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+H._spinnerAnimationLabel)("stroke-dashoffset",H._getStrokeDashOffset(),"px")("stroke-dasharray",H._getStrokeCircumference(),"px")("stroke-width",H._getCircleStrokeWidth(),"%")("transform-origin",H._getCircleTransformOrigin(J)),l.uIk("r",H._getCircleRadius())}}function tt(zt,Ct){if(1&zt&&(l.O4$(),l._UZ(0,"circle",4)),2&zt){const H=l.oxw(),J=l.MAs(1);l.Udp("stroke-dashoffset",H._getStrokeDashOffset(),"px")("stroke-dasharray",H._getStrokeCircumference(),"px")("stroke-width",H._getCircleStrokeWidth(),"%")("transform-origin",H._getCircleTransformOrigin(J)),l.uIk("r",H._getCircleRadius())}}const j=(0,i.pj)(class{constructor(zt){this._elementRef=zt}},"primary");class ht extends j{static#t=this._diameters=new WeakMap;get diameter(){return this._diameter}set diameter(Ct){this._diameter=(0,o.su)(Ct),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(Ct){this._strokeWidth=(0,o.su)(Ct)}get value(){return"determinate"===this.mode?this._value:0}set value(Ct){this._value=Math.max(0,Math.min(100,(0,o.su)(Ct)))}constructor(Ct,H,J,z,F,rt,V,Pt,$t){super(Ct),this._document=J,this._nonce=$t,this._diameter=100,this._value=0,this._resizeSubscription=A.w0.EMPTY,this.mode="determinate";const Lt=ht._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Lt.has(J.head)||Lt.set(J.head,new Set([100])),this._noopAnimations="NoopAnimations"===z&&!!F&&!F._forceAnimations,"mat-spinner"===Ct.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),F&&(F.color&&(this.color=this.defaultColor=F.color),F.diameter&&(this.diameter=F.diameter),F.strokeWidth&&(this.strokeWidth=F.strokeWidth)),H.isBrowser&&H.SAFARI&&V&&rt&&Pt&&(this._resizeSubscription=V.change(150).subscribe(()=>{"indeterminate"===this.mode&&Pt.run(()=>rt.markForCheck())}))}ngOnInit(){const Ct=this._elementRef.nativeElement;this._styleRoot=(0,e.kV)(Ct)||this._document.head,this._attachStyleNode(),Ct.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const Ct=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${Ct} ${Ct}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(Ct){const H=50*(Ct.currentScale??1);return`${H}% ${H}%`}_attachStyleNode(){const Ct=this._styleRoot,H=this._diameter,J=ht._diameters;let z=J.get(Ct);if(!z||!z.has(H)){const F=this._document.createElement("style");this._nonce&&(F.nonce=this._nonce),F.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),F.textContent=this._getAnimationText(),Ct.appendChild(F),z||(z=new Set,J.set(Ct,z)),z.add(H)}}_getAnimationText(){const Ct=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n    0%      { stroke-dashoffset: START_VALUE;  transform: rotate(0); }\n    12.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(0); }\n    12.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(72.5deg); }\n    25%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(72.5deg); }\n\n    25.0001%   { stroke-dashoffset: START_VALUE;  transform: rotate(270deg); }\n    37.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(270deg); }\n    37.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(161.5deg); }\n    50%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(161.5deg); }\n\n    50.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(180deg); }\n    62.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(180deg); }\n    62.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(251.5deg); }\n    75%     { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(251.5deg); }\n\n    75.0001%  { stroke-dashoffset: START_VALUE;  transform: rotate(90deg); }\n    87.5%   { stroke-dashoffset: END_VALUE;    transform: rotate(90deg); }\n    87.5001%  { stroke-dashoffset: END_VALUE;    transform: rotateX(180deg) rotate(341.5deg); }\n    100%    { stroke-dashoffset: START_VALUE;  transform: rotateX(180deg) rotate(341.5deg); }\n  }\n".replace(/START_VALUE/g,""+.95*Ct).replace(/END_VALUE/g,""+.2*Ct).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}static#e=this.\u0275fac=function(H){return new(H||ht)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(x.K0,8),l.Y36(l.QbO,8),l.Y36(y),l.Y36(l.sBO),l.Y36(g.rL),l.Y36(l.R0b),l.Y36(l.Ojb,8))};static#n=this.\u0275cmp=l.Xpm({type:ht,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(H,J){2&H&&(l.uIk("aria-valuemin","determinate"===J.mode?0:null)("aria-valuemax","determinate"===J.mode?100:null)("aria-valuenow","determinate"===J.mode?J.value:null)("mode",J.mode),l.Udp("width",J.diameter,"px")("height",J.diameter,"px"),l.ekj("_mat-animation-noopable",J._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[l.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(H,J){1&H&&(l.O4$(),l.TgZ(0,"svg",0,1),l.YNc(2,xt,1,11,"circle",2),l.YNc(3,tt,1,9,"circle",3),l.qZA()),2&H&&(l.Udp("width",J.diameter,"px")("height",J.diameter,"px"),l.Q6J("ngSwitch","indeterminate"===J.mode),l.uIk("viewBox",J._getViewBox()),l.xp6(2),l.Q6J("ngSwitchCase",!0),l.xp6(1),l.Q6J("ngSwitchCase",!1))},dependencies:[x.RF,x.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0})}let vt=(()=>{class zt{static#t=this.\u0275fac=function(J){return new(J||zt)};static#e=this.\u0275mod=l.oAB({type:zt});static#n=this.\u0275inj=l.cJS({imports:[i.BQ,x.ez,i.BQ]})}return zt})()},1036:(Je,Rt,c)=>{"use strict";c.d(Rt,{vy:()=>gt,OY:()=>vt,Xo:()=>zt});var o=c(5879),e=c(3680),g=c(4300),x=c(8337),l=c(6223),i=c(2495);const R=["input"];let t=0;class y{constructor(H,J){this.source=H,this.value=J}}const G=new o.OlP("MatRadioGroup"),U=new o.OlP("mat-radio-default-options",{providedIn:"root",factory:function lt(){return{color:"accent"}}});let ut=(()=>{class Ct{get name(){return this._name}set name(J){this._name=J,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(J){this._labelPosition="before"===J?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(J){this._value!==J&&(this._value=J,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(J){this._selected=J,this.value=J?J.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(J){this._disabled=(0,i.Ig)(J),this._markRadiosForCheck()}get required(){return this._required}set required(J){this._required=(0,i.Ig)(J),this._markRadiosForCheck()}constructor(J){this._changeDetector=J,this._value=null,this._name="mat-radio-group-"+t++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new o.vpe}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(J=>J===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(J=>{J.name=this.name,J._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(z=>{z.checked=this.value===z.value,z.checked&&(this._selected=z)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new y(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(J=>J._markForCheck())}writeValue(J){this.value=J,this._changeDetector.markForCheck()}registerOnChange(J){this._controlValueAccessorChangeFn=J}registerOnTouched(J){this.onTouched=J}setDisabledState(J){this.disabled=J,this._changeDetector.markForCheck()}static#t=this.\u0275fac=function(z){return new(z||Ct)(o.Y36(o.sBO))};static#e=this.\u0275dir=o.lG2({type:Ct,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}})}return Ct})();class Ht{constructor(H){this._elementRef=H}}const A=(0,e.Kr)((0,e.sb)(Ht));let xt=(()=>{class Ct extends A{get checked(){return this._checked}set checked(J){const z=(0,i.Ig)(J);this._checked!==z&&(this._checked=z,z&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!z&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),z&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(J){this._value!==J&&(this._value=J,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===J),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(J){this._labelPosition=J}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(J){this._setDisabled((0,i.Ig)(J))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(J){this._required=(0,i.Ig)(J)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(J){this._color=J}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(J,z,F,rt,V,Pt,$t,Lt){super(z),this._changeDetector=F,this._focusMonitor=rt,this._radioDispatcher=V,this._providerOverride=$t,this._uniqueId="mat-radio-"+ ++t,this.id=this._uniqueId,this.change=new o.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=J,this._noopAnimations="NoopAnimations"===Pt,Lt&&(this.tabIndex=(0,i.su)(Lt,0))}focus(J,z){z?this._focusMonitor.focusVia(this._inputElement,z,J):this._inputElement.nativeElement.focus(J)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((J,z)=>{J!==this.id&&z===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(J=>{!J&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new y(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(J){J.stopPropagation()}_onInputInteraction(J){if(J.stopPropagation(),!this.checked&&!this.disabled){const z=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),z&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(J){this._onInputInteraction(J),this.disabled||this._inputElement.nativeElement.focus()}_setDisabled(J){this._disabled!==J&&(this._disabled=J,this._changeDetector.markForCheck())}_updateTabIndex(){const J=this.radioGroup;let z;if(z=J&&J.selected&&!this.disabled?J.selected===this?this.tabIndex:-1:this.tabIndex,z!==this._previousTabIndex){const F=this._inputElement?.nativeElement;F&&(F.setAttribute("tabindex",z+""),this._previousTabIndex=z)}}static#t=this.\u0275fac=function(z){o.$Z()};static#e=this.\u0275dir=o.lG2({type:Ct,viewQuery:function(z,F){if(1&z&&o.Gf(R,5),2&z){let rt;o.iGM(rt=o.CRH())&&(F._inputElement=rt.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[o.qOj]})}return Ct})();const j=function(Ct){return{enterDuration:Ct}},q=["*"],ht={provide:l.JU,useExisting:(0,o.Gpc)(()=>vt),multi:!0};let vt=(()=>{class Ct extends ut{static#t=this.\u0275fac=function(){let J;return function(F){return(J||(J=o.n5z(Ct)))(F||Ct)}}();static#e=this.\u0275dir=o.lG2({type:Ct,selectors:[["mat-radio-group"]],contentQueries:function(z,F,rt){if(1&z&&o.Suo(rt,gt,5),2&z){let V;o.iGM(V=o.CRH())&&(F._radios=V)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[o._Bn([ht,{provide:G,useExisting:Ct}]),o.qOj]})}return Ct})(),gt=(()=>{class Ct extends xt{constructor(J,z,F,rt,V,Pt,$t,Lt){super(J,z,F,rt,V,Pt,$t,Lt)}static#t=this.\u0275fac=function(z){return new(z||Ct)(o.Y36(G,8),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(g.tE),o.Y36(x.A8),o.Y36(o.QbO,8),o.Y36(U,8),o.$8M("tabindex"))};static#e=this.\u0275cmp=o.Xpm({type:Ct,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(z,F){1&z&&o.NdJ("focus",function(){return F._inputElement.nativeElement.focus()}),2&z&&(o.uIk("tabindex",null)("id",F.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),o.ekj("mat-radio-checked",F.checked)("mat-radio-disabled",F.disabled)("_mat-animation-noopable",F._noopAnimations)("mat-primary","primary"===F.color)("mat-accent","accent"===F.color)("mat-warn","warn"===F.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[o.qOj],ngContentSelectors:q,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(z,F){if(1&z&&(o.F$t(),o.TgZ(0,"label",0,1)(2,"span",2),o._UZ(3,"span",3)(4,"span",4),o.TgZ(5,"input",5,6),o.NdJ("change",function(V){return F._onInputInteraction(V)})("click",function(V){return F._onInputClick(V)}),o.qZA(),o.TgZ(7,"span",7),o._UZ(8,"span",8),o.qZA()(),o.TgZ(9,"span",9)(10,"span",10),o._uU(11,"\xa0"),o.qZA(),o.Hsn(12),o.qZA()()),2&z){const rt=o.MAs(1);o.uIk("for",F.inputId),o.xp6(5),o.Q6J("id",F.inputId)("checked",F.checked)("disabled",F.disabled)("required",F.required),o.uIk("name",F.name)("value",F.value)("aria-label",F.ariaLabel)("aria-labelledby",F.ariaLabelledby)("aria-describedby",F.ariaDescribedby),o.xp6(2),o.Q6J("matRippleTrigger",rt)("matRippleDisabled",F._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",o.VKq(17,j,F._noopAnimations?0:150)),o.xp6(2),o.ekj("mat-radio-label-before","before"==F.labelPosition)}},dependencies:[e.wG],styles:['.mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.mat-radio-input:focus~.mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}'],encapsulation:2,changeDetection:0})}return Ct})(),zt=(()=>{class Ct{static#t=this.\u0275fac=function(z){return new(z||Ct)};static#e=this.\u0275mod=o.oAB({type:Ct});static#n=this.\u0275inj=o.cJS({imports:[e.si,e.BQ,e.BQ]})}return Ct})()},1830:(Je,Rt,c)=>{"use strict";c.d(Rt,{iZ:()=>Ct,Wd:()=>H});var o=c(7131),e=c(5879),g=c(3680),x=c(4300),l=c(6223),i=c(2495);c(6814);let lt=0;const ut=(0,g.sb)((0,g.pj)((0,g.Kr)((0,g.Id)(class{constructor(J){this._elementRef=J}}))));let Ht=(()=>{class J extends ut{get required(){return this._required}set required(F){this._required=(0,i.Ig)(F)}get checked(){return this._checked}set checked(F){this._checked=(0,i.Ig)(F),this._changeDetectorRef.markForCheck()}get hideIcon(){return this._hideIcon}set hideIcon(F){this._hideIcon=(0,i.Ig)(F)}get inputId(){return`${this.id||this._uniqueId}-input`}constructor(F,rt,V,Pt,$t,Lt,Jt){super(F),this._focusMonitor=rt,this._changeDetectorRef=V,this.defaults=$t,this._onChange=Tt=>{},this._onTouched=()=>{},this._required=!1,this._checked=!1,this.name=null,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this._hideIcon=!1,this.change=new e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(Pt)||0,this.color=this.defaultColor=$t.color||"accent",this._noopAnimations="NoopAnimations"===Lt,this.id=this._uniqueId=`${Jt}${++lt}`,this._hideIcon=$t.hideIcon??!1}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(F=>{"keyboard"===F||"program"===F?(this._focused=!0,this._changeDetectorRef.markForCheck()):F||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(F){this.checked=!!F}registerOnChange(F){this._onChange=F}registerOnTouched(F){this._onTouched=F}setDisabledState(F){this.disabled=F,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}static#t=this.\u0275fac=function(rt){e.$Z()};static#e=this.\u0275dir=e.lG2({type:J,inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked",hideIcon:"hideIcon"},outputs:{change:"change",toggleChange:"toggleChange"},features:[e.qOj]})}return J})(),ct=(()=>{class J{static#t=this.\u0275fac=function(rt){return new(rt||J)};static#e=this.\u0275mod=e.oAB({type:J});static#n=this.\u0275inj=e.cJS({})}return J})();const j=["input"],q=function(J){return{enterDuration:J}},ht=["*"],vt=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})}),gt={provide:l.JU,useExisting:(0,e.Gpc)(()=>Ct),multi:!0};class zt{constructor(z,F){this.source=z,this.checked=F}}let Ct=(()=>{class J extends Ht{constructor(F,rt,V,Pt,$t,Lt){super(F,rt,V,Pt,$t,Lt,"mat-slide-toggle-")}_createChangeEvent(F){return new zt(this,F)}_onChangeEvent(F){F.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(F){F.stopPropagation()}focus(F,rt){rt?this._focusMonitor.focusVia(this._inputElement,rt,F):this._inputElement.nativeElement.focus(F)}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}static#t=this.\u0275fac=function(rt){return new(rt||J)(e.Y36(e.SBq),e.Y36(x.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(vt),e.Y36(e.QbO,8))};static#e=this.\u0275cmp=e.Xpm({type:J,selectors:[["mat-slide-toggle"]],viewQuery:function(rt,V){if(1&rt&&e.Gf(j,5),2&rt){let Pt;e.iGM(Pt=e.CRH())&&(V._inputElement=Pt.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(rt,V){2&rt&&(e.Ikx("id",V.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.ekj("mat-checked",V.checked)("mat-disabled",V.disabled)("mat-slide-toggle-label-before","before"==V.labelPosition)("_mat-animation-noopable",V._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matSlideToggle"],features:[e._Bn([gt]),e.qOj],ngContentSelectors:ht,decls:14,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(rt,V){if(1&rt&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function($t){return V._onChangeEvent($t)})("click",function($t){return V._onInputClick($t)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.TgZ(7,"span",7),e._UZ(8,"span",8),e.qZA()()(),e.TgZ(9,"span",9,10),e.NdJ("cdkObserveContent",function(){return V._onLabelTextChange()}),e.TgZ(11,"span",11),e._uU(12,"\xa0"),e.qZA(),e.Hsn(13),e.qZA()()),2&rt){const Pt=e.MAs(1),$t=e.MAs(10);e.uIk("for",V.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!$t.textContent||!$t.textContent.trim()),e.xp6(1),e.Q6J("id",V.inputId)("required",V.required)("tabIndex",V.tabIndex)("checked",V.checked)("disabled",V.disabled),e.uIk("name",V.name)("aria-checked",V.checked)("aria-label",V.ariaLabel)("aria-labelledby",V.ariaLabelledby)("aria-describedby",V.ariaDescribedby),e.xp6(4),e.Q6J("matRippleTrigger",Pt)("matRippleDisabled",V.disableRipple||V.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,q,V._noopAnimations?0:150))}},dependencies:[g.wG,o.wD],styles:['.mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;display:block}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.mat-slide-toggle-input:focus~.mat-slide-toggle-thumb-container .mat-focus-indicator::before{content:""}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}'],encapsulation:2,changeDetection:0})}return J})(),H=(()=>{class J{static#t=this.\u0275fac=function(rt){return new(rt||J)};static#e=this.\u0275mod=e.oAB({type:J});static#n=this.\u0275inj=e.cJS({imports:[ct,g.si,g.BQ,o.Q8,ct,g.BQ]})}return J})()},2214:(Je,Rt,c)=>{"use strict";c.d(Rt,{ML:()=>io,R3:()=>Ei,t3:()=>Mo,L7:()=>Ai,wO:()=>Yi,fg:()=>Zt,S4:()=>Ye,Zw:()=>fe,Al:()=>N,ty:()=>Ji,r4:()=>ir,U5:()=>Fo});var o=c(5879),e=c(9388),g=c(2495),x=c(8337),l=c(2831),i=c(6672),R=c(6814),f=c(8645),t=c(7715),y=c(5619),O=c(2664),G=c(2096),U=c(9773),lt=c(8180);const ut=[[["caption"]],[["colgroup"],["col"]]],Ht=["caption","colgroup, col"];function tt(Ut){return class extends Ut{get sticky(){return this._sticky}set sticky(Rn){const Bt=this._sticky;this._sticky=(0,g.Ig)(Rn),this._hasStickyChanged=Bt!==this._sticky}hasStickyChanged(){const Rn=this._hasStickyChanged;return this._hasStickyChanged=!1,Rn}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...Rn){super(...Rn),this._sticky=!1,this._hasStickyChanged=!1}}}const ct=new o.OlP("CDK_TABLE");let j=(()=>{class Ut{constructor(Bt){this.template=Bt}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkCellDef",""]]})}return Ut})(),q=(()=>{class Ut{constructor(Bt){this.template=Bt}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkHeaderCellDef",""]]})}return Ut})(),ht=(()=>{class Ut{constructor(Bt){this.template=Bt}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkFooterCellDef",""]]})}return Ut})();class vt{}const gt=tt(vt);let zt=(()=>{class Ut extends gt{get name(){return this._name}set name(Bt){this._setNameInput(Bt)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Bt){const he=this._stickyEnd;this._stickyEnd=(0,g.Ig)(Bt),this._hasStickyChanged=he!==this._stickyEnd}constructor(Bt){super(),this._table=Bt,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Bt){Bt&&(this._name=Bt,this.cssClassFriendlyName=Bt.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(ct,8))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkColumnDef",""]],contentQueries:function(he,Be,xn){if(1&he&&(o.Suo(xn,j,5),o.Suo(xn,q,5),o.Suo(xn,ht,5)),2&he){let Fn;o.iGM(Fn=o.CRH())&&(Be.cell=Fn.first),o.iGM(Fn=o.CRH())&&(Be.headerCell=Fn.first),o.iGM(Fn=o.CRH())&&(Be.footerCell=Fn.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[o._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ut}]),o.qOj]})}return Ut})();class Ct{constructor(Rn,Bt){Bt.nativeElement.classList.add(...Rn._columnCssClassName)}}let H=(()=>{class Ut extends Ct{constructor(Bt,he){super(Bt,he)}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(zt),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[o.qOj]})}return Ut})(),z=(()=>{class Ut extends Ct{constructor(Bt,he){if(super(Bt,he),1===Bt._table?._elementRef.nativeElement.nodeType){const Be=Bt._table._elementRef.nativeElement.getAttribute("role");he.nativeElement.setAttribute("role","grid"===Be||"treegrid"===Be?"gridcell":"cell")}}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(zt),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[o.qOj]})}return Ut})();class F{constructor(){this.tasks=[],this.endTasks=[]}}const rt=new o.OlP("_COALESCED_STYLE_SCHEDULER");let V=(()=>{class Ut{constructor(Bt){this._ngZone=Bt,this._currentSchedule=null,this._destroyed=new f.x}schedule(Bt){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Bt)}scheduleEnd(Bt){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Bt)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new F,this._getScheduleObservable().pipe((0,U.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Bt=this._currentSchedule;this._currentSchedule=new F;for(const he of Bt.tasks)he();for(const he of Bt.endTasks)he()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,t.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,lt.q)(1))}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.LFG(o.R0b))};static#e=this.\u0275prov=o.Yz7({token:Ut,factory:Ut.\u0275fac})}return Ut})(),$t=(()=>{class Ut{constructor(Bt,he){this.template=Bt,this._differs=he}ngOnChanges(Bt){if(!this._columnsDiffer){const he=Bt.columns&&Bt.columns.currentValue||[];this._columnsDiffer=this._differs.find(he).create(),this._columnsDiffer.diff(he)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Bt){return this instanceof Tt?Bt.headerCell.template:this instanceof Dt?Bt.footerCell.template:Bt.cell.template}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc),o.Y36(o.ZZ4))};static#e=this.\u0275dir=o.lG2({type:Ut,features:[o.TTD]})}return Ut})();class Lt extends $t{}const Jt=tt(Lt);let Tt=(()=>{class Ut extends Jt{constructor(Bt,he,Be){super(Bt,he),this._table=Be}ngOnChanges(Bt){super.ngOnChanges(Bt)}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(ct,8))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[o.qOj,o.TTD]})}return Ut})();class $ extends $t{}const pt=tt($);let Dt=(()=>{class Ut extends pt{constructor(Bt,he,Be){super(Bt,he),this._table=Be}ngOnChanges(Bt){super.ngOnChanges(Bt)}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(ct,8))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[o.qOj,o.TTD]})}return Ut})(),St=(()=>{class Ut extends $t{constructor(Bt,he,Be){super(Bt,he),this._table=Be}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc),o.Y36(o.ZZ4),o.Y36(ct,8))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[o.qOj]})}return Ut})(),mt=(()=>{class Ut{static#t=this.mostRecentCellOutlet=null;constructor(Bt){this._viewContainer=Bt,Ut.mostRecentCellOutlet=this}ngOnDestroy(){Ut.mostRecentCellOutlet===this&&(Ut.mostRecentCellOutlet=null)}static#e=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.s_b))};static#n=this.\u0275dir=o.lG2({type:Ut,selectors:[["","cdkCellOutlet",""]]})}return Ut})(),yt=(()=>{class Ut{static#t=this.\u0275fac=function(he){return new(he||Ut)};static#e=this.\u0275cmp=o.Xpm({type:Ut,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(he,Be){1&he&&o.GkF(0,0)},dependencies:[mt],encapsulation:2})}return Ut})(),B=(()=>{class Ut{static#t=this.\u0275fac=function(he){return new(he||Ut)};static#e=this.\u0275cmp=o.Xpm({type:Ut,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(he,Be){1&he&&o.GkF(0,0)},dependencies:[mt],encapsulation:2})}return Ut})(),At=(()=>{class Ut{constructor(Bt){this.templateRef=Bt,this._contentClassName="cdk-no-data-row"}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["ng-template","cdkNoDataRow",""]]})}return Ut})();const st=["top","bottom","left","right"];class ie{constructor(Rn,Bt,he,Be,xn=!0,Fn=!0,li){this._isNativeHtmlTable=Rn,this._stickCellCss=Bt,this.direction=he,this._coalescedStyleScheduler=Be,this._isBrowser=xn,this._needsPositionStickyOnElement=Fn,this._positionListener=li,this._cachedCellWidths=[],this._borderCellCss={top:`${Bt}-border-elem-top`,bottom:`${Bt}-border-elem-bottom`,left:`${Bt}-border-elem-left`,right:`${Bt}-border-elem-right`}}clearStickyPositioning(Rn,Bt){const he=[];for(const Be of Rn)if(Be.nodeType===Be.ELEMENT_NODE){he.push(Be);for(let xn=0;xn<Be.children.length;xn++)he.push(Be.children[xn])}this._coalescedStyleScheduler.schedule(()=>{for(const Be of he)this._removeStickyStyle(Be,Bt)})}updateStickyColumns(Rn,Bt,he,Be=!0){if(!Rn.length||!this._isBrowser||!Bt.some(Xi=>Xi)&&!he.some(Xi=>Xi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const xn=Rn[0],Fn=xn.children.length,li=this._getCellWidths(xn,Be),ji=this._getStickyStartColumnPositions(li,Bt),wo=this._getStickyEndColumnPositions(li,he),Wi=Bt.lastIndexOf(!0),go=he.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Xi="rtl"===this.direction,co=Xi?"right":"left",Ho=Xi?"left":"right";for(const ko of Rn)for(let ii=0;ii<Fn;ii++){const lo=ko.children[ii];Bt[ii]&&this._addStickyStyle(lo,co,ji[ii],ii===Wi),he[ii]&&this._addStickyStyle(lo,Ho,wo[ii],ii===go)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Wi?[]:li.slice(0,Wi+1).map((ko,ii)=>Bt[ii]?ko:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===go?[]:li.slice(go).map((ko,ii)=>he[ii+go]?ko:null).reverse()}))})}stickRows(Rn,Bt,he){if(!this._isBrowser)return;const Be="bottom"===he?Rn.slice().reverse():Rn,xn="bottom"===he?Bt.slice().reverse():Bt,Fn=[],li=[],ji=[];for(let Wi=0,go=0;Wi<Be.length;Wi++){if(!xn[Wi])continue;Fn[Wi]=go;const Xi=Be[Wi];ji[Wi]=this._isNativeHtmlTable?Array.from(Xi.children):[Xi];const co=Xi.getBoundingClientRect().height;go+=co,li[Wi]=co}const wo=xn.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Wi=0;Wi<Be.length;Wi++){if(!xn[Wi])continue;const go=Fn[Wi],Xi=Wi===wo;for(const co of ji[Wi])this._addStickyStyle(co,he,go,Xi)}"top"===he?this._positionListener?.stickyHeaderRowsUpdated({sizes:li,offsets:Fn,elements:ji}):this._positionListener?.stickyFooterRowsUpdated({sizes:li,offsets:Fn,elements:ji})})}updateStickyFooterContainer(Rn,Bt){if(!this._isNativeHtmlTable)return;const he=Rn.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{Bt.some(Be=>!Be)?this._removeStickyStyle(he,["bottom"]):this._addStickyStyle(he,"bottom",0,!1)})}_removeStickyStyle(Rn,Bt){for(const Be of Bt)Rn.style[Be]="",Rn.classList.remove(this._borderCellCss[Be]);st.some(Be=>-1===Bt.indexOf(Be)&&Rn.style[Be])?Rn.style.zIndex=this._getCalculatedZIndex(Rn):(Rn.style.zIndex="",this._needsPositionStickyOnElement&&(Rn.style.position=""),Rn.classList.remove(this._stickCellCss))}_addStickyStyle(Rn,Bt,he,Be){Rn.classList.add(this._stickCellCss),Be&&Rn.classList.add(this._borderCellCss[Bt]),Rn.style[Bt]=`${he}px`,Rn.style.zIndex=this._getCalculatedZIndex(Rn),this._needsPositionStickyOnElement&&(Rn.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rn){const Bt={top:100,bottom:10,left:1,right:1};let he=0;for(const Be of st)Rn.style[Be]&&(he+=Bt[Be]);return he?`${he}`:""}_getCellWidths(Rn,Bt=!0){if(!Bt&&this._cachedCellWidths.length)return this._cachedCellWidths;const he=[],Be=Rn.children;for(let xn=0;xn<Be.length;xn++)he.push(Be[xn].getBoundingClientRect().width);return this._cachedCellWidths=he,he}_getStickyStartColumnPositions(Rn,Bt){const he=[];let Be=0;for(let xn=0;xn<Rn.length;xn++)Bt[xn]&&(he[xn]=Be,Be+=Rn[xn]);return he}_getStickyEndColumnPositions(Rn,Bt){const he=[];let Be=0;for(let xn=Rn.length;xn>0;xn--)Bt[xn]&&(he[xn]=Be,Be+=Rn[xn]);return he}}const ve=new o.OlP("CDK_SPL");let De=(()=>{class Ut{constructor(Bt,he){this.viewContainer=Bt,this.elementRef=he}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.s_b),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","rowOutlet",""]]})}return Ut})(),tn=(()=>{class Ut{constructor(Bt,he){this.viewContainer=Bt,this.elementRef=he}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.s_b),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","headerRowOutlet",""]]})}return Ut})(),gn=(()=>{class Ut{constructor(Bt,he){this.viewContainer=Bt,this.elementRef=he}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.s_b),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","footerRowOutlet",""]]})}return Ut})(),Xe=(()=>{class Ut{constructor(Bt,he){this.viewContainer=Bt,this.elementRef=he}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.s_b),o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","noDataRowOutlet",""]]})}return Ut})(),ue=(()=>{class Ut{get trackBy(){return this._trackByFn}set trackBy(Bt){this._trackByFn=Bt}get dataSource(){return this._dataSource}set dataSource(Bt){this._dataSource!==Bt&&this._switchDataSource(Bt)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Bt){this._multiTemplateDataRows=(0,g.Ig)(Bt),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Bt){this._fixedLayout=(0,g.Ig)(Bt),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(Bt,he,Be,xn,Fn,li,ji,wo,Wi,go,Xi,co){this._differs=Bt,this._changeDetectorRef=he,this._elementRef=Be,this._dir=Fn,this._platform=ji,this._viewRepeater=wo,this._coalescedStyleScheduler=Wi,this._viewportRuler=go,this._stickyPositioningListener=Xi,this._ngZone=co,this._onDestroy=new f.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new o.vpe,this.viewChange=new y.X({start:0,end:Number.MAX_VALUE}),xn||this._elementRef.nativeElement.setAttribute("role","table"),this._document=li,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Bt,he)=>this.trackBy?this.trackBy(he.dataIndex,he.data):he),this._viewportRuler.change().pipe((0,U.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const he=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||he,this._forceRecalculateCellWidths=he,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Bt=>{Bt.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,x.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Bt=this._dataDiffer.diff(this._renderRows);if(!Bt)return this._updateNoDataRow(),void this.contentChanged.next();const he=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Bt,he,(Be,xn,Fn)=>this._getEmbeddedViewArgs(Be.item,Fn),Be=>Be.item.data,Be=>{1===Be.operation&&Be.context&&this._renderCellTemplateForItem(Be.record.item.rowDef,Be.context)}),this._updateRowIndexContext(),Bt.forEachIdentityChange(Be=>{he.get(Be.currentIndex).context.$implicit=Be.item.data}),this._updateNoDataRow(),this._ngZone&&o.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,lt.q)(1),(0,U.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Bt){this._customColumnDefs.add(Bt)}removeColumnDef(Bt){this._customColumnDefs.delete(Bt)}addRowDef(Bt){this._customRowDefs.add(Bt)}removeRowDef(Bt){this._customRowDefs.delete(Bt)}addHeaderRowDef(Bt){this._customHeaderRowDefs.add(Bt),this._headerRowDefChanged=!0}removeHeaderRowDef(Bt){this._customHeaderRowDefs.delete(Bt),this._headerRowDefChanged=!0}addFooterRowDef(Bt){this._customFooterRowDefs.add(Bt),this._footerRowDefChanged=!0}removeFooterRowDef(Bt){this._customFooterRowDefs.delete(Bt),this._footerRowDefChanged=!0}setNoDataRow(Bt){this._customNoDataRow=Bt}updateStickyHeaderRowStyles(){const Bt=this._getRenderedRows(this._headerRowOutlet),Be=this._elementRef.nativeElement.querySelector("thead");Be&&(Be.style.display=Bt.length?"":"none");const xn=this._headerRowDefs.map(Fn=>Fn.sticky);this._stickyStyler.clearStickyPositioning(Bt,["top"]),this._stickyStyler.stickRows(Bt,xn,"top"),this._headerRowDefs.forEach(Fn=>Fn.resetStickyChanged())}updateStickyFooterRowStyles(){const Bt=this._getRenderedRows(this._footerRowOutlet),Be=this._elementRef.nativeElement.querySelector("tfoot");Be&&(Be.style.display=Bt.length?"":"none");const xn=this._footerRowDefs.map(Fn=>Fn.sticky);this._stickyStyler.clearStickyPositioning(Bt,["bottom"]),this._stickyStyler.stickRows(Bt,xn,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,xn),this._footerRowDefs.forEach(Fn=>Fn.resetStickyChanged())}updateStickyColumnStyles(){const Bt=this._getRenderedRows(this._headerRowOutlet),he=this._getRenderedRows(this._rowOutlet),Be=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Bt,...he,...Be],["left","right"]),this._stickyColumnStylesNeedReset=!1),Bt.forEach((xn,Fn)=>{this._addStickyColumnStyles([xn],this._headerRowDefs[Fn])}),this._rowDefs.forEach(xn=>{const Fn=[];for(let li=0;li<he.length;li++)this._renderRows[li].rowDef===xn&&Fn.push(he[li]);this._addStickyColumnStyles(Fn,xn)}),Be.forEach((xn,Fn)=>{this._addStickyColumnStyles([xn],this._footerRowDefs[Fn])}),Array.from(this._columnDefsByName.values()).forEach(xn=>xn.resetStickyChanged())}_getAllRenderRows(){const Bt=[],he=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Be=0;Be<this._data.length;Be++){let xn=this._data[Be];const Fn=this._getRenderRowsForData(xn,Be,he.get(xn));this._cachedRenderRowsMap.has(xn)||this._cachedRenderRowsMap.set(xn,new WeakMap);for(let li=0;li<Fn.length;li++){let ji=Fn[li];const wo=this._cachedRenderRowsMap.get(ji.data);wo.has(ji.rowDef)?wo.get(ji.rowDef).push(ji):wo.set(ji.rowDef,[ji]),Bt.push(ji)}}return Bt}_getRenderRowsForData(Bt,he,Be){return this._getRowDefs(Bt,he).map(Fn=>{const li=Be&&Be.has(Fn)?Be.get(Fn):[];if(li.length){const ji=li.shift();return ji.dataIndex=he,ji}return{data:Bt,rowDef:Fn,dataIndex:he}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ft(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(he=>{this._columnDefsByName.has(he.name),this._columnDefsByName.set(he.name,he)})}_cacheRowDefs(){this._headerRowDefs=Ft(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ft(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ft(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Bt=this._rowDefs.filter(he=>!he.when);this._defaultRowDef=Bt[0]}_renderUpdatedColumns(){const Bt=(Fn,li)=>Fn||!!li.getColumnsDiff(),he=this._rowDefs.reduce(Bt,!1);he&&this._forceRenderDataRows();const Be=this._headerRowDefs.reduce(Bt,!1);Be&&this._forceRenderHeaderRows();const xn=this._footerRowDefs.reduce(Bt,!1);return xn&&this._forceRenderFooterRows(),he||Be||xn}_switchDataSource(Bt){this._data=[],(0,x.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Bt||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Bt}_observeRenderChanges(){if(!this.dataSource)return;let Bt;(0,x.Z9)(this.dataSource)?Bt=this.dataSource.connect(this):(0,O.b)(this.dataSource)?Bt=this.dataSource:Array.isArray(this.dataSource)&&(Bt=(0,G.of)(this.dataSource)),this._renderChangeSubscription=Bt.pipe((0,U.R)(this._onDestroy)).subscribe(he=>{this._data=he||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Bt,he)=>this._renderRow(this._headerRowOutlet,Bt,he)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Bt,he)=>this._renderRow(this._footerRowOutlet,Bt,he)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Bt,he){const Be=Array.from(he.columns||[]).map(li=>this._columnDefsByName.get(li)),xn=Be.map(li=>li.sticky),Fn=Be.map(li=>li.stickyEnd);this._stickyStyler.updateStickyColumns(Bt,xn,Fn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Bt){const he=[];for(let Be=0;Be<Bt.viewContainer.length;Be++){const xn=Bt.viewContainer.get(Be);he.push(xn.rootNodes[0])}return he}_getRowDefs(Bt,he){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Be=[];if(this.multiTemplateDataRows)Be=this._rowDefs.filter(xn=>!xn.when||xn.when(he,Bt));else{let xn=this._rowDefs.find(Fn=>Fn.when&&Fn.when(he,Bt))||this._defaultRowDef;xn&&Be.push(xn)}return Be}_getEmbeddedViewArgs(Bt,he){return{templateRef:Bt.rowDef.template,context:{$implicit:Bt.data},index:he}}_renderRow(Bt,he,Be,xn={}){const Fn=Bt.viewContainer.createEmbeddedView(he.template,xn,Be);return this._renderCellTemplateForItem(he,xn),Fn}_renderCellTemplateForItem(Bt,he){for(let Be of this._getCellTemplates(Bt))mt.mostRecentCellOutlet&&mt.mostRecentCellOutlet._viewContainer.createEmbeddedView(Be,he);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Bt=this._rowOutlet.viewContainer;for(let he=0,Be=Bt.length;he<Be;he++){const Fn=Bt.get(he).context;Fn.count=Be,Fn.first=0===he,Fn.last=he===Be-1,Fn.even=he%2==0,Fn.odd=!Fn.even,this.multiTemplateDataRows?(Fn.dataIndex=this._renderRows[he].dataIndex,Fn.renderIndex=he):Fn.index=this._renderRows[he].dataIndex}}_getCellTemplates(Bt){return Bt&&Bt.columns?Array.from(Bt.columns,he=>{const Be=this._columnDefsByName.get(he);return Bt.extractCellTemplate(Be)}):[]}_applyNativeTableSections(){const Bt=this._document.createDocumentFragment(),he=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Be of he){const xn=this._document.createElement(Be.tag);xn.setAttribute("role","rowgroup");for(const Fn of Be.outlets)xn.appendChild(Fn.elementRef.nativeElement);Bt.appendChild(xn)}this._elementRef.nativeElement.appendChild(Bt)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Bt=(he,Be)=>he||Be.hasStickyChanged();this._headerRowDefs.reduce(Bt,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Bt,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Bt,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ie(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,G.of)()).pipe((0,U.R)(this._onDestroy)).subscribe(he=>{this._stickyStyler.direction=he,this.updateStickyColumnStyles()})}_getOwnDefs(Bt){return Bt.filter(he=>!he._table||he._table===this)}_updateNoDataRow(){const Bt=this._customNoDataRow||this._noDataRow;if(!Bt)return;const he=0===this._rowOutlet.viewContainer.length;if(he===this._isShowingNoDataRow)return;const Be=this._noDataRowOutlet.viewContainer;if(he){const xn=Be.createEmbeddedView(Bt.templateRef),Fn=xn.rootNodes[0];1===xn.rootNodes.length&&Fn?.nodeType===this._document.ELEMENT_NODE&&(Fn.setAttribute("role","row"),Fn.classList.add(Bt._contentClassName))}else Be.clear();this._isShowingNoDataRow=he,this._changeDetectorRef.markForCheck()}static#t=this.\u0275fac=function(he){return new(he||Ut)(o.Y36(o.ZZ4),o.Y36(o.sBO),o.Y36(o.SBq),o.$8M("role"),o.Y36(e.Is,8),o.Y36(R.K0),o.Y36(l.t4),o.Y36(x.k),o.Y36(rt),o.Y36(i.rL),o.Y36(ve,12),o.Y36(o.R0b,8))};static#e=this.\u0275cmp=o.Xpm({type:Ut,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(he,Be,xn){if(1&he&&(o.Suo(xn,At,5),o.Suo(xn,zt,5),o.Suo(xn,St,5),o.Suo(xn,Tt,5),o.Suo(xn,Dt,5)),2&he){let Fn;o.iGM(Fn=o.CRH())&&(Be._noDataRow=Fn.first),o.iGM(Fn=o.CRH())&&(Be._contentColumnDefs=Fn),o.iGM(Fn=o.CRH())&&(Be._contentRowDefs=Fn),o.iGM(Fn=o.CRH())&&(Be._contentHeaderRowDefs=Fn),o.iGM(Fn=o.CRH())&&(Be._contentFooterRowDefs=Fn)}},viewQuery:function(he,Be){if(1&he&&(o.Gf(De,7),o.Gf(tn,7),o.Gf(gn,7),o.Gf(Xe,7)),2&he){let xn;o.iGM(xn=o.CRH())&&(Be._rowOutlet=xn.first),o.iGM(xn=o.CRH())&&(Be._headerRowOutlet=xn.first),o.iGM(xn=o.CRH())&&(Be._footerRowOutlet=xn.first),o.iGM(xn=o.CRH())&&(Be._noDataRowOutlet=xn.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(he,Be){2&he&&o.ekj("cdk-table-fixed-layout",Be.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[o._Bn([{provide:ct,useExisting:Ut},{provide:x.k,useClass:x.yy},{provide:rt,useClass:V},{provide:ve,useValue:null}])],ngContentSelectors:Ht,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(he,Be){1&he&&(o.F$t(ut),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[De,tn,gn,Xe],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return Ut})();function Ft(Ut,Rn){return Ut.concat(Array.from(Rn))}let Te=(()=>{class Ut{static#t=this.\u0275fac=function(he){return new(he||Ut)};static#e=this.\u0275mod=o.oAB({type:Ut});static#n=this.\u0275inj=o.cJS({imports:[i.Cl]})}return Ut})();var Me=c(3680),_n=c(3019),ce=c(2572),ye=c(7398);class le extends x.o2{get data(){return this._data.value}set data(Rn){Rn=Array.isArray(Rn)?Rn:[],this._data.next(Rn),this._renderChangesSubscription||this._filterData(Rn)}get filter(){return this._filter.value}set filter(Rn){this._filter.next(Rn),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Rn){this._sort=Rn,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Rn){this._paginator=Rn,this._updateChangeSubscription()}constructor(Rn=[]){super(),this._renderData=new y.X([]),this._filter=new y.X(""),this._internalPageChanges=new f.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(Bt,he)=>{const Be=Bt[he];if((0,g.t6)(Be)){const xn=Number(Be);return xn<9007199254740991?xn:Be}return Be},this.sortData=(Bt,he)=>{const Be=he.active,xn=he.direction;return Be&&""!=xn?Bt.sort((Fn,li)=>{let ji=this.sortingDataAccessor(Fn,Be),wo=this.sortingDataAccessor(li,Be);const Wi=typeof ji,go=typeof wo;Wi!==go&&("number"===Wi&&(ji+=""),"number"===go&&(wo+=""));let Xi=0;return null!=ji&&null!=wo?ji>wo?Xi=1:ji<wo&&(Xi=-1):null!=ji?Xi=1:null!=wo&&(Xi=-1),Xi*("asc"==xn?1:-1)}):Bt},this.filterPredicate=(Bt,he)=>{const Be=Object.keys(Bt).reduce((Fn,li)=>Fn+Bt[li]+"\u25ec","").toLowerCase(),xn=he.trim().toLowerCase();return-1!=Be.indexOf(xn)},this._data=new y.X(Rn),this._updateChangeSubscription()}_updateChangeSubscription(){const Rn=this._sort?(0,_n.T)(this._sort.sortChange,this._sort.initialized):(0,G.of)(null),Bt=this._paginator?(0,_n.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,G.of)(null),Be=(0,ce.a)([this._data,this._filter]).pipe((0,ye.U)(([li])=>this._filterData(li))),xn=(0,ce.a)([Be,Rn]).pipe((0,ye.U)(([li])=>this._orderData(li))),Fn=(0,ce.a)([xn,Bt]).pipe((0,ye.U)(([li])=>this._pageData(li)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=Fn.subscribe(li=>this._renderData.next(li))}_filterData(Rn){return this.filteredData=null==this.filter||""===this.filter?Rn:Rn.filter(Bt=>this.filterPredicate(Bt,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Rn){return this.sort?this.sortData(Rn.slice(),this.sort):Rn}_pageData(Rn){if(!this.paginator)return Rn;const Bt=this.paginator.pageIndex*this.paginator.pageSize;return Rn.slice(Bt,Bt+this.paginator.pageSize)}_updatePaginator(Rn){Promise.resolve().then(()=>{const Bt=this.paginator;if(Bt&&(Bt.length=Rn,Bt.pageIndex>0)){const he=Math.ceil(Bt.length/Bt.pageSize)-1||0,Be=Math.min(Bt.pageIndex,he);Be!==Bt.pageIndex&&(Bt.pageIndex=Be,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}}const se=[[["caption"]],[["colgroup"],["col"]]],Ie=["caption","colgroup, col"];let Ji=(()=>{class Ut extends ue{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275cmp=o.Xpm({type:Ut,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-table"],hostVars:2,hostBindings:function(he,Be){2&he&&o.ekj("mat-table-fixed-layout",Be.fixedLayout)},exportAs:["matTable"],features:[o._Bn([{provide:x.k,useClass:x.yy},{provide:ue,useExisting:Ut},{provide:ct,useExisting:Ut},{provide:rt,useClass:V},{provide:ve,useValue:null}]),o.qOj],ngContentSelectors:Ie,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(he,Be){1&he&&(o.F$t(se),o.Hsn(0),o.Hsn(1,1),o.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[De,tn,gn,Xe],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return Ut})(),Ei=(()=>{class Ut extends j{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","matCellDef",""]],features:[o._Bn([{provide:j,useExisting:Ut}]),o.qOj]})}return Ut})(),Yi=(()=>{class Ut extends q{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","matHeaderCellDef",""]],features:[o._Bn([{provide:q,useExisting:Ut}]),o.qOj]})}return Ut})(),Mo=(()=>{class Ut extends zt{get name(){return this._name}set name(Bt){this._setNameInput(Bt)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[o._Bn([{provide:zt,useExisting:Ut},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ut}]),o.qOj]})}return Ut})(),Ai=(()=>{class Ut extends H{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[o.qOj]})}return Ut})(),io=(()=>{class Ut extends z{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[o.qOj]})}return Ut})(),Ye=(()=>{class Ut extends Tt{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[o._Bn([{provide:Tt,useExisting:Ut}]),o.qOj]})}return Ut})(),N=(()=>{class Ut extends St{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275dir=o.lG2({type:Ut,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[o._Bn([{provide:St,useExisting:Ut}]),o.qOj]})}return Ut})(),Zt=(()=>{class Ut extends yt{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275cmp=o.Xpm({type:Ut,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[o._Bn([{provide:yt,useExisting:Ut}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(he,Be){1&he&&o.GkF(0,0)},dependencies:[mt],encapsulation:2})}return Ut})(),fe=(()=>{class Ut extends B{static#t=this.\u0275fac=function(){let Bt;return function(Be){return(Bt||(Bt=o.n5z(Ut)))(Be||Ut)}}();static#e=this.\u0275cmp=o.Xpm({type:Ut,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[o._Bn([{provide:B,useExisting:Ut}]),o.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(he,Be){1&he&&o.GkF(0,0)},dependencies:[mt],encapsulation:2})}return Ut})(),Fo=(()=>{class Ut{static#t=this.\u0275fac=function(he){return new(he||Ut)};static#e=this.\u0275mod=o.oAB({type:Ut});static#n=this.\u0275inj=o.cJS({imports:[Te,Me.BQ,Me.BQ]})}return Ut})();class ir extends le{}},2651:(Je,Rt,c)=>{"use strict";c.d(Rt,{JX:()=>Dt,SJ:()=>mt,TM:()=>St});var o=c(6672),e=c(6814),g=c(5879),x=c(3680),l=c(4300),i=c(9388),R=c(2495),f=c(6028),t=c(2831),y=c(8645),O=c(2438),G=c(3019),U=c(2181),lt=c(7398),ut=c(975),Ht=c(9773),A=c(3997),xt=c(8180),tt=c(7921),ct=c(3620),_=c(6825);const j=["*"],q=["content"];function ht(yt,ee){if(1&yt){const B=g.EpF();g.TgZ(0,"div",2),g.NdJ("click",function(){g.CHM(B);const st=g.oxw();return g.KtG(st._onBackdropClicked())}),g.qZA()}if(2&yt){const B=g.oxw();g.ekj("mat-drawer-shown",B._isShowingBackdrop())}}function vt(yt,ee){1&yt&&(g.TgZ(0,"mat-drawer-content"),g.Hsn(1,2),g.qZA())}const gt=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],zt=["mat-drawer","mat-drawer-content","*"];function Ct(yt,ee){if(1&yt){const B=g.EpF();g.TgZ(0,"div",2),g.NdJ("click",function(){g.CHM(B);const st=g.oxw();return g.KtG(st._onBackdropClicked())}),g.qZA()}if(2&yt){const B=g.oxw();g.ekj("mat-drawer-shown",B._isShowingBackdrop())}}function H(yt,ee){1&yt&&(g.TgZ(0,"mat-sidenav-content"),g.Hsn(1,2),g.qZA())}const J=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],z=["mat-sidenav","mat-sidenav-content","*"],rt={transformDrawer:(0,_.X$)("transform",[(0,_.SB)("open, open-instant",(0,_.oB)({transform:"none",visibility:"visible"})),(0,_.SB)("void",(0,_.oB)({"box-shadow":"none",visibility:"hidden"})),(0,_.eR)("void => open-instant",(0,_.jt)("0ms")),(0,_.eR)("void <=> open, open-instant => void",(0,_.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},Pt=new g.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function Lt(){return!1}}),$t=new g.OlP("MAT_DRAWER_CONTAINER");let Jt=(()=>{class yt extends o.PQ{constructor(B,At,st,ie,Ae){super(st,ie,Ae),this._changeDetectorRef=B,this._container=At}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}static#t=this.\u0275fac=function(At){return new(At||yt)(g.Y36(g.sBO),g.Y36((0,g.Gpc)(()=>$)),g.Y36(g.SBq),g.Y36(o.mF),g.Y36(g.R0b))};static#e=this.\u0275cmp=g.Xpm({type:yt,selectors:[["mat-drawer-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content"],hostVars:4,hostBindings:function(At,st){2&At&&g.Udp("margin-left",st._container._contentMargins.left,"px")("margin-right",st._container._contentMargins.right,"px")},features:[g._Bn([{provide:o.PQ,useExisting:yt}]),g.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(At,st){1&At&&(g.F$t(),g.Hsn(0))},encapsulation:2,changeDetection:0})}return yt})(),Tt=(()=>{class yt{get position(){return this._position}set position(B){(B="end"===B?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(B),this._position=B,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(B){this._mode=B,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(B){this._disableClose=(0,R.Ig)(B)}get autoFocus(){return this._autoFocus??("side"===this.mode?"dialog":"first-tabbable")}set autoFocus(B){("true"===B||"false"===B||null==B)&&(B=(0,R.Ig)(B)),this._autoFocus=B}get opened(){return this._opened}set opened(B){this.toggle((0,R.Ig)(B))}constructor(B,At,st,ie,Ae,en,In,Ve){this._elementRef=B,this._focusTrapFactory=At,this._focusMonitor=st,this._platform=ie,this._ngZone=Ae,this._interactivityChecker=en,this._doc=In,this._container=Ve,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new y.x,this._animationEnd=new y.x,this._animationState="void",this.openedChange=new g.vpe(!0),this._openedStream=this.openedChange.pipe((0,U.h)(jt=>jt),(0,lt.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,U.h)(jt=>jt.fromState!==jt.toState&&0===jt.toState.indexOf("open")),(0,ut.h)(void 0)),this._closedStream=this.openedChange.pipe((0,U.h)(jt=>!jt),(0,lt.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,U.h)(jt=>jt.fromState!==jt.toState&&"void"===jt.toState),(0,ut.h)(void 0)),this._destroyed=new y.x,this.onPositionChanged=new g.vpe,this._modeChanged=new y.x,this.openedChange.subscribe(jt=>{jt?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,O.R)(this._elementRef.nativeElement,"keydown").pipe((0,U.h)(jt=>jt.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(jt)),(0,Ht.R)(this._destroyed)).subscribe(jt=>this._ngZone.run(()=>{this.close(),jt.stopPropagation(),jt.preventDefault()}))}),this._animationEnd.pipe((0,A.x)((jt,ft)=>jt.fromState===ft.fromState&&jt.toState===ft.toState)).subscribe(jt=>{const{fromState:ft,toState:Gt}=jt;(0===Gt.indexOf("open")&&"void"===ft||"void"===Gt&&0===ft.indexOf("open"))&&this.openedChange.emit(this._opened)})}_forceFocus(B,At){this._interactivityChecker.isFocusable(B)||(B.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const st=()=>{B.removeEventListener("blur",st),B.removeEventListener("mousedown",st),B.removeAttribute("tabindex")};B.addEventListener("blur",st),B.addEventListener("mousedown",st)})),B.focus(At)}_focusByCssSelector(B,At){let st=this._elementRef.nativeElement.querySelector(B);st&&this._forceFocus(st,At)}_takeFocus(){if(!this._focusTrap)return;const B=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(At=>{!At&&"function"==typeof this._elementRef.nativeElement.focus&&B.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(B){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,B):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const B=this._doc.activeElement;return!!B&&this._elementRef.nativeElement.contains(B)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(B){return this.toggle(!0,B)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(B=!this.opened,At){B&&At&&(this._openedVia=At);const st=this._setOpen(B,!B&&this._isFocusWithinDrawer(),this._openedVia||"program");return B||(this._openedVia=null),st}_setOpen(B,At,st){return this._opened=B,B?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",At&&this._restoreFocus(st)),this._updateFocusTrapState(),new Promise(ie=>{this.openedChange.pipe((0,xt.q)(1)).subscribe(Ae=>ie(Ae?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop)}_updatePositionInParent(B){const At=this._elementRef.nativeElement,st=At.parentNode;"end"===B?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),st.insertBefore(this._anchor,At)),st.appendChild(At)):this._anchor&&this._anchor.parentNode.insertBefore(At,this._anchor)}static#t=this.\u0275fac=function(At){return new(At||yt)(g.Y36(g.SBq),g.Y36(l.qV),g.Y36(l.tE),g.Y36(t.t4),g.Y36(g.R0b),g.Y36(l.ic),g.Y36(e.K0,8),g.Y36($t,8))};static#e=this.\u0275cmp=g.Xpm({type:yt,selectors:[["mat-drawer"]],viewQuery:function(At,st){if(1&At&&g.Gf(q,5),2&At){let ie;g.iGM(ie=g.CRH())&&(st._content=ie.first)}},hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer"],hostVars:12,hostBindings:function(At,st){1&At&&g.WFA("@transform.start",function(Ae){return st._animationStarted.next(Ae)})("@transform.done",function(Ae){return st._animationEnd.next(Ae)}),2&At&&(g.uIk("align",null),g.d8E("@transform",st._animationState),g.ekj("mat-drawer-end","end"===st.position)("mat-drawer-over","over"===st.mode)("mat-drawer-push","push"===st.mode)("mat-drawer-side","side"===st.mode)("mat-drawer-opened",st.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:j,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(At,st){1&At&&(g.F$t(),g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA())},dependencies:[o.PQ],encapsulation:2,data:{animation:[rt.transformDrawer]},changeDetection:0})}return yt})(),$=(()=>{class yt{get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(B){this._autosize=(0,R.Ig)(B)}get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(B){this._backdropOverride=null==B?null:(0,R.Ig)(B)}get scrollable(){return this._userContent||this._content}constructor(B,At,st,ie,Ae,en=!1,In){this._dir=B,this._element=At,this._ngZone=st,this._changeDetectorRef=ie,this._animationMode=In,this._drawers=new g.n_E,this.backdropClick=new g.vpe,this._destroyed=new y.x,this._doCheckSubject=new y.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new y.x,B&&B.change.pipe((0,Ht.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Ae.change().pipe((0,Ht.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=en}ngAfterContentInit(){this._allDrawers.changes.pipe((0,tt.O)(this._allDrawers),(0,Ht.R)(this._destroyed)).subscribe(B=>{this._drawers.reset(B.filter(At=>!At._container||At._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,tt.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(B=>{this._watchDrawerToggle(B),this._watchDrawerPosition(B),this._watchDrawerMode(B)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,ct.b)(10),(0,Ht.R)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(B=>B.open())}close(){this._drawers.forEach(B=>B.close())}updateContentMargins(){let B=0,At=0;if(this._left&&this._left.opened)if("side"==this._left.mode)B+=this._left._getWidth();else if("push"==this._left.mode){const st=this._left._getWidth();B+=st,At-=st}if(this._right&&this._right.opened)if("side"==this._right.mode)At+=this._right._getWidth();else if("push"==this._right.mode){const st=this._right._getWidth();At+=st,B-=st}B=B||null,At=At||null,(B!==this._contentMargins.left||At!==this._contentMargins.right)&&(this._contentMargins={left:B,right:At},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(B){B._animationStarted.pipe((0,U.h)(At=>At.fromState!==At.toState),(0,Ht.R)(this._drawers.changes)).subscribe(At=>{"open-instant"!==At.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==B.mode&&B.openedChange.pipe((0,Ht.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(B.opened))}_watchDrawerPosition(B){B&&B.onPositionChanged.pipe((0,Ht.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,xt.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(B){B&&B._modeChanged.pipe((0,Ht.R)((0,G.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(B){const At=this._element.nativeElement.classList,st="mat-drawer-container-has-open";B?At.add(st):At.remove(st)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(B=>{"end"==B.position?this._end=B:this._start=B}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(B=>B&&!B.disableClose&&this._drawerHasBackdrop(B)).forEach(B=>B._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(B){return null!=B&&B.opened}_drawerHasBackdrop(B){return null==this._backdropOverride?!!B&&"side"!==B.mode:this._backdropOverride}static#t=this.\u0275fac=function(At){return new(At||yt)(g.Y36(i.Is,8),g.Y36(g.SBq),g.Y36(g.R0b),g.Y36(g.sBO),g.Y36(o.rL),g.Y36(Pt),g.Y36(g.QbO,8))};static#e=this.\u0275cmp=g.Xpm({type:yt,selectors:[["mat-drawer-container"]],contentQueries:function(At,st,ie){if(1&At&&(g.Suo(ie,Jt,5),g.Suo(ie,Tt,5)),2&At){let Ae;g.iGM(Ae=g.CRH())&&(st._content=Ae.first),g.iGM(Ae=g.CRH())&&(st._allDrawers=Ae)}},viewQuery:function(At,st){if(1&At&&g.Gf(Jt,5),2&At){let ie;g.iGM(ie=g.CRH())&&(st._userContent=ie.first)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container"],hostVars:2,hostBindings:function(At,st){2&At&&g.ekj("mat-drawer-container-explicit-backdrop",st._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[g._Bn([{provide:$t,useExisting:yt}])],ngContentSelectors:zt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(At,st){1&At&&(g.F$t(gt),g.YNc(0,ht,1,2,"div",0),g.Hsn(1),g.Hsn(2,1),g.YNc(3,vt,2,0,"mat-drawer-content",1)),2&At&&(g.Q6J("ngIf",st.hasBackdrop),g.xp6(3),g.Q6J("ngIf",!st._content))},dependencies:[e.O5,Jt],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return yt})(),pt=(()=>{class yt extends Jt{constructor(B,At,st,ie,Ae){super(B,At,st,ie,Ae)}static#t=this.\u0275fac=function(At){return new(At||yt)(g.Y36(g.sBO),g.Y36((0,g.Gpc)(()=>St)),g.Y36(g.SBq),g.Y36(o.mF),g.Y36(g.R0b))};static#e=this.\u0275cmp=g.Xpm({type:yt,selectors:[["mat-sidenav-content"]],hostAttrs:["ngSkipHydration","",1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(At,st){2&At&&g.Udp("margin-left",st._container._contentMargins.left,"px")("margin-right",st._container._contentMargins.right,"px")},features:[g._Bn([{provide:o.PQ,useExisting:yt}]),g.qOj],ngContentSelectors:j,decls:1,vars:0,template:function(At,st){1&At&&(g.F$t(),g.Hsn(0))},encapsulation:2,changeDetection:0})}return yt})(),Dt=(()=>{class yt extends Tt{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(B){this._fixedInViewport=(0,R.Ig)(B)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(B){this._fixedTopGap=(0,R.su)(B)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(B){this._fixedBottomGap=(0,R.su)(B)}static#t=this.\u0275fac=function(){let B;return function(st){return(B||(B=g.n5z(yt)))(st||yt)}}();static#e=this.\u0275cmp=g.Xpm({type:yt,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1","ngSkipHydration","",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(At,st){2&At&&(g.uIk("align",null),g.Udp("top",st.fixedInViewport?st.fixedTopGap:null,"px")("bottom",st.fixedInViewport?st.fixedBottomGap:null,"px"),g.ekj("mat-drawer-end","end"===st.position)("mat-drawer-over","over"===st.mode)("mat-drawer-push","push"===st.mode)("mat-drawer-side","side"===st.mode)("mat-drawer-opened",st.opened)("mat-sidenav-fixed",st.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[g.qOj],ngContentSelectors:j,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(At,st){1&At&&(g.F$t(),g.TgZ(0,"div",0,1),g.Hsn(2),g.qZA())},dependencies:[o.PQ],encapsulation:2,data:{animation:[rt.transformDrawer]},changeDetection:0})}return yt})(),St=(()=>{class yt extends ${constructor(){super(...arguments),this._allDrawers=void 0,this._content=void 0}static#t=this.\u0275fac=function(){let B;return function(st){return(B||(B=g.n5z(yt)))(st||yt)}}();static#e=this.\u0275cmp=g.Xpm({type:yt,selectors:[["mat-sidenav-container"]],contentQueries:function(At,st,ie){if(1&At&&(g.Suo(ie,pt,5),g.Suo(ie,Dt,5)),2&At){let Ae;g.iGM(Ae=g.CRH())&&(st._content=Ae.first),g.iGM(Ae=g.CRH())&&(st._allDrawers=Ae)}},hostAttrs:["ngSkipHydration","",1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(At,st){2&At&&g.ekj("mat-drawer-container-explicit-backdrop",st._backdropOverride)},exportAs:["matSidenavContainer"],features:[g._Bn([{provide:$t,useExisting:yt}]),g.qOj],ngContentSelectors:z,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(At,st){1&At&&(g.F$t(J),g.YNc(0,Ct,1,2,"div",0),g.Hsn(1),g.Hsn(2,1),g.YNc(3,H,2,0,"mat-sidenav-content",1)),2&At&&(g.Q6J("ngIf",st.hasBackdrop),g.xp6(3),g.Q6J("ngIf",!st._content))},dependencies:[e.O5,pt],styles:['.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color);background-color:var(--mat-sidenav-content-background-color);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color)}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);position:relative;z-index:4;--mat-sidenav-container-shape:0;color:var(--mat-sidenav-container-text-color);background-color:var(--mat-sidenav-container-background-color);border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape);border-bottom-left-radius:var(--mat-sidenav-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape);border-bottom-right-radius:var(--mat-sidenav-container-shape);border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer[style*="visibility: hidden"]{display:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}'],encapsulation:2,changeDetection:0})}return yt})(),mt=(()=>{class yt{static#t=this.\u0275fac=function(At){return new(At||yt)};static#e=this.\u0275mod=g.oAB({type:yt});static#n=this.\u0275inj=g.cJS({imports:[e.ez,x.BQ,o.ZD,o.ZD,x.BQ]})}return yt})()},2939:(Je,Rt,c)=>{"use strict";c.d(Rt,{ZX:()=>H,ux:()=>rt});var o=c(5879),e=c(8645),g=c(6814),x=c(2296),l=c(6825),i=c(8484),R=c(2831),f=c(8180),t=c(9773),y=c(4300),O=c(1088),G=c(9594),U=c(3680);function lt(V,Pt){if(1&V){const $t=o.EpF();o.TgZ(0,"div",2)(1,"button",3),o.NdJ("click",function(){o.CHM($t);const Jt=o.oxw();return o.KtG(Jt.action())}),o._uU(2),o.qZA()()}if(2&V){const $t=o.oxw();o.xp6(2),o.hij(" ",$t.data.action," ")}}const ut=["label"];function Ht(V,Pt){}const A=Math.pow(2,31)-1;class xt{constructor(Pt,$t){this._overlayRef=$t,this._afterDismissed=new e.x,this._afterOpened=new e.x,this._onAction=new e.x,this._dismissedByAction=!1,this.containerInstance=Pt,Pt._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(Pt){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(Pt,A))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const tt=new o.OlP("MatSnackBarData");class ct{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let _=(()=>{class V{static#t=this.\u0275fac=function(Lt){return new(Lt||V)};static#e=this.\u0275dir=o.lG2({type:V,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return V})(),j=(()=>{class V{static#t=this.\u0275fac=function(Lt){return new(Lt||V)};static#e=this.\u0275dir=o.lG2({type:V,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return V})(),q=(()=>{class V{static#t=this.\u0275fac=function(Lt){return new(Lt||V)};static#e=this.\u0275dir=o.lG2({type:V,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return V})(),ht=(()=>{class V{constructor($t,Lt){this.snackBarRef=$t,this.data=Lt}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#t=this.\u0275fac=function(Lt){return new(Lt||V)(o.Y36(xt),o.Y36(tt))};static#e=this.\u0275cmp=o.Xpm({type:V,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(Lt,Jt){1&Lt&&(o.TgZ(0,"div",0),o._uU(1),o.qZA(),o.YNc(2,lt,3,1,"div",1)),2&Lt&&(o.xp6(1),o.hij(" ",Jt.data.message,"\n"),o.xp6(1),o.Q6J("ngIf",Jt.hasAction))},dependencies:[g.O5,x.lW,_,j,q],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return V})();const vt={snackBarState:(0,l.X$)("state",[(0,l.SB)("void, hidden",(0,l.oB)({transform:"scale(0.8)",opacity:0})),(0,l.SB)("visible",(0,l.oB)({transform:"scale(1)",opacity:1})),(0,l.eR)("* => visible",(0,l.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,l.eR)("* => void, * => hidden",(0,l.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,l.oB)({opacity:0})))])};let gt=0,zt=(()=>{class V extends i.en{constructor($t,Lt,Jt,Tt,$){super(),this._ngZone=$t,this._elementRef=Lt,this._changeDetectorRef=Jt,this._platform=Tt,this.snackBarConfig=$,this._document=(0,o.f3M)(g.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new e.x,this._onExit=new e.x,this._onEnter=new e.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+gt++,this.attachDomPortal=pt=>{this._assertNotAttached();const Dt=this._portalOutlet.attachDomPortal(pt);return this._afterPortalAttached(),Dt},this._live="assertive"!==$.politeness||$.announcementMessage?"off"===$.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal($t){this._assertNotAttached();const Lt=this._portalOutlet.attachComponentPortal($t);return this._afterPortalAttached(),Lt}attachTemplatePortal($t){this._assertNotAttached();const Lt=this._portalOutlet.attachTemplatePortal($t);return this._afterPortalAttached(),Lt}onAnimationEnd($t){const{fromState:Lt,toState:Jt}=$t;if(("void"===Jt&&"void"!==Lt||"hidden"===Jt)&&this._completeExit(),"visible"===Jt){const Tt=this._onEnter;this._ngZone.run(()=>{Tt.next(),Tt.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,f.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const $t=this._elementRef.nativeElement,Lt=this.snackBarConfig.panelClass;Lt&&(Array.isArray(Lt)?Lt.forEach(Jt=>$t.classList.add(Jt)):$t.classList.add(Lt)),this._exposeToModals()}_exposeToModals(){const $t=this._liveElementId,Lt=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let Jt=0;Jt<Lt.length;Jt++){const Tt=Lt[Jt],$=Tt.getAttribute("aria-owns");this._trackedModals.add(Tt),$?-1===$.indexOf($t)&&Tt.setAttribute("aria-owns",$+" "+$t):Tt.setAttribute("aria-owns",$t)}}_clearFromModals(){this._trackedModals.forEach($t=>{const Lt=$t.getAttribute("aria-owns");if(Lt){const Jt=Lt.replace(this._liveElementId,"").trim();Jt.length>0?$t.setAttribute("aria-owns",Jt):$t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const $t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),Lt=this._elementRef.nativeElement.querySelector("[aria-live]");if($t&&Lt){let Jt=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&$t.contains(document.activeElement)&&(Jt=document.activeElement),$t.removeAttribute("aria-hidden"),Lt.appendChild($t),Jt?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#t=this.\u0275fac=function(Lt){return new(Lt||V)(o.Y36(o.R0b),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(R.t4),o.Y36(ct))};static#e=this.\u0275dir=o.lG2({type:V,viewQuery:function(Lt,Jt){if(1&Lt&&o.Gf(i.Pl,7),2&Lt){let Tt;o.iGM(Tt=o.CRH())&&(Jt._portalOutlet=Tt.first)}},features:[o.qOj]})}return V})(),Ct=(()=>{class V extends zt{_afterPortalAttached(){super._afterPortalAttached();const $t=this._label.nativeElement,Lt="mdc-snackbar__label";$t.classList.toggle(Lt,!$t.querySelector(`.${Lt}`))}static#t=this.\u0275fac=function(){let $t;return function(Jt){return($t||($t=o.n5z(V)))(Jt||V)}}();static#e=this.\u0275cmp=o.Xpm({type:V,selectors:[["mat-snack-bar-container"]],viewQuery:function(Lt,Jt){if(1&Lt&&o.Gf(ut,7),2&Lt){let Tt;o.iGM(Tt=o.CRH())&&(Jt._label=Tt.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(Lt,Jt){1&Lt&&o.WFA("@state.done",function($){return Jt.onAnimationEnd($)}),2&Lt&&o.d8E("@state",Jt._animationState)},features:[o.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(Lt,Jt){1&Lt&&(o.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),o.YNc(4,Ht,0,0,"ng-template",4),o.qZA(),o._UZ(5,"div"),o.qZA()()),2&Lt&&(o.xp6(5),o.uIk("aria-live",Jt._live)("role",Jt._role)("id",Jt._liveElementId))},dependencies:[i.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[vt.snackBarState]}})}return V})(),H=(()=>{class V{static#t=this.\u0275fac=function(Lt){return new(Lt||V)};static#e=this.\u0275mod=o.oAB({type:V});static#n=this.\u0275inj=o.cJS({imports:[G.U8,i.eL,g.ez,x.ot,U.BQ,U.BQ]})}return V})();const z=new o.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function J(){return new ct}});let F=(()=>{class V{get _openedSnackBarRef(){const $t=this._parentSnackBar;return $t?$t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef($t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=$t:this._snackBarRefAtThisLevel=$t}constructor($t,Lt,Jt,Tt,$,pt){this._overlay=$t,this._live=Lt,this._injector=Jt,this._breakpointObserver=Tt,this._parentSnackBar=$,this._defaultConfig=pt,this._snackBarRefAtThisLevel=null}openFromComponent($t,Lt){return this._attach($t,Lt)}openFromTemplate($t,Lt){return this._attach($t,Lt)}open($t,Lt="",Jt){const Tt={...this._defaultConfig,...Jt};return Tt.data={message:$t,action:Lt},Tt.announcementMessage===$t&&(Tt.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,Tt)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer($t,Lt){const Tt=o.zs3.create({parent:Lt&&Lt.viewContainerRef&&Lt.viewContainerRef.injector||this._injector,providers:[{provide:ct,useValue:Lt}]}),$=new i.C5(this.snackBarContainerComponent,Lt.viewContainerRef,Tt),pt=$t.attach($);return pt.instance.snackBarConfig=Lt,pt.instance}_attach($t,Lt){const Jt={...new ct,...this._defaultConfig,...Lt},Tt=this._createOverlay(Jt),$=this._attachSnackBarContainer(Tt,Jt),pt=new xt($,Tt);if($t instanceof o.Rgc){const Dt=new i.UE($t,null,{$implicit:Jt.data,snackBarRef:pt});pt.instance=$.attachTemplatePortal(Dt)}else{const Dt=this._createInjector(Jt,pt),St=new i.C5($t,void 0,Dt),mt=$.attachComponentPortal(St);pt.instance=mt.instance}return this._breakpointObserver.observe(O.u3.HandsetPortrait).pipe((0,t.R)(Tt.detachments())).subscribe(Dt=>{Tt.overlayElement.classList.toggle(this.handsetCssClass,Dt.matches)}),Jt.announcementMessage&&$._onAnnounce.subscribe(()=>{this._live.announce(Jt.announcementMessage,Jt.politeness)}),this._animateSnackBar(pt,Jt),this._openedSnackBarRef=pt,this._openedSnackBarRef}_animateSnackBar($t,Lt){$t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==$t&&(this._openedSnackBarRef=null),Lt.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{$t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):$t.containerInstance.enter(),Lt.duration&&Lt.duration>0&&$t.afterOpened().subscribe(()=>$t._dismissAfter(Lt.duration))}_createOverlay($t){const Lt=new G.X_;Lt.direction=$t.direction;let Jt=this._overlay.position().global();const Tt="rtl"===$t.direction,$="left"===$t.horizontalPosition||"start"===$t.horizontalPosition&&!Tt||"end"===$t.horizontalPosition&&Tt,pt=!$&&"center"!==$t.horizontalPosition;return $?Jt.left("0"):pt?Jt.right("0"):Jt.centerHorizontally(),"top"===$t.verticalPosition?Jt.top("0"):Jt.bottom("0"),Lt.positionStrategy=Jt,this._overlay.create(Lt)}_createInjector($t,Lt){return o.zs3.create({parent:$t&&$t.viewContainerRef&&$t.viewContainerRef.injector||this._injector,providers:[{provide:xt,useValue:Lt},{provide:tt,useValue:$t.data}]})}static#t=this.\u0275fac=function(Lt){return new(Lt||V)(o.LFG(G.aV),o.LFG(y.Kd),o.LFG(o.zs3),o.LFG(O.Yg),o.LFG(V,12),o.LFG(z))};static#e=this.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac})}return V})(),rt=(()=>{class V extends F{constructor($t,Lt,Jt,Tt,$,pt){super($t,Lt,Jt,Tt,$,pt),this.simpleSnackBarComponent=ht,this.snackBarContainerComponent=Ct,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#t=this.\u0275fac=function(Lt){return new(Lt||V)(o.LFG(G.aV),o.LFG(y.Kd),o.LFG(o.zs3),o.LFG(O.Yg),o.LFG(V,12),o.LFG(z))};static#e=this.\u0275prov=o.Yz7({token:V,factory:V.\u0275fac,providedIn:H})}return V})()},3566:(Je,Rt,c)=>{"use strict";c.d(Rt,{JX:()=>Ct,YE:()=>tt,nU:()=>zt});var o=c(5879),e=c(4300),g=c(2495),x=c(6028),l=c(3680),i=c(8645),R=c(3019),f=c(6825),t=c(6814);const y=["mat-sort-header",""];function O(H,J){if(1&H){const z=o.EpF();o.TgZ(0,"div",3),o.NdJ("@arrowPosition.start",function(){o.CHM(z);const rt=o.oxw();return o.KtG(rt._disableViewStateAnimation=!0)})("@arrowPosition.done",function(){o.CHM(z);const rt=o.oxw();return o.KtG(rt._disableViewStateAnimation=!1)}),o._UZ(1,"div",4),o.TgZ(2,"div",5),o._UZ(3,"div",6)(4,"div",7)(5,"div",8),o.qZA()()}if(2&H){const z=o.oxw();o.Q6J("@arrowOpacity",z._getArrowViewState())("@arrowPosition",z._getArrowViewState())("@allowChildren",z._getArrowDirectionState()),o.xp6(2),o.Q6J("@indicator",z._getArrowDirectionState()),o.xp6(1),o.Q6J("@leftPointer",z._getArrowDirectionState()),o.xp6(1),o.Q6J("@rightPointer",z._getArrowDirectionState())}}const G=["*"],A=new o.OlP("MAT_SORT_DEFAULT_OPTIONS"),xt=(0,l.dB)((0,l.Id)(class{}));let tt=(()=>{class H extends xt{get direction(){return this._direction}set direction(z){this._direction=z}get disableClear(){return this._disableClear}set disableClear(z){this._disableClear=(0,g.Ig)(z)}constructor(z){super(),this._defaultOptions=z,this.sortables=new Map,this._stateChanges=new i.x,this.start="asc",this._direction="",this.sortChange=new o.vpe}register(z){this.sortables.set(z.id,z)}deregister(z){this.sortables.delete(z.id)}sort(z){this.active!=z.id?(this.active=z.id,this.direction=z.start?z.start:this.start):this.direction=this.getNextSortDirection(z),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(z){if(!z)return"";let rt=function ct(H,J){let z=["asc","desc"];return"desc"==H&&z.reverse(),J||z.push(""),z}(z.start||this.start,z?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear),V=rt.indexOf(this.direction)+1;return V>=rt.length&&(V=0),rt[V]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}static#t=this.\u0275fac=function(F){return new(F||H)(o.Y36(A,8))};static#e=this.\u0275dir=o.lG2({type:H,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[o.qOj,o.TTD]})}return H})();const _=l.mZ.ENTERING+" "+l.yN.STANDARD_CURVE,j={indicator:(0,f.X$)("indicator",[(0,f.SB)("active-asc, asc",(0,f.oB)({transform:"translateY(0px)"})),(0,f.SB)("active-desc, desc",(0,f.oB)({transform:"translateY(10px)"})),(0,f.eR)("active-asc <=> active-desc",(0,f.jt)(_))]),leftPointer:(0,f.X$)("leftPointer",[(0,f.SB)("active-asc, asc",(0,f.oB)({transform:"rotate(-45deg)"})),(0,f.SB)("active-desc, desc",(0,f.oB)({transform:"rotate(45deg)"})),(0,f.eR)("active-asc <=> active-desc",(0,f.jt)(_))]),rightPointer:(0,f.X$)("rightPointer",[(0,f.SB)("active-asc, asc",(0,f.oB)({transform:"rotate(45deg)"})),(0,f.SB)("active-desc, desc",(0,f.oB)({transform:"rotate(-45deg)"})),(0,f.eR)("active-asc <=> active-desc",(0,f.jt)(_))]),arrowOpacity:(0,f.X$)("arrowOpacity",[(0,f.SB)("desc-to-active, asc-to-active, active",(0,f.oB)({opacity:1})),(0,f.SB)("desc-to-hint, asc-to-hint, hint",(0,f.oB)({opacity:.54})),(0,f.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,f.oB)({opacity:0})),(0,f.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,f.jt)("0ms")),(0,f.eR)("* <=> *",(0,f.jt)(_))]),arrowPosition:(0,f.X$)("arrowPosition",[(0,f.eR)("* => desc-to-hint, * => desc-to-active",(0,f.jt)(_,(0,f.F4)([(0,f.oB)({transform:"translateY(-25%)"}),(0,f.oB)({transform:"translateY(0)"})]))),(0,f.eR)("* => hint-to-desc, * => active-to-desc",(0,f.jt)(_,(0,f.F4)([(0,f.oB)({transform:"translateY(0)"}),(0,f.oB)({transform:"translateY(25%)"})]))),(0,f.eR)("* => asc-to-hint, * => asc-to-active",(0,f.jt)(_,(0,f.F4)([(0,f.oB)({transform:"translateY(25%)"}),(0,f.oB)({transform:"translateY(0)"})]))),(0,f.eR)("* => hint-to-asc, * => active-to-asc",(0,f.jt)(_,(0,f.F4)([(0,f.oB)({transform:"translateY(0)"}),(0,f.oB)({transform:"translateY(-25%)"})]))),(0,f.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,f.oB)({transform:"translateY(0)"})),(0,f.SB)("hint-to-desc, active-to-desc, desc",(0,f.oB)({transform:"translateY(-25%)"})),(0,f.SB)("hint-to-asc, active-to-asc, asc",(0,f.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,f.X$)("allowChildren",[(0,f.eR)("* <=> *",[(0,f.IO)("@*",(0,f.pV)(),{optional:!0})])])};let q=(()=>{class H{constructor(){this.changes=new i.x}static#t=this.\u0275fac=function(F){return new(F||H)};static#e=this.\u0275prov=o.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})();const vt={provide:q,deps:[[new o.FiY,new o.tp0,q]],useFactory:function ht(H){return H||new q}},gt=(0,l.Id)(class{});let zt=(()=>{class H extends gt{get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(z){this._updateSortActionDescription(z)}get disableClear(){return this._disableClear}set disableClear(z){this._disableClear=(0,g.Ig)(z)}constructor(z,F,rt,V,Pt,$t,Lt,Jt){super(),this._intl=z,this._changeDetectorRef=F,this._sort=rt,this._columnDef=V,this._focusMonitor=Pt,this._elementRef=$t,this._ariaDescriber=Lt,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",Jt?.arrowPosition&&(this.arrowPosition=Jt?.arrowPosition),this._handleStateChanges()}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(z=>{const F=!!z;F!==this._showIndicatorHint&&(this._setIndicatorHintVisible(F),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(z){this._isDisabled()&&z||(this._showIndicatorHint=z,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(z){this._viewState=z||{},this._disableViewStateAnimation&&(this._viewState={toState:z.toState})}_toggleOnInteraction(){this._sort.sort(this),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0)}_handleClick(){this._isDisabled()||this._sort.sort(this)}_handleKeydown(z){!this._isDisabled()&&(z.keyCode===x.L_||z.keyCode===x.K5)&&(z.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const z=this._viewState.fromState;return(z?`${z}-to-`:"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(z){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,z)),this._sortActionDescription=z}_handleStateChanges(){this._rerenderSubscription=(0,R.T)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(()=>{this._isSorted()&&(this._updateArrowDirection(),("hint"===this._viewState.toState||"active"===this._viewState.toState)&&(this._disableViewStateAnimation=!0),this._setAnimationTransitionState({fromState:this._arrowDirection,toState:"active"}),this._showIndicatorHint=!1),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),this._changeDetectorRef.markForCheck()})}static#t=this.\u0275fac=function(F){return new(F||H)(o.Y36(q),o.Y36(o.sBO),o.Y36(tt,8),o.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),o.Y36(e.tE),o.Y36(o.SBq),o.Y36(e.$s,8),o.Y36(A,8))};static#e=this.\u0275cmp=o.Xpm({type:H,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(F,rt){1&F&&o.NdJ("click",function(){return rt._handleClick()})("keydown",function(Pt){return rt._handleKeydown(Pt)})("mouseenter",function(){return rt._setIndicatorHintVisible(!0)})("mouseleave",function(){return rt._setIndicatorHintVisible(!1)}),2&F&&(o.uIk("aria-sort",rt._getAriaSortAttribute()),o.ekj("mat-sort-header-disabled",rt._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[o.qOj],attrs:y,ngContentSelectors:G,decls:4,vars:7,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(F,rt){1&F&&(o.F$t(),o.TgZ(0,"div",0)(1,"div",1),o.Hsn(2),o.qZA(),o.YNc(3,O,6,6,"div",2),o.qZA()),2&F&&(o.ekj("mat-sort-header-sorted",rt._isSorted())("mat-sort-header-position-before","before"===rt.arrowPosition),o.uIk("tabindex",rt._isDisabled()?null:0)("role",rt._isDisabled()?null:"button"),o.xp6(3),o.Q6J("ngIf",rt._renderArrow()))},dependencies:[t.O5],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[j.indicator,j.leftPointer,j.rightPointer,j.arrowOpacity,j.arrowPosition,j.allowChildren]},changeDetection:0})}return H})(),Ct=(()=>{class H{static#t=this.\u0275fac=function(F){return new(F||H)};static#e=this.\u0275mod=o.oAB({type:H});static#n=this.\u0275inj=o.cJS({providers:[vt],imports:[t.ez,l.BQ]})}return H})()},1545:(Je,Rt,c)=>{"use strict";c.d(Rt,{C0:()=>ue,VY:()=>ft,Vq:()=>Ft,T5:()=>Te});var o=c(8484),e=c(4300),g=c(9388),x=c(2495),l=c(6028),i=c(5879),R=c(2831),f=c(8645),t=c(2096),y=c(7921),O=c(9773);function G(Me,_n){1&Me&&i.Hsn(0)}const U=["*"];let lt=(()=>{class Me{constructor(ce){this._elementRef=ce}focus(){this._elementRef.nativeElement.focus()}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(i.SBq))};static#e=this.\u0275dir=i.lG2({type:Me,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return Me})(),ut=(()=>{class Me{constructor(ce){this.template=ce}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(i.Rgc))};static#e=this.\u0275dir=i.lG2({type:Me,selectors:[["","cdkStepLabel",""]]})}return Me})(),Ht=0;const tt=new i.OlP("STEPPER_GLOBAL_OPTIONS");let ct=(()=>{class Me{get editable(){return this._editable}set editable(ce){this._editable=(0,x.Ig)(ce)}get optional(){return this._optional}set optional(ce){this._optional=(0,x.Ig)(ce)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(ce){this._completedOverride=(0,x.Ig)(ce)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(ce){this._customError=(0,x.Ig)(ce)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(ce,ye){this._stepper=ce,this.interacted=!1,this.interactedStream=new i.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=ye||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??null!=this._customError}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36((0,i.Gpc)(()=>_)),i.Y36(tt,8))};static#e=this.\u0275cmp=i.Xpm({type:Me,selectors:[["cdk-step"]],contentQueries:function(ye,Xt,on){if(1&ye&&i.Suo(on,ut,5),2&ye){let oe;i.iGM(oe=i.CRH())&&(Xt.stepLabel=oe.first)}},viewQuery:function(ye,Xt){if(1&ye&&i.Gf(i.Rgc,7),2&ye){let on;i.iGM(on=i.CRH())&&(Xt.content=on.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[i.TTD],ngContentSelectors:U,decls:1,vars:0,template:function(ye,Xt){1&ye&&(i.F$t(),i.YNc(0,G,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return Me})(),_=(()=>{class Me{get linear(){return this._linear}set linear(ce){this._linear=(0,x.Ig)(ce)}get selectedIndex(){return this._selectedIndex}set selectedIndex(ce){const ye=(0,x.su)(ce);this.steps&&this._steps?(this._isValidIndex(ye),this.selected?._markAsInteracted(),this._selectedIndex!==ye&&!this._anyControlsInvalidOrPending(ye)&&(ye>=this._selectedIndex||this.steps.toArray()[ye].editable)&&this._updateSelectedItemIndex(ye)):this._selectedIndex=ye}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(ce){this.selectedIndex=ce&&this.steps?this.steps.toArray().indexOf(ce):-1}get orientation(){return this._orientation}set orientation(ce){this._orientation=ce,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===ce)}constructor(ce,ye,Xt){this._dir=ce,this._changeDetectorRef=ye,this._elementRef=Xt,this._destroyed=new f.x,this.steps=new i.n_E,this._sortedHeaders=new i.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new i.vpe,this.selectedIndexChange=new i.vpe,this._orientation="horizontal",this._groupId=Ht++}ngAfterContentInit(){this._steps.changes.pipe((0,y.O)(this._steps),(0,O.R)(this._destroyed)).subscribe(ce=>{this.steps.reset(ce.filter(ye=>ye._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,y.O)(this._stepHeader),(0,O.R)(this._destroyed)).subscribe(ce=>{this._sortedHeaders.reset(ce.toArray().sort((ye,Xt)=>ye._elementRef.nativeElement.compareDocumentPosition(Xt._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new e.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,t.of)()).pipe((0,y.O)(this._layoutDirection()),(0,O.R)(this._destroyed)).subscribe(ce=>this._keyManager.withHorizontalOrientation(ce)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(ce=>ce.reset()),this._stateChanged()}_getStepLabelId(ce){return`cdk-step-label-${this._groupId}-${ce}`}_getStepContentId(ce){return`cdk-step-content-${this._groupId}-${ce}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(ce){const ye=ce-this._selectedIndex;return ye<0?"rtl"===this._layoutDirection()?"next":"previous":ye>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(ce,ye="number"){const Xt=this.steps.toArray()[ce],on=this._isCurrentStep(ce);return Xt._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(Xt,on):this._getGuidelineLogic(Xt,on,ye)}_getDefaultIndicatorLogic(ce,ye){return ce._showError()&&ce.hasError&&!ye?"error":!ce.completed||ye?"number":ce.editable?"edit":"done"}_getGuidelineLogic(ce,ye,Xt="number"){return ce._showError()&&ce.hasError&&!ye?"error":ce.completed&&!ye?"done":ce.completed&&ye?Xt:ce.editable&&ye?"edit":Xt}_isCurrentStep(ce){return this._selectedIndex===ce}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(ce){const ye=this.steps.toArray();this.selectionChange.emit({selectedIndex:ce,previouslySelectedIndex:this._selectedIndex,selectedStep:ye[ce],previouslySelectedStep:ye[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(ce):this._keyManager.updateActiveItem(ce),this._selectedIndex=ce,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(ce){const ye=(0,l.Vb)(ce),Xt=ce.keyCode,on=this._keyManager;null==on.activeItemIndex||ye||Xt!==l.L_&&Xt!==l.K5?on.setFocusOrigin("keyboard").onKeydown(ce):(this.selectedIndex=on.activeItemIndex,ce.preventDefault())}_anyControlsInvalidOrPending(ce){return!!(this._linear&&ce>=0)&&this.steps.toArray().slice(0,ce).some(ye=>{const Xt=ye.stepControl;return(Xt?Xt.invalid||Xt.pending||!ye.interacted:!ye.completed)&&!ye.optional&&!ye._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const ce=this._elementRef.nativeElement,ye=(0,R.ht)();return ce===ye||ce.contains(ye)}_isValidIndex(ce){return ce>-1&&(!this.steps||ce<this.steps.length)}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(g.Is,8),i.Y36(i.sBO),i.Y36(i.SBq))};static#e=this.\u0275dir=i.lG2({type:Me,selectors:[["","cdkStepper",""]],contentQueries:function(ye,Xt,on){if(1&ye&&(i.Suo(on,ct,5),i.Suo(on,lt,5)),2&ye){let oe;i.iGM(oe=i.CRH())&&(Xt._steps=oe),i.iGM(oe=i.CRH())&&(Xt._stepHeader=oe)}},inputs:{linear:"linear",selectedIndex:"selectedIndex",selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return Me})(),ht=(()=>{class Me{static#t=this.\u0275fac=function(ye){return new(ye||Me)};static#e=this.\u0275mod=i.oAB({type:Me});static#n=this.\u0275inj=i.cJS({imports:[g.vT]})}return Me})();var vt=c(6814),gt=c(3680),zt=c(617),Ct=c(7394),H=c(4664),J=c(7398),z=c(3997),F=c(6825);function rt(Me,_n){if(1&Me&&i.GkF(0,8),2&Me){const ce=i.oxw();i.Q6J("ngTemplateOutlet",ce.iconOverrides[ce.state])("ngTemplateOutletContext",ce._getIconContext())}}function V(Me,_n){if(1&Me&&(i.TgZ(0,"span",13),i._uU(1),i.qZA()),2&Me){const ce=i.oxw(2);i.xp6(1),i.Oqu(ce._getDefaultTextForState(ce.state))}}function Pt(Me,_n){if(1&Me&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&Me){const ce=i.oxw(2);i.xp6(1),i.Oqu(ce._intl.completedLabel)}}function $t(Me,_n){if(1&Me&&(i.TgZ(0,"span",14),i._uU(1),i.qZA()),2&Me){const ce=i.oxw(2);i.xp6(1),i.Oqu(ce._intl.editableLabel)}}function Lt(Me,_n){if(1&Me&&(i.TgZ(0,"mat-icon",13),i._uU(1),i.qZA()),2&Me){const ce=i.oxw(2);i.xp6(1),i.Oqu(ce._getDefaultTextForState(ce.state))}}function Jt(Me,_n){if(1&Me&&(i.ynx(0,9),i.YNc(1,V,2,1,"span",10),i.YNc(2,Pt,2,1,"span",11),i.YNc(3,$t,2,1,"span",11),i.YNc(4,Lt,2,1,"mat-icon",12),i.BQk()),2&Me){const ce=i.oxw();i.Q6J("ngSwitch",ce.state),i.xp6(1),i.Q6J("ngSwitchCase","number"),i.xp6(1),i.Q6J("ngIf","done"===ce.state),i.xp6(1),i.Q6J("ngIf","edit"===ce.state)}}function Tt(Me,_n){if(1&Me&&(i.TgZ(0,"div",15),i.GkF(1,16),i.qZA()),2&Me){const ce=i.oxw();i.xp6(1),i.Q6J("ngTemplateOutlet",ce._templateLabel().template)}}function $(Me,_n){if(1&Me&&(i.TgZ(0,"div",15),i._uU(1),i.qZA()),2&Me){const ce=i.oxw();i.xp6(1),i.Oqu(ce.label)}}function pt(Me,_n){if(1&Me&&(i.TgZ(0,"div",17),i._uU(1),i.qZA()),2&Me){const ce=i.oxw();i.xp6(1),i.Oqu(ce._intl.optionalLabel)}}function Dt(Me,_n){if(1&Me&&(i.TgZ(0,"div",18),i._uU(1),i.qZA()),2&Me){const ce=i.oxw();i.xp6(1),i.Oqu(ce.errorMessage)}}function St(Me,_n){}function mt(Me,_n){if(1&Me&&(i.Hsn(0),i.YNc(1,St,0,0,"ng-template",0)),2&Me){const ce=i.oxw();i.xp6(1),i.Q6J("cdkPortalOutlet",ce._portal)}}const yt=["*"];function ee(Me,_n){1&Me&&i._UZ(0,"div",11)}const B=function(Me,_n){return{step:Me,i:_n}};function At(Me,_n){if(1&Me&&(i.ynx(0),i.GkF(1,9),i.YNc(2,ee,1,0,"div",10),i.BQk()),2&Me){const ce=_n.$implicit,ye=_n.index,Xt=_n.last;i.oxw(2);const on=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",on)("ngTemplateOutletContext",i.WLB(3,B,ce,ye)),i.xp6(1),i.Q6J("ngIf",!Xt)}}const st=function(Me){return{animationDuration:Me}},ie=function(Me,_n){return{value:Me,params:_n}};function Ae(Me,_n){if(1&Me){const ce=i.EpF();i.TgZ(0,"div",12),i.NdJ("@horizontalStepTransition.done",function(Xt){i.CHM(ce);const on=i.oxw(2);return i.KtG(on._animationDone.next(Xt))}),i.GkF(1,13),i.qZA()}if(2&Me){const ce=_n.$implicit,ye=_n.index,Xt=i.oxw(2);i.ekj("mat-horizontal-stepper-content-inactive",Xt.selectedIndex!==ye),i.Q6J("@horizontalStepTransition",i.WLB(8,ie,Xt._getAnimationDirection(ye),i.VKq(6,st,Xt._getAnimationDuration())))("id",Xt._getStepContentId(ye)),i.uIk("aria-labelledby",Xt._getStepLabelId(ye)),i.xp6(1),i.Q6J("ngTemplateOutlet",ce.content)}}function en(Me,_n){if(1&Me&&(i.TgZ(0,"div",4)(1,"div",5),i.YNc(2,At,3,6,"ng-container",6),i.qZA(),i.TgZ(3,"div",7),i.YNc(4,Ae,2,11,"div",8),i.qZA()()),2&Me){const ce=i.oxw();i.xp6(2),i.Q6J("ngForOf",ce.steps),i.xp6(2),i.Q6J("ngForOf",ce.steps)}}function In(Me,_n){if(1&Me){const ce=i.EpF();i.TgZ(0,"div",15),i.GkF(1,9),i.TgZ(2,"div",16)(3,"div",17),i.NdJ("@verticalStepTransition.done",function(Xt){i.CHM(ce);const on=i.oxw(2);return i.KtG(on._animationDone.next(Xt))}),i.TgZ(4,"div",18),i.GkF(5,13),i.qZA()()()()}if(2&Me){const ce=_n.$implicit,ye=_n.index,Xt=_n.last,on=i.oxw(2),oe=i.MAs(4);i.xp6(1),i.Q6J("ngTemplateOutlet",oe)("ngTemplateOutletContext",i.WLB(10,B,ce,ye)),i.xp6(1),i.ekj("mat-stepper-vertical-line",!Xt),i.xp6(1),i.ekj("mat-vertical-stepper-content-inactive",on.selectedIndex!==ye),i.Q6J("@verticalStepTransition",i.WLB(15,ie,on._getAnimationDirection(ye),i.VKq(13,st,on._getAnimationDuration())))("id",on._getStepContentId(ye)),i.uIk("aria-labelledby",on._getStepLabelId(ye)),i.xp6(2),i.Q6J("ngTemplateOutlet",ce.content)}}function Ve(Me,_n){if(1&Me&&(i.ynx(0),i.YNc(1,In,6,18,"div",14),i.BQk()),2&Me){const ce=i.oxw();i.xp6(1),i.Q6J("ngForOf",ce.steps)}}function jt(Me,_n){if(1&Me){const ce=i.EpF();i.TgZ(0,"mat-step-header",19),i.NdJ("click",function(){const on=i.CHM(ce).step;return i.KtG(on.select())})("keydown",function(Xt){i.CHM(ce);const on=i.oxw();return i.KtG(on._onKeydown(Xt))}),i.qZA()}if(2&Me){const ce=_n.step,ye=_n.i,Xt=i.oxw();i.ekj("mat-horizontal-stepper-header","horizontal"===Xt.orientation)("mat-vertical-stepper-header","vertical"===Xt.orientation),i.Q6J("tabIndex",Xt._getFocusIndex()===ye?0:-1)("id",Xt._getStepLabelId(ye))("index",ye)("state",Xt._getIndicatorType(ye,ce.state))("label",ce.stepLabel||ce.label)("selected",Xt.selectedIndex===ye)("active",Xt._stepIsNavigable(ye,ce))("optional",ce.optional)("errorMessage",ce.errorMessage)("iconOverrides",Xt._iconOverrides)("disableRipple",Xt.disableRipple||!Xt._stepIsNavigable(ye,ce))("color",ce.color||Xt.color),i.uIk("aria-posinset",ye+1)("aria-setsize",Xt.steps.length)("aria-controls",Xt._getStepContentId(ye))("aria-selected",Xt.selectedIndex==ye)("aria-label",ce.ariaLabel||null)("aria-labelledby",!ce.ariaLabel&&ce.ariaLabelledby?ce.ariaLabelledby:null)("aria-disabled",!Xt._stepIsNavigable(ye,ce)||null)}}let ft=(()=>{class Me extends ut{static#t=this.\u0275fac=function(){let ce;return function(Xt){return(ce||(ce=i.n5z(Me)))(Xt||Me)}}();static#e=this.\u0275dir=i.lG2({type:Me,selectors:[["","matStepLabel",""]],features:[i.qOj]})}return Me})(),Gt=(()=>{class Me{constructor(){this.changes=new f.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}static#t=this.\u0275fac=function(ye){return new(ye||Me)};static#e=this.\u0275prov=i.Yz7({token:Me,factory:Me.\u0275fac,providedIn:"root"})}return Me})();const ve={provide:Gt,deps:[[new i.FiY,new i.tp0,Gt]],useFactory:function Ce(Me){return Me||new Gt}},me=(0,gt.pj)(class extends lt{constructor(_n){super(_n)}},"primary");let De=(()=>{class Me extends me{constructor(ce,ye,Xt,on){super(Xt),this._intl=ce,this._focusMonitor=ye,this._intlSubscription=ce.changes.subscribe(()=>on.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(ce,ye){ce?this._focusMonitor.focusVia(this._elementRef,ce,ye):this._elementRef.nativeElement.focus(ye)}_stringLabel(){return this.label instanceof ft?null:this.label}_templateLabel(){return this.label instanceof ft?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(ce){return"number"==ce?`${this.index+1}`:"edit"==ce?"create":"error"==ce?"warning":ce}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(Gt),i.Y36(e.tE),i.Y36(i.SBq),i.Y36(i.sBO))};static#e=this.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[i.qOj],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(ye,Xt){1&ye&&(i._UZ(0,"div",0),i.TgZ(1,"div")(2,"div",1),i.YNc(3,rt,1,2,"ng-container",2),i.YNc(4,Jt,5,4,"ng-container",3),i.qZA()(),i.TgZ(5,"div",4),i.YNc(6,Tt,2,1,"div",5),i.YNc(7,$,2,1,"div",5),i.YNc(8,pt,2,1,"div",6),i.YNc(9,Dt,2,1,"div",7),i.qZA()),2&ye&&(i.Q6J("matRippleTrigger",Xt._getHostElement())("matRippleDisabled",Xt.disableRipple),i.xp6(1),i.Gre("mat-step-icon-state-",Xt.state," mat-step-icon"),i.ekj("mat-step-icon-selected",Xt.selected),i.xp6(1),i.Q6J("ngSwitch",!(!Xt.iconOverrides||!Xt.iconOverrides[Xt.state])),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(2),i.ekj("mat-step-label-active",Xt.active)("mat-step-label-selected",Xt.selected)("mat-step-label-error","error"==Xt.state),i.xp6(1),i.Q6J("ngIf",Xt._templateLabel()),i.xp6(1),i.Q6J("ngIf",Xt._stringLabel()),i.xp6(1),i.Q6J("ngIf",Xt.optional&&"error"!=Xt.state),i.xp6(1),i.Q6J("ngIf","error"==Xt.state))},dependencies:[vt.O5,vt.tP,vt.RF,vt.n9,vt.ED,zt.Hw,gt.wG],styles:['.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color)}@media(hover: none){.mat-step-header:hover{background:none}}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.cdk-high-contrast-active .mat-step-header[aria-disabled=true]{outline-color:GrayText}.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-label,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-icon,.cdk-high-contrast-active .mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color)}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color);background-color:var(--mat-stepper-header-icon-background-color)}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color);color:var(--mat-stepper-header-error-state-icon-foreground-color)}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font);font-size:var(--mat-stepper-header-label-text-size);font-weight:var(--mat-stepper-header-label-text-weight);color:var(--mat-stepper-header-label-text-color)}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color)}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color);font-size:var(--mat-stepper-header-error-state-label-text-size)}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size);font-weight:var(--mat-stepper-header-selected-state-label-text-weight)}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color);color:var(--mat-stepper-header-selected-state-icon-foreground-color)}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color);color:var(--mat-stepper-header-edit-state-icon-foreground-color)}'],encapsulation:2,changeDetection:0})}return Me})();const Xe={horizontalStepTransition:(0,F.X$)("horizontalStepTransition",[(0,F.SB)("previous",(0,F.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,F.SB)("current",(0,F.oB)({transform:"none",visibility:"inherit"})),(0,F.SB)("next",(0,F.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,F.eR)("* => *",(0,F.ru)([(0,F.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)"),(0,F.IO)("@*",(0,F.pV)(),{optional:!0})]),{params:{animationDuration:"500ms"}})]),verticalStepTransition:(0,F.X$)("verticalStepTransition",[(0,F.SB)("previous",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("next",(0,F.oB)({height:"0px",visibility:"hidden"})),(0,F.SB)("current",(0,F.oB)({height:"*",visibility:"inherit"})),(0,F.eR)("* <=> current",(0,F.ru)([(0,F.jt)("{{animationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)"),(0,F.IO)("@*",(0,F.pV)(),{optional:!0})]),{params:{animationDuration:"225ms"}})])};let rn=(()=>{class Me{constructor(ce){this.templateRef=ce}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(i.Rgc))};static#e=this.\u0275dir=i.lG2({type:Me,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}})}return Me})(),re=(()=>{class Me{constructor(ce){this._template=ce}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(i.Rgc))};static#e=this.\u0275dir=i.lG2({type:Me,selectors:[["ng-template","matStepContent",""]]})}return Me})(),ue=(()=>{class Me extends ct{constructor(ce,ye,Xt,on){super(ce,on),this._errorStateMatcher=ye,this._viewContainerRef=Xt,this._isSelected=Ct.w0.EMPTY,this.stepLabel=void 0}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,H.w)(()=>this._stepper.selectionChange.pipe((0,J.U)(ce=>ce.selectedStep===this),(0,y.O)(this._stepper.selected===this)))).subscribe(ce=>{ce&&this._lazyContent&&!this._portal&&(this._portal=new o.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(ce,ye){return this._errorStateMatcher.isErrorState(ce,ye)||!!(ce&&ce.invalid&&this.interacted)}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36((0,i.Gpc)(()=>Ft)),i.Y36(gt.rD,4),i.Y36(i.s_b),i.Y36(tt,8))};static#e=this.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-step"]],contentQueries:function(ye,Xt,on){if(1&ye&&(i.Suo(on,ft,5),i.Suo(on,re,5)),2&ye){let oe;i.iGM(oe=i.CRH())&&(Xt.stepLabel=oe.first),i.iGM(oe=i.CRH())&&(Xt._lazyContent=oe.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[i._Bn([{provide:gt.rD,useExisting:Me},{provide:ct,useExisting:Me}]),i.qOj],ngContentSelectors:yt,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(ye,Xt){1&ye&&(i.F$t(),i.YNc(0,mt,2,1,"ng-template"))},dependencies:[o.Pl],encapsulation:2,changeDetection:0})}return Me})(),Ft=(()=>{class Me extends _{get animationDuration(){return this._animationDuration}set animationDuration(ce){this._animationDuration=/^\d+$/.test(ce)?ce+"ms":ce}constructor(ce,ye,Xt){super(ce,ye,Xt),this._stepHeader=void 0,this._steps=void 0,this.steps=new i.n_E,this.animationDone=new i.vpe,this.labelPosition="end",this.headerPosition="top",this._iconOverrides={},this._animationDone=new f.x,this._animationDuration="";const on=Xt.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===on?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:ce,templateRef:ye})=>this._iconOverrides[ce]=ye),this.steps.changes.pipe((0,O.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,z.x)((ce,ye)=>ce.fromState===ye.fromState&&ce.toState===ye.toState),(0,O.R)(this._destroyed)).subscribe(ce=>{"current"===ce.toState&&this.animationDone.emit()})}_stepIsNavigable(ce,ye){return ye.completed||this.selectedIndex===ce||!this.linear}_getAnimationDuration(){return this.animationDuration?this.animationDuration:"horizontal"===this.orientation?"500ms":"225ms"}static#t=this.\u0275fac=function(ye){return new(ye||Me)(i.Y36(g.Is,8),i.Y36(i.sBO),i.Y36(i.SBq))};static#e=this.\u0275cmp=i.Xpm({type:Me,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(ye,Xt,on){if(1&ye&&(i.Suo(on,ue,5),i.Suo(on,rn,5)),2&ye){let oe;i.iGM(oe=i.CRH())&&(Xt._steps=oe),i.iGM(oe=i.CRH())&&(Xt._icons=oe)}},viewQuery:function(ye,Xt){if(1&ye&&i.Gf(De,5),2&ye){let on;i.iGM(on=i.CRH())&&(Xt._stepHeader=on)}},hostAttrs:["role","tablist","ngSkipHydration",""],hostVars:11,hostBindings:function(ye,Xt){2&ye&&(i.uIk("aria-orientation",Xt.orientation),i.ekj("mat-stepper-horizontal","horizontal"===Xt.orientation)("mat-stepper-vertical","vertical"===Xt.orientation)("mat-stepper-label-position-end","horizontal"===Xt.orientation&&"end"==Xt.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Xt.orientation&&"bottom"==Xt.labelPosition)("mat-stepper-header-position-bottom","bottom"===Xt.headerPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[i._Bn([{provide:_,useExisting:Me}]),i.qOj],decls:5,vars:3,consts:[[3,"ngSwitch"],["class","mat-horizontal-stepper-wrapper",4,"ngSwitchCase"],[4,"ngSwitchCase"],["stepTemplate",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id","mat-horizontal-stepper-content-inactive",4,"ngFor","ngForOf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],["class","mat-step",4,"ngFor","ngForOf"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"]],template:function(ye,Xt){1&ye&&(i.ynx(0,0),i.YNc(1,en,5,2,"div",1),i.YNc(2,Ve,2,1,"ng-container",2),i.BQk(),i.YNc(3,jt,1,23,"ng-template",null,3,i.W1O)),2&ye&&(i.Q6J("ngSwitch",Xt.orientation),i.xp6(1),i.Q6J("ngSwitchCase","horizontal"),i.xp6(1),i.Q6J("ngSwitchCase","vertical"))},dependencies:[vt.sg,vt.O5,vt.tP,vt.RF,vt.n9,De],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font);background:var(--mat-stepper-container-color)}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-inactive{height:0;overflow:hidden}.mat-horizontal-stepper-content:not(.mat-horizontal-stepper-content-inactive){visibility:inherit !important}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color);top:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-stepper-content:not(.mat-vertical-stepper-content-inactive){visibility:inherit !important}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}'],encapsulation:2,data:{animation:[Xe.horizontalStepTransition,Xe.verticalStepTransition]},changeDetection:0})}return Me})(),Te=(()=>{class Me{static#t=this.\u0275fac=function(ye){return new(ye||Me)};static#e=this.\u0275mod=i.oAB({type:Me});static#n=this.\u0275inj=i.cJS({providers:[ve,gt.rD],imports:[gt.BQ,vt.ez,o.eL,ht,zt.Ps,gt.si,gt.BQ]})}return Me})()},6593:(Je,Rt,c)=>{"use strict";c.d(Rt,{Dx:()=>Gt,FL:()=>oe,H7:()=>ce,b2:()=>en,h_:()=>Ve,ly:()=>Se,q6:()=>At,se:()=>zt});var o=c(5879),e=c(6814),g=c(9862);class x extends e.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class l extends x{static makeCurrent(){(0,e.HT)(new l)}onAndCancel(nt,it,Ot){return nt.addEventListener(it,Ot),()=>{nt.removeEventListener(it,Ot)}}dispatchEvent(nt,it){nt.dispatchEvent(it)}remove(nt){nt.parentNode&&nt.parentNode.removeChild(nt)}createElement(nt,it){return(it=it||this.getDefaultDocument()).createElement(nt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(nt){return nt.nodeType===Node.ELEMENT_NODE}isShadowRoot(nt){return nt instanceof DocumentFragment}getGlobalEventTarget(nt,it){return"window"===it?window:"document"===it?nt:"body"===it?nt.body:null}getBaseHref(nt){const it=function R(){return i=i||document.querySelector("base"),i?i.getAttribute("href"):null}();return null==it?null:function t(et){f=f||document.createElement("a"),f.setAttribute("href",et);const nt=f.pathname;return"/"===nt.charAt(0)?nt:`/${nt}`}(it)}resetBaseElement(){i=null}getUserAgent(){return window.navigator.userAgent}getCookie(nt){return(0,e.Mx)(document.cookie,nt)}}let f,i=null,O=(()=>{class et{build(){return new XMLHttpRequest}static#t=this.\u0275fac=function(Ot){return new(Ot||et)};static#e=this.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac})}return et})();const G=new o.OlP("EventManagerPlugins");let U=(()=>{class et{constructor(it,Ot){this._zone=Ot,this._eventNameToPlugin=new Map,it.forEach(Fe=>{Fe.manager=this}),this._plugins=it.slice().reverse()}addEventListener(it,Ot,Fe){return this._findPluginFor(Ot).addEventListener(it,Ot,Fe)}getZone(){return this._zone}_findPluginFor(it){let Ot=this._eventNameToPlugin.get(it);if(Ot)return Ot;if(Ot=this._plugins.find(Cn=>Cn.supports(it)),!Ot)throw new o.vHH(5101,!1);return this._eventNameToPlugin.set(it,Ot),Ot}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(G),o.LFG(o.R0b))};static#e=this.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac})}return et})();class lt{constructor(nt){this._doc=nt}}const ut="ng-app-id";let Ht=(()=>{class et{constructor(it,Ot,Fe,Cn={}){this.doc=it,this.appId=Ot,this.nonce=Fe,this.platformId=Cn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,e.PM)(Cn),this.resetHostNodes()}addStyles(it){for(const Ot of it)1===this.changeUsageCount(Ot,1)&&this.onStyleAdded(Ot)}removeStyles(it){for(const Ot of it)this.changeUsageCount(Ot,-1)<=0&&this.onStyleRemoved(Ot)}ngOnDestroy(){const it=this.styleNodesInDOM;it&&(it.forEach(Ot=>Ot.remove()),it.clear());for(const Ot of this.getAllStyles())this.onStyleRemoved(Ot);this.resetHostNodes()}addHost(it){this.hostNodes.add(it);for(const Ot of this.getAllStyles())this.addStyleToHost(it,Ot)}removeHost(it){this.hostNodes.delete(it)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(it){for(const Ot of this.hostNodes)this.addStyleToHost(Ot,it)}onStyleRemoved(it){const Ot=this.styleRef;Ot.get(it)?.elements?.forEach(Fe=>Fe.remove()),Ot.delete(it)}collectServerRenderedStyles(){const it=this.doc.head?.querySelectorAll(`style[${ut}="${this.appId}"]`);if(it?.length){const Ot=new Map;return it.forEach(Fe=>{null!=Fe.textContent&&Ot.set(Fe.textContent,Fe)}),Ot}return null}changeUsageCount(it,Ot){const Fe=this.styleRef;if(Fe.has(it)){const Cn=Fe.get(it);return Cn.usage+=Ot,Cn.usage}return Fe.set(it,{usage:Ot,elements:[]}),Ot}getStyleElement(it,Ot){const Fe=this.styleNodesInDOM,Cn=Fe?.get(Ot);if(Cn?.parentNode===it)return Fe.delete(Ot),Cn.removeAttribute(ut),Cn;{const de=this.doc.createElement("style");return this.nonce&&de.setAttribute("nonce",this.nonce),de.textContent=Ot,this.platformIsServer&&de.setAttribute(ut,this.appId),de}}addStyleToHost(it,Ot){const Fe=this.getStyleElement(it,Ot);it.appendChild(Fe);const Cn=this.styleRef,de=Cn.get(Ot)?.elements;de?de.push(Fe):Cn.set(Ot,{elements:[Fe],usage:1})}resetHostNodes(){const it=this.hostNodes;it.clear(),it.add(this.doc.head)}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(e.K0),o.LFG(o.AFp),o.LFG(o.Ojb,8),o.LFG(o.Lbi))};static#e=this.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac})}return et})();const A={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},xt=/%COMP%/g,q=new o.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function gt(et,nt){return nt.map(it=>it.replace(xt,et))}let zt=(()=>{class et{constructor(it,Ot,Fe,Cn,de,He,X,_e=null){this.eventManager=it,this.sharedStylesHost=Ot,this.appId=Fe,this.removeStylesOnCompDestroy=Cn,this.doc=de,this.platformId=He,this.ngZone=X,this.nonce=_e,this.rendererByCompId=new Map,this.platformIsServer=(0,e.PM)(He),this.defaultRenderer=new Ct(it,de,X,this.platformIsServer)}createRenderer(it,Ot){if(!it||!Ot)return this.defaultRenderer;this.platformIsServer&&Ot.encapsulation===o.ifc.ShadowDom&&(Ot={...Ot,encapsulation:o.ifc.Emulated});const Fe=this.getOrCreateRenderer(it,Ot);return Fe instanceof V?Fe.applyToHost(it):Fe instanceof rt&&Fe.applyStyles(),Fe}getOrCreateRenderer(it,Ot){const Fe=this.rendererByCompId;let Cn=Fe.get(Ot.id);if(!Cn){const de=this.doc,He=this.ngZone,X=this.eventManager,_e=this.sharedStylesHost,ze=this.removeStylesOnCompDestroy,dn=this.platformIsServer;switch(Ot.encapsulation){case o.ifc.Emulated:Cn=new V(X,_e,Ot,this.appId,ze,de,He,dn);break;case o.ifc.ShadowDom:return new F(X,_e,it,Ot,de,He,this.nonce,dn);default:Cn=new rt(X,_e,Ot,ze,de,He,dn)}Fe.set(Ot.id,Cn)}return Cn}ngOnDestroy(){this.rendererByCompId.clear()}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(U),o.LFG(Ht),o.LFG(o.AFp),o.LFG(q),o.LFG(e.K0),o.LFG(o.Lbi),o.LFG(o.R0b),o.LFG(o.Ojb))};static#e=this.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac})}return et})();class Ct{constructor(nt,it,Ot,Fe){this.eventManager=nt,this.doc=it,this.ngZone=Ot,this.platformIsServer=Fe,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(nt,it){return it?this.doc.createElementNS(A[it]||it,nt):this.doc.createElement(nt)}createComment(nt){return this.doc.createComment(nt)}createText(nt){return this.doc.createTextNode(nt)}appendChild(nt,it){(z(nt)?nt.content:nt).appendChild(it)}insertBefore(nt,it,Ot){nt&&(z(nt)?nt.content:nt).insertBefore(it,Ot)}removeChild(nt,it){nt&&nt.removeChild(it)}selectRootElement(nt,it){let Ot="string"==typeof nt?this.doc.querySelector(nt):nt;if(!Ot)throw new o.vHH(-5104,!1);return it||(Ot.textContent=""),Ot}parentNode(nt){return nt.parentNode}nextSibling(nt){return nt.nextSibling}setAttribute(nt,it,Ot,Fe){if(Fe){it=Fe+":"+it;const Cn=A[Fe];Cn?nt.setAttributeNS(Cn,it,Ot):nt.setAttribute(it,Ot)}else nt.setAttribute(it,Ot)}removeAttribute(nt,it,Ot){if(Ot){const Fe=A[Ot];Fe?nt.removeAttributeNS(Fe,it):nt.removeAttribute(`${Ot}:${it}`)}else nt.removeAttribute(it)}addClass(nt,it){nt.classList.add(it)}removeClass(nt,it){nt.classList.remove(it)}setStyle(nt,it,Ot,Fe){Fe&(o.JOm.DashCase|o.JOm.Important)?nt.style.setProperty(it,Ot,Fe&o.JOm.Important?"important":""):nt.style[it]=Ot}removeStyle(nt,it,Ot){Ot&o.JOm.DashCase?nt.style.removeProperty(it):nt.style[it]=""}setProperty(nt,it,Ot){nt[it]=Ot}setValue(nt,it){nt.nodeValue=it}listen(nt,it,Ot){if("string"==typeof nt&&!(nt=(0,e.q)().getGlobalEventTarget(this.doc,nt)))throw new Error(`Unsupported event target ${nt} for event ${it}`);return this.eventManager.addEventListener(nt,it,this.decoratePreventDefault(Ot))}decoratePreventDefault(nt){return it=>{if("__ngUnwrap__"===it)return nt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>nt(it)):nt(it))&&it.preventDefault()}}}function z(et){return"TEMPLATE"===et.tagName&&void 0!==et.content}class F extends Ct{constructor(nt,it,Ot,Fe,Cn,de,He,X){super(nt,Cn,de,X),this.sharedStylesHost=it,this.hostEl=Ot,this.shadowRoot=Ot.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _e=gt(Fe.id,Fe.styles);for(const ze of _e){const dn=document.createElement("style");He&&dn.setAttribute("nonce",He),dn.textContent=ze,this.shadowRoot.appendChild(dn)}}nodeOrShadowRoot(nt){return nt===this.hostEl?this.shadowRoot:nt}appendChild(nt,it){return super.appendChild(this.nodeOrShadowRoot(nt),it)}insertBefore(nt,it,Ot){return super.insertBefore(this.nodeOrShadowRoot(nt),it,Ot)}removeChild(nt,it){return super.removeChild(this.nodeOrShadowRoot(nt),it)}parentNode(nt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(nt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class rt extends Ct{constructor(nt,it,Ot,Fe,Cn,de,He,X){super(nt,Cn,de,He),this.sharedStylesHost=it,this.removeStylesOnCompDestroy=Fe,this.styles=X?gt(X,Ot.styles):Ot.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class V extends rt{constructor(nt,it,Ot,Fe,Cn,de,He,X){const _e=Fe+"-"+Ot.id;super(nt,it,Ot,Cn,de,He,X,_e),this.contentAttr=function ht(et){return"_ngcontent-%COMP%".replace(xt,et)}(_e),this.hostAttr=function vt(et){return"_nghost-%COMP%".replace(xt,et)}(_e)}applyToHost(nt){this.applyStyles(),this.setAttribute(nt,this.hostAttr,"")}createElement(nt,it){const Ot=super.createElement(nt,it);return super.setAttribute(Ot,this.contentAttr,""),Ot}}let Pt=(()=>{class et extends lt{constructor(it){super(it)}supports(it){return!0}addEventListener(it,Ot,Fe){return it.addEventListener(Ot,Fe,!1),()=>this.removeEventListener(it,Ot,Fe)}removeEventListener(it,Ot,Fe){return it.removeEventListener(Ot,Fe)}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(e.K0))};static#e=this.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac})}return et})();const $t=["alt","control","meta","shift"],Lt={"\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"},Jt={alt:et=>et.altKey,control:et=>et.ctrlKey,meta:et=>et.metaKey,shift:et=>et.shiftKey};let Tt=(()=>{class et extends lt{constructor(it){super(it)}supports(it){return null!=et.parseEventName(it)}addEventListener(it,Ot,Fe){const Cn=et.parseEventName(Ot),de=et.eventCallback(Cn.fullKey,Fe,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,e.q)().onAndCancel(it,Cn.domEventName,de))}static parseEventName(it){const Ot=it.toLowerCase().split("."),Fe=Ot.shift();if(0===Ot.length||"keydown"!==Fe&&"keyup"!==Fe)return null;const Cn=et._normalizeKey(Ot.pop());let de="",He=Ot.indexOf("code");if(He>-1&&(Ot.splice(He,1),de="code."),$t.forEach(_e=>{const ze=Ot.indexOf(_e);ze>-1&&(Ot.splice(ze,1),de+=_e+".")}),de+=Cn,0!=Ot.length||0===Cn.length)return null;const X={};return X.domEventName=Fe,X.fullKey=de,X}static matchEventFullKeyCode(it,Ot){let Fe=Lt[it.key]||it.key,Cn="";return Ot.indexOf("code.")>-1&&(Fe=it.code,Cn="code."),!(null==Fe||!Fe)&&(Fe=Fe.toLowerCase()," "===Fe?Fe="space":"."===Fe&&(Fe="dot"),$t.forEach(de=>{de!==Fe&&(0,Jt[de])(it)&&(Cn+=de+".")}),Cn+=Fe,Cn===Ot)}static eventCallback(it,Ot,Fe){return Cn=>{et.matchEventFullKeyCode(Cn,it)&&Fe.runGuarded(()=>Ot(Cn))}}static _normalizeKey(it){return"esc"===it?"escape":it}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(e.K0))};static#e=this.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac})}return et})();const At=(0,o.eFA)(o._c5,"browser",[{provide:o.Lbi,useValue:e.bD},{provide:o.g9A,useValue:function mt(){l.makeCurrent()},multi:!0},{provide:e.K0,useFactory:function ee(){return(0,o.RDi)(document),document},deps:[]}]),st=new o.OlP(""),ie=[{provide:o.rWj,useClass:class y{addToWindow(nt){o.dqk.getAngularTestability=(Ot,Fe=!0)=>{const Cn=nt.findTestabilityInTree(Ot,Fe);if(null==Cn)throw new o.vHH(5103,!1);return Cn},o.dqk.getAllAngularTestabilities=()=>nt.getAllTestabilities(),o.dqk.getAllAngularRootElements=()=>nt.getAllRootElements(),o.dqk.frameworkStabilizers||(o.dqk.frameworkStabilizers=[]),o.dqk.frameworkStabilizers.push(Ot=>{const Fe=o.dqk.getAllAngularTestabilities();let Cn=Fe.length,de=!1;const He=function(X){de=de||X,Cn--,0==Cn&&Ot(de)};Fe.forEach(X=>{X.whenStable(He)})})}findTestabilityInTree(nt,it,Ot){return null==it?null:nt.getTestability(it)??(Ot?(0,e.q)().isShadowRoot(it)?this.findTestabilityInTree(nt,it.host,!0):this.findTestabilityInTree(nt,it.parentElement,!0):null)}},deps:[]},{provide:o.lri,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]},{provide:o.dDg,useClass:o.dDg,deps:[o.R0b,o.eoX,o.rWj]}],Ae=[{provide:o.zSh,useValue:"root"},{provide:o.qLn,useFactory:function yt(){return new o.qLn},deps:[]},{provide:G,useClass:Pt,multi:!0,deps:[e.K0,o.R0b,o.Lbi]},{provide:G,useClass:Tt,multi:!0,deps:[e.K0]},zt,Ht,U,{provide:o.FYo,useExisting:zt},{provide:e.JF,useClass:O,deps:[]},[]];let en=(()=>{class et{constructor(it){}static withServerTransition(it){return{ngModule:et,providers:[{provide:o.AFp,useValue:it.appId}]}}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(st,12))};static#e=this.\u0275mod=o.oAB({type:et});static#n=this.\u0275inj=o.cJS({providers:[...Ae,...ie],imports:[e.ez,o.hGG]})}return et})(),Ve=(()=>{class et{constructor(it){this._doc=it,this._dom=(0,e.q)()}addTag(it,Ot=!1){return it?this._getOrCreateElement(it,Ot):null}addTags(it,Ot=!1){return it?it.reduce((Fe,Cn)=>(Cn&&Fe.push(this._getOrCreateElement(Cn,Ot)),Fe),[]):[]}getTag(it){return it&&this._doc.querySelector(`meta[${it}]`)||null}getTags(it){if(!it)return[];const Ot=this._doc.querySelectorAll(`meta[${it}]`);return Ot?[].slice.call(Ot):[]}updateTag(it,Ot){if(!it)return null;Ot=Ot||this._parseSelector(it);const Fe=this.getTag(Ot);return Fe?this._setMetaElementAttributes(it,Fe):this._getOrCreateElement(it,!0)}removeTag(it){this.removeTagElement(this.getTag(it))}removeTagElement(it){it&&this._dom.remove(it)}_getOrCreateElement(it,Ot=!1){if(!Ot){const de=this._parseSelector(it),He=this.getTags(de).filter(X=>this._containsAttributes(it,X))[0];if(void 0!==He)return He}const Fe=this._dom.createElement("meta");return this._setMetaElementAttributes(it,Fe),this._doc.getElementsByTagName("head")[0].appendChild(Fe),Fe}_setMetaElementAttributes(it,Ot){return Object.keys(it).forEach(Fe=>Ot.setAttribute(this._getMetaKeyMap(Fe),it[Fe])),Ot}_parseSelector(it){const Ot=it.name?"name":"property";return`${Ot}="${it[Ot]}"`}_containsAttributes(it,Ot){return Object.keys(it).every(Fe=>Ot.getAttribute(this._getMetaKeyMap(Fe))===it[Fe])}_getMetaKeyMap(it){return jt[it]||it}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(e.K0))};static#e=this.\u0275prov=o.Yz7({token:et,factory:function(Ot){let Fe=null;return Fe=Ot?new Ot:function In(){return new Ve((0,o.LFG)(e.K0))}(),Fe},providedIn:"root"})}return et})();const jt={httpEquiv:"http-equiv"};let Gt=(()=>{class et{constructor(it){this._doc=it}getTitle(){return this._doc.title}setTitle(it){this._doc.title=it||""}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(e.K0))};static#e=this.\u0275prov=o.Yz7({token:et,factory:function(Ot){let Fe=null;return Fe=Ot?new Ot:function ft(){return new Gt((0,o.LFG)(e.K0))}(),Fe},providedIn:"root"})}return et})();typeof window<"u"&&window;let ce=(()=>{class et{static#t=this.\u0275fac=function(Ot){return new(Ot||et)};static#e=this.\u0275prov=o.Yz7({token:et,factory:function(Ot){let Fe=null;return Fe=Ot?new(Ot||et):o.LFG(Xt),Fe},providedIn:"root"})}return et})(),Xt=(()=>{class et extends ce{constructor(it){super(),this._doc=it}sanitize(it,Ot){if(null==Ot)return null;switch(it){case o.q3G.NONE:return Ot;case o.q3G.HTML:return(0,o.qzn)(Ot,"HTML")?(0,o.z3N)(Ot):(0,o.EiD)(this._doc,String(Ot)).toString();case o.q3G.STYLE:return(0,o.qzn)(Ot,"Style")?(0,o.z3N)(Ot):Ot;case o.q3G.SCRIPT:if((0,o.qzn)(Ot,"Script"))return(0,o.z3N)(Ot);throw new o.vHH(5200,!1);case o.q3G.URL:return(0,o.qzn)(Ot,"URL")?(0,o.z3N)(Ot):(0,o.mCW)(String(Ot));case o.q3G.RESOURCE_URL:if((0,o.qzn)(Ot,"ResourceURL"))return(0,o.z3N)(Ot);throw new o.vHH(5201,!1);default:throw new o.vHH(5202,!1)}}bypassSecurityTrustHtml(it){return(0,o.JVY)(it)}bypassSecurityTrustStyle(it){return(0,o.L6k)(it)}bypassSecurityTrustScript(it){return(0,o.eBb)(it)}bypassSecurityTrustUrl(it){return(0,o.LAX)(it)}bypassSecurityTrustResourceUrl(it){return(0,o.pB0)(it)}static#t=this.\u0275fac=function(Ot){return new(Ot||et)(o.LFG(e.K0))};static#e=this.\u0275prov=o.Yz7({token:et,factory:function(Ot){let Fe=null;return Fe=Ot?new Ot:function ye(et){return new Xt(et.get(e.K0))}(o.LFG(o.zs3)),Fe},providedIn:"root"})}return et})();function oe(){return function on(et,nt=[]){return{\u0275kind:et,\u0275providers:nt}}(0)}function Se(...et){const nt=[],it=new Set;for(const{\u0275providers:Ot,\u0275kind:Fe}of et)it.add(Fe),Ot.length&&nt.push(Ot);return(0,o.MR2)([[],it.has(0)?[]:(0,o.EGt)(),it.has(1)?[]:(0,g.dh)(),nt])}},2787:(Je,Rt,c)=>{"use strict";c.d(Rt,{gz:()=>$o,sz:()=>Ft,m2:()=>Sn,OD:()=>Ye,F0:()=>Nn,rH:()=>jn,Od:()=>oi,Bz:()=>Qi,lC:()=>un,Hx:()=>ue});var o=c(5879),e=c(2664),g=c(7715),x=c(2096),l=c(5619),i=c(2572),R=c(6973),f=c(5211),t=c(4911),y=c(8407),O=c(8504),G=c(6232),U=c(3168),lt=c(8645),ut=c(7394),Ht=c(6814),A=c(7398),xt=c(4664),tt=c(8180),ct=c(7921),_=c(2181),j=c(9769),q=c(1374),ht=c(6328),vt=c(9397),gt=c(6306),zt=c(9360),Ct=c(8251);var z=c(3572);function F(I){return I<=0?()=>G.E:(0,zt.e)((Y,D)=>{let Q=[];Y.subscribe((0,Ct.x)(D,_t=>{Q.push(_t),I<Q.length&&Q.shift()},()=>{for(const _t of Q)D.next(_t);D.complete()},void 0,()=>{Q=null}))})}var rt=c(3026),V=c(2737),$t=c(975),Lt=c(4716),Jt=c(6196),Tt=c(9773),$=c(7537),pt=c(6593);const Dt="primary",St=Symbol("RouteTitle");class mt{constructor(Y){this.params=Y||{}}has(Y){return Object.prototype.hasOwnProperty.call(this.params,Y)}get(Y){if(this.has(Y)){const D=this.params[Y];return Array.isArray(D)?D[0]:D}return null}getAll(Y){if(this.has(Y)){const D=this.params[Y];return Array.isArray(D)?D:[D]}return[]}get keys(){return Object.keys(this.params)}}function yt(I){return new mt(I)}function ee(I,Y,D){const Q=D.path.split("/");if(Q.length>I.length||"full"===D.pathMatch&&(Y.hasChildren()||Q.length<I.length))return null;const _t={};for(let Wt=0;Wt<Q.length;Wt++){const Re=Q[Wt],bn=I[Wt];if(Re.startsWith(":"))_t[Re.substring(1)]=bn;else if(Re!==bn.path)return null}return{consumed:I.slice(0,Q.length),posParams:_t}}function At(I,Y){const D=I?Object.keys(I):void 0,Q=Y?Object.keys(Y):void 0;if(!D||!Q||D.length!=Q.length)return!1;let _t;for(let Wt=0;Wt<D.length;Wt++)if(_t=D[Wt],!st(I[_t],Y[_t]))return!1;return!0}function st(I,Y){if(Array.isArray(I)&&Array.isArray(Y)){if(I.length!==Y.length)return!1;const D=[...I].sort(),Q=[...Y].sort();return D.every((_t,Wt)=>Q[Wt]===_t)}return I===Y}function ie(I){return I.length>0?I[I.length-1]:null}function Ae(I){return(0,e.b)(I)?I:(0,o.QGY)(I)?(0,g.D)(Promise.resolve(I)):(0,x.of)(I)}const en={exact:function ft(I,Y,D){if(!rn(I.segments,Y.segments)||!me(I.segments,Y.segments,D)||I.numberOfChildren!==Y.numberOfChildren)return!1;for(const Q in Y.children)if(!I.children[Q]||!ft(I.children[Q],Y.children[Q],D))return!1;return!0},subset:Ce},In={exact:function jt(I,Y){return At(I,Y)},subset:function Gt(I,Y){return Object.keys(Y).length<=Object.keys(I).length&&Object.keys(Y).every(D=>st(I[D],Y[D]))},ignored:()=>!0};function Ve(I,Y,D){return en[D.paths](I.root,Y.root,D.matrixParams)&&In[D.queryParams](I.queryParams,Y.queryParams)&&!("exact"===D.fragment&&I.fragment!==Y.fragment)}function Ce(I,Y,D){return ve(I,Y,Y.segments,D)}function ve(I,Y,D,Q){if(I.segments.length>D.length){const _t=I.segments.slice(0,D.length);return!(!rn(_t,D)||Y.hasChildren()||!me(_t,D,Q))}if(I.segments.length===D.length){if(!rn(I.segments,D)||!me(I.segments,D,Q))return!1;for(const _t in Y.children)if(!I.children[_t]||!Ce(I.children[_t],Y.children[_t],Q))return!1;return!0}{const _t=D.slice(0,I.segments.length),Wt=D.slice(I.segments.length);return!!(rn(I.segments,_t)&&me(I.segments,_t,Q)&&I.children[Dt])&&ve(I.children[Dt],Y,Wt,Q)}}function me(I,Y,D){return Y.every((Q,_t)=>In[D](I[_t].parameters,Q.parameters))}class De{constructor(Y=new tn([],{}),D={},Q=null){this.root=Y,this.queryParams=D,this.fragment=Q}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yt(this.queryParams)),this._queryParamMap}toString(){return be.serialize(this)}}class tn{constructor(Y,D){this.segments=Y,this.children=D,this.parent=null,Object.values(D).forEach(Q=>Q.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return qt(this)}}class gn{constructor(Y,D){this.path=Y,this.parameters=D}get parameterMap(){return this._parameterMap||(this._parameterMap=yt(this.parameters)),this._parameterMap}toString(){return oe(this)}}function rn(I,Y){return I.length===Y.length&&I.every((D,Q)=>D.path===Y[Q].path)}let ue=(()=>{class I{static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:function(){return new Ft},providedIn:"root"})}return I})();class Ft{parse(Y){const D=new Fe(Y);return new De(D.parseRootSegment(),D.parseQueryParams(),D.parseFragment())}serialize(Y){const D=`/${Te(Y.root,!0)}`,Q=function te(I){const Y=Object.keys(I).map(D=>{const Q=I[D];return Array.isArray(Q)?Q.map(_t=>`${_n(D)}=${_n(_t)}`).join("&"):`${_n(D)}=${_n(Q)}`}).filter(D=>!!D);return Y.length?`?${Y.join("&")}`:""}(Y.queryParams);return`${D}${Q}${"string"==typeof Y.fragment?`#${function ce(I){return encodeURI(I)}(Y.fragment)}`:""}`}}const be=new Ft;function qt(I){return I.segments.map(Y=>oe(Y)).join("/")}function Te(I,Y){if(!I.hasChildren())return qt(I);if(Y){const D=I.children[Dt]?Te(I.children[Dt],!1):"",Q=[];return Object.entries(I.children).forEach(([_t,Wt])=>{_t!==Dt&&Q.push(`${_t}:${Te(Wt,!1)}`)}),Q.length>0?`${D}(${Q.join("//")})`:D}{const D=function re(I,Y){let D=[];return Object.entries(I.children).forEach(([Q,_t])=>{Q===Dt&&(D=D.concat(Y(_t,Q)))}),Object.entries(I.children).forEach(([Q,_t])=>{Q!==Dt&&(D=D.concat(Y(_t,Q)))}),D}(I,(Q,_t)=>_t===Dt?[Te(I.children[Dt],!1)]:[`${_t}:${Te(Q,!1)}`]);return 1===Object.keys(I.children).length&&null!=I.children[Dt]?`${qt(I)}/${D[0]}`:`${qt(I)}/(${D.join("//")})`}}function Me(I){return encodeURIComponent(I).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _n(I){return Me(I).replace(/%3B/gi,";")}function ye(I){return Me(I).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Xt(I){return decodeURIComponent(I)}function on(I){return Xt(I.replace(/\+/g,"%20"))}function oe(I){return`${ye(I.path)}${function $e(I){return Object.keys(I).map(Y=>`;${ye(Y)}=${ye(I[Y])}`).join("")}(I.parameters)}`}const Se=/^[^\/()?;#]+/;function Ke(I){const Y=I.match(Se);return Y?Y[0]:""}const Oe=/^[^\/()?;=#]+/,et=/^[^=?&#]+/,it=/^[^&#]+/;class Fe{constructor(Y){this.url=Y,this.remaining=Y}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new tn([],{}):new tn([],this.parseChildren())}parseQueryParams(){const Y={};if(this.consumeOptional("?"))do{this.parseQueryParam(Y)}while(this.consumeOptional("&"));return Y}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Y=[];for(this.peekStartsWith("(")||Y.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Y.push(this.parseSegment());let D={};this.peekStartsWith("/(")&&(this.capture("/"),D=this.parseParens(!0));let Q={};return this.peekStartsWith("(")&&(Q=this.parseParens(!1)),(Y.length>0||Object.keys(D).length>0)&&(Q[Dt]=new tn(Y,D)),Q}parseSegment(){const Y=Ke(this.remaining);if(""===Y&&this.peekStartsWith(";"))throw new o.vHH(4009,!1);return this.capture(Y),new gn(Xt(Y),this.parseMatrixParams())}parseMatrixParams(){const Y={};for(;this.consumeOptional(";");)this.parseParam(Y);return Y}parseParam(Y){const D=function Qe(I){const Y=I.match(Oe);return Y?Y[0]:""}(this.remaining);if(!D)return;this.capture(D);let Q="";if(this.consumeOptional("=")){const _t=Ke(this.remaining);_t&&(Q=_t,this.capture(Q))}Y[Xt(D)]=Xt(Q)}parseQueryParam(Y){const D=function nt(I){const Y=I.match(et);return Y?Y[0]:""}(this.remaining);if(!D)return;this.capture(D);let Q="";if(this.consumeOptional("=")){const Re=function Ot(I){const Y=I.match(it);return Y?Y[0]:""}(this.remaining);Re&&(Q=Re,this.capture(Q))}const _t=on(D),Wt=on(Q);if(Y.hasOwnProperty(_t)){let Re=Y[_t];Array.isArray(Re)||(Re=[Re],Y[_t]=Re),Re.push(Wt)}else Y[_t]=Wt}parseParens(Y){const D={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Q=Ke(this.remaining),_t=this.remaining[Q.length];if("/"!==_t&&")"!==_t&&";"!==_t)throw new o.vHH(4010,!1);let Wt;Q.indexOf(":")>-1?(Wt=Q.slice(0,Q.indexOf(":")),this.capture(Wt),this.capture(":")):Y&&(Wt=Dt);const Re=this.parseChildren();D[Wt]=1===Object.keys(Re).length?Re[Dt]:new tn([],Re),this.consumeOptional("//")}return D}peekStartsWith(Y){return this.remaining.startsWith(Y)}consumeOptional(Y){return!!this.peekStartsWith(Y)&&(this.remaining=this.remaining.substring(Y.length),!0)}capture(Y){if(!this.consumeOptional(Y))throw new o.vHH(4011,!1)}}function Cn(I){return I.segments.length>0?new tn([],{[Dt]:I}):I}function de(I){const Y={};for(const Q of Object.keys(I.children)){const Wt=de(I.children[Q]);if(Q===Dt&&0===Wt.segments.length&&Wt.hasChildren())for(const[Re,bn]of Object.entries(Wt.children))Y[Re]=bn;else(Wt.segments.length>0||Wt.hasChildren())&&(Y[Q]=Wt)}return function He(I){if(1===I.numberOfChildren&&I.children[Dt]){const Y=I.children[Dt];return new tn(I.segments.concat(Y.segments),Y.children)}return I}(new tn(I.segments,Y))}function X(I){return I instanceof De}function ze(I){let Y;const _t=Cn(function D(Wt){const Re={};for(const fn of Wt.children){const Wn=D(fn);Re[fn.outlet]=Wn}const bn=new tn(Wt.url,Re);return Wt===I&&(Y=bn),bn}(I.root));return Y??_t}function dn(I,Y,D,Q){let _t=I;for(;_t.parent;)_t=_t.parent;if(0===Y.length)return ke(_t,_t,_t,D,Q);const Wt=function cn(I){if("string"==typeof I[0]&&1===I.length&&"/"===I[0])return new le(!0,0,I);let Y=0,D=!1;const Q=I.reduce((_t,Wt,Re)=>{if("object"==typeof Wt&&null!=Wt){if(Wt.outlets){const bn={};return Object.entries(Wt.outlets).forEach(([fn,Wn])=>{bn[fn]="string"==typeof Wn?Wn.split("/"):Wn}),[..._t,{outlets:bn}]}if(Wt.segmentPath)return[..._t,Wt.segmentPath]}return"string"!=typeof Wt?[..._t,Wt]:0===Re?(Wt.split("/").forEach((bn,fn)=>{0==fn&&"."===bn||(0==fn&&""===bn?D=!0:".."===bn?Y++:""!=bn&&_t.push(bn))}),_t):[..._t,Wt]},[]);return new le(D,Y,Q)}(Y);if(Wt.toRoot())return ke(_t,_t,new tn([],{}),D,Q);const Re=function Ie(I,Y,D){if(I.isAbsolute)return new se(Y,!0,0);if(!D)return new se(Y,!1,NaN);if(null===D.parent)return new se(D,!0,0);const Q=Tn(I.commands[0])?0:1;return function We(I,Y,D){let Q=I,_t=Y,Wt=D;for(;Wt>_t;){if(Wt-=_t,Q=Q.parent,!Q)throw new o.vHH(4005,!1);_t=Q.segments.length}return new se(Q,!1,_t-Wt)}(D,D.segments.length-1+Q,I.numberOfDoubleDots)}(Wt,_t,I),bn=Re.processChildren?Ji(Re.segmentGroup,Re.index,Wt.commands):ci(Re.segmentGroup,Re.index,Wt.commands);return ke(_t,Re.segmentGroup,bn,D,Q)}function Tn(I){return"object"==typeof I&&null!=I&&!I.outlets&&!I.segmentPath}function je(I){return"object"==typeof I&&null!=I&&I.outlets}function ke(I,Y,D,Q,_t){let Re,Wt={};Q&&Object.entries(Q).forEach(([fn,Wn])=>{Wt[fn]=Array.isArray(Wn)?Wn.map(wn=>`${wn}`):`${Wn}`}),Re=I===Y?D:Ne(I,Y,D);const bn=Cn(de(Re));return new De(bn,Wt,_t)}function Ne(I,Y,D){const Q={};return Object.entries(I.children).forEach(([_t,Wt])=>{Q[_t]=Wt===Y?D:Ne(Wt,Y,D)}),new tn(I.segments,Q)}class le{constructor(Y,D,Q){if(this.isAbsolute=Y,this.numberOfDoubleDots=D,this.commands=Q,Y&&Q.length>0&&Tn(Q[0]))throw new o.vHH(4003,!1);const _t=Q.find(je);if(_t&&_t!==ie(Q))throw new o.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class se{constructor(Y,D,Q){this.segmentGroup=Y,this.processChildren=D,this.index=Q}}function ci(I,Y,D){if(I||(I=new tn([],{})),0===I.segments.length&&I.hasChildren())return Ji(I,Y,D);const Q=function Ei(I,Y,D){let Q=0,_t=Y;const Wt={match:!1,pathIndex:0,commandIndex:0};for(;_t<I.segments.length;){if(Q>=D.length)return Wt;const Re=I.segments[_t],bn=D[Q];if(je(bn))break;const fn=`${bn}`,Wn=Q<D.length-1?D[Q+1]:null;if(_t>0&&void 0===fn)break;if(fn&&Wn&&"object"==typeof Wn&&void 0===Wn.outlets){if(!Ai(fn,Wn,Re))return Wt;Q+=2}else{if(!Ai(fn,{},Re))return Wt;Q++}_t++}return{match:!0,pathIndex:_t,commandIndex:Q}}(I,Y,D),_t=D.slice(Q.commandIndex);if(Q.match&&Q.pathIndex<I.segments.length){const Wt=new tn(I.segments.slice(0,Q.pathIndex),{});return Wt.children[Dt]=new tn(I.segments.slice(Q.pathIndex),I.children),Ji(Wt,0,_t)}return Q.match&&0===_t.length?new tn(I.segments,{}):Q.match&&!I.hasChildren()?Yi(I,Y,D):Q.match?Ji(I,0,_t):Yi(I,Y,D)}function Ji(I,Y,D){if(0===D.length)return new tn(I.segments,{});{const Q=function Mn(I){return je(I[0])?I[0].outlets:{[Dt]:I}}(D),_t={};if(Object.keys(Q).some(Wt=>Wt!==Dt)&&I.children[Dt]&&1===I.numberOfChildren&&0===I.children[Dt].segments.length){const Wt=Ji(I.children[Dt],Y,D);return new tn(I.segments,Wt.children)}return Object.entries(Q).forEach(([Wt,Re])=>{"string"==typeof Re&&(Re=[Re]),null!==Re&&(_t[Wt]=ci(I.children[Wt],Y,Re))}),Object.entries(I.children).forEach(([Wt,Re])=>{void 0===Q[Wt]&&(_t[Wt]=Re)}),new tn(I.segments,_t)}}function Yi(I,Y,D){const Q=I.segments.slice(0,Y);let _t=0;for(;_t<D.length;){const Wt=D[_t];if(je(Wt)){const fn=No(Wt.outlets);return new tn(Q,fn)}if(0===_t&&Tn(D[0])){Q.push(new gn(I.segments[Y].path,Mo(D[0]))),_t++;continue}const Re=je(Wt)?Wt.outlets[Dt]:`${Wt}`,bn=_t<D.length-1?D[_t+1]:null;Re&&bn&&Tn(bn)?(Q.push(new gn(Re,Mo(bn))),_t+=2):(Q.push(new gn(Re,{})),_t++)}return new tn(Q,{})}function No(I){const Y={};return Object.entries(I).forEach(([D,Q])=>{"string"==typeof Q&&(Q=[Q]),null!==Q&&(Y[D]=Yi(new tn([],{}),0,Q))}),Y}function Mo(I){const Y={};return Object.entries(I).forEach(([D,Q])=>Y[D]=`${Q}`),Y}function Ai(I,Y,D){return I==D.path&&At(Y,D.parameters)}const Ui="imperative";class io{constructor(Y,D){this.id=Y,this.url=D}}class Ye extends io{constructor(Y,D,Q="imperative",_t=null){super(Y,D),this.type=0,this.navigationTrigger=Q,this.restoredState=_t}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Sn extends io{constructor(Y,D,Q){super(Y,D),this.urlAfterRedirects=Q,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class N extends io{constructor(Y,D,Q,_t){super(Y,D),this.reason=Q,this.code=_t,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Zt extends io{constructor(Y,D,Q,_t){super(Y,D),this.reason=Q,this.code=_t,this.type=16}}class kt extends io{constructor(Y,D,Q,_t){super(Y,D),this.error=Q,this.target=_t,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fe extends io{constructor(Y,D,Q,_t){super(Y,D),this.urlAfterRedirects=Q,this.state=_t,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class sn extends io{constructor(Y,D,Q,_t){super(Y,D),this.urlAfterRedirects=Q,this.state=_t,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gn extends io{constructor(Y,D,Q,_t,Wt){super(Y,D),this.urlAfterRedirects=Q,this.state=_t,this.shouldActivate=Wt,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Do extends io{constructor(Y,D,Q,_t){super(Y,D),this.urlAfterRedirects=Q,this.state=_t,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fo extends io{constructor(Y,D,Q,_t){super(Y,D),this.urlAfterRedirects=Q,this.state=_t,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ir{constructor(Y){this.route=Y,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ut{constructor(Y){this.route=Y,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Rn{constructor(Y){this.snapshot=Y,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Bt{constructor(Y){this.snapshot=Y,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class he{constructor(Y){this.snapshot=Y,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Be{constructor(Y){this.snapshot=Y,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xn{constructor(Y,D,Q){this.routerEvent=Y,this.position=D,this.anchor=Q,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Fn{}class li{constructor(Y){this.url=Y}}class wo{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Wi,this.attachRef=null}}let Wi=(()=>{class I{constructor(){this.contexts=new Map}onChildOutletCreated(D,Q){const _t=this.getOrCreateContext(D);_t.outlet=Q,this.contexts.set(D,_t)}onChildOutletDestroyed(D){const Q=this.getContext(D);Q&&(Q.outlet=null,Q.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let Q=this.getContext(D);return Q||(Q=new wo,this.contexts.set(D,Q)),Q}getContext(D){return this.contexts.get(D)||null}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();class go{constructor(Y){this._root=Y}get root(){return this._root.value}parent(Y){const D=this.pathFromRoot(Y);return D.length>1?D[D.length-2]:null}children(Y){const D=Xi(Y,this._root);return D?D.children.map(Q=>Q.value):[]}firstChild(Y){const D=Xi(Y,this._root);return D&&D.children.length>0?D.children[0].value:null}siblings(Y){const D=co(Y,this._root);return D.length<2?[]:D[D.length-2].children.map(_t=>_t.value).filter(_t=>_t!==Y)}pathFromRoot(Y){return co(Y,this._root).map(D=>D.value)}}function Xi(I,Y){if(I===Y.value)return Y;for(const D of Y.children){const Q=Xi(I,D);if(Q)return Q}return null}function co(I,Y){if(I===Y.value)return[Y];for(const D of Y.children){const Q=co(I,D);if(Q.length)return Q.unshift(Y),Q}return[]}class Ho{constructor(Y,D){this.value=Y,this.children=D}toString(){return`TreeNode(${this.value})`}}function ko(I){const Y={};return I&&I.children.forEach(D=>Y[D.value.outlet]=D),Y}class ii extends go{constructor(Y,D){super(Y),this.snapshot=D,Mt(this,Y)}toString(){return this.snapshot.toString()}}function lo(I,Y){const D=function xo(I,Y){const Re=new ur([],{},{},"",{},Dt,Y,null,{});return new xe("",new Ho(Re,[]))}(0,Y),Q=new l.X([new gn("",{})]),_t=new l.X({}),Wt=new l.X({}),Re=new l.X({}),bn=new l.X(""),fn=new $o(Q,_t,Re,bn,Wt,Dt,Y,D.root);return fn.snapshot=D.root,new ii(new Ho(fn,[]),D)}class $o{constructor(Y,D,Q,_t,Wt,Re,bn,fn){this.urlSubject=Y,this.paramsSubject=D,this.queryParamsSubject=Q,this.fragmentSubject=_t,this.dataSubject=Wt,this.outlet=Re,this.component=bn,this._futureSnapshot=fn,this.title=this.dataSubject?.pipe((0,A.U)(Wn=>Wn[St]))??(0,x.of)(void 0),this.url=Y,this.params=D,this.queryParams=Q,this.fragment=_t,this.data=Wt}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,A.U)(Y=>yt(Y)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,A.U)(Y=>yt(Y)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Eo(I,Y="emptyOnly"){const D=I.pathFromRoot;let Q=0;if("always"!==Y)for(Q=D.length-1;Q>=1;){const _t=D[Q],Wt=D[Q-1];if(_t.routeConfig&&""===_t.routeConfig.path)Q--;else{if(Wt.component)break;Q--}}return function wr(I){return I.reduce((Y,D)=>({params:{...Y.params,...D.params},data:{...Y.data,...D.data},resolve:{...D.data,...Y.resolve,...D.routeConfig?.data,...D._resolvedData}}),{params:{},data:{},resolve:{}})}(D.slice(Q))}class ur{get title(){return this.data?.[St]}constructor(Y,D,Q,_t,Wt,Re,bn,fn,Wn){this.url=Y,this.params=D,this.queryParams=Q,this.fragment=_t,this.data=Wt,this.outlet=Re,this.component=bn,this.routeConfig=fn,this._resolve=Wn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=yt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=yt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Q=>Q.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xe extends go{constructor(Y,D){super(D),this.url=Y,Mt(this,D)}toString(){return Kt(this._root)}}function Mt(I,Y){Y.value._routerState=I,Y.children.forEach(D=>Mt(I,D))}function Kt(I){const Y=I.children.length>0?` { ${I.children.map(Kt).join(", ")} } `:"";return`${I.value}${Y}`}function ge(I){if(I.snapshot){const Y=I.snapshot,D=I._futureSnapshot;I.snapshot=D,At(Y.queryParams,D.queryParams)||I.queryParamsSubject.next(D.queryParams),Y.fragment!==D.fragment&&I.fragmentSubject.next(D.fragment),At(Y.params,D.params)||I.paramsSubject.next(D.params),function B(I,Y){if(I.length!==Y.length)return!1;for(let D=0;D<I.length;++D)if(!At(I[D],Y[D]))return!1;return!0}(Y.url,D.url)||I.urlSubject.next(D.url),At(Y.data,D.data)||I.dataSubject.next(D.data)}else I.snapshot=I._futureSnapshot,I.dataSubject.next(I._futureSnapshot.data)}function Pe(I,Y){const D=At(I.params,Y.params)&&function Xe(I,Y){return rn(I,Y)&&I.every((D,Q)=>At(D.parameters,Y[Q].parameters))}(I.url,Y.url);return D&&!(!I.parent!=!Y.parent)&&(!I.parent||Pe(I.parent,Y.parent))}let un=(()=>{class I{constructor(){this.activated=null,this._activatedRoute=null,this.name=Dt,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.attachEvents=new o.vpe,this.detachEvents=new o.vpe,this.parentContexts=(0,o.f3M)(Wi),this.location=(0,o.f3M)(o.s_b),this.changeDetector=(0,o.f3M)(o.sBO),this.environmentInjector=(0,o.f3M)(o.lqb),this.inputBinder=(0,o.f3M)(Un,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:Q,previousValue:_t}=D.name;if(Q)return;this.isTrackedInParentContexts(_t)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(_t)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){return this.parentContexts.getContext(D)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);D?.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.vHH(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,Q){this.activated=D,this._activatedRoute=Q,this.location.insert(D.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,Q){if(this.isActivated)throw new o.vHH(4013,!1);this._activatedRoute=D;const _t=this.location,Re=D.snapshot.component,bn=this.parentContexts.getOrCreateContext(this.name).children,fn=new Dn(D,bn,_t.injector);this.activated=_t.createComponent(Re,{index:_t.length,injector:fn,environmentInjector:Q??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275dir=o.lG2({type:I,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[o.TTD]})}return I})();class Dn{constructor(Y,D,Q){this.route=Y,this.childContexts=D,this.parent=Q}get(Y,D){return Y===$o?this.route:Y===Wi?this.childContexts:this.parent.get(Y,D)}}const Un=new o.OlP("");let Qn=(()=>{class I{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){this.outletDataSubscriptions.get(D)?.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:Q}=D,_t=(0,i.a)([Q.queryParams,Q.params,Q.data]).pipe((0,xt.w)(([Wt,Re,bn],fn)=>(bn={...Wt,...Re,...bn},0===fn?(0,x.of)(bn):Promise.resolve(bn)))).subscribe(Wt=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==Q||null===Q.component)return void this.unsubscribeFromRouteData(D);const Re=(0,o.qFp)(Q.component);if(Re)for(const{templateName:bn}of Re.inputs)D.activatedComponentRef.setInput(bn,Wt[bn]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,_t)}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac})}return I})();function Oi(I,Y,D){if(D&&I.shouldReuseRoute(Y.value,D.value.snapshot)){const Q=D.value;Q._futureSnapshot=Y.value;const _t=function ni(I,Y,D){return Y.children.map(Q=>{for(const _t of D.children)if(I.shouldReuseRoute(Q.value,_t.value.snapshot))return Oi(I,Q,_t);return Oi(I,Q)})}(I,Y,D);return new Ho(Q,_t)}{if(I.shouldAttach(Y.value)){const Wt=I.retrieve(Y.value);if(null!==Wt){const Re=Wt.route;return Re.value._futureSnapshot=Y.value,Re.children=Y.children.map(bn=>Oi(I,bn)),Re}}const Q=function pi(I){return new $o(new l.X(I.url),new l.X(I.params),new l.X(I.queryParams),new l.X(I.fragment),new l.X(I.data),I.outlet,I.component,I)}(Y.value),_t=Y.children.map(Wt=>Oi(I,Wt));return new Ho(Q,_t)}}const Gi="ngNavigationCancelingError";function Zn(I,Y){const{redirectTo:D,navigationBehaviorOptions:Q}=X(Y)?{redirectTo:Y,navigationBehaviorOptions:void 0}:Y,_t=Li(!1,0,Y);return _t.url=D,_t.navigationBehaviorOptions=Q,_t}function Li(I,Y,D){const Q=new Error("NavigationCancelingError: "+(I||""));return Q[Gi]=!0,Q.cancellationCode=Y,D&&(Q.url=D),Q}function mo(I){return I&&I[Gi]}let qn=(()=>{class I{static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275cmp=o.Xpm({type:I,selectors:[["ng-component"]],standalone:!0,features:[o.jDz],decls:1,vars:0,template:function(Q,_t){1&Q&&o._UZ(0,"router-outlet")},dependencies:[un],encapsulation:2})}return I})();function bi(I){const Y=I.children&&I.children.map(bi),D=Y?{...I,children:Y}:{...I};return!D.component&&!D.loadComponent&&(Y||D.loadChildren)&&D.outlet&&D.outlet!==Dt&&(D.component=qn),D}function Xn(I){return I.outlet||Dt}function uo(I){if(!I)return null;if(I.routeConfig?._injector)return I.routeConfig._injector;for(let Y=I.parent;Y;Y=Y.parent){const D=Y.routeConfig;if(D?._loadedInjector)return D._loadedInjector;if(D?._injector)return D._injector}return null}class gr{constructor(Y,D,Q,_t,Wt){this.routeReuseStrategy=Y,this.futureState=D,this.currState=Q,this.forwardEvent=_t,this.inputBindingEnabled=Wt}activate(Y){const D=this.futureState._root,Q=this.currState?this.currState._root:null;this.deactivateChildRoutes(D,Q,Y),ge(this.futureState.root),this.activateChildRoutes(D,Q,Y)}deactivateChildRoutes(Y,D,Q){const _t=ko(D);Y.children.forEach(Wt=>{const Re=Wt.value.outlet;this.deactivateRoutes(Wt,_t[Re],Q),delete _t[Re]}),Object.values(_t).forEach(Wt=>{this.deactivateRouteAndItsChildren(Wt,Q)})}deactivateRoutes(Y,D,Q){const _t=Y.value,Wt=D?D.value:null;if(_t===Wt)if(_t.component){const Re=Q.getContext(_t.outlet);Re&&this.deactivateChildRoutes(Y,D,Re.children)}else this.deactivateChildRoutes(Y,D,Q);else Wt&&this.deactivateRouteAndItsChildren(D,Q)}deactivateRouteAndItsChildren(Y,D){Y.value.component&&this.routeReuseStrategy.shouldDetach(Y.value.snapshot)?this.detachAndStoreRouteSubtree(Y,D):this.deactivateRouteAndOutlet(Y,D)}detachAndStoreRouteSubtree(Y,D){const Q=D.getContext(Y.value.outlet),_t=Q&&Y.value.component?Q.children:D,Wt=ko(Y);for(const Re of Object.keys(Wt))this.deactivateRouteAndItsChildren(Wt[Re],_t);if(Q&&Q.outlet){const Re=Q.outlet.detach(),bn=Q.children.onOutletDeactivated();this.routeReuseStrategy.store(Y.value.snapshot,{componentRef:Re,route:Y,contexts:bn})}}deactivateRouteAndOutlet(Y,D){const Q=D.getContext(Y.value.outlet),_t=Q&&Y.value.component?Q.children:D,Wt=ko(Y);for(const Re of Object.keys(Wt))this.deactivateRouteAndItsChildren(Wt[Re],_t);Q&&(Q.outlet&&(Q.outlet.deactivate(),Q.children.onOutletDeactivated()),Q.attachRef=null,Q.route=null)}activateChildRoutes(Y,D,Q){const _t=ko(D);Y.children.forEach(Wt=>{this.activateRoutes(Wt,_t[Wt.value.outlet],Q),this.forwardEvent(new Be(Wt.value.snapshot))}),Y.children.length&&this.forwardEvent(new Bt(Y.value.snapshot))}activateRoutes(Y,D,Q){const _t=Y.value,Wt=D?D.value:null;if(ge(_t),_t===Wt)if(_t.component){const Re=Q.getOrCreateContext(_t.outlet);this.activateChildRoutes(Y,D,Re.children)}else this.activateChildRoutes(Y,D,Q);else if(_t.component){const Re=Q.getOrCreateContext(_t.outlet);if(this.routeReuseStrategy.shouldAttach(_t.snapshot)){const bn=this.routeReuseStrategy.retrieve(_t.snapshot);this.routeReuseStrategy.store(_t.snapshot,null),Re.children.onOutletReAttached(bn.contexts),Re.attachRef=bn.componentRef,Re.route=bn.route.value,Re.outlet&&Re.outlet.attach(bn.componentRef,bn.route.value),ge(bn.route.value),this.activateChildRoutes(Y,null,Re.children)}else{const bn=uo(_t.snapshot);Re.attachRef=null,Re.route=_t,Re.injector=bn,Re.outlet&&Re.outlet.activateWith(_t,Re.injector),this.activateChildRoutes(Y,null,Re.children)}}else this.activateChildRoutes(Y,null,Q)}}class rr{constructor(Y){this.path=Y,this.route=this.path[this.path.length-1]}}class fo{constructor(Y,D){this.component=Y,this.route=D}}function js(I,Y,D){const Q=I._root;return pr(Q,Y?Y._root:null,D,[Q.value])}function _o(I,Y){const D=Symbol(),Q=Y.get(I,D);return Q===D?"function"!=typeof I||(0,o.Z0I)(I)?Y.get(I):I:Q}function pr(I,Y,D,Q,_t={canDeactivateChecks:[],canActivateChecks:[]}){const Wt=ko(Y);return I.children.forEach(Re=>{(function mr(I,Y,D,Q,_t={canDeactivateChecks:[],canActivateChecks:[]}){const Wt=I.value,Re=Y?Y.value:null,bn=D?D.getContext(I.value.outlet):null;if(Re&&Wt.routeConfig===Re.routeConfig){const fn=function Wr(I,Y,D){if("function"==typeof D)return D(I,Y);switch(D){case"pathParamsChange":return!rn(I.url,Y.url);case"pathParamsOrQueryParamsChange":return!rn(I.url,Y.url)||!At(I.queryParams,Y.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Pe(I,Y)||!At(I.queryParams,Y.queryParams);default:return!Pe(I,Y)}}(Re,Wt,Wt.routeConfig.runGuardsAndResolvers);fn?_t.canActivateChecks.push(new rr(Q)):(Wt.data=Re.data,Wt._resolvedData=Re._resolvedData),pr(I,Y,Wt.component?bn?bn.children:null:D,Q,_t),fn&&bn&&bn.outlet&&bn.outlet.isActivated&&_t.canDeactivateChecks.push(new fo(bn.outlet.component,Re))}else Re&&vn(Y,bn,_t),_t.canActivateChecks.push(new rr(Q)),pr(I,null,Wt.component?bn?bn.children:null:D,Q,_t)})(Re,Wt[Re.value.outlet],D,Q.concat([Re.value]),_t),delete Wt[Re.value.outlet]}),Object.entries(Wt).forEach(([Re,bn])=>vn(bn,D.getContext(Re),_t)),_t}function vn(I,Y,D){const Q=ko(I),_t=I.value;Object.entries(Q).forEach(([Wt,Re])=>{vn(Re,_t.component?Y?Y.children.getContext(Wt):null:Y,D)}),D.canDeactivateChecks.push(new fo(_t.component&&Y&&Y.outlet&&Y.outlet.isActivated?Y.outlet.component:null,_t))}function fr(I){return"function"==typeof I}function Ge(I){return I instanceof R.K||"EmptyError"===I?.name}const ri=Symbol("INITIAL_VALUE");function Ti(){return(0,xt.w)(I=>(0,i.a)(I.map(Y=>Y.pipe((0,tt.q)(1),(0,ct.O)(ri)))).pipe((0,A.U)(Y=>{for(const D of Y)if(!0!==D){if(D===ri)return ri;if(!1===D||D instanceof De)return D}return!0}),(0,_.h)(Y=>Y!==ri),(0,tt.q)(1)))}function Fi(I){return(0,y.z)((0,vt.b)(Y=>{if(X(Y))throw Zn(0,Y)}),(0,A.U)(Y=>!0===Y))}class Ko{constructor(Y){this.segmentGroup=Y||null}}class ar{constructor(Y){this.urlTree=Y}}function Cr(I){return(0,O._)(new Ko(I))}function Qs(I){return(0,O._)(new ar(I))}class Oo{constructor(Y,D){this.urlSerializer=Y,this.urlTree=D}noMatchError(Y){return new o.vHH(4002,!1)}lineralizeSegments(Y,D){let Q=[],_t=D.root;for(;;){if(Q=Q.concat(_t.segments),0===_t.numberOfChildren)return(0,x.of)(Q);if(_t.numberOfChildren>1||!_t.children[Dt])return(0,O._)(new o.vHH(4e3,!1));_t=_t.children[Dt]}}applyRedirectCommands(Y,D,Q){return this.applyRedirectCreateUrlTree(D,this.urlSerializer.parse(D),Y,Q)}applyRedirectCreateUrlTree(Y,D,Q,_t){const Wt=this.createSegmentGroup(Y,D.root,Q,_t);return new De(Wt,this.createQueryParams(D.queryParams,this.urlTree.queryParams),D.fragment)}createQueryParams(Y,D){const Q={};return Object.entries(Y).forEach(([_t,Wt])=>{if("string"==typeof Wt&&Wt.startsWith(":")){const bn=Wt.substring(1);Q[_t]=D[bn]}else Q[_t]=Wt}),Q}createSegmentGroup(Y,D,Q,_t){const Wt=this.createSegments(Y,D.segments,Q,_t);let Re={};return Object.entries(D.children).forEach(([bn,fn])=>{Re[bn]=this.createSegmentGroup(Y,fn,Q,_t)}),new tn(Wt,Re)}createSegments(Y,D,Q,_t){return D.map(Wt=>Wt.path.startsWith(":")?this.findPosParam(Y,Wt,_t):this.findOrReturn(Wt,Q))}findPosParam(Y,D,Q){const _t=Q[D.path.substring(1)];if(!_t)throw new o.vHH(4001,!1);return _t}findOrReturn(Y,D){let Q=0;for(const _t of D){if(_t.path===Y.path)return D.splice(Q),_t;Q++}return Y}}const Kr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function as(I,Y,D,Q,_t){const Wt=qr(I,Y,D);return Wt.matched?(Q=function jo(I,Y){return I.providers&&!I._injector&&(I._injector=(0,o.MMx)(I.providers,Y,`Route: ${I.path}`)),I._injector??Y}(Y,Q),function Ns(I,Y,D,Q){const _t=Y.canMatch;if(!_t||0===_t.length)return(0,x.of)(!0);const Wt=_t.map(Re=>{const bn=_o(Re,I);return Ae(function Nt(I){return I&&fr(I.canMatch)}(bn)?bn.canMatch(Y,D):I.runInContext(()=>bn(Y,D)))});return(0,x.of)(Wt).pipe(Ti(),Fi())}(Q,Y,D).pipe((0,A.U)(Re=>!0===Re?Wt:{...Kr}))):(0,x.of)(Wt)}function qr(I,Y,D){if(""===Y.path)return"full"===Y.pathMatch&&(I.hasChildren()||D.length>0)?{...Kr}:{matched:!0,consumedSegments:[],remainingSegments:D,parameters:{},positionalParamSegments:{}};const _t=(Y.matcher||ee)(D,I,Y);if(!_t)return{...Kr};const Wt={};Object.entries(_t.posParams??{}).forEach(([bn,fn])=>{Wt[bn]=fn.path});const Re=_t.consumed.length>0?{...Wt,..._t.consumed[_t.consumed.length-1].parameters}:Wt;return{matched:!0,consumedSegments:_t.consumed,remainingSegments:D.slice(_t.consumed.length),parameters:Re,positionalParamSegments:_t.posParams??{}}}function Sr(I,Y,D,Q){return D.length>0&&function Xr(I,Y,D){return D.some(Q=>Zr(I,Y,Q)&&Xn(Q)!==Dt)}(I,D,Q)?{segmentGroup:new tn(Y,Ur(Q,new tn(D,I.children))),slicedSegments:[]}:0===D.length&&function vs(I,Y,D){return D.some(Q=>Zr(I,Y,Q))}(I,D,Q)?{segmentGroup:new tn(I.segments,Or(I,0,D,Q,I.children)),slicedSegments:D}:{segmentGroup:new tn(I.segments,I.children),slicedSegments:D}}function Or(I,Y,D,Q,_t){const Wt={};for(const Re of Q)if(Zr(I,D,Re)&&!_t[Xn(Re)]){const bn=new tn([],{});Wt[Xn(Re)]=bn}return{..._t,...Wt}}function Ur(I,Y){const D={};D[Dt]=Y;for(const Q of I)if(""===Q.path&&Xn(Q)!==Dt){const _t=new tn([],{});D[Xn(Q)]=_t}return D}function Zr(I,Y,D){return(!(I.hasChildren()||Y.length>0)||"full"!==D.pathMatch)&&""===D.path}class Hr{constructor(Y,D,Q,_t,Wt,Re,bn){this.injector=Y,this.configLoader=D,this.rootComponentType=Q,this.config=_t,this.urlTree=Wt,this.paramsInheritanceStrategy=Re,this.urlSerializer=bn,this.allowRedirects=!0,this.applyRedirects=new Oo(this.urlSerializer,this.urlTree)}noMatchError(Y){return new o.vHH(4002,!1)}recognize(){const Y=Sr(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,Y,Dt).pipe((0,gt.K)(D=>{if(D instanceof ar)return this.allowRedirects=!1,this.urlTree=D.urlTree,this.match(D.urlTree);throw D instanceof Ko?this.noMatchError(D):D}),(0,A.U)(D=>{const Q=new ur([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Dt,this.rootComponentType,null,{}),_t=new Ho(Q,D),Wt=new xe("",_t),Re=function _e(I,Y,D=null,Q=null){return dn(ze(I),Y,D,Q)}(Q,[],this.urlTree.queryParams,this.urlTree.fragment);return Re.queryParams=this.urlTree.queryParams,Wt.url=this.urlSerializer.serialize(Re),this.inheritParamsAndData(Wt._root),{state:Wt,tree:Re}}))}match(Y){return this.processSegmentGroup(this.injector,this.config,Y.root,Dt).pipe((0,gt.K)(Q=>{throw Q instanceof Ko?this.noMatchError(Q):Q}))}inheritParamsAndData(Y){const D=Y.value,Q=Eo(D,this.paramsInheritanceStrategy);D.params=Object.freeze(Q.params),D.data=Object.freeze(Q.data),Y.children.forEach(_t=>this.inheritParamsAndData(_t))}processSegmentGroup(Y,D,Q,_t){return 0===Q.segments.length&&Q.hasChildren()?this.processChildren(Y,D,Q):this.processSegment(Y,D,Q,Q.segments,_t,!0)}processChildren(Y,D,Q){const _t=[];for(const Wt of Object.keys(Q.children))"primary"===Wt?_t.unshift(Wt):_t.push(Wt);return(0,g.D)(_t).pipe((0,ht.b)(Wt=>{const Re=Q.children[Wt],bn=function Zo(I,Y){const D=I.filter(Q=>Xn(Q)===Y);return D.push(...I.filter(Q=>Xn(Q)!==Y)),D}(D,Wt);return this.processSegmentGroup(Y,bn,Re,Wt)}),function J(I,Y){return(0,zt.e)(function H(I,Y,D,Q,_t){return(Wt,Re)=>{let bn=D,fn=Y,Wn=0;Wt.subscribe((0,Ct.x)(Re,wn=>{const Lo=Wn++;fn=bn?I(fn,wn,Lo):(bn=!0,wn),Q&&Re.next(fn)},_t&&(()=>{bn&&Re.next(fn),Re.complete()})))}}(I,Y,arguments.length>=2,!0))}((Wt,Re)=>(Wt.push(...Re),Wt)),(0,z.d)(null),function Pt(I,Y){const D=arguments.length>=2;return Q=>Q.pipe(I?(0,_.h)((_t,Wt)=>I(_t,Wt,Q)):V.y,F(1),D?(0,z.d)(Y):(0,rt.T)(()=>new R.K))}(),(0,j.z)(Wt=>{if(null===Wt)return Cr(Q);const Re=Bs(Wt);return function Vr(I){I.sort((Y,D)=>Y.value.outlet===Dt?-1:D.value.outlet===Dt?1:Y.value.outlet.localeCompare(D.value.outlet))}(Re),(0,x.of)(Re)}))}processSegment(Y,D,Q,_t,Wt,Re){return(0,g.D)(D).pipe((0,ht.b)(bn=>this.processSegmentAgainstRoute(bn._injector??Y,D,bn,Q,_t,Wt,Re).pipe((0,gt.K)(fn=>{if(fn instanceof Ko)return(0,x.of)(null);throw fn}))),(0,q.P)(bn=>!!bn),(0,gt.K)(bn=>{if(Ge(bn))return function Fs(I,Y,D){return 0===Y.length&&!I.children[D]}(Q,_t,Wt)?(0,x.of)([]):Cr(Q);throw bn}))}processSegmentAgainstRoute(Y,D,Q,_t,Wt,Re,bn){return function Zi(I,Y,D,Q){return!!(Xn(I)===Q||Q!==Dt&&Zr(Y,D,I))&&("**"===I.path||qr(Y,I,D).matched)}(Q,_t,Wt,Re)?void 0===Q.redirectTo?this.matchSegmentAgainstRoute(Y,_t,Q,Wt,Re,bn):bn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Y,_t,D,Q,Wt,Re):Cr(_t):Cr(_t)}expandSegmentAgainstRouteUsingRedirect(Y,D,Q,_t,Wt,Re){return"**"===_t.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Y,Q,_t,Re):this.expandRegularSegmentAgainstRouteUsingRedirect(Y,D,Q,_t,Wt,Re)}expandWildCardWithParamsAgainstRouteUsingRedirect(Y,D,Q,_t){const Wt=this.applyRedirects.applyRedirectCommands([],Q.redirectTo,{});return Q.redirectTo.startsWith("/")?Qs(Wt):this.applyRedirects.lineralizeSegments(Q,Wt).pipe((0,j.z)(Re=>{const bn=new tn(Re,{});return this.processSegment(Y,D,bn,Re,_t,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Y,D,Q,_t,Wt,Re){const{matched:bn,consumedSegments:fn,remainingSegments:Wn,positionalParamSegments:wn}=qr(D,_t,Wt);if(!bn)return Cr(D);const Lo=this.applyRedirects.applyRedirectCommands(fn,_t.redirectTo,wn);return _t.redirectTo.startsWith("/")?Qs(Lo):this.applyRedirects.lineralizeSegments(_t,Lo).pipe((0,j.z)(so=>this.processSegment(Y,Q,D,so.concat(Wn),Re,!1)))}matchSegmentAgainstRoute(Y,D,Q,_t,Wt,Re){let bn;if("**"===Q.path){const fn=_t.length>0?ie(_t).parameters:{},Wn=new ur(_t,fn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(Q),Xn(Q),Q.component??Q._loadedComponent??null,Q,Yr(Q));bn=(0,x.of)({snapshot:Wn,consumedSegments:[],remainingSegments:[]}),D.children={}}else bn=as(D,Q,_t,Y).pipe((0,A.U)(({matched:fn,consumedSegments:Wn,remainingSegments:wn,parameters:Lo})=>fn?{snapshot:new ur(Wn,Lo,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ws(Q),Xn(Q),Q.component??Q._loadedComponent??null,Q,Yr(Q)),consumedSegments:Wn,remainingSegments:wn}:null));return bn.pipe((0,xt.w)(fn=>null===fn?Cr(D):this.getChildConfig(Y=Q._injector??Y,Q,_t).pipe((0,xt.w)(({routes:Wn})=>{const wn=Q._loadedInjector??Y,{snapshot:Lo,consumedSegments:so,remainingSegments:Lr}=fn,{segmentGroup:Ki,slicedSegments:ds}=Sr(D,so,Lr,Wn);if(0===ds.length&&Ki.hasChildren())return this.processChildren(wn,Wn,Ki).pipe((0,A.U)(us=>null===us?null:[new Ho(Lo,us)]));if(0===Wn.length&&0===ds.length)return(0,x.of)([new Ho(Lo,[])]);const oa=Xn(Q)===Wt;return this.processSegment(wn,Wn,Ki,ds,oa?Dt:Wt,!0).pipe((0,A.U)(us=>[new Ho(Lo,us)]))}))))}getChildConfig(Y,D,Q){return D.children?(0,x.of)({routes:D.children,injector:Y}):D.loadChildren?void 0!==D._loadedRoutes?(0,x.of)({routes:D._loadedRoutes,injector:D._loadedInjector}):function ga(I,Y,D,Q){const _t=Y.canLoad;if(void 0===_t||0===_t.length)return(0,x.of)(!0);const Wt=_t.map(Re=>{const bn=_o(Re,I);return Ae(function fs(I){return I&&fr(I.canLoad)}(bn)?bn.canLoad(Y,D):I.runInContext(()=>bn(Y,D)))});return(0,x.of)(Wt).pipe(Ti(),Fi())}(Y,D,Q).pipe((0,j.z)(_t=>_t?this.configLoader.loadChildren(Y,D).pipe((0,vt.b)(Wt=>{D._loadedRoutes=Wt.routes,D._loadedInjector=Wt.injector})):function tr(I){return(0,O._)(Li(!1,3))}())):(0,x.of)({routes:[],injector:Y})}}function cs(I){const Y=I.value.routeConfig;return Y&&""===Y.path}function Bs(I){const Y=[],D=new Set;for(const Q of I){if(!cs(Q)){Y.push(Q);continue}const _t=Y.find(Wt=>Q.value.routeConfig===Wt.value.routeConfig);void 0!==_t?(_t.children.push(...Q.children),D.add(_t)):Y.push(Q)}for(const Q of D){const _t=Bs(Q.children);Y.push(new Ho(Q.value,_t))}return Y.filter(Q=>!D.has(Q))}function Ws(I){return I.data||{}}function Yr(I){return I.resolve||{}}function Zs(I){return"string"==typeof I.title||null===I.title}function jr(I){return(0,xt.w)(Y=>{const D=I(Y);return D?(0,g.D)(D).pipe((0,A.U)(()=>Y)):(0,x.of)(Y)})}const Ir=new o.OlP("ROUTES");let L=(()=>{class I{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,o.f3M)(o.Sil)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,x.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const Q=Ae(D.loadComponent()).pipe((0,A.U)(It),(0,vt.b)(Wt=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=Wt}),(0,Lt.x)(()=>{this.componentLoaders.delete(D)})),_t=new U.c(Q,()=>new lt.x).pipe((0,Jt.x)());return this.componentLoaders.set(D,_t),_t}loadChildren(D,Q){if(this.childrenLoaders.get(Q))return this.childrenLoaders.get(Q);if(Q._loadedRoutes)return(0,x.of)({routes:Q._loadedRoutes,injector:Q._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Q);const Wt=function Vt(I,Y,D,Q){return Ae(I.loadChildren()).pipe((0,A.U)(It),(0,j.z)(_t=>_t instanceof o.YKP||Array.isArray(_t)?(0,x.of)(_t):(0,g.D)(Y.compileModuleAsync(_t))),(0,A.U)(_t=>{Q&&Q(I);let Wt,Re,bn=!1;return Array.isArray(_t)?(Re=_t,!0):(Wt=_t.create(D).injector,Re=Wt.get(Ir,[],{optional:!0,self:!0}).flat()),{routes:Re.map(bi),injector:Wt}}))}(Q,this.compiler,D,this.onLoadEndListener).pipe((0,Lt.x)(()=>{this.childrenLoaders.delete(Q)})),Re=new U.c(Wt,()=>new lt.x).pipe((0,Jt.x)());return this.childrenLoaders.set(Q,Re),Re}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function It(I){return function at(I){return I&&"object"==typeof I&&"default"in I}(I)?I.default:I}let Le=(()=>{class I{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new lt.x,this.transitionAbortSubject=new lt.x,this.configLoader=(0,o.f3M)(L),this.environmentInjector=(0,o.f3M)(o.lqb),this.urlSerializer=(0,o.f3M)(ue),this.rootContexts=(0,o.f3M)(Wi),this.inputBindingEnabled=null!==(0,o.f3M)(Un,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,x.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=_t=>this.events.next(new Ut(_t)),this.configLoader.onLoadStartListener=_t=>this.events.next(new ir(_t))}complete(){this.transitions?.complete()}handleNavigationRequest(D){const Q=++this.navigationId;this.transitions?.next({...this.transitions.value,...D,id:Q})}setupNavigations(D,Q,_t){return this.transitions=new l.X({id:0,currentUrlTree:Q,currentRawUrl:Q,currentBrowserUrl:Q,extractedUrl:D.urlHandlingStrategy.extract(Q),urlAfterRedirects:D.urlHandlingStrategy.extract(Q),rawUrl:Q,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ui,restoredState:null,currentSnapshot:_t.snapshot,targetSnapshot:null,currentRouterState:_t,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,_.h)(Wt=>0!==Wt.id),(0,A.U)(Wt=>({...Wt,extractedUrl:D.urlHandlingStrategy.extract(Wt.rawUrl)})),(0,xt.w)(Wt=>{this.currentTransition=Wt;let Re=!1,bn=!1;return(0,x.of)(Wt).pipe((0,vt.b)(fn=>{this.currentNavigation={id:fn.id,initialUrl:fn.rawUrl,extractedUrl:fn.extractedUrl,trigger:fn.source,extras:fn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,xt.w)(fn=>{const Wn=fn.currentBrowserUrl.toString(),wn=!D.navigated||fn.extractedUrl.toString()!==Wn||Wn!==fn.currentUrlTree.toString();if(!wn&&"reload"!==(fn.extras.onSameUrlNavigation??D.onSameUrlNavigation)){const so="";return this.events.next(new Zt(fn.id,this.urlSerializer.serialize(fn.rawUrl),so,0)),fn.resolve(null),G.E}if(D.urlHandlingStrategy.shouldProcessUrl(fn.rawUrl))return(0,x.of)(fn).pipe((0,xt.w)(so=>{const Lr=this.transitions?.getValue();return this.events.next(new Ye(so.id,this.urlSerializer.serialize(so.extractedUrl),so.source,so.restoredState)),Lr!==this.transitions?.getValue()?G.E:Promise.resolve(so)}),function cr(I,Y,D,Q,_t,Wt){return(0,j.z)(Re=>function ts(I,Y,D,Q,_t,Wt,Re="emptyOnly"){return new Hr(I,Y,D,Q,_t,Re,Wt).recognize()}(I,Y,D,Q,Re.extractedUrl,_t,Wt).pipe((0,A.U)(({state:bn,tree:fn})=>({...Re,targetSnapshot:bn,urlAfterRedirects:fn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,D.paramsInheritanceStrategy),(0,vt.b)(so=>{Wt.targetSnapshot=so.targetSnapshot,Wt.urlAfterRedirects=so.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:so.urlAfterRedirects};const Lr=new fe(so.id,this.urlSerializer.serialize(so.extractedUrl),this.urlSerializer.serialize(so.urlAfterRedirects),so.targetSnapshot);this.events.next(Lr)}));if(wn&&D.urlHandlingStrategy.shouldProcessUrl(fn.currentRawUrl)){const{id:so,extractedUrl:Lr,source:Ki,restoredState:ds,extras:oa}=fn,us=new Ye(so,this.urlSerializer.serialize(Lr),Ki,ds);this.events.next(us);const Da=lo(0,this.rootComponentType).snapshot;return this.currentTransition=Wt={...fn,targetSnapshot:Da,urlAfterRedirects:Lr,extras:{...oa,skipLocationChange:!1,replaceUrl:!1}},(0,x.of)(Wt)}{const so="";return this.events.next(new Zt(fn.id,this.urlSerializer.serialize(fn.extractedUrl),so,1)),fn.resolve(null),G.E}}),(0,vt.b)(fn=>{const Wn=new sn(fn.id,this.urlSerializer.serialize(fn.extractedUrl),this.urlSerializer.serialize(fn.urlAfterRedirects),fn.targetSnapshot);this.events.next(Wn)}),(0,A.U)(fn=>(this.currentTransition=Wt={...fn,guards:js(fn.targetSnapshot,fn.currentSnapshot,this.rootContexts)},Wt)),function _r(I,Y){return(0,j.z)(D=>{const{targetSnapshot:Q,currentSnapshot:_t,guards:{canActivateChecks:Wt,canDeactivateChecks:Re}}=D;return 0===Re.length&&0===Wt.length?(0,x.of)({...D,guardsResult:!0}):function Br(I,Y,D,Q){return(0,g.D)(I).pipe((0,j.z)(_t=>function Rs(I,Y,D,Q,_t){const Wt=Y&&Y.routeConfig?Y.routeConfig.canDeactivate:null;if(!Wt||0===Wt.length)return(0,x.of)(!0);const Re=Wt.map(bn=>{const fn=uo(Y)??_t,Wn=_o(bn,fn);return Ae(function wt(I){return I&&fr(I.canDeactivate)}(Wn)?Wn.canDeactivate(I,Y,D,Q):fn.runInContext(()=>Wn(I,Y,D,Q))).pipe((0,q.P)())});return(0,x.of)(Re).pipe(Ti())}(_t.component,_t.route,D,Y,Q)),(0,q.P)(_t=>!0!==_t,!0))}(Re,Q,_t,I).pipe((0,j.z)(bn=>bn&&function ms(I){return"boolean"==typeof I}(bn)?function $r(I,Y,D,Q){return(0,g.D)(Y).pipe((0,ht.b)(_t=>(0,f.z)(function Co(I,Y){return null!==I&&Y&&Y(new Rn(I)),(0,x.of)(!0)}(_t.route.parent,Q),function Cs(I,Y){return null!==I&&Y&&Y(new he(I)),(0,x.of)(!0)}(_t.route,Q),function zs(I,Y,D){const Q=Y[Y.length-1],Wt=Y.slice(0,Y.length-1).reverse().map(Re=>function Io(I){const Y=I.routeConfig?I.routeConfig.canActivateChild:null;return Y&&0!==Y.length?{node:I,guards:Y}:null}(Re)).filter(Re=>null!==Re).map(Re=>(0,t.P)(()=>{const bn=Re.guards.map(fn=>{const Wn=uo(Re.node)??D,wn=_o(fn,Wn);return Ae(function sr(I){return I&&fr(I.canActivateChild)}(wn)?wn.canActivateChild(Q,I):Wn.runInContext(()=>wn(Q,I))).pipe((0,q.P)())});return(0,x.of)(bn).pipe(Ti())}));return(0,x.of)(Wt).pipe(Ti())}(I,_t.path,D),function Gs(I,Y,D){const Q=Y.routeConfig?Y.routeConfig.canActivate:null;if(!Q||0===Q.length)return(0,x.of)(!0);const _t=Q.map(Wt=>(0,t.P)(()=>{const Re=uo(Y)??D,bn=_o(Wt,Re);return Ae(function _s(I){return I&&fr(I.canActivate)}(bn)?bn.canActivate(Y,I):Re.runInContext(()=>bn(Y,I))).pipe((0,q.P)())}));return(0,x.of)(_t).pipe(Ti())}(I,_t.route,D))),(0,q.P)(_t=>!0!==_t,!0))}(Q,Wt,I,Y):(0,x.of)(bn)),(0,A.U)(bn=>({...D,guardsResult:bn})))})}(this.environmentInjector,fn=>this.events.next(fn)),(0,vt.b)(fn=>{if(Wt.guardsResult=fn.guardsResult,X(fn.guardsResult))throw Zn(0,fn.guardsResult);const Wn=new Gn(fn.id,this.urlSerializer.serialize(fn.extractedUrl),this.urlSerializer.serialize(fn.urlAfterRedirects),fn.targetSnapshot,!!fn.guardsResult);this.events.next(Wn)}),(0,_.h)(fn=>!!fn.guardsResult||(this.cancelNavigationTransition(fn,"",3),!1)),jr(fn=>{if(fn.guards.canActivateChecks.length)return(0,x.of)(fn).pipe((0,vt.b)(Wn=>{const wn=new Do(Wn.id,this.urlSerializer.serialize(Wn.extractedUrl),this.urlSerializer.serialize(Wn.urlAfterRedirects),Wn.targetSnapshot);this.events.next(wn)}),(0,xt.w)(Wn=>{let wn=!1;return(0,x.of)(Wn).pipe(function Ar(I,Y){return(0,j.z)(D=>{const{targetSnapshot:Q,guards:{canActivateChecks:_t}}=D;if(!_t.length)return(0,x.of)(D);let Wt=0;return(0,g.D)(_t).pipe((0,ht.b)(Re=>function bs(I,Y,D,Q){const _t=I.routeConfig,Wt=I._resolve;return void 0!==_t?.title&&!Zs(_t)&&(Wt[St]=_t.title),function Ms(I,Y,D,Q){const _t=function Us(I){return[...Object.keys(I),...Object.getOwnPropertySymbols(I)]}(I);if(0===_t.length)return(0,x.of)({});const Wt={};return(0,g.D)(_t).pipe((0,j.z)(Re=>function ls(I,Y,D,Q){const _t=uo(Y)??Q,Wt=_o(I,_t);return Ae(Wt.resolve?Wt.resolve(Y,D):_t.runInContext(()=>Wt(Y,D)))}(I[Re],Y,D,Q).pipe((0,q.P)(),(0,vt.b)(bn=>{Wt[Re]=bn}))),F(1),(0,$t.h)(Wt),(0,gt.K)(Re=>Ge(Re)?G.E:(0,O._)(Re)))}(Wt,I,Y,Q).pipe((0,A.U)(Re=>(I._resolvedData=Re,I.data=Eo(I,D).resolve,_t&&Zs(_t)&&(I.data[St]=_t.title),null)))}(Re.route,Q,I,Y)),(0,vt.b)(()=>Wt++),F(1),(0,j.z)(Re=>Wt===_t.length?(0,x.of)(D):G.E))})}(D.paramsInheritanceStrategy,this.environmentInjector),(0,vt.b)({next:()=>wn=!0,complete:()=>{wn||this.cancelNavigationTransition(Wn,"",2)}}))}),(0,vt.b)(Wn=>{const wn=new Fo(Wn.id,this.urlSerializer.serialize(Wn.extractedUrl),this.urlSerializer.serialize(Wn.urlAfterRedirects),Wn.targetSnapshot);this.events.next(wn)}))}),jr(fn=>{const Wn=wn=>{const Lo=[];wn.routeConfig?.loadComponent&&!wn.routeConfig._loadedComponent&&Lo.push(this.configLoader.loadComponent(wn.routeConfig).pipe((0,vt.b)(so=>{wn.component=so}),(0,A.U)(()=>{})));for(const so of wn.children)Lo.push(...Wn(so));return Lo};return(0,i.a)(Wn(fn.targetSnapshot.root)).pipe((0,z.d)(),(0,tt.q)(1))}),jr(()=>this.afterPreactivation()),(0,A.U)(fn=>{const Wn=function Vn(I,Y,D){const Q=Oi(I,Y._root,D?D._root:void 0);return new ii(Q,Y)}(D.routeReuseStrategy,fn.targetSnapshot,fn.currentRouterState);return this.currentTransition=Wt={...fn,targetRouterState:Wn},Wt}),(0,vt.b)(()=>{this.events.next(new Fn)}),((I,Y,D,Q)=>(0,A.U)(_t=>(new gr(Y,_t.targetRouterState,_t.currentRouterState,D,Q).activate(I),_t)))(this.rootContexts,D.routeReuseStrategy,fn=>this.events.next(fn),this.inputBindingEnabled),(0,tt.q)(1),(0,vt.b)({next:fn=>{Re=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Sn(fn.id,this.urlSerializer.serialize(fn.extractedUrl),this.urlSerializer.serialize(fn.urlAfterRedirects))),D.titleStrategy?.updateTitle(fn.targetRouterState.snapshot),fn.resolve(!0)},complete:()=>{Re=!0}}),(0,Tt.R)(this.transitionAbortSubject.pipe((0,vt.b)(fn=>{throw fn}))),(0,Lt.x)(()=>{Re||bn||this.cancelNavigationTransition(Wt,"",1),this.currentNavigation?.id===Wt.id&&(this.currentNavigation=null)}),(0,gt.K)(fn=>{if(bn=!0,mo(fn))this.events.next(new N(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),fn.message,fn.cancellationCode)),function So(I){return mo(I)&&X(I.url)}(fn)?this.events.next(new li(fn.url)):Wt.resolve(!1);else{this.events.next(new kt(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),fn,Wt.targetSnapshot??void 0));try{Wt.resolve(D.errorHandler(fn))}catch(Wn){Wt.reject(Wn)}}return G.E}))}))}cancelNavigationTransition(D,Q,_t){const Wt=new N(D.id,this.urlSerializer.serialize(D.extractedUrl),Q,_t);this.events.next(Wt),D.resolve(!1)}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function mn(I){return I!==Ui}let Pn=(()=>{class I{buildTitle(D){let Q,_t=D.root;for(;void 0!==_t;)Q=this.getResolvedTitleForRoute(_t)??Q,_t=_t.children.find(Wt=>Wt.outlet===Dt);return Q}getResolvedTitleForRoute(D){return D.data[St]}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:function(){return(0,o.f3M)(Yn)},providedIn:"root"})}return I})(),Yn=(()=>{class I extends Pn{constructor(D){super(),this.title=D}updateTitle(D){const Q=this.buildTitle(D);void 0!==Q&&this.title.setTitle(Q)}static#t=this.\u0275fac=function(Q){return new(Q||I)(o.LFG(pt.Dx))};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})(),to=(()=>{class I{static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:function(){return(0,o.f3M)(p)},providedIn:"root"})}return I})();class po{shouldDetach(Y){return!1}store(Y,D){}shouldAttach(Y){return!1}retrieve(Y){return null}shouldReuseRoute(Y,D){return Y.routeConfig===D.routeConfig}}let p=(()=>{class I extends po{static#t=this.\u0275fac=function(){let D;return function(_t){return(D||(D=o.n5z(I)))(_t||I)}}();static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const K=new o.OlP("",{providedIn:"root",factory:()=>({})});let d=(()=>{class I{static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:function(){return(0,o.f3M)(v)},providedIn:"root"})}return I})(),v=(()=>{class I{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,Q){return D}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();var S=function(I){return I[I.COMPLETE=0]="COMPLETE",I[I.FAILED=1]="FAILED",I[I.REDIRECTING=2]="REDIRECTING",I}(S||{});function pe(I,Y){I.events.pipe((0,_.h)(D=>D instanceof Sn||D instanceof N||D instanceof kt||D instanceof Zt),(0,A.U)(D=>D instanceof Sn||D instanceof Zt?S.COMPLETE:D instanceof N&&(0===D.code||1===D.code)?S.REDIRECTING:S.FAILED),(0,_.h)(D=>D!==S.REDIRECTING),(0,tt.q)(1)).subscribe(()=>{Y()})}function Ue(I){throw I}function hn(I,Y,D){return Y.parse("/")}const yn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},An={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nn=(()=>{class I{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,o.f3M)(o.c2e),this.isNgZoneEnabled=!1,this._events=new lt.x,this.options=(0,o.f3M)(K,{optional:!0})||{},this.pendingTasks=(0,o.f3M)(o.HDt),this.errorHandler=this.options.errorHandler||Ue,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||hn,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,o.f3M)(d),this.routeReuseStrategy=(0,o.f3M)(to),this.titleStrategy=(0,o.f3M)(Pn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,o.f3M)(Ir,{optional:!0})?.flat()??[],this.navigationTransitions=(0,o.f3M)(Le),this.urlSerializer=(0,o.f3M)(ue),this.location=(0,o.f3M)(Ht.Ye),this.componentInputBindingEnabled=!!(0,o.f3M)(Un,{optional:!0}),this.eventsSubscription=new ut.w0,this.isNgZoneEnabled=(0,o.f3M)(o.R0b)instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new De,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lo(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(D=>{this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId},D=>{this.console.warn(`Unhandled Navigation Error: ${D}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(Q=>{try{const{currentTransition:_t}=this.navigationTransitions;if(null===_t)return void(ei(Q)&&this._events.next(Q));if(Q instanceof Ye)mn(_t.source)&&(this.browserUrlTree=_t.extractedUrl);else if(Q instanceof Zt)this.rawUrlTree=_t.rawUrl;else if(Q instanceof fe){if("eager"===this.urlUpdateStrategy){if(!_t.extras.skipLocationChange){const Wt=this.urlHandlingStrategy.merge(_t.urlAfterRedirects,_t.rawUrl);this.setBrowserUrl(Wt,_t)}this.browserUrlTree=_t.urlAfterRedirects}}else if(Q instanceof Fn)this.currentUrlTree=_t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(_t.urlAfterRedirects,_t.rawUrl),this.routerState=_t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(_t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,_t),this.browserUrlTree=_t.urlAfterRedirects);else if(Q instanceof N)0!==Q.code&&1!==Q.code&&(this.navigated=!0),(3===Q.code||2===Q.code)&&this.restoreHistory(_t);else if(Q instanceof li){const Wt=this.urlHandlingStrategy.merge(Q.url,_t.currentRawUrl),Re={skipLocationChange:_t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mn(_t.source)};this.scheduleNavigation(Wt,Ui,null,Re,{resolve:_t.resolve,reject:_t.reject,promise:_t.promise})}Q instanceof kt&&this.restoreHistory(_t,!0),Q instanceof Sn&&(this.navigated=!0),ei(Q)&&this._events.next(Q)}catch(_t){this.navigationTransitions.transitionAbortSubject.next(_t)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const D=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ui,D)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(D=>{const Q="popstate"===D.type?"popstate":"hashchange";"popstate"===Q&&setTimeout(()=>{this.navigateToSyncWithBrowser(D.url,Q,D.state)},0)}))}navigateToSyncWithBrowser(D,Q,_t){const Wt={replaceUrl:!0},Re=_t?.navigationId?_t:null;if(_t){const fn={..._t};delete fn.navigationId,delete fn.\u0275routerPageId,0!==Object.keys(fn).length&&(Wt.state=fn)}const bn=this.parseUrl(D);this.scheduleNavigation(bn,Q,Re,Wt)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(bi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,Q={}){const{relativeTo:_t,queryParams:Wt,fragment:Re,queryParamsHandling:bn,preserveFragment:fn}=Q,Wn=fn?this.currentUrlTree.fragment:Re;let Lo,wn=null;switch(bn){case"merge":wn={...this.currentUrlTree.queryParams,...Wt};break;case"preserve":wn=this.currentUrlTree.queryParams;break;default:wn=Wt||null}null!==wn&&(wn=this.removeEmptyProps(wn));try{Lo=ze(_t?_t.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),Lo=this.currentUrlTree.root}return dn(Lo,D,wn,Wn??null)}navigateByUrl(D,Q={skipLocationChange:!1}){const _t=X(D)?D:this.parseUrl(D),Wt=this.urlHandlingStrategy.merge(_t,this.rawUrlTree);return this.scheduleNavigation(Wt,Ui,null,Q)}navigate(D,Q={skipLocationChange:!1}){return function ui(I){for(let Y=0;Y<I.length;Y++)if(null==I[Y])throw new o.vHH(4008,!1)}(D),this.navigateByUrl(this.createUrlTree(D,Q),Q)}serializeUrl(D){return this.urlSerializer.serialize(D)}parseUrl(D){let Q;try{Q=this.urlSerializer.parse(D)}catch(_t){Q=this.malformedUriErrorHandler(_t,this.urlSerializer,D)}return Q}isActive(D,Q){let _t;if(_t=!0===Q?{...yn}:!1===Q?{...An}:Q,X(D))return Ve(this.currentUrlTree,D,_t);const Wt=this.parseUrl(D);return Ve(this.currentUrlTree,Wt,_t)}removeEmptyProps(D){return Object.keys(D).reduce((Q,_t)=>{const Wt=D[_t];return null!=Wt&&(Q[_t]=Wt),Q},{})}scheduleNavigation(D,Q,_t,Wt,Re){if(this.disposed)return Promise.resolve(!1);let bn,fn,Wn;Re?(bn=Re.resolve,fn=Re.reject,Wn=Re.promise):Wn=new Promise((Lo,so)=>{bn=Lo,fn=so});const wn=this.pendingTasks.add();return pe(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(wn))}),this.navigationTransitions.handleNavigationRequest({source:Q,restoredState:_t,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:D,extras:Wt,resolve:bn,reject:fn,promise:Wn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Wn.catch(Lo=>Promise.reject(Lo))}setBrowserUrl(D,Q){const _t=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(_t)||Q.extras.replaceUrl){const Re={...Q.extras.state,...this.generateNgRouterState(Q.id,this.browserPageId)};this.location.replaceState(_t,"",Re)}else{const Wt={...Q.extras.state,...this.generateNgRouterState(Q.id,this.browserPageId+1)};this.location.go(_t,"",Wt)}}restoreHistory(D,Q=!1){if("computed"===this.canceledNavigationResolution){const Wt=this.currentPageId-this.browserPageId;0!==Wt?this.location.historyGo(Wt):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Wt&&(this.resetState(D),this.browserUrlTree=D.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(Q&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){this.routerState=D.currentRouterState,this.currentUrlTree=D.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,D.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,Q){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:Q}:{navigationId:D}}static#t=this.\u0275fac=function(Q){return new(Q||I)};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();function ei(I){return!(I instanceof Fn||I instanceof li)}let jn=(()=>{class I{constructor(D,Q,_t,Wt,Re,bn){this.router=D,this.route=Q,this.tabIndexAttribute=_t,this.renderer=Wt,this.el=Re,this.locationStrategy=bn,this.href=null,this.commands=null,this.onChanges=new lt.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const fn=Re.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===fn||"area"===fn,this.isAnchorElement?this.subscription=D.events.subscribe(Wn=>{Wn instanceof Sn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,Q,_t,Wt,Re){return!!(null===this.urlTree||this.isAnchorElement&&(0!==D||Q||_t||Wt||Re||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const D=null===this.href?null:(0,o.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",D)}applyAttributeValue(D,Q){const _t=this.renderer,Wt=this.el.nativeElement;null!==Q?_t.setAttribute(Wt,D,Q):_t.removeAttribute(Wt,D)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#t=this.\u0275fac=function(Q){return new(Q||I)(o.Y36(Nn),o.Y36($o),o.$8M("tabindex"),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(Ht.S$))};static#e=this.\u0275dir=o.lG2({type:I,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(Q,_t){1&Q&&o.NdJ("click",function(Re){return _t.onClick(Re.button,Re.ctrlKey,Re.shiftKey,Re.altKey,Re.metaKey)}),2&Q&&o.uIk("target",_t.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",o.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",o.VuI],replaceUrl:["replaceUrl","replaceUrl",o.VuI],routerLink:"routerLink"},standalone:!0,features:[o.Xq5,o.TTD]})}return I})(),oi=(()=>{class I{get isActive(){return this._isActive}constructor(D,Q,_t,Wt,Re){this.router=D,this.element=Q,this.renderer=_t,this.cdr=Wt,this.link=Re,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new o.vpe,this.routerEventsSubscription=D.events.subscribe(bn=>{bn instanceof Sn&&this.update()})}ngAfterContentInit(){(0,x.of)(this.links.changes,(0,x.of)(null)).pipe((0,$.J)()).subscribe(D=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const D=[...this.links.toArray(),this.link].filter(Q=>!!Q).map(Q=>Q.onChanges);this.linkInputChangesSubscription=(0,g.D)(D).pipe((0,$.J)()).subscribe(Q=>{this._isActive!==this.isLinkActive(this.router)(Q)&&this.update()})}set routerLinkActive(D){const Q=Array.isArray(D)?D:D.split(" ");this.classes=Q.filter(_t=>!!_t)}ngOnChanges(D){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const D=this.hasActiveLinks();this._isActive!==D&&(this._isActive=D,this.cdr.markForCheck(),this.classes.forEach(Q=>{D?this.renderer.addClass(this.element.nativeElement,Q):this.renderer.removeClass(this.element.nativeElement,Q)}),D&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(D))})}isLinkActive(D){const Q=function gi(I){return!!I.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return _t=>!!_t.urlTree&&D.isActive(_t.urlTree,Q)}hasActiveLinks(){const D=this.isLinkActive(this.router);return this.link&&D(this.link)||this.links.some(D)}static#t=this.\u0275fac=function(Q){return new(Q||I)(o.Y36(Nn),o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(o.sBO),o.Y36(jn,8))};static#e=this.\u0275dir=o.lG2({type:I,selectors:[["","routerLinkActive",""]],contentQueries:function(Q,_t,Wt){if(1&Q&&o.Suo(Wt,jn,5),2&Q){let Re;o.iGM(Re=o.CRH())&&(_t.links=Re)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[o.TTD]})}return I})();class di{}let mi=(()=>{class I{constructor(D,Q,_t,Wt,Re){this.router=D,this.injector=_t,this.preloadingStrategy=Wt,this.loader=Re}setUpPreloading(){this.subscription=this.router.events.pipe((0,_.h)(D=>D instanceof Sn),(0,ht.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,Q){const _t=[];for(const Wt of Q){Wt.providers&&!Wt._injector&&(Wt._injector=(0,o.MMx)(Wt.providers,D,`Route: ${Wt.path}`));const Re=Wt._injector??D,bn=Wt._loadedInjector??Re;(Wt.loadChildren&&!Wt._loadedRoutes&&void 0===Wt.canLoad||Wt.loadComponent&&!Wt._loadedComponent)&&_t.push(this.preloadConfig(Re,Wt)),(Wt.children||Wt._loadedRoutes)&&_t.push(this.processRoutes(bn,Wt.children??Wt._loadedRoutes))}return(0,g.D)(_t).pipe((0,$.J)())}preloadConfig(D,Q){return this.preloadingStrategy.preload(Q,()=>{let _t;_t=Q.loadChildren&&void 0===Q.canLoad?this.loader.loadChildren(D,Q):(0,x.of)(null);const Wt=_t.pipe((0,j.z)(Re=>null===Re?(0,x.of)(void 0):(Q._loadedRoutes=Re.routes,Q._loadedInjector=Re.injector,this.processRoutes(Re.injector??D,Re.routes))));if(Q.loadComponent&&!Q._loadedComponent){const Re=this.loader.loadComponent(Q);return(0,g.D)([Wt,Re]).pipe((0,$.J)())}return Wt})}static#t=this.\u0275fac=function(Q){return new(Q||I)(o.LFG(Nn),o.LFG(o.Sil),o.LFG(o.lqb),o.LFG(di),o.LFG(L))};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})();const Si=new o.OlP("");let Hi=(()=>{class I{constructor(D,Q,_t,Wt,Re={}){this.urlSerializer=D,this.transitions=Q,this.viewportScroller=_t,this.zone=Wt,this.options=Re,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Re.scrollPositionRestoration=Re.scrollPositionRestoration||"disabled",Re.anchorScrolling=Re.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(D=>{D instanceof Ye?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof Sn?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof Zt&&0===D.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof xn&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,Q){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new xn(D,"popstate"===this.lastSource?this.store[this.restoredId]:null,Q))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#t=this.\u0275fac=function(Q){o.$Z()};static#e=this.\u0275prov=o.Yz7({token:I,factory:I.\u0275fac})}return I})();function Kn(I,Y){return{\u0275kind:I,\u0275providers:Y}}function Di(){const I=(0,o.f3M)(o.zs3);return Y=>{const D=I.get(o.z2F);if(Y!==D.components[0])return;const Q=I.get(Nn),_t=I.get(hi);1===I.get(Bn)&&Q.initialNavigation(),I.get(Ii,null,o.XFs.Optional)?.setUpPreloading(),I.get(Si,null,o.XFs.Optional)?.init(),Q.resetRootComponentType(D.componentTypes[0]),_t.closed||(_t.next(),_t.complete(),_t.unsubscribe())}}const hi=new o.OlP("",{factory:()=>new lt.x}),Bn=new o.OlP("",{providedIn:"root",factory:()=>1}),Ii=new o.OlP("");function bo(I){return Kn(0,[{provide:Ii,useExisting:mi},{provide:di,useExisting:I}])}const Tr=new o.OlP("ROUTER_FORROOT_GUARD"),wa=[Ht.Ye,{provide:ue,useClass:Ft},Nn,Wi,{provide:$o,useFactory:function zo(I){return I.routerState.root},deps:[Nn]},L,[]];function kn(){return new o.PXZ("Router",Nn)}let Qi=(()=>{class I{constructor(D){}static forRoot(D,Q){return{ngModule:I,providers:[wa,[],{provide:Ir,multi:!0,useValue:D},{provide:Tr,useFactory:Ks,deps:[[Nn,new o.FiY,new o.tp0]]},{provide:K,useValue:Q||{}},Q?.useHash?{provide:Ht.S$,useClass:Ht.Do}:{provide:Ht.S$,useClass:Ht.b0},{provide:Si,useFactory:()=>{const I=(0,o.f3M)(Ht.EM),Y=(0,o.f3M)(o.R0b),D=(0,o.f3M)(K),Q=(0,o.f3M)(Le),_t=(0,o.f3M)(ue);return D.scrollOffset&&I.setOffset(D.scrollOffset),new Hi(_t,Q,I,Y,D)}},Q?.preloadingStrategy?bo(Q.preloadingStrategy).\u0275providers:[],{provide:o.PXZ,multi:!0,useFactory:kn},Q?.initialNavigation?Os(Q):[],Q?.bindToComponentInputs?Kn(8,[Qn,{provide:Un,useExisting:Qn}]).\u0275providers:[],[{provide:Gr,useFactory:Di},{provide:o.tb,multi:!0,useExisting:Gr}]]}}static forChild(D){return{ngModule:I,providers:[{provide:Ir,multi:!0,useValue:D}]}}static#t=this.\u0275fac=function(Q){return new(Q||I)(o.LFG(Tr,8))};static#e=this.\u0275mod=o.oAB({type:I});static#n=this.\u0275inj=o.cJS({})}return I})();function Ks(I){return"guarded"}function Os(I){return["disabled"===I.initialNavigation?Kn(3,[{provide:o.ip1,multi:!0,useFactory:()=>{const Y=(0,o.f3M)(Nn);return()=>{Y.setUpLocationChangeListener()}}},{provide:Bn,useValue:2}]).\u0275providers:[],"enabledBlocking"===I.initialNavigation?Kn(2,[{provide:Bn,useValue:0},{provide:o.ip1,multi:!0,deps:[o.zs3],useFactory:Y=>{const D=Y.get(Ht.V_,Promise.resolve());return()=>D.then(()=>new Promise(Q=>{const _t=Y.get(Nn),Wt=Y.get(hi);pe(_t,()=>{Q(!0)}),Y.get(Le).afterPreactivation=()=>(Q(!0),Wt.closed?(0,x.of)(void 0):Wt),_t.initialNavigation()}))}}]).\u0275providers:[]]}const Gr=new o.OlP("")},4807:(Je,Rt,c)=>{"use strict";c.d(Rt,{A0:()=>Cn,ir:()=>gn,jq:()=>Oe,mR:()=>rn,w9:()=>it,zB:()=>re});var o=c(5879),e=c(6223),g=c(9773),x=c(9028),l=c(7921),i=c(9397),R=c(3620),f=c(2181),t=c(7398),y=c(927),O=c(6410),G=c(8645),U=c(2438),lt=c(3019),ut=c(6814);const Ht=["content"],A=["scroll"],xt=["padding"],tt=function(de){return{searchTerm:de}};function ct(de,He){if(1&de&&(o.TgZ(0,"div",6),o.GkF(1,7),o.qZA()),2&de){const X=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",X.headerTemplate)("ngTemplateOutletContext",o.VKq(2,tt,X.filterValue))}}function _(de,He){if(1&de&&(o.TgZ(0,"div",8),o.GkF(1,7),o.qZA()),2&de){const X=o.oxw();o.xp6(1),o.Q6J("ngTemplateOutlet",X.footerTemplate)("ngTemplateOutletContext",o.VKq(2,tt,X.filterValue))}}const j=["*"],q=["searchInput"],ht=["clearButton"];function vt(de,He){if(1&de){const X=o.EpF();o.TgZ(0,"span",15),o.NdJ("click",function(){o.CHM(X);const ze=o.oxw().$implicit,dn=o.oxw(2);return o.KtG(dn.unselect(ze))}),o._uU(1,"\xd7"),o.qZA(),o._UZ(2,"span",16)}if(2&de){const X=o.oxw().$implicit,_e=o.oxw(2);o.xp6(2),o.Q6J("ngItemLabel",X.label)("escape",_e.escapeHTML)}}function gt(de,He){}const zt=function(de,He,X){return{item:de,clear:He,label:X}};function Ct(de,He){if(1&de&&(o.TgZ(0,"div",12),o.YNc(1,vt,3,2,"ng-template",null,13,o.W1O),o.YNc(3,gt,0,0,"ng-template",14),o.qZA()),2&de){const X=He.$implicit,_e=o.MAs(2),ze=o.oxw(2);o.ekj("ng-value-disabled",X.disabled),o.xp6(3),o.Q6J("ngTemplateOutlet",ze.labelTemplate||_e)("ngTemplateOutletContext",o.kEZ(4,zt,X.value,ze.clearItem,X.label))}}function H(de,He){if(1&de&&(o.ynx(0),o.YNc(1,Ct,4,8,"div",11),o.BQk()),2&de){const X=o.oxw();o.xp6(1),o.Q6J("ngForOf",X.selectedItems)("ngForTrackBy",X.trackByOption)}}function J(de,He){}const z=function(de,He){return{items:de,clear:He}};function F(de,He){if(1&de&&o.YNc(0,J,0,0,"ng-template",14),2&de){const X=o.oxw();o.Q6J("ngTemplateOutlet",X.multiLabelTemplate)("ngTemplateOutletContext",o.WLB(2,z,X.selectedValues,X.clearItem))}}function rt(de,He){1&de&&o._UZ(0,"div",19)}function V(de,He){}function Pt(de,He){if(1&de&&(o.ynx(0),o.YNc(1,rt,1,0,"ng-template",null,17,o.W1O),o.YNc(3,V,0,0,"ng-template",18),o.BQk()),2&de){const X=o.MAs(2),_e=o.oxw();o.xp6(3),o.Q6J("ngTemplateOutlet",_e.loadingSpinnerTemplate||X)}}function $t(de,He){if(1&de&&(o.TgZ(0,"span",20,21)(2,"span",22),o._uU(3,"\xd7"),o.qZA()()),2&de){const X=o.oxw();o.s9C("title",X.clearAllText)}}function Lt(de,He){if(1&de&&o._UZ(0,"span",28),2&de){const X=o.oxw().$implicit,_e=o.oxw(2);o.Q6J("ngItemLabel",X.label)("escape",_e.escapeHTML)}}function Jt(de,He){}const Tt=function(de,He,X,_e){return{item:de,item$:He,index:X,searchTerm:_e}};function $(de,He){if(1&de){const X=o.EpF();o.TgZ(0,"div",26),o.NdJ("click",function(){const dn=o.CHM(X).$implicit,Tn=o.oxw(2);return o.KtG(Tn.toggleItem(dn))})("mouseover",function(){const dn=o.CHM(X).$implicit,Tn=o.oxw(2);return o.KtG(Tn.onItemHover(dn))}),o.YNc(1,Lt,1,2,"ng-template",null,27,o.W1O),o.YNc(3,Jt,0,0,"ng-template",14),o.qZA()}if(2&de){const X=He.$implicit,_e=o.MAs(2),ze=o.oxw(2);o.ekj("ng-option-disabled",X.disabled)("ng-option-selected",X.selected)("ng-optgroup",X.children)("ng-option",!X.children)("ng-option-child",!!X.parent)("ng-option-marked",X===ze.itemsList.markedItem),o.uIk("role",X.children?"group":"option")("aria-selected",X.selected)("id",null==X?null:X.htmlId),o.xp6(3),o.Q6J("ngTemplateOutlet",X.children?ze.optgroupTemplate||_e:ze.optionTemplate||_e)("ngTemplateOutletContext",o.l5B(17,Tt,X.value,X,X.index,ze.searchTerm))}}function pt(de,He){if(1&de&&(o.TgZ(0,"span")(1,"span",31),o._uU(2),o.qZA(),o._uU(3),o.qZA()),2&de){const X=o.oxw(3);o.xp6(2),o.Oqu(X.addTagText),o.xp6(1),o.hij('"',X.searchTerm,'"')}}function Dt(de,He){}function St(de,He){if(1&de){const X=o.EpF();o.TgZ(0,"div",29),o.NdJ("mouseover",function(){o.CHM(X);const ze=o.oxw(2);return o.KtG(ze.itemsList.unmarkItem())})("click",function(){o.CHM(X);const ze=o.oxw(2);return o.KtG(ze.selectTag())}),o.YNc(1,pt,4,2,"ng-template",null,30,o.W1O),o.YNc(3,Dt,0,0,"ng-template",14),o.qZA()}if(2&de){const X=o.MAs(2),_e=o.oxw(2);o.ekj("ng-option-marked",!_e.itemsList.markedItem),o.xp6(3),o.Q6J("ngTemplateOutlet",_e.tagTemplate||X)("ngTemplateOutletContext",o.VKq(4,tt,_e.searchTerm))}}function mt(de,He){if(1&de&&(o.TgZ(0,"div",33),o._uU(1),o.qZA()),2&de){const X=o.oxw(3);o.xp6(1),o.Oqu(X.notFoundText)}}function yt(de,He){}function ee(de,He){if(1&de&&(o.ynx(0),o.YNc(1,mt,2,1,"ng-template",null,32,o.W1O),o.YNc(3,yt,0,0,"ng-template",14),o.BQk()),2&de){const X=o.MAs(2),_e=o.oxw(2);o.xp6(3),o.Q6J("ngTemplateOutlet",_e.notFoundTemplate||X)("ngTemplateOutletContext",o.VKq(2,tt,_e.searchTerm))}}function B(de,He){if(1&de&&(o.TgZ(0,"div",33),o._uU(1),o.qZA()),2&de){const X=o.oxw(3);o.xp6(1),o.Oqu(X.typeToSearchText)}}function At(de,He){}function st(de,He){if(1&de&&(o.ynx(0),o.YNc(1,B,2,1,"ng-template",null,34,o.W1O),o.YNc(3,At,0,0,"ng-template",18),o.BQk()),2&de){const X=o.MAs(2),_e=o.oxw(2);o.xp6(3),o.Q6J("ngTemplateOutlet",_e.typeToSearchTemplate||X)}}function ie(de,He){if(1&de&&(o.TgZ(0,"div",33),o._uU(1),o.qZA()),2&de){const X=o.oxw(3);o.xp6(1),o.Oqu(X.loadingText)}}function Ae(de,He){}function en(de,He){if(1&de&&(o.ynx(0),o.YNc(1,ie,2,1,"ng-template",null,35,o.W1O),o.YNc(3,Ae,0,0,"ng-template",14),o.BQk()),2&de){const X=o.MAs(2),_e=o.oxw(2);o.xp6(3),o.Q6J("ngTemplateOutlet",_e.loadingTextTemplate||X)("ngTemplateOutletContext",o.VKq(2,tt,_e.searchTerm))}}function In(de,He){if(1&de){const X=o.EpF();o.TgZ(0,"ng-dropdown-panel",23),o.NdJ("update",function(ze){o.CHM(X);const dn=o.oxw();return o.KtG(dn.viewPortItems=ze)})("scroll",function(ze){o.CHM(X);const dn=o.oxw();return o.KtG(dn.scroll.emit(ze))})("scrollToEnd",function(ze){o.CHM(X);const dn=o.oxw();return o.KtG(dn.scrollToEnd.emit(ze))})("outsideClick",function(){o.CHM(X);const ze=o.oxw();return o.KtG(ze.close())}),o.ynx(1),o.YNc(2,$,4,22,"div",24),o.YNc(3,St,4,6,"div",25),o.BQk(),o.YNc(4,ee,4,4,"ng-container",3),o.YNc(5,st,4,1,"ng-container",3),o.YNc(6,en,4,4,"ng-container",3),o.qZA()}if(2&de){const X=o.oxw();o.ekj("ng-select-multiple",X.multiple),o.Q6J("virtualScroll",X.virtualScroll)("bufferAmount",X.bufferAmount)("appendTo",X.appendTo)("position",X.dropdownPosition)("headerTemplate",X.headerTemplate)("footerTemplate",X.footerTemplate)("filterValue",X.searchTerm)("items",X.itemsList.filteredItems)("markedItem",X.itemsList.markedItem)("ngClass",X.appendTo?X.classes:null)("id",X.dropdownId),o.xp6(2),o.Q6J("ngForOf",X.viewPortItems)("ngForTrackBy",X.trackByOption),o.xp6(1),o.Q6J("ngIf",X.showAddTag),o.xp6(1),o.Q6J("ngIf",X.showNoItemsFound()),o.xp6(1),o.Q6J("ngIf",X.showTypeToSearch()),o.xp6(1),o.Q6J("ngIf",X.loading&&0===X.itemsList.filteredItems.length)}}const Ve=/[&<>"']/g,jt=RegExp(Ve.source),ft={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ce(de){return null!=de}function ve(de){return"object"==typeof de&&Ce(de)}function De(de){return de instanceof Function}let tn=(()=>{class de{constructor(X){this.element=X,this.escape=!0}ngOnChanges(X){this.element.nativeElement.innerHTML=this.escape?function Gt(de){return de&&jt.test(de)?de.replace(Ve,He=>ft[He]):de}(this.ngItemLabel):this.ngItemLabel}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[o.TTD]})}return de})(),gn=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-option-tmp",""]]})}return de})(),Xe=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-optgroup-tmp",""]]})}return de})(),rn=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-label-tmp",""]]})}return de})(),re=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-multi-label-tmp",""]]})}return de})(),ue=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-header-tmp",""]]})}return de})(),Ft=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-footer-tmp",""]]})}return de})(),be=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-notfound-tmp",""]]})}return de})(),qt=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-typetosearch-tmp",""]]})}return de})(),Te=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-loadingtext-tmp",""]]})}return de})(),Me=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-tag-tmp",""]]})}return de})(),_n=(()=>{class de{constructor(X){this.template=X}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:de,selectors:[["","ng-loadingspinner-tmp",""]]})}return de})();function ce(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const ye={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Xt(de){return de.replace(/[^\u0000-\u007E]/g,X=>ye[X]||X)}class on{constructor(He,X){this._ngSelect=He,this._selectionModel=X,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let He=this.selectedItems.length-1;for(;He>=0;He--){const X=this.selectedItems[He];if(!X.disabled)return X}return null}setItems(He){this._items=He.map((X,_e)=>this.mapItem(X,_e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(He){if(He.selected||this.maxItemsSelected)return;const X=this._ngSelect.multiple;X||this.clearSelected(),this._selectionModel.select(He,X,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(He)}unselect(He){He.selected&&(this._selectionModel.unselect(He,this._ngSelect.multiple),this._ngSelect.hideSelected&&Ce(He.index)&&this._ngSelect.multiple&&this._showSelected(He))}findItem(He){let X;return X=this._ngSelect.compareWith?_e=>this._ngSelect.compareWith(_e.value,He):this._ngSelect.bindValue?_e=>!_e.children&&this.resolveNested(_e.value,this._ngSelect.bindValue)===He:_e=>_e.value===He||!_e.children&&_e.label&&_e.label===this.resolveNested(He,this._ngSelect.bindLabel),this._items.find(_e=>X(_e))}addItem(He){const X=this.mapItem(He,this._items.length);return this._items.push(X),this._filteredItems.push(X),X}clearSelected(He=!1){this._selectionModel.clear(He),this._items.forEach(X=>{X.selected=He&&X.selected&&X.disabled,X.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(He){return He=Xt(He).toLocaleLowerCase(),this.filteredItems.find(X=>Xt(X.label).toLocaleLowerCase().substr(0,He.length)===He)}filter(He){if(!He)return void this.resetFilteredItems();this._filteredItems=[],He=this._ngSelect.searchFn?He:Xt(He).toLocaleLowerCase();const X=this._ngSelect.searchFn||this._defaultSearchFn,_e=this._ngSelect.hideSelected;for(const ze of Array.from(this._groups.keys())){const dn=[];for(const Tn of this._groups.get(ze))_e&&(Tn.parent&&Tn.parent.selected||Tn.selected)||X(He,this._ngSelect.searchFn?Tn.value:Tn)&&dn.push(Tn);if(dn.length>0){const[Tn]=dn.slice(-1);if(Tn.parent){const je=this._items.find(ke=>ke===Tn.parent);this._filteredItems.push(je)}this._filteredItems.push(...dn)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(He=>!He.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(He){this._markedIndex=this._filteredItems.indexOf(He)}markSelectedOrDefault(He){if(0===this._filteredItems.length)return;const X=this._getLastMarkedIndex();this._markedIndex=X>-1?X:He?this.filteredItems.findIndex(_e=>!_e.disabled):-1}resolveNested(He,X){if(!ve(He))return He;if(-1===X.indexOf("."))return He[X];{const _e=X.split(".");let ze=He;for(let dn=0,Tn=_e.length;dn<Tn;++dn){if(null==ze)return null;ze=ze[_e[dn]]}return ze}}mapItem(He,X){const _e=Ce(He.$ngOptionLabel)?He.$ngOptionLabel:this.resolveNested(He,this._ngSelect.bindLabel),ze=Ce(He.$ngOptionValue)?He.$ngOptionValue:He;return{index:X,label:Ce(_e)?_e.toString():"",value:ze,disabled:He.disabled,htmlId:`${this._ngSelect.dropdownId}-${X}`}}mapSelectedItems(){const He=this._ngSelect.multiple;for(const X of this.selectedItems){const _e=this._ngSelect.bindValue?this.resolveNested(X.value,this._ngSelect.bindValue):X.value,ze=Ce(_e)?this.findItem(_e):null;this._selectionModel.unselect(X,He),this._selectionModel.select(ze||X,He,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(X=>-1===this.selectedItems.indexOf(X)))}_showSelected(He){if(this._filteredItems.push(He),He.parent){const X=He.parent;this._filteredItems.find(ze=>ze===X)||this._filteredItems.push(X)}else if(He.children)for(const X of He.children)X.selected=!1,this._filteredItems.push(X);this._filteredItems=[...this._filteredItems.sort((X,_e)=>X.index-_e.index)]}_hideSelected(He){this._filteredItems=this._filteredItems.filter(X=>X!==He),He.parent?He.parent.children.every(_e=>_e.selected)&&(this._filteredItems=this._filteredItems.filter(_e=>_e!==He.parent)):He.children&&(this._filteredItems=this.filteredItems.filter(X=>X.parent!==He))}_defaultSearchFn(He,X){return Xt(X.label).toLocaleLowerCase().indexOf(He)>-1}_getNextItemIndex(He){return He>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(He){0===this._filteredItems.length||this._filteredItems.every(X=>X.disabled)||(this._markedIndex=this._getNextItemIndex(He),this.markedItem.disabled&&this._stepToItem(He))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const He=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&He<0?-1:Math.max(this.markedIndex,He)}_groupBy(He,X){const _e=new Map;if(0===He.length)return _e;if(Array.isArray(He[0].value[X])){for(const Tn of He){const je=(Tn.value[X]||[]).map((ke,Ne)=>this.mapItem(ke,Ne));_e.set(Tn,je)}return _e}const ze=De(this._ngSelect.groupBy),dn=Tn=>{const je=ze?X(Tn.value):Tn.value[X];return Ce(je)?je:void 0};for(const Tn of He){const je=dn(Tn),ke=_e.get(je);ke?ke.push(Tn):_e.set(je,[Tn])}return _e}_flatten(He){const X=De(this._ngSelect.groupBy),_e=[];for(const ze of Array.from(He.keys())){let dn=_e.length;if(void 0===ze){const cn=He.get(void 0)||[];_e.push(...cn.map(se=>(se.index=dn++,se)));continue}const Tn=ve(ze),je={label:Tn?"":String(ze),children:void 0,parent:null,index:dn++,disabled:!this._ngSelect.selectableGroup,htmlId:ce()},ke=X?this._ngSelect.bindLabel:this._ngSelect.groupBy,Ne=this._ngSelect.groupValue||(()=>Tn?ze.value:{[ke]:ze}),le=He.get(ze).map(cn=>(cn.parent=je,cn.children=void 0,cn.index=dn++,cn));je.children=le,je.value=Ne(ze,le.map(cn=>cn.value)),_e.push(je),_e.push(...le)}return _e}}var oe=function(de){return de[de.Tab=9]="Tab",de[de.Enter=13]="Enter",de[de.Esc=27]="Esc",de[de.Space=32]="Space",de[de.ArrowUp=38]="ArrowUp",de[de.ArrowDown=40]="ArrowDown",de[de.Backspace=8]="Backspace",de}(oe||{});let $e=(()=>{class de{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(X,_e,ze){const dn=this._dimensions,Tn=dn.itemHeight*_e,ke=Math.max(0,X)/Tn*_e;let Ne=Math.min(_e,Math.ceil(ke)+(dn.itemsPerViewport+1));const cn=Math.max(0,Ne-dn.itemsPerViewport);let se=Math.min(cn,Math.floor(ke)),Ie=dn.itemHeight*Math.ceil(se)-dn.itemHeight*Math.min(se,ze);return Ie=isNaN(Ie)?0:Ie,se=isNaN(se)?-1:se,Ne=isNaN(Ne)?-1:Ne,se-=ze,se=Math.max(0,se),Ne+=ze,Ne=Math.min(_e,Ne),{topPadding:Ie,scrollHeight:Tn,start:se,end:Ne}}setDimensions(X,_e){const ze=Math.max(1,Math.floor(_e/X));this._dimensions={itemHeight:X,panelHeight:_e,itemsPerViewport:ze}}getScrollTo(X,_e,ze){const{panelHeight:dn}=this.dimensions,Tn=X+_e,ke=ze+dn;return dn>=Tn&&ze===X?null:Tn>ke?ze+Tn-ke:X<=ze?X:null}static#t=this.\u0275fac=function(_e){return new(_e||de)};static#e=this.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac})}return de})();const te=["top","right","bottom","left"],Se=typeof requestAnimationFrame<"u"?y.Z:O.E;let Ke=(()=>{class de{constructor(X,_e,ze,dn,Tn){this._renderer=X,this._zone=_e,this._panelService=ze,this._document=Tn,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new o.vpe,this.scroll=new o.vpe,this.scrollToEnd=new o.vpe,this.outsideClick=new o.vpe,this._destroy$=new G.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=dn.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(X){X!==this._itemsLength&&(this._itemsLength=X,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:X,panelHeight:_e}=this._panelService.dimensions,ze=this.markedItem.index*X;return _e>ze?0:ze}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(X){if(X.items){const _e=X.items;this._onItemsChange(_e.currentValue,_e.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(X,_e=!1){if(!X)return;const ze=this.items.indexOf(X);if(ze<0||ze>=this.itemsLength)return;let dn;if(this.virtualScroll){const Tn=this._panelService.dimensions.itemHeight;dn=this._panelService.getScrollTo(ze*Tn,Tn,this._lastScrollPosition)}else{const Tn=this._dropdown.querySelector(`#${X.htmlId}`);dn=this._panelService.getScrollTo(Tn.offsetTop,Tn.clientHeight,_e?Tn.offsetTop:this._lastScrollPosition)}Ce(dn)&&(this._scrollablePanel.scrollTop=dn)}scrollToTag(){const X=this._scrollablePanel;X.scrollTop=X.scrollHeight-X.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),te.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(X){te.forEach(ze=>{const dn=`ng-select-${ze}`;this._renderer.removeClass(this._dropdown,dn),this._renderer.removeClass(this._select,dn)});const _e=`ng-select-${X}`;this._renderer.addClass(this._dropdown,_e),this._renderer.addClass(this._select,_e)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,U.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,g.R)(this._destroy$),(0,x.e)(0,Se)).subscribe(X=>{const _e=X.path||X.composedPath&&X.composedPath();this._onContentScrolled(_e&&0!==_e.length?_e[0].scrollTop:X.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,lt.T)((0,U.R)(this._document,"touchstart",{capture:!0}),(0,U.R)(this._document,"mousedown",{capture:!0})).pipe((0,g.R)(this._destroy$)).subscribe(X=>this._checkToClose(X))})}_checkToClose(X){if(this._select.contains(X.target)||this._dropdown.contains(X.target))return;const _e=X.path||X.composedPath&&X.composedPath();X.target&&X.target.shadowRoot&&_e&&_e[0]&&this._select.contains(_e[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(X,_e){this.items=X||[],this._scrollToEndFired=!1,this.itemsLength=X.length,this.virtualScroll?this._updateItemsRange(_e):(this._setVirtualHeight(),this._updateItems(_e))}_updateItems(X){this.update.emit(this.items),!1!==X&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,X)})})}_updateItemsRange(X){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{X?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(X){this.virtualScroll&&this._renderItemsRange(X),this._lastScrollPosition=X,this._fireScrollToEnd(X)}_updateVirtualHeight(X){this._updateScrollHeight&&(this._virtualPadding.style.height=`${X}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(X=null){if(X&&this._lastScrollPosition===X)return;const _e=this._panelService.calculateItems(X=X||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(_e.scrollHeight),this._contentPanel.style.transform=`translateY(${_e.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(_e.start,_e.end)),this.scroll.emit({start:_e.start,end:_e.end})}),Ce(X)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=X,this._lastScrollPosition=X)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[X]=this.items;return this.update.emit([X]),Promise.resolve().then(()=>{const ze=this._dropdown.querySelector(`#${X.htmlId}`).clientHeight;return this._virtualPadding.style.height=ze*this.itemsLength+"px",this._panelService.setDimensions(ze,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(X){this._scrollToEndFired||0===X||X+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(X){if("auto"!==this.position)return this.position;const _e=this._select.getBoundingClientRect(),ze=document.documentElement.scrollTop||document.body.scrollTop;return _e.top+window.pageYOffset+_e.height+X.getBoundingClientRect().height>ze+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const X=this._select.getBoundingClientRect(),_e=this._parent.getBoundingClientRect();this._dropdown.style.left=X.left-_e.left+"px",this._dropdown.style.width=X.width+"px",this._dropdown.style.minWidth=X.width+"px"}_updateYPosition(){const X=this._select.getBoundingClientRect(),_e=this._parent.getBoundingClientRect(),ze=X.height;"top"===this._currentPosition?(this._dropdown.style.bottom=_e.bottom-X.bottom+ze+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=X.top-_e.top+ze+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,U.R)(this._dropdown,"mousedown").pipe((0,g.R)(this._destroy$)).subscribe(X=>{"INPUT"!==X.target.tagName&&X.preventDefault()})})}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.Qsj),o.Y36(o.R0b),o.Y36($e),o.Y36(o.SBq),o.Y36(ut.K0,8))};static#e=this.\u0275cmp=o.Xpm({type:de,selectors:[["ng-dropdown-panel"]],viewQuery:function(_e,ze){if(1&_e&&(o.Gf(Ht,7,o.SBq),o.Gf(A,7,o.SBq),o.Gf(xt,7,o.SBq)),2&_e){let dn;o.iGM(dn=o.CRH())&&(ze.contentElementRef=dn.first),o.iGM(dn=o.CRH())&&(ze.scrollElementRef=dn.first),o.iGM(dn=o.CRH())&&(ze.paddingElementRef=dn.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[o.TTD],ngContentSelectors:j,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(_e,ze){1&_e&&(o.F$t(),o.YNc(0,ct,2,4,"div",0),o.TgZ(1,"div",1,2),o._UZ(3,"div",null,3),o.TgZ(5,"div",null,4),o.Hsn(7),o.qZA()(),o.YNc(8,_,2,4,"div",5)),2&_e&&(o.Q6J("ngIf",ze.headerTemplate),o.xp6(3),o.ekj("total-padding",ze.virtualScroll),o.xp6(2),o.ekj("scrollable-content",ze.virtualScroll&&ze.items.length),o.xp6(3),o.Q6J("ngIf",ze.footerTemplate))},dependencies:[ut.O5,ut.tP],encapsulation:2,changeDetection:0})}return de})(),Oe=(()=>{class de{get disabled(){return this._disabled}set disabled(X){this._disabled=this._isDisabled(X)}constructor(X){this.elementRef=X,this.stateChange$=new G.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(X){X.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(X){return null!=X&&"false"!=`${X}`}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.Y36(o.SBq))};static#e=this.\u0275cmp=o.Xpm({type:de,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[o.TTD],ngContentSelectors:j,decls:1,vars:0,template:function(_e,ze){1&_e&&(o.F$t(),o.Hsn(0))},encapsulation:2,changeDetection:0})}return de})(),Qe=(()=>{class de{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#t=this.\u0275fac=function(_e){return new(_e||de)};static#e=this.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})(),et=(()=>{class de{warn(X){console.warn(X)}static#t=this.\u0275fac=function(_e){return new(_e||de)};static#e=this.\u0275prov=o.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();const nt=new o.OlP("ng-select-selection-model");let it=(()=>{class de{get items(){return this._items}set items(X){null===X&&(X=[]),this._itemsAreUsed=!0,this._items=X}get compareWith(){return this._compareWith}set compareWith(X){if(null!=X&&!De(X))throw Error("`compareWith` must be a function.");this._compareWith=X}get clearSearchOnAdd(){return Ce(this._clearSearchOnAdd)?this._clearSearchOnAdd:Ce(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(X){this._clearSearchOnAdd=X}get deselectOnClick(){return Ce(this._deselectOnClick)?this._deselectOnClick:Ce(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(X){this._deselectOnClick=X}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(X,_e,ze,dn,Tn,je,ke){this.classes=X,this.autoFocus=_e,this.config=ze,this._cd=je,this._console=ke,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=Ne=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new o.vpe,this.focusEvent=new o.vpe,this.changeEvent=new o.vpe,this.openEvent=new o.vpe,this.closeEvent=new o.vpe,this.searchEvent=new o.vpe,this.clearEvent=new o.vpe,this.addEvent=new o.vpe,this.removeEvent=new o.vpe,this.scroll=new o.vpe,this.scrollToEnd=new o.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=ce(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new G.x,this._keyPress$=new G.x,this._onChange=Ne=>{},this._onTouched=()=>{},this.clearItem=Ne=>{const le=this.selectedItems.find(cn=>cn.value===Ne);this.unselect(le)},this.trackByOption=(Ne,le)=>this.trackByFn?this.trackByFn(le.value):le,this._mergeGlobalConfig(ze),this.itemsList=new on(this,dn()),this.element=Tn.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(X=>X.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(X){X.multiple&&this.itemsList.clearSelected(),X.items&&this._setItems(X.items.currentValue||[]),X.isOpen&&(this._manualOpen=Ce(X.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ce(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(X){if(oe[X.which]){if(!1===this.keyDownFn(X))return;this.handleKeyCode(X)}else X.key&&1===X.key.length&&this._keyPress$.next(X.key.toLocaleLowerCase())}handleKeyCode(X){this.clearButton&&this.clearButton.nativeElement===X.target?this.handleKeyCodeClear(X):this.handleKeyCodeInput(X)}handleKeyCodeInput(X){switch(X.which){case oe.ArrowDown:this._handleArrowDown(X);break;case oe.ArrowUp:this._handleArrowUp(X);break;case oe.Space:this._handleSpace(X);break;case oe.Enter:this._handleEnter(X);break;case oe.Tab:this._handleTab(X);break;case oe.Esc:this.close(),X.preventDefault();break;case oe.Backspace:this._handleBackspace()}}handleKeyCodeClear(X){X.which===oe.Enter&&(this.handleClearClick(),X.preventDefault())}handleMousedown(X){const _e=X.target;"INPUT"!==_e.tagName&&X.preventDefault(),_e.classList.contains("ng-clear-wrapper")?this.handleClearClick():_e.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():_e.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(X){this.itemsList.clearSelected(),this._handleWriteValue(X),this._cd.markForCheck()}registerOnChange(X){this._onChange=X}registerOnTouched(X){this._onTouched=X}setDisabledState(X){this._disabled=X,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(X){!X||X.disabled||this.disabled||(this.deselectOnClick&&X.selected?this.unselect(X):this.select(X),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(X){X.selected||(this.itemsList.select(X),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(X.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(X){X&&(this.itemsList.unselect(X),this.focus(),this._updateNgModel(),this.removeEvent.emit(X.value))}selectTag(){let X;X=De(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const _e=ze=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(ze,null):this.itemsList.addItem(ze);!function me(de){return de instanceof Promise}(X)?X&&this.select(_e(X)):X.then(ze=>this.select(_e(ze))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const X=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(_e=>_e.label.toLowerCase()===X)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(_e=>_e.label.toLowerCase()===X))&&!this.loading}showNoItemsFound(){const X=0===this.itemsList.filteredItems.length;return(X&&!this._isTypeahead&&!this.loading||X&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(X){this._isComposing=!1,!this.searchWhileComposing&&this.filter(X)}filter(X){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=X,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(X),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:X,items:this.itemsList.filteredItems.map(_e=>_e.value)}),this.open())}onInputFocus(X){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(X),this.focused=!0)}onInputBlur(X){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(X),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(X){X.disabled||this.itemsList.markItem(X)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const X=this.selectedItems&&this.selectedItems[0];this.searchTerm=X&&X.label||null}_setItems(X){const _e=X[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Ce(_e)?!ve(_e):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(X),X.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Ce(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const X=ze=>{this.items=ze.map(dn=>({$ngOptionValue:dn.value,$ngOptionLabel:dn.elementRef.nativeElement.innerHTML,disabled:dn.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},_e=()=>{const ze=(0,lt.T)(this.ngOptions.changes,this._destroy$);(0,lt.T)(...this.ngOptions.map(dn=>dn.stateChange$)).pipe((0,g.R)(ze)).subscribe(dn=>{const Tn=this.itemsList.findItem(dn.value);Tn.disabled=dn.disabled,Tn.label=dn.label||Tn.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,l.O)(this.ngOptions),(0,g.R)(this._destroy$)).subscribe(ze=>{this.bindLabel=this._defaultLabel,X(ze),_e()})}_isValidWriteValue(X){if(!Ce(X)||this.multiple&&""===X||Array.isArray(X)&&0===X.length)return!1;const _e=ze=>!(!Ce(this.compareWith)&&ve(ze)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(ze)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(X)?X.every(ze=>_e(ze)):(this._console.warn("Multiple select ngModel should be array."),!1):_e(X)}_handleWriteValue(X){if(!this._isValidWriteValue(X))return;const _e=ze=>{let dn=this.itemsList.findItem(ze);if(dn)this.itemsList.select(dn);else{const Tn=ve(ze);Tn||!Tn&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(ze,null)):this.bindValue&&(dn={[this.bindLabel]:null,[this.bindValue]:ze},this.itemsList.select(this.itemsList.mapItem(dn,null)))}};this.multiple?X.forEach(ze=>_e(ze)):_e(X)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,g.R)(this._destroy$),(0,i.b)(X=>this._pressedKeys.push(X)),(0,R.b)(200),(0,f.h)(()=>this._pressedKeys.length>0),(0,t.U)(()=>this._pressedKeys.join(""))).subscribe(X=>{const _e=this.itemsList.findByLabel(X);_e&&(this.isOpen?(this.itemsList.markItem(_e),this._scrollToMarked(),this._cd.markForCheck()):this.select(_e)),this._pressedKeys=[]})}_setInputAttributes(){const X=this.searchInput.nativeElement,_e={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const ze of Object.keys(_e))X.setAttribute(ze,_e[ze])}_updateNgModel(){const X=[];for(const ze of this.selectedItems)if(this.bindValue){let dn=null;dn=ze.children?ze.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(ze.value,this.bindValue),X.push(dn)}else X.push(ze.value);const _e=this.selectedItems.map(ze=>ze.value);this.multiple?(this._onChange(X),this.changeEvent.emit(_e)):(this._onChange(Ce(X[0])?X[0]:null),this.changeEvent.emit(_e[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(X){this.searchTerm=X,this._isTypeahead&&this.typeahead.next(X)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(X){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),X.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),X.preventDefault()):this.showAddTag?(this.selectTag(),X.preventDefault()):this.close():this.close()}_handleEnter(X){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}X.preventDefault()}_handleSpace(X){this.isOpen||this._manualOpen||(this.open(),X.preventDefault())}_handleArrowDown(X){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),X.preventDefault()}_handleArrowUp(X){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),X.preventDefault())}_nextItemIsTag(X){const _e=this.itemsList.markedIndex+X;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(_e<0||_e===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const X=this.searchTerm&&this.searchTerm.trim();return X&&X.length>=this.minTermLength}_mergeGlobalConfig(X){this.placeholder=this.placeholder||X.placeholder,this.notFoundText=this.notFoundText||X.notFoundText,this.typeToSearchText=this.typeToSearchText||X.typeToSearchText,this.addTagText=this.addTagText||X.addTagText,this.loadingText=this.loadingText||X.loadingText,this.clearAllText=this.clearAllText||X.clearAllText,this.virtualScroll=Ce(this.virtualScroll)?this.virtualScroll:!!Ce(X.disableVirtualScroll)&&!X.disableVirtualScroll,this.openOnEnter=Ce(this.openOnEnter)?this.openOnEnter:X.openOnEnter,this.appendTo=this.appendTo||X.appendTo,this.bindValue=this.bindValue||X.bindValue,this.bindLabel=this.bindLabel||X.bindLabel,this.appearance=this.appearance||X.appearance}static#t=this.\u0275fac=function(_e){return new(_e||de)(o.$8M("class"),o.$8M("autofocus"),o.Y36(Qe),o.Y36(nt),o.Y36(o.SBq),o.Y36(o.sBO),o.Y36(et))};static#e=this.\u0275cmp=o.Xpm({type:de,selectors:[["ng-select"]],contentQueries:function(_e,ze,dn){if(1&_e&&(o.Suo(dn,gn,5,o.Rgc),o.Suo(dn,Xe,5,o.Rgc),o.Suo(dn,rn,5,o.Rgc),o.Suo(dn,re,5,o.Rgc),o.Suo(dn,ue,5,o.Rgc),o.Suo(dn,Ft,5,o.Rgc),o.Suo(dn,be,5,o.Rgc),o.Suo(dn,qt,5,o.Rgc),o.Suo(dn,Te,5,o.Rgc),o.Suo(dn,Me,5,o.Rgc),o.Suo(dn,_n,5,o.Rgc),o.Suo(dn,Oe,5)),2&_e){let Tn;o.iGM(Tn=o.CRH())&&(ze.optionTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.optgroupTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.labelTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.multiLabelTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.headerTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.footerTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.notFoundTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.typeToSearchTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.loadingTextTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.tagTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.loadingSpinnerTemplate=Tn.first),o.iGM(Tn=o.CRH())&&(ze.ngOptions=Tn)}},viewQuery:function(_e,ze){if(1&_e&&(o.Gf(Ke,5),o.Gf(q,7),o.Gf(ht,5)),2&_e){let dn;o.iGM(dn=o.CRH())&&(ze.dropdownPanel=dn.first),o.iGM(dn=o.CRH())&&(ze.searchInput=dn.first),o.iGM(dn=o.CRH())&&(ze.clearButton=dn.first)}},hostVars:20,hostBindings:function(_e,ze){1&_e&&o.NdJ("keydown",function(Tn){return ze.handleKeyDown(Tn)}),2&_e&&o.ekj("ng-select-typeahead",ze.typeahead)("ng-select-multiple",ze.multiple)("ng-select-taggable",ze.addTag)("ng-select-searchable",ze.searchable)("ng-select-clearable",ze.clearable)("ng-select-opened",ze.isOpen)("ng-select",ze.useDefaultClass)("ng-select-disabled",ze.disabled)("ng-select-filtered",ze.filtered)("ng-select-single",ze.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[o._Bn([{provide:e.JU,useExisting:(0,o.Gpc)(()=>de),multi:!0},$e]),o.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(_e,ze){if(1&_e){const dn=o.EpF();o.TgZ(0,"div",0),o.NdJ("mousedown",function(je){return ze.handleMousedown(je)}),o.TgZ(1,"div",1)(2,"div",2),o._uU(3),o.qZA(),o.YNc(4,H,2,2,"ng-container",3),o.YNc(5,F,1,5,null,3),o.TgZ(6,"div",4)(7,"input",5,6),o.NdJ("input",function(){o.CHM(dn);const je=o.MAs(8);return o.KtG(ze.filter(je.value))})("compositionstart",function(){return ze.onCompositionStart()})("compositionend",function(){o.CHM(dn);const je=o.MAs(8);return o.KtG(ze.onCompositionEnd(je.value))})("focus",function(je){return ze.onInputFocus(je)})("blur",function(je){return ze.onInputBlur(je)})("change",function(je){return je.stopPropagation()}),o.qZA()()(),o.YNc(9,Pt,4,1,"ng-container",3),o.YNc(10,$t,4,1,"span",7),o.TgZ(11,"span",8),o._UZ(12,"span",9),o.qZA()(),o.YNc(13,In,7,19,"ng-dropdown-panel",10)}2&_e&&(o.ekj("ng-appearance-outline","outline"===ze.appearance)("ng-has-value",ze.hasValue),o.xp6(3),o.Oqu(ze.placeholder),o.xp6(1),o.Q6J("ngIf",(!ze.multiLabelTemplate||!ze.multiple)&&ze.selectedItems.length>0),o.xp6(1),o.Q6J("ngIf",ze.multiple&&ze.multiLabelTemplate&&ze.selectedValues.length>0),o.xp6(1),o.uIk("aria-expanded",ze.isOpen)("aria-owns",ze.isOpen?ze.dropdownId:null),o.xp6(1),o.Q6J("readOnly",!ze.searchable||ze.itemsList.maxItemsSelected)("disabled",ze.disabled)("value",ze.searchTerm?ze.searchTerm:""),o.uIk("id",ze.labelForId)("tabindex",ze.tabIndex)("aria-activedescendant",ze.isOpen?null==ze.itemsList||null==ze.itemsList.markedItem?null:ze.itemsList.markedItem.htmlId:null)("aria-controls",ze.isOpen?ze.dropdownId:null),o.xp6(2),o.Q6J("ngIf",ze.loading),o.xp6(1),o.Q6J("ngIf",ze.showClear()),o.xp6(3),o.Q6J("ngIf",ze.isOpen))},dependencies:[ut.mk,ut.sg,ut.O5,ut.tP,Ke,tn],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return de})();function Ot(){return new Fe}class Fe{constructor(){this._selected=[]}get value(){return this._selected}select(He,X,_e){if(He.selected=!0,(!He.children||!X&&_e)&&this._selected.push(He),X)if(He.parent){const ze=He.parent.children.length,dn=He.parent.children.filter(Tn=>Tn.selected).length;He.parent.selected=ze===dn}else He.children&&(this._setChildrenSelectedState(He.children,!0),this._removeChildren(He),this._selected=_e&&this._activeChildren(He)?[...this._selected.filter(ze=>ze.parent!==He),He]:[...this._selected,...He.children.filter(ze=>!ze.disabled)])}unselect(He,X){if(this._selected=this._selected.filter(_e=>_e!==He),He.selected=!1,X)if(He.parent&&He.parent.selected){const _e=He.parent.children;this._removeParent(He.parent),this._removeChildren(He.parent),this._selected.push(..._e.filter(ze=>ze!==He&&!ze.disabled)),He.parent.selected=!1}else He.children&&(this._setChildrenSelectedState(He.children,!1),this._removeChildren(He))}clear(He){this._selected=He?this._selected.filter(X=>X.disabled):[]}_setChildrenSelectedState(He,X){for(const _e of He)_e.disabled||(_e.selected=X)}_removeChildren(He){this._selected=[...this._selected.filter(X=>X.parent!==He),...He.children.filter(X=>X.parent===He&&X.disabled&&X.selected)]}_removeParent(He){this._selected=this._selected.filter(X=>X!==He)}_activeChildren(He){return He.children.every(X=>!X.disabled||X.selected)}}let Cn=(()=>{class de{static#t=this.\u0275fac=function(_e){return new(_e||de)};static#e=this.\u0275mod=o.oAB({type:de});static#n=this.\u0275inj=o.cJS({providers:[{provide:nt,useValue:Ot}],imports:[ut.ez]})}return de})()},5515:(Je,Rt,c)=>{"use strict";c.d(Rt,{Y:()=>g,Z:()=>e});var o=c(5879);const e=new o.OlP("REQUEST"),g=new o.OlP("RESPONSE")},8862:(Je,Rt,c)=>{"use strict";c.d(Rt,{f:()=>g,h:()=>e});var o=c(5879);let e=(()=>{class x{constructor(i,R){this.viewContainer=i,this.templateRef=R,this.context={ngLet:null,$implicit:null},this.hasView=!1}set ngLet(i){this.context.$implicit=this.context.ngLet=i,this.hasView||(this.hasView=!0,this.viewContainer.createEmbeddedView(this.templateRef,this.context))}static ngTemplateContextGuard(i,R){return!0}static#t=this.\u0275fac=function(R){return new(R||x)(o.Y36(o.s_b),o.Y36(o.Rgc))};static#e=this.\u0275dir=o.lG2({type:x,selectors:[["","ngLet",""]],inputs:{ngLet:"ngLet"}})}return x})(),g=(()=>{class x{static#t=this.\u0275fac=function(R){return new(R||x)};static#e=this.\u0275mod=o.oAB({type:x});static#n=this.\u0275inj=o.cJS({})}return x})()},459:(Je,Rt,c)=>{"use strict";c.d(Rt,{N:()=>g});var o=c(5879),e=c(6814);let g=(()=>{class x{constructor(i,R){this.document=i,this.platformId=R,this.documentIsAccessible=(0,e.NF)(this.platformId)}static getCookieRegExp(i){const R=i.replace(/([\[\]{}()|=;+?,.*^$])/gi,"\\$1");return new RegExp("(?:^"+R+"|;\\s*"+R+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(i){try{return decodeURIComponent(i)}catch{return i}}check(i){return!!this.documentIsAccessible&&(i=encodeURIComponent(i),x.getCookieRegExp(i).test(this.document.cookie))}get(i){if(this.documentIsAccessible&&this.check(i)){i=encodeURIComponent(i);const f=x.getCookieRegExp(i).exec(this.document.cookie);return f[1]?x.safeDecodeURIComponent(f[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const i={},R=this.document;return R.cookie&&""!==R.cookie&&R.cookie.split(";").forEach(f=>{const[t,y]=f.split("=");i[x.safeDecodeURIComponent(t.replace(/^ /,""))]=x.safeDecodeURIComponent(y)}),i}set(i,R,f,t,y,O,G){if(!this.documentIsAccessible)return;if("number"==typeof f||f instanceof Date||t||y||O||G)return void this.set(i,R,{expires:f,path:t,domain:y,secure:O,sameSite:G||"Lax"});let U=encodeURIComponent(i)+"="+encodeURIComponent(R)+";";const lt=f||{};lt.expires&&(U+="number"==typeof lt.expires?"expires="+new Date((new Date).getTime()+1e3*lt.expires*60*60*24).toUTCString()+";":"expires="+lt.expires.toUTCString()+";"),lt.path&&(U+="path="+lt.path+";"),lt.domain&&(U+="domain="+lt.domain+";"),!1===lt.secure&&"None"===lt.sameSite&&(lt.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${i} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),lt.secure&&(U+="secure;"),lt.sameSite||(lt.sameSite="Lax"),U+="sameSite="+lt.sameSite+";",this.document.cookie=U}delete(i,R,f,t,y="Lax"){this.documentIsAccessible&&this.set(i,"",{expires:new Date("Thu, 01 Jan 1970 00:00:01 GMT"),path:R,domain:f,secure:t,sameSite:y})}deleteAll(i,R,f,t="Lax"){if(!this.documentIsAccessible)return;const y=this.getAll();for(const O in y)y.hasOwnProperty(O)&&this.delete(O,i,R,f,t)}static#t=this.\u0275fac=function(R){return new(R||x)(o.LFG(e.K0),o.LFG(o.Lbi))};static#e=this.\u0275prov=o.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})}return x})()},8750:(Je,Rt,c)=>{"use strict";c.d(Rt,{x0:()=>q});var o=c(5879),e=c(6814);const g={UKNOWN:"Unknown"},x={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:g.UKNOWN},l={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},i={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},R={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:g.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},f=[R.PS4,R.CHROME_BOOK,R.MAC,R.DELL,R.ASUS,R.UNKNOWN],t={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:g.UKNOWN},y={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:g.UKNOWN.toLowerCase()},O={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},U={...l,...i,...O,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},lt={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},ut={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},Ht=Object.keys(lt).reduce((ht,vt)=>(ht[vt]=lt[vt],ht),{}),A=Object.keys(ut).reduce((ht,vt)=>(ht[x[vt]]=ut[vt],ht),{});var xt=Object.freeze({__proto__:null,BROWSERS:x,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:A,BROWSER_VERSIONS_RE_MAP:ut,DESKTOP_DEVICES:f,DEVICES:R,DEVICES_RE:U,GENERAL:g,MOBILES_RE:l,OS:t,OS_RE:O,OS_VERSIONS:y,OS_VERSIONS_RE:Ht,OS_VERSIONS_RE_MAP:lt,TABLETS_RE:i});class tt{constructor(){}test(vt,gt){return"string"==typeof gt&&(gt=new RegExp(gt)),gt instanceof RegExp?gt.test(vt):gt&&Array.isArray(gt.and)?gt.and.every(zt=>this.test(vt,zt)):gt&&Array.isArray(gt.or)?gt.or.some(zt=>this.test(vt,zt)):!(!gt||!gt.not||this.test(vt,gt.not))}exec(vt,gt){return"string"==typeof gt&&(gt=new RegExp(gt)),gt instanceof RegExp?gt.exec(vt):gt&&Array.isArray(gt)?gt.reduce((zt,Ct)=>zt||this.exec(vt,Ct),null):null}}var ct=function(ht){return ht.Mobile="mobile",ht.Tablet="tablet",ht.Desktop="desktop",ht.Unknown="unknown",ht}(ct||{}),_=function(ht){return ht.Portrait="portrait",ht.Landscape="landscape",ht}(_||{});const j="iPad";let q=(()=>{class ht{constructor(gt){this.platformId=gt,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new tt,this.deviceType="",this.orientation="",(0,e.NF)(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(gt=this.userAgent){gt!==this.userAgent&&(this.userAgent=gt);const zt=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(zt.forEach(Ct=>{this[Ct.prop]=Object.keys(xt[Ct.const]).reduce((H,J)=>"device"===xt[Ct.const][J]&&(0,e.NF)(this.platformId)&&(this.reTree.test(this.userAgent,i[j])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(H[xt[Ct.const][J]]=j,Object):(H[xt[Ct.const][J]]=this.reTree.test(gt,xt[`${Ct.const}_RE`][J]),H),{})}),zt.forEach(Ct=>{this[Ct.prop]=Object.keys(xt[Ct.const]).map(H=>xt[Ct.const][H]).reduce((H,J)=>"device"===Ct.prop&&H===xt[Ct.const].ANDROID?this[Ct.prop][J]?J:H:H===xt[Ct.const].UNKNOWN&&this[Ct.prop][J]?J:H,xt[Ct.const].UNKNOWN)}),this.browser_version="0",this.browser!==x.UNKNOWN){const H=this.reTree.exec(gt,A[this.browser]);H&&(this.browser_version=H[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?_.Landscape:_.Portrait:g.UKNOWN,this.deviceType=this.isTablet()?ct.Tablet:this.isMobile(this.userAgent)?ct.Mobile:this.isDesktop(this.userAgent)?ct.Desktop:ct.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(gt=this.userAgent){return!this.isTablet(gt)&&!!Object.keys(l).find(Ct=>this.reTree.test(gt,l[Ct]))}isTablet(gt=this.userAgent){return!(!(0,e.NF)(this.platformId)||!(this.reTree.test(this.userAgent,i[j])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(i).find(Ct=>!!this.reTree.test(gt,i[Ct]))}isDesktop(gt=this.userAgent){return(this.device!==R.UNKNOWN||!this.isMobile(gt)&&!this.isTablet(gt))&&f.indexOf(this.device)>-1}static#t=this.\u0275fac=function(zt){return new(zt||ht)(o.LFG(o.Lbi))};static#e=this.\u0275prov=o.Yz7({token:ht,factory:ht.\u0275fac,providedIn:"root"})}return ht})()},6283:(Je,Rt,c)=>{"use strict";c.d(Rt,{Ry:()=>Ae,Rq:()=>In});var o=c(5879),e=c(2096),g=c(2438),x=c(9769),l=c(7398),i=c(9397),R=c(2181),f=c(6321),t=c(9360),y=c(8251),O=c(4829),U=c(4825);function Ht(Ve,jt,ft,Gt){const Ce=window&&!!window.document&&window.document.documentElement;let ve=Ce&&jt?window:ft;if(Ve&&(ve=Ve&&Ce&&"string"==typeof Ve?function A(Ve,jt,ft){return(ft?window.document:jt).querySelector(Ve)}(Ve,ft.nativeElement,Gt):Ve,!ve))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return ve}function xt(Ve){return Ve&&!Ve.firstChange}const ct={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},_={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class j{constructor(jt=!0){this.vertical=jt,this.propsMap=jt?ct:_}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function gt(Ve){return["Window","global"].some(ft=>Object.prototype.toString.call(Ve).includes(ft))}function zt(Ve,jt){return Ve?jt.document.documentElement:null}function Ct(Ve,jt){const ft=function F({container:Ve,isWindow:jt,axis:ft}){const{offsetHeightKey:Gt,clientHeightKey:Ce}=z(ft);return rt(Ve,jt,Gt,Ce)}(jt);return jt.isWindow?function H(Ve,jt,ft){const{axis:Gt,container:Ce,isWindow:ve}=ft,{offsetHeightKey:me,clientHeightKey:De}=z(Gt),tn=Ve+Pt(zt(ve,Ce),Gt,ve),gn=rt(jt.nativeElement,ve,me,De),Xe=function V(Ve,jt,ft){const Gt=jt.topKey();if(Ve.getBoundingClientRect)return Ve.getBoundingClientRect()[Gt]+Pt(Ve,jt,ft)}(jt.nativeElement,Gt,ve)+gn;return{height:Ve,scrolled:tn,totalToScroll:Xe,isWindow:ve}}(ft,Ve,jt):function J(Ve,jt,ft){const{axis:Gt,container:Ce}=ft;return{height:Ve,scrolled:Ce[Gt.scrollTopKey()],totalToScroll:Ce[Gt.scrollHeightKey()],isWindow:!1}}(ft,0,jt)}function z(Ve){return{offsetHeightKey:Ve.offsetHeightKey(),clientHeightKey:Ve.clientHeightKey()}}function rt(Ve,jt,ft,Gt){if(isNaN(Ve[ft])){const Ce=zt(jt,Ve);return Ce?Ce[Gt]:0}return Ve[ft]}function Pt(Ve,jt,ft){const Gt=jt.pageYOffsetKey(),Ce=jt.scrollTopKey(),ve=jt.offsetTopKey();return isNaN(window.pageYOffset)?zt(ft,Ve)[Ce]:Ve.ownerDocument?Ve.ownerDocument.defaultView[Gt]:Ve[ve]}function $t(Ve,jt={down:0,up:0},ft){let Gt,Ce;if(Ve.totalToScroll<=0)return!1;const ve=Ve.isWindow?Ve.scrolled:Ve.height+Ve.scrolled;return ft?(Gt=(Ve.totalToScroll-ve)/Ve.totalToScroll,Ce=(jt?.down?jt.down:0)/10):(Gt=Ve.scrolled/(Ve.scrolled+(Ve.totalToScroll-ve)),Ce=(jt?.up?jt.up:0)/10),Gt<=Ce}class yt{constructor({totalToScroll:jt}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=jt}updateScrollPosition(jt){return this.lastScrollPosition=jt}updateTotalToScroll(jt){this.lastTotalToScroll!==jt&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=jt)}updateScroll(jt,ft){this.updateScrollPosition(jt),this.updateTotalToScroll(ft)}updateTriggeredFlag(jt,ft){ft?this.triggered.down=jt:this.triggered.up=jt}isTriggeredScroll(jt,ft){return ft?this.triggered.down===jt:this.triggered.up===jt}}function ee(Ve){const{scrollContainer:jt,scrollWindow:ft,element:Gt,fromRoot:Ce}=Ve,ve=function ht({windowElement:Ve,axis:jt}){return function vt(Ve,jt){const ft=Ve.isWindow||jt&&!jt.nativeElement?jt:jt.nativeElement;return{...Ve,container:ft}}({axis:jt,isWindow:gt(Ve)},Ve)}({axis:new j(!Ve.horizontal),windowElement:Ht(jt,ft,Gt,Ce)}),me=new yt({totalToScroll:Ct(Gt,ve)}),tn={up:Ve.upDistance,down:Ve.downDistance};return function B(Ve){let jt=(0,g.R)(Ve.container,"scroll");return Ve.throttle&&(jt=jt.pipe(function lt(Ve,jt=f.z,ft){const Gt=(0,U.H)(Ve,jt);return function G(Ve,jt){return(0,t.e)((ft,Gt)=>{const{leading:Ce=!0,trailing:ve=!1}=jt??{};let me=!1,De=null,tn=null,gn=!1;const Xe=()=>{tn?.unsubscribe(),tn=null,ve&&(ue(),gn&&Gt.complete())},rn=()=>{tn=null,gn&&Gt.complete()},re=Ft=>tn=(0,O.Xf)(Ve(Ft)).subscribe((0,y.x)(Gt,Xe,rn)),ue=()=>{if(me){me=!1;const Ft=De;De=null,Gt.next(Ft),!gn&&re(Ft)}};ft.subscribe((0,y.x)(Gt,Ft=>{me=!0,De=Ft,(!tn||tn.closed)&&(Ce?ue():re(Ft))},()=>{gn=!0,(!(ve&&me&&tn)||tn.closed)&&Gt.complete()}))})}(()=>Gt,ft)}(Ve.throttle,void 0,{leading:!0,trailing:!0}))),jt}({container:ve.container,throttle:Ve.throttle}).pipe((0,x.z)(()=>(0,e.of)(Ct(Gt,ve))),(0,l.U)(gn=>function At(Ve,jt,ft){const{scrollDown:Gt,fire:Ce}=function Jt(Ve,jt,ft){const Gt=function Lt(Ve,jt){return Ve<jt.scrolled}(Ve,jt);return{fire:$t(jt,ft,Gt),scrollDown:Gt}}(Ve,jt,ft);return{scrollDown:Gt,fire:Ce,stats:jt}}(me.lastScrollPosition,gn,tn)),(0,i.b)(({stats:gn})=>me.updateScroll(gn.scrolled,gn.totalToScroll)),(0,R.h)(({fire:gn,scrollDown:Xe,stats:{totalToScroll:rn}})=>function q(Ve,jt,ft){return!!(Ve&&jt||!ft&&jt)}(Ve.alwaysCallback,gn,me.isTriggeredScroll(rn,Xe))),(0,i.b)(({scrollDown:gn,stats:{totalToScroll:Xe}})=>{me.updateTriggeredFlag(Xe,gn)}),(0,l.U)(ie))}const st={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function ie(Ve){const{scrollDown:jt,stats:{scrolled:ft}}=Ve;return{type:jt?st.DOWN:st.UP,payload:{currentScrollPosition:ft}}}let Ae=(()=>{class Ve{constructor(ft,Gt){this.element=ft,this.zone=Gt,this.scrolled=new o.vpe,this.scrolledUp=new o.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:ft,infiniteScrollDisabled:Gt,infiniteScrollDistance:Ce}){const ve=xt(ft),me=xt(Gt),De=xt(Ce),tn=!me&&!this.infiniteScrollDisabled||me&&!Gt.currentValue||De;(ve||me||De)&&(this.destroyScroller(),tn&&this.setup())}setup(){(function tt(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=ee({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(ft=>this.handleOnScroll(ft))})}handleOnScroll({type:ft,payload:Gt}){const Ce=ft===st.DOWN?this.scrolled:this.scrolledUp;(function en(Ve){return Ve.observed??Ve.observers.length>0})(Ce)&&this.zone.run(()=>Ce.emit(Gt))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static#t=this.\u0275fac=function(Gt){return new(Gt||Ve)(o.Y36(o.SBq),o.Y36(o.R0b))};static#e=this.\u0275dir=o.lG2({type:Ve,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[o.TTD]})}return Ve})(),In=(()=>{class Ve{static#t=this.\u0275fac=function(Gt){return new(Gt||Ve)};static#e=this.\u0275mod=o.oAB({type:Ve});static#n=this.\u0275inj=o.cJS({})}return Ve})()},4953:(Je,Rt,c)=>{"use strict";c.d(Rt,{KC:()=>Se,kb:()=>Ke});var o=c(5879),e=c(6814),g=c(2495),x=c(9397),l=c(5592),i=c(2438),R=c(7398),f=c(3019),t=c(9773),y=c(4664),O=c(6232),G=c(2096),U=c(8645),lt=c(3997),ut=c(927),Ht=c(9769),A=c(5619),xt=c(3620),tt=c(7394),ct=c(9360),_=c(8251),q=c(2181),ht=c(9028),vt=c(9388),gt=c(2831),zt=c(8180),Ct=c(564),z=c(4716);const Jt="function"==typeof Float32Array;function Tt(Oe,Qe){return 1-3*Qe+3*Oe}function $(Oe,Qe){return 3*Qe-6*Oe}function pt(Oe){return 3*Oe}function Dt(Oe,Qe,et){return((Tt(Qe,et)*Oe+$(Qe,et))*Oe+pt(Qe))*Oe}function St(Oe,Qe,et){return 3*Tt(Qe,et)*Oe*Oe+2*$(Qe,et)*Oe+pt(Qe)}function ee(Oe){return Oe}function B(Oe,Qe,et,nt){if(!(0<=Oe&&Oe<=1&&0<=et&&et<=1))throw new Error("bezier x values must be in [0, 1] range");if(Oe===Qe&&et===nt)return ee;let it=Jt?new Float32Array(11):new Array(11);for(let Fe=0;Fe<11;++Fe)it[Fe]=Dt(.1*Fe,Oe,et);return function(Cn){return 0===Cn?0:1===Cn?1:Dt(function Ot(Fe){let Cn=0,de=1;for(;10!==de&&it[de]<=Fe;++de)Cn+=.1;--de;let _e=Cn+(Fe-it[de])/(it[de+1]-it[de])*.1,ze=St(_e,Oe,et);return ze>=.001?function yt(Oe,Qe,et,nt){for(let it=0;it<4;++it){let Ot=St(Qe,et,nt);if(0===Ot)return Qe;Qe-=(Dt(Qe,et,nt)-Oe)/Ot}return Qe}(Fe,_e,Oe,et):0===ze?_e:function mt(Oe,Qe,et,nt,it){let Ot,Fe,Cn=0;do{Fe=Qe+(et-Qe)/2,Ot=Dt(Fe,nt,it)-Oe,Ot>0?et=Fe:Qe=Fe}while(Math.abs(Ot)>1e-7&&++Cn<10);return Fe}(Fe,Cn,Cn+.1,Oe,et)}(Cn),Qe,nt)}}const At=new o.OlP("SMOOTH_SCROLL_OPTIONS");let st=(()=>{class Oe{get _w(){return this._document.defaultView}get _now(){return this._w.performance&&this._w.performance.now?this._w.performance.now.bind(this._w.performance):Date.now}constructor(et,nt,it){this._document=et,this._platform=nt,this._onGoingScrolls=new Map,this._defaultOptions={duration:468,easing:{x1:.42,y1:0,x2:.58,y2:1},...it}}_scrollElement(et,nt,it){et.scrollLeft=nt,et.scrollTop=it}_getElement(et,nt){return"string"==typeof et?(nt||this._document).querySelector(et):(0,g.fI)(et)}_initSmoothScroll(et){return this._onGoingScrolls.has(et)&&this._onGoingScrolls.get(et).next(),this._onGoingScrolls.set(et,new U.x).get(et)}_isFinished(et,nt,it){return et.currentX!==et.x||et.currentY!==et.y||(nt.next(),it(),!1)}_interrupted(et,nt){return(0,f.T)((0,i.R)(et,"wheel",{passive:!0,capture:!0}),(0,i.R)(et,"touchmove",{passive:!0,capture:!0}),nt).pipe((0,zt.q)(1))}_destroy(et,nt){nt.complete(),this._onGoingScrolls.delete(et)}_step(et){return new l.y(nt=>{let it=(this._now()-et.startTime)/et.duration;it=it>1?1:it;const Ot=et.easing(it);et.currentX=et.startX+(et.x-et.startX)*Ot,et.currentY=et.startY+(et.y-et.startY)*Ot,this._scrollElement(et.scrollable,et.currentX,et.currentY),ut.Z.schedule(()=>nt.next(et))})}_applyScrollToOptions(et,nt){if(!nt.duration)return this._scrollElement(et,nt.left,nt.top),Promise.resolve();const it=this._initSmoothScroll(et),Ot={scrollable:et,startTime:this._now(),startX:et.scrollLeft,startY:et.scrollTop,x:null==nt.left?et.scrollLeft:~~nt.left,y:null==nt.top?et.scrollTop:~~nt.top,duration:nt.duration,easing:B(nt.easing.x1,nt.easing.y1,nt.easing.x2,nt.easing.y2)};return new Promise(Fe=>{(0,G.of)(null).pipe(function H(Oe,Qe=1/0,et){return Qe=(Qe||0)<1?1/0:Qe,(0,ct.e)((nt,it)=>(0,Ct.p)(nt,it,Oe,Qe,void 0,!0,et))}(()=>this._step(Ot).pipe(function J(Oe,Qe=!1){return(0,ct.e)((et,nt)=>{let it=0;et.subscribe((0,_.x)(nt,Ot=>{const Fe=Oe(Ot,it++);(Fe||Qe)&&nt.next(Ot),!Fe&&nt.complete()}))})}(Cn=>this._isFinished(Cn,it,Fe)))),(0,t.R)(this._interrupted(et,it)),(0,z.x)(()=>this._destroy(et,it))).subscribe()})}scrollTo(et,nt){if((0,e.NF)(this._platform)){const it=this._getElement(et),Ot="rtl"===getComputedStyle(it).direction,Fe=(0,gt._i)(),Cn={...this._defaultOptions,...nt,left:null==nt.left?Ot?nt.end:nt.start:nt.left,right:null==nt.right?Ot?nt.start:nt.end:nt.right};return null!=Cn.bottom&&(Cn.top=it.scrollHeight-it.clientHeight-Cn.bottom),Ot&&0!==Fe?(null!=Cn.left&&(Cn.right=it.scrollWidth-it.clientWidth-Cn.left),2===Fe?Cn.left=Cn.right:1===Fe&&(Cn.left=Cn.right?-Cn.right:Cn.right)):null!=Cn.right&&(Cn.left=it.scrollWidth-it.clientWidth-Cn.right),this._applyScrollToOptions(it,Cn)}return Promise.resolve()}scrollToElement(et,nt,it={}){const Ot=this._getElement(et),Fe=this._getElement(nt,Ot),Cn={...it,left:Fe.offsetLeft+(it.left||0),top:Fe.offsetTop+(it.top||0)};return Fe?this.scrollTo(Ot,Cn):Promise.resolve()}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.LFG(e.K0),o.LFG(o.Lbi),o.LFG(At,8))};static#e=this.\u0275prov=o.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"})}return Oe})();const Ae=["scrollbarY"],en=["scrollbarX"];function In(Oe,Qe){if(1&Oe&&o._UZ(0,"scrollbar-x",null,4),2&Oe){const et=o.oxw(2);o.uIk("scrollable",et.state.isHorizontallyScrollable)("fit",et.state.verticalUsed)}}function Ve(Oe,Qe){if(1&Oe&&o._UZ(0,"scrollbar-y",null,5),2&Oe){const et=o.oxw(2);o.uIk("scrollable",et.state.isVerticallyScrollable)("fit",et.state.horizontalUsed)}}function jt(Oe,Qe){if(1&Oe&&(o.ynx(0),o.YNc(1,In,2,2,"scrollbar-x",3),o.YNc(2,Ve,2,2,"scrollbar-y",3),o.BQk()),2&Oe){const et=o.oxw();o.xp6(1),o.Q6J("ngIf",et.state.horizontalUsed),o.xp6(1),o.Q6J("ngIf",et.state.verticalUsed)}}const ft=["*"];let Gt=(()=>{class Oe{constructor(et){this.el=et}set ngAttr(et){for(const[nt,it]of Object.entries(et))this.el.nativeElement.setAttribute(nt,it)}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","ngAttr",""]],inputs:{ngAttr:"ngAttr"},standalone:!0})}return Oe})();function Ce(Oe){return(0,x.b)(()=>{Oe.onselectstart=()=>!1})}function ve(Oe){return(0,x.b)(()=>{Oe.onselectstart=null})}function me(){return(0,x.b)(Oe=>Oe.stopPropagation())}function De(Oe,Qe){return Oe.clientX>=Qe.left&&Oe.clientX<=Qe.left+Qe.width&&Oe.clientY>=Qe.top&&Oe.clientY<=Qe.top+Qe.height}let tn=(()=>{class Oe{get clientHeight(){return this.nativeElement.clientHeight}get clientWidth(){return this.nativeElement.clientWidth}get scrollHeight(){return this.nativeElement.scrollHeight}get scrollWidth(){return this.nativeElement.scrollWidth}get scrollTop(){return this.nativeElement.scrollTop}get scrollLeft(){return this.nativeElement.scrollLeft}get scrollMaxX(){return this.scrollWidth-this.clientWidth}get scrollMaxY(){return this.scrollHeight-this.clientHeight}get contentHeight(){return this.contentWrapperElement?.clientHeight||0}get contentWidth(){return this.contentWrapperElement?.clientWidth||0}constructor(et){this.viewPort=et,this.nativeElement=et.nativeElement}activatePointerEvents(et,nt){this.hovered=new l.y(it=>{const Ot=(0,i.R)(this.nativeElement,"mousemove",{passive:!0}),Fe=et?Ot:Ot.pipe(me()),Cn=(0,i.R)(this.nativeElement,"mouseleave",{passive:!0}).pipe((0,R.U)(()=>!1));(0,f.T)(Fe,Cn).pipe((0,x.b)(de=>it.next(de)),(0,t.R)(nt)).subscribe()}),this.clicked=new l.y(it=>{const Ot=(0,i.R)(this.nativeElement,"mousedown",{passive:!0}).pipe((0,x.b)(Cn=>it.next(Cn))),Fe=(0,i.R)(this.nativeElement,"mouseup",{passive:!0}).pipe((0,x.b)(()=>it.next(!1)));Ot.pipe((0,y.w)(()=>Fe),(0,t.R)(nt)).subscribe()})}setAsWrapper(){this.nativeElement.className="ng-native-scrollbar-hider ng-scroll-layer",this.nativeElement.firstElementChild&&(this.nativeElement.firstElementChild.className="ng-scroll-layer")}setAsViewport(et){this.nativeElement.className+=` ng-native-scrollbar-hider ng-scroll-viewport ${et}`,this.nativeElement.firstElementChild&&(this.contentWrapperElement=this.nativeElement.firstElementChild,this.contentWrapperElement.classList.add("ng-scroll-content"))}scrollYTo(et){this.nativeElement.scrollTop=et}scrollXTo(et){this.nativeElement.scrollLeft=et}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.SBq))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","scrollViewport",""]],standalone:!0})}return Oe})(),gn=(()=>{class Oe{static#t=this.\u0275fac=function(nt){return new(nt||Oe)};static#e=this.\u0275dir=o.lG2({type:Oe})}return Oe})(),Xe=(()=>{class Oe{get clicked(){const et=(0,i.R)(this.trackElement,"mousedown",{passive:!0}).pipe(me(),Ce(this.document)),nt=(0,i.R)(this.document,"mouseup",{passive:!0}).pipe(me(),ve(this.document),(0,y.w)(()=>O.E));return(0,f.T)(et,nt)}get clientRect(){return this.trackElement.getBoundingClientRect()}constructor(et,nt,it){this.cmp=et,this.trackElement=nt,this.document=it}onTrackClicked(et,nt,it){return(0,G.of)(et).pipe((0,R.U)(Ot=>Ot[this.pageProperty]),(0,R.U)(Ot=>(Ot-this.offset-nt/2)/this.size*it),(0,x.b)(Ot=>{this.cmp.scrollTo({...this.mapToScrollToOption(Ot),duration:(0,g.su)(this.cmp.trackClickScrollDuration)})}))}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(gn),o.Y36(HTMLElement),o.Y36(Document))};static#e=this.\u0275dir=o.lG2({type:Oe})}return Oe})(),rn=(()=>{class Oe extends Xe{get pageProperty(){return"pageX"}get offset(){return this.clientRect.left}get size(){return this.trackElement.clientWidth}constructor(et,nt,it){super(et,nt.nativeElement,it),this.cmp=et,this.document=it}mapToScrollToOption(et){return{left:et}}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(gn),o.Y36(o.SBq),o.Y36(e.K0))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","scrollbarTrackX",""]],standalone:!0,features:[o.qOj]})}return Oe})(),re=(()=>{class Oe extends Xe{get pageProperty(){return"pageY"}get offset(){return this.clientRect.top}get size(){return this.trackElement.clientHeight}constructor(et,nt,it){super(et,nt.nativeElement,it),this.cmp=et,this.document=it}mapToScrollToOption(et){return{top:et}}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(gn),o.Y36(o.SBq),o.Y36(e.K0))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","scrollbarTrackY",""]],standalone:!0,features:[o.qOj]})}return Oe})(),ue=(()=>{class Oe{get trackMax(){return this.track.size-this.size}get clientRect(){return this.thumbElement.getBoundingClientRect()}get clicked(){return(0,i.R)(this.thumbElement,"mousedown",{passive:!0}).pipe(me())}constructor(et,nt,it,Ot){this.cmp=et,this.track=nt,this.thumbElement=it,this.document=Ot,this._dragging=new U.x,this.dragging=this._dragging.pipe((0,lt.x)())}update(){const et=function Ft(Oe,Qe,et){return Math.max(~~(Oe/Qe*Oe),et)}(this.track.size,this.viewportScrollSize,this.cmp.minThumbSize),nt=function be(Oe,Qe,et){return Oe*et/Qe}(this.viewportScrollOffset,this.viewportScrollMax,this.trackMax);ut.Z.schedule(()=>this.updateStyles(this.handleDirection(nt,this.trackMax),et))}dragged(et){let nt,it;const Ot=(0,G.of)(et).pipe(Ce(this.document),(0,x.b)(()=>{nt=this.trackMax,it=this.viewportScrollMax,this.setDragging(!0)})),Fe=(0,i.R)(this.document,"mousemove",{capture:!0,passive:!0}).pipe(me()),Cn=(0,i.R)(this.document,"mouseup",{capture:!0}).pipe(me(),ve(this.document),(0,x.b)(()=>this.setDragging(!1)));return Ot.pipe((0,R.U)(de=>de[this.pageProperty]),(0,R.U)(de=>de-this.dragStartOffset),(0,Ht.z)(de=>Fe.pipe((0,R.U)(He=>He[this.clientProperty]),(0,R.U)(He=>He-this.track.offset),(0,R.U)(He=>it*(He-de)/nt),(0,R.U)(He=>this.handleDrag(He,it)),(0,x.b)(He=>this.scrollTo(He)),(0,t.R)(Cn))))}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(gn),o.Y36(Xe),o.Y36(HTMLElement),o.Y36(Document))};static#e=this.\u0275dir=o.lG2({type:Oe,outputs:{dragging:"dragging"}})}return Oe})(),qt=(()=>{class Oe extends ue{get clientProperty(){return"clientX"}get pageProperty(){return"pageX"}get viewportScrollSize(){return this.cmp.viewport.scrollWidth}get viewportScrollOffset(){return this.cmp.viewport.scrollLeft}get viewportScrollMax(){return this.cmp.viewport.scrollMaxX}get dragStartOffset(){return this.clientRect.left+this.document.defaultView.pageXOffset||0}get size(){return this.thumbElement.clientWidth}constructor(et,nt,it,Ot,Fe){super(et,nt,it.nativeElement,Ot),this.cmp=et,this.track=nt,this.element=it,this.document=Ot,this.dir=Fe}updateStyles(et,nt){this.thumbElement.style.width=`${nt}px`,this.thumbElement.style.transform=`translate3d(${et}px, 0, 0)`}handleDrag(et,nt){if("rtl"===this.dir.value){if(1===this.cmp.manager.rtlScrollAxisType)return et-nt;if(2===this.cmp.manager.rtlScrollAxisType)return nt-et}return et}handleDirection(et,nt){if("rtl"===this.dir.value){if(2===this.cmp.manager.rtlScrollAxisType)return-et;if(0===this.cmp.manager.rtlScrollAxisType)return et-nt}return et}setDragging(et){this.cmp.setDragging({horizontalDragging:et})}scrollTo(et){this.cmp.viewport.scrollXTo(et)}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(gn),o.Y36(rn),o.Y36(o.SBq),o.Y36(e.K0),o.Y36(vt.Is))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","scrollbarThumbX",""]],standalone:!0,features:[o.qOj]})}return Oe})(),Te=(()=>{class Oe extends ue{get pageProperty(){return"pageY"}get viewportScrollSize(){return this.cmp.viewport.scrollHeight}get viewportScrollOffset(){return this.cmp.viewport.scrollTop}get viewportScrollMax(){return this.cmp.viewport.scrollMaxY}get clientProperty(){return"clientY"}get dragStartOffset(){return this.clientRect.top+this.document.defaultView.pageYOffset||0}get size(){return this.thumbElement.clientHeight}constructor(et,nt,it,Ot){super(et,nt,it.nativeElement,Ot),this.cmp=et,this.track=nt,this.element=it,this.document=Ot}updateStyles(et,nt){this.thumbElement.style.height=`${nt}px`,this.thumbElement.style.transform=`translate3d(0px, ${et}px, 0)`}handleDrag(et){return et}handleDirection(et){return et}setDragging(et){this.cmp.setDragging({verticalDragging:et})}scrollTo(et){this.cmp.viewport.scrollYTo(et)}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(gn),o.Y36(re),o.Y36(o.SBq),o.Y36(e.K0))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","scrollbarThumbY",""]],standalone:!0,features:[o.qOj]})}return Oe})(),Me=(()=>{class Oe{constructor(et,nt,it,Ot,Fe){this.el=et,this.cmp=nt,this.platform=it,this.document=Ot,this.zone=Fe,this.destroyed=new U.x}activatePointerEvents(){let et,nt,it;return"viewport"===this.cmp.pointerEventsMethod?(this.viewportTrackClicked=new U.x,this.viewportThumbClicked=new U.x,this.cmp.viewport.activatePointerEvents(this.cmp.viewportPropagateMouseMove,this.destroyed),et=this.viewportThumbClicked,nt=this.viewportTrackClicked,it=this.cmp.viewport.hovered.pipe((0,R.U)(Ot=>!!Ot&&De(Ot,this.el.getBoundingClientRect())),(0,lt.x)(),(0,x.b)(Ot=>this.document.onselectstart=Ot?()=>!1:null)),this.cmp.viewport.clicked.pipe((0,x.b)(Ot=>{Ot?De(Ot,this.thumb.clientRect)?this.viewportThumbClicked.next(Ot):De(Ot,this.track.clientRect)&&(this.cmp.setClicked(!0),this.viewportTrackClicked.next(Ot)):this.cmp.setClicked(!1)}),(0,t.R)(this.destroyed)).subscribe()):(et=this.thumb.clicked,nt=this.track.clicked,it=this.hovered),(0,f.T)(it.pipe((0,x.b)(Ot=>this.setHovered(Ot))),et.pipe((0,y.w)(Ot=>this.thumb.dragged(Ot))),nt.pipe((0,y.w)(Ot=>this.track.onTrackClicked(Ot,this.thumb.size,this.viewportScrollSize))))}get hovered(){const et=(0,i.R)(this.el,"mouseenter",{passive:!0}).pipe(me(),(0,R.U)(()=>!0)),nt=(0,i.R)(this.el,"mouseleave",{passive:!0}).pipe(me(),(0,R.U)(()=>!1));return(0,f.T)(et,nt)}ngOnInit(){this.zone.runOutsideAngular(()=>{!(this.platform.IOS||this.platform.ANDROID)&&!this.cmp.pointerEventsDisabled&&this.activatePointerEvents().pipe((0,t.R)(this.destroyed)).subscribe(),(0,f.T)(this.cmp.scrolled,this.cmp.updated).pipe((0,x.b)(()=>this.thumb?.update()),(0,t.R)(this.destroyed)).subscribe()})}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete(),this.viewportThumbClicked&&this.viewportTrackClicked&&(this.viewportTrackClicked.complete(),this.viewportThumbClicked.complete())}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(HTMLElement),o.Y36(gn),o.Y36(gt.t4),o.Y36(Document),o.Y36(o.R0b))};static#e=this.\u0275dir=o.lG2({type:Oe})}return Oe})(),_n=(()=>{class Oe extends Me{get viewportScrollSize(){return this.cmp.viewport.scrollHeight}constructor(et,nt,it,Ot,Fe){super(et.nativeElement,nt,it,Ot,Fe),this.cmp=nt,this.platform=it,this.document=Ot,this.zone=Fe}setHovered(et){this.cmp.setHovered({verticalHovered:et})}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.SBq),o.Y36(gn),o.Y36(gt.t4),o.Y36(e.K0),o.Y36(o.R0b))};static#e=this.\u0275cmp=o.Xpm({type:Oe,selectors:[["scrollbar-y"]],viewQuery:function(nt,it){if(1&nt&&(o.Gf(re,7),o.Gf(Te,7)),2&nt){let Ot;o.iGM(Ot=o.CRH())&&(it.track=Ot.first),o.iGM(Ot=o.CRH())&&(it.thumb=Ot.first)}},hostVars:2,hostBindings:function(nt,it){2&nt&&o.ekj("scrollbar-control",!0)},standalone:!0,features:[o.qOj,o.jDz],decls:2,vars:6,consts:[["scrollbarTrackY",""],["scrollbarThumbY",""]],template:function(nt,it){1&nt&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.qZA()),2&nt&&(o.Gre("ng-scrollbar-track ",it.cmp.trackClass,""),o.xp6(1),o.Gre("ng-scrollbar-thumb ",it.cmp.thumbClass,""))},dependencies:[re,Te],styles:[".ng-scrollbar-wrapper>scrollbar-y.scrollbar-control{width:var(--vertical-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track{width:var(--vertical-scrollbar-size);height:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-y.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{height:0;width:100%}  .ng-scrollbar-wrapper[verticalHovered=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[verticalDragging=true]>scrollbar-y.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-y.scrollbar-control{top:0;bottom:0}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr]>scrollbar-y.scrollbar-control{right:0;left:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=ltr][position=invertAll]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl]>scrollbar-y.scrollbar-control{left:0;right:unset}  .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertY]>scrollbar-y.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][dir=rtl][position=invertAll]>scrollbar-y.scrollbar-control{left:unset;right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all]>scrollbar-y.scrollbar-control[fit=true]{bottom:var(--scrollbar-total-size);top:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertX]>scrollbar-y.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][position=invertAll]>scrollbar-y.scrollbar-control[fit=true]{top:var(--scrollbar-total-size);bottom:0}"],changeDetection:0})}return Oe})(),ce=(()=>{class Oe extends Me{get viewportScrollSize(){return this.cmp.viewport.scrollWidth}constructor(et,nt,it,Ot,Fe){super(et.nativeElement,nt,it,Ot,Fe),this.cmp=nt,this.platform=it,this.document=Ot,this.zone=Fe}setHovered(et){this.cmp.setHovered({horizontalHovered:et})}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.SBq),o.Y36(gn),o.Y36(gt.t4),o.Y36(e.K0),o.Y36(o.R0b))};static#e=this.\u0275cmp=o.Xpm({type:Oe,selectors:[["scrollbar-x"]],viewQuery:function(nt,it){if(1&nt&&(o.Gf(rn,7),o.Gf(qt,7)),2&nt){let Ot;o.iGM(Ot=o.CRH())&&(it.track=Ot.first),o.iGM(Ot=o.CRH())&&(it.thumb=Ot.first)}},hostVars:2,hostBindings:function(nt,it){2&nt&&o.ekj("scrollbar-control",!0)},standalone:!0,features:[o.qOj,o.jDz],decls:2,vars:6,consts:[["scrollbarTrackX",""],["scrollbarThumbX",""]],template:function(nt,it){1&nt&&(o.TgZ(0,"div",0),o._UZ(1,"div",1),o.qZA()),2&nt&&(o.Gre("ng-scrollbar-track ",it.cmp.trackClass,""),o.xp6(1),o.Gre("ng-scrollbar-thumb ",it.cmp.thumbClass,""))},dependencies:[rn,qt],styles:[".ng-scrollbar-wrapper>scrollbar-x.scrollbar-control{height:var(--horizontal-scrollbar-total-size)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track{height:var(--horizontal-scrollbar-size);width:calc(100% - var(--scrollbar-padding) * 2)}  .ng-scrollbar-wrapper>scrollbar-x.scrollbar-control>.ng-scrollbar-track>.ng-scrollbar-thumb{width:0;height:100%}  .ng-scrollbar-wrapper[horizontalHovered=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb,   .ng-scrollbar-wrapper[horizontalDragging=true]>scrollbar-x.scrollbar-control .ng-scrollbar-thumb{background-color:var(--scrollbar-thumb-hover-color)}  .ng-scrollbar-wrapper[position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false]>scrollbar-x.scrollbar-control{left:0;right:0;bottom:0;top:unset}  .ng-scrollbar-wrapper[deactivated=false][position=invertX]>scrollbar-x.scrollbar-control,   .ng-scrollbar-wrapper[deactivated=false][position=invertAll]>scrollbar-x.scrollbar-control{top:0;bottom:unset}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=ltr][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl]>scrollbar-x.scrollbar-control[fit=true]{left:var(--scrollbar-total-size);right:0}  .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertY]>scrollbar-x.scrollbar-control[fit=true],   .ng-scrollbar-wrapper[deactivated=false][track=all][dir=rtl][position=invertAll]>scrollbar-x.scrollbar-control[fit=true]{right:var(--scrollbar-total-size);left:0}"],changeDetection:0})}return Oe})();const ye=new o.OlP("NG_SCROLLBAR_OPTIONS"),Xt={viewClass:"",trackClass:"",thumbClass:"",track:"vertical",appearance:"compact",visibility:"native",position:"native",pointerEventsMethod:"viewport",trackClickScrollDuration:300,minThumbSize:20,windowResizeDebounce:0,sensorDebounce:0,scrollAuditTime:0,viewportPropagateMouseMove:!0,autoHeightDisabled:!0,autoWidthDisabled:!0,sensorDisabled:!1,pointerEventsDisabled:!1};let on=(()=>{class Oe{constructor(et){this.globalOptions=et?{...Xt,...et}:Xt,this.rtlScrollAxisType=(0,gt._i)()}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.LFG(ye,8))};static#e=this.\u0275prov=o.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"})}return Oe})(),oe=(()=>{class Oe{constructor(et,nt,it){this.document=et,this.manager=nt,this.platform=it,this._scrollbarSize=new A.X(this.getNativeScrollbarSize()),this.scrollbarSize=this._scrollbarSize.asObservable(),it.isBrowser&&(0,i.R)(this.document.defaultView,"resize",{passive:!0}).pipe((0,xt.b)(this.manager.globalOptions.windowResizeDebounce),(0,R.U)(()=>this.getNativeScrollbarSize()),(0,lt.x)(),(0,x.b)(Ot=>this._scrollbarSize.next(Ot))).subscribe()}getNativeScrollbarSize(){if(!this.platform.isBrowser)return 0;if(this.platform.IOS)return 6;const et=this.document.createElement("div");et.className="ng-scrollbar-measure",et.style.left="0px",et.style.overflow="scroll",et.style.position="fixed",et.style.top="-9999px",this.document.body.appendChild(et);const nt=et.getBoundingClientRect().right;return this.document.body.removeChild(et),nt}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.LFG(e.K0),o.LFG(on),o.LFG(gt.t4))};static#e=this.\u0275prov=o.Yz7({token:Oe,factory:Oe.\u0275fac,providedIn:"root"})}return Oe})(),$e=(()=>{class Oe{constructor(et,nt,it){this.renderer=nt,this.hideNativeScrollbar=it,this._subscriber=tt.w0.EMPTY,this._subscriber=it.scrollbarSize.subscribe(Ot=>{this.renderer.setStyle(et.nativeElement,"--native-scrollbar-size",`-${Ot}px`,o.JOm.DashCase)})}ngOnDestroy(){this._subscriber.unsubscribe()}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.SBq),o.Y36(o.Qsj),o.Y36(oe))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","hideNativeScrollbar",""]],standalone:!0})}return Oe})(),te=(()=>{class Oe{get debounce(){return this._debounce}set debounce(et){this._debounce=(0,g.su)(et),this._subscribe()}get disabled(){return this._disabled}set disabled(et){this._disabled=(0,g.Ig)(et),this._disabled?this._unsubscribe():this._subscribe()}constructor(et,nt,it){if(this.zone=et,this.platform=nt,this.scrollbar=it,this._disabled=!1,this._currentSubscription=null,this.event=new o.vpe,!it)throw new Error("[NgScrollbar Resize Sensor Directive]: Host element must be an NgScrollbar component.")}ngAfterContentInit(){!this._currentSubscription&&!this._disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){if(this._unsubscribe(),this.platform.isBrowser){const et=new l.y(nt=>{this._resizeObserver=new ResizeObserver(it=>nt.next(it)),this._resizeObserver.observe(this.scrollbar.viewport.nativeElement),this.scrollbar.viewport.contentWrapperElement&&this._resizeObserver.observe(this.scrollbar.viewport.contentWrapperElement)});this.zone.runOutsideAngular(()=>{this._currentSubscription=(this._debounce?et.pipe((0,xt.b)(this._debounce)):et).subscribe(this.event)})}}_unsubscribe(){this._resizeObserver?.disconnect(),this._currentSubscription?.unsubscribe()}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.R0b),o.Y36(gt.t4),o.Y36(gn))};static#e=this.\u0275dir=o.lG2({type:Oe,selectors:[["","resizeSensor",""]],inputs:{debounce:["sensorDebounce","debounce"],disabled:["sensorDisabled","disabled"]},outputs:{event:"resizeSensor"},standalone:!0})}return Oe})(),Se=(()=>{class Oe{get disabled(){return this._disabled}set disabled(et){this._disabled=(0,g.Ig)(et)}get sensorDisabled(){return this._sensorDisabled}set sensorDisabled(et){this._sensorDisabled=(0,g.Ig)(et)}get pointerEventsDisabled(){return this._pointerEventsDisabled}set pointerEventsDisabled(et){this._pointerEventsDisabled=(0,g.Ig)(et)}get viewportPropagateMouseMove(){return this._viewportPropagateMouseMove}set viewportPropagateMouseMove(et){this._viewportPropagateMouseMove=(0,g.Ig)(et)}get autoHeightDisabled(){return this._autoHeightDisabled}set autoHeightDisabled(et){this._autoHeightDisabled=(0,g.Ig)(et)}get autoWidthDisabled(){return this._autoWidthDisabled}set autoWidthDisabled(et){this._autoWidthDisabled=(0,g.Ig)(et)}get nativeElement(){return this.el.nativeElement}constructor(et,nt,it,Ot,Fe,Cn){this.el=et,this.zone=nt,this.changeDetectorRef=it,this.dir=Ot,this.smoothScroll=Fe,this.manager=Cn,this._disabled=!1,this._sensorDisabled=this.manager.globalOptions.sensorDisabled,this._pointerEventsDisabled=this.manager.globalOptions.pointerEventsDisabled,this._autoHeightDisabled=this.manager.globalOptions.autoHeightDisabled,this._autoWidthDisabled=this.manager.globalOptions.autoWidthDisabled,this._viewportPropagateMouseMove=this.manager.globalOptions.viewportPropagateMouseMove,this.viewClass=this.manager.globalOptions.viewClass,this.trackClass=this.manager.globalOptions.trackClass,this.thumbClass=this.manager.globalOptions.thumbClass,this.minThumbSize=this.manager.globalOptions.minThumbSize,this.trackClickScrollDuration=this.manager.globalOptions.trackClickScrollDuration,this.pointerEventsMethod=this.manager.globalOptions.pointerEventsMethod,this.track=this.manager.globalOptions.track,this.visibility=this.manager.globalOptions.visibility,this.appearance=this.manager.globalOptions.appearance,this.position=this.manager.globalOptions.position,this.sensorDebounce=this.manager.globalOptions.sensorDebounce,this.scrollAuditTime=this.manager.globalOptions.scrollAuditTime,this.updated=new o.vpe,this.state={},this.destroyed=new U.x}updateState(){let et=!1,nt=!1,it=!1,Ot=!1;("all"===this.track||"vertical"===this.track)&&(it=this.viewport.scrollHeight>this.viewport.clientHeight,et="always"===this.visibility||it),("all"===this.track||"horizontal"===this.track)&&(Ot=this.viewport.scrollWidth>this.viewport.clientWidth,nt="always"===this.visibility||Ot),this.setState({position:this.position,track:this.track,appearance:this.appearance,visibility:this.visibility,deactivated:this.disabled,dir:this.dir.value,pointerEventsMethod:this.pointerEventsMethod,verticalUsed:et,horizontalUsed:nt,isVerticallyScrollable:it,isHorizontallyScrollable:Ot})}setState(et){this.state={...this.state,...et},this.changeDetectorRef.detectChanges()}getScrolledByDirection(et){let nt;return this.scrolled.pipe((0,x.b)(it=>nt=it),(0,R.U)(it=>it.target[et]),function j(){return(0,ct.e)((Oe,Qe)=>{let et,nt=!1;Oe.subscribe((0,_.x)(Qe,it=>{const Ot=et;et=it,nt&&Qe.next([Ot,it]),nt=!0}))})}(),(0,q.h)(([it,Ot])=>it!==Ot),(0,R.U)(()=>nt))}setHovered(et){this.zone.run(()=>this.setState({...et}))}setDragging(et){this.zone.run(()=>this.setState({...et}))}setClicked(et){this.zone.run(()=>this.setState({scrollbarClicked:et}))}ngOnInit(){this.zone.runOutsideAngular(()=>{this.customViewPort?(this.viewport=this.customViewPort,this.defaultViewPort.setAsWrapper()):this.viewport=this.defaultViewPort,this.viewport.setAsViewport(this.viewClass);let et=(0,i.R)(this.viewport.nativeElement,"scroll",{passive:!0});et=this.scrollAuditTime?et.pipe((0,ht.e)(this.scrollAuditTime)):et,this.scrolled=et.pipe((0,t.R)(this.destroyed)),this.verticalScrolled=this.getScrolledByDirection("scrollTop"),this.horizontalScrolled=this.getScrolledByDirection("scrollLeft")})}ngOnChanges(et){this.viewport&&this.update()}ngAfterViewInit(){this.update(),this.dir.change.pipe((0,x.b)(()=>this.update()),(0,t.R)(this.destroyed)).subscribe()}ngOnDestroy(){this.destroyed.next(),this.destroyed.complete()}update(){this.autoHeightDisabled||this.updateHeight(),this.autoWidthDisabled||this.updateWidth(),this.updateState(),this.updated.next()}scrollTo(et){return this.smoothScroll.scrollTo(this.viewport.nativeElement,et)}scrollToElement(et,nt){return this.smoothScroll.scrollToElement(this.viewport.nativeElement,et,nt)}updateHeight(){this.nativeElement.style.height="standard"===this.appearance&&this.scrollbarX?`${this.viewport.contentHeight+this.scrollbarX.nativeElement.clientHeight}px`:`${this.viewport.contentHeight}px`}updateWidth(){this.nativeElement.style.width="standard"===this.appearance&&this.scrollbarY?`${this.viewport.contentWidth+this.scrollbarY.nativeElement.clientWidth}px`:`${this.viewport.contentWidth}px`}static#t=this.\u0275fac=function(nt){return new(nt||Oe)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(o.sBO),o.Y36(vt.Is),o.Y36(st),o.Y36(on))};static#e=this.\u0275cmp=o.Xpm({type:Oe,selectors:[["ng-scrollbar"]],contentQueries:function(nt,it,Ot){if(1&nt&&o.Suo(Ot,tn,7),2&nt){let Fe;o.iGM(Fe=o.CRH())&&(it.customViewPort=Fe.first)}},viewQuery:function(nt,it){if(1&nt&&(o.Gf(Ae,5,o.SBq),o.Gf(en,5,o.SBq),o.Gf(tn,7)),2&nt){let Ot;o.iGM(Ot=o.CRH())&&(it.scrollbarY=Ot.first),o.iGM(Ot=o.CRH())&&(it.scrollbarX=Ot.first),o.iGM(Ot=o.CRH())&&(it.defaultViewPort=Ot.first)}},hostVars:2,hostBindings:function(nt,it){2&nt&&o.ekj("ng-scrollbar",!0)},inputs:{disabled:"disabled",sensorDisabled:"sensorDisabled",pointerEventsDisabled:"pointerEventsDisabled",viewportPropagateMouseMove:"viewportPropagateMouseMove",autoHeightDisabled:"autoHeightDisabled",autoWidthDisabled:"autoWidthDisabled",viewClass:"viewClass",trackClass:"trackClass",thumbClass:"thumbClass",minThumbSize:"minThumbSize",trackClickScrollDuration:"trackClickScrollDuration",pointerEventsMethod:"pointerEventsMethod",track:"track",visibility:"visibility",appearance:"appearance",position:"position",sensorDebounce:"sensorDebounce",scrollAuditTime:"scrollAuditTime"},outputs:{updated:"updated"},exportAs:["ngScrollbar"],standalone:!0,features:[o._Bn([{provide:gn,useExisting:Oe}]),o.TTD,o.jDz],ngContentSelectors:ft,decls:6,vars:4,consts:[[1,"ng-scrollbar-wrapper",3,"ngAttr"],[1,"ng-scroll-viewport-wrapper",3,"sensorDebounce","sensorDisabled","resizeSensor"],["scrollViewport","","hideNativeScrollbar",""],[4,"ngIf"],["scrollbarX",""],["scrollbarY",""]],template:function(nt,it){1&nt&&(o.F$t(),o.TgZ(0,"div",0)(1,"div",1),o.NdJ("resizeSensor",function(){return it.update()}),o.TgZ(2,"div",2)(3,"div"),o.Hsn(4),o.qZA()()(),o.YNc(5,jt,3,2,"ng-container",3),o.qZA()),2&nt&&(o.Q6J("ngAttr",it.state),o.xp6(1),o.Q6J("sensorDebounce",it.sensorDebounce)("sensorDisabled",it.sensorDisabled),o.xp6(4),o.Q6J("ngIf",!it.disabled))},dependencies:[e.O5,Gt,te,tn,$e,ce,_n],styles:[".ng-scrollbar-measure{scrollbar-width:none;-ms-overflow-style:none}  .ng-scrollbar-measure::-webkit-scrollbar{display:none}[_nghost-%COMP%]{--scrollbar-border-radius: 7px;--scrollbar-padding: 4px;--scrollbar-track-color: transparent;--scrollbar-thumb-color: rgba(0, 0, 0, .2);--scrollbar-thumb-hover-color: var(--scrollbar-thumb-color);--scrollbar-size: 5px;--scrollbar-hover-size: var(--scrollbar-size);--scrollbar-overscroll-behavior: initial;--scrollbar-transition-duration: .4s;--scrollbar-transition-delay: .8s;--scrollbar-thumb-transition: height ease-out .15s, width ease-out .15s;--scrollbar-track-transition: height ease-out .15s, width ease-out .15s;display:block;position:relative;height:100%;max-height:100%;max-width:100%;box-sizing:content-box!important}[_nghost-%COMP%] > .ng-scrollbar-wrapper[_ngcontent-%COMP%]{--scrollbar-total-size: calc(var(--scrollbar-size) + var(--scrollbar-padding) * 2);--vertical-scrollbar-size: var(--scrollbar-size);--horizontal-scrollbar-size: var(--scrollbar-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalDragging=true][_ngcontent-%COMP%]{--vertical-scrollbar-size: var(--scrollbar-hover-size);--vertical-scrollbar-total-size: calc(var(--vertical-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalHovered=true][_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalDragging=true][_ngcontent-%COMP%]{--horizontal-scrollbar-size: var(--scrollbar-hover-size);--horizontal-scrollbar-total-size: calc(var(--horizontal-scrollbar-size) + var(--scrollbar-padding) * 2);cursor:default}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:var(--scrollbar-total-size);right:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=ltr][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-left:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{left:0;right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertY][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][verticalUsed=true][position=invertAll][dir=rtl][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-right:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:0;bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-bottom:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=scrollbar][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{top:var(--scrollbar-total-size);bottom:0}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertX][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%] > .ng-scroll-content[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][appearance=standard][horizontalUsed=true][position=invertAll][pointerEventsMethod=viewport][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport>.ng-scroll-content{padding-top:var(--scrollbar-total-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{scrollbar-width:none;-ms-overflow-style:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%]::-webkit-scrollbar, [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport::-webkit-scrollbar{display:none}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{bottom:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{left:0;right:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-native-scrollbar-hider[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][verticalUsed=true][dir=rtl][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-native-scrollbar-hider{right:0;left:var(--native-scrollbar-size)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%] > .scrollbar-control[_ngcontent-%COMP%]{opacity:0;transition-property:opacity;transition-duration:var(--scrollbar-transition-duration);transition-delay:var(--scrollbar-transition-delay)}[_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:hover > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:active > .scrollbar-control[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[deactivated=false][visibility=hover][_ngcontent-%COMP%]:focus > .scrollbar-control[_ngcontent-%COMP%]{opacity:1;transition-duration:var(--scrollbar-transition-duration);transition-delay:0ms}[_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-x:auto;overflow-y:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow-y:auto;overflow-x:hidden}[_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > .ng-scroll-viewport[_ngcontent-%COMP%], [_nghost-%COMP%] > .ng-scrollbar-wrapper[verticalUsed=true][horizontalUsed=true][_ngcontent-%COMP%] > .ng-scroll-viewport-wrapper[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] > *[_ngcontent-%COMP%] >   .ng-scroll-viewport{overflow:auto}.ng-scroll-viewport-wrapper[_ngcontent-%COMP%]{overflow:hidden}.ng-scroll-viewport[_ngcontent-%COMP%]{-webkit-overflow-scrolling:touch;contain:strict;will-change:scroll-position;overscroll-behavior:var(--scrollbar-overscroll-behavior)}  .ng-scroll-content{display:inline-block;min-width:100%}.ng-scrollbar-wrapper[_ngcontent-%COMP%], .ng-scroll-viewport-wrapper[_ngcontent-%COMP%], .ng-scroll-layer[_ngcontent-%COMP%],   .ng-scroll-viewport{position:absolute;inset:0}",".ng-scrollbar-wrapper[pointerEventsMethod=viewport]>.scrollbar-control{pointer-events:none}  .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[horizontalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[verticalDragging=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>.ng-scroll-viewport,   .ng-scrollbar-wrapper[scrollbarClicked=true]>.ng-scroll-viewport-wrapper>*>*>  .ng-scroll-viewport{-webkit-user-select:none;-moz-user-select:none;user-select:none}  .ng-scrollbar-wrapper>.scrollbar-control{position:absolute;display:flex;justify-content:center;align-items:center;transition:var(--scrollbar-track-transition)}  .ng-scrollbar-wrapper>.scrollbar-control[scrollable=false] .ng-scrollbar-thumb{display:none}  .ng-scrollbar-track{height:100%;width:100%;z-index:1;border-radius:var(--scrollbar-border-radius);background-color:var(--scrollbar-track-color);overflow:hidden;transition:var(--scrollbar-track-transition);cursor:default}  .ng-scrollbar-thumb{box-sizing:border-box;position:relative;border-radius:inherit;background-color:var(--scrollbar-thumb-color);transform:translateZ(0);transition:var(--scrollbar-thumb-transition)}"],changeDetection:0})}return Oe})(),Ke=(()=>{class Oe{static#t=this.\u0275fac=function(nt){return new(nt||Oe)};static#e=this.\u0275mod=o.oAB({type:Oe});static#n=this.\u0275inj=o.cJS({})}return Oe})()}},Je=>{Je(Je.s=357)}]);