1import{a as v,b as T,c as $m,d as jU,f as $U,g as Q}from"./chunk-NCEQPEJE.js";var pw=jU((uX,zl)=>{var Yb,Kb,Zb,Qb,Jb,Xb,ew,tw,nw,Hl,av,rw,iw,ow,Ss,sw,aw,cw,uw,lw,dw,fw,hw,Vl;(function(e){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(t(r,t(n)))}):typeof zl=="object"&&typeof zl.exports=="object"?e(t(r,t(zl.exports))):e(t(r));function t(n,i){return n!==r&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(o,s){return n[o]=i?i(o,s):s}}})(function(e){var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])};Yb=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");r(n,i);function o(){this.constructor=n}n.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)},Kb=Object.assign||function(n){for(var i,o=1,s=arguments.length;o<s;o++){i=arguments[o];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},Zb=function(n,i){var o={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(o[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(o[s[a]]=n[s[a]]);return o},Qb=function(n,i,o,s){var a=arguments.length,c=a<3?i:s===null?s=Object.getOwnPropertyDescriptor(i,o):s,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,o,s);else for(var l=n.length-1;l>=0;l--)(u=n[l])&&(c=(a<3?u(c):a>3?u(i,o,c):u(i,o))||c);return a>3&&c&&Object.defineProperty(i,o,c),c},Jb=function(n,i){return function(o,s){i(o,s,n)}},Xb=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},ew=function(n,i,o,s){function a(c){return c instanceof o?c:new o(function(u){u(c)})}return new(o||(o=Promise))(function(c,u){function l(p){try{h(s.next(p))}catch(E){u(E)}}function d(p){try{h(s.throw(p))}catch(E){u(E)}}function h(p){p.done?c(p.value):a(p.value).then(l,d)}h((s=s.apply(n,i||[])).next())})},tw=function(n,i){var o={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},s,a,c,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(h){return function(p){return d([h,p])}}function d(h){if(s)throw new TypeError("Generator is already executing.");for(;o;)try{if(s=1,a&&(c=h[0]&2?a.return:h[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,h[1])).done)return c;switch(a=0,c&&(h=[h[0]&2,c.value]),h[0]){case 0:case 1:c=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,a=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(c=o.trys,!(c=c.length>0&&c[c.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!c||h[1]>c[0]&&h[1]<c[3])){o.label=h[1];break}if(h[0]===6&&o.label<c[1]){o.label=c[1],c=h;break}if(c&&o.label<c[2]){o.label=c[2],o.ops.push(h);break}c[2]&&o.ops.pop(),o.trys.pop();continue}h=i.call(n,o)}catch(p){h=[6,p],a=0}finally{s=c=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},nw=function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&Vl(i,n,o)},Vl=Object.create?function(n,i,o,s){s===void 0&&(s=o),Object.defineProperty(n,s,{enumerable:!0,get:function(){return i[o]}})}:function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]},Hl=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,o=i&&n[i],s=0;if(o)return o.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&s>=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},av=function(n,i){var o=typeof Symbol=="function"&&n[Symbol.iterator];if(!o)return n;var s=o.call(n),a,c=[],u;try{for(;(i===void 0||i-- >0)&&!(a=s.next()).done;)c.push(a.value)}catch(l){u={error:l}}
1finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(u)throw u.error}}return c},rw=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(av(arguments[i]));return n},iw=function(){for(var n=0,i=0,o=arguments.length;i<o;i++)n+=arguments[i].length;for(var s=Array(n),a=0,i=0;i<o;i++)for(var c=arguments[i],u=0,l=c.length;u<l;u++,a++)s[a]=c[u];return s},ow=function(n,i){for(var o=0,s=i.length,a=n.length;o<s;o++,a++)n[a]=i[o];return n},Ss=function(n){return this instanceof Ss?(this.v=n,this):new Ss(n)},sw=function(n,i,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=o.apply(n,i||[]),a,c=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(D){s[D]&&(a[D]=function(b){return new Promise(function(R,M){c.push([D,b,R,M])>1||l(D,b)})})}function l(D,b){try{d(s[D](b))}catch(R){E(c[0][3],R)}}function d(D){D.value instanceof Ss?Promise.resolve(D.value.v).then(h,p):E(c[0][2],D)}function h(D){l("next",D)}function p(D){l("throw",D)}function E(D,b){D(b),c.shift(),c.length&&l(c[0][0],c[0][1])}},aw=function(n){var i,o;return i={},s("next"),s("throw",function(a){throw a}),s("return"),i[Symbol.iterator]=function(){return this},i;function s(a,c){i[a]=n[a]?function(u){return(o=!o)?{value:Ss(n[a](u)),done:a==="return"}:c?c(u):u}:c}},cw=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],o;return i?i.call(n):(n=typeof Hl=="function"?Hl(n):n[Symbol.iterator](),o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o);function s(c){o[c]=n[c]&&function(u){return new Promise(function(l,d){u=n[c](u),a(l,d,u.done,u.value)})}}function a(c,u,l,d){Promise.resolve(d).then(function(h){c({value:h,done:l})},u)}},uw=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var t=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};lw=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var o in n)o!=="default"&&Object.prototype.hasOwnProperty.call(n,o)&&Vl(i,n,o);return t(i,n),i},dw=function(n){return n&&n.__esModule?n:{default:n}},fw=function(n,i,o,s){if(o==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!s:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?s:o==="a"?s.call(n):s?s.value:i.get(n)},hw=function(n,i,o,s,a){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?a.call(n,o):a?a.value=o:i.set(n,o),o},e("__extends",Yb),e("__assign",Kb),e("__rest",Zb),e("__decorate",Qb),e("__param",Jb),e("__metadata",Xb),e("__awaiter",ew),e("__generator",tw),e("__exportStar",nw),e("__createBinding",Vl),e("__values",Hl),e("__read",av),e("__spread",rw),e("__spreadArrays",iw),e("__spreadArray",ow),e("__await",Ss),e("__asyncGenerator",sw),e("__asyncDelegator",aw),e("__asyncValues",cw),e("__makeTemplateOb
1ject",uw),e("__importStar",lw),e("__importDefault",dw),e("__classPrivateFieldGet",fw),e("__classPrivateFieldSet",hw)})});var St=null,Tl=!1,Bm=1,BU=null,Ve=Symbol("SIGNAL");function H(e){let r=St;return St=e,r}function bl(){return St}var Ei={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Si(e){if(Tl)throw new Error("");if(St===null)return;St.consumerOnSignalRead(e);let r=St.producersTail;if(r!==void 0&&r.producer===e)return;let t,n=St.recomputing;if(n&&(t=r!==void 0?r.nextProducer:St.producers,t!==void 0&&t.producer===e)){St.producersTail=t,t.lastReadVersion=e.version;return}let i=e.consumersTail;if(i!==void 0&&i.consumer===St&&(!n||VU(i,St)))return;let o=ps(St),s={producer:e,consumer:St,nextProducer:t,prevConsumer:i,lastReadVersion:e.version,nextConsumer:void 0};St.producersTail=s,r!==void 0?r.nextProducer=s:St.producers=s,o&&xb(e,s)}function Mb(){Bm++}function fo(e){if(!(ps(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Bm)){if(!e.producerMustRecompute(e)&&!Ha(e)){hs(e);return}e.producerRecomputeValue(e),hs(e)}}function Hm(e){if(e.consumers===void 0)return;let r=Tl;Tl=!0;try{for(let t=e.consumers;t!==void 0;t=t.nextConsumer){let n=t.consumer;n.dirty||HU(n)}}finally{Tl=r}}function Vm(){return St?.consumerAllowSignalWrites!==!1}function HU(e){e.dirty=!0,Hm(e),e.consumerMarkedDirty?.(e)}function hs(e){e.dirty=!1,e.lastCleanEpoch=Bm}function Ci(e){return e&&Nb(e),H(e)}function Nb(e){e.producersTail=void 0,e.recomputing=!0}function ho(e,r){H(r),e&&Ob(e)}function Ob(e){e.recomputing=!1;let r=e.producersTail,t=r!==void 0?r.nextProducer:e.producers;if(t!==void 0){if(ps(e))do t=zm(t);while(t!==void 0);r!==void 0?r.nextProducer=void 0:e.producers=void 0}}function Ha(e){for(let r=e.producers;r!==void 0;r=r.nextProducer){let t=r.producer,n=r.lastReadVersion;if(n!==t.version||(fo(t),n!==t.version))return!0}return!1}function po(e){if(ps(e)){let r=e.producers;for(;r!==void 0;)r=zm(r)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function xb(e,r){let t=e.consumersTail,n=ps(e);if(t!==void 0?(r.nextConsumer=t.nextConsumer,t.nextConsumer=r):(r.nextConsumer=void 0,e.consumers=r),r.prevConsumer=t,e.consumersTail=r,!n)for(let i=e.producers;i!==void 0;i=i.nextProducer)xb(i.producer,i)}function zm(e){let r=e.producer,t=e.nextProducer,n=e.nextConsumer,i=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,n!==void 0?n.prevConsumer=i:r.consumersTail=i,i!==void 0)i.nextConsumer=n;else if(r.consumers=n,!ps(r)){let o=r.producers;for(;o!==void 0;)o=zm(o)}return t}function ps(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Va(e){BU?.(e)}function VU(e,r){let t=r.producersTail;if(t!==void 0){let n=r.producers;do{if(n===e)return!0;if(n===t)break;n=n.nextProducer}while(n!==void 0)}return!1}function za(e,r){return Object.is(e,r)}function Ga(e,r){let t=Object.create(zU);t.computation=e,r!==void 0&&(t.equal=r);let n=()=>{if(fo(t),Si(t),t.value===ar)throw t.error;return t.value};return n[Ve]=t,Va(t),n}var uo=Symbol("UNSET"),lo=Symbol("COMPUTING"),ar=Symbol("ERRORED"),zU=T(v({},Ei),{value:uo,dirty:!0,error:null,equal:za,kind:"computed",producerMustRecompute(e){return e.value===uo||e.value===lo},producerRecomputeValue(e){if(e.value===lo)throw new Error("");let r=e.value;e.value=lo;let t=Ci(e),n,i=!1;try{n=e.computation(),H(null),i=r!==uo&&r!==ar&&n!==ar&&e.equal(r,n)}catch(o){n=ar,e.error=o}finally{ho(e,t)}if(i){e.value=r;return}e.value=n,e.version++}});function GU(){throw new Error}var Lb=GU;function Pb(e){Lb(e)}function Gm(e){Lb=e}var WU=null;function Wm(e,r){let t=Object.create(_l);t.value=e,r!==void 0&&(t.equal=r);let n=()=>Fb(t);return n[Ve]=t,Va(t),[n,s=>Di(t,s),s=>wl(t,s)]}function Fb(e){return Si(e),e.value}function Di(e,r){Vm()||Pb(e),e.equal(e.value,r)||(e.value=r,qU(e))}function wl(e,r){Vm()||Pb(e),Di(e,r(e.value))}var _l=T(v({},Ei),{equal:za,value:void 0,kind:"signal"});function qU(e){e.version++,Mb(),Hm(e),WU?.(e)}var qm=T(v({},Ei),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Ym(e){if(e.dirty=!1,e.version>0&&!Ha(e))return;e.version++;let r=Ci(e);try{e.cleanup(),e.fn()}finally{ho(e,r)}}function B(e){return typeof e=="function"}function Ii(e){let t=e(n=>{Error.call(n),n.stack=new Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Al=Ii(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription: 2${t.map((n,i)=>`${i+1}) ${n.toString()}`).join(` 3 `)}`:"",this.name="UnsubscriptionError",this.errors=t});function Gr(e,r){if(e){let t=e.indexOf(r);0<=t&&e.splice(t,1)}}var ce=class e{constructor(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}
vendor: 20,122 bytes, line 3
3unsubscribe(){let r;if(!this.closed){this.closed=!0;let{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(let o of t)o.remove(this);else t.remove(this);let{initialTeardown:n}=this;if(B(n))try{n()}catch(o){r=o instanceof Al?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{kb(o)}catch(s){r=r??[],s instanceof Al?r=[...r,...s.errors]:r.push(s)}}if(r)throw new Al(r)}}add(r){var t;if(r&&r!==this)if(this.closed)kb(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}}_hasParent(r){let{_parentage:t}=this;return t===r||Array.isArray(t)&&t.includes(r)}_addParent(r){let{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r}_removeParent(r){let{_parentage:t}=this;t===r?this._parentage=null:Array.isArray(t)&&Gr(t,r)}remove(r){let{_finalizers:t}=this;t&&Gr(t,r),r instanceof e&&r._removeParent(this)}};ce.EMPTY=(()=>{let e=new ce;return e.closed=!0,e})();var Km=ce.EMPTY;function Rl(e){return e instanceof ce||e&&"closed"in e&&B(e.remove)&&B(e.add)&&B(e.unsubscribe)}function kb(e){B(e)?e():e.unsubscribe()}var Un={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var gs={setTimeout(e,r,...t){let{delegate:n}=gs;return n?.setTimeout?n.setTimeout(e,r,...t):setTimeout(e,r,...t)},clearTimeout(e){let{delegate:r}=gs;return(r?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ml(e){gs.setTimeout(()=>{let{onUnhandledError:r}=Un;if(r)r(e);else throw e})}function jn(){}var Ub=Zm("C",void 0,void 0);function jb(e){return Zm("E",void 0,e)}function $b(e){return Zm("N",e,void 0)}function Zm(e,r,t){return{kind:e,value:r,error:t}}var go=null;function ms(e){if(Un.useDeprecatedSynchronousErrorHandling){let r=!go;if(r&&(go={errorThrown:!1,error:null}),e(),r){let{errorThrown:t,error:n}=go;if(go=null,t)throw n}}else e()}function Bb(e){Un.useDeprecatedSynchronousErrorHandling&&go&&(go.errorThrown=!0,go.error=e)}var mo=class extends ce{constructor(r){super(),this.isStopped=!1,r?(this.destination=r,Rl(r)&&r.add(this)):this.destination=ZU}static create(r,t,n){return new $n(r,t,n)}next(r){this.isStopped?Jm($b(r),this):this._next(r)}error(r){this.isStopped?Jm(jb(r),this):(this.isStopped=!0,this._error(r))}complete(){this.isStopped?Jm(Ub,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(r){this.destination.next(r)}_error(r){try{this.destination.error(r)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},YU=Function.prototype.bind;function Qm(e,r){return YU.call(e,r)}var Xm=class{constructor(r){this.partialObserver=r}next(r){let{partialObserver:t}=this;if(t.next)try{t.next(r)}catch(n){Nl(n)}}error(r){let{partialObserver:t}=this;if(t.error)try{t.error(r)}catch(n){Nl(n)}else Nl(r)}complete(){let{partialObserver:r}=this;if(r.complete)try{r.complete()}catch(t){Nl(t)}}},$n=class extends mo{constructor(r,t,n){super();let i;if(B(r)||!r)i={next:r??void 0,error:t??void 0,complete:n??void 0};else{let o;this&&Un.useDeprecatedNextContext?(o=Object.create(r),o.unsubscribe=()=>this.unsubscribe(),i={next:r.next&&Qm(r.next,o),error:r.error&&Qm(r.error,o),complete:r.complete&&Qm(r.complete,o)}):i=r}this.destination=new Xm(i)}};function Nl(e){Un.useDeprecatedSynchronousErrorHandling?Bb(e):Ml(e)}function KU(e){throw e}function Jm(e,r){let{onStoppedNotification:t}=Un;t&&gs.setTimeout(()=>t(e,r))}var ZU={closed:!0,next:jn,error:KU,complete:jn};var vs=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Lt(e){return e}function Wa(...e){return ev(e)}function ev(e){return e.length===0?Lt:e.length===1?e[0]:function(t){return e.reduce((n,i)=>i(n),t)}}var L=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}subscribe(t,n,i){let o=JU(t)?t:new $n(t,n,i);return ms(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(t){try{return this._subscribe(t)}catch(n){t.error(n)}}forEach(t,n){return n=Hb(n),new n((i,o)=>{let s=new $n({next:a=>{try{t(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)}[vs](){return this}pipe(...t){return ev(t)(this)}toPromise(t){return t=Hb(t),new t((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return e.create=r=>new e(r),e})();function Hb(e){var r;return(r=e??Un.Promise)!==null&&r!==void 0?r:Promise}function QU(e){return e&&B(e.next)&&B(e.error)&&B(e.complete)}function JU(e){return e&&e instanceof mo||QU(e)&&Rl(e)}function tv(e){return B(e?.lift)}function F(e){return r=>{if(tv(r))return r.lift(function(t){try{return e(t,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function x(e,r,t,n,i){return new qa(e,r,t,n,i)}var qa=class extends mo{constructor(r,t,n,i,o,s){super(r),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){r.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){r.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){r.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:t}=this;super.unsubscribe(),!t&&((r=this.onFinalize)===null||r===void 0||r.call(this))}}};function nv(){return F((e,r)=>{let t=null;e._refCount++;let n=x(r,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){t=null;return}let i=e._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),r.unsubscribe()});e.subscribe(n),n.closed||(t=e.connect())})}var Ol=class extends L{constructor(r,t){super(),this.source=r,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,tv(r)&&(this.lift=r.lift)}_subscribe(r){return this.getSubject().subscribe(r)}getSubject(){let r=this._subject;return(!r||r.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:r}=this;this._subject=this._connection=null,r?.unsubscribe()}connect(){let r=this._connection;if(!r){r=this._connection=new ce;let t=this.getSubject();r.add(this.source.subscribe(x(t,void 0,()=>{this._teardown(),t.complete()},n=>{this._teardown(),t.error(n)},()=>this._teardown()))),r.closed&&(this._connection=null,r=ce.EMPTY)}return r}refCount(){return nv()(this)}};var ys={schedule(e){let r=requestAnimationFrame,t=cancelAnimationFrame,{delegate:n}=ys;n&&(r=n.requestAnimationFrame,t=n.cancelAnimationFrame);let i=r(o=>{t=void 0,e(o)});return new ce(()=>t?.(i))},requestAnimationFrame(...e){let{delegate:r}=ys;return(r?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:r}=ys;return(r?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Vb=Ii(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var X=(()=>{class e extends L{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let n=new xl(this,this);return n.operator=t,n}_throwIfClosed(){if(this.closed)throw new Vb}next(t){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(t)}})}error(t){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:n}=this;for(;n.length;)n.shift().error(t)}})}complete(){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Km:(this.currentObservers=null,o.push(t),new ce(()=>{this.currentObservers=null,Gr(o,t)}))}_checkFinalizedStatuses(t){let{hasError:n,thrownError:i,isStopped:o}=this;n?t.error(i):o&&t.complete()}asObservable(){let t=new L;return t.source=this,t}}return e.create=(r,t)=>new xl(r,t),e})(),xl=class extends X{constructor(r,t){super(),this.destination=r,this.source=t}next(r){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.next)===null||n===void 0||n.call(t,r)}error(r){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.error)===null||n===void 0||n.call(t,r)}complete(){var r,t;(t=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||t===void 0||t.call(r)}_subscribe(r){var t,n;return(n=(t=this.source)===null||t===void 0?void 0:t.subscribe(r))!==null&&n!==void 0?n:Km}};var ve=class extends X{constructor(r){super(),this._value=r}get value(){return this.getValue()}_subscribe(r){let t=super._subscribe(r);return!t.closed&&r.next(this._value),t}getValue(){let{hasError:r,thrownError:t,_value:n}=this;if(r)throw t;return this._throwIfClosed(),n}next(r){super.next(this._value=r)}};var Ya={now(){return(Ya.delegate||Date).now()},delegate:void 0};var lt=class extends X{constructor(r=1/0,t=1/0,n=Ya){super(),this._bufferSize=r,this._windowTime=t,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=t===1/0,this._bufferSize=Math.max(1,r),this._windowTime=Math.max(1,t)}next(r){let{isStopped:t,_buffer:n,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;t||(n.push(r),!i&&n.push(o.now()+s)),this._trimBuffer(),super.next(r)}_subscribe(r){this._throwIfClosed(),this._trimBuffer();let t=this._innerSubscribe(r),{_infiniteTimeWindow:n,_buffer:i}=this,o=i.slice();for(let s=0;s<o.length&&!r.closed;s+=n?1:2)r.next(o[s]);return this._checkFinalizedStatuses(r),t}_trimBuffer(){let{_bufferSize:r,_timestampProvider:t,_buffer:n,_infiniteTimeWindow:i}=this,o=(i?1:2)*r;if(r<1/0&&o<n.length&&n.splice(0,n.length-o),!i){let s=t.now(),a=0;for(let c=1;c<n.length&&n[c]<=s;c+=2)a=c;a&&n.splice(0,a+1)}}};var Ll=class extends ce{constructor(r,t){super()}schedule(r,t=0){return this}};var Ka={setInterval(e,r,...t){let{delegate:n}=Ka;return n?.setInterval?n.setInterval(e,r,...t):setInterval(e,r,...t)},clearInterval(e){let{delegate:r}=Ka;return(r?.clearInterval||clearInterval)(e)},delegate:void 0};var cr=class extends Ll{constructor(r,t){super(r,t),this.scheduler=r,this.work=t,this.pending=!1}schedule(r,t=0){var n;if(this.closed)return this;this.state=r;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,t)),this.pending=!0,this.delay=t,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,t),this}requestAsyncId(r,t,n=0){return Ka.setInterval(r.flush.bind(r,this),n)}recycleAsyncId(r,t,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return t;t!=null&&Ka.clearInterval(t)}execute(r,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(r,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(r,t){let n=!1,i;try{this.work(r)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:r,scheduler:t}=this,{actions:n}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Gr(n,this),r!=null&&(this.id=this.recycleAsyncId(t,r,null)),this.delay=null,super.unsubscribe()}}};var XU=1,rv,iv={};function zb(e){return e in iv?(delete iv[e],!0):!1}var Gb={setImmediate(e){let r=XU++;return iv[r]=!0,rv||(rv=Promise.resolve()),rv.then(()=>zb(r)&&e()),r},clearImmediate(e){zb(e)}};var{setImmediate:ej,clearImmediate:tj}=Gb,Za={setImmediate(...e){let{delegate:r}=Za;return(r?.setImmediate||ej)(...e)},clearImmediate(e){let{delegate:r}=Za;return(r?.clearImmediate||tj)(e)},delegate:void 0};var Pl=class extends cr{constructor(r,t){super(r,t),this.scheduler=r,this.work=t}requestAsyncId(r,t,n=0){return n!==null&&n>0?super.requestAsyncId(r,t,n):(r.actions.push(this),r._scheduled||(r._scheduled=Za.setImmediate(r.flush.bind(r,void 0))))}recycleAsyncId(r,t,n=0){var i;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(r,t,n);let{actions:o}=r;t!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==t&&(Za.clearImmediate(t),r._scheduled===t&&(r._scheduled=void 0))}};var Es=class e{constructor(r,t=e.now){this.schedulerActionCtor=r,this.now=t}schedule(r,t=0,n){return new this.schedulerActionCtor(this,r).schedule(n,t)}};Es.now=Ya.now;var ur=class extends Es{constructor(r,t=Es.now){super(r,t),this.actions=[],this._active=!1}flush(r){let{actions:t}=this;if(this._active){t.push(r);return}let n;this._active=!0;do if(n=r.execute(r.state,r.delay))break;while(r=t.shift());if(this._active=!1,n){for(;r=t.shift();)r.unsubscribe();throw n}}};var Fl=class extends ur{flush(r){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:n}=this,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===t&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===t&&n.shift();)r.unsubscribe();throw i}}};var ov=new Fl(Pl);var tn=new ur(cr),Wb=tn;var kl=class extends cr{constructor(r,t){super(r,t),this.scheduler=r,this.work=t}schedule(r,t=0){return t>0?super.schedule(r,t):(this.delay=t,this.state=r,this.scheduler.flush(this),this)}execute(r,t){return t>0||this.closed?super.execute(r,t):this._execute(r,t)}requestAsyncId(r,t,n=0){return n!=null&&n>0||n==null&&this.delay>0?super.requestAsyncId(r,t,n):(r.flush(this),0)}};var Ul=class extends ur{};var Ti=new Ul(kl);var jl=class extends cr{constructor(r,t){super(r,t),this.scheduler=r,this.work=t}requestAsyncId(r,t,n=0){return n!==null&&n>0?super.requestAsyncId(r,t,n):(r.actions.push(this),r._scheduled||(r._scheduled=ys.requestAnimationFrame(()=>r.flush(void 0))))}recycleAsyncId(r,t,n=0){var i;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(r,t,n);let{actions:o}=r;t!=null&&((i=o[o.length-1])===null||i===void 0?void 0:i.id)!==t&&(ys.cancelAnimationFrame(t),r._scheduled=void 0)}};var $l=class extends ur{flush(r){this._active=!0;let t=this._scheduled;this._scheduled=void 0;let{actions:n}=this,i;r=r||n.shift();do if(i=r.execute(r.state,r.delay))break;while((r=n[0])&&r.id===t&&n.shift());if(this._active=!1,i){for(;(r=n[0])&&r.id===t&&n.shift();)r.unsubscribe();throw i}}};var nj=new $l(jl);var te=new L(e=>e.complete());function Bl(e){return e&&B(e.schedule)}function sv(e){return e[e.length-1]}function lr(e){return B(sv(e))?e.pop():void 0}function dr(e){return Bl(sv(e))?e.pop():void 0}function qb(e,r){return typeof sv(e)=="number"?e.pop():r}var gw=$U(pw(),1),{__extends:lX,__assign:dX,__rest:fX,__decorate:hX,__param:pX,__metadata:gX,__awaiter:mw,__generator:mX,__exportStar:vX,__createBinding:yX,__values:EX,__read:SX,__spread:CX,__spreadArrays:DX,__spreadArray:IX,__await:Gl,__asyncGenerator:vw,__asyncDelegator:TX,__asyncValues:yw,__makeTemplateObject:bX,__importStar:wX,__importDefault:_X,__classPrivateFieldGet:AX,__classPrivateFieldSet:RX}=gw.default;var Cs=e=>e&&typeof e.length=="number"&&typeof e!="function";function Wl(e){return B(e?.then)}function ql(e){return B(e[vs])}function Yl(e){return Symbol.asyncIterator&&B(e?.[Symbol.asyncIterator])}function Kl(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 rj(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Zl=rj();function Ql(e){return B(e?.[Zl])}function Jl(e){return vw(this,arguments,function*(){let t=e.getReader();try{for(;;){let{value:n,done:i}=yield Gl(t.read());if(i)return yield Gl(void 0);yield yield Gl(n)}}finally{t.releaseLock()}})}function Xl(e){return B(e?.getReader)}function z(e){if(e instanceof L)return e;if(e!=null){if(ql(e))return ij(e);if(Cs(e))return oj(e);if(Wl(e))return sj(e);if(Yl(e))return Ew(e);if(Ql(e))return aj(e);if(Xl(e))return cj(e)}throw Kl(e)}function ij(e){return new L(r=>{let t=e[vs]();if(B(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function oj(e){return new L(r=>{for(let t=0;t<e.length&&!r.closed;t++)r.next(e[t]);r.complete()})}function sj(e){return new L(r=>{e.then(t=>{r.closed||(r.next(t),r.complete())},t=>r.error(t)).then(null,Ml)})}function aj(e){return new L(r=>{for(let t of e)if(r.next(t),r.closed)return;r.complete()})}function Ew(e){return new L(r=>{uj(e,r).catch(t=>r.error(t))})}function cj(e){return Ew(Jl(e))}function uj(e,r){var t,n,i,o;return mw(this,void 0,void 0,function*(){try{for(t=yw(e);n=yield t.next(),!n.done;){let s=n.value;if(r.next(s),r.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=t.return)&&(yield o.call(t))}finally{if(i)throw i.error}}r.complete()})}function Ct(e,r,t,n=0,i=!1){let o=r.schedule(function(){t(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function pn(e,r=0){return F((t,n)=>{t.subscribe(x(n,i=>Ct(n,e,()=>n.next(i),r),()=>Ct(n,e,()=>n.complete(),r),i=>Ct(n,e,()=>n.error(i),r)))})}function ed(e,r=0){return F((t,n)=>{n.add(e.schedule(()=>t.subscribe(n),r))})}function Sw(e,r){return z(e).pipe(ed(r),pn(r))}function Cw(e,r){return z(e).pipe(ed(r),pn(r))}function Dw(e,r){return new L(t=>{let n=0;return r.schedule(function(){n===e.length?t.complete():(t.next(e[n++]),t.closed||this.schedule())})})}function Iw(e,r){return new L(t=>{let n;return Ct(t,r,()=>{n=e[Zl](),Ct(t,r,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){t.error(s);return}o?t.complete():t.next(i)},0,!0)}),()=>B(n?.return)&&n.return()})}function td(e,r){if(!e)throw new Error("Iterable cannot be null");return new L(t=>{Ct(t,r,()=>{let n=e[Symbol.asyncIterator]();Ct(t,r,()=>{n.next().then(i=>{i.done?t.complete():t.next(i.value)})},0,!0)})})}function Tw(e,r){return td(Jl(e),r)}function bw(e,r){if(e!=null){if(ql(e))return Sw(e,r);if(Cs(e))return Dw(e,r);if(Wl(e))return Cw(e,r);if(Yl(e))return td(e,r);if(Ql(e))return Iw(e,r);if(Xl(e))return Tw(e,r)}throw Kl(e)}function ue(e,r){return r?bw(e,r):z(e)}function I(...e){let r=dr(e);return ue(e,r)}function gn(e,r){let t=B(e)?e:()=>e,n=i=>i.error(t());return new L(r?i=>r.schedule(n,0,i):n)}var bi=class e{constructor(r,t,n){this.kind=r,this.value=t,this.error=n,this.hasValue=r==="N"}observe(r){return cv(this,r)}do(r,t,n){let{kind:i,value:o,error:s}=this;return i==="N"?r?.(o):i==="E"?t?.(s):n?.()}accept(r,t,n){var i;return B((i=r)===null||i===void 0?void 0:i.next)?this.observe(r):this.do(r,t,n)}toObservable(){let{kind:r,value:t,error:n}=this,i=r==="N"?I(t):r==="E"?gn(()=>n):r==="C"?te:0;if(!i)throw new TypeError(`Unexpected notification kind ${r}`);return i}static createNext(r){return new e("N",r)}static createError(r){return new e("E",void 0,r)}static createComplete(){return e.completeNotification}};bi.completeNotification=new bi("C");function cv(e,r){var t,n,i;let{kind:o,value:s,error:a}=e;if(typeof o!="string")throw new TypeError('Invalid notification, missing "kind"');o==="N"?(t=r.next)===null||t===void 0||t.call(r,s):o==="E"?(n=r.error)===null||n===void 0||n.call(r,a):(i=r.complete)===null||i===void 0||i.call(r)}function Wr(e){return!!e&&(e instanceof L||B(e.lift)&&B(e.subscribe))}var Bn=Ii(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function fr(e,r){let t=typeof r=="object";return new Promise((n,i)=>{let o=!1,s;e.subscribe({next:a=>{s=a,o=!0},error:i,complete:()=>{o?n(s):t?n(r.defaultValue):i(new Bn)}})})}function vo(e,r){let t=typeof r=="object";return new Promise((n,i)=>{let o=new $n({next:s=>{n(s),o.unsubscribe()},error:i,complete:()=>{t?n(r.defaultValue):i(new Bn)}});e.subscribe(o)})}
3function nd(e){return e instanceof Date&&!isNaN(e)}var rd=Ii(e=>function(t=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t});function Qa(e,r){let{first:t,each:n,with:i=lj,scheduler:o=r??tn,meta:s=null}=nd(e)?{first:e}:typeof e=="number"?{each:e}:e;if(t==null&&n==null)throw new TypeError("No timeout provided.");return F((a,c)=>{let u,l,d=null,h=0,p=E=>{l=Ct(c,o,()=>{try{u.unsubscribe(),z(i({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(D){c.error(D)}},E)};u=a.subscribe(x(c,E=>{l?.unsubscribe(),h++,c.next(d=E),n>0&&p(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!h&&p(t!=null?typeof t=="number"?t:+t-o.now():n)})}function lj(e){throw new rd(e)}function S(e,r){return F((t,n)=>{let i=0;t.subscribe(x(n,o=>{n.next(e.call(r,o,i++))}))})}var{isArray:dj}=Array;function fj(e,r){return dj(r)?e(...r):e(r)}function wi(e){return S(r=>fj(e,r))}var{isArray:hj}=Array,{getPrototypeOf:pj,prototype:gj,keys:mj}=Object;function id(e){if(e.length===1){let r=e[0];if(hj(r))return{args:r,keys:null};if(vj(r)){let t=mj(r);return{args:t.map(n=>r[n]),keys:t}}}return{args:e,keys:null}}function vj(e){return e&&typeof e=="object"&&pj(e)===gj}function od(e,r){return e.reduce((t,n,i)=>(t[n]=r[i],t),{})}function Fe(...e){let r=dr(e),t=lr(e),{args:n,keys:i}=id(e);if(n.length===0)return ue([],r);let o=new L(uv(n,r,i?s=>od(i,s):Lt));return t?o.pipe(wi(t)):o}function uv(e,r,t=Lt){return n=>{ww(r,()=>{let{length:i}=e,o=new Array(i),s=i,a=i;for(let c=0;c<i;c++)ww(r,()=>{let u=ue(e[c],r),l=!1;u.subscribe(x(n,d=>{o[c]=d,l||(l=!0,a--),a||n.next(t(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function ww(e,r,t){e?Ct(t,e,r):r()}function _w(e,r,t,n,i,o,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&r.complete()},p=D=>u<n?E(D):c.push(D),E=D=>{o&&r.next(D),u++;let b=!1;z(t(D,l++)).subscribe(x(r,R=>{i?.(R),o?p(R):r.next(R)},()=>{b=!0},void 0,()=>{if(b)try{for(u--;c.length&&u<n;){let R=c.shift();s?Ct(r,s,()=>E(R)):E(R)}h()}catch(R){r.error(R)}}))};return e.subscribe(x(r,p,()=>{d=!0,h()})),()=>{a?.()}}function G(e,r,t=1/0){return B(r)?G((n,i)=>S((o,s)=>r(n,o,i,s))(z(e(n,i))),t):(typeof r=="number"&&(t=r),F((n,i)=>_w(n,i,e,t)))}function _i(e=1/0){return G(Lt,e)}function Aw(){return _i(1)}function hr(...e){return Aw()(ue(e,dr(e)))}function We(e){return new L(r=>{z(e()).subscribe(r)})}var yj={connector:()=>new X,resetOnDisconnect:!0};function sd(e,r=yj){let t=null,{connector:n,resetOnDisconnect:i=!0}=r,o=n(),s=new L(a=>o.subscribe(a));return s.connect=()=>((!t||t.closed)&&(t=We(()=>e).subscribe(o),i&&t.add(()=>o=n())),t),s}function Ds(...e){let r=lr(e),{args:t,keys:n}=id(e),i=new L(o=>{let{length:s}=t;if(!s){o.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;z(t[l]).subscribe(x(o,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||o.next(n?od(n,a):a),o.complete())}))}});return r?i.pipe(wi(r)):i}var Ej=["addListener","removeListener"],Sj=["addEventListener","removeEventListener"],Cj=["on","off"];function Ja(e,r,t,n){if(B(t)&&(n=t,t=void 0),n)return Ja(e,r,t).pipe(wi(n));let[i,o]=Tj(e)?Sj.map(s=>a=>e[s](r,a,t)):Dj(e)?Ej.map(Rw(e,r)):Ij(e)?Cj.map(Rw(e,r)):[];if(!i&&Cs(e))return G(s=>Ja(s,r,t))(z(e));if(!i)throw new TypeError("Invalid event target");return new L(s=>{let a=(...c)=>s.next(1<c.length?c:c[0]);return i(a),()=>o(a)})}function Rw(e,r){return t=>n=>e[t](r,n)}function Dj(e){return B(e.addListener)&&B(e.removeListener)}function Ij(e){return B(e.on)&&B(e.off)}function Tj(e){return B(e.addEventListener)&&B(e.removeEventListener)}function Xa(e,r,t){return We(()=>e()?r:t)}function qr(e=0,r,t=Wb){let n=-1;return r!=null&&(Bl(r)?t=r:n=r),new L(i=>{let o=nd(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){i.closed||(i.next(s++),0<=n?this.schedule(void 0,n):i.complete())},o)})}function bj(e=0,r=tn){return e<0&&(e=0),qr(e,e,r)}function mn(...e){let r=dr(e),t=qb(e,1/0),n=e;return n.length?n.length===1?z(n[0]):_i(t)(ue(n,r)):te}var ad=new L(jn);function wj(){return ad}var{isArray:_j}=Array;function Is(e){return e.length===1&&_j(e[0])?e[0]:e}function _(e,r){return F((t,n)=>{let i=0;t.subscribe(x(n,o=>e.call(r,o,i++)&&n.next(o)))})}function lv(...e){return e=Is(e),e.length===1?z(e[0]):new L(Aj(e))}function Aj(e){return r=>{let t=[];for(let n=0;t&&!r.closed&&n<e.length;n++)t.push(z(e[n]).subscribe(x(r,i=>{if(t){for(let o=0;o<t.length;o++)o!==n&&t[o].unsubscribe();t=null}r.next(i)})))}}function Ai(e,r){return new L(t=>{let n=e(),i=r(n);return(i?z(i):te).subscribe(t),()=>{n&&n.unsubscribe()}})}function yo(...e){let r=lr(e),t=Is(e);return t.length?new L(n=>{let i=t.map(()=>[]),o=t.map(()=>!1);n.add(()=>{i=o=null});for(let s=0;!n.closed&&s<t.length;s++)z(t[s]).subscribe(x(n,a=>{if(i[s].push(a),i.every(c=>c.length)){let c=i.map(u=>u.shift());n.next(r?r(...c):c),i.some((u,l)=>!u.length&&o[l])&&n.complete()}},()=>{o[s]=!0,!i[s].length&&n.complete()}
3));return()=>{i=o=null}}):te}function ec(e){return F((r,t)=>{let n=!1,i=null,o=null,s=!1,a=()=>{if(o?.unsubscribe(),o=null,n){n=!1;let u=i;i=null,t.next(u)}s&&t.complete()},c=()=>{o=null,s&&t.complete()};r.subscribe(x(t,u=>{n=!0,i=u,o||z(e(u)).subscribe(o=x(t,a,c))},()=>{s=!0,(!n||!o||o.closed)&&t.complete()}))})}function Ts(e,r=tn){return ec(()=>qr(e,r))}function tc(e,r=null){return r=r??e,F((t,n)=>{let i=[],o=0;t.subscribe(x(n,s=>{let a=null;o++%r===0&&i.push([]);for(let c of i)c.push(s),e<=c.length&&(a=a??[],a.push(c));if(a)for(let c of a)Gr(i,c),n.next(c)},()=>{for(let s of i)n.next(s);n.complete()},void 0,()=>{i=null}))})}function j(e){return F((r,t)=>{let n=null,i=!1,o;n=r.subscribe(x(t,void 0,void 0,s=>{o=z(e(s,j(e)(r))),n?(n.unsubscribe(),n=null,o.subscribe(t)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(t))})}function Mw(e,r,t,n,i){return(o,s)=>{let a=t,c=r,u=0;o.subscribe(x(s,l=>{let d=u++;c=a?e(c,l,d):(a=!0,l),n&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Nw(...e){let r=lr(e);return r?Wa(Nw(...e),wi(r)):F((t,n)=>{uv([t,...Is(e)])(n)})}function Je(e,r){return B(r)?G(e,r,1):G(e,1)}function Ow(e){return new L(r=>e.subscribe(r))}var Rj={connector:()=>new X};function xw(e,r=Rj){let{connector:t}=r;return F((n,i)=>{let o=t();z(e(Ow(o))).subscribe(i),i.add(n.subscribe(o))})}function Ri(e,r=tn){return F((t,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let u=o;o=null,n.next(u)}};function c(){let u=s+e,l=r.now();if(l<u){i=this.schedule(void 0,u-l),n.add(i);return}a()}t.subscribe(x(n,u=>{o=u,s=r.now(),i||(i=r.schedule(c,e),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function nc(e){return F((r,t)=>{let n=!1;r.subscribe(x(t,i=>{n=!0,t.next(i)},()=>{n||t.next(e),t.complete()}))})}function W(e){return e<=0?()=>te:F((r,t)=>{let n=0;r.subscribe(x(t,i=>{++n<=e&&(t.next(i),e<=n&&t.complete())}))})}function rc(){return F((e,r)=>{e.subscribe(x(r,jn))})}function Lw(e){return S(()=>e)}function cd(e,r){return r?t=>hr(r.pipe(W(1),rc()),t.pipe(cd(e))):G((t,n)=>z(e(t,n)).pipe(W(1),Lw(t)))}function pr(e,r=tn){let t=qr(e,r);return cd(()=>t)}function dv(){return F((e,r)=>{e.subscribe(x(r,t=>cv(t,r)))})}function Vt(e,r=Lt){return e=e??Mj,F((t,n)=>{let i,o=!0;t.subscribe(x(n,s=>{let a=r(s);(o||!e(i,a))&&(o=!1,i=a,n.next(s))}))})}function Mj(e,r){return e===r}function Nj(e,r){return Vt((t,n)=>r?r(t[e],n[e]):t[e]===n[e])}function Pw(e=Oj){return F((r,t)=>{let n=!1;r.subscribe(x(t,i=>{n=!0,t.next(i)},()=>n?t.complete():t.error(e())))})}function Oj(){return new Bn}function xj(...e){return r=>hr(r,I(...e))}function gr(e,r){return r?t=>t.pipe(gr((n,i)=>z(e(n,i)).pipe(S((o,s)=>r(n,o,i,s))))):F((t,n)=>{let i=0,o=null,s=!1;t.subscribe(x(n,a=>{o||(o=x(n,void 0,()=>{o=null,s&&n.complete()}),z(e(a,i++)).subscribe(o))},()=>{s=!0,!o&&n.complete()}))})}function Mi(e){return F((r,t)=>{try{r.subscribe(t)}finally{t.add(e)}})}function zt(e,r){let t=arguments.length>=2;return n=>n.pipe(e?_((i,o)=>e(i,o,n)):Lt,W(1),t?nc(r):Pw(()=>new Bn))}function mr(e,r,t,n){return F((i,o)=>{let s;!r||typeof r=="function"?s=r:{duration:t,element:s,connector:n}=r;let a=new Map,c=E=>{a.forEach(E),E(o)},u=E=>c(D=>D.error(E)),l=0,d=!1,h=new qa(o,E=>{try{let D=e(E),b=a.get(D);if(!b){a.set(D,b=n?n():new X);let R=p(D,b);if(o.next(R),t){let M=x(b,()=>{b.complete(),M?.unsubscribe()},void 0,void 0,()=>a.delete(D));h.add(z(t(R)).subscribe(M))}}b.next(s?s(E):E)}catch(D){u(D)}},()=>c(E=>E.complete()),u,()=>a.clear(),()=>(d=!0,l===0));i.subscribe(h);function p(E,D){let b=new L(R=>{l++;let M=D.subscribe(R);return()=>{M.unsubscribe(),--l===0&&d&&h.unsubscribe()}});return b.key=E,b}})}function ud(e){return e<=0?()=>te:F((r,t)=>{let n=[];r.subscribe(x(t,i=>{n.push(i),e<n.length&&n.shift()},()=>{for(let i of n)t.next(i);t.complete()},void 0,()=>{n=null}))})}function fv(){return F((e,r)=>{e.subscribe(x(r,t=>{r.next(bi.createNext(t))},()=>{r.next(bi.createComplete()),r.complete()},t=>{r.next(bi.createError(t)),r.complete()}))})}var Lj=G;function Fw(e,r){let t=B(e)?e:()=>e;return B(r)?xw(r,{connector:t}):n=>new Ol(n,t)}function ic(){return F((e,r)=>{let t,n=!1;e.subscribe(x(r,i=>{let o=t;t=i,n&&r.next([o,i]),n=!0}))})}function hv(...e){let r=e.length;if(r===0)throw new Error("list of properties cannot be empty.");return S(t=>{let n=t;for(let i=0;i<r;i++){let o=n?.[e[i]];if(typeof o<"u")n=o;else return}return n})}function Pj(e,r,t,n){t&&!B(t)&&(n=t);let i=B(t)?t:void 0;return o=>Fw(new lt(e,r,n),i)(o)}function oc(e,r){return F(Mw(e,r,arguments.length>=2,!0))}function bs(e={}){let{connector:r=()=>new X,resetOnError:t=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=e;return o=>{let s,a,c,u=0,l=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},p=()=>{h(),s=c=void 0,l=d=!1},E=()=>{let D=s;p(),D?.unsubscribe()};return F((D,b)=>{u++,!d&&!l&&h();let R=c=c??r();b.add(()=>{u--,u===0&&!d&&!l&&(a=pv(E,i))}),R.subscribe(b),!s&&u>
vendor: 7,526 bytes, lines 3-4
30&&(s=new $n({next:M=>R.next(M),error:M=>{d=!0,h(),a=pv(p,t,M),R.error(M)},complete:()=>{l=!0,h(),a=pv(p,n),R.complete()}}),z(D).subscribe(s))})(o)}}function pv(e,r,...t){if(r===!0){e();return}if(r===!1)return;let n=new $n({next:()=>{n.unsubscribe(),e()}});return z(r(...t)).subscribe(n)}function Xe(e,r,t){let n,i=!1;return e&&typeof e=="object"?{bufferSize:n=1/0,windowTime:r=1/0,refCount:i=!1,scheduler:t}=e:n=e??1/0,bs({connector:()=>new lt(n,r,t),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function ld(e){return _((r,t)=>e<=t)}function dd(e){return F((r,t)=>{let n=!1,i=0;r.subscribe(x(t,o=>(n||(n=!e(o,i++)))&&t.next(o)))})}function vr(...e){let r=dr(e);return F((t,n)=>{(r?hr(e,t,r):hr(e,t)).subscribe(n)})}function O(e,r){return F((t,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();t.subscribe(x(n,c=>{i?.unsubscribe();let u=0,l=o++;z(e(c,l)).subscribe(i=x(n,d=>n.next(r?r(c,d,l,u++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Yr(e){return F((r,t)=>{z(e).subscribe(x(t,()=>t.complete(),jn)),!t.closed&&r.subscribe(t)})}function k(e,r,t){let n=B(e)||r||t?{next:e,error:r,complete:t}:e;return n?F((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(x(o,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),o.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),o.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),o.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):Lt}function kw(e,r){return F((t,n)=>{let{leading:i=!0,trailing:o=!1}=r??{},s=!1,a=null,c=null,u=!1,l=()=>{c?.unsubscribe(),c=null,o&&(p(),u&&n.complete())},d=()=>{c=null,u&&n.complete()},h=E=>c=z(e(E)).subscribe(x(n,l,d)),p=()=>{if(s){s=!1;let E=a;a=null,n.next(E),!u&&h(E)}};t.subscribe(x(n,E=>{s=!0,a=E,!(c&&!c.closed)&&(i?p():h(E))},()=>{u=!0,!(o&&s&&c&&!c.closed)&&n.complete()}))})}function Fj(e,r=tn,t){let n=qr(e,r);return kw(()=>n,t)}function et(...e){let r=lr(e);return F((t,n)=>{let i=e.length,o=new Array(i),s=e.map(()=>!1),a=!1;for(let c=0;c<i;c++)z(e[c]).subscribe(x(n,u=>{o[c]=u,!a&&!s[c]&&(s[c]=!0,(a=s.every(Lt))&&(s=null))},jn));t.subscribe(x(n,c=>{if(a){let u=[c,...o];n.next(r?r(...u):u)}}))})}var gv;function fd(){return gv}function yr(e){let r=gv;return gv=e,r}var Uw=Symbol("NotFound");function ws(e){return e===Uw||e?.name==="\u0275NotFound"}function mv(e,r,t){let n=Object.create(kj);n.source=e,n.computation=r,t!=null&&(n.equal=t);let o=()=>{if(fo(n),Si(n),n.value===ar)throw n.error;return n.value};return o[Ve]=n,Va(n),o}function jw(e,r){fo(e),Di(e,r),hs(e)}function $w(e,r){if(fo(e),e.value===ar)throw e.error;wl(e,r),hs(e)}var kj=T(v({},Ei),{value:uo,dirty:!0,error:null,equal:za,kind:"linkedSignal",producerMustRecompute(e){return e.value===uo||e.value===lo},producerRecomputeValue(e){if(e.value===lo)throw new Error("");let r=e.value;e.value=lo;let t=Ci(e),n,i=!1;try{let o=e.source(),s=r!==uo&&r!==ar,a=s?{source:e.sourceValue,value:r}:void 0;n=e.computation(o,a),e.sourceValue=o,H(null),i=s&&n!==ar&&e.equal(r,n)}catch(o){n=ar,e.error=o}finally{ho(e,t)}if(i){e.value=r;return}e.value=n,e.version++}});function Bw(e){let r=H(null);try{return e()}finally{H(r)}}var Ed="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",N=class extends Error{code;constructor(r,t){super(vn(r,t)),this.code=r}};function Uj(e){return`NG0${Math.abs(e)}`}function vn(e,r){return`${Uj(e)}${r?": "+r:""}`}var yn=globalThis;function ye(e){for(let r in e)if(e[r]===ye)return r;throw Error("")}function Ww(e,r){for(let t in r)r.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=r[t])}function fc(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(fc).join(", ")}]`;if(e==null)return""+e;let r=e.overriddenName||e.name;if(r)return`${r}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` 4`);return n>=0?t.slice(0,n):t}function Sd(e,r){return e?r?`${e} ${r}`:e:r||""}var jj=ye({__forward_ref__:ye});function Cd(e){return e.__forward_ref__=Cd,e}function dt(e){return Mv(e)?e():e}function Mv(e){return typeof e=="function"&&e.hasOwnProperty(jj)&&e.__forward_ref__===Cd}function m(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function P(e){return{providers:e.providers||[],imports:e.imports||[]}}function hc(e){return $j(e,Dd)}function Nv(e){return hc(e)!==null}function $j(e,r){return e.hasOwnProperty(r)&&e[r]||null}function Bj(e){let r=e?.[Dd]??null;return r||null}function yv(e){return e&&e.hasOwnProperty(pd)?e[pd]:null}var Dd=ye({\u0275prov:ye}),pd=ye({\u0275inj:ye}),C=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(r,t){this._desc=r,this.\u0275prov=void 0,typeof t=="number"?this.__NG_ELEMENT_ID__=t:t!==void 0&&(this.\u0275prov=m({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ov(e){return e&&!!e.\u0275providers}var pc=ye({\u0275cmp:ye}),gc=ye({\u0275dir:ye}),xv=ye({\u0275pipe:ye}),Lv=ye({\u0275mod:ye}),ac=ye({\u0275fac:ye}),Io=ye({__NG_ELEMENT_ID__:ye}),Hw=ye({__NG_ENV_ID__:ye});function Pv(e){return Id(e,"@NgModule"),e[Lv]||null}function Zr(e){return Id(e,"@Component"),e[pc]||null}function Fv(e){return Id(e,"@Directive"),e[gc]||null}function qw(e){return Id(e,"@Pipe"),e[xv]||null}function Id(e,r){if(e==null)throw new N(-919,!1)}function En(e){return typeof e=="string"?e:e==null?"":String(e)}var Yw=ye({ngErrorCode:ye}),Hj=ye({ngErrorMessage:ye}),Vj=ye({ngTokenPath:ye});function kv(e,r){return Kw("",-200,r)}function Td(e,r){throw new N(-201,!1)}function Kw(e,r,t){let n=new N(r,e);return n[Yw]=r,n[Hj]=e,t&&(n[Vj]=t),n}function zj(e){return e[Yw]}var Ev;function Zw(){return Ev}function Pt(e){let r=Ev;return Ev=e,r}function Uv(e,r,t){let n=hc(e);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(t&8)return null;if(r!==void 0)return r;Td(e,"")}var Gj={},Eo=Gj,Sv="__NG_DI_FLAG__",Cv=class{injector;constructor(r){this.injector=r}retrieve(r,t){let n=So(t)||0;try{return this.injector.get(r,n&8?null:Eo,n)}catch(i){if(ws(i))return i;throw i}}};function Wj(e,r=0){let t=fd();if(t===void 0)throw new N(-203,!1);if(t===null)return Uv(e,void 0,r);{let n=qj(r),i=t.retrieve(e,n);if(ws(i)){if(n.optional)return null;throw i}return i}}function f(e,r=0){return(Zw()||Wj)(dt(e),r)}function g(e,r){return f(e,So(r))}function So(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function qj(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Dv(e){let r=[];for(let t=0;t<e.length;t++){let n=dt(e[t]);if(Array.isArray(n)){if(n.length===0)throw new N(900,!1);let i,o=0;for(let s=0;s<n.length;s++){let a=n[s],c=Yj(a);typeof c=="number"?c===-1?i=a.token:o|=c:i=a}r.push(f(i,o))}else r.push(f(n))}return r}function jv(e,r){return e[Sv]=r,e.prototype[Sv]=r,e}function Yj(e){return e[Sv]}function Ni(e,r){let t=e.hasOwnProperty(ac);return t?e[ac]:null}function Qw(e,r,t){if(e.length!==r.length)return!1;for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(t&&(i=t(i),o=t(o)),o!==i)return!1}return!0}function Jw(e){return e.flat(Number.POSITIVE_INFINITY)}function bd(e,r){e.forEach(t=>Array.isArray(t)?bd(t,r):r(t))}function $v(e,r,t){r>=e.length?e.push(t):e.splice(r,0,t)}function mc(e,r){return r>=e.length-1?e.pop():e.splice(r,1)[0]}function Xw(e,r){let t=[];for(let n=0;n<e;n++)t.push(r);return t}function e_(e,r,t,n){let i=e.length;if(i==r)e.push(t,n);
vendor: 6,226 bytes, line 4
4else if(i===1)e.push(n,e[0]),e[0]=t;else{for(i--,e.push(e[i-1],e[i]);i>r;){let o=i-2;e[i]=e[o],i--}e[r]=t,e[r+1]=n}}function vc(e,r,t){let n=As(e,r);return n>=0?e[n|1]=t:(n=~n,e_(e,n,r,t)),n}function wd(e,r){let t=As(e,r);if(t>=0)return e[t|1]}function As(e,r){return Kj(e,r,1)}function Kj(e,r,t){let n=0,i=e.length>>t;for(;i!==n;){let o=n+(i-n>>1),s=e[o<<t];if(r===s)return o<<t;s>r?i=o:n=o+1}return~(i<<t)}var Li={},Dt=[],Sr=new C(""),Bv=new C("",-1),Hv=new C(""),cc=class{get(r,t=Eo){if(t===Eo){let i=Kw("",-201);throw i.name="\u0275NotFound",i}return t}};function It(e){return{\u0275providers:e}}function Pi(e){return It([{provide:Sr,multi:!0,useValue:e}])}function t_(...e){return{\u0275providers:Vv(!0,e),\u0275fromNgModule:!0}}function Vv(e,...r){let t=[],n=new Set,i,o=s=>{t.push(s)};return bd(r,s=>{let a=s;gd(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&n_(i,o),t}function n_(e,r){for(let t=0;t<e.length;t++){let{ngModule:n,providers:i}=e[t];zv(i,o=>{r(o,n)})}}function gd(e,r,t,n){if(e=dt(e),!e)return!1;let i=null,o=yv(e),s=!o&&Zr(e);if(!o&&!s){let c=e.ngModule;if(o=yv(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=e}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)gd(u,r,t,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let u;bd(o.imports,l=>{gd(l,r,t,n)&&(u||=[],u.push(l))}),u!==void 0&&n_(u,r)}if(!a){let u=Ni(i)||(()=>new i);r({provide:i,useFactory:u,deps:Dt},i),r({provide:Hv,useValue:i,multi:!0},i),r({provide:Sr,useValue:()=>f(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let u=e;zv(c,l=>{r(l,u)})}}else return!1;return i!==e&&e.providers!==void 0}function zv(e,r){for(let t of e)Ov(t)&&(t=t.\u0275providers),Array.isArray(t)?zv(t,r):r(t)}var Zj=ye({provide:String,useValue:ye});function r_(e){return e!==null&&typeof e=="object"&&Zj in e}function Qj(e){return!!(e&&e.useExisting)}function Jj(e){return!!(e&&e.useFactory)}function Co(e){return typeof e=="function"}function i_(e){return!!e.useClass}var yc=new C(""),hd={},Vw={},vv;function Ec(){return vv===void 0&&(vv=new cc),vv}var xe=class{},Do=class extends xe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(r,t,n,i){super(),this.parent=t,this.source=n,this.scopes=i,Tv(r,s=>this.processProvider(s)),this.records.set(Bv,_s(void 0,this)),i.has("environment")&&this.records.set(xe,_s(void 0,this));let o=this.records.get(yc);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Hv,Dt,{self:!0}))}retrieve(r,t){let n=So(t)||0;try{return this.get(r,Eo,n)}catch(i){if(ws(i))return i;throw i}}destroy(){sc(this),this._destroyed=!0;let r=H(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),H(r)}}onDestroy(r){return sc(this),this._onDestroyHooks.push(r),()=>this.removeOnDestroy(r)}runInContext(r){sc(this);let t=yr(this),n=Pt(void 0),i;try{return r()}finally{yr(t),Pt(n)}}get(r,t=Eo,n){if(sc(this),r.hasOwnProperty(Hw))return r[Hw](this);let i=So(n),o,s=yr(this),a=Pt(void 0);try{if(!(i&4)){let u=this.records.get(r);if(u===void 0){let l=r1(r)&&hc(r);l&&this.injectableDefInScope(l)?u=_s(Iv(r),hd):u=null,this.records.set(r,u)}if(u!=null)return this.hydrate(r,u,i)}let c=i&2?Ec():this.parent;return t=i&8&&t===Eo?null:t,c.get(r,t)}catch(c){let u=zj(c);throw u===-200||u===-201?new N(u,null):c}finally{Pt(a),yr(s)}}resolveInjectorInitializers(){let r=H(null),t=yr(this),n=Pt(void 0),i;try{let o=this.get(Sr,Dt,{self:!0});for(let s of o)s()}finally{yr(t),Pt(n),H(r)}}toString(){return"R3Injector[...]"}processProvider(r){r=dt(r);let t=Co(r)?r:dt(r&&r.provide),n=e1(r);if(!Co(r)&&r.multi===!0){let i=this.records.get(t);i||(i=_s(void 0,hd,!0),i.factory=()=>Dv(i.multi),this.records.set(t,i)),t=r,i.multi.push(r)}this.records.set(t,n)}hydrate(r,t,n){let i=H(null);try{if(t.value===Vw)throw kv("");return t.value===hd&&(t.value=Vw,t.value=t.factory(void 0,n)),typeof t.value=="object"&&t.value&&n1(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{H(i)}}injectableDefInScope(r){if(!r.providedIn)return!1;let t=dt(r.providedIn);return typeof t=="string"?t==="any"||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(r){let t=this._onDestroyHooks.indexOf(r);t!==-1&&this._onDestroyHooks.splice(t,1)}};function Iv(e){let r=hc(e),t=r!==null?r.factory:Ni(e);if(t!==null)return t;if(e instanceof C)throw new N(-204,!1);if(e instanceof Function)return Xj(e);throw new N(-204,!1)}function Xj(e){if(e.length>0)throw new N(-204,!1);let t=Bj(e);return t!==null?()=>t.factory(e):()=>new e}function e1(e){if(r_(e))return _s(void 0,e.useValue);{let r=Gv(e);return _s(r,hd)}}function Gv(e,r,t){let n;if(Co(e)){let i=dt(e);return Ni(i)||Iv(i)}else if(r_(e))n=()=>dt(e.useValue);else if(Jj(e))n=()=>e.useFactory(...Dv(e.deps||[]));else if(Qj(e))n=(i,o)=>f(dt(e.useExisting),o!==void 0&&o&8?8:void 0);else{let i=dt(e&&(e.useClass||e.provide));if(t1(e))n=()=>new i(...Dv(e.deps));else return Ni(i)||Iv(i)}return n}function sc(e){if(e.destroyed)throw new N(-205,!1)}function _s(e,r,t=!1){return{factory:e,value:r,multi:t?[]:void 0}}function t1(e){return!!e.deps}function n1(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function r1(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Tv(e,r){for(let t of e)Array.isArray(t)?Tv(t,r):t&&Ov(t)?Tv(t.\u0275providers,r):r(t)}function nt(e,r){let t;e instanceof Do?(sc(e),t=e):t=new Cv(e);let n,i=yr(t),o=Pt(void 0);try{return r()}finally{yr(i),Pt(o)}}function Wv(){return Zw()!==void 0||fd()!=null}function qv(e){if(!Wv())throw new N(-203,!1)}var Hn=0,V=1,q=2,tt=3,Sn=4,kt=5,To=6,Rs=7,$e=8,Qr=9,Vn=10,Ie=11,Ms=12,Yv=13,bo=14,Tt=15,Fi=16,wo=17,Cr=18,Jr=19,Kv=20,Kr=21,_d=22,Oi=23,nn=24,_o=25,ki=26,_e=27,o_=1,Zv=6,Ui=7,Sc=8,Ao=9,Be=10;function Xr(e){return Array.isArray(e)&&typeof e[o_]=="object"}function zn(e){return Array.isArray(e)&&e[o_]===!0}function Qv(e){return(e.flags&4)!==0}
vendor: 4,728 bytes, line 4
4function ei(e){return e.componentOffset>-1}function Ns(e){return(e.flags&1)===1}function Dr(e){return!!e.template}function Os(e){return(e[q]&512)!==0}function Ro(e){return(e[q]&256)===256}var Jv="svg",s_="math";function Cn(e){for(;Array.isArray(e);)e=e[Hn];return e}function Xv(e,r){return Cn(r[e])}function Gn(e,r){return Cn(r[e.index])}function Ad(e,r){return e.data[r]}function Cc(e,r){return e[r]}function ey(e,r,t,n){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),r[t]=n}function Dn(e,r){let t=r[e];return Xr(t)?t:t[Hn]}function a_(e){return(e[q]&4)===4}function Rd(e){return(e[q]&128)===128}function c_(e){return zn(e[tt])}function In(e,r){return r==null?null:e[r]}function ty(e){e[wo]=0}function ny(e){e[q]&1024||(e[q]|=1024,Rd(e)&&Mo(e))}function u_(e,r){for(;e>0;)r=r[bo],e--;return r}function Dc(e){return!!(e[q]&9216||e[nn]?.dirty)}function Md(e){e[Vn].changeDetectionScheduler?.notify(8),e[q]&64&&(e[q]|=1024),Dc(e)&&Mo(e)}function Mo(e){e[Vn].changeDetectionScheduler?.notify(0);let r=xi(e);for(;r!==null&&!(r[q]&8192||(r[q]|=8192,!Rd(r)));)r=xi(r)}function ry(e,r){if(Ro(e))throw new N(911,!1);e[Kr]===null&&(e[Kr]=[]),e[Kr].push(r)}function l_(e,r){if(e[Kr]===null)return;let t=e[Kr].indexOf(r);t!==-1&&e[Kr].splice(t,1)}function xi(e){let r=e[tt];return zn(r)?r[tt]:r}function iy(e){return e[Rs]??=[]}function oy(e){return e.cleanup??=[]}function d_(e,r,t,n){let i=iy(r);i.push(t),e.firstCreatePass&&oy(e).push(n,i.length-1)}var J={lFrame:T_(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var bv=!1;function f_(){return J.lFrame.elementDepthCount}function h_(){J.lFrame.elementDepthCount++}function sy(){J.lFrame.elementDepthCount--}function Nd(){return J.bindingsEnabled}function ay(){return J.skipHydrationRootTNode!==null}function cy(e){return J.skipHydrationRootTNode===e}function uy(){J.skipHydrationRootTNode=null}function $(){return J.lFrame.lView}function Re(){return J.lFrame.tView}function p_(e){return J.lFrame.contextLView=e,e[$e]}function g_(e){return J.lFrame.contextLView=null,e}function rt(){let e=ly();for(;e!==null&&e.type===64;)e=e.parent;return e}function ly(){return J.lFrame.currentTNode}function m_(){let e=J.lFrame,r=e.currentTNode;return e.isParent?r:r.parent}function xs(e,r){let t=J.lFrame;t.currentTNode=e,t.isParent=r}function dy(){return J.lFrame.isParent}function fy(){J.lFrame.isParent=!1}function v_(){return J.lFrame.contextLView}function hy(){return bv}function uc(e){let r=bv;return bv=e,r}function ti(){let e=J.lFrame,r=e.bindingRootIndex;return r===-1&&(r=e.bindingRootIndex=e.tView.bindingStartIndex),r}function py(){return J.lFrame.bindingIndex}function y_(e){return J.lFrame.bindingIndex=e}function ni(){return J.lFrame.bindingIndex++}function Ic(e){let r=J.lFrame,t=r.bindingIndex;return r.bindingIndex=r.bindingIndex+e,t}function E_(){return J.lFrame.inI18n}function S_(e,r){let t=J.lFrame;t.bindingIndex=t.bindingRootIndex=e,Od(r)}function C_(){return J.lFrame.currentDirectiveIndex}function Od(e){J.lFrame.currentDirectiveIndex=e}function D_(e){let r=J.lFrame.currentDirectiveIndex;return r===-1?null:e[r]}function xd(){return J.lFrame.currentQueryIndex}function Tc(e){J.lFrame.currentQueryIndex=e}function i1(e){let r=e[V];return r.type===2?r.declTNode:r.type===1?e[kt]:null}function gy(e,r,t){if(t&4){let i=r,o=e;for(;i=i.parent,i===null&&!(t&1);)if(i=i1(o),i===null||(o=o[bo],i.type&10))break;if(i===null)return!1;r=i,e=o}let n=J.lFrame=I_();return n.currentTNode=r,n.lView=e,!0}function Ld(e){let r=I_(),t=e[V];J.lFrame=r,r.currentTNode=t.firstChild,r.lView=e,r.tView=t,r.contextLView=e,r.bindingIndex=t.bindingStartIndex,r.inI18n=!1}function I_(){let e=J.lFrame,r=e===null?null:e.child;return r===null?T_(e):r}function T_(e){let r={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=r),r}function b_(){let e=J.lFrame;return J.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var my=b_;function Pd(){let e=b_();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 w_(e){return(J.lFrame.contextLView=u_(e,J.lFrame.contextLView))[$e]}function Wn(){return J.lFrame.selectedIndex}function ji(e){J.lFrame.selectedIndex=e}function bc(){let e=J.lFrame;return Ad(e.tView,e.selectedIndex)}function __(){J.lFrame.currentNamespace=Jv}function vy(){return J.lFrame.currentNamespace}var A_=!0;function Fd(){return A_}function wc(e){A_=e}function wv(e,r=null,t=null,n){let i=yy(e,r,t,n);
vendor: 19,981 bytes, line 4
4return i.resolveInjectorInitializers(),i}function yy(e,r=null,t=null,n,i=new Set){let o=[t||Dt,t_(e)],s;return new Do(o,r||Ec(),s||null,i)}var de=class e{static THROW_IF_NOT_FOUND=Eo;static NULL=new cc;static create(r,t){if(Array.isArray(r))return wv({name:""},t,r,"");{let n=r.name??"";return wv({name:n},r.parent,r.providers,n)}}static \u0275prov=m({token:e,providedIn:"any",factory:()=>f(Bv)});static __NG_ELEMENT_ID__=-1},fe=new C(""),ze=(()=>{class e{static __NG_ELEMENT_ID__=o1;static __NG_ENV_ID__=t=>t}return e})(),md=class extends ze{_lView;constructor(r){super(),this._lView=r}get destroyed(){return Ro(this._lView)}onDestroy(r){let t=this._lView;return ry(t,r),()=>l_(t,r)}};function o1(){return new md($())}var Ey=!1,R_=new C(""),Ir=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ve(!1);debugTaskTracker=g(R_,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new L(t=>{t.next(!1),t.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let t=this.taskId++;return this.pendingTasks.add(t),this.debugTaskTracker?.add(t),t}has(t){return this.pendingTasks.has(t)}remove(t){this.pendingTasks.delete(t),this.debugTaskTracker?.remove(t),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=m({token:e,providedIn:"root",factory:()=>new e})}return e})(),_v=class extends X{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(r=!1){super(),this.__isAsync=r,Wv()&&(this.destroyRef=g(ze,{optional:!0})??void 0,this.pendingTasks=g(Ir,{optional:!0})??void 0)}emit(r){let t=H(null);try{super.next(r)}finally{H(t)}}subscribe(r,t,n){let i=r,o=t||(()=>null),s=n;if(r&&typeof r=="object"){let c=r;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 r instanceof ce&&r.add(a),a}wrapInTimeout(r){return t=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{r(t)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},Ft=_v;function vd(...e){}function Sy(e){let r,t;function n(){e=vd;try{t!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(t),r!==void 0&&clearTimeout(r)}catch(i){}}return r=setTimeout(()=>{e(),n()}),typeof requestAnimationFrame=="function"&&(t=requestAnimationFrame(()=>{e(),n()})),()=>n()}function M_(e){return queueMicrotask(()=>e()),()=>{e=vd}}var Cy="isAngularZone",lc=Cy+"_ID",s1=0,De=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ft(!1);onMicrotaskEmpty=new Ft(!1);onStable=new Ft(!1);onError=new Ft(!1);constructor(r){let{enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=Ey}=r;if(typeof Zone>"u")throw new N(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)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&n,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,u1(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Cy)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new N(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new N(909,!1)}run(r,t,n){return this._inner.run(r,t,n)}runTask(r,t,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,r,a1,vd,vd);try{return o.runTask(s,t,n)}finally{o.cancelTask(s)}}runGuarded(r,t,n){return this._inner.runGuarded(r,t,n)}runOutsideAngular(r){return this._outer.run(r)}},a1={};function Dy(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 c1(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function r(){Sy(()=>{e.callbackScheduled=!1,Av(e),e.isCheckStableRunning=!0,Dy(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{r()}):e._outer.run(()=>{r()}),Av(e)}function u1(e){let r=()=>{c1(e)},t=s1++;e._inner=e._inner.fork({name:"angular",properties:{[Cy]:!0,[lc]:t,[lc+t]:!0},onInvokeTask:(n,i,o,s,a,c)=>{if(l1(c))return n.invokeTask(o,s,a,c);try{return zw(e),n.invokeTask(o,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&r(),Gw(e)}},onInvoke:(n,i,o,s,a,c,u)=>{try{return zw(e),n.invoke(o,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!d1(c)&&r(),Gw(e)}},onHasTask:(n,i,o,s)=>{n.hasTask(o,s),i===o&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Av(e),Dy(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,o,s)=>(n.handleError(o,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Av(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function zw(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Gw(e){e._nesting--,Dy(e)}var dc=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ft;onMicrotaskEmpty=new Ft;onStable=new Ft;onError=new Ft;run(r,t,n){return r.apply(t,n)}runGuarded(r,t,n){return r.apply(t,n)}runOutsideAngular(r){return r()}runTask(r,t,n,i){return r.apply(t,n)}};function l1(e){return N_(e,"__ignore_ng_zone__")}function d1(e){return N_(e,"__scheduler_tick__")}function N_(e,r){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[r]===!0}var qe=class{_console=console;handleError(r){this._console.error("ERROR",r)}},Ut=new C("",{factory:()=>{let e=g(De),r=g(xe),t;return n=>{e.runOutsideAngular(()=>{r.destroyed&&!t?setTimeout(()=>{throw n}):(t??=r.get(qe),t.handleError(n))})}}}),O_={provide:Sr,useValue:()=>{let e=g(qe,{optional:!0})},multi:!0},f1=new C("",{factory:()=>{let e=g(fe).defaultView;if(!e)return;let r=g(Ut),t=o=>{r(o.reason),o.preventDefault()},n=o=>{o.error?r(o.error):r(new Error(o.message,{cause:o})),o.preventDefault()},i=()=>{e.addEventListener("unhandledrejection",t),e.addEventListener("error",n)};typeof Zone<"u"?Zone.root.run(i):i(),g(ze).onDestroy(()=>{e.removeEventListener("error",n),e.removeEventListener("unhandledrejection",t)})}});function h1(){return It([Pi(()=>{g(f1)})])}function Me(e,r){let[t,n,i]=Wm(e,r?.equal),o=t,s=o[Ve];return o.set=n,o.update=i,o.asReadonly=_c.bind(o),o}function _c(){let e=this[Ve];if(e.readonlyFn===void 0){let r=()=>this();r[Ve]=e,e.readonlyFn=r}return e.readonlyFn}var Ac=(()=>{class e{view;node;constructor(t,n){this.view=t,this.node=n}static __NG_ELEMENT_ID__=p1}return e})();function p1(){return new Ac($(),rt())}var Er=class{},Ls=new C("",{factory:()=>!0});var kd=new C(""),No=(()=>{class e{internalPendingTasks=g(Ir);scheduler=g(Er);errorHandler=g(Ut);add(){let t=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(t)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(t))}}run(t){let n=this.add();t().catch(this.errorHandler).finally(n)}static \u0275prov=m({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ud=(()=>{class e{static \u0275prov=m({token:e,providedIn:"root",factory:()=>new Rv})}return e})(),Rv=class{dirtyEffectCount=0;queues=new Map;add(r){this.enqueue(r),this.schedule(r)}schedule(r){r.dirty&&this.dirtyEffectCount++}remove(r){let t=r.zone,n=this.queues.get(t);n.has(r)&&(n.delete(r),r.dirty&&this.dirtyEffectCount--)}enqueue(r){let t=r.zone;this.queues.has(t)||this.queues.set(t,new Set);let n=this.queues.get(t);n.has(r)||n.add(r)}flush(){for(;this.dirtyEffectCount>0;){let r=!1;for(let[t,n]of this.queues)t===null?r||=this.flushQueue(n):r||=t.run(()=>this.flushQueue(n));r||(this.dirtyEffectCount=0)}}flushQueue(r){let t=!1;for(let n of r)n.dirty&&(this.dirtyEffectCount--,t=!0,n.run());return t}},yd=class{[Ve];constructor(r){this[Ve]=r}destroy(){this[Ve].destroy()}};function Rc(e,r){let t=r?.injector??g(de),n=r?.manualCleanup!==!0?t.get(ze):null,i,o=t.get(Ac,null,{optional:!0}),s=t.get(Er);return o!==null?(i=v1(o.view,s,e),n instanceof md&&n._lView===o.view&&(n=null)):i=y1(e,t.get(Ud),s),i.injector=t,n!==null&&(i.onDestroyFns=[n.onDestroy(()=>i.destroy())]),new yd(i)}var x_=T(v({},qm),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let e=uc(!1);try{Ym(this)}finally{uc(e)}},cleanup(){if(!this.cleanupFns?.length)return;let e=H(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],H(e)}}}),g1=T(v({},x_),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(po(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.scheduler.remove(this)}}),m1=T(v({},x_),{consumerMarkedDirty(){this.view[q]|=8192,Mo(this.view),this.notifier.notify(13)},destroy(){if(po(this),this.onDestroyFns!==null)for(let e of this.onDestroyFns)e();this.cleanup(),this.view[Oi]?.delete(this)}});function v1(e,r,t){let n=Object.create(m1);return n.view=e,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=r,n.fn=L_(n,t),e[Oi]??=new Set,e[Oi].add(n),n.consumerMarkedDirty(n),n}function y1(e,r,t){let n=Object.create(g1);return n.fn=L_(n,e),n.scheduler=r,n.notifier=t,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function L_(e,r){return()=>{r(t=>(e.cleanupFns??=[]).push(t))}}function Hs(e){return{toString:e}.toString()}var jd="__parameters__";function w1(e){return function(...t){if(e){let n=e(...t);for(let i in n)this[i]=n[i]}}}function yA(e,r,t){return Hs(()=>{let n=w1(r);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,u,l){let d=c.hasOwnProperty(jd)?c[jd]:Object.defineProperty(c,jd,{value:[]})[jd];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),c}}return i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var mf=jv(yA("Inject",e=>({token:e})),-1),oi=jv(yA("Optional"),8);function _1(e){return typeof e=="function"}function EA(e,r,t,n){r!==null?r.applyValueToInputSignal(r,n):e[t]=n}var Kd=class{previousValue;currentValue;firstChange;constructor(r,t,n){this.previousValue=r,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}},Uo=(()=>{let e=()=>SA;return e.ngInherit=!0,e})();function SA(e){return e.type.prototype.ngOnChanges&&(e.setInput=R1),A1}function A1(){let e=DA(this),r=e?.current;if(r){let t=e.previous;if(t===Li)e.previous=r;else for(let n in r)t[n]=r[n];e.current=null,this.ngOnChanges(r)}}function R1(e,r,t,n,i){let o=this.declaredInputs[n],s=DA(e)||M1(e,{previous:Li,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[o];a[o]=new Kd(u&&u.currentValue,t,c===Li),EA(e,r,i,t)}var CA="__ngSimpleChanges__";function DA(e){return e[CA]||null}function M1(e,r){return e[CA]=r}var P_=[];var Ee=function(e,r=null,t){for(let n=0;n<P_.length;n++){let i=P_[n];i(e,r,t)}},he=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(he||{});function N1(e,r,t){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=r.type.prototype;if(n){let s=SA(r);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}i&&(t.preOrderHooks??=[]).push(0-e,i),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}function IA(e,r){for(let t=r.directiveStart,n=r.directiveEnd;t<n;t++){let o=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=o;s&&(e.contentHooks??=[]).push(-t,s),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),c&&(e.viewHooks??=[]).push(-t,c),u&&((e.viewHooks??=[]).push(t,u),(e.viewCheckHooks??=[]).push(t,u)),l!=null&&(e.destroyHooks??=[]).push(t,l)}}function zd(e,r,t){TA(e,r,3,t)}function Gd(e,r,t,n){(e[q]&3)===t&&TA(e,r,t,n)}function Iy(e,r){let t=e[q];(t&3)===r&&(t&=16383,t+=1,e[q]=t)}function TA(e,r,t,n){let i=n!==void 0?e[wo]&65535:0,o=n??-1,s=r.length-1,a=0;for(let c=i;c<s;c++)if(typeof r[c+1]=="number"){if(a=r[c],n!=null&&a>=n)break}else r[c]<0&&(e[wo]+=65536),(a<o||o==-1)&&(O1(e,t,r,c),e[wo]=(e[wo]&4294901760)+c+2),c++}function F_(e,r){Ee(he.LifecycleHookStart,e,r);let t=H(null);try{r.call(e)}finally{H(t),Ee(he.LifecycleHookEnd,e,r)}}function O1(e,r,t,n){let i=t[n]<0,o=t[n+1],s=i?-t[n]:t[n],a=e[s];i?e[q]>>14<e[wo]>>16&&(e[q]&3)===r&&(e[q]+=16384,F_(a,o)):F_(a,o)}var Fs=-1,xo=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(r,t,n,i){this.factory=r,this.name=i,this.canSeeViewProviders=t,this.injectImpl=n}};function x1(e){return(e.flags&8)!==0}function L1(e){return(e.flags&16)!==0}function P1(e,r,t){let n=0;for(;n<t.length;){let i=t[n];if(typeof i=="number"){if(i!==0)break;n++;let o=t[n++],s=t[n++],a=t[n++];e.setAttribute(r,s,a,o)}else{let o=i,s=t[++n];F1(o)?e.setProperty(r,o,s):e.setAttribute(r,o,s),n++}}return n}function bA(e){return e===3||e===4||e===6}function F1(e){return e.charCodeAt(0)===64}function ks(e,r){if(!(r===null||r.length===0))if(e===null||e.length===0)e=r.slice();else{let t=-1;for(let n=0;n<r.length;n++){let i=r[n];typeof i=="number"?t=i:t===0||(t===-1||t===2?k_(e,t,i,null,r[++n]):k_(e,t,i,null,null))}}return e}function k_(e,r,t,n,i){let o=0,s=e.length;if(r===-1)s=-1;else for(;o<e.length;){let a=e[o++];if(typeof a=="number"){if(a===r){s=-1;break}else if(a>r){s=o-1;break}}}for(;o<e.length;){let a=e[o];if(typeof a=="number")break;if(a===t){i!==null&&(e[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(e.splice(s,0,r),o=s+1),e.splice(o++,0,t),i!==null&&e.splice(o++,0,i)}function wA(e){return e!==Fs}function Zd(e){return e&32767}function k1(e){return e>>16}function Qd(e,r){let t=k1(e),n=r;for(;t>0;)n=n[bo],t--;return n}var xy=!0;function Jd(e){let r=xy;return xy=e,r}var U1=256,_A=U1-1,AA=5,j1=0,Tr={};function $1(e,r,t){let n;typeof t=="string"?n=t.charCodeAt(0)||0:t.hasOwnProperty(Io)&&(n=t[Io]),n==null&&(n=t[Io]=j1++);let i=n&_A,o=1<<i;r.data[e+(i>>AA)]|=o}function Xd(e,r){let t=RA(e,r);if(t!==-1)return t;let n=r[V];n.firstCreatePass&&(e.injectorIndex=r.length,Ty(n.data,e),Ty(r,null),Ty(n.blueprint,null));let i=mE(e,r),o=e.injectorIndex;if(wA(i)){let s=Zd(i),a=Qd(i,r),c=a[V].data;for(let u=0;u<8;u++)r[o+u]=a[s+u]|c[s+u]}return r[o+8]=i,o}function Ty(e,r){e.push(0,0,0,0,0,0,0,0,r)}function RA(e,r){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||r[e.injectorIndex+8]===null?-1:e.injectorIndex}function mE(e,r){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let t=0,n=null,i=r;for(;i!==null;){if(n=LA(i),n===null)return Fs;if(t++,i=i[bo],n.injectorIndex!==-1)return n.injectorIndex|t<<16}return Fs}function Ly(e,r,t){$1(e,r,t)}function B1(e,r){if(r==="class")return e.classes;if(r==="style")return e.styles;let t=e.attrs;if(t){let n=t.length,i=0;for(;i<n;){let o=t[i];if(bA(o))break;if(o===0)i=i+2;else if(typeof o=="number")for(i++;i<n&&typeof t[i]=="string";)i++;else{if(o===r)return t[i+1];i=i+2}}}return null}function MA(e,r,t){if(t&8||e!==void 0)return e;Td(r,"NodeInjector")}function NA(e,r,t,n){if(t&8&&n===void 0&&(n=null),(t&3)===0){let i=e[Qr],o=Pt(void 0);try{return i?i.get(r,n,t&8):Uv(r,n,t&8)}finally{Pt(o)}}return MA(n,r,t)}function OA(e,r,t,n=0,i){if(e!==null){if(r[q]&2048&&!(n&2)){let s=G1(e,r,t,n,Tr);if(s!==Tr)return s}let o=xA(e,r,t,n,Tr);if(o!==Tr)return o}return NA(r,t,n,i)}function xA(e,r,t,n,i){let o=V1(t);if(typeof o=="function"){if(!gy(r,e,n))return n&1?MA(i,t,n):NA(r,t,n,i);try{let s;if(s=o(n),s==null&&!(n&8))Td(t);else return s}finally{my()}}else if(typeof o=="number"){let s=null,a=RA(e,r),c=Fs,u=n&1?r[Tt][kt]:null;for((a===-1||n&4)&&(c=a===-1?mE(e,r):r[a+8],c===Fs||!j_(n,!1)?a=-1:(s=r[V],a=Zd(c),r=Qd(c,r)));a!==-1;){let l=r[V];if(U_(o,a,l.data)){let d=H1(a,r,t,s,n,u);if(d!==Tr)return d}c=r[a+8],c!==Fs&&j_(n,r[V].data[a+8]===u)&&U_(o,a,r)?(s=l,a=Zd(c),r=Qd(c,r)):a=-1}}return i}function H1(e,r,t,n,i,o){let s=r[V],a=s.data[e+8],c=n==null?ei(a)&&xy:n!=s&&(a.type&3)!==0,u=i&1&&o===a,l=Wd(a,s,t,c,u);return l!==null?Pc(r,s,l,a,i):Tr}function Wd(e,r,t,n,i){let o=e.providerIndexes,s=r.data,a=o&1048575,c=e.directiveStart,u=e.directiveEnd,l=o>>20,d=n?a:a+l,h=i?a+l:u;for(let p=d;p<h;p++){let E=s[p];if(p<c&&t===E||p>=c&&E.type===t)return p}if(i){let p=s[c];if(p&&Dr(p)&&p.type===t)return c}return null}function Pc(e,r,t,n,i){let o=e[t],s=r.data;if(o instanceof xo){let a=o;if(a.resolving)throw kv("");let c=Jd(a.canSeeViewProviders);a.resolving=!0;let u=s[t].type||s[t],l,d=a.injectImpl?Pt(a.injectImpl):null,h=gy(e,n,0);try{o=e[t]=a.factory(void 0,i,s,e,n),r.firstCreatePass&&t>=n.directiveStart&&N1(t,s[t],r)}finally{d!==null&&Pt(d),Jd(c),a.resolving=!1,my()}}return o}function V1(e){if(typeof e=="string")return e.charCodeAt(0)||0;let r=e.hasOwnProperty(Io)?e[Io]:void 0;return typeof r=="number"?r>=0?r&_A:z1:r}function U_(e,r,t){let n=1<<e;return!!(t[r+(e>>AA)]&n)}function j_(e,r){return!(e&2)&&!(e&1&&r)}var Oo=class{_tNode;_lView;constructor(r,t){this._tNode=r,this._lView=t}get(r,t,n){return OA(this._tNode,this._lView,r,So(n),t)}};function z1(){return new Oo(rt(),$())}function ke(e){return Hs(()=>{let r=e.prototype.constructor,t=r[ac]||Py(r),n=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==n;){let o=i[ac]||Py(i);if(o&&o!==t)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Py(e){return Mv(e)?()=>{let r=Py(dt(e));return r&&r()}:Ni(e)}function G1(e,r,t,n,i){let o=e,s=r;for(;o!==null&&s!==null&&s[q]&2048&&!Os(s);){let a=xA(o,s,t,n|2,Tr);if(a!==Tr)return a;let c=o.parent;if(!c){let u=s[Kv];if(u){let l=u.get(t,Tr,n&-5);if(l!==Tr)return l}c=LA(s),s=s[bo]}o=c}return i}function LA(e){let r=e[V],t=r.type;return t===2?r.declTNode:t===1?e[kt]:null}function Hc(e){return B1(rt(),e)}function W1(){return Vs(rt(),$())}function Vs(e,r){return new wr(Gn(e,r))}var wr=(()=>{class e{nativeElement;constructor(t){this.nativeElement=t}static __NG_ELEMENT_ID__=W1}return e})();function PA(e){return e instanceof wr?e.nativeElement:e}function q1(){return this._results[Symbol.iterator]()}var ef=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 X}constructor(r=!1){this._emitDistinctChangesOnly=r}get(r){return this._results[r]}
4map(r){return this._results.map(r)}filter(r){return this._results.filter(r)}find(r){return this._results.find(r)}reduce(r,t){return this._results.reduce(r,t)}forEach(r){this._results.forEach(r)}some(r){return this._results.some(r)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(r,t){this.dirty=!1;let n=Jw(r);(this._changesDetected=!Qw(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(r){this._onDirty=r}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=q1};function FA(e){return(e.flags&128)===128}var vE=(function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e})(vE||{}),kA=new Map,Y1=0;function K1(){return Y1++}function Z1(e){kA.set(e[Jr],e)}function Fy(e){kA.delete(e[Jr])}var $_="__ngContext__";function Us(e,r){Xr(r)?(e[$_]=r[Jr],Z1(r)):e[$_]=r}function UA(e){return $A(e[Ms])}function jA(e){return $A(e[Sn])}function $A(e){for(;e!==null&&!zn(e);)e=e[Sn];return e}var ky;function yE(e){ky=e}function BA(){if(ky!==void 0)return ky;if(typeof document<"u")return document;throw new N(210,!1)}var Vc=new C("",{factory:()=>Q1}),Q1="ng";var vf=new C(""),bt=new C("",{providedIn:"platform",factory:()=>"unknown"});var zs=new C("",{factory:()=>g(fe).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var EE=(()=>{class e{static \u0275prov=m({token:e,providedIn:"root",factory:()=>{let t=new e;return t.store=J1(g(fe),g(Vc)),t}});store={};onSerializeCallbacks={};get(t,n){return this.store[t]!==void 0?this.store[t]:n}set(t,n){this.store[t]=n}remove(t){delete this.store[t]}hasKey(t){return this.store.hasOwnProperty(t)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(t,n){this.onSerializeCallbacks[t]=n}toJson(){for(let t in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(t))try{this.store[t]=this.onSerializeCallbacks[t]()}catch(n){console.warn("Exception in onSerialize callback: ",n)}return JSON.stringify(this.store).replace(/</g,"\\u003C").replace(/\//g,"\\u002F")}}return e})();function J1(e,r){let t=e.getElementById(r+"-state");if(t?.tagName==="SCRIPT"&&t.textContent)try{return JSON.parse(t.textContent)}catch(n){console.warn("Exception while restoring TransferState for app "+r,n)}return{}}var HA="r";var VA="di";var SE=new C(""),zA=!1,GA=new C("",{factory:()=>zA});var yf=new C("");var B_=new WeakMap;function X1(e,r){if(e==null||typeof e!="object")return;let t=B_.get(e);t||(t=new WeakSet,B_.set(e,t)),t.add(r)}var e$=(e,r,t,n)=>{};function t$(e,r,t,n){e$(e,r,t,n)}function Ef(e){return(e.flags&32)===32}var n$=()=>null;function WA(e,r,t=!1){return n$(e,r,t)}function qA(e,r){let t=e.contentQueries;if(t!==null){let n=H(null);try{for(let i=0;i<t.length;i+=2){let o=t[i],s=t[i+1];if(s!==-1){let a=e.data[s];Tc(o),a.contentQueries(2,r[s],s)}}}finally{H(n)}}}function Uy(e,r,t){Tc(0);let n=H(null);try{r(e,t)}finally{H(n)}}function CE(e,r,t){if(Qv(r)){let n=H(null);try{let i=r.directiveStart,o=r.directiveEnd;for(let s=i;s<o;s++){let a=e.data[s];if(a.contentQueries){let c=t[s];a.contentQueries(1,c,s)}}}finally{H(n)}}}var Yn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(Yn||{});var $d;function r$(){if($d===void 0&&($d=null,yn.trustedTypes))try{$d=yn.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return $d}function Sf(e){return r$()?.createHTML(e)||e}var Bd;function YA(){if(Bd===void 0&&(Bd=null,yn.trustedTypes))try{Bd=yn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Bd}function H_(e){return YA()?.createHTML(e)||e}function V_(e){return YA()?.createScriptURL(e)||e}var ri=class{changingThisBreaksApplicationSecurity;constructor(r){this.changingThisBreaksApplicationSecurity=r}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ed})`}},jy=class extends ri{getTypeName(){return"HTML"}},$y=class extends ri{getTypeName(){return"Style"}}
vendor: 4,210 bytes, line 4
4,By=class extends ri{getTypeName(){return"Script"}},Hy=class extends ri{getTypeName(){return"URL"}},Vy=class extends ri{getTypeName(){return"ResourceURL"}};function jt(e){return e instanceof ri?e.changingThisBreaksApplicationSecurity:e}function Zn(e,r){let t=KA(e);if(t!=null&&t!==r){if(t==="ResourceURL"&&r==="URL")return!0;throw new Error(`Required a safe ${r}, got a ${t} (see ${Ed})`)}return t===r}function KA(e){return e instanceof ri&&e.getTypeName()||null}function DE(e){return new jy(e)}function IE(e){return new $y(e)}function TE(e){return new By(e)}function bE(e){return new Hy(e)}function wE(e){return new Vy(e)}function i$(e){let r=new Gy(e);return o$()?new zy(r):r}var zy=class{inertDocumentHelper;constructor(r){this.inertDocumentHelper=r}getInertBodyElement(r){r="<body><remove></remove>"+r;try{let t=new window.DOMParser().parseFromString(Sf(r),"text/html").body;return t===null?this.inertDocumentHelper.getInertBodyElement(r):(t.firstChild?.remove(),t)}catch(t){return null}}},Gy=class{defaultDoc;inertDocument;constructor(r){this.defaultDoc=r,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(r){let t=this.inertDocument.createElement("template");return t.innerHTML=Sf(r),t}};function o$(){try{return!!new window.DOMParser().parseFromString(Sf(""),"text/html")}catch(e){return!1}}var s$=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zc(e){return e=String(e),e.match(s$)?e:"unsafe:"+e}function si(e){let r={};for(let t of e.split(","))r[t]=!0;return r}function Gc(...e){let r={};for(let t of e)for(let n in t)t.hasOwnProperty(n)&&(r[n]=!0);return r}var ZA=si("area,br,col,hr,img,wbr"),QA=si("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),JA=si("rp,rt"),a$=Gc(JA,QA),c$=Gc(QA,si("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")),u$=Gc(JA,si("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")),z_=Gc(ZA,c$,u$,a$),XA=si("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),l$=si("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"),d$=si("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"),f$=Gc(XA,l$,d$),h$=si("script,style,template"),Wy=class{sanitizedSomething=!1;buf=[];sanitizeChildren(r){let t=r.firstChild,n=!0,i=[];for(;t;){if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild){i.push(t),t=m$(t);continue}for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=g$(t);if(o){t=o;break}t=i.pop()}}return this.buf.join("")}startElement(r){let t=G_(r).toLowerCase();if(!z_.hasOwnProperty(t))return this.sanitizedSomething=!0,!h$.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);let n=r.attributes;for(let i=0;i<n.length;i++){let o=n.item(i),s=o.name,a=s.toLowerCase();if(!f$.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let c=o.value;
vendor: 44,405 bytes, line 4
4XA[a]&&(c=zc(c)),this.buf.push(" ",s,'="',W_(c),'"')}return this.buf.push(">"),!0}endElement(r){let t=G_(r).toLowerCase();z_.hasOwnProperty(t)&&!ZA.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(r){this.buf.push(W_(r))}};function p$(e,r){return(e.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function g$(e){let r=e.nextSibling;if(r&&e!==r.previousSibling)throw eR(r);return r}function m$(e){let r=e.firstChild;if(r&&p$(e,r))throw eR(r);return r}function G_(e){let r=e.nodeName;return typeof r=="string"?r:"FORM"}function eR(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var v$=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,y$=/([^\#-~ |!])/g;function W_(e){return e.replace(/&/g,"&").replace(v$,function(r){let t=r.charCodeAt(0),n=r.charCodeAt(1);return"&#"+((t-55296)*1024+(n-56320)+65536)+";"}).replace(y$,function(r){return"&#"+r.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}var Hd;function Cf(e,r){let t=null;try{Hd=Hd||i$(e);let n=r?String(r):"";t=Hd.getInertBodyElement(n);let i=5,o=n;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,n=o,o=t.innerHTML,t=Hd.getInertBodyElement(n)}while(n!==o);let a=new Wy().sanitizeChildren(q_(t)||t);return Sf(a)}finally{if(t){let n=q_(t)||t;for(;n.firstChild;)n.firstChild.remove()}}}function q_(e){return"content"in e&&E$(e)?e.content:null}function E$(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var S$=/^>|^->|<!--|-->|--!>|<!-$/g,C$=/(<|>)/g,D$="\u200B$1\u200B";function I$(e){return e.replace(S$,r=>r.replace(C$,D$))}function T$(e,r){return e.createText(r)}function b$(e,r,t){e.setValue(r,t)}function w$(e,r){return e.createComment(I$(r))}function tR(e,r,t){return e.createElement(r,t)}function tf(e,r,t,n,i){e.insertBefore(r,t,n,i)}function nR(e,r,t){e.appendChild(r,t)}function Y_(e,r,t,n,i){n!==null?tf(e,r,t,n,i):nR(e,r,t)}function rR(e,r,t,n){e.removeChild(null,r,t,n)}function _$(e,r,t){e.setAttribute(r,"style",t)}function A$(e,r,t){t===""?e.removeAttribute(r,"class"):e.setAttribute(r,"class",t)}function iR(e,r,t){let{mergedAttrs:n,classes:i,styles:o}=t;n!==null&&P1(e,r,n),i!==null&&A$(e,r,i),o!==null&&_$(e,r,o)}var rn=(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[e.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",e})(rn||{});function R$(e){let r=Df();return r?H_(r.sanitize(rn.HTML,e)||""):Zn(e,"HTML")?H_(jt(e)):Cf(BA(),En(e))}function M$(e){let r=Df();return r?r.sanitize(rn.STYLE,e)||"":Zn(e,"Style")?jt(e):En(e)}function oR(e){let r=Df();return r?r.sanitize(rn.URL,e)||"":Zn(e,"URL")?jt(e):zc(En(e))}function sR(e){let r=Df();if(r)return V_(r.sanitize(rn.RESOURCE_URL,e)||"");if(Zn(e,"ResourceURL"))return V_(jt(e));throw new N(904,!1)}var N$={embed:{src:!0},frame:{src:!0},iframe:{src:!0},media:{src:!0},base:{href:!0},link:{href:!0},object:{data:!0,codebase:!0}};function O$(e,r){return N$[e.toLowerCase()]?.[r.toLowerCase()]===!0?sR:oR}function _E(e,r,t){return O$(r,t)(e)}function Df(){let e=$();return e&&e[Vn].sanitizer}function x$(e){return e.ownerDocument.defaultView}function L$(e){return e.ownerDocument}function aR(e){return e instanceof Function?e():e}function P$(e,r,t){let n=e.length;for(;;){let i=e.indexOf(r,t);if(i===-1)return i;if(i===0||e.charCodeAt(i-1)<=32){let o=r.length;if(i+o===n||e.charCodeAt(i+o)<=32)return i}t=i+1}}var cR="ng-template";function F$(e,r,t,n){let i=0;if(n){for(;i<r.length&&typeof r[i]=="string";i+=2)if(r[i]==="class"&&P$(r[i+1].toLowerCase(),t,0)!==-1)return!0}else if(AE(e))return!1;if(i=r.indexOf(1,i),i>-1){let o;for(;++i<r.length&&typeof(o=r[i])=="string";)if(o.toLowerCase()===t)return!0}return!1}function AE(e){return e.type===4&&e.value!==cR}function k$(e,r,t){let n=e.type===4&&!t?cR:e.value;return r===n}function U$(e,r,t){let n=4,i=e.attrs,o=i!==null?B$(i):0,s=!1;for(let a=0;a<r.length;a++){let c=r[a];if(typeof c=="number"){if(!s&&!qn(n)&&!qn(c))return!1;if(s&&qn(c))continue;s=!1,n=c|n&1;continue}if(!s)if(n&4){if(n=2|n&1,c!==""&&!k$(e,c,t)||c===""&&r.length===1){if(qn(n))return!1;s=!0}}else if(n&8){if(i===null||!F$(e,i,c,t)){if(qn(n))return!1;s=!0}}else{let u=r[++a],l=j$(c,i,AE(e),t);if(l===-1){if(qn(n))return!1;s=!0;continue}if(u!==""){let d;if(l>o?d="":d=i[l+1].toLowerCase(),n&2&&u!==d){if(qn(n))return!1;s=!0}}}}return qn(n)||s}function qn(e){return(e&1)===0}function j$(e,r,t,n){if(r===null)return-1;let i=0;if(n||!t){let o=!1;for(;i<r.length;){let s=r[i];if(s===e)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=r[++i];for(;typeof a=="string";)a=r[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return H$(r,e)}function uR(e,r,t=!1){for(let n=0;n<r.length;n++)if(U$(e,r[n],t))return!0;return!1}function $$(e){let r=e.attrs;if(r!=null){let t=r.indexOf(5);if((t&1)===0)return r[t+1]}return null}function B$(e){for(let r=0;r<e.length;r++){let t=e[r];if(bA(t))return r}return e.length}function H$(e,r){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){let n=e[t];if(typeof n=="number")return-1;if(n===r)return t;t++}return-1}function V$(e,r){e:for(let t=0;t<r.length;t++){let n=r[t];if(e.length===n.length){for(let i=0;i<e.length;i++)if(e[i]!==n[i])continue e;return!0}}return!1}function K_(e,r){return e?":not("+r.trim()+")":r}function z$(e){let r=e[0],t=1,n=2,i="",o=!1;for(;t<e.length;){let s=e[t];if(typeof s=="string")if(n&2){let a=e[++t];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!qn(s)&&(r+=K_(o,i),i=""),n=s,o=o||!qn(n);t++}return i!==""&&(r+=K_(o,i)),r}function G$(e){return e.map(z$).join(",")}function W$(e){let r=[],t=[],n=1,i=2;for(;n<e.length;){let o=e[n];if(typeof o=="string")i===2?o!==""&&r.push(o,e[++n]):i===8&&t.push(o);else{if(!qn(i))break;i=o}n++}return t.length&&r.push(1,...t),r}var ct={};function RE(e,r,t,n,i,o,s,a,c,u,l){let d=_e+n,h=d+i,p=q$(d,h),E=typeof u=="function"?u():u;return p[V]={type:e,blueprint:p,template:t,queries:null,viewQuery:a,declTNode:r,data:p.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,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:E,incompleteFirstPass:!1,ssrId:l}}function q$(e,r){let t=[];for(let n=0;n<r;n++)t.push(n<e?null:ct);return t}function Y$(e){let r=e.tView;return r===null||r.incompleteFirstPass?e.tView=RE(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):r}function ME(e,r,t,n,i,o,s,a,c,u,l){let d=r.blueprint.slice();return d[Hn]=i,d[q]=n|4|128|8|64|1024,(u!==null||e&&e[q]&2048)&&(d[q]|=2048),ty(d),d[tt]=d[bo]=e,d[$e]=t,d[Vn]=s||e&&e[Vn],d[Ie]=a||e&&e[Ie],d[Qr]=c||e&&e[Qr]||null,d[kt]=o,d[Jr]=K1(),d[To]=l,d[Kv]=u,d[Tt]=r.type==2?e[Tt]:d,d}function K$(e,r,t){let n=Gn(r,e),i=Y$(t),o=e[Vn].rendererFactory,s=NE(e,ME(e,i,null,lR(t),n,r,null,o.createRenderer(n,t),null,null,null));return e[r.index]=s}function lR(e){let r=16;return e.signals?r=4096:e.onPush&&(r=64),r}function dR(e,r,t,n){if(t===0)return-1;let i=r.length;for(let o=0;o<t;o++)r.push(n),e.blueprint.push(n),e.data.push(null);return i}function NE(e,r){return e[Ms]?e[Yv][Sn]=r:e[Ms]=r,e[Yv]=r,r}function Z$(e=1){fR(Re(),$(),Wn()+e,!1)}function fR(e,r,t,n){if(!n)if((r[q]&3)===3){let o=e.preOrderCheckHooks;o!==null&&zd(r,o,t)}else{let o=e.preOrderHooks;o!==null&&Gd(r,o,0,t)}ji(t)}var If=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(If||{});function qy(e,r,t,n){let i=H(null);try{let[o,s,a]=e.inputs[t],c=null;(s&If.SignalBased)!==0&&(c=r[o][Ve]),c!==null&&c.transformFn!==void 0?n=c.transformFn(n):a!==null&&(n=a.call(r,n)),e.setInput!==null?e.setInput(r,c,n,t,o):EA(r,c,o,n)}finally{H(i)}}var br=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(br||{}),Q$;function OE(e,r){return Q$(e,r)}var Yue=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Yy=new WeakMap,Nc=new WeakSet;function J$(e,r){let t=Yy.get(e);if(!t||t.length===0)return;let n=r.parentNode,i=r.previousSibling;for(let o=t.length-1;o>=0;o--){let s=t[o],a=s.parentNode;s===r?(t.splice(o,1),Nc.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(i&&s===i||a&&n&&a!==n)&&(t.splice(o,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function X$(e,r){let t=Yy.get(e);t?t.includes(r)||t.push(r):Yy.set(e,[r])}var Lo=new Set,Tf=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Tf||{}),_r=new C(""),Z_=new Set;function Tn(e){Z_.has(e)||(Z_.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var xE=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=m({token:e,providedIn:"root",factory:()=>new e})}return e})(),hR=[0,1,2,3],pR=(()=>{class e{ngZone=g(De);scheduler=g(Er);errorHandler=g(qe,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){g(_r,{optional:!0})}execute(){let t=this.sequences.size>0;t&&Ee(he.AfterRenderHooksStart),this.executing=!0;for(let n of hR)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[n]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[n];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}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(7),this.deferredRegistrations.clear(),t&&Ee(he.AfterRenderHooksEnd)}register(t){let{view:n}=t;n!==void 0?((n[_o]??=[]).push(t),Mo(n),n[q]|=8192):this.executing?this.deferredRegistrations.add(t):this.addSequence(t)}addSequence(t){this.sequences.add(t),this.scheduler.notify(7)}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}maybeTrace(t,n){return n?n.run(Tf.AFTER_NEXT_RENDER,t):t()}static \u0275prov=m({token:e,providedIn:"root",factory:()=>new e})}return e})(),nf=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(r,t,n,i,o,s=null){this.impl=r,this.hooks=t,this.view=n,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let r=this.view?.[_o];r&&(this.view[_o]=r.filter(t=>t!==this))}};function eB(e,r){let t=r?.injector??g(de);return Tn("NgAfterRender"),gR(e,t,r,!1)}function bf(e,r){let t=r?.injector??g(de);return Tn("NgAfterNextRender"),gR(e,t,r,!0)}function tB(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function gR(e,r,t,n){let i=r.get(xE);i.impl??=r.get(pR);let o=r.get(_r,null,{optional:!0}),s=t?.manualCleanup!==!0?r.get(ze):null,a=r.get(Ac,null,{optional:!0}),c=new nf(i.impl,tB(e),a?.view,n,s,o?.snapshot(null));return i.impl.register(c),c}var mR=new C("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:g(xe)})});function vR(e,r,t){let n=e.get(mR);if(Array.isArray(r))for(let i of r)n.queue.add(i),t?.detachedLeaveAnimationFns?.push(i);else n.queue.add(r),t?.detachedLeaveAnimationFns?.push(r);n.scheduler&&n.scheduler(e)}function nB(e,r){let t=e.get(mR);if(r.detachedLeaveAnimationFns){for(let n of r.detachedLeaveAnimationFns)t.queue.delete(n);r.detachedLeaveAnimationFns=void 0}}function rB(e,r){for(let[t,n]of r)vR(e,n.animateFns)}function Q_(e,r,t,n){let i=e?.[ki]?.enter;r!==null&&i&&i.has(t.index)&&rB(n,i)}function Ps(e,r,t,n,i,o,s,a){if(i!=null){let c,u=!1;zn(i)?c=i:Xr(i)&&(u=!0,i=i[Hn]);let l=Cn(i);e===0&&n!==null?(Q_(a,n,o,t),s==null?nR(r,n,l):tf(r,n,l,s||null,!0)):e===1&&n!==null?(Q_(a,n,o,t),tf(r,n,l,s||null,!0),J$(o,l)):e===2?(a?.[ki]?.leave?.has(o.index)&&X$(o,l),Nc.delete(l),J_(a,o,t,d=>{if(Nc.has(l)){Nc.delete(l);return}rR(r,l,u,d)})):e===3&&(Nc.delete(l),J_(a,o,t,()=>{r.destroyNode(l)})),c!=null&&pB(r,e,t,c,o,n,s)}}function iB(e,r){yR(e,r),r[Hn]=null,r[kt]=null}function oB(e,r,t,n,i,o){n[Hn]=i,n[kt]=r,_f(e,n,t,1,i,o)}function yR(e,r){r[Vn].changeDetectionScheduler?.notify(9),_f(e,r,r[Ie],2,null,null)}function sB(e){let r=e[Ms];if(!r)return by(e[V],e);for(;r;){let t=null;if(Xr(r))t=r[Ms];else{let n=r[Be];n&&(t=n)}if(!t){for(;r&&!r[Sn]&&r!==e;)Xr(r)&&by(r[V],r),r=r[tt];r===null&&(r=e),Xr(r)&&by(r[V],r),t=r&&r[Sn]}r=t}}function LE(e,r){let t=e[Ao],n=t.indexOf(r);t.splice(n,1)}function wf(e,r){if(Ro(r))return;let t=r[Ie];t.destroyNode&&_f(e,r,t,3,null,null),sB(r)}function by(e,r){if(Ro(r))return;let t=H(null);try{r[q]&=-129,r[q]|=256,r[nn]&&po(r[nn]),uB(e,r),cB(e,r),r[V].type===1&&r[Ie].destroy();let n=r[Fi];if(n!==null&&zn(r[tt])){n!==r[tt]&&LE(n,r);let i=r[Cr];i!==null&&i.detachView(e)}Fy(r)}finally{H(t)}}function J_(e,r,t,n){let i=e?.[ki];if(i==null||i.leave==null||!i.leave.has(r.index))return n(!1);e&&Lo.add(e[Jr]),vR(t,()=>{if(i.leave&&i.leave.has(r.index)){let s=i.leave.get(r.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(a),aB(e,n)}else e&&Lo.delete(e[Jr]),n(!1)},i)}function aB(e,r){let t=e[ki]?.running;if(t){t.then(()=>{e[ki].running=void 0,Lo.delete(e[Jr]),r(!0)});return}r(!1)}function cB(e,r){let t=e.cleanup,n=r[Rs];if(t!==null)for(let s=0;s<t.length-1;s+=2)if(typeof t[s]=="string"){let a=t[s+3];a>=0?n[a]():n[-a].unsubscribe(),s+=2}else{let a=n[t[s+1]];t[s].call(a)}n!==null&&(r[Rs]=null);let i=r[Kr];if(i!==null){r[Kr]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=r[Oi];if(o!==null){r[Oi]=null;for(let s of o)s.destroy()}}function uB(e,r){let t;if(e!=null&&(t=e.destroyHooks)!=null)for(let n=0;n<t.length;n+=2){let i=r[t[n]];if(!(i instanceof xo)){let o=t[n+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],c=o[s+1];Ee(he.LifecycleHookStart,a,c);try{c.call(a)}finally{Ee(he.LifecycleHookEnd,a,c)}}else{Ee(he.LifecycleHookStart,i,o);try{o.call(i)}finally{Ee(he.LifecycleHookEnd,i,o)}}}}}function ER(e,r,t){return lB(e,r.parent,t)}function lB(e,r,t){let n=r;for(;n!==null&&n.type&168;)r=n,n=r.parent;if(n===null)return t[Hn];if(ei(n)){let{encapsulation:i}=e.data[n.directiveStart+n.componentOffset];if(i===Yn.None||i===Yn.Emulated)return null}return Gn(n,t)}function SR(e,r,t){return fB(e,r,t)}function dB(e,r,t){return e.type&40?Gn(e,t):null}var fB=dB,X_;function PE(e,r,t,n){let i=ER(e,n,r),o=r[Ie],s=n.parent||r[kt],a=SR(s,n,r);if(i!=null)if(Array.isArray(t))for(let c=0;c<t.length;c++)Y_(o,i,t[c],a,!1);else Y_(o,i,t,a,!1);X_!==void 0&&X_(o,n,r,t,i)}function Oc(e,r){if(r!==null){let t=r.type;if(t&3)return Gn(r,e);if(t&4)return Ky(-1,e[r.index]);if(t&8){let n=r.child;if(n!==null)return Oc(e,n);{let i=e[r.index];return zn(i)?Ky(-1,i):Cn(i)}}else{if(t&128)return Oc(e,r.next);if(t&32)return OE(r,e)()||Cn(e[r.index]);{let n=CR(e,r);if(n!==null){if(Array.isArray(n))return n[0];let i=xi(e[Tt]);return Oc(i,n)}else return Oc(e,r.next)}}}return null}function CR(e,r){if(r!==null){let n=e[Tt][kt],i=r.projection;return n.projection[i]}return null}function Ky(e,r){let t=Be+e+1;if(t<r.length){let n=r[t],i=n[V].firstChild;if(i!==null)return Oc(n,i)}return r[Ui]}function FE(e,r,t,n,i,o,s){for(;t!=null;){let a=n[Qr];if(t.type===128){t=t.next;continue}let c=n[t.index],u=t.type;if(s&&r===0&&(c&&Us(Cn(c),n),t.flags|=2),!Ef(t))if(u&8)FE(e,r,t.child,n,i,o,!1),Ps(r,e,a,i,c,t,o,n);else if(u&32){let l=OE(t,n),d;for(;d=l();)Ps(r,e,a,i,d,t,o,n);Ps(r,e,a,i,c,t,o,n)}else u&16?DR(e,r,n,t,i,o):Ps(r,e,a,i,c,t,o,n);t=s?t.projectionNext:t.next}}function _f(e,r,t,n,i,o){FE(t,n,e.firstChild,r,i,o,!1)}function hB(e,r,t){let n=r[Ie],i=ER(e,t,r),o=t.parent||r[kt],s=SR(o,t,r);DR(n,0,r,t,i,s)}function DR(e,r,t,n,i,o){let s=t[Tt],c=s[kt].projection[n.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];Ps(r,e,t[Qr],i,l,n,o,t)}else{let u=c,l=s[tt];FA(n)&&(u.flags|=128),FE(e,r,u,l,i,o,!0)}}function pB(e,r,t,n,i,o,s){let a=n[Ui],c=Cn(n);a!==c&&Ps(r,e,t,o,a,i,s);for(let u=Be;u<n.length;u++){let l=n[u];_f(l[V],l,e,r,o,a)}}function gB(e,r,t,n,i){if(r)i?e.addClass(t,n):e.removeClass(t,n);else{let o=n.indexOf("-")===-1?void 0:br.DashCase;i==null?e.removeStyle(t,n,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=br.Important),e.setStyle(t,n,i,o))}}function IR(e,r,t,n,i){let o=Wn(),s=n&2;try{ji(-1),s&&r.length>_e&&fR(e,r,_e,!1);let a=s?he.TemplateUpdateStart:he.TemplateCreateStart;Ee(a,i,t),t(n,i)}finally{ji(o);let a=s?he.TemplateUpdateEnd:he.TemplateCreateEnd;Ee(a,i,t)}}function Af(e,r,t){CB(e,r,t),(t.flags&64)===64&&DB(e,r,t)}function Wc(e,r,t=Gn){let n=r.localNames;if(n!==null){let i=r.index+1;for(let o=0;o<n.length;o+=2){let s=n[o+1],a=s===-1?t(r,e):e[s];e[i++]=a}}}function mB(e,r,t,n){let o=n.get(GA,zA)||t===Yn.ShadowDom||t===Yn.ExperimentalIsolatedShadowDom,s=e.selectRootElement(r,o);return vB(s),s}function vB(e){yB(e)}var yB=()=>null;function EB(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function TR(e,r,t,n,i,o){let s=r[V];if($E(e,s,r,t,n)){ei(e)&&SB(r,e.index);return}e.type&3&&(t=EB(t)),bR(e,r,t,n,i,o)}function bR(e,r,t,n,i,o){if(e.type&3){let s=Gn(e,r);n=o!=null?o(n,e.value||"",t):n,i.setProperty(s,t,n)}else e.type&12}function SB(e,r){let t=Dn(r,e);t[q]&16||(t[q]|=64)}function CB(e,r,t){let n=t.directiveStart,i=t.directiveEnd;ei(t)&&K$(r,t,e.data[n+t.componentOffset]),e.firstCreatePass||Xd(t,r);let o=t.initialInputs;for(let s=n;s<i;s++){let a=e.data[s],c=Pc(r,e,s,t);if(Us(c,r),o!==null&&wB(r,s-n,c,a,t,o),Dr(a)){let u=Dn(t.index,r);u[$e]=Pc(r,e,s,t)}}}function DB(e,r,t){let n=t.directiveStart,i=t.directiveEnd,o=t.index,s=C_();try{ji(o);for(let a=n;a<i;a++){let c=e.data[a],u=r[a];Od(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&IB(c,u)}}finally{ji(-1),Od(s)}}function IB(e,r){e.hostBindings!==null&&e.hostBindings(1,r)}function kE(e,r){let t=e.directiveRegistry,n=null;if(t)for(let i=0;i<t.length;i++){let o=t[i];uR(r,o.selectors,!1)&&(n??=[],Dr(o)?n.unshift(o):n.push(o))}return n}function TB(e,r,t,n,i,o){let s=Gn(e,r);bB(r[Ie],s,o,e.value,t,n,i)}function bB(e,r,t,n,i,o,s){if(o==null)e.removeAttribute(r,i,t);else{let a=s==null?En(o):s(o,n||"",i);e.setAttribute(r,i,a,t)}}function wB(e,r,t,n,i,o){let s=o[r];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];qy(n,t,c,u)}}function UE(e,r,t,n,i){let o=_e+t,s=r[V],a=i(s,r,e,n,t);r[o]=a,xs(e,!0);let c=e.type===2;return c?(iR(r[Ie],a,e),(f_()===0||Ns(e))&&Us(a,r),h_()):Us(a,r),Fd()&&(!c||!Ef(e))&&PE(s,r,a,e),e}function jE(e){let r=e;return dy()?fy():(r=r.parent,xs(r,!1)),r}function _B(e,r){let t=e[Qr];if(!t)return;let n;try{n=t.get(Ut,null)}catch(i){n=null}n?.(r)}function $E(e,r,t,n,i){let o=e.inputs?.[n],s=e.hostDirectiveInputs?.[n],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=r.data[u];qy(d,t[u],l,i),a=!0}if(o)for(let c of o){let u=t[c],l=r.data[c];qy(l,u,n,i),a=!0}return a}function AB(e,r){let t=Dn(r,e),n=t[V];RB(n,t);let i=t[Hn];i!==null&&t[To]===null&&(t[To]=WA(i,t[Qr])),Ee(he.ComponentStart);try{BE(n,t,t[$e])}finally{Ee(he.ComponentEnd,t[$e])}}function RB(e,r){for(let t=r.length;t<e.blueprint.length;t++)r.push(e.blueprint[t])}function BE(e,r,t){Ld(r);try{let n=e.viewQuery;n!==null&&Uy(1,n,t);let i=e.template;i!==null&&IR(e,r,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),r[Cr]?.finishViewCreation(e),e.staticContentQueries&&qA(e,r),e.staticViewQueries&&Uy(2,e.viewQuery,t);let o=e.components;o!==null&&MB(r,o)}catch(n){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),n}finally{r[q]&=-5,Pd()}}function MB(e,r){for(let t=0;t<r.length;t++)AB(e,r[t])}function qc(e,r,t,n){let i=H(null);try{let o=r.tView,a=e[q]&4096?4096:16,c=ME(e,o,t,a,null,r,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),u=e[r.index];c[Fi]=u;let l=e[Cr];return l!==null&&(c[Cr]=l.createEmbeddedView(o)),BE(o,c,t),c}finally{H(i)}}function js(e,r){return!r||r.firstChild===null||FA(e)}function Fc(e,r,t,n,i=!1){for(;t!==null;){if(t.type===128){t=i?t.projectionNext:t.next;continue}let o=r[t.index];o!==null&&n.push(Cn(o)),zn(o)&&wR(o,n);let s=t.type;if(s&8)Fc(e,r,t.child,n);else if(s&32){let a=OE(t,r),c;for(;c=a();)n.push(c)}else if(s&16){let a=CR(r,t);if(Array.isArray(a))n.push(...a);else{let c=xi(r[Tt]);Fc(c[V],c,a,n,!0)}}t=i?t.projectionNext:t.next}return n}function wR(e,r){for(let t=Be;t<e.length;t++){let n=e[t],i=n[V].firstChild;i!==null&&Fc(n[V],n,i,r)}e[Ui]!==e[Hn]&&r.push(e[Ui])}function _R(e){if(e[_o]!==null){for(let r of e[_o])r.impl.addSequence(r);e[_o].length=0}}var AR=[];function NB(e){return e[nn]??OB(e)}function OB(e){let r=AR.pop()??Object.create(LB);return r.lView=e,r}function xB(e){e.lView[nn]!==e&&(e.lView=null,AR.push(e))}var LB=T(v({},Ei),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Mo(e.lView)},consumerOnSignalRead(){this.lView[nn]=this}});function PB(e){let r=e[nn]??Object.create(FB);return r.lView=e,r}var FB=T(v({},Ei),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let r=xi(e.lView);for(;r&&!RR(r[V]);)r=xi(r);r&&ny(r)},consumerOnSignalRead(){this.lView[nn]=this}});function RR(e){return e.type!==2}function MR(e){if(e[Oi]===null)return;let r=!0;for(;r;){let t=!1;for(let n of e[Oi])n.dirty&&(t=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));r=t&&!!(e[q]&8192)}}var kB=100;function NR(e,r=0){let n=e[Vn].rendererFactory,i=!1;i||n.begin?.();try{UB(e,r)}finally{i||n.end?.()}}function UB(e,r){let t=hy();try{uc(!0),Zy(e,r);let n=0;for(;Dc(e);){if(n===kB)throw new N(103,!1);n++,Zy(e,1)}}finally{uc(t)}}function jB(e,r,t,n){if(Ro(r))return;let i=r[q],o=!1,s=!1;Ld(r);let a=!0,c=null,u=null;o||(RR(e)?(u=NB(r),c=Ci(u)):bl()===null?(a=!1,u=PB(r),c=Ci(u)):r[nn]&&(po(r[nn]),r[nn]=null));try{ty(r),y_(e.bindingStartIndex),t!==null&&IR(e,r,t,2,n);let l=(i&3)===3;if(!o)if(l){let p=e.preOrderCheckHooks;p!==null&&zd(r,p,null)}else{let p=e.preOrderHooks;p!==null&&Gd(r,p,0,null),Iy(r,0)}if(s||$B(r),MR(r),OR(r,0),e.contentQueries!==null&&qA(e,r),!o)if(l){let p=e.contentCheckHooks;p!==null&&zd(r,p)}else{let p=e.contentHooks;p!==null&&Gd(r,p,1),Iy(r,1)}HB(e,r);let d=e.components;d!==null&&LR(r,d,0);let h=e.viewQuery;if(h!==null&&Uy(2,h,n),!o)if(l){let p=e.viewCheckHooks;p!==null&&zd(r,p)}else{let p=e.viewHooks;p!==null&&Gd(r,p,2),Iy(r,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),r[_d]){for(let p of r[_d])p();r[_d]=null}o||(_R(r),r[q]&=-73)}catch(l){throw o||Mo(r),l}finally{u!==null&&(ho(u,c),a&&xB(u)),Pd()}}function OR(e,r){for(let t=UA(e);t!==null;t=jA(t))for(let n=Be;n<t.length;n++){let i=t[n];xR(i,r)}}function $B(e){for(let r=UA(e);r!==null;r=jA(r)){if(!(r[q]&2))continue;let t=r[Ao];for(let n=0;n<t.length;n++){let i=t[n];ny(i)}}}function BB(e,r,t){Ee(he.ComponentStart);let n=Dn(r,e);try{xR(n,t)}finally{Ee(he.ComponentEnd,n[$e])}}function xR(e,r){Rd(e)&&Zy(e,r)}function Zy(e,r){let n=e[V],i=e[q],o=e[nn],s=!!(r===0&&i&16);if(s||=!!(i&64&&r===0),s||=!!(i&1024),s||=!!(o?.dirty&&Ha(o)),s||=!1,o&&(o.dirty=!1),e[q]&=-9217,s)jB(n,e,n.template,e[$e]);else if(i&8192){let a=H(null);try{MR(e),OR(e,1);let c=n.components;c!==null&&LR(e,c,1),_R(e)}finally{H(a)}}}function LR(e,r,t){for(let n=0;n<r.length;n++)BB(e,r[n],t)}function HB(e,r){let t=e.hostBindingOpCodes;if(t!==null)try{for(let n=0;n<t.length;n++){let i=t[n];if(i<0)ji(~i);else{let o=i,s=t[++n],a=t[++n];S_(s,o);let c=r[o];Ee(he.HostBindingsUpdateStart,c);try{a(2,c)}finally{Ee(he.HostBindingsUpdateEnd,c)}}}}finally{ji(-1)}}function HE(e,r){let t=hy()?64:1088;for(e[Vn].changeDetectionScheduler?.notify(r);e;){e[q]|=t;let n=xi(e);if(Os(e)&&!n)return e;e=n}return null}function PR(e,r,t,n){return[e,!0,0,r,null,n,null,t,null,null]}function FR(e,r){let t=Be+r;if(t<e.length)return e[t]}function Yc(e,r,t,n=!0){let i=r[V];if(VB(i,r,e,t),n){let s=Ky(t,e),a=r[Ie],c=a.parentNode(e[Ui]);c!==null&&oB(i,e[kt],a,r,c,s)}let o=r[To];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function kR(e,r){let t=kc(e,r);return t!==void 0&&wf(t[V],t),t}function kc(e,r){if(e.length<=Be)return;let t=Be+r,n=e[t];if(n){let i=n[Fi];i!==null&&i!==e&&LE(i,n),r>0&&(e[t-1][Sn]=n[Sn]);let o=mc(e,Be+r);iB(n[V],n);let s=o[Cr];s!==null&&s.detachView(o[V]),n[tt]=null,n[Sn]=null,n[q]&=-129}return n}function VB(e,r,t,n){let i=Be+n,o=t.length;n>0&&(t[i-1][Sn]=r),n<o-Be?(r[Sn]=t[i],$v(t,Be+n,r)):(t.push(r),r[Sn]=null),r[tt]=t;let s=r[Fi];s!==null&&t!==s&&UR(s,r);let a=r[Cr];a!==null&&a.insertView(e),Md(r),r[q]|=128}function UR(e,r){let t=e[Ao],n=r[tt];if(Xr(n))e[q]|=2;else{let i=n[tt][Tt];r[Tt]!==i&&(e[q]|=2)}t===null?e[Ao]=[r]:t.push(r)}var $i=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let r=this._lView,t=r[V];return Fc(t,r,t.firstChild,[])}constructor(r,t){this._lView=r,this._cdRefInjectingView=t}get context(){return this._lView[$e]}set context(r){this._lView[$e]=r}get destroyed(){return Ro(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let r=this._lView[tt];if(zn(r)){let t=r[Sc],n=t?t.indexOf(this):-1;n>-1&&(kc(r,n),mc(t,n))}this._attachedToViewContainer=!1}wf(this._lView[V],this._lView)}onDestroy(r){ry(this._lView,r)}markForCheck(){HE(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[q]&=-129}reattach(){Md(this._lView),this._lView[q]|=128}detectChanges(){this._lView[q]|=1024,NR(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new N(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let r=Os(this._lView),t=this._lView[Fi];t!==null&&!r&&LE(t,this._lView),yR(this._lView[V],this._lView)}attachToAppRef(r){if(this._attachedToViewContainer)throw new N(902,!1);this._appRef=r;let t=Os(this._lView),n=this._lView[Fi];n!==null&&!t&&UR(n,this._lView),Md(this._lView)}};var Kn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=zB;constructor(t,n,i){this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,i){let o=qc(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:i});return new $i(o)}}return e})();function zB(){return Rf(rt(),$())}function Rf(e,r){return e.type&4?new Kn(r,e,Vs(e,r)):null}function Gs(e,r,t,n,i){let o=e.data[r];if(o===null)o=GB(e,r,t,n,i),E_()&&(o.flags|=32);else if(o.type&64){o.type=t,o.value=n,o.attrs=i;let s=m_();o.injectorIndex=s===null?-1:s.injectorIndex}return xs(o,!0),o}function GB(e,r,t,n,i){let o=ly(),s=dy(),a=s?o:o&&o.parent,c=e.data[r]=qB(e,a,t,r,n,i);return WB(e,c,o,s),c}function WB(e,r,t,n){e.firstChild===null&&(e.firstChild=r),t!==null&&(n?t.child==null&&r.parent!==null&&(t.child=r):t.next===null&&(t.next=r,r.prev=t))}function qB(e,r,t,n,i,o){let s=r?r.injectorIndex:-1,a=0;return ay()&&(a|=128),{type:t,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,namespace:vy(),attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:r,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function YB(e){let r=e[Zv]??[],n=e[tt][Ie],i=[];for(let o of r)o.data[VA]!==void 0?i.push(o):KB(o,n);e[Zv]=i}function KB(e,r){let t=0,n=e.firstChild;if(n){let i=e.data[HA];for(;t<i;){let o=n.nextSibling;rR(r,n,!1),n=o,t++}}}var ZB=()=>null,QB=()=>null;function rf(e,r){return ZB(e,r)}function jR(e,r,t){return QB(e,r,t)}var $R=class{},Mf=class{},Qy=class{resolveComponentFactory(r){throw new N(917,!1)}},Kc=class{static NULL=new Qy},ii=class{},Ws=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>JB()}return e})();function JB(){let e=$(),r=rt(),t=Dn(r.index,e);return(Xr(t)?t:e)[Ie]}var BR=(()=>{class e{static \u0275prov=m({token:e,providedIn:"root",factory:()=>null})}return e})();var qd={},Jy=class{injector;parentInjector;constructor(r,t){this.injector=r,this.parentInjector=t}get(r,t,n){let i=this.injector.get(r,qd,n);return i!==qd||t===qd?i:this.parentInjector.get(r,t,n)}};function of(e,r,t){let n=t?e.styles:null,i=t?e.classes:null,o=0;if(r!==null)for(let s=0;s<r.length;s++){let a=r[s];if(typeof a=="number")o=a;else if(o==1)i=Sd(i,a);else if(o==2){let c=a,u=r[++s];n=Sd(n,c+": "+u+";")}}t?e.styles=n:e.stylesWithoutHost=n,t?e.classes=i:e.classesWithoutHost=i}function se(e,r=0){let t=$();if(t===null)return f(e,r);let n=rt();return OA(n,t,dt(e),r)}function VE(){let e="invalid";throw new Error(e)}function HR(e,r,t,n,i){let o=n===null?null:{"":-1},s=i(e,t);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}tH(e,r,t,a,o,c,u)}o!==null&&n!==null&&XB(t,n,o)}function XB(e,r,t){let n=e.localNames=[];for(let i=0;i<r.length;i+=2){let o=t[r[i+1]];if(o==null)throw new N(-301,!1);n.push(r[i],o)}}function eH(e,r,t){r.componentOffset=t,(e.components??=[]).push(r.index)}function tH(e,r,t,n,i,o,s){let a=n.length,c=null;for(let h=0;h<a;h++){let p=n[h];c===null&&Dr(p)&&(c=p,eH(e,t,h)),Ly(Xd(t,r),e,p.type)}aH(t,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let h=0;h<a;h++){let p=n[h];p.providersResolver&&p.providersResolver(p)}let u=!1,l=!1,d=dR(e,r,a,null);a>0&&(t.directiveToIndex=new Map);for(let h=0;h<a;h++){let p=n[h];if(t.mergedAttrs=ks(t.mergedAttrs,p.hostAttrs),rH(e,t,r,d,p),sH(d,p,i),s!==null&&s.has(p)){let[D,b]=s.get(p);t.directiveToIndex.set(p.type,[d,D+t.directiveStart,b+t.directiveStart])}else(o===null||!o.has(p))&&t.directiveToIndex.set(p.type,d);p.contentQueries!==null&&(t.flags|=4),(p.hostBindings!==null||p.hostAttrs!==null||p.hostVars!==0)&&(t.flags|=64);let E=p.type.prototype;!u&&(E.ngOnChanges||E.ngOnInit||E.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),u=!0),!l&&(E.ngOnChanges||E.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),l=!0),d++}nH(e,t,o)}function nH(e,r,t){for(let n=r.directiveStart;n<r.directiveEnd;n++){let i=e.data[n];if(t===null||!t.has(i))eA(0,r,i,n),eA(1,r,i,n),nA(r,n,!1);else{let o=t.get(i);tA(0,r,o,n),tA(1,r,o,n),nA(r,n,!0)}}}function eA(e,r,t,n){let i=e===0?t.inputs:t.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;e===0?s=r.inputs??={}:s=r.outputs??={},s[o]??=[],s[o].push(n),VR(r,o)}}function tA(e,r,t,n){let i=e===0?t.inputs:t.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;e===0?a=r.hostDirectiveInputs??={}:a=r.hostDirectiveOutputs??={},a[s]??=[],a[s].push(n,o),VR(r,s)}}function VR(e,r){r==="class"?e.flags|=8:r==="style"&&(e.flags|=16)}function nA(e,r,t){let{attrs:n,inputs:i,hostDirectiveInputs:o}=e;if(n===null||!t&&i===null||t&&o===null||AE(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<n.length;){let c=n[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!t&&i.hasOwnProperty(c)){let u=i[c];for(let l of u)if(l===r){s??=[],s.push(c,n[a+1]);break}}else if(t&&o.hasOwnProperty(c)){let u=o[c];for(let l=0;l<u.length;l+=2)if(u[l]===r){s??=[],s.push(u[l+1],n[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function rH(e,r,t,n,i){e.data[n]=i;let o=i.factory||(i.factory=Ni(i.type,!0)),s=new xo(o,Dr(i),se,null);e.blueprint[n]=s,t[n]=s,iH(e,r,n,dR(e,t,i.hostVars,ct),i)}function iH(e,r,t,n,i){let o=i.hostBindings;if(o){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~r.index;oH(s)!=a&&s.push(a),s.push(t,n,o)}}function oH(e){let r=e.length;for(;r>0;){let t=e[--r];if(typeof t=="number"&&t<0)return t}return 0}function sH(e,r,t){if(t){if(r.exportAs)for(let n=0;n<r.exportAs.length;n++)t[r.exportAs[n]]=e;Dr(r)&&(t[""]=e)}}function aH(e,r,t){e.flags|=1,e.directiveStart=r,e.directiveEnd=r+t,e.providerIndexes=r}function zE(e,r,t,n,i,o,s,a){let c=r[V],u=c.consts,l=In(u,s),d=Gs(c,e,t,n,l);return o&&HR(c,r,d,In(u,a),i),d.mergedAttrs=ks(d.mergedAttrs,d.attrs),d.attrs!==null&&of(d,d.attrs,!1),d.mergedAttrs!==null&&of(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function GE(e,r){IA(e,r),Qv(r)&&e.queries.elementEnd(r)}function cH(e,r,t,n,i,o){let s=r.consts,a=In(s,i),c=Gs(r,e,t,n,a);if(c.mergedAttrs=ks(c.mergedAttrs,c.attrs),o!=null){let u=In(s,o);c.localNames=[];for(let l=0;l<u.length;l+=2)c.localNames.push(u[l],-1)}return c.attrs!==null&&of(c,c.attrs,!1),c.mergedAttrs!==null&&of(c,c.mergedAttrs,!0),r.queries!==null&&r.queries.elementStart(r,c),c}function WE(e){return GR(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function zR(e,r){if(Array.isArray(e))for(let t=0;t<e.length;t++)r(e[t]);else{let t=e[Symbol.iterator](),n;for(;!(n=t.next()).done;)r(n.value)}}function GR(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Zc(e,r,t){return e[r]=t}function uH(e,r){return e[r]}function Gt(e,r,t){if(t===ct)return!1;let n=e[r];return Object.is(n,t)?!1:(e[r]=t,!0)}function Uc(e,r,t,n){let i=Gt(e,r,t);return Gt(e,r+1,n)||i}function WR(e,r,t,n,i){let o=Uc(e,r,t,n);return Gt(e,r+2,i)||o}function lH(e,r,t,n,i,o){let s=Uc(e,r,t,n);return Uc(e,r+2,i,o)||s}function Yd(e,r,t){return function n(i){let o=n.__ngNativeEl__;o!==void 0&&X1(i,o);let s=ei(e)?Dn(e.index,r):r;HE(s,5);let a=r[$e],c=rA(r,a,t,i),u=n.__ngNextListenerFn__;for(;u;)c=rA(r,a,u,i)&&c,u=u.__ngNextListenerFn__;return c}}function rA(e,r,t,n){let i=H(null);try{return Ee(he.OutputStart,r,t),t(n)!==!1}catch(o){return _B(e,o),!1}finally{Ee(he.OutputEnd,r,t),H(i)}}function qR(e,r,t,n,i,o,s,a){let c=Ns(e),u=!1,l=null;if(!n&&c&&(l=fH(r,t,o,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=Gn(e,t),h=n?n(d):d;t$(t,h,o,a),n||(a.__ngNativeEl__=d);let p=i.listen(h,o,a);if(!dH(o)){let E=n?D=>n(Cn(D[e.index])):e.index;YR(E,r,t,o,a,p,!1)}}return u}function dH(e){return e.startsWith("animation")||e.startsWith("transition")}function fH(e,r,t,n){let i=e.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===t&&i[o+1]===n){let a=r[Rs],c=i[o+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(o+=2)}return null}function YR(e,r,t,n,i,o,s){let a=r.firstCreatePass?oy(r):null,c=iy(t),u=c.length;c.push(i,o),a&&a.push(n,e,u,(u+1)*(s?-1:1))}function iA(e,r,t,n,i,o){let s=r[t],a=r[V],u=a.data[t].outputs[n],d=s[u].subscribe(o);YR(e.index,a,r,i,o,d,!0)}var Xy=Symbol("BINDING");function KR(e){return e.debugInfo?.className||e.type.name||null}var sf=class extends Kc{ngModule;constructor(r){super(),this.ngModule=r}resolveComponentFactory(r){let t=Zr(r);return new Po(t,this.ngModule)}};function hH(e){return Object.keys(e).map(r=>{let[t,n,i]=e[r],o={propName:t,templateName:r,isSignal:(n&If.SignalBased)!==0};return i&&(o.transform=i),o})}function pH(e){return Object.keys(e).map(r=>({propName:e[r],templateName:r}))}function gH(e,r,t){let n=r instanceof xe?r:r?.injector;return n&&e.getStandaloneInjector!==null&&(n=e.getStandaloneInjector(n)||n),n?new Jy(t,n):t}function mH(e){let r=e.get(ii,null);if(r===null)throw new N(407,!1);let t=e.get(BR,null),n=e.get(Er,null),i=e.get(_r,null,{optional:!0});return{rendererFactory:r,sanitizer:t,changeDetectionScheduler:n,ngReflect:!1,tracingService:i}}function vH(e,r){let t=ZR(e);return tR(r,t,t==="svg"?Jv:t==="math"?s_:null)}function yH(e){if(e?.toLowerCase()==="script")throw new N(905,!1)}function ZR(e){return(e.selectors[0][0]||"div").toLowerCase()}var Po=class extends Mf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=hH(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=pH(this.componentDef.outputs),this.cachedOutputs}constructor(r,t){super(),this.componentDef=r,this.ngModule=t,this.componentType=r.type,this.selector=G$(r.selectors),this.ngContentSelectors=r.ngContentSelectors??[],this.isBoundToModule=!!t}create(r,t,n,i,o,s){Ee(he.DynamicComponentStart);let a=H(null);try{let c=this.componentDef,u=gH(c,i||this.ngModule,r),l=mH(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(KR(c),()=>this.createComponentRef(l,u,t,n,o,s)):this.createComponentRef(l,u,t,n,o,s)}finally{H(a)}}createComponentRef(r,t,n,i,o,s){let a=this.componentDef,c=EH(i,a,s,o),u=r.rendererFactory.createRenderer(null,a),l=i?mB(u,i,a.encapsulation,t):vH(a,u);yH(l?.tagName);let d=s?.some(oA)||o?.some(E=>typeof E!="function"&&E.bindings.some(oA)),h=ME(null,c,null,512|lR(a),null,null,r,u,t,null,WA(l,t,!0));h[_e]=l,Ld(h);let p=null;try{let E=zE(_e,h,2,"#host",()=>c.directiveRegistry,!0,0);iR(u,l,E),Us(l,h),Af(c,h,E),CE(c,E,h),GE(c,E),n!==void 0&&CH(E,this.ngContentSelectors,n),p=Dn(E.index,h),h[$e]=p[$e],BE(c,h,null)}catch(E){throw p!==null&&Fy(p),Fy(h),E}finally{Ee(he.DynamicComponentEnd),Pd()}return new af(this.componentType,h,!!d)}};function EH(e,r,t,n){let i=e?["ng-version","21.2.18"]:W$(r.selectors[0]),o=null,s=null,a=0;if(t)for(let l of t)a+=l[Xy].requiredVars,l.create&&(l.targetIdx=0,(o??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(n)for(let l=0;l<n.length;l++){let d=n[l];if(typeof d!="function")for(let h of d.bindings){a+=h[Xy].requiredVars;let p=l+1;h.create&&(h.targetIdx=p,(o??=[]).push(h)),h.update&&(h.targetIdx=p,(s??=[]).push(h))}}let c=[r];if(n)for(let l of n){let d=typeof l=="function"?l:l.type,h=Fv(d);c.push(h)}return RE(0,null,SH(o,s),1,a,c,null,null,null,[i],null)}function SH(e,r){return!e&&!r?null:t=>{if(t&1&&e)for(let n of e)n.create();if(t&2&&r)for(let n of r)n.update()}}function oA(e){let r=e[Xy].kind;return r==="input"||r==="twoWay"}var af=class extends $R{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(r,t,n){super(),this._rootLView=t,this._hasInputBindings=n,this._tNode=Ad(t[V],_e),this.location=Vs(this._tNode,t),this.instance=Dn(this._tNode.index,t)[$e],this.hostView=this.changeDetectorRef=new $i(t,void 0),this.componentType=r}setInput(r,t){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(r)&&Object.is(this.previousInputValues.get(r),t))return;let i=this._rootLView,o=$E(n,i[V],i,r,t);this.previousInputValues.set(r,t);let s=Dn(n.index,i);HE(s,1)}get injector(){return new Oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(r){this.hostView.onDestroy(r)}};function CH(e,r,t){let n=e.projection=[];for(let i=0;i<r.length;i++){let o=t[i];n.push(o!=null&&o.length?Array.from(o):null)}}var on=(()=>{class e{static __NG_ELEMENT_ID__=DH}return e})();function DH(){let e=rt();return QR(e,$())}var eE=class e extends on{_lContainer;_hostTNode;_hostLView;constructor(r,t,n){super(),this._lContainer=r,this._hostTNode=t,this._hostLView=n}get element(){return Vs(this._hostTNode,this._hostLView)}get injector(){return new Oo(this._hostTNode,this._hostLView)}get parentInjector(){let r=mE(this._hostTNode,this._hostLView);if(wA(r)){let t=Qd(r,this._hostLView),n=Zd(r),i=t[V].data[n+8];return new Oo(i,t)}else return new Oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(r){let t=sA(this._lContainer);return t!==null&&t[r]||null}get length(){return this._lContainer.length-Be}createEmbeddedView(r,t,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=rf(this._lContainer,r.ssrId),a=r.createEmbeddedViewImpl(t||{},o,s);return this.insertImpl(a,i,js(this._hostTNode,s)),a}createComponent(r,t,n,i,o,s,a){let c=r&&!_1(r),u;if(c)u=t;else{let b=t||{};u=b.index,n=b.injector,i=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef,s=b.directives,a=b.bindings}let l=c?r:new Po(Zr(r)),d=n||this.parentInjector;if(!o&&l.ngModule==null){let R=(c?d:this.parentInjector).get(xe,null);R&&(o=R)}let h=Zr(l.componentType??{}),p=rf(this._lContainer,h?.id??null),E=p?.firstChild??null,D=l.create(d,i,E,o,s,a);return this.insertImpl(D.hostView,u,js(this._hostTNode,p)),D}insert(r,t){return this.insertImpl(r,t,!0)}insertImpl(r,t,n){let i=r._lView;if(c_(i)){let a=this.indexOf(r);if(a!==-1)this.detach(a);else{let c=i[tt],u=new e(c,c[kt],c[tt]);u.detach(u.indexOf(r))}}let o=this._adjustIndex(t),s=this._lContainer;return Yc(s,i,o,n),r.attachToViewContainerRef(),$v(wy(s),o,r),r}move(r,t){return this.insert(r,t)}indexOf(r){let t=sA(this._lContainer);return t!==null?t.indexOf(r):-1}remove(r){let t=this._adjustIndex(r,-1),n=kc(this._lContainer,t);n&&(mc(wy(this._lContainer),t),wf(n[V],n))}detach(r){let t=this._adjustIndex(r,-1),n=kc(this._lContainer,t);return n&&mc(wy(this._lContainer),t)!=null?new $i(n):null}_adjustIndex(r,t=0){return r??this.length+t}};function sA(e){return e[Sc]}function wy(e){return e[Sc]||(e[Sc]=[])}function QR(e,r){let t,n=r[e.index];return zn(n)?t=n:(t=PR(n,r,null,e),r[e.index]=t,NE(r,t)),TH(t,r,e,n),new eE(t,e,r)}function IH(e,r){let t=e[Ie],n=t.createComment(""),i=Gn(r,e),o=t.parentNode(i);return tf(t,o,n,t.nextSibling(i),!1),n}var TH=_H,bH=()=>!1;function wH(e,r,t){return bH(e,r,t)}function _H(e,r,t,n){if(e[Ui])return;let i;t.type&8?i=Cn(n):i=IH(r,t),e[Ui]=i}var tE=class e{queryList;matches=null;constructor(r){this.queryList=r}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},nE=class e{queries;constructor(r=[]){this.queries=r}createEmbeddedView(r){let t=r.queries;if(t!==null){let n=r.contentQueries!==null?r.contentQueries[0]:t.length,i=[];for(let o=0;o<n;o++){let s=t.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new e(i)}return null}insertView(r){this.dirtyQueriesWithMatches(r)}detachView(r){this.dirtyQueriesWithMatches(r)}finishViewCreation(r){this.dirtyQueriesWithMatches(r)}dirtyQueriesWithMatches(r){for(let t=0;t<this.queries.length;t++)YE(r,t).matches!==null&&this.queries[t].setDirty()}},cf=class{flags;read;predicate;constructor(r,t,n=null){this.flags=t,this.read=n,typeof r=="string"?this.predicate=xH(r):this.predicate=r}},rE=class e{queries;constructor(r=[]){this.queries=r}elementStart(r,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(r,t)}elementEnd(r){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(r)}embeddedTView(r){let t=null;for(let n=0;n<this.length;n++){let i=t!==null?t.length:0,o=this.getByIndex(n).embeddedTView(r,i);o&&(o.indexInDeclarationView=n,t!==null?t.push(o):t=[o])}return t!==null?new e(t):null}template(r,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(r,t)}getByIndex(r){return this.queries[r]}get length(){return this.queries.length}track(r){this.queries.push(r)}},iE=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(r,t=-1){this.metadata=r,this._declarationNodeIndex=t}elementStart(r,t){this.isApplyingToNode(t)&&this.matchTNode(r,t)}elementEnd(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}template(r,t){this.elementStart(r,t)}embeddedTView(r,t){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,t),new e(this.metadata)):null}isApplyingToNode(r){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let t=this._declarationNodeIndex,n=r.parent;for(;n!==null&&n.type&8&&n.index!==t;)n=n.parent;return t===(n!==null?n.index:-1)}return this._appliesToNextNode}
vendor: 2,539 bytes, line 4
4matchTNode(r,t){let n=this.metadata.predicate;if(Array.isArray(n))for(let i=0;i<n.length;i++){let o=n[i];this.matchTNodeWithReadOption(r,t,AH(t,o)),this.matchTNodeWithReadOption(r,t,Wd(t,r,o,!1,!1))}else n===Kn?t.type&4&&this.matchTNodeWithReadOption(r,t,-1):this.matchTNodeWithReadOption(r,t,Wd(t,r,n,!1,!1))}matchTNodeWithReadOption(r,t,n){if(n!==null){let i=this.metadata.read;if(i!==null)if(i===wr||i===on||i===Kn&&t.type&4)this.addMatch(t.index,-2);else{let o=Wd(t,r,i,!1,!1);o!==null&&this.addMatch(t.index,o)}else this.addMatch(t.index,n)}}addMatch(r,t){this.matches===null?this.matches=[r,t]:this.matches.push(r,t)}};function AH(e,r){let t=e.localNames;if(t!==null){for(let n=0;n<t.length;n+=2)if(t[n]===r)return t[n+1]}return null}function RH(e,r){return e.type&11?Vs(e,r):e.type&4?Rf(e,r):null}function MH(e,r,t,n){return t===-1?RH(r,e):t===-2?NH(e,r,n):Pc(e,e[V],t,r)}function NH(e,r,t){if(t===wr)return Vs(r,e);if(t===Kn)return Rf(r,e);if(t===on)return QR(r,e)}function JR(e,r,t,n){let i=r[Cr].queries[n];if(i.matches===null){let o=e.data,s=t.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let u=s[c];if(u<0)a.push(null);else{let l=o[u];a.push(MH(r,l,s[c+1],t.metadata.read))}}i.matches=a}return i.matches}function oE(e,r,t,n){let i=e.queries.getByIndex(t),o=i.matches;if(o!==null){let s=JR(e,r,i,t);for(let a=0;a<o.length;a+=2){let c=o[a];if(c>0)n.push(s[a/2]);else{let u=o[a+1],l=r[-c];for(let d=Be;d<l.length;d++){let h=l[d];h[Fi]===h[tt]&&oE(h[V],h,u,n)}if(l[Ao]!==null){let d=l[Ao];for(let h=0;h<d.length;h++){let p=d[h];oE(p[V],p,u,n)}}}}}return n}function qE(e,r){return e[Cr].queries[r].queryList}function XR(e,r,t){let n=new ef((t&4)===4);return d_(e,r,n,n.destroy),(r[Cr]??=new nE).queries.push(new tE(n))-1}function eM(e,r,t){let n=Re();return n.firstCreatePass&&(tM(n,new cf(e,r,t),-1),(r&2)===2&&(n.staticViewQueries=!0)),XR(n,$(),r)}function OH(e,r,t,n){let i=Re();if(i.firstCreatePass){let o=rt();tM(i,new cf(r,t,n),o.index),LH(i,e),(t&2)===2&&(i.staticContentQueries=!0)}return XR(i,$(),t)}function xH(e){return e.split(",").map(r=>r.trim())}function tM(e,r,t){e.queries===null&&(e.queries=new rE),e.queries.track(new iE(r,t))}function LH(e,r){let t=e.contentQueries||(e.contentQueries=[]),n=t.length?t[t.length-1]:-1;r!==n&&t.push(e.queries.length-1,r)}function YE(e,r){return e.queries.getByIndex(r)}function nM(e,r){let t=e[V],n=YE(t,r);return n.crossesNgTemplate?oE(t,e,r,[]):JR(t,e,n,r)}function KE(e,r,t){let n,i=Ga(()=>{n._dirtyCounter();let o=PH(n,e);if(r&&o===void 0)throw new N(-951,!1);return o}
vendor: 20,575 bytes, line 4
4);return n=i[Ve],n._dirtyCounter=Me(0),n._flatValue=void 0,i}function ZE(e){return KE(!0,!1,e)}function QE(e){return KE(!0,!0,e)}function rM(e){return KE(!1,!1,e)}function iM(e,r){let t=e[Ve];t._lView=$(),t._queryIndex=r,t._queryList=qE(t._lView,r),t._queryList.onDirty(()=>t._dirtyCounter.update(n=>n+1))}function PH(e,r){let t=e._lView,n=e._queryIndex;if(t===void 0||n===void 0||t[q]&4)return r?void 0:Dt;let i=qE(t,n),o=nM(t,n);return i.reset(o,PA),r?i.first:i._changesDetected||e._flatValue===void 0?e._flatValue=i.toArray():e._flatValue}var Fo=class{},qs=class{};var uf=class extends Fo{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new sf(this);constructor(r,t,n,i=!0){super(),this.ngModuleType=r,this._parent=t;let o=Pv(r);this._bootstrapComponents=aR(o.bootstrap),this._r3Injector=yy(r,t,[{provide:Fo,useValue:this},{provide:Kc,useValue:this.componentFactoryResolver},...n],fc(r),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let r=this._r3Injector;!r.destroyed&&r.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(r){this.destroyCbs.push(r)}},lf=class extends qs{moduleType;constructor(r){super(),this.moduleType=r}create(r){return new uf(this.moduleType,r,[])}};var jc=class extends Fo{injector;componentFactoryResolver=new sf(this);instance=null;constructor(r){super();let t=new Do([...r.providers,{provide:Fo,useValue:this},{provide:Kc,useValue:this.componentFactoryResolver}],r.parent||Ec(),r.debugName,new Set(["environment"]));this.injector=t,r.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(r){this.injector.onDestroy(r)}};function Ys(e,r,t=null){return new jc({providers:e,parent:r,debugName:t,runEnvironmentInitializers:!0}).injector}var FH=(()=>{class e{_injector;cachedInjectors=new Map;constructor(t){this._injector=t}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){let n=Vv(!1,t.type),i=n.length>0?Ys([n],this._injector,""):null;this.cachedInjectors.set(t,i)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(let t of this.cachedInjectors.values())t!==null&&t.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=m({token:e,providedIn:"environment",factory:()=>new e(f(xe))})}return e})();function JE(e){return Hs(()=>{let r=oM(e),t=T(v({},r),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===vE.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:r.standalone?i=>i.get(FH).getOrCreateStandaloneInjector(t):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Yn.Emulated,styles:e.styles||Dt,_:null,schemas:e.schemas||null,tView:null,id:""});r.standalone&&Tn("NgStandalone"),sM(t);let n=e.dependencies;return t.directiveDefs=aA(n,kH),t.pipeDefs=aA(n,qw),t.id=$H(t),t})}function kH(e){return Zr(e)||Fv(e)}function U(e){return Hs(()=>({type:e.type,bootstrap:e.bootstrap||Dt,declarations:e.declarations||Dt,imports:e.imports||Dt,exports:e.exports||Dt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function UH(e,r){if(e==null)return Li;let t={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],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=If.None,c=null),t[o]=[n,a,c],r[o]=s}return t}function jH(e){if(e==null)return Li;let r={};for(let t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}function Wt(e){return Hs(()=>{let r=oM(e);return sM(r),r})}function bn(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 oM(e){let r={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputConfig:e.inputs||Li,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Dt,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:UH(e.inputs,r),outputs:jH(e.outputs),debugInfo:null}}function sM(e){e.features?.forEach(r=>r(e))}function aA(e,r){return e?()=>{let t=typeof e=="function"?e():e,n=[];for(let i of t){let o=r(i);o!==null&&n.push(o)}return n}:null}function $H(e){let r=0,t=typeof e.consts=="function"?"":e.consts,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,t,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 n.join("|"))r=Math.imul(31,r)+o.charCodeAt(0)<<0;return r+=2147483648,"c"+r}function BH(e){return Object.getPrototypeOf(e.prototype).constructor}function aM(e){let r=BH(e.type),t=!0,n=[e];for(;r&&r!==Function.prototype&&r!==Object.prototype;){let i,o=Object.hasOwn(r,pc)?r[pc]:void 0,s=Object.hasOwn(r,gc)?r[gc]:void 0;if(Dr(e))i=o??s;else{if(o)throw new N(903,!1);i=s}if(i){if(t){n.push(i);let c=e;c.inputs=_y(e.inputs),c.declaredInputs=_y(e.declaredInputs),c.outputs=_y(e.outputs);let u=i.hostBindings;u&&WH(e,u);let l=i.viewQuery,d=i.contentQueries;if(l&&zH(e,l),d&&GH(e,d),HH(e,i),Ww(e.outputs,i.outputs),Dr(i)&&i.data.animation){let h=e.data;h.animation=(h.animation||[]).concat(i.data.animation)}}let a=i.features;if(a)for(let c=0;c<a.length;c++){let u=a[c];u&&u.ngInherit&&u(e),u===aM&&(t=!1)}}r=Object.getPrototypeOf(r)}VH(n)}function HH(e,r){for(let t in r.inputs){if(!r.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;let n=r.inputs[t];n!==void 0&&(e.inputs[t]=n,e.declaredInputs[t]=r.declaredInputs[t])}}function VH(e){let r=0,t=null;for(let n=e.length-1;n>=0;n--){let i=e[n];i.hostVars=r+=i.hostVars,i.hostAttrs=ks(i.hostAttrs,t=ks(t,i.hostAttrs))}}function _y(e){return e===Li?{}:e===Dt?[]:e}function zH(e,r){let t=e.viewQuery;t?e.viewQuery=(n,i)=>{r(n,i),t(n,i)}:e.viewQuery=r}function GH(e,r){let t=e.contentQueries;t?e.contentQueries=(n,i,o)=>{r(n,i,o),t(n,i,o)}:e.contentQueries=r}function WH(e,r){let t=e.hostBindings;t?e.hostBindings=(n,i)=>{r(n,i),t(n,i)}:e.hostBindings=r}function cM(e,r,t,n,i,o,s,a){if(t.firstCreatePass){e.mergedAttrs=ks(e.mergedAttrs,e.attrs);let l=e.tView=RE(2,e,i,o,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,t.consts,null);t.queries!==null&&(t.queries.template(t,e),l.queries=t.queries.embeddedTView(e))}a&&(e.flags|=a),xs(e,!1);let c=YH(t,r,e,n);Fd()&&PE(t,r,c,e),Us(c,r);let u=PR(c,r,c,e);r[n+_e]=u,NE(r,u),wH(u,e,r)}function qH(e,r,t,n,i,o,s,a,c,u,l){let d=t+_e,h;return r.firstCreatePass?(h=Gs(r,d,4,s||null,a||null),Nd()&&HR(r,e,h,In(r.consts,u),kE),IA(r,h)):h=r.data[d],cM(h,e,r,t,n,i,o,c),Ns(h)&&Af(r,e,h),u!=null&&Wc(e,h,l),h}function $c(e,r,t,n,i,o,s,a,c,u,l){let d=t+_e,h;if(r.firstCreatePass){if(h=Gs(r,d,4,s||null,a||null),u!=null){let p=In(r.consts,u);h.localNames=[];for(let E=0;E<p.length;E+=2)h.localNames.push(p[E],-1)}}else h=r.data[d];return cM(h,e,r,t,n,i,o,c),u!=null&&Wc(e,h,l),h}function uM(e,r,t,n,i,o,s,a){let c=$(),u=Re(),l=In(u.consts,o);return qH(c,u,e,r,t,n,i,l,void 0,s,a),uM}var YH=KH;function KH(e,r,t,n){return wc(!0),r[Ie].createComment("")}var Nf=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function XE(e){return typeof e=="function"&&e[Ve]!==void 0}function eS(e){return XE(e)&&typeof e.set=="function"}var tS=new C("");function jo(e){return!!e&&typeof e.then=="function"}function Of(e){return!!e&&typeof e.subscribe=="function"}var wt=new C("");function xf(e){return It([{provide:wt,multi:!0,useValue:e}])}var nS=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((t,n)=>{this.resolve=t,this.reject=n});appInits=g(wt,{optional:!0})??[];injector=g(de);constructor(){}runInitializers(){if(this.initialized)return;let t=[];for(let i of this.appInits){let o=nt(this.injector,i);if(jo(o))t.push(o);else if(Of(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});t.push(s)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{n()}).catch(i=>{this.reject(i)}),t.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ks=new C("");function lM(){Gm(()=>{let e="";throw new N(600,e)})}function dM(e){return e.isBoundToModule}var ZH=10;var ai=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=g(Ut);afterRenderManager=g(xE);zonelessEnabled=g(Ls);rootEffectScheduler=g(Ud);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new X;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=g(Ir);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(S(t=>!t))}constructor(){g(_r,{optional:!0})}whenStable(){let t;return new Promise(n=>{t=this.isStable.subscribe({next:i=>{i&&n()}})}).finally(()=>{t.unsubscribe()})}_injector=g(xe);_rendererFactory=null;get injector(){return this._injector}bootstrap(t,n){return this.bootstrapImpl(t,n)}bootstrapImpl(t,n,i=de.NULL){return this._injector.get(De).run(()=>{Ee(he.BootstrapComponentStart);let s=t instanceof Mf;if(!this._injector.get(nS).done){let E="";throw new N(405,E)}let c;s?c=t:c=this._injector.get(Kc).resolveComponentFactory(t),this.componentTypes.push(c.componentType);let u=dM(c)?void 0:this._injector.get(Fo),l=n||c.selector,d=c.create(i,[],l,u),h=d.location.nativeElement,p=d.injector.get(tS,null);return p?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),xc(this.components,d),p?.unregisterApplication(h)}),this._loadComponent(d),Ee(he.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){Ee(he.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Tf.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw Ee(he.ChangeDetectionEnd),new N(101,!1);let t=H(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,H(t),this.afterTick.next(),Ee(he.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(ii,null,{optional:!0}));let t=0;for(;this.dirtyFlags!==0&&t++<ZH;){Ee(he.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{Ee(he.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let t=!1;if(this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!n&&!Dc(i))continue;let o=n&&!this.zonelessEnabled?0:1;NR(i,o),t=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}t||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:t})=>Dc(t))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(t){let n=t;this._views.push(n),n.attachToAppRef(this)}detachView(t){let n=t;xc(this._views,n),n.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(t),this._injector.get(Ks,[]).forEach(i=>i(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>xc(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new N(406,!1);let t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xc(e,r){let t=e.indexOf(r);t>-1&&e.splice(t,1)}function Lf(e,r,t,n){let i=$(),o=ni();if(Gt(i,o,r)){let s=Re(),a=bc();TB(a,i,e,r,t,n)}return Lf}function QH(){return $()[Tt][$e]}var sE=class{destroy(r){}updateValue(r,t){}swap(r,t){let n=Math.min(r,t),i=Math.max(r,t),o=this.detach(i);if(i-n>1){let s=this.detach(n);this.attach(n,o),this.attach(i,s)}else this.attach(n,o)}move(r,t){this.attach(t,this.detach(r))}};function Ay(e,r,t,n,i){return e===t&&Object.is(r,n)?1:Object.is(i(e,r),i(t,n))?-1:0}function JH(e,r,t,n){let i,o,s=0,a=e.length-1,c=void 0;if(Array.isArray(r)){H(n);let u=r.length-1;for(H(null);s<=a&&s<=u;){let l=e.at(s),d=r[s],h=Ay(s,l,s,d,t);if(h!==0){h<0&&e.updateValue(s,d),s++;continue}let p=e.at(a),E=r[u],D=Ay(a,p,u,E,t);if(D!==0){D<0&&e.updateValue(a,E),a--,u--;continue}let b=t(s,l),R=t(a,p),M=t(s,d);if(Object.is(M,R)){let ae=t(u,E);Object.is(ae,b)?(e.swap(s,a),e.updateValue(a,E),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(i??=new df,o??=uA(e,s,a,t),aE(e,i,s,M))e.updateValue(s,d),s++,a++;else if(o.has(M))i.set(b,e.detach(s)),a--;else{let ae=e.create(s,r[s]);e.attach(s,ae),s++,a++}}for(;s<=u;)cA(e,i,t,s,r[s]),s++}else if(r!=null){H(n);let u=r[Symbol.iterator]();H(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),h=l.value,p=Ay(s,d,s,h,t);if(p!==0)p<0&&e.updateValue(s,h),s++,l=u.next();else{i??=new df,o??=uA(e,s,a,t);let E=t(s,h);if(aE(e,i,s,E))e.updateValue(s,h),s++,a++,l=u.next();else if(!o.has(E))e.attach(s,e.create(s,h)),s++,a++,l=u.next();else{let D=t(s,d);i.set(D,e.detach(s)),a--}}}for(;!l.done;)cA(e,i,t,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));i?.forEach(u=>{e.destroy(u)})}function aE(e,r,t,n){return r!==void 0&&r.has(n)?(e.attach(t,r.get(n)),r.delete(n),!0):!1}function cA(e,r,t,n,i){if(aE(e,r,n,t(n,i)))e.updateValue(n,i);else{let o=e.create(n,i);e.attach(n,o)}}function uA(e,r,t,n){let i=new Set;for(let o=r;o<=t;o++)i.add(n(o,e.at(o)));return i}var df=class{kvMap=new Map;_vMap=void 0;has(r){return this.kvMap.has(r)}delete(r){if(!this.has(r))return!1;let t=this.kvMap.get(r);return this._vMap!==void 0&&this._vMap.has(t)?(this.kvMap.set(r,this._vMap.get(t)),this._vMap.delete(t)):this.kvMap.delete(r),!0}get(r){return this.kvMap.get(r)}set(r,t){if(this.kvMap.has(r)){let n=this.kvMap.get(r);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(n);)n=i.get(n);i.set(n,t)}else this.kvMap.set(r,t)}forEach(r){for(let[t,n]of this.kvMap)if(r(n,t),this._vMap!==void 0){let i=this._vMap;for(;i.has(n);)n=i.get(n),r(n,t)}}};function XH(e,r,t,n,i,o,s,a){Tn("NgControlFlow");let c=$(),u=Re(),l=In(u.consts,o);return $c(c,u,e,r,t,n,i,l,256,s,a),rS}function rS(e,r,t,n,i,o,s,a){Tn("NgControlFlow");let c=$(),u=Re(),l=In(u.consts,o);return $c(c,u,e,r,t,n,i,l,512,s,a),rS}function eV(e,r){Tn("NgControlFlow");let t=$(),n=ni(),i=t[n]!==ct?t[n]:-1,o=i!==-1?ff(t,_e+i):void 0,s=0;if(Gt(t,n,e)){let a=H(null);try{if(o!==void 0&&kR(o,s),e!==-1){let c=_e+e,u=ff(t,c),l=dE(t[V],c),d=jR(u,l,t),h=qc(t,l,r,{dehydratedView:d});Yc(u,h,s,js(l,d))}}finally{H(a)}}else if(o!==void 0){let a=FR(o,s);a!==void 0&&(a[$e]=r)}}var cE=class{lContainer;$implicit;$index;constructor(r,t,n){this.lContainer=r,this.$implicit=t,this.$index=n}get $count(){return this.lContainer.length-Be}};function tV(e,r){return r}var uE=class{hasEmptyBlock;trackByFn;liveCollection;constructor(r,t,n){this.hasEmptyBlock=r,this.trackByFn=t,this.liveCollection=n}};function nV(e,r,t,n,i,o,s,a,c,u,l,d,h){Tn("NgControlFlow");let p=$(),E=Re(),D=c!==void 0,b=$(),R=a?s.bind(b[Tt][$e]):s,M=new uE(D,R);b[_e+e]=M,$c(p,E,e+1,r,t,n,i,In(E.consts,o),256),D&&$c(p,E,e+2,c,u,l,d,In(E.consts,h),512)}var lE=class extends sE{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(r,t,n){super(),this.lContainer=r,this.hostLView=t,this.templateTNode=n}get length(){return this.lContainer.length-Be}at(r){return this.getLView(r)[$e].$implicit}attach(r,t){let n=t[To];this.needsIndexUpdate||=r!==this.length,Yc(this.lContainer,t,r,js(this.templateTNode,n)),iV(this.lContainer,r)}detach(r){return this.needsIndexUpdate||=r!==this.length-1,oV(this.lContainer,r),sV(this.lContainer,r)}create(r,t){let n=rf(this.lContainer,this.templateTNode.tView.ssrId);return qc(this.hostLView,this.templateTNode,new cE(this.lContainer,t,r),{dehydratedView:n})}destroy(r){wf(r[V],r)}updateValue(r,t){this.getLView(r)[$e].$implicit=t}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let r=0;r<this.length;r++)this.getLView(r)[$e].$index=r}getLView(r){return aV(this.lContainer,r)}};function rV(e){let r=H(null),t=Wn();try{let n=$(),i=n[V],o=n[t],s=t+1,a=ff(n,s);if(o.liveCollection===void 0){let u=dE(i,s);o.liveCollection=new lE(a,n,u)}else o.liveCollection.reset();let c=o.liveCollection;if(JH(c,e,o.trackByFn,r),c.updateIndexes(),o.hasEmptyBlock){let u=ni(),l=c.length===0;if(Gt(n,u,l)){let d=t+2,h=ff(n,d);if(l){let p=dE(i,d),E=jR(h,p,n),D=qc(n,p,void 0,{dehydratedView:E});Yc(h,D,0,js(p,E))}else i.firstUpdatePass&&YB(h),kR(h,0)}}}finally{H(r)}}function ff(e,r){return e[r]}function iV(e,r){if(e.length<=Be)return;let t=Be+r,n=e[t],i=n?n[ki]:void 0;if(n&&i&&i.detachedLeaveAnimationFns&&i.detachedLeaveAnimationFns.length>0){let o=n[Qr];nB(o,i),Lo.delete(n[Jr]),i.detachedLeaveAnimationFns=void 0}}function oV(e,r){if(e.length<=Be)return;let t=Be+r,n=e[t],i=n?n[ki]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function sV(e,r){return kc(e,r)}function aV(e,r){return FR(e,r)}function dE(e,r){return Ad(e,r)}function fM(e,r,t){let n=$(),i=ni();if(Gt(n,i,r)){let o=Re(),s=bc();TR(s,n,e,r,n[Ie],t)}return fM}function fE(e,r,t,n,i){$E(r,e,t,i?"class":"style",n)}function hf(e,r,t,n){let i=$(),o=i[V],s=e+_e,a=o.firstCreatePass?zE(s,i,2,r,kE,Nd(),t,n):o.data[s];if(ei(a)){let c=i[Vn].tracingService;if(c&&c.componentCreate){let u=o.data[a.directiveStart+a.componentOffset];return c.componentCreate(KR(u),()=>(lA(e,r,i,a,n),hf))}}return lA(e,r,i,a,n),hf}function lA(e,r,t,n,i){if(UE(n,t,e,r,pM),Ns(n)){let o=t[V];Af(o,t,n),CE(o,n,t)}i!=null&&Wc(t,n)}function iS(){let e=Re(),r=rt(),t=jE(r);return e.firstCreatePass&&GE(e,t),cy(t)&&uy(),sy(),t.classesWithoutHost!=null&&x1(t)&&fE(e,t,$(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&L1(t)&&fE(e,t,$(),t.stylesWithoutHost,!1),iS}function Pf(e,r,t,n){return hf(e,r,t,n),iS(),Pf}function oS(e,r,t,n){let i=$(),o=i[V],s=e+_e,a=o.firstCreatePass?cH(s,o,2,r,t,n):o.data[s];return UE(a,i,e,r,pM),n!=null&&Wc(i,a),oS}function sS(){let e=rt(),r=jE(e);return cy(r)&&uy(),sy(),sS}function hM(e,r,t,n){return oS(e,r,t,n),sS(),hM}var pM=(e,r,t,n,i)=>(wc(!0),tR(r[Ie],n,vy()));function aS(e,r,t){let n=$(),i=n[V],o=e+_e,s=i.firstCreatePass?zE(o,n,8,"ng-container",kE,Nd(),r,t):i.data[o];if(UE(s,n,e,"ng-container",cV),Ns(s)){let a=n[V];Af(a,n,s),CE(a,s,n)}return t!=null&&Wc(n,s),aS}function cS(){let e=Re(),r=rt(),t=jE(r);return e.firstCreatePass&&GE(e,t),cS}function gM(e,r,t){return aS(e,r,t),cS(),gM}var cV=(e,r,t,n,i)=>(wc(!0),w$(r[Ie],""));function uV(){return $()}function mM(e,r,t){let n=$(),i=ni();if(Gt(n,i,r)){let o=Re(),s=bc();bR(s,n,e,r,n[Ie],t)}return mM}var Mc=void 0;function lV(e){let r=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return r===1&&t===0?1:5}var dV=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],Mc,[["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"]],Mc,[["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\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}
4, {0}",Mc,Mc,Mc],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",lV],Lc=Object.create(null);function uS(e,r,t){typeof r!="string"&&(t=r,r=e[Le.LocaleId]),r=r.toLowerCase().replace(/_/g,"-"),Lc[r]=e,t&&(Lc[r][Le.ExtraData]=t)}function qt(e){let r=fV(e),t=dA(r);if(t)return t;let n=r.split("-")[0];if(t=dA(n),t)return t;if(n==="en")return dV;throw new N(701,!1)}function dA(e){if(!(e in Lc)){let r=yn.ng&&yn.ng.common&&yn.ng.common.locales&&yn.ng.common.locales[e];return r!==void 0&&(Lc[e]=r),r}return Lc[e]}var Le=(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})(Le||{});function fV(e){return e.toLowerCase().replace(/_/g,"-")}var Qc="en-US";var hV=Qc;function vM(e){typeof e=="string"&&(hV=e.toLowerCase().replace(/_/g,"-"))}function Ff(e,r,t){let n=$(),i=Re(),o=rt();return EM(i,n,n[Ie],o,e,r,t),Ff}function yM(e,r,t){let n=$(),i=Re(),o=rt();return(o.type&3||t)&&qR(o,i,n,t,n[Ie],e,r,Yd(o,n,r)),yM}function EM(e,r,t,n,i,o,s){let a=!0,c=null;if((n.type&3||s)&&(c??=Yd(n,r,o),qR(n,e,r,s,t,i,o,c)&&(a=!1)),a){let u=n.outputs?.[i],l=n.hostDirectiveOutputs?.[i];if(l&&l.length)for(let d=0;d<l.length;d+=2){let h=l[d],p=l[d+1];c??=Yd(n,r,o),iA(n,r,h,p,i,c)}if(u&&u.length)for(let d of u)c??=Yd(n,r,o),iA(n,r,d,i,i,c)}}function pV(e=1){return w_(e)}function gV(e,r){let t=null,n=$$(e);for(let i=0;i<r.length;i++){let o=r[i];if(o==="*"){t=i;continue}if(n===null?uR(e,o,!0):V$(n,o))return i}return t}function mV(e){let r=$()[Tt][kt];if(!r.projection){let t=e?e.length:1,n=r.projection=Xw(t,null),i=n.slice(),o=r.child;for(;o!==null;){if(o.type!==128){let s=e?gV(o,e):0;s!==null&&(i[s]?i[s].projectionNext=o:n[s]=o,i[s]=o)}o=o.next}}}function vV(e,r=0,t,n,i,o){let s=$(),a=Re(),c=n?e+1:null;c!==null&&$c(s,a,c,n,i,o,null,t);let u=Gs(a,_e+e,16,null,t||null);u.projection===null&&(u.projection=r),fy();let d=!s[To]||ay();s[Tt][kt].projection[u.projection]===null&&c!==null?yV(s,a,c):d&&!Ef(u)&&hB(a,s,u)}function yV(e,r,t){let n=_e+t,i=r.data[n],o=e[n],s=rf(o,i.tView.ssrId),a=qc(e,i,void 0,{dehydratedView:s});Yc(o,a,0,js(i,s))}function SM(e,r,t){return eM(e,r,t),SM}function CM(e){let r=$(),t=Re(),n=xd();Tc(n+1);let i=YE(t,n);if(e.dirty&&a_(r)===((i.metadata.flags&2)===2)){if(i.matches===null)e.reset([]);else{let o=nM(r,n);e.reset(o,PA),e.notifyOnChanges()}return!0}return!1}function DM(){return qE($(),xd())}function IM(e,r,t,n,i){return iM(r,OH(e,t,n,i)),IM}function TM(e,r,t,n){return iM(e,eM(r,t,n)),TM}function EV(e=1){Tc(xd()+e)}function SV(e){let r=v_();return Cc(r,_e+e)}function Vd(e,r){return e<<17|r<<2}function ko(e){return e>>17&32767}function CV(e){return(e&2)==2}function DV(e,r){return e&131071|r<<17}function hE(e){return e|2}function $s(e){return(e&131068)>>2}function Ry(e,r){return e&-131069|r<<2}function IV(e){return(e&1)===1}function pE(e){return e|1}function TV(e,r,t,n,i,o){let s=o?r.classBindings:r.styleBindings,a=ko(s),c=$s(s);e[n]=t;let u=!1,l;if(Array.isArray(t)){let d=t;l=d[1],(l===null||As(d,l)>0)&&(u=!0)}else l=t;if(i)if(c!==0){let h=ko(e[a+1]);e[n+1]=Vd(h,a),h!==0&&(e[h+1]=Ry(e[h+1],n)),e[a+1]=DV(e[a+1],n)}else e[n+1]=Vd(a,0),a!==0&&(e[a+1]=Ry(e[a+1],n)),a=n;else e[n+1]=Vd(c,0),a===0?a=n:e[c+1]=Ry(e[c+1],n),c=n;
vendor: 5,272 bytes, line 4
4u&&(e[n+1]=hE(e[n+1])),fA(e,l,n,!0),fA(e,l,n,!1),bV(r,l,e,n,o),s=Vd(a,c),o?r.classBindings=s:r.styleBindings=s}function bV(e,r,t,n,i){let o=i?e.residualClasses:e.residualStyles;o!=null&&typeof r=="string"&&As(o,r)>=0&&(t[n+1]=pE(t[n+1]))}function fA(e,r,t,n){let i=e[t+1],o=r===null,s=n?ko(i):$s(i),a=!1;for(;s!==0&&(a===!1||o);){let c=e[s],u=e[s+1];wV(c,r)&&(a=!0,e[s+1]=n?pE(u):hE(u)),s=n?ko(u):$s(u)}a&&(e[t+1]=n?hE(i):pE(i))}function wV(e,r){return e===null||r==null||(Array.isArray(e)?e[1]:e)===r?!0:Array.isArray(e)&&typeof r=="string"?As(e,r)>=0:!1}var it={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function bM(e){return e.substring(it.key,it.keyEnd)}function _V(e){return e.substring(it.value,it.valueEnd)}function AV(e){return AM(e),wM(e,Bs(e,0,it.textEnd))}function wM(e,r){let t=it.textEnd;return t===r?-1:(r=it.keyEnd=MV(e,it.key=r,t),Bs(e,r,t))}function RV(e){return AM(e),_M(e,Bs(e,0,it.textEnd))}function _M(e,r){let t=it.textEnd,n=it.key=Bs(e,r,t);return t===n?-1:(n=it.keyEnd=NV(e,n,t),n=hA(e,n,t,58),n=it.value=Bs(e,n,t),n=it.valueEnd=OV(e,n,t),hA(e,n,t,59))}function AM(e){it.key=0,it.keyEnd=0,it.value=0,it.valueEnd=0,it.textEnd=e.length}function Bs(e,r,t){for(;r<t&&e.charCodeAt(r)<=32;)r++;return r}function MV(e,r,t){for(;r<t&&e.charCodeAt(r)>32;)r++;return r}function NV(e,r,t){let n;for(;r<t&&((n=e.charCodeAt(r))===45||n===95||(n&-33)>=65&&(n&-33)<=90||n>=48&&n<=57);)r++;return r}function hA(e,r,t,n){return r=Bs(e,r,t),r<t&&r++,r}function OV(e,r,t){let n=-1,i=-1,o=-1,s=r,a=s;for(;s<t;){let c=e.charCodeAt(s++);if(c===59)return a;c===34||c===39?a=s=pA(e,c,s,t):r===s-4&&o===85&&i===82&&n===76&&c===40?a=s=pA(e,41,s,t):c>32&&(a=s),o=i,i=n,n=c&-33}return a}function pA(e,r,t,n){let i=-1,o=t;for(;o<n;){let s=e.charCodeAt(o++);if(s==r&&i!==92)return o;s==92&&i===92?i=0:i=s}throw new Error}function RM(e,r,t){return NM(e,r,t,!1),RM}function MM(e,r){return NM(e,r,null,!0),MM}function xV(e){OM(PM,LV,e,!1)}function LV(e,r){for(let t=RV(r);t>=0;t=_M(r,t))PM(e,bM(r),_V(r))}function PV(e){OM(HV,FV,e,!0)}function FV(e,r){for(let t=AV(r);t>=0;t=wM(r,t))vc(e,bM(r),!0)}function NM(e,r,t,n){let i=$(),o=Re(),s=Ic(2);if(o.firstUpdatePass&&LM(o,e,s,n),r!==ct&&Gt(i,s,r)){let a=o.data[Wn()];FM(o,a,i,i[Ie],e,i[s+1]=zV(r,t),n,s)}}function OM(e,r,t,n){let i=Re(),o=Ic(2);i.firstUpdatePass&&LM(i,null,o,n);let s=$();if(t!==ct&&Gt(s,o,t)){let a=i.data[Wn()];if(kM(a,n)&&!xM(i,o)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(t=Sd(c,t||"")),fE(i,a,s,t,n)}else VV(i,a,s,s[Ie],s[o+1],s[o+1]=BV(e,r,t),n,o)}}function xM(e,r){return r>=e.expandoStartIndex}function LM(e,r,t,n){let i=e.data;if(i[t+1]===null){let o=i[Wn()],s=xM(e,t);kM(o,n)&&r===null&&!s&&(r=!1),r=kV(i,o,r,n),TV(i,o,r,t,s,n)}}function kV(e,r,t,n){let i=D_(e),o=n?r.residualClasses:r.residualStyles;if(i===null)(n?r.classBindings:r.styleBindings)===0&&(t=My(null,e,r,t,n),t=Bc(t,r.attrs,n),o=null);else{let s=r.directiveStylingLast;if(s===-1||e[s]!==i)if(t=My(i,e,r,t,n),o===null){let c=UV(e,r,n);c!==void 0&&Array.isArray(c)&&(c=My(null,e,r,c[1],n),c=Bc(c,r.attrs,n),jV(e,r,n,c))}else o=$V(e,r,n)}return o!==void 0&&(n?r.residualClasses=o:r.residualStyles=o),t}function UV(e,r,t){let n=t?r.classBindings:r.styleBindings;if($s(n)!==0)return e[ko(n)]}function jV(e,r,t,n){let i=t?r.classBindings:r.styleBindings;e[ko(i)]=n}function $V(e,r,t){let n,i=r.directiveEnd;for(let o=1+r.directiveStylingLast;o<i;o++){let s=e[o].hostAttrs;n=Bc(n,s,t)}return Bc(n,r.attrs,t)}function My(e,r,t,n,i){let o=null,s=t.directiveEnd,a=t.directiveStylingLast;for(a===-1?a=t.directiveStart:a++;a<s&&(o=r[a],n=Bc(n,o.hostAttrs,i),o!==e);)a++;return e!==null&&(t.directiveStylingLast=a),n}function Bc(e,r,t){let n=t?1:2,i=-1;if(r!==null)for(let o=0;o<r.length;o++){let s=r[o];typeof s=="number"?i=s:i===n&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),vc(e,s,t?!0:r[++o]))}return e===void 0?null:e}function BV(e,r,t){if(t==null||t==="")return Dt;let n=[],i=jt(t);if(Array.isArray(i))for(let o=0;o<i.length;o++)e(n,i[o],!0);else if(i instanceof Set)for(let o of i)e(n,o,!0);else if(typeof i=="object")for(let o in i)i.hasOwnProperty(o)&&e(n,o,i[o]);else typeof i=="string"&&r(n,i);return n}function PM(e,r,t){vc(e,r,jt(t))}function HV(e,r,t){let n=String(r);n!==""&&!n.includes(" ")&&vc(e,n,t)}function VV(e,r,t,n,i,o,s,a){i===ct&&(i=Dt);let c=0,u=0,l=0<i.length?i[0]:null,d=0<o.length?o[0]:null;for(;l!==null||d!==null;){let h=c<i.length?i[c+1]:void 0,p=u<o.length?o[u+1]:void 0,E=null,D;l===d?(c+=2,u+=2,h!==p&&(E=d,D=p)):d===null||l!==null&&l<d?(c+=2,E=l):(u+=2,E=d,D=p),E!==null&&FM(e,r,t,n,E,D,s,a),l=c<i.length?i[c]:null,d=u<o.length?o[u]:null}}function FM(e,r,t,n,i,o,s,a){if(!(r.type&3))return;let c=e.data,u=c[a+1],l=IV(u)?gA(c,r,t,i,$s(u),s):void 0;if(!pf(l)){pf(o)||CV(u)&&(o=gA(c,null,t,i,a,s));let d=Xv(Wn(),t);gB(n,s,d,i,o)}}function gA(e,r,t,n,i,o){let s=r===null,a;for(;i>0;){let c=e[i],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=t[i+1];h===ct&&(h=d?Dt:void 0);let p=d?wd(h,n):l===n?h:void 0;if(u&&!pf(p)&&(p=wd(c,n)),pf(p)&&(a=p,s))return a;let E=e[i+1];i=s?ko(E):$s(E)}if(r!==null){let c=o?r.residualClasses:r.residualStyles;c!=null&&(a=wd(c,n))}return a}function pf(e){return e!==void 0}function zV(e,r){return e==null||e===""||(typeof r=="string"?e=e+r:typeof e=="object"&&(e=fc(jt(e)))
vendor: 5,446 bytes, line 4
4),e}function kM(e,r){return(e.flags&(r?8:16))!==0}function GV(e,r=""){let t=$(),n=Re(),i=e+_e,o=n.firstCreatePass?Gs(n,i,1,r,null):n.data[i],s=WV(n,t,o,r);t[i]=s,Fd()&&PE(n,t,s,o),xs(o,!1)}var WV=(e,r,t,n)=>(wc(!0),T$(r[Ie],n));function UM(e,r,t,n=""){return Gt(e,ni(),t)?r+En(t)+n:ct}function jM(e,r,t,n,i,o=""){let s=py(),a=Uc(e,s,t,i);return Ic(2),a?r+En(t)+n+En(i)+o:ct}function qV(e,r,t,n,i,o,s,a=""){let c=py(),u=WR(e,c,t,i,s);return Ic(3),u?r+En(t)+n+En(i)+o+En(s)+a:ct}function $M(e){return lS("",e),$M}function lS(e,r,t){let n=$(),i=UM(n,e,r,t);return i!==ct&&dS(n,Wn(),i),lS}function BM(e,r,t,n,i){let o=$(),s=jM(o,e,r,t,n,i);return s!==ct&&dS(o,Wn(),s),BM}function HM(e,r,t,n,i,o,s){let a=$(),c=qV(a,e,r,t,n,i,o,s);return c!==ct&&dS(a,Wn(),c),HM}function dS(e,r,t){let n=Xv(r,e);b$(e[Ie],n,t)}function VM(e,r,t){eS(r)&&(r=r());let n=$(),i=ni();if(Gt(n,i,r)){let o=Re(),s=bc();TR(s,n,e,r,n[Ie],t)}return VM}function YV(e,r){let t=eS(e);return t&&e.set(r),t}function zM(e,r){let t=$(),n=Re(),i=rt();return EM(n,t,t[Ie],i,e,r),zM}function KV(e){return Gt($(),ni(),e)?En(e):ct}function ZV(e,r,t=""){return UM($(),e,r,t)}function QV(e,r,t,n,i=""){return jM($(),e,r,t,n,i)}function mA(e,r,t){let n=Re();n.firstCreatePass&&GM(r,n.data,n.blueprint,Dr(e),t)}function GM(e,r,t,n,i){if(e=dt(e),Array.isArray(e))for(let o=0;o<e.length;o++)GM(e[o],r,t,n,i);else{let o=Re(),s=$(),a=rt(),c=Co(e)?e:dt(e.provide),u=Gv(e),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(Co(e)||!e.multi){let p=new xo(u,i,se,null),E=Oy(c,r,i?l:l+h,d);E===-1?(Ly(Xd(a,s),o,c),Ny(o,e,r.length),r.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(p),s.push(p)):(t[E]=p,s[E]=p)}else{let p=Oy(c,r,l+h,d),E=Oy(c,r,l,l+h),D=p>=0&&t[p],b=E>=0&&t[E];if(i&&!b||!i&&!D){Ly(Xd(a,s),o,c);let R=e2(i?XV:JV,t.length,i,n,u,e);!i&&b&&(t[E].providerFactory=R),Ny(o,e,r.length,0),r.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),t.push(R),s.push(R)}else{let R=WM(t[i?E:p],u,!i&&n);Ny(o,e,p>-1?p:E,R)}!i&&n&&b&&t[E].componentProviders++}}}function Ny(e,r,t,n){let i=Co(r),o=i_(r);if(i||o){let c=(o?dt(r.useClass):r).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!i&&r.multi){let l=u.indexOf(t);l===-1?u.push(t,[n,c]):u[l+1].push(n,c)}else u.push(t,c)}}}function WM(e,r,t){return t&&e.componentProviders++,e.multi.push(r)-1}function Oy(e,r,t,n){for(let i=t;i<n;i++)if(r[i]===e)return i;return-1}function JV(e,r,t,n,i){return gE(this.multi,[])}function XV(e,r,t,n,i){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Pc(n,n[V],this.providerFactory.index,i);s=c.slice(0,a),gE(o,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],gE(o,s);return s}function gE(e,r){for(let t=0;t<e.length;t++){let n=e[t];r.push(n())}return r}function e2(e,r,t,n,i,o){let s=new xo(e,t,se,null);return s.multi=[],s.index=r,s.componentProviders=0,WM(s,i,n&&!t),s}function t2(e,r){return t=>{t.providersResolver=(n,i)=>mA(n,i?i(e):e,!1),r&&(t.viewProvidersResolver=(n,i)=>mA(n,i?i(r):r,!0))}}function n2(e,r){let t=ti()+e,n=$();return n[t]===ct?Zc(n,t,r()):uH(n,t)}function r2(e,r,t){return qM($(),ti(),e,r,t)}function i2(e,r,t,n){return YM($(),ti(),e,r,t,n)}function o2(e,r,t,n,i){return KM($(),ti(),e,r,t,n,i)}function s2(e,r,t,n,i,o,s){return a2($(),ti(),e,r,t,n,i,o)}function kf(e,r){let t=e[r];return t===ct?void 0:t}function qM(e,r,t,n,i,o){let s=r+t;return Gt(e,s,i)?Zc(e,s+1,o?n.call(o,i):n(i)):kf(e,s+1)}function YM(e,r,t,n,i,o,s){let a=r+t;return Uc(e,a,i,o)?Zc(e,a+2,s?n.call(s,i,o):n(i,o)):kf(e,a+2)}function KM(e,r,t,n,i,o,s,a){let c=r+t;return WR(e,c,i,o,s)?Zc(e,c+3,a?n.call(a,i,o,s):n(i,o,s)):kf(e,c+3)}function a2(e,r,t,n,i,o,s,a,c){let u=r+t;return lH(e,u,i,o,s,a)?Zc(e,u+4,c?n.call(c,i,o,s,a):n(i,o,s,a)):kf(e,u+4)}function c2(e,r){let t=Re(),n,i=e+_e;t.firstCreatePass?(n=u2(r,t.pipeRegistry),t.data[i]=n,n.onDestroy&&(t.destroyHooks??=[]).push(i,n.onDestroy)):n=t.data[i];let o=n.factory||(n.factory=Ni(n.type,!0)),s,a=Pt(se);try{let c=Jd(!1),u=o();return Jd(c),ey(t,$(),i,u),u}finally{Pt(a)}}function u2(e,r){if(r)for(let t=r.length-1;t>=0;t--){let n=r[t];if(e===n.name)return n}}function l2(e,r,t){let n=e+_e,i=$(),o=Cc(i,n);return fS(i,n)?qM(i,ti(),r,o.transform,t,o):o.transform(t)}function d2(e,r,t,n){let i=e+_e,o=$(),s=Cc(o,i);return fS(o,i)?YM(o,ti(),r,s.transform,t,n,s):s.transform(t,n)}function f2(e,r,t,n,i){let o=e+_e,s=$(),a=Cc(s,o);return fS(s,o)?KM(s,ti(),r,a.transform,t,n,i,a):a.transform(t,n,i)}function fS(e,r){return e[V].data[r].pure}function h2(e,r){return Rf(e,r)}var gf=class{ngModuleFactory;componentFactories;constructor(r,t){this.ngModuleFactory=r,this.componentFactories=t}},Jc=(()=>{class e{compileModuleSync(t){return new lf(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){let n=this.compileModuleSync(t),i=Pv(t),o=aR(i.declarations).reduce((s,a)=>{let c=Zr(a);return c&&s.push(new Po(c)),s},[]);return new gf(n,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var ZM=(()=>{class e{applicationErrorHandler=g(Ut);appRef=g(ai);taskService=g(Ir);ngZone=g(De);zonelessEnabled=g(Ls);tracing=g(_r,{optional:!0});
4zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ce;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(lc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(g(kd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let t=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(t);return}this.switchToMicrotaskScheduler(),this.taskService.remove(t)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let t=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(t)})})}notify(t){if(!this.zonelessEnabled&&t===5)return;switch(t){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let n=this.useMicrotaskScheduler?M_:Sy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>n(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>n(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(lc+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 t=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.applicationErrorHandler(n)}finally{this.taskService.remove(t),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let t=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function QM(){return[{provide:Er,useExisting:ZM},{provide:De,useClass:dc},{provide:Ls,useValue:!0}]}function p2(){return typeof $localize<"u"&&$localize.locale||Qc}var Zs=new C("",{factory:()=>g(Zs,{optional:!0,skipSelf:!0})||p2()});var Xc=class{destroyed=!1;listeners=null;errorHandler=g(qe,{optional:!0});destroyRef=g(ze);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(r){if(this.destroyed)throw new N(953,!1);return(this.listeners??=[]).push(r),{unsubscribe:()=>{let t=this.listeners?.indexOf(r);t!==void 0&&t!==-1&&this.listeners?.splice(t,1)}}}emit(r){if(this.destroyed){console.warn(vn(953,!1));return}if(this.listeners===null)return;let t=H(null);try{for(let n of this.listeners)try{n(r)}catch(i){this.errorHandler?.handleError(i)}}finally{H(t)}}};function hS(e){return e.destroyRef}function be(e){return Bw(e)}function Bi(e,r){return Ga(e,r?.equal)}var g2=e=>e;function pS(e,r){if(typeof e=="function"){let t=mv(e,g2,r?.equal);return JM(t,r?.debugName)}else{let t=mv(e.source,e.computation,e.equal);return JM(t,e.debugName)}}function JM(e,r){let t=e[Ve],n=e;return n.set=i=>jw(t,i),n.update=i=>$w(t,i),n.asReadonly=_c.bind(e),n}var Bf=Symbol("InputSignalNode#UNSET"),c0=T(v({},_l),{transformFn:void 0,applyValueToInputSignal(e,r){Di(e,r)}});function u0(e,r){let t=Object.create(c0);t.value=e,t.transformFn=r?.transform;function n(){if(Si(t),t.value===Bf){let i=null;throw new N(-950,i)}return t.value}return n[Ve]=t,n}var jf=class{attributeName;constructor(r){this.attributeName=r}__NG_ELEMENT_ID__=()=>Hc(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function vge(e){return new Xc}function XM(e,r){return u0(e,r)}function M2(e){return u0(Bf,e)}var l0=(XM.required=M2,XM);function e0(e,r){return ZE(r)}function N2(e,r){return QE(r)}var yge=(e0.required=N2,e0);function t0(e,r){return ZE(r)}function O2(e,r){return QE(r)}var Ege=(t0.required=O2,t0);function Sge(e,r){return rM(r)}function d0(e,r){let t=Object.create(c0),n=new Xc;t.value=e;function i(){return Si(t),n0(t.value),t.value}return i[Ve]=t,i.asReadonly=_c.bind(i),i.set=o=>{t.equal(t.value,o)||(Di(t,o),n.emit(o))},i.update=o=>{n0(t.value),i.set(o(t.value))},i.subscribe=n.subscribe.bind(n),i.destroyRef=n.destroyRef,i}function n0(e){if(e===Bf)throw new N(952,!1)}function r0(e,r){return d0(e,r)}function x2(e){return d0(Bf,e)}var Cge=(r0.required=x2,r0);var L2=(()=>{class e{zone=g(De);
4changeDetectionScheduler=g(Er);applicationRef=g(ai);applicationErrorHandler=g(Ut);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(t){this.applicationErrorHandler(t)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),P2=new C("",{factory:()=>!1});function F2({ngZoneFactory:e,scheduleInRootZone:r}){return e??=()=>new De(T(v({},f0()),{scheduleInRootZone:r})),[{provide:Ls,useValue:!1},{provide:De,useFactory:e},{provide:Sr,multi:!0,useFactory:()=>{let t=g(L2,{optional:!0});return()=>t.initialize()}},{provide:Sr,multi:!0,useFactory:()=>{let t=g(k2);return()=>{t.initialize()}}},{provide:kd,useValue:r??Ey}]}function Dge(e){let r=e?.scheduleInRootZone,t=F2({ngZoneFactory:()=>{let n=f0(e);return n.scheduleInRootZone=r,n.shouldCoalesceEventChangeDetection&&Tn("NgZone_CoalesceEvent"),new De(n)},scheduleInRootZone:r});return It([{provide:P2,useValue:!0},t])}function f0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var k2=(()=>{class e{subscription=new ce;initialized=!1;zone=g(De);pendingTasks=g(Ir);initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{De.assertNotInAngularZone(),queueMicrotask(()=>{t!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{De.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gS=new C(""),U2=new C("");function eu(e){return!e.moduleRef}function j2(e){let r=eu(e)?e.r3Injector:e.moduleRef.injector,t=r.get(De);return t.run(()=>{eu(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let n=r.get(Ut),i;if(t.runOutsideAngular(()=>{i=t.onError.subscribe({next:n})}),eu(e)){let o=()=>r.destroy(),s=e.platformInjector.get(gS);s.add(o),r.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>e.moduleRef.destroy(),s=e.platformInjector.get(gS);s.add(o),e.moduleRef.onDestroy(()=>{xc(e.allPlatformModules,e.moduleRef),i.unsubscribe(),s.delete(o)})}return B2(n,t,()=>{let o=r.get(Ir),s=o.add(),a=r.get(nS);return a.runInitializers(),a.donePromise.then(()=>{let c=r.get(Zs,Qc);if(vM(c||Qc),!r.get(U2,!0))return eu(e)?r.get(ai):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(eu(e)){let l=r.get(ai);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return $2?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{o.remove(s)})})})}var $2;function B2(e,r,t){try{let n=t();return jo(n)?n.catch(i=>{throw r.runOutsideAngular(()=>e(i)),i}):n}catch(n){throw r.runOutsideAngular(()=>e(n)),n}}var Uf=null;function H2(e=[],r){return de.create({name:r,providers:[{provide:yc,useValue:"platform"},{provide:gS,useValue:new Set([()=>Uf=null])},...e]})}function V2(e=[]){if(Uf)return Uf;let r=H2(e);return Uf=r,lM(),z2(r),r}function z2(e){let r=e.get(vf,null);nt(e,()=>{r?.forEach(t=>t())})}function ge(){return!1}var G2=1e4;var Ige=G2-1e3;var Hi=(()=>{class e{static __NG_ELEMENT_ID__=W2}return e})();function W2(e){return q2(rt(),$(),(e&16)===16)}function q2(e,r,t){if(ei(e)&&!t){let n=Dn(e.index,r);return new $i(n,n)}else if(e.type&175){let n=r[Tt];return new $i(n,r)}return null}var mS=class{supports(r){return WE(r)}create(r){return new vS(r)}},Y2=(e,r)=>r,vS=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(r){this._trackByFn=r||Y2}forEachItem(r){let t;for(t=this._itHead;t!==null;t=t._next)r(t)}forEachOperation(r){let t=this._itHead,n=this._removalsHead,i=0,o=null;for(;t||n;){let s=!n||t&&t.currentIndex<i0(n,i,o)?t:n,a=i0(s,i,o),c=s.currentIndex;if(s===n)i--,n=n._nextRemoved;
vendor: 6,618 bytes, line 4
4else if(t=t._next,s.previousIndex==null)i++;else{o||(o=[]);let u=a-i,l=c-i;if(u!=l){for(let h=0;h<u;h++){let p=h<o.length?o[h]:o[h]=0,E=p+h;l<=E&&E<u&&(o[h]=p+1)}let d=s.previousIndex;o[d]=l-u}}a!==c&&r(s,a,c)}}forEachPreviousItem(r){let t;for(t=this._previousItHead;t!==null;t=t._nextPrevious)r(t)}forEachAddedItem(r){let t;for(t=this._additionsHead;t!==null;t=t._nextAdded)r(t)}forEachMovedItem(r){let t;for(t=this._movesHead;t!==null;t=t._nextMoved)r(t)}forEachRemovedItem(r){let t;for(t=this._removalsHead;t!==null;t=t._nextRemoved)r(t)}forEachIdentityChange(r){let t;for(t=this._identityChangesHead;t!==null;t=t._nextIdentityChange)r(t)}diff(r){if(r==null&&(r=[]),!WE(r))throw new N(900,!1);return this.check(r)?this:null}onDestroy(){}check(r){this._reset();let t=this._itHead,n=!1,i,o,s;if(Array.isArray(r)){this.length=r.length;for(let a=0;a<this.length;a++)o=r[a],s=this._trackByFn(a,o),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,o,s,a),n=!0):(n&&(t=this._verifyReinsertion(t,o,s,a)),Object.is(t.item,o)||this._addIdentityChange(t,o)),t=t._next}else i=0,zR(r,a=>{s=this._trackByFn(i,a),t===null||!Object.is(t.trackById,s)?(t=this._mismatch(t,a,s,i),n=!0):(n&&(t=this._verifyReinsertion(t,a,s,i)),Object.is(t.item,a)||this._addIdentityChange(t,a)),t=t._next,i++}),this.length=i;return this._truncate(t),this.collection=r,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let r;for(r=this._previousItHead=this._itHead;r!==null;r=r._next)r._nextPrevious=r._next;for(r=this._additionsHead;r!==null;r=r._nextAdded)r.previousIndex=r.currentIndex;for(this._additionsHead=this._additionsTail=null,r=this._movesHead;r!==null;r=r._nextMoved)r.previousIndex=r.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(r,t,n,i){let o;return r===null?o=this._itTail:(o=r._prev,this._remove(r)),r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),r!==null?(Object.is(r.item,t)||this._addIdentityChange(r,t),this._reinsertAfter(r,o,i)):(r=this._linkedRecords===null?null:this._linkedRecords.get(n,i),r!==null?(Object.is(r.item,t)||this._addIdentityChange(r,t),this._moveAfter(r,o,i)):r=this._addAfter(new yS(t,n),o,i)),r}_verifyReinsertion(r,t,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?r=this._reinsertAfter(o,r._prev,i):r.currentIndex!=i&&(r.currentIndex=i,this._addToMoves(r,i)),r}_truncate(r){for(;r!==null;){let t=r._next;this._addToRemovals(this._unlink(r)),r=t}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(r,t,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(r);let i=r._prevRemoved,o=r._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(r,t,n),this._addToMoves(r,n),r}_moveAfter(r,t,n){return this._unlink(r),this._insertAfter(r,t,n),this._addToMoves(r,n),r}_addAfter(r,t,n){return this._insertAfter(r,t,n),this._additionsTail===null?this._additionsTail=this._additionsHead=r:this._additionsTail=this._additionsTail._nextAdded=r,r}_insertAfter(r,t,n){let i=t===null?this._itHead:t._next;return r._next=i,r._prev=t,i===null?this._itTail=r:i._prev=r,t===null?this._itHead=r:t._next=r,this._linkedRecords===null&&(this._linkedRecords=new $f),this._linkedRecords.put(r),r.currentIndex=n,r}_remove(r){return this._addToRemovals(this._unlink(r))}_unlink(r){this._linkedRecords!==null&&this._linkedRecords.remove(r);let t=r._prev,n=r._next;return t===null?this._itHead=n:t._next=n,n===null?this._itTail=t:n._prev=t,r}_addToMoves(r,t){return r.previousIndex===t||(this._movesTail===null?this._movesTail=this._movesHead=r:this._movesTail=this._movesTail._nextMoved=r),r}_addToRemovals(r){return this._unlinkedRecords===null&&(this._unlinkedRecords=new $f),this._unlinkedRecords.put(r),r.currentIndex=null,r._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=r,r._prevRemoved=null):(r._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=r),r}_addIdentityChange(r,t){return r.item=t,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=r:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=r,r}},yS=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(r,t){this.item=r,this.trackById=t}},ES=class{_head=null;_tail=null;add(r){this._head===null?(this._head=this._tail=r,r._nextDup=null,r._prevDup=null):(this._tail._nextDup=r,r._prevDup=this._tail,r._nextDup=null,this._tail=r)}get(r,t){let n;for(n=this._head;n!==null;n=n._nextDup)if((t===null||t<=n.currentIndex)&&Object.is(n.trackById,r))return n;return null}remove(r){let t=r._prevDup,n=r._nextDup;return t===null?this._head=n:t._nextDup=n,n===null?this._tail=t:n._prevDup=t,this._head===null}},$f=class{map=new Map;put(r){let t=r.trackById,n=this.map.get(t);n||(n=new ES,this.map.set(t,n)),n.add(r)}get(r,t){let n=r,i=this.map.get(n);return i?i.get(r,t):null}remove(r){let t=r.trackById;return this.map.get(t).remove(r)&&this.map.delete(t),r}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function i0(e,r,t){let n=e.previousIndex;if(n===null)return n;let i=0;return t&&n<t.length&&(i=t[n]),n+r+i}function o0(){return new SS([new mS])}var SS=(()=>{class e{factories;static \u0275prov=m({token:e,providedIn:"root",factory:o0});constructor(t){this.factories=t}static create(t,n){if(n!=null){let i=n.factories.slice();t=t.concat(i)}return new e(t)}static extend(t){return{provide:e,useFactory:()=>{let n=g(e,{optional:!0,skipSelf:!0});return e.create(t,n||o0())}}}find(t){let n=this.factories.find(i=>i.supports(t));if(n!=null)return n;throw new N(901,!1)}}return e})();function h0(e){let{rootComponent:r,appProviders:t,platformProviders:n,platformRef:i}=e;Ee(he.BootstrapApplicationStart);try{let o=i?.injector??V2(n),s=[QM(),O_,...t||[]],a=new jc({providers:s,parent:o,debugName:"",runEnvironmentInitializer
vendor: 4,496 bytes, line 4
4s:!1});return j2({r3Injector:a.injector,platformInjector:o,rootComponent:r})}catch(o){return Promise.reject(o)}finally{Ee(he.BootstrapApplicationEnd)}}function tu(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function K2(e,r=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):r}function p0(e){let r=Zr(e);if(!r)return null;let t=new Po(r);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return r.standalone},get isSignal(){return r.signals}}}var g0=null;function Ar(){return g0}function CS(e){g0??=e}var nu=class{},ci=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>g(m0),providedIn:"platform"})}return e})(),ru=new C(""),m0=(()=>{class e extends ci{_location;_history;_doc=g(fe);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ar().getBaseHref(this._doc)}onPopState(t){let n=Ar().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=Ar().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,i){this._history.pushState(t,n,i)}replaceState(t,n,i){this._history.replaceState(t,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Hf(e,r){return e?r?e.endsWith("/")?r.startsWith("/")?e+r.slice(1):e+r:r.startsWith("/")?e+r:`${e}/${r}`:e:r}function v0(e){let r=e.search(/#|\?|$/);return e[r-1]==="/"?e.slice(0,r-1)+e.slice(r):e}function Qn(e){return e&&e[0]!=="?"?`?${e}`:e}var Jn=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>g(zf),providedIn:"root"})}return e})(),Vf=new C(""),zf=(()=>{class e extends Jn{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??g(fe).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Hf(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+Qn(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${n}${i}`:n}pushState(t,n,i,o){let s=this.prepareExternalUrl(i+Qn(o));this._platformLocation.pushState(t,n,s)}replaceState(t,n,i,o){let s=this.prepareExternalUrl(i+Qn(o));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(f(ci),f(Vf,8))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sn=(()=>{class e{_subject=new X;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=J2(v0(y0(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+Qn(n))}normalize(t){return e.stripTrailingSlash(Q2(this._basePath,y0(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}
vendor: 5,132 bytes, line 4
4go(t,n="",i=null){this._locationStrategy.pushState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Qn(n)),i)}replaceState(t,n="",i=null){this._locationStrategy.replaceState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Qn(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEach(i=>i(t,n))}subscribe(t,n,i){return this._subject.subscribe({next:t,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=Qn;static joinWithSlash=Hf;static stripTrailingSlash=v0;static \u0275fac=function(n){return new(n||e)(f(Jn))};static \u0275prov=m({token:e,factory:()=>Z2(),providedIn:"root"})}return e})();function Z2(){return new sn(f(Jn))}function Q2(e,r){if(!e||!r.startsWith(e))return r;let t=r.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:r}function y0(e){return e.replace(/\/index\.html$/,"")}function J2(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var NS=(()=>{class e extends Jn{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=Hf(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,i,o){let s=this.prepareExternalUrl(i+Qn(o))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,s)}replaceState(t,n,i,o){let s=this.prepareExternalUrl(i+Qn(o))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||e)(f(ci),f(Vf,8))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})();var OS=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(OS||{});var _t=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(_t||{}),Te=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(Te||{}),Kt=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(Kt||{}),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 eh(e){return qt(e)[Le.LocaleId]}function T0(e,r,t){let n=qt(e),i=[n[Le.DayPeriodsFormat],n[Le.DayPeriodsStandalone]],o=wn(i,r);return wn(o,t)}function b0(e,r,t){let n=qt(e),i=[n[Le.DaysFormat],n[Le.DaysStandalone]],o=wn(i,r);return wn(o,t)}function w0(e,r,t){let n=qt(e),i=[n[Le.MonthsFormat],n[Le.MonthsStandalone]],o=wn(i,r);return wn(o,t)}function _0(e,r){let n=qt(e)[Le.Eras];return wn(n,r)}function iu(e,r){let t=qt(e);return wn(t[Le.DateFormat],r)}function ou(e,r){let t=qt(e);return wn(t[Le.TimeFormat],r)}function su(e,r){let n=qt(e)[Le.DateTimeFormat];return wn(n,r)}function Rr(e,r){let t=qt(e),n=t[Le.NumberSymbols][r];if(typeof n>"u"){if(r===Zt.CurrencyDecimal)return t[Le.NumberSymbols][Zt.Decimal];if(r===Zt.CurrencyGroup)return t[Le.NumberSymbols][Zt.Group]}return n}function A0(e,r){return qt(e)[Le.NumberFormats][r]}function R0(e){if(!e[Le.ExtraData])throw new N(2303,!1)}function M0(e){let r=qt(e);return R0(r),(r[Le.ExtraData][2]||[]).map(n=>typeof n=="string"?DS(n):[DS(n[0]),DS(n[1])])}function N0(e,r,t){let n=qt(e);R0(n);let i=[n[Le.ExtraData][0],n[Le.ExtraData][1]],o=wn(i,r)||[];return wn(o,t)||[]}function wn(e,r){for(let t=r;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new N(2304,!1)}function DS(e){let[r,t]=e.split(":");return{hours:+r,minutes:+t}}var X2=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Gf={},ez=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,tz=256;function O0(e,r,t,n){let i=dz(e);nz(r),r=ui(t,r)||r;let s=[],a;for(;r;)if(a=ez.exec(r),a){s=s.concat(a.slice(1));let l=s.pop();if(!l)break;r=l}else{s.push(r);break}let c=i.getTimezoneOffset();n&&(c=L0(n,c),i=lz(i,n));let u="";
vendor: 4,254 bytes, line 4
4return s.forEach(l=>{let d=cz(l);u+=d?d(i,t,c):l==="''"?"'":l.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function nz(e){if(e.length>tz)throw new N(2300,!1)}function Zf(e,r,t){let n=new Date(0);return n.setFullYear(e,r,t),n.setHours(0,0,0),n}function ui(e,r){let t=eh(e);if(Gf[t]??={},Gf[t][r])return Gf[t][r];let n="";switch(r){case"shortDate":n=iu(e,Kt.Short);break;case"mediumDate":n=iu(e,Kt.Medium);break;case"longDate":n=iu(e,Kt.Long);break;case"fullDate":n=iu(e,Kt.Full);break;case"shortTime":n=ou(e,Kt.Short);break;case"mediumTime":n=ou(e,Kt.Medium);break;case"longTime":n=ou(e,Kt.Long);break;case"fullTime":n=ou(e,Kt.Full);break;case"short":let i=ui(e,"shortTime"),o=ui(e,"shortDate");n=Wf(su(e,Kt.Short),[i,o]);break;case"medium":let s=ui(e,"mediumTime"),a=ui(e,"mediumDate");n=Wf(su(e,Kt.Medium),[s,a]);break;case"long":let c=ui(e,"longTime"),u=ui(e,"longDate");n=Wf(su(e,Kt.Long),[c,u]);break;case"full":let l=ui(e,"fullTime"),d=ui(e,"fullDate");n=Wf(su(e,Kt.Full),[l,d]);break}return n&&(Gf[t][r]=n),n}function Wf(e,r){return r&&(e=e.replace(/\{([^}]+)}/g,function(t,n){return r!=null&&n in r?r[n]:t})),e}function Xn(e,r,t="-",n,i){let o="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,o=t));let s=String(e);for(;s.length<r;)s="0"+s;return n&&(s=s.slice(s.length-r)),o+s}function rz(e,r){return Xn(e,3).substring(0,r)}function Ye(e,r,t=0,n=!1,i=!1){return function(o,s){let a=iz(e,o);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return rz(a,r);let c=Rr(s,Zt.MinusSign);return Xn(a,r,c,n,i)}}function iz(e,r){switch(e){case 0:return r.getFullYear();case 1:return r.getMonth();case 2:return r.getDate();case 3:return r.getHours();case 4:return r.getMinutes();case 5:return r.getSeconds();case 6:return r.getMilliseconds();case 7:return r.getDay();default:throw new N(2301,!1)}}function Ae(e,r,t=_t.Format,n=!1){return function(i,o){return oz(i,o,e,r,t,n)}}function oz(e,r,t,n,i,o){switch(t){case 2:return w0(r,i,n)[e.getMonth()];case 1:return b0(r,i,n)[e.getDay()];case 0:let s=e.getHours(),a=e.getMinutes();if(o){let u=M0(r),l=N0(r,i,n),d=u.findIndex(h=>{if(Array.isArray(h)){let[p,E]=h,D=s>=p.hours&&a>=p.minutes,b=s<E.hours||s===E.hours&&a<E.minutes;if(p.hours<E.hours){if(D&&b)return!0}else if(D||b)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return l[d]}return T0(r,i,n)[s<12?0:1];case 3:return _0(r,n)[e.getFullYear()<=0?0:1];default:let c=t;throw new N(2302,!1)}}function qf(e){return function(r,t,n){let i=-1*n,o=Rr(t,Zt.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+Xn(s,2,o)+Xn(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+Xn(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+Xn(s,2,o)+":"+Xn(Math.abs(i%60),2,o);case 3:return n===0?"Z":(i>=0?"+":"")+Xn(s,2,o)+":"+Xn(Math.abs(i%60),2,o);default:throw new N(2310,!1)}}}var sz=0,Kf=4;function az(e){let r=Zf(e,sz,1).getDay();return Zf(e,0,1+(r<=Kf?Kf:Kf+7)-r)}function x0(e){let r=e.getDay(),t=r===0?-3:Kf-r;return Zf(e.getFullYear(),e.getMonth(),e.getDate()+t)}function IS(e,r=!1){return function(t,n){let i;if(r){let o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+o)/7)}else{let o=x0(t),s=az(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return Xn(i,e,Rr(n,Zt.MinusSign))}}function Yf(e,r=!1){return function(t,n){let o=x0(t).getFullYear();return Xn(o,e,Rr(n,Zt.MinusSign),r)}}var TS={};function cz(e){if(TS[e])return TS[e];let r;switch(e){case"G":case"GG":case"GGG":r=Ae(3,Te.Abbreviated);break;case"GGGG":r=Ae(3,Te.Wide);break;case"GGGGG":r=Ae(3,Te.Narrow);break;case"y":r=Ye(0,1,0,!1,!0);break;case"yy":r=Ye(0,2,0,!0,!0);break;case"yyy":r=Ye(0,3,0,!1,!0);break;case"yyyy":r=Ye(0,4,0,!1,!0);break;case"Y":r=Yf(1);break;case"YY":r=Yf(2,!0);break;case"YYY":r=Yf(3);break;case"YYYY":r=Yf(4);break;case"M":case"L":r=Ye(1,1,1);break;case"MM":case"LL":r=Ye(1,2,1);break;case"MMM":r=Ae(2,Te.Abbreviated);break;case"MMMM":r=Ae(2,Te.Wide);break;case"MMMMM":r=Ae(2,Te.Narrow);break;case"LLL":r=Ae(2,Te.Abbreviated,_t.Standalone);break;case"LLLL":r=Ae(2,Te.Wide,_t.Standalone);break;case"LLLLL":r=Ae(2,Te.Narrow,_t.Standalone);break;case"w":r=IS(1);break;case"ww":r=IS(2);break;case"W":r=IS(1,!0);break;case"d":r=Ye(2,1);break;case"dd":r=Ye(2,2);break;
vendor: 8,447 bytes, line 4
4case"c":case"cc":r=Ye(7,1);break;case"ccc":r=Ae(1,Te.Abbreviated,_t.Standalone);break;case"cccc":r=Ae(1,Te.Wide,_t.Standalone);break;case"ccccc":r=Ae(1,Te.Narrow,_t.Standalone);break;case"cccccc":r=Ae(1,Te.Short,_t.Standalone);break;case"E":case"EE":case"EEE":r=Ae(1,Te.Abbreviated);break;case"EEEE":r=Ae(1,Te.Wide);break;case"EEEEE":r=Ae(1,Te.Narrow);break;case"EEEEEE":r=Ae(1,Te.Short);break;case"a":case"aa":case"aaa":r=Ae(0,Te.Abbreviated);break;case"aaaa":r=Ae(0,Te.Wide);break;case"aaaaa":r=Ae(0,Te.Narrow);break;case"b":case"bb":case"bbb":r=Ae(0,Te.Abbreviated,_t.Standalone,!0);break;case"bbbb":r=Ae(0,Te.Wide,_t.Standalone,!0);break;case"bbbbb":r=Ae(0,Te.Narrow,_t.Standalone,!0);break;case"B":case"BB":case"BBB":r=Ae(0,Te.Abbreviated,_t.Format,!0);break;case"BBBB":r=Ae(0,Te.Wide,_t.Format,!0);break;case"BBBBB":r=Ae(0,Te.Narrow,_t.Format,!0);break;case"h":r=Ye(3,1,-12);break;case"hh":r=Ye(3,2,-12);break;case"H":r=Ye(3,1);break;case"HH":r=Ye(3,2);break;case"m":r=Ye(4,1);break;case"mm":r=Ye(4,2);break;case"s":r=Ye(5,1);break;case"ss":r=Ye(5,2);break;case"S":r=Ye(6,1);break;case"SS":r=Ye(6,2);break;case"SSS":r=Ye(6,3);break;case"Z":case"ZZ":case"ZZZ":r=qf(0);break;case"ZZZZZ":r=qf(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":r=qf(1);break;case"OOOO":case"ZZZZ":case"zzzz":r=qf(2);break;default:return null}return TS[e]=r,r}function L0(e,r){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?r:t}function uz(e,r){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+r),e}function lz(e,r,t){let i=e.getTimezoneOffset(),o=L0(r,i);return uz(e,-1*(o-i))}function dz(e){if(E0(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,o=1,s=1]=e.split("-").map(a=>+a);return Zf(i,o-1,s)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let n;if(n=e.match(X2))return fz(n)}let r=new Date(e);if(!E0(r))throw new N(2311,!1);return r}function fz(e){let r=new Date(0),t=0,n=0,i=e[8]?r.setUTCFullYear:r.setFullYear,o=e[8]?r.setUTCHours:r.setHours;e[9]&&(t=Number(e[9]+e[10]),n=Number(e[9]+e[11])),i.call(r,Number(e[1]),Number(e[2])-1,Number(e[3]));let s=Number(e[4]||0)-t,a=Number(e[5]||0)-n,c=Number(e[6]||0),u=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return o.call(r,s,a,c,u),r}function E0(e){return e instanceof Date&&!isNaN(e.valueOf())}var hz=/^(\d+)?\.((\d+)(-(\d+))?)?$/,S0=22,Qf=".",au="0",pz=";",gz=",",bS="#";function mz(e,r,t,n,i,o,s=!1){let a="",c=!1;if(!isFinite(e))a=Rr(t,Zt.Infinity);else{let u=Ez(e);s&&(u=yz(u));let l=r.minInt,d=r.minFrac,h=r.maxFrac;if(o){let M=o.match(hz);if(M===null)throw new N(2306,!1);let ae=M[1],Z=M[3],Ne=M[5];ae!=null&&(l=wS(ae)),Z!=null&&(d=wS(Z)),Ne!=null?h=wS(Ne):Z!=null&&d>h&&(h=d);let Oe=100;if(l>Oe||d>Oe||h>Oe)throw new N(2306,!1)}Sz(u,d,h);let p=u.digits,E=u.integerLen,D=u.exponent,b=[];for(c=p.every(M=>!M);E<l;E++)p.unshift(0);for(;E<0;E++)p.unshift(0);E>0?b=p.splice(E,p.length):(b=p,p=[0]);let R=[];for(p.length>=r.lgSize&&R.unshift(p.splice(-r.lgSize,p.length).join(""));p.length>r.gSize;)R.unshift(p.splice(-r.gSize,p.length).join(""));p.length&&R.unshift(p.join("")),a=R.join(Rr(t,n)),b.length&&(a+=Rr(t,i)+b.join("")),D&&(a+=Rr(t,Zt.Exponential)+"+"+D)}return e<0&&!c?a=r.negPre+a+r.negSuf:a=r.posPre+a+r.posSuf,a}function P0(e,r,t){let n=A0(r,OS.Decimal),i=vz(n,Rr(r,Zt.MinusSign));return mz(e,i,r,Zt.Group,Zt.Decimal,t)}function vz(e,r="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=e.split(pz),i=n[0],o=n[1],s=i.indexOf(Qf)!==-1?i.split(Qf):[i.substring(0,i.lastIndexOf(au)+1),i.substring(i.lastIndexOf(au)+1)],a=s[0],c=s[1]||"";t.posPre=a.substring(0,a.indexOf(bS));for(let l=0;l<c.length;l++){let d=c.charAt(l);d===au?t.minFrac=t.maxFrac=l+1:d===bS?t.maxFrac=l+1:t.posSuf+=d}let u=a.split(gz);if(t.gSize=u[1]?u[1].length:0,t.lgSize=u[2]||u[1]?(u[2]||u[1]).length:0,o){let l=i.length-t.posPre.length-t.posSuf.length,d=o.indexOf(bS);t.negPre=o.substring(0,d).replace(/'/g,""),t.negSuf=o.slice(d+l).replace(/'/g,"")}else t.negPre=r+t.posPre,t.negSuf=t.posSuf;return t}function yz(e){if(e.digits[0]===0)return e;let r=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(r===0?e.digits.push(0,0):r===1&&e.digits.push(0),e.integerLen+=2),e}function Ez(e){let r=Math.abs(e)+"",t=0,n,i,o,s,a;for((i=r.indexOf(Qf))>-1&&(r=r.replace(Qf,"")),(o=r.search(/e/i))>0?(i<0&&(i=o),i+=+r.slice(o+1),r=r.substring(0,o)):i<0&&(i=r.length),o=0;r.charAt(o)===au;o++);if(o===(a=r.length))n=[0],i=1;else{for(a--;r.charAt(a)===au;)a--;for(i-=o,n=[],s=0;o<=a;o++,s++)n[s]=Number(r.charAt(o))}return i>S0&&(n=n.splice(0,S0-1),t=i-1,i=1),{digits:n,exponent:t,integerLen:i}}function Sz(e,r,t){if(r>t)throw new N(2307,!1);let n=e.digits,i=n.length-e.integerLen,o=Math.min(Math.max(r,i),t),s=o+e.integerLen,a=n[s];if(s>0){n.splice(Math.max(e.integerLen,s));for(let d=s;d<n.length;d++)n[d]=0}else{i=Math.max(0,i),e.integerLen=1,n.length=Math.max(1,s=o+1),n[0]=0;for(let d=1;d<s;d++)n[d]=0}if(a>=5)if(s-1<0){for(let d=0;d>s;d--)n.unshift(0),e.integerLen++;n.unshift(1),e.integerLen++}else n[s-1]++;for(;i<Math.max(0,o);i++)n.push(0);let c=o!==0,u=r+e.integerLen,l=n.reduceRight(function(d,h,p,E){return h=h+d,E[p]=h<10?h:h-10,c&&(E[p]===0&&p>=u?E.pop():c=!1),h>=10?1:0},0);l&&(n.unshift(l),e.integerLen++)}function wS(e){let r=parseInt(e);if(isNaN(r))throw new N(2305,!1);return r}var _S=/\s+/,C0=[],Cz=(()=>{class e{_ngEl;_renderer;initialClasses=C0;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(_S):C0}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(_S):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let i=this.stateMap.get(t);i!==void 0?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],i=t[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(_S).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||e)(se(wr),se(Ws))};static \u0275dir=Wt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Jf=class{$implicit;ngForOf;index;count;constructor(r,t,n,i){this.$implicit=r,this.ngForOf=t,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},F0=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,i){this._viewContainer=t,this._template=n,this._differs=i}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((i,o,s)=>{if(i.previousIndex==null)n.createEmbeddedView(this._template,new Jf(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(o===null?void 0:o);else if(o!==null){let a=n.get(o);n.move(a,s),D0(a,i)}});for(let i=0,o=n.length;i<o;i++){let a=n.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{let o=n.get(i.currentIndex);D0(o,i)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(se(on),se(Kn),se(SS))};static \u0275dir=Wt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function D0(e,r){e.context.$implicit=r.item}var Dz=(()=>{class e{_viewContainer;_context=new Xf;_thenTemplateRef=null;_elseTemplateRef=null;
4_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){I0(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){I0(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||e)(se(on),se(Kn))};static \u0275dir=Wt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Xf=class{$implicit=null;ngIf=null};function I0(e,r){if(e&&!e.createEmbeddedView)throw new N(2020,!1)}var AS=class{_viewContainerRef;_templateRef;_created=!1;constructor(r,t){this._viewContainerRef=r,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(r){r&&!this._created?this.create():!r&&this._created&&this.destroy()}},k0=(()=>{class e{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Wt({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return e})(),Iz=(()=>{class e{ngSwitch;_view;ngSwitchCase;constructor(t,n,i){this.ngSwitch=i,i._addCase(),this._view=new AS(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||e)(se(on),se(Kn),se(k0,9))};static \u0275dir=Wt({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return e})();var Tz=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=g(de);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(t,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||e)(se(on))};static \u0275dir=Wt({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Uo]})}return e})();function cu(e,r){return new N(2100,!1)}var RS=class{createSubscription(r,t,n){return be(()=>r.subscribe({next:t,error:n}))}dispose(r){be(()=>r.unsubscribe())}},MS=class{createSubscription(r,t,n){return r.then(i=>t?.(i),i=>n?.(i)),{unsubscribe:()=>{t=null,n=null}}}dispose(r){r.unsubscribe()}},bz=new MS,wz=new RS,_z=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=g(Ut);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n),n=>this.applicationErrorHandler(n))}_selectStrategy(t){if(jo(t))return bz;if(Of(t))return wz;throw cu(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||e)(se(Hi,16))};static \u0275pipe=bn({name:"async",type:e,pure:!1})}return e})(),Az=(()=>{class e{transform(t){return t==null?null:(U0(e,t),t.toLowerCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=bn({name:"lowercase",type:e,pure:!0})}return e})();var Rz=(()=>{class e{transform(t){return t==null?null:(U0(e,t),t.toUpperCase())}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=bn({name:"uppercase",type:e,pure:!0})}return e})();function U0(e,r){if(typeof r!="string")throw cu(e,r)}var Mz="mediumDate",j0=new C(""),$0=new C(""),xS=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,n,i){this.locale=t,this.defaultTimezone=n,this.defaultOptions=i}transform(t,n,i,o){if(t==null||t===""||t!==t)return null;try{let s=n??this.defaultOptions?.dateFormat??Mz,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return O0(t,s,o||this.locale,a)}catch(s){throw cu(e,s.message)}}static \u0275fac=function(n){return new(n||e)(se(Zs,16),se(j0,24),se($0,24))};static \u0275pipe=bn({name:"date",type:e,pure:!0})}return e})();var B0=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,n,i){if(!Nz(t))return null;i||=this._locale;try{let o=Oz(t);return P0(o,i,n)}catch(o){throw cu(e,o.message)}}static \u0275fac=function(n){return new(n||e)(se(Zs,16))};static \u0275pipe=bn({name:"number",type:e,pure:!0})}return e})();function Nz(e){return!(e==null||e===""||e!==e)}function Oz(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new N(2309,!1);return e}var xz=(()=>{class e{transform(t,n,i){if(t==null)return null;if(!(typeof t=="string"||Array.isArray(t)))throw cu(e,t);return t.slice(n,i)}static \u0275fac=function(n){return new(n||e)};static \u0275pipe=bn({name:"slice",type:e,pure:!1})}return e})();var Ke=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=U({type:e});static \u0275inj=P({})}return e})();function uu(e,r){r=encodeURIComponent(r);for(let t of e.split(";")){let n=t.indexOf("="),[i,o]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(i.trim()===r)return decodeURIComponent(o)}return null}var $o=class{};function Fme(e,r,t){return uS(e,r,t)}var PS="browser",Lz="server";function Vi(e){return e===PS}function FS(e){return e===Lz}var kS=(()=>{class e{static \u0275prov=m({token:e,providedIn:"root",factory:()=>new LS(g(fe),window)})}return e})(),LS=class{document;window;offset=()=>[0,0];constructor(r,t){this.document=r,this.window=t}setOffset(r){Array.isArray(r)?this.offset=()=>r:this.offset=r}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(r,t){this.window.scrollTo(T(v({},t),{left:r[0],top:r[1]}))}scrollToAnchor(r,t){let n=Pz(this.document,r);n&&(this.scrollToElement(n,t),n.focus({preventScroll:!0}))}setHistoryScrollRestoration(r){try{this.window.history.scrollRestoration=r}catch(t){console.warn(vn(2400,!1))}}scrollToElement(r,t){let n=r.getBoundingClientRect(),i=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(T(v({},t),{left:i-s[0],top:o-s[1]}))}};function Pz(e,r){let t=e.getElementById(r)||e.getElementsByName(r)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let n=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(r)||o.querySelector(`[name="${r}"]`);if(s)return s}i=n.nextNode()}}return null}var lu=class{_doc;constructor(r){this._doc=r}manager},th=(()=>{class e extends lu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,i,o){return t.addEventListener(n,i,o),()=>this.removeEventListener(t,n,i,o)}removeEventListener(t,n,i,o){return t.removeEventListener(n,i,o)}static \u0275fac=function(n){return new(n||e)(f(fe))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),ih=new C(""),BS=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,n){this._zone=n,t.forEach(s=>{s.manager=this});let i=t.filter(s=>!(s instanceof th));this._plugins=i.slice().reverse();let o=t.find(s=>
vendor: 17,826 bytes, lines 4-5
4s instanceof th);o&&this._plugins.push(o)}addEventListener(t,n,i,o){return this._findPluginFor(n).addEventListener(t,n,i,o)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(o=>o.supports(t)),!n)throw new N(5101,!1);return this._eventNameToPlugin.set(t,n),n}static \u0275fac=function(n){return new(n||e)(f(ih),f(De))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),US="ng-app-id";function V0(e){for(let r of e)r.remove()}function z0(e,r){let t=r.createElement("style");return t.textContent=e,t}function Fz(e,r,t,n){let i=e.head?.querySelectorAll(`style[${US}="${r}"],link[${US}="${r}"]`);if(i)for(let o of i)o.removeAttribute(US),o instanceof HTMLLinkElement?n.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&t.set(o.textContent,{usage:0,elements:[o]})}function $S(e,r){let t=r.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),t}var HS=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(t,n,i,o={}){this.doc=t,this.appId=n,this.nonce=i,Fz(t,n,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,n){for(let i of t)this.addUsage(i,this.inline,z0);n?.forEach(i=>this.addUsage(i,this.external,$S))}removeStyles(t,n){for(let i of t)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(t,n,i){let o=n.get(t);o?o.usage++:n.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(t,this.doc)))})}removeUsage(t,n){let i=n.get(t);i&&(i.usage--,i.usage<=0&&(V0(i.elements),n.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])V0(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(t,z0(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(t,$S(n,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,n){return this.nonce&&n.setAttribute("nonce",this.nonce),t.appendChild(n)}static \u0275fac=function(n){return new(n||e)(f(fe),f(Vc),f(zs,8),f(bt))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),jS={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"},VS=/%COMP%/g;var W0="%COMP%",kz=`_nghost-${W0}`,Uz=`_ngcontent-${W0}`,jz=!0,$z=new C("",{factory:()=>jz});function Bz(e){return Uz.replace(VS,e)}function Hz(e){return kz.replace(VS,e)}function q0(e,r){return r.map(t=>t.replace(VS,e))}var zS=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(t,n,i,o,s,a,c=null,u=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new du(t,s,a,this.tracingService)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(t,n);return i instanceof rh?i.applyToHost(t):i instanceof fu&&i.applyStyles(),i}getOrCreateRenderer(t,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(n.encapsulation){case Yn.Emulated:o=new rh(c,u,n,this.appId,l,s,a,d);break;case Yn.ShadowDom:return new nh(c,t,n,s,a,this.nonce,d,u);case Yn.ExperimentalIsolatedShadowDom:return new nh(c,t,n,s,a,this.nonce,d);default:o=new fu(c,u,n,l,s,a,d);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(n){return new(n||e)(f(BS),f(HS),f(Vc),f($z),f(fe),f(De),f(zs),f(_r,8))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),du=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(r,t,n,i){this.eventManager=r,this.doc=t,this.ngZone=n,this.tracingService=i}destroy(){}destroyNode=null;createElement(r,t){return t?this.doc.createElementNS(jS[t]||t,r):this.doc.createElement(r)}createComment(r){return this.doc.createComment(r)}createText(r){return this.doc.createTextNode(r)}appendChild(r,t){(G0(r)?r.content:r).appendChild(t)}insertBefore(r,t,n){r&&(G0(r)?r.content:r).insertBefore(t,n)}removeChild(r,t){t.remove()}selectRootElement(r,t){let n=typeof r=="string"?this.doc.querySelector(r):r;if(!n)throw new N(-5104,!1);return t||(n.textContent=""),n}parentNode(r){return r.parentNode}nextSibling(r){return r.nextSibling}setAttribute(r,t,n,i){if(i){t=i+":"+t;let o=jS[i];o?r.setAttributeNS(o,t,n):r.setAttribute(t,n)}else r.setAttribute(t,n)}removeAttribute(r,t,n){if(n){let i=jS[n];i?r.removeAttributeNS(i,t):r.removeAttribute(`${n}:${t}`)}else r.removeAttribute(t)}addClass(r,t){r.classList.add(t)}removeClass(r,t){r.classList.remove(t)}setStyle(r,t,n,i){i&(br.DashCase|br.Important)?r.style.setProperty(t,n,i&br.Important?"important":""):r.style[t]=n}removeStyle(r,t,n){n&br.DashCase?r.style.removeProperty(t):r.style[t]=""}setProperty(r,t,n){r!=null&&(r[t]=n)}setValue(r,t){r.nodeValue=t}listen(r,t,n,i){if(typeof r=="string"&&(r=Ar().getGlobalEventTarget(this.doc,r),!r))throw new N(5102,!1);let o=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(r,t,o)),this.eventManager.addEventListener(r,t,o,i)}decoratePreventDefault(r){return t=>{if(t==="__ngUnwrap__")return r;r(t)===!1&&t.preventDefault()}}};function G0(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var nh=class extends du{hostEl;sharedStylesHost;shadowRoot;constructor(r,t,n,i,o,s,a,c){super(r,i,o,a),this.hostEl=t,this.sharedStylesHost=c,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=n.styles;u=q0(n.id,u);for(let d of u){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}let l=n.getExternalStyles?.();if(l)for(let d of l){let h=$S(d,i);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(r){return r===this.hostEl?this.shadowRoot:r}appendChild(r,t){return super.appendChild(this.nodeOrShadowRoot(r),t)}insertBefore(r,t,n){return super.insertBefore(this.nodeOrShadowRoot(r),t,n)}removeChild(r,t){return super.removeChild(null,t)}parentNode(r){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(r)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},fu=class extends du{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(r,t,n,i,o,s,a,c){super(r,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i;let u=n.styles;this.styles=c?q0(c,u):u,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Lo.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},rh=class extends fu{contentAttr;hostAttr;constructor(r,t,n,i,o,s,a,c){let u=i+"-"+n.id;super(r,t,n,o,s,a,c,u),this.contentAttr=Bz(u),this.hostAttr=Hz(u)}applyToHost(r){this.applyStyles(),this.setAttribute(r,this.hostAttr,"")}createElement(r,t){let n=super.createElement(r,t);return super.setAttribute(n,this.contentAttr,""),n}};var oh=class e extends nu{supportsDOMEvents=!0;static makeCurrent(){CS(new e)}onAndCancel(r,t,n,i){return r.addEventListener(t,n,i),()=>{r.removeEventListener(t,n,i)}}dispatchEvent(r,t){r.dispatchEvent(t)}remove(r){r.remove()}createElement(r,t){return t=t||this.getDefaultDocument(),t.createElement(r)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(r){return r.nodeType===Node.ELEMENT_NODE}isShadowRoot(r){return r instanceof DocumentFragment}getGlobalEventTarget(r,t){return t==="window"?window:t==="document"?r:t==="body"?r.body:null}getBaseHref(r){let t=Vz();return t==null?null:zz(t)}resetBaseElement(){hu=null}getUserAgent(){return window.navigator.userAgent}getCookie(r){return uu(document.cookie,r)}},hu=null;function Vz(){return hu=hu||document.head.querySelector("base"),hu?hu.getAttribute("href"):null}function zz(e){return new URL(e,document.baseURI).pathname}var Gz=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),Y0=["alt","control","meta","shift"],Wz={"\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"},qz={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},K0=(()=>{class e extends lu{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,n,i,o){let s=e.parseEventName(n),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Ar().onAndCancel(t,s.domEventName,a,o))}static parseEventName(t){let n=t.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=e._normalizeKey(n.pop()),s="",a=n.indexOf("code");if(a>-1&&(n.splice(a,1),s="code."),Y0.forEach(u=>{let l=n.indexOf(u);l>-1&&(n.splice(l,1),s+=u+".")}),s+=o,n.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(t,n){let i=Wz[t.key]||t.key,o="";return n.indexOf("code.")>-1&&(i=t.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Y0.forEach(s=>{if(s!==i){let a=qz[s];a(t)&&(o+=s+".")}}),o+=i,o===n)}static eventCallback(t,n,i){return o=>{e.matchEventFullKeyCode(o,t)&&i.runGuarded(()=>n(o))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(n){return new(n||e)(f(fe))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})();function Yz(e,r,t){return Q(this,null,function*(){let n=v({rootComponent:e},Kz(r,t));return h0(n)})}function Kz(e,r){return{platformRef:r?.platformRef,appProviders:[...eG,...e?.providers??[]],platformProviders:Xz}}function Zz(){oh.makeCurrent()}function Qz(){return new qe}function Jz(){return yE(document),document}var Xz=[{provide:bt,useValue:PS},{provide:vf,useValue:Zz,multi:!0},{provide:fe,useFactory:Jz}];var eG=[{provide:yc,useValue:"root"},{provide:qe,useFactory:Qz},{provide:ih,useClass:th,multi:!0},{provide:ih,useClass:K0,multi:!0},zS,HS,BS,{provide:ii,useExisting:zS},{provide:$o,useClass:Gz},[]];var oe=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(r){r?typeof r=="string"?this.lazyInit=()=>{this.headers=new Map,r.split(` 5`).forEach(t=>{let n=t.indexOf(":");if(n>0){let i=t.slice(0,n),o=t.slice(n+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&r instanceof Headers?(this.headers=new Map,r.forEach((t,n)=>{this.addHeaderEntry(n,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(r).forEach(([t,n])=>{this.setHeaderEntries(t,n)})}:this.headers=new Map}has(r){return this.init(),this.headers.has(r.toLowerCase())}get(r){this.init();let t=this.headers.get(r.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(r){return this.init(),this.headers.get(r.toLowerCase())||null}append(r,t){return this.clone({name:r,value:t,op:"a"})}set(r,t){return this.clone({name:r,value:t,op:"s"})}delete(r,t){return this.clone({name:r,value:t,op:"d"})}maybeSetNormalizedName(r,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,r)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(r=>this.applyUpdate(r)),this.lazyUpdate=null))}copyFrom(r){r.init(),Array.from(r.headers.keys()).forEach(t=>{this.headers.set(t,r.headers.get(t)),this.normalizedNames.set(t,r.normalizedNames.get(t))})}clone(r){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([r]),t}applyUpdate(r){let t=r.name.toLowerCase();switch(r.op){case"a":case"s":let n=r.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(r.name,t);let i=(r.op==="a"?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":let o=r.value;if(!o)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}addHeaderEntry(r,t){let n=r.toLowerCase();this.maybeSetNormalizedName(r,n),this.headers.has(n)?this.headers.get(n).push(t):this.headers.set(n,[t])}setHeaderEntries(r,t){let n=(Array.isArray(t)?t:[t]).map(o=>o.toString()),i=r.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(r,i)}forEach(r){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>r(this.normalizedNames.get(t),this.headers.get(t)))}};var Js=class{defaultValue;constructor(r){this.defaultValue=r}},Bo=class{map=new Map;set(r,t){return this.map.set(r,t),this}get(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}delete(r){return this.map.delete(r),this}has(r){return this.map.has(r)}keys(){return this.map.keys()}},ch=class{encodeKey(r){return Z0(r)}encodeValue(r){return Z0(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}};function tG(e,r){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[r.decodeKey(i),""]:[r.decodeKey(i.slice(0,o)),r.decodeValue(i.slice(o+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}var nG=/%(\d[a-f0-9])/gi,rG={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Z0(e){return encodeURIComponent(e).replace(nG,(r,t)=>rG[t]??r)}function sh(e){return`${e}`}var Pe=class e{map;encoder;updates=null;cloneFrom=null;constructor(r={}){if(this.encoder=r.encoder||new ch,r.fromString){if(r.fromObject)throw new N(2805,!1);this.map=tG(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(t=>{let n=r.fromObject[t],i=Array.isArray(n)?n.map(sh):[sh(n)];this.map.set(t,i)})):this.map=null}has(r){return this.init(),this.map.has(r)}get(r){this.init();let t=this.map.get(r);return t?t[0]:null}getAll(r){return this.init(),this.map.get(r)||null}keys(){return this.init(),Array.from(this.map.keys())}append(r,t){return this.clone({param:r,value:t,op:"a"})}appendAll(r){let t=[];return Object.keys(r).forEach(n=>{let i=r[n];Array.isArray(i)?i.forEach(o=>{t.push({param:n,value:o,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(r,t){return this.clone({param:r,value:t,op:"s"})}delete(r,t){return this.clone({param:r,value:t,op:"d"})}toString(){return this.init(),this.keys().map(r=>{let t=this.encoder.encodeKey(r);return this.map.get(r).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(r=>r!=="").join("&")}clone(r){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(r),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(r=>this.map.set(r,this.cloneFrom.map.get(r))),this.updates.forEach(r=>{switch(r.op){case"a":case"s":let t=(r.op==="a"?this.map.get(r.param):void 0)||[];t.push(sh(r.value)),this.map.set(r.param,t);break;case"d":if(r.value!==void 0){let n=this.map.get(r.param)||[],i=n.indexOf(sh(r.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(r.param,n):this.map.delete(r.param)}else{this.map.delete(r.param);break}}}),this.cloneFrom=this.updates=null)}};function iG(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Q0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function J0(e){return typeof Blob<"u"&&e instanceof Blob}function X0(e){return typeof FormData<"u"&&e instanceof FormData}function oG(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var pu="Content-Type",uh="Accept",nN="text/plain",rN="application/json",iN=`${rN}, ${nN}, */*`,Qs=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(r,t,n,i){this.url=t,this.method=r.toUpperCase();let o;if(iG(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new N(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer!==void 0&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new oe,this.context??=new Bo,!this.params)this.params=new Pe,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let a=t.indexOf("?"),c=a===-1?"?":a<t.length-1?"&":"";this.urlWithParams=t+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="str
5ing"||Q0(this.body)||J0(this.body)||X0(this.body)||oG(this.body)?this.body:this.body instanceof Pe?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||X0(this.body)?null:J0(this.body)?this.body.type||null:Q0(this.body)?null:typeof this.body=="string"?nN:this.body instanceof Pe?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?rN:null}clone(r={}){let t=r.method||this.method,n=r.url||this.url,i=r.responseType||this.responseType,o=r.keepalive??this.keepalive,s=r.priority||this.priority,a=r.cache||this.cache,c=r.mode||this.mode,u=r.redirect||this.redirect,l=r.credentials||this.credentials,d=r.referrer??this.referrer,h=r.integrity||this.integrity,p=r.referrerPolicy||this.referrerPolicy,E=r.transferCache??this.transferCache,D=r.timeout??this.timeout,b=r.body!==void 0?r.body:this.body,R=r.withCredentials??this.withCredentials,M=r.reportProgress??this.reportProgress,ae=r.headers||this.headers,Z=r.params||this.params,Ne=r.context??this.context;return r.setHeaders!==void 0&&(ae=Object.keys(r.setHeaders).reduce((Oe,at)=>Oe.set(at,r.setHeaders[at]),ae)),r.setParams&&(Z=Object.keys(r.setParams).reduce((Oe,at)=>Oe.set(at,r.setParams[at]),Z)),new e(t,n,b,{params:Z,headers:ae,context:Ne,reportProgress:M,responseType:i,withCredentials:R,transferCache:E,keepalive:o,cache:a,priority:s,timeout:D,mode:c,redirect:u,credentials:l,referrer:d,integrity:h,referrerPolicy:p})}},_n=(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})(_n||{}),Xs=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(r,t=200,n="OK"){this.headers=r.headers||new oe,this.status=r.status!==void 0?r.status:t,this.statusText=r.statusText||n,this.url=r.url||null,this.redirected=r.redirected,this.responseType=r.responseType,this.ok=this.status>=200&&this.status<300}},gu=class e extends Xs{constructor(r={}){super(r)}type=_n.ResponseHeader;clone(r={}){return new e({headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0})}},li=class e extends Xs{body;constructor(r={}){super(r),this.body=r.body!==void 0?r.body:null}type=_n.Response;clone(r={}){return new e({body:r.body!==void 0?r.body:this.body,headers:r.headers||this.headers,status:r.status!==void 0?r.status:this.status,statusText:r.statusText||this.statusText,url:r.url||this.url||void 0,redirected:r.redirected??this.redirected,responseType:r.responseType??this.responseType})}},Ze=class extends Xs{name="HttpErrorResponse";message;error;ok=!1;constructor(r){super(r,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${r.url||"(unknown url)"}`:this.message=`Http failure response for ${r.url||"(unknown url)"}: ${r.status} ${r.statusText}`,this.error=r.error||null}},YS=200,sG=204;var aG=/^\)\]\}',?\n/,oN=new C(""),ah=(()=>{class e{fetchImpl=g(WS,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=g(De);destroyRef=g(ze);handle(t){return new L(n=>{let i=new AbortController;this.doRequest(t,i.signal,n).then(qS,s=>n.error(new Ze({error:s})));let o;return t.timeout&&(o=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},t.timeout))),()=>{o!==void 0&&clearTimeout(o),i.abort()}})}
vendor: 5,640 bytes, line 5
5doRequest(t,n,i){return Q(this,null,function*(){let o=this.createRequestInit(t),s;try{let D=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,v({signal:n},o)));cG(D),i.next({type:_n.Sent}),s=yield D}catch(D){i.error(new Ze({error:D,status:D.status??0,statusText:D.statusText,url:t.urlWithParams,headers:D.headers}));return}let a=new oe(s.headers),c=s.statusText,u=s.url||t.urlWithParams,l=s.status,d=null;if(t.reportProgress&&i.next(new gu({headers:a,status:l,statusText:c,url:u})),s.body){let D=s.headers.get("content-length"),b=[],R=s.body.getReader(),M=0,ae,Z,Ne=typeof Zone<"u"&&Zone.current,Oe=!1;if(yield this.ngZone.runOutsideAngular(()=>Q(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield R.cancel(),Oe=!0;break}let{done:sr,value:Ht}=yield R.read();if(sr)break;if(b.push(Ht),M+=Ht.length,t.reportProgress){Z=t.responseType==="text"?(Z??"")+(ae??=new TextDecoder).decode(Ht,{stream:!0}):void 0;let Ot=()=>i.next({type:_n.DownloadProgress,total:D?+D:void 0,loaded:M,partialText:Z});Ne?Ne.run(Ot):Ot()}}})),Oe){i.complete();return}let at=this.concatChunks(b,M);try{let sr=s.headers.get(pu)??"";d=this.parseBody(t,at,sr,l)}catch(sr){i.error(new Ze({error:sr,headers:new oe(s.headers),status:s.status,statusText:s.statusText,url:s.url||t.urlWithParams}));return}}l===0&&(l=d?YS:0);let h=l>=200&&l<300,p=s.redirected,E=s.type;h?(i.next(new li({body:d,headers:a,status:l,statusText:c,url:u,redirected:p,responseType:E})),i.complete()):i.error(new Ze({error:d,headers:a,status:l,statusText:c,url:u,redirected:p,responseType:E}))})}parseBody(t,n,i,o){switch(t.responseType){case"json":let s=new TextDecoder().decode(n).replace(aG,"");if(s==="")return null;try{return JSON.parse(s)}catch(a){if(o<200||o>=300)return s;throw a}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:i});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},i;if(i=t.credentials,t.withCredentials&&(i="include"),t.headers.forEach((o,s)=>n[o]=s.join(",")),t.headers.has(uh)||(n[uh]=iN),!t.headers.has(pu)){let o=t.detectContentTypeHeader();o!==null&&(n[pu]=o)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:i,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity,referrerPolicy:t.referrerPolicy}}concatChunks(t,n){let i=new Uint8Array(n),o=0;for(let s of t)i.set(s,o),o+=s.length;return i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),WS=class{};function qS(){}function cG(e){e.then(qS,qS)}var uG=/^\)\]\}',?\n/;var KS=(()=>{class e{xhrFactory;tracingService=g(_r,{optional:!0});constructor(t){this.xhrFactory=t}maybePropagateTrace(t){return this.tracingService?.propagate?this.tracingService.propagate(t):t}handle(t){if(t.method==="JSONP")throw new N(-2800,!1);let n=this.xhrFactory;return I(null).pipe(O(()=>new L(o=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((b,R)=>s.setRequestHeader(b,R.join(","))),t.headers.has(uh)||s.setRequestHeader(uh,iN),!t.headers.has(pu)){let b=t.detectContentTypeHeader();b!==null&&s.setRequestHeader(pu,b)}if(t.timeout&&(s.timeout=t.timeout),t.responseType){let b=t.responseType.toLowerCase();s.responseType=b!=="json"?b:"text"}let a=t.serializeBody(),c=null,u=()=>{if(c!==null)return c;let b=s.statusText||"OK",R=new oe(s.getAllResponseHeaders()),M=s.responseURL||t.url;return c=new gu({headers:R,status:s.status,statusText:b,url:M}),c},l=this.maybePropagateTrace(()=>{let{headers:b,status:R,statusText:M,url:ae}=u(),Z=null;R!==sG&&(Z=typeof s.response>"u"?s.responseText:s.response),R===0&&(R=Z?YS:0);let Ne=R>=200&&R<300;if(t.responseType==="json"&&typeof Z=="string"){let Oe=Z;Z=Z.replace(uG,"");try{Z=Z!==""?JSON.parse(Z):null}catch(at){Z=Oe,Ne&&(Ne=!1,Z={error:at,text:Z})}}Ne?(o.next(new li({body:Z,headers:b,status:R,statusText:M,url:ae||void 0})),o.complete()):o.error(new Ze({error:Z,headers:b,status:R,statusText:M,url:ae||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:R}=u(),M=new Ze({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:R||void 0});o.error(M)}),h=d;t.timeout&&(h=this.maybePropagateTrace(b=>{let{url:R}=u(),M=new Ze({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:R||void 0});o.error(M)}));let p=!1,E=this.maybePropagateTrace(b=>{p||(o.next(u()),p=!0);let R={type:_n.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(R.total=b.total),t.responseType==="text"&&s.responseText&&(R.partialText=s.responseText),o.next(R)}),D=this.maybePropagateTrace(b=>{let R={type:_n.UploadProgress,loaded:b.loaded};b.lengthComputable&&(R.total=b.total),o.next(R)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",E),a!==null&&s.upload&&s.upload.addEventListener("progress",D)),s.send(a),o.next({type:_n.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",h),t.reportProgress&&(s.removeEventListener("progress",E),a!==null&&s.upload&&s.upload.removeEventListener("progress",D)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||e)(f($o))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function sN(e,r){return r(e)}function lG(e,r){return(t,n)=>r.intercept(t,{handle:i=>e(i,n)})}function dG(e,r,t){return(n,i)=>nt(t,()=>r(n,o=>
5e(o,i)))}var Qt=new C(""),fh=new C("",{factory:()=>[]}),aN=new C(""),ZS=new C("",{factory:()=>!0});function fG(){let e=null;return(r,t)=>{e===null&&(e=(g(Qt,{optional:!0})??[]).reduceRight(lG,sN));let n=g(No);if(g(ZS)){let o=n.add();return e(r,t).pipe(Mi(o))}else return e(r,t)}}var hh=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(KS),i},providedIn:"root"})}return e})();var lh=(()=>{class e{backend;injector;chain=null;pendingTasks=g(No);contributeToStability=g(ZS);constructor(t,n){this.backend=t,this.injector=n}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(fh),...this.injector.get(aN,[])]));this.chain=n.reduceRight((i,o)=>dG(i,o,this.injector),sN)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(Mi(n))}else return this.chain(t,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||e)(f(hh),f(xe))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),QS=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(lh),i},providedIn:"root"})}return e})();function GS(e,r){return{body:r,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var we=(()=>{class e{handler;constructor(t){this.handler=t}request(t,n,i={}){let o;if(t instanceof Qs)o=t;else{let c;i.headers instanceof oe?c=i.headers:c=new oe(i.headers);let u;i.params&&(i.params instanceof Pe?u=i.params:u=new Pe({fromObject:i.params})),o=new Qs(t,n,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:u,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout})}let s=I(o).pipe(Je(c=>this.handler.handle(c)));if(t instanceof Qs||i.observe==="events")return s;let a=s.pipe(_(c=>c instanceof li));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new N(2806,!1);return c.body}));case"blob":return a.pipe(S(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new N(2807,!1);return c.body}));case"text":return a.pipe(S(c=>{if(c.body!==null&&typeof c.body!="string")throw new N(2808,!1);return c.body}));default:return a.pipe(S(c=>c.body))}case"response":return a;default:throw new N(2809,!1)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new Pe().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,i={}){return this.request("PATCH",t,GS(i,n))}post(t,n,i={}){return this.request("POST",t,GS(i,n))}put(t,n,i={}){return this.request("PUT",t,GS(i,n))}static \u0275fac=function(n){return new(n||e)(f(QS))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hG=0,eN,pG="JSONP injected script did not invoke callback.";var dh=class{};function gG(){return typeof window=="object"?window:{}}var JS=(()=>{class e{callbackMap;document;resolvedPromise=Promise.resolve();nonce=g(zs,{optional:!0});constructor(t,n){this.callbackMap=t,this.document=n}nextCallback(){return`ng_jsonp_callback_${hG++}`}handle(t){if(t.method!=="JSONP")throw new N(2810,!1);if(t.responseType!=="json")throw new N(2811,!1);if(t.headers.keys().length>0)throw new N(2812,!1);if(!this.isAllowedJsonpUrl(t.urlWithParams))throw new N(2826,!1);return new L(n=>{let i=this.nextCallback(),o=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${i}$1`),s=this.document.createElement("script");s.src=o,this.nonce&&s.setAttribute("nonce",this.nonce);let a=null,c=!1;this.callbackMap[i]=h=>{delete this.callbackMap[i],a=h,c=!0};let u=()=>{s.removeEventListener("load",l),s.removeEventListener("error",d),s.remove(),delete this.callbackMap[i]},l=()=>{this.resolvedPromise.then(()=>
5{if(u(),!c){n.error(new Ze({url:o,status:0,statusText:"JSONP Error",error:new Error(pG)}));return}n.next(new li({body:a,status:YS,statusText:"OK",url:o})),n.complete()})},d=h=>{u(),n.error(new Ze({error:h,status:0,statusText:"JSONP Error",url:o}))};return s.addEventListener("load",l),s.addEventListener("error",d),this.document.body.appendChild(s),n.next({type:_n.Sent}),()=>{c||this.removeListeners(s),u()}})}removeListeners(t){eN??=this.document.implementation.createHTMLDocument(),eN.adoptNode(t)}isAllowedJsonpUrl(t){return/^https?:\/\//i.test(t)}static \u0275fac=function(n){return new(n||e)(f(dh),f(fe))};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})();function mG(e,r){return e.method==="JSONP"?g(JS).handle(e):r(e)}var vG=new C("",{factory:()=>!0}),yG="XSRF-TOKEN",EG=new C("",{factory:()=>yG}),SG="X-XSRF-TOKEN",CG=new C("",{factory:()=>SG}),DG=(()=>{class e{cookieName=g(EG);doc=g(fe);lastCookieString="";lastToken=null;parseCount=0;getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=uu(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cN=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(DG),i},providedIn:"root"})}return e})();function IG(e,r){if(!g(vG)||e.method==="GET"||e.method==="HEAD")return r(e);try{let i=g(ci).href,{origin:o}=new URL(i),{origin:s}=new URL(e.url,o);if(o!==s)return r(e)}catch(i){return r(e)}let t=g(cN).getToken(),n=g(CG);return t!=null&&!e.headers.has(n)&&(e=e.clone({headers:e.headers.set(n,t)})),r(e)}var mu=(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})(mu||{});function XS(e,r){return{\u0275kind:e,\u0275providers:r}}function TG(...e){let r=[we,lh,{provide:QS,useExisting:lh},{provide:hh,useFactory:()=>g(oN,{optional:!0})??g(KS)},{provide:fh,useValue:IG,multi:!0}];for(let t of e)r.push(...t.\u0275providers);return It(r)}var tN=new C("");function bG(){return XS(mu.LegacyInterceptors,[{provide:tN,useFactory:fG},{provide:fh,useExisting:tN,multi:!0}])}function wG(){return XS(mu.JsonpSupport,[JS,{provide:dh,useFactory:gG},{provide:fh,useValue:mG,multi:!0}])}function _G(){return XS(mu.Fetch,[ah,{provide:oN,useExisting:ah},{provide:hh,useExisting:ah}])}var eC=(()=>{class e{_doc;_dom;constructor(t){this._doc=t,this._dom=Ar()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,n)),i),[]):[]}getTag(t){if(!t)return null;let n=this._doc.querySelector(`meta[${t}]`);return n?.nodeName.toLowerCase()==="meta"?n:null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n).filter(i=>i.nodeName.toLowerCase()==="meta"):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let i=this.getTag(n);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let s=this._parseSelector(t),a=this.getTags(s).filter(c=>this._containsAttributes(t,c))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(t,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(i=>n.setAttribute(this._getMetaKeyMap(i),t[i])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}=${this._escapeSelectorValue(String(t[n]))}`}_escapeSelectorValue(t){return`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}_containsAttributes(t,n){return Object.keys(t).every(i=>n.getAttribute(this._getMetaKeyMap(i))===t[i])}_getMetaKeyMap(t){return AG[t]||t}static \u0275fac=function(n){return new(n||e)(f(fe))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),AG={httpEquiv:"http-equiv"},lN=(()=>{class e{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(n){return new(n||e)(f(fe))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var RG=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(MG),i},providedIn:"root"})}return e})(),MG=(()=>{class e extends RG{_doc;constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case rn.NONE:return n;case rn.HTML:return Zn(n,"HTML")?jt(n):Cf(this._doc,String(n)).toString();case rn.STYLE:return Zn(n,"Style")?jt(n):n;case rn.SCRIPT:if(Zn(n,"Script"))return jt(n);throw new N(5200,!1);case rn.URL:return Zn(n,"URL")?jt(n):zc(String(n));case rn.RESOURCE_URL:if(Zn(n,"ResourceURL"))return jt(n);throw new N(5201,!1);default:throw new N(5202,!1)}}bypassSecurityTrustHtml(t){return DE(t)}bypassSecurityTrustStyle(t){return IE(t)}bypassSecurityTrustScript(t){return TE(t)}bypassSecurityTrustUrl(t){return bE(t)}bypassSecurityTrustResourceUrl(t){return wE(t)}static \u0275fac=function(n){return new(n||e)(f(fe))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Y="primary",_u=Symbol("RouteTitle"),oC=class{params;constructor(r){this.params=r||{}}has(r){return Object.prototype.hasOwnProperty.call(this.params,r)}get(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t[0]:t}return null}getAll(r){if(this.has(r)){let t=this.params[r];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Vo(e){return new oC(e)}function tC(e,r,t){for(let n=0;n<e.length;n++){let i=e[n],o=r[n];if(i[0]===":")t[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function yN(e,r,t){let n=t.path.split("/"),i=n.indexOf("**");if(i===-1){if(n.length>e.length||t.pathMatch==="full"&&(r.hasChildren()||n.length<e.length))return null;
5let c={},u=e.slice(0,n.length);return tC(n,u,c)?{consumed:u,posParams:c}:null}if(i!==n.lastIndexOf("**"))return null;let o=n.slice(0,i),s=n.slice(i+1);if(o.length+s.length>e.length||t.pathMatch==="full"&&r.hasChildren()&&t.path!=="**")return null;let a={};return!tC(o,e.slice(0,o.length),a)||!tC(s,e.slice(e.length-s.length),a)?null:{consumed:e,posParams:a}}function Eh(e){return new Promise((r,t)=>{e.pipe(zt()).subscribe({next:n=>r(n),error:n=>t(n)})})}function OG(e,r){if(e.length!==r.length)return!1;for(let t=0;t<e.length;++t)if(!Mr(e[t],r[t]))return!1;return!0}function Mr(e,r){let t=e?sC(e):void 0,n=r?sC(r):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let o=0;o<t.length;o++)if(i=t[o],!EN(e[i],r[i]))return!1;return!0}function sC(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function EN(e,r){if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;let t=[...e].sort(),n=[...r].sort();return t.every((i,o)=>n[o]===i)}else return e===r}function xG(e){return e.length>0?e[e.length-1]:null}function zo(e){return Wr(e)?e:jo(e)?ue(Promise.resolve(e)):I(e)}function SN(e){return Wr(e)?Eh(e):Promise.resolve(e)}var LG={exact:IN,subset:TN},CN={exact:PG,subset:FG,ignored:()=>!0},DN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},aC={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function dN(e,r,t){return LG[t.paths](e.root,r.root,t.matrixParams)&&CN[t.queryParams](e.queryParams,r.queryParams)&&!(t.fragment==="exact"&&e.fragment!==r.fragment)}function PG(e,r){return Mr(e,r)}function IN(e,r,t){if(!Ho(e.segments,r.segments)||!mh(e.segments,r.segments,t)||e.numberOfChildren!==r.numberOfChildren)return!1;for(let n in r.children)if(!e.children[n]||!IN(e.children[n],r.children[n],t))return!1;return!0}function FG(e,r){return Object.keys(r).length<=Object.keys(e).length&&Object.keys(r).every(t=>EN(e[t],r[t]))}function TN(e,r,t){return bN(e,r,r.segments,t)}function bN(e,r,t,n){if(e.segments.length>t.length){let i=e.segments.slice(0,t.length);return!(!Ho(i,t)||r.hasChildren()||!mh(i,t,n))}else if(e.segments.length===t.length){if(!Ho(e.segments,t)||!mh(e.segments,t,n))return!1;for(let i in r.children)if(!e.children[i]||!TN(e.children[i],r.children[i],n))return!1;return!0}else{let i=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!Ho(e.segments,i)||!mh(e.segments,i,n)||!e.children[Y]?!1:bN(e.children[Y],r,o,n)}}function mh(e,r,t){return r.every((n,i)=>CN[t](e[i].parameters,n.parameters))}var cn=class{root;queryParams;fragment;_queryParamMap;constructor(r=new me([],{}),t={},n=null){this.root=r,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Vo(this.queryParams),this._queryParamMap}toString(){return jG.serialize(this)}},me=class{segments;children;parent=null;constructor(r,t){this.segments=r,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vh(this)}},zi=class{path;parameters;_parameterMap;constructor(r,t){this.path=r,this.parameters=t}get parameterMap(){return this._parameterMap??=Vo(this.parameters),this._parameterMap}toString(){return _N(this)}};function kG(e,r){return Ho(e,r)&&e.every((t,n)=>Mr(t.parameters,r[n].parameters))}function Ho(e,r){return e.length!==r.length?!1:e.every((t,n)=>t.path===r[n].path)}function UG(e,r){let t=[];return Object.entries(e.children).forEach(([n,i])=>{n===Y&&(t=t.concat(r(i,n)))}),Object.entries(e.children).forEach(([n,i])=>{n!==Y&&(t=t.concat(r(i,n)))}),t}var Or=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>new tr,providedIn:"root"})}return e})(),tr=class{parse(r){let t=new uC(r);return new cn(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(r){let t=`/${vu(r.root,!0)}`,n=HG(r.queryParams),i=typeof r.fragment=="string"?`#${$G(r.fragment)}`:"";return`${t}${n}${i}`}},jG=new tr;function vh(e){return e.segments.map(r=>_N(r)).join("/")}function vu(e,r){if(!e.hasChildren())return vh(e);if(r){let t=e.children[Y]?vu(e.children[Y],!1):"",n=[];
vendor: 8,774 bytes, line 5
5return Object.entries(e.children).forEach(([i,o])=>{i!==Y&&n.push(`${i}:${vu(o,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=UG(e,(n,i)=>i===Y?[vu(e.children[Y],!1)]:[`${i}:${vu(n,!1)}`]);return Object.keys(e.children).length===1&&e.children[Y]!=null?`${vh(e)}/${t[0]}`:`${vh(e)}/(${t.join("//")})`}}function wN(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ph(e){return wN(e).replace(/%3B/gi,";")}function $G(e){return encodeURI(e)}function cC(e){return wN(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yh(e){return decodeURIComponent(e)}function fN(e){return yh(e.replace(/\+/g,"%20"))}function _N(e){return`${cC(e.path)}${BG(e.parameters)}`}function BG(e){return Object.entries(e).map(([r,t])=>`;${cC(r)}=${cC(t)}`).join("")}function HG(e){let r=Object.entries(e).map(([t,n])=>Array.isArray(n)?n.map(i=>`${ph(t)}=${ph(i)}`).join("&"):`${ph(t)}=${ph(n)}`).filter(t=>t);return r.length?`?${r.join("&")}`:""}var VG=/^[^\/()?;#]+/;function nC(e){let r=e.match(VG);return r?r[0]:""}var zG=/^[^\/()?;=#]+/;function GG(e){let r=e.match(zG);return r?r[0]:""}var WG=/^[^=?&#]+/;function qG(e){let r=e.match(WG);return r?r[0]:""}var YG=/^[^&#]+/;function KG(e){let r=e.match(YG);return r?r[0]:""}var uC=class{url;remaining;constructor(r){this.url=r,this.remaining=r}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new me([],{}):new me([],this.parseChildren())}parseQueryParams(){let r={};if(this.consumeOptional("?"))do this.parseQueryParam(r);while(this.consumeOptional("&"));return r}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(r=0){if(r>50)throw new N(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0,r));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1,r)),(t.length>0||Object.keys(n).length>0)&&(i[Y]=new me(t,n)),i}parseSegment(){let r=nC(this.remaining);if(r===""&&this.peekStartsWith(";"))throw new N(4009,!1);return this.capture(r),new zi(yh(r),this.parseMatrixParams())}parseMatrixParams(){let r={};for(;this.consumeOptional(";");)this.parseParam(r);return r}parseParam(r){let t=GG(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=nC(this.remaining);i&&(n=i,this.capture(n))}r[yh(t)]=yh(n)}parseQueryParam(r){let t=qG(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let s=KG(this.remaining);s&&(n=s,this.capture(n))}let i=fN(t),o=fN(n);if(r.hasOwnProperty(i)){let s=r[i];Array.isArray(s)||(s=[s],r[i]=s),s.push(o)}else r[i]=o}parseParens(r,t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let i=nC(this.remaining),o=this.remaining[i.length];if(o!=="/"&&o!==")"&&o!==";")throw new N(4010,!1);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):r&&(s=Y);let a=this.parseChildren(t+1);n[s??Y]=Object.keys(a).length===1&&a[Y]?a[Y]:new me([],a),this.consumeOptional("//")}return n}peekStartsWith(r){return this.remaining.startsWith(r)}consumeOptional(r){return this.peekStartsWith(r)?(this.remaining=this.remaining.substring(r.length),!0):!1}capture(r){if(!this.consumeOptional(r))throw new N(4011,!1)}};function AN(e){return e.segments.length>0?new me([],{[Y]:e}):e}function RN(e){let r={};for(let[n,i]of Object.entries(e.children)){let o=RN(i);if(n===Y&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))r[s]=a;else(o.segments.length>0||o.hasChildren())&&(r[n]=o)}let t=new me(e.segments,r);return ZG(t)}function ZG(e){if(e.numberOfChildren===1&&e.children[Y]){let r=e.children[Y];return new me(e.segments.concat(r.segments),r.children)}return e}function Gi(e){return e instanceof cn}function MN(e,r,t=null,n=null,i=new tr){let o=NN(e);return ON(o,r,t,n,i)}function NN(e){let r;function t(o){let s={};for(let c of o.children){let u=t(c);s[c.outlet]=u}let a=new me(o.url,s);return o===e&&(r=a),a}let n=t(e.root),i=AN(n);return r??i}function ON(e,r,t,n,i){let o=e;for(;o.parent;)o=o.parent;if(r.length===0)return rC(o,o,o,t,n,i);let s=QG(r);if(s.toRoot())return rC(o,o,new me([],{}),t,n,i);let a=JG(s,o,e),c=a.processChildren?Eu(a.segmentGroup,a.index,s.commands):LN(a.segmentGroup,a.index,s.commands);return rC(o,a.segmentGroup,c,t,n,i)}function Sh(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Cu(e){return typeof e=="object"&&e!=null&&e.outlets}function hN(e,r,t){e||="\u0275";let n=new cn;return n.queryParams={[e]:r},t.parse(t.serialize(n)).queryParams[e]}function rC(e,r,t,n,i,o){let s={};for(let[u,l]of Object.entries(n??{}))s[u]=Array.isArray(l)?l.map(d=>hN(u,d,o)):hN(u,l,o);let a;e===r?a=t:a=xN(e,r,t);let c=AN(RN(a));return new cn(c,s,i)}function xN(e,r,t){let n={};return Object.entries(e.children).forEach(([i,o])=>{o===r?n[i]=t:n[i]=xN(o,r,t)}),new me(e.segments,n)}var Ch=class{isAbsolute;numberOfDoubleDots;commands;constructor(r,t,n){if(this.isAbsolute=r,this.numberOfDoubleDots=t,this.commands=n,r&&n.length>0&&Sh(n[0]))throw new N(4003,!1);let i=n.find(Cu);if(i&&i!==xG(n))throw new N(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function QG(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Ch(!0,0,e);let r=0,t=!1,n=e.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?t=!0:a===".."?r++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new Ch(t,r,n)}var ta=class{segmentGroup;processChildren;index;constructor(r,t,n){this.segmentGroup=r,this.processChildren=t,this.index=n}};function JG(e,r,t){if(e.isAbsolute)return new ta(r,!0,0);if(!t)return new ta(r,!1,NaN);if(t.parent===null)return new ta(t,!0,0);let n=Sh(e.commands[0])?0:1,i=t.segments.length-1+n;return XG(t,i,e.numberOfDoubleDots)}function XG(e,r,t){let n=e,i=r,o=t;for(;o>i;){if(o-=i,n=n.parent,!n)throw new N(4005,!1);i=n.segments.length}return new ta(n,!1,i-o)}function e8(e){return Cu(e[0])?e[0].outlets:{[Y]:e}}function LN(e,r,t){if(e??=new me([],{}),e.segments.length===0&&e.hasChildren())return Eu(e,r,t);let n=t8(e,r,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<e.segments.length){let o=new me(e.segments.slice(0,n.pathIndex),{});return o.children[Y]=new me(e.segments.slice(n.pathIndex),e.children),Eu(o,0,i)}else return n.match&&i.length===0?new me(e.segments,{}):n.match&&!e.hasChildren()?lC(e,r,t):n.match?Eu(e,0,i):lC(e,r,t)}function Eu(e,r,t){if(t.length===0)return new me(e.segments,{});{let n=e8(t),i={};if(Object.keys(n).some(o=>o!==Y)&&e.children[Y]&&e.numberOfChildren===1&&e.children[Y].segments.length===0){let o=Eu(e.children[Y],r,t);return new me(e.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=LN(e.children[o],r,s))}),Object.entries(e.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new me(e.segments,i)}}function t8(e,r,t){let n=0,i=r,o={match:!1,pathIndex:0,commandIndex:0};for(;i<e.segments.length;){if(n>=t.length)return o;let s=e.segments[i],a=t[n];if(Cu(a))break;let c=`${a}`,u=n<t.length-1?t[n+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!gN(c,u,s))return o;n+=2}else{if(!gN(c,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function lC(e,r,t){let n=e.segments.slice(0,r),i=0;for(;i<t.length;){let o=t[i];if(Cu(o)){let c=n8(o.outlets);return new me(n,c)}if(i===0&&Sh(t[0])){let c=e.segments[r];n.push(new zi(c.path,pN(t[0]))),i++;continue}let s=Cu(o)?o.outlets[Y]:`${o}`,a=i<t.length-1?t[i+1]:null;s&&a&&Sh(a)?(n.push(new zi(s,pN(a))),i+=2):(n.push(new zi(s,{})),i++)}return new me(n,{})}function n8(e){let r={};return Object.entries(e).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(r[t]=lC(new me([],{}),0,n))}),r}function pN(e){let r={};return Object.entries(e).forEach(([t,n])=>r[t]=`${n}`),r}function gN(e,r,t){return e==t.path&&Mr(r,t.parameters)}var na="imperative",st=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.Re
5solveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(st||{}),un=class{id;url;constructor(r,t){this.id=r,this.url=t}},Jt=class extends un{type=st.NavigationStart;navigationTrigger;restoredState;constructor(r,t,n="imperative",i=null){super(r,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},ot=class extends un{urlAfterRedirects;type=st.NavigationEnd;constructor(r,t,n){super(r,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},At=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(At||{}),ia=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(ia||{}),Rt=class extends un{reason;code;type=st.NavigationCancel;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function PN(e){return e instanceof Rt&&(e.code===At.Redirect||e.code===At.SupersededByNewNavigation)}var Nr=class extends un{reason;code;type=st.NavigationSkipped;constructor(r,t,n,i){super(r,t),this.reason=n,this.code=i}},An=class extends un{error;target;type=st.NavigationError;constructor(r,t,n,i){super(r,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Wi=class extends un{urlAfterRedirects;state;type=st.RoutesRecognized;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dh=class extends un{urlAfterRedirects;state;type=st.GuardsCheckStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ih=class extends un{urlAfterRedirects;state;shouldActivate;type=st.GuardsCheckEnd;constructor(r,t,n,i,o){super(r,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Th=class extends un{urlAfterRedirects;state;type=st.ResolveStart;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bh=class extends un{urlAfterRedirects;state;type=st.ResolveEnd;constructor(r,t,n,i){super(r,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},wh=class{route;type=st.RouteConfigLoadStart;constructor(r){this.route=r}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},_h=class{route;type=st.RouteConfigLoadEnd;constructor(r){this.route=r}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ah=class{snapshot;type=st.ChildActivationStart;constructor(r){this.snapshot=r}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Rh=class{snapshot;type=st.ChildActivationEnd;constructor(r){this.snapshot=r}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Mh=class{snapshot;type=st.ActivationStart;constructor(r){this.snapshot=r}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nh=class{snapshot;type=st.ActivationEnd;constructor(r){this.snapshot=r}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},oa=class{routerEvent;position;anchor;scrollBehavior;type=st.Scroll;constructor(r,t,n,i){this.routerEvent=r,this.position=t,this.anchor=n,this.scrollBehavior=i}toString(){let r=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${r}')`}},sa=class{},Du=class{},aa=class{url;navigationBehaviorOptions;constructor(r,t){this.url=r,this.navigationBehaviorOptions=t}};function r8(e){return!(e instanceof sa)&&!(e instanceof aa)&&!(e instanceof Du)}var Oh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(r){this.rootInjector=r,this.children=new Go(this.rootInjector)}},Go=(()=>{class e{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new Oh(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||e)(f(xe))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),xh=class{_root;constructor(r){this._root=r}get root(){return this._root.value}
vendor: 15,428 bytes, line 5
5parent(r){let t=this.pathFromRoot(r);return t.length>1?t[t.length-2]:null}children(r){let t=dC(r,this._root);return t?t.children.map(n=>n.value):[]}firstChild(r){let t=dC(r,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(r){let t=fC(r,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==r)}pathFromRoot(r){return fC(r,this._root).map(t=>t.value)}};function dC(e,r){if(e===r.value)return r;for(let t of r.children){let n=dC(e,t);if(n)return n}return null}function fC(e,r){if(e===r.value)return[r];for(let t of r.children){let n=fC(e,t);if(n.length)return n.unshift(r),n}return[]}var an=class{value;children;constructor(r,t){this.value=r,this.children=t}toString(){return`TreeNode(${this.value})`}};function ea(e){let r={};return e&&e.children.forEach(t=>r[t.value.outlet]=t),r}var Iu=class extends xh{snapshot;constructor(r,t){super(r),this.snapshot=t,CC(this,r)}toString(){return this.snapshot.toString()}};function FN(e,r){let t=i8(e,r),n=new ve([new zi("",{})]),i=new ve({}),o=new ve({}),s=new ve({}),a=new ve(""),c=new nr(n,i,s,a,o,Y,e,t.root);return c.snapshot=t.root,new Iu(new an(c,[]),t)}function i8(e,r){let t={},n={},i={},s=new ca([],t,i,"",n,Y,e,null,{},r);return new Tu("",new an(s,[]))}var nr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(r,t,n,i,o,s,a,c){this.urlSubject=r,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(S(u=>u[_u]))??I(void 0),this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(S(r=>Vo(r))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(S(r=>Vo(r))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function SC(e,r,t="emptyOnly"){let n,{routeConfig:i}=e;return r!==null&&(t==="always"||i?.path===""||!r.component&&!r.routeConfig?.loadComponent)?n={params:v(v({},r.params),e.params),data:v(v({},r.data),e.data),resolve:v(v(v(v({},e.data),r.data),i?.data),e._resolvedData)}:n={params:v({},e.params),data:v({},e.data),resolve:v(v({},e.data),e._resolvedData??{})},i&&UN(i)&&(n.resolve[_u]=i.title),n}var ca=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[_u]}constructor(r,t,n,i,o,s,a,c,u,l){this.url=r,this.params=t,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Vo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Vo(this.queryParams),this._queryParamMap}toString(){let r=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${r}', path:'${t}')`}},Tu=class extends xh{url;constructor(r,t){super(t),this.url=r,CC(this,t)}toString(){return kN(this._root)}};function CC(e,r){r.value._routerState=e,r.children.forEach(t=>CC(e,t))}function kN(e){let r=e.children.length>0?` { ${e.children.map(kN).join(", ")} } `:"";return`${e.value}${r}`}function iC(e){if(e.snapshot){let r=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Mr(r.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),r.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Mr(r.params,t.params)||e.paramsSubject.next(t.params),OG(r.url,t.url)||e.urlSubject.next(t.url),Mr(r.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function hC(e,r){let t=Mr(e.params,r.params)&&kG(e.url,r.url),n=!e.parent!=!r.parent;return t&&!n&&(!e.parent||hC(e.parent,r.parent))}function UN(e){return typeof e.title=="string"||e.title===null}var jN=new C(""),DC=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Y;activateEvents=new Ft;deactivateEvents=new Ft;attachEvents=new Ft;detachEvents=new Ft;routerOutletData=l0();parentContexts=g(Go);location=g(on);changeDetector=g(Hi);inputBinder=g(Au,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new N(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new N(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new N(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new N(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new pC(t,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||e)};static \u0275dir=Wt({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Uo]})}return e})(),pC=class{route;childContexts;parent;outletData;constructor(r,t,n,i){this.route=r,this.childContexts=t,this.parent=n,this.outletData=i}get(r,t){return r===nr?this.route:r===Go?this.childContexts:r===jN?this.outletData:this.parent.get(r,t)}},Au=new C(""),IC=(()=>{class e{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=Fe([n.queryParams,n.params,n.data]).pipe(O(([o,s,a],c)=>(a=v(v(v({},o),s),a),c===0?I(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=p0(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})(),TC=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=JE({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&Pf(0,"router-outlet")},dependencies:[DC],encapsulation:2})}return e})();function bC(e){let r=e.children&&e.children.map(bC),t=r?T(v({},e),{children:r}):v({},e);return!t.component&&!t.loadComponent&&(r||t.loadChildren)&&t.outlet&&t.outlet!==Y&&(t.component=TC),t}function o8(e,r,t){let n=bu(e,r._root,t?t._root:void 0);return new Iu(n,r)}function bu(e,r,t){if(t&&e.shouldReuseRoute(r.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=r.value;let i=s8(e,r,t);return new an(n,i)}else{if(e.shouldAttach(r.value)){let o=e.retrieve(r.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=r.value,s.children=r.children.map(a=>bu(e,a)),s}}let n=a8(r.value),i=r.children.map(o=>bu(e,o));return new an(n,i)}}function s8(e,r,t){return r.children.map(n=>{for(let i of t.children)if(e.shouldReuseRoute(n.value,i.value.snapshot))return bu(e,n,i);return bu(e,n)})}function a8(e){return new nr(new ve(e.url),new ve(e.params),new ve(e.queryParams),new ve(e.fragment),new ve(e.data),e.outlet,e.component,e)}var ua=class{redirectTo;navigationBehaviorOptions;constructor(r,t){this.redirectTo=r,this.navigationBehaviorOptions=t}},$N="ngNavigationCancelingError";function Lh(e,r){let{redirectTo:t,navigationBehaviorOptions:n}=Gi(r)?{redirectTo:r,navigationBehaviorOptions:void 0}:r,i=BN(!1,At.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function BN(e,r){let t=new Error(`NavigationCancelingError: ${e||""}`);return t[$N]=!0,t.cancellationCode=r,t}function c8(e){return HN(e)&&Gi(e.url)}function HN(e){return!!e&&e[$N]}var gC=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(r,t,n,i,o){this.routeReuseStrategy=r,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(r){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,r),iC(this.futureState.root),this.activateChildRoutes(t,n,r)}deactivateChildRoutes(r,t,n){let i=ea(t);r.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(r,t,s.children)}else this.deactivateChildRoutes(r,t,n);else o&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(r,t){r.value.component&&this.routeReuseStrategy.shouldDetach(r.value.snapshot)?this.detachAndStoreRouteSubtree(r,t):this.deactivateRouteAndOutlet(r,t)}detachAndStoreRouteSubtree(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=ea(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(r.value.snapshot,{componentRef:s,route:r,contexts:a})}}deactivateRouteAndOutlet(r,t){let n=t.getContext(r.value.outlet),i=n&&r.value.component?n.children:t,o=ea(r);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(r,t,n){let i=ea(t);r.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new Nh(o.value.snapshot))}),r.children.length&&this.forwardEvent(new Rh(r.value.snapshot))}activateRoutes(r,t,n){let i=r.value,o=t?t.value:null;if(iC(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(r,t,s.children)}else this.activateChildRoutes(r,t,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),iC(a.route.value),this.activateChildRoutes(r,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(r,null,s.children)}else this.activateChildRoutes(r,null,n)}},Ph=class{path;route;constructor(r){this.path=r,this.route=this.path[this.path.length-1]}},ra=class{component;route;constructor(r,t){this.component=r,this.route=t}};function u8(e,r,t){let n=e._root,i=r?r._root:null;return yu(n,i,t,[n.value])}function l8(e){let r=e.routeConfig?e.routeConfig.canActivateChild:null;return!r||r.length===0?null:{node:e,guards:r}}function da(e,r){let t=Symbol(),n=r.get(e,t);return n===t?typeof e=="function"&&!Nv(e)?e:r.get(e):n}function yu(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ea(r);return e.children.forEach(s=>{d8(s,o[s.value.outlet],t,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Su(a,t.getContext(s),i)),i}function d8(e,r,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=e.value,s=r?r.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=f8(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Ph(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?yu(e,r,a?a.children:null,n,i):yu(e,r,t,n,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ra(a.outlet.component,s))}else s&&Su(r,a,i),i.canActivateChecks.push(new Ph(n)),o.component?yu(e,null,a?a.children:null,n,i):yu(e,null,t,n,i);return i}function f8(e,r,t){if(typeof t=="function")return nt(r._environmentInjector,()=>t(e,r));switch(t){case"pathParamsChange":return!Ho(e.url,r.url);case"pathParamsOrQueryParamsChange":return!Ho(e.url,r.url)||!Mr(e.queryParams,r.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hC(e,r)||!Mr(e.queryParams,r.queryParams);default:return!hC(e,r)}}function Su(e,r,t){let n=ea(e),i=e.value;Object.entries(n).forEach(([o,s])=>{i.component?r?Su(s,r.children.getContext(o),t):Su(s,null,t):Su(s,r,t)}),i.component?r&&r.outlet&&r.outlet.isActivated?t.canDeactivateChecks.push(new ra(r.outlet.component,i)):t.canDeactivateChecks.push(new ra(null,i)):t.canDeactivateChecks.push(new ra(null,i))}function Ru(e){return typeof e=="function"}function h8(e){return typeof e=="boolean"}function p8(e){return e&&Ru(e.canLoad)}function g8(e){return e&&Ru(e.canActivate)}function m8(e){return e&&Ru(e.canActivateChild)}function v8(e){return e&&Ru(e.canDeactivate)}function y8(e){return e&&Ru(e.canMatch)}function VN(e){return e instanceof Bn||e?.name==="EmptyError"}var gh=Symbol("INITIAL_VALUE");function la(){return O(e=>Fe(e.map(r=>r.pipe(W(1),vr(gh)))).pipe(S(r=>{for(let t of r)if(t!==!0){if(t===gh)return gh;if(t===!1||E8(t))return t}return!0}),_(r=>
5r!==gh),W(1)))}function E8(e){return Gi(e)||e instanceof ua}function zN(e){return e.aborted?I(void 0).pipe(W(1)):new L(r=>{let t=()=>{r.next(),r.complete()};return e.addEventListener("abort",t),()=>e.removeEventListener("abort",t)})}function GN(e){return Yr(zN(e))}function S8(e){return G(r=>{let{targetSnapshot:t,currentSnapshot:n,guards:{canActivateChecks:i,canDeactivateChecks:o}}=r;return o.length===0&&i.length===0?I(T(v({},r),{guardsResult:!0})):C8(o,t,n).pipe(G(s=>s&&h8(s)?D8(t,i,e):I(s)),S(s=>T(v({},r),{guardsResult:s})))})}function C8(e,r,t){return ue(e).pipe(G(n=>_8(n.component,n.route,t,r)),zt(n=>n!==!0,!0))}function D8(e,r,t){return ue(r).pipe(Je(n=>hr(T8(n.route.parent,t),I8(n.route,t),w8(e,n.path),b8(e,n.route))),zt(n=>n!==!0,!0))}function I8(e,r){return e!==null&&r&&r(new Mh(e)),I(!0)}function T8(e,r){return e!==null&&r&&r(new Ah(e)),I(!0)}function b8(e,r){let t=r.routeConfig?r.routeConfig.canActivate:null;if(!t||t.length===0)return I(!0);let n=t.map(i=>We(()=>{let o=r._environmentInjector,s=da(i,o),a=g8(s)?s.canActivate(r,e):nt(o,()=>s(r,e));return zo(a).pipe(zt())}));return I(n).pipe(la())}function w8(e,r){let t=r[r.length-1],i=r.slice(0,r.length-1).reverse().map(o=>l8(o)).filter(o=>o!==null).map(o=>We(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=da(a,c),l=m8(u)?u.canActivateChild(t,e):nt(c,()=>u(t,e));return zo(l).pipe(zt())});return I(s).pipe(la())}));return I(i).pipe(la())}function _8(e,r,t,n){let i=r&&r.routeConfig?r.routeConfig.canDeactivate:null;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=r._environmentInjector,c=da(s,a),u=v8(c)?c.canDeactivate(e,r,t,n):nt(a,()=>c(e,r,t,n));return zo(u).pipe(zt())});return I(o).pipe(la())}function A8(e,r,t,n,i){let o=r.canLoad;if(o===void 0||o.length===0)return I(!0);let s=o.map(a=>{let c=da(a,e),u=p8(c)?c.canLoad(r,t):nt(e,()=>c(r,t)),l=zo(u);return i?l.pipe(GN(i)):l});return I(s).pipe(la(),WN(n))}function WN(e){return Wa(k(r=>{if(typeof r!="boolean")throw Lh(e,r)}),S(r=>r===!0))}function R8(e,r,t,n,i,o){let s=r.canMatch;if(!s||s.length===0)return I(!0);let a=s.map(c=>{let u=da(c,e),l=y8(u)?u.canMatch(r,t,i):nt(e,()=>u(r,t,i));return zo(l).pipe(GN(o))});return I(a).pipe(la(),WN(n))}var di=class e extends Error{segmentGroup;constructor(r){super(),this.segmentGroup=r||null,Object.setPrototypeOf(this,e.prototype)}},wu=class e extends Error{urlTree;constructor(r){super(),this.urlTree=r,Object.setPrototypeOf(this,e.prototype)}};function M8(e){throw new N(4e3,!1)}function N8(e){throw BN(!1,At.GuardRejected)}var mC=class{urlSerializer;urlTree;constructor(r,t){this.urlSerializer=r,this.urlTree=t}lineralizeSegments(r,t){return Q(this,null,function*(){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return n;if(i.numberOfChildren>1||!i.children[Y])throw M8(`${r.redirectTo}`);i=i.children[Y]}})}applyRedirectCommands(r,t,n,i,o){return Q(this,null,function*(){let s=yield O8(t,i,o);if(s instanceof cn)throw new wu(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),r,n);if(s[0]==="/")throw new wu(a);return a})}applyRedirectCreateUrlTree(r,t,n,i){let o=this.createSegmentGroup(r,t.root,n,i);return new cn(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(r,t){let n={};return Object.entries(r).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);n[i]=t[a]}else n[i]=o}),n}createSegmentGroup(r,t,n,i){let o=this.createSegments(r,t.segments,n,i),s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(r,c,n,i)}),new me(o,s)}createSegments(r,t,n,i){return t.map(o=>o.path[0]===":"?this.findPosParam(r,o,i):this.findOrReturn(o,n))}findPosParam(r,t,n){let i=n[t.path.substring(1)];if(!i)throw new N(4001,!1);return i}findOrReturn(r,t){let n=0;for(let i of t){if(i.path===r.path)return t.splice(n),i;n++}return r}};function O8(e,r,t){if(typeof e=="string")return Promise.resolve(e);let n=e;return Eh(zo(nt(t,()=>n(r))))}function x8(e,r){return e.providers&&!e._injector&&(e._injector=Ys(e.providers,r,`Route: ${e.path}`)),e._injector??r}function er(e){return e.outlet||Y}function L8(e,r){let t=e.filter(n=>er(n)===r);return t.push(...e.filter(n=>er(n)!==r)),t}var vC={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function qN(e){return{routeConfig:e.routeConfig,url:e.url,params:e.params,queryParams:e.queryParams,fragment:e.fragment,data:e.data,outlet:e.outlet,title:e.title,paramMap:e.paramMap,queryParamMap:e.queryParamMap}}function P8(e,r,t,n,i,o,s){let a=YN(e,r,t);if(!a.matched)return I(a);
5let c=qN(o(a));return n=x8(r,n),R8(n,r,t,i,c,s).pipe(S(u=>u===!0?a:v({},vC)))}function YN(e,r,t){if(r.path==="")return r.pathMatch==="full"&&(e.hasChildren()||t.length>0)?v({},vC):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(r.matcher||yN)(t,e,r);if(!i)return v({},vC);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?v(v({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function mN(e,r,t,n,i){return t.length>0&&U8(e,t,n,i)?{segmentGroup:new me(r,k8(n,new me(t,e.children))),slicedSegments:[]}:t.length===0&&j8(e,t,n)?{segmentGroup:new me(e.segments,F8(e,t,n,e.children)),slicedSegments:t}:{segmentGroup:new me(e.segments,e.children),slicedSegments:t}}function F8(e,r,t,n){let i={};for(let o of t)if(kh(e,r,o)&&!n[er(o)]){let s=new me([],{});i[er(o)]=s}return v(v({},n),i)}function k8(e,r){let t={};t[Y]=r;for(let n of e)if(n.path===""&&er(n)!==Y){let i=new me([],{});t[er(n)]=i}return t}function U8(e,r,t,n){return t.some(i=>!kh(e,r,i)||!(er(i)!==Y)?!1:!(n!==void 0&&er(i)===n))}function j8(e,r,t){return t.some(n=>kh(e,r,n))}function kh(e,r,t){return(e.hasChildren()||r.length>0)&&t.pathMatch==="full"?!1:t.path===""}function $8(e,r,t){return r.length===0&&!e.children[t]}var yC=class{};function B8(e,r,t,n,i,o,s="emptyOnly",a){return Q(this,null,function*(){return new EC(e,r,t,n,i,s,o,a).recognize()})}var H8=31,EC=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(r,t,n,i,o,s,a,c){this.injector=r,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new mC(this.urlSerializer,this.urlTree)}noMatchError(r){return new N(4002,`'${r.segmentGroup}'`)}recognize(){return Q(this,null,function*(){let r=mN(this.urlTree.root,[],[],this.config).segmentGroup,{children:t,rootSnapshot:n}=yield this.match(r),i=new an(n,t),o=new Tu("",i),s=MN(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(r){return Q(this,null,function*(){let t=new ca([],Object.freeze({}),Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Y,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,r,Y,t),rootSnapshot:t}}catch(n){if(n instanceof wu)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof di?this.noMatchError(n):n}})}processSegmentGroup(r,t,n,i,o){return Q(this,null,function*(){if(n.segments.length===0&&n.hasChildren())return this.processChildren(r,t,n,o);let s=yield this.processSegment(r,t,n,n.segments,i,!0,o);return s instanceof an?[s]:[]})}processChildren(r,t,n,i){return Q(this,null,function*(){let o=[];for(let c of Object.keys(n.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=n.children[c],l=L8(t,c),d=yield this.processSegmentGroup(r,l,u,c,i);s.push(...d)}let a=KN(s);return V8(a),a})}processSegment(r,t,n,i,o,s,a){return Q(this,null,function*(){for(let c of t)try{return yield this.processSegmentAgainstRoute(c._injector??r,t,c,n,i,o,s,a)}catch(u){if(u instanceof di||VN(u))continue;throw u}if($8(n,i,o))return new yC;throw new di(n)})}processSegmentAgainstRoute(r,t,n,i,o,s,a,c){return Q(this,null,function*(){if(er(n)!==s&&(s===Y||!kh(i,o,n)))throw new di(i);if(n.redirectTo===void 0)return this.matchSegmentAgainstRoute(r,i,n,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(r,i,t,n,o,s,c);throw new di(i)})}expandSegmentAgainstRouteUsingRedirect(r,t,n,i,o,s,a){return Q(this,null,function*(){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=YN(t,i,o);if(!c)throw new di(t);
5typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>H8&&(this.allowRedirects=!1));let p=this.createSnapshot(r,i,o,u,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let E=yield this.applyRedirects.applyRedirectCommands(l,i.redirectTo,d,qN(p),r),D=yield this.applyRedirects.lineralizeSegments(i,E);return this.processSegment(r,n,t,D.concat(h),s,!1,a)})}createSnapshot(r,t,n,i,o){let s=new ca(n,i,Object.freeze(v({},this.urlTree.queryParams)),this.urlTree.fragment,G8(t),er(t),t.component??t._loadedComponent??null,t,W8(t),r),a=SC(s,o,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}matchSegmentAgainstRoute(r,t,n,i,o,s){return Q(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=ae=>this.createSnapshot(r,n,ae.consumedSegments,ae.parameters,s),c=yield Eh(P8(t,n,i,r,this.urlSerializer,a,this.abortSignal));if(n.path==="**"&&(t.children={}),!c?.matched)throw new di(t);r=n._injector??r;let{routes:u}=yield this.getChildConfig(r,n,i),l=n._loadedInjector??r,{parameters:d,consumedSegments:h,remainingSegments:p}=c,E=this.createSnapshot(r,n,h,d,s),{segmentGroup:D,slicedSegments:b}=mN(t,h,p,u,o);if(b.length===0&&D.hasChildren()){let ae=yield this.processChildren(l,u,D,E);return new an(E,ae)}if(u.length===0&&b.length===0)return new an(E,[]);let R=er(n)===o,M=yield this.processSegment(l,u,D,b,R?Y:o,!0,E);return new an(E,M instanceof an?[M]:[])})}getChildConfig(r,t,n){return Q(this,null,function*(){if(t.children)return{routes:t.children,injector:r};if(t.loadChildren){if(t._loadedRoutes!==void 0){let o=t._loadedNgModuleFactory;return o&&!t._loadedInjector&&(t._loadedInjector=o.create(r).injector),{routes:t._loadedRoutes,injector:t._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield Eh(A8(r,t,n,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(r,t);return t._loadedRoutes=o.routes,t._loadedInjector=o.injector,t._loadedNgModuleFactory=o.factory,o}throw N8(t)}return{routes:[],injector:r}})}};function V8(e){e.sort((r,t)=>r.value.outlet===Y?-1:t.value.outlet===Y?1:r.value.outlet.localeCompare(t.value.outlet))}function z8(e){let r=e.value.routeConfig;return r&&r.path===""}function KN(e){let r=[],t=new Set;for(let n of e){if(!z8(n)){r.push(n);continue}let i=r.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):r.push(n)}for(let n of t){let i=KN(n.children);r.push(new an(n.value,i))}return r.filter(n=>!t.has(n))}function G8(e){return e.data||{}}function W8(e){return e.resolve||{}}function q8(e,r,t,n,i,o,s){return G(a=>Q(null,null,function*(){let{state:c,tree:u}=yield B8(e,r,t,n,a.extractedUrl,i,o,s);return T(v({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Y8(e){return G(r=>{let{targetSnapshot:t,guards:{canActivateChecks:n}}=r;if(!n.length)return I(r);let i=new Set(n.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of ZN(a))o.add(c);let s=0;return ue(o).pipe(Je(a=>i.has(a)?K8(a,t,e):(a.data=SC(a,a.parent,e).resolve,I(void 0))),k(()=>s++),ud(1),G(a=>s===o.size?I(r):te))})}function ZN(e){let r=e.children.map(t=>ZN(t)).flat();return[e,...r]}function K8(e,r,t){let n=e.routeConfig,i=e._resolve;return n?.title!==void 0&&!UN(n)&&(i[_u]=n.title),We(()=>(e.data=SC(e,e.parent,t).resolve,Z8(i,e,r).pipe(S(o=>(e._resolvedData=o,e.data=v(v({},e.data),o),null)))))}function Z8(e,r,t){let n=sC(e);if(n.length===0)return I({});let i={};return ue(n).pipe(G(o=>Q8(e[o],r,t).pipe(zt(),k(s=>{if(s instanceof ua)throw Lh(new tr,s);i[o]=s}))),ud(1),S(()=>i),j(o=>VN(o)?te:gn(o)))}function Q8(e,r,t){let n=r._environmentInjector,i=da(e,n),o=i.resolve?i.resolve(r,t):nt(n,()=>i(r,t));return zo(o)}function vN(e){return O(r=>{let t=e(r);return t?ue(t).pipe(S(()=>r)):I(r)})}var wC=(()=>{class e{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(o=>o.outlet===Y);return n}getResolvedTitleForRoute(t){return t.data[_u]}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>g(QN),providedIn:"root"})}return e})(),QN=(()=>{class e extends wC{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||e)(f(lN))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qi=new C("",{factory:()=>({})}),fa=new C(""),Uh=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=g(Jc);loadComponent(t,n){return Q(this,null,function*(){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Promise.resolve(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=Q(this,null,function*(){try{let o=yield SN(nt(t,()=>n.loadComponent())),s=yield eO(XN(o));return this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s,s}finally{this.componentLoaders.delete(n)}});return this.componentLoaders.set(n,i),i})}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Promise.resolve({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let i=Q(this,null,function*(){try{let o=yield JN(n,this.compiler,t,this.onLoadEndListener);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(n)}});return this.childrenLoaders.set(n,i),i}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function JN(e,r,t,n){return Q(this,null,function*(){let i=yield SN(nt(t,()=>e.loadChildren())),o=yield eO(XN(i)),s;o instanceof qs||Array.isArray(o)?s=o:s=yield r.compileModuleAsync(o),n&&n(e);let a,c,u=!1,l;return Array.isArray(s)?(c=s,u=!0):(a=s.create(t).injector,l=s,c=a.get(fa,[],{optional:!0,self:!0}).flat()),{routes:c.map(bC),injector:a,factory:l}})}function J8(e){return e&&typeof e=="object"&&"default"in e}function XN(e){return J8(e)?e.default:e}function eO(e){return Q(this,null,function*(){return e})}var jh=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>g(X8),providedIn:"root"})}return e})(),X8=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_C=new C(""),AC=new C("");function tO(e,r,t){let n=e.get(AC),i=e.get(fe);if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),eW(e)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=n;return c&&nt(e,()=>c({transition:a,from:r,to:t})),s}function eW(e){return new Promise(r=>{bf({read:()=>setTimeout(r)},{injector:e})})}var tW=()=>{},RC=new C(""),$h=(()=>{class e{currentNavigation=Me(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Me(null);events=new X;
5transitionAbortWithErrorSubject=new X;configLoader=g(Uh);environmentInjector=g(xe);destroyRef=g(ze);urlSerializer=g(Or);rootContexts=g(Go);location=g(sn);inputBindingEnabled=g(Au,{optional:!0})!==null;titleStrategy=g(wC);options=g(qi,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=g(jh);createViewTransition=g(_C,{optional:!0});navigationErrorHandler=g(RC,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>I(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new wh(i)),n=i=>this.events.next(new _h(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;be(()=>{this.transitions?.next(T(v({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:n,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(t){return this.transitions=new ve(null),this.transitions.pipe(_(n=>n!==null),O(n=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===n.id;return I(n).pipe(O(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",At.SupersededByNewNavigation),te;this.currentTransition=n;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?T(v({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let u=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),l=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!u&&l!=="reload")return this.events.next(new Nr(a.id,this.urlSerializer.serialize(a.rawUrl),"",ia.IgnoredSameUrlNavigation)),a.resolve(!1),te;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return I(a).pipe(O(d=>(this.events.next(new Jt(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?te:Promise.resolve(d))),q8(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),k(d=>{n.targetSnapshot=d.targetSnapshot,n.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=d.urlAfterRedirects,h)),this.events.next(new Du)}),O(d=>ue(n.routesRecognizeHandler.deferredHandle??I(void 0)).pipe(S(()=>d))),k(()=>{let d=new Wi(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:p,restoredState:E,extras:D}=a,b=new Jt(d,this.urlSerializer.serialize(h),p,E);this.events.next(b);let R=FN(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=n=T(v({},a),{targetSnapshot:R,urlAfterRedirects:h,extras:T(v({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(M=>(M.finalUrl=h,M)),I(n)}else return this.events.next(new Nr(a.id,this.urlSerializer.serialize(a.extractedUrl),"",ia.IgnoredByUrlHandlingStrategy)),a.resolve(!1),te}),S(a=>{let c=new Dh(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=n=T(v({},a),{guards:u8(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n}),S8(a=>this.events.next(a)),O(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Lh(this.urlSerializer,a.guardsResult);let c=new Ih(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return te;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",At.GuardRejected),te;if(a.guards.canActivateChecks.length===0)return I(a);let u=new Th(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return te;let l=!1;return I(a).pipe(Y8(this.paramsInheritanceStrategy),k({next:()=>{l=!0;let d=new bh(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>
5{l||this.cancelNavigationTransition(a,"",At.NoDataFromResolver)}}))}),vN(a=>{let c=l=>{let d=[];if(l.routeConfig?._loadedComponent)l.component=l.routeConfig?._loadedComponent;else if(l.routeConfig?.loadComponent){let h=l._environmentInjector;d.push(this.configLoader.loadComponent(h,l.routeConfig).then(p=>{l.component=p}))}for(let h of l.children)d.push(...c(h));return d},u=c(a.targetSnapshot.root);return u.length===0?I(a):ue(Promise.all(u).then(()=>a))}),vN(()=>this.afterPreactivation()),O(()=>{let{currentSnapshot:a,targetSnapshot:c}=n,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?ue(u).pipe(S(()=>n)):I(n)}),W(1),O(a=>{let c=o8(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=n=a=T(v({},a),{targetRouterState:c}),this.currentNavigation.update(l=>(l.targetRouterState=c,l)),this.events.next(new sa);let u=n.beforeActivateHandler.deferredHandle;return u?ue(u.then(()=>a)):I(a)}),k(a=>{new gC(t.routeReuseStrategy,n.targetRouterState,n.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=tW,c)),this.lastSuccessfulNavigation.set(be(this.currentNavigation)),this.events.next(new ot(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),Yr(zN(o.signal).pipe(_(()=>!i&&!n.targetRouterState),k(()=>{this.cancelNavigationTransition(n,o.signal.reason+"",At.Aborted)}))),k({complete:()=>{i=!0}}),Yr(this.transitionAbortWithErrorSubject.pipe(k(a=>{throw a}))),Mi(()=>{o.abort(),i||this.cancelNavigationTransition(n,"",At.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),j(a=>{if(i=!0,this.destroyed)return n.resolve(!1),te;if(HN(a))this.events.next(new Rt(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),c8(a)?this.events.next(new aa(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let c=new An(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let u=nt(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof ua){let{message:l,cancellationCode:d}=Lh(this.urlSerializer,u);this.events.next(new Rt(n.id,this.urlSerializer.serialize(n.extractedUrl),l,d)),this.events.next(new aa(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(u)}}return te}))}))}cancelNavigationTransition(t,n,i){let o=new Rt(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(o),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=be(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function nW(e){return e!==na}var nO=new C("");var rO=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>g(rW),providedIn:"root"})}return e})(),Fh=class{shouldDetach(r){return!1}store(r,t){}shouldAttach(r){return!1}retrieve(r){return null}shouldReuseRoute(r,t){return r.routeConfig===t.routeConfig}shouldDestroyInjector(r){return!0}},rW=(()=>{class e extends Fh{static \u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})();static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Bh=(()=>{class e{urlSerializer=g(Or);options=g(qi,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=g(sn);urlHandlingStrategy=g(jh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new cn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let o=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,s=i??o;return s instanceof cn?this.urlSerializer.serialize(s):s}routerUrlState(t){return t?.targetBrowserUrl===void 0||t?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(t.finalUrl)}}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=FN(null,g(xe));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:()=>g(iW),providedIn:"root"})}return e})(),iW=(()=>{class e extends Bh{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(t,n){t instanceof Jt?this.updateStateMemento():t instanceof Nr?this.commitTransition(n):t instanceof Wi?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof sa?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof Rt&&!PN(t)?this.restoreHistory(n):t instanceof An?this.restoreHistory(n,!0):t instanceof ot&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,n){let{extras:i,id:o}=n,{replaceUrl:s,state:a}=i;if(this.location.isCurrentPathEqualTo(t)||s){let c=this.browserPageId,u=v(v({},a),this.generateNgRouterState(o,c,n));this.location.replaceState(t,"",u)}else{let c=v(v({},a),this.generateNgRouterState(o,this.browserPageId+1,n));this.location.go(t,"",c)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===t.finalUrl&&o===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n,i){return this.canceledNavigationResolution==="computed"?v({navigationId:t,\u0275routerPageId:n},this.routerUrlState(i)):v({navigationId:t},this.routerUrlState(i))}static \u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})();static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Hh(e,r){e.events.pipe(_(t=>t instanceof ot||t instanceof Rt||t instanceof An||t instanceof Nr),S(t=>t instanceof ot||t instanceof Nr?0:(t instanceof Rt?t.code===At.Redirect||t.code===At.SupersededByNewNavigation:!1)?2:1),_(t=>t!==2),W(1)).subscribe(()=>{r()})}var Ce=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=g(Nf);stateManager=g(Bh);options=g(qi,{optional:!0})||{};pendingTasks=g(Ir);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=g($h);
5urlSerializer=g(Or);location=g(sn);urlHandlingStrategy=g(jh);injector=g(xe);_events=new X;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=g(rO);injectorCleanup=g(nO,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=g(fa,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!g(Au,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new ce;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,o=be(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(n,o),n instanceof Rt&&n.code!==At.Redirect&&n.code!==At.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof ot)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(n instanceof aa){let s=n.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),c=v({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||nW(i.source)},s);this.scheduleNavigation(a,na,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}r8(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),na,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i,o)=>{this.navigateToSyncWithBrowser(t,i,n,o)})}navigateToSyncWithBrowser(t,n,i,o){let s=i?.navigationId?i:null,a=i?.\u0275routerUrl??t;if(i?.\u0275routerUrl&&(o=T(v({},o),{browserUrl:t})),i){let u=v({},i);delete u.navigationId,delete u.\u0275routerPageId,delete u.\u0275routerUrl,Object.keys(u).length!==0&&(o.state=u)}let c=this.parseUrl(a);this.scheduleNavigation(c,n,s,o).catch(u=>{this.disposed||this.injector.get(Ut)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return be(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(bC),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=n,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=v(v({},this.currentUrlTree.queryParams),o);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=o||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=i?i.snapshot:this.routerState.snapshot.root;d=NN(h)}catch(h){(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return ON(d,t,l,u??null,this.urlSerializer)}navigateByUrl(t,n={skipLocationChange:!1}){let i=Gi(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,na,null,n)}navigate(t,n={skipLocationChange:!1}){return oW(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch(n){return this.console.warn(vn(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=v({},DN):n===!1?i=v({},aC):i=v(v({},aC),n),Gi(t))return dN(this.currentUrlTree,t,i);let o=this.parseUrl(t);return dN(this.currentUrlTree,o,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,o])=>(o!=null&&(n[i]=o),n),{})}
5scheduleNavigation(t,n,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Hh(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(Promise.reject.bind(Promise))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function oW(e){for(let r=0;r<e.length;r++)if(e[r]==null)throw new N(4008,!1)}var aW=(()=>{class e{router=g(Ce);stateManager=g(Bh);fragment=Me("");queryParams=Me({});path=Me("");serializer=g(Or);constructor(){this.updateState(),this.router.events?.subscribe(t=>{t instanceof ot&&this.updateState()})}updateState(){let{fragment:t,root:n,queryParams:i}=this.stateManager.getCurrentUrlTree();this.fragment.set(t),this.queryParams.set(i),this.path.set(this.serializer.serialize(new cn(n)))}static \u0275fac=function(n){return new(n||e)};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),iO=(()=>{class e{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=g(new jf("href"),{optional:!0});reactiveHref=pS(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return be(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}set target(t){this._target.set(t)}get target(){return be(this._target)}_target=Me(void 0);set queryParams(t){this._queryParams.set(t)}get queryParams(){return be(this._queryParams)}_queryParams=Me(void 0,{equal:()=>!1});set fragment(t){this._fragment.set(t)}get fragment(){return be(this._fragment)}_fragment=Me(void 0);set queryParamsHandling(t){this._queryParamsHandling.set(t)}get queryParamsHandling(){return be(this._queryParamsHandling)}_queryParamsHandling=Me(void 0);set state(t){this._state.set(t)}get state(){return be(this._state)}_state=Me(void 0,{equal:()=>!1});set info(t){this._info.set(t)}get info(){return be(this._info)}_info=Me(void 0,{equal:()=>!1});set relativeTo(t){this._relativeTo.set(t)}get relativeTo(){return be(this._relativeTo)}_relativeTo=Me(void 0);set preserveFragment(t){this._preserveFragment.set(t)}get preserveFragment(){return be(this._preserveFragment)}_preserveFragment=Me(!1);set skipLocationChange(t){this._skipLocationChange.set(t)}get skipLocationChange(){return be(this._skipLocationChange)}_skipLocationChange=Me(!1);set replaceUrl(t){this._replaceUrl.set(t)}get replaceUrl(){return be(this._replaceUrl)}_replaceUrl=Me(!1);isAnchorElement;onChanges=new X;applicationErrorHandler=g(Ut);options=g(qi,{optional:!0});reactiveRouterState=g(aW);constructor(t,n,i,o,s,a){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.onChanges.next(this)}routerLinkInput=Me(null);set routerLink(t){t==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Gi(t)?this.routerLinkInput.set(t):this.routerLinkInput.set(Array.isArray(t)?t:[t]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,o,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(t!==0||n||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(t,n){let i=this.renderer,o=this.el.nativeElement;n!==null?i.setAttribute(o,t,n):i.removeAttribute(o,t)}_urlTree=Bi(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let t=i=>i==="preserve"||i==="merge";(t(this._queryParamsHandling())||t(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let n=this.routerLinkInput();return n===null||!this.router.createUrlTree?null:Gi(n)?n:this.router.createUrlTree(n,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(t,n)=>this.computeHref(t)===this.computeHref(n)});get urlTree(){return be(this._urlTree)}computeHref(t){return t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null}static \u0275fac=function(n){return new(n||e)(se(Ce),se(nr),Hc("tabindex"),se(Ws),se(wr),se(Jn))};static \u0275dir=Wt({type:e,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&Ff("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Lf("href",i.reactiveHref(),_E)("target",i._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",tu],skipLocationChange:[2,"skipLocationChange","skipLocationChange",tu],replaceUrl:[2,"replaceUrl","replaceUrl",tu],routerLink:"routerLink"},features:[Uo]})}return e})();var Mu=class{};var oO=(()=>{class e{router;injector;preloadingStrategy;loader;subscription;constructor(t,n,i,o){this.router=t,this.injector=n,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(_(t=>t instanceof ot),Je(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(t,n){let i=[];for(let o of n){o.providers&&!o._injector&&(o._injector=Ys(o.providers,t,""));let s=o._injector??t;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return ue(i).pipe(_i())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{if(t.destroyed)return I(null);let i;n.loadChildren&&n.canLoad===void 0?i=ue(this.loader.loadChildren(t,n)):i=I(null);let o=i.pipe(G(s=>s===null?I(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,n._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(t,n);return ue([o,s]).pipe(_i())}else return o}
5)}static \u0275fac=function(n){return new(n||e)(f(Ce),f(xe),f(Mu),f(Uh))};static \u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),sO=new C(""),cW=(()=>{class e{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=na;restoredId=0;store={};isHydrating=g(SE,{optional:!0})??!1;urlSerializer=g(Or);zone=g(De);viewportScroller=g(kS);transitions=g($h);constructor(t){this.options=t,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&g(ai).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Jt?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ot?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Nr&&t.code===ia.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof oa)||t.scrollBehavior==="manual")return;let n={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,n):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,n){if(this.isHydrating)return;let i=be(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>Q(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new oa(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){VE()};static \u0275prov=m({token:e,factory:e.\u0275fac})}return e})();function uW(){return g(Ce).routerState.root}function Nu(e,r){return{\u0275kind:e,\u0275providers:r}}function lW(){let e=g(de);return r=>{let t=e.get(ai);if(r!==t.components[0])return;let n=e.get(Ce),i=e.get(aO);e.get(NC)===1&&n.initialNavigation(),e.get(lO,null,{optional:!0})?.setUpPreloading(),e.get(sO,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var aO=new C("",{factory:()=>new X}),NC=new C("",{factory:()=>1});function cO(){let e=[{provide:yf,useValue:!0},{provide:NC,useValue:0},xf(()=>{let r=g(de);return r.get(ru,Promise.resolve()).then(()=>new Promise(n=>{let i=r.get(Ce),o=r.get(aO);Hh(i,()=>{n(!0)}),r.get($h).afterPreactivation=()=>(n(!0),o.closed?I(void 0):o),i.initialNavigation()}))})];return Nu(2,e)}function uO(){let e=[xf(()=>{g(Ce).setUpLocationChangeListener()}),{provide:NC,useValue:2}];return Nu(3,e)}var lO=new C("");function dO(e){return Nu(0,[{provide:lO,useExisting:oO},{provide:Mu,useExisting:e}])}function fO(){return Nu(8,[IC,{provide:Au,useExisting:IC}])}function hO(e){Tn("NgRouterViewTransitions");let r=[{provide:_C,useValue:tO},{provide:AC,useValue:v({skipNextTransition:!!e?.skipInitialTransition},e)}];return Nu(9,r)}var pO=[sn,{provide:Or,useClass:tr},Ce,Go,{provide:nr,useFactory:uW},Uh,[]],gO=(()=>{class e{constructor(){}static forRoot(t,n){return{ngModule:e,providers:[pO,[],{provide:fa,multi:!0,useValue:t},[],n?.errorHandler?{provide:RC,useValue:n.errorHandler}:[],{provide:qi,useValue:n||{}},n?.useHash?fW():hW(),dW(),n?.preloadingStrategy?dO(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?pW(n):[],n?.bindToComponentInputs?fO().\u0275providers:[],n?.enableViewTransitions?hO().\u0275providers:[],gW()]}}static forChild(t){return{ngModule:e,providers:[{provide:fa,multi:!0,useValue:t}]}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=U({type:e});static \u0275inj=P({})}return e})();function dW(){return{provide:sO,useFactory:()=>{let e=g(kS),r=g(qi);return r.scrollOffset&&e.setOffset(r.scrollOffset),new cW(r)}}}function fW(){return{provide:Jn,useClass:NS}}function hW(){return{provide:Jn,useClass:zf}}function pW(e){return[e.initialNavigation==="disabled"?uO().\u0275providers:[],e.initialNavigation==="enabledBlocking"?cO().\u0275providers:[]]}var MC=new C("");function gW(){return[{provide:MC,useFactory:lW},{provide:Ks,multi:!0,useExisting:MC}]}function Xye(e){e||(e=g(ze));let r=new L(t=>{if(e.destroyed){t.next();return}return e.onDestroy(t.next.bind(t))});return t=>t.pipe(Yr(r))}function eEe(e){let r=hS(e);return new L(t=>{let n=r?.onDestroy(()=>t.complete()),i=e.subscribe(o=>t.next(o));return()=>{i.unsubscribe(),n?.()}})}function Vh(e,r){let n=!r?.manualCleanup?r?.injector?.get(ze)??g(ze):null,i=mW(r?.equal),o;r?.requireSync?o=Me({kind:0},{equal:i}):o=Me({kind:1,value:r?.initialValue},{equal:i});let s,a=e.subscribe({next:c=>o.set({kind:1,value:c}),error:c=>{o.set({kind:2,error:c}),s?.()},complete:()=>{s?.()}});if(r?.requireSync&&o().kind===0)throw new N(601,!1);return s=n?.onDestroy(a.unsubscribe.bind(a)),Bi(()=>{let c=o();switch(c.kind){case 1:return c.value;case 2:throw c.error;case 0:throw new N(601,!1)}},{equal:r?.equal})}function mW(e=Object.is){return(r,t)=>r.kind===1&&t.kind===1&&e(r.value,t.value)}var PC={};
vendor: 6,156 bytes, lines 5-8
5function Yi(e,r){if(PC[e]=(PC[e]||0)+1,typeof r=="function")return OC(e,(...n)=>T(v({},r(...n)),{type:e}));switch(r?r._as:"empty"){case"empty":return OC(e,()=>({type:e}));case"props":return OC(e,n=>T(v({},n),{type:e}));default:throw new Error("Unexpected config.")}}function ga(){return{_as:"props",_p:void 0}}function OC(e,r){return Object.defineProperty(r,"type",{value:e,writable:!1})}function vW(e,r){if(e==null)throw new Error(`${r} must be defined.`)}var qh="@ngrx/store/init",Rn=(()=>{class e extends ve{constructor(){super({type:qh})}next(t){if(typeof t=="function")throw new TypeError(` 6 Dispatch expected an object, instead it received a function. 7 If you're using the createAction function, make sure to invoke the function 8 before dispatching the action. For example, someAction should be someAction().`);if(typeof t>"u")throw new TypeError("Actions must be objects");if(typeof t.type>"u")throw new TypeError("Actions must have a type property");super.next(t)}complete(){}ngOnDestroy(){super.complete()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),yW=[Rn],$C=new C("@ngrx/store Internal Root Guard"),vO=new C("@ngrx/store Internal Initial State"),BC=new C("@ngrx/store Initial State"),OO=new C("@ngrx/store Reducer Factory"),yO=new C("@ngrx/store Internal Reducer Factory Provider"),xO=new C("@ngrx/store Initial Reducers"),xC=new C("@ngrx/store Internal Initial Reducers"),EO=new C("@ngrx/store Store Features"),SO=new C("@ngrx/store Internal Store Reducers"),LC=new C("@ngrx/store Internal Feature Reducers"),CO=new C("@ngrx/store Internal Feature Configs"),HC=new C("@ngrx/store Internal Store Features"),DO=new C("@ngrx/store Internal Feature Reducers Token"),VC=new C("@ngrx/store Feature Reducers"),IO=new C("@ngrx/store User Provided Meta Reducers"),ha=new C("@ngrx/store Meta Reducers"),TO=new C("@ngrx/store Internal Resolved Meta Reducers"),bO=new C("@ngrx/store User Runtime Checks Config"),wO=new C("@ngrx/store Internal User Runtime Checks Config"),Wo=new C("@ngrx/store Internal Runtime Checks"),xu=new C("@ngrx/store Check if Action types are unique"),zh=new C("@ngrx/store Root Store Provider"),FC=new C("@ngrx/store Feature State Provider");function qo(e,r={}){let t=Object.keys(e),n={};for(let o=0;o<t.length;o++){let s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}let i=Object.keys(n);return function(s,a){s=s===void 0?r:s;let c=!1,u={};for(let l=0;l<i.length;l++){let d=i[l],h=n[d],p=s[d],E=h(p,a);u[d]=E,c=c||E!==p}return c?u:s}}function EW(e,r){return Object.keys(e).filter(t=>t!==r).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{})}function LO(...e){return function(r){if(e.length===0)return r;let t=e[e.length-1];return e.slice(0,-1).reduceRight((i,o)=>o(i),t(r))}}function PO(e,r){return Array.isArray(r)&&r.length>0&&(e=LO.apply(null,[...r,e])),(t,n)=>{let i=e(t);return(o,s)=>(o=o===void 0?n:o,i(o,s))}}function SW(e){let r=Array.isArray(e)&&e.length>0?LO(...e):t=>t;return(t,n)=>(t=r(t),(i,o)=>(i=i===void 0?n:i,t(i,o)))}var pa=class extends L{},Gh=class extends Rn{},CW="@ngrx/store/update-reducers",Ou=(()=>{class e extends ve{get currentReducers(){return this.reducers}constructor(t,n,i,o){super(o(i,n)),this.dispatcher=t,this.initialState=n,this.reducers=i,this.reducerFactory=o}addFeature(t){this.addFeatures([t])}addFeatures(t){let n=t.reduce((i,{reducers:o,reducerFactory:s,metaReducers:a,initialState:c,key:u})=>{let l=typeof o=="function"?SW(a)(o,c):PO(s,a)(o,c);return i[u]=l,i},{});this.addReducers(n)}removeFeature(t){this.removeFeatures([t])}removeFeatures(t){this.removeReducers(t.map(n=>n.key))}addReducer(t,n){this.addReducers({[t]:n})}addReducers(t){this.reducers=v(v({},this.reducers),t),this.updateReducers(Object.keys(t))}removeReducer(t){this.removeReducers([t])}removeReducers(t){t.forEach(n=>{this.reducers=EW(this.reducers,n)}),this.updateReducers(t)}updateReducers(t){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:CW,features:t})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(n){return new(n||e)(f(Gh),f(BC),f(xO),f(OO))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),DW=[Ou,{provide:pa,useExisting:Ou},{provide:Gh,useExisting:Rn}],ma=(()=>{class e extends X{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),IW=[ma],Wh=class extends L{},_O=(()=>{class e extends ve{static{this.INIT=qh}constructor(t,n,i,o){super(o);let a=t.pipe(pn(Ti)).pipe(et(n)),c={state:o},u=a.pipe(oc(TW,c));this.stateSubscription=u.subscribe(({state:l,action:d})=>{this.next(l),i.next(d)}),this.state=Vh(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(n){return new(n||e)(f(Rn),f(pa),f(ma),f(BC))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();function TW(e={state:void 0},[r,t]){let{state:n}=e;return{state:t(n,r),action:r}}var bW=[_O,{provide:Wh,useExisting:_O}],ee=(()=>{class e extends L{constructor(t,n,i,o){super(),this.actionsObserver=n,this.reducerManager=i,this.injector=o,this.source=t,this.state=t.state}select(t,...n){return A.call(null,t,...n)(this)}selectSignal(t,n){return Bi(()=>t(this.state()),n)}lift(t){let n=new e(this,this.actionsObserver,this.reducerManager);return n.operator=t,n}dispatch(t,n){if(typeof t=="function")return this.processDispatchFn(t,n);this.actionsObserver.next(t)}next(t){this.actionsObserver.next(t)}error(t){this.actionsObserver.error(t)}complete(){this.actionsObserver.complete()}addReducer(t,n){this.reducerManager.addReducer(t,n)}removeReducer(t){this.reducerManager.removeReducer(t)}processDispatchFn(t,n){vW(this.injector,"Store Injector");let i=n?.injector??_W()??this.injector;return Rc(()=>{let o=t();be(()=>this.dispatch(o))},{injector:i})}static{this.\u0275fac=function(n){return new(n||e)(f(Wh),f(Rn),f(Ou),f(de))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),wW=[ee];function A(e,r,...t){return function(i){let o;
8if(typeof e=="string"){let s=[r,...t].filter(Boolean);o=i.pipe(hv(e,...s))}else if(typeof e=="function")o=i.pipe(S(s=>e(s,r)));else throw new TypeError(`Unexpected type '${typeof e}' in select operator, expected 'string' or 'function'`);return o.pipe(Vt())}}function _W(){try{return g(de)}catch(e){return}}var zC="https://ngrx.io/guide/store/configuration/runtime-checks";function AO(e){return e===void 0}function RO(e){return e===null}function FO(e){return Array.isArray(e)}function AW(e){return typeof e=="string"}function RW(e){return typeof e=="boolean"}function MW(e){return typeof e=="number"}function kO(e){return typeof e=="object"&&e!==null}function NW(e){return kO(e)&&!FO(e)}function OW(e){if(!NW(e))return!1;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}function kC(e){return typeof e=="function"}function xW(e){return kC(e)&&e.hasOwnProperty("\u0275cmp")}function LW(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var PW=!1;function GC(){return PW}function MO(e,r){return e===r}function FW(e,r,t){for(let n=0;n<e.length;n++)if(!t(e[n],r[n]))return!0;return!1}function UO(e,r=MO,t=MO){let n=null,i=null,o;function s(){n=null,i=null}function a(l=void 0){o={result:l}}function c(){o=void 0}function u(){if(o!==void 0)return o.result;if(!n)return i=e.apply(null,arguments),n=arguments,i;if(!FW(arguments,n,r))return i;let l=e.apply(null,arguments);return n=arguments,t(i,l)?i:(i=l,l)}return{memoized:u,reset:s,setResult:a,clearResult:c}}function w(...e){return UW(UO)(...e)}function kW(e,r,t,n){if(t===void 0){let o=r.map(s=>s(e));return n.memoized.apply(null,o)}let i=r.map(o=>o(e,t));return n.memoized.apply(null,[...i,t])}function UW(e,r={stateFn:kW}){return function(...t){let n=t;if(Array.isArray(n[0])){let[l,...d]=n;n=[...l,...d]}else n.length===1&&jW(n[0])&&(n=$W(n[0]));let i=n.slice(0,n.length-1),o=n[n.length-1],s=i.filter(l=>l.release&&typeof l.release=="function"),a=e(function(...l){return o.apply(null,l)}),c=UO(function(l,d){return r.stateFn.apply(null,[l,i,d,a])});function u(){c.reset(),a.reset(),s.forEach(l=>l.release())}return Object.assign(c.memoized,{release:u,projector:a.memoized,setResult:c.setResult,clearResult:c.clearResult})}}function Mn(e){return w(r=>{let t=r[e];return!GC()&&ge()&&!(e in r)&&console.warn(`@ngrx/store: The feature name "${e}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${e}', ...) or StoreModule.forFeature('${e}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),t},r=>r)}function jW(e){return!!e&&typeof e=="object"&&Object.values(e).every(r=>typeof r=="function")}function $W(e){let r=Object.values(e),t=Object.keys(e),n=(...i)=>t.reduce((o,s,a)=>T(v({},o),{[s]:i[a]}),{});return[...r,n]}function BW(e){return e instanceof C?g(e):e}function HW(e,r){return r.map((t,n)=>{if(e[n]instanceof C){let i=g(e[n]);return{key:t.key,reducerFactory:i.reducerFactory?i.reducerFactory:qo,metaReducers:i.metaReducers?i.metaReducers:[],initialState:i.initialState}}return t})}function VW(e){return e.map(r=>r instanceof C?g(r):r)}function WC(e){return typeof e=="function"?e():e}function zW(e,r){return e.concat(r)}function GW(){if(g(ee,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function WW(e,r){return function(t,n){let i=r.action(n)?UC(n):n,o=e(t,i);return r.state()?UC(o):o}}function UC(e){Object.freeze(e);let r=kC(e);return Object.getOwnPropertyNames(e).forEach(t=>{if(!t.startsWith("\u0275")&&LW(e,t)&&(!r||t!=="caller"&&t!=="callee"&&t!=="arguments")){let n=e[t];(kO(n)||kC(n))&&!Object.isFrozen(n)&&UC(n)}}),e}function qW(e,r){return function(t,n){if(r.action(n)){let o=jC(n);NO(o,"action")}let i=e(t,n);if(r.state()){let o=jC(i);NO(o,"state")}return i}}function jC(e,r=[]){return(AO(e)||RO(e))&&r.length===0?{path:["root"],value:e}:Object.keys(e).reduce((n,i)=>{if(n)return n;let o=e[i];return xW(o)?n:AO(o)||RO(o)||MW(o)||RW(o)||AW(o)||FO(o)?!1:OW(o)?jC(o,[...r,i]):{path:[...r,i],value:o}},!1)}function NO(e,r){if(e===!1)return;let t=e.path.join("."),n=new Error(`Detected unserializable ${r} at "${t}". ${zC}#strict${r}serializability`);throw n.value=e.value,n.unserializablePath=t,n}function YW(e,r){return function(t,n){if(r.action(n)&&!De.isInAngularZone())throw new Error(`Action '${n.type}' running outside NgZone. ${zC}#strictactionwithinngzone`);return e(t,n)}}
8function KW(e){return ge()?v({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},e):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function ZW({strictActionSerializability:e,strictStateSerializability:r}){return t=>e||r?qW(t,{action:n=>e&&!qC(n),state:()=>r}):t}function QW({strictActionImmutability:e,strictStateImmutability:r}){return t=>e||r?WW(t,{action:n=>e&&!qC(n),state:()=>r}):t}function qC(e){return e.type.startsWith("@ngrx")}function JW({strictActionWithinNgZone:e}){return r=>e?YW(r,{action:t=>e&&!qC(t)}):r}function XW(e){return[{provide:wO,useValue:e},{provide:bO,useFactory:e3,deps:[wO]},{provide:Wo,deps:[bO],useFactory:KW},{provide:ha,multi:!0,deps:[Wo],useFactory:QW},{provide:ha,multi:!0,deps:[Wo],useFactory:ZW},{provide:ha,multi:!0,deps:[Wo],useFactory:JW}]}function jO(){return[{provide:xu,multi:!0,deps:[Wo],useFactory:t3}]}function e3(e){return e}function t3(e){if(!e.strictActionTypeUniqueness)return;let r=Object.entries(PC).filter(([,t])=>t>1).map(([t])=>t);if(r.length)throw new Error(`Action types are registered more than once, ${r.map(t=>`"${t}"`).join(", ")}. ${zC}#strictactiontypeuniqueness`)}function n3(e={},r={}){return[{provide:$C,useFactory:GW},{provide:vO,useValue:r.initialState},{provide:BC,useFactory:WC,deps:[vO]},{provide:xC,useValue:e},{provide:SO,useExisting:e instanceof C?e:xC},{provide:xO,deps:[xC,[new mf(SO)]],useFactory:BW},{provide:IO,useValue:r.metaReducers?r.metaReducers:[]},{provide:TO,deps:[ha,IO],useFactory:zW},{provide:yO,useValue:r.reducerFactory?r.reducerFactory:qo},{provide:OO,deps:[yO,TO],useFactory:PO},yW,DW,IW,bW,wW,XW(r.runtimeChecks),jO()]}function r3(){g(Rn),g(pa),g(ma),g(ee),g($C,{optional:!0}),g(xu,{optional:!0})}var lEe=[{provide:zh,useFactory:r3},Pi(()=>g(zh))];function i3(){g(zh);let e=g(HC),r=g(VC),t=g(Ou);g(xu,{optional:!0});let n=e.map((i,o)=>{let a=r.shift()[o];return T(v({},i),{reducers:a,initialState:WC(i.initialState)})});t.addFeatures(n)}var dEe=[{provide:FC,useFactory:i3},Pi(()=>g(FC))];function o3(e,r,t={}){return[{provide:CO,multi:!0,useValue:e instanceof Object?{}:t},{provide:EO,multi:!0,useValue:{key:e instanceof Object?e.name:e,reducerFactory:!(t instanceof C)&&t.reducerFactory?t.reducerFactory:qo,metaReducers:!(t instanceof C)&&t.metaReducers?t.metaReducers:[],initialState:!(t instanceof C)&&t.initialState?t.initialState:void 0}},{provide:HC,deps:[CO,EO],useFactory:HW},{provide:LC,multi:!0,useValue:e instanceof Object?e.reducer:r},{provide:DO,multi:!0,useExisting:r instanceof C?r:LC},{provide:VC,multi:!0,deps:[LC,[new mf(DO)]],useFactory:VW},jO()]}var Lu=(()=>{class e{constructor(t,n,i,o,s,a){}static{this.\u0275fac=function(n){return new(n||e)(f(Rn),f(pa),f(ma),f(ee),f($C,8),f(xu,8))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),Yh=(()=>{class e{constructor(t,n,i,o,s){this.features=t,this.featureReducers=n,this.reducerManager=i;let a=t.map((c,u)=>{let d=n.shift()[u];return T(v({},c),{reducers:d,initialState:WC(c.initialState)})});i.addFeatures(a)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}static{this.\u0275fac=function(n){return new(n||e)(f(HC),f(VC),f(Ou),f(Lu),f(xu,8))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),xr=(()=>{class e{static forRoot(t,n){return{ngModule:Lu,providers:[...n3(t,n)]}}static forFeature(t,n,i={}){return{ngModule:Yh,providers:[...o3(t,n,i)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();var s3={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Zh="__@ngrx/effects_create__";function pe(e,r={}){let t=r.functional?e:e(),n=v(v({},s3),r);return Object.defineProperty(t,Zh,{value:n}),t}function a3(e){return Object.getOwnPropertyNames(e).filter(n=>e[n]&&e[n].hasOwnProperty(Zh)?e[n][Zh].hasOwnProperty("dispatch"):!1).map(n=>{let i=e[n][Zh];return v({propertyName:n},i)})}function c3(e){return a3(e)}function VO(e){return Object.getPrototypeOf(e)}function u3(e){return!!e.constructor&&e.constructor.name!=="Object"&&e.constructor.name!=="Function"}function zO(e){return typeof e=="function"}function $O(e){return e.filter(zO)}function l3(e){return e instanceof C||zO(e)}function d3(e,r,t){let n=VO(e),o=!!n&&n.constructor.name!=="Object"?n.c
8onstructor.name:null,s=c3(e).map(({propertyName:a,dispatch:c,useEffectsErrorHandler:u})=>{let l=typeof e[a]=="function"?e[a]():e[a],d=u?t(l,r):l;return c===!1?d.pipe(rc()):d.pipe(fv()).pipe(S(p=>({effect:e[a],notification:p,propertyName:a,sourceName:o,sourceInstance:e})))});return mn(...s)}var f3=10;function GO(e,r,t=f3){return e.pipe(j(n=>(r&&r.handleError(n),t<=1?e:GO(e,r,t-1))))}var Ge=(()=>{class e extends L{constructor(t){super(),t&&(this.source=t)}lift(t){let n=new e;return n.source=this,n.operator=t,n}static{this.\u0275fac=function(n){return new(n||e)(f(ma))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ne(...e){return _(r=>e.some(t=>typeof t=="string"?t===r.type:t.type===r.type))}var WO=new C("@ngrx/effects Internal Root Guard"),Kh=new C("@ngrx/effects User Provided Effects"),KC=new C("@ngrx/effects Internal Root Effects"),qO=new C("@ngrx/effects Internal Root Effects Instances"),BO=new C("@ngrx/effects Internal Feature Effects"),YO=new C("@ngrx/effects Internal Feature Effects Instance Groups"),h3=new C("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>GO}),KO="@ngrx/effects/init",CEe=Yi(KO);function p3(e,r){if(e.notification.kind==="N"){let t=e.notification.value;!g3(t)&&r.handleError(new Error(`Effect ${m3(e)} dispatched an invalid action: ${v3(t)}`))}}function g3(e){return typeof e!="function"&&e&&e.type&&typeof e.type=="string"}function m3({propertyName:e,sourceInstance:r,sourceName:t}){let n=typeof r[e]=="function";return!!t?`"${t}.${String(e)}${n?"()":""}"`:`"${String(e)}()"`}function v3(e){try{return JSON.stringify(e)}catch(r){return e}}var y3="ngrxOnIdentifyEffects";function E3(e){return ZC(e,y3)}var S3="ngrxOnRunEffects";function C3(e){return ZC(e,S3)}var D3="ngrxOnInitEffects";function I3(e){return ZC(e,D3)}function ZC(e,r){return e&&r in e&&typeof e[r]=="function"}var ZO=(()=>{class e extends X{constructor(t,n){super(),this.errorHandler=t,this.effectsErrorHandler=n}addEffects(t){this.next(t)}toActions(){return this.pipe(mr(t=>u3(t)?VO(t):t),G(t=>t.pipe(mr(T3))),G(t=>{let n=t.pipe(gr(o=>b3(this.errorHandler,this.effectsErrorHandler)(o)),S(o=>(p3(o,this.errorHandler),o.notification)),_(o=>o.kind==="N"&&o.value!=null),dv()),i=t.pipe(W(1),_(I3),S(o=>o.ngrxOnInitEffects()));return mn(n,i)}))}static{this.\u0275fac=function(n){return new(n||e)(f(qe),f(h3))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function T3(e){return E3(e)?e.ngrxOnIdentifyEffects():""}function b3(e,r){return t=>{let n=d3(t,e,r);return C3(t)?t.ngrxOnRunEffects(n):n}}var QO=(()=>{class e{get isStarted(){return!!this.effectsSubscription}constructor(t,n){this.effectSources=t,this.store=n,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(n){return new(n||e)(f(ZO),f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),JO=(()=>{class e{constructor(t,n,i,o,s,a,c){this.sources=t,n.start();for(let u of o)t.addEffects(u);i.dispatch({type:KO})}addEffects(t){this.sources.addEffects(t)}static{this.\u0275fac=function(n){return new(n||e)(f(ZO),f(QO),f(ee),f(qO),f(Lu,8),f(Yh,8),f(WO,8))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),w3=(()=>{class e{constructor(t,n,i,o){let s=n.flat();for(let a of s)t.addEffects(a)}static{this.\u0275fac=function(n){return new(n||e)(f(JO),f(YO),f(Lu,8),f(Yh,8))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),Lr=(()=>{class e{static forFeature(...t){let n=t.flat(),i=$O(n);return{ngModule:w3,providers:[i,{provide:BO,multi:!0,useValue:n},{provide:Kh,multi:!0,useValue:[]},{provide:YO,multi:!0,useFactory:HO,deps:[BO,Kh]}]}}static forRoot(...t){let n=t.flat(),i=$O(n);return{ngModule:JO,providers:[i,{provide:KC,useValue:[n]},{provide:WO,useFactory:_3},{provide:Kh,multi:!0,useValue:[]},{provide:qO,useFactory:HO,deps:[KC,Kh]}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();function HO(e,r){let t=[];for(let n of e)t.push(...n);for(let n of r)t.push(...n);return t.map(n=>l3(n)?g(n):n)}function _3(){let e=g(QO,{optional:!0,skipSelf:!0}),r=g(KC,{self:!0});if(!(r.length===1&&r[0].length===0)&&e)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature
8() instead.");return"guarded"}var nx="@ngrx/router-store/request",MEe=Yi(nx,ga()),Xh="@ngrx/router-store/navigation",NEe=Yi(Xh,ga()),ep="@ngrx/router-store/cancel",OEe=Yi(ep,ga()),tp="@ngrx/router-store/error",xEe=Yi(tp,ga()),np="@ngrx/router-store/navigated",LEe=Yi(np,ga());var Qh=class{serialize(r){return{root:this.serializeRoute(r.root),url:r.url}}serializeRoute(r){let t=r.children.map(n=>this.serializeRoute(n));return{params:r.params,data:r.data,url:r.url,outlet:r.outlet,title:r.title,routeConfig:r.routeConfig?{path:r.routeConfig.path,pathMatch:r.routeConfig.pathMatch,redirectTo:r.routeConfig.redirectTo,outlet:r.routeConfig.outlet,title:typeof r.routeConfig.title=="string"?r.routeConfig.title:void 0}:null,queryParams:r.queryParams,fragment:r.fragment,firstChild:t[0],children:t}}},QC=(function(e){return e[e.PreActivation=1]="PreActivation",e[e.PostActivation=2]="PostActivation",e})(QC||{}),R3="router",XO=new C("@ngrx/router-store Internal Configuration"),rx=new C("@ngrx/router-store Configuration"),Pu=(function(e){return e[e.Full=0]="Full",e[e.Minimal=1]="Minimal",e})(Pu||{});function M3(e){return v({stateKey:R3,serializer:Qh,navigationActionTiming:QC.PreActivation},e)}var Jh=class{serialize(r){return{root:this.serializeRoute(r.root),url:r.url}}serializeRoute(r){let t=r.children.map(n=>this.serializeRoute(n));return{params:r.params,paramMap:r.paramMap,data:r.data,url:r.url,outlet:r.outlet,title:r.title,routeConfig:r.routeConfig?{component:r.routeConfig.component,path:r.routeConfig.path,pathMatch:r.routeConfig.pathMatch,redirectTo:r.routeConfig.redirectTo,outlet:r.routeConfig.outlet,title:r.routeConfig.title}:null,queryParams:r.queryParams,queryParamMap:r.queryParamMap,fragment:r.fragment,component:r.routeConfig?r.routeConfig.component:void 0,root:void 0,parent:void 0,firstChild:t[0],pathFromRoot:void 0,children:t}}},va=class{},Pr=(function(e){return e[e.NONE=1]="NONE",e[e.ROUTER=2]="ROUTER",e[e.STORE=3]="STORE",e})(Pr||{}),ex=(()=>{class e{constructor(t,n,i,o,s,a){this.store=t,this.router=n,this.serializer=i,this.errorHandler=o,this.config=s,this.activeRuntimeChecks=a,this.lastEvent=null,this.routerState=null,this.trigger=Pr.NONE,this.stateKey=this.config.stateKey,!GC()&&ge()&&(a?.strictActionSerializability||a?.strictStateSerializability)&&this.serializer instanceof Jh&&console.warn("@ngrx/router-store: The serializability runtime checks cannot be enabled with the FullRouterStateSerializer. The FullRouterStateSerializer has an unserializable router state and actions that are not serializable. To use the serializability runtime checks either use the MinimalRouterStateSerializer or implement a custom router state serializer."),this.setUpStoreStateListener(),this.setUpRouterEventsListener()}setUpStoreStateListener(){this.store.pipe(A(this.stateKey),et(this.store)).subscribe(([t,n])=>{this.navigateIfNeeded(t,n)})}navigateIfNeeded(t,n){if(!t||!t.state||this.trigger===Pr.ROUTER||this.lastEvent instanceof Jt)return;let i=t.state.url;N3(this.router.url,i)||(this.storeState=n,this.trigger=Pr.STORE,this.router.navigateByUrl(i).catch(o=>{this.errorHandler.handleError(o)}))}setUpRouterEventsListener(){let t=this.config.navigationActionTiming===QC.PostActivation,n;this.router.events.pipe(et(this.store)).subscribe(([i,o])=>{this.lastEvent=i,i instanceof Jt?(this.routerState=this.serializer.serialize(this.router.routerState.snapshot),this.trigger!==Pr.STORE&&(this.storeState=o,this.dispatchRouterRequest(i))):i instanceof Wi?(n=i,!t&&this.trigger!==Pr.STORE&&this.dispatchRouterNavigation(i)):i instanceof Rt?(this.dispatchRouterCancel(i),this.reset()):i instanceof An?(this.dispatchRouterError(i),this.reset()):i instanceof ot&&(this.trigger!==Pr.STORE&&(t&&this.dispatchRouterNavigation(n),this.dispatchRouterNavigated(i)),this.reset())})}dispatchRouterRequest(t){this.dispatchRouterAction(nx,{event:t})}dispatchRouterNavigation(t){let n=this.serializer.serialize(t.state);this.dispatchRouterAction(Xh,{routerState:n,event:new Wi(t.id,t.url,t.urlAfterRedirects,n)})}dispatchRouterCancel(t){this.dispatchRouterAction(ep,{storeState:this.storeState,event:t})}dispatchRouterError(t){this.dispatchRouterAction(tp,{storeState:this.storeState,event:new An(t.id,t.url,`${t}`)})}dispatchRouterNavigated(t){let n=this.serializer.serialize(this.router.routerState.snapshot);this.dispatchRouterAction(np,{event:t,routerState:n})}dispatchRouterAction(t,n){this.trigger=Pr.ROUTER;try{this.store.dispatch({type:t,payload:T(v({routerState:this.routerState},n),{event:this.config.routerState===Pu.Full?n.event:{id:n.event.id,url:n.event.url,urlAfterRedirects:n.event.urlAfterRedirects}})})}finally{this.trigger=Pr.NONE}}reset(){this.trigger=Pr.NONE,this.storeState=null,this.routerState=null}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ce),f(va),f(qe),f(rx),f(Wo))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();function N3(e,r){return tx(e)===tx(r)}function tx(e){return e?.length>0&&e[e.length-1]==="/"?e.substring(0,e.length-1):e}function O3(e={}){return It([{provide:XO,useValue:e},{provide:rx,useFactory:M3,deps:[XO]},{provide:va,useClass:e.serializer?e.serializer:e.routerState===Pu.Full?Jh:Qh},Pi(()=>g(ex)),ex])}var ix=(()=>{class e{static forRoot(t={}){return{ngModule:e,providers:[O3(t)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();var rp=class{validateSignature(r){return Promise.resolve(null)}validateAtHash(r){return Promise.resolve(!0)}},ip=class{};var Fu=class{},L3=(()=>{class e extends Fu{now(){return Date.now()}new(){return new Date}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();var op=class{},Ko=class{},P3=(()=>{class e{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,n){this.data.set(t,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();var ku=class{constructor(r){this.type=r}},$t=class extends ku{constructor(r,t=null){super(r),this.info=t}},rr=class extends ku{constructor(r,t=null){super(r),this.info=t}},Ue=class extends ku{constructor(r,t,n=null){super(r),this.reason=t,this.params=n}};function ox(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(r).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function sx(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ya=class{constructor(r){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefresh
8IFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=t=>{location.href=t},r&&Object.assign(this,r)}},Yo=class{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}},sp=class{};var ax=(()=>{class e{getHashFragmentParams(t){let n=t||window.location.hash;if(n=decodeURIComponent(n),n.indexOf("#")!==0)return{};let i=n.indexOf("?");return i>-1?n=n.substr(i+1):n=n.substr(1),this.parseQueryString(n)}parseQueryString(t){let n={},i,o,s,a,c,u;if(t===null)return n;let l=t.split("&");for(let d=0;d<l.length;d++)i=l[d],o=i.indexOf("="),o===-1?(s=i,a=null):(s=i.substr(0,o),a=i.substr(o+1)),c=decodeURIComponent(s),u=decodeURIComponent(a),c.substr(0,1)==="/"&&(c=c.substr(1)),n[c]=u;return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),cx=32,F3=64,k3=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function JC(e,r,t,n,i){let o,s,a,c,u,l,d,h,p,E,D,b,R;for(;i>=64;){for(o=r[0],s=r[1],a=r[2],c=r[3],u=r[4],l=r[5],d=r[6],h=r[7],E=0;E<16;
8E++)D=n+E*4,e[E]=(t[D]&255)<<24|(t[D+1]&255)<<16|(t[D+2]&255)<<8|t[D+3]&255;for(E=16;E<64;E++)p=e[E-2],b=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,p=e[E-15],R=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,e[E]=(b+e[E-7]|0)+(R+e[E-16]|0);for(E=0;E<64;E++)b=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&d)|0)+(h+(k3[E]+e[E]|0)|0)|0,R=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&a^s&a)|0,h=d,d=l,l=u,u=c+b|0,c=a,a=s,s=o,o=b+R|0;r[0]+=o,r[1]+=s,r[2]+=a,r[3]+=c,r[4]+=u,r[5]+=l,r[6]+=d,r[7]+=h,n+=64,i-=64}return n}var XC=class{constructor(){this.digestLength=cx,this.blockSize=F3,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let r=0;r<this.buffer.length;r++)this.buffer[r]=0;for(let r=0;r<this.temp.length;r++)this.temp[r]=0;this.reset()}update(r,t=r.length){if(this.finished)throw new Error("SHA256: can't update because hash was finished.");let n=0;if(this.bytesHashed+=t,this.bufferLength>0){for(;this.bufferLength<64&&t>0;)this.buffer[this.bufferLength++]=r[n++],t--;this.bufferLength===64&&(JC(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(t>=64&&(n=JC(this.temp,this.state,r,n,t),t%=64);t>0;)this.buffer[this.bufferLength++]=r[n++],t--;return this}finish(r){if(!this.finished){let t=this.bytesHashed,n=this.bufferLength,i=t/536870912|0,o=t<<3,s=t%64<56?64:128;this.buffer[n]=128;for(let a=n+1;a<s-8;a++)this.buffer[a]=0;this.buffer[s-8]=i>>>24&255,this.buffer[s-7]=i>>>16&255,this.buffer[s-6]=i>>>8&255,this.buffer[s-5]=i>>>0&255,this.buffer[s-4]=o>>>24&255,this.buffer[s-3]=o>>>16&255,this.buffer[s-2]=o>>>8&255,this.buffer[s-1]=o>>>0&255,JC(this.temp,this.state,this.buffer,0,s),this.finished=!0}for(let t=0;t<8;t++)r[t*4+0]=this.state[t]>>>24&255,r[t*4+1]=this.state[t]>>>16&255,r[t*4+2]=this.state[t]>>>8&255,r[t*4+3]=this.state[t]>>>0&255;return this}digest(){let r=new Uint8Array(this.digestLength);return this.finish(r),r}_saveState(r){for(let t=0;t<this.state.length;t++)r[t]=this.state[t]}_restoreState(r,t){for(let n=0;n<this.state.length;n++)this.state[n]=r[n];this.bytesHashed=t,this.finished=!1,this.bufferLength=0}};function U3(e){let r=new XC().update(e),t=r.digest();return r.clean(),t}var GEe=new Uint8Array(cx);var ap=class{};function j3(e){if(typeof e!="string")throw new TypeError("expected string");let r=e,t=new Uint8Array(r.length);for(let n=0;n<r.length;n++)t[n]=r.charCodeAt(n);return t}function $3(e){let r=[];for(let t=0;t<e.length;t++)r.push(String.fromCharCode(e[t]));return r.join("")}var B3=(()=>{class e{calcHash(t,n){return Q(this,null,function*(){return $3(U3(j3(t)))})}toHashString2(t){let n="";for(let i of t)n+=String.fromCharCode(i);return n}toHashString(t){let n=new Uint8Array(t),i="";for(let o of n)i+=String.fromCharCode(o);return i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),up=(()=>{class e extends ya{constructor(t,n,i,o,s,a,c,u,l,d){super(),this.ngZone=t,this.http=n,this.config=s,this.urlHelper=a,this.logger=c,this.crypto=u,this.dateTimeService=d,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new X,this.discoveryDocumentLoadedSubject=new X,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=l,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),o&&(this.tokenValidationHandler=o),s&&this.configure(s);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if(this.checkLocalStorageAccessable()){let h=window?.navigator?.userAgent;(h?.includes("MSIE ")||h?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let t="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(t,t),localStorage.removeItem(t),!0)}catch(n){return!1}}configure(t){Object.assign(this,new ya,t),this.config=Object.assign({},new ya,t),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(_(t=>t.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},n,i=!0){let o=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(k(s=>{s.type==="token_received"?o=!0:s.type==="logout"&&(o=!1)}),_(s=>s.type==="token_expires"&&(n==null||n==="any"||s.info===n)),Ri(1e3)).subscribe(()=>{o&&this.refreshInternal(t,i).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,n){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(t,
8n)}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return t=t||{},this.loadDiscoveryDocumentAndTryLogin(t).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let n=typeof t.state=="string"?t.state:"";return this.initLoginFlow(n),!1}else return!0})}debug(...t){this.showDebugInformation&&this.logger.debug(...t)}validateUrlFromDiscoveryDocument(t){let n=[],i=this.validateUrlForHttps(t),o=this.validateUrlAgainstIssuer(t);return i||n.push("https for all urls required. Also for urls received by discovery."),o||n.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),n}validateUrlForHttps(t){if(!t)return!0;let n=t.toLowerCase();return this.requireHttps===!1||(n.match(/^http:\/\/localhost($|[:/])/)||n.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:n.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,n){if(!t)throw new Error(`'${n}' should not be null`);if(!this.validateUrlForHttps(t))throw new Error(`'${n}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(t){return!this.strictDiscoveryDocumentValidation||!t?!0:t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(_(t=>t.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let t=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),i=this.calcTimeout(n,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=I(new rr("token_expires","access_token")).pipe(pr(i)).subscribe(o=>{this.ngZone.run(()=>{this.eventsSubject.next(o)})})})}setupIdTokenTimer(){let t=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),i=this.calcTimeout(n,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=I(new rr("token_expires","id_token")).pipe(pr(i)).subscribe(o=>{this.ngZone.run(()=>{this.eventsSubject.next(o)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}
8calcTimeout(t,n){let i=this.dateTimeService.now(),o=(n-t)*this.timeoutFactor-(i-t),s=Math.max(0,o),a=2147483647;return s>a?a:s}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((n,i)=>{if(t||(t=this.issuer||"",t.endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),!this.validateUrlForHttps(t)){i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(t).subscribe(o=>{if(!this.validateDiscoveryDocument(o)){this.eventsSubject.next(new Ue("discovery_document_validation_error",null)),i("discovery_document_validation_error");return}this.loginUrl=o.authorization_endpoint,this.logoutUrl=o.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=o.grant_types_supported,this.issuer=o.issuer,this.tokenEndpoint=o.token_endpoint,this.userinfoEndpoint=o.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=o.jwks_uri,this.sessionCheckIFrameUrl=o.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(o),this.revocationEndpoint=o.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(s=>{let a={discoveryDocument:o,jwks:s},c=new $t("discovery_document_loaded",a);this.eventsSubject.next(c),n(c)}).catch(s=>{this.eventsSubject.next(new Ue("discovery_document_load_error",s)),i(s)})},o=>{this.logger.error("error loading discovery document",o),this.eventsSubject.next(new Ue("discovery_document_load_error",o)),i(o)})})}loadJwks(){return new Promise((t,n)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,t(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new Ue("jwks_load_error",i)),n(i)}):t(null)})}validateDiscoveryDocument(t){let n;return!this.skipIssuerCheck&&t.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+t.issuer),!1):(n=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),n.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),n.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(t.token_endpoint),n.length>0&&this.logger.error("error validating token_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),n.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",n),n=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),n.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",n),!1):(n=this.validateUrlFromDiscoveryDocument(t.jwks_uri),n.length>0?(this.logger.error("error validating jwks_uri in discovery document",n),!1):(this.sessionChecksEnabled&&!t.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(t,n,i=new oe){return this.fetchTokenUsingPasswordFlow(t,n,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((t,n)=>{let i=new oe().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(o=>{if(this.debug("userinfo received",JSON.stringify(o)),o.headers.get("content-type").startsWith("application/json")){let s=JSON.parse(o.body),a=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!a.sub||s.sub!==a.sub)){n(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc. 9if you are not using oidc but just oauth2 password flow set oidc to fal
9se`);return}s=Object.assign({},a,s),this._storage.setItem("id_token_claims_obj",JSON.stringify(s)),this.eventsSubject.next(new $t("user_profile_loaded")),t({info:s})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new $t("user_profile_loaded")),t(JSON.parse(o.body))},o=>{this.logger.error("error loading user info",o),this.eventsSubject.next(new Ue("user_profile_load_error",o)),n(o)})})}fetchTokenUsingPasswordFlow(t,n,i=new oe){let o={username:t,password:n};return this.fetchTokenUsingGrant("password",o,i)}fetchTokenUsingGrant(t,n,i=new oe){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let o=new Pe({encoder:new Yo}).set("grant_type",t).set("scope",this.scope);if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))o=o.set(s,this.customQueryParams[s]);for(let s of Object.keys(n))o=o.set(s,n[s]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((s,a)=>{this.http.post(this.tokenEndpoint,o,{headers:i}).subscribe(c=>{this.debug("tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token&&this.processIdToken(c.id_token,c.access_token).then(u=>{this.storeIdToken(u),s(c)}),this.eventsSubject.next(new $t("token_received")),s(c)},c=>{this.logger.error("Error performing ${grantType} flow",c),this.eventsSubject.next(new Ue("token_error",c)),a(c)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,n)=>{let i=new Pe({encoder:new Yo}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),o=new oe().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+s)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let s of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,i,{headers:o}).pipe(O(s=>this.oidc&&s.id_token?ue(this.processIdToken(s.id_token,s.access_token,!0)).pipe(k(a=>this.storeIdToken(a)),S(()=>s)):I(s))).subscribe(s=>{this.debug("refresh tokenResponse",s),this.storeAccessTokenResponse(s.access_token,s.refresh_token,s.expires_in||this.fallbackAccessTokenExpirationTimeInSec,s.scope,this.extractRecognizedCustomParameters(s)),this.eventsSubject.next(new $t("token_received")),this.eventsSubject.next(new $t("token_refreshed")),t(s)},s=>{this.logger.error("Error refreshing token",s),this.eventsSubject.next(new Ue("token_refresh_error",s)),n(s)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{let n=this.processMessageEventMessage(t);this.checkOrigin&&t.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},n=!0){let i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(t.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");
9let o=this.document.getElementById(this.silentRefreshIFrameName);o&&this.document.body.removeChild(o),this.silentRefreshSubject=i.sub;let s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let a=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,a,n,t).then(d=>{s.setAttribute("src",d),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});let c=this.events.pipe(_(d=>d instanceof Ue),zt()),u=this.events.pipe(_(d=>d.type==="token_received"),zt()),l=I(new Ue("silent_refresh_timeout",null)).pipe(pr(this.silentRefreshTimeout));return lv([c,u,l]).pipe(S(d=>{if(d instanceof Ue)throw d.type==="silent_refresh_timeout"?this.eventsSubject.next(d):(d=new Ue("silent_refresh_error",d),this.eventsSubject.next(d)),d;return d.type==="token_received"&&(d=new $t("silently_refreshed"),this.eventsSubject.next(d)),d})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(n=>new Promise((i,o)=>{let a=null;t.windowRef?t.windowRef&&!t.windowRef.closed&&(a=t.windowRef,a.location.href=n):a=window.open(n,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(t));let c,u=E=>{this.tryLogin({customHashFragment:E,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{d(),i(!0)},D=>{d(),o(D)})},l=()=>{(!a||a.closed)&&(d(),o(new Ue("popup_closed",{})))};a?c=window.setInterval(l,500):o(new Ue("popup_blocked",{}));let d=()=>{window.clearInterval(c),window.removeEventListener("storage",p),window.removeEventListener("message",h),a!==null&&a.close(),a=null},h=E=>{let D=this.processMessageEventMessage(E);D&&D!==null?(window.removeEventListener("storage",p),u(D)):console.log("false event firing")},p=E=>{E.key==="auth_hash"&&(window.removeEventListener("message",h),u(E.newValue))};window.addEventListener("message",h),window.addEventListener("storage",p)}))}calculatePopupFeatures(t){let n=t.height||470,i=t.width||500,o=window.screenLeft+(window.outerWidth-i)/2,s=window.screenTop+(window.outerHeight-n)/2;return`location=no,toolbar=no,width=${i},height=${n},top=${s},left=${o}`}processMessageEventMessage(t){let n="#";if(this.silentRefreshMessagePrefix&&(n+=this.silentRefreshMessagePrefix),!t||!t.data||typeof t.data!="string")return;let i=t.data;if(i.startsWith(n))return"#"+i.substr(n.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.get
9SessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=t=>{let n=t.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!i.startsWith(n)){this.debug("sessionCheckEventListener","wrong origin",n,"expected",i,"event",t);return}switch(t.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",t)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new rr("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new rr("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new rr("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new rr("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(_(t=>t.type==="silently_refreshed"||t.type==="silent_refresh_timeout"||t.type==="silent_refresh_error"),zt()).subscribe(t=>{t.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new rr("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new rr("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let t=this.document.getElementById(this.sessionCheckIFrameName);t&&this.document.body.removeChild(t);let n=this.document.createElement("iframe");n.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let i=this.sessionCheckIFrameUrl;n.setAttribute("src",i),n.style.display="none",this.document.body.appendChild(n),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let n=this.getSessionState();n||this.stopSessionCheckTimer();let i=this.clientId+" "+n;t.contentWindow.postMessage(i,this.issuer)}createLoginUrl(){return Q(this,arguments,function*(t="",n="",i="",o=!1,s={}){let a=this,c;i?c=i:c=this.redirectUri;let u=yield this.createAndSaveNonce();if(t?t=u+this.config.nonceStateSeparator+encodeURIComponent(t):t=u,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let l=a.loginUrl.indexOf("?")>-1?"&":"?",d=a.scope;this.oidc&&!d.match(/(^|\s)openid($|\s)/)&&(d="openid "+d);let h=a.loginUrl+l+"response_type="+encodeURIComponent(a.responseType)+"&client_id="+encodeURIComponent(a.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(c)+"&scope="+encodeURIComponent(d);if(this.responseType.includes("code")&&!this.disablePKCE){let[p,E]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",E):this._storage.setItem("PKCE_verifier",E),h+="&c
9ode_challenge="+p,h+="&code_challenge_method=S256"}n&&(h+="&login_hint="+encodeURIComponent(n)),a.resource&&(h+="&resource="+encodeURIComponent(a.resource)),a.oidc&&(h+="&nonce="+encodeURIComponent(u)),o&&(h+="&prompt=none");for(let p of Object.keys(s))h+="&"+encodeURIComponent(p)+"="+encodeURIComponent(s[p]);if(this.customQueryParams)for(let p of Object.getOwnPropertyNames(this.customQueryParams))h+="&"+p+"="+encodeURIComponent(this.customQueryParams[p]);return h})}initImplicitFlowInternal(t="",n=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},o=null;typeof n=="string"?o=n:typeof n=="object"&&(i=n),this.createLoginUrl(t,o,null,!1,i).then(this.config.openUri).catch(s=>{console.error("Error in initImplicitFlow",s),this.inImplicitFlow=!1})}initImplicitFlow(t="",n=""){this.loginUrl!==""?this.initImplicitFlowInternal(t,n):this.events.pipe(_(i=>i.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(t,n))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){let n=this;if(t.onTokenReceived){let i={idClaims:n.getIdentityClaims(),idToken:n.getIdToken(),accessToken:n.getAccessToken(),state:n.state};t.onTokenReceived(i)}}storeAccessTokenResponse(t,n,i,o,s){if(this._storage.setItem("access_token",t),o&&!Array.isArray(o)?this._storage.setItem("granted_scopes",JSON.stringify(o.split(" "))):o&&Array.isArray(o)&&this._storage.setItem("granted_scopes",JSON.stringify(o)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.n
9ow()),i){let a=i*1e3,u=this.dateTimeService.new().getTime()+a;this._storage.setItem("expires_at",""+u)}n&&this._storage.setItem("refresh_token",n),s&&s.forEach((a,c)=>{this._storage.setItem(c,a)})}tryLogin(t=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(t).then(()=>!0):this.tryLoginImplicitFlow(t)}parseQueryString(t){return!t||t.length===0?{}:(t.charAt(0)==="?"&&(t=t.substr(1)),this.urlHelper.parseQueryString(t))}tryLoginCodeFlow(t=null){return Q(this,null,function*(){t=t||{};let n=t.customHashFragment?t.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(n),o=i.code,s=i.state,a=i.session_state;if(!t.preventClearHashAfterLogin){let l=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,l)}let[c,u]=this.parseState(s);if(this.state=u,i.error){this.debug("error trying to login"),this.handleLoginError(t,i);let l=new Ue("code_error",{},i);return this.eventsSubject.next(l),Promise.reject(l)}if(!t.disableNonceCheck){if(!c)return this.saveRequestedRoute(),Promise.resolve();if(!t.disableOAuth2StateCheck&&!this.validateNonce(c)){let d=new Ue("invalid_nonce_in_state",null);return this.eventsSubject.next(d),Promise.reject(d)}}return this.storeSessionState(a),o&&(yield this.getTokenFromCode(o,t),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let t=this._storage.getItem("requested_route");t&&history.replaceState(null,"",window.location.origin+t)}getCodePartsFromUrl(t){return!t||t.length===0?this.urlHelper.getHashFragmentParams():(t.charAt(0)==="?"&&(t=t.substr(1)),this.urlHelper.parseQueryString(t))}getTokenFromCode(t,n){let i=new Pe({encoder:new Yo}).set("grant_type","authorization_code").set("code",t).set("redirect_uri",n.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let o;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?o=localStorage.getItem("PKCE_verifier"):o=this._storage.getItem("PKCE_verifier"),o?i=i.set("code_verifier",o):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,n)}fetchAndProcessToken(t,n){n=n||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=new oe().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let o=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+o)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((o,s)=>{if(this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(a,this.customQueryParams[a]);this.http.post(this.tokenEndpoint,t,{headers:i}).subscribe(a=>{this.debug("refresh tokenResponse",a),this.storeAccessTokenResponse(a.access_token,a.refresh_token,a.expires_in||this.fallbackAccessTokenExpirationTimeInSec,a.scope,this.extractRecognizedCustomParameters(a)),this.oidc&&a.id_token?this.processIdToken(a.id_token,a.access_token,n.disableNonceCheck).then(c=>{this.storeIdToken(c),this.eventsSubject.next(new $t("token_received")),this.eventsSubject.next(new $t("token_refreshed")),o(a)}).catch(c=>{this.eventsSubject.next(new Ue("token_validation_error",c)),console.error("Error validating tokens"),console.error(c),s(c)}):(this.eventsSubject.next(new $t("token_received")),this.eventsSubject.next(new $t("token_refreshed")),o(a))},a=>{console.error("Error getting token",a),this.eventsSubject.next(new Ue("token_error",a)),s(a)})})}tryLoginImplicitFlow(t=null){t=t||{};let n;t.customHashFragment?n=this.urlHelper.getHashFragmentParams(t.customHashFragment):n=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",n);let i=n.state,[o,s]=this.parseState(i);if(this.state=s,n.error){this.debug("error trying to login"),this.handleLoginError(t,n);let d=new Ue("token_error",{},n);return this.eventsSubject.next(d),Promise.reject(d)}let a=n.access_token,c=n.id_token,u=n.session_state,l=n.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!a||this.requestAccessToken&&!t.disableOAuth2StateCheck&&!i||this.oidc&&!c)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!u&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!t.disableNonceCheck&&!this.validateNonce(o)){let h=new Ue("invalid_nonce_in_state",null);return this.eventsSubject.next(h),Promise.reject(h)}return this.requestAccessToken&&this.storeAccessTokenResponse(a,null,n.expires_in||this.fallbackAccessTokenExpirationTimeInSec,l),this.oidc?this.processIdToken(c,a,t.disableNonceCheck).then(d=>t.validationHandler?t.validationHandler({accessToken:a,idClaims:d.idTokenClaims,idToken:d.idToken,state:i}).then(()=>d):d).then(d=>(this.storeIdToken(d),this.storeSessionState(u),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new $t("token_received")),this.callOnToken
9ReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(d=>(this.eventsSubject.next(new Ue("token_validation_error",d)),this.logger.error("Error validating tokens"),this.logger.error(d),Promise.reject(d))):(this.eventsSubject.next(new $t("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let n=t,i="";if(t){let o=t.indexOf(this.config.nonceStateSeparator);o>-1&&(n=t.substr(0,o),i=t.substr(o+this.config.nonceStateSeparator.length))}return[n,i]}validateNonce(t){let n;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?n=localStorage.getItem("nonce"):n=this._storage.getItem("nonce"),n!==t?(console.error("Validating access_token failed, wrong state/nonce.",n,t),!1):!0}storeIdToken(t){this._storage.setItem("id_token",t.idToken),this._storage.setItem("id_token_claims_obj",t.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+t.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.n
9ow())}storeSessionState(t){this._storage.setItem("session_state",t)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(t,n){t.onLoginError&&t.onLoginError(n),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(t=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?t:this.clockSkewInSec*1e3}processIdToken(t,n,i=!1){let o=t.split("."),s=this.padBase64(o[0]),a=ox(s),c=JSON.parse(a),u=this.padBase64(o[1]),l=ox(u),d=JSON.parse(l),h;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?h=localStorage.getItem("nonce"):h=this._storage.getItem("nonce"),Array.isArray(d.aud)){if(d.aud.every(M=>M!==this.clientId)){let M="Wrong audience: "+d.aud.join(",");return this.logger.warn(M),Promise.reject(M)}}else if(d.aud!==this.clientId){let M="Wrong audience: "+d.aud;return this.logger.warn(M),Promise.reject(M)}if(!d.sub){let M="No sub claim in id_token";return this.logger.warn(M),Promise.reject(M)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==d.sub){let M=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${d.sub}`;return this.logger.warn(M),Promise.reject(M)}if(!d.iat){let M="No iat claim in id_token";return this.logger.warn(M),Promise.reject(M)}if(!this.skipIssuerCheck&&d.iss!==this.issuer){let M="Wrong issuer: "+d.iss;return this.logger.warn(M),Promise.reject(M)}if(!i&&d.nonce!==h){let M="Wrong nonce: "+d.nonce;return this.logger.warn(M),Promise.reject(M)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!d.at_hash){let M="An at_hash is needed!";return this.logger.warn(M),Promise.reject(M)}
9let p=this.dateTimeService.now(),E=d.iat*1e3,D=d.exp*1e3,b=this.getClockSkewInMsec();if(E-b>=p||D+b-this.decreaseExpirationBySec<=p){let M="Token has expired";return console.error(M),console.error({now:p,issuedAtMSec:E,expiresAtMSec:D}),Promise.reject(M)}let R={accessToken:n,idToken:t,jwks:this.jwks,idTokenClaims:d,idTokenHeader:c,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(R).then(()=>({idToken:t,idTokenClaims:d,idTokenClaimsJson:l,idTokenHeader:c,idTokenHeaderJson:a,idTokenExpiresAt:D})):this.checkAtHash(R).then(M=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!M){let ae="Wrong at_hash";return this.logger.warn(ae),Promise.reject(ae)}return this.checkSignature(R).then(()=>{let ae=!this.disableAtHashCheck,Z={idToken:t,idTokenClaims:d,idTokenClaimsJson:l,idTokenHeader:c,idTokenHeaderJson:a,idTokenExpiresAt:D};return ae?this.checkAtHash(R).then(Ne=>{if(this.requestAccessToken&&!Ne){let Oe="Wrong at_hash";return this.logger.warn(Oe),Promise.reject(Oe)}else return Z}):Z})})}getIdentityClaims(){let t=this._storage.getItem("id_token_claims_obj");return t?JSON.parse(t):null}getGrantedScopes(){let t=this._storage.getItem("granted_scopes");return t?JSON.parse(t):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(t){for(;t.length%4!==0;)t+="=";return t}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let t=this._storage.getItem("expires_at"),n=this.dateTimeService.new();return!(t&&parseInt(t,10)-this.decreaseExpirationBySec<n.getTime()-this.getClockSkewInMsec())}return!1}hasValidIdToken(){if(this.getIdToken()){let t=this._storage.getItem("id_token_expires_at"),n=this.dateTimeService.new();return!(t&&parseInt(t,10)-this.decreaseExpirationBySec<n.getTime()-this.getClockSkewInMsec())}return!1}getCustomTokenResponseProperty(t){return this._storage&&this.config.customTokenParameters&&this.config.customTokenParameters.indexOf(t)>=0&&this._storage.getItem(t)!==null?JSON.parse(this._storage.getItem(t)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(t={},n=""){let i=!1;typeof t=="boolean"&&(i=t,t={});let o=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(a=>this._storage.removeItem(a)),this.silentRefreshSubject=null,this.eventsSubject.next(new rr("logout")),!this.logoutUrl||i)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(o)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let a=new Pe({encoder:new Yo});o&&(a=a.set("id_token_hint",o));let c=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";c&&(a=a.set("post_logout_redirect_uri",c),n&&(a=a.set("state",n)));for(let u in t)a=a.set(u,t[u]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+a.toString()}this.config.openUri(s)}createAndSaveNonce(){let t=this;return this.createNonce().then(function(n){return t.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",n):t._storage.setItem("nonce",n),n})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();
9let t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let n=this.document.getElementById(this.sessionCheckIFrameName);n&&n.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=45,o="",s=typeof self>"u"?null:self.crypto||self.msCrypto;if(s){let a=new Uint8Array(i);s.getRandomValues(a),a.map||(a.map=Array.prototype.map),a=a.map(c=>n.charCodeAt(c%n.length)),o=String.fromCharCode.apply(null,a)}else for(;0<i--;)o+=n[Math.random()*n.length|0];t(sx(o))})}checkAtHash(t){return Q(this,null,function*(){return this.tokenValidationHandler?this.tokenValidationHandler.validateAtHash(t):(this.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})}checkSignature(t){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(t):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(t="",n={}){return this.responseType==="code"?this.initCodeFlow(t,n):this.initImplicitFlow(t,n)}initCodeFlow(t="",n={}){this.loginUrl!==""?this.initCodeFlowInternal(t,n):this.events.pipe(_(i=>i.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(t,n))}initCodeFlowInternal(t="",n={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},o=null;typeof n=="string"?o=n:typeof n=="object"&&(i=n),this.createLoginUrl(t,o,null,!1,i).then(this.config.openUri).catch(s=>{console.error("Error in initAuthorizationCodeFlow"),console.error(s)})}createChallangeVerifierPairForPKCE(){return Q(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let t=yield this.createNonce(),n=yield this.crypto.calcHash(t,"sha-256");return[sx(n),t]})}extractRecognizedCustomParameters(t){let n=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{t[i]&&n.set(i,JSON.stringify(t[i]))}),n}revokeTokenAndLogout(t={},n=!1){let i=this.revocationEndpoint,o=this.getAccessToken(),s=this.getRefreshToken();if(!o)return Promise.resolve();let a=new Pe({encoder:new Yo}),c=new oe().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let u=btoa(`${this.clientId}:${this.dummyClientSecret}`);c=c.set("Authorization","Basic "+u)}if(this.useHttpBasicAuth||(a=a.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(a=a.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let u of Object.getOwnPropertyNames(this.customQueryParams))a=a.set(u,this.customQueryParams[u]);return new Promise((u,l)=>{let d,h;if(o){let p=a.set("token",o).set("token_type_hint","access_token");d=this.http.post(i,p,{headers:c})}else d=I(null);if(s){let p=a.set("token",s).set("token_type_hint","refresh_token");h=this.http.post(i,p,{headers:c})}else h=I(null);n&&(d=d.pipe(j(p=>p.status===0?I(null):gn(p))),h=h.pipe(j(p=>p.status===0?I(null):gn(p)))),Fe([d,h]).subscribe(p=>{this.logOut(t),u(p),this.logger.info("Token successfully revoked")},p=>{this.logger.error("Error revoking token",p),this.eventsSubject.next(new Ue("token_revoke_error",p)),l(p)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}static{this.\u0275fac=function(n){return new(n||e)(f(De),f(we),f(Ko,8),f(sp,8),f(ya,8),f(ax),f(op),f(ap,8),f(fe),f(Fu))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),cp=class{},eD=class{handleError(r){return gn(r)}},H3=(()=>{class e{constructor(t,n,i){this.oAuthService=t,this.errorHandler=n,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(n=>t.toLowerCase().startsWith(n.toLowerCase())):!0}intercept(t,n){let i=t.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(i)?n.handle(t):this.moduleConfig.resourceServer.sendAccessToken?mn(I(this.oAuthService.getAccessToken()).pipe(_(s=>!!s)),this.oAuthService.events.pipe(_(s=>s.type==="token_received"),Qa(this.oAuthService.waitForTokenInMsec||0),j(()=>I(null)),S(()=>this.oAuthService.getAccessToken()))).pipe(W(1),G(s=>
9{if(s){let a="Bearer "+s,c=t.headers.set("Authorization",a);t=t.clone({headers:c})}return n.handle(t).pipe(j(a=>this.errorHandler.handleError(a)))})):n.handle(t).pipe(j(s=>this.errorHandler.handleError(s)))}static{this.\u0275fac=function(n){return new(n||e)(f(up),f(cp),f(ip,8))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();function V3(){return console}function z3(){return typeof sessionStorage<"u"?sessionStorage:new P3}function G3(e=null,r=rp){return It([up,ax,{provide:op,useFactory:V3},{provide:Ko,useFactory:z3},{provide:sp,useClass:r},{provide:ap,useClass:B3},{provide:cp,useClass:eD},{provide:ip,useValue:e},{provide:Qt,useClass:H3,multi:!0},{provide:Fu,useClass:L3}])}var ux=(()=>{class e{static forRoot(t=null,n=rp){return{ngModule:e,providers:[G3(t,n)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[Ke]})}}return e})();function q3(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=Y3(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return s=u.done,u},e:function(u){a=!0,o=u},f:function(){try{s||t.return==null||t.return()}finally{if(a)throw o}}}}function Y3(e,r){if(e){if(typeof e=="string")return lx(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?lx(e,r):void 0}}function lx(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function tD(e){"@babel/helpers - typeof";return tD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},tD(e)}var dx=[],qEe=dx.forEach,YEe=dx.slice,fx=["__proto__","constructor","prototype"];function hx(e){return!(typeof e!="string"||e.length===0||e.length>128||fx.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function px(e){return!(!hx(e)||e.indexOf("/")>-1)}function K3(e){return hx(e)}var Z3={lng:px,ns:K3};function Uu(e){return typeof e!="string"?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function gx(e){if(typeof e!="string"||e.length===0)return e;try{var r=new URL(e);return r.username||r.password?(r.username="",r.password="",r.toString()):e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function nD(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":tD(XMLHttpRequest))==="object"}function Q3(e){return!!e&&typeof e.then=="function"}function mx(e){return Q3(e)?e:Promise.resolve(e)}var J3=/\{\{(.+?)\}\}/g;function rD(e,r){var t=!1,n=e.replace(J3,function(i,o){var s=o.trim();if(fx.indexOf(s)>-1)return i;var a=r[s];if(a==null)return i;var c=Z3[s]||px,u=String(a).split("+"),l=q3(u),d;try{for(l.s();!(d=l.n()).done;){var h=d.value;if(!c(h))return t=!0,i}}catch(p){l.e(p)}finally{l.f()}return u.join("+")});return t?null:n}function vx(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function yx(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?vx(Object(t),!0).forEach(function(n){X3(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vx(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function X3(e,r,t){return(r=eq(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function eq(e){var r=tq(e,"string");return Zo(r)=="symbol"?r:r+""}function tq(e,r){if(Zo(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Zo(e)}var Ki=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Ki=global.fetch:typeof window<"u"&&window.fetch&&(Ki=window.fetch);var ju;nD()&&(typeof global<"u"&&global.XMLHttpRequest?ju=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(ju=window.XMLHttpRequest));var lp;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?lp=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(lp=window.ActiveXObject));typeof Ki!="function"&&(Ki=void 0);if(!Ki&&!ju&&!lp)try{import("./chunk-6NIZO2ST.js").then(function(e){Ki=e.default}).catch(function(){})}catch(e){}var Sx=["__proto__","constructor","prototype"],iD=function(r,t){if(t&&Zo(t)==="object"){for(var n="",i=0,o=Object.keys(t);i<o.length;i++){var s=o[i];Sx.indexOf(s)>-1||(n+="&"+encodeURIComponent(s)+"="+encodeURIComponent(t[s]))}if(!n)return r;r=r+(r.indexOf("?")!==-1?"&":"?")+n.slice(1)}return r},Ex=function(r,t,n,i){var o=function(c){if(!c.ok)return n(c.statusText||"Error",{status:c.status});c.text().then(function(u){n(null,{status:c.status,data:u})}).catch(n)};if(i){var s=i(r,t);if(s instanceof Promise){s.then(o).catch(n);return}}typeof fetch=="function"?fetch(r,t).then(o).catch(n):Ki(r,t).then(o).catch(n)},nq=function(r,t,n,i){r.queryStringParams&&(t=iD(t,r.queryStringParams));var o=yx({}
10,typeof r.customHeaders=="function"?r.customHeaders():r.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),n&&(o["Content-Type"]="application/json");var s=typeof r.requestOptions=="function"?r.requestOptions(n):r.requestOptions,a=yx({method:n?"POST":"GET",body:n?r.stringify(n):void 0,headers:o},r._omitFetchOptions?{}:s),c=typeof r.alternateFetch=="function"&&r.alternateFetch.length>=1?r.alternateFetch:void 0;try{Ex(t,a,i,c)}catch(u){if(!s||Object.keys(s).length===0||!u.message||u.message.indexOf("not implemented")<0)return i(u);try{Object.keys(s).forEach(function(l){delete a[l]}),Ex(t,a,i,c),r._omitFetchOptions=!0}catch(l){i(l)}}},rq=function(r,t,n,i){n&&Zo(n)==="object"&&(n=iD("",n).slice(1)),r.queryStringParams&&(t=iD(t,r.queryStringParams));try{var o=ju?new ju:new lp("MSXML2.XMLHTTP.3.0");o.open(n?"POST":"GET",t,1),r.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!r.withCredentials,n&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=r.customHeaders;if(s=typeof s=="function"?s():s,s)for(var a=0,c=Object.keys(s);a<c.length;a++){var u=c[a];Sx.indexOf(u)>-1||o.setRequestHeader(u,s[u])}o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(n)}catch(l){console&&console.log(l)}},iq=function(r,t,n,i){if(typeof n=="function"&&(i=n,n=void 0),i=i||function(){},Ki&&t.indexOf("file:")!==0)return nq(r,t,n,i);if(nD()||typeof ActiveXObject=="function")return rq(r,t,n,i);i(new Error("No fetch and no xhr implementation found!"))},Cx=iq;function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ea(e)}function Dx(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function oD(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Dx(Object(t),!0).forEach(function(n){Tx(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Dx(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function oq(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Ix(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bx(n.key),n)}}function sq(e,r,t){return r&&Ix(e.prototype,r),t&&Ix(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tx(e,r,t){return(r=bx(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function bx(e){var r=aq(e,"string");return Ea(r)=="symbol"?r:r+""}function aq(e,r){if(Ea(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r||"default");if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var cq=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){return Tx({},n,i||"")},parseLoadPayload:function(t,n){},request:Cx,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},wx=(function(){function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};oq(this,e),this.services=r,this.options=t,this.allOptions=n,this.type="backend",this.init(r,t,n)}return sq(e,[{key:"init",value:function(t){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=t,this.options=oD(oD(oD({},cq()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var s=setInterval(function(){return n.reload()},this.options.reloadInterval);Ea(s)==="object"&&typeof s.unref=="function"&&s.unref()}}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,o,s){var a=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(t,i)),c=mx(c),c.then(function(u){if(!u)return s(null,{});var l=rD(u,{lng:t.join("+"),ns:i.join("+")});if(l==null){var d=t.map(Uu).join(", "),h=i.map(Uu).join(", ");return s(new Error("i18next-http-backend: unsafe lng/ns value \u2014 refusing to build request URL for languages=["+d+"] namespaces=["+h+"]"),!1)}a.loadUrl(l,s,n,o)})}},{key:"loadUrl",value:function(t,n,i,o){var s=this,a=typeof i=="string"?[i]:i,c=typeof o=="str
10ing"?[o]:o,u=this.options.parseLoadPayload(a,c),l=Uu(gx(t));this.options.request(this.options,t,u,function(d,h){if(h&&(h.status>=500&&h.status<600||!h.status))return n("failed loading "+l+"; status code: "+h.status,!0);if(h&&h.status>=400&&h.status<500)return n("failed loading "+l+"; status code: "+h.status,!1);if(!h&&d&&d.message){var p=d.message.toLowerCase(),E=["failed","fetch","network","load"].find(function(R){return p.indexOf(R)>-1});if(E)return n("failed loading "+l+": "+Uu(d.message),!0)}if(d)return n(d,!1);var D,b;try{typeof h.data=="string"?D=s.options.parse(h.data,i,o):D=h.data}catch(R){b="failed parsing "+l+" to json"}if(b)return n(b,!1);n(null,D)})}},{key:"create",value:function(t,n,i,o,s){var a=this;if(this.options.addPath){typeof t=="string"&&(t=[t]);var c=this.options.parsePayload(n,i,o),u=0,l=[],d=[];t.forEach(function(h){var p=a.options.addPath;typeof a.options.addPath=="function"&&(p=a.options.addPath(h,n));var E=rD(p,{lng:h,ns:n});if(E==null){u+=1,s&&u===t.length&&s(l,d);return}a.options.request(a.options,E,c,function(D,b){u+=1,l.push(D),d.push(b),u===t.length&&typeof s=="function"&&s(l,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,o=n.languageUtils,s=n.logger,a=i.language;if(!(a&&a.toLowerCase()==="cimode")){var c=[],u=function(d){var h=o.toResolveHierarchy(d);h.forEach(function(p){c.indexOf(p)<0&&c.push(p)})};u(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(l){return u(l)}),c.forEach(function(l){t.allOptions.ns.forEach(function(d){i.read(l,d,"read",null,null,function(h,p){h&&s.warn("loading namespace ".concat(d," for language ").concat(l," failed"),h),!h&&p&&s.log("loaded namespace ".concat(d," for language ").concat(l),p),i.loaded("".concat(l,"|").concat(d),h,p)})})})}}}])})();wx.type="backend";var _x=wx;var K=e=>typeof e=="string",$u=()=>{let e,r,t=new Promise((n,i)=>{e=n,r=i});return t.resolve=e,t.reject=r,t},Ax=e=>e==null?"":""+e,uq=(e,r,t)=>{e.forEach(n=>{r[n]&&(t[n]=r[n])})},lq=/###/g,Rx=e=>e&&e.indexOf("###")>-1?e.replace(lq,"."):e,Mx=e=>!e||K(e),Bu=(e,r,t)=>{let n=K(r)?r.split("."):r,i=0;for(;i<n.length-1;){if(Mx(e))return{};let o=Rx(n[i]);!e[o]&&t&&(e[o]=new t),Object.prototype.hasOwnProperty.call(e,o)?e=e[o]:e={},++i}return Mx(e)?{}:{obj:e,k:Rx(n[i])}},Nx=(e,r,t)=>{let{obj:n,k:i}=Bu(e,r,Object);if(n!==void 0||r.length===1){n[i]=t;return}let o=r[r.length-1],s=r.slice(0,r.length-1),a=Bu(e,s,Object);for(;a.obj===void 0&&s.length;)o=`${s[s.length-1]}.${o}`,s=s.slice(0,s.length-1),a=Bu(e,s,Object),a?.obj&&typeof a.obj[`${a.k}.${o}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${o}`]=t},dq=(e,r,t,n)=>{let{obj:i,k:o}=Bu(e,r,Object);i[o]=i[o]||[],i[o].push(t)},fp=(e,r)=>{let{obj:t,k:n}=Bu(e,r);if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},fq=(e,r,t)=>{let n=fp(e,t);return n!==void 0?n:fp(r,t)},Ux=(e,r,t)=>{for(let n in r)n!=="__proto__"&&n!=="constructor"&&(n in e?K(e[n])||e[n]instanceof String||K(r[n])||r[n]instanceof String?t&&(e[n]=r[n]):Ux(e[n],r[n],t):e[n]=r[n]);return e},Qo=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),hq={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},pq=e=>K(e)?e.replace(/[&<>"'\/]/g,r=>hq[r]):e,uD=class{constructor(r){this.capacity=r,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(r){let t=this.regExpMap.get(r);if(t!==void 0)return t;let n=new RegExp(r);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(r,n),this.regExpQueue.push(r),n}},gq=[" ",",","?","!",";"],mq=new uD(20),vq=(e,r,t)=>{r=r||"",t=t||"";let n=gq.filter(s=>r.indexOf(s)<0&&t.indexOf(s)<0);if(n.length===0)return!0;let i=mq.getRegExp(`(${n.map(s=>s==="?"?"\\?":s).join("|")})`),o=!i.test(e);if(!o){let s=e.indexOf(t);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o},lD=(e,r,t=".")=>{if(!e)return;if(e[r])return Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0;let n=r.split(t),i=e;for(let o=0;o<n.length;){if(!i||typeof i!="object")return;let s,a="";for(let c=o;c<n.length;++c)if(c!==o&&(a+=t),a+=n[c],s=i[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&c<n.length-1)continue;o+=c-o+1;break}i=s}return i},Hu=e=>e?.replace(/_/g,"-"),yq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,r){console?.[e]?.apply?.(console,r)}},dD=class e{constructor(r,t={}){this.init(r,t)}init(r,t={}){this.prefix=t.prefix||"i18next:",this.logger=r||yq,this.options=t,this.debug=t.debug}log(...r){return this.forward(r,"log","",!0)}warn(...r){return this.forward(r,"warn","",!0)}error(...r){return this.forward(r,"error","")}deprecate(...r){return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(r,t,n,i){return i&&!this.debug?null:(K(r[0])&&(r[0]=`${n}${this.prefix} ${r[0]}`),this.logger[t](r))}create(r){return new e(this.logger,v({prefix:`${this.prefix}:${r}:`},this.options))}clone(r){return r=r||this.options,r.prefix=r.prefix||this.prefix,new e(this.logger,r)}},Fr=new dD,Ca=class{constructor(){this.observers={}}on(r,t){return r.split(" ").forEach(n=>{this.observers[n]||(this.observers[n]=new Map);let i=this.observers[n].get(t)||0;this.observers[n].set(t,i+1)}),this}off(r,t){if(this.observers[r]){if(!t){delete this.observers[r];return}this.observers[r].delete(t)}}emit(r,...t){this.observers[r]&&Array.from(this.observers[r].entries()).forEac
10h(([i,o])=>{for(let s=0;s<o;s++)i(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,o])=>{for(let s=0;s<o;s++)i.apply(i,[r,...t])})}},hp=class extends Ca{constructor(r,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=r||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}removeNamespaces(r){let t=this.options.ns.indexOf(r);t>-1&&this.options.ns.splice(t,1)}getResource(r,t,n,i={}){let o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,s=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a;r.indexOf(".")>-1?a=r.split("."):(a=[r,t],n&&(Array.isArray(n)?a.push(...n):K(n)&&o?a.push(...n.split(o)):a.push(n)));let c=fp(this.data,a);return!c&&!t&&!n&&r.indexOf(".")>-1&&(r=a[0],t=a[1],n=a.slice(2).join(".")),c||!s||!K(n)?c:lD(this.data?.[r]?.[t],n,o)}addResource(r,t,n,i,o={silent:!1}){let s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=[r,t];n&&(a=a.concat(s?n.split(s):n)),r.indexOf(".")>-1&&(a=r.split("."),i=t,t=a[1]),this.addNamespaces(t),Nx(this.data,a,i),o.silent||this.emit("added",r,t,n,i)}addResources(r,t,n,i={silent:!1}){for(let o in n)(K(n[o])||Array.isArray(n[o]))&&this.addResource(r,t,o,n[o],{silent:!0});i.silent||this.emit("added",r,t,n)}addResourceBundle(r,t,n,i,o,s={silent:!1,skipCopy:!1}){let a=[r,t];r.indexOf(".")>-1&&(a=r.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);let c=fp(this.data,a)||{};s.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?Ux(c,n,o):c=v(v({},c),n),Nx(this.data,a,c),s.silent||this.emit("added",r,t,n)}removeResourceBundle(r,t){this.hasResourceBundle(r,t)&&delete this.data[r][t],this.removeNamespaces(t),this.emit("removed",r,t)}hasResourceBundle(r,t){return this.getResource(r,t)!==void 0}getResourceBundle(r,t){return t||(t=this.options.defaultNS),this.getResource(r,t)}getDataByLanguage(r){return this.data[r]}hasLanguageSomeTranslations(r){let t=this.getDataByLanguage(r);return!!(t&&Object.keys(t)||[]).find(i=>t[i]&&Object.keys(t[i]).length>0)}toJSON(){return this.data}},jx={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,r,t,n,i){return e.forEach(o=>{r=this.processors[o]?.process(r,t,n,i)??r}),r}},$x=Symbol("i18next/PATH_KEY");function Eq(){let e=[],r=Object.create(null),t;return r.get=(n,i)=>(t?.revoke?.(),i===$x?e:(e.push(i),t=Proxy.revocable(n,r),t.proxy)),Proxy.revocable(Object.create(null),r).proxy}function Sa(e,r){let{[$x]:t}=e(Eq()),n=r?.keySeparator??".",i=r?.nsSeparator??":";if(t.length>1&&i){let o=r?.ns,s=Array.isArray(o)?o:null;if(s&&s.length>1&&s.slice(1).includes(t[0]))return`${t[0]}${i}${t.slice(1).join(n)}`}return t.join(n)}var Ox={},sD=e=>!K(e)&&typeof e!="boolean"&&typeof e!="number",pp=class e extends Ca{constructor(r,t={}){super(),uq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
10i18nFormat","utils"],r,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Fr.create("translator")}changeLanguage(r){r&&(this.language=r)}exists(r,t={interpolation:{}}){let n=v({},t);if(r==null)return!1;let i=this.resolve(r,n);if(i?.res===void 0)return!1;let o=sD(i.res);return!(n.returnObjects===!1&&o)}extractFromKey(r,t){let n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");let i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],s=n&&r.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!vq(r,n,i);if(s&&!a){let c=r.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:r,namespaces:K(o)?[o]:o};let u=r.split(n);(n!==i||n===i&&this.options.ns.indexOf(u[0])>-1)&&(o=u.shift()),r=u.join(i)}return{key:r,namespaces:K(o)?[o]:o}}translate(r,t,n){let i=typeof t=="object"?v({},t):t;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i=v({},i)),i||(i={}),r==null)return"";typeof r=="function"&&(r=Sa(r,v(v({},this.options),i))),Array.isArray(r)||(r=[String(r)]),r=r.map(Et=>typeof Et=="function"?Sa(Et,v(v({},this.options),i)):String(Et));let o=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(r[r.length-1],i),u=c[c.length-1],l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");let d=i.lng||this.language,h=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return h?o?{res:`${u}${l}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${l}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:a;let p=this.resolve(r,i),E=p?.res,D=p?.usedKey||a,b=p?.exactUsedKey||a,R=["[object Number]","[object Function]","[object RegExp]"],M=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,ae=!this.i18nFormat||this.i18nFormat.handleAsObject,Z=i.count!==void 0&&!K(i.count),Ne=e.hasDefaultValue(i),Oe=Z?this.pluralResolver.getSuffix(d,i.count,i):"",at=i.ordinal&&Z?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",sr=Z&&!i.ordinal&&i.count===0,Ht=sr&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${Oe}`]||i[`defaultValue${at}`]||i.defaultValue,Ot=E;ae&&!E&&Ne&&(Ot=Ht);let Um=sD(Ot),jm=Object.prototype.toString.apply(Ot);if(ae&&Ot&&Um&&R.indexOf(jm)<0&&!(K(M)&&Array.isArray(Ot))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let Et=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,Ot,T(v({},i),{ns:c})):`key '${a} (${this.language})' returned an object instead of string.`;return o?(p.res=Et,p.usedParams=this.getUsedParamsDetails(i),p):Et}if(s){let Et=Array.isArray(Ot),en=Et?[]:{},Cl=Et?b:D;for(let hn in Ot)if(Object.prototype.hasOwnProperty.call(Ot,hn)){let kn=`${Cl}${s}${hn}`;Ne&&!E?en[hn]=this.translate(kn,T(v({},i),{defaultValue:sD(Ht)?Ht[hn]:void 0,joinArrays:!1,ns:c})):en[hn]=this.translate(kn,T(v({},i),{joinArrays:!1,ns:c})),en[hn]===kn&&(en[hn]=Ot[hn])}E=en}}else if(ae&&K(M)&&Array.isArray(E))E=E.join(M),E&&(E=this.extendTranslation(E,r,i,n));else{let Et=!1,en=!1;!this.isValidLookup(E)&&Ne&&(Et=!0,E=Ht),this.isValidLookup(E)||(en=!0,E=a);let hn=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&en?void 0:E,kn=Ne&&Ht!==E&&this.options.updateMissing;if(en||Et||kn){if(this.logger.log(kn?"updateKey":"missingKey",d,u,a,kn?Ht:E),s){let xt=this.resolve(a,T(v({},i),{keySeparator:!1}));xt&&xt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ao=[],fs=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fs&&fs[0])for(let xt=0;xt<fs.length;xt++)ao.push(fs[xt]);else this.options.saveMissingTo==="all"?ao=this.languageUtils.toResolveHierarchy(i.lng||this.language):ao.push(i.lng||this.language);let Dl=(xt,zr,co)=>{let Il=Ne&&co!==E?co:hn;this.options.missingKeyHandler?this.options.missingKeyHandler(xt,u,zr,Il,kn,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(xt,u,zr,Il,kn,i),this.emit
10("missingKey",xt,u,zr,E)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Z?ao.forEach(xt=>{let zr=this.pluralResolver.getSuffixes(xt,i);sr&&i[`defaultValue${this.options.pluralSeparator}zero`]&&zr.indexOf(`${this.options.pluralSeparator}zero`)<0&&zr.push(`${this.options.pluralSeparator}zero`),zr.forEach(co=>{Dl([xt],a+co,i[`defaultValue${co}`]||Ht)})}):Dl(ao,a,Ht))}E=this.extendTranslation(E,r,i,p,n),en&&E===a&&this.options.appendNamespaceToMissingKey&&(E=`${u}${l}${a}`),(en||Et)&&this.options.parseMissingKeyHandler&&(E=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${l}${a}`:a,Et?E:void 0,i))}return o?(p.res=E,p.usedParams=this.getUsedParamsDetails(i),p):E}extendTranslation(r,t,n,i,o){if(this.i18nFormat?.parse)r=this.i18nFormat.parse(r,v(v({},this.options.interpolation.defaultVariables),n),n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(T(v({},n),{interpolation:v(v({},this.options.interpolation),n.interpolation)}));let c=K(r)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),u;if(c){let d=r.match(this.interpolator.nestingRegexp);u=d&&d.length}let l=n.replace&&!K(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=v(v({},this.options.interpolation.defaultVariables),l)),r=this.interpolator.interpolate(r,l,n.lng||this.language||i.usedLng,n),c){let d=r.match(this.interpolator.nestingRegexp),h=d&&d.length;u<h&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(r=this.interpolator.nest(r,(...d)=>o?.[0]===d[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${d[0]} in key: ${t[0]}`),null):this.translate(...d,t),n)),n.interpolation&&this.interpolator.reset()}let s=n.postProcess||this.options.postProcess,a=K(s)?[s]:s;return r!=null&&a?.length&&n.applyPostProcessor!==!1&&(r=jx.handle(a,r,t,this.options&&this.options.postProcessPassResolved?v({i18nResolved:T(v({},i),{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),r}resolve(r,t={}){let n,i,o,s,a;return K(r)&&(r=[r]),Array.isArray(r)&&(r=r.map(c=>typeof c=="function"?Sa(c,v(v({},this.options),t)):c)),r.forEach(c=>{if(this.isValidLookup(n))return;let u=this.extractFromKey(c,t),l=u.key;i=l;let d=u.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));let h=t.count!==void 0&&!K(t.count),p=h&&!t.ordinal&&t.count===0,E=t.context!==void 0&&(K(t.context)||typeof t.context=="number")&&t.context!=="",D=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);d.forEach(b=>{this.isValidLookup(n)||(a=b,!Ox[`${D[0]}-${b}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(Ox[`${D[0]}-${b}`]=!0,this.logger.warn(`key "${i}" for languages "${D.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),D.forEach(R=>{if(this.isValidLookup(n))return;s=R;let M=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(M,l,R,b,t);else{let Z;h&&(Z=this.pluralResolver.getSuffix(R,t.count,t));let Ne=`${this.options.pluralSeparator}zero`,Oe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(t.ordinal&&Z.indexOf(Oe)===0&&M.push(l+Z.replace(Oe,this.options.pluralSeparator)),M.push(l+Z),p&&M.push(l+Ne)),E){let at=`${l}${this.options.contextSeparator||"_"}${t.context}`;M.push(at),h&&(t.ordinal&&Z.indexOf(Oe)===0&&M.push(at+Z.replace(Oe,this.options.pluralSeparator)),M.push(at+Z),p&&M.push(at+Ne))}}let ae;for(;ae=M.pop();)this.isValidLookup(n)||(o=ae,n=this.getResource(R,b,ae,t))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:s,usedNS:a}}isValidLookup(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")}getResource(r,t,n,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(r,t,n,i):this.resourceStore.getResource(r,t,n,i)}getUsedParamsDetails(r={}){let t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=r.replace&&!K(r.replace),i=n?r.replace:r;if(n&&typeof r.count<"u"&&(i.count=r.count),this.options.interpolation.defaultVariables&&(i=v(v({},this.options.interpolation.defaultVariables),i)),!n){i=v({},i);for(let o of t)delete i[o]}return i}static hasDefaultValue(r){let t="defaultValue";for(let n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&t===n.substring(0,t.length)&&r[n]!==void 0)return!0;return!1}},gp=class{constructor(r){this.options=r,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fr.create("languageUtils")}getScriptPartFromCode(r){if(r=Hu(r),!r||r.indexOf("-")<0)return null;let t=r.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(r){if(r=Hu(r),!r||r.indexOf("-")<0)return r;let t=r.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(r){if(K(r)&&r.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(r)[0]}catch(n){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?r.toLowerCase():r)}return this.options.cleanCode||this.options.lowerCaseLng?r.toLowerCase():r}isSupportedCode(r){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(r=this.getLanguagePartFromCode(r)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(r)>-1}getBestMatchFromCodes(r){if(!r)return null;let t;return r.forEach(n=>{if(t)return;let i=this.formatLanguageCode(n);(!this.options.supportedLngs||this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&r.forEach(n=>{if(t)return;let i=this.getScriptPartFromCode(n);if(this.isSupportedCode(i))return t=i;let o=this.getLanguagePartFromCode(n);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(r,t){if(!r)return[];if(typeof r=="function"&&(r=r(t)),K(r)&&(r=[r]),Array.isArray(r))return r;if(!t)return r.default||[];let n=r[t];
10return n||(n=r[this.getScriptPartFromCode(t)]),n||(n=r[this.formatLanguageCode(t)]),n||(n=r[this.getLanguagePartFromCode(t)]),n||(n=r.default),n||[]}toResolveHierarchy(r,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],r),i=[],o=s=>{s&&(this.isSupportedCode(s)?i.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return K(r)&&(r.indexOf("-")>-1||r.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(r)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(r)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(r))):K(r)&&o(this.formatLanguageCode(r)),n.forEach(s=>{i.indexOf(s)<0&&o(this.formatLanguageCode(s))}),i}},xx={zero:0,one:1,two:2,few:3,many:4,other:5},Lx={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},fD=class{constructor(r,t={}){this.languageUtils=r,this.options=t,this.logger=Fr.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(r,t={}){let n=Hu(r==="dev"?"en":r),i=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let s;try{s=new Intl.PluralRules(n,{type:i})}catch(a){if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Lx;if(!r.match(/-|_/))return Lx;let c=this.languageUtils.getLanguagePartFromCode(r);s=this.getRule(c,t)}return this.pluralRulesCache[o]=s,s}needsPlural(r,t={}){let n=this.getRule(r,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(r,t,n={}){return this.getSuffixes(r,n).map(i=>`${t}${i}`)}getSuffixes(r,t={}){let n=this.getRule(r,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((i,o)=>xx[i]-xx[o]).map(i=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(r,t,n={}){let i=this.getRule(r,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${r}`),this.getSuffix("dev",t,n))}},Px=(e,r,t,n=".",i=!0)=>{let o=fq(e,r,t);return!o&&i&&K(t)&&(o=lD(e,t,n),o===void 0&&(o=lD(r,t,n))),o},aD=e=>e.replace(/\$/g,"$$$$"),mp=class{constructor(r={}){this.logger=Fr.create("interpolator"),this.options=r,this.format=r?.interpolation?.format||(t=>t),this.init(r)}init(r={}){r.interpolation||(r.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:s,suffix:a,suffixEscaped:c,formatSeparator:u,unescapeSuffix:l,unescapePrefix:d,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:E,nestingSuffixEscaped:D,nestingOptionsSeparator:b,maxReplaces:R,alwaysFormat:M}=r.interpolation;this.escape=t!==void 0?t:pq,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?Qo(o):s||"{{",this.suffix=a?Qo(a):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=l?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=h?Qo(h):p||Qo("$t("),this.nestingSuffix=E?Qo(E):D||Qo(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=R||1e3,this.alwaysFormat=M!==void 0?M:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let r=(t,n)=>t?.source===n?(t.lastIndex=0,t):new RegExp(n,"g");this.regexp=r(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=r(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=r(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(r,t,n,i){let o,s,a,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){let R=Px(t,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(R,void 0,n,T(v(v({},i),t),{interpolationkey:p})):R}let E=p.split(this.formatSeparator),D=E.shift().trim(),b=E.join(this.formatSeparator).trim();return this.format(Px(t,c,D,this.options.keySeparator,this.options.ignoreJSONStructure),b,n,T(v(v({},i),t),{interpolationkey:D}))};this.resetRegExp();let l=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.ski
10pOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>aD(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?aD(this.escape(p)):aD(p)}].forEach(p=>{for(a=0;o=p.regex.exec(r);){let E=o[1].trim();if(s=u(E),s===void 0)if(typeof l=="function"){let b=l(r,o,i);s=K(b)?b:""}else if(i&&Object.prototype.hasOwnProperty.call(i,E))s="";else if(d){s=o[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${r}`),s="";else!K(s)&&!this.useRawValueToEscape&&(s=Ax(s));let D=p.safeValue(s);if(r=r.replace(o[0],D),d?(p.regex.lastIndex+=s.length,p.regex.lastIndex-=o[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),r}nest(r,t,n={}){let i,o,s,a=(c,u)=>{let l=this.nestingOptionsSeparator;if(c.indexOf(l)<0)return c;let d=c.split(new RegExp(`${Qo(l)}[ ]*{`)),h=`{${d[1]}`;c=d[0],h=this.interpolate(h,s);let p=h.match(/'/g),E=h.match(/"/g);((p?.length??0)%2===0&&!E||(E?.length??0)%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),u&&(s=v(v({},u),s))}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,D),`${c}${l}${h}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,c};for(;i=this.nestingRegexp.exec(r);){let c=[];s=v({},n),s=s.replace&&!K(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(c=i[1].slice(u).split(this.formatSeparator).map(l=>l.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),o=t(a.call(this,i[1].trim(),s),s),o&&i[0]===r&&!K(o))return o;K(o)||(o=Ax(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${r}`),o=""),c.length&&(o=c.reduce((l,d)=>this.format(l,d,n.lng,T(v({},n),{interpolationkey:i[1].trim()})),o.trim())),r=r.replace(i[0],o),this.regexp.lastIndex=0}return r}},Sq=e=>{let r=e.toLowerCase().trim(),t={};if(e.indexOf("(")>-1){let n=e.split("(");r=n[0].toLowerCase().trim();let i=n[1].substring(0,n[1].length-1);r==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):r==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(s=>{if(s){let[a,...c]=s.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),l=a.trim();t[l]||(t[l]=u),u==="false"&&(t[l]=!1),u==="true"&&(t[l]=!0),isNaN(u)||(t[l]=parseInt(u,10))}})}return{formatName:r,formatOptions:t}},Fx=e=>{let r={};return(t,n,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o=T(v({},o),{[i.interpolationkey]:void 0}));let s=n+JSON.stringify(o),a=r[s];return a||(a=e(Hu(n),i),r[s]=a),a(t)}},Cq=e=>(r,t,n)=>e(Hu(t),n)(r),hD=class{constructor(r={}){this.logger=Fr.create("formatter"),this.options=r,this.init(r)}init(r,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?Fx:Cq;this.formats={number:n((i,o)=>{let s=new Intl.NumberFormat(i,v({},o));return a=>s.format(a)}),currency:n((i,o)=>{let s=new Intl.NumberFormat(i,T(v({},o),{style:"currency"}));return a=>s.format(a)}),datetime:n((i,o)=>{let s=new Intl.DateTimeFormat(i,v({},o));return a=>s.format(a)}),relativetime:n((i,o)=>{let s=new Intl.RelativeTimeFormat(i,v({},o));return a=>s.format(a,o.range||"day")}),list:n((i,o)=>{let s=new Intl.ListFormat(i,v({},o));return a=>s.format(a)})}}add(r,t){this.formats[r.toLowerCase().trim()]=t}addCached(r,t){this.formats[r.toLowerCase().trim()]=Fx(t)}format(r,t,n,i={}){let o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(a=>a.indexOf(")")>-1)){let a=o.findIndex(c=>c.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,a)].join(this.formatSeparator)}return o.reduce((a,c)=>{let{formatName:u,formatOptions:l}=Sq(c);if(this.formats[u]){let d=a;try{let h=i?.formatParams?.[i.interpolationkey]||{},p=h.locale||h.lng||i.locale||i.lng||n;d=this.formats[u](a,p,v(v(v({},l),i),h))}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return a},r)}},Dq=(e,r)=>{e.pending[r]!==void 0&&(delete e.pending[r],e.pendingCount--)},pD=class extends Ca{constructor(r,t,n,i={}){super(),this.backend=r,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=Fr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(r,t,n,i){let o={},s={},a={},c={};return r.forEach(u=>{let l=!0;t.forEach(d=>{let h=`${u}|${d}`;!n.reload&&this.store.hasResourceBundle(u,d)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,l=!1,s[h]===void 0&&(s[h]=!0),o[h]===void 0&&(o[h]=!0),c[d]===void 0&&(c[d]=!0)))}),l||(a[u]=!0)}),(Object.keys(o).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}loaded(r,t,n){let i=r.split("|"),o=i[0],s=i[1];
vendor: 4,062 bytes, line 10
10t&&this.emit("failedLoading",o,s,t),!t&&n&&this.store.addResourceBundle(o,s,n,void 0,void 0,{skipCopy:!0}),this.state[r]=t?-1:2,t&&n&&(this.state[r]=0);let a={};this.queue.forEach(c=>{dq(c.loaded,[o],s),Dq(c,r),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{a[u]||(a[u]={});let l=c.loaded[u];l.length&&l.forEach(d=>{a[u][d]===void 0&&(a[u][d]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(c=>!c.done)}read(r,t,n,i=0,o=this.retryTimeout,s){if(!r.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:t,fcName:n,tried:i,wait:o,callback:s});return}this.readingCalls++;let a=(u,l)=>{if(this.readingCalls--,this.waitingReads.length>0){let d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(u&&l&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,r,t,n,i+1,o*2,s)},o);return}s(u,l)},c=this.backend[n].bind(this.backend);if(c.length===2){try{let u=c(r,t);u&&typeof u.then=="function"?u.then(l=>a(null,l)).catch(a):a(null,u)}catch(u){a(u)}return}return c(r,t,a)}prepareLoading(r,t,n={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();K(r)&&(r=this.languageUtils.toResolveHierarchy(r)),K(t)&&(t=[t]);let o=this.queueLoad(r,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(s=>{this.loadOne(s)})}load(r,t,n){this.prepareLoading(r,t,{},n)}reload(r,t,n){this.prepareLoading(r,t,{reload:!0},n)}loadOne(r,t=""){let n=r.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,s),!s&&a&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,a),this.loaded(r,s,a)})}saveMissing(r,t,n,i,o,s={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if(this.backend?.create){let c=T(v({},s),{isUpdate:o}),u=this.backend.create.bind(this.backend);if(u.length<6)try{let l;u.length===5?l=u(r,t,n,i,c):l=u(r,t,n,i),l&&typeof l.then=="function"?l.then(d=>a(null,d)).catch(a):a(null,l)}catch(l){a(l)}else u(r,t,n,i,a,c)}!r||!r[0]||this.store.addResource(r[0],t,n,i)}}},cD=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let r={};if(typeof e[1]=="object"&&(r=e[1]),K(e[1])&&(r.defaultValue=e[1]),K(e[2])&&(r.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let t=e[3]||e[2];Object.keys(t).forEach(n=>{r[n]=t[n]})}return r},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kx=e=>(K(e.ns)&&(e.ns=[e.ns]),K(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),K(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e),dp=()=>{},Iq=e=>
10{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})},Bx="__i18next_supportNoticeShown",Tq=()=>!!(typeof globalThis<"u"&&globalThis[Bx]||typeof process<"u"&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&process.env),bq=()=>{typeof globalThis<"u"&&(globalThis[Bx]=!0)},wq=e=>!!(e?.modules?.backend?.name?.indexOf("Locize")>0||e?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||e?.options?.backend?.backends&&e.options.backend.backends.some(r=>r?.name?.indexOf("Locize")>0||r?.constructor?.name?.indexOf("Locize")>0)||e?.options?.backend?.projectId||e?.options?.backend?.backendOptions&&e.options.backend.backendOptions.some(r=>r?.projectId)),gD=class e extends Ca{constructor(r={},t){if(super(),this.options=kx(r),this.services={},this.logger=Fr,this.modules={external:[]},Iq(this),t&&!this.isInitialized&&!r.isClone){if(!this.options.initAsync)return this.init(r,t),this;setTimeout(()=>{this.init(r,t)},0)}}init(r={},t){this.isInitializing=!0,typeof r=="function"&&(t=r,r={}),r.defaultNS==null&&r.ns&&(K(r.ns)?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));let n=cD();this.options=v(v(v({},n),this.options),kx(r)),this.options.interpolation=v(v({},n.interpolation),this.options.interpolation),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!wq(this)&&!Tq()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}"),bq());let i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Fr.init(i(this.modules.logger),this.options):Fr.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=hD;let l=new gp(this.options);this.store=new hp(this.options.resources,this.options);let d=this.services;d.logger=Fr,d.resourceStore=this.store,d.languageUtils=l,d.pluralResolver=new fD(l,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(d.formatter=i(u),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new mp(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new pD(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(p,...E)=>{this.emit(p,...E)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new pp(this.services,this.options),this.translator.on("*",(p,...E)=>{this.emit(p,...E)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,t||(t=dp),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=(...l)=>this.store[u](...l)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...l)=>(this.store[u](...l),this)});let a=$u(),c=()=>{let u=(l,d)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit
10("initialized",this.options),a.resolve(d),t(l,d)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),a}loadResources(r,t=dp){let n=t,i=K(r)?r:this.language;if(typeof r=="function"&&(n=r),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();let o=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&o.indexOf(u)<0&&o.push(u)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),this.options.preload?.forEach?.(a=>s(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(r,t,n){let i=$u();return typeof r=="function"&&(n=r,r=void 0),typeof t=="function"&&(n=t,t=void 0),r||(r=this.languages),t||(t=this.options.ns),n||(n=dp),this.services.backendConnector.reload(r,t,o=>{i.resolve(),n(o)}),i}use(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&jx.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this}setResolvedLanguage(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1)){for(let t=0;t<this.languages.length;t++){let n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}!this.resolvedLanguage&&this.languages.indexOf(r)<0&&this.store.hasLanguageSomeTranslations(r)&&(this.resolvedLanguage=r,this.languages.unshift(r))}}changeLanguage(r,t){this.isLanguageChangingTo=r;let n=$u();this.emit("languageChanging",r);let i=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,c)=>{c?this.isLanguageChangingTo===r&&(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,n.resolve((...u)=>this.t(...u)),t&&t(a,(...u)=>this.t(...u))},s=a=>{!r&&!a&&this.services.languageDetector&&(a=[]);let c=K(a)?a:a&&a[0],u=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(K(a)?[a]:a);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector?.cacheUserLanguage?.(u)),this.loadResources(u,l=>{o(l,u)})};return!r&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(r),n}getFixedT(r,t,n){let i=(o,s,...a)=>{let c;typeof s!="object"?c=this.options.overloadTranslationOptionHandler([o,s].concat(a)):c=v({},s),c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||n||i.keyPrefix);let u=v(v({},this.options),c);typeof c.keyPrefix=="function"&&(c.keyPrefix=Sa(c.keyPrefix,u));let l=this.options.keySeparator||".",d;return c.keyPrefix&&Array.isArray(o)?d=o.map(h=>(typeof h=="function"&&(h=Sa(h,u)),`${c.keyPrefix}${l}${h}`)):(typeof o=="function"&&(o=Sa(o,u)),d=c.keyPrefix?`${c.keyPrefix}${l}${o}
10`:o),this.t(d,c)};return K(r)?i.lng=r:i.lngs=r,i.ns=t,i.keyPrefix=n,i}t(...r){return this.translator?.translate(...r)}exists(...r){return this.translator?.exists(...r)}setDefaultNamespace(r){this.options.defaultNS=r}hasLoadedNamespace(r,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;let s=(a,c)=>{let u=this.services.backendConnector.state[`${a}|${c}`];return u===-1||u===0||u===2};if(t.precheck){let a=t.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(n,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(n,r)&&(!i||s(o,r)))}loadNamespaces(r,t){let n=$u();return this.options.ns?(K(r)&&(r=[r]),r.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{n.resolve(),t&&t(i)}),n):(t&&t(),Promise.resolve())}loadLanguages(r,t){let n=$u();K(r)&&(r=[r]);let i=this.options.preload||[],o=r.filter(s=>i.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return o.length?(this.options.preload=i.concat(o),this.loadResources(s=>{n.resolve(),t&&t(s)}),n):(t&&t(),Promise.resolve())}dir(r){if(r||(r=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!r)return"rtl";try{let i=new Intl.Locale(r);if(i&&i.getTextInfo){let o=i.getTextInfo();if(o&&o.direction)return o.direction}}catch(i){}let t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=this.services?.languageUtils||new gp(cD());return r.toLowerCase().indexOf("-latn")>1?"ltr":t.indexOf(n.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(r={},t){let n=new e(r,t);return n.createInstance=e.createInstance,n}cloneInstance(r={},t=dp){let n=r.forkResourceStore;n&&delete r.forkResourceStore;let i=T(v(v({},this.options),r),{isClone:!0}),o=new e(i);if((r.debug!==void 0||r.prefix!==void 0)&&(o.logger=o.logger.clone(r)),["store","services","language"].forEach(a=>{o[a]=this[a]}),o.services=v({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){let a=Object.keys(this.store.data).reduce((c,u)=>(c[u]=v({},this.store.data[u]),c[u]=Object.keys(c[u]).reduce((l,d)=>(l[d]=v({},c[u][d]),l),c[u]),c),{});o.store=new hp(a,i),o.services.resourceStore=o.store}if(r.interpolation){let a=cD(),c=v(v(v({},a.interpolation),this.options.interpolation),r.interpolation),u=T(v({},i),{interpolation:c});o.services.interpolator=new mp(u)}return o.translator=new pp(o.services,i),o.translator.on("*",(a,...c)=>{o.emit(a,...c)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},Mt=gD.createInstance(),tSe=Mt.createInstance,nSe=Mt.dir,rSe=Mt.init,iSe=Mt.loadResources,oSe=Mt.reloadResources,sSe=Mt.use,aSe=Mt.changeLanguage,cSe=Mt.getFixedT,uSe=Mt.t,lSe=Mt.exists,dSe=Mt.setDefaultNamespace,fSe=Mt.hasLoadedNamespace,hSe=Mt.loadNamespaces,pSe=Mt.loadLanguages;var Hx=function(r){return{type:"backend",init:function(n,i,o){},read:function(n,i,o){if(typeof r=="function"){if(r.length<3){try{var s=r(n,i);s&&typeof s.then=="function"?s.then(function(a){return o(null,a&&a.default||a)}).catch(o):o(null,s)}catch(a){o(a)}return}r(n,i,o);return}o(null,r&&r[n]&&r[n][i])}}};function Sp(e){return e&&typeof e=="object"&&!Array.isArray(e)}function _q(e){return e==="__proto__"||e==="constructor"}function ht(e={},...r){if(!r.length)return e;let t=r.shift()||{};if(!Sp(t))return ht(e,...r);for(let n in t)_q(n)||(t[n]instanceof Date?e[n]=t[n]:Sp(t[n])?(Sp(e[n])||
10(e[n]={}),ht(e[n],t[n])):e[n]=t[n]);return ht(e,...r)}function Aq(){return ht({},g(hL),g(DT))}var ut=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:()=>Aq(),providedIn:"root"})}}return e})();function Rq(){return ht({},...g(La,{optional:!0})??[])}var hL=new C("DefaultConfiguration",{providedIn:"root",factory:Rq});function Mq(){return ht({},...g(dm,{optional:!0})??[])}var DT=new C("RootConfiguration",{providedIn:"root",factory:Mq}),dm=new C("ConfigurationChunk"),La=new C("DefaultConfigurationChunk");function Vx(e={},r=!1){return{provide:r?La:dm,useValue:e,multi:!0}}function Cp(e,r,t=!1){return{provide:t?La:dm,useFactory:e,multi:!0,deps:r}}function xn(e={}){return{provide:La,useValue:e,multi:!0}}function no(e,r){return{provide:La,useFactory:e,multi:!0,deps:r}}var Nq={anonymousConsents:{registerConsent:"MARKETING_NEWSLETTER",showLegalDescriptionInDialog:!0,requiredConsents:[],consentManagementPage:{showAnonymousConsents:!0,hideConsents:[]}}};var Se=(function(e){return e.CONTENT_PAGE="ContentPage",e.PRODUCT_PAGE="ProductPage",e.CATEGORY_PAGE="CategoryPage",e.CATALOG_PAGE="CatalogPage",e})(Se||{});var Aa=(function(e){return e.GIVEN="GIVEN",e.WITHDRAWN="WITHDRAWN",e})(Aa||{}),ID="X-Anonymous-Consents";var Yu=class{};var Oq=(function(e){return e.BACK_IN_STOCK="BACK_IN_STOCK",e})(Oq||{});var xq="[ENTITY] REMOVE ALL";function fm(e,r){return{entityType:e,entityId:r}}function Lq(e){return{entityId:null,entityType:e,entityRemove:!0}}var TD=class{constructor(r){this.type=xq,this.meta=Lq(r)}},Pq="[LOADER] LOAD",Fq="[LOADER] FAIL",kq="[LOADER] SUCCESS",Uq="[LOADER] RESET";function pL(e){return{entityType:e,loader:{load:!0}}}function gL(e,r){return{entityType:e,loader:{error:r||!0}}}function mL(e){return{entityType:e,loader:{success:!0}}}function vL(e){return{entityType:e,loader:{}}}var pt=class{constructor(r){this.type=Pq,this.meta=pL(r)}},gt=class{constructor(r,t){this.type=Fq,this.meta=gL(r,t),this.error=t}},mt=class{constructor(r){this.type=kq,this.meta=mL(r)}},is=class{constructor(r){this.type=Uq,this.meta=vL(r)}},yL="[ENTITY] LOAD",EL="[ENTITY] LOAD FAIL",SL="[ENTITY] LOAD SUCCESS",CL="[ENTITY] RESET";function DL(e,r){return v(v({},pL(e)),fm(e,r))}function IL(e,r,t){return v(v({},gL(e,t)),fm(e,r))}function TL(e,r){return v(v({},mL(e)),fm(e,r))}function bL(e,r){return v(v({},vL(e)),fm(e,r))}var Xt=class{constructor(r,t){this.type=yL,this.meta=DL(r,t)}},Bt=class{constructor(r,t,n){this.type=EL,this.meta=IL(r,t,n),this.error=n}},vt=class{constructor(r,t,n){this.payload=n,this.type=SL,this.meta=TL(r,t)}},ir=class{constructor(r,t){this.type=CL,this.meta=bL(r,t)}};function yt(e){return e.value}function fn(e){return e.loading??!1}function hm(e){return e.error??!1}function gi(e){return e.success??!1}var kr={loading:!1,error:!1,success:!1,value:void 0};function Zi(e,r){return(t=kr,n)=>{if(n.meta&&n.meta.loader&&n.meta.entityType===e){let o=n.meta.loader;return o.load?T(v({},t),{loading:!0,value:i(t.value)}):o.error?T(v({},t),{loading:!1,error:!0,success:!1,value:i(void 0)}):o.success?T(v({},t),{value:i(n.payload),loading:!1,error:!1,success:!0}):T(v({},kr),{value:r?r(kr.value,n):kr.value})}if(r){let o=r(t.value,n);if(o!==t.value)return T(v({},t),{value:o})}return t;function i(o){return r?r(t.value,n):o}}}function Pa(e,r){return e.entities[r]||kr}var zx={entities:{}};function IT(e,r){return(n=zx,i)=>{let o=[],s=!1;if(i.meta&&i.meta.entityType===e&&i.meta.entityId!==void 0){if(o=[].concat(i.meta.entityId??""),i.meta.entityRemove)return t(i,n,o);s=Array.isArray(i.meta.entityId)&&Array.isArray(i.payload)}else o=Object.keys(n.entities);let a={};for(let c=0;c<o.length;c++){let u=o[c],l=s?T(v({},i),{payload:i.payload[c]}):i,d=r(n.entities[u],l);d&&(a[u]=d)}return Object.keys(a).length>0?T(v({},n),{entities:v(v({},n.entities),a)}):n};function t(n,i,o){if(n?.meta?.entityId===null)return zx;{let s=!1,a=Object.keys(i.entities).reduce((c,u)=>(o.includes(u)?s=!0:c[u]=i.entities[u],c),{});return s?{entities:a}:i}}}function Da(e,r){return IT(e,Zi(e,r))}var jq={processesCount:0};var $Se=v(v({},kr),jq);function $q(e,r){return e.entities[r]||void 0}var TT=".";function Bq(e,r){return e.split(TT).reduce((n,i)=>n?n[i]:void 0,r)}function Hq(e,r,t){if(!e||!t||Object.keys(t).length===0)return{};let n=e.split(TT).reduceRight((i,o)=>({[o]:i}),t);return Vq(e,r,n)}function wL(e,r,t){if(e&&e.length===0)return{};let n={};for(let i of e){let o=Bq(i,t),s=Hq(i,r,o);n=ht(n,s)}return n}function Vq(e,r,t){let n=zq(e,r);if(n.length===0)return t;let i=ht({},t);for(let o of n){let s=o.split(TT),a=i;for(let c=0;c<s.length;c++){let u=s[c];c===s.length-1?a&&a[u]&&delete a[u]:a=a[u]}}return i}function zq(e,r){if(!e||!r)return[];let t=[];for(let n of r)n.includes(e)&&t.push(n);return t}function _L(e,r){return e?Object.keys(e).filter(t=>e[t]===r):[]}var AL="anonymous-consents",il="[Anonymous Consents] Anonymous Consents",RL="[Anonymous Consents] L
10oad Anonymous Consent Templates",Gq="[Anonymous Consents] Load Anonymous Consent Templates Success",Wq="[Anonymous Consents] Load Anonymous Consent Templates Fail",qq="[Anonymous Consents] Reset Load Anonymous Consent Templates";var ML="[Anonymous Consents] Set Anonymous Consents",NL="[Anonymous Consents] Give Anonymous Consent",OL="[Anonymous Consents] Withdraw Anonymous Consent",xL="[Anonymous Consents] Toggle Anonymous Consents Banner Dismissed",LL="[Anonymous Consents] Anonymous Consent Templates Updated",PL="[Anonymous Consents] Check Updated Versions",Dp=class extends pt{constructor(){super(il),this.type=RL}},Ip=class extends mt{constructor(r){super(il),this.payload=r,this.type=Gq}},Tp=class extends gt{constructor(r){super(il,r),this.type=Wq}},bD=class extends is{constructor(){super(il),this.type=qq}};var wD=class{constructor(r){this.payload=r,this.type=ML}},_D=class{constructor(r){this.templateCode=r,this.type=NL}},AD=class{constructor(r){this.templateCode=r,this.type=OL}},RD=class{constructor(r){this.dismissed=r,this.type=xL}},bp=class{constructor(r){this.updated=r,this.type=LL}},MD=class{constructor(){this.type=PL}};var ol=Mn(AL),pm=w(ol,e=>e.templates),ND=w(pm,e=>yt(e)),Yq=w(pm,fn),Kq=w(pm,gi),Zq=w(pm,hm),Qq=e=>w(ND,r=>r?r.find(t=>t.id===e):void 0),Jq=w(ol,e=>e.ui.updated),Xq=w(ol,e=>e.ui.bannerDismissed),FL=w(ol,e=>e.consents),e4=e=>w(FL,r=>r.find(t=>t.templateCode===e));var kL=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:()=>Object.assign({},g(UL),g(jL)),providedIn:"root"})}}return e})(),UL=new C("DefaultFeatureToggles",{providedIn:"root",factory:()=>Object.assign({},...g(BL,{optional:!0})??[])}),jL=new C("RootFeatureToggles",{providedIn:"root",factory:()=>Object.assign({},...g($L,{optional:!0})??[])}),$L=new C("FeatureTogglesChunk",{providedIn:"root",factory:()=>[]}),BL=new C("DefaultFeatureTogglesChunk",{providedIn:"root",factory:()=>[]});function BSe(e={}){return{provide:$L,useValue:e,multi:!0}}function t4(e={}){return{provide:BL,useValue:e,multi:!0}}function HL(e){return typeof e=="object"&&!!e.features}function Gx(e,r){if(e==="*")return!0;let t=e.split("."),n=r.split(".");for(let i=0;i<n.length;i++){let o=Number(n[i]),s=Number(t[i])||0;if(o!==s)return s>o}return!0}function VL(e,r){return HL(e)&&e.features.level?r.startsWith("!")?!Gx(e.features.level,r.substring(1)):Gx(e.features.level,r):!1}function zL(e,r){if(HL(e)){let t=r[0]==="!"?e.features[r.substring(1)]:e.features[r],n=typeof t=="string"?VL(e,t):t;return r.startsWith("!")?!n:!!n}return!1}var n4=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),ss=(()=>{class e{constructor(t){this.config=t}isLevel(t){return VL(this.config,t)}isEnabled(t){return zL(this.config,t)}static{this.\u0275fac=function(n){return new(n||e)(f(n4))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Wu="current",qu="anonymous";var r4=new C("SERVER_REQUEST_URL"),i4=new C("SERVER_REQUEST_ORIGIN"),Nt=(()=>{class e{constructor(t,n,i,o){this.platformId=n,this.serverUrl=i,this.serverOrigin=o,this.document=t}isBrowser(){return Vi(this.platformId)}get nativeWindow(){return this.isBrowser()?window:void 0}get sessionStorage(){return this.nativeWindow?this.nativeWindow.sessionStorage:void 0}get localStorage(){return this.nativeWindow?this.nativeWindow.localStorage:void 0}get location(){if(this.isBrowser())return this.document.location;if(!this.serverUrl)throw new Error("Cannot resolve the href as the SERVER_REQUEST_URL is undefined");if(!this.serverOrigin)throw new Error("Cannot resolve the origin as the SERVER_REQUEST_ORIGIN is undefined");return{href:this.serverUrl,origin:this.serverOrigin}}get resize$(){return this.nativeWindow?Ja(this.nativeWindow,"resize").pipe(Ri(300),vr({target:this.nativeWindow}),Vt()):I(null)}static{this.\u0275fac=function(n){return new(n||e)(f(fe),f(bt),f(r4,8),f(i4,8))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),OD="cx-use-client-token";var HSe="sap-commerce-cloud-captcha-token",Ku=class{static createHeader(r,t,n){return n?n.append(r,JSON.stringify(t)):(n=new oe().set(r,JSON.stringify(t)),n)}static removeHeader(r,t){let n=t.headers.delete(r);return t.clone({headers:n})}static getInterceptorParam(r,t){let n=t.get(r);if(n)return JSON.parse(n)}},GL=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})();function dn(e){return typeof e<"u"}function Ra(e){return dn(e)&&e!==null}var WL="client-auth",gm="[Client auth] Client Token Data",qL="[Token] Load Client Token",o4="[Token] Load Client Token Fail",s4="[Token] Load Client Token Success",wp=class extends pt{constructor(){super(gm),this.type=qL}},xD=class extends gt{constructor(r){super(gm,r),this.payload=r,this.type=o4}},LD=class extends mt{constructor(r){super(gm),this.payload=r,this.type=s4}};var a4=Mn(WL),Wx=w(a4,e=>e.clientToken);var YL=(()=>{class e{constructor(t){this.store=t}getClientToken(){return this.store.pipe(A(Wx),pn(Ti),_(t=>this.isClientTokenLoaded(t)?!0:(t.loading||this.store.dispatch(new wp),!1)),S(t=>t.value))}refreshClientToken(){return this.store.dispatch(new wp),this.store.pipe(A(Wx),_(t=>this.isClientTokenLoaded(t)),S(t=>t.value),_(dn))}isClientTokenLoaded(t){return!!((t.success||t.error)&&!t.loading)}static{this.\u0275fac=function(n){return new(n||e)(f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),c4=(()=>{class e{constructor(t){this.clientTokenService=t}handleExpiredClientToken(t,n){return this.clientTokenService.refreshClientToken().pipe(W(1),O(i=>n.handle(this.createNewRequestWithNewToken(t,i))))}createNewRequestWithNewToken(t,n){return t=t.clone({setHeaders:{Authorization:`${n.token_type||"Bearer"} ${n.access_token}`}}),t}static{this.\u0275fac=function(n){return new(n||e)(f(YL))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),PD=class{static resolve(r,t,n){for(let i of Object.keys(t)){let o=new RegExp("\\${"+i+"}","g");r=r.replace(o,n?encodeURIComponent(t[i]):t[i])}return r}},re=(()=>{class e{log(...t){console.log(...t)}warn(...t){console.warn(...t)}error(...t){console.error(...t)}info(...t){console.info(...t)}debug(...t){console.debug(...t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function sl(e,r){return e.context&&e.context[r]||[]}function pi(e,r){return sl(e,r)?.[0]}var as="language",cs="currency",Xi="baseSite",KL="theme",FD=class{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return encodeURIComponent(r)}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}},zu="default";function qx(...e){let r=[];e=e.filter(t=>!!t);for(let t of e)r.push(u4(t));return e[0]?.startsWith("/")&&(r[0]="/"+r[0]),e[e.length-1]?.endsWith("/")&&(r[r.length-1]=r[r.length-1]+"/"),r.join("/")}function u4(e){return e=e.startsWith("/")?e.slice(1):e,e=e.endsWith("/")?e.slice(0,-1):e,e}var mi=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),$r=(()=>{class e extends mi{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e}
10)(),bT="[Site-context] Load BaseSite",ZL="[Site-context] Load BaseSite Fail",wT="[Site-context] Load BaseSite Success",_T="[Site-context] Load BaseSites",QL="[Site-context] Load BaseSites Fail",AT="[Site-context] Load BaseSites Success",RT="[Site-context] Set Active BaseSite",JL="[Site-context] BaseSite Change",kD=class{constructor(){this.type=bT}},_p=class{constructor(r){this.payload=r,this.type=ZL,this.error=r}},Ap=class{constructor(r){this.payload=r,this.type=wT}},Rp=class{constructor(){this.type=_T}},Mp=class{constructor(r){this.payload=r,this.type=QL,this.error=r}},Np=class{constructor(r){this.payload=r,this.type=AT}},Op=class{constructor(r){this.payload=r,this.type=RT}},UD=class{constructor(){this.type=JL}},MT="[Site-context] Load Currencies",XL="[Site-context] Load Currencies Fail",NT="[Site-context] Load Currencies Success",mm="[Site-context] Set Active Currency",Fa="[Site-context] Currency Change",xp=class{constructor(){this.type=MT}},Lp=class{constructor(r){this.payload=r,this.type=XL,this.error=r}},Pp=class{constructor(r){this.payload=r,this.type=NT}},Fp=class{constructor(r){this.payload=r,this.type=mm}},kp=class{constructor(r){this.payload=r,this.type=Fa}},OT="[Site-context] Load Languages",eP="[Site-context] Load Languages Fail",xT="[Site-context] Load Languages Success",vm="[Site-context] Set Active Language",or="[Site-context] Language Change",Up=class{constructor(){this.type=OT}},jp=class{constructor(r){this.payload=r,this.type=eP,this.error=r}},$p=class{constructor(r){this.payload=r,this.type=xT}},Bp=class{constructor(r){this.payload=r,this.type=vm}},Hp=class{constructor(r){this.payload=r,this.type=or}},VSe=Object.freeze({__proto__:null,BASE_SITE_CHANGE:JL,BaseSiteChange:UD,CURRENCY_CHANGE:Fa,CurrencyChange:kp,LANGUAGE_CHANGE:or,LOAD_BASE_SITE:bT,LOAD_BASE_SITES:_T,LOAD_BASE_SITES_FAIL:QL,LOAD_BASE_SITES_SUCCESS:AT,LOAD_BASE_SITE_FAIL:ZL,LOAD_BASE_SITE_SUCCESS:wT,LOAD_CURRENCIES:MT,LOAD_CURRENCIES_FAIL:XL,LOAD_CURRENCIES_SUCCESS:NT,LOAD_LANGUAGES:OT,LOAD_LANGUAGES_FAIL:eP,LOAD_LANGUAGES_SUCCESS:xT,LanguageChange:Hp,LoadBaseSite:kD,LoadBaseSiteFail:_p,LoadBaseSiteSuccess:Ap,LoadBaseSites:Rp,LoadBaseSitesFail:Mp,LoadBaseSitesSuccess:Np,LoadCurrencies:xp,LoadCurrenciesFail:Lp,LoadCurrenciesSuccess:Pp,LoadLanguages:Up,LoadLanguagesFail:jp,LoadLanguagesSuccess:$p,SET_ACTIVE_BASE_SITE:RT,SET_ACTIVE_CURRENCY:mm,SET_ACTIVE_LANGUAGE:vm,SetActiveBaseSite:Op,SetActiveCurrency:Fp,SetActiveLanguage:Bp}),LT="siteContext",al=Mn(LT),l4=e=>e.entities,d4=w(al,e=>e.baseSite),Yx=w(al,e=>e&&e.baseSite&&e.baseSite.activeSite),zSe=w(al,e=>e&&e.baseSite&&e.baseSite.details),f4=w(d4,l4),h4=w(f4,e=>e?Object.keys(e).map(r=>e[r]):null),p4=e=>e.entities,g4=e=>e.activeCurrency,tP=w(al,e=>e.currencies),m4=w(tP,p4),jD=w(tP,g4),v4=w(m4,e=>e?Object.keys(e).map(r=>e[r]):null),y4=e=>e.activeLanguage,E4=e=>e.entities,nP=w(al,e=>e.languages),S4=w(nP,E4),$D=w(nP,y4),C4=w(S4,e=>e?Object.keys(e).map(r=>e[r]):null);var us=(()=>{class e{constructor(t,n){this.store=t,this.config=n}getActive(){return this.store.pipe(A(Yx),_(t=>!!t))}getAll(){return this.store.pipe(A(h4),k(t=>{t||this.store.dispatch(new Rp)}),_(Ra))}get(t){return t?this.getAll().pipe(S(n=>n.find(i=>i.uid===t))):this.getActive().pipe(O(n=>this.getAll().pipe(S(i=>i.find(o=>o.uid===n)))))}setActive(t){this.store.pipe(A(Yx),W(1)).subscribe(n=>{t&&n!==t&&this.store.dispatch(new Op(t))})}isInitialized(){let t=!1;return this.getActive().subscribe(()=>t=!0).unsubscribe(),t}isValid(t){return!!t&&sl(this.config,Xi).includes(t)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(mi))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),He=(()=>{class e{get activeBaseSite(){return this._activeBaseSite??pi(this.config,Xi)}constructor(t,n){this.config=t,this.baseSiteService=n,this.logger=g(re),this.baseSiteService&&this.baseSiteService.getActive().subscribe(i=>this._activeBaseSite=i)}getRawEndpointValue(t,n){return this.getEndpointForScope(t,n)}isConfigured(t,n){return!(typeof this.getEndpointFromConfig(t,n)>"u")}getBaseUrl(t={baseUrl:!0,prefix:!0,baseSite:!0}){let n=t.baseUrl===!1?"":this.config?.backend?.occ?.baseUrl??"",i=t.prefix===!1?"":this.getPrefix(),o=t.baseSite===!1?"":this.activeBaseSite;return qx(n,i,o)}buildUrl(t,n,i){let o=this.getEndpointForScope(t,n?.scope);
10if(n){let{urlParams:s,queryParams:a}=n;if(s&&(o=PD.resolve(o,s,!0)),a){let c={encoder:new FD};if(o.includes("?")){let d;[o,d]=o.split("?"),c=T(v({},c),{fromString:d})}let l=this.getHttpParamsFromQueryParams(a,c).toString();l.length&&(o+="?"+l)}}return this.buildUrlFromEndpointString(o,i)}getHttpParamsFromQueryParams(t,n){let i=new Pe(n);return Object.keys(t).forEach(o=>{let s=t[o];s!==void 0&&(s===null?i=i.delete(o):i=i.set(o,s))}),i}getEndpointFromConfig(t,n){let i=this.config.backend?.occ?.endpoints;if(!i)return;let o=i[t];return n?n===zu&&typeof o=="string"?o:o?.[n]:typeof o=="string"?o:o?.[zu]}getEndpointForScope(t,n){let i=this.config.backend?.occ?.endpoints;if(!i)return"";let o=i[t];if(n){if(o?.[n])return o?.[n];if(n===zu&&typeof o=="string")return o;ge()&&this.logger.warn(`${t} endpoint configuration missing for scope "${n}"`)}return(typeof o=="string"?o:o?.[zu])||t}buildUrlFromEndpointString(t,n){return qx(this.getBaseUrl(n),t)}getPrefix(){return this.config?.backend?.occ?.prefix&&!this.config.backend.occ.prefix.startsWith("/")?"/"+this.config.backend.occ.prefix:this.config?.backend?.occ?.prefix??""}static{this.\u0275fac=function(n){return new(n||e)(f($r),f(us,8))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),D4=(()=>{class e{constructor(t,n,i){this.clientTokenService=t,this.clientErrorHandlingService=n,this.occEndpoints=i,this.enableClientToken=g(GL).authentication?.useClientTokens??!1}intercept(t,n){let i=this.isClientTokenRequest(t);return i&&(t=Ku.removeHeader(OD,t)),this.enableClientToken?this.getClientToken(i).pipe(W(1),O(o=>(o?.access_token&&t.url.includes(this.occEndpoints.getBaseUrl())&&(t=t.clone({setHeaders:{Authorization:`${o.token_type||"Bearer"} ${o.access_token}`}})),n.handle(t).pipe(j(s=>{if(s instanceof Ze&&s.status===401&&i&&this.isExpiredToken(s))return this.clientErrorHandlingService.handleExpiredClientToken(t,n);throw s}))))):n.handle(t)}getClientToken(t){return t?this.clientTokenService.getClientToken():I(void 0)}isClientTokenRequest(t){return!!Ku.getInterceptorParam(OD,t.headers)}isExpiredToken(t){return["InvalidBearerTokenError","InvalidTokenError"].includes(t.error?.errors?.[0]?.type)}static{this.\u0275fac=function(n){return new(n||e)(f(YL),f(c4),f(He))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),I4=[{provide:Qt,useExisting:D4,multi:!0}],Ji=(function(e){return e.NO_STORAGE="NO_STORAGE",e.LOCAL_STORAGE="LOCAL_STORAGE",e.SESSION_STORAGE="SESSION_STORAGE",e})(Ji||{}),ls=(function(e){return e.TRANSFER_STATE="SSR",e})(ls||{});var Br=(function(e){return e[e.FALLBACK=-50]="FALLBACK",e[e.LOW=-10]="LOW",e[e.NORMAL=0]="NORMAL",e[e.HIGH=10]="HIGH",e})(Br||{});function PT(e,r=[],t=[]){let n=(e??[]).filter(o=>!o.hasMatch||o.hasMatch(...r));if(n.length<2)return n[0];let i=-1/0;return n.reduce((o,s)=>{let a=s.getPriority?s.getPriority(...t):Br.NORMAL;return i>a?o:(i=a,s)},void 0)}function T4(e,r){let t=Array.from(new TextEncoder().encode(e)).map(i=>String.fromCharCode(i)).join(""),n=btoa(t);return r?.urlSafe?_4(n):n}function b4(e,r){r?.urlSafe&&(e=w4(e));let t=atob(e),n=Uint8Array.from(t,i=>i.charCodeAt(0));return new TextDecoder().decode(n)}function w4(e){return e.replace(/-/g,"+").replace(/_/g,"/").padEnd(e.length+(4-e.length%4)%4,"=")}function _4(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var BD=class{},Ia=(function(e){return e[e.Parallel=0]="Parallel",e[e.Queue=1]="Queue",e[e.CancelPrevious=2]="CancelPrevious",e[e.ErrorPrevious=3]="ErrorPrevious",e})(Ia||{}),A4=(()=>{class e{constructor(){this.subscriptions=new ce}create(t,n){let i=new X,o=new X,s=u=>({next:l=>u.next(l),error:l=>u.error(l),complete:()=>u.complete()}),a;switch(n?.strategy){case Ia.CancelPrevious:case Ia.ErrorPrevious:a=yo(i,o).pipe(O(([u,l])=>We(()=>t(u)).pipe(k(s(l)),j(()=>te),Mi(()=>{!l.closed&&!l.hasError&&(n.strategy===Ia.ErrorPrevious?l.error(new Error("Canceled by next command")):l.complete())}))));break;case Ia.Parallel:a=yo(i,o).pipe(G(([u,l])=>We(()=>t(u)).pipe(k(s(l)),j(()=>te))));break;case Ia.Queue:default:a=yo(i,o).pipe(Je(([u,l])=>We(()=>t(u)).pipe(k(s(l)),j(()=>te))));break}return this.subscriptions.add(a.subscribe()),new class extends BD{constructor(){super(...arguments),this.execute=u=>{let l=new lt;return o.next(l),i.next(u),l}}}}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function eo(e,r){return Object.assign(new e,r)}var to=(()=>{class e{static{this.type="CxEvent"}}return e})(),HD=class{constructor(){this.sources=[],this.subscriptionsToSources=new Map,this.output$=new L(r=>(this.consumer=r,this.bindAllSourcesToConsumer(r),()=>{this.consumer=null,this.unbindAllSourcesFromConsumer()})).pipe(bs()),this.consumer=null}add(r){this.has(r)||(this.consumer&&this.bindSourceToConsumer(r,this.consumer),this.sources.push(r))}
10bindAllSourcesToConsumer(r){this.sources.forEach(t=>this.bindSourceToConsumer(t,r))}unbindAllSourcesFromConsumer(){this.sources.forEach(r=>this.unbindSourceFromConsumer(r))}bindSourceToConsumer(r,t){let n=r.subscribe(i=>t.next(i));this.subscriptionsToSources.set(r,n)}unbindSourceFromConsumer(r){let t=this.subscriptionsToSources.get(r);t!==void 0&&(t.unsubscribe(),this.subscriptionsToSources.delete(r))}remove(r){this.unbindSourceFromConsumer(r);let t;(t=this.sources.findIndex(n=>n===r))!==-1&&this.sources.splice(t,1)}has(r){return this.sources.includes(r)}},ds=(()=>{class e{constructor(){this.logger=g(re),this.eventsMeta=new Map}register(t,n){let i=this.getEventMeta(t);return i.mergingSubject.has(n)?ge()&&this.logger.warn("EventService: the event source",n,"has been already registered for the type",t):i.mergingSubject.add(n),()=>i.mergingSubject.remove(n)}get(t){let n=this.getEventMeta(t).mergingSubject.output$;return ge()&&(n=this.getValidatedEventStream(n,t)),n}dispatch(t,n){n?t instanceof n||(t=eo(n,t)):n=t.constructor,this.getInputSubject(n).next(t)}getInputSubject(t){let n=this.getEventMeta(t);return n.inputSubject$||(n.inputSubject$=new X,this.register(t,n.inputSubject$)),n.inputSubject$}getEventMeta(t){return this.eventsMeta.get(t)||(ge()&&this.validateEventType(t),this.createEventMeta(t)),this.eventsMeta.get(t)}createEventMeta(t){let n={inputSubject$:null,mergingSubject:new HD};this.eventsMeta.set(t,n);let i=Object.getPrototypeOf(t);for(;i!==null&&Object.getPrototypeOf(i)!==Object.getPrototypeOf({});)this.register(i,n.mergingSubject.output$),i=Object.getPrototypeOf(i)}validateEventType(t){if(!t?.constructor)throw new Error(`EventService: ${t} is not a valid event type. Please provide a class reference.`);this.validateCxEvent(t)}validateCxEvent(t){let n=t;for(;n!==null&&Object.getPrototypeOf(n)!==Object.getPrototypeOf({});){if(n.type===to.type)return;n=Object.getPrototypeOf(n)}this.logger.warn(`The ${t.name} (or one of its parent classes) does not inherit from the ${to.type}`)}getValidatedEventStream(t,n){return t.pipe(k(i=>{i instanceof n||this.logger.warn("EventService: The stream",t,"emitted the event",i,"that is not an instance of the declared type",n.name)}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),GSe=(()=>{class e{constructor(t){this.eventService=t,this.subscriptions=new ce}create(t,n){let i={data:void 0,error:!1,loading:!0},o=new ve(i),s=Xa(()=>o.value.loading,I(void 0),te),a=this.getTriggersStream([s,...n?.reloadOn??[],...n?.resetOn??[]]),c=this.getTriggersStream(n?.resetOn??[]),u=this.getTriggersStream(n?.reloadOn??[]),l=t().pipe(Yr(c)),d=a.pipe(k(()=>{o.value.loading||o.next(T(v({},o.value),{loading:!0}))}),O(()=>l),k(E=>{o.next({loading:!1,error:!1,data:E})}),j((E,D)=>(o.next({loading:!1,error:E,data:void 0}),D)),bs());n?.reloadOn?.length&&this.subscriptions.add(u.subscribe(()=>{o.value.loading||o.next(T(v({},o.value),{loading:!0}))})),n?.resetOn?.length&&this.subscriptions.add(c.subscribe(()=>{(o.value.data!==void 0||o.value.error!==!1||o.value.loading!==!1)&&o.next(i)}));let h=Ai(()=>d.subscribe(),()=>o),p=h.pipe(S(E=>E.data),Vt());return{get:()=>p,getState:()=>h}}getTriggersStream(t){if(!t.length)return te;let n=t.map(i=>Wr(i)?i:this.eventService.get(i));return mn(...n)}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(ds))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Vp(e){let r;return e.subscribe(t=>r=t).unsubscribe(),r}var vp={},VD=class{constructor(r,t){this.mainInjector=r,this.complementaryInjectors=t}get(r,t,n){if(n&&n.self){if(t!==void 0)return t;throw new Error("CombinedInjector should be used as a parent injector / doesn't support self dependencies")}for(let i of this.complementaryInjectors){let o=i.get(r,vp,{self:!0});if(o!==vp)return o}for(let i of this.complementaryInjectors){let o=i.get(r,vp);if(o!==vp)return o}return this.mainInjector.get(r,t)}},mD=(()=>{class e extends to{static{this.type="ModuleInitializedEvent"}}return e})(),rP=new C("MODULE_INITIALIZER"),FT=(()=>{class e{constructor(t,n,i){this.compiler=t,this.injector=n,this.events=i,this.logger=g(re),this.modules$=sd(this.events.get(mD).pipe(S(o=>o.moduleRef)),{connector:()=>new lt,resetOnDisconnect:!1}),this.dependencyModules=new Map,this.eventSubscription=this.modules$.connect()}resolveModuleInstance(t,n,i=[]){let o;return i.length?i.length===1?o=i[0].injector:o=new VD(this.injector,i.map(s=>s.injector)):o=this.injector,this.resolveModuleFactory(t).pipe(S(([s])=>s.create(o)),Je(s=>
10this.runModuleInitializersForModule(s)),k(s=>this.events.dispatch(eo(mD,{feature:n,moduleRef:s}))))}resolveDependencyModuleInstance(t){return this.resolveModuleFactory(t).pipe(S(([n,i])=>{if(!this.dependencyModules.has(i)){let o=n.create(this.injector);this.dependencyModules.set(i,o)}return this.dependencyModules.get(i)}),Je(n=>this.runModuleInitializersForModule(n)),k(n=>this.events.dispatch(eo(mD,{moduleRef:n}))))}runModuleInitializersForModule(t){let n=t.injector.get(rP,[],{self:!0}),i=this.runModuleInitializerFunctions(n);return i.length?ue(Promise.all(i)).pipe(k({error:o=>{this.logger.error("MODULE_INITIALIZER promise was rejected while lazy loading a module.",o)}}),O(()=>I(t))):I(t)}runModuleInitializerFunctions(t){let n=[];try{if(t)for(let i=0;i<t.length;i++){let o=t[i]();this.isObjectPromise(o)&&n.push(o)}return n}catch(i){throw this.logger.error("MODULE_INITIALIZER init function throwed an error. ",i),i}}isObjectPromise(t){return!!t&&typeof t.then=="function"}resolveModuleFactory(t){return ue(t()).pipe(O(n=>n instanceof qs?I([n,n]):Fe([ue(this.compiler.compileModuleAsync(n)),I(n)])),pn(Ti))}ngOnDestroy(){this.eventSubscription&&this.eventSubscription.unsubscribe(),this.dependencyModules.forEach(t=>t.destroy())}static{this.\u0275fac=function(n){return new(n||e)(f(Jc),f(de),f(ds))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Kx={},cl=(()=>{class e{constructor(t,n){this.rootInjector=t,this.lazyModules=n,this.injectors$=this.lazyModules.modules$.pipe(S(i=>i.injector),vr(this.rootInjector))}get(t,n){return this.injectors$.pipe(S((i,o)=>i.get(t,n??Kx,o?{self:!0}:void 0)),_(i=>i!==Kx))}getMulti(t){return this.get(t,[]).pipe(_(n=>{if(!Array.isArray(n))throw new Error(`Multi-providers mixed with single providers for ${t.toString()}!`);return n.length>0}),oc((n,i)=>[...n,...i],[]))}static{this.\u0275fac=function(n){return new(n||e)(f(de),f(FT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Qe=(()=>{class e{constructor(t){this.unifiedInjector=t,this.subscriptions=new ce,this.converters=new Map;let n=this.unifiedInjector.injectors$.pipe(k(()=>this.converters.clear()));this.subscriptions.add(n.subscribe())}getConverters(t){if(!this.converters.has(t)){let n=Vp(this.unifiedInjector.getMulti(t));n&&this.converters.set(t,n)}return this.converters.get(t)}hasConverters(t){let n=this.getConverters(t);return Array.isArray(n)&&n.length>0}pipeable(t){return this.hasConverters(t)?S(n=>this.convertSource(n,t)):n=>n}pipeableMany(t){return this.hasConverters(t)?S(n=>this.convertMany(n,t)):n=>n}convert(t,n){return this.hasConverters(n)?this.convertSource(t,n):t}convertMany(t,n){return this.hasConverters(n)&&Array.isArray(t)?t.map(i=>this.convertSource(i,n)):t}convertSource(t,n){return this.getConverters(n)?.reduce((i,o)=>o.convert(t,i),void 0)}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(cl))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),R4="[^/]",M4="[^/]*",N4="(?:.+\\/)?",iP=[{replace:/\./g,with:"\\."},{replace:/\+/g,with:"\\+"},{replace:/\*/g,with:M4}],O4=[...iP,{replace:/\?/g,with:R4}],x4=[...iP,{replace:/\?/g,with:"\\?"}];function L4(e,r=!1){let t=r?x4:O4,n=e.split("/").reverse(),i="";for(;n.length>0;){let o=n.pop();if(o==="**")n.length>0?i+=N4:i+=".*";else{let s=t.reduce((a,c)=>a?.replace(c.replace,c.with),o);i+=s,n.length>0&&(i+="\\/")}}return i}function P4(e){return e.map(r=>{let t=!r.startsWith("!");return r=t?r:r.substring(1),{positive:t,regex:`^${L4(r)}$`}})}var F4=(()=>{class e{getValidator(t){let n=P4(t).map(({positive:s,regex:a})=>({positive:s,regex:new RegExp(a)})),i=n.filter(s=>s.positive),o=n.filter(s=>!s.positive);return s=>i.some(a=>a.regex.test(s))&&!o.some(a=>a.regex.test(s))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Zx(e){if(["__proto__","constructor","prototype"].includes(e))throw new Error("Invalid object property name: potential prototype pollution risk")}var k4=(()=>{class e{constructor(){this.logger=g(re),this.EXTRACT_JAVA_REGEXP_MODIFIERS=/^(\(\?([a-z]+)\))?(.*)/}toJsRegExp(t){let n=t.match(this.EXTRACT_JAVA_REGEXP_MODIFIERS);if(!n)return null;let[,,i,o]=n;try{return new RegExp(o,i)}catch(s){return ge()&&this.logger.warn(`WARNING: Could not convert Java regexp into Javascript. Original regexp: ${t} 11Message: ${s}`),null}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Zu=class{static shallowEqualObjects(r,t){if(r===t)return!0;
11if(!r||!t)return!1;let n=Object.keys(r),i=Object.keys(t),o=n.length,s=i.length;if(o!==s)return!1;for(let a=0;a<o;a++){let c=n[a];if(r[c]!==t[c])return!1}return!0}static deepEqualObjects(r,t){return r===t?!0:!(r instanceof Object)||!(t instanceof Object)||r.constructor!==t.constructor?!1:this.compareObjectProperties(r,t)}static compareObjectProperties(r,t){for(let n in r)if(r.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(r[n]!==t[n]&&(typeof r[n]!="object"||!this.deepEqualObjects(r[n],t[n])))return!1}for(let n in t)if(t.hasOwnProperty(n)&&!r.hasOwnProperty(n))return!1;return!0}static countOfDeepEqualObjects(r,t){return t.reduce((n,i)=>(this.deepEqualObjects(r,i)&&n++,n),0)}static indexOfFirstOccurrence(r,t){for(let n=0;n<t.length;n++)if(this.deepEqualObjects(t[n],r))return n}};var WSe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var qSe=/^(?=.*?[A-Z]).*$/,YSe=/^(?=.*?\d).*$/,KSe=/^(?=.*?[!@#$%^*()_\-+{};:.,]).*$/,ZSe=/^.{6,}$/,QSe=/^.{8,}$/,JSe=/^.{0,128}$/,XSe=/(.)\1+/;var eCe=/^(?!.*(.)\1)(?=.*?[A-Z])(?=.*?\d)(?=.*?[!@#$%^*()_\-+{};:.,]).{8,128}$/,tCe=/^.*[a-zA-Z0-9!@#$%^*()_\-+{};:.,]$/;function oP(e){return We(()=>{let r=0,t=new L(n=>{let i=()=>{n.next(),n.complete()};r?ov.schedule(i):i(),r++});return Fe(e).pipe(ec(()=>t))})}function ul(e){return r=>e.pipe(vr(void 0),O(()=>r))}function nCe(e){return Wr(e)?e:U4(e)?ue(Promise.resolve(e)):I(e)}function U4(e){return!!e&&typeof e.then=="function"}var zD=(function(e){return e.HEAD="head",e.BODY="body",e})(zD||{}),rCe=(()=>{class e{constructor(t,n){this.document=t,this.platformId=n}embedScript(t){let{src:n,params:i,attributes:o,callback:s,errorCallback:a,placement:c=zD.HEAD,disableKeyRestriction:u}=t,l=FS(this.platformId);if((s||a)&&l)return;let d=i?n+this.parseParams(i):n;if(!l&&this.hasScript(d))return;let h=this.document.createElement("script");h.src=d,h.async=!0,h.defer=!0,o&&Object.keys(o).forEach(p=>{p.startsWith("data-")||u&&!(p in h)?h.setAttribute(p,o[p]):h[p]=o[p]}),s&&h.addEventListener("load",s),a&&h.addEventListener("error",a),c===zD.HEAD?this.document.head.appendChild(h):this.document.body.appendChild(h)}hasScript(t){return!!this.document.querySelector(`script[src="${t}"]`)}parseParams(t){let n="",i=Object.keys(t);return i.length>0&&(n="?"+i.map(o=>encodeURI(o)+"="+encodeURI(t[o])).join("&")),n}static{this.\u0275fac=function(n){return new(n||e)(f(fe),f(bt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function le(e,r){return j4(e,r)??e}function j4(e,r){if(e instanceof Yu)return e;if(e instanceof Ze){let t=new Yu;return t.message=e.message,t.status=e.status,t.statusText=e.statusText,t.url=e.url,Array.isArray(e.error.errors)?t.details=e.error.errors:typeof e.error.error=="string"&&(t.details=[{type:e.error.error,message:e.error.error_description}]),t}ge()&&r.error("Error passed to tryNormalizeHttpError is not HttpErrorResponse instance",e)}function zp(e,r){let t;switch(e){case Ji.LOCAL_STORAGE:{t=r.localStorage;break}case Ji.SESSION_STORAGE:{t=r.sessionStorage;break}case Ji.NO_STORAGE:{t=void 0;break}default:t=r.sessionStorage}return t}function kT(e,r,t){!sP(t)&&dn(r)&&t.setItem(e,JSON.stringify(r))}function Gp(e,r){if(sP(e))return;let t=e.getItem(r);if(t)return JSON.parse(t)}function sP(e){return!e}var ll=(()=>{class e{constructor(t){this.winRef=t}syncWithStorage({key:t,state$:n,context$:i=I(""),storageType:o=Ji.LOCAL_STORAGE,onRead:s=()=>{}}){let a=zp(o,this.winRef),c=new ce;return c.add(i.pipe(S(u=>a?Gp(a,this.generateKeyWithContext(u,t)):void 0),k(u=>s(u))).subscribe()),a&&c.add(n.pipe(et(i)).subscribe(([u,l])=>{kT(this.generateKeyWithContext(l,t),u,a)})),c}readStateFromStorage({key:t,context:n="",storageType:i=Ji.LOCAL_STORAGE}){let o=zp(i,this.winRef);if(o)return Gp(o,this.generateKeyWithContext(n,t))}generateKeyWithContext(t,n){return`spartacus\u26BF${[].concat(t).join("\u26BF")}\u26BF${n}`}static{this.\u0275fac=function(n){return new(n||e)(f(Nt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ln=(()=>{class e{constructor(){this._userId=new lt(1)}setUserId(t){this._userId.next(t)}getUserId(){return this._userId}takeUserId(t=!1){return this.getUserId().pipe(W(1),S(n=>{if(t&&n===qu)throw new Error("Requested user id for logged user while user is not logged in.");return n}))}clearUserId(){this.setUserId(qu)}isEmulated(){return this.getUserId().pipe(S(t=>t!==qu&&t!==Wu))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),dl=(()=>{class e extends Ko{constructor(){super(...arguments),this._token$=new ve({})}static{this.nonStringifiedOAuthLibKeys=["PKCE_verifier","access_token","refresh_token","expires_at","access_token_stored_at","id_token","id_token_expires_at","id_token_stored_at","session_state","nonce"]}decode(t,n){return e.nonStringifiedOAuthLibKeys.includes(t)?n:JSON.stringify(n)}encode(t,n){if(e.nonStringifiedOAuthLibKeys.includes(t))return n;try{return JSON.parse(n)}catch(i){return n}}getToken(){return this._token$}setToken(t){this._token$.next(t)}getItem(t){let n;return this.getToken().subscribe(i=>n=i).unsubscribe(),this.decode(t,n?.[t])}removeItem(t){let n=v({},this._token$.value);delete n[t],this._token$.next(v({},n))}setItem(t,n){t&&this._token$.next(T(v({},this._token$.value),{[t]:this.encode(t,n)}
11))}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),aP=(()=>{class e{constructor(){this.redirectUrl$=new ve(void 0)}getRedirectUrl(){return this.redirectUrl$}setRedirectUrl(t){this.redirectUrl$.next(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cP=(()=>{class e{constructor(t,n,i,o){this.statePersistenceService=t,this.userIdService=n,this.authStorageService=i,this.authRedirectStorageService=o,this.subscription=new ce,this.key="auth"}initSync(){this.subscription.add(this.statePersistenceService.syncWithStorage({key:this.key,state$:this.getAuthState(),onRead:t=>this.onRead(t)}))}getAuthState(){return Fe([this.authStorageService.getToken().pipe(_(t=>!!t),S(t=>v({},t))),this.userIdService.getUserId(),this.authRedirectStorageService.getRedirectUrl()]).pipe(S(([t,n,i])=>{let o=t;return o&&(o=v({},o),delete o.refresh_token),{token:o,userId:n,redirectUrl:i}}))}onRead(t){t?.token&&this.authStorageService.setToken(t.token),t?.redirectUrl&&this.authRedirectStorageService.setRedirectUrl(t.redirectUrl),t?.userId?this.userIdService.setUserId(t.userId):this.userIdService.clearUserId()}readStateFromStorage(){return this.statePersistenceService.readStateFromStorage({key:this.key})}isUserLoggedIn(){return!!this.readStateFromStorage()?.token?.access_token}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(ll),f(Ln),f(dl),f(aP))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),GD="cx-state";function $4(e,r,t,n){if(r&&t?.state?.ssrTransfer?.keys){if(Vi(e))return H4(r,t.state.ssrTransfer.keys,!!n?.isUserLoggedIn());if(FS(e))return B4(r,t.state.ssrTransfer.keys)}return i=>i}function B4(e,r){let t=_L(r,ls.TRANSFER_STATE);return function(n){return function(i,o){let s=n(i,o);if(s){let a=wL(t,[],s);e.set(GD,a)}return s}}}function H4(e,r,t){let n=_L(r,ls.TRANSFER_STATE);return function(i){return function(o,s){if(s.type===qh){if(o||(o=i(o,s)),!t&&e.hasKey(GD)){let a=e.get(GD,{}),c=wL(n,[],a);o=ht({},o,c)}return o}return i(o,s)}}}var Qx=new C("TransferStateMetaReducer"),V4=[{provide:Qx,useFactory:$4,deps:[bt,[new oi,EE],[new oi,ut],[new oi,cP]]},{provide:ha,useExisting:Qx,multi:!0}],ro=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...V4]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),Gu=(function(e){return e[e.ResourceOwnerPasswordFlow=0]="ResourceOwnerPasswordFlow",e[e.ImplicitFlow=1]="ImplicitFlow",e[e.AuthorizationCode=2]="AuthorizationCode",e})(Gu||{}),ka=(()=>{class e{constructor(t,n){this.authConfig=t,this.occConfig=n}get config(){return this.authConfig?.authentication??{}}getClientId(){return this.config?.client_id??""}getClientSecret(){return this.config?.client_secret??""}getBaseUrl(){return this.config?.baseUrl??(this.occConfig?.backend?.occ?.baseUrl??"")+"/authorizationserver"}getTokenEndpoint(){let t=this.config?.tokenEndpoint??"";return this.prefixEndpoint(t)}getLoginUrl(){let t=this.config?.loginUrl??"";return this.prefixEndpoint(t)}getCustomLoginFormEndpoint(){let t=this.config?.customLoginPage?.loginFormEndpoint??"";return this.prefixEndpoint(t)}getCsrfEndpoint(){let t=this.config?.customLoginPage?.csrfEndpoint??"";return this.prefixEndpoint(t)}getRevokeEndpoint(){let t=this.config?.revokeEndpoint??"";return this.prefixEndpoint(t)}customLoginEnabled(){return!!this.config?.customLoginPage}sendAuthHeaderOnRevoke(){return!!this.config?.sendAuthHeaderOnRevoke}getLogoutUrl(){let t=this.config?.logoutUrl??"";return this.prefixEndpoint(t)}getUserinfoEndpoint(){let t=this.config?.userinfoEndpoint??"";return this.prefixEndpoint(t)}getOAuthLibConfig(){return this.config?.OAuthLibConfig??{}}prefixEndpoint(t){let n=t;return n.startsWith("/")||(n="/"+n),`${this.getBaseUrl()}${n}`}getOAuthFlow(){let t=this.config?.OAuthLibConfig?.responseType;if(t){let n=t.split(" ");return n.includes("code")?Gu.AuthorizationCode:n.includes("token")?Gu.ImplicitFlow:Gu.ResourceOwnerPasswordFlow}return Gu.ResourceOwnerPasswordFlow}static{this.\u0275fac=function(n){return new(n||e)(f(GL),f($r))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),z4=(()=>{class e{constructor(t,n){this.http=t,this.authConfigService=n}loadClientAuthenticationToken(){let t=this.authConfigService.getTokenEndpoint(),n=new Pe().set("client_id",encodeURIComponent(this.authConfigService.getClientId())).set("client_secret",encodeURIComponent(this.authConfigService.getClientSecret())).set("grant_type","client_credentials"),i=new oe({"Content-Type":"application/x-www-form-urlencoded"});return this.http.post(t,n,{headers:i})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(ka))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),G4=(()=>{class e{constructor(t,n){this.actions$=t,this.clientAuthenticationTokenService=n,this.logger=g(re),this.loadClientToken$=pe(()=>this.actions$.pipe(ne(qL),gr(()=>this.clientAuthenticationTokenService.loadClientAuthenticationToken().pipe(S(i=>new LD(i)),j(i=>I(new xD(le(i,this.logger))))))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(z4))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),W4=[G4];function q4(){return{clientToken:Zi(gm)}}var uP=new C("ClientAuthReducers"),Y4={provide:uP,useFactory:q4},K4=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[Y4],imports:[Ke,ro,xr.forFeature
11(WL,uP),Lr.forFeature(W4)]})}}return e})(),Z4=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...I4]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[Ke,K4]})}}return e})(),Q4=(()=>{class e{constructor(){this.http=g(we),this.authConfigService=g(ka)}getCsrfToken(){let t=this.authConfigService.getCsrfEndpoint();return this.http.get(t,{withCredentials:!0})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ur="[Auth] Login",io="[Auth] Logout",Ta=class{constructor(){this.type=Ur}},WD=class{constructor(){this.type=io}};var iCe=(()=>{class e{constructor(t,n,i){this.templateRef=t,this.viewContainer=n,this.featureConfig=i,this.hasView=!1}set cxFeature(t){this.featureConfig.isEnabled(t)&&!this.hasView?(this.viewContainer.createEmbeddedView(this.templateRef),this.hasView=!0):!this.featureConfig.isEnabled(t)&&this.hasView&&(this.viewContainer.clear(),this.hasView=!1)}static{this.\u0275fac=function(n){return new(n||e)(se(Kn),se(on),se(ss))}}static{this.\u0275dir=Wt({type:e,selectors:[["","cxFeature",""]],inputs:{cxFeature:"cxFeature"}})}}return e})(),J4={a11yKeyboardAccessibleZoom:!1,a11yPreventCartItemsFormRedundantRecreation:!1,a11yStoreFinderLabel:!1,a11yLinkBtnsToTertiaryBtns:!1,a11yAddPaddingToCarouselPanel:!1,a11yNgSelectUnicodeCarets:!1,readMoreDirective:!0,productReviewCharactersLeft:!0,a11yNgSelectAriaControls:!0,a11yConfiguratorOverviewHeaderVPC:!0,a11yFutureStockAccordionAriaControls:!1,enableReadDomainValuesOnDemand:!0,storeFinderFacadeCleanup:!0,defaultProductPageRouteAllowsNoProductName:!0,consistentSizeProductCards:!0,reserveHorizontalSpaceStarRating:!0,topProgressBarUseTransformAnimation:!0,disableCxPageSlotMarginAnimation:!0,productCarouselScrolling:!0,cdsLoginEventsToken:!0,createMediaPreconnectLink:!0,unifiedDefaultHeaderSlotsAcrossBreakpoints:!0,reserveSpaceForImagesOnPdpAndPlp:!0,lazyLoadImagesByDefault:!0,authorizationCodeFlowByDefault:!0,incrementProcessesCountForMergeCart:!0,dispatchLoginActionOnlyWhenTokenReceived:!0,defaultLayoutConfigWithoutPageFold:!0,navigationMenuCloseOnSameLinkClick:!0,enablePasswordExpiredErrorTranslation:!1,enableQuotePurchaseOrderNumber:!0,enableReturnOrderReturnableQuantityConsigmentFallback:!0,enableMediaPrefix:!1,a11yCustomerTicketingVisualFocusFix:!1,a11yFacetFilterByLabel:!1,removeDuplicatedOrderHistoryHeader:!1,a11yCardNotificationMessage:!1,enableB2BUnitSearch:!1,enableB2BCostCenterSearch:!1,enableB2BCustomerSearch:!1,a11yCarouselPreventNavigationFocus:!1,a11yNgSelectReadonlyInputValue:!1,a11yPasswordVisibilityToggle:!1,showOnlyActiveCurrencies:!1,a11yAddedToCartDialogHeading:!1,a11yListSemanticsForFacets:!1,a11yCartItemListHideEmptyOutlets:!1,a11yReviewsKeyboardControls:!1,a11yCartQuickOrderFormEnableSubmitAndAddValidation:!1,a11yConsentManagementFocusPreservation:!1,a11yVocalizeDropdownItemCount:!1,useEnhancedSecurePasswordValidators:!1,enableRemoveVoucherEndpoint:!1,showRequiredAsterisks:!1,enableExpiredRefreshTokenHandlers:!1},UT=new C("MULTI_LOCATION_INITIALIZED"),ym=new C("ConfigInitializer"),lP=new C("CONFIG_INITIALIZER_FORROOT_GUARD"),Nn=(()=>{class e{constructor(t,n,i){this.config=t,this.initializerGuard=n,this.rootConfig=i,this.logger=g(re),this.ongoingScopes$=new ve(void 0)}get isStable(){return!this.initializerGuard||this.ongoingScopes$.value?.length===0}getStable(...t){return this.isStable?I(this.config):this.ongoingScopes$.pipe(_(n=>!!n&&this.areReady(t,n)),W(1),S(()=>this.config))}finishScopes(t){let n=[...this.ongoingScopes$.value??[]];for(let i of t)n.splice(n.indexOf(i),1);this.ongoingScopes$.next(n)}areReady(t,n){if(!t.length)return!n.length;for(let i of t)for(let o of n)if(this.scopesOverlap(i,o))return!1;return!0}scopesOverlap(t,n){return n.length>t.length&&([t,n]=[n,t]),t.startsWith(n)&&(t[n.length]||".")==="."}initialize(t){return Q(this,null,function*(){if(this.ongoingScopes$.value)return;let n=[],i=[];for(let o of t||[])if(o){if(!o.scopes||!o.scopes.length)throw new Error("CONFIG_INITIALIZER should provide scope!");ge()&&!this.areReady(o.scopes,n)&&this.logger.warn("More than one CONFIG_INITIALIZER is initializing the same config scope."),n.push(...o.scopes),i.push(Q(this,null,function*(){let s=yield o.configFactory();ht(this.rootConfig,s),ht(this.config,s),this.finishScopes(o.scopes)}))}this.ongoingScopes$.next(n),i.length&&(yield Promise.all(i))})}static{this.\u0275fac=function(n){return new(n||e)(f(ut),f(lP,8),f(DT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function X4(e,r){return()=>e.initialize(r)}var e6=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:lP,useValue:!0},{provide:wt,multi:!0,useFactory:X4,deps:[Nn,[new oi,ym]]},{provide:UT,useFactory:()=>{let t=g(Nn);return()=>fr(t.getStable())},multi:!0}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),dP=new C("ConfigurationValidator");function jT(e){return{provide:dP,useValue:e,multi:!0}}function t6(e,r,t){for(let n of r){let i=n(e);i&&t.warn(i)}}function n6(e,r){let t=g(re);return()=>{ge()&&e.getStable().subscribe(n=>t6(n,r||[],t))}}var r6=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:wt,multi:!0,useFactory:n6,deps:[Nn,[new oi,dP]]}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),i6=(()=>{class e{constructor(t,n,i,o){this.rootConfig=t,this.defaultConfig=n,this.unifiedInjector=i,this.ambientDefaultConfig={},this.ambientConfig={},this.config=o,this.unifiedConfig$=new ve(o),this.subscription=this.feedUnifiedConfig().subscribe()}feedUnifiedConfig(){let t=this.unifiedInjector.get(dm,[]),n=this.unifiedInjector.get(La,[]);return yo(t,n).pipe(ld(1),k(([i,o])=>this.processConfig(i,o)))}processConfig(t,n){n?.length&&ht(this.ambientDefaultConfig,...n),t.length&&ht(this.ambientConfig,...t),(t.length||n.length)&&this.emitUnifiedConfig()}emitUnifiedConfig(){let t=ht({},this.defaultConfig,this.ambientDefaultConfig,this.ambientConfig,this.rootConfig);this.unifiedConfig$.next(t),zL(this.config,"disableConfigUpdates")||ht(this.config,t)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe(),this.unifiedConfig$.complete()}static{this.\u0275fac=function(n){return new(n||e)(f(DT),f(hL),f(cl),f(ut))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),fP=(()=>{class e{constructor(t){}static withConfig(t){return{ngModule:e,providers:[Vx(t)]}}static withConfigFactory(t,n){return{ngModule:e,providers:[Cp(t,n)]}}static forRoot(t={}){return{ngModule:e,providers:[Vx(t)]}}static{this.\u0275fac=function(n){return new(n||e)(f(i6))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();var o6=[Cp(()=>{let e=g(jL);return{features:v({},e)}}),no(()=>{let e=g(UL);return{features:v({},e)}})],hP=(()=>{class e{constructor(){this.rendererFactory=g(ii),this.featureConfig=g(ss),this.logger=g(re),this.CSS_FEATURE_FLAG_PREFIX="cxFeat_",this.renderer=this.rendererFactory.createRenderer(null,null),this.usagesCounter=new Map}init(t){this.rootElement=t.location.nativeElement;for(let[n,i]of this.usagesCounter.entries())i>0&&this.addClass(n)}registerUsage(t){let n=this.usagesCounter.get(t)??0;this.isEnabled(t)&&n===0&&this.addClass(t),this.usagesCounter.set(t,n+1)}unregisterUsage(t){let n=this.usagesCounter.get(t)??0;n===0&&ge()&&this.logger.warn(`Feature flag CSS: "${t}" is already not used, so it cannot be unregistered.`),this.isEnabled(t)&&n===1&&this.removeClass(t),this.usagesCounter.set(t,Math.max(n-1,0))}isEnabled(t){return this.featureConfig.isEnabled(t)}addClass(t){let n=this.getCssClass(t);!this.rootElement||!n||this.renderer.addClass(this.rootElement,n)}removeClass(t){let n=this.getCssClass(t);!this.rootElement||!n||this.renderer.removeClass(this.rootElement,n)}getCssClass(t){return this.featureConfig.isEnabled(t)?`${this.CSS_FEATURE_FLAG_PREFIX}${t}`:void 0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),s6=(()=>{class e{static forRoot(t="3.0"){return{ngModule:e,providers:[t4(J4),...o6,xn({features:{level:t||"*"}}),{provide:Ks,multi:!0,useFactory:()=>{let n=g(hP);return i=>n.init(i)}}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();function a6(e){qv(a6);let r=g(hP),t=g(ze);r.registerUsage(e),t.onDestroy(()=>r.unregisterUsage(e))}var pP=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})();function c6(){return{federatedLogin:{enabled:!1,contextParameterName:"ctx",loginHosts:[],originMap:{}}}}var u6=[no(c6)],l6=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[...u6]})}}return e})(),d6=(()=>{class e{constructor(){this.config=g(pP).federatedLogin}serializeContext(t){if(t?.origin){let n=[],i=this.getContextKey(t.origin);if(!i)return"";n.push(i),n.push(t.language??"");let o=n.join(":");return T4(o,{urlSafe:!0})}return""}deserializeContext(t){if(!t)return{};let n=b4(t,{urlSafe:!0}),i=n.lastIndexOf(":"),o=i!==-1?n.substring(0,i):n,s=i!==-1?n.substring(i+1):void 0,a={};return o&&(a.origin=this.getOrigin(o)),s&&(a.language=s),a}getOrigin(t){return this.config?.originMap?.[t]}getContextKey(t){return Object.entries(this.config?.originMap??{}).find(([n,i])=>i===t)?.[0]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),f6=(()=>{class e{constructor(t,n){this.actionsSubject=t,this.eventService=n}register(t){return this.eventService.register(t.event,this.getFromAction(t))}getFromAction(t){return this.actionsSubject.pipe(ne(...[].concat(t.action))).pipe(S(n=>this.createEvent(n,t.event,t.factory)))}createEvent(t,n,i){return i?i(t):eo(n,t.payload??{})}static{this.\u0275fac=function(n){return new(n||e)(f(Rn),f(ds))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),h6="federatedLogin",p6=(()=>{class e{constructor(){this.winRef=g(Nt),this.storage=zp(Ji.LOCAL_STORAGE,this.winRef),this.storageKey=h6}read(){if(this.storage)return Gp(this.storage,this.storageKey)}write(t){this.storage&&kT(this.storageKey,t,this.storage)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vi=(()=>{class e{constructor(t,n){this.store=t,this.config=n}getAll(){return this.store.pipe(A(C4),k(t=>{t||this.store.dispatch(new Up)}),_(Ra))}getActive(){return this.store.pipe(A($D),_(Ra))}setActive(t){this.store.pipe(A($D),W(1)).subscribe(n=>{n!==t&&this.isValid(t)&&this.store.dispatch(new Bp(t))})}isInitialized(){let t=!1;return this.getActive().subscribe(()=>t=!0).unsubscribe(),t}isValid(t){return!!t&&sl(this.config,as).includes(t)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(mi))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),fl=(()=>{class e{constructor(){this.windowRef=g(Nt),this.config=g(pP).federatedLogin,this.contextSerializerService=g(d6),this.contextStorage=g(p6),this.languageService=g(vi),this.enabled=this.config?.enabled??!1,this.isLoginDomain=this.checkLoginDomain()}get origin(){return this.contextValue?.origin}get language(){return this.contextValue?.language}getParameters(){return this.languageService.getActive().pipe(S(t=>({language:t,origin:this.isLoginDomain?this.origin:this.windowRef.location.origin})),S(t=>new Pe({fromObject:{[this.config?.contextParameterName??""]:this.contextSerializerService.serializeContext(t)}
11}).toString()))}detectContext(){if(this.isLoginDomain){let t=this.validateContext(this.contextStorage.read());if(this.config?.contextParameterName){let n=new URL(this.windowRef.location.href).searchParams.get(this.config?.contextParameterName),i=this.contextSerializerService.deserializeContext(n);this.contextValue=v(v({},t),i),this.contextStorage.write(this.contextValue)}}}checkLoginDomain(){return this.config?.loginHosts?.some(t=>t===new URL(this.windowRef.location.origin).host)??!1}validateContext(t){return Object.values(this.config?.originMap??{}).some(i=>i===t?.origin)?t:T(v({},t),{origin:void 0})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qD=e=>e.startsWith(":"),Jx=e=>e.slice(1);var gP=(function(e){return e.ONCE="once",e.ALWAYS="always",e})(gP||{}),Em=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),Sm=(()=>{class e{constructor(t){this.config=t,this.logger=g(re)}getRouteConfig(t){let n=this.config?.routing?.routes,i=n&&n[t];return(!n||i===void 0)&&this.warn(`No path was configured for the named route '${t}'!`),i}warn(...t){ge()&&this.logger.warn(...t)}getLoadStrategy(){return this.config?.routing?.loadStrategy??gP.ALWAYS}getRouteName(t){return this.routeNamesByPath||this.initRouteNamesByPath(),this.routeNamesByPath[t]}initRouteNamesByPath(){this.routeNamesByPath={};for(let[t,n]of Object.entries(this.config?.routing?.routes??{}))n?.paths?.forEach(i=>{ge()&&this.routeNamesByPath[i]&&this.logger.error(`The same path '${i}' is configured for two different route names: '${this.routeNamesByPath[i]}' and '${t}`),this.routeNamesByPath[i]=t})}static{this.\u0275fac=function(n){return new(n||e)(f(Em))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$T=(()=>{class e{constructor(t){this.router=t}getPrimarySegments(t){let n=this.router.parseUrl(t);return this._getPrimarySegmentsFromUrlTree(n.root)}_getPrimarySegmentsFromUrlTree(t){let n=t.segments.map(o=>o.path),i=t.children[Y]?this._getPrimarySegmentsFromUrlTree(t.children[Y]):[];return n.concat(i)}matchPath(t,n){if(t=Array.isArray(t)?t:this.getPrimarySegments(t),n=Array.isArray(n)?n:this.getPrimarySegments(n),t.length!==n.length)return!1;for(let i=0;i<n.length;i++){let o=n[i],s=t[i];if(!qD(o)&&o!==s)return!1}return!0}static{this.\u0275fac=function(n){return new(n||e)(f(Ce))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),oo=(()=>{class e{constructor(t,n){this.routingConfigService=t,this.urlParser=n,this.ROOT_URL=["/"]}get(t){let n=this.routingConfigService.getRouteConfig(t);return n&&Array.isArray(n.paths)?"/"+n.paths[0]:void 0}transform(t){Array.isArray(t)||(t=[t]);let n=[];for(let i of t)if(!this.isRouteCommand(i))n.push(i);else{let o=this.generateUrlPart(i);if(o===null)return this.ROOT_URL;n.push(...o)}return this.shouldOutputAbsolute(t)&&n.unshift("/"),n}isRouteCommand(t){return t&&!!t.cxRoute}shouldOutputAbsolute(t){return this.isRouteCommand(t[0])}generateUrlPart(t){if(this.standarizeRouteCommand(t),!t.cxRoute)return null;let n=this.routingConfigService.getRouteConfig(t.cxRoute);if(!n||!n.paths)return null;let i=this.findPathWithFillableParams(n,t.params);return i?this.provideParamsValues(i,t.params,n.paramsMapping):null}standarizeRouteCommand(t){t.params=t.params||{}}provideParamsValues(t,n,i){return this.urlParser.getPrimarySegments(t).map(o=>{if(qD(o)){let s=Jx(o),a=this.getMappedParamName(s,i);return n?.[a]}return o})}findPathWithFillableParams(t,n){let i=t.paths?.find(o=>this.getParams(o).every(s=>{let a=this.getMappedParamName(s,t.paramsMapping);return n?.[a]!==void 0}));return i??null}getParams(t){return this.urlParser.getPrimarySegments(t).filter(qD).map(Jx)}getMappedParamName(t,n){return n&&n[t]||t}static{this.\u0275fac=function(n){return new(n||e)(f(Sm),f($T))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vD="oAuthRedirectCodeFlow",mP=(()=>{class e{constructor(t,n,i,o){this.oAuthService=t,this.authConfigService=n,this.platformId=i,this.winRef=o,this.featureConfigService=g(ss),this.events$=this.oAuthService.events,this.semanticPathService=g(oo),this.federatedLoginService=g(fl),this.initialize()}initialize(){let t=this.generateCustomerLoginConfig();this.oAuthService.configure(t),this.federatedLoginService.detectContext(),this.federatedLoginService.enabled&&(this.federatedLoginParamsSub?.unsubscribe(),this.federatedLoginParamsSub=this.federatedLoginService.getParameters().subscribe(n=>{let i=this.generateCustomerLoginConfig();i.loginUrl+=(i.loginUrl.includes("?")?"&":"?")+n,this.oAuthService.configure(i)}))}generateCustomerLoginConfig(){let t=this.generateBaseConfig(),n=!this.winRef.isBrowser(),i=this.authConfigService.getOAuthLibConfig()?.redirectUri;return i==null&&(n?i="":this.federatedLoginService.isLoginDomain?i=this.federatedLoginService.origin:i=this.winRef.nativeWindow?.location.origin),t.redirectUri=i,t}generateBaseConfig(){let t=!this.winRef.isBrowser();return v({tokenEndpoint:this.authConfigService.getTokenEndpoint(),loginUrl:this.authConfigService.getLoginUrl(),clientId:this.authConfigService.getClientId(),dummyClientSecret:this.authConfigService.getClientSecret(),revocationEndpoint:this.authConfigService.getRevokeEndpoint(),logoutUrl:this.authConfigService.getLogoutUrl(),userinfoEndpoint:this.authConfigService.getUserinfoEndpoint(),issuer:this.authConfigService.getOAuthLibConfig()?.issuer??this.authConfigService.getBaseUrl(),redirectUri:this.authConfigService.getOAuthLibConfig()?.redirectUri??(t?"":this.winRef.nativeWindow?.location.origin)},this.authConfigService.getOAuthLibConfig())}changeClientWhenInitialize(t){let n=this.generateBaseConfig();n.clientId=t,this.oAuthService.configure(n)}authorizeWithPasswordFlow(t,n){return this.oAuthService.fetchTokenUsingPasswordFlow(t,n)}refreshToken(){this.oAuthService.refreshToken()}revokeAndLogout(){return new Promise(t=>{this.oAuthService.revokeTokenAndLogout(!0).catch(()=>{this.oAuthService.logOut(!0)}).finally(()=>{t()})})}logout(){this.oAuthService.logOut(!0)}getIdToken(){return this.oAuthService.getIdToken()}initLoginFlow(){if((!this.featureConfigService.isEnabled("authorizationCodeFlowByDefault")||this.federatedLoginService.enabled)&&this.winRef.localStorage?.setItem(vD,"true"),this.federatedLoginService.enabled&&this.federatedLoginService.isLoginDomain){let t=this.federatedLoginService.origin+(this.semanticPathService.get("login")??"");this.winRef.location.href=t;return}return this.oAuthService.initLoginFlow()}tryLogin(){return new Promise((t,n)=>{let i,o=this.events$.pipe(_(s=>s.type==="token_received"),W(1)).subscribe(s=>i=s);this.oAuthService.tryLogin({disableOAuth2StateCheck:!0}).then(s=>{i||this.winRef.localStorage?.removeItem(vD),t({result:s,tokenReceived:!!i})}).catch(s=>{this.winRef.localStorage?.removeItem(vD),n(s)}).finally(()=>{o.unsubscribe()})})}refreshAuthConfig(){this.initialize()}changeAuthConfigClientId(t){this.changeClientWhenInitialize(t)}static{this.\u0275fac=function(n){return new(n||e)(f(up),f(ka),f(bt),f(Nt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),hl=(()=>{class e{constructor(t,n){this.store=t,this.config=n,this.featureConfigService=g(ss)}getAll(){return this.store.pipe(A(v4),k(t=>{t||this.store.dispatch(new xp)}),_(Ra),S(t=>this.featureConfigService.isEnabled("showOnlyActiveCurrencies")?t.filter(n=>n.active):t))}getActive(){return this.store.pipe(A(jD),_(Ra))}setActive(t){this.store.pipe(A(jD),W(1)).subscribe(n=>{n!==t&&this.isValid(t)&&this.store.dispatch(new Fp(t))})}isInitialized(){let t=!1;return this.getActive().subscribe(()=>t=!0).unsubscribe(),t}isValid(t){return!!t&&sl(this.config,cs).includes(t)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(mi))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),Wp=class{};function g6(){return{[as]:vi,[cs]:hl,[Xi]:us}}var m6={provide:Wp,useFactory:g6},BT=(()=>{class e{constructor(t,n,i){this.config=t,this.injector=n,this.serviceMap=i,this.logger=g(re)}getContextParameters(){return this.config.context?Object.keys(this.config.context).filter(t=>t!=="urlParameters"):[]}getUrlEncodingParameters(){return this.config.context&&this.config.context.urlParameters||[]}getParamValues(t){return sl(this.config,t)}getParamDefaultValue(t){return pi(this.config,t)}getSiteContextService(t){if(this.serviceMap[t])try{return this.injector.get(this.serviceMap[t])}catch(n){ge()&&this.logger.warn(`Couldn't find site context service for '${t}'.`);return}}getValue(t){let n,i=this.getSiteContextService(t);return i&&i.getActive().subscribe(o=>n=o).unsubscribe(),n!==void 0?n:this.getParamDefaultValue(t)}setValue(t,n){let i=this.getSiteContextService(t);i&&i.setActive(n)}getValues(t){return t.length===0?I([]):Fe(t.map(n=>{let i=this.getSiteContextService(n);return i?i.getActive().pipe(Vt()):I("")})).pipe(_(n=>n.every(i=>!!i)))}
11static{this.\u0275fac=function(n){return new(n||e)(f(mi),f(de),f(Wp))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),qp=(()=>{class e extends tr{get urlEncodingParameters(){return this.siteContextParams.getUrlEncodingParameters()}get hasContextInRoutes(){return this.urlEncodingParameters.length>0}constructor(t){super(),this.siteContextParams=t,this.URL_SPLIT=/(^[^#?]*)(.*)/}parse(t){if(this.hasContextInRoutes){let n=this.urlExtractContextParameters(t),i=super.parse(n.url);return this.urlTreeIncludeContextParameters(i,n.params),i}else return super.parse(t)}urlExtractContextParameters(t){let[,n,i]=t.match(this.URL_SPLIT)??[,"",""],o=n?.split("/")??[];o[0]===""&&o.shift();let s={},a=0,c=0;for(;a<this.urlEncodingParameters.length&&c<o.length;){let u=this.urlEncodingParameters[a];this.siteContextParams.getParamValues(u).includes(o[c])&&(s[u]=o[c],c++),a++}return t=o.slice(c).join("/")+i,{url:t,params:s}}urlTreeIncludeContextParameters(t,n){t.siteContext=n}serialize(t){let n=this.urlTreeExtractContextParameters(t),i=super.serialize(t);return this.urlIncludeContextParameters(i,n)}urlTreeExtractContextParameters(t){return t.siteContext?t.siteContext:{}}urlIncludeContextParameters(t,n){let i=this.urlEncodingParameters.map(o=>n[o]?n[o]:this.siteContextParams.getValue(o)).join("/");return i?"/"+i+t:t}static{this.\u0275fac=function(n){return new(n||e)(f(BT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),vP="[Router] Change Next PageContext",YD=class{constructor(r){this.payload=r,this.type=vP}};var KD="router",v6=Mn(KD),Cm=w(v6,e=>e.router),oCe=w(Cm,e=>e.state&&e.state.semanticRoute||""),y6=w(Cm,e=>e.state&&e.state.context||{id:""}),yP=w(Cm,e=>e.nextState&&e.nextState.context),E6=w(yP,e=>!!e);var EP=(()=>{class e{constructor(t){this.router=t,this.routes$=this.router.events.pipe(_(n=>n instanceof ot),vr(void 0),S(()=>{let n=this.router.routerState.snapshot.root,i=[n];for(;n=n.firstChild;)i.push(n);return i}),Xe({bufferSize:1,refCount:!0}))}static{this.\u0275fac=function(n){return new(n||e)(f(Ce))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),S6=(()=>{class e{constructor(t,n){this.router=t,this.activatedRoutesService=n,this.params$=this.activatedRoutesService.routes$.pipe(S(i=>this.findAllParam(i)),Xe({refCount:!0,bufferSize:1}))}getParams(){return this.params$}findAllParam(t){return Object.assign({},...t.map(n=>n.params))}static{this.\u0275fac=function(n){return new(n||e)(f(Ce),f(EP))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),so=(()=>{class e{constructor(t,n,i,o,s,a){this.store=t,this.winRef=n,this.semanticPathService=i,this.routingParamsService=o,this.router=s,this.location=a}getParams(){return this.routingParamsService.getParams()}getRouterState(){return this.store.pipe(A(Cm))}getPageContext(){return this.store.pipe(A(y6))}getNextPageContext(){return this.store.pipe(A(yP))}changeNextPageContext(t){this.store.dispatch(new YD(t))}isNavigating(){return this.store.pipe(A(E6))}go(t,n){let i=this.semanticPathService.transform(t);return this.navigate(i,n)}getUrl(t,n){let i=this.router.serializeUrl(this.router.createUrlTree(this.semanticPathService.transform(t),n));return i.startsWith("/")||(i=`/${i}`),i}getFullUrl(t,n){return`${this.winRef.location.origin}${this.getUrl(t,n)}`}goByUrl(t,n){return this.router.navigateByUrl(t,n)}back(){if(this.winRef.nativeWindow&&this.winRef.document.referrer.includes(this.winRef.nativeWindow.location.origin)){this.location.back();return}this.go(["/"])}forward(){this.location.forward()}navigate(t,n){return this.router.navigate(t,n)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Nt),f(oo),f(S6),f(Ce),f(sn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),SP=(()=>{class e{constructor(t,n){this.config=t,this.urlParsingService=n}get authFlowPaths(){return this._authFlowPaths||(this._authFlowPaths=Object.values(this.config?.routing?.routes||{}).reduce((t,n)=>n.authFlow===!0&&n.paths?.length?t.concat(n?.paths):t,[])),this._authFlowPaths}isAuthFlow(t){return this.authFlowPaths.some(n=>this.urlParsingService.matchPath(t,n))}static{this.\u0275fac=function(n){return new(n||e)(f(Em),f($T))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),HT=(()=>{class e{constructor(t,n,i,o){this.routing=t,this.router=n,this.authRedirectStorageService=i,this.authFlowRoutesService=o,this.siteContextUrlSeri
11alizer=g(qp),this.init()}init(){this.subscription=this.router.events.subscribe(t=>{t instanceof ot&&this.setRedirectUrl(t.urlAfterRedirects)})}ngOnDestroy(){this.subscription?.unsubscribe()}redirect(){this.authRedirectStorageService.getRedirectUrl().pipe(W(1)).subscribe(t=>{t===void 0?this.routing.go("/"):this.routing.goByUrl(t),this.clearRedirectUrl()})}saveCurrentNavigationUrl(){let t=this.router.getCurrentNavigation();if(!t?.finalUrl)return;let n=this.router.serializeUrl(t.finalUrl);this.setRedirectUrl(n)}setRedirectUrl(t){this.authFlowRoutesService.isAuthFlow(t)||this.authRedirectStorageService.setRedirectUrl(this.getUrlWithoutSiteContextParams(t))}clearRedirectUrl(){this.authRedirectStorageService.setRedirectUrl(void 0)}getUrlWithoutSiteContextParams(t){let{url:n}=this.siteContextUrlSerializer.urlExtractContextParameters(t);return n}static{this.\u0275fac=function(n){return new(n||e)(f(so),f(Ce),f(aP),f(SP))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),C6=(()=>{class e{constructor(t){this.baseSiteService=t,this.MULTISITE_SEPARATOR="|"}getBaseSiteDecorator(){return this.baseSiteService.get().pipe(W(1),S(t=>t?.isolated?this.MULTISITE_SEPARATOR+t?.uid:""))}decorateUserId(t){return this.getBaseSiteDecorator().pipe(S(n=>t+n))}static{this.\u0275fac=function(n){return new(n||e)(f(us))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Pn=(()=>{class e{constructor(t,n,i,o,s,a,c){this.store=t,this.userIdService=n,this.oAuthLibWrapperService=i,this.authStorageService=o,this.authRedirectService=s,this.routingService=a,this.authMultisiteIsolationService=c,this.crossSiteRequestForgeryService=g(Q4),this.refreshInProgress$=new ve(!1),this.logoutInProgress$=new ve(!1),this.isUsingASMClient$=new ve(!1),this.location=g(sn),this.winRef=g(Nt),this.csrfToken$=this.crossSiteRequestForgeryService.getCsrfToken().pipe(Xe({bufferSize:1,refCount:!0})),this.featureConfigService=g(ss),this.featureToggles=g(kL)}checkOAuthParamsInUrl(){return Q(this,null,function*(){try{let t=yield this.oAuthLibWrapperService.tryLogin(),n=this.authStorageService.getItem("access_token"),i=yield vo(this.userIdService.isEmulated()),o=yield vo(this.isUsingASMClient());t.result&&n&&!i&&!o&&(this.userIdService.setUserId(Wu),this.featureConfigService.isEnabled("dispatchLoginActionOnlyWhenTokenReceived")||this.store.dispatch(new Ta),t.tokenReceived&&(this.featureConfigService.isEnabled("dispatchLoginActionOnlyWhenTokenReceived")&&this.store.dispatch(new Ta),this.authRedirectService.redirect()))}catch(t){}})}loginWithRedirect(){return this.oAuthLibWrapperService.initLoginFlow(),!0}loginWithCredentials(t,n){return Q(this,null,function*(){let i=t;this.authMultisiteIsolationService&&(i=yield fr(this.authMultisiteIsolationService.decorateUserId(i)));try{yield this.oAuthLibWrapperService.authorizeWithPasswordFlow(i,n),this.userIdService.setUserId(Wu),this.store.dispatch(new Ta),this.authRedirectService.redirect()}catch(o){}})}getCsrfToken(){return this.csrfToken$}otpLoginWithCredentials(t,n){return Q(this,null,function*(){try{yield this.oAuthLibWrapperService.authorizeWithPasswordFlow(t,n),this.userIdService.setUserId(Wu),this.store.dispatch(new Ta),this.authRedirectService.redirect()}catch(i){}})}coreLogout(){return this.setLogoutProgress(!0),this.userIdService.clearUserId(),new Promise(t=>{this.oAuthLibWrapperService.revokeAndLogout().finally(()=>{this.store.dispatch(new WD),this.setLogoutProgress(!1),t()})})}isUserLoggedIn(){return this.authStorageService.getToken().pipe(S(t=>!!t?.access_token),Vt())}logout(){this.routingService.go({cxRoute:"logout"})}setRefreshProgress(t){this.refreshInProgress$.next(t)}setLogoutProgress(t){this.logoutInProgress$.next(t)}isAsmEnabled(){return this.isLaunched()&&!this.isUsedBefore()&&this.winRef.localStorage&&this.winRef.localStorage.setItem("asm_enabled","true"),this.isLaunched()||this.isUsedBefore()||this.isEmulateInURL()}isLaunched(){let t=this.location.path().split("?")[1];return!!t&&t.split("&").includes("asm=true")}isEmulateInURL(){return this.location.path().indexOf("assisted-service/emulate?")>0}isUsedBefore(){return this.winRef.localStorage?this.winRef.localStorage.getItem("asm_enabled")==="true":!1}refreshAuthConfig(){this.featureToggles.authorizationCodeFlowByDefault&&this.isAsmEnabled()?(this.oAuthLibWrapperService.changeAuthConfigClientId("asm_client"),this.updateIsUsingASMClient(!0)):(this.oAuthLibWrapperService.refreshAuthConfig(),this.updateIsUsingASMClient(!1))}isUsingASMClient(){return this.isUsingASMClient$}updateIsUsingASMClient(t){this.isUsingASMClient$.next(t)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ln),f(mP),f(dl),f(HT),f(so),f(C6))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),pl=(()=>{class e{constructor(t,n){this.store=t,this.authService=n}loadTemplates(){this.store.dispatch(new Dp)}getTemplates(t=!1){return Xa(()=>t,this.store.pipe(A(ND),et(this.getLoadTemplatesLoading()),_(([n,i])=>!i),k(([n,i])=>{n||this.loadTemplates()}),_(([n,i])=>!!n),S(([n,i])=>n)),this.store.pipe(A(ND)))}getTemplate(t){return this.store.pipe(A(Qq(t)))}getLoadTemplatesLoading(){return this.store.pipe(A(Yq))}getLoadTemplatesSuccess(){return this.store.pipe(A(Kq))}getLoadTemplatesError(){return this.store.pipe(A(Zq))}
11resetLoadTemplatesState(){this.store.dispatch(new bD)}getConsents(){return this.store.pipe(A(FL))}setConsents(t){return this.store.dispatch(new wD(t))}getConsent(t){return this.authService.isUserLoggedIn().pipe(_(n=>!n),k(()=>this.getTemplates(!0)),O(()=>this.store.pipe(A(e4(t)))))}giveConsent(t){this.store.dispatch(new _D(t))}giveAllConsents(){return this.getTemplates(!0).pipe(k(t=>t.forEach(n=>{n.id&&this.giveConsent(n.id)})))}isConsentGiven(t){return(t&&t.consentState===Aa.GIVEN)??!1}withdrawConsent(t){this.store.dispatch(new AD(t))}withdrawAllConsents(){return this.getTemplates(!0).pipe(k(t=>t.forEach(n=>{n.id&&this.withdrawConsent(n.id)})))}isConsentWithdrawn(t){return t&&t.consentState===Aa.WITHDRAWN}toggleBannerDismissed(t){this.store.dispatch(new RD(t)),t&&this.toggleTemplatesUpdated(!1)}isBannerDismissed(){return this.store.pipe(A(Xq))}getTemplatesUpdated(){return this.getTemplates(!0).pipe(O(()=>this.store.pipe(A(Jq))))}toggleTemplatesUpdated(t){this.store.dispatch(new bp(t))}isBannerVisible(){return Fe([this.isBannerDismissed(),this.getTemplatesUpdated()]).pipe(k(()=>this.checkConsentVersions()),S(([t,n])=>!t||n))}checkConsentVersions(){this.store.dispatch(new MD)}detectUpdatedTemplates(t,n){if(n.length!==t.length)return!0;for(let i=0;i<n.length;i++){let o=n[i],s=t[i];if(o.version!==s.version)return!0}return!1}serializeAndEncode(t){if(!t)return"";let n=JSON.stringify(t);return encodeURIComponent(n)}decodeAndDeserialize(t){let n=decodeURIComponent(t);return n.length>0?JSON.parse(n):[]}consentsUpdated(t,n){let i=this.serializeAndEncode(t),o=this.serializeAndEncode(n);return i!==o}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Pn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function D6(e){if(typeof e?.authentication?.baseUrl>"u"&&typeof e?.backend?.occ?.baseUrl>"u"&&e?.authentication?.OAuthLibConfig?.requireHttps!==!1)return"Authentication might not work correctly without setting either authentication.baseUrl or backend.occ.baseUrl configuration option! Workaround: To support relative urls in angular-oauth2-oidc library you can try setting authentication.OAuthLibConfig.requireHttps to false."}var yD={authentication:{client_id:"mobile_android_public",tokenEndpoint:"/oauth/token",revokeEndpoint:"/oauth/revoke",loginUrl:"/oauth/authorize",OAuthLibConfig:{scope:"",customTokenParameters:["token_type"],strictDiscoveryDocumentValidation:!1,skipIssuerCheck:!0,disablePKCE:!1,oidc:!1,clearHashAfterLogin:!1,responseType:"code"},customLoginPage:{csrfEndpoint:"/csrf",loginFormEndpoint:"/login"}}};function I6(){let{authorizationCodeFlowByDefault:e}=g(kL);if(e)return yD;{let r={authentication:T(v({},yD.authentication),{client_id:"mobile_android",client_secret:"secret",sendAuthHeaderOnRevoke:!0,useClientTokens:!0,OAuthLibConfig:T(v({},yD.authentication?.OAuthLibConfig),{disablePKCE:!0})})};return delete r.authentication.OAuthLibConfig.responseType,delete r.authentication.customLoginPage,r}}var Xx=(()=>{class e extends to{static{this.type="LogoutEvent"}}return e})(),T6=(()=>{class e extends to{static{this.type="LoginEvent"}}return e})(),b6=(()=>{class e{constructor(t,n,i){this.stateEventService=t,this.eventService=n,this.authService=i,this.register()}register(){this.registerLoginEvent(),this.registerLogoutEvent()}registerLoginEvent(){this.stateEventService.register({action:Ur,event:T6})}registerLogoutEvent(){this.eventService.register(Xx,this.buildLogoutEvent())}buildLogoutEvent(){return this.authService.isUserLoggedIn().pipe(ic(),_(([t,n])=>t&&!n),S(()=>eo(Xx,{})))}static{this.\u0275fac=function(n){return new(n||e)(f(f6),f(ds),f(Pn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),w6=(()=>{class e{constructor(t){}static{this.\u0275fac=function(n){return new(n||e)(f(b6))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),Yp="[Global-message] Add a Message",CP="[Global-message] Remove a Message",DP="[Global-message] Remove messages by type",ZD=class{constructor(r){this.payload=r,this.type=Yp}},Qu=class{constructor(r){this.payload=r,this.type=CP}},QD=class{constructor(r){this.payload=r,this.type=DP}};var IP="global-message",_6=Mn(IP),TP=w(_6,e=>e.entities),bP=e=>w(TP,r=>r&&r[e]),A6=e=>w(bP(e),r=>r&&r.length);var Ua=(()=>{class e{constructor(t){this.store=t}get(){return this.store.pipe(A(TP),_(dn))}add(t,n,i){this.store.dispatch(new ZD({text:typeof t=="string"?{raw:t}:t,type:n,timeout:i}))}remove(t,n){this.store.dispatch(n!==void 0?new Qu({type:t,index:n}):new QD(t))}static{this.\u0275fac=function(n){return new(n||e)(f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),je=(function(e){return e.MSG_TYPE_CONFIRMATION="[GlobalMessage] Confirmation",e.MSG_TYPE_ERROR="[GlobalMessage] Error",e.MSG_TYPE_INFO="[GlobalMessage] Information",e.MSG_TYPE_WARNING="[GlobalMessage] Warning",e.MSG_TYPE_ASSISTIVE="[GlobalMessage] Assistive",e})(je||{}),R6=new C("EXPIRED_REFRESH_TOKEN_HANDLERS");var M6=(()=>{class e{constructor(t,n,i,o,s,a,c){this.authService=t,this.authStorageService=n,this.oAuthLibWrapperService=i,this.routingService=o,this.occEndpoints=s,this.globalMessageService=a,this.authRedirectService=c,this.featureConfig=g(ss),this.refreshTokenTrigger$=new X,this.token$=this.authStorageService.getToken().pipe(S(u=>u?.access_token?u:void 0)),this.stopProgress$=this.token$.pipe(ic(),k(([u,l])=>{u?.access_token!==l?.access_token&&(this.authService.setLogoutProgress(!1),this.authService.setRefreshProgress(!1))})),this.refreshToken$=this.refreshTokenTrigger$.pipe(et(this.authService.refreshInProgress$,this.authService.logoutInProgress$),_(([,u,l])=>!u&&!l),k(([u])=>{u?.refresh_token?(this.oAuthLibWrapperService.refreshToken(),this.authService.setRefreshProgress(!0)):this.handleExpiredRefreshToken()})),this.tokenToRetryRequest$=Ai(()=>this.refreshToken$.subscribe(),()=>this.getStableToken()).pipe(Xe({refCount:!0,bufferSize:1})),this.subscriptions=new ce,this.handlers=g(R6,{optional:!0})??[],this.subscriptions.add(this.stopProgress$.subscribe())}shouldCatchError(t){return this.isOccUrl(t.url)}shouldAddAuthorizationHeader(t){let n=!!this.getAuthorizationHeader(t),i=this.isOccUrl(t.url);return!n&&i}
11alterRequest(t,n){let i=!!this.getAuthorizationHeader(t),o=this.isBaseSitesRequest(t),s=this.isOccUrl(t.url);return!i&&s&&!o?t.clone({setHeaders:v({},this.createAuthorizationHeader(n))}):t}isOccUrl(t){return t.includes(this.occEndpoints.getBaseUrl())}isBaseSitesRequest(t){return t.url.includes(this.occEndpoints.getRawEndpointValue("baseSites"))}getAuthorizationHeader(t){return t.headers.get("Authorization")}createAuthorizationHeader(t){if(t?.access_token)return{Authorization:`${t.token_type||"Bearer"} ${t.access_token}`};let n;return this.authStorageService.getToken().subscribe(i=>n=i).unsubscribe(),n?.access_token?{Authorization:`${n.token_type||"Bearer"} ${n.access_token}`}:{}}handleExpiredAccessToken(t,n,i){return this.getValidToken(i).pipe(O(o=>o?n.handle(this.createNewRequestWithNewToken(t,o)):te))}handleExpiredRefreshToken(){if(!this.featureConfig.isEnabled("enableExpiredRefreshTokenHandlers")){this.handleExpiredRefreshTokenFallback();return}ue(this.authHttpHeaderHandlers).pipe(Je(t=>this.resolveHandlerRefreshTokenHandling(t)),_(t=>t),W(1),nc(!1)).subscribe(t=>{t||this.handleExpiredRefreshTokenFallback()})}handleExpiredRefreshTokenFallback(){this.authRedirectService.saveCurrentNavigationUrl(),this.authService.coreLogout().finally(()=>{this.routingService.go({cxRoute:"login"}),this.globalMessageService.add({key:"httpHandlers.sessionExpired"},je.MSG_TYPE_ERROR)})}resolveHandlerRefreshTokenHandling(t){let n=t.handleExpiredRefreshTokenIfApplicable?.();return Wr(n)?n:I(!1)}get authHttpHeaderHandlers(){return this.handlers??[]}getStableToken(){return Fe([this.token$,this.authService.refreshInProgress$,this.authService.logoutInProgress$]).pipe(pn(Ti),_(([t,n,i])=>!n&&!i),O(()=>this.token$))}getValidToken(t){return We(()=>{let n=!1;return this.tokenToRetryRequest$.pipe(k(i=>{i?.access_token===t?.access_token&&!n&&this.refreshTokenTrigger$.next(i),n=!0}),dd(i=>i?.access_token===t?.access_token),W(1))})}createNewRequestWithNewToken(t,n){return t=t.clone({setHeaders:{Authorization:`${n.token_type||"Bearer"} ${n.access_token}`}}),t}ngOnDestroy(){this.subscriptions.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(Pn),f(dl),f(mP),f(so),f(He),f(Ua),f(HT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),N6=(()=>{class e{constructor(t,n){this.authHttpHeaderService=t,this.authConfigService=n}intercept(t,n){let i=this.authHttpHeaderService.shouldCatchError(t);return(this.authHttpHeaderService.shouldAddAuthorizationHeader(t)?this.authHttpHeaderService.getStableToken().pipe(W(1)):I(void 0)).pipe(S(c=>({token:c,request:this.authHttpHeaderService.alterRequest(t,c)}))).pipe(O(({request:c,token:u})=>n.handle(c).pipe(j(l=>{switch(l.status){case 401:if(this.isExpiredToken(l)&&i)return this.authHttpHeaderService.handleExpiredAccessToken(c,n,u);if(this.errorIsInvalidToken(l))return this.authHttpHeaderService.handleExpiredRefreshToken(),te;break;case 400:this.errorIsInvalidGrant(l)&&c.body.get("grant_type")==="refresh_token"&&this.authHttpHeaderService.handleExpiredRefreshToken();break}throw l}))))}errorIsInvalidToken(t){return(t.url?.includes(this.authConfigService.getTokenEndpoint())&&t.error.error==="invalid_token")??!1}errorIsInvalidGrant(t){return(t.url?.includes(this.authConfigService.getTokenEndpoint())&&t.error.error==="invalid_grant")??!1}isExpiredToken(t){return["InvalidBearerTokenError","InvalidTokenError"].includes(t.error?.errors?.[0]?.type)}static{this.\u0275fac=function(n){return new(n||e)(f(M6),f(ka))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),O6=(()=>{class e{constructor(t,n){this.authStorageService=t,this.authConfigService=n}intercept(t,n){if(!this.authConfigService.sendAuthHeaderOnRevoke())return n.handle(t);let o=this.isTokenRevocationRequest(t);return this.authStorageService.getToken().pipe(W(1),O(s=>(o&&(t=t.clone({setHeaders:{Authorization:`${s.token_type||"Bearer"} ${s.access_token}`}})),n.handle(t))))}isTokenRevocationRequest(t){return t.url===this.authConfigService.getRevokeEndpoint()}static{this.\u0275fac=function(n){return new(n||e)(f(dl),f(ka))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),x6=[{provide:Qt,useExisting:N6,multi:!0},{provide:Qt,useExisting:O6,multi:!0}];function L6(e,r,t){return()=>Vi(t)?fr(r.getStable().pipe(O(()=>(e.refreshAuthConfig(),e.checkOAuthParamsInUrl())))):Promise.resolve()}function P6(e){return()=>e.initSync()}var F6=()=>{let e=g(Pn),r=g(Nn),t=g(bt),n=g(cP);return P6(n)(),L6(e,r,t)},k6=(()=>{class e{static forRoot(){return{ngModule:e,providers:[no(I6),jT(D6),...x6,{provide:Ko,useExisting:dl},{provide:UT,useFactory:F6,multi:!0}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[Ke,ux.forRoot(),w6]})}}return e})(),sCe=(()=>{class e{static forRoot(){return{ngModule:e}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[Ke,k6.forRoot(),Z4.forRoot()]})}}return e})(),U6=(()=>{class e{get(){return this.csrf}set(t){this.csrf=t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),j6=(()=>{class e{constructor(t,n,i,o){this.authService=t,this.authRedirectService=n,this.router=i,this.semanticPathService=o}canActivate(){return this.authService.isUserLoggedIn().pipe(S(t=>t||(this.authRedirectService.saveCurrentNavigationUrl(),this.router.parseUrl(this.semanticPathService.get("login")??""))))}static{this.\u0275fac=function(n){return new(n||e)(f(Pn),f(HT),f(Ce),f(oo))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$6=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),Hr=(function(e){return e[e.UNKNOWN=-1]="UNKNOWN",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.CONFLICT=409]="CONFLICT",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e})(Hr||{}),ft=(()=>{class e{constructor(t,n){this.globalMessageService=t,this.platformId=n}hasMatch(t){return t.status===this.responseStatus}getErrorTranslationKey(t){let n="httpHandlers.badRequest";return t?`${n}.${t.toLowerCase().replace(/ /g,"_")}`:`${n}PleaseLoginAgain`}isSsr(){return this.platformId?!Vi(this.platformId):!1}static{this.\u0275fac=function(n){return new(n||e)(f(Ua),f(bt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),B6=(()=>{class e extends ft{constructor(){super(...arguments),this.responseStatus=Hr.BAD_GATEWAY}handleError(){this.globalMessageService.add({key:"httpHandlers.badGateway"},je.MSG_TYPE_ERROR)}getPriority(){return Br.LOW}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),H6="/authorizationserver/oauth/token",V6=(()=>{class e extends ft{constructor(){super(...arguments),this.responseStatus=Hr.BAD_REQUEST,this.featureConfigService=g(ss)}handleError(t,n){this.handleBadPassword(t,n),this.handleBadLoginResponse(t,n),this.handleValidationError(t,n),this.handleGuestDuplicateEmail(t,n),this.handleUnknownIdentifierError(t,n),this.handleValidationErrorIleggalArgument(t,n)}handleBadPassword(t,n){if(n.url?.includes(H6)&&n.error?.error==="invalid_grant"&&t.body?.get("grant_type")==="password"){let i=this.getErrorTranslationKey(n.error?.error_description),o="httpHandlers.badRequest",s={errorMessage:n.error.error_description||n.message||""};this.featureConfigService.isEnabled("enablePasswordExpiredErrorTranslation")&&i.startsWith(`${o}.password_expired_for_the_user`)&&(i=`${o}.password_expired`),this.globalMessageService.add({key:i,params:s},je.MSG_TYPE_ERROR),this.globalMessageService.remove(je.MSG_TYPE_CONFIRMATION)}}handleBadLoginResponse(t,n){this.getErrors(n).filter(i=>i.type==="PasswordMismatchError").forEach(()=>{let o=new URL(t.url).pathname.endsWith("/password")?"httpHandlers.badRequestOldPasswordIncorrect":"httpHandlers.validationErrors.invalid.password";this.globalMessageService.add({key:o},je.MSG_TYPE_ERROR)})}handleValidationError(t,n){this.getErrors(n).filter(i=>i.type==="ValidationError").forEach(i=>
11{this.globalMessageService.add({key:`httpHandlers.validationErrors.${i.reason}.${i.subject}`},je.MSG_TYPE_ERROR)})}handleValidationErrorIleggalArgument(t,n){this.getErrors(n).filter(i=>i.type==="IllegalArgumentError").forEach(i=>{this.globalMessageService.add(i.message,je.MSG_TYPE_ERROR)})}handleGuestDuplicateEmail(t,n){this.getErrors(n).filter(i=>i.type==="DuplicateUidError").forEach(i=>{this.globalMessageService.add({key:"httpHandlers.badRequestGuestDuplicateEmail",params:{errorMessage:i.message||""}},je.MSG_TYPE_ERROR)})}handleUnknownIdentifierError(t,n){this.getErrors(n).filter(i=>i.type==="UnknownIdentifierError").forEach(i=>{this.globalMessageService.add(i.message?i.message:{key:"httpHandlers.unknownIdentifier"},je.MSG_TYPE_ERROR)})}getErrors(t){return(t.error?.errors||[]).filter(n=>n.type!=="JaloObjectNoLongerValidError")}getPriority(){return Br.LOW}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),z6=(()=>{class e extends ft{constructor(){super(...arguments),this.responseStatus=Hr.CONFLICT}handleError(){this.globalMessageService.add({key:"httpHandlers.conflict"},je.MSG_TYPE_ERROR)}getPriority(){return Br.LOW}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),G6=(()=>{class e extends ft{handleError(t){t.url.endsWith(this.occEndpoints.buildUrl("user",{urlParams:{userId:"current"}}))&&this.authService.logout(),this.globalMessageService.add({key:"httpHandlers.forbidden"},je.MSG_TYPE_ERROR)}getPriority(){return Br.LOW}constructor(t,n,i){super(t),this.globalMessageService=t,this.authService=n,this.occEndpoints=i,this.responseStatus=Hr.FORBIDDEN}static{this.\u0275fac=function(n){return new(n||e)(f(Ua),f(Pn),f(He))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),W6=(()=>{class e extends ft{constructor(){super(...arguments),this.responseStatus=Hr.GATEWAY_TIMEOUT}handleError(){this.globalMessageService.add({key:"httpHandlers.gatewayTimeout"},je.MSG_TYPE_ERROR)}getPriority(){return Br.LOW}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),q6=(()=>{class e extends ft{constructor(){super(...arguments),this.responseStatus=Hr.INTERNAL_SERVER_ERROR}handleError(){this.globalMessageService.add({key:"httpHandlers.internalServerError"},je.MSG_TYPE_ERROR)}getPriority(){return Br.LOW}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Y6=(()=>{class e extends ft{constructor(){super(...arguments),this.responseStatus=Hr.NOT_FOUND}handleError(){}getPriority(){return Br.LOW}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),K6=(()=>{class e extends ft{constructor(){super(...arguments),this.logger=g(re),this.responseStatus=Hr.UNKNOWN}hasMatch(t){return!0}handleError(t,n){ge()&&this.logger.warn(`An unknown http error occurred 12`,n.message)}getPriority(){return Br.FALLBACK}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Z6=(()=>{class e{constructor(t){this.unifiedInjector=t,this.handlers$=this.unifiedInjector.getMulti(ft).pipe(Xe(1))}intercept(t,n){return n.handle(t).pipe(k({error:i=>{i instanceof Ze&&this.handleErrorResponse(t,i)}}))}handleErrorResponse(t,n){let i=this.getResponseHandler(n);i&&i.handleError(t,n)}getResponseHandler(t){return PT(Vp(this.handlers$)??[],[t])}static{this.\u0275fac=function(n){return new(n||e)(f(cl))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Q6=[{provide:ft,useExisting:K6,multi:!0},{provide:ft,useExisting:B6,multi:!0},{provide:ft,useExisting:V6,multi:!0},{provide:ft,useExisting:z6,multi:!0},{provide:ft,useExisting:G6,multi:!0},{provide:ft,useExisting:W6,multi:!0},{provide:ft,useExisting:q6,multi:!0},{provide:ft,useExisting:Y6,multi:!0}],J6=[{provide:Qt,useExisting:Z6,multi:!0}],X6={entities:{}};function e5(e=X6,r){switch(r.type){case Yp:{let t=r.payload;if(e.entities[t.type]===void 0)return T(v({},e),{entities:T(v({},e.entities),{[t.type]:[t.text]})});{let n=e.entities[t.type];return T(v({},e),{entities:T(v({},e.entities),{[t.type]:[...n,t.text]})})}}case CP:{let t=r.payload.type,n=r.payload.index;if(Object.keys(e.entities).length===0||!e.entities[t])return e;let i=[...e.entities[t]];return i.splice(n,1),T(v({},e),{entities:T(v({},e.entities),{[t]:i})})}case DP:{let t=T(v({},e.entities),{[r.payload]:[]});return T(v({},e),{entities:t})}}return e}function t5(){return e5}var wP=new C("GlobalMessageReducers"),n5={provide:wP,useFactory:t5},r5=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[n5],imports:[ro,xr.forFeature
12(IP,wP)]})}}return e})(),i5=(()=>{class e{constructor(t,n,i,o){this.actions$=t,this.store=n,this.config=i,this.platformId=o,this.removeDuplicated$=pe(()=>this.actions$.pipe(ne(Yp),S(s=>s.payload),O(s=>I(s.text).pipe(et(this.store.pipe(A(bP(s.type)))),_(([a,c])=>Zu.countOfDeepEqualObjects(a,c)>1),S(([a,c])=>{let u=Zu.indexOfFirstOccurrence(a,c);if(u!==void 0)return new Qu({type:s.type,index:u})}),_(dn))))),this.hideAfterDelay$=pe(()=>Vi(this.platformId)?this.actions$.pipe(ne(Yp),S(s=>s.payload),Je(s=>{let a=this.config.globalMessages?.[s.type];return this.store.pipe(A(A6(s.type)),W(1),_(c=>(a&&a.timeout!==void 0||s.timeout!==void 0)&&c>0),pr(s.timeout||a?.timeout),O(()=>I(new Qu({type:s.type,index:0}))))})):()=>te)}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(ee),f($6),f(bt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),o5={globalMessages:{[je.MSG_TYPE_CONFIRMATION]:{timeout:3e3},[je.MSG_TYPE_INFO]:{timeout:3e3},[je.MSG_TYPE_ERROR]:{timeout:7e3},[je.MSG_TYPE_WARNING]:{timeout:7e3},[je.MSG_TYPE_ASSISTIVE]:{timeout:7e3}}},s5=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...Q6,...J6]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[xn(o5)],imports:[r5,Lr.forFeature([i5])]})}}return e})(),eL="login_redirect_count",a5=15e3,c5=1,aCe=(()=>{class e{constructor(){this.authService=g(Pn),this.authConfigService=g(ka),this.router=g(Ce),this.semanticPathService=g(oo),this.windowRef=g(Nt),this.storage=zp(Ji.LOCAL_STORAGE,this.windowRef),this.globalMessageService=g(Ua),this.csrfStateService=g(U6),this.federatedLoginService=g(fl)}canActivate(){return!this.authConfigService.customLoginEnabled()||!this.windowRef.isBrowser()?I(!0):this.authService.getCsrfToken().pipe(k(t=>{this.csrfStateService.set(t),this.clearRedirectCount()}),S(()=>!0),j(()=>{let t=this.getRedirectCount();if(t>=c5)return this.clearRedirectCount(),this.showErrorMessage({key:"authMessages.unrecoverableError"}),this.createRoute("home");if(this.setRedirectCount(t+1),this.federatedLoginService.isLoginDomain&&this.federatedLoginService.origin){let n=this.federatedLoginService.origin+(this.semanticPathService.get("login")??"");return this.windowRef.location.href=n,I(!1)}return this.createRoute("login")}))}getRedirectCount(){let t=Gp(this.storage,eL);return t&&Date.now()-t.t<a5?t.c:0}setRedirectCount(t){kT(eL,{t:Date.now(),c:t},this.storage)}clearRedirectCount(){this.setRedirectCount(0)}createRoute(t){return I(this.router.parseUrl(this.semanticPathService.get(t)??""))}showErrorMessage(t){this.globalMessageService.add(t,je.MSG_TYPE_ERROR)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),cCe=(()=>{class e{constructor(){this.federatedLoginService=g(fl),this.authFlowRoutesService=g(SP),this.semanticPathService=g(oo),this.router=g(Ce),this.windowRef=g(Nt)}canActivate(t,n){if(this.federatedLoginService.enabled&&this.federatedLoginService.isLoginDomain){if(!this.federatedLoginService.origin)return this.handleInvalidSiteContext(t,n);if(!this.isValidRoute(t,n))return this.handleInvalidRoute(t,n)}return I(!0)}isValidRoute(t,n){return this.authFlowRoutesService.isAuthFlow(n.url)}handleInvalidRoute(t,n){return this.windowRef.location.href=new URL(n.url,this.federatedLoginService.origin).href,I(!1)}handleInvalidSiteContext(t,n){let i=this.semanticPathService.get("notFound")??"";return!i||n.url.endsWith(i)?I(!0):I(this.router.parseUrl(i))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),uCe=(()=>{class e{constructor(t,n,i){this.authService=t,this.semanticPathService=n,this.router=i}canActivate(){return this.authService.isUserLoggedIn().pipe(S(t=>t?this.router.parseUrl(this.semanticPathService.get("home")??""):!t))}static{this.\u0275fac=function(n){return new(n||e)(f(Pn),f(oo),f(Ce))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_P=(()=>{class e extends $r{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),u5=(()=>{class e{constructor(t,n,i,o){this.anonymousConsentsService=t,this.authService=n,this.occEndpoints=i,this.config=o}intercept(t,n){return Fe([this.anonymousConsentsService.getConsents(),this.authService.isUserLoggedIn()]).pipe(W(1),O(([i,o])=>{if(!this.isOccUrl(t.url))return n.handle(t);let s=this.handleRequest(i,t);return n.handle(s).pipe(k(a=>{a instanceof li&&(a.url??"").startsWith(this.occEndpoints.buildUrl("anonymousConsentTemplates"))&&this.handleResponse(o,a.headers.get(ID),i)}))}))}handleResponse(t,n,i){if(!t&&n){let o=[];o=this.anonymousConsentsService.decodeAndDeserialize(n),o=this.giveRequiredConsents(o),this.anonymousConsentsService.consentsUpdated(o,i)&&this.anonymousConsentsService.setConsents(o)}}handleRequest(t,n){if(!t)return n;let i=this.anonymousConsentsService.serializeAndEncode(t);return n.clone({setHeaders:{[ID]:i}})}isOccUrl(t){return t.includes(this.occEndpoints.getBaseUrl())}giveRequiredConsents(t){let n=[...t];if(this.config.anonymousConsents&&this.config.anonymousConsents.requiredConsents)for(let i of n)i.templateCode&&this.config.anonymousConsents.requiredConsents.includes(i.templateCode)&&(i.consentState=Aa.GIVEN);return n}static{this.\u0275fac=function(n){return new(n||e)(f(pl),f(Pn),f(He),f(_P))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),l5=[{provide:Qt,useExisting:u5,multi:!0}],AP="[User] Load Billing Countries",RP="[User] Load Billing Countries Fail",MP="[User] Load Billing Countries Success",Kp=class{constructor(){this.type=AP}},JD=class{constructor(r){this.payload=r,this.type=RP,this.error=r}},XD=class{constructor(r){this.payload=r,this.type=MP}},ie="process";function d5(){return Mn(ie)}function VT(e){return w(d5(),r=>Pa(r,e))}function Xo(e){return w(VT(e),r=>fn(r))}function Qi(e){return w(VT(e),r=>gi(r))}function Jo(e){return w(VT(e),r=>hm(r))}var f5="user",h5="registerUser",es="giveConsent",ts="withdrawConsent",gl="updateNotificationPreferences",Ma="addProductInterests",Na="removeProductInterests",Dm="[User] User Consents",yi="[User] User Payment Methods",Fn="[User] User Addresses",zT="[User] User Cost Centers",GT="[User] Regions",Im="[User] Customer Coupons",ns="subscribeCustomerCoupon",rs="unsubscribeCustomerCoupon",wa="claimCustomerCoupon",Oa="disclaimCustomerCoupon",Tm="[User] Notification Preferences",bm="[User] Product Interests",NP="[User] Load Customer Coupons",OP="[User] Load Customer Coupons Fail",xP="[User] Load Customer Coupons Success",
12LP="[User] Reset Load Customer Coupons",PP="[User] Subscribe Customer Notification Coupon",FP="[User] Subscribe Customer Coupon Notification Fail",kP="[User] Subscribe Customer Coupon Notification Success",UP="[User] Reset Subscribe Customer Coupon Process",jP="[User] Unsubscribe Customer Notification Coupon",$P="[User] Unsubscribe Customer Coupon Notification Fail",BP="[User] Unsubscribe Customer Coupon Notification Success",HP="[User] Reset Unsubscribe Customer Coupon Process",VP="[User] Claim Customer",zP="[User] Claim Customer Fail",GP="[User] Claim Customer Success",WP="[User] Disclaim Customer",qP="[User] Disclaim Customer Fail",YP="[User] Disclaim Customer Success",KP="[User] Reset Disclaim Customer",Zp=class extends pt{constructor(r){super(Im),this.payload=r,this.type=NP}},eI=class extends gt{constructor(r){super(Im,r),this.payload=r,this.type=OP}},tI=class extends mt{constructor(r){super(Im),this.payload=r,this.type=xP}},nI=class extends is{constructor(){super(Im),this.type=LP}},Qp=class extends Xt{constructor(r){super(ie,ns),this.payload=r,this.type=PP}},rI=class extends Bt{constructor(r){super(ie,ns,r),this.payload=r,this.type=FP}},iI=class extends vt{constructor(r){super(ie,ns,r),this.payload=r,this.type=kP}},oI=class extends ir{constructor(){super(ie,ns),this.type=UP}},Jp=class extends Xt{constructor(r){super(ie,rs),this.payload=r,this.type=jP}},sI=class extends Bt{constructor(r){super(ie,rs,r),this.payload=r,this.type=$P}},aI=class extends vt{constructor(r){super(ie,rs,r),this.payload=r,this.type=BP}},cI=class extends ir{constructor(){super(ie,rs),this.type=HP}},Xp=class extends Xt{constructor(r){super(ie,wa),this.payload=r,this.type=VP}},eg=class extends Xt{constructor(r){super(ie,Oa),this.payload=r,this.type=WP}},tg=class extends ir{constructor(){super(ie,Oa),this.type=KP}},uI=class extends Bt{constructor(r){super(ie,Oa,r),this.payload=r,this.type=qP}},lI=class extends vt{constructor(r){super(ie,Oa,r),this.payload=r,this.type=YP}},dI=class extends Bt{constructor(r){super(ie,wa,r),this.payload=r,this.type=zP}},fI=class extends vt{constructor(r){super(ie,wa,r),this.payload=r,this.type=GP}},ZP="[User] Load Delivery Countries",QP="[User] Load Delivery Countries Fail",JP="[User] Load Delivery Countries Success",ng=class{constructor(){this.type=ZP}},hI=class{constructor(r){this.payload=r,this.type=QP,this.error=r}},pI=class{constructor(r){this.payload=r,this.type=JP}},XP="[User] Load Notification Preferences",eF="[User] Load Notification Preferences Fail",tF="[User] Load Notification Preferences Success",nF="[User] Update Notification Preferences",rF="[User] Update Notification Preferences Fail",iF="[User] Update Notification Preferences Success",oF="[User] Reset Notification Preferences",sF="[User] Clear Notification Preferences",rg=class extends pt{constructor(r){super(Tm),this.payload=r,this.type=XP}},gI=class extends gt{constructor(r){super(Tm,r),this.payload=r,this.type=eF}},mI=class extends mt{constructor(r){super(Tm),this.payload=r,this.type=tF}},ig=class extends Xt{constructor(r){super(ie,gl),this.payload=r,this.type=nF}},vI=class extends Bt{constructor(r){super(ie,gl,r),this.payload=r,this.type=rF}},yI=class extends vt{constructor(r){super(ie,gl),this.payload=r,this.type=iF}},og=class extends ir{constructor(){super(ie,gl),this.type=oF}},sg=class extends is{constructor(){super(Tm),this.type=sF}}
12,aF="[User] Load User Payment Methods",cF="[User] Load User Payment Methods Fail",uF="[User] Load User Payment Methods Success",lF="[User] Set Default User Payment Method",dF="[User] Set Default User Payment Method Fail",fF="[User] Set Default User Payment Method Success",hF="[User] Delete User Payment Method",pF="[User] Delete User Payment Method Fail",gF="[User] Delete User Payment Method Success",ag=class extends pt{constructor(r){super(yi),this.payload=r,this.type=aF}},EI=class extends gt{constructor(r){super(yi,r),this.payload=r,this.type=cF}},SI=class extends mt{constructor(r){super(yi),this.payload=r,this.type=uF}},cg=class extends pt{constructor(r){super(yi),this.payload=r,this.type=lF}},CI=class extends gt{constructor(r){super(yi,r),this.payload=r,this.type=dF}},DI=class extends mt{constructor(r){super(yi),this.payload=r,this.type=fF}},ug=class extends pt{constructor(r){super(yi),this.payload=r,this.type=hF}},II=class extends gt{constructor(r){super(yi,r),this.payload=r,this.type=pF}},TI=class extends mt{constructor(r){super(yi),this.payload=r,this.type=gF}},mF="Load Product Interests",vF="Load Product Interests Fail",yF="Load Product Interests Success",EF="Remove Product Interest",SF="Remove Product Interest Success",CF="Remove Product Interest Fail",DF="Add Product Interest",IF="Add Product Interest Fail",TF="Add Product Interest Success",bF="Add Product Interest Reset",wF="Remove Product Interest Reset",_F="Clear Product Interests",lg=class extends pt{constructor(r){super(bm),this.payload=r,this.type=mF}},bI=class extends gt{constructor(r){super(bm,r),this.payload=r,this.type=vF}},wI=class extends mt{constructor(r){super(bm),this.payload=r,this.type=yF}},dg=class extends Xt{constructor(r){super(ie,Na),this.payload=r,this.type=EF}},_I=class extends vt{constructor(r){super(ie,Na),this.payload=r,this.type=SF}},AI=class extends Bt{constructor(r){super(ie,Na,r),this.payload=r,this.type=CF}},fg=class extends Xt{constructor(r){super(ie,Ma),this.payload=r,this.type=DF}},RI=class extends vt{constructor(r){super(ie,Ma),this.payload=r,this.type=TF}},MI=class extends Bt{constructor(r){super(ie,Ma,r),this.payload=r,this.type=IF}},hg=class extends ir{constructor(){super(ie,Ma),this.type=bF}},pg=class extends ir{constructor(){super(ie,Na),this.type=wF}},gg=class extends is{constructor(){super(bm),this.type=_F}},AF="[User] Load Regions",RF="[User] Load Regions Success",MF="[User] Load Regions Fail",NF="[User] Clear Regions",mg=class extends pt{constructor(r){super(GT),this.payload=r,this.type=AF}},NI=class extends gt{constructor(r){super(GT,r),this.payload=r,this.type=MF}},OI=class extends mt{constructor(r){super(GT),this.payload=r,this.type=RF}},vg=class{constructor(){this.type=NF}},OF="[User] Load User Addresses",xF="[User] Load User Addresses Fail",LF="[User] Load User Addresses Success",PF="[User] Add User Address",FF="[User] Add User Address Fail",kF="[User] Add User Address Success",UF="[User] Update User Address",jF="[User] Update User Address Fail",$F="[User] Update User Address Success",BF="[User] Delete User Address",HF="[User] Delete User Address Fail",VF="[User] Delete User Address Success",yg=class extends pt{constructor(r){super(Fn),this.payload=r,this.type=OF}},xI=class extends gt{constructor(r){super(Fn,r),this.payload=r,this.type=xF}},LI=class extends mt{constructor(r){super(Fn),this.payload=r,this.type=LF}},Eg=class extends pt{constructor(r){super(Fn),this.payload=r,this.type=PF}},PI=class extends gt{constructor(r){super(Fn,r),this.payload=r,this.type=FF}},FI=class extends mt{constructor(r){super(Fn),this.payload=r,this.type=kF}},Ju=class extends pt{constructor(r){super(Fn),this.payload=r,this.type=UF}},kI=class extends gt{constructor(r){super(Fn,r),this.payload=r,this.type=jF}},UI=class extends mt{constructor(r){super(Fn),this.payload=r,this.type=$F}},Sg=class extends pt{constructor(r){super(Fn),this.payload=r,this.type=BF}},jI=class extends gt{constructor(r){super(Fn,r),this.payload=r,this.type=HF}},$I=class extends mt{constructor(r){super(Fn),this.payload=r,this.type=VF}},zF="[User] Load User Consents",GF="[User] Load User Consents Success",WF="[User] Load User Consents Fail",qF="[User] Reset Load User Consents",YF="[User] Give User Consent",KF="[User] Give User Consent Fail",ZF="[User] Give User Consent Success",QF="[User] Reset Give User Consent Process",JF="[User] Transfer Anonymous Consent",XF="[User] Withdraw User Consent",ek="[User] Withdraw User Consent Fail",tk="[User] Withdraw User Consent Success",nk="[User] Reset Withdraw User Consent Process",Cg=class extends pt{constructor(r){super(Dm),this.payload=r,this.type=zF}},BI=class extends gt{constructor(r){super(Dm,r),this.payload=r,this.type=WF}},HI=class extends mt{constructor(r){super(Dm),this.payload=r,this.type=GF}},Dg=class extends is{constructor(){super(Dm),this.type=qF}},Xu=class extends Xt{constructor(r){super(ie,es),this.payload=r,this.type=YF}},VI=class extends Bt{constructor(r){super(ie,es,r),this.type=KF}},zI=class extends vt{constructor(r){super(ie,es),this.consentTemplate=r,this.type=ZF}},Ig=class extends ir{constructor(){super(ie,es),this.type=QF}},Tg=class{constructor(r){this.payload=r,this.type=JF}},bg=class extends Xt{constructor(r){super(ie,ts),this.payload=r,this.type=XF}},GI=class extends Bt{constructor(r){super(ie,ts,r),this.type=ek}},WI=class extends vt{constructor(){super(ie,ts),this.type=tk}},wg=class extends ir{constructor(){super(ie,ts),this.type=nk}},rk="[User] Load Active CostCenters",ik="[User] Load Active CostCenters Fail",ok="[User] Load Active CostCenters Success",qI=class extends pt{constructor(r){super(zT),this.payload=r,this.type=rk}},YI=class extends gt{constructor(r){super(zT,r),this.payload=r,this.type=ik}},KI=class extends mt{constructor(r){super(zT),this.payload=r,this.type=ok}},sk="[User] Clear User Misc Data",ZI=class{constructor(){this.type=sk}},WT="[User] Register User Success",QI=class extends vt{constructor(){super(ie,h5),this.type=WT}},lCe=Object.freeze({__proto__:null,ADD_PRODUCT_INTEREST:DF,ADD_PRODUCT_INTEREST_FAIL:IF,ADD_PRODUCT_INTEREST_RESET:bF,ADD_PRODUCT_INTEREST_SUCCESS:TF,ADD_USER_ADDRESS:PF,ADD_USER_ADDRESS_FAIL:FF,ADD_USER_ADDRESS_SUCCESS:kF,AddProductInterest:fg,AddProductInterestFail:MI,AddProductInterestSuccess:RI,AddUserAddress:Eg,AddUserAddressFail:PI,AddUserAddressSuccess:FI,CLAIM_CUSTOMER_COUPON:VP,CLAIM_CUSTOMER_COUPON_FAIL:zP,CLAIM_CUSTOMER_COUPON_SUCCESS:GP,CLEAR_NOTIFICATION_PREFERENCES:sF,CLEAR_PRODUCT_INTERESTS:_F,CLEAR_REGIONS:NF,CLEAR_USER_MISCS_DATA:sk,ClaimCustomerCoupon:Xp,ClaimCustomerCouponFail:dI,ClaimCustomerCouponSuccess:fI,ClearNotificationPreferences:sg,ClearProductInterests:gg,ClearRegions:vg,ClearUserMiscsData:ZI,DELETE_USER_ADDRESS:BF,DELETE_USER_ADDRESS_FAIL:HF,DELETE_USER_ADDRESS_SUCCESS:VF,DELETE_USER_PAYMENT_METHOD:hF,DELETE_USER_PAYMENT_METHOD_FAIL:pF,DELETE_USER_PAYMENT_METHOD_SUCCESS:gF,DISCLAIM_CUSTOMER_COUPON:WP,DISCLAIM_CUSTOMER_COUPON_FAIL:qP,DISCLAIM_CUSTOMER_COUPON_SUCCESS:YP,DeleteUserAddress:Sg,DeleteUserAddressFail:jI,DeleteUserAddressSuccess:$I,DeleteUserPaymentMethod:ug,DeleteUserPaymentMethodFail:II,DeleteUserPaymentMethodSuccess:TI,DisclaimCustomerCoupon:eg,DisclaimCustomerCouponFail:uI,DisclaimCustomerCouponSuccess:lI,GIVE_USER_CONSENT:YF,GIVE_USER_CONSENT_FAIL:KF,GIVE_USER_CONSENT_SUCCESS:ZF,GiveUserConsent:Xu,GiveUserConsentFail:VI,GiveUserConsentSuccess:zI,LOAD_ACTIVE_COST_CENTERS:rk,LOAD_ACTIVE_COST_CENTERS_FAIL:ik,LOAD_ACTIVE_COST_CENTERS_SUCCESS:ok,LOAD_BILLING_COUNTRIES:AP,LOAD_BILLING_COUNTRIES_FAIL:RP,LOAD_BILLING_COUNTRIES_SUCCESS:MP,LOAD_CUSTOMER_COUPONS:NP,LOAD_CUSTOMER_COUPONS_FAIL:OP,LOAD_CUSTOMER_COUPONS_SUCCESS:xP,LOAD_DELIVERY_COUNTRIES:ZP,LOAD_DELIVERY_COUNTRIES_FAIL:QP,LOAD_DELIVERY_COUNTRIES_SUCCESS:JP,LOAD_NOTIFICATION_PREFERENCES:XP,LOAD_NOTIFICATION_PREFERENCES_FAIL:eF,LOAD_NOTIFICATION_PREFERENCES_SUCCESS:tF,LOAD_PRODUCT_INTERESTS:mF,LOAD_PRODUCT_INTERESTS_FAIL:vF,LOAD_PRODUCT_INTERESTS_SUCCESS:yF,LOAD_REGIONS:AF,LOAD_REGIONS_FAIL:MF,LOAD_REGIONS_SUCCESS:RF,LOAD_USER_ADDRESSES:OF,LOAD_USER_ADDRESSES_FAIL:xF,LOAD_USER_ADDRESSES_SUCCESS:LF,LOAD_USER_CONSENTS:zF,LOAD_USER_CONSENTS_FAIL:WF,LOAD_USER_CONSENTS_SUCCESS:GF,LOAD_USER_PAYMENT_METHODS:aF,LOAD_USER_PAYMENT_METHODS_FAIL:cF,LOAD_USER_PAYMENT_METHODS_SUCCESS:uF,LoadActiveCostCenters:qI,LoadActiveCostCentersFail:YI,LoadActiveCostCentersSuccess:KI,LoadBillingCountries:Kp,LoadBillingCountriesFail:JD,LoadBillingCountriesSuccess:XD,LoadCustomerCoupons:Zp,LoadCustomerCouponsFail:eI,LoadCustomerCouponsSuccess:tI,LoadDeliveryCountries:ng,LoadDeliveryCountriesFail:hI,LoadDeliveryCountriesSuccess:pI,LoadNotificationPreferences:rg,LoadNotificationPreferencesFail:gI,LoadNotificationPreferencesSuccess:mI,LoadProductInterests:lg,LoadProductInterestsFail:bI,LoadProductInterestsSuccess:wI,LoadRegions:mg,LoadRegionsFail:NI,LoadRegionsSuccess:OI,LoadUserAddresses:yg,LoadUserAddressesFail:xI,LoadUserAddressesSuccess:LI,LoadUserConsents:Cg,LoadUserConsentsFail:BI,LoadUserConsentsSuccess:HI,LoadUserPaymentMethods:ag,LoadUserPaymentMethodsFail:EI,LoadUserPaymentMethodsSuccess:SI,REGISTER_USER_SUCCESS:WT,REMOVE_PRODUCT_INTEREST:EF,REMOVE_PRODUCT_INTEREST_FAIL:CF,REMOVE_PRODUCT_INTEREST_RESET:wF,REMOVE_PRODUCT_INTEREST_SUCCESS:SF,RESET_DISCLAIM_CUSTOMER_COUPON:KP,RESET_GIVE_USER_CONSENT_PROCESS:QF,RESET_LOAD_CUSTOMER_COUPONS:LP,RESET_LOAD_USER_CONSENTS:qF,RESET_NOTIFICATION_PREFERENCES:oF,RESET_SUBSCRIBE_CUSTOMER_COUPON_PROCESS:UP,RESET_UNSUBSCRIBE_CUSTOMER_COUPON_PROCESS:HP,RESET_WITHDRAW_USER_CONSENT_PROCESS:nk,RegisterUserSuccess:QI,RemoveProductInterest:dg,RemoveProductInterestFail:AI,RemoveProductInterestSuccess:_I,ResetAddInterestState:hg,ResetDisclaimCustomerCoupon:tg,ResetGiveUserConsentProcess:Ig,ResetLoadCustomerCoupons:nI,ResetLoadUserConsents:Dg,ResetNotificationPreferences:og,ResetRemoveInterestState:pg,ResetSubscribeCustomerCouponProcess:oI,ResetUnsubscribeCustomerCouponProcess:cI,ResetWithdrawUserConsentProcess:wg,SET_DEFAULT_USER_PAYMENT_METHOD:lF,SET_DEFAULT_USER_PAYMENT_METHOD_FAIL:dF,SET_DEFAULT_USER_PAYMENT_METHOD_SUCCESS:fF,SUBSCRIBE_CUSTOMER_COUPON:PP,SUBSCRIBE_CUSTOMER_COUPON_FAIL:FP,SUBSCRIBE_CUSTOMER_COUPON_SUCCESS:kP,SetDefaultUserPaymentMethod:cg,SetDefaultUserPaymentMethodFail:CI,SetDefaultUserPaymentMethodSuccess:DI,SubscribeCustomerCoupon:Qp,SubscribeCustomerCouponFail:rI,SubscribeCustomerCouponSuccess:iI,TRANSFER_ANONYMOUS_CONSENT:JF,TransferAnonymousConsent:Tg,UNSUBSCRIBE_CUSTOMER_COUPON:jP,UNSUBSCRIBE_CUSTOMER_COUPON_FAIL:$P,UNSUBSCRIBE_CUSTOMER_COUPON_SUCCESS:BP,UPDATE_NOTIFICATION_PREFERENCES:nF,UPDATE_NOTIFICATION_PREFERENCES_FAIL:rF,UPDATE_NOTIFICATION_PREFERENCES_SUCCESS:iF,UPDATE_USER_ADDRESS:UF,UPDATE_USER_ADDRESS_FAIL:jF,UPDATE_USER_ADDRESS_SUCCESS:$F,UnsubscribeCustomerCoupon:Jp,UnsubscribeCustomerCouponFail:sI,UnsubscribeCustomerCouponSuccess:aI,UpdateNotificationPreferences:ig,UpdateNotificationPreferencesFail:vI,UpdateNotificationPreferencesSuccess:yI,UpdateUserAddress:Ju,UpdateUserAddressFail:kI,UpdateUserAddressSuccess:UI,WITHDRAW_USER_CONSENT:XF,WITHDRAW_USER_CONSENT_FAIL:ek,WITHDRAW_USER_CONSENT_SUCCESS:tk,WithdrawUserConsent:bg,WithdrawUserConsentFail:GI,WithdrawUserConsentSuccess:WI}),_g=class{},p5=(()=>{class e{constructor(t){this.adapter=t}loadAnonymousConsentTemplates(){return this.adapter.loadAnonymousConsentTemplates()}loadAnonymousConsents(){return this.adapter.loadAnonymousConsents()}static{this.\u0275fac=function(n){return new(n||e)(f(_g))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Ag=class{},Rg=class{},ak=new C("CmsPageNormalizer"),g5="JspIncludeComponent",m5="CMSFlexComponent",v5=(function(e){return e.DEFER="DEFERRED-LOADING",e.INSTANT="INSTANT-LOADING",e})(v5||{}),qT=(()=>{class e extends $r{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),fi=(function(e){return e.INDEX="INDEX",e.NOINDEX="NOINDEX",e.FOLLOW="FOLLOW",e.NOFOLLOW="NOFOLLOW",e})(fi||{}),ba;(function(e){let r;(function(y){y.INDEX_FOLLOW="INDEX_FOLLOW",y.NOINDEX_FOLLOW="NOINDEX_FOLLOW",y.INDEX_NOFOLLOW="INDEX_NOFOLLOW",y.NOINDEX_NOFOLLOW="NOINDEX_NOFOLLOW"})(r=e.PageRobots||(e.PageRobots={}));let t;(function(y){y.Success="SUCCESS",y.Info="INFO",y.Warning="WARNING",y.Error="ERROR"})(t=e.OrderEntryStatus||(e.OrderEntryStatus={}));let n;(function(y){y.BUY="BUY",y.FROM="FROM"})(n=e.PriceType||(e.PriceType={}));let i;(function(y){y.PRIMARY="PRIMARY",y.GALLERY="GALLERY"})(i=e.ImageType||(e.ImageType={}));let o;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(o=e.Fields||(e.Fields={}));let s;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(s=e.Fields1||(e.Fields1={}));let a;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(a=e.Fields2||(e.Fields2={}));let c;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(c=e.Fields3||(e.Fields3={}));let u;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(u=e.Fields4||(e.Fields4={}));let l;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"}
12)(l=e.Fields5||(e.Fields5={}));let d;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(d=e.Fields6||(e.Fields6={}));let h;(function(y){y.CONTENT_PAGE="ContentPage",y.PRODUCT_PAGE="ProductPage",y.CATEGORY_PAGE="CategoryPage",y.CATALOG_PAGE="CatalogPage"})(h=e.PageType||(e.PageType={}));let p;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(p=e.Fields7||(e.Fields7={}));let E;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(E=e.Fields8||(e.Fields8={}));let D;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(D=e.Fields9||(e.Fields9={}));let b;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(b=e.Fields10||(e.Fields10={}));let R;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(R=e.Fields11||(e.Fields11={}));let M;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(M=e.Fields12||(e.Fields12={}));let ae;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(ae=e.Fields13||(e.Fields13={}));let Z;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Z=e.Fields14||(e.Fields14={}));let Ne;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Ne=e.Fields15||(e.Fields15={}));let Oe;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Oe=e.Fields16||(e.Fields16={}));let at;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(at=e.SortEnum||(e.SortEnum={}));let sr;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(sr=e.Fields17||(e.Fields17={}));let Ht;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Ht=e.Fields18||(e.Fields18={}));let Ot;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Ot=e.Fields19||(e.Fields19={}));let Um;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Um=e.Fields20||(e.Fields20={}));let jm;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(jm=e.Fields21||(e.Fields21={}));let Et;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Et=e.Fields22||(e.Fields22={}));let en;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(en=e.Fields23||(e.Fields23={}));let Cl;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Cl=e.Fields24||(e.Fields24={}));let hn;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(hn=e.Fields25||(e.Fields25={}));let kn;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(kn=e.Fields26||(e.Fields26={}));let ao;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(ao=e.Fields27||(e.Fields27={}));let fs;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(fs=e.Fields28||(e.Fields28={}));let Dl;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Dl=e.Fields29||(e.Fields29={}));let xt;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(xt=e.Fields30||(e.Fields30={}));let zr;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(zr=e.Fields31||(e.Fields31={}));let co;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(co=e.Fields32||(e.Fields32={}));let Il;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(Il=e.Fields33||(e.Fields33={}));let oU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(oU=e.Fields34||(e.Fields34={}));let sU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(sU=e.Fields35||(e.Fields35={}));let aU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(aU=e.Fields36||(e.Fields36={}));let cU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(cU=e.Fields37||(e.Fields37={}));let uU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(uU=e.Fields38||(e.Fields38={}));let lU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(lU=e.Fields39||(e.Fields39={}));let dU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(dU=e.Fields40||(e.Fields40={}));let fU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(fU=e.Fields41||(e.Fields41={}));let hU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(hU=e.Fields42||(e.Fields42={}));let pU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(pU=e.Fields43||(e.Fields43={}));let gU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(gU=e.Fields44||(e.Fields44={}));let mU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(mU=e.Fields45||(e.Fields45={}));let vU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(vU=e.Fields46||(e.Fields46={}));let yU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(yU=e.Fields47||(e.Fields47={}));let EU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(EU=e.Fields48||(e.Fields48={}));let SU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(SU=e.Fields49||(e.Fields49={}));let CU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(CU=e.Fields50||(e.Fields50={}));let DU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(DU=e.Fields51||(e.Fields51={}));let IU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(IU=e.Fields52||(e.Fields52={}));let TU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(TU=e.Fields53||(e.Fields53={}));let bU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(bU=e.Fields54||(e.Fields54={}));let wU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(wU=e.Fields55||(e.Fields55={}));let _U;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(_U=e.Fields56||(e.Fields56={}));let AU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(AU=e.Fields57||(e.Fields57={}));let RU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(RU=e.Fields58||(e.Fields58={}));let MU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(MU=e.Fields59||(e.Fields59={}));let NU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(NU=e.Fields60||(e.Fields60={}));let OU;(function(y){y.BASIC="BASIC",y.DEFAULT="DEFAULT",y.FULL="FULL"})(OU=e.Fields61||(e.Fields61={}));let xU;
12(function(y){y.All="all",y.Product="product",y.Order="order"})(xU=e.Type||(e.Type={}));let LU;(function(y){y.ANONYMOUS_CONSENT_GIVEN="GIVEN",y.ANONYMOUS_CONSENT_WITHDRAWN="WITHDRAWN"})(LU=e.CONSENT_STATUS||(e.CONSENT_STATUS={}));let PU;(function(y){y.BACK_IN_STOCK="BACK_IN_STOCK"})(PU=e.NotificationType||(e.NotificationType={}));let FU;(function(y){y.DAY="DAY",y.WEEK="WEEK",y.MONTH="MONTH",y.QUARTER="QUARTER",y.YEAR="YEAR"})(FU=e.Period||(e.Period={}));let kU;(function(y){y.MONDAY="MONDAY",y.TUESDAY="TUESDAY",y.WEDNESDAY="WEDNESDAY",y.THURSDAY="THURSDAY",y.FRIDAY="FRIDAY",y.SATURDAY="SATURDAY",y.SUNDAY="SUNDAY"})(kU=e.DaysOfWeek||(e.DaysOfWeek={}));let UU;(function(y){y.APPROVE="APPROVE",y.REJECT="REJECT"})(UU=e.OrderApprovalDecisionValue||(e.OrderApprovalDecisionValue={}))})(ba||(ba={}));var y5=(()=>{class e{convert(t,n={}){return this.normalizePageData(t,n),this.normalizePageSlotData(t,n),this.normalizePageComponentData(t,n),this.normalizeComponentData(t,n),n}normalizePageData(t,n){if(!t)return;let i={};t.name&&(i.name=t.name),t.typeCode&&(i.type=t.typeCode),t.label&&(i.label=t.label),t.template&&(i.template=t.template),t.uid&&(i.pageId=t.uid),t.title&&(i.title=t.title),t.description&&(i.description=t.description),t.properties&&(i.properties=t.properties),this.normalizeRobots(t,i),n.page=i}normalizePageSlotData(t,n){if(t?.contentSlots){t.contentSlots.contentSlot&&!Array.isArray(t.contentSlots.contentSlot)&&(t.contentSlots.contentSlot=[t.contentSlots.contentSlot]),n.page=n.page??{},n.page.slots={};for(let i of t.contentSlots.contentSlot??[])i.position&&(n.page.slots[i.position]={},i.properties&&(n.page.slots[i.position].properties=i.properties))}}normalizePageComponentData(t,n){if(t?.contentSlots?.contentSlot){for(let i of t.contentSlots.contentSlot)if(Array.isArray(i.components?.component))for(let o of i.components?.component??[]){let s={uid:o.uid,typeCode:o.typeCode,flexType:this.getFlexTypeFromComponent(o),properties:this.getComponentProperties(o.properties)};if(i.position){let a=n.page?.slots?.[i.position];a&&(a.components||(a.components=[]),a.components.push(s))}}}}getComponentProperties(t){return t||void 0}getFlexTypeFromComponent(t){return t.typeCode===m5?t.flexType:t.typeCode===g5?t.uid:t.typeCode}normalizeComponentData(t,n){if(t?.contentSlots?.contentSlot)for(let i of t.contentSlots.contentSlot)for(let o of i.components?.component??[])o.modifiedtime&&(o.modifiedTime=o.modifiedtime,delete o.modifiedtime),o.properties&&(o.properties=void 0),n.components||(n.components=[]),n.components.push(o)}normalizeRobots(t,n){let i=[];if(t.robotTag)switch(t.robotTag){case ba.PageRobots.INDEX_FOLLOW:i.push(fi.INDEX),i.push(fi.FOLLOW);break;case ba.PageRobots.NOINDEX_FOLLOW:i.push(fi.NOINDEX),i.push(fi.FOLLOW);break;case ba.PageRobots.INDEX_NOFOLLOW:i.push(fi.INDEX),i.push(fi.NOFOLLOW);break;case ba.PageRobots.NOINDEX_NOFOLLOW:i.push(fi.NOINDEX),i.push(fi.NOFOLLOW);break}n.robots=i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tL=new C("CmsComponentNormalizer"),E5=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.userIdService=g(Ln),this.headers=new oe().set("Content-Type","application/json")}load(t,n){return this.userIdService.getUserId().pipe(O(i=>this.http.get(this.getComponentEndPoint(t,n,i),{headers:this.headers})),this.converter.pipeable(tL),W(1))}findComponentsByIds(t,n,i="DEFAULT",o=0,s=t.length,a){let c=v(v({},this.getContextParams(n)),this.getPaginationParams(o,s,a));return c.componentIds=t.toString(),this.userIdService.getUserId().pipe(O(u=>this.http.get(this.getComponentsEndpoint(c,i,u),{headers:this.headers})),S(u=>u.component??[]),this.converter.pipeableMany(tL),W(1))}getComponentEndPoint(t,n,i){let o=this.getContextParams(n),s=i?{urlParams:{id:t,userId:i},queryParams:o}:{urlParams:{id:t},queryParams:o};return this.occEndpoints.buildUrl("component",s)}getComponentsEndpoint(t,n,i){let o=v({fields:n},t),s=i?{urlParams:{userId:i},queryParams:o}:{queryParams:o};return this.occEndpoints.buildUrl("components",s)}getPaginationParams(t,n,i){let o={};return t!==void 0&&(o.currentPage=t.toString()),n!==void 0&&(o.pageSize=n.toString()),i!==void 0&&(o.sort=i),o}getContextParams(t){let n={};
12switch(t.type){case Se.PRODUCT_PAGE:{n={productCode:t.id};break}case Se.CATEGORY_PAGE:{n={categoryCode:t.id};break}case Se.CATALOG_PAGE:{n={catalogCode:t.id};break}}return n}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ck="__HOMEPAGE__",uk="smartedit-preview";var S5=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.userIdService=g(Ln),this.headers=new oe().set("Content-Type","application/json")}load(t){let n=this.getPagesRequestParams(t);return this.userIdService.getUserId().pipe(O(i=>{let o=t.type?this.occEndpoints.buildUrl("pages",{urlParams:{userId:i},queryParams:n}):this.occEndpoints.buildUrl("page",{urlParams:{id:t.id,userId:i}});return this.http.get(o,{headers:this.headers})}),this.converter.pipeable(ak),W(1))}getPagesRequestParams(t){if(t.id===ck||t.id===uk)return{};let n={};return t.type&&(n.pageType=t.type),t.type===Se.CONTENT_PAGE?n.pageLabelOrId=t.id:n.code=t.id,n}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),C5=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[{provide:Rg,useExisting:S5},{provide:ak,useExisting:y5,multi:!0},{provide:Ag,useExisting:E5}],imports:[Ke]})}}return e})();var D5=(()=>{class e{convert(t,n){return n===void 0&&(n=v({},t)),n.active=this.normalizeBoolean(t.active),n}normalizeBoolean(t){return t===void 0?!1:typeof t=="string"?t==="true":t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),I5=(()=>{class e{convert(t,n){return n===void 0&&(n=v({},t)),n.activeFlag=t.active,delete n.active,n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),lk=new C("CostCenterNormalizer"),dk=new C("CostCentersListNormalizer"),T5=new C("CostCenterSerializer"),b5=(()=>{class e{constructor(t){this.converter=t}convert(t,n){return n===void 0&&(n=v({},t)),n.values=t.costCenters.map(i=>v({},this.converter.convert(i,lk))),n}static{this.\u0275fac=function(n){return new(n||e)(f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),w5={backend:{occ:{endpoints:{getActiveCostCenters:"/costcenters?fields=DEFAULT,unit(BASIC,addresses(DEFAULT))"}}}},dCe=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[{provide:dk,useExisting:b5,multi:!0},{provide:lk,useExisting:D5,multi:!0},{provide:T5,useExisting:I5,multi:!0}],imports:[Ke,fP.withConfig(w5)]})}}return e})(),_5=(()=>{class e{constructor(t){this.config=t}convert(t,n){return n===void 0&&(n=v({},t)),t.images&&(n.images=this.normalize(t.images)),n}normalize(t){let n={};if(t)for(let i of t){let o=this.hasGalleryIndex(i);if(i.imageType){n.hasOwnProperty(i.imageType)||(n[i.imageType]=o?[]:{});let s=this.getImageContainer(o,n,i),a=v({},i);a.url=this.normalizeImageUrl(a.url??""),i.format&&(s[i.format]=a)}}return n}getImageContainer(t,n,i){return t?this.getImageGroups(n,i)[i.galleryIndex]:n[i.imageType]}getImageGroups(t,n){let i=t[n.imageType];return i[n.galleryIndex]||(i[n.galleryIndex]={}),i}normalizeImageUrl(t){return new RegExp(/^(http|data:image|\/\/)/i).test(t)?t:(this.config.backend?.media?.baseUrl||this.config.backend?.occ?.baseUrl||"")+t}hasGalleryIndex(t){return(t.galleryIndex??!1)!==!1}static{this.\u0275fac=function(n){return new(n||e)(f($r))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var os=new C("ProductNormalizer"),A5=(()=>{class e{constructor(t){this.converterService=t,this.DEFAULT_TOP_VALUES=6}convert(t,n={}){return n=v(v({},n),t),this.normalizeFacets(n),t.products&&(n.products=t.products.map(i=>this.converterService.convert(i,os))),n}normalizeFacets(t){this.normalizeFacetValues(t),this.normalizeUselessFacets(t)}normalizeUselessFacets(t){t.facets&&(t.facets=t.facets.filter(n=>!t.pagination||!t.pagination.totalResults||(!n.hasOwnProperty("visible")||n.visible)&&n.values&&n.values.find(i=>i.selected||(i.count??0)<(t.pagination?.totalResults??0))))}normalizeFacetValues(t){t.facets&&(t.facets=t.facets.map(n=>{let s=n,{topValues:i}=s,o=$m(s,["topValues"]);return o.topValueCount=i&&i.length>0?i.length:this.DEFAULT_TOP_VALUES,o}))}static{this.\u0275fac=function(n){return new(n||e)(f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),R5=(()=>{class e{constructor(t){this.converter=t}convert(t,n=[]){return n===void 0&&(n=v({},t)),t&&t.references?(n=t.references.map(i=>T(v({},i),{target:this.converter.convert(i.target,os)})),n):[]}static{this.\u0275fac=function(n){return new(n||e)(f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),M5=(()=>{class e{constructor(t){this.config=t,this.reservedSlugCharacters=" !*'();:@&=+$,/?%#[]",this.slugChar="-",this.slugRegex=new RegExp(`[${this.reservedSlugCharacters.split("").join("\\")}]`,"g"),this.sanitizeMultipleSlugChars=new RegExp(`${this.slugChar}+`,"g")}convert(t,n){return n=n??v({},t),t.name&&(n.name=this.normalize(t.name),n.slug=this.normalizeSlug(t.name),n.nameHtml=t.name),n}normalize(t){return t.replace(/<[^>]*>/g,"")}normalizeSlug(t){return this.normalize(t).trim().toLowerCase().replace(this.slugRegex,this.slugChar).replace(this.sanitizeMultipleSlugChars,this.slugChar)}static{this.\u0275fac=function(n){return new(n||e)(f($r))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),fk=new C("ProductReferencesListNormalizer"),N5=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i}load(t,n,i){return this.http.get(this.getEndpoint(t,n,i)).pipe(this.converter.pipeable(fk))}getEndpoint(t,n,i){return this.occEndpoints.buildUrl("productReferences",{urlParam
12s:{productCode:t},queryParams:{referenceType:n,pageSize:i}})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),O5=new C("ProductReviewNormalizer"),x5=new C("ProductReviewSerializer"),L5=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i}load(t,n){return this.http.get(this.getEndpoint(t,n)).pipe(S(i=>i.reviews),S(i=>i??[]),this.converter.pipeableMany(O5))}post(t,n){n=this.converter.convert(n,x5);let i=new oe({"Content-Type":"application/x-www-form-urlencoded"}),o=new URLSearchParams;return o.append("headline",n.headline),o.append("comment",n.comment),o.append("rating",n.rating.toString()),o.append("alias",n.alias),this.http.post(this.getEndpoint(t),o.toString(),{headers:i})}getEndpoint(t,n){return this.occEndpoints.buildUrl("productReviews",{urlParams:{productCode:t},queryParams:{maxCount:n}})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),JI=new C("ProductSearchPageNormalizer"),P5=new C("ProductSuggestionNormalizer"),hk=new Js(()=>({}));function F5(e){let r=e.map(n=>typeof n=="string"?wm(n):n),t=pk(ht({},...r));return gk(t)}function pk(e={}){let r=Object.keys(e);return r.includes("FULL")?(delete e.DEFAULT,delete e.BASIC):r.includes("DEFAULT")&&delete e.BASIC,Object.keys(e).forEach(t=>{e[t]=pk(e[t])}),e}function wm(e,r=0){let t={},n=r;for(;n<e.length;){if(e[n]===",")n>r&&(t[e.substring(r,n)]={}),r=n+1;else if(e[n]==="("){let i=wm(e,n+1);if(!Array.isArray(i))return t;t[e.substring(r,n)]=i[0],r=i[1],n=r-1}else if(e[n]===")")return n>r&&(t[e.substring(r,n)]={}),[t,n+1];n++}return r<e.length&&(t[e.substring(r,n)]={}),t}function gk(e){return Object.keys(e).map(r=>{let t=gk(e[r]);return t?`${r}(${t})`:r}).join(",")}function k5(e,r){let t=typeof r=="string"?wm(r):r;return mk(e,t)}function mk(e,r){if(!Sp(e))return e;let t=Object.keys(r);if(t.length===0||t.find(i=>i==="BASIC"||i==="DEFAULT"||i==="FULL"))return e;let n={};return t.forEach(i=>{e.hasOwnProperty(i)&&(n[i]=mk(e[i],r[i]))}),n}var U5=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.router=g(Ce,{optional:!0}),this.winRef=g(Nt),this.DEFAULT_SEARCH_CONFIG={pageSize:20}}search(t,n=this.DEFAULT_SEARCH_CONFIG,i){let o=new Bo().set(hk,{sendUserIdAsHeader:!0});return this.http.get(this.getSearchEndpoint(t,n,i),{context:o}).pipe(this.converter.pipeable(JI),k(s=>{if(s.keywordRedirectUrl){let a=this.parseUrlForNavigation(s.keywordRedirectUrl);if(a){let[c,u]=a;this.router?.navigate(c,u)}}}))}searchByCodes(t,n){if(t.length===0)return I({products:[]});let i=100,o=[];for(let a=0;a<t.length;a+=i)o.push(t.slice(a,a+i));let s=o.map(a=>{let c={filters:`code:${a.join(",")}`,pageSize:i};return this.search("",c,n).pipe(S(u=>({products:u?.products??[]})))});return Ds(s).pipe(S(a=>({products:a.flatMap(c=>c.products)})))}searchByCategory(t,n){return this.http.get(this.getSearchByCategoryEndpoint(t,n)).pipe(this.converter.pipeable(JI),S(i=>({products:i.products??[]})))}loadSuggestions(t,n=3){return this.http.get(this.getSuggestionEndpoint(t,n.toString())).pipe(S(i=>i.suggestions??[]),this.converter.pipeableMany(P5))}getSearchByCategoryEndpoint(t,n){return this.occEndpoints.buildUrl("productSearchByCategory",{urlParams:{categoryCode:t},scope:n})}getSearchEndpoint(t,n,i){return this.occEndpoints.buildUrl("productSearch",{queryParams:v({query:t},n),scope:i})}getSuggestionEndpoint(t,n){return this.occEndpoints.buildUrl("productSuggestions",{queryParams:{term:t,max:n}})}parseUrlForNavigation(t){let n,i=/^https?:\/\//i;try{n=i.test(t)?new URL(t):new URL(t,this.winRef.location.origin)}catch(u){return null}let{queryParams:o,fragment:s}=this.router?.parseUrl(n.pathname+n.search+n.hash)??{},a=n.pathname.split("/").filter(Boolean),c={};return o&&(c.queryParams=o),s&&(c.fragment=s),[a,c]}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),j5=(()=>{class e{constructor(t){this.http=t,this.FIELDS_PARAM="fields"}getOptimalUrlGroups(t){let n={};for(let o of t){let[s,a]=this.splitFields(o.url??"");n[s]||(n[s]={}),o.fields=a?wm(a):{},o.scopedData.scope!==void 0&&(n[s][o.scopedData.scope]=o)}let i={};for(let[o,s]of Object.entries(n)){let a=this.getUrlWithFields(o,Object.values(s).map(c=>c.fields));i[a]=s}return i}splitFields(t){let[n,i]=t.split("?"),o={};i&&i.split("&").forEach(c=>{let u=c.split("=");o[u[0]]=u[1]});let a=Object.keys(o).sort().reduce((c,u)=>(u!==this.FIELDS_PARAM&&c.push(o[u]?`${u}=${o[u]}`:u),c),[]).join("&");return[a?`${n}?${a}`:n,o[this.FIELDS_PARAM]]}getUrlWithFields(t,n){let i=F5(n);return i&&(t+=t.includes("?")?"&":"?",t+=`${this.FIELDS_PARAM}=${i}`),t}static{this.\u0275fac=function(n){return new(n||e)(f(we))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$5=(()=>{class e{constructor(t,n){this.http=t,this.occFields=n}scopedDataLoad(t,n){let i=[];n||(n=s=>this.http.get(s));let o=this.occFields.getOptimalUrlGroups(t);
12return Object.entries(o).forEach(([s,a])=>{let c=Object.values(a);if(c.length===1)i.push(T(v({},c[0].scopedData),{data$:n?.(s)}));else{let u=n?.(s).pipe(Xe(1));c.forEach(l=>{i.push(T(v({},l.scopedData),{data$:u?.pipe(S(d=>k5(d,l.fields)))}))})}}),i}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(j5))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),B5=(()=>{class e{constructor(t,n,i,o){this.http=t,this.occEndpoints=n,this.converter=i,this.requestsOptimizer=o}load(t,n){return this.http.get(this.getEndpoint(t,n)).pipe(this.converter.pipeable(os))}loadMany(t){let n=t.map(i=>({scopedData:i,url:this.getEndpoint(i.code,i.scope)}));return this.requestsOptimizer.scopedDataLoad(n).map(i=>T(v({},i),{data$:i.data$?.pipe(this.converter.pipeable(os))}))}getEndpoint(t,n){return this.occEndpoints.buildUrl("product",{urlParams:{productCode:t},scope:n})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe),f($5))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),Mg=class{},XI=class{},Ng=class{},Og=class{},xg=class{},xa=(function(e){return e.LIST="list",e.DETAILS="details",e.ATTRIBUTES="attributes",e.VARIANTS="variants",e.CODE="code",e.PRICE="price",e.STOCK="stock",e.UNIT="unit",e.PROMOTIONS="promotions",e.LIST_ITEM="list_item",e.MULTI_DIMENSIONAL="multi_dimensional",e.MULTI_DIMENSIONAL_AVAILABILITY="multi_dimensional_availability",e})(xa||{}),H5={backend:{occ:{endpoints:{product:{default:"products/${productCode}?fields=DEFAULT,averageRating,images(FULL),classifications,manufacturer,numberOfReviews,categories(FULL),baseOptions,baseProduct,variantOptions,variantType",list:"products/${productCode}?fields=code,purchasable,name,summary,price(formattedValue),images(DEFAULT,galleryIndex),baseProduct",details:"products/${productCode}?fields=averageRating,stock(DEFAULT),description,availableForPickup,code,url,price(DEFAULT),numberOfReviews,manufacturer,categories(FULL),priceRange,multidimensional,tags,images(FULL)",promotions:"products/${productCode}?fields=potentialPromotions(description)",attributes:"products/${productCode}?fields=classifications",price:"products/${productCode}?fields=price(formattedValue)",stock:"products/${productCode}?fields=stock(DEFAULT)",unit:"products/${productCode}?fields=sapUnit",list_item:"products/${productCode}?fields=code,name,price(formattedValue),images(DEFAULT),baseProduct"},productAvailabilities:"productAvailabilities?filters=${productCode}:${unitSapCode}",productReviews:"products/${productCode}/reviews",productReferences:"products/${productCode}/references?fields=DEFAULT,references(target(images(FULL)))",productSearch:{default:"products/search?fields=products(code,name,summary,configurable,configuratorType,multidimensional,price(FULL),images(DEFAULT),stock(FULL),averageRating,variantOptions,baseProduct,priceRange(maxPrice(formattedValue),minPrice(formattedValue))),facets,breadcrumbs,pagination(DEFAULT),sorts(DEFAULT),freeTextSearch,currentQuery,keywordRedirectUrl",carousel:"products/search?fields=products(code,purchasable,name,summary,price(formattedValue),stock(DEFAULT),images(DEFAULT,galleryIndex),baseProduct)",carouselMinimal:"products/search?fields=products(code,name,price(formattedValue),images(DEFAULT),baseProduct)"},productSearchByCategory:{default:"categories/${categoryCode}/products?fields=DEFAULT",code:"categories/${categoryCode}/products?fields=products(code)"},productSuggestions:"products/suggestions"}},loadingScopes:{product:{details:{include:[xa.LIST,xa.VARIANTS]}}}}},V5=(()=>{class e{constructor(){this.http=g(we),this.occEndpoints=g(He)}loadRealTimeStock(t,n){let i=this.occEndpoints.buildUrl("productAvailabilities",{urlParams:{productCode:t,unitSapCode:n}});return this.http.get(i).pipe(W(1),S(o=>o?.availabilityItems?.[0]?.unitAvailabilities?.[0]||{}),j(()=>I({})))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),fCe=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[xn(H5),{provide:Mg,useClass:B5},{provide:XI,useClass:V5},{provide:os,useExisting:_5,multi:!0},{provide:os,useExisting:M5,multi:!0},{provide:Ng,useClass:N5},{provide:fk,useExisting:R5,multi:!0},{provide:xg,useClass:U5},{provide:JI,useExisting:A5,multi:!0},{provide:Og,useClass:L5}],imports:[Ke]})}}return e})(),z5=(()=>{class e{constructor(){}convert(t,n){return n===void 0&&(n=v({},t)),n.baseStore=t.stores?.[0],delete n.stores,n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),G5=new C("LanguageNormalizer"),W5=new C("CurrencyNormalizer"),q5=new C("CountryNormalizer"),Y5=new C("RegionNormalizer"),vk=new C("BaseSiteNormalizer"),K5=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpointsService=n,this.converterService=i}loadLanguages(){return this.http.get(this.occEndpointsService.buildUrl("languages")).pipe(S(t=>t.languages??[]),this.converterService.pipeableMany(G5))}loadCurrencies(){return this.http.get(this.occEndpointsService.buildUrl("currencies")).pipe(S(t=>t.currencies??[]),this.converterService.pipeableMany(W5))}loadCountries(t){return this.http.get(this.occEndpointsService.buildUrl("countries",{queryParams:t?{type:t}:void 0})).pipe(S(n=>n.countries??[]),this.converterService.pipeableMany(q5))}loadRegions(t){return this.http.get(this.occEndpointsService.buildUrl("regions",{urlParam
12s:{isoCode:t}})).pipe(S(n=>n.regions??[]),this.converterService.pipeableMany(Y5))}loadBaseSite(t){return t||(t=this.occEndpointsService.getBaseUrl().split("/").pop()),this.http.get(this.occEndpointsService.buildUrl("baseSites",{},{baseSite:!1})).pipe(S(n=>n.baseSites.find(i=>i.uid===t)))}loadBaseSites(){return this.http.get(this.occEndpointsService.buildUrl("baseSites",{},{baseSite:!1})).pipe(S(t=>t.baseSites),this.converterService.pipeableMany(vk))}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),Lg=class{},Z5={backend:{occ:{endpoints:{languages:"languages",currencies:"currencies",countries:"countries",regions:"countries/${isoCode}/regions?fields=regions(name,isocode,isocodeShort)",baseSites:"basesites?fields=FULL"}}}},Q5=(()=>{class e{constructor(t,n,i,o){this.languageService=t,this.currencyService=n,this.occEndpoints=i,this.config=o,this.activeLang=pi(this.config,as),this.activeCurr=pi(this.config,cs),this.languageService.getActive().subscribe(s=>this.activeLang=s),this.currencyService.getActive().subscribe(s=>{this.activeCurr=s})}intercept(t,n){return t.url.includes(this.occEndpoints.getBaseUrl())&&(t=t.clone({setParams:{lang:this.activeLang??"",curr:this.activeCurr??""}})),n.handle(t)}static{this.\u0275fac=function(n){return new(n||e)(f(vi),f(hl),f(He),f(mi))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),J5=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[xn(Z5),{provide:Lg,useClass:K5},{provide:Qt,useExisting:Q5,multi:!0},{provide:vk,useExisting:z5,multi:!0}],imports:[Ke]})}}return e})(),X5=(()=>{class e{constructor(t){this.anonymousConsentsService=t}convert(t){return this.anonymousConsentsService.decodeAndDeserialize(t)}static{this.\u0275fac=function(n){return new(n||e)(f(pl))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),eY=(()=>{class e{constructor(t){this.converter=t}convert(t,n){return n===void 0&&(n=v({},t)),t&&t.results&&(n.results=t.results.map(i=>T(v({},i),{product:this.converter.convert(i.product,os)}))),n}static{this.\u0275fac=function(n){return new(n||e)(f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yk=new C("AnonymousConsentNormalizer"),eT=new C("ConsentTemplateNormalizer"),tY=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.logger=g(re)}loadAnonymousConsentTemplates(){let t=this.occEndpoints.buildUrl("anonymousConsentTemplates");return this.http.get(t).pipe(j(n=>{throw le(n,this.logger)}),S(n=>n.consentTemplates??[]),this.converter.pipeableMany(eT))}loadAnonymousConsents(){let t=this.occEndpoints.buildUrl("anonymousConsentTemplates");return this.http.head(t,{observe:"response"}).pipe(j(n=>{throw le(n,this.logger)}),S(n=>n.headers.get(ID)??""),this.converter.pipeable(yk))}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),nY=new C("CustomerCouponSearchResultNormalizer"),rY=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i}getCustomerCoupons(t,n,i,o){if(t===qu)return I({});let s=this.occEndpoints.buildUrl("customerCoupons",{urlParams:{userId:t}}),a=new Pe().set("sort",o||"startDate:asc");n&&(a=a.set("pageSize",n.toString())),i&&(a=a.set("currentPage",i.toString()));let c=this.newHttpHeader();return this.http.get(s,{headers:c,params:a}).pipe(this.converter.pipeable(nY))}turnOffNotification(t,n){let i=this.occEndpoints.buildUrl("couponNotification",{urlParams:{userId:t,couponCode:n}}),o=this.newHttpHeader();return this.http.delete(i,{headers:o})}turnOnNotification(t,n){let i=this.occEndpoints.buildUrl("couponNotification",{urlParams:{userId:t,couponCode:n}}),o=this.newHttpHeader();return this.http.post(i,{headers:o})}claimCustomerCouponWithCodeInBody(t,n){let i=this.occEndpoints.buildUrl("claimCustomerCoupon",{urlParams:{userId:t}}),o={couponCode:n},s=this.newHttpHeader();return this.http.post(i,o,{headers:s})}claimCustomerCoupon(t,n){let i=this.occEndpoints.buildUrl("claimCoupon",{urlParam
12s:{userId:t,couponCode:n}}),o=this.newHttpHeader();return this.http.post(i,{headers:o})}disclaimCustomerCoupon(t,n){let i=this.occEndpoints.buildUrl("claimCoupon",{urlParams:{userId:t,couponCode:n}}),o=this.newHttpHeader();return this.http.delete(i,{headers:o})}newHttpHeader(){return new oe({"Content-Type":"application/json"})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),Ek=new C("AddressNormalizer"),iY=new C("AddressesNormalizer"),ED=new C("AddressSerializer"),oY=new C("AddressValidationNormalizer"),Vu={"Content-Type":"application/json"},sY=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.logger=g(re)}loadAll(t){let n=this.occEndpoints.buildUrl("addresses",{urlParams:{userId:t}}),i=new oe(v({},Vu));return this.http.get(n,{headers:i}).pipe(j(o=>{throw le(o,this.logger)}),S(o=>o.addresses??[]),this.converter.pipeableMany(Ek))}add(t,n){let i=this.occEndpoints.buildUrl("addresses",{urlParams:{userId:t}}),o=new oe(v({},Vu));return n=this.converter.convert(n,ED),this.http.post(i,n,{headers:o}).pipe(j(s=>{throw le(s,this.logger)}))}update(t,n,i){let o=this.occEndpoints.buildUrl("addressDetail",{urlParams:{userId:t,addressId:n}}),s=new oe(v({},Vu));return i=this.converter.convert(i,ED),this.http.patch(o,i,{headers:s}).pipe(j(a=>{throw le(a,this.logger)}))}verify(t,n){let i=this.occEndpoints.buildUrl("addressVerification",{urlParams:{userId:t}}),o=new oe(v({},Vu));return t===qu&&(o=Ku.createHeader(OD,!0,o)),n=this.converter.convert(n,ED),this.http.post(i,n,{headers:o}).pipe(j(s=>{throw le(s,this.logger)}),this.converter.pipeable(oY))}delete(t,n){let i=this.occEndpoints.buildUrl("addressDetail",{urlParams:{userId:t,addressId:n}}),o=new oe(v({},Vu));return this.http.delete(i,{headers:o}).pipe(j(s=>{throw le(s,this.logger)}))}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),aY=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.logger=g(re)}loadConsents(t){let n=this.occEndpoints.buildUrl("consentTemplates",{urlParams:{userId:t}}),i=new oe({"Cache-Control":"no-cache"});return this.http.get(n,{headers:i}).pipe(j(o=>{throw le(o,this.logger)}),S(o=>o.consentTemplates??[]),this.converter.pipeableMany(eT))}giveConsent(t,n,i){let o=this.occEndpoints.buildUrl("consents",{urlParams:{userId:t}}),s=new Pe().set("consentTemplateId",n).set("consentTemplateVersion",i.toString()),a=new oe({"Content-Type":"application/x-www-form-urlencoded","Cache-Control":"no-cache"});return this.http.post(o,s,{headers:a}).pipe(j(c=>{throw le(c,this.logger)}),this.converter.pipeable(eT))}withdrawConsent(t,n){let i=new oe({"Cache-Control":"no-cache"}),o=this.occEndpoints.buildUrl("consentDetail",{urlParams:{userId:t,consentId:n}});return this.http.delete(o,{headers:i})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),Sk=new C("ProductInterestsNormalizer"),nL=new oe({"Content-Type":"application/json"}),cY=(()=>{class e{constructor(t,n,i,o){this.http=t,this.occEndpoints=n,this.config=i,this.converter=o,this.logger=g(re)}getInterests(t,n,i,o,s,a){let c=new Pe().set("sort",o||"name:asc");return n&&(c=c.set("pageSize",n.toString())),i&&(c=c.set("currentPage",i.toString())),s&&(c=c.set("productCode",s)),a&&(c=c.set("notificationType",a.toString())),this.http.get(this.occEndpoints.buildUrl("getProductInterests",{urlParams:{userId:t}}),{headers:nL,params:c}).pipe(this.converter.pipeable(Sk),j(u=>{throw le(u,this.logger)}))}removeInterest(t,n){let i=[];return n.productInterestEntry?.forEach(o=>{let s=new Pe().set("productCode",n.product?.code??"").set("notificationType",o.interestType);i.push(this.http.delete(this.occEndpoints.buildUrl("productInterests",{urlParams:{userId:t}}),{params:s}).pipe(j(a=>{throw le(a,this.logger)})))}),Ds(i)}addInterest(t,n,i){let o=new Pe().set("productCode",n).set("notificationType",i.toString());return this.http.post(this.occEndpoints.buildUrl("productInterests",{urlParam
12s:{userId:t}}),{},{headers:nL,params:o}).pipe(j(s=>{throw le(s,this.logger)}))}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f($r),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),uY=new C("NotificationPreferenceSerializer"),lY=new C("NotificationPreferenceNormalizer"),tT=class{};var rL=new oe({"Content-Type":"application/json"}),dY=(()=>{class e{constructor(t,n,i){this.http=t,this.converter=n,this.occEndpoints=i,this.logger=g(re)}loadAll(t){return this.http.get(this.occEndpoints.buildUrl("notificationPreference",{urlParams:{userId:t}}),{headers:rL}).pipe(S(n=>n.preferences??[]),this.converter.pipeableMany(lY),j(n=>{throw le(n,this.logger)}))}update(t,n){return n=this.converter.convert(n,uY),this.http.patch(this.occEndpoints.buildUrl("notificationPreference",{urlParams:{userId:t}}),{preferences:n},{headers:rL}).pipe(j(i=>{throw le(i,this.logger)}))}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(Qe),f(He))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),fY=new C("PaymentDetailsNormalizer"),SD={"Content-Type":"application/json"},hY=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i,this.logger=g(re)}loadAll(t){let n=this.occEndpoints.buildUrl("paymentDetailsAll",{urlParams:{userId:t}})+"?saved=true",i=new oe(v({},SD));return this.http.get(n,{headers:i}).pipe(j(o=>{throw le(o,this.logger)}),S(o=>o.payments??[]),this.converter.pipeableMany(fY))}delete(t,n){let i=this.occEndpoints.buildUrl("paymentDetail",{urlParams:{userId:t,paymentDetailId:n}}),o=new oe(v({},SD));return this.http.delete(i,{headers:o}).pipe(j(s=>{throw le(s,this.logger)}))}setDefault(t,n){let i=this.occEndpoints.buildUrl("paymentDetail",{urlParams:{userId:t,paymentDetailId:n}}),o=new oe(v({},SD));return this.http.patch(i,{billingAddress:{titleCode:"mr"},defaultPayment:!0},{headers:o}).pipe(j(s=>{throw le(s,this.logger)}))}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),Pg=class{},nT=class{},rT=class{},iT=class{},oT=class{},sT=class{},pY=(()=>{class e{constructor(t){this.converter=t}convert(t,n){return n===void 0&&(n=v({},t)),n.values=t.addresses?.map(i=>v({},this.converter.convert(i,Ek)))??[],n}static{this.\u0275fac=function(n){return new(n||e)(f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),gY={backend:{occ:{endpoints:{paymentDetailsAll:"users/${userId}/paymentdetails",paymentDetail:"users/${userId}/paymentdetails/${paymentDetailId}",anonymousConsentTemplates:"users/anonymous/consenttemplates",consentTemplates:"users/${userId}/consenttemplates",consents:"users/${userId}/consents",consentDetail:"users/${userId}/consents/${consentId}",addresses:"users/${userId}/addresses",addressDetail:"users/${userId}/addresses/${addressId}",addressVerification:"users/${userId}/addresses/verification",customerCoupons:"users/${userId}/customercoupons",claimCoupon:"users/${userId}/customercoupons/${couponCode}/claim",claimCustomerCoupon:"users/${userId}/customercoupons/claim",couponNotification:"users/${userId}/customercoupons/${couponCode}/notification",notificationPreference:"users/${userId}/notificationpreferences",productInterests:"users/${userId}/productinterests",getProductInterests:"users/${userId}/productinterests?fields=sorts,pagination,results(productInterestEntry,product(code))"}}}},mY=(()=>{class e{constructor(t,n,i){this.http=t,this.occEndpoints=n,this.converter=i}loadActiveList(t){let n=new Bo().set(hk,{sendUserIdAsHeader:!0});return this.http.get(this.getCostCentersEndpoint(t),{context:n}).pipe(this.converter.pipeable(dk))}getCostCentersEndpoint(t,n){return this.occEndpoints.buildUrl("getActiveCostCenters",{urlParams:{userId:t},queryParams:n})}static{this.\u0275fac=function(n){return new(n||e)(f(we),f(He),f(Qe))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),hCe=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[xn(gY),{provide:Pg,useClass:sY},{provide:nT,useClass:aY},{provide:_g,useClass:tY},{provide:sT,useClass:hY},{provide:iT,useClass:rY},{provide:tT,useClass:dY},{provide:oT,useClass:cY},{provide:rT,useClass:mY},{provide:Sk,useExisting:eY,multi:!0},{provide:yk,useExisting:X5,multi:!0},{provide:iY,useExisting:pY,multi:!0}],imports:[Ke]})}}return e})(),vY={backend:{occ:{prefix:"/occ/v2/"}}};function yY(e){if(e.backend===void 0||e.backend.occ===void 0||e.backend.occ.baseUrl===void 0)return"Please configure backend.occ.baseUrl before using storefront library!"}var EY=(()=>{class e{constructor(t){this.config=t}intercept(t,n){return this.requiresWithCredentials(t)&&(t=t.clone({withCredentials:!0})),n.handle(t)}requiresWithCredentials(t){return this.occConfig?.useWithCredentials!==void 0&&t.url.indexOf(this.occConfig?.prefix??"")>-1}get occConfig(){return this.config.backend?.occ}static{this.\u0275fac=function(n){return new(n||e)(f($r))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),SY=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:Qt,useExisting:EY,multi:!0},xn(vY),jT(yY)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[C5,J5]})}}return e})(),CY="occ-backend-base-url",DY="OCC_BACKEND_BASE_URL_VALUE",IY="media-backend-base-url",TY="MEDIA_BACKEND_BASE_URL_VALUE";function bY(e){let r=Ck(CY,e);return r&&r!==DY?{backend:{occ:{baseUrl:r}}}:{}}function wY(e){let r=Ck(IY,e);return r&&r!==TY?{backend:{media:{baseUrl:r}}}:{}}function Ck(e,r){let t=r.getTag(`name="${e}"`);return t&&t.content}function _Y(){return[Cp(bY,[eC]),Cp(wY,[eC])]}var AY=(()=>{class e{static forRoot(){return{ngModule:e,providers:[..._Y()]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),RY=(()=>{class e{constructor(t){this.config=t}expand(t,n){let i=this.config?.backend?.loadingScopes?.[t];if(i){let o=[...n],s=o.length;for(;s>0;){s--;let a=i[o[s]]?.include;if(a)for(let c of a)o.includes(c)||(o.splice(s,0,c),s++)}return o}return n}getMaxAge(t,n){return(this.config.backend?.loadingScopes?.[t]?.[n]?.maxAge??0)*1e3}getReloadTriggers(t,n){return this.config.backend?.loadingScopes?.[t]?.[n]?.reloadOn??[]}static{this.\u0275fac=function(n){return new(n||e)(f($r))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vr=Mn(f5),MY=w(Vr,e=>e.billingCountries),NY=w(MY,e=>e.entities),OY=w(NY,e=>Object.keys(e).map(r=>e[r])),_m=w(Vr,e=>e.customerCoupons),xY=w(_m,e=>gi(e)),LY=w(_m,e=>fn(e)),pCe=w(_m,e=>yt(e)),PY=w(Vr,e=>e.countries),Dk=w(PY,e=>e.entities),FY=w(Dk,e=>Object.keys(e).map(r=>e[r])),kY=e=>w(Dk,r=>Object.keys(r).length!==0?r[e]:null),YT=w(Vr,e=>e.notificationPreferences),UY=w(YT,e=>yt(e)),jY=w(YT,e=>yt(e).filter(r=>r.enabled)),$Y=w(YT,e=>fn(e)),KT=w(Vr,e=>e.payments),BY=w(KT,e=>yt(e)),HY=w(KT,e=>fn(e)),VY=w(KT,e=>gi(e)&&!fn(e)),ZT=w(Vr,e=>e.productInterests),zY=w(ZT,e=>yt(e)),GY=w(ZT,e=>fn(e)),ml=w(Vr,e=>e.regions),gCe=w(ml,e=>yt(e).entities),WY=w(ml,e=>({loaded:gi(e),loading:fn(e),regions:yt(e).entities,country:yt(e).country})),mCe=w(ml,e=>yt(e).country),vCe=w(ml,e=>fn(e)),yCe=w(ml,e=>gi(e)),QT=w(Vr,e=>e.addresses),qY=w(QT,e=>yt(e)),YY=w(QT,e=>fn(e)),KY=w(QT,e=>gi(e)&&!fn(e)),Am=w(Vr,e=>e.consents),aT=w(Am,e=>yt(e)),ZY=e=>w(aT,r=>r.find(t=>
12t.id===e)),QY=w(Am,fn),JY=w(Am,gi),XY=w(Am,hm),e9=w(Vr,e=>e.costCenters),ECe=w(e9,e=>yt(e));var t9=(()=>{class e{constructor(t,n,i){this.store=t,this.authService=n,this.userIdService=i}loadConsents(){this.userIdService.takeUserId().subscribe(t=>{this.store.dispatch(new Cg(t))})}getConsents(t=!1){return Xa(()=>t,this.store.pipe(A(aT),et(this.getConsentsResultLoading(),this.getConsentsResultSuccess()),_(([n,i,o])=>!i),k(([n,i,o])=>{(!n||n.length===0)&&(o||this.loadConsents())}),_(([n,i])=>!!n),S(([n,i])=>n)),this.store.pipe(A(aT)))}getConsentsResultLoading(){return this.store.pipe(A(QY))}getConsentsResultSuccess(){return this.store.pipe(A(JY))}getConsentsResultError(){return this.store.pipe(A(XY))}resetConsentsProcessState(){this.store.dispatch(new Dg)}getConsent(t){return Fe([this.authService.isUserLoggedIn(),this.userIdService.getUserId()]).pipe(_(([n,i])=>n&&i===Wu),O(()=>this.getConsents(!0)),W(1),O(()=>this.store.pipe(A(ZY(t)))),_(dn),S(n=>n.currentConsent))}isConsentGiven(t){return!!t&&!!t.consentGivenDate&&!t.consentWithdrawnDate}isConsentWithdrawn(t){return t?!!t?.consentWithdrawnDate:!0}giveConsent(t,n){this.userIdService.takeUserId().subscribe(i=>{this.store.dispatch(new Xu({userId:i,consentTemplateId:t,consentTemplateVersion:n}))})}getGiveConsentResultLoading(){return this.store.pipe(A(Xo(es)))}getGiveConsentResultSuccess(){return this.store.pipe(A(Qi(es)))}getGiveConsentResultError(){return this.store.pipe(A(Jo(es)))}resetGiveConsentProcessState(){return this.store.dispatch(new Ig)}withdrawConsent(t,n){this.userIdService.takeUserId().subscribe(i=>{this.store.dispatch(new bg({userId:i,consentCode:t,consentId:n}))})}getWithdrawConsentResultLoading(){return this.store.pipe(A(Xo(ts)))}getWithdrawConsentResultSuccess(){return this.store.pipe(A(Qi(ts)))}getWithdrawConsentResultError(){return this.store.pipe(A(Jo(ts)))}resetWithdrawConsentProcessState(){return this.store.dispatch(new wg)}filterConsentTemplates(t,n=[]){if(n.length===0)return t;let i=[];for(let o of t)o.id&&!n.includes(o.id)&&i.push(o);return i}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Pn),f(Ln))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),n9=(()=>{class e{isRequiredConsent(t){return!!(t&&this.anonymousConsentsConfig.anonymousConsents?.requiredConsents?.includes(t))}constructor(t,n,i,o,s,a,c){this.actions$=t,this.anonymousConsentTemplatesConnector=n,this.authService=i,this.anonymousConsentsConfig=o,this.anonymousConsentService=s,this.userConsentService=a,this.userIdService=c,this.logger=g(re),this.checkConsentVersions$=pe(()=>this.actions$.pipe(ne(PL),et(this.anonymousConsentService.getConsents()),Je(([u,l])=>this.anonymousConsentTemplatesConnector.loadAnonymousConsents().pipe(S(d=>{if(!d)return ge()&&this.logger.warn("No consents were loaded. Please check the Spartacus documentation as this could be a back-end configuration issue."),!1;let h=l.map(E=>E.templateVersion),p=d.map(E=>E.templateVersion);return this.detectUpdatedVersion(h,p)}),O(d=>d?I(new Dp):te),j(d=>I(new Tp(le(d,this.logger)))))))),this.loadAnonymousConsentTemplates$=pe(()=>this.actions$.pipe(ne(RL),et(this.anonymousConsentService.getTemplates()),Je(([u,l])=>this.anonymousConsentTemplatesConnector.loadAnonymousConsentTemplates().pipe(G(d=>{let h=!1;return l&&l.length!==0&&(h=this.anonymousConsentService.detectUpdatedTemplates(l,d)),[new Ip(d),new bp(h)]}),j(d=>I(new Tp(le(d,this.logger)))))))),this.transferAnonymousConsentsToUser$=pe(()=>this.actions$.pipe(ne(Ur),_(()=>!!this.anonymousConsentsConfig.anonymousConsents),et(this.actions$.pipe(ne(WT))),_(([,u])=>!!u),O(()=>this.anonymousConsentService.getConsents().pipe(et(this.userIdService.getUserId(),this.anonymousConsentService.getTemplates(),this.authService.isUserLoggedIn()),_(([,,,u])=>u),Je(([u,l,d,h])=>{let p=[];for(let E of u)if(this.anonymousConsentService.isConsentGiven(E)&&!this.isRequiredConsent(E.templateCode)){for(let D of d)if(D.id===E.templateCode){p.push(new Tg({userId:l,consentTemplateId:D.id,consentTemplateVersion:D.version}));break}}return p.length>0?p:te}))))),this.giveRequiredConsentsToUser$=pe(()=>this.actions$.pipe(ne(Ur),_(u=>!!(this.anonymousConsentsConfig.anonymousConsents&&this.anonymousConsentsConfig.anonymousConsents.requiredConsents&&u)),Je(()=>this.userConsentService.getConsentsResultSuccess().pipe(W(1),et(this.userIdService.getUserId(),this.userConsentService.getConsents(),this.authService.isUserLoggedIn()),_(([,,,u])=>u),k(([u,l,d,h])=>{u||this.userConsentService.loadConsents()}),S(([u,l,d,h])=>({userId:l,templates:d})),Je(({userId:u,templates:l})=>{let d=[];for(let h of l)this.userConsentService.isConsentWithdrawn(h.currentConsent)&&this.isRequiredConsent(h.id)&&d.push(new Xu({userId:u,consentTemplateId:h.id,consentTemplateVersion:h.version}));return d.length>0?d:te}
12)))))}detectUpdatedVersion(t,n){if(t.length!==n.length)return!0;for(let i=0;i<n.length;i++)if(t[i]!==n[i])return!0;return!1}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(p5),f(Pn),f(_P),f(pl),f(t9),f(Ln))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),r9=[n9],i9=(()=>{class e{constructor(t,n,i){this.baseSiteService=t,this.javaRegExpConverter=n,this.winRef=i,this.scopes=["context"],this.configFactory=()=>fr(this.resolveConfig()),this.federatedLoginService=g(fl)}get currentUrl(){return this.winRef.location.href}resolveConfig(){return this.baseSiteService.getAll().pipe(S(t=>{let n=this.currentUrl;this.federatedLoginService.enabled&&(this.federatedLoginService.detectContext(),this.federatedLoginService.isLoginDomain&&this.federatedLoginService.origin&&(n=this.federatedLoginService.origin));let i=t?.find(o=>this.isCurrentBaseSite(o,n));if(!i)throw new Error(`Error: Cannot get base site config! Current url (${n}) doesn't match any of url patterns of any base sites.`);return i}),S(t=>this.getConfig(t)),W(1))}getConfig(t){return{context:{urlParameters:this.getUrlParams(t.urlEncodingAttributes),[Xi]:[t.uid],[as]:this.getIsoCodes(t.baseStore?.languages,t.defaultLanguage||t.baseStore?.defaultLanguage),[cs]:this.getIsoCodes(t.baseStore?.currencies,t.baseStore?.defaultCurrency),[KL]:[t.theme]}}}isCurrentBaseSite(t,n){return(t.urlPatterns||[]).findIndex(o=>this.javaRegExpConverter.toJsRegExp(o)?.test(n))!==-1}getUrlParams(t){let n="storefront";return(t||[]).map(i=>i===n?Xi:i)}getIsoCodes(t,n){if(t&&n)return this.moveToFirst(t,o=>o.isocode===n.isocode).map(o=>o.isocode)}moveToFirst(t,n){t=[...t];let i=t.findIndex(n);if(i!==-1){let[o]=t.splice(i,1);t.unshift(o)}return t}static{this.\u0275fac=function(n){return new(n||e)(f(us),f(k4),f(Nt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),JT=(()=>{class e{constructor(t){this.adapter=t}getLanguages(){return this.adapter.loadLanguages()}getCurrencies(){return this.adapter.loadCurrencies()}getCountries(t){return this.adapter.loadCountries(t)}getRegions(t){return this.adapter.loadRegions(t)}getBaseSite(t){return this.adapter.loadBaseSite(t)}getBaseSites(){return this.adapter.loadBaseSites()}static{this.\u0275fac=function(n){return new(n||e)(f(Lg))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),iL=(()=>{class e extends to{static{this.type="LanguageSetEvent"}}return e})(),oL=(()=>{class e extends to{static{this.type="CurrencySetEvent"}}return e})(),o9=(()=>{class e{constructor(t,n){this.actionsSubject=t,this.eventService=n,this.register()}register(){this.registerSetLanguage(),this.registerSetCurrency()}registerSetLanguage(){let t=this.actionsSubject.pipe(ne(vm),S(n=>eo(iL,{activeLanguage:n.payload})));this.eventService.register(iL,t)}registerSetCurrency(){let t=this.actionsSubject.pipe(ne(mm),S(n=>eo(oL,{activeCurrency:n.payload})));this.eventService.register(oL,t)}static{this.\u0275fac=function(n){return new(n||e)(f(Rn),f(ds))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),s9=(()=>{class e{constructor(t){}static{this.\u0275fac=function(n){return new(n||e)(f(o9))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),XT=(()=>{class e{constructor(t,n,i){this.siteContextParams=t,this.serializer=n,this.injector=i,this.subscription=new ce,this.contextValues={},this.isNavigating=!1,this.initialized$=new lt(1),this.isInitialized=!1}init(){this.initOnce()}initOnce(){return this.isInitialized||(this.isInitialized=!0,this.initInternal()),this.initialized$.asObservable()}initInternal(){this.router=this.injector.get(Ce),this.location=this.injector.get(sn);let t=this.siteContextParams.getUrlEncodingParameters();t.length&&(this.setContextParamsFromRoute(this.location.path(!0)),this.subscribeChanges(t),this.subscribeRouting()),this.initialized$.next(void 0),this.initialized$.complete()}subscribeChanges(t){t.forEach(n=>{let i=this.siteContextParams.getSiteContextService(n);i&&this.subscription.add(i.getActive().subscribe(o=>{if(!this.isNavigating&&this.contextValues[n]&&this.contextValues[n]!==o){let s=this.router.parseUrl(this.router.url),a=this.router.serializeUrl(s);this.location.replaceState(a)}this.contextValues[n]=o}))})}subscribeRouting(){this.subscription.add(this.router.events.pipe(_(t=>t instanceof Jt||t instanceof ot||t instanceof An||t instanceof Rt)).subscribe(t=>{this.isNavigating=t instanceof Jt,this.isNavigating&&this.setContextParamsFromRoute(t.url)}))}setContextParamsFromRoute(t){let{params:n}=this.serializer.urlExtractContextParameters(t);
12Object.keys(n).forEach(i=>this.siteContextParams.setValue(i,n[i]))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(BT),f(qp),f(de))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),a9=(()=>{class e{constructor(t,n){this.baseSiteService=t,this.configInit=n,this.siteContextRoutesHandler=g(XT)}initialize(){return vo(this.configInit.getStable("context").pipe(O(()=>this.siteContextRoutesHandler.initOnce()),O(()=>this.setFallbackValue())))}setFallbackValue(){return this.configInit.getStable("context").pipe(k(t=>this.setDefaultFromConfig(t)))}setDefaultFromConfig(t){let n=pi(t,Xi);!this.baseSiteService.isInitialized()&&n&&this.baseSiteService.setActive(n)}static{this.\u0275fac=function(n){return new(n||e)(f(us),f(Nn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),c9=(()=>{class e{constructor(t,n,i){this.statePersistenceService=t,this.currencyService=n,this.config=i,this.initialized$=new lt(1)}initSync(){return this.statePersistenceService.syncWithStorage({key:cs,state$:this.currencyService.getActive(),onRead:t=>this.onRead(t)}),this.initialized$}onRead(t){!this.currencyService.isInitialized()&&t&&this.currencyService.setActive(t),this.initialized$.closed||(this.initialized$.next(void 0),this.initialized$.complete())}static{this.\u0275fac=function(n){return new(n||e)(f(ll),f(hl),f(mi))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),u9=(()=>{class e{constructor(t,n,i){this.currencyService=t,this.currencyStatePersistenceService=n,this.configInit=i,this.siteContextRoutesHandler=g(XT)}initialize(){return vo(this.configInit.getStable("context").pipe(O(()=>this.siteContextRoutesHandler.initOnce()),O(()=>this.currencyStatePersistenceService.initSync()),O(()=>this.setFallbackValue())))}setFallbackValue(){return this.configInit.getStable("context").pipe(k(t=>this.setDefaultFromConfig(t)))}setDefaultFromConfig(t){let n=pi(t,cs);!this.currencyService.isInitialized()&&n&&this.currencyService.setActive(n)}static{this.\u0275fac=function(n){return new(n||e)(f(hl),f(c9),f(Nn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),l9=(()=>{class e{constructor(t,n,i){this.statePersistenceService=t,this.languageService=n,this.config=i,this.initialized$=new lt(1)}initSync(){return this.statePersistenceService.syncWithStorage({key:as,state$:this.languageService.getActive(),onRead:t=>this.onRead(t)}),this.initialized$}onRead(t){!this.languageService.isInitialized()&&t&&this.languageService.setActive(t),this.initialized$.closed||(this.initialized$.next(void 0),this.initialized$.complete())}static{this.\u0275fac=function(n){return new(n||e)(f(ll),f(vi),f(mi))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),d9=(()=>{class e{constructor(t,n,i){this.languageService=t,this.languageStatePersistenceService=n,this.configInit=i,this.siteContextRoutesHandler=g(XT),this.federatedLoginService=g(fl)}initialize(){return vo(this.configInit.getStable("context").pipe(O(()=>this.setFromFederatedLoginContext()),O(()=>this.siteContextRoutesHandler.initOnce()),O(()=>this.languageStatePersistenceService.initSync()),O(()=>this.setFallbackValue())))}setFallbackValue(){return this.configInit.getStable("context").pipe(k(t=>this.setDefaultFromConfig(t)))}setDefaultFromConfig(t){let n=pi(t,as);!this.languageService.isInitialized()&&n&&this.languageService.setActive(n)}setFromFederatedLoginContext(){let t=this.federatedLoginService.language;return this.federatedLoginService.enabled&&t?I(this.languageService.setActive(t)):I(void 0)}static{this.\u0275fac=function(n){return new(n||e)(f(vi),f(l9),f(Nn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function f9(e){if(pi(e,Xi)===void 0)return"Please configure context.parameters.baseSite before using storefront library!"}function h9(){return{context:{[as]:["en","de","ja","zh","ru","fr","tr","it","es","uk","pl","nl","hi","ar","pt","bn","pa"],[cs]:["USD","EUR","JPY","GBP","AUD","CAD","CHF","CNY","SEK","NZD","MXN","SGD","HKD","NOK","KRW","TRY","RUB","INR","BRL","ZAR"]}}}function p9(e){return()=>{e.initialize()}}function g9(e){return()=>{e.initialize()}}function m9(e){return()=>{e.initialize()}}var v9=[{provide:wt,useFactory:g9,deps:[d9],multi:!0},{provide:wt,useFactory:p9,deps:[u9],multi:!0},{provide:wt,useFactory:m9,deps:[a9],multi:!0}];function y9(e){return()=>fr(e.getStable("context"))}var E9=[us,vi,hl,{provide:wt,useFactory:y9,deps:[Nn],multi:!0}],S9=[BT,qp,{provide:Or,useExisting:qp}],C9=(()=>{class e{constructor(t,n){this.actions$=t,this.siteConnector=n,this.logger=g(re),this.loadBaseSite$=pe(()=>this.actions$.pipe(ne(bT),gr(()=>this.siteConnector.getBaseSite().pipe(S(i=>{if(i)return new Ap(i);throw new Error("BaseSite is not found")}),j(i=>I(new _p(le(i,this.logger)))))))),this.loadBaseSites$=pe(()=>this.actions$.pipe(ne(_T),gr(()=>this.siteConnector.getBaseSites().pipe(S(i=>new Np(i)),j(i=>
12I(new Mp(le(i,this.logger))))))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(JT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),D9=(()=>{class e{constructor(t,n,i){this.actions$=t,this.siteConnector=n,this.state=i,this.logger=g(re),this.loadCurrencies$=pe(()=>this.actions$.pipe(ne(MT),gr(()=>this.siteConnector.getCurrencies().pipe(S(o=>new Pp(o)),j(o=>I(new Lp(le(o,this.logger)))))))),this.activateCurrency$=pe(()=>this.state.select(jD).pipe(tc(2,1),_(([o])=>!!o),S(([o,s])=>new kp({previous:o,current:s}))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(JT),f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),I9=(()=>{class e{constructor(t,n,i){this.actions$=t,this.siteConnector=n,this.state=i,this.logger=g(re),this.loadLanguages$=pe(()=>this.actions$.pipe(ne(OT),gr(()=>this.siteConnector.getLanguages().pipe(S(o=>new $p(o)),j(o=>I(new jp(le(o,this.logger)))))))),this.activateLanguage$=pe(()=>this.state.select($D).pipe(tc(2,1),_(([o])=>!!o),S(([o,s])=>new Hp({previous:o,current:s}))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(JT),f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),T9=[I9,D9,C9],b9={entities:null,details:{},activeSite:""};function w9(e=b9,r){switch(r.type){case wT:return T(v({},e),{details:r.payload});case RT:{let t={};return e.entities&&(t=e.entities[r.payload]),T(v({},e),{details:t,activeSite:r.payload})}case AT:{let n=r.payload.reduce((o,s)=>T(v({},o),{[s.uid??""]:s}),v({},e.entities)),i=n[e.activeSite];return T(v({},e),{details:i,entities:n})}}return e}var _9={entities:null,activeCurrency:null};function A9(e=_9,r){switch(r.type){case NT:{let n=r.payload.reduce((i,o)=>T(v({},i),{[o.isocode??""]:o}),v({},e.entities));return T(v({},e),{entities:n})}case mm:{let t=r.payload;return T(v({},e),{activeCurrency:t})}}return e}var R9={entities:null,activeLanguage:null};function M9(e=R9,r){switch(r.type){case xT:{let n=r.payload.reduce((i,o)=>T(v({},i),{[o.isocode??""]:o}),v({},e.entities));return T(v({},e),{entities:n})}case vm:{let t=r.payload;return T(v({},e),{activeLanguage:t})}}return e}function N9(){return{languages:M9,currencies:A9,baseSite:w9}}var Ik=new C("SiteContextReducers"),O9={provide:Ik,useFactory:N9};function x9(){return{state:{ssrTransfer:{keys:{[LT]:ls.TRANSFER_STATE}}}}}var L9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[no(x9),O9],imports:[Ke,xr.forFeature(LT,Ik),Lr.forFeature(T9)]})}}return e})();function P9(e,r){return r.context?.[Xi]?null:e}var F9=(()=>{class e{static forRoot(){return{ngModule:e,providers:[no(h9),m6,...E9,...S9,jT(f9),{provide:ym,useFactory:P9,deps:[i9,mi],multi:!0},...v9]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[ro,L9,s9]})}}return e})(),k9=!1;function U9(e=k9,r){return r.type===xL?r.dismissed:e}var j9=!1;function $9(e=j9,r){return r.type===LL?r.updated:e}var B9=[];function sL(e,r,t){return e?e.map(n=>(n.templateCode===r&&(n=T(v({},n),{consentState:t})),n)):[]}function H9(e=B9,r){switch(r.type){case NL:return sL(e,r.templateCode,Aa.GIVEN);case OL:return sL(e,r.templateCode,Aa.WITHDRAWN);case ML:return r.payload}return e}function V9(){return{templates:Zi(il),consents:H9,ui:qo({bannerDismissed:U9,updated:$9})}}var Tk=new C("AnonymousConsentsReducers"),z9={provide:Tk,useFactory:V9};function G9(e){return function(r,t){return r!==void 0&&(t.type===io||t.type===or)&&(r=T(v({},r),{templates:{}})),e(r,t)}}var W9=[G9],q9=(()=>{class e{constructor(t,n,i){this.statePersistenceService=t,this.store=n,this.anonymousConsentsService=i,this.subscription=new ce,this.key="anonymous-consents"}initSync(){this.subscription.add(this.statePersistenceService.syncWithStorage({key:this.key,state$:this.getAuthState(),onRead:t=>this.onRead(t)}))}getAuthState(){return this.store.select(ol)}onRead(t){let n=t?.templates,i=t?.consents,o=t?.ui;n?.success&&this.store.dispatch(new Ip(n.value??[])),i&&this.anonymousConsentsService.setConsents(i),o&&(this.anonymousConsentsService.toggleBannerDismissed(o?.bannerDismissed),this.anonymousConsentsService.toggleTemplatesUpdated(o?.updated))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(ll),f(ee),f(pl))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Y9(e){return()=>e.initSync()}var K9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[z9,{provide:wt,useFactory:Y9,deps:[q9],multi:!0}
12],imports:[Ke,ro,xr.forFeature(AL,Tk,{metaReducers:W9}),Lr.forFeature(r9)]})}}return e})(),SCe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...l5,pl,xn(Nq)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[K9]})}}return e})(),Z9={backend:{occ:{endpoints:{component:"users/${userId}/cms/components/${id}",components:"users/${userId}/cms/components",pages:"users/${userId}/cms/pages",page:"users/${userId}/cms/pages/${id}"}}},cmsComponents:{},componentsLoading:{pageSize:50}},eb="cms",Rm="[Cms] Navigation Entity",ja="[Cms] Component Entity",tb="[Cms] Load Component",nb="[Cms] Load Component Fail",rb="[Cms] Load Component Success",ib="[Cms] Get Component from Page",bk="[Cms] Clear Component",Fg=class extends Xt{constructor(r){super(ja,r.uid),this.payload=r,this.type=tb}},kg=class extends Bt{constructor(r){super(ja,r.uid,r.error),this.payload=r,this.type=nb}},cT=class extends vt{constructor(r){super(ja,r.uid||r.component.uid||""),this.payload=r,this.type=rb}},uT=class extends vt{constructor(r){super(ja,[].concat(r).map(t=>t.component.uid)),this.payload=r,this.type=ib}},lT=class extends ir{constructor(r){super(ja,r.uid),this.payload=r,this.type=bk}},wk="[Cms] Load NavigationEntry items",Q9="[Cms] Load NavigationEntry items Fail",_k="[Cms] Load NavigationEntry items Success",dT=class extends Xt{constructor(r){super(Rm,r.nodeId),this.payload=r,this.type=wk}},Ug=class extends Bt{constructor(r,t){super(Rm,r,t),this.payload=t,this.type=Q9}},fT=class extends vt{constructor(r){super(Rm,r.nodeId),this.payload=r,this.type=_k}},Ak="[Cms] Load Page Data",Rk="[Cms] Load Page Data Fail",ob="[Cms] Load Page Data Success",Mk="[Cms] Set Page Success Index",Nk="[Cms] Set Page Fail Index",_a=class extends Xt{constructor(r){super(r.type??"",r.id),this.payload=r,this.type=Ak}},hT=class extends Bt{constructor(r,t){super(r.type??"",r.id,t),this.type=Rk}},pT=class extends vt{constructor(r,t){super(r.type??"",r.id,t),this.type=ob}},gT=class extends vt{constructor(r,t){super(r.type??"",r.id,t),this.type=Mk}},mT=class extends Bt{constructor(r,t){super(r.type??"",r.id,new Error("Failed to set cms page index")),this.payload=t,this.type=Nk}};var sb=Mn(eb),J9=w(sb,e=>e.components),Ok=e=>w(J9,r=>$q(r,e)),xk=(e,r)=>w(Ok(e),t=>t&&t.pageContext&&t.pageContext[r]||kr),X9=(e,r)=>w(xk(e,r),t=>yt(t)),eK=e=>w(Ok(e),r=>r?r.component:void 0),tK=(e,r)=>w(eK(e),X9(e,r),(t,n)=>{switch(n){case!0:return t;case!1:return null;case void 0:return}}),nK=w(sb,e=>e.navigation),rK=e=>w(nK,r=>Pa(r,e)),iK=e=>w(rK(e),r=>yt(r)),oK=e=>e.pageData.entities,sK=(e,r)=>{switch(r){case Se.CONTENT_PAGE:return e.content;case Se.PRODUCT_PAGE:return e.product;case Se.CATEGORY_PAGE:return e.category;case Se.CATALOG_PAGE:return e.catalog;default:return{entities:{}}}},aK=e=>{let r=new Set;if(e&&e.slots)for(let t of Object.keys(e.slots))for(let n of e.slots[t].components||[])r.add(n.flexType??"");return Array.from(r)},Lk=w(sb,e=>e.page),cK=w(Lk,e=>e.index),uK=e=>w(cK,r=>sK(r,e.type)),Pk=e=>w(uK(e),r=>Pa(r,e.id)),Fk=e=>w(Pk(e),r=>yt(r)),lK=w(Lk,oK),jg=e=>w(lK,Fk(e),(r,t)=>r[t]),dK=e=>w(jg(e),r=>aK(r)),fK=(e,r)=>w(jg(e),t=>{if(t)return t.slots?.[r]||{components:[]}});var hK="current";function hi(e,r){return e?r&&e.type===Se.CONTENT_PAGE?`${e.type}`:`${e.type}-${e.id}`:hK}var Mm=(()=>{class e{constructor(t,n){this.store=t,this.routingService=n,this.components={}}getCurrentPage(){return this.routingService.getPageContext().pipe(O(t=>this.store.select(jg(t))))}getComponentData(t,n){if(t==="")return I(null);let i=hi(n,!0);this.components[t]||(this.components[t]={});let o=this.components[t];return o[i]||(o[i]=this.createComponentData(t,n)),o[i]}createComponentData(t,n){if(!n)return this.routingService.getPageContext().pipe(_(a=>!!a),O(a=>this.getComponentData(t,a)));let i=hi(n,!0),o=Fe([this.routingService.getNextPageContext(),this.store.pipe(A(xk(t,i)))]).pipe(pn(Ti),k(([a,c])=>{let u=c.loading||c.success||c.error,l=a?hi(a,!0)===i:!1;!u&&!l&&this.store.dispatch(new Fg({uid:t,pageContext:n}))})),s=this.store.pipe(A(tK(t,i)),_(dn));return Ai(()=>o.subscribe(),()=>s).pipe(Xe({bufferSize:1,refCount:!0}))}getContentSlot(t){return this.routingService.getPageContext().pipe(O(n=>this.store.pipe(A(fK(n,t)),_(dn))))}getNavigationEntryItems(t){return this.store.pipe(A(iK(t)))}loadNavigationItems(t,n){this.store.dispatch(new dT({nodeId:t,items:n}))}refreshLatestPage(){this.routingService.getPageContext().pipe(W(1)).subscribe(t=>this.store.dispatch(new _a(t)))}refreshPageById(t){let n={id:t};this.store.dispatch(new _a(n))}refreshComponent(t,n){this.store.dispatch(new Fg({uid:t,pageContext:n}))}getPageState(t){return this.store.pipe(A(jg(t)))}getPageComponentTypes(t){return this.store.pipe(A(dK(t)))}hasPage(t,n=!1){return this.store.pipe(A(Pk(t)),k(i=>{let o=i.loading||i.success||i.error,s=n&&!i.loading;(!o||s)&&(this.store.dispatch(new _a(t)),n=!1)}),_(i=>i.hasOwnProperty("value")?!!(i.success||i.error&&!i.loading):!1),S(i=>!!i.success),j(()=>I(!1)))}getPage(t,n=!1){return this.hasPage(t,n).pipe(O(i=>i?this.getPageState(t):I(null)))}getPageIndex(t){return this.store.pipe(A(Fk(t)))}setPageFailIndex(t,n){this.store.dispatch(new mT(t,n))}
12clearComponentState(t){(t??Object.keys(this.components)).forEach(i=>{delete this.components[i],this.store.dispatch(new lT({uid:i}))})}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(so))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),pK={pageMeta:{resolvers:[{property:"title",method:"resolveTitle"},{property:"heading",method:"resolveHeading"},{property:"breadcrumbs",method:"resolveBreadcrumbs"},{property:"description",method:"resolveDescription"},{property:"image",method:"resolveImage"},{property:"robots",method:"resolveRobots"},{property:"canonicalUrl",method:"resolveCanonicalUrl"}],canonicalUrl:{forceHttps:!0,forceWww:!1,removeQueryParams:!0,forceTrailingSlash:!0}}},ln=class{getScore(r){let t=0;return this.pageType&&(t+=r.type===this.pageType?1:-1),this.pageTemplate&&(t+=r.template===this.pageTemplate?1:-1),this.pageUid&&(t+=r.pageId===this.pageUid?10:-10),t}hasMatch(r){return this.getScore(r)>0}getPriority(r){return this.getScore(r)}},jr=class{},gK=(()=>{class e{constructor(t){this.translation=t}resolveBreadcrumbs({url:t,pageMetaConfig:n}){let i=n?.breadcrumb;return i?typeof i!="string"&&i.raw?I([{link:t,label:i.raw}]):this.translateBreadcrumbLabel(i).pipe(S(o=>[{label:o,link:t}])):I([])}translateBreadcrumbLabel(t){let n=typeof t=="string"?t:t.i18n;return this.getParams().pipe(O(i=>this.translation.translate(n??"",i??{})))}getParams(){return I({})}static{this.\u0275fac=function(n){return new(n||e)(f(jr))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mK=(()=>{class e{constructor(t,n){this.activatedRoutesService=t,this.injector=n,this.routes$=this.activatedRoutesService.routes$.pipe(S(i=>i=i.slice(1,i.length))),this.routesWithExtras$=this.routes$.pipe(S(i=>i.reduce((o,s)=>{let a=o.length?o[o.length-1]:{route:null,resolver:this.injector.get(gK),url:""},c=this.getResolver(s)??a.resolver,u=this.getUrlPart(s),l=a.url+(u?`/${u}`:"");return o.concat({route:s,resolver:c,url:l})},[])),Xe({bufferSize:1,refCount:!0}))}resolveBreadcrumbs(t){return this.routesWithExtras$.pipe(S(n=>t?.includeCurrentRoute?n:this.trimCurrentRoute(n)),O(n=>n.length?Fe(n.map(i=>this.resolveRouteBreadcrumb(i))):I([])),S(n=>n.flat()))}getResolver(t){let n=this.getPageMetaConfig(t);return typeof n!="string"&&n?.resolver?this.injector.get(n.resolver,null):null}resolveRouteBreadcrumb({route:t,resolver:n,url:i}){let o=n;return typeof o.resolveBreadcrumbs=="function"?o.resolveBreadcrumbs({route:t,url:i,pageMetaConfig:this.getPageMetaConfig(t)}):I([])}trimCurrentRoute(t){let n=t.length-1;for(;t[n]?.route?.url.length===0&&n>=0;)n--;return t.slice(0,n)}getUrlPart(t){return t.url.map(n=>n.path).join("/")}getPageMetaConfig(t){return t?.routeConfig?.data?.cxPageMeta}static{this.\u0275fac=function(n){return new(n||e)(f(EP),f(de))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kk=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),Uk=(()=>{class e{constructor(t,n){this.pageMetaConfig=t,this.winRef=n}getCanonicalUrl(t,n){let i=v(v({},this.pageMetaConfig?.pageMeta?.canonicalUrl),t);return this.buildCanonicalUrl(n??this.winRef.location.href??"",i)}buildCanonicalUrl(t,n){return n.forceHttps&&(t=t.replace(/^http(?!s):/i,"https:")),n.forceWww&&(t=t.replace(/^(https?:\/\/)(?!www\.)(.*)/i,"$1www.$2")),n.removeQueryParams&&(t=this.removeQueryParams(t,n)),n.forceTrailingSlash&&(t=t.replace(/^([^\?]+[^\/\?]$)$/i,"$1/")),t}removeQueryParams(t,n){let i=t.indexOf("?");if(i>-1){let o=t.substring(0,i),s=new URLSearchParams(t.substring(i));t=o,Array.isArray(n.removeQueryParams)&&(n.removeQueryParams.forEach(a=>{s.delete(a)}),s.toString().length>0&&(t=`${o}?${s.toString()}`))}return t}static{this.\u0275fac=function(n){return new(n||e)(f(kk),f(Nt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Nm=(()=>{class e{constructor(t,n,i,o,s){this.cmsService=t,this.translation=n,this.routingPageMetaResolver=i,this.router=o,this.pageLinkService=s,this.page$=We(()=>this.cmsService.getCurrentPage()).pipe(_(a=>!!a)),this.title$=this.page$.pipe(S(a=>a.title)),this.description$=this.page$.pipe(S(a=>a.description)),this.robots$=this.page$.pipe(S(a=>a.robots||[])),this.homeBreadcrumb$=this.translation.translate("common.home").pi
12pe(S(a=>[{label:a,link:"/"}])),this.breadcrumb$=Fe([this.homeBreadcrumb$,We(()=>this.routingPageMetaResolver?.resolveBreadcrumbs())]).pipe(S(a=>a.flat()),Xe({bufferSize:1,refCount:!0}))}resolveTitle(){return this.title$}resolveDescription(){return this.description$}resolveBreadcrumbs(){return this.breadcrumb$}resolveRobots(){return this.robots$}resolveCanonicalUrl(t){return this.router.events.pipe(_(n=>n instanceof ot),vr(null),S(()=>this.pageLinkService.getCanonicalUrl(t)))}static{this.\u0275fac=function(n){return new(n||e)(f(Mm),f(jr),f(mK),f(Ce),f(Uk))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vK=(()=>{class e extends ln{constructor(t){super(),this.basePageMetaResolver=t,this.pageType=Se.CONTENT_PAGE}resolveTitle(){return this.basePageMetaResolver.resolveTitle()}resolveDescription(){return this.basePageMetaResolver.resolveDescription()}resolveBreadcrumbs(){return this.basePageMetaResolver.resolveBreadcrumbs()}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.basePageMetaResolver.resolveCanonicalUrl()}static{this.\u0275fac=function(n){return new(n||e)(f(Nm))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),yK=(()=>{class e{static forRoot(){return{ngModule:e,providers:[xn(pK)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[{provide:ln,useExisting:vK,multi:!0}]})}}return e})();function Om(e=0,r){return t=>{let n=[];return t.pipe(k(i=>n.push(i)),Ri(e,r),S(()=>n),k(()=>n=[]))}}var EK=(()=>{class e extends qT{static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),jk=(()=>{class e{constructor(t){this.cmsDataConfig=t}mergePageStructure(t,n){return this.mergePage(t,n).pipe(O(i=>this.mergeSlots(i)))}shouldIgnoreBackend(t){return this.getPageFromConfig(t).pipe(S(n=>!!n?.ignoreBackend))}getComponentFromConfig(t){return I(this.getComponentById(t))}getComponentsFromConfig(t){return I(t.map(n=>this.getComponentById(n)))}getPageFromConfig(t){return I(this.cmsDataConfig.cmsStructure?.pages?this.cmsDataConfig.cmsStructure.pages.find(n=>n.pageId===t):void 0)}mergePage(t,n){return this.getPageFromConfig(t).pipe(O(i=>i?(n.page||(n.page=v({},i),n.page.slots={}),n.page.slots||(n.page.slots={}),this.mergeSlots(n,i.slots)):I(n)))}mergeSlots(t,n){if(!n&&this.cmsDataConfig.cmsStructure?.slots&&(n=this.cmsDataConfig.cmsStructure.slots),!n)return I(t);for(let i of Object.keys(n))if(t.page?.slots&&!Object.keys(t.page.slots).includes(i)){t.page.slots[i]={};for(let o of this.getComponentsByPosition(n,i))t.page.slots[i].components??=[],t.page.slots[i].components.push({uid:o.uid,flexType:o.flexType,typeCode:o.typeCode}),t.components??=[],t.components.push(o)}return I(t)}getComponentsByPosition(t,n){let i=[];if(t[n]?.componentIds){for(let o of t[n].componentIds??[])if(this.cmsDataConfig.cmsStructure?.components){let s=this.cmsDataConfig.cmsStructure.components[o];s&&i.push(v({uid:o},s))}}return i}getComponentById(t){return this.cmsDataConfig.cmsStructure?.components?.[t]}static{this.\u0275fac=function(n){return new(n||e)(f(EK))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$k=(()=>{class e{constructor(t,n,i){this.cmsStructureConfigService=t,this.cmsComponentAdapter=n,this.config=i}get(t,n){return this.cmsStructureConfigService.getComponentFromConfig(t).pipe(O(i=>i?I(i):this.cmsComponentAdapter.load(t,n)))}getList(t,n){return this.cmsStructureConfigService.getComponentsFromConfig(t).pipe(O(i=>{let o=i.reduce((s,a,c)=>(a===void 0&&s.push(t[c]),s),[]);if(o.length>0){let s=this.config.componentsLoading?.pageSize||o.length,a=Math.ceil(o.length/s),c=[],u=0;for(;u<a;)c.push(this.cmsComponentAdapter.findComponentsByIds(o.slice(u*s,(u+1)*s),n)),u++;return yo(...c).pipe(S(l=>[...i.filter(Boolean)].concat(...l)))}else return I(i)}))}static{this.\u0275fac=function(n){return new(n||e)(f(jk),f(Ag),f(qT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),SK=(()=>{class e{constructor(t,n){this.actions$=t,this.cmsComponentConnector=n,this.logger=g(re),this.contextChange$=this.actions$.pipe(ne(or,io,Ur)),this.loadComponent$=pe(()=>({scheduler:i,debounce:o=0}={})=>this.actions$.pipe(ne(tb),mr(s=>hi(s.payload.pageContext)),G(s=>s.pipe(Om(o,i),G(a=>this.loadComponentsEffect(a.map(c=>c.payload.uid),a[0].payload.pageContext??{id:""})))),ul(this.contextChange$)))}loadComponentsEffect(t,n){return this.cmsComponentConnector.getList(t,n).pipe(O(i=>{let o=[],s=new Set(t);for(let a of i)o.push(new cT({component:a,uid:a.uid,pageContext:n})),s.delete(a.uid??"");
12return s.forEach(a=>{o.push(new kg({uid:a,pageContext:n,error:new Error(`Failed to load CmsComponent ${n.type} uid: ${a}`)}))}),ue(o)}),j(i=>ue(t.map(o=>new kg({uid:o,error:le(i,this.logger),pageContext:n})))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f($k))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),ab=(()=>{class e{constructor(t){this.globService=t}getFalsy(){return function(){return null}}getFromPaths(t){let n=t.map(o=>this.getFromPath(o)),i=this.getCombined(n);return ge()&&(i._paths=t),i}getCombined(t){let n=function(o,s,a){for(let c=0;c<t.length;c++){let u=t[c](o,s,a);if(u)return u}return null};return ge()&&(n._matchers=t),n}getFromPath(t=""){let n=function(c,u,l){if(t==="")return i(c,u,l);let d=t.split("/");if(o(d.length>c.length,s(l.pathMatch==="full",o(u.hasChildren(),d.length<c.length))))return null;let h={};for(let p=0;p<d.length;p++){let E=d[p],D=c[p];if(E.startsWith(":"))h[E.substring(1)]=D;else if(E!==D.path)return null}return{consumed:c.slice(0,d.length),posParams:h}};return ge()&&(n._path=t),n;function i(a,c,u){return s(u.pathMatch==="full",o(c.hasChildren(),a.length>0))?null:{consumed:[],posParams:{}}}function o(a,c){return a||c}function s(a,c){return a&&c}}getOpposite(t){let n=function(o,s,a){return t(o,s,a)?null:{consumed:o,posParams:{}}};return ge()&&(n._originalMatcher=t),n}getFromGlob(t){let n=this.globService.getValidator(t),i=function(s){let a=`/${s.map(c=>c.path).join("/")}`;return n(a)?{consumed:s,posParams:{}}:null};return ge()&&(i._globPatterns=t),i}static{this.\u0275fac=function(n){return new(n||e)(f(F4))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),CK=(()=>{class e{constructor(t,n,i){this.injector=t,this.routingConfigService=n,this.urlMatcherService=i,this.logger=g(re),this.initCalled=!1}init(){this.initCalled||(this.initCalled=!0,this.configure())}configure(){let t=this.injector.get(Ce);t.resetConfig(this.configureRoutes(t.config))}configureRoutes(t){return t.map(n=>{let i=this.configureRoute(n);return n.children&&n.children.length&&(i.children=this.configureRoutes(n.children)),i})}configureRoute(t){let n=this.getRouteName(t);if(n){let i=this.routingConfigService.getRouteConfig(n);return this.validateRouteConfig(i,n,t),i?.disabled?(delete t.path,T(v({},t),{matcher:this.urlMatcherService.getFalsy()})):i?.matchers?(delete t.path,T(v({},t),{matcher:this.resolveUrlMatchers(t,i?.matchers)})):i?.paths?.length===1?(delete t.matcher,T(v({},t),{path:i?.paths[0]})):(delete t.path,T(v({},t),{matcher:this.urlMatcherService.getFromPaths(i?.paths||[])}))}return t}resolveUrlMatchers(t,n){let i=n?.map(o=>typeof o=="function"?o:this.resolveUrlMatcherFactory(t,o))??[];return this.urlMatcherService.getCombined(i)}resolveUrlMatcherFactory(t,n){return this.injector.get(n)(t)}getRouteName(t){return t.data&&t.data.cxRoute}validateRouteConfig(t,n,i){if(ge()){if(t===null||t?.paths===null||t?.matchers)return;if(!t?.paths){this.warn(`Could not configure the named route '${n}'`,i,"due to undefined config or undefined 'paths' property for this route");return}}}warn(...t){ge()&&this.logger.warn(...t)}static{this.\u0275fac=function(n){return new(n||e)(f(de),f(Sm),f(ab))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var CCe=(()=>{class e{constructor(t){this.urlService=t}transform(t){return this.urlService.transform(t)}static{this.\u0275fac=function(n){return new(n||e)(se(oo,16))}}static{this.\u0275pipe=bn({name:"cxUrl",type:e,pure:!0})}}return e})(),DCe=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[Ke]})}}return e})(),DK=(()=>{class e{constructor(t,n){this.baseSiteService=t,this.configInit=n,this.scopes=["routing"],this.configFactory=()=>fr(this.resolveConfig())}resolveConfig(){return this.baseSiteService.get().pipe(k(t=>{if(!t)throw new Error("Error: Cannot get current base site config .")}),S(t=>this.getRoutingConfig(t)),W(1))}getRoutingConfig(t){return{routing:{protected:t?.requiresAuthentication}}}static{this.\u0275fac=function(n){return new(n||e)(f(us),f(Nn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),IK=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),TK=(()=>{class e{constructor(t,n){this.winRef=t,this.platformId=n}canActivate(t,n){return Vi(this.platformId)&&this.redirect(t,n),!1}redirect(t,n){let i=this.winRef.nativeWindow;i&&i.location&&(i.location.href=n.url)}static{this.\u0275fac=function(n){return new(n||e)(f(Nt),f(bt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function bK(e){return()=>{e.addRoutes()}}var wK=(()=>{class e{constructor(t,n,i){this.config=t,this.urlMatcherService=n,this.injector=i}get internalUrlPatterns(){return this.config&&this.config.routing&&this.config.routing.internal||[]}addRoutes(){let t=this.injector.get(Ce),n=this.getRoutes();n.length&&t.resetConfig([...n,...t.config])}getRoutes(){if(!this.internalUrlPatterns.length)return[];let t=[];return t.push({pathMatch:"full",matcher:this.getUrlMatcher(),canActivate:[TK],component:{}}),t}getUrlMatcher(){let t=this.urlMatcherService.getFromGlob(this.internalUrlPatterns);return this.urlMatcherService.getOpposite(t)}static{this.\u0275fac=function(n){return new(n||e)(f(IK),f(ab),f(de))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ICe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:wt,multi:!0,useFactory:bK,deps:[wK]}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),_K=(()=>{class e{get routingConfig(){return this.config&&this.config.routing}get shouldProtect(){return!!this.routingConfig?.protected}constructor(t,n){this.config=t,this.urlParsingService=n,this.nonProtectedPaths=[],this.shouldProtect&&(this.nonProtectedPaths=this.getNonProtectedPaths().map(i=>this.getSegments(i)))}isUrlProtected(t){return this.shouldProtect&&!this.matchAnyPath(t,this.nonProtectedPaths)}matchAnyPath(t,n){return n.some(i=>this.matchPath(t,i))}matchPath(t,n){return this.urlParsingService.matchPath(t,n)}getNonProtectedPaths(){return Object.values(this.routingConfig?.routes??{}).reduce((t,n)=>n.protected===!1&&n.paths&&n.paths.length?t.concat(n?.paths??[]):t,[])}getSegments(t){return(t||"").split("/")}static{this.\u0275fac=function(n){return new(n||e)(f(Em),f($T))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),TCe=(()=>{class e{constructor(t,n){this.service=t,this.authGuard=n}canActivate(t){let n=t.url.map(i=>i.path);return n=n.length?n:[""],this.service.isUrlProtected(n)?this.authGuard.canActivate():I(!0)}static{this.\u0275fac=function(n){return new(n||e)(f(_K),f(j6))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),AK=(()=>{class e{constructor(t,n){this.actions$=t,this.router=n,this.clearCmsRoutes$=pe(()=>this.actions$.pipe(ne(or,io,Ur),k(()=>{let i=this.router.config.filter(o=>!(o.data&&o.data.cxCmsRouteContext));i.length!==this.router.config.length&&this.router.resetConfig(i)})),{dispatch:!1})}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(Ce))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),RK=[AK],MK={navigationId:0,state:{url:"",queryParams:{},params:{},context:{id:""},cmsRequired:!1,semanticRoute:void 0},nextState:void 0};function NK(){return{router:OK}}function OK(e=MK,r){switch(r.type){case Xh:return T(v({},e),{nextState:r.payload.routerState,navigationId:r.payload.event.id});case tp:case ep:return T(v({},e),{nextState:void 0});case vP:return e.nextState?T(v({},e),{nextState:T(v({},e.nextState),{context:r.payload})}):e;case np:return{state:T(v({},r.payload.routerState),{context:e.nextState?.context??r.payload.routerState.context}),navigationId:r.payload.event.id,nextState:void 0};default:return e}}var Bk=new C("RouterReducers"),xK={provide:Bk,useFactory:NK},LK=(()=>
12{class e{serialize(t){let n=t.root,i=!1,o,s,a="";for(;n.firstChild;)n=n.firstChild,a+="/"+n.url.map(u=>u.path).join("/"),n.data?.cxRoute&&(s=n.data?.cxRoute),n.data?.cxCmsRouteContext&&(o=n.data?.cxCmsRouteContext),!i&&(o||n.routeConfig?.canActivate?.find(u=>u&&typeof u=="function"&&"guardName"in u&&u.guardName==="CmsPageGuard"))&&(i=!0);s=s||this.lookupSemanticRoute(a);let{params:c}=n;return o=this.getPageContext(o,n),{url:t.url,queryParams:t.root.queryParams,params:c,context:o,cmsRequired:i,semanticRoute:s}}getPageContext(t,n){let i=t;if(n.url.length>0&&n.url[0].path==="cx-preview"&&n.queryParams.cmsTicketId!==void 0)i={id:uk,type:Se.CONTENT_PAGE};else{let{params:o}=n;o.productCode?i={id:o.productCode,type:Se.PRODUCT_PAGE}:o.categoryCode?i={id:o.categoryCode,type:Se.CATEGORY_PAGE}:o.brandCode?i={id:o.brandCode,type:Se.CATEGORY_PAGE}:n.data.pageLabel!==void 0&&(i={id:n.data.pageLabel,type:Se.CONTENT_PAGE})}return i||(n.url.length>0?i={id:"/"+n.url.map(s=>s.path).join("/"),type:Se.CONTENT_PAGE}:i={id:ck,type:Se.CONTENT_PAGE}),i}lookupSemanticRoute(t){return this.routingConfig.getRouteName(t.substr(1))}constructor(t){this.routingConfig=t}static{this.\u0275fac=function(n){return new(n||e)(f(Sm))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})();function PK(e){return()=>e.init()}function FK(e,r){return r.routing?.protected===void 0?e:null}function kK(){let r=(g(UT,{optional:!0})??[]).map(t=>t());return Promise.all(r)}var bCe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[xK,{provide:va,useClass:LK},{provide:wt,useFactory:PK,deps:[CK],multi:!0},{provide:ym,useFactory:FK,deps:[DK,Em],multi:!0},{provide:ru,useFactory:kK}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[xr.forFeature(KD,Bk),Lr.forFeature(RK),ix.forRoot({routerState:Pu.Minimal,stateKey:KD})]})}}return e})();function UK(e,r){return n=>{let i=n.data&&n.data.cxRoute,o=e.getRouteConfig(i),s=o&&o.paths||[];return r.getFromPaths(s)}}var wCe=new C("DEFAULT_URL_MATCHER",{providedIn:"root",factory:()=>UK(g(Sm),g(ab))}),jK=(()=>{class e{getIdListByItemType(t){let n=[],i=[],o=[];return t.forEach(s=>{s.superType==="AbstractCMSComponent"?i.push(s.id):s.superType==="AbstractPage"?n.push(s.id):s.superType==="AbstractMedia"&&o.push(s.id)}),{pageIds:n,componentIds:i,mediaIds:o}}constructor(t,n,i){this.actions$=t,this.cmsComponentConnector=n,this.routingService=i,this.logger=g(re),this.loadNavigationItems$=pe(()=>this.actions$.pipe(ne(wk),S(o=>o.payload),S(o=>({ids:this.getIdListByItemType(o.items),nodeId:o.nodeId})),G(o=>o.ids.componentIds.length>0?this.routingService.getRouterState().pipe(_(dn),S(s=>s.state.context),W(1),G(s=>this.cmsComponentConnector.getList(o.ids.componentIds,s).pipe(S(a=>new fT({nodeId:o.nodeId,components:a})),j(a=>I(new Ug(o.nodeId,le(a,this.logger))))))):I(new Ug(o.nodeId,new Error("navigation nodes are empty"))))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f($k),f(so))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),$K=(()=>{class e{constructor(t,n){this.cmsPageAdapter=t,this.cmsStructureConfigService=n}get(t){return this.cmsStructureConfigService.shouldIgnoreBackend(t.id).pipe(O(n=>n?I({}):this.cmsPageAdapter.load(t).pipe(j(i=>{if(i instanceof Ze&&i.status===400)return I({});throw i}))),O(n=>this.mergeDefaultPageStructure(t,n)))}mergeDefaultPageStructure(t,n){return this.cmsStructureConfigService.mergePageStructure(t.id,n)}static{this.\u0275fac=function(n){return new(n||e)(f(Rg),f(jk))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),BK=(()=>{class e{constructor(t,n,i){this.actions$=t,this.cmsPageConnector=n,this.routingService=i,this.logger=g(re),this.refreshPage$=pe(()=>this.actions$.pipe(ne(or,io,Ur),O(()=>this.routingService.getRouterState().pipe(_(o=>o&&o.state&&o.state.cmsRequired&&!o.nextState),W(1),S(o=>o.state.context),G(o=>I(new _a(o))))))),this.loadPageData$=pe(()=>this.actions$.pipe(ne(Ak),S(o=>o.payload),mr(o=>hi(o)),G(o=>o.pipe(O(s=>this.cmsPageConnector.get(s).pipe(G(a=>
12{let c=[new uT((a.components??[]).map(l=>({component:l,pageContext:s}))),new pT(s,a.page??{})],u=a.page?.label;return u&&u!==s.id&&c.unshift(new gT({id:u,type:s.type},a.page??{})),c}),j(a=>I(new hT(s,le(a,this.logger))))))))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f($K),f(so))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),HK=[BK,SK,jK],aL={component:void 0,pageContext:{}};function yp(e,r){switch(r.type){case nb:return!1;case ib:case rb:return!0}return e}function VK(e=aL,r){switch(r.type){case bk:return aL;case tb:{let t=Zi(r.meta.entityType,yp),n=hi(r.payload.pageContext,!0);return T(v({},e),{pageContext:T(v({},e.pageContext),{[n]:t(e.pageContext[n],r)})})}case nb:{let t=Zi(r.meta.entityType,yp),n=hi(r.payload.pageContext,!0);return T(v({},e),{pageContext:T(v({},e.pageContext),{[n]:t(e.pageContext[n],r)})})}case rb:{let t=Zi(r.meta.entityType,yp),n=hi(r.payload.pageContext,!0);return T(v({},e),{component:r.payload.component,pageContext:T(v({},e.pageContext),{[n]:t(e.pageContext[n],r)})})}case ib:{let t=Zi(r.meta.entityType,yp);if(!Array.isArray(r.payload)){let n=hi(r.payload.pageContext,!0);return T(v({},e),{component:r.payload.component,pageContext:T(v({},e.pageContext),{[n]:t(e.pageContext[n],r)})})}}}return e}var zK=void 0;function GK(e=zK,r){switch(r.type){case _k:if(r.payload.components.length){let n=r.payload.components.reduce((i,o)=>T(v({},i),{[`${o.uid}_AbstractCMSComponent`]:o}),{});return v(v({},e),n)}}return e}var WK={entities:{}};function qK(e=WK,r){if(r.type===ob){let t=r.payload;return T(v({},e),{entities:T(v({},e.entities),{[t.pageId??""]:t})})}return e}var cL=void 0;function Ep(e){return(r=cL,t)=>{if(t.meta&&t.meta.entityType===e)switch(t.type){case ob:return t.payload.pageId;case Rk:return cL;case Nk:return t.payload;case Mk:return t.payload.pageId}return r}}function YK(){return{page:qo({pageData:qK,index:qo({content:Da(Se.CONTENT_PAGE,Ep(Se.CONTENT_PAGE)),product:Da(Se.PRODUCT_PAGE,Ep(Se.PRODUCT_PAGE)),category:Da(Se.CATEGORY_PAGE,Ep(Se.CATEGORY_PAGE)),catalog:Da(Se.CATALOG_PAGE,Ep(Se.CATALOG_PAGE))})}),components:IT(ja,VK),navigation:Da(Rm,GK)}}var Hk=new C("CmsReducers"),KK={provide:Hk,useFactory:YK};function ZK(e){return function(r,t){return(t.type===or||t.type===io||t.type===Ur)&&(r=void 0),e(r,t)}}var QK=[ZK];function JK(){return{state:{ssrTransfer:{keys:{[eb]:ls.TRANSFER_STATE}}}}}var XK=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[no(JK),KK],imports:[Ke,ro,xr.forFeature(eb,Hk,{metaReducers:QK}),Lr.forFeature(HK)]})}}return e})(),e7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[Mm,xn(Z9)]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[XK,yK.forRoot()]})}}return e})(),t7=(()=>{class e{constructor(){this.logger=g(re)}handleError(t){this.logger.error(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vk=new C("MULTI_ERROR_HANDLER"),n7=(()=>{class e{constructor(){this.errorHandlers=g(Vk)}handleError(t){this.errorHandlers.forEach(n=>{n.handleError(t)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),zk=(()=>{class e{constructor(){this.errorHandler=g(qe),this.windowRef=g(Nt)}handle(t){let n=t.error;!(n instanceof Yu)&&!(n instanceof Ze)&&this.shouldHandleError(n)&&this.errorHandler.handleError(n)}isErrorAction(t){return"error"in t}shouldHandleError(t){return!this.windowRef.isBrowser()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),r7=(()=>{class e{constructor(){this.actions$=g(Ge),this.errorActionService=g(zk),this.error$=pe(()=>this.actions$.pipe(_(this.errorActionService.isErrorAction),k(t=>{this.errorActionService.handle(t)})),{dispatch:!1})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),i7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[zk]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}
12static{this.\u0275inj=P({imports:[Lr.forFeature([r7])]})}}return e})(),$g=class extends Error{constructor(r){super("Outbound HTTP Error",{cause:r})}},vT=class extends $g{constructor(r){super(r),this.message="CMS Page Not Found"}},o7=(()=>{class e{constructor(){this.errorHandler=g(qe),this.occEndpointsService=g(He),this.windowRef=g(Nt),this.userId=Vh(g(Ln).getUserId())}intercept(t,n){return n.handle(t).pipe(k({error:i=>{this.shouldHandleError(i)&&this.handleError(i)}}))}shouldHandleError(t){return!this.windowRef.isBrowser()}handleError(t){t=this.isCmsPageNotFoundHttpError(t)?new vT(t):new $g(t),this.errorHandler.handleError(t)}isCmsPageNotFoundHttpError(t){let n=this.occEndpointsService.buildUrl("pages",{urlParams:{userId:this.userId()}});return t instanceof Ze&&t.status===Hr.NOT_FOUND&&(t.url??"").startsWith(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),s7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:Qt,useExisting:o7,multi:!0}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();function a7(){return[{provide:Vk,useExisting:t7,multi:!0}]}var c7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[a7(),{provide:qe,useClass:n7}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[i7.forRoot(),s7.forRoot()]})}}return e})(),u7={backend:{timeout:{server:2e4}}},l7=new Js(()=>{});var d7=(()=>{class e{constructor(t,n){this.windowRef=t,this.config=n,this.logger=g(re)}intercept(t,n){let i=this.getTimeoutValue(t);return typeof i>"u"?n.handle(t):n.handle(t).pipe(O(o=>o.type===_n.Sent?ad.pipe(vr(o),Qa(i)):I(o)),j(o=>{throw this.convertTimeoutToHttpErrorResponse({error:o,request:t,timeoutValue:i})}))}getTimeoutValue(t){let n=t.context.get(l7),i=this.config?.backend?.timeout,o=n??i??{};return this.windowRef.isBrowser()?o?.browser:o?.server}convertTimeoutToHttpErrorResponse({error:t,request:n,timeoutValue:i}){if(t instanceof rd){let o=this.buildError(n,i);return new Ze({url:n.url,error:o})}return t}buildError(t,n){let i=`Request to URL '${t.url}' exceeded expected time of ${n}ms and was aborted.`;return this.logger.warn(i),new Error(i)}static{this.\u0275fac=function(n){return new(n||e)(f(Nt),f($r))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),f7=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[{provide:Qt,useExisting:d7,multi:!0},xn(u7)]})}}return e})(),h7=(()=>{class e{static forRoot(){return{ngModule:e}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[f7]})}}return e})(),p7={i18n:{fallbackLang:void 0,debug:!1}},$a=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),g7=(()=>{class e{constructor(t){this.configInit=t,this.scopes=["i18n.fallbackLang"],this.configFactory=()=>fr(this.resolveConfig())}resolveConfig(){return this.configInit.getStable("context.language").pipe(S(t=>({i18n:{fallbackLang:t?.context?.language?.[0]}})))}static{this.\u0275fac=function(n){return new(n||e)(f(Nn))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_Ce=(()=>{class e extends xS{constructor(t){super(""),this.language=t,this.logger=g(re)}transform(t,n,i){return super.transform(t,n,i,this.getLang())}getLang(){let t=this.getActiveLang();try{return eh(t),t}catch(n){return this.reportMissingLocaleData(t),"en"}}getActiveLang(){let t="";return this.language.getActive().subscribe(n=>t=n).unsubscribe(),t}reportMissingLocaleData(t){ge()&&this.logger.warn(`cxDate pipe: No locale data registered for '${t}' (see https://angular.io/api/common/registerLocaleData).`)}static{this.\u0275fac=function(n){return new(n||e)(se(vi,16))}}static{this.\u0275pipe=bn({name:"cxDate",type:e,pure:!0})}}return e})(),yT=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),xm=new C("I18NEXT_INSTANCE",{providedIn:"root",factory:()=>Mt.createInstance()}),m7=new C("I18NEXT_HTTP_BACKEND_CLIENT",{providedIn:"root",factory:()=>{let e=g(we);return(r,t,n,i)=>{e.get(t,{responseType:"text"}).subscribe({next:o=>i(null,{status:200,data:o}),error:o=>i(o,{data:null,status:o.status})})}}}),v7=(()=>{class e{constructor(t,n,i,o){this.i18next=t,this.i18nextHttpClient=n,this.config=i,this.windowRef=o}hasMatch(){return!!this.config.i18n?.backend?.loadPath}initialize(){return this.i18next.use(_x),{backend:this.getBackendConfig()}}getBackendConfig(){if(!this.config.i18n?.backend?.loadPath)throw new Error("Missing config `i18n.backend.loadPath`.");return{loadPath:this.getLoadPath(this.config.i18n.backend.loadPath),request:this.i18nextHttpClient,reloadInterval:!1}}getLoadPath(t){return!this.windowRef.isBrowser()&&!t.match(/^http(s)?:\/\//)?(t.startsWith("/")&&(t=t.
12slice(1)),t.startsWith("./")&&(t=t.slice(2)),`${this.windowRef.location.origin}/${t}`):t}static{this.\u0275fac=function(n){return new(n||e)(f(xm),f(m7),f($a),f(Nt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),y7=(()=>{class e{constructor(t,n){this.config=t,this.i18next=n}hasMatch(){return!!this.config.i18n?.backend?.loader}initialize(){let t=this.config.i18n?.backend?.loader;if(!t)throw new Error("Missing config `i18n.backend.loader`.");return this.i18next.use(Hx(t)),{backend:{}}}static{this.\u0275fac=function(n){return new(n||e)(f($a),f(xm))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),E7=[{provide:yT,useExisting:v7,multi:!0},{provide:yT,useExisting:y7,multi:!0}],S7=new C("I18NEXT_LOGGER_PLUGIN",{providedIn:"root",factory:()=>{let e=g(re);return{type:"logger",log:r=>e.log(...r),warn:r=>e.warn(...r),error:r=>e.error(...r)}}}),C7=(()=>{class e{constructor(t){this.backendInitializers=t}initialize(){return PT(this.backendInitializers??[])?.initialize()??{}}static{this.\u0275fac=function(n){return new(n||e)(f(yT,8))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),D7=(()=>{class e{constructor(t,n,i,o){this.i18next=t,this.config=n,this.languageService=i,this.i18nextBackendService=o,this.loggerPlugin=g(S7)}initialize(){let t=this.getI18nextConfig();return this.i18next.use(this.loggerPlugin).init(t,()=>{this.addTranslationResources(),this.synchronizeLanguage()})}getI18nextConfig(){let t={ns:[],fallbackLng:this.config.i18n?.fallbackLang,debug:this.config.i18n?.debug,interpolation:{escapeValue:!1,skipOnVariables:!1},showSupportNotice:!1};return this.config.i18n?.backend&&(t=v(v({},t),this.i18nextBackendService.initialize())),t}addTranslationResources(){let t=this.config.i18n?.resources??{};Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(i=>{this.i18next.addResourceBundle(n,i,t[n][i],!0,!0)})})}synchronizeLanguage(){this.subscription=this.subscription??this.languageService.getActive().subscribe(t=>this.i18next.changeLanguage(t))}ngOnDestroy(){this.subscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(f(xm),f($a),f(vi),f(C7))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),I7=[{provide:wt,useFactory:()=>{let e=g(Nn),r=g(D7);return()=>fr(e.getStable("i18n")).then(()=>r.initialize())},multi:!0},...E7],T7=(()=>{class e{constructor(t){this.config=t,this.duplicates={},this.chunks={},this.logger=g(re),this.KEY_SEPARATOR=".";let n=t.i18n&&t.i18n.chunks||{};Object.keys(n).forEach(i=>
12{n[i].forEach(o=>{this.chunks.hasOwnProperty(o)?(this.duplicates[o]||(this.duplicates[o]=[this.chunks[o]]),this.duplicates[o].push(i)):this.chunks[o]=i})}),Object.keys(this.duplicates).length>0&&ge()&&this.warnDuplicates(this.duplicates)}getChunkNameForKey(t){let n=(t||"").split(this.KEY_SEPARATOR)[0],i=this.chunks&&this.chunks[n];return i||n}warnDuplicates(t){let n=[];Object.keys(t).forEach(i=>{n.push(`* '${i}' found in chunks: ${t[i].join(", ")}. Used '${this.chunks[i]}.${i}'.`)}),this.logger.warn(`Duplicated keys has been found in the config of i18n chunks: 13${n.join(` 14`)}`)}static{this.\u0275fac=function(n){return new(n||e)(f($a))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),b7=(()=>{class e{constructor(t,n,i){this.config=t,this.translationChunk=n,this.i18next=i,this.NON_BREAKING_SPACE="\xA0",this.NAMESPACE_SEPARATOR=":",this.logger=g(re)}translate(t,n={},i=!1){let o=Array.isArray(t)?t:[t],s=new Map,a=[];return o.forEach(c=>{let u=this.translationChunk.getChunkNameForKey(c),l=this.getNamespacedKey(c,u);a.push(l),s.set(c,u)}),new L(c=>{let u=()=>{if(!this.i18next.isInitialized)return;let l=!1;this.i18next.loadNamespaces(Array.from(s.values()),()=>{l=!0,this.i18next.exists(a,n)?c.next(this.i18next.t(a,n)):(this.reportMissingKey(s),c.next(this.getFallbackValue(a)))}),!l&&i&&c.next(this.NON_BREAKING_SPACE)};return u(),this.i18next.on("languageChanged",u),()=>this.i18next.off("languageChanged",u)})}loadChunks(t){return this.i18next.loadNamespaces(t)}getFallbackValue(t){let n=Array.isArray(t)?t.join(", "):t;return ge()?`[${n}]`:this.NON_BREAKING_SPACE}reportMissingKey(t){let n=[...t.keys()];ge()&&this.logger.warn(`Translation keys missing [${n.join(", ")}]. Attempted to load ${[...t].map(([i,o])=>`'${i}' from chunk '${o}'`).join(", ")}.`)}getNamespacedKey(t,n){return n+this.NAMESPACE_SEPARATOR+t}static{this.\u0275fac=function(n){return new(n||e)(f($a),f(T7),f(xm))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function CD(e){return e!==null&&typeof e=="object"&&("key"in e||"raw"in e)}var ACe=(()=>{class e{constructor(t,n){this.service=t,this.cd=n,this.logger=g(re)}transform(t,n={}){if(!t)return ge()&&this.logger.error(`The given input for the cxTranslate pipe (${t}
14) is invalid and cannot be translated`),"";if(CD(t)&&t.raw)return t.raw;CD(t)&&t.params&&(n=v(v({},n),t.params));let i=CD(t)?t.key:t;return this.translate(i,n),this.translatedValue}translate(t,n){(t!==this.lastKey||!Zu.shallowEqualObjects(n,this.lastOptions))&&(this.lastKey=t,this.lastOptions=n,this.sub&&this.sub.unsubscribe(),this.sub=this.service.translate(t,n,!0).subscribe(i=>this.markForCheck(i)))}markForCheck(t){this.translatedValue=t,this.cd.markForCheck()}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(se(jr,16),se(Hi,16))}}static{this.\u0275pipe=bn({name:"cxTranslate",type:e,pure:!1})}}return e})();function w7(e,r){return r?.i18n?.fallbackLang!==void 0?null:e}var _7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[xn(p7),{provide:jr,useExisting:b7},...I7,{provide:ym,useFactory:w7,deps:[g7,$a],multi:!0}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();function A7(e,r){let t=g(re);return()=>Promise.all(e.runModuleInitializerFunctions(r)).catch(n=>{throw t.error("MODULE_INITIALIZER promise was rejected during app initialization.",n),n})}var R7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[{provide:wt,useFactory:A7,deps:[FT,[new oi,rP]],multi:!0}]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();function M7(){return Da(ie)}var Gk=new C("ProcessReducers"),N7={provide:Gk,useFactory:M7},O7=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[N7],imports:[ro,xr.forFeature(ie,Gk)]})}}return e})(),x7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[O7]})}}return e})(),L7={siteTheme:{optionalThemes:[{i18nNameKey:"siteThemeSwitcher.themes.highContrastDark",className:"cx-theme-high-contrast-dark"},{i18nNameKey:"siteThemeSwitcher.themes.highContrastLight",className:"cx-theme-high-contrast-light"}]}},Wk="[Site-theme] Set Active Site Theme",P7="[Site-theme] Site Theme Change",ET=class{constructor(r){this.payload=r,this.type=Wk}},ST=class{constructor(r){this.payload=r,this.type=P7}};var cb="siteTheme",F7=Mn(cb),k7=e=>e.activeSiteTheme,U7=w(F7,e=>e.themes),CT=w(U7,k7);var ub=(()=>{class e{constructor(){this.store=g(ee),this.config=g(ut),this.FALLBACK_DEFAULT_THEME_ID=""}getDefault(){return{className:pi(this.config,KL)??this.FALLBACK_DEFAULT_THEME_ID,i18nNameKey:"siteThemeSwitcher.themes.default"}}get themes(){let t=this.config.siteTheme?.optionalThemes||[];return[this.getDefault(),...t]}getAll(){return I(this.themes)}getActive(){return this.store.pipe(A(CT),_(Ra))}setActive(t){this.store.pipe(A(CT),W(1)).subscribe(n=>{n!==t&&this.isValid(t)&&this.store.dispatch(new ET(t))})}isInitialized(){let t=!1;return this.getActive().subscribe(()=>t=!0).unsubscribe(),t}isValid(t){return this.themes.map(n=>n.className).includes(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),j7=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:function(n){let i=null;return n?i=new(n||e):i=f(ut),i},providedIn:"root"})}}return e})(),$7="siteTheme",B7=(()=>{class e{constructor(){this.statePersistenceService=g(ll),this.siteThemeService=g(ub),this.config=g(j7),this.initialized$=new lt(1)}initSync(){return this.statePersistenceService.syncWithStorage({key:$7,state$:this.siteThemeService.getActive(),onRead:t=>this.onRead(t)}),this.initialized$}onRead(t){!this.siteThemeService.isInitialized()&&t&&this.siteThemeService.setActive(t),this.initialized$.closed||(this.initialized$.next(void 0),this.initialized$.complete())}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),H7=(()=>{class e{constructor(){this.siteThemeService=g(ub),this.siteThemePersistenceService=g(B7),this.configInit=g(Nn)}initialize(){this.subscription=this.configInit.getStable("context").pipe(O(()=>this.siteThemePersistenceService.initSync()),O(()=>this.setFallbackValue())).subscribe()}setFallbackValue(){return this.configInit.getStable("context").pipe(k(()=>this.setDefaultFromConfig()))}setDefaultFromConfig(){if(!this.siteThemeService.isInitialized()){let t=this.siteThemeService.getDefault();this.siteThemeService.setActive(t.className)}}ngOnDestroy(){this.subscription?.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function V7(){let e=g(H7);return()=>{e.initialize()}}var z7=[{provide:wt,useFactory:V7,multi:!0}],G7=(()=>{class e{constructor(){this.actions$=g(Ge),this.state=g(ee),this.activateSiteTheme$=pe(()=>this.state.select(CT).pipe(tc(2,1),_(([t])=>!!t),S(([t,n])=>new ST({previous:t,current:n}))))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),W7=[G7],q7={activeSiteTheme:null};function Y7(e=q7,r){if(r.type===Wk){let t=r.payload;return T(v({},e),{activeSiteTheme:t})}return e}function K7(){return{themes:Y7}}var qk=new C("SiteThemeReducers"),Z7={provide:qk,useFactory:K7};function Q7(){return{state:{ssrTransfer:{keys:{[cb]:ls.TRANSFER_STATE}}}}}var J7=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[no(Q7),Z7],imports:[Ke,xr.forFeature
14(cb,qk),Lr.forFeature(W7)]})}}return e})(),X7=(()=>{class e{static forRoot(){return{ngModule:e,providers:[ub,xn(L7),...z7]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[ro,J7]})}}return e})(),RCe=(()=>{class e{static forRoot(){return{ngModule:e}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[c7.forRoot(),ro.forRoot(),fP.forRoot(),e6.forRoot(),r6.forRoot(),_7.forRoot(),e7.forRoot(),s5.forRoot(),x7.forRoot(),s6.forRoot(),F9.forRoot(),AY.forRoot(),SY.forRoot(),R7.forRoot(),h7.forRoot(),X7.forRoot(),l6]})}}return e})();var eZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),tZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),MCe=(()=>{class e{constructor(t,n,i,o){this.cms=t,this.unifiedInjector=n,this.pageMetaConfig=i,this.platformId=o,this.languageService=g(vi),this.resolvers$=this.unifiedInjector.getMulti(ln).pipe(Xe({bufferSize:1,refCount:!0})),this.meta$=We(()=>this.cms.getCurrentPage()).pipe(_(s=>!!s),O(s=>this.getMetaResolver(s)),O(s=>s?this.resolve(s):I(null)),Xe({bufferSize:1,refCount:!0})),this.languageService.getActive().pipe(ld(1),Vt()).subscribe(()=>{this.cms.refreshLatestPage()})}getMeta(){return this.meta$}resolve(t){let n=this.getResolverMethods(),i=Object.keys(n).filter(o=>t[n[o]]).map(o=>t[n[o]]().pipe(S(s=>({[o]:s}))));return i.length===0?I({}):oP(i).pipe(S(o=>Object.assign({},...o)))}getResolverMethods(){return this.pageMetaConfig?.pageMeta?.resolvers?.reduce((t,n)=>(t[n.property]=n.method,t),{})??{}}getMetaResolver(t){return this.resolvers$.pipe(S(n=>PT(n,[t],[t])))}static{this.\u0275fac=function(n){return new(n||e)(f(Mm),f(cl),f(kk),f(bt))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),NCe=(()=>{class e{constructor(t){this.unifiedInjector=t,this.componentDecorators$=this.unifiedInjector.getMulti(eZ).pipe(Xe(1)),this.slotDecorators$=this.unifiedInjector.getMulti(tZ).pipe(Xe(1))}addAttributesToComponent(t,n,i){(Vp(this.componentDecorators$)||[]).forEach(o=>o.decorate(t,n,i))}addAttributesToSlot(t,n,i){(Vp(this.slotDecorators$)||[]).forEach(o=>o.decorate(t,n,i))}static{this.\u0275fac=function(n){return new(n||e)(f(cl))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),OCe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})();var nZ=(()=>{class e{constructor(t,n){this.cmsConfig=t,this.lazyModules=n,this.features=new Map}isConfigured(t){return!!this.getFeatureConfig(t)?.module}resolveFeature(t){return t=this.resolveFeatureAlias(t),We(()=>{if(!this.features.has(t)){if(!this.isConfigured(t))return gn(()=>new Error("No module defined for Feature Module "+t));let n=this.getFeatureConfig(t);this.features.set(t,this.resolveDependencies(n?.dependencies).pipe(O(i=>this.lazyModules.resolveModuleInstance(n?.module,t,i)),Xe()))}return this.features.get(t)??te})}getFeatureConfig(t){return this.cmsConfig.featureModules?.[this.resolveFeatureAlias(t)]}resolveFeatureAlias(t){for(;typeof this.cmsConfig.featureModules?.[t]=="string";)t=this.cmsConfig.featureModules?.[t];return t}resolveDependencies(t=[]){return t?.length?Ds(t.map(n=>typeof n=="string"?this.resolveFeature(n):this.lazyModules.resolveDependencyModuleInstance(n))):I(void 0)}static{this.\u0275fac=function(n){return new(n||e)(f(qT),f(FT))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),uL="proxyFacadeInstance",rZ=(()=>{class e{constructor(t,n){this.featureModules=t,this.injector=n}getResolver(t,n,i=!1){if(!this.featureModules.isConfigured(t))return gn(()=>new Error(`Feature ${t} is not configured properly`));let o=this.featureModules.resolveFeature(t).pipe(S(s=>s.injector),S(s=>s.get(n)));
14return i&&(o=o.pipe(pr(0))),o.pipe(Xe())}call(t,n,i){let o=sd(t.pipe(S(s=>s[n](...i))),{connector:()=>new lt,resetOnDisconnect:!1});return o.connect(),o.pipe(O(s=>Wr(s)?s:te))}get(t,n){return t.pipe(O(i=>i[n]))}create({facade:t,feature:n,methods:i,properties:o,async:s}){let a=this.getResolver(n,t,s),c=new class extends t{};return(i??[]).forEach(u=>{c[u]=(...l)=>this.call(a,u,l)}),(o??[]).forEach(u=>{c[u]=this.get(a,u)}),c[uL]=!0,c}isProxyFacadeInstance(t){return!!t?.[uL]}static{this.\u0275fac=function(n){return new(n||e)(f(nZ),f(de))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function xCe(e){return g(rZ).create(e)}var iZ=(()=>{class e{constructor(t){this.adapter=t}get(t,n=""){return this.adapter.load(t,n)}getMany(t){return this.adapter.loadMany?this.adapter.loadMany(t):t.map(n=>T(v({},n),{data$:this.adapter.load(n.code,n.scope)}))}static{this.\u0275fac=function(n){return new(n||e)(f(Mg))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var oZ=(()=>{class e{constructor(t){this.adapter=t}get(t,n,i){return this.adapter.load(t,n,i)}static{this.\u0275fac=function(n){return new(n||e)(f(Ng))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),sZ=(()=>{class e{constructor(t){this.adapter=t}get(t,n){return this.adapter.load(t,n)}add(t,n){return this.adapter.post(t,n)}static{this.\u0275fac=function(n){return new(n||e)(f(Og))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),lb=(()=>{class e{constructor(t){this.adapter=t}search(t,n,i){return this.adapter.search(t,n,i)}searchByCodes(t,n){return this.adapter.searchByCodes(t,n)}searchByCategory(t,n){return this.adapter.searchByCategory(t,n)}getSuggestions(t,n){return this.adapter.loadSuggestions(t,n)}static{this.\u0275fac=function(n){return new(n||e)(f(xg))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),lL=(()=>{class e extends to{static{this.type="FacetChangedEvent"}}return e})(),db="[Product] Load Product References Data",Yk="[Product] Load Product References Data Fail",fb="[Product] Load Product References Data Success",hb="[Product] Clean Product References",Bg=class{constructor(r){this.payload=r,this.type=db}},Hg=class{constructor(r){this.payload=r,this.type=Yk,this.error=r}},Vg=class{constructor(r){this.payload=r,this.type=fb}},zg=class{constructor(){this.type=hb}},pb="[Product] Load Product Reviews Data",Kk="[Product] Load Product Reviews Data Fail",gb="[Product] Load Product Reviews Data Success",mb="[Product] Post Product Review",vb="[Product] Post Product Review Fail",yb="[Product] Post Product Review Success",Gg=class{constructor(r){this.payload=r,this.type=pb}},Wg=class{constructor(r){this.payload=r,this.type=Kk,this.error=r}},qg=class{constructor(r){this.payload=r,this.type=gb}},Yg=class{constructor(r){this.payload=r,this.type=mb}},Kg=class{constructor(r){this.payload=r,this.type=vb,this.error=r}},Zg=class{constructor(r){this.payload=r,this.type=yb}},Eb="[Product] Search Products",Sb="[Product] Search Products Fail",Lm="[Product] Search Products Success",Cb="[Product] Get Product Suggestions",Pm="[Product] Get Product Suggestions Success",Db="[Product] Get Product Suggestions Fail",Ib="[Product] Clear Product Search Result",el=class{constructor(r,t){this.payload=r,this.auxiliary=t,this.type=Eb}},Qg=class{constructor(r,t){this.payload=r,this.auxiliary=t,this.type=Sb,this.error=r}},Jg=class{constructor(r,t){this.payload=r,this.auxiliary=t,this.type=Lm}},Xg=class{constructor(r){this.payload=r,this.type=Cb}},tl=class{constructor(r){this.payload=r,this.type=Pm}},em=class{constructor(r){this.payload=r,this.type=Db,this.error=r}},nl=class{constructor(r={clearPageResults:!1,clearSearchboxResults:!1}){this.payload=r,this.type=Ib}},On;(function(e){function r(u,l,d){return T(v({},DL(u,l)),{scope:d})}e.entityScopedLoadMeta=r;function t(u,l,d,h){return T(v({},IL(u,l,h)),{scope:d})}e.entityScopedFailMeta=t;function n(u,l,d){return T(v({},TL(u,l)),{scope:d})}e.entityScopedSuccessMeta=n;function i(u,l,d){return T(v({},bL(u,l)),{scope:d})}e.entityScopedResetMeta=i;class o{constructor(l,d,h){this.type=yL,this.meta=r(l,d,h)}}e.EntityScopedLoadAction=o;class s{constructor(l,d,h,p){this.type=EL,this.meta=t(l,d,h,p),this.error=p}}e.EntityScopedFailAction=s;class a{constructor(l,d,h,p){this.payload=p,this.type=SL,this.meta=n(l,d,h)}}e.EntityScopedSuccessAction=a;class c{constructor(l,d,h){this.type=CL,this.meta=i(l,d,h)}}e.EntityScopedResetAction=c})(On||(On={}));var Tb="product",vl="[Product] Detail Entity",yl="[Product] Search Results By Codes Entity",Fm="[Product] Search Results By Category Entity",bb
14="[Product] Product Search Load By Code",Zk="[Product] Product Search Load By Code Success",Qk="[Product] Product Search Load By Code Fail",Jk="[Product] Clear Product Search By Code State",tm=class extends On.EntityScopedLoadAction{constructor(r){super(yl,r.code,r.scope),this.payload=r,this.type=bb}},nm=class extends On.EntityScopedSuccessAction{constructor(r){super(yl,r.code,r.scope,r.product),this.type=Zk}},rm=class extends On.EntityScopedFailAction{constructor(r){super(yl,r.code,r.scope,r.error),this.type=Qk}},im=class extends TD{constructor(){super(yl),this.type=Jk}},wb="[Product] Product Search Load By Category",Xk="[Product] Product Search Load By Category Success",eU="[Product] Product Search Load By Category Fail",om=class extends On.EntityScopedLoadAction{constructor(r){super(Fm,r.categoryCode,r.scope),this.payload=r,this.type=wb}},sm=class extends On.EntityScopedSuccessAction{constructor(r){super(Fm,r.categoryCode,r.scope,r.products),this.type=Xk}},am=class extends On.EntityScopedFailAction{constructor(r){super(Fm,r.categoryCode,r.scope,r.error),this.type=eU}},km="[Product] Load Product Data",_b="[Product] Load Product Data Fail",Ab="[Product] Load Product Data Success",tU="[Product] Clear Product PRICE",cm=class extends On.EntityScopedLoadAction{constructor(r,t=""){super(vl,r,t),this.payload=r,this.type=km}},rl=class extends On.EntityScopedFailAction{constructor(r,t,n=""){super(vl,r,n,t),this.payload=t,this.type=_b}},um=class extends On.EntityScopedSuccessAction{constructor(r,t=""){super(vl,r.code??"",t),this.payload=r,this.type=Ab}},lm=class extends On.EntityScopedResetAction{constructor(){super(vl,void 0,xa.PRICE),this.type=tU}},LCe=Object.freeze({__proto__:null,CLEAN_PRODUCT_REFERENCES:hb,CLEAR_PRODUCT_PRICE:tU,CLEAR_PRODUCT_SEARCH_BY_CODE_STATE:Jk,CLEAR_PRODUCT_SEARCH_RESULT:Ib,CleanProductReferences:zg,ClearProductPrice:lm,ClearProductSearchByCodeState:im,ClearProductSearchResult:nl,GET_PRODUCT_SUGGESTIONS:Cb,GET_PRODUCT_SUGGESTIONS_FAIL:Db,GET_PRODUCT_SUGGESTIONS_SUCCESS:Pm,GetProductSuggestions:Xg,GetProductSuggestionsFail:em,GetProductSuggestionsSuccess:tl,LOAD_PRODUCT:km,LOAD_PRODUCT_FAIL:_b,LOAD_PRODUCT_REFERENCES:db,LOAD_PRODUCT_REFERENCES_FAIL:Yk,LOAD_PRODUCT_REFERENCES_SUCCESS:fb,LOAD_PRODUCT_REVIEWS:pb,LOAD_PRODUCT_REVIEWS_FAIL:Kk,LOAD_PRODUCT_REVIEWS_SUCCESS:gb,LOAD_PRODUCT_SUCCESS:Ab,LoadProduct:cm,LoadProductFail:rl,LoadProductReferences:Bg,LoadProductReferencesFail:Hg,LoadProductReferencesSuccess:Vg,LoadProductReviews:Gg,LoadProductReviewsFail:Wg,LoadProductReviewsSuccess:qg,LoadProductSuccess:um,POST_PRODUCT_REVIEW:mb,POST_PRODUCT_REVIEW_FAIL:vb,POST_PRODUCT_REVIEW_SUCCESS:yb,PRODUCT_SEARCH_LOAD_BY_CATEGORY:wb,PRODUCT_SEARCH_LOAD_BY_CATEGORY_FAIL:eU,PRODUCT_SEARCH_LOAD_BY_CATEGORY_SUCCESS:Xk,PRODUCT_SEARCH_LOAD_BY_CODE:bb,PRODUCT_SEARCH_LOAD_BY_CODE_FAIL:Qk,PRODUCT_SEARCH_LOAD_BY_CODE_SUCCESS:Zk,PostProductReview:Yg,PostProductReviewFail:Kg,PostProductReviewSuccess:Zg,ProductSearchLoadByCategory:om,ProductSearchLoadByCategoryFail:am,ProductSearchLoadByCategorySuccess:sm,ProductSearchLoadByCode:tm,ProductSearchLoadByCodeFail:rm,ProductSearchLoadByCodeSuccess:nm,SEARCH_PRODUCTS:Eb,SEARCH_PRODUCTS_FAIL:Sb,SEARCH_PRODUCTS_SUCCESS:Lm,SearchProducts:el,SearchProductsFail:Qg,SearchProductsSuccess:Jg}),Ba=Mn(Tb),aZ=w(Ba,e=>e.references),cZ=(e,r)=>w(aZ,t=>t.productCode===e&&t.list?r?t.list.filter(n=>n.referenceType===r):t.list:[]),uZ=w(Ba,e=>e.reviews),lZ=e=>w(uZ,r=>{if(r.productCode===e)return r.list}),dZ={results:{},suggestions:[],auxResults:{}};function fZ(e=dZ,r){switch(r.type){case Lm:{let t=r.payload,n=r.auxiliary?{auxResults:t}:{results:t};return v(v({},e),n)}case Pm:{let t=r.payload;return T(v({},e),{suggestions:t})}case Ib:return T(v({},e),{results:r.payload.clearPageResults?{}:e.results,suggestions:r.payload.clearSearchboxResults?[]:e.suggestions,auxResults:r.payload.clearSearchboxResults?{}:e.auxResults})}return e}var hZ=e=>e.results,pZ=e=>e.auxResults,gZ=e=>e.suggestions,Rb=w(Ba,e=>e.search),mZ=w(Rb,hZ),vZ=w(Rb,pZ),yZ=w(Rb,gZ),EZ=w(Ba,e=>e.searchByCode),SZ=e=>w(EZ,r=>Pa(r,e.code)[e.scope]||kr),CZ=w(Ba,e=>e.searchByCategory),DZ=e=>w(CZ,r=>Pa(r,e.categoryCode)[e.scope]||kr),nU=w(Ba,e=>e.details),El=(e,r="")=>w(nU,t=>Pa(t,e)[r]||kr),IZ=(e,r="")=>w(El(e,r),t=>yt(t)),rU=(e,r="")=>w(El(e,r),t=>fn(t)),TZ=(e,r="")=>w(El(e,r),t=>gi(t)),bZ=(e,r="")=>w(El(e,r),t=>hm(t)),PCe=w(nU,e=>Object.keys(e.entities));var Sl=(()=>{class e{constructor(t){this.store=t}search(t,n){t&&this.store.dispatch(new el({queryText:t,searchConfig:n}))}getResults(){return this.store.pipe(A(mZ))}clearResults(){this.store.dispatch(new nl({clearPageResults:!0}))}static{this.\u0275fac=function(n){return new(n||e)(f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),wZ=(()=>{class e{constructor(t,n){this.eventService=t,this.productSearchService=n,this.register()}register(){this.eventService.register(lL,this.buildFacetChangedEvent())}buildFacetChangedEvent(){return this.productSearchService.getResults().pipe(ic(),_(([t,n])=>this.compareSearchResults(t,n)),S(([t,n])=>{let i=this.getToggledBreadcrumb(n.breadcrumbs,t.breadcrumbs)||this.getToggledBreadcrumb(t.breadcrumbs,n.breadcrumbs);if(i)return eo(lL,{code:i.facetCode,name:i.facetName,valueCode:i.facetValueCode,valueName:i.facetValueName,selected:n.breadcrumbs&&t.breadcrumbs&&n.breadcrumbs.length>t.breadcrumbs.length})}
14))}compareSearchResults(t,n){if(t&&Object.keys(t).length!==0){let i=t.freeTextSearch!==""&&t.freeTextSearch===n.freeTextSearch,o=n.breadcrumbs?.[0]?.facetCode==="allCategories"&&t.breadcrumbs?.[0]?.facetCode===n.breadcrumbs[0]?.facetCode&&t.breadcrumbs[0].facetValueCode===n.breadcrumbs[0].facetValueCode;return i||o}return!1}getToggledBreadcrumb(t,n){if(t&&n&&t.length-n.length===1)return t.find(i=>!n.find(o=>o.facetCode===i.facetCode&&o.facetValueCode===i.facetValueCode))}static{this.\u0275fac=function(n){return new(n||e)(f(ds),f(Sl))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),_Z=(()=>{class e{constructor(t){}static{this.\u0275fac=function(n){return new(n||e)(f(wZ))}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({})}}return e})(),AZ=(()=>{class e{constructor(t,n){this.actions$=t,this.productReferencesConnector=n,this.logger=g(re),this.loadProductReferences$=pe(()=>this.actions$.pipe(ne(db),S(i=>i.payload),G(i=>this.productReferencesConnector.get(i.productCode,i.referenceType,i.pageSize).pipe(S(o=>new Vg({productCode:i.productCode,list:o})),j(o=>I(new Hg(le(o,this.logger))))))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(oZ))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),RZ=(()=>{class e{constructor(t,n,i){this.actions$=t,this.productReviewsConnector=n,this.globalMessageService=i,this.logger=g(re),this.loadProductReviews$=pe(()=>this.actions$.pipe(ne(pb),S(o=>o.payload),G(o=>this.productReviewsConnector.get(o).pipe(S(s=>new qg({productCode:o,list:s})),j(s=>I(new Wg(le(s,this.logger)))))))),this.postProductReview=pe(()=>this.actions$.pipe(ne(mb),S(o=>o.payload),G(o=>this.productReviewsConnector.add(o.productCode,o.review).pipe(S(s=>new Zg(s)),j(s=>I(new Kg(le(s,this.logger)))))))),this.showGlobalMessageOnPostProductReviewSuccess$=pe(()=>this.actions$.pipe(ne(yb),k(()=>{this.globalMessageService.add({key:"productReview.thankYouForReview"},je.MSG_TYPE_CONFIRMATION)})),{dispatch:!1}),this.showGlobalMessageOnPostProductReviewFail$=pe(()=>this.actions$.pipe(ne(vb),k(()=>{this.globalMessageService.add({key:"productReview.postReviewFail"},je.MSG_TYPE_ERROR)})),{dispatch:!1})}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(sZ),f(Ua))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),MZ=(()=>{class e{constructor(t,n){this.actions$=t,this.productSearchConnector=n,this.logger=g(re),this.globalMessageService=g(Ua),this.searchProducts$=pe(()=>this.actions$.pipe(ne(Eb),mr(i=>i.auxiliary),G(i=>i.pipe(O(o=>this.productSearchConnector.search(o.payload.queryText,o.payload.searchConfig).pipe(S(s=>new Jg(s,o.auxiliary)),j(s=>{let a=le(s,this.logger);return a?.details?.[0].type==="ArrayIndexOutOfBoundsError"&&this.globalMessageService.add({key:"searchBox.queryError"},je.MSG_TYPE_ERROR),I(new Qg(a,o.auxiliary))}))))))),this.getProductSuggestions$=pe(()=>this.actions$.pipe(ne(Cb),S(i=>i.payload),O(i=>this.productSearchConnector.getSuggestions(i.term,i.searchConfig?.pageSize).pipe(S(o=>o===void 0?new tl([]):new tl(o)),j(o=>I(new em(le(o,this.logger))))))))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(lb))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),NZ=(()=>{class e{productLoadEffect(t){return t.data$?.pipe(S(n=>new um(v({code:t.code},n),t.scope)),j(n=>I(new rl(t.code,le(n,this.logger),t.scope))))??I(new rl(t.code,new Error("Scoped product data does not exist"),t.scope))}constructor(t,n){this.actions$=t,this.productConnector=n,this.logger=g(re),this.contextChange$=this.actions$.pipe(ne(Fa,or)),this.loadProduct$=pe(()=>({scheduler:i,debounce:o=0}={})=>this.actions$.pipe(ne(km),S(s=>({code:s.payload,scope:s.meta.scope})),Om(o,i),G(s=>mn(...this.productConnector.getMany(s).map(a=>this.productLoadEffect(a)))),ul(this.contextChange$))),this.clearProductPrice$=pe(()=>this.actions$.pipe(ne(io,Ur),S(()=>new lm)))}static{this.\u0275fac=function(n){return new(n||e)(f(Ge),f(iZ))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),OZ=(()=>{class e{constructor(){this.logger=g(re),this.actions$=g(Ge),this.productSearchConnector=g(lb),this.contextChange$=this.actions$.pipe(ne(Fa,or)),this.searchByCodes$=pe(()=>({scheduler:t,debounce:n=0}={})=>this.actions$.pipe(ne(bb),mr(i=>i.payload.scope),G(i=>{let o=i.key;return i.pipe(S(s=>s.payload),Om(n,t),G(s=>{let a=s.map(c=>c.code);return this.productSearchConnector.searchByCodes(a,o).pipe(O(c=>c.products?.map((u,l)=>new nm(T(v({},s[l]),{product:u})))),j(c=>s.map(u=>
14new rm(T(v({},u),{error:le(c,this.logger)})))))}))}),ul(this.contextChange$))),this.clearState$=pe(()=>this.actions$.pipe(ne(io,Ur),S(()=>new im)))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),xZ=(()=>{class e{constructor(){this.logger=g(re),this.actions$=g(Ge),this.productSearchConnector=g(lb),this.contextChange$=this.actions$.pipe(ne(Fa,or)),this.searchByCategory$=pe(()=>({scheduler:t,debounce:n=0}={})=>this.actions$.pipe(ne(wb),mr(i=>i.payload.scope),G(i=>{let o=i.key;return i.pipe(S(s=>s.payload),Om(n,t),G(s=>{let a=s.map(c=>c.categoryCode);return Ds(a.map(c=>this.productSearchConnector.searchByCategory(c,o))).pipe(G((c,u)=>a.map((l,d)=>{let h=c[d]?.products??[];return new sm({categoryCode:l,scope:o,products:h})})),j(c=>s.map(u=>new am(T(v({},u),{error:le(c,this.logger)})))))}))}),ul(this.contextChange$)))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac})}}return e})(),LZ=[MZ,OZ,xZ,NZ,RZ,AZ],PZ={};function FZ(e,r){let t=Zi(e,r);return(n=PZ,i)=>i&&i.meta&&i.meta.entityType===e?T(v({},n),{[i.meta.scope??""]:t(n[i.meta.scope??""],i)}):n}function DD(e,r){return IT(e,FZ(e,r))}var dL={productCode:"",list:[]};function kZ(e=dL,r){switch(r.type){case fb:{let t=r.payload.productCode,n=r.payload.list;return T(v({},e),{list:[...e.list,...n||[]].reduce((i,o)=>(i.some(s=>s.referenceType===o.referenceType&&s.target?.code===o.target?.code)||i.push(o),i),[]),productCode:t})}case hb:return dL}return e}var UZ={productCode:"",list:[]};function jZ(e=UZ,r){if(r.type===gb){let t=r.payload.productCode,n=r.payload.list;return T(v({},e),{productCode:t,list:n})}return e}function $Z(){return{search:fZ,searchByCode:DD(yl),searchByCategory:DD(Fm),details:DD(vl),reviews:jZ,references:kZ}}var iU=new C("ProductReducers"),BZ={provide:iU,useFactory:$Z};function HZ(e){return function(r,t){return(t.type===Fa||t.type===or)&&(r=void 0),e(r,t)}}var VZ=[HZ],FCe=(()=>{class e{constructor(t){this.store=t}loadProductReferences(t,n,i){this.store.dispatch(new Bg({productCode:t,referenceType:n,pageSize:i}))}getProductReferences(t,n){return this.store.pipe(A(cZ(t,n)))}cleanReferences(){this.store.dispatch(new zg)}static{this.\u0275fac=function(n){return new(n||e)(f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kCe=(()=>{class e{constructor(t){this.store=t}getByProductCode(t){return this.store.pipe(A(lZ(t)),k(n=>{n===void 0&&t!==void 0&&this.store.dispatch(new Gg(t))}),S(n=>
14n??[]))}add(t,n){this.store.dispatch(new Yg({productCode:t,review:n}))}static{this.\u0275fac=function(n){return new(n||e)(f(ee))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),UCe=(()=>{class e{constructor(){this.store=g(ee)}load({code:t,scope:n}){this.store.dispatch(new tm({code:t,scope:n??""}))}get({code:t,scope:n}){let i=this.store.pipe(A(SZ({code:t,scope:n??""}))),o=i.pipe(Ts(0),k(a=>{a.loading||a.success||a.error||this.load({code:t,scope:n})})),s=i.pipe(S(a=>a.value));return Ai(()=>o.subscribe(),()=>s)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jCe=(()=>{class e{constructor(){this.store=g(ee)}load({categoryCode:t,scope:n}){this.store.dispatch(new om({categoryCode:t,scope:n??""}))}get({categoryCode:t,scope:n}){let i=this.store.pipe(A(DZ({categoryCode:t,scope:n??""}))),o=i.pipe(Ts(0),k(a=>{a.loading||a.success||a.error||this.load({categoryCode:t,scope:n})})),s=i.pipe(S(a=>a.value));return Ai(()=>o.subscribe(),()=>s)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),zZ=(()=>{class e{constructor(t,n,i,o,s){this.store=t,this.loadingScopes=n,this.actions$=i,this.platformId=o,this.eventService=s,this.products={}}get(t,n){return Zx(t),n=this.loadingScopes.expand("product",n),this.initProductScopes(t,n),this.products[t][this.getScopesIndex(n)]}initProductScopes(t,n){Zx(t),this.products[t]||(this.products[t]={});for(let i of n)this.products[t][i]||(this.products[t][i]=this.getProductForScope(t,i));n.length>1&&(this.products[t][this.getScopesIndex(n)]=oP(n.map(i=>this.products[t][i])).pipe(S(i=>i.every(Boolean)?ht({},...i):void 0),Vt()))}getScopesIndex(t){return t.join("\u0275")}getProductForScope(t,n){let i=this.store.pipe(A(El(t,n)),S(c=>!c.loading&&!c.success&&!c.error),Vt(),_(c=>c)),o=this.store.pipe(A(rU(t,n))),s=mn(i,...this.getProductReloadTriggers(t,n)).pipe(Ri(0),et(o),k(([,c])=>{c||this.store.dispatch(new cm(t,n))})),a=this.store.pipe(A(IZ(t,n)));return Ai(()=>s.subscribe(),()=>a).pipe(Xe({bufferSize:1,refCount:!0}))}getProductReloadTriggers(t,n){let i=[],o=this.loadingScopes.getMaxAge("product",n);if(o&&Vi(this.platformId)){let a=this.actions$.pipe(ne(Ab,_b),_(u=>u.meta.entityId===t&&u.meta.scope===n)),c=this.actions$.pipe(ne(km),_(u=>u.payload===t&&u.meta.scope===n));i.push(this.getMaxAgeTrigger(c,a,o))}let s=this.loadingScopes.getReloadTriggers("product",n).map(a=>this.eventService.get(a));return i.concat(s)}getMaxAgeTrigger(t,n,i,o){let s=0,a=()=>o?o.now():Date.now(),c=n.pipe(k(()=>s=a()));return We(()=>{let l=a()-s,d=c.pipe(pr(i,o),S(()=>!0),ul(t));return l>i?mn(I(!0),d):l===0?d:mn(I(!0).pipe(pr(i-l,o)),d)})}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(RY),f(Ge),f(bt),f(ds))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),GZ=(()=>{class e{constructor(t,n){this.store=t,this.productLoading=n}get(t,n=zu){return t?this.productLoading.get(t,[].concat(n)):I(void 0)}isLoading(t,n=""){return this.store.pipe(A(rU(t,n)))}isSuccess(t,n=""){return this.store.pipe(A(TZ(t,n)))}hasError(t,n=""){return this.store.pipe(A(bZ(t,n)))}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(zZ))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$Ce=(()=>{class e extends Sl{constructor(){super(...arguments),this.actionsSubject=g(Rn)}search(t,n){this.store.dispatch(new el({queryText:t,searchConfig:n},!0))}searchWithCompletion(t,n){return this.search(t,n),this.actionsSubject.pipe(_(i=>i.type===Lm||i.type===Sb),W(1))}getResults(){return this.store.pipe(A(vZ))}clearResults(){this.store.dispatch(new nl({clearSearchboxResults:!0}))}getSuggestionResults(){return this.store.pipe(A(yZ))}searchSuggestions(t,n){this.store.dispatch(new Xg({term:t,searchConfig:n}))}searchSuggestionsWithCompletion(t,n){return this.searchSuggestions(t,n),this.actionsSubject.pipe(_(i=>i.type===Pm||i.type===Db),W(1))}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=ke(e)))(i||e)}})()}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var WZ=(()=>{class e extends ln{constructor(t,n,i,o){super(),this.productSearchService=t,this.cms=n,this.translation=i,this.basePageMetaResolver=o,this.searchPage$=this.cms.getCurrentPage().pipe(_(s=>!!s),O(s=>this.hasProductListComponent(s)?this.productSearchService.getResults().pipe(_(a=>!!a)):I(s))),this.pageType=Se.CATEGORY_PAGE}resolveTitle(){return this.searchPage$.pipe(_(t=>!!t.pagination),O(t=>this.translation.translate("pageMetaResolver.category.title",{count:t.pagination?.totalResults,query:t.breadcrumbs?.length?t.breadcrumbs[0].facetValueName:void 0})))}resolveBreadcrumbs(){return Fe([this.searchPage$.pipe(),this.translation.translate("common.home")]).pipe(S(([t,n])=>t.breadcrumbs?this.resolveBreadcrumbData(t,n):[]))}resolveBreadcrumbData(t,n){let i=[];i.push({label:n,link:"/"});for(let o of t.breadcrumbs??[])o.facetValueName&&((o.facetCode==="category"||o.facetCode==="allCategories")&&i.push({label:o.facetValueName,link:`/c/${o.facetValueCode}`}),o.facetCode==="brand"&&i.push({label:o.facetValueName,link:`/Brands/${o.facetValueName}/c/${o.facetValueCode}`}));return i}hasProductListComponent(t){return!!Object.keys(t.slots||{}).find(n=>!!t.slots?.[n].components?.find(i=>i.typeCode==="CMSProductListComponent"||i.typeCode==="ProductGridComponent"))}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}
14resolveCanonicalUrl(){return this.basePageMetaResolver.resolveCanonicalUrl()}static{this.\u0275fac=function(n){return new(n||e)(f(Sl),f(Mm),f(jr),f(Nm))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),qZ=(()=>{class e extends ln{constructor(t,n,i,o,s){super(),this.productSearchService=t,this.translation=n,this.authService=i,this.route=o,this.semanticPathService=s,this.total$=this.productSearchService.getResults().pipe(_(a=>!!a?.pagination),S(a=>a.pagination?.totalResults??0)),this.pageType=Se.CONTENT_PAGE,this.pageTemplate="SearchResultsListPageTemplate"}resolveBreadcrumbs(){return Fe([this.translation.translate("common.home"),this.translation.translate("myCoupons.myCoupons"),this.authService.isUserLoggedIn()]).pipe(S(([t,n,i])=>{let o=[];return o.push({label:t,link:"/"}),i&&o.push({label:n,link:this.semanticPathService.transform({cxRoute:"coupons"})}),o}))}resolveTitle(){return this.total$.pipe(O(t=>this.translation.translate("pageMetaResolver.search.findProductTitle",{count:t,coupon:this.couponCode})))}getScore(t){return super.getScore(t)+(this.couponCode?1:-1)}get couponCode(){return this.route.snapshot?.queryParams?.couponcode}static{this.\u0275fac=function(n){return new(n||e)(f(Sl),f(jr),f(Pn),f(nr),f(oo))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),YZ=(()=>{class e extends ln{constructor(t,n,i,o,s){super(),this.routingService=t,this.productService=n,this.translation=i,this.basePageMetaResolver=o,this.pageLinkService=s,this.product$=this.routingService.getRouterState().pipe(S(a=>a.state.params.productCode),_(a=>!!a),O(a=>this.productService.get(a,xa.DETAILS)),_(dn)),this.pageType=Se.PRODUCT_PAGE}resolveHeading(){return this.product$.pipe(O(t=>this.translation.translate("pageMetaResolver.product.heading",{heading:t.name})))}resolveTitle(){return this.product$.pipe(O(t=>{let n=t.name;return n+=this.resolveFirstCategory(t),n+=this.resolveManufacturer(t),this.translation.translate("pageMetaResolver.product.title",{title:n})}))}resolveDescription(){return this.product$.pipe(O(t=>this.translation.translate("pageMetaResolver.product.description",{description:t.summary})))}resolveBreadcrumbs(){return Fe([this.product$.pipe(),this.translation.translate("common.home")]).pipe(S(([t,n])=>{let i=[];i.push({label:n,link:"/"});for(let{name:o,code:s,url:a}of t.categories||[])i.push({label:o||s,link:a});return i}))}resolveImage(){return this.product$.pipe(S(t=>t.images?.PRIMARY?.zoom?.url??null))}resolveFirstCategory(t){let n=t?.categories?.[0];return n?` | ${n.name||n.code}`:""}resolveManufacturer(t){return t.manufacturer?` | ${t.manufacturer}`:""}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.product$.pipe(O(t=>this.findBaseProduct(t)),S(t=>{let n=this.routingService.getFullUrl({cxRoute:"product",params:t});return this.pageLinkService.getCanonicalUrl({},n)}))}findBaseProduct(t){return t?.baseProduct?this.productService.get(t.baseProduct,xa.LIST).pipe(_(dn),O(n=>this.findBaseProduct(n))):I(t)}static{this.\u0275fac=function(n){return new(n||e)(f(so),f(GZ),f(jr),f(Nm),f(Uk))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),KZ=(()=>{class e extends ln{constructor(t,n,i,o){super(),this.routingService=t,this.productSearchService=n,this.translation=i,this.basePageMetaResolver=o,this.total$=this.productSearchService.getResults().pipe(_(s=>!!s?.pagination),S(s=>s.pagination?.totalResults)),this.query$=this.routingService.getRouterState().pipe(S(s=>s.state.params.query)),this.pageType=Se.CONTENT_PAGE,this.pageTemplate="SearchResultsListPageTemplate"}resolveTitle(){let t=[this.total$,this.query$];return Fe(t).pipe(O(([n,i])=>this.translation.translate("pageMetaResolver.search.default_title").pipe(G(o=>this.translation.translate("pageMetaResolver.search.title",{count:n,query:i||o})))))}resolveRobots(){return this.basePageMetaResolver.resolveRobots()}resolveCanonicalUrl(){return this.basePageMetaResolver.resolveCanonicalUrl()}static{this.\u0275fac=function(n){return new(n||e)(f(so),f(Sl),f(jr),f(Nm))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ZZ(){return{state:{ssrTransfer:{keys:{[Tb]:ls.TRANSFER_STATE}}}}}var QZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({providers:[no(ZZ),BZ],imports:[Ke,xr.forFeature
14(Tb,iU,{metaReducers:VZ}),Lr.forFeature(LZ)]})}}return e})(),JZ=[{provide:ln,useExisting:YZ,multi:!0},{provide:ln,useExisting:WZ,multi:!0},{provide:ln,useExisting:KZ,multi:!0},{provide:ln,useExisting:qZ,multi:!0}],BCe=(()=>{class e{static forRoot(){return{ngModule:e,providers:[...JZ]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=U({type:e})}static{this.\u0275inj=P({imports:[QZ,_Z]})}}return e})();var XZ=(()=>{class e{constructor(t){this.adapter=t}getAll(t){return this.adapter.loadAll(t)}add(t,n){return this.adapter.add(t,n)}update(t,n,i){return this.adapter.update(t,n,i)}verify(t,n){return this.adapter.verify(t,n)}delete(t,n){return this.adapter.delete(t,n)}static{this.\u0275fac=function(n){return new(n||e)(f(Pg))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var HCe=(()=>{class e{constructor(t,n){this.store=t,this.userIdService=n}loadCustomerCoupons(t,n,i){this.userIdService.takeUserId().subscribe(o=>{this.store.dispatch(new Zp({userId:o,pageSize:t,currentPage:n,sort:i}))})}getCustomerCoupons(t){return Fe([this.store.pipe(A(_m)),this.getClaimCustomerCouponResultLoading()]).pipe(_(([,n])=>!n),k(([n])=>{n.loading||n.success||n.error||this.loadCustomerCoupons(t)}),S(([n])=>n.value),_(dn))}getCustomerCouponsLoaded(){return this.store.pipe(A(xY))}getCustomerCouponsLoading(){return this.store.pipe(A(LY))}subscribeCustomerCoupon(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new Qp({userId:n,couponCode:t}))})}getSubscribeCustomerCouponResultLoading(){return this.store.pipe(A(Xo(ns)))}getSubscribeCustomerCouponResultSuccess(){return this.store.pipe(A(Qi(ns)))}getSubscribeCustomerCouponResultError(){return this.store.pipe(A(Jo(ns)))}unsubscribeCustomerCoupon(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new Jp({userId:n,couponCode:t}))})}getUnsubscribeCustomerCouponResultLoading(){return this.store.pipe(A(Xo(rs)))}getUnsubscribeCustomerCouponResultSuccess(){return this.store.pipe(A(Qi(rs)))}getUnsubscribeCustomerCouponResultError(){return this.store.pipe(A(Jo(rs)))}claimCustomerCoupon(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new Xp({userId:n,couponCode:t}))})}disclaimCustomerCoupon(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new eg({userId:n,couponCode:t}))})}resetDisclaimCustomerCoupon(){this.store.dispatch(new tg)}getClaimCustomerCouponResultSuccess(){return this.store.pipe(A(Qi(wa)))}getClaimCustomerCouponResultLoading(){return this.store.pipe(A(Xo(wa)))}getDisclaimCustomerCouponResultSuccess(){return this.store.pipe(A(Qi(Oa)))}getClaimCustomerCouponResultError(){return this.store.pipe(A(Jo(wa)))}getDisclaimCustomerCouponResultError(){return this.store.pipe(A(Jo(Oa)))}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ln))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),VCe=(()=>{class e{constructor(t,n,i,o){this.store=t,this.userIdService=n,this.userAddressConnector=i,this.command=o,this.userAddressVerificationCommand=this.command.create(s=>this.userIdService.takeUserId(!1).pipe(O(a=>this.userAddressConnector.verify(a,s.address))))}loadAddresses(){this.userIdService.takeUserId().subscribe(t=>{this.store.dispatch(new yg(t))})}addUserAddress(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new Eg({userId:n,address:t}))})}setAddressAsDefault(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new Ju({userId:n,addressId:t,address:{defaultAddress:!0}}))})}updateUserAddress(t,n){this.userIdService.takeUserId().subscribe(i=>{this.store.dispatch(new Ju({userId:i,addressId:t,address:n}))})}deleteUserAddress(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new Sg({userId:n,addressId:t}))})}getDefaultAddress(){return this.getAddresses().pipe(S(t=>t?.find(n=>n.defaultAddress)))}getAddresses(){return this.store.pipe(A(qY))}getAddressesLoading(){return this.store.pipe(A(YY))}getAddressesLoadedSuccess(){return this.store.pipe(A(KY))}loadDeliveryCountries(){this.store.dispatch(new ng)}getDeliveryCountries(){return this.store.pipe(A(FY))}getCountry(t){return this.store.pipe(A(kY(t)))}loadRegions(t){this.store.dispatch(new mg(t))}clearRegions(){this.store.dispatch(new vg)}getRegions(t){return this.store.pipe(A(WY),S(({regions:n,country:i,loading:o,loaded:s})=>!t&&(o||s)?(this.clearRegions(),[]):o&&!s?[]:!o&&t!==i&&t?(i&&this.clearRegions(),this.loadRegions(t),[]):n))}verifyAddress(t){return this.userAddressVerificationCommand.execute({address:t})}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ln),f(XZ),f(A4))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var zCe=(()=>{class e{constructor(t,n){this.store=t,this.userIdService=n}loadProductInterests(t,n,i,o,s){this.userIdService.takeUserId().subscribe(a=>{this.store.dispatch(new lg({userId:a,pageSize:t,currentPage:n,sort:i,productC
14ode:o,notificationType:s}))})}getProductInterests(){return this.store.pipe(A(zY))}getAndLoadProductInterests(t){return this.store.pipe(A(ZT),k(n=>{n.loading||n.success||n.error||this.loadProductInterests(t)}),S(n=>n.value),_(dn))}getProdutInterestsLoading(){return this.store.pipe(A(GY))}removeProdutInterest(t,n){this.userIdService.takeUserId().subscribe(i=>{this.store.dispatch(new dg({userId:i,item:t,singleDelete:n}))})}getRemoveProdutInterestLoading(){return this.store.pipe(A(Xo(Na)))}getRemoveProdutInterestSuccess(){return this.store.pipe(A(Qi(Na)))}addProductInterest(t,n){this.userIdService.takeUserId().subscribe(i=>{this.store.dispatch(new fg({userId:i,productCode:t,notificationType:n}))})}getAddProductInterestSuccess(){return this.store.pipe(A(Qi(Ma)))}getAddProductInterestError(){return this.store.pipe(A(Jo(Ma)))}resetAddInterestState(){this.store.dispatch(new hg)}resetRemoveInterestState(){this.store.dispatch(new pg)}clearProductInterests(){this.store.dispatch(new gg)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ln))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),GCe=(()=>{class e{constructor(t,n){this.store=t,this.userIdService=n}getPreferences(){return this.store.pipe(A(UY))}getEnabledPreferences(){return this.store.pipe(A(jY))}loadPreferences(){this.userIdService.takeUserId().subscribe(t=>{this.store.dispatch(new rg(t))})}clearPreferences(){this.store.dispatch(new sg)}getPreferencesLoading(){return this.store.pipe(A($Y))}updatePreferences(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new ig({userId:n,preferences:t}))})}getUpdatePreferencesResultLoading(){return this.store.select(Xo(gl))}resetNotificationPreferences(){this.store.dispatch(new og)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ln))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),WCe=(()=>{class e{constructor(t,n){this.store=t,this.userIdService=n}loadPaymentMethods(){this.userIdService.takeUserId().subscribe(t=>{this.store.dispatch(new ag(t))})}getPaymentMethods(){return this.store.pipe(A(BY))}getPaymentMethodsLoading(){return this.store.pipe(A(HY))}getPaymentMethodsLoadedSuccess(){return this.store.pipe(A(VY))}setPaymentMethodAsDefault(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new cg({userId:n,paymentMethodId:t}))})}deletePaymentMethod(t){this.userIdService.takeUserId().subscribe(n=>{this.store.dispatch(new ug({userId:n,paymentMethodId:t}))})}getAllBillingCountries(){return this.store.pipe(A(OY))}loadBillingCountries(){this.store.dispatch(new Kp)}static{this.\u0275fac=function(n){return new(n||e)(f(ee),f(Ln))}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),fL=class{};export{ce as a,L as b,nv as c,X as d,ve as e,lt as f,ov as g,nj as h,te as i,pn as j,ue as k,I as l,fr as m,Qa as n,S as o,Fe as p,G as q,hr as r,We as s,Ds as t,Ja as u,bj as v,mn as w,ad as x,wj as y,_ as z,Ai as A,yo as B,Ts as C,j as D,Nw as E,Je as F,Ri as G,W as H,cd as I,Vt as J,Nj as K,xj as L,Mi as M,zt as N,mr as O,Lj as P,ic as Q,hv as R,Pj as S,oc as T,bs as U,Xe as V,ld as W,dd as X,vr as Y,O as Z,Yr as _,k as $,Fj as aa,et as ba,N as ca,vn as da,Cd as ea,m as fa,P as ga,C as ha,f as ia,g as ja,It as ka,t_ as la,p_ as ma,g_ as na,__ as oa,de as pa,fe as qa,ze as ra,Ft as sa,De as ta,h1 as ua,Me as va,Rc as wa,mf as xa,oi as ya,Uo as za,ke as Aa,wr as Ba,bt as Ca,rn as Da,R$ as Ea,M$ as Fa,oR as Ga,sR as Ha,x$ as Ia,L$ as Ja,Z$ as Ka,eB as La,bf as Ma,Kn as Na,Mf as Oa,Kc as Pa,ii as Qa,Ws as Ra,se as Sa,on as Ta,JE as Ua,U as Va,Wt as Wa,bn as Xa,aM as Ya,uM as Za,jo as _a,wt as $a,xf as ab,Ks as bb,ai as cb,Lf as db,QH as eb,XH as fb,rS as gb,eV as hb,tV as ib,nV as jb,rV as kb,fM as lb,hf as mb,iS as nb,Pf as ob,oS as pb,sS as qb,hM as rb,aS as sb,cS as tb,gM as ub,uV as vb,mM as wb,Ff as xb,yM as yb,pV as zb,mV as Ab,vV as Bb,SM as Cb,CM as Db,DM as Eb,IM as Fb,TM as Gb,EV as Hb,SV as Ib,RM as Jb,MM as Kb,xV as Lb,PV as Mb,GV as Nb,$M as Ob,lS as Pb,BM as Qb,HM as Rb,VM as Sb,YV as Tb,zM as Ub,KV as Vb,ZV as Wb,QV as Xb,t2 as Yb,n2 as Zb,r2 as _b,i2 as $b,o2 as ac,s2 as bc,c2 as cc,l2 as dc,d2 as ec,f2 as fc,h2 as gc,Zs as hc,be as ic,Bi as
14jc,pS as kc,jf as lc,vge as mc,l0 as nc,yge as oc,Ege as pc,Sge as qc,Cge as rc,Dge as sc,ge as tc,Hi as uc,tu as vc,K2 as wc,Ar as xc,sn as yc,P0 as zc,Cz as Ac,F0 as Bc,Dz as Cc,k0 as Dc,Iz as Ec,Tz as Fc,_z as Gc,Az as Hc,Rz as Ic,B0 as Jc,xz as Kc,Ke as Lc,Fme as Mc,Vi as Nc,FS as Oc,kS as Pc,Yz as Qc,oe as Rc,Bo as Sc,ch as Tc,Pe as Uc,Qt as Vc,we as Wc,TG as Xc,bG as Yc,wG as Zc,_G as _c,eC as $c,lN as ad,RG as bd,st as cd,Jt as dd,ot as ed,bh as fd,oa as gd,nr as hd,DC as id,qi as jd,Ce as kd,iO as ld,gO as md,Xye as nd,eEe as od,ee as pd,A as qd,w as rd,Mn as sd,xr as td,pe as ud,Ge as vd,ne as wd,Lr as xd,Sp as yd,ht as zd,ut as Ad,dm as Bd,La as Cd,Vx as Dd,Cp as Ed,xn as Fd,no as Gd,Se as Hd,Aa as Id,Yu as Jd,Oq as Kd,kL as Ld,BSe as Md,ss as Nd,qu as Od,Nt as Pd,OD as Qd,HSe as Rd,Ku as Sd,dn as Td,Ra as Ud,re as Vd,as as Wd,cs as Xd,mi as Yd,$r as Zd,VSe as _d,us as $d,He as ae,ls as be,Br as ce,PT as de,Ia as ee,A4 as fe,eo as ge,to as he,ds as ie,GSe as je,Vp as ke,rP as le,cl as me,Qe as ne,WSe as oe,qSe as pe,YSe as qe,KSe as re,ZSe as se,QSe as te,JSe as ue,XSe as ve,eCe as we,tCe as xe,nCe as ye,rCe as ze,le as Ae,Ln as Be,Gu as Ce,ka as De,z4 as Ee,iCe as Fe,Nn as Ge,fP as He,s6 as Ie,a6 as Je,vi as Ke,fl as Le,gP as Me,Sm as Ne,oo as Oe,vD as Pe,hl as Qe,Wp as Re,so as Se,HT as Te,Pn as Ue,pl as Ve,Xx as We,T6 as Xe,Ua as Ye,je as Ze,k6 as _e,sCe as $e,U6 as af,j6 as bf,aCe as cf,cCe as df,uCe as ef,_P as ff,lCe as gf,ak as hf,v5 as if,qT as jf,dCe as kf,hk as lf,xa as mf,fCe as nf,Lg as of,hCe as pf,t9 as qf,iL as rf,F9 as sf,SCe as tf,Mm as uf,ln as vf,jr as wf,Nm as xf,yK as yf,ab as zf,CCe as Af,DCe as Bf,ICe as Cf,_K as Df,TCe as Ef,bCe as Ff,wCe as Gf,_Ce as Hf,T7 as If,ACe as Jf,_7 as Kf,ub as Lf,RCe as Mf,eZ as Nf,tZ as Of,MCe as Pf,NCe as Qf,OCe as Rf,nZ as Sf,xCe as Tf,LCe as Uf,Sl as Vf,FCe as Wf,kCe as Xf,UCe as Yf,jCe as Zf,GZ as _f,$Ce as $f,BCe as ag,HCe as bg,VCe as cg,zCe as dg,GCe as eg,WCe as fg,fL as gg};
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.