From b5fea8af3dc2ee2eafb7e5c9b8e685735351a39e Mon Sep 17 00:00:00 2001 From: The Buildbot Date: Tue, 21 Nov 2023 14:40:59 +0000 Subject: [PATCH] Auto-generated commit [ci skip] Triggered by commit: https://github.com/angular-schule/buch/commit/23c2a481d87d8382e559eaa4c4a9f51edf2d2e39 --- 3rdpartylicenses.txt | 78 +++++++++++++----- 404.html | 15 ---- browser/favicon.ico | Bin 0 -> 15086 bytes index.html => browser/index.html | 5 +- browser/main-TGJ47NEU.js | 10 +++ .../media/loader-5Y6PJRQU.svg | 0 .../media/search-2CXVUIUQ.svg | 0 browser/polyfills-LZBJRJJE.js | 2 + browser/styles-ILYRG3NJ.css | 1 + favicon.ico | Bin 948 -> 0 bytes main.033b11779935edd5.js | 1 - polyfills.b3066e285bfbf9c7.js | 1 - runtime.75ef82cb034b83f6.js | 1 - styles.e533e02bee6925e8.css | 1 - 14 files changed, 73 insertions(+), 42 deletions(-) delete mode 100644 404.html create mode 100644 browser/favicon.ico rename index.html => browser/index.html (62%) create mode 100644 browser/main-TGJ47NEU.js rename loader.ee3cf4c614872a86.svg => browser/media/loader-5Y6PJRQU.svg (100%) rename search.d0af5a2290579f05.svg => browser/media/search-2CXVUIUQ.svg (100%) create mode 100644 browser/polyfills-LZBJRJJE.js create mode 100644 browser/styles-ILYRG3NJ.css delete mode 100644 favicon.ico delete mode 100644 main.033b11779935edd5.js delete mode 100644 polyfills.b3066e285bfbf9c7.js delete mode 100644 runtime.75ef82cb034b83f6.js delete mode 100644 styles.e533e02bee6925e8.css diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt index b8b1088..f8e6ba0 100644 --- a/3rdpartylicenses.txt +++ b/3rdpartylicenses.txt @@ -1,26 +1,13 @@ -@angular/common -MIT -@angular/core -MIT +-------------------------------------------------------------------------------- +Package: @angular/core +License: "MIT" -@angular/forms -MIT -@angular/platform-browser -MIT +-------------------------------------------------------------------------------- +Package: rxjs +License: "Apache-2.0" -@angular/router -MIT - -angular-date-value-accessor -MIT - -book-monkey5-styles -MIT - -rxjs -Apache-2.0 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ @@ -224,9 +211,51 @@ Apache-2.0 limitations under the License. +-------------------------------------------------------------------------------- +Package: tslib +License: "0BSD" + +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +-------------------------------------------------------------------------------- +Package: @angular/common +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/platform-browser +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/router +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: @angular/forms +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: angular-date-value-accessor +License: "MIT" + + +-------------------------------------------------------------------------------- +Package: zone.js +License: "MIT" -zone.js -MIT The MIT License Copyright (c) 2010-2023 Google LLC. https://angular.io/license @@ -248,3 +277,10 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +-------------------------------------------------------------------------------- +Package: book-monkey5-styles +License: "MIT" + + +-------------------------------------------------------------------------------- diff --git a/404.html b/404.html deleted file mode 100644 index d9165bb..0000000 --- a/404.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - BookMonkey - - - - - - -
Loading ...
-
- - diff --git a/browser/favicon.ico b/browser/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/browser/index.html similarity index 62% rename from index.html rename to browser/index.html index d9165bb..e63f6bb 100644 --- a/index.html +++ b/browser/index.html @@ -6,10 +6,11 @@ - +
Loading ...
- + diff --git a/browser/main-TGJ47NEU.js b/browser/main-TGJ47NEU.js new file mode 100644 index 0000000..41b7896 --- /dev/null +++ b/browser/main-TGJ47NEU.js @@ -0,0 +1,10 @@ +var $m=Object.defineProperty,Um=Object.defineProperties;var Hm=Object.getOwnPropertyDescriptors;var Tl=Object.getOwnPropertySymbols;var zm=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable;var xl=(t,e,r)=>e in t?$m(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,g=(t,e)=>{for(var r in e||={})zm.call(e,r)&&xl(t,r,e[r]);if(Tl)for(var r of Tl(e))Gm.call(e,r)&&xl(t,r,e[r]);return t},H=(t,e)=>Um(t,Hm(e));var Al=null;var Ws=1;function ve(t){let e=Al;return Al=t,e}var Nl={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 Wm(t){if(!(Ys(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ws)){if(!t.producerMustRecompute(t)&&!qs(t)){t.dirty=!1,t.lastCleanEpoch=Ws;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ws}}function Ol(t){return t&&(t.nextProducerIndex=0),ve(t)}function Rl(t,e){if(ve(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Ys(t))for(let r=t.nextProducerIndex;rt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function qs(t){bi(t);for(let e=0;e0}function bi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function qm(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Zm(){throw new Error}var Ym=Zm;function Pl(t){Ym=t}function N(t){return typeof t=="function"}function _n(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Ei=_n(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription: +${r.map((n,i)=>`${i+1}) ${n.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=r});function nn(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ae=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:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let o of r)o.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(N(n))try{n()}catch(o){e=o instanceof Ei?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{kl(o)}catch(s){e=e??[],s instanceof Ei?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Ei(e)}}add(e){var r;if(e&&e!==this)if(this.closed)kl(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&nn(r,e)}remove(e){let{_finalizers:r}=this;r&&nn(r,e),e instanceof t&&e._removeParent(this)}};ae.EMPTY=(()=>{let t=new ae;return t.closed=!0,t})();var Qs=ae.EMPTY;function Ii(t){return t instanceof ae||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function kl(t){N(t)?t():t.unsubscribe()}var Ge={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Mn={setTimeout(t,e,...r){let{delegate:n}=Mn;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Mn;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function _i(t){Mn.setTimeout(()=>{let{onUnhandledError:e}=Ge;if(e)e(t);else throw t})}function Cr(){}var Ll=(()=>Ks("C",void 0,void 0))();function Vl(t){return Ks("E",void 0,t)}function jl(t){return Ks("N",t,void 0)}function Ks(t,e,r){return{kind:t,value:e,error:r}}var rn=null;function Sn(t){if(Ge.useDeprecatedSynchronousErrorHandling){let e=!rn;if(e&&(rn={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=rn;if(rn=null,r)throw n}}else t()}function Bl(t){Ge.useDeprecatedSynchronousErrorHandling&&rn&&(rn.errorThrown=!0,rn.error=t)}var on=class extends ae{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Ii(e)&&e.add(this)):this.destination=Jm}static create(e,r,n){return new Ct(e,r,n)}next(e){this.isStopped?Xs(jl(e),this):this._next(e)}error(e){this.isStopped?Xs(Vl(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xs(Ll,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()}}},Qm=Function.prototype.bind;function Js(t,e){return Qm.call(t,e)}var ea=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){Mi(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){Mi(n)}else Mi(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){Mi(r)}}},Ct=class extends on{constructor(e,r,n){super();let i;if(N(e)||!e)i={next:e??void 0,error:r??void 0,complete:n??void 0};else{let o;this&&Ge.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Js(e.next,o),error:e.error&&Js(e.error,o),complete:e.complete&&Js(e.complete,o)}):i=e}this.destination=new ea(i)}};function Mi(t){Ge.useDeprecatedSynchronousErrorHandling?Bl(t):_i(t)}function Km(t){throw t}function Xs(t,e){let{onStoppedNotification:r}=Ge;r&&Mn.setTimeout(()=>r(t,e))}var Jm={closed:!0,next:Cr,error:Km,complete:Cr};var Tn=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")();function ye(t){return t}function ta(...t){return na(t)}function na(t){return t.length===0?ye:t.length===1?t[0]:function(r){return t.reduce((n,i)=>i(n),r)}}var B=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,i){let o=ev(r)?r:new Ct(r,n,i);return Sn(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=$l(n),new n((i,o)=>{let s=new Ct({next:a=>{try{r(a)}catch(u){o(u),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[Tn](){return this}pipe(...r){return na(r)(this)}toPromise(r){return r=$l(r),new r((n,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>n(o))})}}return t.create=e=>new t(e),t})();function $l(t){var e;return(e=t??Ge.Promise)!==null&&e!==void 0?e:Promise}function Xm(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}function ev(t){return t&&t instanceof on||Xm(t)&&Ii(t)}function ra(t){return N(t?.lift)}function F(t){return e=>{if(ra(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function P(t,e,r,n,i){return new ia(t,e,r,n,i)}var ia=class extends on{constructor(e,r,n,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(u){e.error(u)}}:super._next,this._error=i?function(a){try{i(a)}catch(u){e.error(u)}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:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function xn(){return F((t,e)=>{let r=null;t._refCount++;let n=P(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let i=t._connection,o=r;r=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var An=class extends B{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ra(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 ae;let r=this.getSubject();e.add(this.source.subscribe(P(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=ae.EMPTY)}return e}refCount(){return xn()(this)}};var Ul=_n(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var de=(()=>{class t extends B{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Si(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new Ul}next(r){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){Sn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:i,observers:o}=this;return n||i?Qs:(this.currentObservers=null,o.push(r),new ae(()=>{this.currentObservers=null,nn(o,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:i,isStopped:o}=this;n?r.error(i):o&&r.complete()}asObservable(){let r=new B;return r.source=this,r}}return t.create=(e,r)=>new Si(e,r),t})(),Si=class extends de{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Qs}};var le=class extends de{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var oa={now(){return(oa.delegate||Date).now()},delegate:void 0};var Ti=class extends ae{constructor(e,r){super()}schedule(e,r=0){return this}};var wr={setInterval(t,e,...r){let{delegate:n}=wr;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=wr;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var xi=class extends Ti{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let i=this.id,o=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(o,i,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,r),this}requestAsyncId(e,r,n=0){return wr.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&wr.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,i;try{this.work(e)}catch(o){n=!0,i=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),i}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;this.work=this.state=this.scheduler=null,this.pending=!1,nn(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var Nn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};Nn.now=oa.now;var Ai=class extends Nn{constructor(e,r=Nn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Hl=new Ai(xi);var Ee=new B(t=>t.complete());function zl(t){return t&&N(t.schedule)}function sa(t){return t[t.length-1]}function Ni(t){return N(sa(t))?t.pop():void 0}function nt(t){return zl(sa(t))?t.pop():void 0}function Gl(t,e){return typeof sa(t)=="number"?t.pop():e}function ql(t,e,r,n){function i(o){return o instanceof r?o:new r(function(s){s(o)})}return new(r||(r=Promise))(function(o,s){function a(l){try{c(n.next(l))}catch(d){s(d)}}function u(l){try{c(n.throw(l))}catch(d){s(d)}}function c(l){l.done?o(l.value):i(l.value).then(a,u)}c((n=n.apply(t,e||[])).next())})}function Wl(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.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 sn(t){return this instanceof sn?(this.v=t,this):new sn(t)}function Zl(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(f){n[f]&&(i[f]=function(h){return new Promise(function(E,V){o.push([f,h,E,V])>1||a(f,h)})})}function a(f,h){try{u(n[f](h))}catch(E){d(o[0][3],E)}}function u(f){f.value instanceof sn?Promise.resolve(f.value.v).then(c,l):d(o[0][2],f)}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),o.shift(),o.length&&a(o[0][0],o[0][1])}}function Yl(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof Wl=="function"?Wl(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=t[o]&&function(s){return new Promise(function(a,u){s=t[o](s),i(a,u,s.done,s.value)})}}function i(o,s,a,u){Promise.resolve(u).then(function(c){o({value:c,done:a})},s)}}var Oi=t=>t&&typeof t.length=="number"&&typeof t!="function";function Ri(t){return N(t?.then)}function Fi(t){return N(t[Tn])}function Pi(t){return Symbol.asyncIterator&&N(t?.[Symbol.asyncIterator])}function ki(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 tv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=tv();function Vi(t){return N(t?.[Li])}function ji(t){return Zl(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:i}=yield sn(r.read());if(i)return yield sn(void 0);yield yield sn(n)}}finally{r.releaseLock()}})}function Bi(t){return N(t?.getReader)}function K(t){if(t instanceof B)return t;if(t!=null){if(Fi(t))return nv(t);if(Oi(t))return rv(t);if(Ri(t))return iv(t);if(Pi(t))return Ql(t);if(Vi(t))return ov(t);if(Bi(t))return sv(t)}throw ki(t)}function nv(t){return new B(e=>{let r=t[Tn]();if(N(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function rv(t){return new B(e=>{for(let r=0;r{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,_i)})}function ov(t){return new B(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Ql(t){return new B(e=>{av(t,e).catch(r=>e.error(r))})}function sv(t){return Ql(ji(t))}function av(t,e){var r,n,i,o;return ql(this,void 0,void 0,function*(){try{for(r=Yl(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{n&&!n.done&&(o=r.return)&&(yield o.call(r))}finally{if(i)throw i.error}}e.complete()})}function Ie(t,e,r,n=0,i=!1){let o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function $i(t,e=0){return F((r,n)=>{r.subscribe(P(n,i=>Ie(n,t,()=>n.next(i),e),()=>Ie(n,t,()=>n.complete(),e),i=>Ie(n,t,()=>n.error(i),e)))})}function Ui(t,e=0){return F((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function Kl(t,e){return K(t).pipe(Ui(e),$i(e))}function Jl(t,e){return K(t).pipe(Ui(e),$i(e))}function Xl(t,e){return new B(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function ed(t,e){return new B(r=>{let n;return Ie(r,e,()=>{n=t[Li](),Ie(r,e,()=>{let i,o;try{({value:i,done:o}=n.next())}catch(s){r.error(s);return}o?r.complete():r.next(i)},0,!0)}),()=>N(n?.return)&&n.return()})}function Hi(t,e){if(!t)throw new Error("Iterable cannot be null");return new B(r=>{Ie(r,e,()=>{let n=t[Symbol.asyncIterator]();Ie(r,e,()=>{n.next().then(i=>{i.done?r.complete():r.next(i.value)})},0,!0)})})}function td(t,e){return Hi(ji(t),e)}function nd(t,e){if(t!=null){if(Fi(t))return Kl(t,e);if(Oi(t))return Xl(t,e);if(Ri(t))return Jl(t,e);if(Pi(t))return Hi(t,e);if(Vi(t))return ed(t,e);if(Bi(t))return td(t,e)}throw ki(t)}function z(t,e){return e?nd(t,e):K(t)}function I(...t){let e=nt(t);return z(t,e)}function On(t,e){let r=N(t)?t:()=>t,n=i=>i.error(r());return new B(e?i=>e.schedule(n,0,i):n)}function aa(t){return!!t&&(t instanceof B||N(t.lift)&&N(t.subscribe))}var wt=_n(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function A(t,e){return F((r,n)=>{let i=0;r.subscribe(P(n,o=>{n.next(t.call(e,o,i++))}))})}var{isArray:uv}=Array;function cv(t,e){return uv(e)?t(...e):t(e)}function zi(t){return A(e=>cv(t,e))}var{isArray:lv}=Array,{getPrototypeOf:dv,prototype:fv,keys:hv}=Object;function Gi(t){if(t.length===1){let e=t[0];if(lv(e))return{args:e,keys:null};if(pv(e)){let r=hv(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function pv(t){return t&&typeof t=="object"&&dv(t)===fv}function Wi(t,e){return t.reduce((r,n,i)=>(r[n]=e[i],r),{})}function br(...t){let e=nt(t),r=Ni(t),{args:n,keys:i}=Gi(t);if(n.length===0)return z([],e);let o=new B(gv(n,e,i?s=>Wi(i,s):ye));return r?o.pipe(zi(r)):o}function gv(t,e,r=ye){return n=>{rd(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let u=0;u{let c=z(t[u],e),l=!1;c.subscribe(P(n,d=>{o[u]=d,l||(l=!0,a--),a||n.next(r(o.slice()))},()=>{--s||n.complete()}))},n)},n)}}function rd(t,e,r){t?Ie(r,t,e):e()}function id(t,e,r,n,i,o,s,a){let u=[],c=0,l=0,d=!1,f=()=>{d&&!u.length&&!c&&e.complete()},h=V=>c{o&&e.next(V),c++;let T=!1;K(r(V,l++)).subscribe(P(e,_=>{i?.(_),o?h(_):e.next(_)},()=>{T=!0},void 0,()=>{if(T)try{for(c--;u.length&&cE(_)):E(_)}f()}catch(_){e.error(_)}}))};return t.subscribe(P(e,h,()=>{d=!0,f()})),()=>{a?.()}}function ue(t,e,r=1/0){return N(e)?ue((n,i)=>A((o,s)=>e(n,o,i,s))(K(t(n,i))),r):(typeof e=="number"&&(r=e),F((n,i)=>id(n,i,t,r)))}function rt(t=1/0){return ue(ye,t)}function od(){return rt(1)}function Rn(...t){return od()(z(t,nt(t)))}function qi(t){return new B(e=>{K(t()).subscribe(e)})}function ua(...t){let e=Ni(t),{args:r,keys:n}=Gi(t),i=new B(o=>{let{length:s}=r;if(!s){o.complete();return}let a=new Array(s),u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||o.next(n?Wi(n,a):a),o.complete())}))}});return e?i.pipe(zi(e)):i}function ca(...t){let e=nt(t),r=Gl(t,1/0),n=t;return n.length?n.length===1?K(n[0]):rt(r)(z(n,e)):Ee}function pe(t,e){return F((r,n)=>{let i=0;r.subscribe(P(n,o=>t.call(e,o,i++)&&n.next(o)))})}function Fe(t){return F((e,r)=>{let n=null,i=!1,o;n=e.subscribe(P(r,void 0,void 0,s=>{o=K(t(s,Fe(t)(e))),n?(n.unsubscribe(),n=null,o.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,o.subscribe(r))})}function sd(t,e,r,n,i){return(o,s)=>{let a=r,u=e,c=0;o.subscribe(P(s,l=>{let d=c++;u=a?t(u,l,d):(a=!0,l),n&&s.next(u)},i&&(()=>{a&&s.next(u),s.complete()})))}}function bt(t,e){return N(e)?ue(t,e,1):ue(t,1)}function la(t,e=Hl){return F((r,n)=>{let i=null,o=null,s=null,a=()=>{if(i){i.unsubscribe(),i=null;let c=o;o=null,n.next(c)}};function u(){let c=s+t,l=e.now();if(l{o=c,s=e.now(),i||(i=e.schedule(u,t),n.add(i))},()=>{a(),n.complete()},void 0,()=>{o=i=null}))})}function Ft(t){return F((e,r)=>{let n=!1;e.subscribe(P(r,i=>{n=!0,r.next(i)},()=>{n||r.next(t),r.complete()}))})}function Et(t){return t<=0?()=>Ee:F((e,r)=>{let n=0;e.subscribe(P(r,i=>{++n<=t&&(r.next(i),t<=n&&r.complete())}))})}function da(t){return A(()=>t)}function Fn(t,e=ye){return t=t??mv,F((r,n)=>{let i,o=!0;r.subscribe(P(n,s=>{let a=e(s);(o||!t(i,a))&&(o=!1,i=a,n.next(s))}))})}function mv(t,e){return t===e}function Zi(t=vv){return F((e,r)=>{let n=!1;e.subscribe(P(r,i=>{n=!0,r.next(i)},()=>n?r.complete():r.error(t())))})}function vv(){return new wt}function Pt(t){return F((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function it(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((i,o)=>t(i,o,n)):ye,Et(1),r?Ft(e):Zi(()=>new wt))}function Pn(t){return t<=0?()=>Ee:F((e,r)=>{let n=[];e.subscribe(P(r,i=>{n.push(i),t{for(let i of n)r.next(i);r.complete()},void 0,()=>{n=null}))})}function fa(t,e){let r=arguments.length>=2;return n=>n.pipe(t?pe((i,o)=>t(i,o,n)):ye,Pn(1),r?Ft(e):Zi(()=>new wt))}function ha(t,e){return F(sd(t,e,arguments.length>=2,!0))}function Yi(t={}){let{connector:e=()=>new de,resetOnError:r=!0,resetOnComplete:n=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,u,c=0,l=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},E=()=>{let V=s;h(),V?.unsubscribe()};return F((V,T)=>{c++,!d&&!l&&f();let _=u=u??e();T.add(()=>{c--,c===0&&!d&&!l&&(a=pa(E,i))}),_.subscribe(T),!s&&c>0&&(s=new Ct({next:ie=>_.next(ie),error:ie=>{d=!0,f(),a=pa(h,r,ie),_.error(ie)},complete:()=>{l=!0,f(),a=pa(h,n),_.complete()}}),K(V).subscribe(s))})(o)}}function pa(t,e,...r){if(e===!0){t();return}if(e===!1)return;let n=new Ct({next:()=>{n.unsubscribe(),t()}});return K(e(...r)).subscribe(n)}function ga(...t){let e=nt(t);return F((r,n)=>{(e?Rn(t,r,e):Rn(t,r)).subscribe(n)})}function oe(t,e){return F((r,n)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&n.complete();r.subscribe(P(n,u=>{i?.unsubscribe();let c=0,l=o++;K(t(u,l)).subscribe(i=P(n,d=>n.next(e?e(u,d,l,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function ma(t){return F((e,r)=>{K(t).subscribe(P(r,()=>r.complete(),Cr)),!r.closed&&e.subscribe(r)})}function ee(t,e,r){let n=N(t)||e||r?{next:t,error:e,complete:r}:t;return n?F((i,o)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;i.subscribe(P(o,u=>{var c;(c=n.next)===null||c===void 0||c.call(n,u),o.next(u)},()=>{var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),o.complete()},u=>{var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),o.error(u)},()=>{var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):ye}function W(t){for(let e in t)if(t[e]===W)return e;throw Error("Could not find renamed property on target object.")}function Qi(t,e){for(let r in e)e.hasOwnProperty(r)&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function me(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(me).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 r=e.indexOf(` +`);return r===-1?e:e.substring(0,r)}function ad(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var yv=W({__forward_ref__:W});function ft(t){return t.__forward_ref__=ft,t.toString=function(){return me(this())},t}function De(t){return Gd(t)?t():t}function Gd(t){return typeof t=="function"&&t.hasOwnProperty(yv)&&t.__forward_ref__===ft}function Wd(t){return t&&!!t.\u0275providers}var qd="https://g.co/ng/security#xss",w=class extends Error{constructor(e,r){super(Ao(e,r)),this.code=e}};function Ao(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}var Dv=W({\u0275cmp:W}),Cv=W({\u0275dir:W}),wv=W({\u0275pipe:W}),bv=W({\u0275mod:W}),uo=W({\u0275fac:W}),Er=W({__NG_ELEMENT_ID__:W}),ud=W({__NG_ENV_ID__:W});function No(t){return typeof t=="string"?t:t==null?"":String(t)}function Ev(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():No(t)}function Iv(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new w(-200,`Circular dependency in DI detected for ${t}${r}`)}function Eu(t,e){let r=e?` in ${e}`:"";throw new w(-201,!1)}function _v(t,e){t==null&&Mv(e,t,null,"!=")}function Mv(t,e,r,n){throw new Error(`ASSERTION ERROR: ${t}`+(n==null?"":` [Expected=> ${r} ${n} ${e} <=Actual]`))}function C(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function q(t){return{providers:t.providers||[],imports:t.imports||[]}}function Oo(t){return cd(t,Yd)||cd(t,Qd)}function Zd(t){return Oo(t)!==null}function cd(t,e){return t.hasOwnProperty(e)?t[e]:null}function Sv(t){let e=t&&(t[Yd]||t[Qd]);return e||null}function ld(t){return t&&(t.hasOwnProperty(dd)||t.hasOwnProperty(Tv))?t[dd]:null}var Yd=W({\u0275prov:W}),dd=W({\u0275inj:W}),Qd=W({ngInjectableDef:W}),Tv=W({ngInjectorDef:W}),j=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}(j||{}),Na;function Kd(){return Na}function _e(t){let e=Na;return Na=t,e}function Jd(t,e,r){let n=Oo(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&j.Optional)return null;if(e!==void 0)return e;Eu(me(t),"Injector")}var Ce=globalThis;var b=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=C({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};var xv={},_r=xv,Oa="__NG_DI_FLAG__",co="ngTempTokenPath",Av="ngTokenPath",Nv=/\n/gm,Ov="\u0275",fd="__source",Bn;function Rv(){return Bn}function kt(t){let e=Bn;return Bn=t,e}function Fv(t,e=j.Default){if(Bn===void 0)throw new w(-203,!1);return Bn===null?Jd(t,void 0,e):Bn.get(t,e&j.Optional?null:void 0,e)}function v(t,e=j.Default){return(Kd()||Fv)(De(t),e)}function p(t,e=j.Default){return v(t,Ro(e))}function Ro(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Ra(t){let e=[];for(let r=0;r ");else if(typeof e=="object"){let o=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):me(a)))}i=`{${o.join(", ")}}`}return`${r}${n?"("+n+")":""}[${i}]: ${t.replace(Nv,` + `)}`}function Rr(t){return{toString:t}.toString()}var ef=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(ef||{}),ut=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(ut||{}),Un={},Pe=[];function tf(t,e,r){let n=t.length;for(;;){let i=t.indexOf(e,r);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===n||t.charCodeAt(i+o)<=32)return i}r=i+1}}function Fa(t,e,r){let n=0;for(;ne){s=o-1;break}}}for(;oo?f="":f=i[d+1].toLowerCase();let h=n&8?f:null;if(h&&tf(h,c,0)!==-1||n&2&&c!==f){if(We(n))return!1;s=!0}}}}return We(n)||s}function We(t){return(t&1)===0}function Uv(t,e,r,n){if(e===null)return-1;let i=0;if(n||!r){let o=!1;for(;i-1)for(r++;r0?'="'+a+'"':"")+"]"}else n&8?i+="."+s:n&4&&(i+=" "+s);else i!==""&&!We(s)&&(e+=pd(o,i),i=""),n=s,o=o||!We(n);r++}return i!==""&&(e+=pd(o,i)),e}function qv(t){return t.map(Wv).join(",")}function Zv(t){let e=[],r=[],n=1,i=2;for(;n{let e=df(t),r=H(g({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===ef.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||ut.Emulated,styles:t.styles||Pe,_:null,schemas:t.schemas||null,tView:null,id:""});ff(r);let n=t.dependencies;return r.directiveDefs=md(n,!1),r.pipeDefs=md(n,!0),r.id=Kv(r),r})}function Yv(t){return jt(t)||af(t)}function Qv(t){return t!==null}function Z(t){return Rr(()=>({type:t.type,bootstrap:t.bootstrap||Pe,declarations:t.declarations||Pe,imports:t.imports||Pe,exports:t.exports||Pe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function gd(t,e){if(t==null)return Un;let r={};for(let n in t)if(t.hasOwnProperty(n)){let i=t[n],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),r[i]=n,e&&(e[i]=o)}return r}function se(t){return Rr(()=>{let e=df(t);return ff(e),e})}function sf(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone===!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function jt(t){return t[Dv]||null}function af(t){return t[Cv]||null}function uf(t){return t[wv]||null}function cf(t){let e=jt(t)||af(t)||uf(t);return e!==null?e.standalone:!1}function lf(t,e){let r=t[bv]||null;if(!r&&e===!0)throw new Error(`Type ${me(t)} does not have '\u0275mod' property.`);return r}function df(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||Un,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Pe,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:gd(t.inputs,e),outputs:gd(t.outputs),debugInfo:null}}function ff(t){t.features?.forEach(e=>e(t))}function md(t,e){if(!t)return null;let r=e?uf:Yv;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Qv)}function Kv(t){let e=0,r=[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 i of r)e=Math.imul(31,e)+i.charCodeAt(0)<<0;return e+=2147483647+1,"c"+e}var _t=0,k=1,S=2,ce=3,qe=4,Qe=5,Pa=6,Sr=7,ke=8,Hn=9,zn=10,fe=11,Tr=12,vd=13,Qn=14,ct=15,Fr=16,kn=17,at=18,Fo=19,hf=20,Lt=21,va=22,un=23,Ze=25,pf=1;var cn=7,lo=8,Gn=9,Ne=10,Wn=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t[t.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",t}(Wn||{});function Vt(t){return Array.isArray(t)&&typeof t[pf]=="object"}function Ye(t){return Array.isArray(t)&&t[pf]===!0}function gf(t){return(t.flags&4)!==0}function Po(t){return t.componentOffset>-1}function Iu(t){return(t.flags&1)===1}function Bt(t){return!!t.template}function Jv(t){return(t[S]&512)!==0}function ln(t,e){let r=t.hasOwnProperty(uo);return r?t[uo]:null}var ka=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function Ke(){return mf}function mf(t){return t.type.prototype.ngOnChanges&&(t.setInput=ey),Xv}Ke.ngInherit=!0;function Xv(){let t=yf(this),e=t?.current;if(e){let r=t.previous;if(r===Un)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function ey(t,e,r,n){let i=this.declaredInputs[r],o=yf(t)||ty(t,{previous:Un,current:null}),s=o.current||(o.current={}),a=o.previous,u=a[i];s[i]=new ka(u&&u.currentValue,e,a===Un),t[n]=e}var vf="__ngSimpleChanges__";function yf(t){return t[vf]||null}function ty(t,e){return t[vf]=e}var yd=null;var ot=function(t,e,r){yd?.(t,e,r)},ny="svg",ry="math";function lt(t){for(;Array.isArray(t);)t=t[_t];return t}function Df(t,e){return lt(e[t])}function Le(t,e){return lt(e[t.index])}function Cf(t,e){return t.data[e]}function wf(t,e){return t[e]}function Ut(t,e){let r=e[t];return Vt(r)?r:r[_t]}function iy(t){return(t[S]&4)===4}function _u(t){return(t[S]&128)===128}function oy(t){return Ye(t[ce])}function fo(t,e){return e==null?null:t[e]}function bf(t){t[kn]=0}function sy(t){t[S]&1024||(t[S]|=1024,_u(t)&&ko(t))}function ay(t,e){for(;t>0;)e=e[Qn],t--;return e}function Ef(t){t[S]&9216&&ko(t)}function ko(t){let e=t[ce];for(;e!==null&&!(Ye(e)&&e[S]&Wn.HasChildViewsToRefresh||Vt(e)&&e[S]&8192);){if(Ye(e))e[S]|=Wn.HasChildViewsToRefresh;else if(e[S]|=8192,!_u(e))break;e=e[ce]}}function If(t,e){if((t[S]&256)===256)throw new w(911,!1);t[Lt]===null&&(t[Lt]=[]),t[Lt].push(e)}function uy(t,e){if(t[Lt]===null)return;let r=t[Lt].indexOf(e);r!==-1&&t[Lt].splice(r,1)}var L={lFrame:Nf(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cy(){return L.lFrame.elementDepthCount}function ly(){L.lFrame.elementDepthCount++}function dy(){L.lFrame.elementDepthCount--}function _f(){return L.bindingsEnabled}function fy(){return L.skipHydrationRootTNode!==null}function hy(t){return L.skipHydrationRootTNode===t}function py(){L.skipHydrationRootTNode=null}function $(){return L.lFrame.lView}function Me(){return L.lFrame.tView}function Mt(t){return L.lFrame.contextLView=t,t[ke]}function St(t){return L.lFrame.contextLView=null,t}function Se(){let t=Mf();for(;t!==null&&t.type===64;)t=t.parent;return t}function Mf(){return L.lFrame.currentTNode}function gy(){let t=L.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function Pr(t,e){let r=L.lFrame;r.currentTNode=t,r.isParent=e}function Sf(){return L.lFrame.isParent}function my(){L.lFrame.isParent=!1}function vy(){return L.lFrame.contextLView}function Mu(){let t=L.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function yy(t){return L.lFrame.bindingIndex=t}function Su(){return L.lFrame.bindingIndex++}function Dy(t){let e=L.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function Cy(){return L.lFrame.inI18n}function wy(t,e){let r=L.lFrame;r.bindingIndex=r.bindingRootIndex=t,La(e)}function by(){return L.lFrame.currentDirectiveIndex}function La(t){L.lFrame.currentDirectiveIndex=t}function Ey(t){let e=L.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Tf(){return L.lFrame.currentQueryIndex}function Tu(t){L.lFrame.currentQueryIndex=t}function Iy(t){let e=t[k];return e.type===2?e.declTNode:e.type===1?t[Qe]:null}function xf(t,e,r){if(r&j.SkipSelf){let i=e,o=t;for(;i=i.parent,i===null&&!(r&j.Host);)if(i=Iy(o),i===null||(o=o[Qn],i.type&10))break;if(i===null)return!1;e=i,t=o}let n=L.lFrame=Af();return n.currentTNode=e,n.lView=t,!0}function xu(t){let e=Af(),r=t[k];L.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function Af(){let t=L.lFrame,e=t===null?null:t.child;return e===null?Nf(t):e}function Nf(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 Of(){let t=L.lFrame;return L.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Rf=Of;function Au(){let t=Of();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 _y(t){return(L.lFrame.contextLView=ay(t,L.lFrame.contextLView))[ke]}function Kn(){return L.lFrame.selectedIndex}function dn(t){L.lFrame.selectedIndex=t}function Ff(){let t=L.lFrame;return Cf(t.tView,t.selectedIndex)}function My(){return L.lFrame.currentNamespace}var Pf=!0;function Nu(){return Pf}function Ou(t){Pf=t}function Sy(t,e,r){let{ngOnChanges:n,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(n){let s=mf(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}i&&(r.preOrderHooks??=[]).push(0-t,i),o&&((r.preOrderHooks??=[]).push(t,o),(r.preOrderCheckHooks??=[]).push(t,o))}function Ru(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r=n)break}else e[u]<0&&(t[kn]+=65536),(a>14>16&&(t[S]&3)===e&&(t[S]+=16384,Dd(a,o)):Dd(a,o)}var $n=-1,fn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function xy(t){return t instanceof fn}function Ay(t){return(t.flags&8)!==0}function Ny(t){return(t.flags&16)!==0}function Lf(t){return t!==$n}function ho(t){let e=t&32767;return t&32767}function Oy(t){return t>>16}function po(t,e){let r=Oy(t),n=e;for(;r>0;)n=n[Qn],r--;return n}var Va=!0;function go(t){let e=Va;return Va=t,e}var Ry=256,Vf=Ry-1,jf=5,Fy=0,st={};function Py(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(Er)&&(n=r[Er]),n==null&&(n=r[Er]=Fy++);let i=n&Vf,o=1<>jf)]|=o}function mo(t,e){let r=Bf(t,e);if(r!==-1)return r;let n=e[k];n.firstCreatePass&&(t.injectorIndex=e.length,Da(n.data,t),Da(e,null),Da(n.blueprint,null));let i=Fu(t,e),o=t.injectorIndex;if(Lf(i)){let s=ho(i),a=po(i,e),u=a[k].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|u[s+c]}return e[o+8]=i,o}function Da(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Bf(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Fu(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,i=e;for(;i!==null;){if(n=Gf(i),n===null)return $n;if(r++,i=i[Qn],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return $n}function ja(t,e,r){Py(t,e,r)}function ky(t,e){if(e==="class")return t.classes;if(e==="style")return t.styles;let r=t.attrs;if(r){let n=r.length,i=0;for(;i>20,d=n?a:a+l,f=i?a+l:c;for(let h=d;h=u&&E.type===r)return h}if(i){let h=s[u];if(h&&Bt(h)&&h.type===r)return u}return null}function hn(t,e,r,n){let i=t[r],o=e.data;if(xy(i)){let s=i;s.resolving&&Iv(Ev(o[r]));let a=go(s.canSeeViewProviders);s.resolving=!0;let u,c=s.injectImpl?_e(s.injectImpl):null,l=xf(t,n,j.Default);try{i=t[r]=s.factory(void 0,o,t,n),e.firstCreatePass&&r>=n.directiveStart&&Sy(r,o[r],e)}finally{c!==null&&_e(c),go(a),s.resolving=!1,Rf()}}return i}function Vy(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(Er)?t[Er]:void 0;return typeof e=="number"?e>=0?e&Vf:jy:e}function Cd(t,e,r){let n=1<>jf)]&n)}function wd(t,e){return!(t&j.Self)&&!(t&j.Host&&e)}var an=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Hf(this._tNode,this._lView,e,Ro(n),r)}};function jy(){return new an(Se(),$())}function Jn(t){return Rr(()=>{let e=t.prototype.constructor,r=e[uo]||Ba(e),n=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==n;){let o=i[uo]||Ba(i);if(o&&o!==r)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function Ba(t){return Gd(t)?()=>{let e=Ba(De(t));return e&&e()}:ln(t)}function By(t,e,r,n,i){let o=t,s=e;for(;o!==null&&s!==null&&s[S]&2048&&!(s[S]&512);){let a=zf(o,s,r,n|j.Self,st);if(a!==st)return a;let u=o.parent;if(!u){let c=s[hf];if(c){let l=c.get(r,st,n);if(l!==st)return l}u=Gf(s),s=s[Qn]}o=u}return i}function Gf(t){let e=t[k],r=e.type;return r===2?e.declTNode:r===1?t[Qe]:null}function Pu(t){return ky(Se(),t)}var Ki="__parameters__";function $y(t){return function(...r){if(t){let n=t(...r);for(let i in n)this[i]=n[i]}}}function Wf(t,e,r){return Rr(()=>{let n=$y(e);function i(...o){if(this instanceof i)return n.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(u,c,l){let d=u.hasOwnProperty(Ki)?u[Ki]:Object.defineProperty(u,Ki,{value:[]})[Ki];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return r&&(i.prototype=Object.create(r.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}function Uy(t){let e=Ce.ng;if(e&&e.\u0275compilerFacade)return e.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function Hy(t){return typeof t=="function"}function zy(t,e,r){if(t.length!==e.length)return!1;for(let n=0;nArray.isArray(r)?ku(r,e):e(r))}function qf(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function vo(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Wy(t,e){let r=[];for(let n=0;ne;){let o=i-2;t[i]=t[o],i--}t[e]=r,t[e+1]=n}}function Zy(t,e,r){let n=kr(t,e);return n>=0?t[n|1]=r:(n=~n,qy(t,n,e,r)),n}function Ca(t,e){let r=kr(t,e);if(r>=0)return t[r|1]}function kr(t,e){return Yy(t,e,1)}function Yy(t,e,r){let n=0,i=t.length>>r;for(;i!==n;){let o=n+(i-n>>1),s=t[o<e?i=o:n=o+1}return~(i<{let s=[];i.templateUrl&&s.push(n(i.templateUrl).then(c=>{i.template=c}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let c=i.styles.length,l=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(n(d).then(h=>{a[c+f]=h,l.splice(l.indexOf(d),1),l.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(n(i.styleUrl).then(c=>{a.push(c),i.styleUrl=void 0}));let u=Promise.all(s).then(()=>tD(o));e.push(u)}),Jy(),Promise.all(e).then(()=>{})}var yo=new Map,Ky=new Set;function Jy(){let t=yo;return yo=new Map,t}function Xy(){return yo.size===0}function eD(t){return typeof t=="string"?t:t.text()}function tD(t){Ky.delete(t)}var Lr=new b("ENVIRONMENT_INITIALIZER"),Zf=new b("INJECTOR",-1),Yf=new b("INJECTOR_DEF_TYPES"),Do=class{get(e,r=_r){if(r===_r){let n=new Error(`NullInjectorError: No provider for ${me(e)}!`);throw n.name="NullInjectorError",n}return r}};function Vo(t){return{\u0275providers:t}}function nD(...t){return{\u0275providers:Qf(!0,t),\u0275fromNgModule:!0}}function Qf(t,...e){let r=[],n=new Set,i,o=s=>{r.push(s)};return ku(e,s=>{let a=s;$a(a,o,[],n)&&(i||=[],i.push(a))}),i!==void 0&&Kf(i,o),r}function Kf(t,e){for(let r=0;r{e(o,n)})}}function $a(t,e,r,n){if(t=De(t),!t)return!1;let i=null,o=ld(t),s=!o&&jt(t);if(!o&&!s){let u=t.ngModule;if(o=ld(u),o)i=u;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=n.has(i);if(s){if(a)return!1;if(n.add(i),s.dependencies){let u=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of u)$a(c,e,r,n)}}else if(o){if(o.imports!=null&&!a){n.add(i);let c;try{ku(o.imports,l=>{$a(l,e,r,n)&&(c||=[],c.push(l))})}finally{}c!==void 0&&Kf(c,e)}if(!a){let c=ln(i)||(()=>new i);e({provide:i,useFactory:c,deps:Pe},i),e({provide:Yf,useValue:i,multi:!0},i),e({provide:Lr,useValue:()=>v(i),multi:!0},i)}let u=o.providers;if(u!=null&&!a){let c=t;Vu(u,l=>{e(l,c)})}}else return!1;return i!==t&&t.providers!==void 0}function Vu(t,e){for(let r of t)Wd(r)&&(r=r.\u0275providers),Array.isArray(r)?Vu(r,e):e(r)}var rD=W({provide:String,useValue:W});function Jf(t){return t!==null&&typeof t=="object"&&rD in t}function iD(t){return!!(t&&t.useExisting)}function oD(t){return!!(t&&t.useFactory)}function qn(t){return typeof t=="function"}function sD(t){return!!t.useClass}var jo=new b("Set Injector scope."),oo={},aD={},wa;function ju(){return wa===void 0&&(wa=new Do),wa}var we=class{},xr=class extends we{get destroyed(){return this._destroyed}constructor(e,r,n,i){super(),this.parent=r,this.source=n,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ha(e,s=>this.processProvider(s)),this.records.set(Zf,Ln(void 0,this)),i.has("environment")&&this.records.set(we,Ln(void 0,this));let o=this.records.get(jo);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(Yf,Pe,j.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=kt(this),n=_e(void 0),i;try{return e()}finally{kt(r),_e(n)}}get(e,r=_r,n=j.Default){if(this.assertNotDestroyed(),e.hasOwnProperty(ud))return e[ud](this);n=Ro(n);let i,o=kt(this),s=_e(void 0);try{if(!(n&j.SkipSelf)){let u=this.records.get(e);if(u===void 0){let c=fD(e)&&Oo(e);c&&this.injectableDefInScope(c)?u=Ln(Ua(e),oo):u=null,this.records.set(e,u)}if(u!=null)return this.hydrate(e,u)}let a=n&j.Self?ju():this.parent;return r=n&j.Optional&&r===_r?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[co]=a[co]||[]).unshift(me(e)),o)throw a;return kv(a,e,"R3InjectorError",this.source)}else throw a}finally{_e(s),kt(o)}}resolveInjectorInitializers(){let e=kt(this),r=_e(void 0),n;try{let i=this.get(Lr,Pe,j.Self);for(let o of i)o()}finally{kt(e),_e(r)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(me(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(e){e=De(e);let r=qn(e)?e:De(e&&e.provide),n=cD(e);if(!qn(e)&&e.multi===!0){let i=this.records.get(r);i||(i=Ln(void 0,oo,!0),i.factory=()=>Ra(i.multi),this.records.set(r,i)),r=e,i.multi.push(e)}else{let i=this.records.get(r)}this.records.set(r,n)}hydrate(e,r){return r.value===oo&&(r.value=aD,r.value=r.factory()),typeof r.value=="object"&&r.value&&dD(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}injectableDefInScope(e){if(!e.providedIn)return!1;let r=De(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function Ua(t){let e=Oo(t),r=e!==null?e.factory:ln(t);if(r!==null)return r;if(t instanceof b)throw new w(204,!1);if(t instanceof Function)return uD(t);throw new w(204,!1)}function uD(t){let e=t.length;if(e>0){let n=Wy(e,"?");throw new w(204,!1)}let r=Sv(t);return r!==null?()=>r.factory(t):()=>new t}function cD(t){if(Jf(t))return Ln(void 0,t.useValue);{let e=Xf(t);return Ln(e,oo)}}function Xf(t,e,r){let n;if(qn(t)){let i=De(t);return ln(i)||Ua(i)}else if(Jf(t))n=()=>De(t.useValue);else if(oD(t))n=()=>t.useFactory(...Ra(t.deps||[]));else if(iD(t))n=()=>v(De(t.useExisting));else{let i=De(t&&(t.useClass||t.provide));if(lD(t))n=()=>new i(...Ra(t.deps));else return ln(i)||Ua(i)}return n}function Ln(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function lD(t){return!!t.deps}function dD(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function fD(t){return typeof t=="function"||typeof t=="object"&&t instanceof b}function Ha(t,e){for(let r of t)Array.isArray(r)?Ha(r,e):r&&Wd(r)?Ha(r.\u0275providers,e):e(r)}function eh(t,e){t instanceof xr&&t.assertNotDestroyed();let r,n=kt(t),i=_e(void 0);try{return e()}finally{kt(n),_e(i)}}function hD(t){if(!Kd()&&!Rv())throw new w(-203,!1)}function bd(t,e=null,r=null,n){let i=th(t,e,r,n);return i.resolveInjectorInitializers(),i}function th(t,e=null,r=null,n,i=new Set){let o=[r||Pe,nD(t)];return n=n||(typeof t=="object"?void 0:me(t)),new xr(o,e||ju(),n||null,i)}var Ve=(()=>{let e=class e{static create(n,i){if(Array.isArray(n))return bd({name:""},i,n,"");{let o=n.name??"";return bd({name:o},n.parent,n.providers,o)}}};e.THROW_IF_NOT_FOUND=_r,e.NULL=new Do,e.\u0275prov=C({token:e,providedIn:"any",factory:()=>v(Zf)}),e.__NG_ELEMENT_ID__=-1;let t=e;return t})();var za;function nh(t){za=t}function pD(){if(za!==void 0)return za;if(typeof document<"u")return document;throw new w(210,!1)}var Bo=new b("AppId",{providedIn:"root",factory:()=>gD}),gD="ng",Bu=new b("Platform Initializer"),Tt=new b("Platform ID",{providedIn:"platform",factory:()=>"unknown"});var $u=new b("CSP nonce",{providedIn:"root",factory:()=>pD().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function rh(t){return t instanceof Function?t():t}function mD(t){return(t??p(Ve)).get(Tt)==="browser"}function ih(t){return(t.flags&128)===128}var It=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(It||{});var oh=new Map,vD=0;function yD(){return vD++}function DD(t){oh.set(t[Fo],t)}function CD(t){oh.delete(t[Fo])}var Ed="__ngContext__";function pn(t,e){Vt(e)?(t[Ed]=e[Fo],DD(e)):t[Ed]=e}var wD;function Uu(t,e){return wD(t,e)}function Hu(t){let e=t[ce];return Ye(e)?e[ce]:e}function sh(t){return uh(t[Tr])}function ah(t){return uh(t[qe])}function uh(t){for(;t!==null&&!Ye(t);)t=t[qe];return t}function Vn(t,e,r,n,i){if(n!=null){let o,s=!1;Ye(n)?o=n:Vt(n)&&(s=!0,n=n[_t]);let a=lt(n);t===0&&r!==null?i==null?fh(e,r,a):Co(e,r,a,i||null,!0):t===1&&r!==null?Co(e,r,a,i||null,!0):t===2?jD(e,a,s):t===3&&e.destroyNode(a),o!=null&&$D(e,t,o,r,i)}}function bD(t,e){return t.createText(e)}function ED(t,e,r){t.setValue(e,r)}function ch(t,e,r){return t.createElement(e,r)}function ID(t,e){let r=e[fe];Vr(t,e,r,2,null,null),e[_t]=null,e[Qe]=null}function _D(t,e,r,n,i,o){n[_t]=i,n[Qe]=e,Vr(t,n,r,1,i,o)}function MD(t,e){Vr(t,e,e[fe],2,null,null)}function SD(t){let e=t[Tr];if(!e)return ba(t[k],t);for(;e;){let r=null;if(Vt(e))r=e[Tr];else{let n=e[Ne];n&&(r=n)}if(!r){for(;e&&!e[qe]&&e!==t;)Vt(e)&&ba(e[k],e),e=e[ce];e===null&&(e=t),Vt(e)&&ba(e[k],e),r=e&&e[qe]}e=r}}function TD(t,e,r,n){let i=Ne+n,o=r.length;n>0&&(r[i-1][qe]=e),n0&&(t[r-1][qe]=n[qe]);let o=vo(t,Ne+e);ID(n[k],n);let s=o[at];s!==null&&s.detachView(o[k]),n[ce]=null,n[qe]=null,n[S]&=-129}return n}function dh(t,e){if(!(e[S]&256)){let r=e[fe];e[un]&&Fl(e[un]),r.destroyNode&&Vr(t,e,r,3,null,null),SD(e)}}function ba(t,e){if(!(e[S]&256)){e[S]&=-129,e[S]|=256,ND(t,e),AD(t,e),e[k].type===1&&e[fe].destroy();let r=e[Fr];if(r!==null&&Ye(e[ce])){r!==e[ce]&&lh(r,e);let n=e[at];n!==null&&n.detachView(t)}CD(e)}}function AD(t,e){let r=t.cleanup,n=e[Sr];if(r!==null)for(let o=0;o=0?n[s]():n[-s].unsubscribe(),o+=2}else{let s=n[r[o+1]];r[o].call(s)}n!==null&&(e[Sr]=null);let i=e[Lt];if(i!==null){e[Lt]=null;for(let o=0;o-1){let{encapsulation:o}=t.data[n.directiveStart+i];if(o===ut.None||o===ut.Emulated)return null}return Le(n,r)}}function Co(t,e,r,n,i){t.insertBefore(e,r,n,i)}function fh(t,e,r){t.appendChild(e,r)}function Id(t,e,r,n,i){n!==null?Co(t,e,r,n,i):fh(t,e,r)}function FD(t,e,r,n){t.removeChild(e,r,n)}function zu(t,e){return t.parentNode(e)}function PD(t,e){return t.nextSibling(e)}function kD(t,e,r){return VD(t,e,r)}function LD(t,e,r){return t.type&40?Le(t,r):null}var VD=LD,_d;function Gu(t,e,r,n){let i=OD(t,n,e),o=e[fe],s=n.parent||e[Qe],a=kD(s,n,e);if(i!=null)if(Array.isArray(r))for(let u=0;ut,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ji}function Md(t){return zD()?.createScriptURL(t)||t}var wo=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qd})`}};function jr(t){return t instanceof wo?t.changingThisBreaksApplicationSecurity:t}function qu(t,e){let r=GD(t);if(r!=null&&r!==e){if(r==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${r} (see ${qd})`)}return r===e}function GD(t){return t instanceof wo&&t.getTypeName()||null}var WD=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function mh(t){return t=String(t),t.match(WD)?t:"unsafe:"+t}var $o=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}($o||{});function Br(t){let e=yh();return e?e.sanitize($o.URL,t)||"":qu(t,"URL")?jr(t):mh(No(t))}function qD(t){let e=yh();if(e)return Md(e.sanitize($o.RESOURCE_URL,t)||"");if(qu(t,"ResourceURL"))return Md(jr(t));throw new w(904,!1)}function ZD(t,e){return e==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||e==="href"&&(t==="base"||t==="link")?qD:Br}function vh(t,e,r){return ZD(e,r)(t)}function yh(){let t=$();return t&&t[zn].sanitizer}var YD="h",QD="b";var KD=(t,e,r)=>null;function Zu(t,e,r=!1){return KD(t,e,r)}var qa=class{},bo=class{};function JD(t){let e=Error(`No component factory found for ${me(t)}.`);return e[XD]=t,e}var XD="ngComponent";var Za=class{resolveComponentFactory(e){throw JD(e)}},Uo=(()=>{let e=class e{};e.NULL=new Za;let t=e;return t})();function eC(){return Xn(Se(),$())}function Xn(t,e){return new Te(Le(t,e))}var Te=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=eC;let t=e;return t})();function tC(t){return t instanceof Te?t.nativeElement:t}var Ar=class{},ht=(()=>{let e=class e{constructor(){this.destroyNode=null}};e.__NG_ELEMENT_ID__=()=>nC();let t=e;return t})();function nC(){let t=$(),e=Se(),r=Ut(e.index,t);return(Vt(r)?r:t)[fe]}var rC=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>null});let t=e;return t})(),gn=class{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}},iC=new gn("17.0.4"),Ea={};function Yu(t){let e=ve(null);try{return t()}finally{ve(e)}}function Dh(t){return sC(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function oC(t,e){if(Array.isArray(t))for(let r=0;re,Qa=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||aC}forEachItem(e){let r;for(r=this._itHead;r!==null;r=r._next)e(r)}forEachOperation(e){let r=this._itHead,n=this._removalsHead,i=0,o=null;for(;r||n;){let s=!n||r&&r.currentIndex{s=this._trackByFn(i,a),r===null||!Object.is(r.trackById,s)?(r=this._mismatch(r,a,s,i),n=!0):(n&&(r=this._verifyReinsertion(r,a,s,i)),Object.is(r.item,a)||this._addIdentityChange(r,a)),r=r._next,i++}),this.length=i;return this._truncate(r),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,r,n,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(n,i),e!==null?(Object.is(e.item,r)||this._addIdentityChange(e,r),this._moveAfter(e,o,i)):e=this._addAfter(new Ka(r,n),o,i)),e}_verifyReinsertion(e,r,n,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let r=e._next;this._addToRemovals(this._unlink(e)),e=r}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,r,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,r,n),this._addToMoves(e,n),e}_moveAfter(e,r,n){return this._unlink(e),this._insertAfter(e,r,n),this._addToMoves(e,n),e}_addAfter(e,r,n){return this._insertAfter(e,r,n),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,r,n){let i=r===null?this._itHead:r._next;return e._next=i,e._prev=r,i===null?this._itTail=e:i._prev=e,r===null?this._itHead=e:r._next=e,this._linkedRecords===null&&(this._linkedRecords=new Eo),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 r=e._prev,n=e._next;return r===null?this._itHead=n:r._next=n,n===null?this._itTail=r:n._prev=r,e}_addToMoves(e,r){return e.previousIndex===r||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Eo),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,r){return e.item=r,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Ka=class{constructor(e,r){this.item=e,this.trackById=r,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}},Ja=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,r){let n;for(n=this._head;n!==null;n=n._nextDup)if((r===null||r<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){let r=e._prevDup,n=e._nextDup;return r===null?this._head=n:r._nextDup=n,n===null?this._tail=r:n._prevDup=r,this._head===null}},Eo=class{constructor(){this.map=new Map}put(e){let r=e.trackById,n=this.map.get(r);n||(n=new Ja,this.map.set(r,n)),n.add(e)}get(e,r){let n=e,i=this.map.get(n);return i?i.get(e,r):null}remove(e){let r=e.trackById;return this.map.get(r).remove(e)&&this.map.delete(r),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Sd(t,e,r){let n=t.previousIndex;if(n===null)return n;let i=0;return r&&n{let e=class e{constructor(n){this.factories=n}static create(n,i){if(i!=null){let o=i.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Td()),deps:[[e,new Lu,new Lo]]}}find(n){let i=this.factories.find(o=>o.supports(n));if(i!=null)return i;throw new w(901,!1)}};e.\u0275prov=C({token:e,providedIn:"root",factory:Td});let t=e;return t})();function Io(t,e,r,n,i=!1){for(;r!==null;){let o=e[r.index];o!==null&&n.push(lt(o)),Ye(o)&&uC(o,n);let s=r.type;if(s&8)Io(t,e,r.child,n);else if(s&32){let a=Uu(r,e),u;for(;u=a();)n.push(u)}else if(s&16){let a=hh(e,r);if(Array.isArray(a))n.push(...a);else{let u=Hu(e[ct]);Io(u[k],u,a,n,!0)}}r=i?r.projectionNext:r.next}return n}function uC(t,e){for(let r=Ne;r{ko(t.lView)},consumerOnSignalRead(){this.lView[un]=this}}),hC="ngOriginalError";function Ia(t){return t[hC]}var dt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Ia(e);for(;r&&Ia(r);)r=Ia(r);return r||null}};var wh=!1,pC=new b("",{providedIn:"root",factory:()=>wh});var Ht={};function x(t){bh(Me(),$(),Kn()+t,!1)}function bh(t,e,r,n){if(!n)if((e[S]&3)===3){let o=t.preOrderCheckHooks;o!==null&&no(e,o,r)}else{let o=t.preOrderHooks;o!==null&&ro(e,o,0,r)}dn(r)}function m(t,e=j.Default){let r=$();if(r===null)return v(t,e);let n=Se();return Hf(n,r,De(t),e)}function Eh(){let t="invalid";throw new Error(t)}function gC(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;nZe&&bh(t,e,Ze,!1),ot(s?2:0,i),r(n,i)}finally{dn(o),ot(s?3:1,i)}}function Mh(t,e,r){if(gf(e)){let n=ve(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;snull;function wC(t,e,r,n){let i=kh(e);i.push(r),t.firstCreatePass&&Lh(t).push(n,i.length-1)}function bC(t,e,r,n,i,o){let s=e?e.injectorIndex:-1,a=0;return fy()&&(a|=128),{type:r,index:n,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,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 xd(t,e,r,n){for(let i in t)if(t.hasOwnProperty(i)){r=r===null?{}:r;let o=t[i];n===null?Ad(r,e,i,o):n.hasOwnProperty(i)&&Ad(r,e,n[i],o)}return r}function Ad(t,e,r,n){t.hasOwnProperty(r)?t[r].push(e,n):t[r]=[e,n]}function EC(t,e,r){let n=e.directiveStart,i=e.directiveEnd,o=t.data,s=e.attrs,a=[],u=null,c=null;for(let l=n;l0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function xC(t,e,r,n){let i=r.directiveStart,o=r.directiveEnd;Po(r)&&kC(e,r,t.data[i+r.componentOffset]),t.firstCreatePass||mo(r,e),pn(n,e);let s=r.initialInputs;for(let a=i;a-1&&(Ga(e,n),vo(r,n))}this._attachedToViewContainer=!1}dh(this._lView[k],this._lView)}onDestroy(e){If(this._lView,e)}markForCheck(){Xu(this._cdRefInjectingView||this._lView)}detach(){this._lView[S]&=-129}reattach(){Ef(this._lView),this._lView[S]|=128}detectChanges(){HC(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,MD(this._lView[k],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=e}},Dn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ZC;let t=e;return t})();function ZC(t){return YC(Se(),$(),(t&16)===16)}function YC(t,e,r){if(Po(t)&&!r){let n=Ut(t.index,e);return new mn(n,n)}else if(t.type&47){let n=e[ct];return new mn(n,e)}return null}var zh=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=QC,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),tu=class extends zh{constructor(e){super(),this._lView=e}onDestroy(e){return If(this._lView,e),()=>uy(this._lView,e)}};function QC(){return new tu($())}var Nd=new Set;function Wo(t){Nd.has(t)||(Nd.add(t),performance?.mark?.("mark_use_counter",{detail:{feature:t}}))}var nu=class extends de{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,r,n){let i=e,o=r||(()=>null),s=n;if(e&&typeof e=="object"){let u=e;i=u.next?.bind(u),o=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(o=_a(o),i&&(i=_a(i)),s&&(s=_a(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof ae&&e.add(a),a}};function _a(t){return e=>{setTimeout(t,void 0,e)}}var X=nu;function Od(...t){}function KC(){let t=typeof Ce.requestAnimationFrame=="function",e=Ce[t?"requestAnimationFrame":"setTimeout"],r=Ce[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&e&&r){let n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);let i=r[Zone.__symbol__("OriginalDelegate")];i&&(r=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:r}}var G=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new X(!1),this.onMicrotaskEmpty=new X(!1),this.onStable=new X(!1),this.onError=new X(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();let i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!n&&r,i.shouldCoalesceRunChangeDetection=n,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=KC().nativeRequestAnimationFrame,ew(i)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new w(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,JC,Od,Od);try{return o.runTask(s,r,n)}finally{o.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},JC={};function ec(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 XC(t){t.isCheckStableRunning||t.lastRequestAnimationFrameId!==-1||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ce,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ru(t),t.isCheckStableRunning=!0,ec(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ru(t))}function ew(t){let e=()=>{XC(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,i,o,s,a)=>{if(tw(a))return r.invokeTask(i,o,s,a);try{return Rd(t),r.invokeTask(i,o,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&o.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),Fd(t)}},onInvoke:(r,n,i,o,s,a,u)=>{try{return Rd(t),r.invoke(i,o,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Fd(t)}},onHasTask:(r,n,i,o)=>{r.hasTask(i,o),n===i&&(o.change=="microTask"?(t._hasPendingMicrotasks=o.microTask,ru(t),ec(t)):o.change=="macroTask"&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(r,n,i,o)=>(r.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}function ru(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.lastRequestAnimationFrameId!==-1?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Rd(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Fd(t){t._nesting--,ec(t)}var iu=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new X,this.onMicrotaskEmpty=new X,this.onStable=new X,this.onError=new X}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,i){return e.apply(r,n)}},Gh=new b("",{providedIn:"root",factory:Wh});function Wh(){let t=p(G),e=!0,r=new B(i=>{e=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{i.next(e),i.complete()})}),n=new B(i=>{let o;t.runOutsideAngular(()=>{o=t.onStable.subscribe(()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{!e&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(e=!0,i.next(!0))})})});let s=t.onUnstable.subscribe(()=>{G.assertInAngularZone(),e&&(e=!1,t.runOutsideAngular(()=>{i.next(!1)}))});return()=>{o.unsubscribe(),s.unsubscribe()}});return ca(r,n.pipe(Yi()))}function tw(t){return!Array.isArray(t)||t.length!==1?!1:t[0].data?.__ignore_ng_zone__===!0}var jn=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(jn||{}),nw={destroy(){}};function tc(t,e){!e&&hD(tc);let r=e?.injector??p(Ve);if(!mD(r))return nw;Wo("NgAfterNextRender");let n=r.get(qh),i=n.handler??=new su,o=e?.phase??jn.MixedReadWrite,s=()=>{i.unregister(u),a()},a=r.get(zh).onDestroy(s),u=new ou(r,o,()=>{s(),t()});return i.register(u),{destroy:s}}var ou=class{constructor(e,r,n){this.phase=r,this.callbackFn=n,this.zone=e.get(G),this.errorHandler=e.get(dt,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(e){this.errorHandler?.handleError(e)}}},su=class{constructor(){this.executingCallbacks=!1,this.buckets={[jn.EarlyRead]:new Set,[jn.Write]:new Set,[jn.MixedReadWrite]:new Set,[jn.Read]:new Set},this.deferredCallbacks=new Set}validateBegin(){if(this.executingCallbacks)throw new w(102,!1)}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 r of e)r.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()}},qh=(()=>{let e=class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,this.renderDepth===0){for(let n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}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 rw(t,e){let r=Ut(e,t),n=r[k];iw(n,r);let i=r[_t];i!==null&&r[Pa]===null&&(r[Pa]=Zu(i,r[Hn])),nc(n,r,r[ke])}function iw(t,e){for(let r=e.length;r0&&ph(t,r,o.join(" "))}}function fw(t,e,r){let n=t.projection=[];for(let i=0;i=0;n--){let i=t[n];i.hostVars=e+=i.hostVars,i.hostAttrs=Mr(i.hostAttrs,r=Mr(r,i.hostAttrs))}}function Xi(t){return t===Un?{}:t===Pe?[]:t}function mw(t,e){let r=t.viewQuery;r?t.viewQuery=(n,i)=>{e(n,i),r(n,i)}:t.viewQuery=e}function vw(t,e){let r=t.contentQueries;r?t.contentQueries=(n,i,o)=>{e(n,i,o),r(n,i,o)}:t.contentQueries=e}function yw(t,e){let r=t.hostBindings;r?t.hostBindings=(n,i)=>{e(n,i),r(n,i)}:t.hostBindings=e}function rc(t){let e=t.inputConfig,r={};for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];Array.isArray(i)&&i[2]&&(r[n]=i[2])}t.inputTransforms=r}function Zh(t,e,r){return t[e]=r}function Dw(t,e){return t[e]}function $r(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function er(t,e,r,n){let i=$(),o=Su();if($r(i,o,e)){let s=Me(),a=Ff();LC(a,i,t,e,r,n)}return er}function Cw(t,e,r,n){return $r(t,Su(),r)?e+No(r)+n:Ht}function eo(t,e){return t<<17|e<<2}function vn(t){return t>>17&32767}function ww(t){return(t&2)==2}function bw(t,e){return t&131071|e<<17}function lu(t){return t|2}function Yn(t){return(t&131068)>>2}function Ma(t,e){return t&-131069|e<<2}function Ew(t){return(t&1)===1}function du(t){return t|1}function Iw(t,e,r,n,i,o){let s=o?e.classBindings:e.styleBindings,a=vn(s),u=Yn(s);t[n]=r;let c=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||kr(d,l)>0)&&(c=!0)}else l=r;if(i)if(u!==0){let f=vn(t[a+1]);t[n+1]=eo(f,a),f!==0&&(t[f+1]=Ma(t[f+1],n)),t[a+1]=bw(t[a+1],n)}else t[n+1]=eo(a,0),a!==0&&(t[a+1]=Ma(t[a+1],n)),a=n;else t[n+1]=eo(u,0),a===0?a=n:t[u+1]=Ma(t[u+1],n),u=n;c&&(t[n+1]=lu(t[n+1])),kd(t,l,n,!0,o),kd(t,l,n,!1,o),_w(e,l,t,n,o),s=eo(a,u),o?e.classBindings=s:e.styleBindings=s}function _w(t,e,r,n,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&kr(o,e)>=0&&(r[n+1]=du(r[n+1]))}function kd(t,e,r,n,i){let o=t[r+1],s=e===null,a=n?vn(o):Yn(o),u=!1;for(;a!==0&&(u===!1||s);){let c=t[a],l=t[a+1];Mw(c,e)&&(u=!0,t[a+1]=n?du(l):lu(l)),a=n?vn(l):Yn(l)}u&&(t[r+1]=n?lu(o):du(o))}function Mw(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?kr(t,e)>=0:!1}function O(t,e,r){let n=$(),i=Su();if($r(n,i,e)){let o=Me(),s=Ff();_C(o,s,n,t,e,n[fe],r,!1)}return O}function Ld(t,e,r,n,i){let o=e.inputs,s=i?"class":"style";Ju(t,r,o[s],s,n)}function tr(t,e){return Sw(t,e,null,!0),tr}function Sw(t,e,r,n){let i=$(),o=Me(),s=Dy(2);if(o.firstUpdatePass&&xw(o,t,s,n),e!==Ht&&$r(i,s,e)){let a=o.data[Kn()];Fw(o,a,i,i[fe],t,i[s+1]=Pw(e,r),n,s)}}function Tw(t,e){return e>=t.expandoStartIndex}function xw(t,e,r,n){let i=t.data;if(i[r+1]===null){let o=i[Kn()],s=Tw(t,r);kw(o,n)&&e===null&&!s&&(e=!1),e=Aw(i,o,e,n),Iw(i,o,e,r,s,n)}}function Aw(t,e,r,n){let i=Ey(t),o=n?e.residualClasses:e.residualStyles;if(i===null)(n?e.classBindings:e.styleBindings)===0&&(r=Sa(null,t,e,r,n),r=Nr(r,e.attrs,n),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(r=Sa(i,t,e,r,n),o===null){let u=Nw(t,e,n);u!==void 0&&Array.isArray(u)&&(u=Sa(null,t,e,u[1],n),u=Nr(u,e.attrs,n),Ow(t,e,n,u))}else o=Rw(t,e,n)}return o!==void 0&&(n?e.residualClasses=o:e.residualStyles=o),r}function Nw(t,e,r){let n=r?e.classBindings:e.styleBindings;if(Yn(n)!==0)return t[vn(n)]}function Ow(t,e,r,n){let i=r?e.classBindings:e.styleBindings;t[vn(i)]=n}function Rw(t,e,r){let n,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o0;){let u=t[i],c=Array.isArray(u),l=c?u[1]:u,d=l===null,f=r[i+1];f===Ht&&(f=d?Pe:void 0);let h=d?Ca(f,n):l===n?f:void 0;if(c&&!Mo(h)&&(h=Ca(u,n)),Mo(h)&&(a=h,s))return a;let E=t[i+1];i=s?vn(E):Yn(E)}if(e!==null){let u=o?e.residualClasses:e.residualStyles;u!=null&&(a=Ca(u,n))}return a}function Mo(t){return t!==void 0}function Pw(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=me(jr(t)))),t}function kw(t,e){return(t.flags&(e?8:16))!==0}var BO=new RegExp(`^(\\d+)*(${QD}|${YD})*(.*)`);var Lw=(t,e)=>null;function jd(t,e){return Lw(t,e)}function Vw(t,e,r,n){let i=e.tView,s=t[S]&4096?4096:16,a=Ho(t,i,r,s,null,e,null,null,null,n?.injector??null,n?.dehydratedView??null),u=t[e.index];a[Fr]=u;let c=t[at];return c!==null&&(a[at]=c.createEmbeddedView(i)),nc(i,a,r),a}function Bd(t,e){return!e||ih(t)}function jw(t,e,r,n=!0){let i=e[k];if(TD(i,e,t,r),n){let o=Wa(r,t),s=e[fe],a=zu(s,t[cn]);a!==null&&_D(i,t[Qe],s,e,a,o)}}var zt=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=Bw;let t=e;return t})();function Bw(){let t=Se();return Qh(t,$())}var $w=zt,Yh=class extends $w{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Xn(this._hostTNode,this._hostLView)}get injector(){return new an(this._hostTNode,this._hostLView)}get parentInjector(){let e=Fu(this._hostTNode,this._hostLView);if(Lf(e)){let r=po(e,this._hostLView),n=ho(e),i=r[k].data[n+8];return new an(i,r)}else return new an(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=$d(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-Ne}createEmbeddedView(e,r,n){let i,o;typeof n=="number"?i=n:n!=null&&(i=n.index,o=n.injector);let s=jd(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},o,s);return this.insertImpl(a,i,Bd(this._hostTNode,s)),a}createComponent(e,r,n,i,o){let s=e&&!Hy(e),a;if(s)a=r;else{let E=r||{};a=E.index,n=E.injector,i=E.projectableNodes,o=E.environmentInjector||E.ngModuleRef}let u=s?e:new Zn(jt(e)),c=n||this.parentInjector;if(!o&&u.ngModule==null){let V=(s?c:this.parentInjector).get(we,null);V&&(o=V)}let l=jt(u.componentType??{}),d=jd(this._lContainer,l?.id??null),f=d?.firstChild??null,h=u.create(c,i,f,o);return this.insertImpl(h.hostView,a,Bd(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let i=e._lView;if(oy(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let u=i[ce],c=new Yh(u,u[Qe],u[ce]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(r),s=this._lContainer;return jw(s,i,o,n),e.attachToViewContainerRef(),qf(Ta(s),o,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=$d(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Ga(this._lContainer,r);n&&(vo(Ta(this._lContainer),r),dh(n[k],n))}detach(e){let r=this._adjustIndex(e,-1),n=Ga(this._lContainer,r);return n&&vo(Ta(this._lContainer),r)!=null?new mn(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function $d(t){return t[lo]}function Ta(t){return t[lo]||(t[lo]=[])}function Qh(t,e){let r,n=e[t.index];return Ye(n)?r=n:(r=Fh(n,e,null,t),e[t.index]=r,Go(e,r)),Hw(r,e,t,n),new Yh(r,t,e)}function Uw(t,e){let r=t[fe],n=r.createComment(""),i=Le(e,t),o=zu(r,i);return Co(r,o,n,PD(r,i),!1),n}var Hw=Ww,zw=(t,e,r)=>!1;function Gw(t,e,r){return zw(t,e,r)}function Ww(t,e,r,n){if(t[cn])return;let i;r.type&8?i=lt(n):i=Uw(e,r),t[cn]=i}function qw(t,e,r,n,i,o,s,a,u){let c=e.consts,l=zo(e,t,4,s||null,fo(c,a));Ah(e,r,l,fo(c,u)),Ru(e,l);let d=l.tView=Ku(2,l,n,i,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function Y(t,e,r,n,i,o,s,a){let u=$(),c=Me(),l=t+Ze,d=c.firstCreatePass?qw(l,c,u,e,r,n,i,o,s):c.data[l];Pr(d,!1);let f=Zw(c,u,d,t);Nu()&&Gu(c,u,f,d),pn(f,u);let h=Fh(f,u,f,d);return u[l]=h,Go(u,h),Gw(h,d,u),Iu(d)&&Sh(c,u,d),s!=null&&Th(u,d,a),Y}var Zw=Yw;function Yw(t,e,r,n){return Ou(!0),e[fe].createComment("")}function Qw(t,e,r,n,i,o){let s=e.consts,a=fo(s,i),u=zo(e,t,2,n,a);return Ah(e,r,u,fo(s,o)),u.attrs!==null&&au(u,u.attrs,!1),u.mergedAttrs!==null&&au(u,u.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,u),u}function y(t,e,r,n){let i=$(),o=Me(),s=Ze+t,a=i[fe],u=o.firstCreatePass?Qw(s,o,i,e,r,n):o.data[s],c=Kw(o,i,u,a,e,t);i[s]=c;let l=Iu(u);return Pr(u,!0),gh(a,c,u),(u.flags&32)!==32&&Nu()&&Gu(o,i,c,u),cy()===0&&pn(c,i),ly(),l&&(Sh(o,i,u),Mh(o,u,i)),n!==null&&Th(i,u),y}function D(){let t=Se();Sf()?my():(t=t.parent,Pr(t,!1));let e=t;hy(e)&&py(),dy();let r=Me();return r.firstCreatePass&&(Ru(r,t),gf(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&Ay(e)&&Ld(r,e,$(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Ny(e)&&Ld(r,e,$(),e.stylesWithoutHost,!1),D}function ne(t,e,r,n){return y(t,e,r,n),D(),ne}var Kw=(t,e,r,n,i,o)=>(Ou(!0),ch(n,i,My()));function xt(){return $()}var So="en-US";var Jw=So;function Xw(t){_v(t,"Expected localeId to be defined"),typeof t=="string"&&(Jw=t.toLowerCase().replace(/_/g,"-"))}function Gt(t){return!!t&&typeof t.then=="function"}function ic(t){return!!t&&typeof t.subscribe=="function"}function re(t,e,r,n){let i=$(),o=Me(),s=Se();return t0(o,i,i[fe],s,t,e,n),re}function e0(t,e,r,n){let i=t.cleanup;if(i!=null)for(let o=0;ou?a[u]:null}typeof s=="string"&&(o+=2)}return null}function t0(t,e,r,n,i,o,s){let a=Iu(n),c=t.firstCreatePass&&Lh(t),l=e[ke],d=kh(e),f=!0;if(n.type&3||s){let V=Le(n,e),T=s?s(V):V,_=d.length,ie=s?J=>s(lt(J[n.index])):n.index,he=null;if(!s&&a&&(he=e0(t,e,i,n.index)),he!==null){let J=he.__ngLastListenerFn__||he;J.__ngNextListenerFn__=o,he.__ngLastListenerFn__=o,f=!1}else{o=Hd(n,e,l,o,!1);let J=r.listen(T,i,o);d.push(o,J),c&&c.push(i,ie,_,_+1)}}else o=Hd(n,e,l,o,!1);let h=n.outputs,E;if(f&&h!==null&&(E=h[i])){let V=E.length;if(V)for(let T=0;T-1?Ut(t.index,e):e;Xu(a);let u=Ud(e,r,n,s),c=o.__ngNextListenerFn__;for(;c;)u=Ud(e,r,c,s)&&u,c=c.__ngNextListenerFn__;return i&&u===!1&&s.preventDefault(),u}}function xe(t=1){return _y(t)}function n0(t,e,r,n){r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=n}function Kh(t){let e=vy();return wf(e,Ze+t)}function M(t,e=""){let r=$(),n=Me(),i=t+Ze,o=n.firstCreatePass?zo(n,i,1,e,null):n.data[i],s=r0(n,r,o,e,t);r[i]=s,Nu()&&Gu(n,r,s,o),Pr(o,!1)}var r0=(t,e,r,n,i)=>(Ou(!0),bD(e[fe],n));function pt(t){return Oe("",t,""),pt}function Oe(t,e,r){let n=$(),i=Cw(n,t,e,r);return i!==Ht&&$C(n,Kn(),i),Oe}function i0(t,e,r){let n=Me();if(n.firstCreatePass){let i=Bt(t);fu(r,n.data,n.blueprint,i,!0),fu(e,n.data,n.blueprint,i,!1)}}function fu(t,e,r,n,i){if(t=De(t),Array.isArray(t))for(let o=0;o>20;if(qn(t)||!t.multi){let h=new fn(c,i,m),E=Aa(u,e,i?l:l+f,d);E===-1?(ja(mo(a,s),o,u),xa(o,t,e.length),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(h),s.push(h)):(r[E]=h,s[E]=h)}else{let h=Aa(u,e,l+f,d),E=Aa(u,e,l,l+f),V=h>=0&&r[h],T=E>=0&&r[E];if(i&&!T||!i&&!V){ja(mo(a,s),o,u);let _=a0(i?s0:o0,r.length,i,n,c);!i&&T&&(r[E].providerFactory=_),xa(o,t,e.length,0),e.push(u),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),r.push(_),s.push(_)}else{let _=Jh(r[i?E:h],c,!i&&n);xa(o,t,h>-1?h:E,_)}!i&&n&&T&&r[E].componentProviders++}}}function xa(t,e,r,n){let i=qn(e),o=sD(e);if(i||o){let u=(o?De(e.useClass):e).prototype.ngOnDestroy;if(u){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let l=c.indexOf(r);l===-1?c.push(r,[n,u]):c[l+1].push(n,u)}else c.push(r,u)}}}function Jh(t,e,r){return r&&t.componentProviders++,t.multi.push(e)-1}function Aa(t,e,r,n){for(let i=r;i{r.providersResolver=(n,i)=>i0(n,i?i(t):t,e)}}var $t=class{},Or=class{};var To=class extends $t{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new _o(this);let i=lf(e);this._bootstrapComponents=rh(i.bootstrap),this._r3Injector=th(e,r,[{provide:$t,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver},...n],me(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},xo=class extends Or{constructor(e){super(),this.moduleType=e}create(e){return new To(this.moduleType,e,[])}};function u0(t,e,r){return new To(t,e,r)}var pu=class extends $t{constructor(e){super(),this.componentFactoryResolver=new _o(this),this.instance=null;let r=new xr([...e.providers,{provide:$t,useValue:this},{provide:Uo,useValue:this.componentFactoryResolver}],e.parent||ju(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function qo(t,e,r=null){return new pu({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}var c0=(()=>{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 i=Qf(!1,n.type),o=i.length>0?qo([i],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}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(v(we))});let t=e;return t})();function Xh(t){Wo("NgStandalone"),t.getStandaloneInjector=e=>e.get(c0).getOrCreateStandaloneInjector(t)}function Zo(t,e,r){let n=Mu()+t,i=$();return i[n]===Ht?Zh(i,n,r?e.call(r):e()):Dw(i,n)}function Yo(t,e,r,n){return ep($(),Mu(),t,e,r,n)}function l0(t,e){let r=t[e];return r===Ht?void 0:r}function ep(t,e,r,n,i,o){let s=e+r;return $r(t,s,i)?Zh(t,s+1,o?n.call(o,i):n(i)):l0(t,s+1)}function qt(t,e){let r=Me(),n,i=t+Ze;r.firstCreatePass?(n=d0(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks??=[]).push(i,n.onDestroy)):n=r.data[i];let o=n.factory||(n.factory=ln(n.type,!0)),s,a=_e(m);try{let u=go(!1),c=o();return go(u),n0(r,$(),i,c),c}finally{_e(a)}}function d0(t,e){if(e)for(let r=e.length-1;r>=0;r--){let n=e[r];if(t===n.name)return n}}function Zt(t,e,r){let n=t+Ze,i=$(),o=wf(i,n);return f0(i,n)?ep(i,Mu(),e,o.transform,r,o):o.transform(r)}function f0(t,e){return t[k].data[e].pure}function h0(){return this._results[Symbol.iterator]()}var gu=class t{get changes(){return this._changes||(this._changes=new X)}constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;let r=t.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=h0)}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,r){return this._results.reduce(e,r)}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,r){this.dirty=!1;let n=Gy(e);(this._changesDetected=!zy(this._results,n,r))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}},yn=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=m0;let t=e;return t})(),p0=yn,g0=class extends p0{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let i=Vw(this._declarationLView,this._declarationTContainer,e,{injector:r,dehydratedView:n});return new mn(i)}};function m0(){return oc(Se(),$())}function oc(t,e){return t.type&4?new g0(e,t,Xn(t,e)):null}var mu=class t{constructor(e){this.queryList=e,this.matches=null}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},vu=class t{constructor(e=[]){this.queries=e}createEmbeddedView(e){let r=e.queries;if(r!==null){let n=e.contentQueries!==null?e.contentQueries[0]:r.length,i=[];for(let o=0;o0)n.push(s[a/2]);else{let c=o[a+1],l=e[-u];for(let d=Ne;d{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,i)=>{this.resolve=n,this.reject=i}),this.appInits=p(Qo,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let s=o();if(Gt(s))n.push(s);else if(ic(s)){let a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{i()}).catch(o=>{this.reject(o)}),n.length===0&&i(),this.initialized=!0}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ko=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function M0(){return typeof $localize<"u"&&$localize.locale||So}var sc=new b("LocaleId",{providedIn:"root",factory:()=>p(sc,j.Optional|j.SkipSelf)||M0()});var nr=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new le(!1)}add(){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.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),bu=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Jo=(()=>{let e=class e{compileModuleSync(n){return new xo(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let i=this.compileModuleSync(n),o=lf(n),s=rh(o.declarations).reduce((a,u)=>{let c=jt(u);return c&&a.push(new Zn(c)),a},[]);return new bu(i,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),S0=new b("compilerOptions");var ac=new b(""),Ur=new b(""),Xo=(()=>{let e=class e{constructor(n,i,o){this._ngZone=n,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,uc||(T0(o),o.addToWindow(i)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{G.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&this._pendingCount===0&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>i.updateCb&&i.updateCb(n)?(clearTimeout(i.timeoutId),!1):!0),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,o){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:o})}whenStable(n,i,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,i,o){return[]}};e.\u0275fac=function(i){return new(i||e)(v(G),v(es),v(Ur))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),es=(()=>{let e=class e{constructor(){this._applications=new Map}registerApplication(n,i){this._applications.set(n,i)}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,i=!0){return uc?.findTestabilityInTree(this,n,i)??null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function T0(t){uc=t}var uc,Ir=null,ap=new b("AllowMultipleToken"),up=new b("PlatformDestroyListeners"),ts=new b("appBootstrapListener");function x0(t,e,r){let n=new xo(r);return Promise.resolve(n)}function A0(){Pl(()=>{throw new w(600,!1)})}function N0(t){return t.isBoundToModule}function O0(t){if(Ir&&!Ir.get(ap,!1))throw new w(400,!1);A0(),Ir=t;let e=t.get(lp);return R0(t),e}function R0(t){t.get(Bu,null)?.forEach(r=>r())}function cc(t,e,r=[]){let n=`Platform: ${e}`,i=new b(n);return(o=[])=>{let s=cp();if(!s||s.injector.get(ap,!1)){let a=[...r,...o,{provide:i,useValue:!0}];t?t(a):O0(P0(a,n))}return F0(i)}}function F0(t){let e=cp();if(!e)throw new w(401,!1);return e}function P0(t=[],e){return Ve.create({name:e,providers:[{provide:jo,useValue:"platform"},{provide:up,useValue:new Set([()=>Ir=null])},...t]})}function cp(){return Ir?.get(lp)??null}var lp=(()=>{let e=class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){let o=L0(i?.ngZone,k0({eventCoalescing:i?.ngZoneEventCoalescing,runCoalescing:i?.ngZoneRunCoalescing}));return o.run(()=>{let s=u0(n.moduleType,this.injector,$0(()=>o)),a=s.injector.get(dt,null);return o.runOutsideAngular(()=>{let u=o.onError.subscribe({next:c=>{a.handleError(c)}});s.onDestroy(()=>{ao(this._modules,s),u.unsubscribe()})}),V0(a,o,()=>{let u=s.injector.get(sp);return u.runInitializers(),u.donePromise.then(()=>{let c=s.injector.get(sc,So);return Xw(c||So),this._moduleDoBootstrap(s),s})})})}bootstrapModule(n,i=[]){let o=dp({},i);return x0(this.injector,o,n).then(s=>this.bootstrapModuleFactory(s,o))}_moduleDoBootstrap(n){let i=n.injector.get(Cn);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>i.bootstrap(o));else if(n.instance.ngDoBootstrap)n.instance.ngDoBootstrap(i);else throw new w(-403,!1);this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());let n=this._injector.get(up,null);n&&(n.forEach(i=>i()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};e.\u0275fac=function(i){return new(i||e)(v(Ve))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();function k0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}function L0(t="zone.js",e){return t==="noop"?new iu:t==="zone.js"?new G(e):t}function V0(t,e,r){try{let n=r();return Gt(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}function dp(t,e){return Array.isArray(e)?e.reduce(dp,t):g(g({},t),e)}var Cn=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=p(fp),this.zoneIsStable=p(Gh),this.componentTypes=[],this.components=[],this.isStable=p(nr).hasPendingTasks.pipe(oe(n=>n?I(!1):this.zoneIsStable),Fn(),Yi()),this._injector=p(we)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,i){let o=n instanceof bo;if(!this._injector.get(sp).done){let E="Cannot bootstrap as there are still asynchronous initializers running."+(!o&&cf(n)?"":" Bootstrap components in the `ngDoBootstrap` method of the root module.");throw new w(405,!1)}let a;o?a=n:a=this._injector.get(Uo).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let u=N0(a)?void 0:this._injector.get($t),c=i||a.selector,l=a.create(Ve.NULL,[],c,u),d=l.location.nativeElement,f=l.injector.get(ac,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),ao(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){let i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){let i=n;ao(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let i=this._injector.get(ts,[]);[...this._bootstrapListeners,...i].forEach(o=>o(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),()=>ao(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ao(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function zd(t){for(let e=t.length-1;e>=0;e--)if(t[e]!==void 0)return t[e]}var fp=new b("",{providedIn:"root",factory:()=>p(dt).handleError.bind(void 0)});function j0(){let t=p(G),e=p(dt);return r=>t.runOutsideAngular(()=>e.handleError(r))}var B0=(()=>{let e=class e{constructor(){this.zone=p(G),this.applicationRef=p(Cn)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function $0(t){return[{provide:G,useFactory:t},{provide:Lr,multi:!0,useFactory:()=>{let e=p(B0,{optional:!0});return()=>e.initialize()}},{provide:fp,useFactory:j0},{provide:Gh,useFactory:Wh}]}var hp=cc(null,"core",[]),pp=(()=>{let e=class e{constructor(n){}};e.\u0275fac=function(i){return new(i||e)(v(Cn))},e.\u0275mod=Z({type:e}),e.\u0275inj=q({});let t=e;return t})();function rr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function gp(t){let e=jt(t);if(!e)return null;let r=new Zn(e);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return e.standalone},get isSignal(){return e.signals}}}var lc=null;function gt(){return lc}function Cp(t){lc||(lc=t)}var ns=class{},ge=new b("DocumentToken"),mc=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(U0))(),providedIn:"platform"});let t=e;return t})(),wp=new b("Location Initialized"),U0=(()=>{let e=class e extends mc{constructor(){super(),this._doc=p(ge),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gt().getBaseHref(this._doc)}onPopState(n){let i=gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",n,!1),()=>i.removeEventListener("popstate",n)}onHashChange(n){let i=gt().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",n,!1),()=>i.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,i,o){this._history.pushState(n,i,o)}replaceState(n,i,o){this._history.replaceState(n,i,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new e)(),providedIn:"platform"});let t=e;return t})();function vc(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function mp(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function At(t){return t&&t[0]!=="?"?"?"+t:t}var Nt=(()=>{let e=class e{historyGo(n){throw new Error("Not implemented")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(yc))(),providedIn:"root"});let t=e;return t})(),bp=new b("appBaseHref"),yc=(()=>{let e=class e extends Nt{constructor(n,i){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??p(ge).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 vc(this._baseHref,n)}path(n=!1){let i=this._platformLocation.pathname+At(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${i}${o}`:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+At(s));this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+At(s));this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(v(mc),v(bp,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ep=(()=>{let e=class e extends Nt{constructor(n,i){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}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}path(n=!1){let i=this._platformLocation.hash;return i==null&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(n){let i=vc(this._baseHref,n);return i.length>0?"#"+i:i}pushState(n,i,o,s){let a=this.prepareExternalUrl(o+At(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.pushState(n,i,a)}replaceState(n,i,o,s){let a=this.prepareExternalUrl(o+At(s));a.length==0&&(a=this._platformLocation.pathname),this._platformLocation.replaceState(n,i,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(i){return new(i||e)(v(mc),v(bp,8))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),or=(()=>{let e=class e{constructor(n){this._subject=new X,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let i=this._locationStrategy.getBaseHref();this._basePath=G0(mp(vp(i))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,i=""){return this.path()==this.normalize(n+At(i))}normalize(n){return e.stripTrailingSlash(z0(this._basePath,vp(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,i="",o=null){this._locationStrategy.pushState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+At(i)),o)}replaceState(n,i="",o=null){this._locationStrategy.replaceState(o,"",n,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+At(i)),o)}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._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{let i=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",i){this._urlChangeListeners.forEach(o=>o(n,i))}subscribe(n,i,o){return this._subject.subscribe({next:n,error:i,complete:o})}};e.normalizeQueryParams=At,e.joinWithSlash=vc,e.stripTrailingSlash=mp,e.\u0275fac=function(i){return new(i||e)(v(Nt))},e.\u0275prov=C({token:e,factory:()=>H0(),providedIn:"root"});let t=e;return t})();function H0(){return new or(v(Nt))}function z0(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function vp(t){return t.replace(/\/index.html$/,"")}function G0(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function rs(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[i,o]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var dc=class{constructor(e,r,n,i){this.$implicit=e,this.ngForOf=r,this.index=n,this.count=i}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}},je=(()=>{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,i,o){this._viewContainer=n,this._template=i,this._differs=o,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(!1)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 i=this._viewContainer;n.forEachOperation((o,s,a)=>{if(o.previousIndex==null)i.createEmbeddedView(this._template,new dc(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)i.remove(s===null?void 0:s);else if(s!==null){let u=i.get(s);i.move(u,a),yp(u,o)}});for(let o=0,s=i.length;o{let s=i.get(o.currentIndex);yp(s,o)})}static ngTemplateContextGuard(n,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(zt),m(yn),m(Qu))},e.\u0275dir=se({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0});let t=e;return t})();function yp(t,e){t.context.$implicit=e.item}var Be=(()=>{let e=class e{constructor(n,i){this._viewContainer=n,this._context=new fc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Dp("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Dp("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,i){return!0}};e.\u0275fac=function(i){return new(i||e)(m(zt),m(yn))},e.\u0275dir=se({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),fc=class{constructor(){this.$implicit=null,this.ngIf=null}};function Dp(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${me(e)}'.`)}function W0(t,e){return new w(2100,!1)}var hc=class{createSubscription(e,r){return Yu(()=>e.subscribe({next:r,error:n=>{throw n}}))}dispose(e){Yu(()=>e.unsubscribe())}},pc=class{createSubscription(e,r){return e.then(r,n=>{throw n})}dispose(e){}},q0=new pc,Z0=new hc,Yt=(()=>{let e=class e{constructor(n){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=n}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(n){return this._obj?n!==this._obj?(this._dispose(),this.transform(n)):this._latestValue:(n&&this._subscribe(n),this._latestValue)}_subscribe(n){this._obj=n,this._strategy=this._selectStrategy(n),this._subscription=this._strategy.createSubscription(n,i=>this._updateLatestValue(n,i))}_selectStrategy(n){if(Gt(n))return q0;if(ic(n))return Z0;throw W0(e,n)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(n,i){n===this._obj&&(this._latestValue=i,this._ref.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(m(Dn,16))},e.\u0275pipe=sf({name:"async",type:e,pure:!1,standalone:!0});let t=e;return t})();var sr=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({});let t=e;return t})(),Ip="browser",Y0="server";function Dc(t){return t===Y0}var _p=(()=>{let e=class e{};e.\u0275prov=C({token:e,providedIn:"root",factory:()=>new gc(v(ge),window)});let t=e;return t})(),gc=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;let r=Q0(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.supportsScrolling()&&(this.window.history.scrollRestoration=e)}scrollToElement(e){let r=e.getBoundingClientRect(),n=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(n-o[0],i-o[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}};function Q0(t,e){let r=t.getElementById(e)||t.getElementsByName(e)[0];if(r)return r;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(e)||o.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var ir=class{};var zr=class{},os=class{},wn=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` +`).forEach(r=>{let n=r.indexOf(":");if(n>0){let i=r.slice(0,n),o=i.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(i,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,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(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=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,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...n),this.headers.set(r,i);break;case"d":let o=e.value;if(!o)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var wc=class{encodeKey(e){return Mp(e)}encodeValue(e){return Mp(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function X0(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],u=r.get(s)||[];u.push(a),r.set(s,u)}),r}var eb=/%(\d[a-f0-9])/gi,tb={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Mp(t){return encodeURIComponent(t).replace(eb,(e,r)=>tb[r]??e)}function is(t){return`${t}`}var Qt=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new wc,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=X0(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],i=Array.isArray(n)?n.map(is):[is(n)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(o=>{r.push({param:n,value:o,op:"a"})}):r.push({param:n,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}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 r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(is(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(is(e.value));i!==-1&&n.splice(i,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 bc=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),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 nb(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Sp(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Tp(t){return typeof Blob<"u"&&t instanceof Blob}function xp(t){return typeof FormData<"u"&&t instanceof FormData}function rb(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var Hr=class t{constructor(e,r,n,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let o;if(nb(this.method)||i?(this.body=n!==void 0?n:null,o=i):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers||(this.headers=new wn),this.context||(this.context=new bc),!this.params)this.params=new Qt,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),u=a===-1?"?":ad.set(f,e.setHeaders[f]),u)),e.setParams&&(c=Object.keys(e.setParams).reduce((d,f)=>d.set(f,e.setParams[f]),c)),new t(r,n,o,{params:c,headers:u,context:l,reportProgress:a,responseType:i,withCredentials:s})}},ar=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}(ar||{}),Gr=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new wn,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Ec=class t extends Gr{constructor(e={}){super(e),this.type=ar.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})}},ss=class t extends Gr{constructor(e={}){super(e),this.type=ar.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})}},as=class extends Gr{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}};function Cc(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 Ic=(()=>{let e=class e{constructor(n){this.handler=n}request(n,i,o={}){let s;if(n instanceof Hr)s=n;else{let c;o.headers instanceof wn?c=o.headers:c=new wn(o.headers);let l;o.params&&(o.params instanceof Qt?l=o.params:l=new Qt({fromObject:o.params})),s=new Hr(n,i,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=I(s).pipe(bt(c=>this.handler.handle(c)));if(n instanceof Hr||o.observe==="events")return a;let u=a.pipe(pe(c=>c instanceof ss));switch(o.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return u.pipe(A(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return u.pipe(A(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return u.pipe(A(c=>c.body))}case"response":return u;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,i={}){return this.request("DELETE",n,i)}get(n,i={}){return this.request("GET",n,i)}head(n,i={}){return this.request("HEAD",n,i)}jsonp(n,i){return this.request("JSONP",n,{params:new Qt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,i={}){return this.request("OPTIONS",n,i)}patch(n,i,o={}){return this.request("PATCH",n,Cc(o,i))}post(n,i,o={}){return this.request("POST",n,Cc(o,i))}put(n,i,o={}){return this.request("PUT",n,Cc(o,i))}};e.\u0275fac=function(i){return new(i||e)(v(zr))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function Rp(t,e){return e(t)}function ib(t,e){return(r,n)=>e.intercept(r,{handle:i=>t(i,n)})}function ob(t,e,r){return(n,i)=>r.runInContext(()=>e(n,o=>t(o,i)))}var _c=new b(""),Mc=new b(""),sb=new b(""),ab=new b("");function ub(){let t=null;return(e,r)=>{t===null&&(t=(p(_c,{optional:!0})??[]).reduceRight(ib,Rp));let n=p(nr),i=n.add();return t(e,r).pipe(Pt(()=>n.remove(i)))}}var Ap=(()=>{let e=class e extends zr{constructor(n,i){super(),this.backend=n,this.injector=i,this.chain=null,this.pendingTasks=p(nr);let o=p(ab,{optional:!0});this.backend=o??n}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(Mc),...this.injector.get(sb,[])]));this.chain=o.reduceRight((s,a)=>ob(s,a,this.injector),Rp)}let i=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Pt(()=>this.pendingTasks.remove(i)))}};e.\u0275fac=function(i){return new(i||e)(v(os),v(we))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();var cb=/^\)\]\}',?\n/;function lb(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Np=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new w(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?z(i.\u0275loadImpl()):I(null)).pipe(oe(()=>new B(s=>{let a=i.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((T,_)=>a.setRequestHeader(T,_.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let T=n.detectContentTypeHeader();T!==null&&a.setRequestHeader("Content-Type",T)}if(n.responseType){let T=n.responseType.toLowerCase();a.responseType=T!=="json"?T:"text"}let u=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let T=a.statusText||"OK",_=new wn(a.getAllResponseHeaders()),ie=lb(a)||n.url;return c=new Ec({headers:_,status:a.status,statusText:T,url:ie}),c},d=()=>{let{headers:T,status:_,statusText:ie,url:he}=l(),J=null;_!==204&&(J=typeof a.response>"u"?a.responseText:a.response),_===0&&(_=J?200:0);let tt=_>=200&&_<300;if(n.responseType==="json"&&typeof J=="string"){let Ae=J;J=J.replace(cb,"");try{J=J!==""?JSON.parse(J):null}catch(Rt){J=Ae,tt&&(tt=!1,J={error:Rt,text:J})}}tt?(s.next(new ss({body:J,headers:T,status:_,statusText:ie,url:he||void 0})),s.complete()):s.error(new as({error:J,headers:T,status:_,statusText:ie,url:he||void 0}))},f=T=>{let{url:_}=l(),ie=new as({error:T,status:a.status||0,statusText:a.statusText||"Unknown Error",url:_||void 0});s.error(ie)},h=!1,E=T=>{h||(s.next(l()),h=!0);let _={type:ar.DownloadProgress,loaded:T.loaded};T.lengthComputable&&(_.total=T.total),n.responseType==="text"&&a.responseText&&(_.partialText=a.responseText),s.next(_)},V=T=>{let _={type:ar.UploadProgress,loaded:T.loaded};T.lengthComputable&&(_.total=T.total),s.next(_)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",E),u!==null&&a.upload&&a.upload.addEventListener("progress",V)),a.send(u),s.next({type:ar.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",E),u!==null&&a.upload&&a.upload.removeEventListener("progress",V)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(v(ir))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Fp=new b("XSRF_ENABLED"),db="XSRF-TOKEN",fb=new b("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>db}),hb="X-XSRF-TOKEN",pb=new b("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>hb}),us=class{},gb=(()=>{let e=class e{constructor(n,i,o){this.doc=n,this.platform=i,this.cookieName=o,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=rs(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(v(ge),v(Tt),v(fb))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function mb(t,e){let r=t.url.toLowerCase();if(!p(Fp)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=p(us).getToken(),i=p(pb);return n!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,n)})),e(t)}var Pp=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Pp||{});function vb(t,e){return{\u0275kind:t,\u0275providers:e}}function yb(...t){let e=[Ic,Np,Ap,{provide:zr,useExisting:Ap},{provide:os,useExisting:Np},{provide:Mc,useValue:mb,multi:!0},{provide:Fp,useValue:!0},{provide:us,useClass:gb}];for(let r of t)e.push(...r.\u0275providers);return Vo(e)}var Op=new b("LEGACY_INTERCEPTOR_FN");function Db(){return vb(Pp.LegacyInterceptors,[{provide:Op,useFactory:ub},{provide:Mc,useExisting:Op,multi:!0}])}var kp=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({providers:[yb(Db())]});let t=e;return t})();var xc=class extends ns{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Ac=class t extends xc{static makeCurrent(){Cp(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.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,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=wb();return r==null?null:bb(r)}resetBaseElement(){Wr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return rs(document.cookie,e)}},Wr=null;function wb(){return Wr=Wr||document.querySelector("base"),Wr?Wr.getAttribute("href"):null}var cs;function bb(t){cs=cs||document.createElement("a"),cs.setAttribute("href",t);let e=cs.pathname;return e.charAt(0)==="/"?e:`/${e}`}var Nc=class{addToWindow(e){Ce.getAngularTestability=(n,i=!0)=>{let o=e.findTestabilityInTree(n,i);if(o==null)throw new w(5103,!1);return o},Ce.getAllAngularTestabilities=()=>e.getAllTestabilities(),Ce.getAllAngularRootElements=()=>e.getAllRootElements();let r=n=>{let i=Ce.getAllAngularTestabilities(),o=i.length,s=!1,a=function(u){s=s||u,o--,o==0&&n(s)};i.forEach(u=>{u.whenStable(a)})};Ce.frameworkStabilizers||(Ce.frameworkStabilizers=[]),Ce.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,n){if(r==null)return null;let i=e.getTestability(r);return i??(n?gt().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},Eb=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Oc=new b("EventManagerPlugins"),Bp=(()=>{let e=class e{constructor(n,i){this._zone=i,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,i,o){return this._findPluginFor(i).addEventListener(n,i,o)}getZone(){return this._zone}_findPluginFor(n){let i=this._eventNameToPlugin.get(n);if(i)return i;if(i=this._plugins.find(s=>s.supports(n)),!i)throw new w(5101,!1);return this._eventNameToPlugin.set(n,i),i}};e.\u0275fac=function(i){return new(i||e)(v(Oc),v(G))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),ls=class{constructor(e){this._doc=e}},Sc="ng-app-id",$p=(()=>{let e=class e{constructor(n,i,o,s={}){this.doc=n,this.appId=i,this.nonce=o,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Dc(s),this.resetHostNodes()}addStyles(n){for(let i of n)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(n){for(let i of n)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(i=>i.remove()),n.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let i of this.getAllStyles())this.addStyleToHost(n,i)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let i of this.hostNodes)this.addStyleToHost(i,n)}onStyleRemoved(n){let i=this.styleRef;i.get(n)?.elements?.forEach(o=>o.remove()),i.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${Sc}="${this.appId}"]`);if(n?.length){let i=new Map;return n.forEach(o=>{o.textContent!=null&&i.set(o.textContent,o)}),i}return null}changeUsageCount(n,i){let o=this.styleRef;if(o.has(n)){let s=o.get(n);return s.usage+=i,s.usage}return o.set(n,{usage:i,elements:[]}),i}getStyleElement(n,i){let o=this.styleNodesInDOM,s=o?.get(i);if(s?.parentNode===n)return o.delete(i),s.removeAttribute(Sc),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=i,this.platformIsServer&&a.setAttribute(Sc,this.appId),n.appendChild(a),a}}addStyleToHost(n,i){let o=this.getStyleElement(n,i),s=this.styleRef,a=s.get(i)?.elements;a?a.push(o):s.set(i,{elements:[o],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(v(ge),v(Bo),v($u,8),v(Tt))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),Tc={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Fc=/%COMP%/g,Up="%COMP%",Ib=`_nghost-${Up}`,_b=`_ngcontent-${Up}`,Mb=!0,Sb=new b("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>Mb});function Tb(t){return _b.replace(Fc,t)}function xb(t){return Ib.replace(Fc,t)}function Hp(t,e){return e.map(r=>r.replace(Fc,t))}var Lp=(()=>{let e=class e{constructor(n,i,o,s,a,u,c,l=null){this.eventManager=n,this.sharedStylesHost=i,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=u,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=Dc(u),this.defaultRenderer=new qr(n,a,c,this.platformIsServer)}createRenderer(n,i){if(!n||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===ut.ShadowDom&&(i=H(g({},i),{encapsulation:ut.Emulated}));let o=this.getOrCreateRenderer(n,i);return o instanceof ds?o.applyToHost(n):o instanceof Zr&&o.applyStyles(),o}getOrCreateRenderer(n,i){let o=this.rendererByCompId,s=o.get(i.id);if(!s){let a=this.doc,u=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(i.encapsulation){case ut.Emulated:s=new ds(c,l,i,this.appId,d,a,u,f);break;case ut.ShadowDom:return new Rc(c,l,n,i,a,u,this.nonce,f);default:s=new Zr(c,l,i,d,a,u,f);break}o.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(v(Bp),v($p),v(Bo),v(Sb),v(ge),v(Tt),v(G),v($u))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),qr=class{constructor(e,r,n,i){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Tc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(Vp(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(Vp(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new w(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,i){if(i){r=i+":"+r;let o=Tc[i];o?e.setAttributeNS(o,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let i=Tc[n];i?e.removeAttributeNS(i,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,i){i&(It.DashCase|It.Important)?e.style.setProperty(r,n,i&It.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&It.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=gt().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function Vp(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Rc=class extends qr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,u),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let c=Hp(i.id,i.styles);for(let l of c){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Zr=class extends qr{constructor(e,r,n,i,o,s,a,u){super(e,o,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=u?Hp(u,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},ds=class extends Zr{constructor(e,r,n,i,o,s,a,u){let c=i+"-"+n.id;super(e,r,n,o,s,a,u,c),this.contentAttr=Tb(c),this.hostAttr=xb(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},Ab=(()=>{let e=class e extends ls{constructor(n){super(n)}supports(n){return!0}addEventListener(n,i,o){return n.addEventListener(i,o,!1),()=>this.removeEventListener(n,i,o)}removeEventListener(n,i,o){return n.removeEventListener(i,o)}};e.\u0275fac=function(i){return new(i||e)(v(ge))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})(),jp=["alt","control","meta","shift"],Nb={"\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"},Ob={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Rb=(()=>{let e=class e extends ls{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,i,o){let s=e.parseEventName(i),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gt().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let i=n.toLowerCase().split("."),o=i.shift();if(i.length===0||!(o==="keydown"||o==="keyup"))return null;let s=e._normalizeKey(i.pop()),a="",u=i.indexOf("code");if(u>-1&&(i.splice(u,1),a="code."),jp.forEach(l=>{let d=i.indexOf(l);d>-1&&(i.splice(d,1),a+=l+".")}),a+=s,i.length!=0||s.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(n,i){let o=Nb[n.key]||n.key,s="";return i.indexOf("code.")>-1&&(o=n.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),jp.forEach(a=>{if(a!==o){let u=Ob[a];u(n)&&(s+=a+".")}}),s+=o,s===i)}static eventCallback(n,i,o){return s=>{e.matchEventFullKeyCode(s,n)&&o.runGuarded(()=>i(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(i){return new(i||e)(v(ge))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function Fb(){Ac.makeCurrent()}function Pb(){return new dt}function kb(){return nh(document),document}var Lb=[{provide:Tt,useValue:Ip},{provide:Bu,useValue:Fb,multi:!0},{provide:ge,useFactory:kb,deps:[]}],zp=cc(hp,"browser",Lb),Vb=new b(""),jb=[{provide:Ur,useClass:Nc,deps:[]},{provide:ac,useClass:Xo,deps:[G,es,Ur]},{provide:Xo,useClass:Xo,deps:[G,es,Ur]}],Bb=[{provide:jo,useValue:"root"},{provide:dt,useFactory:Pb,deps:[]},{provide:Oc,useClass:Ab,multi:!0,deps:[ge,G,Tt]},{provide:Oc,useClass:Rb,multi:!0,deps:[ge]},Lp,$p,Bp,{provide:Ar,useExisting:Lp},{provide:ir,useClass:Eb,deps:[]},[]],Gp=(()=>{let e=class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:Bo,useValue:n.appId}]}}};e.\u0275fac=function(i){return new(i||e)(v(Vb,12))},e.\u0275mod=Z({type:e}),e.\u0275inj=q({providers:[...Bb,...jb],imports:[sr,pp]});let t=e;return t})();function $b(){return new Pc(v(ge))}var Pc=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(i){return new(i||e)(v(ge))},e.\u0275prov=C({token:e,factory:function(i){let o=null;return i?o=new i:o=$b(),o},providedIn:"root"});let t=e;return t})();var R="primary",ci=Symbol("RouteTitle"),Bc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function fr(t){return new Bc(t)}function Ub(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.lengthn[o]===i)}else return t===e}function rg(t){return t.length>0?t[t.length-1]:null}function en(t){return aa(t)?t:Gt(t)?z(Promise.resolve(t)):I(t)}var zb={exact:og,subset:sg},ig={exact:Gb,subset:Wb,ignored:()=>!0};function qp(t,e,r){return zb[r.paths](t.root,e.root,r.matrixParams)&&ig[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function Gb(t,e){return vt(t,e)}function og(t,e,r){if(!En(t.segments,e.segments)||!ps(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!og(t.children[n],e.children[n],r))return!1;return!0}function Wb(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>ng(t[r],e[r]))}function sg(t,e,r){return ag(t,e,e.segments,r)}function ag(t,e,r,n){if(t.segments.length>r.length){let i=t.segments.slice(0,r.length);return!(!En(i,r)||e.hasChildren()||!ps(i,r,n))}else if(t.segments.length===r.length){if(!En(t.segments,r)||!ps(t.segments,r,n))return!1;for(let i in e.children)if(!t.children[i]||!sg(t.children[i],e.children[i],n))return!1;return!0}else{let i=r.slice(0,t.segments.length),o=r.slice(t.segments.length);return!En(t.segments,i)||!ps(t.segments,i,n)||!t.children[R]?!1:ag(t.children[R],e,o,n)}}function ps(t,e,r){return e.every((n,i)=>ig[r](t[i].parameters,n.parameters))}var Kt=class{constructor(e=new U([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fr(this.queryParams)),this._queryParamMap}toString(){return Yb.serialize(this)}},U=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return gs(this)}},bn=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap||(this._parameterMap=fr(this.parameters)),this._parameterMap}toString(){return cg(this)}};function qb(t,e){return En(t,e)&&t.every((r,n)=>vt(r.parameters,e[n].parameters))}function En(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function Zb(t,e){let r=[];return Object.entries(t.children).forEach(([n,i])=>{n===R&&(r=r.concat(e(i,n)))}),Object.entries(t.children).forEach(([n,i])=>{n!==R&&(r=r.concat(e(i,n)))}),r}var li=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>new ti)(),providedIn:"root"});let t=e;return t})(),ti=class{parse(e){let r=new Hc(e);return new Kt(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Yr(e.root,!0)}`,n=Jb(e.queryParams),i=typeof e.fragment=="string"?`#${Qb(e.fragment)}`:"";return`${r}${n}${i}`}},Yb=new ti;function gs(t){return t.segments.map(e=>cg(e)).join("/")}function Yr(t,e){if(!t.hasChildren())return gs(t);if(e){let r=t.children[R]?Yr(t.children[R],!1):"",n=[];return Object.entries(t.children).forEach(([i,o])=>{i!==R&&n.push(`${i}:${Yr(o,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=Zb(t,(n,i)=>i===R?[Yr(t.children[R],!1)]:[`${i}:${Yr(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[R]!=null?`${gs(t)}/${r[0]}`:`${gs(t)}/(${r.join("//")})`}}function ug(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fs(t){return ug(t).replace(/%3B/gi,";")}function Qb(t){return encodeURI(t)}function Uc(t){return ug(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ms(t){return decodeURIComponent(t)}function Zp(t){return ms(t.replace(/\+/g,"%20"))}function cg(t){return`${Uc(t.path)}${Kb(t.parameters)}`}function Kb(t){return Object.keys(t).map(e=>`;${Uc(e)}=${Uc(t[e])}`).join("")}function Jb(t){let e=Object.keys(t).map(r=>{let n=t[r];return Array.isArray(n)?n.map(i=>`${fs(r)}=${fs(i)}`).join("&"):`${fs(r)}=${fs(n)}`}).filter(r=>!!r);return e.length?`?${e.join("&")}`:""}var Xb=/^[^\/()?;#]+/;function kc(t){let e=t.match(Xb);return e?e[0]:""}var eE=/^[^\/()?;=#]+/;function tE(t){let e=t.match(eE);return e?e[0]:""}var nE=/^[^=?&#]+/;function rE(t){let e=t.match(nE);return e?e[0]:""}var iE=/^[^&#]+/;function oE(t){let e=t.match(iE);return e?e[0]:""}var Hc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new U([],{}):new U([],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 r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[R]=new U(e,r)),n}parseSegment(){let e=kc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(e),new bn(ms(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=tE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let i=kc(this.remaining);i&&(n=i,this.capture(n))}e[ms(r)]=ms(n)}parseQueryParam(e){let r=rE(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=oE(this.remaining);s&&(n=s,this.capture(n))}let i=Zp(r),o=Zp(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=kc(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;n.indexOf(":")>-1?(o=n.slice(0,n.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=R);let s=this.parseChildren();r[o]=Object.keys(s).length===1?s[R]:new U([],s),this.consumeOptional("//")}return r}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 w(4011,!1)}};function lg(t){return t.segments.length>0?new U([],{[R]:t}):t}function dg(t){let e={};for(let n of Object.keys(t.children)){let i=t.children[n],o=dg(i);if(n===R&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[n]=o)}let r=new U(t.segments,e);return sE(r)}function sE(t){if(t.numberOfChildren===1&&t.children[R]){let e=t.children[R];return new U(t.segments.concat(e.segments),e.children)}return t}function hr(t){return t instanceof Kt}function aE(t,e,r=null,n=null){let i=fg(t);return hg(i,e,r,n)}function fg(t){let e;function r(o){let s={};for(let u of o.children){let c=r(u);s[u.outlet]=c}let a=new U(o.url,s);return o===t&&(e=a),a}let n=r(t.root),i=lg(n);return e??i}function hg(t,e,r,n){let i=t;for(;i.parent;)i=i.parent;if(e.length===0)return Lc(i,i,i,r,n);let o=uE(e);if(o.toRoot())return Lc(i,i,new U([],{}),r,n);let s=cE(o,i,t),a=s.processChildren?Jr(s.segmentGroup,s.index,o.commands):gg(s.segmentGroup,s.index,o.commands);return Lc(i,s.segmentGroup,a,r,n)}function vs(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ni(t){return typeof t=="object"&&t!=null&&t.outlets}function Lc(t,e,r,n,i){let o={};n&&Object.entries(n).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`});let s;t===e?s=r:s=pg(t,e,r);let a=lg(dg(s));return new Kt(a,o,i)}function pg(t,e,r){let n={};return Object.entries(t.children).forEach(([i,o])=>{o===e?n[i]=r:n[i]=pg(o,e,r)}),new U(t.segments,n)}var ys=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&vs(n[0]))throw new w(4003,!1);let i=n.find(ni);if(i&&i!==rg(n))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function uE(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ys(!0,0,t);let e=0,r=!1,n=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?r=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ys(r,e,n)}var lr=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function cE(t,e,r){if(t.isAbsolute)return new lr(e,!0,0);if(!r)return new lr(e,!1,NaN);if(r.parent===null)return new lr(r,!0,0);let n=vs(t.commands[0])?0:1,i=r.segments.length-1+n;return lE(r,i,t.numberOfDoubleDots)}function lE(t,e,r){let n=t,i=e,o=r;for(;o>i;){if(o-=i,n=n.parent,!n)throw new w(4005,!1);i=n.segments.length}return new lr(n,!1,i-o)}function dE(t){return ni(t[0])?t[0].outlets:{[R]:t}}function gg(t,e,r){if(t||(t=new U([],{})),t.segments.length===0&&t.hasChildren())return Jr(t,e,r);let n=fE(t,e,r),i=r.slice(n.commandIndex);if(n.match&&n.pathIndexo!==R)&&t.children[R]&&t.numberOfChildren===1&&t.children[R].segments.length===0){let o=Jr(t.children[R],e,r);return new U(t.segments,o.children)}return Object.entries(n).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=gg(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{n[o]===void 0&&(i[o]=s)}),new U(t.segments,i)}}function fE(t,e,r){let n=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return o;let s=t.segments[i],a=r[n];if(ni(a))break;let u=`${a}`,c=n0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!Qp(u,c,s))return o;n+=2}else{if(!Qp(u,{},s))return o;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function zc(t,e,r){let n=t.segments.slice(0,e),i=0;for(;i{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=zc(new U([],{}),0,n))}),e}function Yp(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function Qp(t,e,r){return t==r.path&&vt(e,r.parameters)}var Xr="imperative",$e=class{constructor(e,r){this.id=e,this.url=r}},pr=class extends $e{constructor(e,r,n="imperative",i=null){super(e,r),this.type=0,this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Xe=class extends $e{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Jt=class extends $e{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Xt=class extends $e{constructor(e,r,n,i){super(e,r),this.reason=n,this.code=i,this.type=16}},ri=class extends $e{constructor(e,r,n,i){super(e,r),this.error=n,this.target=i,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ds=class extends $e{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Gc=class extends $e{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Wc=class extends $e{constructor(e,r,n,i,o){super(e,r),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},qc=class extends $e{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zc=class extends $e{constructor(e,r,n,i){super(e,r),this.urlAfterRedirects=n,this.state=i,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yc=class{constructor(e){this.route=e,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Qc=class{constructor(e){this.route=e,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Kc=class{constructor(e){this.snapshot=e,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Jc=class{constructor(e){this.snapshot=e,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xc=class{constructor(e){this.snapshot=e,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},el=class{constructor(e){this.snapshot=e,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Cs=class{constructor(e,r,n){this.routerEvent=e,this.position=r,this.anchor=n,this.type=15}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},ii=class{},oi=class{constructor(e){this.url=e}};var tl=class{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new di,this.attachRef=null}},di=(()=>{let e=class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,i){let o=this.getOrCreateContext(n);o.outlet=i,this.contexts.set(n,o)}onChildOutletDestroyed(n){let i=this.getContext(n);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let i=this.getContext(n);return i||(i=new tl,this.contexts.set(n,i)),i}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ws=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=nl(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=nl(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=rl(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return rl(e,this._root).map(r=>r.value)}};function nl(t,e){if(t===e.value)return e;for(let r of e.children){let n=nl(t,r);if(n)return n}return null}function rl(t,e){if(t===e.value)return[e];for(let r of e.children){let n=rl(t,r);if(n.length)return n.unshift(e),n}return[]}var Re=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function cr(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var bs=class extends ws{constructor(e,r){super(e),this.snapshot=r,hl(this,e)}toString(){return this.snapshot.toString()}};function mg(t,e){let r=pE(t,e),n=new le([new bn("",{})]),i=new le({}),o=new le({}),s=new le({}),a=new le(""),u=new et(n,i,s,a,o,R,e,r.root);return u.snapshot=r.root,new bs(new Re(u,[]),r)}function pE(t,e){let r={},n={},i={},o="",s=new si([],r,i,o,n,R,e,null,{});return new Es("",new Re(s,[]))}var et=class{constructor(e,r,n,i,o,s,a,u){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(A(c=>c[ci]))??I(void 0),this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(A(e=>fr(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(A(e=>fr(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function fl(t,e,r="emptyOnly"){let n,{routeConfig:i}=t;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:g(g({},e.params),t.params),data:g(g({},e.data),t.data),resolve:g(g(g(g({},t.data),e.data),i?.data),t._resolvedData)}:n={params:t.params,data:t.data,resolve:g(g({},t.data),t._resolvedData??{})},i&&yg(i)&&(n.resolve[ci]=i.title),n}var si=class{get title(){return this.data?.[ci]}constructor(e,r,n,i,o,s,a,u,c){this.url=e,this.params=r,this.queryParams=n,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=fr(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=fr(this.queryParams)),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Es=class extends ws{constructor(e,r){super(r),this.url=e,hl(this,r)}toString(){return vg(this._root)}};function hl(t,e){e.value._routerState=t,e.children.forEach(r=>hl(t,r))}function vg(t){let e=t.children.length>0?` { ${t.children.map(vg).join(", ")} } `:"";return`${t.value}${e}`}function Vc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,vt(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),vt(e.params,r.params)||t.paramsSubject.next(r.params),Hb(e.url,r.url)||t.urlSubject.next(r.url),vt(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function il(t,e){let r=vt(t.params,e.params)&&qb(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||il(t.parent,e.parent))}function yg(t){return typeof t.title=="string"||t.title===null}var pl=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=R,this.activateEvents=new X,this.deactivateEvents=new X,this.attachEvents=new X,this.detachEvents=new X,this.parentContexts=p(di),this.location=p(zt),this.changeDetector=p(Dn),this.environmentInjector=p(we),this.inputBinder=p(Ts,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:i,previousValue:o}=n.name;if(i)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(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 w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,i){this.activated=n,this._activatedRoute=i,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,i){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;let o=this.location,a=n.snapshot.component,u=this.parentContexts.getOrCreateContext(this.name).children,c=new ol(n,u,o.injector);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:i??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=se({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ke]});let t=e;return t})(),ol=class{constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===et?this.route:e===di?this.childContexts:this.parent.get(e,r)}},Ts=new b(""),Kp=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){let{activatedRoute:i}=n,o=br([i.queryParams,i.params,i.data]).pipe(oe(([s,a,u],c)=>(u=g(g(g({},s),a),u),c===0?I(u):Promise.resolve(u)))).subscribe(s=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(n);return}let a=gp(i.component);if(!a){this.unsubscribeFromRouteData(n);return}for(let{templateName:u}of a.inputs)n.activatedComponentRef.setInput(u,s[u])});this.outletDataSubscriptions.set(n,o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function gE(t,e,r){let n=ai(t,e._root,r?r._root:void 0);return new bs(n,e)}function ai(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let i=mE(t,e,r);return new Re(n,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>ai(t,a)),s}}let n=vE(e.value),i=e.children.map(o=>ai(t,o));return new Re(n,i)}}function mE(t,e,r){return e.children.map(n=>{for(let i of r.children)if(t.shouldReuseRoute(n.value,i.value.snapshot))return ai(t,n,i);return ai(t,n)})}function vE(t){return new et(new le(t.url),new le(t.params),new le(t.queryParams),new le(t.fragment),new le(t.data),t.outlet,t.component,t)}var Dg="ngNavigationCancelingError";function Cg(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=hr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=wg(!1,0,e);return i.url=r,i.navigationBehaviorOptions=n,i}function wg(t,e,r){let n=new Error("NavigationCancelingError: "+(t||""));return n[Dg]=!0,n.cancellationCode=e,r&&(n.url=r),n}function yE(t){return bg(t)&&hr(t.url)}function bg(t){return t&&t[Dg]}var DE=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=te({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xh],decls:1,vars:0,template:function(i,o){i&1&&ne(0,"router-outlet")},dependencies:[pl],encapsulation:2});let t=e;return t})();function CE(t,e){return t.providers&&!t._injector&&(t._injector=qo(t.providers,e,`Route: ${t.path}`)),t._injector??e}function gl(t){let e=t.children&&t.children.map(gl),r=e?H(g({},t),{children:e}):g({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==R&&(r.component=DE),r}function yt(t){return t.outlet||R}function wE(t,e){let r=t.filter(n=>yt(n)===e);return r.push(...t.filter(n=>yt(n)!==e)),r}function fi(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var bE=(t,e,r,n)=>A(i=>(new sl(e,i.targetRouterState,i.currentRouterState,r,n).activate(t),i)),sl=class{constructor(e,r,n,i,o){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),Vc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let i=cr(r);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],n),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,n)})}deactivateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(i===o)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else o&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=cr(e);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),i=n&&e.value.component?n.children:r,o=cr(e);for(let s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let i=cr(r);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],n),this.forwardEvent(new el(o.value.snapshot))}),e.children.length&&this.forwardEvent(new Jc(e.value.snapshot))}activateRoutes(e,r,n){let i=e.value,o=r?r.value:null;if(Vc(i),i===o)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Vc(a.route.value),this.activateChildRoutes(e,null,s.children)}else{let a=fi(i.snapshot);s.attachRef=null,s.route=i,s.injector=a,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,n)}},Is=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},dr=class{constructor(e,r){this.component=e,this.route=r}};function EE(t,e,r){let n=t._root,i=e?e._root:null;return Qr(n,i,r,[n.value])}function IE(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function mr(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Zd(t)?t:e.get(t):n}function Qr(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=cr(e);return t.children.forEach(s=>{_E(s,o[s.value.outlet],r,n.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>ei(a,r.getContext(s),i)),i}function _E(t,e,r,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=ME(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Is(n)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Qr(t,e,a?a.children:null,n,i):Qr(t,e,r,n,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new dr(a.outlet.component,s))}else s&&ei(e,a,i),i.canActivateChecks.push(new Is(n)),o.component?Qr(t,null,a?a.children:null,n,i):Qr(t,null,r,n,i);return i}function ME(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!En(t.url,e.url);case"pathParamsOrQueryParamsChange":return!En(t.url,e.url)||!vt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!il(t,e)||!vt(t.queryParams,e.queryParams);case"paramsChange":default:return!il(t,e)}}function ei(t,e,r){let n=cr(t),i=t.value;Object.entries(n).forEach(([o,s])=>{i.component?e?ei(s,e.children.getContext(o),r):ei(s,null,r):ei(s,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new dr(e.outlet.component,i)):r.canDeactivateChecks.push(new dr(null,i)):r.canDeactivateChecks.push(new dr(null,i))}function hi(t){return typeof t=="function"}function SE(t){return typeof t=="boolean"}function TE(t){return t&&hi(t.canLoad)}function xE(t){return t&&hi(t.canActivate)}function AE(t){return t&&hi(t.canActivateChild)}function NE(t){return t&&hi(t.canDeactivate)}function OE(t){return t&&hi(t.canMatch)}function Eg(t){return t instanceof wt||t?.name==="EmptyError"}var hs=Symbol("INITIAL_VALUE");function gr(){return oe(t=>br(t.map(e=>e.pipe(Et(1),ga(hs)))).pipe(A(e=>{for(let r of e)if(r!==!0){if(r===hs)return hs;if(r===!1||r instanceof Kt)return r}return!0}),pe(e=>e!==hs),Et(1)))}function RE(t,e){return ue(r=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=r;return s.length===0&&o.length===0?I(H(g({},r),{guardsResult:!0})):FE(s,n,i,t).pipe(ue(a=>a&&SE(a)?PE(n,o,t,e):I(a)),A(a=>H(g({},r),{guardsResult:a})))})}function FE(t,e,r,n){return z(t).pipe(ue(i=>BE(i.component,i.route,r,e,n)),it(i=>i!==!0,!0))}function PE(t,e,r,n){return z(e).pipe(bt(i=>Rn(LE(i.route.parent,n),kE(i.route,n),jE(t,i.path,r),VE(t,i.route,r))),it(i=>i!==!0,!0))}function kE(t,e){return t!==null&&e&&e(new Xc(t)),I(!0)}function LE(t,e){return t!==null&&e&&e(new Kc(t)),I(!0)}function VE(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return I(!0);let i=n.map(o=>qi(()=>{let s=fi(e)??r,a=mr(o,s),u=xE(a)?a.canActivate(e,t):s.runInContext(()=>a(e,t));return en(u).pipe(it())}));return I(i).pipe(gr())}function jE(t,e,r){let n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(s=>IE(s)).filter(s=>s!==null).map(s=>qi(()=>{let a=s.guards.map(u=>{let c=fi(s.node)??r,l=mr(u,c),d=AE(l)?l.canActivateChild(n,t):c.runInContext(()=>l(n,t));return en(d).pipe(it())});return I(a).pipe(gr())}));return I(o).pipe(gr())}function BE(t,e,r,n,i){let o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||o.length===0)return I(!0);let s=o.map(a=>{let u=fi(e)??i,c=mr(a,u),l=NE(c)?c.canDeactivate(t,e,r,n):u.runInContext(()=>c(t,e,r,n));return en(l).pipe(it())});return I(s).pipe(gr())}function $E(t,e,r,n){let i=e.canLoad;if(i===void 0||i.length===0)return I(!0);let o=i.map(s=>{let a=mr(s,t),u=TE(a)?a.canLoad(e,r):t.runInContext(()=>a(e,r));return en(u)});return I(o).pipe(gr(),Ig(n))}function Ig(t){return ta(ee(e=>{if(hr(e))throw Cg(t,e)}),A(e=>e===!0))}function UE(t,e,r,n){let i=e.canMatch;if(!i||i.length===0)return I(!0);let o=i.map(s=>{let a=mr(s,t),u=OE(a)?a.canMatch(e,r):t.runInContext(()=>a(e,r));return en(u)});return I(o).pipe(gr(),Ig(n))}var ui=class{constructor(e){this.segmentGroup=e||null}},_s=class extends Error{constructor(e){super(),this.urlTree=e}};function ur(t){return On(new ui(t))}function HE(t){return On(new w(4e3,!1))}function zE(t){return On(wg(!1,3))}var al=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}noMatchError(e){return new w(4002,!1)}lineralizeSegments(e,r){let n=[],i=r.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return I(n);if(i.numberOfChildren>1||!i.children[R])return HE(e.redirectTo);i=i.children[R]}}applyRedirectCommands(e,r,n){let i=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r.startsWith("/"))throw new _s(i);return i}applyRedirectCreateUrlTree(e,r,n,i){let o=this.createSegmentGroup(e,r.root,n,i);return new Kt(o,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o.startsWith(":")){let a=o.substring(1);n[i]=r[a]}else n[i]=o}),n}createSegmentGroup(e,r,n,i){let o=this.createSegments(e,r.segments,n,i),s={};return Object.entries(r.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(e,u,n,i)}),new U(o,s)}createSegments(e,r,n,i){return r.map(o=>o.path.startsWith(":")?this.findPosParam(e,o,i):this.findOrReturn(o,n))}findPosParam(e,r,n){let i=n[r.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(e,r){let n=0;for(let i of r){if(i.path===e.path)return r.splice(n),i;n++}return e}},ul={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function GE(t,e,r,n,i){let o=ml(t,e,r);return o.matched?(n=CE(e,n),UE(n,e,r,i).pipe(A(s=>s===!0?o:g({},ul)))):I(o)}function ml(t,e,r){if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?g({},ul):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||Ub)(r,t,e);if(!i)return g({},ul);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?g(g({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function Jp(t,e,r,n){return r.length>0&&ZE(t,r,n)?{segmentGroup:new U(e,qE(n,new U(r,t.children))),slicedSegments:[]}:r.length===0&&YE(t,r,n)?{segmentGroup:new U(t.segments,WE(t,e,r,n,t.children)),slicedSegments:r}:{segmentGroup:new U(t.segments,t.children),slicedSegments:r}}function WE(t,e,r,n,i){let o={};for(let s of n)if(xs(t,r,s)&&!i[yt(s)]){let a=new U([],{});o[yt(s)]=a}return g(g({},i),o)}function qE(t,e){let r={};r[R]=e;for(let n of t)if(n.path===""&&yt(n)!==R){let i=new U([],{});r[yt(n)]=i}return r}function ZE(t,e,r){return r.some(n=>xs(t,e,n)&&yt(n)!==R)}function YE(t,e,r){return r.some(n=>xs(t,e,n))}function xs(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function QE(t,e,r,n){return yt(t)!==n&&(n===R||!xs(e,r,t))?!1:t.path==="**"?!0:ml(e,t,r).matched}function KE(t,e,r){return e.length===0&&!t.children[r]}var cl=class{};function JE(t,e,r,n,i,o,s="emptyOnly"){return new ll(t,e,r,n,i,s,o).recognize()}var XE=31,ll=class{constructor(e,r,n,i,o,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new al(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new w(4002,!1)}recognize(){let e=Jp(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(A(r=>{let n=new si([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,{},R,this.rootComponentType,null,{}),i=new Re(n,r),o=new Es("",i),s=aE(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(o._root,null),{state:o,tree:s}}))}match(e){return this.processSegmentGroup(this.injector,this.config,e,R).pipe(Fe(n=>{if(n instanceof _s)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof ui?this.noMatchError(n):n}))}inheritParamsAndData(e,r){let n=e.value,i=fl(n,r,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(o=>this.inheritParamsAndData(o,n))}processSegmentGroup(e,r,n,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n):this.processSegment(e,r,n,n.segments,i,!0).pipe(A(o=>o instanceof Re?[o]:[]))}processChildren(e,r,n){let i=[];for(let o of Object.keys(n.children))o==="primary"?i.unshift(o):i.push(o);return z(i).pipe(bt(o=>{let s=n.children[o],a=wE(r,o);return this.processSegmentGroup(e,a,s,o)}),ha((o,s)=>(o.push(...s),o)),Ft(null),fa(),ue(o=>{if(o===null)return ur(n);let s=_g(o);return eI(s),I(s)}))}processSegment(e,r,n,i,o,s){return z(r).pipe(bt(a=>this.processSegmentAgainstRoute(a._injector??e,r,a,n,i,o,s).pipe(Fe(u=>{if(u instanceof ui)return I(null);throw u}))),it(a=>!!a),Fe(a=>{if(Eg(a))return KE(n,i,o)?I(new cl):ur(n);throw a}))}processSegmentAgainstRoute(e,r,n,i,o,s,a){return QE(n,i,o,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,o,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,n,o,s):ur(i):ur(i)}expandSegmentAgainstRouteUsingRedirect(e,r,n,i,o,s){let{matched:a,consumedSegments:u,positionalParamSegments:c,remainingSegments:l}=i.path==="**"?Xp(o):ml(r,i,o);if(!a)return ur(r);i.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>XE&&(this.allowRedirects=!1));let d=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,c);return this.applyRedirects.lineralizeSegments(i,d).pipe(ue(f=>this.processSegment(e,n,r,f.concat(l),s,!1)))}matchSegmentAgainstRoute(e,r,n,i,o){let s;return n.path==="**"?(s=I(Xp(i)),r.children={}):s=GE(r,n,i,e,this.urlSerializer),s.pipe(oe(a=>a.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(oe(({routes:u})=>{let c=n._loadedInjector??e,{consumedSegments:l,remainingSegments:d,parameters:f}=a,h=new si(l,f,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,nI(n),yt(n),n.component??n._loadedComponent??null,n,rI(n)),{segmentGroup:E,slicedSegments:V}=Jp(r,l,d,u);if(V.length===0&&E.hasChildren())return this.processChildren(c,u,E).pipe(A(_=>_===null?null:new Re(h,_)));if(u.length===0&&V.length===0)return I(new Re(h,[]));let T=yt(n)===o;return this.processSegment(c,u,E,V,T?R:o,!0).pipe(A(_=>new Re(h,_ instanceof Re?[_]:[])))}))):ur(r)))}getChildConfig(e,r,n){return r.children?I({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?I({routes:r._loadedRoutes,injector:r._loadedInjector}):$E(e,r,n,this.urlSerializer).pipe(ue(i=>i?this.configLoader.loadChildren(e,r).pipe(ee(o=>{r._loadedRoutes=o.routes,r._loadedInjector=o.injector})):zE(r))):I({routes:[],injector:e})}};function eI(t){t.sort((e,r)=>e.value.outlet===R?-1:r.value.outlet===R?1:e.value.outlet.localeCompare(r.value.outlet))}function tI(t){let e=t.value.routeConfig;return e&&e.path===""}function _g(t){let e=[],r=new Set;for(let n of t){if(!tI(n)){e.push(n);continue}let i=e.find(o=>n.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...n.children),r.add(i)):e.push(n)}for(let n of r){let i=_g(n.children);e.push(new Re(n.value,i))}return e.filter(n=>!r.has(n))}function nI(t){return t.data||{}}function rI(t){return t.resolve||{}}function Xp(t){return{matched:!0,parameters:t.length>0?rg(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function iI(t,e,r,n,i,o){return ue(s=>JE(t,e,r,n,s.extractedUrl,i,o).pipe(A(({state:a,tree:u})=>H(g({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function oI(t,e){return ue(r=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=r;if(!i.length)return I(r);let o=i.map(c=>c.route),s=new Set(o),a=Mg(o[0].parent).slice(1),u=0;return z(a).pipe(bt(c=>s.has(c)?sI(c,n,t,e):(c.data=fl(c,c.parent,t).resolve,I(void 0))),ee(()=>u++),Pn(1),ue(c=>u===a.length?I(r):Ee))})}function Mg(t){let e=t.children.map(r=>Mg(r)).flat();return[t,...e]}function sI(t,e,r,n){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!yg(i)&&(o[ci]=i.title),aI(o,t,e,n).pipe(A(s=>(t._resolvedData=s,t.data=fl(t,t.parent,r).resolve,null)))}function aI(t,e,r,n){let i=$c(t);if(i.length===0)return I({});let o={};return z(i).pipe(ue(s=>uI(t[s],e,r,n).pipe(it(),ee(a=>{o[s]=a}))),Pn(1),da(o),Fe(s=>Eg(s)?Ee:On(s)))}function uI(t,e,r,n){let i=fi(e)??n,o=mr(t,i),s=o.resolve?o.resolve(e,r):i.runInContext(()=>o(e,r));return en(s)}function jc(t){return oe(e=>{let r=t(e);return r?z(r).pipe(A(()=>e)):I(e)})}var Sg=(()=>{let e=class e{buildTitle(n){let i,o=n.root;for(;o!==void 0;)i=this.getResolvedTitleForRoute(o)??i,o=o.children.find(s=>s.outlet===R);return i}getResolvedTitleForRoute(n){return n.data[ci]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(cI))(),providedIn:"root"});let t=e;return t})(),cI=(()=>{let e=class e extends Sg{constructor(n){super(),this.title=n}updateTitle(n){let i=this.buildTitle(n);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(v(Pc))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),pi=new b("",{providedIn:"root",factory:()=>({})}),Ms=new b("ROUTES"),vl=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=p(Jo)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return I(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=en(n.loadComponent()).pipe(A(Tg),ee(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Pt(()=>{this.componentLoaders.delete(n)})),o=new An(i,()=>new de).pipe(xn());return this.componentLoaders.set(n,o),o}loadChildren(n,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return I({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let s=lI(i,this.compiler,n,this.onLoadEndListener).pipe(Pt(()=>{this.childrenLoaders.delete(i)})),a=new An(s,()=>new de).pipe(xn());return this.childrenLoaders.set(i,a),a}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function lI(t,e,r,n){return en(t.loadChildren()).pipe(A(Tg),ue(i=>i instanceof Or||Array.isArray(i)?I(i):z(e.compileModuleAsync(i))),A(i=>{n&&n(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(r).injector,s=o.get(Ms,[],{optional:!0,self:!0}).flat()),{routes:s.map(gl),injector:o}}))}function dI(t){return t&&typeof t=="object"&&"default"in t}function Tg(t){return dI(t)?t.default:t}var yl=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(fI))(),providedIn:"root"});let t=e;return t})(),fI=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,i){return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),xg=new b(""),Ag=new b("");function hI(t,e,r){let n=t.get(Ag),i=t.get(ge);return t.get(G).runOutsideAngular(()=>{if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,Promise.resolve();let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),pI(t))),{onViewTransitionCreated:u}=n;return u&&eh(t,()=>u({transition:a,from:e,to:r})),s})}function pI(t){return new Promise(e=>{tc(e,{injector:t})})}var Dl=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new de,this.transitionAbortSubject=new de,this.configLoader=p(vl),this.environmentInjector=p(we),this.urlSerializer=p(li),this.rootContexts=p(di),this.location=p(or),this.inputBindingEnabled=p(Ts,{optional:!0})!==null,this.titleStrategy=p(Sg),this.options=p(pi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=p(yl),this.createViewTransition=p(xg,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>I(void 0),this.rootComponentType=null;let n=o=>this.events.next(new Yc(o)),i=o=>this.events.next(new Qc(o));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let i=++this.navigationId;this.transitions?.next(H(g(g({},this.transitions.value),n),{id:i}))}setupNavigations(n,i,o){return this.transitions=new le({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Xr,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(pe(s=>s.id!==0),A(s=>H(g({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),oe(s=>{this.currentTransition=s;let a=!1,u=!1;return I(s).pipe(ee(c=>{this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?H(g({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),oe(c=>{let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=c.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new Xt(c.id,this.urlSerializer.serialize(c.rawUrl),f,0)),c.resolve(null),Ee}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return I(c).pipe(oe(f=>{let h=this.transitions?.getValue();return this.events.next(new pr(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?Ee:Promise.resolve(f)}),iI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),ee(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=H(g({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Ds(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:f,extractedUrl:h,source:E,restoredState:V,extras:T}=c,_=new pr(f,this.urlSerializer.serialize(h),E,V);this.events.next(_);let ie=mg(h,this.rootComponentType).snapshot;return this.currentTransition=s=H(g({},c),{targetSnapshot:ie,urlAfterRedirects:h,extras:H(g({},T),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,I(s)}else{let f="";return this.events.next(new Xt(c.id,this.urlSerializer.serialize(c.extractedUrl),f,1)),c.resolve(null),Ee}}),ee(c=>{let l=new Gc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),A(c=>(this.currentTransition=s=H(g({},c),{guards:EE(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),s)),RE(this.environmentInjector,c=>this.events.next(c)),ee(c=>{if(s.guardsResult=c.guardsResult,hr(c.guardsResult))throw Cg(this.urlSerializer,c.guardsResult);let l=new Wc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),pe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",3),!1)),jc(c=>{if(c.guards.canActivateChecks.length)return I(c).pipe(ee(l=>{let d=new qc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),oe(l=>{let d=!1;return I(l).pipe(oI(this.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",2)}}))}),ee(l=>{let d=new Zc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),jc(c=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(ee(h=>{d.component=h}),A(()=>{})));for(let h of d.children)f.push(...l(h));return f};return br(l(c.targetSnapshot.root)).pipe(Ft(),Et(1))}),jc(()=>this.afterPreactivation()),oe(()=>{let{currentSnapshot:c,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return d?z(d).pipe(A(()=>s)):I(s)}),A(c=>{let l=gE(n.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=s=H(g({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),ee(()=>{this.events.next(new ii)}),bE(this.rootContexts,n.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Et(1),ee({next:c=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Xe(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{a=!0}}),ma(this.transitionAbortSubject.pipe(ee(c=>{throw c}))),Pt(()=>{if(!a&&!u){let c="";this.cancelNavigationTransition(s,c,1)}this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),Fe(c=>{if(u=!0,bg(c))this.events.next(new Jt(s.id,this.urlSerializer.serialize(s.extractedUrl),c.message,c.cancellationCode)),yE(c)?this.events.next(new oi(c.url)):s.resolve(!1);else{this.events.next(new ri(s.id,this.urlSerializer.serialize(s.extractedUrl),c,s.targetSnapshot??void 0));try{s.resolve(n.errorHandler(c))}catch(l){s.reject(l)}}return Ee}))}))}cancelNavigationTransition(n,i,o){let s=new Jt(n.id,this.urlSerializer.serialize(n.extractedUrl),i,o);this.events.next(s),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function gI(t){return t!==Xr}var mI=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(vI))(),providedIn:"root"});let t=e;return t})(),dl=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},vI=(()=>{let e=class e extends dl{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Jn(e)))(o||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ng=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:()=>(()=>p(yI))(),providedIn:"root"});let t=e;return t})(),yI=(()=>{let e=class e extends Ng{constructor(){super(...arguments),this.location=p(or),this.urlSerializer=p(li),this.options=p(pi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=p(yl),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Kt,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=mg(this.currentUrlTree,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(i=>{i.type==="popstate"&&n(i.url,i.state)})}handleRouterEvent(n,i){if(n instanceof pr)this.stateMemento=this.createStateMemento();else if(n instanceof Xt)this.rawUrlTree=i.initialUrl;else if(n instanceof Ds){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let o=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(o,i)}}else n instanceof ii?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):n instanceof Jt&&(n.code===3||n.code===2)?this.restoreHistory(i):n instanceof ri?this.restoreHistory(i,!0):n instanceof Xe&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,i){let o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||i.extras.replaceUrl){let s=this.browserPageId,a=g(g({},i.extras.state),this.generateNgRouterState(i.id,s));this.location.replaceState(o,"",a)}else{let s=g(g({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(o,"",s)}}restoreHistory(n,i=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,s=this.currentPageId-o;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&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,i){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:i}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Jn(e)))(o||e)}})(),e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Kr=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Kr||{});function Og(t,e){t.events.pipe(pe(r=>r instanceof Xe||r instanceof Jt||r instanceof ri||r instanceof Xt),A(r=>r instanceof Xe||r instanceof Xt?Kr.COMPLETE:(r instanceof Jt?r.code===0||r.code===1:!1)?Kr.REDIRECTING:Kr.FAILED),pe(r=>r!==Kr.REDIRECTING),Et(1)).subscribe(()=>{e()})}function DI(t){throw t}var CI={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},be=(()=>{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.isNgZoneEnabled=!1,this.console=p(Ko),this.stateManager=p(Ng),this.options=p(pi,{optional:!0})||{},this.pendingTasks=p(nr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=p(Dl),this.urlSerializer=p(li),this.location=p(or),this.urlHandlingStrategy=p(yl),this._events=new de,this.errorHandler=this.options.errorHandler||DI,this.navigated=!1,this.routeReuseStrategy=p(mI),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=p(Ms,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!p(Ts,{optional:!0}),this.eventsSubscription=new ae,this.isNgZoneEnabled=p(G)instanceof G&&G.isInAngularZone(),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(i=>{try{let o=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(o!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof Jt&&i.code!==0&&i.code!==1)this.navigated=!0;else if(i instanceof Xe)this.navigated=!0;else if(i instanceof oi){let a=this.urlHandlingStrategy.merge(i.url,o.currentRawUrl),u={skipLocationChange:o.extras.skipLocationChange,replaceUrl:this.urlUpdateStrategy==="eager"||gI(o.source)};this.scheduleNavigation(a,Xr,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}EI(i)&&this._events.next(i)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});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),Xr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",i)},0)}))}navigateToSyncWithBrowser(n,i,o){let s={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=g({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(s.state=c)}let u=this.parseUrl(n);this.scheduleNavigation(u,i,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(gl),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,i={}){let{relativeTo:o,queryParams:s,fragment:a,queryParamsHandling:u,preserveFragment:c}=i,l=c?this.currentUrlTree.fragment:a,d=null;switch(u){case"merge":d=g(g({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=o?o.snapshot:this.routerState.snapshot.root;f=fg(h)}catch{(typeof n[0]!="string"||!n[0].startsWith("/"))&&(n=[]),f=this.currentUrlTree.root}return hg(f,n,d,l??null)}navigateByUrl(n,i={skipLocationChange:!1}){let o=hr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(s,Xr,null,i)}navigate(n,i={skipLocationChange:!1}){return bI(n),this.navigateByUrl(this.createUrlTree(n,i),i)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,i){let o;if(i===!0?o=g({},CI):i===!1?o=g({},wI):o=i,hr(n))return qp(this.currentUrlTree,n,o);let s=this.parseUrl(n);return qp(this.currentUrlTree,s,o)}removeEmptyProps(n){return Object.keys(n).reduce((i,o)=>{let s=n[o];return s!=null&&(i[o]=s),i},{})}scheduleNavigation(n,i,o,s,a){if(this.disposed)return Promise.resolve(!1);let u,c,l;a?(u=a.resolve,c=a.reject,l=a.promise):l=new Promise((f,h)=>{u=f,c=h});let d=this.pendingTasks.add();return Og(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:u,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function bI(t){for(let e=0;e{let e=class e{constructor(n,i,o,s,a,u){this.router=n,this.route=i,this.tabIndexAttribute=o,this.renderer=s,this.el=a,this.locationStrategy=u,this.href=null,this.commands=null,this.onChanges=new de,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=n.events.subscribe(l=>{l instanceof Xe&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){n!=null?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,i,o,s,a){if(this.urlTree===null||this.isAnchorElement&&(n!==0||i||o||s||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state};return this.router.navigateByUrl(this.urlTree,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=this.urlTree!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;let n=this.href===null?null:vh(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,i){let o=this.renderer,s=this.el.nativeElement;i!==null?o.setAttribute(s,n,i):o.removeAttribute(s,n)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(m(be),m(et),Pu("tabindex"),m(ht),m(Te),m(Nt))},e.\u0275dir=se({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,o){i&1&&re("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),i&2&&er("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",rr],skipLocationChange:["skipLocationChange","skipLocationChange",rr],replaceUrl:["replaceUrl","replaceUrl",rr],routerLink:"routerLink"},standalone:!0,features:[rc,Ke]});let t=e;return t})(),Rg=(()=>{let e=class e{get isActive(){return this._isActive}constructor(n,i,o,s,a){this.router=n,this.element=i,this.renderer=o,this.cdr=s,this.link=a,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new X,this.routerEventsSubscription=n.events.subscribe(u=>{u instanceof Xe&&this.update()})}ngAfterContentInit(){I(this.links.changes,I(null)).pipe(rt()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let n=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=z(n).pipe(rt()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(n){let i=Array.isArray(n)?n:n.split(" ");this.classes=i.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(i=>{n?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),n&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){let i=II(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>o.urlTree?n.isActive(o.urlTree,i):!1}hasActiveLinks(){let n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}};e.\u0275fac=function(i){return new(i||e)(m(be),m(Te),m(ht),m(Dn),m(Ue,8))},e.\u0275dir=se({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(i,o,s){if(i&1&&rp(s,Ue,5),i&2){let a;np(a=ip())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ke]});let t=e;return t})();function II(t){return!!t.paths}var Ss=class{};var _I=(()=>{let e=class e{constructor(n,i,o,s,a){this.router=n,this.injector=o,this.preloadingStrategy=s,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(pe(n=>n instanceof Xe),bt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,i){let o=[];for(let s of i){s.providers&&!s._injector&&(s._injector=qo(s.providers,n,`Route: ${s.path}`));let a=s._injector??n,u=s._loadedInjector??a;(s.loadChildren&&!s._loadedRoutes&&s.canLoad===void 0||s.loadComponent&&!s._loadedComponent)&&o.push(this.preloadConfig(a,s)),(s.children||s._loadedRoutes)&&o.push(this.processRoutes(u,s.children??s._loadedRoutes))}return z(o).pipe(rt())}preloadConfig(n,i){return this.preloadingStrategy.preload(i,()=>{let o;i.loadChildren&&i.canLoad===void 0?o=this.loader.loadChildren(n,i):o=I(null);let s=o.pipe(ue(a=>a===null?I(void 0):(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,this.processRoutes(a.injector??n,a.routes))));if(i.loadComponent&&!i._loadedComponent){let a=this.loader.loadComponent(i);return z([s,a]).pipe(rt())}else return s})}};e.\u0275fac=function(i){return new(i||e)(v(be),v(Jo),v(we),v(Ss),v(vl))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Fg=new b(""),MI=(()=>{let e=class e{constructor(n,i,o,s,a={}){this.urlSerializer=n,this.transitions=i,this.viewportScroller=o,this.zone=s,this.options=a,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},a.scrollPositionRestoration=a.scrollPositionRestoration||"disabled",a.anchorScrolling=a.anchorScrolling||"disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof pr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Xe?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Xt&&n.code===0&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Cs&&(n.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(n.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Cs(n,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){Eh()},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();function SI(t){return t.routerState.root}function gi(t,e){return{\u0275kind:t,\u0275providers:e}}function TI(){let t=p(Ve);return e=>{let r=t.get(Cn);if(e!==r.components[0])return;let n=t.get(be),i=t.get(Pg);t.get(Cl)===1&&n.initialNavigation(),t.get(kg,null,j.Optional)?.setUpPreloading(),t.get(Fg,null,j.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var Pg=new b("",{factory:()=>new de}),Cl=new b("",{providedIn:"root",factory:()=>1});function xI(){return gi(2,[{provide:Cl,useValue:0},{provide:Qo,multi:!0,deps:[Ve],useFactory:e=>{let r=e.get(wp,Promise.resolve());return()=>r.then(()=>new Promise(n=>{let i=e.get(be),o=e.get(Pg);Og(i,()=>{n(!0)}),e.get(Dl).afterPreactivation=()=>(n(!0),o.closed?I(void 0):o),i.initialNavigation()}))}}])}function AI(){return gi(3,[{provide:Qo,multi:!0,useFactory:()=>{let e=p(be);return()=>{e.setUpLocationChangeListener()}}},{provide:Cl,useValue:2}])}var kg=new b("");function NI(t){return gi(0,[{provide:kg,useExisting:_I},{provide:Ss,useExisting:t}])}function OI(){return gi(8,[Kp,{provide:Ts,useExisting:Kp}])}function RI(t){let e=[{provide:xg,useValue:hI},{provide:Ag,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return gi(9,e)}var eg=new b("ROUTER_FORROOT_GUARD"),FI=[or,{provide:li,useClass:ti},be,di,{provide:et,useFactory:SI,deps:[be]},vl,[]],Ot=(()=>{let e=class e{constructor(n){}static forRoot(n,i){return{ngModule:e,providers:[FI,[],{provide:Ms,multi:!0,useValue:n},{provide:eg,useFactory:VI,deps:[[be,new Lo,new Lu]]},{provide:pi,useValue:i||{}},i?.useHash?kI():LI(),PI(),i?.preloadingStrategy?NI(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?jI(i):[],i?.bindToComponentInputs?OI().\u0275providers:[],i?.enableViewTransitions?RI().\u0275providers:[],BI()]}}static forChild(n){return{ngModule:e,providers:[{provide:Ms,multi:!0,useValue:n}]}}};e.\u0275fac=function(i){return new(i||e)(v(eg,8))},e.\u0275mod=Z({type:e}),e.\u0275inj=q({});let t=e;return t})();function PI(){return{provide:Fg,useFactory:()=>{let t=p(_p),e=p(G),r=p(pi),n=p(Dl),i=p(li);return r.scrollOffset&&t.setOffset(r.scrollOffset),new MI(i,n,t,e,r)}}}function kI(){return{provide:Nt,useClass:Ep}}function LI(){return{provide:Nt,useClass:yc}}function VI(t){return"guarded"}function jI(t){return[t.initialNavigation==="disabled"?AI().\u0275providers:[],t.initialNavigation==="enabledBlocking"?xI().\u0275providers:[]]}var tg=new b("");function BI(){return[{provide:tg,useFactory:TI},{provide:ts,multi:!0,useExisting:tg}]}var He=(()=>{let e=class e{constructor(n){this.http=n,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(Fe(n=>(console.error(n),I([]))))}getSingle(n){return this.http.get(`${this.apiUrl}/books/${n}`)}remove(n){return this.http.delete(`${this.apiUrl}/books/${n}`)}getAllSearch(n){return this.http.get(`${this.apiUrl}/books/search/${n}`).pipe(Fe(i=>(console.error(i),I([]))))}create(n){return this.http.post(`${this.apiUrl}/books`,n)}update(n){return this.http.put(`${this.apiUrl}/books/${n.isbn}`,n)}check(n){return this.http.get(`${this.apiUrl}/books/${n}/check`)}};e.\u0275fac=function(i){return new(i||e)(v(Ic))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var $I=t=>["/books",t];function UI(t,e){if(t&1&&(y(0,"li")(1,"a",6),M(2),y(3,"p",7),M(4),D()()()),t&2){let r=e.$implicit;x(1),O("routerLink",Yo(3,$I,r.isbn)),x(1),Oe(" ",r.title," "),x(2),pt(r.subtitle)}}function HI(t,e){t&1&&(y(0,"li"),M(1,"No results"),D())}function zI(t,e){if(t&1&&(y(0,"ul",3),Y(1,UI,5,5,"li",4)(2,HI,2,0,"li",5),D()),t&2){let r=e.ngIf;x(1),O("ngForOf",r),x(1),O("ngIf",!r.length)}}var Lg=(()=>{let e=class e{constructor(n){this.service=n,this.input$=new de,this.isLoading=!1,this.results$=this.input$.pipe(pe(i=>i.length>=3),la(500),Fn(),ee(()=>this.isLoading=!0),oe(i=>this.service.getAllSearch(i)),ee(()=>this.isLoading=!1))}};e.\u0275fac=function(i){return new(i||e)(m(He))},e.\u0275cmp=te({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["type","search","autocomplete","off","aria-label","Search",3,"input"],["searchInput",""],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(i,o){if(i&1){let s=xt();y(0,"input",0,1),re("input",function(){Mt(s);let u=Kh(1);return St(o.input$.next(u.value))}),D(),Y(2,zI,3,2,"ul",2),qt(3,"async")}i&2&&(tr("loading",o.isLoading),x(2),O("ngIf",Zt(3,3,o.results$)))},dependencies:[je,Be,Ue,Yt]});let t=e;return t})();var Vg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=te({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(i,o){i&1&&(y(0,"h1"),M(1,"Home"),D(),y(2,"a",0),M(3,` Show book list +`),D(),y(4,"h2"),M(5,"Search"),D(),ne(6,"bm-search"))},dependencies:[Ue,Lg]});let t=e;return t})();var WI=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Vg}],jg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[Ot.forRoot(WI),Ot]});let t=e;return t})();var As=(()=>{let e=class e{constructor(){this._isAuthenticated$=new le(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function qI(t,e){if(t&1){let r=xt();y(0,"button",6),re("click",function(){Mt(r);let i=xe();return St(i.auth.login())}),M(1,"Login"),D()}}function ZI(t,e){if(t&1){let r=xt();y(0,"button",7),re("click",function(){Mt(r);let i=xe();return St(i.auth.logout())}),M(1,"Logout"),D()}}var $g=(()=>{let e=class e{constructor(n){this.auth=n}};e.\u0275fac=function(i){return new(i||e)(m(As))},e.\u0275cmp=te({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(i,o){i&1&&(y(0,"nav")(1,"a",0),M(2,"Home"),D(),y(3,"a",1),M(4,"Books"),D(),y(5,"a",2),M(6,"Administration"),D(),y(7,"div",3),Y(8,qI,2,0,"button",4)(9,ZI,2,0,"button",5),D()(),y(10,"main"),ne(11,"router-outlet"),D()),i&2&&(x(8),O("ngIf",!o.auth.isAuthenticated),x(1),O("ngIf",o.auth.isAuthenticated))},dependencies:[Be,pl,Ue,Rg]});let t=e;return t})();function YI(t,e){if(t&1&&(y(0,"p",10),M(1),D()),t&2){let r=xe().ngIf;x(1),pt(r.subtitle)}}function QI(t,e){if(t&1&&(y(0,"li"),M(1),D()),t&2){let r=e.$implicit;x(1),pt(r)}}function KI(t,e){if(t&1&&(y(0,"div")(1,"h2"),M(2,"Published"),D(),M(3),D()),t&2){let r=xe().ngIf;x(3),Oe(" ",r.published," ")}}function JI(t,e){if(t&1&&ne(0,"img",11),t&2){let r=xe().ngIf;O("src",r.thumbnailUrl,Br)}}var XI=t=>["/admin/edit",t];function e_(t,e){if(t&1){let r=xt();y(0,"div",1)(1,"h1"),M(2),D(),Y(3,YI,2,1,"p",2),y(4,"div",3)(5,"div")(6,"h2"),M(7,"Authors"),D(),y(8,"ul"),Y(9,QI,2,1,"li",4),D()(),y(10,"div")(11,"h2"),M(12,"ISBN"),D(),M(13),D(),Y(14,KI,4,1,"div",5),D(),y(15,"h2"),M(16,"Description"),D(),y(17,"p"),M(18),D(),Y(19,JI,1,1,"img",6),y(20,"a",7),M(21,"Back to list"),D(),y(22,"button",8),re("click",function(){let o=Mt(r).ngIf,s=xe();return St(s.removeBook(o.isbn))}),M(23," Remove book "),D(),y(24,"a",9),M(25," Edit book "),D()()}if(t&2){let r=e.ngIf;x(2),pt(r.title),x(1),O("ngIf",r.subtitle),x(6),O("ngForOf",r.authors),x(4),Oe(" ",r.isbn," "),x(1),O("ngIf",r.published),x(4),pt(r.description),x(1),O("ngIf",r.thumbnailUrl),x(5),O("routerLink",Yo(8,XI,r.isbn))}}var Ug=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o;let s=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(s)}removeBook(n){window.confirm("Remove book?")&&this.service.remove(n).subscribe(()=>{this.router.navigateByUrl("/books")})}};e.\u0275fac=function(i){return new(i||e)(m(He),m(et),m(be))},e.\u0275cmp=te({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(i,o){i&1&&(Y(0,e_,26,10,"div",0),qt(1,"async")),i&2&&O("ngIf",Zt(1,1,o.book$))},dependencies:[je,Be,Ue,Yt]});let t=e;return t})();function t_(t,e){if(t&1&&ne(0,"img",6),t&2){let r=xe(2);O("src",r.book.thumbnailUrl,Br)}}function n_(t,e){if(t&1&&(y(0,"p",7),M(1),D()),t&2){let r=xe(2);x(1),Oe(" ",r.book.subtitle," ")}}function r_(t,e){if(t&1&&(y(0,"li"),M(1),D()),t&2){let r=e.$implicit;x(1),Oe(" ",r," ")}}function i_(t,e){if(t&1&&(y(0,"a",1),Y(1,t_,1,1,"img",2),y(2,"h2"),M(3),D(),Y(4,n_,2,1,"p",3),y(5,"ul",4),Y(6,r_,2,1,"li",5),D(),y(7,"div"),M(8),D()()),t&2){let r=xe();O("routerLink",r.book.isbn),x(1),O("ngIf",r.book.thumbnailUrl),x(2),pt(r.book.title),x(1),O("ngIf",r.book.subtitle),x(2),O("ngForOf",r.book.authors),x(2),Oe("ISBN ",r.book.isbn,"")}}var Hg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=te({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(i,o){i&1&&Y(0,i_,9,6,"a",0),i&2&&O("ngIf",o.book)},dependencies:[je,Be,Ue]});let t=e;return t})();function s_(t,e){if(t&1&&(y(0,"li"),ne(1,"bm-book-list-item",4),D()),t&2){let r=e.$implicit;x(1),O("book",r)}}function a_(t,e){t&1&&(y(0,"li"),M(1," No books available. "),D())}function u_(t,e){if(t&1&&(y(0,"ul",1),Y(1,s_,2,1,"li",2)(2,a_,2,0,"li",3),D()),t&2){let r=e.ngIf;x(1),O("ngForOf",r),x(1),O("ngIf",!r.length)}}var zg=(()=>{let e=class e{constructor(n){this.service=n,this.books$=this.service.getAll()}};e.\u0275fac=function(i){return new(i||e)(m(He))},e.\u0275cmp=te({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(i,o){i&1&&(y(0,"h1"),M(1,"Books"),D(),Y(2,u_,3,2,"ul",0),qt(3,"async")),i&2&&(x(2),O("ngIf",Zt(3,1,o.books$)))},dependencies:[je,Be,Hg,Yt]});let t=e;return t})();var c_=[{path:"books",component:zg},{path:"books/:isbn",component:Ug}],Gg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[Ot.forChild(c_),Ot]});let t=e;return t})();var Wg=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[sr,Gg]});let t=e;return t})();var qg=(()=>{let e=class e{constructor(n){this.authService=n}intercept(n,i){let o="1234567890";if(this.authService.isAuthenticated){let s=n.clone({setHeaders:{Authorization:`Bearer ${o}`}});return i.handle(s)}else return i.handle(n)}};e.\u0275fac=function(i){return new(i||e)(v(As))},e.\u0275prov=C({token:e,factory:e.\u0275fac});let t=e;return t})();var tm=(()=>{let e=class e{constructor(n,i){this._renderer=n,this._elementRef=i,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,i){this._renderer.setProperty(this._elementRef.nativeElement,n,i)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}};e.\u0275fac=function(i){return new(i||e)(m(ht),m(Te))},e.\u0275dir=se({type:e});let t=e;return t})(),l_=(()=>{let e=class e extends tm{};e.\u0275fac=(()=>{let n;return function(o){return(n||(n=Jn(e)))(o||e)}})(),e.\u0275dir=se({type:e,features:[Je]});let t=e;return t})(),Vs=new b("NgValueAccessor");var d_={provide:Vs,useExisting:ft(()=>js),multi:!0};function f_(){let t=gt()?gt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var h_=new b("CompositionEventMode"),js=(()=>{let e=class e extends tm{constructor(n,i,o){super(n,i),this._compositionMode=o,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!f_())}writeValue(n){let i=n??"";this.setProperty("value",i)}_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(i){return new(i||e)(m(ht),m(Te),m(h_,8))},e.\u0275dir=se({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,o){i&1&&re("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},features:[Wt([d_]),Je]});let t=e;return t})();function tn(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}function nm(t){return t!=null&&typeof t.length=="number"}var Bs=new b("NgValidators"),$s=new b("NgAsyncValidators"),p_=/^(?=.{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])?)*$/,yi=class{static min(e){return g_(e)}static max(e){return m_(e)}static required(e){return v_(e)}static requiredTrue(e){return y_(e)}static email(e){return D_(e)}static minLength(e){return C_(e)}static maxLength(e){return w_(e)}static pattern(e){return b_(e)}static nullValidator(e){return rm(e)}static compose(e){return cm(e)}static composeAsync(e){return dm(e)}};function g_(t){return e=>{if(tn(e.value)||tn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r{if(tn(e.value)||tn(t))return null;let r=parseFloat(e.value);return!isNaN(r)&&r>t?{max:{max:t,actual:e.value}}:null}}function v_(t){return tn(t.value)?{required:!0}:null}function y_(t){return t.value===!0?null:{required:!0}}function D_(t){return tn(t.value)||p_.test(t.value)?null:{email:!0}}function C_(t){return e=>tn(e.value)||!nm(e.value)?null:e.value.lengthnm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}function b_(t){if(!t)return rm;let e,r;return typeof t=="string"?(r="",t.charAt(0)!=="^"&&(r+="^"),r+=t,t.charAt(t.length-1)!=="$"&&(r+="$"),e=new RegExp(r)):(r=t.toString(),e=t),n=>{if(tn(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:r,actualValue:i}}}}function rm(t){return null}function im(t){return t!=null}function om(t){return Gt(t)?z(t):t}function sm(t){let e={};return t.forEach(r=>{e=r!=null?g(g({},e),r):e}),Object.keys(e).length===0?null:e}function am(t,e){return e.map(r=>r(t))}function E_(t){return!t.validate}function um(t){return t.map(e=>E_(e)?e:r=>e.validate(r))}function cm(t){if(!t)return null;let e=t.filter(im);return e.length==0?null:function(r){return sm(am(r,e))}}function lm(t){return t!=null?cm(um(t)):null}function dm(t){if(!t)return null;let e=t.filter(im);return e.length==0?null:function(r){let n=am(r,e).map(om);return ua(n).pipe(A(sm))}}function fm(t){return t!=null?dm(um(t)):null}function Zg(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function hm(t){return t._rawValidators}function pm(t){return t._rawAsyncValidators}function wl(t){return t?Array.isArray(t)?t:[t]:[]}function Os(t,e){return Array.isArray(t)?t.includes(e):t===e}function Yg(t,e){let r=wl(e);return wl(t).forEach(i=>{Os(r,i)||r.push(i)}),r}function Qg(t,e){return wl(e).filter(r=>!Os(t,r))}var Rs=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=lm(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=fm(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,r){return this.control?this.control.hasError(e,r):!1}getError(e,r){return this.control?this.control.getError(e,r):null}},ze=class extends Rs{get formDirective(){return null}get path(){return null}},Di=class extends Rs{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Fs=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},I_={"[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"},WF=H(g({},I_),{"[class.ng-submitted]":"isSubmitted"}),gm=(()=>{let e=class e extends Fs{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(Di,2))},e.\u0275dir=se({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,o){i&2&&tr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[Je]});let t=e;return t})(),mm=(()=>{let e=class e extends Fs{constructor(n){super(n)}};e.\u0275fac=function(i){return new(i||e)(m(ze,10))},e.\u0275dir=se({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,o){i&2&&tr("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[Je]});let t=e;return t})();var mi="VALID",Ns="INVALID",yr="PENDING",vi="DISABLED";function bl(t){return(Us(t)?t.validators:t)||null}function __(t){return Array.isArray(t)?lm(t):t||null}function El(t,e){return(Us(e)?e.asyncValidators:t)||null}function M_(t){return Array.isArray(t)?fm(t):t||null}function Us(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function vm(t,e,r){let n=t.controls;if(!(e?Object.keys(n):n).length)throw new w(1e3,"");if(!n[r])throw new w(1001,"")}function ym(t,e,r){t._forEachChild((n,i)=>{if(r[i]===void 0)throw new w(1002,"")})}var Ci=class{constructor(e,r){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(r)}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 valid(){return this.status===mi}get invalid(){return this.status===Ns}get pending(){return this.status==yr}get disabled(){return this.status===vi}get enabled(){return this.status!==vi}get dirty(){return!this.pristine}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(Yg(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Yg(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Qg(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Qg(e,this._rawAsyncValidators))}hasValidator(e){return Os(this._rawValidators,e)}hasAsyncValidator(e){return Os(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(r=>{r.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=yr,e.emitEvent!==!1&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=vi,this.errors=null,this._forEachChild(n=>{n.disable(H(g({},e),{onlySelf:!0}))}),this._updateValue(),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!0))}enable(e={}){let r=this._parentMarkedDirty(e.onlySelf);this.status=mi,this._forEachChild(n=>{n.enable(H(g({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(H(g({},e),{skipPristineCheck:r})),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===mi||this.status===yr)&&this._runAsyncValidator(e.emitEvent)),e.emitEvent!==!1&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(r=>r._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vi:mi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=yr,this._hasOwnPendingAsyncValidator=!0;let r=om(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(n=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(n,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,r={}){this.errors=e,this._updateControlsErrors(r.emitEvent!==!1)}get(e){let r=e;return r==null||(Array.isArray(r)||(r=r.split(".")),r.length===0)?null:r.reduce((n,i)=>n&&n._find(i),this)}getError(e,r){let n=r?this.get(r):this;return n&&n.errors?n.errors[e]:null}hasError(e,r){return!!this.getError(e,r)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new X,this.statusChanges=new X}_calculateStatus(){return this._allControlsDisabled()?vi:this.errors?Ns:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yr)?yr:this._anyControlsHaveStatus(Ns)?Ns:mi}_anyControlsHaveStatus(e){return this._anyControls(r=>r.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Us(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let r=this._parent&&this._parent.dirty;return!e&&!!r&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=__(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=M_(this._rawAsyncValidators)}},Ps=class extends Ci{constructor(e,r,n){super(bl(r),El(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,r){return this.controls[e]?this.controls[e]:(this.controls[e]=r,r.setParent(this),r._registerOnCollectionChange(this._onCollectionChange),r)}addControl(e,r,n={}){this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}setControl(e,r,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],r&&this.registerControl(e,r),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,r={}){ym(this,!0,e),Object.keys(e).forEach(n=>{vm(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e={},r={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this._reduceChildren({},(e,r,n)=>(e[n]=r.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(r,n)=>n._syncPendingControls()?!0:r);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(r=>{let n=this.controls[r];n&&e(n,r)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[r,n]of Object.entries(this.controls))if(this.contains(r)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(r,n,i)=>((n.enabled||this.disabled)&&(r[i]=n.value),r))}_reduceChildren(e,r){let n=e;return this._forEachChild((i,o)=>{n=r(n,i,o)}),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 Dm=new b("CallSetDisabledState",{providedIn:"root",factory:()=>Il}),Il="always";function _l(t,e){return[...e.path,t]}function Kg(t,e,r=Il){Ml(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||r==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),T_(t,e),A_(t,e),x_(t,e),S_(t,e)}function Jg(t,e,r=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),Ls(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ks(t,e){t.forEach(r=>{r.registerOnValidatorChange&&r.registerOnValidatorChange(e)})}function S_(t,e){if(e.valueAccessor.setDisabledState){let r=n=>{e.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(r),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(r)})}}function Ml(t,e){let r=hm(t);e.validator!==null?t.setValidators(Zg(r,e.validator)):typeof r=="function"&&t.setValidators([r]);let n=pm(t);e.asyncValidator!==null?t.setAsyncValidators(Zg(n,e.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let i=()=>t.updateValueAndValidity();ks(e._rawValidators,i),ks(e._rawAsyncValidators,i)}function Ls(t,e){let r=!1;if(t!==null){if(e.validator!==null){let i=hm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(r=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=pm(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(r=!0,t.setAsyncValidators(o))}}}let n=()=>{};return ks(e._rawValidators,n),ks(e._rawAsyncValidators,n),r}function T_(t,e){e.valueAccessor.registerOnChange(r=>{t._pendingValue=r,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&Cm(t,e)})}function x_(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&Cm(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function Cm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function A_(t,e){let r=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};t.registerOnChange(r),e._registerOnDestroy(()=>{t._unregisterOnChange(r)})}function N_(t,e){t==null,Ml(t,e)}function O_(t,e){return Ls(t,e)}function R_(t,e){if(!t.hasOwnProperty("model"))return!1;let r=t.model;return r.isFirstChange()?!0:!Object.is(e,r.currentValue)}function F_(t){return Object.getPrototypeOf(t.constructor)===l_}function P_(t,e){t._syncPendingControls(),e.forEach(r=>{let n=r.control;n.updateOn==="submit"&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function k_(t,e){if(!e)return null;Array.isArray(e);let r,n,i;return e.forEach(o=>{o.constructor===js?r=o:F_(o)?n=o:i=o}),i||n||r||null}function L_(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function Xg(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function em(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Dt=class extends Ci{constructor(e=null,r,n){super(bl(r),El(n,r)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(r),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Us(r)&&(r.nonNullable||r.initialValueIsDefault)&&(em(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,r={}){this.value=this._pendingValue=e,this._onChange.length&&r.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,r.emitViewToModelChange!==!1)),this.updateValueAndValidity(r)}patchValue(e,r={}){this.setValue(e,r)}reset(e=this.defaultValue,r={}){this._applyFormState(e),this.markAsPristine(r),this.markAsUntouched(r),this.setValue(this.value,r),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Xg(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Xg(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){em(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 V_=t=>t instanceof Dt,j_=(()=>{let e=class e extends ze{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return _l(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(o){return(n||(n=Jn(e)))(o||e)}})(),e.\u0275dir=se({type:e,features:[Je]});let t=e;return t})();var wm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=se({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]});let t=e;return t})();var B_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({});let t=e;return t})();var bm=new b("NgModelWithFormControlWarning");var $_={provide:ze,useExisting:ft(()=>Dr)},Dr=(()=>{let e=class e extends ze{constructor(n,i,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new X,this._setValidators(n),this._setAsyncValidators(i)}ngOnChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ls(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 i=this.form.get(n.path);return Kg(i,n,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),i}getControl(n){return this.form.get(n.path)}removeControl(n){Jg(n.control||null,n,!1),L_(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,i){this.form.get(n.path).setValue(i)}onSubmit(n){return this.submitted=!0,P_(this.form,this.directives),this.ngSubmit.emit(n),n?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_updateDomValue(){this.directives.forEach(n=>{let i=n.control,o=this.form.get(n.path);i!==o&&(Jg(i||null,n),V_(o)&&(Kg(o,n,this.callSetDisabledState),n.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let i=this.form.get(n.path);N_(i,n),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let i=this.form.get(n.path);i&&O_(i,n)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ml(this.form,this),this._oldForm&&Ls(this._oldForm,this)}_checkFormPresent(){this.form}};e.\u0275fac=function(i){return new(i||e)(m(Bs,10),m($s,10),m(Dm,8))},e.\u0275dir=se({type:e,selectors:[["","formGroup",""]],hostBindings:function(i,o){i&1&&re("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Wt([$_]),Je,Ke]});let t=e;return t})(),U_={provide:ze,useExisting:ft(()=>Em)},Em=(()=>{let e=class e extends j_{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}_checkParentType(){Im(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m(ze,13),m(Bs,10),m($s,10))},e.\u0275dir=se({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Wt([U_]),Je]});let t=e;return t})(),H_={provide:ze,useExisting:ft(()=>Hs)},Hs=(()=>{let e=class e extends ze{constructor(n,i,o){super(),this.name=null,this._parent=n,this._setValidators(i),this._setAsyncValidators(o)}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 _l(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){Im(this._parent)}};e.\u0275fac=function(i){return new(i||e)(m(ze,13),m(Bs,10),m($s,10))},e.\u0275dir=se({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Wt([H_]),Je]});let t=e;return t})();function Im(t){return!(t instanceof Em)&&!(t instanceof Dr)&&!(t instanceof Hs)}var z_={provide:Di,useExisting:ft(()=>Sl)},Sl=(()=>{let e=class e extends Di{set isDisabled(n){}constructor(n,i,o,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new X,this._ngModelWarningSent=!1,this._parent=n,this._setValidators(i),this._setAsyncValidators(o),this.valueAccessor=k_(this,s)}ngOnChanges(n){this._added||this._setUpControl(),R_(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 _l(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(i){return new(i||e)(m(ze,13),m(Bs,10),m($s,10),m(Vs,10),m(bm,8))},e.\u0275dir=se({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Wt([z_]),Je,Ke]});let t=e;return t})();var G_=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[B_]});let t=e;return t})(),wi=class extends Ci{constructor(e,r,n){super(bl(r),El(n,r)),this.controls=e,this._initObservables(),this._setUpdateStrategy(r),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[this._adjustIndex(e)]}push(e,r={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}insert(e,r,n={}){this.controls.splice(e,0,r),this._registerControl(r),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,r={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:r.emitEvent})}setControl(e,r,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),r&&(this.controls.splice(i,0,r),this._registerControl(r)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,r={}){ym(this,!1,e),e.forEach((n,i)=>{vm(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r)}patchValue(e,r={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:r.emitEvent})}),this.updateValueAndValidity(r))}reset(e=[],r={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:r.emitEvent})}),this._updatePristine(r),this._updateTouched(r),this.updateValueAndValidity(r)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(r=>r._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((r,n)=>n._syncPendingControls()?!0:r,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((r,n)=>{e(r,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(r=>r.enabled&&e(r))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};var _m=t=>t instanceof wi;var Mm=(()=>{let e=class e{static withConfig(n){return{ngModule:e,providers:[{provide:bm,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Dm,useValue:n.callSetDisabledState??Il}]}}};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[G_]});let t=e;return t})();var Tm=(()=>{class t{constructor(r,n){this.renderer=r,this.elementRef=n,this.onInput=i=>{let o=i?new Date(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()):null,s=o?o.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(r){let n=r?new Date(r):null,i=n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",i)}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",r)}}return t.\u0275fac=function(r){return new(r||t)(m(ht),m(Te))},t.\u0275dir=se({type:t,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(r,n){r&1&&re("input",function(o){return n.onInput(o.target.valueAsDate)})("blur",function(){return n.onTouched()})},standalone:!0,features:[Wt([{provide:Vs,useExisting:ft(()=>t),multi:!0}])]}),t})();var xm=(()=>{let e=class e{constructor(n){this.service=n}isbnExists(){return n=>this.service.check(n.value).pipe(A(i=>i?{isbnexists:!0}:null))}};e.\u0275fac=function(i){return new(i||e)(v(He))},e.\u0275prov=C({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var Am=function(t){if(!t.value||typeof t.value!="string")return null;let r=t.value.replace(/-/g,"").length;return r===10||r===13?null:{isbnformat:!0}},Nm=function(t){return!_m(t)||t.controls.some(e=>!!e.value)?null:{atleastonevalue:!0}};function q_(t,e){if(t&1&&(y(0,"p",1),M(1),D()),t&2){let r=e.$implicit;x(1),Oe(" ",r,` +`)}}var Om=(()=>{let e=class e{constructor(n){this.form=n,this.messages={}}get errors(){if(!this.controlName)return[];let n=this.form.control.get(this.controlName);return!n||!n.errors||!n.touched?[]:Object.keys(n.errors).map(i=>this.messages[i])}};e.\u0275fac=function(i){return new(i||e)(m(Dr))},e.\u0275cmp=te({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(i,o){i&1&&Y(0,q_,2,1,"p",0),i&2&&O("ngForOf",o.errors)},dependencies:[je]});let t=e;return t})();function Y_(t,e){if(t&1&&ne(0,"input",20),t&2){let r=e.index;O("formControlName",r),er("aria-label","Author "+r)}}var Q_=()=>({required:"Title is required"}),K_=()=>({required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}),J_=()=>({atleastonevalue:"At least one author required"}),zs=(()=>{let e=class e{constructor(){this.submitBook=new X,this.form=new Ps({title:new Dt("",{nonNullable:!0,validators:yi.required}),subtitle:new Dt("",{nonNullable:!0}),isbn:new Dt("",{nonNullable:!0,validators:[yi.required,Am],asyncValidators:p(xm).isbnExists()}),description:new Dt("",{nonNullable:!0}),published:new Dt("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new Dt("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(n){this.form.patchValue(n),this.form.setControl("authors",this.buildAuthorsArray(n.authors))}setEditMode(n){let i=this.form.controls.isbn;n?i.disable():i.enable()}buildAuthorsArray(n){return new wi(n.map(i=>new Dt(i,{nonNullable:!0})),Nm)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new Dt("",{nonNullable:!0}))}submitForm(){let n=this.form.getRawValue(),i=n.authors.filter(s=>!!s),o=H(g({},n),{authors:i});this.submitBook.emit(o)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=te({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[Ke],decls:30,vars:9,consts:[[3,"formGroup","ngSubmit"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(i,o){i&1&&(y(0,"form",0),re("ngSubmit",function(){return o.submitForm()}),y(1,"label",1),M(2,"Title"),D(),ne(3,"input",2)(4,"bm-form-errors",3),y(5,"label",4),M(6,"Subtitle"),D(),ne(7,"input",5),y(8,"label",6),M(9,"ISBN"),D(),ne(10,"input",7)(11,"bm-form-errors",8),y(12,"label"),M(13,"Authors"),D(),y(14,"button",9),re("click",function(){return o.addAuthorControl()}),M(15," + Author "),D(),y(16,"fieldset",10),Y(17,Y_,1,2,"input",11),D(),ne(18,"bm-form-errors",12),y(19,"label",13),M(20,"Description"),D(),ne(21,"textarea",14),y(22,"label",15),M(23,"Published"),D(),ne(24,"input",16),y(25,"label",17),M(26,"Thumbnail URL"),D(),ne(27,"input",18),y(28,"button",19),M(29," Save "),D()()),i&2&&(O("formGroup",o.form),x(4),O("messages",Zo(6,Q_)),x(7),O("messages",Zo(7,K_)),x(6),O("ngForOf",o.authors.controls),x(1),O("messages",Zo(8,J_)),x(10),O("disabled",o.form.invalid))},dependencies:[je,wm,js,gm,mm,Dr,Sl,Hs,Tm,Om]});let t=e;return t})();var Fm=(()=>{let e=class e{constructor(n,i){this.service=n,this.router=i}create(n){this.service.create(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(He),m(be))},e.\u0275cmp=te({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(i,o){i&1&&(y(0,"h1"),M(1,"Create Book"),D(),y(2,"bm-book-form",0),re("submitBook",function(a){return o.create(a)}),D())},dependencies:[zs]});let t=e;return t})();function X_(t,e){if(t&1){let r=xt();y(0,"bm-book-form",1),re("submitBook",function(i){Mt(r);let o=xe();return St(o.update(i))}),D()}if(t&2){let r=e.ngIf;O("book",r)}}var Pm=(()=>{let e=class e{constructor(n,i,o){this.service=n,this.route=i,this.router=o,this.book$=this.route.paramMap.pipe(A(s=>s.get("isbn")),oe(s=>this.service.getSingle(s)))}update(n){this.service.update(n).subscribe(i=>{this.router.navigate(["/books",i.isbn])})}};e.\u0275fac=function(i){return new(i||e)(m(He),m(et),m(be))},e.\u0275cmp=te({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(i,o){i&1&&(y(0,"h1"),M(1,"Edit Book"),D(),Y(2,X_,1,1,"bm-book-form",0),qt(3,"async")),i&2&&(x(2),O("ngIf",Zt(3,1,o.book$)))},dependencies:[Be,zs,Yt]});let t=e;return t})();var eM=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:Fm},{path:"admin/edit/:isbn",component:Pm}],km=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[Ot.forChild(eM),Ot]});let t=e;return t})();var Lm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e}),e.\u0275inj=q({imports:[sr,km,Mm]});let t=e;return t})();var Vm=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=Z({type:e,bootstrap:[$g]}),e.\u0275inj=q({providers:[{provide:_c,useClass:qg,multi:!0}],imports:[Gp,jg,kp,Wg,Lm]});let t=e;return t})();zp().bootstrapModule(Vm).catch(t=>console.error(t)); diff --git a/loader.ee3cf4c614872a86.svg b/browser/media/loader-5Y6PJRQU.svg similarity index 100% rename from loader.ee3cf4c614872a86.svg rename to browser/media/loader-5Y6PJRQU.svg diff --git a/search.d0af5a2290579f05.svg b/browser/media/search-2CXVUIUQ.svg similarity index 100% rename from search.d0af5a2290579f05.svg rename to browser/media/search-2CXVUIUQ.svg diff --git a/browser/polyfills-LZBJRJJE.js b/browser/polyfills-LZBJRJJE.js new file mode 100644 index 0000000..57d4c33 --- /dev/null +++ b/browser/polyfills-LZBJRJJE.js @@ -0,0 +1,2 @@ +(function(e){let n=e.performance;function c(L){n&&n.mark&&n.mark(L)}function r(L,t){n&&n.measure&&n.measure(L,t)}c("Zone");let a=e.__Zone_symbol_prefix||"__zone_symbol__";function l(L){return a+L}let y=e[l("forceDuplicateZoneCheck")]===!0;if(e.Zone){if(y||typeof e.Zone.__symbol__!="function")throw new Error("Zone already loaded.");return e.Zone}let oe=class oe{static assertZonePatched(){if(e.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=oe.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return te}static __load_patch(t,s,o=!1){if(re.hasOwnProperty(t)){if(!o&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){let v="Zone:"+t;c(v),re[t]=s(e,oe,z),r(v,v)}}get parent(){return this._parent}get name(){return this._name}constructor(t,s){this._parent=t,this._name=s?s.name||"unnamed":"",this._properties=s&&s.properties||{},this._zoneDelegate=new k(this,this._parent&&this._parent._zoneDelegate,s)}get(t){let s=this.getZoneWith(t);if(s)return s._properties[t]}getZoneWith(t){let s=this;for(;s;){if(s._properties.hasOwnProperty(t))return s;s=s._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,s){if(typeof t!="function")throw new Error("Expecting function got: "+t);let o=this._zoneDelegate.intercept(this,t,s),v=this;return function(){return v.runGuarded(o,this,arguments,s)}}run(t,s,o,v){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,s,o,v)}finally{U=U.parent}}runGuarded(t,s=null,o,v){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,s,o,v)}catch(F){if(this._zoneDelegate.handleError(this,F))throw F}}finally{U=U.parent}}runTask(t,s,o){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(t.state===H&&(t.type===K||t.type===P))return;let v=t.state!=T;v&&t._transitionTo(T,M),t.runCount++;let F=te;te=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,s,o)}catch(u){if(this._zoneDelegate.handleError(this,u))throw u}}finally{t.state!==H&&t.state!==d&&(t.type==K||t.data&&t.data.isPeriodic?v&&t._transitionTo(M,T):(t.runCount=0,this._updateTaskCount(t,-1),v&&t._transitionTo(H,T,H))),U=U.parent,te=F}}scheduleTask(t){if(t.zone&&t.zone!==this){let o=this;for(;o;){if(o===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);o=o.parent}}t._transitionTo(X,H);let s=[];t._zoneDelegates=s,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(o){throw t._transitionTo(d,X,H),this._zoneDelegate.handleError(this,o),o}return t._zoneDelegates===s&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(M,X),t}scheduleMicroTask(t,s,o,v){return this.scheduleTask(new m(N,t,s,o,v,void 0))}scheduleMacroTask(t,s,o,v,F){return this.scheduleTask(new m(P,t,s,o,v,F))}scheduleEventTask(t,s,o,v,F){return this.scheduleTask(new m(K,t,s,o,v,F))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||$).name+"; Execution: "+this.name+")");if(!(t.state!==M&&t.state!==T)){t._transitionTo(x,M,T);try{this._zoneDelegate.cancelTask(this,t)}catch(s){throw t._transitionTo(d,x),this._zoneDelegate.handleError(this,s),s}return this._updateTaskCount(t,-1),t._transitionTo(H,x),t.runCount=0,t}}_updateTaskCount(t,s){let o=t._zoneDelegates;s==-1&&(t._zoneDelegates=null);for(let v=0;vL.hasTask(s,o),onScheduleTask:(L,t,s,o)=>L.scheduleTask(s,o),onInvokeTask:(L,t,s,o,v,F)=>L.invokeTask(s,o,v,F),onCancelTask:(L,t,s,o)=>L.cancelTask(s,o)};class k{constructor(t,s,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=t,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 v=o&&o.onHasTask,F=s&&s._hasTaskZS;(v||F)&&(this._hasTaskZS=v?o:b,this._hasTaskDlgt=s,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=t,o.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=s,this._scheduleTaskCurrZone=this.zone),o.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=s,this._invokeTaskCurrZone=this.zone),o.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=s,this._cancelTaskCurrZone=this.zone))}fork(t,s){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,s):new _(t,s)}intercept(t,s,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,s,o):s}invoke(t,s,o,v,F){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,s,o,v,F):s.apply(o,v)}handleError(t,s){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,s):!0}scheduleTask(t,s){let o=s;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,s),o||(o=s);else if(s.scheduleFn)s.scheduleFn(s);else if(s.type==N)R(s);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(t,s,o,v){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,s,o,v):s.callback.apply(o,v)}cancelTask(t,s){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,s);else{if(!s.cancelFn)throw Error("Task is not cancelable");o=s.cancelFn(s)}return o}hasTask(t,s){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,s)}catch(o){this.handleError(t,o)}}_updateTaskCount(t,s){let o=this._taskCounts,v=o[t],F=o[t]=v+s;if(F<0)throw new Error("More tasks executed then were scheduled.");if(v==0||F==0){let u={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:t};this.hasTask(this.zone,u)}}}class m{constructor(t,s,o,v,F,u){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=t,this.source=s,this.data=v,this.scheduleFn=F,this.cancelFn=u,!o)throw new Error("callback is not defined");this.callback=o;let f=this;t===K&&v&&v.useG?this.invoke=m.invokeTask:this.invoke=function(){return m.invokeTask.call(e,f,this,arguments)}}static invokeTask(t,s,o){t||(t=this),Q++;try{return t.runCount++,t.zone.runTask(t,s,o)}finally{Q==1&&E(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(H,X)}_transitionTo(t,s,o){if(this._state===s||this._state===o)this._state=t,t==H&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${t}', 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 I=l("setTimeout"),Z=l("Promise"),O=l("then"),B=[],A=!1,J;function q(L){if(J||e[Z]&&(J=e[Z].resolve(0)),J){let t=J[O];t||(t=J.then),t.call(J,L)}else e[I](L,0)}function R(L){Q===0&&B.length===0&&q(E),L&&B.push(L)}function E(){if(!A){for(A=!0;B.length;){let L=B;B=[];for(let t=0;tU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!_[l("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:q},U={parent:null,zone:new _(null,null)},te=null,Q=0;function W(){}return r("Zone","Zone"),e.Zone=_})(globalThis);var me=Object.getOwnPropertyDescriptor,Ne=Object.defineProperty,Ie=Object.getPrototypeOf,it=Object.create,ct=Array.prototype.slice,Me="addEventListener",Le="removeEventListener",Se=Zone.__symbol__(Me),De=Zone.__symbol__(Le),ie="true",ce="false",pe=Zone.__symbol__("");function Ae(e,n){return Zone.current.wrap(e,n)}function je(e,n,c,r,a){return Zone.current.scheduleMacroTask(e,n,c,r,a)}var j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||globalThis,at="removeAttribute";function He(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ae(e[c],n+"_"+c));return e}function lt(e,n){let c=e.constructor.name;for(let r=0;r{let b=function(){return _.apply(this,He(arguments,c+"."+a))};return ae(b,_),b})(l)}}}function Ye(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var $e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]",xe=!we&&!$e&&!!(Pe&&Te.HTMLElement),Je=typeof Y.process<"u"&&{}.toString.call(Y.process)==="[object process]"&&!$e&&!!(Pe&&Te.HTMLElement),be={},We=function(e){if(e=e||Y.event,!e)return;let n=be[e.type];n||(n=be[e.type]=j("ON_PROPERTY"+e.type));let c=this||e.target||Y,r=c[n],a;if(xe&&c===Te&&e.type==="error"){let l=e;a=r&&r.call(this,l.message,l.filename,l.lineno,l.colno,l.error),a===!0&&e.preventDefault()}else a=r&&r.apply(this,arguments),a!=null&&!a&&e.preventDefault();return a};function qe(e,n,c){let r=me(e,n);if(!r&&c&&me(c,n)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;let a=j("on"+n+"patched");if(e.hasOwnProperty(a)&&e[a])return;delete r.writable,delete r.value;let l=r.get,y=r.set,_=n.slice(2),b=be[_];b||(b=be[_]=j("ON_PROPERTY"+_)),r.set=function(k){let m=this;if(!m&&e===Y&&(m=Y),!m)return;typeof m[b]=="function"&&m.removeEventListener(_,We),y&&y.call(m,null),m[b]=k,typeof k=="function"&&m.addEventListener(_,We,!1)},r.get=function(){let k=this;if(!k&&e===Y&&(k=Y),!k)return null;let m=k[b];if(m)return m;if(l){let I=l.call(this);if(I)return r.set.call(this,I),typeof k[at]=="function"&&k.removeAttribute(n),I}return null},Ne(e,n,r),e[a]=!0}function Ke(e,n,c){if(n)for(let r=0;rfunction(y,_){let b=c(y,_);return b.cbIdx>=0&&typeof _[b.cbIdx]=="function"?je(b.name,_[b.cbIdx],b,a):l.apply(y,_)})}function ae(e,n){e[j("OriginalDelegate")]=n}var Xe=!1,Ze=!1;function ft(){try{let e=Te.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function ht(){if(Xe)return Ze;Xe=!0;try{let e=Te.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ze=!0)}catch{}return Ze}Zone.__load_patch("ZoneAwarePromise",(e,n,c)=>{let r=Object.getOwnPropertyDescriptor,a=Object.defineProperty;function l(u){if(u&&u.toString===Object.prototype.toString){let f=u.constructor&&u.constructor.name;return(f||"")+": "+JSON.stringify(u)}return u?u.toString():Object.prototype.toString.call(u)}let y=c.symbol,_=[],b=e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,k=y("Promise"),m=y("then"),I="__creationTrace__";c.onUnhandledError=u=>{if(c.showUncaughtError()){let f=u&&u.rejection;f?console.error("Unhandled Promise rejection:",f instanceof Error?f.message:f,"; Zone:",u.zone.name,"; Task:",u.task&&u.task.source,"; Value:",f,f instanceof Error?f.stack:void 0):console.error(u)}},c.microtaskDrainDone=()=>{for(;_.length;){let u=_.shift();try{u.zone.runGuarded(()=>{throw u.throwOriginal?u.rejection:u})}catch(f){O(f)}}};let Z=y("unhandledPromiseRejectionHandler");function O(u){c.onUnhandledError(u);try{let f=n[Z];typeof f=="function"&&f.call(this,u)}catch{}}function B(u){return u&&u.then}function A(u){return u}function J(u){return t.reject(u)}let q=y("state"),R=y("value"),E=y("finally"),$=y("parentPromiseValue"),H=y("parentPromiseState"),X="Promise.then",M=null,T=!0,x=!1,d=0;function N(u,f){return i=>{try{z(u,f,i)}catch(h){z(u,!1,h)}}}let P=function(){let u=!1;return function(i){return function(){u||(u=!0,i.apply(null,arguments))}}},K="Promise resolved with itself",re=y("currentTaskTrace");function z(u,f,i){let h=P();if(u===i)throw new TypeError(K);if(u[q]===M){let g=null;try{(typeof i=="object"||typeof i=="function")&&(g=i&&i.then)}catch(w){return h(()=>{z(u,!1,w)})(),u}if(f!==x&&i instanceof t&&i.hasOwnProperty(q)&&i.hasOwnProperty(R)&&i[q]!==M)te(i),z(u,i[q],i[R]);else if(f!==x&&typeof g=="function")try{g.call(i,h(N(u,f)),h(N(u,!1)))}catch(w){h(()=>{z(u,!1,w)})()}else{u[q]=f;let w=u[R];if(u[R]=i,u[E]===E&&f===T&&(u[q]=u[H],u[R]=u[$]),f===x&&i instanceof Error){let p=n.currentTask&&n.currentTask.data&&n.currentTask.data[I];p&&a(i,re,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{let C=u[R],S=!!i&&E===i[E];S&&(i[$]=C,i[H]=w);let D=f.run(p,void 0,S&&p!==J&&p!==A?[]:[C]);z(i,!0,D)}catch(C){z(i,!1,C)}},i)}let W="function ZoneAwarePromise() { [native code] }",oe=function(){},L=e.AggregateError;class t{static toString(){return W}static resolve(f){return z(new this(null),T,f)}static reject(f){return z(new this(null),x,f)}static any(f){if(!f||typeof f[Symbol.iterator]!="function")return Promise.reject(new L([],"All promises were rejected"));let i=[],h=0;try{for(let p of f)h++,i.push(t.resolve(p))}catch{return Promise.reject(new L([],"All promises were rejected"))}if(h===0)return Promise.reject(new L([],"All promises were rejected"));let g=!1,w=[];return new t((p,C)=>{for(let S=0;S{g||(g=!0,p(D))},D=>{w.push(D),h--,h===0&&(g=!0,C(new L(w,"All promises were rejected")))})})}static race(f){let i,h,g=new this((C,S)=>{i=C,h=S});function w(C){i(C)}function p(C){h(C)}for(let C of f)B(C)||(C=this.resolve(C)),C.then(w,p);return g}static all(f){return t.allWithCallback(f)}static allSettled(f){return(this&&this.prototype instanceof t?this:t).allWithCallback(f,{thenCallback:h=>({status:"fulfilled",value:h}),errorCallback:h=>({status:"rejected",reason:h})})}static allWithCallback(f,i){let h,g,w=new this((D,G)=>{h=D,g=G}),p=2,C=0,S=[];for(let D of f){B(D)||(D=this.resolve(D));let G=C;try{D.then(V=>{S[G]=i?i.thenCallback(V):V,p--,p===0&&h(S)},V=>{i?(S[G]=i.errorCallback(V),p--,p===0&&h(S)):g(V)})}catch(V){g(V)}p++,C++}return p-=2,p===0&&h(S),w}constructor(f){let i=this;if(!(i instanceof t))throw new Error("Must be an instanceof Promise.");i[q]=M,i[R]=[];try{let h=P();f&&f(h(N(i,T)),h(N(i,x)))}catch(h){z(i,!1,h)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(f,i){let h=this.constructor?.[Symbol.species];(!h||typeof h!="function")&&(h=this.constructor||t);let g=new h(oe),w=n.current;return this[q]==M?this[R].push(w,g,f,i):Q(this,w,g,f,i),g}catch(f){return this.then(null,f)}finally(f){let i=this.constructor?.[Symbol.species];(!i||typeof i!="function")&&(i=t);let h=new i(oe);h[E]=E;let g=n.current;return this[q]==M?this[R].push(g,h,f,f):Q(this,g,h,f,f),h}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;let s=e[k]=e.Promise;e.Promise=t;let o=y("thenPatched");function v(u){let f=u.prototype,i=r(f,"then");if(i&&(i.writable===!1||!i.configurable))return;let h=f.then;f[m]=h,u.prototype.then=function(g,w){return new t((C,S)=>{h.call(this,C,S)}).then(g,w)},u[o]=!0}c.patchThen=v;function F(u){return function(f,i){let h=u.apply(f,i);if(h instanceof t)return h;let g=h.constructor;return g[o]||v(g),h}}return s&&(v(s),le(e,"fetch",u=>F(u))),Promise[n.__symbol__("uncaughtPromiseErrors")]=_,t});Zone.__load_patch("toString",e=>{let n=Function.prototype.toString,c=j("OriginalDelegate"),r=j("Promise"),a=j("Error"),l=function(){if(typeof this=="function"){let k=this[c];if(k)return typeof k=="function"?n.call(k):Object.prototype.toString.call(k);if(this===Promise){let m=e[r];if(m)return n.call(m)}if(this===Error){let m=e[a];if(m)return n.call(m)}}return n.call(this)};l[c]=n,Function.prototype.toString=l;let y=Object.prototype.toString,_="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?_:y.call(this)}});var _e=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){_e=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{_e=!1}var dt={useG:!0},ee={},Qe={},et=new RegExp("^"+pe+"(\\w+)(true|false)$"),tt=j("propagationStopped");function nt(e,n){let c=(n?n(e):e)+ce,r=(n?n(e):e)+ie,a=pe+c,l=pe+r;ee[e]={},ee[e][ce]=a,ee[e][ie]=l}function _t(e,n,c,r){let a=r&&r.add||Me,l=r&&r.rm||Le,y=r&&r.listeners||"eventListeners",_=r&&r.rmAll||"removeAllListeners",b=j(a),k="."+a+":",m="prependListener",I="."+m+":",Z=function(R,E,$){if(R.isRemoved)return;let H=R.callback;typeof H=="object"&&H.handleEvent&&(R.callback=T=>H.handleEvent(T),R.originalDelegate=H);let X;try{R.invoke(R,E,[$])}catch(T){X=T}let M=R.options;if(M&&typeof M=="object"&&M.once){let T=R.originalDelegate?R.originalDelegate:R.callback;E[l].call(E,$.type,T,M)}return X};function O(R,E,$){if(E=E||e.event,!E)return;let H=R||E.target||e,X=H[ee[E.type][$?ie:ce]];if(X){let M=[];if(X.length===1){let T=Z(X[0],H,E);T&&M.push(T)}else{let T=X.slice();for(let x=0;x{throw x})}}}let B=function(R){return O(this,R,!1)},A=function(R){return O(this,R,!0)};function J(R,E){if(!R)return!1;let $=!0;E&&E.useG!==void 0&&($=E.useG);let H=E&&E.vh,X=!0;E&&E.chkDup!==void 0&&(X=E.chkDup);let M=!1;E&&E.rt!==void 0&&(M=E.rt);let T=R;for(;T&&!T.hasOwnProperty(a);)T=Ie(T);if(!T&&R[a]&&(T=R),!T||T[b])return!1;let x=E&&E.eventNameToString,d={},N=T[b]=T[a],P=T[j(l)]=T[l],K=T[j(y)]=T[y],re=T[j(_)]=T[_],z;E&&E.prepend&&(z=T[j(E.prepend)]=T[E.prepend]);function U(i,h){return!_e&&typeof i=="object"&&i?!!i.capture:!_e||!h?i:typeof i=="boolean"?{capture:i,passive:!0}:i?typeof i=="object"&&i.passive!==!1?{...i,passive:!0}:i:{passive:!0}}let te=function(i){if(!d.isExisting)return N.call(d.target,d.eventName,d.capture?A:B,d.options)},Q=function(i){if(!i.isRemoved){let h=ee[i.eventName],g;h&&(g=h[i.capture?ie:ce]);let w=g&&i.target[g];if(w){for(let p=0;pfunction(a,l){a[tt]=!0,r&&r.apply(a,l)})}function Tt(e,n,c,r,a){let l=Zone.__symbol__(r);if(n[l])return;let y=n[l]=n[r];n[r]=function(_,b,k){return b&&b.prototype&&a.forEach(function(m){let I=`${c}.${r}::`+m,Z=b.prototype;try{if(Z.hasOwnProperty(m)){let O=e.ObjectGetOwnPropertyDescriptor(Z,m);O&&O.value?(O.value=e.wrapWithCurrentZone(O.value,I),e._redefineProperty(b.prototype,m,O)):Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}else Z[m]&&(Z[m]=e.wrapWithCurrentZone(Z[m],I))}catch{}}),y.call(n,_,b,k)},e.attachOriginToPatched(n[r],y)}function ot(e,n,c){if(!c||c.length===0)return n;let r=c.filter(l=>l.target===e);if(!r||r.length===0)return n;let a=r[0].ignoreProperties;return n.filter(l=>a.indexOf(l)===-1)}function ze(e,n,c,r){if(!e)return;let a=ot(e,n,c);Ke(e,a,r)}function Oe(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function yt(e,n){if(we&&!Je||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,r=[];if(xe){let a=window;r=r.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let l=ft()?[{target:a,ignoreProperties:["error"]}]:[];ze(a,Oe(a),c&&c.concat(l),Ie(a))}r=r.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let a=0;a{let r=Oe(e);c.patchOnProperties=Ke,c.patchMethod=le,c.bindArguments=He,c.patchMacroTask=ut;let a=n.__symbol__("BLACK_LISTED_EVENTS"),l=n.__symbol__("UNPATCHED_EVENTS");e[l]&&(e[a]=e[l]),e[a]&&(n[a]=n[l]=e[a]),c.patchEventPrototype=Et,c.patchEventTarget=_t,c.isIEOrEdge=ht,c.ObjectDefineProperty=Ne,c.ObjectGetOwnPropertyDescriptor=me,c.ObjectCreate=it,c.ArraySlice=ct,c.patchClass=ge,c.wrapWithCurrentZone=Ae,c.filterProperties=ot,c.attachOriginToPatched=ae,c._redefineProperty=Object.defineProperty,c.patchCallbacks=Tt,c.getGlobalObjects=()=>({globalSources:Qe,zoneSymbolEventNames:ee,eventNames:r,isBrowser:xe,isMix:Je,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Me,REMOVE_EVENT_LISTENER_STR:Le})});function mt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(r,a){Zone.current.scheduleMicroTask("queueMicrotask",a[0])})}var ve=j("zoneTask");function Ee(e,n,c,r){let a=null,l=null;n+=r,c+=r;let y={};function _(k){let m=k.data;return m.args[0]=function(){return k.invoke.apply(this,arguments)},m.handleId=a.apply(e,m.args),k}function b(k){return l.call(e,k.data.handleId)}a=le(e,n,k=>function(m,I){if(typeof I[0]=="function"){let Z={isPeriodic:r==="Interval",delay:r==="Timeout"||r==="Interval"?I[1]||0:void 0,args:I},O=I[0];I[0]=function(){try{return O.apply(this,arguments)}finally{Z.isPeriodic||(typeof Z.handleId=="number"?delete y[Z.handleId]:Z.handleId&&(Z.handleId[ve]=null))}};let B=je(n,I[0],Z,_,b);if(!B)return B;let A=B.data.handleId;return typeof A=="number"?y[A]=B:A&&(A[ve]=B),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(B.ref=A.ref.bind(A),B.unref=A.unref.bind(A)),typeof A=="number"||A?A:B}else return k.apply(e,I)}),l=le(e,c,k=>function(m,I){let Z=I[0],O;typeof Z=="number"?O=y[Z]:(O=Z&&Z[ve],O||(O=Z)),O&&typeof O.type=="string"?O.state!=="notScheduled"&&(O.cancelFn&&O.data.isPeriodic||O.runCount===0)&&(typeof Z=="number"?delete y[Z]:Z&&(Z[ve]=null),O.zone.cancelTask(O)):k.apply(e,I)})}function pt(e,n){let{isBrowser:c,isMix:r}=n.getGlobalObjects();if(!c&&!r||!e.customElements||!("customElements"in e))return;let a=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",a)}function gt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:r,TRUE_STR:a,FALSE_STR:l,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{let n=e[Zone.__symbol__("legacyPatch")];n&&n()});Zone.__load_patch("timers",e=>{let n="set",c="clear";Ee(e,n,c,"Timeout"),Ee(e,n,c,"Interval"),Ee(e,n,c,"Immediate")});Zone.__load_patch("requestAnimationFrame",e=>{Ee(e,"request","cancel","AnimationFrame"),Ee(e,"mozRequest","mozCancel","AnimationFrame"),Ee(e,"webkitRequest","webkitCancel","AnimationFrame")});Zone.__load_patch("blocking",(e,n)=>{let c=["alert","prompt","confirm"];for(let r=0;rfunction(b,k){return n.current.run(l,e,k,_)})}});Zone.__load_patch("EventTarget",(e,n,c)=>{kt(e,c),gt(e,c);let r=e.XMLHttpRequestEventTarget;r&&r.prototype&&c.patchEventTarget(e,c,[r.prototype])});Zone.__load_patch("MutationObserver",(e,n,c)=>{ge("MutationObserver"),ge("WebKitMutationObserver")});Zone.__load_patch("IntersectionObserver",(e,n,c)=>{ge("IntersectionObserver")});Zone.__load_patch("FileReader",(e,n,c)=>{ge("FileReader")});Zone.__load_patch("on_property",(e,n,c)=>{yt(c,e)});Zone.__load_patch("customElements",(e,n,c)=>{pt(e,c)});Zone.__load_patch("XHR",(e,n)=>{b(e);let c=j("xhrTask"),r=j("xhrSync"),a=j("xhrListener"),l=j("xhrScheduled"),y=j("xhrURL"),_=j("xhrErrorBeforeScheduled");function b(k){let m=k.XMLHttpRequest;if(!m)return;let I=m.prototype;function Z(d){return d[c]}let O=I[Se],B=I[De];if(!O){let d=k.XMLHttpRequestEventTarget;if(d){let N=d.prototype;O=N[Se],B=N[De]}}let A="readystatechange",J="scheduled";function q(d){let N=d.data,P=N.target;P[l]=!1,P[_]=!1;let K=P[a];O||(O=P[Se],B=P[De]),K&&B.call(P,A,K);let re=P[a]=()=>{if(P.readyState===P.DONE)if(!N.aborted&&P[l]&&d.state===J){let U=P[n.__symbol__("loadfalse")];if(P.status!==0&&U&&U.length>0){let te=d.invoke;d.invoke=function(){let Q=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(d,N){return d[r]=N[2]==!1,d[y]=N[1],$.apply(d,N)}),H="XMLHttpRequest.send",X=j("fetchTaskAborting"),M=j("fetchTaskScheduling"),T=le(I,"send",()=>function(d,N){if(n.current[M]===!0||d[r])return T.apply(d,N);{let P={target:d,url:d[y],isPeriodic:!1,args:N,aborted:!1},K=je(H,R,P,q,E);d&&d[_]===!0&&!P.aborted&&K.state===J&&K.invoke()}}),x=le(I,"abort",()=>function(d,N){let P=Z(d);if(P&&typeof P.type=="string"){if(P.cancelFn==null||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(n.current[X]===!0)return x.apply(d,N)})}});Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&<(e.navigator.geolocation,["getCurrentPosition","watchPosition"])});Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function c(r){return function(a){rt(e,r).forEach(y=>{let _=e.PromiseRejectionEvent;if(_){let b=new _(r,{promise:a.promise,reason:a.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=c("unhandledrejection"),n[j("rejectionHandledHandler")]=c("rejectionhandled"))});Zone.__load_patch("queueMicrotask",(e,n,c)=>{mt(e,c)}); diff --git a/browser/styles-ILYRG3NJ.css b/browser/styles-ILYRG3NJ.css new file mode 100644 index 0000000..6c54a24 --- /dev/null +++ b/browser/styles-ILYRG3NJ.css @@ -0,0 +1 @@ +*{font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif}h1,h2,h3,h4,h5,h6{color:#000000de;box-sizing:inherit;line-height:1.3em;margin:calc(2rem - .15em) 0em 1rem;font-weight:700;padding:0}h1{min-height:1rem;font-size:2rem;margin-top:0}h2,[role=doc-subtitle]{font-size:1.4rem}h3{margin:10px 0}p{margin:0 0 1em;line-height:1.4em}ul{padding:0;list-style:none}img{object-fit:contain}button,a.button{box-sizing:inherit;overflow:visible;cursor:pointer;display:inline-block;min-height:1em;border:none;vertical-align:initial;background:#e0e1e2 none;color:#0009;font-family:Lato,Helvetica Neue,Arial,Helvetica,sans-serif;margin:.25em .25em 0 0;padding:.8em 1.5em;text-transform:none;text-shadow:none;font-weight:700;line-height:1em;font-style:normal;text-align:center;text-decoration:none;border-radius:.3rem;-webkit-user-select:none;user-select:none;transition:opacity .1s ease,background-color .1s ease,color .1s ease,box-shadow .1s ease,background .1s ease;-webkit-tap-highlight-color:transparent;box-shadow:inset 0 0 0 1px transparent,inset 0 0 #22242626;font-size:.8rem}button:hover,a.button:hover{background-color:#cacbcd}button:disabled,a.button:disabled,button:disabled:hover,a.button:disabled:hover{cursor:not-allowed!important;background-color:#0000000d!important;color:#888!important}button.arrow-left,a.arrow-left{position:relative;padding-left:1.9rem}button.arrow-left:before,a.arrow-left:before{content:"\a";border-style:solid;border-width:7px 12px 7px 0;border-color:transparent #444 transparent transparent;position:absolute;left:.7rem}input,textarea{box-sizing:inherit;background:#FFFFFF;border:1px solid rgba(10,10,10,.3);color:#000000e6;border-radius:.3rem;transition:color .1s ease,border-color .1s ease;line-height:1.2}input{font-size:100%;overflow:visible;margin:0;max-width:100%;flex:1 0 auto;text-align:left;padding:.7em 1em;box-shadow:none;padding-right:2.7em!important;border-radius:.3rem}input[type=search]{background:url("./media/search-2CXVUIUQ.svg") no-repeat scroll calc(100% - 10px) 10px;background-size:22px 22px}input.loading,input.ng-pending{background:url("./media/loader-5Y6PJRQU.svg") no-repeat scroll calc(100% - 10px) 10px;background-size:22px 22px}textarea{overflow:auto;padding:1em;box-shadow:inset 0 0 0 0 transparent;font-size:1em;line-height:1.2857;resize:vertical;vertical-align:top;height:12em;min-height:8em;max-height:24em}input.ng-invalid.ng-touched,textarea.ng-invalid.ng-touched,fieldset.ng-invalid.ng-touched input,fieldset.ng-invalid.ng-touched textarea{outline-color:#d01919;border-bottom-color:#d01919;border-bottom-width:.2em;margin-bottom:20px;outline:0}input.ng-pending,textarea.ng-pending,fieldset.ng-pending input,fieldset.ng-pending textarea{animation:pulse 1.2s infinite}@keyframes pulse{0%{box-shadow:0 0 #e2bc00}50%{box-shadow:0 0 0 .2em #e2bc0080}to{box-shadow:0 0 #e2bc00}}body{margin:20px;min-width:320px}.yellow{background-color:#fbbd08!important;color:#fff!important}.yellow:hover{background-color:#eaae00!important}.red{background-color:#db2828!important;color:#fff!important}.red:hover{background-color:#d01919!important}.green{background-color:#287e2b!important;color:#fff!important}.green:hover{background-color:#096c0d!important}ul.comma-list{display:inline-flex;list-style:none;gap:.2em;flex-wrap:wrap}ul.comma-list li{display:inline-flex}ul.comma-list li:after{content:", "}ul.comma-list li:last-child:after{content:""}.visually-hidden{display:none}.loader{color:#000;text-align:center;font-family:sans-serif;font-size:16px;perspective:350px;padding-top:130px}.loader:before,.loader:after{content:"";display:block;width:45px;height:70px;border:4px solid #000000;margin:5% auto 30px;position:absolute;top:-10px;left:50%}.loader:before{border-left:1px solid #db2828;overflow:hidden;background:#db2828;transform-style:preserve-3d;transform-origin:left center;animation:pageTurn 1.3s cubic-bezier(0,.39,1,.68) .1s infinite}@keyframes pageTurn{0%{transform:rotateY(0)}20%{background:#d01919}40%{background:#db2828;transform:rotateY(-180deg)}to{background:#db2828;transform:rotateY(-180deg)}}@keyframes Dots{0%{content:""}33%{content:"."}66%{content:".."}to{content:"..."}}nav{line-height:1.4em;color:#000000de;box-sizing:inherit;margin:0rem 0em 1rem;background:#FFFFFF;font-weight:400;border:1px solid rgba(34,36,38,.15);box-shadow:0 1px 2px #22242626;border-radius:.3em;min-height:2.9em;font-size:1rem;display:flex;flex-wrap:wrap}nav a{font-size:1rem;box-sizing:inherit;position:relative;vertical-align:middle;line-height:1;text-decoration:none;-webkit-tap-highlight-color:transparent;flex:0 0 auto;-webkit-user-select:none;user-select:none;background:none;padding:.9em 1.1em;text-transform:none;color:#000000de;font-weight:400;transition:background .1s ease,box-shadow .1s ease,color .1s ease;display:flex;align-items:center}nav a:hover{cursor:pointer;background:rgba(0,0,0,.03);color:#000000f2}nav a.active{background:rgba(0,0,0,.05);color:#000000f2;font-weight:400;box-shadow:none}nav .actions{display:flex;flex-grow:1;flex-direction:row-reverse;margin:.25em .75em;gap:.5em}nav .actions button{margin:0}button.notification:before{content:"\1f514"}button.notification.red:before{content:"\1f515"}span.icon.loading{position:relative;text-align:center;width:2.7em;top:19px;left:-20px}span.icon:after{position:absolute;content:"";width:1.3em;font-style:normal;height:1.3em}span.icon.star:after{content:"\2605";color:#fbbd08;position:relative}span.icon.loading:after{margin:-.7em 0 0 -.7em;-webkit-animation:button-spin .6s linear;animation:button-spin .6s linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;border-radius:500rem;border-color:#767676 transparent transparent;border-style:solid;border-width:.2em;-webkit-box-shadow:0 0 0 1px transparent;box-shadow:0 0 0 1px transparent}ul.search-results{line-height:1.4em;color:#000000de;font-size:1em;box-sizing:inherit;animation-iteration-count:1;animation-duration:.3s;animation-timing-function:ease;animation-fill-mode:both;display:block!important;visibility:visible!important;top:100%;left:0%;transform-origin:center top;white-space:normal;text-align:left;text-transform:none;background:#FFFFFF;margin-top:.5em;width:18em;border-radius:.3em;box-shadow:0 2px 4px #2224261f,0 2px 10px #22242626;border:1px solid #D4D4D5;z-index:998;max-width:calc(100vw - 2rem)}ul.search-results>li:not(:has(>a)){padding:.9em 1.1em}ul.search-results>li>a{visibility:visible!important;white-space:normal;text-align:left;text-transform:none;box-sizing:inherit;background-color:transparent;text-decoration:none;border-radius:.3 .3 0em 0em;cursor:initial;display:block;overflow:hidden;font-size:1em;padding:.9em 1.1em;color:#000000de;line-height:1.33;border-bottom:1px solid rgba(34,36,38,.1)}ul.search-results>li>a{cursor:pointer}ul.search-results>li>a:hover{background:#F9FAFB}ul.search-results>li>a>p{visibility:visible!important;white-space:normal;text-align:left;text-transform:none;cursor:pointer;box-sizing:inherit;margin:0;line-height:1.4em;font-size:.92857143em;color:#505050}.book-list{margin:0}.book-list .list-item{display:grid;grid-template-columns:minmax(50px,120px) auto;gap:0px 0px;grid-template-areas:"thumbnail ." "thumbnail ." "thumbnail ." "thumbnail ." "thumbnail ." "thumbnail ." "thumbnail .";border-bottom:1px solid rgba(34,36,38,.15);padding:1em;column-gap:1em}.book-list a{text-decoration:none;color:inherit}.book-list a:hover{color:#000c}.book-list img{grid-area:thumbnail;min-width:120px;width:120px;height:150px}.book-list h2{margin:0}.book-list h3{margin-top:0}.details>h2{padding-bottom:10px;border-bottom:1px solid rgba(34,36,38,.15)}.details h2{margin-bottom:0;font-size:1.3em}.details .header{display:flex;justify-content:space-between;padding-bottom:10px;flex-wrap:wrap}.details .header ul{margin:0}.details .header h2{margin-top:10px}.details .header>div{padding-right:20px}.details .header>div:last-child{padding-right:0;min-width:80px}.details p{padding-top:10px;white-space:pre-wrap}.details img{width:200px;height:250px;display:block;margin:1em 0}form{max-width:700px}form input{width:calc(100% - 4em);margin:5px 0 22px}form textarea{width:calc(100% - 2.4em);margin:5px 0 22px}form input:disabled,form textarea:disabled{background-color:#0000000d}form button.add{margin-left:10px}form fieldset{width:100%;border:none;margin:0;padding:0}form fieldset>input:only-child{width:calc(100% - 4em)}form fieldset>input{width:calc(50% - 4em)}form fieldset input:nth-child(odd){margin-right:.2em}form>button[type=submit]{background-color:#287e2b;color:#fff}form>button[type=submit]:hover{background-color:#096c0d}input[type=date],input[type=time]{min-height:1.2em;-webkit-appearance:none}.error{top:-20px;position:relative;color:#db2828;font-size:14px}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-moz-keyframes spinner{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@-o-keyframes spinner{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner{0%{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}@media only screen and (max-width: 700px){nav{display:flex;border:none;box-shadow:none;gap:.5em 0}nav>a{border:1px solid rgba(34,36,38,.15)}nav>a:first-of-type{border-top-left-radius:.3em;border-bottom-left-radius:.3em;border-right:none}nav>a:last-of-type{border-top-right-radius:.3em;border-bottom-right-radius:.3em;border-left:none;margin-right:2em}nav .actions{margin:0;gap:.5rem;min-width:200px}nav .actions button{margin:0}}@media only screen and (max-width: 600px){nav .actions{justify-content:flex-end}}@media only screen and (max-width: 500px){nav>a{padding:.7em}nav>a:last-of-type{margin-right:0}}@media only screen and (max-width: 460px){h2{font-size:1.2em}[role=doc-subtitle]{font-size:1.1rem}.book-list img{grid-area:thumbnail;min-width:100px;width:100px;height:100px}.book-list .list-item{column-gap:2em;grid-template-columns:1fr 2fr}}@media only screen and (max-width: 360px){.book-list img{grid-area:thumbnail;min-width:80px;width:80px;height:100px}.book-list .list-item{column-gap:1em}} diff --git a/favicon.ico b/favicon.ico deleted file mode 100644 index 997406ad22c29aae95893fb3d666c30258a09537..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 948 zcmV;l155mgP)CBYU7IjCFmI-B}4sMJt3^s9NVg!P0 z6hDQy(L`XWMkB@zOLgN$4KYz;j0zZxq9KKdpZE#5@k0crP^5f9KO};h)ZDQ%ybhht z%t9#h|nu0K(bJ ztIkhEr!*UyrZWQ1k2+YkGqDi8Z<|mIN&$kzpKl{cNP=OQzXHz>vn+c)F)zO|Bou>E z2|-d_=qY#Y+yOu1a}XI?cU}%04)zz%anD(XZC{#~WreV!a$7k2Ug`?&CUEc0EtrkZ zL49MB)h!_K{H(*l_93D5tO0;BUnvYlo+;yss%n^&qjt6fZOa+}+FDO(~2>G z2dx@=JZ?DHP^;b7*Y1as5^uphBsh*s*z&MBd?e@I>-9kU>63PjP&^#5YTOb&x^6Cf z?674rmSHB5Fk!{Gv7rv!?qX#ei_L(XtwVqLX3L}$MI|kJ*w(rhx~tc&L&xP#?cQow zX_|gx$wMr3pRZIIr_;;O|8fAjd;1`nOeu5K(pCu7>^3E&D2OBBq?sYa(%S?GwG&_0-s%_v$L@R!5H_fc)lOb9ZoOO#p`Nn`KU z3LTTBtjwo`7(HA6 z7gmO$yTR!5L>Bsg!X8616{JUngg_@&85%>W=mChTR;x4`P=?PJ~oPuy5 zU-L`C@_!34D21{fD~Y8NVnR3t;aqZI3fIhmgmx}$oc-dKDC6Ap$Gy>a!`A*x2L1v0 WcZ@i?LyX}70000{function re(e){return"function"==typeof e}function Bo(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const _s=Bo(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Er(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class tt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(re(r))try{r()}catch(i){n=i instanceof _s?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Ah(i)}catch(s){n=n??[],s instanceof _s?n=[...n,...s.errors]:n.push(s)}}if(n)throw new _s(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Ah(n);else{if(n instanceof tt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Er(t,n)}remove(n){const{_finalizers:t}=this;t&&Er(t,n),n instanceof tt&&n._removeParent(this)}}tt.EMPTY=(()=>{const e=new tt;return e.closed=!0,e})();const Mh=tt.EMPTY;function Sh(e){return e instanceof tt||e&&"closed"in e&&re(e.remove)&&re(e.add)&&re(e.unsubscribe)}function Ah(e){re(e)?e():e.unsubscribe()}const Jn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Cs={setTimeout(e,n,...t){const{delegate:r}=Cs;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=Cs;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Th(e){Cs.setTimeout(()=>{const{onUnhandledError:n}=Jn;if(!n)throw e;n(e)})}function Xu(){}const vb=Ju("C",void 0,void 0);function Ju(e,n,t){return{kind:e,value:n,error:t}}let Kn=null;function ws(e){if(Jn.useDeprecatedSynchronousErrorHandling){const n=!Kn;if(n&&(Kn={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Kn;if(Kn=null,t)throw r}}else e()}class Ku extends tt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Sh(n)&&n.add(this)):this.destination=bb}static create(n,t,r){return new $o(n,t,r)}next(n){this.isStopped?tc(function Db(e){return Ju("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?tc(function yb(e){return Ju("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?tc(vb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Cb=Function.prototype.bind;function ec(e,n){return Cb.call(e,n)}class wb{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Es(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Es(r)}else Es(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Es(t)}}}class $o extends Ku{constructor(n,t,r){let o;if(super(),re(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&Jn.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&ec(n.next,i),error:n.error&&ec(n.error,i),complete:n.complete&&ec(n.complete,i)}):o=n}this.destination=new wb(o)}}function Es(e){Jn.useDeprecatedSynchronousErrorHandling?function _b(e){Jn.useDeprecatedSynchronousErrorHandling&&Kn&&(Kn.errorThrown=!0,Kn.error=e)}(e):Th(e)}function tc(e,n){const{onStoppedNotification:t}=Jn;t&&Cs.setTimeout(()=>t(e,n))}const bb={closed:!0,next:Xu,error:function Eb(e){throw e},complete:Xu},nc="function"==typeof Symbol&&Symbol.observable||"@@observable";function An(e){return e}function Nh(e){return 0===e.length?An:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let ve=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function Sb(e){return e&&e instanceof Ku||function Mb(e){return e&&re(e.next)&&re(e.error)&&re(e.complete)}(e)&&Sh(e)}(t)?t:new $o(t,r,o);return ws(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Rh(r))((o,i)=>{const s=new $o({next:a=>{try{t(a)}catch(u){i(u),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[nc](){return this}pipe(...t){return Nh(t)(this)}toPromise(t){return new(t=Rh(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Rh(e){var n;return null!==(n=e??Jn.Promise)&&void 0!==n?n:Promise}const Ab=Bo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Et=(()=>{class e extends ve{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new xh(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new Ab}next(t){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Mh:(this.currentObservers=null,i.push(t),new tt(()=>{this.currentObservers=null,Er(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new ve;return t.source=this,t}}return e.create=(n,t)=>new xh(n,t),e})();class xh extends Et{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Mh}}function Oh(e){return re(e?.lift)}function be(e){return n=>{if(Oh(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ye(e,n,t,r,o){return new Tb(e,n,t,r,o)}class Tb extends Ku{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(u){n.error(u)}}:super._next,this._error=o?function(a){try{o(a)}catch(u){n.error(u)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function Y(e,n){return be((t,r)=>{let o=0;t.subscribe(ye(r,i=>{r.next(e.call(n,i,o++))}))})}function Tn(e){return this instanceof Tn?(this.v=e,this):new Tn(e)}function Lh(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function sc(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,u){!function o(i,s,a,u){Promise.resolve(u).then(function(c){i({value:c,done:a})},s)}(a,u,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const Vh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function jh(e){return re(e?.then)}function Bh(e){return re(e[nc])}function $h(e){return Symbol.asyncIterator&&re(e?.[Symbol.asyncIterator])}function Hh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Uh=function Xb(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function zh(e){return re(e?.[Uh])}function Gh(e){return function kh(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,g){i.push([f,h,p,g])>1||a(f,h)})})}function a(f,h){try{!function u(f){f.value instanceof Tn?Promise.resolve(f.value.v).then(c,l):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function c(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Tn(t.read());if(o)return yield Tn(void 0);yield yield Tn(r)}}finally{t.releaseLock()}})}function qh(e){return re(e?.getReader)}function lt(e){if(e instanceof ve)return e;if(null!=e){if(Bh(e))return function Jb(e){return new ve(n=>{const t=e[nc]();if(re(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Vh(e))return function Kb(e){return new ve(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Th)})}(e);if($h(e))return Wh(e);if(zh(e))return function tI(e){return new ve(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(qh(e))return function nI(e){return Wh(Gh(e))}(e)}throw Hh(e)}function Wh(e){return new ve(n=>{(function rI(e,n){var t,r,o,i;return function Fh(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(l){try{c(r.next(l))}catch(d){s(d)}}function u(l){try{c(r.throw(l))}catch(d){s(d)}}function c(l){l.done?i(l.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(l.value).then(a,u)}c((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=Lh(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function ln(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function xe(e,n,t=1/0){return re(n)?xe((r,o)=>Y((i,s)=>n(r,i,o,s))(lt(e(r,o))),t):("number"==typeof n&&(t=n),be((r,o)=>function oI(e,n,t,r,o,i,s,a){const u=[];let c=0,l=0,d=!1;const f=()=>{d&&!u.length&&!c&&n.complete()},h=g=>c{i&&n.next(g),c++;let v=!1;lt(t(g,l++)).subscribe(ye(n,C=>{o?.(C),i?h(C):n.next(C)},()=>{v=!0},void 0,()=>{if(v)try{for(c--;u.length&&cp(C)):p(C)}f()}catch(C){n.error(C)}}))};return e.subscribe(ye(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,t)))}function br(e=1/0){return xe(An,e)}const zt=new ve(e=>e.complete());function ac(e){return e[e.length-1]}function Zh(e){return re(ac(e))?e.pop():void 0}function Ho(e){return function sI(e){return e&&re(e.schedule)}(ac(e))?e.pop():void 0}function Yh(e,n=0){return be((t,r)=>{t.subscribe(ye(r,o=>ln(r,e,()=>r.next(o),n),()=>ln(r,e,()=>r.complete(),n),o=>ln(r,e,()=>r.error(o),n)))})}function Qh(e,n=0){return be((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Xh(e,n){if(!e)throw new Error("Iterable cannot be null");return new ve(t=>{ln(t,n,()=>{const r=e[Symbol.asyncIterator]();ln(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function Me(e,n){return n?function hI(e,n){if(null!=e){if(Bh(e))return function uI(e,n){return lt(e).pipe(Qh(n),Yh(n))}(e,n);if(Vh(e))return function lI(e,n){return new ve(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(jh(e))return function cI(e,n){return lt(e).pipe(Qh(n),Yh(n))}(e,n);if($h(e))return Xh(e,n);if(zh(e))return function dI(e,n){return new ve(t=>{let r;return ln(t,n,()=>{r=e[Uh](),ln(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>re(r?.return)&&r.return()})}(e,n);if(qh(e))return function fI(e,n){return Xh(Gh(e),n)}(e,n)}throw Hh(e)}(e,n):lt(e)}class dt extends Et{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function R(...e){return Me(e,Ho(e))}function Jh(e={}){const{connector:n=(()=>new Et),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,u,c=0,l=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=u=void 0,l=d=!1},p=()=>{const g=s;h(),g?.unsubscribe()};return be((g,v)=>{c++,!d&&!l&&f();const C=u=u??n();v.add(()=>{c--,0===c&&!d&&!l&&(a=uc(p,o))}),C.subscribe(v),!s&&c>0&&(s=new $o({next:m=>C.next(m),error:m=>{d=!0,f(),a=uc(h,t,m),C.error(m)},complete:()=>{l=!0,f(),a=uc(h,r),C.complete()}}),lt(g).subscribe(s))})(i)}}function uc(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new $o({next:()=>{r.unsubscribe(),e()}});return lt(n(...t)).subscribe(r)}function ft(e,n){return be((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(ye(r,u=>{o?.unsubscribe();let c=0;const l=i++;lt(e(u,l)).subscribe(o=ye(r,d=>r.next(n?n(u,d,l,c++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Kh(e,n=An){return e=e??gI,be((t,r)=>{let o,i=!0;t.subscribe(ye(r,s=>{const a=n(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function gI(e,n){return e===n}function ee(e){for(let n in e)if(e[n]===ee)return n;throw Error("Could not find renamed property on target object.")}function bs(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Se(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Se).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function cc(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const mI=ee({__forward_ref__:ee});function oe(e){return e.__forward_ref__=oe,e.toString=function(){return Se(this())},e}function P(e){return lc(e)?e():e}function lc(e){return"function"==typeof e&&e.hasOwnProperty(mI)&&e.__forward_ref__===oe}function dc(e){return e&&!!e.\u0275providers}const ep="https://g.co/ng/security#xss";class _ extends Error{constructor(n,t){super(function Is(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function k(e){return"string"==typeof e?e:null==e?"":String(e)}function fc(e,n){throw new _(-201,!1)}function bt(e,n){null==e&&function x(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function S(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ve(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ms(e){return tp(e,As)||tp(e,np)}function tp(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ss(e){return e&&(e.hasOwnProperty(hc)||e.hasOwnProperty(bI))?e[hc]:null}const As=ee({\u0275prov:ee}),hc=ee({\u0275inj:ee}),np=ee({ngInjectableDef:ee}),bI=ee({ngInjectorDef:ee});var z=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(z||{});let pc;function nt(e){const n=pc;return pc=e,n}function op(e,n,t){const r=Ms(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&z.Optional?null:void 0!==n?n:void fc(Se(e))}const se=globalThis,Uo={},Dc="__NG_DI_FLAG__",Ts="ngTempTokenPath",SI=/\n/gm,sp="__source";let Ir;function Nn(e){const n=Ir;return Ir=e,n}function NI(e,n=z.Default){if(void 0===Ir)throw new _(-203,!1);return null===Ir?op(e,void 0,n):Ir.get(e,n&z.Optional?null:void 0,n)}function M(e,n=z.Default){return(function rp(){return pc}()||NI)(P(e),n)}function E(e,n=z.Default){return M(e,Ns(n))}function Ns(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function _c(e){const n=[];for(let t=0;tn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==lp(h,c,0)||2&r&&c!==f){if(xt(r))return!1;s=!0}}}}else{if(!s&&!xt(r)&&!xt(u))return!1;if(s&&xt(u))continue;s=!1,r=u|1&r}}return xt(r)||s}function xt(e){return 0==(1&e)}function LI(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!xt(s)&&(n+=vp(i,o),o=""),r=s,i=i||!xt(r);t++}return""!==o&&(n+=vp(i,o)),n}function It(e){return dn(()=>{const n=Dp(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Rt.Emulated,styles:e.styles||Q,_:null,schemas:e.schemas||null,tView:null,id:""};_p(t);const r=e.dependencies;return t.directiveDefs=Os(r,!1),t.pipeDefs=Os(r,!0),t.id=function QI(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function qI(e){return W(e)||Oe(e)}function WI(e){return null!==e}function ze(e){return dn(()=>({type:e.type,bootstrap:e.bootstrap||Q,declarations:e.declarations||Q,imports:e.imports||Q,exports:e.exports||Q,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yp(e,n){if(null==e)return Gt;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}function O(e){return dn(()=>{const n=Dp(e);return _p(n),n})}function rt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function W(e){return e[xs]||null}function Oe(e){return e[Cc]||null}function Ge(e){return e[wc]||null}function pt(e,n){const t=e[up]||null;if(!t&&!0===n)throw new Error(`Type ${Se(e)} does not have '\u0275mod' property.`);return t}function Dp(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Gt,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Q,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yp(e.inputs,n),outputs:yp(e.outputs)}}function _p(e){e.features?.forEach(n=>n(e))}function Os(e,n){if(!e)return null;const t=n?Ge:qI;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(WI)}const ge=0,w=1,j=2,fe=3,Ot=4,Wo=5,je=6,Sr=7,De=8,Rn=9,Ar=10,L=11,Zo=12,Cp=13,Tr=14,_e=15,Yo=16,Nr=17,qt=18,Qo=19,wp=20,xn=21,hn=22,Xo=23,Jo=24,G=25,bc=1,Ep=2,Wt=7,Rr=9,Fe=11;function ot(e){return Array.isArray(e)&&"object"==typeof e[bc]}function qe(e){return Array.isArray(e)&&!0===e[bc]}function Ic(e){return 0!=(4&e.flags)}function tr(e){return e.componentOffset>-1}function Ps(e){return 1==(1&e.flags)}function Ft(e){return!!e.template}function Mc(e){return 0!=(512&e[j])}function nr(e,n){return e.hasOwnProperty(fn)?e[fn]:null}let Pe=null,ks=!1;function Mt(e){const n=Pe;return Pe=e,n}const Mp={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Ap(e){if(!ei(e)||e.dirty){if(!e.producerMustRecompute(e)&&!Rp(e))return void(e.dirty=!1);e.producerRecomputeValue(e),e.dirty=!1}}function Np(e){e.dirty=!0,function Tp(e){if(void 0===e.liveConsumerNode)return;const n=ks;ks=!0;try{for(const t of e.liveConsumerNode)t.dirty||Np(t)}finally{ks=n}}(e),e.consumerMarkedDirty?.(e)}function Ac(e){return e&&(e.nextProducerIndex=0),Mt(e)}function Tc(e,n){if(Mt(n),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(ei(e))for(let t=e.nextProducerIndex;te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Rp(e){xr(e);for(let n=0;n0}function xr(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Pp=null;function Vp(e){const n=Mt(null);try{return e()}finally{Mt(n)}}const jp=()=>{},cM=(()=>({...Mp,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule(e.ref)},hasRun:!1,cleanupFn:jp}))();class lM{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function gt(){return Bp}function Bp(e){return e.type.prototype.ngOnChanges&&(e.setInput=fM),dM}function dM(){const e=Hp(this),n=e?.current;if(n){const t=e.previous;if(t===Gt)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function fM(e,n,t,r){const o=this.declaredInputs[t],i=Hp(e)||function hM(e,n){return e[$p]=n}(e,{previous:Gt,current:null}),s=i.current||(i.current={}),a=i.previous,u=a[o];s[o]=new lM(u&&u.currentValue,n,a===Gt),e[r]=n}gt.ngInherit=!0;const $p="__ngSimpleChanges__";function Hp(e){return e[$p]||null}const Zt=function(e,n,t){};function ae(e){for(;Array.isArray(e);)e=e[ge];return e}function Vs(e,n){return ae(n[e])}function it(e,n){return ae(n[e.index])}function Gp(e,n){return e.data[n]}function Or(e,n){return e[n]}function mt(e,n){const t=n[e];return ot(t)?t:t[ge]}function Fn(e,n){return null==n?null:e[n]}function qp(e){e[Nr]=0}function DM(e){1024&e[j]||(e[j]|=1024,Zp(e,1))}function Wp(e){1024&e[j]&&(e[j]&=-1025,Zp(e,-1))}function Zp(e,n){let t=e[fe];if(null===t)return;t[Wo]+=n;let r=t;for(t=t[fe];null!==t&&(1===n&&1===r[Wo]||-1===n&&0===r[Wo]);)t[Wo]+=n,r=t,t=t[fe]}const F={lFrame:ig(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Xp(){return F.bindingsEnabled}function D(){return F.lFrame.lView}function Z(){return F.lFrame.tView}function Pr(e){return F.lFrame.contextLView=e,e[De]}function kr(e){return F.lFrame.contextLView=null,e}function ke(){let e=Jp();for(;null!==e&&64===e.type;)e=e.parent;return e}function Jp(){return F.lFrame.currentTNode}function Yt(e,n){const t=F.lFrame;t.currentTNode=e,t.isParent=n}function Fc(){return F.lFrame.isParent}function We(){const e=F.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function Lr(){return F.lFrame.bindingIndex++}function RM(e,n){const t=F.lFrame;t.bindingIndex=t.bindingRootIndex=e,kc(n)}function kc(e){F.lFrame.currentDirectiveIndex=e}function ng(){return F.lFrame.currentQueryIndex}function Vc(e){F.lFrame.currentQueryIndex=e}function OM(e){const n=e[w];return 2===n.type?n.declTNode:1===n.type?e[je]:null}function rg(e,n,t){if(t&z.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&z.Host||(o=OM(i),null===o||(i=i[Tr],10&o.type))););if(null===o)return!1;n=o,e=i}const r=F.lFrame=og();return r.currentTNode=n,r.lView=e,!0}function jc(e){const n=og(),t=e[w];F.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function og(){const e=F.lFrame,n=null===e?null:e.child;return null===n?ig(e):n}function ig(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function sg(){const e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ag=sg;function Bc(){const e=sg();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ze(){return F.lFrame.selectedIndex}function rr(e){F.lFrame.selectedIndex=e}function he(){const e=F.lFrame;return Gp(e.tView,e.selectedIndex)}let cg=!0;function js(){return cg}function Pn(e){cg=e}function Bs(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[u]<0&&(e[Nr]+=65536),(a>13>16&&(3&e[j])===n&&(e[j]+=8192,dg(a,i)):dg(a,i)}const Vr=-1;class ni{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Uc(e){return e!==Vr}function ri(e){return 32767&e}function oi(e,n){let t=function GM(e){return e>>16}(e),r=n;for(;t>0;)r=r[Tr],t--;return r}let zc=!0;function Us(e){const n=zc;return zc=e,n}const fg=255,hg=5;let qM=0;const Qt={};function zs(e,n){const t=pg(e,n);if(-1!==t)return t;const r=n[w];r.firstCreatePass&&(e.injectorIndex=n.length,Gc(r.data,e),Gc(n,null),Gc(r.blueprint,null));const o=Gs(e,n),i=e.injectorIndex;if(Uc(o)){const s=ri(o),a=oi(o,n),u=a[w].data;for(let c=0;c<8;c++)n[i+c]=a[s+c]|u[s+c]}return n[i+8]=o,i}function Gc(e,n){e.push(0,0,0,0,0,0,0,0,n)}function pg(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Gs(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=Cg(o),null===r)return Vr;if(t++,o=o[Tr],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Vr}function qc(e,n,t){!function WM(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Go)&&(r=t[Go]),null==r&&(r=t[Go]=qM++);const o=r&fg;n.data[e+(o>>hg)]|=1<=0?n&fg:JM:n}(t);if("function"==typeof i){if(!rg(n,e,r))return r&z.Host?gg(o,0,r):mg(n,t,r,o);try{let s;if(s=i(r),null!=s||r&z.Optional)return s;fc()}finally{ag()}}else if("number"==typeof i){let s=null,a=pg(e,n),u=Vr,c=r&z.Host?n[_e][je]:null;for((-1===a||r&z.SkipSelf)&&(u=-1===a?Gs(e,n):n[a+8],u!==Vr&&_g(r,!1)?(s=n[w],a=ri(u),n=oi(u,n)):a=-1);-1!==a;){const l=n[w];if(Dg(i,a,l.data)){const d=YM(a,n,t,s,r,c);if(d!==Qt)return d}u=n[a+8],u!==Vr&&_g(r,n[w].data[a+8]===c)&&Dg(i,a,n)?(s=l,a=ri(u),n=oi(u,n)):a=-1}}return o}function YM(e,n,t,r,o,i){const s=n[w],a=s.data[e+8],l=qs(a,s,t,null==r?tr(a)&&zc:r!=s&&0!=(3&a.type),o&z.Host&&i===a);return null!==l?or(n,s,l,a):Qt}function qs(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,u=e.directiveStart,l=i>>20,f=o?a+l:e.directiveEnd;for(let h=r?a:a+l;h=u&&p.type===t)return h}if(o){const h=s[u];if(h&&Ft(h)&&h.type===t)return u}return null}function or(e,n,t,r){let o=e[t];const i=n.data;if(function HM(e){return e instanceof ni}(o)){const s=o;s.resolving&&function vI(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new _(-200,`Circular dependency in DI detected for ${e}${t}`)}(function K(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():k(e)}(i[t]));const a=Us(s.canSeeViewProviders);s.resolving=!0;const c=s.injectImpl?nt(s.injectImpl):null;rg(e,r,z.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function BM(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=Bp(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==c&&nt(c),Us(a),s.resolving=!1,ag()}}return o}function Dg(e,n,t){return!!(t[n+(e>>hg)]&1<{const n=e.prototype.constructor,t=n[fn]||Wc(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[fn]||Wc(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Wc(e){return lc(e)?()=>{const n=Wc(P(e));return n&&n()}:nr(e)}function Cg(e){const n=e[w],t=n.type;return 2===t?n.declTNode:1===t?e[je]:null}const Br="__parameters__";function Hr(e,n,t){return dn(()=>{const r=function Zc(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,c,l){const d=u.hasOwnProperty(Br)?u[Br]:Object.defineProperty(u,Br,{value:[]})[Br];for(;d.length<=l;)d.push(null);return(d[l]=d[l]||[]).push(s),u}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function zr(e,n){e.forEach(t=>Array.isArray(t)?zr(t,n):n(t))}function Eg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Zs(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function vt(e,n,t){let r=Gr(e,n);return r>=0?e[1|r]=t:(r=~r,function sS(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Yc(e,n){const t=Gr(e,n);if(t>=0)return e[1|t]}function Gr(e,n){return function bg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<0&&(e[t-1][Ot]=r[Ot]);const i=Zs(e,Fe+n);!function US(e,n){fi(e,n,n[L],2,null,null),n[ge]=null,n[je]=null}(r[w],r);const s=i[qt];null!==s&&s.detachView(i[w]),r[fe]=null,r[Ot]=null,r[j]&=-129}return r}function sl(e,n){if(!(256&n[j])){const t=n[L];n[Xo]&&xp(n[Xo]),n[Jo]&&xp(n[Jo]),t.destroyNode&&fi(e,n,t,3,null,null),function qS(e){let n=e[Zo];if(!n)return al(e[w],e);for(;n;){let t=null;if(ot(n))t=n[Zo];else{const r=n[Fe];r&&(t=r)}if(!t){for(;n&&!n[Ot]&&n!==e;)ot(n)&&al(n[w],n),n=n[fe];null===n&&(n=e),ot(n)&&al(n[w],n),t=n&&n[Ot]}n=t}}(n)}}function al(e,n){if(!(256&n[j])){n[j]&=-129,n[j]|=256,function QS(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[Sr]=null);const o=n[xn];if(null!==o){n[xn]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Rt.None||i===Rt.Emulated)return null}return it(r,t)}}(e,n.parent,t)}function ir(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Qg(e,n,t){e.appendChild(n,t)}function Xg(e,n,t,r,o){null!==r?ir(e,n,t,r,o):Qg(e,n,t)}function aa(e,n){return e.parentNode(n)}let cl,hl,da,em=function Kg(e,n,t){return 40&e.type?it(e,t):null};function ua(e,n,t,r){const o=ul(e,r,n),i=n[L],a=function Jg(e,n,t){return em(e,n,t)}(r.parent||n[je],r,n);if(null!=o)if(Array.isArray(t))for(let u=0;ue,createScript:e=>e,createScriptURL:e=>e})}catch{}return da}()?.createScriptURL(e)||e}class lm{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ep})`}}function Ln(e){return e instanceof lm?e.changingThisBreaksApplicationSecurity:e}function hi(e,n){const t=function h0(e){return e instanceof lm&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${ep})`)}return t===n}const v0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Xr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Xr||{});function ha(e){const n=gi();return n?n.sanitize(Xr.URL,e)||"":hi(e,"URL")?Ln(e):function gl(e){return(e=String(e)).match(v0)?e:"unsafe:"+e}(k(e))}function vm(e){const n=gi();if(n)return cm(n.sanitize(Xr.RESOURCE_URL,e)||"");if(hi(e,"ResourceURL"))return cm(Ln(e));throw new _(904,!1)}function gi(){const e=D();return e&&e[Ar].sanitizer}class I{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=S({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const mi=new I("ENVIRONMENT_INITIALIZER"),Dm=new I("INJECTOR",-1),_m=new I("INJECTOR_DEF_TYPES");class Dl{get(n,t=Uo){if(t===Uo){const r=new Error(`NullInjectorError: No provider for ${Se(n)}!`);throw r.name="NullInjectorError",r}return t}}function N0(...e){return{\u0275providers:Cm(0,e),\u0275fromNgModule:!0}}function Cm(e,...n){const t=[],r=new Set;let o;const i=s=>{t.push(s)};return zr(n,s=>{const a=s;pa(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&wm(o,i),t}function wm(e,n){for(let t=0;t{n(i,r)})}}function pa(e,n,t,r){if(!(e=P(e)))return!1;let o=null,i=Ss(e);const s=!i&&W(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const u=e.ngModule;if(i=Ss(u),!i)return!1;o=u}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const u="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of u)pa(c,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let c;r.add(o);try{zr(i.imports,l=>{pa(l,n,t,r)&&(c||=[],c.push(l))})}finally{}void 0!==c&&wm(c,n)}if(!a){const c=nr(o)||(()=>new o);n({provide:o,useFactory:c,deps:Q},o),n({provide:_m,useValue:o,multi:!0},o),n({provide:mi,useValue:()=>M(o),multi:!0},o)}const u=i.providers;if(null!=u&&!a){const c=e;Cl(u,l=>{n(l,c)})}}}return o!==e&&void 0!==e.providers}function Cl(e,n){for(let t of e)dc(t)&&(t=t.\u0275providers),Array.isArray(t)?Cl(t,n):n(t)}const R0=ee({provide:String,useValue:ee});function wl(e){return null!==e&&"object"==typeof e&&R0 in e}function sr(e){return"function"==typeof e}const El=new I("Set Injector scope."),ga={},O0={};let bl;function ma(){return void 0===bl&&(bl=new Dl),bl}class yt{}class va extends yt{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ml(n,s=>this.processProvider(s)),this.records.set(Dm,Jr(void 0,this)),o.has("environment")&&this.records.set(yt,Jr(void 0,this));const i=this.records.get(El);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(_m.multi,Q,z.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const t of n)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=Nn(this),r=nt(void 0);try{return n()}finally{Nn(t),nt(r)}}get(n,t=Uo,r=z.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(cp))return n[cp](this);r=Ns(r);const i=Nn(this),s=nt(void 0);try{if(!(r&z.SkipSelf)){let u=this.records.get(n);if(void 0===u){const c=function V0(e){return"function"==typeof e||"object"==typeof e&&e instanceof I}(n)&&Ms(n);u=c&&this.injectableDefInScope(c)?Jr(Il(n),ga):null,this.records.set(n,u)}if(null!=u)return this.hydrate(n,u)}return(r&z.Self?ma():this.parent).get(n,t=r&z.Optional&&t===Uo?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Ts]=a[Ts]||[]).unshift(Se(n)),i)throw a;return function xI(e,n,t,r){const o=e[Ts];throw n[sp]&&o.unshift(n[sp]),e.message=function OI(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Se(n);if(Array.isArray(n))o=n.map(Se).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Se(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(SI,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[Ts]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{nt(s),Nn(i)}}resolveInjectorInitializers(){const n=Nn(this),t=nt(void 0);try{const o=this.get(mi.multi,Q,z.Self);for(const i of o)i()}finally{Nn(n),nt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Se(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new _(205,!1)}processProvider(n){let t=sr(n=P(n))?n:P(n&&n.provide);const r=function P0(e){return wl(e)?Jr(void 0,e.useValue):Jr(Im(e),ga)}(n);if(sr(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=Jr(void 0,ga,!0),o.factory=()=>_c(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===ga&&(t.value=O0,t.value=t.factory()),"object"==typeof t.value&&t.value&&function L0(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=P(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function Il(e){const n=Ms(e),t=null!==n?n.factory:nr(e);if(null!==t)return t;if(e instanceof I)throw new _(204,!1);if(e instanceof Function)return function F0(e){const n=e.length;if(n>0)throw function ai(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new _(204,!1)}function Im(e,n,t){let r;if(sr(e)){const o=P(e);return nr(o)||Il(o)}if(wl(e))r=()=>P(e.useValue);else if(function bm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(..._c(e.deps||[]));else if(function Em(e){return!(!e||!e.useExisting)}(e))r=()=>M(P(e.useExisting));else{const o=P(e&&(e.useClass||e.provide));if(!function k0(e){return!!e.deps}(e))return nr(o)||Il(o);r=()=>new o(..._c(e.deps))}return r}function Jr(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Ml(e,n){for(const t of e)Array.isArray(t)?Ml(t,n):t&&dc(t)?Ml(t.\u0275providers,n):n(t)}const ya=new I("AppId",{providedIn:"root",factory:()=>j0}),j0="ng",Mm=new I("Platform Initializer"),ar=new I("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Sm=new I("CSP nonce",{providedIn:"root",factory:()=>function Qr(){if(void 0!==hl)return hl;if(typeof document<"u")return document;throw new _(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Am=(e,n,t)=>null;function Fl(e,n,t=!1){return Am(e,n,t)}class Y0{}class Rm{}class X0{resolveComponentFactory(n){throw function Q0(e){const n=Error(`No component factory found for ${Se(e)}.`);return n.ngComponent=e,n}(n)}}let ba=(()=>{class e{static#e=this.NULL=new X0}return e})();function J0(){return to(ke(),D())}function to(e,n){return new at(it(e,n))}let at=(()=>{class e{constructor(t){this.nativeElement=t}static#e=this.__NG_ELEMENT_ID__=J0}return e})();function K0(e){return e instanceof at?e.nativeElement:e}class Om{}let Xt=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function eA(){const e=D(),t=mt(ke().index,e);return(ot(t)?t:e)[L]}()}return e})(),tA=(()=>{class e{static#e=this.\u0275prov=S({token:e,providedIn:"root",factory:()=>null})}return e})();class Di{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const nA=new Di("16.2.9"),Ll={};function Lm(e,n=null,t=null,r){const o=Vm(e,n,t,r);return o.resolveInjectorInitializers(),o}function Vm(e,n=null,t=null,r,o=new Set){const i=[t||Q,N0(e)];return r=r||("object"==typeof e?void 0:Se(e)),new va(i,n||ma(),r||null,o)}let Dt=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=Uo;static#t=this.NULL=new Dl;static create(t,r){if(Array.isArray(t))return Lm({name:""},r,t,"");{const o=t.name??"";return Lm({name:o},t.parent,t.providers,o)}}static#n=this.\u0275prov=S({token:e,providedIn:"any",factory:()=>M(Dm)});static#r=this.__NG_ELEMENT_ID__=-1}return e})();function jl(e){return e.ngOriginalError}class vn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&jl(n);for(;t&&jl(t);)t=jl(t);return t||null}}function $l(e){return n=>{setTimeout(e,void 0,n)}}const pe=class cA extends Et{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const u=n;o=u.next?.bind(u),i=u.error?.bind(u),s=u.complete?.bind(u)}this.__isAsync&&(i=$l(i),o&&(o=$l(o)),s&&(s=$l(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof tt&&n.add(a),a}};function Bm(...e){}class ue{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pe(!1),this.onMicrotaskEmpty=new pe(!1),this.onStable=new pe(!1),this.onError=new pe(!1),typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function lA(){const e="function"==typeof se.requestAnimationFrame;let n=se[e?"requestAnimationFrame":"setTimeout"],t=se[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function hA(e){const n=()=>{!function fA(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ul(e),e.isCheckStableRunning=!0,Hl(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ul(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{if(function gA(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(o,i,s,a);try{return $m(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),Hm(e)}},onInvoke:(t,r,o,i,s,a,u)=>{try{return $m(e),t.invoke(o,i,s,a,u)}finally{e.shouldCoalesceRunChangeDetection&&n(),Hm(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ul(e),Hl(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ue.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(ue.isInAngularZone())throw new _(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,dA,Bm,Bm);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const dA={};function Hl(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ul(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function $m(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hm(e){e._nesting--,Hl(e)}class pA{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pe,this.onMicrotaskEmpty=new pe,this.onStable=new pe,this.onError=new pe}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const Um=new I("",{providedIn:"root",factory:zm});function zm(){const e=E(ue);let n=!0;return function pI(...e){const n=Ho(e),t=function aI(e,n){return"number"==typeof ac(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?lt(r[0]):br(t)(Me(r,n)):zt}(new ve(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),new ve(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ue.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(Jh()))}function yn(e){return e instanceof Function?e():e}let zl=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();function _i(e){for(;e;){e[j]|=64;const n=li(e);if(Mc(e)&&!n)return e;e=n}return null}const Ym=new I("",{providedIn:"root",factory:()=>!1});let Ma=null;function Km(e,n){return e[n]??nv()}function ev(e,n){const t=nv();t.producerNode?.length&&(e[n]=Ma,t.lView=e,Ma=tv())}const IA={...Mp,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{_i(e.lView)},lView:null};function tv(){return Object.create(IA)}function nv(){return Ma??=tv(),Ma}const V={};function U(e){rv(Z(),D(),Ze()+e,!1)}function rv(e,n,t,r){if(!r)if(3==(3&n[j])){const i=e.preOrderCheckHooks;null!==i&&$s(n,i,t)}else{const i=e.preOrderHooks;null!==i&&Hs(n,i,0,t)}rr(t)}function y(e,n=z.Default){const t=D();return null===t?M(e,n):vg(ke(),t,P(e),n)}function Sa(e,n,t,r,o,i,s,a,u,c,l){const d=n.blueprint.slice();return d[ge]=o,d[j]=140|r,(null!==c||e&&2048&e[j])&&(d[j]|=2048),qp(d),d[fe]=d[Tr]=e,d[De]=t,d[Ar]=s||e&&e[Ar],d[L]=a||e&&e[L],d[Rn]=u||e&&e[Rn]||null,d[je]=i,d[Qo]=function RS(){return NS++}(),d[hn]=l,d[wp]=c,d[_e]=2==n.type?e[_e]:d,d}function oo(e,n,t,r,o){let i=e.data[n];if(null===i)i=function Gl(e,n,t,r,o){const i=Jp(),s=Fc(),u=e.data[n]=function OA(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return function Fr(){return null!==F.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,t,n,r,o);return null===e.firstChild&&(e.firstChild=u),null!==i&&(s?null==i.child&&null!==u.parent&&(i.child=u):null===i.next&&(i.next=u,u.prev=i)),u}(e,n,t,r,o),function NM(){return F.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=t,i.value=r,i.attrs=o;const s=function ti(){const e=F.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Yt(i,!0),i}function Ci(e,n,t,r){if(0===t)return-1;const o=n.length;for(let i=0;iG&&rv(e,n,G,!1),Zt(a?2:0,o);const c=a?i:null,l=Ac(c);try{null!==c&&(c.dirty=!1),t(r,o)}finally{Tc(c,l)}}finally{a&&null===n[Xo]&&ev(n,Xo),rr(s),Zt(a?3:1,o)}}function ql(e,n,t){if(Ic(n)){const r=Mt(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function uv(e,n,t,r){for(let o in e)if(e.hasOwnProperty(o)){t=null===t?{}:t;const i=e[o];null===r?cv(t,n,o,i):r.hasOwnProperty(o)&&cv(t,n,r[o],i)}return t}function cv(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function Ql(e,n,t,r){if(Xp()){const o=null===r?null:{"":-1},i=function HA(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,Ci(e,t,o.hostVars,V),o)}function Jt(e,n,t,r,o,i){const s=it(e,n);!function Jl(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?k(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[L],s,i,e.value,t,r,o)}function ZA(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,o){const i=typeof Zone>"u"?null:Zone.current,s=function uM(e,n,t){const r=Object.create(cM);t&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=n;const o=s=>{r.cleanupFn=s};return r.ref={notify:()=>Np(r),run:()=>{if(r.dirty=!1,r.hasRun&&!Rp(r))return;r.hasRun=!0;const s=Ac(r);try{r.cleanupFn(),r.cleanupFn=jp,r.fn(o)}finally{Tc(r,s)}},cleanup:()=>r.cleanupFn()},r.ref}(t,c=>{this.all.has(c)&&this.queue.set(c,i)},o);let a;this.all.add(s),s.notify();const u=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(u),{destroy:u}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=S({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ta(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s0){wv(e,1);const o=t.components;null!==o&&bv(e,o,1)}}function bv(e,n,t){for(let r=0;r-1&&(sa(n,r),Zs(t,r))}this._attachedToViewContainer=!1}sl(this._lView[w],this._lView)}onDestroy(n){!function Yp(e,n){if(256==(256&e[j]))throw new _(911,!1);null===e[xn]&&(e[xn]=[]),e[xn].push(n)}(this._lView,n)}markForCheck(){_i(this._cdRefInjectingView||this._lView)}detach(){this._lView[j]&=-129}reattach(){this._lView[j]|=128}detectChanges(){Na(this._lView[w],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function GS(e,n){fi(e,n,n[L],2,null,null)}(this._lView[w],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=n}}class rT extends Ei{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Na(n[w],n,n[De],!1)}checkNoChanges(){}get context(){return null}}class Iv extends ba{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=W(n);return new bi(t,this.ngModule)}}function Mv(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class iT{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Ns(r);const o=this.injector.get(n,Ll,r);return o!==Ll||t===Ll?o:this.parentInjector.get(n,t,r)}}class bi extends Rm{get inputs(){const n=this.componentDef,t=n.inputTransforms,r=Mv(n.inputs);if(null!==t)for(const o of r)t.hasOwnProperty(o.propName)&&(o.transform=t[o.propName]);return r}get outputs(){return Mv(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function UI(e){return e.map(HI).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof yt?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new iT(n,i):n,a=s.get(Om,null);if(null===a)throw new _(407,!1);const d={rendererFactory:a,sanitizer:s.get(tA,null),effectManager:s.get(Dv,null),afterRenderEventManager:s.get(zl,null)},f=a.createRenderer(null,this.componentDef),h=this.componentDef.selectors[0][0]||"div",p=r?function AA(e,n,t,r){const i=r.get(Ym,!1)||t===Rt.ShadowDom,s=e.selectRootElement(n,i);return function TA(e){av(e)}(s),s}(f,r,this.componentDef.encapsulation,s):ia(f,h,function oT(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(h)),C=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let m=null;null!==p&&(m=Fl(p,s,!0));const b=Yl(0,null,null,1,0,null,null,null,null,null,null),N=Sa(null,b,null,C,null,null,d,f,s,null,m);let H,Re;jc(N);try{const cn=this.componentDef;let wr,Ih=null;cn.findHostDirectiveDefs?(wr=[],Ih=new Map,cn.findHostDirectiveDefs(cn,wr,Ih),wr.push(cn)):wr=[cn];const Rj=function aT(e,n){const t=e[w],r=G;return e[r]=n,oo(t,r,2,"#host",null)}(N,p),xj=function uT(e,n,t,r,o,i,s){const a=o[w];!function cT(e,n,t,r){for(const o of e)n.mergedAttrs=qo(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(Ta(n,n.mergedAttrs,!0),null!==t&&sm(r,t,n))}(r,e,n,s);let u=null;null!==n&&(u=Fl(n,o[Rn]));const c=i.rendererFactory.createRenderer(n,t);let l=16;t.signals?l=4096:t.onPush&&(l=64);const d=Sa(o,sv(t),null,l,o[e.index],e,i,c,null,null,u);return a.firstCreatePass&&Xl(a,e,r.length-1),Aa(o,d),o[e.index]=d}(Rj,p,cn,wr,N,d,f);Re=Gp(b,G),p&&function dT(e,n,t,r){if(r)Ec(e,t,["ng-version",nA.full]);else{const{attrs:o,classes:i}=function zI(e){const n=[],t=[];let r=1,o=2;for(;r0&&im(e,t,i.join(" "))}}(f,cn,p,r),void 0!==t&&function fT(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=qo(o.hostAttrs,t=qo(t,o.hostAttrs))}}(r)}function Ra(e){return e===Gt?{}:e===Q?[]:e}function gT(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function mT(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function vT(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function Rv(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const o=n[r];Array.isArray(o)&&o[2]&&(t[r]=o[2])}e.inputTransforms=t}function xa(e){return!!function nd(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Kt(e,n,t){return e[n]=t}function $e(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Pt(e,n,t,r){const o=D();return $e(o,Lr(),n)&&(Z(),Jt(he(),o,e,n,t,r)),Pt}function Ce(e,n,t,r,o,i,s,a){const u=D(),c=Z(),l=e+G,d=c.firstCreatePass?function HT(e,n,t,r,o,i,s,a,u){const c=n.consts,l=oo(n,e,4,s||null,Fn(c,a));Ql(n,t,l,Fn(c,u)),Bs(n,l);const d=l.tView=Yl(2,l,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c,null);return null!==n.queries&&(n.queries.template(n,l),d.queries=n.queries.embeddedTView(l)),l}(l,c,u,n,t,r,o,i,s):c.data[l];Yt(d,!1);const f=zv(c,u,d,e);js()&&ua(c,u,f,d),Be(f,u),Aa(u,u[l]=hv(f,u,f,d)),Ps(d)&&Wl(c,u,d),null!=s&&Zl(u,d,a)}let zv=function Gv(e,n,t,r){return Pn(!0),n[L].createComment("")};function q(e,n,t){const r=D();return $e(r,Lr(),n)&&function _t(e,n,t,r,o,i,s,a){const u=it(n,t);let l,c=n.inputs;!a&&null!=c&&(l=c[r])?(ed(e,t,l,r,o),tr(n)&&function kA(e,n){const t=mt(n,e);16&t[j]||(t[j]|=64)}(t,n.index)):3&n.type&&(r=function PA(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(u,r,o))}(Z(),he(),r,e,n,r[L],t,!1),q}function ud(e,n,t,r,o){const s=o?"class":"style";ed(e,t,n.inputs[s],s,r)}function A(e,n,t,r){const o=D(),i=Z(),s=G+e,a=o[L],u=i.firstCreatePass?function qT(e,n,t,r,o,i){const s=n.consts,u=oo(n,e,2,r,Fn(s,o));return Ql(n,t,u,Fn(s,i)),null!==u.attrs&&Ta(u,u.attrs,!1),null!==u.mergedAttrs&&Ta(u,u.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,u),u}(s,i,o,n,t,r):i.data[s],c=Wv(i,o,u,a,n,e);o[s]=c;const l=Ps(u);return Yt(u,!0),sm(a,c,u),32!=(32&u.flags)&&js()&&ua(i,o,c,u),0===function CM(){return F.lFrame.elementDepthCount}()&&Be(c,o),function wM(){F.lFrame.elementDepthCount++}(),l&&(Wl(i,o,u),ql(i,u,o)),null!==r&&Zl(o,u),A}function T(){let e=ke();Fc()?function Pc(){F.lFrame.isParent=!1}():(e=e.parent,Yt(e,!1));const n=e;(function bM(e){return F.skipHydrationRootTNode===e})(n)&&function AM(){F.skipHydrationRootTNode=null}(),function EM(){F.lFrame.elementDepthCount--}();const t=Z();return t.firstCreatePass&&(Bs(t,e),Ic(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function UM(e){return 0!=(8&e.flags)}(n)&&ud(t,n,D(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function zM(e){return 0!=(16&e.flags)}(n)&&ud(t,n,D(),n.stylesWithoutHost,!1),T}function He(e,n,t,r){return A(e,n,t,r),T(),He}let Wv=(e,n,t,r,o,i)=>(Pn(!0),ia(r,o,function ug(){return F.lFrame.currentNamespace}()));function go(){return D()}function Ti(e){return!!e&&"function"==typeof e.then}function Qv(e){return!!e&&"function"==typeof e.subscribe}function we(e,n,t,r){const o=D(),i=Z(),s=ke();return function Jv(e,n,t,r,o,i,s){const a=Ps(r),c=e.firstCreatePass&&mv(e),l=n[De],d=gv(n);let f=!0;if(3&r.type||s){const g=it(r,n),v=s?s(g):g,C=d.length,m=s?N=>s(ae(N[r.index])):r.index;let b=null;if(!s&&a&&(b=function JT(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=i,b.__ngLastListenerFn__=i,f=!1;else{i=ey(r,n,l,i,!1);const N=t.listen(v,o,i);d.push(i,N),c&&c.push(o,m,C,C+1)}}else i=ey(r,n,l,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const g=p.length;if(g)for(let v=0;v-1?mt(e.index,n):n);let u=Kv(n,t,r,s),c=i.__ngNextListenerFn__;for(;c;)u=Kv(n,t,c,s)&&u,c=c.__ngNextListenerFn__;return o&&!1===u&&s.preventDefault(),u}}function kt(e=1){return function FM(e){return(F.lFrame.contextLView=function PM(e,n){for(;e>0;)n=n[Tr],e--;return n}(e,F.lFrame.contextLView))[De]}(e)}function La(e,n){return e<<17|n<<2}function Vn(e){return e>>17&32767}function fd(e){return 2|e}function cr(e){return(131068&e)>>2}function hd(e,n){return-131069&e|n<<2}function pd(e){return 1|e}function ly(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?Vn(i):cr(i),u=!1;for(;0!==a&&(!1===u||s);){const l=e[a+1];aN(e[a],n)&&(u=!0,e[a+1]=r?pd(l):fd(l)),a=r?Vn(l):cr(l)}u&&(e[t+1]=r?fd(i):pd(i))}function aN(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&Gr(e,n)>=0}function Ni(e,n){return function Lt(e,n,t,r){const o=D(),i=Z(),s=function gn(e){const n=F.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}(2);i.firstUpdatePass&&function Dy(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[Ze()],s=function yy(e,n){return n>=e.expandoStartIndex}(e,t);(function Ey(e,n){return 0!=(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function mN(e,n,t,r){const o=function Lc(e){const n=F.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Ri(t=gd(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=gd(o,e,n,t,r),null===i){let u=function vN(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==cr(r))return e[Vn(r)]}(e,n,r);void 0!==u&&Array.isArray(u)&&(u=gd(null,e,n,u[1],r),u=Ri(u,n.attrs,r),function yN(e,n,t,r){e[Vn(t?n.classBindings:n.styleBindings)]=r}(e,n,r,u))}else i=function DN(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(c=!0)):l=t,o)if(0!==u){const f=Vn(e[a+1]);e[r+1]=La(f,a),0!==f&&(e[f+1]=hd(e[f+1],r)),e[a+1]=function rN(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=La(a,0),0!==a&&(e[a+1]=hd(e[a+1],r)),a=r;else e[r+1]=La(u,0),0===a?a=r:e[u+1]=hd(e[u+1],r),u=r;c&&(e[r+1]=fd(e[r+1])),ly(e,l,r,!0),ly(e,l,r,!1),function sN(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&Gr(i,n)>=0&&(t[r+1]=pd(t[r+1]))}(n,l,e,r,i),s=La(a,u),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==V&&$e(o,s,n)&&function Cy(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const u=e.data,c=u[a+1],l=function oN(e){return 1==(1&e)}(c)?wy(u,n,t,o,cr(c),s):void 0;Va(l)||(Va(i)||function nN(e){return 2==(2&e)}(c)&&(i=wy(u,null,t,o,a,s)),function t0(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:kn.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=kn.Important),e.setStyle(t,r,o,i))}}(r,s,Vs(Ze(),t),o,i))}(i,i.data[Ze()],o,o[L],e,o[s+1]=function EN(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Se(Ln(e)))),e}(n,t),r,s)}(e,n,null,!0),Ni}function gd(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const u=e[o],c=Array.isArray(u),l=c?u[1]:u,d=null===l;let f=t[o+1];f===V&&(f=d?Q:void 0);let h=d?Yc(f,r):l===r?f:void 0;if(c&&!Va(h)&&(h=Yc(u,r)),Va(h)&&(a=h,s))return a;const p=e[o+1];o=s?Vn(p):cr(p)}if(null!==n){let u=i?n.residualClasses:n.residualStyles;null!=u&&(a=Yc(u,r))}return a}function Va(e){return void 0!==e}function B(e,n=""){const t=D(),r=Z(),o=e+G,i=r.firstCreatePass?oo(r,o,1,n,null):r.data[o],s=by(r,t,i,n,e);t[o]=s,js()&&ua(r,t,s,i),Yt(i,!1)}let by=(e,n,t,r,o)=>(Pn(!0),function oa(e,n){return e.createText(n)}(n[L],r));function jn(e){return nn("",e,""),jn}function nn(e,n,t){const r=D(),o=function so(e,n,t,r){return $e(e,Lr(),t)?n+k(t)+r:V}(r,e,n,t);return o!==V&&function Dn(e,n,t){const r=Vs(n,e);!function Wg(e,n,t){e.setValue(n,t)}(e[L],r,t)}(r,Ze(),o),nn}const yo="en-US";let qy=yo;function yd(e,n,t,r,o){if(e=P(e),Array.isArray(e))for(let i=0;i>20;if(sr(e)||!e.multi){const h=new ni(c,o,y),p=_d(u,n,o?l:l+f,d);-1===p?(qc(zs(a,s),i,u),Dd(i,e,n.length),n.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=_d(u,n,l+f,d),p=_d(u,n,l,l+f),v=p>=0&&t[p];if(o&&!v||!o&&!(h>=0&&t[h])){qc(zs(a,s),i,u);const C=function zR(e,n,t,r,o){const i=new ni(e,t,y);return i.multi=[],i.index=n,i.componentProviders=0,vD(i,o,r&&!t),i}(o?UR:HR,t.length,o,r,c);!o&&v&&(t[p].providerFactory=C),Dd(i,e,n.length,0),n.push(u),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(C),s.push(C)}else Dd(i,e,h>-1?h:p,vD(t[o?p:h],c,!o&&r));!o&&r&&v&&t[p].componentProviders++}}}function Dd(e,n,t,r){const o=sr(n),i=function x0(e){return!!e.useClass}(n);if(o||i){const u=(i?P(n.useClass):n).prototype.ngOnDestroy;if(u){const c=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const l=c.indexOf(t);-1===l?c.push(t,[r,u]):c[l+1].push(r,u)}else c.push(t,u)}}}function vD(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function _d(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function $R(e,n,t){const r=Z();if(r.firstCreatePass){const o=Ft(e);yd(t,r.data,r.blueprint,o,!0),yd(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class dr{}class yD{}class wd extends dr{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Iv(this);const o=pt(n);this._bootstrapComponents=yn(o.bootstrap),this._r3Injector=Vm(n,t,[{provide:dr,useValue:this},{provide:ba,useValue:this.componentFactoryResolver},...r],Se(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class Ed extends yD{constructor(n){super(),this.moduleType=n}create(n){return new wd(this.moduleType,n,[])}}class DD extends dr{constructor(n){super(),this.componentFactoryResolver=new Iv(this),this.instance=null;const t=new va([...n.providers,{provide:dr,useValue:this},{provide:ba,useValue:this.componentFactoryResolver}],n.parent||ma(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function bd(e,n,t=null){return new DD({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let WR=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=Cm(0,t.type),o=r.length>0?bd([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=S({token:e,providedIn:"environment",factory:()=>new e(M(yt))})}return e})();function _D(e){e.getStandaloneInjector=n=>n.get(WR).getOrCreateStandaloneInjector(e)}function Ua(e,n,t){const r=We()+e,o=D();return o[r]===V?Kt(o,r,t?n.call(t):n()):function Ii(e,n){return e[n]}(o,r)}function Md(e,n,t,r){return SD(D(),We(),e,n,t,r)}function SD(e,n,t,r,o,i){const s=n+t;return $e(e,s,o)?Kt(e,s+1,i?r.call(i,o):r(o)):function Li(e,n){const t=e[n];return t===V?void 0:t}(e,s+1)}function Vi(e,n){const t=Z();let r;const o=e+G;t.firstCreatePass?(r=function lx(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=nr(r.type)),a=nt(y);try{const u=Us(!1),c=i();return Us(u),function GT(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,D(),o,c),c}finally{nt(a)}}function ji(e,n,t){const r=e+G,o=D(),i=Or(o,r);return function Bi(e,n){return e[w].data[n].pure}(o,r)?SD(o,We(),n,i.transform,t,i):i.transform(t)}function gx(){return this._results[Symbol.iterator]()}class Sd{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new pe)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Sd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=gx)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const o=function St(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function oS(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r0&&(t[o-1][Ot]=n),r{class e{static#e=this.__NG_ELEMENT_ID__=_x}return e})();const yx=_n,Dx=class extends yx{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function mx(e,n,t,r){const o=n.tView,a=Sa(e,o,t,4096&e[j]?4096:16,null,n,null,null,null,r?.injector??null,r?.hydrationInfo??null);a[Yo]=e[n.index];const c=e[qt];return null!==c&&(a[qt]=c.createEmbeddedView(o)),td(o,a,t),a}(this._declarationLView,this._declarationTContainer,n,{injector:t,hydrationInfo:r});return new Ei(o)}};function _x(){return za(ke(),D())}function za(e,n){return 4&e.type?new Dx(n,e,to(e,n)):null}let jt=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=Mx}return e})();function Mx(){return VD(ke(),D())}const Sx=jt,kD=class extends Sx{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return to(this._hostTNode,this._hostLView)}get injector(){return new Ye(this._hostTNode,this._hostLView)}get parentInjector(){const n=Gs(this._hostTNode,this._hostLView);if(Uc(n)){const t=oi(n,this._hostLView),r=ri(n);return new Ye(t[w].data[r+8],t)}return new Ye(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=LD(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Fe}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,t,r,o,i){const s=n&&!function si(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const g=t||{};a=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef}const u=s?n:new bi(W(n)),c=r||this.parentInjector;if(!i&&null==u.ngModule){const v=(s?c:this.parentInjector).get(yt,null);v&&(i=v)}W(u.componentType??{});const h=u.create(c,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const o=n._lView;if(function yM(e){return qe(e[fe])}(o)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const c=o[fe],l=new kD(c,c[je],c[fe]);l.detach(l.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;return vx(a,o,s,!r),n.attachToViewContainerRef(),Eg(Ad(a),s,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=LD(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=sa(this._lContainer,t);r&&(Zs(Ad(this._lContainer),t),sl(r[w],r))}detach(n){const t=this._adjustIndex(n,-1),r=sa(this._lContainer,t);return r&&null!=Zs(Ad(this._lContainer),t)?new Ei(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function LD(e){return e[8]}function Ad(e){return e[8]||(e[8]=[])}function VD(e,n){let t;const r=n[e.index];return qe(r)?t=r:(t=hv(r,n,null,e),n[e.index]=t,Aa(n,t)),jD(t,n,e,r),new kD(t,e,n)}let jD=function BD(e,n,t,r){if(e[Wt])return;let o;o=8&t.type?ae(r):function Ax(e,n){const t=e[L],r=t.createComment(""),o=it(n,e);return ir(t,aa(t,o),r,function JS(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[Wt]=o};class Td{constructor(n){this.queryList=n,this.matches=null}clone(){return new Td(this.queryList)}setDirty(){this.queryList.setDirty()}}class Nd{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{const c=i[a+1],l=n[-u];for(let d=Fe;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=E(jd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(Ti(i))t.push(i);else if(Qv(i)){const s=new Promise((a,u)=>{i.subscribe({complete:a,error:u})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),d_=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const Cn=new I("LocaleId",{providedIn:"root",factory:()=>E(Cn,z.Optional|z.SkipSelf)||function iO(){return typeof $localize<"u"&&$localize.locale||yo}()});let Wa=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new dt(!1)}add(){this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class uO{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let f_=(()=>{class e{compileModuleSync(t){return new Ed(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=yn(pt(t).declarations).reduce((s,a)=>{const u=W(a);return u&&s.push(new bi(u)),s},[]);return new uO(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const m_=new I(""),Ya=new I("");let Gd,Ud=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gd||(function AO(e){Gd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ue.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static#e=this.\u0275fac=function(r){return new(r||e)(M(ue),M(zd),M(Ya))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),zd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Gd?.findTestabilityInTree(this,t,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Bn=null;const v_=new I("AllowMultipleToken"),qd=new I("PlatformDestroyListeners"),Wd=new I("appBootstrapListener");class D_{constructor(n,t){this.name=n,this.token=t}}function C_(e,n,t=[]){const r=`Platform: ${n}`,o=new I(r);return(i=[])=>{let s=Zd();if(!s||s.injector.get(v_,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function RO(e){if(Bn&&!Bn.get(v_,!1))throw new _(400,!1);(function y_(){!function rM(e){Pp=e}(()=>{throw new _(600,!1)})})(),Bn=e;const n=e.get(E_);(function __(e){e.get(Mm,null)?.forEach(t=>t())})(e)}(function w_(e=[],n){return Dt.create({name:n,providers:[{provide:El,useValue:"platform"},{provide:qd,useValue:new Set([()=>Bn=null])},...e]})}(a,r))}return function OO(e){const n=Zd();if(!n)throw new _(401,!1);return n}()}}function Zd(){return Bn?.get(E_)??null}let E_=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function FO(e="zone.js",n){return"noop"===e?new pA:"zone.js"===e?new ue(n):e}(r?.ngZone,function b_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function qR(e,n,t){return new wd(e,n,t)}(t.moduleType,this.injector,function T_(e){return[{provide:ue,useFactory:e},{provide:mi,multi:!0,useFactory:()=>{const n=E(kO,{optional:!0});return()=>n.initialize()}},{provide:A_,useFactory:PO},{provide:Um,useFactory:zm}]}(()=>o)),s=i.injector.get(vn,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:u=>{s.handleError(u)}});i.onDestroy(()=>{Qa(this._modules,i),a.unsubscribe()})}),function I_(e,n,t){try{const r=t();return Ti(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Bd);return a.runInitializers(),a.donePromise.then(()=>(function Wy(e){bt(e,"Expected localeId to be defined"),"string"==typeof e&&(qy=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(Cn,yo)||yo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=M_({},r);return function TO(e,n,t){const r=new Ed(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(Co);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new _(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new _(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(qd,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)(M(Dt))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function M_(e,n){return Array.isArray(n)?n.reduce(M_,e):{...e,...n}}let Co=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=E(A_),this.zoneIsStable=E(Um),this.componentTypes=[],this.components=[],this.isStable=E(Wa).hasPendingTasks.pipe(ft(t=>t?R(!1):this.zoneIsStable),Kh(),Jh()),this._injector=E(yt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof Rm;if(!this._injector.get(Bd).done)throw!o&&function Mr(e){const n=W(e)||Oe(e)||Ge(e);return null!==n&&n.standalone}(t),new _(405,!1);let s;s=o?t:this._injector.get(ba).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function NO(e){return e.isBoundToModule}(s)?void 0:this._injector.get(dr),c=s.create(Dt.NULL,[],r||s.selector,a),l=c.location.nativeElement,d=c.injector.get(m_,null);return d?.registerApplication(l),c.onDestroy(()=>{this.detachView(c.hostView),Qa(this.components,c),d?.unregisterApplication(l)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new _(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Qa(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Wd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Qa(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new _(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Qa(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const A_=new I("",{providedIn:"root",factory:()=>E(vn).handleError.bind(void 0)});function PO(){const e=E(ue),n=E(vn);return t=>e.runOutsideAngular(()=>n.handleError(t))}let kO=(()=>{class e{constructor(){this.zone=E(ue),this.applicationRef=E(Co)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();let Xa=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=VO}return e})();function VO(e){return function jO(e,n,t){if(tr(e)&&!t){const r=mt(e.index,n);return new Ei(r,r)}return 47&e.type?new Ei(n[_e],n):null}(ke(),D(),16==(16&e))}class O_{constructor(){}supports(n){return xa(n)}create(n){return new GO(n)}}const zO=(e,n)=>n;class GO{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||zO}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new qO(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new F_),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new F_),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class qO{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class WO{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class F_{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new WO,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function P_(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{class e{static#e=this.\u0275prov=S({token:e,providedIn:"root",factory:L_});constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||L_()),deps:[[e,new Xs,new Qs]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new _(901,!1)}}return e})();const JO=C_(null,"core",[]);let KO=(()=>{class e{constructor(t){}static#e=this.\u0275fac=function(r){return new(r||e)(M(Co))};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({})}return e})();function wo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let ef=null;function $n(){return ef}class hF{}const Ct=new I("DocumentToken");let tf=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return E(gF)},providedIn:"platform"})}return e})();const pF=new I("Location Initialized");let gF=(()=>{class e extends tf{constructor(){super(),this._doc=E(Ct),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return $n().getBaseHref(this._doc)}onPopState(t){const r=$n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=$n().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return new e},providedIn:"platform"})}return e})();function nf(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function W_(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function wn(e){return e&&"?"!==e[0]?"?"+e:e}let hr=(()=>{class e{historyGo(t){throw new Error("Not implemented")}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return E(Y_)},providedIn:"root"})}return e})();const Z_=new I("appBaseHref");let Y_=(()=>{class e extends hr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??E(Ct).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return nf(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+wn(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+wn(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+wn(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(M(tf),M(Z_,8))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),mF=(()=>{class e extends hr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=nf(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+wn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+wn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static#e=this.\u0275fac=function(r){return new(r||e)(M(tf),M(Z_,8))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),rf=(()=>{class e{constructor(t){this._subject=new pe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function DF(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(W_(Q_(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+wn(r))}normalize(t){return e.stripTrailingSlash(function yF(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Q_(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+wn(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+wn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}static#e=this.normalizeQueryParams=wn;static#t=this.joinWithSlash=nf;static#n=this.stripTrailingSlash=W_;static#r=this.\u0275fac=function(r){return new(r||e)(M(hr))};static#o=this.\u0275prov=S({token:e,factory:function(){return function vF(){return new rf(M(hr))}()},providedIn:"root"})}return e})();function Q_(e){return e.replace(/\/index.html$/,"")}function iC(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}class iP{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pr=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new iP(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),uC(a,o)}});for(let o=0,i=r.length;o{uC(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(y(jt),y(_n),y(eu))};static#t=this.\u0275dir=O({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return e})();function uC(e,n){e.context.$implicit=n.item}let gr=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new sP,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){cC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){cC("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static#e=this.\u0275fac=function(r){return new(r||e)(y(jt),y(_n))};static#t=this.\u0275dir=O({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return e})();class sP{constructor(){this.$implicit=null,this.ngIf=null}}function cC(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Se(n)}'.`)}class cP{createSubscription(n,t){return Vp(()=>n.subscribe({next:t,error:r=>{throw r}}))}dispose(n){Vp(()=>n.unsubscribe())}}class lP{createSubscription(n,t){return n.then(t,r=>{throw r})}dispose(n){}}const dP=new lP,fP=new cP;let qi=(()=>{class e{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if(Ti(t))return dP;if(Qv(t))return fP;throw function $t(e,n){return new _(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}static#e=this.\u0275fac=function(r){return new(r||e)(y(Xa,16))};static#t=this.\u0275pipe=rt({name:"async",type:e,pure:!1,standalone:!0})}return e})(),_f=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({})}return e})();function hC(e){return"server"===e}let OP=(()=>{class e{static#e=this.\u0275prov=S({token:e,providedIn:"root",factory:()=>new FP(M(Ct),window)})}return e})();class FP{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function PP(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.supportsScrolling()&&(this.window.history.scrollRestoration=n)}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class pC{}class o1 extends hF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ef extends o1{static makeCurrent(){!function fF(e){ef||(ef=e)}(new Ef)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function i1(){return Zi=Zi||document.querySelector("base"),Zi?Zi.getAttribute("href"):null}();return null==t?null:function s1(e){pu=pu||document.createElement("a"),pu.setAttribute("href",e);const n=pu.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){Zi=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return iC(document.cookie,n)}}let pu,Zi=null,u1=(()=>{class e{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const bf=new I("EventManagerPlugins");let DC=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new _(5101,!1);return this._eventNameToPlugin.set(t,r),r}static#e=this.\u0275fac=function(r){return new(r||e)(M(bf),M(ue))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class _C{constructor(n){this._doc=n}}const If="ng-app-id";let CC=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=hC(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${If}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(If),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(If,this.appId),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r);t.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static#e=this.\u0275fac=function(r){return new(r||e)(M(Ct),M(ya),M(Sm,8),M(ar))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const Mf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Sf=/%COMP%/g,f1=new I("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function EC(e,n){return n.map(t=>t.replace(Sf,e))}let bC=(()=>{class e{constructor(t,r,o,i,s,a,u,c=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=u,this.nonce=c,this.rendererByCompId=new Map,this.platformIsServer=hC(a),this.defaultRenderer=new Af(t,s,u,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Rt.ShadowDom&&(r={...r,encapsulation:Rt.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof MC?o.applyToHost(t):o instanceof Tf&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,u=this.eventManager,c=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case Rt.Emulated:i=new MC(u,c,r,this.appId,l,s,a,d);break;case Rt.ShadowDom:return new m1(u,c,t,r,s,a,this.nonce,d);default:i=new Tf(u,c,r,l,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(r){return new(r||e)(M(DC),M(CC),M(ya),M(f1),M(Ct),M(ar),M(ue),M(Sm))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();class Af{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(Mf[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(IC(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(IC(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new _(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=Mf[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=Mf[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(kn.DashCase|kn.Important)?n.style.setProperty(t,r,o&kn.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&kn.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=$n().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function IC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class m1 extends Af{constructor(n,t,r,o,i,s,a,u){super(n,i,s,u),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const c=EC(o.id,o.styles);for(const l of c){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Tf extends Af{constructor(n,t,r,o,i,s,a,u){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=u?EC(u,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class MC extends Tf{constructor(n,t,r,o,i,s,a,u){const c=o+"-"+r.id;super(n,t,r,i,s,a,u,c),this.contentAttr=function h1(e){return"_ngcontent-%COMP%".replace(Sf,e)}(c),this.hostAttr=function p1(e){return"_nghost-%COMP%".replace(Sf,e)}(c)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let v1=(()=>{class e extends _C{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static#e=this.\u0275fac=function(r){return new(r||e)(M(Ct))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const SC=["alt","control","meta","shift"],y1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},D1={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let _1=(()=>{class e extends _C{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>$n().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),SC.forEach(c=>{const l=r.indexOf(c);l>-1&&(r.splice(l,1),s+=c+".")}),s+=i,0!=r.length||0===i.length)return null;const u={};return u.domEventName=o,u.fullKey=s,u}static matchEventFullKeyCode(t,r){let o=y1[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),SC.forEach(s=>{s!==o&&(0,D1[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}static#e=this.\u0275fac=function(r){return new(r||e)(M(Ct))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const b1=C_(JO,"browser",[{provide:ar,useValue:"browser"},{provide:Mm,useValue:function C1(){Ef.makeCurrent()},multi:!0},{provide:Ct,useFactory:function E1(){return function a0(e){hl=e}(document),document},deps:[]}]),I1=new I(""),NC=[{provide:Ya,useClass:class a1{addToWindow(n){se.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new _(5103,!1);return i},se.getAllAngularTestabilities=()=>n.getAllTestabilities(),se.getAllAngularRootElements=()=>n.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(r=>{const o=se.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(u=>{u.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?$n().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:m_,useClass:Ud,deps:[ue,zd,Ya]},{provide:Ud,useClass:Ud,deps:[ue,zd,Ya]}],RC=[{provide:El,useValue:"root"},{provide:vn,useFactory:function w1(){return new vn},deps:[]},{provide:bf,useClass:v1,multi:!0,deps:[Ct,ue,ar]},{provide:bf,useClass:_1,multi:!0,deps:[Ct]},bC,CC,DC,{provide:Om,useExisting:bC},{provide:pC,useClass:u1,deps:[]},[]];let M1=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ya,useValue:t.appId}]}}static#e=this.\u0275fac=function(r){return new(r||e)(M(I1,12))};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({providers:[...RC,...NC],imports:[_f,KO]})}return e})(),xC=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static#e=this.\u0275fac=function(r){return new(r||e)(M(Ct))};static#t=this.\u0275prov=S({token:e,factory:function(r){let o=null;return o=r?new r:function A1(){return new xC(M(Ct))}(),o},providedIn:"root"})}return e})();function bo(e,n){return re(n)?xe(e,n,1):xe(e,1)}function rn(e,n){return be((t,r)=>{let o=0;t.subscribe(ye(r,i=>e.call(n,i,o++)&&r.next(i)))})}function Yi(e){return be((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}typeof window<"u"&&window;class gu{}class mu{}class on{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),i=o.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof on?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new on;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof on?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class O1{encodeKey(n){return kC(n)}encodeValue(n){return kC(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const P1=/%(\d[a-f0-9])/gi,k1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function kC(e){return encodeURIComponent(e).replace(P1,(n,t)=>k1[t]??n)}function vu(e){return`${e}`}class Un{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new O1,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F1(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],u=t.get(s)||[];u.push(a),t.set(s,u)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(vu):[vu(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new Un({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(vu(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(vu(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class L1{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function LC(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function VC(e){return typeof Blob<"u"&&e instanceof Blob}function jC(e){return typeof FormData<"u"&&e instanceof FormData}class Qi{constructor(n,t,r,o){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function V1(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new on),this.context||(this.context=new L1),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(f,n.setHeaders[f]),u)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,f)=>d.set(f,n.setParams[f]),c)),new Qi(t,r,i,{params:c,headers:u,context:l,reportProgress:a,responseType:o,withCredentials:s})}}var Io=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Io||{});class Rf{constructor(n,t=200,r="OK"){this.headers=n.headers||new on,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class xf extends Rf{constructor(n={}){super(n),this.type=Io.ResponseHeader}clone(n={}){return new xf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Mo extends Rf{constructor(n={}){super(n),this.type=Io.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Mo({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class BC extends Rf{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Of(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let $C=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof Qi)i=t;else{let u,c;u=o.headers instanceof on?o.headers:new on(o.headers),o.params&&(c=o.params instanceof Un?o.params:new Un({fromObject:o.params})),i=new Qi(t,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:c,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=R(i).pipe(bo(u=>this.handler.handle(u)));if(t instanceof Qi||"events"===o.observe)return s;const a=s.pipe(rn(u=>u instanceof Mo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Y(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Y(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Y(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Y(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Un).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Of(o,r))}post(t,r,o={}){return this.request("POST",t,Of(o,r))}put(t,r,o={}){return this.request("PUT",t,Of(o,r))}static#e=this.\u0275fac=function(r){return new(r||e)(M(gu))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function zC(e,n){return n(e)}function $1(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const GC=new I(""),Xi=new I(""),qC=new I("");function U1(){let e=null;return(n,t)=>{null===e&&(e=(E(GC,{optional:!0})??[]).reduceRight($1,zC));const r=E(Wa),o=r.add();return e(n,t).pipe(Yi(()=>r.remove(o)))}}let WC=(()=>{class e extends gu{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=E(Wa)}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Xi),...this.injector.get(qC,[])]));this.chain=o.reduceRight((i,s)=>function H1(e,n,t){return(r,o)=>t.runInContext(()=>n(r,i=>e(i,o)))}(i,s,this.injector),zC)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(Yi(()=>this.pendingTasks.remove(r)))}static#e=this.\u0275fac=function(r){return new(r||e)(M(mu),M(yt))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const W1=/^\)\]\}',?\n/;let YC=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new _(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?Me(r.\u0275loadImpl()):R(null)).pipe(ft(()=>new ve(i=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((g,v)=>s.setRequestHeader(g,v.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const g=t.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(t.responseType){const g=t.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=t.serializeBody();let u=null;const c=()=>{if(null!==u)return u;const g=s.statusText||"OK",v=new on(s.getAllResponseHeaders()),C=function Z1(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return u=new xf({headers:v,status:s.status,statusText:g,url:C}),u},l=()=>{let{headers:g,status:v,statusText:C,url:m}=c(),b=null;204!==v&&(b=typeof s.response>"u"?s.responseText:s.response),0===v&&(v=b?200:0);let N=v>=200&&v<300;if("json"===t.responseType&&"string"==typeof b){const H=b;b=b.replace(W1,"");try{b=""!==b?JSON.parse(b):null}catch(Re){b=H,N&&(N=!1,b={error:Re,text:b})}}N?(i.next(new Mo({body:b,headers:g,status:v,statusText:C,url:m||void 0})),i.complete()):i.error(new BC({error:b,headers:g,status:v,statusText:C,url:m||void 0}))},d=g=>{const{url:v}=c(),C=new BC({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:v||void 0});i.error(C)};let f=!1;const h=g=>{f||(i.next(c()),f=!0);let v={type:Io.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),"text"===t.responseType&&s.responseText&&(v.partialText=s.responseText),i.next(v)},p=g=>{let v={type:Io.UploadProgress,loaded:g.loaded};g.lengthComputable&&(v.total=g.total),i.next(v)};return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:Io.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static#e=this.\u0275fac=function(r){return new(r||e)(M(pC))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();const Ff=new I("XSRF_ENABLED"),QC=new I("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),XC=new I("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class JC{}let X1=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=iC(t,this.cookieName),this.lastCookieString=t),this.lastToken}static#e=this.\u0275fac=function(r){return new(r||e)(M(Ct),M(ar),M(QC))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function J1(e,n){const t=e.url.toLowerCase();if(!E(Ff)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=E(JC).getToken(),o=E(XC);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var zn=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(zn||{});function K1(...e){const n=[$C,YC,WC,{provide:gu,useExisting:WC},{provide:mu,useExisting:YC},{provide:Xi,useValue:J1,multi:!0},{provide:Ff,useValue:!0},{provide:JC,useClass:X1}];for(const t of e)n.push(...t.\u0275providers);return function _l(e){return{\u0275providers:e}}(n)}const KC=new I("LEGACY_INTERCEPTOR_FN");function ek(){return function mr(e,n){return{\u0275kind:e,\u0275providers:n}}(zn.LegacyInterceptors,[{provide:KC,useFactory:U1},{provide:Xi,useExisting:KC,multi:!0}])}let tk=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({providers:[K1(ek())]})}return e})();const{isArray:uk}=Array,{getPrototypeOf:ck,prototype:lk,keys:dk}=Object;function ew(e){if(1===e.length){const n=e[0];if(uk(n))return{args:n,keys:null};if(function fk(e){return e&&"object"==typeof e&&ck(e)===lk}(n)){const t=dk(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:hk}=Array;function tw(e){return Y(n=>function pk(e,n){return hk(n)?e(...n):e(n)}(e,n))}function nw(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}function Pf(...e){const n=Ho(e),t=Zh(e),{args:r,keys:o}=ew(e);if(0===r.length)return Me([],n);const i=new ve(function gk(e,n,t=An){return r=>{rw(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let u=0;u{const c=Me(e[u],n);let l=!1;c.subscribe(ye(r,d=>{i[u]=d,l||(l=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>nw(o,s):An));return t?i.pipe(tw(t)):i}function rw(e,n,t){e?ln(t,e,n):n()}const Du=Bo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function kf(...e){return function mk(){return br(1)}()(Me(e,Ho(e)))}function ow(e){return new ve(n=>{lt(e()).subscribe(n)})}function Ji(e,n){const t=re(e)?e:()=>e,r=o=>o.error(t());return new ve(n?o=>n.schedule(r,0,o):r)}function Lf(){return be((e,n)=>{let t=null;e._refCount++;const r=ye(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class iw extends ve{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,Oh(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new tt;const t=this.getSubject();n.add(this.source.subscribe(ye(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=tt.EMPTY)}return n}refCount(){return Lf()(this)}}function So(e){return e<=0?()=>zt:be((n,t)=>{let r=0;n.subscribe(ye(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function _u(e){return be((n,t)=>{let r=!1;n.subscribe(ye(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function sw(e=yk){return be((n,t)=>{let r=!1;n.subscribe(ye(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function yk(){return new Du}function vr(e,n){const t=arguments.length>=2;return r=>r.pipe(e?rn((o,i)=>e(o,i,r)):An,So(1),t?_u(n):sw(()=>new Du))}function Ne(e,n,t){const r=re(e)||n||t?{next:e,error:n,complete:t}:e;return r?be((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(ye(i,u=>{var c;null===(c=r.next)||void 0===c||c.call(r,u),i.next(u)},()=>{var u;a=!1,null===(u=r.complete)||void 0===u||u.call(r),i.complete()},u=>{var c;a=!1,null===(c=r.error)||void 0===c||c.call(r,u),i.error(u)},()=>{var u,c;a&&(null===(u=r.unsubscribe)||void 0===u||u.call(r)),null===(c=r.finalize)||void 0===c||c.call(r)}))}):An}function In(e){return be((n,t)=>{let i,r=null,o=!1;r=n.subscribe(ye(t,void 0,void 0,s=>{i=lt(e(s,In(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}function Vf(e){return e<=0?()=>zt:be((n,t)=>{let r=[];n.subscribe(ye(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}const $="primary",Ki=Symbol("RouteTitle");class bk{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Ao(e){return new bk(e)}function Ik(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function uw(e){return e.length>0?e[e.length-1]:null}function Gn(e){return function ak(e){return!!e&&(e instanceof ve||re(e.lift)&&re(e.subscribe))}(e)?e:Ti(e)?Me(Promise.resolve(e)):R(e)}const Sk={exact:function dw(e,n,t){if(!yr(e.segments,n.segments)||!Cu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!dw(e.children[r],n.children[r],t))return!1;return!0},subset:fw},cw={exact:function Ak(e,n){return sn(e,n)},subset:function Tk(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>aw(e[t],n[t]))},ignored:()=>!0};function lw(e,n,t){return Sk[t.paths](e.root,n.root,t.matrixParams)&&cw[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function fw(e,n,t){return hw(e,n,n.segments,t)}function hw(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!yr(o,t)||n.hasChildren()||!Cu(o,t,r))}if(e.segments.length===t.length){if(!yr(e.segments,t)||!Cu(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!fw(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(yr(e.segments,o)&&Cu(e.segments,o,r)&&e.children[$])&&hw(e.children[$],n,i,r)}}function Cu(e,n,t){return n.every((r,o)=>cw[t](e[o].parameters,r.parameters))}class To{constructor(n=new ne([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ao(this.queryParams)),this._queryParamMap}toString(){return xk.serialize(this)}}class ne{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wu(this)}}class es{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Ao(this.parameters)),this._parameterMap}toString(){return mw(this)}}function yr(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let ts=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return new jf},providedIn:"root"})}return e})();class jf{parse(n){const t=new Uk(n);return new To(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${ns(n.root,!0)}`,r=function Pk(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${Eu(t)}=${Eu(o)}`).join("&"):`${Eu(t)}=${Eu(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function Ok(e){return encodeURI(e)}(n.fragment)}`:""}`}}const xk=new jf;function wu(e){return e.segments.map(n=>mw(n)).join("/")}function ns(e,n){if(!e.hasChildren())return wu(e);if(n){const t=e.children[$]?ns(e.children[$],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==$&&r.push(`${o}:${ns(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function Rk(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===$&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==$&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===$?[ns(e.children[$],!1)]:[`${o}:${ns(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[$]?`${wu(e)}/${t[0]}`:`${wu(e)}/(${t.join("//")})`}}function pw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Eu(e){return pw(e).replace(/%3B/gi,";")}function Bf(e){return pw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function bu(e){return decodeURIComponent(e)}function gw(e){return bu(e.replace(/\+/g,"%20"))}function mw(e){return`${Bf(e.path)}${function Fk(e){return Object.keys(e).map(n=>`;${Bf(n)}=${Bf(e[n])}`).join("")}(e.parameters)}`}const kk=/^[^\/()?;#]+/;function $f(e){const n=e.match(kk);return n?n[0]:""}const Lk=/^[^\/()?;=#]+/,jk=/^[^=?&#]+/,$k=/^[^&#]+/;class Uk{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ne([],{}):new ne([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[$]=new ne(n,t)),r}parseSegment(){const n=$f(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new _(4009,!1);return this.capture(n),new es(bu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function Vk(e){const n=e.match(Lk);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=$f(this.remaining);o&&(r=o,this.capture(r))}n[bu(t)]=bu(r)}parseQueryParam(n){const t=function Bk(e){const n=e.match(jk);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function Hk(e){const n=e.match($k);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=gw(t),i=gw(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=$f(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new _(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=$);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[$]:new ne([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new _(4011,!1)}}function vw(e){return e.segments.length>0?new ne([],{[$]:e}):e}function yw(e){const n={};for(const r of Object.keys(e.children)){const i=yw(e.children[r]);if(r===$&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function zk(e){if(1===e.numberOfChildren&&e.children[$]){const n=e.children[$];return new ne(e.segments.concat(n.segments),n.children)}return e}(new ne(e.segments,n))}function Dr(e){return e instanceof To}function Dw(e){let n;const o=vw(function t(i){const s={};for(const u of i.children){const c=t(u);s[u.outlet]=c}const a=new ne(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function _w(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return Hf(o,o,o,t,r);const i=function qk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new ww(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([u,c])=>{a[u]="string"==typeof c?c.split("/"):c}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new ww(t,n,r)}(n);if(i.toRoot())return Hf(o,o,new ne([],{}),t,r);const s=function Wk(e,n,t){if(e.isAbsolute)return new Mu(n,!0,0);if(!t)return new Mu(n,!1,NaN);if(null===t.parent)return new Mu(t,!0,0);const r=Iu(e.commands[0])?0:1;return function Zk(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new _(4005,!1);o=r.segments.length}return new Mu(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?os(s.segmentGroup,s.index,i.commands):Ew(s.segmentGroup,s.index,i.commands);return Hf(o,s.segmentGroup,a,t,r)}function Iu(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function rs(e){return"object"==typeof e&&null!=e&&e.outlets}function Hf(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([u,c])=>{i[u]=Array.isArray(c)?c.map(l=>`${l}`):`${c}`}),s=e===n?t:Cw(e,n,t);const a=vw(yw(s));return new To(a,i,o)}function Cw(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:Cw(i,n,t)}),new ne(e.segments,r)}class ww{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&Iu(r[0]))throw new _(4003,!1);const o=r.find(rs);if(o&&o!==uw(r))throw new _(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Mu{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function Ew(e,n,t){if(e||(e=new ne([],{})),0===e.segments.length&&e.hasChildren())return os(e,n,t);const r=function Qk(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(rs(a))break;const u=`${a}`,c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!Iw(u,c,s))return i;r+=2}else{if(!Iw(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndexi!==$)&&e.children[$]&&1===e.numberOfChildren&&0===e.children[$].segments.length){const i=os(e.children[$],n,t);return new ne(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Ew(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ne(e.segments,o)}}function Uf(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=Uf(new ne([],{}),0,r))}),n}function bw(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function Iw(e,n,t){return e==t.path&&sn(n,t.parameters)}const is="imperative";class an{constructor(n,t){this.id=n,this.url=t}}class Su extends an{constructor(n,t,r="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class qn extends an{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ss extends an{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class No extends an{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=16}}class Au extends an{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Mw extends an{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Jk extends an{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kk extends an{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class eL extends an{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tL extends an{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nL{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class rL{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class oL{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iL{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sL{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class aL{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sw{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zf{}class Gf{constructor(n){this.url=n}}class uL{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new as,this.attachRef=null}}let as=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new uL,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();class Aw{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=qf(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=qf(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Wf(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Wf(n,this._root).map(t=>t.value)}}function qf(e,n){if(e===n.value)return n;for(const t of n.children){const r=qf(e,t);if(r)return r}return null}function Wf(e,n){if(e===n.value)return[n];for(const t of n.children){const r=Wf(e,t);if(r.length)return r.unshift(n),r}return[]}class Mn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ro(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class Tw extends Aw{constructor(n,t){super(n),this.snapshot=t,Zf(this,n)}toString(){return this.snapshot.toString()}}function Nw(e,n){const t=function cL(e,n){const s=new Tu([],{},{},"",{},$,n,null,{});return new xw("",new Mn(s,[]))}(0,n),r=new dt([new es("",{})]),o=new dt({}),i=new dt({}),s=new dt({}),a=new dt(""),u=new Wn(r,o,s,a,i,$,n,t.root);return u.snapshot=t.root,new Tw(new Mn(u,[]),t)}class Wn{constructor(n,t,r,o,i,s,a,u){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(Y(c=>c[Ki]))??R(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Y(n=>Ao(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Y(n=>Ao(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Rw(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const o=t[r],i=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function lL(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Tu{get title(){return this.data?.[Ki]}constructor(n,t,r,o,i,s,a,u,c){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Ao(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Ao(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class xw extends Aw{constructor(n,t){super(t),this.url=n,Zf(this,t)}toString(){return Ow(this._root)}}function Zf(e,n){n.value._routerState=e,n.children.forEach(t=>Zf(e,t))}function Ow(e){const n=e.children.length>0?` { ${e.children.map(Ow).join(", ")} } `:"";return`${e.value}${n}`}function Yf(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,sn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),sn(n.params,t.params)||e.paramsSubject.next(t.params),function Mk(e,n){if(e.length!==n.length)return!1;for(let t=0;tsn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Qf(e.parent,n.parent))}let Xf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=$,this.activateEvents=new pe,this.deactivateEvents=new pe,this.attachEvents=new pe,this.detachEvents=new pe,this.parentContexts=E(as),this.location=E(jt),this.changeDetector=E(Xa),this.environmentInjector=E(yt),this.inputBinder=E(Nu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new _(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new _(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new _(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new _(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new dL(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:u,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=O({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[gt]})}return e})();class dL{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Wn?this.route:n===as?this.childContexts:this.parent.get(n,t)}}const Nu=new I("");let Fw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=Pf([r.queryParams,r.params,r.data]).pipe(ft(([i,s,a],u)=>(a={...i,...s,...a},0===u?R(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function dF(e){const n=W(e);if(!n)return null;const t=new bi(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function us(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function hL(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return us(e,r,o);return us(e,r)})}(e,n,t);return new Mn(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>us(e,a)),s}}const r=function pL(e){return new Wn(new dt(e.url),new dt(e.params),new dt(e.queryParams),new dt(e.fragment),new dt(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>us(e,i));return new Mn(r,o)}}const Jf="ngNavigationCancelingError";function Pw(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Dr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=kw(!1,0,n);return o.url=t,o.navigationBehaviorOptions=r,o}function kw(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[Jf]=!0,r.cancellationCode=n,t&&(r.url=t),r}function Lw(e){return e&&e[Jf]}let Vw=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=It({type:e,selectors:[["ng-component"]],standalone:!0,features:[_D],decls:1,vars:0,template:function(r,o){1&r&&He(0,"router-outlet")},dependencies:[Xf],encapsulation:2})}return e})();function Kf(e){const n=e.children&&e.children.map(Kf),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==$&&(t.component=Vw),t}function Ht(e){return e.outlet||$}function cs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class wL{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Yf(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=Ro(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Ro(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Ro(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=Ro(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new aL(i.value.snapshot))}),n.children.length&&this.forwardEvent(new iL(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(Yf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Yf(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=cs(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class jw{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Ru{constructor(n,t){this.component=n,this.route=t}}function EL(e,n,t){const r=e._root;return ls(r,n?n._root:null,t,[r.value])}function xo(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function wI(e){return null!==Ms(e)}(e)?n.get(e):e:r}function ls(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ro(n);return e.children.forEach(s=>{(function IL(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function ML(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!yr(e.url,n.url);case"pathParamsOrQueryParamsChange":return!yr(e.url,n.url)||!sn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qf(e,n)||!sn(e.queryParams,n.queryParams);default:return!Qf(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new jw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ls(e,n,i.component?a?a.children:null:t,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ru(a.outlet.component,s))}else s&&ds(n,a,o),o.canActivateChecks.push(new jw(r)),ls(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ds(a,t.getContext(s),o)),o}function ds(e,n,t){const r=Ro(e),o=e.value;Object.entries(r).forEach(([i,s])=>{ds(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new Ru(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function fs(e){return"function"==typeof e}function Bw(e){return e instanceof Du||"EmptyError"===e?.name}const xu=Symbol("INITIAL_VALUE");function Oo(){return ft(e=>Pf(e.map(n=>n.pipe(So(1),function vk(...e){const n=Ho(e);return be((t,r)=>{(n?kf(e,t,n):kf(e,t)).subscribe(r)})}(xu)))).pipe(Y(n=>{for(const t of n)if(!0!==t){if(t===xu)return xu;if(!1===t||t instanceof To)return t}return!0}),rn(n=>n!==xu),So(1)))}function $w(e){return function Ib(...e){return Nh(e)}(Ne(n=>{if(Dr(n))throw Pw(0,n)}),Y(n=>!0===n))}class Ou{constructor(n){this.segmentGroup=n||null}}class Hw{constructor(n){this.urlTree=n}}function Fo(e){return Ji(new Ou(e))}function Uw(e){return Ji(new Hw(e))}class qL{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new _(4002,!1)}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return R(r);if(o.numberOfChildren>1||!o.children[$])return Ji(new _(4e3,!1));o=o.children[$]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new To(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,o)}),new ne(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new _(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}const eh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function WL(e,n,t,r,o){const i=th(e,n,t);return i.matched?(r=function mL(e,n){return e.providers&&!e._injector&&(e._injector=bd(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function UL(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?R(o.map(s=>{const a=xo(s,e);return Gn(function xL(e){return e&&fs(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Oo(),$w()):R(!0)}(r,n,t).pipe(Y(s=>!0===s?i:{...eh}))):R(i)}function th(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...eh}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||Ik)(t,e,n);if(!o)return{...eh};const i={};Object.entries(o.posParams??{}).forEach(([a,u])=>{i[a]=u.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function zw(e,n,t,r){return t.length>0&&function QL(e,n,t){return t.some(r=>Fu(e,n,r)&&Ht(r)!==$)}(e,t,r)?{segmentGroup:new ne(n,YL(r,new ne(t,e.children))),slicedSegments:[]}:0===t.length&&function XL(e,n,t){return t.some(r=>Fu(e,n,r))}(e,t,r)?{segmentGroup:new ne(e.segments,ZL(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new ne(e.segments,e.children),slicedSegments:t}}function ZL(e,n,t,r,o){const i={};for(const s of r)if(Fu(e,t,s)&&!o[Ht(s)]){const a=new ne([],{});i[Ht(s)]=a}return{...o,...i}}function YL(e,n){const t={};t[$]=n;for(const r of e)if(""===r.path&&Ht(r)!==$){const o=new ne([],{});t[Ht(r)]=o}return t}function Fu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class tV{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new qL(this.urlSerializer,this.urlTree)}noMatchError(n){return new _(4002,!1)}recognize(){const n=zw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,$).pipe(In(t=>{if(t instanceof Hw)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Ou?this.noMatchError(t):t}),Y(t=>{const r=new Tu([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},$,this.rootComponentType,null,{}),o=new Mn(r,t),i=new xw("",o),s=function Gk(e,n,t=null,r=null){return _w(Dw(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,$).pipe(In(r=>{throw r instanceof Ou?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=Rw(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o,!0)}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Me(o).pipe(bo(i=>{const s=r.children[i],a=function _L(e,n){const t=e.filter(r=>Ht(r)===n);return t.push(...e.filter(r=>Ht(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function _k(e,n){return be(function Dk(e,n,t,r,o){return(i,s)=>{let a=t,u=n,c=0;i.subscribe(ye(s,l=>{const d=c++;u=a?e(u,l,d):(a=!0,l),r&&s.next(u)},o&&(()=>{a&&s.next(u),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),_u(null),function Ck(e,n){const t=arguments.length>=2;return r=>r.pipe(e?rn((o,i)=>e(o,i,r)):An,Vf(1),t?_u(n):sw(()=>new Du))}(),xe(i=>{if(null===i)return Fo(r);const s=Gw(i);return function nV(e){e.sort((n,t)=>n.value.outlet===$?-1:t.value.outlet===$?1:n.value.outlet.localeCompare(t.value.outlet))}(s),R(s)}))}processSegment(n,t,r,o,i,s){return Me(t).pipe(bo(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(In(u=>{if(u instanceof Ou)return R(null);throw u}))),vr(a=>!!a),In(a=>{if(Bw(a))return function KL(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?R([]):Fo(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function JL(e,n,t,r){return!!(Ht(e)===r||r!==$&&Fu(n,t,e))&&("**"===e.path||th(n,e,t).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):Fo(o):Fo(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Uw(i):this.applyRedirects.lineralizeSegments(r,i).pipe(xe(s=>{const a=new ne(s,{});return this.processSegment(n,t,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:u,remainingSegments:c,positionalParamSegments:l}=th(t,o,i);if(!a)return Fo(t);const d=this.applyRedirects.applyRedirectCommands(u,o.redirectTo,l);return o.redirectTo.startsWith("/")?Uw(d):this.applyRedirects.lineralizeSegments(o,d).pipe(xe(f=>this.processSegment(n,r,t,f.concat(c),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i,s){let a;if("**"===r.path){const u=o.length>0?uw(o).parameters:{};a=R({snapshot:new Tu(o,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qw(r),Ht(r),r.component??r._loadedComponent??null,r,Ww(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=WL(t,r,o,n).pipe(Y(({matched:u,consumedSegments:c,remainingSegments:l,parameters:d})=>u?{snapshot:new Tu(c,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,qw(r),Ht(r),r.component??r._loadedComponent??null,r,Ww(r)),consumedSegments:c,remainingSegments:l}:null));return a.pipe(ft(u=>null===u?Fo(t):this.getChildConfig(n=r._injector??n,r,o).pipe(ft(({routes:c})=>{const l=r._loadedInjector??n,{snapshot:d,consumedSegments:f,remainingSegments:h}=u,{segmentGroup:p,slicedSegments:g}=zw(t,f,h,c);if(0===g.length&&p.hasChildren())return this.processChildren(l,c,p).pipe(Y(C=>null===C?null:[new Mn(d,C)]));if(0===c.length&&0===g.length)return R([new Mn(d,[])]);const v=Ht(r)===i;return this.processSegment(l,c,p,g,v?$:i,!0).pipe(Y(C=>[new Mn(d,C)]))}))))}getChildConfig(n,t,r){return t.children?R({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?R({routes:t._loadedRoutes,injector:t._loadedInjector}):function HL(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?R(!0):R(o.map(s=>{const a=xo(s,e);return Gn(function AL(e){return e&&fs(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Oo(),$w())}(n,t,r).pipe(xe(o=>o?this.configLoader.loadChildren(n,t).pipe(Ne(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function GL(e){return Ji(kw(!1,3))}())):R({routes:[],injector:n})}}function rV(e){const n=e.value.routeConfig;return n&&""===n.path}function Gw(e){const n=[],t=new Set;for(const r of e){if(!rV(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=Gw(r.children);n.push(new Mn(r.value,o))}return n.filter(r=>!t.has(r))}function qw(e){return e.data||{}}function Ww(e){return e.resolve||{}}function Zw(e){return"string"==typeof e.title||null===e.title}function nh(e){return ft(n=>{const t=e(n);return t?Me(t).pipe(Y(()=>n)):R(n)})}const Po=new I("ROUTES");let rh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=E(f_)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return R(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Gn(t.loadComponent()).pipe(Y(Yw),Ne(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),Yi(()=>{this.componentLoaders.delete(t)})),o=new iw(r,()=>new Et).pipe(Lf());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return R({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function lV(e,n,t,r){return Gn(e.loadChildren()).pipe(Y(Yw),xe(o=>o instanceof yD||Array.isArray(o)?R(o):Me(n.compileModuleAsync(o))),Y(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(t).injector,s=i.get(Po,[],{optional:!0,self:!0}).flat()),{routes:s.map(Kf),injector:i}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(Yi(()=>{this.childrenLoaders.delete(r)})),s=new iw(i,()=>new Et).pipe(Lf());return this.childrenLoaders.set(r,s),s}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Yw(e){return function dV(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Pu=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Et,this.transitionAbortSubject=new Et,this.configLoader=E(rh),this.environmentInjector=E(yt),this.urlSerializer=E(ts),this.rootContexts=E(as),this.inputBindingEnabled=null!==E(Nu,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>R(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new rL(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new nL(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,o){return this.transitions=new dt({id:0,currentUrlTree:r,currentRawUrl:r,currentBrowserUrl:r,extractedUrl:t.urlHandlingStrategy.extract(r),urlAfterRedirects:t.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:is,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(rn(i=>0!==i.id),Y(i=>({...i,extractedUrl:t.urlHandlingStrategy.extract(i.rawUrl)})),ft(i=>{this.currentTransition=i;let s=!1,a=!1;return R(i).pipe(Ne(u=>{this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ft(u=>{const c=u.currentBrowserUrl.toString(),l=!t.navigated||u.extractedUrl.toString()!==c||c!==u.currentUrlTree.toString();if(!l&&"reload"!==(u.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const f="";return this.events.next(new No(u.id,this.urlSerializer.serialize(u.rawUrl),f,0)),u.resolve(null),zt}if(t.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return R(u).pipe(ft(f=>{const h=this.transitions?.getValue();return this.events.next(new Su(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?zt:Promise.resolve(f)}),function oV(e,n,t,r,o,i){return xe(s=>function eV(e,n,t,r,o,i,s="emptyOnly"){return new tV(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(Y(({state:a,tree:u})=>({...s,targetSnapshot:a,urlAfterRedirects:u}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),Ne(f=>{i.targetSnapshot=f.targetSnapshot,i.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:f.urlAfterRedirects};const h=new Mw(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){const{id:f,extractedUrl:h,source:p,restoredState:g,extras:v}=u,C=new Su(f,this.urlSerializer.serialize(h),p,g);this.events.next(C);const m=Nw(0,this.rootComponentType).snapshot;return this.currentTransition=i={...u,targetSnapshot:m,urlAfterRedirects:h,extras:{...v,skipLocationChange:!1,replaceUrl:!1}},R(i)}{const f="";return this.events.next(new No(u.id,this.urlSerializer.serialize(u.extractedUrl),f,1)),u.resolve(null),zt}}),Ne(u=>{const c=new Jk(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}),Y(u=>(this.currentTransition=i={...u,guards:EL(u.targetSnapshot,u.currentSnapshot,this.rootContexts)},i)),function FL(e,n){return xe(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?R({...t,guardsResult:!0}):function PL(e,n,t,r){return Me(e).pipe(xe(o=>function $L(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?R(i.map(a=>{const u=cs(n)??o,c=xo(a,u);return Gn(function RL(e){return e&&fs(e.canDeactivate)}(c)?c.canDeactivate(e,n,t,r):u.runInContext(()=>c(e,n,t,r))).pipe(vr())})).pipe(Oo()):R(!0)}(o.component,o.route,t,n,r)),vr(o=>!0!==o,!0))}(s,r,o,e).pipe(xe(a=>a&&function SL(e){return"boolean"==typeof e}(a)?function kL(e,n,t,r){return Me(n).pipe(bo(o=>kf(function VL(e,n){return null!==e&&n&&n(new oL(e)),R(!0)}(o.route.parent,r),function LL(e,n){return null!==e&&n&&n(new sL(e)),R(!0)}(o.route,r),function BL(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function bL(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>ow(()=>R(s.guards.map(u=>{const c=cs(s.node)??t,l=xo(u,c);return Gn(function NL(e){return e&&fs(e.canActivateChild)}(l)?l.canActivateChild(r,e):c.runInContext(()=>l(r,e))).pipe(vr())})).pipe(Oo())));return R(i).pipe(Oo())}(e,o.path,t),function jL(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return R(!0);const o=r.map(i=>ow(()=>{const s=cs(n)??t,a=xo(i,s);return Gn(function TL(e){return e&&fs(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(vr())}));return R(o).pipe(Oo())}(e,o.route,t))),vr(o=>!0!==o,!0))}(r,i,e,n):R(a)),Y(a=>({...t,guardsResult:a})))})}(this.environmentInjector,u=>this.events.next(u)),Ne(u=>{if(i.guardsResult=u.guardsResult,Dr(u.guardsResult))throw Pw(0,u.guardsResult);const c=new Kk(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(c)}),rn(u=>!!u.guardsResult||(this.cancelNavigationTransition(u,"",3),!1)),nh(u=>{if(u.guards.canActivateChecks.length)return R(u).pipe(Ne(c=>{const l=new eL(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ft(c=>{let l=!1;return R(c).pipe(function iV(e,n){return xe(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return R(t);let i=0;return Me(o).pipe(bo(s=>function sV(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Zw(o)&&(i[Ki]=o.title),function aV(e,n,t,r){const o=function uV(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return R({});const i={};return Me(o).pipe(xe(s=>function cV(e,n,t,r){const o=cs(n)??r,i=xo(e,o);return Gn(i.resolve?i.resolve(n,t):o.runInContext(()=>i(n,t)))}(e[s],n,t,r).pipe(vr(),Ne(a=>{i[s]=a}))),Vf(1),function wk(e){return Y(()=>e)}(i),In(s=>Bw(s)?zt:Ji(s)))}(i,e,n,r).pipe(Y(s=>(e._resolvedData=s,e.data=Rw(e,t).resolve,o&&Zw(o)&&(e.data[Ki]=o.title),null)))}(s.route,r,e,n)),Ne(()=>i++),Vf(1),xe(s=>i===o.length?R(t):zt))})}(t.paramsInheritanceStrategy,this.environmentInjector),Ne({next:()=>l=!0,complete:()=>{l||this.cancelNavigationTransition(c,"",2)}}))}),Ne(c=>{const l=new tL(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}))}),nh(u=>{const c=l=>{const d=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(l.routeConfig).pipe(Ne(f=>{l.component=f}),Y(()=>{})));for(const f of l.children)d.push(...c(f));return d};return Pf(c(u.targetSnapshot.root)).pipe(_u(),So(1))}),nh(()=>this.afterPreactivation()),Y(u=>{const c=function fL(e,n,t){const r=us(e,n._root,t?t._root:void 0);return new Tw(r,n)}(t.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=i={...u,targetRouterState:c},i}),Ne(()=>{this.events.next(new zf)}),((e,n,t,r)=>Y(o=>(new wL(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),So(1),Ne({next:u=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new qn(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),t.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{s=!0}}),function Ek(e){return be((n,t)=>{lt(e).subscribe(ye(t,()=>t.complete(),Xu)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(Ne(u=>{throw u}))),Yi(()=>{s||a||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),In(u=>{if(a=!0,Lw(u))this.events.next(new ss(i.id,this.urlSerializer.serialize(i.extractedUrl),u.message,u.cancellationCode)),function gL(e){return Lw(e)&&Dr(e.url)}(u)?this.events.next(new Gf(u.url)):i.resolve(!1);else{this.events.next(new Au(i.id,this.urlSerializer.serialize(i.extractedUrl),u,i.targetSnapshot??void 0));try{i.resolve(t.errorHandler(u))}catch(c){i.reject(c)}}return zt}))}))}cancelNavigationTransition(t,r,o){const i=new ss(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Qw(e){return e!==is}let Xw=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===$);return r}getResolvedTitleForRoute(t){return t.data[Ki]}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return E(fV)},providedIn:"root"})}return e})(),fV=(()=>{class e extends Xw{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static#e=this.\u0275fac=function(r){return new(r||e)(M(xC))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),hV=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return E(gV)},providedIn:"root"})}return e})();class pV{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let gV=(()=>{class e extends pV{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=Le(e)))(o||e)}}();static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const ku=new I("",{providedIn:"root",factory:()=>({})});let mV=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:function(){return E(vV)},providedIn:"root"})}return e})(),vV=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var hs=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(hs||{});function Jw(e,n){e.events.pipe(rn(t=>t instanceof qn||t instanceof ss||t instanceof Au||t instanceof No),Y(t=>t instanceof qn||t instanceof No?hs.COMPLETE:t instanceof ss&&(0===t.code||1===t.code)?hs.REDIRECTING:hs.FAILED),rn(t=>t!==hs.REDIRECTING),So(1)).subscribe(()=>{n()})}function yV(e){throw e}function DV(e,n,t){return n.parse("/")}const _V={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},CV={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ke=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=E(d_),this.isNgZoneEnabled=!1,this._events=new Et,this.options=E(ku,{optional:!0})||{},this.pendingTasks=E(Wa),this.errorHandler=this.options.errorHandler||yV,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||DV,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=E(mV),this.routeReuseStrategy=E(hV),this.titleStrategy=E(Xw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=E(Po,{optional:!0})?.flat()??[],this.navigationTransitions=E(Pu),this.urlSerializer=E(ts),this.location=E(rf),this.componentInputBindingEnabled=!!E(Nu,{optional:!0}),this.eventsSubscription=new tt,this.isNgZoneEnabled=E(ue)instanceof ue&&ue.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new To,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Nw(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const{currentTransition:o}=this.navigationTransitions;if(null===o)return void(Kw(r)&&this._events.next(r));if(r instanceof Su)Qw(o.source)&&(this.browserUrlTree=o.extractedUrl);else if(r instanceof No)this.rawUrlTree=o.rawUrl;else if(r instanceof Mw){if("eager"===this.urlUpdateStrategy){if(!o.extras.skipLocationChange){const i=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl);this.setBrowserUrl(i,o)}this.browserUrlTree=o.urlAfterRedirects}}else if(r instanceof zf)this.currentUrlTree=o.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.routerState=o.targetRouterState,"deferred"===this.urlUpdateStrategy&&(o.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,o),this.browserUrlTree=o.urlAfterRedirects);else if(r instanceof ss)0!==r.code&&1!==r.code&&(this.navigated=!0),(3===r.code||2===r.code)&&this.restoreHistory(o);else if(r instanceof Gf){const i=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),s={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Qw(o.source)};this.scheduleNavigation(i,is,null,s,{resolve:o.resolve,reject:o.reject,promise:o.promise})}r instanceof Au&&this.restoreHistory(o,!0),r instanceof qn&&(this.navigated=!0),Kw(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),is,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const u={...o};delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Kf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s;let d,l=null;switch(a){case"merge":l={...this.currentUrlTree.queryParams,...i};break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}null!==l&&(l=this.removeEmptyProps(l));try{d=Dw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return _w(d,t,l,c??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=Dr(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,is,null,r)}navigate(t,r={skipLocationChange:!1}){return function wV(e){for(let n=0;n{const i=t[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((d,f)=>{a=d,u=f});const l=this.pendingTasks.add();return Jw(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:t,extras:i,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Kw(e){return!(e instanceof zf||e instanceof Gf)}let Zn=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new Et,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===u||"area"===u,this.isAnchorElement?this.subscription=t.events.subscribe(c=>{c instanceof qn&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function ym(e,n,t){return function T0(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?vm:ha}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(r){return new(r||e)(y(Ke),y(Wn),function Ws(e){return function ZM(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new pe,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof qn&&this.update()})}ngAfterContentInit(){R(this.links.changes,R(null)).pipe(br()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Me(t).pipe(br()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function EV(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&t.isActive(o.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static#e=this.\u0275fac=function(r){return new(r||e)(y(Ke),y(at),y(Xt),y(Xa),y(Zn,8))};static#t=this.\u0275dir=O({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(1&r&&zD(i,Zn,5),2&r){let s;UD(s=function GD(){return function kx(e,n){return e[qt].queries[n].queryList}(D(),ng())}())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[gt]})}return e})();class tE{}let bV=(()=>{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(rn(t=>t instanceof qn),bo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=bd(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Me(o).pipe(br())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):R(null);const i=o.pipe(xe(s=>null===s?R(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?Me([i,this.loader.loadComponent(r)]).pipe(br()):i})}static#e=this.\u0275fac=function(r){return new(r||e)(M(Ke),M(f_),M(yt),M(tE),M(rh))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const oh=new I("");let nE=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Su?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof qn?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof No&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Sw&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Sw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){!function ov(){throw new Error("invalid")}()};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})();function Sn(e,n){return{\u0275kind:e,\u0275providers:n}}function oE(){const e=E(Dt);return n=>{const t=e.get(Co);if(n!==t.components[0])return;const r=e.get(Ke),o=e.get(iE);1===e.get(ih)&&r.initialNavigation(),e.get(sE,null,z.Optional)?.setUpPreloading(),e.get(oh,null,z.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const iE=new I("",{factory:()=>new Et}),ih=new I("",{providedIn:"root",factory:()=>1}),sE=new I("");function AV(e){return Sn(0,[{provide:sE,useExisting:bV},{provide:tE,useExisting:e}])}const aE=new I("ROUTER_FORROOT_GUARD"),NV=[rf,{provide:ts,useClass:jf},Ke,as,{provide:Wn,useFactory:function rE(e){return e.routerState.root},deps:[Ke]},rh,[]];function RV(){return new D_("Router",Ke)}let ko=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[NV,[],{provide:Po,multi:!0,useValue:t},{provide:aE,useFactory:PV,deps:[[Ke,new Qs,new Xs]]},{provide:ku,useValue:r||{}},r?.useHash?{provide:hr,useClass:mF}:{provide:hr,useClass:Y_},{provide:oh,useFactory:()=>{const e=E(OP),n=E(ue),t=E(ku),r=E(Pu),o=E(ts);return t.scrollOffset&&e.setOffset(t.scrollOffset),new nE(o,r,e,n,t)}},r?.preloadingStrategy?AV(r.preloadingStrategy).\u0275providers:[],{provide:D_,multi:!0,useFactory:RV},r?.initialNavigation?kV(r):[],r?.bindToComponentInputs?Sn(8,[Fw,{provide:Nu,useExisting:Fw}]).\u0275providers:[],[{provide:uE,useFactory:oE},{provide:Wd,multi:!0,useExisting:uE}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Po,multi:!0,useValue:t}]}}static#e=this.\u0275fac=function(r){return new(r||e)(M(aE,8))};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({})}return e})();function PV(e){return"guarded"}function kV(e){return["disabled"===e.initialNavigation?Sn(3,[{provide:jd,multi:!0,useFactory:()=>{const n=E(Ke);return()=>{n.setUpLocationChangeListener()}}},{provide:ih,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Sn(2,[{provide:ih,useValue:0},{provide:jd,multi:!0,deps:[Dt],useFactory:n=>{const t=n.get(pF,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(Ke),i=n.get(iE);Jw(o,()=>{r(!0)}),n.get(Pu).afterPreactivation=()=>(r(!0),i.closed?R(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const uE=new I("");class VV extends tt{constructor(n,t){super()}schedule(n,t=0){return this}}const Lu={setInterval(e,n,...t){const{delegate:r}=Lu;return r?.setInterval?r.setInterval(e,n,...t):setInterval(e,n,...t)},clearInterval(e){const{delegate:n}=Lu;return(n?.clearInterval||clearInterval)(e)},delegate:void 0},cE={now:()=>(cE.delegate||Date).now(),delegate:void 0};class ps{constructor(n,t=ps.now){this.schedulerActionCtor=n,this.now=t}schedule(n,t=0,r){return new this.schedulerActionCtor(this,n).schedule(r,t)}}ps.now=cE.now;const $V=new class BV extends ps{constructor(n,t=ps.now){super(n,t),this.actions=[],this._active=!1}flush(n){const{actions:t}=this;if(this._active)return void t.push(n);let r;this._active=!0;do{if(r=n.execute(n.state,n.delay))break}while(n=t.shift());if(this._active=!1,r){for(;n=t.shift();)n.unsubscribe();throw r}}}(class jV extends VV{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){var r;if(this.closed)return this;this.state=n;const o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,t)),this.pending=!0,this.delay=t,this.id=null!==(r=this.id)&&void 0!==r?r:this.requestAsyncId(i,this.id,t),this}requestAsyncId(n,t,r=0){return Lu.setInterval(n.flush.bind(n,this),r)}recycleAsyncId(n,t,r=0){if(null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&Lu.clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(n,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let o,r=!1;try{this.work(n)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){const{id:n,scheduler:t}=this,{actions:r}=t;this.work=this.state=this.scheduler=null,this.pending=!1,Er(r,this),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null,super.unsubscribe()}}});let Lo=(()=>{class e{constructor(t){this.http=t,this.apiUrl="https://api5.angular-buch.com"}getAll(){return this.http.get(`${this.apiUrl}/books`).pipe(In(t=>(console.error(t),R([]))))}getSingle(t){return this.http.get(`${this.apiUrl}/books/${t}`)}remove(t){return this.http.delete(`${this.apiUrl}/books/${t}`)}getAllSearch(t){return this.http.get(`${this.apiUrl}/books/search/${t}`).pipe(In(r=>(console.error(r),R([]))))}create(t){return this.http.post(`${this.apiUrl}/books`,t)}update(t){return this.http.put(`${this.apiUrl}/books/${t.isbn}`,t)}check(t){return this.http.get(`${this.apiUrl}/books/${t}/check`)}static#e=this.\u0275fac=function(r){return new(r||e)(M($C))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const UV=function(e){return["/books",e]};function zV(e,n){if(1&e&&(A(0,"li")(1,"a",6),B(2),A(3,"p",7),B(4),T()()()),2&e){const t=n.$implicit;U(1),q("routerLink",Md(3,UV,t.isbn)),U(1),nn(" ",t.title," "),U(2),jn(t.subtitle)}}function GV(e,n){1&e&&(A(0,"li"),B(1,"No results"),T())}function qV(e,n){if(1&e&&(A(0,"ul",3),Ce(1,zV,5,5,"li",4),Ce(2,GV,2,0,"li",5),T()),2&e){const t=n.ngIf;U(1),q("ngForOf",t),U(1),q("ngIf",!t.length)}}let WV=(()=>{class e{constructor(t){this.service=t,this.input$=new Et,this.isLoading=!1,this.results$=this.input$.pipe(rn(r=>r.length>=3),function HV(e,n=$V){return be((t,r)=>{let o=null,i=null,s=null;const a=()=>{if(o){o.unsubscribe(),o=null;const c=i;i=null,r.next(c)}};function u(){const c=s+e,l=n.now();if(l{i=c,s=n.now(),o||(o=n.schedule(u,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}(500),Kh(),Ne(()=>this.isLoading=!0),ft(r=>this.service.getAllSearch(r)),Ne(()=>this.isLoading=!1))}static#e=this.\u0275fac=function(r){return new(r||e)(y(Lo))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-search"]],decls:4,vars:5,consts:[["type","search","autocomplete","off","aria-label","Search",3,"input"],["searchInput",""],["class","search-results",4,"ngIf"],[1,"search-results"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"routerLink"],["role","doc-subtitle"]],template:function(r,o){if(1&r){const i=go();A(0,"input",0,1),we("input",function(){Pr(i);const a=function qv(e){return Or(function TM(){return F.lFrame.contextLView}(),G+e)}(1);return kr(o.input$.next(a.value))}),T(),Ce(2,qV,3,2,"ul",2),Vi(3,"async")}2&r&&(Ni("loading",o.isLoading),U(2),q("ngIf",ji(3,3,o.results$)))},dependencies:[pr,gr,Zn,qi]})}return e})();const ZV=[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-home"]],decls:7,vars:0,consts:[["routerLink","/books",1,"button","red"]],template:function(r,o){1&r&&(A(0,"h1"),B(1,"Home"),T(),A(2,"a",0),B(3," Show book list\n"),T(),A(4,"h2"),B(5,"Search"),T(),He(6,"bm-search"))},dependencies:[Zn,WV]})}return e})()}];let YV=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[ko.forRoot(ZV),ko]})}return e})(),lE=(()=>{class e{constructor(){this._isAuthenticated$=new dt(!0),this.isAuthenticated$=this._isAuthenticated$.asObservable()}get isAuthenticated(){return this._isAuthenticated$.value}login(){this._isAuthenticated$.next(!0)}logout(){this._isAuthenticated$.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function QV(e,n){if(1&e){const t=go();A(0,"button",6),we("click",function(){return Pr(t),kr(kt().auth.login())}),B(1,"Login"),T()}}function XV(e,n){if(1&e){const t=go();A(0,"button",7),we("click",function(){return Pr(t),kr(kt().auth.logout())}),B(1,"Logout"),T()}}let JV=(()=>{class e{constructor(t){this.auth=t}static#e=this.\u0275fac=function(r){return new(r||e)(y(lE))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-root"]],decls:12,vars:2,consts:[["routerLink","/home","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/books","routerLinkActive","active","ariaCurrentWhenActive","page"],["routerLink","/admin","routerLinkActive","active","ariaCurrentWhenActive","page"],[1,"actions"],["class","green",3,"click",4,"ngIf"],["class","red",3,"click",4,"ngIf"],[1,"green",3,"click"],[1,"red",3,"click"]],template:function(r,o){1&r&&(A(0,"nav")(1,"a",0),B(2,"Home"),T(),A(3,"a",1),B(4,"Books"),T(),A(5,"a",2),B(6,"Administration"),T(),A(7,"div",3),Ce(8,QV,2,0,"button",4),Ce(9,XV,2,0,"button",5),T()(),A(10,"main"),He(11,"router-outlet"),T()),2&r&&(U(8),q("ngIf",!o.auth.isAuthenticated),U(1),q("ngIf",o.auth.isAuthenticated))},dependencies:[gr,Xf,Zn,eE]})}return e})();function KV(e,n){if(1&e&&(A(0,"p",10),B(1),T()),2&e){const t=kt().ngIf;U(1),jn(t.subtitle)}}function e2(e,n){if(1&e&&(A(0,"li"),B(1),T()),2&e){const t=n.$implicit;U(1),jn(t)}}function t2(e,n){if(1&e&&(A(0,"div")(1,"h2"),B(2,"Published"),T(),B(3),T()),2&e){const t=kt().ngIf;U(3),nn(" ",t.published," ")}}function n2(e,n){1&e&&He(0,"img",11),2&e&&q("src",kt().ngIf.thumbnailUrl,ha)}const r2=function(e){return["/admin/edit",e]};function o2(e,n){if(1&e){const t=go();A(0,"div",1)(1,"h1"),B(2),T(),Ce(3,KV,2,1,"p",2),A(4,"div",3)(5,"div")(6,"h2"),B(7,"Authors"),T(),A(8,"ul"),Ce(9,e2,2,1,"li",4),T()(),A(10,"div")(11,"h2"),B(12,"ISBN"),T(),B(13),T(),Ce(14,t2,4,1,"div",5),T(),A(15,"h2"),B(16,"Description"),T(),A(17,"p"),B(18),T(),Ce(19,n2,1,1,"img",6),A(20,"a",7),B(21,"Back to list"),T(),A(22,"button",8),we("click",function(){const i=Pr(t).ngIf;return kr(kt().removeBook(i.isbn))}),B(23," Remove book "),T(),A(24,"a",9),B(25," Edit book "),T()()}if(2&e){const t=n.ngIf;U(2),jn(t.title),U(1),q("ngIf",t.subtitle),U(6),q("ngForOf",t.authors),U(4),nn(" ",t.isbn," "),U(1),q("ngIf",t.published),U(4),jn(t.description),U(1),q("ngIf",t.thumbnailUrl),U(5),q("routerLink",Md(8,r2,t.isbn))}}let i2=(()=>{class e{constructor(t,r,o){this.service=t,this.route=r,this.router=o;const i=this.route.snapshot.paramMap.get("isbn");this.book$=this.service.getSingle(i)}removeBook(t){window.confirm("Remove book?")&&this.service.remove(t).subscribe(()=>{this.router.navigateByUrl("/books")})}static#e=this.\u0275fac=function(r){return new(r||e)(y(Lo),y(Wn),y(Ke))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-book-details"]],decls:2,vars:3,consts:[["class","details",4,"ngIf"],[1,"details"],["role","doc-subtitle",4,"ngIf"],[1,"header"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Cover",3,"src",4,"ngIf"],["routerLink","..",1,"button","arrow-left"],[1,"red",3,"click"],[1,"button",3,"routerLink"],["role","doc-subtitle"],["alt","Cover",3,"src"]],template:function(r,o){1&r&&(Ce(0,o2,26,10,"div",0),Vi(1,"async")),2&r&&q("ngIf",ji(1,1,o.book$))},dependencies:[pr,gr,Zn,qi]})}return e})();function s2(e,n){1&e&&He(0,"img",6),2&e&&q("src",kt(2).book.thumbnailUrl,ha)}function a2(e,n){if(1&e&&(A(0,"p",7),B(1),T()),2&e){const t=kt(2);U(1),nn(" ",t.book.subtitle," ")}}function u2(e,n){if(1&e&&(A(0,"li"),B(1),T()),2&e){const t=n.$implicit;U(1),nn(" ",t," ")}}function c2(e,n){if(1&e&&(A(0,"a",1),Ce(1,s2,1,1,"img",2),A(2,"h2"),B(3),T(),Ce(4,a2,2,1,"p",3),A(5,"ul",4),Ce(6,u2,2,1,"li",5),T(),A(7,"div"),B(8),T()()),2&e){const t=kt();q("routerLink",t.book.isbn),U(1),q("ngIf",t.book.thumbnailUrl),U(2),jn(t.book.title),U(1),q("ngIf",t.book.subtitle),U(2),q("ngForOf",t.book.authors),U(2),nn("ISBN ",t.book.isbn,"")}}let l2=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-book-list-item"]],inputs:{book:"book"},decls:1,vars:1,consts:[["class","list-item",3,"routerLink",4,"ngIf"],[1,"list-item",3,"routerLink"],["alt","Cover",3,"src",4,"ngIf"],["role","doc-subtitle",4,"ngIf"],[1,"comma-list"],[4,"ngFor","ngForOf"],["alt","Cover",3,"src"],["role","doc-subtitle"]],template:function(r,o){1&r&&Ce(0,c2,9,6,"a",0),2&r&&q("ngIf",o.book)},dependencies:[pr,gr,Zn]})}return e})();function d2(e,n){if(1&e&&(A(0,"li"),He(1,"bm-book-list-item",4),T()),2&e){const t=n.$implicit;U(1),q("book",t)}}function f2(e,n){1&e&&(A(0,"li"),B(1," No books available. "),T())}function h2(e,n){if(1&e&&(A(0,"ul",1),Ce(1,d2,2,1,"li",2),Ce(2,f2,2,0,"li",3),T()),2&e){const t=n.ngIf;U(1),q("ngForOf",t),U(1),q("ngIf",!t.length)}}const p2=[{path:"books",component:(()=>{class e{constructor(t){this.service=t,this.books$=this.service.getAll()}static#e=this.\u0275fac=function(r){return new(r||e)(y(Lo))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-book-list"]],decls:4,vars:3,consts:[["class","book-list",4,"ngIf"],[1,"book-list"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"book"]],template:function(r,o){1&r&&(A(0,"h1"),B(1,"Books"),T(),Ce(2,h2,3,2,"ul",0),Vi(3,"async")),2&r&&(U(2),q("ngIf",ji(3,1,o.books$)))},dependencies:[pr,gr,l2,qi]})}return e})()},{path:"books/:isbn",component:i2}];let g2=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[ko.forChild(p2),ko]})}return e})(),m2=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[_f,g2]})}return e})(),v2=(()=>{class e{constructor(t){this.authService=t}intercept(t,r){if(this.authService.isAuthenticated){const i=t.clone({setHeaders:{Authorization:"Bearer 1234567890"}});return r.handle(i)}return r.handle(t)}static#e=this.\u0275fac=function(r){return new(r||e)(M(lE))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac})}return e})(),dE=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static#e=this.\u0275fac=function(r){return new(r||e)(y(Xt),y(at))};static#t=this.\u0275dir=O({type:e})}return e})(),_r=(()=>{class e extends dE{static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=Le(e)))(o||e)}}();static#t=this.\u0275dir=O({type:e,features:[te]})}return e})();const Ut=new I("NgValueAccessor"),_2={provide:Ut,useExisting:oe(()=>Vu),multi:!0},w2=new I("CompositionEventMode");let Vu=(()=>{class e extends dE{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function C2(){const e=$n()?$n().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static#e=this.\u0275fac=function(r){return new(r||e)(y(Xt),y(at),y(w2,8))};static#t=this.\u0275dir=O({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,o){1&r&&we("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[de([_2]),te]})}return e})();function Yn(e){return null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}function hE(e){return null!=e&&"number"==typeof e.length}const Ue=new I("NgValidators"),Qn=new I("NgAsyncValidators"),E2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class pE{static min(n){return function gE(e){return n=>{if(Yn(n.value)||Yn(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t{if(Yn(n.value)||Yn(e))return null;const t=parseFloat(n.value);return!isNaN(t)&&t>e?{max:{max:e,actual:n.value}}:null}}(n)}static required(n){return function vE(e){return Yn(e.value)?{required:!0}:null}(n)}static requiredTrue(n){return function yE(e){return!0===e.value?null:{required:!0}}(n)}static email(n){return function DE(e){return Yn(e.value)||E2.test(e.value)?null:{email:!0}}(n)}static minLength(n){return function _E(e){return n=>Yn(n.value)||!hE(n.value)?null:n.value.lengthhE(n.value)&&n.value.length>e?{maxlength:{requiredLength:e,actualLength:n.value.length}}:null}(n)}static pattern(n){return function wE(e){if(!e)return ju;let n,t;return"string"==typeof e?(t="","^"!==e.charAt(0)&&(t+="^"),t+=e,"$"!==e.charAt(e.length-1)&&(t+="$"),n=new RegExp(t)):(t=e.toString(),n=e),r=>{if(Yn(r.value))return null;const o=r.value;return n.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}(n)}static nullValidator(n){return null}static compose(n){return AE(n)}static composeAsync(n){return TE(n)}}function ju(e){return null}function EE(e){return null!=e}function bE(e){return Ti(e)?Me(e):e}function IE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function ME(e,n){return n.map(t=>t(e))}function SE(e){return e.map(n=>function b2(e){return!e.validate}(n)?n:t=>n.validate(t))}function AE(e){if(!e)return null;const n=e.filter(EE);return 0==n.length?null:function(t){return IE(ME(t,n))}}function sh(e){return null!=e?AE(SE(e)):null}function TE(e){if(!e)return null;const n=e.filter(EE);return 0==n.length?null:function(t){return function y2(...e){const n=Zh(e),{args:t,keys:r}=ew(e),o=new ve(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let u=s,c=s;for(let l=0;l{d||(d=!0,c--),a[l]=f},()=>u--,void 0,()=>{(!u||!d)&&(c||i.next(r?nw(r,a):a),i.complete())}))}});return n?o.pipe(tw(n)):o}(ME(t,n).map(bE)).pipe(Y(IE))}}function ah(e){return null!=e?TE(SE(e)):null}function NE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function RE(e){return e._rawValidators}function xE(e){return e._rawAsyncValidators}function uh(e){return e?Array.isArray(e)?e:[e]:[]}function Bu(e,n){return Array.isArray(e)?e.includes(n):e===n}function OE(e,n){const t=uh(n);return uh(e).forEach(o=>{Bu(t,o)||t.push(o)}),t}function FE(e,n){return uh(n).filter(t=>!Bu(e,t))}class PE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=sh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ah(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class et extends PE{get formDirective(){return null}get path(){return null}}class Xn extends PE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class kE{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let LE=(()=>{class e extends kE{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(y(Xn,2))};static#t=this.\u0275dir=O({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&Ni("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[te]})}return e})(),VE=(()=>{class e extends kE{constructor(t){super(t)}static#e=this.\u0275fac=function(r){return new(r||e)(y(et,10))};static#t=this.\u0275dir=O({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&Ni("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[te]})}return e})();const gs="VALID",Hu="INVALID",Vo="PENDING",ms="DISABLED";function dh(e){return(Uu(e)?e.validators:e)||null}function fh(e,n){return(Uu(n)?n.asyncValidators:e)||null}function Uu(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function BE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new _(1e3,"");if(!r[t])throw new _(1001,"")}function $E(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new _(1002,"")})}class hh{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===gs}get invalid(){return this.status===Hu}get pending(){return this.status==Vo}get disabled(){return this.status===ms}get enabled(){return this.status!==ms}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(OE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(OE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(FE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(FE(n,this._rawAsyncValidators))}hasValidator(n){return Bu(this._rawValidators,n)}hasAsyncValidator(n){return Bu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Vo,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ms,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=gs,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===gs||this.status===Vo)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ms:gs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Vo,this._hasOwnPendingAsyncValidator=!0;const t=bE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new pe,this.statusChanges=new pe}_calculateStatus(){return this._allControlsDisabled()?ms:this.errors?Hu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vo)?Vo:this._anyControlsHaveStatus(Hu)?Hu:gs}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Uu(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function A2(e){return Array.isArray(e)?sh(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function T2(e){return Array.isArray(e)?ah(e):e||null}(this._rawAsyncValidators)}}class zu extends hh{constructor(n,t,r){super(dh(t),fh(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){$E(this,0,n),Object.keys(n).forEach(r=>{BE(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const jo=new I("CallSetDisabledState",{providedIn:"root",factory:()=>Gu}),Gu="always";function qu(e,n){return[...n.path,e]}function vs(e,n,t=Gu){ph(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function x2(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HE(e,n)})}(e,n),function F2(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function O2(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function R2(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Wu(e,n,t=!0){const r=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(r),n.valueAccessor.registerOnTouched(r)),Yu(e,n),e&&(n._invokeOnDestroyCallbacks(),e._registerOnCollectionChange(()=>{}))}function Zu(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function ph(e,n){const t=RE(e);null!==n.validator?e.setValidators(NE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=xE(e);null!==n.asyncValidator?e.setAsyncValidators(NE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Zu(n._rawValidators,o),Zu(n._rawAsyncValidators,o)}function Yu(e,n){let t=!1;if(null!==e){if(null!==n.validator){const o=RE(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.validator);i.length!==o.length&&(t=!0,e.setValidators(i))}}if(null!==n.asyncValidator){const o=xE(e);if(Array.isArray(o)&&o.length>0){const i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(t=!0,e.setAsyncValidators(i))}}}const r=()=>{};return Zu(n._rawValidators,r),Zu(n._rawAsyncValidators,r),t}function HE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function GE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function qE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const un=class extends hh{constructor(n=null,t,r){super(dh(t),fh(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Uu(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=qE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){GE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){GE(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){qE(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};let WE=(()=>{class e extends et{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return qu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let t;return function(o){return(t||(t=Le(e)))(o||e)}}();static#t=this.\u0275dir=O({type:e,features:[te]})}return e})(),XE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275dir=O({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return e})(),KE=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({})}return e})();const Dh=new I("NgModelWithFormControlWarning"),Z2={provide:et,useExisting:oe(()=>Ds)};let Ds=(()=>{class e extends et{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new pe,this._setValidators(t),this._setAsyncValidators(r)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Yu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const r=this.form.get(t.path);return vs(r,t,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),r}getControl(t){return this.form.get(t.path)}removeControl(t){Wu(t.control||null,t,!1),function V2(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,r){this.form.get(t.path).setValue(r)}onSubmit(t){return this.submitted=!0,function zE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const r=t.control,o=this.form.get(t.path);r!==o&&(Wu(r||null,t),(e=>e instanceof un)(o)&&(vs(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const r=this.form.get(t.path);(function UE(e,n){ph(e,n)})(r,t),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const r=this.form.get(t.path);r&&function P2(e,n){return Yu(e,n)}(r,t)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ph(this.form,this),this._oldForm&&Yu(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(r){return new(r||e)(y(Ue,10),y(Qn,10),y(jo,8))};static#t=this.\u0275dir=O({type:e,selectors:[["","formGroup",""]],hostBindings:function(r,o){1&r&&we("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[de([Z2]),te,gt]})}return e})();const Y2={provide:et,useExisting:oe(()=>_h)};let _h=(()=>{class e extends WE{constructor(t,r,o){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){rb(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(y(et,13),y(Ue,10),y(Qn,10))};static#t=this.\u0275dir=O({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[de([Y2]),te]})}return e})();const Q2={provide:et,useExisting:oe(()=>Qu)};let Qu=(()=>{class e extends et{constructor(t,r,o){super(),this.name=null,this._parent=t,this._setValidators(r),this._setAsyncValidators(o)}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 qu(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){rb(this._parent)}static#e=this.\u0275fac=function(r){return new(r||e)(y(et,13),y(Ue,10),y(Qn,10))};static#t=this.\u0275dir=O({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[de([Q2]),te]})}return e})();function rb(e){return!(e instanceof _h||e instanceof Ds||e instanceof Qu)}const X2={provide:Xn,useExisting:oe(()=>Ch)};let Ch=(()=>{class e extends Xn{set isDisabled(t){}static#e=this._ngModelWarningSentOnce=!1;constructor(t,r,o,i,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.name=null,this.update=new pe,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function vh(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===Vu?t=i:function L2(e){return Object.getPrototypeOf(e.constructor)===_r}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){this._added||this._setUpControl(),function mh(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return qu(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static#t=this.\u0275fac=function(r){return new(r||e)(y(et,13),y(Ue,10),y(Qn,10),y(Ut,10),y(Dh,8))};static#n=this.\u0275dir=O({type:e,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[de([X2]),te,gt]})}return e})(),fj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[KE]})}return e})();class gb extends hh{constructor(n,t,r){super(dh(t),fh(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(n){return this.controls[this._adjustIndex(n)]}push(n,t={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(n,t,r={}){this.controls.splice(n,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,t={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(n,t,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,t={}){$E(this,0,n),n.forEach((r,o)=>{BE(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n=[],t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((t,r)=>!!r._syncPendingControls()||t,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((t,r)=>{n(t,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(t=>t.enabled&&n(t))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(const n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}}let pj=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:Dh,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:jo,useValue:t.callSetDisabledState??Gu}]}}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[fj]})}return e})(),gj=(()=>{class e{constructor(t){this.service=t}isbnExists(){return t=>this.service.check(t.value).pipe(Y(r=>r?{isbnexists:!0}:null))}static#e=this.\u0275fac=function(r){return new(r||e)(M(Lo))};static#t=this.\u0275prov=S({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const mj=function(e){if(!e.value||"string"!=typeof e.value)return null;const t=e.value.replace(/-/g,"").length;return 10===t||13===t?null:{isbnformat:!0}},vj=function(e){return!(e=>e instanceof gb)(e)||e.controls.some(n=>!!n.value)?null:{atleastonevalue:!0}};let yj=(()=>{class e{constructor(t,r){this.renderer=t,this.elementRef=r,this.onInput=o=>{const i=o?new Date(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()):null,s=i?i.toISOString():null;this.onChange(s)},this.onChange=()=>{},this.onTouched=()=>{}}writeValue(t){const r=t?new Date(t):null,o=r?new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())):null;this.renderer.setProperty(this.elementRef.nativeElement,"valueAsDate",o)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.renderer.setProperty(this.elementRef.nativeElement,"disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(y(Xt),y(at))},e.\u0275dir=O({type:e,selectors:[["","useValueAsLocalIso",""]],hostBindings:function(t,r){1&t&&we("input",function(i){return r.onInput(i.target.valueAsDate)})("blur",function(){return r.onTouched()})},standalone:!0,features:[de([{provide:Ut,useExisting:oe(()=>e),multi:!0}])]}),e})();function Dj(e,n){if(1&e&&(A(0,"p",1),B(1),T()),2&e){const t=n.$implicit;U(1),nn(" ",t,"\n")}}let _j=(()=>{class e{constructor(t){this.form=t,this.messages={}}get errors(){if(!this.controlName)return[];const t=this.form.control.get(this.controlName);return t&&t.errors&&t.touched?Object.keys(t.errors).map(r=>this.messages[r]):[]}static#e=this.\u0275fac=function(r){return new(r||e)(y(Ds))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-form-errors"]],inputs:{controlName:"controlName",messages:"messages"},decls:1,vars:1,consts:[["class","error",4,"ngFor","ngForOf"],[1,"error"]],template:function(r,o){1&r&&Ce(0,Dj,2,1,"p",0),2&r&&q("ngForOf",o.errors)},dependencies:[pr]})}return e})();function Cj(e,n){if(1&e&&He(0,"input",20),2&e){const t=n.index;q("formControlName",t),Pt("aria-label","Author "+t)}}const wj=function(){return{required:"Title is required"}},Ej=function(){return{required:"ISBN is required",isbnformat:"ISBN must have 10 or 13 chars",isbnexists:"ISBN already exists"}},bj=function(){return{atleastonevalue:"At least one author required"}};let mb=(()=>{class e{constructor(){this.submitBook=new pe,this.form=new zu({title:new un("",{nonNullable:!0,validators:pE.required}),subtitle:new un("",{nonNullable:!0}),isbn:new un("",{nonNullable:!0,validators:[pE.required,mj],asyncValidators:E(gj).isbnExists()}),description:new un("",{nonNullable:!0}),published:new un("",{nonNullable:!0}),authors:this.buildAuthorsArray([""]),thumbnailUrl:new un("",{nonNullable:!0})})}ngOnChanges(){this.book?(this.setFormValues(this.book),this.setEditMode(!0)):this.setEditMode(!1)}setFormValues(t){this.form.patchValue(t),this.form.setControl("authors",this.buildAuthorsArray(t.authors))}setEditMode(t){const r=this.form.controls.isbn;t?r.disable():r.enable()}buildAuthorsArray(t){return new gb(t.map(r=>new un(r,{nonNullable:!0})),vj)}get authors(){return this.form.controls.authors}addAuthorControl(){this.authors.push(new un("",{nonNullable:!0}))}submitForm(){const t=this.form.getRawValue(),r=t.authors.filter(i=>!!i),o={...t,authors:r};this.submitBook.emit(o)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-book-form"]],inputs:{book:"book"},outputs:{submitBook:"submitBook"},features:[gt],decls:30,vars:9,consts:[[3,"formGroup","ngSubmit"],["for","title"],["id","title","formControlName","title"],["controlName","title",3,"messages"],["for","subtitle"],["id","subtitle","formControlName","subtitle"],["for","isbn"],["id","isbn","formControlName","isbn"],["controlName","isbn",3,"messages"],["type","button",1,"add",3,"click"],["formArrayName","authors"],[3,"formControlName",4,"ngFor","ngForOf"],["controlName","authors",3,"messages"],["for","description"],["id","description","formControlName","description"],["for","published"],["type","date","useValueAsLocalIso","","id","published","formControlName","published"],["for","thumbnailUrl"],["type","url","id","thumbnailUrl","formControlName","thumbnailUrl"],["type","submit",3,"disabled"],[3,"formControlName"]],template:function(r,o){1&r&&(A(0,"form",0),we("ngSubmit",function(){return o.submitForm()}),A(1,"label",1),B(2,"Title"),T(),He(3,"input",2)(4,"bm-form-errors",3),A(5,"label",4),B(6,"Subtitle"),T(),He(7,"input",5),A(8,"label",6),B(9,"ISBN"),T(),He(10,"input",7)(11,"bm-form-errors",8),A(12,"label"),B(13,"Authors"),T(),A(14,"button",9),we("click",function(){return o.addAuthorControl()}),B(15," + Author "),T(),A(16,"fieldset",10),Ce(17,Cj,1,2,"input",11),T(),He(18,"bm-form-errors",12),A(19,"label",13),B(20,"Description"),T(),He(21,"textarea",14),A(22,"label",15),B(23,"Published"),T(),He(24,"input",16),A(25,"label",17),B(26,"Thumbnail URL"),T(),He(27,"input",18),A(28,"button",19),B(29," Save "),T()()),2&r&&(q("formGroup",o.form),U(4),q("messages",Ua(6,wj)),U(7),q("messages",Ua(7,Ej)),U(6),q("ngForOf",o.authors.controls),U(1),q("messages",Ua(8,bj)),U(10),q("disabled",o.form.invalid))},dependencies:[pr,XE,Vu,LE,VE,Ds,Ch,Qu,yj,_j]})}return e})();function Mj(e,n){if(1&e){const t=go();A(0,"bm-book-form",1),we("submitBook",function(o){return Pr(t),kr(kt().update(o))}),T()}2&e&&q("book",n.ngIf)}const Sj=[{path:"admin",redirectTo:"admin/create"},{path:"admin/create",component:(()=>{class e{constructor(t,r){this.service=t,this.router=r}create(t){this.service.create(t).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}static#e=this.\u0275fac=function(r){return new(r||e)(y(Lo),y(Ke))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-book-create"]],decls:3,vars:0,consts:[[3,"submitBook"]],template:function(r,o){1&r&&(A(0,"h1"),B(1,"Create Book"),T(),A(2,"bm-book-form",0),we("submitBook",function(s){return o.create(s)}),T())},dependencies:[mb]})}return e})()},{path:"admin/edit/:isbn",component:(()=>{class e{constructor(t,r,o){this.service=t,this.route=r,this.router=o,this.book$=this.route.paramMap.pipe(Y(i=>i.get("isbn")),ft(i=>this.service.getSingle(i)))}update(t){this.service.update(t).subscribe(r=>{this.router.navigate(["/books",r.isbn])})}static#e=this.\u0275fac=function(r){return new(r||e)(y(Lo),y(Wn),y(Ke))};static#t=this.\u0275cmp=It({type:e,selectors:[["bm-book-edit"]],decls:4,vars:3,consts:[[3,"book","submitBook",4,"ngIf"],[3,"book","submitBook"]],template:function(r,o){1&r&&(A(0,"h1"),B(1,"Edit Book"),T(),Ce(2,Mj,1,1,"bm-book-form",0),Vi(3,"async")),2&r&&(U(2),q("ngIf",ji(3,1,o.book$)))},dependencies:[gr,mb,qi]})}return e})()}];let Aj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[ko.forChild(Sj),ko]})}return e})(),Tj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e});static#n=this.\u0275inj=Ve({imports:[_f,Aj,pj]})}return e})(),Nj=(()=>{class e{static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275mod=ze({type:e,bootstrap:[JV]});static#n=this.\u0275inj=Ve({providers:[{provide:GC,useClass:v2,multi:!0}],imports:[M1,YV,tk,m2,Tj]})}return e})();b1().bootstrapModule(Nj).catch(e=>console.error(e))}},re=>{re(re.s=513)}]); \ No newline at end of file diff --git a/polyfills.b3066e285bfbf9c7.js b/polyfills.b3066e285bfbf9c7.js deleted file mode 100644 index 1e51a75..0000000 --- a/polyfills.b3066e285bfbf9c7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbook_monkey=self.webpackChunkbook_monkey||[]).push([[429],{332:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static#e=this.__symbol__=a;static assertZonePatched(){if(e.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===P))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==P&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new p(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new p(P,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new p(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;CL.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class p{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?p.invokeTask:function(){return p.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}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}}}const M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||e[O]&&(K=e[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("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:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,pe=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",me=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(e){if(!(e=e||Y.event))return;let n=we[e.type];n||(n=we[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let o=ue(e,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=we[d];b||(b=we[d]=j("ON_PROPERTY"+d)),o.set=function(v){let p=this;!p&&e===Y&&(p=Y),p&&("function"==typeof p[b]&&p.removeEventListener(d,Ue),y&&y.call(p,null),p[b]=v,"function"==typeof v&&p.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const p=v[b];if(p)return p;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},pe(e,n,o),e[c]=!0}function qe(e,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(e,n){e[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),p=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const m=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];m&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{const S=l[R],Z=!!s&&_===s[_];Z&&(s[J]=S,s[x]=w);const D=u.run(m,void 0,Z&&m!==K&&m!==H?[]:[S]);z(s,!0,D)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let m of u)f++,s.push(t.resolve(m))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new t((m,S)=>{for(let Z=0;Z{g||(g=!0,m(D))},D=>{w.push(D),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,Z)=>{s=S,f=Z});function w(S){s(S)}function m(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(w,m);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((D,V)=>{f=D,g=V}),m=2,S=0;const Z=[];for(let D of u){B(D)||(D=this.resolve(D));const V=S;try{D.then(F=>{Z[V]=s?s.thenCallback(F):F,m--,0===m&&f(Z)},F=>{s?(Z[V]=s.errorCallback(F),m--,0===m&&f(Z)):g(F)})}catch(F){g(F)}m++,S++}return m-=2,0===m&&f(Z),w}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[p]=f,l.prototype.then=function(g,w){return new t((S,Z)=>{f.call(this,S,Z)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const p=e[o];if(p)return n.call(p)}if(this===Error){const p=e[c];if(p)return n.call(p)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+me+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ce,o=(n?n(e):e)+ie,c=me+i,a=me+o;te[e]={},te[e][ce]=c,te[e][ie]=a}function dt(e,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||De,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",p="prependListener",M="."+p+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const w=g&&s.target[g];if(w)for(let m=0;mfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(p){const M=`${i}.${o}::`+p,O=b.prototype;try{if(O.hasOwnProperty(p)){const N=e.ObjectGetOwnPropertyDescriptor(O,p);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,p,N)):O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}else O[p]&&(O[p]=e.wrapWithCurrentZone(O[p],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function Qe(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(e,n,i,o){e&&qe(e,Qe(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=pe,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=j("zoneTask");function Te(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const p=v.data;return p.args[0]=function(){return v.invoke.apply(this,arguments)},p.handleId=c.apply(e,p.args),v}function b(v){return a.call(e,v.data.handleId)}c=ae(e,n+=o,v=>function(p,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Me(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=ae(e,i,v=>function(p,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Te(e,n,i,"Timeout"),Te(e,n,i,"Interval"),Te(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(Pe&&!Be||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function pt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const p=v.XMLHttpRequest;if(!p)return;const M=p.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Oe],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return le(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Ke(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ue=>{ue(ue.s=332)}]); \ No newline at end of file diff --git a/runtime.75ef82cb034b83f6.js b/runtime.75ef82cb034b83f6.js deleted file mode 100644 index 0cc3898..0000000 --- a/runtime.75ef82cb034b83f6.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,i={},_={};function a(e){var f=_[e];if(void 0!==f)return f.exports;var r=_[e]={exports:{}};return i[e](r,r.exports,a),r.exports}a.m=i,e=[],a.O=(f,r,u,o)=>{if(!r){var c=1/0;for(n=0;n=o)&&Object.keys(a.O).every(d=>a.O[d](r[l]))?r.splice(l--,1):(t=!1,o0&&e[n-1][2]>o;n--)e[n]=e[n-1];e[n]=[r,u,o]},a.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={666:0};a.O.j=u=>0===e[u];var f=(u,o)=>{var l,s,[n,c,t]=o,v=0;if(n.some(b=>0!==e[b])){for(l in c)a.o(c,l)&&(a.m[l]=c[l]);if(t)var k=t(a)}for(u&&u(o);vli:not(:has(>a)){padding:.9em 1.1em}ul.search-results>li>a{visibility:visible!important;white-space:normal;text-align:left;text-transform:none;box-sizing:inherit;background-color:transparent;text-decoration:none;border-radius:.3 .3 0em 0em;cursor:initial;display:block;overflow:hidden;font-size:1em;padding:.9em 1.1em;color:#000000de;line-height:1.33;border-bottom:1px solid rgba(34,36,38,.1)}ul.search-results>li>a{cursor:pointer}ul.search-results>li>a:hover{background:#F9FAFB}ul.search-results>li>a>p{visibility:visible!important;white-space:normal;text-align:left;text-transform:none;cursor:pointer;box-sizing:inherit;margin:0;line-height:1.4em;font-size:.92857143em;color:#505050}.book-list{margin:0}.book-list .list-item{display:grid;grid-template-columns:minmax(50px,120px) auto;gap:0px 0px;grid-template-areas:"thumbnail ." "thumbnail ." "thumbnail ." "thumbnail ." "thumbnail ." "thumbnail ." "thumbnail .";border-bottom:1px solid rgba(34,36,38,.15);padding:1em;column-gap:1em}.book-list a{text-decoration:none;color:inherit}.book-list a:hover{color:#000c}.book-list img{grid-area:thumbnail;min-width:120px;width:120px;height:150px}.book-list h2{margin:0}.book-list h3{margin-top:0}.details>h2{padding-bottom:10px;border-bottom:1px solid rgba(34,36,38,.15)}.details h2{margin-bottom:0;font-size:1.3em}.details .header{display:flex;justify-content:space-between;padding-bottom:10px;flex-wrap:wrap}.details .header ul{margin:0}.details .header h2{margin-top:10px}.details .header>div{padding-right:20px}.details .header>div:last-child{padding-right:0;min-width:80px}.details p{padding-top:10px;white-space:pre-wrap}.details img{width:200px;height:250px;display:block;margin:1em 0}form{max-width:700px}form input{width:calc(100% - 4em);margin:5px 0 22px}form textarea{width:calc(100% - 2.4em);margin:5px 0 22px}form input:disabled,form textarea:disabled{background-color:#0000000d}form button.add{margin-left:10px}form fieldset{width:100%;border:none;margin:0;padding:0}form fieldset>input:only-child{width:calc(100% - 4em)}form fieldset>input{width:calc(50% - 4em)}form fieldset input:nth-child(odd){margin-right:.2em}form>button[type=submit]{background-color:#287e2b;color:#fff}form>button[type=submit]:hover{background-color:#096c0d}input[type=date],input[type=time]{min-height:1.2em;-webkit-appearance:none}.error{top:-20px;position:relative;color:#db2828;font-size:14px}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media only screen and (max-width: 700px){nav{display:flex;border:none;box-shadow:none;gap:.5em 0}nav>a{border:1px solid rgba(34,36,38,.15)}nav>a:first-of-type{border-top-left-radius:.3em;border-bottom-left-radius:.3em;border-right:none}nav>a:last-of-type{border-top-right-radius:.3em;border-bottom-right-radius:.3em;border-left:none;margin-right:2em}nav .actions{margin:0;gap:.5rem;min-width:200px}nav .actions button{margin:0}}@media only screen and (max-width: 600px){nav .actions{justify-content:flex-end}}@media only screen and (max-width: 500px){nav>a{padding:.7em}nav>a:last-of-type{margin-right:0}}@media only screen and (max-width: 460px){h2{font-size:1.2em}[role=doc-subtitle]{font-size:1.1rem}.book-list img{grid-area:thumbnail;min-width:100px;width:100px;height:100px}.book-list .list-item{column-gap:2em;grid-template-columns:1fr 2fr}}@media only screen and (max-width: 360px){.book-list img{grid-area:thumbnail;min-width:80px;width:80px;height:100px}.book-list .list-item{column-gap:1em}}