From bde0e0d2c4aa2303b6e49b3a5faf9c3d90512147 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Tue, 20 Aug 2024 13:42:05 +0000 Subject: [PATCH] Auto-generated commit Triggered by commit: https://github.com/Gyoo/Sukoa/commit/a2c00bd442bafd9ddd7e8326c97f57a9b2429273 --- .nojekyll | 0 404.html | 14 ++++++++++++++ favicon.ico | Bin 0 -> 15086 bytes index.html | 14 ++++++++++++++ main-4BSR7DC7.js | 20 ++++++++++++++++++++ polyfills-SCHOHYNV.js | 2 ++ styles-JXOVLO37.css | 1 + 7 files changed, 51 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 main-4BSR7DC7.js create mode 100644 polyfills-SCHOHYNV.js create mode 100644 styles-JXOVLO37.css diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..839cdda --- /dev/null +++ b/404.html @@ -0,0 +1,14 @@ + + + + + Sukoa + + + + + + + + + diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..57614f9c967596fad0a3989bec2b1deff33034f6 GIT binary patch literal 15086 zcmd^G33O9Omi+`8$@{|M-I6TH3wzF-p5CV8o}7f~KxR60LK+ApEFB<$bcciv%@SmA zV{n>g85YMFFeU*Uvl=i4v)C*qgnb;$GQ=3XTe9{Y%c`mO%su)noNCCQ*@t1WXn|B(hQ7i~ zrUK8|pUkD6#lNo!bt$6)jR!&C?`P5G(`e((P($RaLeq+o0Vd~f11;qB05kdbAOm?r zXv~GYr_sibQO9NGTCdT;+G(!{4Xs@4fPak8#L8PjgJwcs-Mm#nR_Z0s&u?nDX5^~@ z+A6?}g0|=4e_LoE69pPFO`yCD@BCjgKpzMH0O4Xs{Ahc?K3HC5;l=f zg>}alhBXX&);z$E-wai+9TTRtBX-bWYY@cl$@YN#gMd~tM_5lj6W%8ah4;uZ;jP@Q zVbuel1rPA?2@x9Y+u?e`l{Z4ngfG5q5BLH5QsEu4GVpt{KIp1?U)=3+KQ;%7ec8l* zdV=zZgN5>O3G(3L2fqj3;oBbZZw$Ij@`Juz@?+yy#OPw)>#wsTewVgTK9BGt5AbZ&?K&B3GVF&yu?@(Xj3fR3n+ZP0%+wo)D9_xp>Z$`A4 zfV>}NWjO#3lqumR0`gvnffd9Ka}JJMuHS&|55-*mCD#8e^anA<+sFZVaJe7{=p*oX zE_Uv?1>e~ga=seYzh{9P+n5<+7&9}&(kwqSaz;1aD|YM3HBiy<))4~QJSIryyqp| z8nGc(8>3(_nEI4n)n7j(&d4idW1tVLjZ7QbNLXg;LB ziHsS5pXHEjGJZb59KcvS~wv;uZR-+4qEqow`;JCfB*+b^UL^3!?;-^F%yt=VjU|v z39SSqKcRu_NVvz!zJzL0CceJaS6%!(eMshPv_0U5G`~!a#I$qI5Ic(>IONej@aH=f z)($TAT#1I{iCS4f{D2+ApS=$3E7}5=+y(rA9mM#;Cky%b*Gi0KfFA`ofKTzu`AV-9 znW|y@19rrZ*!N2AvDi<_ZeR3O2R{#dh1#3-d%$k${Rx42h+i&GZo5!C^dSL34*AKp z27mTd>k>?V&X;Nl%GZ(>0s`1UN~Hfyj>KPjtnc|)xM@{H_B9rNr~LuH`Gr5_am&Ep zTjZA8hljNj5H1Ipm-uD9rC}U{-vR!eay5&6x6FkfupdpT*84MVwGpdd(}ib)zZ3Ky z7C$pnjc82(W_y_F{PhYj?o!@3__UUvpX)v69aBSzYj3 zdi}YQkKs^SyXyFG2LTRz9{(w}y~!`{EuAaUr6G1M{*%c+kP1olW9z23dSH!G4_HSK zzae-DF$OGR{ofP*!$a(r^5Go>I3SObVI6FLY)N@o<*gl0&kLo-OT{Tl*7nCz>Iq=? zcigIDHtj|H;6sR?or8Wd_a4996GI*CXGU}o;D9`^FM!AT1pBY~?|4h^61BY#_yIfO zKO?E0 zJ{Pc`9rVEI&$xxXu`<5E)&+m(7zX^v0rqofLs&bnQT(1baQkAr^kEsk)15vlzAZ-l z@OO9RF<+IiJ*O@HE256gCt!bF=NM*vh|WVWmjVawcNoksRTMvR03H{p@cjwKh(CL4 z7_PB(dM=kO)!s4fW!1p0f93YN@?ZSG` z$B!JaAJCtW$B97}HNO9(x-t30&E}Mo1UPi@Av%uHj~?T|!4JLwV;KCx8xO#b9IlUW zI6+{a@Wj|<2Y=U;a@vXbxqZNngH8^}LleE_4*0&O7#3iGxfJ%Id>+sb;7{L=aIic8 z|EW|{{S)J-wr@;3PmlxRXU8!e2gm_%s|ReH!reFcY8%$Hl4M5>;6^UDUUae?kOy#h zk~6Ee_@ZAn48Bab__^bNmQ~+k=02jz)e0d9Z3>G?RGG!65?d1>9}7iG17?P*=GUV-#SbLRw)Hu{zx*azHxWkGNTWl@HeWjA?39Ia|sCi{e;!^`1Oec zb>Z|b65OM*;eC=ZLSy?_fg$&^2xI>qSLA2G*$nA3GEnp3$N-)46`|36m*sc#4%C|h zBN<2U;7k>&G_wL4=Ve5z`ubVD&*Hxi)r@{4RCDw7U_D`lbC(9&pG5C*z#W>8>HU)h z!h3g?2UL&sS!oY5$3?VlA0Me9W5e~V;2jds*fz^updz#AJ%G8w2V}AEE?E^=MK%Xt z__Bx1cr7+DQmuHmzn*|hh%~eEc9@m05@clWfpEFcr+06%0&dZJH&@8^&@*$qR@}o3 z@Tuuh2FsLz^zH+dN&T&?0G3I?MpmYJ;GP$J!EzjeM#YLJ!W$}MVNb0^HfOA>5Fe~UNn%Zk(PT@~9}1dt)1UQ zU*B5K?Dl#G74qmg|2>^>0WtLX#Jz{lO4NT`NYB*(L#D|5IpXr9v&7a@YsGp3vLR7L zHYGHZg7{ie6n~2p$6Yz>=^cEg7tEgk-1YRl%-s7^cbqFb(U7&Dp78+&ut5!Tn(hER z|Gp4Ed@CnOPeAe|N>U(dB;SZ?NU^AzoD^UAH_vamp6Ws}{|mSq`^+VP1g~2B{%N-!mWz<`)G)>V-<`9`L4?3dM%Qh6<@kba+m`JS{Ya@9Fq*m6$$ zA1%Ogc~VRH33|S9l%CNb4zM%k^EIpqY}@h{w(aBcJ9c05oiZx#SK9t->5lSI`=&l~ z+-Ic)a{FbBhXV$Xt!WRd`R#Jk-$+_Z52rS>?Vpt2IK<84|E-SBEoIw>cs=a{BlQ7O z-?{Fy_M&84&9|KM5wt~)*!~i~E=(6m8(uCO)I=)M?)&sRbzH$9Rovzd?ZEY}GqX+~ zFbEbLz`BZ49=2Yh-|<`waK-_4!7`ro@zlC|r&I4fc4oyb+m=|c8)8%tZ-z5FwhzDt zL5kB@u53`d@%nHl0Sp)Dw`(QU&>vujEn?GPEXUW!Wi<+4e%BORl&BIH+SwRcbS}X@ z01Pk|vA%OdJKAs17zSXtO55k!;%m9>1eW9LnyAX4uj7@${O6cfii`49qTNItzny5J zH&Gj`e}o}?xjQ}r?LrI%FjUd@xflT3|7LA|ka%Q3i}a8gVm<`HIWoJGH=$EGClX^C0lysQJ>UO(q&;`T#8txuoQ_{l^kEV9CAdXuU1Ghg8 zN_6hHFuy&1x24q5-(Z7;!poYdt*`UTdrQOIQ!2O7_+AHV2hgXaEz7)>$LEdG z<8vE^Tw$|YwZHZDPM!SNOAWG$?J)MdmEk{U!!$M#fp7*Wo}jJ$Q(=8>R`Ats?e|VU?Zt7Cdh%AdnfyN3MBWw{ z$OnREvPf7%z6`#2##_7id|H%Y{vV^vWXb?5d5?a_y&t3@p9t$ncHj-NBdo&X{wrfJ zamN)VMYROYh_SvjJ=Xd!Ga?PY_$;*L=SxFte!4O6%0HEh%iZ4=gvns7IWIyJHa|hT z2;1+e)`TvbNb3-0z&DD_)Jomsg-7p_Uh`wjGnU1urmv1_oVqRg#=C?e?!7DgtqojU zWoAB($&53;TsXu^@2;8M`#z{=rPy?JqgYM0CDf4v@z=ZD|ItJ&8%_7A#K?S{wjxgd z?xA6JdJojrWpB7fr2p_MSsU4(R7=XGS0+Eg#xR=j>`H@R9{XjwBmqAiOxOL` zt?XK-iTEOWV}f>Pz3H-s*>W z4~8C&Xq25UQ^xH6H9kY_RM1$ch+%YLF72AA7^b{~VNTG}Tj#qZltz5Q=qxR`&oIlW Nr__JTFzvMr^FKp4S3v*( literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 0000000..839cdda --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + Sukoa + + + + + + + + + diff --git a/main-4BSR7DC7.js b/main-4BSR7DC7.js new file mode 100644 index 0000000..14b7f4f --- /dev/null +++ b/main-4BSR7DC7.js @@ -0,0 +1,20 @@ +var Gb=Object.defineProperty,Yb=Object.defineProperties;var qb=Object.getOwnPropertyDescriptors;var Ro=Object.getOwnPropertySymbols;var om=Object.prototype.hasOwnProperty,am=Object.prototype.propertyIsEnumerable;var sm=(t,e,i)=>e in t?Gb(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,E=(t,e)=>{for(var i in e||={})om.call(e,i)&&sm(t,i,e[i]);if(Ro)for(var i of Ro(e))am.call(e,i)&&sm(t,i,e[i]);return t},se=(t,e)=>Yb(t,qb(e));var Zc=(t,e)=>{var i={};for(var n in t)om.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(t!=null&&Ro)for(var n of Ro(t))e.indexOf(n)<0&&am.call(t,n)&&(i[n]=t[n]);return i};var No=(t,e,i)=>new Promise((n,r)=>{var s=l=>{try{a(i.next(l))}catch(c){r(c)}},o=l=>{try{a(i.throw(l))}catch(c){r(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(s,o);a((i=i.apply(t,e)).next())});function lm(t,e){return Object.is(t,e)}var Oe=null,Po=!1,Fo=1,fn=Symbol("SIGNAL");function oe(t){let e=Oe;return Oe=t,e}function cm(){return Oe}var Jr={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Xc(t){if(Po)throw new Error("");if(Oe===null)return;Oe.consumerOnSignalRead(t);let e=Oe.nextProducerIndex++;if(Bo(Oe),et.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function eu(t){Bo(t);for(let e=0;e0}function Bo(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function pm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function mm(t){return t.producerNode!==void 0}function gm(t){let e=Object.create(Qb);e.computation=t;let i=()=>{if(um(e),Xc(e),e.value===Lo)throw e.error;return e.value};return i[fn]=e,i}var Kc=Symbol("UNSET"),Qc=Symbol("COMPUTING"),Lo=Symbol("ERRORED"),Qb=se(E({},Jr),{value:Kc,dirty:!0,error:null,equal:lm,producerMustRecompute(t){return t.value===Kc||t.value===Qc},producerRecomputeValue(t){if(t.value===Qc)throw new Error("Detected cycle in computations.");let e=t.value;t.value=Qc;let i=Vo(t),n;try{n=t.computation()}catch(r){n=Lo,t.error=r}finally{Jc(t,i)}if(e!==Kc&&e!==Lo&&n!==Lo&&t.equal(e,n)){t.value=e;return}t.value=n,t.version++}});function Xb(){throw new Error}var ym=Xb;function vm(){ym()}function _m(t){ym=t}var Jb=null;function wm(t){let e=Object.create(bm);e.value=t;let i=()=>(Xc(e),e.value);return i[fn]=e,i}function nu(t,e){hm()||vm(),t.equal(t.value,e)||(t.value=e,eC(t))}function Dm(t,e){hm()||vm(),nu(t,e(t.value))}var bm=se(E({},Jr),{equal:lm,value:void 0});function eC(t){t.version++,Zb(),dm(t),Jb?.()}function R(t){return typeof t=="function"}function Yi(t){let i=t(n=>{Error.call(n),n.stack=new Error().stack});return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}var Uo=Yi(t=>function(i){t(this),this.message=i?`${i.length} errors occurred during unsubscription: +${i.map((n,r)=>`${r+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=i});function ai(t,e){if(t){let i=t.indexOf(e);0<=i&&t.splice(i,1)}}var Q=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:i}=this;if(i)if(this._parentage=null,Array.isArray(i))for(let s of i)s.remove(this);else i.remove(this);let{initialTeardown:n}=this;if(R(n))try{n()}catch(s){e=s instanceof Uo?s.errors:[s]}let{_finalizers:r}=this;if(r){this._finalizers=null;for(let s of r)try{Cm(s)}catch(o){e=e??[],o instanceof Uo?e=[...e,...o.errors]:e.push(o)}}if(e)throw new Uo(e)}}add(e){var i;if(e&&e!==this)if(this.closed)Cm(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(i=this._finalizers)!==null&&i!==void 0?i:[]).push(e)}}_hasParent(e){let{_parentage:i}=this;return i===e||Array.isArray(i)&&i.includes(e)}_addParent(e){let{_parentage:i}=this;this._parentage=Array.isArray(i)?(i.push(e),i):i?[i,e]:e}_removeParent(e){let{_parentage:i}=this;i===e?this._parentage=null:Array.isArray(i)&&ai(i,e)}remove(e){let{_finalizers:i}=this;i&&ai(i,e),e instanceof t&&e._removeParent(this)}};Q.EMPTY=(()=>{let t=new Q;return t.closed=!0,t})();var iu=Q.EMPTY;function $o(t){return t instanceof Q||t&&"closed"in t&&R(t.remove)&&R(t.add)&&R(t.unsubscribe)}function Cm(t){R(t)?t():t.unsubscribe()}var kt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var qi={setTimeout(t,e,...i){let{delegate:n}=qi;return n?.setTimeout?n.setTimeout(t,e,...i):setTimeout(t,e,...i)},clearTimeout(t){let{delegate:e}=qi;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Ho(t){qi.setTimeout(()=>{let{onUnhandledError:e}=kt;if(e)e(t);else throw t})}function es(){}var Em=ru("C",void 0,void 0);function Im(t){return ru("E",void 0,t)}function Sm(t){return ru("N",t,void 0)}function ru(t,e,i){return{kind:t,value:e,error:i}}var li=null;function Zi(t){if(kt.useDeprecatedSynchronousErrorHandling){let e=!li;if(e&&(li={errorThrown:!1,error:null}),t(),e){let{errorThrown:i,error:n}=li;if(li=null,i)throw n}}else t()}function Mm(t){kt.useDeprecatedSynchronousErrorHandling&&li&&(li.errorThrown=!0,li.error=t)}var ci=class extends Q{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,$o(e)&&e.add(this)):this.destination=iC}static create(e,i,n){return new Ki(e,i,n)}next(e){this.isStopped?ou(Sm(e),this):this._next(e)}error(e){this.isStopped?ou(Im(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?ou(Em,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},tC=Function.prototype.bind;function su(t,e){return tC.call(t,e)}var au=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:i}=this;if(i.next)try{i.next(e)}catch(n){zo(n)}}error(e){let{partialObserver:i}=this;if(i.error)try{i.error(e)}catch(n){zo(n)}else zo(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(i){zo(i)}}},Ki=class extends ci{constructor(e,i,n){super();let r;if(R(e)||!e)r={next:e??void 0,error:i??void 0,complete:n??void 0};else{let s;this&&kt.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe(),r={next:e.next&&su(e.next,s),error:e.error&&su(e.error,s),complete:e.complete&&su(e.complete,s)}):r=e}this.destination=new au(r)}};function zo(t){kt.useDeprecatedSynchronousErrorHandling?Mm(t):Ho(t)}function nC(t){throw t}function ou(t,e){let{onStoppedNotification:i}=kt;i&&qi.setTimeout(()=>i(t,e))}var iC={closed:!0,next:es,error:nC,complete:es};var Qi=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Qe(t){return t}function lu(...t){return cu(t)}function cu(t){return t.length===0?Qe:t.length===1?t[0]:function(i){return t.reduce((n,r)=>r(n),i)}}var q=(()=>{class t{constructor(i){i&&(this._subscribe=i)}lift(i){let n=new t;return n.source=this,n.operator=i,n}subscribe(i,n,r){let s=sC(i)?i:new Ki(i,n,r);return Zi(()=>{let{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(i){try{return this._subscribe(i)}catch(n){i.error(n)}}forEach(i,n){return n=Tm(n),new n((r,s)=>{let o=new Ki({next:a=>{try{i(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(i){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(i)}[Qi](){return this}pipe(...i){return cu(i)(this)}toPromise(i){return i=Tm(i),new i((n,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>n(s))})}}return t.create=e=>new t(e),t})();function Tm(t){var e;return(e=t??kt.Promise)!==null&&e!==void 0?e:Promise}function rC(t){return t&&R(t.next)&&R(t.error)&&R(t.complete)}function sC(t){return t&&t instanceof ci||rC(t)&&$o(t)}function uu(t){return R(t?.lift)}function Z(t){return e=>{if(uu(e))return e.lift(function(i){try{return t(i,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function z(t,e,i,n,r){return new du(t,e,i,n,r)}var du=class extends ci{constructor(e,i,n,r,s,o){super(e),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=i?function(a){try{i(a)}catch(l){e.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:i}=this;super.unsubscribe(),!i&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function Xi(){return Z((t,e)=>{let i=null;t._refCount++;let n=z(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){i=null;return}let r=t._connection,s=i;i=null,r&&(!s||r===s)&&r.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(i=t.connect())})}var Ji=class extends q{constructor(e,i){super(),this.source=e,this.subjectFactory=i,this._subject=null,this._refCount=0,this._connection=null,uu(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Q;let i=this.getSubject();e.add(this.source.subscribe(z(i,void 0,()=>{this._teardown(),i.complete()},n=>{this._teardown(),i.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Q.EMPTY)}return e}refCount(){return Xi()(this)}};var Am=Yi(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var F=(()=>{class t extends q{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(i){let n=new Wo(this,this);return n.operator=i,n}_throwIfClosed(){if(this.closed)throw new Am}next(i){Zi(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(i)}})}error(i){Zi(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=i;let{observers:n}=this;for(;n.length;)n.shift().error(i)}})}complete(){Zi(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:i}=this;for(;i.length;)i.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var i;return((i=this.observers)===null||i===void 0?void 0:i.length)>0}_trySubscribe(i){return this._throwIfClosed(),super._trySubscribe(i)}_subscribe(i){return this._throwIfClosed(),this._checkFinalizedStatuses(i),this._innerSubscribe(i)}_innerSubscribe(i){let{hasError:n,isStopped:r,observers:s}=this;return n||r?iu:(this.currentObservers=null,s.push(i),new Q(()=>{this.currentObservers=null,ai(s,i)}))}_checkFinalizedStatuses(i){let{hasError:n,thrownError:r,isStopped:s}=this;n?i.error(r):s&&i.complete()}asObservable(){let i=new q;return i.source=this,i}}return t.create=(e,i)=>new Wo(e,i),t})(),Wo=class extends F{constructor(e,i){super(),this.destination=e,this.source=i}next(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,e)}error(e){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,e)}complete(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)}_subscribe(e){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&n!==void 0?n:iu}};var Re=class extends F{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let i=super._subscribe(e);return!i.closed&&e.next(this._value),i}getValue(){let{hasError:e,thrownError:i,_value:n}=this;if(e)throw i;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var hu={now(){return(hu.delegate||Date).now()},delegate:void 0};var Go=class extends Q{constructor(e,i){super()}schedule(e,i=0){return this}};var ts={setInterval(t,e,...i){let{delegate:n}=ts;return n?.setInterval?n.setInterval(t,e,...i):setInterval(t,e,...i)},clearInterval(t){let{delegate:e}=ts;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Yo=class extends Go{constructor(e,i){super(e,i),this.scheduler=e,this.work=i,this.pending=!1}schedule(e,i=0){var n;if(this.closed)return this;this.state=e;let r=this.id,s=this.scheduler;return r!=null&&(this.id=this.recycleAsyncId(s,r,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(s,this.id,i),this}requestAsyncId(e,i,n=0){return ts.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,i,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&ts.clearInterval(i)}execute(e,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,i){let n=!1,r;try{this.work(e)}catch(s){n=!0,r=s||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){let{id:e,scheduler:i}=this,{actions:n}=i;this.work=this.state=this.scheduler=null,this.pending=!1,ai(n,this),e!=null&&(this.id=this.recycleAsyncId(i,e,null)),this.delay=null,super.unsubscribe()}}};var er=class t{constructor(e,i=t.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}};er.now=hu.now;var qo=class extends er{constructor(e,i=er.now){super(e,i),this.actions=[],this._active=!1}flush(e){let{actions:i}=this;if(this._active){i.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=i.shift());if(this._active=!1,n){for(;e=i.shift();)e.unsubscribe();throw n}}};var ns=new qo(Yo),xm=ns;var Xe=new q(t=>t.complete());function Zo(t){return t&&R(t.schedule)}function fu(t){return t[t.length-1]}function Ko(t){return R(fu(t))?t.pop():void 0}function qt(t){return Zo(fu(t))?t.pop():void 0}function km(t,e){return typeof fu(t)=="number"?t.pop():e}function Rm(t,e,i,n){function r(s){return s instanceof i?s:new i(function(o){o(s)})}return new(i||(i=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((n=n.apply(t,e||[])).next())})}function Om(t){var e=typeof Symbol=="function"&&Symbol.iterator,i=e&&t[e],n=0;if(i)return i.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ui(t){return this instanceof ui?(this.v=t,this):new ui(t)}function Nm(t,e,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=i.apply(t,e||[]),r,s=[];return r={},a("next"),a("throw"),a("return",o),r[Symbol.asyncIterator]=function(){return this},r;function o(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){n[h]&&(r[h]=function(y){return new Promise(function(D,I){s.push([h,y,D,I])>1||l(h,y)})},p&&(r[h]=p(r[h])))}function l(h,p){try{c(n[h](p))}catch(y){f(s[0][3],y)}}function c(h){h.value instanceof ui?Promise.resolve(h.value.v).then(u,d):f(s[0][2],h)}function u(h){l("next",h)}function d(h){l("throw",h)}function f(h,p){h(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function Pm(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],i;return e?e.call(t):(t=typeof Om=="function"?Om(t):t[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(s){i[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),r(a,l,o.done,o.value)})}}function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}var tr=t=>t&&typeof t.length=="number"&&typeof t!="function";function Qo(t){return R(t?.then)}function Xo(t){return R(t[Qi])}function Jo(t){return Symbol.asyncIterator&&R(t?.[Symbol.asyncIterator])}function ea(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function oC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ta=oC();function na(t){return R(t?.[ta])}function ia(t){return Nm(this,arguments,function*(){let i=t.getReader();try{for(;;){let{value:n,done:r}=yield ui(i.read());if(r)return yield ui(void 0);yield yield ui(n)}}finally{i.releaseLock()}})}function ra(t){return R(t?.getReader)}function ye(t){if(t instanceof q)return t;if(t!=null){if(Xo(t))return aC(t);if(tr(t))return lC(t);if(Qo(t))return cC(t);if(Jo(t))return Fm(t);if(na(t))return uC(t);if(ra(t))return dC(t)}throw ea(t)}function aC(t){return new q(e=>{let i=t[Qi]();if(R(i.subscribe))return i.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function lC(t){return new q(e=>{for(let i=0;i{t.then(i=>{e.closed||(e.next(i),e.complete())},i=>e.error(i)).then(null,Ho)})}function uC(t){return new q(e=>{for(let i of t)if(e.next(i),e.closed)return;e.complete()})}function Fm(t){return new q(e=>{hC(t,e).catch(i=>e.error(i))})}function dC(t){return Fm(ia(t))}function hC(t,e){var i,n,r,s;return Rm(this,void 0,void 0,function*(){try{for(i=Pm(t);n=yield i.next(),!n.done;){let o=n.value;if(e.next(o),e.closed)return}}catch(o){r={error:o}}finally{try{n&&!n.done&&(s=i.return)&&(yield s.call(i))}finally{if(r)throw r.error}}e.complete()})}function at(t,e,i,n=0,r=!1){let s=e.schedule(function(){i(),r?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!r)return s}function sa(t,e=0){return Z((i,n)=>{i.subscribe(z(n,r=>at(n,t,()=>n.next(r),e),()=>at(n,t,()=>n.complete(),e),r=>at(n,t,()=>n.error(r),e)))})}function oa(t,e=0){return Z((i,n)=>{n.add(t.schedule(()=>i.subscribe(n),e))})}function Lm(t,e){return ye(t).pipe(oa(e),sa(e))}function Vm(t,e){return ye(t).pipe(oa(e),sa(e))}function jm(t,e){return new q(i=>{let n=0;return e.schedule(function(){n===t.length?i.complete():(i.next(t[n++]),i.closed||this.schedule())})})}function Bm(t,e){return new q(i=>{let n;return at(i,e,()=>{n=t[ta](),at(i,e,()=>{let r,s;try{({value:r,done:s}=n.next())}catch(o){i.error(o);return}s?i.complete():i.next(r)},0,!0)}),()=>R(n?.return)&&n.return()})}function aa(t,e){if(!t)throw new Error("Iterable cannot be null");return new q(i=>{at(i,e,()=>{let n=t[Symbol.asyncIterator]();at(i,e,()=>{n.next().then(r=>{r.done?i.complete():i.next(r.value)})},0,!0)})})}function Um(t,e){return aa(ia(t),e)}function $m(t,e){if(t!=null){if(Xo(t))return Lm(t,e);if(tr(t))return jm(t,e);if(Qo(t))return Vm(t,e);if(Jo(t))return aa(t,e);if(na(t))return Bm(t,e);if(ra(t))return Um(t,e)}throw ea(t)}function ve(t,e){return e?$m(t,e):ye(t)}function O(...t){let e=qt(t);return ve(t,e)}function nr(t,e){let i=R(t)?t:()=>t,n=r=>r.error(i());return new q(e?r=>e.schedule(n,0,r):n)}function is(t){return!!t&&(t instanceof q||R(t.lift)&&R(t.subscribe))}var pn=Yi(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Hm(t){return t instanceof Date&&!isNaN(t)}function j(t,e){return Z((i,n)=>{let r=0;i.subscribe(z(n,s=>{n.next(t.call(e,s,r++))}))})}var{isArray:fC}=Array;function pC(t,e){return fC(e)?t(...e):t(e)}function ir(t){return j(e=>pC(t,e))}var{isArray:mC}=Array,{getPrototypeOf:gC,prototype:yC,keys:vC}=Object;function la(t){if(t.length===1){let e=t[0];if(mC(e))return{args:e,keys:null};if(_C(e)){let i=vC(e);return{args:i.map(n=>e[n]),keys:i}}}return{args:t,keys:null}}function _C(t){return t&&typeof t=="object"&&gC(t)===yC}function ca(t,e){return t.reduce((i,n,r)=>(i[n]=e[r],i),{})}function rr(...t){let e=qt(t),i=Ko(t),{args:n,keys:r}=la(t);if(n.length===0)return ve([],e);let s=new q(wC(n,e,r?o=>ca(r,o):Qe));return i?s.pipe(ir(i)):s}function wC(t,e,i=Qe){return n=>{zm(e,()=>{let{length:r}=t,s=new Array(r),o=r,a=r;for(let l=0;l{let c=ve(t[l],e),u=!1;c.subscribe(z(n,d=>{s[l]=d,u||(u=!0,a--),a||n.next(i(s.slice()))},()=>{--o||n.complete()}))},n)},n)}}function zm(t,e,i){t?at(i,t,e):e()}function Wm(t,e,i,n,r,s,o,a){let l=[],c=0,u=0,d=!1,f=()=>{d&&!l.length&&!c&&e.complete()},h=y=>c{s&&e.next(y),c++;let D=!1;ye(i(y,u++)).subscribe(z(e,I=>{r?.(I),s?h(I):e.next(I)},()=>{D=!0},void 0,()=>{if(D)try{for(c--;l.length&&cp(I)):p(I)}f()}catch(I){e.error(I)}}))};return t.subscribe(z(e,h,()=>{d=!0,f()})),()=>{a?.()}}function Se(t,e,i=1/0){return R(e)?Se((n,r)=>j((s,o)=>e(n,s,r,o))(ye(t(n,r))),i):(typeof e=="number"&&(i=e),Z((n,r)=>Wm(n,r,t,i)))}function rs(t=1/0){return Se(Qe,t)}function Gm(){return rs(1)}function On(...t){return Gm()(ve(t,qt(t)))}function sr(t){return new q(e=>{ye(t()).subscribe(e)})}function pu(...t){let e=Ko(t),{args:i,keys:n}=la(t),r=new q(s=>{let{length:o}=i;if(!o){s.complete();return}let a=new Array(o),l=o,c=o;for(let u=0;u{d||(d=!0,c--),a[u]=f},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(n?ca(n,a):a),s.complete())}))}});return e?r.pipe(ir(e)):r}var DC=["addListener","removeListener"],bC=["addEventListener","removeEventListener"],CC=["on","off"];function ss(t,e,i,n){if(R(i)&&(n=i,i=void 0),n)return ss(t,e,i).pipe(ir(n));let[r,s]=SC(t)?bC.map(o=>a=>t[o](e,a,i)):EC(t)?DC.map(Ym(t,e)):IC(t)?CC.map(Ym(t,e)):[];if(!r&&tr(t))return Se(o=>ss(o,e,i))(ye(t));if(!r)throw new TypeError("Invalid event target");return new q(o=>{let a=(...l)=>o.next(1s(a)})}function Ym(t,e){return i=>n=>t[i](e,n)}function EC(t){return R(t.addListener)&&R(t.removeListener)}function IC(t){return R(t.on)&&R(t.off)}function SC(t){return R(t.addEventListener)&&R(t.removeEventListener)}function qm(t=0,e,i=xm){let n=-1;return e!=null&&(Zo(e)?i=e:n=e),new q(r=>{let s=Hm(t)?+t-i.now():t;s<0&&(s=0);let o=0;return i.schedule(function(){r.closed||(r.next(o++),0<=n?this.schedule(void 0,n):r.complete())},s)})}function or(...t){let e=qt(t),i=km(t,1/0),n=t;return n.length?n.length===1?ye(n[0]):rs(i)(ve(n,e)):Xe}function pe(t,e){return Z((i,n)=>{let r=0;i.subscribe(z(n,s=>t.call(e,s,r++)&&n.next(s)))})}function Zm(t){return Z((e,i)=>{let n=!1,r=null,s=null,o=!1,a=()=>{if(s?.unsubscribe(),s=null,n){n=!1;let c=r;r=null,i.next(c)}o&&i.complete()},l=()=>{s=null,o&&i.complete()};e.subscribe(z(i,c=>{n=!0,r=c,s||ye(t(c)).subscribe(s=z(i,a,l))},()=>{o=!0,(!n||!s||s.closed)&&i.complete()}))})}function ua(t,e=ns){return Zm(()=>qm(t,e))}function Rn(t){return Z((e,i)=>{let n=null,r=!1,s;n=e.subscribe(z(i,void 0,void 0,o=>{s=ye(t(o,Rn(t)(e))),n?(n.unsubscribe(),n=null,s.subscribe(i)):r=!0})),r&&(n.unsubscribe(),n=null,s.subscribe(i))})}function Km(t,e,i,n,r){return(s,o)=>{let a=i,l=e,c=0;s.subscribe(z(o,u=>{let d=c++;l=a?t(l,u,d):(a=!0,u),n&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function Nn(t,e){return R(e)?Se(t,e,1):Se(t,1)}function ar(t,e=ns){return Z((i,n)=>{let r=null,s=null,o=null,a=()=>{if(r){r.unsubscribe(),r=null;let c=s;s=null,n.next(c)}};function l(){let c=o+t,u=e.now();if(u{s=c,o=e.now(),r||(r=e.schedule(l,t),n.add(r))},()=>{a(),n.complete()},void 0,()=>{s=r=null}))})}function Pn(t){return Z((e,i)=>{let n=!1;e.subscribe(z(i,r=>{n=!0,i.next(r)},()=>{n||i.next(t),i.complete()}))})}function _e(t){return t<=0?()=>Xe:Z((e,i)=>{let n=0;e.subscribe(z(i,r=>{++n<=t&&(i.next(r),t<=n&&i.complete())}))})}function mu(t){return j(()=>t)}function da(t,e=Qe){return t=t??MC,Z((i,n)=>{let r,s=!0;i.subscribe(z(n,o=>{let a=e(o);(s||!t(r,a))&&(s=!1,r=a,n.next(o))}))})}function MC(t,e){return t===e}function ha(t=TC){return Z((e,i)=>{let n=!1;e.subscribe(z(i,r=>{n=!0,i.next(r)},()=>n?i.complete():i.error(t())))})}function TC(){return new pn}function di(t){return Z((e,i)=>{try{e.subscribe(i)}finally{i.add(t)}})}function Zt(t,e){let i=arguments.length>=2;return n=>n.pipe(t?pe((r,s)=>t(r,s,n)):Qe,_e(1),i?Pn(e):ha(()=>new pn))}function lr(t){return t<=0?()=>Xe:Z((e,i)=>{let n=[];e.subscribe(z(i,r=>{n.push(r),t{for(let r of n)i.next(r);i.complete()},void 0,()=>{n=null}))})}function gu(t,e){let i=arguments.length>=2;return n=>n.pipe(t?pe((r,s)=>t(r,s,n)):Qe,lr(1),i?Pn(e):ha(()=>new pn))}function fa(){return Z((t,e)=>{let i,n=!1;t.subscribe(z(e,r=>{let s=i;i=r,n&&e.next([s,r]),n=!0}))})}function yu(t,e){return Z(Km(t,e,arguments.length>=2,!0))}function os(t){return pe((e,i)=>t<=i)}function Ot(...t){let e=qt(t);return Z((i,n)=>{(e?On(t,i,e):On(t,i)).subscribe(n)})}function lt(t,e){return Z((i,n)=>{let r=null,s=0,o=!1,a=()=>o&&!r&&n.complete();i.subscribe(z(n,l=>{r?.unsubscribe();let c=0,u=s++;ye(t(l,u)).subscribe(r=z(n,d=>n.next(e?e(l,d,u,c++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function Kt(t){return Z((e,i)=>{ye(t).subscribe(z(i,()=>i.complete(),es)),!i.closed&&e.subscribe(i)})}function Ne(t,e,i){let n=R(t)||e||i?{next:t,error:e,complete:i}:t;return n?Z((r,s)=>{var o;(o=n.subscribe)===null||o===void 0||o.call(n);let a=!0;r.subscribe(z(s,l=>{var c;(c=n.next)===null||c===void 0||c.call(n,l),s.next(l)},()=>{var l;a=!1,(l=n.complete)===null||l===void 0||l.call(n),s.complete()},l=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,l),s.error(l)},()=>{var l,c;a&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):Qe}var AC="https://g.co/ng/security#xss",b=class extends Error{constructor(e,i){super(Ya(e,i)),this.code=e}};function Ya(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function bs(t){return{toString:t}.toString()}var pa="__parameters__";function xC(t){return function(...i){if(t){let n=t(...i);for(let r in n)this[r]=n[r]}}}function Ng(t,e,i){return bs(()=>{let n=xC(e);function r(...s){if(this instanceof r)return n.apply(this,s),this;let o=new r(...s);return a.annotation=o,a;function a(l,c,u){let d=l.hasOwnProperty(pa)?l[pa]:Object.defineProperty(l,pa,{value:[]})[pa];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return i&&(r.prototype=Object.create(i.prototype)),r.prototype.ngMetadataName=t,r.annotationCls=r,r})}var wt=globalThis;function ge(t){for(let e in t)if(t[e]===ge)return e;throw Error("Could not find renamed property on target object.")}function kC(t,e){for(let i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function tt(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(tt).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let i=e.indexOf(` +`);return i===-1?e:e.substring(0,i)}function Ru(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var OC=ge({__forward_ref__:ge});function Pe(t){return t.__forward_ref__=Pe,t.toString=function(){return tt(this())},t}function Je(t){return Pg(t)?t():t}function Pg(t){return typeof t=="function"&&t.hasOwnProperty(OC)&&t.__forward_ref__===Pe}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function le(t){return{providers:t.providers||[],imports:t.imports||[]}}function qa(t){return Qm(t,Lg)||Qm(t,Vg)}function Fg(t){return qa(t)!==null}function Qm(t,e){return t.hasOwnProperty(e)?t[e]:null}function RC(t){let e=t&&(t[Lg]||t[Vg]);return e||null}function Xm(t){return t&&(t.hasOwnProperty(Jm)||t.hasOwnProperty(NC))?t[Jm]:null}var Lg=ge({\u0275prov:ge}),Jm=ge({\u0275inj:ge}),Vg=ge({ngInjectableDef:ge}),NC=ge({ngInjectorDef:ge}),M=class{constructor(e,i){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof i=="number"?this.__NG_ELEMENT_ID__=i:i!==void 0&&(this.\u0275prov=C({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function jg(t){return t&&!!t.\u0275providers}var PC=ge({\u0275cmp:ge}),FC=ge({\u0275dir:ge}),LC=ge({\u0275pipe:ge}),VC=ge({\u0275mod:ge}),Ea=ge({\u0275fac:ge}),ls=ge({__NG_ELEMENT_ID__:ge}),eg=ge({__NG_ENV_ID__:ge});function cs(t){return typeof t=="string"?t:t==null?"":String(t)}function jC(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():cs(t)}function BC(t,e){let i=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new b(-200,t)}function Fd(t,e){throw new b(-201,!1)}var te=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(te||{}),Nu;function Bg(){return Nu}function _t(t){let e=Nu;return Nu=t,e}function Ug(t,e,i){let n=qa(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(i&te.Optional)return null;if(e!==void 0)return e;Fd(t,"Injector")}var UC={},us=UC,Pu="__NG_DI_FLAG__",Ia="ngTempTokenPath",$C="ngTokenPath",HC=/\n/gm,zC="\u0275",tg="__source",hr;function WC(){return hr}function Fn(t){let e=hr;return hr=t,e}function GC(t,e=te.Default){if(hr===void 0)throw new b(-203,!1);return hr===null?Ug(t,void 0,e):hr.get(t,e&te.Optional?null:void 0,e)}function m(t,e=te.Default){return(Bg()||GC)(Je(t),e)}function w(t,e=te.Default){return m(t,Za(e))}function Za(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Fu(t){let e=[];for(let i=0;i ");else if(typeof e=="object"){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+(typeof a=="string"?JSON.stringify(a):tt(a)))}r=`{${s.join(", ")}}`}return`${i}${n?"("+n+")":""}[${r}]: ${t.replace(HC,` + `)}`}var Ld=$g(Ng("Optional"),8);var Hg=$g(Ng("SkipSelf"),4);function pr(t,e){let i=t.hasOwnProperty(Ea);return i?t[Ea]:null}function KC(t,e,i){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(i)?Vd(i,e):e(i))}function zg(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function Sa(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function XC(t,e,i,n){let r=t.length;if(r==e)t.push(i,n);else if(r===1)t.push(n,t[0]),t[0]=i;else{for(r--,t.push(t[r-1],t[r]);r>e;){let s=r-2;t[r]=t[s],r--}t[e]=i,t[e+1]=n}}function jd(t,e,i){let n=Cs(t,e);return n>=0?t[n|1]=i:(n=~n,XC(t,n,e,i)),n}function vu(t,e){let i=Cs(t,e);if(i>=0)return t[i|1]}function Cs(t,e){return JC(t,e,1)}function JC(t,e,i){let n=0,r=t.length>>i;for(;r!==n;){let s=n+(r-n>>1),o=t[s<e?r=s:n=s+1}return~(r<e){o=s-1;break}}}for(;s-1){let s;for(;++rs?d="":d=r[u+1].toLowerCase(),n&2&&c!==d){if(Rt(n))return!1;o=!0}}}}return Rt(n)||o}function Rt(t){return(t&1)===0}function o0(t,e,i,n){if(e===null)return-1;let r=0;if(n||!i){let s=!1;for(;r-1)for(i++;i0?'="'+a+'"':"")+"]"}else n&8?r+="."+o:n&4&&(r+=" "+o);else r!==""&&!Rt(o)&&(e+=ig(s,r),r=""),n=o,s=s||!Rt(n);i++}return r!==""&&(e+=ig(s,r)),e}function d0(t){return t.map(u0).join(",")}function h0(t){let e=[],i=[],n=1,r=2;for(;n{let e=Jg(t),i=se(E({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Yg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Jt.Emulated,styles:t.styles||ct,_:null,schemas:t.schemas||null,tView:null,id:""});ey(i);let n=t.dependencies;return i.directiveDefs=sg(n,!1),i.pipeDefs=sg(n,!0),i.id=m0(i),i})}function f0(t){return mi(t)||Zg(t)}function p0(t){return t!==null}function ce(t){return bs(()=>({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 rg(t,e){if(t==null)return mr;let i={};for(let n in t)if(t.hasOwnProperty(n)){let r=t[n],s,o,a=jn.None;Array.isArray(r)?(a=r[0],s=r[1],o=r[2]??s):(s=r,o=r),e?(i[s]=a!==jn.None?[n,a]:n,e[s]=o):i[s]=n}return i}function G(t){return bs(()=>{let e=Jg(t);return ey(e),e})}function mi(t){return t[PC]||null}function Zg(t){return t[FC]||null}function Kg(t){return t[LC]||null}function Qg(t){let e=mi(t)||Zg(t)||Kg(t);return e!==null?e.standalone:!1}function Xg(t,e){let i=t[VC]||null;if(!i&&e===!0)throw new Error(`Type ${tt(t)} does not have '\u0275mod' property.`);return i}function Jg(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||mr,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||ct,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:rg(t.inputs,e),outputs:rg(t.outputs),debugInfo:null}}function ey(t){t.features?.forEach(e=>e(t))}function sg(t,e){if(!t)return null;let i=e?Kg:f0;return()=>(typeof t=="function"?t():t).map(n=>i(n)).filter(p0)}function m0(t){let e=0,i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let r of i)e=Math.imul(31,e)+r.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function Cr(t){return{\u0275providers:t}}function Ud(...t){return{\u0275providers:ty(!0,t),\u0275fromNgModule:!0}}function ty(t,...e){let i=[],n=new Set,r,s=o=>{i.push(o)};return Vd(e,o=>{let a=o;Vu(a,s,[],n)&&(r||=[],r.push(a))}),r!==void 0&&ny(r,s),i}function ny(t,e){for(let i=0;i{e(s,n)})}}function Vu(t,e,i,n){if(t=Je(t),!t)return!1;let r=null,s=Xm(t),o=!s&&mi(t);if(!s&&!o){let l=t.ngModule;if(s=Xm(l),s)r=l;else return!1}else{if(o&&!o.standalone)return!1;r=t}let a=n.has(r);if(o){if(a)return!1;if(n.add(r),o.dependencies){let l=typeof o.dependencies=="function"?o.dependencies():o.dependencies;for(let c of l)Vu(c,e,i,n)}}else if(s){if(s.imports!=null&&!a){n.add(r);let c;try{Vd(s.imports,u=>{Vu(u,e,i,n)&&(c||=[],c.push(u))})}finally{}c!==void 0&&ny(c,e)}if(!a){let c=pr(r)||(()=>new r);e({provide:r,useFactory:c,deps:ct},r),e({provide:Gg,useValue:r,multi:!0},r),e({provide:gr,useValue:()=>m(r),multi:!0},r)}let l=s.providers;if(l!=null&&!a){let c=t;$d(l,u=>{e(u,c)})}}else return!1;return r!==t&&t.providers!==void 0}function $d(t,e){for(let i of t)jg(i)&&(i=i.\u0275providers),Array.isArray(i)?$d(i,e):e(i)}var g0=ge({provide:String,useValue:ge});function iy(t){return t!==null&&typeof t=="object"&&g0 in t}function y0(t){return!!(t&&t.useExisting)}function v0(t){return!!(t&&t.useFactory)}function yr(t){return typeof t=="function"}function _0(t){return!!t.useClass}var Ka=new M(""),va={},w0={},_u;function Hd(){return _u===void 0&&(_u=new Ma),_u}var Ye=class{},hs=class extends Ye{get destroyed(){return this._destroyed}constructor(e,i,n,r){super(),this.parent=i,this.source=n,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Bu(e,o=>this.processProvider(o)),this.records.set(Wg,cr(void 0,this)),r.has("environment")&&this.records.set(Ye,cr(void 0,this));let s=this.records.get(Ka);s!=null&&typeof s.value=="string"&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Gg,ct,te.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=oe(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let i=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of i)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),oe(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let i=Fn(this),n=_t(void 0),r;try{return e()}finally{Fn(i),_t(n)}}get(e,i=us,n=te.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(eg))return e[eg](this);n=Za(n);let r,s=Fn(this),o=_t(void 0);try{if(!(n&te.SkipSelf)){let l=this.records.get(e);if(l===void 0){let c=I0(e)&&qa(e);c&&this.injectableDefInScope(c)?l=cr(ju(e),va):l=null,this.records.set(e,l)}if(l!=null)return this.hydrate(e,l)}let a=n&te.Self?Hd():this.parent;return i=n&te.Optional&&i===us?null:i,a.get(e,i)}catch(a){if(a.name==="NullInjectorError"){if((a[Ia]=a[Ia]||[]).unshift(tt(e)),s)throw a;return qC(a,e,"R3InjectorError",this.source)}else throw a}finally{_t(o),Fn(s)}}resolveInjectorInitializers(){let e=oe(null),i=Fn(this),n=_t(void 0),r;try{let s=this.get(gr,ct,te.Self);for(let o of s)o()}finally{Fn(i),_t(n),oe(e)}}toString(){let e=[],i=this.records;for(let n of i.keys())e.push(tt(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new b(205,!1)}processProvider(e){e=Je(e);let i=yr(e)?e:Je(e&&e.provide),n=b0(e);if(!yr(e)&&e.multi===!0){let r=this.records.get(i);r||(r=cr(void 0,va,!0),r.factory=()=>Fu(r.multi),this.records.set(i,r)),i=e,r.multi.push(e)}this.records.set(i,n)}hydrate(e,i){let n=oe(null);try{return i.value===va&&(i.value=w0,i.value=i.factory()),typeof i.value=="object"&&i.value&&E0(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}finally{oe(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let i=Je(e.providedIn);return typeof i=="string"?i==="any"||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(e){let i=this._onDestroyHooks.indexOf(e);i!==-1&&this._onDestroyHooks.splice(i,1)}};function ju(t){let e=qa(t),i=e!==null?e.factory:pr(t);if(i!==null)return i;if(t instanceof M)throw new b(204,!1);if(t instanceof Function)return D0(t);throw new b(204,!1)}function D0(t){if(t.length>0)throw new b(204,!1);let i=RC(t);return i!==null?()=>i.factory(t):()=>new t}function b0(t){if(iy(t))return cr(void 0,t.useValue);{let e=ry(t);return cr(e,va)}}function ry(t,e,i){let n;if(yr(t)){let r=Je(t);return pr(r)||ju(r)}else if(iy(t))n=()=>Je(t.useValue);else if(v0(t))n=()=>t.useFactory(...Fu(t.deps||[]));else if(y0(t))n=()=>m(Je(t.useExisting));else{let r=Je(t&&(t.useClass||t.provide));if(C0(t))n=()=>new r(...Fu(t.deps));else return pr(r)||ju(r)}return n}function cr(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function C0(t){return!!t.deps}function E0(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function I0(t){return typeof t=="function"||typeof t=="object"&&t instanceof M}function Bu(t,e){for(let i of t)Array.isArray(i)?Bu(i,e):i&&jg(i)?Bu(i.\u0275providers,e):e(i)}function Ct(t,e){t instanceof hs&&t.assertNotDestroyed();let i,n=Fn(t),r=_t(void 0);try{return e()}finally{Fn(n),_t(r)}}function sy(){return Bg()!==void 0||WC()!=null}function oy(t){if(!sy())throw new b(-203,!1)}function S0(t){return typeof t=="function"}var nn=0,W=1,B=2,qe=3,Pt=4,Lt=5,fs=6,Ta=7,We=8,vr=9,mn=10,be=11,ps=12,og=13,Er=14,Ft=15,gi=16,ur=17,gn=18,Qa=19,ay=20,Ln=21,wu=22,Dt=23,bt=25,zd=1;var yi=7,Aa=8,_r=9,Ge=10,xa=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(xa||{});function Vn(t){return Array.isArray(t)&&typeof t[zd]=="object"}function wn(t){return Array.isArray(t)&&t[zd]===!0}function ly(t){return(t.flags&4)!==0}function Xa(t){return t.componentOffset>-1}function Wd(t){return(t.flags&1)===1}function yn(t){return!!t.template}function Uu(t){return(t[B]&512)!==0}var $u=class{constructor(e,i,n){this.previousValue=e,this.currentValue=i,this.firstChange=n}isFirstChange(){return this.firstChange}};function cy(t,e,i,n){e!==null?e.applyValueToInputSignal(e,n):t[i]=n}function nt(){return uy}function uy(t){return t.type.prototype.ngOnChanges&&(t.setInput=T0),M0}nt.ngInherit=!0;function M0(){let t=hy(this),e=t?.current;if(e){let i=t.previous;if(i===mr)t.previous=e;else for(let n in e)i[n]=e[n];t.current=null,this.ngOnChanges(e)}}function T0(t,e,i,n,r){let s=this.declaredInputs[n],o=hy(t)||A0(t,{previous:mr,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new $u(c&&c.currentValue,i,l===mr),cy(t,e,r,i)}var dy="__ngSimpleChanges__";function hy(t){return t[dy]||null}function A0(t,e){return t[dy]=e}var ag=null;var Qt=function(t,e,i){ag?.(t,e,i)},fy="svg",x0="math";function en(t){for(;Array.isArray(t);)t=t[nn];return t}function k0(t){for(;Array.isArray(t);){if(typeof t[zd]=="object")return t;t=t[nn]}return null}function py(t,e){return en(e[t])}function Et(t,e){return en(e[t.index])}function Gd(t,e){return t.data[e]}function O0(t,e){return t[e]}function $n(t,e){let i=e[t];return Vn(i)?i:i[nn]}function R0(t){return(t[B]&4)===4}function Yd(t){return(t[B]&128)===128}function N0(t){return wn(t[qe])}function wr(t,e){return e==null?null:t[e]}function my(t){t[ur]=0}function gy(t){t[B]&1024||(t[B]|=1024,Yd(t)&&Ja(t))}function P0(t,e){for(;t>0;)e=e[Er],t--;return e}function ms(t){return!!(t[B]&9216||t[Dt]?.dirty)}function Hu(t){t[mn].changeDetectionScheduler?.notify(7),t[B]&64&&(t[B]|=1024),ms(t)&&Ja(t)}function Ja(t){t[mn].changeDetectionScheduler?.notify(0);let e=vi(t);for(;e!==null&&!(e[B]&8192||(e[B]|=8192,!Yd(e)));)e=vi(e)}function yy(t,e){if((t[B]&256)===256)throw new b(911,!1);t[Ln]===null&&(t[Ln]=[]),t[Ln].push(e)}function F0(t,e){if(t[Ln]===null)return;let i=t[Ln].indexOf(e);i!==-1&&t[Ln].splice(i,1)}function vi(t){let e=t[qe];return wn(e)?e[qe]:e}var K={lFrame:My(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var vy=!1;function L0(){return K.lFrame.elementDepthCount}function V0(){K.lFrame.elementDepthCount++}function j0(){K.lFrame.elementDepthCount--}function _y(){return K.bindingsEnabled}function B0(){return K.skipHydrationRootTNode!==null}function U0(t){return K.skipHydrationRootTNode===t}function $0(){K.skipHydrationRootTNode=null}function ne(){return K.lFrame.lView}function Ae(){return K.lFrame.tView}function ie(t){return K.lFrame.contextLView=t,t[We]}function re(t){return K.lFrame.contextLView=null,t}function it(){let t=wy();for(;t!==null&&t.type===64;)t=t.parent;return t}function wy(){return K.lFrame.currentTNode}function H0(){let t=K.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Es(t,e){let i=K.lFrame;i.currentTNode=t,i.isParent=e}function Dy(){return K.lFrame.isParent}function z0(){K.lFrame.isParent=!1}function W0(){return K.lFrame.contextLView}function by(){return vy}function lg(t){vy=t}function Cy(){let t=K.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function G0(){return K.lFrame.bindingIndex}function Y0(t){return K.lFrame.bindingIndex=t}function Hn(){return K.lFrame.bindingIndex++}function qd(t){let e=K.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function q0(){return K.lFrame.inI18n}function Z0(t,e){let i=K.lFrame;i.bindingIndex=i.bindingRootIndex=t,zu(e)}function K0(){return K.lFrame.currentDirectiveIndex}function zu(t){K.lFrame.currentDirectiveIndex=t}function Zd(t){let e=K.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Ey(){return K.lFrame.currentQueryIndex}function Kd(t){K.lFrame.currentQueryIndex=t}function Q0(t){let e=t[W];return e.type===2?e.declTNode:e.type===1?t[Lt]:null}function Iy(t,e,i){if(i&te.SkipSelf){let r=e,s=t;for(;r=r.parent,r===null&&!(i&te.Host);)if(r=Q0(s),r===null||(s=s[Er],r.type&10))break;if(r===null)return!1;e=r,t=s}let n=K.lFrame=Sy();return n.currentTNode=e,n.lView=t,!0}function Qd(t){let e=Sy(),i=t[W];K.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function Sy(){let t=K.lFrame,e=t===null?null:t.child;return e===null?My(t):e}function My(t){let e={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 t!==null&&(t.child=e),e}function Ty(){let t=K.lFrame;return K.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Ay=Ty;function Xd(){let t=Ty();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 X0(t){return(K.lFrame.contextLView=P0(t,K.lFrame.contextLView))[We]}function Dn(){return K.lFrame.selectedIndex}function _i(t){K.lFrame.selectedIndex=t}function Is(){let t=K.lFrame;return Gd(t.tView,t.selectedIndex)}function zn(){K.lFrame.currentNamespace=fy}function Ir(){J0()}function J0(){K.lFrame.currentNamespace=null}function eE(){return K.lFrame.currentNamespace}var xy=!0;function Jd(){return xy}function eh(t){xy=t}function tE(t,e,i){let{ngOnChanges:n,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(n){let o=uy(e);(i.preOrderHooks??=[]).push(t,o),(i.preOrderCheckHooks??=[]).push(t,o)}r&&(i.preOrderHooks??=[]).push(0-t,r),s&&((i.preOrderHooks??=[]).push(t,s),(i.preOrderCheckHooks??=[]).push(t,s))}function th(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[l]<0&&(t[ur]+=65536),(a>14>16&&(t[B]&3)===e&&(t[B]+=16384,cg(a,s)):cg(a,s)}var fr=-1,wi=class{constructor(e,i,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=n}};function iE(t){return t instanceof wi}function rE(t){return(t.flags&8)!==0}function sE(t){return(t.flags&16)!==0}var bu={},Wu=class{constructor(e,i){this.injector=e,this.parentInjector=i}get(e,i,n){n=Za(n);let r=this.injector.get(e,bu,n);return r!==bu||i===bu?r:this.parentInjector.get(e,i,n)}};function Oy(t){return t!==fr}function ka(t){return t&32767}function oE(t){return t>>16}function Oa(t,e){let i=oE(t),n=e;for(;i>0;)n=n[Er],i--;return n}var Gu=!0;function ug(t){let e=Gu;return Gu=t,e}var aE=256,Ry=aE-1,Ny=5,lE=0,Xt={};function cE(t,e,i){let n;typeof i=="string"?n=i.charCodeAt(0)||0:i.hasOwnProperty(ls)&&(n=i[ls]),n==null&&(n=i[ls]=lE++);let r=n&Ry,s=1<>Ny)]|=s}function Ra(t,e){let i=Py(t,e);if(i!==-1)return i;let n=e[W];n.firstCreatePass&&(t.injectorIndex=e.length,Cu(n.data,t),Cu(e,null),Cu(n.blueprint,null));let r=nh(t,e),s=t.injectorIndex;if(Oy(r)){let o=ka(r),a=Oa(r,e),l=a[W].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Cu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Py(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function nh(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let i=0,n=null,r=e;for(;r!==null;){if(n=By(r),n===null)return fr;if(i++,r=r[Er],n.injectorIndex!==-1)return n.injectorIndex|i<<16}return fr}function Yu(t,e,i){cE(t,e,i)}function Fy(t,e,i){if(i&te.Optional||t!==void 0)return t;Fd(e,"NodeInjector")}function Ly(t,e,i,n){if(i&te.Optional&&n===void 0&&(n=null),!(i&(te.Self|te.Host))){let r=t[vr],s=_t(void 0);try{return r?r.get(e,n,i&te.Optional):Ug(e,n,i&te.Optional)}finally{_t(s)}}return Fy(n,e,i)}function Vy(t,e,i,n=te.Default,r){if(t!==null){if(e[B]&2048&&!(n&te.Self)){let o=fE(t,e,i,n,Xt);if(o!==Xt)return o}let s=jy(t,e,i,n,Xt);if(s!==Xt)return s}return Ly(e,i,n,r)}function jy(t,e,i,n,r){let s=dE(i);if(typeof s=="function"){if(!Iy(e,t,n))return n&te.Host?Fy(r,i,n):Ly(e,i,n,r);try{let o;if(o=s(n),o==null&&!(n&te.Optional))Fd(i);else return o}finally{Ay()}}else if(typeof s=="number"){let o=null,a=Py(t,e),l=fr,c=n&te.Host?e[Ft][Lt]:null;for((a===-1||n&te.SkipSelf)&&(l=a===-1?nh(t,e):e[a+8],l===fr||!hg(n,!1)?a=-1:(o=e[W],a=ka(l),e=Oa(l,e)));a!==-1;){let u=e[W];if(dg(s,a,u.data)){let d=uE(a,e,i,o,n,c);if(d!==Xt)return d}l=e[a+8],l!==fr&&hg(n,e[W].data[a+8]===c)&&dg(s,a,e)?(o=u,a=ka(l),e=Oa(l,e)):a=-1}}return r}function uE(t,e,i,n,r,s){let o=e[W],a=o.data[t+8],l=n==null?Xa(a)&&Gu:n!=o&&(a.type&3)!==0,c=r&te.Host&&s===a,u=Da(a,o,i,l,c);return u!==null?Di(e,o,u,a):Xt}function Da(t,e,i,n,r){let s=t.providerIndexes,o=e.data,a=s&1048575,l=t.directiveStart,c=t.directiveEnd,u=s>>20,d=n?a:a+u,f=r?a+u:c;for(let h=d;h=l&&p.type===i)return h}if(r){let h=o[l];if(h&&yn(h)&&h.type===i)return l}return null}function Di(t,e,i,n){let r=t[i],s=e.data;if(iE(r)){let o=r;o.resolving&&BC(jC(s[i]));let a=ug(o.canSeeViewProviders);o.resolving=!0;let l,c=o.injectImpl?_t(o.injectImpl):null,u=Iy(t,n,te.Default);try{r=t[i]=o.factory(void 0,s,t,n),e.firstCreatePass&&i>=n.directiveStart&&tE(i,s[i],e)}finally{c!==null&&_t(c),ug(a),o.resolving=!1,Ay()}}return r}function dE(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(ls)?t[ls]:void 0;return typeof e=="number"?e>=0?e&Ry:hE:e}function dg(t,e,i){let n=1<>Ny)]&n)}function hg(t,e){return!(t&te.Self)&&!(t&te.Host&&e)}var pi=class{constructor(e,i){this._tNode=e,this._lView=i}get(e,i,n){return Vy(this._tNode,this._lView,e,Za(n),i)}};function hE(){return new pi(it(),ne())}function It(t){return bs(()=>{let e=t.prototype.constructor,i=e[Ea]||qu(e),n=Object.prototype,r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==n;){let s=r[Ea]||qu(r);if(s&&s!==i)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function qu(t){return Pg(t)?()=>{let e=qu(Je(t));return e&&e()}:pr(t)}function fE(t,e,i,n,r){let s=t,o=e;for(;s!==null&&o!==null&&o[B]&2048&&!(o[B]&512);){let a=jy(s,o,i,n|te.Self,Xt);if(a!==Xt)return a;let l=s.parent;if(!l){let c=o[ay];if(c){let u=c.get(i,Xt,n);if(u!==Xt)return u}l=By(o),o=o[Er]}s=l}return r}function By(t){let e=t[W],i=e.type;return i===2?e.declTNode:i===1?t[Lt]:null}function fg(t,e=null,i=null,n){let r=Uy(t,e,i,n);return r.resolveInjectorInitializers(),r}function Uy(t,e=null,i=null,n,r=new Set){let s=[i||ct,Ud(t)];return n=n||(typeof t=="object"?void 0:tt(t)),new hs(s,e||Hd(),n||null,r)}var fi=class fi{static create(e,i){if(Array.isArray(e))return fg({name:""},i,e,"");{let n=e.name??"";return fg({name:n},e.parent,e.providers,n)}}};fi.THROW_IF_NOT_FOUND=us,fi.NULL=new Ma,fi.\u0275prov=C({token:fi,providedIn:"any",factory:()=>m(Wg)}),fi.__NG_ELEMENT_ID__=-1;var Te=fi;var pE=new M("");pE.__NG_ELEMENT_ID__=t=>{let e=it();if(e===null)throw new b(204,!1);if(e.type&2)return e.value;if(t&te.Optional)return null;throw new b(204,!1)};var mE="ngOriginalError";function Eu(t){return t[mE]}var ih=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=gE,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Zu=class extends ih{constructor(e){super(),this._lView=e}onDestroy(e){return yy(this._lView,e),()=>F0(this._lView,e)}};function gE(){return new Zu(ne())}var Wn=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Re(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Ku=class extends F{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,sy()&&(this.destroyRef=w(ih,{optional:!0})??void 0,this.pendingTasks=w(Wn,{optional:!0})??void 0)}emit(e){let i=oe(null);try{super.next(e)}finally{oe(i)}}subscribe(e,i,n){let r=e,s=i||(()=>null),o=n;if(e&&typeof e=="object"){let l=e;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=this.wrapInTimeout(s),r&&(r=this.wrapInTimeout(r)),o&&(o=this.wrapInTimeout(o)));let a=super.subscribe({next:r,error:s,complete:o});return e instanceof Q&&e.add(a),a}wrapInTimeout(e){return i=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(i),n!==void 0&&this.pendingTasks?.remove(n)})}}},A=Ku;function Na(...t){}function $y(t){let e,i;function n(){t=Na;try{i!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(i),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(()=>{t(),n()})),()=>n()}function pg(t){return queueMicrotask(()=>t()),()=>{t=Na}}var rh="isAngularZone",Pa=rh+"_ID",yE=0,L=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new A(!1),this.onMicrotaskEmpty=new A(!1),this.onStable=new A(!1),this.onError=new A(!1),typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!n&&i,r.shouldCoalesceRunChangeDetection=n,r.callbackScheduled=!1,wE(r)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(rh)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(e,i,n){return this._inner.run(e,i,n)}runTask(e,i,n,r){let s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,vE,Na,Na);try{return s.runTask(o,i,n)}finally{s.cancelTask(o)}}runGuarded(e,i,n){return this._inner.runGuarded(e,i,n)}runOutsideAngular(e){return this._outer.run(e)}},vE={};function sh(t){if(t._nesting==0&&!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 _E(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{$y(()=>{t.callbackScheduled=!1,Qu(t),t.isCheckStableRunning=!0,sh(t),t.isCheckStableRunning=!1})}),Qu(t))}function wE(t){let e=()=>{_E(t)},i=yE++;t._inner=t._inner.fork({name:"angular",properties:{[rh]:!0,[Pa]:i,[Pa+i]:!0},onInvokeTask:(n,r,s,o,a,l)=>{if(DE(l))return n.invokeTask(s,o,a,l);try{return mg(t),n.invokeTask(s,o,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),gg(t)}},onInvoke:(n,r,s,o,a,l,c)=>{try{return mg(t),n.invoke(s,o,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!bE(l)&&e(),gg(t)}},onHasTask:(n,r,s,o)=>{n.hasTask(s,o),r===s&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,Qu(t),sh(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,s,o)=>(n.handleError(s,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function Qu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function mg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function gg(t){t._nesting--,sh(t)}var Xu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new A,this.onMicrotaskEmpty=new A,this.onStable=new A,this.onError=new A}run(e,i,n){return e.apply(i,n)}runGuarded(e,i,n){return e.apply(i,n)}runOutsideAngular(e){return e()}runTask(e,i,n,r){return e.apply(i,n)}};function DE(t){return Hy(t,"__ignore_ng_zone__")}function bE(t){return Hy(t,"__scheduler_tick__")}function Hy(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var vn=class{constructor(){this._console=console}handleError(e){let i=this._findOriginalError(e);this._console.error("ERROR",e),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(e){let i=e&&Eu(e);for(;i&&Eu(i);)i=Eu(i);return i||null}},CE=new M("",{providedIn:"root",factory:()=>{let t=w(L),e=w(vn);return i=>t.runOutsideAngular(()=>e.handleError(i))}});function EE(){return Sr(it(),ne())}function Sr(t,e){return new ue(Et(t,e))}var ue=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=EE;let t=e;return t})();function IE(t){return t instanceof ue?t.nativeElement:t}function SE(){return this._results[Symbol.iterator]()}var Fa=class t{get changes(){return this._changes??=new A}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let i=t.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=SE)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,i){return this._results.reduce(e,i)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,i){this.dirty=!1;let n=QC(e);(this._changesDetected=!KC(this._results,n,i))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}};function zy(t){return(t.flags&128)===128}var Wy=new Map,ME=0;function TE(){return ME++}function AE(t){Wy.set(t[Qa],t)}function xE(t){Wy.delete(t[Qa])}var yg="__ngContext__";function bi(t,e){Vn(e)?(t[yg]=e[Qa],AE(e)):t[yg]=e}function Gy(t){return qy(t[ps])}function Yy(t){return qy(t[Pt])}function qy(t){for(;t!==null&&!wn(t);)t=t[Pt];return t}var Ju;function Zy(t){Ju=t}function kE(){if(Ju!==void 0)return Ju;if(typeof document<"u")return document;throw new b(210,!1)}var Ss=new M("",{providedIn:"root",factory:()=>OE}),OE="ng",oh=new M(""),Vt=new M("",{providedIn:"platform",factory:()=>"unknown"});var Ms=new M(""),Ts=new M("",{providedIn:"root",factory:()=>kE().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var RE="h",NE="b";var PE=()=>null;function ah(t,e,i=!1){return PE(t,e,i)}var Ky=!1,FE=new M("",{providedIn:"root",factory:()=>Ky});var ed=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${AC})`}};function el(t){return t instanceof ed?t.changingThisBreaksApplicationSecurity:t}function Qy(t){return t instanceof Function?t():t}function Xy(t){return(t??w(Te)).get(Vt)==="browser"}var _n=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(_n||{}),LE;function lh(t,e){return LE(t,e)}function dr(t,e,i,n,r){if(n!=null){let s,o=!1;wn(n)?s=n:Vn(n)&&(o=!0,n=n[nn]);let a=en(n);t===0&&i!==null?r==null?nv(e,i,a):La(e,i,a,r||null,!0):t===1&&i!==null?La(e,i,a,r||null,!0):t===2?XE(e,a,o):t===3&&e.destroyNode(a),s!=null&&eI(e,t,s,i,r)}}function VE(t,e){return t.createText(e)}function jE(t,e,i){t.setValue(e,i)}function Jy(t,e,i){return t.createElement(e,i)}function BE(t,e){ev(t,e),e[nn]=null,e[Lt]=null}function UE(t,e,i,n,r,s){n[nn]=r,n[Lt]=e,nl(t,n,i,1,r,s)}function ev(t,e){e[mn].changeDetectionScheduler?.notify(8),nl(t,e,e[be],2,null,null)}function $E(t){let e=t[ps];if(!e)return Iu(t[W],t);for(;e;){let i=null;if(Vn(e))i=e[ps];else{let n=e[Ge];n&&(i=n)}if(!i){for(;e&&!e[Pt]&&e!==t;)Vn(e)&&Iu(e[W],e),e=e[qe];e===null&&(e=t),Vn(e)&&Iu(e[W],e),i=e&&e[Pt]}e=i}}function HE(t,e,i,n){let r=Ge+n,s=i.length;n>0&&(i[r-1][Pt]=e),n0&&(t[i-1][Pt]=n[Pt]);let s=Sa(t,Ge+e);BE(n[W],n);let o=s[gn];o!==null&&o.detachView(s[W]),n[qe]=null,n[Pt]=null,n[B]&=-129}return n}function tl(t,e){if(!(e[B]&256)){let i=e[be];i.destroyNode&&nl(t,e,i,3,null,null),$E(e)}}function Iu(t,e){if(e[B]&256)return;let i=oe(null);try{e[B]&=-129,e[B]|=256,e[Dt]&&tu(e[Dt]),WE(t,e),zE(t,e),e[W].type===1&&e[be].destroy();let n=e[gi];if(n!==null&&wn(e[qe])){n!==e[qe]&&ch(n,e);let r=e[gn];r!==null&&r.detachView(t)}xE(e)}finally{oe(i)}}function zE(t,e){let i=t.cleanup,n=e[Ta];if(i!==null)for(let s=0;s=0?n[o]():n[-o].unsubscribe(),s+=2}else{let o=n[i[s+1]];i[s].call(o)}n!==null&&(e[Ta]=null);let r=e[Ln];if(r!==null){e[Ln]=null;for(let s=0;s-1){let{encapsulation:s}=t.data[n.directiveStart+r];if(s===Jt.None||s===Jt.Emulated)return null}return Et(n,i)}}function La(t,e,i,n,r){t.insertBefore(e,i,n,r)}function nv(t,e,i){t.appendChild(e,i)}function vg(t,e,i,n,r){n!==null?La(t,e,i,n,r):nv(t,e,i)}function iv(t,e){return t.parentNode(e)}function qE(t,e){return t.nextSibling(e)}function ZE(t,e,i){return QE(t,e,i)}function KE(t,e,i){return t.type&40?Et(t,i):null}var QE=KE,_g;function uh(t,e,i,n){let r=GE(t,n,e),s=e[be],o=n.parent||e[Lt],a=ZE(o,n,e);if(r!=null)if(Array.isArray(i))for(let l=0;lbt&&av(t,e,bt,!1),Qt(o?2:0,r),i(n,r)}finally{_i(s),Qt(o?3:1,r)}}function dv(t,e,i){if(ly(e)){let n=oe(null);try{let r=e.directiveStart,s=e.directiveEnd;for(let o=r;onull;function cI(t,e,i,n){let r=wv(e);r.push(i),t.firstCreatePass&&Dv(t).push(n,r.length-1)}function uI(t,e,i,n,r,s){let o=e?e.injectorIndex:-1,a=0;return B0()&&(a|=128),{type:i,index:n,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function wg(t,e,i,n,r){for(let s in e){if(!e.hasOwnProperty(s))continue;let o=e[s];if(o===void 0)continue;n??={};let a,l=jn.None;Array.isArray(o)?(a=o[0],l=o[1]):a=o;let c=s;if(r!==null){if(!r.hasOwnProperty(s))continue;c=r[s]}t===0?Dg(n,i,c,a,l):Dg(n,i,c,a)}return n}function Dg(t,e,i,n,r){let s;t.hasOwnProperty(i)?(s=t[i]).push(e,n):s=t[i]=[e,n],r!==void 0&&s.push(r)}function dI(t,e,i){let n=e.directiveStart,r=e.directiveEnd,s=t.data,o=e.attrs,a=[],l=null,c=null;for(let u=n;u0;){let i=t[--e];if(typeof i=="number"&&i<0)return i}return 0}function gI(t,e,i,n){let r=i.directiveStart,s=i.directiveEnd;Xa(i)&&CI(e,i,t.data[r+i.componentOffset]),t.firstCreatePass||Ra(i,e),bi(n,e);let o=i.initialInputs;for(let a=r;a{Ja(t.lView)},consumerOnSignalRead(){this.lView[Dt]=this}});function FI(t){let e=t[Dt]??Object.create(LI);return e.lView=t,e}var LI=se(E({},Jr),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=vi(t.lView);for(;e&&!Tv(e[W]);)e=vi(e);e&&gy(e)},consumerOnSignalRead(){this.lView[Dt]=this}});function Tv(t){return t.type!==2}var VI=100;function Av(t,e=!0,i=0){let n=t[mn],r=n.rendererFactory,s=!1;s||r.begin?.();try{jI(t,i)}catch(o){throw e&&Cv(t,o),o}finally{s||(r.end?.(),n.inlineEffectRunner?.flush())}}function jI(t,e){let i=by();try{lg(!0),rd(t,e);let n=0;for(;ms(t);){if(n===VI)throw new b(103,!1);n++,rd(t,1)}}finally{lg(i)}}function BI(t,e,i,n){let r=e[B];if((r&256)===256)return;let s=!1,o=!1;!s&&e[mn].inlineEffectRunner?.flush(),Qd(e);let a=!0,l=null,c=null;s||(Tv(t)?(c=OI(e),l=Vo(c)):cm()===null?(a=!1,c=FI(e),l=Vo(c)):e[Dt]&&(tu(e[Dt]),e[Dt]=null));try{my(e),Y0(t.bindingStartIndex),i!==null&&uv(t,e,i,2,n);let u=(r&3)===3;if(!s)if(u){let h=t.preOrderCheckHooks;h!==null&&_a(e,h,null)}else{let h=t.preOrderHooks;h!==null&&wa(e,h,0,null),Du(e,0)}if(o||UI(e),xv(e,0),t.contentQueries!==null&&_v(t,e),!s)if(u){let h=t.contentCheckHooks;h!==null&&_a(e,h)}else{let h=t.contentHooks;h!==null&&wa(e,h,1),Du(e,1)}iI(t,e);let d=t.components;d!==null&&Ov(e,d,0);let f=t.viewQuery;if(f!==null&&id(2,f,n),!s)if(u){let h=t.viewCheckHooks;h!==null&&_a(e,h)}else{let h=t.viewHooks;h!==null&&wa(e,h,2),Du(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[wu]){for(let h of e[wu])h();e[wu]=null}s||(e[B]&=-73)}catch(u){throw s||Ja(e),u}finally{c!==null&&(Jc(c,l),a&&NI(c)),Xd()}}function xv(t,e){for(let i=Gy(t);i!==null;i=Yy(i))for(let n=Ge;n-1&&(gs(e,n),Sa(i,n))}this._attachedToViewContainer=!1}tl(this._lView[W],this._lView)}onDestroy(e){yy(this._lView,e)}markForCheck(){mh(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[B]&=-129}reattach(){Hu(this._lView),this._lView[B]|=128}detectChanges(){this._lView[B]|=1024,Av(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Uu(this._lView),i=this._lView[gi];i!==null&&!e&&ch(i,this._lView),ev(this._lView[W],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=e;let i=Uu(this._lView),n=this._lView[gi];n!==null&&!i&&tv(n,this._lView),Hu(this._lView)}},ft=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=WI;let t=e;return t})(),HI=ft,zI=class extends HI{constructor(e,i,n){super(),this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){let r=al(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n});return new Ci(r)}};function WI(){return gh(it(),ne())}function gh(t,e){return t.type&4?new zI(e,t,Sr(t,e)):null}var r2=new RegExp(`^(\\d+)*(${NE}|${RE})*(.*)`);var GI=()=>null;function vs(t,e){return GI(t,e)}var Dr=class{},yh=new M("",{providedIn:"root",factory:()=>!1});var Rv=new M(""),sd=class{},ja=class{};function YI(t){let e=Error(`No component factory found for ${tt(t)}.`);return e[qI]=t,e}var qI="ngComponent";var od=class{resolveComponentFactory(e){throw YI(e)}},xh=class xh{};xh.NULL=new od;var tn=xh,Bn=class{},Mt=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>ZI();let t=e;return t})();function ZI(){let t=ne(),e=it(),i=$n(e.index,t);return(Vn(i)?i:t)[be]}var KI=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var bg=new Set;function jt(t){bg.has(t)||(bg.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var et=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(et||{}),Nv={destroy(){}};function vh(t,e){!e&&oy(vh);let i=e?.injector??w(Te);return Xy(i)?(jt("NgAfterRender"),Pv(t,i,!1,e?.phase??et.MixedReadWrite)):Nv}function Mr(t,e){!e&&oy(Mr);let i=e?.injector??w(Te);return Xy(i)?(jt("NgAfterNextRender"),Pv(t,i,!0,e?.phase??et.MixedReadWrite)):Nv}function QI(t,e){if(t instanceof Function)switch(e){case et.EarlyRead:return{earlyRead:t};case et.Write:return{write:t};case et.MixedReadWrite:return{mixedReadWrite:t};case et.Read:return{read:t}}return t}function Pv(t,e,i,n){let r=QI(t,n),s=e.get(_h),o=s.handler??=new ld,a=[],l=[],c=()=>{for(let h of l)o.unregister(h);u()},u=e.get(ih).onDestroy(c),d=0,f=(h,p)=>{if(!p)return;let y=i?(...I)=>(d--,d<1&&c(),p(...I)):p,D=Ct(e,()=>new ad(h,a,y));o.register(D),l.push(D),d++};return f(et.EarlyRead,r.earlyRead),f(et.Write,r.write),f(et.MixedReadWrite,r.mixedReadWrite),f(et.Read,r.read),{destroy:c}}var ad=class{constructor(e,i,n){this.phase=e,this.pipelinedArgs=i,this.callbackFn=n,this.zone=w(L),this.errorHandler=w(vn,{optional:!0}),w(Dr,{optional:!0})?.notify(6)}invoke(){try{let e=this.zone.runOutsideAngular(()=>this.callbackFn.apply(null,this.pipelinedArgs));this.pipelinedArgs.splice(0,this.pipelinedArgs.length,e)}catch(e){this.errorHandler?.handleError(e)}}},ld=class{constructor(){this.executingCallbacks=!1,this.buckets={[et.EarlyRead]:new Set,[et.Write]:new Set,[et.MixedReadWrite]:new Set,[et.Read]:new Set},this.deferredCallbacks=new Set}register(e){(this.executingCallbacks?this.deferredCallbacks:this.buckets[e.phase]).add(e)}unregister(e){this.buckets[e.phase].delete(e),this.deferredCallbacks.delete(e)}execute(){this.executingCallbacks=!0;for(let e of Object.values(this.buckets))for(let i of e)i.invoke();this.executingCallbacks=!1;for(let e of this.deferredCallbacks)this.buckets[e.phase].add(e);this.deferredCallbacks.clear()}destroy(){for(let e of Object.values(this.buckets))e.clear();this.deferredCallbacks.clear()}},_h=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function cd(t,e,i){let n=i?t.styles:null,r=i?t.classes:null,s=0;if(e!==null)for(let o=0;o0&&sv(t,i,s.join(" "))}}function rS(t,e,i){let n=t.projection=[];for(let r=0;r{let e=class e{};e.__NG_ELEMENT_ID__=oS;let t=e;return t})();function oS(){let t=it();return Lv(t,ne())}var aS=rt,Fv=class extends aS{constructor(e,i,n){super(),this._lContainer=e,this._hostTNode=i,this._hostLView=n}get element(){return Sr(this._hostTNode,this._hostLView)}get injector(){return new pi(this._hostTNode,this._hostLView)}get parentInjector(){let e=nh(this._hostTNode,this._hostLView);if(Oy(e)){let i=Oa(e,this._hostLView),n=ka(e),r=i[W].data[n+8];return new pi(r,i)}else return new pi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let i=Eg(this._lContainer);return i!==null&&i[e]||null}get length(){return this._lContainer.length-Ge}createEmbeddedView(e,i,n){let r,s;typeof n=="number"?r=n:n!=null&&(r=n.index,s=n.injector);let o=vs(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(i||{},s,o);return this.insertImpl(a,r,ys(this._hostTNode,o)),a}createComponent(e,i,n,r,s){let o=e&&!S0(e),a;if(o)a=i;else{let p=i||{};a=p.index,n=p.injector,r=p.projectableNodes,s=p.environmentInjector||p.ngModuleRef}let l=o?e:new _s(mi(e)),c=n||this.parentInjector;if(!s&&l.ngModule==null){let y=(o?c:this.parentInjector).get(Ye,null);y&&(s=y)}let u=mi(l.componentType??{}),d=vs(this._lContainer,u?.id??null),f=d?.firstChild??null,h=l.create(c,r,f,s);return this.insertImpl(h.hostView,a,ys(this._hostTNode,d)),h}insert(e,i){return this.insertImpl(e,i,!0)}insertImpl(e,i,n){let r=e._lView;if(N0(r)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=r[qe],c=new Fv(l,l[Lt],l[qe]);c.detach(c.indexOf(e))}}let s=this._adjustIndex(i),o=this._lContainer;return ll(o,r,s,n),e.attachToViewContainerRef(),zg(Su(o),s,e),e}move(e,i){return this.insert(e,i)}indexOf(e){let i=Eg(this._lContainer);return i!==null?i.indexOf(e):-1}remove(e){let i=this._adjustIndex(e,-1),n=gs(this._lContainer,i);n&&(Sa(Su(this._lContainer),i),tl(n[W],n))}detach(e){let i=this._adjustIndex(e,-1),n=gs(this._lContainer,i);return n&&Sa(Su(this._lContainer),i)!=null?new Ci(n):null}_adjustIndex(e,i=0){return e??this.length+i}};function Eg(t){return t[Aa]}function Su(t){return t[Aa]||(t[Aa]=[])}function Lv(t,e){let i,n=e[t.index];return wn(n)?i=n:(i=vv(n,e,null,t),e[t.index]=i,ol(e,i)),cS(i,e,t,n),new Fv(i,t,e)}function lS(t,e){let i=t[be],n=i.createComment(""),r=Et(e,t),s=iv(i,r);return La(i,s,n,qE(i,r),!1),n}var cS=hS,uS=()=>!1;function dS(t,e,i){return uS(t,e,i)}function hS(t,e,i,n){if(t[yi])return;let r;i.type&8?r=en(n):r=lS(e,i),t[yi]=r}var dd=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},hd=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let i=e.queries;if(i!==null){let n=e.contentQueries!==null?e.contentQueries[0]:i.length,r=[];for(let s=0;s0)n.push(o[a/2]);else{let c=s[a+1],u=e[-l];for(let d=Ge;de.trim())}function DS(t,e,i){t.queries===null&&(t.queries=new pd),t.queries.track(new md(e,i))}function wh(t,e){return t.queries.getByIndex(e)}function bS(t,e){let i=t[W],n=wh(i,e);return n.crossesNgTemplate?gd(i,t,e,[]):Vv(i,t,n,e)}function jv(t){return typeof t=="function"&&t[fn]!==void 0}function As(t,e){jt("NgSignals");let i=wm(t),n=i[fn];return e?.equal&&(n.equal=e.equal),i.set=r=>nu(n,r),i.update=r=>Dm(n,r),i.asReadonly=CS.bind(i),i}function CS(){let t=this[fn];if(t.readonlyFn===void 0){let e=()=>this();e[fn]=t,t.readonlyFn=e}return t.readonlyFn}function Bv(t){return jv(t)&&typeof t.set=="function"}function ES(t){return Object.getPrototypeOf(t.prototype).constructor}function we(t){let e=ES(t.type),i=!0,n=[t];for(;e;){let r;if(yn(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new b(903,!1);r=e.\u0275dir}if(r){if(i){n.push(r);let o=t;o.inputs=ma(t.inputs),o.inputTransforms=ma(t.inputTransforms),o.declaredInputs=ma(t.declaredInputs),o.outputs=ma(t.outputs);let a=r.hostBindings;a&&AS(t,a);let l=r.viewQuery,c=r.contentQueries;if(l&&MS(t,l),c&&TS(t,c),IS(t,r),kC(t.outputs,r.outputs),yn(r)&&r.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}let s=r.features;if(s)for(let o=0;o=0;n--){let r=t[n];r.hostVars=e+=r.hostVars,r.hostAttrs=ds(r.hostAttrs,i=ds(i,r.hostAttrs))}}function ma(t){return t===mr?{}:t===ct?[]:t}function MS(t,e){let i=t.viewQuery;i?t.viewQuery=(n,r)=>{e(n,r),i(n,r)}:t.viewQuery=e}function TS(t,e){let i=t.contentQueries;i?t.contentQueries=(n,r,s)=>{e(n,r,s),i(n,r,s)}:t.contentQueries=e}function AS(t,e){let i=t.hostBindings;i?t.hostBindings=(n,r)=>{e(n,r),i(n,r)}:t.hostBindings=e}function Ii(t){let e=t.inputConfig,i={};for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];Array.isArray(r)&&r[3]&&(i[n]=r[3])}t.inputTransforms=i}var Un=class{},ws=class{};var yd=class extends Un{constructor(e,i,n,r=!0){super(),this.ngModuleType=e,this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ba(this);let s=Xg(e);this._bootstrapComponents=Qy(s.bootstrap),this._r3Injector=Uy(e,i,[{provide:Un,useValue:this},{provide:tn,useValue:this.componentFactoryResolver},...n],tt(e),new Set(["environment"])),r&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},vd=class extends ws{constructor(e){super(),this.moduleType=e}create(e){return new yd(this.moduleType,e,[])}};var Ua=class extends Un{constructor(e){super(),this.componentFactoryResolver=new Ba(this),this.instance=null;let i=new hs([...e.providers,{provide:Un,useValue:this},{provide:tn,useValue:this.componentFactoryResolver}],e.parent||Hd(),e.debugName,new Set(["environment"]));this.injector=i,e.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function Dh(t,e,i=null){return new Ua({providers:t,parent:e,debugName:i,runEnvironmentInitializers:!0}).injector}function Uv(t){return kS(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function xS(t,e){if(Array.isArray(t))for(let i=0;i>17&32767}function VS(t){return(t&2)==2}function jS(t,e){return t&131071|e<<17}function wd(t){return t|2}function br(t){return(t&131068)>>2}function Mu(t,e){return t&-131069|e<<2}function BS(t){return(t&1)===1}function Dd(t){return t|1}function US(t,e,i,n,r,s){let o=s?e.classBindings:e.styleBindings,a=Ei(o),l=br(o);t[n]=i;let c=!1,u;if(Array.isArray(i)){let d=i;u=d[1],(u===null||Cs(d,u)>0)&&(c=!0)}else u=i;if(r)if(l!==0){let f=Ei(t[a+1]);t[n+1]=ga(f,a),f!==0&&(t[f+1]=Mu(t[f+1],n)),t[a+1]=jS(t[a+1],n)}else t[n+1]=ga(a,0),a!==0&&(t[a+1]=Mu(t[a+1],n)),a=n;else t[n+1]=ga(l,0),a===0?a=n:t[l+1]=Mu(t[l+1],n),l=n;c&&(t[n+1]=wd(t[n+1])),Ig(t,u,n,!0),Ig(t,u,n,!1),$S(e,u,t,n,s),o=ga(a,l),s?e.classBindings=o:e.styleBindings=o}function $S(t,e,i,n,r){let s=r?t.residualClasses:t.residualStyles;s!=null&&typeof e=="string"&&Cs(s,e)>=0&&(i[n+1]=Dd(i[n+1]))}function Ig(t,e,i,n){let r=t[i+1],s=e===null,o=n?Ei(r):br(r),a=!1;for(;o!==0&&(a===!1||s);){let l=t[o],c=t[o+1];HS(l,e)&&(a=!0,t[o+1]=n?Dd(c):wd(c)),o=n?Ei(c):br(c)}a&&(t[i+1]=n?wd(r):Dd(r))}function HS(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Cs(t,e)>=0:!1}var Nt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function zS(t){return t.substring(Nt.key,Nt.keyEnd)}function WS(t){return GS(t),Wv(t,Gv(t,0,Nt.textEnd))}function Wv(t,e){let i=Nt.textEnd;return i===e?-1:(e=Nt.keyEnd=YS(t,Nt.key=e,i),Gv(t,e,i))}function GS(t){Nt.key=0,Nt.keyEnd=0,Nt.value=0,Nt.valueEnd=0,Nt.textEnd=t.length}function Gv(t,e,i){for(;e32;)e++;return e}function N(t,e,i){let n=ne(),r=Hn();if(ut(n,r,e)){let s=Ae(),o=Is();sl(s,o,n,t,e,n[be],i,!1)}return N}function bd(t,e,i,n,r){let s=e.inputs,o=r?"class":"style";fh(t,i,s[o],o,n)}function Gn(t,e,i){return Yv(t,e,i,!1),Gn}function Le(t,e){return Yv(t,e,null,!0),Le}function qS(t,e){for(let i=WS(e);i>=0;i=Wv(e,i))jd(t,zS(e),!0)}function Yv(t,e,i,n){let r=ne(),s=Ae(),o=qd(2);if(s.firstUpdatePass&&Zv(s,t,o,n),e!==St&&ut(r,o,e)){let a=s.data[Dn()];Kv(s,a,r,r[be],t,r[o+1]=nM(e,i),n,o)}}function ZS(t,e,i,n){let r=Ae(),s=qd(2);r.firstUpdatePass&&Zv(r,null,s,n);let o=ne();if(i!==St&&ut(o,s,i)){let a=r.data[Dn()];if(Qv(a,n)&&!qv(r,s)){let l=n?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(i=Ru(l,i||"")),bd(r,a,o,i,n)}else tM(r,a,o,o[be],o[s+1],o[s+1]=eM(t,e,i),n,s)}}function qv(t,e){return e>=t.expandoStartIndex}function Zv(t,e,i,n){let r=t.data;if(r[i+1]===null){let s=r[Dn()],o=qv(t,i);Qv(s,n)&&e===null&&!o&&(e=!1),e=KS(r,s,e,n),US(r,s,e,i,o,n)}}function KS(t,e,i,n){let r=Zd(t),s=n?e.residualClasses:e.residualStyles;if(r===null)(n?e.classBindings:e.styleBindings)===0&&(i=Tu(null,t,e,i,n),i=Ds(i,e.attrs,n),s=null);else{let o=e.directiveStylingLast;if(o===-1||t[o]!==r)if(i=Tu(r,t,e,i,n),s===null){let l=QS(t,e,n);l!==void 0&&Array.isArray(l)&&(l=Tu(null,t,e,l[1],n),l=Ds(l,e.attrs,n),XS(t,e,n,l))}else s=JS(t,e,n)}return s!==void 0&&(n?e.residualClasses=s:e.residualStyles=s),i}function QS(t,e,i){let n=i?e.classBindings:e.styleBindings;if(br(n)!==0)return t[Ei(n)]}function XS(t,e,i,n){let r=i?e.classBindings:e.styleBindings;t[Ei(r)]=n}function JS(t,e,i){let n,r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s0;){let l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=u===null,f=i[r+1];f===St&&(f=d?ct:void 0);let h=d?vu(f,n):u===n?f:void 0;if(c&&!$a(h)&&(h=vu(l,n)),$a(h)&&(a=h,o))return a;let p=t[r+1];r=o?Ei(p):br(p)}if(e!==null){let l=s?e.residualClasses:e.residualStyles;l!=null&&(a=vu(l,n))}return a}function $a(t){return t!==void 0}function nM(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=tt(el(t)))),t}function Qv(t,e){return(t.flags&(e?8:16))!==0}function Xv(t,e,i){let n=ne(),r=zv(n,t,e,i);ZS(jd,qS,r,!0)}var Cd=class{destroy(e){}updateValue(e,i){}swap(e,i){let n=Math.min(e,i),r=Math.max(e,i),s=this.detach(r);if(r-n>1){let o=this.detach(n);this.attach(n,s),this.attach(r,o)}else this.attach(n,s)}move(e,i){this.attach(i,this.detach(e))}};function Au(t,e,i,n,r){return t===i&&Object.is(e,n)?1:Object.is(r(t,e),r(i,n))?-1:0}function iM(t,e,i){let n,r,s=0,o=t.length-1,a=void 0;if(Array.isArray(e)){let l=e.length-1;for(;s<=o&&s<=l;){let c=t.at(s),u=e[s],d=Au(s,c,s,u,i);if(d!==0){d<0&&t.updateValue(s,u),s++;continue}let f=t.at(o),h=e[l],p=Au(o,f,l,h,i);if(p!==0){p<0&&t.updateValue(o,h),o--,l--;continue}let y=i(s,c),D=i(o,f),I=i(s,u);if(Object.is(I,D)){let $=i(l,h);Object.is($,y)?(t.swap(s,o),t.updateValue(o,h),l--,o--):t.move(o,s),t.updateValue(s,u),s++;continue}if(n??=new Ha,r??=Tg(t,s,o,i),Ed(t,n,s,I))t.updateValue(s,u),s++,o++;else if(r.has(I))n.set(y,t.detach(s)),o--;else{let $=t.create(s,e[s]);t.attach(s,$),s++,o++}}for(;s<=l;)Mg(t,n,i,s,e[s]),s++}else if(e!=null){let l=e[Symbol.iterator](),c=l.next();for(;!c.done&&s<=o;){let u=t.at(s),d=c.value,f=Au(s,u,s,d,i);if(f!==0)f<0&&t.updateValue(s,d),s++,c=l.next();else{n??=new Ha,r??=Tg(t,s,o,i);let h=i(s,d);if(Ed(t,n,s,h))t.updateValue(s,d),s++,o++,c=l.next();else if(!r.has(h))t.attach(s,t.create(s,d)),s++,o++,c=l.next();else{let p=i(s,u);n.set(p,t.detach(s)),o--}}}for(;!c.done;)Mg(t,n,i,t.length,c.value),c=l.next()}for(;s<=o;)t.destroy(t.detach(o--));n?.forEach(l=>{t.destroy(l)})}function Ed(t,e,i,n){return e!==void 0&&e.has(n)?(t.attach(i,e.get(n)),e.delete(n),!0):!1}function Mg(t,e,i,n,r){if(Ed(t,e,n,i(n,r)))t.updateValue(n,r);else{let s=t.create(n,r);t.attach(n,s)}}function Tg(t,e,i,n){let r=new Set;for(let s=e;s<=i;s++)r.add(n(s,t.at(s)));return r}var Ha=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let i=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(i)?(this.kvMap.set(e,this._vMap.get(i)),this._vMap.delete(i)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,i){if(this.kvMap.has(e)){let n=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let r=this._vMap;for(;r.has(n);)n=r.get(n);r.set(n,i)}else this.kvMap.set(e,i)}forEach(e){for(let[i,n]of this.kvMap)if(e(n,i),this._vMap!==void 0){let r=this._vMap;for(;r.has(n);)n=r.get(n),e(n,i)}}};function cl(t,e){jt("NgControlFlow");let i=ne(),n=Hn(),r=i[n]!==St?i[n]:-1,s=r!==-1?za(i,bt+r):void 0,o=0;if(ut(i,n,t)){let a=oe(null);try{if(s!==void 0&&Sv(s,o),t!==-1){let l=bt+t,c=za(i,l),u=Td(i[W],l),d=vs(c,u.tView.ssrId),f=al(i,u,e,{dehydratedView:d});ll(c,f,o,ys(u,d))}}finally{oe(a)}}else if(s!==void 0){let a=Iv(s,o);a!==void 0&&(a[We]=e)}}var Id=class{constructor(e,i,n){this.lContainer=e,this.$implicit=i,this.$index=n}get $count(){return this.lContainer.length-Ge}};function Jv(t){return t}var Sd=class{constructor(e,i,n){this.hasEmptyBlock=e,this.trackByFn=i,this.liveCollection=n}};function ul(t,e,i,n,r,s,o,a,l,c,u,d,f){jt("NgControlFlow");let h=ne(),p=Ae(),y=l!==void 0,D=ne(),I=a?o.bind(D[Ft][We]):o,$=new Sd(y,I);D[bt+t]=$,_d(h,p,t+1,e,i,n,r,wr(p.consts,s)),y&&_d(h,p,t+2,l,c,u,d,wr(p.consts,f))}var Md=class extends Cd{constructor(e,i,n){super(),this.lContainer=e,this.hostLView=i,this.templateTNode=n,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Ge}at(e){return this.getLView(e)[We].$implicit}attach(e,i){let n=i[fs];this.needsIndexUpdate||=e!==this.length,ll(this.lContainer,i,e,ys(this.templateTNode,n))}detach(e){return this.needsIndexUpdate||=e!==this.length-1,rM(this.lContainer,e)}create(e,i){let n=vs(this.lContainer,this.templateTNode.tView.ssrId),r=al(this.hostLView,this.templateTNode,new Id(this.lContainer,i,e),{dehydratedView:n});return this.operationsCounter?.recordCreate(),r}destroy(e){tl(e[W],e),this.operationsCounter?.recordDestroy()}updateValue(e,i){this.getLView(e)[We].$implicit=i}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e(eh(!0),Jy(n,r,eE()));function st(){return ne()}function bh(t,e,i){let n=ne(),r=Hn();if(ut(n,r,e)){let s=Ae(),o=Is();sl(s,o,n,t,e,n[be],i,!0)}return bh}function hl(t,e,i){let n=ne(),r=Hn();if(ut(n,r,e)){let s=Ae(),o=Is(),a=Zd(s.data),l=bv(a,o,n);sl(s,o,n,t,e,l,i,!0)}return hl}var hi=void 0;function lM(t){let e=t,i=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&n===0?1:5}var cM=["en",[["a","p"],["AM","PM"],hi],[["AM","PM"],hi,hi],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hi,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],hi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",hi,"{1} 'at' {0}",hi],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",lM],xu={};function e_(t){let e=uM(t),i=Ag(e);if(i)return i;let n=e.split("-")[0];if(i=Ag(n),i)return i;if(n==="en")return cM;throw new b(701,!1)}function Ag(t){return t in xu||(xu[t]=wt.ng&&wt.ng.common&&wt.ng.common.locales&&wt.ng.common.locales[t]),xu[t]}var Ch=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(Ch||{});function uM(t){return t.toLowerCase().replace(/_/g,"-")}var Wa="en-US";var dM=Wa;function hM(t){typeof t=="string"&&(dM=t.toLowerCase().replace(/_/g,"-"))}var fM=(t,e,i)=>{};function ee(t,e,i,n){let r=ne(),s=Ae(),o=it();return Eh(s,r,r[be],o,t,e,n),ee}function fl(t,e){let i=it(),n=ne(),r=Ae(),s=Zd(r.data),o=bv(s,i,n);return Eh(r,n,o,i,t,e),fl}function pM(t,e,i,n){let r=t.cleanup;if(r!=null)for(let s=0;sl?a[l]:null}typeof o=="string"&&(s+=2)}return null}function Eh(t,e,i,n,r,s,o){let a=Wd(n),c=t.firstCreatePass&&Dv(t),u=e[We],d=wv(e),f=!0;if(n.type&3||o){let y=Et(n,e),D=o?o(y):y,I=d.length,$=o?H=>o(en(H[n.index])):n.index,Y=null;if(!o&&a&&(Y=pM(t,e,r,n.index)),Y!==null){let H=Y.__ngLastListenerFn__||Y;H.__ngNextListenerFn__=s,Y.__ngLastListenerFn__=s,f=!1}else{s=kg(n,e,u,s),fM(y,r,s);let H=i.listen(D,r,s);d.push(s,H),c&&c.push(r,$,I,I+1)}}else s=kg(n,e,u,s);let h=n.outputs,p;if(f&&h!==null&&(p=h[r])){let y=p.length;if(y)for(let D=0;D-1?$n(t.index,e):e;mh(o,5);let a=xg(e,i,n,s),l=r.__ngNextListenerFn__;for(;l;)a=xg(e,i,l,s)&&a,l=l.__ngNextListenerFn__;return a}}function V(t=1){return X0(t)}function rn(t,e,i){_S(t,e,i)}function Bt(t){let e=ne(),i=Ae(),n=Ey();Kd(n+1);let r=wh(i,n);if(t.dirty&&R0(e)===((r.metadata.flags&2)===2)){if(r.matches===null)t.reset([]);else{let s=bS(e,n);t.reset(s,IE),t.notifyOnChanges()}return!0}return!1}function Ut(){return yS(ne(),Ey())}function Si(t){let e=W0();return O0(e,bt+t)}function S(t,e=""){let i=ne(),n=Ae(),r=t+bt,s=n.firstCreatePass?rl(n,r,1,e,null):n.data[r],o=mM(n,i,s,e,t);i[r]=o,Jd()&&uh(n,i,o,s),Es(s,!1)}var mM=(t,e,i,n,r)=>(eh(!0),VE(e[be],n));function xe(t){return sn("",t,""),xe}function sn(t,e,i){let n=ne(),r=zv(n,t,e,i);return r!==St&&Ev(n,Dn(),r),sn}function pl(t,e,i,n,r){let s=ne(),o=LS(s,t,e,i,n,r);return o!==St&&Ev(s,Dn(),o),pl}function Ih(t,e,i){Bv(e)&&(e=e());let n=ne(),r=Hn();if(ut(n,r,e)){let s=Ae(),o=Is();sl(s,o,n,t,e,n[be],i,!1)}return Ih}function t_(t,e){let i=Bv(t);return i&&t.set(e),i}function Sh(t,e){let i=ne(),n=Ae(),r=it();return Eh(n,i,i[be],r,t,e),Sh}function gM(t,e,i){let n=Ae();if(n.firstCreatePass){let r=yn(t);Ad(i,n.data,n.blueprint,r,!0),Ad(e,n.data,n.blueprint,r,!1)}}function Ad(t,e,i,n,r){if(t=Je(t),Array.isArray(t))for(let s=0;s>20;if(yr(t)||!t.multi){let h=new wi(c,r,v),p=Ou(l,e,r?u:u+f,d);p===-1?(Yu(Ra(a,o),s,l),ku(s,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(h),o.push(h)):(i[p]=h,o[p]=h)}else{let h=Ou(l,e,u+f,d),p=Ou(l,e,u,u+f),y=h>=0&&i[h],D=p>=0&&i[p];if(r&&!D||!r&&!y){Yu(Ra(a,o),s,l);let I=_M(r?vM:yM,i.length,r,n,c);!r&&D&&(i[p].providerFactory=I),ku(s,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,r&&(a.providerIndexes+=1048576),i.push(I),o.push(I)}else{let I=n_(i[r?p:h],c,!r&&n);ku(s,t,h>-1?h:p,I)}!r&&n&&D&&i[p].componentProviders++}}}function ku(t,e,i,n){let r=yr(e),s=_0(e);if(r||s){let l=(s?Je(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){let u=c.indexOf(i);u===-1?c.push(i,[n,l]):c[u+1].push(n,l)}else c.push(i,l)}}}function n_(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function Ou(t,e,i,n){for(let r=i;r{i.providersResolver=(n,r)=>gM(n,r?r(t):t,e)}}var wM=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=ty(!1,n.type),s=r.length>0?Dh([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=C({token:e,providedIn:"environment",factory:()=>new e(m(Ye))});let t=e;return t})();function Mi(t){jt("NgStandalone"),t.getStandaloneInjector=e=>e.get(wM).getOrCreateStandaloneInjector(t)}function xs(t,e,i,n){return DM(ne(),Cy(),t,e,i,n)}function i_(t,e,i,n,r,s){return bM(ne(),Cy(),t,e,i,n,r,s)}function r_(t,e){let i=t[e];return i===St?void 0:i}function DM(t,e,i,n,r,s){let o=e+i;return ut(t,o,r)?$v(t,o+1,s?n.call(s,r):n(r)):r_(t,o+1)}function bM(t,e,i,n,r,s,o,a){let l=e+i;return OS(t,l,r,s,o)?$v(t,l+3,a?n.call(a,r,s,o):n(r,s,o)):r_(t,l+3)}var ml=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();var Mh=new M(""),ks=new M(""),gl=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Th||(CM(s),s.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{L.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==o),n()},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:s})}whenStable(n,r,s){if(s&&!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(n,r,s),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}};e.\u0275fac=function(r){return new(r||e)(m(L),m(yl),m(ks))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),yl=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Th?.findTestabilityInTree(this,n,r)??null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function CM(t){Th=t}var Th;function Ti(t){return!!t&&typeof t.then=="function"}function s_(t){return!!t&&typeof t.subscribe=="function"}var o_=new M(""),a_=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=w(o_,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let s of this.appInits){let o=s();if(Ti(o))n.push(o);else if(s_(o)){let a=new Promise((l,c)=>{o.subscribe({complete:l,error:c})});n.push(a)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),n.length===0&&r(),this.initialized=!0}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),vl=new M("");function EM(){_m(()=>{throw new b(600,!1)})}function IM(t){return t.isBoundToModule}var SM=10;function MM(t,e,i){try{let n=i();return Ti(n)?n.catch(r=>{throw e.runOutsideAngular(()=>t.handleError(r)),r}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var $t=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=w(CE),this.afterRenderEffectManager=w(_h),this.zonelessEnabled=w(yh),this.externalTestViews=new Set,this.beforeRender=new F,this.afterTick=new F,this.componentTypes=[],this.components=[],this.isStable=w(Wn).hasPendingTasks.pipe(j(n=>!n)),this._injector=w(Ye)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:s=>{s&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let s=n instanceof ja;if(!this._injector.get(a_).done){let h=!s&&Qg(n),p=!1;throw new b(405,p)}let a;s?a=n:a=this._injector.get(tn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let l=IM(a)?void 0:this._injector.get(Un),c=r||a.selector,u=a.create(Te.NULL,[],c,l),d=u.location.nativeElement,f=u.injector.get(Mh,null);return f?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),ba(this.components,u),f?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new b(101,!1);let r=oe(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(s){this.internalErrorHandler(s)}finally{this._runningTick=!1,oe(r),this.afterTick.next()}}detectChangesInAttachedViews(n){let r=null;this._injector.destroyed||(r=this._injector.get(Bn,null,{optional:!0}));let s=0,o=this.afterRenderEffectManager;for(;sms(l))&&(o.execute(),!this.allViews.some(({_lView:l})=>ms(l))))break}}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ba(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(vl,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ba(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new b(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ba(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function TM(t,e,i,n){if(!i&&!ms(t))return;Av(t,e,i&&!n?0:1)}var kd=class{constructor(e,i){this.ngModuleFactory=e,this.componentFactories=i}},Ah=(()=>{let e=class e{compileModuleSync(n){return new vd(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),s=Xg(n),o=Qy(s.declarations).reduce((a,l)=>{let c=mi(l);return c&&a.push(new _s(c)),a},[]);return new kd(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var AM=(()=>{let e=class e{constructor(){this.zone=w(L),this.changeDetectionScheduler=w(Dr),this.applicationRef=w($t)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xM=new M("",{factory:()=>!1});function l_({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new L(u_()),[{provide:L,useFactory:t},{provide:gr,multi:!0,useFactory:()=>{let i=w(AM,{optional:!0});return()=>i.initialize()}},{provide:gr,multi:!0,useFactory:()=>{let i=w(kM);return()=>{i.initialize()}}},e===!0?{provide:Rv,useValue:!0}:[]]}function c_(t){let e=t?.ignoreChangesOutsideZone,i=l_({ngZoneFactory:()=>{let n=u_(t);return n.shouldCoalesceEventChangeDetection&&jt("NgZone_CoalesceEvent"),new L(n)},ignoreChangesOutsideZone:e});return Cr([{provide:xM,useValue:!0},{provide:yh,useValue:!1},i])}function u_(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var kM=(()=>{let e=class e{constructor(){this.subscription=new Q,this.initialized=!1,this.zone=w(L),this.pendingTasks=w(Wn)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{L.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{L.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var OM=(()=>{let e=class e{constructor(){this.appRef=w($t),this.taskService=w(Wn),this.ngZone=w(L),this.zonelessEnabled=w(yh),this.disableScheduling=w(Rv,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Q,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Pa):null,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Xu||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?pg:$y;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=r(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Pa+this.angularZoneId))}tick(n){if(this.runningTick||this.appRef.destroyed)return;let r=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(s){throw this.taskService.remove(r),s}finally{this.cleanup()}this.useMicrotaskScheduler=!0,pg(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(r)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function RM(){return typeof $localize<"u"&&$localize.locale||Wa}var Os=new M("",{providedIn:"root",factory:()=>w(Os,te.Optional|te.SkipSelf)||RM()});var d_=new M("");function ya(t){return!!t.platformInjector}function NM(t){let e=ya(t)?t.r3Injector:t.moduleRef.injector,i=e.get(L);return i.run(()=>{ya(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=e.get(vn,null),r;if(i.runOutsideAngular(()=>{r=i.onError.subscribe({next:s=>{n.handleError(s)}})}),ya(t)){let s=()=>e.destroy(),o=t.platformInjector.get(d_);o.add(s),e.onDestroy(()=>{r.unsubscribe(),o.delete(s)})}else t.moduleRef.onDestroy(()=>{ba(t.allPlatformModules,t.moduleRef),r.unsubscribe()});return MM(n,i,()=>{let s=e.get(a_);return s.runInitializers(),s.donePromise.then(()=>{let o=e.get(Os,Wa);if(hM(o||Wa),ya(t)){let a=e.get($t);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return PM(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function PM(t,e){let i=t.injector.get($t);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>i.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(i);else throw new b(-403,!1);e.push(t)}var Ca=null;function FM(t=[],e){return Te.create({name:e,providers:[{provide:Ka,useValue:"platform"},{provide:d_,useValue:new Set([()=>Ca=null])},...t]})}function LM(t=[]){if(Ca)return Ca;let e=FM(t);return Ca=e,EM(),VM(e),e}function VM(t){t.get(oh,null)?.forEach(i=>i())}var Ue=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=jM;let t=e;return t})();function jM(t){return BM(it(),ne(),(t&16)===16)}function BM(t,e,i){if(Xa(t)&&!i){let n=$n(t.index,e);return new Ci(n,n)}else if(t.type&175){let n=e[Ft];return new Ci(n,e)}return null}var Od=class{constructor(){}supports(e){return Uv(e)}create(e){return new Rd(e)}},UM=(t,e)=>e,Rd=class{constructor(e){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=e||UM}forEachItem(e){let i;for(i=this._itHead;i!==null;i=i._next)e(i)}forEachOperation(e){let i=this._itHead,n=this._removalsHead,r=0,s=null;for(;i||n;){let o=!n||i&&i.currentIndex{o=this._trackByFn(r,a),i===null||!Object.is(i.trackById,o)?(i=this._mismatch(i,a,o,r),n=!0):(n&&(i=this._verifyReinsertion(i,a,o,r)),Object.is(i.item,a)||this._addIdentityChange(i,a)),i=i._next,r++}),this.length=r;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,i,n,r){let s;return e===null?s=this._itTail:(s=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._reinsertAfter(e,s,r)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,r),e!==null?(Object.is(e.item,i)||this._addIdentityChange(e,i),this._moveAfter(e,s,r)):e=this._addAfter(new Nd(i,n),s,r)),e}_verifyReinsertion(e,i,n,r){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return s!==null?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;e!==null;){let i=e._next;this._addToRemovals(this._unlink(e)),e=i}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,i,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let r=e._prevRemoved,s=e._nextRemoved;return r===null?this._removalsHead=s:r._nextRemoved=s,s===null?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,i,n),this._addToMoves(e,n),e}_moveAfter(e,i,n){return this._unlink(e),this._insertAfter(e,i,n),this._addToMoves(e,n),e}_addAfter(e,i,n){return this._insertAfter(e,i,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,i,n){let r=i===null?this._itHead:i._next;return e._next=r,e._prev=i,r===null?this._itTail=e:r._prev=e,i===null?this._itHead=e:i._next=e,this._linkedRecords===null&&(this._linkedRecords=new Ga),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let i=e._prev,n=e._next;return i===null?this._itHead=n:i._next=n,n===null?this._itTail=i:n._prev=i,e}_addToMoves(e,i){return e.previousIndex===i||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ga),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,i){return e.item=i,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Nd=class{constructor(e,i){this.item=e,this.trackById=i,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}},Pd=class{constructor(){this._head=null,this._tail=null}add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,i){let n;for(n=this._head;n!==null;n=n._nextDup)if((i===null||i<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let i=e._prevDup,n=e._nextDup;return i===null?this._head=n:i._nextDup=n,n===null?this._tail=i:n._prevDup=i,this._head===null}},Ga=class{constructor(){this.map=new Map}put(e){let i=e.trackById,n=this.map.get(i);n||(n=new Pd,this.map.set(i,n)),n.add(e)}get(e,i){let n=e,r=this.map.get(n);return r?r.get(e,i):null}remove(e){let i=e.trackById;return this.map.get(i).remove(e)&&this.map.delete(i),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Og(t,e,i){let n=t.previousIndex;if(n===null)return n;let r=0;return i&&n{let e=class e{constructor(n){this.factories=n}static create(n,r){if(r!=null){let s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Rg()),deps:[[e,new Hg,new Ld]]}}find(n){let r=this.factories.find(s=>s.supports(n));if(r!=null)return r;throw new b(901,!1)}};e.\u0275prov=C({token:e,providedIn:"root",factory:Rg});let t=e;return t})();var h_=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(r){return new(r||e)(m($t))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();function f_(t){try{let{rootComponent:e,appProviders:i,platformProviders:n}=t,r=LM(n),s=[l_({}),{provide:Dr,useExisting:OM},...i||[]],o=new Ua({providers:s,parent:r,debugName:"",runEnvironmentInitializers:!1});return NM({r3Injector:o.injector,platformInjector:r,rootComponent:e})}catch(e){return Promise.reject(e)}}var p_=new M("");function Ai(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Rs(t,e){jt("NgSignals");let i=gm(t);return e?.equal&&(i[fn].equal=e.equal),i}function Ht(t){let e=oe(null);try{return t()}finally{oe(e)}}var w_=null;function on(){return w_}function D_(t){w_??=t}var wl=class{};var X=new M(""),b_=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>w(WM),providedIn:"platform"});let t=e;return t})();var WM=(()=>{let e=class e extends b_{constructor(){super(),this._doc=w(X),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return on().getBaseHref(this._doc)}onPopState(n){let r=on().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=on().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this._location.pathname=n}pushState(n,r,s){this._history.pushState(n,r,s)}replaceState(n,r,s){this._history.replaceState(n,r,s)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function C_(t,e){if(t.length==0)return e;if(e.length==0)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,i==2?t+e.substring(1):i==1?t+e:t+"/"+e}function m_(t){let e=t.match(/#|\?|$/),i=e&&e.index||t.length,n=i-(t[i-1]==="/"?1:0);return t.slice(0,n)+t.slice(i)}function xi(t){return t&&t[0]!=="?"?"?"+t:t}var Dl=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>w(E_),providedIn:"root"});let t=e;return t})(),GM=new M(""),E_=(()=>{let e=class e extends Dl{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(X).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return C_(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+xi(this._platformLocation.search),s=this._platformLocation.hash;return s&&n?`${r}${s}`:r}pushState(n,r,s,o){let a=this.prepareExternalUrl(s+xi(o));this._platformLocation.pushState(n,r,a)}replaceState(n,r,s,o){let a=this.prepareExternalUrl(s+xi(o));this._platformLocation.replaceState(n,r,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(r){return new(r||e)(m(b_),m(GM,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var bn=(()=>{let e=class e{constructor(n){this._subject=new A,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=ZM(m_(g_(r))),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+xi(r))}normalize(n){return e.stripTrailingSlash(qM(this._basePath,g_(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",s=null){this._locationStrategy.pushState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+xi(r)),s)}replaceState(n,r="",s=null){this._locationStrategy.replaceState(s,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+xi(r)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(s=>s(n,r))}subscribe(n,r,s){return this._subject.subscribe({next:n,error:r,complete:s})}};e.normalizeQueryParams=xi,e.joinWithSlash=C_,e.stripTrailingSlash=m_,e.\u0275fac=function(r){return new(r||e)(m(Dl))},e.\u0275prov=C({token:e,factory:()=>YM(),providedIn:"root"});let t=e;return t})();function YM(){return new bn(m(Dl))}function qM(t,e){if(!t||!e.startsWith(t))return e;let i=e.substring(t.length);return i===""||["/",";","?","#"].includes(i[0])?i:e}function g_(t){return t.replace(/\/index.html$/,"")}function ZM(t){if(new RegExp("^(https?:)?//").test(t)){let[,i]=t.split(/\/\/[^\/]+/);return i}return t}function I_(t){return e_(t)[Ch.FirstDayOfWeek]}function bl(t,e){e=encodeURIComponent(e);for(let i of t.split(";")){let n=i.indexOf("="),[r,s]=n==-1?[i,""]:[i.slice(0,n),i.slice(n+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}var kh=/\s+/,y_=[],Cl=(()=>{let e=class e{constructor(n,r){this._ngEl=n,this._renderer=r,this.initialClasses=y_,this.stateMap=new Map}set klass(n){this.initialClasses=n!=null?n.trim().split(kh):y_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(kh):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let s=this.stateMap.get(n);s!==void 0?(s.enabled!==r&&(s.changed=!0,s.enabled=r),s.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],s=n[1];s.changed?(this._toggleClass(r,s.enabled),s.changed=!1):s.touched||(s.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),s.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(kh).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(Mt))},e.\u0275dir=G({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let t=e;return t})();var Oh=class{constructor(e,i,n,r){this.$implicit=e,this.ngForOf=i,this.index=n,this.count=r}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Fh=(()=>{let e=class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,s){this._viewContainer=n,this._template=r,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;if(!this._differ&&n)if(0)try{}catch{}else this._differ=this._differs.find(n).create(this.ngForTrackBy)}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((s,o,a)=>{if(s.previousIndex==null)r.createEmbeddedView(this._template,new Oh(s.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)r.remove(o===null?void 0:o);else if(o!==null){let l=r.get(o);r.move(l,a),v_(l,s)}});for(let s=0,o=r.length;s{let o=r.get(s.currentIndex);v_(o,s)})}static ngTemplateContextGuard(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(v(rt),v(ft),v(_l))},e.\u0275dir=G({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function v_(t,e){t.context.$implicit=e.item}var Ns=(()=>{let e=class e{constructor(n,r){this._viewContainer=n,this._context=new Rh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){__("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){__("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}};e.\u0275fac=function(r){return new(r||e)(v(rt),v(ft))},e.\u0275dir=G({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Rh=class{constructor(){this.$implicit=null,this.ngIf=null}};function __(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${tt(e)}'.`)}var Nh=class{constructor(e,i){this._viewContainerRef=e,this._templateRef=i,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},Lh=(()=>{let e=class e{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(n){this._ngSwitch=n,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(n){this._defaultViews.push(n)}_matchCase(n){let r=n===this._ngSwitch;return this._lastCasesMatched||=r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(n){if(this._defaultViews.length>0&&n!==this._defaultUsed){this._defaultUsed=n;for(let r of this._defaultViews)r.enforceState(n)}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0});let t=e;return t})(),S_=(()=>{let e=class e{constructor(n,r,s){this.ngSwitch=s,s._addCase(),this._view=new Nh(n,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}};e.\u0275fac=function(r){return new(r||e)(v(rt),v(ft),v(Lh,9))},e.\u0275dir=G({type:e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0});let t=e;return t})();var Ps=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})(),Vh="browser",KM="server";function M_(t){return t===Vh}function El(t){return t===KM}var Tr=class{};var Ls=class{},Sl=class{},Cn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(i=>{let n=i.indexOf(":");if(n>0){let r=i.slice(0,n),s=r.toLowerCase(),o=i.slice(n+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((i,n)=>{this.setHeaderEntries(n,i)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([i,n])=>{this.setHeaderEntries(i,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let i=this.headers.get(e.toLowerCase());return i&&i.length>0?i[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,i){return this.clone({name:e,value:i,op:"a"})}set(e,i){return this.clone({name:e,value:i,op:"s"})}delete(e,i){return this.clone({name:e,value:i,op:"d"})}maybeSetNormalizedName(e,i){this.normalizedNames.has(i)||this.normalizedNames.set(i,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(i=>{this.headers.set(i,e.headers.get(i)),this.normalizedNames.set(i,e.normalizedNames.get(i))})}clone(e){let i=new t;return i.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,i.lazyUpdate=(this.lazyUpdate||[]).concat([e]),i}applyUpdate(e){let i=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,i);let r=(e.op==="a"?this.headers.get(i):void 0)||[];r.push(...n),this.headers.set(i,r);break;case"d":let s=e.value;if(!s)this.headers.delete(i),this.normalizedNames.delete(i);else{let o=this.headers.get(i);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(i),this.normalizedNames.delete(i)):this.headers.set(i,o)}break}}setHeaderEntries(e,i){let n=(Array.isArray(i)?i:[i]).map(s=>s.toString()),r=e.toLowerCase();this.headers.set(r,n),this.maybeSetNormalizedName(e,r)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(i=>e(this.normalizedNames.get(i),this.headers.get(i)))}};var Uh=class{encodeKey(e){return T_(e)}encodeValue(e){return T_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function QM(t,e){let i=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{let s=r.indexOf("="),[o,a]=s==-1?[e.decodeKey(r),""]:[e.decodeKey(r.slice(0,s)),e.decodeValue(r.slice(s+1))],l=i.get(o)||[];l.push(a),i.set(o,l)}),i}var XM=/%(\d[a-f0-9])/gi,JM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function T_(t){return encodeURIComponent(t).replace(XM,(e,i)=>JM[i]??e)}function Il(t){return`${t}`}var qn=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new Uh,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=QM(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(i=>{let n=e.fromObject[i],r=Array.isArray(n)?n.map(Il):[Il(n)];this.map.set(i,r)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let i=this.map.get(e);return i?i[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,i){return this.clone({param:e,value:i,op:"a"})}appendAll(e){let i=[];return Object.keys(e).forEach(n=>{let r=e[n];Array.isArray(r)?r.forEach(s=>{i.push({param:n,value:s,op:"a"})}):i.push({param:n,value:r,op:"a"})}),this.clone(i)}set(e,i){return this.clone({param:e,value:i,op:"s"})}delete(e,i){return this.clone({param:e,value:i,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let i=this.encoder.encodeKey(e);return this.map.get(e).map(n=>i+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let i=new t({encoder:this.encoder});return i.cloneFrom=this.cloneFrom||this,i.updates=(this.updates||[]).concat(e),i}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let i=(e.op==="a"?this.map.get(e.param):void 0)||[];i.push(Il(e.value)),this.map.set(e.param,i);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],r=n.indexOf(Il(e.value));r!==-1&&n.splice(r,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var $h=class{constructor(){this.map=new Map}set(e,i){return this.map.set(e,i),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function eT(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function A_(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function x_(t){return typeof Blob<"u"&&t instanceof Blob}function k_(t){return typeof FormData<"u"&&t instanceof FormData}function tT(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Fs=class t{constructor(e,i,n,r){this.url=i,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let s;if(eT(this.method)||r?(this.body=n!==void 0?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),this.transferCache=s.transferCache),this.headers??=new Cn,this.context??=new $h,!this.params)this.params=new qn,this.urlWithParams=i;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=i;else{let a=i.indexOf("?"),l=a===-1?"?":af.set(h,e.setHeaders[h]),c)),e.setParams&&(u=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),u)),new t(i,n,o,{params:u,headers:c,context:d,reportProgress:l,responseType:r,withCredentials:a,transferCache:s})}},Zn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Zn||{}),Vs=class{constructor(e,i=200,n="OK"){this.headers=e.headers||new Cn,this.status=e.status!==void 0?e.status:i,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ml=class t extends Vs{constructor(e={}){super(e),this.type=Zn.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},js=class t extends Vs{constructor(e={}){super(e),this.type=Zn.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Yn=class extends Vs{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},P_=200,nT=204;function Bh(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var Wh=(()=>{let e=class e{constructor(n){this.handler=n}request(n,r,s={}){let o;if(n instanceof Fs)o=n;else{let c;s.headers instanceof Cn?c=s.headers:c=new Cn(s.headers);let u;s.params&&(s.params instanceof qn?u=s.params:u=new qn({fromObject:s.params})),o=new Fs(n,r,s.body!==void 0?s.body:null,{headers:c,context:s.context,params:u,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let a=O(o).pipe(Nn(c=>this.handler.handle(c)));if(n instanceof Fs||s.observe==="events")return a;let l=a.pipe(pe(c=>c instanceof js));switch(s.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return l.pipe(j(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return l.pipe(j(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return l.pipe(j(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return l.pipe(j(c=>c.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new qn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,s={}){return this.request("PATCH",n,Bh(s,r))}post(n,r,s={}){return this.request("POST",n,Bh(s,r))}put(n,r,s={}){return this.request("PUT",n,Bh(s,r))}};e.\u0275fac=function(r){return new(r||e)(m(Ls))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),iT=/^\)\]\}',?\n/,rT="X-Request-URL";function O_(t){if(t.url)return t.url;let e=rT.toLocaleLowerCase();return t.headers.get(e)}var sT=(()=>{let e=class e{constructor(){this.fetchImpl=w(Hh,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=w(L)}handle(n){return new q(r=>{let s=new AbortController;return this.doRequest(n,s.signal,r).then(zh,o=>r.error(new Yn({error:o}))),()=>s.abort()})}doRequest(n,r,s){return No(this,null,function*(){let o=this.createRequestInit(n),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,E({signal:r},o)));oT(p),s.next({type:Zn.Sent}),a=yield p}catch(p){s.error(new Yn({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let l=new Cn(a.headers),c=a.statusText,u=O_(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&s.next(new Ml({headers:l,status:d,statusText:c,url:u})),a.body){let p=a.headers.get("content-length"),y=[],D=a.body.getReader(),I=0,$,Y,H=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>No(this,null,function*(){for(;;){let{done:he,value:me}=yield D.read();if(he)break;if(y.push(me),I+=me.length,n.reportProgress){Y=n.responseType==="text"?(Y??"")+($??=new TextDecoder).decode(me,{stream:!0}):void 0;let Ie=()=>s.next({type:Zn.DownloadProgress,total:p?+p:void 0,loaded:I,partialText:Y});H?H.run(Ie):Ie()}}}));let ke=this.concatChunks(y,I);try{let he=a.headers.get("Content-Type")??"";f=this.parseBody(n,ke,he)}catch(he){s.error(new Yn({error:he,headers:new Cn(a.headers),status:a.status,statusText:a.statusText,url:O_(a)??n.urlWithParams}));return}}d===0&&(d=f?P_:0),d>=200&&d<300?(s.next(new js({body:f,headers:l,status:d,statusText:c,url:u})),s.complete()):s.error(new Yn({error:f,headers:l,status:d,statusText:c,url:u}))})}parseBody(n,r,s){switch(n.responseType){case"json":let o=new TextDecoder().decode(r).replace(iT,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:s});case"arraybuffer":return r.buffer}}createRequestInit(n){let r={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((o,a)=>r[o]=a.join(",")),n.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let o=n.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:n.serializeBody(),method:n.method,headers:r,credentials:s}}concatChunks(n,r){let s=new Uint8Array(r),o=0;for(let a of n)s.set(a,o),o+=a.length;return s}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Hh=class{};function zh(){}function oT(t){t.then(zh,zh)}function aT(t,e){return e(t)}function lT(t,e,i){return(n,r)=>Ct(i,()=>e(n,s=>t(s,r)))}var F_=new M(""),cT=new M(""),uT=new M("",{providedIn:"root",factory:()=>!0});var R_=(()=>{let e=class e extends Ls{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null,this.pendingTasks=w(Wn),this.contributeToStability=w(uT)}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(F_),...this.injector.get(cT,[])]));this.chain=r.reduceRight((s,o)=>lT(s,o,this.injector),aT)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(di(()=>this.pendingTasks.remove(r)))}else return this.chain(n,r=>this.backend.handle(r))}};e.\u0275fac=function(r){return new(r||e)(m(Sl),m(Ye))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();var dT=/^\)\]\}',?\n/;function hT(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var N_=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?ve(r.\u0275loadImpl()):O(null)).pipe(lt(()=>new q(o=>{let a=r.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((D,I)=>a.setRequestHeader(D,I.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let D=n.detectContentTypeHeader();D!==null&&a.setRequestHeader("Content-Type",D)}if(n.responseType){let D=n.responseType.toLowerCase();a.responseType=D!=="json"?D:"text"}let l=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let D=a.statusText||"OK",I=new Cn(a.getAllResponseHeaders()),$=hT(a)||n.url;return c=new Ml({headers:I,status:a.status,statusText:D,url:$}),c},d=()=>{let{headers:D,status:I,statusText:$,url:Y}=u(),H=null;I!==nT&&(H=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=H?P_:0);let ke=I>=200&&I<300;if(n.responseType==="json"&&typeof H=="string"){let he=H;H=H.replace(dT,"");try{H=H!==""?JSON.parse(H):null}catch(me){H=he,ke&&(ke=!1,H={error:me,text:H})}}ke?(o.next(new js({body:H,headers:D,status:I,statusText:$,url:Y||void 0})),o.complete()):o.error(new Yn({error:H,headers:D,status:I,statusText:$,url:Y||void 0}))},f=D=>{let{url:I}=u(),$=new Yn({error:D,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});o.error($)},h=!1,p=D=>{h||(o.next(u()),h=!0);let I={type:Zn.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(I.total=D.total),n.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),o.next(I)},y=D=>{let I={type:Zn.UploadProgress,loaded:D.loaded};D.lengthComputable&&(I.total=D.total),o.next(I)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",p),l!==null&&a.upload&&a.upload.addEventListener("progress",y)),a.send(l),o.next({type:Zn.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",p),l!==null&&a.upload&&a.upload.removeEventListener("progress",y)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(r){return new(r||e)(m(Tr))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),L_=new M(""),fT="XSRF-TOKEN",pT=new M("",{providedIn:"root",factory:()=>fT}),mT="X-XSRF-TOKEN",gT=new M("",{providedIn:"root",factory:()=>mT}),Tl=class{},yT=(()=>{let e=class e{constructor(n,r,s){this.doc=n,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=bl(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(r){return new(r||e)(m(X),m(Vt),m(pT))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function vT(t,e){let i=t.url.toLowerCase();if(!w(L_)||t.method==="GET"||t.method==="HEAD"||i.startsWith("http://")||i.startsWith("https://"))return e(t);let n=w(Tl).getToken(),r=w(gT);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}function V_(...t){let e=[Wh,N_,R_,{provide:Ls,useExisting:R_},{provide:Sl,useFactory:()=>w(sT,{optional:!0})??w(N_)},{provide:F_,useValue:vT,multi:!0},{provide:L_,useValue:!0},{provide:Tl,useClass:yT}];for(let i of t)e.push(...i.\u0275providers);return Cr(e)}var qh=class extends wl{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Zh=class t extends qh{static makeCurrent(){D_(new t)}onAndCancel(e,i,n){return e.addEventListener(i,n),()=>{e.removeEventListener(i,n)}}dispatchEvent(e,i){e.dispatchEvent(i)}remove(e){e.remove()}createElement(e,i){return i=i||this.getDefaultDocument(),i.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,i){return i==="window"?window:i==="document"?e:i==="body"?e.body:null}getBaseHref(e){let i=wT();return i==null?null:DT(i)}resetBaseElement(){Bs=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return bl(document.cookie,e)}},Bs=null;function wT(){return Bs=Bs||document.querySelector("base"),Bs?Bs.getAttribute("href"):null}function DT(t){return new URL(t,document.baseURI).pathname}var Kh=class{addToWindow(e){wt.getAngularTestability=(n,r=!0)=>{let s=e.findTestabilityInTree(n,r);if(s==null)throw new b(5103,!1);return s},wt.getAllAngularTestabilities=()=>e.getAllTestabilities(),wt.getAllAngularRootElements=()=>e.getAllRootElements();let i=n=>{let r=wt.getAllAngularTestabilities(),s=r.length,o=function(){s--,s==0&&n()};r.forEach(a=>{a.whenStable(o)})};wt.frameworkStabilizers||(wt.frameworkStabilizers=[]),wt.frameworkStabilizers.push(i)}findTestabilityInTree(e,i,n){if(i==null)return null;let r=e.getTestability(i);return r??(n?on().isShadowRoot(i)?this.findTestabilityInTree(e,i.host,!0):this.findTestabilityInTree(e,i.parentElement,!0):null)}},bT=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Al=new M(""),U_=(()=>{let e=class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(s=>{s.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,s){return this._findPluginFor(r).addEventListener(n,r,s)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(n,r),r}};e.\u0275fac=function(r){return new(r||e)(m(Al),m(L))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Us=class{constructor(e){this._doc=e}},Gh="ng-app-id",$_=(()=>{let e=class e{constructor(n,r,s,o={}){this.doc=n,this.appId=r,this.nonce=s,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=El(o),this.resetHostNodes()}addStyles(n){for(let r of n)this.changeUsageCount(r,1)===1&&this.onStyleAdded(r)}removeStyles(n){for(let r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(let r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){let r=this.styleRef;r.get(n)?.elements?.forEach(s=>s.remove()),r.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Gh}="${this.appId}"]`);if(n?.length){let r=new Map;return n.forEach(s=>{s.textContent!=null&&r.set(s.textContent,s)}),r}return null}changeUsageCount(n,r){let s=this.styleRef;if(s.has(n)){let o=s.get(n);return o.usage+=r,o.usage}return s.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){let s=this.styleNodesInDOM,o=s?.get(r);if(o?.parentNode===n)return s.delete(r),o.removeAttribute(Gh),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=r,this.platformIsServer&&a.setAttribute(Gh,this.appId),n.appendChild(a),a}}addStyleToHost(n,r){let s=this.getStyleElement(n,r),o=this.styleRef,a=o.get(r)?.elements;a?a.push(s):o.set(r,{elements:[s],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(r){return new(r||e)(m(X),m(Ss),m(Ts,8),m(Vt))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Yh={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Xh=/%COMP%/g,H_="%COMP%",CT=`_nghost-${H_}`,ET=`_ngcontent-${H_}`,IT=!0,ST=new M("",{providedIn:"root",factory:()=>IT});function MT(t){return ET.replace(Xh,t)}function TT(t){return CT.replace(Xh,t)}function z_(t,e){return e.map(i=>i.replace(Xh,t))}var xl=(()=>{let e=class e{constructor(n,r,s,o,a,l,c,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=s,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=c,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=El(l),this.defaultRenderer=new $s(n,a,c,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Jt.ShadowDom&&(r=se(E({},r),{encapsulation:Jt.Emulated}));let s=this.getOrCreateRenderer(n,r);return s instanceof kl?s.applyToHost(n):s instanceof Hs&&s.applyStyles(),s}getOrCreateRenderer(n,r){let s=this.rendererByCompId,o=s.get(r.id);if(!o){let a=this.doc,l=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(r.encapsulation){case Jt.Emulated:o=new kl(c,u,r,this.appId,d,a,l,f);break;case Jt.ShadowDom:return new Qh(c,u,n,r,a,l,this.nonce,f);default:o=new Hs(c,u,r,d,a,l,f);break}s.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(r){return new(r||e)(m(U_),m($_),m(Ss),m(ST),m(X),m(Vt),m(L),m(Ts))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),$s=class{constructor(e,i,n,r){this.eventManager=e,this.doc=i,this.ngZone=n,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,i){return i?this.doc.createElementNS(Yh[i]||i,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,i){(j_(e)?e.content:e).appendChild(i)}insertBefore(e,i,n){e&&(j_(e)?e.content:e).insertBefore(i,n)}removeChild(e,i){i.remove()}selectRootElement(e,i){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new b(-5104,!1);return i||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,i,n,r){if(r){i=r+":"+i;let s=Yh[r];s?e.setAttributeNS(s,i,n):e.setAttribute(i,n)}else e.setAttribute(i,n)}removeAttribute(e,i,n){if(n){let r=Yh[n];r?e.removeAttributeNS(r,i):e.removeAttribute(`${n}:${i}`)}else e.removeAttribute(i)}addClass(e,i){e.classList.add(i)}removeClass(e,i){e.classList.remove(i)}setStyle(e,i,n,r){r&(_n.DashCase|_n.Important)?e.style.setProperty(i,n,r&_n.Important?"important":""):e.style[i]=n}removeStyle(e,i,n){n&_n.DashCase?e.style.removeProperty(i):e.style[i]=""}setProperty(e,i,n){e!=null&&(e[i]=n)}setValue(e,i){e.nodeValue=i}listen(e,i,n){if(typeof e=="string"&&(e=on().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${i}`);return this.eventManager.addEventListener(e,i,this.decoratePreventDefault(n))}decoratePreventDefault(e){return i=>{if(i==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(i)):e(i))===!1&&i.preventDefault()}}};function j_(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Qh=class extends $s{constructor(e,i,n,r,s,o,a,l){super(e,s,o,l),this.sharedStylesHost=i,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=z_(r.id,r.styles);for(let u of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,i){return super.appendChild(this.nodeOrShadowRoot(e),i)}insertBefore(e,i,n){return super.insertBefore(this.nodeOrShadowRoot(e),i,n)}removeChild(e,i){return super.removeChild(null,i)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Hs=class extends $s{constructor(e,i,n,r,s,o,a,l){super(e,s,o,a),this.sharedStylesHost=i,this.removeStylesOnCompDestroy=r,this.styles=l?z_(l,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},kl=class extends Hs{constructor(e,i,n,r,s,o,a,l){let c=r+"-"+n.id;super(e,i,n,s,o,a,l,c),this.contentAttr=MT(c),this.hostAttr=TT(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,i){let n=super.createElement(e,i);return super.setAttribute(n,this.contentAttr,""),n}},AT=(()=>{let e=class e extends Us{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,s){return n.addEventListener(r,s,!1),()=>this.removeEventListener(n,r,s)}removeEventListener(n,r,s){return n.removeEventListener(r,s)}};e.\u0275fac=function(r){return new(r||e)(m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),xT=(()=>{let e=class e extends Us{constructor(n){super(n),this.delegate=w(p_,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,r,s){return this.delegate.addEventListener(n,r,s)}removeEventListener(n,r,s){return this.delegate.removeEventListener(n,r,s)}};e.\u0275fac=function(r){return new(r||e)(m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),B_=["alt","control","meta","shift"],kT={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},OT={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},RT=(()=>{let e=class e extends Us{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,s){let o=e.parseEventName(r),a=e.eventCallback(o.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>on().onAndCancel(n,o.domEventName,a))}static parseEventName(n){let r=n.toLowerCase().split("."),s=r.shift();if(r.length===0||!(s==="keydown"||s==="keyup"))return null;let o=e._normalizeKey(r.pop()),a="",l=r.indexOf("code");if(l>-1&&(r.splice(l,1),a="code."),B_.forEach(u=>{let d=r.indexOf(u);d>-1&&(r.splice(d,1),a+=u+".")}),a+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=s,c.fullKey=a,c}static matchEventFullKeyCode(n,r){let s=kT[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(s=n.code,o="code."),s==null||!s?!1:(s=s.toLowerCase(),s===" "?s="space":s==="."&&(s="dot"),B_.forEach(a=>{if(a!==s){let l=OT[a];l(n)&&(o+=a+".")}}),o+=s,o===r)}static eventCallback(n,r,s){return o=>{e.matchEventFullKeyCode(o,n)&&s.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(r){return new(r||e)(m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function W_(t,e){return f_(E({rootComponent:t},NT(e)))}function NT(t){return{appProviders:[...G_,...t?.providers??[]],platformProviders:VT}}function PT(){Zh.makeCurrent()}function FT(){return new vn}function LT(){return Zy(document),document}var VT=[{provide:Vt,useValue:Vh},{provide:oh,useValue:PT,multi:!0},{provide:X,useFactory:LT,deps:[]}];var jT=new M(""),BT=[{provide:ks,useClass:Kh,deps:[]},{provide:Mh,useClass:gl,deps:[L,yl,ks]},{provide:gl,useClass:gl,deps:[L,yl,ks]}],G_=[{provide:Ka,useValue:"root"},{provide:vn,useFactory:FT,deps:[]},{provide:Al,useClass:AT,multi:!0,deps:[X,L,Vt]},{provide:Al,useClass:RT,multi:!0,deps:[X]},{provide:Al,useClass:xT,multi:!0},xl,$_,U_,{provide:Bn,useExisting:xl},{provide:Tr,useClass:bT,deps:[]},[]],Y_=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Ss,useValue:n.appId}]}}};e.\u0275fac=function(r){return new(r||e)(m(jT,12))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[...G_,...BT],imports:[Ps,h_]});let t=e;return t})();var q_=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(r){return new(r||e)(m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var J="primary",oo=Symbol("RouteTitle"),rf=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i[0]:i}return null}getAll(e){if(this.has(e)){let i=this.params[e];return Array.isArray(i)?i:[i]}return[]}get keys(){return Object.keys(this.params)}};function Nr(t){return new rf(t)}function $T(t,e,i){let n=i.path.split("/");if(n.length>t.length||i.pathMatch==="full"&&(e.hasChildren()||n.lengthn[s]===r)}else return t===e}function iw(t){return t.length>0?t[t.length-1]:null}function Qn(t){return is(t)?t:Ti(t)?ve(Promise.resolve(t)):O(t)}var zT={exact:sw,subset:ow},rw={exact:WT,subset:GT,ignored:()=>!0};function Z_(t,e,i){return zT[i.paths](t.root,e.root,i.matrixParams)&&rw[i.queryParams](t.queryParams,e.queryParams)&&!(i.fragment==="exact"&&t.fragment!==e.fragment)}function WT(t,e){return an(t,e)}function sw(t,e,i){if(!Oi(t.segments,e.segments)||!Nl(t.segments,e.segments,i)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!sw(t.children[n],e.children[n],i))return!1;return!0}function GT(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>nw(t[i],e[i]))}function ow(t,e,i){return aw(t,e,e.segments,i)}function aw(t,e,i,n){if(t.segments.length>i.length){let r=t.segments.slice(0,i.length);return!(!Oi(r,i)||e.hasChildren()||!Nl(r,i,n))}else if(t.segments.length===i.length){if(!Oi(t.segments,i)||!Nl(t.segments,i,n))return!1;for(let r in e.children)if(!t.children[r]||!ow(t.children[r],e.children[r],n))return!1;return!0}else{let r=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!Oi(t.segments,r)||!Nl(t.segments,r,n)||!t.children[J]?!1:aw(t.children[J],e,s,n)}}function Nl(t,e,i){return e.every((n,r)=>rw[i](t[r].parameters,n.parameters))}var In=class{constructor(e=new fe([],{}),i={},n=null){this.root=e,this.queryParams=i,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Nr(this.queryParams),this._queryParamMap}toString(){return ZT.serialize(this)}},fe=class{constructor(e,i){this.segments=e,this.children=i,this.parent=null,Object.values(i).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Pl(this)}},ki=class{constructor(e,i){this.path=e,this.parameters=i}get parameterMap(){return this._parameterMap??=Nr(this.parameters),this._parameterMap}toString(){return cw(this)}};function YT(t,e){return Oi(t,e)&&t.every((i,n)=>an(i.parameters,e[n].parameters))}function Oi(t,e){return t.length!==e.length?!1:t.every((i,n)=>i.path===e[n].path)}function qT(t,e){let i=[];return Object.entries(t.children).forEach(([n,r])=>{n===J&&(i=i.concat(e(r,n)))}),Object.entries(t.children).forEach(([n,r])=>{n!==J&&(i=i.concat(e(r,n)))}),i}var kf=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>new Ks,providedIn:"root"});let t=e;return t})(),Ks=class{parse(e){let i=new af(e);return new In(i.parseRootSegment(),i.parseQueryParams(),i.parseFragment())}serialize(e){let i=`/${zs(e.root,!0)}`,n=XT(e.queryParams),r=typeof e.fragment=="string"?`#${KT(e.fragment)}`:"";return`${i}${n}${r}`}},ZT=new Ks;function Pl(t){return t.segments.map(e=>cw(e)).join("/")}function zs(t,e){if(!t.hasChildren())return Pl(t);if(e){let i=t.children[J]?zs(t.children[J],!1):"",n=[];return Object.entries(t.children).forEach(([r,s])=>{r!==J&&n.push(`${r}:${zs(s,!1)}`)}),n.length>0?`${i}(${n.join("//")})`:i}else{let i=qT(t,(n,r)=>r===J?[zs(t.children[J],!1)]:[`${r}:${zs(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[J]!=null?`${Pl(t)}/${i[0]}`:`${Pl(t)}/(${i.join("//")})`}}function lw(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ol(t){return lw(t).replace(/%3B/gi,";")}function KT(t){return encodeURI(t)}function of(t){return lw(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Fl(t){return decodeURIComponent(t)}function K_(t){return Fl(t.replace(/\+/g,"%20"))}function cw(t){return`${of(t.path)}${QT(t.parameters)}`}function QT(t){return Object.entries(t).map(([e,i])=>`;${of(e)}=${of(i)}`).join("")}function XT(t){let e=Object.entries(t).map(([i,n])=>Array.isArray(n)?n.map(r=>`${Ol(i)}=${Ol(r)}`).join("&"):`${Ol(i)}=${Ol(n)}`).filter(i=>i);return e.length?`?${e.join("&")}`:""}var JT=/^[^\/()?;#]+/;function Jh(t){let e=t.match(JT);return e?e[0]:""}var eA=/^[^\/()?;=#]+/;function tA(t){let e=t.match(eA);return e?e[0]:""}var nA=/^[^=?&#]+/;function iA(t){let e=t.match(nA);return e?e[0]:""}var rA=/^[^&#]+/;function sA(t){let e=t.match(rA);return e?e[0]:""}var af=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new fe([],{}):new fe([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let i={};this.peekStartsWith("/(")&&(this.capture("/"),i=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(i).length>0)&&(n[J]=new fe(e,i)),n}parseSegment(){let e=Jh(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(e),new ki(Fl(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let i=tA(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let r=Jh(this.remaining);r&&(n=r,this.capture(n))}e[Fl(i)]=Fl(n)}parseQueryParam(e){let i=iA(this.remaining);if(!i)return;this.capture(i);let n="";if(this.consumeOptional("=")){let o=sA(this.remaining);o&&(n=o,this.capture(n))}let r=K_(i),s=K_(n);if(e.hasOwnProperty(r)){let o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(s)}else e[r]=s}parseParens(e){let i={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Jh(this.remaining),r=this.remaining[n.length];if(r!=="/"&&r!==")"&&r!==";")throw new b(4010,!1);let s;n.indexOf(":")>-1?(s=n.slice(0,n.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=J);let o=this.parseChildren();i[s]=Object.keys(o).length===1?o[J]:new fe([],o),this.consumeOptional("//")}return i}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new b(4011,!1)}};function uw(t){return t.segments.length>0?new fe([],{[J]:t}):t}function dw(t){let e={};for(let[n,r]of Object.entries(t.children)){let s=dw(r);if(n===J&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))e[o]=a;else(s.segments.length>0||s.hasChildren())&&(e[n]=s)}let i=new fe(t.segments,e);return oA(i)}function oA(t){if(t.numberOfChildren===1&&t.children[J]){let e=t.children[J];return new fe(t.segments.concat(e.segments),e.children)}return t}function Qs(t){return t instanceof In}function aA(t,e,i=null,n=null){let r=hw(t);return fw(r,e,i,n)}function hw(t){let e;function i(s){let o={};for(let l of s.children){let c=i(l);o[l.outlet]=c}let a=new fe(s.url,o);return s===t&&(e=a),a}let n=i(t.root),r=uw(n);return e??r}function fw(t,e,i,n){let r=t;for(;r.parent;)r=r.parent;if(e.length===0)return ef(r,r,r,i,n);let s=lA(e);if(s.toRoot())return ef(r,r,new fe([],{}),i,n);let o=cA(s,r,t),a=o.processChildren?Ys(o.segmentGroup,o.index,s.commands):mw(o.segmentGroup,o.index,s.commands);return ef(r,o.segmentGroup,a,i,n)}function Ll(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Xs(t){return typeof t=="object"&&t!=null&&t.outlets}function ef(t,e,i,n,r){let s={};n&&Object.entries(n).forEach(([l,c])=>{s[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let o;t===e?o=i:o=pw(t,e,i);let a=uw(dw(o));return new In(a,s,r)}function pw(t,e,i){let n={};return Object.entries(t.children).forEach(([r,s])=>{s===e?n[r]=i:n[r]=pw(s,e,i)}),new fe(t.segments,n)}var Vl=class{constructor(e,i,n){if(this.isAbsolute=e,this.numberOfDoubleDots=i,this.commands=n,e&&n.length>0&&Ll(n[0]))throw new b(4003,!1);let r=n.find(Xs);if(r&&r!==iw(n))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function lA(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Vl(!0,0,t);let e=0,i=!1,n=t.reduce((r,s,o)=>{if(typeof s=="object"&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return typeof s!="string"?[...r,s]:o===0?(s.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?i=!0:a===".."?e++:a!=""&&r.push(a))}),r):[...r,s]},[]);return new Vl(i,e,n)}var kr=class{constructor(e,i,n){this.segmentGroup=e,this.processChildren=i,this.index=n}};function cA(t,e,i){if(t.isAbsolute)return new kr(e,!0,0);if(!i)return new kr(e,!1,NaN);if(i.parent===null)return new kr(i,!0,0);let n=Ll(t.commands[0])?0:1,r=i.segments.length-1+n;return uA(i,r,t.numberOfDoubleDots)}function uA(t,e,i){let n=t,r=e,s=i;for(;s>r;){if(s-=r,n=n.parent,!n)throw new b(4005,!1);r=n.segments.length}return new kr(n,!1,r-s)}function dA(t){return Xs(t[0])?t[0].outlets:{[J]:t}}function mw(t,e,i){if(t??=new fe([],{}),t.segments.length===0&&t.hasChildren())return Ys(t,e,i);let n=hA(t,e,i),r=i.slice(n.commandIndex);if(n.match&&n.pathIndexs!==J)&&t.children[J]&&t.numberOfChildren===1&&t.children[J].segments.length===0){let s=Ys(t.children[J],e,i);return new fe(t.segments,s.children)}return Object.entries(n).forEach(([s,o])=>{typeof o=="string"&&(o=[o]),o!==null&&(r[s]=mw(t.children[s],e,o))}),Object.entries(t.children).forEach(([s,o])=>{n[s]===void 0&&(r[s]=o)}),new fe(t.segments,r)}}function hA(t,e,i){let n=0,r=e,s={match:!1,pathIndex:0,commandIndex:0};for(;r=i.length)return s;let o=t.segments[r],a=i[n];if(Xs(a))break;let l=`${a}`,c=n0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!X_(l,c,o))return s;n+=2}else{if(!X_(l,{},o))return s;n++}r++}return{match:!0,pathIndex:r,commandIndex:n}}function lf(t,e,i){let n=t.segments.slice(0,e),r=0;for(;r{typeof n=="string"&&(n=[n]),n!==null&&(e[i]=lf(new fe([],{}),0,n))}),e}function Q_(t){let e={};return Object.entries(t).forEach(([i,n])=>e[i]=`${n}`),e}function X_(t,e,i){return t==i.path&&an(e,i.parameters)}var qs="imperative",He=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(He||{}),Tt=class{constructor(e,i){this.id=e,this.url=i}},Js=class extends Tt{constructor(e,i,n="imperative",r=null){super(e,i),this.type=He.NavigationStart,this.navigationTrigger=n,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ri=class extends Tt{constructor(e,i,n){super(e,i),this.urlAfterRedirects=n,this.type=He.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},mt=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(mt||{}),cf=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(cf||{}),En=class extends Tt{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=He.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Ni=class extends Tt{constructor(e,i,n,r){super(e,i),this.reason=n,this.code=r,this.type=He.NavigationSkipped}},eo=class extends Tt{constructor(e,i,n,r){super(e,i),this.error=n,this.target=r,this.type=He.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},jl=class extends Tt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=He.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},uf=class extends Tt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=He.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},df=class extends Tt{constructor(e,i,n,r,s){super(e,i),this.urlAfterRedirects=n,this.state=r,this.shouldActivate=s,this.type=He.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},hf=class extends Tt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=He.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ff=class extends Tt{constructor(e,i,n,r){super(e,i),this.urlAfterRedirects=n,this.state=r,this.type=He.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pf=class{constructor(e){this.route=e,this.type=He.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mf=class{constructor(e){this.route=e,this.type=He.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gf=class{constructor(e){this.snapshot=e,this.type=He.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yf=class{constructor(e){this.snapshot=e,this.type=He.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vf=class{constructor(e){this.snapshot=e,this.type=He.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_f=class{constructor(e){this.snapshot=e,this.type=He.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var to=class{},Pr=class{constructor(e,i){this.url=e,this.navigationBehaviorOptions=i}};function pA(t,e){return t.providers&&!t._injector&&(t._injector=Dh(t.providers,e,`Route: ${t.path}`)),t._injector??e}function zt(t){return t.outlet||J}function mA(t,e){let i=t.filter(n=>zt(n)===e);return i.push(...t.filter(n=>zt(n)!==e)),i}function ao(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let i=e.routeConfig;if(i?._loadedInjector)return i._loadedInjector;if(i?._injector)return i._injector}return null}var wf=class{get injector(){return ao(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Gl(this.rootInjector),this.attachRef=null}},Gl=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,r){let s=this.getOrCreateContext(n);s.outlet=r,this.contexts.set(n,s)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new wf(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(r){return new(r||e)(m(Ye))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Bl=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let i=this.pathFromRoot(e);return i.length>1?i[i.length-2]:null}children(e){let i=Df(e,this._root);return i?i.children.map(n=>n.value):[]}firstChild(e){let i=Df(e,this._root);return i&&i.children.length>0?i.children[0].value:null}siblings(e){let i=bf(e,this._root);return i.length<2?[]:i[i.length-2].children.map(r=>r.value).filter(r=>r!==e)}pathFromRoot(e){return bf(e,this._root).map(i=>i.value)}};function Df(t,e){if(t===e.value)return e;for(let i of e.children){let n=Df(t,i);if(n)return n}return null}function bf(t,e){if(t===e.value)return[e];for(let i of e.children){let n=bf(t,i);if(n.length)return n.unshift(e),n}return[]}var pt=class{constructor(e,i){this.value=e,this.children=i}toString(){return`TreeNode(${this.value})`}};function xr(t){let e={};return t&&t.children.forEach(i=>e[i.value.outlet]=i),e}var Ul=class extends Bl{constructor(e,i){super(e),this.snapshot=i,Of(this,e)}toString(){return this.snapshot.toString()}};function gw(t){let e=gA(t),i=new Re([new ki("",{})]),n=new Re({}),r=new Re({}),s=new Re({}),o=new Re(""),a=new Kn(i,n,s,o,r,J,t,e.root);return a.snapshot=e.root,new Ul(new pt(a,[]),e)}function gA(t){let e={},i={},n={},r="",s=new Or([],e,n,r,i,J,t,null,{});return new Hl("",new pt(s,[]))}var Kn=class{constructor(e,i,n,r,s,o,a,l){this.urlSubject=e,this.paramsSubject=i,this.queryParamsSubject=n,this.fragmentSubject=r,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(j(c=>c[oo]))??O(void 0),this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(j(e=>Nr(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(j(e=>Nr(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function $l(t,e,i="emptyOnly"){let n,{routeConfig:r}=t;return e!==null&&(i==="always"||r?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:E(E({},e.params),t.params),data:E(E({},e.data),t.data),resolve:E(E(E(E({},t.data),e.data),r?.data),t._resolvedData)}:n={params:E({},t.params),data:E({},t.data),resolve:E(E({},t.data),t._resolvedData??{})},r&&vw(r)&&(n.resolve[oo]=r.title),n}var Or=class{get title(){return this.data?.[oo]}constructor(e,i,n,r,s,o,a,l,c){this.url=e,this.params=i,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Nr(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Nr(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),i=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${i}')`}},Hl=class extends Bl{constructor(e,i){super(i),this.url=e,Of(this,i)}toString(){return yw(this._root)}};function Of(t,e){e.value._routerState=t,e.children.forEach(i=>Of(t,i))}function yw(t){let e=t.children.length>0?` { ${t.children.map(yw).join(", ")} } `:"";return`${t.value}${e}`}function tf(t){if(t.snapshot){let e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,an(e.queryParams,i.queryParams)||t.queryParamsSubject.next(i.queryParams),e.fragment!==i.fragment&&t.fragmentSubject.next(i.fragment),an(e.params,i.params)||t.paramsSubject.next(i.params),HT(e.url,i.url)||t.urlSubject.next(i.url),an(e.data,i.data)||t.dataSubject.next(i.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Cf(t,e){let i=an(t.params,e.params)&&YT(t.url,e.url),n=!t.parent!=!e.parent;return i&&!n&&(!t.parent||Cf(t.parent,e.parent))}function vw(t){return typeof t.title=="string"||t.title===null}var Rf=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=J,this.activateEvents=new A,this.deactivateEvents=new A,this.attachEvents=new A,this.detachEvents=new A,this.parentContexts=w(Gl),this.location=w(rt),this.changeDetector=w(Ue),this.inputBinder=w(Nf,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:s}=n.name;if(r)return;this.isTrackedInParentContexts(s)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(s)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=n;let s=this.location,a=n.snapshot.component,l=this.parentContexts.getOrCreateContext(this.name).children,c=new Ef(n,l,s.injector);this.activated=s.createComponent(a,{index:s.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[nt]});let t=e;return t})(),Ef=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,i,n){this.route=e,this.childContexts=i,this.parent=n}get(e,i){return e===Kn?this.route:e===Gl?this.childContexts:this.parent.get(e,i)}},Nf=new M("");function yA(t,e,i){let n=no(t,e._root,i?i._root:void 0);return new Ul(n,e)}function no(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){let n=i.value;n._futureSnapshot=e.value;let r=vA(t,e,i);return new pt(n,r)}else{if(t.shouldAttach(e.value)){let s=t.retrieve(e.value);if(s!==null){let o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>no(t,a)),o}}let n=_A(e.value),r=e.children.map(s=>no(t,s));return new pt(n,r)}}function vA(t,e,i){return e.children.map(n=>{for(let r of i.children)if(t.shouldReuseRoute(n.value,r.value.snapshot))return no(t,n,r);return no(t,n)})}function _A(t){return new Kn(new Re(t.url),new Re(t.params),new Re(t.queryParams),new Re(t.fragment),new Re(t.data),t.outlet,t.component,t)}var io=class{constructor(e,i){this.redirectTo=e,this.navigationBehaviorOptions=i}},_w="ngNavigationCancelingError";function zl(t,e){let{redirectTo:i,navigationBehaviorOptions:n}=Qs(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,r=ww(!1,mt.Redirect);return r.url=i,r.navigationBehaviorOptions=n,r}function ww(t,e){let i=new Error(`NavigationCancelingError: ${t||""}`);return i[_w]=!0,i.cancellationCode=e,i}function wA(t){return Dw(t)&&Qs(t.url)}function Dw(t){return!!t&&t[_w]}var DA=(t,e,i,n)=>j(r=>(new If(e,r.targetRouterState,r.currentRouterState,i,n).activate(t),r)),If=class{constructor(e,i,n,r,s){this.routeReuseStrategy=e,this.futureState=i,this.currState=n,this.forwardEvent=r,this.inputBindingEnabled=s}activate(e){let i=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(i,n,e),tf(this.futureState.root),this.activateChildRoutes(i,n,e)}deactivateChildRoutes(e,i,n){let r=xr(i);e.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,r[o],n),delete r[o]}),Object.values(r).forEach(s=>{this.deactivateRouteAndItsChildren(s,n)})}deactivateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(r===s)if(r.component){let o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(e,i,o.children)}else this.deactivateChildRoutes(e,i,n);else s&&this.deactivateRouteAndItsChildren(i,n)}deactivateRouteAndItsChildren(e,i){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,i):this.deactivateRouteAndOutlet(e,i)}detachAndStoreRouteSubtree(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=xr(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);if(n&&n.outlet){let o=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,i){let n=i.getContext(e.value.outlet),r=n&&e.value.component?n.children:i,s=xr(e);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,r);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,i,n){let r=xr(i);e.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],n),this.forwardEvent(new _f(s.value.snapshot))}),e.children.length&&this.forwardEvent(new yf(e.value.snapshot))}activateRoutes(e,i,n){let r=e.value,s=i?i.value:null;if(tf(r),r===s)if(r.component){let o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(e,i,o.children)}else this.activateChildRoutes(e,i,n);else if(r.component){let o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),tf(a.route.value),this.activateChildRoutes(e,null,o.children)}else o.attachRef=null,o.route=r,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(e,null,o.children)}else this.activateChildRoutes(e,null,n)}},Wl=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Rr=class{constructor(e,i){this.component=e,this.route=i}};function bA(t,e,i){let n=t._root,r=e?e._root:null;return Ws(n,r,i,[n.value])}function CA(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Lr(t,e){let i=Symbol(),n=e.get(t,i);return n===i?typeof t=="function"&&!Fg(t)?t:e.get(t):n}function Ws(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=xr(e);return t.children.forEach(o=>{EA(o,s[o.value.outlet],i,n.concat([o.value]),r),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>Zs(a,i.getContext(o),r)),r}function EA(t,e,i,n,r={canDeactivateChecks:[],canActivateChecks:[]}){let s=t.value,o=e?e.value:null,a=i?i.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=IA(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Wl(n)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Ws(t,e,a?a.children:null,n,r):Ws(t,e,i,n,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Rr(a.outlet.component,o))}else o&&Zs(e,a,r),r.canActivateChecks.push(new Wl(n)),s.component?Ws(t,null,a?a.children:null,n,r):Ws(t,null,i,n,r);return r}function IA(t,e,i){if(typeof i=="function")return i(t,e);switch(i){case"pathParamsChange":return!Oi(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Oi(t.url,e.url)||!an(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cf(t,e)||!an(t.queryParams,e.queryParams);case"paramsChange":default:return!Cf(t,e)}}function Zs(t,e,i){let n=xr(t),r=t.value;Object.entries(n).forEach(([s,o])=>{r.component?e?Zs(o,e.children.getContext(s),i):Zs(o,null,i):Zs(o,e,i)}),r.component?e&&e.outlet&&e.outlet.isActivated?i.canDeactivateChecks.push(new Rr(e.outlet.component,r)):i.canDeactivateChecks.push(new Rr(null,r)):i.canDeactivateChecks.push(new Rr(null,r))}function lo(t){return typeof t=="function"}function SA(t){return typeof t=="boolean"}function MA(t){return t&&lo(t.canLoad)}function TA(t){return t&&lo(t.canActivate)}function AA(t){return t&&lo(t.canActivateChild)}function xA(t){return t&&lo(t.canDeactivate)}function kA(t){return t&&lo(t.canMatch)}function bw(t){return t instanceof pn||t?.name==="EmptyError"}var Rl=Symbol("INITIAL_VALUE");function Fr(){return lt(t=>rr(t.map(e=>e.pipe(_e(1),Ot(Rl)))).pipe(j(e=>{for(let i of e)if(i!==!0){if(i===Rl)return Rl;if(i===!1||OA(i))return i}return!0}),pe(e=>e!==Rl),_e(1)))}function OA(t){return Qs(t)||t instanceof io}function RA(t,e){return Se(i=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=i;return o.length===0&&s.length===0?O(se(E({},i),{guardsResult:!0})):NA(o,n,r,t).pipe(Se(a=>a&&SA(a)?PA(n,s,t,e):O(a)),j(a=>se(E({},i),{guardsResult:a})))})}function NA(t,e,i,n){return ve(t).pipe(Se(r=>BA(r.component,r.route,i,e,n)),Zt(r=>r!==!0,!0))}function PA(t,e,i,n){return ve(e).pipe(Nn(r=>On(LA(r.route.parent,n),FA(r.route,n),jA(t,r.path,i),VA(t,r.route,i))),Zt(r=>r!==!0,!0))}function FA(t,e){return t!==null&&e&&e(new vf(t)),O(!0)}function LA(t,e){return t!==null&&e&&e(new gf(t)),O(!0)}function VA(t,e,i){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return O(!0);let r=n.map(s=>sr(()=>{let o=ao(e)??i,a=Lr(s,o),l=TA(a)?a.canActivate(e,t):Ct(o,()=>a(e,t));return Qn(l).pipe(Zt())}));return O(r).pipe(Fr())}function jA(t,e,i){let n=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>CA(o)).filter(o=>o!==null).map(o=>sr(()=>{let a=o.guards.map(l=>{let c=ao(o.node)??i,u=Lr(l,c),d=AA(u)?u.canActivateChild(n,t):Ct(c,()=>u(n,t));return Qn(d).pipe(Zt())});return O(a).pipe(Fr())}));return O(s).pipe(Fr())}function BA(t,e,i,n,r){let s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!s||s.length===0)return O(!0);let o=s.map(a=>{let l=ao(e)??r,c=Lr(a,l),u=xA(c)?c.canDeactivate(t,e,i,n):Ct(l,()=>c(t,e,i,n));return Qn(u).pipe(Zt())});return O(o).pipe(Fr())}function UA(t,e,i,n){let r=e.canLoad;if(r===void 0||r.length===0)return O(!0);let s=r.map(o=>{let a=Lr(o,t),l=MA(a)?a.canLoad(e,i):Ct(t,()=>a(e,i));return Qn(l)});return O(s).pipe(Fr(),Cw(n))}function Cw(t){return lu(Ne(e=>{if(typeof e!="boolean")throw zl(t,e)}),j(e=>e===!0))}function $A(t,e,i,n){let r=e.canMatch;if(!r||r.length===0)return O(!0);let s=r.map(o=>{let a=Lr(o,t),l=kA(a)?a.canMatch(e,i):Ct(t,()=>a(e,i));return Qn(l)});return O(s).pipe(Fr(),Cw(n))}var ro=class{constructor(e){this.segmentGroup=e||null}},so=class extends Error{constructor(e){super(),this.urlTree=e}};function Ar(t){return nr(new ro(t))}function HA(t){return nr(new b(4e3,!1))}function zA(t){return nr(ww(!1,mt.GuardRejected))}var Sf=class{constructor(e,i){this.urlSerializer=e,this.urlTree=i}lineralizeSegments(e,i){let n=[],r=i.root;for(;;){if(n=n.concat(r.segments),r.numberOfChildren===0)return O(n);if(r.numberOfChildren>1||!r.children[J])return HA(`${e.redirectTo}`);r=r.children[J]}}applyRedirectCommands(e,i,n,r,s){if(typeof i!="string"){let a=i,{queryParams:l,fragment:c,routeConfig:u,url:d,outlet:f,params:h,data:p,title:y}=r,D=Ct(s,()=>a({params:h,data:p,queryParams:l,fragment:c,routeConfig:u,url:d,outlet:f,title:y}));if(D instanceof In)throw new so(D);i=D}let o=this.applyRedirectCreateUrlTree(i,this.urlSerializer.parse(i),e,n);if(i[0]==="/")throw new so(o);return o}applyRedirectCreateUrlTree(e,i,n,r){let s=this.createSegmentGroup(e,i.root,n,r);return new In(s,this.createQueryParams(i.queryParams,this.urlTree.queryParams),i.fragment)}createQueryParams(e,i){let n={};return Object.entries(e).forEach(([r,s])=>{if(typeof s=="string"&&s[0]===":"){let a=s.substring(1);n[r]=i[a]}else n[r]=s}),n}createSegmentGroup(e,i,n,r){let s=this.createSegments(e,i.segments,n,r),o={};return Object.entries(i.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(e,l,n,r)}),new fe(s,o)}createSegments(e,i,n,r){return i.map(s=>s.path[0]===":"?this.findPosParam(e,s,r):this.findOrReturn(s,n))}findPosParam(e,i,n){let r=n[i.path.substring(1)];if(!r)throw new b(4001,!1);return r}findOrReturn(e,i){let n=0;for(let r of i){if(r.path===e.path)return i.splice(n),r;n++}return e}},Mf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function WA(t,e,i,n,r){let s=Pf(t,e,i);return s.matched?(n=pA(e,n),$A(n,e,i,r).pipe(j(o=>o===!0?s:E({},Mf)))):O(s)}function Pf(t,e,i){if(e.path==="**")return GA(i);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||i.length>0)?E({},Mf):{matched:!0,consumedSegments:[],remainingSegments:i,parameters:{},positionalParamSegments:{}};let r=(e.matcher||$T)(i,t,e);if(!r)return E({},Mf);let s={};Object.entries(r.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=r.consumed.length>0?E(E({},s),r.consumed[r.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:i.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function GA(t){return{matched:!0,parameters:t.length>0?iw(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function J_(t,e,i,n){return i.length>0&&ZA(t,i,n)?{segmentGroup:new fe(e,qA(n,new fe(i,t.children))),slicedSegments:[]}:i.length===0&&KA(t,i,n)?{segmentGroup:new fe(t.segments,YA(t,i,n,t.children)),slicedSegments:i}:{segmentGroup:new fe(t.segments,t.children),slicedSegments:i}}function YA(t,e,i,n){let r={};for(let s of i)if(Yl(t,e,s)&&!n[zt(s)]){let o=new fe([],{});r[zt(s)]=o}return E(E({},n),r)}function qA(t,e){let i={};i[J]=e;for(let n of t)if(n.path===""&&zt(n)!==J){let r=new fe([],{});i[zt(n)]=r}return i}function ZA(t,e,i){return i.some(n=>Yl(t,e,n)&&zt(n)!==J)}function KA(t,e,i){return i.some(n=>Yl(t,e,n))}function Yl(t,e,i){return(t.hasChildren()||e.length>0)&&i.pathMatch==="full"?!1:i.path===""}function QA(t,e,i,n){return zt(t)!==n&&(n===J||!Yl(e,i,t))?!1:Pf(e,t,i).matched}function XA(t,e,i){return e.length===0&&!t.children[i]}var Tf=class{};function JA(t,e,i,n,r,s,o="emptyOnly"){return new Af(t,e,i,n,r,o,s).recognize()}var ex=31,Af=class{constructor(e,i,n,r,s,o,a){this.injector=e,this.configLoader=i,this.rootComponentType=n,this.config=r,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.applyRedirects=new Sf(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new b(4002,`'${e.segmentGroup}'`)}recognize(){let e=J_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(j(({children:i,rootSnapshot:n})=>{let r=new pt(n,i),s=new Hl("",r),o=aA(n,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}))}match(e){let i=new Or([],Object.freeze({}),Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),J,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,J,i).pipe(j(n=>({children:n,rootSnapshot:i})),Rn(n=>{if(n instanceof so)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ro?this.noMatchError(n):n}))}processSegmentGroup(e,i,n,r,s){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,i,n,s):this.processSegment(e,i,n,n.segments,r,!0,s).pipe(j(o=>o instanceof pt?[o]:[]))}processChildren(e,i,n,r){let s=[];for(let o of Object.keys(n.children))o==="primary"?s.unshift(o):s.push(o);return ve(s).pipe(Nn(o=>{let a=n.children[o],l=mA(i,o);return this.processSegmentGroup(e,l,a,o,r)}),yu((o,a)=>(o.push(...a),o)),Pn(null),gu(),Se(o=>{if(o===null)return Ar(n);let a=Ew(o);return tx(a),O(a)}))}processSegment(e,i,n,r,s,o,a){return ve(i).pipe(Nn(l=>this.processSegmentAgainstRoute(l._injector??e,i,l,n,r,s,o,a).pipe(Rn(c=>{if(c instanceof ro)return O(null);throw c}))),Zt(l=>!!l),Rn(l=>{if(bw(l))return XA(n,r,s)?O(new Tf):Ar(n);throw l}))}processSegmentAgainstRoute(e,i,n,r,s,o,a,l){return QA(n,r,s,o)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,r,n,s,o,l):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,r,i,n,s,o,l):Ar(r):Ar(r)}expandSegmentAgainstRouteUsingRedirect(e,i,n,r,s,o,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=Pf(i,r,s);if(!l)return Ar(i);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>ex&&(this.allowRedirects=!1));let h=new Or(s,c,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,ew(r),zt(r),r.component??r._loadedComponent??null,r,tw(r)),p=$l(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);let y=this.applyRedirects.applyRedirectCommands(u,r.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(r,y).pipe(Se(D=>this.processSegment(e,n,i,D.concat(f),o,!1,a)))}matchSegmentAgainstRoute(e,i,n,r,s,o){let a=WA(i,n,r,e,this.urlSerializer);return n.path==="**"&&(i.children={}),a.pipe(lt(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,r).pipe(lt(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=l,p=new Or(f,d,Object.freeze(E({},this.urlTree.queryParams)),this.urlTree.fragment,ew(n),zt(n),n.component??n._loadedComponent??null,n,tw(n)),y=$l(p,o,this.paramsInheritanceStrategy);p.params=Object.freeze(y.params),p.data=Object.freeze(y.data);let{segmentGroup:D,slicedSegments:I}=J_(i,f,h,c);if(I.length===0&&D.hasChildren())return this.processChildren(u,c,D,p).pipe(j(Y=>new pt(p,Y)));if(c.length===0&&I.length===0)return O(new pt(p,[]));let $=zt(n)===s;return this.processSegment(u,c,D,I,$?J:s,!0,p).pipe(j(Y=>new pt(p,Y instanceof pt?[Y]:[])))}))):Ar(i)))}getChildConfig(e,i,n){return i.children?O({routes:i.children,injector:e}):i.loadChildren?i._loadedRoutes!==void 0?O({routes:i._loadedRoutes,injector:i._loadedInjector}):UA(e,i,n,this.urlSerializer).pipe(Se(r=>r?this.configLoader.loadChildren(e,i).pipe(Ne(s=>{i._loadedRoutes=s.routes,i._loadedInjector=s.injector})):zA(i))):O({routes:[],injector:e})}};function tx(t){t.sort((e,i)=>e.value.outlet===J?-1:i.value.outlet===J?1:e.value.outlet.localeCompare(i.value.outlet))}function nx(t){let e=t.value.routeConfig;return e&&e.path===""}function Ew(t){let e=[],i=new Set;for(let n of t){if(!nx(n)){e.push(n);continue}let r=e.find(s=>n.value.routeConfig===s.value.routeConfig);r!==void 0?(r.children.push(...n.children),i.add(r)):e.push(n)}for(let n of i){let r=Ew(n.children);e.push(new pt(n.value,r))}return e.filter(n=>!i.has(n))}function ew(t){return t.data||{}}function tw(t){return t.resolve||{}}function ix(t,e,i,n,r,s){return Se(o=>JA(t,e,i,n,o.extractedUrl,r,s).pipe(j(({state:a,tree:l})=>se(E({},o),{targetSnapshot:a,urlAfterRedirects:l}))))}function rx(t,e){return Se(i=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=i;if(!r.length)return O(i);let s=new Set(r.map(l=>l.route)),o=new Set;for(let l of s)if(!o.has(l))for(let c of Iw(l))o.add(c);let a=0;return ve(o).pipe(Nn(l=>s.has(l)?sx(l,n,t,e):(l.data=$l(l,l.parent,t).resolve,O(void 0))),Ne(()=>a++),lr(1),Se(l=>a===o.size?O(i):Xe))})}function Iw(t){let e=t.children.map(i=>Iw(i)).flat();return[t,...e]}function sx(t,e,i,n){let r=t.routeConfig,s=t._resolve;return r?.title!==void 0&&!vw(r)&&(s[oo]=r.title),ox(s,t,e,n).pipe(j(o=>(t._resolvedData=o,t.data=$l(t,t.parent,i).resolve,null)))}function ox(t,e,i,n){let r=sf(t);if(r.length===0)return O({});let s={};return ve(r).pipe(Se(o=>ax(t[o],e,i,n).pipe(Zt(),Ne(a=>{if(a instanceof io)throw zl(new Ks,a);s[o]=a}))),lr(1),mu(s),Rn(o=>bw(o)?Xe:nr(o)))}function ax(t,e,i,n){let r=ao(e)??n,s=Lr(t,r),o=s.resolve?s.resolve(e,i):Ct(r,()=>s(e,i));return Qn(o)}function nf(t){return lt(e=>{let i=t(e);return i?ve(i).pipe(j(()=>e)):O(e)})}var Sw=(()=>{let e=class e{buildTitle(n){let r,s=n.root;for(;s!==void 0;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(o=>o.outlet===J);return r}getResolvedTitleForRoute(n){return n.data[oo]}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>w(lx),providedIn:"root"});let t=e;return t})(),lx=(()=>{let e=class e extends Sw{constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}};e.\u0275fac=function(r){return new(r||e)(m(q_))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ff=new M("",{providedIn:"root",factory:()=>({})}),cx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Fe({type:e,selectors:[["ng-component"]],standalone:!0,features:[Mi],decls:1,vars:0,template:function(r,s){r&1&&de(0,"router-outlet")},dependencies:[Rf],encapsulation:2});let t=e;return t})();function Lf(t){let e=t.children&&t.children.map(Lf),i=e?se(E({},t),{children:e}):E({},t);return!i.component&&!i.loadComponent&&(e||i.loadChildren)&&i.outlet&&i.outlet!==J&&(i.component=cx),i}var Vf=new M(""),ux=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=w(Ah)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return O(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let r=Qn(n.loadComponent()).pipe(j(Mw),Ne(o=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=o}),di(()=>{this.componentLoaders.delete(n)})),s=new Ji(r,()=>new F).pipe(Xi());return this.componentLoaders.set(n,s),s}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return O({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=dx(r,this.compiler,n,this.onLoadEndListener).pipe(di(()=>{this.childrenLoaders.delete(r)})),a=new Ji(o,()=>new F).pipe(Xi());return this.childrenLoaders.set(r,a),a}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function dx(t,e,i,n){return Qn(t.loadChildren()).pipe(j(Mw),Se(r=>r instanceof ws||Array.isArray(r)?O(r):ve(e.compileModuleAsync(r))),j(r=>{n&&n(t);let s,o,a=!1;return Array.isArray(r)?(o=r,a=!0):(s=r.create(i).injector,o=s.get(Vf,[],{optional:!0,self:!0}).flat()),{routes:o.map(Lf),injector:s}}))}function hx(t){return t&&typeof t=="object"&&"default"in t}function Mw(t){return hx(t)?t.default:t}var jf=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>w(fx),providedIn:"root"});let t=e;return t})(),fx=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),px=new M("");var mx=new M(""),gx=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new F,this.transitionAbortSubject=new F,this.configLoader=w(ux),this.environmentInjector=w(Ye),this.urlSerializer=w(kf),this.rootContexts=w(Gl),this.location=w(bn),this.inputBindingEnabled=w(Nf,{optional:!0})!==null,this.titleStrategy=w(Sw),this.options=w(Ff,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=w(jf),this.createViewTransition=w(px,{optional:!0}),this.navigationErrorHandler=w(mx,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>O(void 0),this.rootComponentType=null;let n=s=>this.events.next(new pf(s)),r=s=>this.events.next(new mf(s));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;this.transitions?.next(se(E(E({},this.transitions.value),n),{id:r}))}setupNavigations(n,r,s){return this.transitions=new Re({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:qs,restoredState:null,currentSnapshot:s.snapshot,targetSnapshot:null,currentRouterState:s,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(pe(o=>o.id!==0),j(o=>se(E({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),lt(o=>{let a=!1,l=!1;return O(o).pipe(lt(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",mt.SupersededByNewNavigation),Xe;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?se(E({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let u=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!u&&d!=="reload"){let f="";return this.events.next(new Ni(c.id,this.urlSerializer.serialize(c.rawUrl),f,cf.IgnoredSameUrlNavigation)),c.resolve(!1),Xe}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return O(c).pipe(lt(f=>{let h=this.transitions?.getValue();return this.events.next(new Js(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Xe:Promise.resolve(f)}),ix(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),Ne(f=>{o.targetSnapshot=f.targetSnapshot,o.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=se(E({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new jl(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:p,restoredState:y,extras:D}=c,I=new Js(f,this.urlSerializer.serialize(h),p,y);this.events.next(I);let $=gw(this.rootComponentType).snapshot;return this.currentTransition=o=se(E({},c),{targetSnapshot:$,urlAfterRedirects:h,extras:se(E({},D),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,O(o)}else{let f="";return this.events.next(new Ni(c.id,this.urlSerializer.serialize(c.extractedUrl),f,cf.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Xe}}),Ne(c=>{let u=new uf(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(u)}),j(c=>(this.currentTransition=o=se(E({},c),{guards:bA(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),RA(this.environmentInjector,c=>this.events.next(c)),Ne(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw zl(this.urlSerializer,c.guardsResult);let u=new df(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(u)}),pe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",mt.GuardRejected),!1)),nf(c=>{if(c.guards.canActivateChecks.length)return O(c).pipe(Ne(u=>{let d=new hf(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}),lt(u=>{let d=!1;return O(u).pipe(rx(this.paramsInheritanceStrategy,this.environmentInjector),Ne({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(u,"",mt.NoDataFromResolver)}}))}),Ne(u=>{let d=new ff(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}))}),nf(c=>{let u=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(Ne(h=>{d.component=h}),j(()=>{})));for(let h of d.children)f.push(...u(h));return f};return rr(u(c.targetSnapshot.root)).pipe(Pn(null),_e(1))}),nf(()=>this.afterPreactivation()),lt(()=>{let{currentSnapshot:c,targetSnapshot:u}=o,d=this.createViewTransition?.(this.environmentInjector,c.root,u.root);return d?ve(d).pipe(j(()=>o)):O(o)}),j(c=>{let u=yA(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=se(E({},c),{targetRouterState:u}),this.currentNavigation.targetRouterState=u,o}),Ne(()=>{this.events.next(new to)}),DA(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),_e(1),Ne({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ri(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),Kt(this.transitionAbortSubject.pipe(Ne(c=>{throw c}))),di(()=>{!a&&!l&&this.cancelNavigationTransition(o,"",mt.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),Rn(c=>{if(l=!0,Dw(c))this.events.next(new En(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),wA(c)?this.events.next(new Pr(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let u=new eo(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let d=Ct(this.environmentInjector,()=>this.navigationErrorHandler?.(u));if(d instanceof io){let{message:f,cancellationCode:h}=zl(this.urlSerializer,d);this.events.next(new En(o.id,this.urlSerializer.serialize(o.extractedUrl),f,h)),this.events.next(new Pr(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(u);let f=n.errorHandler(c);o.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(d)}}return Xe}))}))}cancelNavigationTransition(n,r,s){let o=new En(n.id,this.urlSerializer.serialize(n.extractedUrl),r,s);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function yx(t){return t!==qs}var vx=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>w(_x),providedIn:"root"});let t=e;return t})(),xf=class{shouldDetach(e){return!1}store(e,i){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,i){return e.routeConfig===i.routeConfig}},_x=(()=>{let e=class e extends xf{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Tw=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:()=>w(wx),providedIn:"root"});let t=e;return t})(),wx=(()=>{let e=class e extends Tw{constructor(){super(...arguments),this.location=w(bn),this.urlSerializer=w(kf),this.options=w(Ff,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=w(jf),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new In,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=gw(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&n(r.url,r.state)})}handleRouterEvent(n,r){if(n instanceof Js)this.stateMemento=this.createStateMemento();else if(n instanceof Ni)this.rawUrlTree=r.initialUrl;else if(n instanceof jl){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let s=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??s,r)}}else n instanceof to?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):n instanceof En&&(n.code===mt.GuardRejected||n.code===mt.NoDataFromResolver)?this.restoreHistory(r):n instanceof eo?this.restoreHistory(r,!0):n instanceof Ri&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,r){let s=n instanceof In?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl){let o=this.browserPageId,a=E(E({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(s,"",a)}else{let o=E(E({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(s,"",o)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let s=this.browserPageId,o=this.currentPageId-s;o!==0?this.location.historyGo(o):this.currentUrlTree===n.finalUrl&&o===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Gs=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Gs||{});function Dx(t,e){t.events.pipe(pe(i=>i instanceof Ri||i instanceof En||i instanceof eo||i instanceof Ni),j(i=>i instanceof Ri||i instanceof Ni?Gs.COMPLETE:(i instanceof En?i.code===mt.Redirect||i.code===mt.SupersededByNewNavigation:!1)?Gs.REDIRECTING:Gs.FAILED),pe(i=>i!==Gs.REDIRECTING),_e(1)).subscribe(()=>{e()})}function bx(t){throw t}var Cx={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ex={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Aw=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=w(ml),this.stateManager=w(Tw),this.options=w(Ff,{optional:!0})||{},this.pendingTasks=w(Wn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=w(gx),this.urlSerializer=w(kf),this.location=w(bn),this.urlHandlingStrategy=w(jf),this._events=new F,this.errorHandler=this.options.errorHandler||bx,this.navigated=!1,this.routeReuseStrategy=w(vx),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=w(Vf,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!w(Nf,{optional:!0}),this.eventsSubscription=new Q,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let s=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(s!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof En&&r.code!==mt.Redirect&&r.code!==mt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Ri)this.navigated=!0;else if(r instanceof Pr){let a=r.navigationBehaviorOptions,l=this.urlHandlingStrategy.merge(r.url,s.currentRawUrl),c=E({browserUrl:s.extras.browserUrl,info:s.extras.info,skipLocationChange:s.extras.skipLocationChange,replaceUrl:s.extras.replaceUrl||this.urlUpdateStrategy==="eager"||yx(s.source)},a);this.scheduleNavigation(l,qs,null,c,{resolve:s.resolve,reject:s.reject,promise:s.promise})}}Sx(r)&&this._events.next(r)}catch(s){this.navigationTransitions.transitionAbortSubject.next(s)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),qs,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",r)},0)})}navigateToSyncWithBrowser(n,r,s){let o={replaceUrl:!0},a=s?.navigationId?s:null;if(s){let c=E({},s);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let l=this.parseUrl(n);this.scheduleNavigation(l,r,a,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Lf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:s,queryParams:o,fragment:a,queryParamsHandling:l,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:a,d=null;switch(l??this.options.defaultQueryParamsHandling){case"merge":d=E(E({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=s?s.snapshot:this.routerState.snapshot.root;f=hw(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return fw(f,n,d,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){let s=Qs(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(o,qs,null,r)}navigate(n,r={skipLocationChange:!1}){return Ix(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,r){let s;if(r===!0?s=E({},Cx):r===!1?s=E({},Ex):s=r,Qs(n))return Z_(this.currentUrlTree,n,s);let o=this.parseUrl(n);return Z_(this.currentUrlTree,o,s)}removeEmptyProps(n){return Object.entries(n).reduce((r,[s,o])=>(o!=null&&(r[s]=o),r),{})}scheduleNavigation(n,r,s,o,a){if(this.disposed)return Promise.resolve(!1);let l,c,u;a?(l=a.resolve,c=a.reject,u=a.promise):u=new Promise((f,h)=>{l=f,c=h});let d=this.pendingTasks.add();return Dx(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:l,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ix(t){for(let e=0;ei.\u0275providers)])}function Tx(t){return t.routerState.root}function Ax(){let t=w(Te);return e=>{let i=t.get($t);if(e!==i.components[0])return;let n=t.get(Aw),r=t.get(xx);t.get(kx)===1&&n.initialNavigation(),t.get(Ox,null,te.Optional)?.setUpPreloading(),t.get(Mx,null,te.Optional)?.init(),n.resetRootComponentType(i.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var xx=new M("",{factory:()=>new F}),kx=new M("",{providedIn:"root",factory:()=>1});var Ox=new M("");var Lw=(()=>{let e=class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(r){return new(r||e)(v(Mt),v(ue))},e.\u0275dir=G({type:e});let t=e;return t})(),mo=(()=>{let e=class e extends Lw{};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,features:[we]});let t=e;return t})(),cn=new M("");var Nx={provide:cn,useExisting:Pe(()=>rc),multi:!0};function Px(){let t=on()?on().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Fx=new M(""),rc=(()=>{let e=class e extends Lw{constructor(n,r,s){super(n,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Px())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}};e.\u0275fac=function(r){return new(r||e)(v(Mt),v(ue),v(Fx,8))},e.\u0275dir=G({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&ee("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[Ve([Nx]),we]});let t=e;return t})();function Xn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function Vw(t){return t!=null&&typeof t.length=="number"}var Sn=new M(""),go=new M(""),Lx=/^(?=.{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])?)*$/,ln=class{static min(e){return jw(e)}static max(e){return Bw(e)}static required(e){return Vx(e)}static requiredTrue(e){return jx(e)}static email(e){return Bx(e)}static minLength(e){return Ux(e)}static maxLength(e){return $x(e)}static pattern(e){return Hx(e)}static nullValidator(e){return Zl(e)}static compose(e){return Gw(e)}static composeAsync(e){return qw(e)}};function jw(t){return e=>{if(Xn(e.value)||Xn(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i{if(Xn(e.value)||Xn(t))return null;let i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}function Vx(t){return Xn(t.value)?{required:!0}:null}function jx(t){return t.value===!0?null:{required:!0}}function Bx(t){return Xn(t.value)||Lx.test(t.value)?null:{email:!0}}function Ux(t){return e=>Xn(e.value)||!Vw(e.value)?null:e.value.lengthVw(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function Hx(t){if(!t)return Zl;let e,i;return typeof t=="string"?(i="",t.charAt(0)!=="^"&&(i+="^"),i+=t,t.charAt(t.length-1)!=="$"&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),n=>{if(Xn(n.value))return null;let r=n.value;return e.test(r)?null:{pattern:{requiredPattern:i,actualValue:r}}}}function Zl(t){return null}function Uw(t){return t!=null}function $w(t){return Ti(t)?ve(t):t}function Hw(t){let e={};return t.forEach(i=>{e=i!=null?E(E({},e),i):e}),Object.keys(e).length===0?null:e}function zw(t,e){return e.map(i=>i(t))}function zx(t){return!t.validate}function Ww(t){return t.map(e=>zx(e)?e:i=>e.validate(i))}function Gw(t){if(!t)return null;let e=t.filter(Uw);return e.length==0?null:function(i){return Hw(zw(i,e))}}function Yw(t){return t!=null?Gw(Ww(t)):null}function qw(t){if(!t)return null;let e=t.filter(Uw);return e.length==0?null:function(i){let n=zw(i,e).map($w);return pu(n).pipe(j(Hw))}}function Zw(t){return t!=null?qw(Ww(t)):null}function kw(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Kw(t){return t._rawValidators}function Qw(t){return t._rawAsyncValidators}function Bf(t){return t?Array.isArray(t)?t:[t]:[]}function Kl(t,e){return Array.isArray(t)?t.includes(e):t===e}function Ow(t,e){let i=Bf(e);return Bf(t).forEach(r=>{Kl(i,r)||i.push(r)}),i}function Rw(t,e){return Bf(e).filter(i=>!Kl(t,i))}var Ql=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Yw(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Zw(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,i){return this.control?this.control.hasError(e,i):!1}getError(e,i){return this.control?this.control.getError(e,i):null}},At=class extends Ql{get formDirective(){return null}get path(){return null}},Jn=class extends Ql{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Xl=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Wx={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},qU=se(E({},Wx),{"[class.ng-submitted]":"isSubmitted"}),Xw=(()=>{let e=class e extends Xl{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(v(Jn,2))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&Le("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[we]});let t=e;return t})(),Jw=(()=>{let e=class e extends Xl{constructor(n){super(n)}};e.\u0275fac=function(r){return new(r||e)(v(At,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,s){r&2&&Le("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)("ng-submitted",s.isSubmitted)},features:[we]});let t=e;return t})();var co="VALID",ql="INVALID",Vr="PENDING",uo="DISABLED",ei=class{},Jl=class extends ei{constructor(e,i){super(),this.value=e,this.source=i}},ho=class extends ei{constructor(e,i){super(),this.pristine=e,this.source=i}},fo=class extends ei{constructor(e,i){super(),this.touched=e,this.source=i}},jr=class extends ei{constructor(e,i){super(),this.status=e,this.source=i}},Uf=class extends ei{constructor(e){super(),this.source=e}},$f=class extends ei{constructor(e){super(),this.source=e}};function eD(t){return(sc(t)?t.validators:t)||null}function Gx(t){return Array.isArray(t)?Yw(t):t||null}function tD(t,e){return(sc(e)?e.asyncValidators:t)||null}function Yx(t){return Array.isArray(t)?Zw(t):t||null}function sc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function qx(t,e,i){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new b(1e3,"");if(!n[i])throw new b(1001,"")}function Zx(t,e,i){t._forEachChild((n,r)=>{if(i[r]===void 0)throw new b(1002,"")})}var ec=class{constructor(e,i){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=Rs(()=>this.statusReactive()),this.statusReactive=As(void 0),this._pristine=Rs(()=>this.pristineReactive()),this.pristineReactive=As(!0),this._touched=Rs(()=>this.touchedReactive()),this.touchedReactive=As(!1),this._events=new F,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(i)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Ht(this.statusReactive)}set status(e){Ht(()=>this.statusReactive.set(e))}get valid(){return this.status===co}get invalid(){return this.status===ql}get pending(){return this.status==Vr}get disabled(){return this.status===uo}get enabled(){return this.status!==uo}get pristine(){return Ht(this.pristineReactive)}set pristine(e){Ht(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return Ht(this.touchedReactive)}set touched(e){Ht(()=>this.touchedReactive.set(e))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Ow(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ow(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Rw(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Rw(e,this._rawAsyncValidators))}hasValidator(e){return Kl(this._rawValidators,e)}hasAsyncValidator(e){return Kl(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let i=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(se(E({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new fo(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(i=>i.markAllAsTouched(e))}markAsUntouched(e={}){let i=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),i&&e.emitEvent!==!1&&this._events.next(new fo(!1,n))}markAsDirty(e={}){let i=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(se(E({},e),{sourceControl:n})),i&&e.emitEvent!==!1&&this._events.next(new ho(!1,n))}markAsPristine(e={}){let i=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&e.emitEvent!==!1&&this._events.next(new ho(!0,n))}markAsPending(e={}){this.status=Vr;let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new jr(this.status,i)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(se(E({},e),{sourceControl:i}))}disable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=uo,this.errors=null,this._forEachChild(r=>{r.disable(se(E({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jl(this.value,n)),this._events.next(new jr(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(se(E({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let i=this._parentMarkedDirty(e.onlySelf);this.status=co,this._forEachChild(n=>{n.enable(se(E({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(se(E({},e),{skipPristineCheck:i}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,i){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},i),this._parent._updateTouched({},i))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===co||this.status===Vr)&&this._runAsyncValidator(n,e.emitEvent)}let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jl(this.value,i)),this._events.next(new jr(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(se(E({},e),{sourceControl:i}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(i=>i._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?uo:co}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,i){if(this.asyncValidator){this.status=Vr,this._hasOwnPendingAsyncValidator={emitEvent:i!==!1};let n=$w(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:i,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,i={}){this.errors=e,this._updateControlsErrors(i.emitEvent!==!1,this,i.shouldHaveEmitted)}get(e){let i=e;return i==null||(Array.isArray(i)||(i=i.split(".")),i.length===0)?null:i.reduce((n,r)=>n&&n._find(r),this)}getError(e,i){let n=i?this.get(i):this;return n&&n.errors?n.errors[e]:null}hasError(e,i){return!!this.getError(e,i)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,i,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new jr(this.status,i)),this._parent&&this._parent._updateControlsErrors(e,i,n)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?uo:this.errors?ql:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vr)?Vr:this._anyControlsHaveStatus(ql)?ql:co}_anyControlsHaveStatus(e){return this._anyControls(i=>i.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,i){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),r&&this._events.next(new ho(this.pristine,i))}_updateTouched(e={},i){this.touched=this._anyControlsTouched(),this._events.next(new fo(this.touched,i)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){sc(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let i=this._parent&&this._parent.dirty;return!e&&!!i&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Gx(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Yx(this._rawAsyncValidators)}},po=class extends ec{constructor(e,i,n){super(eD(i),tD(n,i)),this.controls=e,this._initObservables(),this._setUpdateStrategy(i),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,i){return this.controls[e]?this.controls[e]:(this.controls[e]=i,i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange),i)}addControl(e,i,n={}){this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}setControl(e,i,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],i&&this.registerControl(e,i),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,i={}){Zx(this,!0,e),Object.keys(e).forEach(n=>{qx(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i)}patchValue(e,i={}){e!=null&&(Object.keys(e).forEach(n=>{let r=this.controls[n];r&&r.patchValue(e[n],{onlySelf:!0,emitEvent:i.emitEvent})}),this.updateValueAndValidity(i))}reset(e={},i={}){this._forEachChild((n,r)=>{n.reset(e?e[r]:null,{onlySelf:!0,emitEvent:i.emitEvent})}),this._updatePristine(i,this),this._updateTouched(i,this),this.updateValueAndValidity(i)}getRawValue(){return this._reduceChildren({},(e,i,n)=>(e[n]=i.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(i,n)=>n._syncPendingControls()?!0:i);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(i=>{let n=this.controls[i];n&&e(n,i)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[i,n]of Object.entries(this.controls))if(this.contains(i)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(i,n,r)=>((n.enabled||this.disabled)&&(i[r]=n.value),i))}_reduceChildren(e,i){let n=e;return this._forEachChild((r,s)=>{n=i(n,r,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var oc=new M("CallSetDisabledState",{providedIn:"root",factory:()=>ac}),ac="always";function zf(t,e){return[...e.path,t]}function Hf(t,e,i=ac){Wf(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||i==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Qx(t,e),Jx(t,e),Xx(t,e),Kx(t,e)}function tc(t,e,i=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),ic(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function nc(t,e){t.forEach(i=>{i.registerOnValidatorChange&&i.registerOnValidatorChange(e)})}function Kx(t,e){if(e.valueAccessor.setDisabledState){let i=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}function Wf(t,e){let i=Kw(t);e.validator!==null?t.setValidators(kw(i,e.validator)):typeof i=="function"&&t.setValidators([i]);let n=Qw(t);e.asyncValidator!==null?t.setAsyncValidators(kw(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let r=()=>t.updateValueAndValidity();nc(e._rawValidators,r),nc(e._rawAsyncValidators,r)}function ic(t,e){let i=!1;if(t!==null){if(e.validator!==null){let r=Kw(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.validator);s.length!==r.length&&(i=!0,t.setValidators(s))}}if(e.asyncValidator!==null){let r=Qw(t);if(Array.isArray(r)&&r.length>0){let s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(i=!0,t.setAsyncValidators(s))}}}let n=()=>{};return nc(e._rawValidators,n),nc(e._rawAsyncValidators,n),i}function Qx(t,e){e.valueAccessor.registerOnChange(i=>{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&nD(t,e)})}function Xx(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&nD(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function nD(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Jx(t,e){let i=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}function ek(t,e){t==null,Wf(t,e)}function tk(t,e){return ic(t,e)}function iD(t,e){if(!t.hasOwnProperty("model"))return!1;let i=t.model;return i.isFirstChange()?!0:!Object.is(e,i.currentValue)}function nk(t){return Object.getPrototypeOf(t.constructor)===mo}function ik(t,e){t._syncPendingControls(),e.forEach(i=>{let n=i.control;n.updateOn==="submit"&&n._pendingChange&&(i.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function rD(t,e){if(!e)return null;Array.isArray(e);let i,n,r;return e.forEach(s=>{s.constructor===rc?i=s:nk(s)?n=s:r=s}),r||n||i||null}function rk(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function Nw(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}function Pw(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var ot=class extends ec{constructor(e=null,i,n){super(eD(i),tD(n,i)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(i),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sc(i)&&(i.nonNullable||i.initialValueIsDefault)&&(Pw(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,i={}){this.value=this._pendingValue=e,this._onChange.length&&i.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,i.emitViewToModelChange!==!1)),this.updateValueAndValidity(i)}patchValue(e,i={}){this.setValue(e,i)}reset(e=this.defaultValue,i={}){this._applyFormState(e),this.markAsPristine(i),this.markAsUntouched(i),this.setValue(this.value,i),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Nw(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Nw(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Pw(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var sk=t=>t instanceof ot,ok=(()=>{let e=class e extends At{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return zf(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,features:[we]});let t=e;return t})();var sD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})(),ak={provide:cn,useExisting:Pe(()=>Gf),multi:!0},Gf=(()=>{let e=class e extends mo{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,s){r&1&&ee("input",function(a){return s.onChange(a.target.value)})("blur",function(){return s.onTouched()})},features:[Ve([ak]),we]});let t=e;return t})(),lk={provide:cn,useExisting:Pe(()=>Yf),multi:!0};var ck=(()=>{let e=class e{constructor(){this._accessors=[]}add(n,r){this._accessors.push([n,r])}remove(n){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===n){this._accessors.splice(r,1);return}}select(n){this._accessors.forEach(r=>{this._isSameGroup(r,n)&&r[1]!==n&&r[1].fireUncheck(n.value)})}_isSameGroup(n,r){return n[0].control?n[0]._parent===r._control._parent&&n[1].name===r.name:!1}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Yf=(()=>{let e=class e extends mo{constructor(n,r,s,o){super(n,r),this._registry=s,this._injector=o,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=w(oc,{optional:!0})??ac}ngOnInit(){this._control=this._injector.get(Jn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(n){this._state=n===this.value,this.setProperty("checked",this._state)}registerOnChange(n){this._fn=n,this.onChange=()=>{n(this.value),this._registry.select(this)}}setDisabledState(n){(this.setDisabledStateFired||n||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",n),this.setDisabledStateFired=!0}fireUncheck(n){this.writeValue(n)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}};e.\u0275fac=function(r){return new(r||e)(v(Mt),v(ue),v(ck),v(Te))},e.\u0275dir=G({type:e,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,s){r&1&&ee("change",function(){return s.onChange()})("blur",function(){return s.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Ve([lk]),we]});let t=e;return t})();var qf=new M(""),uk={provide:Jn,useExisting:Pe(()=>Zf)},Zf=(()=>{let e=class e extends Jn{set isDisabled(n){}constructor(n,r,s,o,a){super(),this._ngModelWarningConfig=o,this.callSetDisabledState=a,this.update=new A,this._ngModelWarningSent=!1,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=rD(this,s)}ngOnChanges(n){if(this._isControlChanged(n)){let r=n.form.previousValue;r&&tc(r,this,!1),Hf(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}iD(n,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&tc(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_isControlChanged(n){return n.hasOwnProperty("form")}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(v(Sn,10),v(go,10),v(cn,10),v(qf,8),v(oc,8))},e.\u0275dir=G({type:e,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Ve([uk]),we,nt]});let t=e;return t})(),dk={provide:At,useExisting:Pe(()=>lc)},lc=(()=>{let e=class e extends At{get submitted(){return Ht(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}constructor(n,r,s){super(),this.callSetDisabledState=s,this._submitted=Rs(()=>this._submittedReactive()),this._submittedReactive=As(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new A,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ic(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(n){let r=this.form.get(n.path);return Hf(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){tc(n.control||null,n,!1),rk(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}getFormArray(n){return this.form.get(n.path)}updateModel(n,r){this.form.get(n.path).setValue(r)}onSubmit(n){return this._submittedReactive.set(!0),ik(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new Uf(this.control)),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this._submittedReactive.set(!1),this.form._events.next(new $f(this.form))}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,s=this.form.get(n.path);r!==s&&(tc(r||null,n),sk(s)&&(Hf(s,n,this.callSetDisabledState),n.control=s))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);ek(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&tk(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Wf(this.form,this),this._oldForm&&ic(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(r){return new(r||e)(v(Sn,10),v(go,10),v(oc,8))},e.\u0275dir=G({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,s){r&1&&ee("submit",function(a){return s.onSubmit(a)})("reset",function(){return s.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Ve([dk]),we,nt]});let t=e;return t})(),hk={provide:At,useExisting:Pe(()=>cc)},cc=(()=>{let e=class e extends ok{constructor(n,r,s){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(s)}_checkParentType(){aD(this._parent)}};e.\u0275fac=function(r){return new(r||e)(v(At,13),v(Sn,10),v(go,10))},e.\u0275dir=G({type:e,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[Ve([hk]),we]});let t=e;return t})(),fk={provide:At,useExisting:Pe(()=>oD)},oD=(()=>{let e=class e extends At{constructor(n,r,s){super(),this.name=null,this._parent=n,this._setValidators(r),this._setAsyncValidators(s)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return zf(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){aD(this._parent)}};e.\u0275fac=function(r){return new(r||e)(v(At,13),v(Sn,10),v(go,10))},e.\u0275dir=G({type:e,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[Ve([fk]),we]});let t=e;return t})();function aD(t){return!(t instanceof cc)&&!(t instanceof lc)&&!(t instanceof oD)}var pk={provide:Jn,useExisting:Pe(()=>Kf)},Kf=(()=>{let e=class e extends Jn{set isDisabled(n){}constructor(n,r,s,o,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new A,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=rD(this,o)}ngOnChanges(n){this._added||this._setUpControl(),iD(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return zf(this.name==null?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}};e._ngModelWarningSentOnce=!1,e.\u0275fac=function(r){return new(r||e)(v(At,13),v(Sn,10),v(go,10),v(cn,10),v(qf,8))},e.\u0275dir=G({type:e,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[Ve([pk]),we,nt]});let t=e;return t})(),mk={provide:cn,useExisting:Pe(()=>uc),multi:!0};function lD(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function gk(t){return t.split(":")[0]}var uc=(()=>{let e=class e extends mo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r=this._getOptionId(n),s=lD(r,n);this.setProperty("value",s)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=gk(n);return this._optionMap.has(r)?this._optionMap.get(r):n}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,s){r&1&&ee("change",function(a){return s.onChange(a.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ve([mk]),we]});let t=e;return t})(),cD=(()=>{let e=class e{constructor(n,r,s){this._element=n,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(lD(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(Mt),v(uc,9))},e.\u0275dir=G({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),yk={provide:cn,useExisting:Pe(()=>uD),multi:!0};function Fw(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function vk(t){return t.split(":")[0]}var uD=(()=>{let e=class e extends mo{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;let r;if(Array.isArray(n)){let s=n.map(o=>this._getOptionId(o));r=(o,a)=>{o._setSelected(s.indexOf(a.toString())>-1)}}else r=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let s=[],o=r.selectedOptions;if(o!==void 0){let a=o;for(let l=0;l{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,s){r&1&&ee("change",function(a){return s.onChange(a.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[Ve([yk]),we]});let t=e;return t})(),dD=(()=>{let e=class e{constructor(n,r,s){this._element=n,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(Fw(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(Fw(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(Mt),v(uD,9))},e.\u0275dir=G({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();function hD(t){return typeof t=="number"?t:parseFloat(t)}var fD=(()=>{let e=class e{constructor(){this._validator=Zl}ngOnChanges(n){if(this.inputName in n){let r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Zl,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return n!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=G({type:e,features:[nt]});let t=e;return t})(),_k={provide:Sn,useExisting:Pe(()=>Qf),multi:!0},Qf=(()=>{let e=class e extends fD{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=n=>hD(n),this.createValidator=n=>Bw(n)}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,s){r&2&&Ce("max",s._enabled?s.max:null)},inputs:{max:"max"},features:[Ve([_k]),we]});let t=e;return t})(),wk={provide:Sn,useExisting:Pe(()=>Xf),multi:!0},Xf=(()=>{let e=class e extends fD{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=n=>hD(n),this.createValidator=n=>jw(n)}};e.\u0275fac=(()=>{let n;return function(s){return(n||(n=It(e)))(s||e)}})(),e.\u0275dir=G({type:e,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,s){r&2&&Ce("min",s._enabled?s.min:null)},inputs:{min:"min"},features:[Ve([wk]),we]});let t=e;return t})();var Dk=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var pD=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:qf,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:oc,useValue:n.callSetDisabledState??ac}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[Dk]});let t=e;return t})();var ep;try{ep=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ep=!1}var $e=(()=>{let e=class e{constructor(n){this._platformId=n,this.isBrowser=this._platformId?M_(this._platformId):typeof document=="object"&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!!(window.chrome||ep)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}};e.\u0275fac=function(r){return new(r||e)(m(Vt))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),mD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var yo;function Ck(){if(yo==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>yo=!0}))}finally{yo=yo||!1}return yo}function tp(t){return Ck()?t:!!t.capture}var Pi;function gD(){if(Pi==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Pi=!1,Pi;if("scrollBehavior"in document.documentElement.style)Pi=!0;else{let t=Element.prototype.scrollTo;t?Pi=!/\{\s*\[native code\]\s*\}/.test(t.toString()):Pi=!1}}return Pi}var Jf;function Ek(){if(Jf==null){let t=typeof document<"u"?document.head:null;Jf=!!(t&&(t.createShadowRoot||t.attachShadow))}return Jf}function yD(t){if(Ek()){let e=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function vD(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}function Mn(t){return t.composedPath?t.composedPath()[0]:t.target}function np(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function Fi(t){return t!=null&&`${t}`!="false"}function ti(t,e=0){return Ik(t)?Number(t):arguments.length===2?e:0}function Ik(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Wt(t){return Array.isArray(t)?t:[t]}function Me(t){return t==null?"":typeof t=="string"?t:`${t}px`}function Br(t){return t instanceof ue?t.nativeElement:t}var Sk=(()=>{let e=class e{create(n){return typeof MutationObserver>"u"?null:new MutationObserver(n)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _D=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[Sk]});let t=e;return t})();var wD=new Set,Li,Mk=(()=>{let e=class e{constructor(n,r){this._platform=n,this._nonce=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ak}matchMedia(n){return(this._platform.WEBKIT||this._platform.BLINK)&&Tk(n,this._nonce),this._matchMedia(n)}};e.\u0275fac=function(r){return new(r||e)(m($e),m(Ts,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Tk(t,e){if(!wD.has(t))try{Li||(Li=document.createElement("style"),e&&Li.setAttribute("nonce",e),Li.setAttribute("type","text/css"),document.head.appendChild(Li)),Li.sheet&&(Li.sheet.insertRule(`@media ${t} {body{ }}`,0),wD.add(t))}catch(i){console.error(i)}}function Ak(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var bD=(()=>{let e=class e{constructor(n,r){this._mediaMatcher=n,this._zone=r,this._queries=new Map,this._destroySubject=new F}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(n){return DD(Wt(n)).some(s=>this._registerQuery(s).mql.matches)}observe(n){let s=DD(Wt(n)).map(a=>this._registerQuery(a).observable),o=rr(s);return o=On(o.pipe(_e(1)),o.pipe(os(1),ar(0))),o.pipe(j(a=>{let l={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:u})=>{l.matches=l.matches||c,l.breakpoints[u]=c}),l}))}_registerQuery(n){if(this._queries.has(n))return this._queries.get(n);let r=this._mediaMatcher.matchMedia(n),o={observable:new q(a=>{let l=c=>this._zone.run(()=>a.next(c));return r.addListener(l),()=>{r.removeListener(l)}}).pipe(Ot(r),j(({matches:a})=>({query:n,matches:a})),Kt(this._destroySubject)),mql:r};return this._queries.set(n,o),o}};e.\u0275fac=function(r){return new(r||e)(m(Mk),m(L))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function DD(t){return t.map(e=>e.split(",")).reduce((e,i)=>e.concat(i)).map(e=>e.trim())}var xk=(()=>{let e=class e{constructor(n){this._platform=n}isDisabled(n){return n.hasAttribute("disabled")}isVisible(n){return Ok(n)&&getComputedStyle(n).visibility==="visible"}isTabbable(n){if(!this._platform.isBrowser)return!1;let r=kk(Bk(n));if(r&&(CD(r)===-1||!this.isVisible(r)))return!1;let s=n.nodeName.toLowerCase(),o=CD(n);return n.hasAttribute("contenteditable")?o!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Vk(n)?!1:s==="audio"?n.hasAttribute("controls")?o!==-1:!1:s==="video"?o===-1?!1:o!==null?!0:this._platform.FIREFOX||n.hasAttribute("controls"):n.tabIndex>=0}isFocusable(n,r){return jk(n)&&!this.isDisabled(n)&&(r?.ignoreVisibility||this.isVisible(n))}};e.\u0275fac=function(r){return new(r||e)(m($e))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function kk(t){try{return t.frameElement}catch{return null}}function Ok(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function Rk(t){let e=t.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function Nk(t){return Fk(t)&&t.type=="hidden"}function Pk(t){return Lk(t)&&t.hasAttribute("href")}function Fk(t){return t.nodeName.toLowerCase()=="input"}function Lk(t){return t.nodeName.toLowerCase()=="a"}function SD(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let e=t.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function CD(t){if(!SD(t))return null;let e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function Vk(t){let e=t.nodeName.toLowerCase(),i=e==="input"&&t.type;return i==="text"||i==="password"||e==="select"||e==="textarea"}function jk(t){return Nk(t)?!1:Rk(t)||Pk(t)||t.hasAttribute("contenteditable")||SD(t)}function Bk(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var rp=class{get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}constructor(e,i,n,r,s=!1,o){this._element=e,this._checker=i,this._ngZone=n,this._document=r,this._injector=o,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||this.attachAnchors()}destroy(){let e=this._startAnchor,i=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),i&&(i.removeEventListener("focus",this.endAnchorListener),i.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(i=>{this._executeOnStable(()=>i(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let i=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?i.length?i[0]:this._getFirstTabbableElement(this._element):i.length?i[i.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let i=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(i){if(!this._checker.isFocusable(i)){let n=this._getFirstTabbableElement(i);return n?.focus(e),!!n}return i.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let i=this._getRegionBoundary("start");return i&&i.focus(e),!!i}focusLastTabbableElement(e){let i=this._getRegionBoundary("end");return i&&i.focus(e),!!i}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let i=e.children;for(let n=0;n=0;n--){let r=i[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(i[n]):null;if(r)return r}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,i){e?i.setAttribute("tabindex","0"):i.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Mr(e,{injector:this._injector}):setTimeout(e)}},sp=(()=>{let e=class e{constructor(n,r,s){this._checker=n,this._ngZone=r,this._injector=w(Te),this._document=s}create(n,r=!1){return new rp(n,this._checker,this._ngZone,this._document,r,this._injector)}};e.\u0275fac=function(r){return new(r||e)(m(xk),m(L),m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),MD=(()=>{let e=class e{get enabled(){return this.focusTrap?.enabled||!1}set enabled(n){this.focusTrap&&(this.focusTrap.enabled=n)}constructor(n,r,s){this._elementRef=n,this._focusTrapFactory=r,this._previouslyFocusedElement=null,w($e).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(n){let r=n.autoCapture;r&&!r.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=vD(),this.focusTrap?.focusInitialElementWhenReady()}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(sp),v(X))},e.\u0275dir=G({type:e,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",Ai],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",Ai]},exportAs:["cdkTrapFocus"],standalone:!0,features:[Ii,nt]});let t=e;return t})();function Uk(t){return t.buttons===0||t.detail===0}function $k(t){let e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var Hk=new M("cdk-input-modality-detector-options"),zk={ignoreKeys:[18,17,224,91,16]},TD=650,Ur=tp({passive:!0,capture:!0}),Wk=(()=>{let e=class e{get mostRecentModality(){return this._modality.value}constructor(n,r,s,o){this._platform=n,this._mostRecentTarget=null,this._modality=new Re(null),this._lastTouchMs=0,this._onKeydown=a=>{this._options?.ignoreKeys?.some(l=>l===a.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=Mn(a))},this._onMousedown=a=>{Date.now()-this._lastTouchMs{if($k(a)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Mn(a)},this._options=E(E({},zk),o),this.modalityDetected=this._modality.pipe(os(1)),this.modalityChanged=this.modalityDetected.pipe(da()),n.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,Ur),s.addEventListener("mousedown",this._onMousedown,Ur),s.addEventListener("touchstart",this._onTouchstart,Ur)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Ur),document.removeEventListener("mousedown",this._onMousedown,Ur),document.removeEventListener("touchstart",this._onTouchstart,Ur))}};e.\u0275fac=function(r){return new(r||e)(m($e),m(L),m(X),m(Hk,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hc=function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t}(hc||{}),Gk=new M("cdk-focus-monitor-default-options"),dc=tp({passive:!0,capture:!0}),Yk=(()=>{let e=class e{constructor(n,r,s,o,a){this._ngZone=n,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new F,this._rootNodeFocusAndBlurListener=l=>{let c=Mn(l);for(let u=c;u;u=u.parentElement)l.type==="focus"?this._onFocus(l,u):this._onBlur(l,u)},this._document=o,this._detectionMode=a?.detectionMode||hc.IMMEDIATE}monitor(n,r=!1){let s=Br(n);if(!this._platform.isBrowser||s.nodeType!==1)return O();let o=yD(s)||this._getDocument(),a=this._elementInfo.get(s);if(a)return r&&(a.checkChildren=!0),a.subject;let l={checkChildren:r,subject:new F,rootNode:o};return this._elementInfo.set(s,l),this._registerGlobalListeners(l),l.subject}stopMonitoring(n){let r=Br(n),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(n,r,s){let o=Br(n),a=this._getDocument().activeElement;o===a?this._getClosestElementsInfo(o).forEach(([l,c])=>this._originChanged(l,r,c)):(this._setOrigin(r),typeof o.focus=="function"&&o.focus(s))}ngOnDestroy(){this._elementInfo.forEach((n,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:n&&this._isLastInteractionFromInputLabel(n)?"mouse":"program"}_shouldBeAttributedToTouch(n){return this._detectionMode===hc.EVENTUAL||!!n?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(n,r){n.classList.toggle("cdk-focused",!!r),n.classList.toggle("cdk-touch-focused",r==="touch"),n.classList.toggle("cdk-keyboard-focused",r==="keyboard"),n.classList.toggle("cdk-mouse-focused",r==="mouse"),n.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(n,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=n,this._originFromTouchInteraction=n==="touch"&&r,this._detectionMode===hc.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?TD:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(n,r){let s=this._elementInfo.get(r),o=Mn(n);!s||!s.checkChildren&&r!==o||this._originChanged(r,this._getFocusOrigin(o),s)}_onBlur(n,r){let s=this._elementInfo.get(r);!s||s.checkChildren&&n.relatedTarget instanceof Node&&r.contains(n.relatedTarget)||(this._setClasses(r),this._emitOrigin(s,null))}_emitOrigin(n,r){n.subject.observers.length&&this._ngZone.run(()=>n.subject.next(r))}_registerGlobalListeners(n){if(!this._platform.isBrowser)return;let r=n.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,dc),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,dc)}),this._rootNodeFocusListenerCount.set(r,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Kt(this._stopInputModalityDetector)).subscribe(o=>{this._setOrigin(o,!0)}))}_removeGlobalListeners(n){let r=n.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,dc),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dc),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(n,r,s){this._setClasses(n,r),this._emitOrigin(s,r),this._lastFocusOrigin=r}_getClosestElementsInfo(n){let r=[];return this._elementInfo.forEach((s,o)=>{(o===n||s.checkChildren&&o.contains(n))&&r.push([o,s])}),r}_isLastInteractionFromInputLabel(n){let{_mostRecentTarget:r,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!r||r===n||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA"||n.disabled)return!1;let o=n.labels;if(o){for(let a=0;a{let e=class e{constructor(n,r){this._elementRef=n,this._focusMonitor=r,this._focusOrigin=null,this.cdkFocusChange=new A}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let n=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(n,n.nodeType===1&&n.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(Yk))},e.\u0275dir=G({type:e,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"],standalone:!0});let t=e;return t})(),Vi=function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t}(Vi||{}),ED="cdk-high-contrast-black-on-white",ID="cdk-high-contrast-white-on-black",ip="cdk-high-contrast-active",qk=(()=>{let e=class e{constructor(n,r){this._platform=n,this._document=r,this._breakpointSubscription=w(bD).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Vi.NONE;let n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);let r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(n):null,o=(s&&s.backgroundColor||"").replace(/ /g,"");switch(n.remove(),o){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Vi.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Vi.BLACK_ON_WHITE}return Vi.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let n=this._document.body.classList;n.remove(ip,ED,ID),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===Vi.BLACK_ON_WHITE?n.add(ip,ED):r===Vi.WHITE_ON_BLACK&&n.add(ip,ID)}}};e.\u0275fac=function(r){return new(r||e)(m($e),m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),op=(()=>{let e=class e{constructor(n){n._applyBodyHighContrastModeCssClasses()}};e.\u0275fac=function(r){return new(r||e)(m(qk))},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[_D]});let t=e;return t})();var Kk=new M("cdk-dir-doc",{providedIn:"root",factory:Qk});function Qk(){return w(X)}var Xk=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Jk(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Xk.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var xD=(()=>{let e=class e{constructor(n){if(this.value="ltr",this.change=new A,n){let r=n.body?n.body.dir:null,s=n.documentElement?n.documentElement.dir:null;this.value=Jk(r||s||"ltr")}}ngOnDestroy(){this.change.complete()}};e.\u0275fac=function(r){return new(r||e)(m(Kk,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var _o=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})();var tO=20,OD=(()=>{let e=class e{constructor(n,r,s){this._ngZone=n,this._platform=r,this._scrolled=new F,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(n){this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(()=>this._scrolled.next(n)))}deregister(n){let r=this.scrollContainers.get(n);r&&(r.unsubscribe(),this.scrollContainers.delete(n))}scrolled(n=tO){return this._platform.isBrowser?new q(r=>{this._globalSubscription||this._addGlobalListener();let s=n>0?this._scrolled.pipe(ua(n)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):O()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((n,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(n,r){let s=this.getAncestorScrollContainers(n);return this.scrolled(r).pipe(pe(o=>!o||s.indexOf(o)>-1))}getAncestorScrollContainers(n){let r=[];return this.scrollContainers.forEach((s,o)=>{this._scrollableContainsElement(o,n)&&r.push(o)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(n,r){let s=Br(r),o=n.getElementRef().nativeElement;do if(s==o)return!0;while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{let n=this._getWindow();return ss(n.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}};e.\u0275fac=function(r){return new(r||e)(m(L),m($e),m(X,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var nO=20,ap=(()=>{let e=class e{constructor(n,r,s){this._platform=n,this._change=new F,this._changeListener=o=>{this._change.next(o)},this._document=s,r.runOutsideAngular(()=>{if(n.isBrowser){let o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){let n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}getViewportRect(){let n=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:n.top,left:n.left,bottom:n.top+s,right:n.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let n=this._document,r=this._getWindow(),s=n.documentElement,o=s.getBoundingClientRect(),a=-o.top||n.body.scrollTop||r.scrollY||s.scrollTop||0,l=-o.left||n.body.scrollLeft||r.scrollX||s.scrollLeft||0;return{top:a,left:l}}change(n=nO){return n>0?this._change.pipe(ua(n)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}};e.\u0275fac=function(r){return new(r||e)(m($e),m(L),m(X,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var kD=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})(),lp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({imports:[_o,kD,_o,kD]});let t=e;return t})();var wo=class{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},ji=class extends wo{constructor(e,i,n,r,s){super(),this.component=e,this.viewContainerRef=i,this.injector=n,this.componentFactoryResolver=r,this.projectableNodes=s}},fc=class extends wo{constructor(e,i,n,r){super(),this.templateRef=e,this.viewContainerRef=i,this.context=n,this.injector=r}get origin(){return this.templateRef.elementRef}attach(e,i=this.context){return this.context=i,super.attach(e)}detach(){return this.context=void 0,super.detach()}},cp=class extends wo{constructor(e){super(),this.element=e instanceof ue?e.nativeElement:e}},$r=class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof ji)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof fc)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof cp)return this._attachedPortal=e,this.attachDomPortal(e)}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var pc=class extends $r{constructor(e,i,n,r,s){super(),this.outletElement=e,this._componentFactoryResolver=i,this._appRef=n,this._defaultInjector=r,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){let n=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component),r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(n,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector,e.projectableNodes||void 0),this.setDisposeFn(()=>r.destroy())):(r=n.create(e.injector||this._defaultInjector||Te.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let i=e.viewContainerRef,n=i.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(r=>this.outletElement.appendChild(r)),n.detectChanges(),this.setDisposeFn(()=>{let r=i.indexOf(n);r!==-1&&i.remove(r)}),this._attachedPortal=e,n}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}};var gc=(()=>{let e=class e extends $r{constructor(n,r,s){super(),this._componentFactoryResolver=n,this._viewContainerRef=r,this._isInitialized=!1,this.attached=new A,this.attachDomPortal=o=>{this._document;let a=o.element;a.parentNode;let l=this._document.createComment("dom-portal");o.setAttachedHost(this),a.parentNode.insertBefore(l,a),this._getRootNode().appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}get portal(){return this._attachedPortal}set portal(n){this.hasAttached()&&!n&&!this._isInitialized||(this.hasAttached()&&super.detach(),n&&super.attach(n),this._attachedPortal=n||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(n){n.setAttachedHost(this);let r=n.viewContainerRef!=null?n.viewContainerRef:this._viewContainerRef,o=(n.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(n.component),a=r.createComponent(o,r.length,n.injector||r.injector,n.projectableNodes||void 0);return r!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),super.setDisposeFn(()=>a.destroy()),this._attachedPortal=n,this._attachedRef=a,this.attached.emit(a),a}attachTemplatePortal(n){n.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=n,this._attachedRef=r,this.attached.emit(r),r}_getRootNode(){let n=this._viewContainerRef.element.nativeElement;return n.nodeType===n.ELEMENT_NODE?n:n.parentNode}};e.\u0275fac=function(r){return new(r||e)(v(tn),v(rt),v(X))},e.\u0275dir=G({type:e,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],standalone:!0,features:[we]});let t=e;return t})();var yc=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({});let t=e;return t})(),mc=class{constructor(e,i){this._parentInjector=e,this._customTokens=i}get(e,i){let n=this._customTokens.get(e);return typeof n<"u"?n:this._parentInjector.get(e,i)}};var RD=gD(),up=class{constructor(e,i){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=i}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Me(-this._previousScrollPosition.left),e.style.top=Me(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,i=this._document.body,n=e.style,r=i.style,s=n.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),RD&&(n.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),RD&&(n.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let i=this._document.body,n=this._viewportRuler.getViewportSize();return i.scrollHeight>n.height||i.scrollWidth>n.width}};var dp=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._ngZone=i,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(pe(i=>!i||!this._overlayRef.overlayElement.contains(i.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let i=this._viewportRuler.getViewportScrollPosition().top;Math.abs(i-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},Hr=class{enable(){}disable(){}attach(){}};function hp(t,e){return e.some(i=>{let n=t.bottomi.bottom,s=t.righti.right;return n||r||s||o})}function ND(t,e){return e.some(i=>{let n=t.topi.bottom,s=t.lefti.right;return n||r||s||o})}var fp=class{constructor(e,i,n,r){this._scrollDispatcher=e,this._viewportRuler=i,this._ngZone=n,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let i=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:r}=this._viewportRuler.getViewportSize();hp(i,[{width:n,height:r,bottom:r,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},sO=(()=>{let e=class e{constructor(n,r,s,o){this._scrollDispatcher=n,this._viewportRuler=r,this._ngZone=s,this.noop=()=>new Hr,this.close=a=>new dp(this._scrollDispatcher,this._ngZone,this._viewportRuler,a),this.block=()=>new up(this._viewportRuler,this._document),this.reposition=a=>new fp(this._scrollDispatcher,this._viewportRuler,this._ngZone,a),this._document=o}};e.\u0275fac=function(r){return new(r||e)(m(OD),m(ap),m(L),m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),zr=class{constructor(e){if(this.scrollStrategy=new Hr,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){let i=Object.keys(e);for(let n of i)e[n]!==void 0&&(this[n]=e[n])}}};var pp=class{constructor(e,i){this.connectionPair=e,this.scrollableViewProperties=i}};var BD=(()=>{let e=class e{constructor(n){this._attachedOverlays=[],this._document=n}ngOnDestroy(){this.detach()}add(n){this.remove(n),this._attachedOverlays.push(n)}remove(n){let r=this._attachedOverlays.indexOf(n);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}};e.\u0275fac=function(r){return new(r||e)(m(X))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),oO=(()=>{let e=class e extends BD{constructor(n,r){super(n),this._ngZone=r,this._keydownListener=s=>{let o=this._attachedOverlays;for(let a=o.length-1;a>-1;a--)if(o[a]._keydownEvents.observers.length>0){let l=o[a]._keydownEvents;this._ngZone?this._ngZone.run(()=>l.next(s)):l.next(s);break}}}add(n){super.add(n),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}};e.\u0275fac=function(r){return new(r||e)(m(X),m(L,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),aO=(()=>{let e=class e extends BD{constructor(n,r,s){super(n),this._platform=r,this._ngZone=s,this._cursorStyleIsSet=!1,this._pointerDownListener=o=>{this._pointerDownEventTarget=Mn(o)},this._clickListener=o=>{let a=Mn(o),l=o.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:a;this._pointerDownEventTarget=null;let c=this._attachedOverlays.slice();for(let u=c.length-1;u>-1;u--){let d=c[u];if(d._outsidePointerEvents.observers.length<1||!d.hasAttached())continue;if(PD(d.overlayElement,a)||PD(d.overlayElement,l))break;let f=d._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>f.next(o)):f.next(o)}}}add(n){if(super.add(n),!this._isAttached){let r=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(r)):this._addEventListeners(r),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){let n=this._document.body;n.removeEventListener("pointerdown",this._pointerDownListener,!0),n.removeEventListener("click",this._clickListener,!0),n.removeEventListener("auxclick",this._clickListener,!0),n.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(n.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(n){n.addEventListener("pointerdown",this._pointerDownListener,!0),n.addEventListener("click",this._clickListener,!0),n.addEventListener("auxclick",this._clickListener,!0),n.addEventListener("contextmenu",this._clickListener,!0)}};e.\u0275fac=function(r){return new(r||e)(m(X),m($e),m(L,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function PD(t,e){let i=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===t)return!0;n=i&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var vc=(()=>{let e=class e{constructor(n,r){this._platform=r,this._document=n}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let n="cdk-overlay-container";if(this._platform.isBrowser||np()){let s=this._document.querySelectorAll(`.${n}[platform="server"], .${n}[platform="test"]`);for(let o=0;othis._backdropClick.next(f),this._backdropTransitionendHandler=f=>{this._disposeBackdrop(f.target)},this._keydownEvents=new F,this._outsidePointerEvents=new F,this._renders=new F,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy,this._afterRenderRef=Ht(()=>vh(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let i=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),Mr(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof i?.onDestroy=="function"&&i.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),i}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,e&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=E(E({},this._config),e),this._updateElementSize()}setDirection(e){this._config=se(E({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Me(this._config.width),e.height=Me(this._config.height),e.minWidth=Me(this._config.minWidth),e.minHeight=Me(this._config.minHeight),e.maxWidth=Me(this._config.maxWidth),e.maxHeight=Me(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let e=this._backdropElement;if(e){if(this._animationsDisabled){this._disposeBackdrop(e);return}e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500))}}_toggleClasses(e,i,n){let r=Wt(i||[]).filter(s=>!!s);r.length&&(n?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let e=this._renders.pipe(Kt(or(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){let e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}},FD="cdk-overlay-connected-position-bounding-box",lO=/([A-Za-z%]+)$/,gp=class{get positions(){return this._preferredPositions}constructor(e,i,n,r,s){this._viewportRuler=i,this._document=n,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new F,this._resizeSubscription=Q.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(FD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,i=this._overlayRect,n=this._viewportRect,r=this._containerRect,s=[],o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,i,a),u=this._getOverlayFit(c,i,n,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,l);return}if(this._canFitWithFlexibleDimensions(u,c,n)){s.push({position:a,origin:l,overlayRect:i,boundingBoxRect:this._calculateBoundingBoxRect(l,a)});continue}(!o||o.overlayFit.visibleAreal&&(l=u,a=c)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(o.position,o.originPoint);return}this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Bi(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(FD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,i)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,i,n){let r;if(n.originX=="center")r=e.left+e.width/2;else{let o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r=n.originX=="start"?o:a}i.left<0&&(r-=i.left);let s;return n.originY=="center"?s=e.top+e.height/2:s=n.originY=="top"?e.top:e.bottom,i.top<0&&(s-=i.top),{x:r,y:s}}_getOverlayPoint(e,i,n){let r;n.overlayX=="center"?r=-i.width/2:n.overlayX==="start"?r=this._isRtl()?-i.width:0:r=this._isRtl()?0:-i.width;let s;return n.overlayY=="center"?s=-i.height/2:s=n.overlayY=="top"?0:-i.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,i,n,r){let s=VD(i),{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let u=0-o,d=o+s.width-n.width,f=0-a,h=a+s.height-n.height,p=this._subtractOverflows(s.width,u,d),y=this._subtractOverflows(s.height,f,h),D=p*y;return{visibleArea:D,isCompletelyWithinViewport:s.width*s.height===D,fitsInViewportVertically:y===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,i,n){if(this._hasFlexibleDimensions){let r=n.bottom-i.y,s=n.right-i.x,o=LD(this._overlayRef.getConfig().minHeight),a=LD(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||o!=null&&o<=r,c=e.fitsInViewportHorizontally||a!=null&&a<=s;return l&&c}return!1}_pushOverlayOnScreen(e,i,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let r=VD(i),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-n.top-e.y,0),c=Math.max(s.left-n.left-e.x,0),u=0,d=0;return r.width<=s.width?u=c||-o:u=e.xp&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}let l=i.overlayX==="start"&&!r||i.overlayX==="end"&&r,c=i.overlayX==="end"&&!r||i.overlayX==="start"&&r,u,d,f;if(c)f=n.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(l)d=e.x,u=n.right-e.x;else{let h=Math.min(n.right-e.x+n.left,e.x),p=this._lastBoundingBoxSize.width;u=h*2,d=e.x-h,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:f,width:u,height:s}}_setBoundingBoxStyles(e,i){let n=this._calculateBoundingBoxRect(e,i);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{let s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=Me(n.height),r.top=Me(n.top),r.bottom=Me(n.bottom),r.width=Me(n.width),r.left=Me(n.left),r.right=Me(n.right),i.overlayX==="center"?r.alignItems="center":r.alignItems=i.overlayX==="end"?"flex-end":"flex-start",i.overlayY==="center"?r.justifyContent="center":r.justifyContent=i.overlayY==="bottom"?"flex-end":"flex-start",s&&(r.maxHeight=Me(s)),o&&(r.maxWidth=Me(o))}this._lastBoundingBoxSize=n,Bi(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Bi(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Bi(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,i){let n={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){let u=this._viewportRuler.getViewportScrollPosition();Bi(n,this._getExactOverlayY(i,e,u)),Bi(n,this._getExactOverlayX(i,e,u))}else n.position="static";let a="",l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),n.transform=a.trim(),o.maxHeight&&(r?n.maxHeight=Me(o.maxHeight):s&&(n.maxHeight="")),o.maxWidth&&(r?n.maxWidth=Me(o.maxWidth):s&&(n.maxWidth="")),Bi(this._pane.style,n)}_getExactOverlayY(e,i,n){let r={top:"",bottom:""},s=this._getOverlayPoint(i,this._overlayRect,e);if(this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n)),e.overlayY==="bottom"){let o=this._document.documentElement.clientHeight;r.bottom=`${o-(s.y+this._overlayRect.height)}px`}else r.top=Me(s.y);return r}_getExactOverlayX(e,i,n){let r={left:"",right:""},s=this._getOverlayPoint(i,this._overlayRect,e);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let o;if(this._isRtl()?o=e.overlayX==="end"?"left":"right":o=e.overlayX==="end"?"right":"left",o==="right"){let a=this._document.documentElement.clientWidth;r.right=`${a-(s.x+this._overlayRect.width)}px`}else r.left=Me(s.x);return r}_getScrollVisibility(){let e=this._getOriginRect(),i=this._pane.getBoundingClientRect(),n=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ND(e,n),isOriginOutsideView:hp(e,n),isOverlayClipped:ND(i,n),isOverlayOutsideView:hp(i,n)}}_subtractOverflows(e,...i){return i.reduce((n,r)=>n-Math.max(r,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,i=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+i-this._viewportMargin,width:e-2*this._viewportMargin,height:i-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,i){return i==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Wt(e).forEach(i=>{i!==""&&this._appliedPanelClasses.indexOf(i)===-1&&(this._appliedPanelClasses.push(i),this._pane.classList.add(i))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof ue)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let i=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+i,height:n,width:i}}};function Bi(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function LD(t){if(typeof t!="number"&&t!=null){let[e,i]=t.split(lO);return!i||i==="px"?parseFloat(e):null}return t||null}function VD(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function cO(t,e){return t===e?!0:t.isOriginClipped===e.isOriginClipped&&t.isOriginOutsideView===e.isOriginOutsideView&&t.isOverlayClipped===e.isOverlayClipped&&t.isOverlayOutsideView===e.isOverlayOutsideView}var jD="cdk-global-overlay-wrapper",yp=class{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(e){let i=e.getConfig();this._overlayRef=e,this._width&&!i.width&&e.updateSize({width:this._width}),this._height&&!i.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(jD),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=n,l=(r==="100%"||r==="100vw")&&(!o||o==="100%"||o==="100vw"),c=(s==="100%"||s==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",h="",p="",y="";l?y="flex-start":u==="center"?(y="center",f?p=d:h=d):f?u==="left"||u==="end"?(y="flex-end",h=d):(u==="right"||u==="start")&&(y="flex-start",p=d):u==="left"||u==="start"?(y="flex-start",h=d):(u==="right"||u==="end")&&(y="flex-end",p=d),e.position=this._cssPosition,e.marginLeft=l?"0":h,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":p,i.justifyContent=y,i.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,i=this._overlayRef.hostElement,n=i.style;i.classList.remove(jD),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},uO=(()=>{let e=class e{constructor(n,r,s,o){this._viewportRuler=n,this._document=r,this._platform=s,this._overlayContainer=o}global(){return new yp}flexibleConnectedTo(n){return new gp(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}};e.\u0275fac=function(r){return new(r||e)(m(ap),m(X),m($e),m(vc))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),dO=0,Tn=(()=>{let e=class e{constructor(n,r,s,o,a,l,c,u,d,f,h,p){this.scrollStrategies=n,this._overlayContainer=r,this._componentFactoryResolver=s,this._positionBuilder=o,this._keyboardDispatcher=a,this._injector=l,this._ngZone=c,this._document=u,this._directionality=d,this._location=f,this._outsideClickDispatcher=h,this._animationsModuleType=p}create(n){let r=this._createHostElement(),s=this._createPaneElement(r),o=this._createPortalOutlet(s),a=new zr(n);return a.direction=a.direction||this._directionality.value,new mp(o,r,s,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(Ye))}position(){return this._positionBuilder}_createPaneElement(n){let r=this._document.createElement("div");return r.id=`cdk-overlay-${dO++}`,r.classList.add("cdk-overlay-pane"),n.appendChild(r),r}_createHostElement(){let n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}_createPortalOutlet(n){return this._appRef||(this._appRef=this._injector.get($t)),new pc(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}};e.\u0275fac=function(r){return new(r||e)(m(sO),m(vc),m(tn),m(uO),m(oO),m(Te),m(L),m(X),m(xD),m(bn),m(aO),m(Ms,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var hO=new M("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=w(Tn);return()=>t.scrollStrategies.reposition()}});function fO(t){return()=>t.scrollStrategies.reposition()}var pO={provide:hO,deps:[Tn],useFactory:fO},vp=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[Tn,pO],imports:[_o,yc,lp,lp]});let t=e;return t})();var U=function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t}(U||{}),un="*";function _c(t,e){return{type:U.Trigger,name:t,definitions:e,options:{}}}function Ui(t,e=null){return{type:U.Animate,styles:e,timings:t}}function UD(t,e=null){return{type:U.Group,steps:t,options:e}}function $D(t,e=null){return{type:U.Sequence,steps:t,options:e}}function Ke(t){return{type:U.Style,styles:t,offset:null}}function bo(t,e,i){return{type:U.State,name:t,styles:e,options:i}}function HD(t){return{type:U.Keyframes,steps:t}}function Wr(t,e,i=null){return{type:U.Transition,expr:t,animation:e,options:i}}function wc(t=null){return{type:U.AnimateChild,options:t}}function zD(t,e,i=null){return{type:U.Query,selector:t,animation:e,options:i}}var ni=class{constructor(e=0,i=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=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Do=class{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let i=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++i==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Dc="!";var yO=["owl-date-time-calendar-body",""],vO=(t,e,i)=>({"owl-dt-calendar-cell-out":t,"owl-dt-calendar-cell-today":e,"owl-dt-calendar-cell-selected":i});function _O(t,e){if(t&1){let i=st();g(0,"td",3),ee("click",function(){let r=ie(i).$implicit,s=V(2);return re(s.selectCell(r))}),g(1,"span",4),S(2),_()()}if(t&2){let i=e.$implicit,n=e.index,r=V().index,s=V();Xv("owl-dt-calendar-cell ",i.cellClass,""),Gn("width",100/s.numCols,"%")("padding-top",50*s.cellRatio/s.numCols,"%")("padding-bottom",50*s.cellRatio/s.numCols,"%"),Le("owl-dt-calendar-cell-active",s.isActiveCell(r,n))("owl-dt-calendar-cell-disabled",!i.enabled)("owl-dt-calendar-cell-in-range",s.isInRange(i.value))("owl-dt-calendar-cell-range-from",s.isRangeFrom(i.value))("owl-dt-calendar-cell-range-to",s.isRangeTo(i.value)),N("tabindex",s.isActiveCell(r,n)?0:-1),Ce("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-current",i.value===s.todayValue?"date":null)("aria-selected",s.isSelected(i.value)),T(),N("ngClass",i_(26,vO,i.out,i.value===s.todayValue,s.isSelected(i.value))),T(),sn(" ",i.displayValue," ")}}function wO(t,e){if(t&1&&(g(0,"tr",1),Ze(1,_O,3,30,"td",2),_()),t&2){let i=e.$implicit;T(),N("ngForOf",i)}}var WD=t=>({"owl-calendar-weeks":t});function DO(t,e){if(t&1&&(g(0,"li")(1,"span"),S(2),_()()),t&2){let i=e.$implicit;T(2),xe(i)}}function bO(t,e){if(t&1&&(g(0,"ul",7),Ze(1,DO,3,1,"li",8),_()),t&2){let i=V();T(),N("ngForOf",i.weekNumbers)}}function CO(t,e){if(t&1&&(g(0,"th",9)(1,"span"),S(2),_()()),t&2){let i=e.$implicit;Ce("aria-label",i.long),T(2),xe(i.short)}}function EO(t,e){if(t&1){let i=st();g(0,"owl-date-time-month-view",16),ee("pickerMomentChange",function(r){ie(i);let s=V();return re(s.handlePickerMomentChange(r))})("selectedChange",function(r){ie(i);let s=V();return re(s.dateSelected(r))})("userSelection",function(){ie(i);let r=V();return re(r.userSelected())}),_()}if(t&2){let i=V();N("pickerMoment",i.pickerMoment)("firstDayOfWeek",i.firstDayOfWeek)("selected",i.selected)("selecteds",i.selecteds)("selectMode",i.selectMode)("minDate",i.minDate)("showCalendarWeeks",i.showCalendarWeeks)("maxDate",i.maxDate)("dateFilter",i.dateFilter)("hideOtherMonths",i.hideOtherMonths)}}function IO(t,e){if(t&1){let i=st();g(0,"owl-date-time-year-view",17),ee("keyboardEnter",function(){ie(i);let r=V();return re(r.focusActiveCell())})("pickerMomentChange",function(r){ie(i);let s=V();return re(s.handlePickerMomentChange(r))})("monthSelected",function(r){ie(i);let s=V();return re(s.selectMonthInYearView(r))})("change",function(r){ie(i);let s=V();return re(s.goToDateInView(r,s.DateView.MONTH))}),_()}if(t&2){let i=V();N("pickerMoment",i.pickerMoment)("selected",i.selected)("selecteds",i.selecteds)("selectMode",i.selectMode)("minDate",i.minDate)("maxDate",i.maxDate)("dateFilter",i.dateFilter)}}function SO(t,e){if(t&1){let i=st();g(0,"owl-date-time-multi-year-view",18),ee("keyboardEnter",function(){ie(i);let r=V();return re(r.focusActiveCell())})("pickerMomentChange",function(r){ie(i);let s=V();return re(s.handlePickerMomentChange(r))})("yearSelected",function(r){ie(i);let s=V();return re(s.selectYearInMultiYearView(r))})("change",function(r){ie(i);let s=V();return re(s.goToDateInView(r,s.DateView.YEAR))}),_()}if(t&2){let i=V();N("pickerMoment",i.pickerMoment)("selected",i.selected)("selecteds",i.selecteds)("selectMode",i.selectMode)("minDate",i.minDate)("maxDate",i.maxDate)("dateFilter",i.dateFilter)}}var MO=["valueInput"];function TO(t,e){t&1&&de(0,"div",10)}function AO(t,e){if(t&1){let i=st();g(0,"owl-date-time-timer-box",1),ee("inputChange",function(r){ie(i);let s=V();return re(s.setSecondValue(r))})("valueChange",function(r){ie(i);let s=V();return re(s.setSecondValue(r))}),_()}if(t&2){let i=V();N("showDivider",!0)("upBtnAriaLabel",i.upSecondButtonLabel)("downBtnAriaLabel",i.downSecondButtonLabel)("upBtnDisabled",!i.upSecondEnabled())("downBtnDisabled",!i.downSecondEnabled())("value",i.secondValue)("min",0)("max",59)("step",i.stepSecond)("inputLabel","Second")}}function xO(t,e){if(t&1){let i=st();g(0,"div",4)(1,"button",5),ee("click",function(r){ie(i);let s=V();return re(s.setMeridiem(r))}),g(2,"span",6),S(3),_()()()}if(t&2){let i=V();T(3),sn(" ",i.hour12ButtonLabel," ")}}var GD=t=>({"owl-dt-container-info-active":t});function kO(t,e){if(t&1){let i=st();g(0,"owl-date-time-calendar",7),Sh("pickerMomentChange",function(r){ie(i);let s=V();return t_(s.pickerMoment,r)||(s.pickerMoment=r),re(r)}),ee("yearSelected",function(r){ie(i);let s=V();return re(s.picker.selectYear(r))})("monthSelected",function(r){ie(i);let s=V();return re(s.picker.selectMonth(r))})("dateClicked",function(r){ie(i);let s=V();return re(s.picker.selectDate(r))})("selectedChange",function(r){ie(i);let s=V();return re(s.dateSelected(r))}),_()}if(t&2){let i=V();N("firstDayOfWeek",i.picker.firstDayOfWeek),Ih("pickerMoment",i.pickerMoment),N("selected",i.picker.selected)("selecteds",i.picker.selecteds)("selectMode",i.picker.selectMode)("minDate",i.picker.minDateTime)("maxDate",i.picker.maxDateTime)("dateFilter",i.picker.dateTimeFilter)("startView",i.picker.startView)("yearOnly",i.picker.yearOnly)("showCalendarWeeks",i.picker.showCalendarWeeks)("multiyearOnly",i.picker.multiyearOnly)("hideOtherMonths",i.picker.hideOtherMonths)}}function OO(t,e){if(t&1){let i=st();g(0,"owl-date-time-timer",8),ee("selectedChange",function(r){ie(i);let s=V();return re(s.timeSelected(r))}),_()}if(t&2){let i=V();N("pickerMoment",i.pickerMoment)("minDateTime",i.picker.minDateTime)("maxDateTime",i.picker.maxDateTime)("showSecondsTimer",i.picker.showSecondsTimer)("hour12Timer",i.picker.hour12Timer)("stepHour",i.picker.stepHour)("stepMinute",i.picker.stepMinute)("stepSecond",i.picker.stepSecond)}}function RO(t,e){if(t&1){let i=st();g(0,"div",9)(1,"div",10,0),ee("click",function(r){ie(i);let s=V();return re(s.handleClickOnInfoGroup(r,0))})("keydown",function(r){ie(i);let s=Si(9),o=V();return re(o.handleKeydownOnInfoGroup(r,s,0))}),g(3,"span",11)(4,"span",12),S(5),_(),g(6,"span",13),S(7),_()()(),g(8,"div",14,1),ee("click",function(r){ie(i);let s=V();return re(s.handleClickOnInfoGroup(r,1))})("keydown",function(r){ie(i);let s=Si(2),o=V();return re(o.handleKeydownOnInfoGroup(r,s,1))}),g(10,"span",11)(11,"span",12),S(12),_(),g(13,"span",13),S(14),_()()()()}if(t&2){let i=V();T(),N("tabindex",i.activeSelectedIndex===0?0:-1)("ngClass",xs(10,GD,i.activeSelectedIndex===0)),Ce("aria-checked",i.activeSelectedIndex===0),T(4),sn("",i.fromLabel,":"),T(2),xe(i.fromFormattedValue),T(),N("tabindex",i.activeSelectedIndex===1?0:-1)("ngClass",xs(12,GD,i.activeSelectedIndex===1)),Ce("aria-checked",i.activeSelectedIndex===1),T(4),sn("",i.toLabel,":"),T(2),xe(i.toFormattedValue)}}function NO(t,e){if(t&1){let i=st();g(0,"div",15)(1,"button",16),ee("click",function(r){ie(i);let s=V();return re(s.onCancelClicked(r))}),g(2,"span",17),S(3),_()(),g(4,"button",16),ee("click",function(r){ie(i);let s=V();return re(s.onSetClicked(r))}),g(5,"span",17),S(6),_()()()}if(t&2){let i=V();T(3),sn(" ",i.cancelLabel," "),T(3),sn(" ",i.setLabel," ")}}function PO(t,e){}var nb=(()=>{let e=class e{get disabled(){return this._disabled===void 0?this.dtPicker.disabled:!!this._disabled}set disabled(n){this._disabled=n}get owlDTTriggerDisabledClass(){return this.disabled}constructor(n){this.changeDetector=n,this.stateChanges=Q.EMPTY}ngOnInit(){}ngOnChanges(n){n.datepicker&&this.watchStateChanges()}ngAfterContentInit(){this.watchStateChanges()}ngOnDestroy(){this.stateChanges.unsubscribe()}handleClickOnHost(n){this.dtPicker&&(this.dtPicker.open(),n.stopPropagation())}watchStateChanges(){this.stateChanges.unsubscribe();let n=this.dtPicker&&this.dtPicker.dtInput?this.dtPicker.dtInput.disabledChange:O(),r=this.dtPicker?this.dtPicker.disabledChange:O();this.stateChanges=or([r,n]).subscribe(()=>{this.changeDetector.markForCheck()})}};e.\u0275fac=function(r){return new(r||e)(v(Ue))},e.\u0275dir=G({type:e,selectors:[["","owlDateTimeTrigger",""]],hostVars:2,hostBindings:function(r,s){r&1&&ee("click",function(a){return s.handleClickOnHost(a)}),r&2&&Le("owl-dt-trigger-disabled",s.owlDTTriggerDisabledClass)},inputs:{dtPicker:[0,"owlDateTimeTrigger","dtPicker"],disabled:"disabled"},features:[nt]});let t=e;return t})(),ii=new M("OWL_DATE_TIME_FORMATS"),FO=new M("OWL_DATE_TIME_LOCALE",{providedIn:"root",factory:LO});function LO(){return w(Os)}var dt=class{constructor(){this._localeChanges=new F,this.millisecondsInDay=864e5,this.milliseondsInMinute=6e4}get localeChanges(){return this._localeChanges}compare(e,i){if(!this.isValid(e)||!this.isValid(i))throw Error("JSNativeDate: Cannot compare invalid dates.");let n=this.clone(e),r=this.clone(i),s=this.getTime(n)-this.getTime(r);return s<0?-1:s>0?1:s}compareYear(e,i){if(!this.isValid(e)||!this.isValid(i))throw Error("JSNativeDate: Cannot compare invalid dates.");let n=this.getYear(e),r=this.getYear(i),s=n-r;return s<0?-1:s>0?1:0}deserialize(e){return e==null||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()}setLocale(e){this.locale=e,this._localeChanges.next(e)}getLocale(){return this.locale}clampDate(e,i,n){return i&&this.compare(e,i)<0?i:n&&this.compare(e,n)>0?n:e}},VO=0,Ee=function(t){return t.MONTH="month",t.YEAR="year",t.MULTI_YEARS="multi-years",t}(Ee||{}),ib=(()=>{let e=class e{get showSecondsTimer(){return this._showSecondsTimer}set showSecondsTimer(n){this._showSecondsTimer=Fi(n)}get hour12Timer(){return this._hour12Timer}set hour12Timer(n){this._hour12Timer=Fi(n)}get stepHour(){return this._stepHour}set stepHour(n){this._stepHour=ti(n,1)}get stepMinute(){return this._stepMinute}set stepMinute(n){this._stepMinute=ti(n,1)}get stepSecond(){return this._stepSecond}set stepSecond(n){this._stepSecond=ti(n,1)}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(n){n=ti(n),n>6||n<0?this._firstDayOfWeek=void 0:this._firstDayOfWeek=n}get hideOtherMonths(){return this._hideOtherMonths}set hideOtherMonths(n){this._hideOtherMonths=Fi(n)}get id(){return this._id}get formatString(){return this.pickerType==="both"?this.dateTimeFormats.fullPickerInput:this.pickerType==="calendar"?this.dateTimeFormats.datePickerInput:this.dateTimeFormats.timePickerInput}get disabled(){return!1}constructor(n,r){if(this.dateTimeAdapter=n,this.dateTimeFormats=r,this._showSecondsTimer=!1,this._hour12Timer=!1,this.startView=Ee.MONTH,this.showCalendarWeeks=!1,this.yearOnly=!1,this.multiyearOnly=!1,this._stepHour=1,this._stepMinute=1,this._stepSecond=1,this._hideOtherMonths=!1,this.dateTimeChecker=s=>!!s&&(!this.dateTimeFilter||this.dateTimeFilter(s))&&(!this.minDateTime||this.dateTimeAdapter.compare(s,this.minDateTime)>=0)&&(!this.maxDateTime||this.dateTimeAdapter.compare(s,this.maxDateTime)<=0),!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimeAdapter. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this._id=`owl-dt-picker-${VO++}`}getValidDate(n){return this.dateTimeAdapter.isDateInstance(n)&&this.dateTimeAdapter.isValid(n)?n:null}};e.\u0275fac=function(r){return new(r||e)(v(dt,8),v(ii,8))},e.\u0275dir=G({type:e,inputs:{showSecondsTimer:"showSecondsTimer",hour12Timer:"hour12Timer",startView:"startView",showCalendarWeeks:"showCalendarWeeks",yearOnly:"yearOnly",multiyearOnly:"multiyearOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",firstDayOfWeek:"firstDayOfWeek",hideOtherMonths:"hideOtherMonths"}});let t=e;return t})(),Io=(()=>{let e=class e{constructor(){this.changes=new F,this.upSecondLabel="Add a second",this.downSecondLabel="Minus a second",this.upMinuteLabel="Add a minute",this.downMinuteLabel="Minus a minute",this.upHourLabel="Add a hour",this.downHourLabel="Minus a hour",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 21 years",this.nextMultiYearLabel="Next 21 years",this.switchToMonthViewLabel="Change to month view",this.switchToMultiYearViewLabel="Choose month and year",this.cancelBtnLabel="Cancel",this.setBtnLabel="Set",this.rangeFromLabel="From",this.rangeToLabel="To",this.hour12AMLabel="AM",this.hour12PMLabel="PM"}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Eo=class{constructor(e,i,n,r,s=!1,o=""){this.value=e,this.displayValue=i,this.ariaLabel=n,this.enabled=r,this.out=s,this.cellClass=o}},Yr=(()=>{let e=class e{get owlDTCalendarBodyClass(){return!0}get isInSingleMode(){return this.selectMode==="single"}get isInRangeMode(){return this.selectMode==="range"||this.selectMode==="rangeFrom"||this.selectMode==="rangeTo"}constructor(n,r){this.elmRef=n,this.ngZone=r,this.activeCell=0,this.numCols=7,this.cellRatio=1,this.select=new A}ngOnInit(){}selectCell(n){this.select.emit(n)}isActiveCell(n,r){return n*this.numCols+r===this.activeCell}isSelected(n){if(!this.selectedValues||this.selectedValues.length===0)return!1;if(this.isInSingleMode)return n===this.selectedValues[0];if(this.isInRangeMode){let r=this.selectedValues[0],s=this.selectedValues[1];return n===r||n===s}}isInRange(n){if(this.isInRangeMode){let r=this.selectedValues[0],s=this.selectedValues[1];return r!==null&&s!==null?n>=r&&n<=s:n===r||n===s}}isRangeFrom(n){if(this.isInRangeMode){let r=this.selectedValues[0];return r!==null&&n===r}}isRangeTo(n){if(this.isInRangeMode){let r=this.selectedValues[1];return r!==null&&n===r}}focusActiveCell(){this.ngZone.runOutsideAngular(()=>{this.ngZone.onStable.asObservable().pipe(_e(1)).subscribe(()=>{this.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()})})}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(L))},e.\u0275cmp=Fe({type:e,selectors:[["","owl-date-time-calendar-body",""]],hostVars:2,hostBindings:function(r,s){r&2&&Le("owl-dt-calendar-body",s.owlDTCalendarBodyClass)},inputs:{activeCell:"activeCell",rows:"rows",numCols:"numCols",cellRatio:"cellRatio",todayValue:"todayValue",selectedValues:"selectedValues",selectMode:"selectMode"},outputs:{select:"select"},exportAs:["owlDateTimeCalendarBody"],attrs:yO,decls:1,vars:1,consts:[["role","row",4,"ngFor","ngForOf"],["role","row"],[3,"class","tabindex","owl-dt-calendar-cell-active","owl-dt-calendar-cell-disabled","owl-dt-calendar-cell-in-range","owl-dt-calendar-cell-range-from","owl-dt-calendar-cell-range-to","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],[3,"click","tabindex"],[1,"owl-dt-calendar-cell-content",3,"ngClass"]],template:function(r,s){r&1&&Ze(0,wO,2,1,"tr",0),r&2&&N("ngForOf",s.rows)},dependencies:[Cl,Fh],changeDetection:0});let t=e;return t})();function jO(){return Dp.create()}function BO(t){return t.multiYear}var Dp=class{static create(){return{multiYear:{yearRows:7,yearsPerRow:3}}}},Ic=class Ic{};Ic.all=new M("All options token"),Ic.multiYear=new M("Grid view options token");var Gr=Ic,UO=[{provide:Gr.all,useFactory:jO},{provide:Gr.multiYear,useFactory:BO,deps:[Gr.all]}],$O=(()=>{let e=class e{get selectMode(){return this._selectMode}set selectMode(n){this._selectMode=n,this.initiated&&(this.setSelectedYears(),this.cdRef.markForCheck())}get selected(){return this._selected}set selected(n){let r=this._selected;n=this.dateTimeAdapter.deserialize(n),this._selected=this.getValidDate(n),this.dateTimeAdapter.isSameDay(r,this._selected)||this.setSelectedYears()}get selecteds(){return this._selecteds}set selecteds(n){this._selecteds=n.map(r=>(r=this.dateTimeAdapter.deserialize(r),this.getValidDate(r))),this.setSelectedYears()}get pickerMoment(){return this._pickerMoment}set pickerMoment(n){let r=this._pickerMoment;n=this.dateTimeAdapter.deserialize(n),this._pickerMoment=this.getValidDate(n)||this.dateTimeAdapter.now(),r&&this._pickerMoment&&!this.isSameYearList(r,this._pickerMoment)&&this.generateYearList()}get dateFilter(){return this._dateFilter}set dateFilter(n){this._dateFilter=n,this.initiated&&this.generateYearList()}get minDate(){return this._minDate}set minDate(n){n=this.dateTimeAdapter.deserialize(n),this._minDate=this.getValidDate(n),this.initiated&&this.generateYearList()}get maxDate(){return this._maxDate}set maxDate(n){n=this.dateTimeAdapter.deserialize(n),this._maxDate=this.getValidDate(n),this.initiated&&this.generateYearList()}get todayYear(){return this._todayYear}get years(){return this._years}get selectedYears(){return this._selectedYears}get isInSingleMode(){return this.selectMode==="single"}get isInRangeMode(){return this.selectMode==="range"||this.selectMode==="rangeFrom"||this.selectMode==="rangeTo"}get activeCell(){if(this._pickerMoment)return this.dateTimeAdapter.getYear(this._pickerMoment)%(this.options.yearsPerRow*this.options.yearRows)}get tableHeader(){if(this._years&&this._years.length>0)return`${this._years[0][0].displayValue} - ${this._years[this.options.yearRows-1][this.options.yearsPerRow-1].displayValue}`}get prevButtonLabel(){return this.pickerIntl.prevMultiYearLabel}get nextButtonLabel(){return this.pickerIntl.nextMultiYearLabel}get owlDTCalendarView(){return!0}get owlDTCalendarMultiYearView(){return!0}constructor(n,r,s,o){this.cdRef=n,this.pickerIntl=r,this.dateTimeAdapter=s,this.options=o,this._selectMode="single",this._selecteds=[],this.initiated=!1,this.change=new A,this.yearSelected=new A,this.pickerMomentChange=new A,this.keyboardEnter=new A}ngOnInit(){}ngAfterContentInit(){this._todayYear=this.dateTimeAdapter.getYear(this.dateTimeAdapter.now()),this.generateYearList(),this.initiated=!0}selectCalendarCell(n){this.selectYear(n.value)}selectYear(n){this.yearSelected.emit(this.dateTimeAdapter.createDate(n,0,1));let r=this.dateTimeAdapter.createDate(n,this.dateTimeAdapter.getMonth(this.pickerMoment),1),s=this.dateTimeAdapter.getNumDaysInMonth(r),o=this.dateTimeAdapter.createDate(n,this.dateTimeAdapter.getMonth(this.pickerMoment),Math.min(s,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(o)}prevYearList(n){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1*this.options.yearsPerRow*this.options.yearRows),this.generateYearList(),n.preventDefault()}nextYearList(n){this._pickerMoment=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,this.options.yearsPerRow*this.options.yearRows),this.generateYearList(),n.preventDefault()}generateYearList(){this._years=[];let n=this.dateTimeAdapter.getYear(this._pickerMoment),r=n%(this.options.yearsPerRow*this.options.yearRows);for(let s=0;sthis.dateTimeAdapter.isValid(n)?this.dateTimeAdapter.getYear(n):null))}isYearEnabled(n){if(n==null||this.maxDate&&n>this.dateTimeAdapter.getYear(this.maxDate)||this.minDate&&n{let e=class e{get selectMode(){return this._selectMode}set selectMode(n){this._selectMode=n,this.initiated&&(this.generateMonthList(),this.cdRef.markForCheck())}get selected(){return this._selected}set selected(n){n=this.dateTimeAdapter.deserialize(n),this._selected=this.getValidDate(n),this.setSelectedMonths()}get selecteds(){return this._selecteds}set selecteds(n){this._selecteds=[];for(let r=0;r{this.generateMonthList(),this.cdRef.markForCheck()})}ngAfterContentInit(){this.generateMonthList(),this.initiated=!0}ngOnDestroy(){this.localeSub.unsubscribe()}selectCalendarCell(n){this.selectMonth(n.value)}selectMonth(n){let r=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),n,1);this.monthSelected.emit(r);let s=this.dateTimeAdapter.getNumDaysInMonth(r),o=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.pickerMoment),n,Math.min(s,this.dateTimeAdapter.getDate(this.pickerMoment)),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment));this.change.emit(o)}handleCalendarKeydown(n){let r;switch(n.keyCode){case 37:r=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(r);break;case 39:r=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(r);break;case 38:r=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-3),this.pickerMomentChange.emit(r);break;case 40:r=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,3),this.pickerMomentChange.emit(r);break;case 36:r=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(r);break;case 35:r=this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,11-this.dateTimeAdapter.getMonth(this.pickerMoment)),this.pickerMomentChange.emit(r);break;case 33:r=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,n.altKey?-10:-1),this.pickerMomentChange.emit(r);break;case 34:r=this.dateTimeAdapter.addCalendarYears(this.pickerMoment,n.altKey?10:1),this.pickerMomentChange.emit(r);break;case 13:this.selectMonth(this.dateTimeAdapter.getMonth(this.pickerMoment)),this.keyboardEnter.emit();break;default:return}this.focusActiveCell(),n.preventDefault()}generateMonthList(){if(this.pickerMoment){this.setSelectedMonths(),this.todayMonth=this.getMonthInCurrentYear(this.dateTimeAdapter.now()),this._months=[];for(let n=0;n=0)&&(!this.maxDate||this.dateTimeAdapter.compare(s,this.maxDate)<=0))return!0;return!1}getMonthInCurrentYear(n){if(this.getValidDate(n)&&this.getValidDate(this._pickerMoment)){let r=this.dateTimeAdapter.compareYear(n,this._pickerMoment);return r<0?-1:r>0?12:this.dateTimeAdapter.getMonth(n)}else return null}setSelectedMonths(){this.selectedMonths=[],this.isInSingleMode&&this.selected&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selected)),this.isInRangeMode&&this.selecteds&&(this.selectedMonths[0]=this.getMonthInCurrentYear(this.selecteds[0]),this.selectedMonths[1]=this.getMonthInCurrentYear(this.selecteds[1]))}hasSameYear(n,r){return!!(n&&r&&this.dateTimeAdapter.getYear(n)===this.dateTimeAdapter.getYear(r))}getValidDate(n){return this.dateTimeAdapter.isDateInstance(n)&&this.dateTimeAdapter.isValid(n)?n:null}focusActiveCell(){this.calendarBodyElm.focusActiveCell()}};e.\u0275fac=function(r){return new(r||e)(v(Ue),v(dt,8),v(ii,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-year-view"]],viewQuery:function(r,s){if(r&1&&rn(Yr,7),r&2){let o;Bt(o=Ut())&&(s.calendarBodyElm=o.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Le("owl-dt-calendar-view",s.owlDTCalendarView)},inputs:{selectMode:"selectMode",selected:"selected",selecteds:"selecteds",pickerMoment:"pickerMoment",dateFilter:"dateFilter",minDate:"minDate",maxDate:"maxDate"},outputs:{change:"change",monthSelected:"monthSelected",pickerMomentChange:"pickerMomentChange",keyboardEnter:"keyboardEnter"},exportAs:["owlMonthView"],decls:5,vars:7,consts:[[1,"owl-dt-calendar-table","owl-dt-calendar-year-table"],[1,"owl-dt-calendar-header"],["aria-hidden","true","colspan","3",1,"owl-dt-calendar-table-divider"],["owl-date-time-calendar-body","","role","grid",3,"keydown","select","rows","numCols","cellRatio","activeCell","todayValue","selectedValues","selectMode"]],template:function(r,s){r&1&&(g(0,"table",0)(1,"thead",1)(2,"tr"),de(3,"th",2),_()(),g(4,"tbody",3),ee("keydown",function(a){return s.handleCalendarKeydown(a)})("select",function(a){return s.selectCalendarCell(a)}),_()()),r&2&&(T(4),N("rows",s.months)("numCols",3)("cellRatio",3/7)("activeCell",s.activeCell)("todayValue",s.todayMonth)("selectedValues",s.selectedMonths)("selectMode",s.selectMode))},dependencies:[Yr],changeDetection:0});let t=e;return t})(),wp=7,WO=6,GO=(()=>{let e=class e{get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(n){n>=0&&n<=6&&n!==this._firstDayOfWeek&&(this._firstDayOfWeek=n,this.isDefaultFirstDayOfWeek=!1,this.initiated&&(this.generateWeekDays(),this.generateCalendar(),this.cdRef.markForCheck()))}get selectMode(){return this._selectMode}set selectMode(n){this._selectMode=n,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}get selected(){return this._selected}set selected(n){let r=this._selected;n=this.dateTimeAdapter.deserialize(n),this._selected=this.getValidDate(n),this.dateTimeAdapter.isSameDay(r,this._selected)||this.setSelectedDates()}get selecteds(){return this._selecteds}set selecteds(n){this._selecteds=n.map(r=>(r=this.dateTimeAdapter.deserialize(r),this.getValidDate(r))),this.setSelectedDates()}get pickerMoment(){return this._pickerMoment}set pickerMoment(n){let r=this._pickerMoment;n=this.dateTimeAdapter.deserialize(n),this._pickerMoment=this.getValidDate(n)||this.dateTimeAdapter.now(),this.firstDateOfMonth=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this._pickerMoment),this.dateTimeAdapter.getMonth(this._pickerMoment),1),!this.isSameMonth(r,this._pickerMoment)&&this.initiated&&this.generateCalendar()}get dateFilter(){return this._dateFilter}set dateFilter(n){this._dateFilter=n,this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}get minDate(){return this._minDate}set minDate(n){n=this.dateTimeAdapter.deserialize(n),this._minDate=this.getValidDate(n),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}get maxDate(){return this._maxDate}set maxDate(n){n=this.dateTimeAdapter.deserialize(n),this._maxDate=this.getValidDate(n),this.initiated&&(this.generateCalendar(),this.cdRef.markForCheck())}get weekdays(){return this._weekdays}get days(){return this._days}get activeCell(){if(this.pickerMoment)return this.dateTimeAdapter.getDate(this.pickerMoment)+this.firstRowOffset-1}get isInSingleMode(){return this.selectMode==="single"}get isInRangeMode(){return this.selectMode==="range"||this.selectMode==="rangeFrom"||this.selectMode==="rangeTo"}get owlDTCalendarView(){return!0}constructor(n,r,s){this.cdRef=n,this.dateTimeAdapter=r,this.dateTimeFormats=s,this.hideOtherMonths=!1,this.showCalendarWeeks=!1,this.isDefaultFirstDayOfWeek=!0,this._selectMode="single",this._selecteds=[],this.localeSub=Q.EMPTY,this.initiated=!1,this.selectedDates=[],this.selectedChange=new A,this.userSelection=new A,this.pickerMomentChange=new A}ngOnInit(){this.updateFirstDayOfWeek(this.dateTimeAdapter.getLocale()),this.generateWeekDays(),this.localeSub=this.dateTimeAdapter.localeChanges.subscribe(n=>{this.updateFirstDayOfWeek(n),this.generateWeekDays(),this.generateCalendar(),this.cdRef.markForCheck()})}ngAfterContentInit(){this.generateCalendar(),this.initiated=!0}ngOnDestroy(){this.localeSub.unsubscribe()}selectCalendarCell(n){!n.enabled||this.hideOtherMonths&&n.out||this.selectDate(n.value)}selectDate(n){let r=n-1,s=this.dateTimeAdapter.addCalendarDays(this.firstDateOfMonth,r);this.selectedChange.emit(s),this.userSelection.emit()}handleCalendarKeydown(n){let r;switch(n.keyCode){case 37:r=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-1),this.pickerMomentChange.emit(r);break;case 39:r=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1),this.pickerMomentChange.emit(r);break;case 38:r=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,-7),this.pickerMomentChange.emit(r);break;case 40:r=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,7),this.pickerMomentChange.emit(r);break;case 36:r=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,1-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(r);break;case 35:r=this.dateTimeAdapter.addCalendarDays(this.pickerMoment,this.dateTimeAdapter.getNumDaysInMonth(this.pickerMoment)-this.dateTimeAdapter.getDate(this.pickerMoment)),this.pickerMomentChange.emit(r);break;case 33:r=n.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1),this.pickerMomentChange.emit(r);break;case 34:r=n.altKey?this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1):this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1),this.pickerMomentChange.emit(r);break;case 13:(!this.dateFilter||this.dateFilter(this.pickerMoment))&&this.selectDate(this.dateTimeAdapter.getDate(this.pickerMoment));break;default:return}this.focusActiveCell(),n.preventDefault()}generateWeekDays(){let n=this.dateTimeAdapter.getDayOfWeekNames("long"),r=this.dateTimeAdapter.getDayOfWeekNames("short"),s=this.dateTimeAdapter.getDayOfWeekNames("narrow"),o=this.firstDayOfWeek,a=n.map((l,c)=>({long:l,short:r[c],narrow:s[c]}));this._weekdays=a.slice(o).concat(a.slice(0,o)),this.dateNames=this.dateTimeAdapter.getDateNames()}generateCalendar(){if(!this.pickerMoment)return;this.todayDate=null,this.weekNumbers=[];let n=this.dateTimeAdapter.getDay(this.firstDateOfMonth),r=this.firstDayOfWeek,s=0-(n+(wp-r))%wp;this.firstRowOffset=Math.abs(s),this._days=[];for(let o=0;os,f="owl-dt-day-"+this.dateTimeAdapter.getDay(n);return new Eo(u,a,l,c,d,f)}isDateEnabled(n){return!!n&&(!this.dateFilter||this.dateFilter(n))&&(!this.minDate||this.dateTimeAdapter.compare(n,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(n,this.maxDate)<=0)}getValidDate(n){return this.dateTimeAdapter.isDateInstance(n)&&this.dateTimeAdapter.isValid(n)?n:null}isSameMonth(n,r){return!!(n&&r&&this.dateTimeAdapter.isValid(n)&&this.dateTimeAdapter.isValid(r)&&this.dateTimeAdapter.getYear(n)===this.dateTimeAdapter.getYear(r)&&this.dateTimeAdapter.getMonth(n)===this.dateTimeAdapter.getMonth(r))}setSelectedDates(){if(this.selectedDates=[],!!this.firstDateOfMonth){if(this.isInSingleMode&&this.selected){let n=this.dateTimeAdapter.differenceInCalendarDays(this.selected,this.firstDateOfMonth);this.selectedDates[0]=n+1;return}this.isInRangeMode&&this.selecteds&&(this.selectedDates=this.selecteds.map(n=>this.dateTimeAdapter.isValid(n)?this.dateTimeAdapter.differenceInCalendarDays(n,this.firstDateOfMonth)+1:null))}}focusActiveCell(){this.calendarBodyElm.focusActiveCell()}};e.\u0275fac=function(r){return new(r||e)(v(Ue),v(dt,8),v(ii,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-month-view"]],viewQuery:function(r,s){if(r&1&&rn(Yr,7),r&2){let o;Bt(o=Ut())&&(s.calendarBodyElm=o.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Le("owl-dt-calendar-view",s.owlDTCalendarView)},inputs:{hideOtherMonths:"hideOtherMonths",showCalendarWeeks:"showCalendarWeeks",firstDayOfWeek:"firstDayOfWeek",selectMode:"selectMode",selected:"selected",selecteds:"selecteds",pickerMoment:"pickerMoment",dateFilter:"dateFilter",minDate:"minDate",maxDate:"maxDate"},outputs:{selectedChange:"selectedChange",userSelection:"userSelection",pickerMomentChange:"pickerMomentChange"},exportAs:["owlYearView"],decls:8,vars:15,consts:[["class","week-number",4,"ngIf"],[1,"owl-dt-calendar-table","owl-dt-calendar-month-table",3,"ngClass"],[1,"owl-dt-calendar-header"],[1,"owl-dt-weekdays"],["class","owl-dt-weekday","scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"owl-dt-calendar-table-divider",3,"ngClass"],["owl-date-time-calendar-body","","role","grid",3,"keydown","select","rows","todayValue","selectedValues","selectMode","activeCell"],[1,"week-number"],[4,"ngFor","ngForOf"],["scope","col",1,"owl-dt-weekday"]],template:function(r,s){r&1&&(Ze(0,bO,2,1,"ul",0),g(1,"table",1)(2,"thead",2)(3,"tr",3),Ze(4,CO,3,2,"th",4),_(),g(5,"tr"),de(6,"th",5),_()(),g(7,"tbody",6),ee("keydown",function(a){return s.handleCalendarKeydown(a)})("select",function(a){return s.selectCalendarCell(a)}),_()()),r&2&&(N("ngIf",s.showCalendarWeeks),T(),Le("owl-dt-calendar-only-current-month",s.hideOtherMonths),N("ngClass",xs(11,WD,s.showCalendarWeeks)),T(3),N("ngForOf",s.weekdays),T(2),N("ngClass",xs(13,WD,s.showCalendarWeeks)),T(),N("rows",s.days)("todayValue",s.todayDate)("selectedValues",s.selectedDates)("selectMode",s.selectMode)("activeCell",s.activeCell))},dependencies:[Cl,Fh,Ns,Yr],styles:[".week-number[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;margin:46px 0 14px;padding:0;list-style:none;border-right:1px solid rgba(0,0,0,.12);width:8%;font-weight:700}.week-number[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{font-size:.8em}"],changeDetection:0});let t=e;return t})(),YD=(()=>{let e=class e{get minDate(){return this._minDate}set minDate(n){n=this.dateTimeAdapter.deserialize(n),n=this.getValidDate(n),this._minDate=n?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n)):null}get maxDate(){return this._maxDate}set maxDate(n){n=this.dateTimeAdapter.deserialize(n),n=this.getValidDate(n),this._maxDate=n?this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n)):null}get pickerMoment(){return this._pickerMoment}set pickerMoment(n){n=this.dateTimeAdapter.deserialize(n),this._pickerMoment=this.getValidDate(n)||this.dateTimeAdapter.now()}get selected(){return this._selected}set selected(n){n=this.dateTimeAdapter.deserialize(n),this._selected=this.getValidDate(n)}get selecteds(){return this._selecteds}set selecteds(n){this._selecteds=n.map(r=>(r=this.dateTimeAdapter.deserialize(r),this.getValidDate(r)))}get periodButtonText(){return this.isMonthView?this.dateTimeAdapter.format(this.pickerMoment,this.dateTimeFormats.monthYearLabel):this.dateTimeAdapter.getYearName(this.pickerMoment)}get periodButtonLabel(){return this.isMonthView?this.pickerIntl.switchToMultiYearViewLabel:this.pickerIntl.switchToMonthViewLabel}get prevButtonLabel(){return this._currentView===Ee.MONTH?this.pickerIntl.prevMonthLabel:this._currentView===Ee.YEAR?this.pickerIntl.prevYearLabel:null}get nextButtonLabel(){return this._currentView===Ee.MONTH?this.pickerIntl.nextMonthLabel:this._currentView===Ee.YEAR?this.pickerIntl.nextYearLabel:null}get currentView(){return this._currentView}set currentView(n){this._currentView=n,this.moveFocusOnNextTick=!0}get isInSingleMode(){return this.selectMode==="single"}get isInRangeMode(){return this.selectMode==="range"||this.selectMode==="rangeFrom"||this.selectMode==="rangeTo"}get showControlArrows(){return this._currentView!==Ee.MULTI_YEARS}get isMonthView(){return this._currentView===Ee.MONTH}get owlDTCalendarClass(){return!0}constructor(n,r,s,o,a,l){this.elmRef=n,this.pickerIntl=r,this.ngZone=s,this.cdRef=o,this.dateTimeAdapter=a,this.dateTimeFormats=l,this.DateView=Ee,this._selecteds=[],this.startView=Ee.MONTH,this.yearOnly=!1,this.showCalendarWeeks=!1,this.multiyearOnly=!1,this.pickerMomentChange=new A,this.dateClicked=new A,this.selectedChange=new A,this.userSelection=new A,this.yearSelected=new A,this.monthSelected=new A,this.intlChangesSub=Q.EMPTY,this.moveFocusOnNextTick=!1,this.dateFilterForViews=c=>!!c&&(!this.dateFilter||this.dateFilter(c))&&(!this.minDate||this.dateTimeAdapter.compare(c,this.minDate)>=0)&&(!this.maxDate||this.dateTimeAdapter.compare(c,this.maxDate)<=0),this.intlChangesSub=this.pickerIntl.changes.subscribe(()=>{this.cdRef.markForCheck()})}ngOnInit(){}ngAfterContentInit(){this._currentView=this.startView}ngAfterViewChecked(){this.moveFocusOnNextTick&&(this.moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this.intlChangesSub.unsubscribe()}toggleViews(){let n=null;this._currentView===Ee.MONTH||this.multiyearOnly?n=Ee.MULTI_YEARS:this.yearOnly?n=this._currentView===Ee.YEAR?Ee.MULTI_YEARS:Ee.YEAR:n=Ee.MONTH,this.currentView=n}previousClicked(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,-1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,-1),this.pickerMomentChange.emit(this.pickerMoment)}nextClicked(){this.pickerMoment=this.isMonthView?this.dateTimeAdapter.addCalendarMonths(this.pickerMoment,1):this.dateTimeAdapter.addCalendarYears(this.pickerMoment,1),this.pickerMomentChange.emit(this.pickerMoment)}dateSelected(n){this.dateFilterForViews(n)&&(this.dateClicked.emit(n),this.selectedChange.emit(n))}goToDateInView(n,r){this.handlePickerMomentChange(n),(!this.yearOnly&&!this.multiyearOnly||this.multiyearOnly&&r!==Ee.MONTH&&r!==Ee.YEAR||this.yearOnly&&r!==Ee.MONTH)&&(this.currentView=r)}handlePickerMomentChange(n){this.pickerMoment=this.dateTimeAdapter.clampDate(n,this.minDate,this.maxDate),this.pickerMomentChange.emit(this.pickerMoment)}userSelected(){this.userSelection.emit()}prevButtonEnabled(){return!this.minDate||!this.isSameView(this.pickerMoment,this.minDate)}nextButtonEnabled(){return!this.maxDate||!this.isSameView(this.pickerMoment,this.maxDate)}focusActiveCell(){this.ngZone.runOutsideAngular(()=>{this.ngZone.onStable.asObservable().pipe(_e(1)).subscribe(()=>{this.elmRef.nativeElement.querySelector(".owl-dt-calendar-cell-active").focus()})})}selectYearInMultiYearView(n){this.yearSelected.emit(n)}selectMonthInYearView(n){this.monthSelected.emit(n)}isSameView(n,r){return this._currentView===Ee.MONTH?!!(n&&r&&this.dateTimeAdapter.getYear(n)===this.dateTimeAdapter.getYear(r)&&this.dateTimeAdapter.getMonth(n)===this.dateTimeAdapter.getMonth(r)):this._currentView===Ee.YEAR?!!(n&&r&&this.dateTimeAdapter.getYear(n)===this.dateTimeAdapter.getYear(r)):!1}getValidDate(n){return this.dateTimeAdapter.isDateInstance(n)&&this.dateTimeAdapter.isValid(n)?n:null}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(Io),v(L),v(Ue),v(dt,8),v(ii,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-calendar"]],hostVars:2,hostBindings:function(r,s){r&2&&Le("owl-dt-calendar",s.owlDTCalendarClass)},inputs:{minDate:"minDate",maxDate:"maxDate",pickerMoment:"pickerMoment",selected:"selected",selecteds:"selecteds",dateFilter:"dateFilter",firstDayOfWeek:"firstDayOfWeek",selectMode:"selectMode",startView:"startView",yearOnly:"yearOnly",showCalendarWeeks:"showCalendarWeeks",multiyearOnly:"multiyearOnly",hideOtherMonths:"hideOtherMonths"},outputs:{pickerMomentChange:"pickerMomentChange",dateClicked:"dateClicked",selectedChange:"selectedChange",userSelection:"userSelection",yearSelected:"yearSelected",monthSelected:"monthSelected"},exportAs:["owlDateTimeCalendar"],decls:21,vars:16,consts:[[1,"owl-dt-calendar-control"],["type","button","tabindex","0",1,"owl-dt-control","owl-dt-control-button","owl-dt-control-arrow-button",3,"click","disabled"],["tabindex","-1",1,"owl-dt-control-content","owl-dt-control-button-content"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","x","0px","y","0px","viewBox","0 0 250.738 250.738",0,"xml","space","preserve","width","100%","height","100%",2,"enable-background","new 0 0 250.738 250.738"],["d","M96.633,125.369l95.053-94.533c7.101-7.055,7.101-18.492,0-25.546 c-7.1-7.054-18.613-7.054-25.714,0L58.989,111.689c-3.784,3.759-5.487,8.759-5.238,13.68c-0.249,4.922,1.454,9.921,5.238,13.681 l106.983,106.398c7.101,7.055,18.613,7.055,25.714,0c7.101-7.054,7.101-18.491,0-25.544L96.633,125.369z",2,"fill-rule","evenodd","clip-rule","evenodd"],[1,"owl-dt-calendar-control-content"],["type","button","tabindex","0",1,"owl-dt-control","owl-dt-control-button","owl-dt-control-period-button",3,"click"],[1,"owl-dt-control-button-arrow"],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","width","50%","height","50%","viewBox","0 0 292.362 292.362",0,"xml","space","preserve",2,"enable-background","new 0 0 292.362 292.362"],["d",`M286.935,69.377c-3.614-3.617-7.898-5.424-12.848-5.424H18.274c-4.952,0-9.233,1.807-12.85,5.424 + C1.807,72.998,0,77.279,0,82.228c0,4.948,1.807,9.229,5.424,12.847l127.907,127.907c3.621,3.617,7.902,5.428,12.85,5.428 + s9.233-1.811,12.847-5.428L286.935,95.074c3.613-3.617,5.427-7.898,5.427-12.847C292.362,77.279,290.548,72.998,286.935,69.377z`],["version","1.1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 250.738 250.738",0,"xml","space","preserve",2,"enable-background","new 0 0 250.738 250.738"],["d",`M191.75,111.689L84.766,5.291c-7.1-7.055-18.613-7.055-25.713,0 + c-7.101,7.054-7.101,18.49,0,25.544l95.053,94.534l-95.053,94.533c-7.101,7.054-7.101,18.491,0,25.545 + c7.1,7.054,18.613,7.054,25.713,0L191.75,139.05c3.784-3.759,5.487-8.759,5.238-13.681 + C197.237,120.447,195.534,115.448,191.75,111.689z`,2,"fill-rule","evenodd","clip-rule","evenodd"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"owl-dt-calendar-main",3,"ngSwitch"],[3,"pickerMoment","firstDayOfWeek","selected","selecteds","selectMode","minDate","showCalendarWeeks","maxDate","dateFilter","hideOtherMonths","pickerMomentChange","selectedChange","userSelection",4,"ngSwitchCase"],[3,"pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","keyboardEnter","pickerMomentChange","monthSelected","change",4,"ngSwitchCase"],[3,"pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","keyboardEnter","pickerMomentChange","yearSelected","change",4,"ngSwitchCase"],[3,"pickerMomentChange","selectedChange","userSelection","pickerMoment","firstDayOfWeek","selected","selecteds","selectMode","minDate","showCalendarWeeks","maxDate","dateFilter","hideOtherMonths"],[3,"keyboardEnter","pickerMomentChange","monthSelected","change","pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter"],[3,"keyboardEnter","pickerMomentChange","yearSelected","change","pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter"]],template:function(r,s){r&1&&(g(0,"div",0)(1,"button",1),ee("click",function(){return s.previousClicked()}),g(2,"span",2),zn(),g(3,"svg",3),de(4,"path",4),_()()(),Ir(),g(5,"div",5)(6,"button",6),ee("click",function(){return s.toggleViews()}),g(7,"span",2),S(8),g(9,"span",7),zn(),g(10,"svg",8)(11,"g"),de(12,"path",9),_()()()()()(),Ir(),g(13,"button",1),ee("click",function(){return s.nextClicked()}),g(14,"span",2),zn(),g(15,"svg",10),de(16,"path",11),_()()()(),Ir(),g(17,"div",12),Ze(18,EO,1,10,"owl-date-time-month-view",13)(19,IO,1,7,"owl-date-time-year-view",14)(20,SO,1,7,"owl-date-time-multi-year-view",15),_()),r&2&&(T(),Gn("visibility",s.showControlArrows?"visible":"hidden"),N("disabled",!s.prevButtonEnabled()),Ce("aria-label",s.prevButtonLabel),T(5),Ce("aria-label",s.periodButtonLabel),T(2),sn(" ",s.periodButtonText," "),T(),Gn("transform","rotate("+(s.isMonthView?0:180)+"deg)"),T(4),Gn("visibility",s.showControlArrows?"visible":"hidden"),N("disabled",!s.nextButtonEnabled()),Ce("aria-label",s.nextButtonLabel),T(4),N("ngSwitch",s.currentView),T(),N("ngSwitchCase",s.DateView.MONTH),T(),N("ngSwitchCase",s.DateView.YEAR),T(),N("ngSwitchCase",s.DateView.MULTI_YEARS))},dependencies:[Lh,S_,AD,$O,zO,GO],changeDetection:0});let t=e;return t})(),YO=(()=>{let e=class e{get displayValue(){if(this.hasFocus)return this.valueInput.nativeElement.value;let n=this.boxValue||this.value;return n===null||isNaN(n)?"":n<10?"0"+n.toString():n.toString()}get owlDTTimerBoxClass(){return!0}constructor(){this.showDivider=!1,this.step=1,this.valueChange=new A,this.inputChange=new A,this.inputStream=new F,this.inputStreamSub=Q.EMPTY,this.hasFocus=!1,this.onValueInputMouseWheelBind=this.onValueInputMouseWheel.bind(this)}ngOnInit(){this.inputStreamSub=this.inputStream.pipe(ar(750)).subscribe(n=>{if(n){let r=ti(n,0);this.updateValueViaInput(r)}}),this.bindValueInputMouseWheel()}ngOnDestroy(){this.unbindValueInputMouseWheel(),this.inputStreamSub.unsubscribe()}upBtnClicked(){this.updateValue(this.value+this.step)}downBtnClicked(){this.updateValue(this.value-this.step)}handleInputChange(n){this.inputStream.next(n)}focusIn(){this.hasFocus=!0}focusOut(n){if(this.hasFocus=!1,n){let r=ti(n,0);this.updateValueViaInput(r)}}updateValue(n){this.valueChange.emit(n)}updateValueViaInput(n){n>this.max||n0?this.upBtnDisabled||this.upBtnClicked():r<0&&(this.downBtnDisabled||this.downBtnClicked()),n.preventDefault?n.preventDefault():n.returnValue=!1}bindValueInputMouseWheel(){this.valueInput.nativeElement.addEventListener("onwheel"in document?"wheel":"mousewheel",this.onValueInputMouseWheelBind)}unbindValueInputMouseWheel(){this.valueInput.nativeElement.removeEventListener("onwheel"in document?"wheel":"mousewheel",this.onValueInputMouseWheelBind)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-timer-box"]],viewQuery:function(r,s){if(r&1&&rn(MO,7),r&2){let o;Bt(o=Ut())&&(s.valueInput=o.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Le("owl-dt-timer-box",s.owlDTTimerBoxClass)},inputs:{showDivider:"showDivider",upBtnAriaLabel:"upBtnAriaLabel",upBtnDisabled:"upBtnDisabled",downBtnAriaLabel:"downBtnAriaLabel",downBtnDisabled:"downBtnDisabled",boxValue:"boxValue",value:"value",min:"min",max:"max",step:"step",inputLabel:"inputLabel"},outputs:{valueChange:"valueChange",inputChange:"inputChange"},exportAs:["owlDateTimeTimerBox"],decls:14,vars:7,consts:[["valueInput",""],["class","owl-dt-timer-divider","aria-hidden","true",4,"ngIf"],["type","button","tabindex","-1",1,"owl-dt-control-button","owl-dt-control-arrow-button",3,"click","disabled"],["tabindex","-1",1,"owl-dt-control-button-content"],["xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","version","1.1","x","0px","y","0px","viewBox","0 0 451.847 451.846",0,"xml","space","preserve","width","100%","height","100%",2,"enable-background","new 0 0 451.847 451.846"],["d",`M248.292,106.406l194.281,194.29c12.365,12.359,12.365,32.391,0,44.744c-12.354,12.354-32.391,12.354-44.744,0 + L225.923,173.529L54.018,345.44c-12.36,12.354-32.395,12.354-44.748,0c-12.359-12.354-12.359-32.391,0-44.75L203.554,106.4 + c6.18-6.174,14.271-9.259,22.369-9.259C234.018,97.141,242.115,100.232,248.292,106.406z`],[1,"owl-dt-timer-content"],["maxlength","2",1,"owl-dt-timer-input",3,"keydown.arrowup","keydown.arrowdown","input","focusin","focusout","value"],[1,"owl-hidden-accessible"],["d",`M225.923,354.706c-8.098,0-16.195-3.092-22.369-9.263L9.27,151.157c-12.359-12.359-12.359-32.397,0-44.751 + c12.354-12.354,32.388-12.354,44.748,0l171.905,171.915l171.906-171.909c12.359-12.354,32.391-12.354,44.744,0 + c12.365,12.354,12.365,32.392,0,44.751L248.292,345.449C242.115,351.621,234.018,354.706,225.923,354.706z`],["aria-hidden","true",1,"owl-dt-timer-divider"]],template:function(r,s){if(r&1){let o=st();Ze(0,TO,1,0,"div",1),g(1,"button",2),ee("click",function(){return ie(o),re(s.upBtnClicked())}),g(2,"span",3),zn(),g(3,"svg",4),de(4,"path",5),_()()(),Ir(),g(5,"label",6)(6,"input",7,0),ee("keydown.arrowup",function(){return ie(o),re(!s.upBtnDisabled&&s.upBtnClicked())})("keydown.arrowdown",function(){return ie(o),re(!s.downBtnDisabled&&s.downBtnClicked())})("input",function(){ie(o);let l=Si(7);return re(s.handleInputChange(l.value))})("focusin",function(){return ie(o),re(s.focusIn())})("focusout",function(){ie(o);let l=Si(7);return re(s.focusOut(l.value))}),_(),g(8,"span",8),S(9),_()(),g(10,"button",2),ee("click",function(){return ie(o),re(s.downBtnClicked())}),g(11,"span",3),zn(),g(12,"svg",4),de(13,"path",9),_()()()}r&2&&(N("ngIf",s.showDivider),T(),N("disabled",s.upBtnDisabled),Ce("aria-label",s.upBtnAriaLabel),T(5),N("value",s.displayValue),T(3),xe(s.inputLabel),T(),N("disabled",s.downBtnDisabled),Ce("aria-label",s.downBtnAriaLabel))},dependencies:[Ns],changeDetection:0});let t=e;return t})(),qD=(()=>{let e=class e{get pickerMoment(){return this._pickerMoment}set pickerMoment(n){n=this.dateTimeAdapter.deserialize(n),this._pickerMoment=this.getValidDate(n)||this.dateTimeAdapter.now()}get minDateTime(){return this._minDateTime}set minDateTime(n){n=this.dateTimeAdapter.deserialize(n),this._minDateTime=this.getValidDate(n)}get maxDateTime(){return this._maxDateTime}set maxDateTime(n){n=this.dateTimeAdapter.deserialize(n),this._maxDateTime=this.getValidDate(n)}get hourValue(){return this.dateTimeAdapter.getHours(this.pickerMoment)}get hourBoxValue(){let n=this.hourValue;return this.hour12Timer&&(n===0?(n=12,this.isPM=!1):n>0&&n<12?this.isPM=!1:n===12?this.isPM=!0:n>12&&n<24&&(n=n-12,this.isPM=!0)),n}get minuteValue(){return this.dateTimeAdapter.getMinutes(this.pickerMoment)}get secondValue(){return this.dateTimeAdapter.getSeconds(this.pickerMoment)}get upHourButtonLabel(){return this.pickerIntl.upHourLabel}get downHourButtonLabel(){return this.pickerIntl.downHourLabel}get upMinuteButtonLabel(){return this.pickerIntl.upMinuteLabel}get downMinuteButtonLabel(){return this.pickerIntl.downMinuteLabel}get upSecondButtonLabel(){return this.pickerIntl.upSecondLabel}get downSecondButtonLabel(){return this.pickerIntl.downSecondLabel}get hour12ButtonLabel(){return this.isPM?this.pickerIntl.hour12PMLabel:this.pickerIntl.hour12AMLabel}get owlDTTimerClass(){return!0}get owlDTTimeTabIndex(){return-1}constructor(n,r,s,o,a){this.ngZone=n,this.elmRef=r,this.pickerIntl=s,this.cdRef=o,this.dateTimeAdapter=a,this.isPM=!1,this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.selectedChange=new A}ngOnInit(){}focus(){this.ngZone.runOutsideAngular(()=>{this.ngZone.onStable.asObservable().pipe(_e(1)).subscribe(()=>{this.elmRef.nativeElement.focus()})})}setHourValueViaInput(n){this.hour12Timer&&this.isPM&&n>=1&&n<=11?n=n+12:this.hour12Timer&&!this.isPM&&n===12&&(n=0),this.setHourValue(n)}setHourValue(n){let r=this.dateTimeAdapter.setHours(this.pickerMoment,n);this.selectedChange.emit(r),this.cdRef.markForCheck()}setMinuteValue(n){let r=this.dateTimeAdapter.setMinutes(this.pickerMoment,n);this.selectedChange.emit(r),this.cdRef.markForCheck()}setSecondValue(n){let r=this.dateTimeAdapter.setSeconds(this.pickerMoment,n);this.selectedChange.emit(r),this.cdRef.markForCheck()}setMeridiem(n){this.isPM=!this.isPM;let r=this.hourValue;this.isPM?r=r+12:r=r-12,r>=0&&r<=23&&this.setHourValue(r),this.cdRef.markForCheck(),n.preventDefault()}upHourEnabled(){return!this.maxDateTime||this.compareHours(this.stepHour,this.maxDateTime)<1}downHourEnabled(){return!this.minDateTime||this.compareHours(-this.stepHour,this.minDateTime)>-1}upMinuteEnabled(){return!this.maxDateTime||this.compareMinutes(this.stepMinute,this.maxDateTime)<1}downMinuteEnabled(){return!this.minDateTime||this.compareMinutes(-this.stepMinute,this.minDateTime)>-1}upSecondEnabled(){return!this.maxDateTime||this.compareSeconds(this.stepSecond,this.maxDateTime)<1}downSecondEnabled(){return!this.minDateTime||this.compareSeconds(-this.stepSecond,this.minDateTime)>-1}compareHours(n,r){let s=this.dateTimeAdapter.getHours(this.pickerMoment)+n,o=this.dateTimeAdapter.setHours(this.pickerMoment,s);return this.dateTimeAdapter.compare(o,r)}compareMinutes(n,r){let s=this.dateTimeAdapter.getMinutes(this.pickerMoment)+n,o=this.dateTimeAdapter.setMinutes(this.pickerMoment,s);return this.dateTimeAdapter.compare(o,r)}compareSeconds(n,r){let s=this.dateTimeAdapter.getSeconds(this.pickerMoment)+n,o=this.dateTimeAdapter.setSeconds(this.pickerMoment,s);return this.dateTimeAdapter.compare(o,r)}getValidDate(n){return this.dateTimeAdapter.isDateInstance(n)&&this.dateTimeAdapter.isValid(n)?n:null}};e.\u0275fac=function(r){return new(r||e)(v(L),v(ue),v(Io),v(Ue),v(dt,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-timer"]],hostVars:3,hostBindings:function(r,s){r&2&&(Ce("tabindex",s.owlDTTimeTabIndex),Le("owl-dt-timer",s.owlDTTimerClass))},inputs:{pickerMoment:"pickerMoment",minDateTime:"minDateTime",maxDateTime:"maxDateTime",showSecondsTimer:"showSecondsTimer",hour12Timer:"hour12Timer",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond"},outputs:{selectedChange:"selectedChange"},exportAs:["owlDateTimeTimer"],decls:4,vars:22,consts:[[3,"inputChange","valueChange","upBtnAriaLabel","downBtnAriaLabel","upBtnDisabled","downBtnDisabled","boxValue","value","min","max","step","inputLabel"],[3,"inputChange","valueChange","showDivider","upBtnAriaLabel","downBtnAriaLabel","upBtnDisabled","downBtnDisabled","value","min","max","step","inputLabel"],[3,"showDivider","upBtnAriaLabel","downBtnAriaLabel","upBtnDisabled","downBtnDisabled","value","min","max","step","inputLabel","inputChange","valueChange",4,"ngIf"],["class","owl-dt-timer-hour12",4,"ngIf"],[1,"owl-dt-timer-hour12"],["type","button","tabindex","0",1,"owl-dt-control-button","owl-dt-timer-hour12-box",3,"click"],["tabindex","-1",1,"owl-dt-control-button-content"]],template:function(r,s){r&1&&(g(0,"owl-date-time-timer-box",0),ee("inputChange",function(a){return s.setHourValueViaInput(a)})("valueChange",function(a){return s.setHourValue(a)}),_(),g(1,"owl-date-time-timer-box",1),ee("inputChange",function(a){return s.setMinuteValue(a)})("valueChange",function(a){return s.setMinuteValue(a)}),_(),Ze(2,AO,1,10,"owl-date-time-timer-box",2)(3,xO,4,1,"div",3)),r&2&&(N("upBtnAriaLabel",s.upHourButtonLabel)("downBtnAriaLabel",s.downHourButtonLabel)("upBtnDisabled",!s.upHourEnabled())("downBtnDisabled",!s.downHourEnabled())("boxValue",s.hourBoxValue)("value",s.hourValue)("min",0)("max",23)("step",s.stepHour)("inputLabel","Hour"),T(),N("showDivider",!0)("upBtnAriaLabel",s.upMinuteButtonLabel)("downBtnAriaLabel",s.downMinuteButtonLabel)("upBtnDisabled",!s.upMinuteEnabled())("downBtnDisabled",!s.downMinuteEnabled())("value",s.minuteValue)("min",0)("max",59)("step",s.stepMinute)("inputLabel","Minute"),T(),N("ngIf",s.showSecondsTimer),T(),N("ngIf",s.hour12Timer))},dependencies:[Ns,YO],changeDetection:0});let t=e;return t})(),ZD={transformPicker:_c("transformPicker",[bo("void",Ke({opacity:0,transform:"scale(1, 0)"})),bo("enter",Ke({opacity:1,transform:"scale(1, 1)"})),Wr("void => enter",UD([zD("@fadeInPicker",wc(),{optional:!0}),Ui("400ms cubic-bezier(0.25, 0.8, 0.25, 1)")])),Wr("enter => void",Ui("100ms linear",Ke({opacity:0})))]),fadeInPicker:_c("fadeInPicker",[bo("enter",Ke({opacity:1})),bo("void",Ke({opacity:0})),Wr("void => enter",Ui("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Cc=(()=>{let e=class e{get hidePickerStream(){return this.hidePicker$.asObservable()}get confirmSelectedStream(){return this.confirmSelected$.asObservable()}get beforePickerOpenedStream(){return this.beforePickerOpened$.asObservable()}get pickerOpenedStream(){return this.pickerOpened$.asObservable()}get pickerMoment(){return this._clamPickerMoment}set pickerMoment(n){n&&(this._clamPickerMoment=this.dateTimeAdapter.clampDate(n,this.picker.minDateTime,this.picker.maxDateTime)),this.cdRef.markForCheck()}get pickerType(){return this.picker.pickerType}get cancelLabel(){return this.pickerIntl.cancelBtnLabel}get setLabel(){return this.pickerIntl.setBtnLabel}get fromLabel(){return this.pickerIntl.rangeFromLabel}get toLabel(){return this.pickerIntl.rangeToLabel}get fromFormattedValue(){let n=this.picker.selecteds[0];return n?this.dateTimeAdapter.format(n,this.picker.formatString):""}get toFormattedValue(){let n=this.picker.selecteds[1];return n?this.dateTimeAdapter.format(n,this.picker.formatString):""}get showControlButtons(){return this.picker.pickerMode==="dialog"||this.picker.pickerType!=="calendar"&&this.picker.pickerMode!=="inline"}get containerElm(){return this.elmRef.nativeElement}get owlDTContainerClass(){return!0}get owlDTPopupContainerClass(){return this.picker.pickerMode==="popup"}get owlDTDialogContainerClass(){return this.picker.pickerMode==="dialog"}get owlDTInlineContainerClass(){return this.picker.pickerMode==="inline"}get owlDTContainerDisabledClass(){return this.picker.disabled}get owlDTContainerId(){return this.picker.id}get owlDTContainerAnimation(){return this.picker.pickerMode==="inline"?"":"enter"}constructor(n,r,s,o){this.cdRef=n,this.elmRef=r,this.pickerIntl=s,this.dateTimeAdapter=o,this.activeSelectedIndex=0,this.hidePicker$=new F,this.confirmSelected$=new F,this.beforePickerOpened$=new F,this.pickerOpened$=new F}ngOnInit(){this.picker.selectMode==="range"&&(this.picker.selecteds[0]&&(this.retainStartTime=this.dateTimeAdapter.clone(this.picker.selecteds[0])),this.picker.selecteds[1]&&(this.retainEndTime=this.dateTimeAdapter.clone(this.picker.selecteds[1])))}ngAfterContentInit(){this.initPicker()}ngAfterViewInit(){this.focusPicker()}handleContainerAnimationStart(n){n.toState==="enter"&&this.beforePickerOpened$.next(null)}handleContainerAnimationDone(n){n.toState==="enter"&&this.pickerOpened$.next(null)}dateSelected(n){let r;if(this.picker.isInSingleMode){r=this.dateSelectedInSingleMode(n),r?(this.pickerMoment=r,this.picker.select(r)):this.pickerType==="calendar"&&this.hidePicker$.next(null);return}this.picker.isInRangeMode&&(r=this.dateSelectedInRangeMode(n),r&&(this.pickerMoment=r[this.activeSelectedIndex],this.picker.select(r)))}timeSelected(n){if(this.pickerMoment=this.dateTimeAdapter.clone(n),!!this.picker.dateTimeChecker(this.pickerMoment)){if(this.picker.isInSingleMode){this.picker.select(this.pickerMoment);return}if(this.picker.isInRangeMode){let r=[...this.picker.selecteds];this.activeSelectedIndex===0&&r[1]&&this.dateTimeAdapter.compare(this.pickerMoment,r[1])===1||this.activeSelectedIndex===1&&r[0]&&this.dateTimeAdapter.compare(this.pickerMoment,r[0])===-1?(r[0]=this.pickerMoment,r[1]=this.pickerMoment):r[this.activeSelectedIndex]=this.pickerMoment,r[0]&&(this.retainStartTime=this.dateTimeAdapter.clone(r[0])),r[1]&&(this.retainEndTime=this.dateTimeAdapter.clone(r[1])),this.picker.select(r)}}}onCancelClicked(n){this.hidePicker$.next(null),n.preventDefault()}onSetClicked(n){if(!this.picker.dateTimeChecker(this.pickerMoment)){this.hidePicker$.next(null),n.preventDefault();return}this.confirmSelected$.next(n),n.preventDefault()}handleClickOnInfoGroup(n,r){this.setActiveSelectedIndex(r),n.preventDefault(),n.stopPropagation()}handleKeydownOnInfoGroup(n,r,s){switch(n.keyCode){case 40:case 39:case 38:case 37:r.focus(),this.setActiveSelectedIndex(s===0?1:0),n.preventDefault(),n.stopPropagation();break;case 32:this.setActiveSelectedIndex(s),n.preventDefault(),n.stopPropagation();break;default:return}}setActiveSelectedIndex(n){if(this.picker.selectMode==="range"&&this.activeSelectedIndex!==n){this.activeSelectedIndex=n;let r=this.picker.selecteds[this.activeSelectedIndex];this.picker.selecteds&&r&&(this.pickerMoment=this.dateTimeAdapter.clone(r))}}initPicker(){this.pickerMoment=this.picker.startAt||this.dateTimeAdapter.now(),this.activeSelectedIndex=this.picker.selectMode==="rangeTo"?1:0}dateSelectedInSingleMode(n){return this.dateTimeAdapter.isSameDay(n,this.picker.selected)?null:this.updateAndCheckCalendarDate(n)}dateSelectedInRangeMode(n){let r=this.picker.selecteds[0],s=this.picker.selecteds[1],o=this.updateAndCheckCalendarDate(n);return o?(this.picker.selectMode==="range"?this.picker.selecteds&&this.picker.selecteds.length&&!s&&r&&this.dateTimeAdapter.differenceInCalendarDays(o,r)>=0?(this.picker.endAt&&!this.retainEndTime?s=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(o),this.dateTimeAdapter.getMonth(o),this.dateTimeAdapter.getDate(o),this.dateTimeAdapter.getHours(this.picker.endAt),this.dateTimeAdapter.getMinutes(this.picker.endAt),this.dateTimeAdapter.getSeconds(this.picker.endAt)):this.retainEndTime?s=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(o),this.dateTimeAdapter.getMonth(o),this.dateTimeAdapter.getDate(o),this.dateTimeAdapter.getHours(this.retainEndTime),this.dateTimeAdapter.getMinutes(this.retainEndTime),this.dateTimeAdapter.getSeconds(this.retainEndTime)):s=o,this.activeSelectedIndex=1):(this.picker.startAt&&!this.retainStartTime?r=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(o),this.dateTimeAdapter.getMonth(o),this.dateTimeAdapter.getDate(o),this.dateTimeAdapter.getHours(this.picker.startAt),this.dateTimeAdapter.getMinutes(this.picker.startAt),this.dateTimeAdapter.getSeconds(this.picker.startAt)):this.retainStartTime?r=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(o),this.dateTimeAdapter.getMonth(o),this.dateTimeAdapter.getDate(o),this.dateTimeAdapter.getHours(this.retainStartTime),this.dateTimeAdapter.getMinutes(this.retainStartTime),this.dateTimeAdapter.getSeconds(this.retainStartTime)):r=o,s=null,this.activeSelectedIndex=0):this.picker.selectMode==="rangeFrom"?(r=o,s&&this.dateTimeAdapter.compare(r,s)>0&&(s=null)):this.picker.selectMode==="rangeTo"&&(s=o,r&&this.dateTimeAdapter.compare(r,s)>0&&(r=null)),[r,s]):null}updateAndCheckCalendarDate(n){let r;return this.picker.pickerType==="both"?(r=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(n),this.dateTimeAdapter.getMonth(n),this.dateTimeAdapter.getDate(n),this.dateTimeAdapter.getHours(this.pickerMoment),this.dateTimeAdapter.getMinutes(this.pickerMoment),this.dateTimeAdapter.getSeconds(this.pickerMoment)),r=this.dateTimeAdapter.clampDate(r,this.picker.minDateTime,this.picker.maxDateTime)):r=this.dateTimeAdapter.clone(n),this.picker.dateTimeChecker(r)?r:null}focusPicker(){this.picker.pickerMode!=="inline"&&(this.calendar?this.calendar.focusActiveCell():this.timer&&this.timer.focus())}};e.\u0275fac=function(r){return new(r||e)(v(Ue),v(ue),v(Io),v(dt,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-container"]],viewQuery:function(r,s){if(r&1&&(rn(YD,5),rn(qD,5)),r&2){let o;Bt(o=Ut())&&(s.calendar=o.first),Bt(o=Ut())&&(s.timer=o.first)}},hostVars:12,hostBindings:function(r,s){r&1&&fl("@transformPicker.start",function(a){return s.handleContainerAnimationStart(a)})("@transformPicker.done",function(a){return s.handleContainerAnimationDone(a)}),r&2&&(hl("@transformPicker",s.owlDTContainerAnimation),Ce("id",s.owlDTContainerId),Le("owl-dt-container",s.owlDTContainerClass)("owl-dt-popup-container",s.owlDTPopupContainerClass)("owl-dt-dialog-container",s.owlDTDialogContainerClass)("owl-dt-inline-container",s.owlDTInlineContainerClass)("owl-dt-container-disabled",s.owlDTContainerDisabledClass))},exportAs:["owlDateTimeContainer"],decls:5,vars:6,consts:[["from",""],["to",""],[1,"owl-dt-container-inner",3,"cdkTrapFocus"],["class","owl-dt-container-row",3,"firstDayOfWeek","pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","startView","yearOnly","showCalendarWeeks","multiyearOnly","hideOtherMonths","pickerMomentChange","yearSelected","monthSelected","dateClicked","selectedChange",4,"ngIf"],["class","owl-dt-container-row",3,"pickerMoment","minDateTime","maxDateTime","showSecondsTimer","hour12Timer","stepHour","stepMinute","stepSecond","selectedChange",4,"ngIf"],["role","radiogroup","class","owl-dt-container-info owl-dt-container-row",4,"ngIf"],["class","owl-dt-container-buttons owl-dt-container-row",4,"ngIf"],[1,"owl-dt-container-row",3,"pickerMomentChange","yearSelected","monthSelected","dateClicked","selectedChange","firstDayOfWeek","pickerMoment","selected","selecteds","selectMode","minDate","maxDate","dateFilter","startView","yearOnly","showCalendarWeeks","multiyearOnly","hideOtherMonths"],[1,"owl-dt-container-row",3,"selectedChange","pickerMoment","minDateTime","maxDateTime","showSecondsTimer","hour12Timer","stepHour","stepMinute","stepSecond"],["role","radiogroup",1,"owl-dt-container-info","owl-dt-container-row"],["role","radio",1,"owl-dt-control","owl-dt-container-range","owl-dt-container-from",3,"click","keydown","tabindex","ngClass"],["tabindex","-1",1,"owl-dt-control-content","owl-dt-container-range-content"],[1,"owl-dt-container-info-label"],[1,"owl-dt-container-info-value"],["role","radio",1,"owl-dt-control","owl-dt-container-range","owl-dt-container-to",3,"click","keydown","tabindex","ngClass"],[1,"owl-dt-container-buttons","owl-dt-container-row"],["type","button","tabindex","0",1,"owl-dt-control","owl-dt-control-button","owl-dt-container-control-button",3,"click"],["tabindex","-1",1,"owl-dt-control-content","owl-dt-control-button-content"]],template:function(r,s){r&1&&(g(0,"div",2),Ze(1,kO,1,13,"owl-date-time-calendar",3)(2,OO,1,8,"owl-date-time-timer",4)(3,RO,15,14,"div",5)(4,NO,7,2,"div",6),_()),r&2&&(N("cdkTrapFocus",s.picker.pickerMode!=="inline")("@fadeInPicker",s.picker.pickerMode==="inline"?"":"enter"),T(),N("ngIf",s.pickerType==="both"||s.pickerType==="calendar"),T(),N("ngIf",s.pickerType==="both"||s.pickerType==="timer"),T(),N("ngIf",s.picker.isInRangeMode),T(),N("ngIf",s.showControlButtons))},dependencies:[Cl,Ns,MD,qD,YD],data:{animation:[ZD.transformPicker,ZD.fadeInPicker]},changeDetection:0});let t=e;return t})(),qO=0,bp=class{constructor(){this.ariaDescribedBy=null,this.autoFocus=!0,this.hasBackdrop=!0,this.data=null,this.disableClose=!1,this.role="dialog",this.paneClass="",this.event=null,this.backdropClass="",this.closeOnNavigation=!0,this.width="",this.height="",this.maxWidth="85vw",this.scrollStrategy=new Hr,this.id=`owl-dialog-${qO++}`}},Ec=class{constructor(e,i,n,r){this.overlayRef=e,this.container=i,this.id=n,this._beforeClose$=new F,this._beforeOpen$=new F,this._afterOpen$=new F,this._afterClosed$=new F,this.locationChanged=Q.EMPTY,this.disableClose=!0,this.disableClose=this.container.config.disableClose,this.container.animationStateChanged.pipe(pe(s=>s.phaseName==="start"&&s.toState==="enter"),_e(1)).subscribe(()=>{this._beforeOpen$.next(null),this._beforeOpen$.complete()}),this.container.animationStateChanged.pipe(pe(s=>s.phaseName==="done"&&s.toState==="enter"),_e(1)).subscribe(()=>{this._afterOpen$.next(null),this._afterOpen$.complete()}),this.container.animationStateChanged.pipe(pe(s=>s.phaseName==="done"&&s.toState==="exit"),_e(1)).subscribe(()=>{this.overlayRef.dispose(),this.locationChanged.unsubscribe(),this._afterClosed$.next(this.result),this._afterClosed$.complete(),this.componentInstance=null}),this.overlayRef.keydownEvents().pipe(pe(s=>s.keyCode===27&&!this.disableClose)).subscribe(()=>this.close()),r&&(this.locationChanged=r.subscribe(()=>{this.container.config.closeOnNavigation&&this.close()}))}close(e){this.result=e,this.container.animationStateChanged.pipe(pe(i=>i.phaseName==="start"),_e(1)).subscribe(()=>{this._beforeClose$.next(e),this._beforeClose$.complete(),this.overlayRef.detachBackdrop()}),this.container.startExitAnimation()}backdropClick(){return this.overlayRef.backdropClick()}keydownEvents(){return this.overlayRef.keydownEvents()}updatePosition(e){let i=this.getPositionStrategy();return e&&(e.left||e.right)?e.left?i.left(e.left):i.right(e.right):i.centerHorizontally(),e&&(e.top||e.bottom)?e.top?i.top(e.top):i.bottom(e.bottom):i.centerVertically(),this.overlayRef.updatePosition(),this}updateSize(e="auto",i="auto"){return this.getPositionStrategy().width(e).height(i),this.overlayRef.updatePosition(),this}isAnimating(){return this.container.isAnimating}beforeOpen(){return this._beforeOpen$.asObservable()}afterOpen(){return this._afterOpen$.asObservable()}beforeClose(){return this._beforeClose$.asObservable()}afterClosed(){return this._afterClosed$.asObservable()}getPositionStrategy(){return this.overlayRef.getConfig().positionStrategy}},ZO={opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})"},KO={opacity:0,transform:"translateX({{ x }}) translateY({{ y }}) scale({{scale}})",transformOrigin:"{{ ox }} {{ oy }}"},KD=(()=>{let e=class e extends $r{get config(){return this._config}get owlDialogContainerClass(){return!0}get owlDialogContainerTabIndex(){return-1}get owlDialogContainerId(){return this._config.id}get owlDialogContainerRole(){return this._config.role||null}get owlDialogContainerAriaLabelledby(){return this.ariaLabelledBy}get owlDialogContainerAriaDescribedby(){return this._config.ariaDescribedBy||null}get owlDialogContainerAnimation(){return{value:this.state,params:this.params}}constructor(n,r,s,o){super(),this.changeDetector=n,this.elementRef=r,this.focusTrapFactory=s,this.document=o,this.portalOutlet=null,this.ariaLabelledBy=null,this.animationStateChanged=new A,this.isAnimating=!1,this.state="enter",this.params={x:"0px",y:"0px",ox:"50%",oy:"50%",scale:0},this.elementFocusedBeforeDialogWasOpened=null}ngOnInit(){}attachComponentPortal(n){if(this.portalOutlet.hasAttached())throw Error("Attempting to attach dialog content after content is already attached");return this.savePreviouslyFocusedElement(),this.portalOutlet.attachComponentPortal(n)}attachTemplatePortal(n){throw new Error("Method not implemented.")}setConfig(n){this._config=n,n.event&&this.calculateZoomOrigin(event)}onAnimationStart(n){this.isAnimating=!0,this.animationStateChanged.emit(n)}onAnimationDone(n){n.toState==="enter"?this.trapFocus():n.toState==="exit"&&this.restoreFocus(),this.animationStateChanged.emit(n),this.isAnimating=!1}startExitAnimation(){this.state="exit",this.changeDetector.markForCheck()}calculateZoomOrigin(n){if(!n)return;let r=n.clientX,s=n.clientY,o=window.innerWidth/2,a=window.innerHeight/2,l=r-o,c=s-a,u=r/window.innerWidth,d=s/window.innerHeight;this.params.x=`${l}px`,this.params.y=`${c}px`,this.params.ox=`${u*100}%`,this.params.oy=`${d*100}%`,this.params.scale=0}savePreviouslyFocusedElement(){this.document&&(this.elementFocusedBeforeDialogWasOpened=this.document.activeElement,Promise.resolve().then(()=>this.elementRef.nativeElement.focus()))}trapFocus(){this.focusTrap||(this.focusTrap=this.focusTrapFactory.create(this.elementRef.nativeElement)),this._config.autoFocus&&this.focusTrap.focusInitialElementWhenReady()}restoreFocus(){let n=this.elementFocusedBeforeDialogWasOpened;n&&typeof n.focus=="function"&&n.focus(),this.focusTrap&&this.focusTrap.destroy()}};e.\u0275fac=function(r){return new(r||e)(v(Ue),v(ue),v(sp),v(X,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-dialog-container"]],viewQuery:function(r,s){if(r&1&&rn(gc,7),r&2){let o;Bt(o=Ut())&&(s.portalOutlet=o.first)}},hostVars:8,hostBindings:function(r,s){r&1&&fl("@slideModal.start",function(a){return s.onAnimationStart(a)})("@slideModal.done",function(a){return s.onAnimationDone(a)}),r&2&&(hl("@slideModal",s.owlDialogContainerAnimation),Ce("tabindex",s.owlDialogContainerTabIndex)("id",s.owlDialogContainerId)("role",s.owlDialogContainerRole)("aria-labelledby",s.owlDialogContainerAriaLabelledby)("aria-describedby",s.owlDialogContainerAriaDescribedby),Le("owl-dialog-container",s.owlDialogContainerClass))},features:[we],decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(r,s){r&1&&Ze(0,PO,0,0,"ng-template",0)},dependencies:[gc],encapsulation:2,data:{animation:[_c("slideModal",[Wr("void => enter",[Ke(KO),Ui("300ms cubic-bezier(0.35, 0, 0.25, 1)",Ke("*")),Ui("150ms",HD([Ke({transform:"scale(1)",offset:0}),Ke({transform:"scale(1.05)",offset:.3}),Ke({transform:"scale(.95)",offset:.8}),Ke({transform:"scale(1)",offset:1})])),wc()],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%",scale:1}}),Wr("enter => exit",[wc(),Ui(200,Ke(ZO))],{params:{x:"0px",y:"0px",ox:"50%",oy:"50%"}})])]}});let t=e;return t})();function QO(t,...e){if(t==null)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(i!=null)for(let n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t}var XO=new M("OwlDialogData"),rb=new M("owl-dialog-scroll-strategy");function JO(t){return()=>t.scrollStrategies.block()}var eR={provide:rb,deps:[Tn],useFactory:JO},tR=new M("owl-dialog-default-options"),sb=(()=>{let e=class e{get openDialogs(){return this.parentDialog?this.parentDialog.openDialogs:this._openDialogsAtThisLevel}get beforeOpen(){return this.parentDialog?this.parentDialog.beforeOpen:this._beforeOpenAtThisLevel}get afterOpen(){return this.parentDialog?this.parentDialog.afterOpen:this._afterOpenAtThisLevel}get _afterAllClosed(){let n=this.parentDialog;return n?n._afterAllClosed:this._afterAllClosedAtThisLevel}constructor(n,r,s,o,a,l,c){this.overlay=n,this.injector=r,this.location=s,this.defaultOptions=a,this.parentDialog=l,this.overlayContainer=c,this.ariaHiddenElements=new Map,this._openDialogsAtThisLevel=[],this._beforeOpenAtThisLevel=new F,this._afterOpenAtThisLevel=new F,this._afterAllClosedAtThisLevel=new F,this.afterAllClosed=sr(()=>this._openDialogsAtThisLevel.length?this._afterAllClosed:this._afterAllClosed.pipe(Ot(void 0))),this.scrollStrategy=o,!l&&s&&s.subscribe(()=>this.closeAll())}open(n,r){if(r=nR(r,this.defaultOptions),r.id&&this.getDialogById(r.id))throw Error(`Dialog with id "${r.id}" exists already. The dialog id must be unique.`);let s=this.createOverlay(r),o=this.attachDialogContainer(s,r),a=this.attachDialogContent(n,o,s,r);return this.openDialogs.length||this.hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(()=>this.removeOpenDialog(a)),this.beforeOpen.next(a),this.afterOpen.next(a),a}closeAll(){let n=this.openDialogs.length;for(;n--;)this.openDialogs[n].close()}getDialogById(n){return this.openDialogs.find(r=>r.id===n)}attachDialogContent(n,r,s,o){let a=new Ec(s,r,o.id,this.location);if(o.hasBackdrop&&s.backdropClick().subscribe(()=>{a.disableClose||a.close()}),!(n instanceof ft)){let l=this.createInjector(o,a,r),c=r.attachComponentPortal(new ji(n,void 0,l));a.componentInstance=c.instance}return a.updateSize(o.width,o.height).updatePosition(o.position),a}createInjector(n,r,s){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=new WeakMap;return a.set(Ec,r),a.set(KD,s),a.set(XO,n.data),new mc(o||this.injector,a)}createOverlay(n){let r=this.getOverlayConfig(n);return this.overlay.create(r)}attachDialogContainer(n,r){let s=new ji(KD,r.viewContainerRef),o=n.attach(s);return o.instance.setConfig(r),o.instance}getOverlayConfig(n){let r=new zr({positionStrategy:this.overlay.position().global(),scrollStrategy:n.scrollStrategy||this.scrollStrategy(),panelClass:n.paneClass,hasBackdrop:n.hasBackdrop,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight});return n.backdropClass&&(r.backdropClass=n.backdropClass),r}removeOpenDialog(n){let r=this._openDialogsAtThisLevel.indexOf(n);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||(this.ariaHiddenElements.forEach((s,o)=>{s?o.setAttribute("aria-hidden",s):o.removeAttribute("aria-hidden")}),this.ariaHiddenElements.clear(),this._afterAllClosed.next()))}hideNonDialogContentFromAssistiveTechnology(){let n=this.overlayContainer.getContainerElement();if(n.parentElement){let r=n.parentElement.children;for(let s=r.length-1;s>-1;s--){let o=r[s];o!==n&&o.nodeName!=="SCRIPT"&&o.nodeName!=="STYLE"&&!o.hasAttribute("aria-live")&&(this.ariaHiddenElements.set(o,o.getAttribute("aria-hidden")),o.setAttribute("aria-hidden","true"))}}}};e.\u0275fac=function(r){return new(r||e)(m(Tn),m(Te),m(bn,8),m(rb),m(tR,8),m(e,12),m(vc))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function nR(t,e){return QO(new bp,t,e)}var ob=new M("owl-dtpicker-scroll-strategy");function iR(t){return()=>t.scrollStrategies.block()}var rR={provide:ob,deps:[Tn],useFactory:iR},ab=(()=>{let e=class e extends ib{get startAt(){if(this._startAt)return this._startAt;if(this._dtInput){if(this._dtInput.selectMode==="single")return this._dtInput.value||null;if(this._dtInput.selectMode==="range"||this._dtInput.selectMode==="rangeFrom")return this._dtInput.values[0]||null;if(this._dtInput.selectMode==="rangeTo")return this._dtInput.values[1]||null}else return null}set startAt(n){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(n))}get endAt(){if(this._endAt)return this._endAt;if(this._dtInput){if(this._dtInput.selectMode==="single")return this._dtInput.value||null;if(this._dtInput.selectMode==="range"||this._dtInput.selectMode==="rangeFrom")return this._dtInput.values[1]||null}else return null}set endAt(n){this._endAt=this.getValidDate(this.dateTimeAdapter.deserialize(n))}get pickerType(){return this._pickerType}set pickerType(n){n!==this._pickerType&&(this._pickerType=n,this._dtInput&&this._dtInput.formatNativeInputValue())}get pickerMode(){return this._pickerMode}set pickerMode(n){n==="popup"?this._pickerMode=n:this._pickerMode="dialog"}get disabled(){return this._disabled===void 0&&this._dtInput?this._dtInput.disabled:!!this._disabled}set disabled(n){n=Fi(n),n!==this._disabled&&(this._disabled=n,this.disabledChange.next(n))}get opened(){return this._opened}set opened(n){n?this.open():this.close()}get dtInput(){return this._dtInput}get selected(){return this._selected}set selected(n){this._selected=n,this.changeDetector.markForCheck()}get selecteds(){return this._selecteds}set selecteds(n){this._selecteds=n,this.changeDetector.markForCheck()}get minDateTime(){return this._dtInput&&this._dtInput.min}get maxDateTime(){return this._dtInput&&this._dtInput.max}get dateTimeFilter(){return this._dtInput&&this._dtInput.dateTimeFilter}get selectMode(){return this._dtInput.selectMode}get isInSingleMode(){return this._dtInput.isInSingleMode}get isInRangeMode(){return this._dtInput.isInRangeMode}constructor(n,r,s,o,a,l,c,u,d){super(l,u),this.overlay=n,this.viewContainerRef=r,this.dialogService=s,this.ngZone=o,this.changeDetector=a,this.dateTimeAdapter=l,this.dateTimeFormats=u,this.document=d,this.backdropClass=[],this.panelClass=[],this._pickerType="both",this._pickerMode="popup",this._opened=!1,this.afterPickerClosed=new A,this.beforePickerOpen=new A,this.afterPickerOpen=new A,this.yearSelected=new A,this.monthSelected=new A,this.dateSelected=new A,this.confirmSelectedChange=new A,this.disabledChange=new A,this.dtInputSub=Q.EMPTY,this.hidePickerStreamSub=Q.EMPTY,this.confirmSelectedStreamSub=Q.EMPTY,this.pickerOpenedStreamSub=Q.EMPTY,this.pickerBeforeOpenedStreamSub=Q.EMPTY,this.focusedElementBeforeOpen=null,this._selecteds=[],this.defaultScrollStrategy=c}ngOnInit(){}ngOnDestroy(){this.close(),this.dtInputSub.unsubscribe(),this.disabledChange.complete(),this.popupRef&&this.popupRef.dispose()}registerInput(n){if(this._dtInput)throw Error("A Owl DateTimePicker can only be associated with a single input.");this._dtInput=n,this.dtInputSub=this._dtInput.valueChange.subscribe(r=>{Array.isArray(r)?this.selecteds=r:this.selected=r})}open(){if(!(this._opened||this.disabled)){if(!this._dtInput)throw Error("Attempted to open an DateTimePicker with no associated input.");this.document&&(this.focusedElementBeforeOpen=this.document.activeElement),this.isInSingleMode?this.selected=this._dtInput.value:this.isInRangeMode&&(this.selecteds=this._dtInput.values),this.selected&&this.pickerType!=="calendar"&&this._startAt&&(this.selected=this.dateTimeAdapter.createDate(this.dateTimeAdapter.getYear(this.selected),this.dateTimeAdapter.getMonth(this.selected),this.dateTimeAdapter.getDate(this.selected),this.dateTimeAdapter.getHours(this._startAt),this.dateTimeAdapter.getMinutes(this._startAt),this.dateTimeAdapter.getSeconds(this._startAt))),this.pickerMode==="dialog"?this.openAsDialog():this.openAsPopup(),this.pickerContainer.picker=this,this.hidePickerStreamSub=this.pickerContainer.hidePickerStream.subscribe(()=>{this.close()}),this.confirmSelectedStreamSub=this.pickerContainer.confirmSelectedStream.subscribe(n=>{this.confirmSelect(n)})}}select(n){Array.isArray(n)?this.selecteds=[...n]:this.selected=n,this.pickerMode!=="dialog"&&this.pickerType==="calendar"&&(this.selectMode==="single"&&this.selected||this.selectMode==="rangeFrom"&&this.selecteds[0]||this.selectMode==="rangeTo"&&this.selecteds[1]||this.selectMode==="range"&&this.selecteds[0]&&this.selecteds[1])&&this.confirmSelect()}selectYear(n){this.yearSelected.emit(n)}selectMonth(n){this.monthSelected.emit(n)}selectDate(n){this.dateSelected.emit(n)}close(){if(!this._opened)return;this.popupRef&&this.popupRef.hasAttached()&&this.popupRef.detach(),this.pickerContainerPortal&&this.pickerContainerPortal.isAttached&&this.pickerContainerPortal.detach(),this.hidePickerStreamSub&&(this.hidePickerStreamSub.unsubscribe(),this.hidePickerStreamSub=null),this.confirmSelectedStreamSub&&(this.confirmSelectedStreamSub.unsubscribe(),this.confirmSelectedStreamSub=null),this.pickerBeforeOpenedStreamSub&&(this.pickerBeforeOpenedStreamSub.unsubscribe(),this.pickerBeforeOpenedStreamSub=null),this.pickerOpenedStreamSub&&(this.pickerOpenedStreamSub.unsubscribe(),this.pickerOpenedStreamSub=null),this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null);let n=()=>{if(this._opened){this._opened=!1;let r=this.selected||this.selecteds;this.afterPickerClosed.emit(r),this.focusedElementBeforeOpen=null}};this.focusedElementBeforeOpen&&typeof this.focusedElementBeforeOpen.focus=="function"?(this.focusedElementBeforeOpen.focus(),setTimeout(n)):n()}confirmSelect(n){if(this.isInSingleMode){let r=this.selected||this.startAt||this.dateTimeAdapter.now();this.confirmSelectedChange.emit(r)}else this.isInRangeMode&&this.confirmSelectedChange.emit(this.selecteds);this.close()}openAsDialog(){this.dialogRef=this.dialogService.open(Cc,{autoFocus:!1,backdropClass:["cdk-overlay-dark-backdrop",...Wt(this.backdropClass)],paneClass:["owl-dt-dialog",...Wt(this.panelClass)],viewContainerRef:this.viewContainerRef,scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy()}),this.pickerContainer=this.dialogRef.componentInstance,this.dialogRef.beforeOpen().subscribe(()=>{this.beforePickerOpen.emit(null)}),this.dialogRef.afterOpen().subscribe(()=>{this.afterPickerOpen.emit(null),this._opened=!0}),this.dialogRef.afterClosed().subscribe(()=>this.close())}openAsPopup(){if(this.pickerContainerPortal||(this.pickerContainerPortal=new ji(Cc,this.viewContainerRef)),this.popupRef||this.createPopup(),!this.popupRef.hasAttached()){let n=this.popupRef.attach(this.pickerContainerPortal);this.pickerContainer=n.instance,this.ngZone.onStable.asObservable().pipe(_e(1)).subscribe(()=>{this.popupRef.updatePosition()}),this.pickerBeforeOpenedStreamSub=this.pickerContainer.beforePickerOpenedStream.pipe(_e(1)).subscribe(()=>{this.beforePickerOpen.emit(null)}),this.pickerOpenedStreamSub=this.pickerContainer.pickerOpenedStream.pipe(_e(1)).subscribe(()=>{this.afterPickerOpen.emit(null),this._opened=!0})}}createPopup(){let n=new zr({positionStrategy:this.createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:["cdk-overlay-transparent-backdrop",...Wt(this.backdropClass)],scrollStrategy:this.scrollStrategy||this.defaultScrollStrategy(),panelClass:["owl-dt-popup",...Wt(this.panelClass)]});this.popupRef=this.overlay.create(n),or(this.popupRef.backdropClick(),this.popupRef.detachments(),this.popupRef.keydownEvents().pipe(pe(r=>r.keyCode===27||this._dtInput&&r.altKey&&r.keyCode===38))).subscribe(()=>this.close())}createPopupPositionStrategy(){return this.overlay.position().flexibleConnectedTo(this._dtInput.elementRef).withTransformOriginOn(".owl-dt-container").withFlexibleDimensions(!1).withPush(!1).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-176},{originX:"start",originY:"top",overlayX:"start",overlayY:"top",offsetY:-352}])}};e.\u0275fac=function(r){return new(r||e)(v(Tn),v(rt),v(sb),v(L),v(Ue),v(dt,8),v(ob),v(ii,8),v(X,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time"]],inputs:{backdropClass:"backdropClass",panelClass:"panelClass",startAt:"startAt",endAt:"endAt",pickerType:"pickerType",pickerMode:"pickerMode",disabled:"disabled",opened:"opened",scrollStrategy:"scrollStrategy"},outputs:{afterPickerClosed:"afterPickerClosed",beforePickerOpen:"beforePickerOpen",afterPickerOpen:"afterPickerOpen",yearSelected:"yearSelected",monthSelected:"monthSelected",dateSelected:"dateSelected"},exportAs:["owlDateTime"],features:[we],decls:0,vars:0,template:function(r,s){},changeDetection:0});let t=e;return t})(),sR={provide:cn,useExisting:Pe(()=>Tc),multi:!0},oR={provide:Sn,useExisting:Pe(()=>Tc),multi:!0},Tc=(()=>{let e=class e{get required(){return this._required}set required(n){this._required=n===""||n,this.validatorOnChange()}set owlDateTime(n){this.registerDateTimePicker(n)}set owlDateTimeFilter(n){this._dateTimeFilter=n,this.validatorOnChange()}get dateTimeFilter(){return this._dateTimeFilter}get disabled(){return!!this._disabled}set disabled(n){let r=Fi(n),s=this.elmRef.nativeElement;this._disabled!==r&&(this._disabled=r,this.disabledChange.emit(r)),r&&s.blur&&s.blur()}get min(){return this._min}set min(n){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(n)),this.validatorOnChange()}get max(){return this._max}set max(n){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(n)),this.validatorOnChange()}get selectMode(){return this._selectMode}set selectMode(n){if(n!=="single"&&n!=="range"&&n!=="rangeFrom"&&n!=="rangeTo")throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=n}get value(){return this._value}set value(n){n=this.dateTimeAdapter.deserialize(n),this.lastValueValid=!n||this.dateTimeAdapter.isValid(n),n=this.getValidDate(n);let r=this._value;this._value=n,this.formatNativeInputValue(),this.dateTimeAdapter.isEqual(r,n)||this.valueChange.emit(n)}get values(){return this._values}set values(n){n&&n.length>0?(this._values=n.map(r=>(r=this.dateTimeAdapter.deserialize(r),this.getValidDate(r))),this.lastValueValid=(!this._values[0]||this.dateTimeAdapter.isValid(this._values[0]))&&(!this._values[1]||this.dateTimeAdapter.isValid(this._values[1]))):(this._values=[],this.lastValueValid=!0),this.formatNativeInputValue(),this.valueChange.emit(this._values)}get elementRef(){return this.elmRef}get isInSingleMode(){return this._selectMode==="single"}get isInRangeMode(){return this._selectMode==="range"||this._selectMode==="rangeFrom"||this._selectMode==="rangeTo"}get owlDateTimeInputAriaHaspopup(){return!0}get owlDateTimeInputAriaOwns(){return this.dtPicker.opened&&this.dtPicker.id||null}get minIso8601(){return this.min?this.dateTimeAdapter.toIso8601(this.min):null}get maxIso8601(){return this.max?this.dateTimeAdapter.toIso8601(this.max):null}get owlDateTimeInputDisabled(){return this.disabled}constructor(n,r,s,o){if(this.elmRef=n,this.renderer=r,this.dateTimeAdapter=s,this.dateTimeFormats=o,this._selectMode="single",this.rangeSeparator="-",this._values=[],this.dateTimeChange=new A,this.dateTimeInput=new A,this.dtPickerSub=Q.EMPTY,this.localeSub=Q.EMPTY,this.lastValueValid=!0,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.validatorOnChange=()=>{},this.parseValidator=()=>this.lastValueValid?null:{owlDateTimeParse:{text:this.elmRef.nativeElement.value}},this.minValidator=a=>{if(this.isInSingleMode){let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value));return!this.min||!l||this.dateTimeAdapter.compare(this.min,l)<=0?null:{owlDateTimeMin:{min:this.min,actual:l}}}else if(this.isInRangeMode&&a.value){let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[0])),c=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[1]));return!this.min||!l||!c||this.dateTimeAdapter.compare(this.min,l)<=0?null:{owlDateTimeMin:{min:this.min,actual:[l,c]}}}},this.maxValidator=a=>{if(this.isInSingleMode){let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value));return!this.max||!l||this.dateTimeAdapter.compare(this.max,l)>=0?null:{owlDateTimeMax:{max:this.max,actual:l}}}else if(this.isInRangeMode&&a.value){let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[0])),c=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[1]));return!this.max||!l||!c||this.dateTimeAdapter.compare(this.max,c)>=0?null:{owlDateTimeMax:{max:this.max,actual:[l,c]}}}},this.filterValidator=a=>{let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value));return!this._dateTimeFilter||!l||this._dateTimeFilter(l)?null:{owlDateTimeFilter:!0}},this.rangeValidator=a=>{if(this.isInSingleMode||!a.value)return null;let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[0])),c=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[1]));return!l||!c||this.dateTimeAdapter.compare(l,c)<=0?null:{owlDateTimeRange:!0}},this.requiredRangeValidator=a=>{if(this.isInSingleMode||!a.value||!this.required)return null;let l=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[0])),c=this.getValidDate(this.dateTimeAdapter.deserialize(a.value[1]));return!l||!c?{owlRequiredDateTimeRange:[l,c]}:null},this.validator=ln.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator,this.rangeValidator,this.requiredRangeValidator]),this.valueChange=new A,this.disabledChange=new A,!this.dateTimeAdapter)throw Error("OwlDateTimePicker: No provider found for DateTimePicker. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");if(!this.dateTimeFormats)throw Error("OwlDateTimePicker: No provider found for OWL_DATE_TIME_FORMATS. You must import one of the following modules at your application root: OwlNativeDateTimeModule, OwlMomentDateTimeModule, or provide a custom implementation.");this.localeSub=this.dateTimeAdapter.localeChanges.subscribe(()=>{this.value=this.value})}ngOnInit(){if(!this.dtPicker)throw Error("OwlDateTimePicker: the picker input doesn't have any associated owl-date-time component")}ngAfterContentInit(){this.dtPickerSub=this.dtPicker.confirmSelectedChange.subscribe(n=>{Array.isArray(n)?this.values=n:this.value=n,this.onModelChange(n),this.onModelTouched(),this.dateTimeChange.emit({source:this,value:n,input:this.elmRef.nativeElement}),this.dateTimeInput.emit({source:this,value:n,input:this.elmRef.nativeElement})})}ngOnDestroy(){this.dtPickerSub.unsubscribe(),this.localeSub.unsubscribe(),this.valueChange.complete(),this.disabledChange.complete()}writeValue(n){this.isInSingleMode?this.value=n:this.values=n}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}setDisabledState(n){this.disabled=n}validate(n){return this.validator?this.validator(n):null}registerOnValidatorChange(n){this.validatorOnChange=n}handleKeydownOnHost(n){n.altKey&&n.keyCode===40&&(this.dtPicker.open(),n.preventDefault())}handleBlurOnHost(n){this.onModelTouched()}handleInputOnHost(n){let r=n.target.value;this._selectMode==="single"?this.changeInputInSingleMode(r):this._selectMode==="range"?this.changeInputInRangeMode(r):this.changeInputInRangeFromToMode(r)}handleChangeOnHost(n){let r;this.isInSingleMode?r=this.value:this.isInRangeMode&&(r=this.values),this.dateTimeChange.emit({source:this,value:r,input:this.elmRef.nativeElement})}formatNativeInputValue(){if(this.isInSingleMode)this.renderer.setProperty(this.elmRef.nativeElement,"value",this._value?this.dateTimeAdapter.format(this._value,this.dtPicker.formatString):"");else if(this.isInRangeMode)if(this._values&&this.values.length>0){let n=this._values[0],r=this._values[1],s=n?this.dateTimeAdapter.format(n,this.dtPicker.formatString):"",o=r?this.dateTimeAdapter.format(r,this.dtPicker.formatString):"";!s&&!o?this.renderer.setProperty(this.elmRef.nativeElement,"value",null):this._selectMode==="range"?this.renderer.setProperty(this.elmRef.nativeElement,"value",s+" "+this.rangeSeparator+" "+o):this._selectMode==="rangeFrom"?this.renderer.setProperty(this.elmRef.nativeElement,"value",s):this._selectMode==="rangeTo"&&this.renderer.setProperty(this.elmRef.nativeElement,"value",o)}else this.renderer.setProperty(this.elmRef.nativeElement,"value","")}registerDateTimePicker(n){n&&(this.dtPicker=n,this.dtPicker.registerInput(this))}getValidDate(n){return this.dateTimeAdapter.isDateInstance(n)&&this.dateTimeAdapter.isValid(n)?n:null}convertTimeStringToDateTimeString(n,r){if(n){let s=r||this.dateTimeAdapter.now();return this.dateTimeAdapter.format(s,this.dateTimeFormats.datePickerInput)+" "+n}else return null}changeInputInSingleMode(n){let r=n;this.dtPicker.pickerType==="timer"&&(r=this.convertTimeStringToDateTimeString(r,this.value));let s=this.dateTimeAdapter.parse(r,this.dateTimeFormats.parseInput);this.lastValueValid=!s||this.dateTimeAdapter.isValid(s),s=this.getValidDate(s),(!this.isSameValue(s,this._value)||s===null)&&(this._value=s,this.valueChange.emit(s),this.onModelChange(s),this.dateTimeInput.emit({source:this,value:s,input:this.elmRef.nativeElement}))}changeInputInRangeFromToMode(n){let r=this._selectMode==="rangeFrom"?this._values[0]:this._values[1];this.dtPicker.pickerType==="timer"&&(n=this.convertTimeStringToDateTimeString(n,r));let s=this.dateTimeAdapter.parse(n,this.dateTimeFormats.parseInput);this.lastValueValid=!s||this.dateTimeAdapter.isValid(s),s=this.getValidDate(s),!(this._selectMode==="rangeFrom"&&this.isSameValue(s,this._values[0])&&s||this._selectMode==="rangeTo"&&this.isSameValue(s,this._values[1])&&s)&&(this._values=this._selectMode==="rangeFrom"?[s,this._values[1]]:[this._values[0],s],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))}changeInputInRangeMode(n){let r=n.split(this.rangeSeparator),s=r[0],o=r[1];this.dtPicker.pickerType==="timer"&&(s=this.convertTimeStringToDateTimeString(s,this.values[0]),o=this.convertTimeStringToDateTimeString(o,this.values[1]));let a=this.dateTimeAdapter.parse(s,this.dateTimeFormats.parseInput),l=this.dateTimeAdapter.parse(o,this.dateTimeFormats.parseInput);this.lastValueValid=(!a||this.dateTimeAdapter.isValid(a))&&(!l||this.dateTimeAdapter.isValid(l)),a=this.getValidDate(a),l=this.getValidDate(l),(!this.isSameValue(a,this._values[0])||!this.isSameValue(l,this._values[1])||a===null&&l===null)&&(this._values=[a,l],this.valueChange.emit(this._values),this.onModelChange(this._values),this.dateTimeInput.emit({source:this,value:this._values,input:this.elmRef.nativeElement}))}isSameValue(n,r){return n&&r?this.dateTimeAdapter.compare(n,r)===0:n===r}};e.\u0275fac=function(r){return new(r||e)(v(ue),v(Mt),v(dt,8),v(ii,8))},e.\u0275dir=G({type:e,selectors:[["input","owlDateTime",""]],hostVars:5,hostBindings:function(r,s){r&1&&ee("keydown",function(a){return s.handleKeydownOnHost(a)})("blur",function(a){return s.handleBlurOnHost(a)})("input",function(a){return s.handleInputOnHost(a)})("change",function(a){return s.handleChangeOnHost(a)}),r&2&&(bh("disabled",s.owlDateTimeInputDisabled),Ce("aria-haspopup",s.owlDateTimeInputAriaHaspopup)("aria-owns",s.owlDateTimeInputAriaOwns)("min",s.minIso8601)("max",s.maxIso8601))},inputs:{required:"required",owlDateTime:"owlDateTime",owlDateTimeFilter:"owlDateTimeFilter",_disabled:"_disabled",min:"min",max:"max",selectMode:"selectMode",rangeSeparator:"rangeSeparator",value:"value",values:"values"},outputs:{dateTimeChange:"dateTimeChange",dateTimeInput:"dateTimeInput"},exportAs:["owlDateTimeInput"],features:[Ve([sR,oR])]});let t=e;return t})();var aR={provide:cn,useExisting:Pe(()=>lR),multi:!0},lR=(()=>{let e=class e extends ib{get pickerType(){return this._pickerType}set pickerType(n){n!==this._pickerType&&(this._pickerType=n)}get disabled(){return!!this._disabled}set disabled(n){this._disabled=Fi(n)}get selectMode(){return this._selectMode}set selectMode(n){if(n!=="single"&&n!=="range"&&n!=="rangeFrom"&&n!=="rangeTo")throw Error("OwlDateTime Error: invalid selectMode value!");this._selectMode=n}get startAt(){return this._startAt?this._startAt:this.selectMode==="single"?this.value||null:this.selectMode==="range"||this.selectMode==="rangeFrom"?this.values[0]||null:this.selectMode==="rangeTo"&&this.values[1]||null}set startAt(n){this._startAt=this.getValidDate(this.dateTimeAdapter.deserialize(n))}get endAt(){return this._endAt?this._endAt:this.selectMode==="single"?this.value||null:(this.selectMode==="range"||this.selectMode==="rangeFrom")&&this.values[1]||null}set endAt(n){this._endAt=this.getValidDate(this.dateTimeAdapter.deserialize(n))}get dateTimeFilter(){return this._dateTimeFilter}set dateTimeFilter(n){this._dateTimeFilter=n}get minDateTime(){return this._min||null}set minDateTime(n){this._min=this.getValidDate(this.dateTimeAdapter.deserialize(n)),this.changeDetector.markForCheck()}get maxDateTime(){return this._max||null}set maxDateTime(n){this._max=this.getValidDate(this.dateTimeAdapter.deserialize(n)),this.changeDetector.markForCheck()}get value(){return this._value}set value(n){n=this.dateTimeAdapter.deserialize(n),n=this.getValidDate(n),this._value=n,this.selected=n}get values(){return this._values}set values(n){n&&n.length>0?(n=n.map(r=>(r=this.dateTimeAdapter.deserialize(r),r=this.getValidDate(r),r?this.dateTimeAdapter.clone(r):null)),this._values=[...n],this.selecteds=[...n]):(this._values=[],this.selecteds=[])}get selected(){return this._selected}set selected(n){this._selected=n,this.changeDetector.markForCheck()}get selecteds(){return this._selecteds}set selecteds(n){this._selecteds=n,this.changeDetector.markForCheck()}get opened(){return!0}get pickerMode(){return"inline"}get isInSingleMode(){return this._selectMode==="single"}get isInRangeMode(){return this._selectMode==="range"||this._selectMode==="rangeFrom"||this._selectMode==="rangeTo"}get owlDTInlineClass(){return!0}constructor(n,r,s){super(r,s),this.changeDetector=n,this.dateTimeAdapter=r,this.dateTimeFormats=s,this._pickerType="both",this._disabled=!1,this._selectMode="single",this._values=[],this.yearSelected=new A,this.monthSelected=new A,this.dateSelected=new A,this._selecteds=[],this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.container.picker=this}writeValue(n){this.isInSingleMode?(this.value=n,this.container.pickerMoment=n):(this.values=n,this.container.pickerMoment=this._values[this.container.activeSelectedIndex])}registerOnChange(n){this.onModelChange=n}registerOnTouched(n){this.onModelTouched=n}setDisabledState(n){this.disabled=n}select(n){this.disabled||(Array.isArray(n)?this.values=[...n]:this.value=n,this.onModelChange(n),this.onModelTouched())}selectYear(n){this.yearSelected.emit(n)}selectMonth(n){this.monthSelected.emit(n)}selectDate(n){this.dateSelected.emit(n)}};e.\u0275fac=function(r){return new(r||e)(v(Ue),v(dt,8),v(ii,8))},e.\u0275cmp=Fe({type:e,selectors:[["owl-date-time-inline"]],viewQuery:function(r,s){if(r&1&&rn(Cc,7),r&2){let o;Bt(o=Ut())&&(s.container=o.first)}},hostVars:2,hostBindings:function(r,s){r&2&&Le("owl-dt-inline",s.owlDTInlineClass)},inputs:{pickerType:"pickerType",disabled:"disabled",selectMode:"selectMode",startAt:"startAt",endAt:"endAt",dateTimeFilter:[0,"owlDateTimeFilter","dateTimeFilter"],minDateTime:[0,"min","minDateTime"],maxDateTime:[0,"max","maxDateTime"],value:"value",values:"values"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",dateSelected:"dateSelected"},features:[Ve([aR]),we],decls:1,vars:0,template:function(r,s){r&1&&de(0,"owl-date-time-container")},dependencies:[Cc],changeDetection:0});let t=e;return t})(),cR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[eR,sb],imports:[Ps,op,vp,yc]});let t=e;return t})(),lb=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[Io,rR,...UO],imports:[Ps,vp,cR,op]});let t=e;return t})();function bc(t,e){let i=Array(t);for(let n=0;n11)throw Error(`Invalid month index "${e}". Month index has to be between 0 and 11.`);if(i<1)throw Error(`Invalid date "${i}". Date has to be greater than 0.`);if(n<0||n>23)throw Error(`Invalid hours "${n}". Hours has to be between 0 and 23.`);if(r<0||r>59)throw Error(`Invalid minutes "${r}". Minutes has to between 0 and 59.`);if(s<0||s>59)throw Error(`Invalid seconds "${s}". Seconds has to be between 0 and 59.`);let o=cb(t,e,i,n,r,s);if(o.getMonth()!==e)throw Error(`Invalid date "${i}" for month with index "${e}".`);return o}function dR(t){return cb(t.getFullYear(),t.getMonth()+1,0).getDate()}function cb(t,e,i,n=0,r=0,s=0){let o=new Date(t,e,i,n,r,s);return t>=0&&t<100&&o.setFullYear(o.getFullYear()-1900),o}var Co=typeof Intl<"u",hR={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},fR={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},pR=bc(31,t=>String(t+1)),mR=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:[+\-]\d{2}:\d{2}))?)?$/,gR=(()=>{let e=class e extends dt{constructor(n,r){super(),this.owlDateTimeLocale=n,super.setLocale(n),this.useUtcForDisplay=!r.TRIDENT,this._clampDate=r.TRIDENT||r.EDGE}getYear(n){return n.getFullYear()}getMonth(n){return n.getMonth()}getDay(n){return n.getDay()}getDate(n){return n.getDate()}getHours(n){return n.getHours()}getMinutes(n){return n.getMinutes()}getSeconds(n){return n.getSeconds()}getTime(n){return n.getTime()}getNumDaysInMonth(n){return dR(n)}differenceInCalendarDays(n,r){if(this.isValid(n)&&this.isValid(r)){let s=this.createDate(this.getYear(n),this.getMonth(n),this.getDate(n)),o=this.createDate(this.getYear(r),this.getMonth(r),this.getDate(r)),a=this.getTime(s)-s.getTimezoneOffset()*this.milliseondsInMinute,l=this.getTime(o)-o.getTimezoneOffset()*this.milliseondsInMinute;return Math.round((a-l)/this.millisecondsInDay)}else return null}getYearName(n){if(Co){let r=new Intl.DateTimeFormat(this.getLocale(),{year:"numeric",timeZone:"utc"});return this.stripDirectionalityCharacters(this._format(r,n))}return String(this.getYear(n))}getMonthNames(n){if(Co){let r=new Intl.DateTimeFormat(this.getLocale(),{month:n,timeZone:"utc"});return bc(12,s=>this.stripDirectionalityCharacters(this._format(r,new Date(2017,s,1))))}return hR[n]}getDayOfWeekNames(n){if(Co){let r=new Intl.DateTimeFormat(this.getLocale(),{weekday:n,timeZone:"utc"});return bc(7,s=>this.stripDirectionalityCharacters(this._format(r,new Date(2017,0,s+1))))}return fR[n]}getDateNames(){if(Co){let n=new Intl.DateTimeFormat(this.getLocale(),{day:"numeric",timeZone:"utc"});return bc(31,r=>this.stripDirectionalityCharacters(this._format(n,new Date(2017,0,r+1))))}return pR}toIso8601(n){return n.toISOString()}isEqual(n,r){return this.isValid(n)&&this.isValid(r)?n.getTime()===r.getTime():!1}isSameDay(n,r){if(this.isValid(n)&&this.isValid(r)){let s=this.clone(n),o=this.clone(r);return s.setHours(0,0,0,0),o.setHours(0,0,0,0),s.getTime()===o.getTime()}else return!1}isValid(n){return n&&!isNaN(n.getTime())}invalid(){return new Date(NaN)}isDateInstance(n){return n instanceof Date}addCalendarYears(n,r){return this.addCalendarMonths(n,r*12)}addCalendarMonths(n,r){let s=this.clone(n);r=Number(r);let o=s.getMonth()+r,a=new Date(0);a.setFullYear(s.getFullYear(),o,1),a.setHours(0,0,0,0);let l=this.getNumDaysInMonth(a);return s.setMonth(o,Math.min(l,s.getDate())),s}addCalendarDays(n,r){let s=this.clone(n);return r=Number(r),s.setDate(s.getDate()+r),s}setHours(n,r){let s=this.clone(n);return s.setHours(r),s}setMinutes(n,r){let s=this.clone(n);return s.setMinutes(r),s}setSeconds(n,r){let s=this.clone(n);return s.setSeconds(r),s}createDate(n,r,s,o=0,a=0,l=0){return uR(n,r,s,o,a,l)}clone(n){return this.createDate(this.getYear(n),this.getMonth(n),this.getDate(n),this.getHours(n),this.getMinutes(n),this.getSeconds(n))}now(){return new Date}format(n,r){if(!this.isValid(n))throw Error("JSNativeDate: Cannot format invalid date.");if(Co){this._clampDate&&(n.getFullYear()<1||n.getFullYear()>9999)&&(n=this.clone(n),n.setFullYear(Math.max(1,Math.min(9999,n.getFullYear())))),r=se(E({},r),{timeZone:"utc"});let s=new Intl.DateTimeFormat(this.getLocale(),r);return this.stripDirectionalityCharacters(this._format(s,n))}return this.stripDirectionalityCharacters(n.toDateString())}parse(n,r){return typeof n=="number"?new Date(n):n?new Date(Date.parse(n)):null}deserialize(n){if(typeof n=="string"){if(!n)return null;if(mR.test(n)){let r=new Date(n);if(this.isValid(r))return r}}return super.deserialize(n)}stripDirectionalityCharacters(n){return n.replace(/[\u200e\u200f]/g,"")}_format(n,r){let s=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return n.format(s)}};e.\u0275fac=function(r){return new(r||e)(m(FO,8),m($e))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),yR={parseInput:null,fullPickerInput:{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"},datePickerInput:{year:"numeric",month:"numeric",day:"numeric"},timePickerInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}},vR=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[{provide:dt,useClass:gR}],imports:[mD]});let t=e;return t})(),ub=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:[{provide:ii,useValue:yR}],imports:[vR]});let t=e;return t})();var DR=(t,e)=>e.id,bR=(t,e)=>e.difficulty;function CR(t,e){if(t&1&&(g(0,"option",8),S(1),_()),t&2){let i=e.$implicit;N("value",i.title),T(),xe(i.title)}}function ER(t,e){if(t&1&&(g(0,"label"),de(1,"input",23),S(2),_()),t&2){let i=e.$implicit;T(),N("value",i.difficulty),T(),pl(" ",i.difficulty," (",i.level,") ")}}function IR(t,e){if(t&1){let i=st();g(0,"fieldset",2)(1,"legend"),S(2,"Difficulty"),_(),ul(3,ER,3,3,"label",null,bR),_(),g(5,"div",9)(6,"label",10),S(7," Score "),de(8,"input",11),_(),g(9,"label",10),S(10," Lamp "),g(11,"select",12)(12,"option"),S(13,"FAILED"),_(),g(14,"option"),S(15,"ASSIST"),_(),g(16,"option"),S(17,"CLEAR"),_(),g(18,"option"),S(19,"FULL COMBO"),_(),g(20,"option"),S(21,"GREAT FULL COMBO"),_(),g(22,"option"),S(23,"PERFECT FULL COMBO"),_(),g(24,"option"),S(25,"MARVELOUS FULL COMBO"),_(),g(26,"option"),S(27,"LIFE4"),_()()(),g(28,"label",10),S(29," Time "),de(30,"input",13)(31,"owl-date-time",null,0),_(),g(33,"label",10),S(34," Flare (optional) "),g(35,"select",14)(36,"option"),S(37,"0"),_(),g(38,"option"),S(39,"I"),_(),g(40,"option"),S(41,"II"),_(),g(42,"option"),S(43,"III"),_(),g(44,"option"),S(45,"IV"),_(),g(46,"option"),S(47,"V"),_(),g(48,"option"),S(49,"VI"),_(),g(50,"option"),S(51,"VII"),_(),g(52,"option"),S(53,"VIII"),_(),g(54,"option"),S(55,"IX"),_(),g(56,"option"),S(57,"EX"),_()()()(),g(58,"fieldset",15)(59,"legend"),S(60,"Judgements (optional)"),_(),g(61,"label"),S(62," MARVELOUS "),de(63,"input",16),_(),g(64,"label"),S(65," PERFECT "),de(66,"input",17),_(),g(67,"label"),S(68," GREAT "),de(69,"input",18),_(),g(70,"label"),S(71," GOOD "),de(72,"input",19),_(),g(73,"label"),S(74," OK "),de(75,"input",20),_(),g(76,"label"),S(77," MISS "),de(78,"input",21),_()(),g(79,"div")(80,"button",22),ee("click",function(){ie(i);let r=V();return re(r.addScore())}),S(81,"Add score"),_()()}if(t&2){let i=Si(32),n=V();T(3),dl(n.selectedSongCharts),T(27),N("owlDateTime",i)("owlDateTimeTrigger",i)}}function SR(t,e){if(t&1&&(g(0,"span",24),S(1),_(),S(2," - "),g(3,"span",25),S(4),_(),S(5," - "),g(6,"span",26),S(7),_(),S(8," - "),g(9,"span",27),S(10),_(),S(11," - "),g(12,"span",28),S(13),_(),S(14," - "),g(15,"span",29),S(16),_()),t&2){let i=V().$implicit;T(),xe(i.judgements.MARVELOUS),T(3),xe(i.judgements.PERFECT),T(3),xe(i.judgements.GREAT),T(3),xe(i.judgements.GOOD),T(3),xe(i.judgements.OK),T(3),xe(i.judgements.MISS)}}function MR(t,e){if(t&1&&(g(0,"tr")(1,"td"),S(2),_(),g(3,"td"),S(4),_(),g(5,"td"),S(6),_(),g(7,"td"),S(8),_(),g(9,"td"),S(10),_(),g(11,"td"),Ze(12,SR,17,6),_()()),t&2){let i=e.$implicit,n=V(2);T(2),xe(n.getSongTitle(i.identifier)),T(2),pl("",i.difficulty," (",n.getChartLevel(i.identifier,i.difficulty),")"),T(2),xe(i.score),T(2),xe(i.lamp),T(2),xe(i.optional==null?null:i.optional.flare),T(2),cl(i.judgements?12:-1)}}function TR(t,e){if(t&1){let i=st();g(0,"h1"),S(1,"Summary"),_(),g(2,"table")(3,"thead")(4,"tr")(5,"th"),S(6,"Title"),_(),g(7,"th"),S(8,"Difficulty"),_(),g(9,"th"),S(10,"Score"),_(),g(11,"th"),S(12,"Lamp"),_(),g(13,"th"),S(14,"Flare"),_(),g(15,"th"),S(16,"Judgements"),_()()(),g(17,"tbody"),ul(18,MR,13,7,"tr",null,Jv),_()(),g(20,"button",22),ee("click",function(){ie(i);let r=V();return re(r.generate())}),S(21,"Generate !"),_()}if(t&2){let i=V();T(18),dl(i.scores)}}var Ac=class t{constructor(e){this.route=e;this.songs=this.route.snapshot.data.songs.sort((i,n)=>{let r=i.title.toUpperCase(),s=n.title.toUpperCase();return rs?1:0}),this.charts=this.route.snapshot.data.charts,this.group.controls.title.valueChanges.subscribe(i=>{i&&this.onSelectedSong(i)}),this.playstyle.valueChanges.pipe(Ot("SP"),fa()).subscribe(([i,n])=>{console.log(i,n),this.group.dirty&&(confirm("Warning : changing your playstyle will reset the form")?this.reset():this.playstyle.setValue(i,{emitEvent:!1}))})}songs;charts=[];selectedSong;selectedSongCharts;scores=[];playstyle=new ot("SP",ln.required);group=new po({title:new ot("",ln.required),difficulty:new ot("",ln.required),score:new ot(0,{nonNullable:!0,validators:ln.required}),lamp:new ot("",ln.required),flare:new ot,time:new ot(new Date),judgements:new po({marvelous:new ot,perfect:new ot,great:new ot,good:new ot,ok:new ot,miss:new ot})});reset(){this.group.reset(),this.selectedSong=void 0,this.selectedSongCharts=void 0}onSelectedSong(e){this.selectedSong=this.songs.filter(i=>i.title===e).pop(),this.selectedSong&&(this.selectedSongCharts=this.charts.filter(i=>i.songID===this.selectedSong?.id&&i.playtype===this.playstyle.value).sort((i,n)=>+i.level-+n.level))}getSongTitle(e){return this.songs.filter(i=>i.id===e).pop()?.title}getChartLevel(e,i){return this.charts.filter(n=>n.songID===e&&n.difficulty===i).pop()?.level}addScore(){let e={lamp:this.group.controls.lamp.value,timeAchieved:this.group.controls.time.value.getTime(),matchType:"inGameID",identifier:""+this.selectedSong?.id,difficulty:this.group.controls.difficulty.value,score:this.group.controls.score.value};this.group.controls.judgements.dirty&&(e.judgements={GOOD:this.group.controls.judgements.controls.good.value,GREAT:this.group.controls.judgements.controls.great.value,MARVELOUS:this.group.controls.judgements.controls.marvelous.value,MISS:this.group.controls.judgements.controls.miss.value,OK:this.group.controls.judgements.controls.ok.value,PERFECT:this.group.controls.judgements.controls.perfect.value}),this.group.controls.flare.value&&(e.optional={flare:this.group.controls.flare.value}),this.scores.push(e),this.reset()}generate(){let e={meta:{game:"ddr",service:"sukoa",version:"",playtype:this.playstyle.value},scores:this.scores},i=new Blob([JSON.stringify(e)],{type:"application/json"}),n=document.createElement("a"),r=URL.createObjectURL(i);n.href=r,n.download="sukoa.json",document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(r)},0)}static \u0275fac=function(i){return new(i||t)(v(Kn))};static \u0275cmp=Fe({type:t,selectors:[["app-main"]],standalone:!0,features:[Mi],decls:21,vars:5,consts:[["dt1",""],[3,"formGroup"],[1,"flex","space-around"],["type","radio","value","SP",3,"formControl"],["type","radio","value","DP",3,"formControl"],[1,"width"],["type","search","list","songList","name","songTitle","formControlName","title"],["id","songList"],[3,"value"],[1,"flex"],[1,"grow"],["type","number","min","0","max","1000000","formControlName","score"],["formControlName","lamp"],["formControlName","time","placeholder","Date Time",3,"owlDateTime","owlDateTimeTrigger"],["formControlName","flare"],["formGroupName","judgements",1,"flex"],["type","number","min","0","formControlName","marvelous"],["type","number","min","0","formControlName","perfect"],["type","number","min","0","formControlName","great"],["type","number","min","0","formControlName","good"],["type","number","min","0","formControlName","ok"],["type","number","min","0","formControlName","miss"],[3,"click"],["type","radio","formControlName","difficulty",3,"value"],[1,"success"],[1,"attention"],[1,"severe"],[1,"accent"],[1,"default"],[1,"danger"]],template:function(i,n){i&1&&(g(0,"form",1)(1,"fieldset",2)(2,"legend"),S(3,"Playstyle"),_(),g(4,"label"),de(5,"input",3),S(6," SP "),_(),g(7,"label"),de(8,"input",4),S(9," DP "),_()(),g(10,"fieldset")(11,"legend"),S(12,"Song information"),_(),g(13,"label",5),S(14," Title "),de(15,"input",6),g(16,"datalist",7),ul(17,CR,2,2,"option",8,DR),_()(),Ze(19,IR,82,2),_()(),Ze(20,TR,22,0)),i&2&&(N("formGroup",n.group),T(5),N("formControl",n.playstyle),T(3),N("formControl",n.playstyle),T(9),dl(n.songs),T(2),cl(n.selectedSong?19:-1),T(),cl(n.scores.length?20:-1))},dependencies:[pD,sD,cD,dD,rc,Gf,uc,Yf,Xw,Jw,Xf,Qf,Zf,lc,Kf,cc,lb,nb,Tc,ab,ub]})};var qr=class t{constructor(e){this.http=e}getSongs(){return this.http.get("https://raw.githubusercontent.com/zkldi/Tachi/main/seeds/collections/songs-ddr.json")}getCharts(){return this.http.get("https://raw.githubusercontent.com/zkldi/Tachi/main/seeds/collections/charts-ddr.json")}static \u0275fac=function(i){return new(i||t)(m(Wh))};static \u0275prov=C({token:t,factory:t.\u0275fac,providedIn:"root"})};var db=(t,e)=>w(qr).getSongs();var hb=(t,e)=>w(qr).getCharts();var fb=[{path:"",component:Ac,resolve:{songs:db,charts:hb}}];function pb(t){return new b(3e3,!1)}function AR(){return new b(3100,!1)}function xR(){return new b(3101,!1)}function kR(t){return new b(3001,!1)}function OR(t){return new b(3003,!1)}function RR(t){return new b(3004,!1)}function NR(t,e){return new b(3005,!1)}function PR(){return new b(3006,!1)}function FR(){return new b(3007,!1)}function LR(t,e){return new b(3008,!1)}function VR(t){return new b(3002,!1)}function jR(t,e,i,n,r){return new b(3010,!1)}function BR(){return new b(3011,!1)}function UR(){return new b(3012,!1)}function $R(){return new b(3200,!1)}function HR(){return new b(3202,!1)}function zR(){return new b(3013,!1)}function WR(t){return new b(3014,!1)}function GR(t){return new b(3015,!1)}function YR(t){return new b(3016,!1)}function qR(t,e){return new b(3404,!1)}function ZR(t){return new b(3502,!1)}function KR(t){return new b(3503,!1)}function QR(){return new b(3300,!1)}function XR(t){return new b(3504,!1)}function JR(t){return new b(3301,!1)}function eN(t,e){return new b(3302,!1)}function tN(t){return new b(3303,!1)}function nN(t,e){return new b(3400,!1)}function iN(t){return new b(3401,!1)}function rN(t){return new b(3402,!1)}function sN(t,e){return new b(3505,!1)}function ri(t){switch(t.length){case 0:return new ni;case 1:return t[0];default:return new Do(t)}}function Tb(t,e,i=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==o,d=u&&a||new Map;l.forEach((f,h)=>{let p=h,y=f;if(h!=="offset")switch(p=t.normalizePropertyName(p,r),y){case Dc:y=i.get(h);break;case un:y=n.get(h);break;default:y=t.normalizeStyleValue(h,p,y,r);break}d.set(p,y)}),u||s.push(d),a=d,o=c}),r.length)throw ZR(r);return s}function Yp(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&Ip(i,"start",t)));break;case"done":t.onDone(()=>n(i&&Ip(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&Ip(i,"destroy",t)));break}}function Ip(t,e,i){let n=i.totalTime,r=!!i.disabled,s=qp(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,n??t.totalTime,r),o=t._data;return o!=null&&(s._data=o),s}function qp(t,e,i,n,r="",s=0,o){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function yt(t,e,i){let n=t.get(e);return n||t.set(e,n=i),n}function mb(t){let e=t.indexOf(":"),i=t.substring(1,e),n=t.slice(e+1);return[i,n]}var oN=typeof document>"u"?null:document.documentElement;function Zp(t){let e=t.parentNode||t.host||null;return e===oN?null:e}function aN(t){return t.substring(1,6)=="ebkit"}var $i=null,gb=!1;function lN(t){$i||($i=cN()||{},gb=$i.style?"WebkitAppearance"in $i.style:!1);let e=!0;return $i.style&&!aN(t)&&(e=t in $i.style,!e&&gb&&(e="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in $i.style)),e}function cN(){return typeof document<"u"?document.body:null}function Ab(t,e){for(;e;){if(e===t)return!0;e=Zp(e)}return!1}function xb(t,e,i){if(i)return Array.from(t.querySelectorAll(e));let n=t.querySelector(e);return n?[n]:[]}var Kp=(()=>{let e=class e{validateStyleProperty(n){return lN(n)}containsElement(n,r){return Ab(n,r)}getParentElement(n){return Zp(n)}query(n,r,s){return xb(n,r,s)}computeStyle(n,r,s){return s||""}animate(n,r,s,o,a,l=[],c){return new ni(s,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),em=class em{};em.NOOP=new Kp;var Wi=em,Gi=class{};var uN=1e3,kb="{{",dN="}}",Ob="ng-enter",kp="ng-leave",xc="ng-trigger",Pc=".ng-trigger",yb="ng-animating",Op=".ng-animating";function An(t){if(typeof t=="number")return t;let e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Rp(parseFloat(e[1]),e[2])}function Rp(t,e){switch(e){case"s":return t*uN;default:return t}}function Fc(t,e,i){return t.hasOwnProperty("duration")?t:hN(t,e,i)}function hN(t,e,i){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof t=="string"){let a=t.match(n);if(a===null)return e.push(pb(t)),{duration:0,delay:0,easing:""};r=Rp(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=Rp(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=t;if(!i){let a=!1,l=e.length;r<0&&(e.push(AR()),a=!0),s<0&&(e.push(xR()),a=!0),a&&e.splice(l,0,pb(t))}return{duration:r,delay:s,easing:o}}function fN(t){return t.length?t[0]instanceof Map?t:t.map(e=>new Map(Object.entries(e))):[]}function dn(t,e,i){e.forEach((n,r)=>{let s=Qp(r);i&&!i.has(r)&&i.set(r,t.style[s]),t.style[s]=n})}function zi(t,e){e.forEach((i,n)=>{let r=Qp(n);t.style[r]=""})}function So(t){return Array.isArray(t)?t.length==1?t[0]:$D(t):t}function pN(t,e,i){let n=e.params||{},r=Rb(t);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||i.push(kR(s))})}var Np=new RegExp(`${kb}\\s*(.+?)\\s*${dN}`,"g");function Rb(t){let e=[];if(typeof t=="string"){let i;for(;i=Np.exec(t);)e.push(i[1]);Np.lastIndex=0}return e}function To(t,e,i){let n=`${t}`,r=n.replace(Np,(s,o)=>{let a=e[o];return a==null&&(i.push(OR(o)),a=""),a.toString()});return r==n?t:r}var mN=/-+([a-z0-9])/g;function Qp(t){return t.replace(mN,(...e)=>e[1].toUpperCase())}function gN(t,e){return t===0||e===0}function yN(t,e,i){if(i.size&&e.length){let n=e[0],r=[];if(i.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,Xp(t,a)))}}return e}function gt(t,e,i){switch(e.type){case U.Trigger:return t.visitTrigger(e,i);case U.State:return t.visitState(e,i);case U.Transition:return t.visitTransition(e,i);case U.Sequence:return t.visitSequence(e,i);case U.Group:return t.visitGroup(e,i);case U.Animate:return t.visitAnimate(e,i);case U.Keyframes:return t.visitKeyframes(e,i);case U.Style:return t.visitStyle(e,i);case U.Reference:return t.visitReference(e,i);case U.AnimateChild:return t.visitAnimateChild(e,i);case U.AnimateRef:return t.visitAnimateRef(e,i);case U.Query:return t.visitQuery(e,i);case U.Stagger:return t.visitStagger(e,i);default:throw RR(e.type)}}function Xp(t,e){return window.getComputedStyle(t)[e]}var vN=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"]),Lc=class extends Gi{normalizePropertyName(e,i){return Qp(e)}normalizeStyleValue(e,i,n,r){let s="",o=n.toString().trim();if(vN.has(i)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(NR(e,n))}return o+s}};var Vc="*";function _N(t,e){let i=[];return typeof t=="string"?t.split(/\s*,\s*/).forEach(n=>wN(n,i,e)):i.push(t),i}function wN(t,e,i){if(t[0]==":"){let l=DN(t,i);if(typeof l=="function"){e.push(l);return}t=l}let n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return i.push(GR(t)),e;let r=n[1],s=n[2],o=n[3];e.push(vb(r,o));let a=r==Vc&&o==Vc;s[0]=="<"&&!a&&e.push(vb(o,r))}function DN(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(i,n)=>parseFloat(n)>parseFloat(i);case":decrement":return(i,n)=>parseFloat(n) *"}}var kc=new Set(["true","1"]),Oc=new Set(["false","0"]);function vb(t,e){let i=kc.has(t)||Oc.has(t),n=kc.has(e)||Oc.has(e);return(r,s)=>{let o=t==Vc||t==r,a=e==Vc||e==s;return!o&&i&&typeof r=="boolean"&&(o=r?kc.has(t):Oc.has(t)),!a&&n&&typeof s=="boolean"&&(a=s?kc.has(e):Oc.has(e)),o&&a}}var Nb=":self",bN=new RegExp(`s*${Nb}s*,?`,"g");function Pb(t,e,i,n){return new Pp(t).build(e,i,n)}var _b="",Pp=class{constructor(e){this._driver=e}build(e,i,n){let r=new Fp(i);return this._resetContextStyleTimingState(r),gt(this,So(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=_b,e.collectedStyles=new Map,e.collectedStyles.set(_b,new Map),e.currentTime=0}visitTrigger(e,i){let n=i.queryCount=0,r=i.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&i.errors.push(PR()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(i),a.type==U.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,i))}),l.name=c}else if(a.type==U.Transition){let l=this.visitTransition(a,i);n+=l.queryCount,r+=l.depCount,o.push(l)}else i.errors.push(FR())}),{type:U.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,i){let n=this.visitStyle(e.styles,i),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Rb(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&i.errors.push(LR(e.name,[...s.values()]))}return{type:U.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,i){i.queryCount=0,i.depCount=0;let n=gt(this,So(e.animation),i),r=_N(e.expr,i.errors);return{type:U.Transition,matchers:r,animation:n,queryCount:i.queryCount,depCount:i.depCount,options:Hi(e.options)}}visitSequence(e,i){return{type:U.Sequence,steps:e.steps.map(n=>gt(this,n,i)),options:Hi(e.options)}}visitGroup(e,i){let n=i.currentTime,r=0,s=e.steps.map(o=>{i.currentTime=n;let a=gt(this,o,i);return r=Math.max(r,i.currentTime),a});return i.currentTime=r,{type:U.Group,steps:s,options:Hi(e.options)}}visitAnimate(e,i){let n=SN(e.timings,i.errors);i.currentAnimateTimings=n;let r,s=e.styles?e.styles:Ke({});if(s.type==U.Keyframes)r=this.visitKeyframes(s,i);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=Ke(c)}i.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,i);l.isEmptyStep=a,r=l}return i.currentAnimateTimings=null,{type:U.Animate,timings:n,style:r,options:null}}visitStyle(e,i){let n=this._makeStyleAst(e,i);return this._validateStyleAst(n,i),n}_makeStyleAst(e,i){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===un?n.push(a):i.errors.push(VR(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(kb)>=0){s=!0;break}}}),{type:U.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,i){let n=i.currentAnimateTimings,r=i.currentTime,s=i.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=i.collectedStyles.get(i.currentQuerySelector),u=c.get(l),d=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(i.errors.push(jR(l,u.startTime,u.endTime,s,r)),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),i.options&&pN(a,i.options,i.errors)})})}visitKeyframes(e,i){let n={type:U.Keyframes,styles:[],options:null};if(!i.currentAnimateTimings)return i.errors.push(BR()),n;let r=1,s=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(I=>{let $=this._makeStyleAst(I,i),Y=$.offset!=null?$.offset:IN($.styles),H=0;return Y!=null&&(s++,H=$.offset=Y),l=l||H<0||H>1,a=a||H0&&s{let Y=f>0?$==h?1:f*$:o[$],H=Y*D;i.currentTime=p+y.delay+H,y.duration=H,this._validateStyleAst(I,i),I.offset=Y,n.styles.push(I)}),n}visitReference(e,i){return{type:U.Reference,animation:gt(this,So(e.animation),i),options:Hi(e.options)}}visitAnimateChild(e,i){return i.depCount++,{type:U.AnimateChild,options:Hi(e.options)}}visitAnimateRef(e,i){return{type:U.AnimateRef,animation:this.visitReference(e.animation,i),options:Hi(e.options)}}visitQuery(e,i){let n=i.currentQuerySelector,r=e.options||{};i.queryCount++,i.currentQuery=e;let[s,o]=CN(e.selector);i.currentQuerySelector=n.length?n+" "+s:s,yt(i.collectedStyles,i.currentQuerySelector,new Map);let a=gt(this,So(e.animation),i);return i.currentQuery=null,i.currentQuerySelector=n,{type:U.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Hi(e.options)}}visitStagger(e,i){i.currentQuery||i.errors.push(zR());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Fc(e.timings,i.errors,!0);return{type:U.Stagger,animation:gt(this,So(e.animation),i),timings:n,options:null}}};function CN(t){let e=!!t.split(/\s*,\s*/).find(i=>i==Nb);return e&&(t=t.replace(bN,"")),t=t.replace(/@\*/g,Pc).replace(/@\w+/g,i=>Pc+"-"+i.slice(1)).replace(/:animating/g,Op),[t,e]}function EN(t){return t?E({},t):null}var Fp=class{constructor(e){this.errors=e,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 IN(t){if(typeof t=="string")return null;let e=null;if(Array.isArray(t))t.forEach(i=>{if(i instanceof Map&&i.has("offset")){let n=i;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(t instanceof Map&&t.has("offset")){let i=t;e=parseFloat(i.get("offset")),i.delete("offset")}return e}function SN(t,e){if(t.hasOwnProperty("duration"))return t;if(typeof t=="number"){let s=Fc(t,e).duration;return Sp(s,0,"")}let i=t;if(i.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=Sp(0,0,"");return s.dynamic=!0,s.strValue=i,s}let r=Fc(i,e);return Sp(r.duration,r.delay,r.easing)}function Hi(t){return t?(t=E({},t),t.params&&(t.params=EN(t.params))):t={},t}function Sp(t,e,i){return{duration:t,delay:e,easing:i}}function Jp(t,e,i,n,r,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var Ao=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,i){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...i)}has(e){return this._map.has(e)}clear(){this._map.clear()}},MN=1,TN=":enter",AN=new RegExp(TN,"g"),xN=":leave",kN=new RegExp(xN,"g");function Fb(t,e,i,n,r,s=new Map,o=new Map,a,l,c=[]){return new Lp().buildKeyframes(t,e,i,n,r,s,o,a,l,c)}var Lp=class{buildKeyframes(e,i,n,r,s,o,a,l,c,u=[]){c=c||new Ao;let d=new Vp(e,i,c,r,s,u,[]);d.options=l;let f=l.delay?An(l.delay):0;d.currentTimeline.delayNextStep(f),d.currentTimeline.setStyles([o],null,d.errors,l),gt(this,n,d);let h=d.timelines.filter(p=>p.containsAnimation());if(h.length&&a.size){let p;for(let y=h.length-1;y>=0;y--){let D=h[y];if(D.element===i){p=D;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return h.length?h.map(p=>p.buildKeyframes()):[Jp(i,[],[],[],0,f,"",!1)]}visitTrigger(e,i){}visitState(e,i){}visitTransition(e,i){}visitAnimateChild(e,i){let n=i.subInstructions.get(i.element);if(n){let r=i.createSubContext(e.options),s=i.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&i.transformIntoNewTimeline(o)}i.previousNode=e}visitAnimateRef(e,i){let n=i.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],i,n),this.visitReference(e.animation,n),i.transformIntoNewTimeline(n.currentTimeline.currentTime),i.previousNode=e}_applyAnimationRefDelays(e,i,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:An(To(s,r?.params??{},i.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,i,n){let s=i.currentTimeline.currentTime,o=n.duration!=null?An(n.duration):null,a=n.delay!=null?An(n.delay):null;return o!==0&&e.forEach(l=>{let c=i.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,i){i.updateOptions(e.options,!0),gt(this,e.animation,i),i.previousNode=e}visitSequence(e,i){let n=i.subContextCount,r=i,s=e.options;if(s&&(s.params||s.delay)&&(r=i.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==U.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=jc);let o=An(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>gt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),i.previousNode=e}visitGroup(e,i){let n=[],r=i.currentTimeline.currentTime,s=e.options&&e.options.delay?An(e.options.delay):0;e.steps.forEach(o=>{let a=i.createSubContext(e.options);s&&a.delayNextStep(s),gt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>i.currentTimeline.mergeTimelineCollectedStyles(o)),i.transformIntoNewTimeline(r),i.previousNode=e}_visitTiming(e,i){if(e.dynamic){let n=e.strValue,r=i.params?To(n,i.params,i.errors):n;return Fc(r,i.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,i){let n=i.currentAnimateTimings=this._visitTiming(e.timings,i),r=i.currentTimeline;n.delay&&(i.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==U.Keyframes?this.visitKeyframes(s,i):(i.incrementTime(n.duration),this.visitStyle(s,i),r.applyStylesToKeyframe()),i.currentAnimateTimings=null,i.previousNode=e}visitStyle(e,i){let n=i.currentTimeline,r=i.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,i.errors,i.options),i.previousNode=e}visitKeyframes(e,i){let n=i.currentAnimateTimings,r=i.currentTimeline.duration,s=n.duration,a=i.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,i.errors,i.options),a.applyStylesToKeyframe()}),i.currentTimeline.mergeTimelineCollectedStyles(a),i.transformIntoNewTimeline(r+s),i.previousNode=e}visitQuery(e,i){let n=i.currentTimeline.currentTime,r=e.options||{},s=r.delay?An(r.delay):0;s&&(i.previousNode.type===U.Style||n==0&&i.currentTimeline.hasCurrentStyleProperties())&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=jc);let o=n,a=i.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,i.errors);i.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{i.currentQueryIndex=u;let d=i.createSubContext(e.options,c);s&&d.delayNextStep(s),c===i.element&&(l=d.currentTimeline),gt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe();let f=d.currentTimeline.currentTime;o=Math.max(o,f)}),i.currentQueryIndex=0,i.currentQueryTotal=0,i.transformIntoNewTimeline(o),l&&(i.currentTimeline.mergeTimelineCollectedStyles(l),i.currentTimeline.snapshotCurrentStyles()),i.previousNode=e}visitStagger(e,i){let n=i.parentContext,r=i.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(i.currentQueryTotal-1),l=o*i.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let u=i.currentTimeline;l&&u.delayNextStep(l);let d=u.currentTime;gt(this,e.animation,i),i.previousNode=e,n.currentStaggerTime=r.currentTime-d+(r.startTime-n.currentTimeline.startTime)}},jc={},Vp=class t{constructor(e,i,n,r,s,o,a,l){this._driver=e,this.element=i,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=jc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bc(this._driver,i,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,i){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=An(n.duration)),n.delay!=null&&(r.delay=An(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!i||!o.hasOwnProperty(a))&&(o[a]=To(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let i=this.options.params;if(i){let n=e.params={};Object.keys(i).forEach(r=>{n[r]=i[r]})}}return e}createSubContext(e=null,i,n){let r=i||this.element,s=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=jc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,i,n){let r={duration:i??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new jp(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,i,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(AN,"."+this._enterClassName),e=e.replace(kN,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(WR(i)),a}},Bc=class t{constructor(e,i,n,r){this._driver=e,this.element=i,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(i),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(i,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(e){let i=this._keyframes.size===1&&this._pendingStyles.size;this.duration||i?(this.forwardTime(this.currentTime+e),i&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,i){return this.applyStylesToKeyframe(),new t(this._driver,e,i||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+=MN,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,i){this._localTimelineStyles.set(e,i),this._globalTimelineStyles.set(e,i),this._styleSummary.set(e,{time:this.currentTime,value:i})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[i,n]of this._globalTimelineStyles)this._backFill.set(i,n||un),this._currentKeyframe.set(i,un);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,i,n,r){i&&this._previousKeyframe.set("easing",i);let s=r&&r.params||{},o=ON(e,this._globalTimelineStyles);for(let[a,l]of o){let c=To(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??un),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,i)=>{this._currentKeyframe.set(i,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,i)=>{this._currentKeyframe.has(i)||this._currentKeyframe.set(i,e)}))}snapshotCurrentStyles(){for(let[e,i]of this._localTimelineStyles)this._pendingStyles.set(e,i),this._updateStyle(e,i)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let i in this._currentKeyframe)e.push(i);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((i,n)=>{let r=this._styleSummary.get(n);(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,i=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,d)=>{u===Dc?e.add(d):u===un&&i.add(d)}),n||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...i.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Jp(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},jp=class extends Bc{constructor(e,i,n,r,s,o,a=!1){super(e,i,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:i,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&i){let s=[],o=n+i,a=i/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",wb(a)),s.push(c);let u=e.length-1;for(let d=1;d<=u;d++){let f=new Map(e[d]),h=f.get("offset"),p=i+h*n;f.set("offset",wb(p/o)),s.push(f)}n=o,i=0,r="",e=s}return Jp(this.element,e,this.preStyleProps,this.postStyleProps,n,i,r,!0)}};function wb(t,e=3){let i=Math.pow(10,e-1);return Math.round(t*i)/i}function ON(t,e){let i=new Map,n;return t.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)i.set(s,un)}else for(let[s,o]of r)i.set(s,o)}),i}function Db(t,e,i,n,r,s,o,a,l,c,u,d,f){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:i,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:f}}var Mp={},Uc=class{constructor(e,i,n){this._triggerName=e,this.ast=i,this._stateStyles=n}match(e,i,n,r){return RN(this.ast.matchers,e,i,n,r)}buildStyles(e,i,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(i,n):new Map}build(e,i,n,r,s,o,a,l,c,u){let d=[],f=this.ast.options&&this.ast.options.params||Mp,h=a&&a.params||Mp,p=this.buildStyles(n,h,d),y=l&&l.params||Mp,D=this.buildStyles(r,y,d),I=new Set,$=new Map,Y=new Map,H=r==="void",ke={params:Lb(y,f),delay:this.ast.options?.delay},he=u?[]:Fb(e,i,this.ast.animation,s,o,p,D,ke,c,d),me=0;return he.forEach(Ie=>{me=Math.max(Ie.duration+Ie.delay,me)}),d.length?Db(i,this._triggerName,n,r,H,p,D,[],[],$,Y,me,d):(he.forEach(Ie=>{let hn=Ie.element,xn=yt($,hn,new Set);Ie.preStyleProps.forEach(si=>xn.add(si));let tm=yt(Y,hn,new Set);Ie.postStyleProps.forEach(si=>tm.add(si)),hn!==i&&I.add(hn)}),Db(i,this._triggerName,n,r,H,p,D,he,[...I.values()],$,Y,me))}};function RN(t,e,i,n,r){return t.some(s=>s(e,i,n,r))}function Lb(t,e){let i=E({},e);return Object.entries(t).forEach(([n,r])=>{r!=null&&(i[n]=r)}),i}var Bp=class{constructor(e,i,n){this.styles=e,this.defaultParams=i,this.normalizer=n}buildStyles(e,i){let n=new Map,r=Lb(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=To(o,r,i));let l=this.normalizer.normalizePropertyName(a,i);o=this.normalizer.normalizeStyleValue(a,l,o,i),n.set(a,o)})}),n}};function NN(t,e,i){return new Up(t,e,i)}var Up=class{constructor(e,i,n){this.name=e,this.ast=i,this._normalizer=n,this.transitionFactories=[],this.states=new Map,i.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Bp(r.style,s,n))}),bb(this.states,"true","1"),bb(this.states,"false","0"),i.transitions.forEach(r=>{this.transitionFactories.push(new Uc(e,r,this.states))}),this.fallbackTransition=PN(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,i,n,r){return this.transitionFactories.find(o=>o.match(e,i,n,r))||null}matchStyles(e,i,n){return this.fallbackTransition.buildStyles(e,i,n)}};function PN(t,e,i){let n=[(o,a)=>!0],r={type:U.Sequence,steps:[],options:null},s={type:U.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new Uc(t,s,e)}function bb(t,e,i){t.has(e)?t.has(i)||t.set(i,t.get(e)):t.has(i)&&t.set(e,t.get(i))}var FN=new Ao,$p=class{constructor(e,i,n){this.bodyNode=e,this._driver=i,this._normalizer=n,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,i){let n=[],r=[],s=Pb(this._driver,i,n,r);if(n.length)throw KR(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,i,n){let r=e.element,s=Tb(this._normalizer,e.keyframes,i,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,i,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Fb(this._driver,i,s,Ob,kp,new Map,new Map,n,FN,r),o.forEach(u=>{let d=yt(a,u.element,new Map);u.postStyleProps.forEach(f=>d.set(f,null))})):(r.push(QR()),o=[]),r.length)throw XR(r);a.forEach((u,d)=>{u.forEach((f,h)=>{u.set(h,this._driver.computeStyle(d,h,un))})});let l=o.map(u=>{let d=a.get(u.element);return this._buildPlayer(u,new Map,d)}),c=ri(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let i=this._getPlayer(e);i.destroy(),this._playersById.delete(e);let n=this.players.indexOf(i);n>=0&&this.players.splice(n,1)}_getPlayer(e){let i=this._playersById.get(e);if(!i)throw JR(e);return i}listen(e,i,n,r){let s=qp(i,"","","");return Yp(this._getPlayer(e),n,s,r),()=>{}}command(e,i,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,i,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Cb="ng-animate-queued",LN=".ng-animate-queued",Tp="ng-animate-disabled",VN=".ng-animate-disabled",jN="ng-star-inserted",BN=".ng-star-inserted",UN=[],Vb={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$N={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Gt="__ng_removed",xo=class{get params(){return this.options.params}constructor(e,i=""){this.namespaceId=i;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=zN(r),n){let s=e,{value:o}=s,a=Zc(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let i=e.params;if(i){let n=this.options.params;Object.keys(i).forEach(r=>{n[r]==null&&(n[r]=i[r])})}}},Mo="void",Ap=new xo(Mo),Hp=class{constructor(e,i,n){this.id=e,this.hostElement=i,this._engine=n,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,xt(i,this._hostClassName)}listen(e,i,n,r){if(!this._triggers.has(i))throw eN(n,i);if(n==null||n.length==0)throw tN(i);if(!WN(n))throw nN(n,i);let s=yt(this._elementListeners,e,[]),o={name:i,phase:n,callback:r};s.push(o);let a=yt(this._engine.statesByElement,e,new Map);return a.has(i)||(xt(e,xc),xt(e,xc+"-"+i),a.set(i,Ap)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(i)||a.delete(i)})}}register(e,i){return this._triggers.has(e)?!1:(this._triggers.set(e,i),!0)}_getTrigger(e){let i=this._triggers.get(e);if(!i)throw iN(e);return i}trigger(e,i,n,r=!0){let s=this._getTrigger(i),o=new ko(this.id,i,e),a=this._engine.statesByElement.get(e);a||(xt(e,xc),xt(e,xc+"-"+i),this._engine.statesByElement.set(e,a=new Map));let l=a.get(i),c=new xo(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(i,c),l||(l=Ap),!(c.value===Mo)&&l.value===c.value){if(!qN(l.params,c.params)){let y=[],D=s.matchStyles(l.value,l.params,y),I=s.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{zi(e,D),dn(e,I)})}return}let f=yt(this._engine.playersByElement,e,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==i&&y.queued&&y.destroy()});let h=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!h){if(!r)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:i,transition:h,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(xt(e,Cb),o.onStart(()=>{Zr(e,Cb)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let D=this._engine.playersByElement.get(e);if(D){let I=D.indexOf(o);I>=0&&D.splice(I,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(i=>i.delete(e)),this._elementListeners.forEach((i,n)=>{this._elementListeners.set(n,i.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let i=this._engine.playersByElement.get(e);i&&(i.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,i){let n=this._engine.driver.query(e,Pc,!0);n.forEach(r=>{if(r[Gt])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,i,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,i,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,Mo,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,i,o),n&&ri(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let i=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(i&&n){let r=new Set;i.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||Ap,u=new xo(Mo),d=new ko(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,i){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,i),this.triggerLeaveAnimation(e,i,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,i);else{let s=e[Gt];(!s||s===Vb)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,i))}}insertNode(e,i){xt(e,this._hostClassName)}drainQueuedTransitions(e){let i=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=qp(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Yp(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):i.push(n)}),this._queue=[],i.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(i=>i.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},zp=class{_onRemovalComplete(e,i){this.onRemovalComplete(e,i)}constructor(e,i,n){this.bodyNode=e,this.driver=i,this._normalizer=n,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,s)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(i=>{i.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,i){let n=new Hp(e,i,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,i)?this._balanceNamespaceList(n,i):(this.newHostElements.set(i,n),this.collectEnterElement(i)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,i){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(i);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(i,e),e}register(e,i){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,i)),n}registerTrigger(e,i,n){let r=this._namespaceLookup[e];r&&r.register(i,n)&&this.totalAnimations++}destroy(e,i){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(i),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let i=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&i.add(s)}}return i}trigger(e,i,n,r){if(Rc(i)){let s=this._fetchNamespace(e);if(s)return s.trigger(i,n,r),!0}return!1}insertNode(e,i,n,r){if(!Rc(i))return;let s=i[Gt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(i);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(i,n)}r&&this.collectEnterElement(i)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,i){i?this.disabledNodes.has(e)||(this.disabledNodes.add(e),xt(e,Tp)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Zr(e,Tp))}removeNode(e,i,n){if(Rc(i)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(i,n):this.markElementAsRemoved(e,i,!1,n);let s=this.namespacesByHostElement.get(i);s&&s.id!==e&&s.removeNode(i,n)}else this._onRemovalComplete(i,n)}markElementAsRemoved(e,i,n,r,s){this.collectedLeaveElements.push(i),i[Gt]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,i,n,r,s){return Rc(i)?this._fetchNamespace(e).listen(i,n,r,s):()=>{}}_buildInstruction(e,i,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,i,s)}destroyInnerAnimations(e){let i=this.driver.query(e,Pc,!0);i.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(i=this.driver.query(e,Op,!0),i.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let i=this.playersByElement.get(e);i&&i.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let i=this.playersByQueriedElement.get(e);i&&i.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ri(this.players).onDone(()=>e());e()})}processLeaveNode(e){let i=e[Gt];if(i&&i.setForRemoval){if(e[Gt]=Vb,i.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(i.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}e.classList?.contains(Tp)&&this.markElementAsDisabled(e,!1),this.driver.query(e,VN,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let i=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],i.length?ri(i).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw rN(e)}_flushAnimations(e,i){let n=new Ao,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(x=>{u.add(x);let k=this.driver.query(x,LN,!0);for(let P=0;P{let P=Ob+y++;p.set(k,P),x.forEach(ae=>xt(ae,P))});let D=[],I=new Set,$=new Set;for(let x=0;xI.add(ae)):$.add(k))}let Y=new Map,H=Sb(f,Array.from(I));H.forEach((x,k)=>{let P=kp+y++;Y.set(k,P),x.forEach(ae=>xt(ae,P))}),e.push(()=>{h.forEach((x,k)=>{let P=p.get(k);x.forEach(ae=>Zr(ae,P))}),H.forEach((x,k)=>{let P=Y.get(k);x.forEach(ae=>Zr(ae,P))}),D.forEach(x=>{this.processLeaveNode(x)})});let ke=[],he=[];for(let x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(i).forEach(P=>{let ae=P.player,Be=P.element;if(ke.push(ae),this.collectedEnterElements.length){let ze=Be[Gt];if(ze&&ze.setForMove){if(ze.previousTriggersValues&&ze.previousTriggersValues.has(P.triggerName)){let oi=ze.previousTriggersValues.get(P.triggerName),vt=this.statesByElement.get(P.element);if(vt&&vt.has(P.triggerName)){let Oo=vt.get(P.triggerName);Oo.value=oi,vt.set(P.triggerName,Oo)}}ae.destroy();return}}let Yt=!d||!this.driver.containsElement(d,Be),ht=Y.get(Be),kn=p.get(Be),De=this._buildInstruction(P,n,kn,ht,Yt);if(De.errors&&De.errors.length){he.push(De);return}if(Yt){ae.onStart(()=>zi(Be,De.fromStyles)),ae.onDestroy(()=>dn(Be,De.toStyles)),r.push(ae);return}if(P.isFallbackTransition){ae.onStart(()=>zi(Be,De.fromStyles)),ae.onDestroy(()=>dn(Be,De.toStyles)),r.push(ae);return}let rm=[];De.timelines.forEach(ze=>{ze.stretchStartingKeyframe=!0,this.disabledNodes.has(ze.element)||rm.push(ze)}),De.timelines=rm,n.append(Be,De.timelines);let Wb={instruction:De,player:ae,element:Be};o.push(Wb),De.queriedElements.forEach(ze=>yt(a,ze,[]).push(ae)),De.preStyleProps.forEach((ze,oi)=>{if(ze.size){let vt=l.get(oi);vt||l.set(oi,vt=new Set),ze.forEach((Oo,qc)=>vt.add(qc))}}),De.postStyleProps.forEach((ze,oi)=>{let vt=c.get(oi);vt||c.set(oi,vt=new Set),ze.forEach((Oo,qc)=>vt.add(qc))})});if(he.length){let x=[];he.forEach(k=>{x.push(sN(k.triggerName,k.errors))}),ke.forEach(k=>k.destroy()),this.reportError(x)}let me=new Map,Ie=new Map;o.forEach(x=>{let k=x.element;n.has(k)&&(Ie.set(k,k),this._beforeAnimationBuild(x.player.namespaceId,x.instruction,me))}),r.forEach(x=>{let k=x.element;this._getPreviousPlayers(k,!1,x.namespaceId,x.triggerName,null).forEach(ae=>{yt(me,k,[]).push(ae),ae.destroy()})});let hn=D.filter(x=>Mb(x,l,c)),xn=new Map;Ib(xn,this.driver,$,c,un).forEach(x=>{Mb(x,l,c)&&hn.push(x)});let si=new Map;h.forEach((x,k)=>{Ib(si,this.driver,new Set(x),l,Dc)}),hn.forEach(x=>{let k=xn.get(x),P=si.get(x);xn.set(x,new Map([...k?.entries()??[],...P?.entries()??[]]))});let Yc=[],nm=[],im={};o.forEach(x=>{let{element:k,player:P,instruction:ae}=x;if(n.has(k)){if(u.has(k)){P.onDestroy(()=>dn(k,ae.toStyles)),P.disabled=!0,P.overrideTotalTime(ae.totalTime),r.push(P);return}let Be=im;if(Ie.size>1){let ht=k,kn=[];for(;ht=ht.parentNode;){let De=Ie.get(ht);if(De){Be=De;break}kn.push(ht)}kn.forEach(De=>Ie.set(De,Be))}let Yt=this._buildAnimation(P.namespaceId,ae,me,s,si,xn);if(P.setRealPlayer(Yt),Be===im)Yc.push(P);else{let ht=this.playersByElement.get(Be);ht&&ht.length&&(P.parentPlayer=ri(ht)),r.push(P)}}else zi(k,ae.fromStyles),P.onDestroy(()=>dn(k,ae.toStyles)),nm.push(P),u.has(k)&&r.push(P)}),nm.forEach(x=>{let k=s.get(x.element);if(k&&k.length){let P=ri(k);x.setRealPlayer(P)}}),r.forEach(x=>{x.parentPlayer?x.syncPlayerEvents(x.parentPlayer):x.destroy()});for(let x=0;x!Yt.destroyed);Be.length?GN(this,k,Be):this.processLeaveNode(k)}return D.length=0,Yc.forEach(x=>{this.players.push(x),x.onDone(()=>{x.destroy();let k=this.players.indexOf(x);this.players.splice(k,1)}),x.play()}),Yc}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,i,n,r,s){let o=[];if(i){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Mo;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,i,n){let r=i.triggerName,s=i.element,o=i.isRemovalTransition?void 0:e,a=i.isRemovalTransition?void 0:r;for(let l of i.timelines){let c=l.element,u=c!==s,d=yt(n,c,[]);this._getPreviousPlayers(c,u,o,a,i.toState).forEach(h=>{let p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}zi(s,i.fromStyles)}_buildAnimation(e,i,n,r,s,o){let a=i.triggerName,l=i.element,c=[],u=new Set,d=new Set,f=i.timelines.map(p=>{let y=p.element;u.add(y);let D=y[Gt];if(D&&D.removedBeforeQueried)return new ni(p.duration,p.delay);let I=y!==l,$=YN((n.get(y)||UN).map(me=>me.getRealPlayer())).filter(me=>{let Ie=me;return Ie.element?Ie.element===y:!1}),Y=s.get(y),H=o.get(y),ke=Tb(this._normalizer,p.keyframes,Y,H),he=this._buildPlayer(p,ke,$);if(p.subTimeline&&r&&d.add(y),I){let me=new ko(e,a,y);me.setRealPlayer(he),c.push(me)}return he});c.forEach(p=>{yt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>HN(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>xt(p,yb));let h=ri(f);return h.onDestroy(()=>{u.forEach(p=>Zr(p,yb)),dn(l,i.toStyles)}),d.forEach(p=>{yt(r,p,[]).push(h)}),h}_buildPlayer(e,i,n){return i.length>0?this.driver.animate(e.element,i,e.duration,e.delay,e.easing,n):new ni(e.duration,e.delay)}},ko=class{constructor(e,i,n){this.namespaceId=e,this.triggerName=i,this.element=n,this._player=new ni,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((i,n)=>{i.forEach(r=>Yp(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let i=this._player;i.triggerCallback&&e.onStart(()=>i.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,i){yt(this._queuedCallbacks,e,[]).push(i)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1: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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let i=this._player;i.triggerCallback&&i.triggerCallback(e)}};function HN(t,e,i){let n=t.get(e);if(n){if(n.length){let r=n.indexOf(i);n.splice(r,1)}n.length==0&&t.delete(e)}return n}function zN(t){return t??null}function Rc(t){return t&&t.nodeType===1}function WN(t){return t=="start"||t=="done"}function Eb(t,e){let i=t.style.display;return t.style.display=e??"none",i}function Ib(t,e,i,n,r){let s=[];i.forEach(l=>s.push(Eb(l)));let o=[];n.forEach((l,c)=>{let u=new Map;l.forEach(d=>{let f=e.computeStyle(c,d,r);u.set(d,f),(!f||f.length==0)&&(c[Gt]=$N,o.push(c))}),t.set(c,u)});let a=0;return i.forEach(l=>Eb(l,s[a++])),o}function Sb(t,e){let i=new Map;if(t.forEach(a=>i.set(a,[])),e.length==0)return i;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return i.has(c)?l=c:r.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&i.get(l).push(a)}),i}function xt(t,e){t.classList?.add(e)}function Zr(t,e){t.classList?.remove(e)}function GN(t,e,i){ri(i).onDone(()=>t.processLeaveNode(e))}function YN(t){let e=[];return jb(t,e),e}function jb(t,e){for(let i=0;ir.add(s)):e.set(t,n),i.delete(t),!0}var Qr=class{constructor(e,i,n){this._driver=i,this._normalizer=n,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new zp(e.body,i,n),this._timelineEngine=new $p(e.body,i,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,i,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],u=Pb(this._driver,s,l,c);if(l.length)throw qR(r,l);c.length&&void 0,a=NN(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(i,r,a)}register(e,i){this._transitionEngine.register(e,i)}destroy(e,i){this._transitionEngine.destroy(e,i)}onInsert(e,i,n,r){this._transitionEngine.insertNode(e,i,n,r)}onRemove(e,i,n){this._transitionEngine.removeNode(e,i,n)}disableAnimations(e,i){this._transitionEngine.markElementAsDisabled(e,i)}process(e,i,n,r){if(n.charAt(0)=="@"){let[s,o]=mb(n),a=r;this._timelineEngine.command(s,i,o,a)}else this._transitionEngine.trigger(e,i,n,r)}listen(e,i,n,r,s){if(n.charAt(0)=="@"){let[o,a]=mb(n);return this._timelineEngine.listen(o,i,a,s)}return this._transitionEngine.listen(e,i,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function ZN(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=xp(e[0]),e.length>1&&(n=xp(e[e.length-1]))):e instanceof Map&&(i=xp(e)),i||n?new Wp(t,i,n):null}var Kr=class Kr{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let r=Kr.initialStylesByElement.get(e);r||Kr.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&dn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(dn(this._element,this._initialStyles),this._endStyles&&(dn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(Kr.initialStylesByElement.delete(this._element),this._startStyles&&(zi(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(zi(this._element,this._endStyles),this._endStyles=null),dn(this._element,this._initialStyles),this._state=3)}};Kr.initialStylesByElement=new WeakMap;var Wp=Kr;function xp(t){let e=null;return t.forEach((i,n)=>{KN(n)&&(e=e||new Map,e.set(n,i))}),e}function KN(t){return t==="display"||t==="position"}var $c=class{constructor(e,i,n,r){this.element=e,this.keyframes=i,this.options=n,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let i=()=>this._onFinish();this.domPlayer.addEventListener("finish",i),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",i)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let i=[];return e.forEach(n=>{i.push(Object.fromEntries(n))}),i}_triggerWebAnimation(e,i,n){return e.animate(this._convertKeyframesToObject(i),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Xp(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let i=e==="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},Hc=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,i){return Ab(e,i)}getParentElement(e){return Zp(e)}query(e,i,n){return xb(e,i,n)}computeStyle(e,i,n){return Xp(e,i)}animate(e,i,n,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};s&&(l.easing=s);let c=new Map,u=o.filter(h=>h instanceof $c);gN(n,r)&&u.forEach(h=>{h.currentSnapshot.forEach((p,y)=>c.set(y,p))});let d=fN(i).map(h=>new Map(h));d=yN(e,d,c);let f=ZN(e,d);return new $c(e,d,l,f)}};var Nc="@",Bb="@.disabled",zc=class{constructor(e,i,n,r){this.namespaceId=e,this.delegate=i,this.engine=n,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,i){return this.delegate.createElement(e,i)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,i){this.delegate.appendChild(e,i),this.engine.onInsert(this.namespaceId,i,e,!1)}insertBefore(e,i,n,r=!0){this.delegate.insertBefore(e,i,n),this.engine.onInsert(this.namespaceId,i,e,r)}removeChild(e,i,n){this.parentNode(i)&&this.engine.onRemove(this.namespaceId,i,this.delegate)}selectRootElement(e,i){return this.delegate.selectRootElement(e,i)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,i,n,r){this.delegate.setAttribute(e,i,n,r)}removeAttribute(e,i,n){this.delegate.removeAttribute(e,i,n)}addClass(e,i){this.delegate.addClass(e,i)}removeClass(e,i){this.delegate.removeClass(e,i)}setStyle(e,i,n,r){this.delegate.setStyle(e,i,n,r)}removeStyle(e,i,n){this.delegate.removeStyle(e,i,n)}setProperty(e,i,n){i.charAt(0)==Nc&&i==Bb?this.disableAnimations(e,!!n):this.delegate.setProperty(e,i,n)}setValue(e,i){this.delegate.setValue(e,i)}listen(e,i,n){return this.delegate.listen(e,i,n)}disableAnimations(e,i){this.engine.disableAnimations(e,i)}},Gp=class extends zc{constructor(e,i,n,r,s){super(i,n,r,s),this.factory=e,this.namespaceId=i}setProperty(e,i,n){i.charAt(0)==Nc?i.charAt(1)=="."&&i==Bb?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,i.slice(1),n):this.delegate.setProperty(e,i,n)}listen(e,i,n){if(i.charAt(0)==Nc){let r=QN(e),s=i.slice(1),o="";return s.charAt(0)!=Nc&&([s,o]=XN(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,i,n)}};function QN(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function XN(t){let e=t.indexOf("."),i=t.substring(0,e),n=t.slice(e+1);return[i,n]}var Wc=class{constructor(e,i,n){this.delegate=e,this.engine=i,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,i.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,i){let n="",r=this.delegate.createRenderer(e,i);if(!e||!i?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let d=()=>c.delete(r);u=new zc(n,r,this.engine,d),c.set(r,u)}return u}let s=i.id,o=i.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return i.data.animation.forEach(a),new Gp(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,n){if(e>=0&&ei(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([i,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var e1=(()=>{let e=class e extends Qr{constructor(n,r,s){super(n,r,s)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(m(X),m(Wi),m(Gi))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function t1(){return new Lc}function n1(t,e,i){return new Wc(t,e,i)}var $b=[{provide:Gi,useFactory:t1},{provide:Qr,useClass:e1},{provide:Bn,useFactory:n1,deps:[xl,Qr,L]}],Ub=[{provide:Wi,useFactory:()=>new Hc},{provide:Ms,useValue:"BrowserAnimations"},...$b],i1=[{provide:Wi,useClass:Kp},{provide:Ms,useValue:"NoopAnimations"},...$b],Hb=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:n.disableAnimations?i1:Ub}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=ce({type:e}),e.\u0275inj=le({providers:Ub,imports:[Y_]});let t=e;return t})();var zb={providers:[c_({eventCoalescing:!0}),xw(fb),V_(),Ud(Hb)]};var Gc=class t{title="Sukoa";static \u0275fac=function(i){return new(i||t)};static \u0275cmp=Fe({type:t,selectors:[["app-root"]],standalone:!0,features:[Mi],decls:5,vars:0,consts:[[1,"layout-simple"]],template:function(i,n){i&1&&(g(0,"div",0)(1,"header"),S(2," DDR Score generator for Tachi "),_(),g(3,"main"),de(4,"router-outlet"),_()())},dependencies:[Rf]})};W_(Gc,zb).catch(t=>console.error(t)); diff --git a/polyfills-SCHOHYNV.js b/polyfills-SCHOHYNV.js new file mode 100644 index 0000000..de84613 --- /dev/null +++ b/polyfills-SCHOHYNV.js @@ -0,0 +1,2 @@ +var ae=globalThis;function ee(e){return(ae.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ae.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,i){e&&e.measure&&e.measure(j,i)}n("Zone");let Y=class Y{static assertZonePatched(){if(ae.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let i=Y.current;for(;i.parent;)i=i.parent;return i}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(i,s,o=!1){if(S.hasOwnProperty(i)){let p=ae[ee("forceDuplicateZoneCheck")]===!0;if(!o&&p)throw Error("Already loaded patch: "+i)}else if(!ae["__Zone_disable_"+i]){let p="Zone:"+i;n(p),S[i]=s(ae,Y,w),a(p,p)}}get parent(){return this._parent}get name(){return this._name}constructor(i,s){this._parent=i,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,s)}get(i){let s=this.getZoneWith(i);if(s)return s._properties[i]}getZoneWith(i){let s=this;for(;s;){if(s._properties.hasOwnProperty(i))return s;s=s._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,s){if(typeof i!="function")throw new Error("Expecting function got: "+i);let o=this._zoneDelegate.intercept(this,i,s),p=this;return function(){return p.runGuarded(o,this,arguments,s)}}run(i,s,o,p){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,i,s,o,p)}finally{b=b.parent}}runGuarded(i,s=null,o,p){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,i,s,o,p)}catch(H){if(this._zoneDelegate.handleError(this,H))throw H}}finally{b=b.parent}}runTask(i,s,o){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");let p=i,{type:H,data:{isPeriodic:M=!1,isRefreshable:se=!1}={}}=i;if(i.state===q&&(H===z||H===g))return;let le=i.state!=Z;le&&p._transitionTo(Z,d);let ue=D;D=p,b={parent:b,zone:this};try{H==g&&i.data&&!M&&!se&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,p,s,o)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=i.state;if(ne!==q&&ne!==X)if(H==z||M||se&&ne===k)le&&p._transitionTo(d,Z,k);else{let h=p._zoneDelegates;this._updateTaskCount(p,-1),le&&p._transitionTo(q,Z,q),se&&(p._zoneDelegates=h)}b=b.parent,D=ue}}scheduleTask(i){if(i.zone&&i.zone!==this){let o=this;for(;o;){if(o===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);o=o.parent}}i._transitionTo(k,q);let s=[];i._zoneDelegates=s,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(o){throw i._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return i._zoneDelegates===s&&this._updateTaskCount(i,1),i.state==k&&i._transitionTo(d,k),i}scheduleMicroTask(i,s,o,p){return this.scheduleTask(new E(G,i,s,o,p,void 0))}scheduleMacroTask(i,s,o,p,H){return this.scheduleTask(new E(g,i,s,o,p,H))}scheduleEventTask(i,s,o,p,H){return this.scheduleTask(new E(z,i,s,o,p,H))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||K).name+"; Execution: "+this.name+")");if(!(i.state!==d&&i.state!==Z)){i._transitionTo(V,d,Z);try{this._zoneDelegate.cancelTask(this,i)}catch(s){throw i._transitionTo(X,V),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(i,-1),i._transitionTo(q,V),i.runCount=-1,i}}_updateTaskCount(i,s){let o=i._zoneDelegates;s==-1&&(i._zoneDelegates=null);for(let p=0;pj.hasTask(s,o),onScheduleTask:(j,i,s,o)=>j.scheduleTask(s,o),onInvokeTask:(j,i,s,o,p,H)=>j.invokeTask(s,o,p,H),onCancelTask:(j,i,s,o)=>j.cancelTask(s,o)};class f{get zone(){return this._zone}constructor(i,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=i,this._parentDelegate=s,this._forkZS=o&&(o&&o.onFork?o:s._forkZS),this._forkDlgt=o&&(o.onFork?s:s._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:s._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:s._interceptZS),this._interceptDlgt=o&&(o.onIntercept?s:s._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:s._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:s._invokeZS),this._invokeDlgt=o&&(o.onInvoke?s:s._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:s._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:s._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?s:s._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:s._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:s._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?s:s._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:s._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:s._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?s:s._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:s._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:s._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?s:s._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:s._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let p=o&&o.onHasTask,H=s&&s._hasTaskZS;(p||H)&&(this._hasTaskZS=p?o:c,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this._zone))}fork(i,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,i,s):new t(i,s)}intercept(i,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,i,s,o):s}invoke(i,s,o,p,H){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,i,s,o,p,H):s.apply(o,p)}handleError(i,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,i,s):!0}scheduleTask(i,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,i,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==G)U(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(i,s,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,i,s,o,p):s.callback.apply(o,p)}cancelTask(i,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,i,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(i,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,i,s)}catch(o){this.handleError(i,o)}}_updateTaskCount(i,s){let o=this._taskCounts,p=o[i],H=o[i]=p+s;if(H<0)throw new Error("More tasks executed then were scheduled.");if(p==0||H==0){let M={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:i};this.hasTask(this._zone,M)}}}class E{constructor(i,s,o,p,H,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=i,this.source=s,this.data=p,this.scheduleFn=H,this.cancelFn=M,!o)throw new Error("callback is not defined");this.callback=o;let se=this;i===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ae,se,this,arguments)}}static invokeTask(i,s,o){i||(i=this),Q++;try{return i.runCount++,i.zone.runTask(i,s,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(i,s,o){if(this._state===s||this._state===o)this._state=i,i==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${i}', expecting state '${s}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=ee("setTimeout"),m=ee("Promise"),C=ee("then"),_=[],P=!1,I;function x(j){if(I||ae[m]&&(I=ae[m].resolve(0)),I){let i=I[C];i||(i=I.then),i.call(I,j)}else ae[T](j,0)}function U(j){Q===0&&_.length===0&&x(J),j&&_.push(j)}function J(){if(!P){for(P=!0;_.length;){let j=_;_=[];for(let i=0;ib,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},D=null,Q=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),fe="true",he="false",Pe=ee("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var A=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return T.apply(this,Fe(arguments,a+"."+c))};return _e(m,T),m})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=A("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=A("ON_PROPERTY"+e.type));let a=this||e.target||$,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=A("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),m=Ce[T];m||(m=Ce[T]=A("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===$&&(_=$),!_)return;typeof _[m]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[m]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===$&&(C=$),!C)return null;let _=C[m];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let m=a(E,T);return m.cbIdx>=0&&typeof T[m.cbIdx]=="function"?Ge(m.name,T[m.cbIdx],m,c):f.apply(E,T)})}function _e(e,n){e[A("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=A("propagationStopped");function at(e,n){let a=(n?n(e):e)+he,t=(n?n(e):e)+fe,c=Pe+a,f=Pe+t;te[e]={},te[e][he]=c,te[e][fe]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=A(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,Z){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let X;try{k.invoke(k,d,[Z])}catch(g){X=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,Z.type,g,G)}return X};function x(k,d,Z){if(d=d||e.event,!d)return;let V=k||d.target||e,X=V[te[d.type][Z?fe:he]];if(X){let G=[];if(X.length===1){let g=I(X[0],V,d);g&&G.push(g)}else{let g=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,d){if(!k)return!1;let Z=!0;d&&d.useG!==void 0&&(Z=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let g=k;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&k[c]&&(g=k),!g||g[m])return!1;let z=d&&d.eventNameToString,S={},w=g[m]=g[c],b=g[A(f)]=g[f],D=g[A(E)]=g[E],Q=g[A(T)]=g[T],W;d&&d.prepend&&(W=g[A(d.prepend)]=g[d.prepend]);function Y(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let j=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?J:U,S.options)},i=function(r){if(!r.isRemoved){let u=te[r.eventName],v;u&&(v=u[r.capture?fe:he]);let R=v&&r.target[v];if(R){for(let y=0;yre.zone.cancelTask(re);r.call(Te,"abort",ce,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ce)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=ie),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),y)return N}};return g[c]=l(w,C,H,M,G),W&&(g[_]=l(W,P,o,M,G,!0)),g[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,y=arguments[1];if(!y)return b.apply(this,arguments);if(V&&!V(b,y,r,arguments))return;let O=te[u],N;O&&(N=O[R?fe:he]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=A("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function m(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=de(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},x=P[0];P[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:Z,handleId:V,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(V?delete E[V]:Z&&(Z[Re]=null))}};let U=Ge(n,P[0],I,T,m);if(!U)return U;let{handleId:J,handle:K,isRefreshable:q,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,q&&!k)){let d=K.refresh;K.refresh=function(){let{zone:Z,state:V}=U;return V==="notScheduled"?(U._state="scheduled",Z._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),d.call(this)}}return K??J??U}else return C.apply(e,P)}),f=de(e,a,C=>function(_,P){let I=P[0],x;Qe(I)?(x=E[I],delete E[I]):(x=I?.[Re],x?I[Re]=null:x=I),x?.type?x.cancelFn&&x.zone.cancelTask(x):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=A("xhrTask"),c=A("xhrSync"),f=A("xhrListener"),E=A("xhrScheduled"),T=A("xhrURL"),m=A("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function x(w){return w[t]}let U=I[Le],J=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[m]=!1;let Q=D[f];U||(U=D[Le],J=D[Ie]),Q&&J.call(D,K,Q);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let j=D[a.__symbol__("loadfalse")];if(D.status!==0&&j&&j.length>0){let i=w.invoke;w.invoke=function(){let s=D[a.__symbol__("loadfalse")];for(let o=0;ofunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],V.apply(w,b)}),X="XMLHttpRequest.send",G=A("fetchTaskAborting"),g=A("fetchTaskScheduling"),z=de(I,"send",()=>function(w,b){if(a.current[g]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(X,d,D,k,Z);w&&w[m]===!0&&!D.aborted&&Q.state===q&&Q.invoke()}}),S=de(I,"abort",()=>function(w,b){let D=x(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[A("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[A("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,m=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let x=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[x];typeof l=="function"&&l.call(this,h)}catch{}}function J(h){return h&&h.then}function K(h){return h}function q(h){return M.reject(h)}let k=T("state"),d=T("value"),Z=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",g=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{Y(h,l,r)}catch(u){Y(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function Y(h,l,r){let u=D();if(h===r)throw new TypeError(Q);if(h[k]===g){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{Y(h,!1,R)})(),h}if(l!==S&&r instanceof M&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==g)i(r),Y(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{Y(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[Z]===Z&&l===z&&(h[k]=h[X],h[d]=h[V]),l===S&&r instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];y&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!r&&Z===r[Z];N&&(r[V]=O,r[X]=R);let L=l.run(y,void 0,N&&y!==q&&y!==K?[]:[O]);Y(r,!0,L)}catch(O){Y(r,!1,O)}},r)}let o="function ZoneAwarePromise() { [native code] }",p=function(){},H=n.AggregateError;class M{static toString(){return o}static resolve(l){return l instanceof M?l:Y(new this(null),z,l)}static reject(l){return Y(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new H([],"All promises were rejected"));let r=[],u=0;try{for(let y of l)u++,r.push(M.resolve(y))}catch{return Promise.reject(new H([],"All promises were rejected"))}if(u===0)return Promise.reject(new H([],"All promises were rejected"));let v=!1,R=[];return new M((y,O)=>{for(let N=0;N{v||(v=!0,y(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new H(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function y(O){u(O)}for(let O of l)J(O)||(O=this.resolve(O)),O.then(R,y);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),y=2,O=0,N=[];for(let L of l){J(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,y--,y===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),y--,y===0&&u(N)):v(B)})}catch(B){v(B)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof M))throw new Error("Must be an instanceof Promise.");r[k]=g,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){Y(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(p),R=a.current;return this[k]==g?this[d].push(R,v,l,r):s(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=M);let u=new r(p);u[Z]=Z;let v=a.current;return this[k]==g?this[d].push(v,u,l,l):s(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let se=n[_]=n.Promise;n.Promise=M;let le=T("thenPatched");function ue(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new M((O,N)=>{u.call(this,O,N)}).then(v,R)},h[le]=!0}t.patchThen=ue;function ne(h){return function(l,r){let u=h.apply(l,r);if(u instanceof M)return u;let v=u.constructor;return v[le]||ue(v),u}}return se&&(ue(se),de(n,"fetch",h=>ne(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=A("OriginalDelegate"),c=A("Promise"),f=A("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,m,C){return m&&m.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=m.prototype;try{if(I.hasOwnProperty(_)){let x=e.ObjectGetOwnPropertyDescriptor(I,_);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,P),e._redefineProperty(m.prototype,_,x)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,m,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=de,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=_e,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:fe,FALSE_STR:he,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft); diff --git a/styles-JXOVLO37.css b/styles-JXOVLO37.css new file mode 100644 index 0000000..0120167 --- /dev/null +++ b/styles-JXOVLO37.css @@ -0,0 +1 @@ +.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:-webkit-box;display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:-webkit-box;display:flex;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-transition:opacity .4s cubic-bezier(.25,.8,.25,1);transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}@media screen and (-ms-high-contrast: active){.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:#00000049}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.owl-dialog-container{position:relative;pointer-events:auto;box-sizing:border-box;display:block;padding:1.5em;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border-radius:2px;overflow:auto;background:#fff;color:#000000de;width:100%;height:100%;outline:none}.owl-dt-container,.owl-dt-container *{box-sizing:border-box}.owl-dt-container{display:block;font-size:1rem;background:#fff;pointer-events:auto;z-index:1000}.owl-dt-container-row{border-bottom:1px solid rgba(0,0,0,.12)}.owl-dt-container-row:last-child{border-bottom:none}.owl-dt-calendar{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;width:100%}.owl-dt-calendar-control{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;font-size:1em;width:100%;padding:.5em;color:#000}.owl-dt-calendar-control .owl-dt-calendar-control-content{-webkit-box-flex:1;flex:1 1 auto;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center}.owl-dt-calendar-control .owl-dt-calendar-control-content .owl-dt-calendar-control-button{padding:0 .8em}.owl-dt-calendar-control .owl-dt-calendar-control-content .owl-dt-calendar-control-button:hover{background-color:#0000001f}.owl-dt-calendar-main{display:-webkit-box;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-flex:1;flex:1 1 auto;padding:0 .5em .5em;outline:0}.owl-dt-calendar-view{display:flex;-webkit-box-flex:1;flex:1 1 auto}.owl-dt-calendar-multi-year-view{display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center}.owl-dt-calendar-multi-year-view .owl-dt-calendar-table{width:calc(100% - 3em)}.owl-dt-calendar-multi-year-view .owl-dt-calendar-table .owl-dt-calendar-header th{padding-bottom:.25em}.owl-dt-calendar-table{width:100%;border-collapse:collapse;border-spacing:0}.owl-dt-calendar-table .owl-dt-calendar-header{color:#0006}.owl-dt-calendar-table .owl-dt-calendar-header .owl-dt-weekdays th{font-size:.7em;font-weight:400;text-align:center;padding-bottom:1em}.owl-dt-calendar-table .owl-dt-calendar-header .owl-dt-calendar-table-divider{position:relative;height:1px;padding-bottom:.5em}.owl-dt-calendar-table .owl-dt-calendar-header .owl-dt-calendar-table-divider:after{content:"";position:absolute;top:0;left:-.5em;right:-.5em;height:1px;background:#0000001f}.owl-dt-calendar-table .owl-dt-calendar-header .owl-dt-calendar-table-divider.owl-calendar-weeks:after{left:-1.8em}.owl-dt-calendar-table .owl-dt-calendar-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;color:#000000d9;-webkit-appearance:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.owl-dt-calendar-table .owl-dt-calendar-cell-content{position:absolute;top:5%;left:5%;display:-webkit-box;display:flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;font-size:.8em;line-height:1;border:1px solid rgba(0,0,0,0);border-radius:999px;color:inherit;cursor:pointer}.owl-dt-calendar-table .owl-dt-calendar-cell-out{opacity:.2}.owl-dt-calendar-table .owl-dt-calendar-cell-today:not(.owl-dt-calendar-cell-selected){border-color:#0006}.owl-dt-calendar-table .owl-dt-calendar-cell-selected{color:#ffffffd9;background-color:#3f51b5}.owl-dt-calendar-table .owl-dt-calendar-cell-selected.owl-dt-calendar-cell-today{box-shadow:inset 0 0 0 1px #ffffffd9}.owl-dt-calendar-table .owl-dt-calendar-cell-disabled{cursor:default}.owl-dt-calendar-table .owl-dt-calendar-cell-disabled>.owl-dt-calendar-cell-content:not(.owl-dt-calendar-cell-selected){color:#0006}.owl-dt-calendar-table .owl-dt-calendar-cell-disabled>.owl-dt-calendar-cell-content.owl-dt-calendar-cell-selected{opacity:.4}.owl-dt-calendar-table .owl-dt-calendar-cell-disabled>.owl-dt-calendar-cell-today:not(.owl-dt-calendar-cell-selected){border-color:#0003}.owl-dt-calendar-table .owl-dt-calendar-cell-active:focus>.owl-dt-calendar-cell-content:not(.owl-dt-calendar-cell-selected),.owl-dt-calendar-table :not(.owl-dt-calendar-cell-disabled):hover>.owl-dt-calendar-cell-content:not(.owl-dt-calendar-cell-selected){background-color:#0000000a}.owl-dt-calendar-table .owl-dt-calendar-cell-in-range{background:#3f51b533}.owl-dt-calendar-table .owl-dt-calendar-cell-in-range.owl-dt-calendar-cell-range-from{border-top-left-radius:999px;border-bottom-left-radius:999px}.owl-dt-calendar-table .owl-dt-calendar-cell-in-range.owl-dt-calendar-cell-range-to{border-top-right-radius:999px;border-bottom-right-radius:999px}.owl-dt-calendar-table.owl-calendar-weeks .owl-dt-calendar-cell-content{height:86%}.owl-dt-timer{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;width:100%;height:7em;padding:.5em;outline:none}.owl-dt-timer-box{position:relative;display:-webkit-inline-box;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;-webkit-box-align:center;align-items:center;width:25%;height:100%}.owl-dt-timer-content{-webkit-box-flex:1;flex:1 1 auto;display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:100%;margin:.2em 0}.owl-dt-timer-content .owl-dt-timer-input{display:block;width:2em;text-align:center;border:1px solid rgba(0,0,0,.5);border-radius:3px;outline:medium none;font-size:1.2em;padding:.2em}.owl-dt-timer-divider{display:inline-block;align-self:flex-end;position:absolute;width:.6em;height:100%;left:-.3em}.owl-dt-timer-divider:before,.owl-dt-timer-divider:after{content:"";display:inline-block;width:.35em;height:.35em;position:absolute;left:50%;border-radius:50%;-webkit-transform:translateX(-50%);transform:translate(-50%);background-color:currentColor}.owl-dt-timer-divider:before{top:35%}.owl-dt-timer-divider:after{bottom:35%}.owl-dt-control-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;margin:0;padding:0;background-color:#0000;font-size:1em;color:inherit}.owl-dt-control-button .owl-dt-control-button-content{position:relative;display:-webkit-inline-box;display:inline-flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;outline:none}.owl-dt-control-period-button .owl-dt-control-button-content{height:1.5em;padding:0 .5em;border-radius:3px;-webkit-transition:background-color .1s linear;transition:background-color .1s linear}.owl-dt-control-period-button:hover>.owl-dt-control-button-content{background-color:#0000001f}.owl-dt-control-period-button .owl-dt-control-button-arrow{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;width:1em;height:1em;margin:.1em;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.owl-dt-control-arrow-button .owl-dt-control-button-content{padding:0;border-radius:50%;width:1.5em;height:1.5em}.owl-dt-control-arrow-button[disabled]{color:#0006;cursor:default}.owl-dt-control-arrow-button svg{width:50%;height:50%;fill:currentColor}.owl-dt-inline-container,.owl-dt-popup-container{position:relative;width:18.5em;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.owl-dt-inline-container .owl-dt-calendar,.owl-dt-inline-container .owl-dt-timer,.owl-dt-popup-container .owl-dt-calendar,.owl-dt-popup-container .owl-dt-timer{width:100%}.owl-dt-inline-container .owl-dt-calendar,.owl-dt-popup-container .owl-dt-calendar{height:20.25em}.owl-dt-dialog-container{max-height:95vh;margin:-1.5em}.owl-dt-dialog-container .owl-dt-calendar{min-width:250px;min-height:330px;max-width:750px;max-height:750px}.owl-dt-dialog-container .owl-dt-timer{min-width:250px;max-width:750px}@media all and (orientation: landscape){.owl-dt-dialog-container .owl-dt-calendar{width:58vh;height:62vh}.owl-dt-dialog-container .owl-dt-timer{width:58vh}}@media all and (orientation: portrait){.owl-dt-dialog-container .owl-dt-calendar{width:80vw;height:80vw}.owl-dt-dialog-container .owl-dt-timer{width:80vw}}.owl-dt-container-buttons{display:-webkit-box;display:flex;width:100%;height:2em;color:#3f51b5}.owl-dt-container-control-button{font-size:1em;width:50%;height:100%;border-radius:0}.owl-dt-container-control-button .owl-dt-control-button-content{height:100%;width:100%;-webkit-transition:background-color .1s linear;transition:background-color .1s linear}.owl-dt-container-control-button:hover .owl-dt-control-button-content{background-color:#0000001a}.owl-dt-container-info{padding:0 .5em;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.owl-dt-container-info .owl-dt-container-range{outline:none}.owl-dt-container-info .owl-dt-container-range .owl-dt-container-range-content{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;padding:.5em 0;font-size:.8em}.owl-dt-container-info .owl-dt-container-range:last-child{border-top:1px solid rgba(0,0,0,.12)}.owl-dt-container-info .owl-dt-container-info-active{color:#3f51b5}.owl-dt-container-disabled,.owl-dt-trigger-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none;cursor:default!important}.owl-dt-timer-hour12{display:-webkit-box;display:flex;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;color:#3f51b5}.owl-dt-timer-hour12 .owl-dt-timer-hour12-box{border:1px solid currentColor;border-radius:2px;-webkit-transition:background .2s ease;transition:background .2s ease}.owl-dt-timer-hour12 .owl-dt-timer-hour12-box .owl-dt-control-button-content{width:100%;height:100%;padding:.5em}.owl-dt-timer-hour12 .owl-dt-timer-hour12-box:focus .owl-dt-control-button-content,.owl-dt-timer-hour12 .owl-dt-timer-hour12-box:hover .owl-dt-control-button-content{background:#3f51b5;color:#fff}.owl-dt-calendar-only-current-month .owl-dt-calendar-cell-out{visibility:hidden;cursor:default}.owl-dt-inline{display:inline-block}.owl-dt-control{outline:none;cursor:pointer}.owl-dt-control .owl-dt-control-content{outline:none}.owl-dt-control:focus>.owl-dt-control-content{background-color:#0000001f}.owl-dt-control:not(:-moz-focusring):focus>.owl-dt-control-content{box-shadow:none}.owl-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.owl-dt-container{background:var(--light-default)}.owl-dt-calendar-table{display:table}.owl-dt-calendar-table,.owl-dt-calendar-header,.owl-dt-control,.owl-dt-weekday,.owl-dt-calendar-cell{color:var(--default)!important}.owl-dt-weekday,.owl-dt-calendar-cell{border:none;padding-left:0;padding-right:0}.owl-dt-calendar-table-divider{border:none}