PageSourceSearch

https://www.basketballemotion.com/dist/cart-component/browser/main-FD3RALS6.js

js basketballemotion.com collected 2026-10-02 18:40:42 UTC 348,972 bytes, 11 lines download raw bytes

1var Ug=Object.defineProperty,Hg=Object.defineProperties;var $g=Object.getOwnPropertyDescriptors;var Uu=Object.getOwnPropertySymbols;var zg=Object.prototype.hasOwnProperty,Gg=Object.prototype.propertyIsEnumerable;var Hu=(e,t,n)=>t in e?Ug(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||={})zg.call(t,n)&&Hu(e,n,t[n]);if(Uu)for(var n of Uu(t))Gg.call(t,n)&&Hu(e,n,t[n]);return e},J=(e,t)=>Hg(e,$g(t));function ba(e,t){return Object.is(e,t)}var Ie=null,Fr=!1,Da=1,De=Symbol("SIGNAL");function W(e){let t=Ie;return Ie=e,t}function $u(){return Ie}function Wg(){return Fr}var Zt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function yn(e){if(Fr)throw new Error("");if(Ie===null)return;Ie.consumerOnSignalRead(e);let t=Ie.nextProducerIndex++;if(Hi(Ie),t<Ie.producerNode.length&&Ie.producerNode[t]!==e&&Lr(Ie)){let n=Ie.producerNode[t];Ui(n,Ie.producerIndexOfThis[t])}Ie.producerNode[t]!==e&&(Ie.producerNode[t]=e,Ie.producerIndexOfThis[t]=Lr(Ie)?qu(e,Ie,t):0),Ie.producerLastReadVersion[t]=e.version}function qg(){Da++}function Vr(e){if(!(Lr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Da)){if(!e.producerMustRecompute(e)&&!Hn(e)){Bi(e);return}e.producerRecomputeValue(e),Bi(e)}}function zu(e){if(e.liveConsumerNode===void 0)return;let t=Fr;Fr=!0;try{for(let n of e.liveConsumerNode)n.dirty||Wu(n)}finally{Fr=t}}function Gu(){return Ie?.consumerAllowSignalWrites!==!1}function Wu(e){e.dirty=!0,zu(e),e.consumerMarkedDirty?.(e)}function Bi(e){e.dirty=!1,e.lastCleanEpoch=Da}function Yt(e){return e&&(e.nextProducerIndex=0),W(e)}function vn(e,t){if(W(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Lr(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Ui(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Hn(e){Hi(e);for(let t=0;t<e.producerNode.length;t++){let n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(Vr(n),r!==n.version))return!0}return!1}function $n(e){if(Hi(e),Lr(e))for(let t=0;t<e.producerNode.length;t++)Ui(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function qu(e,t,n){if(Zu(e),e.liveConsumerNode.length===0&&Yu(e))for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=qu(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function Ui(e,t){if(Zu(e),e.liveConsumerNode.length===1&&Yu(e))for(let r=0;r<e.producerNode.length;r++)Ui(e.producerNode[r],e.producerIndexOfThis[r]);let n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){let r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Hi(i),i.producerIndexOfThis[r]=t}}function Lr(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Hi(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Zu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Yu(e){return e.producerNode!==void 0}function Ea(e){let t=Object.create(Zg);t.computation=e;let n=()=>{if(Vr(t),yn(t),t.value===qt)throw t.error;return t.value};return n[De]=t,n}var gn=Symbol("UNSET"),Un=Symbol("COMPUTING"),qt=Symbol("ERRORED"),Zg=J($({},Zt),{value:gn,dirty:!0,error:null,equal:ba,kind:"computed",producerMustRecompute(e){return e.value===gn||e.value===Un},producerRecomputeValue(e){if(e.value===Un)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Un;let n=Yt(e),r,i=!1;try{r=e.computation(),W(null),i=t!==gn&&t!==qt&&r!==qt&&e.equal(t,r)}catch(o){r=qt,e.error=o}finally{vn(e,n)}if(i){e.value=t;return}e.value=r,e.version++}});function Yg(){throw new Error}var Qu=Yg;function Ku(){Qu()}function Ju(e){Qu=e}var Qg=null;function Xu(e){let t=Object.create($i);t.value=e;let n=()=>(yn(t),t.value);return n[De]=t,n}function zn(e,t){Gu()||Ku(),e.equal(e.value,t)||(e.value=t,Kg(e))}function wa(e,t){Gu()||Ku(),zn(e,t(e.value))}var $i=J($({},Zt),{equal:ba,value:void 0,kind:"signal"});function Kg(e){e.version++,qg(),zu(e),Qg?.()}
1function Ia(e,t,n){let r=Object.create(Jg);r.source=e,r.computation=t,n!=null&&(r.equal=n);let o=()=>{if(Vr(r),yn(r),r.value===qt)throw r.error;return r.value};return o[De]=r,o}function ed(e,t){Vr(e),zn(e,t),Bi(e)}function td(e,t){Vr(e),wa(e,t),Bi(e)}var Jg=J($({},Zt),{value:gn,dirty:!0,error:null,equal:ba,producerMustRecompute(e){return e.value===gn||e.value===Un},producerRecomputeValue(e){if(e.value===Un)throw new Error("Detected cycle in computations.");let t=e.value;e.value=Un;let n=Yt(e),r;try{let i=e.source(),o=t===gn||t===qt?void 0:{source:e.sourceValue,value:t};r=e.computation(i,o),e.sourceValue=i}catch(i){r=qt,e.error=i}finally{vn(e,n)}if(t!==gn&&r!==qt&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function nd(e,t,n){let r=Object.create(Xg);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let i=c=>{r.cleanupFn=c};function o(c){return c.fn===null&&c.schedule===null}function s(c){o(c)||($n(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Ca)}let a=()=>{if(r.fn===null)return;if(Wg())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Hn(r))return;r.hasRun=!0;let c=Yt(r);try{r.cleanupFn(),r.cleanupFn=Ca,r.fn(i)}finally{vn(r,c)}};return r.ref={notify:()=>Wu(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[De]:r},r.ref}var Ca=()=>{},Xg=J($({},Zt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Ca});function Z(e){return typeof e=="function"}function Gn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var zi=Gn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
2${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function _n(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Te=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(Z(r))try{r()}catch(o){t=o instanceof zi?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{rd(o)}catch(s){t=t??[],s instanceof zi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new zi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)rd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&_n(n,t)}remove(t){let{_finalizers:n}=this;n&&_n(n,t),t instanceof e&&t._removeParent(this)}};Te.EMPTY=(()=>{let e=new Te;return e.closed=!0,e})();var Sa=Te.EMPTY;function Gi(e){return e instanceof Te||e&&"closed"in e&&Z(e.remove)&&Z(e.add)&&Z(e.unsubscribe)}function rd(e){Z(e)?e():e.unsubscribe()}var ot={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Wn={setTimeout(e,t,...n){let{delegate:r}=Wn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Wn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Wi(e){Wn.setTimeout(()=>{let{onUnhandledError:t}=ot;if(t)t(e);else throw e})}function xa(){}var id=Ta("C",void 0,void 0);function od(e){return Ta("E",void 0,e)}function sd(e){return Ta("N",e,void 0)}function Ta(e,t,n){return{kind:e,value:t,error:n}}var Cn=null;function qn(e){if(ot.useDeprecatedSynchronousErrorHandling){let t=!Cn;if(t&&(Cn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=Cn;if(Cn=null,n)throw r}}else e()}function ad(e){ot.useDeprecatedSynchronousErrorHandling&&Cn&&(Cn.errorThrown=!0,Cn.error=e)}var bn=class extends Te{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Gi(t)&&t.add(this)):this.destination=ny}static create(t,n,r){return new st(t,n,r)}next(t){this.isStopped?Aa(sd(t),this):this._next(t)}error(t){this.isStopped?Aa(od(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Aa(id,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ey=Function.prototype.bind;function Ma(e,t){return ey.call(e,t)}var Na=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){qi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){qi(r)}else qi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){qi(n)}}},st=class extends bn{constructor(t,n,r){super();let i;if(Z(t)||!t)i={next:t??void 0,error:n??void 0,complete:r??void 0};else{let o;
vendor: 6,077 bytes, line 3
3this&&ot.useDeprecatedNextContext?(o=Object.create(t),o.unsubscribe=()=>this.unsubscribe(),i={next:t.next&&Ma(t.next,o),error:t.error&&Ma(t.error,o),complete:t.complete&&Ma(t.complete,o)}):i=t}this.destination=new Na(i)}};function qi(e){ot.useDeprecatedSynchronousErrorHandling?ad(e):Wi(e)}function ty(e){throw e}function Aa(e,t){let{onStoppedNotification:n}=ot;n&&Wn.setTimeout(()=>n(e,t))}var ny={closed:!0,next:xa,error:ty,complete:xa};var Zn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Yn(e){return e}function cd(e){return e.length===0?Yn:e.length===1?e[0]:function(n){return e.reduce((r,i)=>i(r),n)}}var te=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=iy(n)?n:new st(n,r,i);return qn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ld(r),new r((i,o)=>{let s=new st({next:a=>{try{n(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Zn](){return this}pipe(...n){return cd(n)(this)}toPromise(n){return n=ld(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return e.create=t=>new e(t),e})();function ld(e){var t;return(t=e??ot.Promise)!==null&&t!==void 0?t:Promise}function ry(e){return e&&Z(e.next)&&Z(e.error)&&Z(e.complete)}function iy(e){return e&&e instanceof bn||ry(e)&&Gi(e)}function oy(e){return Z(e?.lift)}function ge(e){return t=>{if(oy(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ve(e,t,n,r,i){return new Ra(e,t,n,r,i)}var Ra=class extends bn{constructor(t,n,r,i,o,s){super(t),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var ud=Gn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var We=(()=>{class e extends te{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Zi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ud}next(n){qn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){qn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){qn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Sa:(this.currentObservers=null,o.push(n),new Te(()=>{this.currentObservers=null,_n(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new te;return n.source=this,n}}return e.create=(t,n)=>new Zi(t,n),e})(),Zi=class extends We{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Sa}};var jr=class extends We{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Br={now(){return(Br.delegate||Date).now()},delegate:void 0};var Dn=class extends We{constructor(t=1/0,n=1/0,r=Br){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;n||(r.push(t),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!t.closed;s+=r?1:2)t.next(o[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){let{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:i}=this,o=(i?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!i){let s=n.now(),a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}};var Yi=class extends Te{constructor(t,n){super()}schedule(t,n=0){return this}};var Ur={setInterval(e,t,...n){let{delegate:r}=Ur;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Ur;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Qi=class extends Yi{constructor(t,n){super(t,n),this.scheduler
vendor: 4,961 bytes, line 3
3=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(o,this.id,n),this}requestAsyncId(t,n,r=0){return Ur.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Ur.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,i;try{this.work(t)}catch(o){r=!0,i=o||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,_n(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Qn=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Qn.now=Br.now;var Ki=class extends Qn{constructor(t,n=Qn.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var sy=new Ki(Qi),dd=sy;var Ji=new te(e=>e.complete());function Xi(e){return e&&Z(e.schedule)}function Pa(e){return e[e.length-1]}function fd(e){return Z(Pa(e))?e.pop():void 0}function Kn(e){return Xi(Pa(e))?e.pop():void 0}function pd(e,t){return typeof Pa(e)=="number"?e.pop():t}function md(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(d){try{l(r.next(d))}catch(f){s(f)}}function c(d){try{l(r.throw(d))}catch(f){s(f)}}function l(d){d.done?o(d.value):i(d.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function hd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function En(e){return this instanceof En?(this.v=e,this):new En(e)}function gd(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(D){return Promise.resolve(D).then(h,f)}}function a(h,D){r[h]&&(i[h]=function(I){return new Promise(function(P,U){o.push([h,I,P,U])>1||c(h,I)})},D&&(i[h]=D(i[h])))}function c(h,D){try{l(r[h](D))}catch(I){v(o[0][3],I)}}function l(h){h.value instanceof En?Promise.resolve(h.value.v).then(d,f):v(o[0][2],h)}function d(h){c("next",h)}function f(h){c("throw",h)}function v(h,D){h(D),o.shift(),o.length&&c(o[0][0],o[0][1])}}function yd(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof hd=="function"?hd(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,c){s=e[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var eo=e=>e&&typeof e.length=="number"&&typeof e!="function";function to(e){return Z(e?.then)}function no(e){return Z(e[Zn])}function ro(e){return Symbol.asyncIterator&&Z(e?.[Symbol.asyncIterator])}function io(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function ay(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var oo=ay();function so(e){return Z(e?.[oo])}function ao(e){return gd(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:i}=yield En(n.read());if(i)return yield En(void 0);yield yield En(r)}}finally{n.releaseLock()}})}function co(e){return Z(e?.getReader)}function pe(e){if(e instanceof te)return e;if(e!=null){if(no(e))return cy(e);if(eo(e))return ly(e);if(to(e))return uy(e);if(ro(e))return vd(e);if(so(e))return dy(e);if(co(e))return fy(e)}throw io(e)}function cy(e){return new te(t=>{let n=e[Zn]();if(Z(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ly(e){return new te(t=>{for(let n=0;n<e.length&&!t.closed;
vendor: 4,377 bytes, line 3
3n++)t.next(e[n]);t.complete()})}function uy(e){return new te(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Wi)})}function dy(e){return new te(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function vd(e){return new te(t=>{py(e,t).catch(n=>t.error(n))})}function fy(e){return vd(ao(e))}function py(e,t){var n,r,i,o;return md(this,void 0,void 0,function*(){try{for(n=yd(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}t.complete()})}function Xe(e,t,n,r=0,i=!1){let o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function lo(e,t=0){return ge((n,r)=>{n.subscribe(ve(r,i=>Xe(r,e,()=>r.next(i),t),()=>Xe(r,e,()=>r.complete(),t),i=>Xe(r,e,()=>r.error(i),t)))})}function uo(e,t=0){return ge((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function _d(e,t){return pe(e).pipe(uo(t),lo(t))}function Cd(e,t){return pe(e).pipe(uo(t),lo(t))}function bd(e,t){return new te(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Dd(e,t){return new te(n=>{let r;return Xe(n,t,()=>{r=e[oo](),Xe(n,t,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>Z(r?.return)&&r.return()})}function fo(e,t){if(!e)throw new Error("Iterable cannot be null");return new te(n=>{Xe(n,t,()=>{let r=e[Symbol.asyncIterator]();Xe(n,t,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Ed(e,t){return fo(ao(e),t)}function wd(e,t){if(e!=null){if(no(e))return _d(e,t);if(eo(e))return bd(e,t);if(to(e))return Cd(e,t);if(ro(e))return fo(e,t);if(so(e))return Dd(e,t);if(co(e))return Ed(e,t)}throw io(e)}function at(e,t){return t?wd(e,t):pe(e)}function ct(...e){let t=Kn(e);return at(e,t)}function wn(e){return!!e&&(e instanceof te||Z(e.lift)&&Z(e.subscribe))}var Id=Gn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ee(e,t){let n=typeof t=="object";return new Promise((r,i)=>{let o=new st({next:s=>{r(s),o.unsubscribe()},error:i,complete:()=>{n?r(t.defaultValue):i(new Id)}});e.subscribe(o)})}function Sd(e){return e instanceof Date&&!isNaN(e)}function Me(e,t){return ge((n,r)=>{let i=0;n.subscribe(ve(r,o=>{r.next(e.call(t,o,i++))}))})}var{isArray:hy}=Array;function my(e,t){return hy(t)?e(...t):e(t)}function xd(e){return Me(t=>my(e,t))}var{isArray:gy}=Array,{getPrototypeOf:yy,prototype:vy,keys:_y}=Object;function Td(e){if(e.length===1){let t=e[0];if(gy(t))return{args:t,keys:null};if(Cy(t)){let n=_y(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Cy(e){return e&&typeof e=="object"&&yy(e)===vy}function Md(e,t){return e.reduce((n,r,i)=>(n[r]=t[i],n),{})}function Ad(e,t,n,r,i,o,s,a){let c=[],l=0,d=0,f=!1,v=()=>{f&&!c.length&&!l&&t.complete()},h=I=>l<r?D(I):c.push(I),D=I=>{o&&t.next(I),l++;let P=!1;pe(n(I,d++)).subscribe(ve(t,U=>{i?.(U),o?h(U):t.next(U)},()=>{P=!0},void 0,()=>{if(P)try{for(l--;c.length&&l<r;){let U=c.shift();s?Xe(t,s,()=>D(U)):D(U)}v()}catch(U){t.error(U)}}))};return e.subscribe(ve(t,h,()=>{f=!0,v()})),()=>{a?.()}}function Jn(e,t,n=1/0){return Z(t)?Jn((r,i)=>Me((o,s)=>t(r,o,i,s))(pe(e(r,i))),n):(typeof t=="number"&&(n=t),ge((r,i)=>Ad(r,i,e,n)))}function po(e=1/0){return Jn(Yn,e)}function Nd(){return po(1)}function ho(...e){return Nd()(at(e,Kn(e)))}function mo(e){return new te(t=>{pe(e()).subscribe(t)})}function Hr(...e){let t=fd(e),{args:n,keys:r}=Td(e),i=new te(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let d=0;d<s;d++){let f=!1;pe(n[d]).subscribe(ve(o,v=>{f||(f=!0,l--),a[d]=v},()=>c--,void 0,()=>{(!c||!f)&&(l||o.next(r?Md(r,a):a),o.complete())}))}});return t?i.pipe(xd(t)):i}function Rd(e=0,t,n=dd){let r=-1;return t!=null&&(Xi(t)?n=t:r=t),new te(i=>{let o=Sd(e)?+e-n.now():e;o<0&&(o=0);let s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function Oa(...e){let t=Kn(e),n=pd(e,1/0),r=e;return r.length?r.length===1?pe(r[0]):po(n)(at(r,t)):Ji}function ka(e,t){return ge((n,r)=>{let i=0;n.subscribe(ve(r,o=>e.call(t,o,i++)&&r.next(o)))})}function go(e){return ge((t,n)=>{let r=null,i=!1,o;r=t.subscribe(ve(n,void 0,void 0,s=>
3{o=pe(e(s,go(e)(t))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function $r(e,t){return Z(t)?Jn(e,t,1):Jn(e,1)}function Xn(e){return e<=0?()=>Ji:ge((t,n)=>{let r=0;t.subscribe(ve(n,i=>{++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function Fa(e){return ge((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function La(e=1/0){let t;e&&typeof e=="object"?t=e:t={count:e};let{count:n=1/0,delay:r,resetOnSuccess:i=!1}=t;return n<=0?Yn:ge((o,s)=>{let a=0,c,l=()=>{let d=!1;c=o.subscribe(ve(s,f=>{i&&(a=0),s.next(f)},void 0,f=>{if(a++<n){let v=()=>{c?(c.unsubscribe(),c=null,l()):d=!0};if(r!=null){let h=typeof r=="number"?Rd(r):pe(r(f,a)),D=ve(s,()=>{D.unsubscribe(),v()},()=>{s.complete()});h.subscribe(D)}else v()}else s.error(f)})),d&&(c.unsubscribe(),c=null,l())};l()})}function Pd(e={}){let{connector:t=()=>new We,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,l=0,d=!1,f=!1,v=()=>{a?.unsubscribe(),a=void 0},h=()=>{v(),s=c=void 0,d=f=!1},D=()=>{let I=s;h(),I?.unsubscribe()};return ge((I,P)=>{l++,!f&&!d&&v();let U=c=c??t();P.add(()=>{l--,l===0&&!f&&!d&&(a=Va(D,i))}),U.subscribe(P),!s&&l>0&&(s=new st({next:ce=>U.next(ce),error:ce=>{f=!0,v(),a=Va(h,n,ce),U.error(ce)},complete:()=>{d=!0,v(),a=Va(h,r),U.complete()}}),pe(I).subscribe(s))})(o)}}function Va(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new st({next:()=>{r.unsubscribe(),e()}});return pe(t(...n)).subscribe(r)}function yo(e,t,n){let r,i=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:i=!1,scheduler:n}=e:r=e??1/0,Pd({connector:()=>new Dn(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Qt(e,t){return ge((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(ve(r,c=>{i?.unsubscribe();let l=0,d=o++;pe(e(c,d)).subscribe(i=ve(r,f=>r.next(t?t(c,f,d,l++):f),()=>{i=null,a()}))},()=>{s=!0,a()}))})}var Ef="https://g.co/ng/security#xss",R=class extends Error{code;constructor(t,n){super(ns(t,n)),this.code=t}};function ns(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var rs=Symbol("InputSignalNode#UNSET"),wf=J($({},$i),{transformFn:void 0,applyValueToInputSignal(e,t){zn(e,t)}});function If(e,t){let n=Object.create(wf);n.value=e,n.transformFn=t?.transform;function r(){if(yn(n),n.value===rs)throw new R(-950,!1);return n.value}return r[De]=n,r}function is(e){return{toString:e}.toString()}var Pt=globalThis;function he(e){for(let t in e)if(e[t]===he)return t;throw Error("Could not find renamed property on target object.")}function by(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function tt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(tt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
4`);return r>=0?n.slice(0,r):n}function ec(e,t){return e?t?`${e} ${t}`:e:t||""}var Dy=he({__forward_ref__:he});function tn(e){return e.__forward_ref__=tn,e.toString=function(){return tt(this())},e}function Ue(e){return Sf(e)?e():e}function Sf(e){return typeof e=="function"&&e.hasOwnProperty(Dy)&&e.__forward_ref__===tn}function N(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function nn(e){return{providers:e.providers||[],imports:e.imports||[]}}function il(e){return Od(e,xf)||Od(e,Tf)}function Od(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ey(e){let t=e&&(e[xf]||e[Tf]);return t||null}function kd(e){return e&&(e.hasOwnProperty(Fd)||e.hasOwnProperty(wy))?e[Fd]:null}var xf=he({\u0275prov:he}),Fd=he({\u0275inj:he}),Tf=he({ngInjectableDef:he}),wy=he({ngInjectorDef:he}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Mf(e){return e&&!!e.\u0275providers}var Iy=he({\u0275cmp:he}),Sy=he({\u0275dir:he}),xy=he({\u0275pipe:he});var Mo=he({\u0275fac:he}),qr=he({__NG_ELEMENT_ID__:he}),Ld=he({__NG_ENV_ID__:he});function wt(e){return typeof e=="string"?e:e==null?"":String(e)}function Ty(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():wt(e)}function My(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new R(-200,e)}function ol(e,t){throw new R(-201,!1)}var K=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(K||{}),tc;function Af(){return tc}function qe(e){let t=tc;return tc=e,t}function Nf(e,t,n){let r=il(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&K.Optional)return null;if(t!==void 0)return t;ol(e,"Injector")}var Ay={},Zr=Ay,Ny="__NG_DI_FLAG__",Ao="ngTempTokenPath",Ry="ngTokenPath",Py=/\n/gm,Oy="\u0275",Vd="__source",ir;function ky(){return ir}function Kt(e){let t=ir;return ir=e,t}function Fy(e,t=K.Default){if(ir===void 0)throw new R(-203,!1);return ir===null?Nf(e,void 0,t):ir.get(e,t&K.Optional?null:void 0,t)}function j(e,t=K.Default){return(Af()||Fy)(Ue(e),t)}function g(e,t=K.Default){return j(e,os(t))}function os(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function nc(e){let t=[];for(let n=0;n<e.length;n++){let r=Ue(e[n]);if(Array.isArray(r)){if(r.length===0)throw new R(900,!1);let i,o=K.Default;for(let s=0;s<r.length;s++){let a=r[s],c=Ly(a);typeof c=="number"?c===-1?i=a.token:o|=c:i=a}t.push(j(i,o))}else t.push(j(r))}return t}function Ly(e){return e[Ny]}function Vy(e,t,n,r){let i=e[Ao];throw t[Vd]&&i.unshift(t[Vd]),e.message=jy(`
5`+e.message,i,n,r),e[Ry]=i,e[Ao]=null,e}function jy(e,t,n,r=null){e=e&&e.charAt(0)===`
6`&&e.charAt(1)==Oy?e.slice(2):e;let i=tt(t);if(Array.isArray(t))i=t.map(tt).join(" -> ");else if(typeof t=="object"){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];
6o.push(s+":"+(typeof a=="string"?JSON.stringify(a):tt(a)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Py,`
7  `)}`}function xn(e,t){let n=e.hasOwnProperty(Mo);return n?e[Mo]:null}function By(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=t[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function Uy(e){return e.flat(Number.POSITIVE_INFINITY)}function sl(e,t){e.forEach(n=>Array.isArray(n)?sl(n,t):t(n))}function Rf(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function No(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hy(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(i===1)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;){let o=i-2;e[i]=e[o],i--}e[t]=n,e[t+1]=r}}function al(e,t,n){let r=ci(e,t);return r>=0?e[r|1]=n:(r=~r,Hy(e,r,t,n)),r}function ja(e,t){let n=ci(e,t);if(n>=0)return e[n|1]}function ci(e,t){return $y(e,t,1)}function $y(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=e[o<<n];if(t===s)return o<<n;s>t?i=o:r=o+1}return~(i<<n)}var Tn={},He=[],Yr=new L(""),Pf=new L("",-1),Of=new L(""),Ro=class{get(t,n=Zr){if(n===Zr){let r=new Error(`NullInjectorError: No provider for ${tt(t)}!`);throw r.name="NullInjectorError",r}return n}};function sr(e){return e[Iy]||null}function kf(e){return e[Sy]||null}function Ff(e){return e[xy]||null}function zy(e){let t=sr(e)||kf(e)||Ff(e);return t!==null&&t.standalone}function li(e){return{\u0275providers:e}}function cl(...e){return{\u0275providers:Lf(!0,e),\u0275fromNgModule:!0}}function Lf(e,...t){let n=[],r=new Set,i,o=s=>{n.push(s)};return sl(t,s=>{let a=s;rc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Vf(i,o),n}function Vf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:i}=e[n];ll(i,o=>{t(o,r)})}}function rc(e,t,n,r){if(e=Ue(e),!e)return!1;let i=null,o=kd(e),s=!o&&sr(e);if(!o&&!s){let c=e.ngModule;if(o=kd(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)rc(l,t,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{sl(o.imports,d=>{rc(d,t,n,r)&&(l||=[],l.push(d))})}finally{}l!==void 0&&Vf(l,t)}if(!a){let l=xn(i)||(()=>new i);t({provide:i,useFactory:l,deps:He},i),t({provide:Of,useValue:i,multi:!0},i),t({provide:Yr,useValue:()=>j(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=e;ll(c,d=>{t(d,l)})}}else return!1;return i!==e&&e.providers!==void 0}function ll(e,t){for(let n of e)Mf(n)&&(n=n.\u0275providers),Array.isArray(n)?ll(n,t):t(n)}var Gy=he({provide:String,useValue:he});function jf(e){return e!==null&&typeof e=="object"&&Gy in e}function Wy(e){return!!(e&&e.useExisting)}function qy(e){return!!(e&&e.useFactory)}function ar(e){return typeof e=="function"}function Zy(e){return!!e.useClass}var ss=new L(""),Do={},Yy={},Ba;function ul(){return Ba===void 0&&(Ba=new Ro),Ba}var It=class{},Qr=class extends It{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,oc(t,s=>this.processProvider(s)),this.records.set(Pf,er(void 0,this)),i.has("environment")&&this.records.set(It,er(void 0,this));let o=this.records.get(ss);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Of,He,K.Self))}destroy(){Gr(this),this._destroyed=!0;let t=W(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),W(t)}}onDestroy(t){return Gr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Gr(this);let n=Kt(this),r=qe(void 0),i;try{return t()}finally{Kt(n),qe(r)}}get(t,n=Zr,r=K.Default){if(Gr(this),t.hasOwnProperty(Ld))return t[Ld](this);r=os(r);let i,o=Kt(this),s=qe(void 0);try{if(!(r&K.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=ev(t)&&il(t);l&&this.injectableDefInScope(l)?c=er(ic(t),Do):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&K.Self?ul():this.parent;return n=r&K.Optional&&n===Zr?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ao]=a[Ao]||[]).unshift(tt(t)),o)throw a;return Vy(a,t,"R3InjectorError",this.source)}else throw a}finally{qe(s),Kt(o)}}
vendor: 9,774 bytes, line 7
7resolveInjectorInitializers(){let t=W(null),n=Kt(this),r=qe(void 0),i;try{let o=this.get(Yr,He,K.Self);for(let s of o)s()}finally{Kt(n),qe(r),W(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(tt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Ue(t);let n=ar(t)?t:Ue(t&&t.provide),r=Ky(t);if(!ar(t)&&t.multi===!0){let i=this.records.get(n);i||(i=er(void 0,Do,!0),i.factory=()=>nc(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=W(null);try{return n.value===Do&&(n.value=Yy,n.value=n.factory()),typeof n.value=="object"&&n.value&&Xy(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{W(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Ue(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ic(e){let t=il(e),n=t!==null?t.factory:xn(e);if(n!==null)return n;if(e instanceof L)throw new R(204,!1);if(e instanceof Function)return Qy(e);throw new R(204,!1)}function Qy(e){if(e.length>0)throw new R(204,!1);let n=Ey(e);return n!==null?()=>n.factory(e):()=>new e}function Ky(e){if(jf(e))return er(void 0,e.useValue);{let t=Bf(e);return er(t,Do)}}function Bf(e,t,n){let r;if(ar(e)){let i=Ue(e);return xn(i)||ic(i)}else if(jf(e))r=()=>Ue(e.useValue);else if(qy(e))r=()=>e.useFactory(...nc(e.deps||[]));else if(Wy(e))r=()=>j(Ue(e.useExisting));else{let i=Ue(e&&(e.useClass||e.provide));if(Jy(e))r=()=>new i(...nc(e.deps));else return xn(i)||ic(i)}return r}function Gr(e){if(e.destroyed)throw new R(205,!1)}function er(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Jy(e){return!!e.deps}function Xy(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function ev(e){return typeof e=="function"||typeof e=="object"&&e instanceof L}function oc(e,t){for(let n of e)Array.isArray(n)?oc(n,t):n&&Mf(n)?oc(n.\u0275providers,t):t(n)}function as(e,t){e instanceof Qr&&Gr(e);let n,r=Kt(e),i=qe(void 0);try{return t()}finally{Kt(r),qe(i)}}function Uf(){return Af()!==void 0||ky()!=null}function ui(e){if(!Uf())throw new R(-203,!1)}function tv(e){return typeof e=="function"}var Bt=0,z=1,H=2,Fe=3,dt=4,ht=5,Kr=6,Po=7,Ne=8,Jr=9,Ot=10,we=11,Xr=12,jd=13,pr=14,ft=15,Mn=16,tr=17,kt=18,cs=19,Hf=20,Jt=21,Eo=22,An=23,Ye=24,Re=25,$f=1;var Nn=7,Oo=8,cr=9,ke=10;function Xt(e){return Array.isArray(e)&&typeof e[$f]=="object"}function Ut(e){return Array.isArray(e)&&e[$f]===!0}function zf(e){return(e.flags&4)!==0}function Ln(e){return e.componentOffset>-1}function dl(e){return(e.flags&1)===1}function Ft(e){return!!e.template}function ko(e){return(e[H]&512)!==0}function di(e){return(e[H]&256)===256}var sc=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Gf(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var ls=(()=>{let e=()=>Wf;return e.ngInherit=!0,e})();function Wf(e){return e.type.prototype.ngOnChanges&&(e.setInput=rv),nv}function nv(){let e=Zf(this),t=e?.current;if(t){let n=e.previous;if(n===Tn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function rv(e,t,n,r,i){let o=this.declaredInputs[r],s=Zf(e)||iv(e,{previous:Tn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new sc(l&&l.currentValue,n,c===Tn),Gf(e,t,i,n)}var qf="__ngSimpleChanges__";function Zf(e){return e[qf]||null}function iv(e,t){return e[qf]=t}var Bd=null;var et=function(e,t,n){Bd?.(e,t,n)},ov="svg",sv="math";function St(e){for(;Array.isArray(e);)e=e[Bt];return e}function Yf(e,t){return St(t[e])}function mt(e,t){return St(t[e.index])}function fl(e,t){return e.data[t]}function pl(e,t){return e[t]}function xt(e,t){let n=t[e];return Xt(n)?n:n[Bt]}function hl(e){return(e[H]&128)===128}function av(e){return Ut(e[Fe])}function lr(e,t){return t==null?null:e[t]}function Qf(e){e[tr]=0}function ml(e){e[H]&1024||(e[H]|=1024,hl(e)&&fi(e))}function cv(e,t){for(;e>0;)t=t[pr],e--;return t}function us(e){return!!(e[H]&9216||e[Ye]?.dirty)}function ac(e){e[Ot].changeDetectionScheduler?.notify(9),e[H]&64&&(e[H]|=1024),us(e)&&fi(e)}function fi(e){e[Ot].changeDetectionScheduler?.notify(0);let t=Rn(e);for(;t!==null&&!(t[H]&8192||(t[H]|=8192,!hl(t)));)t=Rn(t)}function Kf(e,t){if(di(e))throw new R(911,!1);e[Jt]===null&&(e[Jt]=[]),e[Jt].push(t)}function lv(e,t){if(e[Jt]===null)return;let n=e[Jt].indexOf(t);n!==-1&&e[Jt].splice(n,1)}function Rn(e){let t=e[Fe];return Ut(t)?t[Fe]:t}function Jf(e){return e[Po]??=[]}function Xf(e){return e.cleanup??=[]}function uv(e,t,n,r){let i=Jf(t);i.push(n),e.firstCreatePass&&Xf(e).push(r,i.length-1)}var q={lFrame:sp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var cc=!1;function dv(){return q.lFrame.elementDepthCount}function fv(){q.lFrame.elementDepthCount++}function pv(){q.lFrame.elementDepthCount--}function gl(){return q.bindingsEnabled}function hv(){return q.skipHydrationRootTNode!==null}function mv(e){return q.skipHydrationRootTNode===e}function gv(){q.skipHydrationRootTNode=null}function G(){return q.lFrame.lView}function Se(){return q.lFrame.tView}function k(e){return q.lFrame.contextLView=e,e[Ne]}function F(e){return q.lFrame.contextLView=null,e}function Qe(){let e=ep();for(;e!==null&&e.type===64;)e=e.parent;return e}function ep(){return q.lFrame.currentTNode}function yv(){let e=q.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function hr(e,t){let n=q.lFrame;n.currentTNode=e,n.isParent=t}function tp(){return q.lFrame.isParent}function vv(){q.lFrame.isParent=!1}function _v(){return q.lFrame.contextLView}function np(){return cc}function Fo(e){let t=cc;return cc=e,t}function ds(){let e=q.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function rp(){return q.lFrame.bindingIndex}function Cv(e){return q.lFrame.bindingIndex=e}function mr(){return q.lFrame.bindingIndex++}function fs(e){let t=q.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function bv(){return q.lFrame.inI18n}function Dv(e,t){let n=q.lFrame;n.bindingIndex=n.bindingRootIndex=e,lc(t)}function Ev(){return q.lFrame.currentDirectiveIndex}function lc(e){q.lFrame.currentDirectiveIndex=e}function wv(e){let t=q.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Iv(){return q.lFrame.currentQueryIndex}function yl(e){q.lFrame.currentQueryIndex=e}function Sv(e){let t=e[z];return t.type===2?t.declTNode:t.type===1?e[ht]:null}function ip(e,t,n){if(n&K.SkipSelf){let i=t,o=e;for(;i=i.parent,i===null&&!(n&K.Host);)if(i=Sv(o),i===null||(o=o[pr],i.type&10))break;if(i===null)return!1;t=i,e=o}let r=q.lFrame=op();return r.currentTNode=t,r.lView=e,!0}function vl(e){let t=op(),n=e[z];q.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function op(){let e=q.lFrame,t=e===null?null:e.child;return t===null?sp(e):t}function sp(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function ap(){let e=q.lFrame;return q.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var cp=ap;function _l(){let e=ap();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xv(e){return(q.lFrame.contextLView=cv(e,q.lFrame.contextLView))[Ne]}function gt(){return q.lFrame.selectedIndex}function Pn(e){q.lFrame.selectedIndex=e}function Cl(){let e=q.lFrame;return fl(e.tView,e.selectedIndex)}function Tv(){return q.lFrame.currentNamespace}var lp=!0;function bl(){return lp}function Dl(e){lp=e}function Mv(e,t,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=t.type.prototype;if(r){let s=Wf(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}i&&(n.preOrderHooks??=[]).push(0-e,i),o&&((n.preOrderHooks??=[]).push(e,o),(n.preOrderCheckHooks??=[]).push(e,o))}function up(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let o=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:d}=o;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),d!=null&&(e.destroyHooks??=[]).push(n,d)}}function wo(e,t,n){dp(e,t,3,n)}function Io(e,t,n,r){(e[H]&3)===n&&dp(e,t,n,r)}function Ua(e,t){let n=e[H];(n&3)===t&&(n&=16383,n+=1,e[H]=n)}function dp(e,t,n,r){let i=r!==void 0?e[tr]&65535:0,o=r??-1,s=t.length-1,a=0;for(let c=i;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[tr]+=65536),(a<o||o==-1)&&(Av(e,n,t,c),e[tr]=(e[tr]&4294901760)+c+2),c++}function Ud(e,t){et(4,e,t);let n=W(null);try{t.call(e)}finally{W(n),et(5,e,t)}}function Av(e,t,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=e[s];i?e[H]>>14<e[tr]>>16&&(e[H]&3)===t&&(e[H]+=16384,Ud(a,o)):Ud(a,o)}var or=-1,On=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Nv(e){return e instanceof On}function Rv(e){return(e.flags&8)!==0}function Pv(e){return(e.flags&16)!==0}function Ov(e,t,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,o)}else{let o=i,s=n[++r];
7Fv(o)?e.setProperty(t,o,s):e.setAttribute(t,o,s),r++}}return r}function kv(e){return e===3||e===4||e===6}function Fv(e){return e.charCodeAt(0)===64}function ei(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let i=t[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?Hd(e,n,i,null,t[++r]):Hd(e,n,i,null,null))}}return e}function Hd(e,t,n,r,i){let o=0,s=e.length;if(t===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===n){if(r===null){i!==null&&(e[o+1]=i);return}else if(r===e[o+1]){e[o+2]=i;return}}o++,r!==null&&o++,i!==null&&o++}s!==-1&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),r!==null&&e.splice(o++,0,r),i!==null&&e.splice(o++,0,i)}var Ha={},uc=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=os(r);let i=this.injector.get(t,Ha,r);return i!==Ha||n===Ha?i:this.parentInjector.get(t,n,r)}};function fp(e){return e!==or}function Lo(e){return e&32767}function Lv(e){return e>>16}function Vo(e,t){let n=Lv(e),r=t;for(;n>0;)r=r[pr],n--;return r}var dc=!0;function jo(e){let t=dc;return dc=e,t}var Vv=256,pp=Vv-1,hp=5,jv=0,Et={};function Bv(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(qr)&&(r=n[qr]),r==null&&(r=n[qr]=jv++);let i=r&pp,o=1<<i;t.data[e+(i>>hp)]|=o}function Bo(e,t){let n=mp(e,t);if(n!==-1)return n;let r=t[z];r.firstCreatePass&&(e.injectorIndex=t.length,$a(r.data,e),$a(t,null),$a(r.blueprint,null));let i=El(e,t),o=e.injectorIndex;if(fp(i)){let s=Lo(i),a=Vo(i,t),c=a[z].data;for(let l=0;l<8;l++)t[o+l]=a[s+l]|c[s+l]}return t[o+8]=i,o}function $a(e,t){e.push(0,0,0,0,0,0,0,0,t)}function mp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function El(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;i!==null;){if(r=Cp(i),r===null)return or;if(n++,i=i[pr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return or}function fc(e,t,n){Bv(e,t,n)}function gp(e,t,n){if(n&K.Optional||e!==void 0)return e;ol(t,"NodeInjector")}function yp(e,t,n,r){if(n&K.Optional&&r===void 0&&(r=null),!(n&(K.Self|K.Host))){let i=e[Jr],o=qe(void 0);try{return i?i.get(t,r,n&K.Optional):Nf(t,r,n&K.Optional)}finally{qe(o)}}return gp(r,t,n)}function vp(e,t,n,r=K.Default,i){if(e!==null){if(t[H]&2048&&!(r&K.Self)){let s=zv(e,t,n,r,Et);if(s!==Et)return s}let o=_p(e,t,n,r,Et);if(o!==Et)return o}return yp(t,n,r,i)}function _p(e,t,n,r,i){let o=Hv(n);if(typeof o=="function"){if(!ip(t,e,r))return r&K.Host?gp(i,n,r):yp(t,n,r,i);try{let s;if(s=o(r),s==null&&!(r&K.Optional))ol(n);else return s}finally{cp()}}else if(typeof o=="number"){let s=null,a=mp(e,t),c=or,l=r&K.Host?t[ft][ht]:null;for((a===-1||r&K.SkipSelf)&&(c=a===-1?El(e,t):t[a+8],c===or||!zd(r,!1)?a=-1:(s=t[z],a=Lo(c),t=Vo(c,t)));a!==-1;){let d=t[z];if($d(o,a,d.data)){let f=Uv(a,t,n,s,r,l);if(f!==Et)return f}c=t[a+8],c!==or&&zd(r,t[z].data[a+8]===l)&&$d(o,a,t)?(s=d,a=Lo(c),t=Vo(c,t)):a=-1}}return i}function Uv(e,t,n,r,i,o){let s=t[z],a=s.data[e+8],c=r==null?Ln(a)&&dc:r!=s&&(a.type&3)!==0,l=i&K.Host&&o===a,d=So(a,s,n,c,l);return d!==null?ti(t,s,d,a):Et}function So(e,t,n,r,i){let o=e.providerIndexes,s=t.data,a=o&1048575,c=e.directiveStart,l=e.directiveEnd,d=o>>20,f=r?a:a+d,v=i?a+d:l;for(let h=f;h<v;h++){let D=s[h];if(h<c&&n===D||h>=c&&D.type===n)return h}if(i){let h=s[c];if(h&&Ft(h)&&h.type===n)return c}return null}function ti(e,t,n,r){let i=e[n],o=t.data;if(Nv(i)){let s=i;s.resolving&&My(Ty(o[n]));let a=jo(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?qe(s.injectImpl):null,d=ip(e,r,K.Default);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&Mv(n,o[n],t)}finally{l!==null&&qe(l),jo(a),s.resolving=!1,cp()}}return i}function Hv(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(qr)?e[qr]:void 0;return typeof t=="number"?t>=0?t&pp:$v:t}function $d(e,t,n){let r=1<<e;return!!(n[t+(e>>hp)]&r)}function zd(e,t){return!(e&K.Self)&&!(e&K.Host&&t)}var Sn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return vp(this._tNode,this._lView,t,os(r),n)}};function $v(){return new Sn(Qe(),G())}function gr(e){return is(()=>{let t=e.prototype.constructor,n=t[Mo]||pc(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){let o=i[Mo]||pc(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function pc(e){return Sf(e)?()=>{let t=pc(Ue(e));return t&&t()}:xn(e)}function zv(e,t,n,r,i){let o=e,s=t;
vendor: 5,515 bytes, line 7
7for(;o!==null&&s!==null&&s[H]&2048&&!ko(s);){let a=_p(o,s,n,r|K.Self,Et);if(a!==Et)return a;let c=o.parent;if(!c){let l=s[Hf];if(l){let d=l.get(n,Et,r);if(d!==Et)return d}c=Cp(s),s=s[pr]}o=c}return i}function Cp(e){let t=e[z],n=t.type;return n===2?t.declTNode:n===1?e[ht]:null}function Gd(e,t=null,n=null,r){let i=Gv(e,t,n,r);return i.resolveInjectorInitializers(),i}function Gv(e,t=null,n=null,r,i=new Set){let o=[n||He,cl(e)];return r=r||(typeof e=="object"?void 0:tt(e)),new Qr(o,t||ul(),r||null,i)}var Le=class e{static THROW_IF_NOT_FOUND=Zr;static NULL=new Ro;static create(t,n){if(Array.isArray(t))return Gd({name:""},n,t,"");{let r=t.name??"";return Gd({name:r},t.parent,t.providers,r)}}static \u0275prov=N({token:e,providedIn:"any",factory:()=>j(Pf)});static __NG_ELEMENT_ID__=-1};var Wv=new L("");Wv.__NG_ELEMENT_ID__=e=>{let t=Qe();if(t===null)throw new R(204,!1);if(t.type&2)return t.value;if(e&K.Optional)return null;throw new R(204,!1)};var bp=!1,it=(()=>{class e{static __NG_ELEMENT_ID__=qv;static __NG_ENV_ID__=n=>n}return e})(),Uo=class extends it{_lView;constructor(t){super(),this._lView=t}onDestroy(t){return Kf(this._lView,t),()=>lv(this._lView,t)}};function qv(){return new Uo(G())}var nt=class{},ps=new L("",{providedIn:"root",factory:()=>!1});var Dp=new L(""),wl=new L(""),rn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new jr(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),Zv=(()=>{class e{internalPendingTasks=g(rn);scheduler=g(nt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(12),this.internalPendingTasks.remove(n))}}async run(n){let r=this.add();try{return await n()}finally{r()}}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),hc=class extends We{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Uf()&&(this.destroyRef=g(it,{optional:!0})??void 0,this.pendingTasks=g(rn,{optional:!0})??void 0)}emit(t){let n=W(null);try{super.next(t)}finally{W(n)}}subscribe(t,n,r){let i=t,o=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return t instanceof Te&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},Ae=hc;function ni(...e){}function Ep(e){let t,n;function r(){e=ni;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Wd(e){return queueMicrotask(()=>e()),()=>{e=ni}}var Il="isAngularZone",Ho=Il+"_ID",Yv=0,be=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ae(!1);onMicrotaskEmpty=new Ae(!1);onStable=new Ae(!1);onError=new Ae(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=bp}=t;if(typeof Zone>"u")throw new R(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,Jv(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Il)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new R(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new R(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,t,Qv,ni,ni);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Qv={};function Sl(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Kv(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Ep(()=>{e.callbackScheduled=!1,mc(e),e.isCheckStableRunning=!0,Sl(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),mc(e)}function Jv(e){let t=()=>{Kv(e)},n=Yv++;e._inner=e._inner.fork({name:"angular",properties:{[Il]:!0,[Ho]:n,[Ho+n]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(Xv(c))return r.invokeTask(o,s,a,c);try{return qd(e),r.invokeTask(o,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Zd(e)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return qd(e),r.invoke(o,s,a,c,l)}
7finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!e_(c)&&t(),Zd(e)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,mc(e),Sl(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function mc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function qd(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Zd(e){e._nesting--,Sl(e)}var $o=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ae;onMicrotaskEmpty=new Ae;onStable=new Ae;onError=new Ae;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}};function Xv(e){return wp(e,"__ignore_ng_zone__")}function e_(e){return wp(e,"__scheduler_tick__")}function wp(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var pt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},t_=new L("",{providedIn:"root",factory:()=>{let e=g(be),t=g(pt);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),zo=class{destroyed=!1;listeners=null;errorHandler=g(pt,{optional:!0});destroyRef=g(it);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new R(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new R(953,!1);if(this.listeners===null)return;let n=W(null);try{for(let r of this.listeners)try{r(t)}catch(i){this.errorHandler?.handleError(i)}}finally{W(n)}}};function yr(e){return new zo}function Yd(e,t){return If(e,t)}function n_(e){return If(rs,e)}var xe=(Yd.required=n_,Yd);function r_(){return vr(Qe(),G())}function vr(e,t){return new Mt(mt(e,t))}var Mt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=r_}return e})();function i_(e){return e instanceof Mt?e.nativeElement:e}var Qd=new Set;function Ke(e){Qd.has(e)||(Qd.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function o_(e){return typeof e=="function"&&e[De]!==void 0}function V(e,t){Ke("NgSignals");let n=Xu(e),r=n[De];return t?.equal&&(r.equal=t.equal),n.set=i=>zn(r,i),n.update=i=>wa(r,i),n.asReadonly=hs.bind(n),n}function hs(){let e=this[De];if(e.readonlyFn===void 0){let t=()=>this();t[De]=e,e.readonlyFn=t}return e.readonlyFn}function Ip(e){return o_(e)&&typeof e.set=="function"}function s_(){return this._results[Symbol.iterator]()}var gc=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new We}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Uy(t);(this._changesDetected=!By(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=s_};function Sp(e){return(e.flags&128)===128}var xp=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(xp||{}),Tp=new Map,a_=0;function c_(){return a_++}function l_(e){Tp.set(e[cs],e)}function yc(e){Tp.delete(e[cs])}var Kd="__ngContext__";function _r(e,t){Xt(t)?(e[Kd]=t[cs],l_(t)):e[Kd]=t}function Mp(e){return Np(e[Xr])}function Ap(e){return Np(e[dt])}function Np(e){for(;e!==null&&!Ut(e);)e=e[dt];return e}var vc;function Rp(e){vc=e}function Pp(){if(vc!==void 0)return vc;if(typeof document<"u")return document;throw new R(210,!1)}var xl=new L("",{providedIn:"root",factory:()=>u_}),u_="ng",Tl=new L(""),yt=new L("",{providedIn:"platform",factory:()=>"unknown"});var Ml=new L("",{providedIn:"root",factory:()=>Pp().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var d_="h",f_="b";var Op=!1,p_=new L("",{providedIn:"root",factory:()=>Op});var Al=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Al||{}),Vn=new L("");var nr=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(nr||{}),Nl=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),kp=[nr.EarlyRead,nr.Write,nr.MixedReadWrite,nr.Read],Fp=(()=>{class e{ngZone=g(be);
7scheduler=g(nt);errorHandler=g(pt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(Vn,{optional:!0})}execute(){this.executing=!0;for(let n of kp)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[n]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[n](r.pipelinedValue),r.snapshot))}catch(i){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(n){this.executing?this.deferredRegistrations.add(n):(this.sequences.add(n),this.scheduler.notify(7))}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Al.AFTER_NEXT_RENDER,n):n()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),Go=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,i,o=null){this.impl=t,this.hooks=n,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function Rl(e,t){!t?.injector&&ui(Rl);let n=t?.injector??g(Le);return Ke("NgAfterNextRender"),m_(e,n,t,!0)}function h_(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function m_(e,t,n,r){let i=t.get(Nl);i.impl??=t.get(Fp);let o=t.get(Vn,null,{optional:!0}),s=n?.phase??nr.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(it):null,c=new Go(i.impl,h_(e,s),r,a,o?.snapshot(null));return i.impl.register(c),c}var g_=()=>null;function Lp(e,t,n=!1){return g_(e,t,n)}function Vp(e,t){let n=e.contentQueries;if(n!==null){let r=W(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=e.data[s];yl(o),a.contentQueries(2,t[s],s)}}}finally{W(r)}}}function _c(e,t,n){yl(0);let r=W(null);try{t(e,n)}finally{W(r)}}
vendor: 6,783 bytes, line 7
7function jp(e,t,n){if(zf(t)){let r=W(null);try{let i=t.directiveStart,o=t.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{W(r)}}}var Tt=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Tt||{}),vo;function y_(){if(vo===void 0&&(vo=null,Pt.trustedTypes))try{vo=Pt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vo}function ms(e){return y_()?.createHTML(e)||e}var _o;function v_(){if(_o===void 0&&(_o=null,Pt.trustedTypes))try{_o=Pt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return _o}function Jd(e){return v_()?.createHTML(e)||e}var Lt=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ef})`}},Cc=class extends Lt{getTypeName(){return"HTML"}},bc=class extends Lt{getTypeName(){return"Style"}},Dc=class extends Lt{getTypeName(){return"Script"}},Ec=class extends Lt{getTypeName(){return"URL"}},wc=class extends Lt{getTypeName(){return"ResourceURL"}};function vt(e){return e instanceof Lt?e.changingThisBreaksApplicationSecurity:e}function on(e,t){let n=__(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Ef})`)}return n===t}function __(e){return e instanceof Lt&&e.getTypeName()||null}function Bp(e){return new Cc(e)}function Up(e){return new bc(e)}function Hp(e){return new Dc(e)}function $p(e){return new Ec(e)}function zp(e){return new wc(e)}function C_(e){let t=new Sc(e);return b_()?new Ic(t):t}var Ic=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{let n=new window.DOMParser().parseFromString(ms(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},Sc=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=ms(t),n}};function b_(){try{return!!new window.DOMParser().parseFromString(ms(""),"text/html")}catch{return!1}}var D_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function gs(e){return e=String(e),e.match(D_)?e:"unsafe:"+e}function Ht(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function pi(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Gp=Ht("area,br,col,hr,img,wbr"),Wp=Ht("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qp=Ht("rp,rt"),E_=pi(qp,Wp),w_=pi(Wp,Ht("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")),I_=pi(qp,Ht("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")),Xd=pi(Gp,w_,I_,E_),Zp=Ht("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),S_=Ht("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"),x_=Ht("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"),T_=pi(Zp,S_,x_),M_=Ht("script,style,template"),xc=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){i.push(n),n=R_(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let o=N_(n);if(o){n=o;break}n=i.pop()}}return this.buf.join("")}startElement(t){let n=ef(t).toLowerCase();if(!Xd.hasOwnProperty(n))return this.sanitizedSomething=!0,!M_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let i=0;i<r.length;i++){let o=r.item(i),s=o.name,a=s.toLowerCase();if(!T_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;Zp[a]&&(c=gs(c)),this.buf.push(" ",s,'="',tf(c),'"')}return this.buf.push(">"),!0}endElement(t){let n=ef(t).toLowerCase();Xd.hasOwnProperty(n)&&!Gp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(tf(t))}};function A_(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function N_(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Yp(t);return t}function R_(e){let t=e.firstChild;if(t&&A_(e,t))throw Yp(t);return t}function ef(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Yp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var P_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,O_=/([^\#-~ |!])/g;function tf(e){return e.replace(/&/g,"&amp;").replace(P_,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(O_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Co;function Pl(e,t){let n=null;try{Co=Co||C_(e);let r=t?String(t):"";n=Co.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Co.getInertBodyElement(r)}while(r!==o);let a=new xc().sanitizeChildren(nf(n)||n);return ms(a)}finally{if(n){let r=nf(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function nf(e){return"content"in e&&k_(e)?e.content:null}
vendor: 5,071 bytes, line 7
7function k_(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var At=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(At||{});function Ze(e){let t=Qp();return t?Jd(t.sanitize(At.HTML,e)||""):on(e,"HTML")?Jd(vt(e)):Pl(Pp(),wt(e))}function ue(e){let t=Qp();return t?t.sanitize(At.URL,e)||"":on(e,"URL")?vt(e):gs(wt(e))}function Qp(){let e=G();return e&&e[Ot].sanitizer}function Kp(e){return e.ownerDocument}function F_(e,t,n){let r=e.length;for(;;){let i=e.indexOf(t,n);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}var Jp="ng-template";function L_(e,t,n,r){let i=0;if(r){for(;i<t.length&&typeof t[i]=="string";i+=2)if(t[i]==="class"&&F_(t[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Ol(e))return!1;if(i=t.indexOf(1,i),i>-1){let o;for(;++i<t.length&&typeof(o=t[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Ol(e){return e.type===4&&e.value!==Jp}function V_(e,t,n){let r=e.type===4&&!n?Jp:e.value;return t===r}function j_(e,t,n){let r=4,i=e.attrs,o=i!==null?H_(i):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!lt(r)&&!lt(c))return!1;if(s&&lt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!V_(e,c,n)||c===""&&t.length===1){if(lt(r))return!1;s=!0}}else if(r&8){if(i===null||!L_(e,i,c,n)){if(lt(r))return!1;s=!0}}else{let l=t[++a],d=B_(c,i,Ol(e),n);if(d===-1){if(lt(r))return!1;s=!0;continue}if(l!==""){let f;if(d>o?f="":f=i[d+1].toLowerCase(),r&2&&l!==f){if(lt(r))return!1;s=!0}}}}return lt(r)||s}function lt(e){return(e&1)===0}function B_(e,t,n,r){if(t===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<t.length;){let s=t[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=t[++i];for(;typeof a=="string";)a=t[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return $_(t,e)}function U_(e,t,n=!1){for(let r=0;r<t.length;r++)if(j_(e,t[r],n))return!0;return!1}function H_(e){for(let t=0;t<e.length;t++){let n=e[t];if(kv(n))return t}return e.length}function $_(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function rf(e,t){return e?":not("+t.trim()+")":t}function z_(e){let t=e[0],n=1,r=2,i="",o=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!lt(s)&&(t+=rf(o,i),i=""),r=s,o=o||!lt(r);n++}return i!==""&&(t+=rf(o,i)),t}function G_(e){return e.map(z_).join(",")}function W_(e){let t=[],n=[],r=1,i=2;for(;r<e.length;){let o=e[r];if(typeof o=="string")i===2?o!==""&&t.push(o,e[++r]):i===8&&n.push(o);else{if(!lt(i))break;i=o}r++}return n.length&&t.push(1,...n),t}var $e={};function q_(e,t){return e.createText(t)}function Z_(e,t,n){e.setValue(t,n)}function Xp(e,t,n){return e.createElement(t,n)}function Wo(e,t,n,r,i){e.insertBefore(t,n,r,i)}function eh(e,t,n){e.appendChild(t,n)}function of(e,t,n,r,i){r!==null?Wo(e,t,n,r,i):eh(e,t,n)}function Y_(e,t,n){e.removeChild(null,t,n)}function Q_(e,t,n){e.setAttribute(t,"style",n)}function K_(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function th(e,t,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&Ov(e,t,r),i!==null&&K_(e,t,i),o!==null&&Q_(e,t,o)}function kl(e,t,n,r,i,o,s,a,c,l,d){let f=Re+r,v=f+i,h=J_(f,v),D=typeof l=="function"?l():l;return h[z]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:v,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:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:D,incompleteFirstPass:!1,ssrId:d}}function J_(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:$e);return n}function X_(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=kl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Fl(e,t,n,r,i,o,s,a,c,l,d){let f=t.blueprint.slice();return f[Bt]=i,f[H]=r|4|128|8|64|1024,(l!==null||e&&e[H]&2048)&&(f[H]|=2048),Qf(f),f[Fe]=f[pr]=e,f[Ne]=n,f[Ot]=s||e&&e[Ot],f[we]=a||e&&e[we],f[Jr]=c||e&&e[Jr]||null,f[ht]=o,f[cs]=c_(),f[Kr]=d,f[Hf]=l,f[ft]=t.type==2?e[ft]:f,f}function eC(e,t,n){let r=mt(t,e),i=X_(n),o=e[Ot].rendererFactory,s=Ll(e,Fl(e,i,null,nh(n),r,t,null,o.createRenderer(r,n),null,null,null));return e[t.index]=s}function nh(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function rh(e,t,n,r){if(n===0)return-1;let i=t.length;for(let o=0;o<n;o++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function Ll(e,t){return e[Xr]?e[jd][dt]=t:e[Xr]=t,e[jd]=t,t}
7function u(e=1){ih(Se(),G(),gt()+e,!1)}function ih(e,t,n,r){if(!r)if((t[H]&3)===3){let o=e.preOrderCheckHooks;o!==null&&wo(t,o,n)}else{let o=e.preOrderHooks;o!==null&&Io(t,o,0,n)}Pn(n)}var ys=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(ys||{});function oh(e,t,n,r){let i=W(null);try{let[o,s,a]=e.inputs[n],c=null;s&ys.SignalBased&&(c=t[o][De]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,o):Gf(t,c,o,r)}finally{W(i)}}function sh(e,t,n,r,i){let o=gt(),s=r&2;try{Pn(-1),s&&t.length>Re&&ih(e,t,Re,!1),et(s?2:0,i),n(r,i)}finally{Pn(o),et(s?3:1,i)}}function ah(e,t,n){gl()&&(_r(mt(n,t),t),ch(e,t,n))}function ch(e,t,n){sC(e,t,n),(n.flags&64)===64&&aC(e,t,n)}function lh(e,t,n=mt){let r=t.localNames;if(r!==null){let i=t.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(t,e):e[s];e[i++]=a}}}function tC(e,t,n,r){let o=r.get(p_,Op)||n===Tt.ShadowDom,s=e.selectRootElement(t,o);return nC(s),s}function nC(e){rC(e)}var rC=()=>null;function iC(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function uh(e,t,n,r,i,o,s,a){let c=t.inputs,l;if(!a&&c!=null&&(l=c[r]))Vl(e,n,l,r,i),Ln(t)&&oC(n,t.index);else if(t.type&3){let d=mt(t,n);r=iC(r),i=s!=null?s(i,t.value||"",r):i,o.setProperty(d,r,i)}else t.type&12}function oC(e,t){let n=xt(t,e);n[H]&16||(n[H]|=64)}function sC(e,t,n){let r=n.directiveStart,i=n.directiveEnd;Ln(n)&&eC(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Bo(n,t);let o=n.initialInputs;for(let s=r;s<i;s++){let a=e.data[s],c=ti(t,e,s,n);if(_r(c,t),o!==null&&dC(t,s-r,c,a,n,o),Ft(a)){let l=xt(n.index,t);l[Ne]=ti(t,e,s,n)}}}function aC(e,t,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=Ev();try{Pn(o);for(let a=r;a<i;a++){let c=e.data[a],l=t[a];lc(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&cC(c,l)}}finally{Pn(-1),lc(s)}}function cC(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function dh(e,t){let n=e.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];U_(t,o.selectors,!1)&&(r??=[],Ft(o)?r.unshift(o):r.push(o))}return r}function lC(e,t,n,r,i,o){let s=mt(e,t);uC(t[we],s,o,e.value,n,r,i)}function uC(e,t,n,r,i,o,s){if(o==null)e.removeAttribute(t,i,n);else{let a=s==null?wt(o):s(o,r||"",i);e.setAttribute(t,i,a,n)}}function dC(e,t,n,r,i,o){let s=o[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];oh(r,n,c,l)}}function fh(e,t){let n=e[Jr],r=n?n.get(pt,null):null;r&&r.handleError(t)}function Vl(e,t,n,r,i){for(let o=0;o<n.length;o+=2){let s=n[o],a=n[o+1],c=t[s],l=e.data[s];oh(l,c,a,i)}}function fC(e,t){let n=xt(t,e),r=n[z];pC(r,n);let i=n[Bt];i!==null&&n[Kr]===null&&(n[Kr]=Lp(i,n[Jr])),jl(r,n,n[Ne])}function pC(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function jl(e,t,n){vl(t);try{let r=e.viewQuery;r!==null&&_c(1,r,n);let i=e.template;i!==null&&sh(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[kt]?.finishViewCreation(e),e.staticContentQueries&&Vp(e,t),e.staticViewQueries&&_c(2,e.viewQuery,n);let o=e.components;o!==null&&hC(t,o)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[H]&=-5,_l()}}function hC(e,t){for(let n=0;n<t.length;n++)fC(e,t[n])}function vs(e,t,n,r){let i=W(null);try{let o=t.tView,a=e[H]&4096?4096:16,c=Fl(e,o,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Mn]=l;let d=e[kt];return d!==null&&(c[kt]=d.createEmbeddedView(o)),jl(o,c,n),c}finally{W(i)}}function ri(e,t){return!t||t.firstChild===null||Sp(e)}var mC;function Bl(e,t){return mC(e,t)}var Vt=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Vt||{});function ph(e){return(e.flags&32)===32}function rr(e,t,n,r,i){if(r!=null){let o,s=!1;Ut(r)?o=r:Xt(r)&&(s=!0,r=r[Bt]);let a=St(r);e===0&&n!==null?i==null?eh(t,n,a):Wo(t,n,a,i||null,!0):e===1&&n!==null?Wo(t,n,a,i||null,!0):e===2?Y_(t,a,s):e===3&&t.destroyNode(a),o!=null&&xC(t,e,o,n,i)}}function gC(e,t){hh(e,t),t[Bt]=null,t[ht]=null}function yC(e,t,n,r,i,o){r[Bt]=i,r[ht]=t,Cs(e,r,n,1,i,o)}function hh(e,t){t[Ot].changeDetectionScheduler?.notify(10),Cs(e,t,t[
vendor: 7,286 bytes, line 7
7we],2,null,null)}function vC(e){let t=e[Xr];if(!t)return za(e[z],e);for(;t;){let n=null;if(Xt(t))n=t[Xr];else{let r=t[ke];r&&(n=r)}if(!n){for(;t&&!t[dt]&&t!==e;)Xt(t)&&za(t[z],t),t=t[Fe];t===null&&(t=e),Xt(t)&&za(t[z],t),n=t&&t[dt]}t=n}}function Ul(e,t){let n=e[cr],r=n.indexOf(t);n.splice(r,1)}function _s(e,t){if(di(t))return;let n=t[we];n.destroyNode&&Cs(e,t,n,3,null,null),vC(t)}function za(e,t){if(di(t))return;let n=W(null);try{t[H]&=-129,t[H]|=256,t[Ye]&&$n(t[Ye]),CC(e,t),_C(e,t),t[z].type===1&&t[we].destroy();let r=t[Mn];if(r!==null&&Ut(t[Fe])){r!==t[Fe]&&Ul(r,t);let i=t[kt];i!==null&&i.detachView(e)}yc(t)}finally{W(n)}}function _C(e,t){let n=e.cleanup,r=t[Po];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Po]=null);let i=t[Jt];if(i!==null){t[Jt]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=t[An];if(o!==null){t[An]=null;for(let s of o)s.destroy()}}function CC(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=t[n[r]];if(!(i instanceof On)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],c=o[s+1];et(4,a,c);try{c.call(a)}finally{et(5,a,c)}}else{et(4,i,o);try{o.call(i)}finally{et(5,i,o)}}}}}function bC(e,t,n){return DC(e,t.parent,n)}function DC(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Bt];if(Ln(r)){let{encapsulation:i}=e.data[r.directiveStart+r.componentOffset];if(i===Tt.None||i===Tt.Emulated)return null}return mt(r,n)}function EC(e,t,n){return IC(e,t,n)}function wC(e,t,n){return e.type&40?mt(e,n):null}var IC=wC,sf;function Hl(e,t,n,r){let i=bC(e,r,t),o=t[we],s=r.parent||t[ht],a=EC(s,r,t);if(i!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)of(o,i,n[c],a,!1);else of(o,i,n,a,!1);sf!==void 0&&sf(o,r,t,n,i)}function Wr(e,t){if(t!==null){let n=t.type;if(n&3)return mt(t,e);if(n&4)return Tc(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Wr(e,r);{let i=e[t.index];return Ut(i)?Tc(-1,i):St(i)}}else{if(n&128)return Wr(e,t.next);if(n&32)return Bl(t,e)()||St(e[t.index]);{let r=mh(e,t);if(r!==null){if(Array.isArray(r))return r[0];let i=Rn(e[ft]);return Wr(i,r)}else return Wr(e,t.next)}}}return null}function mh(e,t){if(t!==null){let r=e[ft][ht],i=t.projection;return r.projection[i]}return null}function Tc(e,t){let n=ke+e+1;if(n<t.length){let r=t[n],i=r[z].firstChild;if(i!==null)return Wr(r,i)}return t[Nn]}function $l(e,t,n,r,i,o,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&_r(St(a),r),n.flags|=2),!ph(n))if(c&8)$l(e,t,n.child,r,i,o,!1),rr(t,e,i,a,o);else if(c&32){let l=Bl(n,r),d;for(;d=l();)rr(t,e,i,d,o);rr(t,e,i,a,o)}else c&16?SC(e,t,r,n,i,o):rr(t,e,i,a,o);n=s?n.projectionNext:n.next}}function Cs(e,t,n,r,i,o){$l(n,r,e.firstChild,t,i,o,!1)}function SC(e,t,n,r,i,o){let s=n[ft],c=s[ht].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let d=c[l];rr(t,e,i,d,o)}else{let l=c,d=s[Fe];Sp(r)&&(l.flags|=128),$l(e,t,l,d,i,o,!0)}}function xC(e,t,n,r,i){let o=n[Nn],s=St(n);o!==s&&rr(t,e,r,o,i);for(let a=ke;a<n.length;a++){let c=n[a];Cs(c[z],c,e,t,r,o)}}function TC(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:Vt.DashCase;i==null?e.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=Vt.Important),e.setStyle(n,r,i,o))}}function qo(e,t,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=t[n.index];o!==null&&r.push(St(o)),Ut(o)&&MC(o,r);let s=n.type;if(s&8)qo(e,t,n.child,r);else if(s&32){let a=Bl(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=mh(t,n);if(Array.isArray(a))r.push(...a);else{let c=Rn(t[ft]);qo(c[z],c,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function MC(e,t){for(let n=ke;n<e.length;n++){let r=e[n],i=r[z].firstChild;i!==null&&qo(r[z],r,i,t)}e[Nn]!==e[Bt]&&t.push(e[Nn])}var gh=[];function AC(e){return e[Ye]??NC(e)}function NC(e){let t=gh.pop()??Object.create(PC);return t.lView=e,t}function RC(e){e.lView[Ye]!==e&&(e.lView=null,gh.push(e))}var PC=J($({},Zt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{fi(e.lView)},consumerOnSignalRead(){this.lView[Ye]=this}});function OC(e){let t=e[Ye]??Object.create(kC);return t.lView=e,t}var kC=J($({},Zt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Rn(e.lView);for(;t&&!yh(t[z]);)t=Rn(t);t&&ml(t)},consumerOnSignalRead(){this.lView[Ye]=this}});function yh(e){return e.type!==2}function vh(e){if(e[An]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[An])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[H]&8192)}}var FC=100;function _h(e,t=!0,n=0){let i=e[Ot].rendererFactory,o=!1;o||i.begin?.();try{LC(e,n)}catch(s){throw t&&fh(e,s),s}finally{o||i.end?.()}}function LC(e,t){let n=np();try{Fo(!0),Mc(e,t);let r=0;for(;us(e);){if(r===FC)throw new R(103,!1);r++,Mc(e,1)}}finally{Fo(n)}}function VC(e,t,n,r){if(di(t))return;let i=t[H],o=!1,s=!1;vl(t);let a=!0,c=null,l=null;o||(yh(e)?(l=AC(t),c=Yt(l)):$u()===null?(a=!1,l=OC(t),c=Yt(l)):t[Ye]&&($n(t[Ye]),t[Ye]=null));try{Qf(t),Cv(e.bindingStartIndex),n!==null&&sh(e,t,n,2,r);let d=(i&3)===3;if(!o)if(d){let h=e.preOrderCheckHooks;h!==null&&wo(t,h,null)}else{let h=e.preOrderHooks;h!==null&&Io(t,h,0,null),Ua(t,0)}if(s||jC(t),vh(t),Ch(t,0),e.contentQueries!==null&&Vp(e,t),!o)if(d){let h=e.contentCheckHooks;h!==null&&wo(t,h)}else{let h=e.contentHooks;h!==null&&Io(t,h,1),Ua(t,1)}UC(e,t);let f=e.components;f!==null&&Dh(t,f,0);let v=e.viewQuery;if(v!==null&&_c(2,v,r),!o)if(d){let h=e.viewCheckHooks;h!==null&&wo(t,h)}else{let h=e.viewHooks;h!==null&&Io(t,h,2),Ua(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Eo]){for(let h of t[Eo])h();t[Eo]=null}o||(t[H]&=-73)}catch(d){throw o||fi(t),d}finally{l!==null&&(vn(l,c),a&&RC(l)),_l()}}function Ch(e,t){for(let n=Mp(e);n!==null;n=Ap(n))for(let r=ke;r<n.length;r++){let i=n[r];bh(i,t)}}function jC(e){for(let t=Mp(e);t!==null;t=Ap(t)){if(!(t[H]&2))continue;let n=t[cr];for(let r=0;r<n.length;r++){let i=n[r];ml(i)}}}function BC(e,t,n){let r=xt(t,e);bh(r,n)}function bh(e,t){hl(e)&&Mc(e,t)}function Mc(e,t){let r=e[z],i=e[H],o=e[Ye],s=!!(t===0&&i&16);if(s||=!!(i&64&&t===0),s||=!!(i&1024),s||=!!(o?.dirty&&Hn(o)),s||=!1,o&&(o.dirty=!1),e[H]&=-9217,s)VC(r,e,r.template,e[Ne]);else if(i&8192){vh(e),Ch(e,1);let a=r.components;a!==null&&Dh(e,a,1)}}function Dh(e,t,n){for(let r=0;r<t.length;r++)BC(e,t[r],n)}function UC(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Pn(~i);else{let o=i,s=n[++r],a=n[++r];Dv(s,o);let c=t[o];et(24,c),a(2,c),et(25,c)}}}finally{Pn(-1)}}function zl(e,t){let n=np()?64:1088;for(e[Ot].changeDetectionScheduler?.notify(t);e;){e[H]|=n;let r=Rn(e);if(ko(e)&&!r)return e;e=r}return null}function Eh(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function wh(e,t){let n=ke+t;if(n<e.length)return e[n]}function bs(e,t,n,r=!0){let i=t[z];if(HC(i,t,e,n),r){let s=Tc(n,e),a=t[we],c=a.parentNode(e[Nn]);c!==null&&yC(i,e[ht],a,t,c,s)}let o=t[Kr];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function Ih(e,t){let n=ii(e,t);return n!==void 0&&_s(n[z],n),n}function ii(e,t){if(e.length<=ke)return;
7let n=ke+t,r=e[n];if(r){let i=r[Mn];i!==null&&i!==e&&Ul(i,r),t>0&&(e[n-1][dt]=r[dt]);let o=No(e,ke+t);gC(r[z],r);let s=o[kt];s!==null&&s.detachView(o[z]),r[Fe]=null,r[dt]=null,r[H]&=-129}return r}function HC(e,t,n,r){let i=ke+r,o=n.length;r>0&&(n[i-1][dt]=t),r<o-ke?(t[dt]=n[i],Rf(n,ke+r,t)):(n.push(t),t[dt]=null),t[Fe]=n;let s=t[Mn];s!==null&&n!==s&&Sh(s,t);let a=t[kt];a!==null&&a.insertView(e),ac(t),t[H]|=128}function Sh(e,t){let n=e[cr],r=t[Fe];if(Xt(r))e[H]|=2;else{let i=r[Fe][ft];t[ft]!==i&&(e[H]|=2)}n===null?e[cr]=[t]:n.push(t)}var kn=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[z];return qo(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[Ne]}get dirty(){return!!(this._lView[H]&9280)||!!this._lView[Ye]?.dirty}set context(t){this._lView[Ne]=t}get destroyed(){return di(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Fe];if(Ut(t)){let n=t[Oo],r=n?n.indexOf(this):-1;r>-1&&(ii(t,r),No(n,r))}this._attachedToViewContainer=!1}_s(this._lView[z],this._lView)}onDestroy(t){Kf(this._lView,t)}markForCheck(){zl(this._cdRefInjectingView||this._lView,4)}markForRefresh(){ml(this._cdRefInjectingView||this._lView)}detach(){this._lView[H]&=-129}reattach(){ac(this._lView),this._lView[H]|=128}detectChanges(){this._lView[H]|=1024,_h(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new R(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=ko(this._lView),n=this._lView[Mn];n!==null&&!t&&Ul(n,this._lView),hh(this._lView[z],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new R(902,!1);this._appRef=t;let n=ko(this._lView),r=this._lView[Mn];r!==null&&!n&&Sh(r,this._lView),ac(this._lView)}},oi=(()=>{class e{static __NG_ELEMENT_ID__=GC}return e})(),$C=oi,zC=class extends $C{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let i=vs(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new kn(i)}};function GC(){return Gl(Qe(),G())}function Gl(e,t){return e.type&4?new zC(t,e,vr(e,t)):null}function Ds(e,t,n,r,i){let o=e.data[t];if(o===null)o=WC(e,t,n,r,i),bv()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=yv();o.injectorIndex=s===null?-1:s.injectorIndex}return hr(o,!0),o}function WC(e,t,n,r,i){let o=ep(),s=tp(),a=s?o:o&&o.parent,c=e.data[t]=ZC(e,a,n,t,r,i);return qC(e,c,o,s),c}function qC(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function ZC(e,t,n,r,i,o){let s=t?t.injectorIndex:-1,a=0;return hv()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var dN=new RegExp(`^(\\d+)*(${f_}|${d_})*(.*)`);var YC=()=>null;function si(e,t){return YC(e,t)}var Ac=class{},Zo=class{},Nc=class{resolveComponentFactory(t){throw Error(`No component factory found for ${tt(t)}.`)}},en=class{static NULL=new Nc},ur=class{},hi=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>QC()}return e})();function QC(){let e=G(),t=Qe(),n=xt(t.index,e);return(Xt(n)?n:e)[we]}var KC=(()=>{class e{static \u0275prov=N({token:e,providedIn:"root",factory:()=>null})}return e})();function af(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,o=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")o=a;else if(o==1)i=ec(i,a);else if(o==2){let c=a,l=t[++s];r=ec(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function de(e,t=K.Default){let n=G();if(n===null)return j(e,t);let r=Qe();return vp(r,n,Ue(e),t)}function xh(e,t,n,r,i){let o=r===null?null:{"":-1},s=i(e,n);if(s!==null){let[a,c]=XC(e,n,s);t0(e,t,n,a,o,c)}o!==null&&r!==null&&JC(n,r,o)}function JC(e,t,n){let r=e.localNames=[];for(let i=0;i<t.length;i+=2){let o=n[t[i+1]];if(o==null)throw new R(-301,!1);r.push(t[i],o)}}function XC(e,t,n){let r=[],i=null;for(let o of n)o.findHostDirectiveDefs!==null&&(i??=new Map,o.findHostDirectiveDefs(o,r,i)),Ft(o)&&(r.push(o),e0(e,t,r.length-1));return Ln(t)?r.push(...n.slice(1)):r.push(...n),[r,i]}
7function e0(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function t0(e,t,n,r,i,o){for(let l=0;l<r.length;l++)fc(Bo(n,t),e,r[l].type);c0(n,e.data.length,r.length);for(let l=0;l<r.length;l++){let d=r[l];d.providersResolver&&d.providersResolver(d)}let s=!1,a=!1,c=rh(e,t,r.length,null);for(let l=0;l<r.length;l++){let d=r[l];n.mergedAttrs=ei(n.mergedAttrs,d.hostAttrs),i0(e,n,t,c,d),a0(c,d,i),d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let f=d.type.prototype;!s&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),s=!0),!a&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),a=!0),c++}n0(e,n,o)}function n0(e,t,n){let r=t.directiveStart,i=t.directiveEnd,o=e.data,s=t.attrs,a=[],c=null,l=null;for(let d=r;d<i;d++){let f=o[d],v=n?n.get(f):null,h=v?v.inputs:null,D=v?v.outputs:null;c=cf(0,f.inputs,d,c,h),l=cf(1,f.outputs,d,l,D);let I=c!==null&&s!==null&&!Ol(t)?r0(c,d,s):null;a.push(I)}c!==null&&(c.hasOwnProperty("class")&&(t.flags|=8),c.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=c,t.outputs=l}function cf(e,t,n,r,i){for(let o in t){if(!t.hasOwnProperty(o))continue;let s=t[o];if(s===void 0)continue;r??={};let a=o;if(i!==null){if(!i.hasOwnProperty(o))continue;a=i[o]}e===0?lf(r,n,a,o):lf(r,n,a,s)}return r}function lf(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function r0(e,t,n){let r=null,i=0;for(;i<n.length;){let o=n[i];if(o===0){i+=4;continue}else if(o===5){i+=2;continue}if(typeof o=="number")break;if(e.hasOwnProperty(o)){let s=e[o];for(let a=0;a<s.length;a+=2)if(s[a]===t){r??=[],r.push(s[a+1],n[i+1]);break}}i+=2}return r}function i0(e,t,n,r,i){e.data[r]=i;let o=i.factory||(i.factory=xn(i.type,!0)),s=new On(o,Ft(i),de);e.blueprint[r]=s,n[r]=s,o0(e,t,r,rh(e,n,i.hostVars,$e),i)}function o0(e,t,n,r,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;s0(s)!=a&&s.push(a),s.push(n,r,o)}}function s0(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function a0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Ft(t)&&(n[""]=e)}}function c0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Th(e,t,n,r,i,o,s,a){let c=t.consts,l=lr(c,s),d=Ds(t,e,2,r,l);return o&&xh(t,n,d,lr(c,a),i),d.mergedAttrs=ei(d.mergedAttrs,d.attrs),d.attrs!==null&&af(d,d.attrs,!1),d.mergedAttrs!==null&&af(d,d.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,d),d}function Mh(e,t){up(e,t),zf(t)&&e.queries.elementEnd(t)}var Rc=class extends en{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=sr(t);return new Yo(n,this.ngModule)}};function l0(e){return Object.keys(e).map(t=>{let[n,r,i]=e[t],o={propName:n,templateName:t,isSignal:(r&ys.SignalBased)!==0};return i&&(o.transform=i),o})}function u0(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function d0(e,t,n){let r=t instanceof It?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new uc(n,r):n}function f0(e){let t=e.get(ur,null);if(t===null)throw new R(407,!1);let n=e.get(KC,null),r=e.get(nt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function p0(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return Xp(t,n,n==="svg"?ov:n==="math"?sv:null)}var Yo=class extends Zo{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;get inputs(){return l0(this.componentDef.inputs)}get outputs(){return u0(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=G_(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,i){let o=W(null);try{let s=this.componentDef,a=r?["ng-version","19.1.7"]:W_(this.componentDef.selectors[0]),c=kl(0,null,null,1,0,null,null,null,null,[a],null),l=d0(s,i||this.ngModule,t),d=f0(l),f=d.rendererFactory.createRenderer(null,s),v=r?tC(f,r,s.encapsulation,l):p0(s,f),h=Fl(null,c,null,512|nh(s),null,null,d,f,l,null,Lp(v,l,!0));h[Re]=v,vl(h);let D=null;try{let I=Th(Re,c,h,"#host",()=>[this.componentDef],!0,0);v&&(th(f,v,I),_r(v,h)),ch(c,h,I),jp(c,I,h),Mh(c,I),n!==void 0&&h0(I,this.ngContentSelectors,n),D=xt(I.index,h),h[Ne]=D[Ne],jl(c,h,null)}catch(I){throw D!==null&&yc(D),yc(h),I}finally{_l()}return new Pc(this.componentType,h)}finally{W(o)}}},Pc=class extends Ac{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=fl(n[z],Re),this.location=vr(this._tNode,n),this.instance=xt(this._tNode.index,n)[Ne],this.hostView=this.changeDetectorRef=new kn(n,void 0,!1),this.componentType=t}
vendor: 7,534 bytes, line 7
7setInput(t,n){let r=this._tNode.inputs,i;if(r!==null&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView;Vl(o[z],o,i,t,n),this.previousInputValues.set(t,n);let s=xt(this._tNode.index,o);zl(s,1)}}get injector(){return new Sn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function h0(e,t,n){let r=e.projection=[];for(let i=0;i<t.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Es=(()=>{class e{static __NG_ELEMENT_ID__=m0}return e})();function m0(){let e=Qe();return Nh(e,G())}var g0=Es,Ah=class extends g0{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return vr(this._hostTNode,this._hostLView)}get injector(){return new Sn(this._hostTNode,this._hostLView)}get parentInjector(){let t=El(this._hostTNode,this._hostLView);if(fp(t)){let n=Vo(t,this._hostLView),r=Lo(t),i=n[z].data[r+8];return new Sn(i,n)}else return new Sn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=uf(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ke}createEmbeddedView(t,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=si(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,ri(this._hostTNode,s)),a}createComponent(t,n,r,i,o){let s=t&&!tv(t),a;if(s)a=n;else{let D=n||{};a=D.index,r=D.injector,i=D.projectableNodes,o=D.environmentInjector||D.ngModuleRef}let c=s?t:new Yo(sr(t)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let I=(s?l:this.parentInjector).get(It,null);I&&(o=I)}let d=sr(c.componentType??{}),f=si(this._lContainer,d?.id??null),v=f?.firstChild??null,h=c.create(l,i,v,o);return this.insertImpl(h.hostView,a,ri(this._hostTNode,f)),h}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let i=t._lView;if(av(i)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=i[Fe],l=new Ah(c,c[ht],c[Fe]);l.detach(l.indexOf(t))}}let o=this._adjustIndex(n),s=this._lContainer;return bs(s,i,o,r),t.attachToViewContainerRef(),Rf(Ga(s),o,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=uf(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=ii(this._lContainer,n);r&&(No(Ga(this._lContainer),n),_s(r[z],r))}detach(t){let n=this._adjustIndex(t,-1),r=ii(this._lContainer,n);return r&&No(Ga(this._lContainer),n)!=null?new kn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function uf(e){return e[Oo]}function Ga(e){return e[Oo]||(e[Oo]=[])}function Nh(e,t){let n,r=t[e.index];return Ut(r)?n=r:(n=Eh(r,t,null,e),t[e.index]=n,Ll(t,n)),v0(n,t,e,r),new Ah(n,e,t)}function y0(e,t){let n=e[we],r=n.createComment(""),i=mt(t,e),o=n.parentNode(i);return Wo(n,o,r,n.nextSibling(i),!1),r}var v0=b0,_0=()=>!1;function C0(e,t,n){return _0(e,t,n)}function b0(e,t,n,r){if(e[Nn])return;let i;n.type&8?i=St(r):i=y0(t,n),e[Nn]=i}var Oc=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},kc=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Oh(t,n).matches!==null&&this.queries[n].setDirty()}},Fc=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=T0(t):this.predicate=t}},Lc=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(t,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},Vc=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(t,n,D0(n,o)),this.matchTNodeWithReadOption(t,n,So(n,t,o,!1,!1))}else r===oi?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,So(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===Mt||i===Es||i===oi&&n.type&4)this.addMatch(n.index,-2);else{let o=So(n,t,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function D0(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function E0(e,t){return e.type&11?vr(e,t):e.type&4?Gl(e,t):null}function w0(e,t,n,r){return n===-1?E0(t,e):n===-2?I0(e,t,r):ti(e,e[z],n,t)}function I0(e,t,n){if(n===Mt)return vr(t,e);if(n===oi)return Gl(t,e);if(n===Es)return Nh(t,e)}function Rh(e,t,n,r){let i=t[kt].queries[r];if(i.matches===null){let o=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let d=o[l];a.push(w0(t,d,s[c+1],n.metadata.read))}}i.matches=a}return i.matches}function jc(e,t,n,r){let i=e.queries.getByIndex(n),o=i.matches;if(o!==null){let s=Rh(e,t,i,n);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)r.push(s[a/2]);else{let l=o[a+1],d=t[-c];for(let f=ke;f<d.length;f++){let v=d[f];v[Mn]===v[Fe]&&jc(v[z],v,l,r)}if(d[cr]!==null){let f=d[cr];for(let v=0;v<f.length;v++){let h=f[v];jc(h[z],h,l,r)}}}}}return r}function Ph(e,t){return e[kt].queries[t].queryList}function S0(e,t,n){let r=new gc((n&4)===4);return uv(e,t,r,r.destroy),(t[kt]??=new kc).queries.push(new Oc(r))-1}function x0(e,t,n){let r=Se();return r.firstCreatePass&&(M0(r,new Fc(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),S0(r,G(),t)}function T0(e){return e.split(",").map(t=>t.trim())}function M0(e,t,n){e.queries===null&&(e.queries=new Lc),e.queries.track(new Vc(t,n))}function Oh(e,t){return e.queries.getByIndex(t)}function A0(e,t){let n=e[z],r=Oh(n,t);return r.crossesNgTemplate?jc(n,e,t,[]):Rh(n,e,r,t)}function kh(e,t,n){let r,i=Ea(()=>{r._dirtyCounter();let o=O0(r,e);if(t&&o===void 0)throw new R(-951,!1);return o}
vendor: 4,271 bytes, line 7
7);return r=i[De],r._dirtyCounter=V(0),r._flatValue=void 0,i}function N0(e){return kh(!0,!1,e)}function R0(e){return kh(!0,!0,e)}function P0(e,t){let n=e[De];n._lView=G(),n._queryIndex=t,n._queryList=Ph(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function O0(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[H]&4)return t?void 0:He;let i=Ph(n,r),o=A0(n,r);return i.reset(o,i_),t?i.first:i._changesDetected||e._flatValue===void 0?e._flatValue=i.toArray():e._flatValue}function df(e,t){return N0(t)}function k0(e,t){return R0(t)}var Cr=(df.required=k0,df);function Fh(e,t){let n=Object.create(wf),r=new zo;n.value=e;function i(){return yn(n),ff(n.value),n.value}return i[De]=n,i.asReadonly=hs.bind(i),i.set=o=>{n.equal(n.value,o)||(zn(n,o),r.emit(o))},i.update=o=>{ff(n.value),i.set(o(n.value))},i.subscribe=r.subscribe.bind(r),i.destroyRef=r.destroyRef,i}function ff(e){if(e===rs)throw new R(952,!1)}function pf(e,t){return Fh(e,t)}function F0(e){return Fh(rs,e)}var ws=(pf.required=F0,pf);var dr=class{};var Qo=class extends dr{injector;componentFactoryResolver=new Rc(this);instance=null;constructor(t){super();let n=new Qr([...t.providers,{provide:dr,useValue:this},{provide:en,useValue:this.componentFactoryResolver}],t.parent||ul(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function L0(e,t,n=null){return new Qo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var V0=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Lf(!1,n.type),i=r.length>0?L0([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=N({token:e,providedIn:"environment",factory:()=>new e(j(It))})}return e})();function ne(e){return is(()=>{let t=Lh(e),n=J($({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===xp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?i=>i.get(V0).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Tt.Emulated,styles:e.styles||He,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Ke("NgStandalone"),Vh(n);let r=e.dependencies;return n.directiveDefs=hf(r,!1),n.pipeDefs=hf(r,!0),n.id=$0(n),n})}function j0(e){return sr(e)||kf(e)}function B0(e){return e!==null}function sn(e){return is(()=>({type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function U0(e,t){if(e==null)return Tn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],o,s,a,c;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,c=i[3]||null):(o=i,s=i,a=ys.None,c=null),n[o]=[r,a,c],t[o]=s}return n}function H0(e){if(e==null)return Tn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function _t(e){return is(()=>{let t=Lh(e);return Vh(t),t})}function br(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Lh(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Tn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:U0(e.inputs,t),outputs:H0(e.outputs),debugInfo:null}}function Vh(e){e.features?.forEach(t=>t(e))}function hf(e,t){if(!e)return null;let n=t?Ff:j0;return()=>(typeof e=="function"?e():e).map(r=>
7n(r)).filter(B0)}function $0(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let o of r.join("|"))t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function z0(e){return Object.getPrototypeOf(e.prototype).constructor}function an(e){let t=z0(e.type),n=!0,r=[e];for(;t;){let i;if(Ft(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new R(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);let s=e;s.inputs=Wa(e.inputs),s.declaredInputs=Wa(e.declaredInputs),s.outputs=Wa(e.outputs);let a=i.hostBindings;a&&Y0(e,a);let c=i.viewQuery,l=i.contentQueries;if(c&&q0(e,c),l&&Z0(e,l),G0(e,i),by(e.outputs,i.outputs),Ft(i)&&i.data.animation){let d=e.data;d.animation=(d.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(e),a===an&&(n=!1)}}t=Object.getPrototypeOf(t)}W0(r)}function G0(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function W0(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=ei(i.hostAttrs,n=ei(n,i.hostAttrs))}}function Wa(e){return e===Tn?{}:e===He?[]:e}function q0(e,t){let n=e.viewQuery;n?e.viewQuery=(r,i)=>{t(r,i),n(r,i)}:e.viewQuery=t}function Z0(e,t){let n=e.contentQueries;n?e.contentQueries=(r,i,o)=>{t(r,i,o),n(r,i,o)}:e.contentQueries=t}function Y0(e,t){let n=e.hostBindings;n?e.hostBindings=(r,i)=>{t(r,i),n(r,i)}:e.hostBindings=t}function Wl(e,t,n){return e[t]=n}function Q0(e,t){return e[t]}function rt(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function ql(e,t,n,r){let i=rt(e,t,n);return rt(e,t+1,r)||i}function K0(e,t,n,r,i){let o=ql(e,t,n,r);return rt(e,t+2,i)||o}function J0(e,t,n,r,i,o,s,a,c){let l=t.consts,d=Ds(t,e,4,s||null,a||null);gl()&&xh(t,n,d,lr(l,c),dh),d.mergedAttrs=ei(d.mergedAttrs,d.attrs),up(t,d);let f=d.tView=kl(2,d,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,d),f.queries=t.queries.embeddedTView(d)),d}function Bc(e,t,n,r,i,o,s,a,c,l){let d=n+Re,f=t.firstCreatePass?J0(d,t,e,r,i,o,s,a,c):t.data[d];hr(f,!1);let v=X0(t,e,f,n);bl()&&Hl(t,e,v,f),_r(v,e);let h=Eh(v,e,v,f);return e[d]=h,Ll(e,h),C0(h,f,e),dl(f)&&ah(t,e,f),c!=null&&lh(e,f,l),f}function S(e,t,n,r,i,o,s,a){let c=G(),l=Se(),d=lr(l.consts,o);return Bc(c,l,e,t,n,r,i,d,s,a),S}var X0=eb;function eb(e,t,n,r){return Dl(!0),t[we].createComment("")}var jh=new L("");function mi(e){return!!e&&typeof e.then=="function"}function Bh(e){return!!e&&typeof e.subscribe=="function"}var tb=new L("");var Uh=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=g(tb,{optional:!0})??[];injector=g(Le);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=as(this.injector,i);if(mi(o))n.push(o);else if(Bh(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Hh=(()=>{class e{static \u0275prov=N({token:e,providedIn:"root",factory:()=>new Ko})}return e})(),Ko=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},$h=new L("");function nb(){Ju(()=>{throw new R(600,!1)})}function rb(e){return e.isBoundToModule}var ib=10;var jt=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(t_);
7afterRenderManager=g(Nl);zonelessEnabled=g(ps);rootEffectScheduler=g(Hh);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new We;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=g(rn).hasPendingTasks.pipe(Me(n=>!n));constructor(){g(Vn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=g(It);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){let i=n instanceof Zo;if(!this._injector.get(Uh).done){let v=!i&&zy(n),h=!1;throw new R(405,h)}let s;i?s=n:s=this._injector.get(en).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=rb(s)?void 0:this._injector.get(dr),c=r||s.selector,l=s.create(Le.NULL,[],c,a),d=l.location.nativeElement,f=l.injector.get(jh,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),xo(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(Al.CHANGE_DETECTION,this._tick),r.dispose();return}if(this._runningTick)throw new R(101,!1);let n=W(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,W(n),this.afterTick.next()}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ur,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let n=0;for(;this.dirtyFlags!==0&&n++<ib;)this.synchronizeOnce()}synchronizeOnce(){if(this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0,this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:i}of this.allViews)ob(r,i,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>us(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;xo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get($h,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>xo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new R(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ob(e,t,n,r){if(!n&&!us(e))return;_h(e,t,n&&!r?0:1)}function ie(e,t,n,r){let i=G(),o=mr();if(rt(i,o,t)){let s=Se(),a=Cl();lC(a,i,e,t,n,r)}return ie}function zh(e,t,n,r){return rt(e,mr(),n)?t+wt(n)+r:$e}function sb(e,t,n,r,i,o){let s=rp(),a=ql(e,s,n,i);return fs(2),a?t+wt(n)+r+wt(i)+o:$e}function ab(e,t,n,r,i,o,s,a){let c=rp(),l=K0(e,c,n,i,s);return fs(3),l?t+wt(n)+r+wt(i)+o+wt(s)+a:$e}function bo(e,t){return e<<17|t<<2}function Fn(e){return e>>17&32767}function cb(e){return(e&2)==2}function lb(e,t){return e&131071|t<<17}function Uc(e){return e|2}function fr(e){return(e&131068)>>2}function qa(e,t){return e&-131069|t<<2}function ub(e){return(e&1)===1}function Hc(e){return e|1}function db(e,t,n,r,i,o){let s=o?t.classBindings:t.styleBindings,a=Fn(s),c=fr(s);e[r]=n;let l=!1,d;if(Array.isArray(n)){let f=n;d=f[1],(d===null||ci(f,d)>0)&&(l=!0)}else d=n;if(i)if(c!==0){let v=Fn(e[a+1]);e[r+1]=bo(v,a),v!==0&&(e[v+1]=qa(e[v+1],r)),e[a+1]=lb(e[a+1],r)}else e[r+1]=bo(a,0),a!==0&&(e[a+1]=qa(e[a+1],r)),a=r;else e[r+1]=bo(c,0),a===0?a=r:e[c+1]=qa(e[c+1],r),c=r;l&&(e[r+1]=Uc(e[r+1])),mf(e,d,r,!0),mf(e,d,r,!1),fb(t,d,e,r,o),s=bo(a,c
vendor: 6,194 bytes, line 7
7),o?t.classBindings=s:t.styleBindings=s}function fb(e,t,n,r,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof t=="string"&&ci(o,t)>=0&&(n[r+1]=Hc(n[r+1]))}function mf(e,t,n,r){let i=e[n+1],o=t===null,s=r?Fn(i):fr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],l=e[s+1];pb(c,t)&&(a=!0,e[s+1]=r?Hc(l):Uc(l)),s=r?Fn(l):fr(l)}a&&(e[n+1]=r?Uc(i):Hc(i))}function pb(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ci(e,t)>=0:!1}var ut={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function hb(e){return e.substring(ut.key,ut.keyEnd)}function mb(e){return gb(e),Gh(e,Wh(e,0,ut.textEnd))}function Gh(e,t){let n=ut.textEnd;return n===t?-1:(t=ut.keyEnd=yb(e,ut.key=t,n),Wh(e,t,n))}function gb(e){ut.key=0,ut.keyEnd=0,ut.value=0,ut.valueEnd=0,ut.textEnd=e.length}function Wh(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function yb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function A(e,t,n){let r=G(),i=mr();if(rt(r,i,t)){let o=Se(),s=Cl();uh(o,s,r,e,t,r[we],n,!1)}return A}function $c(e,t,n,r,i){let o=t.inputs,s=i?"class":"style";Vl(e,n,o[s],s,r)}function Ve(e,t,n){return qh(e,t,n,!1),Ve}function X(e,t){return qh(e,t,null,!0),X}function vb(e,t){for(let n=mb(t);n>=0;n=Gh(t,n))al(e,hb(t),!0)}function qh(e,t,n,r){let i=G(),o=Se(),s=fs(2);if(o.firstUpdatePass&&Yh(o,e,s,r),t!==$e&&rt(i,s,t)){let a=o.data[gt()];Qh(o,a,i,i[we],e,i[s+1]=Sb(t,n),r,s)}}function _b(e,t,n,r){let i=Se(),o=fs(2);i.firstUpdatePass&&Yh(i,null,o,r);let s=G();if(n!==$e&&rt(s,o,n)){let a=i.data[gt()];if(Kh(a,r)&&!Zh(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ec(c,n||"")),$c(i,a,s,n,r)}else Ib(i,a,s,s[we],s[o+1],s[o+1]=wb(e,t,n),r,o)}}function Zh(e,t){return t>=e.expandoStartIndex}function Yh(e,t,n,r){let i=e.data;if(i[n+1]===null){let o=i[gt()],s=Zh(e,n);Kh(o,r)&&t===null&&!s&&(t=!1),t=Cb(i,o,t,r),db(i,o,t,n,s,r)}}function Cb(e,t,n,r){let i=wv(e),o=r?t.residualClasses:t.residualStyles;if(i===null)(r?t.classBindings:t.styleBindings)===0&&(n=Za(null,e,t,n,r),n=ai(n,t.attrs,r),o=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==i)if(n=Za(i,e,t,n,r),o===null){let c=bb(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Za(null,e,t,c[1],r),c=ai(c,t.attrs,r),Db(e,t,r,c))}else o=Eb(e,t,r)}return o!==void 0&&(r?t.residualClasses=o:t.residualStyles=o),n}function bb(e,t,n){let r=n?t.classBindings:t.styleBindings;if(fr(r)!==0)return e[Fn(r)]}function Db(e,t,n,r){let i=n?t.classBindings:t.styleBindings;e[Fn(i)]=r}function Eb(e,t,n){let r,i=t.directiveEnd;for(let o=1+t.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;r=ai(r,s,n)}return ai(r,t.attrs,n)}function Za(e,t,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=t[a],r=ai(r,o.hostAttrs,i),o!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ai(e,t,n){let r=n?1:2,i=-1;if(t!==null)for(let o=0;o<t.length;o++){let s=t[o];typeof s=="number"?i=s:i===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),al(e,s,n?!0:t[++o]))}return e===void 0?null:e}function wb(e,t,n){if(n==null||n==="")return He;let r=[],i=vt(n);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(r,i[o],!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&e(r,o,i[o]);else typeof i=="string"&&t(r,i);return r}function Ib(e,t,n,r,i,o,s,a){i===$e&&(i=He);let c=0,l=0,d=0<i.length?i[0]:null,f=0<o.length?o[0]:null;for(;d!==null||f!==null;){let v=c<i.length?i[c+1]:void 0,h=l<o.length?o[l+1]:void 0,D=null,I;d===f?(c+=2,l+=2,v!==h&&(D=f,I=h)):f===null||d!==null&&d<f?(c+=2,D=d):(l+=2,D=f,I=h),D!==null&&Qh(e,t,n,r,D,I,s,a),d=c<i.length?i[c]:null,f=l<o.length?o[l]:null}}function Qh(e,t,n,r,i,o,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],d=ub(l)?gf(c,t,n,i,fr(l),s):void 0;if(!Jo(d)){Jo(o)||cb(l)&&(o=gf(c,null,n,i,a,s));let f=Yf(gt(),n);TC(r,s,f,i,o)}}function gf(e,t,n,r,i,o){let s=t===null,a;for(;i>0;){let c=e[i],l=Array.isArray(c),d=l?c[1]:c,f=d===null,v=n[i+1];v===$e&&(v=f?He:void 0);let h=f?ja(v,r):d===r?v:void 0;if(l&&!Jo(h)&&(h=ja(c,r)),Jo(h)&&(a=h,s))return a;let D=e[i+1];i=s?Fn(D):fr(D)}if(t!==null){let c=o?t.residualClasses:t.residualStyles;c!=null&&(a=ja(c,r))}return a}function Jo(e){return e!==void 0}function Sb(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=tt(vt(e)))),e}function Kh(e,t){return(e.flags&(t?8:16))!==0}function Is(e,t,n){let r=G(),i=zh(r,e,t,n);_b(al,vb,i,!0)}var zc=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),i=Math.max(t,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(t,n){this.attach(n,this.detach(t))}};function Ya(e,t,n,r,i){return e===n&&Object.is(t,r)?1:Object.is(i(e,t),i(n,r))?-1:0}function xb(e,t,n){let r,i,o=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;o<=s&&o<=c;){let l=e.at(o),d=t[o],f=Ya(o,l,o,d,n);if(f!==0){f<0&&e.updateValue(o,d),o++;continue}let v=e.at(s),h=t[c],D=Ya(s,v,c,h,n);if(D!==0){D<0&&e.updateValue(s,h),s--,c--;continue}let I=n(o,l),P=n(s,v),U=n(o,d);if(Object.is(U,P)){let ce=n(c,h);Object.is(ce,I)?(e.swap(o,s),e.updateValue(s,h),c--,s--):e.move(s,o),e.updateValue(o,d),o++;continue}if(r??=new Xo,i??=vf(e,o,s,n),Gc(e,r,o,U))e.updateValue(o,d),o++,s++;else if(i.has(U))r.set(I,e.detach(o)),s--;else{let ce=e.create(o,t[o]);e.attach(o,ce),o++,s++}}for(;o<=c;)yf(e,r,n,o,t[o]),o++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&o<=s;){let d=e.at(o),f=l.value,v=Ya(o,d,o,f,n);if(v!==0)v<0&&e.updateValue(o,f),o++,l=c.next();else{r??=new Xo,i??=vf(e,o,s,n);let h=n(o,f);if(Gc(e,r,o,h))e.updateValue(o,f),o++,s++,l=c.next();else if(!i.has(h))e.attach(o,e.create(o,f)),o++,s++,l=c.next();else{let D=n(o,d);r.set(D,e.detach(o)),s--}}}for(;!l.done;)yf(e,r,n,e.length,l.value),l=c.next()}for(;o<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Gc(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function yf(e,t,n,r,i){if(Gc(e,t,r,n(r,i)))e.updateValue(r,i);else{let o=e.create(r,i);e.attach(r,o)}}function vf(e,t,n,r){let i=new Set;for(let o=t;o<=n;o++)i.add(r(o,e.at(o)));return i}var Xo=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}
7delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),t(r,n)}}};function C(e,t){Ke("NgControlFlow");let n=G(),r=mr(),i=n[r]!==$e?n[r]:-1,o=i!==-1?es(n,Re+i):void 0,s=0;if(rt(n,r,e)){let a=W(null);try{if(o!==void 0&&Ih(o,s),e!==-1){let c=Re+e,l=es(n,c),d=Yc(n[z],c),f=si(l,d.tView.ssrId),v=vs(n,d,t,{dehydratedView:f});bs(l,v,s,ri(d,f))}}finally{W(a)}}else if(o!==void 0){let a=wh(o,s);a!==void 0&&(a[Ne]=t)}}var Wc=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-ke}};function ze(e){return e}function Jh(e,t){return t}var qc=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function oe(e,t,n,r,i,o,s,a,c,l,d,f,v){Ke("NgControlFlow");let h=G(),D=Se(),I=c!==void 0,P=G(),U=a?s.bind(P[ft][Ne]):s,ce=new qc(I,U);P[Re+e]=ce,Bc(h,D,e+1,t,n,r,i,lr(D.consts,o)),I&&Bc(h,D,e+2,c,l,d,f,lr(D.consts,v))}var Zc=class extends zc{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-ke}at(t){return this.getLView(t)[Ne].$implicit}attach(t,n){let r=n[Kr];this.needsIndexUpdate||=t!==this.length,bs(this.lContainer,n,t,ri(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Tb(this.lContainer,t)}create(t,n){let r=si(this.lContainer,this.templateTNode.tView.ssrId),i=vs(this.hostLView,this.templateTNode,new Wc(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),i}destroy(t){_s(t[z],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[Ne].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Ne].$index=t}getLView(t){return Mb(this.lContainer,t)}};function se(e){let t=W(null),n=gt();try{let r=G(),i=r[z],o=r[n],s=n+1,a=es(r,s);if(o.liveCollection===void 0){let l=Yc(i,s);o.liveCollection=new Zc(a,r,l)}else o.liveCollection.reset();let c=o.liveCollection;if(xb(c,e,o.trackByFn),c.updateIndexes(),o.hasEmptyBlock){let l=mr(),d=c.length===0;if(rt(r,l,d)){let f=n+2,v=es(r,f);if(d){let h=Yc(i,f),D=si(v,h.tView.ssrId),I=vs(r,h,void 0,{dehydratedView:D});bs(v,I,0,ri(h,D))}else Ih(v,0)}}}finally{W(t)}}function es(e,t){return e[t]}function Tb(e,t){return ii(e,t)}function Mb(e,t){return wh(e,t)}function Yc(e,t){return fl(e,t)}function p(e,t,n,r){let i=G(),o=Se(),s=Re+e,a=i[we],c=o.firstCreatePass?Th(s,o,i,t,dh,gl(),n,r):o.data[s],l=Ab(o,i,c,a,t,e);i[s]=l;let d=dl(c);return hr(c,!0),th(a,l,c),!ph(c)&&bl()&&Hl(o,i,l,c),dv()===0&&_r(l,i),fv(),d&&(ah(o,i,c),jp(o,c,i)),r!==null&&lh(i,c),p}function m(){let e=Qe();tp()?vv():(e=e.parent,hr(e,!1));let t=e;mv(t)&&gv(),pv();let n=Se();return n.firstCreatePass&&Mh(n,t),t.classesWithoutHost!=null&&Rv(t)&&$c(n,t,G(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Pv(t)&&$c(n,t,G(),t.stylesWithoutHost,!1),m}function E(e,t,n,r){return p(e,t,n,r),m(),E}var Ab=(e,t,n,r,i,o)=>(Dl(!0),Xp(r,i,Tv()));function Y(){return G()}var In=void 0;function Nb(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var Rb=["en",[["a","p"],["AM","PM"],In],[["AM","PM"],In,In],[["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"]],In,[["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"]],In,[["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}
7, {0}",In,"{1} 'at' {0}",In],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",Nb],Qa={};function Ss(e){let t=Pb(e),n=_f(t);if(n)return n;let r=t.split("-")[0];if(n=_f(r),n)return n;if(r==="en")return Rb;throw new R(701,!1)}function _f(e){return e in Qa||(Qa[e]=Pt.ng&&Pt.ng.common&&Pt.ng.common.locales&&Pt.ng.common.locales[e]),Qa[e]}var jn=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(jn||{});function Pb(e){return e.toLowerCase().replace(/_/g,"-")}var ts="en-US",Ob="USD";var kb=ts;function Fb(e){typeof e=="string"&&(kb=e.toLowerCase().replace(/_/g,"-"))}var Lb=(e,t,n)=>{};function O(e,t,n,r){let i=G(),o=Se(),s=Qe();return Xh(o,i,i[we],s,e,t,r),O}function Vb(e,t,n,r){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=t[Po],c=i[o+2];return a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function Xh(e,t,n,r,i,o,s){let a=dl(r),l=e.firstCreatePass&&Xf(e),d=t[Ne],f=Jf(t),v=!0;if(r.type&3||s){let I=mt(r,t),P=s?s(I):I,U=f.length,ce=s?Oe=>s(St(Oe[r.index])):r.index,le=null;if(!s&&a&&(le=Vb(e,t,i,r.index)),le!==null){let Oe=le.__ngLastListenerFn__||le;Oe.__ngNextListenerFn__=o,le.__ngLastListenerFn__=o,v=!1}else{o=bf(r,t,d,o),Lb(I,i,o);let Oe=n.listen(P,i,o);f.push(o,Oe),l&&l.push(i,ce,U,U+1)}}else o=bf(r,t,d,o);let h=r.outputs,D;if(v&&h!==null&&(D=h[i])){let I=D.length;if(I)for(let P=0;P<I;P+=2){let U=D[P],ce=D[P+1],Je=t[U][ce].subscribe(o),Wt=f.length;f.push(o,Je),l&&l.push(i,r.index,Wt,-(Wt+1))}}}function Cf(e,t,n,r){let i=W(null);try{return et(6,t,n),n(r)!==!1}catch(o){return fh(e,o),!1}finally{et(7,t,n),W(i)}}function bf(e,t,n,r){return function i(o){if(o===Function)return r;let s=Ln(e)?xt(e.index,t):t;zl(s,5);let a=Cf(t,n,r,o),c=i.__ngNextListenerFn__;for(;c;)a=Cf(t,n,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function y(e=1){return xv(e)}function Dr(e,t,n,r){P0(e,x0(t,n,r))}function Er(e=1){yl(Iv()+e)}function Zl(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function _(e,t=""){let n=G(),r=Se(),i=e+Re,o=r.firstCreatePass?Ds(r,i,1,t,null):r.data[i],s=jb(r,n,o,t,e);n[i]=s,bl()&&Hl(r,n,s,o),hr(o,!1)}var jb=(e,t,n,r,i)=>(Dl(!0),q_(t[we],r));function T(e){return B("",e,""),T}function B(e,t,n){let r=G(),i=zh(r,e,t,n);return i!==$e&&Ql(r,gt(),i),B}function wr(e,t,n,r,i){let o=G(),s=sb(o,e,t,n,r,i);return s!==$e&&Ql(o,gt(),s),wr}function Yl(e,t,n,r,i,o,s){let a=G(),c=ab(a,e,t,n,r,i,o,s);return c!==$e&&Ql(a,gt(),c),Yl}function Ql(e,t,n){let r=Yf(t,e);Z_(e[we],r,n)}function xs(e,t,n){Ip(t)&&(t=t());let r=G(),i=mr();if(rt(r,i,t)){let o=Se(),s=Cl();uh(o,s,r,e,t,r[we],n,!1)}return xs}function Kl(e,t){let n=Ip(e);return n&&e.set(t),n}function Ts(e,t){let n=G(),r=Se(),i=Qe();return Xh(r,n,n[we],i,e,t),Ts}var em={};function ae(e){let t=Se(),n=G(),r=e+Re,i=Ds(t,r,128,null,null);return hr(i,!1),Zl(t,n,r,em),ae}function Q(e){Ke("NgLet");let t=Se(),n=G(),r=gt();return Zl(t,n,r,e),e}function M(e){let t=_v(),n=pl(t,Re+e);if(n===em)throw new R(314,!1);return n}function Bb(e,t,n){let r=Se();if(r.firstCreatePass){let i=Ft(e);Qc(n,r.data,r.blueprint,i,!0),Qc(t,r.data,r.blueprint,i,!1)}}function Qc(e,t,n,r,i){if(e=Ue(e),Array.isArray(e))for(let o=0;o<e.length;o++)Qc(e[o],t,n,r,i);else{let o=Se(),s=G(),a=Qe(),c=ar(e)?e:Ue(e.provide),l=Bf(e),d=a.providerIndexes&1048575,f=a.directiveStart,v=a.providerIndexes>>20;if(ar(e)||!e.multi){let h=new On(l,i,de),D=Ja(c,t,i?d:d+v,f);D===-1?(fc(Bo(a,s),o,c),Ka(o,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(h),s.push(h)):(n[D]=h,s[D]=h)}else{let h=Ja(c,t,d+v,f),D=Ja(c,t,d,d+v),I=h>=0&&n[h],P=D>=0&&n[D];if(i&&!P||!i&&!I){fc(Bo(a,s),o,c);let U=$b(i?Hb:Ub,n.length,i,r,l);!i&&P&&(n[D].providerFactory=U),Ka(o,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(U),s.push(U)}else{let U=tm(n[i?D:h],l,!i&&r);Ka(o,e,h>-1?h:D,U)}!i&&r&&P&&n[D].componentProviders++}}}function Ka(e,t,n,r){let i=ar(t),o=Zy(t);if(i||o){let c=(o?Ue(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){let d=l.indexOf(n);d===-1?l.push(n,[r,c]):l[d+1].push(r,c)}else l.push(n,c)}}}function tm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ja(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function Ub(e,t,n,r){return Kc(this.multi,[])}function Hb(e,t,n,r){let i=this.multi,o;if(this.providerFactory){let s=this.providerFactory.componentProviders,a=ti(n,n[z],this.providerFactory.index,r);o=a.slice(0,s),Kc(i,o);for(let c=s;c<a.length;c++)o.push(a[c])}else o=[],Kc(i,o);return o}function Kc(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function $b(e,t,n,r,i){let o=new On(e,n,de);return o.multi=[],o.index=t,o.componentProviders=0,tm(o,i,r&&!n),o}
vendor: 4,846 bytes, line 7
7function Ir(e,t=[]){return n=>{n.providersResolver=(r,i)=>Bb(r,i?i(e):e,t)}}function nm(e,t,n){let r=ds()+e,i=G();return i[r]===$e?Wl(i,r,n?t.call(n):t()):Q0(i,r)}function cn(e,t,n,r){return im(G(),ds(),e,t,n,r)}function rm(e,t){let n=e[t];return n===$e?void 0:n}function im(e,t,n,r,i,o){let s=t+n;return rt(e,s,i)?Wl(e,s+1,o?r.call(o,i):r(i)):rm(e,s+1)}function zb(e,t,n,r,i,o,s){let a=t+n;return ql(e,a,i,o)?Wl(e,a+2,s?r.call(s,i,o):r(i,o)):rm(e,a+2)}function w(e,t){let n=Se(),r,i=e+Re;n.firstCreatePass?(r=Gb(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];let o=r.factory||(r.factory=xn(r.type,!0)),s,a=qe(de);try{let c=jo(!1),l=o();return jo(c),Zl(n,G(),i,l),l}finally{qe(a)}}function Gb(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function x(e,t,n){let r=e+Re,i=G(),o=pl(i,r);return om(i,r)?im(i,ds(),t,o.transform,n,o):o.transform(n)}function $t(e,t,n,r){let i=e+Re,o=G(),s=pl(o,i);return om(o,i)?zb(o,ds(),t,s.transform,n,r,s):s.transform(n,r)}function om(e,t){return e[z].data[t].pure}var Wb=(()=>{class e{zone=g(be);changeDetectionScheduler=g(nt);applicationRef=g(jt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function qb({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new be(J($({},Zb()),{scheduleInRootZone:n})),[{provide:be,useFactory:e},{provide:Yr,multi:!0,useFactory:()=>{let r=g(Wb,{optional:!0});return()=>r.initialize()}},{provide:Yr,multi:!0,useFactory:()=>{let r=g(Yb);return()=>{r.initialize()}}},t===!0?{provide:Dp,useValue:!0}:[],{provide:wl,useValue:n??bp}]}function Zb(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Yb=(()=>{class e{subscription=new Te;initialized=!1;zone=g(be);pendingTasks=g(rn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{be.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{be.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sm=(()=>{class e{appRef=g(jt);taskService=g(rn);ngZone=g(be);zonelessEnabled=g(ps);tracing=g(Vn,{optional:!0});disableScheduling=g(Dp,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Te;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Ho):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(wl,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof $o||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Wd:Ep;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDef
7ined&&Zone.current.get(Ho+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Wd(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function am(){return Ke("NgZoneless"),li([{provide:nt,useExisting:sm},{provide:be,useClass:$o},{provide:ps,useValue:!0},{provide:wl,useValue:!1},[]])}function Qb(){return typeof $localize<"u"&&$localize.locale||ts}var Ms=new L("",{providedIn:"root",factory:()=>g(Ms,K.Optional|K.SkipSelf)||Qb()}),cm=new L("",{providedIn:"root",factory:()=>Ob});var Jc=new L(""),Kb=new L("");function zr(e){return!e.moduleRef}function Jb(e){let t=zr(e)?e.r3Injector:e.moduleRef.injector,n=t.get(be);return n.run(()=>{zr(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(pt,null),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:o=>{r.handleError(o)}})}),zr(e)){let o=()=>t.destroy(),s=e.platformInjector.get(Jc);s.add(o),t.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Jc);s.add(o),e.moduleRef.onDestroy(()=>{xo(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return eD(r,n,()=>{let o=t.get(Uh);return o.runInitializers(),o.donePromise.then(()=>{let s=t.get(Ms,ts);if(Fb(s||ts),!t.get(Kb,!0))return zr(e)?t.get(jt):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(zr(e)){let c=t.get(jt);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return Xb(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function Xb(e,t){let n=e.injector.get(jt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new R(-403,!1);t.push(e)}function eD(e,t,n){try{let r=n();return mi(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var To=null;function tD(e=[],t){return Le.create({name:t,providers:[{provide:ss,useValue:"platform"},{provide:Jc,useValue:new Set([()=>To=null])},...e]})}function nD(e=[]){if(To)return To;let t=tD(e);return To=t,nb(),rD(t),t}function rD(e){let t=e.get(Tl,null);as(e,()=>{t?.forEach(n=>n())})}var Sr=(()=>{class e{static __NG_ELEMENT_ID__=iD}return e})();function iD(e){return oD(Qe(),G(),(e&16)===16)}function oD(e,t,n){if(Ln(e)&&!n){let r=xt(e.index,t);return new kn(r,r)}else if(e.type&175){let r=t[ft];return new kn(r,t)}return null}function lm(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,i=nD(r),o=[qb({}),{provide:nt,useExisting:sm},...n||[]],s=new Qo({providers:o,parent:i,debugName:"",runEnvironmentInitializers:!1});return Jb({r3Injector:s.injector,platformInjector:i,rootComponent:t})}catch(t){return Promise.reject(t)}}function b(e,t){Ke("NgSignals");let n=Ea(e);return t?.equal&&(n[De].equal=t.equal),n}var sD=e=>e;function Jl(e,t){if(Ke("NgSignals"),typeof e=="function"){let n=Ia(e,sD,t?.equal);return Df(n)}else{let n=Ia(e.source,e.computation,e.equal);return Df(n)}}function Df(e){let t=e[De],n=e;return n.set=r=>ed(t,r),n.update=r=>td(t,r),n.asReadonly=hs.bind(e),n}function Ce(e){let t=W(null);try{return e()}finally{W(t)}}var um=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=aD}return e})();function aD(){return new um(G(),Qe())}var cD=!1,lD=(()=>{class e extends Ko{pendingTasks=g(rn);taskId=null;schedule(n){super.schedule(n),this.taskId===null&&(this.taskId=this.pendingTasks.add(),queueMicrotask(()=>this.flush()))}flush(){try{super.flush()}finally{this.taskId!==null&&(this.pendingTasks.remove(this.taskId),this.taskId=null)}}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),Xc=class{scheduler;effectFn;zone;injector;unregisterOnDestroy;watcher;
7constructor(t,n,r,i,o,s){this.scheduler=t,this.effectFn=n,this.zone=r,this.injector=o,this.watcher=nd(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(pt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.schedule(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function uD(){}function dD(e,t){Ke("NgSignals"),!t?.injector&&ui(uD);let n=t?.injector??g(Le),r=t?.manualCleanup!==!0?n.get(it):null,i=new Xc(n.get(lD),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),o=n.get(Sr,null,{optional:!0});return!o||!(o._lView[H]&8)?i.watcher.notify():(o._lView[Eo]??=[]).push(i.watcher.notify),i}var fD=cD;var el=class{[De];constructor(t){this[De]=t}destroy(){this[De].destroy()}};function Pe(e,t){if(fD)return dD(e,t);Ke("NgSignals"),!t?.injector&&ui(Pe);let n=t?.injector??g(Le),r=t?.manualCleanup!==!0?n.get(it):null,i,o=n.get(um,null,{optional:!0}),s=n.get(nt);return o!==null&&!t?.forceRoot?(i=mD(o.view,s,e),r instanceof Uo&&r._lView===o.view&&(r=null)):i=gD(e,n.get(Hh),s),i.injector=n,r!==null&&(i.onDestroyFn=r.onDestroy(()=>i.destroy())),new el(i)}var dm=J($({},Zt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:ni,run(){if(this.dirty=!1,this.hasRun&&!Hn(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=Yt(this),n=Fo(!1);try{this.maybeCleanup(),this.fn(e)}finally{Fo(n),vn(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),pD=J($({},dm),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(13)},destroy(){$n(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),hD=J($({},dm),{consumerMarkedDirty(){this.view[H]|=8192,fi(this.view),this.notifier.notify(14)},destroy(){$n(this),this.onDestroyFn(),this.maybeCleanup(),this.view[An]?.delete(this)}});function mD(e,t,n){let r=Object.create(hD);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[An]??=new Set,e[An].add(r),r.consumerMarkedDirty(r),r}function gD(e,t,n){let r=Object.create(pD);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(13),r}var Xa=Symbol("NOT_SET"),fm=new Set,yD=J($({},$i),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:Xa,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase<this.phase)return;this.sequence.erroredOrDestroyed=!0}this.sequence.scheduler.notify(7)},phaseFn(e){if(this.sequence.lastPhase=this.phase,!this.dirty)return this.signal;if(this.dirty=!1,this.value!==Xa&&!Hn(this))return this.signal;try{for(let i of this.cleanup??fm)i()}finally{this.cleanup?.clear()}let t=[];e!==void 0&&t.push(e),t.push(this.registerCleanupFn);let n=Yt(this),r;try{r=this.userFn.apply(null,t)}finally{vn(this,n)}return(this.value===Xa||!this.equal(this.value,r))&&(this.value=r,this.version++),this.signal}}),tl=class extends Go{scheduler;lastPhase=null;nodes=[void 0,void 0,void 0,void 0];constructor(t,n,r,i,o=null){super(t,[void 0,void 0,void 0,void 0],!1,i,o),this.scheduler=r;for(let s of kp){let a=n[s];if(a===void 0)continue;let c=Object.create(yD);c.sequence=this,c.phase=s,c.userFn=a,c.dirty=!0,c.signal=()=>(yn(c),c.value),c.signal[De]=c,c.registerCleanupFn=l=>(c.cleanup??=new Set).add(l),this.nodes[s]=c,this.hooks[s]=l=>c.phaseFn(l)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let t of this.nodes)for(let n of t?.cleanup??fm)n()}};function Xl(e,t){!t?.injector&&ui(Xl);let n=t?.injector??g(Le),r=n.get(nt),i=n.get(Nl),o=n.get(Vn,null,{optional:!0});i.impl??=n.get(Fp);let s=e;typeof s=="function"&&(s={mixedReadWrite:e});let a=new tl(i.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],r,n.get(it),o?.snapshot(null));return i.impl.register(a),a}var _e=function(e){return e[e.Idle=0]="Idle",e[e.Error=1]="Error",e[e.Loading=2]="Loading",e[e.Reloading=3]="Reloading",e[e.Resolved=4]="Resolved",e[e.Local=5]="Local",e}(_e||{});function Nt(e){e?.injector||ui(Nt);let t=e.request??(()=>null);return new rl(t,e.loader,void 0,e.equal?vD(e.equal):void 0,e.injector??g(Le))}var nl=class{value;constructor(t){this.value=t,this.value.set=this.set.bind(this),this.value.update=this.update.bind(this),this.value.asReadonly=hs}update(t){this.set(t(Ce(this.value)))}isLoading=b(()=>this.status()===_e.Loading||this.status()===_e.Reloading);hasValue(){return this.value()!==void 0}asReadonly(){return this}},rl=class extends nl{loaderFn;defaultValue;equal;state;extendedRequest;pendingTasks;effectRef;pendingController;resolvePendingTask=void 0;destroyed=!1;constructor(t,n,r,i,o){super(b(()=>this.state().value,{equal:i})),this.loaderFn=n,this.defaultValue=r,this.equal=i,this.pendingTasks=o.get(Zv),this.extendedRequest=b(()=>({request:t(),reload:V(0)})),this.state=Jl({source:()=>{let{request:s,reload:a}=this.extendedRequest();return s===void 0||this.destroyed?_e.Idle:a()===0?_e.Loading:_e.Reloading},computation:(s,a)=>({status:s,previousStatus:a?.value.status??_e.Idle,value:a&&s===_e.Reloading?a.value.value:this.defaultValue,error:void 0})}),this.effectRef=Pe(this.loadEffect.bind(this),{injector:o,manualCleanup:!0}
7),o.get(it).onDestroy(()=>this.destroy())}status=b(()=>this.state().status);error=b(()=>this.state().error);set(t){if(this.destroyed)return;let n=Ce(this.state);(this.equal?this.equal(n.value,t):n.value===t)||(this.state.set({status:_e.Local,previousStatus:_e.Local,value:t,error:void 0}),this.abortInProgressLoad())}reload(){let t=Ce(this.status);return t===_e.Idle||t===_e.Loading||t===_e.Reloading?!1:(Ce(this.extendedRequest).reload.update(n=>n+1),!0)}destroy(){this.destroyed=!0,this.effectRef.destroy(),this.abortInProgressLoad(),this.state.set({status:_e.Idle,previousStatus:_e.Idle,value:this.defaultValue,error:void 0})}async loadEffect(){let{status:t}=Ce(this.state),{request:n,reload:r}=this.extendedRequest();if(r(),n===void 0)return;if(t!==_e.Loading&&t!==_e.Reloading)return;this.abortInProgressLoad();let i=this.resolvePendingTask=this.pendingTasks.add(),{signal:o}=this.pendingController=new AbortController;try{let s=await Ce(()=>this.loaderFn({abortSignal:o,request:n,previous:{status:t}}));if(o.aborted)return;this.state.set({status:_e.Resolved,previousStatus:_e.Resolved,value:s,error:void 0})}catch(s){if(o.aborted)return;this.state.set({status:_e.Error,previousStatus:_e.Error,value:this.defaultValue,error:s})}finally{i(),this.pendingController=void 0}}abortInProgressLoad(){Ce(()=>this.pendingController?.abort()),this.pendingController=void 0,this.resolvePendingTask?.(),this.resolvePendingTask=void 0}};function vD(e){return(t,n)=>t===void 0||n===void 0?t===n:e(t,n)}var mm=null;function Tr(){return mm}function gm(e){mm??=e}var As=class{};var Ct=new L("");var ym={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]},vm=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}(vm||{});var zt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function gi(e,t){let n=Ss(e),r=n[jn.NumberSymbols][t];if(typeof r>"u"){if(t===zt.CurrencyDecimal)return n[jn.NumberSymbols][zt.Decimal];if(t===zt.CurrencyGroup)return n[jn.NumberSymbols][zt.Group]}return r}function CD(e,t){return Ss(e)[jn.NumberFormats][t]}function bD(e){return Ss(e)[jn.Currencies]}function DD(e,t,n="en"){let r=bD(n)[e]||ym[e]||[],i=r[1];return t==="narrow"&&typeof i=="string"?i:r[0]||e}var ED=2;function wD(e){let t,n=ym[e];return n&&(t=n[2]),typeof t=="number"?t:ED}var ID=/^(\d+)?\.((\d+)(-(\d+))?)?$/,pm=22,Ns=".",yi="0",SD=";",xD=",",eu="#",hm="\xA4";function TD(e,t,n,r,i,o,s=!1){let a="",c=!1;if(!isFinite(e))a=gi(n,zt.Infinity);else{let l=RD(e);s&&(l=ND(l));let d=t.minInt,f=t.minFrac,v=t.maxFrac;if(o){let ce=o.match(ID);if(ce===null)throw new Error(`${o} is not a valid digit info`);let le=ce[1],Oe=ce[3],Je=ce[5];le!=null&&(d=tu(le)),Oe!=null&&(f=tu(Oe)),Je!=null?v=tu(Je):Oe!=null&&f>v&&(v=f)}PD(l,f,v);let h=l.digits,D=l.integerLen,I=l.exponent,P=[];
7for(c=h.every(ce=>!ce);D<d;D++)h.unshift(0);for(;D<0;D++)h.unshift(0);D>0?P=h.splice(D,h.length):(P=h,h=[0]);let U=[];for(h.length>=t.lgSize&&U.unshift(h.splice(-t.lgSize,h.length).join(""));h.length>t.gSize;)U.unshift(h.splice(-t.gSize,h.length).join(""));h.length&&U.unshift(h.join("")),a=U.join(gi(n,r)),P.length&&(a+=gi(n,i)+P.join("")),I&&(a+=gi(n,zt.Exponential)+"+"+I)}return e<0&&!c?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function MD(e,t,n,r,i){let o=CD(t,vm.Currency),s=AD(o,gi(t,zt.MinusSign));return s.minFrac=wD(r),s.maxFrac=s.minFrac,TD(e,s,t,zt.CurrencyGroup,zt.CurrencyDecimal,i).replace(hm,n).replace(hm,"").trim()}function AD(e,t="-"){let n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(SD),i=r[0],o=r[1],s=i.indexOf(Ns)!==-1?i.split(Ns):[i.substring(0,i.lastIndexOf(yi)+1),i.substring(i.lastIndexOf(yi)+1)],a=s[0],c=s[1]||"";n.posPre=a.substring(0,a.indexOf(eu));for(let d=0;d<c.length;d++){let f=c.charAt(d);f===yi?n.minFrac=n.maxFrac=d+1:f===eu?n.maxFrac=d+1:n.posSuf+=f}let l=a.split(xD);if(n.gSize=l[1]?l[1].length:0,n.lgSize=l[2]||l[1]?(l[2]||l[1]).length:0,o){let d=i.length-n.posPre.length-n.posSuf.length,f=o.indexOf(eu);n.negPre=o.substring(0,f).replace(/'/g,""),n.negSuf=o.slice(f+d).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function ND(e){if(e.digits[0]===0)return e;let t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(t===0?e.digits.push(0,0):t===1&&e.digits.push(0),e.integerLen+=2),e}function RD(e){let t=Math.abs(e)+"",n=0,r,i,o,s,a;for((i=t.indexOf(Ns))>-1&&(t=t.replace(Ns,"")),(o=t.search(/e/i))>0?(i<0&&(i=o),i+=+t.slice(o+1),t=t.substring(0,o)):i<0&&(i=t.length),o=0;t.charAt(o)===yi;o++);if(o===(a=t.length))r=[0],i=1;else{for(a--;t.charAt(a)===yi;)a--;for(i-=o,r=[],s=0;o<=a;o++,s++)r[s]=Number(t.charAt(o))}return i>pm&&(r=r.splice(0,pm-1),n=i-1,i=1),{digits:r,exponent:n,integerLen:i}}function PD(e,t,n){if(t>n)throw new Error(`The minimum number of digits after fraction (${t}) is higher than the maximum (${n}).`);let r=e.digits,i=r.length-e.integerLen,o=Math.min(Math.max(t,i),n),s=o+e.integerLen,a=r[s];if(s>0){r.splice(Math.max(e.integerLen,s));for(let f=s;f<r.length;f++)r[f]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,s=o+1),r[0]=0;for(let f=1;f<s;f++)r[f]=0}if(a>=5)if(s-1<0){for(let f=0;f>s;f--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[s-1]++;for(;i<Math.max(0,o);i++)r.push(0);let c=o!==0,l=t+e.integerLen,d=r.reduceRight(function(f,v,h,D){return v=v+f,D[h]=v<10?v:v-10,c&&(D[h]===0&&h>=l?D.pop():c=!1),v>=10?1:0},0);d&&(r.unshift(d),e.integerLen++)}function tu(e){let t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}function Rs(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===t)return decodeURIComponent(o)}return null}function OD(e,t){return new R(2100,!1)}var _m=(()=>{class e{_locale;_defaultCurrencyCode;constructor(n,r="USD"){this._locale=n,this._defaultCurrencyCode=r}transform(n,r=this._defaultCurrencyCode,i="symbol",o,s){if(!kD(n))return null;s||=this._locale,typeof i=="boolean"&&(i=i?"symbol":"code");let a=r||this._defaultCurrencyCode;i!=="code"&&(i==="symbol"||i==="symbol-narrow"?a=DD(a,i==="symbol"?"wide":"narrow",s):a=i);try{let c=FD(n);return MD(c,s,a,r,o)}catch(c){throw OD(e,c.message)}}static \u0275fac=function(r){return new(r||e)(de(Ms,16),de(cm,16))};static \u0275pipe=br({name:"currency",type:e,pure:!0})}return e})();function kD(e){return!(e==null||e===""||e!==e)}function FD(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new Error(`${e} is not a number`);return e}var ru="browser",LD="server";function Cm(e){return e===ru}function iu(e){return e===LD}var xr=class{};var Ci=class{},bi=class{},Dt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
8`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=n.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)}
vendor: 4,065 bytes, line 8
8)):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let i=(t.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=t.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=t.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(t,i)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var au=class{encodeKey(t){return bm(t)}encodeValue(t){return bm(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function jD(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[t.decodeKey(i),""]:[t.decodeKey(i.slice(0,o)),t.decodeValue(i.slice(o+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var BD=/%(\d[a-f0-9])/gi,UD={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function bm(e){return encodeURIComponent(e).replace(BD,(t,n)=>UD[n]??t)}function Ps(e){return`${e}`}var bt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new au,t.fromString){if(t.fromObject)throw new R(2805,!1);this.map=jD(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],i=Array.isArray(r)?r.map(Ps):[Ps(r)];this.map.set(n,i)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let i=t[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>
vendor: 7,623 bytes, line 8
8this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Ps(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],i=r.indexOf(Ps(t.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var cu=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function HD(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Dm(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Em(e){return typeof Blob<"u"&&e instanceof Blob}function wm(e){return typeof FormData<"u"&&e instanceof FormData}function $D(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var vi="Content-Type",Os="Accept",du="X-Request-URL",Tm="text/plain",Mm="application/json",Am=`${Mm}, ${Tm}, */*`,_i=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(t,n,r,i){this.url=n,this.method=t.toUpperCase();let o;if(HD(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Dt,this.context??=new cu,!this.params)this.params=new bt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Dm(this.body)||Em(this.body)||wm(this.body)||$D(this.body)?this.body:this.body instanceof bt?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||wm(this.body)?null:Em(this.body)?this.body.type||null:Dm(this.body)?null:typeof this.body=="string"?Tm:this.body instanceof bt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Mm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,i=t.responseType||this.responseType,o=t.transferCache??this.transferCache,s=t.body!==void 0?t.body:this.body,a=t.withCredentials??this.withCredentials,c=t.reportProgress??this.reportProgress,l=t.headers||this.headers,d=t.params||this.params,f=t.context??this.context;return t.setHeaders!==void 0&&(l=Object.keys(t.setHeaders).reduce((v,h)=>v.set(h,t.setHeaders[h]),l)),t.setParams&&(d=Object.keys(t.setParams).reduce((v,h)=>v.set(h,t.setParams[h]),d)),new e(n,r,s,{params:d,headers:l,context:f,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},un=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(un||{}),Di=class{headers;status;statusText;url;ok;type;constructor(t,n=200,r="OK"){this.headers=t.headers||new Dt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}},ks=class e extends Di{constructor(t={}){super(t)}type=un.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Ei=class e extends Di{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=un.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},ln=class extends Di{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Nm=200,zD=204;function ou(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}var Bn=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof _i)o=n;else{let c;i.headers instanceof Dt?c=i.headers:c=new Dt(i.headers);let l;i.params&&(i.params instanceof bt?l=i.params:l=new bt({fromObject:i.params})),o=new _i(n,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=ct(o).pipe($r(c=>this.handler.handle(c)));if(n instanceof _i||i.observe==="events")return s;let a=s.pipe(ka(c=>c instanceof Ei));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Me(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new R(2806,!1);return c.body}));case"blob":return a.pipe(Me(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new R(2807,!1);return c.body}));case"text":return a.pipe(Me(c=>{if(c.body!==null&&typeof c.body!="string")throw new R(2808,!1);return c.body}));case"json":default:return a.pipe(Me(c=>c.body))}case"response":return a;default:throw new R(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new bt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,ou(i,r))}post(n,r,i={}){return this.request("POST",n,ou(i,r))}put(n,r,i={}){return this.request("PUT",n,ou(i,r))}static \u0275fac=function(r){return new(r||e)(j(Ci))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),GD=/^\)\]\}',?\n/;function Im(e){if(e.url)return e.url;let t=du.toLocaleLowerCase();return e.headers.get(t)}var Rm=new L(""),su=(()=>{class e{fetchImpl=g(lu,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=g(be);handle(n){return new te(r=>{let i=new AbortController;return this.doRequest(n,i.signal,r).then(uu,o=>r.error(new ln({error:o}))),()=>i.abort()})}async doRequest(n,r,i){let o=this.createRequestInit(n),s;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,$({signal:r},o)));WD(h),i.next({type:un.Sent}),s=await h}catch(h){i.error(new ln({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let a=new Dt(s.headers),c=s.statusText,l=Im(s)??n.urlWithParams,d=s.status,f=null;if(n.reportProgress&&i.next(new ks({headers:a,status:d,statusText:c,url:l})),s.body){let h=s.headers.get("content-length"),D=[],I=s.body.getReader(),P=0,U,ce,le=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:Je,value:Wt}=await I.read();if(Je)break;
8if(D.push(Wt),P+=Wt.length,n.reportProgress){ce=n.responseType==="text"?(ce??"")+(U??=new TextDecoder).decode(Wt,{stream:!0}):void 0;let Bu=()=>i.next({type:un.DownloadProgress,total:h?+h:void 0,loaded:P,partialText:ce});le?le.run(Bu):Bu()}}});let Oe=this.concatChunks(D,P);try{let Je=s.headers.get(vi)??"";f=this.parseBody(n,Oe,Je)}catch(Je){i.error(new ln({error:Je,headers:new Dt(s.headers),status:s.status,statusText:s.statusText,url:Im(s)??n.urlWithParams}));return}}d===0&&(d=f?Nm:0),d>=200&&d<300?(i.next(new Ei({body:f,headers:a,status:d,statusText:c,url:l})),i.complete()):i.error(new ln({error:f,headers:a,status:d,statusText:c,url:l}))}parseBody(n,r,i){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(GD,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},i=n.withCredentials?"include":void 0;if(n.headers.forEach((o,s)=>r[o]=s.join(",")),n.headers.has(Os)||(r[Os]=Am),!n.headers.has(vi)){let o=n.detectContentTypeHeader();o!==null&&(r[vi]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:i}}concatChunks(n,r){let i=new Uint8Array(r),o=0;for(let s of n)i.set(s,o),o+=s.length;return i}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),lu=class{};function uu(){}function WD(e){e.then(uu,uu)}function qD(e,t){return t(e)}function ZD(e,t,n){return(r,i)=>as(n,()=>t(r,o=>e(o,i)))}var Pm=new L(""),YD=new L(""),QD=new L("",{providedIn:"root",factory:()=>!0});var Sm=(()=>{class e extends Ci{backend;injector;chain=null;pendingTasks=g(rn);contributeToStability=g(QD);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Pm),...this.injector.get(YD,[])]));this.chain=r.reduceRight((i,o)=>ZD(i,o,this.injector),qD)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(Fa(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(j(bi),j(It))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();var KD=/^\)\]\}',?\n/,JD=RegExp(`^${du}:`,"m");function XD(e){return"responseURL"in e&&e.responseURL?e.responseURL:JD.test(e.getAllResponseHeaders())?e.getResponseHeader(du):null}var xm=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new R(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?at(r.\u0275loadImpl()):ct(null)).pipe(Qt(()=>new te(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((I,P)=>s.setRequestHeader(I,P.join(","))),n.headers.has(Os)||s.setRequestHeader(Os,Am),!n.headers.has(vi)){let I=n.detectContentTypeHeader();I!==null&&s.setRequestHeader(vi,I)}if(n.responseType){let I=n.responseType.toLowerCase();s.responseType=I!=="json"?I:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let I=s.statusText||"OK",P=new Dt(s.getAllResponseHeaders()),U=XD(s)||n.url;return c=new ks({headers:P,status:s.status,statusText:I,url:U}),c},d=()=>{let{headers:I,status:P,statusText:U,url:ce}=l(),le=null;P!==zD&&(le=typeof s.response>"u"?s.responseText:s.response),P===0&&(P=le?Nm:0);let Oe=P>=200&&P<300;if(n.responseType==="json"&&typeof le=="string"){let Je=le;le=le.replace(KD,"");try{le=le!==""?JSON.parse(le):null}catch(Wt){le=Je,Oe&&(Oe=!1,le={error:Wt,text:le})}}Oe?(o.next(new Ei({body:le,headers:I,status:P,statusText:U,url:ce||void 0})),o.complete()):o.error(new ln({error:le,headers:I,status:P,statusText:U,url:ce||void 0}))},f=I=>{let{url:P}=l(),U=new ln({error:I,status:s.status||0,statusText:s.statusText||"Unknown Error",url:P||void 0});o.error(U)},v=!1,h=I=>{v||(o.next(l()),v=!0);let P={type:un.DownloadProgress,loaded:I.loaded};I.lengthComputable&&(P.total=I.total),n.responseType==="text"&&s.responseText&&(P.partialText=s.responseText),o.next(P)},D=I=>{let P={type:un.UploadProgress,loaded:I.loaded};I.lengthComputable&&(P.total=I.total),o.next(P)};return s.addEventListener("load",d),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),n.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",D)),s.send(a),o.next({type:un.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",d),s.removeEventListener("timeout",f),n.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",D)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(j(xr))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Om=new L(""),eE="XSRF-TOKEN",tE=new L("",{providedIn:"root",factory:()=>eE}),nE="X-XSRF-TOKEN",rE=new L("",{providedIn:"root",factory:()=>nE}),Fs=class{},iE=(()=>{class e{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r,i){this.doc=n,this.platform=r,this.cookieName=i}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Rs(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(j(Ct),j(yt),j(tE))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function oE(e,t){let n=e.url.toLowerCase();if(!g(Om)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=g(Fs).getToken(),i=g(rE);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),t(e)}var km=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(km||{});function sE(e,t){return{\u0275kind:e,\u0275providers:t}}function Fm(...e){let t=[Bn,xm,Sm,{provide:Ci,useExisting:Sm},{provide:bi,useFactory:()=>g(Rm,{optional:!0})??g(xm)},{provide:Pm,useValue:oE,multi:!0},{provide:Om,useValue:!0},{provide:Fs,useClass:iE}];for(let n of e)t.push(...n.\u0275providers);return li(t)}function Lm(){return sE(km.Fetch,[su,{provide:Rm,useExisting:su},{provide:bi,useExisting:su}])}var pu=class extends As{supportsDOMEvents=!0},hu=class e extends pu{static makeCurrent(){gm(new e)}
vendor: 8,553 bytes, line 8
8onAndCancel(t,n,r,i){return t.addEventListener(n,r,i),()=>{t.removeEventListener(n,r,i)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=aE();return n==null?null:cE(n)}resetBaseElement(){wi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Rs(document.cookie,t)}},wi=null;function aE(){return wi=wi||document.querySelector("base"),wi?wi.getAttribute("href"):null}function cE(e){return new URL(e,document.baseURI).pathname}var lE=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),mu=new L(""),$m=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new R(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(j(mu),j(be))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Vs=class{_doc;constructor(t){this._doc=t}manager},Ls="ng-app-id";function Vm(e){for(let t of e)t.remove()}function jm(e,t){let n=t.createElement("style");return n.textContent=e,n}function uE(e,t,n,r){let i=e.head?.querySelectorAll(`style[${Ls}="${t}"],link[${Ls}="${t}"]`);if(i)for(let o of i)o.removeAttribute(Ls),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function gu(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var zm=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,this.isServer=iu(o),uE(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,jm);r?.forEach(i=>this.addUsage(i,this.external,gu))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(Vm(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Vm(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,jm(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,gu(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Ls,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(j(Ct),j(xl),j(Ml,8),j(yt))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),fu={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},vu=/%COMP%/g;var Gm="%COMP%",dE=`_nghost-${Gm}`,fE=`_ngcontent-${Gm}`,pE=!0,hE=new L("",{providedIn:"root",factory:()=>pE});function mE(e){return fE.replace(vu,e)}function gE(e){return dE.replace(vu,e)}function Wm(e,t){return t.map(n=>n.replace(vu,e))}var Bm=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,i,o,s,a,c,l=null,d=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.tracingService=d,this.platformIsServer=iu(a),this.defaultRenderer=new Ii(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Tt.ShadowDom&&(r=J($({},r),{encapsulation:Tt.Emulated}));let i=this.getOrCreateRenderer(n,r);return i instanceof js?i.applyToHost(n):i instanceof Si&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer,v=this.tracingService;switch(r.encapsulation){case Tt.Emulated:o=new js(c,l,r,this.appId,d,s,a,f,v);break;case Tt.ShadowDom:return new yu(c,l,n,r,s,a,this.nonce,f,v);default:o=new Si(c,l,r,d,s,a,f,v);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(j($m),j(zm),j(xl),j(hE),j(Ct),j(yt),j(be),j(Ml),j(Vn,8))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Ii=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,i,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=i,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(fu[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Um(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Um(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new R(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,i){if(i){n=i+":"+n;let o=fu[i];o?t.setAttributeNS(o,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let i=fu[r];i?t.removeAttributeNS(i,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,i){i&(Vt.DashCase|Vt.Important)?t.style.setProperty(n,r,i&Vt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Vt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,i){if(typeof t=="string"&&(t=Tr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);let o=this.decoratePreventDefault(r);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(o=this.tracingService.wrapEventListener(t,n,o)),this.eventManager.addEventListener(t,n,o,i)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Um(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var yu=class extends Ii{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,i,o,s,a,c,l){super(t,o,s,c,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=Wm(i.id,d);for(let v of d){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=v,this.shadowRoot.appendChild(h)}let f=i.getExternalStyles?.();if(f)for(let v of f){let h=gu(v,o);a&&h.setAttribute("nonce",a),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Si=class extends Ii{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,i,o,s,a,c,l){super(t,o,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i;let d=r.styles;this.styles=l?Wm(l,d):d,this.styleUrls=r.getExternalStyles?.(l)}
vendor: 4,364 bytes, line 8
8applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},js=class extends Si{contentAttr;hostAttr;constructor(t,n,r,i,o,s,a,c,l){let d=i+"-"+r.id;super(t,n,r,o,s,a,c,l,d),this.contentAttr=mE(d),this.hostAttr=gE(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},yE=(()=>{class e extends Vs{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||e)(j(Ct))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Hm=["alt","control","meta","shift"],vE={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},_E={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},CE=(()=>{class e extends Vs{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tr().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Hm.forEach(l=>{let d=r.indexOf(l);d>-1&&(r.splice(d,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let i=vE[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Hm.forEach(s=>{if(s!==i){let a=_E[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{e.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(j(Ct))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function qm(e){return lm(bE(e))}function bE(e){return{appProviders:[...SE,...e?.providers??[]],platformProviders:IE}}function DE(){hu.makeCurrent()}function EE(){return new pt}function wE(){return Rp(document),document}var IE=[{provide:yt,useValue:ru},{provide:Tl,useValue:DE,multi:!0},{provide:Ct,useFactory:wE,deps:[]}];var SE=[{provide:ss,useValue:"root"},{provide:pt,useFactory:EE,deps:[]},{provide:mu,useClass:yE,multi:!0,deps:[Ct]},{provide:mu,useClass:CE,multi:!0,deps:[Ct]},Bm,zm,$m,{provide:ur,useExisting:Bm},{provide:xr,useClass:lE,deps:[]},[]];var _u=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:function(r){let i=null;return r?i=new(r||e):i=j(xE),i},providedIn:"root"})}return e})(),xE=(()=>{class e extends _u{_doc;constructor(n){super(),this._doc=n}sanitize(n,r){if(r==null)return null;switch(n){case At.NONE:return r;case At.HTML:return on(r,"HTML")?vt(r):Pl(this._doc,String(r)).toString();case At.STYLE:return on(r,"Style")?vt(r):r;case At.SCRIPT:if(on(r,"Script"))return vt(r);throw new R(5200,!1);case At.URL:return on(r,"URL")?vt(r):gs(String(r));case At.RESOURCE_URL:if(on(r,"ResourceURL"))return vt(r);throw new R(5201,!1);default:throw new R(5202,!1)}}bypassSecurityTrustHtml(n){return Bp(n)}bypassSecurityTrustStyle(n){return Up(n)}bypassSecurityTrustScript(n){return Hp(n)}bypassSecurityTrustUrl(n){return $p(n)}bypassSecurityTrustResourceUrl(n){return zp(n)}static \u0275fac=function(r){return new(r||e)(j(Ct))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var fn=class{},Zm=(()=>{class e extends fn{getTranslation(n){return ct({})}static \u0275fac=(()=>{let n;return function(i){return(n||(n=gr(e)))(i||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Ti=class{},Ym=(()=>{class e{handle(n){return n.key}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function Us(e,t){if(e===t)return!0;
8if(e===null||t===null)return!1;if(e!==e&&t!==t)return!0;let n=typeof e,r=typeof t,i,o,s;if(n==r&&n=="object")if(Array.isArray(e)){if(!Array.isArray(t))return!1;if((i=e.length)==t.length){for(o=0;o<i;o++)if(!Us(e[o],t[o]))return!1;return!0}}else{if(Array.isArray(t))return!1;s=Object.create(null);for(o in e){if(!Us(e[o],t[o]))return!1;s[o]=!0}for(o in t)if(!(o in s)&&typeof t[o]<"u")return!1;return!0}return!1}function dn(e){return typeof e<"u"&&e!==null}function Ni(e){return Bs(e)&&!Su(e)&&e!==null}function Bs(e){return typeof e=="object"}function Su(e){return Array.isArray(e)}function xu(e){return typeof e=="string"}function TE(e){return typeof e=="function"}function Cu(e,t){let n=Object.assign({},e);return Bs(e)?(Bs(e)&&Bs(t)&&Object.keys(t).forEach(r=>{Ni(t[r])?r in e?n[r]=Cu(e[r],t[r]):Object.assign(n,{[r]:t[r]}):Object.assign(n,{[r]:t[r]})}),n):Cu({},t)}function bu(e,t){let n=t.split(".");t="";do t+=n.shift(),dn(e)&&dn(e[t])&&(Ni(e[t])||Su(e[t])||!n.length)?(e=e[t],t=""):n.length?t+=".":e=void 0;while(n.length);return e}function ME(e,t,n){let r=t.split("."),i=e;for(let o=0;o<r.length;o++){let s=r[o];o===r.length-1?i[s]=n:((!i[s]||!Ni(i[s]))&&(i[s]={}),i=i[s])}}var Mr=class{},Qm=(()=>{class e extends Mr{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(n,r){if(xu(n))return this.interpolateString(n,r);if(TE(n))return this.interpolateFunction(n,r)}interpolateFunction(n,r){return n(r)}interpolateString(n,r){return r?n.replace(this.templateMatcher,(i,o)=>{let s=bu(r,o);return dn(s)?s:i}):n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=gr(e)))(i||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Ar=class{},Km=(()=>{class e extends Ar{compile(n,r){return n}compileTranslations(n,r){return n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=gr(e)))(i||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Mi=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new Ae;onLangChange=new Ae;onDefaultLangChange=new Ae},Du=new L("ISOLATE_TRANSLATE_SERVICE"),Eu=new L("USE_DEFAULT_LANG"),wu=new L("DEFAULT_LANGUAGE"),Iu=new L("USE_EXTEND"),xi=e=>wn(e)?e:ct(e),Ai=(()=>{class e{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(n){this.store.defaultLang=n}get currentLang(){return this.store.currentLang}set currentLang(n){this.store.currentLang=n}get langs(){return this.store.langs}set langs(n){this.store.langs=n}get translations(){return this.store.translations}set translations(n){this.store.translations=n}constructor(n,r,i,o,s,a=!0,c=!1,l=!1,d){this.store=n,this.currentLoader=r,this.compiler=i,this.parser=o,this.missingTranslationHandler=s,this.useDefaultLang=a,this.extend=l,c&&(this.store=new Mi),d&&this.setDefaultLang(d)}setDefaultLang(n){if(n===this.defaultLang)return;let r=this.retrieveTranslations(n);typeof r<"u"?(this.defaultLang==null&&(this.defaultLang=n),r.pipe(Xn(1)).subscribe(()=>{this.changeDefaultLang(n)})):this.changeDefaultLang(n)}getDefaultLang(){return this.defaultLang}use(n){if(this.lastUseLanguage=n,n===this.currentLang)return ct(this.translations[n]);this.currentLang||(this.currentLang=n);let r=this.retrieveTranslations(n);return wn(r)?(r.pipe(Xn(1)).subscribe(()=>{this.changeLang(n)}),r):(this.changeLang(n),ct(this.translations[n]))}changeLang(n){n===this.lastUseLanguage&&(this.currentLang=n,this.onLangChange.emit({lang:n,translations:this.translations[n]}),this.defaultLang==null&&this.changeDefaultLang(n))}retrieveTranslations(n){if(typeof this.translations[n]>"u"||this.extend)return this._translationRequests[n]=this._translationRequests[n]||this.loadAndCompileTranslations(n),this._translationRequests[n]}getTranslation(n){return this.loadAndCompileTranslations(n)}loadAndCompileTranslations(n){this.pending=!0;let r=this.currentLoader.getTranslation(n).pipe(yo(1),Xn(1));return this.loadingTranslations=r.pipe(Me(i=>this.compiler.compileTranslations(i,n)),yo(1),Xn(1)),this.loadingTranslations.subscribe({next:i=>{this.translations[n]=this.extend&&this.translations[n]?$($({},i),this.translations[n]):i,this.updateLangs(),this.pending=!1},error:i=>{this.pending=!1}}),r}setTranslation(n,r,i=!1){let o=this.compiler.compileTranslations(r,n);(i||this.extend)&&this.translations[n]?this.translations[n]=Cu(this.translations[n],o):this.translations[n]=o,this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}getLangs(){return this.langs}addLangs(n){let r=n.filter(i=>!this.langs.includes(i));r.length>0&&(this.langs=[...this.langs,...r])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(n,r,i){let o;if(n&&(o=this.runInterpolation(bu(n,r),i)),o===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(o=this.runInterpolation(bu(this.translations[this.defaultLang],r),i)),o===void 0){let s={key:r,translateService:this};typeof i<"u"&&(s.interpolateParams=i),o=this.missingTranslationHandler.handle(s)}return o!==void 0?o:r}runInterpolation(n,r){if(Su(n))return n.map(i=>this.runInterpolation(i,r));if(Ni(n)){let i={};for(let o in n){let s=this.runInterpolation(n[o],r);s!==void 0&&(i[o]=s)}return i}else return this.parser.interpolate(n,r)}getParsedResult(n,r,i){if(r instanceof Array){let o={},s=!1;for(let c of r)o[c]=this.getParsedResultForKey(n,c,i),s=s||wn(o[c]);if(!s)return o;let a=r.map(c=>xi(o[c]));return Hr(a).pipe(Me(c=>{let l={};
8return c.forEach((d,f)=>{l[r[f]]=d}),l}))}return this.getParsedResultForKey(n,r,i)}get(n,r){if(!dn(n)||!n.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe($r(i=>xi(this.getParsedResult(i,n,r)))):xi(this.getParsedResult(this.translations[this.currentLang],n,r))}getStreamOnTranslationChange(n,r){if(!dn(n)||!n.length)throw new Error('Parameter "key" is required and cannot be empty');return ho(mo(()=>this.get(n,r)),this.onTranslationChange.pipe(Qt(i=>{let o=this.getParsedResult(i.translations,n,r);return xi(o)})))}stream(n,r){if(!dn(n)||!n.length)throw new Error('Parameter "key" required');return ho(mo(()=>this.get(n,r)),this.onLangChange.pipe(Qt(i=>{let o=this.getParsedResult(i.translations,n,r);return xi(o)})))}instant(n,r){if(!dn(n)||n.length===0)throw new Error('Parameter "key" is required and cannot be empty');let i=this.getParsedResult(this.translations[this.currentLang],n,r);return wn(i)?Array.isArray(n)?n.reduce((o,s)=>(o[s]=s,o),{}):n:i}set(n,r,i=this.currentLang){ME(this.translations[i],n,xu(r)?this.compiler.compile(r,i):this.compiler.compileTranslations(r,i)),this.updateLangs(),this.onTranslationChange.emit({lang:i,translations:this.translations[i]})}changeDefaultLang(n){this.defaultLang=n,this.onDefaultLangChange.emit({lang:n,translations:this.translations[n]})}reloadLang(n){return this.resetLang(n),this.loadAndCompileTranslations(n)}resetLang(n){delete this._translationRequests[n],delete this.translations[n]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let n=this.getBrowserCultureLang();return n?n.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(r){return new(r||e)(j(Mi),j(fn),j(Ar),j(Mr),j(Ti),j(Eu),j(Du),j(Iu),j(wu))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var me=(()=>{class e{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(n,r){this.translate=n,this._ref=r}updateValue(n,r,i){let o=s=>{this.value=s!==void 0?s:n,this.lastKey=n,this._ref.markForCheck()};if(i){let s=this.translate.getParsedResult(i,n,r);wn(s)?s.subscribe(o):o(s)}this.translate.get(n,r).subscribe(o)}transform(n,...r){if(!n||!n.length)return n;if(Us(n,this.lastKey)&&Us(r,this.lastParams))return this.value;let i;if(dn(r[0])&&r.length)if(xu(r[0])&&r[0].length){let o=r[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{i=JSON.parse(o)}catch(s){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${r[0]}`)}}else Ni(r[0])&&(i=r[0]);return this.lastKey=n,this.lastParams=r,this.updateValue(n,i),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(o=>{this.lastKey&&o.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(n,i,o.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(o=>{this.lastKey&&(this.lastKey=null,this.updateValue(n,i,o.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(n,i))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(r){return new(r||e)(de(Ai,16),de(Sr,16))};static \u0275pipe=br({name:"translate",type:e,pure:!1});static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();var Jm=(()=>{class e{static forRoot(n={}){return{ngModule:e,providers:[n.loader||{provide:fn,useClass:Zm},n.compiler||{provide:Ar,useClass:Km},n.parser||{provide:Mr,useClass:Qm},n.missingTranslationHandler||{provide:Ti,useClass:Ym},Mi,{provide:Du,useValue:n.isolate},{provide:Eu,useValue:n.useDefaultLang},{provide:Iu,useValue:n.extend},{provide:wu,useValue:n.defaultLanguage},Ai]}}static forChild(n={}){return{ngModule:e,providers:[n.loader||{provide:fn,useClass:Zm},n.compiler||{provide:Ar,useClass:Km},n.parser||{provide:Mr,useClass:Qm},n.missingTranslationHandler||{provide:Ti,useClass:Ym},{provide:Du,useValue:n.isolate},{provide:Eu,useValue:n.useDefaultLang},{provide:Iu,useValue:n.extend},{provide:wu,useValue:n.defaultLanguage},Ai]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=sn({type:e});static \u0275inj=nn({})}return e})();var Hs=class e{http=g(Bn);webBaseUrl;localeFolderPath;mapLocaleHash;setConfig(t,n,r){this.webBaseUrl=t,this.localeFolderPath=n,this.mapLocaleHash=r}getTranslation(t){if(!this.webBaseUrl||!this.localeFolderPath||!this.mapLocaleHash)throw{message:"Translation base URL or domain URL not set",webBaseUrl:this.webBaseUrl,localeFolderPath:this.localeFolderPath,arrayMapLocaleHash:this.mapLocaleHash};let n=this.mapLocaleHash[t],r=`${this.webBaseUrl}/${this.localeFolderPath}/${n}`;return this.http.get(r).pipe(go(i=>(console.error(`Fallo al cargar traducci\xF3n para ${t}.`,i),ct({}))))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac})};var Xm={providers:[am(),Fm(Lm()),cl(Jm.forRoot({loader:{provide:fn,useClass:Hs}}))]};var AE={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function NE(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function RE(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Tu;function PE(e,t){if(!Tu){let n=Element.prototype;Tu=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}
vendor: 3,212 bytes, line 8
8return e.nodeType===Node.ELEMENT_NODE?Tu.call(e,t):!1}function OE(e){let t={};return e.forEach(({propName:n,templateName:r,transform:i})=>{t[NE(r)]=[n,i]}),t}function kE(e,t){return t.get(en).resolveComponentFactory(e).inputs}function FE(e,t){let n=e.childNodes,r=t.map(()=>[]),i=-1;t.some((o,s)=>o==="*"?(i=s,!0):!1);for(let o=0,s=n.length;o<s;++o){let a=n[o],c=LE(a,t,i);c!==-1&&r[c].push(a)}return r}function LE(e,t,n){let r=n;return RE(e)&&t.some((i,o)=>i!=="*"&&PE(e,i)?(r=o,!0):!1),r}var VE=10,Mu=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(en).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new Au(this.componentFactory,t,this.inputMap)}},Au=class{componentFactory;injector;inputMap;eventEmitters=new Dn(1);events=this.eventEmitters.pipe(Qt(t=>Oa(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(be),this.appRef=this.injector.get(jt),this.cdScheduler=n.get(nt),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=AE.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},VE))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),this.componentRef.hostView.dirty&&(this.componentRef.changeDetectorRef.markForRefresh(),this.cdScheduler.notify(6))})}initializeComponent(t){let n=Le.create({providers:[],parent:this.injector}),r=FE(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:i})=>{let o=t.instance[r];return new te(s=>{let a=o.subscribe(c=>s.next({name:i,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Nu=class extends HTMLElement{ngElementEventsSubscription=null};function eg(e,t){let n=kE(e,t.injector),r=t.strategyFactory||new Mu(e,t.injector),i=OE(n);class o extends Nu{injector;static observedAttributes=Object.keys(i);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:l})=>
8{if(!this.hasOwnProperty(c))return;let d=this[c];delete this[c],a.setInputValue(c,d,l)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,l,d){let[f,v]=i[a];this.ngElementStrategy.setInputValue(f,l,v)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),o}var ye=class extends Error{customerMessage;constructor(t,n=null){super(`[CartService] ${t}`),this.name="CartServiceError",this.customerMessage=n}};var Ri=class extends Error{constructor(t){super(`[CartApiService] ${t}`),this.name="CartApiServiceError"}};var $s=class e{BASE_URL="/ajax/customer/customer-browsing-data";platform=g(yt);params=V(null);userState=Jl(()=>this.userResource.value()??null);userResource=Nt({request:()=>{let t=this.params();if(t)return t},loader:async({request:t})=>{if(!t)return null;let{path_atland:n,path_code:r}=t,i=new URL(`${n}${this.BASE_URL}`);r&&i.searchParams.set("path_code",r);let o=await fetch(i.toString(),{credentials:"include"});return o.ok?await o.json():null}});setParams(t){!t.path_atland||t.path_code===null||Cm(this.platform)&&this.params.set(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var zs=class e{translate=g(Ai);use(t,n,r,i){let o=JSON.parse(i);this.translate.currentLoader.setConfig(t,n,o);let s=this.translate.use(r);return this.defineDefaultLangBaseInInputLang(r),s}instant(t,n){return this.translate.instant(t,n)}defineDefaultLangBaseInInputLang(t){t!=="es"?this.translate.setDefaultLang("es"):this.translate.setDefaultLang("en")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var je=class extends Error{constructor(t){super(`[CommonService] ${t}`),this.name="CommonServiceError"}};var fe=class e{translate=g(zs);platform=g(yt);userStateService=g($s);context=V(null);userState=b(()=>this.userStateService.userState());constructor(){Pe(()=>{let t=this.context();t&&(this.verifyContext(t),this.userStateService.setParams({path_atland:t.dataUrl,path_code:t.marketRoute}),this.updateTranslationConfig(t))})}verifyContext(t){if(!t)throw new je("Missing context");if(!t.translations)throw new je("Missing 'translations' in context");if(!t.translationsBaseUrl)throw new je("Missing 'translationsBaseUrl' in context");if(!t.locale)throw new je("Missing 'locale' in context");if(!t.marketRoute)throw new je("Missing 'marketRoute' in context");if(!t.domain)throw new je("Missing 'domain' in context");if(!t.dataUrl)throw new je("Missing 'dataUrl' in context");if(!t.pathFiles)throw new je("Missing 'pathFiles' in context");if(!t.checkoutUrl)throw new je("Missing 'checkoutUrl' in context")}updateTranslationConfig(t){if(!t)return;let{domain:n,locale:r,translationsBaseUrl:i}=t,o=JSON.stringify(t.translations);if(!n)throw new je("Missing 'domain' in context");if(!r)throw new je("Missing 'locale' in context");if(!i)throw new je("Missing 'translationsBaseUrl' in context");if(!o)throw new je("Missing 'lang' in context");this.translate.use(n,i,r,o)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var Gs=class e{httpClient=g(Bn);commonService=g(fe);endpoints={PROCESS_CART_DATA:"cart/process/data-view",ADD_PRODUCT_TO_CART_AND_PROCESSING:"cart/add/product-and-processing",UPDATE_PRODUCT_QUANTITY:"cart/update/product",ADD_COUPON:"cart/add/coupon",APPLY_PROMOTION:"cart/apply/promotion",DELETE_PROMOTION:"cart/delete/promotion",SUGGESTED_PRODUCTS:"products/suggestions",SIZE_AVAILABILITY:"product-size-availability",AVAILABILITY_MESSAGE:"cart/process/availability-and-message",LIST_COUNTRY:"common/list-country",DEFAULT_SHIPPING_LOCATION:"cart/default-shipping-location"};endpointBase=b(()=>{let t=this.commonService.context();return t?`${t.dataUrl}/ajax/`:null});post(t,n){let r=this.endpointBase();if(!r)throw new Ri("No base URL available");let i=r+t;return this.httpClient.post(i,n,{withCredentials:!0})}get(t,n){let r=this.endpointBase();if(!r)throw new Ri("No base URL available");let i=r+t,o=new bt;if(n)for(let[s,a]of Object.entries(n))o=o.set(s,a);return this.httpClient.get(i,{params:o,withCredentials:!0})}getProcessedCart(t){return this.post(this.endpoints.PROCESS_CART_DATA,t)}addProductInCart(t){return this.post(this.endpoints.ADD_PRODUCT_TO_CART_AND_PROCESSING,t)}updateProductLineQuantity(t){return this.post(this.endpoints.UPDATE_PRODUCT_QUANTITY,t)}addCouponInCart(t){return this.post(this.endpoints.ADD_COUPON,t)}
8applyPromotionInCart(t){return this.post(this.endpoints.APPLY_PROMOTION,t)}cancelPromotionInCart(t){return this.post(this.endpoints.DELETE_PROMOTION,t)}getSuggestedProducts(t){return this.post(this.endpoints.SUGGESTED_PRODUCTS,t)}getAvailabilitySizes(t){return this.post(this.endpoints.SIZE_AVAILABILITY,t)}getCartAvailabilityMessage(t){return this.post(this.endpoints.AVAILABILITY_MESSAGE,t)}getListCountry(t){return this.post(this.endpoints.LIST_COUNTRY,t)}getDefaultShippingLocation(t){return this.get(this.endpoints.DEFAULT_SHIPPING_LOCATION,{path_code:t})}sendConversionTikTokCheckout(t,n){return this.httpClient.post(`${n}/tiktokconversiones/enviarconversioncheckout`,t)}getProgressDataPriceBar(t,n){return this.httpClient.post(`${n}/cesta/getdataprogresspricebarajax`,t)}getShippingConditionsHtml(t,n){let r=new bt().set("id_pais",n.id_pais).set("codigo_postal",n.codigo_postal);return this.httpClient.post(`${t}/cesta/vercondicionesenviocesta/format/html`,r.toString(),{headers:new Dt({"Content-Type":"application/x-www-form-urlencoded"}),responseType:"text",withCredentials:!0})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var Ws=class e{pushEvent(t,n){window.dataLayer=window.dataLayer||[],n&&window.dataLayer.push(n),window.dataLayer.push(t),window.dispatchEvent(new CustomEvent("datalayerPushed",{detail:t}))}createEvent(t,n){return n?$({event:t},n):{event:t}}createWebEvent(t,n){let r=this.createEvent(t,n),i={ecommerce:null};switch(t){case"view_item":case"view_item_list":case"view_cart":case"add_to_cart":case"remove_from_cart":case"select_item":case"begin_checkout":this.pushEvent(r,i);break;default:this.pushEvent(r);break}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var qs=class e{CONSENT_PURPOSE="c52";userDataEntry(){let t=this.build();return t?{user_data:t}:{}}build(){try{if(!this.hasConsent())return null;let t=this.readUserInfo();if(t?.is_logged&&t.tracking_user_data&&typeof t.tracking_user_data=="object"){let r=this.sanitize(t.tracking_user_data);return Object.keys(r).length>0?r:null}let n=this.readCookie("persistent_session_id");return n&&/^[A-Za-z0-9_-]{16,128}$/.test(n)?{external_id:n}:null}catch{return null}}generateEventId(t){let n=globalThis.crypto,r=n&&typeof n.randomUUID=="function"?n.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).substring(2,12)}`;return`${t}_${r}`}hasConsent(){try{let t=this.readCookie("se_cmp_purposes");if(!t)return!1;let n=t;try{n=decodeURIComponent(t)}catch{}let r=JSON.parse(n);return!!r&&typeof r=="object"&&r[this.CONSENT_PURPOSE]===!0}catch{return!1}}readUserInfo(){try{let t=sessionStorage.getItem("userInfo");if(!t)return null;let n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}}readCookie(t){try{let n=document.cookie.split(";").map(r=>r.trim()).find(r=>r.startsWith(`${t}=`));return n?n.substring(t.length+1):null}catch{return null}}sanitize(t){let n={};for(let i of["email","phone_number","external_id"]){let o=t[i];typeof o=="string"&&o.trim()!==""&&(n[i]=o.trim()),typeof o=="number"&&i==="external_id"&&(n[i]=String(o))}let r=t.address;if(r&&typeof r=="object"){let i={};for(let[o,s]of Object.entries(r))typeof s=="string"&&s.trim()!==""&&(i[o]=s.trim());Object.keys(i).length>0&&(n.address=i)}return n}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var Be=class e{datalayerService=g(Ws);trackingUserDataService=g(qs);cartPageOwnsCartEvents(){try{return typeof document<"u"&&document.querySelector("cart-page")!==null}catch{return!1}}createBasicCartEvent(t,n,r=!1){return J($($({},r?{event_id:this.trackingUserDataService.generateEventId("add_to_cart")}:{}),this.trackingUserDataService.userDataEntry()),{ecommerce:{cart_value:t.reduce((i,o)=>i+o.price,0),name_matrix:t.map(i=>i.item_name).join("|"),id_matrix:t.map(i=>i.item_id).join("|"),category_matrix:t.map(i=>i.item_category).join("|"),units_matrix:t.map(i=>i.quantity).join("|"),content_group:"cesta",click_section:n,items:t}})}sendBeginCheckoutEvent(t){this.datalayerService.createWebEvent("begin_checkout",this.createBasicCartEvent(t,"cesta"))}sendAddToCartEvent(t,n,r,i=null){let o=t.find(s=>
8s.item_key===n);o&&this.datalayerService.createWebEvent("add_to_cart",this.createBasicCartEvent([$(J($({},o),{item_list_name:"",item_list_id:"",quantity:r>0?r:o.quantity}),i?{item_sku:`${o.item_id}_${i}`}:{})],"cesta",!0))}sendRemoveFromCartEvent(t,n,r=0){let i=t.find(o=>o.item_key===n);i&&this.datalayerService.createWebEvent("remove_from_cart",this.createBasicCartEvent([J($({},i),{item_list_name:"",item_list_id:"",quantity:r>0?r:i.quantity})],"cesta"))}sendProductClickEvent(t,n){let r=t.find(i=>i.item_key===n);r&&this.datalayerService.createWebEvent("select_item",this.createBasicCartEvent([J($({},r),{item_list_name:"",item_list_id:""})],"cesta"))}sendViewItemListEvent(t){this.datalayerService.createWebEvent("view_item_list",this.createBasicCartEvent(t,"cesta"))}sendViewCartItemEvent(t){this.datalayerService.createWebEvent("view_cart",this.createBasicCartEvent(t,"cesta"))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var Pi=class extends Error{constructor(t){super(`[BrazeService] ${t}`),this.name="BrazeServiceError"}};var Zs=class e{static POLL_MS=250;static MAX_RETRIES=20;pending=null;waiting=!1;retries=0;executeBrazeLogCustom(t){this.pending={items:t.items??[],vertical_id:t.vertical,price:t.total_price,language:t.locale,mercado:t.market,allProductsExcludedFromPromotions:t.allProductsExcludedFromPromotions,ad:t.ad},!this.flushPending()&&this.waitForBraze()}flushPending(){let t=this.pending,n=window.braze;if(!t||!n?.logCustomEvent)return!1;this.pending=null,this.waiting=!1;try{n.logCustomEvent("view_cart",t)}catch(r){let i=r instanceof Error?r.message:"Unknown Braze error";throw new Pi(`No se ha podido ejecutar el logCustomEvent de Braze. (Si NO est\xE1s en local, \xA1Avisa!) 
9${i}`)}return!0}waitForBraze(){this.waiting||(this.waiting=!0,this.retries=0,this.pollBraze())}pollBraze(){try{if(this.flushPending())return}catch(t){console.error(t);return}if(this.retries>=e.MAX_RETRIES){this.waiting=!1,this.pending=null,console.error(new Pi(`No se ha podido ejecutar el logCustomEvent de Braze. (Si NO est\xE1s en local, \xA1Avisa!)
10Cannot read properties of undefined (reading 'logCustomEvent')`));return}this.retries+=1,window.setTimeout(()=>this.pollBraze(),e.POLL_MS)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};function ng(e){let t=new DOMParser().parseFromString(e,"text/html"),n=Array.from(t.querySelectorAll(".alert.alert-info")).some(o=>(o.textContent??"").trim().length>0),r=t.querySelectorAll('input[name="opcion_envio_calculocostes"]');if(r.length===0){let o=t.querySelector(".alert:not(.alert-info)");return{options:[],emptyMessage:o?.textContent?.trim()||null,tariffWarning:n}}let i=[];return r.forEach(o=>{let s=o.closest(".row"),a=o.closest(".form-check"),c=a?.querySelector("label.form-check-label")?.textContent?.trim()??o.id,l=a?.querySelector("span.text-muted")?.textContent?.trim()??"",d=s?.querySelector("label.col-10, label.col-lg-5, label.text-end")?.textContent?.trim()??"",f=jE(o.getAttribute("onclick")??""),v=!!(s?.nextElementSibling?.classList.contains("alert")&&s.nextElementSibling.classList.contains("alert-info"));i.push({id:o.value,name:c,description:l,price:f.price,priceLabel:d||String(f.price),priceEur:f.priceEur,decimals:f.decimals,storeId:o.getAttribute("data-id-store"),isDefault:o.checked,prepaidCustoms:v})}),{options:i,emptyMessage:null,tariffWarning:n}}function jE(e){let t=e.match(/actualizartotalcesta\s*\(\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^,]+)\s*,\s*([^)]+)\)/i);return t?{price:tg(t[1]),priceEur:tg(t[3]),decimals:Number.parseInt(t[5].trim(),10)||2}:{price:0,priceEur:0,decimals:2}}function tg(e){let t=e.trim().toLowerCase();if(!t||t==="null"||t==="undefined")return 0;let n=Number.parseFloat(t);return Number.isFinite(n)?n:0}var re=class e{commonService=g(fe);cartApiService=g(Gs);trackingService=g(Be);brazeService=g(Zs);mutatingCount=V(0);isMutating=b(()=>this.mutatingCount()>0);alertMessages=V([]);shippingCountryId=V("");shippingPostalCode=V("");shippingOptions=V([]);shippingSelectedId=V("");shippingLoading=V(!1);shippingError=V(!1);shippingEmptyMessage=V(null);shippingTariffWarning=V(!1);shippingAvailabilityMessages=V([]);shippingQuoteRequestId=0;shippingAvailabilityRequestId=0;shippingDefaultsRequested=!1;cartUiEpoch=V(0);selectedShippingOption=b(()=>{let t=this.shippingSelectedId();return t?this.shippingOptions().find(n=>n.id===t)??null:null});constructor(){Pe(()=>{!this.cartResource.hasValue()||!this.cartResource.value()||Ce(()=>this.refreshView())}),Pe(()=>{let t=this.commonService.context();!t||this.shippingDefaultsRequested||Ce(()=>{this.loadDefaultShippingLocation(t)})})}cartResource=Nt({request:()=>this.commonService.context(),loader:async({request:t})=>{if(!t)return null;try{let n=await Ee(this.cartApiService.getProcessedCart({path_code:t.marketRoute}));return this.repaintCartUi(),n}catch(n){let r=new ye(n instanceof Error?n.message:"Error loading cart");throw console.error(r),r}}});suggestedResource=Nt({request:()=>{let t=this.commonService.context(),n=this.cartResource.value();return!t||!n||!(Object.keys(n.grouped_date[0]?.lines??{}).length>0)?null:{path_code:t.marketRoute}},loader:async({request:t})=>{if(!t)return null;try{let n=await Ee(this.cartApiService.getSuggestedProducts(t).pipe(La(2)));return n.dataLayer?.length>0&&!this.trackingService.cartPageOwnsCartEvents()&&this.trackingService.sendViewItemListEvent(n.dataLayer),n}catch(n){let r=new ye(n instanceof Error?n.message:"Error loading suggested products");return console.error(r),null}}});countriesResource=Nt({request:()=>{let t=this.commonService.context();return t?{path_code:t.marketRoute}:null},loader:async({request:t})=>{if(!t)return null;try{return await Ee(this.cartApiService.getListCountry(t))}catch(n){let r=new ye(n instanceof Error?n.message:"Error loading countries");throw console.error(r),r}}});progressBarResource=Nt({request:()=>{let t=this.commonService.context(),n=this.cartResource.value();if(!t||!n?.resume)return null;let r=n.grouped_date[0]?.lines;if(!(Array.isArray(r)?r.length>0:Object.keys(r??{}).length>0))return null;let o=t.domain,s=t.marketRoute;return!o||!s?null:{user_id:n.resume.user_id!=null?String(n.resume.user_id):null,total_price:n.resume.total_price_without_currency,baseUrl:`${o}/${s}`}},loader:async({request:t})=>{if(!t)return null;try{return await Ee(this.cartApiService.getProgressDataPriceBar({user_id:t.user_id,total_price:t.total_price},t.baseUrl))}catch(n){let r=new ye(n instanceof Error?n.message:"Error getting progress data price bar");throw console.error(r),r}}});refreshView(){let t=this.cartResource.value();this.alertMessages.set(t?.messages??[]);let n=t?.resume?.count_product_in_cart;if(n!=null){let r=document.querySelector("#cart [data-cart-number]"),i=document.querySelector("#cart [data-cart-number-container]");r&&(r.textContent=String(n)),i&&i.classList.toggle("d-none",!(Number(n)>0))}this.refreshShippingQuoteAfterCartChange()}sendCartViewEvents(){let t=this.cartResource.value();if(!(!t||!this.hasCartProducts(t))){if(window.scrollTo({top:0,behavior:"smooth"}),t.gift_bag&&!this.trackingService.cartPageOwnsCartEvents()&&this.trackingService.sendViewItemListEvent(t.gift_bag.data_layer),t.data_braze)try{this.brazeService.executeBrazeLogCustom(t.data_braze)}catch(n){console.error(n)}t.data_layer&&!this.trackingService.cartPageOwnsCartEvents()&&this.trackingService.sendViewCartItemEvent(t.data_layer)}}hasCartProducts(t){if(!t.grouped_date.length)return!1;let n=t.grouped_date[0].lines;return Array.isArray(n)?n.length>0:Object.keys(n??{}).length>0}setAlertMessages(t){this.alertMessages.set(t)}clearShippingQuote(){this.shippingOptions.set([]),this.shippingSelectedId.set(""),this.shippingError.set(!1),this.shippingEmptyMessage.set(null),this.shippingTariffWarning.set(!1),this.invalidateShippingAvailabilityMessages()}invalidateShippingAvailabilityMessages(){this.shippingAvailabilityMessages.set([]),this.shippingAvailabilityRequestId++}async loadDefaultShippingLocation(t){this.shippingDefaultsRequested=!0;try{let n=await Ee(this.cartApiService.getDefaultShippingLocation(t.marketRoute));(!this.shippingCountryId()||this.shippingCountryId()==="-1")&&n.country_id!=null&&this.shippingCountryId.set(String(n.country_id)),!this.shippingPostalCode().trim()&&n.post_code&&this.shippingPostalCode.set(n.post_code);let i=this.shippingCountryId();i&&i!=="-1"&&!this.shippingSelectedId()&&await this.consultShippingConditions()}catch(n){console.error(new ye(n instanceof Error?n.message:"Error loading default shipping location"))}}selectShippingOption(t){this.shippingOptions().some(n=>n.id===t)&&(this.shippingSelectedId.set(t),this.fetchShippingAvailabilityMessages().catch(n=>console.error(n)))}refreshShippingQuoteAfterCartChange(){let t=this.shippingSelectedId(),n=this.shippingCountryId();if(!t||!n||n==="-1"){(this.shippingOptions().length||this.shippingEmptyMessage()||this.shippingError())&&this.clearShippingQuote();return}this.consultShippingConditions({preserveSelectedId:t}).catch(r=>{console.error(r)})}async consultShippingConditions(t){let n=this.commonService.context(),r=this.shippingCountryId();if(!n||!r||r==="-1")throw new ye("Missing country or context for shipping quote");let i=t?.preserveSelectedId??"",o=++this.shippingQuoteRequestId;this.shippingLoading.set(!0),this.shippingError.set(!1),this.shippingEmptyMessage.set(null),this.invalidateShippingAvailabilityMessages(),i||(this.shippingOptions.set([]),this.shippingSelectedId.set(""));try{let s=await Ee(this.cartApiService.getShippingConditionsHtml(`${n.domain}/${n.marketRoute}`,{id_pais:r,codigo_postal:this.shippingPostalCode().trim()}));if(o!==this.shippingQuoteRequestId)return;let a=ng(s);this.shippingOptions.set(a.options),this.shippingEmptyMessage.set(a.emptyMessage),this.shippingTariffWarning.set(a.tariffWarning);let c=!!i&&a.options.some(f=>f.id===i),l=a.options.find(f=>f.isDefault)?.id??"",d=c?i:l;this.shippingSelectedId.set(d),d?this.fetchShippingAvailabilityMessages().catch(f=>console.error(f)):this.invalidateShippingAvailabilityMessages()}catch(s){if(o!==this.shippingQuoteRequestId)return;
10throw i&&(this.shippingOptions.set([]),this.shippingSelectedId.set(""),this.shippingTariffWarning.set(!1),this.invalidateShippingAvailabilityMessages()),this.shippingError.set(!0),new ye(s instanceof Error?s.message:"Error consulting shipping conditions")}finally{o===this.shippingQuoteRequestId&&this.shippingLoading.set(!1)}}async fetchShippingAvailabilityMessages(){let t=this.commonService.context(),n=this.selectedShippingOption();if(!t||!n){this.invalidateShippingAvailabilityMessages();return}let r=++this.shippingAvailabilityRequestId;this.shippingAvailabilityMessages.set([]);let i=n.storeId,o=i!=null&&i!==""?Number.parseInt(i,10):NaN;try{let s=await Ee(this.cartApiService.getCartAvailabilityMessage({path_code:t.marketRoute,send_form_id:Number.parseInt(n.id,10)||null,priority_store_id:Number.isFinite(o)?o:null}));if(r!==this.shippingAvailabilityRequestId)return;this.shippingAvailabilityMessages.set(s??[])}catch(s){if(r!==this.shippingAvailabilityRequestId)return;throw this.shippingAvailabilityMessages.set([]),new ye(s instanceof Error?s.message:"Error getting cart availability messages")}}formatAmountWithResume(t,n=2){let r=this.cartResource.value()?.resume;if(!r)return null;let i=t.toFixed(n);return`${r.sign_before??""}${i}${r.sign_after??""}`}totalWithShippingLabel(){let t=this.cartResource.value()?.resume;if(!t)return null;let n=this.selectedShippingOption();if(!n)return t.total_price;let r=t.total_price_without_currency+n.price;
10return this.formatAmountWithResume(r,n.decimals)??t.total_price}async getAvailabilitySizes(t){try{return await Ee(this.cartApiService.getAvailabilitySizes(t))}catch(n){throw new ye(n instanceof Error?n.message:"Error getting availability sizes")}}async sendConversionTikTokCheckout(t,n){try{await Ee(this.cartApiService.sendConversionTikTokCheckout(t,n))}catch(r){throw new ye(r instanceof Error?r.message:"Error sending conversion TikTok checkout")}}async addProductToCart(t){return this.withMutation(async()=>{try{let n=await Ee(this.cartApiService.addProductInCart(t));this.applyCartMutation(n)}catch(n){throw new ye(n instanceof Error?n.message:"Error adding product to cart")}})}async updateProductLineQuantity(t){return this.withMutation(async()=>{try{let n=await Ee(this.cartApiService.updateProductLineQuantity(t));this.applyCartMutation(n)}catch(n){throw new ye(n instanceof Error?n.message:"Error updating product quantity")}})}extractCustomerErrorMessage(t){let r=t?.error?.customer_error?.message;return typeof r=="string"&&r.trim().length>0?r:null}async withMutation(t){this.mutatingCount.update(n=>n+1);try{return await t()}finally{this.mutatingCount.update(n=>Math.max(0,n-1))}}applyCartMutation(t){this.cartResource.set(t),this.repaintCartUi()}repaintCartUi(){this.cartUiEpoch.update(t=>t+1)}async addCouponInCart(t){return this.withMutation(async()=>{try{let n=await Ee(this.cartApiService.addCouponInCart(t));this.applyCartMutation(n)}catch(n){throw new ye(n instanceof Error?n.message:"Error applying coupon to cart",this.extractCustomerErrorMessage(n))}})}async applyPromotionInCart(t){return this.withMutation(async()=>{try{let n=await Ee(this.cartApiService.applyPromotionInCart(t));this.applyCartMutation(n)}catch(n){throw new ye(n instanceof Error?n.message:"Error applying promotion to cart",this.extractCustomerErrorMessage(n))}})}async cancelPromotionInCart(t){return this.withMutation(async()=>{try{let n=await Ee(this.cartApiService.cancelPromotionInCart(t));this.applyCartMutation(n)}catch(n){throw new ye(n instanceof Error?n.message:"Error canceling promotion from cart",this.extractCustomerErrorMessage(n))}})}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};var Gt=class extends Error{constructor(t){super(`[WishlistService] ${t}`),this.name="WishlistServiceError"}};var Rt=class e{httpClient=g(Bn);commonService=g(fe);trackingService=g(Be);endpointBase=b(()=>{let t=this.commonService.context();return t?`${t.dataUrl}/ajax/`:null});endpoints={ADD:"add-favourite-product",GET_LIST:"user/favourites",REMOVE:"delete-favourite-product"};wishlistResource=Nt({request:()=>{let t=this.commonService.context(),n=this.commonService.userState();return!t||!n?.is_logged||n.user_id==null?null:{marketRoute:t.marketRoute,userId:n.user_id}},loader:async({request:t})=>{if(!t)return null;try{let n=await Ee(this.getWhislist());return this.sendViewItemListEvent(n),n}catch(n){let r=new Gt(n instanceof Error?n.message:"Error loading cart-wishlist");throw console.error(r),r}}});post(t,n,r){let i=this.endpointBase();if(!i)throw new Gt("No base URL available");let o=r?new URL(i+r+t):new URL(i+t);return this.httpClient.post(o.toString(),n,{withCredentials:!0})}get(t,n,r){let i=this.endpointBase();if(!i)throw new Gt("No base URL available");let o=r?new URL(i+r+t):new URL(i+t);return n.size>0&&n.forEach((s,a)=>{o.searchParams.append(a,s)}),this.httpClient.get(o.toString(),{withCredentials:!0})}toFormData(t){let n=new FormData;return n.append("productId",String(t.productId)),n.append("userId",String(t.userId)),n.append("device",t.device==null?"":String(t.device)),n.append("notifyChanges",String(t.notifyChanges)),n}mapToDataLayerItems(t){return t.flatMap(n=>{let r=n.datalayer;return(Array.isArray(r)?r:r?[r]:[]).map(o=>({item_key:o.item_key,item_name:o.item_name,item_id:o.item_id,price:o.price,item_brand:o.item_brand,item_category:o.item_category,item_category2:o.item_category2,item_category3:o.item_category3,item_category4:o.item_category4,item_variant:String(o.item_variant??""),variant_description:o.variant_description,quantity:o.quantity,main_collection:o.main_collection,discount:o.discount,item_offer:o.item_offer,tallaje_score:o.tallaje_score}))})}sendViewItemListEvent(t){let n=this.mapToDataLayerItems(t);n.length&&this.trackingService.sendViewItemListEvent(n)}getWhislist(){let t=this.commonService.context();if(!t)throw new Gt("No context available");let n=t.locale,r=t.marketRoute;return this.get(this.endpoints.GET_LIST,new Map().set("_locale",n),`${r}/`)}async addItemToWhislist(t){try{await Ee(this.post(this.endpoints.ADD,this.toFormData(t))),this.wishlistResource.reload()}catch(n){throw new Gt(n instanceof Error?n.message:"Error adding product to cart-wishlist")}}async removeItemFromWhislist(t){try{await Ee(this.post(this.endpoints.REMOVE,this.toFormData(t))),this.wishlistResource.reload()}catch(n){throw new Gt(n instanceof Error?n.message:"Error removing product from cart-wishlist")}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};
10function BE(e,t){if(e&1&&(p(0,"span",9),_(1),m(),p(2,"span",10)(3,"del"),_(4),m()()),e&2){y(2);let n=M(0);u(),T(n.price),u(3),T(n.originalPrice)}}function UE(e,t){if(e&1&&(p(0,"span"),_(1),m()),e&2){y(2);let n=M(0);u(),T(n.price)}}function HE(e,t){if(e&1){let n=Y();p(0,"div",0)(1,"div",1)(2,"a",2),O("click",function(){k(n);let i=y();return F(i.onProductClick())}),E(3,"img",3),m()(),p(4,"div",4)(5,"div",5),S(6,BE,5,2)(7,UE,2,1,"span"),m(),p(8,"a",6),O("click",function(){k(n);let i=y();return F(i.onProductClick())}),_(9),m()()(),p(10,"button",7),w(11,"translate"),O("click",function(){k(n);let i=y();return F(i.removeFromWishlist())}),E(12,"i",8),m()}if(e&2){y();let n=M(0),r=M(1),i=M(2);u(2),A("href",i,ue),u(),A("src",r,ue)("alt",n.title),u(3),C(n.showDiscount&&n.originalPrice&&n.originalPrice!==n.price?6:7),u(2),A("href",i,ue),u(),B(" ",n.title," "),u(),ie("aria-label",x(11,7,"WISHLIST.DELETE_FAVORITE"))}}var Ys=class e{commonService=g(fe);wishlistService=g(Rt);trackingService=g(Be);item=xe.required();index=xe(0);image=b(()=>{let t=this.commonService.context();if(!t)return null;let n=t.pathFiles,r=this.item().image,i=this.item().id;return!n||!r||!i?null:`${n}/imagesarticulos/${i}/medianas/${r}`});pdpUrl=b(()=>{let t=this.commonService.context();if(!t)return"";let n=t.domain,r=t.marketRoute,i=this.item().url;return!i||!n||!r?"":`${n}/${r}/${i}`});onProductClick(){let t=this.wishlistService.mapToDataLayerItems([this.item()]);if(!t.length)return;let n=t[0].item_key;n&&this.trackingService.sendProductClickEvent(t,n)}async removeFromWishlist(){let t=this.commonService.userState()?.user_id;if(t!=null)try{await this.wishlistService.removeItemFromWhislist({productId:this.item().id,userId:t,device:null,notifyChanges:!1})}catch(n){console.error(n)}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["wishlist-item"]],hostAttrs:[1,"cart-enter","d-flex","align-items-start","justify-content-between","gap-3","py-3","border-bottom"],hostVars:2,hostBindings:function(n,r){n&2&&Ve("--stagger-index",r.index())},inputs:{item:[1,"item"],index:[1,"index"]},decls:4,vars:4,consts:[[1,"d-flex","align-items-center","gap-3","flex-grow-1"],[1,"bg-light","cart-product-image","overflow-hidden","flex-shrink-0"],[3,"click","href"],["loading","lazy",1,"w-100","h-100","object-fit-contain","img-fluid",3,"src","alt"],[1,"flex-grow-1"],[1,"fw-bolder","mb-1"],[1,"fw-bold","text-decoration-none","text-dark","d-block","mb-0",3,"click","href"],["type","button",1,"btn","btn-link","text-muted","p-0","flex-shrink-0",3,"click"],[1,"fa-regular","fa-xmark"],[1,"text-danger"],[1,"text-muted","ms-1"]],template:function(n,r){if(n&1&&(ae(0)(1)(2),S(3,HE,13,9)),n&2){let i=Q(r.item());u();let o=Q(r.image());u();let s=Q(r.pdpUrl());u(),C(i&&o&&s?3:-1)}},dependencies:[me],styles:[".cart-product-image[_ngcontent-%COMP%]{width:88px;height:88px}"],changeDetection:0})};var $E=()=>[],zE=(e,t)=>t.id;function GE(e,t){e&1&&(p(0,"div",0),E(1,"i",3),p(2,"p",4),_(3),w(4,"translate"),m()()),e&2&&(u(3),T(x(4,1,"WISHLIST.LOGIN_REQUIRED")))}function WE(e,t){e&1&&(p(0,"div",1),E(1,"i",5),p(2,"p",6),_(3),w(4,"translate"),m()()),e&2&&(u(3),T(x(4,1,"WISHLIST.LOADING")))}function qE(e,t){if(e&1){let n=Y();p(0,"div",2)(1,"p",7),_(2),w(3,"translate"),m(),p(4,"button",8),O("click",function(){k(n);let i=y();return F(i.wishlist.reload())}),_(5),w(6,"translate"),m()()}e&2&&(u(2),T(x(3,2,"WISHLIST.ERROR")),u(3),B(" ",x(6,4,"WISHLIST.RELOAD")," "))}function ZE(e,t){if(e&1&&E(0,"wishlist-item",9),e&2){let n=t.$implicit,r=t.$index;A("item",n)("index",r)}}function YE(e,t){if(e&1&&oe(0,ZE,1,2,"wishlist-item",9,zE),e&2){y();let n=M(0);se(n)}}function QE(e,t){e&1&&(p(0,"div",0),E(1,"i",3),p(2,"p",4),_(3),w(4,"translate"),m()()),e&2&&(u(3),T(x(4,1,"WISHLIST.EMPTY")))}function KE(e,t){if(e&1&&(ae(0),S(1,YE,2,0)(2,QE,5,3,"div",0)),e&2){let n,r=Q((n=y().wishlist.value())!==null&&n!==void 0?n:nm(2,$E));u(),C(r.length>0?1:2)}}var Qs=class e{commonService=g(fe);wishlistService=g(Rt);userState=b(()=>this.commonService.userState());wishlist=this.wishlistService.wishlistResource;static \u0275fac=function(n){return new(n||e)};
10static \u0275cmp=ne({type:e,selectors:[["cart-wishlist"]],hostAttrs:[1,"cart-main__body","flex-fill"],decls:5,vars:1,consts:[[1,"cart-enter","text-center","text-muted","py-5"],[1,"my-5","text-center"],[1,"text-center","my-5"],[1,"fa-regular","fa-heart","fa-2x","mb-3","d-block"],[1,"mb-0"],[1,"spinner-border","spinner-border-xl","border-5",2,"width","3em","height","3em","border-width","0.4em"],[1,"fw-bold","mt-2","mb-0"],[1,"mb-3"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[3,"item","index"]],template:function(n,r){if(n&1&&(ae(0),S(1,GE,5,3,"div",0)(2,WE,5,3,"div",1)(3,qE,7,6,"div",2)(4,KE,3,3)),n&2){let i=r.userState();u(),C(!i||!i.is_logged?1:r.wishlist.isLoading()&&!r.wishlist.hasValue()?2:r.wishlist.error()?3:r.wishlist.hasValue()?4:-1)}},dependencies:[me,Ys],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};var pn=class e{sanitizer=g(_u);transform(t,n){if(!t||!Array.isArray(n))return t;let r=t;return n.forEach(i=>{r=r.replace("%s",i)}),this.sanitizer.bypassSecurityTrustHtml(r)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=br({name:"replacePlaceholder",type:e,pure:!0})};function JE(e,t){if(e&1){let n=Y();p(0,"a",17),O("click",function(){k(n);let i=y(3);return F(i.onProductClick())}),E(1,"img",16),m()}if(e&2){y(3);let n=M(0),r=M(1),i=M(3);A("href",r,ue),ie("tabindex",i?-1:null),u(),A("src",n.url_image,ue)("alt",n.image_alt||n.title)}}function XE(e,t){if(e&1&&E(0,"img",16),e&2){y(3);let n=M(0);A("src",n.url_image,ue)("alt",n.image_alt||n.title)}}function ew(e,t){if(e&1&&S(0,JE,2,4,"a",15)(1,XE,1,2,"img",16),e&2){y(2);let n=M(1);C(n?0:1)}}function tw(e,t){e&1&&E(0,"div",2)}function nw(e,t){if(e&1&&(p(0,"span",18),_(1),m()),e&2){y(3);let n=M(0);u(),T(n.promotion_applied)}}function rw(e,t){e&1&&(p(0,"span",19),_(1),w(2,"translate"),m()),e&2&&(u(),B(" ",x(2,1,"CART.PRODUCT_EXCLUDED_PROMOTIONS")," "))}function iw(e,t){if(e&1&&(p(0,"div",4),S(1,nw,2,1,"span",18)(2,rw,3,3,"span",19),m()),e&2){y(2);let n=M(0);u(),C(n.promotion_applied?1:-1),u(),C(n.exclude_promotion?2:-1)}}function ow(e,t){if(e&1&&(p(0,"span"),_(1),m()),e&2){y(2);let n=M(0);u(),T(n.total_price)}}function sw(e,t){if(e&1&&(p(0,"span",20),_(1),m(),p(2,"span",21)(3,"del"),_(4),m()()),e&2){y(2);let n=M(0);u(),T(n.total_price_with_discount),u(3),T(n.total_price)}}function aw(e,t){if(e&1){let n=Y();p(0,"a",22),O("click",function(){k(n);let i=y(2);return F(i.onProductClick())}),_(1),m()}if(e&2){y(2);let n=M(0),r=M(1),i=M(3);A("href",r,ue),ie("tabindex",i?-1:null),u(),B(" ",n.title," ")}}function cw(e,t){if(e&1&&(p(0,"div",7),_(1),m()),e&2){y(2);let n=M(0);u(),T(n.title)}}function lw(e,t){if(e&1){let n=Y();p(0,"input",24),O("input",function(i){k(n);let o=y(3);return F(o.onQuantityInput(i))})("focus",function(i){k(n);let o=y(3);return F(o.storePreviousValue(i))})("change",function(i){k(n);let o=y(3);return F(o.updateQuantity(i))}),m()}if(e&2){y(3);let n=M(0),r=M(3);A("name","qty-"+n.key)("value",n.quantity)("disabled",r)}}function uw(e,t){if(e&1&&(p(0,"span",26),_(1),w(2,"translate"),m()),e&2){y(4);let n=M(0);u(),wr("",x(2,2,"CART.PRICE_UNIT"),": ",n.price_for_unit,"")}}function dw(e,t){if(e&1&&(p(0,"span",25),_(1),m(),S(2,uw,3,4,"span",26)),e&2){y(3);let n=M(0);u(),T(n.quantity),u(),C(n.quantity>1?2:-1)}}function fw(e,t){if(e&1&&(p(0,"div",8),_(1),w(2,"translate"),w(3,"translate"),S(4,lw,1,3,"input",23)(5,dw,3,2),m()),e&2){let n=y(2),r=M(0);u(),Yl(" ",x(2,4,"CART.SIZE"),": ",r.size,"\xA0|\xA0 ",x(3,6,"CART.QUANTITY"),": "),u(3),C(n.canEditQuantity()?4:5)}}function pw(e,t){e&1&&(p(0,"span",27),_(1),w(2,"translate"),m()),e&2&&(u(),B(" ",x(2,1,"CART.LAST_UNIT_HURRY")," "))}function hw(e,t){e&1&&(p(0,"span",28),_(1),w(2,"translate"),m()),e&2&&(u(),B(" ",x(2,1,"CART.FEW_UNITS_LEFT")," "))}function mw(e,t){if(e&1&&(p(0,"div",9),S(1,pw,3,3,"span",27)(2,hw,3,3,"span",28),m()),e&2){let n=y(2);u(),C(n.stockUnits()===1?1:2)}}function gw(e,t){if(e&1&&_(0),e&2){let n=y().$implicit;B(" ",n.value," ")}}function yw(e,t){if(e&1&&E(0,"img",31),e&2){let n=y().$implicit;A("src",n.link_image_customization,ue)("alt",n.title)}}function vw(e,t){if(e&1&&(p(0,"li",4),E(1,"i",30),p(2,"b"),_(3),m(),S(4,gw,1,1)(5,yw,1,2,"img",31),m()),e&2){let n=t.$implicit;u(3),T(n.title),u(),C(n.value?4:-1),u(),C(n.link_image_customization?5:-1)}}function _w(e,t){if(e&1&&oe(0,vw,6,3,"li",4,ze),e&2){let n=y().$implicit;se(n.customization)}}function Cw(e,t){if(e&1&&(p(0,"li",4),_(1),p(2,"span",29),_(3),w(4,"translate"),m()(),S(5,_w,2,0)),e&2){let n=t.$implicit;u(),B(" ",n.title," "),u(2),wr(" - ",x(4,4,"CART.SIZE"),": ",n.size,""),u(2),C(n.customization&&n.customization.length?5:-1)}}function bw(e,t){if(e&1&&(p(0,"ul",10),oe(1,Cw,6,6,null,null,ze),m()),e&2){let n=y(2);u(),se(n.packValues())}}function Dw(e,t){if(e&1&&_(0),e&2){let n=y().$implicit;B(" ",n.value," ")}}function Ew(e,t){if(e&1&&E(0,"img",31),e&2){let n=y().$implicit;A("src",n.link_image_customization,ue)("alt",n.title)}}function ww(e,t){if(e&1&&(p(0,"div"),E(1,"i",30),p(2,"b"),_(3),m(),S(4,Dw,1,1)(5,Ew,1,2,"img",31),m()),e&2){let n=t.$implicit;u(3),T(n.title),u(),C(n.value?4:-1),u(),C(n.link_image_customization?5:-1)}}function Iw(e,t){if(e&1&&(p(0,"div",11),oe(1,ww,6,3,"div",null,ze),m()),e&2){let n=y(2);u(),se(n.customizations())}}
10function Sw(e,t){if(e&1&&(p(0,"div",32),_(1),m()),e&2){let n=t.$implicit;u(),T(n.message)}}function xw(e,t){if(e&1&&oe(0,Sw,2,1,"div",32,ze),e&2){y(2);let n=M(0);se(n.message_product)}}function Tw(e,t){e&1&&E(0,"i",13)}function Mw(e,t){e&1&&E(0,"i",14)}function Aw(e,t){if(e&1){let n=Y();p(0,"div",0)(1,"div",1),S(2,ew,2,1)(3,tw,1,0,"div",2),m(),p(4,"div",3),S(5,iw,3,2,"div",4),p(6,"div",5),S(7,ow,2,1,"span")(8,sw,5,2),m(),S(9,aw,2,3,"a",6)(10,cw,2,1,"div",7)(11,fw,6,8,"div",8)(12,mw,3,1,"div",9)(13,bw,3,0,"ul",10)(14,Iw,3,0,"div",11)(15,xw,2,0),m()(),p(16,"button",12),w(17,"translate"),O("click",function(){k(n);let i=y();return F(i.deleteProductLine())}),S(18,Tw,1,0,"i",13)(19,Mw,1,0,"i",14),m()}if(e&2){let n=y(),r=M(0),i=M(1),o=M(2),s=M(3);u(2),C(r.url_image?2:-1),u(),C(o?3:-1),u(),X("product-item__content--dimmed",o),u(),C(r.promotion_applied||r.exclude_promotion?5:-1),u(2),C(r.total_price===r.total_price_with_discount?7:8),u(2),C(i?9:10),u(2),C(r.is_pack?-1:11),u(),C(n.showLowStock()?12:-1),u(),C(r.is_pack&&n.packValues().length?13:-1),u(),C(!r.is_pack&&n.customizations().length?14:-1),u(),C(r.message_product&&r.message_product.length?15:-1),u(),A("disabled",s),ie("aria-label",x(17,16,"CART.DELETE_PRODUCT"))("aria-busy",o),u(2),C(o?18:19)}}var Ks=class e{commonService=g(fe);cartService=g(re);trackingService=g(Be);TYPE_LINE_PROD="TLA_PROD";TYPE_LINE_CUP="TLA_CUP";STOCK_MIN_FOR_ADVICE=4;item=xe.required();showBorder=xe(!0);index=xe(0);isSubmitting=V(!1);previousQuantity=null;isBusy=b(()=>{if(this.isSubmitting()||this.cartService.isMutating())return!0;let t=this.cartService.cartResource;return t.hasValue()&&t.isLoading()});isCouponLine=b(()=>this.item().type_line===this.TYPE_LINE_CUP);pdpUrl=b(()=>{let t=this.commonService.context();if(!t)return"";let n=t.domain,r=t.marketRoute,i=this.item().link_product;return!i||!n||!r||this.item().type_line!==this.TYPE_LINE_PROD?"":`${n}/${r}/${i}`});canEditQuantity=b(()=>{let t=this.item();return t.type_line===this.TYPE_LINE_PROD&&t.limit_for_unit===0});stockUnits=b(()=>{let t=this.item().total_stock;return t==null?null:typeof t=="number"?t:Array.isArray(t)?t.at(0)??null:null});showLowStock=b(()=>{if(this.item().is_pack)return!1;let n=this.stockUnits();return n==null?!1:n<this.STOCK_MIN_FOR_ADVICE});packValues=b(()=>{let t=this.item().values;return t?(Array.isArray(t)?[...t]:Object.values(t)).sort((r,i)=>{let o=Array.isArray(r.customization)&&r.customization.length>0,s=Array.isArray(i.customization)&&i.customization.length>0;if(o&&!s)return-1;if(!o&&s)return 1;let a=o&&(r.customization??[]).some(l=>!!l.value),c=s&&(i.customization??[]).some(l=>!!l.value);return a&&!c?-1:!a&&c?1:0}):[]});customizations=b(()=>{let t=this.item().customization;return Array.isArray(t)?t:[]});dataLayerItems(){let t=this.cartService.cartResource.value();return!t||!t.data_layer?[]:t.data_layer}onProductClick(){this.trackingService.sendProductClickEvent(this.dataLayerItems(),this.item().key)}storePreviousValue(t){let n=t.target;this.previousQuantity=parseInt(n.value,10)}onQuantityInput(t){let n=t.target;n.value.length>n.maxLength&&(n.value=n.value.slice(0,n.maxLength))}async updateQuantity(t){if(this.isBusy())return;let n=t.target,r=parseInt(n.value,10);if(isNaN(r)||this.previousQuantity!=null&&r===this.previousQuantity)return;let i=this.commonService.context();if(!i)return;let o=this.previousQuantity,s=o==null?0:r-o;this.isSubmitting.set(!0);try{s>0?this.trackingService.sendAddToCartEvent(this.dataLayerItems(),this.item().key,s):s<0&&this.trackingService.sendRemoveFromCartEvent(this.dataLayerItems(),this.item().key,Math.abs(s)),await this.cartService.updateProductLineQuantity({processing_id:this.item().key,quantity:r,path_code:i.marketRoute})}catch(a){console.error(a),o!=null&&(n.value=String(o)),this.isSubmitting.set(!1)}}async deleteProductLine(){if(this.isBusy())return;let t=this.commonService.context();if(t){this.isSubmitting.set(!0);try{if(this.isCouponLine()){let n=this.item().promotionId;if(n==null){this.isSubmitting.set(!1);return}await this.cartService.cancelPromotionInCart({promotion_id:n,path_code:t.marketRoute});return}this.trackingService.sendRemoveFromCartEvent(this.dataLayerItems(),this.item().key),await this.cartService.updateProductLineQuantity({processing_id:this.item().key,quantity:0,path_code:t.marketRoute})}catch(n){console.error(n),this.isSubmitting.set(!1)}}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["product-item"]],hostAttrs:[1,"product-item","cart-enter","position-relative","d-flex","align-items-start","justify-content-between","gap-3","py-3"],hostVars:8,hostBindings:function(n,r){n&2&&(Ve("--stagger-index",r.index()),X("border-bottom",r.showBorder())("is-submitting",r.isSubmitting())("is-busy",r.isBusy()))},inputs:{item:[1,"item"],showBorder:[1,"showBorder"],index:[1,"index"]},decls:5,vars:5,consts:[[1,"d-flex","align-items-center","gap-3","flex-grow-1"],[1,"bg-light","cart-product-image","overflow-hidden","flex-shrink-0","position-relative"],["aria-hidden","true",1,"product-item__veil","position-absolute","top-0","start-0","w-100","h-100","pe-none"],[1,"flex-grow-1"],[1,"mb-1"],[1,"fw-bolder","mb-1"],[1,"fw-bold","text-decoration-none","text-dark","d-block","mb-1","lh-sm",3,"href"],[1,"fw-bold","mb-1"],[1,"text-muted","d-flex","align-items-center","flex-wrap"],[1,"mb-1","mt-1"],[1,"list-unstyled","mt-2","mb-0","font-smaller"],[1,"mt-2","font-smaller"],["type","button",1,"btn","btn-link","text-muted","p-0","flex-shrink-0",3,"click","disabled"],["aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"fa-regular","fa-xmark"],[3,"href"],["loading","lazy",1,"w-100","h-100","object-fit-contain","img-fluid",3,"src","alt"],[3,"click","href"],[1,"badge","rounded-pill","bg-danger","fw-light"],[1,"badge","rounded-pill","bg-secondary","bg-opacity-25","text-dark","fw-light"],[1,"text-danger"],[1,"text-muted","ms-1"],[1,"fw-bold","text-decoration-none","text-dark","d-block","mb-1","lh-sm",3,"click","href"],["type","number","pattern","\\d*","min","1","max","99","maxlength","2","minlength","1",1,"form-control","form-control-sm","ms-2",2,"max-width","70px",3,"name","value","disabled"],["type","number","pattern","\\d*","min","1","max","99","maxlength","2","minlength","1",1,"form-control","form-control-sm","ms-2",2,"max-width","70px",3,"input","focus","change","name","value","disabled"],[1,"ms-1"],[1,"ms-2"],[1,"badge","rounded-pill","border","border-danger","text-danger","fw-light"],[1,"badge","rounded-pill","border","border-muted","text-muted","fw-light"],[1,"text-muted"],[1,"fal","fa-long-arrow-alt-right","me-2","text-primary"],[1,"ms-1",2,"width","24px",3,"src","alt"],[1,"text-muted","fst-italic","font-smaller","mt-1"]],template:function(n,r){if(n&1&&(ae(0)(1)(2)(3),S(4,Aw,20,18)),n&2){let i=Q(r.item());u(),Q(r.pdpUrl()),u(),Q(r.isSubmitting()),u(),Q(r.isBusy()),u(),C(i?4:-1)}},dependencies:[me],styles:["[_nghost-%COMP%]{display:flex;width:100%}.is-busy[_nghost-%COMP%]{pointer-events:none;-webkit-user-select:none;user-select:none}.is-submitting[_nghost-%COMP%]{opacity:.55}.cart-product-image[_ngcontent-%COMP%]{width:88px;height:88px}.product-item__veil[_ngcontent-%COMP%]{z-index:1;background:#ffffff8c}.product-item__content--dimmed[_ngcontent-%COMP%]{opacity:.7}"],changeDetection:0})};function Nw(e,t){e&1&&E(0,"img",1),e&2&&A("src",t,ue)}function Rw(e,t){e&1&&E(0,"span",6)}function Pw(e,t){e&1&&(_(0),w(1,"translate")),e&2&&B(" ",x(1,1,"CART.ADD")," ")}function Ow(e,t){if(e&1){let n=Y();p(0,"div",0),S(1,Nw,1,1,"img",1),p(2,"div",2)(3,"div",3),_(4),w(5,"translate"),m(),p(6,"div",4),_(7),m()(),p(8,"button",5),O("click",function(){k(n);let i=y();return F(i.addGiftBag())}),S(9,Rw,1,0,"span",6)(10,Pw,2,3),m()()}if(e&2){let n,r=y(),i=M(0),o=M(1);u(),C((n=r.imageUrl())?1:-1,n),u(3),T(x(5,7,"CART.MESSAGE_GIFT")),u(3),wr("",r.title()," \xB7 ",i.price,""),u(),A("disabled",o),ie("aria-busy",r.isSubmitting()),u(),C(r.isSubmitting()?9:10)}}var Js=class e{cartService=g(re);commonService=g(fe);trackingService=g(Be);giftBag=xe.required();index=xe(0);isSubmitting=V(!1);isBusy=b(()=>{if(this.isSubmitting()||this.cartService.isMutating())return!0;let t=this.cartService.cartResource;return t.hasValue()&&t.isLoading()});title=b(()=>{let t=this.giftBag();return t.title_default?t.title_default:t.title});imageUrl=b(()=>{let t=this.commonService.context();return t?.pathFiles?`${t.pathFiles}/imagesEstructura/cesta/bolsa-regalo-play.jpg`:null});async addGiftBag(){if(this.isBusy())return;let t=this.commonService.context();if(!t)return;let n=this.giftBag(),r={path_code:t.marketRoute,processing_type:"normal",processing_id:null,product_groups:[{processing_quantity:1,products:[{product_id:n.id,size_id:n.size,quantity:1,is_main_product:!0,
10customization:null}]}]};this.isSubmitting.set(!0);try{n.data_layer&&n.data_layer.length&&this.trackingService.sendAddToCartEvent(n.data_layer,"1",1),await this.cartService.addProductToCart(r)}catch(i){console.error(i)}finally{this.isSubmitting.set(!1)}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["gift-bag"]],hostAttrs:[1,"gift-bag","cart-enter","d-block","my-4"],hostVars:4,hostBindings:function(n,r){n&2&&(Ve("--stagger-index",r.index()),X("is-busy",r.isBusy()))},inputs:{giftBag:[1,"giftBag"],index:[1,"index"]},decls:3,vars:3,consts:[[1,"gift-bag__panel","d-flex","align-items-center","gap-2","gap-sm-3","p-3","rounded-3"],["alt","","width","48","height","48","loading","lazy",1,"gift-bag__image","flex-shrink-0","rounded",3,"src"],[1,"min-w-0","flex-grow-1"],[1,"fw-bold","lh-sm","text-dark"],[1,"small","text-muted","lh-sm"],["type","button",1,"gift-bag__cta","btn","btn-sm","fw-semibold","text-nowrap","px-3","flex-shrink-0",3,"click","disabled"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"]],template:function(n,r){if(n&1&&(ae(0)(1),S(2,Ow,11,9,"div",0)),n&2){let i=Q(r.giftBag());u(),Q(r.isBusy()),u(),C(i?2:-1)}},dependencies:[me],styles:["[_nghost-%COMP%]{display:block}.is-busy[_nghost-%COMP%]{pointer-events:none;-webkit-user-select:none;user-select:none}.gift-bag__panel[_ngcontent-%COMP%]{border:1px solid transparent;background:linear-gradient(#fff,#fff) padding-box,linear-gradient(90deg,#3d1a12,#f5a623) border-box}.gift-bag__image[_ngcontent-%COMP%]{width:48px;height:48px;object-fit:contain}.gift-bag__cta[_ngcontent-%COMP%]{background:#f5a623;color:#111;border:0}.gift-bag__cta[_ngcontent-%COMP%]:hover, .gift-bag__cta[_ngcontent-%COMP%]:focus-visible{background:#e09516;color:#111}.gift-bag__cta[_ngcontent-%COMP%]:disabled{opacity:.7}"],changeDetection:0})};var kw=e=>[e],Fw=(e,t)=>t.key;function Lw(e,t){e&1&&(p(0,"div",0),E(1,"i",2),p(2,"p",3),_(3),w(4,"translate"),m()()),e&2&&(u(3),T(x(4,1,"CART.LOADING")))}function Vw(e,t){if(e&1){let n=Y();p(0,"div",1)(1,"p",4),_(2),w(3,"translate"),m(),p(4,"button",5),O("click",function(){k(n);let i=y();return F(i.cart.reload())}),_(5),w(6,"translate"),m()()}e&2&&(u(2),T(x(3,2,"CART.ERROR_SERVER_MESSAGE")),u(3),B(" ",x(6,4,"CART.RELOAD_CART")," "))}function jw(e,t){if(e&1&&(p(0,"span",11),E(1,"i",14),p(2,"span",15),_(3),m()()),e&2){let n=y(2).$implicit;u(3),T(n.header.sendText)}}function Bw(e,t){if(e&1&&(p(0,"div",10),S(1,jw,4,1,"span",11),p(2,"span",12),_(3),w(4,"translate"),p(5,"span",13),_(6),m()()()),e&2){let n=y(),r=n.$implicit,i=n.$index,o=y(3);Ve("--stagger-index",i),u(),C(o.productGroups().length>1?1:-1),u(2),B(" ",x(4,5,"CART.ESTIMATED_DEPARTURE_DATE")," "),u(3),T(r.header.date)}}function Uw(e,t){if(e&1&&E(0,"product-item",9),e&2){let n=t.$implicit,r=t.$index,i=y().$index,o=y(3);A("item",n)("index",o.staggerIndex(i,r))("showBorder",n.key!==o.lastProductKey())}}function Hw(e,t){if(e&1&&(p(0,"div",4),S(1,Bw,7,7,"div",8),oe(2,Uw,1,3,"product-item",9,Fw),m()),e&2){let n=t.$implicit,r=y(3);u(),C(n.header?1:-1),u(),se(r.productLines(n))}}function $w(e,t){if(e&1&&E(0,"gift-bag",7),e&2){let n=y(3);A("giftBag",t)("index",n.productCount())}}function zw(e,t){if(e&1&&(oe(0,Hw,4,1,"div",4,ze),S(2,$w,1,2,"gift-bag",7)),e&2){let n,r=y(2);se(r.productGroups()),u(2),C((n=r.giftBag())?2:-1,n)}}function Gw(e,t){if(e&1&&(p(0,"div",6),E(1,"i",16)(2,"p",17),w(3,"translate"),w(4,"replacePlaceholder"),p(5,"a",18),_(6),w(7,"translate"),m()()),e&2){let n=y(2);u(2),A("innerHTML",$t(4,5,x(3,3,"CART.YOUR_BASKET_IS_EMPTY_OUR_LAST_RELEASES"),cn(10,kw,n.homeUrl())),Ze),u(3),A("href",n.homeUrl(),ue),u(),B(" ",x(7,8,"CART.BACK_TO_WEB")," ")}}function Ww(e,t){if(e&1&&S(0,zw,3,1)(1,Gw,8,12,"div",6),e&2){let n=y();C(n.hasProducts()?0:1)}}var Xs=class e{cartService=g(re);commonService=g(fe);cart=this.cartService.cartResource;productGroups=b(()=>{if(this.cart.hasValue()){let t=this.cart.value();if(t)return t.grouped_date}return[]});giftBag=b(()=>{if(this.cart.hasValue()){let t=this.cart.value();if(t&&t.gift_bag)return t.gift_bag}return null});hasProducts=b(()=>{let t=this.productGroups();return t.length?this.productLines(t[0]).length>0:!1});lastProductKey=b(()=>{let t=this.productGroups();for(let n=t.length-1;n>=0;n--){let r=this.productLines(t[n]);if(r.length)return r[r.length-1].key}return null});homeUrl=b(()=>{let t=this.commonService.context();if(!t)return"";let n=t.domain,r=t.marketRoute;return!n||!r?"":`${n}/${r}`});
10productCount=b(()=>this.productGroups().reduce((t,n)=>t+this.productLines(n).length,0));productLines(t){let n=t.lines;return Array.isArray(n)?n:Object.values(n??{})}staggerIndex(t,n){let r=this.productGroups(),i=0;for(let o=0;o<t;o++)i+=this.productLines(r[o]).length;return i+n}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-products"]],hostAttrs:[1,"cart-products","d-block"],decls:3,vars:1,consts:[[1,"my-5","text-center"],[1,"text-center","my-5"],[1,"spinner-border","spinner-border-xl","border-5",2,"width","3em","height","3em","border-width","0.4em"],[1,"fw-bold","mt-2","mb-0"],[1,"mb-3"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"cart-enter","text-center","text-muted","py-5"],[3,"giftBag","index"],[1,"cart-enter","py-2","d-flex","flex-column","flex-md-row","align-items-start","align-items-md-center","justify-content-md-between","gap-1","gap-md-0",3,"--stagger-index"],[3,"item","index","showBorder"],[1,"cart-enter","py-2","d-flex","flex-column","flex-md-row","align-items-start","align-items-md-center","justify-content-md-between","gap-1","gap-md-0"],[1,"d-flex","align-items-center"],[1,"fw-bold"],[1,"text-success"],[1,"fa-regular","fa-box-taped","text-muted","me-2"],[1,"fw-bolder"],[1,"fa-regular","fa-bag-shopping","fa-2x","mb-3","d-block"],[3,"innerHTML"],[1,"btn","btn-primary","btn-lg","mt-3",3,"href"]],template:function(n,r){n&1&&S(0,Lw,5,3,"div",0)(1,Vw,7,6,"div",1)(2,Ww,2,1),n&2&&C(r.cart.isLoading()&&!r.cart.hasValue()?0:r.cart.error()?1:r.cart.hasValue()?2:-1)},dependencies:[me,pn,Ks,Js],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};var qw=["memberPointsHelp"],Zw=e=>[e],rg=(e,t)=>t.id;function Yw(e,t){e&1&&E(0,"div",7),e&2&&A("innerHTML",t,Ze)}function Qw(e,t){if(e&1){let n=Y();p(0,"li",18)(1,"span"),E(2,"i",19),_(3),m(),p(4,"button",20),O("click",function(){let i=k(n).$implicit,o=y(3);return F(o.applyPromotion(i.id))}),_(5),w(6,"translate"),m()()}if(e&2){let n=t.$implicit,r=y(3);u(3),B("",n.name," "),u(),A("disabled",r.isBusy()),u(),B(" ",x(6,3,"CART.APPLY")," ")}}function Kw(e,t){if(e&1&&(p(0,"div",2)(1,"b",16),_(2),w(3,"translate"),m(),p(4,"ul",17),oe(5,Qw,7,5,"li",18,rg),m()()),e&2){let n=y(2);u(2),T(x(3,1,"CART.APPLICABLE_PROMOTIONS")),u(3),se(n.promotionsNotApplied())}}function Jw(e,t){if(e&1){let n=Y();p(0,"div",8)(1,"span")(2,"button",21),O("click",function(){let i=k(n).$implicit,o=y(2);return F(o.cancelPromotion(i.id))}),E(3,"i",22),m(),_(4),m(),p(5,"span"),_(6),m()()}if(e&2){let n=t.$implicit,r=y(2);u(2),A("disabled",r.isBusy()),u(2),B(" ",n.name," "),u(2),B("- ",n.saving_price,"")}}function Xw(e,t){if(e&1){let n=Y();p(0,"button",23),O("click",function(){k(n);let i=y(2);return F(i.calculateShipping.emit())}),_(1),m()}e&2&&(u(),B(" ",t," "))}function eI(e,t){if(e&1){let n=Y();p(0,"button",23),O("click",function(){k(n);let i=y(2);return F(i.calculateShipping.emit())}),_(1),w(2,"translate"),m()}e&2&&(u(),B(" ",x(2,1,"CART.CALCULATE_SHIPPING")," "))}function tI(e,t){if(e&1&&E(0,"div",24),e&2){let n=t.$implicit,r=t.$index;Is("cart-enter alert alert-",n.type," mt-2 mb-0"),Ve("--stagger-index",r),A("innerHTML",n.message,Ze)}}function nI(e,t){e&1&&(p(0,"div",12)(1,"div",25),E(2,"i",26),_(3),w(4,"translate"),m()()),e&2&&(u(3),B("",x(4,1,"CART.SURCHARGE_EQUIVALENCE_APPLIED")," "))}function rI(e,t){if(e&1&&E(0,"img",31),e&2){let n=y(4);A("src",n.memberPointsImage(),ue)}}function iI(e,t){if(e&1&&(p(0,"div",27)(1,"span")(2,"a",28,0),w(4,"translate"),E(5,"i",29),m(),_(6),w(7,"translate"),m(),p(8,"span",30),_(9),S(10,rI,1,1,"img",31),m()()),e&2){y();let n=M(0),r=y(2);u(2),ie("data-bs-content",x(4,4,"CART.MESSAGE_MEMBER_POINTS_ADDED")),u(4),B(" ",x(7,6,"CART.MEMBER_POSSIBLE_ADD")," "),u(3),B(" ",n.member_points_added," "),u(),C(r.memberPointsImage()?10:-1)}}function oI(e,t){if(e&1&&(ae(0),S(1,iI,11,8,"div",27)),e&2){let n=Q(y(2).memberView());u(),C(n?1:-1)}}function sI(e,t){if(e&1&&E(0,"img",31),e&2){let n=y(4);A("src",n.memberPointsImage(),ue)}}function aI(e,t){if(e&1&&(p(0,"div",32)(1,"div",25),_(2),w(3,"translate"),m(),p(4,"div",33)(5,"span",34),_(6),S(7,sI,1,1,"img",31),m(),E(8,"small",35),w(9,"translate"),w(10,"replacePlaceholder"),m()()),e&2){y();let n=M(0),r=y(2);u(2),B(" ",x(3,4,"CART.MEMBER_BALANCE")," "),u(4),B(" ",n.member_points_balance," "),u(),C(r.memberPointsImage()?7:-1),u(),A("innerHTML",$t(10,8,x(9,6,"CART.MEMBER_BALANCE_EQUIVALENCE"),cn(11,Zw,n.member_points_balance_equivalence)),Ze)}}function cI(e,t){if(e&1&&(ae(0),S(1,aI,11,13,"div",32)),e&2){let n=Q(y(2).memberView());u(),C(n?1:-1)}}function lI(e,t){if(e&1){let n=Y();p(0,"h2",1),_(1),w(2,"translate"),m(),p(3,"div",2)(4,"label",3),_(5),w(6,"translate"),m(),p(7,"div",4)(8,"input",5),w(9,"translate"),O("input",function(i){k(n);let o=y();return F(o.onCouponInput(i))}),m(),p(10,"button",6),O("click",function(){k(n);let i=y();return F(i.applyCoupon())}),_(11),w(12,"translate"),m()(),S(13,Yw,1,1,"div",7),m(),S(14,Kw,7,3,"div",2),p(15,"div",8)(16,"span"),_(17),w(18,"translate"),m(),p(19,"span"),_(20),m()(),oe(21,Jw,7,3,"div",8,rg),p(23,"div",9)(24,"span"),_(25),w(26,"translate"),m(),S(27,Xw,2,1,"button",10)(28,eI,3,3,"button",10),m(),oe(29,tI,1,6,"div",11,ze),S(31,nI,5,3,"div",12),E(32,"hr",13),S(33,oI,2,2),p(34,"div",9)(35,"span",14),_(36),w(37,"translate"),m(),p(38,"span",15),_(39),m()(),S(40,cI,2,2)}if(e&2){let n,r,i=y(),o=M(0);u(),T(x(2,18,"CART.OVERVIEW")),u(4),T(x(6,20,"CART.COUPONS_AND_PROMOTIONS")),u(3),A("value",i.couponCode())("disabled",i.isBusy())("placeholder",x(9,22,"CART.INTRODUCE_COUPON")),u(2),A("disabled",!i.canApplyCoupon()),u(),B(" ",x(12,24,"CART.APPLY_COUPON")," "),u(2),C((n=i.couponError())?13:-1,n),u(),C(i.promotionsNotApplied().length>0?14:-1),u(3),T(x(18,26,"CART.TOTAL_PRICE_PRODUCTS")),u(3),T(o.total_price_without_discounts),u(),se(i.promotionsApplied()),u(4),B("",x(26,28,"CART.SHIPPING_COSTS"),":"),u(2),C((r=i.shippingCostLabel())?27:28,r),u(2),se(i.shippingAvailabilityMessages()),u(2),C(o.apply_surcharge_equivalence?31:-1),u(2),C(i.showMemberPointsAdded()?33:-1),u(3),T(x(37,30,"CART.TOTAL_TO_PAY")),u(3),T(i.totalToPayLabel()),u(),C(i.showMemberBalance()?40:-1)}}var ea=class e{cartService=g(re);commonService=g(fe);memberPointsHelp=Cr("memberPointsHelp");calculateShipping=yr();MIN_LENGTH_COUPON=4;couponCode=V("");selectedShipping=this.cartService.selectedShippingOption;shippingCostLabel=b(()=>this.selectedShipping()?.priceLabel??null);shippingAvailabilityMessages=this.cartService.shippingAvailabilityMessages.asReadonly();totalToPayLabel=b(()=>this.cartService.totalWithShippingLabel()??this.resume()?.total_price??"");resume=b(()=>{if(!this.cartService.cartResource.hasValue())return null;let t=this.cartService.cartResource.value();return t?t.resume:null});hasProducts=b(()=>{if(!this.cartService.cartResource.hasValue())return!1;let t=this.cartService.cartResource.value();if(!t||!t.grouped_date.length)return!1;let n=t.grouped_date[0].lines;return Array.isArray(n)?n.length>0:Object.keys(n??{}).length>0});memberView=b(()=>{let t=this.resume();return!t||!t.member_view?null:t.member_view});showMemberBalance=b(()=>{let t=this.memberView();return t?t.show_member&&t.member_points_balance>0:!1});showMemberPointsAdded=b(()=>{let t=this.memberView();return t?t.show_member&&t.member_points_added>0:!1});memberPointsImage=b(()=>{let t=this.commonService.context();if(!t)return"";let n=t.pathFiles;return n?`${n}/imagesEstructura/logos/memberpoint.svg`:""});constructor(){Pe(()=>{let t=this.memberPointsHelp()?.nativeElement;if(!t)return;let n=window.bootstrap?.Popover;if(n){if(typeof n.getOrCreateInstance=="function"){n.getOrCreateInstance(t);return}new n(t)}})}promotionsNotApplied=b(()=>{let t=this.resume();return t?t.promotions_not_applied??[]:[]});promotionsApplied=b(()=>{let t=this.resume();return t?t.promotions_applied??[]:[]});canApplyCoupon=b(()=>this.couponCode().trim().length>=this.MIN_LENGTH_COUPON&&!this.isBusy());isBusy=b(()=>{if(this.cartService.isMutating())return!0;let t=this.cartService.cartResource;return t.hasValue()&&t.isLoading()});couponError=V(null);onCouponInput(t){let n=t.target;
10this.couponCode.set(n.value),this.couponError.set(null)}setCouponErrorFrom(t){this.couponError.set(t instanceof ye?t.customerMessage:null)}async applyCoupon(){if(!this.canApplyCoupon())return;let t=this.commonService.context();if(!t)return;let n=this.couponCode().trim();this.couponError.set(null);try{await this.cartService.addCouponInCart({path_code:t.marketRoute,coupon_code:n}),this.couponCode.set("")}catch(r){this.setCouponErrorFrom(r),console.error(r)}}async applyPromotion(t){if(this.isBusy())return;let n=this.commonService.context();if(n){this.couponError.set(null);try{await this.cartService.applyPromotionInCart({path_code:n.marketRoute,promotion_id:t})}catch(r){this.setCouponErrorFrom(r),console.error(r)}}}async cancelPromotion(t){if(this.isBusy())return;let n=this.commonService.context();if(n){this.couponError.set(null);try{await this.cartService.cancelPromotionInCart({path_code:n.marketRoute,promotion_id:t})}catch(r){this.setCouponErrorFrom(r),console.error(r)}}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-resume"]],viewQuery:function(n,r){n&1&&Dr(r.memberPointsHelp,qw,5),n&2&&Er()},hostAttrs:[1,"cart-resume","cart-enter","d-block","pt-3"],hostVars:2,hostBindings:function(n,r){n&2&&X("is-busy",r.isBusy())},outputs:{calculateShipping:"calculateShipping"},decls:2,vars:2,consts:[["memberPointsHelp",""],[1,"fs-5","fw-bolder","mb-3"],[1,"mb-3"],["for","codigo_cupon",1,"fw-bold","mb-2","d-block"],[1,"input-group"],["type","text","id","codigo_cupon",1,"form-control",3,"input","value","disabled","placeholder"],["type","button",1,"btn","btn-dark",3,"click","disabled"],["role","alert","data-hill","cart-coupon-error",1,"cart-enter","alert","alert-danger","small","mt-2","mb-0",3,"innerHTML"],[1,"d-flex","justify-content-between","mb-2"],[1,"d-flex","justify-content-between","mb-0"],["type","button",1,"btn","btn-link","p-0","text-dark","text-decoration-underline"],[3,"class","--stagger-index","innerHTML"],[1,"d-flex","mb-2","mt-2"],[1,"my-3"],[1,"fw-bold"],[1,"fw-bolder"],[1,"d-block","mb-2"],[1,"list-unstyled","mb-0"],[1,"d-flex","justify-content-between","align-items-center","gap-2","mb-2"],[1,"far","fa-tags","me-2","text-danger"],["type","button",1,"btn","btn-sm","btn-outline-secondary",3,"click","disabled"],["type","button",1,"btn","btn-link","p-0","text-muted",3,"click","disabled"],[1,"fa-regular","fa-circle-xmark","me-1"],["type","button",1,"btn","btn-link","p-0","text-dark","text-decoration-underline",3,"click"],[3,"innerHTML"],[1,"flex-fill"],[1,"fas","fa-coins","me-1"],[1,"d-flex","justify-content-between","align-items-center","mb-2"],["tabindex","0","role","button","data-bs-toggle","popover","data-bs-trigger","hover focus","data-bs-placement","bottom",1,"text-decoration-none","text-body"],[1,"fa-solid","fa-circle-question","font-smaller","me-1"],[1,"d-flex","align-items-center","gap-1"],["width","13","height","13","alt","Member Points",3,"src"],[1,"d-flex","mb-2","mt-2","align-items-start"],[1,"ps-2","text-nowrap","text-end","d-flex","flex-column"],[1,"fw-bold","d-flex","align-items-center","gap-1","justify-content-end"],[1,"text-muted",3,"innerHTML"]],template:function(n,r){if(n&1&&(ae(0),S(1,lI,41,32)),n&2){let i=Q(r.resume());u(),C(r.hasProducts()&&i?1:-1)}},dependencies:[me,pn],styles:["[_nghost-%COMP%]{display:block}.is-busy[_nghost-%COMP%]{pointer-events:none;-webkit-user-select:none;user-select:none}"],changeDetection:0})};var uI=e=>[e];function dI(e,t){if(e&1&&(p(0,"li",6),E(1,"img",9),m()),e&2){let n=t.$implicit;u(),A("src",n.image,ue)("alt",n.name)}}function fI(e,t){if(e&1&&(p(0,"li"),E(1,"img",9),m()),e&2){let n=t.$implicit;u(),A("src",n.image,ue)("alt",n.name)}}function pI(e,t){if(e&1&&(p(0,"ul",8),oe(1,fI,2,2,"li",null,ze),m()),e&2){let n=t.$implicit;u(),se(n)}}function hI(e,t){if(e&1&&(p(0,"div",2)(1,"ul",5),oe(2,dI,2,2,"li",6,ze),m(),p(4,"div",7),oe(5,pI,3,0,"ul",8,ze),m()()),e&2){let n=y(2);u(2),se(n.paymentMethods()),u(3),se(n.paymentMethodRows())}}function mI(e,t){e&1&&E(0,"span",4)}function gI(e,t){if(e&1&&(E(0,"i",10)(1,"span",11),w(2,"translate"),w(3,"replacePlaceholder")),e&2){let n=y(2);u(),A("innerHTML",$t(3,3,x(2,1,"CART.PAY_NOW"),cn(6,uI,n.totalToPayLabel())),Ze)}}function yI(e,t){if(e&1){let n=Y();E(0,"div",0),p(1,"div",1),S(2,hI,7,0,"div",2),p(3,"button",3),O("click",function(){k(n);let i=y();return F(i.checkout())}),S(4,mI,1,0,"span",4)(5,gI,4,8),m()()}if(e&2){let n=y();u(2),C(n.paymentMethods().length>0?2:-1),u(),A("disabled",!n.canCheckout()),ie("aria-busy",n.isSubmitting()),u(),C(n.isSubmitting()?4:5)}}var ta=class e{cartService=g(re);commonService=g(fe);trackingService=g(Be);isSubmitting=V(!1);resume=b(()=>{if(!this.cartService.cartResource.hasValue())return null;let t=this.cartService.cartResource.value();return t?t.resume:null});hasProducts=b(()=>{if(!this.cartService.cartResource.hasValue())return!1;let t=this.cartService.cartResource.value();if(!t||!t.grouped_date.length)return!1;let n=t.grouped_date[0].lines;return Array.isArray(n)?n.length>0:Object.keys(n??{}).length>0});cashOnDeliveryMessage=b(()=>{let t=this.resume();return t?t.image_cash_on_delivery?.trim()??"":""});totalToPayLabel=b(()=>this.cartService.totalWithShippingLabel()??this.resume()?.total_price??"");paymentMethods=b(()=>{let t=this.resume();return!t||!t.images_of_payment_methods?[]:t.images_of_payment_methods});paymentMethodRows=b(()=>{let t=this.paymentMethods(),n=t.length;if(!n)return[];if(n===1)return[t];let r=Math.ceil(n/2);return[t.slice(0,r),t.slice(r)]});canCheckout=b(()=>{let t=this.resume();if(!t||t.block_purchase||this.isSubmitting()||this.cartService.isMutating())return!1;let n=this.cartService.cartResource;return n.hasValue()&&n.isLoading()?!1:this.hasProducts()});async checkout(){if(!this.canCheckout())return;let t=this.commonService.context();if(!t)return;let n=t.checkoutUrl;if(!n)return;let r=this.cartService.cartResource.value();if(!r)return;this.isSubmitting.set(!0);let i=r.data_layer??[];i.length&&this.trackingService.sendBeginCheckoutEvent(i);let o=r.checkout_tiktok;if(o)try{await this.cartService.sendConversionTikTokCheckout({data:{totalValue:o.totalValue,currency:o.currency,productIds:o.productIds,userId:String(o.userId??""),email:o.email??""},url:document.location.href},`${t.domain}/${t.marketRoute}`)}catch(s){console.error(s)}sessionStorage.removeItem("userInfo"),window.location.href=n}static \u0275fac=function(n){return new(n||e)};
10static \u0275cmp=ne({type:e,selectors:[["cart-checkout-footer"]],hostAttrs:[1,"cart-checkout-footer","cart-enter","d-block","flex-shrink-0"],decls:2,vars:1,consts:[["aria-hidden","true",1,"cart-hairline"],[1,"cart-checkout-footer__panel","d-flex","flex-column-reverse","flex-md-row","align-items-stretch","align-items-md-center","gap-3","p-3","bg-white"],[1,"cart-checkout-footer__payments","d-flex","flex-column","justify-content-center","flex-grow-1","min-w-0","w-100"],["type","button",1,"cart-checkout-footer__cta","btn","btn-dark","fw-bold","py-3","text-nowrap",3,"click","disabled"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm"],[1,"cart-checkout-footer__payments-list","cart-checkout-footer__payments-list--mobile","d-flex","d-md-none","flex-nowrap","align-items-center","list-unstyled","mb-0","w-100"],[1,"cart-checkout-footer__payment-item"],[1,"cart-checkout-footer__payments-desktop","d-none","d-md-flex","flex-column","justify-content-center","gap-2"],[1,"d-flex","flex-nowrap","align-items-center","justify-content-start","gap-2","list-unstyled","mb-0"],[1,"cart-checkout-footer__payment-img","d-block",3,"src","alt"],[1,"fa-regular","fa-shield-check","me-2"],[3,"innerHTML"]],template:function(n,r){if(n&1&&(ae(0),S(1,yI,6,4)),n&2){let i=r.resume();u(),C(r.hasProducts()&&i?1:-1)}},dependencies:[me,pn],styles:["[_nghost-%COMP%]{display:block;flex-shrink:0}.cart-checkout-footer__payments[_ngcontent-%COMP%]{flex:0 0 auto;width:100%}@media (min-width: 768px){.cart-checkout-footer__payments[_ngcontent-%COMP%]{flex:1 1 0;width:auto}}.cart-checkout-footer__payments-list--mobile[_ngcontent-%COMP%]{justify-content:space-between;gap:.25rem}.cart-checkout-footer__payment-item[_ngcontent-%COMP%]{flex:1 1 0;min-width:0;display:flex;justify-content:center}.cart-checkout-footer__payment-img[_ngcontent-%COMP%]{height:24px;max-height:24px;width:auto;max-width:100%;object-fit:contain}.cart-checkout-footer__cta[_ngcontent-%COMP%]{flex:1 1 auto;width:100%;min-width:0;max-width:100%}@media (min-width: 768px){.cart-checkout-footer__cta[_ngcontent-%COMP%]{flex:0 1 60%;width:60%;min-width:min(330px,100%)}}"],changeDetection:0})};function vI(e,t){if(e&1&&E(0,"div",2),e&2){let n=t.$implicit;Is("alert alert-",n.type," mb-2"),A("innerHTML",n.message,Ze)}}function _I(e,t){if(e&1&&(p(0,"div",0),oe(1,vI,1,4,"div",1,ze),m()),e&2){let n=y();u(),se(n.messages())}}var na=class e{cartService=g(re);messages=b(()=>this.cartService.alertMessages());static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-alert-box"]],hostAttrs:[1,"cart-alert-box","cart-enter","d-block"],decls:1,vars:1,consts:[[1,"mb-3"],[3,"class","innerHTML"],[3,"innerHTML"]],template:function(n,r){n&1&&S(0,_I,3,0,"div",0),n&2&&C(r.messages().length>0?0:-1)},styles:["[_nghost-%COMP%]{display:block}.alert[_ngcontent-%COMP%]:last-child{margin-bottom:0!important}"],changeDetection:0})};var ig=(e,t)=>t.id;function CI(e,t){e&1&&(p(0,"div",3),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.SHIPPING_COUNTRIES_ERROR")))}function bI(e,t){if(e&1){let n=Y();p(0,"li",23),O("mouseenter",function(){let i=k(n).$index,o=y();return F(o.highlightedIndex.set(i))})("mousedown",function(i){let o=k(n).$implicit;return y().selectCountry(o),F(i.preventDefault())}),_(1),m()}if(e&2){let n=t.$implicit,r=t.$index,i=y();X("active",i.highlightedIndex()===r),ie("aria-selected",i.highlightedIndex()===r),u(),B(" ",n.name," ")}}function DI(e,t){e&1&&(p(0,"li",13),_(1),w(2,"translate"),m()),e&2&&(u(),B(" ",x(2,1,"CART.SHIPPING_COUNTRY_NO_RESULTS")," "))}function EI(e,t){e&1&&E(0,"span",18)}function wI(e,t){e&1&&(p(0,"div",20),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.SHIPPING_CONSULT_ERROR")))}function II(e,t){e&1&&(p(0,"div",20),_(1),m()),e&2&&(u(),T(t))}function SI(e,t){e&1&&(p(0,"div",21),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.SHIPPING_TARIFF_WARNING")))}function xI(e,t){if(e&1&&(E(0,"br"),p(1,"span",32),_(2),m()),e&2){let n=y().$implicit;u(2),T(n.description)}}function TI(e,t){e&1&&(p(0,"div",31),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.SHIPPING_PREPAID_CUSTOMS")))}function MI(e,t){if(e&1){let n=Y();p(0,"div",25)(1,"div",26)(2,"div",27)(3,"input",28),O("change",function(i){k(n);let o=y(2);return F(o.onShippingOptionChange(i))}),m(),p(4,"label",29),_(5),m(),S(6,xI,3,1),m()(),p(7,"div",30),_(8),m()(),S(9,TI,3,3,"div",31)}if(e&2){let n=t.$implicit,r=y(2);u(3),A("id","cart_shipping_option_"+n.id)("value",n.id)("checked",n.id===r.shippingSelectedId()),u(
10),A("for","cart_shipping_option_"+n.id),u(),B(" ",n.name," "),u(),C(n.description?6:-1),u(),X("text-danger",n.price===0)("fw-bold",n.price===0),u(),B(" ",n.priceLabel," "),u(),C(n.prepaidCustoms?9:-1)}}function AI(e,t){if(e&1&&(p(0,"div",22)(1,"h3",24),_(2),w(3,"translate"),m(),oe(4,MI,10,12,null,null,ig),m()),e&2){let n=y();u(2),T(x(3,1,"CART.SHIPPING_OPTIONS")),u(2),se(n.shippingOptions())}}var ra=class e{cartService=g(re);backToCart=yr();countriesResource=this.cartService.countriesResource;countries=b(()=>{let t=this.countriesResource.value();return t?.length?t.map(n=>({id:String(n.key),name:n.name,zipCodeFormat:n.zipCodeFormat??""})):[]});isLoadingCountries=b(()=>this.countriesResource.isLoading());countriesError=b(()=>this.countriesResource.error()!=null);countryId=this.cartService.shippingCountryId;postalCode=this.cartService.shippingPostalCode;shippingOptions=this.cartService.shippingOptions.asReadonly();shippingSelectedId=this.cartService.shippingSelectedId.asReadonly();shippingLoading=this.cartService.shippingLoading.asReadonly();shippingError=this.cartService.shippingError.asReadonly();shippingEmptyMessage=this.cartService.shippingEmptyMessage.asReadonly();shippingTariffWarning=this.cartService.shippingTariffWarning.asReadonly();countrySearch=V("");countryDropdownOpen=V(!1);highlightedIndex=V(-1);filteredCountries=b(()=>{let t=this.countrySearch().trim().toLowerCase(),n=this.countries();if(!t)return n;let r=n.find(i=>i.id===this.countryId());return r&&r.name.toLowerCase()===t?n:n.filter(i=>i.name.toLowerCase().includes(t))});canConsult=b(()=>this.hasCountrySelected()&&!this.isLoadingCountries()&&!this.shippingLoading());canReset=b(()=>this.hasCountrySelected()||!!this.postalCode().trim());constructor(){Pe(()=>{let t=this.countryId(),n=this.countries();if(!t||this.countryDropdownOpen())return;let r=n.find(i=>i.id===t);r&&this.countrySearch()!==r.name&&this.countrySearch.set(r.name)})}onDocumentClick(t){t.target?.closest(".cart-shipping__country")||this.countryDropdownOpen.set(!1)}onCountrySearch(t){let r=t.target.value;this.countrySearch.set(r),this.countryDropdownOpen.set(!0),this.highlightedIndex.set(0);let i=this.countries().find(o=>o.id===this.countryId());i&&i.name!==r&&(this.countryId.set(""),this.cartService.clearShippingQuote())}openCountryDropdown(){this.isLoadingCountries()||!this.countries().length||(this.countryDropdownOpen.set(!0),this.highlightedIndex.set(0))}toggleCountryDropdown(){if(this.countryDropdownOpen()){this.countryDropdownOpen.set(!1);return}this.openCountryDropdown()}onCountryKeydown(t){let n=this.filteredCountries();if(n.length){if(t.key==="ArrowDown"){t.preventDefault(),this.openCountryDropdown(),this.highlightedIndex.update(r=>Math.min(r+1,n.length-1));return}if(t.key==="ArrowUp"){t.preventDefault(),this.openCountryDropdown(),this.highlightedIndex.update(r=>Math.max(r-1,0));return}if(t.key==="Enter"){let r=this.highlightedIndex();this.countryDropdownOpen()&&r>=0&&n[r]&&(t.preventDefault(),this.selectCountry(n[r]));return}t.key==="Escape"&&this.countryDropdownOpen.set(!1)}}selectCountry(t){this.countryId.set(t.id),this.countrySearch.set(t.name),this.countryDropdownOpen.set(!1),this.highlightedIndex.set(-1),this.cartService.clearShippingQuote()}onPostalCodeInput(t){let n=t.target;this.postalCode.set(n.value),this.cartService.clearShippingQuote()}onShippingOptionChange(t){let n=t.target;this.cartService.selectShippingOption(n.value),this.backToCart.emit()}resetForm(){this.canReset()&&(this.countryId.set(""),this.postalCode.set(""),this.countrySearch.set(""),this.countryDropdownOpen.set(!1),this.highlightedIndex.set(-1),this.cartService.clearShippingQuote())}async consultShipping(){if(this.canConsult())try{await this.cartService.consultShippingConditions()}catch(t){console.error(t)}}hasCountrySelected(){let t=this.countryId();return!!t&&t!=="-1"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-shipping"]],hostAttrs:[1,"cart-shipping","cart-enter","d-block","w-100"],hostBindings:function(n,r){n&1&&O("click",function(o){return r.onDocumentClick(o)},!1,Kp)},outputs:{backToCart:"backToCart"},decls:43,vars:43,consts:[["type","button",1,"btn","btn-link","text-dark","text-decoration-none","p-0","mb-3",3,"click"],["aria-hidden","true",1,"fa-regular","fa-chevron-left","me-1"],[1,"small","text-dark","mb-3"],[1,"alert","alert-warning"],[1,"row","g-3","mb-3"],[1,"col-24","col-md-12"],["for","cart_shipping_country",1,"form-label","fw-bold"],[1,"cart-shipping__country","position-relative","w-100"],["id","cart_shipping_country","type","text","role","combobox","autocomplete","off","aria-autocomplete","list","aria-controls","cart_shipping_country_list",1,"form-control","pe-5",3,"input","focus","keydown","disabled","placeholder","value"],["type","button","tabindex","-1",1,"cart-shipping__country-toggle","btn","btn-link","text-dark","position-absolute","top-0","end-0","h-100","px-3","border-0",3,"click","disabled"],["aria-hidden","true",1,"fa-solid","fa-chevron-down"],["id","cart_shipping_country_list","role","listbox",1,"cart-shipping__country-list","list-group","list-group-flush","position-absolute","start-0","end-0","top-100","mt-1","rounded","border","shadow","bg-white","w-100"],["role","option",1,"list-group-item","list-group-item-action","py-2","px-3","border-0","border-bottom",3,"active"],[1,"list-group-item","text-muted","py-2","px-3","border-0"],["for","cart_shipping_postal",1,"form-label","fw-bold"],["
10id","cart_shipping_postal","type","text","maxlength","40",1,"form-control","w-100",3,"input","value","placeholder"],[1,"row","g-3"],["type","button",1,"btn","btn-secondary","w-100",3,"click","disabled"],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","me-2"],["type","button",1,"btn","btn-outline-dark","w-100",3,"click","disabled"],[1,"alert","alert-warning","mt-3","mb-0"],[1,"alert","alert-info","mt-3","mb-0"],[1,"mt-4","w-100"],["role","option",1,"list-group-item","list-group-item-action","py-2","px-3","border-0","border-bottom",3,"mouseenter","mousedown"],[1,"fs-6","fw-bold","mb-3"],[1,"mb-3","row","align-items-start","w-100","g-2"],[1,"col-16","col-md-18"],[1,"form-check"],["type","radio","name","cart_shipping_option",1,"form-check-input",3,"change","id","value","checked"],[1,"form-check-label",3,"for"],[1,"col-8","col-md-6","text-end","text-nowrap"],[1,"alert","alert-info"],[1,"text-muted"]],template:function(n,r){if(n&1&&(p(0,"button",0),O("click",function(){return r.backToCart.emit()}),E(1,"i",1),_(2),w(3,"translate"),m(),p(4,"p",2),_(5),w(6,"translate"),m(),S(7,CI,3,3,"div",3),p(8,"div",4)(9,"div",5)(10,"label",6),_(11),w(12,"translate"),m(),p(13,"div",7)(14,"input",8),w(15,"translate"),O("input",function(o){return r.onCountrySearch(o)})("focus",function(){return r.openCountryDropdown()})("keydown",function(o){return r.onCountryKeydown(o)}),m(),p(16,"button",9),w(17,"translate"),O("click",function(o){return r.toggleCountryDropdown(),o.preventDefault()}),E(18,"i",10),m(),p(19,"ul",11),oe(20,bI,2,4,"li",12,ig,!1,DI,3,3,"li",13),m()()(),p(23,"div",5)(24,"label",14),_(25),w(26,"translate"),m(),p(27,"input",15),w(28,"translate"),O("input",function(o){return r.onPostalCodeInput(o)}),m()()(),p(29,"div",16)(30,"div",5)(31,"button",17),O("click",function(){return r.consultShipping()}),S(32,EI,1,0,"span",18),_(33),w(34,"translate"),m()(),p(35,"div",5)(36,"button",19),O("click",function(){return r.resetForm()}),_(37),w(38,"translate"),m()()(),S(39,wI,3,3,"div",20)(40,II,2,1,"div",20)(41,SI,3,3,"div",21)(42,AI,6,3,"div",22)),n&2){let i;u(2),B(" ",x(3,25,"CART.BACK"),`
11`),u(3),T(x(6,27,"CART.SHIPPING_POSTAL_CODE_HINT")),u(2),C(r.countriesError()?7:-1),u(4),T(x(12,29,"CART.SHIPPING_COUNTRY")),u(3),A("disabled",r.isLoadingCountries()||r.countries().length===0)("placeholder",x(15,31,r.isLoadingCountries()?"CART.SHIPPING_COUNTRIES_LOADING":"CART.SHIPPING_COUNTRY_PLACEHOLDER"))("value",r.countrySearch()),ie("aria-expanded",r.countryDropdownOpen()),u(2),A("disabled",r.isLoadingCountries()||r.countries().length===0),ie("aria-label",x(17,33,"CART.SHIPPING_COUNTRY")),u(3),X("d-none",!r.countryDropdownOpen()),u(),se(r.filteredCountries()),u(5),T(x(26,35,"CART.SHIPPING_POSTAL_CODE")),u(2),A("value",r.postalCode())("placeholder",x(28,37,"CART.SHIPPING_POSTAL_CODE")),u(4),A("disabled",!r.canConsult()),u(),C(r.shippingLoading()?32:-1),u(),B(" ",x(34,39,"CART.SHIPPING_CONSULT")," "),u(3),A("disabled",!r.canReset()||r.shippingLoading()),u(),B(" ",x(38,41,"CART.SHIPPING_RESET")," "),u(2),C(r.shippingError()?39:-1),u(),C((i=r.shippingEmptyMessage())?40:-1,i),u(),C(r.shippingTariffWarning()?41:-1),u(),C(r.shippingOptions().length>0?42:-1)}},dependencies:[me],styles:["[_nghost-%COMP%]{display:block;width:100%}.cart-shipping__country-toggle[_ngcontent-%COMP%]{z-index:2}.cart-shipping__country-list[_ngcontent-%COMP%]{z-index:5;max-height:15rem;overflow-y:auto}.cart-shipping__country-list[_ngcontent-%COMP%]   .list-group-item-action[_ngcontent-%COMP%]{color:#111}.cart-shipping__country-list[_ngcontent-%COMP%]   .list-group-item-action[_ngcontent-%COMP%]:hover, .cart-shipping__country-list[_ngcontent-%COMP%]   .list-group-item-action[_ngcontent-%COMP%]:focus, .cart-shipping__country-list[_ngcontent-%COMP%]   .list-group-item-action.active[_ngcontent-%COMP%]{background-color:#f8f9fa;color:#111;border-color:transparent}"],changeDetection:0})};var fg=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(de(hi),de(Mt))};static \u0275dir=_t({type:e})}return e})(),NI=(()=>{class e extends fg{static \u0275fac=(()=>{let n;return function(i){return(n||(n=gr(e)))(i||e)}})();static \u0275dir=_t({type:e,features:[an]})}return e})(),pa=new L("");var RI={provide:pa,useExisting:tn(()=>pg),multi:!0};function PI(){let e=Tr()?Tr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var OI=new L(""),pg=(()=>{class e extends fg{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!PI())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(de(hi),de(Mt),de(OI,8))};static \u0275dir=_t({type:e,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(r,i){r&1&&O("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})}
11,standalone:!1,features:[Ir([RI]),an]})}return e})();function hn(e){return e==null||(typeof e=="string"||Array.isArray(e))&&e.length===0}function hg(e){return e!=null&&typeof e.length=="number"}var mg=new L(""),gg=new L(""),kI=/^(?=.{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])?)*$/,Vi=class{static min(t){return FI(t)}static max(t){return LI(t)}static required(t){return VI(t)}static requiredTrue(t){return jI(t)}static email(t){return BI(t)}static minLength(t){return UI(t)}static maxLength(t){return HI(t)}static pattern(t){return $I(t)}static nullValidator(t){return yg(t)}static compose(t){return Eg(t)}static composeAsync(t){return Ig(t)}};function FI(e){return t=>{if(hn(t.value)||hn(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function LI(e){return t=>{if(hn(t.value)||hn(e))return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function VI(e){return hn(e.value)?{required:!0}:null}function jI(e){return e.value===!0?null:{required:!0}}function BI(e){return hn(e.value)||kI.test(e.value)?null:{email:!0}}function UI(e){return t=>hn(t.value)||!hg(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}function HI(e){return t=>hg(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}function $I(e){if(!e)return yg;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(hn(r.value))return null;let i=r.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function yg(e){return null}function vg(e){return e!=null}function _g(e){return mi(e)?at(e):e}function Cg(e){let t={};return e.forEach(n=>{t=n!=null?$($({},t),n):t}),Object.keys(t).length===0?null:t}function bg(e,t){return t.map(n=>n(e))}function zI(e){return!e.validate}function Dg(e){return e.map(t=>zI(t)?t:n=>t.validate(n))}function Eg(e){if(!e)return null;let t=e.filter(vg);return t.length==0?null:function(n){return Cg(bg(n,t))}}function wg(e){return e!=null?Eg(Dg(e)):null}function Ig(e){if(!e)return null;let t=e.filter(vg);return t.length==0?null:function(n){let r=bg(n,t).map(_g);return Hr(r).pipe(Me(Cg))}}function Sg(e){return e!=null?Ig(Dg(e)):null}function og(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function xg(e){return e._rawValidators}function Tg(e){return e._rawAsyncValidators}function Ru(e){return e?Array.isArray(e)?e:[e]:[]}function oa(e,t){return Array.isArray(e)?e.includes(t):e===t}function sg(e,t){let n=Ru(t);return Ru(e).forEach(i=>{oa(n,i)||n.push(i)}),n}function ag(e,t){return Ru(t).filter(n=>!oa(e,n))}var sa=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=wg(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Sg(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Pr=class extends sa{name;get formDirective(){return null}get path(){return null}},ji=class extends sa{_parent=null;name=null;valueAccessor=null},aa=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}
vendor: 9,274 bytes, line 11
11get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},GI={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Bk=J($({},GI),{"[class.ng-submitted]":"isSubmitted"}),Mg=(()=>{class e extends aa{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(de(ji,2))};static \u0275dir=_t({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&X("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[an]})}return e})(),Ag=(()=>{class e extends aa{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(de(Pr,10))};static \u0275dir=_t({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&X("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[an]})}return e})();var Oi="VALID",ia="INVALID",Nr="PENDING",ki="DISABLED",mn=class{},ca=class extends mn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},Fi=class extends mn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},Li=class extends mn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Rr=class extends mn{status;source;constructor(t,n){super(),this.status=t,this.source=n}},Pu=class extends mn{source;constructor(t){super(),this.source=t}},Ou=class extends mn{source;constructor(t){super(),this.source=t}};function Ng(e){return(ha(e)?e.validators:e)||null}function WI(e){return Array.isArray(e)?wg(e):e||null}function Rg(e,t){return(ha(t)?t.asyncValidators:e)||null}function qI(e){return Array.isArray(e)?Sg(e):e||null}function ha(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function ZI(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new R(1e3,"");if(!r[n])throw new R(1001,"")}function YI(e,t,n){e._forEachChild((r,i)=>{if(n[i]===void 0)throw new R(1002,"")})}var la=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ce(this.statusReactive)}set status(t){Ce(()=>this.statusReactive.set(t))}_status=b(()=>this.statusReactive());statusReactive=V(void 0);get valid(){return this.status===Oi}get invalid(){return this.status===ia}get pending(){return this.status==Nr}get disabled(){return this.status===ki}get enabled(){return this.status!==ki}errors;get pristine(){return Ce(this.pristineReactive)}set pristine(t){Ce(()=>this.pristineReactive.set(t))}_pristine=b(()=>this.pristineReactive());pristineReactive=V(!0);get dirty(){return!this.pristine}get touched(){return Ce(this.touchedReactive)}set touched(t){Ce(()=>this.touchedReactive.set(t))}_touched=b(()=>this.touchedReactive());touchedReactive=V(!1);get untouched(){return!this.touched}_events=new We;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(sg(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(sg(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(ag(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(ag(t,this._rawAsyncValidators))}hasValidator(t){return oa(this._rawValidators,t)}hasAsyncValidator(t){return oa(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(J($({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Li(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new Li(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(J($({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new Fi(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new Fi(!0,r))}markAsPending(t={}){this.status=Nr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Rr(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(J($({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ki,this.errors=null,this._forEachChild(i=>{i.disable(J($({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ca(this.value,r)),this._events.next(new Rr(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(J($({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Oi,this._forEachChild(r=>{r.enable(J($({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(J($({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Oi||this.status===Nr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new ca(this.value,n)),this._events.next(new Rr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(J($({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ki:Oi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Nr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=_g(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Rr(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new Ae,this.statusChanges=new Ae}_calculateStatus(){return this._allControlsDisabled()?ki:this.errors?i
vendor: 8,962 bytes, line 11
11a:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nr)?Nr:this._anyControlsHaveStatus(ia)?ia:Oi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),i&&this._events.next(new Fi(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new Li(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ha(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=WI(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=qI(this._rawAsyncValidators)}},ua=class extends la{constructor(t,n,r){super(Ng(n),Rg(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){YI(this,!0,t),Object.keys(t).forEach(r=>{ZI(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let i=this.controls[r];i&&i.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,i)=>{r.reset(t?t[i]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Pg=new L("",{providedIn:"root",factory:()=>ku}),ku="always";function QI(e,t){return[...t.path,e]}function cg(e,t,n=ku){Fu(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),JI(e,t),eS(e,t),XI(e,t),KI(e,t)}function lg(e,t,n=!0){let r=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(r),t.valueAccessor.registerOnTouched(r)),fa(e,t),e&&(t._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function da(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function KI(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Fu(e,t){let n=xg(e);t.validator!==null?e.setValidators(og(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=Tg(e);t.asyncValidator!==null?e.setAsyncValidators(og(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let i=()=>e.updateValueAndValidity();da(t._rawValidators,i),da(t._rawAsyncValidators,i)}function fa(e,t){let n=!1;if(e!==null){if(t.validator!==null){let i=xg(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.validator);o.length!==i.length&&(n=!0,e.setValidators(o))}}if(t.asyncValidator!==null){let i=Tg(e);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==t.asyncValidator);o.length!==i.length&&(n=!0,e.setAsyncValidators(o))}}}let r=()=>{};return da(t._rawValidators,r),da(t._rawAsyncValidators,r),n}function JI(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Og(e,t)})}function XI(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Og(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Og(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function eS(e,t){let n=(r,i)=>{t.valueAccessor.writeValue(r),i&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function tS(e,t){e==null,Fu(e,t)}function nS(e,t){return fa(e,t)}function rS(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function iS(e){return Object.getPrototypeOf(e.constructor)===NI}function oS(e,t){e._syncPendingControls(),t.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function sS(e,t){if(!t)return null;Array.isArray(t);let n,r,i;return t.forEach(o=>{o.constructor===pg?n=o:iS(o)?r=o:i=o}),i||r||n||null}function aS(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ug(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function dg(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var Lu=class extends la{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Ng(n),Rg(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ha(n)&&(n.nonNullable||n.initialValueIsDefault)&&(dg(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ug(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ug(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){dg(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var cS=e=>e instanceof Lu;var kg=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=_t({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return e})();var Fg=new L("");var lS={provide:Pr,useExisting:tn(()=>Vu)},Vu=(()=>{class e extends Pr{callSetDisabledState;get submitted(){return Ce(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=b(()=>this._submittedReactive());_submittedReactive=V(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Ae;constructor(n,r,i){super(),this.callSetDisabledState=i,this._setValidators(n),this._setAsyncValidators(r)}
11ngOnChanges(n){n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(fa(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return cg(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){lg(n.control||null,n,!1),aS(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),oS(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Pu(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new Ou(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,i=this.form.get(n.path);r!==i&&(lg(r||null,n),cS(i)&&(cg(i,n,this.callSetDisabledState),n.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);tS(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&nS(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Fu(this.form,this),this._oldForm&&fa(this._oldForm,this)}static \u0275fac=function(r){return new(r||e)(de(mg,10),de(gg,10),de(Pg,8))};static \u0275dir=_t({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&O("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ir([lS]),an,ls]})}return e})();var uS={provide:ji,useExisting:tn(()=>ju)},ju=(()=>{class e extends ji{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new Ae;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,i,o,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=sS(this,o)}ngOnChanges(n){this._added||this._setUpControl(),rS(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return QI(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||e)(de(Pr,13),de(mg,10),de(gg,10),de(pa,10),de(Fg,8))};static \u0275dir=_t({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ir([uS]),an,ls]})}return e})();var dS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=sn({type:e});static \u0275inj=nn({})}return e})();var Lg=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Fg,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Pg,useValue:n.callSetDisabledState??ku}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=sn({type:e});static \u0275inj=nn({imports:[dS]})}return e})();var pS=(e,t)=>t.id;function hS(e,t){e&1&&E(0,"i",5)}function mS(e,t){e&1&&E(0,"i",6)}function gS(e,t){e&1&&(p(0,"span",12),_(1),w(2,"translate"),m()),e&2&&(u(),B(" - ",x(2,1,"CART.CHILD"),""))}
11function yS(e,t){if(e&1&&(p(0,"span"),_(1),m()),e&2){let n=y(2).$implicit;u(),T(n.regionEquivalenceSize)}}function vS(e,t){if(e&1&&(p(0,"span",13),_(1),S(2,yS,2,1,"span"),m()),e&2){let n=y().$implicit;u(),B(" ",n.equivalenceSizeText," "),u(),C(n.regionEquivalenceSize?2:-1)}}function _S(e,t){e&1&&(p(0,"span",15),E(1,"span",19),m())}function CS(e,t){e&1&&(p(0,"span",16),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.LAST_UNIT_HURRY")))}function bS(e,t){e&1&&(p(0,"span",17),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.FEW_UNITS_LEFT")))}function DS(e,t){e&1&&(p(0,"span",18),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.IMMEDIATE_AVAILABILITY")))}function ES(e,t){if(e&1&&(p(0,"span",17),_(1),m()),e&2){y();let n=M(0);u(),T(n.formattedDate)}}function wS(e,t){e&1&&(p(0,"span",16),_(1),w(2,"translate"),m()),e&2&&(u(),T(x(2,1,"CART.NO_AVAILABILITY")))}function IS(e,t){if(e&1){let n=Y();ae(0),p(1,"button",9),O("click",function(){let i=k(n).$implicit,o=y(2);return F(o.selectSize(i))}),p(2,"span",10)(3,"span",11),_(4),m(),S(5,gS,3,3,"span",12)(6,vS,3,2,"span",13),m(),p(7,"span",14),S(8,_S,2,0,"span",15)(9,CS,3,3,"span",16)(10,bS,3,3,"span",17)(11,DS,3,3,"span",18)(12,ES,2,1,"span",17)(13,wS,3,3,"span",16),m()()}if(e&2){let n,r=t.$implicit,i=y(2),o=M(1),s=M(2),a=Q(i.availabilityFor(r.id));u(),X("border-dark",i.selectedSizeId()===r.id)("border-transparent",i.selectedSizeId()!==r.id),A("disabled",s),u(3),T(r.sizeLabel),u(),C(r.child?5:-1),u(),C(o&&r.equivalenceSizeText?6:-1),u(2),C((n=a.status)==="loading"?8:n==="last"?9:n==="few"?10:n==="available"?11:n==="upcome"?12:n==="notAvailable"?13:-1)}}function SS(e,t){if(e&1){let n=Y();p(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),_(4),w(5,"translate"),m(),p(6,"button",4),w(7,"translate"),O("click",function(){k(n);let i=y();return F(i.close())}),S(8,hS,1,0,"i",5)(9,mS,1,0,"i",6),m()()(),p(10,"div",7),oe(11,IS,14,10,"button",8,pS),m()()}if(e&2){let n=y(),r=M(0),i=M(2);u(4),T(x(5,4,"CART.CHOOSE_YOUR_SIZE")),u(2),A("disabled",i),ie("aria-label",x(7,6,"RECOMMENDATIONS.CLOSE_SIZE_SELECTOR")),u(2),C(n.busy()?8:9),u(3),se(r)}}var Or=class e{cartService=g(re);product=xe.required();busy=xe(!1);sizeChosen=yr();isOpen=V(!1);selectedSizeId=V(null);availabilityBySizeId=V({});availabilityLoaded=V(!1);isLoadingAvailability=V(!1);hasChosen=V(!1);availableSizes=b(()=>this.product().sizesList.filter(t=>parseInt(t.stockBySize,10)>0));showEquivalence=b(()=>{let t=this.product().showEquivalence;return Array.isArray(t)?t.length>0:!!t});isLocked=b(()=>this.busy()||this.hasChosen());onChange=()=>{};onTouched=()=>{};constructor(){Pe(()=>{this.product(),Ce(()=>this.resetAvailabilityCache())})}writeValue(t){this.selectedSizeId.set(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){}open(){this.openPanel()}close(){this.isLocked()||(this.forceClose(),this.hasChosen.set(!1))}forceClose(){this.isOpen.set(!1),this.onTouched()}async openPanel(){this.isLocked()||(this.hasChosen.set(!1),this.isOpen.set(!0),this.onTouched(),await this.ensureAvailabilityLoaded())}selectSize(t){this.isLocked()||(this.hasChosen.set(!0),this.selectedSizeId.set(t.id),this.onChange(t.id),this.onTouched(),this.forceClose(),this.sizeChosen.emit(t.id))}unlock(){this.hasChosen.set(!1),this.selectedSizeId.set(null)}resetAvailabilityCache(){this.availabilityLoaded.set(!1),this.isLoadingAvailability.set(!1),this.availabilityBySizeId.set({}),this.hasChosen.set(!1),this.selectedSizeId.set(null),this.forceClose()}availabilityFor(t){let n=this.availabilityBySizeId()[t];return n||{status:"loading",formattedDate:null}}async ensureAvailabilityLoaded(){if(this.availabilityLoaded()||this.isLoadingAvailability())return;let t=this.product(),n=this.cartService.suggestedResource.value();if(!n)return;let r={};for(let s of Object.keys(t.productsInCard))r[s]=t.productsInCard[s].quantity;let i={};for(let s of this.availableSizes())i[s.id]={status:"loading",formattedDate:null};this.availabilityBySizeId.set(i),this.isLoadingAvailability.set(!0);let o={brandId:t.brandId,collective:t.collectiveCode??"false",customization:t.personalizationId??"false",locale:n.locale,market:n.market,minSendDate:t.minS
11hippingDate??"",preorderDate:t.preorderDate??"",productId:`${t.id}`,productInCard:r,situationCode:t.situationCode,sizeList:t.sizesAndStock,stores:t.stockBySizeAndWarehouse??[]};try{let s=await this.cartService.getAvailabilitySizes(o);this.availabilityBySizeId.set(this.mapAvailability(s)),this.availabilityLoaded.set(!0)}catch(s){console.error(s);let a={};for(let c of this.availableSizes())a[c.id]={status:"notAvailable",formattedDate:null};this.availabilityBySizeId.set(a)}finally{this.isLoadingAvailability.set(!1)}}mapAvailability(t){let n={},r=Date.now();for(let i of t){if(new Date(i.stringDate).getTime()/1e3>r/1e3){n[i.id]={status:"upcome",formattedDate:i.formattedDate};continue}if(i.stock===1){n[i.id]={status:"last",formattedDate:i.formattedDate};continue}if(i.stock>1&&i.stock<4){n[i.id]={status:"few",formattedDate:i.formattedDate};continue}n[i.id]={status:"available",formattedDate:i.formattedDate}}return n}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["recommendation-sizes"]],hostVars:4,hostBindings:function(n,r){n&2&&X("is-open",r.isOpen())("is-busy",r.busy())},inputs:{product:[1,"product"],busy:[1,"busy"]},outputs:{sizeChosen:"sizeChosen"},features:[Ir([{provide:pa,useExisting:tn(()=>e),multi:!0}])],decls:4,vars:4,consts:[[1,"d-flex","flex-column","flex-grow-1","h-100","overflow-hidden","p-3","bg-light","rounded-4","min-h-0"],[1,"flex-shrink-0","mb-3"],[1,"d-flex","align-items-center","justify-content-between","gap-2"],[1,"fs-6","fw-bold","mb-0"],["type","button",1,"btn","btn-link","text-dark","p-0",3,"click","disabled"],[1,"spinner-border","spinner-border-sm"],[1,"fa-regular","fa-xmark","fa-lg"],[1,"d-flex","flex-column","gap-1","flex-grow-1","overflow-auto","min-h-0"],["type","button",1,"recommendation-sizes__option","btn","btn-light","border","w-100","d-flex","flex-column","align-items-stretch","text-start","py-3","px-3","rounded-3",3,"border-dark","border-transparent","disabled"],["type","button",1,"recommendation-sizes__option","btn","btn-light","border","w-100","d-flex","flex-column","align-items-stretch","text-start","py-3","px-3","rounded-3",3,"click","disabled"],[1,"recommendation-sizes__label"],[1,"fw-bold"],[1,"font-smaller","text-muted"],[1,"d-block","font-smaller","text-muted"],[1,"recommendation-sizes__availability","font-smaller"],[1,"placeholder-glow"],[1,"text-danger"],[1,"text-muted"],[1,"text-success"],[1,"placeholder","d-inline-block",2,"width","4.5rem"]],template:function(n,r){n&1&&(ae(0)(1)(2),S(3,SS,13,8,"div",0)),n&2&&(Q(r.availableSizes()),u(),Q(r.showEquivalence()),u(),Q(r.isLocked()),u(),C(r.isOpen()?3:-1))},dependencies:[me],styles:["[_nghost-%COMP%]{display:none}.is-open[_nghost-%COMP%]{display:flex;flex-direction:column;position:absolute;inset:0;z-index:2;min-height:0;overflow:hidden}.is-busy[_nghost-%COMP%]   .overflow-auto[_ngcontent-%COMP%]{pointer-events:none}.min-h-0[_ngcontent-%COMP%]{min-height:0}.min-w-0[_ngcontent-%COMP%]{min-width:0}.border-transparent[_ngcontent-%COMP%]{border-color:transparent!important}.recommendation-sizes__option[_ngcontent-%COMP%]{white-space:normal;gap:.15rem}.recommendation-sizes__label[_ngcontent-%COMP%], .recommendation-sizes__availability[_ngcontent-%COMP%]{min-width:0;overflow-wrap:break-word}"],changeDetection:0})};function xS(e,t){if(e&1&&E(0,"img",4),e&2){y(2);let n=M(0),r=M(1);A("src",r,ue)("alt",n.name)}}function TS(e,t){if(e&1&&(p(0,"div",5),E(1,"img",16),m()),e&2){y(2);let n=M(0),r=M(2);u(),A("src",r,ue)("alt",n.brandName)}}function MS(e,t){e&1&&E(0,"div",6)}function AS(e,t){if(e&1){let n=Y();p(0,"recommendation-sizes",17),O("sizeChosen",function(i){k(n);let o=y(2);return F(o.onSizeChosen(i))}),m()}if(e&2){y(2);let n=M(0),r=M(4);A("product",n)("busy",r)}}function NS(e,t){if(e&1&&(p(0,"span",12),_(1),m(),p(2,"span",18),_(3),m()),e&2){y(2);let n=M(0);u(),T(n.price),u(2),T(n.originalPrice)}}function RS(e,t){if(e&1&&(p(0,"span",12),_(1),m()),e&2){y(2);let n=M(0);u(),T(n.price)}}function PS(e,t){e&1&&E(0,"i",14)}function OS(e,t){e&1&&E(0,"i",15)}function kS(e,t){if(e&1){let n=Y();p(0,"div",0)(1,"div",1)(2,"div",2)(3,"a",3),S(4,xS,1,2,"img",4),m(),S(5,TS,2,2,"div",5)(6,MS,1,0,"div",6),m(),p(7,"a",7),_(8),m()(),p(9,"form",8),O("ngSubmit",function(){k(n);let i=y();return F(i.onSubmit())}),S(10,AS,1,2,"recommendation-sizes",9),p(11,"div",10)(12,"div",11),S(13,NS,4,2)(14,RS,2,1,"span",12),m(),p(15,"button",13),w(16,"translate"),S(17,PS,1,0,"i",14)(18,OS,1,0,"i",15),m()()()()}if(e&2){let n=y(),r=M(0),i=M(1),o=M(2),s=M(3),a=M(4);u(3),A("href",s,ue),ie("tabindex",a?-1:null),u(),C(i?4:-1),u(),C(o?5:-1),u(),C(a?6:-1),u(),X("is-dimmed",a),A("href",s,ue),ie("tabindex",a?-1:null),u(),B(" ",r.name," "),u(),A("formGroup",n.form),u(),C(r.hasOneSize?-1:10),u(2),X("is-dimmed",a),u(),C(r.originalPrice&&r.price!==r.originalPrice?13:14),u(2),A("disabled",a),ie("aria-label",x(16,19,"RECOMMENDATIONS.ADD_TO_CART"))("aria-busy",a),u(2),C(a?17:18)}}var ma=class e{commonService=g(fe);cartService=g(re);trackingService=g(Be);sizesComponent=Cr(Or);item=xe.required();index=xe.required();isSubmitting=V(!1);form=new ua({sizeId:new Lu(null,{validators:[Vi.required],nonNullable:!1})});image=b(()=>{let t=this.commonService.context();if(!t)return null;let n=this.item().image,r=this.item().id,i=t.pathFiles;return!i||!n||!r?null:`${i}/imagesarticulos/${r}/330/${n}`});brandImage=b(()=>{let t=this.commonService.context();if(!t)return null;let n=this.item().imageBrand,r=t.pathFiles;return!n||!r?null:`${r}/imagesmarcas/listados/${n}`});pdpUrl=b(()=>{let t=this.commonService.context();if(!t)return null;let n=this.item().url,r=t.domain,i=t.marketRoute;return!n||!r||!i?null:`${r}/${i}/${n}`});constructor(){Pe(()=>{let t=this.item(),n=this.form.controls.sizeId;if(t.hasOneSize){let r=t.sizesList[0]?.id??1437;n.setValue(r,{emitEvent:!1}),n.clearValidators()}else n.setValue(null,{emitEvent:!1}),n.setValidators([Vi.required]);
11n.updateValueAndValidity({emitEvent:!1})})}async onSubmit(){if(this.isSubmitting())return;if(!this.item().hasOneSize&&this.form.controls.sizeId.value==null){this.sizesComponent()?.open();return}this.isSubmitting.set(!0);try{await this.addToCart()}catch(n){console.error(n)}finally{this.isSubmitting.set(!1)}}async onSizeChosen(t){if(!this.isSubmitting()){this.isSubmitting.set(!0),this.form.controls.sizeId.setValue(t,{emitEvent:!1});try{await this.addToCart(t),this.form.controls.sizeId.setValue(null,{emitEvent:!1}),this.sizesComponent()?.unlock()}catch(n){console.error(n),this.form.controls.sizeId.setValue(null,{emitEvent:!1}),this.sizesComponent()?.unlock()}finally{this.isSubmitting.set(!1)}}}async addToCart(t=this.form.controls.sizeId.value){let n=this.item(),r=this.commonService.context();if(!r||t==null)throw new ye("Missing context or size to add product to cart");let i={path_code:r.marketRoute,processing_type:n.isPromotionalProduct?"promotion-cart":"normal",processing_id:null,product_groups:[{processing_quantity:1,products:[{product_id:n.id,size_id:t,quantity:1,is_main_product:!0,customization:n.customization??null}]}]},o=this.cartService.suggestedResource.value();o&&o.dataLayer&&this.trackingService.sendAddToCartEvent(o.dataLayer,`${this.index()+1}`,1,t),await this.cartService.addProductToCart(i)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["recommendation-item"]],viewQuery:function(n,r){n&1&&Dr(r.sizesComponent,Or,5),n&2&&Er()},hostAttrs:[1,"recommendation-item","cart-enter","cart-enter--x-mobile","position-relative","p-3","flex-shrink-0","col-18","col-md-12","col-lg-24"],hostVars:4,hostBindings:function(n,r){n&2&&(Ve("--stagger-index",r.index()),X("is-submitting",r.isSubmitting()))},inputs:{item:[1,"item"],index:[1,"index"]},decls:6,vars:6,consts:[[1,"recommendation-item__content","d-flex","flex-column","gap-2"],[1,"recommendation-item__product","d-flex","flex-column","gap-2"],[1,"recommendation-item__media-wrap","position-relative"],[1,"recommendation-item__media","d-block","overflow-hidden",3,"href"],["loading","lazy",1,"blend-multiply","w-100","h-100","object-fit-contain",3,"src","alt"],[1,"recommendation-item__brand-wrap","blend-multiply","position-absolute","top-0","end-0"],["aria-hidden","true",1,"recommendation-item__media-veil","position-absolute","top-0","start-0","w-100","h-100","pe-none"],[1,"recommendation-item__title","d-block","text-decoration-none",3,"href"],[1,"recommendation-item__form",3,"ngSubmit","formGroup"],["formControlName","sizeId",3,"product","busy"],[1,"recommendation-item__footer","d-flex","align-items-center","justify-content-between","gap-2"],[1,"recommendation-item__prices","d-flex","flex-wrap","align-items-baseline","gap-1"],[1,"recommendation-item__price"],["type","submit",1,"recommendation-item__add",3,"disabled"],[1,"spinner-border","spinner-border-sm"],[1,"fa-regular","fa-plus"],[1,"recommendation-item__brand","blend-multiply","d-block",3,"src","alt"],["formControlName","sizeId",3,"sizeChosen","product","busy"],[1,"recommendation-item__price-old","text-decoration-line-through"]],template:function(n,r){if(n&1&&(ae(0)(1)(2)(3)(4),S(5,kS,19,21,"div",0)),n&2){let i=Q(r.item());u(),Q(r.image()),u(),Q(r.brandImage()),u();let o=Q(r.pdpUrl());u(),Q(r.isSubmitting()),u(),C(i&&o?5:-1)}},dependencies:[me,Lg,kg,Mg,Ag,Vu,ju,Or],styles:["[_nghost-%COMP%]{display:block;flex-shrink:0;background:#f2f2f2;border-radius:1rem;overflow:hidden}.is-submitting[_nghost-%COMP%]{pointer-events:none;-webkit-user-select:none;user-select:none}.recommendation-item__media-wrap[_ngcontent-%COMP%]{position:relative}.recommendation-item__media[_ngcontent-%COMP%]{position:relative;display:block;aspect-ratio:1/1;overflow:hidden}.recommendation-item__media[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:block;width:100%;height:100%;object-fit:contain}.recommendation-item__media-veil[_ngcontent-%COMP%]{z-index:1;background:#f2f2f28c}.recommendation-item__brand-wrap[_ngcontent-%COMP%]{mix-blend-mode:multiply;z-index:1}.recommendation-item__brand[_ngcontent-%COMP%]{max-height:35px;width:auto}.recommendation-item__title[_ngcontent-%COMP%]{color:#111;font-size:.95rem;font-weight:600;line-height:1.3}.recommendation-item__title[_ngcontent-%COMP%]:hover{color:#111}.recommendation-item__title.is-dimmed[_ngcontent-%COMP%], .recommendation-item__prices.is-dimmed[_ngcontent-%COMP%]{opacity:.45}.recommendation-item__price[_ngcontent-%COMP%]{color:#111;font-size:1.15rem;font-weight:700;line-height:1.2}.recommendation-item__price-old[_ngcontent-%COMP%]{color:#9a9a9a;font-size:.9rem;font-weight:400}.recommendation-item__add[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:1.75rem;height:1.75rem;padding:0;border:0;background:transparent;color:#111;font-size:1.25rem;line-height:1}.recommendation-item__add[_ngcontent-%COMP%]:disabled{opacity:1}"],changeDetection:0})};var FS=["list"],LS=(e,t)=>t.id;function VS(e,t){e&1&&(p(0,"div",2),E(1,"i",3),p(2,"p",4),_(3),w(4,"translate"),m()()),e&2&&(u(3),T(x(4,1,"RECOMMENDATIONS.LOADING")))}function jS(e,t){if(e&1&&E(0,"recommendation-item",11),e&2){let n=t.$implicit,r=t.$index,i=t.$count;X("ms-3",r===0)("me-3",r===i-1),A("item",n)("index",r)}}function BS(e,t){if(e&1){let n=Y();p(0,"h2",5),_(1),w(2,"translate"),m(),p(3,"div",6),O("pointerenter",function(i){k(n);let o=y();return F(o.onPointerEnter(i))})("pointerleave",function(i){k(n);let o=y();return F(o.onPointerLeave(i))})("pointerdown",function(){k(n);let i=y();return F(i.pauseForUser())})("wheel",function(){k(n);let i=y();return F(i.pauseForUser())})("touchstart",function(){k(n);let i=y();return F(i.pauseForUser())}),p(4,"div",7,0),O("scroll",function(){k(n);let i=y();return F(i.onListScroll())}),oe(6,jS,1,6,"recommendation-item",8,LS),m(),E(8,"div",9)(9,"div",10),m()}if(e&2){let n=y();u(),T(x(2,5,"RECOMMENDATIONS.TITLE")),u(5),se(n.products()),u(2),X("is-visible",n.canScrollStart()),u(),X("is-visible",n.canScrollEnd())}}function US(e,t){e&1&&(p(0,"h2",5),_(1),w(2,"translate"),m(),p(3,"div",12)(4,"p",13),_(5),w(6,"translate"),m()()),e&2&&(u(),T(x(2,2,"RECOMMENDATIONS.TITLE")),u(4),T(x(6,4,"RECOMMENDATIONS.EMPTY")))}var kr=class e{cartService=g(re);destroyRef=g(it);listRef=Cr("list");resizeObserver=null;visibilityObserver=null;autoScrollRafId=0;autoScrollLastTs=0;autoScrollCarry=0;autoScrollDirection=1;pointerInside=!1;listVisible=!1;userPausedUntil=0;reducedMotionQuery=null;AUTO_SCROLL_PX_PER_SECOND=22;USER_PAUSE_MS=2500;SCROLL_THRESHOLD=4;suggested=this.cartService.suggestedResource;products=b(()=>{if(this.suggested.hasValue()){let t=this.suggested.value();if(t)return t.products}return[]});isLoading=b(()=>{let t=this.cartService.cartResource,n=this.suggested;if(!t.hasValue())return!t.error();let r=t.value()?.grouped_date[0]?.lines??{};return(Array.isArray(r)?r.length>0:Object.keys(r).length>0)?n.isLoading()&&!n.hasValue():!1});canScrollStart=V(!1);canScrollEnd=V(!1);constructor(){Xl(()=>{this.products(),this.bindListObserver(),this.updateScrollHints(),this.ensureAutoScroll()}),this.reducedMotionQuery=window.matchMedia("(prefers-reduced-motion: reduce)");let t=()=>{this.prefersReducedMotion()?this.stopAutoScroll():this.ensureAutoScroll()};this.reducedMotionQuery.addEventListener("change",t);let n=()=>
11{if(document.hidden){this.stopAutoScroll();return}this.autoScrollLastTs=0,this.ensureAutoScroll()};document.addEventListener("visibilitychange",n),this.destroyRef.onDestroy(()=>{this.stopAutoScroll(),this.resizeObserver?.disconnect(),this.resizeObserver=null,this.visibilityObserver?.disconnect(),this.visibilityObserver=null,this.reducedMotionQuery?.removeEventListener("change",t),this.reducedMotionQuery=null,document.removeEventListener("visibilitychange",n)})}onListScroll(){this.updateScrollHints()}onPointerEnter(t){t.pointerType==="mouse"&&(this.pointerInside=!0)}onPointerLeave(t){t.pointerType==="mouse"&&(this.pointerInside=!1)}pauseForUser(){this.userPausedUntil=Date.now()+this.USER_PAUSE_MS,this.autoScrollLastTs=0}bindListObserver(){let t=this.listRef()?.nativeElement;if(!t){this.listVisible=!1,this.stopAutoScroll();return}this.resizeObserver||(this.resizeObserver=new ResizeObserver(()=>{this.updateScrollHints(),this.ensureAutoScroll()})),this.resizeObserver.disconnect(),this.resizeObserver.observe(t),this.visibilityObserver||(this.visibilityObserver=new IntersectionObserver(n=>{if(this.listVisible=n.some(r=>r.isIntersecting),this.listVisible){this.autoScrollLastTs=0,this.ensureAutoScroll();return}this.stopAutoScroll()},{threshold:.2})),this.visibilityObserver.disconnect(),this.visibilityObserver.observe(t)}updateScrollHints(){let t=this.listRef()?.nativeElement;if(!t){this.canScrollStart.set(!1),this.canScrollEnd.set(!1);return}let n=this.overflowAxis(t);if(n==="x"){this.canScrollStart.set(t.scrollLeft>this.SCROLL_THRESHOLD),this.canScrollEnd.set(t.scrollLeft+t.clientWidth<t.scrollWidth-this.SCROLL_THRESHOLD);return}if(n==="y"){this.canScrollStart.set(t.scrollTop>this.SCROLL_THRESHOLD),this.canScrollEnd.set(t.scrollTop+t.clientHeight<t.scrollHeight-this.SCROLL_THRESHOLD);return}this.canScrollStart.set(!1),this.canScrollEnd.set(!1)}overflowAxis(t){let n=t.scrollWidth>t.clientWidth+this.SCROLL_THRESHOLD,r=t.scrollHeight>t.clientHeight+this.SCROLL_THRESHOLD;return n?"x":r?"y":null}prefersReducedMotion(){return this.reducedMotionQuery?.matches??!1}shouldPauseAutoScroll(t){return this.prefersReducedMotion()||document.hidden||!this.listVisible||this.pointerInside||Date.now()<this.userPausedUntil?!0:!!t.querySelector("recommendation-sizes.is-open")}ensureAutoScroll(){if(this.autoScrollRafId||this.prefersReducedMotion()||document.hidden||!this.listRef()?.nativeElement)return;let t=n=>{let r=this.listRef()?.nativeElement;if(!r||!this.listVisible||document.hidden||this.prefersReducedMotion()){this.stopAutoScroll();return}this.autoScrollRafId=requestAnimationFrame(t);let i=this.overflowAxis(r);if(!i||this.shouldPauseAutoScroll(r)){this.autoScrollLastTs=0;return}if(!this.autoScrollLastTs){this.autoScrollLastTs=n;return}let o=n-this.autoScrollLastTs;this.autoScrollLastTs=n,this.autoScrollCarry+=this.AUTO_SCROLL_PX_PER_SECOND*o/1e3;let s=Math.trunc(this.autoScrollCarry);if(s===0)return;this.autoScrollCarry-=s;let a=s*this.autoScrollDirection;if(i==="y"){let l=r.scrollHeight-r.clientHeight;r.scrollTop+=a,r.scrollTop>=l-1&&(this.autoScrollDirection=-1),r.scrollTop<=1&&(this.autoScrollDirection=1);return}let c=r.scrollWidth-r.clientWidth;r.scrollLeft+=a,r.scrollLeft>=c-1&&(this.autoScrollDirection=-1),r.scrollLeft<=1&&(this.autoScrollDirection=1)};this.autoScrollRafId=requestAnimationFrame(t)}stopAutoScroll(){this.autoScrollRafId&&cancelAnimationFrame(this.autoScrollRafId),this.autoScrollRafId=0,this.autoScrollLastTs=0,this.autoScrollCarry=0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-recommendations"]],viewQuery:function(n,r){n&1&&Dr(r.listRef,FS,5),n&2&&Er()},hostAttrs:[1,"cart-recommendations"],decls:4,vars:1,consts:[["list",""],[1,"cart-recommendations__panel","d-flex","flex-column","p-lg-3","h-lg-100","min-h-0"],[1,"cart-recommendations__state","flex-grow-1","d-flex","flex-column","align-items-center","justify-content-center","text-center","py-4"],[1,"spinner-border","spinner-border-xl","border-5",2,"width","3em","height","3em","border-width","0.4em"],[1,"fw-bold","mt-2","mb-0"],[1,"fs-5","fw-bolder","mb-3","flex-shrink-0"],[1,"cart-recommendations__list-wrap","position-relative","flex-grow-1","min-h-0",3,"pointerenter","pointerleave","pointerdown","wheel","touchstart"],[1,"cart-recommendations__list","d-flex","flex-row","flex-lg-column","flex-nowrap","gap-3","overflow-auto","h-100","min-h-0","pb-1","pb-lg-0",3,"scroll"],[1,"ms-lg-0","me-lg-0",3,"item","index","ms-3","me-3"],["aria-hidden","true",1,"cart-recommendations__fade","cart
11-recommendations__fade--start"],["aria-hidden","true",1,"cart-recommendations__fade","cart-recommendations__fade--end"],[1,"ms-lg-0","me-lg-0",3,"item","index"],[1,"cart-recommendations__state","flex-grow-1","d-flex","flex-column","align-items-center","justify-content-center","text-center","text-muted","py-4"],[1,"mb-0"]],template:function(n,r){n&1&&(p(0,"div",1),S(1,VS,5,3,"div",2)(2,BS,10,7)(3,US,7,6),m()),n&2&&(u(),C(r.isLoading()?1:r.products().length>0?2:3))},dependencies:[me,ma],styles:["[_nghost-%COMP%]{display:block;min-height:0}@media (max-width: 991.98px){[_nghost-%COMP%]{height:auto;overflow:visible;padding:0;margin:0}.cart-recommendations__panel[_ngcontent-%COMP%]{padding:0}.cart-recommendations__panel[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:0;padding-inline:1rem}.cart-recommendations__list[_ngcontent-%COMP%]{padding-inline:0}.cart-recommendations__list-wrap[_ngcontent-%COMP%], .cart-recommendations__list[_ngcontent-%COMP%]{height:auto!important;min-height:0;flex-grow:0}}@media (min-width: 992px){[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1 1 auto;height:100%;overflow:hidden}}.cart-recommendations__panel[_ngcontent-%COMP%], .cart-recommendations__list-wrap[_ngcontent-%COMP%]{min-height:0}.cart-recommendations__list[_ngcontent-%COMP%]{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:auto}@media (max-width: 991.98px){.cart-recommendations__list[_ngcontent-%COMP%]{overscroll-behavior-x:contain;overscroll-behavior-y:auto}}.cart-recommendations__list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.cart-recommendations__fade[_ngcontent-%COMP%]{position:absolute;z-index:1;pointer-events:none;opacity:0;transition:opacity .2s ease;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}.cart-recommendations__fade.is-visible[_ngcontent-%COMP%]{opacity:1}@media (max-width: 991.98px){.cart-recommendations__fade[_ngcontent-%COMP%]{top:0;bottom:0;width:2.75rem}.cart-recommendations__fade--start[_ngcontent-%COMP%]{left:0;background:linear-gradient(to right,#ffffffeb,#fff0);-webkit-mask-image:linear-gradient(to right,#000 35%,transparent 100%);mask-image:linear-gradient(to right,#000 35%,transparent 100%)}.cart-recommendations__fade--end[_ngcontent-%COMP%]{right:0;background:linear-gradient(to left,#ffffffeb,#fff0);-webkit-mask-image:linear-gradient(to left,#000 35%,transparent 100%);mask-image:linear-gradient(to left,#000 35%,transparent 100%)}}@media (min-width: 992px){.cart-recommendations__fade[_ngcontent-%COMP%]{left:0;right:0;height:3.5rem}.cart-recommendations__fade--start[_ngcontent-%COMP%]{top:0;background:linear-gradient(to bottom,#ffffffeb,#fff0);-webkit-mask-image:linear-gradient(to bottom,#000 35%,transparent 100%);mask-image:linear-gradient(to bottom,#000 35%,transparent 100%)}.cart-recommendations__fade--end[_ngcontent-%COMP%]{bottom:0;background:linear-gradient(to top,#ffffffeb,#fff0);-webkit-mask-image:linear-gradient(to top,#000 35%,transparent 100%);mask-image:linear-gradient(to top,#000 35%,transparent 100%)}}.min-h-0[_ngcontent-%COMP%]{min-height:0}@media (min-width: 992px){.h-lg-100[_ngcontent-%COMP%]{height:100%!important}}"],changeDetection:0})};var HS=e=>[e];function $S(e,t){e&1&&(p(0,"div",1),E(1,"cart-wishlist"),m())}function zS(e,t){if(e&1){let n=Y();p(0,"div",2)(1,"div",3),E(2,"cart-alert-box")(3,"cart-products"),p(4,"cart-resume",4),O("calculateShipping",function(){k(n);let i=y(2);return F(i.activeTab.set("shipping"))}),m()(),p(5,"div",5),E(6,"div",6),p(7,"div",7),E(8,"cart-recommendations"),m()()(),E(9,"cart-checkout-footer")}}function GS(e,t){if(e&1&&oe(0,zS,10,0,null,null,Jh),e&2){let n=y();se(cn(0,HS,n.cartUiEpoch()))}}function WS(e,t){if(e&1){let n=Y();p(0,"div",1)(1,"cart-shipping",8),O("backToCart",function(){k(n);let i=y();return F(i.activeTab.set("cart"))}),m()()}}var ga=class e{cartService=g(re);activeTab=ws("cart");cartUiEpoch=this.cartService.cartUiEpoch.asReadonly();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-main"]],hostAttrs:[1,"cart-main-host","d-flex","flex-column","min-h-0"],inputs:{activeTab:[1,"activeTab"]},outputs:{activeTab:"activeTabChange"},decls:5,vars:1,consts:[[1,"cart-main","d-flex","flex-column","flex-fill","min-h-0"],[1,"cart-main__body","p-3"],[1,"cart-main__body"],[1,"p-3"],[3,"calculateShipping"],[1,"d-lg-none","pt-1"],["aria-hidden","true",1,"cart-hairline"],[1,"pt-3","pb-3"],[3,"backToCart"]],template:function(n,r){if(n&1&&(ae(0),p(1,"div",0),S(2,$S,2,0,"div",1)(3,GS,2,2)(4,WS,2,0,"div",1),m()),n&2){let i,o=r.activeTab();u(2),C((i=o)==="wishlist"?2:i==="cart"?3:i==="shipping"?4:-1)}},dependencies:[Qs,Xs,ea,ta,na,ra,kr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.cart-main[_ngcontent-%COMP%]{min-height:0;height:100%;overflow:hidden}.cart-main__body[_ngcontent-%COMP%]{flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.18) transparent}.cart-main__body[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.cart-main__body[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.cart-main__body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#0000002e;border-radius:999px}.cart-main__body[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#00000047}.cart-main__body[_ngcontent-%COMP%]::-webkit-scrollbar-button{display:none;width:0;height:0}"],changeDetection:0})};
11function qS(e,t){if(e&1&&(p(0,"span",5),_(1),m()),e&2){y();let n=M(1),r=M(2);X("text-bg-light",n)("text-bg-dark",!n),u(),T(r)}}function ZS(e,t){if(e&1&&(p(0,"span",5),_(1),m()),e&2){y();let n=M(0),r=M(3);X("text-bg-light",n==="wishlist")("text-bg-dark",n!=="wishlist"),u(),T(r)}}var ya=class e{cartService=g(re);wishlistService=g(Rt);activeTab=ws.required();cartItems=b(()=>{if(this.cartService.cartResource.hasValue()){let t=this.cartService.cartResource.value();if(!t)return null;let n=Number(t.resume.count_product_in_cart);return n>0?n:null}return null});wishlistItems=b(()=>{if(this.wishlistService.wishlistResource.hasValue()){let t=this.wishlistService.wishlistResource.value();return t&&t.length>0?t.length:null}return null});static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-tab"]],hostAttrs:["role","tablist","aria-label","Cambiar entre carrito y favoritos",1,"cart-tab-toggle","d-inline-flex","align-items-center","p-1","rounded-pill","gap-1","bg-light"],inputs:{activeTab:[1,"activeTab"]},outputs:{activeTab:"activeTabChange"},decls:10,vars:12,consts:[["type","button","role","tab","aria-label","Carrito",1,"cart-tab-toggle__btn","position-relative","d-inline-flex","align-items-center","justify-content-center","p-0","border-0","rounded-pill","bg-transparent","text-dark","lh-1",3,"click"],[1,"fa-regular","fa-bag-shopping"],[1,"position-absolute","top-0","start-100","translate-middle","badge","rounded-pill",3,"text-bg-light","text-bg-dark"],["type","button","role","tab","aria-label","Favoritos",1,"cart-tab-toggle__btn","position-relative","d-inline-flex","align-items-center","justify-content-center","p-0","border-0","rounded-pill","bg-transparent","text-dark","lh-1",3,"click"],[1,"fa-regular","fa-heart"],[1,"position-absolute","top-0","start-100","translate-middle","badge","rounded-pill"]],template:function(n,r){if(n&1){let i=Y();ae(0)(1)(2)(3),p(4,"button",0),O("click",function(){return k(i),F(r.activeTab.set("cart"))}),E(5,"i",1),S(6,qS,2,5,"span",2),m(),p(7,"button",3),O("click",function(){return k(i),F(r.activeTab.set("wishlist"))}),E(8,"i",4),S(9,ZS,2,5,"span",2),m()}if(n&2){let i=Q(r.activeTab());u();let o=Q(i==="cart"||i==="shipping");u();let s=Q(r.cartItems());u();let a=Q(r.wishlistItems());u(),X("is-active",o),ie("aria-selected",o),u(2),C(s?6:-1),u(),X("is-active",i==="wishlist"),ie("aria-selected",i==="wishlist"),u(2),C(a?9:-1)}},styles:["[_nghost-%COMP%]{background:#ececec}[_nghost-%COMP%]   .cart-tab-toggle__btn[_ngcontent-%COMP%]{width:2.5rem;height:2.25rem;transition:background-color .2s ease,color .2s ease}[_nghost-%COMP%]   .cart-tab-toggle__btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:1.05rem}[_nghost-%COMP%]   .cart-tab-toggle__btn.is-active[_ngcontent-%COMP%]{background:#111!important;color:#fff!important}[_nghost-%COMP%]   .cart-tab-toggle__btn[_ngcontent-%COMP%]:focus-visible{outline:2px solid #111;outline-offset:2px}"],changeDetection:0})};function YS(e,t){if(e&1&&E(0,"span",5),e&2){y(2);let n=M(0);A("innerHTML",n.start_formatted,Ze)}}function QS(e,t){if(e&1&&(p(0,"span"),_(1),w(2,"currency"),m()),e&2){y(2);let n=M(0);u(),T($t(2,1,0,n.currency))}}function KS(e,t){if(e&1&&E(0,"span",5),e&2){y(2);let n=M(0);A("innerHTML",n.goal_formatted,Ze)}}function JS(e,t){if(e&1&&(p(0,"span"),_(1),w(2,"currency"),m()),e&2){y(2);let n=M(0),r=M(1);u(),T($t(2,1,r,n.currency))}}function XS(e,t){if(e&1&&(p(0,"div",0),E(1,"p",1),p(2,"div",2),E(3,"div",3),m(),p(4,"div",4),S(5,YS,1,1,"span",5)(6,QS,3,4,"span")(7,KS,1,1,"span",5)(8,JS,3,4,"span"),m()()),e&2){y();let n=M(0),r=M(1);u(),A("innerHTML",n.text,Ze),u(),ie("aria-valuenow",n.processing),u(),Ve("width",n.processing,"%"),u(2),C(n.start_formatted?5:6),u(2),C(n.goal_formatted?7:r!=null?8:-1)}}function ex(e,t){if(e&1&&(ae(0)(1),S(2,XS,9,6,"div",0)),e&2){let n=y(),r=Q(n.progressBarData());u(),Q(n.progressGoal()),u(),C(r?2:-1)}}var va=class e{cartService=g(re);progressBarData=b(()=>this.cartService.progressBarResource.value()??null);hasProducts=b(()=>{if(!this.cartService.cartResource.hasValue())return!1;let t=this.cartService.cartResource.value();if(!t||!t.grouped_date.length)return!1;let n=t.grouped_date[0].lines;return Array.isArray(n)?n.length>0:Object.keys(n??{}).length>0});showShippingProgressBar=b(()=>{let t=this.progressBarData();return t?this.hasProducts()&&t.processing>0&&t.processing<100:!1});progressGoal=b(()=>{let t=this.progressBarData();return t?t.goal!=null&&t.goal>0?t.goal:t.processing<=0?null:t.prices/(t.processing/100):null});static \u0275fac=function(n){return new(n||e)};
11static \u0275cmp=ne({type:e,selectors:[["cart-shipping-progress"]],hostAttrs:[1,"cart-shipping-progress-host","d-block"],decls:1,vars:1,consts:[[1,"cart-enter","mt-3"],[1,"fw-bold","small","mb-2",3,"innerHTML"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress","cart-shipping-progress","overflow-hidden","rounded-4",2,"height","10px"],[1,"progress-bar","rounded-4"],[1,"d-flex","justify-content-between","text-muted","small","mt-1"],[3,"innerHTML"]],template:function(n,r){n&1&&S(0,ex,3,3),n&2&&C(r.showShippingProgressBar()?0:-1)},dependencies:[_m],styles:[".cart-shipping-progress[_ngcontent-%COMP%]{background-color:#e9ecef}.cart-shipping-progress[_ngcontent-%COMP%]   .progress-bar[_ngcontent-%COMP%]{background:linear-gradient(90deg,#f5a623,#111)}"],changeDetection:0})};var Vg="openCartComponent",jg="favoriteAdded",Bg="favoriteDeleted",_a=class e{commonService=g(fe);cartService=g(re);wishlistService=g(Rt);destroyRef=g(it);activeTab=V("cart");contextInput=xe(null,{transform:t=>t?JSON.parse(t):null});constructor(){Pe(()=>{let r=this.contextInput();r&&this.commonService.context.set(r)});let t=()=>{this.reloadAndOpenCart()},n=()=>{this.wishlistService.wishlistResource.reload()};document.addEventListener(Vg,t),document.addEventListener(jg,n),document.addEventListener(Bg,n),Rl(()=>{let r=document.getElementById("cartComponent");if(!r)return;let i=()=>{this.cartService.sendCartViewEvents()};r.addEventListener("shown.bs.offcanvas",i),this.destroyRef.onDestroy(()=>{r.removeEventListener("shown.bs.offcanvas",i)})}),this.destroyRef.onDestroy(()=>{document.removeEventListener(Vg,t),document.removeEventListener(jg,n),document.removeEventListener(Bg,n)})}async reloadAndOpenCart(){this.cartService.invalidateShippingAvailabilityMessages(),this.cartService.cartResource.reload(),this.openOffcanvas()}openOffcanvas(){let t=document.getElementById("cartComponent");if(!t)return;let n=window.bootstrap?.Offcanvas;if(n?.getOrCreateInstance){n.getOrCreateInstance(t).show();return}document.querySelector('[data-bs-toggle="offcanvas"][data-bs-target="#cartComponent"]')?.click()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=ne({type:e,selectors:[["cart-component"]],inputs:{contextInput:[1,"contextInput"]},decls:17,vars:7,consts:[["data-bs-backdrop","static","tabindex","-1","id","cartComponent","aria-labelledby","cartComponentLabel",1,"offcanvas","offcanvas-end","cart-offcanvas","bg-transparent","border-0","shadow-none","p-3"],[1,"offcanvas-body","cart-shell","bg-white","p-0","rounded-4"],[1,"cart-offcanvas__header","flex-shrink-0","bg-white","border-bottom","p-3"],[1,"d-flex","align-items-center","justify-content-between","gap-3"],[1,"fs-3","fw-bolder","mb-0"],[1,"d-flex","align-items-center","gap-3"],[3,"activeTabChange","activeTab"],["type","button","data-bs-dismiss","offcanvas","aria-label","Cerrar",1,"btn","btn-link","text-secondary","p-0"],[1,"fa-regular","fa-xmark","fa-lg"],[1,"cart-layout__main","min-h-0"],[1,"cart-layout__aside","d-none","d-lg-flex","border-start","flex-column","min-h-0"]],template:function(n,r){if(n&1){let i=Y();p(0,"div",0)(1,"div",1),ae(2),p(3,"div",2)(4,"div",3)(5,"span",4),_(6),w(7,"translate"),m(),p(8,"div",5)(9,"cart-tab",6),Ts("activeTabChange",function(s){return k(i),Kl(r.activeTab,s)||(r.activeTab=s),F(s)}),m(),p(10,"button",7),E(11,"i",8),m()()(),E(12,"cart-shipping-progress"),m(),p(13,"div",9)(14,"cart-main",6),Ts("activeTabChange",function(s){return k(i),Kl(r.activeTab,s)||(r.activeTab=s),F(s)}),m()(),p(15,"div",10),E(16,"cart-recommendations"),m()()()}if(n&2){let i=r.activeTab();u(6),T(x(7,5,"CART.MAIN_TITLE")),u(3),xs("activeTab",r.activeTab),u(3),X("d-none",i!=="cart"),u(2),xs("activeTab",r.activeTab)}},dependencies:[me,ga,kr,ya,va],styles:[".cart-offcanvas[_ngcontent-%COMP%]{--bs-offcanvas-width: min(880px, 100vw)}.cart-shell[_ngcontent-%COMP%]{height:100%;min-height:0}#cartComponent[_ngcontent-%COMP%]{flex-basis:auto;white-space:normal;padding-top:unset;padding-bottom:unset}#cartComponent[_ngcontent-%COMP%]   .offcanvas-body[_ngcontent-%COMP%]{height:100%;min-height:0;white-space:normal}.cart-offcanvas__header[_ngcontent-%COMP%]{background:#fff}.min-h-0[_ngcontent-%COMP%]{min-height:0}[_nghost-%COMP%]{display:contents}
11@media (max-width: 991.98px){#cartComponent[_ngcontent-%COMP%]   .offcanvas-body.cart-shell[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden}.cart-offcanvas__header[_ngcontent-%COMP%]{flex-shrink:0}.cart-layout__main[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;width:100%;overflow:hidden}.cart-layout__aside[_ngcontent-%COMP%]{border-left:0!important}}@media (min-width: 992px){#cartComponent[_ngcontent-%COMP%]   .offcanvas-body.cart-shell[_ngcontent-%COMP%]{overflow:hidden}.cart-shell[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0,16fr) minmax(0,8fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden}.cart-offcanvas__header[_ngcontent-%COMP%]{grid-column:1;grid-row:1}.cart-layout__main[_ngcontent-%COMP%]{grid-column:1;grid-row:2;min-height:0;overflow:hidden}.cart-layout__aside[_ngcontent-%COMP%]{grid-column:2;grid-row:1/-1;min-height:0;overflow:hidden}}"]})};qm(Xm).then(e=>{let t=eg(_a,{injector:e.injector});customElements.define("cart-component",t)}).catch(e=>console.error(e));

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