(self.webpackChunkvalidarDoc=self.webpackChunkvalidarDoc||[]).push([[179],{595:(Me,J,M)=>{"use strict";function E(t){return"function"==typeof t}function P(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const L=P(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function F(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class A{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const o of e)o.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(E(i))try{i()}catch(o){n=o instanceof L?o.errors:[o]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const o of r)try{d(o)}catch(s){n=n??[],s instanceof L?n=[...n,...s.errors]:n.push(s)}}if(n)throw new L(n)}}add(n){var e;if(n&&n!==this)if(this.closed)d(n);else{if(n instanceof A){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&F(e,n)}remove(n){const{_finalizers:e}=this;e&&F(e,n),n instanceof A&&n._removeParent(this)}}A.EMPTY=(()=>{const t=new A;return t.closed=!0,t})();const S=A.EMPTY;function x(t){return t instanceof A||t&&"closed"in t&&E(t.remove)&&E(t.add)&&E(t.unsubscribe)}function d(t){E(t)?t():t.unsubscribe()}const u={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},f={setTimeout(t,n,...e){const{delegate:i}=f;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=f;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function v(t){f.setTimeout(()=>{const{onUnhandledError:n}=u;if(!n)throw t;n(t)})}function y(){}const p=w("C",void 0,void 0);function w(t,n,e){return{kind:t,value:n,error:e}}let m=null;function _(t){if(u.useDeprecatedSynchronousErrorHandling){const n=!m;if(n&&(m={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=m;if(m=null,e)throw i}}else t()}class k extends A{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,x(n)&&n.add(this)):this.destination=U}static create(n,e,i){return new I(n,e,i)}next(n){this.isStopped?$(function g(t){return w("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?$(function h(t){return w("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?$(p,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const O=Function.prototype.bind;function N(t,n){return O.call(t,n)}class T{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){R(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){R(i)}else R(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){R(e)}}}class I extends k{constructor(n,e,i){let r;if(super(),E(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let o;this&&u.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&N(n.next,o),error:n.error&&N(n.error,o),complete:n.complete&&N(n.complete,o)}):r=n}this.destination=new T(r)}}function R(t){u.useDeprecatedSynchronousErrorHandling?function D(t){u.useDeprecatedSynchronousErrorHandling&&m&&(m.errorThrown=!0,m.error=t)}(t):v(t)}function $(t,n){const{onStoppedNotification:e}=u;e&&f.setTimeout(()=>e(t,n))}const U={closed:!0,next:y,error:function V(t){throw t},complete:y},Z="function"==typeof Symbol&&Symbol.observable||"@@observable";function X(t){return t}function ee(t){return 0===t.length?X:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let W=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const o=function q(t){return t&&t instanceof k||function G(t){return t&&E(t.next)&&E(t.error)&&E(t.complete)}(t)&&x(t)}(e)?e:new I(e,i,r);return _(()=>{const{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=z(i))((r,o)=>{const s=new I({next:a=>{try{e(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:r});this.subscribe(s)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Z](){return this}pipe(...e){return ee(e)(this)}toPromise(e){return new(e=z(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return t.create=n=>new t(n),t})();function z(t){var n;return null!==(n=t??u.Promise)&&void 0!==n?n:Promise}const Y=P(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let K=(()=>{class t extends W{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new H(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new Y}next(e){_(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){_(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){_(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:o}=this;return i||r?S:(this.currentObservers=null,o.push(e),new A(()=>{this.currentObservers=null,F(o,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:o}=this;i?e.error(r):o&&e.complete()}asObservable(){const e=new W;return e.source=this,e}}return t.create=(n,e)=>new H(n,e),t})();class H extends K{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:S}}function te(t){return E(t?.lift)}function oe(t){return n=>{if(te(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ae(t,n,e,i,r){return new he(t,n,e,i,r)}class he extends k{constructor(n,e,i,r,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Ee(t,n){return oe((e,i)=>{let r=0;e.subscribe(ae(i,o=>{i.next(t.call(n,o,r++))}))})}function pt(t){return this instanceof pt?(this.v=t,this):new pt(t)}function mr(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),o=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(B){i[B]&&(r[B]=function(j){return new Promise(function(Q,ie){o.push([B,j,Q,ie])>1||a(B,j)})})}function a(B,j){try{!function l(B){B.value instanceof pt?Promise.resolve(B.value.v).then(c,b):C(o[0][2],B)}(i[B](j))}catch(Q){C(o[0][3],Q)}}function c(B){a("next",B)}function b(B){a("throw",B)}function C(B,j){B(j),o.shift(),o.length&&a(o[0][0],o[0][1])}}function oi(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function Ue(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(o){e[o]=t[o]&&function(s){return new Promise(function(a,l){!function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}(a,l,(s=t[o](s)).done,s.value)})}}}const wl=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function js(t){return E(t?.then)}function xl(t){return E(t[Z])}function Us(t){return Symbol.asyncIterator&&E(t?.[Symbol.asyncIterator])}function Cl(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sl=function El(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Dl(t){return E(t?.[Sl])}function Tl(t){return mr(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield pt(e.read());if(r)return yield pt(void 0);yield yield pt(i)}}finally{e.releaseLock()}})}function $s(t){return E(t?.getReader)}function si(t){if(t instanceof W)return t;if(null!=t){if(xl(t))return function yd(t){return new W(n=>{const e=t[Z]();if(E(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(wl(t))return function Il(t){return new W(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,v)})}(t);if(Us(t))return On(t);if(Dl(t))return function Ml(t){return new W(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if($s(t))return function er(t){return On(Tl(t))}(t)}throw Cl(t)}function On(t){return new W(n=>{(function kl(t,n){var e,i,r,o;return function ve(t,n,e,i){return new(e||(e=Promise))(function(o,s){function a(b){try{c(i.next(b))}catch(C){s(C)}}function l(b){try{c(i.throw(b))}catch(C){s(C)}}function c(b){b.done?o(b.value):function r(o){return o instanceof e?o:new e(function(s){s(o)})}(b.value).then(a,l)}c((i=i.apply(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=oi(t);!(i=yield e.next()).done;)if(n.next(i.value),n.closed)return}catch(s){r={error:s}}finally{try{i&&!i.done&&(o=e.return)&&(yield o.call(e))}finally{if(r)throw r.error}}n.complete()})})(t,n).catch(e=>n.error(e))})}function Fi(t,n,e,i=0,r=!1){const o=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(o),!r)return o}function Dn(t,n,e=1/0){return E(n)?Dn((i,r)=>Ee((o,s)=>n(i,o,r,s))(si(t(i,r))),e):("number"==typeof n&&(e=n),oe((i,r)=>function eS(t,n,e,i,r,o,s,a){const l=[];let c=0,b=0,C=!1;const B=()=>{C&&!l.length&&!c&&n.complete()},j=ie=>c{o&&n.next(ie),c++;let se=!1;si(e(ie,b++)).subscribe(ae(n,ce=>{r?.(ce),o?j(ce):n.next(ce)},()=>{se=!0},void 0,()=>{if(se)try{for(c--;l.length&&cQ(ce)):Q(ce)}B()}catch(ce){n.error(ce)}}))};return t.subscribe(ae(n,j,()=>{C=!0,B()})),()=>{a?.()}}(i,r,t,e)))}function Lo(t=1/0){return Dn(X,t)}const gr=new W(t=>t.complete());function bd(t){return t[t.length-1]}function _g(t){return E(bd(t))?t.pop():void 0}function qs(t){return function nS(t){return t&&E(t.schedule)}(bd(t))?t.pop():void 0}function bg(t,n=0){return oe((e,i)=>{e.subscribe(ae(i,r=>Fi(i,t,()=>i.next(r),n),()=>Fi(i,t,()=>i.complete(),n),r=>Fi(i,t,()=>i.error(r),n)))})}function wg(t,n=0){return oe((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function xg(t,n){if(!t)throw new Error("Iterable cannot be null");return new W(e=>{Fi(e,n,()=>{const i=t[Symbol.asyncIterator]();Fi(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function an(t,n){return n?function cS(t,n){if(null!=t){if(xl(t))return function rS(t,n){return si(t).pipe(wg(n),bg(n))}(t,n);if(wl(t))return function sS(t,n){return new W(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(js(t))return function oS(t,n){return si(t).pipe(wg(n),bg(n))}(t,n);if(Us(t))return xg(t,n);if(Dl(t))return function aS(t,n){return new W(e=>{let i;return Fi(e,n,()=>{i=t[Sl](),Fi(e,n,()=>{let r,o;try{({value:r,done:o}=i.next())}catch(s){return void e.error(s)}o?e.complete():e.next(r)},0,!0)}),()=>E(i?.return)&&i.return()})}(t,n);if($s(t))return function lS(t,n){return xg(Tl(t),n)}(t,n)}throw Cl(t)}(t,n):si(t)}function wd(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new I({next:()=>{i.unsubscribe(),t()}});return n(...e).subscribe(i)}function Rt(t){for(let n in t)if(t[n]===Rt)return n;throw Error("Could not find renamed property on target object.")}function xd(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Pt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Pt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function Cd(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const fS=Rt({__forward_ref__:Rt});function yt(t){return t.__forward_ref__=yt,t.toString=function(){return Pt(this())},t}function Xe(t){return Ed(t)?t():t}function Ed(t){return"function"==typeof t&&t.hasOwnProperty(fS)&&t.__forward_ref__===yt}class xe extends Error{constructor(n,e){super(function Ol(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function rt(t){return"string"==typeof t?t:null==t?"":String(t)}function Al(t,n){throw new xe(-201,!1)}function li(t,n){null==t&&function Dt(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function Ne(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function He(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rl(t){return Cg(t,Pl)||Cg(t,Sg)}function Cg(t,n){return t.hasOwnProperty(n)?t[n]:null}function Eg(t){return t&&(t.hasOwnProperty(Sd)||t.hasOwnProperty(wS))?t[Sd]:null}const Pl=Rt({\u0275prov:Rt}),Sd=Rt({\u0275inj:Rt}),Sg=Rt({ngInjectableDef:Rt}),wS=Rt({ngInjectorDef:Rt});var Qe=(()=>((Qe=Qe||{})[Qe.Default=0]="Default",Qe[Qe.Host=1]="Host",Qe[Qe.Self=2]="Self",Qe[Qe.SkipSelf=4]="SkipSelf",Qe[Qe.Optional=8]="Optional",Qe))();let Dd;function wi(t){const n=Dd;return Dd=t,n}function Dg(t,n,e){const i=Rl(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&Qe.Optional?null:void 0!==n?n:void Al(Pt(t))}function Hr(t){return{toString:t}.toString()}var Li=(()=>((Li=Li||{})[Li.OnPush=0]="OnPush",Li[Li.Default=1]="Default",Li))(),Ni=(()=>{return(t=Ni||(Ni={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Ni;var t})();const Ft=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),No={},Ct=[],Fl=Rt({\u0275cmp:Rt}),Td=Rt({\u0275dir:Rt}),Id=Rt({\u0275pipe:Rt}),Tg=Rt({\u0275mod:Rt}),yr=Rt({\u0275fac:Rt}),Ws=Rt({__NG_ELEMENT_ID__:Rt});let CS=0;function en(t){return Hr(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Li.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||Ct,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Ni.Emulated,id:"c"+CS++,styles:t.styles||Ct,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.dependencies,s=t.features;return r.inputs=kg(t.inputs,i),r.outputs=kg(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ig).filter(Mg):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(jn).filter(Mg):null,r})}function Ig(t){return Mt(t)||zn(t)}function Mg(t){return null!==t}function je(t){return Hr(()=>({type:t.type,bootstrap:t.bootstrap||Ct,declarations:t.declarations||Ct,imports:t.imports||Ct,exports:t.exports||Ct,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function kg(t,n){if(null==t)return No;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,n&&(n[r]=o)}return e}const ze=en;function Mt(t){return t[Fl]||null}function zn(t){return t[Td]||null}function jn(t){return t[Id]||null}function ci(t,n){const e=t[Tg]||null;if(!e&&!0===n)throw new Error(`Type ${Pt(t)} does not have '\u0275mod' property.`);return e}function Xn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Bi(t){return Array.isArray(t)&&!0===t[1]}function Od(t){return 0!=(8&t.flags)}function Bl(t){return 2==(2&t.flags)}function Hl(t){return 1==(1&t.flags)}function Hi(t){return null!==t.template}function MS(t){return 0!=(256&t[2])}function po(t,n){return t.hasOwnProperty(yr)?t[yr]:null}class AS{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Un(){return Rg}function Rg(t){return t.type.prototype.ngOnChanges&&(t.setInput=PS),RS}function RS(){const t=Fg(this),n=t?.current;if(n){const e=t.previous;if(e===No)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function PS(t,n,e,i){const r=Fg(t)||function FS(t,n){return t[Pg]=n}(t,{previous:No,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new AS(l&&l.currentValue,n,s===No),t[i]=n}Un.ngInherit=!0;const Pg="__ngSimpleChanges__";function Fg(t){return t[Pg]||null}function ln(t){for(;Array.isArray(t);)t=t[0];return t}function zl(t,n){return ln(n[t])}function Ei(t,n){return ln(n[t.index])}function Ld(t,n){return t.data[n]}function di(t,n){const e=n[t];return Xn(e)?e:e[0]}function Lg(t){return 4==(4&t[2])}function jl(t){return 64==(64&t[2])}function zr(t,n){return null==n?null:t[n]}function Ng(t){t[18]=0}function Nd(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const nt={lFrame:Wg(null),bindingsEnabled:!0};function Bg(){return nt.bindingsEnabled}function Se(){return nt.lFrame.lView}function bt(){return nt.lFrame.tView}function pe(t){return nt.lFrame.contextLView=t,t[8]}function me(t){return nt.lFrame.contextLView=null,t}function hn(){let t=Hg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Hg(){return nt.lFrame.currentTNode}function tr(t,n){const e=nt.lFrame;e.currentTNode=t,e.isParent=n}function Vd(){return nt.lFrame.isParent}function Bd(){nt.lFrame.isParent=!1}function $n(){const t=nt.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function $o(){return nt.lFrame.bindingIndex++}function br(t){const n=nt.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function QS(t,n){const e=nt.lFrame;e.bindingIndex=e.bindingRootIndex=t,Hd(n)}function Hd(t){nt.lFrame.currentDirectiveIndex=t}function Ug(){return nt.lFrame.currentQueryIndex}function jd(t){nt.lFrame.currentQueryIndex=t}function ZS(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function $g(t,n,e){if(e&Qe.SkipSelf){let r=n,o=t;for(;!(r=r.parent,null!==r||e&Qe.Host||(r=ZS(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;n=r,t=o}const i=nt.lFrame=qg();return i.currentTNode=n,i.lView=t,!0}function Ud(t){const n=qg(),e=t[1];nt.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function qg(){const t=nt.lFrame,n=null===t?null:t.child;return null===n?Wg(t):n}function Wg(t){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function Gg(){const t=nt.lFrame;return nt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Kg=Gg;function $d(){const t=Gg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function qn(){return nt.lFrame.selectedIndex}function jr(t){nt.lFrame.selectedIndex=t}function Xt(){const t=nt.lFrame;return Ld(t.tView,t.selectedIndex)}function $l(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e=i)break}else n[l]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===n){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class Zs{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Gl(t,n,e){let i=0;for(;in){s=o-1;break}}}for(;o>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Gd=!0;function Ql(t){const n=Gd;return Gd=t,n}let fD=0;const nr={};function Js(t,n){const e=Qd(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Kd(i.data,t),Kd(n,null),Kd(i.blueprint,null));const r=Yl(t,n),o=t.injectorIndex;if(Jg(r)){const s=qo(r),a=Wo(r,n),l=a[1].data;for(let c=0;c<8;c++)n[o+c]=a[s+c]|l[s+c]}return n[o+8]=r,o}function Kd(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Qd(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Yl(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=c0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Zl(t,n,e){!function hD(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ws)&&(i=e[Ws]),null==i&&(i=e[Ws]=fD++);const r=255&i;n.data[t+(r>>5)]|=1<=0?255&n:vD:n}(e);if("function"==typeof o){if(!$g(n,t,i))return i&Qe.Host?n0(r,0,i):r0(n,e,i,r);try{const s=o(i);if(null!=s||i&Qe.Optional)return s;Al()}finally{Kg()}}else if("number"==typeof o){let s=null,a=Qd(t,n),l=-1,c=i&Qe.Host?n[16][6]:null;for((-1===a||i&Qe.SkipSelf)&&(l=-1===a?Yl(t,n):n[a+8],-1!==l&&l0(i,!1)?(s=n[1],a=qo(l),n=Wo(l,n)):a=-1);-1!==a;){const b=n[1];if(a0(o,a,b.data)){const C=mD(a,n,e,s,i,c);if(C!==nr)return C}l=n[a+8],-1!==l&&l0(i,n[1].data[a+8]===c)&&a0(o,a,n)?(s=b,a=qo(l),n=Wo(l,n)):a=-1}}return r}function mD(t,n,e,i,r,o){const s=n[1],a=s.data[t+8],b=Xl(a,s,e,null==i?Bl(a)&&Gd:i!=s&&0!=(3&a.type),r&Qe.Host&&o===a);return null!==b?ea(n,s,b,a):nr}function Xl(t,n,e,i,r){const o=t.providerIndexes,s=n.data,a=1048575&o,l=t.directiveStart,b=o>>20,B=r?a+b:t.directiveEnd;for(let j=i?a:a+b;j=l&&Q.type===e)return j}if(r){const j=s[l];if(j&&Hi(j)&&j.type===e)return l}return null}function ea(t,n,e,i){let r=t[e];const o=n.data;if(function aD(t){return t instanceof Zs}(r)){const s=r;s.resolving&&function hS(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new xe(-200,`Circular dependency in DI detected for ${t}${e}`)}(function xt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():rt(t)}(o[e]));const a=Ql(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?wi(s.injectImpl):null;$g(t,i,Qe.Default);try{r=t[e]=s.factory(void 0,o,t,i),n.firstCreatePass&&e>=i.directiveStart&&function oD(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=n.type.prototype;if(i){const s=Rg(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o))}(e,o[e],n)}finally{null!==l&&wi(l),Ql(a),s.resolving=!1,Kg()}}return r}function a0(t,n,e){return!!(e[n+(t>>5)]&1<{const n=Yd(Xe(t));return n&&n()}:po(t)}function c0(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}const Qo="__parameters__";function Zo(t,n,e){return Hr(()=>{const i=function Zd(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,b){const C=l.hasOwnProperty(Qo)?l[Qo]:Object.defineProperty(l,Qo,{value:[]})[Qo];for(;C.length<=b;)C.push(null);return(C[b]=C[b]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}class qe{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Ne({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function fi(t,n){void 0===n&&(n=t);for(let e=0;eArray.isArray(e)?wr(e,n):n(e))}function d0(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Jl(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ra(t,n){const e=[];for(let i=0;i=0?t[1|i]=e:(i=~i,function xD(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Jd(t,n){const e=Xo(t,n);if(e>=0)return t[1|e]}function Xo(t,n){return function p0(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=t[o<n?r=o:i=o+1}return~(r<{const s=o;mf(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&z0(r,e),e}function z0(t,n){for(let e=0;e{n.push(o)})}}function mf(t,n,e,i){if(!(t=Xe(t)))return!1;let r=null,o=Eg(t);const s=!o&&Mt(t);if(o||s){if(s&&!s.standalone)return!1;r=t}else{const l=t.ngModule;if(o=Eg(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)mf(c,n,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{wr(o.imports,b=>{mf(b,n,e,i)&&(c||(c=[]),c.push(b))})}finally{}void 0!==c&&z0(c,n)}if(!a){const c=po(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:Ct},{provide:V0,useValue:r,multi:!0},{provide:pf,useValue:()=>Re(r),multi:!0})}const l=o.providers;null==l||a||wr(l,b=>{n.push(b)})}}return r!==t&&void 0!==t.providers}const yT=Rt({provide:String,useValue:Rt});function gf(t){return null!==t&&"object"==typeof t&&yT in t}function mo(t){return"function"==typeof t}const vf=new qe("Set Injector scope."),lc={},bT={};let yf;function cc(){return void 0===yf&&(yf=new B0),yf}class qr{}class $0 extends qr{constructor(n,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,bf(n,s=>this.processProvider(s)),this.records.set(N0,ns(void 0,this)),r.has("environment")&&this.records.set(qr,ns(void 0,this));const o=this.records.get(vf);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(V0.multi,Ct,Qe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Jo(this),i=wi(void 0);try{return n()}finally{Jo(e),wi(i)}}get(n,e=oa,i=Qe.Default){this.assertNotDestroyed();const r=Jo(this),o=wi(void 0);try{if(!(i&Qe.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function ST(t){return"function"==typeof t||"object"==typeof t&&t instanceof qe}(n)&&Rl(n);a=l&&this.injectableDefInScope(l)?ns(_f(n),lc):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&Qe.Self?cc():this.parent).get(n,e=i&Qe.Optional&&e===oa?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[tc]=s[tc]||[]).unshift(Pt(n)),r)throw s;return function PD(t,n,e,i){const r=t[tc];throw n[m0]&&r.unshift(n[m0]),t.message=function FD(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=Pt(n);if(Array.isArray(n))r=n.map(Pt).join(" -> ");else if("object"==typeof n){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Pt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(kD,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[tc]=null,t}(s,n,"R3InjectorError",this.source)}throw s}finally{wi(o),Jo(r)}}resolveInjectorInitializers(){const n=Jo(this),e=wi(void 0);try{const i=this.get(pf.multi,Ct,Qe.Self);for(const r of i)r()}finally{Jo(n),wi(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Pt(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new xe(205,!1)}processProvider(n){let e=mo(n=Xe(n))?n:Xe(n&&n.provide);const i=function xT(t){return gf(t)?ns(void 0,t.useValue):ns(q0(t),lc)}(n);if(mo(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=ns(void 0,lc,!0),r.factory=()=>nf(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===lc&&(e.value=bT,e.value=e.factory()),"object"==typeof e.value&&e.value&&function ET(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=Xe(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function _f(t){const n=Rl(t),e=null!==n?n.factory:po(t);if(null!==e)return e;if(t instanceof qe)throw new xe(204,!1);if(t instanceof Function)return function wT(t){const n=t.length;if(n>0)throw ra(n,"?"),new xe(204,!1);const e=function _S(t){const n=t&&(t[Pl]||t[Sg]);if(n){const e=function bS(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new xe(204,!1)}function q0(t,n,e){let i;if(mo(t)){const r=Xe(t);return po(r)||_f(r)}if(gf(t))i=()=>Xe(t.useValue);else if(function U0(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...nf(t.deps||[]));else if(function j0(t){return!(!t||!t.useExisting)}(t))i=()=>Re(Xe(t.useExisting));else{const r=Xe(t&&(t.useClass||t.provide));if(!function CT(t){return!!t.deps}(t))return po(r)||_f(r);i=()=>new r(...nf(t.deps))}return i}function ns(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function DT(t){return!!t.\u0275providers}function bf(t,n){for(const e of t)Array.isArray(e)?bf(e,n):DT(e)?bf(e.\u0275providers,n):n(e)}class W0{}class MT{resolveComponentFactory(n){throw function IT(t){const n=Error(`No component factory found for ${Pt(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let ma=(()=>{class t{}return t.NULL=new MT,t})();function kT(){return is(hn(),Se())}function is(t,n){return new Gt(Ei(t,n))}let Gt=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=kT,t})();function OT(t){return t instanceof Gt?t.nativeElement:t}class ga{}let zi=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function AT(){const t=Se(),e=di(hn().index,t);return(Xn(e)?e:t)[11]}(),t})(),RT=(()=>{class t{}return t.\u0275prov=Ne({token:t,providedIn:"root",factory:()=>null}),t})();class va{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const PT=new va("14.2.1"),wf={};function Df(t){return t.ngOriginalError}class rs{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Df(n);for(;e&&Df(e);)e=Df(e);return e||null}}const Tf=new Map;let WT=0;const Mf="__ngContext__";function Fn(t,n){Xn(n)?(t[Mf]=n[20],function KT(t){Tf.set(t[20],t)}(n)):t[Mf]=n}function ya(t){const n=t[Mf];return"number"==typeof n?function J0(t){return Tf.get(t)||null}(n):n||null}function kf(t){const n=ya(t);return n?Xn(n)?n:n.lView:null}function xr(t){return t instanceof Function?t():t}var Jn=(()=>((Jn=Jn||{})[Jn.Important=1]="Important",Jn[Jn.DashCase=2]="DashCase",Jn))();function Af(t,n){return undefined(t,n)}function _a(t){const n=t[3];return Bi(n)?n[3]:n}function Rf(t){return sv(t[13])}function Pf(t){return sv(t[4])}function sv(t){for(;null!==t&&!Bi(t);)t=t[4];return t}function ss(t,n,e,i,r){if(null!=i){let o,s=!1;Bi(i)?o=i:Xn(i)&&(s=!0,i=i[0]);const a=ln(i);0===t&&null!==e?null==r?fv(n,e,a):go(n,e,a,r||null,!0):1===t&&null!==e?go(n,e,a,r||null,!0):2===t?function _v(t,n,e){const i=uc(t,n);i&&function wI(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,s):3===t&&n.destroyNode(a),null!=o&&function EI(t,n,e,i,r){const o=e[7];o!==ln(e)&&ss(n,t,i,o,r);for(let a=10;a0&&(t[e-1][4]=i[4]);const o=Jl(t,10+n);!function hI(t,n){ba(t,n,n[11],2,null,null),n[0]=null,n[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function cv(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&ba(t,n,e,3,null,null),function gI(t){let n=t[13];if(!n)return Vf(t[1],t);for(;n;){let e=null;if(Xn(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Xn(n)&&Vf(n[1],n),n=n[3];null===n&&(n=t),Xn(n)&&Vf(n[1],n),e=n&&n[4]}n=e}}(n)}}function Vf(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function bI(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[C+1].toLowerCase();const j=8&i?B:null;if(j&&-1!==xv(j,c,0)||2&i&&c!==B){if(ji(i))return!1;s=!0}}}}else{if(!s&&!ji(i)&&!ji(l))return!1;if(s&&ji(l))continue;s=!1,i=l|1&i}}return ji(i)||s}function ji(t){return 0==(1&t)}function MI(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!ji(s)&&(n+=Dv(o,r),r=""),i=s,o=o||!ji(i);e++}return""!==r&&(n+=Dv(o,r)),n}const ot={};function ue(t){Tv(bt(),Se(),qn()+t,!1)}function Tv(t,n,e,i){if(!i)if(3==(3&n[2])){const o=t.preOrderCheckHooks;null!==o&&ql(n,o,e)}else{const o=t.preOrderHooks;null!==o&&Wl(n,o,0,e)}jr(e)}function Ov(t,n=null,e=null,i){const r=Av(t,n,e,i);return r.resolveInjectorInitializers(),r}function Av(t,n=null,e=null,i,r=new Set){const o=[e||Ct,vT(t)];return i=i||("object"==typeof t?void 0:Pt(t)),new $0(o,n||cc(),i||null,r)}let ei=(()=>{class t{static create(e,i){if(Array.isArray(e))return Ov({name:""},i,e,"");{const r=e.name??"";return Ov({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=oa,t.NULL=new B0,t.\u0275prov=Ne({token:t,providedIn:"any",factory:()=>Re(N0)}),t.__NG_ELEMENT_ID__=-1,t})();function fe(t,n=Qe.Default){const e=Se();return null===e?Re(t,n):o0(hn(),e,Xe(t),n)}function Gf(){throw new Error("invalid")}function pc(t,n){return t<<17|n<<2}function Ui(t){return t>>17&32767}function Kf(t){return 2|t}function Cr(t){return(131068&t)>>2}function Qf(t,n){return-131069&t|n<<2}function Yf(t){return 1|t}function Qv(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i22&&Tv(t,n,22,!1),e(i,r)}finally{jr(o)}}function Zv(t,n,e){if(Od(n)){const r=n.directiveEnd;for(let o=n.directiveStart;o0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function ry(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function oy(t,n){n.flags|=2,(t.components||(t.components=[])).push(n.index)}function DM(t,n,e){if(e){if(n.exportAs)for(let i=0;i0&&uh(e)}}function uh(t){for(let i=Rf(t);null!==i;i=Pf(i))for(let r=10;r0&&uh(o)}const e=t[1].components;if(null!==e)for(let i=0;i0&&uh(r)}}function RM(t,n){const e=di(n,t),i=e[1];(function PM(t,n){for(let e=n.length;e-1&&(Nf(n,i),Jl(e,i))}this._attachedToViewContainer=!1}cv(this._lView[1],this._lView)}onDestroy(n){Jv(this._lView[1],this._lView,null,n)}markForCheck(){dh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function fh(t,n,e){const i=n[10];i.begin&&i.begin();try{wa(t,n,t.template,e)}catch(r){throw hy(n,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new xe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function mI(t,n){ba(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new xe(902,!1);this._appRef=n}}class LM extends xa{constructor(n){super(n),this._view=n}detectChanges(){!function cy(t){!function FM(t){for(let n=0;n0&&jf(c,C,Te.join(" "))}if(ce=Ld(Q,22),void 0!==e){const de=ce.projection=[];for(let Te=0;Te=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=Kl(r.hostAttrs,e=Kl(e,r.hostAttrs))}}(i)}function gh(t){return t===No?{}:t===Ct?[]:t}function WM(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function GM(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,o)=>{n(i,r,o),e(i,r,o)}:n}function KM(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let xc=null;function vo(){if(!xc){const t=Ft.Symbol;if(t&&t.iterator)xc=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ln(Ve[i.index])):i.index;let Te=null;if(!a&&l&&(Te=function sk(t,n,e,i){const r=t.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(t,n,r,i.index)),null!==Te)(Te.__ngLastListenerFn__||Te).__ngNextListenerFn__=o,Te.__ngLastListenerFn__=o,j=!1;else{o=My(i,n,C,o,!1);const Ve=e.listen(ce,r,o);B.push(o,Ve),b&&b.push(r,de,we,we+1)}}else o=My(i,n,C,o,!1);const Q=i.outputs;let ie;if(j&&null!==Q&&(ie=Q[r])){const se=ie.length;if(se)for(let ce=0;ce0;)n=n[15],t--;return n}(t,nt.lFrame.contextLView))[8]}(t)}function ak(t,n){let e=null;const i=function kI(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(0==(1&e))return n[e+1]}return null}(t);for(let r=0;r=0}const gn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hy(t){return t.substring(gn.key,gn.keyEnd)}function dk(t){return t.substring(gn.value,gn.valueEnd)}function zy(t,n){const e=gn.textEnd;return e===n?-1:(n=gn.keyEnd=function pk(t,n,e){for(;n32;)n++;return n}(t,gn.key=n,e),bs(t,n,e))}function jy(t,n){const e=gn.textEnd;let i=gn.key=bs(t,n,e);return e===i?-1:(i=gn.keyEnd=function mk(t,n,e){let i;for(;n=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=$y(t,i,e),i=gn.value=bs(t,i,e),i=gn.valueEnd=function gk(t,n,e){let i=-1,r=-1,o=-1,s=n,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(t,i,e),$y(t,i,e))}function Uy(t){gn.key=0,gn.keyEnd=0,gn.value=0,gn.valueEnd=0,gn.textEnd=t.length}function bs(t,n,e){for(;n=0;e=jy(n,e))Ky(t,Hy(n),dk(n))}function Ht(t){qi(hi,sr,t,!0)}function sr(t,n){for(let e=function fk(t){return Uy(t),zy(t,bs(t,0,gn.textEnd))}(n);e>=0;e=zy(n,e))hi(t,Hy(n),!0)}function $i(t,n,e,i){const r=Se(),o=bt(),s=br(2);o.firstUpdatePass&&Gy(o,t,s,i),n!==ot&&Ln(r,s,n)&&Qy(o,o.data[qn()],r,r[11],t,r[s+1]=function Ek(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Pt($r(t)))),t}(n,e),i,s)}function qi(t,n,e,i){const r=bt(),o=br(2);r.firstUpdatePass&&Gy(r,null,o,i);const s=Se();if(e!==ot&&Ln(s,o,e)){const a=r.data[qn()];if(Zy(a,i)&&!Wy(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Cd(l,e||"")),yh(r,a,s,e,i)}else!function Ck(t,n,e,i,r,o,s,a){r===ot&&(r=Ct);let l=0,c=0,b=0=t.expandoStartIndex}function Gy(t,n,e,i){const r=t.data;if(null===r[e+1]){const o=r[qn()],s=Wy(t,e);Zy(o,i)&&null===n&&!s&&(n=!1),n=function yk(t,n,e,i){const r=function zd(t){const n=nt.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let o=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Ia(e=wh(null,t,n,e,i),n.attrs,i),o=null);else{const s=n.directiveStylingLast;if(-1===s||t[s]!==r)if(e=wh(r,t,n,e,i),null===o){let l=function _k(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==Cr(i))return t[Ui(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=wh(null,t,n,l[1],i),l=Ia(l,n.attrs,i),function bk(t,n,e,i){t[Ui(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else o=function wk(t,n,e){let i;const r=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0)&&(c=!0)}else b=e;if(r)if(0!==l){const B=Ui(t[a+1]);t[i+1]=pc(B,a),0!==B&&(t[B+1]=Qf(t[B+1],i)),t[a+1]=function tM(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=pc(a,0),0!==a&&(t[a+1]=Qf(t[a+1],i)),a=i;else t[i+1]=pc(l,0),0===a?a=i:t[l+1]=Qf(t[l+1],i),l=i;c&&(t[i+1]=Kf(t[i+1])),By(t,b,i,!0),By(t,b,i,!1),function ck(t,n,e,i,r){const o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof n&&Xo(o,n)>=0&&(e[i+1]=Yf(e[i+1]))}(n,b,t,i,o),s=pc(a,l),o?n.classBindings=s:n.styleBindings=s}(r,o,n,e,s,i)}}function wh(t,n,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=t[r],c=Array.isArray(l),b=c?l[1]:l,C=null===b;let B=e[r+1];B===ot&&(B=C?Ct:void 0);let j=C?Jd(B,i):b===i?B:void 0;if(c&&!Sc(j)&&(j=Jd(l,i)),Sc(j)&&(a=j,s))return a;const Q=t[r+1];r=s?Ui(Q):Cr(Q)}if(null!==n){let l=o?n.residualClasses:n.residualStyles;null!=l&&(a=Jd(l,i))}return a}function Sc(t){return void 0!==t}function Zy(t,n){return 0!=(t.flags&(n?16:32))}function lt(t,n=""){const e=Se(),i=bt(),r=t+22,o=i.firstCreatePass?ls(i,r,1,n,null):i.data[r],s=e[r]=function Ff(t,n){return t.createText(n)}(e[11],n);dc(i,e,s,o),tr(o,!1)}function rn(t){return ar("",t,""),rn}function ar(t,n,e){const i=Se(),r=function ds(t,n,e,i){return Ln(t,$o(),e)?n+rt(e)+i:ot}(i,t,n,e);return r!==ot&&Er(i,qn(),r),ar}function xh(t,n,e,i,r){const o=Se(),s=fs(o,t,n,e,i,r);return s!==ot&&Er(o,qn(),s),xh}const xs="en-US";let y_=xs;function Sh(t,n,e,i,r){if(t=Xe(t),Array.isArray(t))for(let o=0;o>20;if(mo(t)||!t.multi){const j=new Zs(l,r,fe),Q=Th(a,n,r?b:b+B,C);-1===Q?(Zl(Js(c,s),o,a),Dh(o,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(j),s.push(j)):(e[Q]=j,s[Q]=j)}else{const j=Th(a,n,b+B,C),Q=Th(a,n,b,b+B),ie=j>=0&&e[j],se=Q>=0&&e[Q];if(r&&!se||!r&&!ie){Zl(Js(c,s),o,a);const ce=function U2(t,n,e,i,r){const o=new Zs(t,e,fe);return o.multi=[],o.index=n,o.componentProviders=0,U_(o,r,i&&!e),o}(r?j2:z2,e.length,r,i,l);!r&&se&&(e[Q].providerFactory=ce),Dh(o,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(ce),s.push(ce)}else Dh(o,t,j>-1?j:Q,U_(e[r?Q:j],l,!r&&i));!r&&i&&se&&e[Q].componentProviders++}}}function Dh(t,n,e,i){const r=mo(n),o=function _T(t){return!!t.useClass}(n);if(r||o){const l=(o?Xe(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.multi){const b=c.indexOf(e);-1===b?c.push(e,[i,l]):c[b+1].push(i,l)}else c.push(e,l)}}}function U_(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Th(t,n,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function H2(t,n,e){const i=bt();if(i.firstCreatePass){const r=Hi(t);Sh(e,i.data,i.blueprint,r,!0),Sh(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class bo{}class $_{}class q_ extends bo{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new mh(this);const i=ci(n);this._bootstrapComponents=xr(i.bootstrap),this._r3Injector=Av(n,e,[{provide:bo,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],Pt(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Mh extends $_{constructor(n){super(),this.moduleType=n}create(n){return new q_(this.moduleType,n)}}class q2 extends bo{constructor(n,e,i){super(),this.componentFactoryResolver=new mh(this),this.instance=null;const r=new $0([...n,{provide:bo,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],e||cc(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function kc(t,n,e=null){return new q2(t,n,e).injector}let W2=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=H0(0,e.type),r=i.length>0?kc([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return t.\u0275prov=Ne({token:t,providedIn:"environment",factory:()=>new t(Re(qr))}),t})();function W_(t){t.getStandaloneInjector=n=>n.get(W2).getOrCreateStandaloneInjector(t)}function Sr(t,n,e){const i=$n()+t,r=Se();return r[i]===ot?or(r,i,e?n.call(e):n()):Sa(r,i)}function Tt(t,n,e,i){return function eb(t,n,e,i,r,o){const s=n+e;return Ln(t,s,r)?or(t,s+1,o?i.call(o,r):i(r)):Pa(t,s+1)}(Se(),$n(),t,n,e,i)}function xn(t,n,e,i,r){return function tb(t,n,e,i,r,o,s){const a=n+e;return yo(t,a,r,o)?or(t,a+2,s?i.call(s,r,o):i(r,o)):Pa(t,a+2)}(Se(),$n(),t,n,e,i,r)}function Ti(t,n,e,i,r,o){return function nb(t,n,e,i,r,o,s,a){const l=n+e;return function Cc(t,n,e,i,r){const o=yo(t,n,e,i);return Ln(t,n+2,r)||o}(t,l,r,o,s)?or(t,l+3,a?i.call(a,r,o,s):i(r,o,s)):Pa(t,l+3)}(Se(),$n(),t,n,e,i,r,o)}function Ra(t,n,e,i,r,o,s){return function ib(t,n,e,i,r,o,s,a,l){const c=n+e;return Si(t,c,r,o,s,a)?or(t,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Pa(t,c+4)}(Se(),$n(),t,n,e,i,r,o,s)}function Pa(t,n){const e=t[n];return e===ot?void 0:e}function Oh(t){return n=>{setTimeout(t,void 0,n)}}const Fe=class fO extends K{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,o=e||(()=>null),s=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=Oh(o),r&&(r=Oh(r)),s&&(s=Oh(s)));const a=super.subscribe({next:r,error:o,complete:s});return n instanceof A&&n.add(a),a}};function hO(){return this._results[vo()]()}class Ah{constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=vo(),i=Ah.prototype;i[e]||(i[e]=hO)}get changes(){return this._changes||(this._changes=new Fe)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=fi(n);(this._changesDetected=!function bD(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i{class t{}return t.__NG_ELEMENT_ID__=gO,t})();const pO=Wi,mO=class extends pO{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,r=vc(this._declarationLView,i,n,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),yc(i,r,n),new xa(r)}};function gO(){return Oc(hn(),Se())}function Oc(t,n){return 4&t.type?new mO(n,t,is(t,n)):null}let Gi=(()=>{class t{}return t.__NG_ELEMENT_ID__=vO,t})();function vO(){return ab(hn(),Se())}const yO=Gi,ob=class extends yO{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return is(this._hostTNode,this._hostLView)}get injector(){return new Go(this._hostTNode,this._hostLView)}get parentInjector(){const n=Yl(this._hostTNode,this._hostLView);if(Jg(n)){const e=Wo(n,this._hostLView),i=qo(n);return new Go(e[1].data[i+8],e)}return new Go(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=sb(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=n.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(n,e,i,r,o){const s=n&&!function ia(t){return"function"==typeof t}(n);let a;if(s)a=e;else{const C=e||{};a=C.index,i=C.injector,r=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}const l=s?n:new Ca(Mt(n)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const B=(s?c:this.parentInjector).get(qr,null);B&&(o=B)}const b=l.create(c,r,void 0,o);return this.insert(b.hostView,a),b}insert(n,e){const i=n._lView,r=i[1];if(function zS(t){return Bi(t[3])}(i)){const b=this.indexOf(n);if(-1!==b)this.detach(b);else{const C=i[3],B=new ob(C,C[6],C[3]);B.detach(B.indexOf(n))}}const o=this._adjustIndex(e),s=this._lContainer;!function vI(t,n,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=n),i0)i.push(s[a/2]);else{const c=o[a+1],b=n[-l];for(let C=10;C{class t{constructor(e){this.appInits=e,this.resolve=Rc,this.reject=Rc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Re(Pc,8))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Na=new qe("AppId",{providedIn:"root",factory:function Ob(){return`${Uh()}${Uh()}${Uh()}`}});function Uh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ab=new qe("Platform Initializer"),$h=new qe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rb=new qe("appBootstrapListener"),Pb=new qe("AnimationModuleType");let WO=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const Tr=new qe("LocaleId",{providedIn:"root",factory:()=>nn(Tr,Qe.Optional|Qe.SkipSelf)||function GO(){return typeof $localize<"u"&&$localize.locale||xs}()});class QO{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let qh=(()=>{class t{compileModuleSync(e){return new Mh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=xr(ci(e).declarations).reduce((s,a)=>{const l=Mt(a);return l&&s.push(new Ca(l)),s},[]);return new QO(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const XO=(()=>Promise.resolve(0))();function Wh(t){typeof Zone>"u"?XO.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ot{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Fe(!1),this.onMicrotaskEmpty=new Fe(!1),this.onStable=new Fe(!1),this.onError=new Fe(!1),typeof Zone>"u")throw new xe(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function JO(){let t=Ft.requestAnimationFrame,n=Ft.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function nA(t){const n=()=>{!function tA(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ft,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Kh(t),t.isCheckStableRunning=!0,Gh(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Kh(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return Nb(t),e.invokeTask(r,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&n(),Vb(t)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return Nb(t),e.invoke(r,o,s,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Vb(t)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,Kh(t),Gh(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ot.isInAngularZone())throw new xe(909,!1)}static assertNotInAngularZone(){if(Ot.isInAngularZone())throw new xe(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,n,eA,Rc,Rc);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const eA={};function Gh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Kh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Nb(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Vb(t){t._nesting--,Gh(t)}class iA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Fe,this.onMicrotaskEmpty=new Fe,this.onStable=new Fe,this.onError=new Fe}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const Bb=new qe(""),Lc=new qe("");let Zh,Qh=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Zh||(function rA(t){Zh=t}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ot.assertNotInAngularZone(),Wh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Wh(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return t.\u0275fac=function(e){return new(e||t)(Re(Ot),Re(Yh),Re(Lc))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),Yh=(()=>{class t{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return Zh?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Qr=null;const Hb=new qe("AllowMultipleToken"),Xh=new qe("PlatformDestroyListeners");class zb{constructor(n,e){this.name=n,this.token=e}}function Ub(t,n,e=[]){const i=`Platform: ${n}`,r=new qe(i);return(o=[])=>{let s=Jh();if(!s||s.injector.get(Hb,!1)){const a=[...e,...o,{provide:r,useValue:!0}];t?t(a):function aA(t){if(Qr&&!Qr.get(Hb,!1))throw new xe(400,!1);Qr=t;const n=t.get(qb);(function jb(t){const n=t.get(Ab,null);n&&n.forEach(e=>e())})(t)}(function $b(t=[],n){return ei.create({name:n,providers:[{provide:vf,useValue:"platform"},{provide:Xh,useValue:new Set([()=>Qr=null])},...t]})}(a,i))}return function cA(t){const n=Jh();if(!n)throw new xe(401,!1);return n}()}}function Jh(){return Qr?.get(qb)??null}let qb=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function Gb(t,n){let e;return e="noop"===t?new iA:("zone.js"===t?void 0:t)||new Ot(n),e}(i?.ngZone,function Wb(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:Ot,useValue:r}];return r.run(()=>{const s=ei.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(rs,null);if(!l)throw new xe(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:b=>{l.handleError(b)}});a.onDestroy(()=>{Nc(this._modules,a),c.unsubscribe()})}),function Kb(t,n,e){try{const i=e();return Da(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Fc);return c.runInitializers(),c.donePromise.then(()=>(function __(t){li(t,"Expected localeId to be defined"),"string"==typeof t&&(y_=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(Tr,xs)||xs),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=Qb({},i);return function oA(t,n,e){const i=new Mh(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Va);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new xe(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new xe(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Xh,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Re(ei))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Qb(t,n){return Array.isArray(n)?n.reduce(Qb,t):{...t,...n}}let Va=(()=>{class t{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new W(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new W(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Ot.assertNotInAngularZone(),Wh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Ot.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function uS(...t){const n=qs(t),e=function iS(t,n){return"number"==typeof bd(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?si(i[0]):Lo(e)(an(i,n)):gr}(o,s.pipe(function dS(t={}){const{connector:n=(()=>new K),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return o=>{let s,a,l,c=0,b=!1,C=!1;const B=()=>{a?.unsubscribe(),a=void 0},j=()=>{B(),s=l=void 0,b=C=!1},Q=()=>{const ie=s;j(),ie?.unsubscribe()};return oe((ie,se)=>{c++,!C&&!b&&B();const ce=l=l??n();se.add(()=>{c--,0===c&&!C&&!b&&(a=wd(Q,r))}),ce.subscribe(se),!s&&c>0&&(s=new I({next:we=>ce.next(we),error:we=>{C=!0,B(),a=wd(j,e,we),ce.error(we)},complete:()=>{b=!0,B(),a=wd(j,i),ce.complete()}}),si(ie).subscribe(s))})(o)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof W0;if(!this._injector.get(Fc).done)throw!r&&function Vo(t){const n=Mt(t)||zn(t)||jn(t);return null!==n&&n.standalone}(e),new xe(405,false);let s;s=r?e:this._injector.get(ma).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function sA(t){return t.isBoundToModule}(s)?void 0:this._injector.get(bo),c=s.create(ei.NULL,[],i||s.selector,a),b=c.location.nativeElement,C=c.injector.get(Bb,null);return C?.registerApplication(b),c.onDestroy(()=>{this.detachView(c.hostView),Nc(this.components,c),C?.unregisterApplication(b)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new xe(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Nc(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Rb,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Nc(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new xe(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(Re(Ot),Re(qr),Re(rs))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Nc(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Zb=!0,Nn=(()=>{class t{}return t.__NG_ELEMENT_ID__=fA,t})();function fA(t){return function hA(t,n,e){if(Bl(t)&&!e){const i=di(t.index,n);return new xa(i,i)}return 47&t.type?new xa(n[16],n):null}(hn(),Se(),16==(16&t))}class n1{constructor(){}supports(n){return Ea(n)}create(n){return new _A(n)}}const yA=(t,n)=>n;class _A{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||yA}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let o;return null===n?o=this._itTail:(o=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,r)):n=this._addAfter(new bA(e,i),o,r),n}_verifyReinsertion(n,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?n=this._reinsertAfter(o,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,o=n._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new r1),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new r1),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class bA{constructor(n,e){this.item=n,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class wA{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class r1{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new wA,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function o1(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new CA(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class CA{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function a1(){return new Hc([new n1])}let Hc=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||a1()),deps:[[t,new ca,new la]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new xe(901,!1)}}return t.\u0275prov=Ne({token:t,providedIn:"root",factory:a1}),t})();function l1(){return new Ba([new s1])}let Ba=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||l1()),deps:[[t,new ca,new la]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new xe(901,!1)}}return t.\u0275prov=Ne({token:t,providedIn:"root",factory:l1}),t})();const DA=Ub(null,"core",[]);let TA=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(Re(Va))},t.\u0275mod=je({type:t}),t.\u0275inj=He({}),t})();let zc=null;function cr(){return zc}const In=new qe("DocumentToken");let rp=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:function(){return function OA(){return Re(c1)}()},providedIn:"platform"}),t})();const AA=new qe("Location Initialized");let c1=(()=>{class t extends rp{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return cr().getBaseHref(this._doc)}onPopState(e){const i=cr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=cr().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){u1()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){u1()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Re(In))},t.\u0275prov=Ne({token:t,factory:function(){return function RA(){return new c1(Re(In))}()},providedIn:"platform"}),t})();function u1(){return!!window.history.pushState}function op(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function d1(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function kr(t){return t&&"?"!==t[0]?"?"+t:t}let xo=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:function(){return nn(h1)},providedIn:"root"}),t})();const f1=new qe("appBaseHref");let h1=(()=>{class t extends xo{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??nn(In).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return op(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+kr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+kr(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+kr(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(Re(rp),Re(f1,8))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),PA=(()=>{class t extends xo{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=op(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+kr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+kr(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return t.\u0275fac=function(e){return new(e||t)(Re(rp),Re(f1,8))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),sp=(()=>{class t{constructor(e){this._subject=new Fe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=d1(p1(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+kr(i))}normalize(e){return t.stripTrailingSlash(function LA(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,p1(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kr(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return t.normalizeQueryParams=kr,t.joinWithSlash=op,t.stripTrailingSlash=d1,t.\u0275fac=function(e){return new(e||t)(Re(xo))},t.\u0275prov=Ne({token:t,factory:function(){return function FA(){return new sp(Re(xo))}()},providedIn:"root"}),t})();function p1(t){return t.replace(/\/index.html$/,"")}function C1(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(o)}return null}let ni=(()=>{class t{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Ea(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Pt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(fe(Hc),fe(Ba),fe(Gt),fe(zi))},t.\u0275dir=ze({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class bR{constructor(n,e,i,r){this.$implicit=n,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ds=(()=>{class t{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new bR(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),D1(a,r)}});for(let r=0,o=i.length;r{D1(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(fe(Gi),fe(Wi),fe(Hc))},t.\u0275dir=ze({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function D1(t,n){t.context.$implicit=n.item}let mi=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new xR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){T1("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){T1("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(fe(Gi),fe(Wi))},t.\u0275dir=ze({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class xR{constructor(){this.$implicit=null,this.ngIf=null}}function T1(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Pt(n)}'.`)}let ii=(()=>{class t{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Jn.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(Ba),fe(zi))},t.\u0275dir=ze({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Yr=(()=>{class t{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return t.\u0275fac=function(e){return new(e||t)(fe(Gi))},t.\u0275dir=ze({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Un]}),t})(),ft=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({}),t})();let YR=(()=>{class t{}return t.\u0275prov=Ne({token:t,providedIn:"root",factory:()=>new ZR(Re(In),window)}),t})();class ZR{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function XR(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=O1(this.window.history)||O1(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function O1(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class A1{}class xp extends class gP extends class kA{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function MA(t){zc||(zc=t)}(new xp)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function vP(){return Ua=Ua||document.querySelector("base"),Ua?Ua.getAttribute("href"):null}();return null==e?null:function yP(t){Xc=Xc||document.createElement("a"),Xc.setAttribute("href",t);const n=Xc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Ua=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return C1(document.cookie,n)}}let Xc,Ua=null;const L1=new qe("TRANSITION_ID"),bP=[{provide:Pc,useFactory:function _P(t,n,e){return()=>{e.get(Fc).donePromise.then(()=>{const i=cr(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();const Jc=new qe("EventManagerPlugins");let eu=(()=>{class t{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class t{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),$a=(()=>{class t extends V1{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(B1),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(B1))}}return t.\u0275fac=function(e){return new(e||t)(Re(In))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();function B1(t){cr().remove(t)}const Cp={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/"},Ep=/%COMP%/g;function tu(t,n,e){for(let i=0;i{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let nu=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Sp(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ni.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new IP(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ni.ShadowDom:return new MP(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=tu(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Re(eu),Re($a),Re(Na))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();class Sp{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(Cp[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){($1(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&($1(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const o=Cp[r];o?n.setAttributeNS(o,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=Cp[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Jn.DashCase|Jn.Important)?n.style.setProperty(e,i,r&Jn.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Jn.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,j1(i)):this.eventManager.addEventListener(n,e,j1(i))}}function $1(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class IP extends Sp{constructor(n,e,i,r){super(n),this.component=i;const o=tu(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function SP(t){return"_ngcontent-%COMP%".replace(Ep,t)}(r+"-"+i.id),this.hostAttr=function DP(t){return"_nghost-%COMP%".replace(Ep,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class MP extends Sp{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=tu(r.id,r.styles,[]);for(let s=0;s{class t extends N1{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return t.\u0275fac=function(e){return new(e||t)(Re(In))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();const q1=["alt","control","meta","shift"],OP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},AP={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let RP=(()=>{class t extends N1{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const o=t.parseEventName(i),s=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>cr().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=t._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),q1.forEach(c=>{const b=i.indexOf(c);b>-1&&(i.splice(b,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=OP[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),q1.forEach(s=>{s!==r&&(0,AP[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{t.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(Re(In))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();const NP=Ub(DA,"browser",[{provide:$h,useValue:"browser"},{provide:Ab,useValue:function PP(){xp.makeCurrent()},multi:!0},{provide:In,useFactory:function LP(){return function qD(t){sf=t}(document),document},deps:[]}]),K1=new qe(""),Q1=[{provide:Lc,useClass:class wP{addToWindow(n){Ft.getAngularTestability=(i,r=!0)=>{const o=n.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},Ft.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ft.getAllAngularRootElements=()=>n.getAllRootElements(),Ft.frameworkStabilizers||(Ft.frameworkStabilizers=[]),Ft.frameworkStabilizers.push(i=>{const r=Ft.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,e,i){return null==e?null:n.getTestability(e)??(i?cr().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Bb,useClass:Qh,deps:[Ot,Yh,Lc]},{provide:Qh,useClass:Qh,deps:[Ot,Yh,Lc]}],Y1=[{provide:vf,useValue:"root"},{provide:rs,useFactory:function FP(){return new rs},deps:[]},{provide:Jc,useClass:kP,multi:!0,deps:[In,Ot,$h]},{provide:Jc,useClass:RP,multi:!0,deps:[In]},{provide:nu,useClass:nu,deps:[eu,$a,Na]},{provide:ga,useExisting:nu},{provide:V1,useExisting:$a},{provide:$a,useClass:$a,deps:[In]},{provide:eu,useClass:eu,deps:[Jc,Ot]},{provide:A1,useClass:xP,deps:[]},[]];let Z1=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:Na,useValue:e.appId},{provide:L1,useExisting:Na},bP]}}}return t.\u0275fac=function(e){return new(e||t)(Re(K1,12))},t.\u0275mod=je({type:t}),t.\u0275inj=He({providers:[...Y1,...Q1],imports:[ft,TA]}),t})(),X1=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(Re(In))},t.\u0275prov=Ne({token:t,factory:function(e){let i=null;return i=e?new e:function BP(){return new X1(Re(In))}(),i},providedIn:"root"}),t})();function We(...t){return an(t,qs(t))}function Xr(t,n){return E(n)?Dn(t,n,1):Dn(t,1)}function Ar(t,n){return oe((e,i)=>{let r=0;e.subscribe(ae(i,o=>t.call(n,o,r++)&&i.next(o)))})}typeof window<"u"&&window;class tw{}class nw{}class Zi{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(n).forEach(e=>{let i=n[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof Zi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new Zi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Zi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=n.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class GP{encodeKey(n){return iw(n)}encodeValue(n){return iw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const QP=/%(\d[a-f0-9])/gi,YP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function iw(t){return encodeURIComponent(t).replace(QP,(n,e)=>YP[e]??n)}function iu(t){return`${t}`}class Jr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new GP,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function KP(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,o)),n.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(iu):[iu(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new Jr({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(iu(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(iu(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class ZP{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function rw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function ow(t){return typeof Blob<"u"&&t instanceof Blob}function sw(t){return typeof FormData<"u"&&t instanceof FormData}class qa{constructor(n,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function XP(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Zi),this.context||(this.context=new ZP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":aC.set(B,n.setHeaders[B]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((C,B)=>C.set(B,n.setParams[B]),c)),new qa(e,i,o,{params:c,headers:l,context:b,reportProgress:a,responseType:r,withCredentials:s})}}var fn=(()=>((fn=fn||{})[fn.Sent=0]="Sent",fn[fn.UploadProgress=1]="UploadProgress",fn[fn.ResponseHeader=2]="ResponseHeader",fn[fn.DownloadProgress=3]="DownloadProgress",fn[fn.Response=4]="Response",fn[fn.User=5]="User",fn))();class Ip{constructor(n,e=200,i="OK"){this.headers=n.headers||new Zi,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class Mp extends Ip{constructor(n={}){super(n),this.type=fn.ResponseHeader}clone(n={}){return new Mp({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class ru extends Ip{constructor(n={}){super(n),this.type=fn.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new ru({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class aw extends Ip{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function kp(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let ou=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof qa)o=e;else{let l,c;l=r.headers instanceof Zi?r.headers:new Zi(r.headers),r.params&&(c=r.params instanceof Jr?r.params:new Jr({fromObject:r.params})),o=new qa(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=We(o).pipe(Xr(l=>this.handler.handle(l)));if(e instanceof qa||"events"===r.observe)return s;const a=s.pipe(Ar(l=>l instanceof ru));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(Ee(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Ee(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Ee(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Ee(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Jr).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,kp(r,i))}post(e,i,r={}){return this.request("POST",e,kp(r,i))}put(e,i,r={}){return this.request("PUT",e,kp(r,i))}}return t.\u0275fac=function(e){return new(e||t)(Re(tw))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();class lw{constructor(n,e){this.next=n,this.interceptor=e}handle(n){return this.interceptor.intercept(n,this.next)}}const cw=new qe("HTTP_INTERCEPTORS");let eF=(()=>{class t{intercept(e,i){return i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();const tF=/^\)\]\}',?\n/;let uw=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new W(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((j,Q)=>r.setRequestHeader(j,Q.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const j=e.detectContentTypeHeader();null!==j&&r.setRequestHeader("Content-Type",j)}if(e.responseType){const j=e.responseType.toLowerCase();r.responseType="json"!==j?j:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const j=r.statusText||"OK",Q=new Zi(r.getAllResponseHeaders()),ie=function nF(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new Mp({headers:Q,status:r.status,statusText:j,url:ie}),s},l=()=>{let{headers:j,status:Q,statusText:ie,url:se}=a(),ce=null;204!==Q&&(ce=typeof r.response>"u"?r.responseText:r.response),0===Q&&(Q=ce?200:0);let we=Q>=200&&Q<300;if("json"===e.responseType&&"string"==typeof ce){const de=ce;ce=ce.replace(tF,"");try{ce=""!==ce?JSON.parse(ce):null}catch(Te){ce=de,we&&(we=!1,ce={error:Te,text:ce})}}we?(i.next(new ru({body:ce,headers:j,status:Q,statusText:ie,url:se||void 0})),i.complete()):i.error(new aw({error:ce,headers:j,status:Q,statusText:ie,url:se||void 0}))},c=j=>{const{url:Q}=a(),ie=new aw({error:j,status:r.status||0,statusText:r.statusText||"Unknown Error",url:Q||void 0});i.error(ie)};let b=!1;const C=j=>{b||(i.next(a()),b=!0);let Q={type:fn.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(Q.total=j.total),"text"===e.responseType&&!!r.responseText&&(Q.partialText=r.responseText),i.next(Q)},B=j=>{let Q={type:fn.UploadProgress,loaded:j.loaded};j.lengthComputable&&(Q.total=j.total),i.next(Q)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",C),null!==o&&r.upload&&r.upload.addEventListener("progress",B)),r.send(o),i.next({type:fn.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",C),null!==o&&r.upload&&r.upload.removeEventListener("progress",B)),r.readyState!==r.DONE&&r.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(Re(A1))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();const Op=new qe("XSRF_COOKIE_NAME"),Ap=new qe("XSRF_HEADER_NAME");class dw{}let iF=(()=>{class t{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=C1(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(Re(In),Re($h),Re(Op))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),Rp=(()=>{class t{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Re(dw),Re(Ap))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),rF=(()=>{class t{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(cw,[]);this.chain=i.reduceRight((r,o)=>new lw(r,o),this.backend)}return this.chain.handle(e)}}return t.\u0275fac=function(e){return new(e||t)(Re(nw),Re(ei))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),oF=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:Rp,useClass:eF}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:Op,useValue:e.cookieName}:[],e.headerName?{provide:Ap,useValue:e.headerName}:[]]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({providers:[Rp,{provide:cw,useExisting:Rp,multi:!0},{provide:dw,useClass:iF},{provide:Op,useValue:"XSRF-TOKEN"},{provide:Ap,useValue:"X-XSRF-TOKEN"}]}),t})(),sF=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({providers:[ou,{provide:tw,useClass:rF},uw,{provide:nw,useExisting:uw}],imports:[oF.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),t})();class Xi extends K{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const su=P(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:aF}=Array,{getPrototypeOf:lF,prototype:cF,keys:uF}=Object;function fw(t){if(1===t.length){const n=t[0];if(aF(n))return{args:n,keys:null};if(function dF(t){return t&&"object"==typeof t&&lF(t)===cF}(n)){const e=uF(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:fF}=Array;function hw(t){return Ee(n=>function hF(t,n){return fF(n)?t(...n):t(n)}(t,n))}function pw(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function mw(...t){const n=qs(t),e=_g(t),{args:i,keys:r}=fw(t);if(0===i.length)return an([],n);const o=new W(function pF(t,n,e=X){return i=>{gw(n,()=>{const{length:r}=t,o=new Array(r);let s=r,a=r;for(let l=0;l{const c=an(t[l],n);let b=!1;c.subscribe(ae(i,C=>{o[l]=C,b||(b=!0,a--),a||i.next(e(o.slice()))},()=>{--s||i.complete()}))},i)},i)}}(i,n,r?s=>pw(r,s):X));return e?o.pipe(hw(e)):o}function gw(t,n,e){t?Fi(e,t,n):n()}function Pp(...t){return function mF(){return Lo(1)}()(an(t,qs(t)))}function vw(t){return new W(n=>{si(t()).subscribe(n)})}function Wa(t,n){const e=E(t)?t:()=>t,i=r=>r.error(e());return new W(n?r=>n.schedule(i,0,r):i)}function Fp(){return oe((t,n)=>{let e=null;t._refCount++;const i=ae(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,o=e;e=null,r&&(!o||r===o)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class yw extends W{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,te(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new A;const e=this.getSubject();n.add(this.source.subscribe(ae(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=A.EMPTY)}return n}refCount(){return Fp()(this)}}function ur(t,n){return oe((e,i)=>{let r=null,o=0,s=!1;const a=()=>s&&!r&&i.complete();e.subscribe(ae(i,l=>{r?.unsubscribe();let c=0;const b=o++;si(t(l,b)).subscribe(r=ae(i,C=>i.next(n?n(l,C,b,c++):C),()=>{r=null,a()}))},()=>{s=!0,a()}))})}function Ga(t){return t<=0?()=>gr:oe((n,e)=>{let i=0;n.subscribe(ae(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function au(t){return oe((n,e)=>{let i=!1;n.subscribe(ae(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function _w(t=vF){return oe((n,e)=>{let i=!1;n.subscribe(ae(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function vF(){return new su}function eo(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ar((r,o)=>t(r,o,i)):X,Ga(1),e?au(n):_w(()=>new su))}function Cn(t,n,e){const i=E(t)||n||e?{next:t,error:n,complete:e}:t;return i?oe((r,o)=>{var s;null===(s=i.subscribe)||void 0===s||s.call(i);let a=!0;r.subscribe(ae(o,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),o.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),o.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),o.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):X}function to(t){return oe((n,e)=>{let o,i=null,r=!1;i=n.subscribe(ae(e,void 0,void 0,s=>{o=si(t(s,to(t)(n))),i?(i.unsubscribe(),i=null,o.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,o.subscribe(e))})}function yF(t,n,e,i,r){return(o,s)=>{let a=e,l=n,c=0;o.subscribe(ae(s,b=>{const C=c++;l=a?t(l,b,C):(a=!0,b),i&&s.next(l)},r&&(()=>{a&&s.next(l),s.complete()})))}}function bw(t,n){return oe(yF(t,n,arguments.length>=2,!0))}function Lp(t){return t<=0?()=>gr:oe((n,e)=>{let i=[];n.subscribe(ae(e,r=>{i.push(r),t{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function ww(t,n){const e=arguments.length>=2;return i=>i.pipe(t?Ar((r,o)=>t(r,o,i)):X,Lp(1),e?au(n):_w(()=>new su))}function lu(t){return oe((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const ht="primary",Ka=Symbol("RouteTitle");class wF{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Ts(t){return new wF(t)}function xF(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.lengthi[o]===r)}return t===n}function Cw(t){return Array.prototype.concat.apply([],t)}function Ew(t){return t.length>0?t[t.length-1]:null}function Mn(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function no(t){return _h(t)?t:Da(t)?an(Promise.resolve(t)):We(t)}const SF={exact:function Tw(t,n,e){if(!Eo(t.segments,n.segments)||!cu(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!Tw(t.children[i],n.children[i],e))return!1;return!0},subset:Iw},Sw={exact:function DF(t,n){return dr(t,n)},subset:function TF(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>xw(t[e],n[e]))},ignored:()=>!0};function Dw(t,n,e){return SF[e.paths](t.root,n.root,e.matrixParams)&&Sw[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function Iw(t,n,e){return Mw(t,n,n.segments,e)}function Mw(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!Eo(r,e)||n.hasChildren()||!cu(r,e,i))}if(t.segments.length===e.length){if(!Eo(t.segments,e)||!cu(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!Iw(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!!(Eo(t.segments,r)&&cu(t.segments,r,i)&&t.children[ht])&&Mw(t.children[ht],n,o,i)}}function cu(t,n,e){return n.every((i,r)=>Sw[e](t[r].parameters,i.parameters))}class Co{constructor(n,e,i){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ts(this.queryParams)),this._queryParamMap}toString(){return kF.serialize(this)}}class mt{constructor(n,e){this.segments=n,this.children=e,this.parent=null,Mn(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return uu(this)}}class Qa{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Ts(this.parameters)),this._parameterMap}toString(){return Rw(this)}}function Eo(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let kw=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:function(){return new Vp},providedIn:"root"}),t})();class Vp{parse(n){const e=new BF(n);return new Co(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Ya(n.root,!0)}`,i=function RF(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${du(e)}=${du(r)}`).join("&"):`${du(e)}=${du(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function OF(t){return encodeURI(t)}(n.fragment)}`:""}`}}const kF=new Vp;function uu(t){return t.segments.map(n=>Rw(n)).join("/")}function Ya(t,n){if(!t.hasChildren())return uu(t);if(n){const e=t.children[ht]?Ya(t.children[ht],!1):"",i=[];return Mn(t.children,(r,o)=>{o!==ht&&i.push(`${o}:${Ya(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function MF(t,n){let e=[];return Mn(t.children,(i,r)=>{r===ht&&(e=e.concat(n(i,r)))}),Mn(t.children,(i,r)=>{r!==ht&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===ht?[Ya(t.children[ht],!1)]:[`${r}:${Ya(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ht]?`${uu(t)}/${e[0]}`:`${uu(t)}/(${e.join("//")})`}}function Ow(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function du(t){return Ow(t).replace(/%3B/gi,";")}function Bp(t){return Ow(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function fu(t){return decodeURIComponent(t)}function Aw(t){return fu(t.replace(/\+/g,"%20"))}function Rw(t){return`${Bp(t.path)}${function AF(t){return Object.keys(t).map(n=>`;${Bp(n)}=${Bp(t[n])}`).join("")}(t.parameters)}`}const PF=/^[^\/()?;=#]+/;function hu(t){const n=t.match(PF);return n?n[0]:""}const FF=/^[^=?&#]+/,NF=/^[^&#]+/;class BF{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new mt([],{}):new mt([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[ht]=new mt(n,e)),i}parseSegment(){const n=hu(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new xe(4009,!1);return this.capture(n),new Qa(fu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=hu(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=hu(this.remaining);r&&(i=r,this.capture(i))}n[fu(e)]=fu(i)}parseQueryParam(n){const e=function LF(t){const n=t.match(FF);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function VF(t){const n=t.match(NF);return n?n[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=Aw(e),o=Aw(i);if(n.hasOwnProperty(r)){let s=n[r];Array.isArray(s)||(s=[s],n[r]=s),s.push(o)}else n[r]=o}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=hu(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new xe(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=ht);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[ht]:new mt([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new xe(4011,!1)}}function Hp(t){return t.segments.length>0?new mt([],{[ht]:t}):t}function pu(t){const n={};for(const i of Object.keys(t.children)){const o=pu(t.children[i]);(o.segments.length>0||o.hasChildren())&&(n[i]=o)}return function HF(t){if(1===t.numberOfChildren&&t.children[ht]){const n=t.children[ht];return new mt(t.segments.concat(n.segments),n.children)}return t}(new mt(t.segments,n))}function So(t){return t instanceof Co}function UF(t,n,e,i,r){if(0===e.length)return Is(n.root,n.root,n.root,i,r);const o=function Lw(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Fw(!0,0,t);let n=0,e=!1;const i=t.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return Mn(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?n++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new Fw(e,n,i)}(e);return o.toRoot()?Is(n.root,n.root,new mt([],{}),i,r):function s(l){const c=function qF(t,n,e,i){if(t.isAbsolute)return new Ms(n.root,!0,0);if(-1===i)return new Ms(e,e===n.root,0);return function Nw(t,n,e){let i=t,r=n,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new xe(4005,!1);r=i.segments.length}return new Ms(i,!1,r-o)}(e,i+(Za(t.commands[0])?0:1),t.numberOfDoubleDots)}(o,n,t.snapshot?._urlSegment,l),b=c.processChildren?Ja(c.segmentGroup,c.index,o.commands):jp(c.segmentGroup,c.index,o.commands);return Is(n.root,c.segmentGroup,b,i,r)}(t.snapshot?._lastPathIndex)}function Za(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Xa(t){return"object"==typeof t&&null!=t&&t.outlets}function Is(t,n,e,i,r){let s,o={};i&&Mn(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(b=>`${b}`):`${l}`}),s=t===n?e:Pw(t,n,e);const a=Hp(pu(s));return new Co(a,o,r)}function Pw(t,n,e){const i={};return Mn(t.children,(r,o)=>{i[o]=r===n?e:Pw(r,n,e)}),new mt(t.segments,i)}class Fw{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Za(i[0]))throw new xe(4003,!1);const r=i.find(Xa);if(r&&r!==Ew(i))throw new xe(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ms{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function jp(t,n,e){if(t||(t=new mt([],{})),0===t.segments.length&&t.hasChildren())return Ja(t,n,e);const i=function GF(t,n,e){let i=0,r=n;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=t.segments[r],a=e[i];if(Xa(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!Bw(l,c,s))return o;i+=2}else{if(!Bw(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=jp(t.children[s],n,o))}),Mn(t.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new mt(t.segments,r)}}function Up(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=Up(new mt([],{}),0,e))}),n}function Vw(t){const n={};return Mn(t,(e,i)=>n[i]=`${e}`),n}function Bw(t,n,e){return t==e.path&&dr(n,e.parameters)}class Rr{constructor(n,e){this.id=n,this.url=e}}class $p extends Rr{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Do extends Rr{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class mu extends Rr{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Hw extends Rr{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class QF extends Rr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class YF extends Rr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZF extends Rr{constructor(n,e,i,r,o){super(n,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class XF extends Rr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JF extends Rr{constructor(n,e,i,r){super(n,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class eL{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class tL{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class nL{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iL{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class rL{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oL{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class zw{constructor(n,e,i){this.routerEvent=n,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class jw{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=qp(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=qp(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=Wp(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return Wp(n,this._root).map(e=>e.value)}}function qp(t,n){if(t===n.value)return n;for(const e of n.children){const i=qp(t,e);if(i)return i}return null}function Wp(t,n){if(t===n.value)return[n];for(const e of n.children){const i=Wp(t,e);if(i.length)return i.unshift(n),i}return[]}class Pr{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function ks(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class Uw extends jw{constructor(n,e){super(n),this.snapshot=e,Gp(this,n)}toString(){return this.snapshot.toString()}}function $w(t,n){const e=function aL(t,n){const s=new gu([],{},{},"",{},ht,n,null,t.root,-1,{});return new Ww("",new Pr(s,[]))}(t,n),i=new Xi([new Qa("",{})]),r=new Xi({}),o=new Xi({}),s=new Xi({}),a=new Xi(""),l=new To(i,r,s,a,o,ht,n,e.root);return l.snapshot=e.root,new Uw(new Pr(l,[]),e)}class To{constructor(n,e,i,r,o,s,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(Ee(c=>c[Ka]))??We(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Ee(n=>Ts(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Ee(n=>Ts(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function qw(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function lL(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class gu{constructor(n,e,i,r,o,s,a,l,c,b,C,B){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[Ka],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=b,this._correctedLastPathIndex=B??b,this._resolve=C}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ts(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ts(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ww extends jw{constructor(n,e){super(e),this.url=n,Gp(this,e)}toString(){return Gw(this._root)}}function Gp(t,n){n.value._routerState=t,n.children.forEach(e=>Gp(t,e))}function Gw(t){const n=t.children.length>0?` { ${t.children.map(Gw).join(", ")} } `:"";return`${t.value}${n}`}function Kp(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,dr(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),dr(n.params,e.params)||t.params.next(e.params),function CF(t,n){if(t.length!==n.length)return!1;for(let e=0;edr(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Qp(t.parent,n.parent))}function el(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function uL(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return el(t,i,r);return el(t,i)})}(t,n,e);return new Pr(i,r)}{if(t.shouldAttach(n.value)){const o=t.retrieve(n.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>el(t,a)),s}}const i=function dL(t){return new To(new Xi(t.url),new Xi(t.params),new Xi(t.queryParams),new Xi(t.fragment),new Xi(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(o=>el(t,o));return new Pr(i,r)}}const Yp="ngNavigationCancelingError";function Kw(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=So(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Qw(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function Qw(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[Yp]=!0,i.cancellationCode=n,e&&(i.url=e),i}function Yw(t){return Zw(t)&&So(t.url)}function Zw(t){return t&&t[Yp]}class fL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new tl,this.attachRef=null}}let tl=(()=>{class t{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new fL,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const vu=!1;let Zp=(()=>{class t{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new Fe,this.deactivateEvents=new Fe,this.attachEvents=new Fe,this.detachEvents=new Fe,this.name=r||ht,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new xe(4012,vu);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new xe(4012,vu);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new xe(4012,vu);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new xe(4013,vu);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new hL(e,a,r.injector);if(i&&function pL(t){return!!t.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(fe(tl),fe(Gi),function ta(t){return function pD(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=en({type:t,selectors:[["ng-component"]],standalone:!0,features:[W_],decls:1,vars:0,template:function(e,i){1&e&&dt(0,"router-outlet")},dependencies:[Zp],encapsulation:2}),t})();function Xw(t,n){return t.providers&&!t._injector&&(t._injector=kc(t.providers,n,`Route: ${t.path}`)),t._injector??n}function em(t){const n=t.children&&t.children.map(em),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==ht&&(e.component=Xp),e}function ki(t){return t.outlet||ht}function Jw(t,n){const e=t.filter(i=>ki(i)===n);return e.push(...t.filter(i=>ki(i)!==n)),e}function nl(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class _L{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Kp(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=ks(e);n.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),Mn(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=ks(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,o=ks(n);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(n,e,i){const r=ks(e);n.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new oL(o.value.snapshot))}),n.children.length&&this.forwardEvent(new iL(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,o=e?e.value:null;if(Kp(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Kp(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=nl(r.snapshot),l=a?.get(ma)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,i)}}class ex{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class yu{constructor(n,e){this.component=n,this.route=e}}function bL(t,n,e){const i=t._root;return il(i,n?n._root:null,e,[i.value])}function Os(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function yS(t){return null!==Rl(t)}(t)?n.get(t):t:i}function il(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=ks(n);return t.children.forEach(s=>{(function xL(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function CL(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!Eo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!Eo(t.url,n.url)||!dr(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qp(t,n)||!dr(t.queryParams,n.queryParams);default:return!Qp(t,n)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new ex(i)):(o.data=s.data,o._resolvedData=s._resolvedData),il(t,n,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new yu(a.outlet.component,s))}else s&&rl(n,a,r),r.canActivateChecks.push(new ex(i)),il(t,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),Mn(o,(s,a)=>rl(s,e.getContext(a),r)),r}function rl(t,n,e){const i=ks(t),r=t.value;Mn(i,(o,s)=>{rl(o,r.component?n?n.children.getContext(s):null:n,e)}),e.canDeactivateChecks.push(new yu(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ol(t){return"function"==typeof t}function tm(t){return t instanceof su||"EmptyError"===t?.name}const _u=Symbol("INITIAL_VALUE");function As(){return ur(t=>mw(t.map(n=>n.pipe(Ga(1),function gF(...t){const n=qs(t);return oe((e,i)=>{(n?Pp(t,e,n):Pp(t,e)).subscribe(i)})}(_u)))).pipe(Ee(n=>{for(const e of n)if(!0!==e){if(e===_u)return _u;if(!1===e||e instanceof Co)return e}return!0}),Ar(n=>n!==_u),Ga(1)))}function tx(t){return function re(...t){return ee(t)}(Cn(n=>{if(So(n))throw Kw(0,n)}),Ee(n=>!0===n))}const nm={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function nx(t,n,e,i,r){const o=im(t,n,e);return o.matched?function HL(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?We(r.map(s=>{const a=Os(s,t);return no(function ML(t){return t&&ol(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(As(),tx()):We(!0)}(i=Xw(n,i),n,e).pipe(Ee(s=>!0===s?o:{...nm})):We(o)}function im(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...nm}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||xF)(e,t,n);if(!r)return{...nm};const o={};Mn(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function bu(t,n,e,i,r="corrected"){if(e.length>0&&function UL(t,n,e){return e.some(i=>wu(t,n,i)&&ki(i)!==ht)}(t,e,i)){const s=new mt(n,function jL(t,n,e,i){const r={};r[ht]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const o of e)if(""===o.path&&ki(o)!==ht){const s=new mt([],{});s._sourceSegment=t,s._segmentIndexShift=n.length,r[ki(o)]=s}return r}(t,n,i,new mt(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function $L(t,n,e){return e.some(i=>wu(t,n,i))}(t,e,i)){const s=new mt(t.segments,function zL(t,n,e,i,r,o){const s={};for(const a of i)if(wu(t,e,a)&&!r[ki(a)]){const l=new mt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===o?t.segments.length:n.length,s[ki(a)]=l}return{...r,...s}}(t,n,e,i,t.children,r));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const o=new mt(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=n.length,{segmentGroup:o,slicedSegments:e}}function wu(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function ix(t,n,e,i){return!!(ki(t)===i||i!==ht&&wu(n,e,t))&&("**"===t.path||im(n,t,e).matched)}function rx(t,n,e){return 0===n.length&&!t.children[e]}const xu=!1;class Cu{constructor(n){this.segmentGroup=n||null}}class ox{constructor(n){this.urlTree=n}}function sl(t){return Wa(new Cu(t))}function sx(t){return Wa(new ox(t))}class KL{constructor(n,e,i,r,o){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const n=bu(this.urlTree.root,[],[],this.config).segmentGroup,e=new mt(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,ht).pipe(Ee(o=>this.createUrlTree(pu(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(to(o=>{if(o instanceof ox)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof Cu?this.noMatchError(o):o}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,ht).pipe(Ee(r=>this.createUrlTree(pu(r),n.queryParams,n.fragment))).pipe(to(r=>{throw r instanceof Cu?this.noMatchError(r):r}))}noMatchError(n){return new xe(4002,xu)}createUrlTree(n,e,i){const r=Hp(n);return new Co(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(Ee(o=>new mt([],o))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return an(r).pipe(Xr(o=>{const s=i.children[o],a=Jw(e,o);return this.expandSegmentGroup(n,a,s,o).pipe(Ee(l=>({segment:l,outlet:o})))}),bw((o,s)=>(o[s.outlet]=s.segment,o),{}),ww())}expandSegment(n,e,i,r,o,s){return an(i).pipe(Xr(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,o,s).pipe(to(c=>{if(c instanceof Cu)return We(null);throw c}))),eo(a=>!!a),to((a,l)=>{if(tm(a))return rx(e,r,o)?We(new mt([],{})):sl(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,o,s,a){return ix(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s):sl(e):sl(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?sx(o):this.lineralizeSegments(i,o).pipe(Dn(s=>{const a=new mt(s,{});return this.expandSegment(n,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:b}=im(e,r,o);if(!a)return sl(e);const C=this.applyRedirectCommands(l,r.redirectTo,b);return r.redirectTo.startsWith("/")?sx(C):this.lineralizeSegments(r,C).pipe(Dn(B=>this.expandSegment(n,e,i,B.concat(c),s,!1)))}matchSegmentAgainstRoute(n,e,i,r,o){return"**"===i.path?(n=Xw(i,n),i.loadChildren?(i._loadedRoutes?We({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(Ee(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new mt(r,{})))):We(new mt(r,{}))):nx(e,i,r,n).pipe(ur(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(n=i._injector??n,i,r).pipe(Dn(b=>{const C=b.injector??n,B=b.routes,{segmentGroup:j,slicedSegments:Q}=bu(e,a,l,B),ie=new mt(j.segments,j.children);if(0===Q.length&&ie.hasChildren())return this.expandChildren(C,B,ie).pipe(Ee(de=>new mt(a,de)));if(0===B.length&&0===Q.length)return We(new mt(a,{}));const se=ki(i)===o;return this.expandSegment(C,ie,B,Q,se?ht:o,!0).pipe(Ee(we=>new mt(a.concat(we.segments),we.children)))})):sl(e)))}getChildConfig(n,e,i){return e.children?We({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?We({routes:e._loadedRoutes,injector:e._loadedInjector}):function BL(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?We(!0):We(r.map(s=>{const a=Os(s,t);return no(function SL(t){return t&&ol(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(As(),tx())}(n,e,i).pipe(Dn(r=>r?this.configLoader.loadChildren(n,e).pipe(Cn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function WL(t){return Wa(Qw(xu,3))}())):We({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return We(i);if(r.numberOfChildren>1||!r.children[ht])return Wa(new xe(4e3,xu));r=r.children[ht]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const o=this.createSegmentGroup(n,e.root,i,r);return new Co(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return Mn(n,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(n,e,i,r){const o=this.createSegments(n,e.segments,i,r);let s={};return Mn(e.children,(a,l)=>{s[l]=this.createSegmentGroup(n,a,i,r)}),new mt(o,s)}createSegments(n,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(n,o,r):this.findOrReturn(o,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new xe(4001,xu);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class YL{}class JL{constructor(n,e,i,r,o,s,a,l){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const n=bu(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ht).pipe(Ee(e=>{if(null===e)return null;const i=new gu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ht,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Pr(i,e),o=new Ww(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(n){const e=n.value,i=qw(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return an(Object.keys(i.children)).pipe(Xr(r=>{const o=i.children[r],s=Jw(e,r);return this.processSegmentGroup(n,s,o,r)}),bw((r,o)=>r&&o?(r.push(...o),r):null),function _F(t,n=!1){return oe((e,i)=>{let r=0;e.subscribe(ae(i,o=>{const s=t(o,r++);(s||n)&&i.next(o),!s&&i.complete()}))})}(r=>null!==r),au(null),ww(),Ee(r=>{if(null===r)return null;const o=ax(r);return function eN(t){t.sort((n,e)=>n.value.outlet===ht?-1:e.value.outlet===ht?1:n.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(n,e,i,r,o){return an(e).pipe(Xr(s=>this.processSegmentAgainstRoute(s._injector??n,s,i,r,o)),eo(s=>!!s),to(s=>{if(tm(s))return rx(i,r,o)?We([]):We(null);throw s}))}processSegmentAgainstRoute(n,e,i,r,o){if(e.redirectTo||!ix(e,i,r,o))return We(null);let s;if("**"===e.path){const a=r.length>0?Ew(r).parameters:{},l=cx(i)+r.length;s=We({snapshot:new gu(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,dx(e),ki(e),e.component??e._loadedComponent??null,e,lx(i),l,fx(e),l),consumedSegments:[],remainingSegments:[]})}else s=nx(i,e,r,n).pipe(Ee(({matched:a,consumedSegments:l,remainingSegments:c,parameters:b})=>{if(!a)return null;const C=cx(i)+l.length;return{snapshot:new gu(l,b,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,dx(e),ki(e),e.component??e._loadedComponent??null,e,lx(i),C,fx(e),C),consumedSegments:l,remainingSegments:c}}));return s.pipe(ur(a=>{if(null===a)return We(null);const{snapshot:l,consumedSegments:c,remainingSegments:b}=a;n=e._injector??n;const C=e._loadedInjector??n,B=function tN(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:j,slicedSegments:Q}=bu(i,c,b,B.filter(se=>void 0===se.redirectTo),this.relativeLinkResolution);if(0===Q.length&&j.hasChildren())return this.processChildren(C,B,j).pipe(Ee(se=>null===se?null:[new Pr(l,se)]));if(0===B.length&&0===Q.length)return We([new Pr(l,[])]);const ie=ki(e)===o;return this.processSegment(C,B,j,Q,ie?ht:o).pipe(Ee(se=>null===se?null:[new Pr(l,se)]))}))}}function nN(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function ax(t){const n=[],e=new Set;for(const i of t){if(!nN(i)){n.push(i);continue}const r=n.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=ax(i.children);n.push(new Pr(i.value,r))}return n.filter(i=>!e.has(i))}function lx(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function cx(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function dx(t){return t.data||{}}function fx(t){return t.resolve||{}}function hx(t){return"string"==typeof t.title||null===t.title}function rm(t){return ur(n=>{const e=t(n);return e?an(e).pipe(Ee(()=>n)):We(n)})}let px=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===ht);return i}getResolvedTitleForRoute(e){return e.data[Ka]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:function(){return nn(mx)},providedIn:"root"}),t})(),mx=(()=>{class t extends px{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(Re(X1))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class uN{}class fN extends class dN{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}{}const Su=new qe("",{providedIn:"root",factory:()=>({})}),om=new qe("ROUTES");let sm=(()=>{class t{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return We(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=no(e.loadComponent()).pipe(Cn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),lu(()=>{this.componentLoaders.delete(e)})),r=new yw(i,()=>new K).pipe(Fp());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return We({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Ee(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,b=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=Cw(l.get(om,[],Qe.Self|Qe.Optional)));return{routes:c.map(em),injector:l}}),lu(()=>{this.childrenLoaders.delete(i)})),s=new yw(o,()=>new K).pipe(Fp());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return no(e()).pipe(Dn(i=>i instanceof $_||Array.isArray(i)?We(i):an(this.compiler.compileModuleAsync(i))))}}return t.\u0275fac=function(e){return new(e||t)(Re(ei),Re(qh))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();class pN{}class mN{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,e){return n}}function gN(t){throw t}function vN(t,n,e){return n.parse("/")}const yN={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},_N={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function vx(){const t=nn(kw),n=nn(tl),e=nn(sp),i=nn(ei),r=nn(qh),o=nn(om,{optional:!0})??[],s=nn(Su,{optional:!0})??{},a=nn(mx),l=nn(px,{optional:!0}),c=nn(pN,{optional:!0}),b=nn(uN,{optional:!0}),C=new En(null,t,n,e,i,r,Cw(o));return c&&(C.urlHandlingStrategy=c),b&&(C.routeReuseStrategy=b),C.titleStrategy=l??a,function bN(t,n){t.errorHandler&&(n.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(n.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(n.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(n.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(n.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(n.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(n.canceledNavigationResolution=t.canceledNavigationResolution)}(s,C),C}let En=(()=>{class t{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new K,this.errorHandler=gN,this.malformedUriErrorHandler=vN,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>We(void 0),this.urlHandlingStrategy=new mN,this.routeReuseStrategy=new fN,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(sm),this.configLoader.onLoadEndListener=B=>this.triggerEvent(new tL(B)),this.configLoader.onLoadStartListener=B=>this.triggerEvent(new eL(B)),this.ngModule=s.get(bo),this.console=s.get(WO);const C=s.get(Ot);this.isNgZoneEnabled=C instanceof Ot&&Ot.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function EF(){return new Co(new mt([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=$w(this.currentUrlTree,this.rootComponentType),this.transitions=new Xi({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(Ar(r=>0!==r.id),Ee(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),ur(r=>{let o=!1,s=!1;return We(r).pipe(Cn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ur(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return yx(a.source)&&(this.browserUrlTree=a.extractedUrl),We(a).pipe(ur(C=>{const B=this.transitions.getValue();return i.next(new $p(C.id,this.serializeUrl(C.extractedUrl),C.source,C.restoredState)),B!==this.transitions.getValue()?gr:Promise.resolve(C)}),function QL(t,n,e,i){return ur(r=>function GL(t,n,e,i,r){return new KL(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(Ee(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Cn(C=>{this.currentNavigation={...this.currentNavigation,finalUrl:C.urlAfterRedirects},r.urlAfterRedirects=C.urlAfterRedirects}),function rN(t,n,e,i,r,o){return Dn(s=>function XL(t,n,e,i,r,o,s="emptyOnly",a="legacy"){return new JL(t,n,e,i,r,s,a,o).recognize().pipe(ur(l=>null===l?function ZL(t){return new W(n=>n.error(t))}(new YL):We(l)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(Ee(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),Cn(C=>{if(r.targetSnapshot=C.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!C.extras.skipLocationChange){const j=this.urlHandlingStrategy.merge(C.urlAfterRedirects,C.rawUrl);this.setBrowserUrl(j,C)}this.browserUrlTree=C.urlAfterRedirects}const B=new QF(C.id,this.serializeUrl(C.extractedUrl),this.serializeUrl(C.urlAfterRedirects),C.targetSnapshot);i.next(B)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:B,extractedUrl:j,source:Q,restoredState:ie,extras:se}=a,ce=new $p(B,this.serializeUrl(j),Q,ie);i.next(ce);const we=$w(j,this.rootComponentType).snapshot;return We(r={...a,targetSnapshot:we,urlAfterRedirects:j,extras:{...se,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),gr}),Cn(a=>{const l=new YF(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),Ee(a=>r={...a,guards:bL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function OL(t,n){return Dn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?We({...e,guardsResult:!0}):function AL(t,n,e,i){return an(t).pipe(Dn(r=>function VL(t,n,e,i,r){const o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return o&&0!==o.length?We(o.map(a=>{const l=nl(n)??r,c=Os(a,l);return no(function IL(t){return t&&ol(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(eo())})).pipe(As()):We(!0)}(r.component,r.route,e,n,i)),eo(r=>!0!==r,!0))}(s,i,r,t).pipe(Dn(a=>a&&function EL(t){return"boolean"==typeof t}(a)?function RL(t,n,e,i){return an(n).pipe(Xr(r=>Pp(function FL(t,n){return null!==t&&n&&n(new nL(t)),We(!0)}(r.route.parent,i),function PL(t,n){return null!==t&&n&&n(new rL(t)),We(!0)}(r.route,i),function NL(t,n,e){const i=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>function wL(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(s)).filter(s=>null!==s).map(s=>vw(()=>We(s.guards.map(l=>{const c=nl(s.node)??e,b=Os(l,c);return no(function TL(t){return t&&ol(t.canActivateChild)}(b)?b.canActivateChild(i,t):c.runInContext(()=>b(i,t))).pipe(eo())})).pipe(As())));return We(o).pipe(As())}(t,r.path,e),function LL(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return We(!0);const r=i.map(o=>vw(()=>{const s=nl(n)??e,a=Os(o,s);return no(function DL(t){return t&&ol(t.canActivate)}(a)?a.canActivate(n,t):s.runInContext(()=>a(n,t))).pipe(eo())}));return We(r).pipe(As())}(t,r.route,e))),eo(r=>!0!==r,!0))}(i,o,t,n):We(a)),Ee(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Cn(a=>{if(r.guardsResult=a.guardsResult,So(a.guardsResult))throw Kw(0,a.guardsResult);const l=new ZF(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Ar(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),rm(a=>{if(a.guards.canActivateChecks.length)return We(a).pipe(Cn(l=>{const c=new XF(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),ur(l=>{let c=!1;return We(l).pipe(function oN(t,n){return Dn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return We(e);let o=0;return an(r).pipe(Xr(s=>function sN(t,n,e,i){const r=t.routeConfig,o=t._resolve;return void 0!==r?.title&&!hx(r)&&(o[Ka]=r.title),function aN(t,n,e,i){const r=function lN(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return We({});const o={};return an(r).pipe(Dn(s=>function cN(t,n,e,i){const r=nl(n)??i,o=Os(t,r);return no(o.resolve?o.resolve(n,e):r.runInContext(()=>o(n,e)))}(t[s],n,e,i).pipe(eo(),Cn(a=>{o[s]=a}))),Lp(1),function bF(t){return Ee(()=>t)}(o),to(s=>tm(s)?gr:Wa(s)))}(o,t,n,i).pipe(Ee(s=>(t._resolvedData=s,t.data=qw(t,e).resolve,r&&hx(r)&&(t.data[Ka]=r.title),null)))}(s.route,i,t,n)),Cn(()=>o++),Lp(1),Dn(s=>o===r.length?We(e):gr))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Cn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),Cn(l=>{const c=new JF(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),rm(a=>{const l=c=>{const b=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&b.push(this.configLoader.loadComponent(c.routeConfig).pipe(Cn(C=>{c.component=C}),Ee(()=>{})));for(const C of c.children)b.push(...l(C));return b};return mw(l(a.targetSnapshot.root)).pipe(au(),Ga(1))}),rm(()=>this.afterPreactivation()),Ee(a=>{const l=function cL(t,n,e){const i=el(t,n._root,e?e._root:void 0);return new Uw(i,n)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),Cn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,n,e)=>Ee(i=>(new _L(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Cn({next(){o=!0},complete(){o=!0}}),lu(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),to(a=>{if(s=!0,Zw(a)){Yw(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new mu(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),Yw(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),b={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yx(r.source)};this.scheduleNavigation(c,"imperative",null,b,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new Hw(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return gr}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(em),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,b=l?this.currentUrlTree.fragment:s;let C=null;switch(a){case"merge":C={...this.currentUrlTree.queryParams,...o};break;case"preserve":C=this.currentUrlTree.queryParams;break;default:C=o||null}return null!==C&&(C=this.removeEmptyProps(C)),UF(c,this.currentUrlTree,e,C,b??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=So(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function wN(t){for(let n=0;n{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Do(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((B,j)=>{a=B,l=j});const b=++this.navigationId;let C;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),C=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):C=0,this.setTransition({id:b,targetPageId:C,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(B=>Promise.reject(B))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new mu(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){Gf()},t.\u0275prov=Ne({token:t,factory:function(){return vx()},providedIn:"root"}),t})();function yx(t){return"imperative"!==t}class _x{}let EN=(()=>{class t{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ar(e=>e instanceof Do),Xr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=kc(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return an(r).pipe(Lo())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):We(null);const o=r.pipe(Dn(s=>null===s?We(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?an([o,this.loader.loadComponent(i)]).pipe(Lo()):o})}}return t.\u0275fac=function(e){return new(e||t)(Re(En),Re(qh),Re(qr),Re(_x),Re(sm))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const cm=new qe("");let bx=(()=>{class t{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof $p?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Do&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zw&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new zw(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){Gf()},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();function Rs(t,n){return{\u0275kind:t,\u0275providers:n}}function um(t){return[{provide:om,multi:!0,useValue:t}]}function xx(){const t=nn(ei);return n=>{const e=t.get(Va);if(n!==e.components[0])return;const i=t.get(En),r=t.get(Cx);1===t.get(dm)&&i.initialNavigation(),t.get(Ex,null,Qe.Optional)?.setUpPreloading(),t.get(cm,null,Qe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const Cx=new qe("",{factory:()=>new K}),dm=new qe("",{providedIn:"root",factory:()=>1});const Ex=new qe("");function IN(t){return Rs(0,[{provide:Ex,useExisting:EN},{provide:_x,useExisting:t}])}const Sx=new qe("ROUTER_FORROOT_GUARD"),MN=[sp,{provide:kw,useClass:Vp},{provide:En,useFactory:vx},tl,{provide:To,useFactory:function wx(t){return t.routerState.root},deps:[En]},sm];function kN(){return new zb("Router",En)}let Ps=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[MN,[],um(e),{provide:Sx,useFactory:PN,deps:[[En,new la,new ca]]},{provide:Su,useValue:i||{}},i?.useHash?{provide:xo,useClass:PA}:{provide:xo,useClass:h1},{provide:cm,useFactory:()=>{const t=nn(En),n=nn(YR),e=nn(Su);return e.scrollOffset&&n.setOffset(e.scrollOffset),new bx(t,n,e)}},i?.preloadingStrategy?IN(i.preloadingStrategy).\u0275providers:[],{provide:zb,multi:!0,useFactory:kN},i?.initialNavigation?FN(i):[],[{provide:Dx,useFactory:xx},{provide:Rb,multi:!0,useExisting:Dx}]]}}static forChild(e){return{ngModule:t,providers:[um(e)]}}}return t.\u0275fac=function(e){return new(e||t)(Re(Sx,8))},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[Xp]}),t})();function PN(t){return"guarded"}function FN(t){return["disabled"===t.initialNavigation?Rs(3,[{provide:Pc,multi:!0,useFactory:()=>{const n=nn(En);return()=>{n.setUpLocationChangeListener()}}},{provide:dm,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Rs(2,[{provide:dm,useValue:0},{provide:Pc,multi:!0,deps:[ei],useFactory:n=>{const e=n.get(AA,Promise.resolve());let i=!1;return()=>e.then(()=>new Promise(o=>{const s=n.get(En),a=n.get(Cx);(function r(o){n.get(En).events.pipe(Ar(a=>a instanceof Do||a instanceof mu||a instanceof Hw),Ee(a=>a instanceof Do||a instanceof mu&&(0===a.code||1===a.code)&&null),Ar(a=>null!==a),Ga(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?We(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const Dx=new qe("");class St{static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var o,s,a,i=Array.isArray(n),r=Array.isArray(e);if(i&&r){if((s=n.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(n[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=n instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var b=n instanceof RegExp,C=e instanceof RegExp;if(b!=C)return!1;if(b&&C)return n.toString()==e.toString();var B=Object.keys(n);if((s=B.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,B[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(n[a=B[o]],e[a]))return!1;return!0}return n!=n&&e!=e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(-1==e.indexOf("."))return n[e];{let i=e.split("."),r=n;for(let o=0,s=i.length;o=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,n),o=!0;break}o||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e)for(let r=0;r-1&&(n=n.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),n}static isEmpty(n){return null==n||""===n||Array.isArray(n)&&0===n.length||!(n instanceof Date)&&"object"==typeof n&&0===Object.keys(n).length}static isNotEmpty(n){return!this.isEmpty(n)}}var Tx=0;function fm(){return"pr_id_"+ ++Tx}var gi=function NN(){let t=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=t.length>0?t[t.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return t.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{t=t.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const VN=["*"];let Bn=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.IN="in",t.LESS_THAN="lt",t.LESS_THAN_OR_EQUAL_TO="lte",t.GREATER_THAN="gt",t.GREATER_THAN_OR_EQUAL_TO="gte",t.BETWEEN="between",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.DATE_IS="dateIs",t.DATE_IS_NOT="dateIsNot",t.DATE_BEFORE="dateBefore",t.DATE_AFTER="dateAfter",t})(),al=(()=>{class t{constructor(){this.ripple=!1,this.filterMatchModeOptions={text:[Bn.STARTS_WITH,Bn.CONTAINS,Bn.NOT_CONTAINS,Bn.ENDS_WITH,Bn.EQUALS,Bn.NOT_EQUALS],numeric:[Bn.EQUALS,Bn.NOT_EQUALS,Bn.LESS_THAN,Bn.LESS_THAN_OR_EQUAL_TO,Bn.GREATER_THAN,Bn.GREATER_THAN_OR_EQUAL_TO],date:[Bn.DATE_IS,Bn.DATE_IS_NOT,Bn.DATE_BEFORE,Bn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new K,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Oi=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.NO_FILTER="noFilter",t.LT="lt",t.LTE="lte",t.GT="gt",t.GTE="gte",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.CLEAR="clear",t.APPLY="apply",t.MATCH_ALL="matchAll",t.MATCH_ANY="matchAny",t.ADD_RULE="addRule",t.REMOVE_RULE="removeRule",t.ACCEPT="accept",t.REJECT="reject",t.CHOOSE="choose",t.UPLOAD="upload",t.CANCEL="cancel",t.DAY_NAMES="dayNames",t.DAY_NAMES_SHORT="dayNamesShort",t.DAY_NAMES_MIN="dayNamesMin",t.MONTH_NAMES="monthNames",t.MONTH_NAMES_SHORT="monthNamesShort",t.FIRST_DAY_OF_WEEK="firstDayOfWeek",t.TODAY="today",t.WEEK_HEADER="weekHeader",t.WEAK="weak",t.MEDIUM="medium",t.STRONG="strong",t.PASSWORD_PROMPT="passwordPrompt",t.EMPTY_MESSAGE="emptyMessage",t.EMPTY_FILTER_MESSAGE="emptyFilterMessage",t})(),BN=(()=>{class t{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=St.removeAccents(i.toString()).toLocaleLowerCase(r);return St.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=St.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==St.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=St.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===St.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=St.removeAccents(i.toString()).toLocaleLowerCase(r),s=St.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():St.removeAccents(e.toString()).toLocaleLowerCase(r)==St.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():St.removeAccents(e.toString()).toLocaleLowerCase(r)==St.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let b=St.resolveFieldData(l,c);if(this.filters[o](b,r,s)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mu=(()=>{class t{constructor(){this.messageSource=new K,this.clearSource=new K,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),Ix=(()=>{class t{constructor(){this.clickSource=new K,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),HN=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=en({type:t,selectors:[["p-header"]],ngContentSelectors:VN,decls:1,vars:0,template:function(e,i){1&e&&(Ta(),_s(0))},encapsulation:2}),t})(),Fs=(()=>{class t{constructor(e){this.template=e}getType(){return this.name}}return t.\u0275fac=function(e){return new(e||t)(fe(Wi))},t.\u0275dir=ze({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),sn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),Mx=(()=>{class t{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return t.\u0275fac=function(e){return new(e||t)(fe(zi),fe(Gt))},t.\u0275dir=ze({type:t}),t})(),Io=(()=>{class t extends Mx{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=function Pn(t){return Hr(()=>{const n=t.prototype.constructor,e=n[yr]||Yd(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const o=r[yr]||Yd(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}(t)))(i||t)}}(),t.\u0275dir=ze({type:t,features:[kt]}),t})();const yn=new qe("NgValueAccessor"),UN={provide:yn,useExisting:yt(()=>ku),multi:!0},qN=new qe("CompositionEventMode");let ku=(()=>{class t extends Mx{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function $N(){const t=cr()?cr().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return t.\u0275fac=function(e){return new(e||t)(fe(zi),fe(Gt),fe(qN,8))},t.\u0275dir=ze({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&Pe("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[_t([UN]),kt]}),t})();function io(t){return null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}function Ox(t){return null!=t&&"number"==typeof t.length}const kn=new qe("NgValidators"),ro=new qe("NgAsyncValidators"),GN=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Ax{static min(n){return function Rx(t){return n=>{if(io(n.value)||io(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e{if(io(n.value)||io(t))return null;const e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}(n)}static required(n){return function Fx(t){return io(t.value)?{required:!0}:null}(n)}static requiredTrue(n){return function Lx(t){return!0===t.value?null:{required:!0}}(n)}static email(n){return function Nx(t){return io(t.value)||GN.test(t.value)?null:{email:!0}}(n)}static minLength(n){return function Vx(t){return n=>io(n.value)||!Ox(n.value)?null:n.value.lengthOx(n.value)&&n.value.length>t?{maxlength:{requiredLength:t,actualLength:n.value.length}}:null}(n)}static pattern(n){return function Hx(t){if(!t)return Ou;let n,e;return"string"==typeof t?(e="","^"!==t.charAt(0)&&(e+="^"),e+=t,"$"!==t.charAt(t.length-1)&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),i=>{if(io(i.value))return null;const r=i.value;return n.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(n)}static nullValidator(n){return null}static compose(n){return Wx(n)}static composeAsync(n){return Gx(n)}}function Ou(t){return null}function zx(t){return null!=t}function jx(t){return Da(t)?an(t):t}function Ux(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function $x(t,n){return n.map(e=>e(t))}function qx(t){return t.map(n=>function KN(t){return!t.validate}(n)?n:e=>n.validate(e))}function Wx(t){if(!t)return null;const n=t.filter(zx);return 0==n.length?null:function(e){return Ux($x(e,n))}}function hm(t){return null!=t?Wx(qx(t)):null}function Gx(t){if(!t)return null;const n=t.filter(zx);return 0==n.length?null:function(e){return function zN(...t){const n=_g(t),{args:e,keys:i}=fw(t),r=new W(o=>{const{length:s}=e;if(!s)return void o.complete();const a=new Array(s);let l=s,c=s;for(let b=0;b{C||(C=!0,c--),a[b]=B},()=>l--,void 0,()=>{(!l||!C)&&(c||o.next(i?pw(i,a):a),o.complete())}))}});return n?r.pipe(hw(n)):r}($x(e,n).map(jx)).pipe(Ee(Ux))}}function pm(t){return null!=t?Gx(qx(t)):null}function Kx(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Qx(t){return t._rawValidators}function Yx(t){return t._rawAsyncValidators}function mm(t){return t?Array.isArray(t)?t:[t]:[]}function Au(t,n){return Array.isArray(t)?t.includes(n):t===n}function Zx(t,n){const e=mm(n);return mm(t).forEach(r=>{Au(e,r)||e.push(r)}),e}function Xx(t,n){return mm(n).filter(e=>!Au(t,e))}class Jx{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=hm(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=pm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Qn extends Jx{get formDirective(){return null}get path(){return null}}class Fr extends Jx{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class eC{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let tC=(()=>{class t extends eC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(fe(Fr,2))},t.\u0275dir=ze({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Kr("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:[kt]}),t})(),nC=(()=>{class t extends eC{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(fe(Qn,10))},t.\u0275dir=ze({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Kr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[kt]}),t})();const ll="VALID",Pu="INVALID",Ls="PENDING",cl="DISABLED";function _m(t){return(Fu(t)?t.validators:t)||null}function rC(t){return Array.isArray(t)?hm(t):t||null}function bm(t,n){return(Fu(n)?n.asyncValidators:t)||null}function oC(t){return Array.isArray(t)?pm(t):t||null}function Fu(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}function sC(t,n,e){const i=t.controls;if(!(n?Object.keys(i):i).length)throw new xe(1e3,"");if(!i[e])throw new xe(1001,"")}function aC(t,n,e){t._forEachChild((i,r)=>{if(void 0===e[r])throw new xe(1002,"")})}class Lu{constructor(n,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=n,this._rawAsyncValidators=e,this._composedValidatorFn=rC(this._rawValidators),this._composedAsyncValidatorFn=oC(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===ll}get invalid(){return this.status===Pu}get pending(){return this.status==Ls}get disabled(){return this.status===cl}get enabled(){return this.status!==cl}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._rawValidators=n,this._composedValidatorFn=rC(n)}setAsyncValidators(n){this._rawAsyncValidators=n,this._composedAsyncValidatorFn=oC(n)}addValidators(n){this.setValidators(Zx(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Zx(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Xx(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Xx(n,this._rawAsyncValidators))}hasValidator(n){return Au(this._rawValidators,n)}hasAsyncValidator(n){return Au(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ls,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=cl,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=ll,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ll||this.status===Ls)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cl:ll}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ls,this._hasOwnPendingAsyncValidator=!0;const e=jx(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new Fe,this.statusChanges=new Fe}_calculateStatus(){return this._allControlsDisabled()?cl:this.errors?Pu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ls)?Ls:this._anyControlsHaveStatus(Pu)?Pu:ll}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Fu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}}class ul extends Lu{constructor(n,e,i){super(_m(e),bm(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,i={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,i={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){aC(this,0,n),Object.keys(n).forEach(i=>{sC(this,!0,i),this.controls[i].setValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(Object.keys(n).forEach(i=>{const r=this.controls[i];r&&r.patchValue(n[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,i)=>(n[i]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&n(i,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&n(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(n,e){let i=n;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}class lC extends ul{}function Nu(t,n){return[...n.path,t]}function dl(t,n){wm(t,n),n.valueAccessor.writeValue(t.value),t.disabled&&n.valueAccessor.setDisabledState?.(!0),function n3(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&cC(t,n)})}(t,n),function o3(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function r3(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&cC(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function t3(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Vu(t,n,e=!0){const i=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(i),n.valueAccessor.registerOnTouched(i)),Hu(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Bu(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function wm(t,n){const e=Qx(t);null!==n.validator?t.setValidators(Kx(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=Yx(t);null!==n.asyncValidator?t.setAsyncValidators(Kx(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Bu(n._rawValidators,r),Bu(n._rawAsyncValidators,r)}function Hu(t,n){let e=!1;if(null!==t){if(null!==n.validator){const r=Qx(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.validator);o.length!==r.length&&(e=!0,t.setValidators(o))}}if(null!==n.asyncValidator){const r=Yx(t);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==n.asyncValidator);o.length!==r.length&&(e=!0,t.setAsyncValidators(o))}}}const i=()=>{};return Bu(n._rawValidators,i),Bu(n._rawAsyncValidators,i),e}function cC(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function xm(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,e.currentValue)}function Cm(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(o=>{o.constructor===ku?e=o:function l3(t){return Object.getPrototypeOf(t.constructor)===Io}(o)?i=o:r=o}),r||i||e||null}function hC(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function pC(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const hl=class extends Lu{constructor(n=null,e,i){super(_m(e),bm(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Fu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=pC(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){hC(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){hC(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){pC(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},h3={provide:Fr,useExisting:yt(()=>Sm)},vC=(()=>Promise.resolve())();let Sm=(()=>{class t extends Fr{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new hl,this._registered=!1,this.update=new Fe,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Cm(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),xm(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){dl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){vC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Mr(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}(i);vC.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Nu(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(fe(Qn,9),fe(kn,10),fe(ro,10),fe(yn,10),fe(Nn,8))},t.\u0275dir=ze({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_t([h3]),kt,Un]}),t})(),yC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=ze({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),bC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({}),t})();const Dm=new qe("NgModelWithFormControlWarning"),_3={provide:Qn,useExisting:yt(()=>zu)};let zu=(()=>{class t extends Qn{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new Fe,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Hu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return dl(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){Vu(e.control||null,e,!1),function c3(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function fC(t,n){t._syncPendingControls(),n.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(Vu(i||null,e),(t=>t instanceof hl)(r)&&(dl(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function uC(t,n){wm(t,n)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function s3(t,n){return Hu(t,n)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){wm(this.form,this),this._oldForm&&Hu(this._oldForm,this)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(fe(kn,10),fe(ro,10))},t.\u0275dir=ze({type:t,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&Pe("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_t([_3]),kt,Un]}),t})();const x3={provide:Fr,useExisting:yt(()=>Mm)};let Mm=(()=>{class t extends Fr{constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new Fe,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=Cm(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),xm(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Nu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return t._ngModelWarningSentOnce=!1,t.\u0275fac=function(e){return new(e||t)(fe(Qn,13),fe(kn,10),fe(ro,10),fe(yn,10),fe(Dm,8))},t.\u0275dir=ze({type:t,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[_t([x3]),kt,Un]}),t})(),LC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[bC]}),t})(),Rm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[LC]}),t})(),NC=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Dm,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[LC]}),t})();class VC extends Lu{constructor(n,e,i){super(_m(e),bm(i,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,i={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(n,e={}){let i=this._adjustIndex(n);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,i={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){aC(this,0,n),n.forEach((i,r)=>{sC(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){null!=n&&(n.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((i,r)=>{i.reset(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,i)=>{n(e,i)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}function BC(t){return!!t&&(void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn)}let N3=(()=>{class t{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new t;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return BC(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new ul(r,o)}record(e,i=null){const r=this._reduceControls(e);return new lC(r,i)}control(e,i,r){let o={};return this.useNonNullable?(BC(i)?o=i:(o.validators=i,o.asyncValidators=r),new hl(e,{...o,nonNullable:!0})):new hl(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new VC(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof hl||e instanceof Lu?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:NC}),t})();var ju=M(206);let zC=(()=>{class t{constructor(){this.isLoading$=new K,this.isLoading$.next(!1)}show(){this.isLoading$.next(!0)}hide(){this.isLoading$.next(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),V3=(()=>{class t{constructor(e,i){this.http=e,this.spinnerService=i,this.datoToken="",this.baseUrl="https://validardoc.gendarmeria.gob.cl/validar"}verDoc(e,i){let r=new Zi;return r=r.append("Content-Type","application/json"),r=r.append("Authorization","Bearer "+i),this.spinnerService.show(),this.http.get(`${this.baseUrl}/validar/getDocFirmadoPorCodigo/`+e,{headers:r}).pipe(Cn(o=>{o.correcto&&console.log("num doc: "+o.codigoDocumento)}),lu(()=>this.spinnerService.hide()))}getIPAddress(){this.http.get("http://api.ipify.org/?format=json").subscribe(e=>e.ip)}getToken(){console.log("token entra ");const s=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),a=ju.enc.Utf8.parse("QdtYuhxck375xaDy"),l=ju.enc.Utf8.parse("XJH2794vmhdsTr9a"),b=s+"v4H1d9ndeY",C=ju.AES.encrypt(s+"validadordoc",a,{iv:l}),B=ju.AES.encrypt(b,a,{iv:l}),j=C.toString(),Q=B.toString();console.log("usuario "+j),console.log("contrasena "+Q);const ie={usuario:j,contrasena:Q};return console.log("datosUsuario "+ie),this.http.post(`${this.baseUrl}/token/getToken`,ie).pipe(Cn(se=>{console.log("token: "+se)}))}}return t.\u0275fac=function(e){return new(e||t)(Re(ou),Re(zC))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),be=(()=>{class t{static addClass(e,i){e.classList?e.classList.add(i):e.className+=" "+i}static addMultipleClasses(e,i){if(e.classList){let r=i.trim().split(" ");for(let o=0;oa.height?(l=-1*r.height,e.style.transformOrigin="bottom",s.top+l<0&&(l=-1*s.top)):(l=o,e.style.transformOrigin="top"),c=r.width>a.width?-1*s.left:s.left+r.width>a.width?-1*(s.left+r.width-a.width):0,e.style.top=l+"px",e.style.left=c+"px"}static absolutePosition(e,i){let j,Q,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),b=this.getWindowScrollTop(),C=this.getWindowScrollLeft(),B=this.getViewport();c.top+a+o>B.height?(j=c.top+b-o,e.style.transformOrigin="bottom",j<0&&(j=b)):(j=a+c.top+b,e.style.transformOrigin="top"),Q=c.left+s>B.width?Math.max(0,c.left+C+l-s):c.left+C,e.style.top=j+"px",e.style.left=Q+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let b of c){let C=this.findSingle(a,b);C&&s(C)&&i.push(C)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),b=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,C=e.scrollTop,B=e.clientHeight,j=this.getOuterHeight(i);b<0?e.scrollTop=C+b:b+j>B&&(e.scrollTop=C+b-B+j)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return null===e.offsetParent}static getFocusableElements(e){let i=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&r.push(o);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}}return t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class Pm{constructor(n,e=(()=>{})){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=be.getScrollableParents(this.element);for(let n=0;n{class t{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(be.removeClass(i,"p-ink-active"),!be.getHeight(i)&&!be.getWidth(i)){let a=Math.max(be.getOuterWidth(this.el.nativeElement),be.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=be.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-be.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-be.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",be.addClass(i,"p-ink-active")}getInk(){for(let e=0;e{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),Fm=(()=>{class t{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,be.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),(this.icon||this.loading)&&this.createIconEl();let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",this.label?e.appendChild(document.createTextNode(this.label)):e.innerHTML=" ",this.el.nativeElement.appendChild(e),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createIconEl(){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&be.addClass(e,i);let r=this.getIconClass();r&&be.addMultipleClasses(e,r);let o=be.findSingle(this.el.nativeElement,".p-button-label");o?this.el.nativeElement.insertBefore(e,o):this.el.nativeElement.appendChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}setIconClass(){let e=be.findSingle(this.el.nativeElement,".p-button-icon");e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIconEl()}removeIconElement(){let e=be.findSingle(this.el.nativeElement,".p-button-icon");this.el.nativeElement.removeChild(e)}get label(){return this._label}set label(e){this._label=e,this.initialized&&(be.findSingle(this.el.nativeElement,".p-button-label").textContent=this._label||" ",(this.loading||this.icon)&&this.setIconClass(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.setIconClass(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.loading||this.icon?this.setIconClass():this.removeIconElement(),this.setStyleClass())}ngOnDestroy(){this.initialized=!1}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt))},t.\u0275dir=ze({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),ko=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,vi]}),t})(),jC=(()=>{class t{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(Sm,8),fe(Nn))},t.\u0275dir=ze({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&Pe("input",function(o){return i.onInput(o)}),2&e&&Kr("p-filled",i.filled)}}),t})(),Lm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();class UC{}const Lr="*";function $u(t,n){return{type:7,name:t,definitions:n,options:{}}}function fr(t,n=null){return{type:4,styles:n,timings:t}}function $C(t,n=null){return{type:2,steps:t,options:n}}function Yn(t){return{type:6,styles:t,offset:null}}function qC(t,n,e){return{type:0,name:t,styles:n,options:e}}function Nr(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function WC(t,n=null){return{type:8,animation:t,options:n}}function z3(t=null){return{type:9,options:t}}function j3(t,n,e=null){return{type:11,selector:t,animation:n,options:e}}function GC(t){Promise.resolve().then(t)}class pl{constructor(n=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){GC(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class KC{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const o=this.players.length;0==o?GC(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const QC=["container"],U3=function(t,n,e,i){return{"pi-info-circle":t,"pi-exclamation-triangle":n,"pi-times-circle":e,"pi-check":i}};function $3(t,n){if(1&t&&(Lt(0),dt(1,"span",6),ye(2,"div",7)(3,"div",8),lt(4),_e(),ye(5,"div",9),lt(6),_e()(),Nt()),2&t){const e=ne();ue(1),Ht("p-toast-message-icon pi"+(e.message.icon?" "+e.message.icon:"")),le("ngClass",Ra(5,U3,"info"==e.message.severity,"warn"==e.message.severity,"error"==e.message.severity,"success"==e.message.severity)),ue(3),rn(e.message.summary),ue(2),rn(e.message.detail)}}function q3(t,n){1&t&&Vt(0)}function W3(t,n){if(1&t){const e=gt();ye(0,"button",10),Pe("click",function(r){return pe(e),me(ne().onCloseIconClick(r))})("keydown.enter",function(r){return pe(e),me(ne().onCloseIconClick(r))}),dt(1,"span",11),_e()}}const G3=function(t){return[t,"p-toast-message"]},K3=function(t,n,e,i){return{showTransformParams:t,hideTransformParams:n,showTransitionParams:e,hideTransitionParams:i}},Q3=function(t){return{value:"visible",params:t}},Y3=function(t){return{$implicit:t}};function Z3(t,n){if(1&t){const e=gt();ye(0,"p-toastItem",3),Pe("onClose",function(r){return pe(e),me(ne().onMessageClose(r))})("@toastAnimation.start",function(r){return pe(e),me(ne().onAnimationStart(r))})("@toastAnimation.done",function(r){return pe(e),me(ne().onAnimationEnd(r))}),_e()}if(2&t){const e=n.$implicit,i=n.index,r=ne();le("message",e)("index",i)("template",r.template)("@toastAnimation",void 0)("showTransformOptions",r.showTransformOptions)("hideTransformOptions",r.hideTransformOptions)("showTransitionOptions",r.showTransitionOptions)("hideTransitionOptions",r.hideTransitionOptions)}}let X3=(()=>{class t{constructor(e){this.zone=e,this.onClose=new Fe}ngAfterViewInit(){this.initTimeout()}initTimeout(){this.message.sticky||this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>{this.onClose.emit({index:this.index,message:this.message})},this.message.life||3e3)})}clearTimeout(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}onMouseEnter(){this.clearTimeout()}onMouseLeave(){this.initTimeout()}onCloseIconClick(e){this.clearTimeout(),this.onClose.emit({index:this.index,message:this.message}),e.preventDefault()}ngOnDestroy(){this.clearTimeout()}}return t.\u0275fac=function(e){return new(e||t)(fe(Ot))},t.\u0275cmp=en({type:t,selectors:[["p-toastItem"]],viewQuery:function(e,i){if(1&e&&Tn(QC,5),2&e){let r;zt(r=jt())&&(i.containerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{message:"message",index:"index",template:"template",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onClose:"onClose"},decls:6,vars:21,consts:[[3,"ngClass","mouseenter","mouseleave"],["container",""],["role","alert","aria-live","assertive","aria-atomic","true",1,"p-toast-message-content",3,"ngClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button","class","p-toast-icon-close p-link","pRipple","",3,"click","keydown.enter",4,"ngIf"],[3,"ngClass"],[1,"p-toast-message-text"],[1,"p-toast-summary"],[1,"p-toast-detail"],["type","button","pRipple","",1,"p-toast-icon-close","p-link",3,"click","keydown.enter"],[1,"p-toast-icon-close-icon","pi","pi-times"]],template:function(e,i){1&e&&(ye(0,"div",0,1),Pe("mouseenter",function(){return i.onMouseEnter()})("mouseleave",function(){return i.onMouseLeave()}),ye(2,"div",2),Ce(3,$3,7,10,"ng-container",3),Ce(4,q3,1,0,"ng-container",4),Ce(5,W3,2,0,"button",5),_e()()),2&e&&(Ht(i.message.styleClass),le("ngClass",Tt(10,G3,"p-toast-message-"+i.message.severity))("@messageState",Tt(17,Q3,Ra(12,K3,i.showTransformOptions,i.hideTransformOptions,i.showTransitionOptions,i.hideTransitionOptions))),Et("id",i.message.id),ue(2),le("ngClass",i.message.contentStyleClass),ue(1),le("ngIf",!i.template),ue(1),le("ngTemplateOutlet",i.template)("ngTemplateOutletContext",Tt(19,Y3,i.message)),ue(1),le("ngIf",!1!==i.message.closable))},dependencies:[ni,mi,Yr,Uu],encapsulation:2,data:{animation:[$u("messageState",[qC("visible",Yn({transform:"translateY(0)",opacity:1})),Nr("void => *",[Yn({transform:"{{showTransformParams}}",opacity:0}),fr("{{showTransitionParams}}")]),Nr("* => void",[fr("{{hideTransitionParams}}",Yn({height:0,opacity:0,transform:"{{hideTransformParams}}"}))])])]},changeDetection:0}),t})(),YC=(()=>{class t{constructor(e,i,r){this.messageService=e,this.cd=i,this.config=r,this.autoZIndex=!0,this.baseZIndex=0,this.position="top-right",this.preventOpenDuplicates=!1,this.preventDuplicates=!1,this.showTransformOptions="translateY(100%)",this.hideTransformOptions="translateY(-100%)",this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="250ms ease-in",this.onClose=new Fe,this.id=fm()}ngOnInit(){this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e)if(e instanceof Array){const i=e.filter(r=>this.canAdd(r));this.add(i)}else this.canAdd(e)&&this.add([e])}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()})}ngAfterViewInit(){this.breakpoints&&this.createStyle()}add(e){this.messages=this.messages?[...this.messages,...e]:[...e],this.preventDuplicates&&(this.messagesArchieve=this.messagesArchieve?[...this.messagesArchieve,...e]:[...e]),this.cd.markForCheck()}canAdd(e){let i=this.key===e.key;return i&&this.preventOpenDuplicates&&(i=!this.containsMessage(this.messages,e)),i&&this.preventDuplicates&&(i=!this.containsMessage(this.messagesArchieve,e)),i}containsMessage(e,i){return!!e&&null!=e.find(r=>r.summary===i.summary&&r.detail==i.detail&&r.severity===i.severity)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.template=e.template})}onMessageClose(e){this.messages.splice(e.index,1),this.onClose.emit({message:e.message}),this.cd.detectChanges()}onAnimationStart(e){"void"===e.fromState&&(this.containerViewChild.nativeElement.setAttribute(this.id,""),this.autoZIndex&&""===this.containerViewChild.nativeElement.style.zIndex&&gi.set("modal",this.containerViewChild.nativeElement,this.baseZIndex||this.config.zIndex.modal))}onAnimationEnd(e){"void"===e.toState&&this.autoZIndex&&St.isEmpty(this.messages)&&gi.clear(this.containerViewChild.nativeElement)}createStyle(){if(!this.styleElement){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e="";for(let i in this.breakpoints){let r="";for(let o in this.breakpoints[i])r+=o+":"+this.breakpoints[i][o]+" !important;";e+=`\n @media screen and (max-width: ${i}) {\n .p-toast[${this.id}] {\n ${r}\n }\n }\n `}this.styleElement.innerHTML=e}}destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.containerViewChild&&this.autoZIndex&&gi.clear(this.containerViewChild.nativeElement),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.destroyStyle()}}return t.\u0275fac=function(e){return new(e||t)(fe(Mu),fe(Nn),fe(al))},t.\u0275cmp=en({type:t,selectors:[["p-toast"]],contentQueries:function(e,i,r){if(1&e&&lr(r,Fs,4),2&e){let o;zt(o=jt())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&Tn(QC,5),2&e){let r;zt(r=jt())&&(i.containerViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{key:"key",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",style:"style",styleClass:"styleClass",position:"position",preventOpenDuplicates:"preventOpenDuplicates",preventDuplicates:"preventDuplicates",showTransformOptions:"showTransformOptions",hideTransformOptions:"hideTransformOptions",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",breakpoints:"breakpoints"},outputs:{onClose:"onClose"},decls:3,vars:5,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose",4,"ngFor","ngForOf"],[3,"message","index","template","showTransformOptions","hideTransformOptions","showTransitionOptions","hideTransitionOptions","onClose"]],template:function(e,i){1&e&&(ye(0,"div",0,1),Ce(2,Z3,1,8,"p-toastItem",2),_e()),2&e&&(Ht(i.styleClass),le("ngClass","p-toast p-component p-toast-"+i.position)("ngStyle",i.style),ue(2),le("ngForOf",i.messages))},dependencies:[ni,Ds,ii,X3],styles:[".p-toast{position:fixed;width:25rem}.p-toast-message{overflow:hidden}.p-toast-message-content{display:flex;align-items:flex-start}.p-toast-message-text{flex:1 1 auto}.p-toast-top-right{top:20px;right:20px}.p-toast-top-left{top:20px;left:20px}.p-toast-bottom-left{bottom:20px;left:20px}.p-toast-bottom-right{bottom:20px;right:20px}.p-toast-top-center{top:20px;left:50%;transform:translate(-50%)}.p-toast-bottom-center{bottom:20px;left:50%;transform:translate(-50%)}.p-toast-center{left:50%;top:50%;min-width:20vw;transform:translate(-50%,-50%)}.p-toast-icon-close{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-toast-icon-close.p-link{cursor:pointer}\n"],encapsulation:2,data:{animation:[$u("toastAnimation",[Nr(":enter, :leave",[j3("@*",z3())])])]},changeDetection:0}),t})(),J3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,vi,sn]}),t})(),e4=(()=>{class t{constructor(e,i,r){this.el=e,this._zone=i,this.cd=r,this.siteKey=null,this.theme="light",this.type="image",this.size="normal",this.tabindex=0,this.initCallback="initRecaptcha",this.onResponse=new Fe,this.onExpire=new Fe,this._instance=null,this._language=null}get language(){return this._language}set language(e){this._language=e,this.init()}ngAfterViewInit(){window.grecaptcha?window.grecaptcha.render?this.init():setTimeout(()=>{this.init()},100):window[this.initCallback]=()=>{this.init()}}init(){this._instance=window.grecaptcha.render(this.el.nativeElement.children[0],{sitekey:this.siteKey,theme:this.theme,type:this.type,size:this.size,tabindex:this.tabindex,hl:this.language,callback:e=>{this._zone.run(()=>this.recaptchaCallback(e))},"expired-callback":()=>{this._zone.run(()=>this.recaptchaExpiredCallback())}})}reset(){null!==this._instance&&(window.grecaptcha.reset(this._instance),this.cd.markForCheck())}getResponse(){return null===this._instance?null:window.grecaptcha.getResponse(this._instance)}recaptchaCallback(e){this.onResponse.emit({response:e})}recaptchaExpiredCallback(){this.onExpire.emit()}ngOnDestroy(){null!=this._instance&&window.grecaptcha.reset(this._instance)}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(Ot),fe(Nn))},t.\u0275cmp=en({type:t,selectors:[["p-captcha"]],hostAttrs:[1,"p-element"],inputs:{siteKey:"siteKey",theme:"theme",type:"type",size:"size",tabindex:"tabindex",initCallback:"initCallback",language:"language"},outputs:{onResponse:"onResponse",onExpire:"onExpire"},decls:1,vars:0,template:function(e,i){1&e&&dt(0,"div")},encapsulation:2,changeDetection:0}),t})(),t4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();const n4=function(){return{"background-color":"rgba(16,102,51,255)"}},r4=function(){return{"background-image":"url(assets/imagenes/fondo.png)"}},o4=[{path:"",children:[{path:"",component:(()=>{class t{constructor(e,i,r,o,s){this.fb=e,this.router=i,this.messageService=r,this.validarService=o,this.http=s,this.ipAddress="",this.captchaValido=!1,this.obtenerToken="",this.formValidar=this.fb.group({codigoDocumento:["",[Ax.required,Ax.minLength(6)]]})}ngOnInit(){}submit(){this.captchaValido?this.getToken():this.messageService.add({key:"tc",severity:"warn",summary:"Alerta",detail:"Debe validar que no es un Robot"})}showResponse(e){this.captchaValido=!0}getToken(){this.validarService.getToken().subscribe(e=>{this.validar(e.token)})}validar(e){this.validarService.verDoc(this.formValidar.controls.codigoDocumento.value,e).subscribe(r=>{if(r.correcto){console.log("num doc component "+r.id);const o=`data:application/pdf;base64,${r.doc}`,s=document.createElement("a");s.href=o,s.download=`${r.nombreDoc}`,s.click()}else this.messageService.add({key:"tc",severity:"warn",summary:"Alerta",detail:"No fue posible validar el documento, consultar con el administrador"})})}}return t.\u0275fac=function(e){return new(e||t)(fe(N3),fe(En),fe(Mu),fe(V3),fe(ou))},t.\u0275cmp=en({type:t,selectors:[["app-validar-doc"]],features:[_t([Mu])],decls:21,vars:6,consts:[["position","top-center","key","tc"],["id","first-div",3,"ngStyle"],[1,"titulo"],[1,"puntitos"],["id","second-div",3,"ngStyle"],["id","third-div"],[1,"flex","flex-column","surface-ground","align-items-center","overflow-hidden"],["autocomplete","off",3,"formGroup","ngSubmit"],[1,"center-container"],["src","assets/imagenes/logo1.png","alt","Imagen",1,"centered-image"],["for","codDoc",1,"block","text-900","font-medium","mb-2"],["id","codDoc","type","text","placeholder","Ingrese C\xf3digo Documento","pInputText","","formControlName","codigoDocumento",1,"w-full","mb-3"],[1,"card"],["siteKey","6Ld9PPYhAAAAANoKf2VaWM475W4cHXjreJAX6HZY",3,"onResponse"],["pButton","","pRipple","","label","Validar","icon","pi pi-check","type","submit",1,"w-full",3,"disabled"]],template:function(e,i){1&e&&(dt(0,"p-toast",0),ye(1,"div",1)(2,"div",2)(3,"h1"),lt(4,"Validador de Documentos"),_e()(),ye(5,"div",3)(6,"p"),lt(7,"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"),_e()()(),dt(8,"div",4),ye(9,"div",5)(10,"div",6)(11,"form",7),Pe("ngSubmit",function(){return i.submit()}),ye(12,"div")(13,"div",8),dt(14,"img",9),_e(),ye(15,"div"),dt(16,"label",10)(17,"input",11),ye(18,"div",12)(19,"p-captcha",13),Pe("onResponse",function(o){return i.showResponse(o)}),_e()(),dt(20,"button",14),_e()()()()()),2&e&&(ue(1),le("ngStyle",Sr(4,n4)),ue(7),le("ngStyle",Sr(5,r4)),ue(3),le("formGroup",i.formValidar),ue(9),le("disabled",i.formValidar.invalid))},dependencies:[ii,Fm,jC,YC,e4,yC,ku,tC,nC,zu,Mm],styles:["body[_ngcontent-%COMP%]{margin:0;padding:0}#first-div[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:10px;padding-right:10px;height:100px;width:100%;color:#f0f5f2}.titulo[_ngcontent-%COMP%]{width:83.33%;text-align:left}h1[_ngcontent-%COMP%]{font-family:gob_Regular;font-size:xx-large;color:#f0f5f2}#second-div[_ngcontent-%COMP%]{height:calc(100vh - 100px);background-size:cover;width:40%;float:left}.centered-image[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto}.center-container[_ngcontent-%COMP%]{text-align:center}@media only screen and (max-width: 550px){#second-div[_ngcontent-%COMP%]{display:none}#third-div[_ngcontent-%COMP%], .titulo[_ngcontent-%COMP%]{width:100%}.puntitos[_ngcontent-%COMP%]{display:none}h1[_ngcontent-%COMP%]{text-align:center}}"]}),t})()},{path:"**",redirectTo:""}]}];let s4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[Ps.forRoot(o4),Ps]}),t})();var l4=M.t({version:"1.0.3"},2);function c4(t,n){1&t&&(ye(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),dt(4,"div")(5,"div")(6,"div")(7,"div"),_e()()()())}let u4=(()=>{class t{constructor(e){this.spinnerService=e,this.miSpinner=!1,this.spinnerService.isLoading$.subscribe(i=>{this.miSpinner=i})}}return t.\u0275fac=function(e){return new(e||t)(fe(zC))},t.\u0275cmp=en({type:t,selectors:[["app-spinner"]],decls:1,vars:1,consts:[["class","fondo",4,"ngIf"],[1,"fondo"],[1,"item"],[1,"custom"],[1,"lds-ring"]],template:function(e,i){1&e&&Ce(0,c4,8,0,"div",0),2&e&&le("ngIf",!0===i.miSpinner)},dependencies:[mi],styles:[".lds-ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:lds-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#fff transparent transparent transparent}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.lds-ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes lds-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.fondo[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;background-color:#4a4a4acc;z-index:10;display:flex;align-items:center;justify-content:center}.item[_ngcontent-%COMP%]{position:fixed;width:85vw;height:90vh;z-index:11;display:flex;align-items:center;justify-content:center}"]}),t})(),d4=(()=>{class t{constructor(e){this.httpClient=e,this.title="validarDoc",this.configVersion={version:""}}ngOnInit(){this.verificaVersionNavegador()}verificaVersionNavegador(){const e=(new Zi).set("Cache-Control","no-cache").set("Pragma","no-cache");this.configVersion=l4,console.log(this.configVersion.version),this.httpClient.get("./assets/configVersion/config.json",{headers:e}).subscribe(i=>{console.log(i),i.version!==this.configVersion.version&&location.reload()})}}return t.\u0275fac=function(e){return new(e||t)(fe(ou))},t.\u0275cmp=en({type:t,selectors:[["app-root"]],features:[_t([Mu])],decls:4,vars:0,consts:[["position","top-center","key","hd"],[1,"text-layout"]],template:function(e,i){1&e&&(dt(0,"app-spinner")(1,"p-toast",0),ye(2,"div",1),dt(3,"router-outlet"),_e())},dependencies:[Zp,YC,u4]}),t})(),h4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn]}),t})(),p4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),v4=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();const y4=["container"],_4=["inputfield"],b4=["contentWrapper"];function w4(t,n){if(1&t){const e=gt();ye(0,"i",8),Pe("click",function(){return pe(e),me(ne(2).clear())}),_e()}}function x4(t,n){if(1&t){const e=gt();ye(0,"button",9),Pe("click",function(r){pe(e),ne();const o=mn(1);return me(ne().onButtonClick(r,o))}),_e()}if(2&t){const e=ne(2);le("icon",e.icon)("disabled",e.disabled),Et("aria-label",e.iconAriaLabel)}}function C4(t,n){if(1&t){const e=gt();ye(0,"input",4,5),Pe("focus",function(r){return pe(e),me(ne().onInputFocus(r))})("keydown",function(r){return pe(e),me(ne().onInputKeydown(r))})("click",function(){return pe(e),me(ne().onInputClick())})("blur",function(r){return pe(e),me(ne().onInputBlur(r))})("input",function(r){return pe(e),me(ne().onUserInput(r))}),_e(),Ce(2,w4,1,0,"i",6),Ce(3,x4,1,3,"button",7)}if(2&t){const e=ne();Ht(e.inputStyleClass),le("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),Et("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),ue(2),le("ngIf",e.showClear&&!e.disabled&&null!=e.value),ue(1),le("ngIf",e.showIcon)}}function E4(t,n){1&t&&Vt(0)}function S4(t,n){if(1&t){const e=gt();ye(0,"button",30),Pe("keydown",function(r){return pe(e),me(ne(4).onContainerButtonKeydown(r))})("click",function(r){return pe(e),me(ne(4).onPrevButtonClick(r))}),dt(1,"span",31),_e()}}function D4(t,n){if(1&t){const e=gt();ye(0,"button",32),Pe("click",function(r){return pe(e),me(ne(4).switchToMonthView(r))})("keydown",function(r){return pe(e),me(ne(4).onContainerButtonKeydown(r))}),lt(1),_e()}if(2&t){const e=ne().$implicit,i=ne(3);le("disabled",i.switchViewButtonDisabled()),ue(1),ar(" ",i.getMonthName(e.month)," ")}}function T4(t,n){if(1&t){const e=gt();ye(0,"button",33),Pe("click",function(r){return pe(e),me(ne(4).switchToYearView(r))})("keydown",function(r){return pe(e),me(ne(4).onContainerButtonKeydown(r))}),lt(1),_e()}if(2&t){const e=ne().$implicit,i=ne(3);le("disabled",i.switchViewButtonDisabled()),ue(1),ar(" ",i.getYear(e)," ")}}function I4(t,n){if(1&t&&(Lt(0),lt(1),Nt()),2&t){const e=ne(5);ue(1),xh("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function M4(t,n){1&t&&Vt(0)}const ZC=function(t){return{$implicit:t}};function k4(t,n){if(1&t&&(ye(0,"span",34),Ce(1,I4,2,2,"ng-container",13),Ce(2,M4,1,0,"ng-container",35),_e()),2&t){const e=ne(4);ue(1),le("ngIf",!e.decadeTemplate),ue(1),le("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",Tt(3,ZC,e.yearPickerValues))}}function O4(t,n){if(1&t&&(ye(0,"th",41)(1,"span"),lt(2),_e()()),2&t){const e=ne(5);ue(2),rn(e.getTranslation("weekHeader"))}}function A4(t,n){if(1&t&&(ye(0,"th",42)(1,"span"),lt(2),_e()()),2&t){const e=n.$implicit;ue(2),rn(e)}}function R4(t,n){if(1&t&&(ye(0,"td",45)(1,"span",46),lt(2),_e()()),2&t){const e=ne().index,i=ne(2).$implicit;ue(2),ar(" ",i.weekNumbers[e]," ")}}function P4(t,n){if(1&t&&(Lt(0),lt(1),Nt()),2&t){const e=ne(2).$implicit;ue(1),rn(e.day)}}function F4(t,n){1&t&&Vt(0)}const L4=function(t,n){return{"p-highlight":t,"p-disabled":n}};function N4(t,n){if(1&t){const e=gt();Lt(0),ye(1,"span",48),Pe("click",function(r){pe(e);const o=ne().$implicit;return me(ne(6).onDateSelect(r,o))})("keydown",function(r){pe(e);const o=ne().$implicit,s=ne(3).index;return me(ne(3).onDateCellKeydown(r,o,s))}),Ce(2,P4,2,1,"ng-container",13),Ce(3,F4,1,0,"ng-container",35),_e(),Nt()}if(2&t){const e=ne().$implicit,i=ne(6);ue(1),le("ngClass",xn(4,L4,i.isSelected(e),!e.selectable)),ue(1),le("ngIf",!i.dateTemplate),ue(1),le("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",Tt(7,ZC,e))}}const V4=function(t,n){return{"p-datepicker-other-month":t,"p-datepicker-today":n}};function B4(t,n){if(1&t&&(ye(0,"td",47),Ce(1,N4,4,9,"ng-container",13),_e()),2&t){const e=n.$implicit,i=ne(6);le("ngClass",xn(2,V4,e.otherMonth,e.today)),ue(1),le("ngIf",!e.otherMonth||i.showOtherMonths)}}function H4(t,n){if(1&t&&(ye(0,"tr"),Ce(1,R4,3,1,"td",43),Ce(2,B4,2,5,"td",44),_e()),2&t){const e=n.$implicit,i=ne(5);ue(1),le("ngIf",i.showWeek),ue(1),le("ngForOf",e)}}function z4(t,n){if(1&t&&(ye(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),Ce(4,O4,3,1,"th",38),Ce(5,A4,3,1,"th",39),_e()(),ye(6,"tbody"),Ce(7,H4,3,2,"tr",40),_e()()()),2&t){const e=ne().$implicit,i=ne(3);ue(4),le("ngIf",i.showWeek),ue(1),le("ngForOf",i.weekDays),ue(2),le("ngForOf",e.dates)}}function j4(t,n){if(1&t){const e=gt();ye(0,"div",20)(1,"div",21),Ce(2,S4,2,0,"button",22),ye(3,"div",23),Ce(4,D4,2,2,"button",24),Ce(5,T4,2,2,"button",25),Ce(6,k4,3,5,"span",26),_e(),ye(7,"button",27),Pe("keydown",function(r){return pe(e),me(ne(3).onContainerButtonKeydown(r))})("click",function(r){return pe(e),me(ne(3).onNextButtonClick(r))}),dt(8,"span",28),_e()(),Ce(9,z4,8,3,"div",29),_e()}if(2&t){const e=n.index,i=ne(3);ue(2),le("ngIf",0===e),ue(2),le("ngIf","date"===i.currentView),ue(1),le("ngIf","year"!==i.currentView),ue(1),le("ngIf","year"===i.currentView),ue(1),Ec("display",1===i.numberOfMonths||e===i.numberOfMonths-1?"inline-flex":"none"),ue(2),le("ngIf","date"===i.currentView)}}const XC=function(t){return{"p-highlight":t}};function U4(t,n){if(1&t){const e=gt();ye(0,"span",51),Pe("click",function(r){const s=pe(e).index;return me(ne(4).onMonthSelect(r,s))})("keydown",function(r){const s=pe(e).index;return me(ne(4).onMonthCellKeydown(r,s))}),lt(1),_e()}if(2&t){const e=n.$implicit,i=n.index,r=ne(4);le("ngClass",Tt(2,XC,r.isMonthSelected(i))),ue(1),ar(" ",e," ")}}function $4(t,n){if(1&t&&(ye(0,"div",49),Ce(1,U4,2,4,"span",50),_e()),2&t){const e=ne(3);ue(1),le("ngForOf",e.monthPickerValues())}}function q4(t,n){if(1&t){const e=gt();ye(0,"span",54),Pe("click",function(r){const s=pe(e).$implicit;return me(ne(4).onYearSelect(r,s))})("keydown",function(r){const s=pe(e).$implicit;return me(ne(4).onYearCellKeydown(r,s))}),lt(1),_e()}if(2&t){const e=n.$implicit,i=ne(4);le("ngClass",Tt(2,XC,i.isYearSelected(e))),ue(1),ar(" ",e," ")}}function W4(t,n){if(1&t&&(ye(0,"div",52),Ce(1,q4,2,4,"span",53),_e()),2&t){const e=ne(3);ue(1),le("ngForOf",e.yearPickerValues())}}function G4(t,n){if(1&t&&(Lt(0),ye(1,"div",16),Ce(2,j4,10,7,"div",17),_e(),Ce(3,$4,2,1,"div",18),Ce(4,W4,2,1,"div",19),Nt()),2&t){const e=ne(2);ue(2),le("ngForOf",e.months),ue(1),le("ngIf","month"===e.currentView),ue(1),le("ngIf","year"===e.currentView)}}function K4(t,n){1&t&&(Lt(0),lt(1,"0"),Nt())}function Q4(t,n){1&t&&(Lt(0),lt(1,"0"),Nt())}function Y4(t,n){if(1&t&&(ye(0,"div",60)(1,"span"),lt(2),_e()()),2&t){const e=ne(3);ue(2),rn(e.timeSeparator)}}function Z4(t,n){1&t&&(Lt(0),lt(1,"0"),Nt())}function X4(t,n){if(1&t){const e=gt();ye(0,"div",65)(1,"button",57),Pe("keydown",function(r){return pe(e),me(ne(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return pe(e),me(ne(3).incrementSecond(r))})("keydown.space",function(r){return pe(e),me(ne(3).incrementSecond(r))})("mousedown",function(r){return pe(e),me(ne(3).onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){return pe(e),me(ne(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return pe(e),me(ne(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return pe(e),me(ne(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return pe(e),me(ne(3).onTimePickerElementMouseLeave())}),dt(2,"span",58),_e(),ye(3,"span"),Ce(4,Z4,2,0,"ng-container",13),lt(5),_e(),ye(6,"button",57),Pe("keydown",function(r){return pe(e),me(ne(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return pe(e),me(ne(3).decrementSecond(r))})("keydown.space",function(r){return pe(e),me(ne(3).decrementSecond(r))})("mousedown",function(r){return pe(e),me(ne(3).onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){return pe(e),me(ne(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return pe(e),me(ne(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return pe(e),me(ne(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return pe(e),me(ne(3).onTimePickerElementMouseLeave())}),dt(7,"span",59),_e()()}if(2&t){const e=ne(3);ue(4),le("ngIf",e.currentSecond<10),ue(1),rn(e.currentSecond)}}function J4(t,n){if(1&t){const e=gt();ye(0,"div",66)(1,"button",67),Pe("keydown",function(r){return pe(e),me(ne(3).onContainerButtonKeydown(r))})("click",function(r){return pe(e),me(ne(3).toggleAMPM(r))})("keydown.enter",function(r){return pe(e),me(ne(3).toggleAMPM(r))}),dt(2,"span",58),_e(),ye(3,"span"),lt(4),_e(),ye(5,"button",67),Pe("keydown",function(r){return pe(e),me(ne(3).onContainerButtonKeydown(r))})("click",function(r){return pe(e),me(ne(3).toggleAMPM(r))})("keydown.enter",function(r){return pe(e),me(ne(3).toggleAMPM(r))}),dt(6,"span",59),_e()()}if(2&t){const e=ne(3);ue(4),rn(e.pm?"PM":"AM")}}function eV(t,n){if(1&t){const e=gt();ye(0,"div",55)(1,"div",56)(2,"button",57),Pe("keydown",function(r){return pe(e),me(ne(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return pe(e),me(ne(2).incrementHour(r))})("keydown.space",function(r){return pe(e),me(ne(2).incrementHour(r))})("mousedown",function(r){return pe(e),me(ne(2).onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return pe(e),me(ne(2).onTimePickerElementMouseLeave())}),dt(3,"span",58),_e(),ye(4,"span"),Ce(5,K4,2,0,"ng-container",13),lt(6),_e(),ye(7,"button",57),Pe("keydown",function(r){return pe(e),me(ne(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return pe(e),me(ne(2).decrementHour(r))})("keydown.space",function(r){return pe(e),me(ne(2).decrementHour(r))})("mousedown",function(r){return pe(e),me(ne(2).onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return pe(e),me(ne(2).onTimePickerElementMouseLeave())}),dt(8,"span",59),_e()(),ye(9,"div",60)(10,"span"),lt(11),_e()(),ye(12,"div",61)(13,"button",57),Pe("keydown",function(r){return pe(e),me(ne(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return pe(e),me(ne(2).incrementMinute(r))})("keydown.space",function(r){return pe(e),me(ne(2).incrementMinute(r))})("mousedown",function(r){return pe(e),me(ne(2).onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return pe(e),me(ne(2).onTimePickerElementMouseLeave())}),dt(14,"span",58),_e(),ye(15,"span"),Ce(16,Q4,2,0,"ng-container",13),lt(17),_e(),ye(18,"button",57),Pe("keydown",function(r){return pe(e),me(ne(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return pe(e),me(ne(2).decrementMinute(r))})("keydown.space",function(r){return pe(e),me(ne(2).decrementMinute(r))})("mousedown",function(r){return pe(e),me(ne(2).onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return pe(e),me(ne(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return pe(e),me(ne(2).onTimePickerElementMouseLeave())}),dt(19,"span",59),_e()(),Ce(20,Y4,3,1,"div",62),Ce(21,X4,8,2,"div",63),Ce(22,J4,7,1,"div",64),_e()}if(2&t){const e=ne(2);ue(5),le("ngIf",e.currentHour<10),ue(1),rn(e.currentHour),ue(5),rn(e.timeSeparator),ue(5),le("ngIf",e.currentMinute<10),ue(1),rn(e.currentMinute),ue(3),le("ngIf",e.showSeconds),ue(1),le("ngIf",e.showSeconds),ue(1),le("ngIf","12"==e.hourFormat)}}const JC=function(t){return[t]};function tV(t,n){if(1&t){const e=gt();ye(0,"div",68)(1,"button",69),Pe("keydown",function(r){return pe(e),me(ne(2).onContainerButtonKeydown(r))})("click",function(r){return pe(e),me(ne(2).onTodayButtonClick(r))}),_e(),ye(2,"button",69),Pe("keydown",function(r){return pe(e),me(ne(2).onContainerButtonKeydown(r))})("click",function(r){return pe(e),me(ne(2).onClearButtonClick(r))}),_e()()}if(2&t){const e=ne(2);ue(1),le("label",e.getTranslation("today"))("ngClass",Tt(4,JC,e.todayButtonStyleClass)),ue(1),le("label",e.getTranslation("clear"))("ngClass",Tt(6,JC,e.clearButtonStyleClass))}}function nV(t,n){1&t&&Vt(0)}const iV=function(t,n,e,i,r,o){return{"p-datepicker p-component":!0,"p-datepicker-inline":t,"p-disabled":n,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":o}},eE=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},rV=function(t){return{value:"visibleTouchUI",params:t}},oV=function(t){return{value:"visible",params:t}};function sV(t,n){if(1&t){const e=gt();ye(0,"div",10,11),Pe("@overlayAnimation.start",function(r){return pe(e),me(ne().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return pe(e),me(ne().onOverlayAnimationDone(r))})("click",function(r){return pe(e),me(ne().onOverlayClick(r))}),_s(2),Ce(3,E4,1,0,"ng-container",12),Ce(4,G4,5,3,"ng-container",13),Ce(5,eV,23,8,"div",14),Ce(6,tV,3,8,"div",15),_s(7,1),Ce(8,nV,1,0,"ng-container",12),_e()}if(2&t){const e=ne();Ht(e.panelStyleClass),le("ngStyle",e.panelStyle)("ngClass",function J_(t,n,e,i,r,o,s,a,l){const c=$n()+t,b=Se(),C=Si(b,c,e,i,r,o);return yo(b,c+4,s,a)||C?or(b,c+6,l?n.call(l,e,i,r,o,s,a):n(e,i,r,o,s,a)):Sa(b,c+6)}(11,iV,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?Tt(21,rV,xn(18,eE,e.showTransitionOptions,e.hideTransitionOptions)):Tt(26,oV,xn(23,eE,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),ue(3),le("ngTemplateOutlet",e.headerTemplate),ue(1),le("ngIf",!e.timeOnly),ue(1),le("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),ue(1),le("ngIf",e.showButtonBar),ue(2),le("ngTemplateOutlet",e.footerTemplate)}}const aV=[[["p-header"]],[["p-footer"]]],lV=function(t,n,e,i){return{"p-calendar":!0,"p-calendar-w-btn":t,"p-calendar-timeonly":n,"p-calendar-disabled":e,"p-focus":i}},cV=["p-header","p-footer"],uV={provide:yn,useExisting:yt(()=>dV),multi:!0};let dV=(()=>{class t{constructor(e,i,r,o,s,a){this.el=e,this.renderer=i,this.cd=r,this.zone=o,this.config=s,this.overlayService=a,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.showClear=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new Fe,this.onBlur=new Fe,this.onClose=new Fe,this.onSelect=new Fe,this.onClear=new Fe,this.onInput=new Fe,this.onTodayClick=new Fe,this.onClearClick=new Fe,this.onMonthChange=new Fe,this.onYearChange=new Fe,this.onClickOutside=new Fe,this.onShow=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(l,c){return"12"==this.hourFormat?12===l?c?12:0:c?l+12:l:l}}set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),r=parseInt(i[0]),o=parseInt(i[1]);this.populateYearOptions(r,o)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=fm();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=be.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(Oi.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r11&&(o=o%11-1,s=i+1),this.months.push(this.createMonth(o,s))}}getWeekNumber(e){let i=new Date(e.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],o=this.getFirstDayOfMonthIndex(e,i),s=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,b=[],C=Math.ceil((s+o)/7);for(let B=0;Bs){let ie=this.getNextMonthAndYear(e,i);j.push({day:l-s,month:ie.month,year:ie.year,otherMonth:!0,today:this.isToday(c,l-s,ie.month,ie.year),selectable:this.isSelectable(l-s,ie.month,ie.year,!0)})}else j.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&b.push(this.getWeekNumber(new Date(j[0].year,j[0].month,j[0].day))),r.push(j)}return{month:e,year:i,dates:r,weekNumbers:b}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYearthis.yearOptions[this.yearOptions.length-1]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+e,this.yearOptions[this.yearOptions.length-1]+e)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,o)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=new Date(e.year,e.month,e.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate=r.getTime()?o=i:(r=i,o=null),this.updateModel([r,o])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;this.value&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let o=r.getDay()+this.getSundayIndex();return o>=7?o-7:o}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,o;return 0===e?(r=11,o=i-1):(r=e-1,o=i),{month:r,year:o}}getNextMonthAndYear(e,i){let r,o;return 11===e?(r=0,o=i+1):(r=e+1,o=i),{month:r,year:o}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getMonth()===e&&i.getFullYear()===this.currentYear}return!1}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===e}return!1}isDateEquals(e,i){return!!(e&&e instanceof Date)&&e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year}isDateBetween(e,i,r){if(e&&i){let s=new Date(r.year,r.month,r.day);return e.getTime()<=s.getTime()&&i.getTime()>=s.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,r,o){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===o}isSelectable(e,i,r,o){let s=!0,a=!0,l=!0,c=!0;return!(o&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(s=!1),this.maxDate&&(this.maxDate.getFullYear()1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(be.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){const o=e.currentTarget,s=o.parentElement;switch(e.which){case 40:{o.tabIndex="-1";let a=be.index(s),l=s.parentElement.nextElementSibling;l?be.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{o.tabIndex="-1";let a=be.index(s),l=s.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];be.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{o.tabIndex="-1";let a=s.previousElementSibling;if(a){let l=a.children[0];be.hasClass(l,"p-disabled")||be.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{o.tabIndex="-1";let a=s.nextElementSibling;if(a){let l=a.children[0];be.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=be.index(r);let a=o[40===e.which?s+3:s-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:this.onMonthSelect(e,i),e.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var o=r.parentElement.children,s=be.index(r);let a=o[40===e.which?s+2:s-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let o=be.find(this.contentViewChild.nativeElement.children[i-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),s=o[o.length-1];s.tabIndex="0",s.focus()}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let o=be.findSingle(this.contentViewChild.nativeElement.children[i+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");o.tabIndex="0",o.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?be.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():be.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=be.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=be.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){let e;if("month"===this.currentView){let i=be.find(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),r=be.findSingle(this.contentViewChild.nativeElement,".p-monthpicker .p-monthpicker-month.p-highlight");i.forEach(o=>o.tabIndex=-1),e=r||i[0],0===i.length&&be.find(this.contentViewChild.nativeElement,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if("year"===this.currentView){let i=be.find(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),r=be.findSingle(this.contentViewChild.nativeElement,".p-yearpicker .p-yearpicker-year.p-highlight");i.forEach(o=>o.tabIndex=-1),e=r||i[0],0===i.length&&be.find(this.contentViewChild.nativeElement,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(s=>s.tabIndex=-1)}else if(e=be.findSingle(this.contentViewChild.nativeElement,"span.p-highlight"),!e){let i=be.findSingle(this.contentViewChild.nativeElement,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");e=i||be.findSingle(this.contentViewChild.nativeElement,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}e&&(e.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{e.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=be.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(e,i,r,o){let s=this.value;const a=this.convertTo24Hour(e,o);this.isRangeSelection()&&(s=this.value[1]||this.value[0]),this.isMultipleSelection()&&(s=this.value[this.value.length-1]);const l=s?s.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(o=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,o)&&(this.currentHour=r,this.pm=o),e.preventDefault()}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,r,o){let s=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,o),this.cd.markForCheck()},s),r){case 0:1===o?this.incrementHour(e):this.decrementHour(e);break;case 1:1===o?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===o?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),e.preventDefault()}incrementMinute(e){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}decrementMinute(e){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)&&(this.updateModel(r),this.updateUI())}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){let i=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(i=!1):e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=e.length>1&&e[1]>e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];for(let o of r)i.push(this.parseDateTime(o.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let o=0;o{this.disableModality()}),document.body.appendChild(this.mask),be.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(be.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){if(!this.mask)return;document.body.removeChild(this.mask);let i,e=document.body.children;for(let r=0;r{const C=r+1{let j=""+C;if(o(b))for(;j.lengtho(b)?j[C]:B[C];let l="",c=!1;if(e)for(r=0;r11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=o<10?"0"+o:o,this.showSeconds&&(i+=":",i+=s<10?"0"+s:s),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let o=parseInt(i[0]),s=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(o)||isNaN(s)||o>23||s>59||"12"==this.hourFormat&&o>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==o&&this.pm?o+=12:!this.pm&&12===o&&(o-=12)),{hour:o,minute:s,second:a}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let r,o,s,Q,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,b=-1,C=-1,B=-1,j=!1,ie=de=>{let Te=r+1{let Te=ie(de),Ve="@"===de?14:"!"===de?20:"y"===de&&Te?4:"o"===de?3:2,At=new RegExp("^\\d{"+("y"===de?Ve:1)+","+Ve+"}"),Yt=e.substring(a).match(At);if(!Yt)throw"Missing number at position "+a;return a+=Yt[0].length,parseInt(Yt[0],10)},ce=(de,Te,Ve)=>{let tt=-1,At=ie(de)?Ve:Te,Yt=[];for(let qt=0;qt-(qt[1].length-_n[1].length));for(let qt=0;qt{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(C=1),r=0;r-1)for(b=1,C=B;o=this.getDaysCountInMonth(c,b-1),!(C<=o);)b++,C-=o;if("year"===this.view&&(b=-1===b?1:b,C=-1===C?1:C),Q=this.daylightSavingAdjust(new Date(c,b-1,C)),Q.getFullYear()!==c||Q.getMonth()+1!==b||Q.getDate()!==C)throw"Invalid date";return Q}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,r),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,o)=>-1*r.breakpoint.localeCompare(o.breakpoint,void 0,{numeric:!0}));for(let r=0;r{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Pm(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return be.hasClass(e.target,"p-datepicker-prev")||be.hasClass(e.target,"p-datepicker-prev-icon")||be.hasClass(e.target,"p-datepicker-next")||be.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!be.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&gi.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(zi),fe(Nn),fe(Ot),fe(al),fe(Ix))},t.\u0275cmp=en({type:t,selectors:[["p-calendar"]],contentQueries:function(e,i,r){if(1&e&&lr(r,Fs,4),2&e){let o;zt(o=jt())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Tn(y4,5),Tn(_4,5),Tn(b4,5)),2&e){let r;zt(r=jt())&&(i.containerViewChild=r.first),zt(r=jt())&&(i.inputfieldViewChild=r.first),zt(r=jt())&&(i.content=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,i){2&e&&Kr("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)("p-calendar-clearable",i.showClear&&!i.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[_t([uV])],ngContentSelectors:cV,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["class","p-calendar-clear-icon pi pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calendar-clear-icon","pi","pi-times",3,"click"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(e,i){1&e&&(Ta(aV),ye(0,"span",0,1),Ce(2,C4,4,17,"ng-template",2),Ce(3,sV,9,28,"div",3),_e()),2&e&&(Ht(i.styleClass),le("ngClass",Ra(6,lV,i.showIcon,i.timeOnly,i.disabled,i.focus))("ngStyle",i.style),ue(2),le("ngIf",!i.inline),ue(1),le("ngIf",i.inline||i.overlayVisible))},dependencies:[ni,Ds,mi,Yr,ii,Fm,Uu],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[$u("overlayAnimation",[qC("visibleTouchUI",Yn({transform:"translate(-50%,-50%)",opacity:1})),Nr("void => visible",[Yn({opacity:0,transform:"scaleY(0.8)"}),fr("{{showTransitionParams}}",Yn({opacity:1,transform:"*"}))]),Nr("visible => void",[fr("{{hideTransitionParams}}",Yn({opacity:0}))]),Nr("void => visibleTouchUI",[Yn({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),fr("{{showTransitionParams}}")]),Nr("visibleTouchUI => void",[fr("{{hideTransitionParams}}",Yn({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),t})(),tE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,ko,sn,vi,ko,sn]}),t})(),gV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn]}),t})();const vV=["cb"],yV=function(t,n,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function _V(t,n){if(1&t){const e=gt();ye(0,"label",7),Pe("click",function(r){pe(e);const o=ne(),s=mn(3);return me(o.onClick(r,s,!0))}),lt(1),_e()}if(2&t){const e=ne();Ht(e.labelStyleClass),le("ngClass",Ti(5,yV,e.checked(),e.disabled,e.focused)),Et("for",e.inputId),ue(1),rn(e.label)}}const bV=function(t,n,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":t,"p-checkbox-disabled":n,"p-checkbox-focused":e}},wV=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},xV={provide:yn,useExisting:yt(()=>CV),multi:!0};let CV=(()=>{class t{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!St.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:St.contains(this.value,this.model)}}return t.\u0275fac=function(e){return new(e||t)(fe(Nn))},t.\u0275cmp=en({type:t,selectors:[["p-checkbox"]],viewQuery:function(e,i){if(1&e&&Tn(vV,5),2&e){let r;zt(r=jt())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[_t([xV])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,i){if(1&e){const r=gt();ye(0,"div",0)(1,"div",1)(2,"input",2,3),Pe("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),_e()(),ye(4,"div",4),Pe("click",function(s){pe(r);const a=mn(3);return me(i.onClick(s,a,!0))}),dt(5,"span",5),_e()(),Ce(6,_V,2,9,"label",6)}2&e&&(Ht(i.styleClass),le("ngStyle",i.style)("ngClass",Ti(18,bV,i.checked(),i.disabled,i.focused)),ue(2),le("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),Et("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),ue(2),le("ngClass",Ti(22,wV,i.checked(),i.disabled,i.focused)),ue(1),le("ngClass",i.checked()?i.checkboxIcon:null),ue(1),le("ngIf",i.label))},dependencies:[ni,mi,ii],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),t})(),EV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),SV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();WC([Yn({transform:"{{transform}}",opacity:0}),fr("{{transition}}")]),WC([fr("{{transition}}",Yn({transform:"{{transform}}",opacity:0}))]);let UV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,SV,vi,sn]}),t})(),$V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),qV=(()=>{class t{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?be.appendChild(this.container,this.el.nativeElement):be.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content")}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),be.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?gi.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&gi.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+be.getWindowScrollLeft(),top:e.top+be.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+be.getOuterWidth(this.el.nativeElement),r=e.top+(be.getOuterHeight(this.el.nativeElement)-be.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-be.getOuterWidth(this.container),r=e.top+(be.getOuterHeight(this.el.nativeElement)-be.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(be.getOuterWidth(this.el.nativeElement)-be.getOuterWidth(this.container))/2,r=e.top-be.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(be.getOuterWidth(this.el.nativeElement)-be.getOuterWidth(this.container))/2,r=e.top+be.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return be.hasClass(e,"p-inputwrapper")?be.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=be.getOuterWidth(this.container),s=be.getOuterHeight(this.container),a=be.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Pm(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):be.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&gi.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(Ot),fe(al))},t.\u0275dir=ze({type:t,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Un]}),t})(),ml=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();const WV=["element"],GV=["content"];function KV(t,n){1&t&&Vt(0)}const Vm=function(t,n){return{$implicit:t,options:n}};function QV(t,n){if(1&t&&(Lt(0),Ce(1,KV,1,0,"ng-container",7),Nt()),2&t){const e=ne(2);ue(1),le("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",xn(2,Vm,e.loadedItems,e.getContentOptions()))}}function YV(t,n){1&t&&Vt(0)}function ZV(t,n){if(1&t&&(Lt(0),Ce(1,YV,1,0,"ng-container",7),Nt()),2&t){const e=n.$implicit,i=n.index,r=ne(3);ue(1),le("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",xn(2,Vm,e,r.getOptions(i)))}}const XV=function(t){return{"p-scroller-loading":t}};function JV(t,n){if(1&t&&(ye(0,"div",8,9),Ce(2,ZV,2,5,"ng-container",10),_e()),2&t){const e=ne(2);le("ngClass",Tt(4,XV,e.d_loading))("ngStyle",e.contentStyle),ue(2),le("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function eB(t,n){1&t&&dt(0,"div",11),2&t&&le("ngStyle",ne(2).spacerStyle)}function tB(t,n){1&t&&Vt(0)}const nB=function(t){return{numCols:t}},nE=function(t){return{options:t}};function iB(t,n){if(1&t&&(Lt(0),Ce(1,tB,1,0,"ng-container",7),Nt()),2&t){const e=n.index,i=ne(4);ue(1),le("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Tt(4,nE,i.getLoaderOptions(e,i.both&&Tt(2,nB,i._numItemsInViewport.cols))))}}function rB(t,n){if(1&t&&(Lt(0),Ce(1,iB,2,6,"ng-container",14),Nt()),2&t){const e=ne(3);ue(1),le("ngForOf",e.loaderArr)}}function oB(t,n){1&t&&Vt(0)}const sB=function(){return{styleClass:"p-scroller-loading-icon"}};function aB(t,n){if(1&t&&(Lt(0),Ce(1,oB,1,0,"ng-container",7),Nt()),2&t){const e=ne(4);ue(1),le("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Tt(3,nE,Sr(2,sB)))}}function lB(t,n){1&t&&dt(0,"i",16)}function cB(t,n){if(1&t&&(Ce(0,aB,2,5,"ng-container",0),Ce(1,lB,1,0,"ng-template",null,15,Dr)),2&t){const e=mn(2);le("ngIf",ne(3).loaderIconTemplate)("ngIfElse",e)}}const uB=function(t){return{"p-component-overlay":t}};function dB(t,n){if(1&t&&(ye(0,"div",12),Ce(1,rB,2,1,"ng-container",0),Ce(2,cB,3,2,"ng-template",null,13,Dr),_e()),2&t){const e=mn(3),i=ne(2);le("ngClass",Tt(3,uB,!i.loaderTemplate)),ue(1),le("ngIf",i.loaderTemplate)("ngIfElse",e)}}const fB=function(t,n){return{"p-scroller":!0,"p-both-scroll":t,"p-horizontal-scroll":n}};function hB(t,n){if(1&t){const e=gt();Lt(0),ye(1,"div",2,3),Pe("scroll",function(r){return pe(e),me(ne().onContainerScroll(r))}),Ce(3,QV,2,5,"ng-container",0),Ce(4,JV,3,6,"ng-template",null,4,Dr),Ce(6,eB,1,1,"div",5),Ce(7,dB,4,5,"div",6),_e(),Nt()}if(2&t){const e=mn(5),i=ne();ue(1),Ht(i._styleClass),le("ngStyle",i._style)("ngClass",xn(10,fB,i.both,i.horizontal)),Et("id",i._id)("tabindex",i.tabindex),ue(2),le("ngIf",i.contentTemplate)("ngIfElse",e),ue(3),le("ngIf",i._showSpacer),ue(1),le("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function pB(t,n){1&t&&Vt(0)}const mB=function(t,n){return{rows:t,columns:n}};function gB(t,n){if(1&t&&(Lt(0),Ce(1,pB,1,0,"ng-container",7),Nt()),2&t){const e=ne(2);ue(1),le("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",xn(5,Vm,e.items,xn(2,mB,e._items,e.loadedColumns)))}}function vB(t,n){if(1&t&&(_s(0),Ce(1,gB,2,8,"ng-container",17)),2&t){const e=ne();ue(1),le("ngIf",e.contentTemplate)}}const yB=["*"];let _B=(()=>{class t{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new Fe,this.onScroll=new Fe,this.onScrollIndexChange=new Fe,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._delay=0,this._resizeDelay=10,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.numItemsInViewport=0,this.lastScrollPos=0,this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1,this._disabled||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(this.initialized&&!i&&(e.items||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init(),e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){this.setContentEl(this.contentEl),this.init(),this.defaultWidth=be.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=be.getHeight(this.elementViewChild.nativeElement),this.initialized=!0}ngAfterViewChecked(){this.calculateAutoSize()}ngOnDestroy(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||be.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems}getElementRef(){return this.elementViewChild}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(c=0,b)=>c<=b?0:c,a=(c,b,C)=>c*b+C,l=(c=0,b=0)=>this.scrollTo({left:c,top:b,behavior:i});if(this.both){const c={rows:s(e[0],r[0]),cols:s(e[1],r[1])};(c.rows!==this.first.rows||c.cols!==this.first.cols)&&l(a(c.cols,this._itemSize[1],o.left),a(c.rows,this._itemSize[0],o.top))}else{const c=s(e,r);c!==this.first&&(this.horizontal?l(a(c,this._itemSize,o.left),0):l(0,a(c,this._itemSize,o.top)))}}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(b=0,C=0)=>this.scrollTo({left:b,top:C,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const b=(s.first-1)*this._itemSize;this.horizontal?a(b,0):a(0,b)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const b=(s.first+1)*this._itemSize;this.horizontal?a(b,0):a(0,b)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0,r=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0,o=(c,b)=>Math.ceil(c/(b||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,b=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&this.handleEvents("onLazyLoad",{first:o,last:s})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto";const{offsetWidth:e,offsetHeight:i}=this.contentEl;(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=(ethis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(se,ce)=>se?se>ce?se-ce:se:0,s=(se,ce)=>Math.floor(se/(ce||se)),a=(se,ce,we,de,Te,Ve)=>se<=Te?Te:Ve?we-de-Te:ce+Te-1,l=(se,ce,we,de,Te,Ve,tt)=>se<=Ve?0:Math.max(0,tt?sece?we:se-2*Ve),c=(se,ce,we,de,Te,Ve=!1)=>{let tt=ce+de+2*Te;return se>=Te&&(tt+=Te+1),this.getLast(tt,Ve)},b=o(i.scrollTop,r.top),C=o(i.scrollLeft,r.left);let B=this.both?{rows:0,cols:0}:0,j=this.last,Q=!1,ie=this.lastScrollPos;if(this.both){const se=this.lastScrollPos.top<=b,ce=this.lastScrollPos.left<=C,we={rows:s(b,this._itemSize[0]),cols:s(C,this._itemSize[1])},de={rows:a(we.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],se),cols:a(we.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],ce)};B={rows:l(we.rows,de.rows,this.first.rows,0,0,this.d_numToleratedItems[0],se),cols:l(we.cols,de.cols,this.first.cols,0,0,this.d_numToleratedItems[1],ce)},j={rows:c(we.rows,B.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(we.cols,B.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},Q=B.rows!==this.first.rows||j.rows!==this.last.rows||B.cols!==this.first.cols||j.cols!==this.last.cols,ie={top:b,left:C}}else{const se=this.horizontal?C:b,ce=this.lastScrollPos<=se,we=s(se,this._itemSize);B=l(we,a(we,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,ce),this.first,0,0,this.d_numToleratedItems,ce),j=c(we,B,0,this.numItemsInViewport,this.d_numToleratedItems),Q=B!==this.first||j!==this.last,ie=se}return{first:B,last:j,isRangeChanged:Q,scrollPos:ie}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.handleEvents("onLazyLoad",a)}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);i&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.cd.detectChanges())},this._delay)}else this.onScrollChange(e)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(this.elementViewChild){const[e,i]=[be.getWidth(this.elementViewChild.nativeElement),be.getHeight(this.elementViewChild.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}}return t.\u0275fac=function(e){return new(e||t)(fe(Nn),fe(Ot))},t.\u0275cmp=en({type:t,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&lr(r,Fs,4),2&e){let o;zt(o=jt())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Tn(WV,5),Tn(GV,5)),2&e){let r;zt(r=jt())&&(i.elementViewChild=r.first),zt(r=jt())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",delay:"delay",resizeDelay:"resizeDelay",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Un],ngContentSelectors:yB,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(e,i){if(1&e&&(Ta(),Ce(0,hB,8,13,"ng-container",0),Ce(1,vB,2,1,"ng-template",null,1,Dr)),2&e){const r=mn(2);le("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[ni,Ds,mi,Yr,ii],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}\n"],encapsulation:2}),t})(),qu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),bB=(()=>{class t{constructor(e){this.host=e,this.focused=!1}ngAfterContentChecked(){if(!this.focused&&this.autofocus){const e=be.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt))},t.\u0275dir=ze({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:["pAutoFocus","autofocus"]}}),t})(),wB=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();function xB(t,n){if(1&t&&(ye(0,"span"),lt(1),_e()),2&t){const e=ne();ue(1),rn(e.label||"empty")}}function CB(t,n){1&t&&Vt(0)}const gl=function(t){return{height:t}},EB=function(t,n){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n}},Bm=function(t){return{$implicit:t}},SB=["container"],DB=["filter"],TB=["in"],IB=["editableInput"],MB=["items"],kB=["scroller"];function OB(t,n){if(1&t&&(Lt(0),lt(1),Nt()),2&t){const e=ne(2);ue(1),rn(e.label||"empty")}}function AB(t,n){1&t&&Vt(0)}const RB=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function PB(t,n){if(1&t&&(ye(0,"span",12),Ce(1,OB,2,1,"ng-container",13),Ce(2,AB,1,0,"ng-container",14),_e()),2&t){const e=ne();le("ngClass",Tt(9,RB,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Et("id",e.labelId),ue(1),le("ngIf",!e.selectedItemTemplate),ue(1),le("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",Tt(11,Bm,e.selectedOption))}}const FB=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function LB(t,n){if(1&t&&(ye(0,"span",15),lt(1),_e()),2&t){const e=ne();le("ngClass",Tt(2,FB,null==e.placeholder||0===e.placeholder.length)),ue(1),rn(e.placeholder||"empty")}}function NB(t,n){if(1&t){const e=gt();ye(0,"input",16,17),Pe("click",function(){return pe(e),me(ne().onEditableInputClick())})("input",function(r){return pe(e),me(ne().onEditableInputChange(r))})("focus",function(r){return pe(e),me(ne().onEditableInputFocus(r))})("blur",function(r){return pe(e),me(ne().onInputBlur(r))}),_e()}if(2&t){const e=ne();le("disabled",e.disabled),Et("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function VB(t,n){if(1&t){const e=gt();ye(0,"i",18),Pe("click",function(r){return pe(e),me(ne().clear(r))}),_e()}}function BB(t,n){1&t&&Vt(0)}function HB(t,n){1&t&&Vt(0)}const iE=function(t){return{options:t}};function zB(t,n){if(1&t&&(Lt(0),Ce(1,HB,1,0,"ng-container",14),Nt()),2&t){const e=ne(3);ue(1),le("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Tt(2,iE,e.filterOptions))}}function jB(t,n){if(1&t){const e=gt();ye(0,"div",27)(1,"input",28,29),Pe("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return pe(e),me(ne(3).onKeydown(r,!1))})("input",function(r){return pe(e),me(ne(3).onFilterInputChange(r))}),_e(),dt(3,"span",30),_e()}if(2&t){const e=ne(3);ue(1),le("value",e.filterValue||""),Et("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function UB(t,n){if(1&t&&(ye(0,"div",24),Pe("click",function(i){return i.stopPropagation()}),Ce(1,zB,2,4,"ng-container",25),Ce(2,jB,4,4,"ng-template",null,26,Dr),_e()),2&t){const e=mn(3),i=ne(2);ue(1),le("ngIf",i.filterTemplate)("ngIfElse",e)}}function $B(t,n){1&t&&Vt(0)}const rE=function(t,n){return{$implicit:t,options:n}};function qB(t,n){if(1&t&&Ce(0,$B,1,0,"ng-container",14),2&t){const e=n.$implicit,i=n.options;ne(2),le("ngTemplateOutlet",mn(7))("ngTemplateOutletContext",xn(2,rE,e,i))}}function WB(t,n){1&t&&Vt(0)}function GB(t,n){if(1&t&&Ce(0,WB,1,0,"ng-container",14),2&t){const e=n.options;le("ngTemplateOutlet",ne(4).loaderTemplate)("ngTemplateOutletContext",Tt(2,iE,e))}}function KB(t,n){1&t&&(Lt(0),Ce(1,GB,1,4,"ng-template",34),Nt())}function QB(t,n){if(1&t){const e=gt();ye(0,"p-scroller",31,32),Pe("onLazyLoad",function(r){return pe(e),me(ne(2).onLazyLoad.emit(r))}),Ce(2,qB,1,5,"ng-template",33),Ce(3,KB,2,0,"ng-container",13),_e()}if(2&t){const e=ne(2);Di(Tt(8,gl,e.scrollHeight)),le("items",e.optionsToDisplay)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),ue(3),le("ngIf",e.loaderTemplate)}}function YB(t,n){1&t&&Vt(0)}const ZB=function(){return{}};function XB(t,n){if(1&t&&(Lt(0),Ce(1,YB,1,0,"ng-container",14),Nt()),2&t){ne();const e=mn(7),i=ne();ue(1),le("ngTemplateOutlet",e)("ngTemplateOutletContext",xn(3,rE,i.optionsToDisplay,Sr(2,ZB)))}}function JB(t,n){if(1&t&&(ye(0,"span"),lt(1),_e()),2&t){const e=ne().$implicit,i=ne(4);ue(1),rn(i.getOptionGroupLabel(e)||"empty")}}function eH(t,n){1&t&&Vt(0)}function tH(t,n){1&t&&Vt(0)}const oE=function(t,n){return{$implicit:t,selectedOption:n}};function nH(t,n){if(1&t&&(ye(0,"li",40),Ce(1,JB,2,1,"span",13),Ce(2,eH,1,0,"ng-container",14),_e(),Ce(3,tH,1,0,"ng-container",14)),2&t){const e=n.$implicit,i=ne(2).options,r=mn(5),o=ne(2);le("ngStyle",Tt(6,gl,i.itemSize+"px")),ue(1),le("ngIf",!o.groupTemplate),ue(1),le("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",Tt(8,Bm,e)),ue(1),le("ngTemplateOutlet",r)("ngTemplateOutletContext",xn(10,oE,o.getOptionGroupChildren(e),o.selectedOption))}}function iH(t,n){if(1&t&&(Lt(0),Ce(1,nH,4,13,"ng-template",39),Nt()),2&t){const e=ne().$implicit;ue(1),le("ngForOf",e)}}function rH(t,n){1&t&&Vt(0)}function oH(t,n){if(1&t&&(Lt(0),Ce(1,rH,1,0,"ng-container",14),Nt()),2&t){const e=ne().$implicit,i=mn(5),r=ne(2);ue(1),le("ngTemplateOutlet",i)("ngTemplateOutletContext",xn(2,oE,e,r.selectedOption))}}function sH(t,n){if(1&t){const e=gt();ye(0,"p-dropdownItem",41),Pe("onClick",function(r){return pe(e),me(ne(4).onItemClick(r))}),_e()}if(2&t){const e=n.$implicit,i=ne().selectedOption,r=ne(3);le("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function aH(t,n){1&t&&Ce(0,sH,1,5,"ng-template",39),2&t&&le("ngForOf",n.$implicit)}function lH(t,n){if(1&t&&(Lt(0),lt(1),Nt()),2&t){const e=ne(4);ue(1),ar(" ",e.emptyFilterMessageLabel," ")}}function cH(t,n){1&t&&Vt(0,null,43)}function uH(t,n){if(1&t&&(ye(0,"li",42),Ce(1,lH,2,1,"ng-container",25),Ce(2,cH,2,0,"ng-container",19),_e()),2&t){const e=ne().options,i=ne(2);le("ngStyle",Tt(4,gl,e.itemSize+"px")),ue(1),le("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),ue(1),le("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function dH(t,n){if(1&t&&(Lt(0),lt(1),Nt()),2&t){const e=ne(4);ue(1),ar(" ",e.emptyMessageLabel," ")}}function fH(t,n){1&t&&Vt(0,null,44)}function hH(t,n){if(1&t&&(ye(0,"li",42),Ce(1,dH,2,1,"ng-container",25),Ce(2,fH,2,0,"ng-container",19),_e()),2&t){const e=ne().options,i=ne(2);le("ngStyle",Tt(4,gl,e.itemSize+"px")),ue(1),le("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),ue(1),le("ngTemplateOutlet",i.emptyTemplate)}}function pH(t,n){if(1&t&&(ye(0,"ul",35,36),Ce(2,iH,2,1,"ng-container",13),Ce(3,oH,2,5,"ng-container",13),Ce(4,aH,1,1,"ng-template",null,37,Dr),Ce(6,uH,3,6,"li",38),Ce(7,hH,3,6,"li",38),_e()),2&t){const e=n.options,i=ne(2);Di(e.contentStyle),le("ngClass",e.contentStyleClass),Et("id",i.listId),ue(2),le("ngIf",i.group),ue(1),le("ngIf",!i.group),ue(3),le("ngIf",i.filterValue&&i.isEmpty()),ue(1),le("ngIf",!i.filterValue&&i.isEmpty())}}function mH(t,n){1&t&&Vt(0)}const gH=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},vH=function(t){return{value:"visible",params:t}};function yH(t,n){if(1&t){const e=gt();ye(0,"div",0),Pe("click",function(r){return pe(e),me(ne().onOverlayClick(r))})("@overlayAnimation.start",function(r){return pe(e),me(ne().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return pe(e),me(ne().onOverlayAnimationEnd(r))}),Ce(1,BB,1,0,"ng-container",19),Ce(2,UB,4,2,"div",20),ye(3,"div",21),Ce(4,QB,4,10,"p-scroller",22),Ce(5,XB,2,6,"ng-container",13),Ce(6,pH,8,8,"ng-template",null,23,Dr),_e(),Ce(8,mH,1,0,"ng-container",19),_e()}if(2&t){const e=ne();Ht(e.panelStyleClass),le("ngClass","p-dropdown-panel p-component")("@overlayAnimation",Tt(15,vH,xn(12,gH,e.showTransitionOptions,e.hideTransitionOptions)))("ngStyle",e.panelStyle),ue(1),le("ngTemplateOutlet",e.headerTemplate),ue(1),le("ngIf",e.filter),ue(1),Ec("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),ue(1),le("ngIf",e.virtualScroll),ue(1),le("ngIf",!e.virtualScroll),ue(3),le("ngTemplateOutlet",e.footerTemplate)}}const _H=function(t,n,e,i){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":n,"p-focus":e,"p-dropdown-clearable":i}},bH={provide:yn,useExisting:yt(()=>xH),multi:!0};let wH=(()=>{class t{constructor(){this.onClick=new Fe}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=en({type:t,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ye(0,"li",0),Pe("click",function(o){return i.onOptionClick(o)}),Ce(1,xB,2,1,"span",1),Ce(2,CB,1,0,"ng-container",2),_e()),2&e&&(le("ngStyle",Tt(8,gl,i.itemSize+"px"))("id",i.selected?"p-highlighted-option":"")("ngClass",xn(10,EB,i.selected,i.disabled)),Et("aria-label",i.label)("aria-selected",i.selected),ue(1),le("ngIf",!i.template),ue(1),le("ngTemplateOutlet",i.template)("ngTemplateOutletContext",Tt(13,Bm,i.option)))},dependencies:[ni,mi,Yr,ii,Uu],encapsulation:2}),t})(),xH=(()=>{class t{constructor(e,i,r,o,s,a,l){this.el=e,this.renderer=i,this.cd=r,this.zone=o,this.filterService=s,this.config=a,this.overlayService=l,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.lazy=!1,this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.onChange=new Fe,this.onFilter=new Fe,this.onFocus=new Fe,this.onBlur=new Fe,this.onClick=new Fe,this.onShow=new Fe,this.onHide=new Fe,this.onClear=new Fe,this.onLazyLoad=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=fm()}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}get options(){return this._options}set options(e){this._options=e,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&St.isNotEmpty(this.value)&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Oi.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Oi.EMPTY_FILTER_MESSAGE)}get filled(){return this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?St.resolveFieldData(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue?St.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?St.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?St.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?St.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const i=e.option;this.isOptionDisabled(i)||(this.selectItem(e.originalEvent,i),this.accessibleViewChild.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},150)}selectItem(e,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}))}ngAfterViewChecked(){this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper&&(be.findSingle(this.overlay,"li.p-highlight")&&be.scrollInView(this.itemsWrapper,be.findSingle(this.overlay,"li.p-highlight")),this.selectedOptionUpdated=!1)}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.updateSelectedOption(e),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onMouseclick(e){this.disabled||this.readonly||this.isInputClick(e)||(this.onClick.emit(e),this.accessibleViewChild.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}isInputClick(e){return be.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.nativeElement)}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputClick(){this.bindDocumentClickListener()}onEditableInputFocus(e){this.focused=!0,this.hide(),this.onFocus.emit(e)}onEditableInputChange(e){this.value=e.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}show(){this.overlayVisible=!0,this.preventDocumentDefault=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.overlay=e.element,this.itemsWrapper=be.findSingle(this.overlay,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller.setContentEl(this.itemsViewChild.nativeElement),this.appendOverlay(),this.autoZIndex&&gi.set("overlay",this.overlay,this.baseZIndex+this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.options&&this.options.length)if(this.virtualScroll){const i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==i&&this.scroller.scrollToIndex(i)}else{let i=be.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e);break;case"void":this.onOverlayHide(),this.onHide.emit(e)}}onOverlayAnimationEnd(e){"void"===e.toState&&gi.clear(e.element)}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):be.appendChild(this.overlay,this.appendTo),this.overlay.style.minWidth||(this.overlay.style.minWidth=be.getWidth(this.containerViewChild.nativeElement)+"px"))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}alignOverlay(){this.overlay&&(this.appendTo?be.absolutePosition(this.overlay,this.containerViewChild.nativeElement):be.relativePosition(this.overlay,this.containerViewChild.nativeElement))}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e-1;0<=r;r--){let o=this.optionsToDisplay[r];if(!this.isOptionDisabled(o)){i=o;break}}if(!i)for(let r=this.optionsToDisplay.length-1;r>=e;r--){let o=this.optionsToDisplay[r];if(!this.isOptionDisabled(o)){i=o;break}}}return i}findNextEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e+1;r0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findNextEnabledOption(r);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let o=r.itemIndex-1;if(o>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[o]),this.selectedOptionUpdated=!0;else if(o<0){let s=this.optionsToDisplay[r.groupIndex-1];s&&(this.selectItem(e,this.getOptionGroupChildren(s)[this.getOptionGroupChildren(s).length-1]),this.selectedOptionUpdated=!0)}}}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,o=this.findPrevEnabledOption(r);o&&(this.selectItem(e,o),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide();break;default:i&&!e.metaKey&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=e.key;let r;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+i:i,this.group){let o=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};r=this.searchOptionWithinGroup(o)}else{let o=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;r=this.searchOption(++o)}r&&!this.isOptionDisabled(r)&&(this.selectItem(e,r),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let i;return this.searchValue&&(i=this.searchOptionInRange(e,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,e))),i}searchOptionInRange(e,i){for(let r=e;r{!this.preventDocumentDefault&&this.isOutsideClicked(i)&&(this.hide(),this.unbindDocumentClickListener()),this.preventDocumentDefault=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!be.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Pm(this.containerViewChild.nativeElement,e=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}clear(e){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(e)}onOverlayHide(){this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null,this.itemsWrapper=null,this.onModelTouched()}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&gi.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(zi),fe(Nn),fe(Ot),fe(BN),fe(al),fe(Ix))},t.\u0275cmp=en({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,i,r){if(1&e&&lr(r,Fs,4),2&e){let o;zt(o=jt())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Tn(SB,5),Tn(DB,5),Tn(TB,5),Tn(IB,5),Tn(MB,5),Tn(kB,5)),2&e){let r;zt(r=jt())&&(i.containerViewChild=r.first),zt(r=jt())&&(i.filterViewChild=r.first),zt(r=jt())&&(i.accessibleViewChild=r.first),zt(r=jt())&&(i.editableInputViewChild=r.first),zt(r=jt())&&(i.itemsViewChild=r.first),zt(r=jt())&&(i.scroller=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&Kr("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused||i.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",disabled:"disabled",itemSize:"itemSize",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[_t([bH])],decls:12,vars:25,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","role","combobox",3,"disabled","pAutoFocus","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-inputtext","aria-haspopup","listbox",3,"disabled","click","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"ngClass","ngStyle","class","click",4,"ngIf"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","click","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],[1,"p-dropdown-header",3,"click"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","content"],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["itemslist",""],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group",3,"ngStyle"],[3,"option","selected","label","disabled","template","onClick"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(e,i){1&e&&(ye(0,"div",0,1),Pe("click",function(o){return i.onMouseclick(o)}),ye(2,"div",2)(3,"input",3,4),Pe("focus",function(o){return i.onInputFocus(o)})("blur",function(o){return i.onInputBlur(o)})("keydown",function(o){return i.onKeydown(o,!0)}),_e()(),Ce(5,PB,3,13,"span",5),Ce(6,LB,2,4,"span",6),Ce(7,NB,2,4,"input",7),Ce(8,VB,1,0,"i",8),ye(9,"div",9),dt(10,"span",10),_e(),Ce(11,yH,9,17,"div",11),_e()),2&e&&(Ht(i.styleClass),le("ngClass",Ra(20,_H,i.disabled,i.overlayVisible,i.focused,i.showClear&&!i.disabled))("ngStyle",i.style),ue(3),le("disabled",i.disabled)("pAutoFocus",i.autofocus),Et("id",i.inputId)("placeholder",i.placeholder)("aria-label",i.ariaLabel)("aria-expanded",!1)("aria-labelledby",i.ariaLabelledBy)("tabindex",i.tabindex)("aria-activedescendant",i.overlayVisible?i.labelId:null),ue(2),le("ngIf",!i.editable&&null!=i.label),ue(1),le("ngIf",!i.editable&&null==i.label),ue(1),le("ngIf",i.editable),ue(1),le("ngIf",i.isVisibleClearIcon),ue(1),Et("aria-expanded",i.overlayVisible),ue(1),le("ngClass",i.dropdownIcon),ue(1),le("ngIf",i.overlayVisible))},dependencies:[ni,Ds,mi,Yr,ii,Fs,qV,_B,bB,wH],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown .p-dropdown-panel{min-width:100%}.p-dropdown-panel{position:absolute;top:0;left:0}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,data:{animation:[$u("overlayAnimation",[Nr(":enter",[Yn({opacity:0,transform:"scaleY(0.8)"}),fr("{{showTransitionParams}}")]),Nr(":leave",[fr("{{hideTransitionParams}}",Yn({opacity:0}))])])]},changeDetection:0}),t})(),Wu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn,ml,vi,qu,wB,sn,qu]}),t})();var CH=M(915);function EH(t,n){1&t&&Vt(0)}function SH(t,n){if(1&t&&(ye(0,"div",3),_s(1),Ce(2,EH,1,0,"ng-container",4),_e()),2&t){const e=ne();ue(2),le("ngTemplateOutlet",e.headerTemplate)}}function DH(t,n){1&t&&(ye(0,"div",3)(1,"span",5)(2,"select",6)(3,"option",7),lt(4,"Heading"),_e(),ye(5,"option",8),lt(6,"Subheading"),_e(),ye(7,"option",9),lt(8,"Normal"),_e()(),ye(9,"select",10)(10,"option",9),lt(11,"Sans Serif"),_e(),ye(12,"option",11),lt(13,"Serif"),_e(),ye(14,"option",12),lt(15,"Monospace"),_e()()(),ye(16,"span",5),dt(17,"button",13)(18,"button",14)(19,"button",15),_e(),ye(20,"span",5),dt(21,"select",16)(22,"select",17),_e(),ye(23,"span",5),dt(24,"button",18)(25,"button",19),ye(26,"select",20),dt(27,"option",9),ye(28,"option",21),lt(29,"center"),_e(),ye(30,"option",22),lt(31,"right"),_e(),ye(32,"option",23),lt(33,"justify"),_e()()(),ye(34,"span",5),dt(35,"button",24)(36,"button",25)(37,"button",26),_e(),ye(38,"span",5),dt(39,"button",27),_e()())}const TH=[[["p-header"]]],IH=["p-header"],MH={provide:yn,useExisting:yt(()=>kH),multi:!0};let kH=(()=>{class t{constructor(e){this.el=e,this.onTextChange=new Fe,this.onSelectionChange=new Fe,this.onInit=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.quillElements=null}ngAfterViewInit(){this.initQuillElements(),this.quillElements?.editorElement?.isConnected&&this.initQuillEditor()}ngAfterViewChecked(){!this.quill&&this.quillElements?.editorElement?.isConnected&&this.initQuillEditor()}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()&&(this.headerTemplate=e.template)})}writeValue(e){this.value=e,this.quill&&(e?this.quill.setContents(this.quill.clipboard.convert(e)):this.quill.setText(""))}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}getQuill(){return this.quill}get readonly(){return this._readonly}set readonly(e){this._readonly=e,this.quill&&(this._readonly?this.quill.disable():this.quill.enable())}initQuillEditor(){this.initQuillElements();const{toolbarElement:e,editorElement:i}=this.quillElements;let r={toolbar:e},o=this.modules?{...r,...this.modules}:r;this.quill=new CH(i,{modules:o,placeholder:this.placeholder,readOnly:this.readonly,theme:"snow",formats:this.formats,bounds:this.bounds,debug:this.debug,scrollingContainer:this.scrollingContainer}),this.value&&this.quill.setContents(this.quill.clipboard.convert(this.value)),this.quill.on("text-change",(s,a,l)=>{if("user"===l){let c=be.findSingle(i,".ql-editor").innerHTML,b=this.quill.getText().trim();"


"===c&&(c=null),this.onTextChange.emit({htmlValue:c,textValue:b,delta:s,source:l}),this.onModelChange(c),this.onModelTouched()}}),this.quill.on("selection-change",(s,a,l)=>{this.onSelectionChange.emit({range:s,oldRange:a,source:l})}),this.onInit.emit({editor:this.quill})}initQuillElements(){this.quillElements||(this.quillElements={editorElement:be.findSingle(this.el.nativeElement,"div.p-editor-content"),toolbarElement:be.findSingle(this.el.nativeElement,"div.p-editor-toolbar")})}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt))},t.\u0275cmp=en({type:t,selectors:[["p-editor"]],contentQueries:function(e,i,r){if(1&e&&(lr(r,HN,5),lr(r,Fs,4)),2&e){let o;zt(o=jt())&&(i.toolbar=o.first),zt(o=jt())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",placeholder:"placeholder",formats:"formats",modules:"modules",bounds:"bounds",scrollingContainer:"scrollingContainer",debug:"debug",readonly:"readonly"},outputs:{onTextChange:"onTextChange",onSelectionChange:"onSelectionChange",onInit:"onInit"},features:[_t([MH])],ngContentSelectors:IH,decls:4,vars:6,consts:[[3,"ngClass"],["class","p-editor-toolbar",4,"ngIf"],[1,"p-editor-content",3,"ngStyle"],[1,"p-editor-toolbar"],[4,"ngTemplateOutlet"],[1,"ql-formats"],[1,"ql-header"],["value","1"],["value","2"],["selected",""],[1,"ql-font"],["value","serif"],["value","monospace"],["aria-label","Bold","type","button",1,"ql-bold"],["aria-label","Italic","type","button",1,"ql-italic"],["aria-label","Underline","type","button",1,"ql-underline"],[1,"ql-color"],[1,"ql-background"],["value","ordered","aria-label","Ordered List","type","button",1,"ql-list"],["value","bullet","aria-label","Unordered List","type","button",1,"ql-list"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["aria-label","Insert Link","type","button",1,"ql-link"],["aria-label","Insert Image","type","button",1,"ql-image"],["aria-label","Insert Code Block","type","button",1,"ql-code-block"],["aria-label","Remove Styles","type","button",1,"ql-clean"]],template:function(e,i){1&e&&(Ta(TH),ye(0,"div",0),Ce(1,SH,3,1,"div",1),Ce(2,DH,40,0,"div",1),dt(3,"div",2),_e()),2&e&&(Ht(i.styleClass),le("ngClass","p-editor-container"),ue(1),le("ngIf",i.toolbar||i.headerTemplate),ue(1),le("ngIf",!i.toolbar&&!i.headerTemplate),ue(1),le("ngStyle",i.style))},dependencies:[ni,mi,Yr,ii],styles:[".p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item{width:auto;height:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Hm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn]}),t})(),FH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,vi,sn]}),t})(),zm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,vi]}),t})(),sE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),d5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn,ko,sE,zm,vi,sn,ko,sE,zm]}),t})(),jm=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn]}),t})();const y5=["input"];function _5(t,n){if(1&t){const e=gt();ye(0,"i",6),Pe("click",function(){return pe(e),me(ne().clear())}),_e()}}const aE=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},lE=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function b5(t,n){if(1&t){const e=gt();ye(0,"span",7)(1,"button",8),Pe("mousedown",function(r){return pe(e),me(ne().onUpButtonMouseDown(r))})("mouseup",function(){return pe(e),me(ne().onUpButtonMouseUp())})("mouseleave",function(){return pe(e),me(ne().onUpButtonMouseLeave())})("keydown",function(r){return pe(e),me(ne().onUpButtonKeyDown(r))})("keyup",function(){return pe(e),me(ne().onUpButtonKeyUp())}),_e(),ye(2,"button",8),Pe("mousedown",function(r){return pe(e),me(ne().onDownButtonMouseDown(r))})("mouseup",function(){return pe(e),me(ne().onDownButtonMouseUp())})("mouseleave",function(){return pe(e),me(ne().onDownButtonMouseLeave())})("keydown",function(r){return pe(e),me(ne().onDownButtonKeyDown(r))})("keyup",function(){return pe(e),me(ne().onDownButtonKeyUp())}),_e()()}if(2&t){const e=ne();ue(1),Ht(e.incrementButtonClass),le("ngClass",Sr(10,aE))("icon",e.incrementButtonIcon)("disabled",e.disabled),ue(1),Ht(e.decrementButtonClass),le("ngClass",Sr(11,lE))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function w5(t,n){if(1&t){const e=gt();ye(0,"button",8),Pe("mousedown",function(r){return pe(e),me(ne().onUpButtonMouseDown(r))})("mouseup",function(){return pe(e),me(ne().onUpButtonMouseUp())})("mouseleave",function(){return pe(e),me(ne().onUpButtonMouseLeave())})("keydown",function(r){return pe(e),me(ne().onUpButtonKeyDown(r))})("keyup",function(){return pe(e),me(ne().onUpButtonKeyUp())}),_e()}if(2&t){const e=ne();Ht(e.incrementButtonClass),le("ngClass",Sr(5,aE))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function x5(t,n){if(1&t){const e=gt();ye(0,"button",8),Pe("mousedown",function(r){return pe(e),me(ne().onDownButtonMouseDown(r))})("mouseup",function(){return pe(e),me(ne().onDownButtonMouseUp())})("mouseleave",function(){return pe(e),me(ne().onDownButtonMouseLeave())})("keydown",function(r){return pe(e),me(ne().onDownButtonKeyDown(r))})("keyup",function(){return pe(e),me(ne().onDownButtonKeyUp())}),_e()}if(2&t){const e=ne();Ht(e.decrementButtonClass),le("ngClass",Sr(5,lE))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const C5=function(t,n,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}},E5={provide:yn,useExisting:yt(()=>S5),multi:!0};let S5=(()=>{class t{constructor(e,i){this.el=e,this.cd=i,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.showClear=!1,this.onInput=new Fe,this.onFocus=new Fe,this.onBlur=new Fe,this.onKeyDown=new Fe,this.onClear=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,o)=>[r,o]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r+=this.suffix),r}return e.toString()}return""}parseValue(e){let i=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(i){if("-"===i)return i;let r=+i;return isNaN(r)?null:r}return null}repeat(e,i,r){if(this.readonly)return;let o=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},o),this.spin(e,r)}spin(e,i){let r=this.step*i,o=this.parseValue(this.input.nativeElement.value)||0,s=this.validateValue(o+r);this.maxlength&&this.maxlength0&&i>l){const C=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i-1)+o.slice(i)}this.updateValue(e,s,null,"delete-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range");break;case 46:if(e.preventDefault(),i===r){const a=o.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(o);if(this.isNumeralChar(a)){const b=this.getDecimalLength(o);if(this._group.test(a))this._group.lastIndex=0,s=o.slice(0,i)+o.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,b?this.input.nativeElement.setSelectionRange(i+1,i+1):s=o.slice(0,i)+o.slice(i+1);else if(l>0&&i>l){const C=this.isDecimalMode()&&(this.minFractionDigits||0)0?s:""):s=o.slice(0,i)+o.slice(i+1)}this.updateValue(e,s,null,"delete-back-single")}else s=this.deleteRange(o,i,r),this.updateValue(e,s,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;e.preventDefault();let i=e.which||e.keyCode,r=String.fromCharCode(i);const o=this.isDecimalSign(r),s=this.isMinusSign(r);(48<=i&&i<=57||s||o)&&this.insert(e,r,{isDecimalSign:o,isMinusSign:s})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("Text");if(i){let r=this.parseValue(i);null!=r&&this.insert(e,r.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const o=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:o}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.search(this._minusSign);this._minusSign.lastIndex=0;const o=e.search(this._suffix);this._suffix.lastIndex=0;const s=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:o,currencyCharIndex:s}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){const o=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==o)return;let s=this.input.nativeElement.selectionStart,a=this.input.nativeElement.selectionEnd,l=this.input.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:b,suffixCharIndex:C,currencyCharIndex:B}=this.getCharIndexes(l);let j;if(r.isMinusSign)0===s&&(j=l,(-1===b||0!==a)&&(j=this.insertText(l,i,0,a)),this.updateValue(e,j,i,"insert"));else if(r.isDecimalSign)c>0&&s===c?this.updateValue(e,l,i,"insert"):(c>s&&c0&&s>c){if(s+i.length-(c+1)<=Q){const se=B>=s?B-1:C>=s?C:l.length;j=l.slice(0,s)+i+l.slice(s+i.length,se)+l.slice(se),this.updateValue(e,j,i,ie)}}else j=this.insertText(l,i,s,a),this.updateValue(e,j,i,ie)}}insertText(e,i,r,o){if(2===("."===i?i:i.split(".")).length){const a=e.slice(r,o).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+e.slice(o):e||this.formatValue(i)}return o-r===e.length?this.formatValue(i):0===r?i+e.slice(o):o===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(o)}deleteRange(e,i,r){let o;return o=r-i===e.length?"":0===i?e.slice(r):r===e.length?e.slice(0,i):e.slice(0,i)+e.slice(r),o}initCursor(){let e=this.input.nativeElement.selectionStart,i=this.input.nativeElement.value,r=i.length,o=null,s=(this.prefixChar||"").length;i=i.replace(this._prefix,""),e-=s;let a=i.charAt(e);if(this.isNumeralChar(a))return e+s;let l=e-1;for(;l>=0;){if(a=i.charAt(l),this.isNumeralChar(a)){o=l+s;break}l--}if(null!==o)this.input.nativeElement.setSelectionRange(o+1,o+1);else{for(l=e;lthis.max?this.max:e}updateInput(e,i,r,o){i=i||"";let s=this.input.nativeElement.value,a=this.formatValue(e),l=s.length;if(a!==o&&(a=this.concatValues(a,o)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const b=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(b,b)}else{let c=this.input.nativeElement.selectionStart,b=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt),fe(Nn))},t.\u0275cmp=en({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,i){if(1&e&&Tn(y5,5),2&e){let r;zt(r=jt())&&(i.input=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,i){2&e&&Kr("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused)("p-inputnumber-clearable",i.showClear&&"vertical"!=i.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[_t([E5]),Un],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon pi pi-times",3,"click",4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-clear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,i){1&e&&(ye(0,"span",0)(1,"input",1,2),Pe("input",function(o){return i.onUserInput(o)})("keydown",function(o){return i.onInputKeyDown(o)})("keypress",function(o){return i.onInputKeyPress(o)})("paste",function(o){return i.onPaste(o)})("click",function(){return i.onInputClick()})("focus",function(o){return i.onInputFocus(o)})("blur",function(o){return i.onInputBlur(o)}),_e(),Ce(3,_5,1,0,"i",3),Ce(4,b5,3,12,"span",4),Ce(5,w5,1,6,"button",5),Ce(6,x5,1,6,"button",5),_e()),2&e&&(Ht(i.styleClass),le("ngClass",Ti(28,C5,i.showButtons&&"stacked"===i.buttonLayout,i.showButtons&&"horizontal"===i.buttonLayout,i.showButtons&&"vertical"===i.buttonLayout))("ngStyle",i.style),ue(1),Ht(i.inputStyleClass),le("ngClass","p-inputnumber-input")("ngStyle",i.inputStyle)("value",i.formattedValue())("disabled",i.disabled)("readonly",i.readonly),Et("placeholder",i.placeholder)("title",i.title)("id",i.inputId)("size",i.size)("name",i.name)("autocomplete",i.autocomplete)("maxlength",i.maxlength)("tabindex",i.tabindex)("aria-label",i.ariaLabel)("aria-required",i.ariaRequired)("required",i.required)("min",i.min)("max",i.max),ue(2),le("ngIf","vertical"!=i.buttonLayout&&i.showClear&&i.value),ue(1),le("ngIf",i.showButtons&&"stacked"===i.buttonLayout),ue(1),le("ngIf",i.showButtons&&"stacked"!==i.buttonLayout),ue(1),le("ngIf",i.showButtons&&"stacked"!==i.buttonLayout))},dependencies:[ni,mi,ii,jC,Fm],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),t})(),Gu=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,Lm,ko]}),t})();const D5=function(t,n,e){return{"p-inputswitch p-component":!0,"p-inputswitch-checked":t,"p-disabled":n,"p-focus":e}},T5={provide:yn,useExisting:yt(()=>I5),multi:!0};let I5=(()=>{class t{constructor(e){this.cd=e,this.trueValue=!0,this.falseValue=!1,this.onChange=new Fe,this.modelValue=!1,this.focused=!1,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,i){!this.disabled&&!this.readonly&&(e.preventDefault(),this.toggle(e),i.focus())}onInputChange(e){this.readonly||this.updateModel(e,e.target.checked)}toggle(e){this.updateModel(e,!this.checked())}updateModel(e,i){this.modelValue=i?this.trueValue:this.falseValue,this.onModelChange(this.modelValue),this.onChange.emit({originalEvent:e,checked:this.modelValue})}onFocus(e){this.focused=!0}onBlur(e){this.focused=!1,this.onModelTouched()}writeValue(e){this.modelValue=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.modelValue===this.trueValue}}return t.\u0275fac=function(e){return new(e||t)(fe(Nn))},t.\u0275cmp=en({type:t,selectors:[["p-inputSwitch"]],hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",tabindex:"tabindex",inputId:"inputId",name:"name",disabled:"disabled",readonly:"readonly",trueValue:"trueValue",falseValue:"falseValue",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onChange:"onChange"},features:[_t([T5])],decls:5,vars:16,consts:[[3,"ngClass","ngStyle","click"],[1,"p-hidden-accessible"],["type","checkbox","role","switch",3,"checked","disabled","change","focus","blur"],["cb",""],[1,"p-inputswitch-slider"]],template:function(e,i){if(1&e){const r=gt();ye(0,"div",0),Pe("click",function(s){pe(r);const a=mn(3);return me(i.onClick(s,a))}),ye(1,"div",1)(2,"input",2,3),Pe("change",function(s){return i.onInputChange(s)})("focus",function(s){return i.onFocus(s)})("blur",function(s){return i.onBlur(s)}),_e()(),dt(4,"span",4),_e()}2&e&&(Ht(i.styleClass),le("ngClass",Ti(12,D5,i.checked(),i.disabled,i.focused))("ngStyle",i.style),ue(2),le("checked",i.checked())("disabled",i.disabled),Et("aria-label",i.ariaLabel)("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-checked",i.checked())("aria-labelledby",i.ariaLabelledBy))},dependencies:[ni,ii],styles:['.p-inputswitch{position:relative;display:inline-block;-webkit-user-select:none;user-select:none}.p-inputswitch-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0}.p-inputswitch-slider:before{position:absolute;content:"";top:50%}\n'],encapsulation:2,changeDetection:0}),t})(),M5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})();const k5={provide:kn,useExisting:yt(()=>A5),multi:!0},O5={pint:/[\d]/,int:/[\d\-]/,pnum:/[\d\.]/,money:/[\d\.\s,]/,num:/[\d\-\.]/,hex:/[0-9a-f]/i,email:/[a-z0-9_\.\-@]/i,alpha:/[a-z_]/i,alphanum:/[a-z0-9_]/i},cE={63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35};let A5=(()=>{class t{constructor(e){this.el=e,this.ngModelChange=new Fe,this.isAndroid=be.isAndroid()}get pattern(){return this._pattern}set pattern(e){this._pattern=e,this.regex=O5[this._pattern]||this._pattern}isNavKeyPress(e){let i=e.keyCode;return i=be.getBrowser().safari&&cE[i]||i,i>=33&&i<=40||13==i||9==i||27==i}isSpecialKey(e){let i=e.keyCode||e.charCode;return 9==i||13==i||27==i||16==i||17==i||i>=18&&i<=20||be.getBrowser().opera&&!e.shiftKey&&(8==i||i>=33&&i<=35||i>=36&&i<=39||i>=44&&i<=45)}getKey(e){let i=e.keyCode||e.charCode;return be.getBrowser().safari&&cE[i]||i}getCharCode(e){return e.charCode||e.keyCode||e.which}findDelta(e,i){let r="";for(let o=0;o1||!o&&!s?this.isValidString(i)||(this.el.nativeElement.value=r,this.ngModelChange.emit(r)):s||this.isValidChar(o)||(this.el.nativeElement.value=r,this.ngModelChange.emit(r)),i=this.el.nativeElement.value,this.isValidString(i)&&(this.lastValue=i)}}onKeyPress(e){if(this.isAndroid||this.pValidateOnly)return;let i=be.getBrowser(),r=this.getKey(e);if(i.mozilla&&(e.ctrlKey||e.altKey))return;if(17==r||18==r)return;let o=this.getCharCode(e),s=String.fromCharCode(o),a=!0;!i.mozilla&&(this.isSpecialKey(e)||!s)||(a=this.regex.test(s),a||e.preventDefault())}onPaste(e){const i=e.clipboardData||window.clipboardData.getData("text");if(i){const r=i.getData("text");for(let o of r.toString())if(!this.regex.test(o))return void e.preventDefault()}}validate(e){if(this.pValidateOnly){let i=this.el.nativeElement.value;if(i&&!this.regex.test(i))return{validatePattern:!1}}}}return t.\u0275fac=function(e){return new(e||t)(fe(Gt))},t.\u0275dir=ze({type:t,selectors:[["","pKeyFilter",""]],hostAttrs:[1,"p-element"],hostBindings:function(e,i){1&e&&Pe("input",function(o){return i.onInput(o)})("keypress",function(o){return i.onKeyPress(o)})("paste",function(o){return i.onPaste(o)})},inputs:{pValidateOnly:"pValidateOnly",pattern:["pKeyFilter","pattern"]},outputs:{ngModelChange:"ngModelChange"},features:[_t([k5])]}),t})(),R5=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),s8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,Ps,vi,ml,Ps,ml]}),t})(),T8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,Ps,vi,ml,sn,Ps,ml,sn]}),t})(),R8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),z8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn,vi,sn]}),t})(),j8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),q8=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,sn]}),t})(),cz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,Wu,Gu,Rm,sn,vi,Wu,Gu,Rm,sn]}),t})();function uz(t,n){1&t&&dt(0,"span",8),2&t&&(Ht(ne(2).$implicit.icon),le("ngClass","p-button-icon p-button-icon-left"))}function dz(t,n){if(1&t&&(Lt(0),Ce(1,uz,1,3,"span",6),ye(2,"span",7),lt(3),_e(),Nt()),2&t){const e=ne().$implicit,i=ne();ue(1),le("ngIf",e.icon),ue(2),rn(i.getOptionLabel(e))}}function fz(t,n){1&t&&Vt(0)}const hz=function(t,n){return{$implicit:t,index:n}};function pz(t,n){if(1&t&&Ce(0,fz,1,0,"ng-container",9),2&t){const e=ne(),i=e.$implicit,r=e.index;le("ngTemplateOutlet",ne().itemTemplate)("ngTemplateOutletContext",xn(2,hz,i,r))}}const mz=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-button-icon-only":e}};function gz(t,n){if(1&t){const e=gt();ye(0,"div",2,3),Pe("click",function(r){const o=pe(e),s=o.$implicit,a=o.index;return me(ne().onItemClick(r,s,a))})("keydown.enter",function(r){const o=pe(e),s=o.$implicit,a=o.index;return me(ne().onItemClick(r,s,a))})("blur",function(){return pe(e),me(ne().onBlur())}),Ce(2,dz,4,2,"ng-container",4),Ce(3,pz,1,5,"ng-template",null,5,Dr),_e()}if(2&t){const e=n.$implicit,i=mn(4),r=ne();Ht(e.styleClass),le("ngClass",Ti(10,mz,r.isSelected(e),r.disabled||r.isOptionDisabled(e),e.icon&&!r.getOptionLabel(e))),Et("aria-pressed",r.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",r.disabled?null:r.tabindex)("aria-labelledby",r.getOptionLabel(e)),ue(2),le("ngIf",!r.itemTemplate)("ngIfElse",i)}}const vz={provide:yn,useExisting:yt(()=>yz),multi:!0};let yz=(()=>{class t{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new Fe,this.onChange=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(e){return this.optionLabel?St.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?St.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?St.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,i,r){if(!this.disabled&&!this.isOptionDisabled(i)){if(this.multiple)this.isSelected(i)?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let o=this.getOptionValue(i);this.value!==o&&(this.value=this.getOptionValue(i),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOptionClick.emit({originalEvent:e,option:i,index:r})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!St.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(St.equals(o,r,this.dataKey)){i=!0;break}}else i=St.equals(this.getOptionValue(e),this.value,this.dataKey);return i}}return t.\u0275fac=function(e){return new(e||t)(fe(Nn))},t.\u0275cmp=en({type:t,selectors:[["p-selectButton"]],contentQueries:function(e,i,r){if(1&e&&lr(r,Wi,5),2&e){let o;zt(o=jt())&&(i.itemTemplate=o.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[_t([vz])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ye(0,"div",0),Ce(1,gz,5,14,"div",1),_e()),2&e&&(Ht(i.styleClass),le("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",i.style),ue(1),le("ngForOf",i.options))},dependencies:[ni,Ds,mi,Yr,ii,Uu],styles:[".p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only .p-button-label{visibility:hidden;width:0;flex:0 0 auto}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}\n"],encapsulation:2,changeDetection:0}),t})(),_z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,vi]}),t})();const bz=function(t,n,e){return{"p-checkbox-label-active":t,"p-disabled":n,"p-checkbox-label-focus":e}};function wz(t,n){if(1&t){const e=gt();ye(0,"label",7),Pe("click",function(r){pe(e);const o=ne(),s=mn(3);return me(o.onClick(r,s))}),lt(1),_e()}if(2&t){const e=ne();le("ngClass",Ti(3,bz,null!=e.value,e.disabled,e.focused)),Et("for",e.inputId),ue(1),rn(e.label)}}const xz=function(t,n){return{"p-checkbox p-component":!0,"p-checkbox-disabled":t,"p-checkbox-focused":n}},Cz=function(t,n,e){return{"p-highlight":t,"p-disabled":n,"p-focus":e}},Ez={provide:yn,useExisting:yt(()=>Sz),multi:!0};let Sz=(()=>{class t{constructor(e){this.cd=e,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,i){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,i.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(fe(Nn))},t.\u0275cmp=en({type:t,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[_t([Ez])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(e,i){if(1&e){const r=gt();ye(0,"div",0)(1,"div",1)(2,"input",2,3),Pe("keyup",function(s){return i.onKeyup(s)})("keydown",function(s){return i.onKeydown(s)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),_e()(),ye(4,"div",4),Pe("click",function(s){pe(r);const a=mn(3);return me(i.onClick(s,a))}),dt(5,"span",5),_e()(),Ce(6,wz,2,7,"label",6)}2&e&&(Ht(i.styleClass),le("ngStyle",i.style)("ngClass",xn(14,xz,i.disabled,i.focused)),ue(2),le("name",i.name)("readonly",i.readonly)("disabled",i.disabled),Et("id",i.inputId)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy),ue(2),le("ngClass",Ti(17,Cz,null!=i.value,i.disabled,i.focused)),Et("aria-checked",!0===i.value),ue(1),le("ngClass",!0===i.value?i.checkboxTrueIcon:!1===i.value?i.checkboxFalseIcon:""),ue(1),le("ngIf",i.label))},dependencies:[ni,mi,ii],encapsulation:2,changeDetection:0}),t})(),Dz=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),N6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft,cz,Lm,Wu,Rm,ko,_z,tE,Gu,Dz,qu,sn,qu]}),t})();const V6=["rb"],B6=function(t,n,e){return{"p-radiobutton-label":!0,"p-radiobutton-label-active":t,"p-disabled":n,"p-radiobutton-label-focus":e}};function H6(t,n){if(1&t){const e=gt();ye(0,"label",4),Pe("click",function(r){return pe(e),me(ne().select(r))}),lt(1),_e()}if(2&t){const e=ne(),i=mn(3);Ht(e.labelStyleClass),le("ngClass",Ti(5,B6,i.checked,e.disabled,e.focused)),Et("for",e.inputId),ue(1),rn(e.label)}}const z6=function(t,n,e){return{"p-radiobutton p-component":!0,"p-radiobutton-checked":t,"p-radiobutton-disabled":n,"p-radiobutton-focused":e}},j6=function(t,n,e){return{"p-radiobutton-box":!0,"p-highlight":t,"p-disabled":n,"p-focus":e}},U6={provide:yn,useExisting:yt(()=>q6),multi:!0};let $6=(()=>{class t{constructor(){this.accessors=[]}add(e,i){this.accessors.push([e,i])}remove(e){this.accessors=this.accessors.filter(i=>i[1]!==e)}select(e){this.accessors.forEach(i=>{this.isSameGroup(i,e)&&i[1]!==e&&i[1].writeValue(e.value)})}isSameGroup(e,i){return!!e[0].control&&e[0].control.root===i.control.control.root&&e[1].name===i.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),q6=(()=>{class t{constructor(e,i,r){this.cd=e,this.injector=i,this.registry=r,this.onClick=new Fe,this.onFocus=new Fe,this.onBlur=new Fe,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.control=this.injector.get(Fr),this.checkName(),this.registry.add(this.control,this)}handleClick(e,i,r){e.preventDefault(),!this.disabled&&(this.select(e),r&&i.focus())}select(e){this.disabled||(this.inputViewChild.nativeElement.checked=!0,this.checked=!0,this.onModelChange(this.value),this.registry.select(this),this.onClick.emit({originalEvent:e,value:this.value}))}writeValue(e){this.checked=e==this.value,this.inputViewChild&&this.inputViewChild.nativeElement&&(this.inputViewChild.nativeElement.checked=this.checked),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onModelTouched(),this.onBlur.emit(e)}onChange(e){this.select(e)}focus(){this.inputViewChild.nativeElement.focus()}ngOnDestroy(){this.registry.remove(this)}checkName(){this.name&&this.formControlName&&this.name!==this.formControlName&&this.throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(fe(Nn),fe(ei),fe($6))},t.\u0275cmp=en({type:t,selectors:[["p-radioButton"]],viewQuery:function(e,i){if(1&e&&Tn(V6,5),2&e){let r;zt(r=jt())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",formControlName:"formControlName",name:"name",disabled:"disabled",label:"label",tabindex:"tabindex",inputId:"inputId",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},features:[_t([U6])],decls:7,vars:23,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","radio",3,"checked","disabled","change","focus","blur"],["rb",""],[3,"ngClass","click"],[1,"p-radiobutton-icon"],[3,"class","ngClass","click",4,"ngIf"]],template:function(e,i){if(1&e){const r=gt();ye(0,"div",0)(1,"div",1)(2,"input",2,3),Pe("change",function(s){return i.onChange(s)})("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)}),_e()(),ye(4,"div",4),Pe("click",function(s){pe(r);const a=mn(3);return me(i.handleClick(s,a,!0))}),dt(5,"span",5),_e()(),Ce(6,H6,2,9,"label",6)}2&e&&(Ht(i.styleClass),le("ngStyle",i.style)("ngClass",Ti(15,z6,i.checked,i.disabled,i.focused)),ue(2),le("checked",i.checked)("disabled",i.disabled),Et("id",i.inputId)("name",i.name)("value",i.value)("tabindex",i.tabindex)("aria-checked",i.checked)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy),ue(2),le("ngClass",Ti(19,j6,i.checked,i.disabled,i.focused)),ue(2),le("ngIf",i.label))},dependencies:[ni,mi,ii],encapsulation:2,changeDetection:0}),t})(),W6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[ft]}),t})(),G6=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({imports:[h4,p4,v4,ko,tE,gV,EV,UV,$V,Wu,Hm,FH,d5,jm,Gu,M5,Lm,R5,s8,jm,Hm,W6,jm,Hm,T8,R8,zm,z8,j8,q8,N6,J3,t4]}),t})();function gE(t){return new xe(3e3,!1)}function Ij(){return typeof window<"u"&&typeof window.document<"u"}function qm(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function oo(t){switch(t.length){case 0:return new pl;case 1:return t[0];default:return new KC(t)}}function vE(t,n,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(b=>{const C=b.get("offset"),B=C==l,j=B&&c||new Map;b.forEach((Q,ie)=>{let se=ie,ce=Q;if("offset"!==ie)switch(se=n.normalizePropertyName(se,s),ce){case"!":ce=r.get(ie);break;case Lr:ce=o.get(ie);break;default:ce=n.normalizeStyleValue(ie,se,ce,s)}j.set(se,ce)}),B||a.push(j),c=j,l=C}),s.length)throw function gj(t){return new xe(3502,!1)}();return a}function Wm(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&Gm(e,"start",t)));break;case"done":t.onDone(()=>i(e&&Gm(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&Gm(e,"destroy",t)))}}function Gm(t,n,e){const o=Km(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),s=t._data;return null!=s&&(o._data=s),o}function Km(t,n,e,i,r="",o=0,s){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function yi(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function yE(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}let Qm=(t,n)=>!1,_E=(t,n,e)=>[],bE=null;function Ym(t){const n=t.parentNode||t.host;return n===bE?null:n}(qm()||typeof Element<"u")&&(Ij()?(bE=(()=>document.documentElement)(),Qm=(t,n)=>{for(;n;){if(n===t)return!0;n=Ym(n)}return!1}):Qm=(t,n)=>t.contains(n),_E=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Oo=null,wE=!1;const xE=Qm,CE=_E;let EE=(()=>{class t{validateStyleProperty(e){return function kj(t){Oo||(Oo=function Oj(){return typeof document<"u"?document.body:null}()||{},wE=!!Oo.style&&"WebkitAppearance"in Oo.style);let n=!0;return Oo.style&&!function Mj(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Oo.style,!n&&wE&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Oo.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return xE(e,i)}getParentElement(e){return Ym(e)}query(e,i,r){return CE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new pl(r,o)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})(),Zm=(()=>{class t{}return t.NOOP=new EE,t})();const Xm="ng-enter",Zu="ng-leave",Xu="ng-trigger",Ju=".ng-trigger",DE="ng-animating",Jm=".ng-animating";function so(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:eg(parseFloat(n[1]),n[2])}function eg(t,n){return"s"===n?1e3*t:t}function ed(t,n,e){return t.hasOwnProperty("duration")?t:function Pj(t,n,e){let r,o=0,s="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(gE()),{duration:0,delay:0,easing:""};r=eg(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=eg(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function K6(){return new xe(3100,!1)}()),a=!0),o<0&&(n.push(function Q6(){return new xe(3101,!1)}()),a=!0),a&&n.splice(l,0,gE())}return{duration:r,delay:o,easing:s}}(t,n,e)}function yl(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function TE(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function ao(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function ME(t,n,e){return e?n+":"+e+";":""}function kE(t){let n="";for(let e=0;e{const o=ng(r);e&&!e.has(r)&&e.set(r,t.style[o]),t.style[o]=i}),qm()&&kE(t))}function Ao(t,n){t.style&&(n.forEach((e,i)=>{const r=ng(i);t.style[r]=""}),qm()&&kE(t))}function _l(t){return Array.isArray(t)?1==t.length?t[0]:$C(t):t}const tg=new RegExp("{{\\s*(.+?)\\s*}}","g");function OE(t){let n=[];if("string"==typeof t){let e;for(;e=tg.exec(t);)n.push(e[1]);tg.lastIndex=0}return n}function td(t,n,e){const i=t.toString(),r=i.replace(tg,(o,s)=>{let a=n[s];return null==a&&(e.push(function Z6(t){return new xe(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function nd(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const Nj=/-+([a-z0-9])/g;function ng(t){return t.replace(Nj,(...n)=>n[1].toUpperCase())}function Vj(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _i(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function X6(t){return new xe(3004,!1)}()}}function AE(t,n){return window.getComputedStyle(t)[n]}function $j(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function qj(t,n,e){if(":"==t[0]){const l=function Wj(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function dj(t){return new xe(3015,!1)}()),n;const r=i[1],o=i[2],s=i[3];n.push(RE(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&n.push(RE(s,r))}(i,e,n)):e.push(t),e}const sd=new Set(["true","1"]),ad=new Set(["false","0"]);function RE(t,n){const e=sd.has(t)||ad.has(t),i=sd.has(n)||ad.has(n);return(r,o)=>{let s="*"==t||t==r,a="*"==n||n==o;return!s&&e&&"boolean"==typeof r&&(s=r?sd.has(t):ad.has(t)),!a&&i&&"boolean"==typeof o&&(a=o?sd.has(n):ad.has(n)),s&&a}}const Gj=new RegExp("s*:selfs*,?","g");function ig(t,n,e,i){return new Kj(t).build(n,e,i)}class Kj{constructor(n){this._driver=n}build(n,e,i){const r=new Zj(e);return this._resetContextStyleTimingState(r),_i(this,_l(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==n.name.charAt(0)&&e.errors.push(function ej(){return new xe(3006,!1)}()),n.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(b=>{l.name=b,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function tj(){return new xe(3007,!1)}())}),{type:7,name:n.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{OE(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(nd(o.values()),e.errors.push(function nj(t,n){return new xe(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=_i(this,_l(n.animation),e);return{type:1,matchers:$j(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Ro(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>_i(this,i,e)),options:Ro(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const o=n.steps.map(s=>{e.currentTime=i;const a=_i(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Ro(n.options)}}visitAnimate(n,e){const i=function Jj(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return rg(ed(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=rg(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=ed(e,n);return rg(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,o=n.styles?n.styles:Yn({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=n.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=Yn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Lr?i.push(a):e.errors.push(new xe(3002,!1)):i.push(TE(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:n.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),n.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),b=c.get(l);let C=!0;b&&(o!=r&&o>=b.startTime&&r<=b.endTime&&(e.errors.push(function rj(t,n,e,i,r){return new xe(3010,!1)}()),C=!1),o=b.startTime),C&&c.set(l,{startTime:o,endTime:r}),e.options&&function Lj(t,n,e){const i=n.params||{},r=OE(t);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function Y6(t){return new xe(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function oj(){return new xe(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const b=n.steps.map(ce=>{const we=this._makeStyleAst(ce,e);let de=null!=we.offset?we.offset:function Xj(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(we.styles),Te=0;return null!=de&&(o++,Te=we.offset=de),l=l||Te<0||Te>1,a=a||Te0&&o{const de=B>0?we==j?1:B*we:s[we],Te=de*se;e.currentTime=Q+ie.delay+Te,ie.duration=Te,this._validateStyleAst(ce,e),ce.offset=de,i.styles.push(ce)}),i}visitReference(n,e){return{type:8,animation:_i(this,_l(n.animation),e),options:Ro(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Ro(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Ro(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[o,s]=function Qj(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(Gj,"")),t=t.replace(/@\*/g,Ju).replace(/@\w+/g,e=>Ju+"-"+e.slice(1)).replace(/:animating/g,Jm),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+o:o,yi(e.collectedStyles,e.currentQuerySelector,new Map);const a=_i(this,_l(n.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:n.selector,options:Ro(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function cj(){return new xe(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:ed(n.timings,e.errors,!0);return{type:12,animation:_i(this,_l(n.animation),e),timings:i,options:null}}}class Zj{constructor(n){this.errors=n,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ro(t){return t?(t=yl(t)).params&&(t.params=function Yj(t){return t?yl(t):null}(t.params)):t={},t}function rg(t,n,e){return{duration:t,delay:n,easing:e}}function og(t,n,e,i,r,o,s=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class ld{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const nU=new RegExp(":enter","g"),rU=new RegExp(":leave","g");function sg(t,n,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new oU).buildKeyframes(t,n,e,i,r,o,s,a,l,c)}class oU{buildKeyframes(n,e,i,r,o,s,a,l,c,b=[]){c=c||new ld;const C=new ag(n,e,c,r,o,b,[]);C.options=l;const B=l.delay?so(l.delay):0;C.currentTimeline.delayNextStep(B),C.currentTimeline.setStyles([s],null,C.errors,l),_i(this,i,C);const j=C.timelines.filter(Q=>Q.containsAnimation());if(j.length&&a.size){let Q;for(let ie=j.length-1;ie>=0;ie--){const se=j[ie];if(se.element===e){Q=se;break}}Q&&!Q.allowOnlyTimelineStyles()&&Q.setStyles([a],null,C.errors,l)}return j.length?j.map(Q=>Q.buildKeyframes()):[og(e,[],[],[],0,B,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_visitSubInstructions(n,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?so(i.duration):null,a=null!=i.delay?so(i.delay):null;return 0!==s&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(n,e){e.updateOptions(n.options,!0),_i(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const o=n.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=cd);const s=so(o.delay);r.delayNextStep(s)}n.steps.length&&(n.steps.forEach(s=>_i(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const o=n.options&&n.options.delay?so(n.options.delay):0;n.steps.forEach(s=>{const a=e.createSubContext(n.options);o&&a.delayNextStep(o),_i(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return ed(e.params?td(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=n.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(o):i.setStyles(n.styles,o,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},o=r.delay?so(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=cd);let s=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,b)=>{e.currentQueryIndex=b;const C=e.createSubContext(n.options,c);o&&C.delayNextStep(o),c===e.element&&(l=C.currentTimeline),_i(this,n.animation,C),C.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,C.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,o=n.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const b=e.currentTimeline;l&&b.delayNextStep(l);const C=b.currentTime;_i(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-C+(r.startTime-i.currentTimeline.startTime)}}const cd={};class ag{constructor(n,e,i,r,o,s,a,l){this._driver=n,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=cd,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ud(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=so(i.duration)),null!=i.delay&&(r.delay=so(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=td(o[a],s,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,o=new ag(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(n),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(n){return this.previousNode=cd,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},o=new sU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,o,s){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(nU,"."+this._enterClassName)).replace(rU,"."+this._leaveClassName);let c=this._driver.query(this.element,n,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function uj(t){return new xe(3014,!1)}()),a}}class ud{constructor(n,e,i,r){this._driver=n,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new ud(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Lr),this._currentKeyframe.set(e,Lr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function aU(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let o of i)e.set(o,Lr)}else ao(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of s){const c=td(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Lr),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ao(a,new Map,this._backFill);c.forEach((b,C)=>{"!"===b?n.add(C):b===Lr&&e.add(C)}),i||c.set("offset",l/this.duration),r.push(c)});const o=n.size?nd(n.values()):[],s=e.size?nd(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return og(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class sU extends ud{constructor(n,e,i,r,o,s,a=!1){super(n,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=ao(n[0]);l.set("offset",0),o.push(l);const c=ao(n[0]);c.set("offset",LE(a)),o.push(c);const b=n.length-1;for(let C=1;C<=b;C++){let B=ao(n[C]);const j=B.get("offset");B.set("offset",LE((e+j*i)/s)),o.push(B)}i=s,e=0,r="",n=o}return og(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function LE(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class lg{}const lU=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class cU extends lg{normalizePropertyName(n,e){return ng(n)}normalizeStyleValue(n,e,i,r){let o="";const s=i.toString().trim();if(lU.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function J6(t,n){return new xe(3005,!1)}())}return s+o}}function NE(t,n,e,i,r,o,s,a,l,c,b,C,B){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:b,totalTime:C,errors:B}}const cg={};class VE{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function uU(t,n,e,i,r){return t.some(o=>o(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,o,s,a,l,c,b){const C=[],B=this.ast.options&&this.ast.options.params||cg,Q=this.buildStyles(i,a&&a.params||cg,C),ie=l&&l.params||cg,se=this.buildStyles(r,ie,C),ce=new Set,we=new Map,de=new Map,Te="void"===r,Ve={params:dU(ie,B),delay:this.ast.options?.delay},tt=b?[]:sg(n,e,this.ast.animation,o,s,Q,se,Ve,c,C);let At=0;if(tt.forEach(qt=>{At=Math.max(qt.duration+qt.delay,At)}),C.length)return NE(e,this._triggerName,i,r,Te,Q,se,[],[],we,de,At,C);tt.forEach(qt=>{const _n=qt.element,Bs=yi(we,_n,new Set);qt.preStyleProps.forEach(Ji=>Bs.add(Ji));const Vr=yi(de,_n,new Set);qt.postStyleProps.forEach(Ji=>Vr.add(Ji)),_n!==e&&ce.add(_n)});const Yt=nd(ce.values());return NE(e,this._triggerName,i,r,Te,Q,se,tt,Yt,we,de,At)}}function dU(t,n){const e=yl(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class fU{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=yl(this.defaultParams);return Object.keys(n).forEach(o=>{const s=n[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=td(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class pU{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new fU(r.style,r.options&&r.options.params||{},i))}),BE(this.states,"true","1"),BE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new VE(n,r,this.states))}),this.fallbackTransition=function mU(t,n,e){return new VE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(s=>s.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function BE(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const gU=new ld;class vU{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],o=ig(this._driver,e,i,[]);if(i.length)throw function vj(t){return new xe(3503,!1)}();this._animations.set(n,o)}_buildPlayer(n,e,i){const r=n.element,o=vE(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,o,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],o=this._animations.get(n);let s;const a=new Map;if(o?(s=sg(this._driver,e,o,Xm,Zu,new Map,new Map,i,gU,r),s.forEach(b=>{const C=yi(a,b.element,new Map);b.postStyleProps.forEach(B=>C.set(B,null))})):(r.push(function yj(){return new xe(3300,!1)}()),s=[]),r.length)throw function _j(t){return new xe(3504,!1)}();a.forEach((b,C)=>{b.forEach((B,j)=>{b.set(j,this._driver.computeStyle(C,j,Lr))})});const c=oo(s.map(b=>{const C=a.get(b.element);return this._buildPlayer(b,new Map,C)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function bj(t){return new xe(3301,!1)}();return e}listen(n,e,i,r){const o=Km(e,"","","");return Wm(this._getPlayer(n),i,o,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const o=this._getPlayer(n);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(n)}}}const HE="ng-animate-queued",ug="ng-animate-disabled",xU=[],zE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},CU={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ai="__ng_removed";class dg{constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function TU(t){return t??null}(i?n.value:n),i){const o=yl(n);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const bl="void",fg=new dg(bl);class EU{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,Ri(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function wj(t,n){return new xe(3302,!1)}();if(null==i||0==i.length)throw function xj(t){return new xe(3303,!1)}();if(!function IU(t){return"start"==t||"done"==t}(i))throw function Cj(t,n){return new xe(3400,!1)}();const o=yi(this._elementListeners,n,[]),s={name:e,phase:i,callback:r};o.push(s);const a=yi(this._engine.statesByElement,n,new Map);return a.has(e)||(Ri(n,Xu),Ri(n,Xu+"-"+e),a.set(e,fg)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function Ej(t){return new xe(3401,!1)}();return e}trigger(n,e,i,r=!0){const o=this._getTrigger(e),s=new hg(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(Ri(n,Xu),Ri(n,Xu+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new dg(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=fg),c.value!==bl&&l.value===c.value){if(!function OU(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r{Ao(n,se),hr(n,ce)})}return}const B=yi(this._engine.playersByElement,n,[]);B.forEach(ie=>{ie.namespaceId==this.id&&ie.triggerName==e&&ie.queued&&ie.destroy()});let j=o.matchTransition(l.value,c.value,n,c.params),Q=!1;if(!j){if(!r)return;j=o.fallbackTransition,Q=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:j,fromState:l,toState:c,player:s,isFallbackTransition:Q}),Q||(Ri(n,HE),s.onStart(()=>{Vs(n,HE)})),s.onDone(()=>{let ie=this.players.indexOf(s);ie>=0&&this.players.splice(ie,1);const se=this._engine.playersByElement.get(n);if(se){let ce=se.indexOf(s);ce>=0&&se.splice(ce,1)}}),this.players.push(s),B.push(s),s}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,Ju,!0);i.forEach(r=>{if(r[Ai])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(n,e,i,r){const o=this._engine.statesByElement.get(n),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const b=this.trigger(n,c,bl,r);b&&a.push(b)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,s),i&&oo(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||fg,b=new dg(bl),C=new hg(this.id,s,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:s,transition:l,fromState:c,toState:b,player:C,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(n):[];if(o&&o.length)r=!0;else{let s=n;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const o=n[Ai];(!o||o===zE)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){Ri(n,this._hostClassName)}drainQueuedTransitions(n){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=Km(o,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Wm(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class SU{constructor(n,e,i){this.bodyNode=n,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,o)=>{}}_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new EU(n,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[n]=i}_balanceNamespaceList(n,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,n),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(n,e,i,r){if(dd(e)){const o=this._fetchNamespace(n);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!dd(e))return;const o=e[Ai];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(n){const s=this._fetchNamespace(n);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),Ri(n,ug)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Vs(n,ug))}removeNode(n,e,i,r){if(dd(e)){const o=n?this._fetchNamespace(n):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==n&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,o){this.collectedLeaveElements.push(e),e[Ai]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(n,e,i,r,o){return dd(e)?this._fetchNamespace(n).listen(e,i,r,o):()=>{}}_buildInstruction(n,e,i,r,o){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,o)}destroyInnerAnimations(n){let e=this.driver.query(n,Ju,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,Jm,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return oo(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[Ai];if(e&&e.setForRemoval){if(n[Ai]=zE,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(ug)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?oo(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function Sj(t){return new xe(3402,!1)}()}_flushAnimations(n,e){const i=new ld,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,b=new Set;this.disabledNodes.forEach(Le=>{b.add(Le);const Ge=this.driver.query(Le,".ng-animate-queued",!0);for(let Ze=0;Ze{const Ze=Xm+ie++;Q.set(Ge,Ze),Le.forEach(wt=>Ri(wt,Ze))});const se=[],ce=new Set,we=new Set;for(let Le=0;Lece.add(wt)):we.add(Ge))}const de=new Map,Te=$E(B,Array.from(ce));Te.forEach((Le,Ge)=>{const Ze=Zu+ie++;de.set(Ge,Ze),Le.forEach(wt=>Ri(wt,Ze))}),n.push(()=>{j.forEach((Le,Ge)=>{const Ze=Q.get(Ge);Le.forEach(wt=>Vs(wt,Ze))}),Te.forEach((Le,Ge)=>{const Ze=de.get(Ge);Le.forEach(wt=>Vs(wt,Ze))}),se.forEach(Le=>{this.processLeaveNode(Le)})});const Ve=[],tt=[];for(let Le=this._namespaceList.length-1;Le>=0;Le--)this._namespaceList[Le].drainQueuedTransitions(e).forEach(Ze=>{const wt=Ze.player,Sn=Ze.element;if(Ve.push(wt),this.collectedEnterElements.length){const Hn=Sn[Ai];if(Hn&&Hn.setForMove){if(Hn.previousTriggersValues&&Hn.previousTriggersValues.has(Ze.triggerName)){const Po=Hn.previousTriggersValues.get(Ze.triggerName),Pi=this.statesByElement.get(Ze.element);if(Pi&&Pi.has(Ze.triggerName)){const pd=Pi.get(Ze.triggerName);pd.value=Po,Pi.set(Ze.triggerName,pd)}}return void wt.destroy()}}const pr=!C||!this.driver.containsElement(C,Sn),bi=de.get(Sn),lo=Q.get(Sn),Zt=this._buildInstruction(Ze,i,lo,bi,pr);if(Zt.errors&&Zt.errors.length)return void tt.push(Zt);if(pr)return wt.onStart(()=>Ao(Sn,Zt.fromStyles)),wt.onDestroy(()=>hr(Sn,Zt.toStyles)),void r.push(wt);if(Ze.isFallbackTransition)return wt.onStart(()=>Ao(Sn,Zt.fromStyles)),wt.onDestroy(()=>hr(Sn,Zt.toStyles)),void r.push(wt);const JE=[];Zt.timelines.forEach(Hn=>{Hn.stretchStartingKeyframe=!0,this.disabledNodes.has(Hn.element)||JE.push(Hn)}),Zt.timelines=JE,i.append(Sn,Zt.timelines),s.push({instruction:Zt,player:wt,element:Sn}),Zt.queriedElements.forEach(Hn=>yi(a,Hn,[]).push(wt)),Zt.preStyleProps.forEach((Hn,Po)=>{if(Hn.size){let Pi=l.get(Po);Pi||l.set(Po,Pi=new Set),Hn.forEach((pd,gg)=>Pi.add(gg))}}),Zt.postStyleProps.forEach((Hn,Po)=>{let Pi=c.get(Po);Pi||c.set(Po,Pi=new Set),Hn.forEach((pd,gg)=>Pi.add(gg))})});if(tt.length){const Le=[];tt.forEach(Ge=>{Le.push(function Dj(t,n){return new xe(3505,!1)}())}),Ve.forEach(Ge=>Ge.destroy()),this.reportError(Le)}const At=new Map,Yt=new Map;s.forEach(Le=>{const Ge=Le.element;i.has(Ge)&&(Yt.set(Ge,Ge),this._beforeAnimationBuild(Le.player.namespaceId,Le.instruction,At))}),r.forEach(Le=>{const Ge=Le.element;this._getPreviousPlayers(Ge,!1,Le.namespaceId,Le.triggerName,null).forEach(wt=>{yi(At,Ge,[]).push(wt),wt.destroy()})});const qt=se.filter(Le=>WE(Le,l,c)),_n=new Map;UE(_n,this.driver,we,c,Lr).forEach(Le=>{WE(Le,l,c)&&qt.push(Le)});const Vr=new Map;j.forEach((Le,Ge)=>{UE(Vr,this.driver,new Set(Le),l,"!")}),qt.forEach(Le=>{const Ge=_n.get(Le),Ze=Vr.get(Le);_n.set(Le,new Map([...Array.from(Ge?.entries()??[]),...Array.from(Ze?.entries()??[])]))});const Ji=[],Hs=[],zs={};s.forEach(Le=>{const{element:Ge,player:Ze,instruction:wt}=Le;if(i.has(Ge)){if(b.has(Ge))return Ze.onDestroy(()=>hr(Ge,wt.toStyles)),Ze.disabled=!0,Ze.overrideTotalTime(wt.totalTime),void r.push(Ze);let Sn=zs;if(Yt.size>1){let bi=Ge;const lo=[];for(;bi=bi.parentNode;){const Zt=Yt.get(bi);if(Zt){Sn=Zt;break}lo.push(bi)}lo.forEach(Zt=>Yt.set(Zt,Sn))}const pr=this._buildAnimation(Ze.namespaceId,wt,At,o,Vr,_n);if(Ze.setRealPlayer(pr),Sn===zs)Ji.push(Ze);else{const bi=this.playersByElement.get(Sn);bi&&bi.length&&(Ze.parentPlayer=oo(bi)),r.push(Ze)}}else Ao(Ge,wt.fromStyles),Ze.onDestroy(()=>hr(Ge,wt.toStyles)),Hs.push(Ze),b.has(Ge)&&r.push(Ze)}),Hs.forEach(Le=>{const Ge=o.get(Le.element);if(Ge&&Ge.length){const Ze=oo(Ge);Le.setRealPlayer(Ze)}}),r.forEach(Le=>{Le.parentPlayer?Le.syncPlayerEvents(Le.parentPlayer):Le.destroy()});for(let Le=0;Le!pr.destroyed);Sn.length?MU(this,Ge,Sn):this.processLeaveNode(Ge)}return se.length=0,Ji.forEach(Le=>{this.players.push(Le),Le.onDone(()=>{Le.destroy();const Ge=this.players.indexOf(Le);this.players.splice(Ge,1)}),Le.play()}),Ji}elementContainsData(n,e){let i=!1;const r=e[Ai];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(s=a)}else{const a=this.playersByElement.get(n);if(a){const l=!o||o==bl;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(n,e,i){const o=e.element,s=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,b=c!==o,C=yi(i,c,[]);this._getPreviousPlayers(c,b,s,a,e.toState).forEach(j=>{const Q=j.getRealPlayer();Q.beforeDestroy&&Q.beforeDestroy(),j.destroy(),C.push(j)})}Ao(o,e.fromStyles)}_buildAnimation(n,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],b=new Set,C=new Set,B=e.timelines.map(Q=>{const ie=Q.element;b.add(ie);const se=ie[Ai];if(se&&se.removedBeforeQueried)return new pl(Q.duration,Q.delay);const ce=ie!==l,we=function kU(t){const n=[];return qE(t,n),n}((i.get(ie)||xU).map(At=>At.getRealPlayer())).filter(At=>!!At.element&&At.element===ie),de=o.get(ie),Te=s.get(ie),Ve=vE(0,this._normalizer,0,Q.keyframes,de,Te),tt=this._buildPlayer(Q,Ve,we);if(Q.subTimeline&&r&&C.add(ie),ce){const At=new hg(n,a,ie);At.setRealPlayer(tt),c.push(At)}return tt});c.forEach(Q=>{yi(this.playersByQueriedElement,Q.element,[]).push(Q),Q.onDone(()=>function DU(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,Q.element,Q))}),b.forEach(Q=>Ri(Q,DE));const j=oo(B);return j.onDestroy(()=>{b.forEach(Q=>Vs(Q,DE)),hr(l,e.toStyles)}),C.forEach(Q=>{yi(r,Q,[]).push(j)}),j}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new pl(n.duration,n.delay)}}class hg{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new pl,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Wm(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){yi(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function dd(t){return t&&1===t.nodeType}function jE(t,n){const e=t.style.display;return t.style.display=n??"none",e}function UE(t,n,e,i,r){const o=[];e.forEach(l=>o.push(jE(l)));const s=[];i.forEach((l,c)=>{const b=new Map;l.forEach(C=>{const B=n.computeStyle(c,C,r);b.set(C,B),(!B||0==B.length)&&(c[Ai]=CU,s.push(c))}),t.set(c,b)});let a=0;return e.forEach(l=>jE(l,o[a++])),s}function $E(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return n.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function Ri(t,n){t.classList?.add(n)}function Vs(t,n){t.classList?.remove(n)}function MU(t,n,e){oo(e).onDone(()=>t.processLeaveNode(n))}function qE(t,n){for(let e=0;er.add(o)):n.set(t,i),e.delete(t),!0}class fd{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new SU(n,e,i),this._timelineEngine=new vU(n,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(n,e,i,r,o){const s=n+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],b=ig(this._driver,o,l,[]);if(l.length)throw function mj(t,n){return new xe(3404,!1)}();a=function hU(t,n,e){return new pU(t,n,e)}(r,b,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[o,s]=yE(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=yE(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(n,e,i,r,o)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let RU=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=t.initialStylesByElement.get(e);o||t.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&hr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(hr(this._element,this._initialStyles),this._endStyles&&(hr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Ao(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ao(this._element,this._endStyles),this._endStyles=null),hr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function pg(t){let n=null;return t.forEach((e,i)=>{(function PU(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class GE{constructor(n,e,i,r){this.element=n,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:AE(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class FU{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return xE(n,e)}getParentElement(n){return Ym(n)}query(n,e,i){return CE(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,b=s.filter(j=>j instanceof GE);(function Bj(t,n){return 0===t||0===n})(i,r)&&b.forEach(j=>{j.currentSnapshot.forEach((Q,ie)=>c.set(ie,Q))});let C=function Fj(t){return t.length?t[0]instanceof Map?t:t.map(n=>TE(n)):[]}(e).map(j=>ao(j));C=function Hj(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,AE(t,a)))}}return n}(n,C,c);const B=function AU(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=pg(n[0]),n.length>1&&(i=pg(n[n.length-1]))):n instanceof Map&&(e=pg(n)),e||i?new RU(t,e,i):null}(n,C);return new GE(n,C,l,B)}}let LU=(()=>{class t extends UC{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ni.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?$C(e):e;return KE(this._renderer,null,i,"register",[r]),new NU(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Re(ga),Re(In))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();class NU extends class H3{}{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new VU(this._id,n,e||{},this._renderer)}}class VU{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return KE(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function KE(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const QE="@.disabled";let BU=(()=>{class t{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let b=this._rendererCache.get(o);return b||(b=new YE("",o,this.engine),this._rendererCache.set(o,b)),b}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=b=>{Array.isArray(b)?b.forEach(l):this.engine.registerTrigger(s,a,e,b.name,b)};return i.data.animation.forEach(l),new HU(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(Re(ga),Re(fd),Re(Ot))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})();class YE{constructor(n,e,i){this.namespaceId=n,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==QE?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class HU extends YE{constructor(n,e,i,r){super(e,i,r),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==QE?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function zU(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function jU(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const ZE=[{provide:UC,useClass:LU},{provide:lg,useFactory:function $U(){return new cU}},{provide:fd,useClass:(()=>{class t extends fd{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(Re(In),Re(Zm),Re(lg),Re(Va))},t.\u0275prov=Ne({token:t,factory:t.\u0275fac}),t})()},{provide:ga,useFactory:function qU(t,n,e){return new BU(t,n,e)},deps:[nu,fd,Ot]}],mg=[{provide:Zm,useFactory:()=>new FU},{provide:Pb,useValue:"BrowserAnimations"},...ZE],XE=[{provide:Zm,useClass:EE},{provide:Pb,useValue:"NoopAnimations"},...ZE];let WU=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?XE:mg}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t}),t.\u0275inj=He({providers:mg,imports:[Z1]}),t})(),GU=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=je({type:t,bootstrap:[d4]}),t.\u0275inj=He({imports:[Z1,s4,G6,NC,sF,WU]}),t})();(function dA(){Zb=!1})(),NP().bootstrapModule(GU).catch(t=>console.error(t))},466:function(Me,J,M){var E;Me.exports=(E=M(585),M(319),M(493),M(865),M(57),function(){var P=E,F=P.lib.BlockCipher,A=P.algo,S=[],x=[],d=[],u=[],f=[],v=[],y=[],p=[],h=[],g=[];!function(){for(var _=[],D=0;D<256;D++)_[D]=D<128?D<<1:D<<1^283;var k=0,O=0;for(D=0;D<256;D++){var N=O^O<<1^O<<2^O<<3^O<<4;S[k]=N=N>>>8^255&N^99,x[N]=k;var V,T=_[k],I=_[T],R=_[I];d[k]=(V=257*_[N]^16843008*N)<<24|V>>>8,u[k]=V<<16|V>>>16,f[k]=V<<8|V>>>24,v[k]=V,y[N]=(V=16843009*R^65537*I^257*T^16843008*k)<<24|V>>>8,p[N]=V<<16|V>>>16,h[N]=V<<8|V>>>24,g[N]=V,k?(k=T^_[_[_[R^T]]],O^=_[_[O]]):k=O=1}}();var w=[0,1,2,4,8,16,32,64,128,27,54],m=A.AES=F.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var D=this._keyPriorReset=this._key,k=D.words,O=D.sigBytes/4,T=4*((this._nRounds=O+6)+1),I=this._keySchedule=[],R=0;R6&&R%O==4&&(_=S[_>>>24]<<24|S[_>>>16&255]<<16|S[_>>>8&255]<<8|S[255&_]):(_=S[(_=_<<8|_>>>24)>>>24]<<24|S[_>>>16&255]<<16|S[_>>>8&255]<<8|S[255&_],_^=w[R/O|0]<<24),I[R]=I[R-O]^_);for(var V=this._invKeySchedule=[],$=0;$>>24]]^p[S[_>>>16&255]]^h[S[_>>>8&255]]^g[S[255&_]]}}},encryptBlock:function(_,D){this._doCryptBlock(_,D,this._keySchedule,d,u,f,v,S)},decryptBlock:function(_,D){var k=_[D+1];_[D+1]=_[D+3],_[D+3]=k,this._doCryptBlock(_,D,this._invKeySchedule,y,p,h,g,x),k=_[D+1],_[D+1]=_[D+3],_[D+3]=k},_doCryptBlock:function(_,D,k,O,N,T,I,R){for(var V=this._nRounds,$=_[D]^k[0],U=_[D+1]^k[1],Z=_[D+2]^k[2],X=_[D+3]^k[3],re=4,ee=1;ee>>24]^N[U>>>16&255]^T[Z>>>8&255]^I[255&X]^k[re++],z=O[U>>>24]^N[Z>>>16&255]^T[X>>>8&255]^I[255&$]^k[re++],G=O[Z>>>24]^N[X>>>16&255]^T[$>>>8&255]^I[255&U]^k[re++],q=O[X>>>24]^N[$>>>16&255]^T[U>>>8&255]^I[255&Z]^k[re++];$=W,U=z,Z=G,X=q}W=(R[$>>>24]<<24|R[U>>>16&255]<<16|R[Z>>>8&255]<<8|R[255&X])^k[re++],z=(R[U>>>24]<<24|R[Z>>>16&255]<<16|R[X>>>8&255]<<8|R[255&$])^k[re++],G=(R[Z>>>24]<<24|R[X>>>16&255]<<16|R[$>>>8&255]<<8|R[255&U])^k[re++],q=(R[X>>>24]<<24|R[$>>>16&255]<<16|R[U>>>8&255]<<8|R[255&Z])^k[re++],_[D]=W,_[D+1]=z,_[D+2]=G,_[D+3]=q},keySize:8});P.AES=F._createHelper(m)}(),E.AES)},57:function(Me,J,M){var L,F,A,S,x,d,f,y,p,g,w,m,D,O,T,I,V,$,E;Me.exports=(E=M(585),M(865),void(E.lib.Cipher||(L=E,F=L.lib,A=F.Base,S=F.WordArray,x=F.BufferedBlockAlgorithm,d=L.enc,f=d.Base64,y=L.algo.EvpKDF,p=F.Cipher=x.extend({cfg:A.extend(),createEncryptor:function(U,Z){return this.create(this._ENC_XFORM_MODE,U,Z)},createDecryptor:function(U,Z){return this.create(this._DEC_XFORM_MODE,U,Z)},init:function(U,Z,X){this.cfg=this.cfg.extend(X),this._xformMode=U,this._key=Z,this.reset()},reset:function(){x.reset.call(this),this._doReset()},process:function(U){return this._append(U),this._process()},finalize:function(U){return U&&this._append(U),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function U(Z){return"string"==typeof Z?$:I}return function(Z){return{encrypt:function(X,re,ee){return U(re).encrypt(Z,X,re,ee)},decrypt:function(X,re,ee){return U(re).decrypt(Z,X,re,ee)}}}}()}),F.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),g=L.mode={},w=F.BlockCipherMode=A.extend({createEncryptor:function(U,Z){return this.Encryptor.create(U,Z)},createDecryptor:function(U,Z){return this.Decryptor.create(U,Z)},init:function(U,Z){this._cipher=U,this._iv=Z}}),m=g.CBC=function(){var U=w.extend();function Z(X,re,ee){var W,z=this._iv;z?(W=z,this._iv=undefined):W=this._prevBlock;for(var G=0;G>>2]}},F.BlockCipher=p.extend({cfg:p.cfg.extend({mode:m,padding:D}),reset:function(){var U;p.reset.call(this);var Z=this.cfg,X=Z.iv,re=Z.mode;this._xformMode==this._ENC_XFORM_MODE?U=re.createEncryptor:(U=re.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==U?this._mode.init(this,X&&X.words):(this._mode=U.call(re,this,X&&X.words),this._mode.__creator=U)},_doProcessBlock:function(U,Z){this._mode.processBlock(U,Z)},_doFinalize:function(){var U,Z=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(Z.pad(this._data,this.blockSize),U=this._process(!0)):(U=this._process(!0),Z.unpad(U)),U},blockSize:4}),O=F.CipherParams=A.extend({init:function(U){this.mixIn(U)},toString:function(U){return(U||this.formatter).stringify(this)}}),T=(L.format={}).OpenSSL={stringify:function(U){var X=U.ciphertext,re=U.salt;return(re?S.create([1398893684,1701076831]).concat(re).concat(X):X).toString(f)},parse:function(U){var Z,X=f.parse(U),re=X.words;return 1398893684==re[0]&&1701076831==re[1]&&(Z=S.create(re.slice(2,4)),re.splice(0,4),X.sigBytes-=16),O.create({ciphertext:X,salt:Z})}},I=F.SerializableCipher=A.extend({cfg:A.extend({format:T}),encrypt:function(U,Z,X,re){re=this.cfg.extend(re);var ee=U.createEncryptor(X,re),W=ee.finalize(Z),z=ee.cfg;return O.create({ciphertext:W,key:X,iv:z.iv,algorithm:U,mode:z.mode,padding:z.padding,blockSize:U.blockSize,formatter:re.format})},decrypt:function(U,Z,X,re){return re=this.cfg.extend(re),Z=this._parse(Z,re.format),U.createDecryptor(X,re).finalize(Z.ciphertext)},_parse:function(U,Z){return"string"==typeof U?Z.parse(U,this):U}}),V=(L.kdf={}).OpenSSL={execute:function(U,Z,X,re){re||(re=S.random(8));var ee=y.create({keySize:Z+X}).compute(U,re),W=S.create(ee.words.slice(Z),4*X);return ee.sigBytes=4*Z,O.create({key:ee,iv:W,salt:re})}},$=F.PasswordBasedCipher=I.extend({cfg:I.cfg.extend({kdf:V}),encrypt:function(U,Z,X,re){var ee=(re=this.cfg.extend(re)).kdf.execute(X,U.keySize,U.ivSize);re.iv=ee.iv;var W=I.encrypt.call(this,U,Z,ee.key,re);return W.mixIn(ee),W},decrypt:function(U,Z,X,re){re=this.cfg.extend(re),Z=this._parse(Z,re.format);var ee=re.kdf.execute(X,U.keySize,U.ivSize,Z.salt);return re.iv=ee.iv,I.decrypt.call(this,U,Z,ee.key,re)}}))))},585:function(Me,J,M){var E;Me.exports=(E=E||function(P,L){var F;if(typeof window<"u"&&window.crypto&&(F=window.crypto),typeof self<"u"&&self.crypto&&(F=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(F=globalThis.crypto),!F&&typeof window<"u"&&window.msCrypto&&(F=window.msCrypto),!F&&typeof global<"u"&&global.crypto&&(F=global.crypto),!F)try{F=M(480)}catch{}var A=function(){if(F){if("function"==typeof F.getRandomValues)try{return F.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof F.randomBytes)try{return F.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function _(){}return function(D){var k;return _.prototype=D,k=new _,_.prototype=null,k}}(),x={},d=x.lib={},u=d.Base={extend:function(_){var D=S(this);return _&&D.mixIn(_),(!D.hasOwnProperty("init")||this.init===D.init)&&(D.init=function(){D.$super.init.apply(this,arguments)}),D.init.prototype=D,D.$super=this,D},create:function(){var _=this.extend();return _.init.apply(_,arguments),_},init:function(){},mixIn:function(_){for(var D in _)_.hasOwnProperty(D)&&(this[D]=_[D]);_.hasOwnProperty("toString")&&(this.toString=_.toString)},clone:function(){return this.init.prototype.extend(this)}},f=d.WordArray=u.extend({init:function(_,D){_=this.words=_||[],this.sigBytes=null!=D?D:4*_.length},toString:function(_){return(_||y).stringify(this)},concat:function(_){var D=this.words,k=_.words,O=this.sigBytes,N=_.sigBytes;if(this.clamp(),O%4)for(var T=0;T>>2]|=(k[T>>>2]>>>24-T%4*8&255)<<24-(O+T)%4*8;else for(var R=0;R>>2]=k[R>>>2];return this.sigBytes+=N,this},clamp:function(){var _=this.words,D=this.sigBytes;_[D>>>2]&=4294967295<<32-D%4*8,_.length=P.ceil(D/4)},clone:function(){var _=u.clone.call(this);return _.words=this.words.slice(0),_},random:function(_){for(var D=[],k=0;k<_;k+=4)D.push(A());return new f.init(D,_)}}),v=x.enc={},y=v.Hex={stringify:function(_){for(var D=_.words,k=_.sigBytes,O=[],N=0;N>>2]>>>24-N%4*8&255;O.push((T>>>4).toString(16)),O.push((15&T).toString(16))}return O.join("")},parse:function(_){for(var D=_.length,k=[],O=0;O>>3]|=parseInt(_.substr(O,2),16)<<24-O%8*4;return new f.init(k,D/2)}},p=v.Latin1={stringify:function(_){for(var D=_.words,k=_.sigBytes,O=[],N=0;N>>2]>>>24-N%4*8&255));return O.join("")},parse:function(_){for(var D=_.length,k=[],O=0;O>>2]|=(255&_.charCodeAt(O))<<24-O%4*8;return new f.init(k,D)}},h=v.Utf8={stringify:function(_){try{return decodeURIComponent(escape(p.stringify(_)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(_){return p.parse(unescape(encodeURIComponent(_)))}},g=d.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(_){"string"==typeof _&&(_=h.parse(_)),this._data.concat(_),this._nDataBytes+=_.sigBytes},_process:function(_){var D,k=this._data,O=k.words,N=k.sigBytes,T=this.blockSize,R=N/(4*T),V=(R=_?P.ceil(R):P.max((0|R)-this._minBufferSize,0))*T,$=P.min(4*V,N);if(V){for(var U=0;U>>2]>>>24-p%4*8&255)<<16|(u[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|u[p+2>>>2]>>>24-(p+2)%4*8&255,_=0;_<4&&p+.75*_>>6*(3-_)&63));var D=v.charAt(64);if(D)for(;y.length%4;)y.push(D);return y.join("")},parse:function(d){var u=d.length,f=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var y=0;y>>6-p%4*2;v[y>>>2]|=(h|g)<<24-y%4*8,y++}return F.create(v,y)}(d,u,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},E.enc.Base64)},410:function(Me,J,M){var E,F;Me.exports=(E=M(585),F=E.lib.WordArray,E.enc.Base64url={stringify:function(d,u=!0){var f=d.words,v=d.sigBytes,y=u?this._safe_map:this._map;d.clamp();for(var p=[],h=0;h>>2]>>>24-h%4*8&255)<<16|(f[h+1>>>2]>>>24-(h+1)%4*8&255)<<8|f[h+2>>>2]>>>24-(h+2)%4*8&255,D=0;D<4&&h+.75*D>>6*(3-D)&63));var k=y.charAt(64);if(k)for(;p.length%4;)p.push(k);return p.join("")},parse:function(d,u=!0){var f=d.length,v=u?this._safe_map:this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var p=0;p>>6-p%4*2;v[y>>>2]|=(h|g)<<24-y%4*8,y++}return F.create(v,y)}(d,f,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},E.enc.Base64url)},12:function(Me,J,M){var E;Me.exports=(E=M(585),function(){var F=E.lib.WordArray,A=E.enc;function x(d){return d<<8&4278255360|d>>>8&16711935}A.Utf16=A.Utf16BE={stringify:function(d){for(var u=d.words,f=d.sigBytes,v=[],y=0;y>>2]>>>16-y%4*8&65535));return v.join("")},parse:function(d){for(var u=d.length,f=[],v=0;v>>1]|=d.charCodeAt(v)<<16-v%2*16;return F.create(f,2*u)}},A.Utf16LE={stringify:function(d){for(var u=d.words,f=d.sigBytes,v=[],y=0;y>>2]>>>16-y%4*8&65535);v.push(String.fromCharCode(p))}return v.join("")},parse:function(d){for(var u=d.length,f=[],v=0;v>>1]|=x(d.charCodeAt(v)<<16-v%2*16);return F.create(f,2*u)}}}(),E.enc.Utf16)},865:function(Me,J,M){var P,L,F,A,S,d,E;Me.exports=(E=M(585),M(162),M(764),A=(L=(P=E).lib).WordArray,d=(S=P.algo).EvpKDF=(F=L.Base).extend({cfg:F.extend({keySize:4,hasher:S.MD5,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,f){for(var v,y=this.cfg,p=y.hasher.create(),h=A.create(),g=h.words,w=y.keySize,m=y.iterations;g.lengthy&&(f=u.finalize(f)),f.clamp();for(var p=this._oKey=f.clone(),h=this._iKey=f.clone(),g=p.words,w=h.words,m=0;m>>2]|=x[f]<<24-f%4*8;A.call(this,u,d)}else A.apply(this,arguments)};S.prototype=F}}(),E.lib.WordArray)},493:function(Me,J,M){var E;Me.exports=(E=M(585),function(P){var L=E,F=L.lib,A=F.WordArray,S=F.Hasher,x=L.algo,d=[];!function(){for(var h=0;h<64;h++)d[h]=4294967296*P.abs(P.sin(h+1))|0}();var u=x.MD5=S.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(h,g){for(var w=0;w<16;w++){var m=g+w,_=h[m];h[m]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8)}var D=this._hash.words,k=h[g+0],O=h[g+1],N=h[g+2],T=h[g+3],I=h[g+4],R=h[g+5],V=h[g+6],$=h[g+7],U=h[g+8],Z=h[g+9],X=h[g+10],re=h[g+11],ee=h[g+12],W=h[g+13],z=h[g+14],G=h[g+15],q=D[0],Y=D[1],K=D[2],H=D[3];q=f(q,Y,K,H,k,7,d[0]),H=f(H,q,Y,K,O,12,d[1]),K=f(K,H,q,Y,N,17,d[2]),Y=f(Y,K,H,q,T,22,d[3]),q=f(q,Y,K,H,I,7,d[4]),H=f(H,q,Y,K,R,12,d[5]),K=f(K,H,q,Y,V,17,d[6]),Y=f(Y,K,H,q,$,22,d[7]),q=f(q,Y,K,H,U,7,d[8]),H=f(H,q,Y,K,Z,12,d[9]),K=f(K,H,q,Y,X,17,d[10]),Y=f(Y,K,H,q,re,22,d[11]),q=f(q,Y,K,H,ee,7,d[12]),H=f(H,q,Y,K,W,12,d[13]),K=f(K,H,q,Y,z,17,d[14]),q=v(q,Y=f(Y,K,H,q,G,22,d[15]),K,H,O,5,d[16]),H=v(H,q,Y,K,V,9,d[17]),K=v(K,H,q,Y,re,14,d[18]),Y=v(Y,K,H,q,k,20,d[19]),q=v(q,Y,K,H,R,5,d[20]),H=v(H,q,Y,K,X,9,d[21]),K=v(K,H,q,Y,G,14,d[22]),Y=v(Y,K,H,q,I,20,d[23]),q=v(q,Y,K,H,Z,5,d[24]),H=v(H,q,Y,K,z,9,d[25]),K=v(K,H,q,Y,T,14,d[26]),Y=v(Y,K,H,q,U,20,d[27]),q=v(q,Y,K,H,W,5,d[28]),H=v(H,q,Y,K,N,9,d[29]),K=v(K,H,q,Y,$,14,d[30]),q=y(q,Y=v(Y,K,H,q,ee,20,d[31]),K,H,R,4,d[32]),H=y(H,q,Y,K,U,11,d[33]),K=y(K,H,q,Y,re,16,d[34]),Y=y(Y,K,H,q,z,23,d[35]),q=y(q,Y,K,H,O,4,d[36]),H=y(H,q,Y,K,I,11,d[37]),K=y(K,H,q,Y,$,16,d[38]),Y=y(Y,K,H,q,X,23,d[39]),q=y(q,Y,K,H,W,4,d[40]),H=y(H,q,Y,K,k,11,d[41]),K=y(K,H,q,Y,T,16,d[42]),Y=y(Y,K,H,q,V,23,d[43]),q=y(q,Y,K,H,Z,4,d[44]),H=y(H,q,Y,K,ee,11,d[45]),K=y(K,H,q,Y,G,16,d[46]),q=p(q,Y=y(Y,K,H,q,N,23,d[47]),K,H,k,6,d[48]),H=p(H,q,Y,K,$,10,d[49]),K=p(K,H,q,Y,z,15,d[50]),Y=p(Y,K,H,q,R,21,d[51]),q=p(q,Y,K,H,ee,6,d[52]),H=p(H,q,Y,K,T,10,d[53]),K=p(K,H,q,Y,X,15,d[54]),Y=p(Y,K,H,q,O,21,d[55]),q=p(q,Y,K,H,U,6,d[56]),H=p(H,q,Y,K,G,10,d[57]),K=p(K,H,q,Y,V,15,d[58]),Y=p(Y,K,H,q,W,21,d[59]),q=p(q,Y,K,H,I,6,d[60]),H=p(H,q,Y,K,re,10,d[61]),K=p(K,H,q,Y,N,15,d[62]),Y=p(Y,K,H,q,Z,21,d[63]),D[0]=D[0]+q|0,D[1]=D[1]+Y|0,D[2]=D[2]+K|0,D[3]=D[3]+H|0},_doFinalize:function(){var h=this._data,g=h.words,w=8*this._nDataBytes,m=8*h.sigBytes;g[m>>>5]|=128<<24-m%32;var _=P.floor(w/4294967296),D=w;g[15+(m+64>>>9<<4)]=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),g[14+(m+64>>>9<<4)]=16711935&(D<<8|D>>>24)|4278255360&(D<<24|D>>>8),h.sigBytes=4*(g.length+1),this._process();for(var k=this._hash,O=k.words,N=0;N<4;N++){var T=O[N];O[N]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8)}return k},clone:function(){var h=S.clone.call(this);return h._hash=this._hash.clone(),h}});function f(h,g,w,m,_,D,k){var O=h+(g&w|~g&m)+_+k;return(O<>>32-D)+g}function v(h,g,w,m,_,D,k){var O=h+(g&m|w&~m)+_+k;return(O<>>32-D)+g}function y(h,g,w,m,_,D,k){var O=h+(g^w^m)+_+k;return(O<>>32-D)+g}function p(h,g,w,m,_,D,k){var O=h+(w^(g|~m))+_+k;return(O<>>32-D)+g}L.MD5=S._createHelper(u),L.HmacMD5=S._createHmacHelper(u)}(Math),E.MD5)},424:function(Me,J,M){var E;Me.exports=(E=M(585),M(57),E.mode.CFB=function(){var P=E.lib.BlockCipherMode.extend();function L(F,A,S,x){var d,u=this._iv;u?(d=u.slice(0),this._iv=void 0):d=this._prevBlock,x.encryptBlock(d,0);for(var f=0;f>24&255)){var x=S>>16&255,d=S>>8&255,u=255&S;255===x?(x=0,255===d?(d=0,255===u?u=0:++u):++d):++x,S=0,S+=x<<16,S+=d<<8,S+=u}else S+=1<<24;return S}var A=P.Encryptor=P.extend({processBlock:function(S,x){var d=this._cipher,u=d.blockSize,f=this._iv,v=this._counter;f&&(v=this._counter=f.slice(0),this._iv=void 0),function F(S){return 0===(S[0]=L(S[0]))&&(S[1]=L(S[1])),S}(v);var y=v.slice(0);d.encryptBlock(y,0);for(var p=0;p>>2]|=S<<24-x%4*8,P.sigBytes+=S},unpad:function(P){P.sigBytes-=255&P.words[P.sigBytes-1>>>2]}},E.pad.Ansix923)},630:function(Me,J,M){var E;Me.exports=(E=M(585),M(57),E.pad.Iso10126={pad:function(P,L){var F=4*L,A=F-P.sigBytes%F;P.concat(E.lib.WordArray.random(A-1)).concat(E.lib.WordArray.create([A<<24],1))},unpad:function(P){P.sigBytes-=255&P.words[P.sigBytes-1>>>2]}},E.pad.Iso10126)},187:function(Me,J,M){var E;Me.exports=(E=M(585),M(57),E.pad.Iso97971={pad:function(P,L){P.concat(E.lib.WordArray.create([2147483648],1)),E.pad.ZeroPadding.pad(P,L)},unpad:function(P){E.pad.ZeroPadding.unpad(P),P.sigBytes--}},E.pad.Iso97971)},237:function(Me,J,M){var E;Me.exports=(E=M(585),M(57),E.pad.NoPadding={pad:function(){},unpad:function(){}},E.pad.NoPadding)},691:function(Me,J,M){var E;Me.exports=(E=M(585),M(57),E.pad.ZeroPadding={pad:function(P,L){var F=4*L;P.clamp(),P.sigBytes+=F-(P.sigBytes%F||F)},unpad:function(P){var L=P.words,F=P.sigBytes-1;for(F=P.sigBytes-1;F>=0;F--)if(L[F>>>2]>>>24-F%4*8&255){P.sigBytes=F+1;break}}},E.pad.ZeroPadding)},812:function(Me,J,M){var P,L,F,A,S,d,u,E;Me.exports=(E=M(585),M(162),M(764),A=(L=(P=E).lib).WordArray,d=(S=P.algo).HMAC,u=S.PBKDF2=(F=L.Base).extend({cfg:F.extend({keySize:4,hasher:S.SHA1,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,v){for(var y=this.cfg,p=d.create(y.hasher,f),h=A.create(),g=A.create([1]),w=h.words,m=g.words,_=y.keySize,D=y.iterations;w.length<_;){var k=p.update(v).finalize(g);p.reset();for(var O=k.words,N=O.length,T=k,I=1;I>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],h=this._C=[v[2]<<16|v[2]>>>16,4294901760&v[0]|65535&v[1],v[3]<<16|v[3]>>>16,4294901760&v[1]|65535&v[2],v[0]<<16|v[0]>>>16,4294901760&v[2]|65535&v[3],v[1]<<16|v[1]>>>16,4294901760&v[3]|65535&v[0]];this._b=0;for(var g=0;g<4;g++)f.call(this);for(g=0;g<8;g++)h[g]^=p[g+4&7];if(y){var w=y.words,m=w[0],_=w[1],D=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),k=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),O=D>>>16|4294901760&k,N=k<<16|65535&D;for(h[0]^=D,h[1]^=O,h[2]^=k,h[3]^=N,h[4]^=D,h[5]^=O,h[6]^=k,h[7]^=N,g=0;g<4;g++)f.call(this)}},_doProcessBlock:function(v,y){var p=this._X;f.call(this),S[0]=p[0]^p[5]>>>16^p[3]<<16,S[1]=p[2]^p[7]>>>16^p[5]<<16,S[2]=p[4]^p[1]>>>16^p[7]<<16,S[3]=p[6]^p[3]>>>16^p[1]<<16;for(var h=0;h<4;h++)S[h]=16711935&(S[h]<<8|S[h]>>>24)|4278255360&(S[h]<<24|S[h]>>>8),v[y+h]^=S[h]},blockSize:4,ivSize:2});function f(){for(var v=this._X,y=this._C,p=0;p<8;p++)x[p]=y[p];for(y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0>>0?1:0)|0,this._b=y[7]>>>0>>0?1:0,p=0;p<8;p++){var h=v[p]+y[p],g=65535&h,w=h>>>16;d[p]=((g*g>>>17)+g*w>>>15)+w*w^((4294901760&h)*h|0)+((65535&h)*h|0)}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}P.RabbitLegacy=F._createHelper(u)}(),E.RabbitLegacy)},182:function(Me,J,M){var E;Me.exports=(E=M(585),M(319),M(493),M(865),M(57),function(){var P=E,F=P.lib.StreamCipher,S=[],x=[],d=[],u=P.algo.Rabbit=F.extend({_doReset:function(){for(var v=this._key.words,y=this.cfg.iv,p=0;p<4;p++)v[p]=16711935&(v[p]<<8|v[p]>>>24)|4278255360&(v[p]<<24|v[p]>>>8);var h=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],g=this._C=[v[2]<<16|v[2]>>>16,4294901760&v[0]|65535&v[1],v[3]<<16|v[3]>>>16,4294901760&v[1]|65535&v[2],v[0]<<16|v[0]>>>16,4294901760&v[2]|65535&v[3],v[1]<<16|v[1]>>>16,4294901760&v[3]|65535&v[0]];for(this._b=0,p=0;p<4;p++)f.call(this);for(p=0;p<8;p++)g[p]^=h[p+4&7];if(y){var w=y.words,m=w[0],_=w[1],D=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),k=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),O=D>>>16|4294901760&k,N=k<<16|65535&D;for(g[0]^=D,g[1]^=O,g[2]^=k,g[3]^=N,g[4]^=D,g[5]^=O,g[6]^=k,g[7]^=N,p=0;p<4;p++)f.call(this)}},_doProcessBlock:function(v,y){var p=this._X;f.call(this),S[0]=p[0]^p[5]>>>16^p[3]<<16,S[1]=p[2]^p[7]>>>16^p[5]<<16,S[2]=p[4]^p[1]>>>16^p[7]<<16,S[3]=p[6]^p[3]>>>16^p[1]<<16;for(var h=0;h<4;h++)S[h]=16711935&(S[h]<<8|S[h]>>>24)|4278255360&(S[h]<<24|S[h]>>>8),v[y+h]^=S[h]},blockSize:4,ivSize:2});function f(){for(var v=this._X,y=this._C,p=0;p<8;p++)x[p]=y[p];for(y[0]=y[0]+1295307597+this._b|0,y[1]=y[1]+3545052371+(y[0]>>>0>>0?1:0)|0,y[2]=y[2]+886263092+(y[1]>>>0>>0?1:0)|0,y[3]=y[3]+1295307597+(y[2]>>>0>>0?1:0)|0,y[4]=y[4]+3545052371+(y[3]>>>0>>0?1:0)|0,y[5]=y[5]+886263092+(y[4]>>>0>>0?1:0)|0,y[6]=y[6]+1295307597+(y[5]>>>0>>0?1:0)|0,y[7]=y[7]+3545052371+(y[6]>>>0>>0?1:0)|0,this._b=y[7]>>>0>>0?1:0,p=0;p<8;p++){var h=v[p]+y[p],g=65535&h,w=h>>>16;d[p]=((g*g>>>17)+g*w>>>15)+w*w^((4294901760&h)*h|0)+((65535&h)*h|0)}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}P.Rabbit=F._createHelper(u)}(),E.Rabbit)},486:function(Me,J,M){var E;Me.exports=(E=M(585),M(319),M(493),M(865),M(57),function(){var P=E,F=P.lib.StreamCipher,A=P.algo,S=A.RC4=F.extend({_doReset:function(){for(var u=this._key,f=u.words,v=u.sigBytes,y=this._S=[],p=0;p<256;p++)y[p]=p;p=0;for(var h=0;p<256;p++){var g=p%v,m=y[p];y[p]=y[h=(h+y[p]+(f[g>>>2]>>>24-g%4*8&255))%256],y[h]=m}this._i=this._j=0},_doProcessBlock:function(u,f){u[f]^=x.call(this)},keySize:8,ivSize:0});function x(){for(var u=this._S,f=this._i,v=this._j,y=0,p=0;p<4;p++){var h=u[f=(f+1)%256];u[f]=u[v=(v+u[f])%256],u[v]=h,y|=u[(u[f]+u[v])%256]<<24-8*p}return this._i=f,this._j=v,y}P.RC4=F._createHelper(S);var d=A.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)x.call(this)}});P.RC4Drop=F._createHelper(d)}(),E.RC4)},973:function(Me,J,M){var E;Me.exports=(E=M(585),function(P){var L=E,F=L.lib,A=F.WordArray,S=F.Hasher,x=L.algo,d=A.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=A.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),f=A.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),v=A.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),y=A.create([0,1518500249,1859775393,2400959708,2840853838]),p=A.create([1352829926,1548603684,1836072691,2053994217,0]),h=x.RIPEMD160=S.extend({_doReset:function(){this._hash=A.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,N){for(var T=0;T<16;T++){var I=N+T,R=O[I];O[I]=16711935&(R<<8|R>>>24)|4278255360&(R<<24|R>>>8)}var W,z,G,q,Y,K,H,te,oe,ae,he,V=this._hash.words,$=y.words,U=p.words,Z=d.words,X=u.words,re=f.words,ee=v.words;for(K=W=V[0],H=z=V[1],te=G=V[2],oe=q=V[3],ae=Y=V[4],T=0;T<80;T+=1)he=W+O[N+Z[T]]|0,he+=T<16?g(z,G,q)+$[0]:T<32?w(z,G,q)+$[1]:T<48?m(z,G,q)+$[2]:T<64?_(z,G,q)+$[3]:D(z,G,q)+$[4],he=(he=k(he|=0,re[T]))+Y|0,W=Y,Y=q,q=k(G,10),G=z,z=he,he=K+O[N+X[T]]|0,he+=T<16?D(H,te,oe)+U[0]:T<32?_(H,te,oe)+U[1]:T<48?m(H,te,oe)+U[2]:T<64?w(H,te,oe)+U[3]:g(H,te,oe)+U[4],he=(he=k(he|=0,ee[T]))+ae|0,K=ae,ae=oe,oe=k(te,10),te=H,H=he;he=V[1]+G+oe|0,V[1]=V[2]+q+ae|0,V[2]=V[3]+Y+K|0,V[3]=V[4]+W+H|0,V[4]=V[0]+z+te|0,V[0]=he},_doFinalize:function(){var O=this._data,N=O.words,T=8*this._nDataBytes,I=8*O.sigBytes;N[I>>>5]|=128<<24-I%32,N[14+(I+64>>>9<<4)]=16711935&(T<<8|T>>>24)|4278255360&(T<<24|T>>>8),O.sigBytes=4*(N.length+1),this._process();for(var R=this._hash,V=R.words,$=0;$<5;$++){var U=V[$];V[$]=16711935&(U<<8|U>>>24)|4278255360&(U<<24|U>>>8)}return R},clone:function(){var O=S.clone.call(this);return O._hash=this._hash.clone(),O}});function g(O,N,T){return O^N^T}function w(O,N,T){return O&N|~O&T}function m(O,N,T){return(O|~N)^T}function _(O,N,T){return O&T|N&~T}function D(O,N,T){return O^(N|~T)}function k(O,N){return O<>>32-N}L.RIPEMD160=S._createHelper(h),L.HmacRIPEMD160=S._createHmacHelper(h)}(Math),E.RIPEMD160)},162:function(Me,J,M){var P,L,F,A,x,d,E;Me.exports=(E=M(585),F=(L=(P=E).lib).WordArray,x=[],d=P.algo.SHA1=(A=L.Hasher).extend({_doReset:function(){this._hash=new F.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,f){for(var v=this._hash.words,y=v[0],p=v[1],h=v[2],g=v[3],w=v[4],m=0;m<80;m++){if(m<16)x[m]=0|u[f+m];else{var _=x[m-3]^x[m-8]^x[m-14]^x[m-16];x[m]=_<<1|_>>>31}var D=(y<<5|y>>>27)+w+x[m];D+=m<20?1518500249+(p&h|~p&g):m<40?1859775393+(p^h^g):m<60?(p&h|p&g|h&g)-1894007588:(p^h^g)-899497514,w=g,g=h,h=p<<30|p>>>2,p=y,y=D}v[0]=v[0]+y|0,v[1]=v[1]+p|0,v[2]=v[2]+h|0,v[3]=v[3]+g|0,v[4]=v[4]+w|0},_doFinalize:function(){var u=this._data,f=u.words,v=8*this._nDataBytes,y=8*u.sigBytes;return f[y>>>5]|=128<<24-y%32,f[14+(y+64>>>9<<4)]=Math.floor(v/4294967296),f[15+(y+64>>>9<<4)]=v,u.sigBytes=4*f.length,this._process(),this._hash},clone:function(){var u=A.clone.call(this);return u._hash=this._hash.clone(),u}}),P.SHA1=A._createHelper(d),P.HmacSHA1=A._createHmacHelper(d),E.SHA1)},769:function(Me,J,M){var P,F,A,S,x,E;Me.exports=(E=M(585),M(817),F=(P=E).lib.WordArray,x=(A=P.algo).SHA224=(S=A.SHA256).extend({_doReset:function(){this._hash=new F.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=S._doFinalize.call(this);return d.sigBytes-=4,d}}),P.SHA224=S._createHelper(x),P.HmacSHA224=S._createHmacHelper(x),E.SHA224)},817:function(Me,J,M){var E;Me.exports=(E=M(585),function(P){var L=E,F=L.lib,A=F.WordArray,S=F.Hasher,x=L.algo,d=[],u=[];!function(){function y(w){for(var m=P.sqrt(w),_=2;_<=m;_++)if(!(w%_))return!1;return!0}function p(w){return 4294967296*(w-(0|w))|0}for(var h=2,g=0;g<64;)y(h)&&(g<8&&(d[g]=p(P.pow(h,.5))),u[g]=p(P.pow(h,1/3)),g++),h++}();var f=[],v=x.SHA256=S.extend({_doReset:function(){this._hash=new A.init(d.slice(0))},_doProcessBlock:function(y,p){for(var h=this._hash.words,g=h[0],w=h[1],m=h[2],_=h[3],D=h[4],k=h[5],O=h[6],N=h[7],T=0;T<64;T++){if(T<16)f[T]=0|y[p+T];else{var I=f[T-15],V=f[T-2];f[T]=((I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3)+f[T-7]+((V<<15|V>>>17)^(V<<13|V>>>19)^V>>>10)+f[T-16]}var Z=g&w^g&m^w&m,ee=N+((D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25))+(D&k^~D&O)+u[T]+f[T];N=O,O=k,k=D,D=_+ee|0,_=m,m=w,w=g,g=ee+(((g<<30|g>>>2)^(g<<19|g>>>13)^(g<<10|g>>>22))+Z)|0}h[0]=h[0]+g|0,h[1]=h[1]+w|0,h[2]=h[2]+m|0,h[3]=h[3]+_|0,h[4]=h[4]+D|0,h[5]=h[5]+k|0,h[6]=h[6]+O|0,h[7]=h[7]+N|0},_doFinalize:function(){var y=this._data,p=y.words,h=8*this._nDataBytes,g=8*y.sigBytes;return p[g>>>5]|=128<<24-g%32,p[14+(g+64>>>9<<4)]=P.floor(h/4294967296),p[15+(g+64>>>9<<4)]=h,y.sigBytes=4*p.length,this._process(),this._hash},clone:function(){var y=S.clone.call(this);return y._hash=this._hash.clone(),y}});L.SHA256=S._createHelper(v),L.HmacSHA256=S._createHmacHelper(v)}(Math),E.SHA256)},971:function(Me,J,M){var E;Me.exports=(E=M(585),M(401),function(P){var L=E,F=L.lib,A=F.WordArray,S=F.Hasher,d=L.x64.Word,u=L.algo,f=[],v=[],y=[];!function(){for(var g=1,w=0,m=0;m<24;m++){f[g+5*w]=(m+1)*(m+2)/2%64;var D=(2*g+3*w)%5;g=w%5,w=D}for(g=0;g<5;g++)for(w=0;w<5;w++)v[g+5*w]=w+(2*g+3*w)%5*5;for(var k=1,O=0;O<24;O++){for(var N=0,T=0,I=0;I<7;I++){if(1&k){var R=(1<>>24)|4278255360&(k<<24|k>>>8),(N=m[D]).high^=O=16711935&(O<<8|O>>>24)|4278255360&(O<<24|O>>>8),N.low^=k}for(var T=0;T<24;T++){for(var I=0;I<5;I++){for(var R=0,V=0,$=0;$<5;$++)R^=(N=m[I+5*$]).high,V^=N.low;var U=p[I];U.high=R,U.low=V}for(I=0;I<5;I++){var Z=p[(I+4)%5],X=p[(I+1)%5],re=X.high,ee=X.low;for(R=Z.high^(re<<1|ee>>>31),V=Z.low^(ee<<1|re>>>31),$=0;$<5;$++)(N=m[I+5*$]).high^=R,N.low^=V}for(var W=1;W<25;W++){var z=(N=m[W]).high,G=N.low,q=f[W];q<32?(R=z<>>32-q,V=G<>>32-q):(R=G<>>64-q,V=z<>>64-q);var Y=p[v[W]];Y.high=R,Y.low=V}var K=p[0],H=m[0];for(K.high=H.high,K.low=H.low,I=0;I<5;I++)for($=0;$<5;$++){var te=p[W=I+5*$],oe=p[(I+1)%5+5*$],ae=p[(I+2)%5+5*$];(N=m[W]).high=te.high^~oe.high&ae.high,N.low=te.low^~oe.low&ae.low}var N,he=y[T];(N=m[0]).high^=he.high,N.low^=he.low}},_doFinalize:function(){var g=this._data,w=g.words,_=8*g.sigBytes,D=32*this.blockSize;w[_>>>5]|=1<<24-_%32,w[(P.ceil((_+1)/D)*D>>>5)-1]|=128,g.sigBytes=4*w.length,this._process();for(var k=this._state,O=this.cfg.outputLength/8,N=O/8,T=[],I=0;I>>24)|4278255360&(V<<24|V>>>8),T.push($=16711935&($<<8|$>>>24)|4278255360&($<<24|$>>>8)),T.push(V)}return new A.init(T,O)},clone:function(){for(var g=S.clone.call(this),w=g._state=this._state.slice(0),m=0;m<25;m++)w[m]=w[m].clone();return g}});L.SHA3=S._createHelper(h),L.HmacSHA3=S._createHmacHelper(h)}(Math),E.SHA3)},787:function(Me,J,M){var P,L,F,A,S,x,d,E;Me.exports=(E=M(585),M(401),M(351),F=(L=(P=E).x64).Word,A=L.WordArray,d=(S=P.algo).SHA384=(x=S.SHA512).extend({_doReset:function(){this._hash=new A.init([new F.init(3418070365,3238371032),new F.init(1654270250,914150663),new F.init(2438529370,812702999),new F.init(355462360,4144912697),new F.init(1731405415,4290775857),new F.init(2394180231,1750603025),new F.init(3675008525,1694076839),new F.init(1203062813,3204075428)])},_doFinalize:function(){var u=x._doFinalize.call(this);return u.sigBytes-=16,u}}),P.SHA384=x._createHelper(d),P.HmacSHA384=x._createHmacHelper(d),E.SHA384)},351:function(Me,J,M){var E;Me.exports=(E=M(585),M(401),function(){var P=E,F=P.lib.Hasher,A=P.x64,S=A.Word,x=A.WordArray,d=P.algo;function u(){return S.create.apply(S,arguments)}var f=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],v=[];!function(){for(var p=0;p<80;p++)v[p]=u()}();var y=d.SHA512=F.extend({_doReset:function(){this._hash=new x.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(p,h){for(var g=this._hash.words,w=g[0],m=g[1],_=g[2],D=g[3],k=g[4],O=g[5],N=g[6],T=g[7],I=w.high,R=w.low,V=m.high,$=m.low,U=_.high,Z=_.low,X=D.high,re=D.low,ee=k.high,W=k.low,z=O.high,G=O.low,q=N.high,Y=N.low,K=T.high,H=T.low,te=I,oe=R,ae=V,he=$,Ee=U,Be=Z,Je=X,it=re,st=ee,It=W,$t=z,ge=G,ve=q,Ie=Y,ke=K,De=H,Ue=0;Ue<80;Ue++){var $e,et,bn=v[Ue];if(Ue<16)et=bn.high=0|p[h+2*Ue],$e=bn.low=0|p[h+2*Ue+1];else{var ri=v[Ue-15],pt=ri.high,mr=ri.low,oi=(mr>>>1|pt<<31)^(mr>>>8|pt<<24)^(mr>>>7|pt<<25),md=v[Ue-2],Br=md.high,Fo=md.low,gd=(Fo>>>19|Br<<13)^(Fo<<3|Br>>>29)^(Fo>>>6|Br<<26),vd=v[Ue-7],js=v[Ue-16],Us=js.low;bn.high=et=(et=(et=((pt>>>1|mr<<31)^(pt>>>8|mr<<24)^pt>>>7)+vd.high+(($e=oi+vd.low)>>>0>>0?1:0))+((Br>>>19|Fo<<13)^(Br<<3|Fo>>>29)^Br>>>6)+(($e+=gd)>>>0>>0?1:0))+js.high+(($e+=Us)>>>0>>0?1:0),bn.low=$e}var On,Cl=st&$t^~st&ve,El=It&ge^~It&Ie,Sl=te&ae^te&Ee^ae&Ee,$s=(oe>>>28|te<<4)^(oe<<30|te>>>2)^(oe<<25|te>>>7),Il=f[Ue],Ml=Il.low,er=ke+((st>>>14|It<<18)^(st>>>18|It<<14)^(st<<23|It>>>9))+((On=De+((It>>>14|st<<18)^(It>>>18|st<<14)^(It<<23|st>>>9)))>>>0>>0?1:0),kl=$s+(oe&he^oe&Be^he&Be);ke=ve,De=Ie,ve=$t,Ie=ge,$t=st,ge=It,st=Je+(er=(er=(er=er+Cl+((On+=El)>>>0>>0?1:0))+Il.high+((On+=Ml)>>>0>>0?1:0))+et+((On+=$e)>>>0<$e>>>0?1:0))+((It=it+On|0)>>>0>>0?1:0)|0,Je=Ee,it=Be,Ee=ae,Be=he,ae=te,he=oe,te=er+(((te>>>28|oe<<4)^(te<<30|oe>>>2)^(te<<25|oe>>>7))+Sl+(kl>>>0<$s>>>0?1:0))+((oe=On+kl|0)>>>0>>0?1:0)|0}R=w.low=R+oe,w.high=I+te+(R>>>0>>0?1:0),$=m.low=$+he,m.high=V+ae+($>>>0>>0?1:0),Z=_.low=Z+Be,_.high=U+Ee+(Z>>>0>>0?1:0),re=D.low=re+it,D.high=X+Je+(re>>>0>>0?1:0),W=k.low=W+It,k.high=ee+st+(W>>>0>>0?1:0),G=O.low=G+ge,O.high=z+$t+(G>>>0>>0?1:0),Y=N.low=Y+Ie,N.high=q+ve+(Y>>>0>>0?1:0),H=T.low=H+De,T.high=K+ke+(H>>>0>>0?1:0)},_doFinalize:function(){var p=this._data,h=p.words,g=8*this._nDataBytes,w=8*p.sigBytes;return h[w>>>5]|=128<<24-w%32,h[30+(w+128>>>10<<5)]=Math.floor(g/4294967296),h[31+(w+128>>>10<<5)]=g,p.sigBytes=4*h.length,this._process(),this._hash.toX32()},clone:function(){var p=F.clone.call(this);return p._hash=this._hash.clone(),p},blockSize:32});P.SHA512=F._createHelper(y),P.HmacSHA512=F._createHmacHelper(y)}(),E.SHA512)},243:function(Me,J,M){var E;Me.exports=(E=M(585),M(319),M(493),M(865),M(57),function(){var P=E,L=P.lib,F=L.WordArray,A=L.BlockCipher,S=P.algo,x=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],v=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],y=S.DES=A.extend({_doReset:function(){for(var m=this._key.words,_=[],D=0;D<56;D++){var k=x[D]-1;_[D]=m[k>>>5]>>>31-k%32&1}for(var O=this._subKeys=[],N=0;N<16;N++){var T=O[N]=[],I=u[N];for(D=0;D<24;D++)T[D/6|0]|=_[(d[D]-1+I)%28]<<31-D%6,T[4+(D/6|0)]|=_[28+(d[D+24]-1+I)%28]<<31-D%6;for(T[0]=T[0]<<1|T[0]>>>31,D=1;D<7;D++)T[D]=T[D]>>>4*(D-1)+3;T[7]=T[7]<<5|T[7]>>>27}var R=this._invSubKeys=[];for(D=0;D<16;D++)R[D]=O[15-D]},encryptBlock:function(w,m){this._doCryptBlock(w,m,this._subKeys)},decryptBlock:function(w,m){this._doCryptBlock(w,m,this._invSubKeys)},_doCryptBlock:function(w,m,_){this._lBlock=w[m],this._rBlock=w[m+1],p.call(this,4,252645135),p.call(this,16,65535),h.call(this,2,858993459),h.call(this,8,16711935),p.call(this,1,1431655765);for(var D=0;D<16;D++){for(var k=_[D],O=this._lBlock,N=this._rBlock,T=0,I=0;I<8;I++)T|=f[I][((N^k[I])&v[I])>>>0];this._lBlock=N,this._rBlock=O^T}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,p.call(this,1,1431655765),h.call(this,8,16711935),h.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),w[m]=this._lBlock,w[m+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(w,m){var _=(this._lBlock>>>w^this._rBlock)&m;this._rBlock^=_,this._lBlock^=_<>>w^this._lBlock)&m;this._lBlock^=_,this._rBlock^=_<192.");var _=m.slice(0,2),D=m.length<4?m.slice(0,2):m.slice(2,4),k=m.length<6?m.slice(0,2):m.slice(4,6);this._des1=y.createEncryptor(F.create(_)),this._des2=y.createEncryptor(F.create(D)),this._des3=y.createEncryptor(F.create(k))},encryptBlock:function(w,m){this._des1.encryptBlock(w,m),this._des2.decryptBlock(w,m),this._des3.encryptBlock(w,m)},decryptBlock:function(w,m){this._des3.decryptBlock(w,m),this._des2.encryptBlock(w,m),this._des1.decryptBlock(w,m)},keySize:6,ivSize:2,blockSize:2});P.TripleDES=A._createHelper(g)}(),E.TripleDES)},401:function(Me,J,M){var F,A,S,x,E;Me.exports=(E=M(585),A=(F=E.lib).Base,S=F.WordArray,(x=E.x64={}).Word=A.extend({init:function(f,v){this.high=f,this.low=v}}),x.WordArray=A.extend({init:function(f,v){f=this.words=f||[],this.sigBytes=null!=v?v:8*f.length},toX32:function(){for(var f=this.words,v=f.length,y=[],p=0;p1)return p.map(function(m){return y(m)});var g=p[0];if("string"!=typeof g.blotName&&"string"!=typeof g.attrName)throw new L("Invalid definition");if("abstract"===g.blotName)throw new L("Cannot register abstract class");return x[g.blotName||g.attrName]=g,"string"==typeof g.keyName?F[g.keyName]=g:(null!=g.className&&(A[g.className]=g),null!=g.tagName&&(g.tagName=Array.isArray(g.tagName)?g.tagName.map(function(m){return m.toUpperCase()}):g.tagName.toUpperCase(),(Array.isArray(g.tagName)?g.tagName:[g.tagName]).forEach(function(m){(null==S[m]||null==g.className)&&(S[m]=g)}))),g}},function(J,M,E){var P=E(51),L=E(11),F=E(3),A=E(20),S=String.fromCharCode(0),x=function(d){this.ops=Array.isArray(d)?d:null!=d&&Array.isArray(d.ops)?d.ops:[]};x.prototype.insert=function(d,u){var f={};return 0===d.length?this:(f.insert=d,null!=u&&"object"==typeof u&&Object.keys(u).length>0&&(f.attributes=u),this.push(f))},x.prototype.delete=function(d){return d<=0?this:this.push({delete:d})},x.prototype.retain=function(d,u){if(d<=0)return this;var f={retain:d};return null!=u&&"object"==typeof u&&Object.keys(u).length>0&&(f.attributes=u),this.push(f)},x.prototype.push=function(d){var u=this.ops.length,f=this.ops[u-1];if(d=F(!0,{},d),"object"==typeof f){if("number"==typeof d.delete&&"number"==typeof f.delete)return this.ops[u-1]={delete:f.delete+d.delete},this;if("number"==typeof f.delete&&null!=d.insert&&"object"!=typeof(f=this.ops[(u-=1)-1]))return this.ops.unshift(d),this;if(L(d.attributes,f.attributes)){if("string"==typeof d.insert&&"string"==typeof f.insert)return this.ops[u-1]={insert:f.insert+d.insert},"object"==typeof d.attributes&&(this.ops[u-1].attributes=d.attributes),this;if("number"==typeof d.retain&&"number"==typeof f.retain)return this.ops[u-1]={retain:f.retain+d.retain},"object"==typeof d.attributes&&(this.ops[u-1].attributes=d.attributes),this}}return u===this.ops.length?this.ops.push(d):this.ops.splice(u,0,d),this},x.prototype.chop=function(){var d=this.ops[this.ops.length-1];return d&&d.retain&&!d.attributes&&this.ops.pop(),this},x.prototype.filter=function(d){return this.ops.filter(d)},x.prototype.forEach=function(d){this.ops.forEach(d)},x.prototype.map=function(d){return this.ops.map(d)},x.prototype.partition=function(d){var u=[],f=[];return this.forEach(function(v){(d(v)?u:f).push(v)}),[u,f]},x.prototype.reduce=function(d,u){return this.ops.reduce(d,u)},x.prototype.changeLength=function(){return this.reduce(function(d,u){return u.insert?d+A.length(u):u.delete?d-u.delete:d},0)},x.prototype.length=function(){return this.reduce(function(d,u){return d+A.length(u)},0)},x.prototype.slice=function(d,u){d=d||0,"number"!=typeof u&&(u=1/0);for(var f=[],v=A.iterator(this.ops),y=0;y0&&f.next(y.retain-p)}for(var h=new x(v);u.hasNext()||f.hasNext();)if("insert"===f.peekType())h.push(f.next());else if("delete"===u.peekType())h.push(u.next());else{var g=Math.min(u.peekLength(),f.peekLength()),w=u.next(g),m=f.next(g);if("number"==typeof m.retain){var _={};"number"==typeof w.retain?_.retain=g:_.insert=w.insert;var D=A.attributes.compose(w.attributes,m.attributes,"number"==typeof w.retain);if(D&&(_.attributes=D),h.push(_),!f.hasNext()&&L(h.ops[h.ops.length-1],_)){var k=new x(u.rest());return h.concat(k).chop()}}else"number"==typeof m.delete&&"number"==typeof w.retain&&h.push(m)}return h.chop()},x.prototype.concat=function(d){var u=new x(this.ops.slice());return d.ops.length>0&&(u.push(d.ops[0]),u.ops=u.ops.concat(d.ops.slice(1))),u},x.prototype.diff=function(d,u){if(this.ops===d.ops)return new x;var f=[this,d].map(function(g){return g.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:S;throw new Error("diff() called "+(g===d?"on":"with")+" non-document")}).join("")}),v=new x,y=P(f[0],f[1],u),p=A.iterator(this.ops),h=A.iterator(d.ops);return y.forEach(function(g){for(var w=g[1].length;w>0;){var m=0;switch(g[0]){case P.INSERT:m=Math.min(h.peekLength(),w),v.push(h.next(m));break;case P.DELETE:m=Math.min(w,p.peekLength()),p.next(m),v.delete(m);break;case P.EQUAL:m=Math.min(p.peekLength(),h.peekLength(),w);var _=p.next(m),D=h.next(m);L(_.insert,D.insert)?v.retain(m,A.attributes.diff(_.attributes,D.attributes)):v.push(D).delete(m)}w-=m}}),v.chop()},x.prototype.eachLine=function(d,u){u=u||"\n";for(var f=A.iterator(this.ops),v=new x,y=0;f.hasNext();){if("insert"!==f.peekType())return;var p=f.peek(),h=A.length(p)-f.peekLength(),g="string"==typeof p.insert?p.insert.indexOf(u,h)-h:-1;if(g<0)v.push(f.next());else if(g>0)v.push(f.next(g));else{if(!1===d(v,f.next(1).attributes||{},y))return;y+=1,v=new x}}v.length()>0&&d(v,{},y)},x.prototype.transform=function(d,u){if(u=!!u,"number"==typeof d)return this.transformPosition(d,u);for(var f=A.iterator(this.ops),v=A.iterator(d.ops),y=new x;f.hasNext()||v.hasNext();)if("insert"!==f.peekType()||!u&&"insert"===v.peekType())if("insert"===v.peekType())y.push(v.next());else{var p=Math.min(f.peekLength(),v.peekLength()),h=f.next(p),g=v.next(p);if(h.delete)continue;g.delete?y.push(g):y.retain(p,A.attributes.transform(h.attributes,g.attributes,u))}else y.retain(A.length(f.next()));return y.chop()},x.prototype.transformPosition=function(d,u){u=!!u;for(var f=A.iterator(this.ops),v=0;f.hasNext()&&v<=d;){var y=f.peekLength(),p=f.peekType();f.next(),"delete"!==p?("insert"===p&&(v"u"||E.call(f,p)},x=function(f,v){L&&"__proto__"===v.name?L(f,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):f[v.name]=v.newValue},d=function(f,v){if("__proto__"===v){if(!E.call(f,v))return;if(F)return F(f,v).value}return f[v]};J.exports=function u(){var f,v,y,p,h,g,w=arguments[0],m=1,_=arguments.length,D=!1;for("boolean"==typeof w&&(D=w,w=arguments[1]||{},m=2),(null==w||"object"!=typeof w&&"function"!=typeof w)&&(w={});m<_;++m)if(null!=(f=arguments[m]))for(v in f)y=d(w,v),w!==(p=d(f,v))&&(D&&p&&(S(p)||(h=A(p)))?(h?(h=!1,g=y&&A(y)?y:[]):g=y&&S(y)?y:{},x(w,{name:v,newValue:u(D,g,p)})):typeof p<"u"&&x(w,{name:v,newValue:p}));return w}},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.BlockEmbed=M.bubbleFormats=void 0;var P=function(){function I(R,V){for(var $=0;$0&&($1&&void 0!==arguments[1]&&arguments[1];if(U&&(0===$||$>=this.length()-1)){var Z=this.clone();return 0===$?(this.parent.insertBefore(Z,this),this):(this.parent.insertBefore(Z,this.next),Z)}var X=L(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,$,U);return this.cache={},X}}]),R}(u.default.Block);function T(I){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==I||("function"==typeof I.formats&&(R=(0,A.default)(R,I.formats())),null==I.parent||"scroll"==I.parent.blotName||I.parent.statics.scope!==I.statics.scope)?R:T(I.parent,R)}N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[p.default,u.default.Embed,g.default],M.bubbleFormats=T,M.BlockEmbed=O,M.default=N},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.overload=M.expandConfig=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ee){return typeof ee}:function(ee){return ee&&"function"==typeof Symbol&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},L=function(W,z){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function ee(W,z){var G=[],q=!0,Y=!1,K=void 0;try{for(var te,H=W[Symbol.iterator]();!(q=(te=H.next()).done)&&(G.push(te.value),!z||G.length!==z);q=!0);}catch(oe){Y=!0,K=oe}finally{try{!q&&H.return&&H.return()}finally{if(Y)throw K}}return G}(W,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")},F=function(){function ee(W,z){for(var G=0;G1&&void 0!==arguments[1]?arguments[1]:{};if(R(this,ee),this.options=U(W,G),this.container=this.options.container,null==this.container)return V.error("Invalid Quill container",W);this.options.debug&&ee.debug(this.options.debug);var q=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=h.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new d.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,function(K){K===f.default.events.TEXT_CHANGE&&z.root.classList.toggle("ql-blank",z.editor.isBlank())}),this.emitter.on(f.default.events.SCROLL_UPDATE,function(K,H){var te=z.selection.lastRange,oe=te&&0===te.length?te.index:void 0;Z.call(z,function(){return z.editor.update(null,H,oe)},K)});var Y=this.clipboard.convert("
"+q+"


");this.setContents(Y),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return F(ee,null,[{key:"debug",value:function(z){!0===z&&(z="log"),k.default.level(z)}},{key:"find",value:function(z){return z.__quill||h.default.find(z)}},{key:"import",value:function(z){return null==this.imports[z]&&V.error("Cannot import "+z+". Are you sure it was registered?"),this.imports[z]}},{key:"register",value:function(z,G){var q=this,Y=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof z){var K=z.attrName||z.blotName;"string"==typeof K?this.register("formats/"+K,z,G):Object.keys(z).forEach(function(H){q.register(H,z[H],G)})}else null!=this.imports[z]&&!Y&&V.warn("Overwriting "+z+" with",G),this.imports[z]=G,(z.startsWith("blots/")||z.startsWith("formats/"))&&"abstract"!==G.blotName?h.default.register(G):z.startsWith("modules")&&"function"==typeof G.register&&G.register()}}]),F(ee,[{key:"addContainer",value:function(z){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof z){var q=z;(z=document.createElement("div")).classList.add(q)}return this.container.insertBefore(z,G),z}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(z,G,q){var Y=this,K=X(z,G,q),H=L(K,4);return Z.call(this,function(){return Y.editor.deleteText(z,G)},q=H[3],z=H[0],-1*(G=H[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var z=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(z),this.container.classList.toggle("ql-disabled",!z)}},{key:"focus",value:function(){var z=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=z,this.scrollIntoView()}},{key:"format",value:function(z,G){var q=this;return Z.call(this,function(){var K=q.getSelection(!0),H=new S.default;if(null==K)return H;if(h.default.query(z,h.default.Scope.BLOCK))H=q.editor.formatLine(K.index,K.length,I({},z,G));else{if(0===K.length)return q.selection.format(z,G),H;H=q.editor.formatText(K.index,K.length,I({},z,G))}return q.setSelection(K,f.default.sources.SILENT),H},arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API)}},{key:"formatLine",value:function(z,G,q,Y,K){var te,H=this,oe=X(z,G,q,Y,K),ae=L(oe,4);return G=ae[1],te=ae[2],Z.call(this,function(){return H.editor.formatLine(z,G,te)},K=ae[3],z=ae[0],0)}},{key:"formatText",value:function(z,G,q,Y,K){var te,H=this,oe=X(z,G,q,Y,K),ae=L(oe,4);return G=ae[1],te=ae[2],Z.call(this,function(){return H.editor.formatText(z,G,te)},K=ae[3],z=ae[0],0)}},{key:"getBounds",value:function(z){var q=void 0;q="number"==typeof z?this.selection.getBounds(z,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(z.index,z.length);var Y=this.container.getBoundingClientRect();return{bottom:q.bottom-Y.top,height:q.height,left:q.left-Y.left,right:q.right-Y.left,top:q.top-Y.top,width:q.width}}},{key:"getContents",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-z,q=X(z,G),Y=L(q,2);return this.editor.getContents(z=Y[0],G=Y[1])}},{key:"getFormat",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof z?this.editor.getFormat(z,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(z.index,z.length)}},{key:"getIndex",value:function(z){return z.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(z){return this.scroll.leaf(z)}},{key:"getLine",value:function(z){return this.scroll.line(z)}},{key:"getLines",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof z?this.scroll.lines(z.index,z.length):this.scroll.lines(z,G)}},{key:"getModule",value:function(z){return this.theme.modules[z]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-z,q=X(z,G),Y=L(q,2);return this.editor.getText(z=Y[0],G=Y[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(z,G,q){var Y=this;return Z.call(this,function(){return Y.editor.insertEmbed(z,G,q)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:ee.sources.API,z)}},{key:"insertText",value:function(z,G,q,Y,K){var te,H=this,oe=X(z,0,q,Y,K),ae=L(oe,4);return te=ae[2],Z.call(this,function(){return H.editor.insertText(z,G,te)},K=ae[3],z=ae[0],G.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(z,G,q){this.clipboard.dangerouslyPasteHTML(z,G,q)}},{key:"removeFormat",value:function(z,G,q){var Y=this,K=X(z,G,q),H=L(K,4);return G=H[1],Z.call(this,function(){return Y.editor.removeFormat(z,G)},q=H[3],z=H[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(z){var G=this;return Z.call(this,function(){z=new S.default(z);var Y=G.getLength(),K=G.editor.deleteText(0,Y),H=G.editor.applyDelta(z),te=H.ops[H.ops.length-1];return null!=te&&"string"==typeof te.insert&&"\n"===te.insert[te.insert.length-1]&&(G.editor.deleteText(G.getLength()-1,1),H.delete(1)),K.compose(H)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API)}},{key:"setSelection",value:function(z,G,q){if(null==z)this.selection.setRange(null,G||ee.sources.API);else{var Y=X(z,G,q),K=L(Y,4);q=K[3],this.selection.setRange(new g.Range(z=K[0],G=K[1]),q),q!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(z){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,q=(new S.default).insert(z);return this.setContents(q,G)}},{key:"update",value:function(){var z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,G=this.scroll.update(z);return this.selection.update(z),G}},{key:"updateContents",value:function(z){var G=this,q=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return Z.call(this,function(){return z=new S.default(z),G.editor.applyDelta(z,q)},q,!0)}}]),ee}();function U(ee,W){if((W=(0,_.default)(!0,{container:ee,modules:{clipboard:!0,keyboard:!0,history:!0}},W)).theme&&W.theme!==$.DEFAULTS.theme){if(W.theme=$.import("themes/"+W.theme),null==W.theme)throw new Error("Invalid theme "+W.theme+". Did you register it?")}else W.theme=N.default;var z=(0,_.default)(!0,{},W.theme.DEFAULTS);[z,W].forEach(function(Y){Y.modules=Y.modules||{},Object.keys(Y.modules).forEach(function(K){!0===Y.modules[K]&&(Y.modules[K]={})})});var q=Object.keys(z.modules).concat(Object.keys(W.modules)).reduce(function(Y,K){var H=$.import("modules/"+K);return null==H?V.error("Cannot load "+K+" module. Are you sure you registered it?"):Y[K]=H.DEFAULTS||{},Y},{});return null!=W.modules&&W.modules.toolbar&&W.modules.toolbar.constructor!==Object&&(W.modules.toolbar={container:W.modules.toolbar}),W=(0,_.default)(!0,{},$.DEFAULTS,{modules:q},z,W),["bounds","container","scrollingContainer"].forEach(function(Y){"string"==typeof W[Y]&&(W[Y]=document.querySelector(W[Y]))}),W.modules=Object.keys(W.modules).reduce(function(Y,K){return W.modules[K]&&(Y[K]=W.modules[K]),Y},{}),W}function Z(ee,W,z,G){if(this.options.strict&&!this.isEnabled()&&W===f.default.sources.USER)return new S.default;var q=null==z?null:this.getSelection(),Y=this.editor.delta,K=ee();if(null!=q&&(!0===z&&(z=q.index),null==G?q=re(q,K,W):0!==G&&(q=re(q,z,G,W)),this.setSelection(q,f.default.sources.SILENT)),K.length()>0){var H,oe,te=[f.default.events.TEXT_CHANGE,K,Y,W];(H=this.emitter).emit.apply(H,[f.default.events.EDITOR_CHANGE].concat(te)),W!==f.default.sources.SILENT&&(oe=this.emitter).emit.apply(oe,te)}return K}function X(ee,W,z,G,q){var Y={};return"number"==typeof ee.index&&"number"==typeof ee.length?"number"!=typeof W?(q=G,G=z,z=W,W=ee.length,ee=ee.index):(W=ee.length,ee=ee.index):"number"!=typeof W&&(q=G,G=z,z=W,W=0),"object"===(typeof z>"u"?"undefined":P(z))?(Y=z,q=G):"string"==typeof z&&(null!=G?Y[z]=G:q=z),[ee,W,Y,q=q||f.default.sources.API]}function re(ee,W,z,G){if(null==ee)return null;var q=void 0,Y=void 0;if(W instanceof S.default){var K=[ee.index,ee.index+ee.length].map(function(ae){return W.transformPosition(ae,G!==f.default.sources.USER)}),H=L(K,2);q=H[0],Y=H[1]}else{var te=[ee.index,ee.index+ee.length].map(function(ae){return ae=0?ae+z:Math.max(W,ae+z)}),oe=L(te,2);q=oe[0],Y=oe[1]}return new g.Range(q,Y-q)}$.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},$.events=f.default.events,$.sources=f.default.sources,$.version="1.3.7",$.imports={delta:S.default,parchment:h.default,"core/module":y.default,"core/theme":N.default},M.expandConfig=U,M.overload=X,M.default=$},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function p(h,g){for(var w=0;w0){var m=this.parent.isolate(this.offset(),this.length());this.moveChildren(m),m.wrap(this)}}}],[{key:"compare",value:function(w,m){var _=h.order.indexOf(w),D=h.order.indexOf(m);return _>=0||D>=0?_-D:w===m?0:w1?D-1:0),O=1;O1&&void 0!==arguments[1]?arguments[1]:{};P(this,F),this.quill=A,this.options=S};L.DEFAULTS={},M.default=L},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=["error","warn","log","info"],L="warn";function F(S){if(P.indexOf(S)<=P.indexOf(L)){for(var x,d=arguments.length,u=Array(d>1?d-1:0),f=1;f=0;y--)if(h[y]!=g[y])return!1;for(y=h.length-1;y>=0;y--)if(!A(u[p=h[y]],f[p],v))return!1;return typeof u==typeof f}(u,f,v))};function S(u){return null==u}function x(u){return!(!u||"object"!=typeof u||"number"!=typeof u.length||"function"!=typeof u.copy||"function"!=typeof u.slice||u.length>0&&"number"!=typeof u[0])}},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=E(1),L=function(){function F(A,S,x){void 0===x&&(x={}),this.attrName=A,this.keyName=S,this.scope=null!=x.scope?x.scope&P.Scope.LEVEL|P.Scope.TYPE&P.Scope.ATTRIBUTE:P.Scope.ATTRIBUTE,null!=x.whitelist&&(this.whitelist=x.whitelist)}return F.keys=function(A){return[].map.call(A.attributes,function(S){return S.name})},F.prototype.add=function(A,S){return!!this.canAdd(A,S)&&(A.setAttribute(this.keyName,S),!0)},F.prototype.canAdd=function(A,S){return null!=P.query(A,P.Scope.BLOT&(this.scope|P.Scope.TYPE))&&(null==this.whitelist||("string"==typeof S?this.whitelist.indexOf(S.replace(/["']/g,""))>-1:this.whitelist.indexOf(S)>-1))},F.prototype.remove=function(A){A.removeAttribute(this.keyName)},F.prototype.value=function(A){var S=A.getAttribute(this.keyName);return this.canAdd(A,S)&&S?S:""},F}();M.default=L},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.Code=void 0;var P=function(N,T){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function O(N,T){var I=[],R=!0,V=!1,$=void 0;try{for(var Z,U=N[Symbol.iterator]();!(R=(Z=U.next()).done)&&(I.push(Z.value),!T||I.length!==T);R=!0);}catch(X){V=!0,$=X}finally{try{!R&&U.return&&U.return()}finally{if(V)throw $}}return I}(N,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(){function O(N,T){for(var I=0;I=I+R)){var Z=this.newlineIndex(I,!0)+1,X=U-Z+1,re=this.isolate(Z,X),ee=re.next;re.format(V,$),ee instanceof N&&ee.formatAt(0,I-Z+R-X,V,$)}}}},{key:"insertAt",value:function(I,R,V){if(null==V){var $=this.descendant(h.default,I),U=P($,2);U[0].insertAt(U[1],R)}}},{key:"length",value:function(){var I=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?I:I+1}},{key:"newlineIndex",value:function(I){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,I).lastIndexOf("\n");var V=this.domNode.textContent.slice(I).indexOf("\n");return V>-1?I+V:-1}},{key:"optimize",value:function(I){this.domNode.textContent.endsWith("\n")||this.appendChild(d.default.create("text","\n")),F(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,I);var R=this.next;null!=R&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(I),R.moveChildren(this),R.remove())}},{key:"replace",value:function(I){F(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,I),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var V=d.default.find(R);null==V?R.parentNode.removeChild(R):V instanceof d.default.Embed?V.remove():V.unwrap()})}}],[{key:"create",value:function(I){var R=F(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,I);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),N}(f.default);k.blotName="code-block",k.tagName="PRE",k.TAB=" ",M.Code=D,M.default=k},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ee){return typeof ee}:function(ee){return ee&&"function"==typeof Symbol&&ee.constructor===Symbol&&ee!==Symbol.prototype?"symbol":typeof ee},L=function(W,z){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function ee(W,z){var G=[],q=!0,Y=!1,K=void 0;try{for(var te,H=W[Symbol.iterator]();!(q=(te=H.next()).done)&&(G.push(te.value),!z||G.length!==z);q=!0);}catch(oe){Y=!0,K=oe}finally{try{!q&&H.return&&H.return()}finally{if(Y)throw K}}return G}(W,z);throw new TypeError("Invalid attempt to destructure non-iterable instance")},F=function(){function ee(W,z){for(var G=0;G=Y&&!ae.endsWith("\n")&&(q=!0),G.scroll.insertAt(K,ae);var he=G.scroll.line(K),Ee=L(he,2),Be=Ee[0],Je=Ee[1],it=(0,I.default)({},(0,g.bubbleFormats)(Be));if(Be instanceof w.default){var st=Be.descendant(f.default.Leaf,Je),It=L(st,1);it=(0,I.default)(it,(0,g.bubbleFormats)(It[0]))}oe=d.default.attributes.diff(it,oe)||{}}else if("object"===P(H.insert)){var ge=Object.keys(H.insert)[0];if(null==ge)return K;G.scroll.insertAt(K,ge,H.insert[ge])}Y+=te}return Object.keys(oe).forEach(function(ve){G.scroll.formatAt(K,te,ve,oe[ve])}),K+te},0),z.reduce(function(K,H){return"number"==typeof H.delete?(G.scroll.deleteAt(K,H.delete),K):K+(H.retain||H.insert.length||1)},0),this.scroll.batchEnd(),this.update(z)}},{key:"deleteText",value:function(z,G){return this.scroll.deleteAt(z,G),this.update((new S.default).retain(z).delete(G))}},{key:"formatLine",value:function(z,G){var q=this,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(Y).forEach(function(K){if(null==q.scroll.whitelist||q.scroll.whitelist[K]){var H=q.scroll.lines(z,Math.max(G,1)),te=G;H.forEach(function(oe){var ae=oe.length();if(oe instanceof y.default){var he=z-oe.offset(q.scroll),Ee=oe.newlineIndex(he+te)-he+1;oe.formatAt(he,Ee,K,Y[K])}else oe.format(K,Y[K]);te-=ae})}}),this.scroll.optimize(),this.update((new S.default).retain(z).retain(G,(0,k.default)(Y)))}},{key:"formatText",value:function(z,G){var q=this,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(Y).forEach(function(K){q.scroll.formatAt(z,G,K,Y[K])}),this.update((new S.default).retain(z).retain(G,(0,k.default)(Y)))}},{key:"getContents",value:function(z,G){return this.delta.slice(z,z+G)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(z,G){return z.concat(G.delta())},new S.default)}},{key:"getFormat",value:function(z){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,q=[],Y=[];0===G?this.scroll.path(z).forEach(function(H){var oe=L(H,1)[0];oe instanceof w.default?q.push(oe):oe instanceof f.default.Leaf&&Y.push(oe)}):(q=this.scroll.lines(z,G),Y=this.scroll.descendants(f.default.Leaf,z,G));var K=[q,Y].map(function(H){if(0===H.length)return{};for(var te=(0,g.bubbleFormats)(H.shift());Object.keys(te).length>0;){var oe=H.shift();if(null==oe)return te;te=X((0,g.bubbleFormats)(oe),te)}return te});return I.default.apply(I.default,K)}},{key:"getText",value:function(z,G){return this.getContents(z,G).filter(function(q){return"string"==typeof q.insert}).map(function(q){return q.insert}).join("")}},{key:"insertEmbed",value:function(z,G,q){return this.scroll.insertAt(z,G,q),this.update((new S.default).retain(z).insert(function V(ee,W,z){return W in ee?Object.defineProperty(ee,W,{value:z,enumerable:!0,configurable:!0,writable:!0}):ee[W]=z,ee}({},G,q)))}},{key:"insertText",value:function(z,G){var q=this,Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return G=G.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(z,G),Object.keys(Y).forEach(function(K){q.scroll.formatAt(z,G.length,K,Y[K])}),this.update((new S.default).retain(z).insert(G,(0,k.default)(Y)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var z=this.scroll.children.head;return!(z.statics.blotName!==w.default.blotName||z.children.length>1)&&z.children.head instanceof _.default}},{key:"removeFormat",value:function(z,G){var q=this.getText(z,G),Y=this.scroll.line(z+G),K=L(Y,2),H=K[0],te=K[1],oe=0,ae=new S.default;null!=H&&(oe=H instanceof y.default?H.newlineIndex(te)-te+1:H.length()-te,ae=H.delta().slice(te,te+oe-1).insert("\n"));var Ee=this.getContents(z,G+oe).diff((new S.default).insert(q).concat(ae)),Be=(new S.default).retain(z).concat(Ee);return this.applyDelta(Be)}},{key:"update",value:function(z){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Y=this.delta;if(1===G.length&&"characterData"===G[0].type&&G[0].target.data.match(U)&&f.default.find(G[0].target)){var K=f.default.find(G[0].target),H=(0,g.bubbleFormats)(K),te=K.offset(this.scroll),oe=G[0].oldValue.replace(h.default.CONTENTS,""),ae=(new S.default).insert(oe),he=(new S.default).insert(K.value());z=(new S.default).retain(te).concat(ae.diff(he,q)).reduce(function(Be,Je){return Je.insert?Be.insert(Je.insert,H):Be.push(Je)},new S.default),this.delta=Y.compose(z)}else this.delta=this.getDelta(),(!z||!(0,N.default)(Y.compose(z),this.delta))&&(z=Y.diff(this.delta,q));return z}}]),ee}();function X(ee,W){return Object.keys(W).reduce(function(z,G){return null==ee[G]||(W[G]===ee[G]?z[G]=W[G]:Array.isArray(W[G])?W[G].indexOf(ee[G])<0&&(z[G]=W[G].concat([ee[G]])):z[G]=[W[G],ee[G]]),z},{})}M.default=Z},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.Range=void 0;var P=function(N,T){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function O(N,T){var I=[],R=!0,V=!1,$=void 0;try{for(var Z,U=N[Symbol.iterator]();!(R=(Z=U.next()).done)&&(I.push(Z.value),!T||I.length!==T);R=!0);}catch(X){V=!0,$=X}finally{try{!R&&U.return&&U.return()}finally{if(V)throw $}}return I}(N,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function(){function O(N,T){for(var I=0;I1&&void 0!==arguments[1]?arguments[1]:0;w(this,O),this.index=N,this.length=T},D=function(){function O(N,T){var I=this;w(this,O),this.emitter=T,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=A.default.create("cursor",this),this.lastRange=this.savedRange=new _(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){I.mouseDown||setTimeout(I.update.bind(I,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(R,V){R===v.default.events.TEXT_CHANGE&&V.length()>0&&I.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(I.hasFocus()){var R=I.getNativeRange();null!=R&&R.start.node!==I.cursor.textNode&&I.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{I.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(R,V){if(V.range){var $=V.range;I.setNativeRange($.startNode,$.startOffset,$.endNode,$.endOffset)}}),this.update(v.default.sources.SILENT)}return L(O,[{key:"handleComposition",value:function(){var T=this;this.root.addEventListener("compositionstart",function(){T.composing=!0}),this.root.addEventListener("compositionend",function(){if(T.composing=!1,T.cursor.parent){var I=T.cursor.restore();if(!I)return;setTimeout(function(){T.setNativeRange(I.startNode,I.startOffset,I.endNode,I.endOffset)},1)}})}},{key:"handleDragging",value:function(){var T=this;this.emitter.listenDOM("mousedown",document.body,function(){T.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){T.mouseDown=!1,T.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(T,I){if(null==this.scroll.whitelist||this.scroll.whitelist[T]){this.scroll.update();var R=this.getNativeRange();if(null!=R&&R.native.collapsed&&!A.default.query(T,A.default.Scope.BLOCK)){if(R.start.node!==this.cursor.textNode){var V=A.default.find(R.start.node,!1);if(null==V)return;if(V instanceof A.default.Leaf){var $=V.split(R.start.offset);V.parent.insertBefore(this.cursor,$)}else V.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(T,I),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(T){var I=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,R=this.scroll.length();T=Math.min(T,R-1),I=Math.min(T+I,R-1)-T;var V=void 0,$=this.scroll.leaf(T),U=P($,2),Z=U[0],X=U[1];if(null==Z)return null;var re=Z.position(X,!0),ee=P(re,2);V=ee[0],X=ee[1];var W=document.createRange();if(I>0){W.setStart(V,X);var z=this.scroll.leaf(T+I),G=P(z,2);if(null==(Z=G[0]))return null;var q=Z.position(X=G[1],!0),Y=P(q,2);return W.setEnd(V=Y[0],X=Y[1]),W.getBoundingClientRect()}var K="left",H=void 0;return V instanceof Text?(X0&&(K="right")),{bottom:H.top+H.height,height:H.height,left:H[K],right:H[K],top:H.top,width:0}}},{key:"getNativeRange",value:function(){var T=document.getSelection();if(null==T||T.rangeCount<=0)return null;var I=T.getRangeAt(0);if(null==I)return null;var R=this.normalizeNative(I);return m.info("getNativeRange",R),R}},{key:"getRange",value:function(){var T=this.getNativeRange();return null==T?[null,null]:[this.normalizedToRange(T),T]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(T){var I=this,R=[[T.start.node,T.start.offset]];T.native.collapsed||R.push([T.end.node,T.end.offset]);var V=R.map(function(Z){var X=P(Z,2),re=X[0],ee=X[1],W=A.default.find(re,!0),z=W.offset(I.scroll);return 0===ee?z:W instanceof A.default.Container?z+W.length():z+W.index(re,ee)}),$=Math.min(Math.max.apply(Math,g(V)),this.scroll.length()-1),U=Math.min.apply(Math,[$].concat(g(V)));return new _(U,$-U)}},{key:"normalizeNative",value:function(T){if(!k(this.root,T.startContainer)||!T.collapsed&&!k(this.root,T.endContainer))return null;var I={start:{node:T.startContainer,offset:T.startOffset},end:{node:T.endContainer,offset:T.endOffset},native:T};return[I.start,I.end].forEach(function(R){for(var V=R.node,$=R.offset;!(V instanceof Text)&&V.childNodes.length>0;)if(V.childNodes.length>$)V=V.childNodes[$],$=0;else{if(V.childNodes.length!==$)break;$=(V=V.lastChild)instanceof Text?V.data.length:V.childNodes.length+1}R.node=V,R.offset=$}),I}},{key:"rangeToNative",value:function(T){var I=this,R=T.collapsed?[T.index]:[T.index,T.index+T.length],V=[],$=this.scroll.length();return R.forEach(function(U,Z){U=Math.min($-1,U);var re=I.scroll.leaf(U),ee=P(re,2),z=ee[1],G=ee[0].position(z,0!==Z),q=P(G,2);V.push(q[0],z=q[1])}),V.length<2&&(V=V.concat(V)),V}},{key:"scrollIntoView",value:function(T){var I=this.lastRange;if(null!=I){var R=this.getBounds(I.index,I.length);if(null!=R){var V=this.scroll.length()-1,$=this.scroll.line(Math.min(I.index,V)),Z=P($,1)[0],X=Z;if(I.length>0){var re=this.scroll.line(Math.min(I.index+I.length,V));X=P(re,1)[0]}if(null!=Z&&null!=X){var W=T.getBoundingClientRect();R.topW.bottom&&(T.scrollTop+=R.bottom-W.bottom)}}}}},{key:"setNativeRange",value:function(T,I){var R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T,V=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I,$=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",T,I,R,V),null==T||null!=this.root.parentNode&&null!=T.parentNode&&null!=R.parentNode){var U=document.getSelection();if(null!=U)if(null!=T){this.hasFocus()||this.root.focus();var Z=(this.getNativeRange()||{}).native;if(null==Z||$||T!==Z.startContainer||I!==Z.startOffset||R!==Z.endContainer||V!==Z.endOffset){"BR"==T.tagName&&(I=[].indexOf.call(T.parentNode.childNodes,T),T=T.parentNode),"BR"==R.tagName&&(V=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var X=document.createRange();X.setStart(T,I),X.setEnd(R,V),U.removeAllRanges(),U.addRange(X)}}else U.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(T){var I=arguments.length>1&&void 0!==arguments[1]&&arguments[1],R=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof I&&(R=I,I=!1),m.info("setRange",T),null!=T){var V=this.rangeToNative(T);this.setNativeRange.apply(this,g(V).concat([I]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var T=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,I=this.lastRange,R=this.getRange(),V=P(R,2),U=V[1];if(this.lastRange=V[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,u.default)(I,this.lastRange)){var Z;!this.composing&&null!=U&&U.native.collapsed&&U.start.node!==this.cursor.textNode&&this.cursor.restore();var re,X=[v.default.events.SELECTION_CHANGE,(0,x.default)(this.lastRange),(0,x.default)(I),T];(Z=this.emitter).emit.apply(Z,[v.default.events.EDITOR_CHANGE].concat(X)),T!==v.default.sources.SILENT&&(re=this.emitter).emit.apply(re,X)}}}]),O}();function k(O,N){return N instanceof Text&&(N=N.parentNode),O.contains(N)}M.Range=_,M.default=D},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function v(y,p){for(var h=0;h0&&(f+=1),[this.parent.domNode,f]},x.prototype.value=function(){var d;return(d={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,d},x.scope=F.Scope.INLINE_BLOT,x}(L.default);M.default=A},function(J,M,E){var P=E(11),L=E(3),F={attributes:{compose:function(S,x,d){"object"!=typeof S&&(S={}),"object"!=typeof x&&(x={});var u=L(!0,{},x);for(var f in d||(u=Object.keys(u).reduce(function(v,y){return null!=u[y]&&(v[y]=u[y]),v},{})),S)void 0!==S[f]&&void 0===x[f]&&(u[f]=S[f]);return Object.keys(u).length>0?u:void 0},diff:function(S,x){"object"!=typeof S&&(S={}),"object"!=typeof x&&(x={});var d=Object.keys(S).concat(Object.keys(x)).reduce(function(u,f){return P(S[f],x[f])||(u[f]=void 0===x[f]?null:x[f]),u},{});return Object.keys(d).length>0?d:void 0},transform:function(S,x,d){if("object"!=typeof S)return x;if("object"==typeof x){if(!d)return x;var u=Object.keys(x).reduce(function(f,v){return void 0===S[v]&&(f[v]=x[v]),f},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(S){return new A(S)},length:function(S){return"number"==typeof S.delete?S.delete:"number"==typeof S.retain?S.retain:"string"==typeof S.insert?S.insert.length:1}};function A(S){this.ops=S,this.index=0,this.offset=0}A.prototype.hasNext=function(){return this.peekLength()<1/0},A.prototype.next=function(S){S||(S=1/0);var x=this.ops[this.index];if(x){var d=this.offset,u=F.length(x);if(S>=u-d?(S=u-d,this.index+=1,this.offset=0):this.offset+=S,"number"==typeof x.delete)return{delete:S};var f={};return x.attributes&&(f.attributes=x.attributes),"number"==typeof x.retain?f.retain=S:f.insert="string"==typeof x.insert?x.insert.substr(d,S):x.insert,f}return{retain:1/0}},A.prototype.peek=function(){return this.ops[this.index]},A.prototype.peekLength=function(){return this.ops[this.index]?F.length(this.ops[this.index])-this.offset:1/0},A.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},A.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var S=this.offset,x=this.index,d=this.next(),u=this.ops.slice(this.index);return this.offset=S,this.index=x,[d].concat(u)}return[]},J.exports=F},function(J,M){var E=function(){"use strict";function P(y,p){return null!=p&&y instanceof p}var L,F,A;try{L=Map}catch{L=function(){}}try{F=Set}catch{F=function(){}}try{A=Promise}catch{A=function(){}}function S(y,p,h,g,w){"object"==typeof p&&(h=p.depth,g=p.prototype,w=p.includeNonEnumerable,p=p.circular);var m=[],_=[],D=typeof Buffer<"u";return typeof p>"u"&&(p=!0),typeof h>"u"&&(h=1/0),function k(O,N){if(null===O)return null;if(0===N)return O;var T,I;if("object"!=typeof O)return O;if(P(O,L))T=new L;else if(P(O,F))T=new F;else if(P(O,A))T=new A(function(W,z){O.then(function(G){W(k(G,N-1))},function(G){z(k(G,N-1))})});else if(S.__isArray(O))T=[];else if(S.__isRegExp(O))T=new RegExp(O.source,v(O)),O.lastIndex&&(T.lastIndex=O.lastIndex);else if(S.__isDate(O))T=new Date(O.getTime());else{if(D&&Buffer.isBuffer(O))return T=Buffer.allocUnsafe?Buffer.allocUnsafe(O.length):new Buffer(O.length),O.copy(T),T;P(O,Error)?T=Object.create(O):typeof g>"u"?(I=Object.getPrototypeOf(O),T=Object.create(I)):(T=Object.create(g),I=g)}if(p){var R=m.indexOf(O);if(-1!=R)return _[R];m.push(O),_.push(T)}for(var V in P(O,L)&&O.forEach(function(W,z){var G=k(z,N-1),q=k(W,N-1);T.set(G,q)}),P(O,F)&&O.forEach(function(W){var z=k(W,N-1);T.add(z)}),O){var $;I&&($=Object.getOwnPropertyDescriptor(I,V)),(!$||null!=$.set)&&(T[V]=k(O[V],N-1))}if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(O);for(V=0;V0){if(X instanceof u.BlockEmbed||z instanceof u.BlockEmbed)return void this.optimize();if(X instanceof h.default){var G=X.newlineIndex(X.length(),!0);if(G>-1&&(X=X.split(G+1))===z)return void this.optimize()}else if(z instanceof h.default){var q=z.newlineIndex(0);q>-1&&z.split(q+1)}X.moveChildren(z,z.children.head instanceof y.default?null:z.children.head),X.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(V,$,U,Z){null!=this.whitelist&&!this.whitelist[U]||(F(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"formatAt",this).call(this,V,$,U,Z),this.optimize())}},{key:"insertAt",value:function(V,$,U){if(null==U||null==this.whitelist||this.whitelist[$]){if(V>=this.length())if(null==U||null==S.default.query($,S.default.Scope.BLOCK)){var Z=S.default.create(this.statics.defaultChild);this.appendChild(Z),null==U&&$.endsWith("\n")&&($=$.slice(0,-1)),Z.insertAt(0,$,U)}else{var X=S.default.create($,U);this.appendChild(X)}else F(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertAt",this).call(this,V,$,U);this.optimize()}}},{key:"insertBefore",value:function(V,$){if(V.statics.scope===S.default.Scope.INLINE_BLOT){var U=S.default.create(this.statics.defaultChild);U.appendChild(V),V=U}F(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"insertBefore",this).call(this,V,$)}},{key:"leaf",value:function(V){return this.path(V).pop()||[null,-1]}},{key:"line",value:function(V){return V===this.length()?this.line(V-1):this.descendant(O,V)}},{key:"lines",value:function(){return function Z(X,re,ee){var W=[],z=ee;return X.children.forEachAt(re,ee,function(G,q,Y){O(G)?W.push(G):G instanceof S.default.Container&&(W=W.concat(Z(G,q,z))),z-=Y}),W}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var V=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],$=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(F(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"optimize",this).call(this,V,$),V.length>0&&this.emitter.emit(d.default.events.SCROLL_OPTIMIZE,V,$))}},{key:"path",value:function(V){return F(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"path",this).call(this,V).slice(1)}},{key:"update",value:function(V){if(!0!==this.batch){var $=d.default.sources.USER;"string"==typeof V&&($=V),Array.isArray(V)||(V=this.observer.takeRecords()),V.length>0&&this.emitter.emit(d.default.events.SCROLL_BEFORE_UPDATE,$,V),F(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"update",this).call(this,V.concat([])),V.length>0&&this.emitter.emit(d.default.events.SCROLL_UPDATE,$,V)}}}]),I}(S.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[f.default,u.BlockEmbed,w.default],M.default=N},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.SHORTKEY=M.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(H){return typeof H}:function(H){return H&&"function"==typeof Symbol&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},L=function(te,oe){if(Array.isArray(te))return te;if(Symbol.iterator in Object(te))return function H(te,oe){var ae=[],he=!0,Ee=!1,Be=void 0;try{for(var it,Je=te[Symbol.iterator]();!(he=(it=Je.next()).done)&&(ae.push(it.value),!oe||ae.length!==oe);he=!0);}catch(st){Ee=!0,Be=st}finally{try{!he&&Je.return&&Je.return()}finally{if(Ee)throw Be}}return ae}(te,oe);throw new TypeError("Invalid attempt to destructure non-iterable instance")},F=function(){function H(te,oe){for(var ae=0;ae1&&void 0!==arguments[1]?arguments[1]:{},Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Be=K(ae);if(null==Be||null==Be.key)return U.warn("Attempted to add invalid keyboard binding",Be);"function"==typeof he&&(he={handler:he}),"function"==typeof Ee&&(Ee={handler:Ee}),Be=(0,f.default)(Be,he,Ee),this.bindings[Be.key]=this.bindings[Be.key]||[],this.bindings[Be.key].push(Be)}},{key:"listen",value:function(){var ae=this;this.quill.root.addEventListener("keydown",function(he){if(!he.defaultPrevented){var Be=(ae.bindings[he.which||he.keyCode]||[]).filter(function(Kt){return te.match(he,Kt)});if(0!==Be.length){var Je=ae.quill.getSelection();if(null!=Je&&ae.quill.hasFocus()){var it=ae.quill.getLine(Je.index),st=L(it,2),It=st[0],$t=st[1],ge=ae.quill.getLeaf(Je.index),ve=L(ge,2),Ie=ve[0],ke=ve[1],De=0===Je.length?[Ie,ke]:ae.quill.getLeaf(Je.index+Je.length),Ue=L(De,2),$e=Ue[0],et=Ue[1],bn=Ie instanceof w.default.Text?Ie.value().slice(0,ke):"",ri=$e instanceof w.default.Text?$e.value().slice(et):"",pt={collapsed:0===Je.length,empty:0===Je.length&&It.length()<=1,format:ae.quill.getFormat(Je),offset:$t,prefix:bn,suffix:ri};Be.some(function(Kt){if(null!=Kt.collapsed&&Kt.collapsed!==pt.collapsed||null!=Kt.empty&&Kt.empty!==pt.empty||null!=Kt.offset&&Kt.offset!==pt.offset)return!1;if(Array.isArray(Kt.format)){if(Kt.format.every(function(oi){return null==pt.format[oi]}))return!1}else if("object"===P(Kt.format)&&!Object.keys(Kt.format).every(function(oi){return!0===Kt.format[oi]?null!=pt.format[oi]:!1===Kt.format[oi]?null==pt.format[oi]:(0,d.default)(Kt.format[oi],pt.format[oi])}))return!1;return!(null!=Kt.prefix&&!Kt.prefix.test(pt.prefix)||null!=Kt.suffix&&!Kt.suffix.test(pt.suffix))&&!0!==Kt.handler.call(ae,Je,pt)})&&he.preventDefault()}}}})}}]),te}(N.default);function re(H,te){var oe;return I(oe={key:H,shiftKey:te,altKey:null},H===X.keys.LEFT?"prefix":"suffix",/^$/),I(oe,"handler",function(Ee){var Be=Ee.index;H===X.keys.RIGHT&&(Be+=Ee.length+1);var Je=this.quill.getLeaf(Be);return!(L(Je,1)[0]instanceof w.default.Embed&&(H===X.keys.LEFT?te?this.quill.setSelection(Ee.index-1,Ee.length+1,_.default.sources.USER):this.quill.setSelection(Ee.index-1,_.default.sources.USER):te?this.quill.setSelection(Ee.index,Ee.length+1,_.default.sources.USER):this.quill.setSelection(Ee.index+Ee.length+1,_.default.sources.USER),1))}),oe}function ee(H,te){if(!(0===H.index||this.quill.getLength()<=1)){var oe=this.quill.getLine(H.index),he=L(oe,1)[0],Ee={};if(0===te.offset){var Be=this.quill.getLine(H.index-1),it=L(Be,1)[0];if(null!=it&&it.length()>1){var st=he.formats(),It=this.quill.getFormat(H.index-1,1);Ee=h.default.attributes.diff(st,It)||{}}}var $t=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(te.prefix)?2:1;this.quill.deleteText(H.index-$t,$t,_.default.sources.USER),Object.keys(Ee).length>0&&this.quill.formatLine(H.index-$t,$t,Ee,_.default.sources.USER),this.quill.focus()}}function W(H,te){var oe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(te.suffix)?2:1;if(!(H.index>=this.quill.getLength()-oe)){var ae={},he=0,Ee=this.quill.getLine(H.index),Je=L(Ee,1)[0];if(te.offset>=Je.length()-1){var it=this.quill.getLine(H.index+1),It=L(it,1)[0];if(It){var $t=Je.formats(),ge=this.quill.getFormat(H.index,1);ae=h.default.attributes.diff($t,ge)||{},he=It.length()}}this.quill.deleteText(H.index,oe,_.default.sources.USER),Object.keys(ae).length>0&&this.quill.formatLine(H.index+he-1,oe,ae,_.default.sources.USER)}}function z(H){var te=this.quill.getLines(H),oe={};if(te.length>1){var ae=te[0].formats(),he=te[te.length-1].formats();oe=h.default.attributes.diff(he,ae)||{}}this.quill.deleteText(H,_.default.sources.USER),Object.keys(oe).length>0&&this.quill.formatLine(H.index,1,oe,_.default.sources.USER),this.quill.setSelection(H.index,_.default.sources.SILENT),this.quill.focus()}function G(H,te){var oe=this;H.length>0&&this.quill.scroll.deleteAt(H.index,H.length);var ae=Object.keys(te.format).reduce(function(he,Ee){return w.default.query(Ee,w.default.Scope.BLOCK)&&!Array.isArray(te.format[Ee])&&(he[Ee]=te.format[Ee]),he},{});this.quill.insertText(H.index,"\n",ae,_.default.sources.USER),this.quill.setSelection(H.index+1,_.default.sources.SILENT),this.quill.focus(),Object.keys(te.format).forEach(function(he){null==ae[he]&&(Array.isArray(te.format[he])||"link"!==he&&oe.quill.format(he,te.format[he],_.default.sources.USER))})}function q(H){return{key:X.keys.TAB,shiftKey:!H,format:{"code-block":!0},handler:function(oe){var ae=w.default.query("code-block"),he=oe.index,Ee=oe.length,Be=this.quill.scroll.descendant(ae,he),Je=L(Be,2),it=Je[0],st=Je[1];if(null!=it){var It=this.quill.getIndex(it),$t=it.newlineIndex(st,!0)+1,ge=it.newlineIndex(It+st+Ee),ve=it.domNode.textContent.slice($t,ge).split("\n");st=0,ve.forEach(function(Ie,ke){H?(it.insertAt($t+st,ae.TAB),st+=ae.TAB.length,0===ke?he+=ae.TAB.length:Ee+=ae.TAB.length):Ie.startsWith(ae.TAB)&&(it.deleteAt($t+st,ae.TAB.length),st-=ae.TAB.length,0===ke?he-=ae.TAB.length:Ee-=ae.TAB.length),st+=Ie.length+1}),this.quill.update(_.default.sources.USER),this.quill.setSelection(he,Ee,_.default.sources.SILENT)}}}}function Y(H){return{key:H[0].toUpperCase(),shortKey:!0,handler:function(oe,ae){this.quill.format(H,!ae.format[H],_.default.sources.USER)}}}function K(H){if("string"==typeof H||"number"==typeof H)return K({key:H});if("object"===(typeof H>"u"?"undefined":P(H))&&(H=(0,S.default)(H,!1)),"string"==typeof H.key)if(null!=X.keys[H.key.toUpperCase()])H.key=X.keys[H.key.toUpperCase()];else{if(1!==H.key.length)return null;H.key=H.key.toUpperCase().charCodeAt(0)}return H.shortKey&&(H[Z]=H.shortKey,delete H.shortKey),H}X.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},X.DEFAULTS={bindings:{bold:Y("bold"),italic:Y("italic"),underline:Y("underline"),indent:{key:X.keys.TAB,format:["blockquote","indent","list"],handler:function(te,oe){if(oe.collapsed&&0!==oe.offset)return!0;this.quill.format("indent","+1",_.default.sources.USER)}},outdent:{key:X.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(te,oe){if(oe.collapsed&&0!==oe.offset)return!0;this.quill.format("indent","-1",_.default.sources.USER)}},"outdent backspace":{key:X.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(te,oe){null!=oe.format.indent?this.quill.format("indent","-1",_.default.sources.USER):null!=oe.format.list&&this.quill.format("list",!1,_.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:X.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(te){this.quill.deleteText(te.index-1,1,_.default.sources.USER)}},tab:{key:X.keys.TAB,handler:function(te){this.quill.history.cutoff();var oe=(new y.default).retain(te.index).delete(te.length).insert("\t");this.quill.updateContents(oe,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(te.index+1,_.default.sources.SILENT)}},"list empty enter":{key:X.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(te,oe){this.quill.format("list",!1,_.default.sources.USER),oe.format.indent&&this.quill.format("indent",!1,_.default.sources.USER)}},"checklist enter":{key:X.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(te){var oe=this.quill.getLine(te.index),ae=L(oe,2),he=ae[0],Ee=ae[1],Be=(0,f.default)({},he.formats(),{list:"checked"}),Je=(new y.default).retain(te.index).insert("\n",Be).retain(he.length()-Ee-1).retain(1,{list:"unchecked"});this.quill.updateContents(Je,_.default.sources.USER),this.quill.setSelection(te.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:X.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(te,oe){var ae=this.quill.getLine(te.index),he=L(ae,2),Ee=he[0],Be=he[1],Je=(new y.default).retain(te.index).insert("\n",oe.format).retain(Ee.length()-Be-1).retain(1,{header:null});this.quill.updateContents(Je,_.default.sources.USER),this.quill.setSelection(te.index+1,_.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(te,oe){var ae=oe.prefix.length,he=this.quill.getLine(te.index),Ee=L(he,2),Be=Ee[0],Je=Ee[1];if(Je>ae)return!0;var it=void 0;switch(oe.prefix.trim()){case"[]":case"[ ]":it="unchecked";break;case"[x]":it="checked";break;case"-":case"*":it="bullet";break;default:it="ordered"}this.quill.insertText(te.index," ",_.default.sources.USER),this.quill.history.cutoff();var st=(new y.default).retain(te.index-Je).delete(ae+1).retain(Be.length()-2-Je).retain(1,{list:it});this.quill.updateContents(st,_.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(te.index-ae,_.default.sources.SILENT)}},"code exit":{key:X.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(te){var oe=this.quill.getLine(te.index),ae=L(oe,2),he=ae[0],Ee=ae[1],Be=(new y.default).retain(te.index+he.length()-Ee-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Be,_.default.sources.USER)}},"embed left":re(X.keys.LEFT,!1),"embed left shift":re(X.keys.LEFT,!0),"embed right":re(X.keys.RIGHT,!1),"embed right shift":re(X.keys.RIGHT,!0)}},M.default=X,M.SHORTKEY=Z},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(g,w){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return function h(g,w){var m=[],_=!0,D=!1,k=void 0;try{for(var N,O=g[Symbol.iterator]();!(_=(N=O.next()).done)&&(m.push(N.value),!w||m.length!==w);_=!0);}catch(T){D=!0,k=T}finally{try{!_&&O.return&&O.return()}finally{if(D)throw k}}return m}(g,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function h(g,w,m){null===g&&(g=Function.prototype);var _=Object.getOwnPropertyDescriptor(g,w);if(void 0===_){var D=Object.getPrototypeOf(g);return null===D?void 0:h(D,w,m)}if("value"in _)return _.value;var k=_.get;return void 0===k?void 0:k.call(m)},F=function(){function h(g,w){for(var m=0;m-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],M.default=f,M.sanitize=v},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(p){return typeof p}:function(p){return p&&"function"==typeof Symbol&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},L=function(){function p(h,g){for(var w=0;w1&&void 0!==arguments[1]&&arguments[1],m=this.container.querySelector(".ql-selected");if(g!==m&&(m?.classList.remove("ql-selected"),null!=g&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":P(Event))){var _=document.createEvent("Event");_.initEvent("change",!0,!0),this.select.dispatchEvent(_)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var m=null!=g&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",m)}}]),p}();M.default=y},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var L=U(E(0)),A=U(E(5)),S=E(4),x=U(S),u=U(E(16)),v=U(E(25)),p=U(E(24)),g=U(E(35)),m=U(E(6)),D=U(E(22)),O=U(E(7)),T=U(E(55)),R=U(E(42)),$=U(E(23));function U(Z){return Z&&Z.__esModule?Z:{default:Z}}A.default.register({"blots/block":x.default,"blots/block/embed":S.BlockEmbed,"blots/break":u.default,"blots/container":v.default,"blots/cursor":p.default,"blots/embed":g.default,"blots/inline":m.default,"blots/scroll":D.default,"blots/text":O.default,"modules/clipboard":T.default,"modules/history":R.default,"modules/keyboard":$.default}),L.default.register(x.default,u.default,p.default,m.default,D.default,O.default),M.default=A.default},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=E(1),L=function(){function F(A){this.domNode=A,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(F.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),F.create=function(A){if(null==this.tagName)throw new P.ParchmentError("Blot definition missing tagName");var S;return Array.isArray(this.tagName)?("string"==typeof A&&(A=A.toUpperCase(),parseInt(A).toString()===A&&(A=parseInt(A))),S="number"==typeof A?document.createElement(this.tagName[A-1]):this.tagName.indexOf(A)>-1?document.createElement(A):document.createElement(this.tagName[0])):S=document.createElement(this.tagName),this.className&&S.classList.add(this.className),S},F.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},F.prototype.clone=function(){var A=this.domNode.cloneNode(!1);return P.create(A)},F.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},F.prototype.deleteAt=function(A,S){this.isolate(A,S).remove()},F.prototype.formatAt=function(A,S,x,d){var u=this.isolate(A,S);if(null!=P.query(x,P.Scope.BLOT)&&d)u.wrap(x,d);else if(null!=P.query(x,P.Scope.ATTRIBUTE)){var f=P.create(this.statics.scope);u.wrap(f),f.format(x,d)}},F.prototype.insertAt=function(A,S,x){var d=null==x?P.create("text",S):P.create(S,x),u=this.split(A);this.parent.insertBefore(d,u)},F.prototype.insertInto=function(A,S){void 0===S&&(S=null),null!=this.parent&&this.parent.children.remove(this);var x=null;A.children.insertBefore(this,S),null!=S&&(x=S.domNode),(this.domNode.parentNode!=A.domNode||this.domNode.nextSibling!=x)&&A.domNode.insertBefore(this.domNode,x),this.parent=A,this.attach()},F.prototype.isolate=function(A,S){var x=this.split(A);return x.split(S),x},F.prototype.length=function(){return 1},F.prototype.offset=function(A){return void 0===A&&(A=this.parent),null==this.parent||this==A?0:this.parent.children.offset(this)+this.parent.offset(A)},F.prototype.optimize=function(A){null!=this.domNode[P.DATA_KEY]&&delete this.domNode[P.DATA_KEY].mutations},F.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},F.prototype.replace=function(A){null!=A.parent&&(A.parent.insertBefore(this,A.next),A.remove())},F.prototype.replaceWith=function(A,S){var x="string"==typeof A?P.create(A,S):A;return x.replace(this),x},F.prototype.split=function(A,S){return 0===A?this:this.next},F.prototype.update=function(A,S){},F.prototype.wrap=function(A,S){var x="string"==typeof A?P.create(A,S):A;return null!=this.parent&&this.parent.insertBefore(x,this.next),x.appendChild(this),x},F.blotName="abstract",F}();M.default=L},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=E(12),L=E(32),F=E(33),A=E(1),S=function(){function x(d){this.attributes={},this.domNode=d,this.build()}return x.prototype.attribute=function(d,u){u?d.add(this.domNode,u)&&(null!=d.value(this.domNode)?this.attributes[d.attrName]=d:delete this.attributes[d.attrName]):(d.remove(this.domNode),delete this.attributes[d.attrName])},x.prototype.build=function(){var d=this;this.attributes={};var u=P.default.keys(this.domNode),f=L.default.keys(this.domNode),v=F.default.keys(this.domNode);u.concat(f).concat(v).forEach(function(y){var p=A.query(y,A.Scope.ATTRIBUTE);p instanceof P.default&&(d.attributes[p.attrName]=p)})},x.prototype.copy=function(d){var u=this;Object.keys(this.attributes).forEach(function(f){var v=u.attributes[f].value(u.domNode);d.format(f,v)})},x.prototype.move=function(d){var u=this;this.copy(d),Object.keys(this.attributes).forEach(function(f){u.attributes[f].remove(u.domNode)}),this.attributes={}},x.prototype.values=function(){var d=this;return Object.keys(this.attributes).reduce(function(u,f){return u[f]=d.attributes[f].value(d.domNode),u},{})},x}();M.default=S},function(J,M,E){"use strict";var S,P=this&&this.__extends||(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,d){x.__proto__=d}||function(x,d){for(var u in d)d.hasOwnProperty(u)&&(x[u]=d[u])},function(x,d){function u(){this.constructor=x}S(x,d),x.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)});function F(S,x){return(S.getAttribute("class")||"").split(/\s+/).filter(function(u){return 0===u.indexOf(x+"-")})}Object.defineProperty(M,"__esModule",{value:!0});var A=function(S){function x(){return null!==S&&S.apply(this,arguments)||this}return P(x,S),x.keys=function(d){return(d.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},x.prototype.add=function(d,u){return!!this.canAdd(d,u)&&(this.remove(d),d.classList.add(this.keyName+"-"+u),!0)},x.prototype.remove=function(d){F(d,this.keyName).forEach(function(f){d.classList.remove(f)}),0===d.classList.length&&d.removeAttribute("class")},x.prototype.value=function(d){var f=(F(d,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(d,f)?f:""},x}(E(12).default);M.default=A},function(J,M,E){"use strict";var S,P=this&&this.__extends||(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,d){x.__proto__=d}||function(x,d){for(var u in d)d.hasOwnProperty(u)&&(x[u]=d[u])},function(x,d){function u(){this.constructor=x}S(x,d),x.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)});function F(S){var x=S.split("-"),d=x.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return x[0]+d}Object.defineProperty(M,"__esModule",{value:!0});var A=function(S){function x(){return null!==S&&S.apply(this,arguments)||this}return P(x,S),x.keys=function(d){return(d.getAttribute("style")||"").split(";").map(function(u){return u.split(":")[0].trim()})},x.prototype.add=function(d,u){return!!this.canAdd(d,u)&&(d.style[F(this.keyName)]=u,!0)},x.prototype.remove=function(d){d.style[F(this.keyName)]="",d.getAttribute("style")||d.removeAttribute("style")},x.prototype.value=function(d){var u=d.style[F(this.keyName)];return this.canAdd(d,u)?u:""},x}(E(12).default);M.default=A},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function A(S,x){for(var d=0;dN&&this.stack.undo.length>0){var T=this.stack.undo.pop();O=O.compose(T.undo),D=T.redo.compose(D)}else this.lastRecorded=N;this.stack.undo.push({redo:D,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(D){this.stack.undo.forEach(function(k){k.undo=D.transform(k.undo,!0),k.redo=D.transform(k.redo,!0)}),this.stack.redo.forEach(function(k){k.undo=D.transform(k.undo,!0),k.redo=D.transform(k.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),m}(u(E(9)).default);function g(w){var m=w.reduce(function(D,k){return D+(k.delete||0)},0),_=w.length()-m;return function h(w){var m=w.ops[w.ops.length-1];return null!=m&&(null!=m.insert?"string"==typeof m.insert&&m.insert.endsWith("\n"):null!=m.attributes&&Object.keys(m.attributes).some(function(_){return null!=F.default.query(_,F.default.Scope.BLOCK)}))}(w)&&(_-=1),_}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},M.default=p,M.getLastChangeIndex=g},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.BaseTooltip=void 0;var P=function(){function G(q,Y){for(var K=0;K0&&void 0!==arguments[0]?arguments[0]:"link",H=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=H?this.textbox.value=H:K!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+K)||""),this.root.setAttribute("data-mode",K)}},{key:"restoreFocus",value:function(){var K=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=K}},{key:"save",value:function(){var K=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var H=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",K,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",K,u.default.sources.USER)),this.quill.root.scrollTop=H;break;case"video":K=function W(G){var q=G.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||G.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return q?(q[1]||"https")+"://www.youtube.com/embed/"+q[2]+"?showinfo=0":(q=G.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(q[1]||"https")+"://player.vimeo.com/video/"+q[2]+"/":G}(K);case"formula":if(!K)break;var te=this.quill.getSelection(!0);if(null!=te){var oe=te.index+te.length;this.quill.insertEmbed(oe,this.root.getAttribute("data-mode"),K,u.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(oe+1," ",u.default.sources.USER),this.quill.setSelection(oe+2,u.default.sources.USER)}}this.textbox.value="",this.hide()}}]),q}(O.default);function z(G,q){var Y=arguments.length>2&&void 0!==arguments[2]&&arguments[2];q.forEach(function(K){var H=document.createElement("option");K===Y?H.setAttribute("selected","selected"):H.setAttribute("value",K),G.appendChild(H)})}M.BaseTooltip=ee,M.default=re},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function L(){this.head=this.tail=null,this.length=0}return L.prototype.append=function(){for(var F=[],A=0;A1&&this.append.apply(this,F.slice(1))},L.prototype.contains=function(F){for(var A,S=this.iterator();A=S();)if(A===F)return!0;return!1},L.prototype.insertBefore=function(F,A){!F||(F.next=A,null!=A?(F.prev=A.prev,null!=A.prev&&(A.prev.next=F),A.prev=F,A===this.head&&(this.head=F)):null!=this.tail?(this.tail.next=F,F.prev=this.tail,this.tail=F):(F.prev=null,this.head=this.tail=F),this.length+=1)},L.prototype.offset=function(F){for(var A=0,S=this.head;null!=S;){if(S===F)return A;A+=S.length(),S=S.next}return-1},L.prototype.remove=function(F){!this.contains(F)||(null!=F.prev&&(F.prev.next=F.next),null!=F.next&&(F.next.prev=F.prev),F===this.head&&(this.head=F.next),F===this.tail&&(this.tail=F.prev),this.length-=1)},L.prototype.iterator=function(F){return void 0===F&&(F=this.head),function(){var A=F;return null!=F&&(F=F.next),A}},L.prototype.find=function(F,A){void 0===A&&(A=!1);for(var S,x=this.iterator();S=x();){var d=S.length();if(Fv?S(f,F-v,Math.min(A,v+p-F)):S(f,0,Math.min(p,F+A-v)),v+=p}},L.prototype.map=function(F){return this.reduce(function(A,S){return A.push(F(S)),A},[])},L.prototype.reduce=function(F,A){for(var S,x=this.iterator();S=x();)A=F(A,S);return A},L}();M.default=P},function(J,M,E){"use strict";var d,P=this&&this.__extends||(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var v in f)f.hasOwnProperty(v)&&(u[v]=f[v])},function(u,f){function v(){this.constructor=u}d(u,f),u.prototype=null===f?Object.create(f):(v.prototype=f.prototype,new v)});Object.defineProperty(M,"__esModule",{value:!0});var L=E(17),F=E(1),A={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},x=function(d){function u(f){var v=d.call(this,f)||this;return v.scroll=v,v.observer=new MutationObserver(function(y){v.update(y)}),v.observer.observe(v.domNode,A),v.attach(),v}return P(u,d),u.prototype.detach=function(){d.prototype.detach.call(this),this.observer.disconnect()},u.prototype.deleteAt=function(f,v){this.update(),0===f&&v===this.length()?this.children.forEach(function(y){y.remove()}):d.prototype.deleteAt.call(this,f,v)},u.prototype.formatAt=function(f,v,y,p){this.update(),d.prototype.formatAt.call(this,f,v,y,p)},u.prototype.insertAt=function(f,v,y){this.update(),d.prototype.insertAt.call(this,f,v,y)},u.prototype.optimize=function(f,v){var y=this;void 0===f&&(f=[]),void 0===v&&(v={}),d.prototype.optimize.call(this,v);for(var p=[].slice.call(this.observer.takeRecords());p.length>0;)f.push(p.pop());for(var h=function(_,D){void 0===D&&(D=!0),null!=_&&_!==y&&null!=_.domNode.parentNode&&(null==_.domNode[F.DATA_KEY].mutations&&(_.domNode[F.DATA_KEY].mutations=[]),D&&h(_.parent))},g=function(_){null==_.domNode[F.DATA_KEY]||null==_.domNode[F.DATA_KEY].mutations||(_ instanceof L.default&&_.children.forEach(g),_.optimize(v))},w=f,m=0;w.length>0;m+=1){if(m>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(_){var D=F.find(_.target,!0);null!=D&&(D.domNode===_.target&&("childList"===_.type?(h(F.find(_.previousSibling,!1)),[].forEach.call(_.addedNodes,function(k){var O=F.find(k,!1);h(O,!1),O instanceof L.default&&O.children.forEach(function(N){h(N,!1)})})):"attributes"===_.type&&h(D.prev)),h(D))}),this.children.forEach(g),p=(w=[].slice.call(this.observer.takeRecords())).slice();p.length>0;)f.push(p.pop())}},u.prototype.update=function(f,v){var y=this;void 0===v&&(v={}),(f=f||this.observer.takeRecords()).map(function(p){var h=F.find(p.target,!0);return null==h?null:null==h.domNode[F.DATA_KEY].mutations?(h.domNode[F.DATA_KEY].mutations=[p],h):(h.domNode[F.DATA_KEY].mutations.push(p),null)}).forEach(function(p){null==p||p===y||null==p.domNode[F.DATA_KEY]||p.update(p.domNode[F.DATA_KEY].mutations||[],v)}),null!=this.domNode[F.DATA_KEY].mutations&&d.prototype.update.call(this,this.domNode[F.DATA_KEY].mutations,v),this.optimize(f,v)},u.blotName="scroll",u.defaultChild="block",u.scope=F.Scope.BLOCK_BLOT,u.tagName="DIV",u}(L.default);M.default=x},function(J,M,E){"use strict";var x,P=this&&this.__extends||(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var f in u)u.hasOwnProperty(f)&&(d[f]=u[f])},function(d,u){function f(){this.constructor=d}x(d,u),d.prototype=null===u?Object.create(u):(f.prototype=u.prototype,new f)});Object.defineProperty(M,"__esModule",{value:!0});var L=E(18),F=E(1);var S=function(x){function d(){return null!==x&&x.apply(this,arguments)||this}return P(d,x),d.formats=function(u){if(u.tagName!==d.tagName)return x.formats.call(this,u)},d.prototype.format=function(u,f){var v=this;u!==this.statics.blotName||f?x.prototype.format.call(this,u,f):(this.children.forEach(function(y){y instanceof L.default||(y=y.wrap(d.blotName,!0)),v.attributes.copy(y)}),this.unwrap())},d.prototype.formatAt=function(u,f,v,y){null!=this.formats()[v]||F.query(v,F.Scope.ATTRIBUTE)?this.isolate(u,f).format(v,y):x.prototype.formatAt.call(this,u,f,v,y)},d.prototype.optimize=function(u){x.prototype.optimize.call(this,u);var f=this.formats();if(0===Object.keys(f).length)return this.unwrap();var v=this.next;v instanceof d&&v.prev===this&&function A(x,d){if(Object.keys(x).length!==Object.keys(d).length)return!1;for(var u in x)if(x[u]!==d[u])return!1;return!0}(f,v.formats())&&(v.moveChildren(this),v.remove())},d.blotName="inline",d.scope=F.Scope.INLINE_BLOT,d.tagName="SPAN",d}(L.default);M.default=S},function(J,M,E){"use strict";var S,P=this&&this.__extends||(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,d){x.__proto__=d}||function(x,d){for(var u in d)d.hasOwnProperty(u)&&(x[u]=d[u])},function(x,d){function u(){this.constructor=x}S(x,d),x.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)});Object.defineProperty(M,"__esModule",{value:!0});var L=E(18),F=E(1),A=function(S){function x(){return null!==S&&S.apply(this,arguments)||this}return P(x,S),x.formats=function(d){var u=F.query(x.blotName).tagName;if(d.tagName!==u)return S.formats.call(this,d)},x.prototype.format=function(d,u){null!=F.query(d,F.Scope.BLOCK)&&(d!==this.statics.blotName||u?S.prototype.format.call(this,d,u):this.replaceWith(x.blotName))},x.prototype.formatAt=function(d,u,f,v){null!=F.query(f,F.Scope.BLOCK)?this.format(f,v):S.prototype.formatAt.call(this,d,u,f,v)},x.prototype.insertAt=function(d,u,f){if(null==f||null!=F.query(u,F.Scope.INLINE))S.prototype.insertAt.call(this,d,u,f);else{var v=this.split(d),y=F.create(u,f);v.parent.insertBefore(y,v)}},x.prototype.update=function(d,u){navigator.userAgent.match(/Trident/)?this.build():S.prototype.update.call(this,d,u)},x.blotName="block",x.scope=F.Scope.BLOCK_BLOT,x.tagName="P",x}(L.default);M.default=A},function(J,M,E){"use strict";var A,P=this&&this.__extends||(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,x){S.__proto__=x}||function(S,x){for(var d in x)x.hasOwnProperty(d)&&(S[d]=x[d])},function(S,x){function d(){this.constructor=S}A(S,x),S.prototype=null===x?Object.create(x):(d.prototype=x.prototype,new d)});Object.defineProperty(M,"__esModule",{value:!0});var F=function(A){function S(){return null!==A&&A.apply(this,arguments)||this}return P(S,A),S.formats=function(x){},S.prototype.format=function(x,d){A.prototype.formatAt.call(this,0,this.length(),x,d)},S.prototype.formatAt=function(x,d,u,f){0===x&&d===this.length()?this.format(u,f):A.prototype.formatAt.call(this,x,d,u,f)},S.prototype.formats=function(){return this.statics.formats(this.domNode)},S}(E(19).default);M.default=F},function(J,M,E){"use strict";var S,P=this&&this.__extends||(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,d){x.__proto__=d}||function(x,d){for(var u in d)d.hasOwnProperty(u)&&(x[u]=d[u])},function(x,d){function u(){this.constructor=x}S(x,d),x.prototype=null===d?Object.create(d):(u.prototype=d.prototype,new u)});Object.defineProperty(M,"__esModule",{value:!0});var L=E(19),F=E(1),A=function(S){function x(d){var u=S.call(this,d)||this;return u.text=u.statics.value(u.domNode),u}return P(x,S),x.create=function(d){return document.createTextNode(d)},x.value=function(d){var u=d.data;return u.normalize&&(u=u.normalize()),u},x.prototype.deleteAt=function(d,u){this.domNode.data=this.text=this.text.slice(0,d)+this.text.slice(d+u)},x.prototype.index=function(d,u){return this.domNode===d?u:-1},x.prototype.insertAt=function(d,u,f){null==f?(this.text=this.text.slice(0,d)+u+this.text.slice(d),this.domNode.data=this.text):S.prototype.insertAt.call(this,d,u,f)},x.prototype.length=function(){return this.text.length},x.prototype.optimize=function(d){S.prototype.optimize.call(this,d),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof x&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},x.prototype.position=function(d,u){return void 0===u&&(u=!1),[this.domNode,d]},x.prototype.split=function(d,u){if(void 0===u&&(u=!1),!u){if(0===d)return this;if(d===this.length())return this.next}var f=F.create(this.domNode.splitText(d));return this.parent.insertBefore(f,this.next),this.text=this.statics.value(this.domNode),f},x.prototype.update=function(d,u){var f=this;d.some(function(v){return"characterData"===v.type&&v.target===f.domNode})&&(this.text=this.statics.value(this.domNode))},x.prototype.value=function(){return this.text},x.blotName="text",x.scope=F.Scope.INLINE_BLOT,x}(L.default);M.default=A},function(J,M,E){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var L=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(F,A){return arguments.length>1&&!this.contains(F)==!A?A:L.call(this,F)}}String.prototype.startsWith||(String.prototype.startsWith=function(F,A){return this.substr(A=A||0,F.length)===F}),String.prototype.endsWith||(String.prototype.endsWith=function(F,A){var S=this.toString();("number"!=typeof A||!isFinite(A)||Math.floor(A)!==A||A>S.length)&&(A=S.length);var x=S.indexOf(F,A-=F.length);return-1!==x&&x===A}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(A){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof A)throw new TypeError("predicate must be a function");for(var u,S=Object(this),x=S.length>>>0,d=arguments[1],f=0;f_.length?m:_,O=m.length>_.length?_:m,N=k.indexOf(O);if(-1!=N)return D=[[1,k.substring(0,N)],[0,O],[1,k.substring(N+O.length)]],m.length>_.length&&(D[0][0]=D[2][0]=E),D;if(1==O.length)return[[E,m],[1,_]];var T=function f(m,_){var D=m.length>_.length?m:_,k=m.length>_.length?_:m;if(D.length<4||2*k.length=X.length?[q,Y,K,H,G]:null}var I,R,V,$,U,N=O(D,k,Math.ceil(D.length/4)),T=O(D,k,Math.ceil(D.length/2));return N||T?(I=T?N&&N[4].length>T[4].length?N:T:N,m.length>_.length?(R=I[0],V=I[1],$=I[2],U=I[3]):($=I[0],U=I[1],R=I[2],V=I[3]),[R,V,$,U,I[4]]):null}(m,_);if(T){var R=T[1],$=T[3],U=T[4],Z=F(T[0],T[2]),X=F(R,$);return Z.concat([[0,U]],X)}return function S(m,_){for(var D=m.length,k=_.length,O=Math.ceil((D+k)/2),N=O,T=2*O,I=new Array(T),R=new Array(T),V=0;VD)X+=2;else if(Y>k)Z+=2;else if(U&&(K=N+$-z)>=0&&K=(H=D-R[K]))return x(m,_,q,Y)}for(var te=-W+re;te<=W-ee;te+=2){for(var H,K=N+te,oe=(H=te==-W||te!=W&&R[K-1]D)ee+=2;else if(oe>k)re+=2;else if(!U){var q;if((G=N+$-te)>=0&&G=(H=D-H)))return x(m,_,q,Y)}}}return[[E,m],[1,_]]}(m,_)}(m=m.substring(0,m.length-k),_=_.substring(0,_.length-k));return O&&T.unshift([0,O]),N&&T.push([0,N]),v(T),null!=D&&(T=function h(m,_){var D=function p(m,_){if(0===_)return[0,m];for(var D=0,k=0;k0&&k.splice(O+2,0,[T[0],I]),w(k,O,3)}return m}(T,D)),function g(m){for(var _=!1,D=function(T){return T.charCodeAt(0)>=56320&&T.charCodeAt(0)<=57343},k=function(T){return T.charCodeAt(T.length-1)>=55296&&T.charCodeAt(T.length-1)<=56319},O=2;O0&&N.push(m[O]);return N}(T)}function x(m,_,D,k){var O=m.substring(0,D),N=_.substring(0,k),T=m.substring(D),I=_.substring(k),R=F(O,N),V=F(T,I);return R.concat(V)}function d(m,_){if(!m||!_||m.charAt(0)!=_.charAt(0))return 0;for(var D=0,k=Math.min(m.length,_.length),O=k,N=0;D1?(0!==D&&0!==k&&(0!==(T=d(N,O))&&(_-D-k>0&&0==m[_-D-k-1][0]?m[_-D-k-1][1]+=N.substring(0,T):(m.splice(0,0,[0,N.substring(0,T)]),_++),N=N.substring(T),O=O.substring(T)),0!==(T=u(N,O))&&(m[_][1]=N.substring(N.length-T)+m[_][1],N=N.substring(0,N.length-T),O=O.substring(0,O.length-T))),0===D?m.splice(_-k,D+k,[1,N]):0===k?m.splice(_-D,D+k,[E,O]):m.splice(_-D-k,D+k,[E,O],[1,N]),_=_-D-k+(D?1:0)+(k?1:0)+1):0!==_&&0==m[_-1][0]?(m[_-1][1]+=m[_][1],m.splice(_,1)):_++,k=0,D=0,O="",N=""}""===m[m.length-1][1]&&m.pop();var I=!1;for(_=1;_=0&&k>=_-1;k--)if(k+1=700)&&(Ie.bold=!0),Object.keys(Ie).length>0&&(ve=q(ve,Ie)),parseFloat(ke.textIndent||0)>0&&(ve=(new d.default).insert("\t").concat(ve)),ve}],["li",function Je(ge,ve){var Ie=f.default.query(ge);if(null==Ie||"list-item"!==Ie.blotName||!K(ve,"\n"))return ve;for(var ke=-1,De=ge.parentNode;!De.classList.contains("ql-clipboard");)"list"===(f.default.query(De)||{}).blotName&&(ke+=1),De=De.parentNode;return ke<=0?ve:ve.compose((new d.default).retain(ve.length()-1).retain(1,{indent:ke}))}],["b",oe.bind(oe,"bold")],["i",oe.bind(oe,"italic")],["style",function Be(){return new d.default}]],W=[m.AlignAttribute,N.DirectionAttribute].reduce(function(ge,ve){return ge[ve.keyName]=ve,ge},{}),z=[m.AlignStyle,_.BackgroundStyle,O.ColorStyle,N.DirectionStyle,T.FontStyle,I.SizeStyle].reduce(function(ge,ve){return ge[ve.keyName]=ve,ge},{}),G=function(ge){function ve(Ie,ke){!function $(ge,ve){if(!(ge instanceof ve))throw new TypeError("Cannot call a class as a function")}(this,ve);var De=function U(ge,ve){if(!ge)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ve||"object"!=typeof ve&&"function"!=typeof ve?ge:ve}(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Ie,ke));return De.quill.root.addEventListener("paste",De.onPaste.bind(De)),De.container=De.quill.addContainer("ql-clipboard"),De.container.setAttribute("contenteditable",!0),De.container.setAttribute("tabindex",-1),De.matchers=[],ee.concat(De.options.matchers).forEach(function(Ue){var $e=L(Ue,2),bn=$e[1];!ke.matchVisual&&bn===st||De.addMatcher($e[0],bn)}),De}return function Z(ge,ve){if("function"!=typeof ve&&null!==ve)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);ge.prototype=Object.create(ve&&ve.prototype,{constructor:{value:ge,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(ge,ve):ge.__proto__=ve)}(ve,ge),F(ve,[{key:"addMatcher",value:function(ke,De){this.matchers.push([ke,De])}},{key:"convert",value:function(ke){if("string"==typeof ke)return this.container.innerHTML=ke.replace(/\>\r?\n +\<"),this.convert();var De=this.quill.getFormat(this.quill.selection.savedRange.index);if(De[k.default.blotName]){var Ue=this.container.innerText;return this.container.innerHTML="",(new d.default).insert(Ue,V({},k.default.blotName,De[k.default.blotName]))}var $e=this.prepareMatching(),et=L($e,2),pt=te(this.container,et[0],et[1]);return K(pt,"\n")&&null==pt.ops[pt.ops.length-1].attributes&&(pt=pt.compose((new d.default).retain(pt.length()-1).delete(1))),X.log("convert",this.container.innerHTML,pt),this.container.innerHTML="",pt}},{key:"dangerouslyPasteHTML",value:function(ke,De){var Ue=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y.default.sources.API;if("string"==typeof ke)this.quill.setContents(this.convert(ke),De),this.quill.setSelection(0,y.default.sources.SILENT);else{var $e=this.convert(De);this.quill.updateContents((new d.default).retain(ke).concat($e),Ue),this.quill.setSelection(ke+$e.length(),y.default.sources.SILENT)}}},{key:"onPaste",value:function(ke){var De=this;if(!ke.defaultPrevented&&this.quill.isEnabled()){var Ue=this.quill.getSelection(),$e=(new d.default).retain(Ue.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(y.default.sources.SILENT),setTimeout(function(){$e=$e.concat(De.convert()).delete(Ue.length),De.quill.updateContents($e,y.default.sources.USER),De.quill.setSelection($e.length()-Ue.length,y.default.sources.SILENT),De.quill.scrollingContainer.scrollTop=et,De.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ke=this,De=[],Ue=[];return this.matchers.forEach(function($e){var et=L($e,2),bn=et[0],ri=et[1];switch(bn){case Node.TEXT_NODE:Ue.push(ri);break;case Node.ELEMENT_NODE:De.push(ri);break;default:[].forEach.call(ke.container.querySelectorAll(bn),function(pt){pt[re]=pt[re]||[],pt[re].push(ri)})}}),[De,Ue]}}]),ve}(w.default);function q(ge,ve,Ie){return"object"===(typeof ve>"u"?"undefined":P(ve))?Object.keys(ve).reduce(function(ke,De){return q(ke,De,ve[De])},ge):ge.reduce(function(ke,De){return De.attributes&&De.attributes[ve]?ke.push(De):ke.insert(De.insert,(0,S.default)({},V({},ve,Ie),De.attributes))},new d.default)}function Y(ge){if(ge.nodeType!==Node.ELEMENT_NODE)return{};var ve="__ql-computed-style";return ge[ve]||(ge[ve]=window.getComputedStyle(ge))}function K(ge,ve){for(var Ie="",ke=ge.ops.length-1;ke>=0&&Ie.length-1}function te(ge,ve,Ie){return ge.nodeType===ge.TEXT_NODE?Ie.reduce(function(ke,De){return De(ge,ke)},new d.default):ge.nodeType===ge.ELEMENT_NODE?[].reduce.call(ge.childNodes||[],function(ke,De){var Ue=te(De,ve,Ie);return De.nodeType===ge.ELEMENT_NODE&&(Ue=ve.reduce(function($e,et){return et(De,$e)},Ue),Ue=(De[re]||[]).reduce(function($e,et){return et(De,$e)},Ue)),ke.concat(Ue)},new d.default):new d.default}function oe(ge,ve,Ie){return q(Ie,ge,!0)}function ae(ge,ve){var Ie=f.default.Attributor.Attribute.keys(ge),ke=f.default.Attributor.Class.keys(ge),De=f.default.Attributor.Style.keys(ge),Ue={};return Ie.concat(ke).concat(De).forEach(function($e){var et=f.default.query($e,f.default.Scope.ATTRIBUTE);null!=et&&(Ue[et.attrName]=et.value(ge),Ue[et.attrName])||(null!=(et=W[$e])&&(et.attrName===$e||et.keyName===$e)&&(Ue[et.attrName]=et.value(ge)||void 0),null!=(et=z[$e])&&(et.attrName===$e||et.keyName===$e)&&(Ue[(et=z[$e]).attrName]=et.value(ge)||void 0))}),Object.keys(Ue).length>0&&(ve=q(ve,Ue)),ve}function he(ge,ve){var Ie=f.default.query(ge);if(null==Ie)return ve;if(Ie.prototype instanceof f.default.Embed){var ke={},De=Ie.value(ge);null!=De&&(ke[Ie.blotName]=De,ve=(new d.default).insert(ke,Ie.formats(ge)))}else"function"==typeof Ie.formats&&(ve=q(ve,Ie.blotName,Ie.formats(ge)));return ve}function it(ge,ve){return K(ve,"\n")||(H(ge)||ve.length()>0&&ge.nextSibling&&H(ge.nextSibling))&&ve.insert("\n"),ve}function st(ge,ve){if(H(ge)&&null!=ge.nextElementSibling&&!K(ve,"\n\n")){var Ie=ge.offsetHeight+parseFloat(Y(ge).marginTop)+parseFloat(Y(ge).marginBottom);ge.nextElementSibling.offsetTop>ge.offsetTop+1.5*Ie&&ve.insert("\n")}return ve}function $t(ge,ve){var Ie=ge.data;if("O:P"===ge.parentNode.tagName)return ve.insert(Ie.trim());if(0===Ie.trim().length&&ge.parentNode.classList.contains("ql-clipboard"))return ve;if(!Y(ge.parentNode).whiteSpace.startsWith("pre")){var ke=function(Ue,$e){return($e=$e.replace(/[^\u00a0]/g,"")).length<1&&Ue?" ":$e};Ie=(Ie=Ie.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,ke.bind(ke,!0)),(null==ge.previousSibling&&H(ge.parentNode)||null!=ge.previousSibling&&H(ge.previousSibling))&&(Ie=Ie.replace(/^\s+/,ke.bind(ke,!1))),(null==ge.nextSibling&&H(ge.parentNode)||null!=ge.nextSibling&&H(ge.nextSibling))&&(Ie=Ie.replace(/\s+$/,ke.bind(ke,!1)))}return ve.insert(Ie)}G.DEFAULTS={matchers:[],matchVisual:!0},M.default=G,M.matchAttributor=ae,M.matchBlot=he,M.matchNewline=it,M.matchSpacing=st,M.matchText=$t},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function v(y,p){for(var h=0;h '},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function v(y,p){for(var h=0;hf.right&&(this.root.style.left=d+(y=f.right-v.right)+"px"),v.leftf.bottom&&(this.root.style.top=u-(x.bottom-x.top+(v.bottom-v.top))+"px",this.root.classList.add("ql-flip")),y}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),A}();M.default=F},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(I,R){if(Array.isArray(I))return I;if(Symbol.iterator in Object(I))return function T(I,R){var V=[],$=!0,U=!1,Z=void 0;try{for(var re,X=I[Symbol.iterator]();!($=(re=X.next()).done)&&(V.push(re.value),!R||V.length!==R);$=!0);}catch(ee){U=!0,Z=ee}finally{try{!$&&X.return&&X.return()}finally{if(U)throw Z}}return V}(I,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")},L=function T(I,R,V){null===I&&(I=Function.prototype);var $=Object.getOwnPropertyDescriptor(I,R);if(void 0===$){var U=Object.getPrototypeOf(I);return null===U?void 0:T(U,R,V)}if("value"in $)return $.value;var Z=$.get;return void 0===Z?void 0:Z.call(V)},F=function(){function T(I,R){for(var V=0;V','','',''].join(""),M.default=O},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var L=De(E(29)),F=E(36),A=E(38),S=E(64),d=De(E(65)),f=De(E(66)),v=E(67),y=De(v),p=E(37),h=E(26),g=E(39),w=E(40),_=De(E(56)),k=De(E(68)),N=De(E(27)),I=De(E(69)),V=De(E(70)),U=De(E(71)),X=De(E(72)),ee=De(E(73)),W=E(13),z=De(W),q=De(E(74)),K=De(E(75)),te=De(E(57)),ae=De(E(41)),Ee=De(E(28)),Je=De(E(59)),st=De(E(60)),$t=De(E(61)),ve=De(E(108)),ke=De(E(62));function De(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}L.default.register({"attributors/attribute/direction":A.DirectionAttribute,"attributors/class/align":F.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":A.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":F.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":A.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":w.SizeStyle},!0),L.default.register({"formats/align":F.AlignClass,"formats/direction":A.DirectionClass,"formats/indent":S.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":g.FontClass,"formats/size":w.SizeClass,"formats/blockquote":d.default,"formats/code-block":z.default,"formats/header":f.default,"formats/list":y.default,"formats/bold":_.default,"formats/code":W.Code,"formats/italic":k.default,"formats/link":N.default,"formats/script":I.default,"formats/strike":V.default,"formats/underline":U.default,"formats/image":X.default,"formats/video":ee.default,"formats/list/item":v.ListItem,"modules/formula":q.default,"modules/syntax":K.default,"modules/toolbar":te.default,"themes/bubble":ve.default,"themes/snow":ke.default,"ui/icons":ae.default,"ui/picker":Ee.default,"ui/icon-picker":st.default,"ui/color-picker":Je.default,"ui/tooltip":$t.default},!0),M.default=L.default},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.IndentClass=void 0;var P=function(){function y(p,h){for(var g=0;g0&&this.children.tail.format(k,O)}},{key:"formats",value:function(){return function v(m,_,D){return _ in m?Object.defineProperty(m,_,{value:D,enumerable:!0,configurable:!0,writable:!0}):m[_]=D,m}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(k,O){if(k instanceof g)L(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertBefore",this).call(this,k,O);else{var N=null==O?this.length():O.offset(this),T=this.split(N);T.parent.insertBefore(k,T)}}},{key:"optimize",value:function(k){L(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,k);var O=this.next;null!=O&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(k){if(k.statics.blotName!==this.statics.blotName){var O=A.default.create(this.statics.defaultChild);k.moveChildren(O),this.appendChild(O)}L(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"replace",this).call(this,k)}}]),_}(u.default);w.blotName="list",w.scope=A.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[g],M.ListItem=g,M.default=w},function(J,M,E){"use strict";function A(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}function S(u,f){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?u:f}Object.defineProperty(M,"__esModule",{value:!0});var d=function(u){function f(){return A(this,f),S(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return function x(u,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);u.prototype=Object.create(f&&f.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(u,f):u.__proto__=f)}(f,u),f}(function F(u){return u&&u.__esModule?u:{default:u}}(E(56)).default);d.blotName="italic",d.tagName=["EM","I"],M.default=d},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function v(y,p){for(var h=0;h-1?m?this.domNode.setAttribute(w,m):this.domNode.removeAttribute(w):L(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,w,m)}}],[{key:"create",value:function(w){var m=L(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,w);return"string"==typeof w&&m.setAttribute("src",this.sanitize(w)),m}},{key:"formats",value:function(w){return v.reduce(function(m,_){return w.hasAttribute(_)&&(m[_]=w.getAttribute(_)),m},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,S.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),h}(A.default.Embed);y.blotName="image",y.tagName="IMG",M.default=y},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function(){function p(h,g){for(var w=0;w-1?m?this.domNode.setAttribute(w,m):this.domNode.removeAttribute(w):L(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,w,m)}}],[{key:"create",value:function(w){var m=L(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,w);return m.setAttribute("frameborder","0"),m.setAttribute("allowfullscreen",!0),m.setAttribute("src",this.sanitize(w)),m}},{key:"formats",value:function(w){return v.reduce(function(m,_){return w.hasAttribute(_)&&(m[_]=w.getAttribute(_)),m},{})}},{key:"sanitize",value:function(w){return S.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),h}(F.BlockEmbed);y.blotName="video",y.className="ql-video",y.tagName="IFRAME",M.default=y},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.FormulaBlot=void 0;var P=function(){function w(m,_){for(var D=0;D<_.length;D++){var k=_[D];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(m,k.key,k)}}return function(m,_,D){return _&&w(m.prototype,_),D&&w(m,D),m}}(),L=function w(m,_,D){null===m&&(m=Function.prototype);var k=Object.getOwnPropertyDescriptor(m,_);if(void 0===k){var O=Object.getPrototypeOf(m);return null===O?void 0:w(O,_,D)}if("value"in k)return k.value;var N=k.get;return void 0===N?void 0:N.call(D)},A=f(E(35)),x=f(E(5)),u=f(E(9));function f(w){return w&&w.__esModule?w:{default:w}}function v(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function y(w,m){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?w:m}function p(w,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);w.prototype=Object.create(m&&m.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(w,m):w.__proto__=m)}var h=function(w){function m(){return v(this,m),y(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return p(m,w),P(m,null,[{key:"create",value:function(D){var k=L(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,D);return"string"==typeof D&&(window.katex.render(D,k,{throwOnError:!1,errorColor:"#f00"}),k.setAttribute("data-value",D)),k}},{key:"value",value:function(D){return D.getAttribute("data-value")}}]),m}(A.default);h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var g=function(w){function m(){v(this,m);var _=y(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return _}return p(m,w),P(m,null,[{key:"register",value:function(){x.default.register(h,!0)}}]),m}(u.default);M.FormulaBlot=h,M.default=g},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.CodeToken=M.CodeBlock=void 0;var P=function(){function D(k,O){for(var N=0;N0||null==this.cachedText)&&(this.domNode.innerHTML=N(T),this.domNode.normalize(),this.attach()),this.cachedText=T)}}]),k}(y(E(13)).default);w.className="ql-syntax";var m=new A.default.Attributor.Class("token","hljs",{scope:A.default.Scope.INLINE}),_=function(D){function k(O,N){p(this,k);var T=h(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,O,N));if("function"!=typeof T.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var I=null;return T.quill.on(x.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(I),I=setTimeout(function(){T.highlight(),I=null},T.options.interval)}),T.highlight(),T}return g(k,D),P(k,null,[{key:"register",value:function(){x.default.register(m,!0),x.default.register(w,!0)}}]),P(k,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(x.default.sources.USER);var T=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(I){I.highlight(N.options.highlight)}),this.quill.update(x.default.sources.SILENT),null!=T&&this.quill.setSelection(T,x.default.sources.SILENT)}}}]),k}(u.default);_.DEFAULTS={highlight:null==window.hljs?null:function(D){return window.hljs.highlightAuto(D).value},interval:1e3},M.CodeBlock=w,M.CodeToken=m,M.default=_},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M){J.exports=' '},function(J,M,E){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.BubbleTooltip=void 0;var P=function k(O,N,T){null===O&&(O=Function.prototype);var I=Object.getOwnPropertyDescriptor(O,N);if(void 0===I){var R=Object.getPrototypeOf(O);return null===R?void 0:k(R,N,T)}if("value"in I)return I.value;var V=I.get;return void 0===V?void 0:V.call(T)},L=function(){function k(O,N){for(var T=0;T0&&U===x.default.sources.USER){I.show(),I.root.style.left="0px",I.root.style.width="",I.root.style.width=I.root.offsetWidth+"px";var Z=I.quill.getLines(V.index,V.length);if(1===Z.length)I.position(I.quill.getBounds(V));else{var X=Z[Z.length-1],re=I.quill.getIndex(X),ee=Math.min(X.length()-1,V.index+V.length-re),W=I.quill.getBounds(new f.Range(re,ee));I.position(W)}}else document.activeElement!==I.textbox&&I.quill.hasFocus()&&I.hide()}),I}return w(O,k),L(O,[{key:"listen",value:function(){var T=this;P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){T.root.classList.remove("ql-editing")}),this.quill.on(x.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!T.root.classList.contains("ql-hidden")){var I=T.quill.getSelection();null!=I&&T.position(T.quill.getBounds(I))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(T){var I=P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,T),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",0===I)return I;R.style.marginLeft=-1*I-R.offsetWidth/2+"px"}}]),O}(d.BaseTooltip);D.TEMPLATE=['','
','','',"
"].join(""),M.BubbleTooltip=D,M.default=_},function(J,M,E){J.exports=E(63)}]).default},480:()=>{}},Me=>{Me(Me.s=595)}]);