diff --git a/assets/imgs/headingLink.png b/assets/imgs/headingLink.png new file mode 100644 index 0000000..b2d10a3 Binary files /dev/null and b/assets/imgs/headingLink.png differ diff --git a/index.html b/index.html index 1068340..d14038d 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,6 @@ - + \ No newline at end of file diff --git a/main.7763e6a8ae0e5f2f.js b/main.7763e6a8ae0e5f2f.js deleted file mode 100644 index f3d02f2..0000000 --- a/main.7763e6a8ae0e5f2f.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkInterSystemsWOOP=self.webpackChunkInterSystemsWOOP||[]).push([[179],{204:(Oe,Tt,F)=>{"use strict";function G(t){return"function"==typeof t}function Ye(t){const e=t(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Pt=Ye(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ht(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class U{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:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(G(r))try{r()}catch(i){n=i instanceof Pt?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{io(i)}catch(s){n=n??[],s instanceof Pt?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Pt(n)}}add(n){var e;if(n&&n!==this)if(this.closed)io(n);else{if(n instanceof U){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ht(e,n)}remove(n){const{_finalizers:e}=this;e&&ht(e,n),n instanceof U&&n._removeParent(this)}}U.EMPTY=(()=>{const t=new U;return t.closed=!0,t})();const kt=U.EMPTY;function Ar(t){return t instanceof U||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function io(t){G(t)?t():t.unsubscribe()}const un={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},In={setTimeout(t,n,...e){const{delegate:r}=In;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=In;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ko(t){In.setTimeout(()=>{const{onUnhandledError:n}=un;if(!n)throw t;n(t)})}function Nr(){}const ft=P("C",void 0,void 0);function P(t,n,e){return{kind:t,value:n,error:e}}let S=null;function R(t){if(un.useDeprecatedSynchronousErrorHandling){const n=!S;if(n&&(S={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:r}=S;if(S=null,e)throw r}}else t()}class L extends U{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ar(n)&&n.add(this)):this.destination=ma}static create(n,e,r){return new Ve(n,e,r)}next(n){this.isStopped?Ao(function gt(t){return P("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ao(function $e(t){return P("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ao(ft,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 J=Function.prototype.bind;function Ce(t,n){return J.call(t,n)}class Q{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){lt(r)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){lt(r)}else lt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){lt(e)}}}class Ve extends L{constructor(n,e,r){let o;if(super(),G(n)||!n)o={next:n??void 0,error:e??void 0,complete:r??void 0};else{let i;this&&un.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ce(n.next,i),error:n.error&&Ce(n.error,i),complete:n.complete&&Ce(n.complete,i)}):o=n}this.destination=new Q(o)}}function lt(t){un.useDeprecatedSynchronousErrorHandling?function B(t){un.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=t)}(t):ko(t)}function Ao(t,n){const{onStoppedNotification:e}=un;e&&In.setTimeout(()=>e(t,n))}const ma={closed:!0,next:Nr,error:function zn(t){throw t},complete:Nr},Hi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gn(t){return t}function wt(t){return 0===t.length?Gn:1===t.length?t[0]:function(e){return t.reduce((r,o)=>o(r),e)}}let xe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,o){const i=function dn(t){return t&&t instanceof L||function No(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}(t)&&Ar(t)}(e)?e:new Ve(e,r,o);return R(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=gr(r))((o,i)=>{const s=new Ve({next:a=>{try{e(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Hi](){return this}pipe(...e){return wt(e)(this)}toPromise(e){return new(e=gr(e))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=n=>new t(n),t})();function gr(t){var n;return null!==(n=t??un.Promise)&&void 0!==n?n:Promise}const Wc=Ye(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ot=(()=>{class t extends xe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new Rr(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new Wc}next(e){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:o,observers:i}=this;return r||o?kt:(this.currentObservers=null,i.push(e),new U(()=>{this.currentObservers=null,ht(i,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:o,isStopped:i}=this;r?e.error(o):i&&e.complete()}asObservable(){const e=new xe;return e.source=this,e}}return t.create=(n,e)=>new Rr(n,e),t})();class Rr extends ot{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,n)}error(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==r?r:kt}}function so(t){return G(t?.lift)}function Qe(t){return n=>{if(so(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Je(t,n,e,r,o){return new va(t,n,e,r,o)}class va extends L{constructor(n,e,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ye(t,n){return Qe((e,r)=>{let o=0;e.subscribe(Je(r,i=>{r.next(t.call(n,i,o++))}))})}function Lr(t){return this instanceof Lr?(this.v=t,this):new Lr(t)}function wf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Zc(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}(a,l,(s=t[i](s)).done,s.value)})}}}const bf=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Mf(t){return G(t?.then)}function Df(t){return G(t[Hi])}function Ef(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function xf(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sf=function bD(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Pf(t){return G(t?.[Sf])}function Of(t){return function yf(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=e.apply(t,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(m){return new Promise(function(y,M){i.push([g,m,y,M])>1||a(g,m)})})}function a(g,m){try{!function l(g){g.value instanceof Lr?Promise.resolve(g.value.v).then(c,u):d(i[0][2],g)}(r[g](m))}catch(y){d(i[0][3],y)}}function c(g){a("next",g)}function u(g){a("throw",g)}function d(g,m){g(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:r,done:o}=yield Lr(e.read());if(o)return yield Lr(void 0);yield yield Lr(r)}}finally{e.releaseLock()}})}function If(t){return G(t?.getReader)}function pn(t){if(t instanceof xe)return t;if(null!=t){if(Df(t))return function MD(t){return new xe(n=>{const e=t[Hi]();if(G(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(bf(t))return function DD(t){return new xe(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ko)})}(t);if(Ef(t))return Tf(t);if(Pf(t))return function xD(t){return new xe(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(If(t))return function SD(t){return Tf(Of(t))}(t)}throw xf(t)}function Tf(t){return new xe(n=>{(function PD(t,n){var e,r,o,i;return function vf(t,n,e,r){return new(e||(e=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?i(u.value):function o(i){return i instanceof e?i:new e(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=wf(t);!(r=yield e.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function mr(t,n,e,r=0,o=!1){const i=n.schedule(function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function At(t,n,e=1/0){return G(n)?At((r,o)=>ye((i,s)=>n(r,i,o,s))(pn(t(r,o))),e):("number"==typeof n&&(e=n),Qe((r,o)=>function OD(t,n,e,r,o,i,s,a){const l=[];let c=0,u=0,d=!1;const g=()=>{d&&!l.length&&!c&&n.complete()},m=M=>c{i&&n.next(M),c++;let E=!1;pn(e(M,u++)).subscribe(Je(n,x=>{o?.(x),i?m(x):n.next(x)},()=>{E=!0},void 0,()=>{if(E)try{for(c--;l.length&&cy(x)):y(x)}g()}catch(x){n.error(x)}}))};return t.subscribe(Je(n,m,()=>{d=!0,g()})),()=>{a?.()}}(r,o,t,e)))}function Ro(t=1/0){return At(Gn,t)}const Wn=new xe(t=>t.complete());function kf(t){return t&&G(t.schedule)}function Xc(t){return t[t.length-1]}function Af(t){return G(Xc(t))?t.pop():void 0}function $i(t){return kf(Xc(t))?t.pop():void 0}function Nf(t,n=0){return Qe((e,r)=>{e.subscribe(Je(r,o=>mr(r,t,()=>r.next(o),n),()=>mr(r,t,()=>r.complete(),n),o=>mr(r,t,()=>r.error(o),n)))})}function Rf(t,n=0){return Qe((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Ff(t,n){if(!t)throw new Error("Iterable cannot be null");return new xe(e=>{mr(e,n,()=>{const r=t[Symbol.asyncIterator]();mr(e,n,()=>{r.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function bt(t,n){return n?function LD(t,n){if(null!=t){if(Df(t))return function kD(t,n){return pn(t).pipe(Rf(n),Nf(n))}(t,n);if(bf(t))return function ND(t,n){return new xe(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}(t,n);if(Mf(t))return function AD(t,n){return pn(t).pipe(Rf(n),Nf(n))}(t,n);if(Ef(t))return Ff(t,n);if(Pf(t))return function RD(t,n){return new xe(e=>{let r;return mr(e,n,()=>{r=t[Sf](),mr(e,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void e.error(s)}i?e.complete():e.next(o)},0,!0)}),()=>G(r?.return)&&r.return()})}(t,n);if(If(t))return function FD(t,n){return Ff(Of(t),n)}(t,n)}throw xf(t)}(t,n):pn(t)}function Lf(...t){const n=$i(t),e=function TD(t,n){return"number"==typeof Xc(t)?t.pop():n}(t,1/0),r=t;return r.length?1===r.length?pn(r[0]):Ro(e)(bt(r,n)):Wn}function Bf(t={}){const{connector:n=(()=>new ot),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,l,c=0,u=!1,d=!1;const g=()=>{a?.unsubscribe(),a=void 0},m=()=>{g(),s=l=void 0,u=d=!1},y=()=>{const M=s;m(),M?.unsubscribe()};return Qe((M,E)=>{c++,!d&&!u&&g();const x=l=l??n();E.add(()=>{c--,0===c&&!d&&!u&&(a=Kc(y,o))}),x.subscribe(E),!s&&c>0&&(s=new Ve({next:b=>x.next(b),error:b=>{d=!0,g(),a=Kc(m,e,b),x.error(b)},complete:()=>{u=!0,g(),a=Kc(m,r),x.complete()}}),pn(M).subscribe(s))})(i)}}function Kc(t,n,...e){if(!0===n)return void t();if(!1===n)return;const r=new Ve({next:()=>{r.unsubscribe(),t()}});return pn(n(...e)).subscribe(r)}function Fe(t){for(let n in t)if(t[n]===Fe)return n;throw Error("Could not find renamed property on target object.")}function Qc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Mt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Mt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Jc(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const BD=Fe({__forward_ref__:Fe});function ze(t){return t.__forward_ref__=ze,t.toString=function(){return Mt(this())},t}function de(t){return eu(t)?t():t}function eu(t){return"function"==typeof t&&t.hasOwnProperty(BD)&&t.__forward_ref__===ze}function tu(t){return t&&!!t.\u0275providers}const Vf="https://g.co/ng/security#xss";class T extends Error{constructor(n,e){super(function Ca(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function pe(t){return"string"==typeof t?t:null==t?"":String(t)}function ya(t,n){throw new T(-201,!1)}function bn(t,n){null==t&&function Ne(t,n,e,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${e} ${r} ${n} <=Actual]`))}(n,t,null,"!=")}function Z(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function wa(t){return Hf(t,ba)||Hf(t,Uf)}function Hf(t,n){return t.hasOwnProperty(n)?t[n]:null}function $f(t){return t&&(t.hasOwnProperty(nu)||t.hasOwnProperty(WD))?t[nu]:null}const ba=Fe({\u0275prov:Fe}),nu=Fe({\u0275inj:Fe}),Uf=Fe({ngInjectableDef:Fe}),WD=Fe({ngInjectorDef:Fe});var ie=(()=>((ie=ie||{})[ie.Default=0]="Default",ie[ie.Host=1]="Host",ie[ie.Self=2]="Self",ie[ie.SkipSelf=4]="SkipSelf",ie[ie.Optional=8]="Optional",ie))();let ru;function Jt(t){const n=ru;return ru=t,n}function zf(t,n,e){const r=wa(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&ie.Optional?null:void 0!==n?n:void ya(Mt(t))}const Ge=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ui={},ou="__NG_DI_FLAG__",Ma="ngTempTokenPath",YD=/\n/gm,Gf="__source";let Fo;function Vr(t){const n=Fo;return Fo=t,n}function KD(t,n=ie.Default){if(void 0===Fo)throw new T(-203,!1);return null===Fo?zf(t,void 0,n):Fo.get(t,n&ie.Optional?null:void 0,n)}function V(t,n=ie.Default){return(function jf(){return ru}()||KD)(de(t),n)}function z(t,n=ie.Default){return V(t,Da(n))}function Da(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function iu(t){const n=[];for(let e=0;e((qn=qn||{})[qn.OnPush=0]="OnPush",qn[qn.Default=1]="Default",qn))(),fn=(()=>{return(t=fn||(fn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",fn;var t})();const vr={},Se=[],Ea=Fe({\u0275cmp:Fe}),su=Fe({\u0275dir:Fe}),au=Fe({\u0275pipe:Fe}),qf=Fe({\u0275mod:Fe}),Cr=Fe({\u0275fac:Fe}),zi=Fe({__NG_ELEMENT_ID__:Fe}),Yf=Fe({__NG_ENV_ID__:Fe});function Zf(t,n,e){let r=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}e=o+1}}function lu(t,n,e){let r=0;for(;rn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const m=8&r?g:null;if(m&&-1!==Zf(m,c,0)||2&r&&c!==g){if(Tn(r))return!1;s=!0}}}}else{if(!s&&!Tn(r)&&!Tn(l))return!1;if(s&&Tn(l))continue;s=!1,r=l|1&r}}return Tn(r)||s}function Tn(t){return 0==(1&t)}function o1(t,n,e,r){if(null===n)return-1;let o=0;if(r||!e){let i=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Tn(s)&&(n+=ng(i,o),o=""),r=s,i=i||!Tn(r);e++}return""!==o&&(n+=ng(i,o)),n}function ee(t){return _r(()=>{const n=og(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||fn.Emulated,styles:t.styles||Se,_:null,schemas:t.schemas||null,tView:null,id:""};ig(e);const r=t.dependencies;return e.directiveDefs=xa(r,!1),e.pipeDefs=xa(r,!0),e.id=function _1(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function h1(t){return Ie(t)||Bt(t)}function f1(t){return null!==t}function gn(t){return _r(()=>({type:t.type,bootstrap:t.bootstrap||Se,declarations:t.declarations||Se,imports:t.imports||Se,exports:t.exports||Se,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function rg(t,n){if(null==t)return vr;const e={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),e[o]=r,n&&(n[o]=i)}return e}function ue(t){return _r(()=>{const n=og(t);return ig(n),n})}function Lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ie(t){return t[Ea]||null}function Bt(t){return t[su]||null}function en(t){return t[au]||null}function mn(t,n){const e=t[qf]||null;if(!e&&!0===n)throw new Error(`Type ${Mt(t)} does not have '\u0275mod' property.`);return e}function og(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Se,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rg(t.inputs,n),outputs:rg(t.outputs)}}function ig(t){t.features?.forEach(n=>n(t))}function xa(t,n){if(!t)return null;const e=n?en:h1;return()=>("function"==typeof t?t():t).map(r=>e(r)).filter(f1)}const Dt=0,H=1,ge=2,tt=3,kn=4,lo=5,Vt=6,Bo=7,it=8,Vo=9,co=10,he=11,Wi=12,sg=13,Ho=14,mt=15,qi=16,$o=17,Yn=18,Yi=19,ag=20,Hr=21,yr=22,Sa=23,Pa=24,Me=25,cu=1,lg=2,Zn=7,Oa=8,Uo=9,Nt=11;function _n(t){return Array.isArray(t)&&"object"==typeof t[cu]}function tn(t){return Array.isArray(t)&&!0===t[cu]}function uu(t){return 0!=(4&t.flags)}function uo(t){return t.componentOffset>-1}function Ia(t){return 1==(1&t.flags)}function An(t){return!!t.template}function du(t){return 0!=(512&t[ge])}function po(t,n){return t.hasOwnProperty(Cr)?t[Cr]:null}let b1=Ge.WeakRef??class w1{constructor(n){this.ref=n}deref(){return this.ref}},D1=0,Xn=null,Ta=!1;function Ot(t){const n=Xn;return Xn=t,n}class hg{constructor(){this.id=D1++,this.ref=function M1(t){return new b1(t)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[n,e]of this.producers){const r=e.producerNode.deref();if(void 0!==r&&e.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(e.seenValueVersion))return!0}else this.producers.delete(n),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const n=Ta;Ta=!0;try{for(const[e,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(e),o?.producers.delete(this.id))}}finally{Ta=n}}producerAccessed(){if(Ta)throw new Error("");if(null===Xn)return;let n=Xn.producers.get(this.id);void 0===n?(n={consumerNode:Xn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Xn.trackingVersion},Xn.producers.set(this.id,n),this.consumers.set(Xn.id,n)):(n.seenValueVersion=this.valueVersion,n.atTrackingVersion=Xn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Xn?.consumerAllowSignalWrites}producerPollStatus(n){return this.valueVersion!==n||(this.onProducerUpdateValueVersion(),this.valueVersion!==n)}}let fg=null;const gg=()=>{};class P1 extends hg{constructor(n,e,r){super(),this.watch=n,this.schedule=e,this.dirty=!1,this.cleanupFn=gg,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const n=Ot(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=gg,this.watch(this.registerOnCleanup)}finally{Ot(n)}}cleanup(){this.cleanupFn()}}class O1{constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function nn(){return mg}function mg(t){return t.type.prototype.ngOnChanges&&(t.setInput=T1),I1}function I1(){const t=vg(this),n=t?.current;if(n){const e=t.previous;if(e===vr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function T1(t,n,e,r){const o=this.declaredInputs[e],i=vg(t)||function k1(t,n){return t[_g]=n}(t,{previous:vr,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new O1(l&&l.currentValue,n,a===vr),t[r]=n}nn.ngInherit=!0;const _g="__ngSimpleChanges__";function vg(t){return t[_g]||null}const Kn=function(t,n,e){};function Ze(t){for(;Array.isArray(t);)t=t[Dt];return t}function Na(t,n){return Ze(n[t])}function rn(t,n){return Ze(n[t.index])}function wg(t,n){return t.data[n]}function jo(t,n){return t[n]}function on(t,n){const e=n[t];return _n(e)?e:e[Dt]}function Ra(t){return 128==(128&t[ge])}function $r(t,n){return null==n?null:t[n]}function bg(t){t[$o]=0}function B1(t){1024&t[ge]||(t[ge]|=1024,Dg(t,1))}function Mg(t){1024&t[ge]&&(t[ge]&=-1025,Dg(t,-1))}function Dg(t,n){let e=t[tt];if(null===e)return;e[lo]+=n;let r=e;for(e=e[tt];null!==e&&(1===n&&1===r[lo]||-1===n&&0===r[lo]);)e[lo]+=n,r=e,e=e[tt]}const ae={lFrame:Rg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Sg(){return ae.bindingsEnabled}function zo(){return null!==ae.skipHydrationRootTNode}function O(){return ae.lFrame.lView}function Ee(){return ae.lFrame.tView}function A(t){return ae.lFrame.contextLView=t,t[it]}function N(t){return ae.lFrame.contextLView=null,t}function Rt(){let t=Pg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Pg(){return ae.lFrame.currentTNode}function Qn(t,n){const e=ae.lFrame;e.currentTNode=t,e.isParent=n}function _u(){return ae.lFrame.isParent}function vu(){ae.lFrame.isParent=!1}function Go(){return ae.lFrame.bindingIndex++}function br(t){const n=ae.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function X1(t,n){const e=ae.lFrame;e.bindingIndex=e.bindingRootIndex=t,Cu(n)}function Cu(t){ae.lFrame.currentDirectiveIndex=t}function kg(){return ae.lFrame.currentQueryIndex}function wu(t){ae.lFrame.currentQueryIndex=t}function Q1(t){const n=t[H];return 2===n.type?n.declTNode:1===n.type?t[Vt]:null}function Ag(t,n,e){if(e&ie.SkipSelf){let o=n,i=t;for(;!(o=o.parent,null!==o||e&ie.Host||(o=Q1(i),null===o||(i=i[Ho],10&o.type))););if(null===o)return!1;n=o,t=i}const r=ae.lFrame=Ng();return r.currentTNode=n,r.lView=t,!0}function bu(t){const n=Ng(),e=t[H];ae.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Ng(){const t=ae.lFrame,n=null===t?null:t.child;return null===n?Rg(t):n}function Rg(t){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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Fg(){const t=ae.lFrame;return ae.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Lg=Fg;function Mu(){const t=Fg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Gt(){return ae.lFrame.selectedIndex}function ho(t){ae.lFrame.selectedIndex=t}function nt(){const t=ae.lFrame;return wg(t.tView,t.selectedIndex)}let Vg=!0;function Fa(){return Vg}function Ur(t){Vg=t}function La(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[l]<0&&(t[$o]+=65536),(a>12>16&&(3&t[ge])===n&&(t[ge]+=4096,$g(a,i)):$g(a,i)}const Wo=-1;class Ki{constructor(n,e,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function Ug(t){return t!==Wo}function Ha(t){return 32767&t}function $a(t,n){let e=function uE(t){return t>>16}(t),r=n;for(;e>0;)r=r[Ho],e--;return r}let xu=!0;function Ua(t){const n=xu;return xu=t,n}const jg=255,zg=5;let dE=0;const Jn={};function ja(t,n){const e=Gg(t,n);if(-1!==e)return e;const r=n[H];r.firstCreatePass&&(t.injectorIndex=n.length,Su(r.data,t),Su(n,null),Su(r.blueprint,null));const o=Pu(t,n),i=t.injectorIndex;if(Ug(o)){const s=Ha(o),a=$a(o,n),l=a[H].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function Su(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Gg(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Pu(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,r=null,o=n;for(;null!==o;){if(r=Qg(o),null===r)return Wo;if(e++,o=o[Ho],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return Wo}function Ou(t,n,e){!function pE(t,n,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(zi)&&(r=e[zi]),null==r&&(r=e[zi]=dE++);const o=r&jg;n.data[t+(o>>zg)]|=1<=0?n&jg:mE:n}(e);if("function"==typeof i){if(!Ag(n,t,r))return r&ie.Host?Wg(o,0,r):qg(n,e,r,o);try{const s=i(r);if(null!=s||r&ie.Optional)return s;ya()}finally{Lg()}}else if("number"==typeof i){let s=null,a=Gg(t,n),l=Wo,c=r&ie.Host?n[mt][Vt]:null;for((-1===a||r&ie.SkipSelf)&&(l=-1===a?Pu(t,n):n[a+8],l!==Wo&&Kg(r,!1)?(s=n[H],a=Ha(l),n=$a(l,n)):a=-1);-1!==a;){const u=n[H];if(Xg(i,a,u.data)){const d=fE(a,n,e,s,r,c);if(d!==Jn)return d}l=n[a+8],l!==Wo&&Kg(r,n[H].data[a+8]===c)&&Xg(i,a,n)?(s=u,a=Ha(l),n=$a(l,n)):a=-1}}return o}function fE(t,n,e,r,o,i){const s=n[H],a=s.data[t+8],u=za(a,s,e,null==r?uo(a)&&xu:r!=s&&0!=(3&a.type),o&ie.Host&&i===a);return null!==u?fo(n,s,u,a):Jn}function za(t,n,e,r,o){const i=t.providerIndexes,s=n.data,a=1048575&i,l=t.directiveStart,u=i>>20,g=o?a+u:t.directiveEnd;for(let m=r?a:a+u;m=l&&y.type===e)return m}if(o){const m=s[l];if(m&&An(m)&&m.type===e)return l}return null}function fo(t,n,e,r){let o=t[e];const i=n.data;if(function aE(t){return t instanceof Ki}(o)){const s=o;s.resolving&&function VD(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new T(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Ae(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():pe(t)}(i[e]));const a=Ua(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Jt(s.injectImpl):null;Ag(t,r,ie.Default);try{o=t[e]=s.factory(void 0,i,t,r),n.firstCreatePass&&e>=r.directiveStart&&function iE(t,n,e){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=mg(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}o&&(e.preOrderHooks??=[]).push(0-t,o),i&&((e.preOrderHooks??=[]).push(t,i),(e.preOrderCheckHooks??=[]).push(t,i))}(e,i[e],n)}finally{null!==l&&Jt(l),Ua(a),s.resolving=!1,Lg()}}return o}function Xg(t,n,e){return!!(e[n+(t>>zg)]&1<{const n=t.prototype.constructor,e=n[Cr]||Iu(n),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[Cr]||Iu(o);if(i&&i!==e)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Iu(t){return eu(t)?()=>{const n=Iu(de(t));return n&&n()}:po(t)}function Qg(t){const n=t[H],e=n.type;return 2===e?n.declTNode:1===e?t[Vt]:null}const Zo="__parameters__";function Ko(t,n,e){return _r(()=>{const r=function Tu(t){return function(...e){if(t){const r=t(...e);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Zo)?l[Zo]:Object.defineProperty(l,Zo,{value:[]})[Zo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function es(t,n){t.forEach(e=>Array.isArray(e)?es(e,n):n(e))}function em(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Wa(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ts(t,n){const e=[];for(let r=0;r=0?t[1|r]=e:(r=~r,function bE(t,n,e,r){let o=t.length;if(o==n)t.push(e,r);else if(1===o)t.push(r,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=r}}(t,r,n,e)),r}function ku(t,n){const e=Qo(t,n);if(e>=0)return t[1|e]}function Qo(t,n){return function tm(t,n,e){let r=0,o=t.length>>e;for(;o!==r;){const i=r+(o-r>>1),s=t[i<n?o=i:r=i+1}return~(o<((sn=sn||{})[sn.Important=1]="Important",sn[sn.DashCase=2]="DashCase",sn))();const jE=/^>|^->||--!>|)/,GE="\u200b$1\u200b";const Bu=new Map;let WE=0;const Hu="__ngContext__";function Ht(t,n){_n(n)?(t[Hu]=n[Yi],function YE(t){Bu.set(t[Yi],t)}(n)):t[Hu]=n}let $u;function Uu(t,n){return $u(t,n)}function os(t){const n=t[tt];return tn(n)?n[tt]:n}function ju(t){return ym(t[Wi])}function zu(t){return ym(t[kn])}function ym(t){for(;null!==t&&!tn(t);)t=t[kn];return t}function ti(t,n,e,r,o){if(null!=r){let i,s=!1;tn(r)?i=r:_n(r)&&(s=!0,r=r[Dt]);const a=Ze(r);0===t&&null!==e?null==o?Em(n,e,a):go(n,e,a,o||null,!0):1===t&&null!==e?go(n,e,a,o||null,!0):2===t?function il(t,n,e){const r=rl(t,n);r&&function hx(t,n,e,r){t.removeChild(n,e,r)}(t,r,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=i&&function mx(t,n,e,r,o){const i=e[Zn];i!==Ze(e)&&ti(n,t,r,i,o);for(let a=Nt;an.replace(zE,GE))}(n))}function nl(t,n,e){return t.createElement(n,e)}function bm(t,n){const e=t[Uo],r=e.indexOf(n);Mg(n),e.splice(r,1)}function Wu(t,n){if(t.length<=Nt)return;const e=Nt+n,r=t[e];if(r){const o=r[qi];null!==o&&o!==t&&bm(o,r),n>0&&(t[e-1][kn]=r[kn]);const i=Wa(t,Nt+n);!function ix(t,n){ss(t,n,n[he],2,null,null),n[Dt]=null,n[Vt]=null}(r[H],r);const s=i[Yn];null!==s&&s.detachView(i[H]),r[tt]=null,r[kn]=null,r[ge]&=-129}return r}function Mm(t,n){if(!(256&n[ge])){const e=n[he];n[Sa]?.destroy(),n[Pa]?.destroy(),e.destroyNode&&ss(t,n,e,3,null,null),function lx(t){let n=t[Wi];if(!n)return qu(t[H],t);for(;n;){let e=null;if(_n(n))e=n[Wi];else{const r=n[Nt];r&&(e=r)}if(!e){for(;n&&!n[kn]&&n!==t;)_n(n)&&qu(n[H],n),n=n[tt];null===n&&(n=t),_n(n)&&qu(n[H],n),e=n&&n[kn]}n=e}}(n)}}function qu(t,n){if(!(256&n[ge])){n[ge]&=-129,n[ge]|=256,function px(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else e[i].call(r[e[i+1]]);null!==r&&(n[Bo]=null);const o=n[Hr];if(null!==o){n[Hr]=null;for(let i=0;i-1){const{encapsulation:i}=t.data[r.directiveStart+o];if(i===fn.None||i===fn.Emulated)return null}return rn(r,e)}}(t,n.parent,e)}function go(t,n,e,r,o){t.insertBefore(n,e,r,o)}function Em(t,n,e){t.appendChild(n,e)}function xm(t,n,e,r,o){null!==r?go(t,n,e,r,o):Em(t,n,e)}function rl(t,n){return t.parentNode(n)}function Sm(t,n,e){return Om(t,n,e)}let Zu,sl,Ju,Om=function Pm(t,n,e){return 40&t.type?rn(t,e):null};function ol(t,n,e,r){const o=Yu(t,r,n),i=n[he],a=Sm(r.parent||n[Vt],r,n);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return sl}()?.createHTML(t)||t}class mo{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Vf})`}}class Mx extends mo{getTypeName(){return"HTML"}}class Dx extends mo{getTypeName(){return"Style"}}class Ex extends mo{getTypeName(){return"Script"}}class xx extends mo{getTypeName(){return"URL"}}class Sx extends mo{getTypeName(){return"ResourceURL"}}function Cn(t){return t instanceof mo?t.changingThisBreaksApplicationSecurity:t}function er(t,n){const e=function Px(t){return t instanceof mo&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Vf})`)}return e===n}class Nx{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(ni(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class Rx{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=ni(n),e}}const Lx=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ll(t){return(t=String(t)).match(Lx)?t:"unsafe:"+t}function Mr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function ls(...t){const n={};for(const e of t)for(const r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}const Hm=Mr("area,br,col,hr,img,wbr"),$m=Mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Um=Mr("rp,rt"),td=ls(Hm,ls($m,Mr("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(Um,Mr("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(Um,$m)),nd=Mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),jm=ls(nd,Mr("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"),Mr("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")),Bx=Mr("script,style,template");class Vx{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!td.hasOwnProperty(e))return this.sanitizedSomething=!0,!Bx.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();td.hasOwnProperty(e)&&!Hm.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(zm(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&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 e}}const Hx=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$x=/([^\#-~ |!])/g;function zm(t){return t.replace(/&/g,"&").replace(Hx,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace($x,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let cl;function Gm(t,n){let e=null;try{cl=cl||function Vm(t){const n=new Rx(t);return function Fx(){try{return!!(new window.DOMParser).parseFromString(ni(""),"text/html")}catch{return!1}}()?new Nx(n):n}(t);let r=n?String(n):"";e=cl.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=e.innerHTML,e=cl.getInertBodyElement(r)}while(r!==i);return ni((new Vx).sanitizeChildren(rd(e)||e))}finally{if(e){const r=rd(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function rd(t){return"content"in t&&function Ux(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ue=(()=>((Ue=Ue||{})[Ue.NONE=0]="NONE",Ue[Ue.HTML=1]="HTML",Ue[Ue.STYLE=2]="STYLE",Ue[Ue.SCRIPT=3]="SCRIPT",Ue[Ue.URL=4]="URL",Ue[Ue.RESOURCE_URL=5]="RESOURCE_URL",Ue))();function tr(t){const n=function cs(){const t=O();return t&&t[co].sanitizer}();return n?n.sanitize(Ue.URL,t)||"":er(t,"URL")?Cn(t):ll(pe(t))}class j{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const us=new j("ENVIRONMENT_INITIALIZER"),Ym=new j("INJECTOR",-1),Zm=new j("INJECTOR_DEF_TYPES");class Xm{get(n,e=Ui){if(e===Ui){const r=new Error(`NullInjectorError: No provider for ${Mt(n)}!`);throw r.name="NullInjectorError",r}return e}}function Zx(...t){return{\u0275providers:Km(0,t),\u0275fromNgModule:!0}}function Km(t,...n){const e=[],r=new Set;let o;return es(n,i=>{const s=i;id(s,e,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Qm(o,e),e}function Qm(t,n){for(let e=0;e{n.push(i)})}}function id(t,n,e,r){if(!(t=de(t)))return!1;let o=null,i=$f(t);const s=!i&&Ie(t);if(i||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(i=$f(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)id(c,n,e,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{es(i.imports,u=>{id(u,n,e,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Qm(c,n)}if(!a){const c=po(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:Se},{provide:Zm,useValue:o,multi:!0},{provide:us,useValue:()=>V(o),multi:!0})}const l=i.providers;null==l||a||sd(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}function sd(t,n){for(let e of t)tu(e)&&(e=e.\u0275providers),Array.isArray(e)?sd(e,n):n(e)}const Xx=Fe({provide:String,useValue:Fe});function ad(t){return null!==t&&"object"==typeof t&&Xx in t}function _o(t){return"function"==typeof t}const ld=new j("Set Injector scope."),ul={},Qx={};let cd;function dl(){return void 0===cd&&(cd=new Xm),cd}class nr{}class ud extends nr{get destroyed(){return this._destroyed}constructor(n,e,r,o){super(),this.parent=e,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pd(n,s=>this.processProvider(s)),this.records.set(Ym,ri(void 0,this)),o.has("environment")&&this.records.set(nr,ri(void 0,this));const i=this.records.get(ld);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Zm.multi,Se,ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}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 e=Vr(this),r=Jt(void 0);try{return n()}finally{Vr(e),Jt(r)}}get(n,e=Ui,r=ie.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Yf))return n[Yf](this);r=Da(r);const o=Vr(this),i=Jt(void 0);try{if(!(r&ie.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function rS(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(n)&&wa(n);a=l&&this.injectableDefInScope(l)?ri(dd(n),ul):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&ie.Self?dl():this.parent).get(n,e=r&ie.Optional&&e===Ui?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ma]=s[Ma]||[]).unshift(Mt(n)),o)throw s;return function JD(t,n,e,r){const o=t[Ma];throw n[Gf]&&o.unshift(n[Gf]),t.message=function e1(t,n,e,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Mt(n);if(Array.isArray(n))o=n.map(Mt).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Mt(a)))}o=`{${i.join(", ")}}`}return`${e}${r?"("+r+")":""}[${o}]: ${t.replace(YD,"\n ")}`}("\n"+t.message,o,e,r),t.ngTokenPath=o,t[Ma]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Jt(i),Vr(o)}}resolveInjectorInitializers(){const n=Vr(this),e=Jt(void 0);try{const r=this.get(us.multi,Se,ie.Self);for(const o of r)o()}finally{Vr(n),Jt(e)}}toString(){const n=[],e=this.records;for(const r of e.keys())n.push(Mt(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new T(205,!1)}processProvider(n){let e=_o(n=de(n))?n:de(n&&n.provide);const r=function eS(t){return ad(t)?ri(void 0,t.useValue):ri(t_(t),ul)}(n);if(_o(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=ri(void 0,ul,!0),o.factory=()=>iu(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,r)}hydrate(n,e){return e.value===ul&&(e.value=Qx,e.value=e.factory()),"object"==typeof e.value&&e.value&&function nS(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=de(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function dd(t){const n=wa(t),e=null!==n?n.factory:po(t);if(null!==e)return e;if(t instanceof j)throw new T(204,!1);if(t instanceof Function)return function Jx(t){const n=t.length;if(n>0)throw ts(n,"?"),new T(204,!1);const e=function GD(t){return t&&(t[ba]||t[Uf])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new T(204,!1)}function t_(t,n,e){let r;if(_o(t)){const o=de(t);return po(o)||dd(o)}if(ad(t))r=()=>de(t.useValue);else if(function e_(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...iu(t.deps||[]));else if(function Jm(t){return!(!t||!t.useExisting)}(t))r=()=>V(de(t.useExisting));else{const o=de(t&&(t.useClass||t.provide));if(!function tS(t){return!!t.deps}(t))return po(o)||dd(o);r=()=>new o(...iu(t.deps))}return r}function ri(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function pd(t,n){for(const e of t)Array.isArray(e)?pd(e,n):e&&tu(e)?pd(e.\u0275providers,n):n(e)}const pl=new j("AppId",{providedIn:"root",factory:()=>oS}),oS="ng",n_=new j("Platform Initializer"),jr=new j("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),r_=new j("CSP nonce",{providedIn:"root",factory:()=>function as(){if(void 0!==Ju)return Ju;if(typeof document<"u")return document;throw new T(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let i_=(t,n)=>null;function s_(t,n){return i_(t,n)}class hS{}class c_{}class gS{resolveComponentFactory(n){throw function fS(t){const n=Error(`No component factory found for ${Mt(t)}.`);return n.ngComponent=t,n}(n)}}let _l=(()=>{class t{}return t.NULL=new gS,t})();function mS(){return oi(Rt(),O())}function oi(t,n){return new Wt(rn(t,n))}let Wt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=mS,t})();function _S(t){return t instanceof Wt?t.nativeElement:t}class d_{}let Dr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function vS(){const t=O(),e=on(Rt().index,t);return(_n(e)?e:t)[he]}(),t})(),CS=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>null}),t})();class fs{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const yS=new fs("16.0.2"),Md={};function gs(t){for(;t;){t[ge]|=64;const n=os(t);if(du(t)&&!n)return t;t=n}return null}function Dd(t){return t.ngOriginalError}class vo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Dd(n);for(;e&&Dd(e);)e=Dd(e);return e||null}}const f_=new j("",{providedIn:"root",factory:()=>!1});function Te(t){return t.ownerDocument}function Er(t){return t instanceof Function?t():t}class __ extends hg{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(n){this._lView=n}onConsumerDependencyMayHaveChanged(){gs(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(n,e,r){const o=Ot(this);this.trackingVersion++;try{n(e,r)}finally{Ot(o)}}destroy(){this.trackingVersion++}}let Cl=null;function v_(){return Cl??=new __,Cl}function C_(t,n){return t[n]??v_()}function y_(t,n){const e=v_();e.hasReadASignal&&(t[n]=Cl,e.lView=t,Cl=new __)}const fe={};function _(t){w_(Ee(),O(),Gt()+t,!1)}function w_(t,n,e,r){if(!r)if(3==(3&n[ge])){const i=t.preOrderCheckHooks;null!==i&&Ba(n,i,e)}else{const i=t.preOrderHooks;null!==i&&Va(n,i,0,e)}ho(e)}function E_(t,n=null,e=null,r){const o=x_(t,n,e,r);return o.resolveInjectorInitializers(),o}function x_(t,n=null,e=null,r,o=new Set){const i=[e||Se,Zx(t)];return r=r||("object"==typeof t?void 0:Mt(t)),new ud(i,n||dl(),r||null,o)}let Nn=(()=>{class t{static create(e,r){if(Array.isArray(e))return E_({name:""},r,e,"");{const o=e.name??"";return E_({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=Ui,t.NULL=new Xm,t.\u0275prov=Z({token:t,providedIn:"any",factory:()=>V(Ym)}),t.__NG_ELEMENT_ID__=-1,t})();function w(t,n=ie.Default){const e=O();return null===e?V(t,n):Yg(Rt(),e,de(t),n)}function yl(t,n,e,r,o,i,s,a,l,c,u){const d=n.blueprint.slice();return d[Dt]=o,d[ge]=140|r,(null!==c||t&&2048&t[ge])&&(d[ge]|=2048),bg(d),d[tt]=d[Ho]=t,d[it]=e,d[co]=s||t&&t[co],d[he]=a||t&&t[he],d[Vo]=l||t&&t[Vo]||null,d[Vt]=i,d[Yi]=function qE(){return WE++}(),d[yr]=u,d[ag]=c,d[mt]=2==n.type?t[mt]:d,d}function si(t,n,e,r,o){let i=t.data[n];if(null===i)i=function Ed(t,n,e,r,o){const i=Pg(),s=_u(),l=t.data[n]=function HS(t,n,e,r,o,i){let s=n?n.injectorIndex:-1,a=0;return zo()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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?i:i&&i.parent,e,n,r,o);return null===t.firstChild&&(t.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(t,n,e,r,o),function Z1(){return ae.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=e,i.value=r,i.attrs=o;const s=function Xi(){const t=ae.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Qn(i,!0),i}function ms(t,n,e,r){if(0===e)return-1;const o=n.length;for(let i=0;iMe&&w_(t,n,Me,!1),Kn(a?2:0,o),a)i.runInContext(e,r,o);else{const c=Ot(null);try{e(r,o)}finally{Ot(c)}}}finally{a&&null===n[Sa]&&y_(n,Sa),ho(s),Kn(a?3:1,o)}}function xd(t,n,e){if(uu(n)){const r=Ot(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function T_(t,n,e,r){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const i=t[o];null===r?k_(e,n,o,i):r.hasOwnProperty(o)&&k_(e,n,r[o],i)}return e}function k_(t,n,e,r){t.hasOwnProperty(e)?t[e].push(n,r):t[e]=[n,r]}function Id(t,n,e,r){if(Sg()){const o=null===r?null:{"":-1},i=function ZS(t,n){const e=t.directiveRegistry;let r=null,o=null;if(e)for(let i=0;i0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,r,i)}}(t,n,r,ms(t,e,o.hostVars,fe),o)}function rr(t,n,e,r,o,i){const s=rn(t,n);!function kd(t,n,e,r,o,i,s){if(null==i)t.removeAttribute(n,o,e);else{const a=null==s?pe(i):s(i,r||"",o);t.setAttribute(n,o,a,e)}}(n[he],s,i,t.value,e,r,o)}function tP(t,n,e,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new P1(e,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,r]of this.queue)this.queue.delete(e),r?r.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new t}),t})();function bl(t,n,e){let r=e?t.styles:null,o=e?t.classes:null,i=0;if(null!==n)for(let s=0;s0&&Fd(e)}}function Fd(t){for(let r=ju(t);null!==r;r=zu(r))for(let o=Nt;o0&&Fd(i)}const e=t[H].components;if(null!==e)for(let r=0;r0&&Fd(o)}}class vs{get rootNodes(){const n=this._lView,e=n[H];return _s(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[it]}set context(n){this._lView[it]=n}get destroyed(){return 256==(256&this._lView[ge])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[tt];if(tn(n)){const e=n[Oa],r=e?e.indexOf(this):-1;r>-1&&(Wu(n,r),Wa(e,r))}this._attachedToViewContainer=!1}Mm(this._lView[H],this._lView)}onDestroy(n){!function Eg(t,n){if(256==(256&t[ge]))throw new T(911,!1);null===t[Hr]&&(t[Hr]=[]),t[Hr].push(n)}(this._lView,n)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[ge]&=-129}reattach(){this._lView[ge]|=128}detectChanges(){Ml(this._lView[H],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ax(t,n){ss(t,n,n[he],2,null,null)}(this._lView[H],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=n}}class fP extends vs{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ml(n[H],n,n[it],!1)}checkNoChanges(){}get context(){return null}}class j_ extends _l{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ie(n);return new Cs(e,this.ngModule)}}function z_(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class mP{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){r=Da(r);const o=this.injector.get(n,Md,r);return o!==Md||e===Md?o:this.parentInjector.get(n,e,r)}}class Cs extends c_{get inputs(){return z_(this.componentDef.inputs)}get outputs(){return z_(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function u1(t){return t.map(c1).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,r,o){let i=(o=o||this.ngModule)instanceof nr?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new mP(n,i):n,a=s.get(d_,null);if(null===a)throw new T(407,!1);const u={rendererFactory:a,sanitizer:s.get(CS,null),effectManager:s.get(U_,null)},d=a.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",m=r?function RS(t,n,e,r){const i=r.get(f_,!1)||e===fn.ShadowDom,s=t.selectRootElement(n,i);return function FS(t){I_(t)}(s),s}(d,r,this.componentDef.encapsulation,s):nl(d,g,function gP(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(g)),y=this.componentDef.onPush?576:528,M=Od(0,null,null,1,0,null,null,null,null,null,null),E=yl(null,M,null,y,null,null,u,d,s,null,null);let x,b;bu(E);try{const k=this.componentDef;let q,oe=null;k.findHostDirectiveDefs?(q=[],oe=new Map,k.findHostDirectiveDefs(k,q,oe),q.push(k)):q=[k];const be=function vP(t,n){const e=t[H],r=Me;return t[r]=n,si(e,r,2,"#host",null)}(E,m),On=function CP(t,n,e,r,o,i,s){const a=o[H];!function yP(t,n,e,r){for(const o of t)n.mergedAttrs=Gi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(bl(n,n.mergedAttrs,!0),null!==e&&Rm(r,e,n))}(r,t,n,s);let l=null;null!==n&&(l=s_(n,o[Vo]));const c=i.rendererFactory.createRenderer(n,e),u=yl(o,O_(e),null,e.onPush?64:16,o[t.index],t,i,c,null,null,l);return a.firstCreatePass&&Td(a,t,r.length-1),wl(o,u),o[t.index]=u}(be,m,k,q,E,u,d);b=wg(M,Me),m&&function bP(t,n,e,r){if(r)lu(t,e,["ng-version",yS.full]);else{const{attrs:o,classes:i}=function d1(t){const n=[],e=[];let r=1,o=2;for(;r0&&Nm(t,e,i.join(" "))}}(d,k,m,r),void 0!==e&&function MP(t,n,e){const r=t.projection=[];for(let o=0;o=0;r--){const o=t[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,e=Gi(e,o.hostAttrs))}}(r)}function Ld(t){return t===vr?{}:t===Se?[]:t}function xP(t,n){const e=t.viewQuery;t.viewQuery=e?(r,o)=>{n(r,o),e(r,o)}:n}function SP(t,n){const e=t.contentQueries;t.contentQueries=e?(r,o,i)=>{n(r,o,i),e(r,o,i)}:n}function PP(t,n){const e=t.hostBindings;t.hostBindings=e?(r,o)=>{n(r,o),e(r,o)}:n}function El(t){return!!function Bd(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function $t(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ir(t,n,e,r){const o=O();return $t(o,Go(),n)&&(Ee(),rr(nt(),o,t,n,e,r)),ir}function li(t,n,e,r){return $t(t,Go(),e)?n+pe(e)+r:fe}function I(t,n,e,r,o,i,s,a){const l=O(),c=Ee(),u=t+Me,d=c.firstCreatePass?function JP(t,n,e,r,o,i,s,a,l){const c=n.consts,u=si(n,t,4,s||null,$r(c,a));Id(n,e,u,$r(c,l)),La(n,u);const d=u.tView=Od(2,u,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,r,o,i,s):c.data[u];Qn(d,!1);const g=av(c,l,d,t);Fa()&&ol(c,l,g,d),Ht(g,l),wl(l,l[u]=F_(g,l,g,d)),Ia(d)&&Sd(c,l,d),null!=s&&Pd(l,d,a)}let av=function lv(t,n,e,r){return Ur(!0),n[he].createComment("")};function C(t,n,e){const r=O();return $t(r,Go(),n)&&function yn(t,n,e,r,o,i,s,a){const l=rn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Nd(t,e,u,r,o),uo(n)&&function jS(t,n){const e=on(n,t);16&e[ge]||(e[ge]|=64)}(e,n.index)):3&n.type&&(r=function US(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(l,r,o))}(Ee(),nt(),r,t,n,r[he],e,!1),C}function zd(t,n,e,r,o){const s=o?"class":"style";Nd(t,e,n.inputs[s],s,r)}function p(t,n,e,r){const o=O(),i=Ee(),s=Me+t,a=o[he],l=i.firstCreatePass?function rO(t,n,e,r,o,i){const s=n.consts,l=si(n,t,2,r,$r(s,o));return Id(n,e,l,$r(s,i)),null!==l.attrs&&bl(l,l.attrs,!1),null!==l.mergedAttrs&&bl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,e,r):i.data[s],c=uv(i,o,l,a,n,t);o[s]=c;const u=Ia(l);return Qn(l,!0),Rm(a,c,l),32!=(32&l.flags)&&Fa()&&ol(i,o,c,l),0===function H1(){return ae.lFrame.elementDepthCount}()&&Ht(c,o),function $1(){ae.lFrame.elementDepthCount++}(),u&&(Sd(i,o,l),xd(i,l,o)),null!==r&&Pd(o,l),p}function h(){let t=Rt();_u()?vu():(t=t.parent,Qn(t,!1));const n=t;(function j1(t){return ae.skipHydrationRootTNode===t})(n)&&function q1(){ae.skipHydrationRootTNode=null}(),function U1(){ae.lFrame.elementDepthCount--}();const e=Ee();return e.firstCreatePass&&(La(e,t),uu(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function lE(t){return 0!=(8&t.flags)}(n)&&zd(e,n,O(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function cE(t){return 0!=(16&t.flags)}(n)&&zd(e,n,O(),n.stylesWithoutHost,!1),h}function K(t,n,e,r){return p(t,n,e,r),h(),K}let uv=(t,n,e,r,o,i)=>(Ur(!0),nl(r,o,function Bg(){return ae.lFrame.currentNamespace}()));function Gd(t,n,e){const r=O(),o=Ee(),i=t+Me,s=o.firstCreatePass?function sO(t,n,e,r,o){const i=n.consts,s=$r(i,r),a=si(n,t,8,"ng-container",s);return null!==s&&bl(a,s,!0),Id(n,e,a,$r(i,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(i,o,r,n,e):o.data[i];Qn(s,!0);const a=dv(o,r,s,t);return r[i]=a,Fa()&&ol(o,r,a,s),Ht(a,r),Ia(s)&&(Sd(o,r,s),xd(o,s,r)),null!=e&&Pd(r,s),Gd}function Wd(){let t=Rt();const n=Ee();return _u()?vu():(t=t.parent,Qn(t,!1)),n.firstCreatePass&&(La(n,t),uu(t)&&n.queries.elementEnd(t)),Wd}function qd(t,n,e){return Gd(t,n,e),Wd(),qd}let dv=(t,n,e,r)=>(Ur(!0),Gu(n[he],""));function Y(){return O()}function Ds(t){return!!t&&"function"==typeof t.then}function pv(t){return!!t&&"function"==typeof t.subscribe}function v(t,n,e,r){const o=O(),i=Ee(),s=Rt();return function fv(t,n,e,r,o,i,s){const a=Ia(r),c=t.firstCreatePass&&V_(t),u=n[it],d=B_(n);let g=!0;if(3&r.type||s){const M=rn(r,n),E=s?s(M):M,x=d.length,b=s?q=>s(Ze(q[r.index])):r.index;let k=null;if(!s&&a&&(k=function cO(t,n,e,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,n,o,r.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,g=!1;else{i=mv(r,n,u,i,!1);const q=e.listen(E,o,i);d.push(i,q),c&&c.push(o,b,x,x+1)}}else i=mv(r,n,u,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const M=y.length;if(M)for(let E=0;E-1?on(t.index,n):n);let l=gv(n,e,r,s),c=i.__ngNextListenerFn__;for(;c;)l=gv(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function D(t=1){return function J1(t){return(ae.lFrame.contextLView=function eE(t,n){for(;t>0;)n=n[Ho],t--;return n}(t,ae.lFrame.contextLView))[it]}(t)}function uO(t,n){let e=null;const r=function i1(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o>17&32767}function Zd(t){return 2|t}function yo(t){return(131068&t)>>2}function Xd(t,n){return-131069&t|n<<2}function Kd(t){return 1|t}function Pv(t,n,e,r,o){const i=t[e+1],s=null===n;let a=r?zr(i):yo(i),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];mO(t[a],n)&&(l=!0,t[a+1]=r?Kd(u):Zd(u)),a=r?zr(u):yo(u)}l&&(t[e+1]=r?Zd(i):Kd(i))}function mO(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Qo(t,n)>=0}const xt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ov(t){return t.substring(xt.key,xt.keyEnd)}function _O(t){return t.substring(xt.value,xt.valueEnd)}function Iv(t,n){const e=xt.textEnd;return e===n?-1:(n=xt.keyEnd=function yO(t,n,e){for(;n32;)n++;return n}(t,xt.key=n,e),mi(t,n,e))}function Tv(t,n){const e=xt.textEnd;let r=xt.key=mi(t,n,e);return e===r?-1:(r=xt.keyEnd=function wO(t,n,e){let r;for(;n=65&&(-33&r)<=90||r>=48&&r<=57);)n++;return n}(t,r,e),r=Av(t,r,e),r=xt.value=mi(t,r,e),r=xt.valueEnd=function bO(t,n,e){let r=-1,o=-1,i=-1,s=n,a=s;for(;s32&&(a=s),i=o,o=r,r=-33&l}return a}(t,r,e),Av(t,r,e))}function kv(t){xt.key=0,xt.keyEnd=0,xt.value=0,xt.valueEnd=0,xt.textEnd=t.length}function mi(t,n,e){for(;n=0;e=Tv(n,e))Lv(t,Ov(n),_O(n))}function En(t){Ln(OO,sr,t,!0)}function sr(t,n){for(let e=function vO(t){return kv(t),Iv(t,mi(t,0,xt.textEnd))}(n);e>=0;e=Iv(n,e))vn(t,Ov(n),!0)}function Fn(t,n,e,r){const o=O(),i=Ee(),s=br(2);i.firstUpdatePass&&Fv(i,t,s,r),n!==fe&&$t(o,s,n)&&Bv(i,i.data[Gt()],o,o[he],t,o[s+1]=function TO(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Mt(Cn(t)))),t}(n,e),r,s)}function Ln(t,n,e,r){const o=Ee(),i=br(2);o.firstUpdatePass&&Fv(o,null,i,r);const s=O();if(e!==fe&&$t(s,i,e)){const a=o.data[Gt()];if(Hv(a,r)&&!Rv(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Jc(l,e||"")),zd(o,a,s,e,r)}else!function IO(t,n,e,r,o,i,s,a){o===fe&&(o=Se);let l=0,c=0,u=0=t.expandoStartIndex}function Fv(t,n,e,r){const o=t.data;if(null===o[e+1]){const i=o[Gt()],s=Rv(t,e);Hv(i,r)&&null===n&&!s&&(n=!1),n=function DO(t,n,e,r){const o=function yu(t){const n=ae.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(e=xs(e=Qd(null,t,n,e,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=Qd(o,t,n,e,r),null===i){let l=function EO(t,n,e){const r=e?n.classBindings:n.styleBindings;if(0!==yo(r))return t[zr(r)]}(t,n,r);void 0!==l&&Array.isArray(l)&&(l=Qd(null,t,n,l[1],r),l=xs(l,n.attrs,r),function xO(t,n,e,r){t[zr(e?n.classBindings:n.styleBindings)]=r}(t,n,r,l))}else i=function SO(t,n,e){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):u=e,o)if(0!==l){const g=zr(t[a+1]);t[r+1]=Il(g,a),0!==g&&(t[g+1]=Xd(t[g+1],r)),t[a+1]=function pO(t,n){return 131071&t|n<<17}(t[a+1],r)}else t[r+1]=Il(a,0),0!==a&&(t[a+1]=Xd(t[a+1],r)),a=r;else t[r+1]=Il(l,0),0===a?a=r:t[l+1]=Xd(t[l+1],r),l=r;c&&(t[r+1]=Zd(t[r+1])),Pv(t,u,r,!0),Pv(t,u,r,!1),function gO(t,n,e,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof n&&Qo(i,n)>=0&&(e[r+1]=Kd(e[r+1]))}(n,u,t,r,i),s=Il(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,e,s,r)}}function Qd(t,n,e,r,o){let i=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let g=e[o+1];g===fe&&(g=d?Se:void 0);let m=d?ku(g,r):u===r?g:void 0;if(c&&!Tl(m)&&(m=ku(l,r)),Tl(m)&&(a=m,s))return a;const y=t[o+1];o=s?zr(y):yo(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=ku(l,r))}return a}function Tl(t){return void 0!==t}function Hv(t,n){return 0!=(t.flags&(n?8:16))}function f(t,n=""){const e=O(),r=Ee(),o=t+Me,i=r.firstCreatePass?si(r,o,1,n,null):r.data[o],s=$v(r,e,i,n,t);e[o]=s,Fa()&&ol(r,e,s,i),Qn(i,!1)}let $v=(t,n,e,r,o)=>(Ur(!0),function tl(t,n){return t.createText(n)}(n[he],r));function ve(t){return Xe("",t,""),ve}function Xe(t,n,e){const r=O(),o=li(r,t,n,e);return o!==fe&&function xr(t,n,e){const r=Na(n,t);!function wm(t,n,e){t.setValue(n,e)}(t[he],r,e)}(r,Gt(),o),Xe}const vi="en-US";let uC=vi;function tp(t,n,e,r,o){if(t=de(t),Array.isArray(t))for(let i=0;i>20;if(_o(t)||!t.multi){const m=new Ki(l,o,w),y=rp(a,n,o?u:u+g,d);-1===y?(Ou(ja(c,s),i,a),np(i,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[y]=m,s[y]=m)}else{const m=rp(a,n,u+g,d),y=rp(a,n,u,u+g),E=y>=0&&e[y];if(o&&!E||!o&&!(m>=0&&e[m])){Ou(ja(c,s),i,a);const x=function XI(t,n,e,r,o){const i=new Ki(t,e,w);return i.multi=[],i.index=n,i.componentProviders=0,RC(i,o,r&&!e),i}(o?ZI:YI,e.length,o,r,l);!o&&E&&(e[y].providerFactory=x),np(i,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(x),s.push(x)}else np(i,t,m>-1?m:y,RC(e[o?y:m],l,!o&&r));!o&&r&&E&&e[y].componentProviders++}}}function np(t,n,e,r){const o=_o(n),i=function Kx(t){return!!t.useClass}(n);if(o||i){const l=(i?de(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function RC(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function rp(t,n,e,r){for(let o=e;o{e.providersResolver=(r,o)=>function qI(t,n,e){const r=Ee();if(r.firstCreatePass){const o=An(t);tp(e,r.data,r.blueprint,o,!0),tp(n,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,n)}}class Ci{}class FC{}class ip extends Ci{constructor(n,e,r){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new j_(this);const o=mn(n);this._bootstrapComponents=Er(o.bootstrap),this._r3Injector=x_(n,e,[{provide:Ci,useValue:this},{provide:_l,useValue:this.componentFactoryResolver},...r],Mt(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(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class sp extends FC{constructor(n){super(),this.moduleType=n}create(n){return new ip(this.moduleType,n,[])}}class LC extends Ci{constructor(n){super(),this.componentFactoryResolver=new j_(this),this.instance=null;const e=new ud([...n.providers,{provide:Ci,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],n.parent||dl(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ap(t,n,e=null){return new LC({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let JI=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const r=Km(0,e.type),o=r.length>0?ap([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Z({token:t,providedIn:"environment",factory:()=>new t(V(nr))}),t})();function BC(t){t.getStandaloneInjector=n=>n.get(JI).getOrCreateStandaloneInjector(t)}function GC(t,n,e,r,o,i){const s=n+e;return $t(t,s,o)?function or(t,n,e){return t[n]=e}(t,s+1,i?r.call(i,o):r(o)):function ks(t,n){const e=t[n];return e===fe?void 0:e}(t,s+1)}function cp(t,n){const e=Ee();let r;const o=t+Me;e.firstCreatePass?(r=function vT(t,n){if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t===r.name)return r}}(n,e.pipeRegistry),e.data[o]=r,r.onDestroy&&(e.destroyHooks??=[]).push(o,r.onDestroy)):r=e.data[o];const i=r.factory||(r.factory=po(r.type)),s=Jt(w);try{const a=Ua(!1),l=i();return Ua(a),function nO(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}(e,O(),o,l),l}finally{Jt(s)}}function up(t,n,e){const r=t+Me,o=O(),i=jo(o,r);return function As(t,n){return t[H].data[n].pure}(o,r)?GC(o,function zt(){const t=ae.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}(),n,i.transform,e,i):i.transform(e)}function dp(t){return n=>{setTimeout(t,void 0,n)}}const le=class MT extends ot{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,r){let o=n,i=e||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=dp(i),o&&(o=dp(o)),s&&(s=dp(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof U&&n.add(a),a}};function DT(){return this._results[Symbol.iterator]()}class pp{get changes(){return this._changes||(this._changes=new le)}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 e=pp.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=DT)}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,e){return this._results.reduce(n,e)}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,e){const r=this;r.dirty=!1;const o=function Mn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function yE(t,n,e){if(t.length!==n.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=ST,t})();const ET=ar,xT=class extends ET{constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e,null)}createEmbeddedViewImpl(n,e,r){const o=this._declarationTContainer.tView,i=yl(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,e||null,r||null);i[qi]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Yn];return null!==a&&(i[Yn]=a.createEmbeddedView(o)),Rd(o,i,n),new vs(i)}};function ST(){return Fl(Rt(),O())}function Fl(t,n){return 4&t.type?new xT(n,t,oi(t,n)):null}let ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=NT,t})();function NT(){return ty(Rt(),O())}const RT=ln,JC=class extends RT{constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return oi(this._hostTNode,this._hostLView)}get injector(){return new qo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Pu(this._hostTNode,this._hostLView);if(Ug(n)){const e=$a(n,this._hostLView),r=Ha(n);return new qo(e[H].data[r+8],e)}return new qo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=ey(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Nt}createEmbeddedView(n,e,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(e||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,e,r,o,i){const s=n&&!function Ji(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const M=e||{};a=M.index,r=M.injector,o=M.projectableNodes,i=M.environmentInjector||M.ngModuleRef}const l=s?n:new Cs(Ie(n)),c=r||this.parentInjector;if(!i&&null==l.ngModule){const E=(s?c:this.parentInjector).get(nr,null);E&&(i=E)}Ie(l.componentType??{});const m=l.create(c,o,null,i);return this.insertImpl(m.hostView,a,false),m}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,r){const o=n._lView,i=o[H];if(function L1(t){return tn(t[tt])}(o)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=o[tt],u=new JC(c,c[Vt],c[tt]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(e),a=this._lContainer;if(function cx(t,n,e,r){const o=Nt+r,i=e.length;r>0&&(e[o-1][kn]=n),r0)r.push(s[a/2]);else{const c=i[a+1],u=n[-l];for(let d=Nt;d{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r}),this.appInits=z(Ep,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const i=o();if(Ds(i))e.push(i);else if(pv(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});e.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(o=>{this.reject(o)}),0===e.length&&r(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Sy=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Sr=new j("LocaleId",{providedIn:"root",factory:()=>z(Sr,ie.Optional|ie.SkipSelf)||function dk(){return typeof $localize<"u"&&$localize.locale||vi}()});class hk{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Py=(()=>{class t{compileModuleSync(e){return new sp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),i=Er(mn(e).declarations).reduce((s,a)=>{const l=Ie(a);return l&&s.push(new Cs(l)),s},[]);return new hk(r,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mk=(()=>Promise.resolve(0))();function Sp(t){typeof Zone>"u"?mk.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Ty(...t){}class Ke{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new le(!1),this.onMicrotaskEmpty=new le(!1),this.onStable=new le(!1),this.onError=new le(!1),typeof Zone>"u")throw new T(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&e,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function _k(){let t=Ge.requestAnimationFrame,n=Ge.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function yk(t){const n=()=>{!function Ck(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ge,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Op(t),t.isCheckStableRunning=!0,Pp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Op(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,o,i,s,a)=>{try{return ky(t),e.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&n(),Ay(t)}},onInvoke:(e,r,o,i,s,a,l)=>{try{return ky(t),e.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Ay(t)}},onHasTask:(e,r,o,i)=>{e.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Op(t),Pp(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,r,o,i)=>(e.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ke.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(Ke.isInAngularZone())throw new T(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,vk,Ty,Ty);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}}const vk={};function Pp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Op(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function ky(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ay(t){t._nesting--,Pp(t)}class wk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new le,this.onMicrotaskEmpty=new le,this.onStable=new le,this.onError=new le}run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,o){return n.apply(e,r)}}const Ny=new j("",{providedIn:"root",factory:Ry});function Ry(){const t=z(Ke);let n=!0;return Lf(new xe(o=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(n),o.complete()})}),new xe(o=>{let i;t.runOutsideAngular(()=>{i=t.onStable.subscribe(()=>{Ke.assertNotInAngularZone(),Sp(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Ke.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Bf()))}const Fy=new j(""),Vl=new j("");let kp,Ip=(()=>{class t{constructor(e,r,o){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kp||(function bk(t){kp=t}(o),o.addToWindow(r)),this._watchAngularEvents(),e.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:()=>{Ke.assertNotInAngularZone(),Sp(()=>{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())Sp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,r,o){if(o&&!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(e,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(V(Ke),V(Tp),V(Vl))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Tp=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return kp?.findTestabilityInTree(this,e,r)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Gr=null;const Ly=new j("AllowMultipleToken"),Ap=new j("PlatformDestroyListeners"),Np=new j("appBootstrapListener");class Vy{constructor(n,e){this.name=n,this.token=e}}function $y(t,n,e=[]){const r=`Platform: ${n}`,o=new j(r);return(i=[])=>{let s=Rp();if(!s||s.injector.get(Ly,!1)){const a=[...e,...i,{provide:o,useValue:!0}];t?t(a):function Ek(t){if(Gr&&!Gr.get(Ly,!1))throw new T(400,!1);(function By(){!function x1(t){fg=t}(()=>{throw new T(600,!1)})})(),Gr=t;const n=t.get(jy);(function Hy(t){t.get(n_,null)?.forEach(e=>e())})(t)}(function Uy(t=[],n){return Nn.create({name:n,providers:[{provide:ld,useValue:"platform"},{provide:Ap,useValue:new Set([()=>Gr=null])},...t]})}(a,r))}return function Sk(t){const n=Rp();if(!n)throw new T(401,!1);return n}()}}function Rp(){return Gr?.get(jy)??null}let jy=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const o=function Pk(t="zone.js",n){return"noop"===t?new wk:"zone.js"===t?new Ke(n):t}(r?.ngZone,function zy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function QI(t,n,e){return new ip(t,n,e)}(e.moduleType,this.injector,function Zy(t){return[{provide:Ke,useFactory:t},{provide:us,multi:!0,useFactory:()=>{const n=z(Ik,{optional:!0});return()=>n.initialize()}},{provide:Yy,useFactory:Ok},{provide:Ny,useFactory:Ry}]}(()=>o)),s=i.injector.get(vo,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Hl(this._modules,i),a.unsubscribe()})}),function Gy(t,n,e){try{const r=e();return Ds(r)?r.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(xp);return a.runInitializers(),a.donePromise.then(()=>(function dC(t){bn(t,"Expected localeId to be defined"),"string"==typeof t&&(uC=t.toLowerCase().replace(/_/g,"-"))}(i.injector.get(Sr,vi)||vi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,r=[]){const o=Wy({},r);return function Mk(t,n,e){const r=new sp(e);return Promise.resolve(r)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(e){const r=e.injector.get(bi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new T(-403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new T(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(Ap,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(V(Nn))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Wy(t,n){return Array.isArray(n)?n.reduce(Wy,t):{...t,...n}}let bi=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=z(Yy),this.componentTypes=[],this.components=[],this.isStable=z(Ny),this._injector=z(nr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,r){const o=e instanceof c_;if(!this._injector.get(xp).done)throw!o&&function Lo(t){const n=Ie(t)||Bt(t)||en(t);return null!==n&&n.standalone}(e),new T(405,!1);let s;s=o?e:this._injector.get(_l).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Dk(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Ci),c=s.create(Nn.NULL,[],r||s.selector,a),u=c.location.nativeElement,d=c.injector.get(Fy,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Hl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new T(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Hl(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const r=this._injector.get(Np,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Hl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new T(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Hl(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Yy=new j("",{providedIn:"root",factory:()=>z(vo).handleError.bind(void 0)});function Ok(){const t=z(Ke),n=z(vo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Ik=(()=>{class t{constructor(){this.zone=z(Ke),this.applicationRef=z(bi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let $l=(()=>{class t{}return t.__NG_ELEMENT_ID__=kk,t})();function kk(t){return function Ak(t,n,e){if(uo(t)&&!e){const r=on(t.index,n);return new vs(r,r)}return 47&t.type?new vs(n[mt],n):null}(Rt(),O(),16==(16&t))}class Jy{constructor(){}supports(n){return El(n)}create(n){return new Vk(n)}}const Bk=(t,n)=>n;class Vk{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||Bk}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,o=0,i=null;for(;e||r;){const s=!r||e&&e.currentIndex{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),r=!0),e=e._next,o++}),this.length=o;return this._truncate(e),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,e,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new Hk(e,r),i,o),n}_verifyReinsertion(n,e,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}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,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new e0),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,r=n._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new e0),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,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Hk{constructor(n,e){this.item=n,this.trackById=e,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 $k{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,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const e=n._prevDup,r=n._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class e0{constructor(){this.map=new Map}put(n){const e=n.trackById;let r=this.map.get(e);r||(r=new $k,this.map.set(e,r)),r.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function t0(t,n,e){const r=t.previousIndex;if(null===r)return r;let o=0;return e&&r{class t{constructor(e){this.factories=e}static create(e,r){if(null!=r){const o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||r0()),deps:[[t,new Za,new Ya]]}}find(e){const r=this.factories.find(o=>o.supports(e));if(null!=r)return r;throw new T(901,!1)}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:r0}),t})();const Wk=$y(null,"core",[]);let qk=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(V(bi))},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})(),d0=(()=>{class t{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=z(Ke),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(e=>{this.resolve=e})})}add(){if(this.completed)return-1;const e=this.taskId++;return this.collection.add(e),e}remove(e){this.completed||(this.collection.delete(e),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Up=null;function Wr(){return Up}class iA{}const Zt=new j("DocumentToken");let jp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(aA)},providedIn:"platform"}),t})();const sA=new j("Location Initialized");let aA=(()=>{class t extends jp{constructor(){super(),this._doc=z(Zt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wr().getBaseHref(this._doc)}onPopState(e){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,o){this._history.pushState(e,r,o)}replaceState(e,r,o){this._history.replaceState(e,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new t},providedIn:"platform"}),t})();function zp(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function h0(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Pr(t){return t&&"?"!==t[0]?"?"+t:t}let qr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(g0)},providedIn:"root"}),t})();const f0=new j("appBaseHref");let g0=(()=>{class t extends qr{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??z(Zt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return zp(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+Pr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,i){const s=this.prepareExternalUrl(o+Pr(i));this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){const s=this.prepareExternalUrl(o+Pr(i));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V(jp),V(f0,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m0=(()=>{class t extends qr{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=zp(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+Pr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+Pr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V(jp),V(f0,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Yr=(()=>{class t{constructor(e){this._subject=new le,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function uA(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(h0(_0(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+Pr(r))}normalize(e){return t.stripTrailingSlash(function cA(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,_0(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Pr(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Pr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return t.normalizeQueryParams=Pr,t.joinWithSlash=zp,t.stripTrailingSlash=h0,t.\u0275fac=function(e){return new(e||t)(V(qr))},t.\u0275prov=Z({token:t,factory:function(){return function lA(){return new Yr(V(qr))}()},providedIn:"root"}),t})();function _0(t){return t.replace(/\/index.html$/,"")}function x0(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[o,i]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}class ZA{constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=o}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 Pn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new ZA(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),O0(a,o)}});for(let o=0,i=r.length;o{O0(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(ln),w(ar),w(zl))},t.\u0275dir=ue({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function O0(t,n){t.context.$implicit=n.item}let Pe=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new XA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){I0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){I0("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(ln),w(ar))},t.\u0275dir=ue({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class XA{constructor(){this.$implicit=null,this.ngIf=null}}function I0(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Mt(n)}'.`)}let k0=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:i,ngTemplateOutletInjector:s}=this;this._viewRef=r.createEmbeddedView(o,i,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(w(ln))},t.\u0275dir=ue({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[nn]}),t})();class tN{createSubscription(n,e){return n.subscribe({next:e,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class nN{createSubscription(n,e){return n.then(e,r=>{throw r})}dispose(n){}}const rN=new nN,oN=new tN;let A0=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(Ds(e))return rN;if(pv(e))return oN;throw function Hn(t,n){return new T(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(w($l,16))},t.\u0275pipe=Lt({name:"async",type:t,pure:!1,standalone:!0}),t})(),tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})();const R0="browser";function Di(t){return t===R0}function F0(t){return"server"===t}let EN=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new xN(V(Zt),window)}),t})();class xN{constructor(n,e){this.document=n,this.window=e,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 e=function SN(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=L0(this.window.history)||L0(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function L0(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class B0{}class eR extends iA{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ah extends eR{static makeCurrent(){!function oA(t){Up||(Up=t)}(new ah)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||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,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function tR(){return $s=$s||document.querySelector("base"),$s?$s.getAttribute("href"):null}();return null==e?null:function nR(t){ic=ic||document.createElement("a"),ic.setAttribute("href",t);const n=ic.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){$s=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return x0(document.cookie,n)}}let ic,$s=null,oR=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const lh=new j("EventManagerPlugins");let j0=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new T(5101,!1);return this._eventNameToPlugin.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(V(lh),V(Ke))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class z0{constructor(n){this._doc=n}}const ch="ng-app-id";let G0=(()=>{class t{constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=F0(i),this.resetHostNodes()}addStyles(e){for(const r of e)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(e){for(const r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){const r=this.styleRef;r.get(e)?.elements?.forEach(o=>o.remove()),r.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${ch}="${this.appId}"]`);if(e?.length){const r=new Map;return e.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(e,r){const o=this.styleRef;if(o.has(e)){const i=o.get(e);return i.usage+=r,i.usage}return o.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===e)return o.delete(r),i.removeAttribute(ch),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(ch,this.appId),s}}addStyleToHost(e,r){const o=this.getStyleElement(e,r);e.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(V(Zt),V(pl),V(r_,8),V(jr))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const uh={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/"},dh=/%COMP%/g,lR=new j("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function q0(t,n){return n.map(e=>e.replace(dh,t))}let Y0=(()=>{class t{constructor(e,r,o,i,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=F0(a),this.defaultRenderer=new ph(e,s,l,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===fn.ShadowDom&&(r={...r,encapsulation:fn.Emulated});const o=this.getOrCreateRenderer(e,r);return o instanceof X0?o.applyToHost(e):o instanceof hh&&o.applyStyles(),o}getOrCreateRenderer(e,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case fn.Emulated:i=new X0(l,c,r,this.appId,u,s,a,d);break;case fn.ShadowDom:return new pR(l,c,e,r,s,a,this.nonce,d);default:i=new hh(l,c,r,u,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return t.\u0275fac=function(e){return new(e||t)(V(j0),V(G0),V(pl),V(lR),V(Zt),V(jr),V(Ke),V(r_))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class ph{constructor(n,e,r,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(uh[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Z0(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Z0(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new T(5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;const i=uh[o];i?n.setAttributeNS(i,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const o=uh[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(sn.DashCase|sn.Important)?n.style.setProperty(e,r,o&sn.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&sn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){if("string"==typeof n&&!(n=Wr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function Z0(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class pR extends ph{constructor(n,e,r,o,i,s,a,l){super(n,i,s,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=q0(o.id,o.styles);for(const u of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class hh extends ph{constructor(n,e,r,o,i,s,a,l){super(n,i,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?q0(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class X0 extends hh{constructor(n,e,r,o,i,s,a,l){const c=o+"-"+r.id;super(n,e,r,i,s,a,l,c),this.contentAttr=function cR(t){return"_ngcontent-%COMP%".replace(dh,t)}(c),this.hostAttr=function uR(t){return"_nghost-%COMP%".replace(dh,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}let hR=(()=>{class t extends z0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const K0=["alt","control","meta","shift"],fR={"\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"},gR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let mR=(()=>{class t extends z0{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wr().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),K0.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,r){let o=fR[e.key]||e.key,i="";return r.indexOf("code.")>-1&&(o=e.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),K0.forEach(s=>{s!==o&&(0,gR[s])(e)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{t.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const yR=$y(Wk,"browser",[{provide:jr,useValue:R0},{provide:n_,useValue:function _R(){ah.makeCurrent()},multi:!0},{provide:Zt,useFactory:function CR(){return function bx(t){Ju=t}(document),document},deps:[]}]),wR=new j(""),ew=[{provide:Vl,useClass:class rR{addToWindow(n){Ge.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new T(5103,!1);return i},Ge.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ge.getAllAngularRootElements=()=>n.getAllRootElements(),Ge.frameworkStabilizers||(Ge.frameworkStabilizers=[]),Ge.frameworkStabilizers.push(r=>{const o=Ge.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?Wr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Fy,useClass:Ip,deps:[Ke,Tp,Vl]},{provide:Ip,useClass:Ip,deps:[Ke,Tp,Vl]}],tw=[{provide:ld,useValue:"root"},{provide:vo,useFactory:function vR(){return new vo},deps:[]},{provide:lh,useClass:hR,multi:!0,deps:[Zt,Ke,jr]},{provide:lh,useClass:mR,multi:!0,deps:[Zt]},Y0,G0,j0,{provide:d_,useExisting:Y0},{provide:B0,useClass:oR,deps:[]},[]];let bR=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:pl,useValue:e.appId}]}}}return t.\u0275fac=function(e){return new(e||t)(V(wR,12))},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({providers:[...tw,...ew],imports:[tc,qk]}),t})(),nw=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function DR(){return new nw(V(Zt))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new(e||t):V(iw),r},providedIn:"root"}),t})(),iw=(()=>{class t extends gh{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case Ue.NONE:return r;case Ue.HTML:return er(r,"HTML")?Cn(r):Gm(this._doc,String(r)).toString();case Ue.STYLE:return er(r,"Style")?Cn(r):r;case Ue.SCRIPT:if(er(r,"Script"))return Cn(r);throw new T(5200,!1);case Ue.URL:return er(r,"URL")?Cn(r):ll(String(r));case Ue.RESOURCE_URL:if(er(r,"ResourceURL"))return Cn(r);throw new T(5201,!1);default:throw new T(5202,!1)}}bypassSecurityTrustHtml(e){return function Ox(t){return new Mx(t)}(e)}bypassSecurityTrustStyle(e){return function Ix(t){return new Dx(t)}(e)}bypassSecurityTrustScript(e){return function Tx(t){return new Ex(t)}(e)}bypassSecurityTrustUrl(e){return function kx(t){return new xx(t)}(e)}bypassSecurityTrustResourceUrl(e){return function Ax(t){return new Sx(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function PR(t){return new iw(t.get(Zt))}(V(Nn)),r},providedIn:"root"}),t})();function ce(...t){return bt(t,$i(t))}class $n extends ot{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const{isArray:IR}=Array,{getPrototypeOf:TR,prototype:kR,keys:AR}=Object;function aw(t){if(1===t.length){const n=t[0];if(IR(n))return{args:n,keys:null};if(function NR(t){return t&&"object"==typeof t&&TR(t)===kR}(n)){const e=AR(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}const{isArray:RR}=Array;function lw(t){return ye(n=>function FR(t,n){return RR(n)?t(...n):t(n)}(t,n))}function cw(t,n){return t.reduce((e,r,o)=>(e[r]=n[o],e),{})}function mh(...t){const n=$i(t),e=Af(t),{args:r,keys:o}=aw(t);if(0===r.length)return bt([],n);const i=new xe(function LR(t,n,e=Gn){return r=>{uw(n,()=>{const{length:o}=t,i=new Array(o);let s=o,a=o;for(let l=0;l{const c=bt(t[l],n);let u=!1;c.subscribe(Je(r,d=>{i[l]=d,u||(u=!0,a--),a||r.next(e(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>cw(o,s):Gn));return e?i.pipe(lw(e)):i}function uw(t,n,e){t?mr(e,t,n):n()}const sc=Ye(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function _h(...t){return function BR(){return Ro(1)}()(bt(t,$i(t)))}function dw(t){return new xe(n=>{pn(t()).subscribe(n)})}function Us(t,n){const e=G(t)?t:()=>t,r=o=>o.error(e());return new xe(n?o=>n.schedule(r,0,o):r)}function vh(){return Qe((t,n)=>{let e=null;t._refCount++;const r=Je(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,i=e;e=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}class pw extends xe{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,so(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 U;const e=this.getSubject();n.add(this.source.subscribe(Je(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=U.EMPTY)}return n}refCount(){return vh()(this)}}function Un(t,n){return Qe((e,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();e.subscribe(Je(r,l=>{o?.unsubscribe();let c=0;const u=i++;pn(t(l,u)).subscribe(o=Je(r,d=>r.next(n?n(l,d,u,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Ei(t){return t<=0?()=>Wn:Qe((n,e)=>{let r=0;n.subscribe(Je(e,o=>{++r<=t&&(e.next(o),t<=r&&e.complete())}))})}function hw(...t){const n=$i(t);return Qe((e,r)=>{(n?_h(t,e,n):_h(t,e)).subscribe(r)})}function Ir(t,n){return Qe((e,r)=>{let o=0;e.subscribe(Je(r,i=>t.call(n,i,o++)&&r.next(i)))})}function ac(t){return Qe((n,e)=>{let r=!1;n.subscribe(Je(e,o=>{r=!0,e.next(o)},()=>{r||e.next(t),e.complete()}))})}function fw(t=VR){return Qe((n,e)=>{let r=!1;n.subscribe(Je(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(t())))})}function VR(){return new sc}function Xr(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Ir((o,i)=>t(o,i,r)):Gn,Ei(1),e?ac(n):fw(()=>new sc))}function xi(t,n){return G(n)?At(t,n,1):At(t,1)}function Xt(t,n,e){const r=G(t)||n||e?{next:t,error:n,complete:e}:t;return r?Qe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Je(i,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),i.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Gn}function qe(t){return Qe((n,e)=>{let i,r=null,o=!1;r=n.subscribe(Je(e,void 0,void 0,s=>{i=pn(t(s,qe(t)(n))),r?(r.unsubscribe(),r=null,i.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(e))})}function Ch(t){return t<=0?()=>Wn:Qe((n,e)=>{let r=[];n.subscribe(Je(e,o=>{r.push(o),t{for(const o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function gw(t){return ye(()=>t)}function yh(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const me="primary",js=Symbol("RouteTitle");class jR{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Si(t){return new jR(t)}function zR(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return t===n}function _w(t){return t.length>0?t[t.length-1]:null}function Kr(t){return function OR(t){return!!t&&(t instanceof xe||G(t.lift)&&G(t.subscribe))}(t)?t:Ds(t)?bt(Promise.resolve(t)):ce(t)}const WR={exact:function yw(t,n,e){if(!Mo(t.segments,n.segments)||!lc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!yw(t.children[r],n.children[r],e))return!1;return!0},subset:ww},vw={exact:function qR(t,n){return lr(t,n)},subset:function YR(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>mw(t[e],n[e]))},ignored:()=>!0};function Cw(t,n,e){return WR[e.paths](t.root,n.root,e.matrixParams)&&vw[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function ww(t,n,e){return bw(t,n,n.segments,e)}function bw(t,n,e,r){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Mo(o,e)||n.hasChildren()||!lc(o,e,r))}if(t.segments.length===e.length){if(!Mo(t.segments,e)||!lc(t.segments,e,r))return!1;for(const o in n.children)if(!t.children[o]||!ww(t.children[o],n.children[o],r))return!1;return!0}{const o=e.slice(0,t.segments.length),i=e.slice(t.segments.length);return!!(Mo(t.segments,o)&&lc(t.segments,o,r)&&t.children[me])&&bw(t.children[me],n,i,r)}}function lc(t,n,e){return n.every((r,o)=>vw[e](t[o].parameters,r.parameters))}class Pi{constructor(n=new Be([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Si(this.queryParams)),this._queryParamMap}toString(){return KR.serialize(this)}}class Be{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cc(this)}}class zs{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Si(this.parameters)),this._parameterMap}toString(){return Ew(this)}}function Mo(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let Gs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new wh},providedIn:"root"}),t})();class wh{parse(n){const e=new lF(n);return new Pi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Ws(n.root,!0)}`,r=function eF(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(o=>`${uc(e)}=${uc(o)}`).join("&"):`${uc(e)}=${uc(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function QR(t){return encodeURI(t)}(n.fragment)}`:""}`}}const KR=new wh;function cc(t){return t.segments.map(n=>Ew(n)).join("/")}function Ws(t,n){if(!t.hasChildren())return cc(t);if(n){const e=t.children[me]?Ws(t.children[me],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==me&&r.push(`${o}:${Ws(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function XR(t,n){let e=[];return Object.entries(t.children).forEach(([r,o])=>{r===me&&(e=e.concat(n(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==me&&(e=e.concat(n(o,r)))}),e}(t,(r,o)=>o===me?[Ws(t.children[me],!1)]:[`${o}:${Ws(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[me]?`${cc(t)}/${e[0]}`:`${cc(t)}/(${e.join("//")})`}}function Mw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uc(t){return Mw(t).replace(/%3B/gi,";")}function bh(t){return Mw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dc(t){return decodeURIComponent(t)}function Dw(t){return dc(t.replace(/\+/g,"%20"))}function Ew(t){return`${bh(t.path)}${function JR(t){return Object.keys(t).map(n=>`;${bh(n)}=${bh(t[n])}`).join("")}(t.parameters)}`}const tF=/^[^\/()?;#]+/;function Mh(t){const n=t.match(tF);return n?n[0]:""}const nF=/^[^\/()?;=#]+/,oF=/^[^=?&#]+/,sF=/^[^&#]+/;class lF{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Be([],{}):new Be([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[me]=new Be(n,e)),r}parseSegment(){const n=Mh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new T(4009,!1);return this.capture(n),new zs(dc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function rF(t){const n=t.match(nF);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=Mh(this.remaining);o&&(r=o,this.capture(r))}n[dc(e)]=dc(r)}parseQueryParam(n){const e=function iF(t){const n=t.match(oF);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function aF(t){const n=t.match(sF);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Dw(e),i=Dw(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Mh(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new T(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=me);const s=this.parseChildren();e[i]=1===Object.keys(s).length?s[me]:new Be([],s),this.consumeOptional("//")}return e}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 T(4011,!1)}}function xw(t){return t.segments.length>0?new Be([],{[me]:t}):t}function Sw(t){const n={};for(const r of Object.keys(t.children)){const i=Sw(t.children[r]);if(r===me&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function cF(t){if(1===t.numberOfChildren&&t.children[me]){const n=t.children[me];return new Be(t.segments.concat(n.segments),n.children)}return t}(new Be(t.segments,n))}function Do(t){return t instanceof Pi}function Pw(t){let n;const o=xw(function e(i){const s={};for(const l of i.children){const c=e(l);s[l.outlet]=c}const a=new Be(i.url,s);return i===t&&(n=a),a}(t.root));return n??o}function Ow(t,n,e,r){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return Dh(o,o,o,e,r);const i=function dF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Tw(!0,0,t);let n=0,e=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new Tw(e,n,r)}(n);if(i.toRoot())return Dh(o,o,new Be([],{}),e,r);const s=function pF(t,n,e){if(t.isAbsolute)return new hc(n,!0,0);if(!e)return new hc(n,!1,NaN);if(null===e.parent)return new hc(e,!0,0);const r=pc(t.commands[0])?0:1;return function hF(t,n,e){let r=t,o=n,i=e;for(;i>o;){if(i-=o,r=r.parent,!r)throw new T(4005,!1);o=r.segments.length}return new hc(r,!1,o-i)}(e,e.segments.length-1+r,t.numberOfDoubleDots)}(i,o,t),a=s.processChildren?Ys(s.segmentGroup,s.index,i.commands):kw(s.segmentGroup,s.index,i.commands);return Dh(o,s.segmentGroup,a,e,r)}function pc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qs(t){return"object"==typeof t&&null!=t&&t.outlets}function Dh(t,n,e,r,o){let s,i={};r&&Object.entries(r).forEach(([l,c])=>{i[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=t===n?e:Iw(t,n,e);const a=xw(Sw(s));return new Pi(a,i,o)}function Iw(t,n,e){const r={};return Object.entries(t.children).forEach(([o,i])=>{r[o]=i===n?e:Iw(i,n,e)}),new Be(t.segments,r)}class Tw{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&pc(r[0]))throw new T(4003,!1);const o=r.find(qs);if(o&&o!==_w(r))throw new T(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hc{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function kw(t,n,e){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ys(t,n,e);const r=function gF(t,n,e){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return i;const s=t.segments[o],a=e[r];if(qs(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Nw(l,c,s))return i;r+=2}else{if(!Nw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=kw(t.children[i],n,s))}),Object.entries(t.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Be(t.segments,o)}}function Eh(t,n,e){const r=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[e]=Eh(new Be([],{}),0,r))}),n}function Aw(t){const n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Nw(t,n,e){return t==e.path&&lr(n,e.parameters)}const Zs="imperative";class cr{constructor(n,e){this.id=n,this.url=e}}class xh extends cr{constructor(n,e,r="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Eo extends cr{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class fc extends cr{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xs extends cr{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=16}}class Sh extends cr{constructor(n,e,r,o){super(n,e),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _F extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vF extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CF extends cr{constructor(n,e,r,o,i){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yF extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wF extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bF{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class MF{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class DF{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EF{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xF{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SF{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Rw{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class PF{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ks,this.attachRef=null}}let Ks=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new PF,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Fw{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Ph(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=Ph(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Oh(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Oh(n,this._root).map(e=>e.value)}}function Ph(t,n){if(t===n.value)return n;for(const e of n.children){const r=Ph(t,e);if(r)return r}return null}function Oh(t,n){if(t===n.value)return[n];for(const e of n.children){const r=Oh(t,e);if(r.length)return r.unshift(n),r}return[]}class Tr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Oi(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Lw extends Fw{constructor(n,e){super(n),this.snapshot=e,Ih(this,n)}toString(){return this.snapshot.toString()}}function Bw(t,n){const e=function OF(t,n){const s=new gc([],{},{},"",{},me,n,null,{});return new Hw("",new Tr(s,[]))}(0,n),r=new $n([new zs("",{})]),o=new $n({}),i=new $n({}),s=new $n({}),a=new $n(""),l=new ur(r,o,s,a,i,me,n,e.root);return l.snapshot=e.root,new Lw(new Tr(l,[]),e)}class ur{constructor(n,e,r,o,i,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ye(c=>c[js]))??ce(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i}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(ye(n=>Si(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(n=>Si(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vw(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const o=e[r],i=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function IF(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class gc{get title(){return this.data?.[js]}constructor(n,e,r,o,i,s,a,l,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i,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=Si(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Si(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Hw extends Fw{constructor(n,e){super(e),this.url=n,Ih(this,e)}toString(){return $w(this._root)}}function Ih(t,n){n.value._routerState=t,n.children.forEach(e=>Ih(t,e))}function $w(t){const n=t.children.length>0?` { ${t.children.map($w).join(", ")} } `:"";return`${t.value}${n}`}function Th(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,lr(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),lr(n.params,e.params)||t.paramsSubject.next(e.params),function GR(t,n){if(t.length!==n.length)return!1;for(let e=0;elr(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||kh(t.parent,n.parent))}let Ah=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=me,this.activateEvents=new le,this.deactivateEvents=new le,this.attachEvents=new le,this.detachEvents=new le,this.parentContexts=z(Ks),this.location=z(ln),this.changeDetector=z($l),this.environmentInjector=z(nr),this.inputBinder=z(mc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:o}=e.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new T(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new T(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new T(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new T(4013,!1);this._activatedRoute=e;const o=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new TF(e,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nn]}),t})();class TF{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===ur?this.route:n===Ks?this.childContexts:this.parent.get(n,e)}}const mc=new j("");let Uw=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:r}=e,o=mh([r.queryParams,r.params,r.data]).pipe(Un(([i,s,a],l)=>(a={...i,...s,...a},0===l?ce(a):Promise.resolve(a)))).subscribe(i=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(e);const s=function rA(t){const n=Ie(t);if(!n)return null;const e=new Cs(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Qs(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const o=function AF(t,n,e){return n.children.map(r=>{for(const o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Qs(t,r,o);return Qs(t,r)})}(t,n,e);return new Tr(r,o)}{if(t.shouldAttach(n.value)){const i=t.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Qs(t,a)),s}}const r=function NF(t){return new ur(new $n(t.url),new $n(t.params),new $n(t.queryParams),new $n(t.fragment),new $n(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(i=>Qs(t,i));return new Tr(r,o)}}const Nh="ngNavigationCancelingError";function jw(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Do(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=zw(!1,0,n);return o.url=e,o.navigationBehaviorOptions=r,o}function zw(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[Nh]=!0,r.cancellationCode=n,e&&(r.url=e),r}function Gw(t){return Ww(t)&&Do(t.url)}function Ww(t){return t&&t[Nh]}let qw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["ng-component"]],standalone:!0,features:[BC],decls:1,vars:0,template:function(e,r){1&e&&K(0,"router-outlet")},dependencies:[Ah],encapsulation:2}),t})();function Rh(t){const n=t.children&&t.children.map(Rh),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==me&&(e.component=qw),e}function jn(t){return t.outlet||me}function Js(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class $F{constructor(n,e,r,o,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Th(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const o=Oi(e);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,e,r){const o=n.value,i=e?e.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Oi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Oi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){const o=Oi(e);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new SF(i.value.snapshot))}),n.children.length&&this.forwardEvent(new EF(n.value.snapshot))}activateRoutes(n,e,r){const o=n.value,i=e?e.value:null;if(Th(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),Th(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Js(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class Yw{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class _c{constructor(n,e){this.component=n,this.route=e}}function UF(t,n,e){const r=t._root;return ea(r,n?n._root:null,e,[r.value])}function Ii(t,n){const e=Symbol(),r=n.get(t,e);return r===e?"function"!=typeof t||function zD(t){return null!==wa(t)}(t)?n.get(t):t:r}function ea(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Oi(n);return t.children.forEach(s=>{(function zF(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function GF(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Mo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Mo(t.url,n.url)||!lr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kh(t,n)||!lr(t.queryParams,n.queryParams);default:return!kh(t,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Yw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ea(t,n,i.component?a?a.children:null:e,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new _c(a.outlet.component,s))}else s&&ta(n,a,o),o.canActivateChecks.push(new Yw(r)),ea(t,null,i.component?a?a.children:null:e,r,o)})(s,i[s.value.outlet],e,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ta(a,e.getContext(s),o)),o}function ta(t,n,e){const r=Oi(t),o=t.value;Object.entries(r).forEach(([i,s])=>{ta(s,o.component?n?n.children.getContext(i):null:n,e)}),e.canDeactivateChecks.push(new _c(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function na(t){return"function"==typeof t}function Zw(t){return t instanceof sc||"EmptyError"===t?.name}const vc=Symbol("INITIAL_VALUE");function Ti(){return Un(t=>mh(t.map(n=>n.pipe(Ei(1),hw(vc)))).pipe(ye(n=>{for(const e of n)if(!0!==e){if(e===vc)return vc;if(!1===e||e instanceof Pi)return e}return!0}),Ir(n=>n!==vc),Ei(1)))}function Xw(t){return function _a(...t){return wt(t)}(Xt(n=>{if(Do(n))throw jw(0,n)}),ye(n=>!0===n))}class Cc{constructor(n){this.segmentGroup=n||null}}class Kw{constructor(n){this.urlTree=n}}function ki(t){return Us(new Cc(t))}function Qw(t){return Us(new Kw(t))}class d2{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new T(4002,!1)}lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ce(r);if(o.numberOfChildren>1||!o.children[me])return Us(new T(4e3,!1));o=o.children[me]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,o){const i=this.createSegmentGroup(n,e.root,r,o);return new Pi(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,o){const i=this.createSegments(n,e.segments,r,o);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,o)}),new Be(i,s)}createSegments(n,e,r,o){return e.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,e,r){const o=r[e.path.substring(1)];if(!o)throw new T(4001,!1);return o}findOrReturn(n,e){let r=0;for(const o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}}const Fh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p2(t,n,e,r,o){const i=Lh(t,n,e);return i.matched?(r=function RF(t,n){return t.providers&&!t._injector&&(t._injector=ap(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,r),function l2(t,n,e,r){const o=n.canMatch;return o&&0!==o.length?ce(o.map(s=>{const a=Ii(s,t);return Kr(function KF(t){return t&&na(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ti(),Xw()):ce(!0)}(r,n,e).pipe(ye(s=>!0===s?i:{...Fh}))):ce(i)}function Lh(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...Fh}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||zR)(e,t,n);if(!o)return{...Fh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Jw(t,n,e,r){return e.length>0&&function g2(t,n,e){return e.some(r=>yc(t,n,r)&&jn(r)!==me)}(t,e,r)?{segmentGroup:new Be(n,f2(r,new Be(e,t.children))),slicedSegments:[]}:0===e.length&&function m2(t,n,e){return e.some(r=>yc(t,n,r))}(t,e,r)?{segmentGroup:new Be(t.segments,h2(t,0,e,r,t.children)),slicedSegments:e}:{segmentGroup:new Be(t.segments,t.children),slicedSegments:e}}function h2(t,n,e,r,o){const i={};for(const s of r)if(yc(t,e,s)&&!o[jn(s)]){const a=new Be([],{});i[jn(s)]=a}return{...o,...i}}function f2(t,n){const e={};e[me]=n;for(const r of t)if(""===r.path&&jn(r)!==me){const o=new Be([],{});e[jn(r)]=o}return e}function yc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class y2{constructor(n,e,r,o,i,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new d2(this.urlSerializer,this.urlTree)}noMatchError(n){return new T(4002,!1)}recognize(){const n=Jw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,me).pipe(qe(e=>{if(e instanceof Kw)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof Cc?this.noMatchError(e):e}),ye(e=>{const r=new gc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},me,this.rootComponentType,null,{}),o=new Tr(r,e),i=new Hw("",o),s=function uF(t,n,e=null,r=null){return Ow(Pw(t),n,e,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,me).pipe(qe(r=>{throw r instanceof Cc?this.noMatchError(r):r}))}inheritParamsAndData(n){const e=n.value,r=Vw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,o,!0)}processChildren(n,e,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return bt(o).pipe(xi(i=>{const s=r.children[i],a=function VF(t,n){const e=t.filter(r=>jn(r)===n);return e.push(...t.filter(r=>jn(r)!==n)),e}(e,i);return this.processSegmentGroup(n,a,s,i)}),function $R(t,n){return Qe(function HR(t,n,e,r,o){return(i,s)=>{let a=e,l=n,c=0;i.subscribe(Je(s,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(t,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),ac(null),function UR(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Ir((o,i)=>t(o,i,r)):Gn,Ch(1),e?ac(n):fw(()=>new sc))}(),At(i=>{if(null===i)return ki(r);const s=eb(i);return function w2(t){t.sort((n,e)=>n.value.outlet===me?-1:e.value.outlet===me?1:n.value.outlet.localeCompare(e.value.outlet))}(s),ce(s)}))}processSegment(n,e,r,o,i,s){return bt(e).pipe(xi(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,o,i,s).pipe(qe(l=>{if(l instanceof Cc)return ce(null);throw l}))),Xr(a=>!!a),qe(a=>{if(Zw(a))return function v2(t,n,e){return 0===n.length&&!t.children[e]}(r,o,i)?ce([]):ki(r);throw a}))}processSegmentAgainstRoute(n,e,r,o,i,s,a){return function _2(t,n,e,r){return!!(jn(t)===r||r!==me&&yc(n,e,t))&&("**"===t.path||Lh(n,t,e).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,r,i,s):ki(o):ki(o)}expandSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Qw(i):this.applyRedirects.lineralizeSegments(r,i).pipe(At(s=>{const a=new Be(s,{});return this.processSegment(n,e,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Lh(e,o,i);if(!a)return ki(e);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?Qw(d):this.applyRedirects.lineralizeSegments(o,d).pipe(At(g=>this.processSegment(n,r,e,g.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?_w(o).parameters:{};a=ce({snapshot:new gc(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tb(r),jn(r),r.component??r._loadedComponent??null,r,nb(r)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=p2(e,r,o,n).pipe(ye(({matched:l,consumedSegments:c,remainingSegments:u,parameters:d})=>l?{snapshot:new gc(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,tb(r),jn(r),r.component??r._loadedComponent??null,r,nb(r)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Un(l=>null===l?ki(e):this.getChildConfig(n=r._injector??n,r,o).pipe(Un(({routes:c})=>{const u=r._loadedInjector??n,{snapshot:d,consumedSegments:g,remainingSegments:m}=l,{segmentGroup:y,slicedSegments:M}=Jw(e,g,m,c);if(0===M.length&&y.hasChildren())return this.processChildren(u,c,y).pipe(ye(x=>null===x?null:[new Tr(d,x)]));if(0===c.length&&0===M.length)return ce([new Tr(d,[])]);const E=jn(r)===i;return this.processSegment(u,c,y,M,E?me:i,!0).pipe(ye(x=>[new Tr(d,x)]))}))))}getChildConfig(n,e,r){return e.children?ce({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?ce({routes:e._loadedRoutes,injector:e._loadedInjector}):function a2(t,n,e,r){const o=n.canLoad;return void 0===o||0===o.length?ce(!0):ce(o.map(s=>{const a=Ii(s,t);return Kr(function qF(t){return t&&na(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ti(),Xw())}(n,e,r).pipe(At(o=>o?this.configLoader.loadChildren(n,e).pipe(Xt(i=>{e._loadedRoutes=i.routes,e._loadedInjector=i.injector})):function u2(t){return Us(zw(!1,3))}())):ce({routes:[],injector:n})}}function b2(t){const n=t.value.routeConfig;return n&&""===n.path}function eb(t){const n=[],e=new Set;for(const r of t){if(!b2(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):n.push(r)}for(const r of e){const o=eb(r.children);n.push(new Tr(r.value,o))}return n.filter(r=>!e.has(r))}function tb(t){return t.data||{}}function nb(t){return t.resolve||{}}function rb(t){return"string"==typeof t.title||null===t.title}function Bh(t){return Un(n=>{const e=t(n);return e?bt(e).pipe(ye(()=>n)):ce(n)})}const Ai=new j("ROUTES");let Vh=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=z(Py)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ce(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Kr(e.loadComponent()).pipe(ye(ob),Xt(i=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=i}),yh(()=>{this.componentLoaders.delete(e)})),o=new pw(r,()=>new ot).pipe(vh());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ce({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ye(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c;return Array.isArray(a)?c=a:(l=a.create(e).injector,c=l.get(Ai,[],ie.Self|ie.Optional).flat()),{routes:c.map(Rh),injector:l}}),yh(()=>{this.childrenLoaders.delete(r)})),s=new pw(i,()=>new ot).pipe(vh());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(e){return Kr(e()).pipe(ye(ob),At(r=>r instanceof FC||Array.isArray(r)?ce(r):bt(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ob(t){return function O2(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let wc=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ot,this.configLoader=z(Vh),this.environmentInjector=z(nr),this.urlSerializer=z(Gs),this.rootContexts=z(Ks),this.inputBindingEnabled=null!==z(mc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ce(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new MF(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new bF(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new $n({id:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zs,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ir(r=>0!==r.id),ye(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),Un(r=>{let o=!1,i=!1;return ce(r).pipe(Xt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Un(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new Xs(s.id,e.serializeUrl(r.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Wn}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return ib(s.source)&&(e.browserUrlTree=s.extractedUrl),ce(s).pipe(Un(u=>{const d=this.transitions?.getValue();return this.events.next(new xh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Wn:Promise.resolve(u)}),function M2(t,n,e,r,o,i){return At(s=>function C2(t,n,e,r,o,i,s="emptyOnly"){return new y2(t,n,e,r,o,s,i).recognize()}(t,n,e,r,s.extractedUrl,o,i).pipe(ye(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Xt(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const g=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(g,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new _F(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:g,restoredState:m,extras:y}=s,M=new xh(u,this.urlSerializer.serialize(d),g,m);this.events.next(M);const E=Bw(0,this.rootComponentType).snapshot;return ce(r={...s,targetSnapshot:E,urlAfterRedirects:d,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new Xs(s.id,e.serializeUrl(r.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Wn}}),Xt(s=>{const a=new vF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ye(s=>r={...s,guards:UF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function JF(t,n){return At(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=e;return 0===s.length&&0===i.length?ce({...e,guardsResult:!0}):function e2(t,n,e,r){return bt(t).pipe(At(o=>function s2(t,n,e,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?ce(i.map(a=>{const l=Js(n)??o,c=Ii(a,l);return Kr(function XF(t){return t&&na(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,r):l.runInContext(()=>c(t,n,e,r))).pipe(Xr())})).pipe(Ti()):ce(!0)}(o.component,o.route,e,n,r)),Xr(o=>!0!==o,!0))}(s,r,o,t).pipe(At(a=>a&&function WF(t){return"boolean"==typeof t}(a)?function t2(t,n,e,r){return bt(n).pipe(xi(o=>_h(function r2(t,n){return null!==t&&n&&n(new DF(t)),ce(!0)}(o.route.parent,r),function n2(t,n){return null!==t&&n&&n(new xF(t)),ce(!0)}(o.route,r),function i2(t,n,e){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function jF(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>dw(()=>ce(s.guards.map(l=>{const c=Js(s.node)??e,u=Ii(l,c);return Kr(function ZF(t){return t&&na(t.canActivateChild)}(u)?u.canActivateChild(r,t):c.runInContext(()=>u(r,t))).pipe(Xr())})).pipe(Ti())));return ce(i).pipe(Ti())}(t,o.path,e),function o2(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ce(!0);const o=r.map(i=>dw(()=>{const s=Js(n)??e,a=Ii(i,s);return Kr(function YF(t){return t&&na(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Xr())}));return ce(o).pipe(Ti())}(t,o.route,e))),Xr(o=>!0!==o,!0))}(r,i,t,n):ce(a)),ye(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Xt(s=>{if(r.guardsResult=s.guardsResult,Do(s.guardsResult))throw jw(0,s.guardsResult);const a=new CF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ir(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Bh(s=>{if(s.guards.canActivateChecks.length)return ce(s).pipe(Xt(a=>{const l=new yF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Un(a=>{let l=!1;return ce(a).pipe(function D2(t,n){return At(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ce(e);let i=0;return bt(o).pipe(xi(s=>function E2(t,n,e,r){const o=t.routeConfig,i=t._resolve;return void 0!==o?.title&&!rb(o)&&(i[js]=o.title),function x2(t,n,e,r){const o=function S2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ce({});const i={};return bt(o).pipe(At(s=>function P2(t,n,e,r){const o=Js(n)??r,i=Ii(t,o);return Kr(i.resolve?i.resolve(n,e):o.runInContext(()=>i(n,e)))}(t[s],n,e,r).pipe(Xr(),Xt(a=>{i[s]=a}))),Ch(1),gw(i),qe(s=>Zw(s)?Wn:Us(s)))}(i,t,n,r).pipe(ye(s=>(t._resolvedData=s,t.data=Vw(t,e).resolve,o&&rb(o)&&(t.data[js]=o.title),null)))}(s.route,r,t,n)),Xt(()=>i++),Ch(1),At(s=>i===o.length?ce(e):Wn))})}(e.paramsInheritanceStrategy,this.environmentInjector),Xt({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Xt(a=>{const l=new wF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Bh(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Xt(u=>{l.component=u}),ye(()=>{})));for(const u of l.children)c.push(...a(u));return c};return mh(a(s.targetSnapshot.root)).pipe(ac(),Ei(1))}),Bh(()=>this.afterPreactivation()),ye(s=>{const a=function kF(t,n,e){const r=Qs(t,n._root,e?e._root:void 0);return new Lw(r,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Xt(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e,r)=>ye(o=>(new $F(n,o.targetRouterState,o.currentRouterState,e,r).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ei(1),Xt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new Eo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),yh(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),qe(s=>{if(i=!0,Ww(s)){Gw(s)||(e.navigated=!0,e.restoreHistory(r,!0));const a=new fc(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Gw(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||ib(r.source)};e.scheduleNavigation(l,Zs,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const a=new Sh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(e.errorHandler(s))}catch(l){r.reject(l)}}return Wn}))}))}cancelNavigationTransition(e,r,o){const i=new fc(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(i),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ib(t){return t!==Zs}let sb=(()=>{class t{buildTitle(e){let r,o=e.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===me);return r}getResolvedTitleForRoute(e){return e.data[js]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(I2)},providedIn:"root"}),t})(),I2=(()=>{class t extends sb{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(V(nw))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(A2)},providedIn:"root"}),t})();class k2{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let A2=(()=>{class t extends k2{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bc=new j("",{providedIn:"root",factory:()=>({})});let N2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(R2)},providedIn:"root"}),t})(),R2=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var wn=(()=>((wn=wn||{})[wn.COMPLETE=0]="COMPLETE",wn[wn.FAILED=1]="FAILED",wn[wn.REDIRECTING=2]="REDIRECTING",wn))();function ab(t,n){t.events.pipe(Ir(e=>e instanceof Eo||e instanceof fc||e instanceof Sh||e instanceof Xs),ye(e=>e instanceof Eo||e instanceof Xs?wn.COMPLETE:e instanceof fc&&(0===e.code||1===e.code)?wn.REDIRECTING:wn.FAILED),Ir(e=>e!==wn.REDIRECTING),Ei(1)).subscribe(()=>{n()})}function F2(t){throw t}function L2(t,n,e){return n.parse("/")}const B2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},V2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Re=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=z(Sy),this.isNgZoneEnabled=!1,this.options=z(bc,{optional:!0})||{},this.pendingTasks=z(d0),this.errorHandler=this.options.errorHandler||F2,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||L2,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=z(N2),this.routeReuseStrategy=z(T2),this.titleStrategy=z(sb),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=z(Ai,{optional:!0})?.flat()??[],this.navigationTransitions=z(wc),this.urlSerializer=z(Gs),this.location=z(Yr),this.componentInputBindingEnabled=!!z(mc,{optional:!0}),this.isNgZoneEnabled=z(Ke)instanceof Ke&&Ke.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Pi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Bw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Zs,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Rh),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}createUrlTree(e,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}null!==u&&(u=this.removeEmptyProps(u));try{d=Pw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),d=this.currentUrlTree.root}return Ow(d,e,u,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Do(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Zs,null,r)}navigate(e,r={skipLocationChange:!1}){return function H2(t){for(let n=0;n{const i=e[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(e,r,o,i,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((d,g)=>{a=d,l=g});const u=this.pendingTasks.add();return ab(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class lb{}let j2=(()=>{class t{constructor(e,r,o,i,s){this.router=e,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ir(e=>e instanceof Eo),xi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ap(i.providers,e,`Route: ${i.path}`));const s=i._injector??e,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return bt(o).pipe(Ro())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):ce(null);const i=o.pipe(At(s=>null===s?ce(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return r.loadComponent&&!r._loadedComponent?bt([i,this.loader.loadComponent(r)]).pipe(Ro()):i})}}return t.\u0275fac=function(e){return new(e||t)(V(Re),V(Py),V(nr),V(lb),V(Vh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $h=new j("");let cb=(()=>{class t{constructor(e,r,o,i,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=i,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(e=>{e instanceof xh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Eo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Xs&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Rw&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Rw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function S_(){throw new Error("invalid")}()},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function kr(t,n){return{\u0275kind:t,\u0275providers:n}}function db(){const t=z(Nn);return n=>{const e=t.get(bi);if(n!==e.components[0])return;const r=t.get(Re),o=t.get(pb);1===t.get(Uh)&&r.initialNavigation(),t.get(hb,null,ie.Optional)?.setUpPreloading(),t.get($h,null,ie.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const pb=new j("",{factory:()=>new ot}),Uh=new j("",{providedIn:"root",factory:()=>1}),hb=new j("");function q2(t){return kr(0,[{provide:hb,useExisting:j2},{provide:lb,useExisting:t}])}const fb=new j("ROUTER_FORROOT_GUARD"),Z2=[Yr,{provide:Gs,useClass:wh},Re,Ks,{provide:ur,useFactory:function ub(t){return t.routerState.root},deps:[Re]},Vh,[]];function X2(){return new Vy("Router",Re)}let gb=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[Z2,[],{provide:Ai,multi:!0,useValue:e},{provide:fb,useFactory:eL,deps:[[Re,new Ya,new Za]]},{provide:bc,useValue:r||{}},r?.useHash?{provide:qr,useClass:m0}:{provide:qr,useClass:g0},{provide:$h,useFactory:()=>{const t=z(EN),n=z(Ke),e=z(bc),r=z(wc),o=z(Gs);return e.scrollOffset&&t.setOffset(e.scrollOffset),new cb(o,r,t,n,e)}},r?.preloadingStrategy?q2(r.preloadingStrategy).\u0275providers:[],{provide:Vy,multi:!0,useFactory:X2},r?.initialNavigation?tL(r):[],r?.bindToComponentInputs?kr(8,[Uw,{provide:mc,useExisting:Uw}]).\u0275providers:[],[{provide:mb,useFactory:db},{provide:Np,multi:!0,useExisting:mb}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ai,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(V(fb,8))},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})();function eL(t){return"guarded"}function tL(t){return["disabled"===t.initialNavigation?kr(3,[{provide:Ep,multi:!0,useFactory:()=>{const n=z(Re);return()=>{n.setUpLocationChangeListener()}}},{provide:Uh,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?kr(2,[{provide:Uh,useValue:0},{provide:Ep,multi:!0,deps:[Nn],useFactory:n=>{const e=n.get(sA,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(Re),i=n.get(pb);ab(o,()=>{r(!0)}),n.get(wc).afterPreactivation=()=>(r(!0),i.closed?ce(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const mb=new j("");function rL(t,n){if(1&t){const e=Y();p(0,"div")(1,"h2",1),f(2),h(),p(3,"p"),f(4),h(),p(5,"button",2),v("click",function(){return A(e),N(D().close())}),f(6,"X"),h()()}if(2&t){const e=D();En("box"+(e.getClosing()?" slideOut":"")),_(1),He("color",e.getIsError()?"red":""),_(1),Xe(" ",e.getHeading()," "),_(2),ve(e.getMessage())}}let De=(()=>{class t{static showNotification(e,r,o=5e3,i=!1){t.visible=!0,t.message=r,t.heading=e,t.isError=i,!(o<0)&&setTimeout(()=>{t.visible&&t.closeNotification()},o)}static closeNotification(){t.closing=!0,setTimeout(()=>{t.visible=!1,t.closing=!1,t.isError=!1,t.message="",t.heading=""},500)}getVisible(){return t.visible}getMessage(){return t.message}getHeading(){return t.heading}getClosing(){return t.closing}getIsError(){return t.isError}close(){t.closeNotification()}}return t.visible=!1,t.message="",t.heading="",t.closing=!1,t.isError=!1,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-notification"]],decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"heading"],[1,"closeButton",3,"click"]],template:function(e,r){1&e&&I(0,rL,7,6,"div",0),2&e&&C("ngIf",r.getVisible())},dependencies:[Pe],styles:[".box[_ngcontent-%COMP%]{position:fixed;bottom:0;right:0;margin:30px;z-index:9999;border:1px solid var(--primary-color);background-color:var(--header-color);border-radius:10px;box-shadow:10px 10px 10px #00000080;width:300px;padding:10px;animation:_ngcontent-%COMP%_slideInFromRight .7s ease-in-out;color:var(--text-color)}.box[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin-top:0;width:250px}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;width:25px;height:25px;border-radius:50%;background-color:var(--primary-color);color:var(--inverted-text-color);border:1px solid var(--primary-color);font-size:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{scale:1.1}.slideOut[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideOutToButton .51s ease-in-out}@media screen and (max-width: 800px){.box[_ngcontent-%COMP%]{width:100%;left:0;margin:0;border-radius:0;border:none;box-shadow:none;animation:none;border-top:1px solid var(--primary-color)}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(150%)}80%{transform:translate(-10%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideOutToButton{0%{transform:translateY(0)}20%{transform:translateY(-10%)}to{transform:translateY(150%)}}"]}),t})();class Mc{}class jh{}class dr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const o=e.slice(0,r),i=o.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=e.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(e,i)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof dr?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(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new dr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof dr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class oL{encodeKey(n){return _b(n)}encodeValue(n){return _b(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const sL=/%(\d[a-f0-9])/gi,aL={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _b(t){return encodeURIComponent(t).replace(sL,(n,e)=>aL[e]??n)}function Dc(t){return`${t}`}class Qr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new oL,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function iL(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const r=n.fromObject[e],o=Array.isArray(r)?r.map(Dc):[Dc(r)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{e.push({param:r,value:i,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Qr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}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 e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Dc(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Dc(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class lL{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),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 vb(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Cb(t){return typeof Blob<"u"&&t instanceof Blob}function yb(t){return typeof FormData<"u"&&t instanceof FormData}class ra{constructor(n,e,r,o){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function cL(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new dr),this.context||(this.context=new lL),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(g,n.setHeaders[g]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,g)=>d.set(g,n.setParams[g]),c)),new ra(e,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var Ct=(()=>((Ct=Ct||{})[Ct.Sent=0]="Sent",Ct[Ct.UploadProgress=1]="UploadProgress",Ct[Ct.ResponseHeader=2]="ResponseHeader",Ct[Ct.DownloadProgress=3]="DownloadProgress",Ct[Ct.Response=4]="Response",Ct[Ct.User=5]="User",Ct))();class zh{constructor(n,e=200,r="OK"){this.headers=n.headers||new dr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Gh extends zh{constructor(n={}){super(n),this.type=Ct.ResponseHeader}clone(n={}){return new Gh({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 Ni extends zh{constructor(n={}){super(n),this.type=Ct.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ni({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 wb extends zh{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 Wh(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let Ec=(()=>{class t{constructor(e){this.handler=e}request(e,r,o={}){let i;if(e instanceof ra)i=e;else{let l,c;l=o.headers instanceof dr?o.headers:new dr(o.headers),o.params&&(c=o.params instanceof Qr?o.params:new Qr({fromObject:o.params})),i=new ra(e,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=ce(i).pipe(xi(l=>this.handler.handle(l)));if(e instanceof ra||"events"===o.observe)return s;const a=s.pipe(Ir(l=>l instanceof Ni));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ye(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(ye(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(ye(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ye(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new Qr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Wh(o,r))}post(e,r,o={}){return this.request("POST",e,Wh(o,r))}put(e,r,o={}){return this.request("PUT",e,Wh(o,r))}}return t.\u0275fac=function(e){return new(e||t)(V(Mc))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function bb(t,n){return n(t)}function dL(t,n){return(e,r)=>n.intercept(e,{handle:o=>t(o,r)})}const hL=new j(""),oa=new j(""),Mb=new j("");function fL(){let t=null;return(n,e)=>(null===t&&(t=(z(hL,{optional:!0})??[]).reduceRight(dL,bb)),t(n,e))}let Db=(()=>{class t extends Mc{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(oa),...this.injector.get(Mb,[])]));this.chain=r.reduceRight((o,i)=>function pL(t,n,e){return(r,o)=>e.runInContext(()=>n(r,i=>t(i,o)))}(o,i,this.injector),bb)}return this.chain(e,r=>this.backend.handle(r))}}return t.\u0275fac=function(e){return new(e||t)(V(jh),V(nr))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const vL=/^\)\]\}',?\n/;let xb=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?bt(r.\u0275loadImpl()):ce(null)).pipe(Un(()=>new xe(i=>{const s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((b,k)=>s.setRequestHeader(b,k.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&s.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();s.responseType="json"!==b?b:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=s.statusText||"OK",k=new dr(s.getAllResponseHeaders()),q=function CL(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new Gh({headers:k,status:s.status,statusText:b,url:q}),l},u=()=>{let{headers:b,status:k,statusText:q,url:oe}=c(),be=null;204!==k&&(be=typeof s.response>"u"?s.responseText:s.response),0===k&&(k=be?200:0);let On=k>=200&&k<300;if("json"===e.responseType&&"string"==typeof be){const Gc=be;be=be.replace(vL,"");try{be=""!==be?JSON.parse(be):null}catch(iH){be=Gc,On&&(On=!1,be={error:iH,text:be})}}On?(i.next(new Ni({body:be,headers:b,status:k,statusText:q,url:oe||void 0})),i.complete()):i.error(new wb({error:be,headers:b,status:k,statusText:q,url:oe||void 0}))},d=b=>{const{url:k}=c(),q=new wb({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:k||void 0});i.error(q)};let g=!1;const m=b=>{g||(i.next(c()),g=!0);let k={type:Ct.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),"text"===e.responseType&&s.responseText&&(k.partialText=s.responseText),i.next(k)},y=b=>{let k={type:Ct.UploadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),i.next(k)};let M;s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",m),null!==a&&s.upload&&s.upload.addEventListener("progress",y));const E=()=>{M??=function wL(){const t=setTimeout(()=>{},yL);return()=>clearTimeout(t)}()},x=()=>{M?.()};return s.addEventListener("loadstart",E),s.addEventListener("loadend",x),s.send(a),i.next({type:Ct.Sent}),()=>{s.removeEventListener("loadstart",E),s.removeEventListener("loadend",x),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),M?.(),e.reportProgress&&(s.removeEventListener("progress",m),null!==a&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}}return t.\u0275fac=function(e){return new(e||t)(V(B0))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const yL=2147483647,qh=new j("XSRF_ENABLED"),Sb=new j("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Pb=new j("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ob{}let DL=(()=>{class t{constructor(e,r,o){this.doc=e,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=x0(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(V(Zt),V(jr),V(Sb))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function EL(t,n){const e=t.url.toLowerCase();if(!z(qh)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const r=z(Ob).getToken(),o=z(Pb);return null!=r&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),n(t)}var dt=(()=>((dt=dt||{})[dt.Interceptors=0]="Interceptors",dt[dt.LegacyInterceptors=1]="LegacyInterceptors",dt[dt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",dt[dt.NoXsrfProtection=3]="NoXsrfProtection",dt[dt.JsonpSupport=4]="JsonpSupport",dt[dt.RequestsMadeViaParent=5]="RequestsMadeViaParent",dt))();function Ri(t,n){return{\u0275kind:t,\u0275providers:n}}function xL(...t){const n=[Ec,xb,Db,{provide:Mc,useExisting:Db},{provide:jh,useExisting:xb},{provide:oa,useValue:EL,multi:!0},{provide:qh,useValue:!0},{provide:Ob,useClass:DL}];for(const e of t)n.push(...e.\u0275providers);return function od(t){return{\u0275providers:t}}(n)}const Ib=new j("LEGACY_INTERCEPTOR_FN");let PL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({providers:[xL(Ri(dt.LegacyInterceptors,[{provide:Ib,useFactory:fL},{provide:oa,useExisting:Ib,multi:!0}]))]}),t})(),ke=(()=>{class t{constructor(e,r){this.http=e,this.localStorageService=r,t.host=r.getServerHost(),t.port=r.getServerPort()}isServerOnline(){return this.http.get("http://"+t.host+":"+t.port+"/woop/ping").pipe(qe(e=>{throw new Error("error")}))}getVersion(){return this.http.get("http://"+t.host+":"+t.port+"/woop/version")}checkUser(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/user/check?username="+e+"&password="+r).pipe(qe(o=>{throw 404===o.status?new Error("Username or password is wrong"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllChapters(){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/all")}verifyChapter(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/verify?title="+e+"&password="+r).pipe(qe(o=>{throw 404===o.status?new Error("Could not find chapter"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getChapterPassword(e,r,o){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/password?title="+e+"&username="+r+"&password="+o).pipe(qe(i=>{throw 404===i.status?new Error("Could not find chapter"):401===i.status?new Error("Unauthorized"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}addNewChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/new",e).pipe(qe(r=>{throw 409===r.status?new Error("Chapter already exists"):500===r.status?new Error("Chapter could not be saved"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}updateChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/update",e).pipe(qe(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be updated"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}importChapter(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/import?username="+e+"&password="+r,o).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):500===i.status?new Error("Chapter could not be imported"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}deleteChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/delete",e).pipe(qe(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be deleted"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}uploadImage(e,r){return e=e.replace(/ /g,"_"),this.http.post("http://"+t.host+":"+t.port+"/woop/image/upload",{Name:e,Content:r}).pipe(qe(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}uploadFile(e,r){return e=e.replace(/ /g,"_"),this.http.post("http://"+t.host+":"+t.port+"/woop/file/upload",{Name:e,Content:r}).pipe(qe(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getFile(e){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/get/"+e).pipe(qe(r=>{throw 404===r.status?new Error("File not found"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}translateText(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/translate/text",{text:e,to:r}).pipe(qe(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllImageNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/image/name/get/all").pipe(qe(e=>{throw 500===e.status?new Error("Could not get image names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}getAllFileNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/name/get/all").pipe(qe(e=>{throw 500===e.status?new Error("Could not get file names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}addUser(e,r,o,i){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/add",{userName:e,password:r,newUserName:o,newPassword:i}).pipe(qe(s=>{throw 401===s.status?new Error("Unauthorized"):409===s.status?new Error("User already exists"):0===s.status?new Error("Server is offline"):(console.log(s.message),new Error("unknown error: "+s.status))}))}deleteUser(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/delete",{userName:e,password:r,userNameToDelete:o}).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}makeUserAdmin(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/make/admin",{userName:e,password:r,userNameToMakeAdmin:o}).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}changePassword(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/change/password",{userName:e,password:r,newPassword:o}).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}deployAll(e,r,o=!1,i=!0,s=!1){return this.http.post("http://"+t.host+":"+t.port+"/woop/deploy/all",{username:e,password:r,ignoreWaitingTime:o,pushToGit:i,pushAll:s}).pipe(qe(a=>{throw 401===a.status?new Error("Unauthorized"):500===a.status?new Error("Something went wrong (500)"):0===a.status?new Error("Server is offline"):(console.log(a.message),new Error("unknown error: "+a.status))}))}}return t.host="localhost",t.port=52773,t.\u0275fac=function(e){return new(e||t)(V(Ec),V(at))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Tb{constructor(n,e,r,o="",i="en",s="",a=!1){this.Title=n,this.Pages=r,this.Password=o,this.Language=i,this.Author=e,this.Description=s,this.IsPrivate=a,this.setUndefinedValues()}setUndefinedValues(){void 0===this.Password&&(this.Password=""),void 0===this.Language&&(this.Language=""),void 0===this.Author&&(this.Author=""),void 0===this.Password&&(this.Password=""),void 0===this.Description&&(this.Description="")}getPageForHeading(n,e=!0){e&&(n=n.toLowerCase().replace(/\s/g,"-"));for(let r=0;r=this.Pages.length?this.Pages.push(n):this.Pages=this.Pages.splice(e,0,n)}}class Yh{constructor(n,e="",r=""){this.Content=n,this.Hint=e,this.Result=r}}var pr=(()=>((pr=pr||{})[pr.NONE=0]="NONE",pr[pr.USER=1]="USER",pr[pr.ADMIN=2]="ADMIN",pr))();class X{}X.userLevel=pr.NONE,X.userName="",X.password="";let sa=(()=>{class t{static isChapterVerified(e){for(let r of this.verifyCache)if(r.name==e)return!0;return!1}static verifyChapter(e,r,o=!0){for(let i of this.verifyCache)if(i.name==e)return void(i.pwd=r);this.verifyCache.push({name:e,pwd:r}),""!=r&&o&&at.setLS("verifyCache",JSON.stringify(this.verifyCache))}static setCache(e){this.verifyCache=e}}return t.verifyCache=[],t})(),at=(()=>{class t{constructor(e){if(this.router=e,this.rememberPage=!0,t.cookiesAccepted=this.getCookiesAccepted(),t.cookiesAccepted||kb.show(),this.rememberPage=this.getRememberPage(),this.getStayLoggedIn()){const o=this.getUserName(),i=this.getPassword();null!=o&&null!=i&&(this.router.navigate(["/login"]),this.setStayLoggedIn(!0))}let r=localStorage.getItem("verifyCache");r=null==r?[]:JSON.parse(r);for(let o of r)sa.verifyChapter(o.name,o.pwd,!1)}getCookiesAccepted(){let e=localStorage.getItem("WOOPCookiesAccepted");return null!=e&&"true"==e}getLanguageTo(){return localStorage.getItem("languageTo")??"en"}setLanguageTo(e){t.setLS("languageTo",e)}getRememberPage(){let e=localStorage.getItem("rememberPage");return null==e||"true"==e}setRememberPage(e){t.setLS("rememberPage",e?"true":"false"),this.rememberPage=e}setColorScheme(e){t.setLS("colorScheme",e?"dark":"light")}getColorScheme(){return localStorage.getItem("colorScheme")}setFontSize(e){t.setLS("fontSize",e.toString())}getFontSize(){let e=localStorage.getItem("fontSize");return null==e?16:parseInt(e)}setPageForChapter(e,r){t.setLS(e,r.toString())}getPageForChapter(e){if(!this.rememberPage)return 0;let r=localStorage.getItem(e);return null==r?0:parseInt(r)}getServerHost(){return localStorage.getItem("serverHost")??"localhost"}setServerHost(e){t.setLS("serverHost",e),ke.host=e}getServerPort(){let e=localStorage.getItem("serverPort");return null==e?52773:parseInt(e)}setServerPort(e){t.setLS("serverPort",e.toString()),ke.port=e}getUserName(){return localStorage.getItem("userName")}setUserName(e){t.setLS("userName",e)}setStayLoggedIn(e){t.setLS("stayLoggedIn",e?"true":"false")}getStayLoggedIn(){let e=localStorage.getItem("stayLoggedIn");return null!=e&&"true"==e}removeUserName(){localStorage.removeItem("userName")}getPassword(){return localStorage.getItem("password")}setPassword(e){t.setLS("password",e)}removePassword(){localStorage.removeItem("password")}getAllServerConnections(){let e=localStorage.getItem("serverConnections");return null==e?[]:JSON.parse(e)}getConnection(e){let r=this.getAllServerConnections();for(let o=0;o{class t{acceptCookies(){at.acceptCookies(),t.visible=!1}rejectCookies(){at.rejectCookies(),t.visible=!1}isVisible(){return t.visible}static show(){t.visible=!0}}return t.visible=!1,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-cookie-message"]],decls:1,vars:1,consts:[["class","message",4,"ngIf"],[1,"message"],["href","https://www.cookiesandyou.com/","target","_blank"],[1,"btnBox"],[3,"click"]],template:function(e,r){1&e&&I(0,NL,10,0,"div",0),2&e&&C("ngIf",r.isVisible())},dependencies:[Pe],styles:[".message[_ngcontent-%COMP%]{position:fixed;width:100%;bottom:0;left:0;height:300px;z-index:100;background-color:var(--header-color);color:var(--text-color);display:flex;align-items:center;justify-content:center;flex-direction:column}.message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0;font-size:25px;text-align:center;width:90%}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:row;margin-top:20px}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px;border:none;background-color:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;padding:10px;font-size:20px;width:100px;cursor:pointer;transition:.3s}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:20px}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:17px}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);transform:scale(1)}}"]}),t})(),RL=(()=>{class t{constructor(){this.title="InterSystemsWOOP"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-root"]],decls:3,vars:0,template:function(e,r){1&e&&K(0,"router-outlet")(1,"app-notification")(2,"app-cookie-message")},dependencies:[Ah,De,kb],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:70px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}"]}),t})();class FL extends U{constructor(n,e){super()}schedule(n,e=0){return this}}const xc={setInterval(t,n,...e){const{delegate:r}=xc;return r?.setInterval?r.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=xc;return(n?.clearInterval||clearInterval)(t)},delegate:void 0},Zh={now:()=>(Zh.delegate||Date).now(),delegate:void 0};class aa{constructor(n,e=aa.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}}aa.now=Zh.now;const VL=new class BL extends aa{constructor(n,e=aa.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}}(class LL extends FL{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,e),this}requestAsyncId(n,e,r=0){return xc.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&xc.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ht(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}});function jL(t,n){return t===n}class zL extends ot{constructor(n=1/0,e=1/0,r=Zh){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;e||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s"']/,KL=new RegExp(Nb.source,"g"),Rb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,QL=new RegExp(Rb.source,"g"),JL={"&":"&","<":"<",">":">",'"':""","'":"'"},Fb=t=>JL[t];function Ut(t,n){if(n){if(Nb.test(t))return t.replace(KL,Fb)}else if(Rb.test(t))return t.replace(QL,Fb);return t}const eB=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Lb(t){return t.replace(eB,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const tB=/(^|[^\[])\^/g;function je(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(r,o)=>(o=(o=o.source||o).replace(tB,"$1"),t=t.replace(r,o),e),getRegex:()=>new RegExp(t,n)};return e}const nB=/[^\w:]/g,rB=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Bb(t,n,e){if(t){let r;try{r=decodeURIComponent(Lb(e)).replace(nB,"").toLowerCase()}catch{return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!rB.test(e)&&(e=function aB(t,n){Sc[" "+t]||(Sc[" "+t]=oB.test(t)?t+"/":Oc(t,"/",!0));const e=-1===(t=Sc[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(iB,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(sB,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Sc={},oB=/^[^:]+:\/*[^/]*$/,iB=/^([^:]+:)[\s\S]*$/,sB=/^([^:]+:\/*[^/]*)[\s\S]*$/,Pc={exec:function(){}};function Vb(t,n){const r=t.replace(/\|/g,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>n)r.splice(n);else for(;r.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function $b(t,n,e,r){const o=n.href,i=n.title?Ut(n.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const a={type:"link",raw:e,href:o,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:e,href:o,title:i,text:Ut(s)}}class Xh{constructor(n){this.options=n||xo}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Oc(r,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const r=e[0],o=function uB(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const r=e[1];return n.split("\n").map(o=>{const i=o.match(/^\s+/);if(null===i)return o;const[s]=i;return s.length>=r.length?o.slice(r.length):o}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(/#$/.test(r)){const o=Oc(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:i,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r,o,i,s,a,l,c,u,d,g,m,y,M=e[1].trim();const E=M.length>1,x={type:"list",raw:"",ordered:E,start:E?+M.slice(0,-1):"",loose:!1,items:[]};M=E?`\\d{1,9}\\${M.slice(-1)}`:`\\${M}`,this.options.pedantic&&(M=E?M:"[*+-]");const b=new RegExp(`^( {0,3}${M})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(y=!1,(e=b.exec(n))&&!this.rules.block.hr.test(n));){if(r=e[0],n=n.substring(r.length),u=e[2].split("\n",1)[0].replace(/^\t+/,q=>" ".repeat(3*q.length)),d=n.split("\n",1)[0],this.options.pedantic?(s=2,m=u.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,m=u.slice(s),s+=e[1].length),l=!1,!u&&/^ *$/.test(d)&&(r+=d+"\n",n=n.substring(d.length+1),y=!0),!y){const q=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),oe=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),be=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),On=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;n&&(g=n.split("\n",1)[0],d=g,this.options.pedantic&&(d=d.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(be.test(d)||On.test(d)||q.test(d)||oe.test(n)));){if(d.search(/[^ ]/)>=s||!d.trim())m+="\n"+d.slice(s);else{if(l||u.search(/[^ ]/)>=4||be.test(u)||On.test(u)||oe.test(u))break;m+="\n"+d}!l&&!d.trim()&&(l=!0),r+=g+"\n",n=n.substring(g.length+1),u=d.slice(s)}}x.loose||(c?x.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(m),o&&(i="[ ] "!==o[0],m=m.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:r,task:!!o,checked:i,loose:!1,text:m}),x.raw+=r}x.items[x.items.length-1].raw=r.trimRight(),x.items[x.items.length-1].text=m.trimRight(),x.raw=x.raw.trimRight();const k=x.items.length;for(a=0;a"space"===be.type),oe=q.length>0&&q.some(be=>/\n.*\n/.test(be.raw));x.loose=oe}if(x.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:o,title:i}}}table(n){const e=this.rules.block.table.exec(n);if(e){const r={type:"table",header:Vb(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let i,s,a,l,o=r.align.length;for(i=0;i({text:c}));for(o=r.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Ut(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=Oc(r.slice(0,-1),"\\");if((r.length-s.length)%2==0)return}else{const s=function lB(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let r=0,o=0;for(;o-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o.slice(1):o.slice(1,-1)),$b(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return $b(r,o,r[0],this.lexer)}}emStrong(n,e,r=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){const s=o[0].length-1;let a,l,c=s,u=0;const d="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(d.lastIndex=0,e=e.slice(-1*n.length+s);null!=(o=d.exec(e));){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=a.length,o[3]||o[4]){c+=l;continue}if((o[5]||o[6])&&s%3&&!((s+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const g=n.slice(0,s+o.index+(o[0].length-a.length)+l);if(Math.min(s,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Ut(r,!0),{type:"codespan",raw:e[0],text:r}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const r=this.rules.inline.autolink.exec(n);if(r){let o,i;return"@"===r[2]?(o=Ut(this.options.mangle?e(r[1]):r[1]),i="mailto:"+o):(o=Ut(r[1]),i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let r;if(r=this.rules.inline.url.exec(n)){let o,i;if("@"===r[2])o=Ut(this.options.mangle?e(r[0]):r[0]),i="mailto:"+o;else{let s;do{s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(s!==r[0]);o=Ut(r[0]),i="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const r=this.rules.inline.text.exec(n);if(r){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ut(r[0]):r[0]:Ut(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const te={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Pc,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};te.def=je(te.def).replace("label",te._label).replace("title",te._title).getRegex(),te.bullet=/(?:[*+-]|\d{1,9}[.)])/,te.listItemStart=je(/^( *)(bull) */).replace("bull",te.bullet).getRegex(),te.list=je(te.list).replace(/bull/g,te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+te.def.source+")").getRegex(),te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te._comment=/|$)/,te.html=je(te.html,"i").replace("comment",te._comment).replace("tag",te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),te.paragraph=je(te._paragraph).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",te._tag).getRegex(),te.blockquote=je(te.blockquote).replace("paragraph",te.paragraph).getRegex(),te.normal={...te},te.gfm={...te.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},te.gfm.table=je(te.gfm.table).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",te._tag).getRegex(),te.gfm.paragraph=je(te._paragraph).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",te.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",te._tag).getRegex(),te.pedantic={...te.normal,html:je("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:je(te.normal._paragraph).replace("hr",te.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Pc,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Pc,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=je(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,W._comment=je(te._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),W.emStrong.lDelim=je(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=je(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=je(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[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])?)+(?![-_])/,W.autolink=je(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=je(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=je(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=je(W.reflink).replace("label",W._label).replace("ref",te._label).getRegex(),W.nolink=je(W.nolink).replace("ref",te._label).getRegex(),W.reflinkSearch=je(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal={...W},W.pedantic={...W.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:je(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()},W.gfm={...W.normal,escape:je(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(r=a.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(r):(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(o.raw+="\n"+r.raw,o.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=n.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(i=n.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){o=e[e.length-1],s&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r),s=i.length!==n.length,n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let r,o,i,a,l,c,s=n;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+Hb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+Hb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>!!(r=u.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(n,s,c)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(n,Ub)){n=n.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,Ub))){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=n.slice(1);let g;this.options.extensions.startInline.forEach(function(m){g=m.call({lexer:this},d),"number"==typeof g&&g>=0&&(u=Math.min(u,g))}),u<1/0&&u>=0&&(i=n.substring(0,u+1))}if(r=this.tokenizer.inlineText(i,dB)){n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),l=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(n){const u="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return e}}class ca{constructor(n){this.options=n||xo}code(n,e,r){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(n,o);null!=i&&i!==n&&(r=!0,n=i)}return n=n.replace(/\n$/,"")+"\n",o?'
'+(r?n:Ut(n,!0))+"
\n":"
"+(r?n:Ut(n,!0))+"
\n"}blockquote(n){return`
\n${n}
\n`}html(n){return n}heading(n,e,r,o){return this.options.headerIds?`${n}\n`:`${n}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(n,e,r){const o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"\n"}listitem(n){return`
  • ${n}
  • \n`}checkbox(n){return" "}paragraph(n){return`

    ${n}

    \n`}table(n,e){return e&&(e=`${e}`),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return this.options.xhtml?"
    ":"
    "}del(n){return`${n}`}link(n,e,r){if(null===(n=Bb(this.options.sanitize,this.options.baseUrl,n)))return r;let o='",o}image(n,e,r){if(null===(n=Bb(this.options.sanitize,this.options.baseUrl,n)))return r;let o=`${r}":">",o}text(n){return n}}class jb{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,r){return""+r}image(n,e,r){return""+r}br(){return""}}class zb{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let r=n,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[n];do{o++,r=n+"-"+o}while(this.seen.hasOwnProperty(r))}return e||(this.seen[n]=o,this.seen[r]=0),r}slug(n,e={}){const r=this.serialize(n);return this.getNextSafeSlug(r,e.dryrun)}}class eo{constructor(n){this.options=n||xo,this.options.renderer=this.options.renderer||new ca,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new jb,this.slugger=new zb}static parse(n,e){return new eo(e).parse(n)}static parseInline(n,e){return new eo(e).parseInline(n)}parse(n,e=!0){let o,i,s,a,l,c,u,d,g,m,y,M,E,x,b,k,q,oe,be,r="";const On=n.length;for(o=0;o0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=oe+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=oe+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:oe}):x+=oe),x+=this.parse(b.tokens,E),g+=this.renderer.listitem(x,q,k);r+=this.renderer.list(g,y,M);continue;case"html":r+=this.renderer.html(m.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(m.tokens));continue;case"text":for(g=m.tokens?this.parseInline(m.tokens):m.text;o+1{"function"==typeof r&&(o=r,r=null);const i={...r},s=function pB(t,n,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const o="

    An error occurred:

    "+Ut(r.message+"",!0)+"
    ";return n?Promise.resolve(o):e?void e(null,o):o}if(n)return Promise.reject(r);if(!e)throw r;e(r)}}((r={...ne.defaults,...i}).silent,r.async,o);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function cB(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),o){const a=r.highlight;let l;try{r.hooks&&(e=r.hooks.preprocess(e)),l=t(e,r)}catch(d){return s(d)}const c=function(d){let g;if(!d)try{r.walkTokens&&ne.walkTokens(l,r.walkTokens),g=n(l,r),r.hooks&&(g=r.hooks.postprocess(g))}catch(m){d=m}return r.highlight=a,d?s(d):o(null,g)};if(!a||a.length<3||(delete r.highlight,!l.length))return c();let u=0;return ne.walkTokens(l,function(d){"code"===d.type&&(u++,setTimeout(()=>{a(d.text,d.lang,function(g,m){if(g)return c(g);null!=m&&m!==d.text&&(d.text=m,d.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(a=>t(a,r)).then(a=>r.walkTokens?Promise.all(ne.walkTokens(a,r.walkTokens)).then(()=>a):a).then(a=>n(a,r)).then(a=>r.hooks?r.hooks.postprocess(a):a).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));const a=t(e,r);r.walkTokens&&ne.walkTokens(a,r.walkTokens);let l=n(a,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(a){return s(a)}}}function ne(t,n,e){return Gb(Jr.lex,eo.parse)(t,n,e)}!function ZL(t,n,e){(n=function YL(t){var n=function qL(t,n){if("object"!==la(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==la(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===la(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}(Ic,"passThroughHooks",new Set(["preprocess","postprocess"])),ne.options=ne.setOptions=function(t){return function XL(t){xo=t}(ne.defaults={...ne.defaults,...t}),ne},ne.getDefaults=function Ab(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},ne.defaults=xo,ne.use=function(...t){const n=ne.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const r={...e};if(r.async=ne.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=n.renderers[o.name];n.renderers[o.name]=i?function(...s){let a=o.renderer.apply(this,s);return!1===a&&(a=i.apply(this,s)),a}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");n[o.level]?n[o.level].unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&("block"===o.level?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:"inline"===o.level&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),e.renderer){const o=ne.defaults.renderer||new ca;for(const i in e.renderer){const s=o[i];o[i]=(...a)=>{let l=e.renderer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.renderer=o}if(e.tokenizer){const o=ne.defaults.tokenizer||new Xh;for(const i in e.tokenizer){const s=o[i];o[i]=(...a)=>{let l=e.tokenizer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.tokenizer=o}if(e.hooks){const o=ne.defaults.hooks||new Ic;for(const i in e.hooks){const s=o[i];o[i]=Ic.passThroughHooks.has(i)?a=>{if(ne.defaults.async)return Promise.resolve(e.hooks[i].call(o,a)).then(c=>s.call(o,c));const l=e.hooks[i].call(o,a);return s.call(o,l)}:(...a)=>{let l=e.hooks[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.hooks=o}if(e.walkTokens){const o=ne.defaults.walkTokens;r.walkTokens=function(i){let s=[];return s.push(e.walkTokens.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}ne.setOptions(r)})},ne.walkTokens=function(t,n){let e=[];for(const r of t)switch(e=e.concat(n.call(ne,r)),r.type){case"table":for(const o of r.header)e=e.concat(ne.walkTokens(o.tokens,n));for(const o of r.rows)for(const i of o)e=e.concat(ne.walkTokens(i.tokens,n));break;case"list":e=e.concat(ne.walkTokens(r.items,n));break;default:ne.defaults.extensions&&ne.defaults.extensions.childTokens&&ne.defaults.extensions.childTokens[r.type]?ne.defaults.extensions.childTokens[r.type].forEach(function(o){e=e.concat(ne.walkTokens(r[o],n))}):r.tokens&&(e=e.concat(ne.walkTokens(r.tokens,n)))}return e},ne.parseInline=Gb(Jr.lexInline,eo.parseInline),ne.Parser=eo,ne.parser=eo.parse,ne.Renderer=ca,ne.TextRenderer=jb,ne.Lexer=Jr,ne.lexer=Jr.lex,ne.Tokenizer=Xh,ne.Slugger=zb,ne.Hooks=Ic,ne.parse=ne;const hB=["*"];let Wb=(()=>{class t{constructor(){this._buttonClick$=new ot,this.copied$=this._buttonClick$.pipe(Un(()=>Lf(ce(!0),function $L(t=0,n,e=VL){let r=-1;return null!=n&&(kf(n)?e=n:r=n),new xe(o=>{let i=function HL(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;i<0&&(i=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(3e3).pipe(gw(!1)))),function UL(t,n=Gn){return t=t??jL,Qe((e,r)=>{let o,i=!0;e.subscribe(Je(r,s=>{const a=n(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}(),function GL(t,n,e){let r,o=!1;return t&&"object"==typeof t?({bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):r=t??1/0,Bf({connector:()=>new zL(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}(1)),this.copiedText$=this.copied$.pipe(hw(!1),ye(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,r){1&e&&(p(0,"button",0),v("click",function(){return r.onCopyToClipboardClick()}),cp(1,"async"),f(2),cp(3,"async"),h()),2&e&&(Es("copied",up(1,3,r.copied$)),_(2),ve(up(3,5,r.copiedText$)))},dependencies:[A0],encapsulation:2,changeDetection:0}),t})();class mB{}var to=(()=>((to=to||{}).CommandLine="command-line",to.LineHighlight="line-highlight",to.LineNumbers="line-numbers",to))();class vB{}const qb=new j("SECURITY_CONTEXT");let Tc=(()=>{class t{get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,r,o,i,s,a){this.platform=e,this.securityContext=r,this.http=o,this.clipboardOptions=i,this.sanitizer=a,this.DEFAULT_MARKED_OPTIONS={renderer:new ca},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:this.DEFAULT_MARKED_OPTIONS,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ot,this.reload$=this._reload$.asObservable(),this.options=s}parse(e,r=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:o,inline:i,emoji:s,mermaid:a,disableSanitizer:l}=r,c={...this.options,...r.markedOptions};a&&(this.renderer=this.extendRenderer(c.renderer||new ca));const u=this.trimIndentation(e),d=o?this.decodeHtml(u):u,g=s?this.parseEmoji(d):d,m=this.parseMarked(g,c,i);return(l?m:this.sanitizer.sanitize(this.securityContext,m))||""}render(e,r=this.DEFAULT_RENDER_OPTIONS,o){const{clipboard:i,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:u}=r;i&&this.renderClipboard(e,o,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...u}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ye(r=>this.handleExtension(e,r)))}highlight(e){if(!Di(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const r=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(r,o=>o.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!Di(this.platform))return e;const r=document.createElement("textarea");return r.innerHTML=e,r.value}extendRenderer(e){const r=e;if(!0===r.\u0275NgxMarkdownRendererExtended)return e;const o=e.code;return e.code=function(i,s,a){return"mermaid"===s?`
    ${i}
    `:o.call(this,i,s,a)},r.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,r){const o=e.lastIndexOf("://"),i=o>-1?e.substring(o+4):e,s=i.lastIndexOf("/"),a=s>-1?i.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+r+"\n```":r}parseMarked(e,r,o=!1){return o?ne.parseInline(e,r):ne.parse(e,r)}parseEmoji(e){if(!Di(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,r){if(Di(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,r)}}renderClipboard(e,r,o){if(!Di(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!r)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:s}=o,a=e.querySelectorAll("pre");for(let l=0;ld.style.opacity="1",c.onmouseout=()=>d.style.opacity="0",g=i?r.createComponent(i).hostView:s?r.createEmbeddedView(s):r.createComponent(Wb).hostView,g.rootNodes.forEach(y=>{y.onmouseover=()=>d.style.opacity="1",d.appendChild(y),m=new ClipboardJS(y,{text:()=>c.innerText})}),g.onDestroy(()=>m.destroy())}}renderMermaid(e,r=this.DEFAULT_MERMAID_OPTIONS){if(!Di(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const o=e.querySelectorAll(".mermaid");0!==o.length&&(mermaid.initialize(r),mermaid.init(o))}trimIndentation(e){if(!e)return"";let r;return e.split("\n").map(o=>{let i=r;return o.length>0&&(i=isNaN(i)?o.search(/\S|$/):Math.min(o.search(/\S|$/),i)),isNaN(r)&&(r=i),i?o.substring(i):o}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(V(jr),V(qb),V(Ec,8),V(mB,8),V(vB,8),V(gh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Yb=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get srcRelativeLink(){return this._srcRelativeLink}set srcRelativeLink(e){this._srcRelativeLink=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,r,o){this.element=e,this.markdownService=r,this.viewContainerRef=o,this.error=new le,this.load=new le,this.ready=new le,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this._srcRelativeLink=!1,this.destroyed$=new ot}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(function WL(t){return Qe((n,e)=>{pn(t).subscribe(Je(e,()=>e.complete(),Nr)),!e.closed&&n.subscribe(e)})}(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,r=!1){let o;this.src&&this.srcRelativeLink&&(o={baseUrl:new URL(this.src,location.origin).pathname});const s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=this.markdownService.parse(e,{decodeHtml:r,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,markedOptions:o,disableSanitizer:this.disableSanitizer});this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,to.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,to.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,r){const o=e.querySelectorAll("pre");for(let i=0;i{const a=r[s];if(a){const l=this.toLispCase(s);o.item(i).setAttribute(l,a.toString())}})}toLispCase(e){const r=e.match(/([A-Z])/g);if(!r)return e;let o=e.toString();for(let i=0,s=r.length;i{class t{static forRoot(e){return{ngModule:t,providers:[Tc,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:qb,useValue:e&&null!=e.sanitize?e.sanitize:Ue.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[tc]}),t})();var Zb;!function(t){let n;var o;let e,r;(o=n=t.SecurityLevel||(t.SecurityLevel={})).Strict="strict",o.Loose="loose",o.Antiscript="antiscript",o.Sandbox="sandbox",function(o){o.Base="base",o.Forest="forest",o.Dark="dark",o.Default="default",o.Neutral="neutral"}(e=t.Theme||(t.Theme={})),function(o){o[o.Debug=1]="Debug",o[o.Info=2]="Info",o[o.Warn=3]="Warn",o[o.Error=4]="Error",o[o.Fatal=5]="Fatal"}(r=t.LogLevel||(t.LogLevel={}))}(Zb||(Zb={}));let Xb=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(w(Dr),w(Wt))},t.\u0275dir=ue({type:t}),t})(),So=(()=>{class t extends Xb{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=ue({type:t,features:[Le]}),t})();const hr=new j("NgValueAccessor"),SB={provide:hr,useExisting:ze(()=>Po),multi:!0};let Po=(()=>{class t extends So{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&v("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[et([SB]),Le]}),t})();const PB={provide:hr,useExisting:ze(()=>It),multi:!0},IB=new j("CompositionEventMode");let It=(()=>{class t extends Xb{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function OB(){const t=Wr()?Wr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(w(Dr),w(Wt),w(IB,8))},t.\u0275dir=ue({type:t,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(e,r){1&e&&v("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[et([PB]),Le]}),t})();function no(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const jt=new j("NgValidators"),ro=new j("NgAsyncValidators");function kc(t){return null}function sM(t){return null!=t}function aM(t){return Ds(t)?bt(t):t}function lM(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function cM(t,n){return n.map(e=>e(t))}function uM(t){return t.map(n=>function kB(t){return!t.validate}(n)?n:e=>n.validate(e))}function Kh(t){return null!=t?function dM(t){if(!t)return null;const n=t.filter(sM);return 0==n.length?null:function(e){return lM(cM(e,n))}}(uM(t)):null}function Qh(t){return null!=t?function pM(t){if(!t)return null;const n=t.filter(sM);return 0==n.length?null:function(e){return function xB(...t){const n=Af(t),{args:e,keys:r}=aw(t),o=new xe(i=>{const{length:s}=e;if(!s)return void i.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{d||(d=!0,c--),a[u]=g},()=>l--,void 0,()=>{(!l||!d)&&(c||i.next(r?cw(r,a):a),i.complete())}))}});return n?o.pipe(lw(n)):o}(cM(e,n).map(aM)).pipe(ye(lM))}}(uM(t)):null}function hM(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Jh(t){return t?Array.isArray(t)?t:[t]:[]}function Ac(t,n){return Array.isArray(t)?t.includes(n):t===n}function mM(t,n){const e=Jh(n);return Jh(t).forEach(o=>{Ac(e,o)||e.push(o)}),e}function _M(t,n){return Jh(n).filter(e=>!Ac(t,e))}class vM{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=Kh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Qh(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,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Kt extends vM{get formDirective(){return null}get path(){return null}}class oo extends vM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class CM{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 yt=(()=>{class t extends CM{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(oo,2))},t.\u0275dir=ue({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&Es("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:[Le]}),t})();const ua="VALID",Rc="INVALID",Fi="PENDING",da="DISABLED";function Fc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class MM{constructor(n,e){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(e)}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===ua}get invalid(){return this.status===Rc}get pending(){return this.status==Fi}get disabled(){return this.status===da}get enabled(){return this.status!==da}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(mM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_M(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_M(n,this._rawAsyncValidators))}hasValidator(n){return Ac(this._rawValidators,n)}hasAsyncValidator(n){return Ac(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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Fi,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=da,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=ua,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!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===ua||this.status===Fi)&&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(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?da:ua}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Fi,this._hasOwnPendingAsyncValidator=!0;const e=aM(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}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 le,this.statusChanges=new le}_calculateStatus(){return this._allControlsDisabled()?da:this.errors?Rc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fi)?Fi:this._anyControlsHaveStatus(Rc)?Rc:ua}_anyControlsHaveStatus(n){return this._anyControls(e=>e.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){Fc(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 LB(t){return Array.isArray(t)?Kh(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function BB(t){return Array.isArray(t)?Qh(t):t||null}(this._rawAsyncValidators)}}const Li=new j("CallSetDisabledState",{providedIn:"root",factory:()=>Lc}),Lc="always";function pa(t,n,e=Lc){(function af(t,n){const e=function fM(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(hM(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=function gM(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(hM(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Hc(n._rawValidators,o),Hc(n._rawAsyncValidators,o)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function $B(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DM(t,n)})}(t,n),function jB(t,n){const e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DM(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function HB(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Hc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function DM(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function SM(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function PM(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const OM=class extends MM{constructor(n=null,e,r){super(function nf(t){return(Fc(t)?t.validators:t)||null}(e),function rf(t,n){return(Fc(n)?n.asyncValidators:t)||null}(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=PM(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){SM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){SM(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){PM(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}},KB={provide:oo,useExisting:ze(()=>pt)},kM=(()=>Promise.resolve())();let pt=(()=>{class t extends oo{constructor(e,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new OM,this._registered=!1,this.name="",this.update=new le,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function uf(t,n){if(!n)return null;let e,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===It?e=i:function WB(t){return Object.getPrototypeOf(t.constructor)===So}(i)?r=i:o=i}),o||r||e||null}(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function cf(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){pa(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(e){kM.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=0!==r&&function Mi(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(r);kM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Bc(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(w(Kt,9),w(jt,10),w(ro,10),w(hr,10),w($l,8),w(Li,8))},t.\u0275dir=ue({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[et([KB]),Le,nn]}),t})();const JB={provide:hr,useExisting:ze(()=>Uc),multi:!0};let Uc=(()=>{class t extends So{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&v("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[et([JB]),Le]}),t})(),AM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})();const lV={provide:hr,useExisting:ze(()=>Oo),multi:!0};function HM(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Oo=(()=>{class t extends So{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=HM(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function cV(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&v("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[et([lV]),Le]}),t})(),fa=(()=>{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(HM(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(Wt),w(Dr),w(Oo,9))},t.\u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const uV={provide:hr,useExisting:ze(()=>gf),multi:!0};function $M(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let gf=(()=>{class t extends So{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const o=e.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue($M(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue($M(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(Wt),w(Dr),w(gf,9))},t.\u0275dir=ue({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function jM(t){return"number"==typeof t?t:parseFloat(t)}let Io=(()=>{class t{constructor(){this._validator=kc}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):kc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ue({type:t,features:[nn]}),t})();const pV={provide:jt,useExisting:ze(()=>jc),multi:!0};let jc=(()=>{class t extends Io{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>jM(e),this.createValidator=e=>function Jb(t){return n=>{if(no(n.value)||no(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=ue({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&ir("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[et([pV]),Le]}),t})();const hV={provide:jt,useExisting:ze(()=>zc),multi:!0};let zc=(()=>{class t extends Io{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>jM(e),this.createValidator=e=>function Qb(t){return n=>{if(no(n.value)||no(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[AM]}),t})(),bV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Li,useValue:e.callSetDisabledState??Lc}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[yV]}),t})();function MV(t,n){if(1&t&&(p(0,"p",12),f(1),h()),2&t){const e=D();_(1),ve(e.wrongMessage)}}let ZM=(()=>{class t{constructor(e,r,o){this.apiService=e,this.location=r,this.localStorageService=o,this.enteredPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage="",this.type="password",this.rememberMe=!1,this.stayLoggedIn=!1,this.rememberMe=o.getRememberPage(),this.stayLoggedIn=o.getStayLoggedIn();let i=o.getUserName();null!=i&&(this.entereduserName=i);let s=o.getPassword();null!=s&&(this.enteredPassword=s,this.submit())}submit(){this.apiService.checkUser(this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.level>0&&(X.userLevel=e.level,X.userName=e.username,X.password=this.enteredPassword,(this.rememberMe||this.stayLoggedIn)&&(this.localStorageService.setUserName(this.entereduserName),this.localStorageService.setPassword(this.enteredPassword)),this.localStorageService.setStayLoggedIn(this.stayLoggedIn),this.close())},error:e=>{this.wrongMessage=e.message,this.isWrong=!0,this.enteredPassword="",this.entereduserName=""}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Yr),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-log-in"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:21,vars:7,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"rememberMe"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"label",3,"click"],[1,"stayLoggedIn"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Log in"),h(),I(4,MV,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"div",6)(10,"input",7),v("ngModelChange",function(i){return r.rememberMe=i}),h(),p(11,"p",8),v("click",function(){return r.rememberMe=!r.rememberMe}),f(12,"Remember me"),h()(),p(13,"div",9)(14,"input",7),v("ngModelChange",function(i){return r.stayLoggedIn=i}),h(),p(15,"p",8),v("click",function(){return r.stayLoggedIn=!r.stayLoggedIn}),f(16,"Stay logged in"),h()(),p(17,"button",10),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Submit "),h(),p(19,"button",11),v("click",function(){return r.viewPassword()}),f(20),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("type",r.type)("ngModel",r.enteredPassword),_(2),C("ngModel",r.rememberMe),_(4),C("ngModel",r.stayLoggedIn),_(6),Xe(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Pe,It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:350px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:45%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:45%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:30%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:60%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.stayLoggedIn[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function XM(t,n,e,r,o,i,s){try{var a=t[i](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(r,o)}function Bi(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var i=t.apply(n,e);function s(l){XM(i,r,o,s,a,"next",l)}function a(l){XM(i,r,o,s,a,"throw",l)}s(void 0)})}}let To=(()=>{class t{constructor(e){this.apiService=e,this.chapters=[],this.allChapters=[],this.initDone=!1,this.errorChapter=new Tb("Error 404","",[new Yh("**_This chapter does not exist. Please check the URL._**")]),this.currentChapter=this.errorChapter,this.init()}init(){var e=this;return Bi(function*(){if(!e.initDone){e.allChapters=yield e.apiService.getAllChapters().toPromise();for(let r of e.allChapters){void 0===r.Password&&(r.Password=""),void 0===r.Language&&(r.Language=""),void 0===r.Author&&(r.Author=""),void 0===r.IsPrivate&&(r.IsPrivate=!1),void 0===r.Description&&(r.Description=""),void 0===r.Pages&&(r.Pages=[]);for(let o of r.Pages)void 0===o.Content&&(o.Content=""),void 0===o.Hint&&(o.Hint=""),void 0===o.Result&&(o.Result="");""===r.Password&&sa.verifyChapter(r.Title,"")}e.allChapters=e.sortChaptersAlphabetically(e.allChapters),e.chapters=e.allChapters,e.initDone=!0}})()}sortChaptersAlphabetically(e){return e.sort((r,o)=>r.Title.localeCompare(o.Title))}getChapterByName(e,r){e=e.toLowerCase();for(let o of this.chapters)if(r){if(o.Title.replace(/\s/g,"-").toLowerCase()==e)return o}else if(o.Title.toLowerCase()==e)return o;return this.errorChapter}}return t.\u0275fac=function(e){return new(e||t)(V(ke))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_f=(()=>{class t{constructor(e){this.apiService=e,this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server",this.init()}init(){this.apiService.getVersion().subscribe({next:e=>{this.version=e.version,this.date=e.date,this.notes=e.notes.split(";"),this.instanceName=e.instanceName},error:e=>{this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server"}})}}return t.\u0275fac=function(e){return new(e||t)(V(ke))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vi=(()=>{class t{constructor(e){this.localStorageService=e,this.darkModeEnabled=!1;let r=this.localStorageService.getColorScheme();null==r&&(r=this.detectPrefersColorScheme()),"dark"===r?this.darkMode():this.lightMode()}isDarkModeEnabled(){return this.darkModeEnabled}darkMode(){document.documentElement.setAttribute("data-theme","dark"),this.darkModeEnabled=!0,this.localStorageService.setColorScheme(!0)}lightMode(){document.documentElement.setAttribute("data-theme","light"),this.darkModeEnabled=!1,this.localStorageService.setColorScheme(!1)}funkyMode(){document.documentElement.setAttribute("data-theme","funky"),this.darkModeEnabled=!0}oceanMode(){document.documentElement.setAttribute("data-theme","ocean"),this.darkModeEnabled=!1}sunsetMode(){document.documentElement.setAttribute("data-theme","sunset"),this.darkModeEnabled=!1}rubyMode(){document.documentElement.setAttribute("data-theme","ruby"),this.darkModeEnabled=!0}coralMode(){document.documentElement.setAttribute("data-theme","coral"),this.darkModeEnabled=!1}lavenderMode(){document.documentElement.setAttribute("data-theme","lavender"),this.darkModeEnabled=!0}detectPrefersColorScheme(){return"not all"!==window.matchMedia("(prefers-color-scheme)").media&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}return t.\u0275fac=function(e){return new(e||t)(V(at))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),KM=(()=>{class t{constructor(){this.color="var(--primary-color)"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-loading-screen"]],inputs:{color:"color"},decls:15,vars:24,consts:[[1,"loadingscrren"],[1,"background"],[1,"lds-default"]],template:function(e,r){1&e&&(p(0,"div",0),K(1,"div",1),p(2,"div",2),K(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div")(10,"div")(11,"div")(12,"div")(13,"div")(14,"div"),h()()),2&e&&(_(3),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color))},styles:[".background[_ngcontent-%COMP%]{width:100%;height:100%;position:fixed;top:0;left:0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.lds-default[_ngcontent-%COMP%]{display:inline-block;width:80px;height:80px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;width:6px;height:6px;border-radius:50%;animation:_ngcontent-%COMP%_lds-default 1.2s linear infinite}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s;top:37px;left:66px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.1s;top:22px;left:62px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.2s;top:11px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.3s;top:7px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.4s;top:11px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.5s;top:22px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.6s;top:37px;left:7px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.7s;top:52px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(9){animation-delay:-.8s;top:62px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(10){animation-delay:-.9s;top:66px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(11){animation-delay:-1s;top:62px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes _ngcontent-%COMP%_lds-default{0%,20%,80%,to{transform:scale(1)}50%{transform:scale(1.5)}}"]}),t})();function DV(t,n){if(1&t){const e=Y();p(0,"button",6),v("click",function(){return A(e),N(D().deploy())}),f(1,"Deploy"),h()}}function EV(t,n){if(1&t){const e=Y();p(0,"button",11),v("click",function(){return A(e),N(D().toggleLogIn())})("keydown.control.alt.l",function(){return A(e),N(D().toggleLogIn())},!1,Te),f(1," Log in "),h()}}function xV(t,n){if(1&t){const e=Y();p(0,"button",12),v("click",function(){return A(e),N(D().logOut())}),f(1," Log out "),h()}}function SV(t,n){1&t&&K(0,"app-loading-screen",13),2&t&&C("color","var(--secondary-color)")}let PV=(()=>{class t{constructor(e,r,o,i){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.apiService=i,this.logIn=!1,this.isLoading=!1}increaseFontSize(){this.localStorageService.setFontSize(this.localStorageService.getFontSize()+2)}decreaseFontSize(){let e=this.localStorageService.getFontSize();e>2&&this.localStorageService.setFontSize(e-2)}getFontSize(){return this.localStorageService.getFontSize()}toggleLogIn(){this.logIn=!this.logIn,this.logIn&&this.router.navigate(["/login"])}logOut(){X.userLevel=0,X.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}deploy(){2!=X.userLevel?(this.isLoading=!0,this.apiService.deployAll(X.userName,X.password).subscribe({next:e=>{this.isLoading=!1,e.status?De.showNotification("Success",e.message,-1):De.showNotification("Unsuccessful",e.message,-1,!0)},error:e=>{this.isLoading=!1,De.showNotification("ERROR","Error deploying: "+e.message+"!",-1,!0)}})):this.router.navigate(["/deploy"])}getuserLevel(){return X.userLevel}getUserName(){return X.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}goToAdvancedSettings(){this.router.navigate(["/settings/storage"])}hoToHelp(){this.router.navigate(["/help"])}toggleDarkMode(){this.colorSchemeService.darkModeEnabled=!this.colorSchemeService.darkModeEnabled,this.colorSchemeService.darkModeEnabled?this.colorSchemeService.darkMode():this.colorSchemeService.lightMode()}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(Vi),w(at),w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-settings-short"]],hostBindings:function(e,r){1&e&&v("keydown.control.alt.l",function(i){return r.toggleLogIn(i)},0,Te)},decls:18,vars:6,consts:[[1,"settings"],[1,"first",3,"click"],[1,"dividedButton"],[1,"smallButton",2,"margin-left","10px",3,"click"],[1,"text"],[1,"smallButton",2,"margin-right","10px",3,"click"],[3,"click"],[3,"click",4,"ngIf"],["class","last",3,"click","keydown.control.alt.l",4,"ngIf"],["class","last",3,"click",4,"ngIf"],[3,"color",4,"ngIf"],[1,"last",3,"click","keydown.control.alt.l"],[1,"last",3,"click"],[3,"color"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),v("click",function(){return r.toggleDarkMode()}),f(2),h(),p(3,"div",2)(4,"button",3),v("click",function(){return r.decreaseFontSize()}),f(5," - "),h(),p(6,"p",4),f(7),h(),p(8,"button",5),v("click",function(){return r.increaseFontSize()}),f(9," + "),h()(),p(10,"button",6),v("click",function(){return r.goToAdvancedSettings()}),f(11,"Advanced"),h(),p(12,"button",6),v("click",function(){return r.hoToHelp()}),f(13,"Help"),h(),I(14,DV,2,0,"button",7),I(15,EV,2,0,"button",8),I(16,xV,2,0,"button",9),h(),I(17,SV,1,1,"app-loading-screen",10)),2&e&&(_(2),Xe(" ",r.getDarkModeEnabled()?"Lightmode":"Darkmode"," "),_(5),ve("Font Size "+r.getFontSize()),_(7),C("ngIf",r.getuserLevel()>0),_(1),C("ngIf",0==r.getuserLevel()),_(1),C("ngIf",r.getuserLevel()>0),_(1),C("ngIf",r.isLoading))},dependencies:[Pe,KM],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;right:10px;top:90px;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:199px;font-size:20px;display:flex;align-items:center;justify-content:center}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color);text-align:center;justify-content:center;width:45px;height:30px;border-radius:5px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:201px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function OV(t,n){if(1&t){const e=Y();p(0,"button",2),v("click",function(){const i=A(e).$implicit;return N(D().goToPage(i.page))}),f(1),h()}if(2&t){const e=n.$implicit,r=n.index;En((0==r?"first ":"")+(r==D().results.length-1?"last":"")),_(1),Xe(" ",e.page+": ..."+e.text+"..."," ")}}let IV=(()=>{class t{constructor(){this.results=[],this.pageChange=new le}goToPage(e){this.pageChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-chapter-search"]],inputs:{results:"results"},outputs:{pageChange:"pageChange"},decls:2,vars:1,consts:[[1,"settings"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),I(1,OV,2,3,"button",1),h()),2&e&&(_(1),C("ngForOf",r.results))},dependencies:[Pn],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;top:80px;right:0;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box;z-index:10}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:400px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function TV(t,n){if(1&t){const e=Y();p(0,"app-chapter-search",3),v("pageChange",function(o){return A(e),N(D().pageChange.emit(o))}),h()}2&t&&C("results",D().searchChapterResult)}let kV=(()=>{class t{constructor(e,r,o){this.chapterManager=e,this.colorSchemeService=r,this.router=o,this.searchValue="",this.noMatches=!1,this.slideOut=!1,this.searchChapterResult=[],this.close=new le,this.pageChange=new le,this.chapter=null,o.events.forEach(i=>{this.closeSearchBar()})}closeSearchBar(){this.slideOut=!0,this.searchValue="",this.onSearchChange(),setTimeout(()=>{this.close.emit(),this.slideOut=!1},500)}onSearchChange(){null==this.chapter?this.searchAllChapters():this.searchChapter()}searchChapter(){if(null==this.chapter||(this.searchChapterResult=[],""==this.searchValue))return;let e=this.searchValue.toLowerCase();e.split(" ");for(let o=0;o0&&(s.push(i.Hint),s.push(i.Result));for(let a of s){if(!a.toLowerCase().includes(e))continue;let l=a.toLowerCase().indexOf(e),c=l,u=0;for(;c>0&&u<2;)c--," "==a[c]&&u++;let d=l;for(u=0;d{class t{constructor(e,r,o){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.showSettings=!1,this.enableSearchBar=!0,this.chapter=null,this.pageChange=new le,this.searchBarOn=!1}logIn(){this.router.navigate(["/login"])}logOut(){X.userLevel=0,X.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}goBack(){this.router.navigate(["/"])}toggleSettings(){this.showSettings=!this.showSettings}getUserLevel(){return X.userLevel}getUserName(){return X.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}turnOnSearchBar(){this.searchBarOn=!0}turnOffSearchBar(){this.searchBarOn=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(Vi),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-header"]],inputs:{enableSearchBar:"enableSearchBar",chapter:"chapter"},outputs:{pageChange:"pageChange"},decls:10,vars:7,consts:[["class","background",3,"click",4,"ngIf"],["src","assets/imgs/InterSystemsWOOPLogo.png","alt","logo",1,"logo",3,"click"],["class","searchButton","alt","Search",3,"src","click",4,"ngIf"],["alt","Settings",1,"settingsButton",3,"src","click"],["class","userLabel",3,"right","click",4,"ngIf"],["class","searchBar",3,"chapter","close","pageChange",4,"ngIf"],[4,"ngIf"],[1,"background",3,"click"],["alt","Search",1,"searchButton",3,"src","click"],[1,"userLabel",3,"click"],[1,"userLabelExtended"],[1,"searchBar",3,"chapter","close","pageChange"]],template:function(e,r){1&e&&(I(0,AV,1,0,"div",0),p(1,"header")(2,"button")(3,"img",1),v("click",function(){return r.goBack()}),h()(),I(4,NV,1,1,"img",2),p(5,"img",3),v("click",function(){return r.toggleSettings()}),h(),I(6,RV,6,4,"p",4),I(7,FV,3,2,"p",4),I(8,LV,1,1,"app-search-bar-header",5),h(),I(9,BV,1,0,"app-settings-short",6)),2&e&&(C("ngIf",r.showSettings),_(4),C("ngIf",r.enableSearchBar&&!r.searchBarOn),_(1),C("src","assets/imgs/"+(r.getDarkModeEnabled()?"darkmode":"lightmode")+"/settings.png",tr),_(1),C("ngIf",r.getUserLevel()>0&&!r.searchBarOn),_(1),C("ngIf",0==r.getUserLevel()&&!r.searchBarOn),_(1),C("ngIf",r.enableSearchBar&&r.searchBarOn),_(1),C("ngIf",r.showSettings))},dependencies:[Pe,PV,kV],styles:["header[_ngcontent-%COMP%]{box-shadow:2px 2px 2px #0000001a;background-color:var(--header-color);z-index:1000}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;cursor:pointer;background:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{position:absolute;top:10px;font-size:20px;opacity:.3;color:var(--text-color);cursor:pointer;transition:.3s}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{opacity:0}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:1}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover .userLabelExtended[_ngcontent-%COMP%]{opacity:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:20px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:1;animation-name:_ngcontent-%COMP%_rotate;animation-duration:1.2s;animation-fill-mode:forwards}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{color:var(--text-color);position:absolute;right:85px;height:35px;width:35px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:360px;height:35px;width:35px;top:22px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:25px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]{position:absolute;height:5px;background-color:var(--text-color);border-radius:5px;right:0;width:100%}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(1){top:0}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(2){top:10px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(3){top:20px}.background[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.logo[_ngcontent-%COMP%]{height:45px;margin-top:16px;margin-bottom:16px;margin-left:50px;transition:.3s}.logo[_ngcontent-%COMP%]:hover{scale:1.1}@media screen and (max-width: 800px){.logo[_ngcontent-%COMP%]{height:30px;margin-left:10px}.logo[_ngcontent-%COMP%]:hover{scale:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{right:10px;height:30px;width:30px;top:20px}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:.3;animation:none}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{right:55px;height:25px;width:25px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:0;height:70px;width:100%;top:18px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{top:15px;font-size:15px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:.3}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})();function VV(t,n){1&t&&(p(0,"p")(1,"i"),f(2,"Private"),h()())}function HV(t,n){if(1&t&&(p(0,"p")(1,"i"),f(2,"Description"),h(),f(3),h()),2&t){const e=D();_(3),Xe("",": "+e.chapter.Description," ")}}let $V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-chapter-meta-data"]],inputs:{chapter:"chapter"},decls:19,vars:6,consts:[[1,"container"],[4,"ngIf"]],template:function(e,r){1&e&&(p(0,"div",0),I(1,VV,3,0,"p",1),p(2,"p")(3,"i"),f(4,"Title"),h(),f(5),h(),p(6,"p")(7,"i"),f(8,"Author"),h(),f(9),h(),p(10,"p")(11,"i"),f(12,"Language"),h(),f(13),h(),p(14,"p")(15,"i"),f(16,"Pages"),h(),f(17),h(),I(18,HV,4,1,"p",1),h()),2&e&&(_(1),C("ngIf",r.chapter.IsPrivate),_(4),ve(": "+r.chapter.Title),_(4),ve(": "+r.chapter.Author),_(4),ve(": "+r.chapter.Language),_(4),ve(": "+r.chapter.Pages.length),_(1),C("ngIf",""!=r.chapter.Description))},dependencies:[Pe],styles:[".container[_ngcontent-%COMP%]{border:none;border-radius:10px;box-shadow:2px 2px 2px #0003;padding:10px;width:300px;transition:.3s;color:var(--inverted-text-color);background-color:var(--primary-color)}"]}),t})();function UV(t,n){if(1&t&&(p(0,"p",15),f(1),h()),2&t){const e=D();_(1),ve(e.wrongText)}}let jV=(()=>{class t{constructor(e,r){this.apiService=e,this.chapterManger=r,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.isWrong=!1,this.wrongText="",this.closeEmitter=new le}submit(){var e=this;return Bi(function*(){if(""===e.name)return e.isWrong=!0,void(e.wrongText="Please enter a name");if(e.name.includes("#"))return e.isWrong=!0,void(e.wrongText="Chapter name cannot contain #");if(e.name.includes("~"))return e.isWrong=!0,void(e.wrongText="Chapter name cannot contain ~");let r=new Tb(e.name,X.userName,[],e.password,e.language,e.description,e.isPrivate);e.apiService.addNewChapter(r).subscribe({next:o=>{o.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.isPrivate=!1,e.chapterManger.chapters.push(r)):(e.isWrong=!0,e.wrongText="Something went wrong!")},error:o=>{e.isWrong=!0,e.wrongText=o.message}})})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(To))},t.\u0275cmp=ee({type:t,selectors:[["app-chapter-new"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate"},outputs:{closeEmitter:"closeEmitter"},decls:24,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","title","placeholder","Chapter name",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","250px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","270px"],["type","checkbox","name","private",1,"userNameInput",2,"top","320px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","340px"],["name","description","placeholder","Description",2,"top","460px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Create new Chapter"),h(),I(4,UV,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"p",4),f(8,"Name"),h(),p(9,"input",5),v("ngModelChange",function(i){return r.name=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"p",6),f(11,"Language"),h(),p(12,"input",7),v("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),h(),p(13,"p",8),f(14,"Password"),h(),p(15,"input",9),v("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),h(),p(16,"p",10),f(17,"Private"),h(),p(18,"input",11),v("ngModelChange",function(i){return r.isPrivate=i}),h(),p(19,"p",12),f(20,"Description"),h(),p(21,"textarea",13),v("ngModelChange",function(i){return r.description=i}),h(),p(22,"button",14),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(23," Create "),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(5),C("ngModel",r.name),_(3),C("ngModel",r.language),_(3),C("ngModel",r.password),_(3),C("ngModel",r.isPrivate),_(3),C("ngModel",r.description))},dependencies:[Pe,It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:650px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})(),QM=(()=>{class t{constructor(){this.sureEmitter=new le}close(){this.sureEmitter.emit(!1)}yes(){this.sureEmitter.emit(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-are-you-sure"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{sureEmitter:"sureEmitter"},decls:11,vars:0,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Are you sure?"),h(),p(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"button",4),v("click",function(){return r.yes()}),f(8," Yes "),h(),p(9,"button",5),v("click",function(){return r.close()}),f(10," No "),h()()())},styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:150px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function zV(t,n){if(1&t){const e=Y();p(0,"div",12)(1,"button",13),v("click",function(){A(e);const o=D(2).$implicit;return N(D().setChapterToDelete(o))}),K(2,"img",14),h(),p(3,"button",13),v("click",function(){A(e);const o=D(2).$implicit;return N(D().onChapterEditSelected(o.Title))}),K(4,"img",15),h()()}if(2&t){const e=D(3);_(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/delete.png",tr),_(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/edit.png",tr)}}function GV(t,n){if(1&t&&(p(0,"i"),f(1),h()),2&t){const e=D(2).$implicit;_(1),ve(e.Title)}}function WV(t,n){if(1&t&&(p(0,"div"),f(1),h()),2&t){const e=D(2).$implicit;_(1),ve(e.Title)}}function qV(t,n){if(1&t){const e=Y();p(0,"div"),I(1,zV,5,2,"div",8),p(2,"button",9),v("click",function(){A(e);const o=D().$implicit;return N(D().onChapterSelected(o.Title))}),I(3,GV,2,1,"i",10),I(4,WV,2,1,"div",10),h(),K(5,"app-chapter-meta-data",11),h()}if(2&t){const e=D().$implicit,r=D();En("row"+(2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author?" edit":"")),_(1),C("ngIf",2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author),_(2),C("ngIf",e.IsPrivate),_(1),C("ngIf",!e.IsPrivate),_(1),C("chapter",e)}}function YV(t,n){if(1&t&&(p(0,"div")(1,"div",6),I(2,qV,6,6,"div",7),h()()),2&t){const e=n.$implicit,r=D();_(2),C("ngIf",!e.IsPrivate||2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author)}}function ZV(t,n){1&t&&(p(0,"i",16),f(1,"No Chapters"),h())}function XV(t,n){if(1&t){const e=Y();p(0,"div",17)(1,"button",13),v("click",function(){return A(e),N(D().toggleNewChapter())}),f(2,"+"),h()()}}function KV(t,n){if(1&t){const e=Y();p(0,"app-chapter-new",18),v("closeEmitter",function(){return A(e),N(D().toggleNewChapter())}),h()}}function QV(t,n){if(1&t){const e=Y();p(0,"app-are-you-sure",19),v("sureEmitter",function(o){return A(e),N(D().areYouSure(o))}),h()}}let JV=(()=>{class t{constructor(e,r){this.apiService=e,this.colorSchemeService=r,this.chapters=[],this.chapterSelected=new le,this.chapterEditSelected=new le,this.newChapter=!1,this.chapterToDelete=void 0}onChapterSelected(e){this.chapterSelected.emit(e)}onChapterEditSelected(e){this.chapterEditSelected.emit(e)}setChapterToDelete(e){this.chapterToDelete=e}areYouSure(e){e&&this.deleteChapter(this.chapterToDelete),this.chapterToDelete=void 0}deleteChapter(e){this.apiService.deleteChapter(e).subscribe({next:r=>{r.status?(this.chapters.splice(this.chapters.indexOf(e),1),De.showNotification("Chapter deleted","The chapter was deleted successfully!")):De.showNotification("Chapter could not be deleted","The chapter could not be deleted!",5e3,!0)},error:r=>{De.showNotification("ERROR","Chapter could not be deleted: "+r.message+"!",-1,!0)}})}isChapterAccessible(e){return 2==this.getuserLevel()||1==this.getuserLevel()&&this.getuserName()==e.Author}getuserLevel(){return X.userLevel}getuserName(){return X.userName}toggleNewChapter(){this.newChapter=!this.newChapter}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Vi))},t.\u0275cmp=ee({type:t,selectors:[["app-chapter-selection"]],hostBindings:function(e,r){1&e&&v("keydown.control.alt.n",function(i){return r.toggleNewChapter(i)},0,Te)},inputs:{chapters:"chapters"},outputs:{chapterSelected:"chapterSelected",chapterEditSelected:"chapterEditSelected"},decls:6,vars:5,consts:[[1,"container"],[4,"ngFor","ngForOf"],["class","noChapters",4,"ngIf"],["class","newButton",4,"ngIf"],[3,"closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"chapterContainer"],[3,"class",4,"ngIf"],["class","editButton",4,"ngIf"],[1,"chapterButton",3,"click"],[4,"ngIf"],[1,"metaData",3,"chapter"],[1,"editButton"],[3,"click"],["alt","Delete",3,"src"],["alt","Edit",3,"src"],[1,"noChapters"],[1,"newButton"],[3,"closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(p(0,"div",0),I(1,YV,3,1,"div",1),I(2,ZV,2,0,"i",2),I(3,XV,3,0,"div",3),h(),I(4,KV,1,0,"app-chapter-new",4),I(5,QV,1,0,"app-are-you-sure",5)),2&e&&(_(1),C("ngForOf",r.chapters),_(1),C("ngIf",0==r.chapters.length),_(1),C("ngIf",r.getuserLevel()>0),_(1),C("ngIf",r.newChapter),_(1),C("ngIf",null!=r.chapterToDelete))},dependencies:[Pn,Pe,$V,jV,QM],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .metaData[_ngcontent-%COMP%]{display:none;position:fixed;right:20px;bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:500px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--secondary-color);transform:scale(1.1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:block}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{height:20px;margin-right:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:20px;width:20px;margin:0 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none;border:none;margin:10px 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:100px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}.edit[_ngcontent-%COMP%]{padding-right:112px}.noChapters[_ngcontent-%COMP%]{color:var(--text-color);font-size:20px}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{width:400px;border-radius:0}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);transform:scale(1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:none}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{margin-right:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}.edit[_ngcontent-%COMP%]{padding-right:0}}"]}),t})();function e3(t,n){if(1&t){const e=Y();p(0,"div",6)(1,"app-chapter-selection",7),v("chapterSelected",function(o){return A(e),N(D().selectChapter(o))})("chapterEditSelected",function(o){return A(e),N(D().selectEditChapter(o))}),h()()}if(2&t){const e=D();_(1),C("chapters",e.getChapters())}}let t3=(()=>{class t{constructor(e,r,o,i){this.router=e,this.apiService=r,this.chapterManager=o,this.metaDataService=i,this.title="InterSystemsWOOP",this.isServerOnline=!1}ngOnInit(){this.chapterManager.init(),this.checkIfServerOnline(),setInterval(()=>{this.checkIfServerOnline(),!this.isServerOnline&&"/"==this.router.url&&this.router.navigate(["/error"])},5e3)}goToServerSettings(){this.router.navigate(["settings/server"])}checkIfServerOnline(){this.apiService.isServerOnline().subscribe({next:e=>{this.isServerOnline=!0},error:e=>{this.isServerOnline=!1}})}selectChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-")])}selectEditChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-"),"edit"])}goToWhatsNew(){this.router.navigate(["/info"])}getLatestVersion(){return this.metaDataService.version}getInstancename(){return this.metaDataService.instanceName}getChapters(){return this.chapterManager.chapters}getuserLevel(){return X.userLevel}getuserName(){return X.userName}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(ke),w(To),w(_f))},t.\u0275cmp=ee({type:t,selectors:[["app-home"]],decls:10,vars:5,consts:[[1,"sticky"],["class","container",4,"ngIf"],[1,"serverStatus"],[3,"click"],[1,"statusIcon",3,"click"],[1,"version"],[1,"container"],[3,"chapters","chapterSelected","chapterEditSelected"]],template:function(e,r){1&e&&(K(0,"app-header",0),I(1,e3,2,1,"div",1),p(2,"div",2)(3,"p",3),v("click",function(){return r.goToServerSettings()}),f(4),h(),p(5,"div",4),v("click",function(){return r.goToServerSettings()}),h()(),p(6,"div",5)(7,"p",3),v("click",function(){return r.goToWhatsNew()}),p(8,"i"),f(9),h()()()),2&e&&(_(1),C("ngIf",r.isServerOnline),_(3),ve(r.getInstancename()),_(1),He("background",r.isServerOnline?"green":"red"),_(4),ve("unknown"==r.getLatestVersion()?"":"v"+r.getLatestVersion()))},dependencies:[Pe,fr,JV],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:100px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}.serverStatus[_ngcontent-%COMP%]{position:fixed;bottom:5px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.serverStatus[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}.serverStatus[_ngcontent-%COMP%] .statusIcon[_ngcontent-%COMP%]{margin-left:10px;margin-top:3px;height:10px;width:10px;border-radius:50%}.version[_ngcontent-%COMP%]{position:fixed;bottom:30px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.version[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}@media screen and (max-width: 800px){.serverStatus[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{display:none}}"]}),t})();var JM=F(83);const n3=["codeEle"];function r3(t,n){1&t&&(p(0,"p",12),f(1,"\u2713"),h())}function o3(t,n){if(1&t){const e=Y();p(0,"img",13),v("click",function(){return A(e),N(D().copyCode())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/copy.png",tr)}function i3(t,n){if(1&t&&(p(0,"pre",14),f(1," "),p(2,"code",null,15),f(4),h(),f(5,"\n "),h()),2&t){const e=D();En("test"+(e.copyable?"":" noselect")),_(2),function Xv(t,n,e){Ln(vn,sr,li(O(),t,n,e),!0)}("language-",e.language,""),_(2),Xe("\n ",e.code,"\n ")}}let s3=(()=>{class t{constructor(e){this.colorSchemeService=e,this.code="",this.language="javascript",this.title="mycode",this.copyable=!1,this.copied=!1,this.db=!1}ngAfterViewInit(){JM.highlightElement(this.codeEle.nativeElement)}ngOnChanges(e){e?.code&&this.codeEle?.nativeElement&&(this.codeEle.nativeElement.textContent=this.code,JM.highlightElement(this.codeEle.nativeElement))}toggleCopyable(){0!=X.userLevel&&(this.copyable=!this.copyable)}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}copyCode(){const e=document.createElement("textarea");e.value=this.code,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.copied=!0,setTimeout(()=>{this.copied=!1},1e3)}onDblClick(){this.db=!this.db}}return t.\u0275fac=function(e){return new(e||t)(w(Vi))},t.\u0275cmp=ee({type:t,selectors:[["app-code-window"]],viewQuery:function(e,r){if(1&e&&Ll(n3,5),2&e){let o;Ns(o=Rs())&&(r.codeEle=o.first)}},inputs:{code:"code",language:"language",title:"title",copyable:"copyable"},features:[nn],decls:14,vars:6,consts:[["id","window"],["id","navbar"],["id","window-controls"],[1,"red","dot"],[1,"yellow","dot",3,"dblclick"],[1,"green","dot",3,"dblclick"],[1,"test"],["id","window-title"],["class","copiedMessage",4,"ngIf"],["class","copy","alt","Copy",3,"src","click",4,"ngIf"],[1,"code"],["prism","",3,"class",4,"ngIf"],[1,"copiedMessage"],["alt","Copy",1,"copy",3,"src","click"],["prism",""],["codeEle",""]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"div",2),K(3,"div",3),p(4,"div",4),v("dblclick",function(){return r.onDblClick()}),h(),p(5,"div",5),v("dblclick",function(){return r.toggleCopyable()}),h()(),p(6,"div",6)(7,"div",7),f(8),h(),I(9,r3,2,0,"p",8),I(10,o3,1,1,"img",9),h(),p(11,"div")(12,"div",10),I(13,i3,6,6,"pre",11),h()()()()),2&e&&(En(r.db?"db":""),_(8),ve(r.title),_(1),C("ngIf",r.copied),_(1),C("ngIf",!r.copied&&r.copyable),_(3),C("ngIf",r.language))},dependencies:[Pe],styles:["#snippet-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:red;width:max-content}#window[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-shadow:0 0 10px #0003;overflow:hidden;width:max-content;min-width:200px;padding:18px;background-color:var(--header-color);border-radius:10px;margin-left:20px;max-width:100%}#navbar[_ngcontent-%COMP%]{overflow:hidden;text-align:center}#window-controls[_ngcontent-%COMP%]{display:flex;float:left;margin-top:2px}#window-title[_ngcontent-%COMP%]{margin:0 90px}.dot[_ngcontent-%COMP%]{width:15px;height:15px;border-radius:50%;margin-right:10px;box-shadow:0 0 3px #0000004d}.dot[_ngcontent-%COMP%]:hover{scale:1.2}.copiedMessage[_ngcontent-%COMP%]{opacity:.5;width:25px;height:25px;margin-top:2px}.copy[_ngcontent-%COMP%]{width:25px;height:25px;cursor:pointer;margin-top:2px}.copy[_ngcontent-%COMP%]:hover{scale:1.2}.test[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.red[_ngcontent-%COMP%]{background-color:#ff5f5a}.yellow[_ngcontent-%COMP%]{background-color:#ffbe2e}.green[_ngcontent-%COMP%]{background-color:#2aca44}.test[_ngcontent-%COMP%]{background:var(--header-color);text-shadow:none!important}.code[_ngcontent-%COMP%] .token[_ngcontent-%COMP%]{color:red!important;background:red!important}code[class*=language-][_ngcontent-%COMP%], pre[class*=language-][_ngcontent-%COMP%]{text-shadow:none;color:var(--text-color)}pre[class*=language-][_ngcontent-%COMP%]{padding:0;margin:0;overflow:auto}.noselect[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.db[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin .5s linear;transform:rotate(180deg)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@media screen and (max-width: 800px){#window[_ngcontent-%COMP%]{margin-left:0;max-width:90%}.dot[_ngcontent-%COMP%]:hover{scale:1}}"]}),t})();function a3(t,n){1&t&&K(0,"markdown",6),2&t&&C("data",D().$implicit.code)}function l3(t,n){if(1&t&&K(0,"app-code-window",7),2&t){const e=D().$implicit;C("code",e.code)("language",e.language)("title",e.title)("copyable",e.settings.includes("copy")||e.settings.includes("c"))}}function c3(t,n){if(1&t&&K(0,"img",8),2&t){const e=D().$implicit;(function Rn(t){Ln(Lv,MO,t,!1)})(e.language),C("src",e.code,tr)("alt",e.title)}}function u3(t,n){if(1&t){const e=Y();p(0,"button",9),v("click",function(){A(e);const o=D().$implicit;return N(D().downloadFile(o.code))}),f(1),h()}if(2&t){const e=D().$implicit;_(1),Xe(" ",e.title," ")}}function d3(t,n){if(1&t&&(p(0,"div"),I(1,a3,1,1,"markdown",2),I(2,l3,1,4,"app-code-window",3),I(3,c3,1,4,"img",4),I(4,u3,2,1,"button",5),h()),2&t){const e=n.$implicit;He("font-size",D().getFontSize()+"px"),_(1),C("ngIf","textblock"==e.type),_(1),C("ngIf","codeblock"==e.type),_(1),C("ngIf","image"==e.type),_(1),C("ngIf","file"==e.type)}}let eD=(()=>{class t{constructor(e,r,o,i){this.mdService=e,this.http=r,this.localStorageService=o,this.irisinterfaceService=i,this.data="",this.blocks=[]}ngOnInit(){var e=this;return Bi(function*(){let r=e.data.split("\n");for(let o=0;ou);null!=c?s=c:console.log("error getting image")}e.blocks.push({type:"image",code:s,language:a,title:i})}else if(r[o].startsWith("$$$[")){let i=r[o].split("[")[1].split("]")[0],s=r[o].split("(")[1].split(")")[0];e.blocks.push({type:"file",code:s,language:"",title:i})}else{let i="",s=!1;for(;o{const o=document.createElement("a");o.href="data:text/plain;charset=utf-8,"+encodeURIComponent(r.content),o.download=r.name,o.click()},error:r=>{De.showNotification("ERROR","Error getting file: "+r.message+"!",-1,!0)}})}}return t.\u0275fac=function(e){return new(e||t)(w(Tc),w(Ec),w(at),w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-markdown-content"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"contentBox"],[3,"font-size",4,"ngFor","ngForOf"],[3,"data",4,"ngIf"],[3,"code","language","title","copyable",4,"ngIf"],[3,"src","alt","style",4,"ngIf"],["class","downloadButton",3,"click",4,"ngIf"],[3,"data"],[3,"code","language","title","copyable"],[3,"src","alt"],[1,"downloadButton",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),I(1,d3,5,6,"div",1),h()),2&e&&(_(1),C("ngForOf",r.blocks))},dependencies:[Pn,Pe,Yb,s3],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px;color:var(--text-color)}.downloadButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;cursor:pointer;height:50px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080;margin:0 5px 10px 20px}.downloadButton[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.downloadButton[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}}"]}),t})();function p3(t,n){if(1&t&&(p(0,"div")(1,"h1",2),f(2,"hint"),h(),K(3,"app-markdown-content",1),h()),2&t){const e=D(2);_(3),C("data",e.page.Hint)}}function h3(t,n){if(1&t&&(p(0,"div")(1,"h1",2),f(2,"Result"),h(),K(3,"app-markdown-content",1),h()),2&t){const e=D(2);_(3),C("data",e.page.Result)}}function f3(t,n){if(1&t&&(p(0,"div"),K(1,"app-markdown-content",1),I(2,p3,4,1,"div",0),I(3,h3,4,1,"div",0),h()),2&t){const e=D();_(1),C("data",e.page.Content),_(1),C("ngIf",e.showhint),_(1),C("ngIf",e.showResult)}}let g3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"],[1,"heading"]],template:function(e,r){1&e&&I(0,f3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Pe,eD],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function m3(t,n){if(1&t){const e=Y();p(0,"img",5),v("click",function(){return A(e),N(D().showNext())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",tr)}function _3(t,n){if(1&t){const e=Y();p(0,"img",6),v("click",function(){return A(e),N(D().showPrev())}),h()}2&t&&C("src","assets/imgs/"+(D().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",tr)}function v3(t,n){if(1&t){const e=Y();p(0,"button",7),v("click",function(){return A(e),N(D().showhint())}),f(1,"Show hint"),h()}}function C3(t,n){if(1&t){const e=Y();p(0,"button",7),v("click",function(){return A(e),N(D().showResult())}),f(1,"Show result"),h()}}function y3(t,n){if(1&t){const e=Y();p(0,"button",7),v("click",function(){return A(e),N(D().showPrev())}),f(1,"Previous"),h()}}function w3(t,n){if(1&t){const e=Y();p(0,"button",7),v("click",function(){return A(e),N(D().showNext())}),f(1,"Next"),h()}}let tD=(()=>{class t{constructor(e){this.colorSchemeService=e,this.showNextButton=!0,this.showPrevButton=!0,this.showhintButton=!0,this.showResultButton=!0,this.showNextEmitter=new le,this.showPrevEmitter=new le,this.showhintEmitter=new le,this.showResultEmitter=new le}showNext(){this.showNextEmitter.emit("showNext")}showPrev(){this.showPrevEmitter.emit("showPrev")}showhint(){this.showhintEmitter.emit("showhint")}showResult(){this.showResultEmitter.emit("showResult")}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Vi))},t.\u0275cmp=ee({type:t,selectors:[["app-page-nav-bar"]],hostBindings:function(e,r){1&e&&v("keydown.control.arrowright",function(i){return r.showNext(i)},0,Te)("keydown.control.arrowleft",function(i){return r.showPrev(i)},!1,Te)},inputs:{showNextButton:"showNextButton",showPrevButton:"showPrevButton",showhintButton:"showhintButton",showResultButton:"showResultButton"},outputs:{showNextEmitter:"showNextEmitter",showPrevEmitter:"showPrevEmitter",showhintEmitter:"showhintEmitter",showResultEmitter:"showResultEmitter"},decls:8,vars:6,consts:[["class","nextButton navButton","alt","next",3,"src","click",4,"ngIf"],["class","prevButton navButton","alt","previous",3,"src","click",4,"ngIf"],[1,"showButtons"],[3,"click",4,"ngIf"],[1,"showButtons","mobile"],["alt","next",1,"nextButton","navButton",3,"src","click"],["alt","previous",1,"prevButton","navButton",3,"src","click"],[3,"click"]],template:function(e,r){1&e&&(I(0,m3,1,1,"img",0),I(1,_3,1,1,"img",1),p(2,"div",2),I(3,v3,2,0,"button",3),I(4,C3,2,0,"button",3),h(),p(5,"div",4),I(6,y3,2,0,"button",3),I(7,w3,2,0,"button",3),h()),2&e&&(C("ngIf",r.showNextButton),_(1),C("ngIf",r.showPrevButton),_(2),C("ngIf",r.showhintButton),_(1),C("ngIf",r.showResultButton),_(2),C("ngIf",r.showPrevButton),_(1),C("ngIf",r.showNextButton))},dependencies:[Pe],styles:[".navButton[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:50%;cursor:pointer}.nextButton[_ngcontent-%COMP%]{transform:rotate(180deg);left:93%}.nextButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveRight 1s ease-in-out forwards}.prevButton[_ngcontent-%COMP%]{right:93%}.prevButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveLeft 1s ease-in-out forwards}.showButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 800px){.nextButton[_ngcontent-%COMP%], .prevButton[_ngcontent-%COMP%]{display:none}.mobile[_ngcontent-%COMP%]{display:flex}}@keyframes _ngcontent-%COMP%_moveLeft{0%{transform:translate(0)}to{transform:translate(-20%)}}@keyframes _ngcontent-%COMP%_moveRight{0%{transform:translate(0) rotate(180deg)}to{transform:translate(20%) rotate(180deg)}}"]}),t})();function b3(t,n){if(1&t&&(p(0,"p",7),f(1),h()),2&t){const e=D();_(1),ve(e.wrongText)}}let M3=(()=>{class t{constructor(e){this.apiService=e,this.enteredPassword="",this.isWrong=!1,this.wrongText="",this.type="password",this.chapterName="",this.passwordEntered=new le}submit(){this.apiService.verifyChapter(this.chapterName,this.enteredPassword).subscribe({next:e=>{e.status?(this.passwordEntered.emit(this.enteredPassword),this.isWrong=!1,this.enteredPassword=""):(this.isWrong=!0,this.enteredPassword="",this.wrongText="Wrong password")},error:e=>{this.isWrong=!0,this.wrongText=e.message}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.passwordEntered.emit(void 0),this.isWrong=!1,this.enteredPassword=""}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-password-query"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},inputs:{chapterName:"chapterName"},outputs:{passwordEntered:"passwordEntered"},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Enter Password"),h(),I(4,b3,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"button",5),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(9," Submit "),h(),p(10,"button",6),v("click",function(){return r.viewPassword()}),f(11),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("type",r.type)("ngModel",r.enteredPassword),_(4),Xe(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Pe,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:50%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}"]}),t})();function D3(t,n){if(1&t){const e=Y();p(0,"div")(1,"li")(2,"a",5),v("click",function(){const i=A(e).$implicit;return N(D().selectPage(i.page))}),f(3),h()()()}if(2&t){const e=n.$implicit,r=n.index,o=D();_(1),He("font-size",21-2*e.level,"px")("margin-left",10*(e.level-1),"px"),_(1),En(o.checkIfHeadingIsCurrent(r)?"current":""),_(1),Xe("",e.text," ")}}let nD=(()=>{class t{constructor(){this.event=new le,this.chapter=void 0,this.currentPage=0,this.headings=[]}ngOnInit(){let e=!1;for(let r=0;r=this.headings[e].page&&this.currentPage0?"Page ":"No Pages"),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngForOf",e.chapter.Pages),_(1),C("showPrevButton",0!=e.currentPage&&e.chapter.Pages.length>0)("showNextButton",e.currentPage!=e.chapter.Pages.length-1&&e.chapter.Pages.length>0)("showResultButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Result&&!e.resultVisible)("showhintButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Hint&&!e.hintVisible)}}function I3(t,n){if(1&t){const e=Y();p(0,"app-table-of-content",17),v("event",function(o){return A(e),N(D().onTOCInput(o))}),h()}if(2&t){const e=D();C("chapter",e.chapter)("currentPage",e.currentPage)}}let rD=(()=>{class t{constructor(e,r,o,i){this.router=e,this.route=r,this.chapterManger=o,this.localStorageService=i,this.currentPage=0,this.chapterName="",this.hintVisible=!1,this.resultVisible=!1,this.exportOptionsVisible=!1,this.contentVisible=!0,this.pageInput=1,this.showTOC=!1}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManger.init().then(()=>{let r;this.chapterName.includes("~")&&(r=this.chapterName.split("~")[1].toLowerCase(),this.chapterName=this.chapterName.split("~")[0]),this.chapter=this.chapterManger.getChapterByName(this.chapterName,!0),this.chapter.IsPrivate?2==X.userLevel||1==X.userLevel&&this.chapter.Author==X.userName?this.contentVisible=!0:this.router.navigate(["/login"]):((2==X.userLevel||1==X.userLevel&&this.chapter.Author==X.userName)&&sa.verifyChapter(this.chapter.Title,"",!1),this.contentVisible=sa.isChapterVerified(this.chapter.Title));let o=this.localStorageService.getPageForChapter(this.chapterName);if(o<0&&(o=0),o>this.chapter.Pages.length-1&&(o=this.chapter.Pages.length-1),this.currentPage=o,this.pageInput=this.currentPage+1,null!=r){let i=this.chapter.getPageForHeading(r);-1!=i&&(this.currentPage=i,this.pageInput=this.currentPage+1)}})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:(this.currentPage=this.pageInput-1,this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}verifyChapter(e){null!=e?(sa.verifyChapter(this.chapter.Title,e),this.contentVisible=!0):this.router.navigate(["/"])}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showhint(){this.hintVisible=!0}showResult(){this.resultVisible=!0}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}goBack(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(ur),w(To),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-chapter"]],inputs:{chapter:"chapter",currentPage:"currentPage"},decls:4,vars:4,consts:[[3,"chapterName","passwordEntered",4,"ngIf"],["class","content",4,"ngIf"],[3,"chapter","currentPage","event",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[3,"chapterName","passwordEntered"],[1,"content"],[1,"header"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"page","show","showhint","showResult",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter","showhintEmitter","showResultEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult"],[3,"chapter","currentPage","event"]],template:function(e,r){1&e&&(I(0,E3,1,1,"app-password-query",0),I(1,O3,18,9,"div",1),I(2,I3,1,2,"app-table-of-content",2),p(3,"app-header",3),v("pageChange",function(i){return r.onTOCInput(i-1)}),h()),2&e&&(C("ngIf",!r.contentVisible),_(1),C("ngIf",r.contentVisible),_(1),C("ngIf",r.showTOC),_(1),C("chapter",r.chapter))},dependencies:[Pn,Pe,It,Uc,yt,zc,jc,pt,fr,g3,tD,M3,nD],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:50px;font-size:14px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.header[_ngcontent-%COMP%] .exportButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}"]}),t})();function T3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"button",5),v("click",function(){return A(e),N(D().uploadImage())}),f(2," Upload "),h(),p(3,"button",6),v("click",function(){return A(e),N(D().select())}),f(4," Select existing "),h()()}}function k3(t,n){if(1&t&&(p(0,"option",10),f(1),h()),2&t){const e=n.$implicit;C("value",e),_(1),Xe(" ",e," ")}}function A3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"select",7),v("ngModelChange",function(o){return A(e),N(D().selectedImage=o)}),I(2,k3,2,2,"option",8),h(),p(3,"button",9),v("click",function(){return A(e),N(D().selectTheImage())}),f(4," Ok "),h()()}if(2&t){const e=D();_(1),C("ngModel",e.selectedImage),_(1),C("ngForOf",e.imageNames)}}let N3=(()=>{class t{constructor(e){this.apiService=e,this.imageEmitter=new le,this.selectImage=!1,this.selectedImage="",this.imageNames=[]}close(){this.imageEmitter.emit("")}select(){this.apiService.getAllImageNames().subscribe({next:e=>{this.imageNames=e,this.selectImage=!0},error:e=>{De.showNotification("Error getting image names",e.message,-1,!0)}})}selectTheImage(){this.imageEmitter.emit(`?[${this.selectedImage}](${this.selectedImage}){width:100%}`)}uploadImage(){const e=document.createElement("input");e.type="file",e.accept="image/*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsDataURL(o),i.onload=()=>{this.apiService.uploadImage(o.name,i.result).subscribe({next:a=>{a.status?(De.showNotification("Success","Image uploaded: "+a.newName),this.imageEmitter.emit(`?[${a.newName}](${a.newName}){width:100%}`)):De.showNotification("Error uploading image","Could not upload image!",5e3,!0)},error:a=>{De.showNotification("Error uploading image",a.message,-1,!0)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-add-image"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{imageEmitter:"imageEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectImage",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),p(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),h(),I(6,T3,5,0,"div",3),I(7,A3,5,2,"div",3),h()),2&e&&(_(3),ve(r.selectImage?"Select Image":"Add Image"),_(3),C("ngIf",!r.selectImage),_(1),C("ngIf",r.selectImage))},dependencies:[Pn,Pe,fa,ga,Oo,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})(),R3=(()=>{class t{constructor(e){this.localStorageService=e,this.toLanguage="en",this.excludeCodeBlocks=!0,this.translatePage=!1,this.eventEmitter=new le,this.toLanguage=this.localStorageService.getLanguageTo()}submit(){this.localStorageService.setLanguageTo(this.toLanguage);let e=this.toLanguage;this.excludeCodeBlocks&&(e+=",excludeCodeBlocks"),this.translatePage&&(e+=",translatePage"),this.eventEmitter.emit(e),this.translatePage=!1,this.excludeCodeBlocks=!0}close(){this.eventEmitter.emit("close")}}return t.\u0275fac=function(e){return new(e||t)(w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-translate-spec"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{eventEmitter:"eventEmitter"},decls:19,vars:7,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"toLanguage"],["type","text","name","toLanguage","placeholder","To Language",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"checkBoxCon"],["type","checkbox","name","excludeCodeBlocks",3,"ngModel","ngModelChange"],["type","checkbox","name","translatePage",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Translate Text"),h(),p(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),h(),p(6,"p",3),f(7,"Translate to..."),h(),p(8,"input",4),v("ngModelChange",function(i){return r.toLanguage=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"div",5)(10,"input",6),v("ngModelChange",function(i){return r.excludeCodeBlocks=i}),h(),p(11,"p"),f(12,"Exclude Codeblocks"),h()(),p(13,"div",5)(14,"input",7),v("ngModelChange",function(i){return r.translatePage=i}),h(),p(15,"p"),f(16,"Translate Page"),h()(),p(17,"button",8),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Translate "),h()()),2&e&&(_(8),C("ngModel",r.toLanguage),_(1),He("top","50%"),_(1),C("ngModel",r.excludeCodeBlocks),_(3),He("top","65%"),_(1),C("ngModel",r.translatePage))},dependencies:[It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;color:varvar(--inverted-text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:37%}.container[_ngcontent-%COMP%] .toLanguage[_ngcontent-%COMP%]{top:20%}.checkBoxCon[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);display:flex;flex-direction:row;margin-top:5px}.checkBoxCon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.checkBoxCon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:120px;margin-top:2px;width:200px;font-size:20px;color:var(--inverted-text-color);cursor:pointer;text-align:left}"]}),t})();function F3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"button",5),v("click",function(){return A(e),N(D().uploadFile())}),f(2," Upload "),h(),p(3,"button",6),v("click",function(){return A(e),N(D().select())}),f(4," Select existing "),h()()}}function L3(t,n){if(1&t&&(p(0,"option",10),f(1),h()),2&t){const e=n.$implicit;C("value",e),_(1),Xe(" ",e," ")}}function B3(t,n){if(1&t){const e=Y();p(0,"div",4)(1,"select",7),v("ngModelChange",function(o){return A(e),N(D().selectedFile=o)}),I(2,L3,2,2,"option",8),h(),p(3,"button",9),v("click",function(){return A(e),N(D().selectTheFile())}),f(4," Ok "),h()()}if(2&t){const e=D();_(1),C("ngModel",e.selectedFile),_(1),C("ngForOf",e.fileNames)}}let V3=(()=>{class t{constructor(e){this.apiService=e,this.fileEmitter=new le,this.selectFile=!1,this.selectedFile="",this.fileNames=[]}close(){this.fileEmitter.emit("")}select(){this.apiService.getAllFileNames().subscribe({next:e=>{this.fileNames=e,this.selectFile=!0},error:e=>{De.showNotification("Error getting file names",e.message,-1,!0)}})}selectTheFile(){this.fileEmitter.emit(`$$$[Download](${this.selectedFile})`)}uploadFile(){const e=document.createElement("input");e.type="file",e.accept="*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o),i.onload=()=>{this.apiService.uploadFile(o.name,i.result).subscribe({next:s=>{s.status?(De.showNotification("Success","File uploaded: "+s.newName),this.fileEmitter.emit(`$$$[Download](${s.newName})`)):De.showNotification("Error uploading file","Could not upload file!",5e3,!0)},error:s=>{De.showNotification("Error uploading file",s.message,-1,!0)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-add-file"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{fileEmitter:"fileEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectFile",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),p(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),h(),I(6,F3,5,0,"div",3),I(7,B3,5,2,"div",3),h()),2&e&&(_(3),ve(r.selectFile?"Select File":"Add File"),_(3),C("ngIf",!r.selectFile),_(1),C("ngIf",r.selectFile))},dependencies:[Pn,Pe,fa,ga,Oo,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function H3(t,n){if(1&t){const e=Y();p(0,"app-add-image",5),v("imageEmitter",function(o){return A(e),N(D().addImage(o))}),h()}}function $3(t,n){if(1&t){const e=Y();p(0,"app-add-file",6),v("fileEmitter",function(o){return A(e),N(D().addFile(o))}),h()}}function U3(t,n){if(1&t){const e=Y();p(0,"app-translate-spec",7),v("eventEmitter",function(o){return A(e),N(D().translateSpec(o))}),h()}}let j3=(()=>{class t{constructor(e,r){this.apiService=e,this.router=r,this.addImageOpened=!1,this.addFileOpened=!1,this.translateSpecOpen=!1,this.eventEmitter=new le}emit(e){this.eventEmitter.emit(e)}addImage(e){""!==e&&this.emit(e),this.addImageOpened=!1}addFile(e){""!==e&&this.emit(e),this.addFileOpened=!1}openAddImage(){this.addImageOpened=!0}openAddFile(){this.addFileOpened=!0}openTranslateSpec(){this.translateSpecOpen=!0}closeTranslateSpec(){this.translateSpecOpen=!1}closeAddImage(){this.addImageOpened=!1}translateSpec(e){"close"!==e&&this.emit("translate,"+e),this.closeTranslateSpec()}help(){this.router.navigate(["/markdown"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Re))},t.\u0275cmp=ee({type:t,selectors:[["app-markdown-editor"]],outputs:{eventEmitter:"eventEmitter"},decls:20,vars:5,consts:[[1,"editor"],[3,"click"],[3,"imageEmitter",4,"ngIf"],[3,"fileEmitter",4,"ngIf"],[3,"eventEmitter",4,"ngIf"],[3,"imageEmitter"],[3,"fileEmitter"],[3,"eventEmitter"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),v("click",function(){return r.emit("bold")}),p(2,"b"),f(3,"Bold"),h()(),p(4,"button",1),v("click",function(){return r.emit("italic")}),p(5,"i"),f(6,"Italic"),h()(),p(7,"button",1),v("click",function(){return r.emit("code")}),f(8,"Code"),h(),p(9,"button",1),v("click",function(){return r.openAddImage()}),f(10,"Image"),h(),p(11,"button",1),v("click",function(){return r.openAddFile()}),f(12,"File"),h(),p(13,"button",1),v("click",function(){return r.openTranslateSpec()}),f(14,"Translate"),h(),p(15,"button",1),v("click",function(){return r.help()}),f(16,"Help"),h()(),I(17,H3,1,0,"app-add-image",2),I(18,$3,1,0,"app-add-file",3),I(19,U3,1,0,"app-translate-spec",4)),2&e&&(_(13),He("width",100,"px"),_(4),C("ngIf",r.addImageOpened),_(1),C("ngIf",r.addFileOpened),_(1),C("ngIf",r.translateSpecOpen))},dependencies:[Pe,N3,R3,V3],styles:[".editor[_ngcontent-%COMP%]{width:100%;background:var(--header-color);height:50px;display:flex;align-items:center;border-radius:5px;margin-bottom:20px;box-shadow:0 0 10px #0003}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:70px;font-size:20px;height:30px;background:var(--primary-color);border-radius:5px;border:none;outline:none;cursor:pointer;margin:0 10px;color:var(--inverted-text-color);box-shadow:0 0 5px #00000080}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #000c;scale:1.05}"]}),t})(),z3=(()=>{class t{constructor(e,r){this.localStorageService=e,this.apiService=r,this.type="",this.changeEmitter=new le,this.data="",this.dataBefore=void 0,this.focus=!1,this.slectionContent="",this.selectionStart=-1,this.selectionEnd=-1,this.getData()}handleKeydown(e){if("Tab"==e.key){e.preventDefault();var r=e.target.selectionStart,o=e.target.selectionEnd;e.target.value=e.target.value.substring(0,r)+"\t"+e.target.value.substring(o),e.target.selectionStart=e.target.selectionEnd=r+1,this.data=e.target.value,this.setData()}}ngOnInit(){this.getData()}onFocus(){this.focus=!0}onFocusOut(){this.focus=!1}selectionchange(e){this.selectionStart=e.target.selectionStart,this.selectionEnd=e.target.selectionEnd,this.slectionContent=e.target.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart)}onEditorInput(e){let r=this.focus;this.focus=!0,"bold"===e?this.bold():"italic"===e?this.italic():"code"===e?this.code():e.startsWith("![")||e.startsWith("?[")||e.startsWith("$$$[")?this.addImage(e):e.startsWith("translate")&&this.translate(e.split(",")[1],e.includes("excludeCodeBlocks"),e.includes("translatePage")),this.focus=r}translate(e="en",r,o){var i=this;return Bi(function*(){o?(i.page.Content=yield i.translateText(i.page.Content,e,r),i.page.Hint=yield i.translateText(i.page.Hint,e,r),i.page.Result=yield i.translateText(i.page.Result,e,r),i.changeEmitter.emit()):(i.data=yield i.translateText(i.data,e,r),i.setData())})()}translateText(e,r="en",o){var i=this;return Bi(function*(){let s=e.split("\n"),a="",l=!1;for(let c=0;cg.text))+"\n"}return a})()}copyLineUp(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(i-1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}copyLineDown(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(s+1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}addImage(e){this.data+="\n"+e,this.setData()}bold(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"**"+this.slectionContent+"**"+this.data.substr(this.selectionEnd),this.setData())}italic(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"_"+this.slectionContent+"_"+this.data.substr(this.selectionEnd),this.setData())}code(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"`"+this.slectionContent+"`"+this.data.substr(this.selectionEnd),this.setData())}setToDatBefore(){!this.focus||!this.dataBefore||(this.data=this.dataBefore,this.dataBefore=void 0,this.setData())}getData(){"content"===this.type&&(this.data=this.page.Content),"hint"===this.type&&(this.data=this.page.Hint),"result"===this.type&&(this.data=this.page.Result)}setData(){this.dataBefore=this.data,"content"===this.type&&(this.page.Content=this.data),"hint"===this.type&&(this.page.Hint=this.data),"result"===this.type&&(this.page.Result=this.data),this.changeEmitter.emit()}autoComplete(){let e=this.data[this.data.length-1];"["===e&&(this.data+="]"),"("===e&&(this.data+=")"),'"'===e&&(this.data+='"'),"'"===e&&(this.data+="'"),"{"===e&&(this.data+="}"),"_"===e&&(this.data+="_"),"*"===e&&(this.data+="*"),"`"===e&&(this.data+="`")}getFontSize(){return this.localStorageService.getFontSize()}getHeight(){let e=this.data.split("\n").length*this.getFontSize()*2;return e<50?50:e}}return t.\u0275fac=function(e){return new(e||t)(w(at),w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-edit-content"]],hostBindings:function(e,r){1&e&&v("keydown.shift.alt.arrowup",function(i){return r.copyLineUp(i)},0,Te)("keydown.shift.alt.arrowdown",function(i){return r.copyLineDown(i)},!1,Te)("keydown.control.alt.b",function(i){return r.bold(i)},!1,Te)("keydown.control.alt.i",function(i){return r.italic(i)},!1,Te)("keydown.control.alt.c",function(i){return r.code(i)},!1,Te)("keydown.control.z",function(i){return r.setToDatBefore(i)},!1,Te)},inputs:{type:"type",page:"page"},outputs:{changeEmitter:"changeEmitter"},decls:4,vars:5,consts:[[1,"contentBox"],[3,"eventEmitter"],["spellcheck","false",3,"ngModel","keydown","ngModelChange","selectionchange","focusout","focus"],["editor",""]],template:function(e,r){1&e&&(p(0,"div",0)(1,"app-markdown-editor",1),v("eventEmitter",function(i){return r.onEditorInput(i)}),h(),p(2,"textarea",2,3),v("keydown",function(i){return r.handleKeydown(i)})("ngModelChange",function(i){return r.data=i})("ngModelChange",function(){return r.setData()})("selectionchange",function(i){return r.selectionchange(i)})("focusout",function(){return r.onFocusOut()})("focus",function(){return r.onFocus()}),h()()),2&e&&(_(2),He("font-size",r.getFontSize()+"px")("height",r.getHeight()+"px"),C("ngModel",r.data))},dependencies:[It,yt,pt,j3],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:none;border-radius:10px;resize:vertical;color:var(--text-color);background-color:var(--bg-color)}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:1px solid #ccc}"]}),t})();function G3(t,n){if(1&t){const e=Y();p(0,"div")(1,"h1",2),f(2,"hint"),h(),p(3,"app-edit-content",3),v("changeEmitter",function(){return A(e),N(D(2).onChange())}),h()()}if(2&t){const e=D(2);_(3),C("page",e.page)}}function W3(t,n){if(1&t){const e=Y();p(0,"div")(1,"h1",2),f(2,"Result"),h(),p(3,"app-edit-content",4),v("changeEmitter",function(){return A(e),N(D(2).onChange())}),h()()}if(2&t){const e=D(2);_(3),C("page",e.page)}}function q3(t,n){if(1&t){const e=Y();p(0,"div")(1,"app-edit-content",1),v("changeEmitter",function(){return A(e),N(D().onChange())}),h(),I(2,G3,4,1,"div",0),I(3,W3,4,1,"div",0),h()}if(2&t){const e=D();_(1),C("page",e.page),_(1),C("ngIf",e.showhint),_(1),C("ngIf",e.showResult)}}let Y3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1,this.changeEmitter=new le}onChange(){this.changeEmitter.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-edit-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},outputs:{changeEmitter:"changeEmitter"},decls:1,vars:1,consts:[[4,"ngIf"],["type","content",3,"page","changeEmitter"],[1,"heading"],["type","hint",3,"page","changeEmitter"],["type","result",3,"page","changeEmitter"]],template:function(e,r){1&e&&I(0,q3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Pe,z3],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function Z3(t,n){if(1&t&&(p(0,"p",13),f(1),h()),2&t){const e=D();_(1),ve(e.wrongText)}}let X3=(()=>{class t{constructor(e){this.apiService=e,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.updateChapter=void 0,this.isWrong=!1,this.wrongText="",this.closeEmitter=new le}submit(){var e=this;return Bi(function*(){void 0!==e.updateChapter&&(e.updateChapter.Password=e.password,e.updateChapter.Language=e.language,e.updateChapter.Description=e.description,e.updateChapter.IsPrivate=e.isPrivate,e.apiService.updateChapter(e.updateChapter).subscribe({next:r=>{r.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.updateChapter=void 0,e.isPrivate=!1):(e.isWrong=!0,e.wrongText="error")},error:r=>{e.isWrong=!0,e.wrongText=r.message}}))})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-edit-chapter-meta-data"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate",updateChapter:"updateChapter"},outputs:{closeEmitter:"closeEmitter"},decls:21,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","checkbox","name","private",1,"userNameInput",2,"top","250px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","270px"],["name","description","placeholder","Description",2,"top","390px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3),h(),I(4,Z3,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"p",4),f(8,"Language"),h(),p(9,"input",5),v("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"p",6),f(11,"Password"),h(),p(12,"input",7),v("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),h(),p(13,"p",8),f(14,"Private"),h(),p(15,"input",9),v("ngModelChange",function(i){return r.isPrivate=i}),h(),p(16,"p",10),f(17,"Description"),h(),p(18,"textarea",11),v("ngModelChange",function(i){return r.description=i}),h(),p(19,"button",12),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(20," Save "),h()()),2&e&&(_(3),ve(null==r.updateChapter?"":r.updateChapter.Title),_(1),C("ngIf",r.isWrong),_(5),C("ngModel",r.language),_(3),C("ngModel",r.password),_(3),C("ngModel",r.isPrivate),_(3),C("ngModel",r.description))},dependencies:[Pe,It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:550px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})();function K3(t,n){if(1&t){const e=Y();p(0,"button",15),v("click",function(){return A(e),N(D(2).goBack())}),f(1,"Back"),h()}}function Q3(t,n){if(1&t){const e=Y();p(0,"div",16),v("click",function(){return A(e),N(D(2).setTOC(!0))}),K(1,"div",17)(2,"div",17)(3,"div",17),h()}}function J3(t,n){if(1&t){const e=Y();p(0,"input",22),v("ngModelChange",function(o){return A(e),N(D(3).pageInput=o)})("ngModelChange",function(){return A(e),N(D(3).onPageInput())}),h()}if(2&t){const e=D(3);C("ngModel",e.pageInput)("min",1)("max",e.chapter.Pages.length)}}function e5(t,n){if(1&t&&(p(0,"i"),f(1),h()),2&t){const e=D(3);_(1),ve("/ "+e.chapter.Pages.length)}}function t5(t,n){if(1&t){const e=Y();p(0,"app-edit-page",23),v("changeEmitter",function(){return A(e),N(D(3).onChange())}),h()}if(2&t){const e=n.$implicit,r=n.index,o=D(3);C("page",e)("show",r==o.currentPage)("showhint",!0)("showResult",!0)}}function n5(t,n){if(1&t){const e=Y();p(0,"button",11),v("click",function(){return A(e),N(D(3).setSureDelete(!0))}),f(1," Remove Page "),h()}}function r5(t,n){if(1&t){const e=Y();p(0,"div")(1,"div",18)(2,"h1"),f(3),h(),p(4,"p")(5,"i"),f(6),h(),I(7,J3,1,3,"input",19),I(8,e5,2,1,"i",6),h()(),I(9,t5,1,4,"app-edit-page",20),p(10,"app-page-nav-bar",21),v("showNextEmitter",function(){return A(e),N(D(2).showNextPage())})("showPrevEmitter",function(){return A(e),N(D(2).showPrevPage())}),h(),p(11,"div",9),I(12,n5,2,0,"button",10),p(13,"button",11),v("click",function(){return A(e),N(D(2).addPage())}),f(14,"Add Page"),h()(),p(15,"div",9)(16,"button",11),v("click",function(){return A(e),N(D(2).toggleEditMetaData())}),f(17,"Edit meta data"),h(),p(18,"button",11),v("click",function(){return A(e),N(D(2).toggleAutoSave())}),f(19),h()()()}if(2&t){const e=D(2);_(3),ve(e.chapter.Title+" EDIT"),_(3),ve(e.chapter.Pages.length>0?"Page ":"No Pages"),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngForOf",e.chapter.Pages),_(1),C("showPrevButton",0!=e.currentPage)("showNextButton",e.currentPage!=e.chapter.Pages.length-1)("showResultButton",!1)("showhintButton",!1),_(2),C("ngIf",e.chapter.Pages.length>0),_(7),Xe(" ","Autosave "+(e.getAutoSave()?"ON":"OFF")," ")}}function o5(t,n){1&t&&(p(0,"h1",24),f(1,"PREVIEW"),h())}function i5(t,n){if(1&t&&K(0,"app-chapter",25),2&t){const e=D(2);C("chapter",e.chapter)("currentPage",e.currentPage)}}function s5(t,n){if(1&t){const e=Y();p(0,"button",11),v("click",function(){return A(e),N(D(2).togglePreview())}),f(1),h()}if(2&t){const e=D(2);_(1),Xe(" ",e.preview?"Edit":"Preview"," ")}}function a5(t,n){if(1&t){const e=Y();p(0,"app-table-of-content",26),v("event",function(o){return A(e),N(D(2).onTOCInput(o))}),h()}if(2&t){const e=D(2);C("chapter",e.chapter)("currentPage",e.currentPage)}}function l5(t,n){if(1&t){const e=Y();p(0,"app-edit-chapter-meta-data",27),v("closeEmitter",function(){return A(e),N(D(2).toggleEditMetaData())}),h()}if(2&t){const e=D(2);C("updateChapter",e.chapter)("name",e.chapter.Title)("description",e.chapter.Description)("language",e.chapter.Language)("password",e.chapterPassword)("isPrivate",e.chapter.IsPrivate)}}function c5(t,n){if(1&t){const e=Y();p(0,"app-are-you-sure",28),v("sureEmitter",function(o){return A(e),N(D(2).deletePage(o))}),h()}}function u5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"div",3),I(2,K3,2,0,"button",4),I(3,Q3,4,0,"div",5),h(),I(4,r5,20,11,"div",6),I(5,o5,2,0,"h1",7),I(6,i5,1,2,"app-chapter",8),p(7,"div",9),I(8,s5,2,1,"button",10),p(9,"button",11),v("click",function(){return A(e),N(D().save())}),f(10),h()(),I(11,a5,1,2,"app-table-of-content",12),I(12,l5,1,6,"app-edit-chapter-meta-data",13),I(13,c5,1,0,"app-are-you-sure",14),h()}if(2&t){const e=D();_(2),C("ngIf",!e.preview),_(1),C("ngIf",!e.preview),_(1),C("ngIf",!e.preview),_(1),C("ngIf",e.preview),_(1),C("ngIf",e.preview),_(2),C("ngIf",e.chapter.Pages.length>0),_(2),ve((e.changes?"*":"")+"Save"),_(1),C("ngIf",e.showTOC),_(1),C("ngIf",e.editMetaData),_(1),C("ngIf",e.sureDelete)}}let d5=(()=>{class t{constructor(e,r,o,i,s){this.apiService=e,this.router=r,this.route=o,this.chapterManager=i,this.localStorageService=s,this.currentPage=0,this.preview=!1,this.changes=!1,this.sureDelete=!1,this.editMetaData=!1,this.contentVisible=!0,this.chapterName="",this.pageInput=1,this.showTOC=!1,this.chapterPassword=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManager.init().then(()=>{this.chapter=this.chapterManager.getChapterByName(this.chapterName,!0),2==X.userLevel||1==X.userLevel&&this.chapter.Author==X.userName?this.contentVisible=!0:this.router.navigate(["/login"]);let r=this.localStorageService.getPageForChapter(this.chapterName);r<0&&(r=0),r>this.chapter.Pages.length-1&&(r=this.chapter.Pages.length-1),this.currentPage=r,this.pageInput=this.currentPage+1})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:this.currentPage=this.pageInput-1}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}addPage(){this.currentPage+1>=this.chapter.Pages.length?this.chapter.Pages.push(new Yh("","","")):this.chapter.Pages.splice(this.currentPage+1,0,new Yh("","","")),this.currentPage++,this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0}setSureDelete(e){this.sureDelete=e}deletePage(e){e&&(this.chapter.Pages.splice(this.currentPage,1),this.currentPage=this.currentPage-1,this.currentPage<0&&(this.currentPage=0),this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0),this.sureDelete=!1}save(e=!0){this.apiService.updateChapter(this.chapter).subscribe({next:r=>{r.status?(e&&De.showNotification("Chapter saved","The chapter was saved successfully!",2e3),this.changes=!1):De.showNotification("Chapter could not be saved","The chapter could not be saved!",5e3,!0)},error:r=>{De.showNotification("ERROR","Chapter could not be saved: "+r.message+"!",-1,!0)}})}onChange(){this.changes=!0}togglePreview(){this.preview=!this.preview,window.scrollTo({top:0})}toggleAutoSave(){t.autoSave=!t.autoSave,this.setAutoSave()}toggleEditMetaData(){this.editMetaData=!this.editMetaData,this.editMetaData&&(console.log(this.chapterName),this.apiService.getChapterPassword(this.chapter.Title,X.userName,X.password).subscribe({next:e=>{this.chapterPassword=e.password},error:e=>{De.showNotification("ERROR","Error getting chapter password: "+e.message+"!",-1,!0),this.chapterPassword=this.chapter.Password}}))}getAutoSave(){return t.autoSave}setAutoSave(){t.autoSave?t.interval=setInterval(()=>{this.save(!1)},1e4):clearInterval(t.interval)}goBack(){this.changes&&this.save(!1),clearInterval(t.interval),this.router.navigate(["/"])}}return t.autoSave=!1,t.\u0275fac=function(e){return new(e||t)(w(ke),w(Re),w(ur),w(To),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-edit-chapter"]],hostBindings:function(e,r){1&e&&v("keydown.control.alt.a",function(i){return r.addPage(i)},0,Te)("keydown.control.alt.s",function(i){return r.save(i)},!1,Te)("keydown.control.alt.p",function(i){return r.togglePreview(i)},!1,Te)},inputs:{chapter:"chapter"},decls:2,vars:2,consts:[["class","content",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[1,"content"],[1,"header"],["class","backButton",3,"click",4,"ngIf"],["class","tocButton",3,"click",4,"ngIf"],[4,"ngIf"],["class","previewHeading",4,"ngIf"],[3,"chapter","currentPage",4,"ngIf"],[1,"editButtons"],[3,"click",4,"ngIf"],[3,"click"],[3,"chapter","currentPage","event",4,"ngIf"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[3,"page","show","showhint","showResult","changeEmitter",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult","changeEmitter"],[1,"previewHeading"],[3,"chapter","currentPage"],[3,"chapter","currentPage","event"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(I(0,u5,14,10,"div",0),p(1,"app-header",1),v("pageChange",function(i){return r.onTOCInput(i-1)}),h()),2&e&&(C("ngIf",r.contentVisible),_(1),C("chapter",r.chapter))},dependencies:[Pn,Pe,It,Uc,yt,zc,jc,pt,fr,tD,rD,Y3,QM,X3,nD],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:30px;font-size:15px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.editButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}.previewHeading[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}"]}),t})(),p5=(()=>{class t{constructor(e){this.router=e,this.selected="storage",this.selectedChange=new le}setSelected(e){this.selected=e,this.router.navigate(["/settings",e]),this.selectedChange.emit(e)}getUserLevel(){return X.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(Re))},t.\u0275cmp=ee({type:t,selectors:[["app-settings-header"]],inputs:{selected:"selected"},outputs:{selectedChange:"selectedChange"},decls:9,vars:8,consts:[[1,"header"],[3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"button",1),v("click",function(){return r.setSelected("storage")}),f(2," Storage "),h(),p(3,"button",1),v("click",function(){return r.setSelected("server")}),f(4," Server "),h(),p(5,"button",1),v("click",function(){return r.setSelected("user")}),f(6," User "),h(),p(7,"button",1),v("click",function(){return r.setSelected("about")}),f(8," About "),h()()),2&e&&(_(1),En("storage"==r.selected?"selected":""),_(2),En("server"==r.selected?"selected":""),_(2),En("user"==r.selected?"selected":""),_(2),En("about"==r.selected?"selected":""))},styles:[".header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:150px;margin-left:20px;font-size:20px;padding:10px;cursor:pointer;border:none;background:none;color:var(--text-color);border-radius:10px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}.header[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{border:2px solid var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}@media screen and (max-width: 800px){.header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px;margin-left:10px;font-size:15px;padding:5px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:none;box-shadow:0 0 0 0 var(--secondary-color)}}"]}),t})();function h5(t,n){if(1&t&&(p(0,"option",7),f(1),h()),2&t){const e=n.$implicit;C("value",e),_(1),Xe(" ",e," ")}}let f5=(()=>{class t{constructor(e){this.chaptermanagerService=e,this.chapterEmitter=new le,this.selectedchapter="",this.chapterNames=[]}ngOnInit(){const e=this.chaptermanagerService.allChapters;for(let r of e){if(0==X.userLevel)return;(r.Author==X.userName||2==X.userLevel)&&this.chapterNames.push(r.Title)}}close(){this.chapterEmitter.emit("")}selectTheChapter(){this.chapterEmitter.emit(this.selectedchapter)}}return t.\u0275fac=function(e){return new(e||t)(w(To))},t.\u0275cmp=ee({type:t,selectors:[["app-select-chapter"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{chapterEmitter:"chapterEmitter"},decls:11,vars:2,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],["name","SelectChapter",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Select chapter"),h(),p(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"select",4),v("ngModelChange",function(i){return r.selectedchapter=i}),I(8,h5,2,2,"option",5),h(),p(9,"button",6),v("click",function(){return r.selectTheChapter()}),f(10," Ok "),h()()()),2&e&&(_(7),C("ngModel",r.selectedchapter),_(1),C("ngForOf",r.chapterNames))},dependencies:[Pn,fa,ga,Oo,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function g5(t,n){if(1&t){const e=Y();p(0,"div",1)(1,"p",2),f(2,"Export chapter"),h(),p(3,"button",3),v("click",function(){return A(e),N(D().showSelectChapter=!0)}),f(4,"Export"),h()()}}function m5(t,n){if(1&t){const e=Y();p(0,"div",1)(1,"p",2),f(2,"Import chapter"),h(),p(3,"button",3),v("click",function(){return A(e),N(D().importChapter())}),f(4,"Import"),h()()}}function _5(t,n){if(1&t){const e=Y();p(0,"app-select-chapter",7),v("chapterEmitter",function(o){return A(e),N(D().exportChapter(o))}),h()}}let v5=(()=>{class t{constructor(e,r,o){this.localStorageService=e,this.chaptermanagerService=r,this.irisinterfaceService=o,this.showSelectChapter=!1}clearStorage(){this.localStorageService.clearAll(),De.showNotification("Success","Storage cleared!")}getRememberPage(){return this.localStorageService.rememberPage}toggleRememberPage(){this.localStorageService.setRememberPage(!this.localStorageService.rememberPage)}exportChapter(e){if(this.showSelectChapter=!1,""==e)return;const r=this.chaptermanagerService.getChapterByName(e,!1);console.log(r);const o="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(r)),i=document.createElement("a");i.setAttribute("href",o),i.setAttribute("download",r.Title.replace(/ /g,"-")+".woop"),document.body.appendChild(i),i.click(),i.remove()}importChapter(){const e=document.createElement("input");e.type="file",e.accept=".woop",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o,"UTF-8"),i.onload=s=>{let l=JSON.parse(s.target.result);l.Author=X.userName,this.irisinterfaceService.importChapter(X.userName,X.password,l).subscribe({next:c=>{c.status?(De.showNotification("Chapter imported","The chapter was imported successfully!"),this.chaptermanagerService.chapters.push(l)):De.showNotification("Chapter import failed","The chapter could not be imported!",5e3,!0)},error:c=>{De.showNotification("ERROR","Chapter import failed: "+c.message+"!",-1,!0)}})}},e.click()}getUserLevel(){return X.userLevel}coookiesAccepted(){return at.cookiesAccepted}toggleCookiesAccepted(){if(at.cookiesAccepted)return at.rejectCookies(),void De.showNotification("Cookies rejected","Cookies will not be used.");at.acceptCookies(),De.showNotification("Cookies accepted","Cookies will be used.")}}return t.\u0275fac=function(e){return new(e||t)(w(at),w(To),w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-storage-settings"]],decls:19,vars:6,consts:[[1,"container"],[1,"row"],[1,"label"],[1,"action",3,"click"],["class","row",4,"ngIf"],[1,"red","action",3,"click"],[3,"chapterEmitter",4,"ngIf"],[3,"chapterEmitter"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3,"Cookies"),h(),p(4,"button",3),v("click",function(){return r.toggleCookiesAccepted()}),f(5),h()(),I(6,g5,5,0,"div",4),I(7,m5,5,0,"div",4),p(8,"div",1)(9,"p",2),f(10),h(),p(11,"button",3),v("click",function(){return r.toggleRememberPage()}),f(12),h()(),p(13,"div",1)(14,"p",2),f(15,"Clear Local Storage"),h(),p(16,"button",5),v("click",function(){return r.clearStorage()}),f(17,"Clear"),h()()(),I(18,_5,1,0,"app-select-chapter",6)),2&e&&(_(5),Xe(" ",r.coookiesAccepted()?"Reject":"Accept"," "),_(1),C("ngIf",r.getUserLevel()>0),_(1),C("ngIf",r.getUserLevel()>0),_(3),Xe(" ","Remember Page: "+(r.getRememberPage()?"ON":"OFF")," "),_(2),Xe(" ",r.getRememberPage()?"Turn OFF":"Turn ON"," "),_(6),C("ngIf",r.showSelectChapter))},dependencies:[Pe,f5],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function C5(t,n){if(1&t&&(p(0,"option",12),f(1),h()),2&t){const e=n.$implicit;C("value",e.name),_(1),Xe(" ",e.name," ")}}function y5(t,n){if(1&t){const e=Y();p(0,"button",13),v("click",function(){return A(e),N(D().removeConnection())}),f(1," Remove "),h()}}let w5=(()=>{class t{constructor(e,r){this.localStorageService=e,this.router=r,this.connection="",this.name="",this.host="",this.port=0,this.host=e.getServerHost(),this.port=e.getServerPort()}connect(){this.localStorageService.setServerHost(this.host),this.localStorageService.setServerPort(this.port),this.router.navigate(["/"])}removeConnection(){this.localStorageService.removeServerConnection(this.connection),this.connection="",this.openConnection()}saveConnection(){""!==this.name?(this.localStorageService.addServerConnection(this.name,this.host,this.port),De.showNotification("Success","Connection saved!")):De.showNotification("Error","Please enter a name for the connection!",-1,!0)}openConnection(){if(""===this.connection)return this.name="",this.host=this.localStorageService.getServerHost(),void(this.port=this.localStorageService.getServerPort());const e=this.localStorageService.getConnection(this.connection);e&&(this.name=e.name,this.host=e.host,this.port=e.port)}getConnections(){return this.localStorageService.getAllServerConnections()}isCurrentConnection(){return this.localStorageService.getServerHost()===this.host&&this.localStorageService.getServerPort()===this.port}getCurrentConnection(){return ke.host+":"+ke.port}}return t.\u0275fac=function(e){return new(e||t)(w(at),w(Re))},t.\u0275cmp=ee({type:t,selectors:[["app-server-settings"]],decls:32,vars:9,consts:[[1,"container"],[1,"row"],[1,"label"],["name","Level",2,"width","110px",3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","Name",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Host",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Port",1,"action",3,"ngModel","ngModelChange"],["class","action red",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"action","green",3,"click"],[3,"value"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3," Current connection: "),p(4,"i"),f(5),h()()(),p(6,"div",1)(7,"p",2),f(8,"Select Connection"),h(),p(9,"select",3),v("ngModelChange",function(i){return r.connection=i})("ngModelChange",function(){return r.openConnection()}),p(10,"option",4),f(11,"NEW"),h(),I(12,C5,2,2,"option",5),h()(),p(13,"div",1)(14,"p",2),f(15,"Connection Name"),h(),p(16,"input",6),v("ngModelChange",function(i){return r.name=i}),h()(),p(17,"div",1)(18,"p",2),f(19,"Host"),h(),p(20,"input",7),v("ngModelChange",function(i){return r.host=i}),h()(),p(21,"div",1)(22,"p",2),f(23,"Port"),h(),p(24,"input",8),v("ngModelChange",function(i){return r.port=i}),h()(),p(25,"div",1),K(26,"p",2),I(27,y5,2,0,"button",9),p(28,"button",10),v("click",function(){return r.saveConnection()}),f(29),h(),p(30,"button",11),v("click",function(){return r.connect()}),f(31),h()()()),2&e&&(_(5),ve(r.getCurrentConnection()),_(4),C("ngModel",r.connection),_(3),C("ngForOf",r.getConnections()),_(4),C("ngModel",r.name),_(4),C("ngModel",r.host),_(4),C("ngModel",r.port),_(3),C("ngIf",""!=r.connection),_(2),Xe(" ",""===r.connection?"Save":"Update"," "),_(2),Xe(" ","Connect"+(r.isCurrentConnection()?"":"*")," "))},dependencies:[Pn,Pe,fa,ga,It,Oo,yt,pt],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function b5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Log in"),h(),p(3,"button",4),v("click",function(){return A(e),N(D().logIn())}),f(4,"Log in"),h()()}}function M5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2," Username: "),p(3,"i"),f(4),h()(),p(5,"button",4),v("click",function(){return A(e),N(D().logOut())}),f(6,"Log out"),h()()}if(2&t){const e=D();_(4),ve(e.getUsername()+(2==e.getUserLevel()?" Admin":""))}}function D5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Change Password"),h(),p(3,"button",4),v("click",function(){return A(e),N(D().changePassword())}),f(4,"Change"),h()()}}function E5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"New User"),h(),p(3,"button",4),v("click",function(){return A(e),N(D().addUser())}),f(4,"Add"),h()()}}function x5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Configure Admin Rights"),h(),p(3,"button",4),v("click",function(){return A(e),N(D().makeUserAdmin())}),f(4,"Configure"),h()()}}function S5(t,n){if(1&t){const e=Y();p(0,"div",2)(1,"p",3),f(2,"Delete User"),h(),p(3,"button",5),v("click",function(){return A(e),N(D().deleteUser())}),f(4,"Delete"),h()()}}let P5=(()=>{class t{constructor(e,r){this.router=e,this.localStorageService=r}changePassword(){this.router.navigate(["user/change/password"])}addUser(){this.router.navigate(["user/add"])}deleteUser(){this.router.navigate(["user/delete"])}makeUserAdmin(){this.router.navigate(["user/make/admin"])}logIn(){this.router.navigate(["login"])}logOut(){X.userLevel=0,X.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}getUserLevel(){return X.userLevel}getUsername(){return X.userName}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-user-settings"]],decls:7,vars:6,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"label"],[1,"action",3,"click"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(p(0,"div",0),I(1,b5,5,0,"div",1),I(2,M5,7,1,"div",1),I(3,D5,5,0,"div",1),I(4,E5,5,0,"div",1),I(5,x5,5,0,"div",1),I(6,S5,5,0,"div",1),h()),2&e&&(_(1),C("ngIf",0==r.getUserLevel()),_(1),C("ngIf",r.getUserLevel()>0),_(1),C("ngIf",r.getUserLevel()>0),_(1),C("ngIf",2==r.getUserLevel()),_(1),C("ngIf",2==r.getUserLevel()),_(1),C("ngIf",2==r.getUserLevel()))},dependencies:[Pe],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})(),O5=(()=>{class t{constructor(e,r){this.router=e,this.metaDataService=r}getHelp(){this.router.navigate(["help"])}whatsNew(){this.router.navigate(["info"])}getVersion(){return this.metaDataService.version}goToImpressum(){this.router.navigate(["impressum"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(_f))},t.\u0275cmp=ee({type:t,selectors:[["app-about-settings"]],decls:28,vars:1,consts:[[1,"container"],[1,"row"],[1,"label"],[1,"action",3,"click"],["href","mailto:Philipp.Bonin@intersystems.com?subject=WOOP%20Issue",1,"actionA"],["href","https://github.com/phil1436/InterSystemsWOOP","target","_blank",1,"actionA"]],template:function(e,r){1&e&&(p(0,"div",0)(1,"div",1)(2,"p",2),f(3," Version: "),p(4,"i"),f(5),h()(),p(6,"button",3),v("click",function(){return r.whatsNew()}),f(7,"Info"),h()(),p(8,"div",1)(9,"p",2),f(10,"Need Help?"),h(),p(11,"button",3),v("click",function(){return r.getHelp()}),f(12,"Get Help"),h()(),p(13,"div",1)(14,"p",2),f(15,"Report an Issue"),h(),p(16,"a",4),f(17," Report "),h()(),p(18,"div",1)(19,"p",2),f(20,"Impressum"),h(),p(21,"button",3),v("click",function(){return r.goToImpressum()}),f(22,"View"),h()(),p(23,"div",1)(24,"p",2),f(25,"View on GitHub"),h(),p(26,"a",5),f(27," View "),h()()()),2&e&&(_(5),ve(r.getVersion()))},styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function I5(t,n){1&t&&K(0,"app-storage-settings")}function T5(t,n){1&t&&K(0,"app-server-settings")}function k5(t,n){1&t&&K(0,"app-user-settings")}function A5(t,n){1&t&&K(0,"app-about-settings")}function N5(t,n){if(1&t&&(p(0,"div",5),I(1,I5,1,0,"app-storage-settings",6),I(2,T5,1,0,"app-server-settings",6),I(3,k5,1,0,"app-user-settings",6),I(4,A5,1,0,"app-about-settings",6),h()),2&t){const e=D();_(1),C("ngIf","storage"==e.selected.toLowerCase()),_(1),C("ngIf","server"==e.selected.toLowerCase()),_(1),C("ngIf","user"==e.selected.toLowerCase()),_(1),C("ngIf","about"==e.selected.toLowerCase())}}let oD=(()=>{class t{constructor(e,r){this.router=e,this.route=r,this.selected=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("settingsName");this.selected=null!=e?e:""}setSelected(e){this.selected=e}goBack(){this.router.navigate(["/"])}getUserLevel(){return X.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(ur))},t.\u0275cmp=ee({type:t,selectors:[["app-settings-advanced"]],decls:6,vars:3,consts:[[1,"sticky",3,"enableSearchBar"],[1,"settingsHeader"],[1,"backButton",3,"click"],[3,"selected","selectedChange"],["class","settings",4,"ngIf"],[1,"settings"],[4,"ngIf"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),v("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"app-settings-header",3),v("selectedChange",function(i){return r.setSelected(i)}),h()(),I(5,N5,5,4,"div",4)),2&e&&(C("enableSearchBar",!1),_(4),C("selected",r.selected),_(1),C("ngIf",""!=r.selected))},dependencies:[Pe,fr,p5,v5,w5,P5,O5],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.settingsHeader[_ngcontent-%COMP%]{margin-top:100px}.settings[_ngcontent-%COMP%]{width:90%;margin:30px auto 20px;padding:20px;border-radius:10px;box-shadow:0 0 10px #0003}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.backButton[_ngcontent-%COMP%]{display:none}}"]}),t})(),R5=(()=>{class t{constructor(e){this.router=e}goToServerSettings(){this.router.navigate(["/settings/server"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re))},t.\u0275cmp=ee({type:t,selectors:[["app-error-page"]],decls:9,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],["src","https://media.makeameme.org/created/what-has-happened.jpg"],[3,"click"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"h1"),f(3,"(W)OOPs..."),h(),K(4,"img",2),p(5,"p"),f(6,"Looks like the server could not be reached!"),h(),p(7,"button",3),v("click",function(){return r.goToServerSettings()}),f(8,"Go to Server Settings"),h()()),2&e&&C("enableSearchBar",!1)},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;color:var(--text-color);margin-top:50px;margin-bottom:50px}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:4rem;font-weight:700;margin-bottom:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px;padding:10px 20px;border-radius:10px;border:none;background-color:var(--primary-color);color:var(--inverted-text-color);cursor:pointer;transition:all .3s ease-in-out;font-size:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1.1}"]}),t})(),F5=(()=>{class t{constructor(e){this.router=e}goBack(){this.router.navigate(["/"])}goToPlayground(){this.router.navigate(["/playground"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re))},t.\u0275cmp=ee({type:t,selectors:[["app-markdown-cheat-sheet"]],decls:157,vars:3,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],[1,"backButton",3,"click"],["id","basic-syntax"],["href","https://www.markdownguide.org/basic-syntax/#headings","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#bold","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#italic","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#blockquotes-1","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#ordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#unordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#code","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#horizontal-rules","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#links","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#images-1","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#tables","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#fenced-code-blocks","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#strikethrough","target","_blank"],[1,"playgroundButton",3,"click"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),v("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"h1",3),f(5,"Markdown Syntax"),h(),p(6,"table")(7,"tr")(8,"th"),f(9,"Element"),h(),p(10,"th"),f(11,"Markdown Syntax"),h()(),p(12,"tr")(13,"td")(14,"a",4),f(15," Heading "),h()(),p(16,"td")(17,"code"),f(18,"# H1"),K(19,"br"),f(20," ## H2"),K(21,"br"),f(22," ### H3 "),h()()(),p(23,"tr")(24,"td")(25,"a",5),f(26," Bold "),h()(),p(27,"td")(28,"code"),f(29,"**bold text**"),h()()(),p(30,"tr")(31,"td")(32,"a",6),f(33," Italic "),h()(),p(34,"td")(35,"code"),f(36,"*italicized text*"),h()()(),p(37,"tr")(38,"td")(39,"a",7),f(40," Blockquote "),h()(),p(41,"td")(42,"code"),f(43,"> blockquote"),h()()(),p(44,"tr")(45,"td")(46,"a",8),f(47,"Ordered List"),h()(),p(48,"td")(49,"code"),f(50," 1. First item"),K(51,"br"),f(52," 2. Second item"),K(53,"br"),f(54," 3. Third item"),K(55,"br"),h()()(),p(56,"tr")(57,"td")(58,"a",9),f(59,"Unordered List"),h()(),p(60,"td")(61,"code"),f(62," - First item"),K(63,"br"),f(64," - Second item"),K(65,"br"),f(66," - Third item"),K(67,"br"),h()()(),p(68,"tr")(69,"td")(70,"a",10),f(71,"Code"),h()(),p(72,"td")(73,"code"),f(74,"`code`"),h()()(),p(75,"tr")(76,"td")(77,"a",11),f(78,"Horizontal Rule"),h()(),p(79,"td")(80,"code"),f(81,"---"),h()()(),p(82,"tr")(83,"td")(84,"a",12),f(85,"Link"),h()(),p(86,"td")(87,"code"),f(88,"[title](https://www.example.com)"),h()()(),p(89,"tr")(90,"td")(91,"a",13),f(92,"Image"),h()(),p(93,"td")(94,"code"),f(95,"![alt text](image.jpg)"),h()()(),p(96,"tr")(97,"td"),f(98,"Image with CSS"),h(),p(99,"td")(100,"code"),f(101),h()()(),p(102,"tr")(103,"td")(104,"a",14),f(105,"Table"),h()(),p(106,"td")(107,"code"),f(108," | Syntax | Description |"),K(109,"br"),f(110," | ----------- | ----------- |"),K(111,"br"),f(112," | Header | Title |"),K(113,"br"),f(114," | Paragraph | Text | "),h()()(),p(115,"tr")(116,"td")(117,"a",15),f(118,"Fenced Code Block"),h()(),p(119,"td")(120,"code"),f(121," ```language"),K(122,"br"),f(123,' this = codeblock["fenced"]'),K(124,"br"),f(125," ``` "),h()()(),p(126,"tr")(127,"td"),f(128,"Code Window"),h(),p(129,"td")(130,"code"),f(131," ~~~language"),K(132,"br"),f(133,' this = codewindow["not-copyable"]'),K(134,"br"),f(135," ~~~ "),h()()(),p(136,"tr")(137,"td"),f(138,"Copyable Code Window"),h(),p(139,"td")(140,"code"),f(141),K(142,"br"),f(143,' this = codewindow["copyable"]'),K(144,"br"),f(145," ~~~ "),h()()(),p(146,"tr")(147,"td")(148,"a",16),f(149,"Strikethrough"),h()(),p(150,"td")(151,"code"),f(152,"~~The world is flat.~~"),h()()()(),p(153,"p"),f(154," You can try out the markdown syntax in the playground below. The preview will be updated automatically. "),h(),p(155,"button",17),v("click",function(){return r.goToPlayground()}),f(156," Playground "),h()()),2&e&&(C("enableSearchBar",!1),_(101),ve("![alt text](image.jpg){width: 100px; height:100px}"),_(40),Xe(" ~~~language","{copy}",""))},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;padding-left:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color);text-decoration:none}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:90%;border:1px solid var(--text-color);box-shadow:0 0 20px #00000026}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:16px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--header-color)}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.playgroundButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:150px;height:40px;margin-bottom:20px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.playgroundButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function L5(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();_(1),ve(e.wrongMessage)}}let B5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.entereduserName.length<1?(this.wrongMessage="Username cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.addUser(X.userName,X.password,this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.status?(De.showNotification("User added successfully!","The user was added successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Yr))},t.\u0275cmp=ee({type:t,selectors:[["app-add-user"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","password","placeholder","Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","confirmPassword","placeholder","Confirm Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Add User"),h(),I(4,L5,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Pe,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function V5(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();_(1),ve(e.wrongMessage)}}let H5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.oldPassword="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.changePassword(X.userName,this.oldPassword,this.enteredPassword).subscribe({next:e=>{e.status?(De.showNotification("Password changed successfully!","The password was changed successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.oldPassword="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Yr))},t.\u0275cmp=ee({type:t,selectors:[["app-change-password"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","password","name","oldPassword","placeholder","Old Password",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","New Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm New Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Change Password"),h(),I(4,V5,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),v("ngModelChange",function(i){return r.oldPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.oldPassword),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Pe,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function $5(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();_(1),ve(e.wrongMessage)}}let U5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.deleteUser(X.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(De.showNotification("User deleted successfully!","The user was deleted successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Yr))},t.\u0275cmp=ee({type:t,selectors:[["app-delete-user"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to delete",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Delete User"),h(),I(4,$5,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Delete "),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Pe,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})(),j5=(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-get-help"]],decls:188,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],["href","","target","_blank"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),v("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5,"InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"HELP"),h()(),p(8,"p"),f(9," This program is designed to help you organize and optimize your InterSystems workshop. It will help you to determine the best order to present the material. "),h(),p(10,"h2"),f(11,"Connect to an instance"),h(),p(12,"p"),f(13," Click on the "),p(14,"b"),f(15,"Settings Icon"),h(),f(16," in the top right corner of the screen. Select "),p(17,"i"),f(18,"Advanced"),h(),f(19," and go to the "),p(20,"i"),f(21,"Server"),h(),f(22," tab. Type in the host adress and port number of the instance you want to connect to and click "),p(23,"b"),f(24,"Connect"),h(),f(25,". You can store the connection information by giving the connection a name and click on "),p(26,"b"),f(27,"Save"),h(),f(28,".You can then select the connection from the "),p(29,"i"),f(30,"Connection"),h(),f(31," dropdown menu. "),h(),p(32,"h2"),f(33,"Navigation"),h(),p(34,"ul")(35,"li"),f(36," You can always click on the logo in the top left corner to go back to the home screen. "),h(),p(37,"li"),f(38," You can click on "),p(39,"i"),f(40,"Log in"),h(),f(41," in the top right corner to log in to account or when you are already logged in, you can click on your name to log out of your account. "),h(),p(42,"li"),f(43," You can click on the "),p(44,"b"),f(45,"Settings Icon"),h(),f(46," in the top right corner of the screen to open the shortcut settings. From there you can select "),p(47,"i"),f(48,"Advanced"),h(),f(49," to open the advanced settings. "),h()(),p(50,"h2"),f(51,"Create a new Chapter"),h(),p(52,"p")(53,"i"),f(54," You have to be logged in to create a new chapter! "),h()(),p(55,"ol")(56,"li"),f(57,"Go to the home screen."),h(),p(58,"li"),f(59,"Click on the "),p(60,"b"),f(61,"+"),h(),f(62," icon."),h(),p(63,"li"),f(64," Fill in the following information: "),p(65,"ul")(66,"li")(67,"b"),f(68,"Name"),h(),f(69," - The name of the chapter. This will be displayed in the chapter list. "),h(),p(70,"li")(71,"b"),f(72,"Language"),h(),f(73," - The language of the chapter."),h(),p(74,"li")(75,"b"),f(76,"Password"),h(),f(77," - You can set a password for the chapter. If you leave this field empty, the chapter will be public. "),h(),p(78,"li")(79,"b"),f(80,"Private"),h(),f(81," - If enabeled the chapter will be private and only accessible by you and the admins. "),h(),p(82,"li")(83,"b"),f(84,"Description"),h(),f(85," - Add a description to the chapter. This will be displayed in the chapter list. "),h()()(),p(86,"li"),f(87,"Click on "),p(88,"b"),f(89,"Create"),h(),f(90," to save the chapter."),h()(),p(91,"h2"),f(92,"Edit a chapter"),h(),p(93,"p")(94,"i"),f(95," You have to be logged in to edit a chapter! "),h()(),p(96,"p"),f(97," You can edit a chapter by clicking on the "),p(98,"b"),f(99,"Edit"),h(),f(100," icon in the chapter list. Write the content of your chapters in markdown. You can find a markdown cheat sheet by clicking on the "),p(101,"b"),f(102,"Help"),h(),f(103," button in the editor. "),h(),p(104,"p"),f(105," You can add a hint and a result on each page of your chapter. If you leave the hint or result empty, they will not be displayed. "),h(),p(106,"p"),f(107," You can add and remove a page by clicking on "),p(108,"b"),f(109,"Add Page"),h(),f(110," and "),p(111,"b"),f(112,"Remove Page"),h(),f(113,". To show a Preview of your chapter, click on "),p(114,"b"),f(115,"Preview"),h(),f(116,". To save your changes, click on "),p(117,"b"),f(118,"Save"),h(),f(119,". You can see if there are unsaved changes by looking at the "),p(120,"b"),f(121,"Save"),h(),f(122," button. If there "),p(123,"b"),f(124,"*Save"),h(),f(125," is displayed, there are unsaved changes. You can turn on autosave by clicking on "),p(126,"b"),f(127,"Autosave"),h(),f(128,". If autosave is turned on, your changes will be saved every 10 seconds. You can edit the metadata of your chapter by clicking on "),p(129,"b"),f(130,"Edit meta data"),h(),f(131,". "),h(),p(132,"h2"),f(133,"Create your own instance"),h(),p(134,"p"),f(135," Before you can create your own instance, you need to have a InterSystems IRIS Dataplatform instance running. "),h(),p(136,"ol")(137,"li"),f(138," Download the "),p(139,"a",3),f(140,"InterSystems Workshop Organizer and Optimizer Program"),h(),f(141," from Github. "),h(),p(142,"li"),f(143," In the Management Portal, go to "),p(144,"i"),f(145,"System Explorer"),h(),f(146," and select "),p(147,"i"),f(148,"Classes"),h(),f(149,". Click on "),p(150,"b"),f(151,"Import"),h(),f(152," and select the "),p(153,"i"),f(154,"cls"),h(),f(155," folder from the downloaded program. "),h(),p(156,"li"),f(157," Open an InterSystems IRIS terminal and go to the namespace where you just imported the classes. "),h(),p(158,"li"),f(159," Run the following command: "),p(160,"code"),f(161,"Do ##class(WOOP.Installer).SetUp()"),h()(),p(162,"li"),f(163,"Follow the instructions on the screen."),h(),p(164,"li"),f(165," After successful installation, you can access connect to the instance by clicking on the "),p(166,"b"),f(167,"Settings Icon"),h(),f(168," in the top right corner of the screen. Select "),p(169,"i"),f(170,"Advanced"),h(),f(171," and go to the "),p(172,"i"),f(173,"Server"),h(),f(174," tab. Type in the host adress and port number of the instance you want to connect to and click "),p(175,"b"),f(176,"Connect"),h(),f(177,". "),h()(),p(178,"div",4),K(179,"br")(180,"br"),p(181,"p"),f(182," by "),p(183,"a",5),f(184," Philipp B. "),h()(),p(185,"p")(186,"i"),f(187," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),h()()()()),2&e&&C("enableSearchBar",!1)},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function z5(t,n){if(1&t&&(p(0,"p",8),f(1),h()),2&t){const e=D();_(1),ve(e.wrongMessage)}}let G5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.makeUserAdmin(X.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(De.showNotification("User made admin successfully!","The user was made admin successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Yr))},t.\u0275cmp=ee({type:t,selectors:[["app-make-admin"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to make admin",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Make User Admin"),h(),I(4,z5,2,1,"p",2),p(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),h(),p(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),h(),p(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),h(),p(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Make Admin "),h()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Pe,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function W5(t,n){if(1&t&&(p(0,"p"),f(1),h()),2&t){const e=n.$implicit;_(1),ve("- "+e)}}let q5=(()=>{class t{constructor(e){this.metaDataService=e}goBack(){window.history.back()}getVersion(){return this.metaDataService.version}getRealeseDate(){return this.metaDataService.date}getReleaseNotes(){return this.metaDataService.notes}}return t.\u0275fac=function(e){return new(e||t)(w(_f))},t.\u0275cmp=ee({type:t,selectors:[["app-whats-new"]],decls:31,vars:4,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],[4,"ngFor","ngForOf"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),v("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"INFO"),h()(),p(8,"h2"),f(9,"Current version"),h(),p(10,"p"),f(11," Version: "),p(12,"i"),f(13),h()(),p(14,"p"),f(15," Release date: "),p(16,"i"),f(17),h()(),p(18,"h2"),f(19,"Release notes"),h(),I(20,W5,2,1,"p",3),p(21,"div",4),K(22,"br")(23,"br"),p(24,"p"),f(25," by "),p(26,"a",5),f(27," Philipp B. "),h()(),p(28,"p")(29,"i"),f(30," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),h()()()()),2&e&&(C("enableSearchBar",!1),_(13),ve(r.getVersion()),_(4),ve(r.getRealeseDate()),_(3),C("ngForOf",r.getReleaseNotes()))},dependencies:[Pn,fr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})(),Y5=(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ee({type:t,selectors:[["app-impressum"]],decls:20,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"]],template:function(e,r){1&e&&(K(0,"app-header",0),p(1,"button",1),v("click",function(){return r.goBack()}),f(2,"Back"),h(),p(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),p(6,"i"),f(7,"Impressum"),h()(),p(8,"h2"),f(9,"License"),h(),p(10,"p"),f(11,"MIT License"),h(),p(12,"p"),f(13,"Copyright (c) 2023 Philipp B."),h(),p(14,"p"),f(15,' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: '),h(),p(16,"p"),f(17," The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. "),h(),p(18,"p"),f(19,' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. '),h()()),2&e&&C("enableSearchBar",!1)},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})(),Z5=(()=>{class t{constructor(e,r,o){this.router=e,this.route=r,this.localStorageService=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("host");if(null==e)return void this.router.navigate(["/"]);let r=this.route.snapshot.paramMap.get("port");if(null==r||isNaN(Number(r)))return void this.router.navigate(["/"]);let o=Number(r);this.localStorageService.setServerHost(e),this.localStorageService.setServerPort(o),ke.host=e,ke.port=o,this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(ur),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-connect-via-url"]],decls:2,vars:0,template:function(e,r){1&e&&(p(0,"p"),f(1,"Connecting via url..."),h())}}),t})();function X5(t,n){1&t&&K(0,"app-loading-screen")}const Q5=["outlet"],J5=["content"];function eH(t,n){1&t&&K(0,"app-markdown-content",9),2&t&&C("data",D().getData())}const tH=[{path:"",component:t3},{path:"login",component:ZM},{path:"user/add",component:B5},{path:"user/delete",component:U5},{path:"user/make/admin",component:G5},{path:"user/change/password",component:H5},{path:"login",component:ZM},{path:"deploy",component:(()=>{class t{constructor(e,r){this.router=e,this.apiService=r,this.ignoreWaitingTime=!0,this.pushToGit=!0,this.pushAll=!1,this.isLoading=!1,2==X.userLevel||this.router.navigate(["/"])}submit(){this.isLoading=!0,this.apiService.deployAll(X.userName,X.password,this.ignoreWaitingTime,this.pushToGit,this.pushAll).subscribe({next:e=>{this.isLoading=!1,e.status?De.showNotification("Success",e.message,-1):De.showNotification("Unsuccessful",e.message,-1,!0),this.close()},error:e=>{this.isLoading=!1,De.showNotification("ERROR","Error deploying: "+e.message+"!",-1,!0),this.close()}})}close(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(ke))},t.\u0275cmp=ee({type:t,selectors:[["app-deploy-spec"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:21,vars:10,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"checkBoxCon"],["type","checkbox","name","ignoreWaitingTime",3,"ngModel","ngModelChange"],["type","checkbox","name","pushToGit",3,"ngModel","ngModelChange"],["type","checkbox","name","pushAll",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[4,"ngIf"]],template:function(e,r){1&e&&(p(0,"div",0),v("click",function(){return r.close()}),h(),p(1,"div",1)(2,"h1"),f(3,"Deploy"),h(),p(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),h(),p(6,"div",3)(7,"input",4),v("ngModelChange",function(i){return r.ignoreWaitingTime=i}),h(),p(8,"p"),f(9,"Ignore waiting time"),h()(),p(10,"div",3)(11,"input",5),v("ngModelChange",function(i){return r.pushToGit=i}),h(),p(12,"p"),f(13,"Push to git"),h()(),p(14,"div",3)(15,"input",6),v("ngModelChange",function(i){return r.pushAll=i}),h(),p(16,"p"),f(17,"Push all"),h()(),p(18,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(19," Deploy "),h()(),I(20,X5,1,0,"app-loading-screen",8)),2&e&&(_(6),He("top","35%"),_(1),C("ngModel",r.ignoreWaitingTime),_(3),He("top","50%"),_(1),C("ngModel",r.pushToGit),_(3),He("top","65%"),_(1),C("ngModel",r.pushAll),_(5),C("ngIf",r.isLoading))},dependencies:[Pe,Po,yt,pt,KM],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;color:varvar(--inverted-text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:37%}.container[_ngcontent-%COMP%] .toLanguage[_ngcontent-%COMP%]{top:20%}.checkBoxCon[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);display:flex;flex-direction:row;margin-top:5px}.checkBoxCon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.checkBoxCon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:120px;margin-top:2px;width:200px;font-size:20px;color:var(--inverted-text-color);cursor:pointer;text-align:left}"]}),t})()},{path:"error",component:R5},{path:"chapter/:chapterName",component:rD},{path:"chapter/:chapterName/edit",component:d5},{path:"settings",component:oD},{path:"settings/:settingsName",component:oD},{path:"markdown",component:F5},{path:"playground",component:(()=>{class t{rerender(){!this.outletRef||!this.contentRef||(this.outletRef.clear(),this.outletRef.createEmbeddedView(this.contentRef))}constructor(e,r){this.router=e,this.localStorageService=r,this.data="# Playground"}handleKeydown(e){if("Tab"==e.key){e.preventDefault();var r=e.target.selectionStart,o=e.target.selectionEnd;e.target.value=e.target.value.substring(0,r)+"\t"+e.target.value.substring(o),e.target.selectionStart=e.target.selectionEnd=r+1,this.data=e.target.value}}onChange(){console.log(this.data),this.rerender()}getData(){return this.data}getHeight(){let e=this.data.split("\n").length*this.getFontSize()*2;return e<50?50:e}getFontSize(){return this.localStorageService.getFontSize()}goBack(){this.router.navigate(["/markdown"])}}return t.\u0275fac=function(e){return new(e||t)(w(Re),w(at))},t.\u0275cmp=ee({type:t,selectors:[["app-playground"]],viewQuery:function(e,r){if(1&e&&(Ll(Q5,5,ln),Ll(J5,5,ar)),2&e){let o;Ns(o=Rs())&&(r.outletRef=o.first),Ns(o=Rs())&&(r.contentRef=o.first)}},decls:13,vars:7,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],[1,"backButton",3,"click"],["id","basic-syntax"],[1,"contentBox"],["spellcheck","false",3,"ngModel","keydown","ngModelChange"],[3,"ngTemplateOutlet"],["outlet",""],["content",""],[3,"data"]],template:function(e,r){if(1&e&&(K(0,"app-header",0),p(1,"div",1)(2,"button",2),v("click",function(){return r.goBack()}),f(3,"Back"),h(),p(4,"h1",3),f(5,"Markdown Playground"),h(),p(6,"div",4)(7,"textarea",5),v("keydown",function(i){return r.handleKeydown(i)})("ngModelChange",function(i){return r.data=i})("ngModelChange",function(){return r.onChange()}),h()(),p(8,"div"),qd(9,6,7),h(),I(11,eH,1,1,"ng-template",null,8,uy),h()),2&e){const o=function cv(t){return jo(function Y1(){return ae.lFrame.contextLView}(),Me+t)}(12);C("enableSearchBar",!1),_(7),He("font-size",r.getFontSize()+"px")("height",r.getHeight()+"px"),C("ngModel",r.data),_(2),C("ngTemplateOutlet",o)}},dependencies:[k0,It,yt,pt,fr,eD],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;padding-left:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color);text-decoration:none}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:90%;border:1px solid var(--text-color);box-shadow:0 0 20px #00000026}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:16px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--header-color)}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:none;border-radius:10px;resize:vertical;color:var(--text-color);background-color:var(--bg-color)}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:1px solid #ccc}"]}),t})()},{path:"help",component:j5},{path:"info",component:q5},{path:"impressum",component:Y5},{path:"connect/:host/:port",component:Z5}];let nH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[tc,gb.forRoot(tH),gb]}),t})();F(852),F(568),F(428),F(984),F(544),F(668),F(841),F(890);let rH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[tc]}),t})(),oH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t,bootstrap:[RL]}),t.\u0275inj=Qt({providers:[{provide:qr,useClass:m0}],imports:[bR,PL,EB.forRoot(),bV,nH,rH]}),t})();yR().bootstrapModule(oH).catch(t=>console.error(t))},890:()=>{!function(Oe){var Tt="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",F={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},G={bash:F,environment:{pattern:RegExp("\\$"+Tt),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Tt),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Oe.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Tt),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:G},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:F}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:G},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:G.entity}}],environment:{pattern:RegExp("\\$?"+Tt),alias:"constant"},variable:G.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},F.inside=Oe.languages.bash;for(var Ye=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Pt=G.variable[1].inside,ht=0;ht{var Oe,Tt,F,G;Oe=Prism,Tt=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,F=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,G={pattern:RegExp(/(^|[^\w.])/.source+F+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},Oe.languages.java=Oe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[G,{pattern:RegExp(/(^|[^\w.])/.source+F+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:G.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+F+/[A-Z]\w*\b/.source),lookbehind:!0,inside:G.inside}],keyword:Tt,function:[Oe.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),Oe.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),Oe.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":G,keyword:Tt,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+F+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:G.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+F+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:G.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return Tt.source})),lookbehind:!0,inside:{punctuation:/\./}}})},852:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},984:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},568:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},544:()=>{Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss},841:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},668:()=>{!function(Oe){Oe.languages.typescript=Oe.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Oe.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Oe.languages.typescript.parameter,delete Oe.languages.typescript["literal-property"];var Tt=Oe.languages.extend("typescript",{});delete Tt["class-name"],Oe.languages.typescript["class-name"].inside=Tt,Oe.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Tt}}}}),Oe.languages.ts=Oe.languages.typescript}(Prism)},83:Oe=>{var F=function(G){var Ye=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Pt=0,ht={},U={manual:G.Prism&&G.Prism.manual,disableWorkerMessageHandler:G.Prism&&G.Prism.disableWorkerMessageHandler,util:{encode:function P(S){return S instanceof kt?new kt(S.type,P(S.content),S.alias):Array.isArray(S)?S.map(P):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(B){var P=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(B.stack)||[])[1];if(P){var S=document.getElementsByTagName("script");for(var R in S)if(S[R].src==P)return S[R]}return null}},isActive:function(P,S,R){for(var B="no-"+S;P;){var L=P.classList;if(L.contains(S))return!0;if(L.contains(B))return!1;P=P.parentElement}return!!R}},languages:{plain:ht,plaintext:ht,text:ht,txt:ht,extend:function(P,S){var R=U.util.clone(U.languages[P]);for(var B in S)R[B]=S[B];return R},insertBefore:function(P,S,R,B){var L=(B=B||U.languages)[P],J={};for(var Ce in L)if(L.hasOwnProperty(Ce)){if(Ce==S)for(var Q in R)R.hasOwnProperty(Q)&&(J[Q]=R[Q]);R.hasOwnProperty(Ce)||(J[Ce]=L[Ce])}var Ve=B[P];return B[P]=J,U.languages.DFS(U.languages,function(lt,zn){zn===Ve&<!=P&&(this[lt]=J)}),J},DFS:function P(S,R,B,L){L=L||{};var J=U.util.objId;for(var Ce in S)if(S.hasOwnProperty(Ce)){R.call(S,Ce,S[Ce],B||Ce);var Q=S[Ce],Ve=U.util.type(Q);"Object"!==Ve||L[J(Q)]?"Array"===Ve&&!L[J(Q)]&&(L[J(Q)]=!0,P(Q,R,Ce,L)):(L[J(Q)]=!0,P(Q,R,null,L))}}},plugins:{},highlightAll:function(P,S){U.highlightAllUnder(document,P,S)},highlightAllUnder:function(P,S,R){var B={callback:R,container:P,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};U.hooks.run("before-highlightall",B),B.elements=Array.prototype.slice.apply(B.container.querySelectorAll(B.selector)),U.hooks.run("before-all-elements-highlight",B);for(var J,L=0;J=B.elements[L++];)U.highlightElement(J,!0===S,B.callback)},highlightElement:function(P,S,R){var B=U.util.getLanguage(P),L=U.languages[B];U.util.setLanguage(P,B);var J=P.parentElement;J&&"pre"===J.nodeName.toLowerCase()&&U.util.setLanguage(J,B);var Q={element:P,language:B,grammar:L,code:P.textContent};function Ve(zn){Q.highlightedCode=zn,U.hooks.run("before-insert",Q),Q.element.innerHTML=Q.highlightedCode,U.hooks.run("after-highlight",Q),U.hooks.run("complete",Q),R&&R.call(Q.element)}if(U.hooks.run("before-sanity-check",Q),(J=Q.element.parentElement)&&"pre"===J.nodeName.toLowerCase()&&!J.hasAttribute("tabindex")&&J.setAttribute("tabindex","0"),!Q.code)return U.hooks.run("complete",Q),void(R&&R.call(Q.element));if(U.hooks.run("before-highlight",Q),Q.grammar)if(S&&G.Worker){var lt=new Worker(U.filename);lt.onmessage=function(zn){Ve(zn.data)},lt.postMessage(JSON.stringify({language:Q.language,code:Q.code,immediateClose:!0}))}else Ve(U.highlight(Q.code,Q.grammar,Q.language));else Ve(U.util.encode(Q.code))},highlight:function(P,S,R){var B={code:P,grammar:S,language:R};if(U.hooks.run("before-tokenize",B),!B.grammar)throw new Error('The language "'+B.language+'" has no grammar.');return B.tokens=U.tokenize(B.code,B.grammar),U.hooks.run("after-tokenize",B),kt.stringify(U.util.encode(B.tokens),B.language)},tokenize:function(P,S){var R=S.rest;if(R){for(var B in R)S[B]=R[B];delete S.rest}var L=new un;return In(L,L.head,P),io(P,L,S,L.head,0),function Nr(P){for(var S=[],R=P.head.next;R!==P.tail;)S.push(R.value),R=R.next;return S}(L)},hooks:{all:{},add:function(P,S){var R=U.hooks.all;R[P]=R[P]||[],R[P].push(S)},run:function(P,S){var R=U.hooks.all[P];if(R&&R.length)for(var L,B=0;L=R[B++];)L(S)}},Token:kt};function kt(P,S,R,B){this.type=P,this.content=S,this.alias=R,this.length=0|(B||"").length}function Ar(P,S,R,B){P.lastIndex=S;var L=P.exec(R);if(L&&B&&L[1]){var J=L[1].length;L.index+=J,L[0]=L[0].slice(J)}return L}function io(P,S,R,B,L,J){for(var Ce in R)if(R.hasOwnProperty(Ce)&&R[Ce]){var Q=R[Ce];Q=Array.isArray(Q)?Q:[Q];for(var Ve=0;Ve=J.reach);xe+=wt.value.length,wt=wt.next){var gr=wt.value;if(S.length>P.length)return;if(!(gr instanceof kt)){var dn,No=1;if(ma){if(!(dn=Ar(_a,xe,P,Ao))||dn.index>=P.length)break;var so=dn.index,Wc=dn.index+dn[0].length,ot=xe;for(ot+=wt.value.length;so>=ot;)ot+=(wt=wt.next).value.length;if(xe=ot-=wt.value.length,wt.value instanceof kt)continue;for(var Rr=wt;Rr!==S.tail&&(otJ.reach&&(J.reach=ye);var Fr=wt.prev;if(Je&&(Fr=In(S,Fr,Je),xe+=Je.length),ko(S,Fr,No),wt=In(S,Fr,new kt(Ce,zn?U.tokenize(Qe,zn):Qe,Hi,Qe)),va&&In(S,wt,va),No>1){var ao={cause:Ce+","+Ve,reach:ye};io(P,S,R,wt.prev,xe,ao),J&&ao.reach>J.reach&&(J.reach=ao.reach)}}}}}}function un(){var P={value:null,prev:null,next:null},S={value:null,prev:P,next:null};P.next=S,this.head=P,this.tail=S,this.length=0}function In(P,S,R){var B=S.next,L={value:R,prev:S,next:B};return S.next=L,B.prev=L,P.length++,L}function ko(P,S,R){for(var B=S.next,L=0;L"+L.content+""},!G.document)return G.addEventListener&&(U.disableWorkerMessageHandler||G.addEventListener("message",function(P){var S=JSON.parse(P.data),R=S.language,L=S.immediateClose;G.postMessage(U.highlight(S.code,U.languages[R],R)),L&&G.close()},!1)),U;var ft=U.util.currentScript();function $e(){U.manual||U.highlightAll()}if(ft&&(U.filename=ft.src,ft.hasAttribute("data-manual")&&(U.manual=!0)),!U.manual){var gt=document.readyState;"loading"===gt||"interactive"===gt&&ft&&ft.defer?document.addEventListener("DOMContentLoaded",$e):window.requestAnimationFrame?window.requestAnimationFrame($e):window.setTimeout($e,16)}return U}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});Oe.exports&&(Oe.exports=F),typeof global<"u"&&(global.Prism=F),F.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},F.languages.markup.tag.inside["attr-value"].inside.entity=F.languages.markup.entity,F.languages.markup.doctype.inside["internal-subset"].inside=F.languages.markup,F.hooks.add("wrap",function(G){"entity"===G.type&&(G.attributes.title=G.content.replace(/&/,"&"))}),Object.defineProperty(F.languages.markup.tag,"addInlined",{value:function(Ye,Pt){var ht={};ht["language-"+Pt]={pattern:/(^$)/i,lookbehind:!0,inside:F.languages[Pt]},ht.cdata=/^$/i;var U={"included-cdata":{pattern://i,inside:ht}};U["language-"+Pt]={pattern:/[\s\S]+/,inside:F.languages[Pt]};var kt={};kt[Ye]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return Ye}),"i"),lookbehind:!0,greedy:!0,inside:U},F.languages.insertBefore("markup","cdata",kt)}}),Object.defineProperty(F.languages.markup.tag,"addAttribute",{value:function(G,Ye){F.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+G+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Ye,"language-"+Ye],inside:F.languages[Ye]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),F.languages.html=F.languages.markup,F.languages.mathml=F.languages.markup,F.languages.svg=F.languages.markup,F.languages.xml=F.languages.extend("markup",{}),F.languages.ssml=F.languages.xml,F.languages.atom=F.languages.xml,F.languages.rss=F.languages.xml,function(G){var Ye=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;G.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Ye.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Ye.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ye.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+Ye.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ye,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},G.languages.css.atrule.inside.rest=G.languages.css;var Pt=G.languages.markup;Pt&&(Pt.tag.addInlined("style","css"),Pt.tag.addAttribute("style","css"))}(F),F.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},F.languages.javascript=F.languages.extend("clike",{"class-name":[F.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),F.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,F.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:F.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:F.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:F.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:F.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:F.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),F.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:F.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),F.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),F.languages.markup&&(F.languages.markup.tag.addInlined("script","javascript"),F.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),F.languages.js=F.languages.javascript,function(){if(!(typeof F>"u"||typeof document>"u")){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var ht={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},U="data-src-status",kt="loading",un="pre[data-src]:not(["+U+'="loaded"]):not(['+U+'="'+kt+'"])';F.hooks.add("before-highlightall",function(ft){ft.selector+=", "+un}),F.hooks.add("before-sanity-check",function(ft){var $e=ft.element;if($e.matches(un)){ft.code="",$e.setAttribute(U,kt);var gt=$e.appendChild(document.createElement("CODE"));gt.textContent="Loading\u2026";var P=$e.getAttribute("data-src"),S=ft.language;if("none"===S){var R=(/\.(\w+)$/.exec(P)||[,"none"])[1];S=ht[R]||R}F.util.setLanguage(gt,S),F.util.setLanguage($e,S);var B=F.plugins.autoloader;B&&B.loadLanguages(S),function In(ft,$e,gt){var P=new XMLHttpRequest;P.open("GET",ft,!0),P.onreadystatechange=function(){4==P.readyState&&(P.status<400&&P.responseText?$e(P.responseText):gt(P.status>=400?function(ft,$e){return"\u2716 Error "+ft+" while fetching file: "+$e}(P.status,P.statusText):"\u2716 Error: File does not exist or is empty"))},P.send(null)}(P,function(L){$e.setAttribute(U,"loaded");var J=function ko(ft){var $e=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(ft||"");if($e){var gt=Number($e[1]),S=$e[3];return $e[2]?S?[gt,Number(S)]:[gt,void 0]:[gt,gt]}}($e.getAttribute("data-range"));if(J){var Ce=L.split(/\r\n?|\n/g),Q=J[0],Ve=null==J[1]?Ce.length:J[1];Q<0&&(Q+=Ce.length),Q=Math.max(0,Math.min(Q-1,Ce.length)),Ve<0&&(Ve+=Ce.length),Ve=Math.max(0,Math.min(Ve,Ce.length)),L=Ce.slice(Q,Ve).join("\n"),$e.hasAttribute("data-start")||$e.setAttribute("data-start",String(Q+1))}gt.textContent=L,F.highlightElement(gt)},function(L){$e.setAttribute(U,"failed"),gt.textContent=L})}}),F.plugins.fileHighlight={highlight:function($e){for(var S,gt=($e||document).querySelectorAll(un),P=0;S=gt[P++];)F.highlightElement(S)}};var Nr=!1;F.fileHighlight=function(){Nr||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),Nr=!0),F.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}},Oe=>{Oe(Oe.s=204)}]); \ No newline at end of file diff --git a/main.b8031abf250adfec.js b/main.b8031abf250adfec.js new file mode 100644 index 0000000..2e1f87e --- /dev/null +++ b/main.b8031abf250adfec.js @@ -0,0 +1 @@ +(self.webpackChunkInterSystemsWOOP=self.webpackChunkInterSystemsWOOP||[]).push([[179],{393:(Oe,Tt,F)=>{"use strict";function G(t){return"function"==typeof t}function Ye(t){const e=t(r=>{Error.call(r),r.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Pt=Ye(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function ht(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class U{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:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const i of e)i.remove(this);else e.remove(this);const{initialTeardown:r}=this;if(G(r))try{r()}catch(i){n=i instanceof Pt?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{io(i)}catch(s){n=n??[],s instanceof Pt?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Pt(n)}}add(n){var e;if(n&&n!==this)if(this.closed)io(n);else{if(n instanceof U){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&ht(e,n)}remove(n){const{_finalizers:e}=this;e&&ht(e,n),n instanceof U&&n._removeParent(this)}}U.EMPTY=(()=>{const t=new U;return t.closed=!0,t})();const kt=U.EMPTY;function Ar(t){return t instanceof U||t&&"closed"in t&&G(t.remove)&&G(t.add)&&G(t.unsubscribe)}function io(t){G(t)?t():t.unsubscribe()}const un={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},In={setTimeout(t,n,...e){const{delegate:r}=In;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=In;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function ko(t){In.setTimeout(()=>{const{onUnhandledError:n}=un;if(!n)throw t;n(t)})}function Nr(){}const ft=O("C",void 0,void 0);function O(t,n,e){return{kind:t,value:n,error:e}}let S=null;function R(t){if(un.useDeprecatedSynchronousErrorHandling){const n=!S;if(n&&(S={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:r}=S;if(S=null,e)throw r}}else t()}class L extends U{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ar(n)&&n.add(this)):this.destination=ma}static create(n,e,r){return new Ve(n,e,r)}next(n){this.isStopped?Ao(function gt(t){return O("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Ao(function $e(t){return O("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Ao(ft,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 ee=Function.prototype.bind;function Ce(t,n){return ee.call(t,n)}class Q{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){lt(r)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){lt(r)}else lt(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){lt(e)}}}class Ve extends L{constructor(n,e,r){let o;if(super(),G(n)||!n)o={next:n??void 0,error:e??void 0,complete:r??void 0};else{let i;this&&un.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Ce(n.next,i),error:n.error&&Ce(n.error,i),complete:n.complete&&Ce(n.complete,i)}):o=n}this.destination=new Q(o)}}function lt(t){un.useDeprecatedSynchronousErrorHandling?function B(t){un.useDeprecatedSynchronousErrorHandling&&S&&(S.errorThrown=!0,S.error=t)}(t):ko(t)}function Ao(t,n){const{onStoppedNotification:e}=un;e&&In.setTimeout(()=>e(t,n))}const ma={closed:!0,next:Nr,error:function zn(t){throw t},complete:Nr},Hi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gn(t){return t}function wt(t){return 0===t.length?Gn:1===t.length?t[0]:function(e){return t.reduce((r,o)=>o(r),e)}}let Ee=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,o){const i=function dn(t){return t&&t instanceof L||function No(t){return t&&G(t.next)&&G(t.error)&&G(t.complete)}(t)&&Ar(t)}(e)?e:new Ve(e,r,o);return R(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return new(r=gr(r))((o,i)=>{const s=new Ve({next:a=>{try{e(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(e){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(e)}[Hi](){return this}pipe(...e){return wt(e)(this)}toPromise(e){return new(e=gr(e))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=n=>new t(n),t})();function gr(t){var n;return null!==(n=t??un.Promise)&&void 0!==n?n:Promise}const Wc=Ye(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let ot=(()=>{class t extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const r=new Rr(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new Wc}next(e){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(e)}})}error(e){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){R(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:r,isStopped:o,observers:i}=this;return r||o?kt:(this.currentObservers=null,i.push(e),new U(()=>{this.currentObservers=null,ht(i,e)}))}_checkFinalizedStatuses(e){const{hasError:r,thrownError:o,isStopped:i}=this;r?e.error(o):i&&e.complete()}asObservable(){const e=new Ee;return e.source=this,e}}return t.create=(n,e)=>new Rr(n,e),t})();class Rr extends ot{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,n)}error(n){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,r;return null!==(r=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==r?r:kt}}function so(t){return G(t?.lift)}function Qe(t){return n=>{if(so(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Je(t,n,e,r,o){return new va(t,n,e,r,o)}class va extends L{constructor(n,e,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ye(t,n){return Qe((e,r)=>{let o=0;e.subscribe(Je(r,i=>{r.next(t.call(n,i,o++))}))})}function Lr(t){return this instanceof Lr?(this.v=t,this):new Lr(t)}function bf(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Zc(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}(a,l,(s=t[i](s)).done,s.value)})}}}const Mf=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Df(t){return G(t?.then)}function xf(t){return G(t[Hi])}function Ef(t){return Symbol.asyncIterator&&G(t?.[Symbol.asyncIterator])}function Sf(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Pf=function b1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Of(t){return G(t?.[Pf])}function If(t){return function wf(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=e.apply(t,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(m){return new Promise(function(y,D){i.push([g,m,y,D])>1||a(g,m)})})}function a(g,m){try{!function l(g){g.value instanceof Lr?Promise.resolve(g.value.v).then(c,u):h(i[0][2],g)}(r[g](m))}catch(y){h(i[0][3],y)}}function c(g){a("next",g)}function u(g){a("throw",g)}function h(g,m){g(m),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:r,done:o}=yield Lr(e.read());if(o)return yield Lr(void 0);yield yield Lr(r)}}finally{e.releaseLock()}})}function Tf(t){return G(t?.getReader)}function pn(t){if(t instanceof Ee)return t;if(null!=t){if(xf(t))return function M1(t){return new Ee(n=>{const e=t[Hi]();if(G(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Mf(t))return function D1(t){return new Ee(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,ko)})}(t);if(Ef(t))return kf(t);if(Of(t))return function E1(t){return new Ee(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(Tf(t))return function S1(t){return kf(If(t))}(t)}throw Sf(t)}function kf(t){return new Ee(n=>{(function P1(t,n){var e,r,o,i;return function Cf(t,n,e,r){return new(e||(e=Promise))(function(i,s){function a(u){try{c(r.next(u))}catch(h){s(h)}}function l(u){try{c(r.throw(u))}catch(h){s(h)}}function c(u){u.done?i(u.value):function o(i){return i instanceof e?i:new e(function(s){s(i)})}(u.value).then(a,l)}c((r=r.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=bf(t);!(r=yield e.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function mr(t,n,e,r=0,o=!1){const i=n.schedule(function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function At(t,n,e=1/0){return G(n)?At((r,o)=>ye((i,s)=>n(r,i,o,s))(pn(t(r,o))),e):("number"==typeof n&&(e=n),Qe((r,o)=>function O1(t,n,e,r,o,i,s,a){const l=[];let c=0,u=0,h=!1;const g=()=>{h&&!l.length&&!c&&n.complete()},m=D=>c{i&&n.next(D),c++;let x=!1;pn(e(D,u++)).subscribe(Je(n,E=>{o?.(E),i?m(E):n.next(E)},()=>{x=!0},void 0,()=>{if(x)try{for(c--;l.length&&cy(E)):y(E)}g()}catch(E){n.error(E)}}))};return t.subscribe(Je(n,m,()=>{h=!0,g()})),()=>{a?.()}}(r,o,t,e)))}function Ro(t=1/0){return At(Gn,t)}const Wn=new Ee(t=>t.complete());function Af(t){return t&&G(t.schedule)}function Xc(t){return t[t.length-1]}function Nf(t){return G(Xc(t))?t.pop():void 0}function $i(t){return Af(Xc(t))?t.pop():void 0}function Rf(t,n=0){return Qe((e,r)=>{e.subscribe(Je(r,o=>mr(r,t,()=>r.next(o),n),()=>mr(r,t,()=>r.complete(),n),o=>mr(r,t,()=>r.error(o),n)))})}function Ff(t,n=0){return Qe((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Lf(t,n){if(!t)throw new Error("Iterable cannot be null");return new Ee(e=>{mr(e,n,()=>{const r=t[Symbol.asyncIterator]();mr(e,n,()=>{r.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function bt(t,n){return n?function L1(t,n){if(null!=t){if(xf(t))return function k1(t,n){return pn(t).pipe(Ff(n),Rf(n))}(t,n);if(Mf(t))return function N1(t,n){return new Ee(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}(t,n);if(Df(t))return function A1(t,n){return pn(t).pipe(Ff(n),Rf(n))}(t,n);if(Ef(t))return Lf(t,n);if(Of(t))return function R1(t,n){return new Ee(e=>{let r;return mr(e,n,()=>{r=t[Pf](),mr(e,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void e.error(s)}i?e.complete():e.next(o)},0,!0)}),()=>G(r?.return)&&r.return()})}(t,n);if(Tf(t))return function F1(t,n){return Lf(If(t),n)}(t,n)}throw Sf(t)}(t,n):pn(t)}function Bf(...t){const n=$i(t),e=function T1(t,n){return"number"==typeof Xc(t)?t.pop():n}(t,1/0),r=t;return r.length?1===r.length?pn(r[0]):Ro(e)(bt(r,n)):Wn}function Vf(t={}){const{connector:n=(()=>new ot),resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,l,c=0,u=!1,h=!1;const g=()=>{a?.unsubscribe(),a=void 0},m=()=>{g(),s=l=void 0,u=h=!1},y=()=>{const D=s;m(),D?.unsubscribe()};return Qe((D,x)=>{c++,!h&&!u&&g();const E=l=l??n();x.add(()=>{c--,0===c&&!h&&!u&&(a=Kc(y,o))}),E.subscribe(x),!s&&c>0&&(s=new Ve({next:b=>E.next(b),error:b=>{h=!0,g(),a=Kc(m,e,b),E.error(b)},complete:()=>{u=!0,g(),a=Kc(m,r),E.complete()}}),pn(D).subscribe(s))})(i)}}function Kc(t,n,...e){if(!0===n)return void t();if(!1===n)return;const r=new Ve({next:()=>{r.unsubscribe(),t()}});return pn(n(...e)).subscribe(r)}function Fe(t){for(let n in t)if(t[n]===Fe)return n;throw Error("Could not find renamed property on target object.")}function Qc(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Mt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Mt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Jc(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const B1=Fe({__forward_ref__:Fe});function ze(t){return t.__forward_ref__=ze,t.toString=function(){return Mt(this())},t}function pe(t){return eu(t)?t():t}function eu(t){return"function"==typeof t&&t.hasOwnProperty(B1)&&t.__forward_ref__===ze}function tu(t){return t&&!!t.\u0275providers}const Hf="https://g.co/ng/security#xss";class T extends Error{constructor(n,e){super(function Ca(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,e)),this.code=n}}function he(t){return"string"==typeof t?t:null==t?"":String(t)}function ya(t,n){throw new T(-201,!1)}function bn(t,n){null==t&&function Re(t,n,e,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${e} ${r} ${n} <=Actual]`))}(n,t,null,"!=")}function Z(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Qt(t){return{providers:t.providers||[],imports:t.imports||[]}}function wa(t){return $f(t,ba)||$f(t,jf)}function $f(t,n){return t.hasOwnProperty(n)?t[n]:null}function Uf(t){return t&&(t.hasOwnProperty(nu)||t.hasOwnProperty(W1))?t[nu]:null}const ba=Fe({\u0275prov:Fe}),nu=Fe({\u0275inj:Fe}),jf=Fe({ngInjectableDef:Fe}),W1=Fe({ngInjectorDef:Fe});var ie=(()=>((ie=ie||{})[ie.Default=0]="Default",ie[ie.Host=1]="Host",ie[ie.Self=2]="Self",ie[ie.SkipSelf=4]="SkipSelf",ie[ie.Optional=8]="Optional",ie))();let ru;function Jt(t){const n=ru;return ru=t,n}function Gf(t,n,e){const r=wa(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:e&ie.Optional?null:void 0!==n?n:void ya(Mt(t))}const Ge=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Ui={},ou="__NG_DI_FLAG__",Ma="ngTempTokenPath",Y1=/\n/gm,Wf="__source";let Fo;function Vr(t){const n=Fo;return Fo=t,n}function K1(t,n=ie.Default){if(void 0===Fo)throw new T(-203,!1);return null===Fo?Gf(t,void 0,n):Fo.get(t,n&ie.Optional?null:void 0,n)}function V(t,n=ie.Default){return(function zf(){return ru}()||K1)(pe(t),n)}function z(t,n=ie.Default){return V(t,Da(n))}function Da(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function iu(t){const n=[];for(let e=0;e((qn=qn||{})[qn.OnPush=0]="OnPush",qn[qn.Default=1]="Default",qn))(),fn=(()=>{return(t=fn||(fn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",fn;var t})();const vr={},Pe=[],xa=Fe({\u0275cmp:Fe}),su=Fe({\u0275dir:Fe}),au=Fe({\u0275pipe:Fe}),Yf=Fe({\u0275mod:Fe}),Cr=Fe({\u0275fac:Fe}),zi=Fe({__NG_ELEMENT_ID__:Fe}),Zf=Fe({__NG_ENV_ID__:Fe});function Xf(t,n,e){let r=t.length;for(;;){const o=t.indexOf(n,e);if(-1===o)return o;if(0===o||t.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}e=o+1}}function lu(t,n,e){let r=0;for(;rn){s=i-1;break}}}for(;ii?"":o[h+1].toLowerCase();const m=8&r?g:null;if(m&&-1!==Xf(m,c,0)||2&r&&c!==g){if(Tn(r))return!1;s=!0}}}}else{if(!s&&!Tn(r)&&!Tn(l))return!1;if(s&&Tn(l))continue;s=!1,r=l|1&r}}return Tn(r)||s}function Tn(t){return 0==(1&t)}function oD(t,n,e,r){if(null===n)return-1;let o=0;if(r||!e){let i=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Tn(s)&&(n+=rg(i,o),o=""),r=s,i=i||!Tn(r);e++}return""!==o&&(n+=rg(i,o)),n}function J(t){return _r(()=>{const n=ig(t),e={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===qn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,data:t.data||{},encapsulation:t.encapsulation||fn.Emulated,styles:t.styles||Pe,_:null,schemas:t.schemas||null,tView:null,id:""};sg(e);const r=t.dependencies;return e.directiveDefs=Ea(r,!1),e.pipeDefs=Ea(r,!0),e.id=function _D(t){let n=0;const e=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const o of e)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(e),e})}function hD(t){return Ie(t)||Bt(t)}function fD(t){return null!==t}function gn(t){return _r(()=>({type:t.type,bootstrap:t.bootstrap||Pe,declarations:t.declarations||Pe,imports:t.imports||Pe,exports:t.exports||Pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function og(t,n){if(null==t)return vr;const e={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),e[o]=r,n&&(n[o]=i)}return e}function de(t){return _r(()=>{const n=ig(t);return sg(n),n})}function Lt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ie(t){return t[xa]||null}function Bt(t){return t[su]||null}function en(t){return t[au]||null}function mn(t,n){const e=t[Yf]||null;if(!e&&!0===n)throw new Error(`Type ${Mt(t)} does not have '\u0275mod' property.`);return e}function ig(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,exportAs:t.exportAs||null,standalone:!0===t.standalone,selectors:t.selectors||Pe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:og(t.inputs,n),outputs:og(t.outputs)}}function sg(t){t.features?.forEach(n=>n(t))}function Ea(t,n){if(!t)return null;const e=n?en:hD;return()=>("function"==typeof t?t():t).map(r=>e(r)).filter(fD)}const Dt=0,H=1,me=2,tt=3,kn=4,lo=5,Vt=6,Bo=7,it=8,Vo=9,co=10,fe=11,Wi=12,ag=13,Ho=14,mt=15,qi=16,$o=17,Yn=18,Yi=19,lg=20,Hr=21,yr=22,Sa=23,Pa=24,Me=25,cu=1,cg=2,Zn=7,Oa=8,Uo=9,Nt=11;function _n(t){return Array.isArray(t)&&"object"==typeof t[cu]}function tn(t){return Array.isArray(t)&&!0===t[cu]}function uu(t){return 0!=(4&t.flags)}function uo(t){return t.componentOffset>-1}function Ia(t){return 1==(1&t.flags)}function An(t){return!!t.template}function du(t){return 0!=(512&t[me])}function po(t,n){return t.hasOwnProperty(Cr)?t[Cr]:null}let bD=Ge.WeakRef??class wD{constructor(n){this.ref=n}deref(){return this.ref}},DD=0,Xn=null,Ta=!1;function Ot(t){const n=Xn;return Xn=t,n}class fg{constructor(){this.id=DD++,this.ref=function MD(t){return new bD(t)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[n,e]of this.producers){const r=e.producerNode.deref();if(void 0!==r&&e.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(e.seenValueVersion))return!0}else this.producers.delete(n),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const n=Ta;Ta=!0;try{for(const[e,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(e),o?.producers.delete(this.id))}}finally{Ta=n}}producerAccessed(){if(Ta)throw new Error("");if(null===Xn)return;let n=Xn.producers.get(this.id);void 0===n?(n={consumerNode:Xn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:Xn.trackingVersion},Xn.producers.set(this.id,n),this.consumers.set(Xn.id,n)):(n.seenValueVersion=this.valueVersion,n.atTrackingVersion=Xn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==Xn?.consumerAllowSignalWrites}producerPollStatus(n){return this.valueVersion!==n||(this.onProducerUpdateValueVersion(),this.valueVersion!==n)}}let gg=null;const mg=()=>{};class PD extends fg{constructor(n,e,r){super(),this.watch=n,this.schedule=e,this.dirty=!1,this.cleanupFn=mg,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const n=Ot(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=mg,this.watch(this.registerOnCleanup)}finally{Ot(n)}}cleanup(){this.cleanupFn()}}class OD{constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}}function nn(){return _g}function _g(t){return t.type.prototype.ngOnChanges&&(t.setInput=TD),ID}function ID(){const t=Cg(this),n=t?.current;if(n){const e=t.previous;if(e===vr)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function TD(t,n,e,r){const o=this.declaredInputs[e],i=Cg(t)||function kD(t,n){return t[vg]=n}(t,{previous:vr,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new OD(l&&l.currentValue,n,a===vr),t[r]=n}nn.ngInherit=!0;const vg="__ngSimpleChanges__";function Cg(t){return t[vg]||null}const Kn=function(t,n,e){};function Ze(t){for(;Array.isArray(t);)t=t[Dt];return t}function Na(t,n){return Ze(n[t])}function rn(t,n){return Ze(n[t.index])}function bg(t,n){return t.data[n]}function jo(t,n){return t[n]}function on(t,n){const e=n[t];return _n(e)?e:e[Dt]}function Ra(t){return 128==(128&t[me])}function $r(t,n){return null==n?null:t[n]}function Mg(t){t[$o]=0}function BD(t){1024&t[me]||(t[me]|=1024,xg(t,1))}function Dg(t){1024&t[me]&&(t[me]&=-1025,xg(t,-1))}function xg(t,n){let e=t[tt];if(null===e)return;e[lo]+=n;let r=e;for(e=e[tt];null!==e&&(1===n&&1===r[lo]||-1===n&&0===r[lo]);)e[lo]+=n,r=e,e=e[tt]}const le={lFrame:Fg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pg(){return le.bindingsEnabled}function zo(){return null!==le.skipHydrationRootTNode}function I(){return le.lFrame.lView}function xe(){return le.lFrame.tView}function A(t){return le.lFrame.contextLView=t,t[it]}function N(t){return le.lFrame.contextLView=null,t}function Rt(){let t=Og();for(;null!==t&&64===t.type;)t=t.parent;return t}function Og(){return le.lFrame.currentTNode}function Qn(t,n){const e=le.lFrame;e.currentTNode=t,e.isParent=n}function _u(){return le.lFrame.isParent}function vu(){le.lFrame.isParent=!1}function Go(){return le.lFrame.bindingIndex++}function br(t){const n=le.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function XD(t,n){const e=le.lFrame;e.bindingIndex=e.bindingRootIndex=t,Cu(n)}function Cu(t){le.lFrame.currentDirectiveIndex=t}function Ag(){return le.lFrame.currentQueryIndex}function wu(t){le.lFrame.currentQueryIndex=t}function QD(t){const n=t[H];return 2===n.type?n.declTNode:1===n.type?t[Vt]:null}function Ng(t,n,e){if(e&ie.SkipSelf){let o=n,i=t;for(;!(o=o.parent,null!==o||e&ie.Host||(o=QD(i),null===o||(i=i[Ho],10&o.type))););if(null===o)return!1;n=o,t=i}const r=le.lFrame=Rg();return r.currentTNode=n,r.lView=t,!0}function bu(t){const n=Rg(),e=t[H];le.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Rg(){const t=le.lFrame,n=null===t?null:t.child;return null===n?Fg(t):n}function Fg(t){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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Lg(){const t=le.lFrame;return le.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Bg=Lg;function Mu(){const t=Lg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Gt(){return le.lFrame.selectedIndex}function ho(t){le.lFrame.selectedIndex=t}function nt(){const t=le.lFrame;return bg(t.tView,t.selectedIndex)}let Hg=!0;function Fa(){return Hg}function Ur(t){Hg=t}function La(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[l]<0&&(t[$o]+=65536),(a>12>16&&(3&t[me])===n&&(t[me]+=4096,Ug(a,i)):Ug(a,i)}const Wo=-1;class Ki{constructor(n,e,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=r}}function jg(t){return t!==Wo}function Ha(t){return 32767&t}function $a(t,n){let e=function ux(t){return t>>16}(t),r=n;for(;e>0;)r=r[Ho],e--;return r}let Eu=!0;function Ua(t){const n=Eu;return Eu=t,n}const zg=255,Gg=5;let dx=0;const Jn={};function ja(t,n){const e=Wg(t,n);if(-1!==e)return e;const r=n[H];r.firstCreatePass&&(t.injectorIndex=n.length,Su(r.data,t),Su(n,null),Su(r.blueprint,null));const o=Pu(t,n),i=t.injectorIndex;if(jg(o)){const s=Ha(o),a=$a(o,n),l=a[H].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|l[s+c]}return n[i+8]=o,i}function Su(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Wg(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Pu(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,r=null,o=n;for(;null!==o;){if(r=Jg(o),null===r)return Wo;if(e++,o=o[Ho],-1!==r.injectorIndex)return r.injectorIndex|e<<16}return Wo}function Ou(t,n,e){!function px(t,n,e){let r;"string"==typeof e?r=e.charCodeAt(0)||0:e.hasOwnProperty(zi)&&(r=e[zi]),null==r&&(r=e[zi]=dx++);const o=r&zg;n.data[t+(o>>Gg)]|=1<=0?n&zg:mx:n}(e);if("function"==typeof i){if(!Ng(n,t,r))return r&ie.Host?qg(o,0,r):Yg(n,e,r,o);try{const s=i(r);if(null!=s||r&ie.Optional)return s;ya()}finally{Bg()}}else if("number"==typeof i){let s=null,a=Wg(t,n),l=Wo,c=r&ie.Host?n[mt][Vt]:null;for((-1===a||r&ie.SkipSelf)&&(l=-1===a?Pu(t,n):n[a+8],l!==Wo&&Qg(r,!1)?(s=n[H],a=Ha(l),n=$a(l,n)):a=-1);-1!==a;){const u=n[H];if(Kg(i,a,u.data)){const h=fx(a,n,e,s,r,c);if(h!==Jn)return h}l=n[a+8],l!==Wo&&Qg(r,n[H].data[a+8]===c)&&Kg(i,a,n)?(s=u,a=Ha(l),n=$a(l,n)):a=-1}}return o}function fx(t,n,e,r,o,i){const s=n[H],a=s.data[t+8],u=za(a,s,e,null==r?uo(a)&&Eu:r!=s&&0!=(3&a.type),o&ie.Host&&i===a);return null!==u?fo(n,s,u,a):Jn}function za(t,n,e,r,o){const i=t.providerIndexes,s=n.data,a=1048575&i,l=t.directiveStart,u=i>>20,g=o?a+u:t.directiveEnd;for(let m=r?a:a+u;m=l&&y.type===e)return m}if(o){const m=s[l];if(m&&An(m)&&m.type===e)return l}return null}function fo(t,n,e,r){let o=t[e];const i=n.data;if(function ax(t){return t instanceof Ki}(o)){const s=o;s.resolving&&function V1(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new T(-200,`Circular dependency in DI detected for ${t}${e}`)}(function Ne(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():he(t)}(i[e]));const a=Ua(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?Jt(s.injectImpl):null;Ng(t,r,ie.Default);try{o=t[e]=s.factory(void 0,i,t,r),n.firstCreatePass&&e>=r.directiveStart&&function ix(t,n,e){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=_g(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}o&&(e.preOrderHooks??=[]).push(0-t,o),i&&((e.preOrderHooks??=[]).push(t,i),(e.preOrderCheckHooks??=[]).push(t,i))}(e,i[e],n)}finally{null!==l&&Jt(l),Ua(a),s.resolving=!1,Bg()}}return o}function Kg(t,n,e){return!!(e[n+(t>>Gg)]&1<{const n=t.prototype.constructor,e=n[Cr]||Iu(n),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[Cr]||Iu(o);if(i&&i!==e)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Iu(t){return eu(t)?()=>{const n=Iu(pe(t));return n&&n()}:po(t)}function Jg(t){const n=t[H],e=n.type;return 2===e?n.declTNode:1===e?t[Vt]:null}const Zo="__parameters__";function Ko(t,n,e){return _r(()=>{const r=function Tu(t){return function(...e){if(t){const r=t(...e);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,c,u){const h=l.hasOwnProperty(Zo)?l[Zo]:Object.defineProperty(l,Zo,{value:[]})[Zo];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(s),l}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}function es(t,n){t.forEach(e=>Array.isArray(e)?es(e,n):n(e))}function tm(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Wa(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ts(t,n){const e=[];for(let r=0;r=0?t[1|r]=e:(r=~r,function bx(t,n,e,r){let o=t.length;if(o==n)t.push(e,r);else if(1===o)t.push(r,t[0]),t[0]=e;else{for(o--,t.push(t[o-1],t[o]);o>n;)t[o]=t[o-2],o--;t[n]=e,t[n+1]=r}}(t,r,n,e)),r}function ku(t,n){const e=Qo(t,n);if(e>=0)return t[1|e]}function Qo(t,n){return function nm(t,n,e){let r=0,o=t.length>>e;for(;o!==r;){const i=r+(o-r>>1),s=t[i<n?o=i:r=i+1}return~(o<((sn=sn||{})[sn.Important=1]="Important",sn[sn.DashCase=2]="DashCase",sn))();const jx=/^>|^->||--!>|)/,Gx="\u200b$1\u200b";const Bu=new Map;let Wx=0;const Hu="__ngContext__";function Ht(t,n){_n(n)?(t[Hu]=n[Yi],function Yx(t){Bu.set(t[Yi],t)}(n)):t[Hu]=n}let $u;function Uu(t,n){return $u(t,n)}function os(t){const n=t[tt];return tn(n)?n[tt]:n}function ju(t){return wm(t[Wi])}function zu(t){return wm(t[kn])}function wm(t){for(;null!==t&&!tn(t);)t=t[kn];return t}function ti(t,n,e,r,o){if(null!=r){let i,s=!1;tn(r)?i=r:_n(r)&&(s=!0,r=r[Dt]);const a=Ze(r);0===t&&null!==e?null==o?Em(n,e,a):go(n,e,a,o||null,!0):1===t&&null!==e?go(n,e,a,o||null,!0):2===t?function il(t,n,e){const r=rl(t,n);r&&function hE(t,n,e,r){t.removeChild(n,e,r)}(t,r,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=i&&function mE(t,n,e,r,o){const i=e[Zn];i!==Ze(e)&&ti(n,t,r,i,o);for(let a=Nt;an.replace(zx,Gx))}(n))}function nl(t,n,e){return t.createElement(n,e)}function Mm(t,n){const e=t[Uo],r=e.indexOf(n);Dg(n),e.splice(r,1)}function Wu(t,n){if(t.length<=Nt)return;const e=Nt+n,r=t[e];if(r){const o=r[qi];null!==o&&o!==t&&Mm(o,r),n>0&&(t[e-1][kn]=r[kn]);const i=Wa(t,Nt+n);!function iE(t,n){ss(t,n,n[fe],2,null,null),n[Dt]=null,n[Vt]=null}(r[H],r);const s=i[Yn];null!==s&&s.detachView(i[H]),r[tt]=null,r[kn]=null,r[me]&=-129}return r}function Dm(t,n){if(!(256&n[me])){const e=n[fe];n[Sa]?.destroy(),n[Pa]?.destroy(),e.destroyNode&&ss(t,n,e,3,null,null),function lE(t){let n=t[Wi];if(!n)return qu(t[H],t);for(;n;){let e=null;if(_n(n))e=n[Wi];else{const r=n[Nt];r&&(e=r)}if(!e){for(;n&&!n[kn]&&n!==t;)_n(n)&&qu(n[H],n),n=n[tt];null===n&&(n=t),_n(n)&&qu(n[H],n),e=n&&n[kn]}n=e}}(n)}}function qu(t,n){if(!(256&n[me])){n[me]&=-129,n[me]|=256,function pE(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else e[i].call(r[e[i+1]]);null!==r&&(n[Bo]=null);const o=n[Hr];if(null!==o){n[Hr]=null;for(let i=0;i-1){const{encapsulation:i}=t.data[r.directiveStart+o];if(i===fn.None||i===fn.Emulated)return null}return rn(r,e)}}(t,n.parent,e)}function go(t,n,e,r,o){t.insertBefore(n,e,r,o)}function Em(t,n,e){t.appendChild(n,e)}function Sm(t,n,e,r,o){null!==r?go(t,n,e,r,o):Em(t,n,e)}function rl(t,n){return t.parentNode(n)}function Pm(t,n,e){return Im(t,n,e)}let Zu,sl,Ju,Im=function Om(t,n,e){return 40&t.type?rn(t,e):null};function ol(t,n,e,r){const o=Yu(t,r,n),i=n[fe],a=Pm(r.parent||n[Vt],r,n);if(null!=o)if(Array.isArray(e))for(let l=0;lt,createScript:t=>t,createScriptURL:t=>t})}catch{}return sl}()?.createHTML(t)||t}class mo{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Hf})`}}class ME extends mo{getTypeName(){return"HTML"}}class DE extends mo{getTypeName(){return"Style"}}class xE extends mo{getTypeName(){return"Script"}}class EE extends mo{getTypeName(){return"URL"}}class SE extends mo{getTypeName(){return"ResourceURL"}}function Cn(t){return t instanceof mo?t.changingThisBreaksApplicationSecurity:t}function er(t,n){const e=function PE(t){return t instanceof mo&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Hf})`)}return e===n}class NE{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const e=(new window.DOMParser).parseFromString(ni(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class RE{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const e=this.inertDocument.createElement("template");return e.innerHTML=ni(n),e}}const LE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ll(t){return(t=String(t)).match(LE)?t:"unsafe:"+t}function Mr(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function ls(...t){const n={};for(const e of t)for(const r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}const $m=Mr("area,br,col,hr,img,wbr"),Um=Mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jm=Mr("rp,rt"),td=ls($m,ls(Um,Mr("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(jm,Mr("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(jm,Um)),nd=Mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),zm=ls(nd,Mr("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"),Mr("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")),BE=Mr("script,style,template");class VE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.firstChild,r=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=this.checkClobberedElement(e,e.nextSibling);if(o){e=o;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(n){const e=n.nodeName.toLowerCase();if(!td.hasOwnProperty(e))return this.sanitizedSomething=!0,!BE.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const e=n.nodeName.toLowerCase();td.hasOwnProperty(e)&&!$m.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Gm(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&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 e}}const HE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$E=/([^\#-~ |!])/g;function Gm(t){return t.replace(/&/g,"&").replace(HE,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace($E,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let cl;function Wm(t,n){let e=null;try{cl=cl||function Hm(t){const n=new RE(t);return function FE(){try{return!!(new window.DOMParser).parseFromString(ni(""),"text/html")}catch{return!1}}()?new NE(n):n}(t);let r=n?String(n):"";e=cl.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=e.innerHTML,e=cl.getInertBodyElement(r)}while(r!==i);return ni((new VE).sanitizeChildren(rd(e)||e))}finally{if(e){const r=rd(e)||e;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function rd(t){return"content"in t&&function UE(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ue=(()=>((Ue=Ue||{})[Ue.NONE=0]="NONE",Ue[Ue.HTML=1]="HTML",Ue[Ue.STYLE=2]="STYLE",Ue[Ue.SCRIPT=3]="SCRIPT",Ue[Ue.URL=4]="URL",Ue[Ue.RESOURCE_URL=5]="RESOURCE_URL",Ue))();function tr(t){const n=function cs(){const t=I();return t&&t[co].sanitizer}();return n?n.sanitize(Ue.URL,t)||"":er(t,"URL")?Cn(t):ll(he(t))}class j{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const us=new j("ENVIRONMENT_INITIALIZER"),Zm=new j("INJECTOR",-1),Xm=new j("INJECTOR_DEF_TYPES");class Km{get(n,e=Ui){if(e===Ui){const r=new Error(`NullInjectorError: No provider for ${Mt(n)}!`);throw r.name="NullInjectorError",r}return e}}function ZE(...t){return{\u0275providers:Qm(0,t),\u0275fromNgModule:!0}}function Qm(t,...n){const e=[],r=new Set;let o;return es(n,i=>{const s=i;id(s,e,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Jm(o,e),e}function Jm(t,n){for(let e=0;e{n.push(i)})}}function id(t,n,e,r){if(!(t=pe(t)))return!1;let o=null,i=Uf(t);const s=!i&&Ie(t);if(i||s){if(s&&!s.standalone)return!1;o=t}else{const l=t.ngModule;if(i=Uf(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)id(c,n,e,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{es(i.imports,u=>{id(u,n,e,r)&&(c||=[],c.push(u))})}finally{}void 0!==c&&Jm(c,n)}if(!a){const c=po(o)||(()=>new o);n.push({provide:o,useFactory:c,deps:Pe},{provide:Xm,useValue:o,multi:!0},{provide:us,useValue:()=>V(o),multi:!0})}const l=i.providers;null==l||a||sd(l,u=>{n.push(u)})}}return o!==t&&void 0!==t.providers}function sd(t,n){for(let e of t)tu(e)&&(e=e.\u0275providers),Array.isArray(e)?sd(e,n):n(e)}const XE=Fe({provide:String,useValue:Fe});function ad(t){return null!==t&&"object"==typeof t&&XE in t}function _o(t){return"function"==typeof t}const ld=new j("Set Injector scope."),ul={},QE={};let cd;function dl(){return void 0===cd&&(cd=new Km),cd}class nr{}class ud extends nr{get destroyed(){return this._destroyed}constructor(n,e,r,o){super(),this.parent=e,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,pd(n,s=>this.processProvider(s)),this.records.set(Zm,ri(void 0,this)),o.has("environment")&&this.records.set(nr,ri(void 0,this));const i=this.records.get(ld);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Xm.multi,Pe,ie.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const e of this._ngOnDestroyHooks)e.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const e of n)e()}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 e=Vr(this),r=Jt(void 0);try{return n()}finally{Vr(e),Jt(r)}}get(n,e=Ui,r=ie.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(Zf))return n[Zf](this);r=Da(r);const o=Vr(this),i=Jt(void 0);try{if(!(r&ie.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function rS(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(n)&&wa(n);a=l&&this.injectableDefInScope(l)?ri(dd(n),ul):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&ie.Self?dl():this.parent).get(n,e=r&ie.Optional&&e===Ui?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Ma]=s[Ma]||[]).unshift(Mt(n)),o)throw s;return function J1(t,n,e,r){const o=t[Ma];throw n[Wf]&&o.unshift(n[Wf]),t.message=function eD(t,n,e,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let o=Mt(n);if(Array.isArray(n))o=n.map(Mt).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Mt(a)))}o=`{${i.join(", ")}}`}return`${e}${r?"("+r+")":""}[${o}]: ${t.replace(Y1,"\n ")}`}("\n"+t.message,o,e,r),t.ngTokenPath=o,t[Ma]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{Jt(i),Vr(o)}}resolveInjectorInitializers(){const n=Vr(this),e=Jt(void 0);try{const r=this.get(us.multi,Pe,ie.Self);for(const o of r)o()}finally{Vr(n),Jt(e)}}toString(){const n=[],e=this.records;for(const r of e.keys())n.push(Mt(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new T(205,!1)}processProvider(n){let e=_o(n=pe(n))?n:pe(n&&n.provide);const r=function eS(t){return ad(t)?ri(void 0,t.useValue):ri(n_(t),ul)}(n);if(_o(n)||!0!==n.multi)this.records.get(e);else{let o=this.records.get(e);o||(o=ri(void 0,ul,!0),o.factory=()=>iu(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,r)}hydrate(n,e){return e.value===ul&&(e.value=QE,e.value=e.factory()),"object"==typeof e.value&&e.value&&function nS(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=pe(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){const e=this._onDestroyHooks.indexOf(n);-1!==e&&this._onDestroyHooks.splice(e,1)}}function dd(t){const n=wa(t),e=null!==n?n.factory:po(t);if(null!==e)return e;if(t instanceof j)throw new T(204,!1);if(t instanceof Function)return function JE(t){const n=t.length;if(n>0)throw ts(n,"?"),new T(204,!1);const e=function G1(t){return t&&(t[ba]||t[jf])||null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new T(204,!1)}function n_(t,n,e){let r;if(_o(t)){const o=pe(t);return po(o)||dd(o)}if(ad(t))r=()=>pe(t.useValue);else if(function t_(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...iu(t.deps||[]));else if(function e_(t){return!(!t||!t.useExisting)}(t))r=()=>V(pe(t.useExisting));else{const o=pe(t&&(t.useClass||t.provide));if(!function tS(t){return!!t.deps}(t))return po(o)||dd(o);r=()=>new o(...iu(t.deps))}return r}function ri(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function pd(t,n){for(const e of t)Array.isArray(e)?pd(e,n):e&&tu(e)?pd(e.\u0275providers,n):n(e)}const pl=new j("AppId",{providedIn:"root",factory:()=>oS}),oS="ng",r_=new j("Platform Initializer"),jr=new j("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),o_=new j("CSP nonce",{providedIn:"root",factory:()=>function as(){if(void 0!==Ju)return Ju;if(typeof document<"u")return document;throw new T(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let s_=(t,n)=>null;function a_(t,n){return s_(t,n)}class hS{}class u_{}class gS{resolveComponentFactory(n){throw function fS(t){const n=Error(`No component factory found for ${Mt(t)}.`);return n.ngComponent=t,n}(n)}}let _l=(()=>{class t{}return t.NULL=new gS,t})();function mS(){return oi(Rt(),I())}function oi(t,n){return new Wt(rn(t,n))}let Wt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=mS,t})();function _S(t){return t instanceof Wt?t.nativeElement:t}class p_{}let Dr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function vS(){const t=I(),e=on(Rt().index,t);return(_n(e)?e:t)[fe]}(),t})(),CS=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>null}),t})();class fs{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const yS=new fs("16.0.2"),Md={};function gs(t){for(;t;){t[me]|=64;const n=os(t);if(du(t)&&!n)return t;t=n}return null}function Dd(t){return t.ngOriginalError}class vo{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Dd(n);for(;e&&Dd(e);)e=Dd(e);return e||null}}const g_=new j("",{providedIn:"root",factory:()=>!1});function Te(t){return t.ownerDocument}function xr(t){return t instanceof Function?t():t}class v_ extends fg{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(n){this._lView=n}onConsumerDependencyMayHaveChanged(){gs(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(n,e,r){const o=Ot(this);this.trackingVersion++;try{n(e,r)}finally{Ot(o)}}destroy(){this.trackingVersion++}}let Cl=null;function C_(){return Cl??=new v_,Cl}function y_(t,n){return t[n]??C_()}function w_(t,n){const e=C_();e.hasReadASignal&&(t[n]=Cl,e.lView=t,Cl=new v_)}const ge={};function _(t){b_(xe(),I(),Gt()+t,!1)}function b_(t,n,e,r){if(!r)if(3==(3&n[me])){const i=t.preOrderCheckHooks;null!==i&&Ba(n,i,e)}else{const i=t.preOrderHooks;null!==i&&Va(n,i,0,e)}ho(e)}function E_(t,n=null,e=null,r){const o=S_(t,n,e,r);return o.resolveInjectorInitializers(),o}function S_(t,n=null,e=null,r,o=new Set){const i=[e||Pe,ZE(t)];return r=r||("object"==typeof t?void 0:Mt(t)),new ud(i,n||dl(),r||null,o)}let Nn=(()=>{class t{static create(e,r){if(Array.isArray(e))return E_({name:""},r,e,"");{const o=e.name??"";return E_({name:o},e.parent,e.providers,o)}}}return t.THROW_IF_NOT_FOUND=Ui,t.NULL=new Km,t.\u0275prov=Z({token:t,providedIn:"any",factory:()=>V(Zm)}),t.__NG_ELEMENT_ID__=-1,t})();function w(t,n=ie.Default){const e=I();return null===e?V(t,n):Zg(Rt(),e,pe(t),n)}function yl(t,n,e,r,o,i,s,a,l,c,u){const h=n.blueprint.slice();return h[Dt]=o,h[me]=140|r,(null!==c||t&&2048&t[me])&&(h[me]|=2048),Mg(h),h[tt]=h[Ho]=t,h[it]=e,h[co]=s||t&&t[co],h[fe]=a||t&&t[fe],h[Vo]=l||t&&t[Vo]||null,h[Vt]=i,h[Yi]=function qx(){return Wx++}(),h[yr]=u,h[lg]=c,h[mt]=2==n.type?t[mt]:h,h}function si(t,n,e,r,o){let i=t.data[n];if(null===i)i=function xd(t,n,e,r,o){const i=Og(),s=_u(),l=t.data[n]=function HS(t,n,e,r,o,i){let s=n?n.injectorIndex:-1,a=0;return zo()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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?i:i&&i.parent,e,n,r,o);return null===t.firstChild&&(t.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(t,n,e,r,o),function ZD(){return le.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=e,i.value=r,i.attrs=o;const s=function Xi(){const t=le.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Qn(i,!0),i}function ms(t,n,e,r){if(0===e)return-1;const o=n.length;for(let i=0;iMe&&b_(t,n,Me,!1),Kn(a?2:0,o),a)i.runInContext(e,r,o);else{const c=Ot(null);try{e(r,o)}finally{Ot(c)}}}finally{a&&null===n[Sa]&&w_(n,Sa),ho(s),Kn(a?3:1,o)}}function Ed(t,n,e){if(uu(n)){const r=Ot(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function k_(t,n,e,r){for(let o in t)if(t.hasOwnProperty(o)){e=null===e?{}:e;const i=t[o];null===r?A_(e,n,o,i):r.hasOwnProperty(o)&&A_(e,n,r[o],i)}return e}function A_(t,n,e,r){t.hasOwnProperty(e)?t[e].push(n,r):t[e]=[n,r]}function Id(t,n,e,r){if(Pg()){const o=null===r?null:{"":-1},i=function ZS(t,n){const e=t.directiveRegistry;let r=null,o=null;if(e)for(let i=0;i0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(s)!=a&&s.push(a),s.push(e,r,i)}}(t,n,r,ms(t,e,o.hostVars,ge),o)}function rr(t,n,e,r,o,i){const s=rn(t,n);!function kd(t,n,e,r,o,i,s){if(null==i)t.removeAttribute(n,o,e);else{const a=null==s?he(i):s(i,r||"",o);t.setAttribute(n,o,a,e)}}(n[fe],s,i,t.value,e,r,o)}function tP(t,n,e,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class t{constructor(){this.all=new Set,this.queue=new Map}create(e,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new PD(e,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[e,r]of this.queue)this.queue.delete(e),r?r.run(()=>e.run()):e.run()}get isQueueEmpty(){return 0===this.queue.size}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new t}),t})();function bl(t,n,e){let r=e?t.styles:null,o=e?t.classes:null,i=0;if(null!==n)for(let s=0;s0&&Fd(e)}}function Fd(t){for(let r=ju(t);null!==r;r=zu(r))for(let o=Nt;o0&&Fd(i)}const e=t[H].components;if(null!==e)for(let r=0;r0&&Fd(o)}}class vs{get rootNodes(){const n=this._lView,e=n[H];return _s(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[it]}set context(n){this._lView[it]=n}get destroyed(){return 256==(256&this._lView[me])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[tt];if(tn(n)){const e=n[Oa],r=e?e.indexOf(this):-1;r>-1&&(Wu(n,r),Wa(e,r))}this._attachedToViewContainer=!1}Dm(this._lView[H],this._lView)}onDestroy(n){!function Eg(t,n){if(256==(256&t[me]))throw new T(911,!1);null===t[Hr]&&(t[Hr]=[]),t[Hr].push(n)}(this._lView,n)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[me]&=-129}reattach(){this._lView[me]|=128}detectChanges(){Ml(this._lView[H],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function aE(t,n){ss(t,n,n[fe],2,null,null)}(this._lView[H],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=n}}class fP extends vs{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ml(n[H],n,n[it],!1)}checkNoChanges(){}get context(){return null}}class z_ extends _l{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ie(n);return new Cs(e,this.ngModule)}}function G_(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class mP{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){r=Da(r);const o=this.injector.get(n,Md,r);return o!==Md||e===Md?o:this.parentInjector.get(n,e,r)}}class Cs extends u_{get inputs(){return G_(this.componentDef.inputs)}get outputs(){return G_(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function uD(t){return t.map(cD).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,r,o){let i=(o=o||this.ngModule)instanceof nr?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new mP(n,i):n,a=s.get(p_,null);if(null===a)throw new T(407,!1);const u={rendererFactory:a,sanitizer:s.get(CS,null),effectManager:s.get(j_,null)},h=a.createRenderer(null,this.componentDef),g=this.componentDef.selectors[0][0]||"div",m=r?function RS(t,n,e,r){const i=r.get(g_,!1)||e===fn.ShadowDom,s=t.selectRootElement(n,i);return function FS(t){T_(t)}(s),s}(h,r,this.componentDef.encapsulation,s):nl(h,g,function gP(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(g)),y=this.componentDef.onPush?576:528,D=Od(0,null,null,1,0,null,null,null,null,null,null),x=yl(null,D,null,y,null,null,u,h,s,null,null);let E,b;bu(x);try{const k=this.componentDef;let Y,oe=null;k.findHostDirectiveDefs?(Y=[],oe=new Map,k.findHostDirectiveDefs(k,Y,oe),Y.push(k)):Y=[k];const be=function vP(t,n){const e=t[H],r=Me;return t[r]=n,si(e,r,2,"#host",null)}(x,m),On=function CP(t,n,e,r,o,i,s){const a=o[H];!function yP(t,n,e,r){for(const o of t)n.mergedAttrs=Gi(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(bl(n,n.mergedAttrs,!0),null!==e&&Fm(r,e,n))}(r,t,n,s);let l=null;null!==n&&(l=a_(n,o[Vo]));const c=i.rendererFactory.createRenderer(n,e),u=yl(o,I_(e),null,e.onPush?64:16,o[t.index],t,i,c,null,null,l);return a.firstCreatePass&&Td(a,t,r.length-1),wl(o,u),o[t.index]=u}(be,m,k,Y,x,u,h);b=bg(D,Me),m&&function bP(t,n,e,r){if(r)lu(t,e,["ng-version",yS.full]);else{const{attrs:o,classes:i}=function dD(t){const n=[],e=[];let r=1,o=2;for(;r0&&Rm(t,e,i.join(" "))}}(h,k,m,r),void 0!==e&&function MP(t,n,e){const r=t.projection=[];for(let o=0;o=0;r--){const o=t[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Gi(o.hostAttrs,e=Gi(e,o.hostAttrs))}}(r)}function Ld(t){return t===vr?{}:t===Pe?[]:t}function EP(t,n){const e=t.viewQuery;t.viewQuery=e?(r,o)=>{n(r,o),e(r,o)}:n}function SP(t,n){const e=t.contentQueries;t.contentQueries=e?(r,o,i)=>{n(r,o,i),e(r,o,i)}:n}function PP(t,n){const e=t.hostBindings;t.hostBindings=e?(r,o)=>{n(r,o),e(r,o)}:n}function xl(t){return!!function Bd(t){return null!==t&&("function"==typeof t||"object"==typeof t)}(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function $t(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function ir(t,n,e,r){const o=I();return $t(o,Go(),n)&&(xe(),rr(nt(),o,t,n,e,r)),ir}function li(t,n,e,r){return $t(t,Go(),e)?n+he(e)+r:ge}function P(t,n,e,r,o,i,s,a){const l=I(),c=xe(),u=t+Me,h=c.firstCreatePass?function JP(t,n,e,r,o,i,s,a,l){const c=n.consts,u=si(n,t,4,s||null,$r(c,a));Id(n,e,u,$r(c,l)),La(n,u);const h=u.tView=Od(2,u,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,u),h.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,r,o,i,s):c.data[u];Qn(h,!1);const g=lv(c,l,h,t);Fa()&&ol(c,l,g,h),Ht(g,l),wl(l,l[u]=L_(g,l,g,h)),Ia(h)&&Sd(c,l,h),null!=s&&Pd(l,h,a)}let lv=function cv(t,n,e,r){return Ur(!0),n[fe].createComment("")};function C(t,n,e){const r=I();return $t(r,Go(),n)&&function yn(t,n,e,r,o,i,s,a){const l=rn(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[r])?(Nd(t,e,u,r,o),uo(n)&&function jS(t,n){const e=on(n,t);16&e[me]||(e[me]|=64)}(e,n.index)):3&n.type&&(r=function US(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(l,r,o))}(xe(),nt(),r,t,n,r[fe],e,!1),C}function zd(t,n,e,r,o){const s=o?"class":"style";Nd(t,e,n.inputs[s],s,r)}function d(t,n,e,r){const o=I(),i=xe(),s=Me+t,a=o[fe],l=i.firstCreatePass?function rO(t,n,e,r,o,i){const s=n.consts,l=si(n,t,2,r,$r(s,o));return Id(n,e,l,$r(s,i)),null!==l.attrs&&bl(l,l.attrs,!1),null!==l.mergedAttrs&&bl(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,e,r):i.data[s],c=dv(i,o,l,a,n,t);o[s]=c;const u=Ia(l);return Qn(l,!0),Fm(a,c,l),32!=(32&l.flags)&&Fa()&&ol(i,o,c,l),0===function HD(){return le.lFrame.elementDepthCount}()&&Ht(c,o),function $D(){le.lFrame.elementDepthCount++}(),u&&(Sd(i,o,l),Ed(i,l,o)),null!==r&&Pd(o,l),d}function p(){let t=Rt();_u()?vu():(t=t.parent,Qn(t,!1));const n=t;(function jD(t){return le.skipHydrationRootTNode===t})(n)&&function qD(){le.skipHydrationRootTNode=null}(),function UD(){le.lFrame.elementDepthCount--}();const e=xe();return e.firstCreatePass&&(La(e,t),uu(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function lx(t){return 0!=(8&t.flags)}(n)&&zd(e,n,I(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function cx(t){return 0!=(16&t.flags)}(n)&&zd(e,n,I(),n.stylesWithoutHost,!1),p}function X(t,n,e,r){return d(t,n,e,r),p(),X}let dv=(t,n,e,r,o,i)=>(Ur(!0),nl(r,o,function Vg(){return le.lFrame.currentNamespace}()));function Gd(t,n,e){const r=I(),o=xe(),i=t+Me,s=o.firstCreatePass?function sO(t,n,e,r,o){const i=n.consts,s=$r(i,r),a=si(n,t,8,"ng-container",s);return null!==s&&bl(a,s,!0),Id(n,e,a,$r(i,o)),null!==n.queries&&n.queries.elementStart(n,a),a}(i,o,r,n,e):o.data[i];Qn(s,!0);const a=pv(o,r,s,t);return r[i]=a,Fa()&&ol(o,r,a,s),Ht(a,r),Ia(s)&&(Sd(o,r,s),Ed(o,s,r)),null!=e&&Pd(r,s),Gd}function Wd(){let t=Rt();const n=xe();return _u()?vu():(t=t.parent,Qn(t,!1)),n.firstCreatePass&&(La(n,t),uu(t)&&n.queries.elementEnd(t)),Wd}function qd(t,n,e){return Gd(t,n,e),Wd(),qd}let pv=(t,n,e,r)=>(Ur(!0),Gu(n[fe],""));function q(){return I()}function Ds(t){return!!t&&"function"==typeof t.then}function hv(t){return!!t&&"function"==typeof t.subscribe}function v(t,n,e,r){const o=I(),i=xe(),s=Rt();return function gv(t,n,e,r,o,i,s){const a=Ia(r),c=t.firstCreatePass&&H_(t),u=n[it],h=V_(n);let g=!0;if(3&r.type||s){const D=rn(r,n),x=s?s(D):D,E=h.length,b=s?Y=>s(Ze(Y[r.index])):r.index;let k=null;if(!s&&a&&(k=function cO(t,n,e,r){const o=t.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(t,n,o,r.index)),null!==k)(k.__ngLastListenerFn__||k).__ngNextListenerFn__=i,k.__ngLastListenerFn__=i,g=!1;else{i=_v(r,n,u,i,!1);const Y=e.listen(x,o,i);h.push(i,Y),c&&c.push(o,b,E,E+1)}}else i=_v(r,n,u,i,!1);const m=r.outputs;let y;if(g&&null!==m&&(y=m[o])){const D=y.length;if(D)for(let x=0;x-1?on(t.index,n):n);let l=mv(n,e,r,s),c=i.__ngNextListenerFn__;for(;c;)l=mv(n,e,c,s)&&l,c=c.__ngNextListenerFn__;return o&&!1===l&&s.preventDefault(),l}}function M(t=1){return function JD(t){return(le.lFrame.contextLView=function ex(t,n){for(;t>0;)n=n[Ho],t--;return n}(t,le.lFrame.contextLView))[it]}(t)}function uO(t,n){let e=null;const r=function iD(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let o=0;o>17&32767}function Zd(t){return 2|t}function yo(t){return(131068&t)>>2}function Xd(t,n){return-131069&t|n<<2}function Kd(t){return 1|t}function Ov(t,n,e,r,o){const i=t[e+1],s=null===n;let a=r?zr(i):yo(i),l=!1;for(;0!==a&&(!1===l||s);){const u=t[a+1];mO(t[a],n)&&(l=!0,t[a+1]=r?Kd(u):Zd(u)),a=r?zr(u):yo(u)}l&&(t[e+1]=r?Zd(i):Kd(i))}function mO(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Qo(t,n)>=0}const Et={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Iv(t){return t.substring(Et.key,Et.keyEnd)}function _O(t){return t.substring(Et.value,Et.valueEnd)}function Tv(t,n){const e=Et.textEnd;return e===n?-1:(n=Et.keyEnd=function yO(t,n,e){for(;n32;)n++;return n}(t,Et.key=n,e),mi(t,n,e))}function kv(t,n){const e=Et.textEnd;let r=Et.key=mi(t,n,e);return e===r?-1:(r=Et.keyEnd=function wO(t,n,e){let r;for(;n=65&&(-33&r)<=90||r>=48&&r<=57);)n++;return n}(t,r,e),r=Nv(t,r,e),r=Et.value=mi(t,r,e),r=Et.valueEnd=function bO(t,n,e){let r=-1,o=-1,i=-1,s=n,a=s;for(;s32&&(a=s),i=o,o=r,r=-33&l}return a}(t,r,e),Nv(t,r,e))}function Av(t){Et.key=0,Et.keyEnd=0,Et.value=0,Et.valueEnd=0,Et.textEnd=t.length}function mi(t,n,e){for(;n=0;e=kv(n,e))Bv(t,Iv(n),_O(n))}function xn(t){Ln(OO,sr,t,!0)}function sr(t,n){for(let e=function vO(t){return Av(t),Tv(t,mi(t,0,Et.textEnd))}(n);e>=0;e=Tv(n,e))vn(t,Iv(n),!0)}function Fn(t,n,e,r){const o=I(),i=xe(),s=br(2);i.firstUpdatePass&&Lv(i,t,s,r),n!==ge&&$t(o,s,n)&&Vv(i,i.data[Gt()],o,o[fe],t,o[s+1]=function TO(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Mt(Cn(t)))),t}(n,e),r,s)}function Ln(t,n,e,r){const o=xe(),i=br(2);o.firstUpdatePass&&Lv(o,null,i,r);const s=I();if(e!==ge&&$t(s,i,e)){const a=o.data[Gt()];if($v(a,r)&&!Fv(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Jc(l,e||"")),zd(o,a,s,e,r)}else!function IO(t,n,e,r,o,i,s,a){o===ge&&(o=Pe);let l=0,c=0,u=0=t.expandoStartIndex}function Lv(t,n,e,r){const o=t.data;if(null===o[e+1]){const i=o[Gt()],s=Fv(t,e);$v(i,r)&&null===n&&!s&&(n=!1),n=function DO(t,n,e,r){const o=function yu(t){const n=le.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(e=Es(e=Qd(null,t,n,e,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==o)if(e=Qd(o,t,n,e,r),null===i){let l=function xO(t,n,e){const r=e?n.classBindings:n.styleBindings;if(0!==yo(r))return t[zr(r)]}(t,n,r);void 0!==l&&Array.isArray(l)&&(l=Qd(null,t,n,l[1],r),l=Es(l,n.attrs,r),function EO(t,n,e,r){t[zr(e?n.classBindings:n.styleBindings)]=r}(t,n,r,l))}else i=function SO(t,n,e){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):u=e,o)if(0!==l){const g=zr(t[a+1]);t[r+1]=Il(g,a),0!==g&&(t[g+1]=Xd(t[g+1],r)),t[a+1]=function pO(t,n){return 131071&t|n<<17}(t[a+1],r)}else t[r+1]=Il(a,0),0!==a&&(t[a+1]=Xd(t[a+1],r)),a=r;else t[r+1]=Il(l,0),0===a?a=r:t[l+1]=Xd(t[l+1],r),l=r;c&&(t[r+1]=Zd(t[r+1])),Ov(t,u,r,!0),Ov(t,u,r,!1),function gO(t,n,e,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof n&&Qo(i,n)>=0&&(e[r+1]=Kd(e[r+1]))}(n,u,t,r,i),s=Il(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,e,s,r)}}function Qd(t,n,e,r,o){let i=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[o],c=Array.isArray(l),u=c?l[1]:l,h=null===u;let g=e[o+1];g===ge&&(g=h?Pe:void 0);let m=h?ku(g,r):u===r?g:void 0;if(c&&!Tl(m)&&(m=ku(l,r)),Tl(m)&&(a=m,s))return a;const y=t[o+1];o=s?zr(y):yo(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=ku(l,r))}return a}function Tl(t){return void 0!==t}function $v(t,n){return 0!=(t.flags&(n?8:16))}function f(t,n=""){const e=I(),r=xe(),o=t+Me,i=r.firstCreatePass?si(r,o,1,n,null):r.data[o],s=Uv(r,e,i,n,t);e[o]=s,Fa()&&ol(r,e,s,i),Qn(i,!1)}let Uv=(t,n,e,r,o)=>(Ur(!0),function tl(t,n){return t.createText(n)}(n[fe],r));function se(t){return Xe("",t,""),se}function Xe(t,n,e){const r=I(),o=li(r,t,n,e);return o!==ge&&function Er(t,n,e){const r=Na(n,t);!function bm(t,n,e){t.setValue(n,e)}(t[fe],r,e)}(r,Gt(),o),Xe}const vi="en-US";let dC=vi;function tp(t,n,e,r,o){if(t=pe(t),Array.isArray(t))for(let i=0;i>20;if(_o(t)||!t.multi){const m=new Ki(l,o,w),y=rp(a,n,o?u:u+g,h);-1===y?(Ou(ja(c,s),i,a),np(i,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(m),s.push(m)):(e[y]=m,s[y]=m)}else{const m=rp(a,n,u+g,h),y=rp(a,n,u,u+g),x=y>=0&&e[y];if(o&&!x||!o&&!(m>=0&&e[m])){Ou(ja(c,s),i,a);const E=function XI(t,n,e,r,o){const i=new Ki(t,e,w);return i.multi=[],i.index=n,i.componentProviders=0,FC(i,o,r&&!e),i}(o?ZI:YI,e.length,o,r,l);!o&&x&&(e[y].providerFactory=E),np(i,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,o&&(c.providerIndexes+=1048576),e.push(E),s.push(E)}else np(i,t,m>-1?m:y,FC(e[o?y:m],l,!o&&r));!o&&r&&x&&e[y].componentProviders++}}}function np(t,n,e,r){const o=_o(n),i=function KE(t){return!!t.useClass}(n);if(o||i){const l=(i?pe(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){const u=c.indexOf(e);-1===u?c.push(e,[r,l]):c[u+1].push(r,l)}else c.push(e,l)}}}function FC(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function rp(t,n,e,r){for(let o=e;o{e.providersResolver=(r,o)=>function qI(t,n,e){const r=xe();if(r.firstCreatePass){const o=An(t);tp(e,r.data,r.blueprint,o,!0),tp(n,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,n)}}class Ci{}class LC{}class ip extends Ci{constructor(n,e,r){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new z_(this);const o=mn(n);this._bootstrapComponents=xr(o.bootstrap),this._r3Injector=S_(n,e,[{provide:Ci,useValue:this},{provide:_l,useValue:this.componentFactoryResolver},...r],Mt(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(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class sp extends LC{constructor(n){super(),this.moduleType=n}create(n){return new ip(this.moduleType,n,[])}}class BC extends Ci{constructor(n){super(),this.componentFactoryResolver=new z_(this),this.instance=null;const e=new ud([...n.providers,{provide:Ci,useValue:this},{provide:_l,useValue:this.componentFactoryResolver}],n.parent||dl(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function ap(t,n,e=null){return new BC({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}let JI=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const r=Qm(0,e.type),o=r.length>0?ap([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,o)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Z({token:t,providedIn:"environment",factory:()=>new t(V(nr))}),t})();function VC(t){t.getStandaloneInjector=n=>n.get(JI).getOrCreateStandaloneInjector(t)}function WC(t,n,e,r,o,i){const s=n+e;return $t(t,s,o)?function or(t,n,e){return t[n]=e}(t,s+1,i?r.call(i,o):r(o)):function ks(t,n){const e=t[n];return e===ge?void 0:e}(t,s+1)}function cp(t,n){const e=xe();let r;const o=t+Me;e.firstCreatePass?(r=function vT(t,n){if(n)for(let e=n.length-1;e>=0;e--){const r=n[e];if(t===r.name)return r}}(n,e.pipeRegistry),e.data[o]=r,r.onDestroy&&(e.destroyHooks??=[]).push(o,r.onDestroy)):r=e.data[o];const i=r.factory||(r.factory=po(r.type)),s=Jt(w);try{const a=Ua(!1),l=i();return Ua(a),function nO(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}(e,I(),o,l),l}finally{Jt(s)}}function up(t,n,e){const r=t+Me,o=I(),i=jo(o,r);return function As(t,n){return t[H].data[n].pure}(o,r)?WC(o,function zt(){const t=le.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}(),n,i.transform,e,i):i.transform(e)}function dp(t){return n=>{setTimeout(t,void 0,n)}}const ce=class MT extends ot{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,r){let o=n,i=e||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=dp(i),o&&(o=dp(o)),s&&(s=dp(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof U&&n.add(a),a}};function DT(){return this._results[Symbol.iterator]()}class pp{get changes(){return this._changes||(this._changes=new ce)}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 e=pp.prototype;e[Symbol.iterator]||(e[Symbol.iterator]=DT)}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,e){return this._results.reduce(n,e)}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,e){const r=this;r.dirty=!1;const o=function Mn(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function yx(t,n,e){if(t.length!==n.length)return!1;for(let r=0;r{class t{}return t.__NG_ELEMENT_ID__=ST,t})();const xT=ar,ET=class extends xT{constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e,null)}createEmbeddedViewImpl(n,e,r){const o=this._declarationTContainer.tView,i=yl(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,e||null,r||null);i[qi]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Yn];return null!==a&&(i[Yn]=a.createEmbeddedView(o)),Rd(o,i,n),new vs(i)}};function ST(){return Fl(Rt(),I())}function Fl(t,n){return 4&t.type?new ET(n,t,oi(t,n)):null}let ln=(()=>{class t{}return t.__NG_ELEMENT_ID__=NT,t})();function NT(){return ny(Rt(),I())}const RT=ln,ey=class extends RT{constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return oi(this._hostTNode,this._hostLView)}get injector(){return new qo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Pu(this._hostTNode,this._hostLView);if(jg(n)){const e=$a(n,this._hostLView),r=Ha(n);return new qo(e[H].data[r+8],e)}return new qo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=ty(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-Nt}createEmbeddedView(n,e,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(e||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,e,r,o,i){const s=n&&!function Ji(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const D=e||{};a=D.index,r=D.injector,o=D.projectableNodes,i=D.environmentInjector||D.ngModuleRef}const l=s?n:new Cs(Ie(n)),c=r||this.parentInjector;if(!i&&null==l.ngModule){const x=(s?c:this.parentInjector).get(nr,null);x&&(i=x)}Ie(l.componentType??{});const m=l.create(c,o,null,i);return this.insertImpl(m.hostView,a,false),m}insert(n,e){return this.insertImpl(n,e,!1)}insertImpl(n,e,r){const o=n._lView,i=o[H];if(function LD(t){return tn(t[tt])}(o)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const c=o[tt],u=new ey(c,c[Vt],c[tt]);u.detach(u.indexOf(n))}}const s=this._adjustIndex(e),a=this._lContainer;if(function cE(t,n,e,r){const o=Nt+r,i=e.length;r>0&&(e[o-1][kn]=n),r0)r.push(s[a/2]);else{const c=i[a+1],u=n[-l];for(let h=Nt;h{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r}),this.appInits=z(xp,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const e=[];for(const o of this.appInits){const i=o();if(Ds(i))e.push(i);else if(hv(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});e.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(o=>{this.reject(o)}),0===e.length&&r(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Py=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Sr=new j("LocaleId",{providedIn:"root",factory:()=>z(Sr,ie.Optional|ie.SkipSelf)||function dk(){return typeof $localize<"u"&&$localize.locale||vi}()});class hk{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Oy=(()=>{class t{compileModuleSync(e){return new sp(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const r=this.compileModuleSync(e),i=xr(mn(e).declarations).reduce((s,a)=>{const l=Ie(a);return l&&s.push(new Cs(l)),s},[]);return new hk(r,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mk=(()=>Promise.resolve(0))();function Sp(t){typeof Zone>"u"?mk.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function ky(...t){}class Ke{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ce(!1),this.onMicrotaskEmpty=new ce(!1),this.onStable=new ce(!1),this.onError=new ce(!1),typeof Zone>"u")throw new T(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&e,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function _k(){let t=Ge.requestAnimationFrame,n=Ge.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function yk(t){const n=()=>{!function Ck(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ge,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Op(t),t.isCheckStableRunning=!0,Pp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Op(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,r,o,i,s,a)=>{try{return Ay(t),e.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&n(),Ny(t)}},onInvoke:(e,r,o,i,s,a,l)=>{try{return Ay(t),e.invoke(o,i,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Ny(t)}},onHasTask:(e,r,o,i)=>{e.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Op(t),Pp(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,r,o,i)=>(e.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ke.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(Ke.isInAngularZone())throw new T(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,vk,ky,ky);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}}const vk={};function Pp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Op(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Ay(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ny(t){t._nesting--,Pp(t)}class wk{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ce,this.onMicrotaskEmpty=new ce,this.onStable=new ce,this.onError=new ce}run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,o){return n.apply(e,r)}}const Ry=new j("",{providedIn:"root",factory:Fy});function Fy(){const t=z(Ke);let n=!0;return Bf(new Ee(o=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{o.next(n),o.complete()})}),new Ee(o=>{let i;t.runOutsideAngular(()=>{i=t.onStable.subscribe(()=>{Ke.assertNotInAngularZone(),Sp(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=t.onUnstable.subscribe(()=>{Ke.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Vf()))}const Ly=new j(""),Vl=new j("");let kp,Ip=(()=>{class t{constructor(e,r,o){this._ngZone=e,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kp||(function bk(t){kp=t}(o),o.addToWindow(r)),this._watchAngularEvents(),e.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:()=>{Ke.assertNotInAngularZone(),Sp(()=>{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())Sp(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(e)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),e(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,r,o){if(o&&!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(e,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,o){return[]}}return t.\u0275fac=function(e){return new(e||t)(V(Ke),V(Tp),V(Vl))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Tp=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return kp?.findTestabilityInTree(this,e,r)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Gr=null;const By=new j("AllowMultipleToken"),Ap=new j("PlatformDestroyListeners"),Np=new j("appBootstrapListener");class Hy{constructor(n,e){this.name=n,this.token=e}}function Uy(t,n,e=[]){const r=`Platform: ${n}`,o=new j(r);return(i=[])=>{let s=Rp();if(!s||s.injector.get(By,!1)){const a=[...e,...i,{provide:o,useValue:!0}];t?t(a):function xk(t){if(Gr&&!Gr.get(By,!1))throw new T(400,!1);(function Vy(){!function ED(t){gg=t}(()=>{throw new T(600,!1)})})(),Gr=t;const n=t.get(zy);(function $y(t){t.get(r_,null)?.forEach(e=>e())})(t)}(function jy(t=[],n){return Nn.create({name:n,providers:[{provide:ld,useValue:"platform"},{provide:Ap,useValue:new Set([()=>Gr=null])},...t]})}(a,r))}return function Sk(t){const n=Rp();if(!n)throw new T(401,!1);return n}()}}function Rp(){return Gr?.get(zy)??null}let zy=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,r){const o=function Pk(t="zone.js",n){return"noop"===t?new wk:"zone.js"===t?new Ke(n):t}(r?.ngZone,function Gy(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function QI(t,n,e){return new ip(t,n,e)}(e.moduleType,this.injector,function Xy(t){return[{provide:Ke,useFactory:t},{provide:us,multi:!0,useFactory:()=>{const n=z(Ik,{optional:!0});return()=>n.initialize()}},{provide:Zy,useFactory:Ok},{provide:Ry,useFactory:Fy}]}(()=>o)),s=i.injector.get(vo,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Hl(this._modules,i),a.unsubscribe()})}),function Wy(t,n,e){try{const r=e();return Ds(r)?r.catch(o=>{throw n.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Ep);return a.runInitializers(),a.donePromise.then(()=>(function pC(t){bn(t,"Expected localeId to be defined"),"string"==typeof t&&(dC=t.toLowerCase().replace(/_/g,"-"))}(i.injector.get(Sr,vi)||vi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,r=[]){const o=qy({},r);return function Mk(t,n,e){const r=new sp(e);return Promise.resolve(r)}(0,0,e).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(e){const r=e.injector.get(bi);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!e.instance.ngDoBootstrap)throw new T(-403,!1);e.instance.ngDoBootstrap(r)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new T(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const e=this._injector.get(Ap,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(V(Nn))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function qy(t,n){return Array.isArray(n)?n.reduce(qy,t):{...t,...n}}let bi=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=z(Zy),this.componentTypes=[],this.components=[],this.isStable=z(Ry),this._injector=z(nr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,r){const o=e instanceof u_;if(!this._injector.get(Ep).done)throw!o&&function Lo(t){const n=Ie(t)||Bt(t)||en(t);return null!==n&&n.standalone}(e),new T(405,!1);let s;s=o?e:this._injector.get(_l).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function Dk(t){return t.isBoundToModule}(s)?void 0:this._injector.get(Ci),c=s.create(Nn.NULL,[],r||s.selector,a),u=c.location.nativeElement,h=c.injector.get(Ly,null);return h?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Hl(this.components,c),h?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new T(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this.internalErrorHandler(e)}finally{this._runningTick=!1}}attachView(e){const r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){const r=e;Hl(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const r=this._injector.get(Np,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Hl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new T(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Hl(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}const Zy=new j("",{providedIn:"root",factory:()=>z(vo).handleError.bind(void 0)});function Ok(){const t=z(Ke),n=z(vo);return e=>t.runOutsideAngular(()=>n.handleError(e))}let Ik=(()=>{class t{constructor(){this.zone=z(Ke),this.applicationRef=z(bi)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let $l=(()=>{class t{}return t.__NG_ELEMENT_ID__=kk,t})();function kk(t){return function Ak(t,n,e){if(uo(t)&&!e){const r=on(t.index,n);return new vs(r,r)}return 47&t.type?new vs(n[mt],n):null}(Rt(),I(),16==(16&t))}class e0{constructor(){}supports(n){return xl(n)}create(n){return new Vk(n)}}const Bk=(t,n)=>n;class Vk{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||Bk}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,o=0,i=null;for(;e||r;){const s=!r||e&&e.currentIndex{s=this._trackByFn(o,a),null!==e&&Object.is(e.trackById,s)?(r&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,o),r=!0),e=e._next,o++}),this.length=o;return this._truncate(e),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,e,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new Hk(e,r),i,o),n}_verifyReinsertion(n,e,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}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,e,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){const o=null===e?this._itHead:e._next;return n._next=o,n._prev=e,null===o?this._itTail=n:o._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new t0),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,r=n._next;return null===e?this._itHead=r:e._next=r,null===r?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new t0),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,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Hk{constructor(n,e){this.item=n,this.trackById=e,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 $k{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,e){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===e||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const e=n._prevDup,r=n._nextDup;return null===e?this._head=r:e._nextDup=r,null===r?this._tail=e:r._prevDup=e,null===this._head}}class t0{constructor(){this.map=new Map}put(n){const e=n.trackById;let r=this.map.get(e);r||(r=new $k,this.map.set(e,r)),r.add(n)}get(n,e){const o=this.map.get(n);return o?o.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function n0(t,n,e){const r=t.previousIndex;if(null===r)return r;let o=0;return e&&r{class t{constructor(e){this.factories=e}static create(e,r){if(null!=r){const o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||o0()),deps:[[t,new Za,new Ya]]}}find(e){const r=this.factories.find(o=>o.supports(e));if(null!=r)return r;throw new T(901,!1)}}return t.\u0275prov=Z({token:t,providedIn:"root",factory:o0}),t})();const Wk=Uy(null,"core",[]);let qk=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(V(bi))},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})(),p0=(()=>{class t{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=z(Ke),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(e=>{this.resolve=e})})}add(){if(this.completed)return-1;const e=this.taskId++;return this.collection.add(e),e}remove(e){this.completed||(this.collection.delete(e),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();let Up=null;function Wr(){return Up}class iA{}const Zt=new j("DocumentToken");let jp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(aA)},providedIn:"platform"}),t})();const sA=new j("Location Initialized");let aA=(()=>{class t extends jp{constructor(){super(),this._doc=z(Zt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wr().getBaseHref(this._doc)}onPopState(e){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){const r=Wr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,o){this._history.pushState(e,r,o)}replaceState(e,r,o){this._history.replaceState(e,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new t},providedIn:"platform"}),t})();function zp(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function f0(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function Pr(t){return t&&"?"!==t[0]?"?"+t:t}let qr=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(m0)},providedIn:"root"}),t})();const g0=new j("appBaseHref");let m0=(()=>{class t extends qr{constructor(e,r){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??z(Zt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return zp(this._baseHref,e)}path(e=!1){const r=this._platformLocation.pathname+Pr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,i){const s=this.prepareExternalUrl(o+Pr(i));this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){const s=this.prepareExternalUrl(o+Pr(i));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V(jp),V(g0,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),_0=(()=>{class t extends qr{constructor(e,r){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(e){const r=zp(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+Pr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+Pr(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(V(jp),V(g0,8))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Yr=(()=>{class t{constructor(e){this._subject=new ce,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const r=this._locationStrategy.getBaseHref();this._basePath=function uA(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(f0(v0(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+Pr(r))}normalize(e){return t.stripTrailingSlash(function cA(t,n){if(!t||!n.startsWith(t))return n;const e=n.substring(t.length);return""===e||["/",";","?","#"].includes(e[0])?e:n}(this._basePath,v0(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Pr(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Pr(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r,complete:o})}}return t.normalizeQueryParams=Pr,t.joinWithSlash=zp,t.stripTrailingSlash=f0,t.\u0275fac=function(e){return new(e||t)(V(qr))},t.\u0275prov=Z({token:t,factory:function(){return function lA(){return new Yr(V(qr))}()},providedIn:"root"}),t})();function v0(t){return t.replace(/\/index.html$/,"")}function S0(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const r=e.indexOf("="),[o,i]=-1==r?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}class ZA{constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=o}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 Pn=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const r=this._viewContainer;e.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new ZA(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),I0(a,o)}});for(let o=0,i=r.length;o{I0(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(ln),w(ar),w(zl))},t.\u0275dir=de({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function I0(t,n){t.context.$implicit=n.item}let Se=(()=>{class t{constructor(e,r){this._viewContainer=e,this._context=new XA,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){T0("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){T0("ngIfElse",e),this._elseTemplateRef=e,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(e,r){return!0}}return t.\u0275fac=function(e){return new(e||t)(w(ln),w(ar))},t.\u0275dir=de({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class XA{constructor(){this.$implicit=null,this.ngIf=null}}function T0(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Mt(n)}'.`)}let A0=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:o,ngTemplateOutletContext:i,ngTemplateOutletInjector:s}=this;this._viewRef=r.createEmbeddedView(o,i,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(w(ln))},t.\u0275dir=de({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[nn]}),t})();class tN{createSubscription(n,e){return n.subscribe({next:e,error:r=>{throw r}})}dispose(n){n.unsubscribe()}}class nN{createSubscription(n,e){return n.then(e,r=>{throw r})}dispose(n){}}const rN=new nN,oN=new tN;let N0=(()=>{class t{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r))}_selectStrategy(e){if(Ds(e))return rN;if(hv(e))return oN;throw function Hn(t,n){return new T(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(w($l,16))},t.\u0275pipe=Lt({name:"async",type:t,pure:!1,standalone:!0}),t})(),tc=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})();const F0="browser";function Di(t){return t===F0}function L0(t){return"server"===t}let xN=(()=>{class t{}return t.\u0275prov=Z({token:t,providedIn:"root",factory:()=>new EN(V(Zt),window)}),t})();class EN{constructor(n,e){this.document=n,this.window=e,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 e=function SN(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&"function"==typeof t.body.attachShadow){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=B0(this.window.history)||B0(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function B0(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class V0{}class eR extends iA{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ah extends eR{static makeCurrent(){!function oA(t){Up||(Up=t)}(new ah)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||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,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function tR(){return $s=$s||document.querySelector("base"),$s?$s.getAttribute("href"):null}();return null==e?null:function nR(t){ic=ic||document.createElement("a"),ic.setAttribute("href",t);const n=ic.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){$s=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return S0(document.cookie,n)}}let ic,$s=null,oR=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const lh=new j("EventManagerPlugins");let z0=(()=>{class t{constructor(e,r){this._zone=r,this._eventNameToPlugin=new Map,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,o){return this._findPluginFor(r).addEventListener(e,r,o)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new T(5101,!1);return this._eventNameToPlugin.set(e,r),r}}return t.\u0275fac=function(e){return new(e||t)(V(lh),V(Ke))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class G0{constructor(n){this._doc=n}}const ch="ng-app-id";let W0=(()=>{class t{constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=L0(i),this.resetHostNodes()}addStyles(e){for(const r of e)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(e){for(const r of e)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const e=this.styleNodesInDOM;e&&(e.forEach(r=>r.remove()),e.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(const r of this.getAllStyles())this.addStyleToHost(e,r)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(const r of this.hostNodes)this.addStyleToHost(r,e)}onStyleRemoved(e){const r=this.styleRef;r.get(e)?.elements?.forEach(o=>o.remove()),r.delete(e)}collectServerRenderedStyles(){const e=this.doc.head?.querySelectorAll(`style[${ch}="${this.appId}"]`);if(e?.length){const r=new Map;return e.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(e,r){const o=this.styleRef;if(o.has(e)){const i=o.get(e);return i.usage+=r,i.usage}return o.set(e,{usage:r,elements:[]}),r}getStyleElement(e,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===e)return o.delete(r),i.removeAttribute(ch),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(ch,this.appId),s}}addStyleToHost(e,r){const o=this.getStyleElement(e,r);e.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const e=this.hostNodes;e.clear(),e.add(this.doc.head)}}return t.\u0275fac=function(e){return new(e||t)(V(Zt),V(pl),V(o_,8),V(jr))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const uh={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/"},dh=/%COMP%/g,lR=new j("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Y0(t,n){return n.map(e=>e.replace(dh,t))}let Z0=(()=>{class t{constructor(e,r,o,i,s,a,l,c=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=L0(a),this.defaultRenderer=new ph(e,s,l,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===fn.ShadowDom&&(r={...r,encapsulation:fn.Emulated});const o=this.getOrCreateRenderer(e,r);return o instanceof K0?o.applyToHost(e):o instanceof hh&&o.applyStyles(),o}getOrCreateRenderer(e,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestory,h=this.platformIsServer;switch(r.encapsulation){case fn.Emulated:i=new K0(l,c,r,this.appId,u,s,a,h);break;case fn.ShadowDom:return new pR(l,c,e,r,s,a,this.nonce,h);default:i=new hh(l,c,r,u,s,a,h)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return t.\u0275fac=function(e){return new(e||t)(V(z0),V(W0),V(pl),V(lR),V(Zt),V(jr),V(Ke),V(o_))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();class ph{constructor(n,e,r,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?this.doc.createElementNS(uh[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(X0(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(X0(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new T(5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;const i=uh[o];i?n.setAttributeNS(i,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){const o=uh[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(sn.DashCase|sn.Important)?n.style.setProperty(e,r,o&sn.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&sn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n[e]=r}setValue(n,e){n.nodeValue=e}listen(n,e,r){if("string"==typeof n&&!(n=Wr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if("__ngUnwrap__"===e)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))&&e.preventDefault()}}}function X0(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class pR extends ph{constructor(n,e,r,o,i,s,a,l){super(n,i,s,l),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=Y0(o.id,o.styles);for(const u of c){const h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=u,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class hh extends ph{constructor(n,e,r,o,i,s,a,l){super(n,i,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Y0(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class K0 extends hh{constructor(n,e,r,o,i,s,a,l){const c=o+"-"+r.id;super(n,e,r,i,s,a,l,c),this.contentAttr=function cR(t){return"_ngcontent-%COMP%".replace(dh,t)}(c),this.hostAttr=function uR(t){return"_nghost-%COMP%".replace(dh,t)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){const r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}}let hR=(()=>{class t extends G0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o){return e.addEventListener(r,o,!1),()=>this.removeEventListener(e,r,o)}removeEventListener(e,r,o){return e.removeEventListener(r,o)}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const Q0=["alt","control","meta","shift"],fR={"\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"},gR={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let mR=(()=>{class t extends G0{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wr().onAndCancel(e,i.domEventName,s))}static parseEventName(e){const r=e.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Q0.forEach(c=>{const u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(e,r){let o=fR[e.key]||e.key,i="";return r.indexOf("code.")>-1&&(o=e.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Q0.forEach(s=>{s!==o&&(0,gR[s])(e)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{t.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const yR=Uy(Wk,"browser",[{provide:jr,useValue:F0},{provide:r_,useValue:function _R(){ah.makeCurrent()},multi:!0},{provide:Zt,useFactory:function CR(){return function bE(t){Ju=t}(document),document},deps:[]}]),wR=new j(""),tw=[{provide:Vl,useClass:class rR{addToWindow(n){Ge.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new T(5103,!1);return i},Ge.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ge.getAllAngularRootElements=()=>n.getAllRootElements(),Ge.frameworkStabilizers||(Ge.frameworkStabilizers=[]),Ge.frameworkStabilizers.push(r=>{const o=Ge.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,r){return null==e?null:n.getTestability(e)??(r?Wr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Ly,useClass:Ip,deps:[Ke,Tp,Vl]},{provide:Ip,useClass:Ip,deps:[Ke,Tp,Vl]}],nw=[{provide:ld,useValue:"root"},{provide:vo,useFactory:function vR(){return new vo},deps:[]},{provide:lh,useClass:hR,multi:!0,deps:[Zt,Ke,jr]},{provide:lh,useClass:mR,multi:!0,deps:[Zt]},Z0,W0,z0,{provide:p_,useExisting:Z0},{provide:V0,useClass:oR,deps:[]},[]];let bR=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:pl,useValue:e.appId}]}}}return t.\u0275fac=function(e){return new(e||t)(V(wR,12))},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({providers:[...nw,...tw],imports:[tc,qk]}),t})(),rw=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function DR(){return new rw(V(Zt))}(),r},providedIn:"root"}),t})();typeof window<"u"&&window;let gh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new(e||t):V(sw),r},providedIn:"root"}),t})(),sw=(()=>{class t extends gh{constructor(e){super(),this._doc=e}sanitize(e,r){if(null==r)return null;switch(e){case Ue.NONE:return r;case Ue.HTML:return er(r,"HTML")?Cn(r):Wm(this._doc,String(r)).toString();case Ue.STYLE:return er(r,"Style")?Cn(r):r;case Ue.SCRIPT:if(er(r,"Script"))return Cn(r);throw new T(5200,!1);case Ue.URL:return er(r,"URL")?Cn(r):ll(String(r));case Ue.RESOURCE_URL:if(er(r,"ResourceURL"))return Cn(r);throw new T(5201,!1);default:throw new T(5202,!1)}}bypassSecurityTrustHtml(e){return function OE(t){return new ME(t)}(e)}bypassSecurityTrustStyle(e){return function IE(t){return new DE(t)}(e)}bypassSecurityTrustScript(e){return function TE(t){return new xE(t)}(e)}bypassSecurityTrustUrl(e){return function kE(t){return new EE(t)}(e)}bypassSecurityTrustResourceUrl(e){return function AE(t){return new SE(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(V(Zt))},t.\u0275prov=Z({token:t,factory:function(e){let r=null;return r=e?new e:function PR(t){return new sw(t.get(Zt))}(V(Nn)),r},providedIn:"root"}),t})();function ue(...t){return bt(t,$i(t))}class $n extends ot{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}const{isArray:IR}=Array,{getPrototypeOf:TR,prototype:kR,keys:AR}=Object;function lw(t){if(1===t.length){const n=t[0];if(IR(n))return{args:n,keys:null};if(function NR(t){return t&&"object"==typeof t&&TR(t)===kR}(n)){const e=AR(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}const{isArray:RR}=Array;function cw(t){return ye(n=>function FR(t,n){return RR(n)?t(...n):t(n)}(t,n))}function uw(t,n){return t.reduce((e,r,o)=>(e[r]=n[o],e),{})}function mh(...t){const n=$i(t),e=Nf(t),{args:r,keys:o}=lw(t);if(0===r.length)return bt([],n);const i=new Ee(function LR(t,n,e=Gn){return r=>{dw(n,()=>{const{length:o}=t,i=new Array(o);let s=o,a=o;for(let l=0;l{const c=bt(t[l],n);let u=!1;c.subscribe(Je(r,h=>{i[l]=h,u||(u=!0,a--),a||r.next(e(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>uw(o,s):Gn));return e?i.pipe(cw(e)):i}function dw(t,n,e){t?mr(e,t,n):n()}const sc=Ye(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function _h(...t){return function BR(){return Ro(1)}()(bt(t,$i(t)))}function pw(t){return new Ee(n=>{pn(t()).subscribe(n)})}function Us(t,n){const e=G(t)?t:()=>t,r=o=>o.error(e());return new Ee(n?o=>n.schedule(r,0,o):r)}function vh(){return Qe((t,n)=>{let e=null;t._refCount++;const r=Je(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const o=t._connection,i=e;e=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}class hw extends Ee{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,so(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 U;const e=this.getSubject();n.add(this.source.subscribe(Je(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=U.EMPTY)}return n}refCount(){return vh()(this)}}function Un(t,n){return Qe((e,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();e.subscribe(Je(r,l=>{o?.unsubscribe();let c=0;const u=i++;pn(t(l,u)).subscribe(o=Je(r,h=>r.next(n?n(l,h,u,c++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function xi(t){return t<=0?()=>Wn:Qe((n,e)=>{let r=0;n.subscribe(Je(e,o=>{++r<=t&&(e.next(o),t<=r&&e.complete())}))})}function fw(...t){const n=$i(t);return Qe((e,r)=>{(n?_h(t,e,n):_h(t,e)).subscribe(r)})}function Ir(t,n){return Qe((e,r)=>{let o=0;e.subscribe(Je(r,i=>t.call(n,i,o++)&&r.next(i)))})}function ac(t){return Qe((n,e)=>{let r=!1;n.subscribe(Je(e,o=>{r=!0,e.next(o)},()=>{r||e.next(t),e.complete()}))})}function gw(t=VR){return Qe((n,e)=>{let r=!1;n.subscribe(Je(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(t())))})}function VR(){return new sc}function Xr(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Ir((o,i)=>t(o,i,r)):Gn,xi(1),e?ac(n):gw(()=>new sc))}function Ei(t,n){return G(n)?At(t,n,1):At(t,1)}function Xt(t,n,e){const r=G(t)||n||e?{next:t,error:n,complete:e}:t;return r?Qe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(Je(i,l=>{var c;null===(c=r.next)||void 0===c||c.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,l),i.error(l)},()=>{var l,c;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):Gn}function qe(t){return Qe((n,e)=>{let i,r=null,o=!1;r=n.subscribe(Je(e,void 0,void 0,s=>{i=pn(t(s,qe(t)(n))),r?(r.unsubscribe(),r=null,i.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(e))})}function Ch(t){return t<=0?()=>Wn:Qe((n,e)=>{let r=[];n.subscribe(Je(e,o=>{r.push(o),t{for(const o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function mw(t){return ye(()=>t)}function yh(t){return Qe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const _e="primary",js=Symbol("RouteTitle");class jR{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Si(t){return new jR(t)}function zR(t,n,e){const r=e.path.split("/");if(r.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return t===n}function vw(t){return t.length>0?t[t.length-1]:null}function Kr(t){return function OR(t){return!!t&&(t instanceof Ee||G(t.lift)&&G(t.subscribe))}(t)?t:Ds(t)?bt(Promise.resolve(t)):ue(t)}const WR={exact:function ww(t,n,e){if(!Mo(t.segments,n.segments)||!lc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!t.children[r]||!ww(t.children[r],n.children[r],e))return!1;return!0},subset:bw},Cw={exact:function qR(t,n){return lr(t,n)},subset:function YR(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>_w(t[e],n[e]))},ignored:()=>!0};function yw(t,n,e){return WR[e.paths](t.root,n.root,e.matrixParams)&&Cw[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function bw(t,n,e){return Mw(t,n,n.segments,e)}function Mw(t,n,e,r){if(t.segments.length>e.length){const o=t.segments.slice(0,e.length);return!(!Mo(o,e)||n.hasChildren()||!lc(o,e,r))}if(t.segments.length===e.length){if(!Mo(t.segments,e)||!lc(t.segments,e,r))return!1;for(const o in n.children)if(!t.children[o]||!bw(t.children[o],n.children[o],r))return!1;return!0}{const o=e.slice(0,t.segments.length),i=e.slice(t.segments.length);return!!(Mo(t.segments,o)&&lc(t.segments,o,r)&&t.children[_e])&&Mw(t.children[_e],n,i,r)}}function lc(t,n,e){return n.every((r,o)=>Cw[e](t[o].parameters,r.parameters))}class Pi{constructor(n=new Be([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Si(this.queryParams)),this._queryParamMap}toString(){return KR.serialize(this)}}class Be{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cc(this)}}class zs{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Si(this.parameters)),this._parameterMap}toString(){return Ew(this)}}function Mo(t,n){return t.length===n.length&&t.every((e,r)=>e.path===n[r].path)}let Gs=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return new wh},providedIn:"root"}),t})();class wh{parse(n){const e=new lF(n);return new Pi(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Ws(n.root,!0)}`,r=function eF(t){const n=Object.keys(t).map(e=>{const r=t[e];return Array.isArray(r)?r.map(o=>`${uc(e)}=${uc(o)}`).join("&"):`${uc(e)}=${uc(r)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${r}${"string"==typeof n.fragment?`#${function QR(t){return encodeURI(t)}(n.fragment)}`:""}`}}const KR=new wh;function cc(t){return t.segments.map(n=>Ew(n)).join("/")}function Ws(t,n){if(!t.hasChildren())return cc(t);if(n){const e=t.children[_e]?Ws(t.children[_e],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==_e&&r.push(`${o}:${Ws(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}{const e=function XR(t,n){let e=[];return Object.entries(t.children).forEach(([r,o])=>{r===_e&&(e=e.concat(n(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==_e&&(e=e.concat(n(o,r)))}),e}(t,(r,o)=>o===_e?[Ws(t.children[_e],!1)]:[`${o}:${Ws(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[_e]?`${cc(t)}/${e[0]}`:`${cc(t)}/(${e.join("//")})`}}function Dw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uc(t){return Dw(t).replace(/%3B/gi,";")}function bh(t){return Dw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dc(t){return decodeURIComponent(t)}function xw(t){return dc(t.replace(/\+/g,"%20"))}function Ew(t){return`${bh(t.path)}${function JR(t){return Object.keys(t).map(n=>`;${bh(n)}=${bh(t[n])}`).join("")}(t.parameters)}`}const tF=/^[^\/()?;#]+/;function Mh(t){const n=t.match(tF);return n?n[0]:""}const nF=/^[^\/()?;=#]+/,oF=/^[^=?&#]+/,sF=/^[^&#]+/;class lF{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Be([],{}):new Be([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[_e]=new Be(n,e)),r}parseSegment(){const n=Mh(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new T(4009,!1);return this.capture(n),new zs(dc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=function rF(t){const n=t.match(nF);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const o=Mh(this.remaining);o&&(r=o,this.capture(r))}n[dc(e)]=dc(r)}parseQueryParam(n){const e=function iF(t){const n=t.match(oF);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){const s=function aF(t){const n=t.match(sF);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=xw(e),i=xw(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Mh(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new T(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=_e);const s=this.parseChildren();e[i]=1===Object.keys(s).length?s[_e]:new Be([],s),this.consumeOptional("//")}return e}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 T(4011,!1)}}function Sw(t){return t.segments.length>0?new Be([],{[_e]:t}):t}function Pw(t){const n={};for(const r of Object.keys(t.children)){const i=Pw(t.children[r]);if(r===_e&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function cF(t){if(1===t.numberOfChildren&&t.children[_e]){const n=t.children[_e];return new Be(t.segments.concat(n.segments),n.children)}return t}(new Be(t.segments,n))}function Do(t){return t instanceof Pi}function Ow(t){let n;const o=Sw(function e(i){const s={};for(const l of i.children){const c=e(l);s[l.outlet]=c}const a=new Be(i.url,s);return i===t&&(n=a),a}(t.root));return n??o}function Iw(t,n,e,r){let o=t;for(;o.parent;)o=o.parent;if(0===n.length)return Dh(o,o,o,e,r);const i=function dF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new kw(!0,0,t);let n=0,e=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,c])=>{a[l]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new kw(e,n,r)}(n);if(i.toRoot())return Dh(o,o,new Be([],{}),e,r);const s=function pF(t,n,e){if(t.isAbsolute)return new hc(n,!0,0);if(!e)return new hc(n,!1,NaN);if(null===e.parent)return new hc(e,!0,0);const r=pc(t.commands[0])?0:1;return function hF(t,n,e){let r=t,o=n,i=e;for(;i>o;){if(i-=o,r=r.parent,!r)throw new T(4005,!1);o=r.segments.length}return new hc(r,!1,o-i)}(e,e.segments.length-1+r,t.numberOfDoubleDots)}(i,o,t),a=s.processChildren?Ys(s.segmentGroup,s.index,i.commands):Aw(s.segmentGroup,s.index,i.commands);return Dh(o,s.segmentGroup,a,e,r)}function pc(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qs(t){return"object"==typeof t&&null!=t&&t.outlets}function Dh(t,n,e,r,o){let s,i={};r&&Object.entries(r).forEach(([l,c])=>{i[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`}),s=t===n?e:Tw(t,n,e);const a=Sw(Pw(s));return new Pi(a,i,o)}function Tw(t,n,e){const r={};return Object.entries(t.children).forEach(([o,i])=>{r[o]=i===n?e:Tw(i,n,e)}),new Be(t.segments,r)}class kw{constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&pc(r[0]))throw new T(4003,!1);const o=r.find(qs);if(o&&o!==vw(r))throw new T(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class hc{constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}}function Aw(t,n,e){if(t||(t=new Be([],{})),0===t.segments.length&&t.hasChildren())return Ys(t,n,e);const r=function gF(t,n,e){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return i;const s=t.segments[o],a=e[r];if(qs(a))break;const l=`${a}`,c=r0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Rw(l,c,s))return i;r+=2}else{if(!Rw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Aw(t.children[i],n,s))}),Object.entries(t.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new Be(t.segments,o)}}function xh(t,n,e){const r=t.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[e]=xh(new Be([],{}),0,r))}),n}function Nw(t){const n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Rw(t,n,e){return t==e.path&&lr(n,e.parameters)}const Zs="imperative";class cr{constructor(n,e){this.id=n,this.url=e}}class Eh extends cr{constructor(n,e,r="imperative",o=null){super(n,e),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class xo extends cr{constructor(n,e,r){super(n,e),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class fc extends cr{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xs extends cr{constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o,this.type=16}}class Sh extends cr{constructor(n,e,r,o){super(n,e),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class _F extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vF extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class CF extends cr{constructor(n,e,r,o,i){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yF extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wF extends cr{constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bF{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class MF{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class DF{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xF{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class EF{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class SF{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Fw{constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class PF{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Ks,this.attachRef=null}}let Ks=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,r){const o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){const r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new PF,this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Lw{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Ph(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){const e=Ph(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Oh(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Oh(n,this._root).map(e=>e.value)}}function Ph(t,n){if(t===n.value)return n;for(const e of n.children){const r=Ph(t,e);if(r)return r}return null}function Oh(t,n){if(t===n.value)return[n];for(const e of n.children){const r=Oh(t,e);if(r.length)return r.unshift(n),r}return[]}class Tr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Oi(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Bw extends Lw{constructor(n,e){super(n),this.snapshot=e,Ih(this,n)}toString(){return this.snapshot.toString()}}function Vw(t,n){const e=function OF(t,n){const s=new gc([],{},{},"",{},_e,n,null,{});return new $w("",new Tr(s,[]))}(0,n),r=new $n([new zs("",{})]),o=new $n({}),i=new $n({}),s=new $n({}),a=new $n(""),l=new ur(r,o,s,a,i,_e,n,e.root);return l.snapshot=e.root,new Bw(new Tr(l,[]),e)}class ur{constructor(n,e,r,o,i,s,a,l){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ye(c=>c[js]))??ue(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i}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(ye(n=>Si(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ye(n=>Si(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Hw(t,n="emptyOnly"){const e=t.pathFromRoot;let r=0;if("always"!==n)for(r=e.length-1;r>=1;){const o=e[r],i=e[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function IF(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(r))}class gc{get title(){return this.data?.[js]}constructor(n,e,r,o,i,s,a,l,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i,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=Si(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Si(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $w extends Lw{constructor(n,e){super(e),this.url=n,Ih(this,e)}toString(){return Uw(this._root)}}function Ih(t,n){n.value._routerState=t,n.children.forEach(e=>Ih(t,e))}function Uw(t){const n=t.children.length>0?` { ${t.children.map(Uw).join(", ")} } `:"";return`${t.value}${n}`}function Th(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,lr(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),lr(n.params,e.params)||t.paramsSubject.next(e.params),function GR(t,n){if(t.length!==n.length)return!1;for(let e=0;elr(e.parameters,n[r].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||kh(t.parent,n.parent))}let Ah=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=_e,this.activateEvents=new ce,this.deactivateEvents=new ce,this.attachEvents=new ce,this.detachEvents=new ce,this.parentContexts=z(Ks),this.location=z(ln),this.changeDetector=z($l),this.environmentInjector=z(nr),this.inputBinder=z(mc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){const{firstChange:r,previousValue:o}=e.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new T(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new T(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new T(4012,!1);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new T(4013,!1);this._activatedRoute=e;const o=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new TF(e,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nn]}),t})();class TF{constructor(n,e,r){this.route=n,this.childContexts=e,this.parent=r}get(n,e){return n===ur?this.route:n===Ks?this.childContexts:this.parent.get(n,e)}}const mc=new j("");let jw=(()=>{class t{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){const{activatedRoute:r}=e,o=mh([r.queryParams,r.params,r.data]).pipe(Un(([i,s,a],l)=>(a={...i,...s,...a},0===l?ue(a):Promise.resolve(a)))).subscribe(i=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(e);const s=function rA(t){const n=Ie(t);if(!n)return null;const e=new Cs(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(e)});this.outletDataSubscriptions.set(e,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Qs(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const r=e.value;r._futureSnapshot=n.value;const o=function AF(t,n,e){return n.children.map(r=>{for(const o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Qs(t,r,o);return Qs(t,r)})}(t,n,e);return new Tr(r,o)}{if(t.shouldAttach(n.value)){const i=t.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Qs(t,a)),s}}const r=function NF(t){return new ur(new $n(t.url),new $n(t.params),new $n(t.queryParams),new $n(t.fragment),new $n(t.data),t.outlet,t.component,t)}(n.value),o=n.children.map(i=>Qs(t,i));return new Tr(r,o)}}const Nh="ngNavigationCancelingError";function zw(t,n){const{redirectTo:e,navigationBehaviorOptions:r}=Do(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=Gw(!1,0,n);return o.url=e,o.navigationBehaviorOptions=r,o}function Gw(t,n,e){const r=new Error("NavigationCancelingError: "+(t||""));return r[Nh]=!0,r.cancellationCode=n,e&&(r.url=e),r}function Ww(t){return qw(t)&&Do(t.url)}function qw(t){return t&&t[Nh]}let Yw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["ng-component"]],standalone:!0,features:[VC],decls:1,vars:0,template:function(e,r){1&e&&X(0,"router-outlet")},dependencies:[Ah],encapsulation:2}),t})();function Rh(t){const n=t.children&&t.children.map(Rh),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==_e&&(e.component=Yw),e}function jn(t){return t.outlet||_e}function Js(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class $F{constructor(n,e,r,o,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Th(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){const o=Oi(e);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,e,r){const o=n.value,i=e?e.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Oi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Oi(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){const o=Oi(e);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new SF(i.value.snapshot))}),n.children.length&&this.forwardEvent(new xF(n.value.snapshot))}activateRoutes(n,e,r){const o=n.value,i=e?e.value:null;if(Th(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),Th(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Js(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class Zw{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class _c{constructor(n,e){this.component=n,this.route=e}}function UF(t,n,e){const r=t._root;return ea(r,n?n._root:null,e,[r.value])}function Ii(t,n){const e=Symbol(),r=n.get(t,e);return r===e?"function"!=typeof t||function z1(t){return null!==wa(t)}(t)?n.get(t):t:r}function ea(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Oi(n);return t.children.forEach(s=>{(function zF(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function GF(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Mo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Mo(t.url,n.url)||!lr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kh(t,n)||!lr(t.queryParams,n.queryParams);default:return!kh(t,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Zw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ea(t,n,i.component?a?a.children:null:e,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new _c(a.outlet.component,s))}else s&&ta(n,a,o),o.canActivateChecks.push(new Zw(r)),ea(t,null,i.component?a?a.children:null:e,r,o)})(s,i[s.value.outlet],e,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ta(a,e.getContext(s),o)),o}function ta(t,n,e){const r=Oi(t),o=t.value;Object.entries(r).forEach(([i,s])=>{ta(s,o.component?n?n.children.getContext(i):null:n,e)}),e.canDeactivateChecks.push(new _c(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function na(t){return"function"==typeof t}function Xw(t){return t instanceof sc||"EmptyError"===t?.name}const vc=Symbol("INITIAL_VALUE");function Ti(){return Un(t=>mh(t.map(n=>n.pipe(xi(1),fw(vc)))).pipe(ye(n=>{for(const e of n)if(!0!==e){if(e===vc)return vc;if(!1===e||e instanceof Pi)return e}return!0}),Ir(n=>n!==vc),xi(1)))}function Kw(t){return function _a(...t){return wt(t)}(Xt(n=>{if(Do(n))throw zw(0,n)}),ye(n=>!0===n))}class Cc{constructor(n){this.segmentGroup=n||null}}class Qw{constructor(n){this.urlTree=n}}function ki(t){return Us(new Cc(t))}function Jw(t){return Us(new Qw(t))}class d2{constructor(n,e){this.urlSerializer=n,this.urlTree=e}noMatchError(n){return new T(4002,!1)}lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return ue(r);if(o.numberOfChildren>1||!o.children[_e])return Us(new T(4e3,!1));o=o.children[_e]}}applyRedirectCommands(n,e,r){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r)}applyRedirectCreateUrlTree(n,e,r,o){const i=this.createSegmentGroup(n,e.root,r,o);return new Pi(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,o){const i=this.createSegments(n,e.segments,r,o);let s={};return Object.entries(e.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,o)}),new Be(i,s)}createSegments(n,e,r,o){return e.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,e,r){const o=r[e.path.substring(1)];if(!o)throw new T(4001,!1);return o}findOrReturn(n,e){let r=0;for(const o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}}const Fh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function p2(t,n,e,r,o){const i=Lh(t,n,e);return i.matched?(r=function RF(t,n){return t.providers&&!t._injector&&(t._injector=ap(t.providers,n,`Route: ${t.path}`)),t._injector??n}(n,r),function l2(t,n,e,r){const o=n.canMatch;return o&&0!==o.length?ue(o.map(s=>{const a=Ii(s,t);return Kr(function KF(t){return t&&na(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ti(),Kw()):ue(!0)}(r,n,e).pipe(ye(s=>!0===s?i:{...Fh}))):ue(i)}function Lh(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...Fh}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const o=(n.matcher||zR)(e,t,n);if(!o)return{...Fh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function eb(t,n,e,r){return e.length>0&&function g2(t,n,e){return e.some(r=>yc(t,n,r)&&jn(r)!==_e)}(t,e,r)?{segmentGroup:new Be(n,f2(r,new Be(e,t.children))),slicedSegments:[]}:0===e.length&&function m2(t,n,e){return e.some(r=>yc(t,n,r))}(t,e,r)?{segmentGroup:new Be(t.segments,h2(t,0,e,r,t.children)),slicedSegments:e}:{segmentGroup:new Be(t.segments,t.children),slicedSegments:e}}function h2(t,n,e,r,o){const i={};for(const s of r)if(yc(t,e,s)&&!o[jn(s)]){const a=new Be([],{});i[jn(s)]=a}return{...o,...i}}function f2(t,n){const e={};e[_e]=n;for(const r of t)if(""===r.path&&jn(r)!==_e){const o=new Be([],{});e[jn(r)]=o}return e}function yc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}class y2{constructor(n,e,r,o,i,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new d2(this.urlSerializer,this.urlTree)}noMatchError(n){return new T(4002,!1)}recognize(){const n=eb(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,_e).pipe(qe(e=>{if(e instanceof Qw)return this.allowRedirects=!1,this.urlTree=e.urlTree,this.match(e.urlTree);throw e instanceof Cc?this.noMatchError(e):e}),ye(e=>{const r=new gc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},_e,this.rootComponentType,null,{}),o=new Tr(r,e),i=new $w("",o),s=function uF(t,n,e=null,r=null){return Iw(Ow(t),n,e,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,_e).pipe(qe(r=>{throw r instanceof Cc?this.noMatchError(r):r}))}inheritParamsAndData(n){const e=n.value,r=Hw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(r.params),e.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,e,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,e,r):this.processSegment(n,e,r,r.segments,o,!0)}processChildren(n,e,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return bt(o).pipe(Ei(i=>{const s=r.children[i],a=function VF(t,n){const e=t.filter(r=>jn(r)===n);return e.push(...t.filter(r=>jn(r)!==n)),e}(e,i);return this.processSegmentGroup(n,a,s,i)}),function $R(t,n){return Qe(function HR(t,n,e,r,o){return(i,s)=>{let a=e,l=n,c=0;i.subscribe(Je(s,u=>{const h=c++;l=a?t(l,u,h):(a=!0,u),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(t,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),ac(null),function UR(t,n){const e=arguments.length>=2;return r=>r.pipe(t?Ir((o,i)=>t(o,i,r)):Gn,Ch(1),e?ac(n):gw(()=>new sc))}(),At(i=>{if(null===i)return ki(r);const s=tb(i);return function w2(t){t.sort((n,e)=>n.value.outlet===_e?-1:e.value.outlet===_e?1:n.value.outlet.localeCompare(e.value.outlet))}(s),ue(s)}))}processSegment(n,e,r,o,i,s){return bt(e).pipe(Ei(a=>this.processSegmentAgainstRoute(a._injector??n,e,a,r,o,i,s).pipe(qe(l=>{if(l instanceof Cc)return ue(null);throw l}))),Xr(a=>!!a),qe(a=>{if(Xw(a))return function v2(t,n,e){return 0===n.length&&!t.children[e]}(r,o,i)?ue([]):ki(r);throw a}))}processSegmentAgainstRoute(n,e,r,o,i,s,a){return function _2(t,n,e,r){return!!(jn(t)===r||r!==_e&&yc(n,e,t))&&("**"===t.path||Lh(n,t,e).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,r,i,s):ki(o):ki(o)}expandSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Jw(i):this.applyRedirects.lineralizeSegments(r,i).pipe(At(s=>{const a=new Be(s,{});return this.processSegment(n,e,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Lh(e,o,i);if(!a)return ki(e);const h=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,u);return o.redirectTo.startsWith("/")?Jw(h):this.applyRedirects.lineralizeSegments(o,h).pipe(At(g=>this.processSegment(n,r,e,g.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?vw(o).parameters:{};a=ue({snapshot:new gc(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nb(r),jn(r),r.component??r._loadedComponent??null,r,rb(r)),consumedSegments:[],remainingSegments:[]}),e.children={}}else a=p2(e,r,o,n).pipe(ye(({matched:l,consumedSegments:c,remainingSegments:u,parameters:h})=>l?{snapshot:new gc(c,h,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,nb(r),jn(r),r.component??r._loadedComponent??null,r,rb(r)),consumedSegments:c,remainingSegments:u}:null));return a.pipe(Un(l=>null===l?ki(e):this.getChildConfig(n=r._injector??n,r,o).pipe(Un(({routes:c})=>{const u=r._loadedInjector??n,{snapshot:h,consumedSegments:g,remainingSegments:m}=l,{segmentGroup:y,slicedSegments:D}=eb(e,g,m,c);if(0===D.length&&y.hasChildren())return this.processChildren(u,c,y).pipe(ye(E=>null===E?null:[new Tr(h,E)]));if(0===c.length&&0===D.length)return ue([new Tr(h,[])]);const x=jn(r)===i;return this.processSegment(u,c,y,D,x?_e:i,!0).pipe(ye(E=>[new Tr(h,E)]))}))))}getChildConfig(n,e,r){return e.children?ue({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?ue({routes:e._loadedRoutes,injector:e._loadedInjector}):function a2(t,n,e,r){const o=n.canLoad;return void 0===o||0===o.length?ue(!0):ue(o.map(s=>{const a=Ii(s,t);return Kr(function qF(t){return t&&na(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ti(),Kw())}(n,e,r).pipe(At(o=>o?this.configLoader.loadChildren(n,e).pipe(Xt(i=>{e._loadedRoutes=i.routes,e._loadedInjector=i.injector})):function u2(t){return Us(Gw(!1,3))}())):ue({routes:[],injector:n})}}function b2(t){const n=t.value.routeConfig;return n&&""===n.path}function tb(t){const n=[],e=new Set;for(const r of t){if(!b2(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),e.add(o)):n.push(r)}for(const r of e){const o=tb(r.children);n.push(new Tr(r.value,o))}return n.filter(r=>!e.has(r))}function nb(t){return t.data||{}}function rb(t){return t.resolve||{}}function ob(t){return"string"==typeof t.title||null===t.title}function Bh(t){return Un(n=>{const e=t(n);return e?bt(e).pipe(ye(()=>n)):ue(n)})}const Ai=new j("ROUTES");let Vh=(()=>{class t{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=z(Oy)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ue(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const r=Kr(e.loadComponent()).pipe(ye(ib),Xt(i=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=i}),yh(()=>{this.componentLoaders.delete(e)})),o=new hw(r,()=>new ot).pipe(vh());return this.componentLoaders.set(e,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return ue({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ye(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,c;return Array.isArray(a)?c=a:(l=a.create(e).injector,c=l.get(Ai,[],ie.Self|ie.Optional).flat()),{routes:c.map(Rh),injector:l}}),yh(()=>{this.childrenLoaders.delete(r)})),s=new hw(i,()=>new ot).pipe(vh());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(e){return Kr(e()).pipe(ye(ib),At(r=>r instanceof LC||Array.isArray(r)?ue(r):bt(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ib(t){return function O2(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let wc=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new ot,this.configLoader=z(Vh),this.environmentInjector=z(nr),this.urlSerializer=z(Gs),this.rootContexts=z(Ks),this.inputBindingEnabled=null!==z(mc,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>ue(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new MF(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new bF(o))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:r})}setupNavigations(e){return this.transitions=new $n({id:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Zs,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ir(r=>0!==r.id),ye(r=>({...r,extractedUrl:e.urlHandlingStrategy.extract(r.rawUrl)})),Un(r=>{let o=!1,i=!1;return ue(r).pipe(Xt(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Un(s=>{const a=e.browserUrlTree.toString(),l=!e.navigated||s.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new Xs(s.id,e.serializeUrl(r.rawUrl),u,0)),e.rawUrlTree=s.rawUrl,s.resolve(null),Wn}if(e.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return sb(s.source)&&(e.browserUrlTree=s.extractedUrl),ue(s).pipe(Un(u=>{const h=this.transitions?.getValue();return this.events.next(new Eh(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),h!==this.transitions?.getValue()?Wn:Promise.resolve(u)}),function M2(t,n,e,r,o,i){return At(s=>function C2(t,n,e,r,o,i,s="emptyOnly"){return new y2(t,n,e,r,o,s,i).recognize()}(t,n,e,r,s.extractedUrl,o,i).pipe(ye(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Xt(u=>{if(r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const g=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(g,u)}e.browserUrlTree=u.urlAfterRedirects}const h=new _F(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(h)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:h,source:g,restoredState:m,extras:y}=s,D=new Eh(u,this.urlSerializer.serialize(h),g,m);this.events.next(D);const x=Vw(0,this.rootComponentType).snapshot;return ue(r={...s,targetSnapshot:x,urlAfterRedirects:h,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new Xs(s.id,e.serializeUrl(r.extractedUrl),u,1)),e.rawUrlTree=s.rawUrl,s.resolve(null),Wn}}),Xt(s=>{const a=new vF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ye(s=>r={...s,guards:UF(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function JF(t,n){return At(e=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=e;return 0===s.length&&0===i.length?ue({...e,guardsResult:!0}):function e2(t,n,e,r){return bt(t).pipe(At(o=>function s2(t,n,e,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?ue(i.map(a=>{const l=Js(n)??o,c=Ii(a,l);return Kr(function XF(t){return t&&na(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,r):l.runInContext(()=>c(t,n,e,r))).pipe(Xr())})).pipe(Ti()):ue(!0)}(o.component,o.route,e,n,r)),Xr(o=>!0!==o,!0))}(s,r,o,t).pipe(At(a=>a&&function WF(t){return"boolean"==typeof t}(a)?function t2(t,n,e,r){return bt(n).pipe(Ei(o=>_h(function r2(t,n){return null!==t&&n&&n(new DF(t)),ue(!0)}(o.route.parent,r),function n2(t,n){return null!==t&&n&&n(new EF(t)),ue(!0)}(o.route,r),function i2(t,n,e){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function jF(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>pw(()=>ue(s.guards.map(l=>{const c=Js(s.node)??e,u=Ii(l,c);return Kr(function ZF(t){return t&&na(t.canActivateChild)}(u)?u.canActivateChild(r,t):c.runInContext(()=>u(r,t))).pipe(Xr())})).pipe(Ti())));return ue(i).pipe(Ti())}(t,o.path,e),function o2(t,n,e){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return ue(!0);const o=r.map(i=>pw(()=>{const s=Js(n)??e,a=Ii(i,s);return Kr(function YF(t){return t&&na(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(Xr())}));return ue(o).pipe(Ti())}(t,o.route,e))),Xr(o=>!0!==o,!0))}(r,i,t,n):ue(a)),ye(a=>({...e,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),Xt(s=>{if(r.guardsResult=s.guardsResult,Do(s.guardsResult))throw zw(0,s.guardsResult);const a=new CF(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ir(s=>!!s.guardsResult||(e.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),Bh(s=>{if(s.guards.canActivateChecks.length)return ue(s).pipe(Xt(a=>{const l=new yF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Un(a=>{let l=!1;return ue(a).pipe(function D2(t,n){return At(e=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=e;if(!o.length)return ue(e);let i=0;return bt(o).pipe(Ei(s=>function x2(t,n,e,r){const o=t.routeConfig,i=t._resolve;return void 0!==o?.title&&!ob(o)&&(i[js]=o.title),function E2(t,n,e,r){const o=function S2(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===o.length)return ue({});const i={};return bt(o).pipe(At(s=>function P2(t,n,e,r){const o=Js(n)??r,i=Ii(t,o);return Kr(i.resolve?i.resolve(n,e):o.runInContext(()=>i(n,e)))}(t[s],n,e,r).pipe(Xr(),Xt(a=>{i[s]=a}))),Ch(1),mw(i),qe(s=>Xw(s)?Wn:Us(s)))}(i,t,n,r).pipe(ye(s=>(t._resolvedData=s,t.data=Hw(t,e).resolve,o&&ob(o)&&(t.data[js]=o.title),null)))}(s.route,r,t,n)),Xt(()=>i++),Ch(1),At(s=>i===o.length?ue(e):Wn))})}(e.paramsInheritanceStrategy,this.environmentInjector),Xt({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Xt(a=>{const l=new wF(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Bh(s=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Xt(u=>{l.component=u}),ye(()=>{})));for(const u of l.children)c.push(...a(u));return c};return mh(a(s.targetSnapshot.root)).pipe(ac(),xi(1))}),Bh(()=>this.afterPreactivation()),ye(s=>{const a=function kF(t,n,e){const r=Qs(t,n._root,e?e._root:void 0);return new Bw(r,n)}(e.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),Xt(s=>{e.currentUrlTree=s.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),e.routerState=s.targetRouterState,"deferred"===e.urlUpdateStrategy&&(s.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,s),e.browserUrlTree=s.urlAfterRedirects)}),((t,n,e,r)=>ye(o=>(new $F(n,o.targetRouterState,o.currentRouterState,e,r).activate(t),o)))(this.rootContexts,e.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),xi(1),Xt({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new xo(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),yh(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),qe(s=>{if(i=!0,qw(s)){Ww(s)||(e.navigated=!0,e.restoreHistory(r,!0));const a=new fc(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Ww(s)){const l=e.urlHandlingStrategy.merge(s.url,e.rawUrlTree),c={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||sb(r.source)};e.scheduleNavigation(l,Zs,null,c,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{e.restoreHistory(r,!0);const a=new Sh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(e.errorHandler(s))}catch(l){r.reject(l)}}return Wn}))}))}cancelNavigationTransition(e,r,o){const i=new fc(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(i),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function sb(t){return t!==Zs}let ab=(()=>{class t{buildTitle(e){let r,o=e.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===_e);return r}getResolvedTitleForRoute(e){return e.data[js]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(I2)},providedIn:"root"}),t})(),I2=(()=>{class t extends ab{constructor(e){super(),this.title=e}updateTitle(e){const r=this.buildTitle(e);void 0!==r&&this.title.setTitle(r)}}return t.\u0275fac=function(e){return new(e||t)(V(rw))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),T2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(A2)},providedIn:"root"}),t})();class k2{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let A2=(()=>{class t extends k2{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const bc=new j("",{providedIn:"root",factory:()=>({})});let N2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:function(){return z(R2)},providedIn:"root"}),t})(),R2=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var wn=(()=>((wn=wn||{})[wn.COMPLETE=0]="COMPLETE",wn[wn.FAILED=1]="FAILED",wn[wn.REDIRECTING=2]="REDIRECTING",wn))();function lb(t,n){t.events.pipe(Ir(e=>e instanceof xo||e instanceof fc||e instanceof Sh||e instanceof Xs),ye(e=>e instanceof xo||e instanceof Xs?wn.COMPLETE:e instanceof fc&&(0===e.code||1===e.code)?wn.REDIRECTING:wn.FAILED),Ir(e=>e!==wn.REDIRECTING),xi(1)).subscribe(()=>{n()})}function F2(t){throw t}function L2(t,n,e){return n.parse("/")}const B2={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},V2={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ke=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=z(Py),this.isNgZoneEnabled=!1,this.options=z(bc,{optional:!0})||{},this.pendingTasks=z(p0),this.errorHandler=this.options.errorHandler||F2,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||L2,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=z(N2),this.routeReuseStrategy=z(T2),this.titleStrategy=z(ab),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=z(Ai,{optional:!0})?.flat()??[],this.navigationTransitions=z(wc),this.urlSerializer=z(Gs),this.location=z(Yr),this.componentInputBindingEnabled=!!z(mc,{optional:!0}),this.isNgZoneEnabled=z(Ke)instanceof Ke&&Ke.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Pi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Vw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId??0},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Zs,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const r="popstate"===e.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,r,e.state)},0)}))}navigateToSyncWithBrowser(e,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Rh),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}createUrlTree(e,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s;let h,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}null!==u&&(u=this.removeEmptyProps(u));try{h=Ow(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof e[0]||!e[0].startsWith("/"))&&(e=[]),h=this.currentUrlTree.root}return Iw(h,e,u,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){const o=Do(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Zs,null,r)}navigate(e,r={skipLocationChange:!1}){return function H2(t){for(let n=0;n{const i=e[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(e,r,o,i,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((h,g)=>{a=h,l=g});const u=this.pendingTasks.add();return lb(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,r){const o=this.urlSerializer.serialize(e);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(e,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class cb{}let j2=(()=>{class t{constructor(e,r,o,i,s){this.router=e,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ir(e=>e instanceof xo),Ei(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ap(i.providers,e,`Route: ${i.path}`));const s=i._injector??e,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return bt(o).pipe(Ro())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(e,r):ue(null);const i=o.pipe(At(s=>null===s?ue(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return r.loadComponent&&!r._loadedComponent?bt([i,this.loader.loadComponent(r)]).pipe(Ro()):i})}}return t.\u0275fac=function(e){return new(e||t)(V(ke),V(Oy),V(nr),V(cb),V(Vh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const $h=new j("");let ub=(()=>{class t{constructor(e,r,o,i,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=o,this.zone=i,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(e=>{e instanceof Eh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof xo?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Xs&&0===e.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Fw&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Fw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function P_(){throw new Error("invalid")}()},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function kr(t,n){return{\u0275kind:t,\u0275providers:n}}function pb(){const t=z(Nn);return n=>{const e=t.get(bi);if(n!==e.components[0])return;const r=t.get(ke),o=t.get(hb);1===t.get(Uh)&&r.initialNavigation(),t.get(fb,null,ie.Optional)?.setUpPreloading(),t.get($h,null,ie.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const hb=new j("",{factory:()=>new ot}),Uh=new j("",{providedIn:"root",factory:()=>1}),fb=new j("");function q2(t){return kr(0,[{provide:fb,useExisting:j2},{provide:cb,useExisting:t}])}const gb=new j("ROUTER_FORROOT_GUARD"),Z2=[Yr,{provide:Gs,useClass:wh},ke,Ks,{provide:ur,useFactory:function db(t){return t.routerState.root},deps:[ke]},Vh,[]];function X2(){return new Hy("Router",ke)}let mb=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[Z2,[],{provide:Ai,multi:!0,useValue:e},{provide:gb,useFactory:eL,deps:[[ke,new Ya,new Za]]},{provide:bc,useValue:r||{}},r?.useHash?{provide:qr,useClass:_0}:{provide:qr,useClass:m0},{provide:$h,useFactory:()=>{const t=z(xN),n=z(Ke),e=z(bc),r=z(wc),o=z(Gs);return e.scrollOffset&&t.setOffset(e.scrollOffset),new ub(o,r,t,n,e)}},r?.preloadingStrategy?q2(r.preloadingStrategy).\u0275providers:[],{provide:Hy,multi:!0,useFactory:X2},r?.initialNavigation?tL(r):[],r?.bindToComponentInputs?kr(8,[jw,{provide:mc,useExisting:jw}]).\u0275providers:[],[{provide:_b,useFactory:pb},{provide:Np,multi:!0,useExisting:_b}]]}}static forChild(e){return{ngModule:t,providers:[{provide:Ai,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(V(gb,8))},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})();function eL(t){return"guarded"}function tL(t){return["disabled"===t.initialNavigation?kr(3,[{provide:xp,multi:!0,useFactory:()=>{const n=z(ke);return()=>{n.setUpLocationChangeListener()}}},{provide:Uh,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?kr(2,[{provide:Uh,useValue:0},{provide:xp,multi:!0,deps:[Nn],useFactory:n=>{const e=n.get(sA,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const o=n.get(ke),i=n.get(hb);lb(o,()=>{r(!0)}),n.get(wc).afterPreactivation=()=>(r(!0),i.closed?ue(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const _b=new j("");function rL(t,n){if(1&t){const e=q();d(0,"div")(1,"h2",1),f(2),p(),d(3,"p"),f(4),p(),d(5,"button",2),v("click",function(){return A(e),N(M().close())}),f(6,"X"),p()()}if(2&t){const e=M();xn("box"+(e.getClosing()?" slideOut":"")),_(1),He("color",e.getIsError()?"red":""),_(1),Xe(" ",e.getHeading()," "),_(2),se(e.getMessage())}}let De=(()=>{class t{static showNotification(e,r,o=5e3,i=!1){t.visible=!0,t.message=r,t.heading=e,t.isError=i,!(o<0)&&setTimeout(()=>{t.visible&&t.closeNotification()},o)}static closeNotification(){t.closing=!0,setTimeout(()=>{t.visible=!1,t.closing=!1,t.isError=!1,t.message="",t.heading=""},500)}getVisible(){return t.visible}getMessage(){return t.message}getHeading(){return t.heading}getClosing(){return t.closing}getIsError(){return t.isError}close(){t.closeNotification()}}return t.visible=!1,t.message="",t.heading="",t.closing=!1,t.isError=!1,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-notification"]],decls:1,vars:1,consts:[[3,"class",4,"ngIf"],[1,"heading"],[1,"closeButton",3,"click"]],template:function(e,r){1&e&&P(0,rL,7,6,"div",0),2&e&&C("ngIf",r.getVisible())},dependencies:[Se],styles:[".box[_ngcontent-%COMP%]{position:fixed;bottom:0;right:0;margin:30px;z-index:9999;border:1px solid var(--primary-color);background-color:var(--header-color);border-radius:10px;box-shadow:10px 10px 10px #00000080;width:300px;padding:10px;animation:_ngcontent-%COMP%_slideInFromRight .7s ease-in-out;color:var(--text-color)}.box[_ngcontent-%COMP%] .heading[_ngcontent-%COMP%]{margin-top:0;width:250px}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;width:25px;height:25px;border-radius:50%;background-color:var(--primary-color);color:var(--inverted-text-color);border:1px solid var(--primary-color);font-size:10px;display:flex;align-items:center;justify-content:center;cursor:pointer}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{scale:1.1}.slideOut[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_slideOutToButton .51s ease-in-out}@media screen and (max-width: 800px){.box[_ngcontent-%COMP%]{width:100%;left:0;margin:0;border-radius:0;border:none;box-shadow:none;animation:none;border-top:1px solid var(--primary-color)}.box[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(150%)}80%{transform:translate(-10%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideOutToButton{0%{transform:translateY(0)}20%{transform:translateY(-10%)}to{transform:translateY(150%)}}"]}),t})();class Mc{}class jh{}class dr{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const r=e.indexOf(":");if(r>0){const o=e.slice(0,r),i=o.toLowerCase(),s=e.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=e.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(e,i)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof dr?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(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new dr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof dr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,e);const o=("a"===n.op?this.headers.get(e):void 0)||[];o.push(...r),this.headers.set(e,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class oL{encodeKey(n){return vb(n)}encodeValue(n){return vb(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const sL=/%(\d[a-f0-9])/gi,aL={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vb(t){return encodeURIComponent(t).replace(sL,(n,e)=>aL[e]??n)}function Dc(t){return`${t}`}class Qr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new oL,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function iL(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const r=n.fromObject[e],o=Array.isArray(r)?r.map(Dc):[Dc(r)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{e.push({param:r,value:i,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Qr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}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 e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Dc(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Dc(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class lL{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),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 Cb(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function yb(t){return typeof Blob<"u"&&t instanceof Blob}function wb(t){return typeof FormData<"u"&&t instanceof FormData}class ra{constructor(n,e,r,o){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function cL(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new dr),this.context||(this.context=new lL),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ah.set(g,n.setHeaders[g]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((h,g)=>h.set(g,n.setParams[g]),c)),new ra(e,r,i,{params:c,headers:l,context:u,reportProgress:a,responseType:o,withCredentials:s})}}var Ct=(()=>((Ct=Ct||{})[Ct.Sent=0]="Sent",Ct[Ct.UploadProgress=1]="UploadProgress",Ct[Ct.ResponseHeader=2]="ResponseHeader",Ct[Ct.DownloadProgress=3]="DownloadProgress",Ct[Ct.Response=4]="Response",Ct[Ct.User=5]="User",Ct))();class zh{constructor(n,e=200,r="OK"){this.headers=n.headers||new dr,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Gh extends zh{constructor(n={}){super(n),this.type=Ct.ResponseHeader}clone(n={}){return new Gh({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 Ni extends zh{constructor(n={}){super(n),this.type=Ct.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Ni({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 bb extends zh{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 Wh(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let xc=(()=>{class t{constructor(e){this.handler=e}request(e,r,o={}){let i;if(e instanceof ra)i=e;else{let l,c;l=o.headers instanceof dr?o.headers:new dr(o.headers),o.params&&(c=o.params instanceof Qr?o.params:new Qr({fromObject:o.params})),i=new ra(e,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=ue(i).pipe(Ei(l=>this.handler.handle(l)));if(e instanceof ra||"events"===o.observe)return s;const a=s.pipe(Ir(l=>l instanceof Ni));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ye(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(ye(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(ye(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ye(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:(new Qr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Wh(o,r))}post(e,r,o={}){return this.request("POST",e,Wh(o,r))}put(e,r,o={}){return this.request("PUT",e,Wh(o,r))}}return t.\u0275fac=function(e){return new(e||t)(V(Mc))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function Mb(t,n){return n(t)}function dL(t,n){return(e,r)=>n.intercept(e,{handle:o=>t(o,r)})}const hL=new j(""),oa=new j(""),Db=new j("");function fL(){let t=null;return(n,e)=>(null===t&&(t=(z(hL,{optional:!0})??[]).reduceRight(dL,Mb)),t(n,e))}let xb=(()=>{class t extends Mc{constructor(e,r){super(),this.backend=e,this.injector=r,this.chain=null}handle(e){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(oa),...this.injector.get(Db,[])]));this.chain=r.reduceRight((o,i)=>function pL(t,n,e){return(r,o)=>e.runInContext(()=>n(r,i=>t(i,o)))}(o,i,this.injector),Mb)}return this.chain(e,r=>this.backend.handle(r))}}return t.\u0275fac=function(e){return new(e||t)(V(jh),V(nr))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const vL=/^\)\]\}',?\n/;let Sb=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?bt(r.\u0275loadImpl()):ue(null)).pipe(Un(()=>new Ee(i=>{const s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((b,k)=>s.setRequestHeader(b,k.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const b=e.detectContentTypeHeader();null!==b&&s.setRequestHeader("Content-Type",b)}if(e.responseType){const b=e.responseType.toLowerCase();s.responseType="json"!==b?b:"text"}const a=e.serializeBody();let l=null;const c=()=>{if(null!==l)return l;const b=s.statusText||"OK",k=new dr(s.getAllResponseHeaders()),Y=function CL(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(s)||e.url;return l=new Gh({headers:k,status:s.status,statusText:b,url:Y}),l},u=()=>{let{headers:b,status:k,statusText:Y,url:oe}=c(),be=null;204!==k&&(be=typeof s.response>"u"?s.responseText:s.response),0===k&&(k=be?200:0);let On=k>=200&&k<300;if("json"===e.responseType&&"string"==typeof be){const Gc=be;be=be.replace(vL,"");try{be=""!==be?JSON.parse(be):null}catch(mH){be=Gc,On&&(On=!1,be={error:mH,text:be})}}On?(i.next(new Ni({body:be,headers:b,status:k,statusText:Y,url:oe||void 0})),i.complete()):i.error(new bb({error:be,headers:b,status:k,statusText:Y,url:oe||void 0}))},h=b=>{const{url:k}=c(),Y=new bb({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:k||void 0});i.error(Y)};let g=!1;const m=b=>{g||(i.next(c()),g=!0);let k={type:Ct.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),"text"===e.responseType&&s.responseText&&(k.partialText=s.responseText),i.next(k)},y=b=>{let k={type:Ct.UploadProgress,loaded:b.loaded};b.lengthComputable&&(k.total=b.total),i.next(k)};let D;s.addEventListener("load",u),s.addEventListener("error",h),s.addEventListener("timeout",h),s.addEventListener("abort",h),e.reportProgress&&(s.addEventListener("progress",m),null!==a&&s.upload&&s.upload.addEventListener("progress",y));const x=()=>{D??=function wL(){const t=setTimeout(()=>{},yL);return()=>clearTimeout(t)}()},E=()=>{D?.()};return s.addEventListener("loadstart",x),s.addEventListener("loadend",E),s.send(a),i.next({type:Ct.Sent}),()=>{s.removeEventListener("loadstart",x),s.removeEventListener("loadend",E),s.removeEventListener("error",h),s.removeEventListener("abort",h),s.removeEventListener("load",u),s.removeEventListener("timeout",h),D?.(),e.reportProgress&&(s.removeEventListener("progress",m),null!==a&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}}return t.\u0275fac=function(e){return new(e||t)(V(V0))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();const yL=2147483647,qh=new j("XSRF_ENABLED"),Pb=new j("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Ob=new j("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Ib{}let DL=(()=>{class t{constructor(e,r,o){this.doc=e,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=S0(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(V(Zt),V(jr),V(Pb))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})();function xL(t,n){const e=t.url.toLowerCase();if(!z(qh)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const r=z(Ib).getToken(),o=z(Ob);return null!=r&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,r)})),n(t)}var dt=(()=>((dt=dt||{})[dt.Interceptors=0]="Interceptors",dt[dt.LegacyInterceptors=1]="LegacyInterceptors",dt[dt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",dt[dt.NoXsrfProtection=3]="NoXsrfProtection",dt[dt.JsonpSupport=4]="JsonpSupport",dt[dt.RequestsMadeViaParent=5]="RequestsMadeViaParent",dt))();function Ri(t,n){return{\u0275kind:t,\u0275providers:n}}function EL(...t){const n=[xc,Sb,xb,{provide:Mc,useExisting:xb},{provide:jh,useExisting:Sb},{provide:oa,useValue:xL,multi:!0},{provide:qh,useValue:!0},{provide:Ib,useClass:DL}];for(const e of t)n.push(...e.\u0275providers);return function od(t){return{\u0275providers:t}}(n)}const Tb=new j("LEGACY_INTERCEPTOR_FN");let PL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({providers:[EL(Ri(dt.LegacyInterceptors,[{provide:Tb,useFactory:fL},{provide:oa,useExisting:Tb,multi:!0}]))]}),t})(),Ae=(()=>{class t{constructor(e,r){this.http=e,this.localStorageService=r,t.host=r.getServerHost(),t.port=r.getServerPort()}isServerOnline(){return this.http.get("http://"+t.host+":"+t.port+"/woop/ping").pipe(qe(e=>{throw new Error("error")}))}getVersion(){return this.http.get("http://"+t.host+":"+t.port+"/woop/version")}checkUser(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/user/check?username="+e+"&password="+r).pipe(qe(o=>{throw 404===o.status?new Error("Username or password is wrong"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllChapters(){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/all")}verifyChapter(e,r){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/verify?title="+e+"&password="+r).pipe(qe(o=>{throw 404===o.status?new Error("Could not find chapter"):0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getChapterPassword(e,r,o){return this.http.get("http://"+t.host+":"+t.port+"/woop/chapter/get/password?title="+e+"&username="+r+"&password="+o).pipe(qe(i=>{throw 404===i.status?new Error("Could not find chapter"):401===i.status?new Error("Unauthorized"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}addNewChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/new",e).pipe(qe(r=>{throw 409===r.status?new Error("Chapter already exists"):500===r.status?new Error("Chapter could not be saved"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}updateChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/update",e).pipe(qe(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be updated"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}importChapter(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/import?username="+e+"&password="+r,o).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):500===i.status?new Error("Chapter could not be imported"):0===i.status?new Error("Server is offline"):new Error("unknown error: "+i.status)}))}deleteChapter(e){return this.http.post("http://"+t.host+":"+t.port+"/woop/chapter/delete",e).pipe(qe(r=>{throw 404===r.status?new Error("Chapter not found"):500===r.status?new Error("Chapter could not be deleted"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}uploadImage(e,r){return e=e.replace(/ /g,"_"),this.http.post("http://"+t.host+":"+t.port+"/woop/image/upload",{Name:e,Content:r}).pipe(qe(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}uploadFile(e,r){return e=e.replace(/ /g,"_"),this.http.post("http://"+t.host+":"+t.port+"/woop/file/upload",{Name:e,Content:r}).pipe(qe(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getFile(e){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/get/"+e).pipe(qe(r=>{throw 404===r.status?new Error("File not found"):0===r.status?new Error("Server is offline"):new Error("unknown error: "+r.status)}))}translateText(e,r){return this.http.post("http://"+t.host+":"+t.port+"/woop/translate/text",{text:e,to:r}).pipe(qe(o=>{throw 0===o.status?new Error("Server is offline"):new Error("unknown error: "+o.status)}))}getAllImageNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/image/name/get/all").pipe(qe(e=>{throw 500===e.status?new Error("Could not get image names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}getAllFileNames(){return this.http.get("http://"+t.host+":"+t.port+"/woop/file/name/get/all").pipe(qe(e=>{throw 500===e.status?new Error("Could not get file names"):0===e.status?new Error("Server is offline"):new Error("unknown error: "+e.status)}))}addUser(e,r,o,i){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/add",{userName:e,password:r,newUserName:o,newPassword:i}).pipe(qe(s=>{throw 401===s.status?new Error("Unauthorized"):409===s.status?new Error("User already exists"):0===s.status?new Error("Server is offline"):(console.log(s.message),new Error("unknown error: "+s.status))}))}deleteUser(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/delete",{userName:e,password:r,userNameToDelete:o}).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}makeUserAdmin(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/make/admin",{userName:e,password:r,userNameToMakeAdmin:o}).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}changePassword(e,r,o){return this.http.post("http://"+t.host+":"+t.port+"/woop/user/change/password",{userName:e,password:r,newPassword:o}).pipe(qe(i=>{throw 401===i.status?new Error("Unauthorized"):404===i.status?new Error("User not found"):0===i.status?new Error("Server is offline"):(console.log(i.message),new Error("unknown error: "+i.status))}))}deployAll(e,r,o=!1,i=!0,s=!1){return this.http.post("http://"+t.host+":"+t.port+"/woop/deploy/all",{username:e,password:r,ignoreWaitingTime:o,pushToGit:i,pushAll:s}).pipe(qe(a=>{throw 401===a.status?new Error("Unauthorized"):500===a.status?new Error("Something went wrong (500)"):0===a.status?new Error("Server is offline"):(console.log(a.message),new Error("unknown error: "+a.status))}))}}return t.host="localhost",t.port=52773,t.\u0275fac=function(e){return new(e||t)(V(xc),V(at))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class Yh{constructor(n,e,r,o="",i="en",s="",a=!1){this.Title=n,this.Pages=r,this.Password=o,this.Language=i,this.Author=e,this.Description=s,this.IsPrivate=a,this.setUndefinedValues()}setUndefinedValues(){void 0===this.Password&&(this.Password=""),void 0===this.Language&&(this.Language=""),void 0===this.Author&&(this.Author=""),void 0===this.Password&&(this.Password=""),void 0===this.Description&&(this.Description="")}getPageForHeading(n,e=!0){e&&(n=n.toLowerCase().replace(/\s/g,"-"));for(let r=0;r=this.Pages.length?this.Pages.push(n):this.Pages=this.Pages.splice(e,0,n)}}class Zh{constructor(n,e="",r=""){this.Content=n,this.Hint=e,this.Result=r}}var pr=(()=>((pr=pr||{})[pr.NONE=0]="NONE",pr[pr.USER=1]="USER",pr[pr.ADMIN=2]="ADMIN",pr))();class K{}K.userLevel=pr.NONE,K.userName="",K.password="";let sa=(()=>{class t{static isChapterVerified(e){for(let r of this.verifyCache)if(r.name==e)return!0;return!1}static verifyChapter(e,r,o=!0){for(let i of this.verifyCache)if(i.name==e)return void(i.pwd=r);this.verifyCache.push({name:e,pwd:r}),""!=r&&o&&at.setLS("verifyCache",JSON.stringify(this.verifyCache))}static setCache(e){this.verifyCache=e}}return t.verifyCache=[],t})(),at=(()=>{class t{constructor(e){if(this.router=e,this.rememberPage=!0,t.cookiesAccepted=this.getCookiesAccepted(),t.cookiesAccepted||kb.show(),this.rememberPage=this.getRememberPage(),this.getStayLoggedIn()){const o=this.getUserName(),i=this.getPassword();null!=o&&null!=i&&(this.router.navigate(["/login"]),this.setStayLoggedIn(!0))}let r=localStorage.getItem("verifyCache");r=null==r?[]:JSON.parse(r);for(let o of r)sa.verifyChapter(o.name,o.pwd,!1)}getCookiesAccepted(){let e=localStorage.getItem("WOOPCookiesAccepted");return null!=e&&"true"==e}getLanguageTo(){return localStorage.getItem("languageTo")??"en"}setLanguageTo(e){t.setLS("languageTo",e)}getRememberPage(){let e=localStorage.getItem("rememberPage");return null==e||"true"==e}setRememberPage(e){t.setLS("rememberPage",e?"true":"false"),this.rememberPage=e}setColorScheme(e){t.setLS("colorScheme",e?"dark":"light")}getColorScheme(){return localStorage.getItem("colorScheme")}setFontSize(e){t.setLS("fontSize",e.toString())}getFontSize(){let e=localStorage.getItem("fontSize");return null==e?16:parseInt(e)}setPageForChapter(e,r){t.setLS(e,r.toString())}getPageForChapter(e){if(!this.rememberPage)return 0;let r=localStorage.getItem(e);return null==r?0:parseInt(r)}getServerHost(){return localStorage.getItem("serverHost")??"localhost"}setServerHost(e){t.setLS("serverHost",e),Ae.host=e}getServerPort(){let e=localStorage.getItem("serverPort");return null==e?52773:parseInt(e)}setServerPort(e){t.setLS("serverPort",e.toString()),Ae.port=e}getUserName(){return localStorage.getItem("userName")}setUserName(e){t.setLS("userName",e)}setStayLoggedIn(e){t.setLS("stayLoggedIn",e?"true":"false")}getStayLoggedIn(){let e=localStorage.getItem("stayLoggedIn");return null!=e&&"true"==e}removeUserName(){localStorage.removeItem("userName")}getPassword(){return localStorage.getItem("password")}setPassword(e){t.setLS("password",e)}removePassword(){localStorage.removeItem("password")}getAllServerConnections(){let e=localStorage.getItem("serverConnections");return null==e?[]:JSON.parse(e)}getConnection(e){let r=this.getAllServerConnections();for(let o=0;o{class t{acceptCookies(){at.acceptCookies(),t.visible=!1}rejectCookies(){at.rejectCookies(),t.visible=!1}isVisible(){return t.visible}static show(){t.visible=!0}}return t.visible=!1,t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-cookie-message"]],decls:1,vars:1,consts:[["class","message",4,"ngIf"],[1,"message"],["href","https://www.cookiesandyou.com/","target","_blank"],[1,"btnBox"],[3,"click"]],template:function(e,r){1&e&&P(0,NL,10,0,"div",0),2&e&&C("ngIf",r.isVisible())},dependencies:[Se],styles:[".message[_ngcontent-%COMP%]{position:fixed;width:100%;bottom:0;left:0;height:300px;z-index:100;background-color:var(--header-color);color:var(--text-color);display:flex;align-items:center;justify-content:center;flex-direction:column}.message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;padding:0;font-size:25px;text-align:center;width:90%}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex-direction:row;margin-top:20px}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px;border:none;background-color:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;padding:10px;font-size:20px;width:100px;cursor:pointer;transition:.3s}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:20px}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:17px}.message[_ngcontent-%COMP%] .btnBox[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);transform:scale(1)}}"]}),t})(),RL=(()=>{class t{constructor(){this.title="InterSystemsWOOP"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-root"]],decls:3,vars:0,template:function(e,r){1&e&&X(0,"router-outlet")(1,"app-notification")(2,"app-cookie-message")},dependencies:[Ah,De,kb],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:70px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}"]}),t})();class FL extends U{constructor(n,e){super()}schedule(n,e=0){return this}}const Ec={setInterval(t,n,...e){const{delegate:r}=Ec;return r?.setInterval?r.setInterval(t,n,...e):setInterval(t,n,...e)},clearInterval(t){const{delegate:n}=Ec;return(n?.clearInterval||clearInterval)(t)},delegate:void 0},Xh={now:()=>(Xh.delegate||Date).now(),delegate:void 0};class aa{constructor(n,e=aa.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}}aa.now=Xh.now;const VL=new class BL extends aa{constructor(n,e=aa.now){super(n,e),this.actions=[],this._active=!1}flush(n){const{actions:e}=this;if(this._active)return void e.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}}(class LL extends FL{constructor(n,e){super(n,e),this.scheduler=n,this.work=e,this.pending=!1}schedule(n,e=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,e)),this.pending=!0,this.delay=e,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,e),this}requestAsyncId(n,e,r=0){return Ec.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,e,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&Ec.clearInterval(e)}execute(n,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,e){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:e}=this,{actions:r}=e;this.work=this.state=this.scheduler=null,this.pending=!1,ht(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,super.unsubscribe()}}});function jL(t,n){return t===n}class zL extends ot{constructor(n=1/0,e=1/0,r=Xh){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){const{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;e||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();const e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s"']/,KL=new RegExp(Nb.source,"g"),Rb=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,QL=new RegExp(Rb.source,"g"),JL={"&":"&","<":"<",">":">",'"':""","'":"'"},Fb=t=>JL[t];function Ut(t,n){if(n){if(Nb.test(t))return t.replace(KL,Fb)}else if(Rb.test(t))return t.replace(QL,Fb);return t}const eB=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Lb(t){return t.replace(eB,(n,e)=>"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):"")}const tB=/(^|[^\[])\^/g;function je(t,n){t="string"==typeof t?t:t.source,n=n||"";const e={replace:(r,o)=>(o=(o=o.source||o).replace(tB,"$1"),t=t.replace(r,o),e),getRegex:()=>new RegExp(t,n)};return e}const nB=/[^\w:]/g,rB=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Bb(t,n,e){if(t){let r;try{r=decodeURIComponent(Lb(e)).replace(nB,"").toLowerCase()}catch{return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}n&&!rB.test(e)&&(e=function aB(t,n){Sc[" "+t]||(Sc[" "+t]=oB.test(t)?t+"/":Oc(t,"/",!0));const e=-1===(t=Sc[" "+t]).indexOf(":");return"//"===n.substring(0,2)?e?n:t.replace(iB,"$1")+n:"/"===n.charAt(0)?e?n:t.replace(sB,"$1")+n:t+n}(n,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const Sc={},oB=/^[^:]+:\/*[^/]*$/,iB=/^([^:]+:)[\s\S]*$/,sB=/^([^:]+:\/*[^/]*)[\s\S]*$/,Pc={exec:function(){}};function Vb(t,n){const r=t.replace(/\|/g,(i,s,a)=>{let l=!1,c=s;for(;--c>=0&&"\\"===a[c];)l=!l;return l?"|":" |"}).split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>n)r.splice(n);else for(;r.length1;)1&n&&(e+=t),n>>=1,t+=t;return e+t}function $b(t,n,e,r){const o=n.href,i=n.title?Ut(n.title):null,s=t[1].replace(/\\([\[\]])/g,"$1");if("!"!==t[0].charAt(0)){r.state.inLink=!0;const a={type:"link",raw:e,href:o,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,a}return{type:"image",raw:e,href:o,title:i,text:Ut(s)}}class Kh{constructor(n){this.options=n||Eo}space(n){const e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){const e=this.rules.block.code.exec(n);if(e){const r=e[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Oc(r,"\n")}}}fences(n){const e=this.rules.block.fences.exec(n);if(e){const r=e[0],o=function uB(t,n){const e=t.match(/^(\s+)(?:```)/);if(null===e)return n;const r=e[1];return n.split("\n").map(o=>{const i=o.match(/^\s+/);if(null===i)return o;const[s]=i;return s.length>=r.length?o.slice(r.length):o}).join("\n")}(r,e[3]||"");return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline._escapes,"$1"):e[2],text:o}}}heading(n){const e=this.rules.block.heading.exec(n);if(e){let r=e[2].trim();if(/#$/.test(r)){const o=Oc(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(n){const e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:e[0]}}blockquote(n){const e=this.rules.block.blockquote.exec(n);if(e){const r=e[0].replace(/^ *>[ \t]?/gm,""),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:e[0],tokens:i,text:r}}}list(n){let e=this.rules.block.list.exec(n);if(e){let r,o,i,s,a,l,c,u,h,g,m,y,D=e[1].trim();const x=D.length>1,E={type:"list",raw:"",ordered:x,start:x?+D.slice(0,-1):"",loose:!1,items:[]};D=x?`\\d{1,9}\\${D.slice(-1)}`:`\\${D}`,this.options.pedantic&&(D=x?D:"[*+-]");const b=new RegExp(`^( {0,3}${D})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;n&&(y=!1,(e=b.exec(n))&&!this.rules.block.hr.test(n));){if(r=e[0],n=n.substring(r.length),u=e[2].split("\n",1)[0].replace(/^\t+/,Y=>" ".repeat(3*Y.length)),h=n.split("\n",1)[0],this.options.pedantic?(s=2,m=u.trimLeft()):(s=e[2].search(/[^ ]/),s=s>4?1:s,m=u.slice(s),s+=e[1].length),l=!1,!u&&/^ *$/.test(h)&&(r+=h+"\n",n=n.substring(h.length+1),y=!0),!y){const Y=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),oe=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),be=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),On=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;n&&(g=n.split("\n",1)[0],h=g,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(be.test(h)||On.test(h)||Y.test(h)||oe.test(n)));){if(h.search(/[^ ]/)>=s||!h.trim())m+="\n"+h.slice(s);else{if(l||u.search(/[^ ]/)>=4||be.test(u)||On.test(u)||oe.test(u))break;m+="\n"+h}!l&&!h.trim()&&(l=!0),r+=g+"\n",n=n.substring(g.length+1),u=h.slice(s)}}E.loose||(c?E.loose=!0:/\n *\n *$/.test(r)&&(c=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(m),o&&(i="[ ] "!==o[0],m=m.replace(/^\[[ xX]\] +/,""))),E.items.push({type:"list_item",raw:r,task:!!o,checked:i,loose:!1,text:m}),E.raw+=r}E.items[E.items.length-1].raw=r.trimRight(),E.items[E.items.length-1].text=m.trimRight(),E.raw=E.raw.trimRight();const k=E.items.length;for(a=0;a"space"===be.type),oe=Y.length>0&&Y.some(be=>/\n.*\n/.test(be.raw));E.loose=oe}if(E.loose)for(a=0;a$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline._escapes,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:o,title:i}}}table(n){const e=this.rules.block.table.exec(n);if(e){const r={type:"table",header:Vb(e[1]).map(o=>({text:o})),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:e[3]&&e[3].trim()?e[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(r.header.length===r.align.length){r.raw=e[0];let i,s,a,l,o=r.align.length;for(i=0;i({text:c}));for(o=r.header.length,s=0;s/i.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):Ut(e[0]):e[0]}}link(n){const e=this.rules.inline.link.exec(n);if(e){const r=e[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const s=Oc(r.slice(0,-1),"\\");if((r.length-s.length)%2==0)return}else{const s=function lB(t,n){if(-1===t.indexOf(n[1]))return-1;const e=t.length;let r=0,o=0;for(;o-1){const l=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let o=e[2],i="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);s&&(o=s[1],i=s[3])}else i=e[3]?e[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o.slice(1):o.slice(1,-1)),$b(e,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},e[0],this.lexer)}}reflink(n,e){let r;if((r=this.rules.inline.reflink.exec(n))||(r=this.rules.inline.nolink.exec(n))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=e[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return $b(r,o,r[0],this.lexer)}}emStrong(n,e,r=""){let o=this.rules.inline.emStrong.lDelim.exec(n);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;const i=o[1]||o[2]||"";if(!i||i&&(""===r||this.rules.inline.punctuation.exec(r))){const s=o[0].length-1;let a,l,c=s,u=0;const h="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,e=e.slice(-1*n.length+s);null!=(o=h.exec(e));){if(a=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!a)continue;if(l=a.length,o[3]||o[4]){c+=l;continue}if((o[5]||o[6])&&s%3&&!((s+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const g=n.slice(0,s+o.index+(o[0].length-a.length)+l);if(Math.min(s,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(n){const e=this.rules.inline.code.exec(n);if(e){let r=e[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Ut(r,!0),{type:"codespan",raw:e[0],text:r}}}br(n){const e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n){const e=this.rules.inline.del.exec(n);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(n,e){const r=this.rules.inline.autolink.exec(n);if(r){let o,i;return"@"===r[2]?(o=Ut(this.options.mangle?e(r[1]):r[1]),i="mailto:"+o):(o=Ut(r[1]),i=o),{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}url(n,e){let r;if(r=this.rules.inline.url.exec(n)){let o,i;if("@"===r[2])o=Ut(this.options.mangle?e(r[0]):r[0]),i="mailto:"+o;else{let s;do{s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0]}while(s!==r[0]);o=Ut(r[0]),i="www."===r[1]?"http://"+r[0]:r[0]}return{type:"link",raw:r[0],text:o,href:i,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(n,e){const r=this.rules.inline.text.exec(n);if(r){let o;return o=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ut(r[0]):r[0]:Ut(this.options.smartypants?e(r[0]):r[0]),{type:"text",raw:r[0],text:o}}}}const te={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Pc,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};te.def=je(te.def).replace("label",te._label).replace("title",te._title).getRegex(),te.bullet=/(?:[*+-]|\d{1,9}[.)])/,te.listItemStart=je(/^( *)(bull) */).replace("bull",te.bullet).getRegex(),te.list=je(te.list).replace(/bull/g,te.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+te.def.source+")").getRegex(),te._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",te._comment=/|$)/,te.html=je(te.html,"i").replace("comment",te._comment).replace("tag",te._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),te.paragraph=je(te._paragraph).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",te._tag).getRegex(),te.blockquote=je(te.blockquote).replace("paragraph",te.paragraph).getRegex(),te.normal={...te},te.gfm={...te.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},te.gfm.table=je(te.gfm.table).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",te._tag).getRegex(),te.gfm.paragraph=je(te._paragraph).replace("hr",te.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",te.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",te._tag).getRegex(),te.pedantic={...te.normal,html:je("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",te._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Pc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:je(te.normal._paragraph).replace("hr",te.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",te.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const W={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Pc,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Pc,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(r="x"+r.toString(16)),n+="&#"+r+";";return n}W._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",W.punctuation=je(W.punctuation).replace(/punctuation/g,W._punctuation).getRegex(),W.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,W.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,W._comment=je(te._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),W.emStrong.lDelim=je(W.emStrong.lDelim).replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimAst=je(W.emStrong.rDelimAst,"g").replace(/punct/g,W._punctuation).getRegex(),W.emStrong.rDelimUnd=je(W.emStrong.rDelimUnd,"g").replace(/punct/g,W._punctuation).getRegex(),W._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,W._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,W._email=/[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])?)+(?![-_])/,W.autolink=je(W.autolink).replace("scheme",W._scheme).replace("email",W._email).getRegex(),W._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,W.tag=je(W.tag).replace("comment",W._comment).replace("attribute",W._attribute).getRegex(),W._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,W._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,W._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,W.link=je(W.link).replace("label",W._label).replace("href",W._href).replace("title",W._title).getRegex(),W.reflink=je(W.reflink).replace("label",W._label).replace("ref",te._label).getRegex(),W.nolink=je(W.nolink).replace("ref",te._label).getRegex(),W.reflinkSearch=je(W.reflinkSearch,"g").replace("reflink",W.reflink).replace("nolink",W.nolink).getRegex(),W.normal={...W},W.pedantic={...W.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:je(/^!?\[(label)\]\((.*?)\)/).replace("label",W._label).getRegex(),reflink:je(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",W._label).getRegex()},W.gfm={...W.normal,escape:je(W.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(c.length));n;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>!!(r=a.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.space(n)){n=n.substring(r.raw.length),1===r.raw.length&&e.length>0?e[e.length-1].raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?e.push(r):(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.fences(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(n)){n=n.substring(r.raw.length),o=e[e.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title}):(o.raw+="\n"+r.raw,o.text+="\n"+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);continue}if(r=this.tokenizer.table(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(n)){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const l=n.slice(1);let c;this.options.extensions.startBlock.forEach(function(u){c=u.call({lexer:this},l),"number"==typeof c&&c>=0&&(a=Math.min(a,c))}),a<1/0&&a>=0&&(i=n.substring(0,a+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){o=e[e.length-1],s&&"paragraph"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r),s=i.length!==n.length,n=n.substring(r.raw.length);continue}if(r=this.tokenizer.text(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===o.type?(o.raw+="\n"+r.raw,o.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):e.push(r);continue}if(n){const a="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}}return this.state.top=!0,e}inline(n,e=[]){return this.inlineQueue.push({src:n,tokens:e}),e}inlineTokens(n,e=[]){let r,o,i,a,l,c,s=n;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)u.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+Hb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+Hb("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index+a[0].length-2)+"++"+s.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;n;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>!!(r=u.call({lexer:this},n,e))&&(n=n.substring(r.raw.length),e.push(r),!0)))){if(r=this.tokenizer.escape(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.tag(n)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.link(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.reflink(n,this.tokens.links)){n=n.substring(r.raw.length),o=e[e.length-1],o&&"text"===r.type&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(r=this.tokenizer.emStrong(n,s,c)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.codespan(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.br(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.del(n)){n=n.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.autolink(n,Ub)){n=n.substring(r.raw.length),e.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(n,Ub))){n=n.substring(r.raw.length),e.push(r);continue}if(i=n,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const h=n.slice(1);let g;this.options.extensions.startInline.forEach(function(m){g=m.call({lexer:this},h),"number"==typeof g&&g>=0&&(u=Math.min(u,g))}),u<1/0&&u>=0&&(i=n.substring(0,u+1))}if(r=this.tokenizer.inlineText(i,dB)){n=n.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(c=r.raw.slice(-1)),l=!0,o=e[e.length-1],o&&"text"===o.type?(o.raw+=r.raw,o.text+=r.text):e.push(r);continue}if(n){const u="Infinite loop on byte: "+n.charCodeAt(0);if(this.options.silent){console.error(u);break}throw new Error(u)}}return e}}class ca{constructor(n){this.options=n||Eo}code(n,e,r){const o=(e||"").match(/\S*/)[0];if(this.options.highlight){const i=this.options.highlight(n,o);null!=i&&i!==n&&(r=!0,n=i)}return n=n.replace(/\n$/,"")+"\n",o?'
    '+(r?n:Ut(n,!0))+"
    \n":"
    "+(r?n:Ut(n,!0))+"
    \n"}blockquote(n){return`
    \n${n}
    \n`}html(n){return n}heading(n,e,r,o){return this.options.headerIds?`${n}\n`:`${n}\n`}hr(){return this.options.xhtml?"
    \n":"
    \n"}list(n,e,r){const o=e?"ol":"ul";return"<"+o+(e&&1!==r?' start="'+r+'"':"")+">\n"+n+"\n"}listitem(n){return`
  • ${n}
  • \n`}checkbox(n){return" "}paragraph(n){return`

    ${n}

    \n`}table(n,e){return e&&(e=`${e}`),"\n\n"+n+"\n"+e+"
    \n"}tablerow(n){return`\n${n}\n`}tablecell(n,e){const r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`\n`}strong(n){return`${n}`}em(n){return`${n}`}codespan(n){return`${n}`}br(){return this.options.xhtml?"
    ":"
    "}del(n){return`${n}`}link(n,e,r){if(null===(n=Bb(this.options.sanitize,this.options.baseUrl,n)))return r;let o='
    ",o}image(n,e,r){if(null===(n=Bb(this.options.sanitize,this.options.baseUrl,n)))return r;let o=`${r}":">",o}text(n){return n}}class jb{strong(n){return n}em(n){return n}codespan(n){return n}del(n){return n}html(n){return n}text(n){return n}link(n,e,r){return""+r}image(n,e,r){return""+r}br(){return""}}class zb{constructor(){this.seen={}}serialize(n){return n.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(n,e){let r=n,o=0;if(this.seen.hasOwnProperty(r)){o=this.seen[n];do{o++,r=n+"-"+o}while(this.seen.hasOwnProperty(r))}return e||(this.seen[n]=o,this.seen[r]=0),r}slug(n,e={}){const r=this.serialize(n);return this.getNextSafeSlug(r,e.dryrun)}}class eo{constructor(n){this.options=n||Eo,this.options.renderer=this.options.renderer||new ca,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new jb,this.slugger=new zb}static parse(n,e){return new eo(e).parse(n)}static parseInline(n,e){return new eo(e).parseInline(n)}parse(n,e=!0){let o,i,s,a,l,c,u,h,g,m,y,D,x,E,b,k,Y,oe,be,r="";const On=n.length;for(o=0;o0&&"paragraph"===b.tokens[0].type?(b.tokens[0].text=oe+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&"text"===b.tokens[0].tokens[0].type&&(b.tokens[0].tokens[0].text=oe+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:oe}):E+=oe),E+=this.parse(b.tokens,x),g+=this.renderer.listitem(E,Y,k);r+=this.renderer.list(g,y,D);continue;case"html":r+=this.renderer.html(m.text);continue;case"paragraph":r+=this.renderer.paragraph(this.parseInline(m.tokens));continue;case"text":for(g=m.tokens?this.parseInline(m.tokens):m.text;o+1{"function"==typeof r&&(o=r,r=null);const i={...r},s=function pB(t,n,e){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t){const o="

    An error occurred:

    "+Ut(r.message+"",!0)+"
    ";return n?Promise.resolve(o):e?void e(null,o):o}if(n)return Promise.reject(r);if(!e)throw r;e(r)}}((r={...ne.defaults,...i}).silent,r.async,o);if(typeof e>"u"||null===e)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(function cB(t){t&&t.sanitize&&!t.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),o){const a=r.highlight;let l;try{r.hooks&&(e=r.hooks.preprocess(e)),l=t(e,r)}catch(h){return s(h)}const c=function(h){let g;if(!h)try{r.walkTokens&&ne.walkTokens(l,r.walkTokens),g=n(l,r),r.hooks&&(g=r.hooks.postprocess(g))}catch(m){h=m}return r.highlight=a,h?s(h):o(null,g)};if(!a||a.length<3||(delete r.highlight,!l.length))return c();let u=0;return ne.walkTokens(l,function(h){"code"===h.type&&(u++,setTimeout(()=>{a(h.text,h.lang,function(g,m){if(g)return c(g);null!=m&&m!==h.text&&(h.text=m,h.escaped=!0),u--,0===u&&c()})},0))}),void(0===u&&c())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(e):e).then(a=>t(a,r)).then(a=>r.walkTokens?Promise.all(ne.walkTokens(a,r.walkTokens)).then(()=>a):a).then(a=>n(a,r)).then(a=>r.hooks?r.hooks.postprocess(a):a).catch(s);try{r.hooks&&(e=r.hooks.preprocess(e));const a=t(e,r);r.walkTokens&&ne.walkTokens(a,r.walkTokens);let l=n(a,r);return r.hooks&&(l=r.hooks.postprocess(l)),l}catch(a){return s(a)}}}function ne(t,n,e){return Gb(Jr.lex,eo.parse)(t,n,e)}!function ZL(t,n,e){(n=function YL(t){var n=function qL(t,n){if("object"!==la(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,n||"default");if("object"!==la(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===la(n)?n:String(n)}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e}(Ic,"passThroughHooks",new Set(["preprocess","postprocess"])),ne.options=ne.setOptions=function(t){return function XL(t){Eo=t}(ne.defaults={...ne.defaults,...t}),ne},ne.getDefaults=function Ab(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},ne.defaults=Eo,ne.use=function(...t){const n=ne.defaults.extensions||{renderers:{},childTokens:{}};t.forEach(e=>{const r={...e};if(r.async=ne.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if(o.renderer){const i=n.renderers[o.name];n.renderers[o.name]=i?function(...s){let a=o.renderer.apply(this,s);return!1===a&&(a=i.apply(this,s)),a}:o.renderer}if(o.tokenizer){if(!o.level||"block"!==o.level&&"inline"!==o.level)throw new Error("extension level must be 'block' or 'inline'");n[o.level]?n[o.level].unshift(o.tokenizer):n[o.level]=[o.tokenizer],o.start&&("block"===o.level?n.startBlock?n.startBlock.push(o.start):n.startBlock=[o.start]:"inline"===o.level&&(n.startInline?n.startInline.push(o.start):n.startInline=[o.start]))}o.childTokens&&(n.childTokens[o.name]=o.childTokens)}),r.extensions=n),e.renderer){const o=ne.defaults.renderer||new ca;for(const i in e.renderer){const s=o[i];o[i]=(...a)=>{let l=e.renderer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.renderer=o}if(e.tokenizer){const o=ne.defaults.tokenizer||new Kh;for(const i in e.tokenizer){const s=o[i];o[i]=(...a)=>{let l=e.tokenizer[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.tokenizer=o}if(e.hooks){const o=ne.defaults.hooks||new Ic;for(const i in e.hooks){const s=o[i];o[i]=Ic.passThroughHooks.has(i)?a=>{if(ne.defaults.async)return Promise.resolve(e.hooks[i].call(o,a)).then(c=>s.call(o,c));const l=e.hooks[i].call(o,a);return s.call(o,l)}:(...a)=>{let l=e.hooks[i].apply(o,a);return!1===l&&(l=s.apply(o,a)),l}}r.hooks=o}if(e.walkTokens){const o=ne.defaults.walkTokens;r.walkTokens=function(i){let s=[];return s.push(e.walkTokens.call(this,i)),o&&(s=s.concat(o.call(this,i))),s}}ne.setOptions(r)})},ne.walkTokens=function(t,n){let e=[];for(const r of t)switch(e=e.concat(n.call(ne,r)),r.type){case"table":for(const o of r.header)e=e.concat(ne.walkTokens(o.tokens,n));for(const o of r.rows)for(const i of o)e=e.concat(ne.walkTokens(i.tokens,n));break;case"list":e=e.concat(ne.walkTokens(r.items,n));break;default:ne.defaults.extensions&&ne.defaults.extensions.childTokens&&ne.defaults.extensions.childTokens[r.type]?ne.defaults.extensions.childTokens[r.type].forEach(function(o){e=e.concat(ne.walkTokens(r[o],n))}):r.tokens&&(e=e.concat(ne.walkTokens(r.tokens,n)))}return e},ne.parseInline=Gb(Jr.lexInline,eo.parseInline),ne.Parser=eo,ne.parser=eo.parse,ne.Renderer=ca,ne.TextRenderer=jb,ne.Lexer=Jr,ne.lexer=Jr.lex,ne.Tokenizer=Kh,ne.Slugger=zb,ne.Hooks=Ic,ne.parse=ne;const hB=["*"];let Wb=(()=>{class t{constructor(){this._buttonClick$=new ot,this.copied$=this._buttonClick$.pipe(Un(()=>Bf(ue(!0),function $L(t=0,n,e=VL){let r=-1;return null!=n&&(Af(n)?e=n:r=n),new Ee(o=>{let i=function HL(t){return t instanceof Date&&!isNaN(t)}(t)?+t-e.now():t;i<0&&(i=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}(3e3).pipe(mw(!1)))),function UL(t,n=Gn){return t=t??jL,Qe((e,r)=>{let o,i=!0;e.subscribe(Je(r,s=>{const a=n(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}(),function GL(t,n,e){let r,o=!1;return t&&"object"==typeof t?({bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t):r=t??1/0,Vf({connector:()=>new zL(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}(1)),this.copiedText$=this.copied$.pipe(fw(!1),ye(e=>e?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["markdown-clipboard"]],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(e,r){1&e&&(d(0,"button",0),v("click",function(){return r.onCopyToClipboardClick()}),cp(1,"async"),f(2),cp(3,"async"),p()),2&e&&(xs("copied",up(1,3,r.copied$)),_(2),se(up(3,5,r.copiedText$)))},dependencies:[N0],encapsulation:2,changeDetection:0}),t})();class mB{}var to=(()=>((to=to||{}).CommandLine="command-line",to.LineHighlight="line-highlight",to.LineNumbers="line-numbers",to))();class vB{}const qb=new j("SECURITY_CONTEXT");let Tc=(()=>{class t{get options(){return this._options}set options(e){this._options={...this.DEFAULT_MARKED_OPTIONS,...e}}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(e,r,o,i,s,a){this.platform=e,this.securityContext=r,this.http=o,this.clipboardOptions=i,this.sanitizer=a,this.DEFAULT_MARKED_OPTIONS={renderer:new ca},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:this.DEFAULT_MARKED_OPTIONS,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ot,this.reload$=this._reload$.asObservable(),this.options=s}parse(e,r=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:o,inline:i,emoji:s,mermaid:a,disableSanitizer:l}=r,c={...this.options,...r.markedOptions};a&&(this.renderer=this.extendRenderer(c.renderer||new ca));const u=this.trimIndentation(e),h=o?this.decodeHtml(u):u,g=s?this.parseEmoji(h):h,m=this.parseMarked(g,c,i);return(l?m:this.sanitizer.sanitize(this.securityContext,m))||""}render(e,r=this.DEFAULT_RENDER_OPTIONS,o){const{clipboard:i,clipboardOptions:s,katex:a,katexOptions:l,mermaid:c,mermaidOptions:u}=r;i&&this.renderClipboard(e,o,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...s}),a&&this.renderKatex(e,{...this.DEFAULT_KATEX_OPTIONS,...l}),c&&this.renderMermaid(e,{...this.DEFAULT_MERMAID_OPTIONS,...u}),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(e,{responseType:"text"}).pipe(ye(r=>this.handleExtension(e,r)))}highlight(e){if(!Di(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);const r=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(r,o=>o.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!Di(this.platform))return e;const r=document.createElement("textarea");return r.innerHTML=e,r.value}extendRenderer(e){const r=e;if(!0===r.\u0275NgxMarkdownRendererExtended)return e;const o=e.code;return e.code=function(i,s,a){return"mermaid"===s?`
    ${i}
    `:o.call(this,i,s,a)},r.\u0275NgxMarkdownRendererExtended=!0,e}handleExtension(e,r){const o=e.lastIndexOf("://"),i=o>-1?e.substring(o+4):e,s=i.lastIndexOf("/"),a=s>-1?i.substring(s+1).split("?")[0]:"",l=a.lastIndexOf("."),c=l>-1?a.substring(l+1):"";return c&&"md"!==c?"```"+c+"\n"+r+"\n```":r}parseMarked(e,r,o=!1){return o?ne.parseInline(e,r):ne.parse(e,r)}parseEmoji(e){if(!Di(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(e)}renderKatex(e,r){if(Di(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(e,r)}}renderClipboard(e,r,o){if(!Di(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!r)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:i,buttonTemplate:s}=o,a=e.querySelectorAll("pre");for(let l=0;lh.style.opacity="1",c.onmouseout=()=>h.style.opacity="0",g=i?r.createComponent(i).hostView:s?r.createEmbeddedView(s):r.createComponent(Wb).hostView,g.rootNodes.forEach(y=>{y.onmouseover=()=>h.style.opacity="1",h.appendChild(y),m=new ClipboardJS(y,{text:()=>c.innerText})}),g.onDestroy(()=>m.destroy())}}renderMermaid(e,r=this.DEFAULT_MERMAID_OPTIONS){if(!Di(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.init>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const o=e.querySelectorAll(".mermaid");0!==o.length&&(mermaid.initialize(r),mermaid.init(o))}trimIndentation(e){if(!e)return"";let r;return e.split("\n").map(o=>{let i=r;return o.length>0&&(i=isNaN(i)?o.search(/\S|$/):Math.min(o.search(/\S|$/),i)),isNaN(r)&&(r=i),i?o.substring(i):o}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(V(jr),V(qb),V(xc,8),V(mB,8),V(vB,8),V(gh))},t.\u0275prov=Z({token:t,factory:t.\u0275fac}),t})(),Yb=(()=>{class t{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get srcRelativeLink(){return this._srcRelativeLink}set srcRelativeLink(e){this._srcRelativeLink=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}constructor(e,r,o){this.element=e,this.markdownService=r,this.viewContainerRef=o,this.error=new ce,this.load=new ce,this.ready=new ce,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this._srcRelativeLink=!1,this.destroyed$=new ot}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(function WL(t){return Qe((n,e)=>{pn(t).subscribe(Je(e,()=>e.complete(),Nr)),!e.closed&&n.subscribe(e)})}(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,r=!1){let o;this.src&&this.srcRelativeLink&&(o={baseUrl:new URL(this.src,location.origin).pathname});const s={clipboard:this.clipboard,clipboardOptions:{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate},katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=this.markdownService.parse(e,{decodeHtml:r,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,markedOptions:o,disableSanitizer:this.disableSanitizer});this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()}coerceBooleanProperty(e){return null!=e&&"false"!=`${String(e)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e),this.load.emit(e)},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,to.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,to.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,r){const o=e.querySelectorAll("pre");for(let i=0;i{const a=r[s];if(a){const l=this.toLispCase(s);o.item(i).setAttribute(l,a.toString())}})}toLispCase(e){const r=e.match(/([A-Z])/g);if(!r)return e;let o=e.toString();for(let i=0,s=r.length;i{class t{static forRoot(e){return{ngModule:t,providers:[Tc,e&&e.loader||[],e&&e.clipboardOptions||[],e&&e.markedOptions||[],{provide:qb,useValue:e&&null!=e.sanitize?e.sanitize:Ue.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[tc]}),t})();var Zb;!function(t){let n;var o;let e,r;(o=n=t.SecurityLevel||(t.SecurityLevel={})).Strict="strict",o.Loose="loose",o.Antiscript="antiscript",o.Sandbox="sandbox",function(o){o.Base="base",o.Forest="forest",o.Dark="dark",o.Default="default",o.Neutral="neutral"}(e=t.Theme||(t.Theme={})),function(o){o[o.Debug=1]="Debug",o[o.Info=2]="Info",o[o.Warn=3]="Warn",o[o.Error=4]="Error",o[o.Fatal=5]="Fatal"}(r=t.LogLevel||(t.LogLevel={}))}(Zb||(Zb={}));let Xb=(()=>{class t{constructor(e,r){this._renderer=e,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(w(Dr),w(Wt))},t.\u0275dir=de({type:t}),t})(),So=(()=>{class t extends Xb{}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=de({type:t,features:[Le]}),t})();const hr=new j("NgValueAccessor"),SB={provide:hr,useExisting:ze(()=>Po),multi:!0};let Po=(()=>{class t extends So{writeValue(e){this.setProperty("checked",e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=de({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,r){1&e&&v("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[et([SB]),Le]}),t})();const PB={provide:hr,useExisting:ze(()=>It),multi:!0},IB=new j("CompositionEventMode");let It=(()=>{class t extends Xb{constructor(e,r,o){super(e,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function OB(){const t=Wr()?Wr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(w(Dr),w(Wt),w(IB,8))},t.\u0275dir=de({type:t,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(e,r){1&e&&v("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[et([PB]),Le]}),t})();function no(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}const jt=new j("NgValidators"),ro=new j("NgAsyncValidators");function kc(t){return null}function sM(t){return null!=t}function aM(t){return Ds(t)?bt(t):t}function lM(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function cM(t,n){return n.map(e=>e(t))}function uM(t){return t.map(n=>function kB(t){return!t.validate}(n)?n:e=>n.validate(e))}function Qh(t){return null!=t?function dM(t){if(!t)return null;const n=t.filter(sM);return 0==n.length?null:function(e){return lM(cM(e,n))}}(uM(t)):null}function Jh(t){return null!=t?function pM(t){if(!t)return null;const n=t.filter(sM);return 0==n.length?null:function(e){return function EB(...t){const n=Nf(t),{args:e,keys:r}=lw(t),o=new Ee(i=>{const{length:s}=e;if(!s)return void i.complete();const a=new Array(s);let l=s,c=s;for(let u=0;u{h||(h=!0,c--),a[u]=g},()=>l--,void 0,()=>{(!l||!h)&&(c||i.next(r?uw(r,a):a),i.complete())}))}});return n?o.pipe(cw(n)):o}(cM(e,n).map(aM)).pipe(ye(lM))}}(uM(t)):null}function hM(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function ef(t){return t?Array.isArray(t)?t:[t]:[]}function Ac(t,n){return Array.isArray(t)?t.includes(n):t===n}function mM(t,n){const e=ef(n);return ef(t).forEach(o=>{Ac(e,o)||e.push(o)}),e}function _M(t,n){return ef(n).filter(e=>!Ac(t,e))}class vM{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=Qh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Jh(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,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Kt extends vM{get formDirective(){return null}get path(){return null}}class oo extends vM{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class CM{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 yt=(()=>{class t extends CM{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(w(oo,2))},t.\u0275dir=de({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,r){2&e&&xs("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:[Le]}),t})();const ua="VALID",Rc="INVALID",Fi="PENDING",da="DISABLED";function Fc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class MM{constructor(n,e){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(e)}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===ua}get invalid(){return this.status===Rc}get pending(){return this.status==Fi}get disabled(){return this.status===da}get enabled(){return this.status!==da}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(mM(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mM(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_M(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_M(n,this._rawAsyncValidators))}hasValidator(n){return Ac(this._rawValidators,n)}hasAsyncValidator(n){return Ac(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(e=>{e.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(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Fi,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=da,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=ua,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(r=>r(!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===ua||this.status===Fi)&&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(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?da:ua}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Fi,this._hasOwnPendingAsyncValidator=!0;const e=aM(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){const r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}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 ce,this.statusChanges=new ce}_calculateStatus(){return this._allControlsDisabled()?da:this.errors?Rc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fi)?Fi:this._anyControlsHaveStatus(Rc)?Rc:ua}_anyControlsHaveStatus(n){return this._anyControls(e=>e.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){Fc(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 LB(t){return Array.isArray(t)?Qh(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function BB(t){return Array.isArray(t)?Jh(t):t||null}(this._rawAsyncValidators)}}const Li=new j("CallSetDisabledState",{providedIn:"root",factory:()=>Lc}),Lc="always";function pa(t,n,e=Lc){(function lf(t,n){const e=function fM(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(hM(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const r=function gM(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(hM(r,n.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();Hc(n._rawValidators,o),Hc(n._rawAsyncValidators,o)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function $B(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&DM(t,n)})}(t,n),function jB(t,n){const e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function UB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&DM(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function HB(t,n){if(n.valueAccessor.setDisabledState){const e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Hc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function DM(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function SM(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function PM(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const OM=class extends MM{constructor(n=null,e,r){super(function rf(t){return(Fc(t)?t.validators:t)||null}(e),function sf(t,n){return(Fc(n)?n.asyncValidators:t)||null}(r,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=PM(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){SM(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){SM(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){PM(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}},KB={provide:oo,useExisting:ze(()=>pt)},kM=(()=>Promise.resolve())();let pt=(()=>{class t extends oo{constructor(e,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new OM,this._registered=!1,this.name="",this.update=new ce,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function df(t,n){if(!n)return null;let e,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===It?e=i:function WB(t){return Object.getPrototypeOf(t.constructor)===So}(i)?r=i:o=i}),o||r||e||null}(0,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function uf(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){pa(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(e){kM.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const r=e.isDisabled.currentValue,o=0!==r&&function Mi(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(r);kM.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Bc(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(w(Kt,9),w(jt,10),w(ro,10),w(hr,10),w($l,8),w(Li,8))},t.\u0275dir=de({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[et([KB]),Le,nn]}),t})();const JB={provide:hr,useExisting:ze(()=>Uc),multi:!0};let Uc=(()=>{class t extends So{writeValue(e){this.setProperty("value",e??"")}registerOnChange(e){this.onChange=r=>{e(""==r?null:parseFloat(r))}}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=de({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,r){1&e&&v("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[et([JB]),Le]}),t})(),AM=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({}),t})();const lV={provide:hr,useExisting:ze(()=>Oo),multi:!0};function HM(t,n){return null==t?`${n}`:(n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let Oo=(()=>{class t extends So{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;const o=HM(this._getOptionId(e),e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(const r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){const r=function cV(t){return t.split(":")[0]}(e);return this._optionMap.has(r)?this._optionMap.get(r):e}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=de({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,r){1&e&&v("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[et([lV]),Le]}),t})(),fa=(()=>{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(HM(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(Wt),w(Dr),w(Oo,9))},t.\u0275dir=de({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const uV={provide:hr,useExisting:ze(()=>mf),multi:!0};function $M(t,n){return null==t?`${n}`:("string"==typeof n&&(n=`'${n}'`),n&&"object"==typeof n&&(n="Object"),`${t}: ${n}`.slice(0,50))}let mf=(()=>{class t extends So{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){let r;if(this.value=e,Array.isArray(e)){const o=e.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){null!=this._select&&(this._value=e,this._setElementValue($M(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue($M(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(w(Wt),w(Dr),w(mf,9))},t.\u0275dir=de({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function jM(t){return"number"==typeof t?t:parseFloat(t)}let Io=(()=>{class t{constructor(){this._validator=kc}ngOnChanges(e){if(this.inputName in e){const r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):kc,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return null!=e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=de({type:t,features:[nn]}),t})();const pV={provide:jt,useExisting:ze(()=>jc),multi:!0};let jc=(()=>{class t extends Io{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=e=>jM(e),this.createValidator=e=>function Jb(t){return n=>{if(no(n.value)||no(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(e)}}return t.\u0275fac=function(){let n;return function(r){return(n||(n=Ft(t)))(r||t)}}(),t.\u0275dir=de({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(e,r){2&e&&ir("max",r._enabled?r.max:null)},inputs:{max:"max"},features:[et([pV]),Le]}),t})();const hV={provide:jt,useExisting:ze(()=>zc),multi:!0};let zc=(()=>{class t extends Io{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=e=>jM(e),this.createValidator=e=>function Qb(t){return n=>{if(no(n.value)||no(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[AM]}),t})(),bV=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Li,useValue:e.callSetDisabledState??Lc}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[yV]}),t})();function MV(t,n){if(1&t&&(d(0,"p",12),f(1),p()),2&t){const e=M();_(1),se(e.wrongMessage)}}let ZM=(()=>{class t{constructor(e,r,o){this.apiService=e,this.location=r,this.localStorageService=o,this.enteredPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage="",this.type="password",this.rememberMe=!1,this.stayLoggedIn=!1,this.rememberMe=o.getRememberPage(),this.stayLoggedIn=o.getStayLoggedIn();let i=o.getUserName();null!=i&&(this.entereduserName=i);let s=o.getPassword();null!=s&&(this.enteredPassword=s,this.submit())}submit(){this.apiService.checkUser(this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.level>0&&(K.userLevel=e.level,K.userName=e.username,K.password=this.enteredPassword,(this.rememberMe||this.stayLoggedIn)&&(this.localStorageService.setUserName(this.entereduserName),this.localStorageService.setPassword(this.enteredPassword)),this.localStorageService.setStayLoggedIn(this.stayLoggedIn),this.close())},error:e=>{this.wrongMessage=e.message,this.isWrong=!0,this.enteredPassword="",this.entereduserName=""}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-log-in"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:21,vars:7,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"rememberMe"],["type","checkbox",3,"ngModel","ngModelChange"],[1,"label",3,"click"],[1,"stayLoggedIn"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Log in"),p(),P(4,MV,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),p(),d(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(9,"div",6)(10,"input",7),v("ngModelChange",function(i){return r.rememberMe=i}),p(),d(11,"p",8),v("click",function(){return r.rememberMe=!r.rememberMe}),f(12,"Remember me"),p()(),d(13,"div",9)(14,"input",7),v("ngModelChange",function(i){return r.stayLoggedIn=i}),p(),d(15,"p",8),v("click",function(){return r.stayLoggedIn=!r.stayLoggedIn}),f(16,"Stay logged in"),p()(),d(17,"button",10),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Submit "),p(),d(19,"button",11),v("click",function(){return r.viewPassword()}),f(20),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("type",r.type)("ngModel",r.enteredPassword),_(2),C("ngModel",r.rememberMe),_(4),C("ngModel",r.stayLoggedIn),_(6),Xe(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Se,It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:350px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:45%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:45%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:30%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:60%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.stayLoggedIn[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.stayLoggedIn[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function XM(t,n,e,r,o,i,s){try{var a=t[i](s),l=a.value}catch(c){return void e(c)}a.done?n(l):Promise.resolve(l).then(r,o)}function Bi(t){return function(){var n=this,e=arguments;return new Promise(function(r,o){var i=t.apply(n,e);function s(l){XM(i,r,o,s,a,"next",l)}function a(l){XM(i,r,o,s,a,"throw",l)}s(void 0)})}}let To=(()=>{class t{constructor(e){this.apiService=e,this.chapters=[],this.allChapters=[],this.initDone=!1,this.errorChapter=new Yh("Error 404","",[new Zh("**_This chapter does not exist. Please check the URL._**")]),this.currentChapter=this.errorChapter,this.init()}init(){var e=this;return Bi(function*(){if(!e.initDone){e.allChapters=yield e.apiService.getAllChapters().toPromise();for(let r of e.allChapters){void 0===r.Password&&(r.Password=""),void 0===r.Language&&(r.Language=""),void 0===r.Author&&(r.Author=""),void 0===r.IsPrivate&&(r.IsPrivate=!1),void 0===r.Description&&(r.Description=""),void 0===r.Pages&&(r.Pages=[]);for(let o of r.Pages)void 0===o.Content&&(o.Content=""),void 0===o.Hint&&(o.Hint=""),void 0===o.Result&&(o.Result="");""===r.Password&&sa.verifyChapter(r.Title,"")}e.allChapters=e.sortChaptersAlphabetically(e.allChapters),e.chapters=e.allChapters,e.initDone=!0}})()}sortChaptersAlphabetically(e){return e.sort((r,o)=>r.Title.localeCompare(o.Title))}getChapterByName(e,r){e=e.toLowerCase();for(let o of this.chapters)if(r){if(o.Title.replace(/\s/g,"-").toLowerCase()==e)return o}else if(o.Title.toLowerCase()==e)return o;return this.errorChapter}}return t.\u0275fac=function(e){return new(e||t)(V(Ae))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),vf=(()=>{class t{constructor(e){this.apiService=e,this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server",this.init()}init(){this.apiService.getVersion().subscribe({next:e=>{this.version=e.version,this.date=e.date,this.notes=e.notes.split(";"),this.instanceName=e.instanceName},error:e=>{this.version="unknown",this.date="unknown",this.notes=[],this.instanceName="Server"}})}}return t.\u0275fac=function(e){return new(e||t)(V(Ae))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Vi=(()=>{class t{constructor(e){this.localStorageService=e,this.darkModeEnabled=!1;let r=this.localStorageService.getColorScheme();null==r&&(r=this.detectPrefersColorScheme()),"dark"===r?this.darkMode():this.lightMode()}isDarkModeEnabled(){return this.darkModeEnabled}darkMode(){document.documentElement.setAttribute("data-theme","dark"),this.darkModeEnabled=!0,this.localStorageService.setColorScheme(!0)}lightMode(){document.documentElement.setAttribute("data-theme","light"),this.darkModeEnabled=!1,this.localStorageService.setColorScheme(!1)}funkyMode(){document.documentElement.setAttribute("data-theme","funky"),this.darkModeEnabled=!0}oceanMode(){document.documentElement.setAttribute("data-theme","ocean"),this.darkModeEnabled=!1}sunsetMode(){document.documentElement.setAttribute("data-theme","sunset"),this.darkModeEnabled=!1}rubyMode(){document.documentElement.setAttribute("data-theme","ruby"),this.darkModeEnabled=!0}coralMode(){document.documentElement.setAttribute("data-theme","coral"),this.darkModeEnabled=!1}lavenderMode(){document.documentElement.setAttribute("data-theme","lavender"),this.darkModeEnabled=!0}detectPrefersColorScheme(){return"not all"!==window.matchMedia("(prefers-color-scheme)").media&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}return t.\u0275fac=function(e){return new(e||t)(V(at))},t.\u0275prov=Z({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),KM=(()=>{class t{constructor(){this.color="var(--primary-color)"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-loading-screen"]],inputs:{color:"color"},decls:15,vars:24,consts:[[1,"loadingscrren"],[1,"background"],[1,"lds-default"]],template:function(e,r){1&e&&(d(0,"div",0),X(1,"div",1),d(2,"div",2),X(3,"div")(4,"div")(5,"div")(6,"div")(7,"div")(8,"div")(9,"div")(10,"div")(11,"div")(12,"div")(13,"div")(14,"div"),p()()),2&e&&(_(3),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color),_(1),He("background",r.color))},styles:[".background[_ngcontent-%COMP%]{width:100%;height:100%;position:fixed;top:0;left:0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.lds-default[_ngcontent-%COMP%]{display:inline-block;width:80px;height:80px;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{position:absolute;width:6px;height:6px;border-radius:50%;animation:_ngcontent-%COMP%_lds-default 1.2s linear infinite}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:0s;top:37px;left:66px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.1s;top:22px;left:62px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.2s;top:11px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.3s;top:7px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.4s;top:11px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.5s;top:22px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.6s;top:37px;left:7px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.7s;top:52px;left:11px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(9){animation-delay:-.8s;top:62px;left:22px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(10){animation-delay:-.9s;top:66px;left:37px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(11){animation-delay:-1s;top:62px;left:52px}.lds-default[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(12){animation-delay:-1.1s;top:52px;left:62px}@keyframes _ngcontent-%COMP%_lds-default{0%,20%,80%,to{transform:scale(1)}50%{transform:scale(1.5)}}"]}),t})();function DV(t,n){if(1&t){const e=q();d(0,"button",6),v("click",function(){return A(e),N(M().deploy())}),f(1,"Deploy"),p()}}function xV(t,n){if(1&t){const e=q();d(0,"button",11),v("click",function(){return A(e),N(M().toggleLogIn())})("keydown.control.alt.l",function(){return A(e),N(M().toggleLogIn())},!1,Te),f(1," Log in "),p()}}function EV(t,n){if(1&t){const e=q();d(0,"button",12),v("click",function(){return A(e),N(M().logOut())}),f(1," Log out "),p()}}function SV(t,n){1&t&&X(0,"app-loading-screen",13),2&t&&C("color","var(--secondary-color)")}let PV=(()=>{class t{constructor(e,r,o,i){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.apiService=i,this.logIn=!1,this.isLoading=!1}increaseFontSize(){this.localStorageService.setFontSize(this.localStorageService.getFontSize()+2)}decreaseFontSize(){let e=this.localStorageService.getFontSize();e>2&&this.localStorageService.setFontSize(e-2)}getFontSize(){return this.localStorageService.getFontSize()}toggleLogIn(){this.logIn=!this.logIn,this.logIn&&this.router.navigate(["/login"])}logOut(){K.userLevel=0,K.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}deploy(){2!=K.userLevel?(this.isLoading=!0,this.apiService.deployAll(K.userName,K.password).subscribe({next:e=>{this.isLoading=!1,e.status?De.showNotification("Success",e.message,-1):De.showNotification("Unsuccessful",e.message,-1,!0)},error:e=>{this.isLoading=!1,De.showNotification("ERROR","Error deploying: "+e.message+"!",-1,!0)}})):this.router.navigate(["/deploy"])}getuserLevel(){return K.userLevel}getUserName(){return K.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}goToAdvancedSettings(){this.router.navigate(["/settings/storage"])}hoToHelp(){this.router.navigate(["/help"])}toggleDarkMode(){this.colorSchemeService.darkModeEnabled=!this.colorSchemeService.darkModeEnabled,this.colorSchemeService.darkModeEnabled?this.colorSchemeService.darkMode():this.colorSchemeService.lightMode()}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Vi),w(at),w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-settings-short"]],hostBindings:function(e,r){1&e&&v("keydown.control.alt.l",function(i){return r.toggleLogIn(i)},0,Te)},decls:18,vars:6,consts:[[1,"settings"],[1,"first",3,"click"],[1,"dividedButton"],[1,"smallButton",2,"margin-left","10px",3,"click"],[1,"text"],[1,"smallButton",2,"margin-right","10px",3,"click"],[3,"click"],[3,"click",4,"ngIf"],["class","last",3,"click","keydown.control.alt.l",4,"ngIf"],["class","last",3,"click",4,"ngIf"],[3,"color",4,"ngIf"],[1,"last",3,"click","keydown.control.alt.l"],[1,"last",3,"click"],[3,"color"]],template:function(e,r){1&e&&(d(0,"div",0)(1,"button",1),v("click",function(){return r.toggleDarkMode()}),f(2),p(),d(3,"div",2)(4,"button",3),v("click",function(){return r.decreaseFontSize()}),f(5," - "),p(),d(6,"p",4),f(7),p(),d(8,"button",5),v("click",function(){return r.increaseFontSize()}),f(9," + "),p()(),d(10,"button",6),v("click",function(){return r.goToAdvancedSettings()}),f(11,"Advanced"),p(),d(12,"button",6),v("click",function(){return r.hoToHelp()}),f(13,"Help"),p(),P(14,DV,2,0,"button",7),P(15,xV,2,0,"button",8),P(16,EV,2,0,"button",9),p(),P(17,SV,1,1,"app-loading-screen",10)),2&e&&(_(2),Xe(" ",r.getDarkModeEnabled()?"Lightmode":"Darkmode"," "),_(5),se("Font Size "+r.getFontSize()),_(7),C("ngIf",r.getuserLevel()>0),_(1),C("ngIf",0==r.getuserLevel()),_(1),C("ngIf",r.getuserLevel()>0),_(1),C("ngIf",r.isLoading))},dependencies:[Se,KM],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;right:10px;top:90px;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:199px;font-size:20px;display:flex;align-items:center;justify-content:center}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color);text-align:center;justify-content:center;width:45px;height:30px;border-radius:5px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:201px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function OV(t,n){if(1&t){const e=q();d(0,"button",2),v("click",function(){const i=A(e).$implicit;return N(M().goToPage(i.page))}),f(1),p()}if(2&t){const e=n.$implicit,r=n.index;xn((0==r?"first ":"")+(r==M().results.length-1?"last":"")),_(1),Xe(" ",e.page+": ..."+e.text+"..."," ")}}let IV=(()=>{class t{constructor(){this.results=[],this.pageChange=new ce}goToPage(e){this.pageChange.emit(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-chapter-search"]],inputs:{results:"results"},outputs:{pageChange:"pageChange"},decls:2,vars:1,consts:[[1,"settings"],[3,"class","click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,r){1&e&&(d(0,"div",0),P(1,OV,2,3,"button",1),p()),2&e&&(_(1),C("ngForOf",r.results))},dependencies:[Pn],styles:[".settings[_ngcontent-%COMP%]{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:10px 10px 10px #00000080;top:80px;right:0;animation:_ngcontent-%COMP%_slideInFromRight .3s ease-in-out;border-radius:10px;box-sizing:border-box;z-index:10}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:var(--header-color);border-bottom:1px solid var(--primary-color);border-top:1px solid var(--haeder-color);border-left:1px solid var(--primary-color);border-right:1px solid var(--primary-color);cursor:pointer;height:50px;width:400px;font-size:20px;color:var(--text-color)}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{border-radius:10px;background-color:var(--primary-color);color:var(--inverted-text-color);transform:scale(1.05)}.first[_ngcontent-%COMP%]{border-top:1px solid var(--primary-color)!important;border-top-left-radius:10px;border-top-right-radius:10px}.last[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;background:var(--header-color)}@media screen and (max-width: 800px){.settings[_ngcontent-%COMP%]{top:70px;right:0;width:100%;animation:_ngcontent-%COMP%_slideInFromTop .3s ease-in-out}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:103%}.settings[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--header-color);color:var(--text-color);transform:scale(1)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%]{width:100%;border-left:1px solid var(--primary-color)}.settings[_ngcontent-%COMP%] .dividedButton[_ngcontent-%COMP%] .smallButton[_ngcontent-%COMP%]{width:50px}.first[_ngcontent-%COMP%]{border-top-left-radius:0;border-top-right-radius:0}.last[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0}}@keyframes _ngcontent-%COMP%_slideInFromRight{0%{transform:translate(110%)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_slideInFromTop{0%{transform:translateY(-200%)}to{transform:translateY(0)}}"]}),t})();function TV(t,n){if(1&t){const e=q();d(0,"app-chapter-search",3),v("pageChange",function(o){return A(e),N(M().pageChange.emit(o))}),p()}2&t&&C("results",M().searchChapterResult)}let kV=(()=>{class t{constructor(e,r,o){this.chapterManager=e,this.colorSchemeService=r,this.router=o,this.searchValue="",this.noMatches=!1,this.slideOut=!1,this.searchChapterResult=[],this.close=new ce,this.pageChange=new ce,this.chapter=null,o.events.forEach(i=>{this.closeSearchBar()})}closeSearchBar(){this.slideOut=!0,this.searchValue="",this.onSearchChange(),setTimeout(()=>{this.close.emit(),this.slideOut=!1},500)}onSearchChange(){null==this.chapter?this.searchAllChapters():this.searchChapter()}searchChapter(){if(null==this.chapter||(this.searchChapterResult=[],""==this.searchValue))return;let e=this.searchValue.toLowerCase();e.split(" ");for(let o=0;o0&&(s.push(i.Hint),s.push(i.Result));for(let a of s){if(!a.toLowerCase().includes(e))continue;let l=a.toLowerCase().indexOf(e),c=l,u=0;for(;c>0&&u<2;)c--," "==a[c]&&u++;let h=l;for(u=0;h{class t{constructor(e,r,o){this.router=e,this.colorSchemeService=r,this.localStorageService=o,this.showSettings=!1,this.enableSearchBar=!0,this.chapter=null,this.pageChange=new ce,this.searchBarOn=!1}logIn(){this.router.navigate(["/login"])}logOut(){K.userLevel=0,K.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}goBack(){this.router.navigate(["/"])}toggleSettings(){this.showSettings=!this.showSettings}getUserLevel(){return K.userLevel}getUserName(){return K.userName}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}turnOnSearchBar(){this.searchBarOn=!0}turnOffSearchBar(){this.searchBarOn=!1}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Vi),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-header"]],inputs:{enableSearchBar:"enableSearchBar",chapter:"chapter"},outputs:{pageChange:"pageChange"},decls:10,vars:7,consts:[["class","background",3,"click",4,"ngIf"],["src","assets/imgs/InterSystemsWOOPLogo.png","alt","logo",1,"logo",3,"click"],["class","searchButton","alt","Search",3,"src","click",4,"ngIf"],["alt","Settings",1,"settingsButton",3,"src","click"],["class","userLabel",3,"right","click",4,"ngIf"],["class","searchBar",3,"chapter","close","pageChange",4,"ngIf"],[4,"ngIf"],[1,"background",3,"click"],["alt","Search",1,"searchButton",3,"src","click"],[1,"userLabel",3,"click"],[1,"userLabelExtended"],[1,"searchBar",3,"chapter","close","pageChange"]],template:function(e,r){1&e&&(P(0,AV,1,0,"div",0),d(1,"header")(2,"button")(3,"img",1),v("click",function(){return r.goBack()}),p()(),P(4,NV,1,1,"img",2),d(5,"img",3),v("click",function(){return r.toggleSettings()}),p(),P(6,RV,6,4,"p",4),P(7,FV,3,2,"p",4),P(8,LV,1,1,"app-search-bar-header",5),p(),P(9,BV,1,0,"app-settings-short",6)),2&e&&(C("ngIf",r.showSettings),_(4),C("ngIf",r.enableSearchBar&&!r.searchBarOn),_(1),C("src","assets/imgs/"+(r.getDarkModeEnabled()?"darkmode":"lightmode")+"/settings.png",tr),_(1),C("ngIf",r.getUserLevel()>0&&!r.searchBarOn),_(1),C("ngIf",0==r.getUserLevel()&&!r.searchBarOn),_(1),C("ngIf",r.enableSearchBar&&r.searchBarOn),_(1),C("ngIf",r.showSettings))},dependencies:[Se,PV,kV],styles:["header[_ngcontent-%COMP%]{box-shadow:2px 2px 2px #0000001a;background-color:var(--header-color);z-index:1000}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border:none;cursor:pointer;background:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{position:absolute;top:10px;font-size:20px;opacity:.3;color:var(--text-color);cursor:pointer;transition:.3s}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{opacity:0}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:1}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover .userLabelExtended[_ngcontent-%COMP%]{opacity:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:20px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:1;animation-name:_ngcontent-%COMP%_rotate;animation-duration:1.2s;animation-fill-mode:forwards}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{color:var(--text-color);position:absolute;right:85px;height:35px;width:35px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:360px;height:35px;width:35px;top:22px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%]{position:absolute;right:30px;height:40px;width:40px;cursor:pointer;top:25px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]{position:absolute;height:5px;background-color:var(--text-color);border-radius:5px;right:0;width:100%}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(1){top:0}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(2){top:10px}header[_ngcontent-%COMP%] .burgerMenu[_ngcontent-%COMP%] .burgerBar[_ngcontent-%COMP%]:nth-child(3){top:20px}.background[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;top:0}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.logo[_ngcontent-%COMP%]{height:45px;margin-top:16px;margin-bottom:16px;margin-left:50px;transition:.3s}.logo[_ngcontent-%COMP%]:hover{scale:1.1}@media screen and (max-width: 800px){.logo[_ngcontent-%COMP%]{height:30px;margin-left:10px}.logo[_ngcontent-%COMP%]:hover{scale:1}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]{right:10px;height:30px;width:30px;top:20px}header[_ngcontent-%COMP%] .settingsButton[_ngcontent-%COMP%]:hover{opacity:.3;animation:none}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]{right:55px;height:25px;width:25px;cursor:pointer;top:24px;opacity:.3;transition:.3s}header[_ngcontent-%COMP%] .searchButton[_ngcontent-%COMP%]:hover{opacity:1;scale:1.1}header[_ngcontent-%COMP%] .searchBar[_ngcontent-%COMP%]{position:absolute;right:0;height:70px;width:100%;top:18px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]{top:15px;font-size:15px}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%] .userLabelExtended[_ngcontent-%COMP%]{display:none}header[_ngcontent-%COMP%] .userLabel[_ngcontent-%COMP%]:hover{opacity:.3}}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),t})();function VV(t,n){1&t&&(d(0,"p")(1,"i"),f(2,"Private"),p()())}function HV(t,n){if(1&t&&(d(0,"p")(1,"i"),f(2,"Description"),p(),f(3),p()),2&t){const e=M();_(3),Xe("",": "+e.chapter.Description," ")}}let $V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-chapter-meta-data"]],inputs:{chapter:"chapter"},decls:19,vars:6,consts:[[1,"container"],[4,"ngIf"]],template:function(e,r){1&e&&(d(0,"div",0),P(1,VV,3,0,"p",1),d(2,"p")(3,"i"),f(4,"Title"),p(),f(5),p(),d(6,"p")(7,"i"),f(8,"Author"),p(),f(9),p(),d(10,"p")(11,"i"),f(12,"Language"),p(),f(13),p(),d(14,"p")(15,"i"),f(16,"Pages"),p(),f(17),p(),P(18,HV,4,1,"p",1),p()),2&e&&(_(1),C("ngIf",r.chapter.IsPrivate),_(4),se(": "+r.chapter.Title),_(4),se(": "+r.chapter.Author),_(4),se(": "+r.chapter.Language),_(4),se(": "+r.chapter.Pages.length),_(1),C("ngIf",""!=r.chapter.Description))},dependencies:[Se],styles:[".container[_ngcontent-%COMP%]{border:none;border-radius:10px;box-shadow:2px 2px 2px #0003;padding:10px;width:300px;transition:.3s;color:var(--inverted-text-color);background-color:var(--primary-color)}"]}),t})();function UV(t,n){if(1&t&&(d(0,"p",15),f(1),p()),2&t){const e=M();_(1),se(e.wrongText)}}let jV=(()=>{class t{constructor(e,r){this.apiService=e,this.chapterManger=r,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.isWrong=!1,this.wrongText="",this.closeEmitter=new ce}submit(){var e=this;return Bi(function*(){if(""===e.name)return e.isWrong=!0,void(e.wrongText="Please enter a name");if(e.name.includes("#"))return e.isWrong=!0,void(e.wrongText="Chapter name cannot contain #");if(e.name.includes("~"))return e.isWrong=!0,void(e.wrongText="Chapter name cannot contain ~");let r=new Yh(e.name,K.userName,[],e.password,e.language,e.description,e.isPrivate);e.apiService.addNewChapter(r).subscribe({next:o=>{o.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.isPrivate=!1,e.chapterManger.chapters.push(r)):(e.isWrong=!0,e.wrongText="Something went wrong!")},error:o=>{e.isWrong=!0,e.wrongText=o.message}})})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(To))},t.\u0275cmp=J({type:t,selectors:[["app-chapter-new"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate"},outputs:{closeEmitter:"closeEmitter"},decls:24,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","title","placeholder","Chapter name",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","250px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","270px"],["type","checkbox","name","private",1,"userNameInput",2,"top","320px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","340px"],["name","description","placeholder","Description",2,"top","460px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Create new Chapter"),p(),P(4,UV,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"p",4),f(8,"Name"),p(),d(9,"input",5),v("ngModelChange",function(i){return r.name=i})("keydown.enter",function(){return r.submit()}),p(),d(10,"p",6),f(11,"Language"),p(),d(12,"input",7),v("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),p(),d(13,"p",8),f(14,"Password"),p(),d(15,"input",9),v("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),p(),d(16,"p",10),f(17,"Private"),p(),d(18,"input",11),v("ngModelChange",function(i){return r.isPrivate=i}),p(),d(19,"p",12),f(20,"Description"),p(),d(21,"textarea",13),v("ngModelChange",function(i){return r.description=i}),p(),d(22,"button",14),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(23," Create "),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(5),C("ngModel",r.name),_(3),C("ngModel",r.language),_(3),C("ngModel",r.password),_(3),C("ngModel",r.isPrivate),_(3),C("ngModel",r.description))},dependencies:[Se,It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:650px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})(),QM=(()=>{class t{constructor(){this.sureEmitter=new ce}close(){this.sureEmitter.emit(!1)}yes(){this.sureEmitter.emit(!0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-are-you-sure"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{sureEmitter:"sureEmitter"},decls:11,vars:0,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Are you sure?"),p(),d(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),p(),d(6,"div",3)(7,"button",4),v("click",function(){return r.yes()}),f(8," Yes "),p(),d(9,"button",5),v("click",function(){return r.close()}),f(10," No "),p()()())},styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:150px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function zV(t,n){if(1&t){const e=q();d(0,"div",12)(1,"button",13),v("click",function(){A(e);const o=M(2).$implicit;return N(M().setChapterToDelete(o))}),X(2,"img",14),p(),d(3,"button",13),v("click",function(){A(e);const o=M(2).$implicit;return N(M().onChapterEditSelected(o.Title))}),X(4,"img",15),p()()}if(2&t){const e=M(3);_(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/delete.png",tr),_(2),C("src","assets/imgs/"+(e.getDarkModeEnabled()?"darkmode":"lightmode")+"/edit.png",tr)}}function GV(t,n){if(1&t&&(d(0,"i"),f(1),p()),2&t){const e=M(2).$implicit;_(1),se(e.Title)}}function WV(t,n){if(1&t&&(d(0,"div"),f(1),p()),2&t){const e=M(2).$implicit;_(1),se(e.Title)}}function qV(t,n){if(1&t){const e=q();d(0,"div"),P(1,zV,5,2,"div",8),d(2,"button",9),v("click",function(){A(e);const o=M().$implicit;return N(M().onChapterSelected(o.Title))}),P(3,GV,2,1,"i",10),P(4,WV,2,1,"div",10),p(),X(5,"app-chapter-meta-data",11),p()}if(2&t){const e=M().$implicit,r=M();xn("row"+(2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author?" edit":"")),_(1),C("ngIf",2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author),_(2),C("ngIf",e.IsPrivate),_(1),C("ngIf",!e.IsPrivate),_(1),C("chapter",e)}}function YV(t,n){if(1&t&&(d(0,"div")(1,"div",6),P(2,qV,6,6,"div",7),p()()),2&t){const e=n.$implicit,r=M();_(2),C("ngIf",!e.IsPrivate||2==r.getuserLevel()||1==r.getuserLevel()&&r.getuserName()==e.Author)}}function ZV(t,n){1&t&&(d(0,"i",16),f(1,"No Chapters"),p())}function XV(t,n){if(1&t){const e=q();d(0,"div",17)(1,"button",13),v("click",function(){return A(e),N(M().toggleNewChapter())}),f(2,"+"),p()()}}function KV(t,n){if(1&t){const e=q();d(0,"app-chapter-new",18),v("closeEmitter",function(){return A(e),N(M().toggleNewChapter())}),p()}}function QV(t,n){if(1&t){const e=q();d(0,"app-are-you-sure",19),v("sureEmitter",function(o){return A(e),N(M().areYouSure(o))}),p()}}let JV=(()=>{class t{constructor(e,r){this.apiService=e,this.colorSchemeService=r,this.chapters=[],this.chapterSelected=new ce,this.chapterEditSelected=new ce,this.newChapter=!1,this.chapterToDelete=void 0}onChapterSelected(e){this.chapterSelected.emit(e)}onChapterEditSelected(e){this.chapterEditSelected.emit(e)}setChapterToDelete(e){this.chapterToDelete=e}areYouSure(e){e&&this.deleteChapter(this.chapterToDelete),this.chapterToDelete=void 0}deleteChapter(e){this.apiService.deleteChapter(e).subscribe({next:r=>{r.status?(this.chapters.splice(this.chapters.indexOf(e),1),De.showNotification("Chapter deleted","The chapter was deleted successfully!")):De.showNotification("Chapter could not be deleted","The chapter could not be deleted!",5e3,!0)},error:r=>{De.showNotification("ERROR","Chapter could not be deleted: "+r.message+"!",-1,!0)}})}isChapterAccessible(e){return 2==this.getuserLevel()||1==this.getuserLevel()&&this.getuserName()==e.Author}getuserLevel(){return K.userLevel}getuserName(){return K.userName}toggleNewChapter(){this.newChapter=!this.newChapter}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Vi))},t.\u0275cmp=J({type:t,selectors:[["app-chapter-selection"]],hostBindings:function(e,r){1&e&&v("keydown.control.alt.n",function(i){return r.toggleNewChapter(i)},0,Te)},inputs:{chapters:"chapters"},outputs:{chapterSelected:"chapterSelected",chapterEditSelected:"chapterEditSelected"},decls:6,vars:5,consts:[[1,"container"],[4,"ngFor","ngForOf"],["class","noChapters",4,"ngIf"],["class","newButton",4,"ngIf"],[3,"closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"chapterContainer"],[3,"class",4,"ngIf"],["class","editButton",4,"ngIf"],[1,"chapterButton",3,"click"],[4,"ngIf"],[1,"metaData",3,"chapter"],[1,"editButton"],[3,"click"],["alt","Delete",3,"src"],["alt","Edit",3,"src"],[1,"noChapters"],[1,"newButton"],[3,"closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(d(0,"div",0),P(1,YV,3,1,"div",1),P(2,ZV,2,0,"i",2),P(3,XV,3,0,"div",3),p(),P(4,KV,1,0,"app-chapter-new",4),P(5,QV,1,0,"app-are-you-sure",5)),2&e&&(_(1),C("ngForOf",r.chapters),_(1),C("ngIf",0==r.chapters.length),_(1),C("ngIf",r.getuserLevel()>0),_(1),C("ngIf",r.newChapter),_(1),C("ngIf",null!=r.chapterToDelete))},dependencies:[Pn,Se,$V,jV,QM],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .metaData[_ngcontent-%COMP%]{display:none;position:fixed;right:20px;bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:500px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--secondary-color);transform:scale(1.1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:block}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{height:20px;margin-right:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:20px;width:20px;margin:0 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none;border:none;margin:10px 5px;cursor:pointer}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px 20px;cursor:pointer;height:50px;width:100px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}.edit[_ngcontent-%COMP%]{padding-right:112px}.noChapters[_ngcontent-%COMP%]{color:var(--text-color);font-size:20px}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .chapterButton[_ngcontent-%COMP%]{width:400px;border-radius:0}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .chapterButton[_ngcontent-%COMP%]{background:var(--primary-color);transform:scale(1)}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover .metaData[_ngcontent-%COMP%]{display:none}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%]{margin-right:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .chapterContainer[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .editButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:scale(1)}.container[_ngcontent-%COMP%] .newButton[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}.edit[_ngcontent-%COMP%]{padding-right:0}}"]}),t})();function e3(t,n){if(1&t){const e=q();d(0,"div",6)(1,"app-chapter-selection",7),v("chapterSelected",function(o){return A(e),N(M().selectChapter(o))})("chapterEditSelected",function(o){return A(e),N(M().selectEditChapter(o))}),p()()}if(2&t){const e=M();_(1),C("chapters",e.getChapters())}}let t3=(()=>{class t{constructor(e,r,o,i){this.router=e,this.apiService=r,this.chapterManager=o,this.metaDataService=i,this.title="InterSystemsWOOP",this.isServerOnline=!1}ngOnInit(){this.chapterManager.init(),this.checkIfServerOnline(),setInterval(()=>{this.checkIfServerOnline(),!this.isServerOnline&&"/"==this.router.url&&this.router.navigate(["/error"])},5e3)}goToServerSettings(){this.router.navigate(["settings/server"])}checkIfServerOnline(){this.apiService.isServerOnline().subscribe({next:e=>{this.isServerOnline=!0},error:e=>{this.isServerOnline=!1}})}selectChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-")])}selectEditChapter(e){this.router.navigate(["/chapter",e.replace(/\s/g,"-"),"edit"])}goToWhatsNew(){this.router.navigate(["/info"])}getLatestVersion(){return this.metaDataService.version}getInstancename(){return this.metaDataService.instanceName}getChapters(){return this.chapterManager.chapters}getuserLevel(){return K.userLevel}getuserName(){return K.userName}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Ae),w(To),w(vf))},t.\u0275cmp=J({type:t,selectors:[["app-home"]],decls:10,vars:5,consts:[[1,"sticky"],["class","container",4,"ngIf"],[1,"serverStatus"],[3,"click"],[1,"statusIcon",3,"click"],[1,"version"],[1,"container"],[3,"chapters","chapterSelected","chapterEditSelected"]],template:function(e,r){1&e&&(X(0,"app-header",0),P(1,e3,2,1,"div",1),d(2,"div",2)(3,"p",3),v("click",function(){return r.goToServerSettings()}),f(4),p(),d(5,"div",4),v("click",function(){return r.goToServerSettings()}),p()(),d(6,"div",5)(7,"p",3),v("click",function(){return r.goToWhatsNew()}),d(8,"i"),f(9),p()()()),2&e&&(_(1),C("ngIf",r.isServerOnline),_(3),se(r.getInstancename()),_(1),He("background",r.isServerOnline?"green":"red"),_(4),se("unknown"==r.getLatestVersion()?"":"v"+r.getLatestVersion()))},dependencies:[Se,fr,JV],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.container[_ngcontent-%COMP%]{padding-top:100px}.userLevelLabel[_ngcontent-%COMP%]{position:fixed;bottom:10px;left:20px;opacity:.2}.serverStatus[_ngcontent-%COMP%]{position:fixed;bottom:5px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.serverStatus[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}.serverStatus[_ngcontent-%COMP%] .statusIcon[_ngcontent-%COMP%]{margin-left:10px;margin-top:3px;height:10px;width:10px;border-radius:50%}.version[_ngcontent-%COMP%]{position:fixed;bottom:30px;left:20px;opacity:.8;display:flex;align-items:center;flex-direction:row}.version[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{cursor:default;color:var(--text-color);opacity:.5}@media screen and (max-width: 800px){.serverStatus[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{display:none}}"]}),t})();var JM=F(83);const n3=["codeEle"];function r3(t,n){1&t&&(d(0,"p",12),f(1,"\u2713"),p())}function o3(t,n){if(1&t){const e=q();d(0,"img",13),v("click",function(){return A(e),N(M().copyCode())}),p()}2&t&&C("src","assets/imgs/"+(M().getDarkModeEnabled()?"darkmode":"lightmode")+"/copy.png",tr)}function i3(t,n){if(1&t&&(d(0,"pre",14),f(1," "),d(2,"code",null,15),f(4),p(),f(5,"\n "),p()),2&t){const e=M();xn("test"+(e.copyable?"":" noselect")),_(2),function Kv(t,n,e){Ln(vn,sr,li(I(),t,n,e),!0)}("language-",e.language,""),_(2),Xe("\n ",e.code,"\n ")}}let s3=(()=>{class t{constructor(e){this.colorSchemeService=e,this.code="",this.language="javascript",this.title="mycode",this.copyable=!1,this.copied=!1,this.db=!1}ngAfterViewInit(){JM.highlightElement(this.codeEle.nativeElement)}ngOnChanges(e){e?.code&&this.codeEle?.nativeElement&&(this.codeEle.nativeElement.textContent=this.code,JM.highlightElement(this.codeEle.nativeElement))}toggleCopyable(){0!=K.userLevel&&(this.copyable=!this.copyable)}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}copyCode(){const e=document.createElement("textarea");e.value=this.code,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.copied=!0,setTimeout(()=>{this.copied=!1},1e3)}onDblClick(){this.db=!this.db}}return t.\u0275fac=function(e){return new(e||t)(w(Vi))},t.\u0275cmp=J({type:t,selectors:[["app-code-window"]],viewQuery:function(e,r){if(1&e&&Ll(n3,5),2&e){let o;Ns(o=Rs())&&(r.codeEle=o.first)}},inputs:{code:"code",language:"language",title:"title",copyable:"copyable"},features:[nn],decls:14,vars:6,consts:[["id","window"],["id","navbar"],["id","window-controls"],[1,"red","dot"],[1,"yellow","dot",3,"dblclick"],[1,"green","dot",3,"dblclick"],[1,"test"],["id","window-title"],["class","copiedMessage",4,"ngIf"],["class","copy","alt","Copy",3,"src","click",4,"ngIf"],[1,"code"],["prism","",3,"class",4,"ngIf"],[1,"copiedMessage"],["alt","Copy",1,"copy",3,"src","click"],["prism",""],["codeEle",""]],template:function(e,r){1&e&&(d(0,"div",0)(1,"div",1)(2,"div",2),X(3,"div",3),d(4,"div",4),v("dblclick",function(){return r.onDblClick()}),p(),d(5,"div",5),v("dblclick",function(){return r.toggleCopyable()}),p()(),d(6,"div",6)(7,"div",7),f(8),p(),P(9,r3,2,0,"p",8),P(10,o3,1,1,"img",9),p(),d(11,"div")(12,"div",10),P(13,i3,6,6,"pre",11),p()()()()),2&e&&(xn(r.db?"db":""),_(8),se(r.title),_(1),C("ngIf",r.copied),_(1),C("ngIf",!r.copied&&r.copyable),_(3),C("ngIf",r.language))},dependencies:[Se],styles:["#snippet-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background-color:red;width:max-content}#window[_ngcontent-%COMP%]{display:flex;flex-direction:column;box-shadow:0 0 10px #0003;overflow:hidden;width:max-content;min-width:200px;padding:18px;background-color:var(--header-color);border-radius:10px;margin-left:20px;max-width:100%}#navbar[_ngcontent-%COMP%]{overflow:hidden;text-align:center}#window-controls[_ngcontent-%COMP%]{display:flex;float:left;margin-top:2px}#window-title[_ngcontent-%COMP%]{margin:0 90px}.dot[_ngcontent-%COMP%]{width:15px;height:15px;border-radius:50%;margin-right:10px;box-shadow:0 0 3px #0000004d}.dot[_ngcontent-%COMP%]:hover{scale:1.2}.copiedMessage[_ngcontent-%COMP%]{opacity:.5;width:25px;height:25px;margin-top:2px}.copy[_ngcontent-%COMP%]{width:25px;height:25px;cursor:pointer;margin-top:2px}.copy[_ngcontent-%COMP%]:hover{scale:1.2}.test[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.red[_ngcontent-%COMP%]{background-color:#ff5f5a}.yellow[_ngcontent-%COMP%]{background-color:#ffbe2e}.green[_ngcontent-%COMP%]{background-color:#2aca44}.test[_ngcontent-%COMP%]{background:var(--header-color);text-shadow:none!important}.code[_ngcontent-%COMP%] .token[_ngcontent-%COMP%]{color:red!important;background:red!important}code[class*=language-][_ngcontent-%COMP%], pre[class*=language-][_ngcontent-%COMP%]{text-shadow:none;color:var(--text-color)}pre[class*=language-][_ngcontent-%COMP%]{padding:0;margin:0;overflow:auto}.noselect[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.db[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin .5s linear;transform:rotate(180deg)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(180deg)}}@media screen and (max-width: 800px){#window[_ngcontent-%COMP%]{margin-left:0;max-width:90%}.dot[_ngcontent-%COMP%]:hover{scale:1}}"]}),t})();function a3(t,n){if(1&t&&(d(0,"h1"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function l3(t,n){if(1&t&&(d(0,"h2"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function c3(t,n){if(1&t&&(d(0,"h3"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function u3(t,n){if(1&t&&(d(0,"h4"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function d3(t,n){if(1&t&&(d(0,"h5"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function p3(t,n){if(1&t&&(d(0,"h5"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function h3(t,n){if(1&t&&(d(0,"h5"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function f3(t,n){if(1&t&&(d(0,"h5"),f(1),p()),2&t){const e=M(2);_(1),se(e.heading)}}function g3(t,n){if(1&t){const e=q();d(0,"div",1),v("click",function(){return A(e),N(M().onClick())}),X(1,"img",2),P(2,a3,2,1,"h1",3),P(3,l3,2,1,"h2",3),P(4,c3,2,1,"h3",3),P(5,u3,2,1,"h4",3),P(6,d3,2,1,"h5",3),P(7,p3,2,1,"h5",3),P(8,h3,2,1,"h5",3),P(9,f3,2,1,"h5",3),p()}if(2&t){const e=M();_(2),C("ngIf",1==e.level),_(1),C("ngIf",2==e.level),_(1),C("ngIf",3==e.level),_(1),C("ngIf",4==e.level),_(1),C("ngIf",5==e.level),_(1),C("ngIf",6==e.level),_(1),C("ngIf",7==e.level),_(1),C("ngIf",8==e.level)}}let m3=(()=>{class t{constructor(e){this.router=e,this.heading="",this.level=1}onClick(){const e="~"+this.heading.toLowerCase().replace(/\s/g,"-"),r=this.router.url.split("~")[0],o=r+e;this.router.navigate(this.router.url!==o?[o]:[r])}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=J({type:t,selectors:[["app-heading"]],inputs:{heading:"heading",level:"level"},decls:1,vars:1,consts:[["class","heading",3,"click",4,"ngIf"],[1,"heading",3,"click"],["src","assets/imgs/headingLink.png",1,"linkImg"],[4,"ngIf"]],template:function(e,r){1&e&&P(0,g3,10,8,"div",0),2&e&&C("ngIf",""!=r.heading)},dependencies:[Se],styles:[".heading[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;cursor:pointer;transition:.3s}.heading[_ngcontent-%COMP%] .linkImg[_ngcontent-%COMP%]{transition:.3s;height:1.8em;margin-right:10px;display:none}.heading[_ngcontent-%COMP%]:hover{text-decoration:underline}.heading[_ngcontent-%COMP%]:hover .linkImg[_ngcontent-%COMP%]{display:block}"]}),t})();function _3(t,n){1&t&&X(0,"markdown",7),2&t&&C("data",M().$implicit.code)}function v3(t,n){if(1&t&&X(0,"app-code-window",8),2&t){const e=M().$implicit;C("code",e.code)("language",e.language)("title",e.title)("copyable",e.settings.includes("copy")||e.settings.includes("c"))}}function C3(t,n){if(1&t&&X(0,"img",9),2&t){const e=M().$implicit;(function Rn(t){Ln(Bv,MO,t,!1)})(e.language),C("src",e.code,tr)("alt",e.title)}}function y3(t,n){if(1&t){const e=q();d(0,"button",10),v("click",function(){A(e);const o=M().$implicit;return N(M().downloadFile(o.code))}),f(1),p()}if(2&t){const e=M().$implicit;_(1),Xe(" ",e.title," ")}}function w3(t,n){if(1&t&&X(0,"app-heading",11),2&t){const e=M().$implicit;C("heading",e.code)("level",e.title)}}function b3(t,n){if(1&t&&(d(0,"div"),P(1,_3,1,1,"markdown",2),P(2,v3,1,4,"app-code-window",3),P(3,C3,1,4,"img",4),P(4,y3,2,1,"button",5),P(5,w3,1,2,"app-heading",6),p()),2&t){const e=n.$implicit;He("font-size",M().getFontSize()+"px"),_(1),C("ngIf","textblock"==e.type),_(1),C("ngIf","codeblock"==e.type),_(1),C("ngIf","image"==e.type),_(1),C("ngIf","file"==e.type),_(1),C("ngIf","heading"==e.type)}}let e1=(()=>{class t{constructor(e,r,o,i){this.mdService=e,this.http=r,this.localStorageService=o,this.irisinterfaceService=i,this.data="",this.blocks=[]}ngOnInit(){var e=this;return Bi(function*(){let r=e.data.split("\n");for(let o=0;ou);null!=c?s=c:console.log("error getting image")}e.blocks.push({type:"image",code:s,language:a,title:i})}else if(r[o].startsWith("$$$[")){let i=r[o].split("[")[1].split("]")[0],s=r[o].split("(")[1].split(")")[0];e.blocks.push({type:"file",code:s,language:"",title:i})}else if(r[o].trim().startsWith("#")){let i=r[o].replace(/#/g,"").trim(),s=r[o].split(" ")[0].length,a=i.toLowerCase().replace(/ /g,"-");e.blocks.push({type:"heading",code:i,language:a,title:s})}else{let i="",s=!1;for(;o{const o=document.createElement("a");o.href="data:text/plain;charset=utf-8,"+encodeURIComponent(r.content),o.download=r.name,o.click()},error:r=>{De.showNotification("ERROR","Error getting file: "+r.message+"!",-1,!0)}})}}return t.\u0275fac=function(e){return new(e||t)(w(Tc),w(xc),w(at),w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-markdown-content"]],inputs:{data:"data"},decls:2,vars:1,consts:[[1,"contentBox"],[3,"font-size",4,"ngFor","ngForOf"],[3,"data",4,"ngIf"],[3,"code","language","title","copyable",4,"ngIf"],[3,"src","alt","style",4,"ngIf"],["class","downloadButton",3,"click",4,"ngIf"],[3,"heading","level",4,"ngIf"],[3,"data"],[3,"code","language","title","copyable"],[3,"src","alt"],[1,"downloadButton",3,"click"],[3,"heading","level"]],template:function(e,r){1&e&&(d(0,"div",0),P(1,b3,6,7,"div",1),p()),2&e&&(_(1),C("ngForOf",r.blocks))},dependencies:[Pn,Se,Yb,s3,m3],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px;color:var(--text-color)}.downloadButton[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;cursor:pointer;height:50px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080;margin:0 5px 10px 20px}.downloadButton[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.downloadButton[_ngcontent-%COMP%]:hover{background:var(--primary-color);transform:scale(1)}}"]}),t})();function M3(t,n){if(1&t&&(d(0,"div")(1,"h1",2),f(2,"hint"),p(),X(3,"app-markdown-content",1),p()),2&t){const e=M(2);_(3),C("data",e.page.Hint)}}function D3(t,n){if(1&t&&(d(0,"div")(1,"h1",2),f(2,"Result"),p(),X(3,"app-markdown-content",1),p()),2&t){const e=M(2);_(3),C("data",e.page.Result)}}function x3(t,n){if(1&t&&(d(0,"div"),X(1,"app-markdown-content",1),P(2,M3,4,1,"div",0),P(3,D3,4,1,"div",0),p()),2&t){const e=M();_(1),C("data",e.page.Content),_(1),C("ngIf",e.showhint),_(1),C("ngIf",e.showResult)}}let E3=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"data"],[1,"heading"]],template:function(e,r){1&e&&P(0,x3,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Se,e1],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function S3(t,n){if(1&t){const e=q();d(0,"img",5),v("click",function(){return A(e),N(M().showNext())}),p()}2&t&&C("src","assets/imgs/"+(M().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",tr)}function P3(t,n){if(1&t){const e=q();d(0,"img",6),v("click",function(){return A(e),N(M().showPrev())}),p()}2&t&&C("src","assets/imgs/"+(M().getDarkModeEnabled()?"darkmode":"lightmode")+"/navigatePage.png",tr)}function O3(t,n){if(1&t){const e=q();d(0,"button",7),v("click",function(){return A(e),N(M().showhint())}),f(1,"Show hint"),p()}}function I3(t,n){if(1&t){const e=q();d(0,"button",7),v("click",function(){return A(e),N(M().showResult())}),f(1,"Show result"),p()}}function T3(t,n){if(1&t){const e=q();d(0,"button",7),v("click",function(){return A(e),N(M().showPrev())}),f(1,"Previous"),p()}}function k3(t,n){if(1&t){const e=q();d(0,"button",7),v("click",function(){return A(e),N(M().showNext())}),f(1,"Next"),p()}}let t1=(()=>{class t{constructor(e){this.colorSchemeService=e,this.showNextButton=!0,this.showPrevButton=!0,this.showhintButton=!0,this.showResultButton=!0,this.showNextEmitter=new ce,this.showPrevEmitter=new ce,this.showhintEmitter=new ce,this.showResultEmitter=new ce}showNext(){this.showNextEmitter.emit("showNext")}showPrev(){this.showPrevEmitter.emit("showPrev")}showhint(){this.showhintEmitter.emit("showhint")}showResult(){this.showResultEmitter.emit("showResult")}getDarkModeEnabled(){return this.colorSchemeService.darkModeEnabled}}return t.\u0275fac=function(e){return new(e||t)(w(Vi))},t.\u0275cmp=J({type:t,selectors:[["app-page-nav-bar"]],hostBindings:function(e,r){1&e&&v("keydown.control.arrowright",function(i){return r.showNext(i)},0,Te)("keydown.control.arrowleft",function(i){return r.showPrev(i)},!1,Te)},inputs:{showNextButton:"showNextButton",showPrevButton:"showPrevButton",showhintButton:"showhintButton",showResultButton:"showResultButton"},outputs:{showNextEmitter:"showNextEmitter",showPrevEmitter:"showPrevEmitter",showhintEmitter:"showhintEmitter",showResultEmitter:"showResultEmitter"},decls:8,vars:6,consts:[["class","nextButton navButton","alt","next",3,"src","click",4,"ngIf"],["class","prevButton navButton","alt","previous",3,"src","click",4,"ngIf"],[1,"showButtons"],[3,"click",4,"ngIf"],[1,"showButtons","mobile"],["alt","next",1,"nextButton","navButton",3,"src","click"],["alt","previous",1,"prevButton","navButton",3,"src","click"],[3,"click"]],template:function(e,r){1&e&&(P(0,S3,1,1,"img",0),P(1,P3,1,1,"img",1),d(2,"div",2),P(3,O3,2,0,"button",3),P(4,I3,2,0,"button",3),p(),d(5,"div",4),P(6,T3,2,0,"button",3),P(7,k3,2,0,"button",3),p()),2&e&&(C("ngIf",r.showNextButton),_(1),C("ngIf",r.showPrevButton),_(2),C("ngIf",r.showhintButton),_(1),C("ngIf",r.showResultButton),_(2),C("ngIf",r.showPrevButton),_(1),C("ngIf",r.showNextButton))},dependencies:[Se],styles:[".navButton[_ngcontent-%COMP%]{position:fixed;width:50px;height:50px;top:50%;cursor:pointer}.nextButton[_ngcontent-%COMP%]{transform:rotate(180deg);left:93%}.nextButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveRight 1s ease-in-out forwards}.prevButton[_ngcontent-%COMP%]{right:93%}.prevButton[_ngcontent-%COMP%]:hover{animation:_ngcontent-%COMP%_moveLeft 1s ease-in-out forwards}.showButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.showButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.mobile[_ngcontent-%COMP%]{display:none}@media screen and (max-width: 800px){.nextButton[_ngcontent-%COMP%], .prevButton[_ngcontent-%COMP%]{display:none}.mobile[_ngcontent-%COMP%]{display:flex}}@keyframes _ngcontent-%COMP%_moveLeft{0%{transform:translate(0)}to{transform:translate(-20%)}}@keyframes _ngcontent-%COMP%_moveRight{0%{transform:translate(0) rotate(180deg)}to{transform:translate(20%) rotate(180deg)}}"]}),t})();function A3(t,n){if(1&t&&(d(0,"p",7),f(1),p()),2&t){const e=M();_(1),se(e.wrongText)}}let N3=(()=>{class t{constructor(e){this.apiService=e,this.enteredPassword="",this.isWrong=!1,this.wrongText="",this.type="password",this.chapterName="",this.passwordEntered=new ce}submit(){this.apiService.verifyChapter(this.chapterName,this.enteredPassword).subscribe({next:e=>{e.status?(this.passwordEntered.emit(this.enteredPassword),this.isWrong=!1,this.enteredPassword=""):(this.isWrong=!0,this.enteredPassword="",this.wrongText="Wrong password")},error:e=>{this.isWrong=!0,this.wrongText=e.message}})}viewPassword(){this.type="password"===this.type?"text":"password"}close(){this.passwordEntered.emit(void 0),this.isWrong=!1,this.enteredPassword=""}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-password-query"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},inputs:{chapterName:"chapterName"},outputs:{passwordEntered:"passwordEntered"},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["name","password","placeholder","Password",1,"passwordInput",3,"type","ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"viewButton",3,"click"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Enter Password"),p(),P(4,A3,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"input",4),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(8,"button",5),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(9," Submit "),p(),d(10,"button",6),v("click",function(){return r.viewPassword()}),f(11),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("type",r.type)("ngModel",r.enteredPassword),_(4),Xe(" ","password"==r.type?"View":"Hide"," "))},dependencies:[Se,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:50%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{left:50%;top:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}"]}),t})();function R3(t,n){if(1&t){const e=q();d(0,"div")(1,"li")(2,"a",5),v("click",function(){const i=A(e).$implicit;return N(M().selectPage(i.page))}),f(3),p()()()}if(2&t){const e=n.$implicit,r=n.index,o=M();_(1),He("font-size",21-2*e.level,"px")("margin-left",10*(e.level-1),"px"),_(1),xn(o.checkIfHeadingIsCurrent(r)?"current":""),_(1),Xe("",e.text," ")}}let n1=(()=>{class t{constructor(){this.event=new ce,this.chapter=void 0,this.currentPage=0,this.headings=[]}ngOnInit(){let e=!1;for(let r=0;r=this.headings[e].page&&this.currentPage0?"Page ":"No Pages"),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngForOf",e.chapter.Pages),_(1),C("showPrevButton",0!=e.currentPage&&e.chapter.Pages.length>0)("showNextButton",e.currentPage!=e.chapter.Pages.length-1&&e.chapter.Pages.length>0)("showResultButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Result&&!e.resultVisible)("showhintButton",e.chapter.Pages.length>0&&""!=e.chapter.Pages[e.currentPage].Hint&&!e.hintVisible)}}function $3(t,n){if(1&t){const e=q();d(0,"app-table-of-content",17),v("event",function(o){return A(e),N(M().onTOCInput(o))}),p()}if(2&t){const e=M();C("chapter",e.chapter)("currentPage",e.currentPage)}}let r1=(()=>{class t{constructor(e,r,o,i){this.router=e,this.route=r,this.chapterManger=o,this.localStorageService=i,this.currentPage=0,this.chapterName="",this.hintVisible=!1,this.resultVisible=!1,this.exportOptionsVisible=!1,this.contentVisible=!0,this.pageInput=1,this.showTOC=!1}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManger.init().then(()=>{let r;this.chapterName.includes("~")&&(r=this.chapterName.split("~")[1].toLowerCase(),this.chapterName=this.chapterName.split("~")[0]),this.chapter=this.chapterManger.getChapterByName(this.chapterName,!0),this.chapter.IsPrivate?2==K.userLevel||1==K.userLevel&&this.chapter.Author==K.userName?this.contentVisible=!0:this.router.navigate(["/login"]):((2==K.userLevel||1==K.userLevel&&this.chapter.Author==K.userName)&&sa.verifyChapter(this.chapter.Title,"",!1),this.contentVisible=sa.isChapterVerified(this.chapter.Title));let o=this.localStorageService.getPageForChapter(this.chapterName);if(o<0&&(o=0),o>this.chapter.Pages.length-1&&(o=this.chapter.Pages.length-1),this.currentPage=o,this.pageInput=this.currentPage+1,null!=r){let i=Yh.getChapterPageForHeading(this.chapter,r,!0);-1!=i&&(this.currentPage=i,this.pageInput=this.currentPage+1)}})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:(this.currentPage=this.pageInput-1,this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}verifyChapter(e){null!=e?(sa.verifyChapter(this.chapter.Title,e),this.contentVisible=!0):this.router.navigate(["/"])}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,this.hintVisible=!1,this.resultVisible=!1,window.scrollTo({top:0}),this.localStorageService.setPageForChapter(this.chapterName,this.currentPage))}showhint(){this.hintVisible=!0}showResult(){this.resultVisible=!0}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}goBack(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(ur),w(To),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-chapter"]],inputs:{chapter:"chapter",currentPage:"currentPage"},decls:4,vars:4,consts:[[3,"chapterName","passwordEntered",4,"ngIf"],["class","content",4,"ngIf"],[3,"chapter","currentPage","event",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[3,"chapterName","passwordEntered"],[1,"content"],[1,"header"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[4,"ngIf"],[3,"page","show","showhint","showResult",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter","showhintEmitter","showResultEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult"],[3,"chapter","currentPage","event"]],template:function(e,r){1&e&&(P(0,F3,1,1,"app-password-query",0),P(1,H3,18,9,"div",1),P(2,$3,1,2,"app-table-of-content",2),d(3,"app-header",3),v("pageChange",function(i){return r.onTOCInput(i-1)}),p()),2&e&&(C("ngIf",!r.contentVisible),_(1),C("ngIf",r.contentVisible),_(1),C("ngIf",r.showTOC),_(1),C("chapter",r.chapter))},dependencies:[Pn,Se,It,Uc,yt,zc,jc,pt,fr,E3,t1,N3,n1],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:50px;font-size:14px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.header[_ngcontent-%COMP%] .exportButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}"]}),t})();function U3(t,n){if(1&t){const e=q();d(0,"div",4)(1,"button",5),v("click",function(){return A(e),N(M().uploadImage())}),f(2," Upload "),p(),d(3,"button",6),v("click",function(){return A(e),N(M().select())}),f(4," Select existing "),p()()}}function j3(t,n){if(1&t&&(d(0,"option",10),f(1),p()),2&t){const e=n.$implicit;C("value",e),_(1),Xe(" ",e," ")}}function z3(t,n){if(1&t){const e=q();d(0,"div",4)(1,"select",7),v("ngModelChange",function(o){return A(e),N(M().selectedImage=o)}),P(2,j3,2,2,"option",8),p(),d(3,"button",9),v("click",function(){return A(e),N(M().selectTheImage())}),f(4," Ok "),p()()}if(2&t){const e=M();_(1),C("ngModel",e.selectedImage),_(1),C("ngForOf",e.imageNames)}}let G3=(()=>{class t{constructor(e){this.apiService=e,this.imageEmitter=new ce,this.selectImage=!1,this.selectedImage="",this.imageNames=[]}close(){this.imageEmitter.emit("")}select(){this.apiService.getAllImageNames().subscribe({next:e=>{this.imageNames=e,this.selectImage=!0},error:e=>{De.showNotification("Error getting image names",e.message,-1,!0)}})}selectTheImage(){this.imageEmitter.emit(`?[${this.selectedImage}](${this.selectedImage}){width:100%}`)}uploadImage(){const e=document.createElement("input");e.type="file",e.accept="image/*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsDataURL(o),i.onload=()=>{this.apiService.uploadImage(o.name,i.result).subscribe({next:a=>{a.status?(De.showNotification("Success","Image uploaded: "+a.newName),this.imageEmitter.emit(`?[${a.newName}](${a.newName}){width:100%}`)):De.showNotification("Error uploading image","Could not upload image!",5e3,!0)},error:a=>{De.showNotification("Error uploading image",a.message,-1,!0)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-add-image"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{imageEmitter:"imageEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectImage",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3),p(),d(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),p(),P(6,U3,5,0,"div",3),P(7,z3,5,2,"div",3),p()),2&e&&(_(3),se(r.selectImage?"Select Image":"Add Image"),_(3),C("ngIf",!r.selectImage),_(1),C("ngIf",r.selectImage))},dependencies:[Pn,Se,fa,ga,Oo,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})(),W3=(()=>{class t{constructor(e){this.localStorageService=e,this.toLanguage="en",this.excludeCodeBlocks=!0,this.translatePage=!1,this.eventEmitter=new ce,this.toLanguage=this.localStorageService.getLanguageTo()}submit(){this.localStorageService.setLanguageTo(this.toLanguage);let e=this.toLanguage;this.excludeCodeBlocks&&(e+=",excludeCodeBlocks"),this.translatePage&&(e+=",translatePage"),this.eventEmitter.emit(e),this.translatePage=!1,this.excludeCodeBlocks=!0}close(){this.eventEmitter.emit("close")}}return t.\u0275fac=function(e){return new(e||t)(w(at))},t.\u0275cmp=J({type:t,selectors:[["app-translate-spec"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{eventEmitter:"eventEmitter"},decls:19,vars:7,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"toLanguage"],["type","text","name","toLanguage","placeholder","To Language",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"checkBoxCon"],["type","checkbox","name","excludeCodeBlocks",3,"ngModel","ngModelChange"],["type","checkbox","name","translatePage",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Translate Text"),p(),d(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),p(),d(6,"p",3),f(7,"Translate to..."),p(),d(8,"input",4),v("ngModelChange",function(i){return r.toLanguage=i})("keydown.enter",function(){return r.submit()}),p(),d(9,"div",5)(10,"input",6),v("ngModelChange",function(i){return r.excludeCodeBlocks=i}),p(),d(11,"p"),f(12,"Exclude Codeblocks"),p()(),d(13,"div",5)(14,"input",7),v("ngModelChange",function(i){return r.translatePage=i}),p(),d(15,"p"),f(16,"Translate Page"),p()(),d(17,"button",8),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(18," Translate "),p()()),2&e&&(_(8),C("ngModel",r.toLanguage),_(1),He("top","50%"),_(1),C("ngModel",r.excludeCodeBlocks),_(3),He("top","65%"),_(1),C("ngModel",r.translatePage))},dependencies:[It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;color:varvar(--inverted-text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:37%}.container[_ngcontent-%COMP%] .toLanguage[_ngcontent-%COMP%]{top:20%}.checkBoxCon[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);display:flex;flex-direction:row;margin-top:5px}.checkBoxCon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.checkBoxCon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:120px;margin-top:2px;width:200px;font-size:20px;color:var(--inverted-text-color);cursor:pointer;text-align:left}"]}),t})();function q3(t,n){if(1&t){const e=q();d(0,"div",4)(1,"button",5),v("click",function(){return A(e),N(M().uploadFile())}),f(2," Upload "),p(),d(3,"button",6),v("click",function(){return A(e),N(M().select())}),f(4," Select existing "),p()()}}function Y3(t,n){if(1&t&&(d(0,"option",10),f(1),p()),2&t){const e=n.$implicit;C("value",e),_(1),Xe(" ",e," ")}}function Z3(t,n){if(1&t){const e=q();d(0,"div",4)(1,"select",7),v("ngModelChange",function(o){return A(e),N(M().selectedFile=o)}),P(2,Y3,2,2,"option",8),p(),d(3,"button",9),v("click",function(){return A(e),N(M().selectTheFile())}),f(4," Ok "),p()()}if(2&t){const e=M();_(1),C("ngModel",e.selectedFile),_(1),C("ngForOf",e.fileNames)}}let X3=(()=>{class t{constructor(e){this.apiService=e,this.fileEmitter=new ce,this.selectFile=!1,this.selectedFile="",this.fileNames=[]}close(){this.fileEmitter.emit("")}select(){this.apiService.getAllFileNames().subscribe({next:e=>{this.fileNames=e,this.selectFile=!0},error:e=>{De.showNotification("Error getting file names",e.message,-1,!0)}})}selectTheFile(){this.fileEmitter.emit(`$$$[Download](${this.selectedFile})`)}uploadFile(){const e=document.createElement("input");e.type="file",e.accept="*",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o),i.onload=()=>{this.apiService.uploadFile(o.name,i.result).subscribe({next:s=>{s.status?(De.showNotification("Success","File uploaded: "+s.newName),this.fileEmitter.emit(`$$$[Download](${s.newName})`)):De.showNotification("Error uploading file","Could not upload file!",5e3,!0)},error:s=>{De.showNotification("Error uploading file",s.message,-1,!0)}})}},e.click()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-add-file"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{fileEmitter:"fileEmitter"},decls:8,vars:3,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],["class","buttonContainer",4,"ngIf"],[1,"buttonContainer"],[1,"submitButton",2,"right","30px",3,"click"],[1,"submitButton",2,"left","30px",3,"click"],["name","SelectFile",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3),p(),d(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),p(),P(6,q3,5,0,"div",3),P(7,Z3,5,2,"div",3),p()),2&e&&(_(3),se(r.selectFile?"Select File":"Add File"),_(3),C("ngIf",!r.selectFile),_(1),C("ngIf",r.selectFile))},dependencies:[Pn,Se,fa,ga,Oo,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function K3(t,n){if(1&t){const e=q();d(0,"app-add-image",5),v("imageEmitter",function(o){return A(e),N(M().addImage(o))}),p()}}function Q3(t,n){if(1&t){const e=q();d(0,"app-add-file",6),v("fileEmitter",function(o){return A(e),N(M().addFile(o))}),p()}}function J3(t,n){if(1&t){const e=q();d(0,"app-translate-spec",7),v("eventEmitter",function(o){return A(e),N(M().translateSpec(o))}),p()}}let e5=(()=>{class t{constructor(e,r){this.apiService=e,this.router=r,this.addImageOpened=!1,this.addFileOpened=!1,this.translateSpecOpen=!1,this.eventEmitter=new ce}emit(e){this.eventEmitter.emit(e)}addImage(e){""!==e&&this.emit(e),this.addImageOpened=!1}addFile(e){""!==e&&this.emit(e),this.addFileOpened=!1}openAddImage(){this.addImageOpened=!0}openAddFile(){this.addFileOpened=!0}openTranslateSpec(){this.translateSpecOpen=!0}closeTranslateSpec(){this.translateSpecOpen=!1}closeAddImage(){this.addImageOpened=!1}translateSpec(e){"close"!==e&&this.emit("translate,"+e),this.closeTranslateSpec()}help(){this.router.navigate(["/help/edit"])}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(ke))},t.\u0275cmp=J({type:t,selectors:[["app-markdown-editor"]],outputs:{eventEmitter:"eventEmitter"},decls:20,vars:5,consts:[[1,"editor"],[3,"click"],[3,"imageEmitter",4,"ngIf"],[3,"fileEmitter",4,"ngIf"],[3,"eventEmitter",4,"ngIf"],[3,"imageEmitter"],[3,"fileEmitter"],[3,"eventEmitter"]],template:function(e,r){1&e&&(d(0,"div",0)(1,"button",1),v("click",function(){return r.emit("bold")}),d(2,"b"),f(3,"Bold"),p()(),d(4,"button",1),v("click",function(){return r.emit("italic")}),d(5,"i"),f(6,"Italic"),p()(),d(7,"button",1),v("click",function(){return r.emit("code")}),f(8,"Code"),p(),d(9,"button",1),v("click",function(){return r.openAddImage()}),f(10,"Image"),p(),d(11,"button",1),v("click",function(){return r.openAddFile()}),f(12,"File"),p(),d(13,"button",1),v("click",function(){return r.openTranslateSpec()}),f(14,"Translate"),p(),d(15,"button",1),v("click",function(){return r.help()}),f(16,"Help"),p()(),P(17,K3,1,0,"app-add-image",2),P(18,Q3,1,0,"app-add-file",3),P(19,J3,1,0,"app-translate-spec",4)),2&e&&(_(13),He("width",100,"px"),_(4),C("ngIf",r.addImageOpened),_(1),C("ngIf",r.addFileOpened),_(1),C("ngIf",r.translateSpecOpen))},dependencies:[Se,G3,W3,X3],styles:[".editor[_ngcontent-%COMP%]{width:100%;background:var(--header-color);height:50px;display:flex;align-items:center;border-radius:5px;margin-bottom:20px;box-shadow:0 0 10px #0003}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:70px;font-size:20px;height:30px;background:var(--primary-color);border-radius:5px;border:none;outline:none;cursor:pointer;margin:0 10px;color:var(--inverted-text-color);box-shadow:0 0 5px #00000080}.editor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 0 5px #000c;scale:1.05}"]}),t})(),t5=(()=>{class t{constructor(e,r){this.localStorageService=e,this.apiService=r,this.type="",this.changeEmitter=new ce,this.data="",this.dataBefore=void 0,this.focus=!1,this.slectionContent="",this.selectionStart=-1,this.selectionEnd=-1,this.getData()}handleKeydown(e){if("Tab"==e.key){e.preventDefault();var r=e.target.selectionStart,o=e.target.selectionEnd;e.target.value=e.target.value.substring(0,r)+"\t"+e.target.value.substring(o),e.target.selectionStart=e.target.selectionEnd=r+1,this.data=e.target.value,this.setData()}}ngOnInit(){this.getData()}onFocus(){this.focus=!0}onFocusOut(){this.focus=!1}selectionchange(e){this.selectionStart=e.target.selectionStart,this.selectionEnd=e.target.selectionEnd,this.slectionContent=e.target.value.substr(this.selectionStart,this.selectionEnd-this.selectionStart)}onEditorInput(e){let r=this.focus;this.focus=!0,"bold"===e?this.bold():"italic"===e?this.italic():"code"===e?this.code():e.startsWith("![")||e.startsWith("?[")||e.startsWith("$$$[")?this.addImage(e):e.startsWith("translate")&&this.translate(e.split(",")[1],e.includes("excludeCodeBlocks"),e.includes("translatePage")),this.focus=r}translate(e="en",r,o){var i=this;return Bi(function*(){o?(i.page.Content=yield i.translateText(i.page.Content,e,r),i.page.Hint=yield i.translateText(i.page.Hint,e,r),i.page.Result=yield i.translateText(i.page.Result,e,r),i.changeEmitter.emit()):(i.data=yield i.translateText(i.data,e,r),i.setData())})()}translateText(e,r="en",o){var i=this;return Bi(function*(){let s=e.split("\n"),a="",l=!1;for(let c=0;cg.text))+"\n"}return a})()}copyLineUp(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(i-1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}copyLineDown(){if(!this.focus)return;let e=this.data.split("\n"),r=0,o=[],i=-1;for(let s=0;sthis.selectionStart?(o.push(e[s]),i=s):o.length>0&&o.push(e[s]),r>this.selectionEnd){e.splice(s+1,0,o.join("\n"));break}this.data=e.join("\n"),this.setData()}addImage(e){this.data+="\n"+e,this.setData()}bold(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"**"+this.slectionContent+"**"+this.data.substr(this.selectionEnd),this.setData())}italic(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"_"+this.slectionContent+"_"+this.data.substr(this.selectionEnd),this.setData())}code(){this.focus&&(this.data=this.data.substr(0,this.selectionStart)+"`"+this.slectionContent+"`"+this.data.substr(this.selectionEnd),this.setData())}setToDatBefore(){!this.focus||!this.dataBefore||(this.data=this.dataBefore,this.dataBefore=void 0,this.setData())}getData(){"content"===this.type&&(this.data=this.page.Content),"hint"===this.type&&(this.data=this.page.Hint),"result"===this.type&&(this.data=this.page.Result)}setData(){this.dataBefore=this.data,"content"===this.type&&(this.page.Content=this.data),"hint"===this.type&&(this.page.Hint=this.data),"result"===this.type&&(this.page.Result=this.data),this.changeEmitter.emit()}autoComplete(){let e=this.data[this.data.length-1];"["===e&&(this.data+="]"),"("===e&&(this.data+=")"),'"'===e&&(this.data+='"'),"'"===e&&(this.data+="'"),"{"===e&&(this.data+="}"),"_"===e&&(this.data+="_"),"*"===e&&(this.data+="*"),"`"===e&&(this.data+="`")}getFontSize(){return this.localStorageService.getFontSize()}getHeight(){let e=this.data.split("\n").length*this.getFontSize()*2;return e<50?50:e}}return t.\u0275fac=function(e){return new(e||t)(w(at),w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-edit-content"]],hostBindings:function(e,r){1&e&&v("keydown.shift.alt.arrowup",function(i){return r.copyLineUp(i)},0,Te)("keydown.shift.alt.arrowdown",function(i){return r.copyLineDown(i)},!1,Te)("keydown.control.alt.b",function(i){return r.bold(i)},!1,Te)("keydown.control.alt.i",function(i){return r.italic(i)},!1,Te)("keydown.control.alt.c",function(i){return r.code(i)},!1,Te)("keydown.control.z",function(i){return r.setToDatBefore(i)},!1,Te)},inputs:{type:"type",page:"page"},outputs:{changeEmitter:"changeEmitter"},decls:4,vars:5,consts:[[1,"contentBox"],[3,"eventEmitter"],["spellcheck","false",3,"ngModel","keydown","ngModelChange","selectionchange","focusout","focus"],["editor",""]],template:function(e,r){1&e&&(d(0,"div",0)(1,"app-markdown-editor",1),v("eventEmitter",function(i){return r.onEditorInput(i)}),p(),d(2,"textarea",2,3),v("keydown",function(i){return r.handleKeydown(i)})("ngModelChange",function(i){return r.data=i})("ngModelChange",function(){return r.setData()})("selectionchange",function(i){return r.selectionchange(i)})("focusout",function(){return r.onFocusOut()})("focus",function(){return r.onFocus()}),p()()),2&e&&(_(2),He("font-size",r.getFontSize()+"px")("height",r.getHeight()+"px"),C("ngModel",r.data))},dependencies:[It,yt,pt,e5],styles:[".contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:none;border-radius:10px;resize:vertical;color:var(--text-color);background-color:var(--bg-color)}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:1px solid #ccc}"]}),t})();function n5(t,n){if(1&t){const e=q();d(0,"div")(1,"h1",2),f(2,"hint"),p(),d(3,"app-edit-content",3),v("changeEmitter",function(){return A(e),N(M(2).onChange())}),p()()}if(2&t){const e=M(2);_(3),C("page",e.page)}}function r5(t,n){if(1&t){const e=q();d(0,"div")(1,"h1",2),f(2,"Result"),p(),d(3,"app-edit-content",4),v("changeEmitter",function(){return A(e),N(M(2).onChange())}),p()()}if(2&t){const e=M(2);_(3),C("page",e.page)}}function o5(t,n){if(1&t){const e=q();d(0,"div")(1,"app-edit-content",1),v("changeEmitter",function(){return A(e),N(M().onChange())}),p(),P(2,n5,4,1,"div",0),P(3,r5,4,1,"div",0),p()}if(2&t){const e=M();_(1),C("page",e.page),_(1),C("ngIf",e.showhint),_(1),C("ngIf",e.showResult)}}let i5=(()=>{class t{constructor(){this.show=!1,this.showhint=!1,this.showResult=!1,this.changeEmitter=new ce}onChange(){this.changeEmitter.emit()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-edit-page"]],inputs:{page:"page",show:"show",showhint:"showhint",showResult:"showResult"},outputs:{changeEmitter:"changeEmitter"},decls:1,vars:1,consts:[[4,"ngIf"],["type","content",3,"page","changeEmitter"],[1,"heading"],["type","hint",3,"page","changeEmitter"],["type","result",3,"page","changeEmitter"]],template:function(e,r){1&e&&P(0,o5,4,3,"div",0),2&e&&C("ngIf",r.show)},dependencies:[Se,t5],styles:[".heading[_ngcontent-%COMP%]{font-size:2rem;margin-bottom:1rem;text-align:center;text-transform:uppercase;letter-spacing:.1rem;line-height:1.2;padding:1rem 0;border-radius:.5rem;width:20%;margin:0 auto;color:var(--text-color)}"]}),t})();function s5(t,n){if(1&t&&(d(0,"p",13),f(1),p()),2&t){const e=M();_(1),se(e.wrongText)}}let a5=(()=>{class t{constructor(e){this.apiService=e,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1,this.updateChapter=void 0,this.isWrong=!1,this.wrongText="",this.closeEmitter=new ce}submit(){var e=this;return Bi(function*(){void 0!==e.updateChapter&&(e.updateChapter.Password=e.password,e.updateChapter.Language=e.language,e.updateChapter.Description=e.description,e.updateChapter.IsPrivate=e.isPrivate,e.apiService.updateChapter(e.updateChapter).subscribe({next:r=>{r.status?(e.closeEmitter.emit(),e.name="",e.language="english",e.password="",e.description="",e.updateChapter=void 0,e.isPrivate=!1):(e.isWrong=!0,e.wrongText="error")},error:r=>{e.isWrong=!0,e.wrongText=r.message}}))})()}close(){this.closeEmitter.emit(),this.isWrong=!1,this.name="",this.language="english",this.password="",this.description="",this.isPrivate=!1}}return t.\u0275fac=function(e){return new(e||t)(w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-edit-chapter-meta-data"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},inputs:{name:"name",language:"language",password:"password",description:"description",isPrivate:"isPrivate",updateChapter:"updateChapter"},outputs:{closeEmitter:"closeEmitter"},decls:21,vars:6,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],[2,"top","60px"],["type","text","name","language","placeholder","Language",1,"userNameInput",2,"top","110px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","130px"],["type","text","name","password","placeholder","Password",1,"userNameInput",2,"top","180px",3,"ngModel","ngModelChange","keydown.enter"],[2,"top","200px"],["type","checkbox","name","private",1,"userNameInput",2,"top","250px","cursor","pointer",3,"ngModel","ngModelChange"],[2,"top","270px"],["name","description","placeholder","Description",2,"top","390px","resize","none",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3),p(),P(4,s5,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"p",4),f(8,"Language"),p(),d(9,"input",5),v("ngModelChange",function(i){return r.language=i})("keydown.enter",function(){return r.submit()}),p(),d(10,"p",6),f(11,"Password"),p(),d(12,"input",7),v("ngModelChange",function(i){return r.password=i})("keydown.enter",function(){return r.submit()}),p(),d(13,"p",8),f(14,"Private"),p(),d(15,"input",9),v("ngModelChange",function(i){return r.isPrivate=i}),p(),d(16,"p",10),f(17,"Description"),p(),d(18,"textarea",11),v("ngModelChange",function(i){return r.description=i}),p(),d(19,"button",12),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(20," Save "),p()()),2&e&&(_(3),se(null==r.updateChapter?"":r.updateChapter.Title),_(1),C("ngIf",r.isWrong),_(5),C("ngModel",r.language),_(3),C("ngModel",r.password),_(3),C("ngModel",r.isPrivate),_(3),C("ngModel",r.description))},dependencies:[Se,It,Po,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:550px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);color:var(--inverted-text-color);border-radius:5px;width:40%;height:40px;font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);background:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;border:none;text-align:center;font-size:20px}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:5px;width:80%;height:150px;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:530px}"]}),t})();function l5(t,n){if(1&t){const e=q();d(0,"button",15),v("click",function(){return A(e),N(M(2).goBack())}),f(1,"Back"),p()}}function c5(t,n){if(1&t){const e=q();d(0,"div",16),v("click",function(){return A(e),N(M(2).setTOC(!0))}),X(1,"div",17)(2,"div",17)(3,"div",17),p()}}function u5(t,n){if(1&t){const e=q();d(0,"input",22),v("ngModelChange",function(o){return A(e),N(M(3).pageInput=o)})("ngModelChange",function(){return A(e),N(M(3).onPageInput())}),p()}if(2&t){const e=M(3);C("ngModel",e.pageInput)("min",1)("max",e.chapter.Pages.length)}}function d5(t,n){if(1&t&&(d(0,"i"),f(1),p()),2&t){const e=M(3);_(1),se("/ "+e.chapter.Pages.length)}}function p5(t,n){if(1&t){const e=q();d(0,"app-edit-page",23),v("changeEmitter",function(){return A(e),N(M(3).onChange())}),p()}if(2&t){const e=n.$implicit,r=n.index,o=M(3);C("page",e)("show",r==o.currentPage)("showhint",!0)("showResult",!0)}}function h5(t,n){if(1&t){const e=q();d(0,"button",11),v("click",function(){return A(e),N(M(3).setSureDelete(!0))}),f(1," Remove Page "),p()}}function f5(t,n){if(1&t){const e=q();d(0,"div")(1,"div",18)(2,"h1"),f(3),p(),d(4,"p")(5,"i"),f(6),p(),P(7,u5,1,3,"input",19),P(8,d5,2,1,"i",6),p()(),P(9,p5,1,4,"app-edit-page",20),d(10,"app-page-nav-bar",21),v("showNextEmitter",function(){return A(e),N(M(2).showNextPage())})("showPrevEmitter",function(){return A(e),N(M(2).showPrevPage())}),p(),d(11,"div",9),P(12,h5,2,0,"button",10),d(13,"button",11),v("click",function(){return A(e),N(M(2).addPage())}),f(14,"Add Page"),p()(),d(15,"div",9)(16,"button",11),v("click",function(){return A(e),N(M(2).toggleEditMetaData())}),f(17,"Edit meta data"),p(),d(18,"button",11),v("click",function(){return A(e),N(M(2).toggleAutoSave())}),f(19),p()()()}if(2&t){const e=M(2);_(3),se(e.chapter.Title+" EDIT"),_(3),se(e.chapter.Pages.length>0?"Page ":"No Pages"),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngIf",e.chapter.Pages.length>0),_(1),C("ngForOf",e.chapter.Pages),_(1),C("showPrevButton",0!=e.currentPage)("showNextButton",e.currentPage!=e.chapter.Pages.length-1)("showResultButton",!1)("showhintButton",!1),_(2),C("ngIf",e.chapter.Pages.length>0),_(7),Xe(" ","Autosave "+(e.getAutoSave()?"ON":"OFF")," ")}}function g5(t,n){1&t&&(d(0,"h1",24),f(1,"PREVIEW"),p())}function m5(t,n){if(1&t&&X(0,"app-chapter",25),2&t){const e=M(2);C("chapter",e.chapter)("currentPage",e.currentPage)}}function _5(t,n){if(1&t){const e=q();d(0,"button",11),v("click",function(){return A(e),N(M(2).togglePreview())}),f(1),p()}if(2&t){const e=M(2);_(1),Xe(" ",e.preview?"Edit":"Preview"," ")}}function v5(t,n){if(1&t){const e=q();d(0,"app-table-of-content",26),v("event",function(o){return A(e),N(M(2).onTOCInput(o))}),p()}if(2&t){const e=M(2);C("chapter",e.chapter)("currentPage",e.currentPage)}}function C5(t,n){if(1&t){const e=q();d(0,"app-edit-chapter-meta-data",27),v("closeEmitter",function(){return A(e),N(M(2).toggleEditMetaData())}),p()}if(2&t){const e=M(2);C("updateChapter",e.chapter)("name",e.chapter.Title)("description",e.chapter.Description)("language",e.chapter.Language)("password",e.chapterPassword)("isPrivate",e.chapter.IsPrivate)}}function y5(t,n){if(1&t){const e=q();d(0,"app-are-you-sure",28),v("sureEmitter",function(o){return A(e),N(M(2).deletePage(o))}),p()}}function w5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"div",3),P(2,l5,2,0,"button",4),P(3,c5,4,0,"div",5),p(),P(4,f5,20,11,"div",6),P(5,g5,2,0,"h1",7),P(6,m5,1,2,"app-chapter",8),d(7,"div",9),P(8,_5,2,1,"button",10),d(9,"button",11),v("click",function(){return A(e),N(M().save())}),f(10),p()(),P(11,v5,1,2,"app-table-of-content",12),P(12,C5,1,6,"app-edit-chapter-meta-data",13),P(13,y5,1,0,"app-are-you-sure",14),p()}if(2&t){const e=M();_(2),C("ngIf",!e.preview),_(1),C("ngIf",!e.preview),_(1),C("ngIf",!e.preview),_(1),C("ngIf",e.preview),_(1),C("ngIf",e.preview),_(2),C("ngIf",e.chapter.Pages.length>0),_(2),se((e.changes?"*":"")+"Save"),_(1),C("ngIf",e.showTOC),_(1),C("ngIf",e.editMetaData),_(1),C("ngIf",e.sureDelete)}}let b5=(()=>{class t{constructor(e,r,o,i,s){this.apiService=e,this.router=r,this.route=o,this.chapterManager=i,this.localStorageService=s,this.currentPage=0,this.preview=!1,this.changes=!1,this.sureDelete=!1,this.editMetaData=!1,this.contentVisible=!0,this.chapterName="",this.pageInput=1,this.showTOC=!1,this.chapterPassword=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("chapterName");null!=e?(this.chapterName=e,this.chapterManager.init().then(()=>{this.chapter=this.chapterManager.getChapterByName(this.chapterName,!0),2==K.userLevel||1==K.userLevel&&this.chapter.Author==K.userName?this.contentVisible=!0:this.router.navigate(["/login"]);let r=this.localStorageService.getPageForChapter(this.chapterName);r<0&&(r=0),r>this.chapter.Pages.length-1&&(r=this.chapter.Pages.length-1),this.currentPage=r,this.pageInput=this.currentPage+1})):this.router.navigate(["/"])}onPageInput(){this.pageInput<1?this.pageInput=1:this.pageInput>this.chapter.Pages.length?this.pageInput=this.chapter.Pages.length:this.currentPage=this.pageInput-1}setTOC(e){this.showTOC=e}onTOCInput(e){-1!=e?(this.currentPage=e,this.pageInput=this.currentPage+1):this.showTOC=!1}showNextPage(){this.currentPage!=this.chapter.Pages.length-1&&(this.currentPage++,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}showPrevPage(){0!=this.currentPage&&(this.currentPage--,this.pageInput=this.currentPage+1,window.scrollTo({top:0}))}addPage(){this.currentPage+1>=this.chapter.Pages.length?this.chapter.Pages.push(new Zh("","","")):this.chapter.Pages.splice(this.currentPage+1,0,new Zh("","","")),this.currentPage++,this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0}setSureDelete(e){this.sureDelete=e}deletePage(e){e&&(this.chapter.Pages.splice(this.currentPage,1),this.currentPage=this.currentPage-1,this.currentPage<0&&(this.currentPage=0),this.pageInput=this.currentPage+1,window.scrollTo({top:0}),this.changes=!0),this.sureDelete=!1}save(e=!0){this.apiService.updateChapter(this.chapter).subscribe({next:r=>{r.status?(e&&De.showNotification("Chapter saved","The chapter was saved successfully!",2e3),this.changes=!1):De.showNotification("Chapter could not be saved","The chapter could not be saved!",5e3,!0)},error:r=>{De.showNotification("ERROR","Chapter could not be saved: "+r.message+"!",-1,!0)}})}onChange(){this.changes=!0}togglePreview(){this.preview=!this.preview,window.scrollTo({top:0})}toggleAutoSave(){t.autoSave=!t.autoSave,this.setAutoSave()}toggleEditMetaData(){this.editMetaData=!this.editMetaData,this.editMetaData&&(console.log(this.chapterName),this.apiService.getChapterPassword(this.chapter.Title,K.userName,K.password).subscribe({next:e=>{this.chapterPassword=e.password},error:e=>{De.showNotification("ERROR","Error getting chapter password: "+e.message+"!",-1,!0),this.chapterPassword=this.chapter.Password}}))}getAutoSave(){return t.autoSave}setAutoSave(){t.autoSave?t.interval=setInterval(()=>{this.save(!1)},1e4):clearInterval(t.interval)}goBack(){this.changes&&this.save(!1),clearInterval(t.interval),this.router.navigate(["/"])}}return t.autoSave=!1,t.\u0275fac=function(e){return new(e||t)(w(Ae),w(ke),w(ur),w(To),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-edit-chapter"]],hostBindings:function(e,r){1&e&&v("keydown.control.alt.a",function(i){return r.addPage(i)},0,Te)("keydown.control.alt.s",function(i){return r.save(i)},!1,Te)("keydown.control.alt.p",function(i){return r.togglePreview(i)},!1,Te)},inputs:{chapter:"chapter"},decls:2,vars:2,consts:[["class","content",4,"ngIf"],[1,"sticky",3,"chapter","pageChange"],[1,"content"],[1,"header"],["class","backButton",3,"click",4,"ngIf"],["class","tocButton",3,"click",4,"ngIf"],[4,"ngIf"],["class","previewHeading",4,"ngIf"],[3,"chapter","currentPage",4,"ngIf"],[1,"editButtons"],[3,"click",4,"ngIf"],[3,"click"],[3,"chapter","currentPage","event",4,"ngIf"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter",4,"ngIf"],[3,"sureEmitter",4,"ngIf"],[1,"backButton",3,"click"],[1,"tocButton",3,"click"],[1,"bar"],[1,"heading"],["class","pageInput","type","number",3,"ngModel","min","max","ngModelChange",4,"ngIf"],[3,"page","show","showhint","showResult","changeEmitter",4,"ngFor","ngForOf"],[3,"showPrevButton","showNextButton","showResultButton","showhintButton","showNextEmitter","showPrevEmitter"],["type","number",1,"pageInput",3,"ngModel","min","max","ngModelChange"],[3,"page","show","showhint","showResult","changeEmitter"],[1,"previewHeading"],[3,"chapter","currentPage"],[3,"chapter","currentPage","event"],[3,"updateChapter","name","description","language","password","isPrivate","closeEmitter"],[3,"sureEmitter"]],template:function(e,r){1&e&&(P(0,w5,14,10,"div",0),d(1,"app-header",1),v("pageChange",function(i){return r.onTOCInput(i-1)}),p()),2&e&&(C("ngIf",r.contentVisible),_(1),C("chapter",r.chapter))},dependencies:[Pn,Se,It,Uc,yt,zc,jc,pt,fr,t1,r1,i5,QM,a5,n1],styles:[".heading[_ngcontent-%COMP%]{text-align:center;color:var(--text-color)}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]{background-color:#7a7a7a44;color:var(--text-color);border-radius:10%;border:none;width:30px;font-size:15px;text-align:center;transition:.2s;box-shadow:none;margin:0 0 0 3px}.heading[_ngcontent-%COMP%] .pageInput[_ngcontent-%COMP%]:focus{outline:none;width:50px}.heading[_ngcontent-%COMP%] input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield}.sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.content[_ngcontent-%COMP%]{margin-top:100px}.editButtons[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:20px}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:var(--primary-color);color:var(--inverted-text-color);border:none;border-radius:8px;padding:5px 10px;margin:0 5px;cursor:pointer;height:50px;width:300px;font-size:20px;transition:.3s;box-shadow:0 0 10px #00000080}.editButtons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:var(--secondary-color);transform:scale(1.05)}.header[_ngcontent-%COMP%]{width:100%;margin-top:20px;display:flex}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.header[_ngcontent-%COMP%] .backButton[_ngcontent-%COMP%]{margin-left:20px;margin-right:auto}.tocButton[_ngcontent-%COMP%]{margin-left:auto;margin-right:20px;cursor:pointer}.tocButton[_ngcontent-%COMP%] .bar[_ngcontent-%COMP%]{width:40px;height:4px;background-color:var(--text-color);margin:6px 0;transition:.4s;border-radius:5px}.previewHeading[_ngcontent-%COMP%]{width:100%;text-align:center;color:var(--text-color)}"]}),t})(),M5=(()=>{class t{constructor(e){this.router=e,this.selected="storage",this.selectedChange=new ce}setSelected(e){this.selected=e,this.router.navigate(["/settings",e]),this.selectedChange.emit(e)}getUserLevel(){return K.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=J({type:t,selectors:[["app-settings-header"]],inputs:{selected:"selected"},outputs:{selectedChange:"selectedChange"},decls:9,vars:8,consts:[[1,"header"],[3,"click"]],template:function(e,r){1&e&&(d(0,"div",0)(1,"button",1),v("click",function(){return r.setSelected("storage")}),f(2," Storage "),p(),d(3,"button",1),v("click",function(){return r.setSelected("server")}),f(4," Server "),p(),d(5,"button",1),v("click",function(){return r.setSelected("user")}),f(6," User "),p(),d(7,"button",1),v("click",function(){return r.setSelected("about")}),f(8," About "),p()()),2&e&&(_(1),xn("storage"==r.selected?"selected":""),_(2),xn("server"==r.selected?"selected":""),_(2),xn("user"==r.selected?"selected":""),_(2),xn("about"==r.selected?"selected":""))},styles:[".header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:150px;margin-left:20px;font-size:20px;padding:10px;cursor:pointer;border:none;background:none;color:var(--text-color);border-radius:10px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}.header[_ngcontent-%COMP%] .selected[_ngcontent-%COMP%]{border:2px solid var(--secondary-color);box-shadow:0 0 10px 0 var(--secondary-color)}@media screen and (max-width: 800px){.header[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;align-items:center;transition:.3s}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100px;margin-left:10px;font-size:15px;padding:5px}.header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background:none;box-shadow:0 0 0 0 var(--secondary-color)}}"]}),t})();function D5(t,n){if(1&t&&(d(0,"option",7),f(1),p()),2&t){const e=n.$implicit;C("value",e),_(1),Xe(" ",e," ")}}let x5=(()=>{class t{constructor(e){this.chaptermanagerService=e,this.chapterEmitter=new ce,this.selectedchapter="",this.chapterNames=[]}ngOnInit(){const e=this.chaptermanagerService.allChapters;for(let r of e){if(0==K.userLevel)return;(r.Author==K.userName||2==K.userLevel)&&this.chapterNames.push(r.Title)}}close(){this.chapterEmitter.emit("")}selectTheChapter(){this.chapterEmitter.emit(this.selectedchapter)}}return t.\u0275fac=function(e){return new(e||t)(w(To))},t.\u0275cmp=J({type:t,selectors:[["app-select-chapter"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},outputs:{chapterEmitter:"chapterEmitter"},decls:11,vars:2,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"buttonContainer"],["name","SelectChapter",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"submitButton",2,"top","40px",3,"click"],[3,"value"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Select chapter"),p(),d(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),p(),d(6,"div",3)(7,"select",4),v("ngModelChange",function(i){return r.selectedchapter=i}),P(8,D5,2,2,"option",5),p(),d(9,"button",6),v("click",function(){return r.selectTheChapter()}),f(10," Ok "),p()()()),2&e&&(_(7),C("ngModel",r.selectedchapter),_(1),C("ngForOf",r.chapterNames))},dependencies:[Pn,fa,ga,Oo,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:200px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;justify-content:center;top:50%;transform:translateY(-50%)}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{border:none;border-radius:10px;font-size:20px;background:var(--inverted-text-color);color:var(--text-color);padding-left:20px;cursor:pointer;text-align:center}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:20px;background:var(--inverted-text-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;padding:5px 10px;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .buttonContainer[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]}),t})();function E5(t,n){if(1&t){const e=q();d(0,"div",1)(1,"p",2),f(2,"Export chapter"),p(),d(3,"button",3),v("click",function(){return A(e),N(M().showSelectChapter=!0)}),f(4,"Export"),p()()}}function S5(t,n){if(1&t){const e=q();d(0,"div",1)(1,"p",2),f(2,"Import chapter"),p(),d(3,"button",3),v("click",function(){return A(e),N(M().importChapter())}),f(4,"Import"),p()()}}function P5(t,n){if(1&t){const e=q();d(0,"app-select-chapter",7),v("chapterEmitter",function(o){return A(e),N(M().exportChapter(o))}),p()}}let O5=(()=>{class t{constructor(e,r,o){this.localStorageService=e,this.chaptermanagerService=r,this.irisinterfaceService=o,this.showSelectChapter=!1}clearStorage(){this.localStorageService.clearAll(),De.showNotification("Success","Storage cleared!")}getRememberPage(){return this.localStorageService.rememberPage}toggleRememberPage(){this.localStorageService.setRememberPage(!this.localStorageService.rememberPage)}exportChapter(e){if(this.showSelectChapter=!1,""==e)return;const r=this.chaptermanagerService.getChapterByName(e,!1);console.log(r);const o="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(r)),i=document.createElement("a");i.setAttribute("href",o),i.setAttribute("download",r.Title.replace(/ /g,"-")+".woop"),document.body.appendChild(i),i.click(),i.remove()}importChapter(){const e=document.createElement("input");e.type="file",e.accept=".woop",e.onchange=r=>{const o=r.target.files[0],i=new FileReader;i.readAsText(o,"UTF-8"),i.onload=s=>{let l=JSON.parse(s.target.result);l.Author=K.userName,this.irisinterfaceService.importChapter(K.userName,K.password,l).subscribe({next:c=>{c.status?(De.showNotification("Chapter imported","The chapter was imported successfully!"),this.chaptermanagerService.chapters.push(l)):De.showNotification("Chapter import failed","The chapter could not be imported!",5e3,!0)},error:c=>{De.showNotification("ERROR","Chapter import failed: "+c.message+"!",-1,!0)}})}},e.click()}getUserLevel(){return K.userLevel}coookiesAccepted(){return at.cookiesAccepted}toggleCookiesAccepted(){if(at.cookiesAccepted)return at.rejectCookies(),void De.showNotification("Cookies rejected","Cookies will not be used.");at.acceptCookies(),De.showNotification("Cookies accepted","Cookies will be used.")}}return t.\u0275fac=function(e){return new(e||t)(w(at),w(To),w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-storage-settings"]],decls:19,vars:6,consts:[[1,"container"],[1,"row"],[1,"label"],[1,"action",3,"click"],["class","row",4,"ngIf"],[1,"red","action",3,"click"],[3,"chapterEmitter",4,"ngIf"],[3,"chapterEmitter"]],template:function(e,r){1&e&&(d(0,"div",0)(1,"div",1)(2,"p",2),f(3,"Cookies"),p(),d(4,"button",3),v("click",function(){return r.toggleCookiesAccepted()}),f(5),p()(),P(6,E5,5,0,"div",4),P(7,S5,5,0,"div",4),d(8,"div",1)(9,"p",2),f(10),p(),d(11,"button",3),v("click",function(){return r.toggleRememberPage()}),f(12),p()(),d(13,"div",1)(14,"p",2),f(15,"Clear Local Storage"),p(),d(16,"button",5),v("click",function(){return r.clearStorage()}),f(17,"Clear"),p()()(),P(18,P5,1,0,"app-select-chapter",6)),2&e&&(_(5),Xe(" ",r.coookiesAccepted()?"Reject":"Accept"," "),_(1),C("ngIf",r.getUserLevel()>0),_(1),C("ngIf",r.getUserLevel()>0),_(3),Xe(" ","Remember Page: "+(r.getRememberPage()?"ON":"OFF")," "),_(2),Xe(" ",r.getRememberPage()?"Turn OFF":"Turn ON"," "),_(6),C("ngIf",r.showSelectChapter))},dependencies:[Se,x5],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function I5(t,n){if(1&t&&(d(0,"option",12),f(1),p()),2&t){const e=n.$implicit;C("value",e.name),_(1),Xe(" ",e.name," ")}}function T5(t,n){if(1&t){const e=q();d(0,"button",13),v("click",function(){return A(e),N(M().removeConnection())}),f(1," Remove "),p()}}let k5=(()=>{class t{constructor(e,r){this.localStorageService=e,this.router=r,this.connection="",this.name="",this.host="",this.port=0,this.host=e.getServerHost(),this.port=e.getServerPort()}connect(){this.localStorageService.setServerHost(this.host),this.localStorageService.setServerPort(this.port),this.router.navigate(["/"])}removeConnection(){this.localStorageService.removeServerConnection(this.connection),this.connection="",this.openConnection()}saveConnection(){""!==this.name?(this.localStorageService.addServerConnection(this.name,this.host,this.port),De.showNotification("Success","Connection saved!")):De.showNotification("Error","Please enter a name for the connection!",-1,!0)}openConnection(){if(""===this.connection)return this.name="",this.host=this.localStorageService.getServerHost(),void(this.port=this.localStorageService.getServerPort());const e=this.localStorageService.getConnection(this.connection);e&&(this.name=e.name,this.host=e.host,this.port=e.port)}getConnections(){return this.localStorageService.getAllServerConnections()}isCurrentConnection(){return this.localStorageService.getServerHost()===this.host&&this.localStorageService.getServerPort()===this.port}getCurrentConnection(){return Ae.host+":"+Ae.port}}return t.\u0275fac=function(e){return new(e||t)(w(at),w(ke))},t.\u0275cmp=J({type:t,selectors:[["app-server-settings"]],decls:32,vars:9,consts:[[1,"container"],[1,"row"],[1,"label"],["name","Level",2,"width","110px",3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","Name",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Host",1,"action",3,"ngModel","ngModelChange"],["type","text","placeholder","Port",1,"action",3,"ngModel","ngModelChange"],["class","action red",3,"click",4,"ngIf"],[1,"action",3,"click"],[1,"action","green",3,"click"],[3,"value"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(d(0,"div",0)(1,"div",1)(2,"p",2),f(3," Current connection: "),d(4,"i"),f(5),p()()(),d(6,"div",1)(7,"p",2),f(8,"Select Connection"),p(),d(9,"select",3),v("ngModelChange",function(i){return r.connection=i})("ngModelChange",function(){return r.openConnection()}),d(10,"option",4),f(11,"NEW"),p(),P(12,I5,2,2,"option",5),p()(),d(13,"div",1)(14,"p",2),f(15,"Connection Name"),p(),d(16,"input",6),v("ngModelChange",function(i){return r.name=i}),p()(),d(17,"div",1)(18,"p",2),f(19,"Host"),p(),d(20,"input",7),v("ngModelChange",function(i){return r.host=i}),p()(),d(21,"div",1)(22,"p",2),f(23,"Port"),p(),d(24,"input",8),v("ngModelChange",function(i){return r.port=i}),p()(),d(25,"div",1),X(26,"p",2),P(27,T5,2,0,"button",9),d(28,"button",10),v("click",function(){return r.saveConnection()}),f(29),p(),d(30,"button",11),v("click",function(){return r.connect()}),f(31),p()()()),2&e&&(_(5),se(r.getCurrentConnection()),_(4),C("ngModel",r.connection),_(3),C("ngForOf",r.getConnections()),_(4),C("ngModel",r.name),_(4),C("ngModel",r.host),_(4),C("ngModel",r.port),_(3),C("ngIf",""!=r.connection),_(2),Xe(" ",""===r.connection?"Save":"Update"," "),_(2),Xe(" ","Connect"+(r.isCurrentConnection()?"":"*")," "))},dependencies:[Pn,Se,fa,ga,It,Oo,yt,pt],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function A5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"p",3),f(2,"Log in"),p(),d(3,"button",4),v("click",function(){return A(e),N(M().logIn())}),f(4,"Log in"),p()()}}function N5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"p",3),f(2," Username: "),d(3,"i"),f(4),p()(),d(5,"button",4),v("click",function(){return A(e),N(M().logOut())}),f(6,"Log out"),p()()}if(2&t){const e=M();_(4),se(e.getUsername()+(2==e.getUserLevel()?" Admin":""))}}function R5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"p",3),f(2,"Change Password"),p(),d(3,"button",4),v("click",function(){return A(e),N(M().changePassword())}),f(4,"Change"),p()()}}function F5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"p",3),f(2,"New User"),p(),d(3,"button",4),v("click",function(){return A(e),N(M().addUser())}),f(4,"Add"),p()()}}function L5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"p",3),f(2,"Configure Admin Rights"),p(),d(3,"button",4),v("click",function(){return A(e),N(M().makeUserAdmin())}),f(4,"Configure"),p()()}}function B5(t,n){if(1&t){const e=q();d(0,"div",2)(1,"p",3),f(2,"Delete User"),p(),d(3,"button",5),v("click",function(){return A(e),N(M().deleteUser())}),f(4,"Delete"),p()()}}let V5=(()=>{class t{constructor(e,r){this.router=e,this.localStorageService=r}changePassword(){this.router.navigate(["user/change/password"])}addUser(){this.router.navigate(["user/add"])}deleteUser(){this.router.navigate(["user/delete"])}makeUserAdmin(){this.router.navigate(["user/make/admin"])}logIn(){this.router.navigate(["login"])}logOut(){K.userLevel=0,K.userName="",this.localStorageService.removePassword(),this.localStorageService.removeUserName(),this.localStorageService.setStayLoggedIn(!1)}getUserLevel(){return K.userLevel}getUsername(){return K.userName}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-user-settings"]],decls:7,vars:6,consts:[[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"label"],[1,"action",3,"click"],[1,"action","red",3,"click"]],template:function(e,r){1&e&&(d(0,"div",0),P(1,A5,5,0,"div",1),P(2,N5,7,1,"div",1),P(3,R5,5,0,"div",1),P(4,F5,5,0,"div",1),P(5,L5,5,0,"div",1),P(6,B5,5,0,"div",1),p()),2&e&&(_(1),C("ngIf",0==r.getUserLevel()),_(1),C("ngIf",r.getUserLevel()>0),_(1),C("ngIf",r.getUserLevel()>0),_(1),C("ngIf",2==r.getUserLevel()),_(1),C("ngIf",2==r.getUserLevel()),_(1),C("ngIf",2==r.getUserLevel()))},dependencies:[Se],styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})(),H5=(()=>{class t{constructor(e,r){this.router=e,this.metaDataService=r}getHelp(){this.router.navigate(["help"])}whatsNew(){this.router.navigate(["info"])}getVersion(){return this.metaDataService.version}goToImpressum(){this.router.navigate(["impressum"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(vf))},t.\u0275cmp=J({type:t,selectors:[["app-about-settings"]],decls:28,vars:1,consts:[[1,"container"],[1,"row"],[1,"label"],[1,"action",3,"click"],["href","mailto:Philipp.Bonin@intersystems.com?subject=WOOP%20Issue",1,"actionA"],["href","https://github.com/phil1436/InterSystemsWOOP","target","_blank",1,"actionA"]],template:function(e,r){1&e&&(d(0,"div",0)(1,"div",1)(2,"p",2),f(3," Version: "),d(4,"i"),f(5),p()(),d(6,"button",3),v("click",function(){return r.whatsNew()}),f(7,"Info"),p()(),d(8,"div",1)(9,"p",2),f(10,"Need Help?"),p(),d(11,"button",3),v("click",function(){return r.getHelp()}),f(12,"Get Help"),p()(),d(13,"div",1)(14,"p",2),f(15,"Report an Issue"),p(),d(16,"a",4),f(17," Report "),p()(),d(18,"div",1)(19,"p",2),f(20,"Impressum"),p(),d(21,"button",3),v("click",function(){return r.goToImpressum()}),f(22,"View"),p()(),d(23,"div",1)(24,"p",2),f(25,"View on GitHub"),p(),d(26,"a",5),f(27," View "),p()()()),2&e&&(_(5),se(r.getVersion()))},styles:[".container[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{justify-content:center;align-items:center;width:100%;display:flex;margin-top:20px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-left:20px;flex:1;color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:100px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .actionA[_ngcontent-%COMP%]{margin-right:20px;cursor:pointer;width:80px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .red[_ngcontent-%COMP%]{background-color:red;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .green[_ngcontent-%COMP%]{background-color:green;color:#fff}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;text-align:center;background-color:var(--secondary-color);box-shadow:0 0 5px #00000080;border:none;color:var(--text-color);padding:10px;border-radius:5px;cursor:pointer;transition:all .2s ease-in-out;font-size:15px}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--primary-color);scale:1.1}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;border:none;border-radius:5px;padding:5px;margin:5px;box-shadow:0 0 5px #00000080;cursor:default;background:var(--header-color);color:var(--text-color)}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{padding:5px;margin:5px 20px 5px 5px;box-shadow:0 0 5px #00000080;border:none;border-radius:5px;font-size:15px;background:var(--header-color);color:var(--text-color);cursor:pointer}.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] select[_ngcontent-%COMP%] option[_ngcontent-%COMP%]{font-size:15px;background:var(--header-color);color:var(--text-color)}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, .container[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1}}"]}),t})();function $5(t,n){1&t&&X(0,"app-storage-settings")}function U5(t,n){1&t&&X(0,"app-server-settings")}function j5(t,n){1&t&&X(0,"app-user-settings")}function z5(t,n){1&t&&X(0,"app-about-settings")}function G5(t,n){if(1&t&&(d(0,"div",5),P(1,$5,1,0,"app-storage-settings",6),P(2,U5,1,0,"app-server-settings",6),P(3,j5,1,0,"app-user-settings",6),P(4,z5,1,0,"app-about-settings",6),p()),2&t){const e=M();_(1),C("ngIf","storage"==e.selected.toLowerCase()),_(1),C("ngIf","server"==e.selected.toLowerCase()),_(1),C("ngIf","user"==e.selected.toLowerCase()),_(1),C("ngIf","about"==e.selected.toLowerCase())}}let o1=(()=>{class t{constructor(e,r){this.router=e,this.route=r,this.selected=""}ngOnInit(){let e=this.route.snapshot.paramMap.get("settingsName");this.selected=null!=e?e:""}setSelected(e){this.selected=e}goBack(){this.router.navigate(["/"])}getUserLevel(){return K.userLevel}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(ur))},t.\u0275cmp=J({type:t,selectors:[["app-settings-advanced"]],decls:6,vars:3,consts:[[1,"sticky",3,"enableSearchBar"],[1,"settingsHeader"],[1,"backButton",3,"click"],[3,"selected","selectedChange"],["class","settings",4,"ngIf"],[1,"settings"],[4,"ngIf"]],template:function(e,r){1&e&&(X(0,"app-header",0),d(1,"div",1)(2,"button",2),v("click",function(){return r.goBack()}),f(3,"Back"),p(),d(4,"app-settings-header",3),v("selectedChange",function(i){return r.setSelected(i)}),p()(),P(5,G5,5,4,"div",4)),2&e&&(C("enableSearchBar",!1),_(4),C("selected",r.selected),_(1),C("ngIf",""!=r.selected))},dependencies:[Se,fr,M5,O5,k5,V5,H5],styles:[".sticky[_ngcontent-%COMP%]{position:fixed;top:0;width:100%}.settingsHeader[_ngcontent-%COMP%]{margin-top:100px}.settings[_ngcontent-%COMP%]{width:90%;margin:30px auto 20px;padding:20px;border-radius:10px;box-shadow:0 0 10px #0003}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}@media screen and (max-width: 800px){.backButton[_ngcontent-%COMP%]{display:none}}"]}),t})(),W5=(()=>{class t{constructor(e){this.router=e}goToServerSettings(){this.router.navigate(["/settings/server"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=J({type:t,selectors:[["app-error-page"]],decls:9,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],["src","https://media.makeameme.org/created/what-has-happened.jpg"],[3,"click"]],template:function(e,r){1&e&&(X(0,"app-header",0),d(1,"div",1)(2,"h1"),f(3,"(W)OOPs..."),p(),X(4,"img",2),d(5,"p"),f(6,"Looks like the server could not be reached!"),p(),d(7,"button",3),v("click",function(){return r.goToServerSettings()}),f(8,"Go to Server Settings"),p()()),2&e&&C("enableSearchBar",!1)},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;color:var(--text-color);margin-top:50px;margin-bottom:50px}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:4rem;font-weight:700;margin-bottom:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-top:20px;padding:10px 20px;border-radius:10px;border:none;background-color:var(--primary-color);color:var(--inverted-text-color);cursor:pointer;transition:all .3s ease-in-out;font-size:20px}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);scale:1.1}"]}),t})(),q5=(()=>{class t{constructor(e){this.router=e}goBack(){this.router.navigate(["/"])}goToPlayground(){this.router.navigate(["/playground"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke))},t.\u0275cmp=J({type:t,selectors:[["app-markdown-cheat-sheet"]],decls:192,vars:5,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],[1,"backButton",3,"click"],["id","basic-syntax"],["href","https://www.markdownguide.org/basic-syntax/#headings","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#bold","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#italic","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#blockquotes-1","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#ordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#unordered-lists","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#code","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#horizontal-rules","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#links","target","_blank"],["href","https://www.markdownguide.org/basic-syntax/#images-1","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#tables","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#fenced-code-blocks","target","_blank"],["href","https://www.markdownguide.org/extended-syntax/#strikethrough","target","_blank"],[1,"playgroundButton",3,"click"]],template:function(e,r){1&e&&(X(0,"app-header",0),d(1,"div",1)(2,"button",2),v("click",function(){return r.goBack()}),f(3,"Back"),p(),d(4,"h1"),f(5,"Editor "),d(6,"i"),f(7,"HELP"),p()(),d(8,"h2",3),f(9,"Markdown Syntax"),p(),d(10,"table")(11,"tr")(12,"th"),f(13,"Element"),p(),d(14,"th"),f(15,"Markdown Syntax"),p()(),d(16,"tr")(17,"td")(18,"a",4),f(19," Heading "),p()(),d(20,"td")(21,"code"),f(22,"# H1"),X(23,"br"),f(24," ## H2"),X(25,"br"),f(26," ### H3 "),p()()(),d(27,"tr")(28,"td")(29,"a",5),f(30," Bold "),p()(),d(31,"td")(32,"code"),f(33,"**bold text**"),p()()(),d(34,"tr")(35,"td")(36,"a",6),f(37," Italic "),p()(),d(38,"td")(39,"code"),f(40,"*italicized text*"),p()()(),d(41,"tr")(42,"td")(43,"a",7),f(44," Blockquote "),p()(),d(45,"td")(46,"code"),f(47,"> blockquote"),p()()(),d(48,"tr")(49,"td")(50,"a",8),f(51,"Ordered List"),p()(),d(52,"td")(53,"code"),f(54," 1. First item"),X(55,"br"),f(56," 2. Second item"),X(57,"br"),f(58," 3. Third item"),X(59,"br"),p()()(),d(60,"tr")(61,"td")(62,"a",9),f(63,"Unordered List"),p()(),d(64,"td")(65,"code"),f(66," - First item"),X(67,"br"),f(68," - Second item"),X(69,"br"),f(70," - Third item"),X(71,"br"),p()()(),d(72,"tr")(73,"td")(74,"a",10),f(75,"Code"),p()(),d(76,"td")(77,"code"),f(78,"`code`"),p()()(),d(79,"tr")(80,"td")(81,"a",11),f(82,"Horizontal Rule"),p()(),d(83,"td")(84,"code"),f(85,"---"),p()()(),d(86,"tr")(87,"td")(88,"a",12),f(89,"Link"),p()(),d(90,"td")(91,"code"),f(92,"[title](https://www.example.com)"),p()()(),d(93,"tr")(94,"td")(95,"a",13),f(96,"Remote Image"),p()(),d(97,"td")(98,"code"),f(99,"![alt text](https://image.jpg)"),p()()(),d(100,"tr")(101,"td"),f(102,"Local Image on Server"),p(),d(103,"td")(104,"code"),f(105,"?[alt text](image.jpg)"),p()()(),d(106,"tr")(107,"td"),f(108,"Remote Image with CSS"),p(),d(109,"td")(110,"code"),f(111),p()()(),d(112,"tr")(113,"td"),f(114,"Local Image on Server with CSS"),p(),d(115,"td")(116,"code"),f(117),p()()(),d(118,"tr")(119,"td"),f(120,"File Download Button"),p(),d(121,"td")(122,"code"),f(123),p()()(),d(124,"tr")(125,"td")(126,"a",14),f(127,"Table"),p()(),d(128,"td")(129,"code"),f(130," | Syntax | Description |"),X(131,"br"),f(132," | ----------- | ----------- |"),X(133,"br"),f(134," | Header | Title |"),X(135,"br"),f(136," | Paragraph | Text | "),p()()(),d(137,"tr")(138,"td")(139,"a",15),f(140,"Fenced Code Block"),p()(),d(141,"td")(142,"code"),f(143," ```language"),X(144,"br"),f(145,' this = codeblock["fenced"]'),X(146,"br"),f(147," ``` "),p()()(),d(148,"tr")(149,"td"),f(150,"Code Window"),p(),d(151,"td")(152,"code"),f(153," ~~~language"),X(154,"br"),f(155,' this = codewindow["not-copyable"]'),X(156,"br"),f(157," ~~~ "),p()()(),d(158,"tr")(159,"td"),f(160,"Copyable Code Window"),p(),d(161,"td")(162,"code"),f(163),X(164,"br"),f(165,' this = codewindow["copyable"]'),X(166,"br"),f(167," ~~~ "),p()()(),d(168,"tr")(169,"td")(170,"a",16),f(171,"Strikethrough"),p()(),d(172,"td")(173,"code"),f(174,"~~The world is flat.~~"),p()()()(),d(175,"h2"),f(176,"Placeholders"),p(),d(177,"ul")(178,"li")(179,"b"),f(180,"$$HOST$$"),p(),f(181," - Will be replaced with the host address that the user specified in the settings. "),p(),d(182,"li")(183,"b"),f(184,"$$PORT$$"),p(),f(185," - Will be replaced with the host address that the user specified in the settings. "),p()(),d(186,"h2"),f(187,"Playground"),p(),d(188,"p"),f(189," You can try out the markdown syntax in the playground below. The preview will be updated automatically. "),p(),d(190,"button",17),v("click",function(){return r.goToPlayground()}),f(191," Playground "),p()()),2&e&&(C("enableSearchBar",!1),_(111),se("![alt text](https://image.jpg){width: 100px; height:100px}"),_(6),se("?[alt text](image.jpg){width: 100px; height:100px}"),_(6),se("$$$[Button Text](file.txt)"),_(40),Xe(" ~~~language","{copy}",""))},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;padding-left:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color);text-decoration:none}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:90%;border:1px solid var(--text-color);box-shadow:0 0 20px #00000026}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:16px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--header-color)}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.playgroundButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:150px;height:40px;margin-bottom:20px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.playgroundButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function Y5(t,n){if(1&t&&(d(0,"p",8),f(1),p()),2&t){const e=M();_(1),se(e.wrongMessage)}}let Z5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.entereduserName.length<1?(this.wrongMessage="Username cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.addUser(K.userName,K.password,this.entereduserName,this.enteredPassword).subscribe({next:e=>{e.status?(De.showNotification("User added successfully!","The user was added successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=J({type:t,selectors:[["app-add-user"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","password","placeholder","Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","text","name","confirmPassword","placeholder","Confirm Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Add User"),p(),P(4,Y5,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),p(),d(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Se,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function X5(t,n){if(1&t&&(d(0,"p",8),f(1),p()),2&t){const e=M();_(1),se(e.wrongMessage)}}let K5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.oldPassword="",this.isWrong=!1,this.wrongMessage=""}submit(){return this.enteredPassword!==this.enteredConfirmPassword?(this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):this.enteredPassword.length<1?(this.wrongMessage="Password cannot be empty!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="")):void this.apiService.changePassword(K.userName,this.oldPassword,this.enteredPassword).subscribe({next:e=>{e.status?(De.showNotification("Password changed successfully!","The password was changed successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.oldPassword="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=J({type:t,selectors:[["app-change-password"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","password","name","oldPassword","placeholder","Old Password",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","New Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm New Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Change Password"),p(),P(4,X5,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"input",4),v("ngModelChange",function(i){return r.oldPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Submit "),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.oldPassword),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Se,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function Q5(t,n){if(1&t&&(d(0,"p",8),f(1),p()),2&t){const e=M();_(1),se(e.wrongMessage)}}let J5=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.deleteUser(K.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(De.showNotification("User deleted successfully!","The user was deleted successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=J({type:t,selectors:[["app-delete-user"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to delete",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Delete User"),p(),P(4,Q5,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),p(),d(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Delete "),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Se,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})(),eH=(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-get-help"]],decls:188,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],["href","","target","_blank"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(X(0,"app-header",0),d(1,"button",1),v("click",function(){return r.goBack()}),f(2,"Back"),p(),d(3,"div",2)(4,"h1"),f(5,"InterSystems Workshop Organizer and Optimizer Program "),d(6,"i"),f(7,"HELP"),p()(),d(8,"p"),f(9," This program is designed to help you organize and optimize your InterSystems workshop. It will help you to determine the best order to present the material. "),p(),d(10,"h2"),f(11,"Connect to an instance"),p(),d(12,"p"),f(13," Click on the "),d(14,"b"),f(15,"Settings Icon"),p(),f(16," in the top right corner of the screen. Select "),d(17,"i"),f(18,"Advanced"),p(),f(19," and go to the "),d(20,"i"),f(21,"Server"),p(),f(22," tab. Type in the host adress and port number of the instance you want to connect to and click "),d(23,"b"),f(24,"Connect"),p(),f(25,". You can store the connection information by giving the connection a name and click on "),d(26,"b"),f(27,"Save"),p(),f(28,".You can then select the connection from the "),d(29,"i"),f(30,"Connection"),p(),f(31," dropdown menu. "),p(),d(32,"h2"),f(33,"Navigation"),p(),d(34,"ul")(35,"li"),f(36," You can always click on the logo in the top left corner to go back to the home screen. "),p(),d(37,"li"),f(38," You can click on "),d(39,"i"),f(40,"Log in"),p(),f(41," in the top right corner to log in to account or when you are already logged in, you can click on your name to log out of your account. "),p(),d(42,"li"),f(43," You can click on the "),d(44,"b"),f(45,"Settings Icon"),p(),f(46," in the top right corner of the screen to open the shortcut settings. From there you can select "),d(47,"i"),f(48,"Advanced"),p(),f(49," to open the advanced settings. "),p()(),d(50,"h2"),f(51,"Create a new Chapter"),p(),d(52,"p")(53,"i"),f(54," You have to be logged in to create a new chapter! "),p()(),d(55,"ol")(56,"li"),f(57,"Go to the home screen."),p(),d(58,"li"),f(59,"Click on the "),d(60,"b"),f(61,"+"),p(),f(62," icon."),p(),d(63,"li"),f(64," Fill in the following information: "),d(65,"ul")(66,"li")(67,"b"),f(68,"Name"),p(),f(69," - The name of the chapter. This will be displayed in the chapter list. "),p(),d(70,"li")(71,"b"),f(72,"Language"),p(),f(73," - The language of the chapter."),p(),d(74,"li")(75,"b"),f(76,"Password"),p(),f(77," - You can set a password for the chapter. If you leave this field empty, the chapter will be public. "),p(),d(78,"li")(79,"b"),f(80,"Private"),p(),f(81," - If enabeled the chapter will be private and only accessible by you and the admins. "),p(),d(82,"li")(83,"b"),f(84,"Description"),p(),f(85," - Add a description to the chapter. This will be displayed in the chapter list. "),p()()(),d(86,"li"),f(87,"Click on "),d(88,"b"),f(89,"Create"),p(),f(90," to save the chapter."),p()(),d(91,"h2"),f(92,"Edit a chapter"),p(),d(93,"p")(94,"i"),f(95," You have to be logged in to edit a chapter! "),p()(),d(96,"p"),f(97," You can edit a chapter by clicking on the "),d(98,"b"),f(99,"Edit"),p(),f(100," icon in the chapter list. Write the content of your chapters in markdown. You can find a markdown cheat sheet by clicking on the "),d(101,"b"),f(102,"Help"),p(),f(103," button in the editor. "),p(),d(104,"p"),f(105," You can add a hint and a result on each page of your chapter. If you leave the hint or result empty, they will not be displayed. "),p(),d(106,"p"),f(107," You can add and remove a page by clicking on "),d(108,"b"),f(109,"Add Page"),p(),f(110," and "),d(111,"b"),f(112,"Remove Page"),p(),f(113,". To show a Preview of your chapter, click on "),d(114,"b"),f(115,"Preview"),p(),f(116,". To save your changes, click on "),d(117,"b"),f(118,"Save"),p(),f(119,". You can see if there are unsaved changes by looking at the "),d(120,"b"),f(121,"Save"),p(),f(122," button. If there "),d(123,"b"),f(124,"*Save"),p(),f(125," is displayed, there are unsaved changes. You can turn on autosave by clicking on "),d(126,"b"),f(127,"Autosave"),p(),f(128,". If autosave is turned on, your changes will be saved every 10 seconds. You can edit the metadata of your chapter by clicking on "),d(129,"b"),f(130,"Edit meta data"),p(),f(131,". "),p(),d(132,"h2"),f(133,"Create your own instance"),p(),d(134,"p"),f(135," Before you can create your own instance, you need to have a InterSystems IRIS Dataplatform instance running. "),p(),d(136,"ol")(137,"li"),f(138," Download the "),d(139,"a",3),f(140,"InterSystems Workshop Organizer and Optimizer Program"),p(),f(141," from Github. "),p(),d(142,"li"),f(143," In the Management Portal, go to "),d(144,"i"),f(145,"System Explorer"),p(),f(146," and select "),d(147,"i"),f(148,"Classes"),p(),f(149,". Click on "),d(150,"b"),f(151,"Import"),p(),f(152," and select the "),d(153,"i"),f(154,"cls"),p(),f(155," folder from the downloaded program. "),p(),d(156,"li"),f(157," Open an InterSystems IRIS terminal and go to the namespace where you just imported the classes. "),p(),d(158,"li"),f(159," Run the following command: "),d(160,"code"),f(161,"Do ##class(WOOP.Installer).SetUp()"),p()(),d(162,"li"),f(163,"Follow the instructions on the screen."),p(),d(164,"li"),f(165," After successful installation, you can access connect to the instance by clicking on the "),d(166,"b"),f(167,"Settings Icon"),p(),f(168," in the top right corner of the screen. Select "),d(169,"i"),f(170,"Advanced"),p(),f(171," and go to the "),d(172,"i"),f(173,"Server"),p(),f(174," tab. Type in the host adress and port number of the instance you want to connect to and click "),d(175,"b"),f(176,"Connect"),p(),f(177,". "),p()(),d(178,"div",4),X(179,"br")(180,"br"),d(181,"p"),f(182," by "),d(183,"a",5),f(184," Philipp B. "),p()(),d(185,"p")(186,"i"),f(187," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),p()()()()),2&e&&C("enableSearchBar",!1)},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})();function tH(t,n){if(1&t&&(d(0,"p",8),f(1),p()),2&t){const e=M();_(1),se(e.wrongMessage)}}let nH=(()=>{class t{constructor(e,r){this.apiService=e,this.location=r,this.enteredPassword="",this.enteredConfirmPassword="",this.entereduserName="",this.isWrong=!1,this.wrongMessage=""}submit(){if(this.enteredPassword!==this.enteredConfirmPassword)return this.wrongMessage="Passwords do not match!",this.isWrong=!0,this.enteredPassword="",void(this.enteredConfirmPassword="");this.apiService.makeUserAdmin(K.userName,this.enteredPassword,this.entereduserName).subscribe({next:e=>{e.status?(De.showNotification("User made admin successfully!","The user was made admin successfully!"),this.close()):(this.wrongMessage="Something went wrong!",this.isWrong=!0)},error:e=>{this.wrongMessage=e.message,this.isWrong=!0}})}close(){this.isWrong=!1,this.enteredPassword="",this.entereduserName="",this.enteredConfirmPassword="",this.location.back()}}return t.\u0275fac=function(e){return new(e||t)(w(Ae),w(Yr))},t.\u0275cmp=J({type:t,selectors:[["app-make-admin"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:12,vars:4,consts:[[1,"background",3,"click"],[1,"container"],["class","wrong",4,"ngIf"],[1,"closeButton",3,"click"],["type","text","name","userName","placeholder","Username to make admin",1,"userNameInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","password","placeholder","Your Password",1,"passwordInput",3,"ngModel","ngModelChange","keydown.enter"],["type","password","name","confirmPassword","placeholder","Confirm Your Password",1,"confirmPasswordInput",3,"ngModel","ngModelChange","keydown.enter"],[1,"submitButton",3,"click","keydown.enter"],[1,"wrong"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Make User Admin"),p(),P(4,tH,2,1,"p",2),d(5,"button",3),v("click",function(){return r.close()}),f(6,"X"),p(),d(7,"input",4),v("ngModelChange",function(i){return r.entereduserName=i})("keydown.enter",function(){return r.submit()}),p(),d(8,"input",5),v("ngModelChange",function(i){return r.enteredPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(9,"input",6),v("ngModelChange",function(i){return r.enteredConfirmPassword=i})("keydown.enter",function(){return r.submit()}),p(),d(10,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(11," Make Admin "),p()()),2&e&&(_(4),C("ngIf",r.isWrong),_(3),C("ngModel",r.entereduserName),_(1),C("ngModel",r.enteredPassword),_(1),C("ngModel",r.enteredConfirmPassword))},dependencies:[Se,It,yt,pt],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:red;border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:35%}.container[_ngcontent-%COMP%] .wrong[_ngcontent-%COMP%]{color:red;text-align:center;left:50%;transform:translate(-50%);top:50px}.rememberMe[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);top:70%;display:flex;flex-direction:row;margin-top:5px}.rememberMe[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.rememberMe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:30px;margin-top:-10px;width:150px;font-size:20px;color:var(--inverted-text-color);cursor:pointer}"]}),t})();function rH(t,n){if(1&t&&(d(0,"p"),f(1),p()),2&t){const e=n.$implicit;_(1),se("- "+e)}}let oH=(()=>{class t{constructor(e){this.metaDataService=e}goBack(){window.history.back()}getVersion(){return this.metaDataService.version}getRealeseDate(){return this.metaDataService.date}getReleaseNotes(){return this.metaDataService.notes}}return t.\u0275fac=function(e){return new(e||t)(w(vf))},t.\u0275cmp=J({type:t,selectors:[["app-whats-new"]],decls:31,vars:4,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"],[4,"ngFor","ngForOf"],[2,"font-size","10px"],["href","https://github.com/phil1436","target","_blank"]],template:function(e,r){1&e&&(X(0,"app-header",0),d(1,"button",1),v("click",function(){return r.goBack()}),f(2,"Back"),p(),d(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),d(6,"i"),f(7,"INFO"),p()(),d(8,"h2"),f(9,"Current version"),p(),d(10,"p"),f(11," Version: "),d(12,"i"),f(13),p()(),d(14,"p"),f(15," Release date: "),d(16,"i"),f(17),p()(),d(18,"h2"),f(19,"Release notes"),p(),P(20,rH,2,1,"p",3),d(21,"div",4),X(22,"br")(23,"br"),d(24,"p"),f(25," by "),d(26,"a",5),f(27," Philipp B. "),p()(),d(28,"p")(29,"i"),f(30," This application is not supported by InterSystems Corporation. Please be notified that you use it at your own responsibility. "),p()()()()),2&e&&(C("enableSearchBar",!1),_(13),se(r.getVersion()),_(4),se(r.getRealeseDate()),_(3),C("ngForOf",r.getReleaseNotes()))},dependencies:[Pn,fr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})(),iH=(()=>{class t{goBack(){window.history.back()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=J({type:t,selectors:[["app-impressum"]],decls:20,vars:1,consts:[[1,"sticky",3,"enableSearchBar"],[1,"backButton",3,"click"],[1,"container"]],template:function(e,r){1&e&&(X(0,"app-header",0),d(1,"button",1),v("click",function(){return r.goBack()}),f(2,"Back"),p(),d(3,"div",2)(4,"h1"),f(5," InterSystems Workshop Organizer and Optimizer Program "),d(6,"i"),f(7,"Impressum"),p()(),d(8,"h2"),f(9,"License"),p(),d(10,"p"),f(11,"MIT License"),p(),d(12,"p"),f(13,"Copyright (c) 2023 Philipp B."),p(),d(14,"p"),f(15,' Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: '),p(),d(16,"p"),f(17," The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. "),p(),d(18,"p"),f(19,' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. '),p()()),2&e&&C("enableSearchBar",!1)},dependencies:[fr],styles:[".container[_ngcontent-%COMP%]{padding-left:50px;padding-right:50px;padding-bottom:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:var(--primary-color);padding-top:20px}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:var(--primary-color)}.backButton[_ngcontent-%COMP%]{margin-top:100px;transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-left:20px;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}"]}),t})(),sH=(()=>{class t{constructor(e,r,o){this.router=e,this.route=r,this.localStorageService=o}ngOnInit(){let e=this.route.snapshot.paramMap.get("host");if(null==e)return void this.router.navigate(["/"]);let r=this.route.snapshot.paramMap.get("port");if(null==r||isNaN(Number(r)))return void this.router.navigate(["/"]);let o=Number(r);this.localStorageService.setServerHost(e),this.localStorageService.setServerPort(o),Ae.host=e,Ae.port=o,this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(ur),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-connect-via-url"]],decls:2,vars:0,template:function(e,r){1&e&&(d(0,"p"),f(1,"Connecting via url..."),p())}}),t})();function aH(t,n){1&t&&X(0,"app-loading-screen")}const cH=["outlet"],uH=["content"];function dH(t,n){1&t&&X(0,"app-markdown-content",9),2&t&&C("data",M().getData())}const pH=[{path:"",component:t3},{path:"login",component:ZM},{path:"user/add",component:Z5},{path:"user/delete",component:J5},{path:"user/make/admin",component:nH},{path:"user/change/password",component:K5},{path:"login",component:ZM},{path:"deploy",component:(()=>{class t{constructor(e,r){this.router=e,this.apiService=r,this.ignoreWaitingTime=!0,this.pushToGit=!0,this.pushAll=!1,this.isLoading=!1,2==K.userLevel||this.router.navigate(["/"])}submit(){this.isLoading=!0,this.apiService.deployAll(K.userName,K.password,this.ignoreWaitingTime,this.pushToGit,this.pushAll).subscribe({next:e=>{this.isLoading=!1,e.status?De.showNotification("Success",e.message,-1):De.showNotification("Unsuccessful",e.message,-1,!0),this.close()},error:e=>{this.isLoading=!1,De.showNotification("ERROR","Error deploying: "+e.message+"!",-1,!0),this.close()}})}close(){this.router.navigate(["/"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(Ae))},t.\u0275cmp=J({type:t,selectors:[["app-deploy-spec"]],hostBindings:function(e,r){1&e&&v("keydown.escape",function(i){return r.close(i)},0,Te)},decls:21,vars:10,consts:[[1,"background",3,"click"],[1,"container"],[1,"closeButton",3,"click"],[1,"checkBoxCon"],["type","checkbox","name","ignoreWaitingTime",3,"ngModel","ngModelChange"],["type","checkbox","name","pushToGit",3,"ngModel","ngModelChange"],["type","checkbox","name","pushAll",3,"ngModel","ngModelChange"],[1,"submitButton",3,"click","keydown.enter"],[4,"ngIf"]],template:function(e,r){1&e&&(d(0,"div",0),v("click",function(){return r.close()}),p(),d(1,"div",1)(2,"h1"),f(3,"Deploy"),p(),d(4,"button",2),v("click",function(){return r.close()}),f(5,"X"),p(),d(6,"div",3)(7,"input",4),v("ngModelChange",function(i){return r.ignoreWaitingTime=i}),p(),d(8,"p"),f(9,"Ignore waiting time"),p()(),d(10,"div",3)(11,"input",5),v("ngModelChange",function(i){return r.pushToGit=i}),p(),d(12,"p"),f(13,"Push to git"),p()(),d(14,"div",3)(15,"input",6),v("ngModelChange",function(i){return r.pushAll=i}),p(),d(16,"p"),f(17,"Push all"),p()(),d(18,"button",7),v("click",function(){return r.submit()})("keydown.enter",function(){return r.submit()}),f(19," Deploy "),p()(),P(20,aH,1,0,"app-loading-screen",8)),2&e&&(_(6),He("top","35%"),_(1),C("ngModel",r.ignoreWaitingTime),_(3),He("top","50%"),_(1),C("ngModel",r.pushToGit),_(3),He("top","65%"),_(1),C("ngModel",r.pushAll),_(5),C("ngIf",r.isLoading))},dependencies:[Se,Po,yt,pt,KM],styles:["*[_ngcontent-%COMP%]{position:fixed}.background[_ngcontent-%COMP%]{width:100%;height:100%;top:0;left:0;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.container[_ngcontent-%COMP%]{width:500px;height:300px;background-color:var(--secondary-color);left:50%;top:50%;transform:translate(-50%,-50%);border-radius:20px;box-shadow:0 0 10px #00000080;color:var(--inverted-text-color)}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]{right:30px;top:10px;border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .closeButton[_ngcontent-%COMP%]:hover{transform:scale(1.2)}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]{right:50px;top:60%;transform:translateY(-50%);border:none;background:none;color:var(--inverted-text-color);font-size:20px;cursor:pointer}.container[_ngcontent-%COMP%] .viewButton[_ngcontent-%COMP%]:hover{transform:translateY(-50%) scale(1.1)}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]{bottom:20px;left:50%;transform:translate(-50%);border:none;background:var(--primary-color);border-radius:5px;width:40%;height:40px;color:var(--inverted-text-color);font-size:20px;cursor:pointer;box-shadow:0 5px 5px #00000080}.container[_ngcontent-%COMP%] .submitButton[_ngcontent-%COMP%]:hover{transform:translate(-50%) scale(1.1)}.container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-align:center;margin-top:20px;left:50%;transform:translate(-50%);width:100%}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;box-shadow:0 5px 5px #00000080;background-color:var(--bg-color);color:var(--text-color)}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus-visible{outline:none}.container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{left:50%;transform:translate(-50%,-50%);border-radius:10px;width:50%;border:none;text-align:center;font-size:20px;color:varvar(--inverted-text-color)}.container[_ngcontent-%COMP%] .passwordInput[_ngcontent-%COMP%]{top:50%}.container[_ngcontent-%COMP%] .confirmPasswordInput[_ngcontent-%COMP%]{top:65%}.container[_ngcontent-%COMP%] .userNameInput[_ngcontent-%COMP%]{top:37%}.container[_ngcontent-%COMP%] .toLanguage[_ngcontent-%COMP%]{top:20%}.checkBoxCon[_ngcontent-%COMP%]{left:50%;transform:translate(-50%);display:flex;flex-direction:row;margin-top:5px}.checkBoxCon[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:20px;height:20px;cursor:pointer}.checkBoxCon[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-left:120px;margin-top:2px;width:200px;font-size:20px;color:var(--inverted-text-color);cursor:pointer;text-align:left}"]}),t})()},{path:"error",component:W5},{path:"chapter/:chapterName",component:r1},{path:"chapter/:chapterName/edit",component:b5},{path:"settings",component:o1},{path:"settings/:settingsName",component:o1},{path:"help/edit",component:q5},{path:"playground",component:(()=>{class t{rerender(){!this.outletRef||!this.contentRef||(this.outletRef.clear(),this.outletRef.createEmbeddedView(this.contentRef))}constructor(e,r){this.router=e,this.localStorageService=r,this.data="# Playground"}handleKeydown(e){if("Tab"==e.key){e.preventDefault();var r=e.target.selectionStart,o=e.target.selectionEnd;e.target.value=e.target.value.substring(0,r)+"\t"+e.target.value.substring(o),e.target.selectionStart=e.target.selectionEnd=r+1,this.data=e.target.value}}onChange(){console.log(this.data),this.rerender()}getData(){return this.data}getHeight(){let e=this.data.split("\n").length*this.getFontSize()*2;return e<50?50:e}getFontSize(){return this.localStorageService.getFontSize()}goBack(){this.router.navigate(["/help/edit"])}}return t.\u0275fac=function(e){return new(e||t)(w(ke),w(at))},t.\u0275cmp=J({type:t,selectors:[["app-playground"]],viewQuery:function(e,r){if(1&e&&(Ll(cH,5,ln),Ll(uH,5,ar)),2&e){let o;Ns(o=Rs())&&(r.outletRef=o.first),Ns(o=Rs())&&(r.contentRef=o.first)}},decls:13,vars:7,consts:[[1,"sticky",3,"enableSearchBar"],[1,"container"],[1,"backButton",3,"click"],["id","basic-syntax"],[1,"contentBox"],["spellcheck","false",3,"ngModel","keydown","ngModelChange"],[3,"ngTemplateOutlet"],["outlet",""],["content",""],[3,"data"]],template:function(e,r){if(1&e&&(X(0,"app-header",0),d(1,"div",1)(2,"button",2),v("click",function(){return r.goBack()}),f(3,"Back"),p(),d(4,"h1",3),f(5,"Markdown Playground"),p(),d(6,"div",4)(7,"textarea",5),v("keydown",function(i){return r.handleKeydown(i)})("ngModelChange",function(i){return r.data=i})("ngModelChange",function(){return r.onChange()}),p()(),d(8,"div"),qd(9,6,7),p(),P(11,dH,1,1,"ng-template",null,8,dy),p()),2&e){const o=function uv(t){return jo(function YD(){return le.lFrame.contextLView}(),Me+t)}(12);C("enableSearchBar",!1),_(7),He("font-size",r.getFontSize()+"px")("height",r.getHeight()+"px"),C("ngModel",r.data),_(2),C("ngTemplateOutlet",o)}},dependencies:[A0,It,yt,pt,fr,e1],styles:[".container[_ngcontent-%COMP%]{padding-top:100px;padding-left:20px;color:var(--text-color)}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--text-color);text-decoration:none}.container[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border-collapse:collapse;border-spacing:0;width:90%;border:1px solid var(--text-color);box-shadow:0 0 20px #00000026}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;padding:16px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(even){background-color:var(--header-color)}.backButton[_ngcontent-%COMP%]{transition:.3s;cursor:pointer;border:none;font-size:20px;background-color:var(--primary-color);width:100px;height:40px;border-radius:5px;color:var(--inverted-text-color);box-shadow:0 0 10px #00000080;margin-right:auto}.backButton[_ngcontent-%COMP%]:hover{background-color:var(--secondary-color);transform:scale(1.1)}.contentBox[_ngcontent-%COMP%]{width:80%;margin:20px auto;border:1px solid #ccc;border-radius:10px;box-shadow:2px 2px 2px #0000001a;padding:20px;font-size:20px}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;border:none;border-radius:10px;resize:vertical;color:var(--text-color);background-color:var(--bg-color)}.contentBox[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:1px solid #ccc}"]}),t})()},{path:"help",component:eH},{path:"info",component:oH},{path:"impressum",component:iH},{path:"connect/:host/:port",component:sH}];let hH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[tc,mb.forRoot(pH),mb]}),t})();F(852),F(568),F(428),F(984),F(544),F(668),F(841),F(890);let fH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t}),t.\u0275inj=Qt({imports:[tc]}),t})(),gH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=gn({type:t,bootstrap:[RL]}),t.\u0275inj=Qt({providers:[{provide:qr,useClass:_0}],imports:[bR,PL,xB.forRoot(),bV,hH,fH]}),t})();yR().bootstrapModule(gH).catch(t=>console.error(t))},890:()=>{!function(Oe){var Tt="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",F={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},G={bash:F,environment:{pattern:RegExp("\\$"+Tt),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+Tt),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};Oe.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+Tt),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:G},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:F}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:G},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:G.entity}}],environment:{pattern:RegExp("\\$?"+Tt),alias:"constant"},variable:G.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},F.inside=Oe.languages.bash;for(var Ye=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Pt=G.variable[1].inside,ht=0;ht{var Oe,Tt,F,G;Oe=Prism,Tt=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,F=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,G={pattern:RegExp(/(^|[^\w.])/.source+F+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}},Oe.languages.java=Oe.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[G,{pattern:RegExp(/(^|[^\w.])/.source+F+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:G.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+F+/[A-Z]\w*\b/.source),lookbehind:!0,inside:G.inside}],keyword:Tt,function:[Oe.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),Oe.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),Oe.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":G,keyword:Tt,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+F+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:G.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+F+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:G.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return Tt.source})),lookbehind:!0,inside:{punctuation:/\./}}})},852:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},984:()=>{Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},568:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},544:()=>{Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss},841:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},668:()=>{!function(Oe){Oe.languages.typescript=Oe.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),Oe.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete Oe.languages.typescript.parameter,delete Oe.languages.typescript["literal-property"];var Tt=Oe.languages.extend("typescript",{});delete Tt["class-name"],Oe.languages.typescript["class-name"].inside=Tt,Oe.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:Tt}}}}),Oe.languages.ts=Oe.languages.typescript}(Prism)},83:Oe=>{var F=function(G){var Ye=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,Pt=0,ht={},U={manual:G.Prism&&G.Prism.manual,disableWorkerMessageHandler:G.Prism&&G.Prism.disableWorkerMessageHandler,util:{encode:function O(S){return S instanceof kt?new kt(S.type,O(S.content),S.alias):Array.isArray(S)?S.map(O):S.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(B){var O=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(B.stack)||[])[1];if(O){var S=document.getElementsByTagName("script");for(var R in S)if(S[R].src==O)return S[R]}return null}},isActive:function(O,S,R){for(var B="no-"+S;O;){var L=O.classList;if(L.contains(S))return!0;if(L.contains(B))return!1;O=O.parentElement}return!!R}},languages:{plain:ht,plaintext:ht,text:ht,txt:ht,extend:function(O,S){var R=U.util.clone(U.languages[O]);for(var B in S)R[B]=S[B];return R},insertBefore:function(O,S,R,B){var L=(B=B||U.languages)[O],ee={};for(var Ce in L)if(L.hasOwnProperty(Ce)){if(Ce==S)for(var Q in R)R.hasOwnProperty(Q)&&(ee[Q]=R[Q]);R.hasOwnProperty(Ce)||(ee[Ce]=L[Ce])}var Ve=B[O];return B[O]=ee,U.languages.DFS(U.languages,function(lt,zn){zn===Ve&<!=O&&(this[lt]=ee)}),ee},DFS:function O(S,R,B,L){L=L||{};var ee=U.util.objId;for(var Ce in S)if(S.hasOwnProperty(Ce)){R.call(S,Ce,S[Ce],B||Ce);var Q=S[Ce],Ve=U.util.type(Q);"Object"!==Ve||L[ee(Q)]?"Array"===Ve&&!L[ee(Q)]&&(L[ee(Q)]=!0,O(Q,R,Ce,L)):(L[ee(Q)]=!0,O(Q,R,null,L))}}},plugins:{},highlightAll:function(O,S){U.highlightAllUnder(document,O,S)},highlightAllUnder:function(O,S,R){var B={callback:R,container:O,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};U.hooks.run("before-highlightall",B),B.elements=Array.prototype.slice.apply(B.container.querySelectorAll(B.selector)),U.hooks.run("before-all-elements-highlight",B);for(var ee,L=0;ee=B.elements[L++];)U.highlightElement(ee,!0===S,B.callback)},highlightElement:function(O,S,R){var B=U.util.getLanguage(O),L=U.languages[B];U.util.setLanguage(O,B);var ee=O.parentElement;ee&&"pre"===ee.nodeName.toLowerCase()&&U.util.setLanguage(ee,B);var Q={element:O,language:B,grammar:L,code:O.textContent};function Ve(zn){Q.highlightedCode=zn,U.hooks.run("before-insert",Q),Q.element.innerHTML=Q.highlightedCode,U.hooks.run("after-highlight",Q),U.hooks.run("complete",Q),R&&R.call(Q.element)}if(U.hooks.run("before-sanity-check",Q),(ee=Q.element.parentElement)&&"pre"===ee.nodeName.toLowerCase()&&!ee.hasAttribute("tabindex")&&ee.setAttribute("tabindex","0"),!Q.code)return U.hooks.run("complete",Q),void(R&&R.call(Q.element));if(U.hooks.run("before-highlight",Q),Q.grammar)if(S&&G.Worker){var lt=new Worker(U.filename);lt.onmessage=function(zn){Ve(zn.data)},lt.postMessage(JSON.stringify({language:Q.language,code:Q.code,immediateClose:!0}))}else Ve(U.highlight(Q.code,Q.grammar,Q.language));else Ve(U.util.encode(Q.code))},highlight:function(O,S,R){var B={code:O,grammar:S,language:R};if(U.hooks.run("before-tokenize",B),!B.grammar)throw new Error('The language "'+B.language+'" has no grammar.');return B.tokens=U.tokenize(B.code,B.grammar),U.hooks.run("after-tokenize",B),kt.stringify(U.util.encode(B.tokens),B.language)},tokenize:function(O,S){var R=S.rest;if(R){for(var B in R)S[B]=R[B];delete S.rest}var L=new un;return In(L,L.head,O),io(O,L,S,L.head,0),function Nr(O){for(var S=[],R=O.head.next;R!==O.tail;)S.push(R.value),R=R.next;return S}(L)},hooks:{all:{},add:function(O,S){var R=U.hooks.all;R[O]=R[O]||[],R[O].push(S)},run:function(O,S){var R=U.hooks.all[O];if(R&&R.length)for(var L,B=0;L=R[B++];)L(S)}},Token:kt};function kt(O,S,R,B){this.type=O,this.content=S,this.alias=R,this.length=0|(B||"").length}function Ar(O,S,R,B){O.lastIndex=S;var L=O.exec(R);if(L&&B&&L[1]){var ee=L[1].length;L.index+=ee,L[0]=L[0].slice(ee)}return L}function io(O,S,R,B,L,ee){for(var Ce in R)if(R.hasOwnProperty(Ce)&&R[Ce]){var Q=R[Ce];Q=Array.isArray(Q)?Q:[Q];for(var Ve=0;Ve=ee.reach);Ee+=wt.value.length,wt=wt.next){var gr=wt.value;if(S.length>O.length)return;if(!(gr instanceof kt)){var dn,No=1;if(ma){if(!(dn=Ar(_a,Ee,O,Ao))||dn.index>=O.length)break;var so=dn.index,Wc=dn.index+dn[0].length,ot=Ee;for(ot+=wt.value.length;so>=ot;)ot+=(wt=wt.next).value.length;if(Ee=ot-=wt.value.length,wt.value instanceof kt)continue;for(var Rr=wt;Rr!==S.tail&&(otee.reach&&(ee.reach=ye);var Fr=wt.prev;if(Je&&(Fr=In(S,Fr,Je),Ee+=Je.length),ko(S,Fr,No),wt=In(S,Fr,new kt(Ce,zn?U.tokenize(Qe,zn):Qe,Hi,Qe)),va&&In(S,wt,va),No>1){var ao={cause:Ce+","+Ve,reach:ye};io(O,S,R,wt.prev,Ee,ao),ee&&ao.reach>ee.reach&&(ee.reach=ao.reach)}}}}}}function un(){var O={value:null,prev:null,next:null},S={value:null,prev:O,next:null};O.next=S,this.head=O,this.tail=S,this.length=0}function In(O,S,R){var B=S.next,L={value:R,prev:S,next:B};return S.next=L,B.prev=L,O.length++,L}function ko(O,S,R){for(var B=S.next,L=0;L"+L.content+""},!G.document)return G.addEventListener&&(U.disableWorkerMessageHandler||G.addEventListener("message",function(O){var S=JSON.parse(O.data),R=S.language,L=S.immediateClose;G.postMessage(U.highlight(S.code,U.languages[R],R)),L&&G.close()},!1)),U;var ft=U.util.currentScript();function $e(){U.manual||U.highlightAll()}if(ft&&(U.filename=ft.src,ft.hasAttribute("data-manual")&&(U.manual=!0)),!U.manual){var gt=document.readyState;"loading"===gt||"interactive"===gt&&ft&&ft.defer?document.addEventListener("DOMContentLoaded",$e):window.requestAnimationFrame?window.requestAnimationFrame($e):window.setTimeout($e,16)}return U}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});Oe.exports&&(Oe.exports=F),typeof global<"u"&&(global.Prism=F),F.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},F.languages.markup.tag.inside["attr-value"].inside.entity=F.languages.markup.entity,F.languages.markup.doctype.inside["internal-subset"].inside=F.languages.markup,F.hooks.add("wrap",function(G){"entity"===G.type&&(G.attributes.title=G.content.replace(/&/,"&"))}),Object.defineProperty(F.languages.markup.tag,"addInlined",{value:function(Ye,Pt){var ht={};ht["language-"+Pt]={pattern:/(^$)/i,lookbehind:!0,inside:F.languages[Pt]},ht.cdata=/^$/i;var U={"included-cdata":{pattern://i,inside:ht}};U["language-"+Pt]={pattern:/[\s\S]+/,inside:F.languages[Pt]};var kt={};kt[Ye]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return Ye}),"i"),lookbehind:!0,greedy:!0,inside:U},F.languages.insertBefore("markup","cdata",kt)}}),Object.defineProperty(F.languages.markup.tag,"addAttribute",{value:function(G,Ye){F.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+G+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[Ye,"language-"+Ye],inside:F.languages[Ye]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),F.languages.html=F.languages.markup,F.languages.mathml=F.languages.markup,F.languages.svg=F.languages.markup,F.languages.xml=F.languages.extend("markup",{}),F.languages.ssml=F.languages.xml,F.languages.atom=F.languages.xml,F.languages.rss=F.languages.xml,function(G){var Ye=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;G.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+Ye.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+Ye.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+Ye.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+Ye.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:Ye,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},G.languages.css.atrule.inside.rest=G.languages.css;var Pt=G.languages.markup;Pt&&(Pt.tag.addInlined("style","css"),Pt.tag.addAttribute("style","css"))}(F),F.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},F.languages.javascript=F.languages.extend("clike",{"class-name":[F.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),F.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,F.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:F.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:F.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:F.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:F.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:F.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),F.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:F.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),F.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),F.languages.markup&&(F.languages.markup.tag.addInlined("script","javascript"),F.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),F.languages.js=F.languages.javascript,function(){if(!(typeof F>"u"||typeof document>"u")){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var ht={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},U="data-src-status",kt="loading",un="pre[data-src]:not(["+U+'="loaded"]):not(['+U+'="'+kt+'"])';F.hooks.add("before-highlightall",function(ft){ft.selector+=", "+un}),F.hooks.add("before-sanity-check",function(ft){var $e=ft.element;if($e.matches(un)){ft.code="",$e.setAttribute(U,kt);var gt=$e.appendChild(document.createElement("CODE"));gt.textContent="Loading\u2026";var O=$e.getAttribute("data-src"),S=ft.language;if("none"===S){var R=(/\.(\w+)$/.exec(O)||[,"none"])[1];S=ht[R]||R}F.util.setLanguage(gt,S),F.util.setLanguage($e,S);var B=F.plugins.autoloader;B&&B.loadLanguages(S),function In(ft,$e,gt){var O=new XMLHttpRequest;O.open("GET",ft,!0),O.onreadystatechange=function(){4==O.readyState&&(O.status<400&&O.responseText?$e(O.responseText):gt(O.status>=400?function(ft,$e){return"\u2716 Error "+ft+" while fetching file: "+$e}(O.status,O.statusText):"\u2716 Error: File does not exist or is empty"))},O.send(null)}(O,function(L){$e.setAttribute(U,"loaded");var ee=function ko(ft){var $e=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(ft||"");if($e){var gt=Number($e[1]),S=$e[3];return $e[2]?S?[gt,Number(S)]:[gt,void 0]:[gt,gt]}}($e.getAttribute("data-range"));if(ee){var Ce=L.split(/\r\n?|\n/g),Q=ee[0],Ve=null==ee[1]?Ce.length:ee[1];Q<0&&(Q+=Ce.length),Q=Math.max(0,Math.min(Q-1,Ce.length)),Ve<0&&(Ve+=Ce.length),Ve=Math.max(0,Math.min(Ve,Ce.length)),L=Ce.slice(Q,Ve).join("\n"),$e.hasAttribute("data-start")||$e.setAttribute("data-start",String(Q+1))}gt.textContent=L,F.highlightElement(gt)},function(L){$e.setAttribute(U,"failed"),gt.textContent=L})}}),F.plugins.fileHighlight={highlight:function($e){for(var S,gt=($e||document).querySelectorAll(un),O=0;S=gt[O++];)F.highlightElement(S)}};var Nr=!1;F.fileHighlight=function(){Nr||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),Nr=!0),F.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}},Oe=>{Oe(Oe.s=393)}]); \ No newline at end of file