MOON
Server: Apache
System: Linux ip-208-109-13-31.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
User: durgeshpandey215 (1013)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: /home/durgeshpandey215/public_html/kanakfrontend.skilladders.com/main.7bbbe318e7a26ae2.js
"use strict";(self.webpackChunkkanakSoftware_Angular=self.webpackChunkkanakSoftware_Angular||[]).push([[792],{257:()=>{function ce(e){return"function"==typeof e}function us(e){const t=e(i=>{Error.call(i),i.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const ol=us(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Xr(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class nt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const o of t)o.remove(this);else t.remove(this);const{initialTeardown:i}=this;if(ce(i))try{i()}catch(o){n=o instanceof ol?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{Ng(o)}catch(s){n=n??[],s instanceof ol?n=[...n,...s.errors]:n.push(s)}}if(n)throw new ol(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Ng(n);else{if(n instanceof nt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Xr(t,n)}remove(n){const{_finalizers:t}=this;t&&Xr(t,n),n instanceof nt&&n._removeParent(this)}}nt.EMPTY=(()=>{const e=new nt;return e.closed=!0,e})();const Fg=nt.EMPTY;function Og(e){return e instanceof nt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function Ng(e){ce(e)?e():e.unsubscribe()}const lr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},sl={setTimeout(e,n,...t){const{delegate:i}=sl;return i?.setTimeout?i.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=sl;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Lg(e){sl.setTimeout(()=>{const{onUnhandledError:n}=lr;if(!n)throw e;n(e)})}function ad(){}const GM=ld("C",void 0,void 0);function ld(e,n,t){return{kind:e,value:n,error:t}}let cr=null;function al(e){if(lr.useDeprecatedSynchronousErrorHandling){const n=!cr;if(n&&(cr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:i}=cr;if(cr=null,t)throw i}}else e()}class cd extends nt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Og(n)&&n.add(this)):this.destination=JM}static create(n,t,i){return new ds(n,t,i)}next(n){this.isStopped?dd(function YM(e){return ld("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?dd(function WM(e){return ld("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?dd(GM,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const KM=Function.prototype.bind;function ud(e,n){return KM.call(e,n)}class XM{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(i){ll(i)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(i){ll(i)}else ll(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){ll(t)}}}class ds extends cd{constructor(n,t,i){let r;if(super(),ce(n)||!n)r={next:n??void 0,error:t??void 0,complete:i??void 0};else{let o;this&&lr.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&ud(n.next,o),error:n.error&&ud(n.error,o),complete:n.complete&&ud(n.complete,o)}):r=n}this.destination=new XM(r)}}function ll(e){lr.useDeprecatedSynchronousErrorHandling?function ZM(e){lr.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=e)}(e):Lg(e)}function dd(e,n){const{onStoppedNotification:t}=lr;t&&sl.setTimeout(()=>t(e,n))}const JM={closed:!0,next:ad,error:function QM(e){throw e},complete:ad},hd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Li(e){return e}function Vg(e){return 0===e.length?Li:1===e.length?e[0]:function(t){return e.reduce((i,r)=>r(i),t)}}let Pe=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const i=new e;return i.source=this,i.operator=t,i}subscribe(t,i,r){const o=function nS(e){return e&&e instanceof cd||function tS(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&Og(e)}(t)?t:new ds(t,i,r);return al(()=>{const{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(i){t.error(i)}}forEach(t,i){return new(i=jg(i))((r,o)=>{const s=new ds({next:a=>{try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(t){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(t)}[hd](){return this}pipe(...t){return Vg(t)(this)}toPromise(t){return new(t=jg(t))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return e.create=n=>new e(n),e})();function jg(e){var n;return null!==(n=e??lr.Promise)&&void 0!==n?n:Promise}const iS=us(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let je=(()=>{class e extends Pe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const i=new Bg(this,this);return i.operator=t,i}_throwIfClosed(){if(this.closed)throw new iS}next(t){al(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(t)}})}error(t){al(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:i}=this;for(;i.length;)i.shift().error(t)}})}complete(){al(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(t=this.observers)||void 0===t?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){const{hasError:i,isStopped:r,observers:o}=this;return i||r?Fg:(this.currentObservers=null,o.push(t),new nt(()=>{this.currentObservers=null,Xr(o,t)}))}_checkFinalizedStatuses(t){const{hasError:i,thrownError:r,isStopped:o}=this;i?t.error(r):o&&t.complete()}asObservable(){const t=new Pe;return t.source=this,t}}return e.create=(n,t)=>new Bg(n,t),e})();class Bg extends je{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i||i.call(t,n)}error(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i||i.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:Fg}}function Ug(e){return ce(e?.lift)}function Ze(e){return n=>{if(Ug(n))return n.lift(function(t){try{return e(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,n,t,i,r){return new rS(e,n,t,i,r)}class rS extends cd{constructor(n,t,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function de(e,n){return Ze((t,i)=>{let r=0;t.subscribe($e(i,o=>{i.next(e.call(n,o,r++))}))})}function Vi(e){return this instanceof Vi?(this.v=e,this):new Vi(e)}function qg(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function gd(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(o){t[o]=e[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=e[o](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const vd=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Gg(e){return ce(e?.then)}function Wg(e){return ce(e[hd])}function Yg(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function Zg(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Kg=function kS(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Xg(e){return ce(e?.[Kg])}function Qg(e){return function zg(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=t.apply(e,n||[]),o=[];return r=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(g){return function(b){return Promise.resolve(b).then(g,f)}}),r[Symbol.asyncIterator]=function(){return this},r;function a(g,b){i[g]&&(r[g]=function(y){return new Promise(function(x,I){o.push([g,y,x,I])>1||l(g,y)})},b&&(r[g]=b(r[g])))}function l(g,b){try{!function c(g){g.value instanceof Vi?Promise.resolve(g.value.v).then(u,f):m(o[0][2],g)}(i[g](b))}catch(y){m(o[0][3],y)}}function u(g){l("next",g)}function f(g){l("throw",g)}function m(g,b){g(b),o.shift(),o.length&&l(o[0][0],o[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:i,done:r}=yield Vi(t.read());if(r)return yield Vi(void 0);yield yield Vi(i)}}finally{t.releaseLock()}})}function Jg(e){return ce(e?.getReader)}function kt(e){if(e instanceof Pe)return e;if(null!=e){if(Wg(e))return function RS(e){return new Pe(n=>{const t=e[hd]();if(ce(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(vd(e))return function PS(e){return new Pe(n=>{for(let t=0;t<e.length&&!n.closed;t++)n.next(e[t]);n.complete()})}(e);if(Gg(e))return function FS(e){return new Pe(n=>{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Lg)})}(e);if(Yg(e))return e_(e);if(Xg(e))return function OS(e){return new Pe(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(Jg(e))return function NS(e){return e_(Qg(e))}(e)}throw Zg(e)}function e_(e){return new Pe(n=>{(function LS(e,n){var t,i,r,o;return function Hg(e,n,t,i){return new(t||(t=Promise))(function(o,s){function a(u){try{c(i.next(u))}catch(f){s(f)}}function l(u){try{c(i.throw(u))}catch(f){s(f)}}function c(u){u.done?o(u.value):function r(o){return o instanceof t?o:new t(function(s){s(o)})}(u.value).then(a,l)}c((i=i.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=qg(e);!(i=yield t.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function pi(e,n,t,i=0,r=!1){const o=n.schedule(function(){t(),r?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(o),!r)return o}function ut(e,n,t=1/0){return ce(n)?ut((i,r)=>de((o,s)=>n(i,o,r,s))(kt(e(i,r))),t):("number"==typeof n&&(t=n),Ze((i,r)=>function VS(e,n,t,i,r,o,s,a){const l=[];let c=0,u=0,f=!1;const m=()=>{f&&!l.length&&!c&&n.complete()},g=y=>c<i?b(y):l.push(y),b=y=>{o&&n.next(y),c++;let x=!1;kt(t(y,u++)).subscribe($e(n,I=>{r?.(I),o?g(I):n.next(I)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&c<i;){const I=l.shift();s?pi(n,s,()=>b(I)):b(I)}m()}catch(I){n.error(I)}}))};return e.subscribe($e(n,g,()=>{f=!0,m()})),()=>{a?.()}}(i,r,e,t)))}function Qr(e=1/0){return ut(Li,e)}const Wn=new Pe(e=>e.complete());function t_(e){return e&&ce(e.schedule)}function bd(e){return e[e.length-1]}function n_(e){return ce(bd(e))?e.pop():void 0}function hs(e){return t_(bd(e))?e.pop():void 0}function i_(e,n=0){return Ze((t,i)=>{t.subscribe($e(i,r=>pi(i,e,()=>i.next(r),n),()=>pi(i,e,()=>i.complete(),n),r=>pi(i,e,()=>i.error(r),n)))})}function r_(e,n=0){return Ze((t,i)=>{i.add(e.schedule(()=>t.subscribe(i),n))})}function o_(e,n){if(!e)throw new Error("Iterable cannot be null");return new Pe(t=>{pi(t,n,()=>{const i=e[Symbol.asyncIterator]();pi(t,n,()=>{i.next().then(r=>{r.done?t.complete():t.next(r.value)})},0,!0)})})}function it(e,n){return n?function GS(e,n){if(null!=e){if(Wg(e))return function US(e,n){return kt(e).pipe(r_(n),i_(n))}(e,n);if(vd(e))return function $S(e,n){return new Pe(t=>{let i=0;return n.schedule(function(){i===e.length?t.complete():(t.next(e[i++]),t.closed||this.schedule())})})}(e,n);if(Gg(e))return function HS(e,n){return kt(e).pipe(r_(n),i_(n))}(e,n);if(Yg(e))return o_(e,n);if(Xg(e))return function zS(e,n){return new Pe(t=>{let i;return pi(t,n,()=>{i=e[Kg](),pi(t,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void t.error(s)}o?t.complete():t.next(r)},0,!0)}),()=>ce(i?.return)&&i.return()})}(e,n);if(Jg(e))return function qS(e,n){return o_(Qg(e),n)}(e,n)}throw Zg(e)}(e,n):kt(e)}function s_(...e){const n=hs(e),t=function BS(e,n){return"number"==typeof bd(e)?e.pop():n}(e,1/0),i=e;return i.length?1===i.length?kt(i[0]):Qr(t)(it(i,n)):Wn}class wt extends je{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:i}=this;if(n)throw t;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}function B(...e){return it(e,hs(e))}function a_(e={}){const{connector:n=(()=>new je),resetOnError:t=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=e;return o=>{let s,a,l,c=0,u=!1,f=!1;const m=()=>{a?.unsubscribe(),a=void 0},g=()=>{m(),s=l=void 0,u=f=!1},b=()=>{const y=s;g(),y?.unsubscribe()};return Ze((y,x)=>{c++,!f&&!u&&m();const I=l=l??n();x.add(()=>{c--,0===c&&!f&&!u&&(a=yd(b,r))}),I.subscribe(x),!s&&c>0&&(s=new ds({next:E=>I.next(E),error:E=>{f=!0,m(),a=yd(g,t,E),I.error(E)},complete:()=>{u=!0,m(),a=yd(g,i),I.complete()}}),kt(y).subscribe(s))})(o)}}function yd(e,n,...t){if(!0===n)return void e();if(!1===n)return;const i=new ds({next:()=>{i.unsubscribe(),e()}});return kt(n(...t)).subscribe(i)}function An(e,n){return Ze((t,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();t.subscribe($e(i,l=>{r?.unsubscribe();let c=0;const u=o++;kt(e(l,u)).subscribe(r=$e(i,f=>i.next(n?n(l,f,u,c++):f),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function YS(e,n){return e===n}function De(e){for(let n in e)if(e[n]===De)return n;throw Error("Could not find renamed property on target object.")}function cl(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function rt(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(rt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function wd(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const ZS=De({__forward_ref__:De});function Te(e){return e.__forward_ref__=Te,e.toString=function(){return rt(this())},e}function G(e){return Cd(e)?e():e}function Cd(e){return"function"==typeof e&&e.hasOwnProperty(ZS)&&e.__forward_ref__===Te}function Dd(e){return e&&!!e.\u0275providers}const l_="https://g.co/ng/security#xss";class S extends Error{constructor(n,t){super(function ul(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function X(e){return"string"==typeof e?e:null==e?"":String(e)}function xd(e,n){throw new S(-201,!1)}function mn(e,n){null==e&&function H(e,n,t,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${t} ${i} ${n} <=Actual]`))}(n,e,null,"!=")}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ie(e){return{providers:e.providers||[],imports:e.imports||[]}}function dl(e){return c_(e,fl)||c_(e,u_)}function c_(e,n){return e.hasOwnProperty(n)?e[n]:null}function hl(e){return e&&(e.hasOwnProperty(Ed)||e.hasOwnProperty(iI))?e[Ed]:null}const fl=De({\u0275prov:De}),Ed=De({\u0275inj:De}),u_=De({ngInjectableDef:De}),iI=De({ngInjectorDef:De});var oe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(oe||{});let Md;function Gt(e){const n=Md;return Md=e,n}function h_(e,n,t){const i=dl(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&oe.Optional?null:void 0!==n?n:void xd(rt(e))}const Fe=globalThis;class R{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const fs={},kd="__NG_DI_FLAG__",pl="ngTempTokenPath",sI=/\n/gm,p_="__source";let Jr;function ji(e){const n=Jr;return Jr=e,n}function cI(e,n=oe.Default){if(void 0===Jr)throw new S(-203,!1);return null===Jr?h_(e,void 0,n):Jr.get(e,n&oe.Optional?null:void 0,n)}function M(e,n=oe.Default){return(function d_(){return Md}()||cI)(G(e),n)}function O(e,n=oe.Default){return M(e,ml(n))}function ml(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Rd(e){const n=[];for(let t=0;t<e.length;t++){const i=G(e[t]);if(Array.isArray(i)){if(0===i.length)throw new S(900,!1);let r,o=oe.Default;for(let s=0;s<i.length;s++){const a=i[s],l=uI(a);"number"==typeof l?-1===l?r=a.token:o|=l:r=a}n.push(M(r,o))}else n.push(M(i))}return n}function ps(e,n){return e[kd]=n,e.prototype[kd]=n,e}function uI(e){return e[kd]}function mi(e){return{toString:e}.toString()}var gl=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(gl||{}),gn=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(gn||{});const Yn={},ge=[],_l=De({\u0275cmp:De}),Pd=De({\u0275dir:De}),Fd=De({\u0275pipe:De}),g_=De({\u0275mod:De}),gi=De({\u0275fac:De}),ms=De({__NG_ELEMENT_ID__:De}),__=De({__NG_ENV_ID__:De});function v_(e,n,t){let i=e.length;for(;;){const r=e.indexOf(n,t);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const o=n.length;if(r+o===i||e.charCodeAt(r+o)<=32)return r}t=r+1}}function Od(e,n,t){let i=0;for(;i<t.length;){const r=t[i];if("number"==typeof r){if(0!==r)break;i++;const o=t[i++],s=t[i++],a=t[i++];e.setAttribute(n,s,a,o)}else{const o=r,s=t[++i];y_(o)?e.setProperty(n,o,s):e.setAttribute(n,o,s),i++}}return i}function b_(e){return 3===e||4===e||6===e}function y_(e){return 64===e.charCodeAt(0)}function gs(e,n){if(null!==n&&0!==n.length)if(null===e||0===e.length)e=n.slice();else{let t=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?t=r:0===t||w_(e,t,r,null,-1===t||2===t?n[++i]:null)}}return e}function w_(e,n,t,i,r){let o=0,s=e.length;if(-1===n)s=-1;else for(;o<e.length;){const a=e[o++];if("number"==typeof a){if(a===n){s=-1;break}if(a>n){s=o-1;break}}}for(;o<e.length;){const a=e[o];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(e[o+1]=r));if(i===e[o+1])return void(e[o+2]=r)}o++,null!==i&&o++,null!==r&&o++}-1!==s&&(e.splice(s,0,n),o=s+1),e.splice(o++,0,t),null!==i&&e.splice(o++,0,i),null!==r&&e.splice(o++,0,r)}const C_="ng-template";function fI(e,n,t){let i=0,r=!0;for(;i<e.length;){let o=e[i++];if("string"==typeof o&&r){const s=e[i++];if(t&&"class"===o&&-1!==v_(s.toLowerCase(),n,0))return!0}else{if(1===o){for(;i<e.length&&"string"==typeof(o=e[i++]);)if(o.toLowerCase()===n)return!0;return!1}"number"==typeof o&&(r=!1)}}return!1}function D_(e){return 4===e.type&&e.value!==C_}function pI(e,n,t){return n===(4!==e.type||t?e.value:C_)}function mI(e,n,t){let i=4;const r=e.attrs||[],o=function vI(e){for(let n=0;n<e.length;n++)if(b_(e[n]))return n;return e.length}(r);let s=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!s)if(4&i){if(i=2|1&i,""!==l&&!pI(e,l,t)||""===l&&1===n.length){if(kn(i))return!1;s=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==e.attrs){if(!fI(e.attrs,c,t)){if(kn(i))return!1;s=!0}continue}const f=gI(8&i?"class":l,r,D_(e),t);if(-1===f){if(kn(i))return!1;s=!0;continue}if(""!==c){let m;m=f>o?"":r[f+1].toLowerCase();const g=8&i?m:null;if(g&&-1!==v_(g,c,0)||2&i&&c!==m){if(kn(i))return!1;s=!0}}}}else{if(!s&&!kn(i)&&!kn(l))return!1;if(s&&kn(l))continue;s=!1,i=l|1&i}}return kn(i)||s}function kn(e){return 0==(1&e)}function gI(e,n,t,i){if(null===n)return-1;let r=0;if(i||!t){let o=!1;for(;r<n.length;){const s=n[r];if(s===e)return r;if(3===s||6===s)o=!0;else{if(1===s||2===s){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===s)break;if(0===s){r+=4;continue}}r+=o?1:2}return-1}return function bI(e,n){let t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){const i=e[t];if("number"==typeof i)return-1;if(i===n)return t;t++}return-1}(n,e)}function x_(e,n,t=!1){for(let i=0;i<n.length;i++)if(mI(e,n[i],t))return!0;return!1}function E_(e,n){return e?":not("+n.trim()+")":n}function wI(e){let n=e[0],t=1,i=2,r="",o=!1;for(;t<e.length;){let s=e[t];if("string"==typeof s)if(2&i){const a=e[++t];r+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!kn(s)&&(n+=E_(o,r),r=""),i=s,o=o||!kn(i);t++}return""!==r&&(n+=E_(o,r)),n}function Ce(e){return mi(()=>{const n=S_(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===gl.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||gn.Emulated,styles:e.styles||ge,_:null,schemas:e.schemas||null,tView:null,id:""};I_(t);const i=e.dependencies;return t.directiveDefs=vl(i,!1),t.pipeDefs=vl(i,!0),t.id=function TI(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const r of t)n=Math.imul(31,n)+r.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function EI(e){return he(e)||ht(e)}function MI(e){return null!==e}function Ae(e){return mi(()=>({type:e.type,bootstrap:e.bootstrap||ge,declarations:e.declarations||ge,imports:e.imports||ge,exports:e.exports||ge,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function M_(e,n){if(null==e)return Yn;const t={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),t[r]=i,n&&(n[r]=o)}return t}function z(e){return mi(()=>{const n=S_(e);return I_(n),n})}function Rt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function he(e){return e[_l]||null}function ht(e){return e[Pd]||null}function Pt(e){return e[Fd]||null}function en(e,n){const t=e[g_]||null;if(!t&&!0===n)throw new Error(`Type ${rt(e)} does not have '\u0275mod' property.`);return t}function S_(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Yn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||ge,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:M_(e.inputs,n),outputs:M_(e.outputs)}}function I_(e){e.features?.forEach(n=>n(e))}function vl(e,n){if(!e)return null;const t=n?Pt:EI;return()=>("function"==typeof e?e():e).map(i=>t(i)).filter(MI)}const We=0,N=1,ee=2,Ue=3,Rn=4,_s=5,Ct=6,to=7,Ke=8,Bi=9,no=10,Q=11,vs=12,T_=13,io=14,Xe=15,bs=16,ro=17,Zn=18,ys=19,A_=20,Ui=21,_i=22,ws=23,Cs=24,se=25,Nd=1,k_=2,Kn=7,oo=9,ft=11;function Wt(e){return Array.isArray(e)&&"object"==typeof e[Nd]}function Ft(e){return Array.isArray(e)&&!0===e[Nd]}function Ld(e){return 0!=(4&e.flags)}function dr(e){return e.componentOffset>-1}function yl(e){return 1==(1&e.flags)}function Pn(e){return!!e.template}function Vd(e){return 0!=(512&e[ee])}function hr(e,n){return e.hasOwnProperty(gi)?e[gi]:null}let pt=null,wl=!1;function _n(e){const n=pt;return pt=e,n}const F_={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function N_(e){if(!xs(e)||e.dirty){if(!e.producerMustRecompute(e)&&!j_(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function V_(e){e.dirty=!0,function L_(e){if(void 0===e.liveConsumerNode)return;const n=wl;wl=!0;try{for(const t of e.liveConsumerNode)t.dirty||V_(t)}finally{wl=n}}(e),e.consumerMarkedDirty?.(e)}function Bd(e){return e&&(e.nextProducerIndex=0),_n(e)}function Ud(e,n){if(_n(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(xs(e))for(let t=e.nextProducerIndex;t<e.producerNode.length;t++)Cl(e.producerNode[t],e.producerIndexOfThis[t]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function j_(e){so(e);for(let n=0;n<e.producerNode.length;n++){const t=e.producerNode[n],i=e.producerLastReadVersion[n];if(i!==t.version||(N_(t),i!==t.version))return!0}return!1}function B_(e){if(so(e),xs(e))for(let n=0;n<e.producerNode.length;n++)Cl(e.producerNode[n],e.producerIndexOfThis[n]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}function Cl(e,n){if(function H_(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),so(e),1===e.liveConsumerNode.length)for(let i=0;i<e.producerNode.length;i++)Cl(e.producerNode[i],e.producerIndexOfThis[i]);const t=e.liveConsumerNode.length-1;if(e.liveConsumerNode[n]=e.liveConsumerNode[t],e.liveConsumerIndexOfThis[n]=e.liveConsumerIndexOfThis[t],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,n<e.liveConsumerNode.length){const i=e.liveConsumerIndexOfThis[n],r=e.liveConsumerNode[n];so(r),r.producerIndexOfThis[i]=n}}function xs(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function so(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let $_=null;const W_=()=>{},HI=(()=>({...F_,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:W_}))();class $I{constructor(n,t,i){this.previousValue=n,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function tn(){return Y_}function Y_(e){return e.type.prototype.ngOnChanges&&(e.setInput=qI),zI}function zI(){const e=K_(this),n=e?.current;if(n){const t=e.previous;if(t===Yn)e.previous=n;else for(let i in n)t[i]=n[i];e.current=null,this.ngOnChanges(n)}}function qI(e,n,t,i){const r=this.declaredInputs[t],o=K_(e)||function GI(e,n){return e[Z_]=n}(e,{previous:Yn,current:null}),s=o.current||(o.current={}),a=o.previous,l=a[r];s[r]=new $I(l&&l.currentValue,n,a===Yn),e[i]=n}tn.ngInherit=!0;const Z_="__ngSimpleChanges__";function K_(e){return e[Z_]||null}const Xn=function(e,n,t){};function Oe(e){for(;Array.isArray(e);)e=e[We];return e}function Dl(e,n){return Oe(n[e])}function Yt(e,n){return Oe(n[e.index])}function J_(e,n){return e.data[n]}function ao(e,n){return e[n]}function nn(e,n){const t=n[e];return Wt(t)?t:t[We]}function $i(e,n){return null==n?null:e[n]}function ev(e){e[ro]=0}function QI(e){1024&e[ee]||(e[ee]|=1024,nv(e,1))}function tv(e){1024&e[ee]&&(e[ee]&=-1025,nv(e,-1))}function nv(e,n){let t=e[Ue];if(null===t)return;t[_s]+=n;let i=t;for(t=t[Ue];null!==t&&(1===n&&1===i[_s]||-1===n&&0===i[_s]);)t[_s]+=n,i=t,t=t[Ue]}const q={lFrame:fv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function ov(){return q.bindingsEnabled}function A(){return q.lFrame.lView}function fe(){return q.lFrame.tView}function W(e){return q.lFrame.contextLView=e,e[Ke]}function Y(e){return q.lFrame.contextLView=null,e}function mt(){let e=sv();for(;null!==e&&64===e.type;)e=e.parent;return e}function sv(){return q.lFrame.currentTNode}function Qn(e,n){const t=q.lFrame;t.currentTNode=e,t.isParent=n}function Gd(){return q.lFrame.isParent}function Wd(){q.lFrame.isParent=!1}function Ot(){const e=q.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function vi(){return q.lFrame.bindingIndex}function co(){return q.lFrame.bindingIndex++}function bi(e){const n=q.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function uT(e,n){const t=q.lFrame;t.bindingIndex=t.bindingRootIndex=e,Yd(n)}function Yd(e){q.lFrame.currentDirectiveIndex=e}function uv(){return q.lFrame.currentQueryIndex}function Kd(e){q.lFrame.currentQueryIndex=e}function hT(e){const n=e[N];return 2===n.type?n.declTNode:1===n.type?e[Ct]:null}function dv(e,n,t){if(t&oe.SkipSelf){let r=n,o=e;for(;!(r=r.parent,null!==r||t&oe.Host||(r=hT(o),null===r||(o=o[io],10&r.type))););if(null===r)return!1;n=r,e=o}const i=q.lFrame=hv();return i.currentTNode=n,i.lView=e,!0}function Xd(e){const n=hv(),t=e[N];q.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function hv(){const e=q.lFrame,n=null===e?null:e.child;return null===n?fv(e):n}function fv(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function pv(){const e=q.lFrame;return q.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mv=pv;function Qd(){const e=pv();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 Nt(){return q.lFrame.selectedIndex}function fr(e){q.lFrame.selectedIndex=e}function ze(){const e=q.lFrame;return J_(e.tView,e.selectedIndex)}let _v=!0;function xl(){return _v}function zi(e){_v=e}function El(e,n){for(let t=n.directiveStart,i=n.directiveEnd;t<i;t++){const o=e.data[t].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(e.contentHooks??=[]).push(-t,s),a&&((e.contentHooks??=[]).push(t,a),(e.contentCheckHooks??=[]).push(t,a)),l&&(e.viewHooks??=[]).push(-t,l),c&&((e.viewHooks??=[]).push(t,c),(e.viewCheckHooks??=[]).push(t,c)),null!=u&&(e.destroyHooks??=[]).push(t,u)}}function Ml(e,n,t){vv(e,n,3,t)}function Sl(e,n,t,i){(3&e[ee])===t&&vv(e,n,t,i)}function Jd(e,n){let t=e[ee];(3&t)===n&&(t&=8191,t+=1,e[ee]=t)}function vv(e,n,t,i){const o=i??-1,s=n.length-1;let a=0;for(let l=void 0!==i?65535&e[ro]:0;l<s;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(e[ro]+=65536),(a<o||-1==o)&&(yT(e,t,n,l),e[ro]=(4294901760&e[ro])+l+2),l++}function bv(e,n){Xn(4,e,n);const t=_n(null);try{n.call(e)}finally{_n(t),Xn(5,e,n)}}function yT(e,n,t,i){const r=t[i]<0,o=t[i+1],a=e[r?-t[i]:t[i]];r?e[ee]>>13<e[ro]>>16&&(3&e[ee])===n&&(e[ee]+=8192,bv(a,o)):bv(a,o)}const uo=-1;class Ms{constructor(n,t,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function th(e){return e!==uo}function Ss(e){return 32767&e}function Is(e,n){let t=function xT(e){return e>>16}(e),i=n;for(;t>0;)i=i[io],t--;return i}let nh=!0;function Il(e){const n=nh;return nh=e,n}const yv=255,wv=5;let ET=0;const Jn={};function Tl(e,n){const t=Cv(e,n);if(-1!==t)return t;const i=n[N];i.firstCreatePass&&(e.injectorIndex=n.length,ih(i.data,e),ih(n,null),ih(i.blueprint,null));const r=Al(e,n),o=e.injectorIndex;if(th(r)){const s=Ss(r),a=Is(r,n),l=a[N].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function ih(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Cv(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Al(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,i=null,r=n;for(;null!==r;){if(i=Tv(r),null===i)return uo;if(t++,r=r[io],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return uo}function rh(e,n,t){!function MT(e,n,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(ms)&&(i=t[ms]),null==i&&(i=t[ms]=ET++);const r=i&yv;n.data[e+(r>>wv)]|=1<<r}(e,n,t)}function Dv(e,n,t){if(t&oe.Optional||void 0!==e)return e;xd()}function xv(e,n,t,i){if(t&oe.Optional&&void 0===i&&(i=null),!(t&(oe.Self|oe.Host))){const r=e[Bi],o=Gt(void 0);try{return r?r.get(n,i,t&oe.Optional):h_(n,i,t&oe.Optional)}finally{Gt(o)}}return Dv(i,0,t)}function Ev(e,n,t,i=oe.Default,r){if(null!==e){if(2048&n[ee]&&!(i&oe.Self)){const s=function RT(e,n,t,i,r){let o=e,s=n;for(;null!==o&&null!==s&&2048&s[ee]&&!(512&s[ee]);){const a=Mv(o,s,t,i|oe.Self,Jn);if(a!==Jn)return a;let l=o.parent;if(!l){const c=s[A_];if(c){const u=c.get(t,Jn,i);if(u!==Jn)return u}l=Tv(s),s=s[io]}o=l}return r}(e,n,t,i,Jn);if(s!==Jn)return s}const o=Mv(e,n,t,i,Jn);if(o!==Jn)return o}return xv(n,t,i,r)}function Mv(e,n,t,i,r){const o=function TT(e){if("string"==typeof e)return e.charCodeAt(0)||0;const n=e.hasOwnProperty(ms)?e[ms]:void 0;return"number"==typeof n?n>=0?n&yv:kT:n}(t);if("function"==typeof o){if(!dv(n,e,i))return i&oe.Host?Dv(r,0,i):xv(n,t,i,r);try{let s;if(s=o(i),null!=s||i&oe.Optional)return s;xd()}finally{mv()}}else if("number"==typeof o){let s=null,a=Cv(e,n),l=uo,c=i&oe.Host?n[Xe][Ct]:null;for((-1===a||i&oe.SkipSelf)&&(l=-1===a?Al(e,n):n[a+8],l!==uo&&Iv(i,!1)?(s=n[N],a=Ss(l),n=Is(l,n)):a=-1);-1!==a;){const u=n[N];if(Sv(o,a,u.data)){const f=IT(a,n,t,s,i,c);if(f!==Jn)return f}l=n[a+8],l!==uo&&Iv(i,n[N].data[a+8]===c)&&Sv(o,a,n)?(s=u,a=Ss(l),n=Is(l,n)):a=-1}}return r}function IT(e,n,t,i,r,o){const s=n[N],a=s.data[e+8],u=kl(a,s,t,null==i?dr(a)&&nh:i!=s&&0!=(3&a.type),r&oe.Host&&o===a);return null!==u?pr(n,s,u,a):Jn}function kl(e,n,t,i,r){const o=e.providerIndexes,s=n.data,a=1048575&o,l=e.directiveStart,u=o>>20,m=r?a+u:e.directiveEnd;for(let g=i?a:a+u;g<m;g++){const b=s[g];if(g<l&&t===b||g>=l&&b.type===t)return g}if(r){const g=s[l];if(g&&Pn(g)&&g.type===t)return l}return null}function pr(e,n,t,i){let r=e[t];const o=n.data;if(function wT(e){return e instanceof Ms}(r)){const s=r;s.resolving&&function KS(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new S(-200,`Circular dependency in DI detected for ${e}${t}`)}(function we(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():X(e)}(o[t]));const a=Il(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?Gt(s.injectImpl):null;dv(e,i,oe.Default);try{r=e[t]=s.factory(void 0,o,e,i),n.firstCreatePass&&t>=i.directiveStart&&function bT(e,n,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Y_(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}r&&(t.preOrderHooks??=[]).push(0-e,r),o&&((t.preOrderHooks??=[]).push(e,o),(t.preOrderCheckHooks??=[]).push(e,o))}(t,o[t],n)}finally{null!==c&&Gt(c),Il(a),s.resolving=!1,mv()}}return r}function Sv(e,n,t){return!!(t[n+(e>>wv)]&1<<e)}function Iv(e,n){return!(e&oe.Self||e&oe.Host&&n)}class Lt{constructor(n,t){this._tNode=n,this._lView=t}get(n,t,i){return Ev(this._tNode,this._lView,n,ml(i),t)}}function kT(){return new Lt(mt(),A())}function gt(e){return mi(()=>{const n=e.prototype.constructor,t=n[gi]||oh(n),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const o=r[gi]||oh(r);if(o&&o!==t)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function oh(e){return Cd(e)?()=>{const n=oh(G(e));return n&&n()}:hr(e)}function Tv(e){const n=e[N],t=n.type;return 2===t?n.declTNode:1===t?e[Ct]:null}const fo="__parameters__";function mo(e,n,t){return mi(()=>{const i=function sh(e){return function(...t){if(e){const i=e(...t);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const f=l.hasOwnProperty(fo)?l[fo]:Object.defineProperty(l,fo,{value:[]})[fo];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(s),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function _o(e,n){e.forEach(t=>Array.isArray(t)?_o(t,n):n(t))}function kv(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Pl(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function rn(e,n,t){let i=vo(e,n);return i>=0?e[1|i]=t:(i=~i,function jT(e,n,t,i){let r=e.length;if(r==n)e.push(t,i);else if(1===r)e.push(i,e[0]),e[0]=t;else{for(r--,e.push(e[r-1],e[r]);r>n;)e[r]=e[r-2],r--;e[n]=t,e[n+1]=i}}(e,i,n,t)),i}function ah(e,n){const t=vo(e,n);if(t>=0)return e[1|t]}function vo(e,n){return function Rv(e,n,t){let i=0,r=e.length>>t;for(;r!==i;){const o=i+(r-i>>1),s=e[o<<t];if(n===s)return o<<t;s>n?r=o:i=o+1}return~(r<<t)}(e,n,1)}const Ol=ps(mo("Optional"),8),Nl=ps(mo("SkipSelf"),4);function Ul(e){return 128==(128&e.flags)}var qi=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qi||{});const sA=/^>|^->|<!--|-->|--!>|<!-$/g,aA=/(<|>)/g,lA="\u200b$1\u200b";const hh=new Map;let cA=0;const ph="__ngContext__";function Dt(e,n){Wt(n)?(e[ph]=n[ys],function dA(e){hh.set(e[ys],e)}(n)):e[ph]=n}let mh;function gh(e,n){return mh(e,n)}function Fs(e){const n=e[Ue];return Ft(n)?n[Ue]:n}function Qv(e){return eb(e[vs])}function Jv(e){return eb(e[Rn])}function eb(e){for(;null!==e&&!Ft(e);)e=e[Rn];return e}function wo(e,n,t,i,r){if(null!=i){let o,s=!1;Ft(i)?o=i:Wt(i)&&(s=!0,i=i[We]);const a=Oe(i);0===e&&null!==t?null==r?rb(n,t,a):mr(n,t,a,r||null,!0):1===e&&null!==t?mr(n,t,a,r||null,!0):2===e?function Yl(e,n,t){const i=Gl(e,n);i&&function AA(e,n,t,i){e.removeChild(n,t,i)}(e,i,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=o&&function PA(e,n,t,i,r){const o=t[Kn];o!==Oe(t)&&wo(n,e,i,o,r);for(let a=ft;a<t.length;a++){const l=t[a];Ns(l[N],l,e,n,i,o)}}(n,e,o,t,r)}}function _h(e,n){return e.createComment(function zv(e){return e.replace(sA,n=>n.replace(aA,lA))}(n))}function zl(e,n,t){return e.createElement(n,t)}function nb(e,n){const t=e[oo],i=t.indexOf(n);tv(n),t.splice(i,1)}function ql(e,n){if(e.length<=ft)return;const t=ft+n,i=e[t];if(i){const r=i[bs];null!==r&&r!==e&&nb(r,i),n>0&&(e[t-1][Rn]=i[Rn]);const o=Pl(e,ft+n);!function CA(e,n){Ns(e,n,n[Q],2,null,null),n[We]=null,n[Ct]=null}(i[N],i);const s=o[Zn];null!==s&&s.detachView(o[N]),i[Ue]=null,i[Rn]=null,i[ee]&=-129}return i}function vh(e,n){if(!(256&n[ee])){const t=n[Q];n[ws]&&B_(n[ws]),n[Cs]&&B_(n[Cs]),t.destroyNode&&Ns(e,n,t,3,null,null),function EA(e){let n=e[vs];if(!n)return bh(e[N],e);for(;n;){let t=null;if(Wt(n))t=n[vs];else{const i=n[ft];i&&(t=i)}if(!t){for(;n&&!n[Rn]&&n!==e;)Wt(n)&&bh(n[N],n),n=n[Ue];null===n&&(n=e),Wt(n)&&bh(n[N],n),t=n&&n[Rn]}n=t}}(n)}}function bh(e,n){if(!(256&n[ee])){n[ee]&=-129,n[ee]|=256,function TA(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let i=0;i<t.length;i+=2){const r=n[t[i]];if(!(r instanceof Ms)){const o=t[i+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){const a=r[o[s]],l=o[s+1];Xn(4,a,l);try{l.call(a)}finally{Xn(5,a,l)}}else{Xn(4,r,o);try{o.call(r)}finally{Xn(5,r,o)}}}}}(e,n),function IA(e,n){const t=e.cleanup,i=n[to];if(null!==t)for(let o=0;o<t.length-1;o+=2)if("string"==typeof t[o]){const s=t[o+3];s>=0?i[s]():i[-s].unsubscribe(),o+=2}else t[o].call(i[t[o+1]]);null!==i&&(n[to]=null);const r=n[Ui];if(null!==r){n[Ui]=null;for(let o=0;o<r.length;o++)(0,r[o])()}}(e,n),1===n[N].type&&n[Q].destroy();const t=n[bs];if(null!==t&&Ft(n[Ue])){t!==n[Ue]&&nb(t,n);const i=n[Zn];null!==i&&i.detachView(e)}!function hA(e){hh.delete(e[ys])}(n)}}function yh(e,n,t){return function ib(e,n,t){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return t[We];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:o}=e.data[i.directiveStart+r];if(o===gn.None||o===gn.Emulated)return null}return Yt(i,t)}}(e,n.parent,t)}function mr(e,n,t,i,r){e.insertBefore(n,t,i,r)}function rb(e,n,t){e.appendChild(n,t)}function ob(e,n,t,i,r){null!==i?mr(e,n,t,i,r):rb(e,n,t)}function Gl(e,n){return e.parentNode(n)}let wh,Zl,Eh,Kl,lb=function ab(e,n,t){return 40&e.type?Yt(e,t):null};function Wl(e,n,t,i){const r=yh(e,i,n),o=n[Q],a=function sb(e,n,t){return lb(e,n,t)}(i.parent||n[Ct],i,n);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)ob(o,r,t[l],a,!1);else ob(o,r,t,a,!1);void 0!==wh&&wh(o,i,n,t,r)}function Os(e,n){if(null!==n){const t=n.type;if(3&t)return Yt(n,e);if(4&t)return Ch(-1,e[n.index]);if(8&t){const i=n.child;if(null!==i)return Os(e,i);{const r=e[n.index];return Ft(r)?Ch(-1,r):Oe(r)}}if(32&t)return gh(n,e)()||Oe(e[n.index]);{const i=ub(e,n);return null!==i?Array.isArray(i)?i[0]:Os(Fs(e[Xe]),i):Os(e,n.next)}}return null}function ub(e,n){return null!==n?e[Xe][Ct].projection[n.projection]:null}function Ch(e,n){const t=ft+e+1;if(t<n.length){const i=n[t],r=i[N].firstChild;if(null!==r)return Os(i,r)}return n[Kn]}function Dh(e,n,t,i,r,o,s){for(;null!=t;){const a=i[t.index],l=t.type;if(s&&0===n&&(a&&Dt(Oe(a),i),t.flags|=2),32!=(32&t.flags))if(8&l)Dh(e,n,t.child,i,r,o,!1),wo(n,e,r,a,o);else if(32&l){const c=gh(t,i);let u;for(;u=c();)wo(n,e,r,u,o);wo(n,e,r,a,o)}else 16&l?hb(e,n,i,t,r,o):wo(n,e,r,a,o);t=s?t.projectionNext:t.next}}function Ns(e,n,t,i,r,o){Dh(t,i,e.firstChild,n,r,o,!1)}function hb(e,n,t,i,r,o){const s=t[Xe],l=s[Ct].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)wo(n,e,r,l[c],o);else{let c=l;const u=s[Ue];Ul(i)&&(c.flags|=128),Dh(e,n,c,u,r,o,!0)}}function fb(e,n,t){""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t)}function pb(e,n,t){const{mergedAttrs:i,classes:r,styles:o}=t;null!==i&&Od(e,n,i),null!==r&&fb(e,n,r),null!==o&&function OA(e,n,t){e.setAttribute(n,"style",t)}(e,n,o)}function Co(e){return function xh(){if(void 0===Zl&&(Zl=null,Fe.trustedTypes))try{Zl=Fe.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Zl}()?.createHTML(e)||e}function Do(){if(void 0!==Eh)return Eh;if(typeof document<"u")return document;throw new S(210,!1)}function Mh(){if(void 0===Kl&&(Kl=null,Fe.trustedTypes))try{Kl=Fe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Kl}function mb(e){return Mh()?.createHTML(e)||e}function _b(e){return Mh()?.createScriptURL(e)||e}class gr{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${l_})`}}class BA extends gr{getTypeName(){return"HTML"}}class UA extends gr{getTypeName(){return"Style"}}class HA extends gr{getTypeName(){return"Script"}}class $A extends gr{getTypeName(){return"URL"}}class zA extends gr{getTypeName(){return"ResourceURL"}}function on(e){return e instanceof gr?e.changingThisBreaksApplicationSecurity:e}function ei(e,n){const t=function qA(e){return e instanceof gr&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${l_})`)}return t===n}class XA{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const t=(new window.DOMParser).parseFromString(Co(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class QA{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Co(n),t}}const ek=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Xl(e){return(e=String(e)).match(ek)?e:"unsafe:"+e}function yi(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Ls(...e){const n={};for(const t of e)for(const i in t)t.hasOwnProperty(i)&&(n[i]=!0);return n}const bb=yi("area,br,col,hr,img,wbr"),yb=yi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wb=yi("rp,rt"),Sh=Ls(bb,Ls(yb,yi("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")),Ls(wb,yi("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")),Ls(wb,yb)),Ih=yi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Cb=Ls(Ih,yi("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"),yi("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")),tk=yi("script,style,template");class nk{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,i=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?i=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,i&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let r=this.checkClobberedElement(t,t.nextSibling);if(r){t=r;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!Sh.hasOwnProperty(t))return this.sanitizedSomething=!0,!tk.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const i=n.attributes;for(let r=0;r<i.length;r++){const o=i.item(r),s=o.name,a=s.toLowerCase();if(!Cb.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=o.value;Ih[a]&&(l=Xl(l)),this.buf.push(" ",s,'="',Db(l),'"')}return this.buf.push(">"),!0}endElement(n){const t=n.nodeName.toLowerCase();Sh.hasOwnProperty(t)&&!bb.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}chars(n){this.buf.push(Db(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const ik=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rk=/([^\#-~ |!])/g;function Db(e){return e.replace(/&/g,"&amp;").replace(ik,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(rk,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ql;function xb(e,n){let t=null;try{Ql=Ql||function vb(e){const n=new QA(e);return function JA(){try{return!!(new window.DOMParser).parseFromString(Co(""),"text/html")}catch{return!1}}()?new XA(n):n}(e);let i=n?String(n):"";t=Ql.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=t.innerHTML,t=Ql.getInertBodyElement(i)}while(i!==o);return Co((new nk).sanitizeChildren(Th(t)||t))}finally{if(t){const i=Th(t)||t;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Th(e){return"content"in e&&function ok(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var bn=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}(bn||{});function Jl(e){const n=Vs();return n?mb(n.sanitize(bn.HTML,e)||""):ei(e,"HTML")?mb(on(e)):xb(Do(),X(e))}function wi(e){const n=Vs();return n?n.sanitize(bn.URL,e)||"":ei(e,"URL")?on(e):Xl(X(e))}function Eb(e){const n=Vs();if(n)return _b(n.sanitize(bn.RESOURCE_URL,e)||"");if(ei(e,"ResourceURL"))return _b(on(e));throw new S(904,!1)}function Vs(){const e=A();return e&&e[no].sanitizer}const js=new R("ENVIRONMENT_INITIALIZER"),Sb=new R("INJECTOR",-1),Ib=new R("INJECTOR_DEF_TYPES");class Ah{get(n,t=fs){if(t===fs){const i=new Error(`NullInjectorError: No provider for ${rt(n)}!`);throw i.name="NullInjectorError",i}return t}}function dk(...e){return{\u0275providers:Tb(0,e),\u0275fromNgModule:!0}}function Tb(e,...n){const t=[],i=new Set;let r;const o=s=>{t.push(s)};return _o(n,s=>{const a=s;ec(a,o,[],i)&&(r||=[],r.push(a))}),void 0!==r&&Ab(r,o),t}function Ab(e,n){for(let t=0;t<e.length;t++){const{ngModule:i,providers:r}=e[t];Rh(r,o=>{n(o,i)})}}function ec(e,n,t,i){if(!(e=G(e)))return!1;let r=null,o=hl(e);const s=!o&&he(e);if(o||s){if(s&&!s.standalone)return!1;r=e}else{const l=e.ngModule;if(o=hl(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)ec(c,n,t,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{_o(o.imports,u=>{ec(u,n,t,i)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Ab(c,n)}if(!a){const c=hr(r)||(()=>new r);n({provide:r,useFactory:c,deps:ge},r),n({provide:Ib,useValue:r,multi:!0},r),n({provide:js,useValue:()=>M(r),multi:!0},r)}const l=o.providers;if(null!=l&&!a){const c=e;Rh(l,u=>{n(u,c)})}}}return r!==e&&void 0!==e.providers}function Rh(e,n){for(let t of e)Dd(t)&&(t=t.\u0275providers),Array.isArray(t)?Rh(t,n):n(t)}const hk=De({provide:String,useValue:De});function Ph(e){return null!==e&&"object"==typeof e&&hk in e}function _r(e){return"function"==typeof e}const Fh=new R("Set Injector scope."),tc={},pk={};let Oh;function nc(){return void 0===Oh&&(Oh=new Ah),Oh}class sn{}class xo extends sn{get destroyed(){return this._destroyed}constructor(n,t,i,r){super(),this.parent=t,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Lh(n,s=>this.processProvider(s)),this.records.set(Sb,Eo(void 0,this)),r.has("environment")&&this.records.set(sn,Eo(void 0,this));const o=this.records.get(Fh);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Ib.multi,ge,oe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=ji(this),i=Gt(void 0);try{return n()}finally{ji(t),Gt(i)}}get(n,t=fs,i=oe.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(__))return n[__](this);i=ml(i);const o=ji(this),s=Gt(void 0);try{if(!(i&oe.SkipSelf)){let l=this.records.get(n);if(void 0===l){const c=function bk(e){return"function"==typeof e||"object"==typeof e&&e instanceof R}(n)&&dl(n);l=c&&this.injectableDefInScope(c)?Eo(Nh(n),tc):null,this.records.set(n,l)}if(null!=l)return this.hydrate(n,l)}return(i&oe.Self?nc():this.parent).get(n,t=i&oe.Optional&&t===fs?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[pl]=a[pl]||[]).unshift(rt(n)),o)throw a;return function dI(e,n,t,i){const r=e[pl];throw n[p_]&&r.unshift(n[p_]),e.message=function hI(e,n,t,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let r=rt(n);if(Array.isArray(n))r=n.map(rt).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):rt(a)))}r=`{${o.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${e.replace(sI,"\n  ")}`}("\n"+e.message,r,t,i),e.ngTokenPath=r,e[pl]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{Gt(s),ji(o)}}resolveInjectorInitializers(){const n=ji(this),t=Gt(void 0);try{const r=this.get(js.multi,ge,oe.Self);for(const o of r)o()}finally{ji(n),Gt(t)}}toString(){const n=[],t=this.records;for(const i of t.keys())n.push(rt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(n){let t=_r(n=G(n))?n:G(n&&n.provide);const i=function gk(e){return Ph(e)?Eo(void 0,e.useValue):Eo(Pb(e),tc)}(n);if(_r(n)||!0!==n.multi)this.records.get(t);else{let r=this.records.get(t);r||(r=Eo(void 0,tc,!0),r.factory=()=>Rd(r.multi),this.records.set(t,r)),t=n,r.multi.push(n)}this.records.set(t,i)}hydrate(n,t){return t.value===tc&&(t.value=pk,t.value=t.factory()),"object"==typeof t.value&&t.value&&function vk(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=G(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Nh(e){const n=dl(e),t=null!==n?n.factory:hr(e);if(null!==t)return t;if(e instanceof R)throw new S(204,!1);if(e instanceof Function)return function mk(e){const n=e.length;if(n>0)throw function ks(e,n){const t=[];for(let i=0;i<e;i++)t.push(n);return t}(n,"?"),new S(204,!1);const t=function nI(e){return e&&(e[fl]||e[u_])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new S(204,!1)}function Pb(e,n,t){let i;if(_r(e)){const r=G(e);return hr(r)||Nh(r)}if(Ph(e))i=()=>G(e.useValue);else if(function Rb(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Rd(e.deps||[]));else if(function kb(e){return!(!e||!e.useExisting)}(e))i=()=>M(G(e.useExisting));else{const r=G(e&&(e.useClass||e.provide));if(!function _k(e){return!!e.deps}(e))return hr(r)||Nh(r);i=()=>new r(...Rd(e.deps))}return i}function Eo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Lh(e,n){for(const t of e)Array.isArray(t)?Lh(t,n):t&&Dd(t)?Lh(t.\u0275providers,n):n(t)}const ic=new R("AppId",{providedIn:"root",factory:()=>yk}),yk="ng",Fb=new R("Platform Initializer"),Ci=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Vh=new R("AnimationModuleType"),jh=new R("CSP nonce",{providedIn:"root",factory:()=>Do().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ob=(e,n,t)=>null;function Wh(e,n,t=!1){return Ob(e,n,t)}class Ak{}class Vb{}class Rk{resolveComponentFactory(n){throw function kk(e){const n=Error(`No component factory found for ${rt(e)}.`);return n.ngComponent=e,n}(n)}}let Hs=(()=>{class e{static{this.NULL=new Rk}}return e})();function Pk(){return Io(mt(),A())}function Io(e,n){return new st(Yt(e,n))}let st=(()=>{class e{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=Pk}}return e})();function Fk(e){return e instanceof st?e.nativeElement:e}class $s{}let yn=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Ok(){const e=A(),t=nn(mt().index,e);return(Wt(t)?t:e)[Q]}()}}return e})(),Nk=(()=>{class e{static{this.\u0275prov=P({token:e,providedIn:"root",factory:()=>null})}}return e})();class vr{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Lk=new vr("16.2.12"),Kh={};function $b(e,n=null,t=null,i){const r=zb(e,n,t,i);return r.resolveInjectorInitializers(),r}function zb(e,n=null,t=null,i,r=new Set){const o=[t||ge,dk(e)];return i=i||("object"==typeof e?void 0:rt(e)),new xo(o,n||nc(),i||null,r)}let xt=(()=>{class e{static{this.THROW_IF_NOT_FOUND=fs}static{this.NULL=new Ah}static create(t,i){if(Array.isArray(t))return $b({name:""},i,t,"");{const r=t.name??"";return $b({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=P({token:e,providedIn:"any",factory:()=>M(Sb)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function Qh(e){return e.ngOriginalError}class Di{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&Qh(n);for(;t&&Qh(t);)t=Qh(t);return t||null}}function Jh(e){return n=>{setTimeout(e,void 0,n)}}const _e=class qk extends je{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,i){let r=n,o=t||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Jh(o),r&&(r=Jh(r)),s&&(s=Jh(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof nt&&n.add(a),a}};function Gb(...e){}class le{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new _e(!1),this.onMicrotaskEmpty=new _e(!1),this.onStable=new _e(!1),this.onError=new _e(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function Gk(){const e="function"==typeof Fe.requestAnimationFrame;let n=Fe[e?"requestAnimationFrame":"setTimeout"],t=Fe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function Zk(e){const n=()=>{!function Yk(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Fe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,tf(e),e.isCheckStableRunning=!0,ef(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),tf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,o,s,a)=>{if(function Xk(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(r,o,s,a);try{return Wb(e),t.invokeTask(r,o,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||e.shouldCoalesceRunChangeDetection)&&n(),Yb(e)}},onInvoke:(t,i,r,o,s,a,l)=>{try{return Wb(e),t.invoke(r,o,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),Yb(e)}},onHasTask:(t,i,r,o)=>{t.hasTask(r,o),i===r&&("microTask"==o.change?(e._hasPendingMicrotasks=o.microTask,tf(e),ef(e)):"macroTask"==o.change&&(e.hasPendingMacrotasks=o.macroTask))},onHandleError:(t,i,r,o)=>(t.handleError(r,o),e.runOutsideAngular(()=>e.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!le.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(le.isInAngularZone())throw new S(909,!1)}run(n,t,i){return this._inner.run(n,t,i)}runTask(n,t,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,Wk,Gb,Gb);try{return o.runTask(s,t,i)}finally{o.cancelTask(s)}}runGuarded(n,t,i){return this._inner.runGuarded(n,t,i)}runOutsideAngular(n){return this._outer.run(n)}}const Wk={};function ef(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function tf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Wb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Yb(e){e._nesting--,ef(e)}class Kk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _e,this.onMicrotaskEmpty=new _e,this.onStable=new _e,this.onError=new _e}run(n,t,i){return n.apply(t,i)}runGuarded(n,t,i){return n.apply(t,i)}runOutsideAngular(n){return n()}runTask(n,t,i,r){return n.apply(t,i)}}const Zb=new R("",{providedIn:"root",factory:Kb});function Kb(){const e=O(le);let n=!0;return s_(new Pe(r=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{r.next(n),r.complete()})}),new Pe(r=>{let o;e.runOutsideAngular(()=>{o=e.onStable.subscribe(()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,r.next(!0))})})});const s=e.onUnstable.subscribe(()=>{le.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{r.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}}).pipe(a_()))}function xi(e){return e instanceof Function?e():e}let nf=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static{this.\u0275prov=P({token:e,providedIn:"root",factory:()=>new e})}}return e})();function zs(e){for(;e;){e[ee]|=64;const n=Fs(e);if(Vd(e)&&!n)return e;e=n}return null}const ty=new R("",{providedIn:"root",factory:()=>!1});let dc=null;function oy(e,n){return e[n]??ly()}function sy(e,n){const t=ly();t.producerNode?.length&&(e[n]=dc,t.lView=e,dc=ay())}const aR={...F_,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{zs(e.lView)},lView:null};function ay(){return Object.create(aR)}function ly(){return dc??=ay(),dc}const J={};function p(e){cy(fe(),A(),Nt()+e,!1)}function cy(e,n,t,i){if(!i)if(3==(3&n[ee])){const o=e.preOrderCheckHooks;null!==o&&Ml(n,o,t)}else{const o=e.preOrderHooks;null!==o&&Sl(n,o,0,t)}fr(t)}function D(e,n=oe.Default){const t=A();return null===t?M(e,n):Ev(mt(),t,G(e),n)}function hc(e,n,t,i,r,o,s,a,l,c,u){const f=n.blueprint.slice();return f[We]=r,f[ee]=140|i,(null!==c||e&&2048&e[ee])&&(f[ee]|=2048),ev(f),f[Ue]=f[io]=e,f[Ke]=t,f[no]=s||e&&e[no],f[Q]=a||e&&e[Q],f[Bi]=l||e&&e[Bi]||null,f[Ct]=o,f[ys]=function uA(){return cA++}(),f[_i]=u,f[A_]=c,f[Xe]=2==n.type?e[Xe]:f,f}function ko(e,n,t,i,r){let o=e.data[n];if(null===o)o=function rf(e,n,t,i,r){const o=sv(),s=Gd(),l=e.data[n]=function mR(e,n,t,i,r,o){let s=n?n.injectorIndex:-1,a=0;return function lo(){return null!==q.skipHydrationRootTNode}()&&(a|=128),{type:t,index:i,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?o:o&&o.parent,t,n,i,r);return null===e.firstChild&&(e.firstChild=l),null!==o&&(s?null==o.child&&null!==l.parent&&(o.child=l):null===o.next&&(o.next=l,l.prev=o)),l}(e,n,t,i,r),function cT(){return q.lFrame.inI18n}()&&(o.flags|=32);else if(64&o.type){o.type=t,o.value=i,o.attrs=r;const s=function Es(){const e=q.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();o.injectorIndex=null===s?-1:s.injectorIndex}return Qn(o,!0),o}function qs(e,n,t,i){if(0===t)return-1;const r=n.length;for(let o=0;o<t;o++)n.push(i),e.blueprint.push(i),e.data.push(null);return r}function dy(e,n,t,i,r){const o=oy(n,ws),s=Nt(),a=2&i;try{fr(-1),a&&n.length>se&&cy(e,n,se,!1),Xn(a?2:0,r);const c=a?o:null,u=Bd(c);try{null!==c&&(c.dirty=!1),t(i,r)}finally{Ud(c,u)}}finally{a&&null===n[ws]&&sy(n,ws),fr(s),Xn(a?3:1,r)}}function sf(e,n,t){if(Ld(n)){const i=_n(null);try{const o=n.directiveEnd;for(let s=n.directiveStart;s<o;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,t[s],s)}}finally{_n(i)}}}function af(e,n,t){ov()&&(function CR(e,n,t,i){const r=t.directiveStart,o=t.directiveEnd;dr(t)&&function TR(e,n,t){const i=Yt(n,e),r=hy(t);let s=16;t.signals?s=4096:t.onPush&&(s=64);const a=fc(e,hc(e,r,null,s,i,n,null,e[no].rendererFactory.createRenderer(i,t),null,null,null));e[n.index]=a}(n,t,e.data[r+t.componentOffset]),e.firstCreatePass||Tl(t,n),Dt(i,n);const s=t.initialInputs;for(let a=r;a<o;a++){const l=e.data[a],c=pr(n,e,a,t);Dt(c,n),null!==s&&AR(0,a-r,c,l,0,s),Pn(l)&&(nn(t.index,n)[Ke]=pr(n,e,a,t))}}(e,n,t,Yt(t,n)),64==(64&t.flags)&&_y(e,n,t))}function lf(e,n,t=Yt){const i=n.localNames;if(null!==i){let r=n.index+1;for(let o=0;o<i.length;o+=2){const s=i[o+1],a=-1===s?t(n,e):e[s];e[r++]=a}}}function hy(e){const n=e.tView;return null===n||n.incompleteFirstPass?e.tView=cf(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):n}function cf(e,n,t,i,r,o,s,a,l,c,u){const f=se+i,m=f+r,g=function cR(e,n){const t=[];for(let i=0;i<n;i++)t.push(i<e?null:J);return t}(f,m),b="function"==typeof c?c():c;return g[N]={type:e,blueprint:g,template:t,queries:null,viewQuery:a,declTNode:n,data:g.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:m,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:b,incompleteFirstPass:!1,ssrId:u}}let fy=e=>null;function py(e,n,t,i){for(let r in e)if(e.hasOwnProperty(r)){t=null===t?{}:t;const o=e[r];null===i?my(t,n,r,o):i.hasOwnProperty(r)&&my(t,n,i[r],o)}return t}function my(e,n,t,i){e.hasOwnProperty(t)?e[t].push(n,i):e[t]=[n,i]}function an(e,n,t,i,r,o,s,a){const l=Yt(n,t);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(pf(e,t,u,i,r),dr(n)&&function vR(e,n){const t=nn(n,e);16&t[ee]||(t[ee]|=64)}(t,n.index)):3&n.type&&(i=function _R(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=s?s(r,n.value||"",i):r,o.setProperty(l,i,r))}function uf(e,n,t,i){if(ov()){const r=null===i?null:{"":-1},o=function xR(e,n){const t=e.directiveRegistry;let i=null,r=null;if(t)for(let o=0;o<t.length;o++){const s=t[o];if(x_(n,s.selectors,!1))if(i||(i=[]),Pn(s))if(null!==s.findHostDirectiveDefs){const a=[];r=r||new Map,s.findHostDirectiveDefs(s,a,r),i.unshift(...a,s),df(e,n,a.length)}else i.unshift(s),df(e,n,0);else r=r||new Map,s.findHostDirectiveDefs?.(s,i,r),i.push(s)}return null===i?null:[i,r]}(e,t);let s,a;null===o?s=a=null:[s,a]=o,null!==s&&gy(e,n,t,s,r,a),r&&function ER(e,n,t){if(n){const i=e.localNames=[];for(let r=0;r<n.length;r+=2){const o=t[n[r+1]];if(null==o)throw new S(-301,!1);i.push(n[r],o)}}}(t,i,r)}t.mergedAttrs=gs(t.mergedAttrs,t.attrs)}function gy(e,n,t,i,r,o){for(let c=0;c<i.length;c++)rh(Tl(t,n),e,i[c].type);!function SR(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}(t,e.data.length,i.length);for(let c=0;c<i.length;c++){const u=i[c];u.providersResolver&&u.providersResolver(u)}let s=!1,a=!1,l=qs(e,n,i.length,null);for(let c=0;c<i.length;c++){const u=i[c];t.mergedAttrs=gs(t.mergedAttrs,u.hostAttrs),IR(e,t,n,l,u),MR(l,u,r),null!==u.contentQueries&&(t.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(t.flags|=64);const f=u.type.prototype;!s&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks??=[]).push(t.index),s=!0),!a&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(t.index),a=!0),l++}!function gR(e,n,t){const r=n.directiveEnd,o=e.data,s=n.attrs,a=[];let l=null,c=null;for(let u=n.directiveStart;u<r;u++){const f=o[u],m=t?t.get(f):null,b=m?m.outputs:null;l=py(f.inputs,u,l,m?m.inputs:null),c=py(f.outputs,u,c,b);const y=null===l||null===s||D_(n)?null:kR(l,u,s);a.push(y)}null!==l&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}(e,t,o)}function _y(e,n,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,s=function dT(){return q.lFrame.currentDirectiveIndex}();try{fr(o);for(let a=i;a<r;a++){const l=e.data[a],c=n[a];Yd(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&DR(l,c)}}finally{fr(-1),Yd(s)}}function DR(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function df(e,n,t){n.componentOffset=t,(e.components??=[]).push(n.index)}function MR(e,n,t){if(t){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)t[n.exportAs[i]]=e;Pn(n)&&(t[""]=e)}}function IR(e,n,t,i,r){e.data[i]=r;const o=r.factory||(r.factory=hr(r.type)),s=new Ms(o,Pn(r),D);e.blueprint[i]=s,t[i]=s,function yR(e,n,t,i,r){const o=r.hostBindings;if(o){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~n.index;(function wR(e){let n=e.length;for(;n>0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,i,o)}}(e,n,i,qs(e,t,r.hostVars,J),r)}function ti(e,n,t,i,r,o){const s=Yt(e,n);!function hf(e,n,t,i,r,o,s){if(null==o)e.removeAttribute(n,r,t);else{const a=null==s?X(o):s(o,i||"",r);e.setAttribute(n,r,a,t)}}(n[Q],s,o,e.value,t,i,r)}function AR(e,n,t,i,r,o){const s=o[n];if(null!==s)for(let a=0;a<s.length;)vy(i,t,s[a++],s[a++],s[a++])}function vy(e,n,t,i,r){const o=_n(null);try{const s=e.inputTransforms;null!==s&&s.hasOwnProperty(i)&&(r=s[i].call(n,r)),null!==e.setInput?e.setInput(n,r,t,i):n[i]=r}finally{_n(o)}}function kR(e,n,t){let i=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;if(e.hasOwnProperty(o)){null===i&&(i=[]);const s=e[o];for(let a=0;a<s.length;a+=2)if(s[a]===n){i.push(o,s[a+1],t[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function by(e,n,t,i){return[e,!0,!1,n,null,0,i,t,null,null,null]}function yy(e,n){const t=e.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const o=t[i+1];if(-1!==o){const s=e.data[o];Kd(t[i]),s.contentQueries(2,n[o],o)}}}function fc(e,n){return e[vs]?e[T_][Rn]=n:e[vs]=n,e[T_]=n,n}function ff(e,n,t){Kd(0);const i=_n(null);try{n(e,t)}finally{_n(i)}}function wy(e){return e[to]||(e[to]=[])}function Cy(e){return e.cleanup||(e.cleanup=[])}function xy(e,n){const t=e[Bi],i=t?t.get(Di,null):null;i&&i.handleError(n)}function pf(e,n,t,i,r){for(let o=0;o<t.length;){const s=t[o++],a=t[o++];vy(e.data[s],n[s],i,a,r)}}function Ei(e,n,t){const i=Dl(n,e);!function tb(e,n,t){e.setValue(n,t)}(e[Q],i,t)}function RR(e,n){const t=nn(n,e),i=t[N];!function PR(e,n){for(let t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(i,t);const r=t[We];null!==r&&null===t[_i]&&(t[_i]=Wh(r,t[Bi])),mf(i,t,t[Ke])}function mf(e,n,t){Xd(n);try{const i=e.viewQuery;null!==i&&ff(1,i,t);const r=e.template;null!==r&&dy(e,n,r,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&yy(e,n),e.staticViewQueries&&ff(2,e.viewQuery,t);const o=e.components;null!==o&&function FR(e,n){for(let t=0;t<n.length;t++)RR(e,n[t])}(n,o)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{n[ee]&=-5,Qd()}}let Ey=(()=>{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,i,r){const o=typeof Zone>"u"?null:Zone.current,s=function UI(e,n,t){const i=Object.create(HI);t&&(i.consumerAllowSignalWrites=!0),i.fn=e,i.schedule=n;const r=s=>{i.cleanupFn=s};return i.ref={notify:()=>V_(i),run:()=>{if(i.dirty=!1,i.hasRun&&!j_(i))return;i.hasRun=!0;const s=Bd(i);try{i.cleanupFn(),i.cleanupFn=W_,i.fn(r)}finally{Ud(i,s)}},cleanup:()=>i.cleanupFn()},i.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,o)},r);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=i?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[t,i]of this.queue)this.queue.delete(t),i?i.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static{this.\u0275prov=P({token:e,providedIn:"root",factory:()=>new e})}}return e})();function pc(e,n,t){let i=t?e.styles:null,r=t?e.classes:null,o=0;if(null!==n)for(let s=0;s<n.length;s++){const a=n[s];"number"==typeof a?o=a:1==o?r=wd(r,a):2==o&&(i=wd(i,a+": "+n[++s]+";"))}t?e.styles=i:e.stylesWithoutHost=i,t?e.classes=r:e.classesWithoutHost=r}function Gs(e,n,t,i,r=!1){for(;null!==t;){const o=n[t.index];null!==o&&i.push(Oe(o)),Ft(o)&&My(o,i);const s=t.type;if(8&s)Gs(e,n,t.child,i);else if(32&s){const a=gh(t,n);let l;for(;l=a();)i.push(l)}else if(16&s){const a=ub(n,t);if(Array.isArray(a))i.push(...a);else{const l=Fs(n[Xe]);Gs(l[N],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}function My(e,n){for(let t=ft;t<e.length;t++){const i=e[t],r=i[N].firstChild;null!==r&&Gs(i[N],i,r,n)}e[Kn]!==e[We]&&n.push(e[Kn])}function mc(e,n,t,i=!0){const r=n[no],o=r.rendererFactory,s=r.afterRenderEventManager;o.begin?.(),s?.begin();try{Sy(e,n,e.template,t)}catch(l){throw i&&xy(n,l),l}finally{o.end?.(),r.effectManager?.flush(),s?.end()}}function Sy(e,n,t,i){const r=n[ee];if(256!=(256&r)){n[no].effectManager?.flush(),Xd(n);try{ev(n),function lv(e){return q.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&dy(e,n,t,2,i);const s=3==(3&r);if(s){const c=e.preOrderCheckHooks;null!==c&&Ml(n,c,null)}else{const c=e.preOrderHooks;null!==c&&Sl(n,c,0,null),Jd(n,0)}if(function LR(e){for(let n=Qv(e);null!==n;n=Jv(n)){if(!n[k_])continue;const t=n[oo];for(let i=0;i<t.length;i++){QI(t[i])}}}(n),Iy(n,2),null!==e.contentQueries&&yy(e,n),s){const c=e.contentCheckHooks;null!==c&&Ml(n,c)}else{const c=e.contentHooks;null!==c&&Sl(n,c,1),Jd(n,1)}!function lR(e,n){const t=e.hostBindingOpCodes;if(null===t)return;const i=oy(n,Cs);try{for(let r=0;r<t.length;r++){const o=t[r];if(o<0)fr(~o);else{const s=o,a=t[++r],l=t[++r];uT(a,s),i.dirty=!1;const c=Bd(i);try{l(2,n[s])}finally{Ud(i,c)}}}}finally{null===n[Cs]&&sy(n,Cs),fr(-1)}}(e,n);const a=e.components;null!==a&&Ay(n,a,0);const l=e.viewQuery;if(null!==l&&ff(2,l,i),s){const c=e.viewCheckHooks;null!==c&&Ml(n,c)}else{const c=e.viewHooks;null!==c&&Sl(n,c,2),Jd(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),n[ee]&=-73,tv(n)}finally{Qd()}}}function Iy(e,n){for(let t=Qv(e);null!==t;t=Jv(t))for(let i=ft;i<t.length;i++)Ty(t[i],n)}function VR(e,n,t){Ty(nn(n,e),t)}function Ty(e,n){if(!function KI(e){return 128==(128&e[ee])}(e))return;const t=e[N],i=e[ee];if(80&i&&0===n||1024&i||2===n)Sy(t,e,t.template,e[Ke]);else if(e[_s]>0){Iy(e,1);const r=t.components;null!==r&&Ay(e,r,1)}}function Ay(e,n,t){for(let i=0;i<n.length;i++)VR(e,n[i],t)}class Ws{get rootNodes(){const n=this._lView,t=n[N];return Gs(t,n,t.firstChild,[])}constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ke]}set context(n){this._lView[Ke]=n}get destroyed(){return 256==(256&this._lView[ee])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Ue];if(Ft(n)){const t=n[8],i=t?t.indexOf(this):-1;i>-1&&(ql(n,i),Pl(t,i))}this._attachedToViewContainer=!1}vh(this._lView[N],this._lView)}onDestroy(n){!function iv(e,n){if(256==(256&e[ee]))throw new S(911,!1);null===e[Ui]&&(e[Ui]=[]),e[Ui].push(n)}(this._lView,n)}markForCheck(){zs(this._cdRefInjectingView||this._lView)}detach(){this._lView[ee]&=-129}reattach(){this._lView[ee]|=128}detectChanges(){mc(this._lView[N],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function xA(e,n){Ns(e,n,n[Q],2,null,null)}(this._lView[N],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n}}class jR extends Ws{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;mc(n[N],n,n[Ke],!1)}checkNoChanges(){}get context(){return null}}class ky extends Hs{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=he(n);return new Ys(t,this.ngModule)}}function Ry(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class UR{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,i){i=ml(i);const r=this.injector.get(n,Kh,i);return r!==Kh||t===Kh?r:this.parentInjector.get(n,t,i)}}class Ys extends Vb{get inputs(){const n=this.componentDef,t=n.inputTransforms,i=Ry(n.inputs);if(null!==t)for(const r of i)t.hasOwnProperty(r.propName)&&(r.transform=t[r.propName]);return i}get outputs(){return Ry(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function CI(e){return e.map(wI).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,i,r){let o=(r=r||this.ngModule)instanceof sn?r:r?.injector;o&&null!==this.componentDef.getStandaloneInjector&&(o=this.componentDef.getStandaloneInjector(o)||o);const s=o?new UR(n,o):n,a=s.get($s,null);if(null===a)throw new S(407,!1);const f={rendererFactory:a,sanitizer:s.get(Nk,null),effectManager:s.get(Ey,null),afterRenderEventManager:s.get(nf,null)},m=a.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",b=i?function uR(e,n,t,i){const o=i.get(ty,!1)||t===gn.ShadowDom,s=e.selectRootElement(n,o);return function dR(e){fy(e)}(s),s}(m,i,this.componentDef.encapsulation,s):zl(m,g,function BR(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(g)),I=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let E=null;null!==b&&(E=Wh(b,s,!0));const F=cf(0,null,null,1,0,null,null,null,null,null,null),L=hc(null,F,null,I,null,null,f,m,s,null,E);let K,Se;Xd(L);try{const Ve=this.componentDef;let yt,fn=null;Ve.findHostDirectiveDefs?(yt=[],fn=new Map,Ve.findHostDirectiveDefs(Ve,yt,fn),yt.push(Ve)):yt=[Ve];const Gn=function $R(e,n){const t=e[N],i=se;return e[i]=n,ko(t,i,2,"#host",null)}(L,b),od=function zR(e,n,t,i,r,o,s){const a=r[N];!function qR(e,n,t,i){for(const r of e)n.mergedAttrs=gs(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(pc(n,n.mergedAttrs,!0),null!==t&&pb(i,t,n))}(i,e,n,s);let l=null;null!==n&&(l=Wh(n,r[Bi]));const c=o.rendererFactory.createRenderer(n,t);let u=16;t.signals?u=4096:t.onPush&&(u=64);const f=hc(r,hy(t),null,u,r[e.index],e,o,c,null,null,l);return a.firstCreatePass&&df(a,e,i.length-1),fc(r,f),r[e.index]=f}(Gn,b,Ve,yt,L,f,m);Se=J_(F,se),b&&function WR(e,n,t,i){if(i)Od(e,t,["ng-version",Lk.full]);else{const{attrs:r,classes:o}=function DI(e){const n=[],t=[];let i=1,r=2;for(;i<e.length;){let o=e[i];if("string"==typeof o)2===r?""!==o&&n.push(o,e[++i]):8===r&&t.push(o);else{if(!kn(r))break;r=o}i++}return{attrs:n,classes:t}}(n.selectors[0]);r&&Od(e,t,r),o&&o.length>0&&fb(e,t,o.join(" "))}}(m,Ve,b,i),void 0!==t&&function YR(e,n,t){const i=e.projection=[];for(let r=0;r<n.length;r++){const o=t[r];i.push(null!=o?Array.from(o):null)}}(Se,this.ngContentSelectors,t),K=function GR(e,n,t,i,r,o){const s=mt(),a=r[N],l=Yt(s,r);gy(a,r,s,t,null,i);for(let u=0;u<t.length;u++)Dt(pr(r,a,s.directiveStart+u,s),r);_y(a,r,s),l&&Dt(l,r);const c=pr(r,a,s.directiveStart+s.componentOffset,s);if(e[Ke]=r[Ke]=c,null!==o)for(const u of o)u(c,n);return sf(a,s,e),c}(od,Ve,yt,fn,L,[ZR]),mf(F,L,null)}finally{Qd()}return new HR(this.componentType,K,Io(Se,L),L,Se)}}class HR extends Ak{constructor(n,t,i,r,o){super(),this.location=i,this._rootLView=r,this._tNode=o,this.previousInputValues=null,this.instance=t,this.hostView=this.changeDetectorRef=new jR(r),this.componentType=n}setInput(n,t){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),t))return;const o=this._rootLView;pf(o[N],o,r,n,t),this.previousInputValues.set(n,t),zs(nn(this._tNode.index,o))}}get injector(){return new Lt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function ZR(){const e=mt();El(A()[N],e)}function xe(e){let n=function Py(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),t=!0;const i=[e];for(;n;){let r;if(Pn(e))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S(903,!1);r=n.\u0275dir}if(r){if(t){i.push(r);const s=e;s.inputs=gc(e.inputs),s.inputTransforms=gc(e.inputTransforms),s.declaredInputs=gc(e.declaredInputs),s.outputs=gc(e.outputs);const a=r.hostBindings;a&&JR(e,a);const l=r.viewQuery,c=r.contentQueries;if(l&&XR(e,l),c&&QR(e,c),cl(e.inputs,r.inputs),cl(e.declaredInputs,r.declaredInputs),cl(e.outputs,r.outputs),null!==r.inputTransforms&&(null===s.inputTransforms&&(s.inputTransforms={}),cl(s.inputTransforms,r.inputTransforms)),Pn(r)&&r.data.animation){const u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const o=r.features;if(o)for(let s=0;s<o.length;s++){const a=o[s];a&&a.ngInherit&&a(e),a===xe&&(t=!1)}}n=Object.getPrototypeOf(n)}!function KR(e){let n=0,t=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=n+=r.hostVars,r.hostAttrs=gs(r.hostAttrs,t=gs(t,r.hostAttrs))}}(i)}function gc(e){return e===Yn?{}:e===ge?[]:e}function XR(e,n){const t=e.viewQuery;e.viewQuery=t?(i,r)=>{n(i,r),t(i,r)}:n}function QR(e,n){const t=e.contentQueries;e.contentQueries=t?(i,r,o)=>{n(i,r,o),t(i,r,o)}:n}function JR(e,n){const t=e.hostBindings;e.hostBindings=t?(i,r)=>{n(i,r),t(i,r)}:n}function Ly(e){const n=e.inputConfig,t={};for(const i in n)if(n.hasOwnProperty(i)){const r=n[i];Array.isArray(r)&&r[2]&&(t[i]=r[2])}e.inputTransforms=t}function _c(e){return!!gf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function gf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ni(e,n,t){return e[n]=t}function Et(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function br(e,n,t,i){const r=Et(e,n,t);return Et(e,n+1,i)||r}function vc(e,n,t,i,r){const o=br(e,n,t,i);return Et(e,n+2,r)||o}function Fn(e,n,t,i){const r=A();return Et(r,co(),n)&&(fe(),ti(ze(),r,e,n,t,i)),Fn}function Po(e,n,t,i){return Et(e,co(),t)?n+X(t)+i:J}function Fo(e,n,t,i,r,o){const a=br(e,vi(),t,r);return bi(2),a?n+X(t)+i+X(r)+o:J}function w(e,n,t,i,r,o,s,a){const l=A(),c=fe(),u=e+se,f=c.firstCreatePass?function xP(e,n,t,i,r,o,s,a,l){const c=n.consts,u=ko(n,e,4,s||null,$i(c,a));uf(n,t,u,$i(c,l)),El(n,u);const f=u.tView=cf(2,u,i,r,o,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),f.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,t,i,r,o,s):c.data[u];Qn(f,!1);const m=Ky(c,l,f,e);xl()&&Wl(c,l,m,f),Dt(m,l),fc(l,l[u]=by(m,l,m,f)),yl(f)&&af(c,l,f),null!=s&&lf(l,f,a)}let Ky=function Xy(e,n,t,i){return zi(!0),n[Q].createComment("")};function Ee(e){return ao(function lT(){return q.lFrame.contextLView}(),se+e)}function v(e,n,t){const i=A();return Et(i,co(),n)&&an(fe(),ze(),i,e,n,i[Q],t,!1),v}function Cf(e,n,t,i,r){const s=r?"class":"style";pf(e,t,n.inputs[s],s,i)}function h(e,n,t,i){const r=A(),o=fe(),s=se+e,a=r[Q],l=o.firstCreatePass?function IP(e,n,t,i,r,o){const s=n.consts,l=ko(n,e,2,i,$i(s,r));return uf(n,t,l,$i(s,o)),null!==l.attrs&&pc(l,l.attrs,!1),null!==l.mergedAttrs&&pc(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,o,r,n,t,i):o.data[s],c=Qy(o,r,l,a,n,e);r[s]=c;const u=yl(l);return Qn(l,!0),pb(a,c,l),32!=(32&l.flags)&&xl()&&Wl(o,r,c,l),0===function eT(){return q.lFrame.elementDepthCount}()&&Dt(c,r),function tT(){q.lFrame.elementDepthCount++}(),u&&(af(o,r,l),sf(o,l,r)),null!==i&&lf(r,l),h}function d(){let e=mt();Gd()?Wd():(e=e.parent,Qn(e,!1));const n=e;(function iT(e){return q.skipHydrationRootTNode===e})(n)&&function aT(){q.skipHydrationRootTNode=null}(),function nT(){q.lFrame.elementDepthCount--}();const t=fe();return t.firstCreatePass&&(El(t,e),Ld(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function CT(e){return 0!=(8&e.flags)}(n)&&Cf(t,n,A(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function DT(e){return 0!=(16&e.flags)}(n)&&Cf(t,n,A(),n.stylesWithoutHost,!1),d}function C(e,n,t,i){return h(e,n,t,i),d(),C}let Qy=(e,n,t,i,r,o)=>(zi(!0),zl(i,r,function gv(){return q.lFrame.currentNamespace}()));function ie(e,n,t){const i=A(),r=fe(),o=e+se,s=r.firstCreatePass?function kP(e,n,t,i,r){const o=n.consts,s=$i(o,i),a=ko(n,e,8,"ng-container",s);return null!==s&&pc(a,s,!0),uf(n,t,a,$i(o,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(o,r,i,n,t):r.data[o];Qn(s,!0);const a=e0(r,i,s,e);return i[o]=a,xl()&&Wl(r,i,a,s),Dt(a,i),yl(s)&&(af(r,i,s),sf(r,s,i)),null!=t&&lf(i,s),ie}function re(){let e=mt();const n=fe();return Gd()?Wd():(e=e.parent,Qn(e,!1)),n.firstCreatePass&&(El(n,e),Ld(e)&&n.queries.elementEnd(e)),re}let e0=(e,n,t,i)=>(zi(!0),_h(n[Q],""));function ue(){return A()}function Js(e){return!!e&&"function"==typeof e.then}function t0(e){return!!e&&"function"==typeof e.subscribe}function k(e,n,t,i){const r=A(),o=fe(),s=mt();return function r0(e,n,t,i,r,o,s){const a=yl(i),c=e.firstCreatePass&&Cy(e),u=n[Ke],f=wy(n);let m=!0;if(3&i.type||s){const y=Yt(i,n),x=s?s(y):y,I=f.length,E=s?L=>s(Oe(L[i.index])):i.index;let F=null;if(!s&&a&&(F=function FP(e,n,t,i){const r=e.cleanup;if(null!=r)for(let o=0;o<r.length-1;o+=2){const s=r[o];if(s===t&&r[o+1]===i){const a=n[to],l=r[o+2];return a.length>l?a[l]:null}"string"==typeof s&&(o+=2)}return null}(e,n,r,i.index)),null!==F)(F.__ngLastListenerFn__||F).__ngNextListenerFn__=o,F.__ngLastListenerFn__=o,m=!1;else{o=s0(i,n,u,o,!1);const L=t.listen(x,r,o);f.push(o,L),c&&c.push(r,E,I,I+1)}}else o=s0(i,n,u,o,!1);const g=i.outputs;let b;if(m&&null!==g&&(b=g[r])){const y=b.length;if(y)for(let x=0;x<y;x+=2){const K=n[b[x]][b[x+1]].subscribe(o),Se=f.length;f.push(o,K),c&&c.push(r,i.index,Se,-(Se+1))}}}(o,r,r[Q],s,e,n,i),k}function o0(e,n,t,i){try{return Xn(6,n,t),!1!==t(i)}catch(r){return xy(e,r),!1}finally{Xn(7,n,t)}}function s0(e,n,t,i,r){return function o(s){if(s===Function)return i;zs(e.componentOffset>-1?nn(e.index,n):n);let l=o0(n,t,i,s),c=o.__ngNextListenerFn__;for(;c;)l=o0(n,t,c,s)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&s.preventDefault(),l}}function T(e=1){return function fT(e){return(q.lFrame.contextLView=function pT(e,n){for(;e>0;)n=n[io],e--;return n}(e,q.lFrame.contextLView))[Ke]}(e)}function Gi(e,n,t){return Je(e,"",n,"",t),Gi}function Je(e,n,t,i,r){const o=A(),s=Po(o,n,t,i);return s!==J&&an(fe(),ze(),o,e,s,o[Q],r,!1),Je}function Mt(e,n,t,i,r,o,s){const a=A(),l=Fo(a,n,t,i,r,o);return l!==J&&an(fe(),ze(),a,e,l,a[Q],s,!1),Mt}function Cc(e,n,t,i,r,o,s,a,l){const c=A(),u=function Oo(e,n,t,i,r,o,s,a){const c=vc(e,vi(),t,r,s);return bi(3),c?n+X(t)+i+X(r)+o+X(s)+a:J}(c,n,t,i,r,o,s,a);return u!==J&&an(fe(),ze(),c,e,u,c[Q],l,!1),Cc}function Dc(e,n){return e<<17|n<<2}function Wi(e){return e>>17&32767}function Df(e){return 2|e}function yr(e){return(131068&e)>>2}function xf(e,n){return-131069&e|n<<2}function Ef(e){return 1|e}function f0(e,n,t,i,r){const o=e[t+1],s=null===n;let a=i?Wi(o):yr(o),l=!1;for(;0!==a&&(!1===l||s);){const u=e[a+1];$P(e[a],n)&&(l=!0,e[a+1]=i?Ef(u):Df(u)),a=i?Wi(u):yr(u)}l&&(e[t+1]=i?Df(o):Ef(o))}function $P(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&vo(e,n)>=0}const at={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function p0(e){return e.substring(at.key,at.keyEnd)}function m0(e,n){const t=at.textEnd;return t===n?-1:(n=at.keyEnd=function WP(e,n,t){for(;n<t&&e.charCodeAt(n)>32;)n++;return n}(e,at.key=n,t),Uo(e,n,t))}function Uo(e,n,t){for(;n<t&&e.charCodeAt(n)<=32;)n++;return n}function xc(e,n){return function On(e,n,t,i){const r=A(),o=fe(),s=bi(2);o.firstUpdatePass&&C0(o,e,s,i),n!==J&&Et(r,s,n)&&x0(o,o.data[Nt()],r,r[Q],e,r[s+1]=function o2(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=rt(on(e)))),e}(n,t),i,s)}(e,n,null,!0),xc}function Mf(e){!function Nn(e,n,t,i){const r=fe(),o=bi(2);r.firstUpdatePass&&C0(r,null,o,i);const s=A();if(t!==J&&Et(s,o,t)){const a=r.data[Nt()];if(M0(a,i)&&!w0(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(t=wd(l,t||"")),Cf(r,a,s,t,i)}else!function r2(e,n,t,i,r,o,s,a){r===J&&(r=ge);let l=0,c=0,u=0<r.length?r[0]:null,f=0<o.length?o[0]:null;for(;null!==u||null!==f;){const m=l<r.length?r[l+1]:void 0,g=c<o.length?o[c+1]:void 0;let y,b=null;u===f?(l+=2,c+=2,m!==g&&(b=f,y=g)):null===f||null!==u&&u<f?(l+=2,b=u):(c+=2,b=f,y=g),null!==b&&x0(e,n,t,i,b,y,s,a),u=l<r.length?r[l]:null,f=c<o.length?o[c]:null}}(r,a,s,s[Q],s[o+1],s[o+1]=function t2(e,n,t){if(null==t||""===t)return ge;const i=[],r=on(t);if(Array.isArray(r))for(let o=0;o<r.length;o++)e(i,r[o],!0);else if("object"==typeof r)for(const o in r)r.hasOwnProperty(o)&&e(i,o,r[o]);else"string"==typeof r&&n(i,r);return i}(e,n,t),i,o)}}(n2,ri,e,!0)}function ri(e,n){for(let t=function qP(e){return function _0(e){at.key=0,at.keyEnd=0,at.value=0,at.valueEnd=0,at.textEnd=e.length}(e),m0(e,Uo(e,0,at.textEnd))}(n);t>=0;t=m0(n,t))rn(e,p0(n),!0)}function w0(e,n){return n>=e.expandoStartIndex}function C0(e,n,t,i){const r=e.data;if(null===r[t+1]){const o=r[Nt()],s=w0(e,t);M0(o,i)&&null===n&&!s&&(n=!1),n=function XP(e,n,t,i){const r=function Zd(e){const n=q.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(t=ea(t=Sf(null,e,n,t,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==r)if(t=Sf(r,e,n,t,i),null===o){let l=function QP(e,n,t){const i=t?n.classBindings:n.styleBindings;if(0!==yr(i))return e[Wi(i)]}(e,n,i);void 0!==l&&Array.isArray(l)&&(l=Sf(null,e,n,l[1],i),l=ea(l,n.attrs,i),function JP(e,n,t,i){e[Wi(t?n.classBindings:n.styleBindings)]=i}(e,n,i,l))}else o=function e2(e,n,t){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o<r;o++)i=ea(i,e[o].hostAttrs,t);return ea(i,n.attrs,t)}(e,n,i)}return void 0!==o&&(i?n.residualClasses=o:n.residualStyles=o),t}(r,o,n,i),function UP(e,n,t,i,r,o){let s=o?n.classBindings:n.styleBindings,a=Wi(s),l=yr(s);e[i]=t;let u,c=!1;if(Array.isArray(t)?(u=t[1],(null===u||vo(t,u)>0)&&(c=!0)):u=t,r)if(0!==l){const m=Wi(e[a+1]);e[i+1]=Dc(m,a),0!==m&&(e[m+1]=xf(e[m+1],i)),e[a+1]=function jP(e,n){return 131071&e|n<<17}(e[a+1],i)}else e[i+1]=Dc(a,0),0!==a&&(e[a+1]=xf(e[a+1],i)),a=i;else e[i+1]=Dc(l,0),0===a?a=i:e[l+1]=xf(e[l+1],i),l=i;c&&(e[i+1]=Df(e[i+1])),f0(e,u,i,!0),f0(e,u,i,!1),function HP(e,n,t,i,r){const o=r?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof n&&vo(o,n)>=0&&(t[i+1]=Ef(t[i+1]))}(n,u,e,i,o),s=Dc(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,t,s,i)}}function Sf(e,n,t,i,r){let o=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<s&&(o=n[a],i=ea(i,o.hostAttrs,r),o!==e);)a++;return null!==e&&(t.directiveStylingLast=a),i}function ea(e,n,t){const i=t?1:2;let r=-1;if(null!==n)for(let o=0;o<n.length;o++){const s=n[o];"number"==typeof s?r=s:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),rn(e,s,!!t||n[++o]))}return void 0===e?null:e}function n2(e,n,t){const i=String(n);""!==i&&!i.includes(" ")&&rn(e,i,t)}function x0(e,n,t,i,r,o,s,a){if(!(3&n.type))return;const l=e.data,c=l[a+1],u=function BP(e){return 1==(1&e)}(c)?E0(l,n,t,r,yr(c),s):void 0;Ec(u)||(Ec(o)||function VP(e){return 2==(2&e)}(c)&&(o=E0(l,null,t,r,a,s)),function FA(e,n,t,i,r){if(n)r?e.addClass(t,i):e.removeClass(t,i);else{let o=-1===i.indexOf("-")?void 0:qi.DashCase;null==r?e.removeStyle(t,i,o):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),o|=qi.Important),e.setStyle(t,i,r,o))}}(i,s,Dl(Nt(),t),r,o))}function E0(e,n,t,i,r,o){const s=null===n;let a;for(;r>0;){const l=e[r],c=Array.isArray(l),u=c?l[1]:l,f=null===u;let m=t[r+1];m===J&&(m=f?ge:void 0);let g=f?ah(m,i):u===i?m:void 0;if(c&&!Ec(g)&&(g=ah(l,i)),Ec(g)&&(a=g,s))return a;const b=e[r+1];r=s?Wi(b):yr(b)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=ah(l,i))}return a}function Ec(e){return void 0!==e}function M0(e,n){return 0!=(e.flags&(n?8:16))}function _(e,n=""){const t=A(),i=fe(),r=e+se,o=i.firstCreatePass?ko(i,r,1,n,null):i.data[r],s=S0(i,t,o,n,e);t[r]=s,xl()&&Wl(i,t,s,o),Qn(o,!1)}let S0=(e,n,t,i,r)=>(zi(!0),function $l(e,n){return e.createText(n)}(n[Q],i));function ne(e){return pe("",e,""),ne}function pe(e,n,t){const i=A(),r=Po(i,e,n,t);return r!==J&&Ei(i,Nt(),r),pe}function Cn(e,n,t,i,r){const o=A(),s=Fo(o,e,n,t,i,r);return s!==J&&Ei(o,Nt(),s),Cn}const wr=void 0;var S2=["en",[["a","p"],["AM","PM"],wr],[["AM","PM"],wr,wr],[["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"]],wr,[["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"]],wr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",wr,"{1} 'at' {0}",wr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function M2(e){const t=Math.floor(Math.abs(e)),i=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===i?1:5}];let Ho={};function Vt(e){const n=function I2(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=W0(n);if(t)return t;const i=n.split("-")[0];if(t=W0(i),t)return t;if("en"===i)return S2;throw new S(701,!1)}function W0(e){return e in Ho||(Ho[e]=Fe.ng&&Fe.ng.common&&Fe.ng.common.locales&&Fe.ng.common.locales[e]),Ho[e]}var Ne=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}(Ne||{});const $o="en-US";let Y0=$o;function Af(e,n,t,i,r){if(e=G(e),Array.isArray(e))for(let o=0;o<e.length;o++)Af(e[o],n,t,i,r);else{const o=fe(),s=A(),a=mt();let l=_r(e)?e:G(e.provide);const c=Pb(e),u=1048575&a.providerIndexes,f=a.directiveStart,m=a.providerIndexes>>20;if(_r(e)||!e.multi){const g=new Ms(c,r,D),b=Rf(l,n,r?u:u+m,f);-1===b?(rh(Tl(a,s),o,l),kf(o,e,n.length),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(g),s.push(g)):(t[b]=g,s[b]=g)}else{const g=Rf(l,n,u+m,f),b=Rf(l,n,u,u+m),x=b>=0&&t[b];if(r&&!x||!r&&!(g>=0&&t[g])){rh(Tl(a,s),o,l);const I=function MF(e,n,t,i,r){const o=new Ms(e,t,D);return o.multi=[],o.index=n,o.componentProviders=0,bw(o,r,i&&!t),o}(r?EF:xF,t.length,r,i,c);!r&&x&&(t[b].providerFactory=I),kf(o,e,n.length,0),n.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),t.push(I),s.push(I)}else kf(o,e,g>-1?g:b,bw(t[r?b:g],c,!r&&i));!r&&i&&x&&t[b].componentProviders++}}}function kf(e,n,t,i){const r=_r(n),o=function fk(e){return!!e.useClass}(n);if(r||o){const l=(o?G(n.useClass):n).prototype.ngOnDestroy;if(l){const c=e.destroyHooks||(e.destroyHooks=[]);if(!r&&n.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function bw(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Rf(e,n,t,i){for(let r=t;r<i;r++)if(n[r]===e)return r;return-1}function xF(e,n,t,i){return Pf(this.multi,[])}function EF(e,n,t,i){const r=this.multi;let o;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=pr(t,t[N],this.providerFactory.index,i);o=a.slice(0,s),Pf(r,o);for(let l=s;l<a.length;l++)o.push(a[l])}else o=[],Pf(r,o);return o}function Pf(e,n){for(let t=0;t<e.length;t++)n.push((0,e[t])());return n}function Be(e,n=[]){return t=>{t.providersResolver=(i,r)=>function DF(e,n,t){const i=fe();if(i.firstCreatePass){const r=Pn(e);Af(t,i.data,i.blueprint,r,!0),Af(n,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,n)}}class Cr{}class yw{}class Ff extends Cr{constructor(n,t,i){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new ky(this);const r=en(n);this._bootstrapComponents=xi(r.bootstrap),this._r3Injector=zb(n,t,[{provide:Cr,useValue:this},{provide:Hs,useValue:this.componentFactoryResolver},...i],rt(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Of extends yw{constructor(n){super(),this.moduleType=n}create(n){return new Ff(this.moduleType,n,[])}}class ww extends Cr{constructor(n){super(),this.componentFactoryResolver=new ky(this),this.instance=null;const t=new xo([...n.providers,{provide:Cr,useValue:this},{provide:Hs,useValue:this.componentFactoryResolver}],n.parent||nc(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Nf(e,n,t=null){return new ww({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let TF=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const i=Tb(0,t.type),r=i.length>0?Nf([i],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,r)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(M(sn))})}}return e})();function Cw(e){e.getStandaloneInjector=n=>n.get(TF).getOrCreateStandaloneInjector(e)}function Dn(e,n,t){const i=Ot()+e,r=A();return r[i]===J?ni(r,i,t?n.call(t):n()):function Zs(e,n){return e[n]}(r,i)}function ae(e,n,t,i){return Tw(A(),Ot(),e,n,t,i)}function Dr(e,n,t,i,r){return Aw(A(),Ot(),e,n,t,i,r)}function sa(e,n){const t=e[n];return t===J?void 0:t}function Tw(e,n,t,i,r,o){const s=n+t;return Et(e,s,r)?ni(e,s+1,o?i.call(o,r):i(r)):sa(e,s+1)}function Aw(e,n,t,i,r,o,s){const a=n+t;return br(e,a,r,o)?ni(e,a+2,s?i.call(s,r,o):i(r,o)):sa(e,a+2)}function _t(e,n){const t=fe();let i;const r=e+se;t.firstCreatePass?(i=function qF(e,n){if(n)for(let t=n.length-1;t>=0;t--){const i=n[t];if(e===i.name)return i}}(n,t.pipeRegistry),t.data[r]=i,i.onDestroy&&(t.destroyHooks??=[]).push(r,i.onDestroy)):i=t.data[r];const o=i.factory||(i.factory=hr(i.type)),a=Gt(D);try{const l=Il(!1),c=o();return Il(l),function SP(e,n,t,i){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=i}(t,A(),r,c),c}finally{Gt(a)}}function ln(e,n,t){const i=e+se,r=A(),o=ao(r,i);return aa(r,i)?Tw(r,Ot(),n,o.transform,t,o):o.transform(t)}function Ac(e,n,t,i,r){const o=e+se,s=A(),a=ao(s,o);return aa(s,o)?function kw(e,n,t,i,r,o,s,a){const l=n+t;return vc(e,l,r,o,s)?ni(e,l+3,a?i.call(a,r,o,s):i(r,o,s)):sa(e,l+3)}(s,Ot(),n,a.transform,t,i,r,a):a.transform(t,i,r)}function aa(e,n){return e[N].data[n].pure}function YF(){return this._results[Symbol.iterator]()}class la{get changes(){return this._changes||(this._changes=new _e)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=la.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=YF)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const i=this;i.dirty=!1;const r=function vn(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function LT(e,n,t){if(e.length!==n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],o=n[i];if(t&&(r=t(r),o=t(o)),o!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function KF(e,n,t,i=!0){const r=n[N];if(function MA(e,n,t,i){const r=ft+i,o=t.length;i>0&&(t[r-1][Rn]=n),i<o-ft?(n[Rn]=t[r],kv(t,ft+i,n)):(t.push(n),n[Rn]=null),n[Ue]=t;const s=n[bs];null!==s&&t!==s&&function SA(e,n){const t=e[oo];n[Xe]!==n[Ue][Ue][Xe]&&(e[k_]=!0),null===t?e[oo]=[n]:t.push(n)}(s,n);const a=n[Zn];null!==a&&a.insertView(e),n[ee]|=128}(r,n,e,t),i){const o=Ch(t,e),s=n[Q],a=Gl(s,e[Kn]);null!==a&&function DA(e,n,t,i,r,o){i[We]=r,i[Ct]=n,Ns(e,i,t,1,r,o)}(r,e[Ct],s,n,a,o)}}let Mi=(()=>{class e{static{this.__NG_ELEMENT_ID__=JF}}return e})();const XF=Mi,QF=class extends XF{constructor(n,t,i){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,i){const r=function ZF(e,n,t,i){const r=n.tView,a=hc(e,r,t,4096&e[ee]?4096:16,null,n,null,null,null,i?.injector??null,i?.hydrationInfo??null);a[bs]=e[n.index];const c=e[Zn];return null!==c&&(a[Zn]=c.createEmbeddedView(r)),mf(r,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:i});return new Ws(r)}};function JF(){return kc(mt(),A())}function kc(e,n){return 4&e.type?new QF(n,e,Io(e,n)):null}let Ln=(()=>{class e{static{this.__NG_ELEMENT_ID__=oO}}return e})();function oO(){return Uw(mt(),A())}const sO=Ln,jw=class extends sO{constructor(n,t,i){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=i}get element(){return Io(this._hostTNode,this._hostLView)}get injector(){return new Lt(this._hostTNode,this._hostLView)}get parentInjector(){const n=Al(this._hostTNode,this._hostLView);if(th(n)){const t=Is(n,this._hostLView),i=Ss(n);return new Lt(t[N].data[i+8],t)}return new Lt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=Bw(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-ft}createEmbeddedView(n,t,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const a=n.createEmbeddedViewImpl(t||{},o,null);return this.insertImpl(a,r,false),a}createComponent(n,t,i,r,o){const s=n&&!function As(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const y=t||{};a=y.index,i=y.injector,r=y.projectableNodes,o=y.environmentInjector||y.ngModuleRef}const l=s?n:new Ys(he(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const x=(s?c:this.parentInjector).get(sn,null);x&&(o=x)}he(l.componentType??{});const g=l.create(c,r,null,o);return this.insertImpl(g.hostView,a,false),g}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,i){const r=n._lView;if(function XI(e){return Ft(e[Ue])}(r)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=r[Ue],u=new jw(c,c[Ct],c[Ue]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return KF(a,r,s,!i),n.attachToViewContainerRef(),kv(Vf(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=Bw(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),i=ql(this._lContainer,t);i&&(Pl(Vf(this._lContainer),t),vh(i[N],i))}detach(n){const t=this._adjustIndex(n,-1),i=ql(this._lContainer,t);return i&&null!=Pl(Vf(this._lContainer),t)?new Ws(i):null}_adjustIndex(n,t=0){return n??this.length+t}};function Bw(e){return e[8]}function Vf(e){return e[8]||(e[8]=[])}function Uw(e,n){let t;const i=n[e.index];return Ft(i)?t=i:(t=by(i,n,null,e),n[e.index]=t,fc(n,t)),Hw(t,n,e,i),new jw(t,e,n)}let Hw=function $w(e,n,t,i){if(e[Kn])return;let r;r=8&t.type?Oe(i):function aO(e,n){const t=e[Q],i=t.createComment(""),r=Yt(n,e);return mr(t,Gl(t,r),i,function kA(e,n){return e.nextSibling(n)}(t,r),!1),i}(n,t),e[Kn]=r};class jf{constructor(n){this.queryList=n,this.matches=null}clone(){return new jf(this.queryList)}setDirty(){this.queryList.setDirty()}}class Bf{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const i=null!==n.contentQueries?n.contentQueries[0]:t.length,r=[];for(let o=0;o<i;o++){const s=t.getByIndex(o);r.push(this.queries[s.indexInDeclarationView].clone())}return new Bf(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let t=0;t<this.queries.length;t++)null!==Zw(n,t).matches&&this.queries[t].setDirty()}}class zw{constructor(n,t,i=null){this.predicate=n,this.flags=t,this.read=i}}class Uf{constructor(n=[]){this.queries=n}elementStart(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,t)}elementEnd(n){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(n)}embeddedTView(n){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,o=this.getByIndex(i).embeddedTView(n,r);o&&(o.indexInDeclarationView=i,null!==t?t.push(o):t=[o])}return null!==t?new Uf(t):null}template(n,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,t)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class Hf{constructor(n,t=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(n,t){this.isApplyingToNode(t)&&this.matchTNode(n,t)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,t){this.elementStart(n,t)}embeddedTView(n,t){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,t),new Hf(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const o=i[r];this.matchTNodeWithReadOption(n,t,uO(t,o)),this.matchTNodeWithReadOption(n,t,kl(t,n,o,!1,!1))}else i===Mi?4&t.type&&this.matchTNodeWithReadOption(n,t,-1):this.matchTNodeWithReadOption(n,t,kl(t,n,i,!1,!1))}matchTNodeWithReadOption(n,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===st||r===Ln||r===Mi&&4&t.type)this.addMatch(t.index,-2);else{const o=kl(t,n,r,!1,!1);null!==o&&this.addMatch(t.index,o)}else this.addMatch(t.index,i)}}addMatch(n,t){null===this.matches?this.matches=[n,t]:this.matches.push(n,t)}}function uO(e,n){const t=e.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===n)return t[i+1];return null}function hO(e,n,t,i){return-1===t?function dO(e,n){return 11&e.type?Io(e,n):4&e.type?kc(e,n):null}(n,e):-2===t?function fO(e,n,t){return t===st?Io(n,e):t===Mi?kc(n,e):t===Ln?Uw(n,e):void 0}(e,n,i):pr(e,e[N],t,n)}function qw(e,n,t,i){const r=n[Zn].queries[i];if(null===r.matches){const o=e.data,s=t.matches,a=[];for(let l=0;l<s.length;l+=2){const c=s[l];a.push(c<0?null:hO(n,o[c],s[l+1],t.metadata.read))}r.matches=a}return r.matches}function $f(e,n,t,i){const r=e.queries.getByIndex(t),o=r.matches;if(null!==o){const s=qw(e,n,r,t);for(let a=0;a<o.length;a+=2){const l=o[a];if(l>0)i.push(s[a/2]);else{const c=o[a+1],u=n[-l];for(let f=ft;f<u.length;f++){const m=u[f];m[bs]===m[Ue]&&$f(m[N],m,c,i)}if(null!==u[oo]){const f=u[oo];for(let m=0;m<f.length;m++){const g=f[m];$f(g[N],g,c,i)}}}}}return i}function xn(e){const n=A(),t=fe(),i=uv();Kd(i+1);const r=Zw(t,i);if(e.dirty&&function ZI(e){return 4==(4&e[ee])}(n)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const o=r.crossesNgTemplate?$f(t,n,i,[]):qw(t,n,r,i);e.reset(o,Fk),e.notifyOnChanges()}return!0}return!1}function Vn(e,n,t){const i=fe();i.firstCreatePass&&(Yw(i,new zw(e,n,t),-1),2==(2&n)&&(i.staticViewQueries=!0)),Ww(i,A(),n)}function En(){return function pO(e,n){return e[Zn].queries[n].queryList}(A(),uv())}function Ww(e,n,t){const i=new la(4==(4&t));(function pR(e,n,t,i){const r=wy(n);r.push(t),e.firstCreatePass&&Cy(e).push(i,r.length-1)})(e,n,i,i.destroy),null===n[Zn]&&(n[Zn]=new Bf),n[Zn].queries.push(new jf(i))}function Yw(e,n,t){null===e.queries&&(e.queries=new Uf),e.queries.track(new Hf(n,t))}function Zw(e,n){return e.queries.getByIndex(n)}function ke(e,n){return kc(e,n)}const Zf=new R("Application Initializer");let Kf=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,i)=>{this.resolve=t,this.reject=i}),this.appInits=O(Zf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const r of this.appInits){const o=r();if(Js(o))t.push(o);else if(t0(o)){const s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});t.push(s)}}const i=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),f1=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const oi=new R("LocaleId",{providedIn:"root",factory:()=>O(oi,oe.Optional|oe.SkipSelf)||function NO(){return typeof $localize<"u"&&$localize.locale||$o}()});let Fc=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new wt(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class jO{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let p1=(()=>{class e{compileModuleSync(t){return new Of(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const i=this.compileModuleSync(t),o=xi(en(t).declarations).reduce((s,a)=>{const l=he(a);return l&&s.push(new Ys(l)),s},[]);return new jO(i,o)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const v1=new R(""),Nc=new R("");let tp,Jf=(()=>{class e{constructor(t,i,r){this._ngZone=t,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,tp||(function aN(e){tp=e}(r),r.addToWindow(i)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{le.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:r})}whenStable(t,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,i,r){return[]}static{this.\u0275fac=function(i){return new(i||e)(M(le),M(ep),M(Nc))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})(),ep=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return tp?.findTestabilityInTree(this,t,i)??null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Yi=null;const b1=new R("AllowMultipleToken"),np=new R("PlatformDestroyListeners"),ip=new R("appBootstrapListener");class w1{constructor(n,t){this.name=n,this.token=t}}function D1(e,n,t=[]){const i=`Platform: ${n}`,r=new R(i);return(o=[])=>{let s=rp();if(!s||s.injector.get(b1,!1)){const a=[...t,...o,{provide:r,useValue:!0}];e?e(a):function uN(e){if(Yi&&!Yi.get(b1,!1))throw new S(400,!1);(function y1(){!function NI(e){$_=e}(()=>{throw new S(600,!1)})})(),Yi=e;const n=e.get(E1);(function C1(e){e.get(Fb,null)?.forEach(t=>t())})(e)}(function x1(e=[],n){return xt.create({name:n,providers:[{provide:Fh,useValue:"platform"},{provide:np,useValue:new Set([()=>Yi=null])},...e]})}(a,i))}return function hN(e){const n=rp();if(!n)throw new S(401,!1);return n}()}}function rp(){return Yi?.get(E1)??null}let E1=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const r=function fN(e="zone.js",n){return"noop"===e?new Kk:"zone.js"===e?new le(n):e}(i?.ngZone,function M1(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return r.run(()=>{const o=function IF(e,n,t){return new Ff(e,n,t)}(t.moduleType,this.injector,function k1(e){return[{provide:le,useFactory:e},{provide:js,multi:!0,useFactory:()=>{const n=O(mN,{optional:!0});return()=>n.initialize()}},{provide:A1,useFactory:pN},{provide:Zb,useFactory:Kb}]}(()=>r)),s=o.injector.get(Di,null);return r.runOutsideAngular(()=>{const a=r.onError.subscribe({next:l=>{s.handleError(l)}});o.onDestroy(()=>{Lc(this._modules,o),a.unsubscribe()})}),function S1(e,n,t){try{const i=t();return Js(i)?i.catch(r=>{throw n.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>e.handleError(i)),i}}(s,r,()=>{const a=o.injector.get(Kf);return a.runInitializers(),a.donePromise.then(()=>(function Z0(e){mn(e,"Expected localeId to be defined"),"string"==typeof e&&(Y0=e.toLowerCase().replace(/_/g,"-"))}(o.injector.get(oi,$o)||$o),this._moduleDoBootstrap(o),o))})})}bootstrapModule(t,i=[]){const r=I1({},i);return function lN(e,n,t){const i=new Of(t);return Promise.resolve(i)}(0,0,t).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(t){const i=t.injector.get(Zi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new S(-403,!1);t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(np,null);t&&(t.forEach(i=>i()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(i){return new(i||e)(M(xt))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function I1(e,n){return Array.isArray(n)?n.reduce(I1,e):{...e,...n}}let Zi=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=O(A1),this.zoneIsStable=O(Zb),this.componentTypes=[],this.components=[],this.isStable=O(Fc).hasPendingTasks.pipe(An(t=>t?B(!1):this.zoneIsStable),function WS(e,n=Li){return e=e??YS,Ze((t,i)=>{let r,o=!0;t.subscribe($e(i,s=>{const a=n(s);(o||!e(r,a))&&(o=!1,r=a,i.next(s))}))})}(),a_()),this._injector=O(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,i){const r=t instanceof Vb;if(!this._injector.get(Kf).done)throw!r&&function eo(e){const n=he(e)||ht(e)||Pt(e);return null!==n&&n.standalone}(t),new S(405,!1);let s;s=r?t:this._injector.get(Hs).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function cN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Cr),c=s.create(xt.NULL,[],i||s.selector,a),u=c.location.nativeElement,f=c.injector.get(v1,null);return f?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Lc(this.components,c),f?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new S(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Lc(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const i=this._injector.get(ip,[]);i.push(...this._bootstrapListeners),i.forEach(r=>r(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._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Lc(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new S(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Lc(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const A1=new R("",{providedIn:"root",factory:()=>O(Di).handleError.bind(void 0)});function pN(){const e=O(le),n=O(Di);return t=>e.runOutsideAngular(()=>n.handleError(t))}let mN=(()=>{class e{constructor(){this.zone=O(le),this.applicationRef=O(Zi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();let Vc=(()=>{class e{static{this.__NG_ELEMENT_ID__=_N}}return e})();function _N(e){return function vN(e,n,t){if(dr(e)&&!t){const i=nn(e.index,n);return new Ws(i,i)}return 47&e.type?new Ws(n[Xe],n):null}(mt(),A(),16==(16&e))}class N1{constructor(){}supports(n){return _c(n)}create(n){return new DN(n)}}const CN=(e,n)=>n;class DN{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||CN}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,i=this._removalsHead,r=0,o=null;for(;t||i;){const s=!i||t&&t.currentIndex<V1(i,r,o)?t:i,a=V1(s,r,o),l=s.currentIndex;if(s===i)r--,i=i._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{o||(o=[]);const c=a-r,u=l-r;if(c!=u){for(let m=0;m<c;m++){const g=m<o.length?o[m]:o[m]=0,b=g+m;u<=b&&b<c&&(o[m]=g+1)}o[s.previousIndex]=u-c}}a!==l&&n(s,a,l)}}forEachPreviousItem(n){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachMovedItem(n){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}forEachIdentityChange(n){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)n(t)}diff(n){if(null==n&&(n=[]),!_c(n))throw new S(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,o,s,t=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)o=n[a],s=this._trackByFn(a,o),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,o,s,a)),Object.is(t.item,o)||this._addIdentityChange(t,o)):(t=this._mismatch(t,o,s,a),i=!0),t=t._next}else r=0,function sP(e,n){if(Array.isArray(e))for(let t=0;t<e.length;t++)n(e[t]);else{const t=e[Symbol.iterator]();let i;for(;!(i=t.next()).done;)n(i.value)}}(n,a=>{s=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,s)?(i&&(t=this._verifyReinsertion(t,a,s,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,o,r)):n=this._addAfter(new xN(t,i),o,r),n}_verifyReinsertion(n,t,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,t,i),this._addToMoves(n,i),n}_moveAfter(n,t,i){return this._unlink(n),this._insertAfter(n,t,i),this._addToMoves(n,i),n}_addAfter(n,t,i){return this._insertAfter(n,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,i){const r=null===t?this._itHead:t._next;return n._next=r,n._prev=t,null===r?this._itTail=n:r._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new L1),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,i=n._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new L1),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class xN{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class EN{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const t=n._prevDup,i=n._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class L1{constructor(){this.map=new Map}put(n){const t=n.trackById;let i=this.map.get(t);i||(i=new EN,this.map.set(t,i)),i.add(n)}get(n,t){const r=this.map.get(n);return r?r.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function V1(e,n,t){const i=e.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+n+r}class j1{constructor(){}supports(n){return n instanceof Map||gf(n)}create(){return new MN}}class MN{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let t;for(t=this._mapHead;null!==t;t=t._next)n(t)}forEachPreviousItem(n){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n(t)}forEachChangedItem(n){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)n(t)}forEachAddedItem(n){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)n(t)}forEachRemovedItem(n){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)n(t)}diff(n){if(n){if(!(n instanceof Map||gf(n)))throw new S(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(n,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const o=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,o)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,t){if(n){const i=n._prev;return t._next=n,t._prev=i,n._prev=t,i&&(i._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,t);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new SN(n);return this._records.set(n,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(i=>t(n[i],i))}}class SN{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function B1(){return new Uc([new N1])}let Uc=(()=>{class e{static{this.\u0275prov=P({token:e,providedIn:"root",factory:B1})}constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||B1()),deps:[[e,new Nl,new Ol]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new S(901,!1)}}return e})();function U1(){return new da([new j1])}let da=(()=>{class e{static{this.\u0275prov=P({token:e,providedIn:"root",factory:U1})}constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new e(t)}static extend(t){return{provide:e,useFactory:i=>e.create(t,i||U1()),deps:[[e,new Nl,new Ol]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(i)return i;throw new S(901,!1)}}return e})();const AN=D1(null,"core",[]);let kN=(()=>{class e{constructor(t){}static{this.\u0275fac=function(i){return new(i||e)(M(Zi))}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})();function Go(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let up=null;function Si(){return up}class qN{}const ve=new R("DocumentToken");let dp=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return O(WN)},providedIn:"platform"})}}return e})();const GN=new R("Location Initialized");let WN=(()=>{class e extends dp{constructor(){super(),this._doc=O(ve),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Si().getBaseHref(this._doc)}onPopState(t){const i=Si().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Si().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.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,i,r){this._history.pushState(t,i,r)}replaceState(t,i,r){this._history.replaceState(t,i,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return new e},providedIn:"platform"})}}return e})();function hp(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function K1(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Ii(e){return e&&"?"!==e[0]?"?"+e:e}let Er=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return O(Q1)},providedIn:"root"})}}return e})();const X1=new R("appBaseHref");let Q1=(()=>{class e extends Er{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??O(ve).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 hp(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Ii(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,o){const s=this.prepareExternalUrl(r+Ii(o));this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){const s=this.prepareExternalUrl(r+Ii(o));this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(i){return new(i||e)(M(dp),M(X1,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),YN=(()=>{class e extends Er{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}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 i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(t){const i=hp(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,r,o){let s=this.prepareExternalUrl(r+Ii(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,i,s)}replaceState(t,i,r,o){let s=this.prepareExternalUrl(r+Ii(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(i){return new(i||e)(M(dp),M(X1,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})(),$c=(()=>{class e{constructor(t){this._subject=new _e,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const i=this._locationStrategy.getBaseHref();this._basePath=function XN(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(K1(J1(i))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Ii(i))}normalize(t){return e.stripTrailingSlash(function KN(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,J1(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._locationStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ii(i)),r)}replaceState(t,i="",r=null){this._locationStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ii(i)),r)}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._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}static{this.normalizeQueryParams=Ii}static{this.joinWithSlash=hp}static{this.stripTrailingSlash=K1}static{this.\u0275fac=function(i){return new(i||e)(M(Er))}}static{this.\u0275prov=P({token:e,factory:function(){return function ZN(){return new $c(M(Er))}()},providedIn:"root"})}}return e})();function J1(e){return e.replace(/\/index.html$/,"")}var Bt=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Bt||{}),Re=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(Re||{}),cn=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(cn||{}),Qe=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e.Infinity=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}(Qe||{});function qc(e,n){return Sn(Vt(e)[Ne.DateFormat],n)}function Gc(e,n){return Sn(Vt(e)[Ne.TimeFormat],n)}function Wc(e,n){return Sn(Vt(e)[Ne.DateTimeFormat],n)}function Mn(e,n){const t=Vt(e),i=t[Ne.NumberSymbols][n];if(typeof i>"u"){if(n===Qe.CurrencyDecimal)return t[Ne.NumberSymbols][Qe.Decimal];if(n===Qe.CurrencyGroup)return t[Ne.NumberSymbols][Qe.Group]}return i}function tC(e){if(!e[Ne.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[Ne.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Sn(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function pp(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const dL=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ha={},hL=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ti=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(Ti||{}),be=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(be||{}),ye=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(ye||{});function fL(e,n,t,i){let r=function CL(e){if(rC(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[r,o=1,s=1]=e.split("-").map(a=>+a);return Yc(r,o-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let i;if(i=e.match(dL))return function DL(e){const n=new Date(0);let t=0,i=0;const r=e[8]?n.setUTCFullYear:n.setFullYear,o=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return o.call(n,s,a,l,c),n}(i)}const n=new Date(e);if(!rC(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=Ai(t,n)||n;let a,s=[];for(;n;){if(a=hL.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=iC(i,l),r=function wL(e,n,t){const i=t?-1:1,r=e.getTimezoneOffset();return function yL(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,i*(iC(n,r)-r))}(r,i,!0));let c="";return s.forEach(u=>{const f=function bL(e){if(gp[e])return gp[e];let n;switch(e){case"G":case"GG":case"GGG":n=Le(ye.Eras,Re.Abbreviated);break;case"GGGG":n=Le(ye.Eras,Re.Wide);break;case"GGGGG":n=Le(ye.Eras,Re.Narrow);break;case"y":n=et(be.FullYear,1,0,!1,!0);break;case"yy":n=et(be.FullYear,2,0,!0,!0);break;case"yyy":n=et(be.FullYear,3,0,!1,!0);break;case"yyyy":n=et(be.FullYear,4,0,!1,!0);break;case"Y":n=Qc(1);break;case"YY":n=Qc(2,!0);break;case"YYY":n=Qc(3);break;case"YYYY":n=Qc(4);break;case"M":case"L":n=et(be.Month,1,1);break;case"MM":case"LL":n=et(be.Month,2,1);break;case"MMM":n=Le(ye.Months,Re.Abbreviated);break;case"MMMM":n=Le(ye.Months,Re.Wide);break;case"MMMMM":n=Le(ye.Months,Re.Narrow);break;case"LLL":n=Le(ye.Months,Re.Abbreviated,Bt.Standalone);break;case"LLLL":n=Le(ye.Months,Re.Wide,Bt.Standalone);break;case"LLLLL":n=Le(ye.Months,Re.Narrow,Bt.Standalone);break;case"w":n=mp(1);break;case"ww":n=mp(2);break;case"W":n=mp(1,!0);break;case"d":n=et(be.Date,1);break;case"dd":n=et(be.Date,2);break;case"c":case"cc":n=et(be.Day,1);break;case"ccc":n=Le(ye.Days,Re.Abbreviated,Bt.Standalone);break;case"cccc":n=Le(ye.Days,Re.Wide,Bt.Standalone);break;case"ccccc":n=Le(ye.Days,Re.Narrow,Bt.Standalone);break;case"cccccc":n=Le(ye.Days,Re.Short,Bt.Standalone);break;case"E":case"EE":case"EEE":n=Le(ye.Days,Re.Abbreviated);break;case"EEEE":n=Le(ye.Days,Re.Wide);break;case"EEEEE":n=Le(ye.Days,Re.Narrow);break;case"EEEEEE":n=Le(ye.Days,Re.Short);break;case"a":case"aa":case"aaa":n=Le(ye.DayPeriods,Re.Abbreviated);break;case"aaaa":n=Le(ye.DayPeriods,Re.Wide);break;case"aaaaa":n=Le(ye.DayPeriods,Re.Narrow);break;case"b":case"bb":case"bbb":n=Le(ye.DayPeriods,Re.Abbreviated,Bt.Standalone,!0);break;case"bbbb":n=Le(ye.DayPeriods,Re.Wide,Bt.Standalone,!0);break;case"bbbbb":n=Le(ye.DayPeriods,Re.Narrow,Bt.Standalone,!0);break;case"B":case"BB":case"BBB":n=Le(ye.DayPeriods,Re.Abbreviated,Bt.Format,!0);break;case"BBBB":n=Le(ye.DayPeriods,Re.Wide,Bt.Format,!0);break;case"BBBBB":n=Le(ye.DayPeriods,Re.Narrow,Bt.Format,!0);break;case"h":n=et(be.Hours,1,-12);break;case"hh":n=et(be.Hours,2,-12);break;case"H":n=et(be.Hours,1);break;case"HH":n=et(be.Hours,2);break;case"m":n=et(be.Minutes,1);break;case"mm":n=et(be.Minutes,2);break;case"s":n=et(be.Seconds,1);break;case"ss":n=et(be.Seconds,2);break;case"S":n=et(be.FractionalSeconds,1);break;case"SS":n=et(be.FractionalSeconds,2);break;case"SSS":n=et(be.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Kc(Ti.Short);break;case"ZZZZZ":n=Kc(Ti.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Kc(Ti.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Kc(Ti.Long);break;default:return null}return gp[e]=n,n}(u);c+=f?f(r,t,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Yc(e,n,t){const i=new Date(0);return i.setFullYear(e,n,t),i.setHours(0,0,0),i}function Ai(e,n){const t=function JN(e){return Vt(e)[Ne.LocaleId]}(e);if(ha[t]=ha[t]||{},ha[t][n])return ha[t][n];let i="";switch(n){case"shortDate":i=qc(e,cn.Short);break;case"mediumDate":i=qc(e,cn.Medium);break;case"longDate":i=qc(e,cn.Long);break;case"fullDate":i=qc(e,cn.Full);break;case"shortTime":i=Gc(e,cn.Short);break;case"mediumTime":i=Gc(e,cn.Medium);break;case"longTime":i=Gc(e,cn.Long);break;case"fullTime":i=Gc(e,cn.Full);break;case"short":const r=Ai(e,"shortTime"),o=Ai(e,"shortDate");i=Zc(Wc(e,cn.Short),[r,o]);break;case"medium":const s=Ai(e,"mediumTime"),a=Ai(e,"mediumDate");i=Zc(Wc(e,cn.Medium),[s,a]);break;case"long":const l=Ai(e,"longTime"),c=Ai(e,"longDate");i=Zc(Wc(e,cn.Long),[l,c]);break;case"full":const u=Ai(e,"fullTime"),f=Ai(e,"fullDate");i=Zc(Wc(e,cn.Full),[u,f])}return i&&(ha[t][n]=i),i}function Zc(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,i){return null!=n&&i in n?n[i]:t})),e}function jn(e,n,t="-",i,r){let o="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,o=t));let s=String(e);for(;s.length<n;)s="0"+s;return i&&(s=s.slice(s.length-n)),o+s}function et(e,n,t=0,i=!1,r=!1){return function(o,s){let a=function mL(e,n){switch(e){case be.FullYear:return n.getFullYear();case be.Month:return n.getMonth();case be.Date:return n.getDate();case be.Hours:return n.getHours();case be.Minutes:return n.getMinutes();case be.Seconds:return n.getSeconds();case be.FractionalSeconds:return n.getMilliseconds();case be.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${e}".`)}}(e,o);if((t>0||a>-t)&&(a+=t),e===be.Hours)0===a&&-12===t&&(a=12);else if(e===be.FractionalSeconds)return function pL(e,n){return jn(e,3).substring(0,n)}(a,n);const l=Mn(s,Qe.MinusSign);return jn(a,n,l,i,r)}}function Le(e,n,t=Bt.Format,i=!1){return function(r,o){return function gL(e,n,t,i,r,o){switch(t){case ye.Months:return function nL(e,n,t){const i=Vt(e),o=Sn([i[Ne.MonthsFormat],i[Ne.MonthsStandalone]],n);return Sn(o,t)}(n,r,i)[e.getMonth()];case ye.Days:return function tL(e,n,t){const i=Vt(e),o=Sn([i[Ne.DaysFormat],i[Ne.DaysStandalone]],n);return Sn(o,t)}(n,r,i)[e.getDay()];case ye.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(o){const c=function sL(e){const n=Vt(e);return tC(n),(n[Ne.ExtraData][2]||[]).map(i=>"string"==typeof i?pp(i):[pp(i[0]),pp(i[1])])}(n),u=function aL(e,n,t){const i=Vt(e);tC(i);const o=Sn([i[Ne.ExtraData][0],i[Ne.ExtraData][1]],n)||[];return Sn(o,t)||[]}(n,r,i),f=c.findIndex(m=>{if(Array.isArray(m)){const[g,b]=m,y=s>=g.hours&&a>=g.minutes,x=s<b.hours||s===b.hours&&a<b.minutes;if(g.hours<b.hours){if(y&&x)return!0}else if(y||x)return!0}else if(m.hours===s&&m.minutes===a)return!0;return!1});if(-1!==f)return u[f]}return function eL(e,n,t){const i=Vt(e),o=Sn([i[Ne.DayPeriodsFormat],i[Ne.DayPeriodsStandalone]],n);return Sn(o,t)}(n,r,i)[s<12?0:1];case ye.Eras:return function iL(e,n){return Sn(Vt(e)[Ne.Eras],n)}(n,i)[e.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${t}`)}}(r,o,e,n,t,i)}}function Kc(e){return function(n,t,i){const r=-1*i,o=Mn(t,Qe.MinusSign),s=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case Ti.Short:return(r>=0?"+":"")+jn(s,2,o)+jn(Math.abs(r%60),2,o);case Ti.ShortGMT:return"GMT"+(r>=0?"+":"")+jn(s,1,o);case Ti.Long:return"GMT"+(r>=0?"+":"")+jn(s,2,o)+":"+jn(Math.abs(r%60),2,o);case Ti.Extended:return 0===i?"Z":(r>=0?"+":"")+jn(s,2,o)+":"+jn(Math.abs(r%60),2,o);default:throw new Error(`Unknown zone width "${e}"`)}}}const _L=0,Xc=4;function nC(e){return Yc(e.getFullYear(),e.getMonth(),e.getDate()+(Xc-e.getDay()))}function mp(e,n=!1){return function(t,i){let r;if(n){const o=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();r=1+Math.floor((s+o)/7)}else{const o=nC(t),s=function vL(e){const n=Yc(e,_L,1).getDay();return Yc(e,0,1+(n<=Xc?Xc:Xc+7)-n)}(o.getFullYear()),a=o.getTime()-s.getTime();r=1+Math.round(a/6048e5)}return jn(r,e,Mn(i,Qe.MinusSign))}}function Qc(e,n=!1){return function(t,i){return jn(nC(t).getFullYear(),e,Mn(i,Qe.MinusSign),n)}}const gp={};function iC(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function rC(e){return e instanceof Date&&!isNaN(e.valueOf())}function lC(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const i=t.indexOf("="),[r,o]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}const Cp=/\s+/,cC=[];let Ut=(()=>{class e{constructor(t,i,r,o){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this.initialClasses=cC,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Cp):cC}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Cp):t}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const i of t)this._updateState(i,!0);else if(null!=t)for(const i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){const r=this.stateMap.get(t);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const i=t[0],r=t[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(t,i){(t=t.trim()).length>0&&t.split(Cp).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(i){return new(i||e)(D(Uc),D(da),D(st),D(yn))}}static{this.\u0275dir=z({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();class NL{constructor(n,t,i,r){this.$implicit=n,this.ngForOf=t,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ht=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new NL(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),dC(a,r)}});for(let r=0,o=i.length;r<o;r++){const a=i.get(r).context;a.index=r,a.count=o,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{dC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}static{this.\u0275fac=function(i){return new(i||e)(D(Ln),D(Mi),D(Uc))}}static{this.\u0275dir=z({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function dC(e,n){e.context.$implicit=n.item}let He=(()=>{class e{constructor(t,i){this._viewContainer=t,this._context=new LL,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){hC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){hC("ngIfElse",t),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 ngTemplateContextGuard(t,i){return!0}static{this.\u0275fac=function(i){return new(i||e)(D(Ln),D(Mi))}}static{this.\u0275dir=z({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class LL{constructor(){this.$implicit=null,this.ngIf=null}}function hC(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${rt(n)}'.`)}function Bn(e,n){return new S(2100,!1)}const KL=new R("DATE_PIPE_DEFAULT_TIMEZONE"),XL=new R("DATE_PIPE_DEFAULT_OPTIONS");let Mr=(()=>{class e{constructor(t,i,r){this.locale=t,this.defaultTimezone=i,this.defaultOptions=r}transform(t,i,r,o){if(null==t||""===t||t!=t)return null;try{return fL(t,i??this.defaultOptions?.dateFormat??"mediumDate",o||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw Bn()}}static{this.\u0275fac=function(i){return new(i||e)(D(oi,16),D(KL,24),D(XL,24))}}static{this.\u0275pipe=Rt({name:"date",type:e,pure:!0,standalone:!0})}}return e})(),Sp=(()=>{class e{transform(t,i,r){if(null==t)return null;if(!this.supports(t))throw Bn();return t.slice(i,r)}supports(t){return"string"==typeof t||Array.isArray(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=Rt({name:"slice",type:e,pure:!1,standalone:!0})}}return e})(),Ip=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})();const mC="browser";function gC(e){return e===mC}function _C(e){return"server"===e}let d3=(()=>{class e{static{this.\u0275prov=P({token:e,providedIn:"root",factory:()=>new h3(M(ve),window)})}}return e})();class h3{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function f3(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),i=t.left+this.window.pageXOffset,r=t.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class vC{}class N3 extends qN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class kp extends N3{static makeCurrent(){!function zN(e){up||(up=e)}(new kp)}onAndCancel(n,t,i){return n.addEventListener(t,i),()=>{n.removeEventListener(t,i)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function L3(){return ma=ma||document.querySelector("base"),ma?ma.getAttribute("href"):null}();return null==t?null:function V3(e){nu=nu||document.createElement("a"),nu.setAttribute("href",e);const n=nu.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){ma=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return lC(document.cookie,n)}}let nu,ma=null,B3=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();const Rp=new R("EventManagerPlugins");let DC=(()=>{class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>{r.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(o=>o.supports(t)),!i)throw new S(5101,!1);return this._eventNameToPlugin.set(t,i),i}static{this.\u0275fac=function(i){return new(i||e)(M(Rp),M(le))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();class xC{constructor(n){this._doc=n}}const Pp="ng-app-id";let EC=(()=>{class e{constructor(t,i,r,o={}){this.doc=t,this.appId=i,this.nonce=r,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=_C(o),this.resetHostNodes()}addStyles(t){for(const i of t)1===this.changeUsageCount(i,1)&&this.onStyleAdded(i)}removeStyles(t){for(const i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(const i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){const i=this.styleRef;i.get(t)?.elements?.forEach(r=>r.remove()),i.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Pp}="${this.appId}"]`);if(t?.length){const i=new Map;return t.forEach(r=>{null!=r.textContent&&i.set(r.textContent,r)}),i}return null}changeUsageCount(t,i){const r=this.styleRef;if(r.has(t)){const o=r.get(t);return o.usage+=i,o.usage}return r.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){const r=this.styleNodesInDOM,o=r?.get(i);if(o?.parentNode===t)return r.delete(i),o.removeAttribute(Pp),o;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=i,this.platformIsServer&&s.setAttribute(Pp,this.appId),s}}addStyleToHost(t,i){const r=this.getStyleElement(t,i);t.appendChild(r);const o=this.styleRef,s=o.get(i)?.elements;s?s.push(r):o.set(i,{elements:[r],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(i){return new(i||e)(M(ve),M(ic),M(jh,8),M(Ci))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();const Fp={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Op=/%COMP%/g,z3=new R("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function SC(e,n){return n.map(t=>t.replace(Op,e))}let Np=(()=>{class e{constructor(t,i,r,o,s,a,l,c=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=_C(a),this.defaultRenderer=new Lp(t,s,l,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===gn.ShadowDom&&(i={...i,encapsulation:gn.Emulated});const r=this.getOrCreateRenderer(t,i);return r instanceof TC?r.applyToHost(t):r instanceof Vp&&r.applyStyles(),r}getOrCreateRenderer(t,i){const r=this.rendererByCompId;let o=r.get(i.id);if(!o){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case gn.Emulated:o=new TC(l,c,i,this.appId,u,s,a,f);break;case gn.ShadowDom:return new Y3(l,c,t,i,s,a,this.nonce,f);default:o=new Vp(l,c,i,u,s,a,f)}r.set(i.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(i){return new(i||e)(M(DC),M(EC),M(ic),M(z3),M(ve),M(Ci),M(le),M(jh))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();class Lp{constructor(n,t,i,r){this.eventManager=n,this.doc=t,this.ngZone=i,this.platformIsServer=r,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Fp[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(IC(n)?n.content:n).appendChild(t)}insertBefore(n,t,i){n&&(IC(n)?n.content:n).insertBefore(t,i)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let i="string"==typeof n?this.doc.querySelector(n):n;if(!i)throw new S(-5104,!1);return t||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,i,r){if(r){t=r+":"+t;const o=Fp[r];o?n.setAttributeNS(o,t,i):n.setAttribute(t,i)}else n.setAttribute(t,i)}removeAttribute(n,t,i){if(i){const r=Fp[i];r?n.removeAttributeNS(r,t):n.removeAttribute(`${i}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,i,r){r&(qi.DashCase|qi.Important)?n.style.setProperty(t,i,r&qi.Important?"important":""):n.style[t]=i}removeStyle(n,t,i){i&qi.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,i){n[t]=i}setValue(n,t){n.nodeValue=t}listen(n,t,i){if("string"==typeof n&&!(n=Si().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(i))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function IC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Y3 extends Lp{constructor(n,t,i,r,o,s,a,l){super(n,o,s,l),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=SC(r.id,r.styles);for(const u of c){const f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=u,this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,i){return super.insertBefore(this.nodeOrShadowRoot(n),t,i)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Vp extends Lp{constructor(n,t,i,r,o,s,a,l){super(n,o,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=r,this.styles=l?SC(l,i.styles):i.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class TC extends Vp{constructor(n,t,i,r,o,s,a,l){const c=r+"-"+i.id;super(n,t,i,o,s,a,l,c),this.contentAttr=function q3(e){return"_ngcontent-%COMP%".replace(Op,e)}(c),this.hostAttr=function G3(e){return"_nghost-%COMP%".replace(Op,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const i=super.createElement(n,t);return super.setAttribute(i,this.contentAttr,""),i}}let Z3=(()=>{class e extends xC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}static{this.\u0275fac=function(i){return new(i||e)(M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();const AC=["alt","control","meta","shift"],K3={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},X3={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Q3=(()=>{class e extends xC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,i,r){const o=e.parseEventName(i),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Si().onAndCancel(t,o.domEventName,s))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=e._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),AC.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(t,i){let r=K3[t.key]||t.key,o="";return i.indexOf("code.")>-1&&(r=t.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),AC.forEach(s=>{s!==r&&(0,X3[s])(t)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(t,i,r){return o=>{e.matchEventFullKeyCode(o,t)&&r.runGuarded(()=>i(o))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(i){return new(i||e)(M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();const nV=D1(AN,"browser",[{provide:Ci,useValue:mC},{provide:Fb,useValue:function J3(){kp.makeCurrent()},multi:!0},{provide:ve,useFactory:function tV(){return function jA(e){Eh=e}(document),document},deps:[]}]),iV=new R(""),PC=[{provide:Nc,useClass:class j3{addToWindow(n){Fe.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new S(5103,!1);return o},Fe.getAllAngularTestabilities=()=>n.getAllTestabilities(),Fe.getAllAngularRootElements=()=>n.getAllRootElements(),Fe.frameworkStabilizers||(Fe.frameworkStabilizers=[]),Fe.frameworkStabilizers.push(i=>{const r=Fe.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(l=>{l.whenStable(a)})})}findTestabilityInTree(n,t,i){return null==t?null:n.getTestability(t)??(i?Si().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:v1,useClass:Jf,deps:[le,ep,Nc]},{provide:Jf,useClass:Jf,deps:[le,ep,Nc]}],FC=[{provide:Fh,useValue:"root"},{provide:Di,useFactory:function eV(){return new Di},deps:[]},{provide:Rp,useClass:Z3,multi:!0,deps:[ve,le,Ci]},{provide:Rp,useClass:Q3,multi:!0,deps:[ve]},Np,EC,DC,{provide:$s,useExisting:Np},{provide:vC,useClass:B3,deps:[]},[]];let OC=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ic,useValue:t.appId}]}}static{this.\u0275fac=function(i){return new(i||e)(M(iV,12))}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:[...FC,...PC],imports:[Ip,kN]})}}return e})(),NC=(()=>{class e{constructor(t){this._doc=t,this._dom=Si()}addTag(t,i=!1){return t?this._getOrCreateElement(t,i):null}addTags(t,i=!1){return t?t.reduce((r,o)=>(o&&r.push(this._getOrCreateElement(o,i)),r),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];const i=this._doc.querySelectorAll(`meta[${t}]`);return i?[].slice.call(i):[]}updateTag(t,i){if(!t)return null;i=i||this._parseSelector(t);const r=this.getTag(i);return r?this._setMetaElementAttributes(t,r):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,i=!1){if(!i){const s=this._parseSelector(t),a=this.getTags(s).filter(l=>this._containsAttributes(t,l))[0];if(void 0!==a)return a}const r=this._dom.createElement("meta");return this._setMetaElementAttributes(t,r),this._doc.getElementsByTagName("head")[0].appendChild(r),r}_setMetaElementAttributes(t,i){return Object.keys(t).forEach(r=>i.setAttribute(this._getMetaKeyMap(r),t[r])),i}_parseSelector(t){const i=t.name?"name":"property";return`${i}="${t[i]}"`}_containsAttributes(t,i){return Object.keys(t).every(r=>i.getAttribute(this._getMetaKeyMap(r))===t[r])}_getMetaKeyMap(t){return oV[t]||t}static{this.\u0275fac=function(i){return new(i||e)(M(ve))}}static{this.\u0275prov=P({token:e,factory:function(i){let r=null;return r=i?new i:function rV(){return new NC(M(ve))}(),r},providedIn:"root"})}}return e})();const oV={httpEquiv:"http-equiv"};let jp=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static{this.\u0275fac=function(i){return new(i||e)(M(ve))}}static{this.\u0275prov=P({token:e,factory:function(i){let r=null;return r=i?new i:function sV(){return new jp(M(ve))}(),r},providedIn:"root"})}}return e})();typeof window<"u"&&window;let Up=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(i){let r=null;return r=i?new(i||e):M(jC),r},providedIn:"root"})}}return e})(),jC=(()=>{class e extends Up{constructor(t){super(),this._doc=t}sanitize(t,i){if(null==i)return null;switch(t){case bn.NONE:return i;case bn.HTML:return ei(i,"HTML")?on(i):xb(this._doc,String(i)).toString();case bn.STYLE:return ei(i,"Style")?on(i):i;case bn.SCRIPT:if(ei(i,"Script"))return on(i);throw new S(5200,!1);case bn.URL:return ei(i,"URL")?on(i):Xl(String(i));case bn.RESOURCE_URL:if(ei(i,"ResourceURL"))return on(i);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(t){return function GA(e){return new BA(e)}(t)}bypassSecurityTrustStyle(t){return function WA(e){return new UA(e)}(t)}bypassSecurityTrustScript(t){return function YA(e){return new HA(e)}(t)}bypassSecurityTrustUrl(t){return function ZA(e){return new $A(e)}(t)}bypassSecurityTrustResourceUrl(t){return function KA(e){return new zA(e)}(t)}static{this.\u0275fac=function(i){return new(i||e)(M(ve))}}static{this.\u0275prov=P({token:e,factory:function(i){let r=null;return r=i?new i:function uV(e){return new jC(e.get(ve))}(M(xt)),r},providedIn:"root"})}}return e})();const{isArray:dV}=Array,{getPrototypeOf:hV,prototype:fV,keys:pV}=Object;function UC(e){if(1===e.length){const n=e[0];if(dV(n))return{args:n,keys:null};if(function mV(e){return e&&"object"==typeof e&&hV(e)===fV}(n)){const t=pV(n);return{args:t.map(i=>n[i]),keys:t}}}return{args:e,keys:null}}const{isArray:gV}=Array;function Hp(e){return de(n=>function _V(e,n){return gV(n)?e(...n):e(n)}(e,n))}function HC(e,n){return e.reduce((t,i,r)=>(t[i]=n[r],t),{})}let $C=(()=>{class e{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(i){return new(i||e)(D(yn),D(st))}}static{this.\u0275dir=z({type:e})}}return e})(),Sr=(()=>{class e extends $C{static{this.\u0275fac=function(){let t;return function(r){return(t||(t=gt(e)))(r||e)}}()}static{this.\u0275dir=z({type:e,features:[xe]})}}return e})();const Un=new R("NgValueAccessor"),yV={provide:Un,useExisting:Te(()=>vt),multi:!0},CV=new R("CompositionEventMode");let vt=(()=>{class e extends $C{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function wV(){const e=Si()?Si().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(i){return new(i||e)(D(yn),D(st),D(CV,8))}}static{this.\u0275dir=z({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){1&i&&k("input",function(s){return r._handleInput(s.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(s){return r._compositionEnd(s.target.value)})},features:[Be([yV]),xe]})}}return e})();function Xi(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function qC(e){return null!=e&&"number"==typeof e.length}const St=new R("NgValidators"),Qi=new R("NgAsyncValidators"),DV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Z{static min(n){return function GC(e){return n=>{if(Xi(n.value)||Xi(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t<e?{min:{min:e,actual:n.value}}:null}}(n)}static max(n){return function WC(e){return n=>{if(Xi(n.value)||Xi(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function YC(e){return Xi(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function ZC(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function KC(e){return Xi(e.value)||DV.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function XC(e){return n=>Xi(n.value)||!qC(n.value)?null:n.value.length<e?{minlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static maxLength(n){return function QC(e){return n=>qC(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function JC(e){if(!e)return iu;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),i=>{if(Xi(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return oD(n)}static composeAsync(n){return sD(n)}}function iu(e){return null}function eD(e){return null!=e}function tD(e){return Js(e)?it(e):e}function nD(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function iD(e,n){return n.map(t=>t(e))}function rD(e){return e.map(n=>function xV(e){return!e.validate}(n)?n:t=>n.validate(t))}function oD(e){if(!e)return null;const n=e.filter(eD);return 0==n.length?null:function(t){return nD(iD(t,n))}}function $p(e){return null!=e?oD(rD(e)):null}function sD(e){if(!e)return null;const n=e.filter(eD);return 0==n.length?null:function(t){return function vV(...e){const n=n_(e),{args:t,keys:i}=UC(e),r=new Pe(o=>{const{length:s}=t;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u<s;u++){let f=!1;kt(t[u]).subscribe($e(o,m=>{f||(f=!0,c--),a[u]=m},()=>l--,void 0,()=>{(!l||!f)&&(c||o.next(i?HC(i,a):a),o.complete())}))}});return n?r.pipe(Hp(n)):r}(iD(t,n).map(tD)).pipe(de(nD))}}function zp(e){return null!=e?sD(rD(e)):null}function aD(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function lD(e){return e._rawValidators}function cD(e){return e._rawAsyncValidators}function qp(e){return e?Array.isArray(e)?e:[e]:[]}function ru(e,n){return Array.isArray(e)?e.includes(n):e===n}function uD(e,n){const t=qp(n);return qp(e).forEach(r=>{ru(t,r)||t.push(r)}),t}function dD(e,n){return qp(n).filter(t=>!ru(e,t))}class hD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=$p(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=zp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class $t extends hD{get formDirective(){return null}get path(){return null}}class Ji extends hD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class fD{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let zt=(()=>{class e extends fD{constructor(t){super(t)}static{this.\u0275fac=function(i){return new(i||e)(D(Ji,2))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){2&i&&xc("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[xe]})}}return e})(),si=(()=>{class e extends fD{constructor(t){super(t)}static{this.\u0275fac=function(i){return new(i||e)(D($t,10))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){2&i&&xc("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[xe]})}}return e})();const ga="VALID",su="INVALID",Yo="PENDING",_a="DISABLED";function Yp(e){return(au(e)?e.validators:e)||null}function Zp(e,n){return(au(n)?n.asyncValidators:e)||null}function au(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function mD(e,n,t){const i=e.controls;if(!(n?Object.keys(i):i).length)throw new S(1e3,"");if(!i[t])throw new S(1001,"")}function gD(e,n,t){e._forEachChild((i,r)=>{if(void 0===t[r])throw new S(1002,"")})}class lu{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ga}get invalid(){return this.status===su}get pending(){return this.status==Yo}get disabled(){return this.status===_a}get enabled(){return this.status!==_a}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(uD(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(uD(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(dD(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(dD(n,this._rawAsyncValidators))}hasValidator(n){return ru(this._rawValidators,n)}hasAsyncValidator(n){return ru(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Yo,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=_a,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ga,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ga||this.status===Yo)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_a:ga}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Yo,this._hasOwnPendingAsyncValidator=!0;const t=tD(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((i,r)=>i&&i._find(r),this)}getError(n,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new _e,this.statusChanges=new _e}_calculateStatus(){return this._allControlsDisabled()?_a:this.errors?su:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yo)?Yo:this._anyControlsHaveStatus(su)?su:ga}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){au(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function IV(e){return Array.isArray(e)?$p(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function TV(e){return Array.isArray(e)?zp(e):e||null}(this._rawAsyncValidators)}}class va extends lu{constructor(n,t,i){super(Yp(t),Zp(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,i={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){gD(this,0,n),Object.keys(n).forEach(i=>{mD(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((i,r)=>{i.reset(n?n[r]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,i)=>(n[i]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&n(i,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,i]of Object.entries(this.controls))if(this.contains(t)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(n,t){let i=n;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class _D extends va{}const Ir=new R("CallSetDisabledState",{providedIn:"root",factory:()=>ba}),ba="always";function cu(e,n){return[...n.path,e]}function ya(e,n,t=ba){Kp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function kV(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&vD(e,n)})}(e,n),function PV(e,n){const t=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function RV(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&vD(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function AV(e,n){if(n.valueAccessor.setDisabledState){const t=i=>{n.valueAccessor.setDisabledState(i)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function uu(e,n,t=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),hu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function du(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Kp(e,n){const t=lD(e);null!==n.validator?e.setValidators(aD(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const i=cD(e);null!==n.asyncValidator?e.setAsyncValidators(aD(i,n.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);const r=()=>e.updateValueAndValidity();du(n._rawValidators,r),du(n._rawAsyncValidators,r)}function hu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const r=lD(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(t=!0,e.setValidators(o))}}if(null!==n.asyncValidator){const r=cD(e);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(t=!0,e.setAsyncValidators(o))}}}const i=()=>{};return du(n._rawValidators,i),du(n._rawAsyncValidators,i),t}function vD(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function bD(e,n){Kp(e,n)}function Qp(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}function yD(e,n){e._syncPendingControls(),n.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function Jp(e,n){if(!n)return null;let t,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===vt?t=o:function NV(e){return Object.getPrototypeOf(e.constructor)===Sr}(o)?i=o:r=o}),r||i||t||null}const VV={provide:$t,useExisting:Te(()=>fu)},wa=(()=>Promise.resolve())();let fu=(()=>{class e extends $t{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._directives=new Set,this.ngSubmit=new _e,this.form=new va({},$p(t),zp(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){wa.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),ya(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){wa.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){wa.then(()=>{const i=this._findContainer(t.path),r=new va({});bD(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){wa.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){wa.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,yD(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static{this.\u0275fac=function(i){return new(i||e)(D(St,10),D(Qi,10),D(Ir,8))}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){1&i&&k("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Be([VV]),xe]})}}return e})();function wD(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function CD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const Ca=class extends lu{constructor(n=null,t,i){super(Yp(t),Zp(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),au(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=CD(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){wD(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){wD(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){CD(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},UV={provide:Ji,useExisting:Te(()=>er)},ED=(()=>Promise.resolve())();let er=(()=>{class e extends Ji{constructor(t,i,r,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new Ca,this._registered=!1,this.name="",this.update=new _e,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Jp(0,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Qp(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ya(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){ED.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const i=t.isDisabled.currentValue,r=0!==i&&Go(i);ED.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?cu(t,this._parent):[t]}static{this.\u0275fac=function(i){return new(i||e)(D($t,9),D(St,10),D(Qi,10),D(Un,10),D(Vc,8),D(Ir,8))}}static{this.\u0275dir=z({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Be([UV]),xe,tn]})}}return e})(),ai=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=z({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})();const HV={provide:Un,useExisting:Te(()=>em),multi:!0};let em=(()=>{class e extends Sr{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}static{this.\u0275fac=function(){let t;return function(r){return(t||(t=gt(e)))(r||e)}}()}static{this.\u0275dir=z({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(i,r){1&i&&k("input",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},features:[Be([HV]),xe]})}}return e})();const $V={provide:Un,useExisting:Te(()=>tm),multi:!0};let MD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})(),zV=(()=>{class e{constructor(){this._accessors=[]}add(t,i){this._accessors.push([t,i])}remove(t){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===t)return void this._accessors.splice(i,1)}select(t){this._accessors.forEach(i=>{this._isSameGroup(i,t)&&i[1]!==t&&i[1].fireUncheck(t.value)})}_isSameGroup(t,i){return!!t[0].control&&t[0]._parent===i._control._parent&&t[1].name===i.name}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:MD})}}return e})(),tm=(()=>{class e extends Sr{constructor(t,i,r,o){super(t,i),this._registry=r,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=O(Ir,{optional:!0})??ba}ngOnInit(){this._control=this._injector.get(Ji),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(i){return new(i||e)(D(yn),D(st),D(zV),D(xt))}}static{this.\u0275dir=z({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(i,r){1&i&&k("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Be([$V]),xe]})}}return e})();const nm=new R("NgModelWithFormControlWarning"),WV={provide:$t,useExisting:Te(()=>Hn)};let Hn=(()=>{class e extends $t{constructor(t,i,r){super(),this.callSetDisabledState=r,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new _e,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(hu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return ya(i,t,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){uu(t.control||null,t,!1),function LV(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,yD(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(uu(i||null,t),(e=>e instanceof Ca)(r)&&(ya(r,t,this.callSetDisabledState),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);bD(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function FV(e,n){return hu(e,n)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Kp(this.form,this),this._oldForm&&hu(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(i){return new(i||e)(D(St,10),D(Qi,10),D(Ir,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,r){1&i&&k("submit",function(s){return r.onSubmit(s)})("reset",function(){return r.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Be([WV]),xe,tn]})}}return e})();const KV={provide:Ji,useExisting:Te(()=>li)};let li=(()=>{class e extends Ji{set isDisabled(t){}static{this._ngModelWarningSentOnce=!1}constructor(t,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new _e,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Jp(0,o)}ngOnChanges(t){this._added||this._setUpControl(),Qp(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return cu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(i){return new(i||e)(D($t,13),D(St,10),D(Qi,10),D(Un,10),D(nm,8))}}static{this.\u0275dir=z({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Be([KV]),xe,tn]})}}return e})();const XV={provide:Un,useExisting:Te(()=>Tr),multi:!0};function AD(e,n){return null==e?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let Tr=(()=>{class e extends Sr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const r=AD(this._getOptionId(t),t);this.setProperty("value",r)}registerOnChange(t){this.onChange=i=>{this.value=this._getOptionValue(i),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i),t))return i;return null}_getOptionValue(t){const i=function QV(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i):t}static{this.\u0275fac=function(){let t;return function(r){return(t||(t=gt(e)))(r||e)}}()}static{this.\u0275dir=z({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(i,r){1&i&&k("change",function(s){return r.onChange(s.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Be([XV]),xe]})}}return e})(),Ar=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(AD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||e)(D(st),D(yn),D(Tr,9))}}static{this.\u0275dir=z({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})();const JV={provide:Un,useExisting:Te(()=>om),multi:!0};function kD(e,n){return null==e?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${e}: ${n}`.slice(0,50))}let om=(()=>{class e extends Sr{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let i;if(this.value=t,Array.isArray(t)){const r=t.map(o=>this._getOptionId(o));i=(o,s)=>{o._setSelected(r.indexOf(s.toString())>-1)}}else i=(r,o)=>{r._setSelected(!1)};this._optionMap.forEach(i)}registerOnChange(t){this.onChange=i=>{const r=[],o=i.selectedOptions;if(void 0!==o){const s=o;for(let a=0;a<s.length;a++){const c=this._getOptionValue(s[a].value);r.push(c)}}else{const s=i.options;for(let a=0;a<s.length;a++){const l=s[a];if(l.selected){const c=this._getOptionValue(l.value);r.push(c)}}}this.value=r,t(r)}}_registerOption(t){const i=(this._idCounter++).toString();return this._optionMap.set(i,t),i}_getOptionId(t){for(const i of this._optionMap.keys())if(this._compareWith(this._optionMap.get(i)._value,t))return i;return null}_getOptionValue(t){const i=function ej(e){return e.split(":")[0]}(t);return this._optionMap.has(i)?this._optionMap.get(i)._value:t}static{this.\u0275fac=function(){let t;return function(r){return(t||(t=gt(e)))(r||e)}}()}static{this.\u0275dir=z({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(i,r){1&i&&k("change",function(s){return r.onChange(s.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[Be([JV]),xe]})}}return e})(),kr=(()=>{class e{constructor(t,i,r){this._element=t,this._renderer=i,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue(kD(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(kD(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(i){return new(i||e)(D(st),D(yn),D(om,9))}}static{this.\u0275dir=z({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return e})(),UD=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[MD]})}}return e})();class HD extends lu{constructor(n,t,i){super(Yp(t),Zp(i,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,i={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,t={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),t&&(this.controls.splice(r,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){gD(this,0,n),n.forEach((i,r)=>{mD(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,i)=>{n(t,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function $D(e){return!!e&&(void 0!==e.asyncValidators||void 0!==e.validators||void 0!==e.updateOn)}let tr=(()=>{class e{constructor(){this.useNonNullable=!1}get nonNullable(){const t=new e;return t.useNonNullable=!0,t}group(t,i=null){const r=this._reduceControls(t);let o={};return $D(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new va(r,o)}record(t,i=null){const r=this._reduceControls(t);return new _D(r,i)}control(t,i,r){let o={};return this.useNonNullable?($D(i)?o=i:(o.validators=i,o.asyncValidators=r),new Ca(t,{...o,nonNullable:!0})):new Ca(t,i,r)}array(t,i,r){const o=t.map(s=>this._createControl(s));return new HD(o,i,r)}_reduceControls(t){const i={};return Object.keys(t).forEach(r=>{i[r]=this._createControl(t[r])}),i}_createControl(t){return t instanceof Ca||t instanceof lu?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),am=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Ir,useValue:t.callSetDisabledState??ba}]}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[UD]})}}return e})(),zD=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:nm,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Ir,useValue:t.callSetDisabledState??ba}]}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[UD]})}}return e})();function Zo(...e){const n=hs(e),t=n_(e),{args:i,keys:r}=UC(e);if(0===i.length)return it([],n);const o=new Pe(function uj(e,n,t=Li){return i=>{qD(n,()=>{const{length:r}=e,o=new Array(r);let s=r,a=r;for(let l=0;l<r;l++)qD(n,()=>{const c=it(e[l],n);let u=!1;c.subscribe($e(i,f=>{o[l]=f,u||(u=!0,a--),a||i.next(t(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>HC(r,s):Li));return t?o.pipe(Hp(t)):o}function qD(e,n,t){e?pi(t,e,n):n()}const pu=us(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function mu(...e){return function dj(){return Qr(1)}()(it(e,hs(e)))}function GD(e){return new Pe(n=>{kt(e()).subscribe(n)})}function Qt(e,n){const t=ce(e)?e:()=>e,i=r=>r.error(t());return new Pe(n?r=>n.schedule(i,0,r):i)}function lm(){return Ze((e,n)=>{let t=null;e._refCount++;const i=$e(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const r=e._connection,o=t;t=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});e.subscribe(i),i.closed||(t=e.connect())})}class WD extends Pe{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Ug(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new nt;const t=this.getSubject();n.add(this.source.subscribe($e(t,void 0,()=>{this._teardown(),t.complete()},i=>{this._teardown(),t.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=nt.EMPTY)}return n}refCount(){return lm()(this)}}function ki(e){return e<=0?()=>Wn:Ze((n,t)=>{let i=0;n.subscribe($e(t,r=>{++i<=e&&(t.next(r),e<=i&&t.complete())}))})}function YD(...e){const n=hs(e);return Ze((t,i)=>{(n?mu(e,t,n):mu(e,t)).subscribe(i)})}function qt(e,n){return Ze((t,i)=>{let r=0;t.subscribe($e(i,o=>e.call(n,o,r++)&&i.next(o)))})}function gu(e){return Ze((n,t)=>{let i=!1;n.subscribe($e(t,r=>{i=!0,t.next(r)},()=>{i||t.next(e),t.complete()}))})}function ZD(e=hj){return Ze((n,t)=>{let i=!1;n.subscribe($e(t,r=>{i=!0,t.next(r)},()=>i?t.complete():t.error(e())))})}function hj(){return new pu}function Pr(e,n){const t=arguments.length>=2;return i=>i.pipe(e?qt((r,o)=>e(r,o,i)):Li,ki(1),t?gu(n):ZD(()=>new pu))}function Ko(e,n){return ce(n)?ut(e,n,1):ut(e,1)}function lt(e,n,t){const i=ce(e)||n||t?{next:e,error:n,complete:t}:e;return i?Ze((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe($e(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):Li}function It(e){return Ze((n,t)=>{let o,i=null,r=!1;i=n.subscribe($e(t,void 0,void 0,s=>{o=kt(e(s,It(e)(n))),i?(i.unsubscribe(),i=null,o.subscribe(t)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(t))})}function cm(e){return e<=0?()=>Wn:Ze((n,t)=>{let i=[];n.subscribe($e(t,r=>{i.push(r),e<i.length&&i.shift()},()=>{for(const r of i)t.next(r);t.complete()},void 0,()=>{i=null}))})}function Da(e){return Ze((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function um(e){return Ze((n,t)=>{kt(e).subscribe($e(t,()=>t.complete(),ad)),!t.closed&&n.subscribe(t)})}const te="primary",xa=Symbol("RouteTitle");class _j{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Xo(e){return new _j(e)}function vj(e,n,t){const i=t.path.split("/");if(i.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||i.length<e.length))return null;const r={};for(let o=0;o<i.length;o++){const s=i[o],a=e[o];if(s.startsWith(":"))r[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ci(e,n){const t=e?Object.keys(e):void 0,i=n?Object.keys(n):void 0;if(!t||!i||t.length!=i.length)return!1;let r;for(let o=0;o<t.length;o++)if(r=t[o],!KD(e[r],n[r]))return!1;return!0}function KD(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;const t=[...e].sort(),i=[...n].sort();return t.every((r,o)=>i[o]===r)}return e===n}function XD(e){return e.length>0?e[e.length-1]:null}function nr(e){return function cj(e){return!!e&&(e instanceof Pe||ce(e.lift)&&ce(e.subscribe))}(e)?e:Js(e)?it(Promise.resolve(e)):B(e)}const yj={exact:function ex(e,n,t){if(!Fr(e.segments,n.segments)||!_u(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!e.children[i]||!ex(e.children[i],n.children[i],t))return!1;return!0},subset:tx},QD={exact:function wj(e,n){return ci(e,n)},subset:function Cj(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>KD(e[t],n[t]))},ignored:()=>!0};function JD(e,n,t){return yj[t.paths](e.root,n.root,t.matrixParams)&&QD[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function tx(e,n,t){return nx(e,n,n.segments,t)}function nx(e,n,t,i){if(e.segments.length>t.length){const r=e.segments.slice(0,t.length);return!(!Fr(r,t)||n.hasChildren()||!_u(r,t,i))}if(e.segments.length===t.length){if(!Fr(e.segments,t)||!_u(e.segments,t,i))return!1;for(const r in n.children)if(!e.children[r]||!tx(e.children[r],n.children[r],i))return!1;return!0}{const r=t.slice(0,e.segments.length),o=t.slice(e.segments.length);return!!(Fr(e.segments,r)&&_u(e.segments,r,i)&&e.children[te])&&nx(e.children[te],n,o,i)}}function _u(e,n,t){return n.every((i,r)=>QD[t](e[r].parameters,i.parameters))}class Qo{constructor(n=new Me([],{}),t={},i=null){this.root=n,this.queryParams=t,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xo(this.queryParams)),this._queryParamMap}toString(){return Ej.serialize(this)}}class Me{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vu(this)}}class Ea{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Xo(this.parameters)),this._parameterMap}toString(){return ox(this)}}function Fr(e,n){return e.length===n.length&&e.every((t,i)=>t.path===n[i].path)}let Ma=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return new dm},providedIn:"root"})}}return e})();class dm{parse(n){const t=new Nj(n);return new Qo(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Sa(n.root,!0)}`,i=function Ij(e){const n=Object.keys(e).map(t=>{const i=e[t];return Array.isArray(i)?i.map(r=>`${bu(t)}=${bu(r)}`).join("&"):`${bu(t)}=${bu(i)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${i}${"string"==typeof n.fragment?`#${function Mj(e){return encodeURI(e)}(n.fragment)}`:""}`}}const Ej=new dm;function vu(e){return e.segments.map(n=>ox(n)).join("/")}function Sa(e,n){if(!e.hasChildren())return vu(e);if(n){const t=e.children[te]?Sa(e.children[te],!1):"",i=[];return Object.entries(e.children).forEach(([r,o])=>{r!==te&&i.push(`${r}:${Sa(o,!1)}`)}),i.length>0?`${t}(${i.join("//")})`:t}{const t=function xj(e,n){let t=[];return Object.entries(e.children).forEach(([i,r])=>{i===te&&(t=t.concat(n(r,i)))}),Object.entries(e.children).forEach(([i,r])=>{i!==te&&(t=t.concat(n(r,i)))}),t}(e,(i,r)=>r===te?[Sa(e.children[te],!1)]:[`${r}:${Sa(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[te]?`${vu(e)}/${t[0]}`:`${vu(e)}/(${t.join("//")})`}}function ix(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function bu(e){return ix(e).replace(/%3B/gi,";")}function hm(e){return ix(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function yu(e){return decodeURIComponent(e)}function rx(e){return yu(e.replace(/\+/g,"%20"))}function ox(e){return`${hm(e.path)}${function Sj(e){return Object.keys(e).map(n=>`;${hm(n)}=${hm(e[n])}`).join("")}(e.parameters)}`}const Tj=/^[^\/()?;#]+/;function fm(e){const n=e.match(Tj);return n?n[0]:""}const Aj=/^[^\/()?;=#]+/,Rj=/^[^=?&#]+/,Fj=/^[^&#]+/;class Nj{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Me([],{}):new Me([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(i[te]=new Me(n,t)),i}parseSegment(){const n=fm(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new Ea(yu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function kj(e){const n=e.match(Aj);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const r=fm(this.remaining);r&&(i=r,this.capture(i))}n[yu(t)]=yu(i)}parseQueryParam(n){const t=function Pj(e){const n=e.match(Rj);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let i="";if(this.consumeOptional("=")){const s=function Oj(e){const n=e.match(Fj);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=rx(t),o=rx(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=fm(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new S(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=te);const s=this.parseChildren();t[o]=1===Object.keys(s).length?s[te]:new Me([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}}function sx(e){return e.segments.length>0?new Me([],{[te]:e}):e}function ax(e){const n={};for(const i of Object.keys(e.children)){const o=ax(e.children[i]);if(i===te&&0===o.segments.length&&o.hasChildren())for(const[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function Lj(e){if(1===e.numberOfChildren&&e.children[te]){const n=e.children[te];return new Me(e.segments.concat(n.segments),n.children)}return e}(new Me(e.segments,n))}function Or(e){return e instanceof Qo}function lx(e){let n;const r=sx(function t(o){const s={};for(const l of o.children){const c=t(l);s[l.outlet]=c}const a=new Me(o.url,s);return o===e&&(n=a),a}(e.root));return n??r}function cx(e,n,t,i){let r=e;for(;r.parent;)r=r.parent;if(0===n.length)return pm(r,r,r,t,i);const o=function jj(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new dx(!0,0,e);let n=0,t=!1;const i=e.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new dx(t,n,i)}(n);if(o.toRoot())return pm(r,r,new Me([],{}),t,i);const s=function Bj(e,n,t){if(e.isAbsolute)return new Cu(n,!0,0);if(!t)return new Cu(n,!1,NaN);if(null===t.parent)return new Cu(t,!0,0);const i=wu(e.commands[0])?0:1;return function Uj(e,n,t){let i=e,r=n,o=t;for(;o>r;){if(o-=r,i=i.parent,!i)throw new S(4005,!1);r=i.segments.length}return new Cu(i,!1,r-o)}(t,t.segments.length-1+i,e.numberOfDoubleDots)}(o,r,e),a=s.processChildren?Ta(s.segmentGroup,s.index,o.commands):hx(s.segmentGroup,s.index,o.commands);return pm(r,s.segmentGroup,a,t,i)}function wu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ia(e){return"object"==typeof e&&null!=e&&e.outlets}function pm(e,n,t,i,r){let s,o={};i&&Object.entries(i).forEach(([l,c])=>{o[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=e===n?t:ux(e,n,t);const a=sx(ax(s));return new Qo(a,o,r)}function ux(e,n,t){const i={};return Object.entries(e.children).forEach(([r,o])=>{i[r]=o===n?t:ux(o,n,t)}),new Me(e.segments,i)}class dx{constructor(n,t,i){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=i,n&&i.length>0&&wu(i[0]))throw new S(4003,!1);const r=i.find(Ia);if(r&&r!==XD(i))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Cu{constructor(n,t,i){this.segmentGroup=n,this.processChildren=t,this.index=i}}function hx(e,n,t){if(e||(e=new Me([],{})),0===e.segments.length&&e.hasChildren())return Ta(e,n,t);const i=function $j(e,n,t){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r<e.segments.length;){if(i>=t.length)return o;const s=e.segments[r],a=t[i];if(Ia(a))break;const l=`${a}`,c=i<t.length-1?t[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!px(l,c,s))return o;i+=2}else{if(!px(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,n,t),r=t.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){const o=new Me(e.segments.slice(0,i.pathIndex),{});return o.children[te]=new Me(e.segments.slice(i.pathIndex),e.children),Ta(o,0,r)}return i.match&&0===r.length?new Me(e.segments,{}):i.match&&!e.hasChildren()?mm(e,n,t):i.match?Ta(e,0,r):mm(e,n,t)}function Ta(e,n,t){if(0===t.length)return new Me(e.segments,{});{const i=function Hj(e){return Ia(e[0])?e[0].outlets:{[te]:e}}(t),r={};if(Object.keys(i).some(o=>o!==te)&&e.children[te]&&1===e.numberOfChildren&&0===e.children[te].segments.length){const o=Ta(e.children[te],n,t);return new Me(e.segments,o.children)}return Object.entries(i).forEach(([o,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=hx(e.children[o],n,s))}),Object.entries(e.children).forEach(([o,s])=>{void 0===i[o]&&(r[o]=s)}),new Me(e.segments,r)}}function mm(e,n,t){const i=e.segments.slice(0,n);let r=0;for(;r<t.length;){const o=t[r];if(Ia(o)){const l=zj(o.outlets);return new Me(i,l)}if(0===r&&wu(t[0])){i.push(new Ea(e.segments[n].path,fx(t[0]))),r++;continue}const s=Ia(o)?o.outlets[te]:`${o}`,a=r<t.length-1?t[r+1]:null;s&&a&&wu(a)?(i.push(new Ea(s,fx(a))),r+=2):(i.push(new Ea(s,{})),r++)}return new Me(i,{})}function zj(e){const n={};return Object.entries(e).forEach(([t,i])=>{"string"==typeof i&&(i=[i]),null!==i&&(n[t]=mm(new Me([],{}),0,i))}),n}function fx(e){const n={};return Object.entries(e).forEach(([t,i])=>n[t]=`${i}`),n}function px(e,n,t){return e==t.path&&ci(n,t.parameters)}const Aa="imperative";class ui{constructor(n,t){this.id=n,this.url=t}}class Du extends ui{constructor(n,t,i="imperative",r=null){super(n,t),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class di extends ui{constructor(n,t,i){super(n,t),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ka extends ui{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Jo extends ui{constructor(n,t,i,r){super(n,t),this.reason=i,this.code=r,this.type=16}}class xu extends ui{constructor(n,t,i,r){super(n,t),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class mx extends ui{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class qj extends ui{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gj extends ui{constructor(n,t,i,r,o){super(n,t),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Wj extends ui{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yj extends ui{constructor(n,t,i,r){super(n,t),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zj{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Kj{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xj{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qj{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jj{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class e4{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class gx{constructor(n,t,i){this.routerEvent=n,this.position=t,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class gm{}class _m{constructor(n){this.url=n}}class t4{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ra,this.attachRef=null}}let Ra=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,i){const r=this.getOrCreateContext(t);r.outlet=i,this.contexts.set(t,r)}onChildOutletDestroyed(t){const i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new t4,this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class _x{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=vm(n,this._root);return t?t.children.map(i=>i.value):[]}firstChild(n){const t=vm(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=bm(n,this._root);return t.length<2?[]:t[t.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return bm(n,this._root).map(t=>t.value)}}function vm(e,n){if(e===n.value)return n;for(const t of n.children){const i=vm(e,t);if(i)return i}return null}function bm(e,n){if(e===n.value)return[n];for(const t of n.children){const i=bm(e,t);if(i.length)return i.unshift(n),i}return[]}class Ri{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function es(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class vx extends _x{constructor(n,t){super(n),this.snapshot=t,ym(this,n)}toString(){return this.snapshot.toString()}}function bx(e,n){const t=function n4(e,n){const s=new Eu([],{},{},"",{},te,n,null,{});return new wx("",new Ri(s,[]))}(0,n),i=new wt([new Ea("",{})]),r=new wt({}),o=new wt({}),s=new wt({}),a=new wt(""),l=new bt(i,r,s,a,o,te,n,t.root);return l.snapshot=t.root,new vx(new Ri(l,[]),t)}class bt{constructor(n,t,i,r,o,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=i,this.fragmentSubject=r,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(de(c=>c[xa]))??B(void 0),this.url=n,this.params=t,this.queryParams=i,this.fragment=r,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._paramMap=this.params.pipe(de(n=>Xo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(de(n=>Xo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function yx(e,n="emptyOnly"){const t=e.pathFromRoot;let i=0;if("always"!==n)for(i=t.length-1;i>=1;){const r=t[i],o=t[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function i4(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(i))}class Eu{get title(){return this.data?.[xa]}constructor(n,t,i,r,o,s,a,l,c){this.url=n,this.params=t,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Xo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Xo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class wx extends _x{constructor(n,t){super(t),this.url=n,ym(this,t)}toString(){return Cx(this._root)}}function ym(e,n){n.value._routerState=e,n.children.forEach(t=>ym(e,t))}function Cx(e){const n=e.children.length>0?` { ${e.children.map(Cx).join(", ")} } `:"";return`${e.value}${n}`}function wm(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,ci(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),ci(n.params,t.params)||e.paramsSubject.next(t.params),function bj(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;++t)if(!ci(e[t],n[t]))return!1;return!0}(n.url,t.url)||e.urlSubject.next(t.url),ci(n.data,t.data)||e.dataSubject.next(t.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Cm(e,n){const t=ci(e.params,n.params)&&function Dj(e,n){return Fr(e,n)&&e.every((t,i)=>ci(t.parameters,n[i].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Cm(e.parent,n.parent))}let Dm=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=te,this.activateEvents=new _e,this.deactivateEvents=new _e,this.attachEvents=new _e,this.detachEvents=new _e,this.parentContexts=O(Ra),this.location=O(Ln),this.changeDetector=O(Vc),this.environmentInjector=O(sn),this.inputBinder=O(Mu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:i,previousValue:r}=t.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),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;const 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 S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=t;const r=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new r4(t,a,r.injector);this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275dir=z({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[tn]})}}return e})();class r4{constructor(n,t,i){this.route=n,this.childContexts=t,this.parent=i}get(n,t){return n===bt?this.route:n===Ra?this.childContexts:this.parent.get(n,t)}}const Mu=new R("");let Dx=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:i}=t,r=Zo([i.queryParams,i.params,i.data]).pipe(An(([o,s,a],l)=>(a={...o,...s,...a},0===l?B(a):Promise.resolve(a)))).subscribe(o=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||null===i.component)return void this.unsubscribeFromRouteData(t);const s=function $N(e){const n=he(e);if(!n)return null;const t=new Ys(n);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 n.standalone},get isSignal(){return n.signals}}}(i.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,o[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,r)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();function Pa(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const i=t.value;i._futureSnapshot=n.value;const r=function s4(e,n,t){return n.children.map(i=>{for(const r of t.children)if(e.shouldReuseRoute(i.value,r.value.snapshot))return Pa(e,i,r);return Pa(e,i)})}(e,n,t);return new Ri(i,r)}{if(e.shouldAttach(n.value)){const o=e.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Pa(e,a)),s}}const i=function a4(e){return new bt(new wt(e.url),new wt(e.params),new wt(e.queryParams),new wt(e.fragment),new wt(e.data),e.outlet,e.component,e)}(n.value),r=n.children.map(o=>Pa(e,o));return new Ri(i,r)}}const xm="ngNavigationCancelingError";function xx(e,n){const{redirectTo:t,navigationBehaviorOptions:i}=Or(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Ex(!1,0,n);return r.url=t,r.navigationBehaviorOptions=i,r}function Ex(e,n,t){const i=new Error("NavigationCancelingError: "+(e||""));return i[xm]=!0,i.cancellationCode=n,t&&(i.url=t),i}function Mx(e){return e&&e[xm]}let Sx=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["ng-component"]],standalone:!0,features:[Cw],decls:1,vars:0,template:function(i,r){1&i&&C(0,"router-outlet")},dependencies:[Dm],encapsulation:2})}}return e})();function Em(e){const n=e.children&&e.children.map(Em),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==te&&(t.component=Sx),t}function $n(e){return e.outlet||te}function Fa(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class m4{constructor(n,t,i,r,o){this.routeReuseStrategy=n,this.futureState=t,this.currState=i,this.forwardEvent=r,this.inputBindingEnabled=o}activate(n){const t=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,i,n),wm(this.futureState.root),this.activateChildRoutes(t,i,n)}deactivateChildRoutes(n,t,i){const r=es(t);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Object.values(r).forEach(o=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,i);else o&&this.deactivateRouteAndItsChildren(t,i)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=es(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const i=t.getContext(n.value.outlet),r=i&&n.value.component?i.children:t,o=es(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null)}activateChildRoutes(n,t,i){const r=es(t);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new e4(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Qj(n.value.snapshot))}activateRoutes(n,t,i){const r=n.value,o=t?t.value:null;if(wm(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.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),wm(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Fa(r.snapshot);s.attachRef=null,s.route=r,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class Ix{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Su{constructor(n,t){this.component=n,this.route=t}}function g4(e,n,t){const i=e._root;return Oa(i,n?n._root:null,t,[i.value])}function ts(e,n){const t=Symbol(),i=n.get(e,t);return i===t?"function"!=typeof e||function tI(e){return null!==dl(e)}(e)?n.get(e):e:i}function Oa(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=es(n);return e.children.forEach(s=>{(function v4(e,n,t,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function b4(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!Fr(e.url,n.url);case"pathParamsOrQueryParamsChange":return!Fr(e.url,n.url)||!ci(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cm(e,n)||!ci(e.queryParams,n.queryParams);default:return!Cm(e,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Ix(i)):(o.data=s.data,o._resolvedData=s._resolvedData),Oa(e,n,o.component?a?a.children:null:t,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Su(a.outlet.component,s))}else s&&Na(n,a,r),r.canActivateChecks.push(new Ix(i)),Oa(e,null,o.component?a?a.children:null:t,i,r)})(s,o[s.value.outlet],t,i.concat([s.value]),r),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Na(a,t.getContext(s),r)),r}function Na(e,n,t){const i=es(e),r=e.value;Object.entries(i).forEach(([o,s])=>{Na(s,r.component?n?n.children.getContext(o):null:n,t)}),t.canDeactivateChecks.push(new Su(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function La(e){return"function"==typeof e}function Tx(e){return e instanceof pu||"EmptyError"===e?.name}const Iu=Symbol("INITIAL_VALUE");function ns(){return An(e=>Zo(e.map(n=>n.pipe(ki(1),YD(Iu)))).pipe(de(n=>{for(const t of n)if(!0!==t){if(t===Iu)return Iu;if(!1===t||t instanceof Qo)return t}return!0}),qt(n=>n!==Iu),ki(1)))}function Ax(e){return function eS(...e){return Vg(e)}(lt(n=>{if(Or(n))throw xx(0,n)}),de(n=>!0===n))}class Tu{constructor(n){this.segmentGroup=n||null}}class kx{constructor(n){this.urlTree=n}}function is(e){return Qt(new Tu(e))}function Rx(e){return Qt(new kx(e))}class j4{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new S(4002,!1)}lineralizeSegments(n,t){let i=[],r=t.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return B(i);if(r.numberOfChildren>1||!r.children[te])return Qt(new S(4e3,!1));r=r.children[te]}}applyRedirectCommands(n,t,i){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,i)}applyRedirectCreateUrlTree(n,t,i,r){const o=this.createSegmentGroup(n,t.root,i,r);return new Qo(o,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const i={};return Object.entries(n).forEach(([r,o])=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);i[r]=t[a]}else i[r]=o}),i}createSegmentGroup(n,t,i,r){const o=this.createSegments(n,t.segments,i,r);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,i,r)}),new Me(o,s)}createSegments(n,t,i,r){return t.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,t,i){const r=i[t.path.substring(1)];if(!r)throw new S(4001,!1);return r}findOrReturn(n,t){let i=0;for(const r of t){if(r.path===n.path)return t.splice(i),r;i++}return n}}const Mm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function B4(e,n,t,i,r){const o=Sm(e,n,t);return o.matched?(i=function c4(e,n){return e.providers&&!e._injector&&(e._injector=Nf(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,i),function N4(e,n,t,i){const r=n.canMatch;return r&&0!==r.length?B(r.map(s=>{const a=ts(s,e);return nr(function E4(e){return e&&La(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(ns(),Ax()):B(!0)}(i,n,t).pipe(de(s=>!0===s?o:{...Mm}))):B(o)}function Sm(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Mm}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const r=(n.matcher||vj)(t,e,n);if(!r)return{...Mm};const o={};Object.entries(r.posParams??{}).forEach(([a,l])=>{o[a]=l.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:t.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function Px(e,n,t,i){return t.length>0&&function $4(e,n,t){return t.some(i=>Au(e,n,i)&&$n(i)!==te)}(e,t,i)?{segmentGroup:new Me(n,H4(i,new Me(t,e.children))),slicedSegments:[]}:0===t.length&&function z4(e,n,t){return t.some(i=>Au(e,n,i))}(e,t,i)?{segmentGroup:new Me(e.segments,U4(e,0,t,i,e.children)),slicedSegments:t}:{segmentGroup:new Me(e.segments,e.children),slicedSegments:t}}function U4(e,n,t,i,r){const o={};for(const s of i)if(Au(e,t,s)&&!r[$n(s)]){const a=new Me([],{});o[$n(s)]=a}return{...r,...o}}function H4(e,n){const t={};t[te]=n;for(const i of e)if(""===i.path&&$n(i)!==te){const r=new Me([],{});t[$n(i)]=r}return t}function Au(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class Y4{constructor(n,t,i,r,o,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=i,this.config=r,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new j4(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,!1)}recognize(){const n=Px(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,te).pipe(It(t=>{if(t instanceof kx)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Tu?this.noMatchError(t):t}),de(t=>{const i=new Eu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},te,this.rootComponentType,null,{}),r=new Ri(i,t),o=new wx("",r),s=function Vj(e,n,t=null,i=null){return cx(lx(e),n,t,i)}(i,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root),{state:o,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,te).pipe(It(i=>{throw i instanceof Tu?this.noMatchError(i):i}))}inheritParamsAndData(n){const t=n.value,i=yx(t,this.paramsInheritanceStrategy);t.params=Object.freeze(i.params),t.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,t,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,t,i):this.processSegment(n,t,i,i.segments,r,!0)}processChildren(n,t,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return it(r).pipe(Ko(o=>{const s=i.children[o],a=function f4(e,n){const t=e.filter(i=>$n(i)===n);return t.push(...e.filter(i=>$n(i)!==n)),t}(t,o);return this.processSegmentGroup(n,a,s,o)}),function pj(e,n){return Ze(function fj(e,n,t,i,r){return(o,s)=>{let a=t,l=n,c=0;o.subscribe($e(s,u=>{const f=c++;l=a?e(l,u,f):(a=!0,u),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((o,s)=>(o.push(...s),o)),gu(null),function mj(e,n){const t=arguments.length>=2;return i=>i.pipe(e?qt((r,o)=>e(r,o,i)):Li,cm(1),t?gu(n):ZD(()=>new pu))}(),ut(o=>{if(null===o)return is(i);const s=Fx(o);return function Z4(e){e.sort((n,t)=>n.value.outlet===te?-1:t.value.outlet===te?1:n.value.outlet.localeCompare(t.value.outlet))}(s),B(s)}))}processSegment(n,t,i,r,o,s){return it(t).pipe(Ko(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,i,r,o,s).pipe(It(l=>{if(l instanceof Tu)return B(null);throw l}))),Pr(a=>!!a),It(a=>{if(Tx(a))return function G4(e,n,t){return 0===n.length&&!e.children[t]}(i,r,o)?B([]):is(i);throw a}))}processSegmentAgainstRoute(n,t,i,r,o,s,a){return function q4(e,n,t,i){return!!($n(e)===i||i!==te&&Au(n,t,e))&&("**"===e.path||Sm(n,e,t).matched)}(i,r,o,s)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(n,r,i,o,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,r,t,i,o,s):is(r):is(r)}expandSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,i,r){const o=this.applyRedirects.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Rx(o):this.applyRedirects.lineralizeSegments(i,o).pipe(ut(s=>{const a=new Me(s,{});return this.processSegment(n,t,a,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Sm(t,r,o);if(!a)return is(t);const f=this.applyRedirects.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Rx(f):this.applyRedirects.lineralizeSegments(r,f).pipe(ut(m=>this.processSegment(n,i,t,m.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,i,r,o,s){let a;if("**"===i.path){const l=r.length>0?XD(r).parameters:{};a=B({snapshot:new Eu(r,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ox(i),$n(i),i.component??i._loadedComponent??null,i,Nx(i)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=B4(t,i,r,n).pipe(de(({matched:l,consumedSegments:c,remainingSegments:u,parameters:f})=>l?{snapshot:new Eu(c,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Ox(i),$n(i),i.component??i._loadedComponent??null,i,Nx(i)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(An(l=>null===l?is(t):this.getChildConfig(n=i._injector??n,i,r).pipe(An(({routes:c})=>{const u=i._loadedInjector??n,{snapshot:f,consumedSegments:m,remainingSegments:g}=l,{segmentGroup:b,slicedSegments:y}=Px(t,m,g,c);if(0===y.length&&b.hasChildren())return this.processChildren(u,c,b).pipe(de(I=>null===I?null:[new Ri(f,I)]));if(0===c.length&&0===y.length)return B([new Ri(f,[])]);const x=$n(i)===o;return this.processSegment(u,c,b,y,x?te:o,!0).pipe(de(I=>[new Ri(f,I)]))}))))}getChildConfig(n,t,i){return t.children?B({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?B({routes:t._loadedRoutes,injector:t._loadedInjector}):function O4(e,n,t,i){const r=n.canLoad;return void 0===r||0===r.length?B(!0):B(r.map(s=>{const a=ts(s,e);return nr(function w4(e){return e&&La(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(ns(),Ax())}(n,t,i).pipe(ut(r=>r?this.configLoader.loadChildren(n,t).pipe(lt(o=>{t._loadedRoutes=o.routes,t._loadedInjector=o.injector})):function V4(e){return Qt(Ex(!1,3))}())):B({routes:[],injector:n})}}function K4(e){const n=e.value.routeConfig;return n&&""===n.path}function Fx(e){const n=[],t=new Set;for(const i of e){if(!K4(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),t.add(r)):n.push(i)}for(const i of t){const r=Fx(i.children);n.push(new Ri(i.value,r))}return n.filter(i=>!t.has(i))}function Ox(e){return e.data||{}}function Nx(e){return e.resolve||{}}function Lx(e){return"string"==typeof e.title||null===e.title}function Im(e){return An(n=>{const t=e(n);return t?it(t).pipe(de(()=>n)):B(n)})}const rs=new R("ROUTES");let Tm=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=O(p1)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return B(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const i=nr(t.loadComponent()).pipe(de(Vx),lt(o=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=o}),Da(()=>{this.componentLoaders.delete(t)})),r=new WD(i,()=>new je).pipe(lm());return this.componentLoaders.set(t,r),r}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return B({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=function iB(e,n,t,i){return nr(e.loadChildren()).pipe(de(Vx),ut(r=>r instanceof yw||Array.isArray(r)?B(r):it(n.compileModuleAsync(r))),de(r=>{i&&i(e);let o,s,a=!1;return Array.isArray(r)?(s=r,!0):(o=r.create(t).injector,s=o.get(rs,[],{optional:!0,self:!0}).flat()),{routes:s.map(Em),injector:o}}))}(i,this.compiler,t,this.onLoadEndListener).pipe(Da(()=>{this.childrenLoaders.delete(i)})),s=new WD(o,()=>new je).pipe(lm());return this.childrenLoaders.set(i,s),s}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Vx(e){return function rB(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let ku=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new je,this.transitionAbortSubject=new je,this.configLoader=O(Tm),this.environmentInjector=O(sn),this.urlSerializer=O(Ma),this.rootContexts=O(Ra),this.inputBindingEnabled=null!==O(Mu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>B(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new Kj(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new Zj(r))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:i})}setupNavigations(t,i,r){return this.transitions=new wt({id:0,currentUrlTree:i,currentRawUrl:i,currentBrowserUrl:i,extractedUrl:t.urlHandlingStrategy.extract(i),urlAfterRedirects:t.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Aa,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qt(o=>0!==o.id),de(o=>({...o,extractedUrl:t.urlHandlingStrategy.extract(o.rawUrl)})),An(o=>{this.currentTransition=o;let s=!1,a=!1;return B(o).pipe(lt(l=>{this.currentNavigation={id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,trigger:l.source,extras:l.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),An(l=>{const c=l.currentBrowserUrl.toString(),u=!t.navigated||l.extractedUrl.toString()!==c||c!==l.currentUrlTree.toString();if(!u&&"reload"!==(l.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const m="";return this.events.next(new Jo(l.id,this.urlSerializer.serialize(l.rawUrl),m,0)),l.resolve(null),Wn}if(t.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return B(l).pipe(An(m=>{const g=this.transitions?.getValue();return this.events.next(new Du(m.id,this.urlSerializer.serialize(m.extractedUrl),m.source,m.restoredState)),g!==this.transitions?.getValue()?Wn:Promise.resolve(m)}),function X4(e,n,t,i,r,o){return ut(s=>function W4(e,n,t,i,r,o,s="emptyOnly"){return new Y4(e,n,t,i,r,s,o).recognize()}(e,n,t,i,s.extractedUrl,r,o).pipe(de(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),lt(m=>{o.targetSnapshot=m.targetSnapshot,o.urlAfterRedirects=m.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:m.urlAfterRedirects};const g=new mx(m.id,this.urlSerializer.serialize(m.extractedUrl),this.urlSerializer.serialize(m.urlAfterRedirects),m.targetSnapshot);this.events.next(g)}));if(u&&t.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){const{id:m,extractedUrl:g,source:b,restoredState:y,extras:x}=l,I=new Du(m,this.urlSerializer.serialize(g),b,y);this.events.next(I);const E=bx(0,this.rootComponentType).snapshot;return this.currentTransition=o={...l,targetSnapshot:E,urlAfterRedirects:g,extras:{...x,skipLocationChange:!1,replaceUrl:!1}},B(o)}{const m="";return this.events.next(new Jo(l.id,this.urlSerializer.serialize(l.extractedUrl),m,1)),l.resolve(null),Wn}}),lt(l=>{const c=new qj(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}),de(l=>(this.currentTransition=o={...l,guards:g4(l.targetSnapshot,l.currentSnapshot,this.rootContexts)},o)),function S4(e,n){return ut(t=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=t;return 0===s.length&&0===o.length?B({...t,guardsResult:!0}):function I4(e,n,t,i){return it(e).pipe(ut(r=>function F4(e,n,t,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?B(o.map(a=>{const l=Fa(n)??r,c=ts(a,l);return nr(function x4(e){return e&&La(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,i):l.runInContext(()=>c(e,n,t,i))).pipe(Pr())})).pipe(ns()):B(!0)}(r.component,r.route,t,n,i)),Pr(r=>!0!==r,!0))}(s,i,r,e).pipe(ut(a=>a&&function y4(e){return"boolean"==typeof e}(a)?function T4(e,n,t,i){return it(n).pipe(Ko(r=>mu(function k4(e,n){return null!==e&&n&&n(new Xj(e)),B(!0)}(r.route.parent,i),function A4(e,n){return null!==e&&n&&n(new Jj(e)),B(!0)}(r.route,i),function P4(e,n,t){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function _4(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>GD(()=>B(s.guards.map(l=>{const c=Fa(s.node)??t,u=ts(l,c);return nr(function D4(e){return e&&La(e.canActivateChild)}(u)?u.canActivateChild(i,e):c.runInContext(()=>u(i,e))).pipe(Pr())})).pipe(ns())));return B(o).pipe(ns())}(e,r.path,t),function R4(e,n,t){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return B(!0);const r=i.map(o=>GD(()=>{const s=Fa(n)??t,a=ts(o,s);return nr(function C4(e){return e&&La(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Pr())}));return B(r).pipe(ns())}(e,r.route,t))),Pr(r=>!0!==r,!0))}(i,o,e,n):B(a)),de(a=>({...t,guardsResult:a})))})}(this.environmentInjector,l=>this.events.next(l)),lt(l=>{if(o.guardsResult=l.guardsResult,Or(l.guardsResult))throw xx(0,l.guardsResult);const c=new Gj(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);this.events.next(c)}),qt(l=>!!l.guardsResult||(this.cancelNavigationTransition(l,"",3),!1)),Im(l=>{if(l.guards.canActivateChecks.length)return B(l).pipe(lt(c=>{const u=new Wj(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),An(c=>{let u=!1;return B(c).pipe(function Q4(e,n){return ut(t=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=t;if(!r.length)return B(t);let o=0;return it(r).pipe(Ko(s=>function J4(e,n,t,i){const r=e.routeConfig,o=e._resolve;return void 0!==r?.title&&!Lx(r)&&(o[xa]=r.title),function eB(e,n,t,i){const r=function tB(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===r.length)return B({});const o={};return it(r).pipe(ut(s=>function nB(e,n,t,i){const r=Fa(n)??i,o=ts(e,r);return nr(o.resolve?o.resolve(n,t):r.runInContext(()=>o(n,t)))}(e[s],n,t,i).pipe(Pr(),lt(a=>{o[s]=a}))),cm(1),function gj(e){return de(()=>e)}(o),It(s=>Tx(s)?Wn:Qt(s)))}(o,e,n,i).pipe(de(s=>(e._resolvedData=s,e.data=yx(e,t).resolve,r&&Lx(r)&&(e.data[xa]=r.title),null)))}(s.route,i,e,n)),lt(()=>o++),cm(1),ut(s=>o===r.length?B(t):Wn))})}(t.paramsInheritanceStrategy,this.environmentInjector),lt({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(c,"",2)}}))}),lt(c=>{const u=new Yj(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}))}),Im(l=>{const c=u=>{const f=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(u.routeConfig).pipe(lt(m=>{u.component=m}),de(()=>{})));for(const m of u.children)f.push(...c(m));return f};return Zo(c(l.targetSnapshot.root)).pipe(gu(),ki(1))}),Im(()=>this.afterPreactivation()),de(l=>{const c=function o4(e,n,t){const i=Pa(e,n._root,t?t._root:void 0);return new vx(i,n)}(t.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=o={...l,targetRouterState:c},o}),lt(()=>{this.events.next(new gm)}),((e,n,t,i)=>de(r=>(new m4(n,r.targetRouterState,r.currentRouterState,t,i).activate(e),r)))(this.rootContexts,t.routeReuseStrategy,l=>this.events.next(l),this.inputBindingEnabled),ki(1),lt({next:l=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new di(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),t.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0)},complete:()=>{s=!0}}),um(this.transitionAbortSubject.pipe(lt(l=>{throw l}))),Da(()=>{s||a||this.cancelNavigationTransition(o,"",1),this.currentNavigation?.id===o.id&&(this.currentNavigation=null)}),It(l=>{if(a=!0,Mx(l))this.events.next(new ka(o.id,this.urlSerializer.serialize(o.extractedUrl),l.message,l.cancellationCode)),function l4(e){return Mx(e)&&Or(e.url)}(l)?this.events.next(new _m(l.url)):o.resolve(!1);else{this.events.next(new xu(o.id,this.urlSerializer.serialize(o.extractedUrl),l,o.targetSnapshot??void 0));try{o.resolve(t.errorHandler(l))}catch(c){o.reject(c)}}return Wn}))}))}cancelNavigationTransition(t,i,r){const o=new ka(t.id,this.urlSerializer.serialize(t.extractedUrl),i,r);this.events.next(o),t.resolve(!1)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function jx(e){return e!==Aa}let Bx=(()=>{class e{buildTitle(t){let i,r=t.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===te);return i}getResolvedTitleForRoute(t){return t.data[xa]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return O(oB)},providedIn:"root"})}}return e})(),oB=(()=>{class e extends Bx{constructor(t){super(),this.title=t}updateTitle(t){const i=this.buildTitle(t);void 0!==i&&this.title.setTitle(i)}static{this.\u0275fac=function(i){return new(i||e)(M(jp))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),sB=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return O(lB)},providedIn:"root"})}}return e})();class aB{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let lB=(()=>{class e extends aB{static{this.\u0275fac=function(){let t;return function(r){return(t||(t=gt(e)))(r||e)}}()}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Ru=new R("",{providedIn:"root",factory:()=>({})});let cB=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:function(){return O(uB)},providedIn:"root"})}}return e})(),uB=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Va=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Va||{});function Ux(e,n){e.events.pipe(qt(t=>t instanceof di||t instanceof ka||t instanceof xu||t instanceof Jo),de(t=>t instanceof di||t instanceof Jo?Va.COMPLETE:t instanceof ka&&(0===t.code||1===t.code)?Va.REDIRECTING:Va.FAILED),qt(t=>t!==Va.REDIRECTING),ki(1)).subscribe(()=>{n()})}function dB(e){throw e}function hB(e,n,t){return n.parse("/")}const fB={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},pB={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let qe=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=O(f1),this.isNgZoneEnabled=!1,this._events=new je,this.options=O(Ru,{optional:!0})||{},this.pendingTasks=O(Fc),this.errorHandler=this.options.errorHandler||dB,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||hB,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=O(cB),this.routeReuseStrategy=O(sB),this.titleStrategy=O(Bx),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=O(rs,{optional:!0})?.flat()??[],this.navigationTransitions=O(ku),this.urlSerializer=O(Ma),this.location=O($c),this.componentInputBindingEnabled=!!O(Mu,{optional:!0}),this.eventsSubscription=new nt,this.isNgZoneEnabled=O(le)instanceof le&&le.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Qo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=bx(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(i=>{try{const{currentTransition:r}=this.navigationTransitions;if(null===r)return void(Hx(i)&&this._events.next(i));if(i instanceof Du)jx(r.source)&&(this.browserUrlTree=r.extractedUrl);else if(i instanceof Jo)this.rawUrlTree=r.rawUrl;else if(i instanceof mx){if("eager"===this.urlUpdateStrategy){if(!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl);this.setBrowserUrl(o,r)}this.browserUrlTree=r.urlAfterRedirects}}else if(i instanceof gm)this.currentUrlTree=r.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(r.urlAfterRedirects,r.rawUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r),this.browserUrlTree=r.urlAfterRedirects);else if(i instanceof ka)0!==i.code&&1!==i.code&&(this.navigated=!0),(3===i.code||2===i.code)&&this.restoreHistory(r);else if(i instanceof _m){const o=this.urlHandlingStrategy.merge(i.url,r.currentRawUrl),s={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||jx(r.source)};this.scheduleNavigation(o,Aa,null,s,{resolve:r.resolve,reject:r.reject,promise:r.promise})}i instanceof xu&&this.restoreHistory(r,!0),i instanceof di&&(this.navigated=!0),Hx(i)&&this._events.next(i)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Aa,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const i="popstate"===t.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,i,t.state)},0)}))}navigateToSyncWithBrowser(t,i,r){const o={replaceUrl:!0},s=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(o.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,i,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Em),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:s;let f,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...o};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}null!==u&&(u=this.removeEmptyProps(u));try{f=lx(r?r.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),f=this.currentUrlTree.root}return cx(f,t,u,c??null)}navigateByUrl(t,i={skipLocationChange:!1}){const r=Or(t)?t:this.parseUrl(t),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,Aa,null,i)}navigate(t,i={skipLocationChange:!1}){return function mB(e){for(let n=0;n<e.length;n++)if(null==e[n])throw new S(4008,!1)}(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let i;try{i=this.urlSerializer.parse(t)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,t)}return i}isActive(t,i){let r;if(r=!0===i?{...fB}:!1===i?{...pB}:i,Or(t))return JD(this.currentUrlTree,t,r);const o=this.parseUrl(t);return JD(this.currentUrlTree,o,r)}removeEmptyProps(t){return Object.keys(t).reduce((i,r)=>{const o=t[r];return null!=o&&(i[r]=o),i},{})}scheduleNavigation(t,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((f,m)=>{a=f,l=m});const u=this.pendingTasks.add();return Ux(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(f=>Promise.reject(f))}setBrowserUrl(t,i){const r=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl){const s={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId)};this.location.replaceState(r,"",s)}else{const o={...i.extras.state,...this.generateNgRouterState(i.id,this.browserPageId+1)};this.location.go(r,"",o)}}restoreHistory(t,i=!1){if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-this.browserPageId;0!==o?this.location.historyGo(o):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Hx(e){return!(e instanceof gm||e instanceof _m)}let Tt=(()=>{class e{constructor(t,i,r,o,s,a){this.router=t,this.route=i,this.tabIndexAttribute=r,this.renderer=o,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new je,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof di&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,i,r,o,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||i||r||o||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function Mb(e,n,t){return function uk(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Eb:wi}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,i){const r=this.renderer,o=this.el.nativeElement;null!==i?r.setAttribute(o,t,i):r.removeAttribute(o,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(i){return new(i||e)(D(qe),D(bt),function Rl(e){return function ST(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const o=t[r];if(b_(o))break;if(0===o)r+=2;else if("number"==typeof o)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(o===n)return t[r+1];r+=2}}}return null}(mt(),e)}("tabindex"),D(yn),D(st),D(Er))}}static{this.\u0275dir=z({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,r){1&i&&k("click",function(s){return r.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&i&&Fn("target",r.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",Go],skipLocationChange:["skipLocationChange","skipLocationChange",Go],replaceUrl:["replaceUrl","replaceUrl",Go],routerLink:"routerLink"},standalone:!0,features:[Ly,tn]})}}return e})(),$x=(()=>{class e{get isActive(){return this._isActive}constructor(t,i,r,o,s){this.router=t,this.element=i,this.renderer=r,this.cdr=o,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new _e,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof di&&this.update()})}ngAfterContentInit(){B(this.links.changes,B(null)).pipe(Qr()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=it(t).pipe(Qr()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(t){const i=Array.isArray(t)?t:t.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(i=>{t?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const i=function gB(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&t.isActive(r.urlTree,i)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(i){return new(i||e)(D(qe),D(st),D(yn),D(Vc),D(Tt,8))}}static{this.\u0275dir=z({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,r,o){if(1&i&&function Gw(e,n,t,i){const r=fe();if(r.firstCreatePass){const o=mt();Yw(r,new zw(n,t,i),o.index),function mO(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(r,e),2==(2&t)&&(r.staticContentQueries=!0)}Ww(r,A(),t)}(o,Tt,5),2&i){let s;xn(s=En())&&(r.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[tn]})}}return e})();class zx{}let _B=(()=>{class e{constructor(t,i,r,o,s){this.router=t,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qt(t=>t instanceof di),Ko(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=Nf(o.providers,t,`Route: ${o.path}`));const s=o._injector??t,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent)&&r.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return it(r).pipe(Qr())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(t,i):B(null);const o=r.pipe(ut(s=>null===s?B(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return i.loadComponent&&!i._loadedComponent?it([o,this.loader.loadComponent(i)]).pipe(Qr()):o})}static{this.\u0275fac=function(i){return new(i||e)(M(qe),M(p1),M(sn),M(zx),M(Tm))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Am=new R("");let qx=(()=>{class e{constructor(t,i,r,o,s={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=r,this.zone=o,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Du?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof di?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Jo&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof gx&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new gx(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(i){!function uy(){throw new Error("invalid")}()}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();function Pi(e,n){return{\u0275kind:e,\u0275providers:n}}function Wx(){const e=O(xt);return n=>{const t=e.get(Zi);if(n!==t.components[0])return;const i=e.get(qe),r=e.get(Yx);1===e.get(km)&&i.initialNavigation(),e.get(Zx,null,oe.Optional)?.setUpPreloading(),e.get(Am,null,oe.Optional)?.init(),i.resetRootComponentType(t.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}const Yx=new R("",{factory:()=>new je}),km=new R("",{providedIn:"root",factory:()=>1}),Zx=new R("");function wB(e){return Pi(0,[{provide:Zx,useExisting:_B},{provide:zx,useExisting:e}])}const Kx=new R("ROUTER_FORROOT_GUARD"),DB=[$c,{provide:Ma,useClass:dm},qe,Ra,{provide:bt,useFactory:function Gx(e){return e.routerState.root},deps:[qe]},Tm,[]];function xB(){return new w1("Router",qe)}let Xx=(()=>{class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[DB,[],{provide:rs,multi:!0,useValue:t},{provide:Kx,useFactory:IB,deps:[[qe,new Ol,new Nl]]},{provide:Ru,useValue:i||{}},i?.useHash?{provide:Er,useClass:YN}:{provide:Er,useClass:Q1},{provide:Am,useFactory:()=>{const e=O(d3),n=O(le),t=O(Ru),i=O(ku),r=O(Ma);return t.scrollOffset&&e.setOffset(t.scrollOffset),new qx(r,i,e,n,t)}},i?.preloadingStrategy?wB(i.preloadingStrategy).\u0275providers:[],{provide:w1,multi:!0,useFactory:xB},i?.initialNavigation?TB(i):[],i?.bindToComponentInputs?Pi(8,[Dx,{provide:Mu,useExisting:Dx}]).\u0275providers:[],[{provide:Qx,useFactory:Wx},{provide:ip,multi:!0,useExisting:Qx}]]}}static forChild(t){return{ngModule:e,providers:[{provide:rs,multi:!0,useValue:t}]}}static{this.\u0275fac=function(i){return new(i||e)(M(Kx,8))}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})();function IB(e){return"guarded"}function TB(e){return["disabled"===e.initialNavigation?Pi(3,[{provide:Zf,multi:!0,useFactory:()=>{const n=O(qe);return()=>{n.setUpLocationChangeListener()}}},{provide:km,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Pi(2,[{provide:km,useValue:0},{provide:Zf,multi:!0,deps:[xt],useFactory:n=>{const t=n.get(GN,Promise.resolve());return()=>t.then(()=>new Promise(i=>{const r=n.get(qe),o=n.get(Yx);Ux(r,()=>{i(!0)}),n.get(ku).afterPreactivation=()=>(i(!0),o.closed?B(void 0):o),r.initialNavigation()}))}}]).\u0275providers:[]]}const Qx=new R("");class Pu{}class Fu{}class un{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const i=t.indexOf(":");if(i>0){const r=t.slice(0,i),o=r.toLowerCase(),s=t.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,i)=>{this.setHeaderEntries(i,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,i])=>{this.setHeaderEntries(t,i)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof un?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new un;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof un?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,t);const r=("a"===n.op?this.headers.get(t):void 0)||[];r.push(...i),this.headers.set(t,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const i=(Array.isArray(t)?t:[t]).map(o=>o.toString()),r=n.toLowerCase();this.headers.set(r,i),this.maybeSetNormalizedName(n,r)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class kB{encodeKey(n){return Jx(n)}encodeValue(n){return Jx(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const PB=/%(\d[a-f0-9])/gi,FB={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Jx(e){return encodeURIComponent(e).replace(PB,(n,t)=>FB[t]??n)}function Ou(e){return`${e}`}class ir{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new kB,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function RB(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const i=n.fromObject[t],r=Array.isArray(i)?i.map(Ou):[Ou(i)];this.map.set(t,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{t.push({param:i,value:o,op:"a"})}):t.push({param:i,value:r,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(i=>t+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new ir({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Ou(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Ou(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class OB{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function eE(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function tE(e){return typeof Blob<"u"&&e instanceof Blob}function nE(e){return typeof FormData<"u"&&e instanceof FormData}class ja{constructor(n,t,i,r){let o;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function NB(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new un),this.context||(this.context=new OB),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":a<t.length-1?"&":"")+s}}else this.params=new ir,this.urlWithParams=t}serializeBody(){return null===this.body?null:eE(this.body)||tE(this.body)||nE(this.body)||function LB(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof ir?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||nE(this.body)?null:tE(this.body)?this.body.type||null:eE(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ir?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const t=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let l=n.headers||this.headers,c=n.params||this.params;const u=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((f,m)=>f.set(m,n.setHeaders[m]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((f,m)=>f.set(m,n.setParams[m]),c)),new ja(t,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var Nr=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}(Nr||{});class Rm{constructor(n,t=200,i="OK"){this.headers=n.headers||new un,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Pm extends Rm{constructor(n={}){super(n),this.type=Nr.ResponseHeader}clone(n={}){return new Pm({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Lr extends Rm{constructor(n={}){super(n),this.type=Nr.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Lr({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Nu extends Rm{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Fm(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Ba=(()=>{class e{constructor(t){this.handler=t}request(t,i,r={}){let o;if(t instanceof ja)o=t;else{let l,c;l=r.headers instanceof un?r.headers:new un(r.headers),r.params&&(c=r.params instanceof ir?r.params:new ir({fromObject:r.params})),o=new ja(t,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=B(o).pipe(Ko(l=>this.handler.handle(l)));if(t instanceof ja||"events"===r.observe)return s;const a=s.pipe(qt(l=>l instanceof Lr));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(de(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(de(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(de(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(de(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:(new ir).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,r={}){return this.request("PATCH",t,Fm(r,i))}post(t,i,r={}){return this.request("POST",t,Fm(r,i))}put(t,i,r={}){return this.request("PUT",t,Fm(r,i))}static{this.\u0275fac=function(i){return new(i||e)(M(Pu))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();function oE(e,n){return n(e)}function jB(e,n){return(t,i)=>n.intercept(t,{handle:r=>e(r,i)})}const UB=new R(""),Ua=new R(""),sE=new R("");function HB(){let e=null;return(n,t)=>{null===e&&(e=(O(UB,{optional:!0})??[]).reduceRight(jB,oE));const i=O(Fc),r=i.add();return e(n,t).pipe(Da(()=>i.remove(r)))}}let Om,aE=(()=>{class e extends Pu{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null,this.pendingTasks=O(Fc)}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Ua),...this.injector.get(sE,[])]));this.chain=r.reduceRight((o,s)=>function BB(e,n,t){return(i,r)=>t.runInContext(()=>n(i,o=>e(o,r)))}(o,s,this.injector),oE)}const i=this.pendingTasks.add();return this.chain(t,r=>this.backend.handle(r)).pipe(Da(()=>this.pendingTasks.remove(i)))}static{this.\u0275fac=function(i){return new(i||e)(M(Fu),M(sn))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})(),$B=0;class lE{}function YB(){return"object"==typeof window?window:{}}let cE=(()=>{class e{constructor(t,i){this.callbackMap=t,this.document=i,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+$B++}handle(t){if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");if(t.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new Pe(i=>{const r=this.nextCallback(),o=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${r}$1`),s=this.document.createElement("script");s.src=o;let a=null,l=!1;this.callbackMap[r]=m=>{delete this.callbackMap[r],a=m,l=!0};const c=()=>{s.parentNode&&s.parentNode.removeChild(s),delete this.callbackMap[r]};return s.addEventListener("load",m=>{this.resolvedPromise.then(()=>{c(),l?(i.next(new Lr({body:a,status:200,statusText:"OK",url:o})),i.complete()):i.error(new Nu({url:o,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),s.addEventListener("error",m=>{c(),i.error(new Nu({error:m,status:0,statusText:"JSONP Error",url:o}))}),this.document.body.appendChild(s),i.next({type:Nr.Sent}),()=>{l||this.removeListeners(s),c()}})}removeListeners(t){Om||(Om=this.document.implementation.createHTMLDocument()),Om.adoptNode(t)}static{this.\u0275fac=function(i){return new(i||e)(M(lE),M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();function ZB(e,n){return"JSONP"===e.method?O(cE).handle(e):n(e)}const KB=/^\)\]\}',?\n/;let uE=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new S(-2800,!1);const i=this.xhrFactory;return(i.\u0275loadImpl?it(i.\u0275loadImpl()):B(null)).pipe(An(()=>new Pe(o=>{const s=i.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((y,x)=>s.setRequestHeader(y,x.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const y=t.detectContentTypeHeader();null!==y&&s.setRequestHeader("Content-Type",y)}if(t.responseType){const y=t.responseType.toLowerCase();s.responseType="json"!==y?y:"text"}const a=t.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const y=s.statusText||"OK",x=new un(s.getAllResponseHeaders()),I=function XB(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new Pm({headers:x,status:s.status,statusText:y,url:I}),l},u=()=>{let{headers:y,status:x,statusText:I,url:E}=c(),F=null;204!==x&&(F=typeof s.response>"u"?s.responseText:s.response),0===x&&(x=F?200:0);let L=x>=200&&x<300;if("json"===t.responseType&&"string"==typeof F){const K=F;F=F.replace(KB,"");try{F=""!==F?JSON.parse(F):null}catch(Se){F=K,L&&(L=!1,F={error:Se,text:F})}}L?(o.next(new Lr({body:F,headers:y,status:x,statusText:I,url:E||void 0})),o.complete()):o.error(new Nu({error:F,headers:y,status:x,statusText:I,url:E||void 0}))},f=y=>{const{url:x}=c(),I=new Nu({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:x||void 0});o.error(I)};let m=!1;const g=y=>{m||(o.next(c()),m=!0);let x={type:Nr.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(x.total=y.total),"text"===t.responseType&&s.responseText&&(x.partialText=s.responseText),o.next(x)},b=y=>{let x={type:Nr.UploadProgress,loaded:y.loaded};y.lengthComputable&&(x.total=y.total),o.next(x)};return s.addEventListener("load",u),s.addEventListener("error",f),s.addEventListener("timeout",f),s.addEventListener("abort",f),t.reportProgress&&(s.addEventListener("progress",g),null!==a&&s.upload&&s.upload.addEventListener("progress",b)),s.send(a),o.next({type:Nr.Sent}),()=>{s.removeEventListener("error",f),s.removeEventListener("abort",f),s.removeEventListener("load",u),s.removeEventListener("timeout",f),t.reportProgress&&(s.removeEventListener("progress",g),null!==a&&s.upload&&s.upload.removeEventListener("progress",b)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(i){return new(i||e)(M(vC))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();const Nm=new R("XSRF_ENABLED"),dE=new R("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),hE=new R("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class fE{}let e5=(()=>{class e{constructor(t,i,r){this.doc=t,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=lC(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(i){return new(i||e)(M(ve),M(Ci),M(dE))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();function t5(e,n){const t=e.url.toLowerCase();if(!O(Nm)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const i=O(fE).getToken(),r=O(hE);return null!=i&&!e.headers.has(r)&&(e=e.clone({headers:e.headers.set(r,i)})),n(e)}var rr=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}(rr||{});function Vr(e,n){return{\u0275kind:e,\u0275providers:n}}function n5(...e){const n=[Ba,uE,aE,{provide:Pu,useExisting:aE},{provide:Fu,useExisting:uE},{provide:Ua,useValue:t5,multi:!0},{provide:Nm,useValue:!0},{provide:fE,useClass:e5}];for(const t of e)n.push(...t.\u0275providers);return function kh(e){return{\u0275providers:e}}(n)}const pE=new R("LEGACY_INTERCEPTOR_FN");let s5=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:[n5(Vr(rr.LegacyInterceptors,[{provide:pE,useFactory:HB},{provide:Ua,useExisting:pE,multi:!0}]))]})}}return e})(),a5=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:[Vr(rr.JsonpSupport,[cE,{provide:lE,useFactory:YB},{provide:Ua,useValue:ZB,multi:!0}]).\u0275providers]})}}return e})();const Ha_apiUrl="https://dev.kanaksoftware.in/api/",Ha_recaptcha_siteKey="6LfHT4wqAAAAAPUggGby2N2GovcYxAVEDKyRpS3J";let Fi=(()=>{class e{constructor(t,i){this.http=t,this.router=i,this.apiUrl=Ha_apiUrl,this.header=new un({"Content-Type":"application/json",Accept:"application/json","X-Request-ID":"unique-request-id-12345"}),this.formDataheader=new un({Accept:"application/json","X-Request-ID":"unique-request-id-12345"})}getHomePageData(){return this.http.get(`${this.apiUrl}homepage`,{headers:this.header})}getNewslistData(t){return this.http.get(`${this.apiUrl}content/${t}`,{headers:this.header})}getNewsBySearch(t,i){return this.http.get(`${this.apiUrl}content/${i}/search/${t}`,{headers:this.header})}getNewsDatabyPagination(t){return this.http.get(t,{headers:this.header})}getNewsDetailData(t,i){return this.http.get(`${this.apiUrl}${i}/detail/${t}`,{headers:this.header})}getImpDatesData(t=""){let i="";return t&&(i=`?month=${t}`),this.http.get(`${this.apiUrl}imp-dates${i}`,{headers:this.header})}getProducts(){return this.http.get(`${this.apiUrl}products`,{headers:this.header})}subscribeNewsletter(t){return this.http.post(`${this.apiUrl}news-letter/post`,t,{headers:this.header})}publishArticle(t){return this.http.post(`${this.apiUrl}publish/your-article`,t,{headers:this.formDataheader})}shareUserFeedback(t){return this.http.post(`${this.apiUrl}feedback/store`,t,{headers:this.formDataheader})}getClientTestimonials(){return this.http.get(`${this.apiUrl}user-testimonial/getactive`,{headers:this.header})}getMenuList(){return this.http.get(`${this.apiUrl}menu-list`,{headers:this.header})}getSmartSearchResult(t){return this.http.post(`${this.apiUrl}search`,t,{headers:this.header})}static{this.\u0275fac=function(i){return new(i||e)(M(Ba),M(qe))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),$a=(()=>{class e{constructor(t,i){this.titleService=t,this.metaService=i}setSeoData(t){this.titleService.setTitle(t.seo_title),this.metaService.updateTag({name:"description",content:t.seo_meta_desc}),this.metaService.updateTag({name:"keywords",content:t.seo_meta_keywords})}static{this.\u0275fac=function(i){return new(i||e)(M(jp),M(NC))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mE=(()=>{class e{constructor(t){this.http=t}getHeaders(){const t=localStorage.getItem("authToken");return new un({Authorization:t?`Bearer ${t}`:""})}getPublicHeaders(){return this.getHeaders()}static{this.\u0275fac=function(i){return new(i||e)(M(Ba))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),ct=(()=>{class e{constructor(){this.toasts=new wt([]),this.toasts$=this.toasts.asObservable(),this.DEFAULT_DURATION=2500}showToast(t){const i=this.toasts.getValue();this.toasts.next([...i,t]),setTimeout(()=>this.removeToast(t),this.DEFAULT_DURATION)}removeToast(t){const i=this.toasts.getValue();this.toasts.next(i.filter(r=>r!==t))}initiateToast(){this.toasts.next([])}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),zn=(()=>{class e{constructor(t,i,r,o){this.http=t,this.router=i,this.getHeader=r,this.toaster=o,this.apiUrl=Ha_apiUrl,this.tokenKey="authToken",this.authStatus=new wt(this.isAuthenticated()),this.Header=this.getHeader.getPublicHeaders()}login(t){return this.http.post(`${this.apiUrl}login-with-mobile`,t,{headers:this.Header}).pipe(lt(i=>{if(i&&i.token){this.setToken(i.token);const r={...i.user,subscription_till:i.subscription_expiry};localStorage.setItem("userProfile",JSON.stringify(r)),this.authStatus.next(!0),window.location.reload()}}))}logout(){this.removeToken(),this.authStatus.next(!1),"/"===this.router.url?window.location.reload():this.router.navigate(["/"])}chnagePswd(t){return this.http.post(`${this.apiUrl}change-password`,t,{headers:this.Header})}forgetPswd(t){return this.http.post(`${this.apiUrl}forgot-password`,t,{headers:this.Header})}resettPswd(t){return this.http.post(`${this.apiUrl}reset-password`,t,{headers:this.Header})}getUserProfile(){return this.http.get(`${this.apiUrl}user-profile`,{headers:this.Header})}updateUserProfile(t){return this.http.post(`${this.apiUrl}user-profile/update`,t,{headers:this.Header})}isAuthenticated(){return!!localStorage.getItem(this.tokenKey)}returnUserProfileData(){const t=localStorage.getItem("userProfile");return t?JSON.parse(t):null}setToken(t){localStorage.setItem(this.tokenKey,t)}removeToken(){localStorage.removeItem(this.tokenKey),localStorage.removeItem("userProfile")}static{this.\u0275fac=function(i){return new(i||e)(M(Ba),M(qe),M(mE),M(ct))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Lm=(()=>{class e{constructor(t){this.AuthCheck=t,this.isAuth=!1,this.path={news:"resources/NEWS/",updates:"resources/UPDATES/",content:"content"},this.uploadUrl="https://stage.kanaksoftware.in/upload"}updateLinks(t){this.isAuth=this.AuthCheck.isAuthenticated();const r=document.createElement("div");return r.innerHTML=t,r.querySelectorAll("a").forEach(s=>{const a=s.getAttribute("href");if(a)if(a.includes("/upload"))s.setAttribute("href",`${this.uploadUrl}${a.substring(a.indexOf("/upload")+7)}`);else if(a.startsWith("https://www.kanaksoftware.in/")){const l=a.substring(29);let c=l.split("/"),u=l;const f=c[0];"content"===f&&c.length>=3?u=`/${this.path.content}/${c[2]}/${c[3]}`:this.path[f]&&c.length>=2&&(u=`/${this.path[f]}${c[1]}`),this.isAuth?s.setAttribute("href",u):(s.removeAttribute("href"),s.removeAttribute("target"),s.setAttribute("class","showLoginForm"))}}),r.innerHTML}static{this.\u0275fac=function(i){return new(i||e)(M(zn))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Vm=(()=>{class e{constructor(){this.Css="\n  @page {\n              margin: 0; /* Removes header/footer space */\n            }\n            body {\n              font-family: Arial, sans-serif;\n              margin:0 ; /* Ensure no margin */\n              padding: 2rem;\n            }\n            .print-only {\n              display: block;\n              text-align: center;\n              margin-bottom: 2rem;\n            }\n\n\n  table {\n  width: 100%;\n  border-collapse: collapse;\n  border: 1px solid #ddd; /* Light border */\n}\n\nth, td {\n  border: 1px solid #ddd; /* Light borders */\n  padding: 10px;\n  text-align: left;\n}\n\nthead {\n  background-color: #216a97 !important; /* Force blue color */\n  color: white !important;\n  font-weight: bold;\n  -webkit-print-color-adjust: exact; /* For Safari & Chrome */\n  print-color-adjust: exact; /* For modern browsers */\n  text-transform: uppercase;\n}\n\ntbody tr:nth-child(even) {\n  background-color: #f9f9f9; /* Light gray background for better readability */\n}\n\ntbody tr:hover {\n  background-color: #f1f1f1; /* Slightly darker on hover */\n}\n\n/* Ensure colors are printed */\n@media print {\n  thead {\n    background-color: #216a97 !important; /* Blue background */\n    color: white !important;\n    -webkit-print-color-adjust: exact;\n    print-color-adjust: exact;\n  }\n}\n\n  "}print(t){const i=t?.data,r=window.open("","","width=800, height=600");r&&i&&(r.document.write(`\n        <html>\n          <head>\n            <title>Print</title>\n             <style>\n                  ${this.Css}\n          </style>\n          </head>\n          <body>\n            <img src="../../../../assets/assets/kanakHeader.png" alt="Kanak" style="width: 100%;height: auto;object-fit: contain;margin-bottom: 2rem;" />\n\n            <h2>${t.heading??""}</h2>\n            <p>${t?.subtext??""}<p>\n            ${i}\n          </body>\n        </html>\n      `),r.document.close(),r.focus(),r.print())}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jm=(()=>{class e{constructor(){}whatsAppShare(t,i){const s=`https://wa.me/?text=${encodeURIComponent(t+"\n\n Link: "+i)}`;window.open(s,"_blank")}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),jr=(()=>{class e{constructor(){this.sharedData=new wt(""),this.currentData=this.sharedData.asObservable()}changeData(t){this.sharedData.next(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),os=(()=>{class e{constructor(t,i,r,o,s,a){this.http=t,this.router=i,this.getHeader=r,this.userAuth=o,this.toaster=s,this.dataShare=a,this.apiUrl=Ha_apiUrl,this.Header=this.getHeader.getPublicHeaders()}getProductsData(t){return this.http.get(`${this.apiUrl}product/${t}`,{headers:this.Header,observe:"response"}).pipe(It(i=>(401===i.status&&this.handleUnauthorized(),Qt(()=>i))))}getSubProductsData(t,i){return this.http.get(`${this.apiUrl}category/${t}/${i}`,{headers:this.Header,observe:"response"}).pipe(It(r=>(401===r.status&&this.handleUnauthorized(),Qt(()=>r))))}getcategoryData(t,i,r,o){return this.http.post(`${this.apiUrl}category/${t}/${i}/${r}`,o,{headers:this.Header,observe:"response"}).pipe(It(s=>(401===s.status&&this.handleUnauthorized(),Qt(()=>s))))}getCategoryDataByPagination(t,i){return this.http.post(t,i,{headers:this.Header,observe:"response"}).pipe(It(r=>(401===r.status&&this.handleUnauthorized(),Qt(()=>r))))}getContentData(t,i,r){return this.http.post(`${this.apiUrl}content/info/${t}/${i}`,r,{headers:this.Header,observe:"response"}).pipe(It(o=>(401===o.status&&this.handleUnauthorized(),Qt(()=>o))))}searchCategory(t,i){return this.http.post(`${this.apiUrl}search/${t}`,i,{headers:this.Header,observe:"response"}).pipe(It(r=>(401===r.status&&this.handleUnauthorized(),Qt(()=>r))))}searchCategoryById(t,i,r){return this.http.post(`${this.apiUrl}search/${t}/${i}`,r,{headers:this.Header,observe:"response"}).pipe(It(o=>(401===o.status&&this.handleUnauthorized(),Qt(()=>o))))}downloadFile(t,i){return this.http.get(`${this.apiUrl}content/${t}/${i}`,{headers:this.Header,observe:"response",responseType:"blob"}).pipe(It(r=>(401===r.status?this.handleUnauthorized():this.toaster.showToast({type:"error",title:"Download Failed",message:"File download failed. Please try again later."}),Qt(()=>r))))}sendOnMail(t,i){return this.userAuth.isAuthenticated()?(this.notifyUser("default","Request Sent","Your request has been sent."),this.http.get(`${this.apiUrl}content/mail/${i}`,{headers:this.Header,observe:"response"}).pipe(lt(r=>{if(!r.body)return void this.notifyUser("error","Response Error","No response body received.");const o=r.body.status??"error";this.notifyUser("success"===o?"success":"error","success"===o?"Mail Sent Successfully":"Failed Request","success"===o?"An email has been sent to you.":"Failed to send email. Please try again later.")}),It(r=>(console.error("API Error:",r),404===r.status?this.notifyUser("error","Not Found","The requested resource was not found."):500===r.status?this.notifyUser("error","Server Error","Something went wrong on the server. Please try again later."):this.notifyUser("error","Error","An unexpected error occurred. Please try again."),Qt(()=>r))))):(this.notifyUser("warning","Login Required","Please login to send mail."),this.dataShare.changeData({for:"navbar",data:"login"}),null)}notifyUser(t,i,r){this.toaster.showToast({type:t,title:i,message:r})}handleUnauthorized(){this.toaster.showToast({type:"error",title:"Error",message:"Unauthorized access Or Token Expired. Please login again."}),this.userAuth.logout(),this.dataShare.changeData({for:"navbar",data:"login"})}static{this.\u0275fac=function(i){return new(i||e)(M(Ba),M(qe),M(mE),M(zn),M(ct),M(jr))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),za=(()=>{class e{goBack(){history.length>1?history.back():window.close()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-back-btn"]],decls:3,vars:0,consts:[[1,"bg-zinc-100","px-5","py-2","rounded-full","flex","items-center","gap-2",3,"click"],[1,"ri-arrow-left-s-line","font-semibold","text-2xl"]],template:function(i,r){1&i&&(h(0,"button",0),k("click",function(){return r.goBack()}),C(1,"i",1),_(2," Back"),d())},encapsulation:2})}}return e})(),qa=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-loader"]],decls:2,vars:0,consts:[[1,"flex","items-center","justify-center","fixed","top-0","left-0","w-full","h-full","bg-white","z-[9999]"],[1,"loading","loading-infinity","loading-lg","text-primary"]],template:function(i,r){1&i&&(h(0,"div",0),C(1,"span",1),d())},encapsulation:2})}}return e})();const f5=["article"];function p5(e,n){1&e&&C(0,"app-loader")}function m5(e,n){if(1&e&&(h(0,"a",28)(1,"span",29),C(2,"i",30),d()()),2&e){const t=T();Mt("routerLink","/resources/",t.type,"/",null==t.resData?null:t.resData.next_news.url,"")}}function g5(e,n){if(1&e&&(h(0,"a",31)(1,"span",29),C(2,"i",32),d()()),2&e){const t=T();Mt("routerLink","/resources/",t.type,"/",null==t.resData?null:t.resData.prev_news.url,"")}}function _5(e,n){1&e&&(h(0,"div",33),C(1,"img",34),d())}let v5=(()=>{class e{constructor(t,i,r,o,s,a,l,c,u,f,m){this.route=t,this.newsService=i,this.setSeoService=r,this.linkupdate=o,this.sanitizer=s,this.renderer=a,this.documentPrint=l,this.whatsapp=c,this.sendMailService=u,this.dataShare=f,this.Toast=m,this.isloading=!0,this.observer=null,window.scrollTo(0,0)}ngOnInit(){this.routeSub=this.route.paramMap.subscribe(t=>{this.type=t.get("type"),this.newsId=t.get("id"),this.getNewsDetails()})}ngAfterViewInit(){this.observeDOMChanges()}observeDOMChanges(){this.article&&(this.observer=new MutationObserver(()=>{this.attachClickEvents()}),this.observer.observe(this.article.nativeElement,{childList:!0,subtree:!0}),this.attachClickEvents())}attachClickEvents(){this.article.nativeElement.querySelectorAll(".showLoginForm").forEach(i=>{this.renderer.listen(i,"click",()=>this.showLoginForm())})}showLoginForm(){this.Toast.showToast({message:"Please login to access this Link",title:"Login Required",type:"warning"}),this.dataShare.changeData({for:"navbar",data:"login"})}ngOnDestroy(){this.observer&&this.observer.disconnect()}getNewsDetails(){this.isloading=!0,this.newsService.getNewsDetailData(this.newsId,this.type).subscribe(t=>{try{if("success"==t.status){console.log(t),this.resData=t.data,this.newsDetailData=t.data.news_info,this.setSeoService.setSeoData(t.data.seo_detail);let i=this.linkupdate.updateLinks(t.data.news_info.news_content);this.content=this.sanitizeHtml(i),this.isloading=!1}else console.log(t.message)}catch(i){console.error(i)}})}sanitizeHtml(t){return this.sanitizer.bypassSecurityTrustHtml(t)}print(){this.documentPrint.print({data:this.article.nativeElement.innerHTML,heading:this.newsDetailData?.news_title,subtext:""})}shareWhatsapp(){let t=window.location.href,i=this.newsDetailData?.news_title;this.whatsapp.whatsAppShare(`Check out this ${this.type}: ${i}`,t)}sendOnMail(){this.sendMailService.sendOnMail(this.type,this.newsId)?.subscribe()}static{this.\u0275fac=function(i){return new(i||e)(D(bt),D(Fi),D($a),D(Lm),D(Up),D(yn),D(Vm),D(jm),D(os),D(jr),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-resources-view"]],viewQuery:function(i,r){if(1&i&&Vn(f5,5),2&i){let o;xn(o=En())&&(r.article=o.first)}},decls:41,vars:11,consts:[[4,"ngIf"],[1,"p-5","lg:p-14"],[1,"capitalize","flex","flex-wrap","gap-3","md:flex-row","justify-between"],[1,"capitalize","flex","gap-3"],["routerLinkActive","router-link-active",1,"outline","outline-2","font-semibold","outline-black","px-5","py-2","rounded-full","flex","items-center","justify-center",3,"routerLink"],[1,"flex","gap-1","items-center"],["class","lg:tooltip ","data-tip","Prev",3,"routerLink",4,"ngIf"],["class","lg:tooltip ","data-tip","Next",3,"routerLink",4,"ngIf"],[1,"mt-10"],[1,""],[1,"uppercase","text-3xl","headline"],[1,"capitalize","text-zinc-500"],[1,"flex","gap-3","items-end","mb-5"],[1,"dropdown","dropdown-down"],["tabindex","0","role","button",1,"btn","bg-transparent"],[1,"flex","items-center","gap-2"],[1,"ri-share-line"],["tabindex","0",1,"mt-2","dropdown-content","border","menu","bg-base-100","rounded-box","z-[1]","w-52","p-2","shadow-md"],[3,"click"],[1,"ri-whatsapp-line","text-green-500","text-xl"],[1,"ri-mail-line","text-blue-500","text-xl"],[1,"btn","bg-blue-100","text-blue-500",3,"click"],[1,"ri-printer-line","text-2xl","font-extralight"],["class","w-full h-[30rem] my-10",4,"ngIf"],[1,"mb-3"],[1,"pb-5","w-full","overflow-x-auto","dynamic-content-section"],["article",""],[3,"innerHTML"],["data-tip","Prev",1,"lg:tooltip",3,"routerLink"],[1,"rounded-full","h-[3rem]","border","w-[3rem]","flex","justify-center","items-center","text-zinc-400","hover:bg-zinc-100","hover:text-black","text-xl"],[1,"ri-arrow-left-s-line"],["data-tip","Next",1,"lg:tooltip",3,"routerLink"],[1,"ri-arrow-right-s-line"],[1,"w-full","h-[30rem]","my-10"],["src","https://images.unsplash.com/photo-1724781189475-a332f44de593?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","alt","",1,"w-full","h-full","object-cover","rounded-2xl"]],template:function(i,r){1&i&&(w(0,p5,1,0,"app-loader",0),h(1,"main")(2,"section",1)(3,"div",2)(4,"div",3),C(5,"app-back-btn"),h(6,"a",4),_(7),d()(),h(8,"div",5),w(9,m5,3,2,"a",6),w(10,g5,3,2,"a",7),d()(),h(11,"div",8)(12,"div",9)(13,"h1",10),_(14),d(),h(15,"span",11),_(16),_t(17,"date"),d(),h(18,"div",12)(19,"div",13)(20,"div",14)(21,"span",15)(22,"span"),_(23,"Share"),d(),C(24,"i",16),d()(),h(25,"ul",17)(26,"li")(27,"button",18),k("click",function(){return r.shareWhatsapp()}),C(28,"i",19),_(29," WhatsApp"),d()(),h(30,"li")(31,"button",18),k("click",function(){return r.sendOnMail()}),C(32,"i",20),_(33," Mail"),d()()()(),h(34,"button",21),k("click",function(){return r.print()}),C(35,"i",22),d()(),w(36,_5,2,0,"div",23),C(37,"hr",24),h(38,"div",25,26),C(40,"div",27),d()()()()()),2&i&&(v("ngIf",r.isloading),p(6),Je("routerLink","/resources/",r.type,""),p(1),ne(r.type),p(2),v("ngIf",null==r.resData?null:r.resData.next_news),p(1),v("ngIf",null==r.resData?null:r.resData.prev_news),p(4),ne(null==r.newsDetailData?null:r.newsDetailData.news_title),p(2),ne(ln(17,9,null==r.newsDetailData?null:r.newsDetailData.news_date)),p(20),v("ngIf",!1),p(4),v("innerHTML",r.content,Jl))},dependencies:[He,Tt,$x,za,qa,Mr]})}}return e})();function b5(e,n){if(1&e&&(h(0,"div",13),C(1,"img",14),d()),2&e){const t=n.$implicit;p(1),Gi("src",t.img,wi),Gi("alt",t.name)}}function y5(e,n){if(1&e&&(h(0,"div",15)(1,"span",16),C(2,"i",4),d(),h(3,"h3",17),_(4),d(),h(5,"p",18),_(6),d()()),2&e){const t=n.$implicit;p(4),pe(" ",t.feedback," "),p(2),ne(t.name)}}let w5=(()=>{class e{constructor(){this.data=[],this.testimonials=[{name:"John Doe",img:"https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8YXZhdGFyfGVufDB8fDB8fHww",id:"1",feedback:"This product has completely transformed how I handle my tasks. It's user-friendly, reliable, and packed with features that make my life so much easier. I can\u2019t imagine going back to the old way of doing things!"},{name:"Jane Smith",img:"https://images.unsplash.com/photo-1619895862022-09114b41f16f?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",id:"2",feedback:"The support team was fantastic and quickly resolved my issues. The service exceeded my expectations, providing a smooth and pleasant experience from start to finish. I highly recommend it to anyone in need of quality assistance."},{name:"Alex Johnson",img:"https://images.unsplash.com/photo-1633332755192-727a05c4013d?q=80&w=1780&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",id:"3",feedback:"I was a bit hesitant at first, but this purchase turned out to be one of the best decisions I\u2019ve made. The product\u2019s performance and durability are outstanding, and it\u2019s worth every penny spent!"},{name:"Emily Clark",img:"https://images.unsplash.com/photo-1438761681033-6461ffad8d80?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",id:"4",feedback:"This service has been a game-changer for my work. The ease of use and the range of features offered are unmatched, and I love how it\u2019s tailored perfectly to my needs. Couldn't ask for anything better!"},{name:"Michael Brown",img:"https://plus.unsplash.com/premium_photo-1689632031083-518b012767a4?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",id:"5",feedback:"After trying several alternatives, I found this product to be the most effective. The attention to detail and level of support make it stand out from the rest. Truly an exceptional experience and highly recommended."}]}ngAfterViewInit(){const t=new Swiper("#swiper_avatar_testimonial",{loop:!0,autoplay:!1,slidesPerView:1,effect:"fade",allowTouchMove:!1});new Swiper("#swiper_testimonial_feedback",{loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1},slidesPerView:1,controller:{control:t}})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-testimonial"]],inputs:{data:"data"},decls:14,vars:2,consts:[[1,"bg-sky-100","relative","lg:h-[40rem]","overflow-hidden"],[1,"grid","grid-cols-1","lg:grid-cols-2","gap-5","lg:gap-20","z-10","relative","h-full"],[1,"flex","items-center","justify-center","pt-20","lg:p-0","lg:justify-end","h-full","relative"],[1,"lg:hidden","absolute","top-5","w-20","h-20","bg-blue-500","rounded-full","flex","justify-center","items-center","text-white","text-5xl"],[1,"ri-double-quotes-l"],["id","swiper_avatar_testimonial",1,"swiper","m-0","w-[15rem]","h-[15rem]","lg:w-[25rem]","lg:h-[25rem]"],[1,"swiper-wrapper"],["class","swiper-slide flex items-end",4,"ngFor","ngForOf"],[1,"flex","items-center","p-5","lg:p-0"],[1,"w-full","lg:w-3/4"],["id","swiper_testimonial_feedback",1,"swiper","w-full"],["class","swiper-slide flex flex-col gap-5 lg:gap-10 items-center lg:items-start text-center lg:text-left",4,"ngFor","ngForOf"],["src","../../../assets/assets/testimonal_bg.png","alt","",1,"absolute","w-full","rotate-90","md:rotate-0","-top-[18rem]","lg:top-0","left-0","lg:w-2/5","z-0","h-full","object-cover"],[1,"swiper-slide","flex","items-end"],[1,"w-[15rem]","h-[15rem]","lg:w-[25rem]","lg:h-[25rem]","object-cover","rounded-2xl",3,"src","alt"],[1,"swiper-slide","flex","flex-col","gap-5","lg:gap-10","items-center","lg:items-start","text-center","lg:text-left"],[1,"hidden","w-20","h-20","bg-blue-500","rounded-full","lg:flex","justify-center","items-center","text-white","text-5xl"],[1,"text-base","lg:text-2xl","font-semibold"],[1,"italic"]],template:function(i,r){1&i&&(h(0,"section",0)(1,"div",1)(2,"div",2)(3,"span",3),C(4,"i",4),d(),h(5,"div",5)(6,"div",6),w(7,b5,2,2,"div",7),d()()(),h(8,"div",8)(9,"div",9)(10,"div",10)(11,"div",6),w(12,y5,7,2,"div",11),d()()()()(),C(13,"img",12),d()),2&i&&(p(7),v("ngForOf",r.testimonials),p(5),v("ngForOf",r.testimonials))},dependencies:[Ht]})}}return e})();const C5=["impDatesTable"],D5=["headline_content"];function x5(e,n){1&e&&C(0,"app-loader")}function E5(e,n){if(1&e&&(h(0,"li",85)(1,"a",86)(2,"p",87),_(3),d()(),h(4,"span"),C(5,"i",88),d()()),2&e){const t=n.$implicit;p(1),Mt("routerLink","/resources/",null==t?null:t.news_type,"/",null==t?null:t.seo_url,""),p(2),ne(null==t?null:t.news_title)}}function M5(e,n){1&e&&(h(0,"div",42)(1,"div",43)(2,"ul",36)(3,"li",89)(4,"a",90)(5,"div",91)(6,"span",92),_(7,"26 Jan 2024"),d(),h(8,"span",93),_(9,"Latest"),d()(),h(10,"h2",94),_(11,"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cupiditate, quaerat fugit nemo exercitationem voluptatibus ex laudantium minima sit nulla at et molestias qui eaque vel delectus odio aliquam expedita illo."),d()()(),h(12,"li",89)(13,"a",90)(14,"div",91)(15,"span",92),_(16,"26 Jan 2024"),d(),h(17,"span",93),_(18,"Latest"),d()(),h(19,"h2",94),_(20,"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cupiditate, quaerat fugit nemo exercitationem voluptatibus ex laudantium minima sit nulla at et molestias qui eaque vel delectus odio aliquam expedita illo."),d()()(),h(21,"li",89)(22,"a",90)(23,"div",91)(24,"span",92),_(25,"26 Jan 2024"),d(),h(26,"span",93),_(27,"Latest"),d()(),h(28,"h2",94),_(29,"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cupiditate, quaerat fugit nemo exercitationem voluptatibus ex laudantium minima sit nulla at et molestias qui eaque vel delectus odio aliquam expedita illo."),d()()(),h(30,"li",89)(31,"a",90)(32,"div",91)(33,"span",92),_(34,"26 Jan 2024"),d(),h(35,"span",93),_(36,"Latest"),d()(),h(37,"h2",94),_(38,"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cupiditate, quaerat fugit nemo exercitationem voluptatibus ex laudantium minima sit nulla at et molestias qui eaque vel delectus odio aliquam expedita illo."),d()()(),h(39,"li",89)(40,"a",90)(41,"div",91)(42,"span",92),_(43,"26 Jan 2024"),d(),h(44,"span",93),_(45,"Latest"),d()(),h(46,"h2",94),_(47,"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cupiditate, quaerat fugit nemo exercitationem voluptatibus ex laudantium minima sit nulla at et molestias qui eaque vel delectus odio aliquam expedita illo."),d()()()(),h(48,"div",95)(49,"button",96),_(50,"view More"),d()()(),h(51,"div",97)(52,"div",98)(53,"a",90)(54,"div",99),C(55,"img",50),d(),h(56,"div",51)(57,"span",52),_(58,"Author : Kanak SOftware - Today"),d(),h(59,"h2",100),_(60,"Advisory for biometric-based aadhaar authentication and document verification for gst registration applicants of bihar, delhi, karnataka and punjab"),d()()(),h(61,"ul",101)(62,"li",102)(63,"a",90)(64,"div",57)(65,"span",103),_(66,"26 jan 2024"),d(),h(67,"h2",104),_(68,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate."),d()()()(),h(69,"li",102)(70,"a",90)(71,"div",57)(72,"span",103),_(73,"26 jan 2024"),d(),h(74,"h2",104),_(75,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate."),d()()()(),h(76,"li",102)(77,"a",90)(78,"div",57)(79,"span",103),_(80,"26 jan 2024"),d(),h(81,"h2",104),_(82,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate."),d()()()(),h(83,"li",102)(84,"a",90)(85,"div",57)(86,"span",103),_(87,"26 jan 2024"),d(),h(88,"h2",104),_(89,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate."),d()()()(),h(90,"li",102)(91,"a",90)(92,"div",57)(93,"span",103),_(94,"26 jan 2024"),d(),h(95,"h2",104),_(96,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate."),d()()()()()()()())}function S5(e,n){if(1&e){const t=ue();h(0,"div")(1,"a",105),k("click",function(){const o=W(t).$implicit;return Y(T().checkAuth(null==o?null:o.seo_url))}),C(2,"img",106),h(3,"h2",107),_(4),d(),h(5,"p",108),_(6),d()()()}if(2&e){const t=n.$implicit;p(2),Je("src","../../../assets/assets/products_icons/",null==t?null:t.img,"",wi),p(2),ne(null==t?null:t.product_name),p(2),ne(null==t?null:t.product_desc)}}function I5(e,n){if(1&e&&(h(0,"li",109)(1,"a",86)(2,"div",91)(3,"span",92),_(4),_t(5,"date"),d()(),h(6,"h2",110),_(7),d()()()),2&e){const t=n.$implicit;p(1),Mt("routerLink","/resources/",null==t?null:t.news_type,"/",null==t?null:t.seo_url,""),p(3),ne(ln(5,4,null==t?null:t.news_date)),p(3),ne(null==t?null:t.news_title)}}function T5(e,n){if(1&e&&(h(0,"li",109)(1,"a",86)(2,"div",91)(3,"span",111),_(4),_t(5,"date"),d()(),h(6,"h2",112),_(7),d(),h(8,"i",113),_(9,"author : Kanak softare"),d()()()),2&e){const t=n.$implicit;p(1),Mt("routerLink","/resources/",null==t?null:t.news_type,"/",null==t?null:t.seo_url,""),p(3),ne(ln(5,4,null==t?null:t.news_date)),p(3),ne(null==t?null:t.news_title)}}function A5(e,n){if(1&e&&(h(0,"option",114),_(1),d()),2&e){const t=n.$implicit;v("value",null==t?null:t.value),p(1),ne(null==t?null:t.label)}}function k5(e,n){1&e&&(h(0,"tr",116)(1,"th",117)(2,"span"),C(3,"span",118),d()(),h(4,"td",119)(5,"span"),C(6,"span",118),d()(),h(7,"td",120)(8,"span"),C(9,"span",118),d()()())}const R5=function(){return[1,2,3]};function P5(e,n){1&e&&(ie(0),w(1,k5,10,0,"tr",115),re()),2&e&&(p(1),v("ngForOf",Dn(1,R5)))}function F5(e,n){1&e&&(ie(0),h(1,"tr",116)(2,"th",122)(3,"span"),_(4,"No data..."),d()()(),re())}function O5(e,n){if(1&e&&(h(0,"tr",116)(1,"th",117),_(2),_t(3,"date"),d(),h(4,"td",119),_(5),d(),h(6,"td",120),_(7),d()()),2&e){const t=n.$implicit;p(2),pe(" ",ln(3,3,null==t?null:t.return_date)," "),p(3),pe(" ",null==t?null:t.return_type," "),p(2),pe(" ",null==t?null:t.return_form," ")}}function N5(e,n){1&e&&w(0,O5,8,5,"tr",115),2&e&&v("ngForOf",T(2).impDatesData)}function L5(e,n){if(1&e&&(w(0,F5,5,0,"ng-container",82),w(1,N5,1,1,"ng-template",null,121,ke)),2&e){const t=Ee(2);v("ngIf",0==T().impDatesData.length)("ngIfElse",t)}}let V5=(()=>{class e{constructor(t,i,r,o,s,a,l,c,u,f,m,g){this.homePageService=t,this.setSeoService=i,this.setToasterService=r,this.userAuthService=o,this.renderer=s,this.el=a,this.linkupdate=l,this.dataShare=c,this.documentPrint=u,this.route=f,this.whatsapp=m,this.productsAPiService=g,this.articleData=[],this.impDatesData=[],this.newsData=[],this.productsData=[],this.isLoading=!0,this.isTableLoading=!0,this.sendToNavbar="",this.impDatesSelectOpt=[],this.clientTestimonial=[],this.observer=null,this.productsImg={1:"audit_manual.svg",4:"deeds.svg",5:"ngo.svg",6:"project_info.svg",7:"it_laws.svg",8:"gst_law.svg",9:"company_law.svg",11:"wills.svg"},this.impDateMonth="",window.scrollTo(0,0),this.getData(),this.generateImpDatesSelectOpt(),this.getImpDates(),this.getTestimonials()}ngOnInit(){this.route.queryParamMap.subscribe(t=>{"important_date"===t.get("section")&&setTimeout(()=>{const r=$("#impDates_section");if(r.length&&r.is(":visible")){const s=(r.offset()?.top||0)-160;$("html, body").animate({scrollTop:s},1e3,"swing",()=>{r.attr("tabindex","-1").focus()})}},1e3)})}getData(){this.homePageService.getHomePageData().subscribe(t=>{try{"success"==t.status?(this.articleData=t.data.articles_view,this.newsData=t.data.news_array,this.todayHeadlines={...t.data.return_today_headline,headline_content:this.linkupdate.updateLinks(t.data.return_today_headline.headline_content)},this.productsData=t.data.products.map(r=>({...r,img:`${this.productsImg[r.product_id]||"docIcon.jpg"}`})),this.setSeoService.setSeoData(t.data.seo_detail),this.isLoading=!1):console.log(t.message)}catch(i){console.error(i)}})}ngAfterViewInit(){this.observeDOMChanges()}observeDOMChanges(){this.headline&&(this.observer=new MutationObserver(()=>{this.attachClickEvents()}),this.observer.observe(this.headline.nativeElement,{childList:!0,subtree:!0}),this.attachClickEvents())}attachClickEvents(){this.headline.nativeElement.querySelectorAll(".showLoginForm").forEach(i=>{this.renderer.listen(i,"click",()=>this.showLoginForm())})}showLoginForm(){this.setToasterService.showToast({message:"Please login to access",title:"Login Required",type:"warning"}),this.dataShare.changeData({for:"navbar",data:"login"})}ngOnDestroy(){this.observer&&this.observer.disconnect()}generateImpDatesSelectOpt(){const t=["January","February","March","April","May","June","July","August","September","October","November","December"],r=(new Date).getMonth(),o=(r-1+12)%12,s=(r+1)%12;this.impDatesSelectOpt=[{label:t[o],value:o+1},{label:t[r],value:r+1},{label:t[s],value:s+1}],console.log(this.impDatesSelectOpt)}checkAuth(t){this.userAuthService.isAuthenticated()?window.location.href=`/product/${t}`:(this.setToasterService.showToast({message:"Please login to access this page",title:"Login Required",type:"warning"}),this.dataShare.changeData({for:"navbar",data:"login"}))}setImpDateMonth(t){this.getImpDates(t.target.value),this.impDateMonth=t.target.value}getImpDates(t=""){this.isTableLoading=!0,this.homePageService.getImpDatesData(t).subscribe(i=>{try{"success"==i.status&&(this.impDatesData=i.data,this.isTableLoading=!1)}catch{}})}getTestimonials(){this.homePageService.getClientTestimonials().subscribe(t=>{try{"success"==t.status&&(this.clientTestimonial=t.data)}catch{}})}print(){this.userAuthService.isAuthenticated()?this.documentPrint.print({data:this.impDatesTable.nativeElement.innerHTML,heading:"Important Dates",subtext:"From filing dates to payment deadlines, keep track of all key dates in one place."}):this.showLoginForm()}shareWhatsapp(){if(!this.userAuthService.isAuthenticated())return void this.showLoginForm();const i=`${window.location.href.split("?")[0]}?section=important_date`;this.whatsapp.whatsAppShare("Check out these important dates",i)}shareMail(){this.userAuthService.isAuthenticated()?this.productsAPiService.sendOnMail("imp_dates",this.impDateMonth)?.subscribe():this.showLoginForm()}static{this.\u0275fac=function(i){return new(i||e)(D(Fi),D($a),D(ct),D(zn),D(yn),D(st),D(Lm),D(jr),D(Vm),D(bt),D(jm),D(os))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-home"]],viewQuery:function(i,r){if(1&i&&(Vn(C5,5),Vn(D5,5)),2&i){let o;xn(o=En())&&(r.impDatesTable=o.first),xn(o=En())&&(r.headline=o.first)}},decls:134,vars:40,consts:[[4,"ngIf"],[1,"min-h-screen"],[1,"p-5","lg:pt-5","lg:p-14","xl:pt-0"],[1,"flex","items-center","gap-5","bg-red-600","rounded-lg","mb-3"],[1,"cursor-pointer","text-xs","md:text-base","md:font-semibold","uppercase","text-nowrap","p-3","text-red-200","border-e-2","border-red-400",3,"routerLink"],["behavior","scroll","direction","left","onmouseover","this.stop();","onmouseout","this.start();","scrollamount","5"],[1,"flex","items-center"],["class","flex",4,"ngFor","ngForOf"],[1,""],[1,"header-text","text-3xl","uppercase","headline"],[1,"w-full","h-[60vh]","overflow-y-auto","mt-5","bg-sky-100","text-primary","p-5","rounded-2xl"],["id","headline_content"],["headline_content",""],[3,"innerHTML"],["class","grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-y-10 lg:gap-10 mt-10",4,"ngIf"],[1,"p-5","lg:px-14","hidden"],[1,"header-text","text-3xl","uppercase"],[1,"text-sm","lg:text-base","lg:w-1/2","text-zinc-500","mt-3"],[1,"mt-10","grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","xl:grid-cols-4","gap-5"],[4,"ngFor","ngForOf"],[1,"p-5","lg:px-14","lg:pb-10"],[1,"grid","grid-cols-1","lg:grid-cols-3","gap-y-10","lg:gap-10"],[1,"col-span-1","relative"],[1,"w-full","h-full","bg-yellow-300","rounded-xl","relative","lg:absolute","top-1/2","left-0","transform","-translate-y-1/2","p-7"],["target","_blank",1,"group","flex","flex-col","justify-between","h-full","gap-5",3,"routerLink"],[1,"bg-primary","text-sm","text-white","px-3","py-1","rounded"],[1,"text-3xl","uppercase","line-clamp-3","mt-5","group-hover:underline","headline"],[1,"text-amber-800","line-clamp-2","mt-3"],[1,"my-5","capitalize"],[1,"text-sm","flex","gap-2"],[1,"border-t","border-white"],[1,"pt-3","capitalize"],[1,"col-span-1","lg:col-span-2"],[1,"flex","justify-between","items-center"],[1,"uppercase","underline","font-semibold"],[1,"text-sm","border","bg-amber-500","text-white","ring","ring-amber-300","rounded-full","px-4","py-1","capitalize",3,"routerLink"],[1,"grid","grid-cols-1","divide-y"],["class","py-5 group",4,"ngFor","ngForOf"],[1,"lg:px-14"],[1,"bg-red-600","p-3","pt-8","pb-4","lg:p-8","rounded-3xl"],[1,"uppercase","underline","font-semibold","text-white"],[1,"text-sm","border","bg-red-500","text-white","ring","ring-red-300","rounded-full","px-4","py-1","capitalize",3,"routerLink"],[1,"grid","grid-cols-1","lg:grid-cols-2","xl:grid-cols-3","gap-y-10","lg:gap-10","mt-10"],[1,"xl:col-span-2","order-2","lg:order-1"],[1,"grid","grid-cols-1","divide-y","divide-red-400"],[1,"order-1","lg:order-2"],[1,"bg-white","rounded-2xl"],[1,"h-full","p-5","group"],["target","_blank",1,"flex","flex-col","justify-between","h-full","gap-5",3,"routerLink"],[1,"w-full","h-[15rem]"],["src","https://plus.unsplash.com/premium_photo-1681396692824-f68105dac8d5?q=80&w=1926&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","alt","",1,"w-full","h-full","object-cover","rounded-xl"],[1,"mt-5"],[1,"text-sm","bg-red-600","px-2","py-1","text-white"],[1,"text-2xl","text-red-600","font-medium","line-clamp-2","mt-2","uppercase","group-hover:underline","headline"],[1,"mt-5","text-zinc-500","line-clamp-5"],["id","impDates_section",1,"pt-10","p-5","lg:px-14"],[1,"flex","flex-col","xl:flex-row","justify-between","gap-5","xl:items-end","w-full"],[1,"w-full"],[1,"flex","gap-3","items-end"],[1,"form-control","w-full","max-w-xs"],[1,"label"],[1,"label-text"],[1,"select","select-bordered",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],[1,"dropdown","dropdown-end"],["tabindex","0","role","button",1,"btn","bg-transparent"],[1,"flex","items-center","gap-2"],[1,"ri-share-line"],["tabindex","0",1,"mt-2","dropdown-content","border","menu","bg-base-100","rounded-box","z-[1]","w-52","p-2","shadow-md"],[3,"click"],[1,"ri-whatsapp-line","text-green-500","text-xl"],[1,"ri-mail-line","text-blue-500","text-xl"],[1,"btn","bg-blue-100","text-blue-500",3,"click"],[1,"ri-printer-line","text-2xl","font-extralight"],[1,"relative","overflow-x-auto","mt-10"],["impDatesTable",""],[1,"w-full","text-sm","text-left","rounded-t-2xl","overflow-hidden",2,"border","gray"],[1,"bg-primary","text-white","uppercase"],["scope","col",1,"px-6","py-5","border","w-28"],["scope","col",1,"px-6","py-5","border","min-w-[30rem]"],["scope","col",1,"px-6","py-5","border","w-[15rem]"],[4,"ngIf","ngIfElse"],["showTableData",""],[3,"data"],[1,"flex"],["target","_blank",3,"routerLink"],[1,"text-white","text-nowrap","hover:underline"],[1,"ri-gemini-fill","text-white","px-5"],[1,"py-5"],["href",""],[1,"text-sm","flex","items-end","gap-3"],[1,"text-zinc-400"],[1,"font-semibold","text-red-600","bg-red-100","px-3","py-1","rounded"],[1,"mt-2","text-xl","line-clamp-2"],[1,"mt-5","text-center"],[1,"ring","ring-red-300","bg-red-600","text-white","text-sm","border","rounded-full","px-4","py-1","capitalize"],[1,"bg-red-100","rounded-2xl","h-[70vh]","lg:h-[90vh]","overflow-y-hidden","order-1","lg:order-2"],[1,"h-full","overflow-y-auto","p-5","scrollbar-hidden"],[1,"w-full","h-[10rem]","lg:h-[15rem]"],[1,"text-2xl","text-red-600","font-medium","line-clamp-2","mt-2","uppercase"],[1,"mt-5","grid","grid-cols-1","divide-y","divide-red-300"],[1,"py-3"],[1,"text-sm","capitalize"],[1,"line-clamp-2","text-lg"],[1,"w-full","h-[10rem]","rounded-xl","border","p-5","flex","flex-col","gap-3","group","hover:outline","hover:outline-2","hover:outline-primary","hover:bg-primary/5",3,"click"],["alt","",1,"w-8","h-9","object-contain",3,"src"],[1,"text-xl","font-semibold","capitalize","group-hover:text-primary"],[1,"text-sm","text-zinc-500","line-clamp-2"],[1,"py-5","group"],[1,"mt-2","text-xl","line-clamp-2","group-hover:underline"],[1,"text-red-300"],[1,"group-hover:underline","mt-2","text-xl","line-clamp-2","text-white"],[1,"text-red-300","capitalize","text-sm"],[3,"value"],["class","bg-white border-b",4,"ngFor","ngForOf"],[1,"bg-white","border-b"],["scope","row",1,"px-6","py-4","font-medium","whitespace-nowrap","border"],[1,"flex","w-1/2","h-3","skeleton"],[1,"px-6","py-4","border"],[1,"px-6","py-4","border","font-semibold"],["content",""],["scope","row","colspan","3",1,"px-6","py-4","font-medium","whitespace-nowrap","border","text-center"]],template:function(i,r){if(1&i&&(w(0,x5,1,0,"app-loader",0),h(1,"main",1)(2,"section",2)(3,"div",3)(4,"p",4),_(5," News Updates : "),d(),h(6,"marquee",5)(7,"ul",6),w(8,E5,6,3,"li",7),_t(9,"slice"),d()()(),h(10,"div",8)(11,"h2",9),_(12,"today's headlines"),d(),h(13,"div",10)(14,"div",11,12),C(16,"div",13),d()(),w(17,M5,97,0,"div",14),d()(),h(18,"section",15)(19,"h2",16),_(20,"our products"),d(),h(21,"p",17),_(22,"From comprehensive audit manuals to in-depth articles on GST and tax strategy, access exclusive content designed for professionals and business owners."),d(),h(23,"div",18),w(24,S5,7,3,"div",19),d()(),h(25,"section",20)(26,"div",21)(27,"div",22)(28,"div",23)(29,"a",24)(30,"div")(31,"span",25),_(32,"NEWS"),d(),h(33,"p",26),_(34),d(),h(35,"p",27),_(36),d(),h(37,"div",28)(38,"i",29),_(39,"author: "),h(40,"p"),_(41,"Kanak Software"),d()()()(),h(42,"div",30)(43,"p",31),_(44),_t(45,"date"),d()()()()(),h(46,"div",32)(47,"div",33)(48,"span",34),_(49,"top latest news"),d(),h(50,"a",35),_(51,"view More"),d()(),h(52,"div")(53,"ul",36),w(54,I5,8,6,"li",37),_t(55,"slice"),d()()()()(),h(56,"section",38)(57,"div",39)(58,"div",33)(59,"span",40),_(60,"Articles"),d(),h(61,"a",41),_(62,"view More"),d()(),h(63,"div",42)(64,"div",43)(65,"div")(66,"ul",44),w(67,T5,10,6,"li",37),_t(68,"slice"),d()()(),h(69,"div",45)(70,"div",46)(71,"div",47)(72,"a",48)(73,"div")(74,"div",49),C(75,"img",50),d(),h(76,"div",51)(77,"span",52),_(78),_t(79,"date"),d(),h(80,"h2",53),_(81),d(),h(82,"p",54),_(83),d()()()()()()()()()(),h(84,"section",55)(85,"div",56)(86,"div",57)(87,"h2",9),_(88,"important dates"),d(),h(89,"p",17),_(90,"From filing dates to payment deadlines, keep track of all key dates in one place."),d()(),h(91,"div",58)(92,"label",59)(93,"div",60)(94,"span",61),_(95,"Select Month"),d()(),h(96,"select",62),k("change",function(s){return r.setImpDateMonth(s)}),h(97,"option",63),_(98,"All"),d(),w(99,A5,2,2,"option",64),d()(),h(100,"div",65)(101,"div",66)(102,"span",67)(103,"span"),_(104,"Share"),d(),C(105,"i",68),d()(),h(106,"ul",69)(107,"li")(108,"button",70),k("click",function(){return r.shareWhatsapp()}),C(109,"i",71),_(110," WhatsApp"),d()(),h(111,"li")(112,"button",70),k("click",function(){return r.shareMail()}),C(113,"i",72),_(114," Mail"),d()()()(),h(115,"button",73),k("click",function(){return r.print()}),C(116,"i",74),d()()(),h(117,"div")(118,"div",75,76)(120,"table",77)(121,"thead",78)(122,"tr")(123,"th",79),_(124," dates "),d(),h(125,"th",80),_(126," return types "),d(),h(127,"th",81),_(128," return form "),d()()(),h(129,"tbody"),w(130,P5,2,2,"ng-container",82),w(131,L5,3,2,"ng-template",null,83,ke),d()()()()(),C(133,"app-testimonial",84),d()),2&i){const o=Ee(132);v("ngIf",r.isLoading),p(4),Je("routerLink","/resources/",null==r.newsData[0]?null:r.newsData[0].news_type,""),p(4),v("ngForOf",Ac(9,24,r.newsData,0,9)),p(8),v("innerHTML",null==r.todayHeadlines?null:r.todayHeadlines.headline_content,Jl),p(1),v("ngIf",!1),p(7),v("ngForOf",r.productsData),p(5),Mt("routerLink","/resources/",null==r.newsData[0]?null:r.newsData[0].news_type,"/",null==r.newsData[0]?null:r.newsData[0].seo_url,""),p(5),ne(null==r.newsData[0]?null:r.newsData[0].news_title),p(2),pe("",null==r.newsData[0]?null:r.newsData[0].news_desc," "),p(8),ne(ln(45,28,null==r.newsData[0]?null:r.newsData[0].news_date)),p(6),Je("routerLink","/resources/",null==r.newsData[0]?null:r.newsData[0].news_type,""),p(4),v("ngForOf",Ac(55,30,r.newsData,0,4)),p(7),Je("routerLink","/resources/",null==r.articleData[0]?null:r.articleData[0].news_type,""),p(6),v("ngForOf",Ac(68,34,r.articleData,1,5)),p(5),Mt("routerLink","/resources/",null==r.articleData[0]?null:r.articleData[0].news_type,"/",null==r.articleData[0]?null:r.articleData[0].seo_url,""),p(6),pe("Author : Kanak SOftware - ",ln(79,38,null==r.articleData[0]?null:r.articleData[0].news_date),""),p(3),pe(" ",null==r.articleData[0]?null:r.articleData[0].news_title,""),p(2),ne(null==r.articleData[0]?null:r.articleData[0].news_desc),p(16),v("ngForOf",r.impDatesSelectOpt),p(31),v("ngIf",r.isTableLoading)("ngIfElse",o),p(3),v("data",r.clientTestimonial)}},dependencies:[Ht,He,Tt,Ar,kr,w5,qa,Sp,Mr]})}}return e})();function j5(e,n){if(1&e){const t=ue();h(0,"button",5),k("click",function(){W(t);const r=T();return Y(r.sendPageNoToParent(null==r.paginationData?null:r.paginationData.prev_page_url))}),C(1,"i",6),_(2," prev"),d()}}const B5=function(e){return{"!bg-primary/10 !text-primary !border-primary":e}};function U5(e,n){if(1&e){const t=ue();h(0,"li")(1,"button",7),k("click",function(){const o=W(t).$implicit;return Y(T().sendPageNoToParent(o.url))}),_(2),d()()}if(2&e){const t=n.$implicit;p(1),v("ngClass",ae(3,B5,1==t.active))("disabled",t.active||"..."==t.label),p(1),ne(t.page)}}function H5(e,n){if(1&e){const t=ue();h(0,"button",5),k("click",function(){W(t);const r=T();return Y(r.sendPageNoToParent(null==r.paginationData?null:r.paginationData.next_page_url))}),_(1,"next "),C(2,"i",8),d()}}let gE=(()=>{class e{constructor(){this.pageChange=new _e,this.pagesLinks=[]}ngOnChanges(t){t.paginationData&&(this.pagesLinks=this.paginationData?.links)}sendPageNoToParent(t){this.pageChange.emit(t)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-pagination"]],inputs:{paginationData:"paginationData"},outputs:{pageChange:"pageChange"},features:[tn],decls:6,vars:3,consts:[[1,"flex","gap-5","xl:gap-14","justify-center","items-center","mt-20"],["class","border capitalize font-medium rounded-md px-5 h-10 btn btn-outline",3,"click",4,"ngIf"],[1,"hidden","md:block"],[1,"flex","items-center","gap-2"],[4,"ngFor","ngForOf"],[1,"border","capitalize","font-medium","rounded-md","px-5","h-10","btn","btn-outline",3,"click"],[1,"ri-arrow-left-line"],[1,"w-10","h-10","flex","btn","border","rounded-md",3,"ngClass","disabled","click"],[1,"ri-arrow-right-line"]],template:function(i,r){1&i&&(h(0,"div",0),w(1,j5,3,0,"button",1),h(2,"div",2)(3,"ul",3),w(4,U5,3,5,"li",4),d()(),w(5,H5,3,0,"button",1),d()),2&i&&(p(1),v("ngIf",null==r.paginationData?null:r.paginationData.prev_page_url),p(3),v("ngForOf",r.pagesLinks),p(1),v("ngIf",null==r.paginationData?null:r.paginationData.next_page_url))},dependencies:[Ut,Ht,He]})}}return e})(),Vu=(()=>{class e{constructor(){this.message=""}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-notfound"]],inputs:{message:"message"},decls:4,vars:1,consts:[[1,"flex","flex-col","gap-3","items-center","w-full","p-5"],["src","../../../assets/assets/notFound.png","alt","",1,"w-[10rem]","aspect-square","object-contain"],[1,"italic","font-semibold"]],template:function(i,r){1&i&&(h(0,"div",0),C(1,"img",1),h(2,"p",2),_(3),d()()),2&i&&(p(3),ne(r.message||"Not Found"))},encapsulation:2})}}return e})();function $5(e,n){1&e&&(h(0,"div",19)(1,"button",20),C(2,"i",21),h(3,"span"),_(4,"Date : "),h(5,"i",22),_(6,"not Selected"),d()()(),h(7,"button",20),C(8,"i",23),h(9,"span"),_(10,"sort"),d(),C(11,"i",24),d(),h(12,"div",25)(13,"span"),_(14,"show"),d(),h(15,"div",26)(16,"select",27)(17,"option",28),_(18,"10"),d(),h(19,"option",28),_(20,"50"),d(),h(21,"option",28),_(22,"100"),d(),h(23,"option",28),_(24,"150"),d(),h(25,"option",28),_(26,"200"),d(),h(27,"option",28),_(28,"500"),d()(),C(29,"i",29),d(),h(30,"span",22),_(31,"entires"),d()()())}function z5(e,n){1&e&&(h(0,"li",32),C(1,"span",33)(2,"span",34)(3,"span",35),d())}const q5=function(){return[1,2,3,4,5]};function G5(e,n){1&e&&(ie(0),h(1,"ul",30),w(2,z5,4,0,"li",31),d(),re()),2&e&&(p(2),v("ngForOf",Dn(1,q5)))}function W5(e,n){1&e&&(ie(0),h(1,"span",58),_(2,"News"),d(),re())}function Y5(e,n){1&e&&(h(0,"span",59),_(1,"Article"),d())}function Z5(e,n){if(1&e&&(ie(0),w(1,W5,3,0,"ng-container",17),w(2,Y5,2,0,"ng-template",null,57,ke),re()),2&e){const t=Ee(3),i=T().$implicit;p(1),v("ngIf","NEWS"==i.news_type)("ngIfElse",t)}}function K5(e,n){if(1&e&&(h(0,"li",52)(1,"a",53)(2,"div",54),w(3,Z5,4,2,"ng-container",55),h(4,"span",22),_(5),_t(6,"date"),d()(),h(7,"h2",56),_(8),d()()()),2&e){const t=n.$implicit,i=T(3);p(1),Mt("routerLink","/resources/",t.news_type,"/",t.seo_url,""),p(2),v("ngIf","all"==i.type),p(2),ne(ln(6,5,t.news_date)),p(3),pe(" ",t.news_title," ")}}function X5(e,n){1&e&&(h(0,"ul",60)(1,"li",61)(2,"a",62)(3,"div",63)(4,"span",64),_(5,"26 jan 2024"),d(),h(6,"h2",65),_(7," Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate. "),d()()()(),h(8,"li",61)(9,"a",62)(10,"div",63)(11,"span",64),_(12,"26 jan 2024"),d(),h(13,"h2",65),_(14," Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate. "),d()()()(),h(15,"li",61)(16,"a",62)(17,"div",63)(18,"span",64),_(19,"26 jan 2024"),d(),h(20,"h2",65),_(21," Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate. "),d()()()(),h(22,"li",61)(23,"a",62)(24,"div",63)(25,"span",64),_(26,"26 jan 2024"),d(),h(27,"h2",65),_(28," Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate. "),d()()()(),h(29,"li",61)(30,"a",62)(31,"div",63)(32,"span",64),_(33,"26 jan 2024"),d(),h(34,"h2",65),_(35," Lorem ipsum dolor sit amet consectetur adipisicing elit. Nam, fuga possimus, quasi consequatur atque aliquam maiores facere quibusdam architecto, necessitatibus tenetur non sapiente deserunt cupiditate officiis rerum. Eius, ipsa cupiditate. "),d()()()()())}function Q5(e,n){if(1&e){const t=ue();ie(0),h(1,"div",37)(2,"div",38)(3,"ul",39),w(4,K5,9,7,"li",40),_t(5,"slice"),d(),h(6,"app-pagination",41),k("pageChange",function(r){return W(t),Y(T(2).goTopage(r))}),d()(),h(7,"div",42)(8,"div",43)(9,"div",44)(10,"a",45)(11,"div",46),C(12,"img",47),d(),h(13,"div",48)(14,"span",49),_(15),_t(16,"date"),d(),h(17,"h2",50),_(18),d()()(),w(19,X5,36,0,"ul",51),d()()()(),re()}if(2&e){const t=T(2);p(4),v("ngForOf",function Fw(e,n,t,i){const r=e+se,o=A(),s=ao(o,r);return aa(o,r)?Aw(o,Ot(),n,s.transform,t,i,s):s.transform(t,i)}(5,7,t.listData,1)),p(2),v("paginationData",t.paginationData),p(4),Mt("routerLink","/resources/",null==t.listData[0]?null:t.listData[0].news_type,"/",null==t.listData[0]?null:t.listData[0].seo_url,""),p(5),pe("Author : Kanak SOftware - ",ln(16,10,null==t.listData[0]?null:t.listData[0].news_date),""),p(3),pe(" ",null==t.listData[0]?null:t.listData[0].news_title," "),p(1),v("ngIf",!1)}}function J5(e,n){1&e&&C(0,"app-notfound")}function eU(e,n){if(1&e&&(w(0,Q5,20,12,"ng-container",17),w(1,J5,1,0,"ng-template",null,36,ke)),2&e){const t=Ee(2);v("ngIf",T().listData.length>0)("ngIfElse",t)}}const Bm=function(e,n){return{"bg-black text-white":e,"bg-zinc-100 border":n}};let tU=(()=>{class e{constructor(t,i,r){this.router=t,this.route=i,this.newsService=r,this.listData=[],this.currentPage=1,this.isLoading=!0,this.isDataLoading=!0,this.searchStr="",window.scrollTo(0,0),this.isLoading=!1}ngOnInit(){this.routeSub=this.route.paramMap.subscribe(t=>{this.type=t.get("type");const i=t.get("page");this.currentPage=i?+i:1,this.getData()})}getData(){this.isDataLoading=!0,this.searchStr="",this.newsService.getNewslistData(this.type).subscribe(t=>{try{t?(this.listData=t.data.news_array.data,this.response=t,this.paginationData=t.data.pagination_data,this.isDataLoading=!1):console.log(t.message)}catch(i){console.error(i)}})}getSearchData(t){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.isDataLoading=!0,t?this.newsService.getNewsBySearch(t,this.type).subscribe(i=>{try{i?(this.listData=i.data.news_array.data,this.response=i,this.paginationData=i.data.pagination_data,this.isDataLoading=!1):console.log(i.message)}catch(r){console.error(r)}}):this.getData()},1e3)}goTopage(t){window.scrollTo(0,400),t&&(this.isLoading=!0,this.isDataLoading=!0,this.newsService.getNewsDatabyPagination(t).subscribe(i=>{try{i?(this.listData=i.data.news_array.data,this.response=i,this.paginationData=i.data.pagination_data,this.isLoading=!1,this.isDataLoading=!1):(this.isDataLoading=!1,console.log(i.message))}catch(r){this.isDataLoading=!1,console.error(r)}}))}isActive(t){return this.router.url===t}static{this.\u0275fac=function(i){return new(i||e)(D(qe),D(bt),D(Fi))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-public-resources-list"]],decls:29,vars:16,consts:[[1,"min-h-screen"],[1,"flex","justify-center","pt-10","pb-5"],[1,"px-5","lg:w-1/2","xl:w-2/5","text-center"],[1,"header-text","text-3xl","uppercase","headline"],[1,"text-zinc-500"],[1,"border-2","rounded-xl","border-primary","p-1","flex","items-center","gap-4","mt-8"],[1,"ri-search-2-line","text-2xl","px-2","text-primary"],["type","text",1,"w-full","h-full","py-2",3,"ngModel","ngModelChange","input"],[1,"px-5","lg:px-14","pt-8","relative","xl:sticky","xl:top-16","bg-white","z-10"],[1,"pb-5","border-b","flex","flex-col","xl:flex-row","items-start","xl:items-end","gap-5","justify-between"],[1,"pb-5","lg:pb-2","w-full","lg:w-auto"],[1,"flex","flex-wrap","md:flex-nowrap","items-center","gap-y-6","gap-3"],["routerLink","/resources/all","href","",1,"px-5","py-2","rounded-full","capitalize",3,"ngClass"],["routerLink","/resources/NEWS","href","",1,"px-5","py-2","rounded-full","capitalize",3,"ngClass"],["routerLink","/resources/UPDATES","href","",1,"px-5","py-2","border","rounded-full","capitalize",3,"ngClass"],["class","flex gap-3 flex-wrap md:flex-nowrap",4,"ngIf"],[1,"p-5","lg:p-14","pt-5"],[4,"ngIf","ngIfElse"],["showData",""],[1,"flex","gap-3","flex-wrap","md:flex-nowrap"],[1,"hover:bg-zinc-100","capitalize","border","px-5","py-2","rounded-md","flex","items-center","gap-2"],[1,"ri-calendar-line"],[1,"text-zinc-400"],[1,"ri-sort-desc"],[1,"ri-arrow-down-s-line"],[1,"flex","items-end","gap-2","capitalize"],[1,"bg-zinc-100","capitalize","border","rounded-md"],["name","","id","",1,"py-2","px-3","bg-transparent"],["value",""],[1,"ri-expand-up-down-fill","px-1"],[1,"grid","grid-cols-1","divide-y","w-3/5"],["class","py-5 flex flex-col gap-3",4,"ngFor","ngForOf"],[1,"py-5","flex","flex-col","gap-3"],[1,"w-20","h-3","skeleton"],[1,"w-full","h-5","skeleton"],[1,"w-1/2","h-5","skeleton"],["noData",""],[1,"grid","grid-cols-1","lg:grid-cols-2","xl:grid-cols-3","gap-y-10","lg:gap-10"],[1,"xl:col-span-2","order-2","lg:order-1"],[1,"grid","grid-cols-1","divide-y"],["class","py-5",4,"ngFor","ngForOf"],[3,"paginationData","pageChange"],[1,"order-1","lg:order-2"],[1,"bg-zinc-100","rounded-2xl","h-auto","overflow-y-hidden"],[1,"h-full","overflow-y-auto","p-5","scrollbar-hidden"],[3,"routerLink"],[1,"w-full","h-[10rem]","lg:h-[15rem]"],["src","https://plus.unsplash.com/premium_photo-1681396692824-f68105dac8d5?q=80&w=1926&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D","alt","",1,"w-full","h-full","object-cover","rounded-xl"],[1,"mt-5"],[1,"text-sm","text-black","px-2","py-1"],[1,"text-2xl","text-black","font-medium","line-clamp-2","mt-2","uppercase"],["class","mt-5 grid grid-cols-1 divide-y",4,"ngIf"],[1,"py-5"],["target","_blank",1,"group",3,"routerLink"],[1,"text-sm","flex","items-end","gap-3"],[4,"ngIf"],[1,"mt-2","text-xl","line-clamp-2","group-hover:underline","group-hover:text-red-600"],["news",""],[1,"font-semibold","text-xs","text-red-600","bg-red-100","px-3","py-1","rounded-full"],[1,"font-semibold","text-xs","text-yellow-600","bg-yellow-100","px-3","py-1","rounded-full"],[1,"mt-5","grid","grid-cols-1","divide-y"],[1,"py-3"],["href",""],[1,"w-full"],[1,"text-sm","capitalize"],[1,"line-clamp-2","text-lg"]],template:function(i,r){if(1&i&&(h(0,"main",0)(1,"section",1)(2,"div",2)(3,"h1",3),_(4," Discover Insights & Updates "),d(),h(5,"p",4),_(6," Browse public resources including news, articles, blogs, and e xpert headlines. "),d(),h(7,"div",5)(8,"span"),C(9,"i",6),d(),h(10,"input",7),k("ngModelChange",function(s){return r.searchStr=s})("input",function(){return r.getSearchData(r.searchStr)}),d()()()(),h(11,"section",8)(12,"div",9)(13,"div",10)(14,"ul",11)(15,"li")(16,"a",12),_(17,"All"),d()(),h(18,"li")(19,"a",13),_(20,"news"),d()(),h(21,"li")(22,"a",14),_(23,"article"),d()()()(),w(24,$5,32,0,"div",15),d()(),h(25,"section",16),w(26,G5,3,2,"ng-container",17),w(27,eU,3,2,"ng-template",null,18,ke),d()()),2&i){const o=Ee(28);p(10),v("ngModel",r.searchStr),p(6),v("ngClass",Dr(7,Bm,r.isActive("/resources/all"),!r.isActive("/resources/all"))),p(3),v("ngClass",Dr(10,Bm,r.isActive("/resources/NEWS"),!r.isActive("/resources/NEWS"))),p(3),v("ngClass",Dr(13,Bm,r.isActive("/resources/UPDATES"),!r.isActive("/resources/UPDATES"))),p(2),v("ngIf",!1),p(2),v("ngIf",r.isDataLoading)("ngIfElse",o)}},dependencies:[Ut,Ht,He,Tt,Ar,kr,vt,zt,er,gE,Vu,Sp,Mr]})}}return e})();function nU(e,n){if(1&e&&(h(0,"li")(1,"span"),_(2),d()()),2&e){const t=T(2);p(2),ne(null==t.data[t.data.length-1]?null:t.data[t.data.length-1].label)}}function iU(e,n){if(1&e&&(h(0,"div",1)(1,"ul")(2,"li")(3,"a",2),C(4,"i",3),d()(),h(5,"li")(6,"a",4)(7,"span",5),_(8),d()()(),w(9,nU,3,1,"li",6),d()()),2&e){const t=T();p(6),Je("routerLink","/product/",null==t.data[1]?null:t.data[1].seo_url,""),p(2),ne(null==t.data[1]?null:t.data[1].label),p(1),v("ngIf",t.data.length>2)}}let Um=(()=>{class e{constructor(){this.data=[]}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-bread-crum"]],inputs:{data:"data"},decls:1,vars:1,consts:[["class","breadcrumbs capitalize",4,"ngIf"],[1,"breadcrumbs","capitalize"],["routerLink","/",1,"text-zinc-500","hover:text-black"],[1,"ri-home-5-line"],[3,"routerLink"],[1,"text-zinc-500","hover:text-black","max-w-[8rem]","truncate"],[4,"ngIf"]],template:function(i,r){1&i&&w(0,iU,10,3,"div",0),2&i&&v("ngIf",(null==r.data?null:r.data.length)>0)},dependencies:[He,Tt],encapsulation:2})}}return e})();function rU(e,n){1&e&&C(0,"app-loader")}function oU(e,n){1&e&&(h(0,"div")(1,"a",20),C(2,"span",21)(3,"span",22),d()())}const sU=function(){return[1,2,3,4]};function aU(e,n){1&e&&(ie(0),h(1,"div",18),w(2,oU,4,0,"div",19),d(),re()),2&e&&(p(2),v("ngForOf",Dn(1,sU)))}function lU(e,n){if(1&e&&(ie(0),h(1,"a",24),C(2,"i",25),h(3,"h2",26),_(4),d()(),re()),2&e){const t=T().$implicit,i=T(2);p(1),Cc("routerLink","/category/",i.productId,"/",null==t?null:t.seo_url,"/",null==t?null:t.content_category_id,""),Gi("title",null==t?null:t.category_title),p(3),ne(null==t?null:t.category_title)}}const cU=function(e){return{subcategory:e}};function uU(e,n){if(1&e&&(h(0,"a",27),C(1,"i",28),h(2,"h2",29),_(3),d()()),2&e){const t=T().$implicit;Je("routerLink","/product/",T(2).productId,""),Gi("title",null==t?null:t.category_title),v("queryParams",ae(4,cU,t.seo_url)),p(3),ne(null==t?null:t.category_title)}}function dU(e,n){if(1&e&&(h(0,"div"),w(1,lU,5,5,"ng-container",16),w(2,uU,4,6,"ng-template",null,23,ke),d()),2&e){const t=n.$implicit,i=Ee(3);p(1),v("ngIf",!t.is_subcategory)("ngIfElse",i)}}function hU(e,n){if(1&e&&(h(0,"div",18),w(1,dU,4,2,"div",19),d()),2&e){const t=T();p(1),v("ngForOf",t.categoryData)}}let fU=(()=>{class e{constructor(t,i,r,o,s){this.route=t,this.productsAPiService=i,this.setSeoService=r,this.toaster=o,this.router=s,this.searchStr="",this.productId="",this.productInfoId="",this.subCategoryId="",this.isloading=!0,this.isContentloading=!0,this.breadCrumData=[],this.categoryData=[],this.subsValidityDate=null,window.scrollTo(0,0)}ngOnInit(){Zo([this.route.params,this.route.queryParams]).subscribe(([t,i])=>{this.productId=t.id,this.subCategoryId=i.subcategory||null,this.handleRouteChange()})}handleRouteChange(){this.isloading=!0,this.isContentloading=!0,this.subCategoryId?(console.log("subCategoryId",this.subCategoryId),this.getProductsInfoSubcategory(this.productId,this.subCategoryId)):(console.log("productId",this.productId),this.getProductsInfo(this.productId))}getProductsInfo(t){t&&this.productsAPiService.getProductsData(t).subscribe(i=>{try{i.body&&"success"==i.body.status?i.body.data&&(i.body.data?.subscription_info?.is_expired&&this.router.navigate(["subscription-error","expired",this.productId]),this.productInfo=i.body.data.product_info,this.setSeoService.setSeoData(i.body.data.seo_detail),this.breadCrumData=i.body.data.breadcrumbs,this.isloading=!1,this.categoryData=i.body.data.product_content_categories_array,this.subsValidityDate=i.body.data?.subscription_info?.subscription_expiry,this.productInfoId=i.body.data.product_info.product_id,setTimeout(()=>{this.isContentloading=!1},1e3)):i.body&&"failed"==i.body.status?(this.toaster.showToast({message:i.body?.message||"Someting went wrong",title:"Request Failed",type:"error"}),this.router.navigate(["subscription-error","notFound",this.productId])):(this.toaster.showToast({message:"Someting went wrong",title:"Request Failed",type:"error"}),window.history.back())}catch(r){this.toaster.showToast({message:r?.message||"Someting went wrong",title:"Request Failed",type:"error"})}})}getProductsInfoSubcategory(t,i){t&&this.productsAPiService.getSubProductsData(t,i).subscribe(r=>{try{r.body&&"success"==r.body.status?r.body&&(r.body?.subscription_info?.is_expired&&this.router.navigate(["subscription-error","expired",this.productId]),this.productInfo=r.body.category_info,this.breadCrumData=r.body.category_info.breadcrumbs,this.isloading=!1,this.categoryData=r.body.sub_categories,this.subsValidityDate=r.body?.subscription_info?.subscription_expiry,this.productInfoId=r.body.category_info.content_category_id,setTimeout(()=>{this.isContentloading=!1},1e3)):r.body&&"failed"==r.body.status?(this.toaster.showToast({message:r.body?.message||"Someting went wrong",title:"Request Failed",type:"error"}),this.router.navigate(["subscription-error","notFound",this.productId])):(this.toaster.showToast({message:"Someting went wrong",title:"Request Failed",type:"error"}),window.history.back())}catch(o){this.toaster.showToast({message:o?.message||"Someting went wrong",title:"Request Failed",type:"error"})}})}navigateWithArray(){this.router.navigate(["/product",this.productId,"search",this.searchStr],{state:{data:{breadcrumbs:this.breadCrumData,productInfo:this.productInfo}},queryParams:this.subCategoryId?{categoryId:this.productInfoId}:{}})}static{this.\u0275fac=function(i){return new(i||e)(D(bt),D(os),D($a),D(ct),D(qe))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-product-cateogry"]],decls:27,vars:12,consts:[[4,"ngIf"],[1,"min-h-screen"],[1,"p-5","lg:px-14","py-5"],[1,"flex","flex-col","md:flex-row","justify-between","md:items-center","gap-3"],[1,"capitalize","flex","flex-col","md:flex-row","gap-y-2","gap-5","md:items-center","order-2","md:order-1"],[3,"data"],[1,"bg-red-600","px-5","py-2","rounded-md","capitalize","order-1","md:order-2"],[1,"text-xs","text-red-200","font-medium"],[1,"text-white","font-semibold"],[1,"header-text","text-3xl","capitalize","mt-5","headline"],[1,"text-sm","lg:text-base","lg:w-1/2","text-zinc-500","mt-3"],[1,"w-full","md:w-3/4","lg:w-1/2","xl:w-2/5","border-2","rounded-xl","border-primary","p-1","flex","items-center","gap-4","mt-8"],[1,"ri-search-2-line","text-2xl","px-2","text-primary"],["type","text","placeholder","Advance Search",1,"w-full","h-full","py-2",3,"ngModel","ngModelChange"],[1,"text-sm","btn","bg-primary","text-white","hover:bg-primary/80","py-2.5","px-5","rounded-lg","capitalize",3,"disabled","click"],[1,"p-5","lg:p-14","lg:py-10"],[4,"ngIf","ngIfElse"],["content",""],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","xl:grid-cols-4","gap-5"],[4,"ngFor","ngForOf"],[1,"w-full","h-[6rem]","rounded-xl","border","p-5","flex","gap-3"],[1,"w-8","h-9","rounded-md","skeleton"],[1,"w-3/5","h-3","skeleton"],["hasSubcategory",""],[1,"w-full","md:h-[6rem]","rounded-xl","border-2","p-5","inline-flex","gap-3","group","border-primary","bg-primary/10","text-primary","hover:bg-primary","hover:text-white","duration-150","transition",3,"routerLink","title"],[1,"ri-bar-chart-box-ai-line","text-2xl","font-thin"],[1,"text-xl","md:line-clamp-2","font-semibold","capitalize"],[1,"w-full","md:h-[6rem]","rounded-xl","border-2","p-5","inline-flex","gap-3","group","border-primary","bg-primary/10","text-primary","hover:bg-primary","hover:text-white",3,"routerLink","queryParams","title"],[1,"ri-arrow-right-up-line","text-2xl","font-thin"],[1,"text-lg","md:line-clamp-2","font-semibold","capitalize"]],template:function(i,r){if(1&i&&(w(0,rU,1,0,"app-loader",0),h(1,"main",1)(2,"section",2)(3,"div",3)(4,"div",4),C(5,"app-back-btn")(6,"app-bread-crum",5),d(),h(7,"div",6)(8,"span",7),_(9,"your subscription valid till"),d(),h(10,"p",8),_(11),_t(12,"date"),d()()(),h(13,"h1",9),_(14),d(),h(15,"p",10),_(16),d(),h(17,"div",11)(18,"span"),C(19,"i",12),d(),h(20,"input",13),k("ngModelChange",function(s){return r.searchStr=s}),d(),h(21,"button",14),k("click",function(){return r.navigateWithArray()}),_(22,"search"),d()()(),h(23,"section",15),w(24,aU,3,2,"ng-container",16),w(25,hU,2,1,"ng-template",null,17,ke),d()()),2&i){const o=Ee(26);v("ngIf",r.isloading),p(6),v("data",r.breadCrumData),p(5),ne(ln(12,10,r.subsValidityDate)),p(3),Cn("",null==r.productInfo?null:r.productInfo.product_name,"",null==r.productInfo?null:r.productInfo.category_title,""),p(2),ne(null==r.productInfo?null:r.productInfo.product_desc),p(4),v("ngModel",r.searchStr),p(1),v("disabled",0==r.searchStr.length),p(3),v("ngIf",r.isContentloading)("ngIfElse",o)}},dependencies:[Ht,He,Tt,vt,zt,er,za,Um,qa,Mr]})}}return e})();function pU(e,n){1&e&&(h(0,"li"),C(1,"span",23),d())}const mU=function(){return[1,2,3]};function gU(e,n){1&e&&(ie(0),h(1,"div",19)(2,"div",20)(3,"ul",21),w(4,pU,2,0,"li",22),d()()(),re()),2&e&&(p(4),v("ngForOf",Dn(1,mU)))}const _E=function(e,n){return{"bg-blue-500 text-white":e,"bg-white text-black":n}};function _U(e,n){if(1&e){const t=ue();h(0,"li")(1,"button",33),k("click",function(){const o=W(t).$implicit;return Y(T(4).getCategoryDataById(o.content_category_id))}),_(2),d()()}if(2&e){const t=n.$implicit,i=T(4);p(1),v("ngClass",Dr(2,_E,t.content_category_id===i.selectedCategoryId,t.content_category_id!==i.selectedCategoryId)),p(1),pe(" ",t.category_title," ")}}function vU(e,n){if(1&e&&(h(0,"div",31)(1,"div",32)(2,"ul",21),w(3,_U,3,5,"li",22),d()()()),2&e){const t=T(3);p(3),v("ngForOf",t.productCategory)}}function bU(e,n){if(1&e){const t=ue();h(0,"li")(1,"button",34),k("click",function(){const o=W(t).$implicit;return Y(T(3).getCategoryDataById(o.content_category_id))}),_(2),d()()}if(2&e){const t=n.$implicit,i=T(3);p(1),v("ngClass",Dr(2,_E,t.content_category_id===i.selectedCategoryId,t.content_category_id!==i.selectedCategoryId)),p(1),pe(" ",t.category_title," ")}}function yU(e,n){if(1&e&&(w(0,vU,4,1,"div",24),h(1,"div",25),C(2,"input",26),h(3,"div",27)(4,"span"),_(5,"View Category"),d(),C(6,"i",28),d(),h(7,"div",29)(8,"div",30)(9,"ul",21),w(10,bU,3,5,"li",22),d()()()()),2&e){const t=T(2);v("ngIf",t.productCategory.length>0),p(10),v("ngForOf",t.productCategory)}}function wU(e,n){1&e&&(ie(0),C(1,"span",40),re())}function CU(e,n){if(1&e&&(h(0,"span",41),_(1),d()),2&e){const t=T(3);p(1),pe("",t.productData.length," Records ")}}function DU(e,n){if(1&e){const t=ue();h(0,"div",35)(1,"span",36),_(2,"Total : "),w(3,wU,2,0,"ng-container",14),w(4,CU,2,1,"ng-template",null,37,ke),d(),h(6,"div",38)(7,"input",39),k("input",function(r){return W(t),Y(T(2).getSearchData(r))}),d()()()}if(2&e){const t=Ee(5),i=T(2);p(3),v("ngIf",i.isContentloading)("ngIfElse",t)}}function xU(e,n){1&e&&(h(0,"li",44),C(1,"span",45)(2,"span",46)(3,"span",47),d())}const EU=function(){return[1,2,3,4,5]};function MU(e,n){1&e&&(ie(0),h(1,"ul",42),w(2,xU,4,0,"li",43),d(),re()),2&e&&(p(2),v("ngForOf",Dn(1,EU)))}const SU=function(e){return{search:e}};function IU(e,n){if(1&e&&(h(0,"li",50)(1,"a",51)(2,"div",52)(3,"span",53),_(4),_t(5,"date"),d()(),h(6,"div",54)(7,"h2",55),_(8),d(),h(9,"small",41),_(10),d()()()()),2&e){const t=n.$implicit,i=T(4);p(1),Mt("routerLink","/content/",t.seo_url,"/",t.content_id,""),v("queryParams",ae(8,SU,i.searchStr)),p(3),ne(ln(5,6,t.created_at)),p(4),pe(" ",t.content_heading," "),p(2),ne(t.content_title)}}function TU(e,n){if(1&e&&(h(0,"div"),C(1,"div",48),h(2,"ul",42),w(3,IU,11,10,"li",49),d()()),2&e){const t=T(3);p(3),v("ngForOf",t.productData)}}function AU(e,n){1&e&&(h(0,"div"),C(1,"app-notfound",56),d()),2&e&&(p(1),v("message","Oops! No matching results. Try a different keyword."))}function kU(e,n){if(1&e&&(w(0,TU,4,1,"div",11),w(1,AU,2,1,"div",11)),2&e){const t=T(2);v("ngIf",t.productData.length>0),p(1),v("ngIf",0==t.productData.length)}}function RU(e,n){if(1&e&&(h(0,"section",12)(1,"div",13)(2,"div"),w(3,gU,5,2,"ng-container",14),w(4,yU,11,2,"ng-template",null,15,ke),d(),h(6,"div",16),w(7,DU,8,2,"div",17),w(8,MU,3,2,"ng-container",14),w(9,kU,2,2,"ng-template",null,18,ke),d()()()),2&e){const t=Ee(5),i=Ee(10),r=T();p(3),v("ngIf",r.isInProgress)("ngIfElse",t),p(4),v("ngIf",r.TempproductData.length>0),p(1),v("ngIf",r.isContentloading)("ngIfElse",i)}}function PU(e,n){1&e&&(h(0,"div"),C(1,"app-notfound",56),d()),2&e&&(p(1),v("message","Oops! No matching results. Try a different keyword."))}const FU=function(e){return{categoryId:e}},OU=function(){return{}};let NU=(()=>{class e{constructor(t,i,r){this.route=t,this.productsAPiService=i,this.router=r,this.searchStr="",this.productId="",this.categoriesArr=[],this.productCategory=[],this.productData=[],this.TempproductData=[],this.isInProgress=!0,this.isContentloading=!0,this.isThereData=!0,this.categoryId="",Zo([this.route.params,this.route.queryParams]).subscribe(([s,a])=>{this.productId=s.id,this.searchStr=s.str||null,this.categoryId=a.categoryId||"",this.getSearchByCategory(this.productId,this.searchStr,this.categoryId)});const o=this.router.getCurrentNavigation();if(o?.extras?.state){const s=o.extras.state.data;this.breadCrumData=s?.breadcrumbs??[],this.productInfo=s?.productInfo??[]}}getSearchByCategory(t,i,r=null){console.log(i,t),this.isContentloading=!0,this.isInProgress=!0,this.isThereData=!0;let o=new FormData;o.append("q",i),o.append("category_id",r),this.productsAPiService.searchCategory(t,o).subscribe(s=>{try{"success"==s.body.status&&(this.productCategory=s.body.categories_title,this.productData=s.body.productData,this.TempproductData=s.body.productData,this.isContentloading=!1,this.isInProgress=!1,(0==this.productCategory.length||0==this.productData.length)&&(this.isThereData=!1))}catch(a){console.error(a)}})}getCategoryDataById(t){this.selectedCategoryId=t,this.isContentloading=!0,$("#my-collapse").prop("checked",!1);let i=new FormData;i.append("q",this.searchStr),this.productsAPiService.searchCategoryById(this.productId,t,i).subscribe(r=>{try{"success"==r.body.status&&(this.productData=r.body.productData,this.TempproductData=r.body.productData,this.isContentloading=!1)}catch(o){console.error(o)}})}getSearchData(t){setTimeout(()=>{this.productData=""==t.target.value?this.TempproductData:this.TempproductData.filter(i=>i.content_title.toLowerCase().includes(t.target.value.toLowerCase())||i.content_heading.toLowerCase().includes(t.target.value.toLowerCase()))},1e3)}static{this.\u0275fac=function(i){return new(i||e)(D(bt),D(os),D(qe))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-product-search-list"]],decls:18,vars:14,consts:[[1,"min-h-screen"],[1,"p-5","lg:px-14","py-5"],[1,"capitalize","flex","flex-col","md:flex-row","gap-y-2","gap-5","md:items-center"],[3,"data"],[1,"header-text","text-3xl","capitalize","mt-5","headline"],[1,"text-sm","lg:text-base","lg:w-1/2","text-zinc-500","mt-3"],[1,"w-full","md:w-3/4","lg:w-1/2","xl:w-2/5","border-2","rounded-xl","border-primary","p-1","flex","items-center","gap-4","mt-8"],[1,"ri-search-2-line","text-2xl","px-2","text-primary"],["type","text","placeholder","Search",1,"w-full","h-full","py-2",3,"ngModel","ngModelChange"],[1,"text-sm","btn","bg-primary","text-white","hover:bg-primary/80","py-2.5","px-5","rounded-lg","capitalize",3,"routerLink","queryParams","disabled"],["class","p-5 lg:p-14 lg:py-10",4,"ngIf"],[4,"ngIf"],[1,"p-5","lg:p-14","lg:py-10"],[1,"grid","grid-cols-1","lg:grid-cols-2","xl:grid-cols-3","gap-5","lg:gap-10","xl:gap-14"],[4,"ngIf","ngIfElse"],["showCategory",""],[1,"xl:col-span-2"],["class","flex gap-3 flex-col md:flex-row md:items-end justify-between",4,"ngIf"],["showContentData",""],[1,""],[1,"border","rounded-xl","p-5","max-h-[30rem]","overflow-y-auto"],[1,"flex","flex-col","gap-2"],[4,"ngFor","ngForOf"],[1,"flex","w-full","py-5","skeleton"],["class","sticky top-20",4,"ngIf"],[1,"collapse","bg-base-200","lg:hidden"],["type","checkbox","id","my-collapse"],[1,"collapse-title","text-base","font-medium","flex","justify-between","items-center"],[1,"ri-arrow-down-s-line"],[1,"collapse-content"],[1,"max-h-[30rem]","overflow-y-auto"],[1,"sticky","top-20"],[1,"border","rounded-xl","p-5","max-h-[30rem]","overflow-y-auto","hidden","lg:block"],[1,"w-full","btn","justify-start","capitalize","text-start","leading-5",3,"ngClass","click"],[1,"w-full","btn","justify-start","capitalize","text-start","leading-4",3,"ngClass","click"],[1,"flex","gap-3","flex-col","md:flex-row","md:items-end","justify-between"],[1,"flex","gap-2","items-center"],["showcount",""],[1,"flex","items-center","gap-3","border","rounded-lg","p-2","w-[15rem]"],["type","text","placeholder","Search in List",1,"w-full",3,"input"],[1,"w-10","h-3","skeleton"],[1,"font-semibold"],[1,"grid","grid-cols-1","divide-y"],["class","py-5 flex flex-col gap-3",4,"ngFor","ngForOf"],[1,"py-5","flex","flex-col","gap-3"],[1,"w-20","h-3","skeleton"],[1,"w-full","h-5","skeleton"],[1,"w-1/2","h-5","skeleton"],[1,"pb-5","border-b","flex","flex-col","xl:flex-row","items-start","xl:items-end","gap-5","justify-between"],["class","py-5",4,"ngFor","ngForOf"],[1,"py-5"],["target","_blank",1,"group",3,"routerLink","queryParams"],[1,"text-sm","flex","items-end","gap-3"],[1,"text-zinc-400"],[1,"leading-3","mt-2"],[1,"mt-2","text-xl","line-clamp-2","group-hover:underline"],[3,"message"]],template:function(i,r){1&i&&(h(0,"main",0)(1,"section",1)(2,"div",2)(3,"div"),C(4,"app-back-btn"),d(),C(5,"app-bread-crum",3),d(),h(6,"h1",4),_(7),d(),h(8,"p",5),_(9),d(),h(10,"div",6)(11,"span"),C(12,"i",7),d(),h(13,"input",8),k("ngModelChange",function(s){return r.searchStr=s}),d(),h(14,"button",9),_(15," search "),d()()(),w(16,RU,11,5,"section",10),w(17,PU,2,1,"div",11),d()),2&i&&(p(5),v("data",r.breadCrumData),p(2),Cn(" ",null==r.productInfo?null:r.productInfo.product_name,"",null==r.productInfo?null:r.productInfo.category_title," "),p(2),pe(" ",null==r.productInfo?null:r.productInfo.product_desc," "),p(4),v("ngModel",r.searchStr),p(1),Mt("routerLink","/product/",r.productId,"/search/",r.searchStr,""),v("queryParams",r.categoryId?ae(11,FU,r.categoryId):Dn(13,OU))("disabled",0==r.searchStr.length),p(2),v("ngIf",r.isThereData),p(1),v("ngIf",!r.isThereData))},dependencies:[Ut,Ht,He,Tt,vt,zt,er,za,Um,Vu,Mr]})}}return e})();function LU(e,n){1&e&&C(0,"app-loader")}function VU(e,n){if(1&e){const t=ue();h(0,"button",31),k("click",function(){return W(t),Y(T().claer())}),C(1,"i",32),d()}}function jU(e,n){if(1&e&&(h(0,"th",33),_(1),d()),2&e){const t=n.$implicit;p(1),pe(" ",t.specification_title," ")}}function BU(e,n){if(1&e){const t=ue();h(0,"th",34)(1,"div",35)(2,"input",36),k("input",function(){const o=W(t).index;return Y(T().setSearchVal(o,"input"))}),d(),h(3,"div",37)(4,"div")(5,"input",38),k("change",function(){const o=W(t).index;return Y(T().setSearchVal(o,"radio"))}),d(),h(6,"label",39),_(7,"Match"),d()(),h(8,"div")(9,"input",40),k("change",function(){const o=W(t).index;return Y(T().setSearchVal(o,"radio"))}),d(),h(10,"label",41),_(11,"Exact"),d()()()()()}if(2&e){const t=n.index;p(2),Je("id","searchByword_input_",t,"")("name","searchByword_",t,""),p(3),Je("id","searchByword_match_",t,"")("name","searchByword_type_",t,""),p(1),Je("for","searchByword_match_",t,""),p(3),Je("id","searchByword_exc_match_",t,"")("name","searchByword_type_",t,""),p(1),Je("for","searchByword_exc_match_",t,"")}}function UU(e,n){1&e&&C(0,"span",47)}function HU(e,n){1&e&&C(0,"span",48)}function $U(e,n){if(1&e&&(h(0,"td",44),w(1,UU,1,0,"span",45),w(2,HU,1,0,"span",46),d()),2&e){const t=n.index;p(1),v("ngIf",0==t),p(1),v("ngIf",0!=t)}}function zU(e,n){if(1&e&&(h(0,"tr"),w(1,$U,3,2,"td",43),d()),2&e){const t=T(2);p(1),v("ngForOf",t.tableHeaderDate)}}const qU=function(){return[1,2,3,4,5]};function GU(e,n){1&e&&(ie(0),w(1,zU,2,1,"tr",42),re()),2&e&&(p(1),v("ngForOf",Dn(1,qU)))}function WU(e,n){if(1&e&&(h(0,"td",53)(1,"a",54)(2,"span",55),_(3),d()()()),2&e){const t=n.$implicit,i=T().$implicit;p(1),Mt("routerLink","/content/",i[i.length-1],"/",i[0],""),p(2),ne(t)}}function YU(e,n){if(1&e&&(h(0,"tr",51),w(1,WU,4,3,"td",52),d()),2&e){const t=n.$implicit;p(1),v("ngForOf",t.slice(1,t.length-1))}}function ZU(e,n){if(1&e&&(ie(0),w(1,YU,2,1,"tr",50),re()),2&e){const t=T(2);p(1),v("ngForOf",t.tableData)}}function KU(e,n){if(1&e&&(h(0,"tr")(1,"td",56),C(2,"app-notfound"),d()()),2&e){const t=T(2);p(1),v("colSpan",t.tableHeaderDate.length)}}function XU(e,n){if(1&e&&(w(0,ZU,2,1,"ng-container",28),w(1,KU,3,1,"ng-template",null,49,ke)),2&e){const t=Ee(2);v("ngIf",T().tableData.length>0)("ngIfElse",t)}}const QU=function(e){return{"lg:px-14":e}},JU=function(e,n){return{"table-auto lg:table-fixed":e,"table-auto":n}};let eH=(()=>{class e{constructor(t,i,r,o,s){this.route=t,this.router=i,this.productsAPiService=r,this.setSeoService=o,this.toaster=s,this.isLoading=!0,this.isTableLoading=!1,this.categoryId="",this.productId="",this.categoryUrl="",this.tableHeaderDate=[],this.tableData=[],this.filterColumnData=[],this.searchStr="",this.numberOfRecord=50,this.tottalRecord=0,this.paginationData=[],this.breadCrumData=[],this.reqData={draw:1,start:0,length:this.numberOfRecord,search:{value:"",regex:!1},content_category_id:null},window.scrollTo(0,0),this.route.params.subscribe(a=>{this.categoryId=a.category_id,this.categoryUrl=a.category_url,this.productId=a.product_id,this.reqData.content_category_id=this.categoryId,this.categoryId&&this.categoryUrl&&this.productId&&this.getCategoryData()})}getCategoryData(){if(this.productId&&this.categoryId&&this.categoryUrl){this.filterColumnData=[],this.reqData.search.value=this.searchStr?this.searchStr:"";let t=this.reqData;this.isTableLoading=!0,this.isLoading=!0,this.productsAPiService.getcategoryData(this.productId,this.categoryUrl,this.categoryId,t).subscribe(i=>{try{i.body&&"success"==i.body.status?i.body.data&&(i.body?.data?.subscription_info?.is_expired&&this.router.navigate(["subscription-error","expired",this.productId]),this.tableData=i.body.data,this.tableHeaderDate=i.body.header_data,this.categoryInfo=i.body.category_info,this.generateFilterColumn(this.tableHeaderDate),this.tottalRecord=i.body.pagination_data.total_count,this.paginationData=i.body.pagination_data,this.breadCrumData=i.body.category_info.breadcrumbs,this.setSeoService.setSeoData({seo_title:this.categoryInfo.seo_title||"",seo_meta_keywords:this.categoryInfo.seo_meta_keywords||"",seo_meta_desc:this.categoryInfo.seo_meta_desc||""}),this.isTableLoading=!1,this.isLoading=!1):i.body&&"failed"==i.body.status?(this.toaster.showToast({message:i.body?.message||"Someting went wrong",title:"Request Failed",type:"error"}),this.router.navigate(["subscription-error","notFound",this.productId])):(this.toaster.showToast({message:"Someting went wrong",title:"Request Failed",type:"error"}),window.history.back())}catch(r){this.toaster.showToast({message:r?.message||"Someting went wrong",title:"Request Failed",type:"error"}),window.history.back()}})}}generateFilterColumn(t){for(let i=0;i<t.length;i++)this.filterColumnData.push({data:i,name:"",searchable:!0,orderable:!1,search:{value:"",regex:!1}});console.log(this.filterColumnData)}setSearchVal(t,i){let r=$("#searchByword_input_"+t).val(),s=`${r}#~#${$(`input[name="searchByword_type_${t}"]:checked`).val()}`;r||(s=""),this.filterColumnData[t].search.value=s,"input"==i?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.getFiterData()},1e3)):"radio"==i&&r&&this.getFiterData()}getFiterData(){if(this.productId&&this.categoryId&&this.categoryUrl){this.isTableLoading=!0;let t={...this.reqData,columns:this.filterColumnData};t.search.value=this.searchStr?this.searchStr:"",t.length=this.numberOfRecord,this.productsAPiService.getcategoryData(this.productId,this.categoryUrl,this.categoryId,t).subscribe(r=>{if(r.body)try{"success"==r.body.status&&(this.tableData=r.body.data,this.isTableLoading=!1,this.tottalRecord=r.body.pagination_data.total_count,this.paginationData=r.body.pagination_data)}catch{}})}}goTopage(t){if(t){const r=new URL(t).searchParams.get("page");this.isTableLoading=!0;let o={...this.reqData,columns:this.filterColumnData};o.search.value=this.searchStr?this.searchStr:"",o.start=(Number(r)-1)*this.numberOfRecord,o.length=this.numberOfRecord;let s=o;window.scrollTo({top:180,behavior:"smooth"}),this.productsAPiService.getCategoryDataByPagination(t,s).subscribe(a=>{if(a.body)try{"success"==a.body.status&&(this.tableData=a.body.data,this.paginationData=a.body.pagination_data,this.isTableLoading=!1)}catch{}})}}claer(){this.searchStr="",this.getCategoryData()}search(){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{""!=this.searchStr?this.getFiterData():""==this.searchStr&&this.getCategoryData()},1e3)}static{this.\u0275fac=function(i){return new(i||e)(D(bt),D(qe),D(os),D($a),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-category"]],decls:50,vars:22,consts:[[4,"ngIf"],[1,"min-h-screen"],[1,"p-5","lg:px-14","py-5"],[1,"capitalize","flex","flex-col","md:flex-row","gap-y-2","gap-5","md:items-center"],[3,"data"],[1,"header-text","text-3xl","capitalize","mt-5","headline"],[1,"w-full","md:w-3/4","lg:w-1/2","xl:w-2/5","border-2","rounded-xl","border-primary","p-1","flex","items-center","gap-4","mt-8"],[1,"ri-search-2-line","text-2xl","px-2","text-primary"],["type","text","placeholder","Search products",1,"w-full","h-full","py-2",3,"ngModel","ngModelChange","input"],["class","p-2.5",3,"click",4,"ngIf"],[1,"p-5","lg:pt-0",3,"ngClass"],[1,"pb-5","border-b","flex","flex-col","xl:flex-row","items-start","xl:items-end","gap-5","justify-between"],[1,"font-semibold"],[1,"flex","items-end","gap-2","capitalize"],[1,"bg-zinc-100","capitalize","border","rounded-md"],[1,"py-2","px-3","bg-transparent",3,"ngModel","ngModelChange"],["value","50","selected",""],["value","100",3,"disabled"],["value","150",3,"disabled"],["value","200",3,"disabled"],[1,"ri-expand-up-down-fill","px-1"],[1,"text-zinc-400"],[1,"relative","overflow-x-auto","mt-10"],["id","contentTable",1,"w-full","text-sm","text-left","rounded-t-2xl","overflow-hidden",2,"border","gray",3,"ngClass"],[1,"bg-primary","text-white","uppercase"],["scope","col","class","p-3 border text-xs",4,"ngFor","ngForOf"],["id","serach_row",1,"border-b","sticky","top-0"],["scope","row","class","p-2 font-medium  text-wrap border",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["tableContent",""],[3,"paginationData","pageChange"],[1,"p-2.5",3,"click"],[1,"ri-close-line"],["scope","col",1,"p-3","border","text-xs"],["scope","row",1,"p-2","font-medium","text-wrap","border"],[1,"flex","flex-wrap","items-center","gap-2"],["type","text","placeholder","Search",1,"w-full","min-w-20",3,"id","name","input"],[1,"flex","items-center","bg-blue-200","text-blue-600","p-0.5","rounded-md","ios_toogle_btn_div"],["value","MATCH","type","radio","checked","",2,"display","none",3,"id","name","change"],["data-tip","Match",1,"flex","text-xs","justify-center","items-center","h-6","px-2","rounded","tooltip","tooltip-top","cursor-pointer",3,"for"],["value","EXACT","type","radio",2,"display","none",3,"id","name","change"],["data-tip","Exact match",1,"flex","text-xs","justify-center","items-center","h-6","px-2","rounded","tooltip","tooltip-top","cursor-pointer",3,"for"],[4,"ngFor","ngForOf"],["class","p-2 font-medium text-wrap border",4,"ngFor","ngForOf"],[1,"p-2","font-medium","text-wrap","border"],["class","w-5 h-3 skeleton flex",4,"ngIf"],["class","flex w-full max-w-[10rem] h-3 skeleton",4,"ngIf"],[1,"w-5","h-3","skeleton","flex"],[1,"flex","w-full","max-w-[10rem]","h-3","skeleton"],["noData",""],["class","hover:bg-zinc-100",4,"ngFor","ngForOf"],[1,"hover:bg-zinc-100"],["scope","row","class","p-2 font-medium  border text-xs text-balance word-break",4,"ngFor","ngForOf"],["scope","row",1,"p-2","font-medium","border","text-xs","text-balance","word-break"],["target","_blank",1,"hover:underline","block","w-full","hover:text-red-500",3,"routerLink"],[1,"w-full","text-wrap"],[1,"px-6","py-4","font-medium","text-wrap","border","text-center",3,"colSpan"]],template:function(i,r){if(1&i&&(w(0,LU,1,0,"app-loader",0),h(1,"main",1)(2,"section",2)(3,"div",3)(4,"div"),C(5,"app-back-btn"),d(),h(6,"div"),C(7,"app-bread-crum",4),d()(),h(8,"h1",5),_(9),d(),h(10,"div",6)(11,"span"),C(12,"i",7),d(),h(13,"input",8),k("ngModelChange",function(s){return r.searchStr=s})("input",function(){return r.search()}),d(),w(14,VU,2,0,"button",9),d()(),h(15,"section",10)(16,"div",11)(17,"div")(18,"span"),_(19,"Total : "),h(20,"span",12),_(21),d()()(),h(22,"div",13)(23,"span"),_(24,"show"),d(),h(25,"div",14)(26,"select",15),k("ngModelChange",function(s){return r.numberOfRecord=s})("ngModelChange",function(){return r.getFiterData()}),h(27,"option",16),_(28,"50"),d(),h(29,"option",17),_(30,"100"),d(),h(31,"option",18),_(32,"150"),d(),h(33,"option",19),_(34,"200"),d()(),C(35,"i",20),d(),h(36,"span",21),_(37,"entires"),d()()(),h(38,"div",22)(39,"table",23)(40,"thead",24)(41,"tr"),w(42,jU,2,1,"th",25),d()(),h(43,"tbody")(44,"tr",26),w(45,BU,12,8,"th",27),d(),w(46,GU,2,2,"ng-container",28),w(47,XU,3,2,"ng-template",null,29,ke),d()()(),h(49,"app-pagination",30),k("pageChange",function(s){return r.goTopage(s)}),d()()()),2&i){const o=Ee(48);v("ngIf",r.isLoading),p(7),v("data",r.breadCrumData),p(2),ne(null==r.categoryInfo?null:r.categoryInfo.category_title),p(4),v("ngModel",r.searchStr),p(1),v("ngIf",""!=r.searchStr),p(1),v("ngClass",ae(17,QU,"judgement-1"!=r.categoryUrl)),p(6),pe("",r.tottalRecord," Records "),p(5),v("ngModel",r.numberOfRecord),p(3),v("disabled",r.tottalRecord<100),p(2),v("disabled",r.tottalRecord<150),p(2),v("disabled",r.tottalRecord<200),p(6),v("ngClass",Dr(19,JU,"judgement-1"==r.categoryUrl,"judgement-1"!=r.categoryUrl)),p(3),v("ngForOf",r.tableHeaderDate),p(3),v("ngForOf",r.filterColumnData),p(1),v("ngIf",r.isTableLoading)("ngIfElse",o),p(3),v("paginationData",r.paginationData)}},dependencies:[Ut,Ht,He,Tt,Ar,kr,vt,Tr,zt,er,za,Um,gE,qa,Vu],styles:["#contentTable[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-child   th[_ngcontent-%COMP%]:first-child{width:8rem}#contentTable[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:first-child   th[_ngcontent-%COMP%]:nth-child(2){min-width:12rem!important}"]})}}return e})(),tH=(()=>{class e{constructor(){this.synth=window.speechSynthesis,this.utterance=null,this.voices=[],this.synth.onvoiceschanged=()=>{this.voices=this.synth.getVoices()}}ngOnInit(){this.synth=window.speechSynthesis,this.voices=this.synth.getVoices(),0===this.voices.length&&(speechSynthesis.onvoiceschanged=()=>{this.voices=speechSynthesis.getVoices()})}play(t,i="Microsoft Ravi - English (India)"){if(!t)return;(!this.voices||0===this.voices.length)&&(this.voices=speechSynthesis.getVoices()),this.synth.speaking&&this.utterance&&this.synth.cancel(),this.utterance=new SpeechSynthesisUtterance(t);const r=this.voices.find(o=>o.name===i);r?(this.utterance.voice=r,this.utterance.lang=r.lang):(console.warn(`Voice "${i}" not found. Using default voice.`),this.utterance.voice=this.voices[0]||null,this.utterance.lang="en-IN"),this.synth.speak(this.utterance)}pause(){this.synth.speaking&&this.synth.pause()}cancel(){this.synth.speaking&&this.synth.cancel()}repeat(t){this.cancel(),this.play(t)}resume(){this.synth.paused&&this.utterance&&this.synth.resume()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),nH=(()=>{class e{constructor(){this.recognition=null,this.isListening=!1,this.transcriptSubject=new je,this.statusSubject=new je;const{webkitSpeechRecognition:t}=window,i=t||window.SpeechRecognition;i?(this.recognition=new i,this.recognition.lang="en-US",this.recognition.interimResults=!0,this.recognition.maxAlternatives=1,this.recognition.onstart=()=>{this.isListening=!0,this.statusSubject.next("Listening...")},this.recognition.onresult=r=>{let o="",s="";for(let a=r.resultIndex;a<r.results.length;a++){const l=r.results[a],c=l[0].transcript;l.isFinal?s+=c+" ":o+=c+" "}o&&this.transcriptSubject.next(o),s&&this.transcriptSubject.next(s)},this.recognition.onend=()=>{this.isListening=!1,this.statusSubject.next("Start Voice Input")},this.recognition.onerror=r=>{console.error("Speech recognition error:",r),this.statusSubject.next("Error occurred")}):console.error("Speech Recognition API not supported in this browser.")}startListening(){this.recognition&&!this.isListening&&this.recognition.start()}stopListening(){this.recognition&&this.isListening&&this.recognition.stop()}getTranscriptObservable(){return this.transcriptSubject.asObservable()}getStatusObservable(){return this.statusSubject.asObservable()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const iH=["main_content"];function rH(e,n){1&e&&C(0,"app-loader")}function oH(e,n){if(1&e){const t=ue();ie(0),h(1,"button",29),k("click",function(){return W(t),Y(T().startRecording())}),C(2,"i",30),d(),re()}}function sH(e,n){if(1&e){const t=ue();h(0,"button",31),k("click",function(){return W(t),Y(T().stopRecording())}),C(1,"i",32),d()}}function aH(e,n){if(1&e&&(ie(0),h(1,"span",33),_(2),d(),re()),2&e){const t=T();p(2),pe("Not Found : ",t.searchStr,"")}}function lH(e,n){if(1&e){const t=ue();ie(0),h(1,"button",34),k("click",function(){return W(t),Y(T().speak())}),h(2,"span"),_(3,"Select text"),d(),C(4,"i",35),d(),re()}}function cH(e,n){if(1&e){const t=ue();ie(0),h(1,"button",42),k("click",function(){return W(t),Y(T(2).resume())}),C(2,"i",43),d(),re()}}function uH(e,n){if(1&e){const t=ue();h(0,"button",44),k("click",function(){return W(t),Y(T(2).pausePly())}),C(1,"i",45),d()}}function dH(e,n){if(1&e){const t=ue();h(0,"div",36)(1,"div",37),w(2,cH,3,0,"ng-container",8),w(3,uH,2,0,"ng-template",null,38,ke),h(5,"button",39),k("click",function(){W(t);const r=T();return Y(r.texttospeech.repeat(r.selectedText))}),C(6,"i",40),d()(),h(7,"div",37)(8,"button",41),k("click",function(){return W(t),Y(T().cancel())}),C(9,"i",32),d()()()}if(2&e){const t=Ee(4),i=T();p(2),v("ngIf",!i.isPlaying)("ngIfElse",t)}}function hH(e,n){if(1&e&&(h(0,"a",46),C(1,"i",47),_(2," Download"),d()),2&e){const t=T();v("href",null==t.contentData?null:t.contentData.content_file,wi)}}let fH=(()=>{class e{constructor(t,i,r,o,s,a,l,c,u,f,m,g){this.route=t,this.productsAPiService=i,this.setSeoService=r,this.texttospeech=o,this.Toast=s,this.speechToTextService=a,this.sanitizer=l,this.renderer=c,this.documentPrint=u,this.linkupdateService=f,this.whatsapp=m,this.dataShare=g,this.observer=null,this.isLoading=!0,this.categoryId="",this.contentUrl="",this.contentId="",this.isPlaying=!1,this.isTTSserviceActive=!1,this.selectedText="",this.matchCount=0,this.searchStr="",this.isRecording=!1,this.status="Start Voice Input",window.scrollTo(0,0),this.route.params.subscribe(b=>{this.contentUrl=b.view_url,this.contentId=b.view_id}),this.getData()}ngOnInit(){this.speechToTextService.getTranscriptObservable().subscribe(t=>{this.searchStr=t}),this.speechToTextService.getStatusObservable().subscribe(t=>{this.status=t})}getData(){this.productsAPiService.getContentData(this.contentUrl,this.contentId,{}).subscribe(t=>{try{if("success"==t.body.status){this.contentData=t.body.content;let i=this.linkupdateService.updateLinks(this.contentData.content_desc);this.contentDesc=this.sanitizeHtml(i),this.setSeoService.setSeoData({seo_title:t.body.content.seo_title??t.body.content.content_heading,seo_meta_desc:t.body.content.seo_meta_desc,seo_meta_keywords:t.body.content.seo_meta_keywords,seo_url:t.body.content.seo_url}),this.route.queryParams.subscribe(o=>{this.searchStr=o.search?o.search:""}),this.searchStr&&this.search(),this.isLoading=!1}}catch{}})}sanitizeHtml(t){return this.sanitizer.bypassSecurityTrustHtml(t)}handleTextSelection(){const t=window.getSelection();if(t){const i=t.toString().trim(),r=t.getRangeAt(0),o=1===r.startContainer.nodeType?r.startContainer:r.startContainer.parentElement;o instanceof Element&&o.closest("#main_content")?i&&(this.selectedText=i):this.selectedText=""}}speak(){this.selectedText?(this.texttospeech.play(this.selectedText),this.isTTSserviceActive=!0,this.isPlaying=!0):this.Toast.showToast({type:"info",title:"Info",message:"Please select text to speak "})}resume(){this.texttospeech.resume(),this.isPlaying=!0}pausePly(){this.texttospeech.pause(),this.isPlaying=!1}cancel(){this.texttospeech.cancel(),this.isPlaying=!1,this.isTTSserviceActive=!1,this.selectedText=""}highlightText(t,i){if(!i)return;const r=i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),o=new RegExp(r,"gi");if(t.nodeType===Node.TEXT_NODE){const s=t.nodeValue||"",a=s.match(o);if(a){this.matchCount+=a.length;const l=s.replace(o,u=>`<mark class="bg-yellow-500 text-black">${u}</mark>`),c=document.createElement("span");c.innerHTML=l,t.parentNode&&(Array.from(c.childNodes).forEach(u=>{t.parentNode?.insertBefore(u,t)}),t.parentNode.removeChild(t))}}else t.nodeType===Node.ELEMENT_NODE&&(new Set(["SCRIPT","STYLE","META","NOSCRIPT"]).has(t.tagName)||t.childNodes.forEach(a=>this.highlightText(a,i)))}search(){const o=(new DOMParser).parseFromString(this.contentData.content_desc,"text/html").body;this.matchCount=0,this.searchStr?(this.highlightText(o,this.searchStr),this.contentDesc=this.sanitizeHtml(o.innerHTML)):this.contentDesc=this.sanitizeHtml(this.contentData.content_desc)}startRecording(){this.speechToTextService.startListening(),this.isRecording=!0}stopRecording(){this.speechToTextService.stopListening(),this.isRecording=!1}print(){this.documentPrint.print({data:this.main_content.nativeElement.innerHTML,heading:this.contentData?.content_heading,subtext:""})}shareWhatsapp(){let t=window.location.href;this.whatsapp.whatsAppShare(`Check out this Article: ${this.contentData?.content_heading}`,t)}sendOnMail(){this.productsAPiService.sendOnMail("content",this.contentId)?.subscribe()}ngAfterViewInit(){this.observeDOMChanges()}observeDOMChanges(){this.main_content&&(this.observer=new MutationObserver(()=>{this.attachClickEvents()}),this.observer.observe(this.main_content.nativeElement,{childList:!0,subtree:!0}),this.attachClickEvents())}attachClickEvents(){this.main_content.nativeElement.querySelectorAll(".showLoginForm").forEach(i=>{this.renderer.listen(i,"click",()=>this.showLoginForm())})}showLoginForm(){this.Toast.showToast({message:"Please login to access this Link",title:"Login Required",type:"warning"}),this.dataShare.changeData({for:"navbar",data:"login"})}ngOnDestroy(){this.observer&&this.observer.disconnect(),this.cancel()}static{this.\u0275fac=function(i){return new(i||e)(D(bt),D(os),D($a),D(tH),D(ct),D(nH),D(Up),D(yn),D(Vm),D(Lm),D(jm),D(jr))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-view"]],viewQuery:function(i,r){if(1&i&&Vn(iH,7),2&i){let o;xn(o=En())&&(r.main_content=o.first)}},decls:43,vars:10,consts:[[4,"ngIf"],[1,"min-h-screen"],[1,"p-5","lg:p-14","!pb-5"],[1,"capitalize","flex","flex-col","md:flex-row","gap-y-2","gap-5","md:items-center"],[1,"header-text","text-3xl","capitalize","mt-5","headline"],[1,"w-full","md:w-3/4","lg:w-1/2","xl:w-2/5","border-2","rounded-xl","border-primary","p-1","flex","items-center","gap-4","mt-8","mb-2"],[1,"ri-search-2-line","text-2xl","px-2","text-primary"],["type","search","placeholder","Search",1,"w-full","h-full","py-2",3,"ngModel","ngModelChange"],[4,"ngIf","ngIfElse"],["stop_recording",""],[1,"p-5","lg:p-14","!py-5","border-b","bg-white","xl:sticky","top-0"],[1,"flex","flex-col","xl:flex-row","xl:items-center","xl:justify-between","gap-5"],[1,"flex","items-center","gap-2"],["ttsPlayer",""],[1,"flex","flex-wrap","gap-3"],[1,"btn","bg-green-100","text-green-700","hover:bg-green-200","border-0",3,"click"],[1,"ri-whatsapp-fill","text-2xl"],[1,"btn","bg-amber-100","text-amber-700","hover:bg-amber-200","border-0",3,"click"],[1,"ri-printer-line","font-thin","text-2xl"],["target","_blank","class","btn bg-red-100 text-red-700 hover:bg-red-200 border-0",3,"href",4,"ngIf"],[1,"btn","bg-blue-100","text-blue-700","hover:bg-blue-200","border-0",3,"click"],[1,"ri-mail-line","font-thin","text-2xl"],["id","main_content",1,"p-5","lg:p-14","selection:text-white","selection:bg-black","bg-white","dynamic-content-section",3,"mouseup"],["main_content",""],[1,"w-full","html-container",3,"innerHTML"],[1,"mx-5","lg:mx-14"],[1,"p-5","lg:px-14","flex","justify-between","items-center"],["onclick","window.scrollTo({top: 0, behavior: 'smooth'})",1,"bg-zinc-900","text-white","font-semibold","px-5","py-2","rounded-full","flex","items-center","gap-2"],[1,"ri-arrow-up-line","text-2xl"],["data-tip","Start Recording",1,"btn","bg-sky-100","hover:bg-sky-200","border-0","text-primary","w-12","h-12","flex","justify-center","items-center","rounded-lg","capitalize","text-xl",3,"click"],[1,"ri-mic-fill"],["data-tip","Stop Recording",1,"btn","bg-sky-100","hover:bg-sky-200","border-0","text-primary","w-12","h-12","flex","justify-center","items-center","rounded-lg","capitalize","text-xl",3,"click"],[1,"ri-close-large-line"],[1,"text-red-500","text-sm"],["data-tip","Text to speech",1,"btn","text-white","flex","items-center","gap-2","py-0","bg-blue-500","hover:bg-blue-700","tooltip",3,"click"],[1,"ri-speak-line","text-xl"],[1,"flex","items-center","h-12","bg-blue-500","w-auto","p-1","rounded-md","divide-x"],[1,"h-full"],["pause",""],["data-tip","Repeat",1,"hover:bg-blue-500","h-full","rounded","aspect-square","text-2xl","text-white","tooltip",3,"click"],[1,"ri-reset-left-line"],["data-tip","Close player",1,"hover:bg-blue-500","h-full","rounded","aspect-square","text-2xl","text-white","tooltip",3,"click"],["data-tip","Play",1,"hover:bg-blue-500","h-full","rounded","aspect-square","text-2xl","text-white","tooltip",3,"click"],["data-tip","Text to speech",1,"ri-play-fill"],["data-tip","Pause",1,"hover:bg-blue-500","h-full","rounded","aspect-square","text-2xl","text-white","tooltip",3,"click"],[1,"ri-pause-line"],["target","_blank",1,"btn","bg-red-100","text-red-700","hover:bg-red-200","border-0",3,"href"],[1,"ri-file-download-line","font-thin","text-2xl"]],template:function(i,r){if(1&i&&(w(0,rH,1,0,"app-loader",0),h(1,"main",1)(2,"section",2)(3,"div",3)(4,"div"),C(5,"app-back-btn"),d()(),h(6,"h1",4),_(7),d(),h(8,"div",5)(9,"span"),C(10,"i",6),d(),h(11,"input",7),k("ngModelChange",function(s){return r.searchStr=s})("ngModelChange",function(){return r.search()}),d(),h(12,"div"),w(13,oH,3,0,"ng-container",8),w(14,sH,2,0,"ng-template",null,9,ke),d()(),w(16,aH,3,1,"ng-container",0),d(),h(17,"section",10)(18,"div",11)(19,"div",12),w(20,lH,5,0,"ng-container",8),w(21,dH,10,2,"ng-template",null,13,ke),d(),h(23,"div",14)(24,"button",15),k("click",function(){return r.shareWhatsapp()}),C(25,"i",16),_(26," Whatsapp"),d(),h(27,"button",17),k("click",function(){return r.print()}),C(28,"i",18),_(29," Print"),d(),w(30,hH,3,1,"a",19),h(31,"button",20),k("click",function(){return r.sendOnMail()}),C(32,"i",21),_(33," Mail"),d()()()(),h(34,"section",22,23),k("mouseup",function(){return r.handleTextSelection()}),C(36,"div",24),d(),C(37,"hr",25),h(38,"section",26),C(39,"app-back-btn"),h(40,"button",27),C(41,"i",28),_(42," Top"),d()()()),2&i){const o=Ee(15),s=Ee(22);v("ngIf",r.isLoading),p(7),ne(null==r.contentData?null:r.contentData.content_heading),p(4),v("ngModel",r.searchStr),p(2),v("ngIf",!r.isRecording)("ngIfElse",o),p(3),v("ngIf",0==r.matchCount&&r.searchStr),p(4),v("ngIf",!r.isTTSserviceActive)("ngIfElse",s),p(10),v("ngIf",null==r.contentData?null:r.contentData.content_file),p(6),v("innerHTML",r.contentDesc,Jl)}},dependencies:[He,vt,zt,er,za,qa],styles:[".html-container[_ngcontent-%COMP%]{white-space:pre-line;display:block}"]})}}return e})();const Hm=(e,n)=>{const t=O(zn),i=O(ct),r=O(qe),o=O(jr);return!!t.isAuthenticated()||(i.showToast({type:"warning",title:"Login Required",message:"Please login to access this page"}),r.navigate(["/"]),o.changeData({for:"navbar",data:"login"}),!1)};function pH(e,n){1&e&&(h(0,"div"),_(1,"New password is required."),d())}function mH(e,n){1&e&&(h(0,"div"),_(1,"Password must be at least 6 characters long."),d())}function gH(e,n){if(1&e&&(h(0,"div",21),w(1,pH,2,0,"div",19),w(2,mH,2,0,"div",19),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.resetPasswordForm.get("new_password"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.resetPasswordForm.get("new_password"))||null==r.errors?null:r.errors.minlength)}}function _H(e,n){1&e&&(h(0,"div"),_(1,"Confirm password is required."),d())}function vH(e,n){1&e&&(h(0,"div"),_(1,"Passwords do not match."),d())}function bH(e,n){if(1&e&&(h(0,"div",21),w(1,_H,2,0,"div",19),w(2,vH,2,0,"div",19),d()),2&e){const t=T();let i;p(1),v("ngIf",null==(i=t.resetPasswordForm.get("confirm_password"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==t.resetPasswordForm.errors?null:t.resetPasswordForm.errors.mismatch)}}function yH(e,n){1&e&&C(0,"span",22)}function wH(e,n){1&e&&(h(0,"span"),_(1,"Reset Password"),d())}const vE=function(e){return{error:e}};let CH=(()=>{class e{constructor(t,i,r,o,s){this.fb=t,this.router=i,this.userService=r,this.route=o,this.toaster=s,this.isNewPasswordVisible=!1,this.isConfirmPasswordVisible=!1,this.isReqSent=!1,this.token=null,this.tu=null,this.resetPasswordForm=this.fb.group({new_password:["",[Z.required,Z.minLength(8)]],confirm_password:["",[Z.required]]},{validator:this.passwordMatchValidator})}ngOnInit(){this.token=this.route.snapshot.queryParamMap.get("token"),this.tu=this.route.snapshot.queryParamMap.get("tu"),(null===this.token||null===this.tu)&&(this.toaster.showToast({message:"Invalid reset password link",title:"Invalid Link",type:"error"}),this.router.navigate(["/"]))}passwordMatchValidator(t){return t.get("new_password").value===t.get("confirm_password").value?null:{mismatch:!0}}togglePasswordVisibility(t){"new_password"===t?this.isNewPasswordVisible=!this.isNewPasswordVisible:this.isConfirmPasswordVisible=!this.isConfirmPasswordVisible}resetPswd(){if(this.resetPasswordForm.valid){this.isReqSent=!0;let t={token:this.token,tu:this.tu,password:this.resetPasswordForm.get("new_password").value,confirm_password:this.resetPasswordForm.get("confirm_password").value};this.userService.resettPswd(t).subscribe(i=>{try{200===i.status?(this.toaster.showToast({message:i.message,title:"Successfully Reset Password",type:"success"}),this.router.navigate(["/"],{queryParams:{model:"login"}})):this.toaster.showToast({message:i.message,title:"Invalid",type:"error"})}catch{}})}}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(qe),D(zn),D(bt),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-reset-pswd"]],decls:32,vars:18,consts:[[1,"md:min-h-screen","p-0","md:py-10","bg-zinc-100"],[1,"w-full","max-w-md","mx-auto","p-5","md:p-10","bg-white","rounded-lg"],["id","set_new_pswd_form",1,"formSection"],["src","../../../assets/assets/favicon.png","alt","",1,"w-16","h-16","object-contain"],[1,"mt-10"],[1,"header-text","text-3xl","capitalize"],[1,"text-zinc-500","mt-1"],[1,"mt-5","form",3,"formGroup","ngSubmit"],["for","new_password",1,"text-sm","font-semibold"],[1,"bg-zinc-100","flex","items-center","rounded-lg","mt-1",3,"ngClass"],["formControlName","new_password","id","new_password","autocomplete","on",1,"w-full","p-3","bg-transparent",3,"type"],["type","button",1,"px-3","text-2xl","btn",3,"click"],["class","text-red-500 text-sm",4,"ngIf"],[1,"mt-2"],["for","confirm_password",1,"text-sm","font-semibold"],["formControlName","confirm_password","id","confirm_password","autocomplete","on",1,"w-full","p-3","bg-transparent",3,"type"],[1,"mt-10","text-center"],["type","submit",1,"btn","bg-primary","w-full","text-white","mb-2","hover:bg-primary/95",3,"disabled"],["id","loginSpinner","class","loading loading-spinner loading-xs",4,"ngIf"],[4,"ngIf"],["routerLink","/",1,"font-semibold","text-zinc-500","hover:text-black","hover:underline"],[1,"text-red-500","text-sm"],["id","loginSpinner",1,"loading","loading-spinner","loading-xs"]],template:function(i,r){if(1&i&&(h(0,"main",0)(1,"div",1)(2,"div",2),C(3,"img",3),h(4,"div",4)(5,"h3",5),_(6,"Set New Password"),d(),h(7,"p",6),_(8,"Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing "),d()(),h(9,"form",7),k("ngSubmit",function(){return r.resetPswd()}),h(10,"div")(11,"label",8),_(12,"New Password"),d(),h(13,"div",9),C(14,"input",10),h(15,"button",11),k("click",function(){return r.togglePasswordVisibility("new_password")}),C(16,"i"),d()(),w(17,gH,3,2,"div",12),d(),h(18,"div",13)(19,"label",14),_(20,"Confirm Password"),d(),h(21,"div",9),C(22,"input",15),h(23,"button",11),k("click",function(){return r.togglePasswordVisibility("confirm_password")}),C(24,"i"),d()(),w(25,bH,3,2,"div",12),d(),h(26,"div",16)(27,"button",17),w(28,yH,1,0,"span",18),w(29,wH,2,0,"span",19),d(),h(30,"a",20),_(31,"Home"),d()()()()()()),2&i){let o,s,a,l;p(9),v("formGroup",r.resetPasswordForm),p(4),v("ngClass",ae(14,vE,(null==(o=r.resetPasswordForm.get("new_password"))?null:o.invalid)&&((null==(o=r.resetPasswordForm.get("new_password"))?null:o.touched)||(null==(o=r.resetPasswordForm.get("new_password"))?null:o.dirty)))),p(1),v("type",r.isNewPasswordVisible?"text":"password"),p(2),Mf(r.isNewPasswordVisible?"ri-eye-off-line":"ri-eye-line"),p(1),v("ngIf",(null==(s=r.resetPasswordForm.get("new_password"))?null:s.invalid)&&((null==(s=r.resetPasswordForm.get("new_password"))?null:s.touched)||(null==(s=r.resetPasswordForm.get("new_password"))?null:s.dirty))),p(4),v("ngClass",ae(16,vE,((null==(a=r.resetPasswordForm.get("confirm_password"))?null:a.invalid)||(null==r.resetPasswordForm.errors?null:r.resetPasswordForm.errors.mismatch))&&((null==(a=r.resetPasswordForm.get("confirm_password"))?null:a.touched)||(null==(a=r.resetPasswordForm.get("confirm_password"))?null:a.dirty)))),p(1),v("type",r.isConfirmPasswordVisible?"text":"password"),p(2),Mf(r.isConfirmPasswordVisible?"ri-eye-off-line":"ri-eye-line"),p(1),v("ngIf",((null==(l=r.resetPasswordForm.get("confirm_password"))?null:l.invalid)||(null==r.resetPasswordForm.errors?null:r.resetPasswordForm.errors.mismatch))&&((null==(l=r.resetPasswordForm.get("confirm_password"))?null:l.touched)||(null==(l=r.resetPasswordForm.get("confirm_password"))?null:l.dirty))),p(2),v("disabled",r.resetPasswordForm.invalid||r.isReqSent),p(1),v("ngIf",r.isReqSent),p(1),v("ngIf",!r.isReqSent)}},dependencies:[Ut,He,Tt,ai,vt,zt,si,Hn,li]})}}return e})();const DH=new R("recaptcha-language"),xH=new R("recaptcha-base-url"),EH=new R("recaptcha-nonce-tag"),bE=new R("recaptcha-settings"),MH=new R("recaptcha-v3-site-key"),SH=new R("recaptcha-loader-options"),yE={loadScript:function IH(e,n,t,{url:i,lang:r,nonce:o}={}){window.ng2recaptchaloaded=()=>{t(grecaptcha)};const s=document.createElement("script");s.innerHTML="";const{url:a,nonce:l}=n(new URL(i||"https://www.google.com/recaptcha/api.js"));a.searchParams.set("render","explicit"===e?e:e.key),a.searchParams.set("onload","ng2recaptchaloaded"),a.searchParams.set("trustedtypes","true"),r&&a.searchParams.set("hl",r),s.src=a.href;const c=l||o;c&&s.setAttribute("nonce",c),s.async=!0,s.defer=!0,document.head.appendChild(s)},newLoadScript:function TH({v3SiteKey:e,onBeforeLoad:n,onLoaded:t}){yE.loadScript(e?{key:e}:"explicit",n,t)}};let wE=(()=>{class e{static{this.ready=null}constructor(t,i,r,o,s,a){this.platformId=t,this.language=i,this.baseUrl=r,this.nonce=o,this.v3SiteKey=s,this.options=a;const l=this.init();this.ready=l?function AH(e){return e.asObservable().pipe(qt(n=>null!==n))}(l):B()}init(){if(e.ready)return e.ready;if(!gC(this.platformId))return;const t=new wt(null);return e.ready=t,yE.newLoadScript({v3SiteKey:this.v3SiteKey,onBeforeLoad:i=>{if(this.options?.onBeforeLoad)return this.options.onBeforeLoad(i);const r=new URL(this.baseUrl??i);return this.language&&r.searchParams.set("hl",this.language),{url:r,nonce:this.nonce}},onLoaded:i=>{let r=i;this.options?.onLoaded&&(r=this.options.onLoaded(i)),t.next(r)}}),t}static{this.\u0275fac=function(i){return new(i||e)(M(Ci),M(DH,8),M(xH,8),M(EH,8),M(MH,8),M(SH,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})(),kH=0,ju=(()=>{class e{constructor(t,i,r,o){this.elementRef=t,this.loader=i,this.zone=r,this.id="ngrecaptcha-"+kH++,this.errorMode="default",this.resolved=new _e,this.error=new _e,this.errored=new _e,o&&(this.siteKey=o.siteKey,this.theme=o.theme,this.type=o.type,this.size=o.size,this.badge=o.badge)}ngAfterViewInit(){this.subscription=this.loader.ready.subscribe(t=>{null!=t&&t.render instanceof Function&&(this.grecaptcha=t,this.renderRecaptcha())})}ngOnDestroy(){this.grecaptchaReset(),this.subscription&&this.subscription.unsubscribe()}execute(){"invisible"===this.size&&(null!=this.widget?this.grecaptcha.execute(this.widget):this.executeRequested=!0)}reset(){null!=this.widget&&(this.grecaptcha.getResponse(this.widget)&&this.resolved.emit(null),this.grecaptchaReset())}get __unsafe_widgetValue(){return null!=this.widget?this.grecaptcha.getResponse(this.widget):null}expired(){this.resolved.emit(null)}onError(t){this.error.emit(t),this.errored.emit(t)}captchaResponseCallback(t){this.resolved.emit(t)}grecaptchaReset(){null!=this.widget&&this.zone.runOutsideAngular(()=>this.grecaptcha.reset(this.widget))}renderRecaptcha(){const t={badge:this.badge,callback:i=>{this.zone.run(()=>this.captchaResponseCallback(i))},"expired-callback":()=>{this.zone.run(()=>this.expired())},sitekey:this.siteKey,size:this.size,tabindex:this.tabIndex,theme:this.theme,type:this.type};"handled"===this.errorMode&&(t["error-callback"]=(...i)=>{this.zone.run(()=>this.onError(i))}),this.widget=this.grecaptcha.render(this.elementRef.nativeElement,t),!0===this.executeRequested&&(this.executeRequested=!1,this.execute())}static{this.\u0275fac=function(i){return new(i||e)(D(st),D(wE),D(le),D(bE,8))}}static{this.\u0275cmp=Ce({type:e,selectors:[["re-captcha"]],hostVars:1,hostBindings:function(i,r){2&i&&Fn("id",r.id)},inputs:{id:"id",siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabIndex:"tabIndex",badge:"badge",errorMode:"errorMode"},outputs:{resolved:"resolved",error:"error",errored:"errored"},exportAs:["reCaptcha"],decls:0,vars:0,template:function(i,r){},encapsulation:2})}}return e})(),CE=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})(),RH=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:[wE],imports:[CE]})}}return e})(),$m=(()=>{class e{constructor(t){this.host=t,this.requiresControllerReset=!1}writeValue(t){t?this.host.__unsafe_widgetValue!==t&&!this.host.__unsafe_widgetValue&&(this.requiresControllerReset=!0):this.host.reset()}registerOnChange(t){this.onChange=t,this.requiresControllerReset&&(this.requiresControllerReset=!1,this.onChange(null))}registerOnTouched(t){this.onTouched=t}onResolve(t){this.onChange&&this.onChange(t),this.onTouched&&this.onTouched()}static{this.\u0275fac=function(i){return new(i||e)(D(ju))}}static{this.\u0275dir=z({type:e,selectors:[["re-captcha","formControlName",""],["re-captcha","formControl",""],["re-captcha","ngModel",""]],hostBindings:function(i,r){1&i&&k("resolved",function(s){return r.onResolve(s)})},features:[Be([{multi:!0,provide:Un,useExisting:Te(()=>e)}])]})}}return e})(),PH=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[am,CE]})}}return e})();function FH(e,n){1&e&&(h(0,"span",47),C(1,"i",48),h(2,"small",49),_(3,"Avatar"),d()())}function OH(e,n){1&e&&C(0,"img",50),2&e&&Gi("src",T().profile_pic,wi)}function NH(e,n){1&e&&(h(0,"small",51),_(1," Full Name is required. "),d())}function LH(e,n){1&e&&(h(0,"small",51),_(1," Email is required. "),d())}function VH(e,n){1&e&&(h(0,"small",51),_(1," Enter a valid email address. "),d())}function jH(e,n){1&e&&(h(0,"small",51),_(1," Mobile Number is required. "),d())}function BH(e,n){1&e&&(h(0,"small",51),_(1," Enter a valid 10-digit mobile number. "),d())}function UH(e,n){if(1&e&&(h(0,"option",52),_(1),d()),2&e){const t=n.$implicit;v("value",t.code),p(1),pe(" ",t.name," ")}}function HH(e,n){1&e&&(h(0,"small",51),_(1," Selecting a state is required. "),d())}function $H(e,n){1&e&&(h(0,"small",51),_(1," Article Title is required. "),d())}function zH(e,n){1&e&&(h(0,"small",51),_(1," Message is required. "),d())}function qH(e,n){if(1&e){const t=ue();h(0,"div",55)(1,"span",49),C(2,"i",56),d(),h(3,"div",57)(4,"p",58),_(5),d()(),h(6,"button",59),k("click",function(){const o=W(t).index;return Y(T(2).removeFile(o))}),C(7,"i",60),d()()}if(2&e){const t=n.$implicit;p(5),ne(t.name)}}function GH(e,n){if(1&e&&(h(0,"div",53),w(1,qH,8,1,"div",54),d()),2&e){const t=T();p(1),v("ngForOf",t.uploadedFiles)}}function WH(e,n){1&e&&(h(0,"small",51),_(1," Please complete the captcha. "),d())}function YH(e,n){1&e&&C(0,"span",61)}function ZH(e,n){1&e&&(h(0,"span"),_(1,"Send "),C(2,"i",62),d())}const KH=function(e){return{"ring-zinc-200 ring-offset-base-100 rounded-[1.8rem] ring ring-offset-2":e}},Br=function(e){return{error:e}};let XH=(()=>{class e{constructor(t,i,r){this.fb=t,this.publciApi=i,this.toaster=r,this.states=[{name:"Andhra Pradesh",code:"AP",capital:"Amaravati"},{name:"Arunachal Pradesh",code:"AR",capital:"Itanagar"},{name:"Assam",code:"AS",capital:"Dispur"},{name:"Bihar",code:"BR",capital:"Patna"},{name:"Chhattisgarh",code:"CG",capital:"Raipur"},{name:"Goa",code:"GA",capital:"Panaji"},{name:"Gujarat",code:"GJ",capital:"Gandhinagar"},{name:"Haryana",code:"HR",capital:"Chandigarh"},{name:"Himachal Pradesh",code:"HP",capital:"Shimla"},{name:"Jharkhand",code:"JH",capital:"Ranchi"},{name:"Karnataka",code:"KA",capital:"Bengaluru"},{name:"Kerala",code:"KL",capital:"Thiruvananthapuram"},{name:"Madhya Pradesh",code:"MP",capital:"Bhopal"},{name:"Maharashtra",code:"MH",capital:"Mumbai"},{name:"Manipur",code:"MN",capital:"Imphal"},{name:"Meghalaya",code:"ML",capital:"Shillong"},{name:"Mizoram",code:"MZ",capital:"Aizawl"},{name:"Nagaland",code:"NL",capital:"Kohima"},{name:"Odisha",code:"OD",capital:"Bhubaneswar"},{name:"Punjab",code:"PB",capital:"Chandigarh"},{name:"Rajasthan",code:"RJ",capital:"Jaipur"},{name:"Sikkim",code:"SK",capital:"Gangtok"},{name:"Tamil Nadu",code:"TN",capital:"Chennai"},{name:"Telangana",code:"TG",capital:"Hyderabad"},{name:"Tripura",code:"TR",capital:"Agartala"},{name:"Uttar Pradesh",code:"UP",capital:"Lucknow"},{name:"Uttarakhand",code:"UK",capital:"Dehradun"},{name:"West Bengal",code:"WB",capital:"Kolkata"}],this.isReqSend=!1,this.uploadedFiles=[],this.profile_pic=null}ngOnInit(){this.articleForm=this.fb.group({fullName:["",Z.required],email:["",[Z.required,Z.email]],mobileNumber:["",[Z.required,Z.pattern("^[0-9]{10}$")]],state:["",Z.required],articleTitle:["",Z.required],message:[""],articleFile:[null,Z.required],profile_pic:[null],recaptcha:[""]})}hasError(t,i){const r=this.articleForm.get(t);return!!r?.hasError(i)&&(r?.dirty||r?.touched)}onFileChange(t){const i=t.target.files;if(i){if(this.uploadedFiles.length+i.length>3)return void alert("You can upload up to 3 files only");for(let r=0;r<i.length;r++){if(i[r].size>3145728)return void alert("File size should not exceed 3 MB");this.uploadedFiles.push(i[r])}this.articleForm.patchValue({articleFile:this.uploadedFiles})}}removeFile(t){this.uploadedFiles.splice(t,1),this.articleForm.patchValue({articleFile:this.uploadedFiles})}setProfilePic(t){console.log(t.target.files),t.target.files.length>0?(this.articleForm.get("profile_pic")?.setValue(t.target.files[0]),this.profile_pic=URL.createObjectURL(t.target.files[0])):(this.articleForm.get("profile_pic")?.setValue(""),this.profile_pic=null),console.log(this.profile_pic)}onSubmit(){if(this.articleForm.valid){this.isReqSend=!0;const t=new FormData;t.append("article_user_name",this.articleForm.get("fullName")?.value),t.append("article_user_email",this.articleForm.get("email")?.value),t.append("article_user_mobileno",this.articleForm.get("mobileNumber")?.value),t.append("article_user_state",this.articleForm.get("state")?.value),t.append("article_title",this.articleForm.get("articleTitle")?.value),t.append("article_msg",this.articleForm.get("message")?.value),t.append("article_user_photo",this.articleForm.get("profile_pic")?.value),this.uploadedFiles.forEach((i,r)=>{t.append("article_file[]",i,i.name)}),this.publciApi.publishArticle(t).subscribe(i=>{this.isReqSend=!1;try{"success"==i.status?(this.toaster.showToast({message:i.message||"Article published successfully",title:"Success",type:"success"}),window.history.back()):this.toaster.showToast({message:i.message||"Something went wrong",title:"Error",type:"error"})}catch(r){console.log(r),this.isReqSend=!1}},i=>{console.log(i),this.isReqSend=!1}),console.log("Form Submitted:",this.articleForm.value)}else console.log("Form is invalid!")}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(Fi),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-publish-articals"]],decls:95,vars:41,consts:[[1,"min-h-screen","clear-start","flex","justify-center","md:py-5","bg-zinc-100"],[1,"p-5","lg:p-14","pt-5","max-w-3xl","bg-white","rounded-xl","border"],[1,"flex","flex-col","items-center","text-center"],[1,"header-text","text-3xl","uppercase","headline"],[1,"text-sm","lg:text-base","lg:w-3/4","text-zinc-500","mt-3"],[1,"my-5"],[3,"formGroup","ngSubmit"],[1,"grid","grid-cols-1","md:grid-cols-2","gap-5"],[1,"col-span-1","md:col-span-2","flex","items-center","gap-2","cursor-pointer",3,"click"],[1,"avatar",3,"ngClass"],[1,"mask","mask-squircle","w-24","bg-zinc-100","border"],["class","w-full h-full flex flex-col items-center justify-center",4,"ngIf"],["class","w-full h-full object-cover",3,"src",4,"ngIf"],[1,"ml-3"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],["type","file","id","file","accept","image/*",1,"hidden",3,"change"],["file",""],[1,"col-span-1"],[1,"form-control","w-full"],[1,"label"],[1,"label-text","req"],["formControlName","fullName","type","text","placeholder","Name here",1,"input","input-bordered","w-full","bg-zinc-50",3,"ngClass"],["class","text-red-500",4,"ngIf"],["formControlName","email","type","email","placeholder","Email here",1,"input","input-bordered","w-full","bg-zinc-50",3,"ngClass"],["formControlName","mobileNumber","type","number","placeholder","Mobile number here",1,"input","input-bordered","w-full","bg-zinc-50",3,"ngClass"],["formControlName","state",1,"select","select-bordered","w-full","bg-zinc-50",3,"ngClass"],["disabled","","selected",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-span-1","md:col-span-2"],["formControlName","articleTitle","type","text","placeholder","Article Title here",1,"input","input-bordered","w-full","bg-zinc-50",3,"ngClass"],[1,"label-text"],["formControlName","message","placeholder","Message here",1,"textarea","textarea-bordered","bg-zinc-50",3,"ngClass"],[1,"relative"],[1,"w-full","h-[12rem]","bg-primary/10","rounded-lg","border-2","border-primary","border-dashed","p-5"],[1,"flex","flex-col","items-center","gap-3","justify-center","w-full","h-full"],[1,"ri-sticky-note-add-fill","text-3xl","text-primary"],[1,"text-center"],["type","file","accept",".pdf,.doc, .docx",1,"bg-slate-100","w-full","h-full","absolute","top-0","left-0","opacity-0",3,"change"],["class","mt-5 grid grid-cols-1 gap-2",4,"ngIf"],["formControlName","recaptcha",1,"w-full",3,"ngClass"],[1,"my-2","col-span-1","md:col-span-2"],[1,"flex","justify-between","col-span-1","md:col-span-2"],["type","button","onclick","window.history.back();",1,"btn","btn-outline","btn-error","rounded-full"],["type","submit",1,"btn","bg-primary","text-white","hover:bg-primary/90","w-[10rem]",3,"disabled"],["class","loading loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"w-full","h-full","flex","flex-col","items-center","justify-center"],[1,"ri-image-circle-ai-fill","text-3xl"],[1,"text-zinc-500"],[1,"w-full","h-full","object-cover",3,"src"],[1,"text-red-500"],[3,"value"],[1,"mt-5","grid","grid-cols-1","gap-2"],["class","w-full p-1 ps-4 border rounded-full flex items-center gap-2",4,"ngFor","ngForOf"],[1,"w-full","p-1","ps-4","border","rounded-full","flex","items-center","gap-2"],[1,"ri-article-line"],[1,"w-full"],[1,"line-clamp-1","w-4/5"],["data-tip","delete",1,"aspect-square","w-10","rounded-full","text-red-600","bg-red-100","tooltip",3,"click"],[1,"ri-delete-bin-6-line"],[1,"loading","loading-spinner"],[1,"ri-send-plane-fill","ml-2"]],template:function(i,r){if(1&i){const o=ue();h(0,"main",0)(1,"section",1)(2,"div",2)(3,"h2",3),_(4," Publish Your Article with Us "),d(),h(5,"p",4),_(6," Have valuable insights, stories, or knowledge to share? Submit your article, and let your voice be heard! "),d()(),C(7,"hr",5),h(8,"div")(9,"form",6),k("ngSubmit",function(){return r.onSubmit()}),h(10,"div",7)(11,"div",8),k("click",function(){return W(o),Y(Ee(22).click())}),h(12,"div",9)(13,"div",10),w(14,FH,4,0,"span",11),w(15,OH,1,1,"img",12),d()(),h(16,"div",13)(17,"p",14),_(18,"Upload Avatar"),d(),h(19,"p",15),_(20,"Upload your profile picture"),d()()(),h(21,"input",16,17),k("change",function(a){return r.setProfilePic(a)}),d(),h(23,"div",18)(24,"label",19)(25,"div",20)(26,"span",21),_(27,"Full Name"),d()(),C(28,"input",22),w(29,NH,2,0,"small",23),d()(),h(30,"div",18)(31,"label",19)(32,"div",20)(33,"span",21),_(34,"Email"),d()(),C(35,"input",24),w(36,LH,2,0,"small",23),w(37,VH,2,0,"small",23),d()(),h(38,"div",18)(39,"label",19)(40,"div",20)(41,"span",21),_(42,"Mobile Number"),d()(),C(43,"input",25),w(44,jH,2,0,"small",23),w(45,BH,2,0,"small",23),d()(),h(46,"div",18)(47,"label",19)(48,"div",20)(49,"span",21),_(50,"Select your State"),d()(),h(51,"select",26)(52,"option",27),_(53,"Choose your state"),d(),w(54,UH,2,2,"option",28),d(),w(55,HH,2,0,"small",23),d()(),h(56,"div",29)(57,"label",19)(58,"div",20)(59,"span",21),_(60,"Article Title"),d()(),C(61,"input",30),w(62,$H,2,0,"small",23),d()(),h(63,"div",29)(64,"label",19)(65,"div",20)(66,"span",31),_(67,"Your Message"),d()(),C(68,"textarea",32),w(69,zH,2,0,"small",23),d()(),h(70,"div",29)(71,"div",33)(72,"div",34)(73,"div",35),C(74,"i",36),h(75,"div",37)(76,"p",14),_(77,"Upload your Article File"),d(),h(78,"small"),_(79,"(You can upload up to 3 files in PDF, JPG, PNG, or DOC formats,"),C(80,"br"),_(81," with a maximum size of 3MB each)"),d()()()(),h(82,"input",38),k("change",function(a){return r.onFileChange(a)}),d()(),w(83,GH,2,1,"div",39),d(),h(84,"div",29)(85,"label",19),C(86,"re-captcha",40),w(87,WH,2,0,"small",23),d()(),C(88,"hr",41),h(89,"div",42)(90,"button",43),_(91," Cancel "),d(),h(92,"button",44),w(93,YH,1,0,"span",45),w(94,ZH,3,0,"span",46),d()()()()()()()}2&i&&(p(9),v("formGroup",r.articleForm),p(3),v("ngClass",ae(25,KH,null!=r.profile_pic)),p(2),v("ngIf",null==r.profile_pic),p(1),v("ngIf",null!=r.profile_pic),p(13),v("ngClass",ae(27,Br,r.hasError("fullName","required"))),p(1),v("ngIf",r.hasError("fullName","required")),p(6),v("ngClass",ae(29,Br,r.hasError("email","required")||r.hasError("email","email"))),p(1),v("ngIf",r.hasError("email","required")),p(1),v("ngIf",r.hasError("email","email")),p(6),v("ngClass",ae(31,Br,r.hasError("mobileNumber","required")||r.hasError("mobileNumber","pattern"))),p(1),v("ngIf",r.hasError("mobileNumber","required")),p(1),v("ngIf",r.hasError("mobileNumber","pattern")),p(6),v("ngClass",ae(33,Br,r.hasError("state","required"))),p(3),v("ngForOf",r.states),p(1),v("ngIf",r.hasError("state","required")),p(6),v("ngClass",ae(35,Br,r.hasError("articleTitle","required"))),p(1),v("ngIf",r.hasError("articleTitle","required")),p(6),v("ngClass",ae(37,Br,r.hasError("message","required"))),p(1),v("ngIf",r.hasError("message","required")),p(14),v("ngIf",r.uploadedFiles.length>0),p(3),v("ngClass",ae(39,Br,r.hasError("recaptcha","required"))),p(1),v("ngIf",r.hasError("recaptcha","required")),p(5),v("disabled",!r.articleForm.valid||r.isReqSend),p(1),v("ngIf",r.isReqSend),p(1),v("ngIf",!r.isReqSend))},dependencies:[Ut,Ht,He,ai,Ar,kr,vt,em,Tr,zt,si,Hn,li,ju,$m]})}}return e})();const QH=["dropdown"],JH=function(e){return{subcategory:e}};function e8(e,n){if(1&e){const t=ue();ie(0),h(1,"a",11),k("click",function(){return W(t),Y(T(3).hideDD())}),_(2),C(3,"i",12),d(),re()}if(2&e){const t=T().$implicit,i=T().$implicit;p(1),Je("routerLink","/product/",i.seo_url,""),v("queryParams",ae(3,JH,t.seo_url)),p(1),pe(" ",t.category_title," ")}}function t8(e,n){if(1&e){const t=ue();h(0,"a",13),k("click",function(){return W(t),Y(T(3).hideDD())}),_(1),d()}if(2&e){const t=T().$implicit;Cc("routerLink","/category/",T().$implicit.seo_url,"/",t.seo_url,"/",t.content_category_id,""),p(1),pe(" ",t.category_title," ")}}function n8(e,n){if(1&e&&(h(0,"li"),w(1,e8,4,5,"ng-container",9),w(2,t8,2,4,"ng-template",null,10,ke),d()),2&e){const t=n.$implicit,i=Ee(3);p(1),v("ngIf",t.subcategories.length>0)("ngIfElse",i)}}const i8=function(e){return{"dropdown-bottom dropdown-end":e}};function r8(e,n){if(1&e&&(h(0,"li",4)(1,"div",5)(2,"div",6),_(3),d(),h(4,"ul",7),w(5,n8,4,2,"li",8),d()()()),2&e){const t=n.$implicit,i=n.index,r=T();p(1),v("ngClass",ae(3,i8,i===r.menus.length-1)),p(2),pe(" ",t.product_name," "),p(2),v("ngForOf",t.categories)}}let DE=(()=>{class e{constructor(t,i){this.publicApi=t,this.el=i,this.menus=[],this.getData()}hideDD(){const t=document.activeElement;t&&t.blur()}checkAndCloseDropDown(t){let i=t.target;i&&i.matches(":focus")&&setTimeout(function(){i.blur()},0)}getData(){this.publicApi.getMenuList().subscribe(t=>{try{"success"==t.status?this.menus=t.data:console.error("failed to get menus data")}catch{}})}static{this.\u0275fac=function(i){return new(i||e)(D(Fi),D(st))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-menus"]],viewQuery:function(i,r){if(1&i&&Vn(QH,5),2&i){let o;xn(o=En())&&(r.dropdowns=o)}},decls:4,vars:1,consts:[[1,"hidden","lg:block","px-5","xl:px-14","py-2"],[1,"bg-primary","rounded-md","w-full","p-1"],[1,"flex","divide-x","divide-white/20"],["class","w-full pr-2",4,"ngFor","ngForOf"],[1,"w-full","pr-2"],[1,"dropdown","w-full",3,"ngClass"],["tabindex","0","role","button",1,"text-center","p-2","rounded-md","font-semibold","bg-transparent","text-nowrap","text-xs","hover:bg-white/20","text-white","border-0","w-full","m-1"],["tabindex","0",1,"dropdown-content","menu","bg-base-100","w-[15rem]","rounded-box","z-[1]","p-2","shadow-lg","border","max-h-[30rem]","overflow-y-auto","grid","grid-cols-1"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],["category_page",""],[1,"text-wrap","hover:bg-primary/20","hover:text-primary","flex","justify-between","items-center",3,"routerLink","queryParams","click"],[1,"ri-arrow-right-up-line"],[1,"text-wrap","hover:bg-primary/20","hover:text-primary",3,"routerLink","click"]],template:function(i,r){1&i&&(h(0,"section",0)(1,"div",1)(2,"ul",2),w(3,r8,6,5,"li",3),d()()()),2&i&&(p(3),v("ngForOf",r.menus))},dependencies:[Ut,Ht,He,Tt],styles:[".product-item[_ngcontent-%COMP%]{position:relative;cursor:pointer}.categories-dropdown[_ngcontent-%COMP%]{position:absolute;top:100%;left:0;margin-top:7px;z-index:50}.category-item[_ngcontent-%COMP%]{position:relative;cursor:pointer}.subcategories-dropdown[_ngcontent-%COMP%]{position:absolute;top:0;left:100%;z-index:50}.subcategory-item[_ngcontent-%COMP%]{cursor:pointer}"]})}}return e})();function o8(e,n){1&e&&C(0,"span",10)}function s8(e,n){1&e&&(h(0,"div")(1,"a",26),C(2,"span",27)(3,"span",28),d()())}const a8=function(){return[1,2,3,4]};function l8(e,n){1&e&&(ie(0),h(1,"div",24),w(2,s8,4,0,"div",25),d(),re()),2&e&&(p(2),v("ngForOf",Dn(1,a8)))}function c8(e,n){if(1&e&&(h(0,"a",31),C(1,"img",32),h(2,"h2",33),_(3),d()()),2&e){const t=n.$implicit;Je("routerLink","/product",t.seo_url,""),p(3),pe(" ",null==t?null:t.product_name," ")}}function u8(e,n){if(1&e&&(ie(0),h(1,"div",24),w(2,c8,4,2,"a",30),d(),re()),2&e){const t=T(4);p(2),v("ngForOf",t.products)}}function d8(e,n){1&e&&C(0,"app-notfound",34),2&e&&v("message","No Products Found")}function h8(e,n){if(1&e&&(w(0,u8,3,1,"ng-container",22),w(1,d8,1,1,"ng-template",null,29,ke)),2&e){const t=Ee(2);v("ngIf",T(3).products.length>0)("ngIfElse",t)}}function f8(e,n){if(1&e&&(ie(0),w(1,l8,3,2,"ng-container",22),w(2,h8,3,2,"ng-template",null,23,ke),re()),2&e){const t=Ee(3),i=T(2);p(1),v("ngIf",i.isProductsLoading)("ngIfElse",t)}}function p8(e,n){1&e&&(h(0,"li",38),C(1,"span",39)(2,"span",40)(3,"span",41),d())}const xE=function(){return[1,2,3,4,5]};function m8(e,n){1&e&&(ie(0),h(1,"ul",36),w(2,p8,4,0,"li",37),d(),re()),2&e&&(p(2),v("ngForOf",Dn(1,xE)))}function g8(e,n){if(1&e&&(h(0,"li",46)(1,"a",47)(2,"span",48),_(3),_t(4,"date"),d(),h(5,"h2",49),_(6),d()()()),2&e){const t=n.$implicit;p(1),Mt("routerLink","/resources/",t.news_type,"/",t.seo_url,""),p(2),ne(ln(4,4,t.news_date)),p(3),pe(" ",t.news_title," ")}}function _8(e,n){if(1&e&&(ie(0),h(1,"div",43)(2,"ul",44),w(3,g8,7,6,"li",45),d()(),re()),2&e){const t=T(4);p(3),v("ngForOf",t.news)}}function v8(e,n){1&e&&C(0,"app-notfound",34),2&e&&v("message","No News Found")}function b8(e,n){if(1&e&&(w(0,_8,4,1,"ng-container",22),w(1,v8,1,1,"ng-template",null,42,ke)),2&e){const t=Ee(2);v("ngIf",T(3).news.length>0)("ngIfElse",t)}}function y8(e,n){if(1&e&&(ie(0),C(1,"div"),w(2,m8,3,2,"ng-container",22),w(3,b8,3,2,"ng-template",null,35,ke),re()),2&e){const t=Ee(4),i=T(2);p(2),v("ngIf",i.isNewsLoading)("ngIfElse",t)}}function w8(e,n){1&e&&(h(0,"li",38),C(1,"span",39)(2,"span",40)(3,"span",41),d())}function C8(e,n){1&e&&(ie(0),h(1,"ul",36),w(2,w8,4,0,"li",37),d(),re()),2&e&&(p(2),v("ngForOf",Dn(1,xE)))}function D8(e,n){if(1&e&&(h(0,"li",46)(1,"a",47)(2,"span",48),_(3),_t(4,"date"),d(),h(5,"h2",49),_(6),d()()()),2&e){const t=n.$implicit;p(1),Mt("routerLink","/resources/",t.news_type,"/",t.seo_url,""),p(2),ne(ln(4,4,t.news_date)),p(3),pe(" ",t.news_title," ")}}function x8(e,n){if(1&e&&(ie(0),h(1,"div",43)(2,"ul",44),w(3,D8,7,6,"li",45),d()(),re()),2&e){const t=T(4);p(3),v("ngForOf",t.articles)}}function E8(e,n){1&e&&C(0,"app-notfound",34),2&e&&v("message","No Articles Found")}function M8(e,n){if(1&e&&(w(0,x8,4,1,"ng-container",22),w(1,E8,1,1,"ng-template",null,51,ke)),2&e){const t=Ee(2);v("ngIf",T(3).news.length>0)("ngIfElse",t)}}function S8(e,n){if(1&e&&(ie(0),C(1,"div"),w(2,C8,3,2,"ng-container",22),w(3,M8,3,2,"ng-template",null,50,ke),re()),2&e){const t=Ee(4),i=T(2);p(2),v("ngIf",i.isArticlesLoading)("ngIfElse",t)}}function I8(e,n){if(1&e){const t=ue();h(0,"section",11)(1,"div",12)(2,"div",13)(3,"input",14),k("change",function(){W(t);const r=T();return Y(r.setItems(r.currentPage))})("ngModelChange",function(r){return W(t),Y(T().currentPage=r)}),d(),h(4,"label",15),_(5),d()(),h(6,"div",13)(7,"input",16),k("change",function(){W(t);const r=T();return Y(r.setItems(r.currentPage))})("ngModelChange",function(r){return W(t),Y(T().currentPage=r)}),d(),h(8,"label",17),_(9),d()(),h(10,"div",13)(11,"input",18),k("change",function(){W(t);const r=T();return Y(r.setItems(r.currentPage))})("ngModelChange",function(r){return W(t),Y(T().currentPage=r)}),d(),h(12,"label",19),_(13),d()()(),C(14,"hr",20),w(15,f8,4,2,"ng-container",21),w(16,y8,5,2,"ng-container",21),w(17,S8,5,2,"ng-container",21),d()}if(2&e){const t=T();p(3),v("ngModel",t.currentPage),p(2),pe("Product (",t.products.length,")"),p(2),v("ngModel",t.currentPage),p(2),pe("news (",t.news.length,")"),p(2),v("ngModel",t.currentPage),p(2),pe("articles (",t.articles.length,")"),p(2),v("ngIf","products"==t.currentPage),p(1),v("ngIf","news"==t.currentPage),p(1),v("ngIf","articles"==t.currentPage)}}function A8(e,n){1&e&&C(0,"img",10)}function k8(e,n){1&e&&C(0,"img",11)}const R8=[{path:"",component:V5},{path:"reset-password",component:CH},{path:"resources/:type",component:tU},{path:"resources/:type/:id",component:v5},{path:"product/:id",component:fU,canActivate:[Hm]},{path:"product/:id/search/:str",component:NU,canActivate:[Hm]},{path:"category/:product_id/:category_url/:category_id",component:eH,canActivate:[Hm]},{path:"content/:view_url/:view_id",component:fH},{path:"publich-your-artical",component:XH},{path:"search",component:(()=>{class e{constructor(t){this.publicApi=t,this.searchStr="",this.currentPage="products",this.isProductsLoading=!1,this.isNewsLoading=!1,this.isArticlesLoading=!1,this.isReqSend=!1,this.products=[],this.news=[],this.articles=[],this.hasData=!1}getSearchData(t){clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{if(t.target.value){let i={query:t.target.value};this.isNewsLoading=!0,this.isProductsLoading=!0,this.isArticlesLoading=!0,this.isReqSend=!0,this.publicApi.getSmartSearchResult(i).subscribe(r=>{try{"success"==r.status?(this.products=r.data.products,this.news=r.data.news,this.articles=r.data.updates,this.isNewsLoading=!1,this.isProductsLoading=!1,this.isArticlesLoading=!1,this.hasData=!0,this.isReqSend=!1):(console.log(r.message),this.isReqSend=!1)}catch(o){console.error(o),this.isReqSend=!1}})}else this.hasData=!1,this.isReqSend=!1},1e3)}setItems(t){this.isProductsLoading=!0,this.isNewsLoading=!0,this.isArticlesLoading=!0,setTimeout(()=>{this.isProductsLoading=!1,this.isNewsLoading=!1,this.isArticlesLoading=!1},1e3)}static{this.\u0275fac=function(i){return new(i||e)(D(Fi))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-search"]],decls:13,vars:2,consts:[[1,"min-h-[50vh]"],[1,"flex","justify-center","pt-10","pb-5"],[1,"px-5","lg:w-1/2","xl:w-2/5","text-center"],[1,"header-text","text-3xl","uppercase","headline"],[1,"text-zinc-500"],[1,"border-2","rounded-xl","border-primary","p-1","pe-3","flex","items-center","gap-4","mt-8"],[1,"ri-search-2-line","text-2xl","px-2","text-primary"],["type","text",1,"w-full","h-full","py-2",3,"input"],["class","loading loading-spinner text-neutral ",4,"ngIf"],["class","p-5 lg:p-14 pt-5",4,"ngIf"],[1,"loading","loading-spinner","text-neutral"],[1,"p-5","lg:p-14","pt-5"],[1,"flex","gap-3"],[1,"custome_checkbox"],["type","radio","value","products","name","search_type","id","product","checked","",1,"hidden",3,"ngModel","change","ngModelChange"],["for","product",1,"btn","rounded-full","border","capitalize","bg-white"],["type","radio","value","news","name","search_type","id","news",1,"hidden",3,"ngModel","change","ngModelChange"],["for","news",1,"btn","rounded-full","border","capitalize","bg-white"],["type","radio","value","articles","name","search_type","id","articles",1,"hidden",3,"ngModel","change","ngModelChange"],["for","articles",1,"btn","rounded-full","border","capitalize","bg-white"],[1,"my-5"],[4,"ngIf"],[4,"ngIf","ngIfElse"],["showProducts",""],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","xl:grid-cols-4","gap-5"],[4,"ngFor","ngForOf"],[1,"w-full","h-[10rem]","rounded-xl","border","p-5","flex","flex-col","gap-3"],[1,"w-8","h-9","rounded-md","skeleton"],[1,"w-3/5","h-3","skeleton"],["noProducts",""],["class","w-full h-[10rem] rounded-xl border p-5 flex flex-col gap-3 group hover:outline hover:outline-2 hover:outline-primary hover:bg-primary/5",3,"routerLink",4,"ngFor","ngForOf"],[1,"w-full","h-[10rem]","rounded-xl","border","p-5","flex","flex-col","gap-3","group","hover:outline","hover:outline-2","hover:outline-primary","hover:bg-primary/5",3,"routerLink"],["src","../../../../assets/assets/docIcon.svg","alt","",1,"w-8","h-9","object-contain"],[1,"text-xl","line-clamp-2","font-semibold","capitalize","group-hover:text-primary"],[3,"message"],["showNews",""],[1,"grid","grid-cols-1","divide-y","w-3/5"],["class","py-5 flex flex-col gap-3",4,"ngFor","ngForOf"],[1,"py-5","flex","flex-col","gap-3"],[1,"w-20","h-3","skeleton"],[1,"w-full","h-5","skeleton"],[1,"w-1/2","h-5","skeleton"],["noNews",""],[1,"w-full","xl:w-3/4"],[1,"grid","grid-cols-1","divide-y"],["class","py-5",4,"ngFor","ngForOf"],[1,"py-5"],[1,"group",3,"routerLink"],[1,"text-zinc-400"],[1,"mt-2","text-xl","line-clamp-2","group-hover:underline","group-hover:text-red-600"],["showArticles",""],["noArticles",""]],template:function(i,r){1&i&&(h(0,"main",0)(1,"section",1)(2,"div",2)(3,"h1",3),_(4,"Search Our Collection"),d(),h(5,"p",4),_(6," Find exactly what you're looking for by exploring our extensive database. Use filters and keywords to refine your search. "),d(),h(7,"div",5)(8,"span"),C(9,"i",6),d(),h(10,"input",7),k("input",function(s){return r.getSearchData(s)}),d(),w(11,o8,1,0,"span",8),d()()(),w(12,I8,18,9,"section",9),d()),2&i&&(p(11),v("ngIf",r.isReqSend),p(1),v("ngIf",r.hasData))},dependencies:[Ht,He,Tt,vt,tm,zt,er,Vu,Mr],styles:[".custome_checkbox[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked ~ label[_ngcontent-%COMP%]{background:#000!important;color:#fff!important}"]})}}return e})()},{path:"subscription-error/:type/:product_id",component:(()=>{class e{constructor(t){this.route=t,this.type="",this.product_id="",this.message="",this.subscription=new nt}ngOnInit(){this.subscription=this.route.params.subscribe(t=>{this.type=t.type,this.product_id=t.product_id,this.getMessage()})}getMessage(){this.message="notFound"===this.type?"Subscription not found.":"expired"===this.type?"Your subscription has expired.":"Unknown error occurred."}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)(D(bt))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-sub-error-screen"]],decls:13,vars:3,consts:[[1,"min-h-[75vh]","flex","justify-center","items-center"],[1,"flex","flex-col","gap-3","items-center","w-full","p-5"],["class","w-[15rem] aspect-square object-contain","src","../../../assets/assets/subsNotFound.png","alt","Not Found",4,"ngIf"],["class","w-[15rem] aspect-square object-contain","src","../../../assets/assets/subsExpired.png","alt","Expired",4,"ngIf"],[1,"italic","font-semibold","text-2xl"],[1,"flex","gap-2","items-center"],["routerLink","/",1,"bg-zinc-200","py-1.5","px-4","text-sm","capitalize","font-medium","flex","items-center","gap-2","rounded-full"],[1,"ri-home-5-line"],["href","#",1,"bg-primary/20","text-primary","py-1.5","px-4","text-sm","capitalize","font-medium","flex","items-center","gap-2","rounded-full"],[1,"ri-mail-fill"],["src","../../../assets/assets/subsNotFound.png","alt","Not Found",1,"w-[15rem]","aspect-square","object-contain"],["src","../../../assets/assets/subsExpired.png","alt","Expired",1,"w-[15rem]","aspect-square","object-contain"]],template:function(i,r){1&i&&(h(0,"section",0)(1,"div",1),w(2,A8,1,0,"img",2),w(3,k8,1,0,"img",3),h(4,"p",4),_(5),d(),h(6,"div",5)(7,"a",6),C(8,"i",7),_(9," home"),d(),h(10,"a",8),C(11,"i",9),_(12,"Send Mail to Admin"),d()()()()),2&i&&(p(2),v("ngIf","notFound"==r.type),p(1),v("ngIf","expired"==r.type),p(2),ne(r.message))},dependencies:[He,Tt],encapsulation:2})}}return e})()},{path:"menu",component:DE},{path:"**",redirectTo:""}];let P8=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[Xx.forRoot(R8,{scrollPositionRestoration:"enabled"}),Xx]})}}return e})();function F8(e,n){1&e&&(h(0,"small"),_(1,"First Name is required."),d())}function O8(e,n){1&e&&(h(0,"small"),_(1,"Minimum 2 characters required."),d())}function N8(e,n){if(1&e&&(h(0,"div",28),w(1,F8,2,0,"small",27),w(2,O8,2,0,"small",27),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.userForm.get("user_firstname"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.userForm.get("user_firstname"))||null==r.errors?null:r.errors.minlength)}}function L8(e,n){1&e&&(h(0,"small"),_(1,"Last Name is required."),d())}function V8(e,n){1&e&&(h(0,"small"),_(1,"Minimum 2 characters required."),d())}function j8(e,n){if(1&e&&(h(0,"div",28),w(1,L8,2,0,"small",27),w(2,V8,2,0,"small",27),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.userForm.get("user_lastname"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.userForm.get("user_lastname"))||null==r.errors?null:r.errors.minlength)}}function B8(e,n){1&e&&(h(0,"small"),_(1,"Mobile number is required."),d())}function U8(e,n){1&e&&(h(0,"small"),_(1,"Enter a valid 10-digit mobile number."),d())}function H8(e,n){if(1&e&&(h(0,"div",28),w(1,B8,2,0,"small",27),w(2,U8,2,0,"small",27),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.userForm.get("user_mobile"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.userForm.get("user_mobile"))||null==r.errors?null:r.errors.pattern)}}function $8(e,n){1&e&&(h(0,"small"),_(1,"Email is required."),d())}function z8(e,n){1&e&&(h(0,"small"),_(1,"Enter a valid email address."),d())}function q8(e,n){if(1&e&&(h(0,"div",28),w(1,$8,2,0,"small",27),w(2,z8,2,0,"small",27),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.userForm.get("user_email"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.userForm.get("user_email"))||null==r.errors?null:r.errors.email)}}function G8(e,n){1&e&&(h(0,"div",28)(1,"small"),_(2,"Gender is required."),d()())}function W8(e,n){1&e&&(h(0,"small"),_(1,"Address is required."),d())}function Y8(e,n){1&e&&(h(0,"small"),_(1,"Minimum 5 characters required."),d())}function Z8(e,n){if(1&e&&(h(0,"div",28),w(1,W8,2,0,"small",27),w(2,Y8,2,0,"small",27),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.userForm.get("user_address"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.userForm.get("user_address"))||null==r.errors?null:r.errors.minlength)}}function K8(e,n){1&e&&C(0,"span",29)}function X8(e,n){1&e&&(h(0,"span"),_(1,"Update Profile"),d())}const ss=function(e){return{error:e}};let Q8=(()=>{class e{constructor(t,i,r){this.fb=t,this.userService=i,this.setToasterService=r,this.formOutputs=new _e,this.isReqSent=!1,this.emailRegex=/^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i,this.phoneRegex=/^([0|\+[0-9]{1,5})?([6-9][0-9]{9})$/,this.userInitials={first_name:"",last_name:"",first_name_initial:"",last_name_initial:""},this.userForm=this.fb.group({user_firstname:["",[Z.required,Z.minLength(2)]],user_lastname:["",[Z.required,Z.minLength(2)]],user_email:["",[Z.required,Z.email]],user_mobile:["",[Z.required,Z.pattern(this.phoneRegex)]],user_gender:["",[Z.required]],user_address:["",[Z.required,Z.minLength(5)]]}),this.setProfileData()}setProfileData(){this.profileData=this.userService.returnUserProfileData(),this.userForm.get("user_firstname")?.setValue(this.profileData?.user_firstname),this.userForm.get("user_lastname")?.setValue(this.profileData?.user_lastname),this.userForm.get("user_email")?.setValue(this.profileData?.user_email),this.userForm.get("user_mobile")?.setValue(this.profileData?.user_mobile),this.userForm.get("user_gender")?.setValue(this.profileData?.user_gender),this.userForm.get("user_address")?.setValue(this.profileData?.user_address),this.userInitials.first_name=this.profileData?.user_firstname||"User",this.userInitials.last_name=this.profileData?.user_lastname||"",this.userInitials.first_name_initial=this.profileData?.user_firstname?this.profileData?.user_firstname.charAt(0).toUpperCase():"U",this.userInitials.last_name_initial=this.profileData?.user_lastname?this.profileData?.user_lastname.charAt(0).toUpperCase():""}onSubmit(){this.userForm.valid?(this.isReqSent=!0,this.userService.updateUserProfile(this.userForm.value).subscribe(t=>{try{"success"==t.status&&this.getprofileData()}catch{this.isReqSent=!1}})):(console.error("Form Invalid"),this.isReqSent=!1)}getprofileData(){this.userService.getUserProfile().subscribe(t=>{this.isReqSent=!1,localStorage.setItem("userProfile",JSON.stringify(t.data)),this.setToasterService.showToast({message:"Profile has been updated successfully.",title:"Profile Updated",type:"success"}),this.sendMessage("close")})}sendMessage(t){this.formOutputs.emit(t)}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(zn),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-edit-profile-form"]],outputs:{formOutputs:"formOutputs"},decls:64,vars:32,consts:[["src","../../../assets/assets/profile_modelBg.jpg","alt","",1,"w-full","h-[8rem]"],[1,"avatar","placeholder","ms-10","-mt-10","flex","items-center","gap-3"],[1,"bg-gradient-to-r","from-cyan-500","to-blue-500","text-white","w-24","rounded-full"],[1,"text-3xl","uppercase"],[1,"pt-5","font-semibold"],[1,"border-b"],[1,"text-xl","font-semibold","p-5","md:p-10","md:pb-5"],[3,"formGroup","ngSubmit"],[1,"p-5","md:p-10","pt-5","grid","grid-cols-1","md:grid-cols-2","gap-3"],[1,"col-span-1"],[1,"form-control","w-full"],[1,"label"],[1,"label-text"],["type","text","formControlName","user_firstname","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],["class","text-red-500 text-sm",4,"ngIf"],["type","text","formControlName","user_lastname","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],["type","text","formControlName","user_mobile","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],["type","text","formControlName","user_email","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],[1,"col-span-1","md:col-span-2"],["formControlName","user_gender",1,"select","select-bordered","w-full",3,"ngClass"],["value","","disabled",""],["value","MALE"],["value","FEMALE"],["formControlName","user_address","cols","3","placeholder","Address",1,"textarea","textarea-bordered","w-full",3,"ngClass"],[1,"col-span-1","md:col-span-2","flex","justify-end"],["type","submit",1,"btn","bg-primary","w-full","text-white","mb-2","hover:bg-primary/95",3,"disabled"],["id","loginSpinner","class","loading loading-spinner loading-xs",4,"ngIf"],[4,"ngIf"],[1,"text-red-500","text-sm"],["id","loginSpinner",1,"loading","loading-spinner","loading-xs"]],template:function(i,r){if(1&i&&(C(0,"img",0),h(1,"div",1)(2,"div",2)(3,"span",3),_(4),d()(),h(5,"p",4),_(6),d()(),h(7,"div",5)(8,"p",6),_(9," Edit Profile "),d()(),h(10,"form",7),k("ngSubmit",function(){return r.onSubmit()}),h(11,"div",8)(12,"div",9)(13,"label",10)(14,"div",11)(15,"span",12),_(16,"First Name"),d()(),C(17,"input",13),d(),w(18,N8,3,2,"div",14),d(),h(19,"div",9)(20,"label",10)(21,"div",11)(22,"span",12),_(23,"Last Name"),d()(),C(24,"input",15),d(),w(25,j8,3,2,"div",14),d(),h(26,"div",9)(27,"label",10)(28,"div",11)(29,"span",12),_(30,"Mobile"),d()(),C(31,"input",16),d(),w(32,H8,3,2,"div",14),d(),h(33,"div",9)(34,"label",10)(35,"div",11)(36,"span",12),_(37,"Email"),d()(),C(38,"input",17),d(),w(39,q8,3,2,"div",14),d(),h(40,"div",18)(41,"label",10)(42,"div",11)(43,"span",12),_(44,"Gender"),d()(),h(45,"select",19)(46,"option",20),_(47,"Select Gender"),d(),h(48,"option",21),_(49,"Male"),d(),h(50,"option",22),_(51,"Female"),d()()(),w(52,G8,3,0,"div",14),d(),h(53,"div",18)(54,"label",10)(55,"div",11)(56,"span",12),_(57,"Address"),d()(),C(58,"textarea",23),d(),w(59,Z8,3,2,"div",14),d(),h(60,"div",24)(61,"button",25),w(62,K8,1,0,"span",26),w(63,X8,2,0,"span",27),d()()()()),2&i){let o,s,a,l,c,u,f,m,g,b,y,x;p(4),Cn("",r.userInitials.first_name_initial,"",r.userInitials.last_name_initial,""),p(2),Cn(" ",r.userInitials.first_name," .",r.userInitials.last_name_initial," "),p(4),v("formGroup",r.userForm),p(7),v("ngClass",ae(20,ss,(null==(o=r.userForm.get("user_firstname"))?null:o.invalid)&&(null==(o=r.userForm.get("user_firstname"))?null:o.touched))),p(1),v("ngIf",(null==(s=r.userForm.get("user_firstname"))?null:s.touched)&&(null==(s=r.userForm.get("user_firstname"))?null:s.invalid)),p(6),v("ngClass",ae(22,ss,(null==(a=r.userForm.get("user_lastname"))?null:a.invalid)&&(null==(a=r.userForm.get("user_lastname"))?null:a.touched))),p(1),v("ngIf",(null==(l=r.userForm.get("user_lastname"))?null:l.touched)&&(null==(l=r.userForm.get("user_lastname"))?null:l.invalid)),p(6),v("ngClass",ae(24,ss,(null==(c=r.userForm.get("user_mobile"))?null:c.invalid)&&(null==(c=r.userForm.get("user_mobile"))?null:c.touched))),p(1),v("ngIf",(null==(u=r.userForm.get("user_mobile"))?null:u.touched)&&(null==(u=r.userForm.get("user_mobile"))?null:u.invalid)),p(6),v("ngClass",ae(26,ss,(null==(f=r.userForm.get("user_email"))?null:f.invalid)&&(null==(f=r.userForm.get("user_email"))?null:f.touched))),p(1),v("ngIf",(null==(m=r.userForm.get("user_email"))?null:m.touched)&&(null==(m=r.userForm.get("user_email"))?null:m.invalid)),p(6),v("ngClass",ae(28,ss,(null==(g=r.userForm.get("user_gender"))?null:g.invalid)&&(null==(g=r.userForm.get("user_gender"))?null:g.touched))),p(7),v("ngIf",(null==(b=r.userForm.get("user_gender"))?null:b.touched)&&(null==(b=r.userForm.get("user_gender"))?null:b.invalid)),p(6),v("ngClass",ae(30,ss,(null==(y=r.userForm.get("user_address"))?null:y.invalid)&&(null==(y=r.userForm.get("user_address"))?null:y.touched))),p(1),v("ngIf",(null==(x=r.userForm.get("user_address"))?null:x.touched)&&(null==(x=r.userForm.get("user_address"))?null:x.invalid)),p(2),v("disabled",r.userForm.invalid||r.isReqSent),p(1),v("ngIf",r.isReqSent),p(1),v("ngIf",!r.isReqSent)}},dependencies:[Ut,He,ai,Ar,kr,vt,Tr,zt,si,Hn,li]})}}return e})();function J8(e,n){1&e&&(h(0,"small",23),_(1,"Old Password is required."),d())}function e$(e,n){1&e&&(h(0,"small",23),_(1,"Password must be at least 8 characters."),d())}function t$(e,n){if(1&e&&(h(0,"div"),w(1,J8,2,0,"small",22),w(2,e$,2,0,"small",22),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.passwordForm.get("old_password"))?null:i.hasError("required")),p(1),v("ngIf",null==(r=t.passwordForm.get("old_password"))?null:r.hasError("minlength"))}}function n$(e,n){1&e&&(h(0,"small",23),_(1,"New Password is required."),d())}function i$(e,n){1&e&&(h(0,"small",23),_(1,"Password must be at least 8 characters."),d())}function r$(e,n){if(1&e&&(h(0,"div"),w(1,n$,2,0,"small",22),w(2,i$,2,0,"small",22),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.passwordForm.get("new_password"))?null:i.hasError("required")),p(1),v("ngIf",null==(r=t.passwordForm.get("new_password"))?null:r.hasError("minlength"))}}function o$(e,n){1&e&&(h(0,"small",23),_(1,"Confirm Password is required."),d())}function s$(e,n){1&e&&(h(0,"small",23),_(1,"Passwords do not match."),d())}function a$(e,n){if(1&e&&(h(0,"div"),w(1,o$,2,0,"small",22),w(2,s$,2,0,"small",22),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.passwordForm.get("confirm_password"))?null:i.hasError("required")),p(1),v("ngIf",null==(r=t.passwordForm.get("confirm_password"))?null:r.hasError("passwordsMatch"))}}function l$(e,n){1&e&&C(0,"span",24)}function c$(e,n){1&e&&(h(0,"span"),_(1,"Change Password"),d())}const zm=function(e){return{error:e}};let u$=(()=>{class e{constructor(t,i,r){this.fb=t,this.userAuthService=i,this.setToasterService=r,this.formOutputs=new _e,this.oldPasswordVisible=!1,this.newPasswordVisible=!1,this.confirmPasswordVisible=!1,this.userInitials={first_name:"",last_name:"",first_name_initial:"",last_name_initial:""},this.isReqSent=!1}ngOnInit(){this.passwordForm=this.fb.group({old_password:["",[Z.required,Z.minLength(6)]],new_password:["",[Z.required,Z.minLength(6)]],confirm_password:["",[Z.required,Z.minLength(6)]]},{validators:this.passwordsMatch("new_password","confirm_password")}),this.userInfo=this.userAuthService.returnUserProfileData(),this.userInitials.first_name=this.userInfo?.user_firstname||"User",this.userInitials.last_name=this.userInfo?.user_lastname||"",this.userInitials.first_name_initial=this.userInfo?.user_firstname?this.userInfo?.user_firstname.charAt(0).toUpperCase():"U",this.userInitials.last_name_initial=this.userInfo?.user_lastname?this.userInfo?.user_lastname.charAt(0).toUpperCase():""}passwordsMatch(t,i){return r=>{const o=r.get(t),s=r.get(i);s?.errors&&!s.errors.passwordsMatch||s?.setErrors(o?.value!==s?.value?{passwordsMatch:!0}:null)}}onSubmit(){if(this.passwordForm.valid){this.isReqSent=!0;let t={user_old_password:this.passwordForm.get("old_password")?.value,user_new_password:this.passwordForm.get("new_password")?.value,user_new_password_confirmation:this.passwordForm.get("confirm_password")?.value};this.userAuthService.chnagePswd(t).subscribe(i=>{try{"success"==i.status?(this.passwordForm.reset(),this.setToasterService.showToast({message:"Password Updated Successfully, Please Login Again",title:"Password Updated",type:"success"}),this.sendMessage("close"),window.location.reload(),this.userAuthService.logout()):(this.setToasterService.showToast({message:i.errors?.user_new_password?.[0]||"Password Update Failed",title:"Password Update Failed",type:"error"}),this.isReqSent=!1)}catch(r){console.error(r),this.isReqSent=!1,this.setToasterService.showToast({message:"An unexpected error occurred.",title:"Error",type:"error"})}})}else console.log("Form is invalid"),this.isReqSent=!1}togglePasswordVisibility(t){"old_password"===t?this.oldPasswordVisible=!this.oldPasswordVisible:"new_password"===t?this.newPasswordVisible=!this.newPasswordVisible:"confirm_password"===t&&(this.confirmPasswordVisible=!this.confirmPasswordVisible)}sendMessage(t){this.formOutputs.emit(t)}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(zn),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-change-pswd-form"]],outputs:{formOutputs:"formOutputs"},decls:39,vars:23,consts:[["src","../../../assets/assets/profile_modelBg.jpg","alt","",1,"w-full","h-[8rem]"],[1,"avatar","placeholder","ms-10","-mt-10","flex","items-center","gap-3"],[1,"bg-gradient-to-r","from-cyan-500","to-blue-500","text-white","w-24","rounded-full"],[1,"text-3xl","uppercase"],[1,"pt-5","font-semibold"],[1,"border-b"],[1,"text-xl","font-semibold","p-5","md:p-10","md:pb-5"],[3,"formGroup","ngSubmit"],[1,"p-5","md:p-10","pt-5","grid","grid-cols-1","gap-3"],[1,"w-full"],["for","old_password",1,"text-sm","font-semibold"],[1,"bg-zinc-100","flex","items-center","rounded-lg","mt-1","w-full",3,"ngClass"],["formControlName","old_password","id","old_password",1,"w-full","p-3","bg-transparent",3,"type"],["type","button",1,"px-3","text-2xl","btn",3,"click"],[1,"ri-eye-line"],[4,"ngIf"],["for","new_password",1,"text-sm","font-semibold"],["formControlName","new_password","id","new_password",1,"w-full","p-3","bg-transparent",3,"type"],["for","confirm_password",1,"text-sm","font-semibold"],["formControlName","confirm_password","id","confirm_password",1,"w-full","p-3","bg-transparent",3,"type"],["type","submit",1,"btn","bg-primary","w-full","text-white","mb-2","hover:bg-primary/95",3,"disabled"],["id","loginSpinner","class","loading loading-spinner loading-xs",4,"ngIf"],["class","text-red-500 text-sm",4,"ngIf"],[1,"text-red-500","text-sm"],["id","loginSpinner",1,"loading","loading-spinner","loading-xs"]],template:function(i,r){if(1&i&&(C(0,"img",0),h(1,"div",1)(2,"div",2)(3,"span",3),_(4),d()(),h(5,"p",4),_(6),d()(),h(7,"div",5)(8,"p",6),_(9," Change Password "),d()(),h(10,"form",7),k("ngSubmit",function(){return r.onSubmit()}),h(11,"div",8)(12,"div",9)(13,"label",10),_(14,"Old Password"),d(),h(15,"div",11),C(16,"input",12),h(17,"button",13),k("click",function(){return r.togglePasswordVisibility("old_password")}),C(18,"i",14),d()(),w(19,t$,3,2,"div",15),d(),h(20,"div",9)(21,"label",16),_(22,"New Password"),d(),h(23,"div",11),C(24,"input",17),h(25,"button",13),k("click",function(){return r.togglePasswordVisibility("new_password")}),C(26,"i",14),d()(),w(27,r$,3,2,"div",15),d(),h(28,"div",9)(29,"label",18),_(30,"Confirm Password"),d(),h(31,"div",11),C(32,"input",19),h(33,"button",13),k("click",function(){return r.togglePasswordVisibility("confirm_password")}),C(34,"i",14),d()(),w(35,a$,3,2,"div",15),d(),h(36,"button",20),w(37,l$,1,0,"span",21),w(38,c$,2,0,"span",15),d()()()),2&i){let o,s,a,l,c,u;p(4),Cn("",r.userInitials.first_name_initial,"",r.userInitials.last_name_initial,""),p(2),Cn("",r.userInitials.first_name," .",r.userInitials.last_name_initial,""),p(4),v("formGroup",r.passwordForm),p(5),v("ngClass",ae(17,zm,(null==(o=r.passwordForm.get("old_password"))?null:o.invalid)&&(null==(o=r.passwordForm.get("old_password"))?null:o.touched))),p(1),v("type",r.oldPasswordVisible?"text":"password"),p(3),v("ngIf",(null==(s=r.passwordForm.get("old_password"))?null:s.touched)&&(null==(s=r.passwordForm.get("old_password"))?null:s.invalid)),p(4),v("ngClass",ae(19,zm,(null==(a=r.passwordForm.get("new_password"))?null:a.invalid)&&(null==(a=r.passwordForm.get("new_password"))?null:a.touched))),p(1),v("type",r.newPasswordVisible?"text":"password"),p(3),v("ngIf",(null==(l=r.passwordForm.get("new_password"))?null:l.touched)&&(null==(l=r.passwordForm.get("new_password"))?null:l.invalid)),p(4),v("ngClass",ae(21,zm,(null==(c=r.passwordForm.get("confirm_password"))?null:c.invalid)&&(null==(c=r.passwordForm.get("confirm_password"))?null:c.touched))),p(1),v("type",r.confirmPasswordVisible?"text":"password"),p(3),v("ngIf",(null==(u=r.passwordForm.get("confirm_password"))?null:u.touched)&&(null==(u=r.passwordForm.get("confirm_password"))?null:u.invalid)),p(1),v("disabled",r.passwordForm.invalid||r.isReqSent),p(1),v("ngIf",r.isReqSent),p(1),v("ngIf",!r.isReqSent)}},dependencies:[Ut,He,ai,vt,zt,si,Hn,li]})}}return e})();function d$(e,n){1&e&&(h(0,"div"),_(1,"Mobile number is required."),d())}function h$(e,n){1&e&&(h(0,"div"),_(1,"Enter a valid 10-digit mobile number."),d())}function f$(e,n){if(1&e&&(h(0,"div",23),w(1,d$,2,0,"div",18),w(2,h$,2,0,"div",18),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.loginForm.get("user_mobile"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.loginForm.get("user_mobile"))||null==r.errors?null:r.errors.pattern)}}function p$(e,n){1&e&&C(0,"i",24)}function m$(e,n){1&e&&C(0,"i",25)}function g$(e,n){1&e&&(h(0,"div"),_(1,"Password is required."),d())}function _$(e,n){1&e&&(h(0,"div"),_(1,"Password must be at least 6 characters long."),d())}function v$(e,n){if(1&e&&(h(0,"div",23),w(1,g$,2,0,"div",18),w(2,_$,2,0,"div",18),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.loginForm.get("password"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.loginForm.get("password"))||null==r.errors?null:r.errors.minlength)}}function b$(e,n){1&e&&(h(0,"div"),_(1," Please complete the reCAPTCHA. "),d())}function y$(e,n){1&e&&C(0,"span",26)}function w$(e,n){1&e&&(h(0,"span"),_(1,"Login"),d())}const EE=function(e){return{error:e}};let C$=(()=>{class e{constructor(t,i,r){this.fb=t,this.loginService=i,this.setToasterService=r,this.loginOutputs=new _e,this.isPasswordVisible=!1,this.loginReqSent=!1,this.emailRegex=/^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i,this.phoneRegex=/^([0|\+[0-9]{1,5})?([6-9][0-9]{9})$/,this.pswdRegex=/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[a-zA-Z]).{8,}$/}ngOnInit(){this.loginForm=this.fb.group({user_mobile:["",[Z.required,Z.pattern(this.phoneRegex)]],password:["",[Z.required,Z.minLength(6)]],recaptcha:[null]})}get f(){return this.loginForm.controls}togglePasswordVisibility(){this.isPasswordVisible=!this.isPasswordVisible}onSubmit(){this.loginForm.valid?(this.loginReqSent=!0,this.loginService.login(this.loginForm.value).subscribe(t=>{console.log(t);try{"success"==t.status?(this.sendMessage("close"),this.loginReqSent=!1,this.setToasterService.showToast({message:"You have successfully loged in",title:"Login Success",type:"success"})):"failed"==t.status&&401==t.code?(this.loginReqSent=!1,this.setToasterService.showToast({message:"Invalid Credentials, Please try again",title:"Login Failed",type:"error"})):"failed"==t.status&&500==t.code?(this.loginReqSent=!1,this.setToasterService.showToast({message:"User not found, Please try again",title:"Login Failed",type:"error"})):(this.loginReqSent=!1,this.setToasterService.showToast({message:"Something went wrong, Please try again later",title:"Login Failed",type:"error"}))}catch{this.loginReqSent=!1,this.setToasterService.showToast({message:"Something went wrong, Please try again later",title:"Login Failed",type:"error"})}})):(console.log("Form is not valid"),this.loginReqSent=!1)}sendMessage(t){this.loginOutputs.emit(t)}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(zn),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-login-form"]],outputs:{loginOutputs:"loginOutputs"},decls:33,vars:16,consts:[["id","login",1,"formSection","pt-5","px-5","md:px-10","md:pt-10","overflow-y-auto"],["src","../../../assets/assets/favicon.png","alt","",1,"w-16","h-16","object-contain"],[1,"mt-10"],[1,"header-text","text-3xl","capitalize"],[1,"text-zinc-500","mt-1"],[1,"mt-5",3,"formGroup","ngSubmit"],["for","mobile-number",1,"text-sm","font-semibold"],[1,"bg-zinc-100","flex","items-center","rounded-lg","mt-1",3,"ngClass"],["type","text","id","mobile-number","formControlName","user_mobile","placeholder","Enter 10-digit mobile number","autocomplete","on","oninput","this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\\..*)\\./g, '$1');",1,"w-full","p-3","bg-transparent"],[1,"ri-phone-fill","px-3","text-2xl"],["class","text-red-500 text-sm",4,"ngIf"],[1,"mt-2"],["for","password",1,"text-sm","font-semibold"],["id","password","formControlName","password","autocomplete","on","placeholder","Enter your password",1,"w-full","p-3","bg-transparent",3,"type"],["type","button",1,"px-3","text-2xl","btn",3,"click"],["class","ri-eye-line",4,"ngIf"],["class","ri-eye-off-line",4,"ngIf"],["formControlName","recaptcha",1,"w-full"],[4,"ngIf"],[1,"mt-10","text-center"],["type","submit",1,"btn","bg-primary","w-full","text-white","mb-2","hover:bg-primary/95",3,"disabled"],["id","loginSpinner","class","loading loading-spinner loading-xs",4,"ngIf"],[1,"text-zinc-400","hover:text-black","font-semibold","text-sm","pt-2","cursor-pointer",3,"click"],[1,"text-red-500","text-sm"],[1,"ri-eye-line"],[1,"ri-eye-off-line"],["id","loginSpinner",1,"loading","loading-spinner","loading-xs"]],template:function(i,r){if(1&i&&(h(0,"div",0),C(1,"img",1),h(2,"div",2)(3,"h3",3),_(4,"hello Again"),d(),h(5,"p",4),_(6,"Your work, your tools, all in one place. Securely sign in to get started."),d()(),h(7,"form",5),k("ngSubmit",function(){return r.onSubmit()}),h(8,"div")(9,"label",6),_(10,"Mobile number"),d(),h(11,"div",7),C(12,"input",8)(13,"i",9),d(),w(14,f$,3,2,"div",10),d(),h(15,"div",11)(16,"label",12),_(17,"Password"),d(),h(18,"div",7),C(19,"input",13),h(20,"button",14),k("click",function(){return r.togglePasswordVisibility()}),w(21,p$,1,0,"i",15),w(22,m$,1,0,"i",16),d()(),w(23,v$,3,2,"div",10),d(),h(24,"div",11),C(25,"re-captcha",17),w(26,b$,2,0,"div",18),d(),h(27,"div",19)(28,"button",20),w(29,y$,1,0,"span",21),w(30,w$,2,0,"span",18),d(),h(31,"a",22),k("click",function(){return r.sendMessage("forgot_pswd")}),_(32,"Forgot Password"),d()()()()),2&i){let o,s,a,l,c;p(7),v("formGroup",r.loginForm),p(4),v("ngClass",ae(12,EE,(null==(o=r.loginForm.get("user_mobile"))?null:o.invalid)&&((null==(o=r.loginForm.get("user_mobile"))?null:o.touched)||(null==(o=r.loginForm.get("user_mobile"))?null:o.dirty)))),p(3),v("ngIf",(null==(s=r.loginForm.get("user_mobile"))?null:s.invalid)&&((null==(s=r.loginForm.get("user_mobile"))?null:s.touched)||(null==(s=r.loginForm.get("user_mobile"))?null:s.dirty))),p(4),v("ngClass",ae(14,EE,(null==(a=r.loginForm.get("password"))?null:a.invalid)&&((null==(a=r.loginForm.get("password"))?null:a.touched)||(null==(a=r.loginForm.get("password"))?null:a.dirty)))),p(1),v("type",r.isPasswordVisible?"text":"password"),p(2),v("ngIf",!r.isPasswordVisible),p(1),v("ngIf",r.isPasswordVisible),p(1),v("ngIf",(null==(l=r.loginForm.get("password"))?null:l.invalid)&&((null==(l=r.loginForm.get("password"))?null:l.touched)||(null==(l=r.loginForm.get("password"))?null:l.dirty))),p(3),v("ngIf",(null==(c=r.loginForm.get("recaptcha"))?null:c.invalid)&&(null==(c=r.loginForm.get("recaptcha"))?null:c.touched)),p(2),v("disabled",r.loginForm.invalid||r.loginReqSent),p(1),v("ngIf",r.loginReqSent),p(1),v("ngIf",!r.loginReqSent)}},dependencies:[Ut,He,ai,vt,zt,si,Hn,li,ju,$m]})}}return e})();function D$(e,n){1&e&&(h(0,"div"),_(1,"Enter a valid email address."),d())}function x$(e,n){if(1&e&&(h(0,"div",17),w(1,D$,2,0,"div",15),d()),2&e){const t=T();let i;p(1),v("ngIf",null==(i=t.forgetPswd.get("email"))||null==i.errors?null:i.errors.email)}}function E$(e,n){1&e&&C(0,"span",18)}function M$(e,n){1&e&&(h(0,"span"),_(1,"Send Link"),d())}const S$=function(e){return{error:e}};let I$=(()=>{class e{constructor(t,i,r){this.fb=t,this.userService=i,this.toaster=r,this.currentFormStage=1,this.isReqSend=!1,this.loginOutputs=new _e,this.emailRegex=/^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i,this.atLeastOneValidator=o=>{const s=o.get("mobile_number")?.value,a=o.get("email")?.value;return s||a?null:{atLeastOneRequired:!0}}}ngOnInit(){this.forgetPswd=this.fb.group({email:["",[Z.required,Z.email]]})}sendOTP(){if(this.forgetPswd.valid){this.isReqSend=!0;let t={email_address:this.forgetPswd.get("email")?.value};this.userService.forgetPswd(t).subscribe(i=>{try{if("success"==i.status){this.toaster.showToast({message:i.message,title:"Please check your email",type:"success"});const r=this.forgetPswd.get("email")?.value;r&&r.endsWith("@gmail.com")&&setTimeout(()=>{confirm("Do you want to check your email now?")&&window.open("https://mail.google.com","_blank")},2e3),this.sendMessage("close")}else this.toaster.showToast({message:i.message,title:"Invalid Email",type:"error"});this.isReqSend=!1}catch(r){console.log(r),this.isReqSend=!1}this.isReqSend=!1})}}sendMessage(t){this.loginOutputs.emit(t)}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(zn),D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-forget-pswd-form"]],outputs:{loginOutputs:"loginOutputs"},decls:22,vars:8,consts:[[1,"pt-5","px-5","md:px-10","md:pt-10"],["id","forgot_pswd",1,"formSection"],["src","../../../assets/assets/favicon.png","alt","",1,"w-16","h-16","object-contain"],[1,"mt-10"],[1,"header-text","text-3xl","capitalize"],[1,"text-zinc-500","mt-1"],[1,"mt-5",3,"formGroup","ngSubmit"],["for","email",1,"text-sm","font-semibold"],[1,"bg-zinc-100","flex","items-center","rounded-lg","mt-1",3,"ngClass"],["type","email","name","email","formControlName","email","placeholder","Enter your email",1,"w-full","p-3","bg-transparent"],[1,"ri-mail-line","px-3","text-2xl"],["class","text-red-500 text-sm",4,"ngIf"],[1,"mt-10","text-center"],["type","submit",1,"btn","bg-primary","w-full","text-white","mb-2","hover:bg-primary/95",3,"disabled"],["id","loginSpinner","class","loading loading-spinner loading-xs",4,"ngIf"],[4,"ngIf"],[1,"text-zinc-400","hover:text-black","font-semibold","text-sm","pt-2","cursor-pointer",3,"click"],[1,"text-red-500","text-sm"],["id","loginSpinner",1,"loading","loading-spinner","loading-xs"]],template:function(i,r){if(1&i&&(h(0,"div",0)(1,"div",1),C(2,"img",2),h(3,"div",3)(4,"h3",4),_(5,"Forget Password"),d(),h(6,"p",5),_(7,"Forgot your password? No worries! Enter your email below, and we'll send you a link to reset it."),d()(),h(8,"form",6),k("ngSubmit",function(){return r.sendOTP()}),h(9,"div")(10,"label",7),_(11,"Email"),d(),h(12,"div",8),C(13,"input",9)(14,"i",10),d(),w(15,x$,2,1,"div",11),d(),h(16,"div",12)(17,"button",13),w(18,E$,1,0,"span",14),w(19,M$,2,0,"span",15),d(),h(20,"a",16),k("click",function(){return r.sendMessage("login")}),_(21,"Back to login"),d()()()()()),2&i){let o,s;p(8),v("formGroup",r.forgetPswd),p(4),v("ngClass",ae(6,S$,(null==(o=r.forgetPswd.get("email"))?null:o.invalid)&&((null==(o=r.forgetPswd.get("email"))?null:o.touched)||(null==(o=r.forgetPswd.get("email"))?null:o.dirty)))),p(3),v("ngIf",(null==(s=r.forgetPswd.get("email"))?null:s.invalid)&&((null==(s=r.forgetPswd.get("email"))?null:s.touched)||(null==(s=r.forgetPswd.get("email"))?null:s.dirty))),p(2),v("disabled",r.forgetPswd.invalid||r.isReqSend),p(1),v("ngIf",r.isReqSend),p(1),v("ngIf",!r.isReqSend)}},dependencies:[Ut,He,ai,vt,zt,si,Hn,li],styles:[".otp-filed[_ngcontent-%COMP%]     .ng-otp-input-wrapper{display:flex;flex-wrap:nowrap;font-size:14px}.otp-filed[_ngcontent-%COMP%]     .ng-otp-input-wrapper input{font-size:16px!important;font-weight:600;background-color:#f4f4f5;border-radius:6px;border:0}"]})}}return e})();function T$(e,n){1&e&&(h(0,"span",33),C(1,"i",34),h(2,"small",35),_(3,"Avatar"),d()())}function A$(e,n){1&e&&C(0,"img",36),2&e&&Gi("src",T().profile_pic,wi)}function k$(e,n){1&e&&(h(0,"small"),_(1,"Full Name is required."),d())}function R$(e,n){1&e&&(h(0,"small"),_(1,"Minimum 2 characters required."),d())}function P$(e,n){if(1&e&&(h(0,"div",37),w(1,k$,2,0,"small",29),w(2,R$,2,0,"small",29),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.feedbackForm.get("full_name"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.feedbackForm.get("full_name"))||null==r.errors?null:r.errors.minlength)}}function F$(e,n){1&e&&(h(0,"small"),_(1,"Email is required."),d())}function O$(e,n){1&e&&(h(0,"small"),_(1,"Enter a valid email address."),d())}function N$(e,n){if(1&e&&(h(0,"div",37),w(1,F$,2,0,"small",29),w(2,O$,2,0,"small",29),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.feedbackForm.get("email"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.feedbackForm.get("email"))||null==r.errors?null:r.errors.email)}}function L$(e,n){1&e&&(h(0,"small"),_(1,"Mobile number is required."),d())}function V$(e,n){1&e&&(h(0,"small"),_(1,"Enter a valid 10-digit mobile number."),d())}function j$(e,n){if(1&e&&(h(0,"div",37),w(1,L$,2,0,"small",29),w(2,V$,2,0,"small",29),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.feedbackForm.get("mobile_number"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.feedbackForm.get("mobile_number"))||null==r.errors?null:r.errors.pattern)}}function B$(e,n){if(1&e&&(h(0,"option",38),_(1),d()),2&e){const t=n.$implicit;v("value",t.code),p(1),pe(" ",t.name," ")}}function U$(e,n){1&e&&(h(0,"small"),_(1,"State is required."),d())}function H$(e,n){if(1&e&&(h(0,"div",37),w(1,U$,2,0,"small",29),d()),2&e){const t=T();let i;p(1),v("ngIf",null==(i=t.feedbackForm.get("state"))||null==i.errors?null:i.errors.required)}}function $$(e,n){1&e&&(h(0,"small"),_(1,"Message is required."),d())}function z$(e,n){1&e&&(h(0,"small"),_(1,"Minimum 5 characters required."),d())}function q$(e,n){1&e&&(h(0,"small"),_(1,"Maximum 250 characters required."),d())}function G$(e,n){if(1&e&&(h(0,"div",37),w(1,$$,2,0,"small",29),w(2,z$,2,0,"small",29),w(3,q$,2,0,"small",29),d()),2&e){const t=T();let i,r,o;p(1),v("ngIf",null==(i=t.feedbackForm.get("message"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.feedbackForm.get("message"))||null==r.errors?null:r.errors.minlength),p(1),v("ngIf",null==(o=t.feedbackForm.get("message"))||null==o.errors?null:o.errors.maximum)}}function W$(e,n){1&e&&(h(0,"div"),_(1," Please complete the reCAPTCHA. "),d())}function Y$(e,n){1&e&&C(0,"span",39)}function Z$(e,n){1&e&&(h(0,"span"),_(1,"Share Feedback"),d())}const K$=function(e){return{"ring-zinc-200 ring-offset-base-100 rounded-[1.8rem] ring ring-offset-2":e}},Ga=function(e){return{error:e}};let X$=(()=>{class e{constructor(t,i,r,o){this.fb=t,this.userService=i,this.setToasterService=r,this.publciApi=o,this.formOutputs=new _e,this.isReqSent=!1,this.emailRegex=/^[A-Z0-9._%+-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i,this.phoneRegex=/^([0|\+[0-9]{1,5})?([6-9][0-9]{9})$/,this.profile_pic=null,this.states=[{name:"Andhra Pradesh",code:"AP",capital:"Amaravati"},{name:"Arunachal Pradesh",code:"AR",capital:"Itanagar"},{name:"Assam",code:"AS",capital:"Dispur"},{name:"Bihar",code:"BR",capital:"Patna"},{name:"Chhattisgarh",code:"CG",capital:"Raipur"},{name:"Goa",code:"GA",capital:"Panaji"},{name:"Gujarat",code:"GJ",capital:"Gandhinagar"},{name:"Haryana",code:"HR",capital:"Chandigarh"},{name:"Himachal Pradesh",code:"HP",capital:"Shimla"},{name:"Jharkhand",code:"JH",capital:"Ranchi"},{name:"Karnataka",code:"KA",capital:"Bengaluru"},{name:"Kerala",code:"KL",capital:"Thiruvananthapuram"},{name:"Madhya Pradesh",code:"MP",capital:"Bhopal"},{name:"Maharashtra",code:"MH",capital:"Mumbai"},{name:"Manipur",code:"MN",capital:"Imphal"},{name:"Meghalaya",code:"ML",capital:"Shillong"},{name:"Mizoram",code:"MZ",capital:"Aizawl"},{name:"Nagaland",code:"NL",capital:"Kohima"},{name:"Odisha",code:"OD",capital:"Bhubaneswar"},{name:"Punjab",code:"PB",capital:"Chandigarh"},{name:"Rajasthan",code:"RJ",capital:"Jaipur"},{name:"Sikkim",code:"SK",capital:"Gangtok"},{name:"Tamil Nadu",code:"TN",capital:"Chennai"},{name:"Telangana",code:"TG",capital:"Hyderabad"},{name:"Tripura",code:"TR",capital:"Agartala"},{name:"Uttar Pradesh",code:"UP",capital:"Lucknow"},{name:"Uttarakhand",code:"UK",capital:"Dehradun"},{name:"West Bengal",code:"WB",capital:"Kolkata"}],this.feedbackForm=this.fb.group({full_name:["",[Z.required,Z.minLength(2)]],email:["",[Z.required,Z.email]],mobile_number:["",[Z.required,Z.pattern(this.phoneRegex)]],state:["",[Z.required]],message:["",[Z.required,Z.minLength(5),Z.maxLength(250)]],recaptcha:[""],profile_pic:[null]}),this.setProfileData()}setProfileData(){this.profileData=this.userService.returnUserProfileData(),this.profileData&&(this.feedbackForm.get("full_name")?.setValue(this.profileData.user_firstname),this.feedbackForm.get("email")?.setValue(this.profileData.user_email),this.feedbackForm.get("mobile_number")?.setValue(this.profileData.user_mobile))}onSubmit(){if(this.feedbackForm.markAllAsTouched(),this.feedbackForm.valid){this.isReqSent=!0;let t=new FormData;t.append("feedback_name",this.feedbackForm.get("full_name")?.value),t.append("feedback_email",this.feedbackForm.get("email")?.value),t.append("feedback_mobile",this.feedbackForm.get("mobile_number")?.value),t.append("feedback_state",this.feedbackForm.get("state")?.value),t.append("feedback_message",this.feedbackForm.get("message")?.value),t.append("profile_photo",this.feedbackForm.get("profile_pic")?.value),this.publciApi.shareUserFeedback(t).subscribe(i=>{console.log(i),this.isReqSent=!1;try{"success"==i.status?(this.setToasterService.showToast({message:i.message||"Thank you for your feedback. We will get back to you soon.",title:"Success",type:"success"}),this.feedbackForm.reset(),this.sendMessage("close")):this.setToasterService.showToast({message:i.message||"Something went wrong. Please try again later.",title:"Failed",type:"error"})}catch(r){console.error(r),this.isReqSent=!1}},i=>{console.error(i),this.isReqSent=!1})}}setProfilePic(t){console.log(t.target.files),t.target.files.length>0?(this.feedbackForm.get("profile_pic")?.setValue(t.target.files[0]),this.profile_pic=URL.createObjectURL(t.target.files[0])):(this.feedbackForm.get("profile_pic")?.setValue(""),this.profile_pic=null),console.log(this.profile_pic)}sendMessage(t){this.formOutputs.emit(t)}static{this.\u0275fac=function(i){return new(i||e)(D(tr),D(zn),D(ct),D(Fi))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-feedback-form"]],outputs:{formOutputs:"formOutputs"},decls:62,vars:31,consts:[[1,"border-b","px-5","md:px-10","h-[3rem]","flex","items-center","bg-primary","text-white"],[1,"text-base","font-medium"],[3,"formGroup","ngSubmit"],[1,"p-5","md:px-10","pt-5","grid","grid-cols-1","md:grid-cols-2","gap-3"],[1,"md:col-span-2","flex","items-center","gap-2","cursor-pointer",3,"click"],[1,"avatar",3,"ngClass"],[1,"mask","mask-squircle","w-24","bg-zinc-100","border"],["class","w-full h-full flex flex-col items-center justify-center",4,"ngIf"],["class","w-full h-full object-cover",3,"src",4,"ngIf"],[1,"ml-3"],[1,"font-semibold"],[1,"text-sm","text-gray-500"],["type","file","id","file","accept","image/*",1,"hidden",3,"change"],["file",""],[1,"col-span-1"],[1,"form-control","w-full"],[1,"label"],[1,"label-text","req"],["type","text","formControlName","full_name","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],["class","text-red-500 text-sm",4,"ngIf"],["type","text","formControlName","email","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],["type","text","formControlName","mobile_number","placeholder","Type here",1,"input","input-bordered","w-full",3,"ngClass"],["formControlName","state",1,"select","select-bordered","w-full",3,"ngClass"],["value","","disabled",""],[3,"value",4,"ngFor","ngForOf"],[1,"col-span-1","md:col-span-2"],["formControlName","message","cols","3","placeholder","Message Here",1,"textarea","textarea-bordered","w-full",3,"ngClass"],[1,"mt-2"],["formControlName","recaptcha",1,"w-full"],[4,"ngIf"],[1,"col-span-1","md:col-span-2","flex","justify-end"],["type","submit",1,"btn","bg-primary","w-full","text-white","mb-2","hover:bg-primary/95",3,"disabled"],["id","loginSpinner","class","loading loading-spinner loading-xs",4,"ngIf"],[1,"w-full","h-full","flex","flex-col","items-center","justify-center"],[1,"ri-image-circle-ai-fill","text-3xl"],[1,"text-zinc-500"],[1,"w-full","h-full","object-cover",3,"src"],[1,"text-red-500","text-sm"],[3,"value"],["id","loginSpinner",1,"loading","loading-spinner","loading-xs"]],template:function(i,r){if(1&i){const o=ue();h(0,"div",0)(1,"p",1),_(2,"Feedback Form"),d()(),h(3,"form",2),k("ngSubmit",function(){return r.onSubmit()}),h(4,"div",3)(5,"div",4),k("click",function(){return W(o),Y(Ee(16).click())}),h(6,"div",5)(7,"div",6),w(8,T$,4,0,"span",7),w(9,A$,1,1,"img",8),d()(),h(10,"div",9)(11,"p",10),_(12,"Upload Avatar"),d(),h(13,"p",11),_(14,"Upload your profile picture"),d()()(),h(15,"input",12,13),k("change",function(a){return r.setProfilePic(a)}),d(),h(17,"div",14)(18,"label",15)(19,"div",16)(20,"span",17),_(21,"Full Name "),d()(),C(22,"input",18),d(),w(23,P$,3,2,"div",19),d(),h(24,"div",14)(25,"label",15)(26,"div",16)(27,"span",17),_(28,"Email"),d()(),C(29,"input",20),d(),w(30,N$,3,2,"div",19),d(),h(31,"div",14)(32,"label",15)(33,"div",16)(34,"span",17),_(35,"Mobile"),d()(),C(36,"input",21),d(),w(37,j$,3,2,"div",19),d(),h(38,"div",14)(39,"label",15)(40,"div",16)(41,"span",17),_(42,"State"),d()(),h(43,"select",22)(44,"option",23),_(45,"Select your state"),d(),w(46,B$,2,2,"option",24),d()(),w(47,H$,2,1,"div",19),d(),h(48,"div",25)(49,"label",15)(50,"div",16)(51,"span",17),_(52,"Message"),d()(),C(53,"textarea",26),d(),w(54,G$,4,3,"div",19),d(),h(55,"div",27),C(56,"re-captcha",28),w(57,W$,2,0,"div",29),d(),h(58,"div",30)(59,"button",31),w(60,Y$,1,0,"span",32),w(61,Z$,2,0,"span",29),d()()()()}if(2&i){let o,s,a,l,c,u,f,m,g,b,y;p(3),v("formGroup",r.feedbackForm),p(3),v("ngClass",ae(19,K$,null!=r.profile_pic)),p(2),v("ngIf",null==r.profile_pic),p(1),v("ngIf",null!=r.profile_pic),p(13),v("ngClass",ae(21,Ga,(null==(o=r.feedbackForm.get("full_name"))?null:o.invalid)&&(null==(o=r.feedbackForm.get("full_name"))?null:o.touched))),p(1),v("ngIf",(null==(s=r.feedbackForm.get("full_name"))?null:s.touched)&&(null==(s=r.feedbackForm.get("full_name"))?null:s.invalid)),p(6),v("ngClass",ae(23,Ga,(null==(a=r.feedbackForm.get("email"))?null:a.invalid)&&(null==(a=r.feedbackForm.get("email"))?null:a.touched))),p(1),v("ngIf",(null==(l=r.feedbackForm.get("email"))?null:l.touched)&&(null==(l=r.feedbackForm.get("email"))?null:l.invalid)),p(6),v("ngClass",ae(25,Ga,(null==(c=r.feedbackForm.get("mobile_number"))?null:c.invalid)&&(null==(c=r.feedbackForm.get("mobile_number"))?null:c.touched))),p(1),v("ngIf",(null==(u=r.feedbackForm.get("mobile_number"))?null:u.touched)&&(null==(u=r.feedbackForm.get("mobile_number"))?null:u.invalid)),p(6),v("ngClass",ae(27,Ga,(null==(f=r.feedbackForm.get("state"))?null:f.invalid)&&(null==(f=r.feedbackForm.get("state"))?null:f.touched))),p(3),v("ngForOf",r.states),p(1),v("ngIf",(null==(m=r.feedbackForm.get("state"))?null:m.touched)&&(null==(m=r.feedbackForm.get("state"))?null:m.invalid)),p(6),v("ngClass",ae(29,Ga,(null==(g=r.feedbackForm.get("message"))?null:g.invalid)&&(null==(g=r.feedbackForm.get("message"))?null:g.touched))),p(1),v("ngIf",(null==(b=r.feedbackForm.get("message"))?null:b.touched)&&(null==(b=r.feedbackForm.get("message"))?null:b.invalid)),p(3),v("ngIf",(null==(y=r.feedbackForm.get("recaptcha"))?null:y.invalid)&&(null==(y=r.feedbackForm.get("recaptcha"))?null:y.touched)),p(2),v("disabled",r.feedbackForm.invalid||r.isReqSent),p(1),v("ngIf",r.isReqSent),p(1),v("ngIf",!r.isReqSent)}},dependencies:[Ut,Ht,He,ai,Ar,kr,vt,Tr,zt,si,Hn,li,ju,$m]})}}return e})();const Q$=["login_model"],J$=["sidemenu_model"],e6=["profile_model"],t6=["change_pswd"],n6=["feedback"];function i6(e,n){1&e&&(h(0,"div",73),C(1,"span",74)(2,"span",75),d())}const r6=function(){return[1,2,3,4,5]};function o6(e,n){1&e&&(ie(0),w(1,i6,3,0,"div",72),re()),2&e&&(p(1),v("ngForOf",Dn(1,r6)))}function s6(e,n){if(1&e){const t=ue();h(0,"div")(1,"button",77),k("click",function(){const o=W(t).$implicit;return Y(T(2).checkUserAcccessProduct(o.seo_url))}),C(2,"img",78),h(3,"h2",79),_(4),d()()()}if(2&e){const t=n.$implicit;p(2),Je("src","../../../assets/assets/products_icons/",null==t?null:t.img,"",wi),p(2),ne(null==t?null:t.product_name)}}function a6(e,n){1&e&&w(0,s6,5,2,"div",76),2&e&&v("ngForOf",T().productsData)}function l6(e,n){if(1&e){const t=ue();ie(0),h(1,"button",80),k("click",function(){return W(t),Y(T().openModel("login"))}),_(2,"Login"),d(),re()}}function c6(e,n){if(1&e){const t=ue();h(0,"div",81)(1,"div",82)(2,"div",83)(3,"div",84)(4,"span",85),_(5),d()()(),h(6,"div",86)(7,"span",87),_(8,"Hello"),d(),h(9,"p",88),_(10),d()()(),h(11,"ul",89)(12,"li")(13,"button",90),k("click",function(){return W(t),Y(T().openModel("profile"))}),C(14,"i",91),_(15," Edit Profile"),d()(),h(16,"li")(17,"button",90),k("click",function(){return W(t),Y(T().openModel("change_pswd"))}),C(18,"i",92),_(19," Change Password"),d()(),h(20,"li")(21,"button",90),k("click",function(){return W(t),Y(T().logout())}),C(22,"i",93),_(23," Logout"),d()()()()}if(2&e){const t=T();p(5),Cn("",t.userInitials.first_name_initial,"",t.userInitials.last_name_initial,""),p(5),Cn("",t.userInitials.first_name," .",t.userInitials.last_name_initial,"")}}function u6(e,n){if(1&e){const t=ue();h(0,"app-login-form",95),k("loginOutputs",function(r){return W(t),Y(T(2).formEvents(r))}),d()}}function d6(e,n){if(1&e){const t=ue();h(0,"app-forget-pswd-form",95),k("loginOutputs",function(r){return W(t),Y(T(2).formEvents(r))}),d()}}function h6(e,n){if(1&e&&(ie(0),w(1,u6,1,0,"app-login-form",94),w(2,d6,1,0,"app-forget-pswd-form",94),re()),2&e){const t=T();p(1),v("ngIf","login"==t.currentFormDisplay),p(1),v("ngIf","forgot_pswd"==t.currentFormDisplay)}}function f6(e,n){if(1&e){const t=ue();ie(0),h(1,"button",96),k("click",function(){return W(t),Y(T().openModel("login"))}),_(2,"Login"),d(),re()}}function p6(e,n){if(1&e){const t=ue();h(0,"div",97),C(1,"input",98),h(2,"div",99)(3,"div",100)(4,"div",83)(5,"div",101)(6,"span",102),_(7),d()()(),h(8,"div",86)(9,"span",103),_(10,"Hello"),d(),h(11,"p",104),_(12),d()()()(),h(13,"div",105)(14,"div",106)(15,"div",107)(16,"ul")(17,"li")(18,"button",108),k("click",function(){return W(t),Y(T().openModel("profile"))}),C(19,"i",91),_(20," Edit Profile"),d()(),h(21,"li")(22,"button",108),k("click",function(){return W(t),Y(T().openModel("change_pswd"))}),C(23,"i",92),_(24," Change Password"),d()(),h(25,"li")(26,"button",108),k("click",function(){return W(t),Y(T().logout())}),C(27,"i",93),_(28," Logout"),d()()()()()()()}if(2&e){const t=T();p(7),Cn("",null==t.userProfileData?null:t.userProfileData.user_firstname.charAt(0),"",null==t.userProfileData?null:t.userProfileData.user_lastname.charAt(0),""),p(5),Cn(" ",null==t.userProfileData?null:t.userProfileData.user_firstname,"",null==t.userProfileData?null:t.userProfileData.user_lastname.charAt(0),"")}}function m6(e,n){1&e&&(ie(0),h(1,"div")(2,"div",109),C(3,"span",110)(4,"span",111),d()(),re())}function g6(e,n){if(1&e){const t=ue();h(0,"li")(1,"div")(2,"button",113),k("click",function(){const o=W(t).$implicit;return Y(T(2).checkUserAcccessProduct(o.seo_url))}),C(3,"img",114),h(4,"h2",115),_(5),d()()()()}if(2&e){const t=n.$implicit;p(3),Je("src","../../../assets/assets/products_icons/",null==t?null:t.img,"",wi),p(2),pe(" ",null==t?null:t.product_name,"")}}function _6(e,n){if(1&e&&(h(0,"ul",112),w(1,g6,6,2,"li",76),d()),2&e){const t=T();p(1),v("ngForOf",t.productsData)}}function v6(e,n){if(1&e){const t=ue();ie(0),h(1,"app-edit-profile-form",116),k("formOutputs",function(r){return W(t),Y(T().formEvents(r))}),d(),re()}}function b6(e,n){if(1&e){const t=ue();ie(0),h(1,"app-change-pswd-form",116),k("formOutputs",function(r){return W(t),Y(T().formEvents(r))}),d(),re()}}function y6(e,n){if(1&e){const t=ue();ie(0),h(1,"app-feedback-form",116),k("formOutputs",function(r){return W(t),Y(T().formEvents(r))}),d(),re()}}const w6=function(e){return{"lg:relative":e}};let C6=(()=>{class e{ngAfterViewInit(){this.loginModelElem=this.login_model.nativeElement,this.sideMenuModelElem=this.sidemenu_model.nativeElement,this.profileModelElem=this.profile_model.nativeElement,this.chnagePswdModelElem=this.change_pswd.nativeElement,this.feedbackModelElem=this.feedBack.nativeElement}constructor(t,i,r,o,s,a){this.auth=t,this.homePageService=i,this.setToasterService=r,this.dataShare=o,this.route=s,this.router=a,this.currenFormOpen="",this.isLogedIn=!1,this.isloading=!0,this.userProfileData={},this.currentFormDisplay="login",this.productsData=[],this.productsImg={1:"audit_manual.svg",4:"deeds.svg",5:"ngo.svg",6:"project_info.svg",7:"it_laws.svg",8:"gst_law.svg",9:"company_law.svg",11:"wills.svg"},this.userInitials={first_name:"",last_name:"",first_name_initial:"",last_name_initial:""},this.isNavbarStickey=!0,this.checkIsAuth(),this.getData()}ngOnInit(){this.routerSubscription=this.router.events.pipe(qt(t=>t instanceof di)).subscribe(()=>{const i=(this.route.snapshot.firstChild?.routeConfig?.path||"").split("/")[0];this.isNavbarStickey="content"!==i}),this.dataShare.currentData.subscribe(t=>{t&&"navbar"===t?.for&&this.openModel(t.data)}),this.route.queryParamMap.subscribe(t=>{const i=t.get("model");"login"==i&&!this.isLogedIn&&this.openModel(i)})}getData(){this.homePageService.getProducts().subscribe(t=>{try{"success"==t.status?(this.productsData=t.data.map(r=>({...r,img:`${this.productsImg[r.product_id]||"docIcon.jpg"}`})),this.isloading=!1,this.dataShare.changeData({for:"footer",data:this.productsData})):console.log(t.message)}catch(i){console.error(i)}})}formEvents(t){console.log(t),"close"==t?(this.checkIsAuth(),this.closeModels()):this.currentFormDisplay=t}logout(){this.auth.logout(),this.checkIsAuth(),this.currenFormOpen=""}checkUserAcccessProduct(t){this.auth.isAuthenticated()?window.location.href=`/product/${t}`:(this.setToasterService.showToast({message:"Please login to access this page",title:"Login Required",type:"warning"}),this.closeModels(),this.openModel("login"))}checkIsAuth(){this.isLogedIn=!!this.auth.isAuthenticated(),this.isLogedIn&&(this.userProfileData=this.auth.returnUserProfileData(),this.userInitials.first_name=this.userProfileData?.user_firstname||"User",this.userInitials.last_name=this.userProfileData?.user_lastname||"",this.userInitials.first_name_initial=this.userProfileData?.user_firstname?this.userProfileData?.user_firstname.charAt(0).toUpperCase():"U",this.userInitials.last_name_initial=this.userProfileData?.user_lastname?this.userProfileData?.user_lastname.charAt(0).toUpperCase():"")}closeModels(){this.loginModelElem.close(),this.sideMenuModelElem.close(),this.profileModelElem.close(),this.chnagePswdModelElem.close(),this.feedbackModelElem.close(),this.currenFormOpen=""}openModel(t){switch(this.closeModels(),this.currenFormOpen=t,t){case"login":$(this.loginModelElem).attr("open","");break;case"sidemenu":$(this.sideMenuModelElem).attr("open","");break;case"profile":$(this.profileModelElem).attr("open","");break;case"change_pswd":$(this.chnagePswdModelElem).attr("open","");break;case"feedback":$(this.feedbackModelElem).attr("open","")}}ngOnDestroy(){this.routerSubscription&&this.routerSubscription.unsubscribe()}static{this.\u0275fac=function(i){return new(i||e)(D(zn),D(Fi),D(ct),D(jr),D(bt),D(qe))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-navbar"]],viewQuery:function(i,r){if(1&i&&(Vn(Q$,5),Vn(J$,5),Vn(e6,5),Vn(t6,5),Vn(n6,5)),2&i){let o;xn(o=En())&&(r.login_model=o.first),xn(o=En())&&(r.sidemenu_model=o.first),xn(o=En())&&(r.profile_model=o.first),xn(o=En())&&(r.change_pswd=o.first),xn(o=En())&&(r.feedBack=o.first)}},decls:114,vars:15,consts:[[1,"px-5","py-1","lg:px-14","bg-black","flex","justify-between","items-center"],[1,"text-white","flex","items-center","gap-2","text-xl"],["href",""],[1,"text-sm","ri-facebook-circle-fill"],[1,"text-sm","ri-twitter-fill"],[1,"text-sm","ri-linkedin-box-fill"],[1,"hidden","md:block","text-sm"],[1,"flex","items-center","gap-2"],["href","mailto:info@kanaksoftware.in",1,"flex","items-center","gap-2","text-white"],[1,"text-sm","ri-mail-line"],["href","tel:7270992000",1,"flex","items-center","gap-2","text-white"],[1,"text-sm","ri-phone-fill"],[1,"bg-white","hover:bg-zinc-100","font-semibold","text-sm","text-primary","p-2","py-1","rounded-md","px-5","capitalize",3,"click"],[1,"bg-white","px-5","py-2","lg:px-14","flex","items-center","justify-between","border-b","border-zinc-200","sticky","top-0","z-[999]",3,"ngClass"],[1,"flex","items-center","gap-5"],[1,"w-32","lg:w-[12rem]","h-auto"],["href","/"],["src","../../../assets/assets/logo.svg","alt","",1,"w-full","h-full","object-contain"],[1,"w-0.5","h-12","bg-zinc-200","hidden","lg:flex"],[1,"flex","gap-2"],[1,"dropdown"],["type","button",1,"btn","hidden","lg:flex","text-sxl","font-medium","text-gray-900","focus:outline-none","bg-white","rounded-lg","border","border-gray-200","hover:bg-gray-100","hover:text-primary","capitalize","items-center","gap-2"],[1,"ri-instance-fill","text-2xl"],["tabindex","0",1,"dropdown-content","menu","bg-base-100","rounded-box","z-[1]","lg:w-[50rem]","xl:w-[60rem]","p-5","border","mt-5","shadow-2xl","lg:-left-[10rem]","xl:left-0"],[1,"grid","grid-cols-1","md:grid-cols-2","lg:grid-cols-3","gap-5"],[4,"ngIf","ngIfElse"],["products",""],["routerLink","/search",1,"btn","bg-white","border-0","shadow-none","hidden","lg:flex","justify-center","items-center"],[1,"ri-search-2-line","text-xl"],[1,"flex","items-center","gap-3"],["routerLink","publich-your-artical",1,"hidden","lg:flex","h-12","rounded-lg","items-center","gap-2"],["src","../../../assets/assets/publishArticleBtn.png","alt","btn",1,"h-full","w-auto","object-contain","hover:scale-105","transition","duration-150"],["loggedIn_btn",""],["routerLink","/search",1,"btn","bg-white","border-0","shadow-none","lg:hidden"],[1,"lg:hidden","h-10","w-10","font-medium","text-primary","text-lg","bg-sky-100","rounded-md",3,"click"],[1,"ri-menu-line"],["id","login_Dailog",1,"modal","bg-black/50"],["login_model",""],[1,"modal-box","w-11/12","md:h-screen","max-w-4xl","p-0","h-auto"],[1,"grid","grid-cols-1","md:grid-cols-2","w-full","h-full","relative","overflow-y-scroll"],[1,"h-full","hidden","md:block"],[1,"h-full"],["src","../../../assets/assets/loginBanner.webp","alt","",1,"w-full","h-full","object-cover"],[1,"h-full","overflow-y-auto"],[1,""],[4,"ngIf"],[1,"modal-action","absolute","top-0","right-5"],["method","dialog"],[1,"btn","btn-circle","close_model_btn",3,"click"],[1,"ri-close-large-line"],["id","side_menu",1,"modal","bg-black/50","justify-end","items-start"],["sidemenu_model",""],[1,"modal-box","outline-none","sideMenu","py-5","p-3","sm:p-5","md:p-8","min-h-full","rounded-none","w-[20rem]","sm:w-[25rem]","md:w-[25rem]","bg-white","z-[1000]","overflow-y-auto"],[1,"flex","items-center","justify-between"],["src","../../../assets/assets/logo.svg","alt","",1,"w-auto","h-12","object-contain"],[1,"btn"],[1,"ri-close-large-line","close_model_btn"],[1,"my-5"],[1,"flex","flex-col","gap-5"],["loggedIn_btn_m",""],["routerLink","publich-your-artical",1,"h-auto","w-full","rounded-lg","items-center","gap-2"],["src","../../../assets/assets/publishArticleBtn.png","alt","btn",1,"h-full","w-auto","object-contain"],["products_m",""],["id","profile_Dailog",1,"modal","bg-black/50"],["profile_model",""],[1,"modal-box","w-full","md:w-[30rem]","max-w-4xl","p-0","h-auto","lg:h-full","relative"],[1,"btn","btn-circle","close_model_btn","bg-white/30","text-white","hover:bg-white","hover:text-black"],["id","chnage_pswd_Dailog",1,"modal","bg-black/50"],["change_pswd",""],["id","feedbackForm",1,"p-2","modal","bg-black/50"],["feedback",""],[1,"btn","btn-circle","close_model_btn","bg-white","text-black"],["class","border-2 border-zinc-200 p-5 flex flex-col gap-3 rounded-xl",4,"ngFor","ngForOf"],[1,"border-2","border-zinc-200","p-5","flex","flex-col","gap-3","rounded-xl"],[1,"w-9","h-9","rounded-md","skeleton"],[1,"w-full","h-4","rounded-md","skeleton"],[4,"ngFor","ngForOf"],[1,"w-full","rounded-xl","border","p-5","flex","flex-col","items-start","gap-3","group","hover:outline","hover:outline-2","hover:outline-primary","hover:bg-primary/5",3,"click"],["alt","",1,"w-9","h-9","object-contain",3,"src"],[1,"text-xl","font-semibold","capitalize","group-hover:text-primary"],[1,"hidden","lg:block","btn","glass","h-12","px-10","font-medium","text-white","text-lg","bg-primary","rounded-full","hover:bg-sky-700",3,"click"],[1,"dropdown","dropdown-end","hidden","lg:block"],["tabindex","0","role","button",1,"m-1","flex","items-center","gap-2"],[1,"avatar","placeholder"],[1,"bg-purple-500","text-neutral-content","w-9","rounded-full"],[1,"text-base","uppercase"],[1,"flex","flex-col","items-start"],[1,"text-xs","text-zinc-500"],[1,"text-base","font-semibold","capitalize"],["tabindex","0",1,"dropdown-content","menu","bg-base-100","rounded-box","z-[1]","w-[16rem]","p-2","mt-3","border","shadow-xl"],[1,"flex","bg-white","border-0","items-center","justify-start","gap-2","font-medium","hover:bg-zinc-100","text-lg","btn",3,"click"],[1,"ri-user-6-fill"],[1,"ri-lock-password-line"],[1,"ri-logout-circle-line"],["class","",3,"loginOutputs",4,"ngIf"],[1,"",3,"loginOutputs"],[1,"btn","bg-primary","w-full","text-white","hover:bg-primary/95",3,"click"],[1,"collapse","bg-base-200"],["type","checkbox"],[1,"collapse-title","text-xl","font-medium"],[1,"m-1","flex","items-center","gap-2","w-full"],[1,"bg-purple-500","text-neutral-content","w-12","rounded-full"],[1,"text-xl","uppercase"],[1,"text-sm","text-zinc-500"],[1,"text-lg","font-semibold","capitalize"],[1,"collapse-content"],[1,"flex","flex-col","items-start","gap-3","w-full"],[1,"w-full"],[1,"flex","w-full","bg-transparent","border-0","items-center","justify-start","gap-2","font-medium","hover:bg-white","shadow-none","text-lg","btn",3,"click"],[1,"w-full","rounded-xl","border","p-5","flex","items-center","gap-3"],[1,"w-8","h-9","rounded-md","skeleton"],[1,"w-4/5","h-4","rounded-md","skeleton"],[1,"flex","flex-col","gap-3"],[1,"w-full","rounded-xl","border","p-5","flex","items-center","gap-3","group","hover:outline","hover:outline-2","hover:outline-primary","hover:bg-primary/5",3,"click"],["alt","",1,"w-8","h-9","object-contain",3,"src"],[1,"text-xl","font-semibold","capitalize","group-hover:text-primary","text-nowrap","line-clamp-1","flex","justify-start"],[3,"formOutputs"]],template:function(i,r){if(1&i&&(h(0,"header",0)(1,"div")(2,"ul",1)(3,"li")(4,"a",2),C(5,"i",3),d()(),h(6,"li")(7,"a",2),C(8,"i",4),d()(),h(9,"li")(10,"a",2),C(11,"i",5),d()()()(),h(12,"div",6)(13,"ul",7)(14,"li")(15,"a",8),C(16,"i",9),h(17,"span"),_(18,"info@kanaksoftware.in"),d()()(),h(19,"li")(20,"a",10),C(21,"i",11),_(22,"+91 72709 92000 "),C(23,"span"),d()(),h(24,"li")(25,"button",12),k("click",function(){return r.openModel("feedback")}),_(26,"feedback"),d()()()()(),h(27,"nav",13)(28,"div",14)(29,"div",15)(30,"a",16),C(31,"img",17),d()(),C(32,"span",18),h(33,"div",19)(34,"div",20)(35,"button",21),C(36,"i",22),h(37,"span"),_(38," all products"),d()(),h(39,"div",23)(40,"div",24),w(41,o6,2,2,"ng-container",25),w(42,a6,1,1,"ng-template",null,26,ke),d()()(),h(44,"div")(45,"a",27),C(46,"i",28),d()()()(),h(47,"div",29)(48,"a",30),C(49,"img",31),d(),w(50,l6,3,0,"ng-container",25),w(51,c6,24,4,"ng-template",null,32,ke),h(53,"a",33),C(54,"i",28),d(),h(55,"button",34),k("click",function(){return r.openModel("sidemenu")}),C(56,"i",35),d()()(),h(57,"dialog",36,37)(59,"div",38)(60,"div",39)(61,"div",40)(62,"div",41),C(63,"img",42),d()(),h(64,"div",43)(65,"div",44),w(66,h6,3,2,"ng-container",45),d()()(),h(67,"div",46)(68,"form",47)(69,"button",48),k("click",function(){return r.currentFormDisplay="login"}),C(70,"i",49),d()()()()(),h(71,"dialog",50,51)(73,"div",52)(74,"div",44)(75,"div",53),C(76,"img",54),h(77,"form",47)(78,"button",55),C(79,"i",56),d()()(),C(80,"hr",57),h(81,"div",58),w(82,f6,3,0,"ng-container",25),w(83,p6,29,4,"ng-template",null,59,ke),h(85,"a",60),C(86,"img",61),d(),w(87,m6,5,0,"ng-container",25),w(88,_6,2,1,"ng-template",null,62,ke),d()()()(),h(90,"dialog",63,64)(92,"div",65),w(93,v6,2,0,"ng-container",45),h(94,"div",46)(95,"form",47)(96,"button",66),C(97,"i",49),d()()()()(),h(98,"dialog",67,68)(100,"div",65),w(101,b6,2,0,"ng-container",45),h(102,"div",46)(103,"form",47)(104,"button",66),C(105,"i",49),d()()()()(),h(106,"dialog",69,70)(108,"div",65),w(109,y6,2,0,"ng-container",45),h(110,"div",46)(111,"form",47)(112,"button",71),C(113,"i",49),d()()()()()),2&i){const o=Ee(43),s=Ee(52),a=Ee(84),l=Ee(89);p(27),v("ngClass",ae(13,w6,!r.isNavbarStickey)),p(14),v("ngIf",r.isloading)("ngIfElse",o),p(9),v("ngIf",!r.isLogedIn)("ngIfElse",s),p(16),v("ngIf","login"==r.currenFormOpen),p(16),v("ngIf",!r.isLogedIn)("ngIfElse",a),p(5),v("ngIf",r.isloading)("ngIfElse",l),p(6),v("ngIf","profile"==r.currenFormOpen),p(8),v("ngIf","change_pswd"==r.currenFormOpen),p(8),v("ngIf","feedback"==r.currenFormOpen)}},dependencies:[Ut,Ht,He,Tt,ai,si,fu,Q8,u$,C$,I$,X$]})}}return e})();function D6(e,n){if(1&e&&(h(0,"li")(1,"a",30),_(2),d()()),2&e){const t=n.$implicit;p(1),Je("routerLink","/product/",t.seo_url,""),p(1),ne(t.product_name)}}function x6(e,n){1&e&&(h(0,"div"),_(1,"Email is required."),d())}function E6(e,n){1&e&&(h(0,"div"),_(1,"Invalid email address."),d())}function M6(e,n){if(1&e&&(h(0,"div",31),w(1,x6,2,0,"div",16),w(2,E6,2,0,"div",16),d()),2&e){const t=T();let i,r;p(1),v("ngIf",null==(i=t.emailForm.get("news_latter_email"))||null==i.errors?null:i.errors.required),p(1),v("ngIf",null==(r=t.emailForm.get("news_latter_email"))||null==r.errors?null:r.errors.email)}}function S6(e,n){1&e&&C(0,"span",32)}function I6(e,n){1&e&&(h(0,"span"),_(1,"subscribe now"),d())}let T6=(()=>{class e{constructor(t,i,r,o){this.datashare=t,this.publicApi=i,this.toater=r,this.fb=o,this.productsData=[],this.newLetterEmail="",this.isReqSend=!1,this.emailForm=this.fb.group({news_latter_email:["",[Z.required,Z.email]]})}ngOnInit(){this.datashare.currentData.subscribe(t=>{t&&"footer"===t?.for&&(this.productsData=t?.data)})}subscribe(){this.emailForm.valid&&(this.isReqSend=!0,this.publicApi.subscribeNewsletter(this.emailForm.value).subscribe(t=>{try{this.isReqSend=!1,"success"===t.status?(this.toater.showToast({message:t.message,title:"Success",type:"success"}),this.emailForm.reset()):this.toater.showToast({message:t.message||"An error occurred while processing your request",title:"Failed",type:"error"})}catch{this.isReqSend=!1,this.toater.showToast({message:"An error occurred while processing your request",title:"Error",type:"error"})}}))}static{this.\u0275fac=function(i){return new(i||e)(D(jr),D(Fi),D(ct),D(tr))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-footer"]],decls:64,vars:6,consts:[[1,"px-5","lg:px-14","py-8","lg:pt-14","bg-primary","relative","overflow-hidden"],[1,"flex","flex-col","lg:flex-row","justify-between","items-start","gap-10","lg:gap-20","xl:gap-40","pb-10","relative","z-10"],[1,"w-full","lg:w-[20rem]"],["src","../../../assets/assets/logo_white.svg","alt","",1,"w-[12rem]","h-auto","object-contain"],[1,"text-white","mt-5"],[1,"flex","flex-col","md:flex-row","gap-10","items-start","lg:gap-20","xl:gap-40"],[1,"uppercase","text-sm","font-semibold","text-white"],[1,"flex","flex-col","gap-5","mt-10","text-white","text-base","font-medium","capitalize"],["href","",1,"hover:underline"],[4,"ngFor","ngForOf"],[1,"mt-10"],[3,"formGroup","ngSubmit"],["formControlName","news_latter_email","type","email","placeholder","Enter your Email",1,"bg-transparent","border","text-white","outline-white/50","focus:outline-white","focus:outline-2","rounded-md","py-3","px-5","w-full"],["class","text-red-500 mt-2 text-xs",4,"ngIf"],[1,"w-full","py-4","mt-3","capitalize","font-semibold","bg-zinc-900","text-white","border-0","rounded-lg","flex","items-center","justify-center",3,"disabled"],["class","loading loading-spinner",4,"ngIf"],[4,"ngIf"],[1,"mt-10","flex","flex-col","gap-5"],["href","mailto:info@kanaksoftware.in",1,"flex","items-center","gap-2","text-white"],[1,"text-xl","ri-mail-line"],["href","tel:7270992000",1,"flex","items-center","gap-2","text-white"],[1,"text-xl","ri-phone-fill"],[1,"text-white","flex","items-center","gap-2","text-xl"],["href",""],[1,"ri-facebook-circle-fill"],[1,"ri-twitter-fill"],[1,"ri-linkedin-box-fill"],[1,"border-t","border-white/50","py-5","flex","justify-center","relative","z-10"],[1,"text-white/50"],["src","../../../assets/assets/footer_bg.png","alt","",1,"absolute","top-0","right-0","z-0"],[1,"hover:underline",3,"routerLink"],[1,"text-red-500","mt-2","text-xs"],[1,"loading","loading-spinner"]],template:function(i,r){if(1&i&&(h(0,"footer",0)(1,"div",1)(2,"div",2),C(3,"img",3),h(4,"p",4),_(5,"Lorem ipsum dolor sit amet consectetur adipisicing elit. Sed laborum recusandae, earum numquam labore ipsam mollitia quis culpa"),d()(),h(6,"div",5)(7,"div")(8,"p",6),_(9,"company"),d(),h(10,"ul",7)(11,"li")(12,"a",8),_(13,"about us"),d()(),h(14,"li")(15,"a",8),_(16,"contact us"),d()(),h(17,"li")(18,"a",8),_(19,"terms & condition"),d()(),h(20,"li")(21,"a",8),_(22,"privacy policy"),d()()()(),h(23,"div")(24,"p",6),_(25,"products"),d(),h(26,"ul",7),w(27,D6,3,2,"li",9),d()(),h(28,"div")(29,"p",6),_(30,"news letter"),d(),h(31,"div",10)(32,"form",11),k("ngSubmit",function(){return r.subscribe()}),C(33,"input",12),w(34,M6,3,2,"div",13),h(35,"button",14),w(36,S6,1,0,"span",15),w(37,I6,2,0,"span",16),d()()(),h(38,"ul",17)(39,"li")(40,"a",18),C(41,"i",19),_(42,"info@kanaksoftware.in"),C(43,"span"),d()(),h(44,"li")(45,"a",20),C(46,"i",21),_(47,"+91 72709 92000 "),C(48,"span"),d()(),h(49,"li")(50,"ul",22)(51,"li")(52,"a",23),C(53,"i",24),d()(),h(54,"li")(55,"a",23),C(56,"i",25),d()(),h(57,"li")(58,"a",23),C(59,"i",26),d()()()()()()()(),h(60,"div",27)(61,"p",28),_(62,"Copyright \xa9 Kanak Software. All Rights Reserved."),d()(),C(63,"img",29),d()),2&i){let o;p(27),v("ngForOf",r.productsData),p(5),v("formGroup",r.emailForm),p(2),v("ngIf",(null==(o=r.emailForm.get("news_latter_email"))?null:o.invalid)&&((null==(o=r.emailForm.get("news_latter_email"))?null:o.dirty)||(null==(o=r.emailForm.get("news_latter_email"))?null:o.touched))),p(1),v("disabled",r.isReqSend||r.emailForm.invalid),p(1),v("ngIf",r.isReqSend),p(1),v("ngIf",!r.isReqSend)}},dependencies:[Ht,He,Tt,ai,vt,zt,si,Hn,li]})}}return e})();function A6(e,n){1&e&&C(0,"i",15)}function k6(e,n){1&e&&C(0,"i",16)}function R6(e,n){1&e&&C(0,"i",17)}function P6(e,n){1&e&&C(0,"i",18)}function F6(e,n){1&e&&C(0,"i",19)}function O6(e,n){if(1&e){const t=ue();h(0,"div",1)(1,"div",2)(2,"div",3)(3,"div")(4,"span",4),w(5,A6,1,0,"i",5),w(6,k6,1,0,"i",6),w(7,R6,1,0,"i",7),w(8,P6,1,0,"i",8),w(9,F6,1,0,"i",9),d()(),h(10,"div",10)(11,"h1",11),_(12),d(),h(13,"p",12),_(14),d()(),h(15,"div")(16,"button",13),k("click",function(){const o=W(t).$implicit;return Y(T().removeToast(o))}),C(17,"i",14),d()()()()()}if(2&e){const t=n.$implicit;v("ngClass",null==t?null:t.type),p(5),v("ngIf","success"==t.type),p(1),v("ngIf","default"==t.type),p(1),v("ngIf","info"==t.type),p(1),v("ngIf","warning"==t.type),p(1),v("ngIf","error"==t.type),p(3),ne(null==t?null:t.title),p(2),ne(null==t?null:t.message)}}let N6=(()=>{class e{constructor(t){this.toasterService=t,this.status="success",this.toasts=[],this.progressBarValues=[],this.DEFAULT_DURATION=2500}ngOnInit(){this.toasterService.toasts$.subscribe(t=>{this.toasts=t})}removeToast(t){this.toasterService.removeToast(t);const i=this.toasts.indexOf(t);i>-1&&this.progressBarValues.splice(i,1)}static{this.\u0275fac=function(i){return new(i||e)(D(ct))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-toaster"]],decls:1,vars:1,consts:[["role","alert","class","toaster fixed w-[95%] md:w-[30rem] top-5 left-1/2 -translate-x-1/2 z-[99999] bg-white border shadow-2xl rounded-2xl overflow-hidden",3,"ngClass",4,"ngFor","ngForOf"],["role","alert",1,"toaster","fixed","w-[95%]","md:w-[30rem]","top-5","left-1/2","-translate-x-1/2","z-[99999]","bg-white","border","shadow-2xl","rounded-2xl","overflow-hidden",3,"ngClass"],[1,"relative"],[1,"flex","items-start","gap-5","p-3"],[1,"span-icon","w-10","h-10","rounded-lg","text-xl","flex","items-center","justify-center"],["class","ri-checkbox-circle-fill",4,"ngIf"],["class","ri-info-i",4,"ngIf"],["class","ri-information-fill",4,"ngIf"],["class","ri-alert-fill",4,"ngIf"],["class","ri-close-circle-fill",4,"ngIf"],[1,"w-full"],[1,"text-lg","font-bold","title"],[1,"text-sm","text-zinc-500","message","line-clamp-2","mt-1"],[1,"w-10","h-10","text-xl","rounded-md","border-0","p-0","hover:bg-zinc-200",3,"click"],[1,"ri-close-line"],[1,"ri-checkbox-circle-fill"],[1,"ri-info-i"],[1,"ri-information-fill"],[1,"ri-alert-fill"],[1,"ri-close-circle-fill"]],template:function(i,r){1&i&&w(0,O6,18,8,"div",0),2&i&&v("ngForOf",r.toasts)},dependencies:[Ut,Ht,He],styles:[".toaster.success[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]{background-color:#dcfce7}.toaster.success[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .toaster.success[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#16a34a}.toaster.success[_ngcontent-%COMP%]     .progress::-webkit-progress-value{background-color:#16a34a}.toaster.error[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]{background-color:#fee2e2}.toaster.error[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .toaster.error[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#dc2626}.toaster.error[_ngcontent-%COMP%]     .progress::-webkit-progress-value{background-color:#dc2626}.toaster.warning[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]{background-color:#fffbeb}.toaster.warning[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .toaster.warning[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#ca8a04}.toaster.warning[_ngcontent-%COMP%]     .progress::-webkit-progress-value{background-color:#ca8a04}.toaster.info[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]{background-color:#f0f9ff}.toaster.info[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .toaster.info[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#0284c7}.toaster.info[_ngcontent-%COMP%]     .progress::-webkit-progress-value{background-color:#0284c7}.toaster.default[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]{background-color:#f4f4f5}.toaster.default[_ngcontent-%COMP%]   .span-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .toaster.default[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{color:#18181b}.toaster.default[_ngcontent-%COMP%]     .progress::-webkit-progress-value{background-color:#18181b}.toaster[_ngcontent-%COMP%]{background-color:#fff!important;border:1px solid #e5e7eb!important;z-index:999999!important}.progress[_ngcontent-%COMP%]{background-color:#fff}"]})}}return e})();function L6(e,n){1&e&&C(0,"app-navbar")}function V6(e,n){1&e&&C(0,"app-menus")}function j6(e,n){1&e&&C(0,"app-footer")}let B6=(()=>{class e{constructor(t,i){this.router=t,this.activatedRoute=i,this.title="kanakSoftware_Angular",this.currentRoute="",this.hideFooter=!1,this.hiddenRoutes=["resources","content","publich-your-artical","reset-password"]}ngOnInit(){this.router.events.subscribe(t=>{if(t instanceof di){const r=t.urlAfterRedirects.split("/")[1];this.currentRoute=r,this.hideFooter=this.hiddenRoutes.includes(r)}})}ngAfterViewInit(){window.scroll(0,0)}static{this.\u0275fac=function(i){return new(i||e)(D(qe),D(bt))}}static{this.\u0275cmp=Ce({type:e,selectors:[["app-root"]],decls:5,vars:3,consts:[[4,"ngIf"]],template:function(i,r){1&i&&(C(0,"app-toaster"),w(1,L6,1,0,"app-navbar",0),w(2,V6,1,0,"app-menus",0),C(3,"router-outlet"),w(4,j6,1,0,"app-footer",0)),2&i&&(p(1),v("ngIf","reset-password"!=r.currentRoute),p(1),v("ngIf","reset-password"!=r.currentRoute),p(2),v("ngIf",!r.hideFooter))},dependencies:[He,Dm,C6,T6,N6,DE]})}}return e})();class ME{}class U6{}const Oi="*";function IE(e,n=null){return{type:2,steps:e,options:n}}function Ur(e){return{type:6,styles:e,offset:null}}class Wa{constructor(n=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class AE{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let t=0,i=0,r=0;const o=this.players.length;0==o?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++t==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const t=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const t="start"==n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}function kE(e){return new S(3e3,!1)}function or(e){switch(e.length){case 0:return new Wa;case 1:return e[0];default:return new AE(e)}}function RE(e,n,t=new Map,i=new Map){const r=[],o=[];let s=-1,a=null;if(n.forEach(l=>{const c=l.get("offset"),u=c==s,f=u&&a||new Map;l.forEach((m,g)=>{let b=g,y=m;if("offset"!==g)switch(b=e.normalizePropertyName(b,r),y){case"!":y=t.get(g);break;case Oi:y=i.get(g);break;default:y=e.normalizeStyleValue(g,b,y,r)}f.set(b,y)}),u||o.push(f),a=f,s=c}),r.length)throw function uz(e){return new S(3502,!1)}();return o}function Ym(e,n,t,i){switch(n){case"start":e.onStart(()=>i(t&&Zm(t,"start",e)));break;case"done":e.onDone(()=>i(t&&Zm(t,"done",e)));break;case"destroy":e.onDestroy(()=>i(t&&Zm(t,"destroy",e)))}}function Zm(e,n,t){const o=Km(e.element,e.triggerName,e.fromState,e.toState,n||e.phaseName,t.totalTime??e.totalTime,!!t.disabled),s=e._data;return null!=s&&(o._data=s),o}function Km(e,n,t,i,r="",o=0,s){return{element:e,triggerName:n,fromState:t,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function dn(e,n,t){let i=e.get(n);return i||e.set(n,i=t),i}function PE(e){const n=e.indexOf(":");return[e.substring(1,n),e.slice(n+1)]}const Cz=(()=>typeof document>"u"?null:document.documentElement)();function Xm(e){const n=e.parentNode||e.host||null;return n===Cz?null:n}let Hr=null,FE=!1;function OE(e,n){for(;n;){if(n===e)return!0;n=Xm(n)}return!1}function NE(e,n,t){if(t)return Array.from(e.querySelectorAll(n));const i=e.querySelector(n);return i?[i]:[]}let LE=(()=>{class e{validateStyleProperty(t){return function xz(e){Hr||(Hr=function Ez(){return typeof document<"u"?document.body:null}()||{},FE=!!Hr.style&&"WebkitAppearance"in Hr.style);let n=!0;return Hr.style&&!function Dz(e){return"ebkit"==e.substring(1,6)}(e)&&(n=e in Hr.style,!n&&FE&&(n="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in Hr.style)),n}(t)}matchesElement(t,i){return!1}containsElement(t,i){return OE(t,i)}getParentElement(t){return Xm(t)}query(t,i,r){return NE(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,o,s,a=[],l){return new Wa(r,o)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})(),Qm=(()=>{class e{static{this.NOOP=new LE}}return e})();const Mz=1e3,Jm="ng-enter",Bu="ng-leave",Uu="ng-trigger",Hu=".ng-trigger",jE="ng-animating",eg=".ng-animating";function Ni(e){if("number"==typeof e)return e;const n=e.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:tg(parseFloat(n[1]),n[2])}function tg(e,n){return"s"===n?e*Mz:e}function $u(e,n,t){return e.hasOwnProperty("duration")?e:function Iz(e,n,t){let r,o=0,s="";if("string"==typeof e){const a=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(kE()),{duration:0,delay:0,easing:""};r=tg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=tg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=e;if(!t){let a=!1,l=n.length;r<0&&(n.push(function H6(){return new S(3100,!1)}()),a=!0),o<0&&(n.push(function $6(){return new S(3101,!1)}()),a=!0),a&&n.splice(l,0,kE())}return{duration:r,delay:o,easing:s}}(e,n,t)}function Ya(e,n={}){return Object.keys(e).forEach(t=>{n[t]=e[t]}),n}function BE(e){const n=new Map;return Object.keys(e).forEach(t=>{n.set(t,e[t])}),n}function sr(e,n=new Map,t){if(t)for(let[i,r]of t)n.set(i,r);for(let[i,r]of e)n.set(i,r);return n}function hi(e,n,t){n.forEach((i,r)=>{const o=ig(r);t&&!t.has(r)&&t.set(r,e.style[o]),e.style[o]=i})}function $r(e,n){n.forEach((t,i)=>{const r=ig(i);e.style[r]=""})}function Za(e){return Array.isArray(e)?1==e.length?e[0]:IE(e):e}const ng=new RegExp("{{\\s*(.+?)\\s*}}","g");function HE(e){let n=[];if("string"==typeof e){let t;for(;t=ng.exec(e);)n.push(t[1]);ng.lastIndex=0}return n}function Ka(e,n,t){const i=e.toString(),r=i.replace(ng,(o,s)=>{let a=n[s];return null==a&&(t.push(function q6(e){return new S(3003,!1)}()),a=""),a.toString()});return r==i?e:r}function zu(e){const n=[];let t=e.next();for(;!t.done;)n.push(t.value),t=e.next();return n}const kz=/-+([a-z0-9])/g;function ig(e){return e.replace(kz,(...n)=>n[1].toUpperCase())}function hn(e,n,t){switch(n.type){case 7:return e.visitTrigger(n,t);case 0:return e.visitState(n,t);case 1:return e.visitTransition(n,t);case 2:return e.visitSequence(n,t);case 3:return e.visitGroup(n,t);case 4:return e.visitAnimate(n,t);case 5:return e.visitKeyframes(n,t);case 6:return e.visitStyle(n,t);case 8:return e.visitReference(n,t);case 9:return e.visitAnimateChild(n,t);case 10:return e.visitAnimateRef(n,t);case 11:return e.visitQuery(n,t);case 12:return e.visitStagger(n,t);default:throw function G6(e){return new S(3004,!1)}()}}function $E(e,n){return window.getComputedStyle(e)[n]}const qu="*";function Fz(e,n){const t=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(i=>function Oz(e,n,t){if(":"==e[0]){const l=function Nz(e,n){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return n.push(function sz(e){return new S(3016,!1)}()),"* => *"}}(e,t);if("function"==typeof l)return void n.push(l);e=l}const i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function oz(e){return new S(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(zE(r,s));"<"==o[0]&&!(r==qu&&s==qu)&&n.push(zE(s,r))}(i,t,n)):t.push(e),t}const Gu=new Set(["true","1"]),Wu=new Set(["false","0"]);function zE(e,n){const t=Gu.has(e)||Wu.has(e),i=Gu.has(n)||Wu.has(n);return(r,o)=>{let s=e==qu||e==r,a=n==qu||n==o;return!s&&t&&"boolean"==typeof r&&(s=r?Gu.has(e):Wu.has(e)),!a&&i&&"boolean"==typeof o&&(a=o?Gu.has(n):Wu.has(n)),s&&a}}const Lz=new RegExp("s*:selfs*,?","g");function rg(e,n,t,i){return new Vz(e).build(n,t,i)}class Vz{constructor(n){this._driver=n}build(n,t,i){const r=new Uz(t);return this._resetContextStyleTimingState(r),hn(this,Za(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,t){let i=t.queryCount=0,r=t.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&t.errors.push(function Y6(){return new S(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,s.push(l)}else t.errors.push(function Z6(){return new S(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,t){const i=this.visitStyle(n.styles,t),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{HE(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(zu(o.values()),t.errors.push(function K6(e,n){return new S(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,t){t.queryCount=0,t.depCount=0;const i=hn(this,Za(n.animation),t);return{type:1,matchers:Fz(n.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:zr(n.options)}}visitSequence(n,t){return{type:2,steps:n.steps.map(i=>hn(this,i,t)),options:zr(n.options)}}visitGroup(n,t){const i=t.currentTime;let r=0;const o=n.steps.map(s=>{t.currentTime=i;const a=hn(this,s,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:o,options:zr(n.options)}}visitAnimate(n,t){const i=function $z(e,n){if(e.hasOwnProperty("duration"))return e;if("number"==typeof e)return og($u(e,n).duration,0,"");const t=e;if(t.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=og(0,0,"");return o.dynamic=!0,o.strValue=t,o}const r=$u(t,n);return og(r.duration,r.delay,r.easing)}(n.timings,t.errors);t.currentAnimateTimings=i;let r,o=n.styles?n.styles:Ur({});if(5==o.type)r=this.visitKeyframes(o,t);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Ur(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,t){const i=this._makeStyleAst(n,t);return this._validateStyleAst(i,t),i}_makeStyleAst(n,t){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Oi?i.push(a):t.errors.push(new S(3002,!1)):i.push(BE(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,t){const i=t.currentAnimateTimings;let r=t.currentTime,o=t.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l);let f=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(t.errors.push(function Q6(e,n,t,i,r){return new S(3010,!1)}()),f=!1),o=u.startTime),f&&c.set(l,{startTime:o,endTime:r}),t.options&&function Az(e,n,t){const i=n.params||{},r=HE(e);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||t.push(function z6(e){return new S(3001,!1)}())})}(a,t.options,t.errors)})})}visitKeyframes(n,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function J6(){return new S(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=n.steps.map(I=>{const E=this._makeStyleAst(I,t);let F=null!=E.offset?E.offset:function Hz(e){if("string"==typeof e)return null;let n=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){const i=t;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(e instanceof Map&&e.has("offset")){const t=e;n=parseFloat(t.get("offset")),t.delete("offset")}return n}(E.styles),L=0;return null!=F&&(o++,L=E.offset=F),l=l||L<0||L>1,a=a||L<c,c=L,s.push(L),E});l&&t.errors.push(function ez(){return new S(3012,!1)}()),a&&t.errors.push(function tz(){return new S(3200,!1)}());const f=n.steps.length;let m=0;o>0&&o<f?t.errors.push(function nz(){return new S(3202,!1)}()):0==o&&(m=1/(f-1));const g=f-1,b=t.currentTime,y=t.currentAnimateTimings,x=y.duration;return u.forEach((I,E)=>{const F=m>0?E==g?1:m*E:s[E],L=F*x;t.currentTime=b+y.delay+L,y.duration=L,this._validateStyleAst(I,t),I.offset=F,i.styles.push(I)}),i}visitReference(n,t){return{type:8,animation:hn(this,Za(n.animation),t),options:zr(n.options)}}visitAnimateChild(n,t){return t.depCount++,{type:9,options:zr(n.options)}}visitAnimateRef(n,t){return{type:10,animation:this.visitReference(n.animation,t),options:zr(n.options)}}visitQuery(n,t){const i=t.currentQuerySelector,r=n.options||{};t.queryCount++,t.currentQuery=n;const[o,s]=function jz(e){const n=!!e.split(/\s*,\s*/).find(t=>":self"==t);return n&&(e=e.replace(Lz,"")),e=e.replace(/@\*/g,Hu).replace(/@\w+/g,t=>Hu+"-"+t.slice(1)).replace(/:animating/g,eg),[e,n]}(n.selector);t.currentQuerySelector=i.length?i+" "+o:o,dn(t.collectedStyles,t.currentQuerySelector,new Map);const a=hn(this,Za(n.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:zr(n.options)}}visitStagger(n,t){t.currentQuery||t.errors.push(function iz(){return new S(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:$u(n.timings,t.errors,!0);return{type:12,animation:hn(this,Za(n.animation),t),timings:i,options:null}}}class Uz{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zr(e){return e?(e=Ya(e)).params&&(e.params=function Bz(e){return e?Ya(e):null}(e.params)):e={},e}function og(e,n,t){return{duration:e,delay:n,easing:t}}function sg(e,n,t,i,r,o,s=null,a=!1){return{type:1,element:e,keyframes:n,preStyleProps:t,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Yu{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,t){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...t)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const Gz=new RegExp(":enter","g"),Yz=new RegExp(":leave","g");function ag(e,n,t,i,r,o=new Map,s=new Map,a,l,c=[]){return(new Zz).buildKeyframes(e,n,t,i,r,o,s,a,l,c)}class Zz{buildKeyframes(n,t,i,r,o,s,a,l,c,u=[]){c=c||new Yu;const f=new lg(n,t,c,r,o,u,[]);f.options=l;const m=l.delay?Ni(l.delay):0;f.currentTimeline.delayNextStep(m),f.currentTimeline.setStyles([s],null,f.errors,l),hn(this,i,f);const g=f.timelines.filter(b=>b.containsAnimation());if(g.length&&a.size){let b;for(let y=g.length-1;y>=0;y--){const x=g[y];if(x.element===t){b=x;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([a],null,f.errors,l)}return g.length?g.map(b=>b.buildKeyframes()):[sg(t,[],[],[],0,m,"",!1)]}visitTrigger(n,t){}visitState(n,t){}visitTransition(n,t){}visitAnimateChild(n,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(n.options),o=t.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&t.transformIntoNewTimeline(s)}t.previousNode=n}visitAnimateRef(n,t){const i=t.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],t,i),this.visitReference(n.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=n}_applyAnimationRefDelays(n,t,i){for(const r of n){const o=r?.delay;if(o){const s="number"==typeof o?o:Ni(Ka(o,r?.params??{},t.errors));i.delayNextStep(s)}}}_visitSubInstructions(n,t,i){let o=t.currentTimeline.currentTime;const s=null!=i.duration?Ni(i.duration):null,a=null!=i.delay?Ni(i.delay):null;return 0!==s&&n.forEach(l=>{const c=t.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,t){t.updateOptions(n.options,!0),hn(this,n.animation,t),t.previousNode=n}visitSequence(n,t){const i=t.subContextCount;let r=t;const o=n.options;if(o&&(o.params||o.delay)&&(r=t.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Zu);const s=Ni(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>hn(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=n}visitGroup(n,t){const i=[];let r=t.currentTimeline.currentTime;const o=n.options&&n.options.delay?Ni(n.options.delay):0;n.steps.forEach(s=>{const a=t.createSubContext(n.options);o&&a.delayNextStep(o),hn(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>t.currentTimeline.mergeTimelineCollectedStyles(s)),t.transformIntoNewTimeline(r),t.previousNode=n}_visitTiming(n,t){if(n.dynamic){const i=n.strValue;return $u(t.params?Ka(i,t.params,t.errors):i,t.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,t){const i=t.currentAnimateTimings=this._visitTiming(n.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(i.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=n}visitStyle(n,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,t.errors,t.options),t.previousNode=n}visitKeyframes(n,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,o=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+o),t.previousNode=n}visitQuery(n,t){const i=t.currentTimeline.currentTime,r=n.options||{},o=r.delay?Ni(r.delay):0;o&&(6===t.previousNode.type||0==i&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Zu);let s=i;const a=t.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const f=t.createSubContext(n.options,c);o&&f.delayNextStep(o),c===t.element&&(l=f.currentTimeline),hn(this,n.animation,f),f.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,f.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=n}visitStagger(n,t){const i=t.parentContext,r=t.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(t.currentQueryTotal-1);let l=s*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const f=u.currentTime;hn(this,n.animation,t),t.previousNode=n,i.currentStaggerTime=r.currentTime-f+(r.startTime-i.currentTimeline.startTime)}}const Zu={};class lg{constructor(n,t,i,r,o,s,a,l){this._driver=n,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Zu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Ku(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,t){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Ni(i.duration)),null!=i.delay&&(r.delay=Ni(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!t||!s.hasOwnProperty(a))&&(s[a]=Ka(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const t=this.options.params;if(t){const i=n.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return n}createSubContext(n=null,t,i){const r=t||this.element,o=new lg(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=Zu,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,t,i){const r={duration:t??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new Kz(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,t,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(Gz,"."+this._enterClassName)).replace(Yz,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function rz(e){return new S(3014,!1)}()),a}}class Ku{constructor(n,t,i,r){this._driver=n,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+n),t&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,t){return this.applyStylesToKeyframe(),new Ku(this._driver,n,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,t){this._localTimelineStyles.set(n,t),this._globalTimelineStyles.set(n,t),this._styleSummary.set(n,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[t,i]of this._globalTimelineStyles)this._backFill.set(t,i||Oi),this._currentKeyframe.set(t,Oi);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,t,i,r){t&&this._previousKeyframe.set("easing",t);const o=r&&r.params||{},s=function Xz(e,n){const t=new Map;let i;return e.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)t.set(o,Oi)}else sr(r,t)}),t}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=Ka(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Oi),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,t)=>{this._currentKeyframe.set(t,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,n)}))}snapshotCurrentStyles(){for(let[n,t]of this._localTimelineStyles)this._pendingStyles.set(n,t),this._updateStyle(n,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let t in this._currentKeyframe)n.push(t);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((t,i)=>{const r=this._styleSummary.get(i);(!r||t.time>r.time)&&this._updateStyle(i,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=sr(a,new Map,this._backFill);c.forEach((u,f)=>{"!"===u?n.add(f):u===Oi&&t.add(f)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?zu(n.values()):[],s=t.size?zu(t.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return sg(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class Kz extends Ku{constructor(n,t,i,r,o,s,a=!1){super(n,t,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const o=[],s=i+t,a=t/s,l=sr(n[0]);l.set("offset",0),o.push(l);const c=sr(n[0]);c.set("offset",WE(a)),o.push(c);const u=n.length-1;for(let f=1;f<=u;f++){let m=sr(n[f]);const g=m.get("offset");m.set("offset",WE((t+g*i)/s)),o.push(m)}i=s,t=0,r="",n=o}return sg(this.element,n,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function WE(e,n=3){const t=Math.pow(10,n-1);return Math.round(e*t)/t}class cg{}const Qz=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Jz extends cg{normalizePropertyName(n,t){return ig(n)}normalizeStyleValue(n,t,i,r){let o="";const s=i.toString().trim();if(Qz.has(t)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function W6(e,n){return new S(3005,!1)}())}return s+o}}function YE(e,n,t,i,r,o,s,a,l,c,u,f,m){return{type:0,element:e,triggerName:n,isRemovalTransition:r,fromState:t,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:f,errors:m}}const ug={};class ZE{constructor(n,t,i){this._triggerName=n,this.ast=t,this._stateStyles=i}match(n,t,i,r){return function e9(e,n,t,i,r){return e.some(o=>o(n,t,i,r))}(this.ast.matchers,n,t,i,r)}buildStyles(n,t,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(t,i):new Map}build(n,t,i,r,o,s,a,l,c,u){const f=[],m=this.ast.options&&this.ast.options.params||ug,b=this.buildStyles(i,a&&a.params||ug,f),y=l&&l.params||ug,x=this.buildStyles(r,y,f),I=new Set,E=new Map,F=new Map,L="void"===r,K={params:t9(y,m),delay:this.ast.options?.delay},Se=u?[]:ag(n,t,this.ast.animation,o,s,b,x,K,c,f);let Ve=0;if(Se.forEach(fn=>{Ve=Math.max(fn.duration+fn.delay,Ve)}),f.length)return YE(t,this._triggerName,i,r,L,b,x,[],[],E,F,Ve,f);Se.forEach(fn=>{const Gn=fn.element,od=dn(E,Gn,new Set);fn.preStyleProps.forEach(Zr=>od.add(Zr));const rl=dn(F,Gn,new Set);fn.postStyleProps.forEach(Zr=>rl.add(Zr)),Gn!==t&&I.add(Gn)});const yt=zu(I.values());return YE(t,this._triggerName,i,r,L,b,x,Se,yt,E,F,Ve)}}function t9(e,n){const t=Ya(n);for(const i in e)e.hasOwnProperty(i)&&null!=e[i]&&(t[i]=e[i]);return t}class n9{constructor(n,t,i){this.styles=n,this.defaultParams=t,this.normalizer=i}buildStyles(n,t){const i=new Map,r=Ya(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=Ka(s,r,t));const l=this.normalizer.normalizePropertyName(a,t);s=this.normalizer.normalizeStyleValue(a,l,s,t),i.set(a,s)})}),i}}class r9{constructor(n,t,i){this.name=n,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{this.states.set(r.name,new n9(r.style,r.options&&r.options.params||{},i))}),KE(this.states,"true","1"),KE(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new ZE(n,r,this.states))}),this.fallbackTransition=function o9(e,n,t){return new ZE(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,t,i,r){return this.transitionFactories.find(s=>s.match(n,t,i,r))||null}matchStyles(n,t,i){return this.fallbackTransition.buildStyles(n,t,i)}}function KE(e,n,t){e.has(n)?e.has(t)||e.set(t,e.get(n)):e.has(t)&&e.set(n,e.get(t))}const s9=new Yu;class a9{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,t){const i=[],o=rg(this._driver,t,i,[]);if(i.length)throw function dz(e){return new S(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,t,i){const r=n.element,o=RE(this._normalizer,n.keyframes,t,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,t,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=ag(this._driver,t,o,Jm,Bu,new Map,new Map,i,s9,r),s.forEach(u=>{const f=dn(a,u.element,new Map);u.postStyleProps.forEach(m=>f.set(m,null))})):(r.push(function hz(){return new S(3300,!1)}()),s=[]),r.length)throw function fz(e){return new S(3504,!1)}();a.forEach((u,f)=>{u.forEach((m,g)=>{u.set(g,this._driver.computeStyle(f,g,Oi))})});const c=or(s.map(u=>{const f=a.get(u.element);return this._buildPlayer(u,new Map,f)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const t=this._getPlayer(n);t.destroy(),this._playersById.delete(n);const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(n){const t=this._playersById.get(n);if(!t)throw function pz(e){return new S(3301,!1)}();return t}listen(n,t,i,r){const o=Km(t,"","","");return Ym(this._getPlayer(n),i,o,r),()=>{}}command(n,t,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,t,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const XE="ng-animate-queued",dg="ng-animate-disabled",h9=[],QE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},f9={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qn="__ng_removed";class hg{get params(){return this.options.params}constructor(n,t=""){this.namespaceId=t;const i=n&&n.hasOwnProperty("value");if(this.value=function _9(e){return e??null}(i?n.value:n),i){const o=Ya(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const t=n.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Xa="void",fg=new hg(Xa);class p9{constructor(n,t,i){this.id=n,this.hostElement=t,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,In(t,this._hostClassName)}listen(n,t,i,r){if(!this._triggers.has(t))throw function mz(e,n){return new S(3302,!1)}();if(null==i||0==i.length)throw function gz(e){return new S(3303,!1)}();if(!function v9(e){return"start"==e||"done"==e}(i))throw function _z(e,n){return new S(3400,!1)}();const o=dn(this._elementListeners,n,[]),s={name:t,phase:i,callback:r};o.push(s);const a=dn(this._engine.statesByElement,n,new Map);return a.has(t)||(In(n,Uu),In(n,Uu+"-"+t),a.set(t,fg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(n,t){return!this._triggers.has(n)&&(this._triggers.set(n,t),!0)}_getTrigger(n){const t=this._triggers.get(n);if(!t)throw function vz(e){return new S(3401,!1)}();return t}trigger(n,t,i,r=!0){const o=this._getTrigger(t),s=new pg(this.id,t,n);let a=this._engine.statesByElement.get(n);a||(In(n,Uu),In(n,Uu+"-"+t),this._engine.statesByElement.set(n,a=new Map));let l=a.get(t);const c=new hg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=fg),c.value!==Xa&&l.value===c.value){if(!function w9(e,n){const t=Object.keys(e),i=Object.keys(n);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const o=t[r];if(!n.hasOwnProperty(o)||e[o]!==n[o])return!1}return!0}(l.params,c.params)){const y=[],x=o.matchStyles(l.value,l.params,y),I=o.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{$r(n,x),hi(n,I)})}return}const m=dn(this._engine.playersByElement,n,[]);m.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let g=o.matchTransition(l.value,c.value,n,c.params),b=!1;if(!g){if(!r)return;g=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:t,transition:g,fromState:l,toState:c,player:s,isFallbackTransition:b}),b||(In(n,XE),s.onStart(()=>{as(n,XE)})),s.onDone(()=>{let y=this.players.indexOf(s);y>=0&&this.players.splice(y,1);const x=this._engine.playersByElement.get(n);if(x){let I=x.indexOf(s);I>=0&&x.splice(I,1)}}),this.players.push(s),m.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(t=>t.delete(n)),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const t=this._engine.playersByElement.get(n);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,t){const i=this._engine.driver.query(n,Hu,!0);i.forEach(r=>{if(r[qn])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,t,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(n,c,Xa,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,t,s),i&&or(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const t=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(t&&i){const r=new Set;t.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||fg,u=new hg(Xa),f=new pg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:u,player:f,isFallbackTransition:!0})})}}removeNode(n,t){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,t),this.triggerLeaveAnimation(n,t,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,t);else{const o=n[qn];(!o||o===QE)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,t))}}insertNode(n,t){In(n,this._hostClassName)}drainQueuedTransitions(n){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Km(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Ym(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}}class m9{_onRemovalComplete(n,t){this.onRemovalComplete(n,t)}constructor(n,t,i){this.bodyNode=n,this.driver=t,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,t){const i=new p9(n,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,t){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(t,n),n}register(n,t){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,t)),i}registerTrigger(n,t,i){let r=this._namespaceLookup[n];r&&r.register(t,i)&&this.totalAnimations++}destroy(n,t){n&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const i=this._fetchNamespace(n);this.namespacesByHostElement.delete(i.hostElement);const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1),i.destroy(t),delete this._namespaceLookup[n]}))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const t=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&t.add(o)}return t}trigger(n,t,i,r){if(Xu(t)){const o=this._fetchNamespace(n);if(o)return o.trigger(t,i,r),!0}return!1}insertNode(n,t,i,r){if(!Xu(t))return;const o=t[qn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(t);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,t){t?this.disabledNodes.has(n)||(this.disabledNodes.add(n),In(n,dg)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),as(n,dg))}removeNode(n,t,i){if(Xu(t)){const r=n?this._fetchNamespace(n):null;r?r.removeNode(t,i):this.markElementAsRemoved(n,t,!1,i);const o=this.namespacesByHostElement.get(t);o&&o.id!==n&&o.removeNode(t,i)}else this._onRemovalComplete(t,i)}markElementAsRemoved(n,t,i,r,o){this.collectedLeaveElements.push(t),t[qn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,t,i,r,o){return Xu(t)?this._fetchNamespace(n).listen(t,i,r,o):()=>{}}_buildInstruction(n,t,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,t,o)}destroyInnerAnimations(n){let t=this.driver.query(n,Hu,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(n,eg,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const t=this.playersByElement.get(n);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const t=this.playersByQueriedElement.get(n);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return or(this.players).onDone(()=>n());n()})}processLeaveNode(n){const t=n[qn];if(t&&t.setForRemoval){if(n[qn]=QE,t.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(t.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,t.setForRemoval)}n.classList?.contains(dg)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)In(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,n)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?or(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function bz(e){return new S(3402,!1)}()}_flushAnimations(n,t){const i=new Yu,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(V=>{u.add(V);const j=this.driver.query(V,".ng-animate-queued",!0);for(let U=0;U<j.length;U++)u.add(j[U])});const f=this.bodyNode,m=Array.from(this.statesByElement.keys()),g=tM(m,this.collectedEnterElements),b=new Map;let y=0;g.forEach((V,j)=>{const U=Jm+y++;b.set(j,U),V.forEach(me=>In(me,U))});const x=[],I=new Set,E=new Set;for(let V=0;V<this.collectedLeaveElements.length;V++){const j=this.collectedLeaveElements[V],U=j[qn];U&&U.setForRemoval&&(x.push(j),I.add(j),U.hasAnimation?this.driver.query(j,".ng-star-inserted",!0).forEach(me=>I.add(me)):E.add(j))}const F=new Map,L=tM(m,Array.from(I));L.forEach((V,j)=>{const U=Bu+y++;F.set(j,U),V.forEach(me=>In(me,U))}),n.push(()=>{g.forEach((V,j)=>{const U=b.get(j);V.forEach(me=>as(me,U))}),L.forEach((V,j)=>{const U=F.get(j);V.forEach(me=>as(me,U))}),x.forEach(V=>{this.processLeaveNode(V)})});const K=[],Se=[];for(let V=this._namespaceList.length-1;V>=0;V--)this._namespaceList[V].drainQueuedTransitions(t).forEach(U=>{const me=U.player,dt=U.element;if(K.push(me),this.collectedEnterElements.length){const At=dt[qn];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(U.triggerName)){const Kr=At.previousTriggersValues.get(U.triggerName),Tn=this.statesByElement.get(U.element);if(Tn&&Tn.has(U.triggerName)){const sd=Tn.get(U.triggerName);sd.value=Kr,Tn.set(U.triggerName,sd)}}return void me.destroy()}}const fi=!f||!this.driver.containsElement(f,dt),pn=F.get(dt),ar=b.get(dt),Ge=this._buildInstruction(U,i,ar,pn,fi);if(Ge.errors&&Ge.errors.length)return void Se.push(Ge);if(fi)return me.onStart(()=>$r(dt,Ge.fromStyles)),me.onDestroy(()=>hi(dt,Ge.toStyles)),void r.push(me);if(U.isFallbackTransition)return me.onStart(()=>$r(dt,Ge.fromStyles)),me.onDestroy(()=>hi(dt,Ge.toStyles)),void r.push(me);const qM=[];Ge.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||qM.push(At)}),Ge.timelines=qM,i.append(dt,Ge.timelines),s.push({instruction:Ge,player:me,element:dt}),Ge.queriedElements.forEach(At=>dn(a,At,[]).push(me)),Ge.preStyleProps.forEach((At,Kr)=>{if(At.size){let Tn=l.get(Kr);Tn||l.set(Kr,Tn=new Set),At.forEach((sd,Pg)=>Tn.add(Pg))}}),Ge.postStyleProps.forEach((At,Kr)=>{let Tn=c.get(Kr);Tn||c.set(Kr,Tn=new Set),At.forEach((sd,Pg)=>Tn.add(Pg))})});if(Se.length){const V=[];Se.forEach(j=>{V.push(function yz(e,n){return new S(3505,!1)}())}),K.forEach(j=>j.destroy()),this.reportError(V)}const Ve=new Map,yt=new Map;s.forEach(V=>{const j=V.element;i.has(j)&&(yt.set(j,j),this._beforeAnimationBuild(V.player.namespaceId,V.instruction,Ve))}),r.forEach(V=>{const j=V.element;this._getPreviousPlayers(j,!1,V.namespaceId,V.triggerName,null).forEach(me=>{dn(Ve,j,[]).push(me),me.destroy()})});const fn=x.filter(V=>iM(V,l,c)),Gn=new Map;eM(Gn,this.driver,E,c,Oi).forEach(V=>{iM(V,l,c)&&fn.push(V)});const rl=new Map;g.forEach((V,j)=>{eM(rl,this.driver,new Set(V),l,"!")}),fn.forEach(V=>{const j=Gn.get(V),U=rl.get(V);Gn.set(V,new Map([...j?.entries()??[],...U?.entries()??[]]))});const Zr=[],$M=[],zM={};s.forEach(V=>{const{element:j,player:U,instruction:me}=V;if(i.has(j)){if(u.has(j))return U.onDestroy(()=>hi(j,me.toStyles)),U.disabled=!0,U.overrideTotalTime(me.totalTime),void r.push(U);let dt=zM;if(yt.size>1){let pn=j;const ar=[];for(;pn=pn.parentNode;){const Ge=yt.get(pn);if(Ge){dt=Ge;break}ar.push(pn)}ar.forEach(Ge=>yt.set(Ge,dt))}const fi=this._buildAnimation(U.namespaceId,me,Ve,o,rl,Gn);if(U.setRealPlayer(fi),dt===zM)Zr.push(U);else{const pn=this.playersByElement.get(dt);pn&&pn.length&&(U.parentPlayer=or(pn)),r.push(U)}}else $r(j,me.fromStyles),U.onDestroy(()=>hi(j,me.toStyles)),$M.push(U),u.has(j)&&r.push(U)}),$M.forEach(V=>{const j=o.get(V.element);if(j&&j.length){const U=or(j);V.setRealPlayer(U)}}),r.forEach(V=>{V.parentPlayer?V.syncPlayerEvents(V.parentPlayer):V.destroy()});for(let V=0;V<x.length;V++){const j=x[V],U=j[qn];if(as(j,Bu),U&&U.hasAnimation)continue;let me=[];if(a.size){let fi=a.get(j);fi&&fi.length&&me.push(...fi);let pn=this.driver.query(j,eg,!0);for(let ar=0;ar<pn.length;ar++){let Ge=a.get(pn[ar]);Ge&&Ge.length&&me.push(...Ge)}}const dt=me.filter(fi=>!fi.destroyed);dt.length?b9(this,j,dt):this.processLeaveNode(j)}return x.length=0,Zr.forEach(V=>{this.players.push(V),V.onDone(()=>{V.destroy();const j=this.players.indexOf(V);this.players.splice(j,1)}),V.play()}),Zr}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,t,i,r,o){let s=[];if(t){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==Xa;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,t,i){const o=t.element,s=t.isRemovalTransition?void 0:n,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==o,f=dn(i,c,[]);this._getPreviousPlayers(c,u,s,a,t.toState).forEach(g=>{const b=g.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),g.destroy(),f.push(g)})}$r(o,t.fromStyles)}_buildAnimation(n,t,i,r,o,s){const a=t.triggerName,l=t.element,c=[],u=new Set,f=new Set,m=t.timelines.map(b=>{const y=b.element;u.add(y);const x=y[qn];if(x&&x.removedBeforeQueried)return new Wa(b.duration,b.delay);const I=y!==l,E=function y9(e){const n=[];return nM(e,n),n}((i.get(y)||h9).map(Ve=>Ve.getRealPlayer())).filter(Ve=>!!Ve.element&&Ve.element===y),F=o.get(y),L=s.get(y),K=RE(this._normalizer,b.keyframes,F,L),Se=this._buildPlayer(b,K,E);if(b.subTimeline&&r&&f.add(y),I){const Ve=new pg(n,a,y);Ve.setRealPlayer(Se),c.push(Ve)}return Se});c.forEach(b=>{dn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function g9(e,n,t){let i=e.get(n);if(i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&e.delete(n)}return i}(this.playersByQueriedElement,b.element,b))}),u.forEach(b=>In(b,jE));const g=or(m);return g.onDestroy(()=>{u.forEach(b=>as(b,jE)),hi(l,t.toStyles)}),f.forEach(b=>{dn(r,b,[]).push(g)}),g}_buildPlayer(n,t,i){return t.length>0?this.driver.animate(n.element,t,n.duration,n.delay,n.easing,i):new Wa(n.duration,n.delay)}}class pg{constructor(n,t,i){this.namespaceId=n,this.triggerName=t,this.element=i,this._player=new Wa,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((t,i)=>{t.forEach(r=>Ym(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const t=this._player;t.triggerCallback&&n.onStart(()=>t.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,t){dn(this._queuedCallbacks,n,[]).push(t)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const t=this._player;t.triggerCallback&&t.triggerCallback(n)}}function Xu(e){return e&&1===e.nodeType}function JE(e,n){const t=e.style.display;return e.style.display=n??"none",t}function eM(e,n,t,i,r){const o=[];t.forEach(l=>o.push(JE(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(f=>{const m=n.computeStyle(c,f,r);u.set(f,m),(!m||0==m.length)&&(c[qn]=f9,s.push(c))}),e.set(c,u)});let a=0;return t.forEach(l=>JE(l,o[a++])),s}function tM(e,n){const t=new Map;if(e.forEach(a=>t.set(a,[])),0==n.length)return t;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&t.get(l).push(a)}),t}function In(e,n){e.classList?.add(n)}function as(e,n){e.classList?.remove(n)}function b9(e,n,t){or(t).onDone(()=>e.processLeaveNode(n))}function nM(e,n){for(let t=0;t<e.length;t++){const i=e[t];i instanceof AE?nM(i.players,n):n.push(i)}}function iM(e,n,t){const i=t.get(e);if(!i)return!1;let r=n.get(e);return r?i.forEach(o=>r.add(o)):n.set(e,i),t.delete(e),!0}class Qu{constructor(n,t,i){this.bodyNode=n,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new m9(n,t,i),this._timelineEngine=new a9(n,t,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,t,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=rg(this._driver,o,l,[]);if(l.length)throw function cz(e,n){return new S(3404,!1)}();a=function i9(e,n,t){return new r9(e,n,t)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(t,r,a)}register(n,t){this._transitionEngine.register(n,t)}destroy(n,t){this._transitionEngine.destroy(n,t)}onInsert(n,t,i,r){this._transitionEngine.insertNode(n,t,i,r)}onRemove(n,t,i){this._transitionEngine.removeNode(n,t,i)}disableAnimations(n,t){this._transitionEngine.markElementAsDisabled(n,t)}process(n,t,i,r){if("@"==i.charAt(0)){const[o,s]=PE(i);this._timelineEngine.command(o,t,s,r)}else this._transitionEngine.trigger(n,t,i,r)}listen(n,t,i,r,o){if("@"==i.charAt(0)){const[s,a]=PE(i);return this._timelineEngine.listen(s,t,a,o)}return this._transitionEngine.listen(n,t,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(n){this._transitionEngine.afterFlushAnimationsDone(n)}}let D9=(()=>{class e{static{this.initialStylesByElement=new WeakMap}constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let o=e.initialStylesByElement.get(t);o||e.initialStylesByElement.set(t,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&hi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hi(this._element,this._initialStyles),this._endStyles&&(hi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&($r(this._element,this._startStyles),this._endStyles=null),this._endStyles&&($r(this._element,this._endStyles),this._endStyles=null),hi(this._element,this._initialStyles),this._state=3)}}return e})();function mg(e){let n=null;return e.forEach((t,i)=>{(function x9(e){return"display"===e||"position"===e})(i)&&(n=n||new Map,n.set(i,t))}),n}class rM{constructor(n,t,i,r){this.element=n,this.keyframes=t,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map;const t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const t=[];return n.forEach(i=>{t.push(Object.fromEntries(i))}),t}_triggerWebAnimation(n,t,i){return n.animate(this._convertKeyframesToObject(t),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:$E(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const t="start"===n?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class E9{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,t){return!1}containsElement(n,t){return OE(n,t)}getParentElement(n){return Xm(n)}query(n,t,i){return NE(n,t,i)}computeStyle(n,t,i){return window.getComputedStyle(n)[t]}animate(n,t,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(g=>g instanceof rM);(function Rz(e,n){return 0===e||0===n})(i,r)&&u.forEach(g=>{g.currentSnapshot.forEach((b,y)=>c.set(y,b))});let f=function Tz(e){return e.length?e[0]instanceof Map?e:e.map(n=>BE(n)):[]}(t).map(g=>sr(g));f=function Pz(e,n,t){if(t.size&&n.length){let i=n[0],r=[];if(t.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;o<n.length;o++){let s=n[o];r.forEach(a=>s.set(a,$E(e,a)))}}return n}(n,f,c);const m=function C9(e,n){let t=null,i=null;return Array.isArray(n)&&n.length?(t=mg(n[0]),n.length>1&&(i=mg(n[n.length-1]))):n instanceof Map&&(t=mg(n)),t||i?new D9(e,t,i):null}(n,f);return new rM(n,f,l,m)}}let M9=(()=>{class e extends ME{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:gn.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?IE(t):t;return oM(this._renderer,null,i,"register",[r]),new S9(i,this._renderer)}static{this.\u0275fac=function(i){return new(i||e)(M($s),M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();class S9 extends U6{constructor(n,t){super(),this._id=n,this._renderer=t}create(n,t){return new I9(this._id,n,t||{},this._renderer)}}class I9{constructor(n,t,i,r){this.id=n,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,t){return this._renderer.listen(this.element,`@@${this.id}:${n}`,t)}_command(n,...t){return oM(this._renderer,this.element,this.id,n,t)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function oM(e,n,t,i,r){return e.setProperty(n,`@@${t}:${i}`,r)}const sM="@.disabled";let T9=(()=>{class e{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(t,i){const o=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new aM("",o,this.engine,()=>this._rendererCache.delete(o)),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,t,u.name,u)};return i.data.animation.forEach(l),new A9(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static{this.\u0275fac=function(i){return new(i||e)(M($s),M(Qu),M(le))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})();class aM{constructor(n,t,i,r){this.namespaceId=n,this.delegate=t,this.engine=i,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(n){this.delegate.destroyNode?.(n)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(n,t){return this.delegate.createElement(n,t)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,t){this.delegate.appendChild(n,t),this.engine.onInsert(this.namespaceId,t,n,!1)}insertBefore(n,t,i,r=!0){this.delegate.insertBefore(n,t,i),this.engine.onInsert(this.namespaceId,t,n,r)}removeChild(n,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(n,t){return this.delegate.selectRootElement(n,t)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,t,i,r){this.delegate.setAttribute(n,t,i,r)}removeAttribute(n,t,i){this.delegate.removeAttribute(n,t,i)}addClass(n,t){this.delegate.addClass(n,t)}removeClass(n,t){this.delegate.removeClass(n,t)}setStyle(n,t,i,r){this.delegate.setStyle(n,t,i,r)}removeStyle(n,t,i){this.delegate.removeStyle(n,t,i)}setProperty(n,t,i){"@"==t.charAt(0)&&t==sM?this.disableAnimations(n,!!i):this.delegate.setProperty(n,t,i)}setValue(n,t){this.delegate.setValue(n,t)}listen(n,t,i){return this.delegate.listen(n,t,i)}disableAnimations(n,t){this.engine.disableAnimations(n,t)}}class A9 extends aM{constructor(n,t,i,r,o){super(t,i,r,o),this.factory=n,this.namespaceId=t}setProperty(n,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==sM?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,t.slice(1),i):this.delegate.setProperty(n,t,i)}listen(n,t,i){if("@"==t.charAt(0)){const r=function k9(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(n);let o=t.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function R9(e){const n=e.indexOf(".");return[e.substring(0,n),e.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,t,i)}}const lM=[{provide:ME,useClass:M9},{provide:cg,useFactory:function F9(){return new Jz}},{provide:Qu,useClass:(()=>{class e extends Qu{constructor(t,i,r,o){super(t.body,i,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(i){return new(i||e)(M(ve),M(Qm),M(cg),M(Zi))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac})}}return e})()},{provide:$s,useFactory:function O9(e,n,t){return new T9(e,n,t)},deps:[Np,Qu,le]}],gg=[{provide:Qm,useFactory:()=>new E9},{provide:Vh,useValue:"BrowserAnimations"},...lM],cM=[{provide:Qm,useClass:LE},{provide:Vh,useValue:"NoopAnimations"},...lM];let _g,N9=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?cM:gg}}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:gg,imports:[OC]})}}return e})(),V9=(()=>{class e{transform(t){return Object.keys(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=Rt({name:"keys",type:e,pure:!0}),e})(),j9=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Ae({type:e}),e.\u0275inj=Ie({providers:[V9],imports:[[Ip,am,zD]]}),e})();try{_g=typeof Intl<"u"&&Intl.v8BreakIterator}catch{_g=!1}let Qa,Gr,qr=(()=>{class e{constructor(t){this._platformId=t,this.isBrowser=this._platformId?gC(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!_g)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(i){return new(i||e)(M(Ci))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Ja(e){return function B9(){if(null==Qa&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Qa=!0}))}finally{Qa=Qa||!1}return Qa}()?e:!!e.capture}function U9(){if(null==Gr){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Gr=!1,Gr;if("scrollBehavior"in document.documentElement.style)Gr=!0;else{const e=Element.prototype.scrollTo;Gr=!!e&&!/\{\s*\[native code\]\s*\}/.test(e.toString())}}return Gr}function bg(e){return e.composedPath?e.composedPath()[0]:e.target}function yg(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}class lq extends nt{constructor(n,t){super()}schedule(n,t=0){return this}}const td={setInterval(e,n,...t){const{delegate:i}=td;return i?.setInterval?i.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=td;return(n?.clearInterval||clearInterval)(e)},delegate:void 0};class wg extends lq{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var i;if(this.closed)return this;this.state=n;const r=this.id,o=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(o,r,t)),this.pending=!0,this.delay=t,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(o,this.id,t),this}requestAsyncId(n,t,i=0){return td.setInterval(n.flush.bind(n,this),i)}recycleAsyncId(n,t,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return t;null!=t&&td.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(n,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let r,i=!1;try{this.work(n)}catch(o){i=!0,r=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:i}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Xr(i,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}}const dM={now:()=>(dM.delegate||Date).now(),delegate:void 0};class el{constructor(n,t=el.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,i){return new this.schedulerActionCtor(this,n).schedule(i,t)}}el.now=dM.now;class Cg extends el{constructor(n,t=el.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let i;this._active=!0;do{if(i=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i}}}const Dg=new Cg(wg),cq=Dg;function nd(e){return Array.isArray(e)?e:[e]}function tt(e){return null==e?"":"string"==typeof e?e:`${e}px`}function xg(e){return e instanceof st?e.nativeElement:e}const fM=new Set;let Wr,hq=(()=>{class e{constructor(t,i){this._platform=t,this._nonce=i,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):pq}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function fq(e,n){if(!fM.has(e))try{Wr||(Wr=document.createElement("style"),n&&(Wr.nonce=n),Wr.setAttribute("type","text/css"),document.head.appendChild(Wr)),Wr.sheet&&(Wr.sheet.insertRule(`@media ${e} {body{ }}`,0),fM.add(e))}catch(t){console.error(t)}}(t,this._nonce),this._matchMedia(t)}static{this.\u0275fac=function(i){return new(i||e)(M(qr),M(jh,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pq(e){return{matches:"all"===e||""===e,media:e,addListener:()=>{},removeListener:()=>{}}}let mq=(()=>{class e{constructor(t,i){this._mediaMatcher=t,this._zone=i,this._queries=new Map,this._destroySubject=new je}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return pM(nd(t)).some(r=>this._registerQuery(r).mql.matches)}observe(t){let o=Zo(pM(nd(t)).map(s=>this._registerQuery(s).observable));return o=mu(o.pipe(ki(1)),o.pipe(function dq(e){return qt((n,t)=>e<=t)}(1),function hM(e,n=Dg){return Ze((t,i)=>{let r=null,o=null,s=null;const a=()=>{if(r){r.unsubscribe(),r=null;const c=o;o=null,i.next(c)}};function l(){const c=s+e,u=n.now();if(u<c)return r=this.schedule(void 0,c-u),void i.add(r);a()}t.subscribe($e(i,c=>{o=c,s=n.now(),r||(r=n.schedule(l,e),i.add(r))},()=>{a(),i.complete()},void 0,()=>{o=r=null}))})}(0))),o.pipe(de(s=>{const a={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{a.matches=a.matches||l,a.breakpoints[c]=l}),a}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const i=this._mediaMatcher.matchMedia(t),o={observable:new Pe(s=>{const a=l=>this._zone.run(()=>s.next(l));return i.addListener(a),()=>{i.removeListener(a)}}).pipe(YD(i),de(({matches:s})=>({query:t,matches:s})),um(this._destroySubject)),mql:i};return this._queries.set(t,o),o}static{this.\u0275fac=function(i){return new(i||e)(M(hq),M(le))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function pM(e){return e.map(n=>n.split(",")).reduce((n,t)=>n.concat(t)).map(n=>n.trim())}const vM="cdk-high-contrast-black-on-white",bM="cdk-high-contrast-white-on-black",Eg="cdk-high-contrast-active";let Iq=(()=>{class e{constructor(t,i){this._platform=t,this._document=i,this._breakpointSubscription=O(mq).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,o=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Eg,vM,bM),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?t.add(Eg,vM):2===i&&t.add(Eg,bM)}}static{this.\u0275fac=function(i){return new(i||e)(M(qr),M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Tq=new R("cdk-dir-doc",{providedIn:"root",factory:function Aq(){return O(ve)}}),kq=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Pq=(()=>{class e{constructor(t){this.value="ltr",this.change=new _e,t&&(this.value=function Rq(e){const n=e?.toLowerCase()||"";return"auto"===n&&typeof navigator<"u"&&navigator?.language?kq.test(navigator.language)?"rtl":"ltr":"rtl"===n?"rtl":"ltr"}((t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(i){return new(i||e)(M(Tq,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),tl=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})();const Oq=new R("mat-sanity-checks",{providedIn:"root",factory:function Fq(){return!0}});let cs=(()=>{class e{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!yg()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}static{this.\u0275fac=function(i){return new(i||e)(M(Iq),M(Oq,8),M(ve))}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[tl,tl]})}}return e})();const CM=Ja({passive:!0,capture:!0});class Vq{constructor(){this._events=new Map,this._delegateEventHandler=n=>{const t=bg(n);t&&this._events.get(n.type)?.forEach((i,r)=>{(r===t||r.contains(t))&&i.forEach(o=>o.handleEvent(n))})}}addHandler(n,t,i,r){const o=this._events.get(t);if(o){const s=o.get(i);s?s.add(r):o.set(i,new Set([r]))}else this._events.set(t,new Map([[i,new Set([r])]])),n.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,CM)})}removeHandler(n,t,i){const r=this._events.get(n);if(!r)return;const o=r.get(t);o&&(o.delete(i),0===o.size&&r.delete(t),0===r.size&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,CM)))}}class Mg{static{this._eventManager=new Vq}constructor(n,t,i,r){this._target=n,this._ngZone=t,this._platform=r,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=xg(i))}fadeInRipple(n,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o={...DM,...i.animation},s=i.radius||function Bq(e,n,t){const i=Math.max(Math.abs(e-t.left),Math.abs(e-t.right)),r=Math.max(Math.abs(n-t.top),Math.abs(n-t.bottom));return Math.sqrt(i*i+r*r)}(n,t,r),a=n-r.left,l=t-r.top,c=o.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-s+"px",u.style.top=l-s+"px",u.style.height=2*s+"px",u.style.width=2*s+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);const f=window.getComputedStyle(u),g=f.transitionDuration,b="none"===f.transitionProperty||"0s"===g||"0s, 0s"===g||0===r.width&&0===r.height,y=new Lq(this,u,i,b);u.style.transform="scale3d(1, 1, 1)",y.state=0,i.persistent||(this._mostRecentTransientRipple=y);return!b&&(c||o.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const I=()=>this._finishRippleTransition(y),E=()=>this._destroyRipple(y);u.addEventListener("transitionend",I),u.addEventListener("transitioncancel",E)}),this._activeRipples.set(y,null),(b||!c)&&this._finishRippleTransition(y),y}fadeOutRipple(n){if(2===n.state||3===n.state)return;const t=n.element,i={...DM,...n.config.animation};t.style.transitionDuration=`${i.exitDuration}ms`,t.style.opacity="0",n.state=2,(n._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){const t=xg(n);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,EM.forEach(i=>{Mg._eventManager.addHandler(this._ngZone,i,t,this)}))}handleEvent(n){"mousedown"===n.type?this._onMousedown(n):"touchstart"===n.type?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{MM.forEach(t=>{this._triggerElement.addEventListener(t,this,xM)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){0===n.state?this._startFadeOutTransition(n):2===n.state&&this._destroyRipple(n)}_startFadeOutTransition(n){const t=n===this._mostRecentTransientRipple,{persistent:i}=n.config;n.state=1,!i&&(!t||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){const t=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=3,null!==t&&(n.element.removeEventListener("transitionend",t.onTransitionEnd),n.element.removeEventListener("transitioncancel",t.onTransitionCancel)),n.element.remove()}_onMousedown(n){const t=function Eq(e){return 0===e.buttons||0===e.detail}(n),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(n.clientX,n.clientY,this._target.rippleConfig))}_onTouchStart(n){if(!this._target.rippleDisabled&&!function Mq(e){const n=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!n||-1!==n.identifier||null!=n.radiusX&&1!==n.radiusX||null!=n.radiusY&&1!==n.radiusY)}(n)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=n.changedTouches;if(t)for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(n=>{!n.config.persistent&&(1===n.state||n.config.terminateOnPointerUp&&0===n.state)&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const n=this._triggerElement;n&&(EM.forEach(t=>Mg._eventManager.removeHandler(t,n,this)),this._pointerUpEventsRegistered&&MM.forEach(t=>n.removeEventListener(t,this,xM)))}}let SM=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[cs,cs]})}}return e})();const Uq=["addListener","removeListener"],Hq=["addEventListener","removeEventListener"],$q=["on","off"];function Sg(e,n,t,i){if(ce(t)&&(i=t,t=void 0),i)return Sg(e,n,t).pipe(Hp(i));const[r,o]=function Gq(e){return ce(e.addEventListener)&&ce(e.removeEventListener)}(e)?Hq.map(s=>a=>e[s](n,a,t)):function zq(e){return ce(e.addListener)&&ce(e.removeListener)}(e)?Uq.map(IM(e,n)):function qq(e){return ce(e.on)&&ce(e.off)}(e)?$q.map(IM(e,n)):[];if(!r&&vd(e))return ut(s=>Sg(s,n,t))(kt(e));if(!r)throw new TypeError("Invalid event target");return new Pe(s=>{const a=(...l)=>s.next(1<l.length?l:l[0]);return r(a),()=>o(a)})}function IM(e,n){return t=>i=>e[t](n,i)}const il={schedule(e){let n=requestAnimationFrame,t=cancelAnimationFrame;const{delegate:i}=il;i&&(n=i.requestAnimationFrame,t=i.cancelAnimationFrame);const r=n(o=>{t=void 0,e(o)});return new nt(()=>t?.(r))},requestAnimationFrame(...e){const{delegate:n}=il;return(n?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){const{delegate:n}=il;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};new class Yq extends Cg{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class Wq extends wg{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=il.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(il.cancelAnimationFrame(t),n._scheduled=void 0)}});let Ig,Kq=1;const id={};function TM(e){return e in id&&(delete id[e],!0)}const Xq={setImmediate(e){const n=Kq++;return id[n]=!0,Ig||(Ig=Promise.resolve()),Ig.then(()=>TM(n)&&e()),n},clearImmediate(e){TM(e)}},{setImmediate:Qq,clearImmediate:Jq}=Xq,rd={setImmediate(...e){const{delegate:n}=rd;return(n?.setImmediate||Qq)(...e)},clearImmediate(e){const{delegate:n}=rd;return(n?.clearImmediate||Jq)(e)},delegate:void 0};new class t7 extends Cg{flush(n){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:i}=this;let r;n=n||i.shift();do{if(r=n.execute(n.state,n.delay))break}while((n=i[0])&&n.id===t&&i.shift());if(this._active=!1,r){for(;(n=i[0])&&n.id===t&&i.shift();)n.unsubscribe();throw r}}}(class e7 extends wg{constructor(n,t){super(n,t),this.scheduler=n,this.work=t}requestAsyncId(n,t,i=0){return null!==i&&i>0?super.requestAsyncId(n,t,i):(n.actions.push(this),n._scheduled||(n._scheduled=rd.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,t,i=0){var r;if(null!=i?i>0:this.delay>0)return super.recycleAsyncId(n,t,i);const{actions:o}=n;null!=t&&(null===(r=o[o.length-1])||void 0===r?void 0:r.id)!==t&&(rd.clearImmediate(t),n._scheduled===t&&(n._scheduled=void 0))}});function AM(e,n=Dg){return function i7(e){return Ze((n,t)=>{let i=!1,r=null,o=null,s=!1;const a=()=>{if(o?.unsubscribe(),o=null,i){i=!1;const c=r;r=null,t.next(c)}s&&t.complete()},l=()=>{o=null,s&&t.complete()};n.subscribe($e(t,c=>{i=!0,r=c,o||kt(e(c)).subscribe(o=$e(t,a,l))},()=>{s=!0,(!i||!o||o.closed)&&t.complete()}))})}(()=>function o7(e=0,n,t=cq){let i=-1;return null!=n&&(t_(n)?t=n:i=n),new Pe(r=>{let o=function r7(e){return e instanceof Date&&!isNaN(e)}(e)?+e-t.now():e;o<0&&(o=0);let s=0;return t.schedule(function(){r.closed||(r.next(s++),0<=i?this.schedule(void 0,i):r.complete())},o)})}(e,n))}let a7=(()=>{class e{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new je,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new Pe(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(AM(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):B()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(qt(o=>!o||r.indexOf(o)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,o)=>{this._scrollableContainsElement(o,t)&&i.push(o)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=xg(i),o=t.getElementRef().nativeElement;do{if(r==o)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Sg(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(i){return new(i||e)(M(le),M(qr),M(ve,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),kM=(()=>{class e{constructor(t,i,r){this._platform=t,this._change=new je,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,o=r.getBoundingClientRect();return{top:-o.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(AM(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(i){return new(i||e)(M(qr),M(le),M(ve,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Tg=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})(),RM=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[tl,Tg,tl,Tg]})}}return e})();class Ag{attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class c7 extends Ag{constructor(n,t,i,r,o){super(),this.component=n,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r,this.projectableNodes=o}}class u7 extends Ag{constructor(n,t,i,r){super(),this.templateRef=n,this.viewContainerRef=t,this.context=i,this.injector=r}get origin(){return this.templateRef.elementRef}attach(n,t=this.context){return this.context=t,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class d7 extends Ag{constructor(n){super(),this.element=n instanceof st?n.nativeElement:n}}class h7{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof c7?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof u7?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof d7?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class f7 extends h7{constructor(n,t,i,r,o){super(),this.outletElement=n,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=s=>{const a=s.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=s,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=o}attachComponentPortal(n){const i=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component);let r;return n.viewContainerRef?(r=n.viewContainerRef.createComponent(i,n.viewContainerRef.length,n.injector||n.viewContainerRef.injector,n.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=i.create(n.injector||this._defaultInjector||xt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=n,r}attachTemplatePortal(n){let t=n.viewContainerRef,i=t.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=n,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}let p7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({})}}return e})();const PM=U9();class m7{constructor(n,t){this._viewportRuler=n,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=tt(-this._previousScrollPosition.left),n.style.top=tt(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const n=this._document.documentElement,i=n.style,r=this._document.body.style,o=i.scrollBehavior||"",s=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),PM&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),PM&&(i.scrollBehavior=o,r.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class g7{constructor(n,t,i,r){this._scrollDispatcher=n,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(n){this._overlayRef=n}enable(){if(this._scrollSubscription)return;const n=this._scrollDispatcher.scrolled(0).pipe(qt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class FM{enable(){}disable(){}attach(){}}function kg(e,n){return n.some(t=>e.bottom<t.top||e.top>t.bottom||e.right<t.left||e.left>t.right)}function OM(e,n){return n.some(t=>e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}class _7{constructor(n,t,i,r){this._scrollDispatcher=n,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(n){this._overlayRef=n}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();kg(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let v7=(()=>{class e{constructor(t,i,r,o){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new FM,this.close=s=>new g7(this._scrollDispatcher,this._ngZone,this._viewportRuler,s),this.block=()=>new m7(this._viewportRuler,this._document),this.reposition=s=>new _7(this._scrollDispatcher,this._viewportRuler,this._ngZone,s),this._document=o}static{this.\u0275fac=function(i){return new(i||e)(M(a7),M(kM),M(le),M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class b7{constructor(n){if(this.scrollStrategy=new FM,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,n){const t=Object.keys(n);for(const i of t)void 0!==n[i]&&(this[i]=n[i])}}}class y7{constructor(n,t){this.connectionPair=n,this.scrollableViewProperties=t}}let NM=(()=>{class e{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(i){return new(i||e)(M(ve))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),w7=(()=>{class e extends NM{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const o=this._attachedOverlays;for(let s=o.length-1;s>-1;s--)if(o[s]._keydownEvents.observers.length>0){const a=o[s]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(i){return new(i||e)(M(ve),M(le,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),C7=(()=>{class e extends NM{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=bg(o)},this._clickListener=o=>{const s=bg(o),a="click"===o.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(s)||u.overlayElement.contains(a))break;const f=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(o)):f.next(o)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(i){return new(i||e)(M(ve),M(qr),M(le,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),LM=(()=>{class e{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||yg()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let o=0;o<r.length;o++)r[o].remove()}const i=this._document.createElement("div");i.classList.add(t),yg()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}static{this.\u0275fac=function(i){return new(i||e)(M(ve),M(qr))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class D7{constructor(n,t,i,r,o,s,a,l,c,u=!1){this._portalOutlet=n,this._host=t,this._pane=i,this._config=r,this._ngZone=o,this._keyboardDispatcher=s,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._backdropElement=null,this._backdropClick=new je,this._attachments=new je,this._detachments=new je,this._locationChanges=nt.EMPTY,this._backdropClickHandler=f=>this._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new je,this._outsidePointerEvents=new je,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(ki(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof t?.onDestroy&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){const n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,n&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config={...this._config,...n},this._updateElementSize()}setDirection(n){this._config={...this._config,direction:n},this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){const n=this._config.direction;return n?"string"==typeof n?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const n=this._pane.style;n.width=tt(this._config.width),n.height=tt(this._config.height),n.minWidth=tt(this._config.minWidth),n.minHeight=tt(this._config.minHeight),n.maxWidth=tt(this._config.maxWidth),n.maxHeight=tt(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){const n="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(n)})}):this._backdropElement.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const n=this._backdropElement;if(n){if(this._animationsDisabled)return void this._disposeBackdrop(n);n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{n.addEventListener("transitionend",this._backdropTransitionendHandler)}),n.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(n)},500))}}_toggleClasses(n,t,i){const r=nd(t||[]).filter(o=>!!o);r.length&&(i?n.classList.add(...r):n.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const n=this._ngZone.onStable.pipe(um(s_(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){const n=this._scrollStrategy;n&&(n.disable(),n.detach&&n.detach())}_disposeBackdrop(n){n&&(n.removeEventListener("click",this._backdropClickHandler),n.removeEventListener("transitionend",this._backdropTransitionendHandler),n.remove(),this._backdropElement===n&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const VM="cdk-overlay-connected-position-bounding-box",x7=/([A-Za-z%]+)$/;class E7{get positions(){return this._preferredPositions}constructor(n,t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new je,this._resizeSubscription=nt.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(n)}attach(n){this._validatePositions(),n.hostElement.classList.add(VM),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const n=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,o=[];let s;for(let a of this._preferredPositions){let l=this._getOriginPoint(n,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?o.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(o.length){let a=null,l=-1;for(const c of o){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Yr(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(VM),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,t)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,-1===n.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,t,i){let r,o;if("center"==i.originX)r=n.left+n.width/2;else{const s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;r="start"==i.originX?s:a}return t.left<0&&(r-=t.left),o="center"==i.originY?n.top+n.height/2:"top"==i.originY?n.top:n.bottom,t.top<0&&(o-=t.top),{x:r,y:o}}_getOverlayPoint(n,t,i){let r,o;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,o="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:n.x+r,y:n.y+o}}_getOverlayFit(n,t,i,r){const o=BM(t);let{x:s,y:a}=n,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(s+=l),c&&(a+=c);let m=0-a,g=a+o.height-i.height,b=this._subtractOverflows(o.width,0-s,s+o.width-i.width),y=this._subtractOverflows(o.height,m,g),x=b*y;return{visibleArea:x,isCompletelyWithinViewport:o.width*o.height===x,fitsInViewportVertically:y===o.height,fitsInViewportHorizontally:b==o.width}}_canFitWithFlexibleDimensions(n,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,o=i.right-t.x,s=jM(this._overlayRef.getConfig().minHeight),a=jM(this._overlayRef.getConfig().minWidth);return(n.fitsInViewportVertically||null!=s&&s<=r)&&(n.fitsInViewportHorizontally||null!=a&&a<=o)}return!1}_pushOverlayOnScreen(n,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};const r=BM(t),o=this._viewportRect,s=Math.max(n.x+r.width-o.width,0),a=Math.max(n.y+r.height-o.height,0),l=Math.max(o.top-i.top-n.y,0),c=Math.max(o.left-i.left-n.x,0);let u=0,f=0;return u=r.width<=o.width?c||-s:n.x<this._viewportMargin?o.left-i.left-n.x:0,f=r.height<=o.height?l||-a:n.y<this._viewportMargin?o.top-i.top-n.y:0,this._previousPushAmount={x:u,y:f},{x:n.x+u,y:n.y+f}}_applyPosition(n,t){if(this._setTransformOrigin(n),this._setOverlayElementStyles(t,n),this._setBoundingBoxStyles(t,n),n.panelClass&&this._addPanelClasses(n.panelClass),this._lastPosition=n,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new y7(n,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(n){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=n.overlayY;i="center"===n.overlayX?"center":this._isRtl()?"start"===n.overlayX?"right":"left":"start"===n.overlayX?"left":"right";for(let o=0;o<t.length;o++)t[o].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(n,t){const i=this._viewportRect,r=this._isRtl();let o,s,a,u,f,m;if("top"===t.overlayY)s=n.y,o=i.height-s+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-n.y+2*this._viewportMargin,o=i.height-a+this._viewportMargin;else{const g=Math.min(i.bottom-n.y+i.top,n.y),b=this._lastBoundingBoxSize.height;o=2*g,s=n.y-g,o>b&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-b/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)m=i.width-n.x+this._viewportMargin,u=n.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)f=n.x,u=i.right-n.x;else{const g=Math.min(i.right-n.x+i.left,n.x),b=this._lastBoundingBoxSize.width;u=2*g,f=n.x-g,u>b&&!this._isInitialRender&&!this._growAfterOpen&&(f=n.x-b/2)}return{top:s,left:f,bottom:a,right:m,width:u,height:o}}_setBoundingBoxStyles(n,t){const i=this._calculateBoundingBoxRect(n,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const o=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;r.height=tt(i.height),r.top=tt(i.top),r.bottom=tt(i.bottom),r.width=tt(i.width),r.left=tt(i.left),r.right=tt(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",o&&(r.maxHeight=tt(o)),s&&(r.maxWidth=tt(s))}this._lastBoundingBoxSize=i,Yr(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Yr(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Yr(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,t){const i={},r=this._hasExactPosition(),o=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Yr(i,this._getExactOverlayY(t,n,u)),Yr(i,this._getExactOverlayX(t,n,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),s.maxHeight&&(r?i.maxHeight=tt(s.maxHeight):o&&(i.maxHeight="")),s.maxWidth&&(r?i.maxWidth=tt(s.maxWidth):o&&(i.maxWidth="")),Yr(this._pane.style,i)}_getExactOverlayY(n,t,i){let r={top:"",bottom:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),"bottom"===n.overlayY?r.bottom=this._document.documentElement.clientHeight-(o.y+this._overlayRect.height)+"px":r.top=tt(o.y),r}_getExactOverlayX(n,t,i){let s,r={left:"",right:""},o=this._getOverlayPoint(t,this._overlayRect,n);return this._isPushed&&(o=this._pushOverlayOnScreen(o,this._overlayRect,i)),s=this._isRtl()?"end"===n.overlayX?"left":"right":"end"===n.overlayX?"right":"left","right"===s?r.right=this._document.documentElement.clientWidth-(o.x+this._overlayRect.width)+"px":r.left=tt(o.x),r}_getScrollVisibility(){const n=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:OM(n,i),isOriginOutsideView:kg(n,i),isOverlayClipped:OM(t,i),isOverlayOutsideView:kg(t,i)}}_subtractOverflows(n,...t){return t.reduce((i,r)=>i-Math.max(r,0),n)}_getNarrowedViewportRect(){const n=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+n-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:n-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,t){return"x"===t?null==n.offsetX?this._offsetX:n.offsetX:null==n.offsetY?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&nd(n).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){const n=this._origin;if(n instanceof st)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();const t=n.width||0,i=n.height||0;return{top:n.y,bottom:n.y+i,left:n.x,right:n.x+t,height:i,width:t}}}function Yr(e,n){for(let t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e}function jM(e){if("number"!=typeof e&&null!=e){const[n,t]=e.split(x7);return t&&"px"!==t?null:parseFloat(n)}return e||null}function BM(e){return{top:Math.floor(e.top),right:Math.floor(e.right),bottom:Math.floor(e.bottom),left:Math.floor(e.left),width:Math.floor(e.width),height:Math.floor(e.height)}}const UM="cdk-global-overlay-wrapper";class M7{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(n){const t=n.getConfig();this._overlayRef=n,this._width&&!t.width&&n.updateSize({width:this._width}),this._height&&!t.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(UM),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:o,maxWidth:s,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||s&&"100%"!==s&&"100vw"!==s),c=!("100%"!==o&&"100vh"!==o||a&&"100%"!==a&&"100vh"!==a),u=this._xPosition,f=this._xOffset,m="rtl"===this._overlayRef.getConfig().direction;let g="",b="",y="";l?y="flex-start":"center"===u?(y="center",m?b=f:g=f):m?"left"===u||"end"===u?(y="flex-end",g=f):("right"===u||"start"===u)&&(y="flex-start",b=f):"left"===u||"start"===u?(y="flex-start",g=f):("right"===u||"end"===u)&&(y="flex-end",b=f),n.position=this._cssPosition,n.marginLeft=l?"0":g,n.marginTop=c?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=l?"0":b,t.justifyContent=y,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const n=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(UM),i.justifyContent=i.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}}let S7=(()=>{class e{constructor(t,i,r,o){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=o}global(){return new M7}flexibleConnectedTo(t){return new E7(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(i){return new(i||e)(M(kM),M(ve),M(qr),M(LM))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),I7=0,Rg=(()=>{class e{constructor(t,i,r,o,s,a,l,c,u,f,m,g){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=o,this._keyboardDispatcher=s,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=f,this._outsideClickDispatcher=m,this._animationsModuleType=g}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),o=this._createPortalOutlet(r),s=new b7(t);return s.direction=s.direction||this._directionality.value,new D7(o,i,r,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+I7++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Zi)),new f7(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(i){return new(i||e)(M(v7),M(LM),M(Hs),M(S7),M(w7),M(xt),M(le),M(ve),M(Pq),M($c),M(C7),M(Vh,8))}}static{this.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const k7={provide:new R("cdk-connected-overlay-scroll-strategy"),deps:[Rg],useFactory:function A7(e){return()=>e.scrollStrategies.reposition()}};let R7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:[Rg,k7],imports:[tl,p7,RM,RM]})}}return e})();const N7={provide:new R("mat-menu-scroll-strategy"),deps:[Rg],useFactory:function O7(e){return()=>e.scrollStrategies.reposition()}};let L7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({providers:[N7],imports:[Ip,SM,cs,R7,Tg,cs]})}}return e})(),B7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e})}static{this.\u0275inj=Ie({imports:[cs,SM,cs]})}}return e})(),U7=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=Ae({type:e,bootstrap:[B6]})}static{this.\u0275inj=Ie({providers:[{provide:bE,useValue:{siteKey:Ha_recaptcha_siteKey}},ct],imports:[OC,P8,am,zD,N9,s5,a5,j9,RH,PH,L7,B7]})}}return e})();nV().bootstrapModule(U7).catch(e=>console.error(e))}},ce=>{ce(ce.s=257)}]);