diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index f0c4b1d..2f9d954 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -237,13 +237,18 @@ Package: @angular/platform-browser License: "MIT" +-------------------------------------------------------------------------------- +Package: @angular/forms +License: "MIT" + + -------------------------------------------------------------------------------- Package: zone.js License: "MIT" The MIT License -Copyright (c) 2010-2023 Google LLC. https://angular.io/license +Copyright (c) 2010-2024 Google LLC. https://angular.io/license Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/browser/index.html b/browser/index.html index 4121a1c..c733bb1 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,7 +57,7 @@ - diff --git a/browser/main.js b/browser/main.js index 409b5dd..8e16c4a 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,55 +1,55 @@ -var ku=Object.defineProperty,Pu=Object.defineProperties;var Nu=Object.getOwnPropertyDescriptors;var ms=Object.getOwnPropertySymbols;var Ou=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable;var vs=(e,t,n)=>t in e?ku(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Le=(e,t)=>{for(var n in t||={})Ou.call(t,n)&&vs(e,n,t[n]);if(ms)for(var n of ms(t))Ru.call(t,n)&&vs(e,n,t[n]);return e},tt=(e,t)=>Pu(e,Nu(t));var ys=null;var qr=1;function re(e){let t=ys;return ys=e,t}var Cs={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Fu(e){if(!(Yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===qr)){if(!e.producerMustRecompute(e)&&!Wr(e)){e.dirty=!1,e.lastCleanEpoch=qr;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=qr}}function Ds(e){return e&&(e.nextProducerIndex=0),re(e)}function ws(e,t){if(re(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(Yr(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Wr(e){gn(e);for(let t=0;t0}function gn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Lu(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Vu(){throw new Error}var ju=Vu;function bs(e){ju=e}function N(e){return typeof e=="function"}function mn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var vn=mn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +var Rd=Object.defineProperty,Vd=Object.defineProperties;var Ld=Object.getOwnPropertyDescriptors;var Qs=Object.getOwnPropertySymbols;var jd=Object.prototype.hasOwnProperty,Bd=Object.prototype.propertyIsEnumerable;var Xs=(e,t,n)=>t in e?Rd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X=(e,t)=>{for(var n in t||={})jd.call(t,n)&&Xs(e,n,t[n]);if(Qs)for(var n of Qs(t))Bd.call(t,n)&&Xs(e,n,t[n]);return e},fe=(e,t)=>Vd(e,Ld(t));var Js=null;var fo=1,po=Symbol("SIGNAL");function V(e){let t=Js;return Js=e,t}var ea={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Hd(e){if(!(mo(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===fo)){if(!e.producerMustRecompute(e)&&!ho(e)){e.dirty=!1,e.lastCleanEpoch=fo;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=fo}}function ta(e){return e&&(e.nextProducerIndex=0),V(e)}function na(e,t){if(V(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(mo(e))for(let n=e.nextProducerIndex;ne.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function ho(e){On(e);for(let t=0;t0}function On(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ud(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Wd(){throw new Error}var Gd=Wd;function oa(e){Gd=e}function L(e){return typeof e=="function"}function Fn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Rn=Fn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function jt(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var oe=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(N(r))try{r()}catch(i){t=i instanceof vn?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Is(i)}catch(s){t=t??[],s instanceof vn?t=[...t,...s.errors]:t.push(s)}}if(t)throw new vn(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Is(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&jt(n,t)}remove(t){let{_finalizers:n}=this;n&&jt(n,t),t instanceof e&&t._removeParent(this)}};oe.EMPTY=(()=>{let e=new oe;return e.closed=!0,e})();var Kr=oe.EMPTY;function yn(e){return e instanceof oe||e&&"closed"in e&&N(e.remove)&&N(e.add)&&N(e.unsubscribe)}function Is(e){N(e)?e():e.unsubscribe()}var ve={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var vt={setTimeout(e,t,...n){let{delegate:r}=vt;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=vt;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Cn(e){vt.setTimeout(()=>{let{onUnhandledError:t}=ve;if(t)t(e);else throw e})}function Zr(){}var xs=(()=>Qr("C",void 0,void 0))();function _s(e){return Qr("E",void 0,e)}function Ss(e){return Qr("N",e,void 0)}function Qr(e,t,n){return{kind:e,value:t,error:n}}var nt=null;function yt(e){if(ve.useDeprecatedSynchronousErrorHandling){let t=!nt;if(t&&(nt={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=nt;if(nt=null,n)throw r}}else e()}function Ms(e){ve.useDeprecatedSynchronousErrorHandling&&nt&&(nt.errorThrown=!0,nt.error=e)}var rt=class extends oe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,yn(t)&&t.add(this)):this.destination=Uu}static create(t,n,r){return new Ve(t,n,r)}next(t){this.isStopped?Jr(Ss(t),this):this._next(t)}error(t){this.isStopped?Jr(_s(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Jr(xs,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},Bu=Function.prototype.bind;function Xr(e,t){return Bu.call(e,t)}var eo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Dn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Dn(r)}else Dn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Dn(n)}}},Ve=class extends rt{constructor(t,n,r){super();let o;if(N(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ve.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Xr(t.next,i),error:t.error&&Xr(t.error,i),complete:t.complete&&Xr(t.complete,i)}):o=t}this.destination=new eo(o)}};function Dn(e){ve.useDeprecatedSynchronousErrorHandling?Ms(e):Cn(e)}function Hu(e){throw e}function Jr(e,t){let{onStoppedNotification:n}=ve;n&&vt.setTimeout(()=>n(e,t))}var Uu={closed:!0,next:Zr,error:Hu,complete:Zr};var Ct=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function Dt(e){return e}function As(e){return e.length===0?Dt:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var U=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=$u(n)?n:new Ve(n,r,o);return yt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Ts(r),new r((o,i)=>{let s=new Ve({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Ct](){return this}pipe(...n){return As(n)(this)}toPromise(n){return n=Ts(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ts(e){var t;return(t=e??ve.Promise)!==null&&t!==void 0?t:Promise}function zu(e){return e&&N(e.next)&&N(e.error)&&N(e.complete)}function $u(e){return e&&e instanceof rt||zu(e)&&yn(e)}function qu(e){return N(e?.lift)}function ee(e){return t=>{if(qu(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ue(e,t,n,r,o){return new to(e,t,n,r,o)}var to=class extends rt{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var ks=mn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ze=(()=>{class e extends U{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new wn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ks}next(n){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){yt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Kr:(this.currentObservers=null,i.push(n),new oe(()=>{this.currentObservers=null,jt(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new U;return n.source=this,n}}return e.create=(t,n)=>new wn(t,n),e})(),wn=class extends Ze{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Kr}};var Bt=class extends Ze{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var Ps=new U(e=>e.complete());function Ns(e){return e&&N(e.schedule)}function Os(e){return e[e.length-1]}function En(e){return Ns(Os(e))?e.pop():void 0}function Rs(e,t){return typeof Os(e)=="number"?e.pop():t}function Ls(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(p){try{c(r.next(p))}catch(h){s(h)}}function l(p){try{c(r.throw(p))}catch(h){s(h)}}function c(p){p.done?i(p.value):o(p.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function Fs(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ot(e){return this instanceof ot?(this.v=e,this):new ot(e)}function Vs(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(g){r[g]&&(o[g]=function(v){return new Promise(function(E,A){i.push([g,v,E,A])>1||a(g,v)})})}function a(g,v){try{l(r[g](v))}catch(E){h(i[0][3],E)}}function l(g){g.value instanceof ot?Promise.resolve(g.value.v).then(c,p):h(i[0][2],g)}function c(g){a("next",g)}function p(g){a("throw",g)}function h(g,v){g(v),i.shift(),i.length&&a(i[0][0],i[0][1])}}function js(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Fs=="function"?Fs(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var bn=e=>e&&typeof e.length=="number"&&typeof e!="function";function In(e){return N(e?.then)}function xn(e){return N(e[Ct])}function _n(e){return Symbol.asyncIterator&&N(e?.[Symbol.asyncIterator])}function Sn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Wu(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Mn=Wu();function An(e){return N(e?.[Mn])}function Tn(e){return Vs(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ot(n.read());if(o)return yield ot(void 0);yield yield ot(r)}}finally{n.releaseLock()}})}function kn(e){return N(e?.getReader)}function Y(e){if(e instanceof U)return e;if(e!=null){if(xn(e))return Gu(e);if(bn(e))return Yu(e);if(In(e))return Ku(e);if(_n(e))return Bs(e);if(An(e))return Zu(e);if(kn(e))return Qu(e)}throw Sn(e)}function Gu(e){return new U(t=>{let n=e[Ct]();if(N(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yu(e){return new U(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Cn)})}function Zu(e){return new U(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Bs(e){return new U(t=>{Xu(e,t).catch(n=>t.error(n))})}function Qu(e){return Bs(Tn(e))}function Xu(e,t){var n,r,o,i;return Ls(this,void 0,void 0,function*(){try{for(n=js(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function de(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Pn(e,t=0){return ee((n,r)=>{n.subscribe(ue(r,o=>de(r,e,()=>r.next(o),t),()=>de(r,e,()=>r.complete(),t),o=>de(r,e,()=>r.error(o),t)))})}function Nn(e,t=0){return ee((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Hs(e,t){return Y(e).pipe(Nn(t),Pn(t))}function Us(e,t){return Y(e).pipe(Nn(t),Pn(t))}function zs(e,t){return new U(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function $s(e,t){return new U(n=>{let r;return de(n,t,()=>{r=e[Mn](),de(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>N(r?.return)&&r.return()})}function On(e,t){if(!e)throw new Error("Iterable cannot be null");return new U(n=>{de(n,t,()=>{let r=e[Symbol.asyncIterator]();de(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function qs(e,t){return On(Tn(e),t)}function Ws(e,t){if(e!=null){if(xn(e))return Hs(e,t);if(bn(e))return zs(e,t);if(In(e))return Us(e,t);if(_n(e))return On(e,t);if(An(e))return $s(e,t);if(kn(e))return qs(e,t)}throw Sn(e)}function Rn(e,t){return t?Ws(e,t):Y(e)}function no(...e){let t=En(e);return Rn(e,t)}function Gs(e,t){return ee((n,r)=>{let o=0;n.subscribe(ue(r,i=>{r.next(e.call(t,i,o++))}))})}function Ys(e,t,n,r,o,i,s,a){let l=[],c=0,p=0,h=!1,g=()=>{h&&!l.length&&!c&&t.complete()},v=A=>c{i&&t.next(A),c++;let $=!1;Y(n(A,p++)).subscribe(ue(t,O=>{o?.(O),i?v(O):t.next(O)},()=>{$=!0},void 0,()=>{if($)try{for(c--;l.length&&cE(O)):E(O)}g()}catch(O){t.error(O)}}))};return e.subscribe(ue(t,v,()=>{h=!0,g()})),()=>{a?.()}}function ro(e,t,n=1/0){return N(t)?ro((r,o)=>Gs((i,s)=>t(r,i,o,s))(Y(e(r,o))),n):(typeof t=="number"&&(n=t),ee((r,o)=>Ys(r,o,e,n)))}function Ks(e=1/0){return ro(Dt,e)}function oo(...e){let t=En(e),n=Rs(e,1/0),r=e;return r.length?r.length===1?Y(r[0]):Ks(n)(Rn(r,t)):Ps}function io(e,t=Dt){return e=e??Ju,ee((n,r)=>{let o,i=!0;n.subscribe(ue(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Ju(e,t){return e===t}function Fn(e={}){let{connector:t=()=>new Ze,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,c=0,p=!1,h=!1,g=()=>{a?.unsubscribe(),a=void 0},v=()=>{g(),s=l=void 0,p=h=!1},E=()=>{let A=s;v(),A?.unsubscribe()};return ee((A,$)=>{c++,!h&&!p&&g();let O=l=l??t();$.add(()=>{c--,c===0&&!h&&!p&&(a=so(E,o))}),O.subscribe($),!s&&c>0&&(s=new Ve({next:J=>O.next(J),error:J=>{h=!0,g(),a=so(v,n,J),O.error(J)},complete:()=>{p=!0,g(),a=so(v,r),O.complete()}}),Y(A).subscribe(s))})(i)}}function so(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Ve({next:()=>{r.unsubscribe(),e()}});return Y(t(...n)).subscribe(r)}function ao(e,t){return ee((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(ue(r,l=>{o?.unsubscribe();let c=0,p=i++;Y(e(l,p)).subscribe(o=ue(r,h=>r.next(t?t(l,h,p,c++):h),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function Z(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(Z).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function wo(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var ed=L({__forward_ref__:L});function Pa(e){return e.__forward_ref__=Pa,e.toString=function(){return Z(this())},e}function De(e){return td(e)?e():e}function td(e){return typeof e=="function"&&e.hasOwnProperty(ed)&&e.__forward_ref__===Pa}function Na(e){return e&&!!e.\u0275providers}var nd="https://g.co/ng/security#xss",k=class extends Error{constructor(t,n){super(fi(t,n)),this.code=t}};function fi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}var rd=L({\u0275cmp:L}),od=L({\u0275dir:L}),id=L({\u0275pipe:L}),sd=L({\u0275mod:L}),Zs=L({\u0275fac:L}),Ht=L({__NG_ELEMENT_ID__:L}),Qs=L({__NG_ENV_ID__:L});function Wn(e){return typeof e=="string"?e:e==null?"":String(e)}function ad(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Wn(e)}function ld(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new k(-200,`Circular dependency in DI detected for ${e}${n}`)}function pi(e,t){let n=t?` in ${t}`:"";throw new k(-201,!1)}function cd(e,t){e==null&&ud(t,e,null,"!=")}function ud(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function He(e){return{providers:e.providers||[],imports:e.imports||[]}}function hi(e){return Xs(e,Oa)||Xs(e,Ra)}function Xs(e,t){return e.hasOwnProperty(t)?e[t]:null}function dd(e){let t=e&&(e[Oa]||e[Ra]);return t||null}function Js(e){return e&&(e.hasOwnProperty(ea)||e.hasOwnProperty(fd))?e[ea]:null}var Oa=L({\u0275prov:L}),ea=L({\u0275inj:L}),Ra=L({ngInjectableDef:L}),fd=L({ngInjectorDef:L}),T=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(T||{}),Eo;function pd(){return Eo}function Me(e){let t=Eo;return Eo=e,t}function Fa(e,t,n){let r=hi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&T.Optional)return null;if(t!==void 0)return t;pi(Z(e),"Injector")}var se=globalThis;var R=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var hd={},qt=hd,bo="__NG_DI_FLAG__",Gn="ngTempTokenPath",gd="ngTokenPath",md=/\n/gm,vd="\u0275",ta="__source",Ut;function wt(e){let t=Ut;return Ut=e,t}function yd(e,t=T.Default){if(Ut===void 0)throw new k(-203,!1);return Ut===null?Fa(e,void 0,t):Ut.get(e,t&T.Optional?null:void 0,t)}function P(e,t=T.Default){return(pd()||yd)(De(e),t)}function X(e,t=T.Default){return P(e,cr(t))}function cr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Io(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):Z(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(md,` - `)}`}function ur(e){return{toString:e}.toString()}var Va=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Va||{}),Pe=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Pe||{}),Wt={},ie=[];function ja(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function xo(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?g="":g=o[h+1].toLowerCase();let v=r&8?g:null;if(v&&ja(v,c,0)!==-1||r&2&&c!==g){if(ye(r))return!1;s=!0}}}}return ye(r)||s}function ye(e){return(e&1)===0}function Sd(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!ye(s)&&(t+=ra(i,o),o=""),r=s,i=i||!ye(r);n++}return o!==""&&(t+=ra(i,o)),t}function Pd(e){return e.map(kd).join(",")}function Nd(e){let t=[],n=[],r=1,o=2;for(;r{let t=$a(e),n=tt(Le({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Va.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Pe.Emulated,styles:e.styles||ie,_:null,schemas:e.schemas||null,tView:null,id:""});qa(n);let r=e.dependencies;return n.directiveDefs=ia(r,!1),n.pipeDefs=ia(r,!0),n.id=Vd(n),n})}function Od(e){return _t(e)||Ua(e)}function Rd(e){return e!==null}function Ue(e){return ur(()=>({type:e.type,bootstrap:e.bootstrap||ie,declarations:e.declarations||ie,imports:e.imports||ie,exports:e.exports||ie,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function oa(e,t){if(e==null)return Wt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function ze(e){return ur(()=>{let t=$a(e);return qa(t),t})}function _t(e){return e[rd]||null}function Ua(e){return e[od]||null}function za(e){return e[id]||null}function Fd(e){let t=_t(e)||Ua(e)||za(e);return t!==null?t.standalone:!1}function Ld(e,t){let n=e[sd]||null;if(!n&&t===!0)throw new Error(`Type ${Z(e)} does not have '\u0275mod' property.`);return n}function $a(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Wt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||ie,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:oa(e.inputs,t),outputs:oa(e.outputs),debugInfo:null}}function qa(e){e.features?.forEach(t=>t(e))}function ia(e,t){if(!e)return null;let n=t?za:Od;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Rd)}function Vd(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483647+1,"c"+t}var $e=0,M=1,_=2,q=3,we=4,Ie=5,_o=6,Gt=7,Ee=8,St=9,Yt=10,W=11,Kt=12,sa=13,Ot=14,Ne=15,tn=16,Et=17,ke=18,fr=19,Wa=20,zt=21,lo=22,at=23,Oe=25,Ga=1,Ya=2,So=6,lt=7,Yn=8,Mt=9;var ae=11;function it(e){return Array.isArray(e)&&typeof e[Ga]=="object"}function be(e){return Array.isArray(e)&&e[Ga]===!0}function mi(e){return(e.flags&4)!==0}function pr(e){return e.componentOffset>-1}function hr(e){return(e.flags&1)===1}function nn(e){return!!e.template}function jd(e){return(e[_]&512)!==0}function Zt(e,t){let n=e.hasOwnProperty(Zs);return n?e[Zs]:null}var Mo=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function rn(){return Ka}function Ka(e){return e.type.prototype.ngOnChanges&&(e.setInput=Hd),Bd}rn.ngInherit=!0;function Bd(){let e=Qa(this),t=e?.current;if(t){let n=e.previous;if(n===Wt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Hd(e,t,n,r){let o=this.declaredInputs[n],i=Qa(e)||Ud(e,{previous:Wt,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new Mo(l&&l.currentValue,t,a===Wt),e[r]=t}var Za="__ngSimpleChanges__";function Qa(e){return e[Za]||null}function Ud(e,t){return e[Za]=t}var aa=null;var Ae=function(e,t,n){aa?.(e,t,n)},Xa="svg",zd="math";function Re(e){for(;Array.isArray(e);)e=e[$e];return e}function Ja(e,t){return Re(t[e])}function xe(e,t){return Re(t[e.index])}function el(e,t){return e.data[t]}function $d(e,t){return e[t]}function ht(e,t){let n=t[e];return it(n)?n:n[$e]}function qd(e){return(e[_]&4)===4}function vi(e){return(e[_]&128)===128}function Wd(e){return be(e[q])}function At(e,t){return t==null?null:e[t]}function tl(e){e[Et]=0}function Gd(e){e[_]&1024||(e[_]|=1024,vi(e)&&gr(e))}function Yd(e,t){for(;e>0;)t=t[Ot],e--;return t}function nl(e){e[_]&9216&&gr(e)}function gr(e){let t=e[q];for(;t!==null&&!(be(t)&&t[So]||it(t)&&t[_]&8192);){if(be(t))t[So]=!0;else if(t[_]|=8192,!vi(t))break;t=t[q]}}function Kd(e,t){if((e[_]&256)===256)throw new k(911,!1);e[zt]===null&&(e[zt]=[]),e[zt].push(t)}var S={lFrame:dl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Zd(){return S.lFrame.elementDepthCount}function Qd(){S.lFrame.elementDepthCount++}function Xd(){S.lFrame.elementDepthCount--}function rl(){return S.bindingsEnabled}function Jd(){return S.skipHydrationRootTNode!==null}function ef(e){return S.skipHydrationRootTNode===e}function tf(){S.skipHydrationRootTNode=null}function V(){return S.lFrame.lView}function le(){return S.lFrame.tView}function I(e){return S.lFrame.contextLView=e,e[Ee]}function x(e){return S.lFrame.contextLView=null,e}function _e(){let e=ol();for(;e!==null&&e.type===64;)e=e.parent;return e}function ol(){return S.lFrame.currentTNode}function nf(){let e=S.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function gt(e,t){let n=S.lFrame;n.currentTNode=e,n.isParent=t}function yi(){return S.lFrame.isParent}function il(){S.lFrame.isParent=!1}function rf(){return S.lFrame.contextLView}function sl(){let e=S.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function of(){return S.lFrame.bindingIndex}function sf(e){return S.lFrame.bindingIndex=e}function al(){return S.lFrame.bindingIndex++}function Ci(e){let t=S.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function af(){return S.lFrame.inI18n}function lf(e,t){let n=S.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ao(t)}function cf(){return S.lFrame.currentDirectiveIndex}function Ao(e){S.lFrame.currentDirectiveIndex=e}function uf(e){let t=S.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ll(){return S.lFrame.currentQueryIndex}function Di(e){S.lFrame.currentQueryIndex=e}function df(e){let t=e[M];return t.type===2?t.declTNode:t.type===1?e[Ie]:null}function cl(e,t,n){if(n&T.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&T.Host);)if(o=df(i),o===null||(i=i[Ot],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=S.lFrame=ul();return r.currentTNode=t,r.lView=e,!0}function wi(e){let t=ul(),n=e[M];S.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ul(){let e=S.lFrame,t=e===null?null:e.child;return t===null?dl(e):t}function dl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function fl(){let e=S.lFrame;return S.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var pl=fl;function Ei(){let e=fl();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ff(e){return(S.lFrame.contextLView=Yd(e,S.lFrame.contextLView))[Ee]}function Xe(){return S.lFrame.selectedIndex}function ct(e){S.lFrame.selectedIndex=e}function pf(){let e=S.lFrame;return el(e.tView,e.selectedIndex)}function hl(){S.lFrame.currentNamespace=Xa}function hf(){return S.lFrame.currentNamespace}var gl=!0;function mr(){return gl}function vr(e){gl=e}function gf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Ka(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function yr(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Et]+=65536),(a>14>16&&(e[_]&3)===t&&(e[_]+=16384,la(a,i)):la(a,i)}var xt=-1,Qt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function vf(e){return e instanceof Qt}function yf(e){return(e.flags&8)!==0}function Cf(e){return(e.flags&16)!==0}function vl(e){return e!==xt}function Kn(e){let t=e&32767;return e&32767}function Df(e){return e>>16}function Zn(e,t){let n=Df(e),r=t;for(;n>0;)r=r[Ot],n--;return r}var To=!0;function ca(e){let t=To;return To=e,t}var wf=256,yl=wf-1,Cl=5,Ef=0,Te={};function bf(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ht)&&(r=n[Ht]),r==null&&(r=n[Ht]=Ef++);let o=r&yl,i=1<>Cl)]|=i}function Dl(e,t){let n=wl(e,t);if(n!==-1)return n;let r=t[M];r.firstCreatePass&&(e.injectorIndex=t.length,uo(r.data,e),uo(t,null),uo(r.blueprint,null));let o=bi(e,t),i=e.injectorIndex;if(vl(o)){let s=Kn(o),a=Zn(o,t),l=a[M].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function uo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wl(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function bi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=_l(o),r===null)return xt;if(n++,o=o[Ot],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return xt}function If(e,t,n){bf(e,t,n)}function El(e,t,n){if(n&T.Optional||e!==void 0)return e;pi(t,"NodeInjector")}function bl(e,t,n,r){if(n&T.Optional&&r===void 0&&(r=null),!(n&(T.Self|T.Host))){let o=e[St],i=Me(void 0);try{return o?o.get(t,r,n&T.Optional):Fa(t,r,n&T.Optional)}finally{Me(i)}}return El(r,t,n)}function Il(e,t,n,r=T.Default,o){if(e!==null){if(t[_]&2048&&!(r&T.Self)){let s=Mf(e,t,n,r,Te);if(s!==Te)return s}let i=xl(e,t,n,r,Te);if(i!==Te)return i}return bl(t,n,r,o)}function xl(e,t,n,r,o){let i=_f(n);if(typeof i=="function"){if(!cl(t,e,r))return r&T.Host?El(o,n,r):bl(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&T.Optional))pi(n);else return s}finally{pl()}}else if(typeof i=="number"){let s=null,a=wl(e,t),l=xt,c=r&T.Host?t[Ne][Ie]:null;for((a===-1||r&T.SkipSelf)&&(l=a===-1?bi(e,t):t[a+8],l===xt||!da(r,!1)?a=-1:(s=t[M],a=Kn(l),t=Zn(l,t)));a!==-1;){let p=t[M];if(ua(i,a,p.data)){let h=xf(a,t,n,s,r,c);if(h!==Te)return h}l=t[a+8],l!==xt&&da(r,t[M].data[a+8]===c)&&ua(i,a,t)?(s=p,a=Kn(l),t=Zn(l,t)):a=-1}}return o}function xf(e,t,n,r,o,i){let s=t[M],a=s.data[e+8],l=r==null?pr(a)&&To:r!=s&&(a.type&3)!==0,c=o&T.Host&&i===a,p=Un(a,s,n,l,c);return p!==null?Tt(t,s,p,a):Te}function Un(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,p=i>>20,h=r?a:a+p,g=o?a+p:c;for(let v=h;v=l&&E.type===n)return v}if(o){let v=s[l];if(v&&nn(v)&&v.type===n)return l}return null}function Tt(e,t,n,r){let o=e[n],i=t.data;if(vf(o)){let s=o;s.resolving&&ld(ad(i[n]));let a=ca(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Me(s.injectImpl):null,p=cl(e,r,T.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&gf(n,i[n],t)}finally{c!==null&&Me(c),ca(a),s.resolving=!1,pl()}}return o}function _f(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ht)?e[Ht]:void 0;return typeof t=="number"?t>=0?t&yl:Sf:t}function ua(e,t,n){let r=1<>Cl)]&r)}function da(e,t){return!(e&T.Self)&&!(e&T.Host&&t)}var st=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Il(this._tNode,this._lView,t,cr(r),n)}};function Sf(){return new st(_e(),V())}function Mf(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[_]&2048&&!(s[_]&512);){let a=xl(i,s,n,r|T.Self,Te);if(a!==Te)return a;let l=i.parent;if(!l){let c=s[Wa];if(c){let p=c.get(n,Te,r);if(p!==Te)return p}l=_l(s),s=s[Ot]}i=l}return o}function _l(e){let t=e[M],n=t.type;return n===2?t.declTNode:n===1?e[Ie]:null}var Ln="__parameters__";function Af(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Sl(e,t,n){return ur(()=>{let r=Af(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,p){let h=l.hasOwnProperty(Ln)?l[Ln]:Object.defineProperty(l,Ln,{value:[]})[Ln];for(;h.length<=p;)h.push(null);return(h[p]=h[p]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Tf(e){let t=se.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function kf(e){return typeof e=="function"}function Pf(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Ii(n,t):t(n))}function Ml(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Of(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Cr(e,t,n){let r=on(e,t);return r>=0?e[r|1]=n:(r=~r,Rf(e,r,t,n)),r}function fo(e,t){let n=on(e,t);if(n>=0)return e[n|1]}function on(e,t){return Ff(e,t,1)}function Ff(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(c=>{o.template=c}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let c=o.styles.length,p=o.styleUrls;o.styleUrls.forEach((h,g)=>{a.push(""),s.push(r(h).then(v=>{a[c+g]=v,p.splice(p.indexOf(h),1),p.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(c=>{a.push(c),o.styleUrl=void 0}));let l=Promise.all(s).then(()=>zf(i));t.push(l)}),Bf(),Promise.all(t).then(()=>{})}var Xn=new Map,jf=new Set;function Bf(){let e=Xn;return Xn=new Map,e}function Hf(){return Xn.size===0}function Uf(e){return typeof e=="string"?e:e.text()}function zf(e){jf.delete(e)}var Dr=new R("ENVIRONMENT_INITIALIZER"),Tl=new R("INJECTOR",-1),kl=new R("INJECTOR_DEF_TYPES"),Jn=class{get(t,n=qt){if(n===qt){let r=new Error(`NullInjectorError: No provider for ${Z(t)}!`);throw r.name="NullInjectorError",r}return n}};function $f(...e){return{\u0275providers:qf(!0,e),\u0275fromNgModule:!0}}function qf(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ii(t,s=>{let a=s;ko(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Pl(o,i),n}function Pl(e,t){for(let n=0;n{t(i,r)})}}function ko(e,t,n,r){if(e=De(e),!e)return!1;let o=null,i=Js(e),s=!i&&_t(e);if(!i&&!s){let l=e.ngModule;if(i=Js(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)ko(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Ii(i.imports,p=>{ko(p,t,n,r)&&(c||=[],c.push(p))})}finally{}c!==void 0&&Pl(c,t)}if(!a){let c=Zt(o)||(()=>new o);t({provide:o,useFactory:c,deps:ie},o),t({provide:kl,useValue:o,multi:!0},o),t({provide:Dr,useValue:()=>P(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;xi(l,p=>{t(p,c)})}}else return!1;return o!==e&&e.providers!==void 0}function xi(e,t){for(let n of e)Na(n)&&(n=n.\u0275providers),Array.isArray(n)?xi(n,t):t(n)}var Wf=L({provide:String,useValue:L});function Nl(e){return e!==null&&typeof e=="object"&&Wf in e}function Gf(e){return!!(e&&e.useExisting)}function Yf(e){return!!(e&&e.useFactory)}function Po(e){return typeof e=="function"}var wr=new R("Set Injector scope."),zn={},Kf={},po;function Ol(){return po===void 0&&(po=new Jn),po}var ut=class{},No=class extends ut{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ro(t,s=>this.processProvider(s)),this.records.set(Tl,bt(void 0,this)),o.has("environment")&&this.records.set(ut,bt(void 0,this));let i=this.records.get(wr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(kl,ie,T.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let t=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=wt(this),r=Me(void 0),o;try{return t()}finally{wt(n),Me(r)}}get(t,n=qt,r=T.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Qs))return t[Qs](this);r=cr(r);let o,i=wt(this),s=Me(void 0);try{if(!(r&T.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=tp(t)&&hi(t);c&&this.injectableDefInScope(c)?l=bt(Oo(t),zn):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&T.Self?Ol():this.parent;return n=r&T.Optional&&n===qt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Gn]=a[Gn]||[]).unshift(Z(t)),i)throw a;return Dd(a,t,"R3InjectorError",this.source)}else throw a}finally{Me(s),wt(i)}}resolveInjectorInitializers(){let t=wt(this),n=Me(void 0),r;try{let o=this.get(Dr,ie,T.Self);for(let i of o)i()}finally{wt(t),Me(n)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Z(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new k(205,!1)}processProvider(t){t=De(t);let n=Po(t)?t:De(t&&t.provide),r=Qf(t);if(!Po(t)&&t.multi===!0){let o=this.records.get(n);o||(o=bt(void 0,zn,!0),o.factory=()=>Io(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}else{let o=this.records.get(n)}this.records.set(n,r)}hydrate(t,n){return n.value===zn&&(n.value=Kf,n.value=n.factory()),typeof n.value=="object"&&n.value&&ep(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;let n=De(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Oo(e){let t=hi(e),n=t!==null?t.factory:Zt(e);if(n!==null)return n;if(e instanceof R)throw new k(204,!1);if(e instanceof Function)return Zf(e);throw new k(204,!1)}function Zf(e){let t=e.length;if(t>0){let r=Of(t,"?");throw new k(204,!1)}let n=dd(e);return n!==null?()=>n.factory(e):()=>new e}function Qf(e){if(Nl(e))return bt(void 0,e.useValue);{let t=Xf(e);return bt(t,zn)}}function Xf(e,t,n){let r;if(Po(e)){let o=De(e);return Zt(o)||Oo(o)}else if(Nl(e))r=()=>De(e.useValue);else if(Yf(e))r=()=>e.useFactory(...Io(e.deps||[]));else if(Gf(e))r=()=>P(De(e.useExisting));else{let o=De(e&&(e.useClass||e.provide));if(Jf(e))r=()=>new o(...Io(e.deps));else return Zt(o)||Oo(o)}return r}function bt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Jf(e){return!!e.deps}function ep(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function tp(e){return typeof e=="function"||typeof e=="object"&&e instanceof R}function Ro(e,t){for(let n of e)Array.isArray(n)?Ro(n,t):n&&Na(n)?Ro(n.\u0275providers,t):t(n)}function fa(e,t=null,n=null,r){let o=Rl(e,t,n,r);return o.resolveInjectorInitializers(),o}function Rl(e,t=null,n=null,r,o=new Set){let i=[n||ie,$f(e)];return r=r||(typeof e=="object"?void 0:Z(e)),new No(i,t||Ol(),r||null,o)}var fe=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return fa({name:""},o,r,"");{let i=r.name??"";return fa({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=qt,t.NULL=new Jn,t.\u0275prov=B({token:t,providedIn:"any",factory:()=>P(Tl)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var Fo;function Fl(e){Fo=e}function np(){if(Fo!==void 0)return Fo;if(typeof document<"u")return document;throw new k(210,!1)}var Er=new R("AppId",{providedIn:"root",factory:()=>rp}),rp="ng",_i=new R("Platform Initializer"),Je=new R("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var Si=new R("CSP nonce",{providedIn:"root",factory:()=>np().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Mi(e){return e.ownerDocument}function op(e){return e instanceof Function?e():e}function Ll(e){return(e.flags&128)===128}var je=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(je||{}),ip=/^>|^->||--!>|)/g,ap="\u200B$1\u200B";function lp(e){return e.replace(ip,t=>t.replace(sp,ap))}var Vl=new Map,cp=0;function up(){return cp++}function dp(e){Vl.set(e[fr],e)}function fp(e){Vl.delete(e[fr])}var pa="__ngContext__";function Qe(e,t){it(t)?(e[pa]=t[fr],dp(t)):e[pa]=t}var pp;function Ai(e,t){return pp(e,t)}function Ti(e){let t=e[q];return be(t)?t[q]:t}function jl(e){return Hl(e[Kt])}function Bl(e){return Hl(e[we])}function Hl(e){for(;e!==null&&!be(e);)e=e[we];return e}function It(e,t,n,r,o){if(r!=null){let i,s=!1;be(r)?i=r:it(r)&&(s=!0,r=r[$e]);let a=Re(r);e===0&&n!==null?o==null?ql(t,n,a):er(t,n,a,o||null,!0):e===1&&n!==null?er(t,n,a,o||null,!0):e===2?Pp(t,a,s):e===3&&t.destroyNode(a),i!=null&&Op(t,e,i,n,o)}}function hp(e,t){return e.createText(t)}function gp(e,t,n){e.setValue(t,n)}function mp(e,t){return e.createComment(lp(t))}function Ul(e,t,n){return e.createElement(t,n)}function vp(e,t){let n=t[W];sn(e,t,n,2,null,null),t[$e]=null,t[Ie]=null}function yp(e,t,n,r,o,i){r[$e]=o,r[Ie]=t,sn(e,r,n,1,o,i)}function Cp(e,t){sn(e,t,t[W],2,null,null)}function Dp(e){let t=e[Kt];if(!t)return ho(e[M],e);for(;t;){let n=null;if(it(t))n=t[Kt];else{let r=t[ae];r&&(n=r)}if(!n){for(;t&&!t[we]&&t!==e;)it(t)&&ho(t[M],t),t=t[q];t===null&&(t=e),it(t)&&ho(t[M],t),n=t&&t[we]}t=n}}function wp(e,t,n,r){let o=ae+r,i=n.length;r>0&&(n[o-1][we]=t),r0&&(e[n-1][we]=r[we]);let i=Qn(e,ae+t);vp(r[M],r);let s=i[ke];s!==null&&s.detachView(i[M]),r[q]=null,r[we]=null,r[_]&=-129}return r}function $l(e,t){if(!(t[_]&256)){let n=t[W];t[at]&&Es(t[at]),n.destroyNode&&sn(e,t,n,3,null,null),Dp(t)}}function ho(e,t){if(!(t[_]&256)){t[_]&=-129,t[_]|=256,Ip(e,t),bp(e,t),t[M].type===1&&t[W].destroy();let n=t[tn];if(n!==null&&be(t[q])){n!==t[q]&&zl(n,t);let r=t[ke];r!==null&&r.detachView(e)}fp(t)}}function bp(e,t){let n=e.cleanup,r=t[Gt];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[Gt]=null);let o=t[zt];if(o!==null){t[zt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Pe.None||i===Pe.Emulated)return null}return xe(r,n)}}function er(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ql(e,t,n){e.appendChild(t,n)}function ha(e,t,n,r,o){r!==null?er(e,t,n,r,o):ql(e,t,n)}function Sp(e,t,n,r){e.removeChild(t,n,r)}function ki(e,t){return e.parentNode(t)}function Mp(e,t){return e.nextSibling(t)}function Ap(e,t,n){return kp(e,t,n)}function Tp(e,t,n){return e.type&40?xe(e,n):null}var kp=Tp,ga;function br(e,t,n,r){let o=xp(e,r,t),i=t[W],s=r.parent||t[Ie],a=Ap(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;lnull;function Ni(e,t,n=!1){return jp(e,t,n)}var Bo=class{},tr=class{};function Bp(e){let t=Error(`No component factory found for ${Z(e)}.`);return t[Hp]=e,t}var Hp="ngComponent";var Ho=class{resolveComponentFactory(t){throw Bp(t)}},an=(()=>{let t=class t{};t.NULL=new Ho;let e=t;return e})();function Up(){return Rt(_e(),V())}function Rt(e,t){return new pe(xe(e,t))}var pe=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=Up;let e=t;return e})();function zp(e){return e instanceof pe?e.nativeElement:e}var Xt=class{};var $p=(()=>{let t=class t{};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Jt=class{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}},qp=new Jt("17.0.2"),go={};function Kl(e){return Gp(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Wp(e,t){if(Array.isArray(e))for(let n=0;nt,zo=class{constructor(t){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=t||Yp}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new $o(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new nr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new nr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},$o=class{constructor(t,n){this.item=t,this.trackById=n,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}},qo=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},nr=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new qo,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ma(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||va()),deps:[[t,new Lf,new Al]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new k(901,!1)}};t.\u0275prov=B({token:t,providedIn:"root",factory:va});let e=t;return e})();function rr(e,t,n,r,o=!1){for(;n!==null;){let i=t[n.index];i!==null&&r.push(Re(i)),be(i)&&Kp(i,r);let s=n.type;if(s&8)rr(e,t,n.child,r);else if(s&32){let a=Ai(n,t),l;for(;l=a();)r.push(l)}else if(s&16){let a=Wl(t,n);if(Array.isArray(a))r.push(...a);else{let l=Ti(t[Ne]);rr(l[M],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Kp(e,t){for(let n=ae;n{gr(e.lView)},consumerOnSignalRead(){this.lView[at]=this}}),eh="ngOriginalError";function mo(e){return e[eh]}var Be=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&mo(t);for(;n&&mo(n);)n=mo(n);return n||null}};var Ql=!1,th=new R("",{providedIn:"root",factory:()=>Ql});var he={};function m(e){Xl(le(),V(),Xe()+e,!1)}function Xl(e,t,n,r){if(!r)if((t[_]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Bn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Hn(t,i,0,n)}ct(n)}function j(e,t=T.Default){let n=V();if(n===null)return P(e,t);let r=_e();return Il(r,n,De(e),t)}function nh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;rOe&&Xl(e,t,Oe,!1),Ae(s?2:0,o),n(r,o)}finally{ct(i),Ae(s?3:1,o)}}function Ri(e,t,n){if(mi(t)){let r=re(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function lh(e,t,n,r){let o=ac(t);o.push(n),e.firstCreatePass&&lc(e).push(r,o.length-1)}function ch(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Jd()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value: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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function ya(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=n===null?{}:n;let i=e[o];r===null?Ca(n,t,o,i):r.hasOwnProperty(o)&&Ca(n,t,r[o],i)}return n}function Ca(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function uh(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],l=null,c=null;for(let p=r;p0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mh(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;pr(n)&&bh(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Dl(n,t),Qe(r,t);let s=n.initialInputs;for(let a=o;a-1&&(Lo(t,r),Qn(n,r))}this._attachedToViewContainer=!1}$l(this._lView[M],this._lView)}onDestroy(t){Kd(this._lView,t)}markForCheck(){Hi(this._cdRefInjectingView||this._lView)}detach(){this._lView[_]&=-129}reattach(){nl(this._lView),this._lView[_]|=128}detectChanges(){Sh(this._lView[M],this._lView,this.context,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new k(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Cp(this._lView[M],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new k(902,!1);this._appRef=t}},Ui=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Ph;let e=t;return e})();function Ph(e){return Nh(_e(),V(),(e&16)===16)}function Nh(e,t,n){if(pr(e)&&!n){let r=ht(e.index,t);return new dt(r,r)}else if(e.type&47){let r=t[Ne];return new dt(r,t)}return null}var Yo=class extends Ze{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=vo(i),o&&(o=vo(o)),s&&(s=vo(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof oe&&t.add(a),a}};function vo(e){return t=>{setTimeout(e,void 0,t)}}var F=Yo;function Da(...e){}function Oh(){let e=typeof se.requestAnimationFrame=="function",t=se[e?"requestAnimationFrame":"setTimeout"],n=se[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var z=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new F(!1),this.onMicrotaskEmpty=new F(!1),this.onStable=new F(!1),this.onError=new F(!1),typeof Zone>"u")throw new k(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Oh().nativeRequestAnimationFrame,Lh(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new k(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new k(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Rh,Da,Da);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Rh={};function zi(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Fh(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ko(e),e.isCheckStableRunning=!0,zi(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ko(e))}function Lh(e){let t=()=>{Fh(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(Vh(a))return n.invokeTask(o,i,s,a);try{return wa(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ea(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return wa(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),Ea(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Ko(e),zi(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Ko(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function wa(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ea(e){e._nesting--,zi(e)}var Zo=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new F,this.onMicrotaskEmpty=new F,this.onStable=new F,this.onError=new F}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}},mc=new R("",{providedIn:"root",factory:vc});function vc(){let e=X(z),t=!0,n=new U(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),r=new U(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});let s=e.onUnstable.subscribe(()=>{z.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}});return oo(n,r.pipe(Fn()))}function Vh(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}var jh=(()=>{let t=class t{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let r of this.internalCallbacks)r();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Bh(e,t){let n=ht(t,e),r=n[M];Hh(r,n);let o=n[$e];o!==null&&n[_o]===null&&(n[_o]=Ni(o,n[St])),$i(r,n,n[Ee])}function Hh(e,t){for(let n=t.length;n0&&Gl(e,n,i.join(" "))}}function Kh(e,t,n){let r=e.projection=[];for(let o=0;o>17&32767}function Jh(e){return(e&2)==2}function eg(e,t){return e&131071|t<<17}function ei(e){return e|2}function Pt(e){return(e&131068)>>2}function yo(e,t){return e&-131069|t<<2}function tg(e){return(e&1)===1}function ti(e){return e|1}function ng(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ft(s),l=Pt(s);e[r]=n;let c=!1,p;if(Array.isArray(n)){let h=n;p=h[1],(p===null||on(h,p)>0)&&(c=!0)}else p=n;if(o)if(l!==0){let g=ft(e[a+1]);e[r+1]=Vn(g,a),g!==0&&(e[g+1]=yo(e[g+1],r)),e[a+1]=eg(e[a+1],r)}else e[r+1]=Vn(a,0),a!==0&&(e[a+1]=yo(e[a+1],r)),a=r;else e[r+1]=Vn(l,0),a===0?a=r:e[l+1]=yo(e[l+1],r),l=r;c&&(e[r+1]=ei(e[r+1])),Ia(e,p,r,!0,i),Ia(e,p,r,!1,i),rg(t,p,e,r,i),s=Vn(a,l),i?t.classBindings=s:t.styleBindings=s}function rg(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&on(i,t)>=0&&(n[r+1]=ti(n[r+1]))}function Ia(e,t,n,r,o){let i=e[n+1],s=t===null,a=r?ft(i):Pt(i),l=!1;for(;a!==0&&(l===!1||s);){let c=e[a],p=e[a+1];og(c,t)&&(l=!0,e[a+1]=r?ti(p):ei(p)),a=r?ft(p):Pt(p)}l&&(e[n+1]=r?ei(i):ti(i))}function og(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?on(e,t)>=0:!1}var Ce={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function ig(e){return e.substring(Ce.key,Ce.keyEnd)}function sg(e){return ag(e),wc(e,Ec(e,0,Ce.textEnd))}function wc(e,t){let n=Ce.textEnd;return n===t?-1:(t=Ce.keyEnd=lg(e,Ce.key=t,n),Ec(e,t,n))}function ag(e){Ce.key=0,Ce.keyEnd=0,Ce.value=0,Ce.valueEnd=0,Ce.textEnd=e.length}function Ec(e,t,n){for(;t32;)t++;return t}function y(e,t,n){let r=V(),o=al();if(kt(r,o,t)){let i=le(),s=pf();fh(i,s,r,e,t,r[W],n,!1)}return y}function ni(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";Bi(e,n,i[s],s,r)}function b(e,t,n){return Ic(e,t,n,!1),b}function Sr(e,t){return Ic(e,t,null,!0),Sr}function mt(e){xc(hg,bc,e,!0)}function bc(e,t){for(let n=sg(t);n>=0;n=wc(t,n))Cr(e,ig(t),!0)}function Ic(e,t,n,r){let o=V(),i=le(),s=Ci(2);if(i.firstUpdatePass&&Sc(i,e,s,r),t!==he&&kt(o,s,t)){let a=i.data[Xe()];Mc(i,a,o,o[W],e,o[s+1]=mg(t,n),r,s)}}function xc(e,t,n,r){let o=le(),i=Ci(2);o.firstUpdatePass&&Sc(o,null,i,r);let s=V();if(n!==he&&kt(s,i,n)){let a=o.data[Xe()];if(Ac(a,r)&&!_c(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=wo(l,n||"")),ni(o,a,s,n,r)}else gg(o,a,s,s[W],s[i+1],s[i+1]=pg(e,t,n),r,i)}}function _c(e,t){return t>=e.expandoStartIndex}function Sc(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Xe()],s=_c(e,n);Ac(i,r)&&t===null&&!s&&(t=!1),t=cg(o,i,t,r),ng(o,i,t,n,s,r)}}function cg(e,t,n,r){let o=uf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Co(null,e,t,n,r),n=en(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Co(o,e,t,n,r),i===null){let l=ug(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Co(null,e,t,l[1],r),l=en(l,t.attrs,r),dg(e,t,r,l))}else i=fg(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function ug(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Pt(r)!==0)return e[ft(r)]}function dg(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ft(o)]=r}function fg(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let l=e[o],c=Array.isArray(l),p=c?l[1]:l,h=p===null,g=n[o+1];g===he&&(g=h?ie:void 0);let v=h?fo(g,r):p===r?g:void 0;if(c&&!sr(v)&&(v=fo(l,r)),sr(v)&&(a=v,s))return a;let E=e[o+1];o=s?ft(E):Pt(E)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=fo(l,r))}return a}function sr(e){return e!==void 0}function mg(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Z(Ir(e)))),e}function Ac(e,t){return(e.flags&(t?8:16))!==0}function Tc(e,t,n){let r=V(),o=Dc(r,e,t,n);xc(Cr,bc,o,!0)}var pD=new RegExp(`^(\\d+)*(${Vp}|${Lp})*(.*)`);var vg=(e,t)=>null;function _a(e,t){return vg(e,t)}function yg(e,t,n,r){let o=t.tView,s=e[_]&4096?4096:16,a=xr(e,o,n,s,null,t,null,null,null,r?.injector??null,r?.dehydratedView??null),l=e[t.index];a[tn]=l;let c=e[ke];return c!==null&&(a[ke]=c.createEmbeddedView(o)),$i(o,a,n),a}function Sa(e,t){return!t||Ll(e)}function Cg(e,t,n,r=!0){let o=t[M];if(wp(o,t,e,n),r){let i=Vo(n,e),s=t[W],a=ki(s,e[lt]);a!==null&&yp(o,e[Ie],s,t,a,i)}}var Se=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Dg;let e=t;return e})();function Dg(){let e=_e();return Pc(e,V())}var wg=Se,kc=class extends wg{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Rt(this._hostTNode,this._hostLView)}get injector(){return new st(this._hostTNode,this._hostLView)}get parentInjector(){let t=bi(this._hostTNode,this._hostLView);if(vl(t)){let n=Zn(t,this._hostLView),r=Kn(t),o=n[M].data[r+8];return new st(o,n)}else return new st(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Ma(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-ae}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=_a(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Sa(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!kf(t),a;if(s)a=n;else{let E=n||{};a=E.index,r=E.injector,o=E.projectableNodes,i=E.environmentInjector||E.ngModuleRef}let l=s?t:new ir(_t(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let A=(s?c:this.parentInjector).get(ut,null);A&&(i=A)}let p=_t(l.componentType??{}),h=_a(this._lContainer,p?.id??null),g=h?.firstChild??null,v=l.create(c,o,g,i);return this.insertImpl(v.hostView,a,Sa(this._hostTNode,h)),v}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Wd(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[q],c=new kc(l,l[Ie],l[q]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Cg(s,o,i,r),t.attachToViewContainerRef(),Ml(Do(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Ma(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Lo(this._lContainer,n);r&&(Qn(Do(this._lContainer),n),$l(r[M],r))}detach(t){let n=this._adjustIndex(t,-1),r=Lo(this._lContainer,n);return r&&Qn(Do(this._lContainer),n)!=null?new dt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Ma(e){return e[Yn]}function Do(e){return e[Yn]||(e[Yn]=[])}function Pc(e,t){let n,r=t[e.index];return be(r)?n=r:(n=ic(r,t,null,e),t[e.index]=n,_r(t,n)),bg(n,t,e,r),new kc(n,e,t)}function Eg(e,t){let n=e[W],r=n.createComment(""),o=xe(t,e),i=ki(n,o);return er(n,i,r,Mp(n,o),!1),r}var bg=_g,Ig=(e,t,n)=>!1;function xg(e,t,n){return Ig(e,t,n)}function _g(e,t,n,r){if(e[lt])return;let o;n.type&8?o=Re(r):o=Eg(t,n),e[lt]=o}function Sg(e,t,n,r,o,i,s,a,l){let c=t.consts,p=ln(t,e,4,s||null,At(c,a));ji(t,n,p,At(c,l)),yr(t,p);let h=p.tView=Vi(2,p,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c,null);return t.queries!==null&&(t.queries.template(t,p),h.queries=t.queries.embeddedTView(p)),p}function H(e,t,n,r,o,i,s,a){let l=V(),c=le(),p=e+Oe,h=c.firstCreatePass?Sg(p,c,l,t,n,r,o,i,s):c.data[p];gt(h,!1);let g=Mg(c,l,h,e);mr()&&br(c,l,g,h),Qe(g,l);let v=ic(g,l,g,h);return l[p]=v,_r(l,v),xg(v,h,l),hr(h)&&Fi(c,l,h),s!=null&&Li(l,h,a),H}var Mg=Ag;function Ag(e,t,n,r){return vr(!0),t[W].createComment("")}function Tg(e,t,n,r,o,i){let s=t.consts,a=At(s,o),l=ln(t,e,2,r,a);return ji(t,n,l,At(s,i)),l.attrs!==null&&or(l,l.attrs,!1),l.mergedAttrs!==null&&or(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function d(e,t,n,r){let o=V(),i=le(),s=Oe+e,a=o[W],l=i.firstCreatePass?Tg(s,i,o,t,n,r):i.data[s],c=kg(i,o,l,a,t,e);o[s]=c;let p=hr(l);return gt(l,!0),Yl(a,c,l),(l.flags&32)!==32&&mr()&&br(i,o,c,l),Zd()===0&&Qe(c,o),Qd(),p&&(Fi(i,o,l),Ri(i,l,o)),r!==null&&Li(o,l),d}function u(){let e=_e();yi()?il():(e=e.parent,gt(e,!1));let t=e;ef(t)&&tf(),Xd();let n=le();return n.firstCreatePass&&(yr(n,e),mi(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&yf(t)&&ni(n,t,V(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Cf(t)&&ni(n,t,V(),t.stylesWithoutHost,!1),u}function C(e,t,n,r){return d(e,t,n,r),u(),C}var kg=(e,t,n,r,o,i)=>(vr(!0),Ul(r,o,hf()));function Pg(e,t,n,r,o){let i=t.consts,s=At(i,r),a=ln(t,e,8,"ng-container",s);s!==null&&or(a,s,!0);let l=At(i,o);return ji(t,n,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function Nc(e,t,n){let r=V(),o=le(),i=e+Oe,s=o.firstCreatePass?Pg(i,o,r,t,n):o.data[i];gt(s,!0);let a=Ng(o,r,s,e);return r[i]=a,mr()&&br(o,r,a,s),Qe(a,r),hr(s)&&(Fi(o,r,s),Ri(o,s,r)),n!=null&&Li(r,s),Nc}function Oc(){let e=_e(),t=le();return yi()?il():(e=e.parent,gt(e,!1)),t.firstCreatePass&&(yr(t,e),mi(e)&&t.queries.elementEnd(e)),Oc}function qi(e,t,n){return Nc(e,t,n),Oc(),qi}var Ng=(e,t,n,r)=>(vr(!0),mp(t[W],""));function G(){return V()}var ar="en-US";var Og=ar;function Rg(e){cd(e,"Expected localeId to be defined"),typeof e=="string"&&(Og=e.toLowerCase().replace(/_/g,"-"))}function Wi(e){return!!e&&typeof e.then=="function"}function Rc(e){return!!e&&typeof e.subscribe=="function"}function w(e,t,n,r){let o=V(),i=le(),s=_e();return Lg(i,o,o[W],s,e,t,r),w}function Fg(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;il?a[l]:null}typeof s=="string"&&(i+=2)}return null}function Lg(e,t,n,r,o,i,s){let a=hr(r),c=e.firstCreatePass&&lc(e),p=t[Ee],h=ac(t),g=!0;if(r.type&3||s){let A=xe(r,t),$=s?s(A):A,O=h.length,J=s?me=>s(Re(me[r.index])):r.index,K=null;if(!s&&a&&(K=Fg(e,t,o,r.index)),K!==null){let me=K.__ngLastListenerFn__||K;me.__ngNextListenerFn__=i,K.__ngLastListenerFn__=i,g=!1}else{i=Ta(r,t,p,i,!1);let me=n.listen($,o,i);h.push(i,me),c&&c.push(o,J,O,O+1)}}else i=Ta(r,t,p,i,!1);let v=r.outputs,E;if(g&&v!==null&&(E=v[o])){let A=E.length;if(A)for(let $=0;$-1?ht(e.index,t):t;Hi(a);let l=Aa(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)l=Aa(t,n,c,s)&&l,c=c.__ngNextListenerFn__;return o&&l===!1&&s.preventDefault(),l}}function D(e=1){return ff(e)}function Mr(e){let t=rf();return $d(t,Oe+e)}function f(e,t=""){let n=V(),r=le(),o=e+Oe,i=r.firstCreatePass?ln(r,o,1,t,null):r.data[o],s=Vg(r,n,i,t,e);n[o]=s,mr()&&br(r,n,s,i),gt(i,!1)}var Vg=(e,t,n,r,o)=>(vr(!0),hp(t[W],r));function et(e){return Ft("",e,""),et}function Ft(e,t,n){let r=V(),o=Dc(r,e,t,n);return o!==he&&uc(r,Xe(),o),Ft}function Ar(e,t,n,r,o){let i=V(),s=Xh(i,e,t,n,r,o);return s!==he&&uc(i,Xe(),s),Ar}var Nt=class{},ri=class{};var lr=class extends Nt{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qo(this);let o=Ld(t);this._bootstrapComponents=op(o.bootstrap),this._r3Injector=Rl(t,n,[{provide:Nt,useValue:this},{provide:an,useValue:this.componentFactoryResolver},...r],Z(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},oi=class extends ri{constructor(t){super(),this.moduleType=t}create(t){return new lr(this.moduleType,t,[])}};function jg(e,t,n){return new lr(e,t,n)}function Gi(e,t,n){let r=sl()+e,o=V();return o[r]===he?yc(o,r,n?t.call(n):t()):Qh(o,r)}function Fc(e,t,n,r,o){return Hg(V(),sl(),e,t,n,r,o)}function Bg(e,t){let n=e[t];return n===he?void 0:n}function Hg(e,t,n,r,o,i,s){let a=t+n;return Cc(e,a,o,i)?yc(e,a+2,s?r.call(s,o,i):r(o,i)):Bg(e,a+2)}function Ug(){return this._results[Symbol.iterator]()}var ii=class e{get changes(){return this._changes||(this._changes=new F)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=Ug)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Nf(t);(this._changesDetected=!Pf(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},pt=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=qg;let e=t;return e})(),zg=pt,$g=class extends zg{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=yg(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new dt(o)}};function qg(){return Tr(_e(),V())}function Tr(e,t){return e.type&4?new $g(t,e,Rt(e,t)):null}var si=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ai=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],p=t[-l];for(let h=ae;h{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=X(em,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(Wi(s))r.push(s);else if(Rc(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function tm(){return typeof $localize<"u"&&$localize.locale||ar}var Yi=new R("LocaleId",{providedIn:"root",factory:()=>X(Yi,T.Optional|T.SkipSelf)||tm()});var nm=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Bt(!1)}add(){this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var rm=new R("compilerOptions");var Ki=new R(""),cn=new R(""),Or=(()=>{let t=class t{constructor(r,o,i){this._ngZone=r,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Zi||(om(i),i.addToWindow(o)),this._watchAngularEvents(),r.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:()=>{z.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb(this._didWork)}this._didWork=!1});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(r)?(clearTimeout(o.timeoutId),!1):!0),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:i})}whenStable(r,o,i){if(i&&!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(r,o,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,i){return[]}};t.\u0275fac=function(o){return new(o||t)(P(z),P(Rr),P(cn))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),Rr=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){return Zi?.findTestabilityInTree(this,r,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function om(e){Zi=e}var Zi,$t=null,Hc=new R("AllowMultipleToken"),Uc=new R("PlatformDestroyListeners"),im=new R("appBootstrapListener");function sm(e,t,n){let r=new oi(n);return Promise.resolve(r)}function am(){bs(()=>{throw new k(600,!1)})}function lm(e){return e.isBoundToModule}function cm(e){if($t&&!$t.get(Hc,!1))throw new k(400,!1);am(),$t=e;let t=e.get($c);return um(e),t}function um(e){e.get(_i,null)?.forEach(n=>n())}function Qi(e,t,n=[]){let r=`Platform: ${t}`,o=new R(r);return(i=[])=>{let s=zc();if(!s||s.injector.get(Hc,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):cm(fm(a,r))}return dm(o)}}function dm(e){let t=zc();if(!t)throw new k(401,!1);return t}function fm(e=[],t){return fe.create({name:t,providers:[{provide:wr,useValue:"platform"},{provide:Uc,useValue:new Set([()=>$t=null])},...e]})}function zc(){return $t?.get($c)??null}var $c=(()=>{let t=class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,o){let i=hm(o?.ngZone,pm({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=jg(r.moduleType,this.injector,ym(()=>i)),a=s.injector.get(Be,null);return i.runOutsideAngular(()=>{let l=i.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{qn(this._modules,s),l.unsubscribe()})}),gm(a,i,()=>{let l=s.injector.get(Bc);return l.runInitializers(),l.donePromise.then(()=>{let c=s.injector.get(Yi,ar);return Rg(c||ar),this._moduleDoBootstrap(s),s})})})}bootstrapModule(r,o=[]){let i=qc({},o);return sm(this.injector,i,r).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(r){let o=r.injector.get(Lt);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(r.instance.ngDoBootstrap)r.instance.ngDoBootstrap(o);else throw new k(-403,!1);this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new k(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let r=this._injector.get(Uc,null);r&&(r.forEach(o=>o()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(o){return new(o||t)(P(fe))},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function pm(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}function hm(e="zone.js",t){return e==="noop"?new Zo:e==="zone.js"?new z(t):e}function gm(e,t,n){try{let r=n();return Wi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function qc(e,t){return Array.isArray(t)?t.reduce(qc,e):Le(Le({},e),t)}var Lt=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=X(Wc),this.zoneIsStable=X(mc),this.componentTypes=[],this.components=[],this.isStable=X(nm).hasPendingTasks.pipe(ao(r=>r?no(!1):this.zoneIsStable),io(),Fn()),this._injector=X(ut)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof tr;if(!this._injector.get(Bc).done){let E="Cannot bootstrap as there are still asynchronous initializers running."+(!i&&Fd(r)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new k(405,!1)}let a;i?a=r:a=this._injector.get(an).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let l=lm(a)?void 0:this._injector.get(Nt),c=o||a.selector,p=a.create(fe.NULL,[],c,l),h=p.location.nativeElement,g=p.injector.get(Ki,null);return g?.registerApplication(h),p.onDestroy(()=>{this.detachView(p.hostView),qn(this.components,p),g?.unregisterApplication(h)}),this._loadComponent(p),p}tick(){if(this._runningTick)throw new k(101,!1);try{this._runningTick=!0;for(let r of this._views)r.detectChanges()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;qn(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(im,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>qn(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new k(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function qn(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function ka(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var Wc=new R("",{providedIn:"root",factory:()=>X(Be).handleError.bind(void 0)});function mm(){let e=X(z),t=X(Be);return n=>e.runOutsideAngular(()=>t.handleError(n))}var vm=(()=>{let t=class t{constructor(){this.zone=X(z),this.applicationRef=X(Lt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ym(e){return[{provide:z,useFactory:e},{provide:Dr,multi:!0,useFactory:()=>{let t=X(vm,{optional:!0});return()=>t.initialize()}},{provide:Wc,useFactory:mm},{provide:mc,useFactory:vc}]}var Gc=Qi(null,"core",[]),Yc=(()=>{let t=class t{constructor(r){}};t.\u0275fac=function(o){return new(o||t)(P(Lt))},t.\u0275mod=Ue({type:t}),t.\u0275inj=He({});let e=t;return e})();var Xi=null;function Vr(){return Xi}function Qc(e){Xi||(Xi=e)}var Fr=class{},Fe=new R("DocumentToken");function Xc(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Ji=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Jc=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(!1)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new Ji(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let l=o.get(s);o.move(l,a),Kc(l,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);Kc(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(j(Se),j(pt),j(Oi))},t.\u0275dir=ze({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function Kc(e,t){e.context.$implicit=t.item}var eu=(()=>{let t=class t{constructor(r,o){this._viewContainer=r,this._context=new es,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Zc("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Zc("ngIfElse",r),this._elseTemplateRef=r,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(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(j(Se),j(pt))},t.\u0275dir=ze({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),es=class{constructor(){this.$implicit=null,this.ngIf=null}};function Zc(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${Z(t)}'.`)}var tu=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(r,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};t.\u0275fac=function(o){return new(o||t)(j(Se))},t.\u0275dir=ze({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[rn]});let e=t;return e})();var jr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=Ue({type:t}),t.\u0275inj=He({});let e=t;return e})(),ts="browser",Dm="server";function nu(e){return e===ts}function ns(e){return e===Dm}var Lr=class{};var is=class extends Fr{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ss=class e extends is{static makeCurrent(){Qc(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=bm();return n==null?null:Im(n)}resetBaseElement(){un=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Xc(document.cookie,t)}},un=null;function bm(){return un=un||document.querySelector("base"),un?un.getAttribute("href"):null}var Br;function Im(e){Br=Br||document.createElement("a"),Br.setAttribute("href",e);let t=Br.pathname;return t.charAt(0)==="/"?t:`/${t}`}var as=class{addToWindow(t){se.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new k(5103,!1);return i},se.getAllAngularTestabilities=()=>t.getAllTestabilities(),se.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=se.getAllAngularTestabilities(),i=o.length,s=!1,a=function(l){s=s||l,i--,i==0&&r(s)};o.forEach(l=>{l.whenStable(a)})};se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?Vr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},xm=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),ls=new R("EventManagerPlugins"),su=(()=>{let t=class t{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new k(5101,!1);return this._eventNameToPlugin.set(r,o),o}};t.\u0275fac=function(o){return new(o||t)(P(ls),P(z))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),Hr=class{constructor(t){this._doc=t}},rs="ng-app-id",au=(()=>{let t=class t{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ns(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${rs}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(rs),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(rs,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(P(Fe),P(Er),P(Si,8),P(Je))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),os={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/"},us=/%COMP%/g,lu="%COMP%",_m=`_nghost-${lu}`,Sm=`_ngcontent-${lu}`,Mm=!0,Am=new R("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>Mm});function Tm(e){return Sm.replace(us,e)}function km(e){return _m.replace(us,e)}function cu(e,t){return t.map(n=>n.replace(us,e))}var ru=(()=>{let t=class t{constructor(r,o,i,s,a,l,c,p=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=p,this.rendererByCompId=new Map,this.platformIsServer=ns(l),this.defaultRenderer=new dn(r,a,c,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Pe.ShadowDom&&(o=tt(Le({},o),{encapsulation:Pe.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof Ur?i.applyToHost(r):i instanceof fn&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,p=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,g=this.platformIsServer;switch(o.encapsulation){case Pe.Emulated:s=new Ur(c,p,o,this.appId,h,a,l,g);break;case Pe.ShadowDom:return new cs(c,p,r,o,a,l,this.nonce,g);default:s=new fn(c,p,o,h,a,l,g);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(P(su),P(au),P(Er),P(Am),P(Fe),P(Je),P(z),P(Si))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),dn=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(os[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(ou(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(ou(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new k(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=os[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=os[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(je.DashCase|je.Important)?t.style.setProperty(n,r,o&je.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&je.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=Vr().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function ou(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var cs=class extends dn{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=cu(o.id,o.styles);for(let p of c){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=p,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},fn=class extends dn{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?cu(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ur=class extends fn{constructor(t,n,r,o,i,s,a,l){let c=o+"-"+r.id;super(t,n,r,i,s,a,l,c),this.contentAttr=Tm(c),this.hostAttr=km(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},Pm=(()=>{let t=class t extends Hr{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};t.\u0275fac=function(o){return new(o||t)(P(Fe))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),iu=["alt","control","meta","shift"],Nm={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Om={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Rm=(()=>{let t=class t extends Hr{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Vr().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),iu.forEach(p=>{let h=o.indexOf(p);h>-1&&(o.splice(h,1),a+=p+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(r,o){let i=Nm[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),iu.forEach(a=>{if(a!==i){let l=Om[a];l(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{t.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(o){return new(o||t)(P(Fe))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})();function Fm(){ss.makeCurrent()}function Lm(){return new Be}function Vm(){return Fl(document),document}var jm=[{provide:Je,useValue:ts},{provide:_i,useValue:Fm,multi:!0},{provide:Fe,useFactory:Vm,deps:[]}],uu=Qi(Gc,"browser",jm),Bm=new R(""),Hm=[{provide:cn,useClass:as,deps:[]},{provide:Ki,useClass:Or,deps:[z,Rr,cn]},{provide:Or,useClass:Or,deps:[z,Rr,cn]}],Um=[{provide:wr,useValue:"root"},{provide:Be,useFactory:Lm,deps:[]},{provide:ls,useClass:Pm,multi:!0,deps:[Fe,z,Je]},{provide:ls,useClass:Rm,multi:!0,deps:[Fe]},ru,au,su,{provide:Xt,useExisting:ru},{provide:Lr,useClass:xm,deps:[]},[]],du=(()=>{let t=class t{constructor(r){}static withServerTransition(r){return{ngModule:t,providers:[{provide:Er,useValue:r.appId}]}}};t.\u0275fac=function(o){return new(o||t)(P(Bm,12))},t.\u0275mod=Ue({type:t}),t.\u0275inj=He({providers:[...Um,...Hm],imports:[jr,Yc]});let e=t;return e})();var Q=function(e){return e[e.HEX=0]="HEX",e[e.RGBA=1]="RGBA",e[e.HSLA=2]="HSLA",e[e.CMYK=3]="CMYK",e}(Q||{}),te=class{r;g;b;a;constructor(t,n,r,o){this.r=t,this.g=n,this.b=r,this.a=o}},We=class{h;s;v;a;constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}},ge=class{h;s;l;a;constructor(t,n,r,o){this.h=t,this.s=n,this.l=r,this.a=o}},ce=class{c;m;y;k;a;constructor(t,n,r,o,i=1){this.c=t,this.m=n,this.y=r,this.k=o,this.a=i}};function fu(e,t){let n="right",r="bottom",{height:o,width:i}=e,{top:s,left:a}=t,l=s+t.height,c=a+t.width,p=s-o<0,h=l+o>(window.innerHeight||document.documentElement.clientHeight),g=a-i<0,v=c+i>(window.innerWidth||document.documentElement.clientWidth),E=p&&h&&g&&v;return h&&(r="top"),p&&(r="bottom"),g&&(n="right"),v&&(n="left"),E?["left","right","top","bottom"].reduce(($,O)=>e[$]>e[O]?$:O):g&&v?p?"bottom":h||s>l?"top":"bottom":p&&h?g?"right":v||a>c?"left":"right":`${r}-${n}`}function pu(){let e="";typeof navigator<"u"&&(e=navigator.userAgent.toLowerCase());let t=e.indexOf("msie ");return t>0?parseInt(e.substring(t+5,e.indexOf(".",t)),10):!1}var ds=(()=>{class e{rg;text;newValue=new F;inputChange(n){let r=n.target.value;if(this.rg===void 0)this.newValue.emit(r);else{let o=parseFloat(r);this.newValue.emit({v:o,rg:this.rg})}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=ze({type:e,selectors:[["","text",""]],hostBindings:function(r,o){r&1&&w("input",function(s){return o.inputChange(s)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return e})(),fs=(()=>{class e{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new F;dragStart=new F;newValue=new F;mouseDown(n){this.start(n)}touchStart(n){this.start(n)}constructor(n){this.elRef=n,this.listenerMove=r=>this.move(r),this.listenerStop=()=>this.stop()}move(n){n.preventDefault(),this.setCursor(n)}start(n){this.setCursor(n),n.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(n){let r=this.elRef.nativeElement.getBoundingClientRect();return(n.pageX!==void 0?n.pageX:n.touches[0].pageX)-r.left-window.pageXOffset}getY(n){let r=this.elRef.nativeElement.getBoundingClientRect();return(n.pageY!==void 0?n.pageY:n.touches[0].pageY)-r.top-window.pageYOffset}setCursor(n){let r=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(n),r)),s=Math.max(0,Math.min(this.getY(n),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:i/r,v:1-s/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:s/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:i/r,rgX:this.rgX})}static \u0275fac=function(r){return new(r||e)(j(pe))};static \u0275dir=ze({type:e,selectors:[["","slider",""]],hostBindings:function(r,o){r&1&&w("mousedown",function(s){return o.mouseDown(s)})("touchstart",function(s){return o.touchStart(s)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return e})(),pn=class{h;s;v;a;constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}},hn=class{h;s;v;a;constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}};var Ge=(()=>{class e{active=null;setActive(n){this.active&&this.active!==n&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=n}hsva2hsla(n){let r=n.h,o=n.s,i=n.v,s=n.a;if(i===0)return new ge(r,0,0,s);if(o===0&&i===1)return new ge(r,1,1,s);{let a=i*(2-o)/2;return new ge(r,i*o/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(n){let r=Math.min(n.h,1),o=Math.min(n.s,1),i=Math.min(n.l,1),s=Math.min(n.a,1);if(i===0)return new We(r,0,0,s);{let a=i+o*(1-Math.abs(2*i-1))/2;return new We(r,2*(a-i)/a,a,s)}}hsvaToRgba(n){let r,o,i,s=n.h,a=n.s,l=n.v,c=n.a,p=Math.floor(s*6),h=s*6-p,g=l*(1-a),v=l*(1-h*a),E=l*(1-(1-h)*a);switch(p%6){case 0:r=l,o=E,i=g;break;case 1:r=v,o=l,i=g;break;case 2:r=g,o=l,i=E;break;case 3:r=g,o=v,i=l;break;case 4:r=E,o=g,i=l;break;case 5:r=l,o=g,i=v;break;default:r=0,o=0,i=0}return new te(r,o,i,c)}cmykToRgb(n){let r=(1-n.c)*(1-n.k),o=(1-n.m)*(1-n.k),i=(1-n.y)*(1-n.k);return new te(r,o,i,n.a)}rgbaToCmyk(n){let r=1-Math.max(n.r,n.g,n.b);if(r===1)return new ce(0,0,0,1,n.a);{let o=(1-n.r-r)/(1-r),i=(1-n.g-r)/(1-r),s=(1-n.b-r)/(1-r);return new ce(o,i,s,r,n.a)}}rgbaToHsva(n){let r,o,i=Math.min(n.r,1),s=Math.min(n.g,1),a=Math.min(n.b,1),l=Math.min(n.a,1),c=Math.max(i,s,a),p=Math.min(i,s,a),h=c,g=c-p;if(o=c===0?0:g/c,c===p)r=0;else{switch(c){case i:r=(s-a)/g+(s=n.cpMaxPresetColorsLength),m(1),Ft(" ",n.cpAddColorButtonText," ")}}function Xm(e,t){e&1&&C(0,"div",33)}function Jm(e,t){if(e&1){let n=G();d(0,"input",39),w("keyup.enter",function(o){I(n);let i=D(2);return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D(2);return x(i.onAlphaInput(o))}),u()}if(e&2){let n=D(2);y("rg",1)("value",n.cmykText==null?null:n.cmykText.a)}}function e0(e,t){e&1&&(d(0,"div"),f(1,"A"),u())}function t0(e,t){if(e&1){let n=G();d(0,"div",34)(1,"div",35)(2,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onCyanInput(o))}),u(),d(3,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onMagentaInput(o))}),u(),d(4,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onYellowInput(o))}),u(),d(5,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onBlackInput(o))}),u(),H(6,Jm,1,2,"input",37),u(),d(7,"div",35)(8,"div"),f(9,"C"),u(),d(10,"div"),f(11,"M"),u(),d(12,"div"),f(13,"Y"),u(),d(14,"div"),f(15,"K"),u(),H(16,e0,2,0,"div",38),u()()}if(e&2){let n=D();b("display",n.format!==3?"none":"block"),m(2),y("rg",100)("value",n.cmykText==null?null:n.cmykText.c),m(1),y("rg",100)("value",n.cmykText==null?null:n.cmykText.m),m(1),y("rg",100)("value",n.cmykText==null?null:n.cmykText.y),m(1),y("rg",100)("value",n.cmykText==null?null:n.cmykText.k),m(1),y("ngIf",n.cpAlphaChannel!=="disabled"),m(10),y("ngIf",n.cpAlphaChannel!=="disabled")}}function n0(e,t){if(e&1){let n=G();d(0,"input",39),w("keyup.enter",function(o){I(n);let i=D(2);return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D(2);return x(i.onAlphaInput(o))}),u()}if(e&2){let n=D(2);y("rg",1)("value",n.hslaText==null?null:n.hslaText.a)}}function r0(e,t){e&1&&(d(0,"div"),f(1,"A"),u())}function o0(e,t){if(e&1){let n=G();d(0,"div",40)(1,"div",35)(2,"input",41),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onHueInput(o))}),u(),d(3,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onSaturationInput(o))}),u(),d(4,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onLightnessInput(o))}),u(),H(5,n0,1,2,"input",37),u(),d(6,"div",35)(7,"div"),f(8,"H"),u(),d(9,"div"),f(10,"S"),u(),d(11,"div"),f(12,"L"),u(),H(13,r0,2,0,"div",38),u()()}if(e&2){let n=D();b("display",n.format!==2?"none":"block"),m(2),y("rg",360)("value",n.hslaText==null?null:n.hslaText.h),m(1),y("rg",100)("value",n.hslaText==null?null:n.hslaText.s),m(1),y("rg",100)("value",n.hslaText==null?null:n.hslaText.l),m(1),y("ngIf",n.cpAlphaChannel!=="disabled"),m(8),y("ngIf",n.cpAlphaChannel!=="disabled")}}function i0(e,t){if(e&1){let n=G();d(0,"input",39),w("keyup.enter",function(o){I(n);let i=D(2);return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D(2);return x(i.onAlphaInput(o))}),u()}if(e&2){let n=D(2);y("rg",1)("value",n.rgbaText==null?null:n.rgbaText.a)}}function s0(e,t){e&1&&(d(0,"div"),f(1,"A"),u())}function a0(e,t){if(e&1){let n=G();d(0,"div",42)(1,"div",35)(2,"input",43),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onRedInput(o))}),u(),d(3,"input",43),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onGreenInput(o))}),u(),d(4,"input",43),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onBlueInput(o))}),u(),H(5,i0,1,2,"input",37),u(),d(6,"div",35)(7,"div"),f(8,"R"),u(),d(9,"div"),f(10,"G"),u(),d(11,"div"),f(12,"B"),u(),H(13,s0,2,0,"div",38),u()()}if(e&2){let n=D();b("display",n.format!==1?"none":"block"),m(2),y("rg",255)("value",n.rgbaText==null?null:n.rgbaText.r),m(1),y("rg",255)("value",n.rgbaText==null?null:n.rgbaText.g),m(1),y("rg",255)("value",n.rgbaText==null?null:n.rgbaText.b),m(1),y("ngIf",n.cpAlphaChannel!=="disabled"),m(8),y("ngIf",n.cpAlphaChannel!=="disabled")}}function l0(e,t){if(e&1){let n=G();d(0,"input",39),w("keyup.enter",function(o){I(n);let i=D(2);return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D(2);return x(i.onAlphaInput(o))}),u()}if(e&2){let n=D(2);y("rg",1)("value",n.hexAlpha)}}function c0(e,t){e&1&&(d(0,"div"),f(1,"A"),u())}function u0(e,t){if(e&1){let n=G();d(0,"div",44)(1,"div",35)(2,"input",45),w("blur",function(){I(n);let o=D();return x(o.onHexInput(null))})("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onHexInput(o))}),u(),H(3,l0,1,2,"input",37),u(),d(4,"div",35)(5,"div"),f(6,"Hex"),u(),H(7,c0,2,0,"div",38),u()()}if(e&2){let n=D();b("display",n.format!==0?"none":"block"),Sr("hex-alpha",n.cpAlphaChannel==="forced"),m(2),y("value",n.hexText),m(1),y("ngIf",n.cpAlphaChannel==="forced"),m(4),y("ngIf",n.cpAlphaChannel==="forced")}}function d0(e,t){if(e&1){let n=G();d(0,"input",39),w("keyup.enter",function(o){I(n);let i=D(2);return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D(2);return x(i.onAlphaInput(o))}),u()}if(e&2){let n=D(2);y("rg",1)("value",n.hslaText==null?null:n.hslaText.a)}}function f0(e,t){if(e&1){let n=G();d(0,"div",46)(1,"div",35)(2,"input",36),w("keyup.enter",function(o){I(n);let i=D();return x(i.onAcceptColor(o))})("newValue",function(o){I(n);let i=D();return x(i.onValueInput(o))}),u(),H(3,d0,1,2,"input",37),u(),d(4,"div",35)(5,"div"),f(6,"V"),u(),d(7,"div"),f(8,"A"),u()()()}if(e&2){let n=D();m(2),y("rg",100)("value",n.hslaText==null?null:n.hslaText.l),m(1),y("ngIf",n.cpAlphaChannel!=="disabled")}}function p0(e,t){if(e&1){let n=G();d(0,"div",47)(1,"span",48),w("click",function(){I(n);let o=D();return x(o.onFormatToggle(-1))}),u(),d(2,"span",48),w("click",function(){I(n);let o=D();return x(o.onFormatToggle(1))}),u()()}}function h0(e,t){if(e&1){let n=G();d(0,"span",55),w("click",function(o){I(n);let i=D().$implicit,s=D(3);return x(s.onRemovePresetColor(o,i))}),u()}if(e&2){let n=D(4);mt(n.cpRemoveColorButtonClass)}}function g0(e,t){if(e&1){let n=G();d(0,"div",53),w("click",function(){let i=I(n).$implicit,s=D(3);return x(s.setColorFromString(i))}),H(1,h0,1,3,"span",54),u()}if(e&2){let n=t.$implicit,r=D(3);b("background-color",n),m(1),y("ngIf",r.cpAddColorButton)}}function m0(e,t){if(e&1&&(d(0,"div"),H(1,g0,2,3,"div",52),u()),e&2){let n=D(2);mt(n.cpPresetColorsClass),m(1),y("ngForOf",n.cpPresetColors)}}function v0(e,t){if(e&1&&(d(0,"div"),f(1),u()),e&2){let n=D(2);mt(n.cpPresetEmptyMessageClass),m(1),et(n.cpPresetEmptyMessage)}}function y0(e,t){if(e&1&&(d(0,"div",49),C(1,"hr"),d(2,"div",50),f(3),u(),H(4,m0,2,4,"div",51)(5,v0,2,4,"div",51),u()),e&2){let n=D();m(3),et(n.cpPresetLabel),m(1),y("ngIf",n.cpPresetColors==null?null:n.cpPresetColors.length),m(1),y("ngIf",!(n.cpPresetColors!=null&&n.cpPresetColors.length)&&n.cpAddColorButton)}}function C0(e,t){if(e&1){let n=G();d(0,"button",58),w("click",function(o){I(n);let i=D(2);return x(i.onCancelColor(o))}),f(1),u()}if(e&2){let n=D(2);mt(n.cpCancelButtonClass),m(1),et(n.cpCancelButtonText)}}function D0(e,t){if(e&1){let n=G();d(0,"button",58),w("click",function(o){I(n);let i=D(2);return x(i.onAcceptColor(o))}),f(1),u()}if(e&2){let n=D(2);mt(n.cpOKButtonClass),m(1),et(n.cpOKButtonText)}}function w0(e,t){if(e&1&&(d(0,"div",56),H(1,C0,2,4,"button",57)(2,D0,2,4,"button",57),u()),e&2){let n=D();m(1),y("ngIf",n.cpCancelButton),m(1),y("ngIf",n.cpOKButton)}}function E0(e,t){e&1&&qi(0)}function b0(e,t){if(e&1&&(d(0,"div",59),H(1,E0,1,0,"ng-container",60),u()),e&2){let n=D();m(1),y("ngTemplateOutlet",n.cpExtraTemplate)}}var gu=typeof window<"u"&&"ontouchstart"in window,ps=(()=>{class e{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[Q.HEX,Q.RGBA,Q.HSLA,Q.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(n){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(n)}handleEnter(n){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(n)}constructor(n,r,o,i,s,a){this.ngZone=n,this.elRef=r,this.cdRef=o,this.document=i,this.platformId=s,this.service=a,this.eyeDropperSupported=nu(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new pn(0,0,0,0);let n=this.hueSlider.nativeElement.offsetWidth||140,r=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new hn(n,this.cpWidth,130,r),this.cpCmykEnabled?this.format=Q.CMYK:this.cpOutputFormat==="rgba"?this.format=Q.RGBA:this.cpOutputFormat==="hsla"?this.format=Q.HSLA:this.format=Q.HEX,this.listenerMouseDown=o=>{this.onMouseDown(o)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let n=this.hueSlider.nativeElement.offsetWidth||140,r=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new hn(n,this.cpWidth,130,r),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(n,r=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(n),this.setColorFromString(n,r),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(n,r,o,i,s,a,l,c,p,h,g,v,E,A,$,O,J,K,me,Ye,ne,Ke,Vt,zr,$r,yu,Cu,Du,wu,Eu,bu,Iu,xu,_u,Su,Mu,Au,Tu){this.setInitialColor(o),this.setColorMode(c),this.isIE10=pu()===10,this.directiveInstance=n,this.directiveElementRef=r,this.cpDisableInput=v,this.cpCmykEnabled=p,this.cpAlphaChannel=h,this.cpOutputFormat=g,this.cpDialogDisplay=a,this.cpIgnoredElements=E,this.cpSaveClickOutside=A,this.cpCloseClickOutside=$,this.useRootViewContainer=O,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=J,this.cpPositionOffset=parseInt(K,10),this.cpOKButton=yu,this.cpOKButtonText=Du,this.cpOKButtonClass=Cu,this.cpCancelButton=wu,this.cpCancelButtonText=bu,this.cpCancelButtonClass=Eu,this.cpEyeDropper=Mu,this.fallbackColor=l||"#fff",this.setPresetConfig(Ye,ne),this.cpPresetColorsClass=Ke,this.cpMaxPresetColorsLength=Vt,this.cpPresetEmptyMessage=zr,this.cpPresetEmptyMessageClass=$r,this.cpAddColorButton=Iu,this.cpAddColorButtonText=_u,this.cpAddColorButtonClass=xu,this.cpRemoveColorButtonClass=Su,this.cpTriggerElement=Au,this.cpExtraTemplate=Tu,me||(this.dialogArrowOffset=0),a==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),g==="hex"&&h!=="always"&&h!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(n){switch(n.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(n){this.initialColor=n}setPresetConfig(n,r){this.cpPresetLabel=n,this.cpPresetColors=r}setColorFromString(n,r=!0,o=!0){let i;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(i=this.service.stringToHsva(n,!0),!i&&!this.hsva&&(i=this.service.stringToHsva(n,!1))):i=this.service.stringToHsva(n,!1),!i&&!this.hsva&&(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(r,o))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(n){this.directiveInstance.sliderDragEnd({slider:n,color:this.outputColor})}onDragStart(n){this.directiveInstance.sliderDragStart({slider:n,color:this.outputColor})}onMouseDown(n){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&n.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,n.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,n.target)&&this.cpIgnoredElements.filter(r=>r===n.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(n){n.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(n){this.hsva=null,n.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(r=>{this.setColorFromString(r.sRGBHex,!0)})}onFormatToggle(n){let r=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),o=((this.dialogInputFields.indexOf(this.format)+n)%r+r)%r;this.format=this.dialogInputFields[o]}onColorChange(n){this.hsva.s=n.s/n.rgX,this.hsva.v=n.v/n.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(n){this.hsva.h=n.v/n.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(n){this.hsva.v=n.v/n.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(n){this.hsva.a=n.v/n.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(n){if(n===null)this.updateColorPicker();else{n&&n[0]!=="#"&&(n="#"+n);let r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(r=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let o=r.test(n);o&&(n.length<5&&(n="#"+n.substring(1).split("").map(i=>i+i).join("")),this.cpAlphaChannel==="forced"&&(n+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(n,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:o,value:n,color:this.outputColor})}}onRedInput(n){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.r=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:o,value:r.r,color:this.outputColor})}onBlueInput(n){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.b=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:o,value:r.b,color:this.outputColor})}onGreenInput(n){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.g=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:o,value:r.g,color:this.outputColor})}onHueInput(n){let r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.h=n.v/n.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:r,value:this.hsva.h,color:this.outputColor})}onValueInput(n){let r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.v=n.v/n.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:r,value:this.hsva.v,color:this.outputColor})}onAlphaInput(n){let r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.a=n.v/n.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:r,value:this.hsva.a,color:this.outputColor})}onLightnessInput(n){let r=this.service.hsva2hsla(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.l=n.v/n.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:o,value:r.l,color:this.outputColor})}onSaturationInput(n){let r=this.service.hsva2hsla(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.s=n.v/n.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:o,value:r.s,color:this.outputColor})}onCyanInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.c=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.m=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.y=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.k=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(n,r){n.stopPropagation(),this.cpPresetColors.filter(o=>o===r).length||(this.cpPresetColors=this.cpPresetColors.concat(r),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(n,r){n.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(o=>o!==r),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{gu?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(gu?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(n=!0,r=!0,o=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let i,s,a,l=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(o?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new We(this.sliderH||this.hsva.h,1,1,1))),r){this.hslaText=new ge(Math.round(s.h*360),Math.round(s.s*100),Math.round(s.l*100),Math.round(s.a*100)/100),this.rgbaText=new te(a.r,a.g,a.b,Math.round(a.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new ce(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let c=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(a,c),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==Q.RGBA&&this.format!==Q.CMYK&&this.format!==Q.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?Q.RGBA:Q.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==Q.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let c=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${c})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new pn((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),n&&l!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let n="static",r="",o,i=null,s=null,a=this.directiveElementRef.nativeElement.parentNode,l=this.dialogElement.nativeElement.offsetHeight;for(;a!==null&&a.tagName!=="HTML";){if(o=window.getComputedStyle(a),n=o.getPropertyValue("position"),r=o.getPropertyValue("transform"),n!=="static"&&i===null&&(i=a),r&&r!=="none"&&s===null&&(s=a),n==="fixed"){i=s;break}a=a.parentNode}let c=this.createDialogBox(this.directiveElementRef.nativeElement,n!=="fixed");if(this.useRootViewContainer||n==="fixed"&&(!i||i instanceof HTMLUnknownElement))this.top=c.top,this.left=c.left;else{i===null&&(i=a);let O=this.createDialogBox(i,n!=="fixed");this.top=c.top-O.top,this.left=c.left-O.left}n==="fixed"&&(this.position="fixed");let p=this.cpPosition,h=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let O=this.cpTriggerElement.nativeElement.getBoundingClientRect();p=fu(h,O)}switch(this.arrowTop=p==="top"?l-1:void 0,this.cpArrowPosition=void 0,p){case"top":this.top-=l+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset;break;case"bottom":this.top+=c.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left+=c.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=c.width+this.dialogArrowSize-2;break}let g=window.innerHeight,v=window.innerWidth,E=this.elRef.nativeElement.getBoundingClientRect();this.top+h.height>g&&(this.top=g-h.height,this.cpArrowPosition=E.x/2-20),this.left+h.width>v&&(this.left=v-h.width,this.cpArrowPosition=E.x/2-20),this.cpUsePosition=p}}isDescendant(n,r){let o=r.parentNode;for(;o!==null;){if(o===n)return!0;o=o.parentNode}return!1}createDialogBox(n,r){let{top:o,left:i}=n.getBoundingClientRect();return{top:o+(r?window.pageYOffset:0),left:i+(r?window.pageXOffset:0),width:n.offsetWidth,height:n.offsetHeight}}static \u0275fac=function(r){return new(r||e)(j(z),j(pe),j(Ui),j(Fe),j(Je),j(Ge))};static \u0275cmp=dr({type:e,selectors:[["color-picker"]],viewQuery:function(r,o){if(r&1&&(Pr(qm,7),Pr(Wm,7),Pr(Gm,7)),r&2){let i;kr(i=Nr())&&(o.dialogElement=i.first),kr(i=Nr())&&(o.hueSlider=i.first),kr(i=Nr())&&(o.alphaSlider=i.first)}},hostBindings:function(r,o){r&1&&w("keyup.esc",function(s){return o.handleEsc(s)},!1,Mi)("keyup.enter",function(s){return o.handleEnter(s)},!1,Mi)},decls:30,vars:51,consts:[[1,"color-picker",3,"click"],["dialogPopup",""],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"slider","rgX","newValue","dragStart","dragEnd"],["hueSlider",""],[1,"cursor"],[1,"value",3,"slider","rgX","newValue","dragStart","dragEnd"],["valueSlider",""],[1,"alpha",3,"slider","rgX","newValue","dragStart","dragEnd"],["alphaSlider",""],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"slider","rgX","rgY","newValue","dragStart","dragEnd"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"disabled","click"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"text","rg","value","keyup.enter","newValue"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"text","rg","value","keyup.enter","newValue"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"text","rg","value","keyup.enter","newValue"],[1,"hex-text"],[3,"text","value","blur","keyup.enter","newValue"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(r,o){r&1&&(d(0,"div",0,1),w("click",function(s){return s.stopPropagation()}),H(2,Ym,1,7,"div",2)(3,Km,2,8,"div",3),d(4,"div",4)(5,"div",5),C(6,"div",6),d(7,"div",7),w("click",function(){return o.eyeDropperSupported&&o.cpEyeDropper&&o.onEyeDropper()}),H(8,Zm,3,0,"svg",8),u(),H(9,Qm,2,5,"button",9),u(),d(10,"div",10),H(11,Xm,1,0,"div",11),d(12,"div",12,13),w("newValue",function(s){return o.onHueChange(s)})("dragStart",function(){return o.onDragStart("hue")})("dragEnd",function(){return o.onDragEnd("hue")}),C(14,"div",14),u(),d(15,"div",15,16),w("newValue",function(s){return o.onValueChange(s)})("dragStart",function(){return o.onDragStart("value")})("dragEnd",function(){return o.onDragEnd("value")}),C(17,"div",14),u(),d(18,"div",17,18),w("newValue",function(s){return o.onAlphaChange(s)})("dragStart",function(){return o.onDragStart("alpha")})("dragEnd",function(){return o.onDragEnd("alpha")}),C(20,"div",14),u()()(),H(21,t0,17,12,"div",19)(22,o0,14,10,"div",20)(23,a0,14,10,"div",21)(24,u0,8,7,"div",22)(25,f0,9,3,"div",23)(26,p0,3,0,"div",24)(27,y0,6,3,"div",25)(28,w0,3,2,"div",26)(29,b0,2,1,"div",27),u()),r&2&&(b("display",o.show?"block":"none")("visibility",o.hidden?"hidden":"visible")("top",o.top,"px")("left",o.left,"px")("position",o.position)("height",o.cpHeight,"px")("width",o.cpWidth,"px"),Sr("open",o.show),m(2),y("ngIf",o.cpDialogDisplay==="popup"),m(1),y("ngIf",(o.cpColorMode||1)===1),m(4),b("background-color",o.selectedColor)("cursor",o.eyeDropperSupported&&o.cpEyeDropper?"pointer":null),m(1),y("ngIf",o.eyeDropperSupported&&o.cpEyeDropper),m(1),y("ngIf",o.cpAddColorButton),m(2),y("ngIf",o.cpAlphaChannel==="disabled"),m(1),b("display",(o.cpColorMode||1)===1?"block":"none"),y("rgX",1),m(2),b("left",o.slider==null?null:o.slider.h,"px"),m(1),b("display",(o.cpColorMode||1)===2?"block":"none"),y("rgX",1),m(2),b("right",o.slider==null?null:o.slider.v,"px"),m(1),b("display",o.cpAlphaChannel==="disabled"?"none":"block")("background-color",o.alphaSliderColor),y("rgX",1),m(2),b("left",o.slider==null?null:o.slider.a,"px"),m(1),y("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),m(1),y("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),m(1),y("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),m(1),y("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),m(1),y("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===2),m(1),y("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),m(1),y("ngIf",(o.cpPresetColors==null?null:o.cpPresetColors.length)||o.cpAddColorButton),m(1),y("ngIf",o.cpOKButton||o.cpCancelButton),m(1),y("ngIf",o.cpExtraTemplate))},dependencies:[Jc,eu,tu,ds,fs],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.color-picker *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;-webkit-flex:1;-ms-flex:1;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9h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5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion} -`],encapsulation:2})}return e})();var I0=!1,hs=(()=>{class e{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new F(!0);cpToggleChange=new F(!0);cpSliderChange=new F(!0);cpSliderDragEnd=new F(!0);cpSliderDragStart=new F(!0);colorPickerOpen=new F(!0);colorPickerClose=new F(!0);colorPickerCancel=new F(!0);colorPickerSelect=new F(!0);colorPickerChange=new F(!1);cpCmykColorChange=new F(!0);cpPresetColorsChange=new F(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(n){this.inputChange(n)}constructor(n,r,o,i,s,a){this.injector=n,this.cfr=r,this.appRef=o,this.vcRef=i,this.elRef=s,this._service=a}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(n){n.cpToggle&&!this.cpDisabled&&(n.cpToggle.currentValue?this.openDialog():n.cpToggle.currentValue||this.closeDialog()),n.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(n.colorPicker.currentValue),this.dialog.setColorFromString(n.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(n.cpPresetLabel||n.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&this.dialog.openDialog(this.colorPicker);else{let n=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let o=this.appRef.componentTypes[0],i=this.injector.get(o,fe.NULL);i!==fe.NULL?(n=i.vcRef||i.viewContainerRef||this.vcRef,I0&&n===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let r=this.cfr.resolveComponentFactory(ps);if(this.viewAttachedToAppRef)this.cmpRef=r.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let o=fe.create({providers:[],parent:n.injector});this.cmpRef=n.createComponent(r,0,o,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==n&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(n){this.cpCmykColorChange.emit(n)}stateChanged(n){this.cpToggleChange.emit(n),n?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(n,r=!0){this.ignoreChanges=r,this.colorPickerChange.emit(n)}colorSelected(n){this.colorPickerSelect.emit(n)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let n=this.elRef.nativeElement,r=this.cpIgnoredElements.filter(o=>o===n);!this.cpDisabled&&!r.length&&(typeof document<"u"&&n===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(n){this.dialog?this.dialog.setColorFromString(n.target.value,!0):(this.colorPicker=n.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(n){this.cpInputChange.emit(n)}sliderChanged(n){this.cpSliderChange.emit(n)}sliderDragEnd(n){this.cpSliderDragEnd.emit(n)}sliderDragStart(n){this.cpSliderDragStart.emit(n)}presetColorsChanged(n){this.cpPresetColorsChange.emit(n)}static \u0275fac=function(r){return new(r||e)(j(fe),j(an),j(Lt),j(Se),j(pe),j(Ge))};static \u0275dir=ze({type:e,selectors:[["","colorPicker",""]],hostBindings:function(r,o){r&1&&w("click",function(){return o.handleClick()})("focus",function(){return o.handleFocus()})("input",function(s){return o.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[rn]})}return e})();var gs=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Ue({type:e});static \u0275inj=He({providers:[Ge],imports:[jr]})}return e})();function S0(e,t){e&1&&(d(0,"div",37)(1,"h3"),f(2,"Custom template content here."),u()())}var M0=()=>["#fff","#000","#2889e9","#e920e9","#fff500","rgb(236,64,64)"],A0=()=>["#fff","#2889e9"],T0=(e,t)=>[e,t],mu=(()=>{class e{vcRef;cpService;toggle=!1;rgbaText="rgba(165, 26, 214, 0.2)";arrayColors={color1:"#2883e9",color2:"#e920e9",color3:"rgb(255,245,0)",color4:"rgb(236,64,64)",color5:"rgba(45,208,45,1)"};selectedColor="color1";color1="#2889e9";color2="#e920e9";color3="#fff500";color4="rgb(236,64,64)";color5="rgba(45,208,45,1)";color6="#1973c0";color7="#f200bd";color8="#a8ff00";color9="#278ce2";color10="#0a6211";color11="#f2ff00";color12="#f200bd";color13="rgba(0,255,0,0.5)";color14="rgb(0,255,255)";color15="rgb(255,0,0)";color16="#a51ad633";color17="#666666";color18="#fa8072";color19="#f88888";cmykValue="";cmykColor=new ce(0,0,0,0);constructor(n,r){this.vcRef=n,this.cpService=r}onEventLog(n,r){console.log(n,r)}onChangeColor(n){console.log("Color changed:",n)}onChangeColorCmyk(n){let r=this.cpService.stringToHsva(n);if(r){let o=this.cpService.hsvaToRgba(r);return this.cpService.rgbaToCmyk(o)}return new ce(0,0,0,0)}onChangeColorHex8(n){let r=this.cpService.stringToHsva(n,!0);return r?this.cpService.outputFormat(r,"rgba",null):""}static \u0275fac=function(r){return new(r||e)(j(Se),j(Ge))};static \u0275cmp=dr({type:e,selectors:[["my-app"]],decls:552,vars:146,consts:[[1,"container"],[1,"row"],[1,"col-md-5"],[3,"colorPicker","colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd"],[1,"col-md-7"],[3,"colorPicker","cpColorMode","colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd"],[3,"value","colorPicker","colorPickerChange"],[3,"value","cpOutputFormat","colorPicker","colorPickerChange"],[3,"value","cpPosition","colorPicker","colorPickerChange"],[1,"change-me",3,"cpPosition","cpPositionOffset","cpPositionRelativeToArrow","colorPicker","colorPickerChange"],[3,"value","cpCancelButton","colorPicker","colorPickerChange"],[3,"value","cpCancelButton","cpCancelButtonClass","colorPicker","colorPickerChange"],[3,"value","cpOKButton","cpSaveClickOutside","cpOKButtonClass","colorPicker","colorPickerChange"],[3,"value","cpEyeDropper","cpSaveClickOutside","cpOKButtonClass","colorPicker","colorPickerChange"],[3,"colorPicker","cpCmykEnabled","cpCmykColorChange","colorPickerChange"],[1,"clearfix"],[1,"cmyk-text",2,"color","rgb(0,255,255)"],[1,"cmyk-text",2,"color","rgb(255,0,255)"],[1,"cmyk-text",2,"color","rgb(255,255,0)"],[1,"cmyk-text"],[3,"cpPresetColors","colorPicker","colorPickerChange"],[3,"cpAlphaChannel","cpOutputFormat","cpPresetColors","cpAddColorButton","colorPicker","colorPickerChange"],[3,"cpFallbackColor","cpIgnoredElements","cpToggle","colorPicker","cpToggleChange","colorPickerChange"],["ignoredInput",""],[1,"btn","btn-primary",3,"click"],["ignoredButton",""],["cpPosition","auto",3,"value","colorPicker","colorPickerChange"],[3,"value","cpAlphaChannel","cpOutputFormat","colorPicker","colorPickerChange"],[1,"row",2,"height","320px"],[1,"col-md-3"],[3,"cpToggle","cpDialogDisplay","cpCancelButton","cpCancelButtonClass","colorPicker","colorPickerChange"],[1,"col-md-2"],[1,"color-box",3,"click"],["cpAlphaChannel","disabled",3,"colorPicker","cpExtraTemplate","colorPickerClose","colorPickerOpen","cpInputChange","cpSliderDragEnd","cpSliderDragStart","keyup"],["customTemplate",""],[1,"col-md-12"],[1,"table"],[1,""]],template:function(r,o){if(r&1&&(d(0,"div",0),C(1,"br"),d(2,"h1"),f(3,"Angular Color Picker Directive"),u(),d(4,"h4"),f(5,"A Color Picker Directive for Angular with no dependencies."),u(),d(6,"h4")(7,"b"),f(8,"based on angular2-color-picker by Alberto Pujante"),u()(),C(9,"br")(10,"hr")(11,"br"),d(12,"div",1)(13,"div",2)(14,"input",3),w("colorPickerChange",function(s){return o.color1=s})("colorPickerOpen",function(s){return o.onEventLog("colorPickerOpen",s)})("colorPickerClose",function(s){return o.onEventLog("colorPickerClose",s)})("cpInputChange",function(s){return o.onEventLog("cpInputChange",s)})("cpSliderDragStart",function(s){return o.onEventLog("cpSliderDragStart",s)})("cpSliderDragEnd",function(s){return o.onEventLog("cpSliderDragEnd",s)}),u()(),d(15,"div",4)(16,"p"),f(17,"Usage:"),u(),d(18,"pre"),f(19,`{let e=new ae;return e.closed=!0,e})();var vo=ae.EMPTY;function Vn(e){return e instanceof ae||e&&"closed"in e&&L(e.remove)&&L(e.add)&&L(e.unsubscribe)}function ia(e){L(e)?e():e.unsubscribe()}var Ee={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var At={setTimeout(e,t,...n){let{delegate:r}=At;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=At;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ln(e){At.setTimeout(()=>{let{onUnhandledError:t}=Ee;if(t)t(e);else throw e})}function yo(){}var sa=Co("C",void 0,void 0);function aa(e){return Co("E",void 0,e)}function la(e){return Co("N",e,void 0)}function Co(e,t,n){return{kind:e,value:t,error:n}}var st=null;function St(e){if(Ee.useDeprecatedSynchronousErrorHandling){let t=!st;if(t&&(st={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=st;if(st=null,n)throw r}}else e()}function ca(e){Ee.useDeprecatedSynchronousErrorHandling&&st&&(st.errorThrown=!0,st.error=e)}var at=class extends ae{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Vn(t)&&t.add(this)):this.destination=$d}static create(t,n,r){return new Tt(t,n,r)}next(t){this.isStopped?wo(la(t),this):this._next(t)}error(t){this.isStopped?wo(aa(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?wo(sa,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},qd=Function.prototype.bind;function Do(e,t){return qd.call(e,t)}var Eo=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){jn(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){jn(r)}else jn(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){jn(n)}}},Tt=class extends at{constructor(t,n,r){super();let o;if(L(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ee.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Do(t.next,i),error:t.error&&Do(t.error,i),complete:t.complete&&Do(t.complete,i)}):o=t}this.destination=new Eo(o)}};function jn(e){Ee.useDeprecatedSynchronousErrorHandling?ca(e):Ln(e)}function zd(e){throw e}function wo(e,t){let{onStoppedNotification:n}=Ee;n&&At.setTimeout(()=>n(e,t))}var $d={closed:!0,next:yo,error:zd,complete:yo};var kt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ua(e){return e}function da(e){return e.length===0?ua:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Q=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=Kd(n)?n:new Tt(n,r,o);return St(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=fa(r),new r((o,i)=>{let s=new Tt({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[kt](){return this}pipe(...n){return da(n)(this)}toPromise(n){return n=fa(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function fa(e){var t;return(t=e??Ee.Promise)!==null&&t!==void 0?t:Promise}function Yd(e){return e&&L(e.next)&&L(e.error)&&L(e.complete)}function Kd(e){return e&&e instanceof at||Yd(e)&&Vn(e)}function Zd(e){return L(e?.lift)}function Nt(e){return t=>{if(Zd(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Pt(e,t,n,r,o){return new bo(e,t,n,r,o)}var bo=class extends at{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var pa=Fn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Qe=(()=>{class e extends Q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Bn(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new pa}next(n){St(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){St(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){St(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?vo:(this.currentObservers=null,i.push(n),new ae(()=>{this.currentObservers=null,on(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new Q;return n.source=this,n}}return e.create=(t,n)=>new Bn(t,n),e})(),Bn=class extends Qe{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:vo}};var sn=class extends Qe{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Qd(e){return e[e.length-1]}function ha(e){return L(Qd(e))?e.pop():void 0}function ma(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{c(r.next(f))}catch(h){s(h)}}function l(f){try{c(r.throw(f))}catch(h){s(h)}}function c(f){f.done?i(f.value):o(f.value).then(a,l)}c((r=r.apply(e,t||[])).next())})}function ga(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function lt(e){return this instanceof lt?(this.v=e,this):new lt(e)}function va(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(v){return function(b){return Promise.resolve(b).then(v,h)}}function a(v,b){r[v]&&(o[v]=function(P){return new Promise(function(z,B){i.push([v,P,z,B])>1||l(v,P)})},b&&(o[v]=b(o[v])))}function l(v,b){try{c(r[v](b))}catch(P){y(i[0][3],P)}}function c(v){v.value instanceof lt?Promise.resolve(v.value.v).then(f,h):y(i[0][2],v)}function f(v){l("next",v)}function h(v){l("throw",v)}function y(v,b){v(b),i.shift(),i.length&&l(i[0][0],i[0][1])}}function ya(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ga=="function"?ga(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){s=e[i](s),o(a,l,s.done,s.value)})}}function o(i,s,a,l){Promise.resolve(l).then(function(c){i({value:c,done:a})},s)}}var Hn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Un(e){return L(e?.then)}function Wn(e){return L(e[kt])}function Gn(e){return Symbol.asyncIterator&&L(e?.[Symbol.asyncIterator])}function qn(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Xd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var zn=Xd();function $n(e){return L(e?.[zn])}function Yn(e){return va(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield lt(n.read());if(o)return yield lt(void 0);yield yield lt(r)}}finally{n.releaseLock()}})}function Kn(e){return L(e?.getReader)}function Xe(e){if(e instanceof Q)return e;if(e!=null){if(Wn(e))return Jd(e);if(Hn(e))return ef(e);if(Un(e))return tf(e);if(Gn(e))return Ca(e);if($n(e))return nf(e);if(Kn(e))return rf(e)}throw qn(e)}function Jd(e){return new Q(t=>{let n=e[kt]();if(L(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ef(e){return new Q(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ln)})}function nf(e){return new Q(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Ca(e){return new Q(t=>{of(e,t).catch(n=>t.error(n))})}function rf(e){return Ca(Yn(e))}function of(e,t){var n,r,o,i;return ma(this,void 0,void 0,function*(){try{for(n=ya(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function ke(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Zn(e,t=0){return Nt((n,r)=>{n.subscribe(Pt(r,o=>ke(r,e,()=>r.next(o),t),()=>ke(r,e,()=>r.complete(),t),o=>ke(r,e,()=>r.error(o),t)))})}function Qn(e,t=0){return Nt((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Da(e,t){return Xe(e).pipe(Qn(t),Zn(t))}function wa(e,t){return Xe(e).pipe(Qn(t),Zn(t))}function Ea(e,t){return new Q(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ba(e,t){return new Q(n=>{let r;return ke(n,t,()=>{r=e[zn](),ke(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>L(r?.return)&&r.return()})}function Xn(e,t){if(!e)throw new Error("Iterable cannot be null");return new Q(n=>{ke(n,t,()=>{let r=e[Symbol.asyncIterator]();ke(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function _a(e,t){return Xn(Yn(e),t)}function Ia(e,t){if(e!=null){if(Wn(e))return Da(e,t);if(Hn(e))return Ea(e,t);if(Un(e))return wa(e,t);if(Gn(e))return Xn(e,t);if($n(e))return ba(e,t);if(Kn(e))return _a(e,t)}throw qn(e)}function _o(e,t){return t?Ia(e,t):Xe(e)}function ct(e,t){return Nt((n,r)=>{let o=0;n.subscribe(Pt(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:sf}=Array;function af(e,t){return sf(t)?e(...t):e(t)}function xa(e){return ct(t=>af(e,t))}var{isArray:lf}=Array,{getPrototypeOf:cf,prototype:uf,keys:df}=Object;function Ma(e){if(e.length===1){let t=e[0];if(lf(t))return{args:t,keys:null};if(ff(t)){let n=df(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function ff(e){return e&&typeof e=="object"&&cf(e)===uf}function Aa(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Io(...e){let t=ha(e),{args:n,keys:r}=Ma(e),o=new Q(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),l=s,c=s;for(let f=0;f{h||(h=!0,c--),a[f]=y},()=>l--,void 0,()=>{(!l||!h)&&(c||i.next(r?Aa(r,a):a),i.complete())}))}});return t?o.pipe(xa(t)):o}var pf="https://g.co/ng/security#xss",T=class extends Error{constructor(t,n){super(Vi(t,n)),this.code=t}};function Vi(e,t){return`${`NG0${Math.abs(e)}`}${t?": "+t:""}`}function yn(e){return{toString:e}.toString()}var Jn="__parameters__";function hf(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function ul(e,t,n){return yn(()=>{let r=hf(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(l,c,f){let h=l.hasOwnProperty(Jn)?l[Jn]:Object.defineProperty(l,Jn,{value:[]})[Jn];for(;h.length<=f;)h.push(null);return(h[f]=h[f]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var pe=globalThis;function j(e){for(let t in e)if(e[t]===j)return t;throw Error("Could not find renamed property on target object.")}function gf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ie(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(ie).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Bo(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}var mf=j({__forward_ref__:j});function Kt(e){return e.__forward_ref__=Kt,e.toString=function(){return ie(this())},e}function oe(e){return dl(e)?e():e}function dl(e){return typeof e=="function"&&e.hasOwnProperty(mf)&&e.__forward_ref__===Kt}function H(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function me(e){return{providers:e.providers||[],imports:e.imports||[]}}function Li(e){return Sa(e,fl)||Sa(e,pl)}function Sa(e,t){return e.hasOwnProperty(t)?e[t]:null}function vf(e){let t=e&&(e[fl]||e[pl]);return t||null}function Ta(e){return e&&(e.hasOwnProperty(ka)||e.hasOwnProperty(yf))?e[ka]:null}var fl=j({\u0275prov:j}),ka=j({\u0275inj:j}),pl=j({ngInjectableDef:j}),yf=j({ngInjectorDef:j}),N=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=H({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function hl(e){return e&&!!e.\u0275providers}var Cf=j({\u0275cmp:j}),Df=j({\u0275dir:j}),wf=j({\u0275pipe:j}),Ef=j({\u0275mod:j}),cr=j({\u0275fac:j}),an=j({__NG_ELEMENT_ID__:j}),Na=j({__NG_ENV_ID__:j});function ur(e){return typeof e=="string"?e:e==null?"":String(e)}function bf(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():ur(e)}function _f(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new T(-200,e)}function ji(e,t){throw new T(-201,!1)}var k=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(k||{}),Ho;function gl(){return Ho}function Ne(e){let t=Ho;return Ho=e,t}function ml(e,t,n){let r=Li(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&k.Optional)return null;if(t!==void 0)return t;ji(e,"Injector")}var If={},cn=If,Uo="__NG_DI_FLAG__",dr="ngTempTokenPath",xf="ngTokenPath",Mf=/\n/gm,Af="\u0275",Pa="__source",Lt;function Sf(){return Lt}function Ot(e){let t=Lt;return Lt=e,t}function Tf(e,t=k.Default){if(Lt===void 0)throw new T(-203,!1);return Lt===null?ml(e,void 0,t):Lt.get(e,t&k.Optional?null:void 0,t)}function F(e,t=k.Default){return(gl()||Tf)(oe(e),t)}function Z(e,t=k.Default){return F(e,Sr(t))}function Sr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Wo(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ie(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Mf,` + `)}`}var yl=vl(ul("Optional"),8);var Of=vl(ul("SkipSelf"),4);function Bt(e,t){let n=e.hasOwnProperty(cr);return n?e[cr]:null}function Ff(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?Bi(n,t):t(n))}function Cl(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function fr(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Vf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Tr(e,t,n){let r=Cn(e,t);return r>=0?e[r|1]=n:(r=~r,Vf(e,r,t,n)),r}function xo(e,t){let n=Cn(e,t);if(n>=0)return e[n|1]}function Cn(e,t){return Lf(e,t,1)}function Lf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?h="":h=o[f+1].toLowerCase(),r&2&&c!==h){if(be(r))return!1;s=!0}}}}return be(r)||s}function be(e){return(e&1)===0}function qf(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!be(s)&&(t+=Fa(i,o),o=""),r=s,i=i||!be(r);n++}return o!==""&&(t+=Fa(i,o)),t}function Zf(e){return e.map(Kf).join(",")}function Qf(e){let t=[],n=[],r=1,o=2;for(;r{let t=xl(e),n=fe(X({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===El.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Fe.Emulated,styles:e.styles||le,_:null,schemas:e.schemas||null,tView:null,id:""});Ml(n);let r=e.dependencies;return n.directiveDefs=Va(r,!1),n.pipeDefs=Va(r,!0),n.id=np(n),n})}function Xf(e){return Ut(e)||_l(e)}function Jf(e){return e!==null}function ve(e){return yn(()=>({type:e.type,bootstrap:e.bootstrap||le,declarations:e.declarations||le,imports:e.imports||le,exports:e.exports||le,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ra(e,t){if(e==null)return Ht;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=xe.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==xe.None?[r,a]:r,t[i]=s):n[i]=r}return n}function ne(e){return yn(()=>{let t=xl(e);return Ml(t),t})}function Ut(e){return e[Cf]||null}function _l(e){return e[Df]||null}function Il(e){return e[wf]||null}function ep(e){let t=Ut(e)||_l(e)||Il(e);return t!==null?t.standalone:!1}function tp(e,t){let n=e[Ef]||null;if(!n&&t===!0)throw new Error(`Type ${ie(e)} does not have '\u0275mod' property.`);return n}function xl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Ht,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||le,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ra(e.inputs,t),outputs:Ra(e.outputs),debugInfo:null}}function Ml(e){e.features?.forEach(t=>t(e))}function Va(e,t){if(!e)return null;let n=t?Il:Xf;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Jf)}function np(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function rp(...e){return{\u0275providers:op(!0,e),\u0275fromNgModule:!0}}function op(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Bi(t,s=>{let a=s;qo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Al(o,i),n}function Al(e,t){for(let n=0;n{t(i,r)})}}function qo(e,t,n,r){if(e=oe(e),!e)return!1;let o=null,i=Ta(e),s=!i&&Ut(e);if(!i&&!s){let l=e.ngModule;if(i=Ta(l),i)o=l;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)qo(c,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let c;try{Bi(i.imports,f=>{qo(f,t,n,r)&&(c||=[],c.push(f))})}finally{}c!==void 0&&Al(c,t)}if(!a){let c=Bt(o)||(()=>new o);t({provide:o,useFactory:c,deps:le},o),t({provide:wl,useValue:o,multi:!0},o),t({provide:un,useValue:()=>F(o),multi:!0},o)}let l=i.providers;if(l!=null&&!a){let c=e;Ui(l,f=>{t(f,c)})}}else return!1;return o!==e&&e.providers!==void 0}function Ui(e,t){for(let n of e)hl(n)&&(n=n.\u0275providers),Array.isArray(n)?Ui(n,t):t(n)}var ip=j({provide:String,useValue:j});function Sl(e){return e!==null&&typeof e=="object"&&ip in e}function sp(e){return!!(e&&e.useExisting)}function ap(e){return!!(e&&e.useFactory)}function Wt(e){return typeof e=="function"}function lp(e){return!!e.useClass}var Nr=new N(""),rr={},cp={},Mo;function Tl(){return Mo===void 0&&(Mo=new pr),Mo}var ft=class{},zo=class extends ft{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yo(t,s=>this.processProvider(s)),this.records.set(Dl,Ft(void 0,this)),o.has("environment")&&this.records.set(ft,Ft(void 0,this));let i=this.records.get(Nr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(wl,le,k.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=V(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),V(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Ot(this),r=Ne(void 0),o;try{return t()}finally{Ot(n),Ne(r)}}get(t,n=cn,r=k.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(Na))return t[Na](this);r=Sr(r);let o,i=Ot(this),s=Ne(void 0);try{if(!(r&k.SkipSelf)){let l=this.records.get(t);if(l===void 0){let c=hp(t)&&Li(t);c&&this.injectableDefInScope(c)?l=Ft($o(t),rr):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l)}let a=r&k.Self?Tl():this.parent;return n=r&k.Optional&&n===cn?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[dr]=a[dr]||[]).unshift(ie(t)),i)throw a;return Nf(a,t,"R3InjectorError",this.source)}else throw a}finally{Ne(s),Ot(i)}}resolveInjectorInitializers(){let t=V(null),n=Ot(this),r=Ne(void 0),o;try{let i=this.get(un,le,k.Self);for(let s of i)s()}finally{Ot(n),Ne(r),V(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ie(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new T(205,!1)}processProvider(t){t=oe(t);let n=Wt(t)?t:oe(t&&t.provide),r=dp(t);if(!Wt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Ft(void 0,rr,!0),o.factory=()=>Wo(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=V(null);try{return n.value===rr&&(n.value=cp,n.value=n.factory()),typeof n.value=="object"&&n.value&&pp(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{V(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=oe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function $o(e){let t=Li(e),n=t!==null?t.factory:Bt(e);if(n!==null)return n;if(e instanceof N)throw new T(204,!1);if(e instanceof Function)return up(e);throw new T(204,!1)}function up(e){if(e.length>0)throw new T(204,!1);let n=vf(e);return n!==null?()=>n.factory(e):()=>new e}function dp(e){if(Sl(e))return Ft(void 0,e.useValue);{let t=kl(e);return Ft(t,rr)}}function kl(e,t,n){let r;if(Wt(e)){let o=oe(e);return Bt(o)||$o(o)}else if(Sl(e))r=()=>oe(e.useValue);else if(ap(e))r=()=>e.useFactory(...Wo(e.deps||[]));else if(sp(e))r=()=>F(oe(e.useExisting));else{let o=oe(e&&(e.useClass||e.provide));if(fp(e))r=()=>new o(...Wo(e.deps));else return Bt(o)||$o(o)}return r}function Ft(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function fp(e){return!!e.deps}function pp(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function hp(e){return typeof e=="function"||typeof e=="object"&&e instanceof N}function Yo(e,t){for(let n of e)Array.isArray(n)?Yo(n,t):n&&hl(n)?Yo(n.\u0275providers,t):t(n)}function gp(){return gl()!==void 0||Sf()!=null}function mp(e){let t=pe.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function vp(e){return typeof e=="function"}var ze=0,S=1,x=2,J=3,Ie=4,Ae=5,hr=6,fn=7,Me=8,Gt=9,Re=10,K=11,pn=12,La=13,Zt=14,Ve=15,Dn=16,Rt=17,We=18,Pr=19,Nl=20,Je=21,Ao=22,pt=23,Le=25,Pl=1;var ht=7,gr=8,qt=9,he=10,Wi=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Wi||{});function ut(e){return Array.isArray(e)&&typeof e[Pl]=="object"}function $e(e){return Array.isArray(e)&&e[Pl]===!0}function Gi(e){return(e.flags&4)!==0}function Or(e){return e.componentOffset>-1}function Fr(e){return(e.flags&1)===1}function et(e){return!!e.template}function yp(e){return(e[x]&512)!==0}var Ko=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Ol(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function Et(){return Fl}function Fl(e){return e.type.prototype.ngOnChanges&&(e.setInput=Dp),Cp}Et.ngInherit=!0;function Cp(){let e=Vl(this),t=e?.current;if(t){let n=e.previous;if(n===Ht)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Dp(e,t,n,r,o){let i=this.declaredInputs[r],s=Vl(e)||wp(e,{previous:Ht,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[i];a[i]=new Ko(c&&c.currentValue,n,l===Ht),Ol(e,t,o,n)}var Rl="__ngSimpleChanges__";function Vl(e){return e[Rl]||null}function wp(e,t){return e[Rl]=t}var ja=null;var Pe=function(e,t,n){ja?.(e,t,n)},Ll="svg",Ep="math",bp=!1;function _p(){return bp}function je(e){for(;Array.isArray(e);)e=e[ze];return e}function jl(e,t){return je(t[e])}function Se(e,t){return je(t[e.index])}function Bl(e,t){return e.data[t]}function Ip(e,t){return e[t]}function nt(e,t){let n=t[e];return ut(n)?n:n[ze]}function xp(e){return(e[x]&4)===4}function qi(e){return(e[x]&128)===128}function Mp(e){return $e(e[J])}function zt(e,t){return t==null?null:e[t]}function Hl(e){e[Rt]=0}function Ap(e){e[x]&1024||(e[x]|=1024,qi(e)&&hn(e))}function Sp(e,t){for(;e>0;)t=t[Zt],e--;return t}function zi(e){return!!(e[x]&9216||e[pt]?.dirty)}function Zo(e){e[Re].changeDetectionScheduler?.notify(1),zi(e)?hn(e):e[x]&64&&(_p()?(e[x]|=1024,hn(e)):e[Re].changeDetectionScheduler?.notify())}function hn(e){e[Re].changeDetectionScheduler?.notify();let t=gn(e);for(;t!==null&&!(t[x]&8192||(t[x]|=8192,!qi(t)));)t=gn(t)}function Ul(e,t){if((e[x]&256)===256)throw new T(911,!1);e[Je]===null&&(e[Je]=[]),e[Je].push(t)}function Tp(e,t){if(e[Je]===null)return;let n=e[Je].indexOf(t);n!==-1&&e[Je].splice(n,1)}function gn(e){let t=e[J];return $e(t)?t[J]:t}var A={lFrame:Zl(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function kp(){return A.lFrame.elementDepthCount}function Np(){A.lFrame.elementDepthCount++}function Pp(){A.lFrame.elementDepthCount--}function Wl(){return A.bindingsEnabled}function Op(){return A.skipHydrationRootTNode!==null}function Fp(e){return A.skipHydrationRootTNode===e}function Rp(){A.skipHydrationRootTNode=null}function R(){return A.lFrame.lView}function ee(){return A.lFrame.tView}function g(e){return A.lFrame.contextLView=e,e[Me]}function m(e){return A.lFrame.contextLView=null,e}function ce(){let e=Gl();for(;e!==null&&e.type===64;)e=e.parent;return e}function Gl(){return A.lFrame.currentTNode}function Vp(){let e=A.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function bt(e,t){let n=A.lFrame;n.currentTNode=e,n.isParent=t}function $i(){return A.lFrame.isParent}function ql(){A.lFrame.isParent=!1}function Lp(){return A.lFrame.contextLView}function zl(){let e=A.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function jp(){return A.lFrame.bindingIndex}function Bp(e){return A.lFrame.bindingIndex=e}function Yi(){return A.lFrame.bindingIndex++}function Ki(e){let t=A.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Hp(){return A.lFrame.inI18n}function Up(e,t){let n=A.lFrame;n.bindingIndex=n.bindingRootIndex=e,Qo(t)}function Wp(){return A.lFrame.currentDirectiveIndex}function Qo(e){A.lFrame.currentDirectiveIndex=e}function Gp(e){let t=A.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function $l(){return A.lFrame.currentQueryIndex}function Zi(e){A.lFrame.currentQueryIndex=e}function qp(e){let t=e[S];return t.type===2?t.declTNode:t.type===1?e[Ae]:null}function Yl(e,t,n){if(n&k.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&k.Host);)if(o=qp(i),o===null||(i=i[Zt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=A.lFrame=Kl();return r.currentTNode=t,r.lView=e,!0}function Qi(e){let t=Kl(),n=e[S];A.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kl(){let e=A.lFrame,t=e===null?null:e.child;return t===null?Zl(e):t}function Zl(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Ql(){let e=A.lFrame;return A.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Xl=Ql;function Xi(){let e=Ql();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function zp(e){return(A.lFrame.contextLView=Sp(e,A.lFrame.contextLView))[Me]}function rt(){return A.lFrame.selectedIndex}function gt(e){A.lFrame.selectedIndex=e}function Jl(){let e=A.lFrame;return Bl(e.tView,e.selectedIndex)}function ec(){A.lFrame.currentNamespace=Ll}function $p(){return A.lFrame.currentNamespace}var tc=!0;function Rr(){return tc}function Vr(e){tc=e}function Yp(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Fl(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Lr(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Rt]+=65536),(a>14>16&&(e[x]&3)===t&&(e[x]+=16384,Ba(a,i)):Ba(a,i)}var jt=-1,mt=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Zp(e){return e instanceof mt}function Qp(e){return(e.flags&8)!==0}function Xp(e){return(e.flags&16)!==0}function rc(e){return e!==jt}function mr(e){return e&32767}function Jp(e){return e>>16}function vr(e,t){let n=Jp(e),r=t;for(;n>0;)r=r[Zt],n--;return r}var Xo=!0;function Ha(e){let t=Xo;return Xo=e,t}var eh=256,oc=eh-1,ic=5,th=0,Oe={};function nh(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(an)&&(r=n[an]),r==null&&(r=n[an]=th++);let o=r&oc,i=1<>ic)]|=i}function yr(e,t){let n=sc(e,t);if(n!==-1)return n;let r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,To(r.data,e),To(t,null),To(r.blueprint,null));let o=Ji(e,t),i=e.injectorIndex;if(rc(o)){let s=mr(o),a=vr(o,t),l=a[S].data;for(let c=0;c<8;c++)t[i+c]=a[s+c]|l[s+c]}return t[i+8]=o,i}function To(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sc(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ji(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=dc(o),r===null)return jt;if(n++,o=o[Zt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return jt}function Jo(e,t,n){nh(e,t,n)}function ac(e,t,n){if(n&k.Optional||e!==void 0)return e;ji(t,"NodeInjector")}function lc(e,t,n,r){if(n&k.Optional&&r===void 0&&(r=null),!(n&(k.Self|k.Host))){let o=e[Gt],i=Ne(void 0);try{return o?o.get(t,r,n&k.Optional):ml(t,r,n&k.Optional)}finally{Ne(i)}}return ac(r,t,n)}function cc(e,t,n,r=k.Default,o){if(e!==null){if(t[x]&2048&&!(r&k.Self)){let s=sh(e,t,n,r,Oe);if(s!==Oe)return s}let i=uc(e,t,n,r,Oe);if(i!==Oe)return i}return lc(t,n,r,o)}function uc(e,t,n,r,o){let i=oh(n);if(typeof i=="function"){if(!Yl(t,e,r))return r&k.Host?ac(o,n,r):lc(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&k.Optional))ji(n);else return s}finally{Xl()}}else if(typeof i=="number"){let s=null,a=sc(e,t),l=jt,c=r&k.Host?t[Ve][Ae]:null;for((a===-1||r&k.SkipSelf)&&(l=a===-1?Ji(e,t):t[a+8],l===jt||!Wa(r,!1)?a=-1:(s=t[S],a=mr(l),t=vr(l,t)));a!==-1;){let f=t[S];if(Ua(i,a,f.data)){let h=rh(a,t,n,s,r,c);if(h!==Oe)return h}l=t[a+8],l!==jt&&Wa(r,t[S].data[a+8]===c)&&Ua(i,a,t)?(s=f,a=mr(l),t=vr(l,t)):a=-1}}return o}function rh(e,t,n,r,o,i){let s=t[S],a=s.data[e+8],l=r==null?Or(a)&&Xo:r!=s&&(a.type&3)!==0,c=o&k.Host&&i===a,f=sr(a,s,n,l,c);return f!==null?vt(t,s,f,a):Oe}function sr(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,l=e.directiveStart,c=e.directiveEnd,f=i>>20,h=r?a:a+f,y=o?a+f:c;for(let v=h;v=l&&b.type===n)return v}if(o){let v=s[l];if(v&&et(v)&&v.type===n)return l}return null}function vt(e,t,n,r){let o=e[n],i=t.data;if(Zp(o)){let s=o;s.resolving&&_f(bf(i[n]));let a=Ha(s.canSeeViewProviders);s.resolving=!0;let l,c=s.injectImpl?Ne(s.injectImpl):null,f=Yl(e,r,k.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&Yp(n,i[n],t)}finally{c!==null&&Ne(c),Ha(a),s.resolving=!1,Xl()}}return o}function oh(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(an)?e[an]:void 0;return typeof t=="number"?t>=0?t&oc:ih:t}function Ua(e,t,n){let r=1<>ic)]&r)}function Wa(e,t){return!(e&k.Self)&&!(e&k.Host&&t)}var dt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return cc(this._tNode,this._lView,t,Sr(r),n)}};function ih(){return new dt(ce(),R())}function es(e){return yn(()=>{let t=e.prototype.constructor,n=t[cr]||ei(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[cr]||ei(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function ei(e){return dl(e)?()=>{let t=ei(oe(e));return t&&t()}:Bt(e)}function sh(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[x]&2048&&!(s[x]&512);){let a=uc(i,s,n,r|k.Self,Oe);if(a!==Oe)return a;let l=i.parent;if(!l){let c=s[Nl];if(c){let f=c.get(n,Oe,r);if(f!==Oe)return f}l=dc(s),s=s[Zt]}i=l}return o}function dc(e){let t=e[S],n=t.type;return n===2?t.declTNode:n===1?e[Ae]:null}function Ga(e,t=null,n=null,r){let o=fc(e,t,n,r);return o.resolveInjectorInitializers(),o}function fc(e,t=null,n=null,r,o=new Set){let i=[n||le,rp(e)];return r=r||(typeof e=="object"?void 0:ie(e)),new zo(i,t||Tl(),r||null,o)}var ye=(()=>{let t=class t{static create(r,o){if(Array.isArray(r))return Ga({name:""},o,r,"");{let i=r.name??"";return Ga({name:i},r.parent,r.providers,i)}}};t.THROW_IF_NOT_FOUND=cn,t.NULL=new pr,t.\u0275prov=H({token:t,providedIn:"any",factory:()=>F(Dl)}),t.__NG_ELEMENT_ID__=-1;let e=t;return e})();var ah="ngOriginalError";function ko(e){return e[ah]}var Ge=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&ko(t);for(;n&&ko(n);)n=ko(n);return n||null}},pc=new N("",{providedIn:"root",factory:()=>Z(Ge).handleError.bind(void 0)}),hc=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=lh,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),ti=class extends hc{constructor(t){super(),this._lView=t}onDestroy(t){return Ul(this._lView,t),()=>Tp(this._lView,t)}};function lh(){return new ti(R())}function ch(){return Qt(ce(),R())}function Qt(e,t){return new se(Se(e,t))}var se=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=ch;let e=t;return e})();function uh(e){return e instanceof se?e.nativeElement:e}var ni=class extends Qe{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,gp()&&(this.destroyRef=Z(hc,{optional:!0})??void 0)}emit(t){let n=V(null);try{super.next(t)}finally{V(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=No(i),o&&(o=No(o)),s&&(s=No(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ae&&t.add(a),a}};function No(e){return t=>{setTimeout(e,void 0,t)}}var O=ni;function dh(){return this._results[Symbol.iterator]()}var ri=class e{get changes(){return this._changes??=new O}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=dh)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Rf(t);(this._changesDetected=!Ff(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function gc(e){return(e.flags&128)===128}var mc=new Map,fh=0;function ph(){return fh++}function hh(e){mc.set(e[Pr],e)}function gh(e){mc.delete(e[Pr])}var qa="__ngContext__";function tt(e,t){ut(t)?(e[qa]=t[Pr],hh(t)):e[qa]=t}function vc(e){return Cc(e[pn])}function yc(e){return Cc(e[Ie])}function Cc(e){for(;e!==null&&!$e(e);)e=e[Ie];return e}var oi;function Dc(e){oi=e}function mh(){if(oi!==void 0)return oi;if(typeof document<"u")return document;throw new T(210,!1)}var jr=new N("",{providedIn:"root",factory:()=>vh}),vh="ng",ts=new N(""),ot=new N("",{providedIn:"platform",factory:()=>"unknown"});var ns=new N("",{providedIn:"root",factory:()=>mh().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var yh="h",Ch="b";var Dh=()=>null;function rs(e,t,n=!1){return Dh(e,t,n)}var wc=!1,wh=new N("",{providedIn:"root",factory:()=>wc});var ii=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pf})`}};function Br(e){return e instanceof ii?e.changingThisBreaksApplicationSecurity:e}var Eh=/^>|^->||--!>|)/g,_h="\u200B$1\u200B";function Ih(e){return e.replace(Eh,t=>t.replace(bh,_h))}function os(e){return e.ownerDocument}function xh(e){return e instanceof Function?e():e}var qe=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(qe||{}),Mh;function is(e,t){return Mh(e,t)}function Vt(e,t,n,r,o){if(r!=null){let i,s=!1;$e(r)?i=r:ut(r)&&(s=!0,r=r[ze]);let a=je(r);e===0&&n!==null?o==null?xc(t,n,a):Cr(t,n,a,o||null,!0):e===1&&n!==null?Cr(t,n,a,o||null,!0):e===2?qh(t,a,s):e===3&&t.destroyNode(a),i!=null&&$h(t,e,i,n,o)}}function Ah(e,t){return e.createText(t)}function Sh(e,t,n){e.setValue(t,n)}function Th(e,t){return e.createComment(Ih(t))}function Ec(e,t,n){return e.createElement(t,n)}function kh(e,t){bc(e,t),t[ze]=null,t[Ae]=null}function Nh(e,t,n,r,o,i){r[ze]=o,r[Ae]=t,Ur(e,r,n,1,o,i)}function bc(e,t){t[Re].changeDetectionScheduler?.notify(1),Ur(e,t,t[K],2,null,null)}function Ph(e){let t=e[pn];if(!t)return Po(e[S],e);for(;t;){let n=null;if(ut(t))n=t[pn];else{let r=t[he];r&&(n=r)}if(!n){for(;t&&!t[Ie]&&t!==e;)ut(t)&&Po(t[S],t),t=t[J];t===null&&(t=e),ut(t)&&Po(t[S],t),n=t&&t[Ie]}t=n}}function Oh(e,t,n,r){let o=he+r,i=n.length;r>0&&(n[o-1][Ie]=t),r0&&(e[n-1][Ie]=r[Ie]);let i=fr(e,he+t);kh(r[S],r);let s=i[We];s!==null&&s.detachView(i[S]),r[J]=null,r[Ie]=null,r[x]&=-129}return r}function Ic(e,t){if(!(t[x]&256)){let n=t[K];n.destroyNode&&Ur(e,t,n,3,null,null),Ph(t)}}function Po(e,t){if(t[x]&256)return;let n=V(null);try{t[x]&=-129,t[x]|=256,t[pt]&&ra(t[pt]),Vh(e,t),Rh(e,t),t[S].type===1&&t[K].destroy();let r=t[Dn];if(r!==null&&$e(t[J])){r!==t[J]&&_c(r,t);let o=t[We];o!==null&&o.detachView(e)}gh(t)}finally{V(n)}}function Rh(e,t){let n=e.cleanup,r=t[fn];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[fn]=null);let o=t[Je];if(o!==null){t[Je]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Fe.None||i===Fe.Emulated)return null}return Se(r,n)}}function Cr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function xc(e,t,n){e.appendChild(t,n)}function za(e,t,n,r,o){r!==null?Cr(e,t,n,r,o):xc(e,t,n)}function Bh(e,t,n,r){e.removeChild(t,n,r)}function ss(e,t){return e.parentNode(t)}function Hh(e,t){return e.nextSibling(t)}function Uh(e,t,n){return Gh(e,t,n)}function Wh(e,t,n){return e.type&40?Se(e,n):null}var Gh=Wh,$a;function Hr(e,t,n,r){let o=Lh(e,r,t),i=t[K],s=r.parent||t[Ae],a=Uh(s,r,t);if(o!=null)if(Array.isArray(n))for(let l=0;lLe&&Tc(e,t,Le,!1),Pe(s?2:0,o),n(r,o)}finally{gt(i),Pe(s?3:1,o)}}function ls(e,t,n){if(Gi(t)){let r=V(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function ng(e,t,n,r){let o=Bc(t);o.push(n),e.firstCreatePass&&Hc(e).push(r,o.length-1)}function rg(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Op()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value: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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Ya(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,l=xe.None;Array.isArray(s)?(a=s[0],l=s[1]):a=s;let c=i;if(o!==null){if(!o.hasOwnProperty(i))continue;c=o[i]}e===0?Ka(r,n,c,a,l):Ka(r,n,c,a)}return r}function Ka(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function og(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],l=null,c=null;for(let f=r;f0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function cg(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;Or(n)&&mg(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||yr(n,t),tt(r,t);let s=n.initialInputs;for(let a=o;a{hn(e.lView)},consumerOnSignalRead(){this.lView[pt]=this}}),qc=100;function zc(e,t=!0,n=0){let r=e[Re],o=r.rendererFactory,i=!1;i||o.begin?.();try{Sg(e,n)}catch(s){throw t&&Uc(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function Sg(e,t){ui(e,t);let n=0;for(;zi(e);){if(n===qc)throw new T(103,!1);n++,ui(e,1)}}function Tg(e,t,n,r){let o=t[x];if((o&256)===256)return;let i=!1;!i&&t[Re].inlineEffectRunner?.flush(),Qi(t);let s=null,a=null;!i&&kg(e)&&(a=Ig(t),s=ta(a));try{Hl(t),Bp(e.bindingStartIndex),n!==null&&Pc(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let h=e.preOrderCheckHooks;h!==null&&or(t,h,null)}else{let h=e.preOrderHooks;h!==null&&ir(t,h,0,null),So(t,0)}if(Ng(t),$c(t,0),e.contentQueries!==null&&jc(e,t),!i)if(l){let h=e.contentCheckHooks;h!==null&&or(t,h)}else{let h=e.contentHooks;h!==null&&ir(t,h,1),So(t,1)}Zh(e,t);let c=e.components;c!==null&&Kc(t,c,0);let f=e.viewQuery;if(f!==null&&ci(2,f,r),!i)if(l){let h=e.viewCheckHooks;h!==null&&or(t,h)}else{let h=e.viewHooks;h!==null&&ir(t,h,2),So(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ao]){for(let h of t[Ao])h();t[Ao]=null}i||(t[x]&=-73)}catch(l){throw hn(t),l}finally{a!==null&&(na(a,s),Mg(a)),Xi()}}function kg(e){return e.type!==2}function $c(e,t){for(let n=vc(e);n!==null;n=yc(n))for(let r=he;r-1&&(si(t,r),fr(n,r))}this._attachedToViewContainer=!1}Ic(this._lView[S],this._lView)}onDestroy(t){Ul(this._lView,t)}markForCheck(){gs(this._cdRefInjectingView||this._lView)}detach(){this._lView[x]&=-129}reattach(){Zo(this._lView),this._lView[x]|=128}detectChanges(){this._lView[x]|=1024,zc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new T(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,bc(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new T(902,!1);this._appRef=t,Zo(this._lView)}},Ct=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Rg;let e=t;return e})(),Og=Ct,Fg=class extends Og{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Eg(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new yt(o)}};function Rg(){return qr(ce(),R())}function qr(e,t){return e.type&4?new Fg(t,e,Qt(e,t)):null}var jw=new RegExp(`^(\\d+)*(${Ch}|${yh})*(.*)`);var Vg=()=>null;function Qa(e,t){return Vg(e,t)}var di=class{},fi=class{},wr=class{};function Lg(e){let t=Error(`No component factory found for ${ie(e)}.`);return t[jg]=e,t}var jg="ngComponent";var pi=class{resolveComponentFactory(t){throw Lg(t)}},En=(()=>{let t=class t{};t.NULL=new pi;let e=t;return e})(),mn=class{},bn=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>Bg();let e=t;return e})();function Bg(){let e=R(),t=ce(),n=nt(t.index,e);return(ut(n)?n:e)[K]}var Hg=(()=>{let t=class t{};t.\u0275prov=H({token:t,providedIn:"root",factory:()=>null});let e=t;return e})(),Oo={};function Xa(...e){}function Ug(){let e=typeof pe.requestAnimationFrame=="function",t=pe[e?"requestAnimationFrame":"setTimeout"],n=pe[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){let r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);let o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}var $=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new O(!1),this.onMicrotaskEmpty=new O(!1),this.onStable=new O(!1),this.onError=new O(!1),typeof Zone>"u")throw new T(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=Ug().nativeRequestAnimationFrame,qg(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new T(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new T(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Wg,Xa,Xa);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Wg={};function ms(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Gg(e){e.isCheckStableRunning||e.lastRequestAnimationFrameId!==-1||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(pe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,hi(e),e.isCheckStableRunning=!0,ms(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),hi(e))}function qg(e){let t=()=>{Gg(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(zg(a))return n.invokeTask(o,i,s,a);try{return Ja(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),el(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return Ja(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),el(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,hi(e),ms(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function hi(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.lastRequestAnimationFrameId!==-1?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ja(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function el(e){e._nesting--,ms(e)}var gi=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new O,this.onMicrotaskEmpty=new O,this.onStable=new O,this.onError=new O}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function zg(e){return!Array.isArray(e)||e.length!==1?!1:e[0].data?.__ignore_ng_zone__===!0}function $g(e="zone.js",t){return e==="noop"?new gi:e==="zone.js"?new $(t):e}var Zc=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=H({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function Er(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&Ac(e,n,i.join(" "))}}function em(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=nm;let e=t;return e})();function nm(){let e=ce();return Xc(e,R())}var rm=Te,Qc=class extends rm{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qt(this._hostTNode,this._hostLView)}get injector(){return new dt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ji(this._hostTNode,this._hostLView);if(rc(t)){let n=vr(t,this._hostLView),r=mr(t),o=n[S].data[r+8];return new dt(o,n)}else return new dt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=nl(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-he}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Qa(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Za(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!vp(t),a;if(s)a=n;else{let b=n||{};a=b.index,r=b.injector,o=b.projectableNodes,i=b.environmentInjector||b.ngModuleRef}let l=s?t:new br(Ut(t)),c=r||this.parentInjector;if(!i&&l.ngModule==null){let P=(s?c:this.parentInjector).get(ft,null);P&&(i=P)}let f=Ut(l.componentType??{}),h=Qa(this._lContainer,f?.id??null),y=h?.firstChild??null,v=l.create(c,o,y,i);return this.insertImpl(v.hostView,a,Za(this._hostTNode,h)),v}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Mp(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=o[J],c=new Qc(l,l[Ae],l[J]);c.detach(c.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return bg(s,o,i,r),t.attachToViewContainerRef(),Cl(Fo(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=nl(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=si(this._lContainer,n);r&&(fr(Fo(this._lContainer),n),Ic(r[S],r))}detach(t){let n=this._adjustIndex(t,-1),r=si(this._lContainer,n);return r&&fr(Fo(this._lContainer),n)!=null?new yt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function nl(e){return e[gr]}function Fo(e){return e[gr]||(e[gr]=[])}function Xc(e,t){let n,r=t[e.index];return $e(r)?n=r:(n=Lc(r,t,null,e),t[e.index]=n,Gr(t,n)),im(n,t,e,r),new Qc(n,e,t)}function om(e,t){let n=e[K],r=n.createComment(""),o=Se(t,e),i=ss(n,o);return Cr(n,i,r,Hh(n,o),!1),r}var im=lm,sm=()=>!1;function am(e,t,n){return sm(e,t,n)}function lm(e,t,n,r){if(e[ht])return;let o;n.type&8?o=je(r):o=om(t,n),e[ht]=o}var Ci=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Di=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let c=i[a+1],f=t[-l];for(let h=he;ht.trim())}function vm(e,t,n){e.queries===null&&(e.queries=new Ei),e.queries.track(new bi(t,n))}function vs(e,t){return e.queries.getByIndex(t)}function ym(e,t){let n=e[S],r=vs(n,t);return r.crossesNgTemplate?_i(n,e,t,[]):Jc(n,e,r,t)}function Cm(e){return typeof e=="function"&&e[po]!==void 0}function eu(e){return Cm(e)&&typeof e.set=="function"}function Dm(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(_m))}return i}return _r.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(c=>{o.template=c}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let c=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((h,y)=>{a.push(""),s.push(r(h).then(v=>{a[c+y]=v,f.splice(f.indexOf(h),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(c=>{a.push(c),o.styleUrl=void 0}));let l=Promise.all(s).then(()=>Im(i));t.push(l)}),Em(),Promise.all(t).then(()=>{})}var _r=new Map,wm=new Set;function Em(){let e=_r;return _r=new Map,e}function bm(){return _r.size===0}function _m(e){return typeof e=="string"?e:e.text()}function Im(e){wm.delete(e)}function xm(e){return Object.getPrototypeOf(e.prototype).constructor}function _t(e){let t=xm(e.type),n=!0,r=[e];for(;t;){let o;if(et(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new T(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=er(e.inputs),s.inputTransforms=er(e.inputTransforms),s.declaredInputs=er(e.declaredInputs),s.outputs=er(e.outputs);let a=o.hostBindings;a&&km(e,a);let l=o.viewQuery,c=o.contentQueries;if(l&&Sm(e,l),c&&Tm(e,c),Mm(e,o),gf(e.outputs,o.outputs),et(o)&&o.data.animation){let f=e.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=dn(o.hostAttrs,n=dn(n,o.hostAttrs))}}function er(e){return e===Ht?{}:e===le?[]:e}function Sm(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Tm(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function km(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}var $t=class{},Ii=class{};var Ir=class extends $t{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new mi(this);let o=tp(t);this._bootstrapComponents=xh(o.bootstrap),this._r3Injector=fc(t,n,[{provide:$t,useValue:this},{provide:En,useValue:this.componentFactoryResolver},...r],ie(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},xi=class extends Ii{constructor(t){super(),this.moduleType=t}create(t){return new Ir(this.moduleType,t,[])}};function Nm(e,t,n){return new Ir(e,t,n)}var tu=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new sn(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function nu(e){return Om(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Pm(e,t){if(Array.isArray(e))for(let n=0;n>17&32767}function Hm(e){return(e&2)==2}function Um(e,t){return e&131071|t<<17}function Mi(e){return e|2}function Yt(e){return(e&131068)>>2}function Ro(e,t){return e&-131069|t<<2}function Wm(e){return(e&1)===1}function Ai(e){return e|1}function Gm(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=wt(s),l=Yt(s);e[r]=n;let c=!1,f;if(Array.isArray(n)){let h=n;f=h[1],(f===null||Cn(h,f)>0)&&(c=!0)}else f=n;if(o)if(l!==0){let y=wt(e[a+1]);e[r+1]=tr(y,a),y!==0&&(e[y+1]=Ro(e[y+1],r)),e[a+1]=Um(e[a+1],r)}else e[r+1]=tr(a,0),a!==0&&(e[a+1]=Ro(e[a+1],r)),a=r;else e[r+1]=tr(l,0),a===0?a=r:e[l+1]=Ro(e[l+1],r),l=r;c&&(e[r+1]=Mi(e[r+1])),rl(e,f,r,!0),rl(e,f,r,!1),qm(t,f,e,r,i),s=tr(a,l),i?t.classBindings=s:t.styleBindings=s}function qm(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Cn(i,t)>=0&&(n[r+1]=Ai(n[r+1]))}function rl(e,t,n,r){let o=e[n+1],i=t===null,s=r?wt(o):Yt(o),a=!1;for(;s!==0&&(a===!1||i);){let l=e[s],c=e[s+1];zm(l,t)&&(a=!0,e[s+1]=r?Ai(c):Mi(c)),s=r?wt(c):Yt(c)}a&&(e[n+1]=r?Mi(o):Ai(o))}function zm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Cn(e,t)>=0:!1}var _e={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function $m(e){return e.substring(_e.key,_e.keyEnd)}function Ym(e){return Km(e),su(e,au(e,0,_e.textEnd))}function su(e,t){let n=_e.textEnd;return n===t?-1:(t=_e.keyEnd=Zm(e,_e.key=t,n),au(e,t,n))}function Km(e){_e.key=0,_e.keyEnd=0,_e.value=0,_e.valueEnd=0,_e.textEnd=e.length}function au(e,t,n){for(;t32;)t++;return t}function D(e,t,n){let r=R(),o=Yi();if(Dt(r,o,t)){let i=ee(),s=Jl();Fc(i,s,r,e,t,r[K],n,!1)}return D}function Si(e,t,n,r,o){let i=t.inputs,s=o?"class":"style";ps(e,n,i[s],s,r)}function I(e,t,n){return cu(e,t,n,!1),I}function Xt(e,t){return cu(e,t,null,!0),Xt}function It(e){uu(nv,lu,e,!0)}function lu(e,t){for(let n=Ym(t);n>=0;n=su(t,n))Tr(e,$m(t),!0)}function cu(e,t,n,r){let o=R(),i=ee(),s=Ki(2);if(i.firstUpdatePass&&fu(i,e,s,r),t!==Ce&&Dt(o,s,t)){let a=i.data[rt()];pu(i,a,o,o[K],e,o[s+1]=ov(t,n),r,s)}}function uu(e,t,n,r){let o=ee(),i=Ki(2);o.firstUpdatePass&&fu(o,null,i,r);let s=R();if(n!==Ce&&Dt(s,i,n)){let a=o.data[rt()];if(hu(a,r)&&!du(o,i)){let l=r?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(n=Bo(l,n||"")),Si(o,a,s,n,r)}else rv(o,a,s,s[K],s[i+1],s[i+1]=tv(e,t,n),r,i)}}function du(e,t){return t>=e.expandoStartIndex}function fu(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[rt()],s=du(e,n);hu(i,r)&&t===null&&!s&&(t=!1),t=Qm(o,i,t,r),Gm(o,i,t,n,s,r)}}function Qm(e,t,n,r){let o=Gp(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Vo(null,e,t,n,r),n=vn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Vo(o,e,t,n,r),i===null){let l=Xm(e,t,r);l!==void 0&&Array.isArray(l)&&(l=Vo(null,e,t,l[1],r),l=vn(l,t.attrs,r),Jm(e,t,r,l))}else i=ev(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function Xm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Yt(r)!==0)return e[wt(r)]}function Jm(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[wt(o)]=r}function ev(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let l=e[o],c=Array.isArray(l),f=c?l[1]:l,h=f===null,y=n[o+1];y===Ce&&(y=h?le:void 0);let v=h?xo(y,r):f===r?y:void 0;if(c&&!xr(v)&&(v=xo(l,r)),xr(v)&&(a=v,s))return a;let b=e[o+1];o=s?wt(b):Yt(b)}if(t!==null){let l=i?t.residualClasses:t.residualStyles;l!=null&&(a=xo(l,r))}return a}function xr(e){return e!==void 0}function ov(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ie(Br(e)))),e}function hu(e,t){return(e.flags&(t?8:16))!==0}function gu(e,t,n){let r=R(),o=iu(r,e,t,n);uu(Tr,lu,o,!0)}function iv(e,t,n,r,o,i){let s=t.consts,a=zt(s,o),l=wn(t,e,2,r,a);return fs(t,n,l,zt(s,i)),l.attrs!==null&&Er(l,l.attrs,!1),l.mergedAttrs!==null&&Er(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function d(e,t,n,r){let o=R(),i=ee(),s=Le+e,a=o[K],l=i.firstCreatePass?iv(s,i,o,t,n,r):i.data[s],c=sv(i,o,l,a,t,e);o[s]=c;let f=Fr(l);return bt(l,!0),Sc(a,c,l),!Rm(l)&&Rr()&&Hr(i,o,c,l),kp()===0&&tt(c,o),Np(),f&&(cs(i,o,l),ls(i,l,o)),r!==null&&us(o,l),d}function u(){let e=ce();$i()?ql():(e=e.parent,bt(e,!1));let t=e;Fp(t)&&Rp(),Pp();let n=ee();return n.firstCreatePass&&(Lr(n,e),Gi(e)&&n.queries.elementEnd(e)),t.classesWithoutHost!=null&&Qp(t)&&Si(n,t,R(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&Xp(t)&&Si(n,t,R(),t.stylesWithoutHost,!1),u}function w(e,t,n,r){return d(e,t,n,r),u(),w}var sv=(e,t,n,r,o,i)=>(Vr(!0),Ec(r,o,$p()));function av(e,t,n,r,o){let i=t.consts,s=zt(i,r),a=wn(t,e,8,"ng-container",s);s!==null&&Er(a,s,!0);let l=zt(i,o);return fs(t,n,a,l),t.queries!==null&&t.queries.elementStart(t,a),a}function mu(e,t,n){let r=R(),o=ee(),i=e+Le,s=o.firstCreatePass?av(i,o,r,t,n):o.data[i];bt(s,!0);let a=lv(o,r,s,e);return r[i]=a,Rr()&&Hr(o,r,a,s),tt(a,r),Fr(s)&&(cs(o,r,s),ls(o,s,r)),n!=null&&us(r,s),mu}function vu(){let e=ce(),t=ee();return $i()?ql():(e=e.parent,bt(e,!1)),t.firstCreatePass&&(Lr(t,e),Gi(e)&&t.queries.elementEnd(e)),vu}function ys(e,t,n){return mu(e,t,n),vu(),ys}var lv=(e,t,n,r)=>(Vr(!0),Th(t[K],""));function Y(){return R()}var Mr="en-US";var cv=Mr;function uv(e){typeof e=="string"&&(cv=e.toLowerCase().replace(/_/g,"-"))}function _(e,t,n,r){let o=R(),i=ee(),s=ce();return yu(i,o,o[K],s,e,t,r),_}function dv(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;il?a[l]:null}typeof s=="string"&&(i+=2)}return null}function yu(e,t,n,r,o,i,s){let a=Fr(r),c=e.firstCreatePass&&Hc(e),f=t[Me],h=Bc(t),y=!0;if(r.type&3||s){let P=Se(r,t),z=s?s(P):P,B=h.length,Ue=s?we=>s(je(we[r.index])):r.index,te=null;if(!s&&a&&(te=dv(e,t,o,r.index)),te!==null){let we=te.__ngLastListenerFn__||te;we.__ngNextListenerFn__=i,te.__ngLastListenerFn__=i,y=!1}else{i=sl(r,t,f,i,!1);let we=n.listen(z,o,i);h.push(i,we),c&&c.push(o,Ue,B,B+1)}}else i=sl(r,t,f,i,!1);let v=r.outputs,b;if(y&&v!==null&&(b=v[o])){let P=b.length;if(P)for(let z=0;z-1?nt(e.index,t):t;gs(a);let l=il(t,n,r,s),c=i.__ngNextListenerFn__;for(;c;)l=il(t,n,c,s)&&l,c=c.__ngNextListenerFn__;return o&&l===!1&&s.preventDefault(),l}}function E(e=1){return zp(e)}function zr(e,t,n){gm(e,t,n)}function $r(e){let t=R(),n=ee(),r=$l();Zi(r+1);let o=vs(n,r);if(e.dirty&&xp(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=ym(t,r);e.reset(i,uh),e.notifyOnChanges()}return!0}return!1}function Yr(){return pm(R(),$l())}function Kr(e){let t=Lp();return Ip(t,Le+e)}function p(e,t=""){let n=R(),r=ee(),o=e+Le,i=r.firstCreatePass?wn(r,o,1,t,null):r.data[o],s=fv(r,n,i,t,e);n[o]=s,Rr()&&Hr(r,n,s,i),bt(i,!1)}var fv=(e,t,n,r,o)=>(Vr(!0),Ah(t[K],r));function it(e){return Jt("",e,""),it}function Jt(e,t,n){let r=R(),o=iu(r,e,t,n);return o!==Ce&&Wc(r,rt(),o),Jt}function Zr(e,t,n,r,o){let i=R(),s=Bm(i,e,t,n,r,o);return s!==Ce&&Wc(i,rt(),s),Zr}function W(e,t,n){eu(t)&&(t=t());let r=R(),o=Yi();if(Dt(r,o,t)){let i=ee(),s=Jl();Fc(i,s,r,e,t,r[K],n,!1)}return W}function G(e,t){let n=eu(e);return n&&e.set(t),n}function q(e,t){let n=R(),r=ee(),o=ce();return yu(r,n,n[K],o,e,t),q}function pv(e,t,n){let r=ee();if(r.firstCreatePass){let o=et(e);Ti(n,r.data,r.blueprint,o,!0),Ti(t,r.data,r.blueprint,o,!1)}}function Ti(e,t,n,r,o){if(e=oe(e),Array.isArray(e))for(let i=0;i>20;if(Wt(e)||!e.multi){let v=new mt(c,o,M),b=jo(l,t,o?f:f+y,h);b===-1?(Jo(yr(a,s),i,l),Lo(i,e,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(v),s.push(v)):(n[b]=v,s[b]=v)}else{let v=jo(l,t,f+y,h),b=jo(l,t,f,f+y),P=v>=0&&n[v],z=b>=0&&n[b];if(o&&!z||!o&&!P){Jo(yr(a,s),i,l);let B=mv(o?gv:hv,n.length,o,r,c);!o&&z&&(n[b].providerFactory=B),Lo(i,e,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(B),s.push(B)}else{let B=Cu(n[o?b:v],c,!o&&r);Lo(i,e,v>-1?v:b,B)}!o&&r&&z&&n[b].componentProviders++}}}function Lo(e,t,n,r){let o=Wt(t),i=lp(t);if(o||i){let l=(i?oe(t.useClass):t).prototype.ngOnDestroy;if(l){let c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let f=c.indexOf(n);f===-1?c.push(n,[r,l]):c[f+1].push(r,l)}else c.push(n,l)}}}function Cu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function jo(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>pv(r,o?o(e):e,t)}}function Cs(e,t,n){let r=zl()+e,o=R();return o[r]===Ce?ru(o,r,n?t.call(n):t()):Fm(o,r)}function Du(e,t,n,r,o){return yv(R(),zl(),e,t,n,r,o)}function vv(e,t){let n=e[t];return n===Ce?void 0:n}function yv(e,t,n,r,o,i,s){let a=t+n;return ou(e,a,o,i)?ru(e,a+2,s?r.call(s,o,i):r(o,i)):vv(e,a+2)}function wu(e,t){return qr(e,t)}var nr=null;function Cv(e){nr!==null&&(e.defaultEncapsulation!==nr.defaultEncapsulation||e.preserveWhitespaces!==nr.preserveWhitespaces)||(nr=e)}var Ds=new N(""),_n=new N(""),Xr=(()=>{let t=class t{constructor(r,o,i){this._ngZone=r,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,ws||(Dv(i),i.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(r)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r()},o)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:i})}whenStable(r,o,i){if(i&&!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(r,o,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,i){return[]}};t.\u0275fac=function(o){return new(o||t)(F($),F(Jr),F(_n))},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})(),Jr=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){return ws?.findTestabilityInTree(this,r,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function Dv(e){ws=e}var ws;function In(e){return!!e&&typeof e.then=="function"}function Eu(e){return!!e&&typeof e.subscribe=="function"}var wv=new N(""),bu=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=Z(wv,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(In(s))r.push(s);else if(Eu(s)){let a=new Promise((l,c)=>{s.subscribe({complete:l,error:c})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),Ev=new N("");function bv(){oa(()=>{throw new T(600,!1)})}function _v(e){return e.isBoundToModule}function Iv(e,t,n){try{let r=n();return In(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function _u(e,t){return Array.isArray(t)?t.reduce(_u,e):X(X({},e),t)}var en=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Z(pc),this.afterRenderEffectManager=Z(Zc),this.externalTestViews=new Set,this.beforeRender=new Qe,this.afterTick=new Qe,this.componentTypes=[],this.components=[],this.isStable=Z(tu).hasPendingTasks.pipe(ct(r=>!r)),this._injector=Z(ft)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof wr;if(!this._injector.get(bu).done){let v=!i&&ep(r),b=!1;throw new T(405,b)}let a;i?a=r:a=this._injector.get(En).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let l=_v(a)?void 0:this._injector.get($t),c=o||a.selector,f=a.create(ye.NULL,[],c,l),h=f.location.nativeElement,y=f.injector.get(Ds,null);return y?.registerApplication(h),f.onDestroy(()=>{this.detachView(f.hostView),lr(this.components,f),y?.unregisterApplication(h)}),this._loadComponent(f),f}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new T(101,!1);let o=V(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,V(o)}}detectChangesInAttachedViews(r){let o=0,i=this.afterRenderEffectManager;for(;;){if(o===qc)throw new T(103,!1);if(r){let s=o===0;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)xv(a,s,l)}if(o++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Ni(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>Ni(s))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;lr(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(Ev,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>lr(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new T(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function lr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function xv(e,t,n){!t&&!Ni(e)||Mv(e,n,t)}function Ni(e){return zi(e)}function Mv(e,t,n){let r;n?(r=0,e[x]|=1024):e[x]&64?r=0:r=1,zc(e,t,r)}var Av=new N("");function Sv(e,t,n){let r=new xi(n);return Promise.resolve(r)}function al(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var Tv=(()=>{let t=class t{constructor(){this.zone=Z($),this.applicationRef=Z(en)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function kv(e){return[{provide:$,useFactory:e},{provide:un,multi:!0,useFactory:()=>{let t=Z(Tv,{optional:!0});return()=>t.initialize()}},{provide:un,multi:!0,useFactory:()=>{let t=Z(Ov);return()=>{t.initialize()}}},{provide:pc,useFactory:Nv}]}function Nv(){let e=Z($),t=Z(Ge);return n=>e.runOutsideAngular(()=>t.handleError(n))}function Pv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Ov=(()=>{let t=class t{constructor(){this.subscription=new ae,this.initialized=!1,this.zone=Z($),this.pendingTasks=Z(tu)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{$.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{$.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Fv(){return typeof $localize<"u"&&$localize.locale||Mr}var Es=new N("",{providedIn:"root",factory:()=>Z(Es,k.Optional|k.SkipSelf)||Fv()});var Iu=new N(""),xu=(()=>{let t=class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,o){let i=$g(o?.ngZone,Pv({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=Nm(r.moduleType,this.injector,kv(()=>i)),a=s.injector.get(Ge,null);return i.runOutsideAngular(()=>{let l=i.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{lr(this._modules,s),l.unsubscribe()})}),Iv(a,i,()=>{let l=s.injector.get(bu);return l.runInitializers(),l.donePromise.then(()=>{let c=s.injector.get(Es,Mr);return uv(c||Mr),this._moduleDoBootstrap(s),s})})})}bootstrapModule(r,o=[]){let i=_u({},o);return Sv(this.injector,i,r).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(r){let o=r.injector.get(en);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(r.instance.ngDoBootstrap)r.instance.ngDoBootstrap(o);else throw new T(-403,!1);this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new T(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let r=this._injector.get(Iu,null);r&&(r.forEach(o=>o()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(o){return new(o||t)(F(ye))},t.\u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),ln=null,Mu=new N("");function Rv(e){if(ln&&!ln.get(Mu,!1))throw new T(400,!1);bv(),ln=e;let t=e.get(xu);return jv(e),t}function bs(e,t,n=[]){let r=`Platform: ${t}`,o=new N(r);return(i=[])=>{let s=Au();if(!s||s.injector.get(Mu,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):Rv(Vv(a,r))}return Lv(o)}}function Vv(e=[],t){return ye.create({name:t,providers:[{provide:Nr,useValue:"platform"},{provide:Iu,useValue:new Set([()=>ln=null])},...e]})}function Lv(e){let t=Au();if(!t)throw new T(401,!1);return t}function Au(){return ln?.get(xu)??null}function jv(e){e.get(ts,null)?.forEach(n=>n())}var tn=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=Bv;let e=t;return e})();function Bv(e){return Hv(ce(),R(),(e&16)===16)}function Hv(e,t,n){if(Or(e)&&!n){let r=nt(e.index,t);return new yt(r,r)}else if(e.type&47){let r=t[Ve];return new yt(r,t)}return null}var Pi=class{constructor(){}supports(t){return nu(t)}create(t){return new Oi(t)}},Uv=(e,t)=>t,Oi=class{constructor(t){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=t||Uv}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Fi(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Ar),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ar),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Fi=class{constructor(t,n){this.item=t,this.trackById=n,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}},Ri=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ar=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Ri,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function ll(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||cl()),deps:[[t,new Of,new yl]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new T(901,!1)}};t.\u0275prov=H({token:t,providedIn:"root",factory:cl});let e=t;return e})();var Su=bs(null,"core",[]),Tu=(()=>{let t=class t{constructor(r){}};t.\u0275fac=function(o){return new(o||t)(F(en))},t.\u0275mod=ve({type:t}),t.\u0275inj=me({});let e=t;return e})();function Is(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Ou=null;function xt(){return Ou}function Fu(e){Ou??=e}var eo=class{};var He=new N("");function Ru(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var xs=class{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Vu=(()=>{let t=class t{set ngForOf(r){this._ngForOf=r,this._ngForOfDirty=!0}set ngForTrackBy(r){this._trackByFn=r}get ngForTrackBy(){return this._trackByFn}constructor(r,o,i){this._viewContainer=r,this._template=o,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(r){r&&(this._template=r)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let r=this._ngForOf;if(!this._differ&&r)if(0)try{}catch{}else this._differ=this._differs.find(r).create(this.ngForTrackBy)}if(this._differ){let r=this._differ.diff(this._ngForOf);r&&this._applyChanges(r)}}_applyChanges(r){let o=this._viewContainer;r.forEachOperation((i,s,a)=>{if(i.previousIndex==null)o.createEmbeddedView(this._template,new xs(i.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)o.remove(s===null?void 0:s);else if(s!==null){let l=o.get(s);o.move(l,a),ku(l,i)}});for(let i=0,s=o.length;i{let s=o.get(i.currentIndex);ku(s,i)})}static ngTemplateContextGuard(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(M(Te),M(Ct),M(_s))},t.\u0275dir=ne({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let e=t;return e})();function ku(e,t){e.context.$implicit=t.item}var Lu=(()=>{let t=class t{constructor(r,o){this._viewContainer=r,this._context=new Ms,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(r){this._context.$implicit=this._context.ngIf=r,this._updateView()}set ngIfThen(r){Nu("ngIfThen",r),this._thenTemplateRef=r,this._thenViewRef=null,this._updateView()}set ngIfElse(r){Nu("ngIfElse",r),this._elseTemplateRef=r,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(r,o){return!0}};t.\u0275fac=function(o){return new(o||t)(M(Te),M(Ct))},t.\u0275dir=ne({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let e=t;return e})(),Ms=class{constructor(){this.$implicit=null,this.ngIf=null}};function Nu(e,t){if(!!!(!t||t.createEmbeddedView))throw new Error(`${e} must be a TemplateRef, but received '${ie(t)}'.`)}var ju=(()=>{let t=class t{constructor(r){this._viewContainerRef=r,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(r){if(this._shouldRecreateView(r)){let o=this._viewContainerRef;if(this._viewRef&&o.remove(o.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=o.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(r){return!!r.ngTemplateOutlet||!!r.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(r,o,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,o,i):!1,get:(r,o,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,o,i)}})}};t.\u0275fac=function(o){return new(o||t)(M(Te))},t.\u0275dir=ne({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Et]});let e=t;return e})();var no=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=me({});let e=t;return e})(),As="browser",Wv="server";function Bu(e){return e===As}function Ss(e){return e===Wv}var to=class{};var Ns=class extends eo{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ps=class e extends Ns{static makeCurrent(){Fu(new e)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=zv();return n==null?null:$v(n)}resetBaseElement(){xn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ru(document.cookie,t)}},xn=null;function zv(){return xn=xn||document.querySelector("base"),xn?xn.getAttribute("href"):null}function $v(e){return new URL(e,document.baseURI).pathname}var Os=class{addToWindow(t){pe.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new T(5103,!1);return i},pe.getAllAngularTestabilities=()=>t.getAllTestabilities(),pe.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=pe.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};pe.frameworkStabilizers||(pe.frameworkStabilizers=[]),pe.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?xt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},Yv=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})(),Fs=new N(""),Gu=(()=>{let t=class t{constructor(r,o){this._zone=o,this._eventNameToPlugin=new Map,r.forEach(i=>{i.manager=this}),this._plugins=r.slice().reverse()}addEventListener(r,o,i){return this._findPluginFor(o).addEventListener(r,o,i)}getZone(){return this._zone}_findPluginFor(r){let o=this._eventNameToPlugin.get(r);if(o)return o;if(o=this._plugins.find(s=>s.supports(r)),!o)throw new T(5101,!1);return this._eventNameToPlugin.set(r,o),o}};t.\u0275fac=function(o){return new(o||t)(F(Fs),F($))},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})(),ro=class{constructor(t){this._doc=t}},Ts="ng-app-id",qu=(()=>{let t=class t{constructor(r,o,i,s={}){this.doc=r,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ss(s),this.resetHostNodes()}addStyles(r){for(let o of r)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(r){for(let o of r)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let r=this.styleNodesInDOM;r&&(r.forEach(o=>o.remove()),r.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(r){this.hostNodes.add(r);for(let o of this.getAllStyles())this.addStyleToHost(r,o)}removeHost(r){this.hostNodes.delete(r)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(r){for(let o of this.hostNodes)this.addStyleToHost(o,r)}onStyleRemoved(r){let o=this.styleRef;o.get(r)?.elements?.forEach(i=>i.remove()),o.delete(r)}collectServerRenderedStyles(){let r=this.doc.head?.querySelectorAll(`style[${Ts}="${this.appId}"]`);if(r?.length){let o=new Map;return r.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(r,o){let i=this.styleRef;if(i.has(r)){let s=i.get(r);return s.usage+=o,s.usage}return i.set(r,{usage:o,elements:[]}),o}getStyleElement(r,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===r)return i.delete(o),s.removeAttribute(Ts),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(Ts,this.appId),r.appendChild(a),a}}addStyleToHost(r,o){let i=this.getStyleElement(r,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let r=this.hostNodes;r.clear(),r.add(this.doc.head)}};t.\u0275fac=function(o){return new(o||t)(F(He),F(jr),F(ns,8),F(ot))},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})(),ks={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/"},Vs=/%COMP%/g,zu="%COMP%",Kv=`_nghost-${zu}`,Zv=`_ngcontent-${zu}`,Qv=!0,Xv=new N("",{providedIn:"root",factory:()=>Qv});function Jv(e){return Zv.replace(Vs,e)}function ey(e){return Kv.replace(Vs,e)}function $u(e,t){return t.map(n=>n.replace(Vs,e))}var Hu=(()=>{let t=class t{constructor(r,o,i,s,a,l,c,f=null){this.eventManager=r,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=Ss(l),this.defaultRenderer=new Mn(r,a,c,this.platformIsServer)}createRenderer(r,o){if(!r||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Fe.ShadowDom&&(o=fe(X({},o),{encapsulation:Fe.Emulated}));let i=this.getOrCreateRenderer(r,o);return i instanceof oo?i.applyToHost(r):i instanceof An&&i.applyStyles(),i}getOrCreateRenderer(r,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,l=this.ngZone,c=this.eventManager,f=this.sharedStylesHost,h=this.removeStylesOnCompDestroy,y=this.platformIsServer;switch(o.encapsulation){case Fe.Emulated:s=new oo(c,f,o,this.appId,h,a,l,y);break;case Fe.ShadowDom:return new Rs(c,f,r,o,a,l,this.nonce,y);default:s=new An(c,f,o,h,a,l,y);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(o){return new(o||t)(F(Gu),F(qu),F(jr),F(Xv),F(He),F(ot),F($),F(ns))},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})(),Mn=class{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(ks[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Uu(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Uu(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new T(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=ks[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=ks[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(qe.DashCase|qe.Important)?t.style.setProperty(n,r,o&qe.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&qe.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r){if(typeof t=="string"&&(t=xt().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Uu(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Rs=class extends Mn{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=$u(o.id,o.styles);for(let f of c){let h=document.createElement("style");a&&h.setAttribute("nonce",a),h.textContent=f,this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},An=class extends Mn{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this.styles=l?$u(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},oo=class extends An{constructor(t,n,r,o,i,s,a,l){let c=o+"-"+r.id;super(t,n,r,i,s,a,l,c),this.contentAttr=Jv(c),this.hostAttr=ey(c)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}},ty=(()=>{let t=class t extends ro{constructor(r){super(r)}supports(r){return!0}addEventListener(r,o,i){return r.addEventListener(o,i,!1),()=>this.removeEventListener(r,o,i)}removeEventListener(r,o,i){return r.removeEventListener(o,i)}};t.\u0275fac=function(o){return new(o||t)(F(He))},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})(),Wu=["alt","control","meta","shift"],ny={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ry={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},oy=(()=>{let t=class t extends ro{constructor(r){super(r)}supports(r){return t.parseEventName(r)!=null}addEventListener(r,o,i){let s=t.parseEventName(o),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>xt().onAndCancel(r,s.domEventName,a))}static parseEventName(r){let o=r.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=t._normalizeKey(o.pop()),a="",l=o.indexOf("code");if(l>-1&&(o.splice(l,1),a="code."),Wu.forEach(f=>{let h=o.indexOf(f);h>-1&&(o.splice(h,1),a+=f+".")}),a+=s,o.length!=0||s.length===0)return null;let c={};return c.domEventName=i,c.fullKey=a,c}static matchEventFullKeyCode(r,o){let i=ny[r.key]||r.key,s="";return o.indexOf("code.")>-1&&(i=r.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),Wu.forEach(a=>{if(a!==i){let l=ry[a];l(r)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(r,o,i){return s=>{t.matchEventFullKeyCode(s,r)&&i.runGuarded(()=>o(s))}}static _normalizeKey(r){return r==="esc"?"escape":r}};t.\u0275fac=function(o){return new(o||t)(F(He))},t.\u0275prov=H({token:t,factory:t.\u0275fac});let e=t;return e})();function iy(){Ps.makeCurrent()}function sy(){return new Ge}function ay(){return Dc(document),document}var ly=[{provide:ot,useValue:As},{provide:ts,useValue:iy,multi:!0},{provide:He,useFactory:ay,deps:[]}],Yu=bs(Su,"browser",ly),cy=new N(""),uy=[{provide:_n,useClass:Os,deps:[]},{provide:Ds,useClass:Xr,deps:[$,Jr,_n]},{provide:Xr,useClass:Xr,deps:[$,Jr,_n]}],dy=[{provide:Nr,useValue:"root"},{provide:Ge,useFactory:sy,deps:[]},{provide:Fs,useClass:ty,multi:!0,deps:[He,$,ot]},{provide:Fs,useClass:oy,multi:!0,deps:[He]},Hu,qu,Gu,{provide:mn,useExisting:Hu},{provide:to,useClass:Yv,deps:[]},[]],Ku=(()=>{let t=class t{constructor(r){}static withServerTransition(r){return{ngModule:t,providers:[{provide:jr,useValue:r.appId}]}}};t.\u0275fac=function(o){return new(o||t)(F(cy,12))},t.\u0275mod=ve({type:t}),t.\u0275inj=me({providers:[...dy,...uy],imports:[no,Tu]});let e=t;return e})();var rd=(()=>{let t=class t{constructor(r,o){this._renderer=r,this._elementRef=o,this.onChange=i=>{},this.onTouched=()=>{}}setProperty(r,o){this._renderer.setProperty(this._elementRef.nativeElement,r,o)}registerOnTouched(r){this.onTouched=r}registerOnChange(r){this.onChange=r}setDisabledState(r){this.setProperty("disabled",r)}};t.\u0275fac=function(o){return new(o||t)(M(bn),M(se))},t.\u0275dir=ne({type:t});let e=t;return e})(),od=(()=>{let t=class t extends rd{};t.\u0275fac=(()=>{let r;return function(i){return(r||(r=es(t)))(i||t)}})(),t.\u0275dir=ne({type:t,features:[_t]});let e=t;return e})(),Us=new N(""),py={provide:Us,useExisting:Kt(()=>Ws),multi:!0},Ws=(()=>{let t=class t extends od{writeValue(r){this.setProperty("checked",r)}};t.\u0275fac=(()=>{let r;return function(i){return(r||(r=es(t)))(i||t)}})(),t.\u0275dir=ne({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(o,i){o&1&&_("change",function(a){return i.onChange(a.target.checked)})("blur",function(){return i.onTouched()})},features:[Qr([py]),_t]});let e=t;return e})(),hy={provide:Us,useExisting:Kt(()=>id),multi:!0};function gy(){let e=xt()?xt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var my=new N(""),id=(()=>{let t=class t extends rd{constructor(r,o,i){super(r,o),this._compositionMode=i,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!gy())}writeValue(r){let o=r??"";this.setProperty("value",o)}_handleInput(r){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(r)}_compositionStart(){this._composing=!0}_compositionEnd(r){this._composing=!1,this._compositionMode&&this.onChange(r)}};t.\u0275fac=function(o){return new(o||t)(M(bn),M(se),M(my,8))},t.\u0275dir=ne({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(o,i){o&1&&_("input",function(a){return i._handleInput(a.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(a){return i._compositionEnd(a.target.value)})},features:[Qr([hy]),_t]});let e=t;return e})();var vy=new N(""),yy=new N("");function sd(e){return e!=null}function ad(e){return In(e)?_o(e):e}function ld(e){let t={};return e.forEach(n=>{t=n!=null?X(X({},t),n):t}),Object.keys(t).length===0?null:t}function cd(e,t){return t.map(n=>n(e))}function Cy(e){return!e.validate}function ud(e){return e.map(t=>Cy(t)?t:n=>t.validate(n))}function Dy(e){if(!e)return null;let t=e.filter(sd);return t.length==0?null:function(n){return ld(cd(n,t))}}function dd(e){return e!=null?Dy(ud(e)):null}function wy(e){if(!e)return null;let t=e.filter(sd);return t.length==0?null:function(n){let r=cd(n,t).map(ad);return Io(r).pipe(ct(ld))}}function fd(e){return e!=null?wy(ud(e)):null}function Zu(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Ey(e){return e._rawValidators}function by(e){return e._rawAsyncValidators}function Ls(e){return e?Array.isArray(e)?e:[e]:[]}function so(e,t){return Array.isArray(e)?e.includes(t):e===t}function Qu(e,t){let n=Ls(t);return Ls(e).forEach(o=>{so(n,o)||n.push(o)}),n}function Xu(e,t){return Ls(t).filter(n=>!so(e,n))}var ao=class{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(t){this._rawValidators=t||[],this._composedValidatorFn=dd(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=fd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},js=class extends ao{get formDirective(){return null}get path(){return null}},kn=class extends ao{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Bs=class{constructor(t){this._cd=t}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}},_y={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},eb=fe(X({},_y),{"[class.ng-submitted]":"isSubmitted"}),pd=(()=>{let t=class t extends Bs{constructor(r){super(r)}};t.\u0275fac=function(o){return new(o||t)(M(kn,2))},t.\u0275dir=ne({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(o,i){o&2&&Xt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[_t]});let e=t;return e})();var Sn="VALID",io="INVALID",nn="PENDING",Tn="DISABLED";function Iy(e){return(lo(e)?e.validators:e)||null}function xy(e){return Array.isArray(e)?dd(e):e||null}function My(e,t){return(lo(t)?t.asyncValidators:e)||null}function Ay(e){return Array.isArray(e)?fd(e):e||null}function lo(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Hs=class{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Sn}get invalid(){return this.status===io}get pending(){return this.status==nn}get disabled(){return this.status===Tn}get enabled(){return this.status!==Tn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Qu(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Qu(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Xu(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Xu(t,this._rawAsyncValidators))}hasValidator(t){return so(this._rawValidators,t)}hasAsyncValidator(t){return so(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=nn,t.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Tn,this.errors=null,this._forEachChild(r=>{r.disable(fe(X({},t),{onlySelf:!0}))}),this._updateValue(),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(fe(X({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=Sn,this._forEachChild(r=>{r.enable(fe(X({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(fe(X({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Sn||this.status===nn)&&this._runAsyncValidator(t.emitEvent)),t.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Tn:Sn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=nn,this._hasOwnPendingAsyncValidator=!0;let n=ad(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new O,this.statusChanges=new O}_calculateStatus(){return this._allControlsDisabled()?Tn:this.errors?io:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(nn)?nn:this._anyControlsHaveStatus(io)?io:Sn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){lo(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=xy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ay(this._rawAsyncValidators)}};var hd=new N("CallSetDisabledState",{providedIn:"root",factory:()=>Gs}),Gs="always";function Sy(e,t){return[...t.path,e]}function Ty(e,t,n=Gs){Ny(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),Py(e,t),Fy(e,t),Oy(e,t),ky(e,t)}function Ju(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function ky(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function Ny(e,t){let n=Ey(e);t.validator!==null?e.setValidators(Zu(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=by(e);t.asyncValidator!==null?e.setAsyncValidators(Zu(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Ju(t._rawValidators,o),Ju(t._rawAsyncValidators,o)}function Py(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&gd(e,t)})}function Oy(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&gd(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function gd(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Fy(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function Ry(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function Vy(e){return Object.getPrototypeOf(e.constructor)===od}function Ly(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===id?n=i:Vy(i)?r=i:o=i}),o||r||n||null}function ed(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function td(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var jy=class extends Hs{constructor(t=null,n,r){super(Iy(n),My(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lo(n)&&(n.nonNullable||n.initialValueIsDefault)&&(td(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){ed(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){ed(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){td(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var By={provide:kn,useExisting:Kt(()=>qs)},nd=Promise.resolve(),qs=(()=>{let t=class t extends kn{constructor(r,o,i,s,a,l){super(),this._changeDetectorRef=a,this.callSetDisabledState=l,this.control=new jy,this._registered=!1,this.name="",this.update=new O,this._parent=r,this._setValidators(o),this._setAsyncValidators(i),this.valueAccessor=Ly(this,s)}ngOnChanges(r){if(this._checkForErrors(),!this._registered||"name"in r){if(this._registered&&(this._checkName(),this.formDirective)){let o=r.name.previousValue;this.formDirective.removeControl({name:o,path:this._getPath(o)})}this._setUpControl()}"isDisabled"in r&&this._updateDisabled(r),Ry(r,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(r){this.viewModel=r,this.update.emit(r)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Ty(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()&&this.name}_updateValue(r){nd.then(()=>{this.control.setValue(r,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(r){let o=r.isDisabled.currentValue,i=o!==0&&Is(o);nd.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(r){return this._parent?Sy(r,this._parent):[r]}};t.\u0275fac=function(o){return new(o||t)(M(js,9),M(vy,10),M(yy,10),M(Us,10),M(tn,8),M(hd,8))},t.\u0275dir=ne({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[xe.None,"disabled","isDisabled"],model:[xe.None,"ngModel","model"],options:[xe.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Qr([By]),_t,Et]});let e=t;return e})();var Hy=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=me({});let e=t;return e})();var md=(()=>{let t=class t{static withConfig(r){return{ngModule:t,providers:[{provide:hd,useValue:r.callSetDisabledState??Gs}]}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275mod=ve({type:t}),t.\u0275inj=me({imports:[Hy]});let e=t;return e})();var re=function(e){return e[e.HEX=0]="HEX",e[e.RGBA=1]="RGBA",e[e.HSLA=2]="HSLA",e[e.CMYK=3]="CMYK",e}(re||{}),ue=class{r;g;b;a;constructor(t,n,r,o){this.r=t,this.g=n,this.b=r,this.a=o}},Ye=class{h;s;v;a;constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}},De=class{h;s;l;a;constructor(t,n,r,o){this.h=t,this.s=n,this.l=r,this.a=o}},ge=class{c;m;y;k;a;constructor(t,n,r,o,i=1){this.c=t,this.m=n,this.y=r,this.k=o,this.a=i}};function vd(e,t){let n="right",r="bottom",{height:o,width:i}=e,{top:s,left:a}=t,l=s+t.height,c=a+t.width,f=s-o<0,h=l+o>(window.innerHeight||document.documentElement.clientHeight),y=a-i<0,v=c+i>(window.innerWidth||document.documentElement.clientWidth),b=f&&h&&y&&v;return h&&(r="top"),f&&(r="bottom"),y&&(n="right"),v&&(n="left"),b?["left","right","top","bottom"].reduce((z,B)=>e[z]>e[B]?z:B):y&&v?f?"bottom":h||s>l?"top":"bottom":f&&h?y?"right":v||a>c?"left":"right":`${r}-${n}`}function yd(){let e="";typeof navigator<"u"&&(e=navigator.userAgent.toLowerCase());let t=e.indexOf("msie ");return t>0?parseInt(e.substring(t+5,e.indexOf(".",t)),10):!1}var zs=(()=>{class e{rg;text;newValue=new O;inputChange(n){let r=n.target.value;if(this.rg===void 0)this.newValue.emit(r);else{let o=parseFloat(r);this.newValue.emit({v:o,rg:this.rg})}}static \u0275fac=function(r){return new(r||e)};static \u0275dir=ne({type:e,selectors:[["","text",""]],hostBindings:function(r,o){r&1&&_("input",function(s){return o.inputChange(s)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}})}return e})(),$s=(()=>{class e{elRef;listenerMove;listenerStop;rgX;rgY;slider;dragEnd=new O;dragStart=new O;newValue=new O;mouseDown(n){this.start(n)}touchStart(n){this.start(n)}constructor(n){this.elRef=n,this.listenerMove=r=>this.move(r),this.listenerStop=()=>this.stop()}move(n){n.preventDefault(),this.setCursor(n)}start(n){this.setCursor(n),n.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(n){let r=this.elRef.nativeElement.getBoundingClientRect();return(n.pageX!==void 0?n.pageX:n.touches[0].pageX)-r.left-window.pageXOffset}getY(n){let r=this.elRef.nativeElement.getBoundingClientRect();return(n.pageY!==void 0?n.pageY:n.touches[0].pageY)-r.top-window.pageYOffset}setCursor(n){let r=this.elRef.nativeElement.offsetWidth,o=this.elRef.nativeElement.offsetHeight,i=Math.max(0,Math.min(this.getX(n),r)),s=Math.max(0,Math.min(this.getY(n),o));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:i/r,v:1-s/o,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:s/o,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:i/r,rgX:this.rgX})}static \u0275fac=function(r){return new(r||e)(M(se))};static \u0275dir=ne({type:e,selectors:[["","slider",""]],hostBindings:function(r,o){r&1&&_("mousedown",function(s){return o.mouseDown(s)})("touchstart",function(s){return o.touchStart(s)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}})}return e})(),Nn=class{h;s;v;a;constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}},Pn=class{h;s;v;a;constructor(t,n,r,o){this.h=t,this.s=n,this.v=r,this.a=o}};var Mt=(()=>{class e{active=null;setActive(n){this.active&&this.active!==n&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=n}hsva2hsla(n){let r=n.h,o=n.s,i=n.v,s=n.a;if(i===0)return new De(r,0,0,s);if(o===0&&i===1)return new De(r,1,1,s);{let a=i*(2-o)/2;return new De(r,i*o/(1-Math.abs(2*a-1)),a,s)}}hsla2hsva(n){let r=Math.min(n.h,1),o=Math.min(n.s,1),i=Math.min(n.l,1),s=Math.min(n.a,1);if(i===0)return new Ye(r,0,0,s);{let a=i+o*(1-Math.abs(2*i-1))/2;return new Ye(r,2*(a-i)/a,a,s)}}hsvaToRgba(n){let r,o,i,s=n.h,a=n.s,l=n.v,c=n.a,f=Math.floor(s*6),h=s*6-f,y=l*(1-a),v=l*(1-h*a),b=l*(1-(1-h)*a);switch(f%6){case 0:r=l,o=b,i=y;break;case 1:r=v,o=l,i=y;break;case 2:r=y,o=l,i=b;break;case 3:r=y,o=v,i=l;break;case 4:r=b,o=y,i=l;break;case 5:r=l,o=y,i=v;break;default:r=0,o=0,i=0}return new ue(r,o,i,c)}cmykToRgb(n){let r=(1-n.c)*(1-n.k),o=(1-n.m)*(1-n.k),i=(1-n.y)*(1-n.k);return new ue(r,o,i,n.a)}rgbaToCmyk(n){let r=1-Math.max(n.r,n.g,n.b);if(r===1)return new ge(0,0,0,1,n.a);{let o=(1-n.r-r)/(1-r),i=(1-n.g-r)/(1-r),s=(1-n.b-r)/(1-r);return new ge(o,i,s,r,n.a)}}rgbaToHsva(n){let r,o,i=Math.min(n.r,1),s=Math.min(n.g,1),a=Math.min(n.b,1),l=Math.min(n.a,1),c=Math.max(i,s,a),f=Math.min(i,s,a),h=c,y=c-f;if(o=c===0?0:y/c,c===f)r=0;else{switch(c){case i:r=(s-a)/y+(s=n.cpMaxPresetColorsLength),C(),Jt(" ",n.cpAddColorButtonText," ")}}function Qy(e,t){e&1&&w(0,"div",33)}function Xy(e,t){if(e&1){let n=Y();d(0,"input",39),_("keyup.enter",function(o){g(n);let i=E(2);return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E(2);return m(i.onAlphaInput(o))}),u()}if(e&2){let n=E(2);D("rg",1)("value",n.cmykText==null?null:n.cmykText.a)}}function Jy(e,t){e&1&&(d(0,"div"),p(1,"A"),u())}function e0(e,t){if(e&1){let n=Y();d(0,"div",34)(1,"div",35)(2,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onCyanInput(o))}),u(),d(3,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onMagentaInput(o))}),u(),d(4,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onYellowInput(o))}),u(),d(5,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onBlackInput(o))}),u(),U(6,Xy,1,2,"input",37),u(),d(7,"div",35)(8,"div"),p(9,"C"),u(),d(10,"div"),p(11,"M"),u(),d(12,"div"),p(13,"Y"),u(),d(14,"div"),p(15,"K"),u(),U(16,Jy,2,0,"div",38),u()()}if(e&2){let n=E();I("display",n.format!==3?"none":"block"),C(2),D("rg",100)("value",n.cmykText==null?null:n.cmykText.c),C(),D("rg",100)("value",n.cmykText==null?null:n.cmykText.m),C(),D("rg",100)("value",n.cmykText==null?null:n.cmykText.y),C(),D("rg",100)("value",n.cmykText==null?null:n.cmykText.k),C(),D("ngIf",n.cpAlphaChannel!=="disabled"),C(10),D("ngIf",n.cpAlphaChannel!=="disabled")}}function t0(e,t){if(e&1){let n=Y();d(0,"input",39),_("keyup.enter",function(o){g(n);let i=E(2);return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E(2);return m(i.onAlphaInput(o))}),u()}if(e&2){let n=E(2);D("rg",1)("value",n.hslaText==null?null:n.hslaText.a)}}function n0(e,t){e&1&&(d(0,"div"),p(1,"A"),u())}function r0(e,t){if(e&1){let n=Y();d(0,"div",40)(1,"div",35)(2,"input",41),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onHueInput(o))}),u(),d(3,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onSaturationInput(o))}),u(),d(4,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onLightnessInput(o))}),u(),U(5,t0,1,2,"input",37),u(),d(6,"div",35)(7,"div"),p(8,"H"),u(),d(9,"div"),p(10,"S"),u(),d(11,"div"),p(12,"L"),u(),U(13,n0,2,0,"div",38),u()()}if(e&2){let n=E();I("display",n.format!==2?"none":"block"),C(2),D("rg",360)("value",n.hslaText==null?null:n.hslaText.h),C(),D("rg",100)("value",n.hslaText==null?null:n.hslaText.s),C(),D("rg",100)("value",n.hslaText==null?null:n.hslaText.l),C(),D("ngIf",n.cpAlphaChannel!=="disabled"),C(8),D("ngIf",n.cpAlphaChannel!=="disabled")}}function o0(e,t){if(e&1){let n=Y();d(0,"input",39),_("keyup.enter",function(o){g(n);let i=E(2);return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E(2);return m(i.onAlphaInput(o))}),u()}if(e&2){let n=E(2);D("rg",1)("value",n.rgbaText==null?null:n.rgbaText.a)}}function i0(e,t){e&1&&(d(0,"div"),p(1,"A"),u())}function s0(e,t){if(e&1){let n=Y();d(0,"div",42)(1,"div",35)(2,"input",43),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onRedInput(o))}),u(),d(3,"input",43),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onGreenInput(o))}),u(),d(4,"input",43),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onBlueInput(o))}),u(),U(5,o0,1,2,"input",37),u(),d(6,"div",35)(7,"div"),p(8,"R"),u(),d(9,"div"),p(10,"G"),u(),d(11,"div"),p(12,"B"),u(),U(13,i0,2,0,"div",38),u()()}if(e&2){let n=E();I("display",n.format!==1?"none":"block"),C(2),D("rg",255)("value",n.rgbaText==null?null:n.rgbaText.r),C(),D("rg",255)("value",n.rgbaText==null?null:n.rgbaText.g),C(),D("rg",255)("value",n.rgbaText==null?null:n.rgbaText.b),C(),D("ngIf",n.cpAlphaChannel!=="disabled"),C(8),D("ngIf",n.cpAlphaChannel!=="disabled")}}function a0(e,t){if(e&1){let n=Y();d(0,"input",39),_("keyup.enter",function(o){g(n);let i=E(2);return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E(2);return m(i.onAlphaInput(o))}),u()}if(e&2){let n=E(2);D("rg",1)("value",n.hexAlpha)}}function l0(e,t){e&1&&(d(0,"div"),p(1,"A"),u())}function c0(e,t){if(e&1){let n=Y();d(0,"div",44)(1,"div",35)(2,"input",45),_("blur",function(){g(n);let o=E();return m(o.onHexInput(null))})("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onHexInput(o))}),u(),U(3,a0,1,2,"input",37),u(),d(4,"div",35)(5,"div"),p(6,"Hex"),u(),U(7,l0,2,0,"div",38),u()()}if(e&2){let n=E();I("display",n.format!==0?"none":"block"),Xt("hex-alpha",n.cpAlphaChannel==="forced"),C(2),D("value",n.hexText),C(),D("ngIf",n.cpAlphaChannel==="forced"),C(4),D("ngIf",n.cpAlphaChannel==="forced")}}function u0(e,t){if(e&1){let n=Y();d(0,"input",39),_("keyup.enter",function(o){g(n);let i=E(2);return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E(2);return m(i.onAlphaInput(o))}),u()}if(e&2){let n=E(2);D("rg",1)("value",n.hslaText==null?null:n.hslaText.a)}}function d0(e,t){if(e&1){let n=Y();d(0,"div",46)(1,"div",35)(2,"input",36),_("keyup.enter",function(o){g(n);let i=E();return m(i.onAcceptColor(o))})("newValue",function(o){g(n);let i=E();return m(i.onValueInput(o))}),u(),U(3,u0,1,2,"input",37),u(),d(4,"div",35)(5,"div"),p(6,"V"),u(),d(7,"div"),p(8,"A"),u()()()}if(e&2){let n=E();C(2),D("rg",100)("value",n.hslaText==null?null:n.hslaText.l),C(),D("ngIf",n.cpAlphaChannel!=="disabled")}}function f0(e,t){if(e&1){let n=Y();d(0,"div",47)(1,"span",48),_("click",function(){g(n);let o=E();return m(o.onFormatToggle(-1))}),u(),d(2,"span",48),_("click",function(){g(n);let o=E();return m(o.onFormatToggle(1))}),u()()}}function p0(e,t){if(e&1){let n=Y();d(0,"span",55),_("click",function(o){g(n);let i=E().$implicit,s=E(3);return m(s.onRemovePresetColor(o,i))}),u()}if(e&2){let n=E(4);It(n.cpRemoveColorButtonClass)}}function h0(e,t){if(e&1){let n=Y();d(0,"div",53),_("click",function(){let o=g(n).$implicit,i=E(3);return m(i.setColorFromString(o))}),U(1,p0,1,3,"span",54),u()}if(e&2){let n=t.$implicit,r=E(3);I("background-color",n),C(),D("ngIf",r.cpAddColorButton)}}function g0(e,t){if(e&1&&(d(0,"div"),U(1,h0,2,3,"div",52),u()),e&2){let n=E(2);It(n.cpPresetColorsClass),C(),D("ngForOf",n.cpPresetColors)}}function m0(e,t){if(e&1&&(d(0,"div"),p(1),u()),e&2){let n=E(2);It(n.cpPresetEmptyMessageClass),C(),it(n.cpPresetEmptyMessage)}}function v0(e,t){if(e&1&&(d(0,"div",49),w(1,"hr"),d(2,"div",50),p(3),u(),U(4,g0,2,4,"div",51)(5,m0,2,4,"div",51),u()),e&2){let n=E();C(3),it(n.cpPresetLabel),C(),D("ngIf",n.cpPresetColors==null?null:n.cpPresetColors.length),C(),D("ngIf",!(n.cpPresetColors!=null&&n.cpPresetColors.length)&&n.cpAddColorButton)}}function y0(e,t){if(e&1){let n=Y();d(0,"button",58),_("click",function(o){g(n);let i=E(2);return m(i.onCancelColor(o))}),p(1),u()}if(e&2){let n=E(2);It(n.cpCancelButtonClass),C(),it(n.cpCancelButtonText)}}function C0(e,t){if(e&1){let n=Y();d(0,"button",58),_("click",function(o){g(n);let i=E(2);return m(i.onAcceptColor(o))}),p(1),u()}if(e&2){let n=E(2);It(n.cpOKButtonClass),C(),it(n.cpOKButtonText)}}function D0(e,t){if(e&1&&(d(0,"div",56),U(1,y0,2,4,"button",57)(2,C0,2,4,"button",57),u()),e&2){let n=E();C(),D("ngIf",n.cpCancelButton),C(),D("ngIf",n.cpOKButton)}}function w0(e,t){e&1&&ys(0)}function E0(e,t){if(e&1&&(d(0,"div",59),U(1,w0,1,0,"ng-container",60),u()),e&2){let n=E();C(),D("ngTemplateOutlet",n.cpExtraTemplate)}}var Dd=typeof window<"u"&&"ontouchstart"in window,Ys=(()=>{class e{ngZone;elRef;cdRef;document;platformId;service;isIE10=!1;cmyk;hsva;width;height;cmykColor;outputColor;initialColor;fallbackColor;listenerResize;listenerMouseDown;directiveInstance;sliderH;sliderDimMax;directiveElementRef;dialogArrowSize=10;dialogArrowOffset=15;dialogInputFields=[re.HEX,re.RGBA,re.HSLA,re.CMYK];useRootViewContainer=!1;show;hidden;top;left;position;format;slider;hexText;hexAlpha;cmykText;hslaText;rgbaText;arrowTop;selectedColor;hueSliderColor;alphaSliderColor;cpWidth;cpHeight;cpColorMode;cpCmykEnabled;cpAlphaChannel;cpOutputFormat;cpDisableInput;cpDialogDisplay;cpIgnoredElements;cpSaveClickOutside;cpCloseClickOutside;cpPosition;cpUsePosition;cpPositionOffset;cpOKButton;cpOKButtonText;cpOKButtonClass;cpCancelButton;cpCancelButtonText;cpCancelButtonClass;cpEyeDropper;eyeDropperSupported;cpPresetLabel;cpPresetColors;cpPresetColorsClass;cpMaxPresetColorsLength;cpPresetEmptyMessage;cpPresetEmptyMessageClass;cpAddColorButton;cpAddColorButtonText;cpAddColorButtonClass;cpRemoveColorButtonClass;cpArrowPosition;cpTriggerElement;cpExtraTemplate;dialogElement;hueSlider;alphaSlider;handleEsc(n){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(n)}handleEnter(n){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(n)}constructor(n,r,o,i,s,a){this.ngZone=n,this.elRef=r,this.cdRef=o,this.document=i,this.platformId=s,this.service=a,this.eyeDropperSupported=Bu(this.platformId)&&"EyeDropper"in this.document.defaultView}ngOnInit(){this.slider=new Nn(0,0,0,0);let n=this.hueSlider.nativeElement.offsetWidth||140,r=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new Pn(n,this.cpWidth,130,r),this.cpCmykEnabled?this.format=re.CMYK:this.cpOutputFormat==="rgba"?this.format=re.RGBA:this.cpOutputFormat==="hsla"?this.format=re.HSLA:this.format=re.HEX,this.listenerMouseDown=o=>{this.onMouseDown(o)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let n=this.hueSlider.nativeElement.offsetWidth||140,r=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new Pn(n,this.cpWidth,130,r),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(n,r=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(n),this.setColorFromString(n,r),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(n,r,o,i,s,a,l,c,f,h,y,v,b,P,z,B,Ue,te,we,Ke,de,Ze,rn,co,uo,bd,_d,Id,xd,Md,Ad,Sd,Td,kd,Nd,Pd,Od,Fd){this.setInitialColor(o),this.setColorMode(c),this.isIE10=yd()===10,this.directiveInstance=n,this.directiveElementRef=r,this.cpDisableInput=v,this.cpCmykEnabled=f,this.cpAlphaChannel=h,this.cpOutputFormat=y,this.cpDialogDisplay=a,this.cpIgnoredElements=b,this.cpSaveClickOutside=P,this.cpCloseClickOutside=z,this.useRootViewContainer=B,this.width=this.cpWidth=parseInt(i,10),this.height=this.cpHeight=parseInt(s,10),this.cpPosition=Ue,this.cpPositionOffset=parseInt(te,10),this.cpOKButton=bd,this.cpOKButtonText=Id,this.cpOKButtonClass=_d,this.cpCancelButton=xd,this.cpCancelButtonText=Ad,this.cpCancelButtonClass=Md,this.cpEyeDropper=Pd,this.fallbackColor=l||"#fff",this.setPresetConfig(Ke,de),this.cpPresetColorsClass=Ze,this.cpMaxPresetColorsLength=rn,this.cpPresetEmptyMessage=co,this.cpPresetEmptyMessageClass=uo,this.cpAddColorButton=Sd,this.cpAddColorButtonText=kd,this.cpAddColorButtonClass=Td,this.cpRemoveColorButtonClass=Nd,this.cpTriggerElement=Od,this.cpExtraTemplate=Fd,we||(this.dialogArrowOffset=0),a==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),y==="hex"&&h!=="always"&&h!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(n){switch(n.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(n){this.initialColor=n}setPresetConfig(n,r){this.cpPresetLabel=n,this.cpPresetColors=r}setColorFromString(n,r=!0,o=!0){let i;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(i=this.service.stringToHsva(n,!0),!i&&!this.hsva&&(i=this.service.stringToHsva(n,!1))):i=this.service.stringToHsva(n,!1),!i&&!this.hsva&&(i=this.service.stringToHsva(this.fallbackColor,!1)),i&&(this.hsva=i,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(r,o))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(n){this.directiveInstance.sliderDragEnd({slider:n,color:this.outputColor})}onDragStart(n){this.directiveInstance.sliderDragStart({slider:n,color:this.outputColor})}onMouseDown(n){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&n.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,n.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,n.target)&&this.cpIgnoredElements.filter(r=>r===n.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(n){n.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(n){this.hsva=null,n.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(r=>{this.setColorFromString(r.sRGBHex,!0)})}onFormatToggle(n){let r=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),o=((this.dialogInputFields.indexOf(this.format)+n)%r+r)%r;this.format=this.dialogInputFields[o]}onColorChange(n){this.hsva.s=n.s/n.rgX,this.hsva.v=n.v/n.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(n){this.hsva.h=n.v/n.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(n){this.hsva.v=n.v/n.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(n){this.hsva.a=n.v/n.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(n){if(n===null)this.updateColorPicker();else{n&&n[0]!=="#"&&(n="#"+n);let r=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(r=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let o=r.test(n);o&&(n.length<5&&(n="#"+n.substring(1).split("").map(i=>i+i).join("")),this.cpAlphaChannel==="forced"&&(n+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(n,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid:o,value:n,color:this.outputColor})}}onRedInput(n){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.r=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid:o,value:r.r,color:this.outputColor})}onBlueInput(n){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.b=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid:o,value:r.b,color:this.outputColor})}onGreenInput(n){let r=this.service.hsvaToRgba(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.g=n.v/n.rg,this.hsva=this.service.rgbaToHsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid:o,value:r.g,color:this.outputColor})}onHueInput(n){let r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.h=n.v/n.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid:r,value:this.hsva.h,color:this.outputColor})}onValueInput(n){let r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.v=n.v/n.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid:r,value:this.hsva.v,color:this.outputColor})}onAlphaInput(n){let r=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;r&&(this.hsva.a=n.v/n.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid:r,value:this.hsva.a,color:this.outputColor})}onLightnessInput(n){let r=this.service.hsva2hsla(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.l=n.v/n.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid:o,value:r.l,color:this.outputColor})}onSaturationInput(n){let r=this.service.hsva2hsla(this.hsva),o=!isNaN(n.v)&&n.v>=0&&n.v<=n.rg;o&&(r.s=n.v/n.rg,this.hsva=this.service.hsla2hsva(r),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid:o,value:r.s,color:this.outputColor})}onCyanInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.c=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.m=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.y=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(n){!isNaN(n.v)&&n.v>=0&&n.v<=n.rg&&(this.cmyk.k=n.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(n,r){n.stopPropagation(),this.cpPresetColors.filter(o=>o===r).length||(this.cpPresetColors=this.cpPresetColors.concat(r),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(n,r){n.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(o=>o!==r),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{Dd?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(Dd?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(n=!0,r=!0,o=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let i,s,a,l=this.outputColor;if(s=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(o?(a=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(a)):(a=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(a))),a=this.service.denormalizeRGBA(a),this.sliderH=this.hsva.h):a=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),i=this.service.denormalizeRGBA(this.service.hsvaToRgba(new Ye(this.sliderH||this.hsva.h,1,1,1))),r){this.hslaText=new De(Math.round(s.h*360),Math.round(s.s*100),Math.round(s.l*100),Math.round(s.a*100)/100),this.rgbaText=new ue(a.r,a.g,a.b,Math.round(a.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new ge(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let c=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(a,c),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==re.RGBA&&this.format!==re.CMYK&&this.format!==re.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?re.RGBA:re.HEX),this.hueSliderColor="rgb("+i.r+","+i.g+","+i.b+")",this.alphaSliderColor="rgb("+a.r+","+a.g+","+a.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==re.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let c=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${c})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new Nn((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),n&&l!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let n="static",r="",o,i=null,s=null,a=this.directiveElementRef.nativeElement.parentNode,l=this.dialogElement.nativeElement.offsetHeight;for(;a!==null&&a.tagName!=="HTML";){if(o=window.getComputedStyle(a),n=o.getPropertyValue("position"),r=o.getPropertyValue("transform"),n!=="static"&&i===null&&(i=a),r&&r!=="none"&&s===null&&(s=a),n==="fixed"){i=s;break}a=a.parentNode}let c=this.createDialogBox(this.directiveElementRef.nativeElement,n!=="fixed");if(this.useRootViewContainer||n==="fixed"&&(!i||i instanceof HTMLUnknownElement))this.top=c.top,this.left=c.left;else{i===null&&(i=a);let B=this.createDialogBox(i,n!=="fixed");this.top=c.top-B.top,this.left=c.left-B.left}n==="fixed"&&(this.position="fixed");let f=this.cpPosition,h=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let B=this.cpTriggerElement.nativeElement.getBoundingClientRect();f=vd(h,B)}switch(this.arrowTop=f==="top"?l-1:void 0,this.cpArrowPosition=void 0,f){case"top":this.top-=l+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset;break;case"bottom":this.top+=c.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*c.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=l-c.height+c.height*this.cpPositionOffset/100,this.left+=c.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=c.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=c.width+this.dialogArrowSize-2;break}let y=window.innerHeight,v=window.innerWidth,b=this.elRef.nativeElement.getBoundingClientRect();this.top+h.height>y&&(this.top=y-h.height,this.cpArrowPosition=b.x/2-20),this.left+h.width>v&&(this.left=v-h.width,this.cpArrowPosition=b.x/2-20),this.cpUsePosition=f}}isDescendant(n,r){let o=r.parentNode;for(;o!==null;){if(o===n)return!0;o=o.parentNode}return!1}createDialogBox(n,r){let{top:o,left:i}=n.getBoundingClientRect();return{top:o+(r?window.pageYOffset:0),left:i+(r?window.pageXOffset:0),width:n.offsetWidth,height:n.offsetHeight}}static \u0275fac=function(r){return new(r||e)(M($),M(se),M(tn),M(He),M(ot),M(Mt))};static \u0275cmp=kr({type:e,selectors:[["color-picker"]],viewQuery:function(r,o){if(r&1&&(zr(Gy,7),zr(qy,7),zr(zy,7)),r&2){let i;$r(i=Yr())&&(o.dialogElement=i.first),$r(i=Yr())&&(o.hueSlider=i.first),$r(i=Yr())&&(o.alphaSlider=i.first)}},hostBindings:function(r,o){r&1&&_("keyup.esc",function(s){return o.handleEsc(s)},!1,os)("keyup.enter",function(s){return o.handleEnter(s)},!1,os)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(r,o){if(r&1){let i=Y();d(0,"div",4,0),_("click",function(a){return g(i),m(a.stopPropagation())}),U(2,$y,1,7,"div",5)(3,Yy,2,8,"div",6),d(4,"div",7)(5,"div",8),w(6,"div",9),d(7,"div",10),_("click",function(){return g(i),m(o.eyeDropperSupported&&o.cpEyeDropper&&o.onEyeDropper())}),U(8,Ky,3,0,"svg",11),u(),U(9,Zy,2,5,"button",12),u(),d(10,"div",13),U(11,Qy,1,0,"div",14),d(12,"div",15,1),_("newValue",function(a){return g(i),m(o.onHueChange(a))})("dragStart",function(){return g(i),m(o.onDragStart("hue"))})("dragEnd",function(){return g(i),m(o.onDragEnd("hue"))}),w(14,"div",16),u(),d(15,"div",17,2),_("newValue",function(a){return g(i),m(o.onValueChange(a))})("dragStart",function(){return g(i),m(o.onDragStart("value"))})("dragEnd",function(){return g(i),m(o.onDragEnd("value"))}),w(17,"div",16),u(),d(18,"div",18,3),_("newValue",function(a){return g(i),m(o.onAlphaChange(a))})("dragStart",function(){return g(i),m(o.onDragStart("alpha"))})("dragEnd",function(){return g(i),m(o.onDragEnd("alpha"))}),w(20,"div",16),u()()(),U(21,e0,17,12,"div",19)(22,r0,14,10,"div",20)(23,s0,14,10,"div",21)(24,c0,8,7,"div",22)(25,d0,9,3,"div",23)(26,f0,3,0,"div",24)(27,v0,6,3,"div",25)(28,D0,3,2,"div",26)(29,E0,2,1,"div",27),u()}r&2&&(I("display",o.show?"block":"none")("visibility",o.hidden?"hidden":"visible")("top",o.top,"px")("left",o.left,"px")("position",o.position)("height",o.cpHeight,"px")("width",o.cpWidth,"px"),Xt("open",o.show),C(2),D("ngIf",o.cpDialogDisplay==="popup"),C(),D("ngIf",(o.cpColorMode||1)===1),C(4),I("background-color",o.selectedColor)("cursor",o.eyeDropperSupported&&o.cpEyeDropper?"pointer":null),C(),D("ngIf",o.eyeDropperSupported&&o.cpEyeDropper),C(),D("ngIf",o.cpAddColorButton),C(2),D("ngIf",o.cpAlphaChannel==="disabled"),C(),I("display",(o.cpColorMode||1)===1?"block":"none"),D("rgX",1),C(2),I("left",o.slider==null?null:o.slider.h,"px"),C(),I("display",(o.cpColorMode||1)===2?"block":"none"),D("rgX",1),C(2),I("right",o.slider==null?null:o.slider.v,"px"),C(),I("display",o.cpAlphaChannel==="disabled"?"none":"block")("background-color",o.alphaSliderColor),D("rgX",1),C(2),I("left",o.slider==null?null:o.slider.a,"px"),C(),D("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),D("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),D("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),D("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),D("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===2),C(),D("ngIf",!o.cpDisableInput&&(o.cpColorMode||1)===1),C(),D("ngIf",(o.cpPresetColors==null?null:o.cpPresetColors.length)||o.cpAddColorButton),C(),D("ngIf",o.cpOKButton||o.cpCancelButton),C(),D("ngIf",o.cpExtraTemplate))},dependencies:[Vu,Lu,ju,zs,$s],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.color-picker *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;-webkit-flex:1;-ms-flex:1;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn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h2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion} +`],encapsulation:2})}return e})();var b0=!1,Ks=(()=>{class e{injector;cfr;appRef;vcRef;elRef;_service;dialog;dialogCreated=!1;ignoreChanges=!1;cmpRef;viewAttachedToAppRef=!1;colorPicker;cpWidth="230px";cpHeight="auto";cpToggle=!1;cpDisabled=!1;cpIgnoredElements=[];cpFallbackColor="";cpColorMode="color";cpCmykEnabled=!1;cpOutputFormat="auto";cpAlphaChannel="enabled";cpDisableInput=!1;cpDialogDisplay="popup";cpSaveClickOutside=!0;cpCloseClickOutside=!0;cpUseRootViewContainer=!1;cpPosition="auto";cpPositionOffset="0%";cpPositionRelativeToArrow=!1;cpOKButton=!1;cpOKButtonText="OK";cpOKButtonClass="cp-ok-button-class";cpCancelButton=!1;cpCancelButtonText="Cancel";cpCancelButtonClass="cp-cancel-button-class";cpEyeDropper=!1;cpPresetLabel="Preset colors";cpPresetColors;cpPresetColorsClass="cp-preset-colors-class";cpMaxPresetColorsLength=6;cpPresetEmptyMessage="No colors added";cpPresetEmptyMessageClass="preset-empty-message";cpAddColorButton=!1;cpAddColorButtonText="Add color";cpAddColorButtonClass="cp-add-color-button-class";cpRemoveColorButtonClass="cp-remove-color-button-class";cpArrowPosition=0;cpExtraTemplate;cpInputChange=new O(!0);cpToggleChange=new O(!0);cpSliderChange=new O(!0);cpSliderDragEnd=new O(!0);cpSliderDragStart=new O(!0);colorPickerOpen=new O(!0);colorPickerClose=new O(!0);colorPickerCancel=new O(!0);colorPickerSelect=new O(!0);colorPickerChange=new O(!1);cpCmykColorChange=new O(!0);cpPresetColorsChange=new O(!0);handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(n){this.inputChange(n)}constructor(n,r,o,i,s,a){this.injector=n,this.cfr=r,this.appRef=o,this.vcRef=i,this.elRef=s,this._service=a}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(n){n.cpToggle&&!this.cpDisabled&&(n.cpToggle.currentValue?this.openDialog():n.cpToggle.currentValue||this.closeDialog()),n.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(n.colorPicker.currentValue),this.dialog.setColorFromString(n.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(n.cpPresetLabel||n.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&(this.cmpRef.instance.cpAlphaChannel=this.cpAlphaChannel,this.dialog.openDialog(this.colorPicker));else{let n=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let o=this.appRef.componentTypes[0],i=this.injector.get(o,ye.NULL);i!==ye.NULL?(n=i.vcRef||i.viewContainerRef||this.vcRef,b0&&n===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let r=this.cfr.resolveComponentFactory(Ys);if(this.viewAttachedToAppRef)this.cmpRef=r.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let o=ye.create({providers:[],parent:n.injector});this.cmpRef=n.createComponent(r,0,o,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==n&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(n){this.cpCmykColorChange.emit(n)}stateChanged(n){this.cpToggleChange.emit(n),n?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(n,r=!0){this.ignoreChanges=r,this.colorPickerChange.emit(n)}colorSelected(n){this.colorPickerSelect.emit(n)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let n=this.elRef.nativeElement,r=this.cpIgnoredElements.filter(o=>o===n);!this.cpDisabled&&!r.length&&(typeof document<"u"&&n===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(n){this.dialog?this.dialog.setColorFromString(n.target.value,!0):(this.colorPicker=n.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(n){this.cpInputChange.emit(n)}sliderChanged(n){this.cpSliderChange.emit(n)}sliderDragEnd(n){this.cpSliderDragEnd.emit(n)}sliderDragStart(n){this.cpSliderDragStart.emit(n)}presetColorsChanged(n){this.cpPresetColorsChange.emit(n)}static \u0275fac=function(r){return new(r||e)(M(ye),M(En),M(en),M(Te),M(se),M(Mt))};static \u0275dir=ne({type:e,selectors:[["","colorPicker",""]],hostBindings:function(r,o){r&1&&_("click",function(){return o.handleClick()})("focus",function(){return o.handleFocus()})("input",function(s){return o.handleInput(s)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[Et]})}return e})();var Zs=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ve({type:e});static \u0275inj=me({imports:[no]})}return e})();var x0=()=>["#fff","#000","#2889e9","#e920e9","#fff500","rgb(236,64,64)"],M0=()=>["#fff","#2889e9"],A0=(e,t)=>[e,t];function S0(e,t){e&1&&(d(0,"div",38)(1,"h3"),p(2,"Custom template content here."),u()())}var wd=(()=>{class e{vcRef;cpService;toggle=!1;rgbaText="rgba(165, 26, 214, 0.2)";arrayColors={color1:"#2883e9",color2:"#e920e9",color3:"rgb(255,245,0)",color4:"rgb(236,64,64)",color5:"rgba(45,208,45,1)"};selectedColor="color1";color1="#2889e9";color2="#e920e9";color3="#fff500";color4="rgb(236,64,64)";color5="rgba(45,208,45,1)";color6="#1973c0";color7="#f200bd";color8="#a8ff00";color9="#278ce2";color10="#0a6211";color11="#f2ff00";color12="#f200bd";color13="rgba(0,255,0,0.5)";color14="rgb(0,255,255)";color15="rgb(255,0,0)";color16="#a51ad633";color17="#666666";color18="#fa8072";color19="#f88888";color20="#ff0000";cmykValue="";cmykColor=new ge(0,0,0,0);alphaEnabled=!1;constructor(n,r){this.vcRef=n,this.cpService=r}onEventLog(n,r){console.log(n,r)}onChangeColor(n){console.log("Color changed:",n)}onChangeColorCmyk(n){let r=this.cpService.stringToHsva(n);if(r){let o=this.cpService.hsvaToRgba(r);return this.cpService.rgbaToCmyk(o)}return new ge(0,0,0,0)}onChangeColorHex8(n){let r=this.cpService.stringToHsva(n,!0);return r?this.cpService.outputFormat(r,"rgba",null):""}static \u0275fac=function(r){return new(r||e)(M(Te),M(Mt))};static \u0275cmp=kr({type:e,selectors:[["my-app"]],decls:556,vars:153,consts:[["ignoredInput",""],["ignoredButton",""],["customTemplate",""],[1,"container"],[1,"row"],[1,"col-md-5"],[3,"colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd","colorPicker"],[1,"col-md-7"],[3,"colorPickerChange","colorPickerOpen","colorPickerClose","cpInputChange","cpSliderDragStart","cpSliderDragEnd","colorPicker","cpColorMode"],[3,"colorPickerChange","value","colorPicker"],[3,"colorPickerChange","value","cpOutputFormat","colorPicker"],[3,"colorPickerChange","value","cpPosition","colorPicker"],[1,"change-me",3,"colorPickerChange","cpPosition","cpPositionOffset","cpPositionRelativeToArrow","colorPicker"],[3,"colorPickerChange","value","cpCancelButton","colorPicker"],[3,"colorPickerChange","value","cpCancelButton","cpCancelButtonClass","colorPicker"],[3,"colorPickerChange","value","cpOKButton","cpSaveClickOutside","cpOKButtonClass","colorPicker"],[3,"colorPickerChange","value","cpEyeDropper","cpSaveClickOutside","cpOKButtonClass","colorPicker"],[3,"cpCmykColorChange","colorPickerChange","colorPicker","cpCmykEnabled"],[1,"clearfix"],[1,"cmyk-text",2,"color","rgb(0,255,255)"],[1,"cmyk-text",2,"color","rgb(255,0,255)"],[1,"cmyk-text",2,"color","rgb(255,255,0)"],[1,"cmyk-text"],[3,"colorPickerChange","cpPresetColors","colorPicker"],[3,"colorPickerChange","cpAlphaChannel","cpOutputFormat","cpPresetColors","cpAddColorButton","colorPicker"],[3,"cpToggleChange","colorPickerChange","cpFallbackColor","cpIgnoredElements","cpToggle","colorPicker"],[1,"btn","btn-primary",3,"click"],["cpPosition","auto",3,"colorPickerChange","value","colorPicker"],[3,"colorPickerChange","value","cpAlphaChannel","cpOutputFormat","colorPicker"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"row",2,"height","320px"],[1,"col-md-3"],[3,"colorPickerChange","cpToggle","cpDialogDisplay","cpCancelButton","cpCancelButtonClass","colorPicker"],[1,"col-md-2"],[1,"color-box",3,"click"],["cpAlphaChannel","disabled",3,"colorPickerClose","colorPickerOpen","cpInputChange","cpSliderDragEnd","cpSliderDragStart","keyup","colorPicker","cpExtraTemplate"],[1,"col-md-12"],[1,"table"],[1,""]],template:function(r,o){if(r&1){let i=Y();d(0,"div",3),w(1,"br"),d(2,"h1"),p(3,"Angular Color Picker Directive"),u(),d(4,"h4"),p(5,"A Color Picker Directive for Angular with no dependencies."),u(),d(6,"h4")(7,"b"),p(8,"based on angular2-color-picker by Alberto Pujante"),u()(),w(9,"br")(10,"hr")(11,"br"),d(12,"div",4)(13,"div",5)(14,"input",6),q("colorPickerChange",function(a){return g(i),G(o.color1,a)||(o.color1=a),m(a)}),_("colorPickerOpen",function(a){return g(i),m(o.onEventLog("colorPickerOpen",a))})("colorPickerClose",function(a){return g(i),m(o.onEventLog("colorPickerClose",a))})("cpInputChange",function(a){return g(i),m(o.onEventLog("cpInputChange",a))})("cpSliderDragStart",function(a){return g(i),m(o.onEventLog("cpSliderDragStart",a))})("cpSliderDragEnd",function(a){return g(i),m(o.onEventLog("cpSliderDragEnd",a))}),u()(),d(15,"div",7)(16,"p"),p(17,"Usage:"),u(),d(18,"pre"),p(19,` - `),u(),d(20,"p"),f(21,"Or:"),u(),d(22,"pre"),f(23,` - `),u()()(),C(24,"hr"),d(25,"div",1)(26,"div",2)(27,"input",5),w("colorPickerChange",function(s){return o.color17=s})("colorPickerOpen",function(s){return o.onEventLog("colorPickerOpen",s)})("colorPickerClose",function(s){return o.onEventLog("colorPickerClose",s)})("cpInputChange",function(s){return o.onEventLog("cpInputChange",s)})("cpSliderDragStart",function(s){return o.onEventLog("cpSliderDragStart",s)})("cpSliderDragEnd",function(s){return o.onEventLog("cpSliderDragEnd",s)}),u()(),d(28,"div",4)(29,"p"),f(30,"Grayscale color mode:"),u(),d(31,"pre"),f(32,` - `),u()()(),C(33,"hr"),d(34,"div",1)(35,"div",2)(36,"input",6),w("colorPickerChange",function(s){return o.color2=s}),u()(),d(37,"div",4)(38,"p"),f(39,"Show the color in the input field:"),u(),d(40,"pre"),f(41,` - `),u()()(),C(42,"hr"),d(43,"div",1)(44,"div",2)(45,"input",7),w("colorPickerChange",function(s){return o.color3=s}),u(),C(46,"br")(47,"br"),d(48,"input",7),w("colorPickerChange",function(s){return o.color4=s}),u()(),d(49,"div",4)(50,"p"),f(51,"Output format:"),u(),d(52,"pre"),f(53,` - `),u()()(),C(54,"hr"),d(55,"div",1)(56,"div",2)(57,"input",8),w("colorPickerChange",function(s){return o.color5=s}),u()(),d(58,"div",4)(59,"p"),f(60,"Changing dialog position:"),u(),d(61,"pre"),f(62,` - `),u()()(),C(63,"hr"),d(64,"div",1)(65,"div",2)(66,"span",9),w("colorPickerChange",function(s){return o.color6=s}),f(67,"Change me!"),u()(),d(68,"div",4)(69,"p"),f(70,"You can introduce a offset of the color picker relative to the html element:"),u(),d(71,"pre"),f(72,`Change me! - `),u()()(),C(73,"hr"),d(74,"div",1)(75,"div",2)(76,"input",10),w("colorPickerChange",function(s){return o.color7=s}),u()(),d(77,"div",4)(78,"p"),f(79,"Show cancel button:"),u(),d(80,"pre"),f(81,` - `),u()()(),C(82,"hr"),d(83,"div",1)(84,"div",2)(85,"input",11),w("colorPickerChange",function(s){return o.color8=s}),u()(),d(86,"div",4)(87,"p"),f(88,"Change cancel button class, in this example we are using a bootstrap button:"),u(),d(89,"pre"),f(90,` - `),u()()(),C(91,"hr"),d(92,"div",1)(93,"div",2)(94,"input",12),w("colorPickerChange",function(s){return o.color9=s}),u()(),d(95,"div",4)(96,"p"),f(97,"Show OK button:"),u(),d(98,"pre"),f(99,` - `),u()()(),C(100,"hr"),d(101,"div",1)(102,"div",2)(103,"input",13),w("colorPickerChange",function(s){return o.color19=s}),u()(),d(104,"div",4)(105,"p"),f(106,"Enable Eye Dropper:"),u(),d(107,"p"),f(108,"You can open the eye dropper by clicking the colored circle."),u(),d(109,"pre"),f(110,` - `),u()()(),C(111,"hr"),d(112,"div",1)(113,"div",2)(114,"input",14),w("cpCmykColorChange",function(s){return o.cmykValue=s})("colorPickerChange",function(s){return o.cmykColor=o.onChangeColorCmyk(s),o.color10=s}),u(),C(115,"div",15),d(116,"div"),f(117),u(),d(118,"div")(119,"span",16),f(120,"C"),u(),d(121,"span",17),f(122,"M"),u()(),C(123,"div",15),d(124,"div")(125,"span",18),f(126,"Y"),u(),d(127,"span",19),f(128,"K"),u()(),C(129,"div",15),u(),d(130,"div",4)(131,"p"),f(132,"Change event color:"),u(),d(133,"pre"),f(134,``${o+1}) ${r.toString()}`).join(` M Y K - `),u()()(),C(135,"hr"),d(136,"div",1)(137,"div",2)(138,"input",20),w("colorPickerChange",function(s){return o.color11=s}),u()(),d(139,"div",4)(140,"p"),f(141,"With preset colors:"),u(),d(142,"pre"),f(143,` - `),u()()(),C(144,"hr"),d(145,"div",1)(146,"div",2)(147,"input",21),w("colorPickerChange",function(s){return o.color13=s}),u()(),d(148,"div",4)(149,"p"),f(150,"Add and remove preset colors:"),u(),d(151,"pre"),f(152,` - `),u()()(),C(153,"hr"),d(154,"div",1)(155,"div",2)(156,"input",22,23),w("cpToggleChange",function(s){return o.toggle=s})("colorPickerChange",function(s){return o.color12=s}),u(),C(158,"div",15),d(159,"button",24,25),w("click",function(){return o.toggle=!o.toggle}),f(161,"Toggle"),u(),C(162,"br")(163,"br"),d(164,"div")(165,"b"),f(166),u()()(),d(167,"div",4)(168,"p"),f(169,"Use cpToggle with cpIgnoredElements:"),u(),d(170,"pre"),f(171,` - `),u()()(),C(172,"hr"),d(173,"div",1)(174,"div",2)(175,"input",26),w("colorPickerChange",function(s){return o.color18=s}),u()(),d(176,"div",4)(177,"p"),f(178,"Auto positioning:"),u(),d(179,"pre"),f(180,` - `),u()()(),C(181,"hr"),d(182,"div",1)(183,"div",2)(184,"input",27),w("colorPickerChange",function(s){return o.color14=s}),u(),C(185,"br"),d(186,"input",27),w("colorPickerChange",function(s){return o.color13=s}),u(),C(187,"br"),d(188,"input",27),w("colorPickerChange",function(s){return o.rgbaText=o.onChangeColorHex8(s),o.color16=s}),u(),C(189,"br"),d(190,"input",27),w("colorPickerChange",function(s){return o.color15=s}),u()(),d(191,"div",4)(192,"p"),f(193,"Change alpha channel behaviour:"),u(),d(194,"pre"),f(195,``${o+1}) ${r.toString()}`).join(` [cpAlphaChannel]="'forced'" [cpOutputFormat]="'hex'" [(colorPicker)]="color"/> - `),u()()(),C(196,"hr"),d(197,"div",28)(198,"div",29)(199,"span",30),w("colorPickerChange",function(s){return o.arrayColors[o.selectedColor]=s}),u()(),d(200,"div",31)(201,"div",32),w("click",function(){return o.selectedColor="color1"}),u(),d(202,"div",32),w("click",function(){return o.selectedColor="color2"}),u(),d(203,"div",32),w("click",function(){return o.selectedColor="color3"}),u(),d(204,"div",32),w("click",function(){return o.selectedColor="color4"}),u(),d(205,"div",32),w("click",function(){return o.selectedColor="color5"}),u()(),d(206,"div",4)(207,"p"),f(208,"Show the dialog permanently: "),u(),d(209,"pre"),f(210,` + `),u()()(),w(201,"hr"),d(202,"div",30)(203,"div",31)(204,"span",32),q("colorPickerChange",function(a){return g(i),G(o.arrayColors[o.selectedColor],a)||(o.arrayColors[o.selectedColor]=a),m(a)}),u()(),d(205,"div",33)(206,"div",34),_("click",function(){return g(i),m(o.selectedColor="color1")}),u(),d(207,"div",34),_("click",function(){return g(i),m(o.selectedColor="color2")}),u(),d(208,"div",34),_("click",function(){return g(i),m(o.selectedColor="color3")}),u(),d(209,"div",34),_("click",function(){return g(i),m(o.selectedColor="color4")}),u(),d(210,"div",34),_("click",function(){return g(i),m(o.selectedColor="color5")}),u()(),d(211,"div",7)(212,"p"),p(213,"Show the dialog permanently: "),u(),d(214,"pre"),p(215,``${o+1}) ${r.toString()}`).join(`
- `),u()()(),C(211,"hr")(212,"br")(213,"hr"),d(214,"div",1)(215,"div",2)(216,"input",33),w("colorPickerClose",function(s){return o.onEventLog("colorPickerClose",s)})("colorPickerOpen",function(s){return o.onEventLog("colorPickerOpen",s)})("cpInputChange",function(s){return o.onEventLog("cpInputChange",s)})("cpSliderDragEnd",function(s){return o.onEventLog("cpSliderDragEnd",s)})("cpSliderDragStart",function(s){return o.onEventLog("cpSliderDragStart",s)})("keyup",function(s){return o.onEventLog("cpInputChange",s)}),u(),H(217,S0,3,0,"ng-template",null,34,jc),u(),d(219,"div",4)(220,"p"),f(221,"Custom template: "),u(),d(222,"pre"),f(223,``${o+1}) ${r.toString()}`).join(`

Custom template.

- `),u()(),C(224,"hr")(225,"br"),d(226,"div",1)(227,"div",35)(228,"table",36)(229,"thead")(230,"tr")(231,"th"),f(232,"Options"),u(),d(233,"th"),f(234,"Values (default values in bold)"),u()()(),d(235,"tbody")(236,"tr")(237,"td"),f(238,"cpOutputFormat"),u(),d(239,"td")(240,"b"),f(241,"'auto'"),u(),f(242,", 'hex', 'rgba', 'hsla' "),u()(),d(243,"tr")(244,"td"),f(245,"cpPosition"),u(),d(246,"td")(247,"b"),f(248,"'auto'"),u(),f(249,", 'top', 'bottom', 'top-right', 'top-left', 'bottom-left', 'bottom-right' "),u()(),d(250,"tr")(251,"td"),f(252,"cpPositionOffset"),u(),d(253,"td")(254,"b"),f(255,"'0%'"),u(),C(256,"br"),f(257," Dialog offset (percent) relative to the element that contains the directive. "),u()(),d(258,"tr")(259,"td"),f(260,"cpPositionRelativeToArrow"),u(),d(261,"td")(262,"b"),f(263,"false"),u(),f(264,", true "),C(265,"br"),f(266," Dialog position is calculated relative to the dialog (false) or relative to the dialog arrow (true). "),u()(),d(267,"tr")(268,"td"),f(269,"cpWidth"),u(),d(270,"td")(271,"b"),f(272,"'230px'"),u(),C(273,"br"),f(274," Use this option to set color picker dialog width (pixels). "),u()(),d(275,"tr")(276,"td"),f(277,"cpHeight"),u(),d(278,"td")(279,"b"),f(280,"'auto'"),u(),C(281,"br"),f(282," Use this option to force color picker dialog height (pixels). "),u()(),d(283,"tr")(284,"td"),f(285,"cpSaveClickOutside"),u(),d(286,"td")(287,"b"),f(288,"true"),u(),f(289,", false"),C(290,"br"),f(291," If true the initial color is restored when user clicks outside. "),u()(),d(292,"tr")(293,"td"),f(294,"cpOKButton"),u(),d(295,"td")(296,"b"),f(297,"false"),u(),f(298,", true"),C(299,"br"),f(300," Shows the Ok button. Saves the selected color. "),u()(),d(301,"tr")(302,"td"),f(303,"cpOKButtonText"),u(),d(304,"td")(305,"b"),f(306,"'OK'"),u()()(),d(307,"tr")(308,"td"),f(309,"cpOKButtonClass"),u(),d(310,"td"),f(311," Class to customize the OK button. "),u()(),d(312,"tr")(313,"td"),f(314,"cpCancelButton"),u(),d(315,"td")(316,"b"),f(317,"false"),u(),f(318,", true"),C(319,"br"),f(320," Shows the Cancel button. Cancel the selected color. "),u()(),d(321,"tr")(322,"td"),f(323,"cpCancelButtonText"),u(),d(324,"td")(325,"b"),f(326,"'Cancel'"),u()()(),d(327,"tr")(328,"td"),f(329,"cpCancelButtonClass"),u(),d(330,"td"),f(331," Class to customize the Cancel button. "),u()(),d(332,"tr")(333,"td"),f(334,"cpFallbackColor"),u(),d(335,"td")(336,"b"),f(337,"'#fff'"),u(),C(338,"br"),f(339," Is used when the color is not well-formed or not defined. "),u()(),d(340,"tr")(341,"td"),f(342,"cpPresetLabel"),u(),d(343,"td")(344,"b"),f(345,"'Preset colors'"),u(),C(346,"br"),f(347," Label for preset colors if any provided used. "),u()(),d(348,"tr")(349,"td"),f(350,"cpPresetColors"),u(),d(351,"td")(352,"b"),f(353,"[]"),u(),C(354,"br"),f(355," Array of preset colors to show in the color picker dialog. "),u()(),d(356,"tr")(357,"td"),f(358,"cpToggle"),u(),d(359,"td")(360,"b"),f(361,"false"),u(),f(362,", true"),C(363,"br"),f(364," Input/ouput to open/close the color picker. "),u()(),d(365,"tr")(366,"td"),f(367,"cpIgnoredElements"),u(),d(368,"td")(369,"b"),f(370,"[]"),u(),C(371,"br"),f(372," Array of HTML elements that will be ignored by the color picker when they are clicked. "),u()(),d(373,"tr")(374,"td"),f(375,"cpDialogDisplay"),u(),d(376,"td")(377,"b"),f(378,"'popup'"),u(),f(379,", 'inline'"),C(380,"br"),f(381," popup: dialog is showed when user clicks in the directive."),C(382,"br"),f(383," inline: dialog is showed permanently. You can show/hide the dialog with cpToggle."),C(384,"br"),u()(),d(385,"tr")(386,"td"),f(387,"cpDisableInput"),u(),d(388,"td")(389,"b"),f(390,"false"),u(),f(391,", true"),C(392,"br"),f(393," Disables / hides the color input field from the dialog."),C(394,"br"),u()(),d(395,"tr")(396,"td"),f(397,"cpAlphaChannel"),u(),d(398,"td")(399,"b"),f(400,"'enabled'"),u(),f(401,", 'disabled', 'always', 'forced'"),C(402,"br"),f(403," enabled: alpha channel is not included for hexadecimal (hex6) values or for values without alpha (alpha = 1)."),C(404,"br"),f(405," disabled: alpha channel is completely disabled."),C(406,"br"),f(407," always: alpha channel is included for hexadecimal (hex6) values and values without alpha (alpha = 1)."),C(408,"br"),f(409," forced: alpha channel field is added for hexadecimal (hex6) values."),C(410,"br"),u()(),d(411,"tr")(412,"td"),f(413,"cpCmykEnabled"),u(),d(414,"td")(415,"b"),f(416,"false"),u(),f(417,", true"),C(418,"br"),f(419," Enables CMYK color input and selected CMYK color event sending on color change."),C(420,"br"),u()(),d(421,"tr")(422,"td"),f(423,"cpUseRootViewContainer"),u(),d(424,"td")(425,"b"),f(426,"false"),u(),f(427,", true"),C(428,"br"),f(429," Create dialog component in the root view container instead the elements view container."),C(430,"br"),u()(),d(431,"tr")(432,"td"),f(433,"cpAddColorButton"),u(),d(434,"td")(435,"b"),f(436,"false"),u(),f(437,", true"),C(438,"br"),f(439," Add or remove colors into your preset panel. The [cpPresetColors] is needed"),C(440,"br"),u()(),d(441,"tr")(442,"td"),f(443,"cpAddColorButtonText"),u(),d(444,"td")(445,"b"),f(446,"'Add color'"),u()()(),d(447,"tr")(448,"td"),f(449,"cpAddColorButtonClass"),u(),d(450,"td"),f(451," Class to customize the add color button. "),u()(),d(452,"tr")(453,"td"),f(454,"cpRemoveColorButtonClass"),u(),d(455,"td"),f(456," Class to customize the remove color button. "),u()(),d(457,"tr")(458,"td"),f(459,"cpPresetColorsClass"),u(),d(460,"td"),f(461," Class to customize the preset colors container. "),u()(),d(462,"tr")(463,"td"),f(464,"cpMaxPresetColorsLength"),u(),d(465,"td")(466,"b"),f(467,"8"),u(),f(468," (number)"),C(469,"br"),f(470," Use this option to set the max colors allowed into preset panel. "),u()(),d(471,"tr")(472,"td"),f(473,"cpPresetEmptyMessage"),u(),d(474,"td")(475,"b"),f(476,"'No colors added'"),u(),C(477,"br"),f(478," Message for empty colors if any provided used. "),u()(),d(479,"tr")(480,"td"),f(481,"cpPresetEmptyMessageClass"),u(),d(482,"td"),f(483," Class to customize the empty colors message. "),u()(),d(484,"tr")(485,"td"),f(486,"cpEyeDropper"),u(),d(487,"td"),f(488," Enable eye dropper on click of colored circle. Click again to pick a color. "),u()()()()()(),C(489,"hr")(490,"br"),d(491,"div",1)(492,"div",35)(493,"table",36)(494,"thead")(495,"tr")(496,"th"),f(497,"Events"),u(),d(498,"th"),f(499,"Description (data format in bold)"),u()()(),d(500,"tbody")(501,"tr")(502,"td"),f(503,"colorPickerChange"),u(),d(504,"td"),f(505," Changed color value, send when color is changed. "),d(506,"b"),f(507,"(value: string)"),u()()(),d(508,"tr")(509,"td"),f(510,"colorPickerSelect"),u(),d(511,"td"),f(512," Selected color value, send when user presses the OK button. "),d(513,"b"),f(514,"(value: string)"),u()()(),d(515,"tr")(516,"td"),f(517,"cpToggleChange"),u(),d(518,"td"),f(519," Status of the dialog, send when dialog is opened / closed. "),d(520,"b"),f(521,"(open: boolean)"),u()()(),d(522,"tr")(523,"td"),f(524,"cpInputChange"),u(),d(525,"td"),f(526," Input name and its value, send when user changes color through inputs. "),d(527,"b"),f(528),u()()(),d(529,"tr")(530,"td"),f(531,"cpSliderChange"),u(),d(532,"td"),f(533," Slider name and its value, send when user changes color through slider. "),d(534,"b"),f(535),u()()(),d(536,"tr")(537,"td"),f(538,"cpCmykColorChange"),u(),d(539,"td"),f(540," CMYK color value, send when on color change if cpCmykEnabled is true. "),d(541,"b"),f(542,"(value: string)"),u()()(),d(543,"tr")(544,"td"),f(545,"cpPresetColorsChange"),u(),d(546,"td"),f(547," Preset colors value, send when Add Color button is pressed. "),d(548,"b"),f(549,"(value: array)"),u()()()()()()(),C(550,"hr")(551,"br"),u()()),r&2){let i=Mr(157),s=Mr(160),a=Mr(218);m(14),b("background",o.color1),y("colorPicker",o.color1),m(13),b("background",o.color17),y("colorPicker",o.color17)("cpColorMode","grayscale"),m(9),b("background",o.color2),y("value",o.color2)("colorPicker",o.color2),m(9),b("background",o.color3),y("value",o.color3)("cpOutputFormat","rgba")("colorPicker",o.color3),m(3),b("background",o.color4),y("value",o.color4)("cpOutputFormat","hsla")("colorPicker",o.color4),m(9),b("background",o.color5),y("value",o.color5)("cpPosition","top-right")("colorPicker",o.color5),m(9),b("color",o.color6),y("cpPosition","bottom")("cpPositionOffset","50%")("cpPositionRelativeToArrow",!0)("colorPicker",o.color6),m(10),b("background",o.color7),y("value",o.color7)("cpCancelButton",!0)("colorPicker",o.color7),m(9),b("background",o.color8),y("value",o.color8)("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs")("colorPicker",o.color8),m(9),b("background",o.color9),y("value",o.color9)("cpOKButton",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs")("colorPicker",o.color9),m(9),b("background",o.color19),y("value",o.color9)("cpEyeDropper",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs")("colorPicker",o.color19),m(11),b("background",o.color10),y("colorPicker",o.color10)("cpCmykEnabled",!0),m(3),et(o.cmykValue),m(2),b("font-size",100*o.cmykColor.c,"px"),m(2),b("font-size",100*o.cmykColor.m,"px"),m(4),b("font-size",100*o.cmykColor.y,"px"),m(2),b("font-size",100*o.cmykColor.k,"px"),m(11),b("background",o.color11),y("cpPresetColors",Gi(141,M0))("colorPicker",o.color11),m(9),b("background",o.color13),y("cpAlphaChannel","always")("cpOutputFormat","rgba")("cpPresetColors",Gi(142,A0))("cpAddColorButton",!0)("colorPicker",o.color13),m(9),b("background",o.color12),y("cpFallbackColor","#f200bd")("cpIgnoredElements",Fc(143,T0,s,i))("cpToggle",o.toggle)("colorPicker",o.color12),m(10),Ft("Toggle status: ",o.toggle,""),m(9),b("background",o.color18),y("value",o.color18)("colorPicker",o.color18),m(9),b("background",o.color14),y("value",o.color14)("cpAlphaChannel","always")("cpOutputFormat","rgba")("colorPicker",o.color14),m(2),b("background",o.color13),y("value",o.color13)("cpAlphaChannel","disabled")("cpOutputFormat","rgba")("colorPicker",o.color13),m(2),b("background",o.rgbaText),y("value",o.color16)("cpAlphaChannel","always")("cpOutputFormat","hex")("colorPicker",o.color16),m(2),b("background",o.color15),y("value",o.color15)("cpAlphaChannel","forced")("cpOutputFormat","hex")("colorPicker",o.color15),m(9),b("background",o.arrayColors[o.selectedColor]),y("cpToggle",!0)("cpDialogDisplay","inline")("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs")("colorPicker",o.arrayColors[o.selectedColor]),m(2),b("background",o.arrayColors.color1),m(1),b("background",o.arrayColors.color2),m(1),b("background",o.arrayColors.color3),m(1),b("background",o.arrayColors.color4),m(1),b("background",o.arrayColors.color5),m(11),b("background",o.color18),y("colorPicker",o.color18)("cpExtraTemplate",a),m(312),Ar("(","{","input: string, value: string","}",")"),m(7),Ar("(","{","slider: string, value: Object","}",")")}},dependencies:[hs],styles:["input[_ngcontent-%COMP%]{width:150px;margin-bottom:16px}.cmyk-text[_ngcontent-%COMP%]{float:left;width:72px;height:72px;font-weight:bolder;line-height:72px;text-align:center;text-shadow:1px 1px 2px #bbb}.color-box[_ngcontent-%COMP%]{width:100px;height:25px;margin:16px auto;cursor:pointer}.change-me[_ngcontent-%COMP%]{cursor:pointer;font-size:30px;font-weight:bolder}"]})}return e})();var vu=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Ue({type:e,bootstrap:[mu]});static \u0275inj=He({imports:[du,gs]})}return e})();uu().bootstrapModule(vu); + `),u()(),w(229,"hr")(230,"br"),d(231,"div",36)(232,"table",37)(233,"thead")(234,"tr")(235,"th"),p(236,"Options"),u(),d(237,"th"),p(238,"Values (default values in bold)"),u()()(),d(239,"tbody")(240,"tr")(241,"td"),p(242,"cpOutputFormat"),u(),d(243,"td")(244,"b"),p(245,"'auto'"),u(),p(246,", 'hex', 'rgba', 'hsla' "),u()(),d(247,"tr")(248,"td"),p(249,"cpPosition"),u(),d(250,"td")(251,"b"),p(252,"'auto'"),u(),p(253,", 'top', 'bottom', 'top-right', 'top-left', 'bottom-left', 'bottom-right' "),u()(),d(254,"tr")(255,"td"),p(256,"cpPositionOffset"),u(),d(257,"td")(258,"b"),p(259,"'0%'"),u(),w(260,"br"),p(261," Dialog offset (percent) relative to the element that contains the directive. "),u()(),d(262,"tr")(263,"td"),p(264,"cpPositionRelativeToArrow"),u(),d(265,"td")(266,"b"),p(267,"false"),u(),p(268,", true "),w(269,"br"),p(270," Dialog position is calculated relative to the dialog (false) or relative to the dialog arrow (true). "),u()(),d(271,"tr")(272,"td"),p(273,"cpWidth"),u(),d(274,"td")(275,"b"),p(276,"'230px'"),u(),w(277,"br"),p(278," Use this option to set color picker dialog width (pixels). "),u()(),d(279,"tr")(280,"td"),p(281,"cpHeight"),u(),d(282,"td")(283,"b"),p(284,"'auto'"),u(),w(285,"br"),p(286," Use this option to force color picker dialog height (pixels). "),u()(),d(287,"tr")(288,"td"),p(289,"cpSaveClickOutside"),u(),d(290,"td")(291,"b"),p(292,"true"),u(),p(293,", false"),w(294,"br"),p(295," If true the initial color is restored when user clicks outside. "),u()(),d(296,"tr")(297,"td"),p(298,"cpOKButton"),u(),d(299,"td")(300,"b"),p(301,"false"),u(),p(302,", true"),w(303,"br"),p(304," Shows the Ok button. Saves the selected color. "),u()(),d(305,"tr")(306,"td"),p(307,"cpOKButtonText"),u(),d(308,"td")(309,"b"),p(310,"'OK'"),u()()(),d(311,"tr")(312,"td"),p(313,"cpOKButtonClass"),u(),d(314,"td"),p(315," Class to customize the OK button. "),u()(),d(316,"tr")(317,"td"),p(318,"cpCancelButton"),u(),d(319,"td")(320,"b"),p(321,"false"),u(),p(322,", true"),w(323,"br"),p(324," Shows the Cancel button. Cancel the selected color. "),u()(),d(325,"tr")(326,"td"),p(327,"cpCancelButtonText"),u(),d(328,"td")(329,"b"),p(330,"'Cancel'"),u()()(),d(331,"tr")(332,"td"),p(333,"cpCancelButtonClass"),u(),d(334,"td"),p(335," Class to customize the Cancel button. "),u()(),d(336,"tr")(337,"td"),p(338,"cpFallbackColor"),u(),d(339,"td")(340,"b"),p(341,"'#fff'"),u(),w(342,"br"),p(343," Is used when the color is not well-formed or not defined. "),u()(),d(344,"tr")(345,"td"),p(346,"cpPresetLabel"),u(),d(347,"td")(348,"b"),p(349,"'Preset colors'"),u(),w(350,"br"),p(351," Label for preset colors if any provided used. "),u()(),d(352,"tr")(353,"td"),p(354,"cpPresetColors"),u(),d(355,"td")(356,"b"),p(357,"[]"),u(),w(358,"br"),p(359," Array of preset colors to show in the color picker dialog. "),u()(),d(360,"tr")(361,"td"),p(362,"cpToggle"),u(),d(363,"td")(364,"b"),p(365,"false"),u(),p(366,", true"),w(367,"br"),p(368," Input/ouput to open/close the color picker. "),u()(),d(369,"tr")(370,"td"),p(371,"cpIgnoredElements"),u(),d(372,"td")(373,"b"),p(374,"[]"),u(),w(375,"br"),p(376," Array of HTML elements that will be ignored by the color picker when they are clicked. "),u()(),d(377,"tr")(378,"td"),p(379,"cpDialogDisplay"),u(),d(380,"td")(381,"b"),p(382,"'popup'"),u(),p(383,", 'inline'"),w(384,"br"),p(385," popup: dialog is showed when user clicks in the directive."),w(386,"br"),p(387," inline: dialog is showed permanently. You can show/hide the dialog with cpToggle."),w(388,"br"),u()(),d(389,"tr")(390,"td"),p(391,"cpDisableInput"),u(),d(392,"td")(393,"b"),p(394,"false"),u(),p(395,", true"),w(396,"br"),p(397," Disables / hides the color input field from the dialog."),w(398,"br"),u()(),d(399,"tr")(400,"td"),p(401,"cpAlphaChannel"),u(),d(402,"td")(403,"b"),p(404,"'enabled'"),u(),p(405,", 'disabled', 'always', 'forced'"),w(406,"br"),p(407," enabled: alpha channel is not included for hexadecimal (hex6) values or for values without alpha (alpha = 1)."),w(408,"br"),p(409," disabled: alpha channel is completely disabled."),w(410,"br"),p(411," always: alpha channel is included for hexadecimal (hex6) values and values without alpha (alpha = 1)."),w(412,"br"),p(413," forced: alpha channel field is added for hexadecimal (hex6) values."),w(414,"br"),u()(),d(415,"tr")(416,"td"),p(417,"cpCmykEnabled"),u(),d(418,"td")(419,"b"),p(420,"false"),u(),p(421,", true"),w(422,"br"),p(423," Enables CMYK color input and selected CMYK color event sending on color change."),w(424,"br"),u()(),d(425,"tr")(426,"td"),p(427,"cpUseRootViewContainer"),u(),d(428,"td")(429,"b"),p(430,"false"),u(),p(431,", true"),w(432,"br"),p(433," Create dialog component in the root view container instead the elements view container."),w(434,"br"),u()(),d(435,"tr")(436,"td"),p(437,"cpAddColorButton"),u(),d(438,"td")(439,"b"),p(440,"false"),u(),p(441,", true"),w(442,"br"),p(443," Add or remove colors into your preset panel. The [cpPresetColors] is needed"),w(444,"br"),u()(),d(445,"tr")(446,"td"),p(447,"cpAddColorButtonText"),u(),d(448,"td")(449,"b"),p(450,"'Add color'"),u()()(),d(451,"tr")(452,"td"),p(453,"cpAddColorButtonClass"),u(),d(454,"td"),p(455," Class to customize the add color button. "),u()(),d(456,"tr")(457,"td"),p(458,"cpRemoveColorButtonClass"),u(),d(459,"td"),p(460," Class to customize the remove color button. "),u()(),d(461,"tr")(462,"td"),p(463,"cpPresetColorsClass"),u(),d(464,"td"),p(465," Class to customize the preset colors container. "),u()(),d(466,"tr")(467,"td"),p(468,"cpMaxPresetColorsLength"),u(),d(469,"td")(470,"b"),p(471,"8"),u(),p(472," (number)"),w(473,"br"),p(474," Use this option to set the max colors allowed into preset panel. "),u()(),d(475,"tr")(476,"td"),p(477,"cpPresetEmptyMessage"),u(),d(478,"td")(479,"b"),p(480,"'No colors added'"),u(),w(481,"br"),p(482," Message for empty colors if any provided used. "),u()(),d(483,"tr")(484,"td"),p(485,"cpPresetEmptyMessageClass"),u(),d(486,"td"),p(487," Class to customize the empty colors message. "),u()(),d(488,"tr")(489,"td"),p(490,"cpEyeDropper"),u(),d(491,"td"),p(492," Enable eye dropper on click of colored circle. Click again to pick a color. "),u()()()()()(),w(493,"hr")(494,"br"),d(495,"div",4)(496,"div",36)(497,"table",37)(498,"thead")(499,"tr")(500,"th"),p(501,"Events"),u(),d(502,"th"),p(503,"Description (data format in bold)"),u()()(),d(504,"tbody")(505,"tr")(506,"td"),p(507,"colorPickerChange"),u(),d(508,"td"),p(509," Changed color value, send when color is changed. "),d(510,"b"),p(511,"(value: string)"),u()()(),d(512,"tr")(513,"td"),p(514,"colorPickerSelect"),u(),d(515,"td"),p(516," Selected color value, send when user presses the OK button. "),d(517,"b"),p(518,"(value: string)"),u()()(),d(519,"tr")(520,"td"),p(521,"cpToggleChange"),u(),d(522,"td"),p(523," Status of the dialog, send when dialog is opened / closed. "),d(524,"b"),p(525,"(open: boolean)"),u()()(),d(526,"tr")(527,"td"),p(528,"cpInputChange"),u(),d(529,"td"),p(530," Input name and its value, send when user changes color through inputs. "),d(531,"b"),p(532),u()()(),d(533,"tr")(534,"td"),p(535,"cpSliderChange"),u(),d(536,"td"),p(537," Slider name and its value, send when user changes color through slider. "),d(538,"b"),p(539),u()()(),d(540,"tr")(541,"td"),p(542,"cpCmykColorChange"),u(),d(543,"td"),p(544," CMYK color value, send when on color change if cpCmykEnabled is true. "),d(545,"b"),p(546,"(value: string)"),u()()(),d(547,"tr")(548,"td"),p(549,"cpPresetColorsChange"),u(),d(550,"td"),p(551," Preset colors value, send when Add Color button is pressed. "),d(552,"b"),p(553,"(value: array)"),u()()()()()()(),w(554,"hr")(555,"br"),u()}if(r&2){let i=Kr(157),s=Kr(160),a=Kr(223);C(14),I("background",o.color1),W("colorPicker",o.color1),C(13),I("background",o.color17),W("colorPicker",o.color17),D("cpColorMode","grayscale"),C(9),I("background",o.color2),D("value",o.color2),W("colorPicker",o.color2),C(9),I("background",o.color3),D("value",o.color3)("cpOutputFormat","rgba"),W("colorPicker",o.color3),C(3),I("background",o.color4),D("value",o.color4)("cpOutputFormat","hsla"),W("colorPicker",o.color4),C(9),I("background",o.color5),D("value",o.color5)("cpPosition","top-right"),W("colorPicker",o.color5),C(9),I("color",o.color6),D("cpPosition","bottom")("cpPositionOffset","50%")("cpPositionRelativeToArrow",!0),W("colorPicker",o.color6),C(10),I("background",o.color7),D("value",o.color7)("cpCancelButton",!0),W("colorPicker",o.color7),C(9),I("background",o.color8),D("value",o.color8)("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs"),W("colorPicker",o.color8),C(9),I("background",o.color9),D("value",o.color9)("cpOKButton",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs"),W("colorPicker",o.color9),C(9),I("background",o.color19),D("value",o.color9)("cpEyeDropper",!0)("cpSaveClickOutside",!1)("cpOKButtonClass","btn btn-primary btn-xs"),W("colorPicker",o.color19),C(11),I("background",o.color10),D("colorPicker",o.color10)("cpCmykEnabled",!0),C(3),it(o.cmykValue),C(2),I("font-size",100*o.cmykColor.c,"px"),C(2),I("font-size",100*o.cmykColor.m,"px"),C(4),I("font-size",100*o.cmykColor.y,"px"),C(2),I("font-size",100*o.cmykColor.k,"px"),C(11),I("background",o.color11),D("cpPresetColors",Cs(148,x0)),W("colorPicker",o.color11),C(9),I("background",o.color13),D("cpAlphaChannel","always")("cpOutputFormat","rgba")("cpPresetColors",Cs(149,M0))("cpAddColorButton",!0),W("colorPicker",o.color13),C(9),I("background",o.color12),D("cpFallbackColor","#f200bd")("cpIgnoredElements",Du(150,A0,s,i)),W("cpToggle",o.toggle)("colorPicker",o.color12),C(10),Jt("Toggle status: ",o.toggle,""),C(9),I("background",o.color18),D("value",o.color18),W("colorPicker",o.color18),C(9),I("background",o.color14),D("value",o.color14)("cpAlphaChannel","always")("cpOutputFormat","rgba"),W("colorPicker",o.color14),C(2),I("background",o.color13),D("value",o.color13)("cpAlphaChannel","disabled")("cpOutputFormat","rgba"),W("colorPicker",o.color13),C(2),I("background",o.rgbaText),D("value",o.color16)("cpAlphaChannel","always")("cpOutputFormat","hex")("colorPicker",o.color16),C(2),I("background",o.color15),D("value",o.color15)("cpAlphaChannel","forced")("cpOutputFormat","hex"),W("colorPicker",o.color15),C(4),W("ngModel",o.alphaEnabled),C(),I("background",o.color20),D("value",o.color20)("cpAlphaChannel",o.alphaEnabled?"always":"disabled")("cpOutputFormat","hex"),W("colorPicker",o.color20),C(9),I("background",o.arrayColors[o.selectedColor]),D("cpToggle",!0)("cpDialogDisplay","inline")("cpCancelButton",!0)("cpCancelButtonClass","btn btn-primary btn-xs"),W("colorPicker",o.arrayColors[o.selectedColor]),C(2),I("background",o.arrayColors.color1),C(),I("background",o.arrayColors.color2),C(),I("background",o.arrayColors.color3),C(),I("background",o.arrayColors.color4),C(),I("background",o.arrayColors.color5),C(11),I("background",o.color18),D("colorPicker",o.color18)("cpExtraTemplate",a),C(311),Zr("(","{","input: string, value: string","}",")"),C(7),Zr("(","{","slider: string, value: Object","}",")")}},dependencies:[Ks,Ws,pd,qs],styles:["input[_ngcontent-%COMP%]{width:150px;margin-bottom:16px}.cmyk-text[_ngcontent-%COMP%]{float:left;width:72px;height:72px;font-weight:bolder;line-height:72px;text-align:center;text-shadow:1px 1px 2px #bbb}.color-box[_ngcontent-%COMP%]{width:100px;height:25px;margin:16px auto;cursor:pointer}.change-me[_ngcontent-%COMP%]{cursor:pointer;font-size:30px;font-weight:bolder}"]})}return e})();var Ed=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=ve({type:e,bootstrap:[wd]});static \u0275inj=me({imports:[Ku,Zs,md]})}return e})();Yu().bootstrapModule(Ed); diff --git a/browser/polyfills.js b/browser/polyfills.js index 475dc89..e322ce7 100644 --- a/browser/polyfills.js +++ b/browser/polyfills.js @@ -1,2 +1,2 @@ -(function(e){let n=e.performance;function s(A){n&&n.mark&&n.mark(A)}function r(A,h){n&&n.measure&&n.measure(A,h)}s("Zone");let i=e.__Zone_symbol_prefix||"__zone_symbol__";function l(A){return i+A}let m=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(m||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let E=(()=>{let h=class h{static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=h.current;for(;t.parent;)t=t.parent;return t}static get current(){return W.zone}static get currentTask(){return ne}static __load_patch(t,_,w=!1){if(oe.hasOwnProperty(t)){if(!w&&m)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let L="Zone:"+t;s(L),oe[t]=_(e,h,Y),r(L,L)}}get parent(){return this._parent}get name(){return this._name}constructor(t,_){this._parent=t,this._name=_?_.name||"unnamed":"",this._properties=_&&_.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,_)}get(t){let _=this.getZoneWith(t);if(_)return _._properties[t]}getZoneWith(t){let _=this;for(;_;){if(_._properties.hasOwnProperty(t))return _;_=_._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,_){if(typeof t!="function")throw new Error("Expecting function got: "+t);let w=this._zoneDelegate.intercept(this,t,_),L=this;return function(){return L.runGuarded(w,this,arguments,_)}}run(t,_,w,L){W={parent:W,zone:this};try{return this._zoneDelegate.invoke(this,t,_,w,L)}finally{W=W.parent}}runGuarded(t,_=null,w,L){W={parent:W,zone:this};try{try{return this._zoneDelegate.invoke(this,t,_,w,L)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{W=W.parent}}runTask(t,_,w){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===G&&(t.type===Q||t.type===P))return;let L=t.state!=y;L&&t._transitionTo(y,j),t.runCount++;let a=ne;ne=t,W={parent:W,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,_,w)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==G&&t.state!==d&&(t.type==Q||t.data&&t.data.isPeriodic?L&&t._transitionTo(j,y):(t.runCount=0,this._updateTaskCount(t,-1),L&&t._transitionTo(G,y,G))),W=W.parent,ne=a}}scheduleTask(t){if(t.zone&&t.zone!==this){let w=this;for(;w;){if(w===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);w=w.parent}}t._transitionTo(z,G);let _=[];t._zoneDelegates=_,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(w){throw t._transitionTo(d,z,G),this._zoneDelegate.handleError(this,w),w}return t._zoneDelegates===_&&this._updateTaskCount(t,1),t.state==z&&t._transitionTo(j,z),t}scheduleMicroTask(t,_,w,L){return this.scheduleTask(new p(I,t,_,w,L,void 0))}scheduleMacroTask(t,_,w,L,a){return this.scheduleTask(new p(P,t,_,w,L,a))}scheduleEventTask(t,_,w,L,a){return this.scheduleTask(new p(Q,t,_,w,L,a))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(!(t.state!==j&&t.state!==y)){t._transitionTo(V,j,y);try{this._zoneDelegate.cancelTask(this,t)}catch(_){throw t._transitionTo(d,V),this._zoneDelegate.handleError(this,_),_}return this._updateTaskCount(t,-1),t._transitionTo(G,V),t.runCount=0,t}}_updateTaskCount(t,_){let w=t._zoneDelegates;_==-1&&(t._zoneDelegates=null);for(let L=0;LA.hasTask(c,t),onScheduleTask:(A,h,c,t)=>A.scheduleTask(c,t),onInvokeTask:(A,h,c,t,_,w)=>A.invokeTask(c,t,_,w),onCancelTask:(A,h,c,t)=>A.cancelTask(c,t)};class v{constructor(h,c,t){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=h,this._parentDelegate=c,this._forkZS=t&&(t&&t.onFork?t:c._forkZS),this._forkDlgt=t&&(t.onFork?c:c._forkDlgt),this._forkCurrZone=t&&(t.onFork?this.zone:c._forkCurrZone),this._interceptZS=t&&(t.onIntercept?t:c._interceptZS),this._interceptDlgt=t&&(t.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=t&&(t.onIntercept?this.zone:c._interceptCurrZone),this._invokeZS=t&&(t.onInvoke?t:c._invokeZS),this._invokeDlgt=t&&(t.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=t&&(t.onInvoke?this.zone:c._invokeCurrZone),this._handleErrorZS=t&&(t.onHandleError?t:c._handleErrorZS),this._handleErrorDlgt=t&&(t.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=t&&(t.onHandleError?this.zone:c._handleErrorCurrZone),this._scheduleTaskZS=t&&(t.onScheduleTask?t:c._scheduleTaskZS),this._scheduleTaskDlgt=t&&(t.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=t&&(t.onScheduleTask?this.zone:c._scheduleTaskCurrZone),this._invokeTaskZS=t&&(t.onInvokeTask?t:c._invokeTaskZS),this._invokeTaskDlgt=t&&(t.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=t&&(t.onInvokeTask?this.zone:c._invokeTaskCurrZone),this._cancelTaskZS=t&&(t.onCancelTask?t:c._cancelTaskZS),this._cancelTaskDlgt=t&&(t.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=t&&(t.onCancelTask?this.zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let _=t&&t.onHasTask,w=c&&c._hasTaskZS;(_||w)&&(this._hasTaskZS=_?t:b,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=h,t.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this.zone),t.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this.zone),t.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this.zone))}fork(h,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,h,c):new E(h,c)}intercept(h,c,t){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,h,c,t):c}invoke(h,c,t,_,w){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,h,c,t,_,w):c.apply(t,_)}handleError(h,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,h,c):!0}scheduleTask(h,c){let t=c;if(this._scheduleTaskZS)this._hasTaskZS&&t._zoneDelegates.push(this._hasTaskDlgtOwner),t=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,h,c),t||(t=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==I)C(c);else throw new Error("Task is missing scheduleFn.");return t}invokeTask(h,c,t,_){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,h,c,t,_):c.callback.apply(t,_)}cancelTask(h,c){let t;if(this._cancelTaskZS)t=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,h,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");t=c.cancelFn(c)}return t}hasTask(h,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,h,c)}catch(t){this.handleError(h,t)}}_updateTaskCount(h,c){let t=this._taskCounts,_=t[h],w=t[h]=_+c;if(w<0)throw new Error("More tasks executed then were scheduled.");if(_==0||w==0){let L={microTask:t.microTask>0,macroTask:t.macroTask>0,eventTask:t.eventTask>0,change:h};this.hasTask(this.zone,L)}}}class p{constructor(h,c,t,_,w,L){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=h,this.source=c,this.data=_,this.scheduleFn=w,this.cancelFn=L,!t)throw new Error("callback is not defined");this.callback=t;let a=this;h===Q&&_&&_.useG?this.invoke=p.invokeTask:this.invoke=function(){return p.invokeTask.call(e,a,this,arguments)}}static invokeTask(h,c,t){h||(h=this),ee++;try{return h.runCount++,h.zone.runTask(h,c,t)}finally{ee==1&&T(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(G,z)}_transitionTo(h,c,t){if(this._state===c||this._state===t)this._state=h,h==G&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${h}', expecting state '${c}'${t?" or '"+t+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let M=l("setTimeout"),O=l("Promise"),N=l("then"),U=[],H=!1,K;function X(A){if(K||e[O]&&(K=e[O].resolve(0)),K){let h=K[N];h||(h=K.then),h.call(K,A)}else e[M](A,0)}function C(A){ee===0&&U.length===0&&X(T),A&&U.push(A)}function T(){if(!H){for(H=!0;U.length;){let A=U;U=[];for(let h=0;hW,onUnhandledError:q,microtaskDrainDone:q,scheduleMicroTask:C,showUncaughtError:()=>!E[l("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:q,patchMethod:()=>q,bindArguments:()=>[],patchThen:()=>q,patchMacroTask:()=>q,patchEventPrototype:()=>q,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>q,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>q,wrapWithCurrentZone:()=>q,filterProperties:()=>[],attachOriginToPatched:()=>q,_redefineProperty:()=>q,patchCallbacks:()=>q,nativeScheduleMicroTask:X},W={parent:null,zone:new E(null,null)},ne=null,ee=0;function q(){}return r("Zone","Zone"),e.Zone=E})(globalThis);var me=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ie=Object.getPrototypeOf,it=Object.create,ct=Array.prototype.slice,Me="addEventListener",Le="removeEventListener",Se=Zone.__symbol__(Me),De=Zone.__symbol__(Le),ie="true",ce="false",pe=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function je(e,n,s,r,i){return Zone.current.scheduleMacroTask(e,n,s,r,i)}var x=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,$=Pe&&Te||globalThis,at="removeAttribute";function He(e,n){for(let s=e.length-1;s>=0;s--)typeof e[s]=="function"&&(e[s]=Ae(e[s],n+"_"+s));return e}function lt(e,n){let s=e.constructor.name;for(let r=0;r{let b=function(){return E.apply(this,He(arguments,s+"."+i))};return ae(b,E),b})(l)}}}function Ye(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var $e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in $)&&typeof $.process<"u"&&{}.toString.call($.process)==="[object process]",xe=!we&&!$e&&!!(Pe&&Te.HTMLElement),Je=typeof $.process<"u"&&{}.toString.call($.process)==="[object process]"&&!$e&&!!(Pe&&Te.HTMLElement),be={},We=function(e){if(e=e||$.event,!e)return;let n=be[e.type];n||(n=be[e.type]=x("ON_PROPERTY"+e.type));let s=this||e.target||$,r=s[n],i;if(xe&&s===Te&&e.type==="error"){let l=e;i=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),i===!0&&e.preventDefault()}else i=r&&r.apply(this,arguments),i!=null&&!i&&e.preventDefault();return i};function qe(e,n,s){let r=me(e,n);if(!r&&s&&me(s,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let i=x("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete r.writable,delete r.value;let l=r.get,m=r.set,E=n.slice(2),b=be[E];b||(b=be[E]=x("ON_PROPERTY"+E)),r.set=function(v){let p=this;if(!p&&e===$&&(p=$),!p)return;typeof p[b]=="function"&&p.removeEventListener(E,We),m&&m.call(p,null),p[b]=v,typeof v=="function"&&p.addEventListener(E,We,!1)},r.get=function(){let v=this;if(!v&&e===$&&(v=$),!v)return null;let p=v[b];if(p)return p;if(l){let M=l.call(this);if(M)return r.set.call(this,M),typeof v[at]=="function"&&v.removeAttribute(n),M}return null},Ne(e,n,r),e[i]=!0}function Ke(e,n,s){if(n)for(let r=0;rfunction(m,E){let b=s(m,E);return b.cbIdx>=0&&typeof E[b.cbIdx]=="function"?je(b.name,E[b.cbIdx],b,i):l.apply(m,E)})}function ae(e,n){e[x("OriginalDelegate")]=n}var Xe=!1,Ze=!1;function ft(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function ht(){if(Xe)return Ze;Xe=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,s)=>{let r=Object.getOwnPropertyDescriptor,i=Object.defineProperty;function l(a){if(a&&a.toString===Object.prototype.toString){let u=a.constructor&&a.constructor.name;return(u||"")+": "+JSON.stringify(a)}return a?a.toString():Object.prototype.toString.call(a)}let m=s.symbol,E=[],b=e[m("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,v=m("Promise"),p=m("then"),M="__creationTrace__";s.onUnhandledError=a=>{if(s.showUncaughtError()){let u=a&&a.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",a.zone.name,"; Task:",a.task&&a.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(a)}},s.microtaskDrainDone=()=>{for(;E.length;){let a=E.shift();try{a.zone.runGuarded(()=>{throw a.throwOriginal?a.rejection:a})}catch(u){N(u)}}};let O=m("unhandledPromiseRejectionHandler");function N(a){s.onUnhandledError(a);try{let u=n[O];typeof u=="function"&&u.call(this,a)}catch{}}function U(a){return a&&a.then}function H(a){return a}function K(a){return c.reject(a)}let X=m("state"),C=m("value"),T=m("finally"),J=m("parentPromiseValue"),G=m("parentPromiseState"),z="Promise.then",j=null,y=!0,V=!1,d=0;function I(a,u){return o=>{try{Y(a,u,o)}catch(f){Y(a,!1,f)}}}let P=function(){let a=!1;return function(o){return function(){a||(a=!0,o.apply(null,arguments))}}},Q="Promise resolved with itself",oe=m("currentTaskTrace");function Y(a,u,o){let f=P();if(a===o)throw new TypeError(Q);if(a[X]===j){let k=null;try{(typeof o=="object"||typeof o=="function")&&(k=o&&o.then)}catch(R){return f(()=>{Y(a,!1,R)})(),a}if(u!==V&&o instanceof c&&o.hasOwnProperty(X)&&o.hasOwnProperty(C)&&o[X]!==j)ne(o),Y(a,o[X],o[C]);else if(u!==V&&typeof k=="function")try{k.call(o,f(I(a,u)),f(I(a,!1)))}catch(R){f(()=>{Y(a,!1,R)})()}else{a[X]=u;let R=a[C];if(a[C]=o,a[T]===T&&u===y&&(a[X]=a[G],a[C]=a[J]),u===V&&o instanceof Error){let g=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];g&&i(o,oe,{configurable:!0,enumerable:!1,writable:!0,value:g})}for(let g=0;g{try{let S=a[C],D=!!o&&T===o[T];D&&(o[J]=S,o[G]=R);let Z=u.run(g,void 0,D&&g!==K&&g!==H?[]:[S]);Y(o,!0,Z)}catch(S){Y(o,!1,S)}},o)}let q="function ZoneAwarePromise() { [native code] }",A=function(){},h=e.AggregateError;class c{static toString(){return q}static resolve(u){return Y(new this(null),y,u)}static reject(u){return Y(new this(null),V,u)}static any(u){if(!u||typeof u[Symbol.iterator]!="function")return Promise.reject(new h([],"All promises were rejected"));let o=[],f=0;try{for(let g of u)f++,o.push(c.resolve(g))}catch{return Promise.reject(new h([],"All promises were rejected"))}if(f===0)return Promise.reject(new h([],"All promises were rejected"));let k=!1,R=[];return new c((g,S)=>{for(let D=0;D{k||(k=!0,g(Z))},Z=>{R.push(Z),f--,f===0&&(k=!0,S(new h(R,"All promises were rejected")))})})}static race(u){let o,f,k=new this((S,D)=>{o=S,f=D});function R(S){o(S)}function g(S){f(S)}for(let S of u)U(S)||(S=this.resolve(S)),S.then(R,g);return k}static all(u){return c.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof c?this:c).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,o){let f,k,R=new this((Z,F)=>{f=Z,k=F}),g=2,S=0,D=[];for(let Z of u){U(Z)||(Z=this.resolve(Z));let F=S;try{Z.then(B=>{D[F]=o?o.thenCallback(B):B,g--,g===0&&f(D)},B=>{o?(D[F]=o.errorCallback(B),g--,g===0&&f(D)):k(B)})}catch(B){k(B)}g++,S++}return g-=2,g===0&&f(D),R}constructor(u){let o=this;if(!(o instanceof c))throw new Error("Must be an instanceof Promise.");o[X]=j,o[C]=[];try{let f=P();u&&u(f(I(o,y)),f(I(o,V)))}catch(f){Y(o,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return c}then(u,o){let f=this.constructor?.[Symbol.species];(!f||typeof f!="function")&&(f=this.constructor||c);let k=new f(A),R=n.current;return this[X]==j?this[C].push(R,k,u,o):ee(this,R,k,u,o),k}catch(u){return this.then(null,u)}finally(u){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=c);let f=new o(A);f[T]=T;let k=n.current;return this[X]==j?this[C].push(k,f,u,u):ee(this,k,f,u,u),f}}c.resolve=c.resolve,c.reject=c.reject,c.race=c.race,c.all=c.all;let t=e[v]=e.Promise;e.Promise=c;let _=m("thenPatched");function w(a){let u=a.prototype,o=r(u,"then");if(o&&(o.writable===!1||!o.configurable))return;let f=u.then;u[p]=f,a.prototype.then=function(k,R){return new c((S,D)=>{f.call(this,S,D)}).then(k,R)},a[_]=!0}s.patchThen=w;function L(a){return function(u,o){let f=a.apply(u,o);if(f instanceof c)return f;let k=f.constructor;return k[_]||w(k),f}}return t&&(w(t),le(e,"fetch",a=>L(a))),Promise[n.__symbol__("uncaughtPromiseErrors")]=E,c});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,s=x("OriginalDelegate"),r=x("Promise"),i=x("Error"),l=function(){if(typeof this=="function"){let v=this[s];if(v)return typeof v=="function"?n.call(v):Object.prototype.toString.call(v);if(this===Promise){let p=e[r];if(p)return n.call(p)}if(this===Error){let p=e[i];if(p)return n.call(p)}}return n.call(this)};l[s]=n,Function.prototype.toString=l;let m=Object.prototype.toString,E="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?E:m.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var dt={useG:!0},te={},Qe={},et=new RegExp("^"+pe+"(\\w+)(true|false)$"),tt=x("propagationStopped");function nt(e,n){let s=(n?n(e):e)+ce,r=(n?n(e):e)+ie,i=pe+s,l=pe+r;te[e]={},te[e][ce]=i,te[e][ie]=l}function _t(e,n,s,r){let i=r&&r.add||Me,l=r&&r.rm||Le,m=r&&r.listeners||"eventListeners",E=r&&r.rmAll||"removeAllListeners",b=x(i),v="."+i+":",p="prependListener",M="."+p+":",O=function(C,T,J){if(C.isRemoved)return;let G=C.callback;typeof G=="object"&&G.handleEvent&&(C.callback=y=>G.handleEvent(y),C.originalDelegate=G);let z;try{C.invoke(C,T,[J])}catch(y){z=y}let j=C.options;if(j&&typeof j=="object"&&j.once){let y=C.originalDelegate?C.originalDelegate:C.callback;T[l].call(T,J.type,y,j)}return z};function N(C,T,J){if(T=T||e.event,!T)return;let G=C||T.target||e,z=G[te[T.type][J?ie:ce]];if(z){let j=[];if(z.length===1){let y=O(z[0],G,T);y&&j.push(y)}else{let y=z.slice();for(let V=0;V{throw V})}}}let U=function(C){return N(this,C,!1)},H=function(C){return N(this,C,!0)};function K(C,T){if(!C)return!1;let J=!0;T&&T.useG!==void 0&&(J=T.useG);let G=T&&T.vh,z=!0;T&&T.chkDup!==void 0&&(z=T.chkDup);let j=!1;T&&T.rt!==void 0&&(j=T.rt);let y=C;for(;y&&!y.hasOwnProperty(i);)y=Ie(y);if(!y&&C[i]&&(y=C),!y||y[b])return!1;let V=T&&T.eventNameToString,d={},I=y[b]=y[i],P=y[x(l)]=y[l],Q=y[x(m)]=y[m],oe=y[x(E)]=y[E],Y;T&&T.prepend&&(Y=y[x(T.prepend)]=y[T.prepend]);function W(o,f){return!_e&&typeof o=="object"&&o?!!o.capture:!_e||!f?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let ne=function(o){if(!d.isExisting)return I.call(d.target,d.eventName,d.capture?H:U,d.options)},ee=function(o){if(!o.isRemoved){let f=te[o.eventName],k;f&&(k=f[o.capture?ie:ce]);let R=k&&o.target[k];if(R){for(let g=0;gfunction(i,l){i[tt]=!0,r&&r.apply(i,l)})}function Tt(e,n,s,r,i){let l=Zone.__symbol__(r);if(n[l])return;let m=n[l]=n[r];n[r]=function(E,b,v){return b&&b.prototype&&i.forEach(function(p){let M=`${s}.${r}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){let N=e.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}catch{}}),m.call(n,E,b,v)},e.attachOriginToPatched(n[r],m)}function ot(e,n,s){if(!s||s.length===0)return n;let r=s.filter(l=>l.target===e);if(!r||r.length===0)return n;let i=r[0].ignoreProperties;return n.filter(l=>i.indexOf(l)===-1)}function ze(e,n,s,r){if(!e)return;let i=ot(e,n,s);Ke(e,i,r)}function Oe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function yt(e,n){if(we&&!Je||Zone[e.symbol("patchEvents")])return;let s=n.__Zone_ignore_on_properties,r=[];if(xe){let i=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ft()?[{target:i,ignoreProperties:["error"]}]:[];ze(i,Oe(i),s&&s.concat(l),Ie(i))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let r=Oe(e);s.patchOnProperties=Ke,s.patchMethod=le,s.bindArguments=He,s.patchMacroTask=ut;let i=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[i]=e[l]),e[i]&&(n[i]=n[l]=e[i]),s.patchEventPrototype=Et,s.patchEventTarget=_t,s.isIEOrEdge=ht,s.ObjectDefineProperty=Ne,s.ObjectGetOwnPropertyDescriptor=me,s.ObjectCreate=it,s.ArraySlice=ct,s.patchClass=ge,s.wrapWithCurrentZone=Ae,s.filterProperties=ot,s.attachOriginToPatched=ae,s._redefineProperty=Object.defineProperty,s.patchCallbacks=Tt,s.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:te,eventNames:r,isBrowser:xe,isMix:Je,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Le})});function mt(e,n){n.patchMethod(e,"queueMicrotask",s=>function(r,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var ve=x("zoneTask");function Ee(e,n,s,r){let i=null,l=null;n+=r,s+=r;let m={};function E(v){let p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=i.apply(e,p.args),v}function b(v){return l.call(e,v.data.handleId)}i=le(e,n,v=>function(p,M){if(typeof M[0]=="function"){let O={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||(typeof O.handleId=="number"?delete m[O.handleId]:O.handleId&&(O.handleId[ve]=null))}};let U=je(n,M[0],O,E,b);if(!U)return U;let H=U.data.handleId;return typeof H=="number"?m[H]=U:H&&(H[ve]=U),H&&H.ref&&H.unref&&typeof H.ref=="function"&&typeof H.unref=="function"&&(U.ref=H.ref.bind(H),U.unref=H.unref.bind(H)),typeof H=="number"||H?H:U}else return v.apply(e,M)}),l=le(e,s,v=>function(p,M){let O=M[0],N;typeof O=="number"?N=m[O]:(N=O&&O[ve],N||(N=O)),N&&typeof N.type=="string"?N.state!=="notScheduled"&&(N.cancelFn&&N.data.isPeriodic||N.runCount===0)&&(typeof O=="number"?delete m[O]:O&&(O[ve]=null),N.zone.cancelTask(N)):v.apply(e,M)})}function pt(e,n){let{isBrowser:s,isMix:r}=n.getGlobalObjects();if(!s&&!r||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",i)}function gt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:s,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:l,ZONE_SYMBOL_PREFIX:m}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",s="clear";Ee(e,n,s,"Timeout"),Ee(e,n,s,"Interval"),Ee(e,n,s,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let s=["alert","prompt","confirm"];for(let r=0;rfunction(b,v){return n.current.run(l,e,v,E)})}});Zone.__load_patch("EventTarget",(e,n,s)=>{kt(e,s),gt(e,s);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&s.patchEventTarget(e,s,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,s)=>{ge("MutationObserver"),ge("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,s)=>{ge("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,s)=>{ge("FileReader")});Zone.__load_patch("on_property",(e,n,s)=>{yt(s,e)});Zone.__load_patch("customElements",(e,n,s)=>{pt(e,s)});Zone.__load_patch("XHR",(e,n)=>{b(e);let s=x("xhrTask"),r=x("xhrSync"),i=x("xhrListener"),l=x("xhrScheduled"),m=x("xhrURL"),E=x("xhrErrorBeforeScheduled");function b(v){let p=v.XMLHttpRequest;if(!p)return;let M=p.prototype;function O(d){return d[s]}let N=M[Se],U=M[De];if(!N){let d=v.XMLHttpRequestEventTarget;if(d){let I=d.prototype;N=I[Se],U=I[De]}}let H="readystatechange",K="scheduled";function X(d){let I=d.data,P=I.target;P[l]=!1,P[E]=!1;let Q=P[i];N||(N=P[Se],U=P[De]),Q&&U.call(P,H,Q);let oe=P[i]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[l]&&d.state===K){let W=P[n.__symbol__("loadfalse")];if(P.status!==0&&W&&W.length>0){let ne=d.invoke;d.invoke=function(){let ee=P[n.__symbol__("loadfalse")];for(let q=0;qfunction(d,I){return d[r]=I[2]==!1,d[m]=I[1],J.apply(d,I)}),G="XMLHttpRequest.send",z=x("fetchTaskAborting"),j=x("fetchTaskScheduling"),y=le(M,"send",()=>function(d,I){if(n.current[j]===!0||d[r])return y.apply(d,I);{let P={target:d,url:d[m],isPeriodic:!1,args:I,aborted:!1},Q=je(G,C,P,X,T);d&&d[E]===!0&&!P.aborted&&Q.state===K&&Q.invoke()}}),V=le(M,"abort",()=>function(d,I){let P=O(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[z]===!0)return V.apply(d,I)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&<(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function s(r){return function(i){rt(e,r).forEach(m=>{let E=e.PromiseRejectionEvent;if(E){let b=new E(r,{promise:i.promise,reason:i.rejection});m.invoke(b)}})}}e.PromiseRejectionEvent&&(n[x("unhandledPromiseRejectionHandler")]=s("unhandledrejection"),n[x("rejectionHandledHandler")]=s("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,s)=>{mt(e,s)}); +var ie=globalThis;function Q(t){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+t}function ft(){let t=ie.performance;function r(L){t&&t.mark&&t.mark(L)}function i(L,_){t&&t.measure&&t.measure(L,_)}r("Zone");let n=(()=>{let _=class _{static assertZonePatched(){if(ie.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=_.current;for(;e.parent;)e=e.parent;return e}static get current(){return v.zone}static get currentTask(){return S}static __load_patch(e,h,D=!1){if(O.hasOwnProperty(e)){let j=ie[Q("forceDuplicateZoneCheck")]===!0;if(!D&&j)throw Error("Already loaded patch: "+e)}else if(!ie["__Zone_disable_"+e]){let j="Zone:"+e;r(j),O[e]=h(ie,_,w),i(j,j)}}get parent(){return this._parent}get name(){return this._name}constructor(e,h){this._parent=e,this._name=h?h.name||"unnamed":"",this._properties=h&&h.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,h)}get(e){let h=this.getZoneWith(e);if(h)return h._properties[e]}getZoneWith(e){let h=this;for(;h;){if(h._properties.hasOwnProperty(e))return h;h=h._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,h){if(typeof e!="function")throw new Error("Expecting function got: "+e);let D=this._zoneDelegate.intercept(this,e,h),j=this;return function(){return j.runGuarded(D,this,arguments,h)}}run(e,h,D,j){v={parent:v,zone:this};try{return this._zoneDelegate.invoke(this,e,h,D,j)}finally{v=v.parent}}runGuarded(e,h=null,D,j){v={parent:v,zone:this};try{try{return this._zoneDelegate.invoke(this,e,h,D,j)}catch(N){if(this._zoneDelegate.handleError(this,N))throw N}}finally{v=v.parent}}runTask(e,h,D){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||te).name+"; Execution: "+this.name+")");if(e.state===Y&&(e.type===W||e.type===y))return;let j=e.state!=B;j&&e._transitionTo(B,d),e.runCount++;let N=S;S=e,v={parent:v,zone:this};try{e.type==y&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,h,D)}catch(he){if(this._zoneDelegate.handleError(this,he))throw he}}finally{e.state!==Y&&e.state!==$&&(e.type==W||e.data&&e.data.isPeriodic?j&&e._transitionTo(d,B):(e.runCount=0,this._updateTaskCount(e,-1),j&&e._transitionTo(Y,B,Y))),v=v.parent,S=N}}scheduleTask(e){if(e.zone&&e.zone!==this){let D=this;for(;D;){if(D===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);D=D.parent}}e._transitionTo(b,Y);let h=[];e._zoneDelegates=h,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(D){throw e._transitionTo($,b,Y),this._zoneDelegate.handleError(this,D),D}return e._zoneDelegates===h&&this._updateTaskCount(e,1),e.state==b&&e._transitionTo(d,b),e}scheduleMicroTask(e,h,D,j){return this.scheduleTask(new E(U,e,h,D,j,void 0))}scheduleMacroTask(e,h,D,j,N){return this.scheduleTask(new E(y,e,h,D,j,N))}scheduleEventTask(e,h,D,j,N){return this.scheduleTask(new E(W,e,h,D,j,N))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||te).name+"; Execution: "+this.name+")");if(!(e.state!==d&&e.state!==B)){e._transitionTo(z,d,B);try{this._zoneDelegate.cancelTask(this,e)}catch(h){throw e._transitionTo($,z),this._zoneDelegate.handleError(this,h),h}return this._updateTaskCount(e,-1),e._transitionTo(Y,z),e.runCount=0,e}}_updateTaskCount(e,h){let D=e._zoneDelegates;h==-1&&(e._zoneDelegates=null);for(let j=0;jL.hasTask(c,e),onScheduleTask:(L,_,c,e)=>L.scheduleTask(c,e),onInvokeTask:(L,_,c,e,h,D)=>L.invokeTask(c,e,h,D),onCancelTask:(L,_,c,e)=>L.cancelTask(c,e)};class u{get zone(){return this._zone}constructor(_,c,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=_,this._parentDelegate=c,this._forkZS=e&&(e&&e.onFork?e:c._forkZS),this._forkDlgt=e&&(e.onFork?c:c._forkDlgt),this._forkCurrZone=e&&(e.onFork?this._zone:c._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:c._interceptZS),this._interceptDlgt=e&&(e.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:c._invokeZS),this._invokeDlgt=e&&(e.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:c._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:c._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:c._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:c._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let h=e&&e.onHasTask,D=c&&c._hasTaskZS;(h||D)&&(this._hasTaskZS=h?e:s,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,e.onScheduleTask||(this._scheduleTaskZS=s,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),e.onInvokeTask||(this._invokeTaskZS=s,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),e.onCancelTask||(this._cancelTaskZS=s,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(_,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,c):new n(_,c)}intercept(_,c,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,c,e):c}invoke(_,c,e,h,D){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,c,e,h,D):c.apply(e,h)}handleError(_,c){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,c):!0}scheduleTask(_,c){let e=c;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,c),e||(e=c);else if(c.scheduleFn)c.scheduleFn(c);else if(c.type==U)q(c);else throw new Error("Task is missing scheduleFn.");return e}invokeTask(_,c,e,h){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,c,e,h):c.callback.apply(e,h)}cancelTask(_,c){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");e=c.cancelFn(c)}return e}hasTask(_,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,c)}catch(e){this.handleError(_,e)}}_updateTaskCount(_,c){let e=this._taskCounts,h=e[_],D=e[_]=h+c;if(D<0)throw new Error("More tasks executed then were scheduled.");if(h==0||D==0){let j={microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:_};this.hasTask(this._zone,j)}}}class E{constructor(_,c,e,h,D,j){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=c,this.data=h,this.scheduleFn=D,this.cancelFn=j,!e)throw new Error("callback is not defined");this.callback=e;let N=this;_===W&&h&&h.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ie,N,this,arguments)}}static invokeTask(_,c,e){_||(_=this),K++;try{return _.runCount++,_.zone.runTask(_,c,e)}finally{K==1&&x(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Y,b)}_transitionTo(_,c,e){if(this._state===c||this._state===e)this._state=_,_==Y&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${c}'${e?" or '"+e+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=Q("setTimeout"),p=Q("Promise"),C=Q("then"),g=[],A=!1,P;function H(L){if(P||ie[p]&&(P=ie[p].resolve(0)),P){let _=P[C];_||(_=P.then),_.call(P,L)}else ie[T](L,0)}function q(L){K===0&&g.length===0&&H(x),L&&g.push(L)}function x(){if(!A){for(A=!0;g.length;){let L=g;g=[];for(let _=0;_v,onUnhandledError:X,microtaskDrainDone:X,scheduleMicroTask:q,showUncaughtError:()=>!n[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:X,patchMethod:()=>X,bindArguments:()=>[],patchThen:()=>X,patchMacroTask:()=>X,patchEventPrototype:()=>X,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>X,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>X,wrapWithCurrentZone:()=>X,filterProperties:()=>[],attachOriginToPatched:()=>X,_redefineProperty:()=>X,patchCallbacks:()=>X,nativeScheduleMicroTask:H},v={parent:null,zone:new n(null,null)},S=null,K=0;function X(){}return i("Zone","Zone"),n}function ht(){let t=globalThis,r=t[Q("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(r||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ft(),t.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Ie=Q(He),Le=Q(xe),ce="true",ae="false",be=Q("");function Ge(t,r){return Zone.current.wrap(t,r)}function Ve(t,r,i,n,s){return Zone.current.scheduleMacroTask(t,r,i,n,s)}var G=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(t,r){for(let i=t.length-1;i>=0;i--)typeof t[i]=="function"&&(t[i]=Ge(t[i],r+"_"+i));return t}function Tt(t,r){let i=t.constructor.name;for(let n=0;n{let p=function(){return T.apply(this,Fe(arguments,i+"."+s))};return ue(p,T),p})(u)}}}function Qe(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(t){if(t=t||J.event,!t)return;let r=Ce[t.type];r||(r=Ce[t.type]=G("ON_PROPERTY"+t.type));let i=this||t.target||J,n=i[r],s;if(Be&&i===ye&&t.type==="error"){let u=t;s=n&&n.call(this,u.message,u.filename,u.lineno,u.colno,u.error),s===!0&&t.preventDefault()}else s=n&&n.apply(this,arguments),s!=null&&!s&&t.preventDefault();return s};function $e(t,r,i){let n=ve(t,r);if(!n&&i&&ve(i,r)&&(n={enumerable:!0,configurable:!0}),!n||!n.configurable)return;let s=G("on"+r+"patched");if(t.hasOwnProperty(s)&&t[s])return;delete n.writable,delete n.value;let u=n.get,E=n.set,T=r.slice(2),p=Ce[T];p||(p=Ce[T]=G("ON_PROPERTY"+T)),n.set=function(C){let g=this;if(!g&&t===J&&(g=J),!g)return;typeof g[p]=="function"&&g.removeEventListener(T,Ye),E&&E.call(g,null),g[p]=C,typeof C=="function"&&g.addEventListener(T,Ye,!1)},n.get=function(){let C=this;if(!C&&t===J&&(C=J),!C)return null;let g=C[p];if(g)return g;if(u){let A=u.call(this);if(A)return n.set.call(this,A),typeof C[Et]=="function"&&C.removeAttribute(r),A}return null},Ae(t,r,n),t[s]=!0}function nt(t,r,i){if(r)for(let n=0;nfunction(E,T){let p=i(E,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ve(p.name,T[p.cbIdx],p,s):u.apply(E,T)})}function ue(t,r){t[G("OriginalDelegate")]=r}var Je=!1,Me=!1;function yt(){try{let t=ye.navigator.userAgent;if(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let t=ye.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let t=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=G("propagationStopped");function it(t,r){let i=(r?r(t):t)+ae,n=(r?r(t):t)+ce,s=be+i,u=be+n;ee[t]={},ee[t][ae]=s,ee[t][ce]=u}function kt(t,r,i,n){let s=n&&n.add||He,u=n&&n.rm||xe,E=n&&n.listeners||"eventListeners",T=n&&n.rmAll||"removeAllListeners",p=G(s),C="."+s+":",g="prependListener",A="."+g+":",P=function(b,d,B){if(b.isRemoved)return;let z=b.callback;typeof z=="object"&&z.handleEvent&&(b.callback=y=>z.handleEvent(y),b.originalDelegate=z);let $;try{b.invoke(b,d,[B])}catch(y){$=y}let U=b.options;if(U&&typeof U=="object"&&U.once){let y=b.originalDelegate?b.originalDelegate:b.callback;d[u].call(d,B.type,y,U)}return $};function H(b,d,B){if(d=d||t.event,!d)return;let z=b||d.target||t,$=z[ee[d.type][B?ce:ae]];if($){let U=[];if($.length===1){let y=P($[0],z,d);y&&U.push(y)}else{let y=$.slice();for(let W=0;W{throw W})}}}let q=function(b){return H(this,b,!1)},x=function(b){return H(this,b,!0)};function te(b,d){if(!b)return!1;let B=!0;d&&d.useG!==void 0&&(B=d.useG);let z=d&&d.vh,$=!0;d&&d.chkDup!==void 0&&($=d.chkDup);let U=!1;d&&d.rt!==void 0&&(U=d.rt);let y=b;for(;y&&!y.hasOwnProperty(s);)y=je(y);if(!y&&b[s]&&(y=b),!y||y[p])return!1;let W=d&&d.eventNameToString,O={},w=y[p]=y[s],v=y[G(u)]=y[u],S=y[G(E)]=y[E],K=y[G(T)]=y[T],X;d&&d.prepend&&(X=y[G(d.prepend)]=y[d.prepend]);function L(o,l){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!l?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let _=function(o){if(!O.isExisting)return w.call(O.target,O.eventName,O.capture?x:q,O.options)},c=function(o){if(!o.isRemoved){let l=ee[o.eventName],k;l&&(k=l[o.capture?ce:ae]);let R=k&&o.target[k];if(R){for(let m=0;mne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(O.target=null,pe&&(pe.taskData=null),Ue&&(O.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=M,ne.capture=Oe,ne.eventName=Z,F&&(ne.originalDelegate=V),I?Ee.unshift(ne):Ee.push(ne),m)return M}};return y[s]=a(w,C,j,N,U),X&&(y[g]=a(X,A,h,N,U,!0)),y[u]=function(){let o=this||t,l=arguments[0];d&&d.transferEventName&&(l=d.transferEventName(l));let k=arguments[2],R=k?typeof k=="boolean"?!0:k.capture:!1,m=arguments[1];if(!m)return v.apply(this,arguments);if(z&&!z(v,m,o,arguments))return;let I=ee[l],M;I&&(M=I[R?ce:ae]);let Z=M&&o[M];if(Z)for(let V=0;Vfunction(s,u){s[st]=!0,n&&n.apply(s,u)})}function bt(t,r){r.patchMethod(t,"queueMicrotask",i=>function(n,s){Zone.current.scheduleMicroTask("queueMicrotask",s[0])})}var Re=G("zoneTask");function Te(t,r,i,n){let s=null,u=null;r+=n,i+=n;let E={};function T(C){let g=C.data;return g.args[0]=function(){return C.invoke.apply(this,arguments)},g.handleId=s.apply(t,g.args),C}function p(C){return u.call(t,C.data.handleId)}s=le(t,r,C=>function(g,A){if(typeof A[0]=="function"){let P={isPeriodic:n==="Interval",delay:n==="Timeout"||n==="Interval"?A[1]||0:void 0,args:A},H=A[0];A[0]=function(){try{return H.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete E[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let q=Ve(r,A[0],P,T,p);if(!q)return q;let x=q.data.handleId;return typeof x=="number"?E[x]=q:x&&(x[Re]=q),x&&x.ref&&x.unref&&typeof x.ref=="function"&&typeof x.unref=="function"&&(q.ref=x.ref.bind(x),q.unref=x.unref.bind(x)),typeof x=="number"||x?x:q}else return C.apply(t,A)}),u=le(t,i,C=>function(g,A){let P=A[0],H;typeof P=="number"?H=E[P]:(H=P&&P[Re],H||(H=P)),H&&typeof H.type=="string"?H.state!=="notScheduled"&&(H.cancelFn&&H.data.isPeriodic||H.runCount===0)&&(typeof P=="number"?delete E[P]:P&&(P[Re]=null),H.zone.cancelTask(H)):C.apply(t,A)})}function Pt(t,r){let{isBrowser:i,isMix:n}=r.getGlobalObjects();if(!i&&!n||!t.customElements||!("customElements"in t))return;let s=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,t.customElements,"customElements","define",s)}function wt(t,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:i,zoneSymbolEventNames:n,TRUE_STR:s,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let p=0;pu.target===t);if(!n||n.length===0)return r;let s=n[0].ignoreProperties;return r.filter(u=>s.indexOf(u)===-1)}function Ke(t,r,i,n){if(!t)return;let s=at(t,r,i);nt(t,s,n)}function Ze(t){return Object.getOwnPropertyNames(t).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ct(t,r){if(De&&!tt||Zone[t.symbol("patchEvents")])return;let i=r.__Zone_ignore_on_properties,n=[];if(Be){let s=window;n=n.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=yt()?[{target:s,ignoreProperties:["error"]}]:[];Ke(s,Ze(s),i&&i.concat(u),je(s))}n=n.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let s=0;s{let i=r[t.__symbol__("legacyPatch")];i&&i()}),t.__load_patch("timers",r=>{let i="set",n="clear";Te(r,i,n,"Timeout"),Te(r,i,n,"Interval"),Te(r,i,n,"Immediate")}),t.__load_patch("requestAnimationFrame",r=>{Te(r,"request","cancel","AnimationFrame"),Te(r,"mozRequest","mozCancel","AnimationFrame"),Te(r,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(r,i)=>{let n=["alert","prompt","confirm"];for(let s=0;sfunction(C,g){return i.current.run(E,r,g,p)})}}),t.__load_patch("EventTarget",(r,i,n)=>{Rt(r,n),wt(r,n);let s=r.XMLHttpRequestEventTarget;s&&s.prototype&&n.patchEventTarget(r,n,[s.prototype])}),t.__load_patch("MutationObserver",(r,i,n)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(r,i,n)=>{ke("IntersectionObserver")}),t.__load_patch("FileReader",(r,i,n)=>{ke("FileReader")}),t.__load_patch("on_property",(r,i,n)=>{Ct(n,r)}),t.__load_patch("customElements",(r,i,n)=>{Pt(r,n)}),t.__load_patch("XHR",(r,i)=>{C(r);let n=G("xhrTask"),s=G("xhrSync"),u=G("xhrListener"),E=G("xhrScheduled"),T=G("xhrURL"),p=G("xhrErrorBeforeScheduled");function C(g){let A=g.XMLHttpRequest;if(!A)return;let P=A.prototype;function H(w){return w[n]}let q=P[Ie],x=P[Le];if(!q){let w=g.XMLHttpRequestEventTarget;if(w){let v=w.prototype;q=v[Ie],x=v[Le]}}let te="readystatechange",Y="scheduled";function b(w){let v=w.data,S=v.target;S[E]=!1,S[p]=!1;let K=S[u];q||(q=S[Ie],x=S[Le]),K&&x.call(S,te,K);let X=S[u]=()=>{if(S.readyState===S.DONE)if(!v.aborted&&S[E]&&w.state===Y){let _=S[i.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let c=w.invoke;w.invoke=function(){let e=S[i.__symbol__("loadfalse")];for(let h=0;hfunction(w,v){return w[s]=v[2]==!1,w[T]=v[1],z.apply(w,v)}),$="XMLHttpRequest.send",U=G("fetchTaskAborting"),y=G("fetchTaskScheduling"),W=le(P,"send",()=>function(w,v){if(i.current[y]===!0||w[s])return W.apply(w,v);{let S={target:w,url:w[T],isPeriodic:!1,args:v,aborted:!1},K=Ve($,d,S,b,B);w&&w[p]===!0&&!S.aborted&&K.state===Y&&K.invoke()}}),O=le(P,"abort",()=>function(w,v){let S=H(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(i.current[U]===!0)return O.apply(w,v)})}}),t.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&Tt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(r,i)=>{function n(s){return function(u){ct(r,s).forEach(T=>{let p=r.PromiseRejectionEvent;if(p){let C=new p(s,{promise:u.promise,reason:u.rejection});T.invoke(C)}})}}r.PromiseRejectionEvent&&(i[G("unhandledPromiseRejectionHandler")]=n("unhandledrejection"),i[G("rejectionHandledHandler")]=n("rejectionhandled"))}),t.__load_patch("queueMicrotask",(r,i,n)=>{bt(r,n)})}function Dt(t){t.__load_patch("ZoneAwarePromise",(r,i,n)=>{let s=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=n.symbol,p=[],C=r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,g=T("Promise"),A=T("then"),P="__creationTrace__";n.onUnhandledError=f=>{if(n.showUncaughtError()){let a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},n.microtaskDrainDone=()=>{for(;p.length;){let f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){q(a)}}};let H=T("unhandledPromiseRejectionHandler");function q(f){n.onUnhandledError(f);try{let a=i[H];typeof a=="function"&&a.call(this,f)}catch{}}function x(f){return f&&f.then}function te(f){return f}function Y(f){return N.reject(f)}let b=T("state"),d=T("value"),B=T("finally"),z=T("parentPromiseValue"),$=T("parentPromiseState"),U="Promise.then",y=null,W=!0,O=!1,w=0;function v(f,a){return o=>{try{L(f,a,o)}catch(l){L(f,!1,l)}}}let S=function(){let f=!1;return function(o){return function(){f||(f=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",X=T("currentTaskTrace");function L(f,a,o){let l=S();if(f===o)throw new TypeError(K);if(f[b]===y){let k=null;try{(typeof o=="object"||typeof o=="function")&&(k=o&&o.then)}catch(R){return l(()=>{L(f,!1,R)})(),f}if(a!==O&&o instanceof N&&o.hasOwnProperty(b)&&o.hasOwnProperty(d)&&o[b]!==y)c(o),L(f,o[b],o[d]);else if(a!==O&&typeof k=="function")try{k.call(o,l(v(f,a)),l(v(f,!1)))}catch(R){l(()=>{L(f,!1,R)})()}else{f[b]=a;let R=f[d];if(f[d]=o,f[B]===B&&a===W&&(f[b]=f[$],f[d]=f[z]),a===O&&o instanceof Error){let m=i.currentTask&&i.currentTask.data&&i.currentTask.data[P];m&&u(o,X,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let I=f[d],M=!!o&&B===o[B];M&&(o[z]=I,o[$]=R);let Z=a.run(m,void 0,M&&m!==Y&&m!==te?[]:[I]);L(o,!0,Z)}catch(I){L(o,!1,I)}},o)}let h="function ZoneAwarePromise() { [native code] }",D=function(){},j=r.AggregateError;class N{static toString(){return h}static resolve(a){return a instanceof N?a:L(new this(null),W,a)}static reject(a){return L(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new N((o,l)=>{a.resolve=o,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new j([],"All promises were rejected"));let o=[],l=0;try{for(let m of a)l++,o.push(N.resolve(m))}catch{return Promise.reject(new j([],"All promises were rejected"))}if(l===0)return Promise.reject(new j([],"All promises were rejected"));let k=!1,R=[];return new N((m,I)=>{for(let M=0;M{k||(k=!0,m(Z))},Z=>{R.push(Z),l--,l===0&&(k=!0,I(new j(R,"All promises were rejected")))})})}static race(a){let o,l,k=new this((I,M)=>{o=I,l=M});function R(I){o(I)}function m(I){l(I)}for(let I of a)x(I)||(I=this.resolve(I)),I.then(R,m);return k}static all(a){return N.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof N?this:N).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,o){let l,k,R=new this((Z,V)=>{l=Z,k=V}),m=2,I=0,M=[];for(let Z of a){x(Z)||(Z=this.resolve(Z));let V=I;try{Z.then(F=>{M[V]=o?o.thenCallback(F):F,m--,m===0&&l(M)},F=>{o?(M[V]=o.errorCallback(F),m--,m===0&&l(M)):k(F)})}catch(F){k(F)}m++,I++}return m-=2,m===0&&l(M),R}constructor(a){let o=this;if(!(o instanceof N))throw new Error("Must be an instanceof Promise.");o[b]=y,o[d]=[];try{let l=S();a&&a(l(v(o,W)),l(v(o,O)))}catch(l){L(o,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return N}then(a,o){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||N);let k=new l(D),R=i.current;return this[b]==y?this[d].push(R,k,a,o):e(this,R,k,a,o),k}catch(a){return this.then(null,a)}finally(a){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=N);let l=new o(D);l[B]=B;let k=i.current;return this[b]==y?this[d].push(k,l,a,a):e(this,k,l,a,a),l}}N.resolve=N.resolve,N.reject=N.reject,N.race=N.race,N.all=N.all;let he=r[g]=r.Promise;r.Promise=N;let me=T("thenPatched");function de(f){let a=f.prototype,o=s(a,"then");if(o&&(o.writable===!1||!o.configurable))return;let l=a.then;a[A]=l,f.prototype.then=function(k,R){return new N((I,M)=>{l.call(this,I,M)}).then(k,R)},f[me]=!0}n.patchThen=de;function Pe(f){return function(a,o){let l=f.apply(a,o);if(l instanceof N)return l;let k=l.constructor;return k[me]||de(k),l}}return he&&(de(he),le(r,"fetch",f=>Pe(f))),Promise[i.__symbol__("uncaughtPromiseErrors")]=p,N})}function Ot(t){t.__load_patch("toString",r=>{let i=Function.prototype.toString,n=G("OriginalDelegate"),s=G("Promise"),u=G("Error"),E=function(){if(typeof this=="function"){let g=this[n];if(g)return typeof g=="function"?i.call(g):Object.prototype.toString.call(g);if(this===Promise){let A=r[s];if(A)return i.call(A)}if(this===Error){let A=r[u];if(A)return i.call(A)}}return i.call(this)};E[n]=i,Function.prototype.toString=E;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function Nt(t,r,i,n,s){let u=Zone.__symbol__(n);if(r[u])return;let E=r[u]=r[n];r[n]=function(T,p,C){return p&&p.prototype&&s.forEach(function(g){let A=`${i}.${n}::`+g,P=p.prototype;try{if(P.hasOwnProperty(g)){let H=t.ObjectGetOwnPropertyDescriptor(P,g);H&&H.value?(H.value=t.wrapWithCurrentZone(H.value,A),t._redefineProperty(p.prototype,g,H)):P[g]&&(P[g]=t.wrapWithCurrentZone(P[g],A))}else P[g]&&(P[g]=t.wrapWithCurrentZone(P[g],A))}catch{}}),E.call(r,T,p,C)},t.attachOriginToPatched(r[n],E)}function It(t){t.__load_patch("util",(r,i,n)=>{let s=Ze(r);n.patchOnProperties=nt,n.patchMethod=le,n.bindArguments=Fe,n.patchMacroTask=gt;let u=i.__symbol__("BLACK_LISTED_EVENTS"),E=i.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(i[u]=i[E]=r[u]),n.patchEventPrototype=vt,n.patchEventTarget=kt,n.isIEOrEdge=mt,n.ObjectDefineProperty=Ae,n.ObjectGetOwnPropertyDescriptor=ve,n.ObjectCreate=dt,n.ArraySlice=_t,n.patchClass=ke,n.wrapWithCurrentZone=Ge,n.filterProperties=at,n.attachOriginToPatched=ue,n._redefineProperty=Object.defineProperty,n.patchCallbacks=Nt,n.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:s,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function Lt(t){Dt(t),Ot(t),It(t)}var lt=ht();Lt(lt);St(lt); diff --git a/browser/styles.css b/browser/styles.css index 1c1d607..e8b4114 100644 --- a/browser/styles.css +++ b/browser/styles.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.table{display:table}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.absolute{position:absolute}.relative{position:relative}.inline{display:inline}.table{display:table}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}