diff --git a/assets/wasm/castle_sim.js b/assets/wasm/castle_sim.js index 21f5ed8..260ae90 100644 --- a/assets/wasm/castle_sim.js +++ b/assets/wasm/castle_sim.js @@ -1447,23 +1447,23 @@ function __wbg_get_imports() { return addHeapObject(ret); }; imports.wbg.__wbindgen_closure_wrapper3264 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1614, __wbg_adapter_47); + const ret = makeMutClosure(arg0, arg1, 1613, __wbg_adapter_47); return addHeapObject(ret); }; imports.wbg.__wbindgen_closure_wrapper3265 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1614, __wbg_adapter_50); + const ret = makeMutClosure(arg0, arg1, 1613, __wbg_adapter_50); return addHeapObject(ret); }; imports.wbg.__wbindgen_closure_wrapper3605 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1818, __wbg_adapter_53); + const ret = makeMutClosure(arg0, arg1, 1817, __wbg_adapter_53); return addHeapObject(ret); }; imports.wbg.__wbindgen_closure_wrapper3607 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1818, __wbg_adapter_53); + const ret = makeMutClosure(arg0, arg1, 1817, __wbg_adapter_53); return addHeapObject(ret); }; imports.wbg.__wbindgen_closure_wrapper3960 = function(arg0, arg1, arg2) { - const ret = makeMutClosure(arg0, arg1, 1899, __wbg_adapter_58); + const ret = makeMutClosure(arg0, arg1, 1898, __wbg_adapter_58); return addHeapObject(ret); }; diff --git a/assets/wasm/castle_sim_bg.wasm b/assets/wasm/castle_sim_bg.wasm index 7030b4d..21cc4a7 100644 Binary files a/assets/wasm/castle_sim_bg.wasm and b/assets/wasm/castle_sim_bg.wasm differ diff --git a/60998f1c174b9e99ae4d.wasm b/d38fd5deefec3ac266ae.wasm similarity index 81% rename from 60998f1c174b9e99ae4d.wasm rename to d38fd5deefec3ac266ae.wasm index 7030b4d..21cc4a7 100644 Binary files a/60998f1c174b9e99ae4d.wasm and b/d38fd5deefec3ac266ae.wasm differ diff --git a/index.html b/index.html index 6f6138b..a3f77c1 100644 --- a/index.html +++ b/index.html @@ -11,6 +11,6 @@ - + \ No newline at end of file diff --git a/main.53fe57abd59806a032d0.js b/main.f68d8cc3d65e53069d96.js similarity index 99% rename from main.53fe57abd59806a032d0.js rename to main.f68d8cc3d65e53069d96.js index c13c7e9..342c237 100644 --- a/main.53fe57abd59806a032d0.js +++ b/main.f68d8cc3d65e53069d96.js @@ -1 +1 @@ -(self.webpackChunkcastle_sim_web=self.webpackChunkcastle_sim_web||[]).push([[179],{255:rn=>{function jt(ot){return Promise.resolve().then(()=>{var St=new Error("Cannot find module '"+ot+"'");throw St.code="MODULE_NOT_FOUND",St})}jt.keys=()=>[],jt.resolve=jt,jt.id=255,rn.exports=jt},994:(rn,jt,ot)=>{"use strict";ot.d(jt,{ZP:()=>Co});var St=ot(239);let W;rn=ot.hmd(rn);const Ne=new Array(128).fill(void 0);function _(g){return Ne[g]}Ne.push(void 0,null,!0,!1);let kt=Ne.length;function Xe(g){const d=_(g);return function(g){g<132||(Ne[g]=kt,kt=g)}(g),d}const Lr="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&Lr.decode();let ft=null;function de(){return(null===ft||0===ft.byteLength)&&(ft=new Uint8Array(W.memory.buffer)),ft}function be(g,d){return g>>>=0,Lr.decode(de().subarray(g,g+d))}function T(g){kt===Ne.length&&Ne.push(Ne.length+1);const d=kt;return kt=Ne[d],Ne[d]=g,d}let Ut=0;const _e="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Ya="function"==typeof _e.encodeInto?function(g,d){return _e.encodeInto(g,d)}:function(g,d){const f=_e.encode(g);return d.set(f),{read:g.length,written:f.length}};function sn(g,d,f){if(void 0===f){const ee=_e.encode(g),on=d(ee.length,1)>>>0;return de().subarray(on,on+ee.length).set(ee),Ut=ee.length,on}let b=g.length,v=d(b,1)>>>0;const N=de();let X=0;for(;X127)break;N[v+X]=ee}if(X!==b){0!==X&&(g=g.slice(X)),v=f(v,b,b=X+3*g.length,1)>>>0;const ee=de().subarray(v+X,v+b);X+=Ya(g,ee).written}return Ut=X,v}function qn(g){return null==g}let Tn=null;function Fe(){return(null===Tn||0===Tn.byteLength)&&(Tn=new Int32Array(W.memory.buffer)),Tn}function Ja(g){const d=typeof g;if("number"==d||"boolean"==d||null==g)return`${g}`;if("string"==d)return`"${g}"`;if("symbol"==d){const v=g.description;return null==v?"Symbol":`Symbol(${v})`}if("function"==d){const v=g.name;return"string"==typeof v&&v.length>0?`Function(${v})`:"Function"}if(Array.isArray(g)){const v=g.length;let N="[";v>0&&(N+=Ja(g[0]));for(let X=1;X1))return toString.call(g);if(b=f[1],"Object"==b)try{return"Object("+JSON.stringify(g)+")"}catch(v){return"Object"}return g instanceof Error?`${g.name}: ${g.message}\n${g.stack}`:b}function ht(g,d,f,b){const v={a:g,b:d,cnt:1,dtor:f},N=(...X)=>{v.cnt++;const ee=v.a;v.a=0;try{return b(ee,v.b,...X)}finally{0==--v.cnt?W.__wbindgen_export_2.get(v.dtor)(ee,v.b):v.a=ee}};return N.original=v,N}function fe(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5f210e48aab0ea44(g,d,T(f))}function Za(g,d,f,b){W._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c2bfaaebc689190(g,d,T(f),T(b))}function xg(g,d){W._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7a9686a82a672b4e(g,d)}function Vr(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf76e8c51bbf6cc6(g,d,T(f))}function Pu(g,d){W._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b112b8cc6fb8d46(g,d)}function bo(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h11203933d6489286(g,d,T(f))}function pt(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd794cbf153a7b2d4(g,d,T(f))}function oe(g,d){try{return g.apply(this,d)}catch(f){W.__wbindgen_exn_store(T(f))}}let re=null;function wo(g,d){return g>>>=0,((null===re||0===re.byteLength)&&(re=new Uint32Array(W.memory.buffer)),re).subarray(g/4,g/4+d)}function Vu(g,d){return Eo.apply(this,arguments)}function Eo(){return(Eo=(0,St.Z)(function*(g,d){if("function"==typeof Response&&g instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(g,d)}catch(b){if("application/wasm"==g.headers.get("Content-Type"))throw b;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",b)}const f=yield g.arrayBuffer();return yield WebAssembly.instantiate(f,d)}{const f=yield WebAssembly.instantiate(g,d);return f instanceof WebAssembly.Instance?{instance:f,module:g}:f}})).apply(this,arguments)}function us(){const g={wbg:{}};return g.wbg.__wbindgen_object_drop_ref=function(d){Xe(d)},g.wbg.__wbindgen_cb_drop=function(d){const f=Xe(d).original;return 1==f.cnt--&&(f.a=0,!0)},g.wbg.__wbindgen_string_new=function(d,f){return T(be(d,f))},g.wbg.__wbindgen_object_clone_ref=function(d){return T(_(d))},g.wbg.__wbindgen_is_undefined=function(d){return void 0===_(d)},g.wbg.__wbg_new_abda76e883ba8a5f=function(){return T(new Error)},g.wbg.__wbg_stack_658279fe44541cf6=function(d,f){const v=sn(_(f).stack,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_error_f851667af71bcfc6=function(d,f){let b,v;try{b=d,v=f,console.error(be(d,f))}finally{W.__wbindgen_free(b,v,1)}},g.wbg.__wbg_getCoalescedEvents_cbf0545b4f41a219=function(d){return T(_(d).getCoalescedEvents)},g.wbg.__wbg_requestIdleCallback_f34d4a3a4eb49c12=function(d){return T(_(d).requestIdleCallback)},g.wbg.__wbg_onpointerrawupdate_df50a7410637cb72=function(d){return T(_(d).onpointerrawupdate)},g.wbg.__wbg_prototype_cce95c20fdd04d50=function(){return T(ResizeObserverEntry.prototype)},g.wbg.__wbg_Window_561e2079a30e6d18=function(d){return T(_(d).Window)},g.wbg.__wbg_requestFullscreen_c2c3449d40d9a2d3=function(){return oe(function(d){return T(_(d).requestFullscreen())},arguments)},g.wbg.__wbg_performance_e5eb61626698b7a4=function(d){return T(_(d).performance)},g.wbg.__wbg_now_928014da6271b17c=function(d){return _(d).now()},g.wbg.__wbindgen_string_get=function(d,f){const b=_(f),v="string"==typeof b?b:void 0;var N=qn(v)?0:sn(v,W.__wbindgen_malloc,W.__wbindgen_realloc),X=Ut;Fe()[d/4+1]=X,Fe()[d/4+0]=N},g.wbg.__wbindgen_is_object=function(d){const f=_(d);return"object"==typeof f&&null!==f},g.wbg.__wbg_Window_17fd8eee712535f9=function(d){return T(_(d).Window)},g.wbg.__wbg_WorkerGlobalScope_f93b9996824ad878=function(d){return T(_(d).WorkerGlobalScope)},g.wbg.__wbindgen_number_new=function(d){return T(d)},g.wbg.__wbg_instanceof_Window_9029196b662bc42a=function(d){let f;try{f=_(d)instanceof Window}catch(v){f=!1}return f},g.wbg.__wbg_document_f7ace2b956f30a4f=function(d){const f=_(d).document;return qn(f)?0:T(f)},g.wbg.__wbg_navigator_7c9103698acde322=function(d){return T(_(d).navigator)},g.wbg.__wbg_devicePixelRatio_f9de7bddca0eaf20=function(d){return _(d).devicePixelRatio},g.wbg.__wbg_cancelIdleCallback_93fba6286778fa5d=function(d,f){_(d).cancelIdleCallback(f>>>0)},g.wbg.__wbg_getComputedStyle_09fd3af3edcbbc36=function(){return oe(function(d,f){const b=_(d).getComputedStyle(_(f));return qn(b)?0:T(b)},arguments)},g.wbg.__wbg_matchMedia_12ef69056e32d0b3=function(){return oe(function(d,f,b){const v=_(d).matchMedia(be(f,b));return qn(v)?0:T(v)},arguments)},g.wbg.__wbg_requestIdleCallback_cd497d1e5bce8ba1=function(){return oe(function(d,f){return _(d).requestIdleCallback(_(f))},arguments)},g.wbg.__wbg_clearTimeout_220be2fa0577b342=function(d,f){_(d).clearTimeout(f)},g.wbg.__wbg_fetch_25c13b73a41a6660=function(d,f,b){return T(_(d).fetch(be(f,b)))},g.wbg.__wbg_setTimeout_9434bde3b3009c3e=function(){return oe(function(d,f){return _(d).setTimeout(_(f))},arguments)},g.wbg.__wbg_setTimeout_eb1a0d116c26d9f6=function(){return oe(function(d,f,b){return _(d).setTimeout(_(f),b)},arguments)},g.wbg.__wbg_fullscreenElement_07d5b77ef6c958c1=function(d){const f=_(d).fullscreenElement;return qn(f)?0:T(f)},g.wbg.__wbg_createElement_4891554b28d3388b=function(){return oe(function(d,f,b){return T(_(d).createElement(be(f,b)))},arguments)},g.wbg.__wbg_exitFullscreen_5fada21e8623256e=function(d){_(d).exitFullscreen()},g.wbg.__wbg_getElementById_cc0e0d931b0d9a28=function(d,f,b){const v=_(d).getElementById(be(f,b));return qn(v)?0:T(v)},g.wbg.__wbg_querySelectorAll_c03e8664a5a0f0c5=function(){return oe(function(d,f,b){return T(_(d).querySelectorAll(be(f,b)))},arguments)},g.wbg.__wbg_setid_1984ee27e5075311=function(d,f,b){_(d).id=be(f,b)},g.wbg.__wbg_clientWidth_51ec21e3189f5656=function(d){return _(d).clientWidth},g.wbg.__wbg_clientHeight_09ec0b524d59c367=function(d){return _(d).clientHeight},g.wbg.__wbg_getBoundingClientRect_ac9db8cf97ca8083=function(d){return T(_(d).getBoundingClientRect())},g.wbg.__wbg_requestFullscreen_3545278bcd44910c=function(){return oe(function(d){_(d).requestFullscreen()},arguments)},g.wbg.__wbg_setAttribute_e7e80b478b7b8b2f=function(){return oe(function(d,f,b,v,N){_(d).setAttribute(be(f,b),be(v,N))},arguments)},g.wbg.__wbg_setPointerCapture_e7c29336490bba19=function(){return oe(function(d,f){_(d).setPointerCapture(f)},arguments)},g.wbg.__wbg_addEventListener_5651108fc3ffeb6e=function(){return oe(function(d,f,b,v){_(d).addEventListener(be(f,b),_(v))},arguments)},g.wbg.__wbg_removeEventListener_5de660c02ed784e4=function(){return oe(function(d,f,b,v){_(d).removeEventListener(be(f,b),_(v))},arguments)},g.wbg.__wbg_dispatchWorkgroups_c484cd3530a3801d=function(d,f,b,v){_(d).dispatchWorkgroups(f>>>0,b>>>0,v>>>0)},g.wbg.__wbg_dispatchWorkgroupsIndirect_2b89ee1731fab5f8=function(d,f,b){_(d).dispatchWorkgroupsIndirect(_(f),b)},g.wbg.__wbg_end_dab719019df5969c=function(d){_(d).end()},g.wbg.__wbg_setPipeline_598117fdeb73cf8f=function(d,f){_(d).setPipeline(_(f))},g.wbg.__wbg_setBindGroup_dffce83253968cdd=function(d,f,b,v,N,X,ee){_(d).setBindGroup(f>>>0,_(b),wo(v,N),X,ee>>>0)},g.wbg.__wbg_instanceof_GpuOutOfMemoryError_45166ef4e2774fbe=function(d){let f;try{f=_(d)instanceof GPUOutOfMemoryError}catch(v){f=!1}return f},g.wbg.__wbg_has_8720889cf3ad610c=function(d,f,b){return _(d).has(be(f,b))},g.wbg.__wbg_instanceof_GpuValidationError_af2aa2e306669317=function(d){let f;try{f=_(d)instanceof GPUValidationError}catch(v){f=!1}return f},g.wbg.__wbg_get_c77649dd3862b63a=function(d,f){const b=_(d)[f>>>0];return qn(b)?0:T(b)},g.wbg.__wbg_gpu_1678673f109c8aeb=function(d){return T(_(d).gpu)},g.wbg.__wbg_instanceof_HtmlElement_6f4725d4677c7968=function(d){let f;try{f=_(d)instanceof HTMLElement}catch(v){f=!1}return f},g.wbg.__wbg_style_3801009b2339aa94=function(d){return T(_(d).style)},g.wbg.__wbg_click_9f2ce0ac84b1ce73=function(d){_(d).click()},g.wbg.__wbg_focus_dbcbbbb2a04c0e1f=function(){return oe(function(d){_(d).focus()},arguments)},g.wbg.__wbg_features_dfb2178c91fa1dd7=function(d){return T(_(d).features)},g.wbg.__wbg_queue_f2aeb5c277e56f93=function(d){return T(_(d).queue)},g.wbg.__wbg_setonuncapturederror_b3c814f611d5e585=function(d,f){_(d).onuncapturederror=_(f)},g.wbg.__wbg_createBindGroup_fa5515d52f9c6a69=function(d,f){return T(_(d).createBindGroup(_(f)))},g.wbg.__wbg_createBindGroupLayout_af3b9d9ee0a1f5f9=function(d,f){return T(_(d).createBindGroupLayout(_(f)))},g.wbg.__wbg_createBuffer_36e159f52cc644a7=function(d,f){return T(_(d).createBuffer(_(f)))},g.wbg.__wbg_createCommandEncoder_a50a1dab2b499b95=function(d,f){return T(_(d).createCommandEncoder(_(f)))},g.wbg.__wbg_createComputePipeline_89131452dfd12672=function(d,f){return T(_(d).createComputePipeline(_(f)))},g.wbg.__wbg_createPipelineLayout_1e10c8281fb85c01=function(d,f){return T(_(d).createPipelineLayout(_(f)))},g.wbg.__wbg_createQuerySet_ccb746122176f8e5=function(d,f){return T(_(d).createQuerySet(_(f)))},g.wbg.__wbg_createRenderBundleEncoder_ad2d0237f581427b=function(d,f){return T(_(d).createRenderBundleEncoder(_(f)))},g.wbg.__wbg_createRenderPipeline_745f00bcb1ca6edf=function(d,f){return T(_(d).createRenderPipeline(_(f)))},g.wbg.__wbg_createSampler_09cd36835c9befb3=function(d,f){return T(_(d).createSampler(_(f)))},g.wbg.__wbg_createShaderModule_59bbf537b8b5cf7c=function(d,f){return T(_(d).createShaderModule(_(f)))},g.wbg.__wbg_createTexture_dbd00b550944125c=function(d,f){return T(_(d).createTexture(_(f)))},g.wbg.__wbg_popErrorScope_19075fb98a08b740=function(d){return T(_(d).popErrorScope())},g.wbg.__wbg_pushErrorScope_0728aae3f2d3ed48=function(d,f){_(d).pushErrorScope(Xe(f))},g.wbg.__wbg_now_0cfdc90c97d0c24b=function(d){return _(d).now()},g.wbg.__wbg_debug_9a6b3243fbbebb61=function(d){console.debug(_(d))},g.wbg.__wbg_error_788ae33f81d3b84b=function(d){console.error(_(d))},g.wbg.__wbg_error_c9309504864e78b5=function(d,f){console.error(_(d),_(f))},g.wbg.__wbg_info_2e30e8204b29d91d=function(d){console.info(_(d))},g.wbg.__wbg_log_1d3ae0273d8f4f8a=function(d){console.log(_(d))},g.wbg.__wbg_warn_d60e832f9882c1b2=function(d){console.warn(_(d))},g.wbg.__wbg_instanceof_GpuAdapter_c0a5a310603ba618=function(d){let f;try{f=_(d)instanceof GPUAdapter}catch(v){f=!1}return f},g.wbg.__wbg_features_88901f43932fb28e=function(d){return T(_(d).features)},g.wbg.__wbg_limits_a7f3fbf58768b61f=function(d){return T(_(d).limits)},g.wbg.__wbg_requestDevice_068e794820eb88eb=function(d,f){return T(_(d).requestDevice(_(f)))},g.wbg.__wbg_setwidth_a667a942dba6656e=function(d,f){_(d).width=f>>>0},g.wbg.__wbg_setheight_a747d440760fe5aa=function(d,f){_(d).height=f>>>0},g.wbg.__wbg_getContext_7c5944ea807bf5d3=function(){return oe(function(d,f,b){const v=_(d).getContext(be(f,b));return qn(v)?0:T(v)},arguments)},g.wbg.__wbg_setwidth_15266a5e81f43cf0=function(d,f){_(d).width=f>>>0},g.wbg.__wbg_setheight_2e9bab573f1775a6=function(d,f){_(d).height=f>>>0},g.wbg.__wbg_x_6c8af74c3b4d8c09=function(d){return _(d).x},g.wbg.__wbg_y_4cca2672ce1b5fc1=function(d){return _(d).y},g.wbg.__wbg_width_5728ff70a76f27ac=function(d){return _(d).width},g.wbg.__wbg_height_7fd80bb9bbf69d8c=function(d){return _(d).height},g.wbg.__wbg_getPreferredCanvasFormat_1f6c9ef810196b92=function(d){return T(_(d).getPreferredCanvasFormat())},g.wbg.__wbg_requestAdapter_d8298d7a27a391f0=function(d,f){return T(_(d).requestAdapter(_(f)))},g.wbg.__wbg_clientX_1a480606ab0cabaa=function(d){return _(d).clientX},g.wbg.__wbg_clientY_9c7878f7faf3900f=function(d){return _(d).clientY},g.wbg.__wbg_offsetX_5a58f16f6c3a41b6=function(d){return _(d).offsetX},g.wbg.__wbg_offsetY_c45b4956f6429a95=function(d){return _(d).offsetY},g.wbg.__wbg_ctrlKey_0a805df688b5bf42=function(d){return _(d).ctrlKey},g.wbg.__wbg_shiftKey_8a070ab6169b5fa4=function(d){return _(d).shiftKey},g.wbg.__wbg_altKey_6fc1761a6b7a406e=function(d){return _(d).altKey},g.wbg.__wbg_metaKey_d89287be4389a3c1=function(d){return _(d).metaKey},g.wbg.__wbg_button_7a095234b69de930=function(d){return _(d).button},g.wbg.__wbg_buttons_d0f40e1650e3fa28=function(d){return _(d).buttons},g.wbg.__wbg_movementX_966ec323c169d1a6=function(d){return _(d).movementX},g.wbg.__wbg_movementY_b14b3bc8e1b31f23=function(d){return _(d).movementY},g.wbg.__wbg_pointerId_701aab7b4fb073ff=function(d){return _(d).pointerId},g.wbg.__wbg_pressure_e388b6fd623a3917=function(d){return _(d).pressure},g.wbg.__wbg_pointerType_0009b1e4e6b0f428=function(d,f){const v=sn(_(f).pointerType,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_getCoalescedEvents_927ed71312cc0362=function(d){return T(_(d).getCoalescedEvents())},g.wbg.__wbg_new_9d3e795dcd24a5d9=function(){return oe(function(d){return T(new ResizeObserver(_(d)))},arguments)},g.wbg.__wbg_disconnect_4f00a95c32fad6fe=function(d){_(d).disconnect()},g.wbg.__wbg_observe_e3e06d8e2ad2b89c=function(d,f){_(d).observe(_(f))},g.wbg.__wbg_observe_5f98196bfaa6b83c=function(d,f,b){_(d).observe(_(f),_(b))},g.wbg.__wbg_unobserve_e7fcbda12d671fd7=function(d,f){_(d).unobserve(_(f))},g.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced=function(d){let f;try{f=_(d)instanceof Response}catch(v){f=!1}return f},g.wbg.__wbg_arrayBuffer_288fb3538806e85c=function(){return oe(function(d){return T(_(d).arrayBuffer())},arguments)},g.wbg.__wbg_deltaX_84508d00a1050e70=function(d){return _(d).deltaX},g.wbg.__wbg_deltaY_64823169afb0335d=function(d){return _(d).deltaY},g.wbg.__wbg_deltaMode_1c680147cfdba8a5=function(d){return _(d).deltaMode},g.wbg.__wbg_copyExternalImageToTexture_819ec294d299f624=function(d,f,b,v){_(d).copyExternalImageToTexture(_(f),_(b),_(v))},g.wbg.__wbg_submit_3104e9b014f75846=function(d,f){_(d).submit(_(f))},g.wbg.__wbg_writeBuffer_becf0c8f0323ffd7=function(d,f,b,v,N,X){_(d).writeBuffer(_(f),b,_(v),N,X)},g.wbg.__wbg_writeTexture_465ecc6146e5052c=function(d,f,b,v,N){_(d).writeTexture(_(f),_(b),_(v),_(N))},g.wbg.__wbg_createView_3e46af1f54fdcd1f=function(d,f){return T(_(d).createView(_(f)))},g.wbg.__wbg_destroy_728f676d96e34538=function(d){_(d).destroy()},g.wbg.__wbg_gpu_24536c9523d924b1=function(d){return T(_(d).gpu)},g.wbg.__wbg_contentRect_3a38b9ecf8994843=function(d){return T(_(d).contentRect)},g.wbg.__wbg_devicePixelContentBoxSize_5b7f524383aabe72=function(d){return T(_(d).devicePixelContentBoxSize)},g.wbg.__wbg_inlineSize_9394a3057e5da0ae=function(d){return _(d).inlineSize},g.wbg.__wbg_blockSize_389e379c0494897e=function(d){return _(d).blockSize},g.wbg.__wbg_getPropertyValue_45480a940d0053a0=function(){return oe(function(d,f,b,v){const X=sn(_(f).getPropertyValue(be(b,v)),W.__wbindgen_malloc,W.__wbindgen_realloc),ee=Ut;Fe()[d/4+1]=ee,Fe()[d/4+0]=X},arguments)},g.wbg.__wbg_setProperty_b95ef63ab852879e=function(){return oe(function(d,f,b,v,N){_(d).setProperty(be(f,b),be(v,N))},arguments)},g.wbg.__wbg_getBindGroupLayout_20dc45d52b96fa42=function(d,f){return T(_(d).getBindGroupLayout(f>>>0))},g.wbg.__wbg_altKey_612289acf855835c=function(d){return _(d).altKey},g.wbg.__wbg_ctrlKey_582686fb2263dd3c=function(d){return _(d).ctrlKey},g.wbg.__wbg_shiftKey_48e8701355d8e2d4=function(d){return _(d).shiftKey},g.wbg.__wbg_metaKey_43193b7cc99f8914=function(d){return _(d).metaKey},g.wbg.__wbg_location_e5f8d98ba89b596e=function(d){return _(d).location},g.wbg.__wbg_repeat_52850ed66db69aba=function(d){return _(d).repeat},g.wbg.__wbg_key_8aeaa079126a9cc7=function(d,f){const v=sn(_(f).key,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_code_96d6322b968b2d17=function(d,f){const v=sn(_(f).code,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_settextContent_28d80502cf08bde7=function(d,f,b){_(d).textContent=0===f?void 0:be(f,b)},g.wbg.__wbg_appendChild_51339d4cde00ee22=function(){return oe(function(d,f){return T(_(d).appendChild(_(f)))},arguments)},g.wbg.__wbg_contains_fab0394bee511df3=function(d,f){return _(d).contains(_(f))},g.wbg.__wbg_message_c934153af8567cdb=function(d,f){const v=sn(_(f).message,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_end_bdfb66792e0c59a2=function(d){_(d).end()},g.wbg.__wbg_executeBundles_0a1fdfd83c1a3e57=function(d,f){_(d).executeBundles(_(f))},g.wbg.__wbg_setBlendConstant_e89574db5137b2f6=function(d,f){_(d).setBlendConstant(_(f))},g.wbg.__wbg_setScissorRect_0af8c89e90a6e89c=function(d,f,b,v,N){_(d).setScissorRect(f>>>0,b>>>0,v>>>0,N>>>0)},g.wbg.__wbg_setStencilReference_71be0db67db2f7ab=function(d,f){_(d).setStencilReference(f>>>0)},g.wbg.__wbg_setViewport_9c5fb686baf1cf4f=function(d,f,b,v,N,X,ee){_(d).setViewport(f,b,v,N,X,ee)},g.wbg.__wbg_setBindGroup_ce4432036922cd83=function(d,f,b,v,N,X,ee){_(d).setBindGroup(f>>>0,_(b),wo(v,N),X,ee>>>0)},g.wbg.__wbg_draw_6357a5fbc8a6b097=function(d,f,b,v,N){_(d).draw(f>>>0,b>>>0,v>>>0,N>>>0)},g.wbg.__wbg_drawIndexed_5d1dd89d7375148c=function(d,f,b,v,N,X){_(d).drawIndexed(f>>>0,b>>>0,v>>>0,N,X>>>0)},g.wbg.__wbg_drawIndexedIndirect_526599171cfbbee5=function(d,f,b){_(d).drawIndexedIndirect(_(f),b)},g.wbg.__wbg_drawIndirect_8dd595dc622e21ac=function(d,f,b){_(d).drawIndirect(_(f),b)},g.wbg.__wbg_setIndexBuffer_1f4a86d1cc8c16d9=function(d,f,b,v){_(d).setIndexBuffer(_(f),Xe(b),v)},g.wbg.__wbg_setIndexBuffer_9f8493460611f96b=function(d,f,b,v,N){_(d).setIndexBuffer(_(f),Xe(b),v,N)},g.wbg.__wbg_setPipeline_18ce556bdea62cc5=function(d,f){_(d).setPipeline(_(f))},g.wbg.__wbg_setVertexBuffer_2a2c84d65c1063f9=function(d,f,b,v){_(d).setVertexBuffer(f>>>0,_(b),v)},g.wbg.__wbg_setVertexBuffer_176c2dff823c42c1=function(d,f,b,v,N){_(d).setVertexBuffer(f>>>0,_(b),v,N)},g.wbg.__wbg_getBindGroupLayout_dfc1b97f78c04beb=function(d,f){return T(_(d).getBindGroupLayout(f>>>0))},g.wbg.__wbg_maxTextureDimension1D_4d1ddb46ed9dc470=function(d){return _(d).maxTextureDimension1D},g.wbg.__wbg_maxTextureDimension2D_37a46e61490c8297=function(d){return _(d).maxTextureDimension2D},g.wbg.__wbg_maxTextureDimension3D_7e3a97204d211743=function(d){return _(d).maxTextureDimension3D},g.wbg.__wbg_maxTextureArrayLayers_fee4db585706a5eb=function(d){return _(d).maxTextureArrayLayers},g.wbg.__wbg_maxBindGroups_dc8a5f97ba653c91=function(d){return _(d).maxBindGroups},g.wbg.__wbg_maxBindingsPerBindGroup_3d5ab311420be5df=function(d){return _(d).maxBindingsPerBindGroup},g.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_6b839b7dc97f34f0=function(d){return _(d).maxDynamicUniformBuffersPerPipelineLayout},g.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_5328cd2b9d884831=function(d){return _(d).maxDynamicStorageBuffersPerPipelineLayout},g.wbg.__wbg_maxSampledTexturesPerShaderStage_ac006b00cf776b4a=function(d){return _(d).maxSampledTexturesPerShaderStage},g.wbg.__wbg_maxSamplersPerShaderStage_dc092d6a272be20a=function(d){return _(d).maxSamplersPerShaderStage},g.wbg.__wbg_maxStorageBuffersPerShaderStage_dc5b58734b9ab932=function(d){return _(d).maxStorageBuffersPerShaderStage},g.wbg.__wbg_maxStorageTexturesPerShaderStage_2fec939cb0d5bbfd=function(d){return _(d).maxStorageTexturesPerShaderStage},g.wbg.__wbg_maxUniformBuffersPerShaderStage_b30d53cbf89caeae=function(d){return _(d).maxUniformBuffersPerShaderStage},g.wbg.__wbg_maxUniformBufferBindingSize_eec576e1342504b5=function(d){return _(d).maxUniformBufferBindingSize},g.wbg.__wbg_maxStorageBufferBindingSize_1ef0cc5e43dad09b=function(d){return _(d).maxStorageBufferBindingSize},g.wbg.__wbg_maxVertexBuffers_b4d31be9e3f93990=function(d){return _(d).maxVertexBuffers},g.wbg.__wbg_maxVertexAttributes_904c5eb19a6f6c65=function(d){return _(d).maxVertexAttributes},g.wbg.__wbg_maxVertexBufferArrayStride_6800975c373d83bc=function(d){return _(d).maxVertexBufferArrayStride},g.wbg.__wbg_error_f85e77a2651e41dc=function(d){return T(_(d).error)},g.wbg.__wbg_navigator_41bd88b80ed4685e=function(d){return T(_(d).navigator)},g.wbg.__wbg_preventDefault_24104f3f0a54546a=function(d){_(d).preventDefault()},g.wbg.__wbg_stopPropagation_55539cfa2506c867=function(d){_(d).stopPropagation()},g.wbg.__wbg_instanceof_GpuCanvasContext_7a77e275c38d41d8=function(d){let f;try{f=_(d)instanceof GPUCanvasContext}catch(v){f=!1}return f},g.wbg.__wbg_configure_93a57a4e5e0f8bcf=function(d,f){_(d).configure(_(f))},g.wbg.__wbg_getCurrentTexture_ecedc4f6f71990d2=function(d){return T(_(d).getCurrentTexture())},g.wbg.__wbg_media_1712dab8d575e095=function(d,f){const v=sn(_(f).media,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_matches_07c564b5b4101cf2=function(d){return _(d).matches},g.wbg.__wbg_addListener_85fb6e4bd17e8878=function(){return oe(function(d,f){_(d).addListener(_(f))},arguments)},g.wbg.__wbg_removeListener_3b62020874cfc3c7=function(){return oe(function(d,f){_(d).removeListener(_(f))},arguments)},g.wbg.__wbg_persisted_a24f61318c91570a=function(d){return _(d).persisted},g.wbg.__wbg_size_6540ddb49e0d7120=function(d){return _(d).size},g.wbg.__wbg_usage_f5b34f3e0170424b=function(d){return _(d).usage},g.wbg.__wbg_destroy_9b5398e5b148e210=function(d){_(d).destroy()},g.wbg.__wbg_getMappedRange_becef7e3d9dc5489=function(d,f,b){return T(_(d).getMappedRange(f,b))},g.wbg.__wbg_mapAsync_91acdcf41b7ae21d=function(d,f,b,v){return T(_(d).mapAsync(f>>>0,b,v))},g.wbg.__wbg_unmap_1677c09514e08e64=function(d){_(d).unmap()},g.wbg.__wbg_label_c7970304720cf8b0=function(d,f){const v=sn(_(f).label,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_beginComputePass_579a2563c561da68=function(d,f){return T(_(d).beginComputePass(_(f)))},g.wbg.__wbg_beginRenderPass_d04327f7231bd5af=function(d,f){return T(_(d).beginRenderPass(_(f)))},g.wbg.__wbg_clearBuffer_c370e7adb8398388=function(d,f,b){_(d).clearBuffer(_(f),b)},g.wbg.__wbg_clearBuffer_b8e6751290709d43=function(d,f,b,v){_(d).clearBuffer(_(f),b,v)},g.wbg.__wbg_copyBufferToBuffer_79ac12f409453cf0=function(d,f,b,v,N,X){_(d).copyBufferToBuffer(_(f),b,_(v),N,X)},g.wbg.__wbg_copyBufferToTexture_ac956e6d47c24e73=function(d,f,b,v){_(d).copyBufferToTexture(_(f),_(b),_(v))},g.wbg.__wbg_copyTextureToBuffer_787ec8d8c4c216f1=function(d,f,b,v){_(d).copyTextureToBuffer(_(f),_(b),_(v))},g.wbg.__wbg_copyTextureToTexture_a86e849469b0ef38=function(d,f,b,v){_(d).copyTextureToTexture(_(f),_(b),_(v))},g.wbg.__wbg_finish_5153789564a5eee5=function(d){return T(_(d).finish())},g.wbg.__wbg_finish_d1049a13335e8326=function(d,f){return T(_(d).finish(_(f)))},g.wbg.__wbg_resolveQuerySet_8ac49c71e15cdf6a=function(d,f,b,v,N,X){_(d).resolveQuerySet(_(f),b>>>0,v>>>0,_(N),X>>>0)},g.wbg.__wbg_writeTimestamp_107647519ce52436=function(d,f,b){_(d).writeTimestamp(_(f),b>>>0)},g.wbg.__wbg_finish_863657abae52896e=function(d){return T(_(d).finish())},g.wbg.__wbg_finish_e580ef236d53f04b=function(d,f){return T(_(d).finish(_(f)))},g.wbg.__wbg_setBindGroup_6bc8944422dbb3cd=function(d,f,b,v,N,X,ee){_(d).setBindGroup(f>>>0,_(b),wo(v,N),X,ee>>>0)},g.wbg.__wbg_draw_3958097471a10642=function(d,f,b,v,N){_(d).draw(f>>>0,b>>>0,v>>>0,N>>>0)},g.wbg.__wbg_drawIndexed_8856cc4ccffa3498=function(d,f,b,v,N,X){_(d).drawIndexed(f>>>0,b>>>0,v>>>0,N,X>>>0)},g.wbg.__wbg_drawIndexedIndirect_0404fa6cb9a6db25=function(d,f,b){_(d).drawIndexedIndirect(_(f),b)},g.wbg.__wbg_drawIndirect_95c6eb1494a44d06=function(d,f,b){_(d).drawIndirect(_(f),b)},g.wbg.__wbg_setIndexBuffer_4dc5432dc348458d=function(d,f,b,v){_(d).setIndexBuffer(_(f),Xe(b),v)},g.wbg.__wbg_setIndexBuffer_f3bae4da9e407eaf=function(d,f,b,v,N){_(d).setIndexBuffer(_(f),Xe(b),v,N)},g.wbg.__wbg_setPipeline_66f1e900256fc946=function(d,f){_(d).setPipeline(_(f))},g.wbg.__wbg_setVertexBuffer_c782d133fd439184=function(d,f,b,v){_(d).setVertexBuffer(f>>>0,_(b),v)},g.wbg.__wbg_setVertexBuffer_4da0a96267ce82db=function(d,f,b,v,N){_(d).setVertexBuffer(f>>>0,_(b),v,N)},g.wbg.__wbg_crypto_c48a774b022d20ac=function(d){return T(_(d).crypto)},g.wbg.__wbg_process_298734cf255a885d=function(d){return T(_(d).process)},g.wbg.__wbg_versions_e2e78e134e3e5d01=function(d){return T(_(d).versions)},g.wbg.__wbg_node_1cd7a5d853dbea79=function(d){return T(_(d).node)},g.wbg.__wbindgen_is_string=function(d){return"string"==typeof _(d)},g.wbg.__wbg_msCrypto_bcb970640f50a1e8=function(d){return T(_(d).msCrypto)},g.wbg.__wbg_require_8f08ceecec0f4fee=function(){return oe(function(){return T(rn.require)},arguments)},g.wbg.__wbindgen_is_function=function(d){return"function"==typeof _(d)},g.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab=function(){return oe(function(d,f){_(d).getRandomValues(_(f))},arguments)},g.wbg.__wbg_randomFillSync_dc1e9a60c158336d=function(){return oe(function(d,f){_(d).randomFillSync(Xe(f))},arguments)},g.wbg.__wbg_get_44be0491f933a435=function(d,f){return T(_(d)[f>>>0])},g.wbg.__wbg_length_fff51ee6522a1a18=function(d){return _(d).length},g.wbg.__wbg_new_898a68150f225f2e=function(){return T(new Array)},g.wbg.__wbg_newnoargs_581967eacc0e2604=function(d,f){return T(new Function(be(d,f)))},g.wbg.__wbg_get_97b561fb56f034b5=function(){return oe(function(d,f){return T(Reflect.get(_(d),_(f)))},arguments)},g.wbg.__wbg_call_cb65541d95d71282=function(){return oe(function(d,f){return T(_(d).call(_(f)))},arguments)},g.wbg.__wbg_new_b51585de1b234aff=function(){return T(new Object)},g.wbg.__wbg_self_1ff1d729e9aae938=function(){return oe(function(){return T(self.self)},arguments)},g.wbg.__wbg_window_5f4faef6c12b79ec=function(){return oe(function(){return T(window.window)},arguments)},g.wbg.__wbg_globalThis_1d39714405582d3c=function(){return oe(function(){return T(globalThis.globalThis)},arguments)},g.wbg.__wbg_global_651f05c6a0944d1c=function(){return oe(function(){return T(global.global)},arguments)},g.wbg.__wbg_push_ca1c26067ef907ac=function(d,f){return _(d).push(_(f))},g.wbg.__wbg_call_01734de55d61e11d=function(){return oe(function(d,f,b){return T(_(d).call(_(f),_(b)))},arguments)},g.wbg.__wbg_instanceof_Object_3daa8298c86298be=function(d){let f;try{f=_(d)instanceof Object}catch(v){f=!1}return f},g.wbg.__wbg_getOwnPropertyDescriptor_115142ca061e9728=function(d,f){return T(Object.getOwnPropertyDescriptor(_(d),_(f)))},g.wbg.__wbg_is_205d914af04a8faa=function(d,f){return Object.is(_(d),_(f))},g.wbg.__wbg_valueOf_cefb0eb7807e83fb=function(d){return T(_(d).valueOf())},g.wbg.__wbg_new_43f1b47c28813cbd=function(d,f){try{var b={a:d,b:f};const N=new Promise((X,ee)=>{const on=b.a;b.a=0;try{return function(g,d,f,b){W.wasm_bindgen__convert__closures__invoke2_mut__hbb99ff0c90516ffb(g,d,T(f),T(b))}(on,b.b,X,ee)}finally{b.a=on}});return T(N)}finally{b.a=b.b=0}},g.wbg.__wbg_resolve_53698b95aaf7fcf8=function(d){return T(Promise.resolve(_(d)))},g.wbg.__wbg_then_f7e06ee3c11698eb=function(d,f){return T(_(d).then(_(f)))},g.wbg.__wbg_then_b2267541e2a73865=function(d,f,b){return T(_(d).then(_(f),_(b)))},g.wbg.__wbg_buffer_085ec1f694018c4f=function(d){return T(_(d).buffer)},g.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa=function(d,f,b){return T(new Uint8Array(_(d),f>>>0,b>>>0))},g.wbg.__wbg_new_8125e318e6245eed=function(d){return T(new Uint8Array(_(d)))},g.wbg.__wbg_set_5cf90238115182c3=function(d,f,b){_(d).set(_(f),b>>>0)},g.wbg.__wbg_length_72e2208bbc0efc61=function(d){return _(d).length},g.wbg.__wbg_newwithlength_e5d69174d6984cd7=function(d){return T(new Uint8Array(d>>>0))},g.wbg.__wbg_buffer_f5b7059c439f330d=function(d){return T(_(d).buffer)},g.wbg.__wbg_subarray_13db269f57aa838d=function(d,f,b){return T(_(d).subarray(f>>>0,b>>>0))},g.wbg.__wbg_set_092e06b0f9d71865=function(){return oe(function(d,f,b){return Reflect.set(_(d),_(f),_(b))},arguments)},g.wbg.__wbindgen_debug_string=function(d,f){const v=sn(Ja(_(f)),W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbindgen_throw=function(d,f){throw new Error(be(d,f))},g.wbg.__wbindgen_memory=function(){return T(W.memory)},g.wbg.__wbindgen_closure_wrapper1168=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1169=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1170=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1171=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1172=function(d,f,b){return T(ht(d,f,850,Za))},g.wbg.__wbindgen_closure_wrapper1173=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1174=function(d,f,b){return T(ht(d,f,850,xg))},g.wbg.__wbindgen_closure_wrapper1178=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper3264=function(d,f,b){return T(ht(d,f,1614,Vr))},g.wbg.__wbindgen_closure_wrapper3265=function(d,f,b){return T(ht(d,f,1614,Pu))},g.wbg.__wbindgen_closure_wrapper3605=function(d,f,b){return T(ht(d,f,1818,bo))},g.wbg.__wbindgen_closure_wrapper3607=function(d,f,b){return T(ht(d,f,1818,bo))},g.wbg.__wbindgen_closure_wrapper3960=function(d,f,b){return T(ht(d,f,1899,pt))},g}function ec(g,d){return W=g.exports,vo.__wbindgen_wasm_module=d,Tn=null,re=null,ft=null,W}function vo(g){return Js.apply(this,arguments)}function Js(){return(Js=(0,St.Z)(function*(g){if(void 0!==W)return W;void 0===g&&(g=new URL(ot(587),ot.b));const d=us();("string"==typeof g||"function"==typeof Request&&g instanceof Request||"function"==typeof URL&&g instanceof URL)&&(g=fetch(g));const{instance:f,module:b}=yield Vu(yield g,d);return ec(f,b)})).apply(this,arguments)}const Co=vo},328:(rn,jt,ot)=>{"use strict";function St(n){return"function"==typeof n}let W=!1;const Ne={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else W&&console.log("RxJS: Back to a better error behavior. Thank you. <3");W=n},get useDeprecatedSynchronousErrorHandling(){return W}};function _(n){setTimeout(()=>{throw n},0)}const kt={closed:!0,next(n){},error(n){if(Ne.useDeprecatedSynchronousErrorHandling)throw n;_(n)},complete(){}},Sn=Array.isArray||(n=>n&&"number"==typeof n.length);function Xe(n){return null!==n&&"object"==typeof n}const ft=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof de)t.remove(this);else if(null!==t)for(let o=0;oe.concat(t instanceof ft?t.errors:t),[])}de.EMPTY=((n=new de).closed=!0,n);const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class _e extends de{constructor(e,t,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=kt;break;case 1:if(!e){this.destination=kt;break}if("object"==typeof e){e instanceof _e?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ya(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Ya(this,e,t,r)}}[T](){return this}static create(e,t,r){const s=new _e(e,t,r);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Ya extends _e{constructor(e,t,r,s){super(),this._parentSubscriber=e;let i,o=this;St(t)?i=t:t&&(i=t.next,r=t.error,s=t.complete,t!==kt&&(o=Object.create(t),St(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=r,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ne.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:r}=Ne;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):_(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;_(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ne.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),Ne.useDeprecatedSynchronousErrorHandling)throw r;_(r)}}__tryOrSetError(e,t,r){if(!Ne.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(s){return Ne.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(_(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Tn="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fe(n){return n}let fe=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,s){const{operator:i}=this,o=function(n,e,t){if(n){if(n instanceof _e)return n;if(n[T])return n[T]()}return n||e||t?new _e(n,e,t):new _e(kt)}(t,r,s);if(o.add(i?i.call(o,this.source):this.source||Ne.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Ne.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){Ne.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),function(n){for(;n;){const{closed:e,destination:t,isStopped:r}=n;if(e||r)return!1;n=t&&t instanceof _e?t:null}return!0}(t)?t.error(r):console.warn(r)}}forEach(t,r){return new(r=Za(r))((s,i)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(c){i(c),o&&o.unsubscribe()}},i,s)})}_subscribe(t){const{source:r}=this;return r&&r.subscribe(t)}[Tn](){return this}pipe(...t){return 0===t.length?this:function(n){return 0===n.length?Fe:1===n.length?n[0]:function(t){return n.reduce((r,s)=>s(r),t)}}(t)(this)}toPromise(t){return new(t=Za(t))((r,s)=>{let i;this.subscribe(o=>i=o,o=>s(o),()=>r(i))})}}return n.create=e=>new n(e),n})();function Za(n){if(n||(n=Ne.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Vr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Pu extends de{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}class bo extends _e{constructor(e){super(e),this.destination=e}}let pt=(()=>{class n extends fe{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[T](){return new bo(this)}lift(t){const r=new ku(this,this);return r.operator=t,r}next(t){if(this.closed)throw new Vr;if(!this.isStopped){const{observers:r}=this,s=r.length,i=r.slice();for(let o=0;onew ku(e,t),n})();class ku extends pt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):de.EMPTY}}function oe(n){return n&&"function"==typeof n.schedule}function re(n,e){return function(r){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Lu(n,e))}}class Lu{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new wo(e,this.project,this.thisArg))}}class wo extends _e{constructor(e,t,r){super(e),this.project=t,this.count=0,this.thisArg=r||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}const Xa=n=>e=>{for(let t=0,r=n.length;tn&&"number"==typeof n.length&&"function"!=typeof n;function Js(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Co=n=>{if(n&&"function"==typeof n[Tn])return(n=>e=>{const t=n[Tn]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(vo(n))return Xa(n);if(Js(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,_),e))(n);if(n&&"function"==typeof n[us])return(n=>e=>{const t=n[us]();for(;;){let r;try{r=t.next()}catch(s){return e.error(s),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Xe(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function f(n,e){return new fe(t=>{const r=new de;let s=0;return r.add(e.schedule(function(){s!==n.length?(t.next(n[s++]),t.closed||r.add(this.schedule())):t.complete()})),r})}function ee(n,e){return e?function(n,e){if(null!=n){if(function(n){return n&&"function"==typeof n[Tn]}(n))return function(n,e){return new fe(t=>{const r=new de;return r.add(e.schedule(()=>{const s=n[Tn]();r.add(s.subscribe({next(i){r.add(e.schedule(()=>t.next(i)))},error(i){r.add(e.schedule(()=>t.error(i)))},complete(){r.add(e.schedule(()=>t.complete()))}}))})),r})}(n,e);if(Js(n))return function(n,e){return new fe(t=>{const r=new de;return r.add(e.schedule(()=>n.then(s=>{r.add(e.schedule(()=>{t.next(s),r.add(e.schedule(()=>t.complete()))}))},s=>{r.add(e.schedule(()=>t.error(s)))}))),r})}(n,e);if(vo(n))return f(n,e);if(function(n){return n&&"function"==typeof n[us]}(n)||"string"==typeof n)return function(n,e){if(!n)throw new Error("Iterable cannot be null");return new fe(t=>{const r=new de;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=n[us](),r.add(e.schedule(function(){if(t.closed)return;let i,o;try{const a=s.next();i=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(i),this.schedule())}))})),r})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof fe?n:new fe(Co(n))}class on extends _e{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class tc extends _e{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function nc(n,e){if(e.closed)return;if(n instanceof fe)return n.subscribe(e);let t;try{t=Co(n)(e)}catch(r){e.error(r)}return t}function at(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(at((s,i)=>ee(n(s,i)).pipe(re((o,a)=>e(s,o,i,a))),t)):("number"==typeof e&&(t=e),r=>r.lift(new aS(n,t)))}class aS{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new cS(e,this.project,this.concurrent))}}class cS extends tc{constructor(e,t,r=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Do(n=Number.POSITIVE_INFINITY){return at(Fe,n)}function ju(n,e){return e?f(n,e):new fe(Xa(n))}function Uu(){return function(e){return e.lift(new uS(e))}}class uS{constructor(e){this.connectable=e}call(e,t){const{connectable:r}=this;r._refCount++;const s=new dS(e,r),i=t.subscribe(s);return s.closed||(s.connection=r.connect()),i}}class dS extends _e{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:r}=this,s=e._connection;this.connection=null,s&&(!r||s===r)&&s.unsubscribe()}}class Fg extends fe{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new hS(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Uu()(this)}}const fS=(()=>{const n=Fg.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class hS extends bo{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function _S(){return new pt}function Og(){return n=>Uu()(function(n,e){return function(r){let s;s="function"==typeof n?n:function(){return n};const i=Object.create(r,fS);return i.source=r,i.subjectFactory=s,i}}(_S)(n))}function ye(n){for(let e in n)if(n[e]===ye)return e;throw Error("Could not find renamed property on target object.")}function Hu(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function se(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(se).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function $u(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const yS=ye({__forward_ref__:ye});function Wu(n){return n.__forward_ref__=Wu,n.toString=function(){return se(this())},n}function L(n){return function(n){return"function"==typeof n&&n.hasOwnProperty(yS)&&n.__forward_ref__===Wu}(n)?n():n}class Br extends Error{constructor(e,t){super(function(n,e){return`${n?`NG0${n}: `:""}${e}`}(e,t)),this.code=e}}function J(n){return"string"==typeof n?n:null==n?"":String(n)}function Tt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():J(n)}function rc(n,e){const t=e?` in ${e}`:"";throw new Br("201",`No provider for ${Tt(n)} found${t}`)}function $t(n,e){null==n&&function(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ie(n){return{providers:n.providers||[],imports:n.imports||[]}}function hr(n){return kg(n,sc)||kg(n,Vg)}function kg(n,e){return n.hasOwnProperty(e)?n[e]:null}function Lg(n){return n&&(n.hasOwnProperty(qu)||n.hasOwnProperty(SS))?n[qu]:null}const sc=ye({\u0275prov:ye}),qu=ye({\u0275inj:ye}),Vg=ye({ngInjectableDef:ye}),SS=ye({ngInjectorDef:ye});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Gu;function jr(n){const e=Gu;return Gu=n,e}function Bg(n,e,t){const r=hr(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&B.Optional?null:void 0!==e?e:void rc(se(n),"Injector")}function Ur(n){return{toString:n}.toString()}var an=(()=>((an=an||{})[an.OnPush=0]="OnPush",an[an.Default=1]="Default",an))(),We=(()=>((We=We||{})[We.Emulated=0]="Emulated",We[We.None=2]="None",We[We.ShadowDom=3]="ShadowDom",We))();const IS="undefined"!=typeof globalThis&&globalThis,MS="undefined"!=typeof window&&window,AS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,we=IS||"undefined"!=typeof global&&global||MS||AS,Zs={},De=[],ic=ye({\u0275cmp:ye}),Ku=ye({\u0275dir:ye}),Qu=ye({\u0275pipe:ye}),jg=ye({\u0275mod:ye}),RS=ye({\u0275loc:ye}),pr=ye({\u0275fac:ye}),So=ye({__NG_ELEMENT_ID__:ye});let xS=0;function cn(n){return Ur(()=>{const t={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===an.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||De,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||We.Emulated,id:"c",styles:n.styles||De,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.directives,i=n.features,o=n.pipes;return r.id+=xS++,r.inputs=Wg(n.inputs,t),r.outputs=Wg(n.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ug):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Hg):null,r})}function Ug(n){return gt(n)||function(n){return n[Ku]||null}(n)}function Hg(n){return function(n){return n[Qu]||null}(n)}const $g={};function Oe(n){return Ur(()=>{const e={type:n.type,bootstrap:n.bootstrap||De,declarations:n.declarations||De,imports:n.imports||De,exports:n.exports||De,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&($g[n.id]=n.type),e})}function Wg(n,e){if(null==n)return Zs;const t={};for(const r in n)if(n.hasOwnProperty(r)){let s=n[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),t[s]=r,e&&(e[s]=i)}return t}const Ae=cn;function gt(n){return n[ic]||null}function ln(n,e){const t=n[jg]||null;if(!t&&!0===e)throw new Error(`Type ${se(n)} does not have '\u0275mod' property.`);return t}function Gn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Mn(n){return Array.isArray(n)&&!0===n[1]}function Zu(n){return 0!=(8&n.flags)}function lc(n){return 2==(2&n.flags)}function uc(n){return 1==(1&n.flags)}function An(n){return null!==n.template}function VS(n){return 0!=(512&n[2])}function gs(n,e){return n.hasOwnProperty(pr)?n[pr]:null}class qg{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Gg(n){return n.type.prototype.ngOnChanges&&(n.setInput=HS),US}function US(){const n=Qg(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Zs)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function HS(n,e,t,r){const s=Qg(n)||function(n,e){return n[Kg]=e}(n,{previous:Zs,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[t],c=o[a];i[a]=new qg(c&&c.currentValue,e,o===Zs),n[r]=e}const Kg="__ngSimpleChanges__";function Qg(n){return n[Kg]||null}const Yg="http://www.w3.org/2000/svg";let td;function je(n){return!!n.listen}const Zg={createRenderer:(n,e)=>void 0!==td?td:"undefined"!=typeof document?document:void 0};function ze(n){for(;Array.isArray(n);)n=n[0];return n}function zt(n,e){return ze(e[n.index])}function rd(n,e){return n.data[e]}function qt(n,e){const t=e[n];return Gn(t)?t:t[0]}function Xg(n){return 4==(4&n[2])}function sd(n){return 128==(128&n[2])}function Wr(n,e){return null==e?null:n[e]}function em(n){n[18]=0}function id(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const q={lFrame:cm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function tm(){return q.bindingsEnabled}function I(){return q.lFrame.lView}function he(){return q.lFrame.tView}function od(n){return q.lFrame.contextLView=n,n[8]}function Qe(){let n=nm();for(;null!==n&&64===n.type;)n=n.parent;return n}function nm(){return q.lFrame.currentTNode}function Kn(n,e){const t=q.lFrame;t.currentTNode=n,t.isParent=e}function ad(){return q.lFrame.isParent}function cd(){q.lFrame.isParent=!1}function fc(){return q.isInCheckNoChangesMode}function hc(n){q.isInCheckNoChangesMode=n}function si(){return q.lFrame.bindingIndex++}function rT(n,e){const t=q.lFrame;t.bindingIndex=t.bindingRootIndex=n,ld(e)}function ld(n){q.lFrame.currentDirectiveIndex=n}function im(){return q.lFrame.currentQueryIndex}function dd(n){q.lFrame.currentQueryIndex=n}function iT(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function om(n,e,t){if(t&B.SkipSelf){let s=e,i=n;for(;!(s=s.parent,null!==s||t&B.Host||(s=iT(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;e=s,n=i}const r=q.lFrame=am();return r.currentTNode=e,r.lView=n,!0}function pc(n){const e=am(),t=n[1];q.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function am(){const n=q.lFrame,e=null===n?null:n.child;return null===e?cm(n):e}function cm(n){const 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:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function lm(){const n=q.lFrame;return q.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const um=lm;function gc(){const n=lm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function At(){return q.lFrame.selectedIndex}function zr(n){q.lFrame.selectedIndex=n}function ke(){const n=q.lFrame;return rd(n.tView,n.selectedIndex)}function ms(){q.lFrame.currentNamespace=Yg}function mc(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[c]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class Ro{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function bc(n,e,t){const r=je(n);let s=0;for(;se){o=i-1;break}}}for(;i>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let gd=!0;function Ec(n){const e=gd;return gd=n,e}let bT=0;function No(n,e){const t=_d(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,md(r.data,n),md(e,null),md(r.blueprint,null));const s=vc(n,e),i=n.injectorIndex;if(pm(s)){const o=ii(s),a=oi(s,e),c=a[1].data;for(let l=0;l<8;l++)e[i+l]=a[o+l]|c[o+l]}return e[i+8]=s,i}function md(n,e){n.push(0,0,0,0,0,0,0,0,e)}function _d(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function vc(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,s=e;for(;null!==s;){const i=s[1],o=i.type;if(r=2===o?i.declTNode:1===o?s[6]:null,null===r)return-1;if(t++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Cc(n,e,t){!function(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(So)&&(r=t[So]),null==r&&(r=t[So]=bT++);const s=255&r;e.data[n+(s>>5)]|=1<=0?255&e:vT:e}(t);if("function"==typeof i){if(!om(e,n,r))return r&B.Host?_m(s,t,r):ym(e,t,r,s);try{const o=i(r);if(null!=o||r&B.Optional)return o;rc(t)}finally{um()}}else if("number"==typeof i){let o=null,a=_d(n,e),c=-1,l=r&B.Host?e[16][6]:null;for((-1===a||r&B.SkipSelf)&&(c=-1===a?vc(n,e):e[a+8],-1!==c&&vm(r,!1)?(o=e[1],a=ii(c),e=oi(c,e)):a=-1);-1!==a;){const u=e[1];if(Em(i,a,u.data)){const h=CT(a,e,t,o,r,l);if(h!==wm)return h}c=e[a+8],-1!==c&&vm(r,e[1].data[a+8]===l)&&Em(i,a,e)?(o=u,a=ii(c),e=oi(c,e)):a=-1}}}return ym(e,t,r,s)}const wm={};function vT(){return new ai(Qe(),I())}function CT(n,e,t,r,s,i){const o=e[1],a=o.data[n+8],u=Dc(a,o,t,null==r?lc(a)&&gd:r!=o&&0!=(3&a.type),s&B.Host&&i===a);return null!==u?Fo(e,o,u,a):wm}function Dc(n,e,t,r,s){const i=n.providerIndexes,o=e.data,a=1048575&i,c=n.directiveStart,u=i>>20,p=s?a+u:n.directiveEnd;for(let m=r?a:a+u;m=c&&y.type===t)return m}if(s){const m=o[c];if(m&&An(m)&&m.type===t)return c}return null}function Fo(n,e,t,r){let s=n[t];const i=e.data;if(function(n){return n instanceof Ro}(s)){const o=s;o.resolving&&function(n,e){throw new Br("200",`Circular dependency in DI detected for ${n}`)}(Tt(i[t]));const a=Ec(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?jr(o.injectImpl):null;om(n,r,B.Default);try{s=n[t]=o.factory(void 0,i,n,r),e.firstCreatePass&&t>=r.directiveStart&&function(n,e,t){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const o=Gg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}s&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,s),i&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,i),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,i))}(t,i[t],e)}finally{null!==c&&jr(c),Ec(a),o.resolving=!1,um()}}return s}function Em(n,e,t){return!!(t[e+(n>>5)]&1<{const r=function(n){return function(...t){if(n){const r=n(...t);for(const s in r)this[s]=r[s]}}}(e);function s(...i){if(this instanceof s)return r.apply(this,i),this;const o=new s(...i);return a.annotation=o,a;function a(c,l,u){const h=c.hasOwnProperty(ui)?c[ui]:Object.defineProperty(c,ui,{value:[]})[ui];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(o),c}}return t&&(s.prototype=Object.create(t.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class U{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const IT=new U("AnalyzeForEntryComponents"),Sc=Function;function fn(n,e){void 0===e&&(e=n);for(let t=0;tArray.isArray(t)?Yn(t,e):e(t))}function Ic(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function ys(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Gr(n,e){const t=[];for(let r=0;r=0?n[1|r]=t:(r=~r,function(n,e,t,r){let s=n.length;if(s==e)n.push(t,r);else if(1===s)n.push(r,n[0]),n[0]=t;else{for(s--,n.push(n[s-1],n[s]);s>e;)n[s]=n[s-2],s--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function wd(n,e){const t=fi(n,e);if(t>=0)return n[1|t]}function fi(n,e){return function(n,e,t){let r=0,s=n.length>>t;for(;s!==r;){const i=r+(s-r>>1),o=n[i<e?s=i:r=i+1}return~(s< ");else if("object"==typeof e){let i=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):se(a)))}s=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${s}]: ${n.replace(LT,"\n ")}`}("\n"+n.message,s,t,r),n.ngTokenPath=s,n[hi]=null,n}const gi=Bo(_s("Inject",n=>({token:n})),-1),ct=Bo(_s("Optional"),8),mr=Bo(_s("SkipSelf"),4);var Kt=(()=>((Kt=Kt||{})[Kt.Important=1]="Important",Kt[Kt.DashCase=2]="DashCase",Kt))();const Pm="__ngContext__";function _t(n,e){n[Pm]=e}function Md(n){const e=function(n){return n[Pm]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Rd(n,e){return undefined(n,e)}function Ho(n){const e=n[3];return Mn(e)?e[3]:e}function xd(n){return Hm(n[13])}function Nd(n){return Hm(n[4])}function Hm(n){for(;null!==n&&!Mn(n);)n=n[4];return n}function _i(n,e,t,r,s){if(null!=r){let i,o=!1;Mn(r)?i=r:Gn(r)&&(o=!0,r=r[0]);const a=ze(r);0===n&&null!==t?null==s?Km(e,t,a):ws(e,t,a,s||null,!0):1===n&&null!==t?ws(e,t,a,s||null,!0):2===n?function(n,e,t){const r=Nc(n,e);r&&function(n,e,t,r){je(n)?n.removeChild(e,t,r):e.removeChild(t)}(n,r,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=i&&function(n,e,t,r,s){const i=t[7];i!==ze(t)&&_i(e,n,r,i,s);for(let a=10;a0&&(n[t-1][4]=r[4]);const i=ys(n,10+e);!function(n,e){$o(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function zm(n,e){if(!(256&e[2])){const t=e[11];je(t)&&t.destroyNode&&$o(n,e,t,3,null,null),function(n){let e=n[13];if(!e)return kd(n[1],n);for(;e;){let t=null;if(Gn(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)Gn(e)&&kd(e[1],e),e=e[3];null===e&&(e=n),Gn(e)&&kd(e[1],e),t=e&&e[4]}e=t}}(e)}}function kd(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const o=r[s=t[i+1]];t[i].call(o)}if(null!==r){for(let i=s+1;in,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Pc}())||void 0===e?void 0:e.createHTML(n))||n}class vs{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class CI extends vs{getTypeName(){return"HTML"}}class DI extends vs{getTypeName(){return"Style"}}class SI extends vs{getTypeName(){return"Script"}}class TI extends vs{getTypeName(){return"URL"}}class II extends vs{getTypeName(){return"ResourceURL"}}function Qt(n){return n instanceof vs?n.changingThisBreaksApplicationSecurity:n}function Jn(n,e){const t=o_(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function o_(n){return n instanceof vs&&n.getTypeName()||null}class FI{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Es(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class OI{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Es(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=Es(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let s=t.length-1;0Wo(e.trim())).join(", ")}function Zn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function zo(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const l_=Zn("area,br,col,hr,img,wbr"),u_=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),d_=Zn("rp,rt"),Wd=zo(l_,zo(u_,Zn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zo(d_,Zn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),zo(d_,u_)),zd=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qd=Zn("srcset"),f_=zo(zd,qd,Zn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),VI=Zn("script,style,template");class BI{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=this.checkClobberedElement(t,t.nextSibling);if(s){t=s;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Wd.hasOwnProperty(t))return this.sanitizedSomething=!0,!VI.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let s=0;s"),!0}endElement(e){const t=e.nodeName.toLowerCase();Wd.hasOwnProperty(t)&&!l_.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(h_(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const jI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,UI=/([^\#-~ |!])/g;function h_(n){return n.replace(/&/g,"&").replace(jI,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(UI,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Lc;function p_(n,e){let t=null;try{Lc=Lc||function(n){const e=new OI(n);return function(){try{return!!(new window.DOMParser).parseFromString(Es(""),"text/html")}catch(n){return!1}}()?new FI(e):e}(n);let r=e?String(e):"";t=Lc.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=t.innerHTML,t=Lc.getInertBodyElement(r)}while(r!==i);return Es((new BI).sanitizeChildren(Gd(t)||t))}finally{if(t){const r=Gd(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Gd(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var me=(()=>((me=me||{})[me.NONE=0]="NONE",me[me.HTML=1]="HTML",me[me.STYLE=2]="STYLE",me[me.SCRIPT=3]="SCRIPT",me[me.URL=4]="URL",me[me.RESOURCE_URL=5]="RESOURCE_URL",me))();function Vc(n){return n.ngOriginalError}function XI(n,...e){n.error(...e)}class Rn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=this._findContext(e),s=function(n){return n&&n.ngErrorLogger||XI}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),r&&s(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(n){return n.ngDebugContext}(e)||this._findContext(Vc(e)):null}_findOriginalError(e){let t=e&&Vc(e);for(;t&&Vc(t);)t=Vc(t);return t||null}}const E_=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(we))();function Xn(n){return n instanceof Function?n():n}function C_(n,e,t){let r=n.length;for(;;){const s=n.indexOf(e,t);if(-1===s)return s;if(0===s||n.charCodeAt(s-1)<=32){const i=e.length;if(s+i===r||n.charCodeAt(s+i)<=32)return s}t=s+1}}const D_="ng-template";function aM(n,e,t){let r=0;for(;ri?"":s[h+1].toLowerCase();const m=8&r?p:null;if(m&&-1!==C_(m,l,0)||2&r&&l!==p){if(xn(r))return!1;o=!0}}}}else{if(!o&&!xn(r)&&!xn(c))return!1;if(o&&xn(c))continue;o=!1,r=c|1&r}}return xn(r)||o}function xn(n){return 0==(1&n)}function uM(n,e,t,r){if(null===e)return-1;let s=0;if(r||!t){let i=!1;for(;s-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""!==s&&!xn(o)&&(e+=I_(i,s),s=""),r=o,i=i||!xn(r);t++}return""!==s&&(e+=I_(i,s)),e}const K={};function Yt(n){M_(he(),I(),At()+n,fc())}function M_(n,e,t,r){if(!r)if(3==(3&e[2])){const i=n.preOrderCheckHooks;null!==i&&_c(e,i,t)}else{const i=n.preOrderHooks;null!==i&&yc(e,i,0,t)}zr(t)}function Bc(n,e){return n<<17|e<<2}function Nn(n){return n>>17&32767}function Yd(n){return 2|n}function _r(n){return(131068&n)>>2}function Jd(n,e){return-131069&n|e<<2}function Zd(n){return 1|n}function V_(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r20&&M_(n,e,20,fc()),t(r,s)}finally{zr(i)}}function af(n,e,t){!tm()||(function(n,e,t,r){const s=t.directiveStart,i=t.directiveEnd;n.firstCreatePass||No(t,e),_t(r,e);const o=t.initialInputs;for(let a=s;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=c&&a.push(c),a.push(r,s,o)}}function K_(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Q_(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function UM(n,e,t){if(t){if(e.exportAs)for(let r=0;r0&&df(t)}}function df(n){for(let r=xd(n);null!==r;r=Nd(r))for(let s=10;s0&&df(i)}const t=n[1].components;if(null!==t)for(let r=0;r0&&df(s)}}function KM(n,e){const t=qt(e,n),r=t[1];(function(n,e){for(let t=e.length;tPromise.resolve(null))();function ey(n){return n[7]||(n[7]=[])}function ty(n){return n.cleanup||(n.cleanup=[])}function ry(n,e){const t=n[9],r=t?t.get(Rn,null):null;r&&r.handleError(e)}function sy(n,e,t,r,s){for(let i=0;ithis.processProvider(a,e,t)),Yn([e],a=>this.processInjectorType(a,[],i)),this.records.set(vi,Ci(void 0,this));const o=this.records.get(Qo);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof e?null:se(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Lo,r=B.Default){this.assertNotDestroyed();const s=pi(this),i=jr(void 0);try{if(!(r&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const c=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof U}(e)&&hr(e);a=c&&this.injectableDefInScope(c)?Ci(_f(e),Yo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&B.Self?oy():this.parent).get(e,t=r&B.Optional&&t===Lo?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[hi]=o[hi]||[]).unshift(se(e)),s)throw o;return Am(o,e,"R3InjectorError",this.source)}throw o}finally{jr(i),pi(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,s)=>e.push(se(s))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,r){if(!(e=L(e)))return!1;let s=Lg(e);const i=null==s&&e.ngModule||void 0,o=void 0===i?e:i,a=-1!==r.indexOf(o);if(void 0!==i&&(s=Lg(i)),null==s)return!1;if(null!=s.imports&&!a){let u;r.push(o);try{Yn(s.imports,h=>{this.processInjectorType(h,t,r)&&(void 0===u&&(u=[]),u.push(h))})}finally{}if(void 0!==u)for(let h=0;hthis.processProvider(y,p,m||De))}}this.injectorDefTypes.add(o);const c=gs(o)||(()=>new o);this.records.set(o,Ci(c,Yo));const l=s.providers;if(null!=l&&!a){const u=e;Yn(l,h=>this.processProvider(h,u,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,r){let s=Di(e=L(e))?e:L(e&&e.provide);const i=function(n,e,t){return ly(n)?Ci(void 0,n.useValue):Ci(function(n,e,t){let r;if(Di(n)){const s=L(n);return gs(s)||_f(s)}if(ly(n))r=()=>L(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...bs(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))r=()=>S(L(n.useExisting));else{const s=L(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return gs(s)||_f(s);r=()=>new s(...bs(n.deps))}return r}(n),Yo)}(e);if(Di(e)||!0!==e.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Ci(void 0,Yo,!0),o.factory=()=>bs(o.multi),this.records.set(s,o)),s=e,o.multi.push(e)}this.records.set(s,i)}hydrate(e,t){return t.value===Yo&&(t.value=nA,t.value=t.factory()),"object"==typeof t.value&&t.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=L(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function _f(n){const e=hr(n),t=null!==e?e.factory:gs(n);if(null!==t)return t;if(n instanceof U)throw new Error(`Token ${se(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const e=n.length;if(e>0){const r=Gr(e,"?");throw new Error(`Can't resolve all parameters for ${se(n)}: (${r.join(", ")}).`)}const t=function(n){const e=n&&(n[sc]||n[Vg]);if(e){const t=function(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new Error("unreachable")}function Ci(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function ly(n){return null!==n&&"object"==typeof n&&Dd in n}function Di(n){return"function"==typeof n}const uy=function(n,e,t){return function(n,e=null,t=null,r){const s=ay(n,e,t,r);return s._resolveInjectorDefTypes(),s}({name:t},e,n,t)};let Ce=(()=>{class n{static create(t,r){return Array.isArray(t)?uy(t,r,""):uy(t.providers,t.parent,t.name||"")}}return n.THROW_IF_NOT_FOUND=Lo,n.NULL=new iy,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>S(vi)}),n.__NG_ELEMENT_ID__=-1,n})();function SA(n,e){mc(Md(n)[1],Qe())}function tr(n){let e=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let s;if(An(n))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(t){r.push(s);const o=n;o.inputs=Cf(n.inputs),o.declaredInputs=Cf(n.declaredInputs),o.outputs=Cf(n.outputs);const a=s.hostBindings;a&&AA(n,a);const c=s.viewQuery,l=s.contentQueries;if(c&&IA(n,c),l&&MA(n,l),Hu(n.inputs,s.inputs),Hu(n.declaredInputs,s.declaredInputs),Hu(n.outputs,s.outputs),An(s)&&s.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(s.data.animation)}}const i=s.features;if(i)for(let o=0;o=0;r--){const s=n[r];s.hostVars=e+=s.hostVars,s.hostAttrs=wc(s.hostAttrs,t=wc(t,s.hostAttrs))}}(r)}function Cf(n){return n===Zs?{}:n===De?[]:n}function IA(n,e){const t=n.viewQuery;n.viewQuery=t?(r,s)=>{e(r,s),t(r,s)}:e}function MA(n,e){const t=n.contentQueries;n.contentQueries=t?(r,s,i)=>{e(r,s,i),t(r,s,i)}:e}function AA(n,e){const t=n.hostBindings;n.hostBindings=t?(r,s)=>{e(r,s),t(r,s)}:e}let zc=null;function Si(){if(!zc){const n=we.Symbol;if(n&&n.iterator)zc=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(ze(x[r.index])):r.index;if(je(t)){let x=null;if(!a&&c&&(x=function(n,e,t,r){const s=n.cleanup;if(null!=s)for(let i=0;ic?a[c]:null}"string"==typeof o&&(i+=2)}return null}(n,e,s,r.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=i,x.__ngLastListenerFn__=i,m=!1;else{i=Nf(r,e,h,i,!1);const z=t.listen(D,s,i);p.push(i,z),u&&u.push(s,R,C,C+1)}}else i=Nf(r,e,h,i,!0),D.addEventListener(s,i,o),p.push(i),u&&u.push(s,R,C,o)}else i=Nf(r,e,h,i,!1);const y=r.outputs;let E;if(m&&null!==y&&(E=y[s])){const w=E.length;if(w)for(let D=0;D0;)e=e[15],n--;return e}(n,q.lFrame.contextLView))[8]}(n)}function dR(n,e){let t=null;const r=function(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let s=0;s=0}function rr(n,e,t){return Pn(n,e,t,!1),rr}function Zt(n,e){return Pn(n,e,null,!0),Zt}function Pn(n,e,t,r){const s=I(),i=he(),o=function(n){const e=q.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);i.firstUpdatePass&&function(n,e,t,r){const s=n.data;if(null===s[t+1]){const i=s[At()],o=function(n,e){return e>=n.expandoStartIndex}(n,t);(function(n,e){return 0!=(n.flags&(e?16:32))})(i,r)&&null===e&&!o&&(e=!1),e=function(n,e,t,r){const s=function(n){const e=q.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(t=ea(t=Of(null,n,e,t,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==s)if(t=Of(s,n,e,t,r),null===i){let c=function(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==_r(r))return n[Nn(r)]}(n,e,r);void 0!==c&&Array.isArray(c)&&(c=Of(null,n,e,c[1],r),c=ea(c,e.attrs,r),function(n,e,t,r){n[Nn(t?e.classBindings:e.styleBindings)]=r}(n,e,r,c))}else i=function(n,e,t){let r;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(l=!0)}else u=t;if(s)if(0!==c){const p=Nn(n[a+1]);n[r+1]=Bc(p,a),0!==p&&(n[p+1]=Jd(n[p+1],r)),n[a+1]=function(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=Bc(a,0),0!==a&&(n[a+1]=Jd(n[a+1],r)),a=r;else n[r+1]=Bc(c,0),0===a?a=r:n[c+1]=Jd(n[c+1],r),c=r;l&&(n[r+1]=Yd(n[r+1])),lb(n,u,r,!0),lb(n,u,r,!1),function(n,e,t,r,s){const i=s?n.residualClasses:n.residualStyles;null!=i&&"string"==typeof e&&fi(i,e)>=0&&(t[r+1]=Zd(t[r+1]))}(e,u,n,r,i),o=Bc(a,c),i?e.classBindings=o:e.styleBindings=o}(s,i,e,t,o,r)}}(i,n,o,r),e!==K&&yt(s,o,e)&&function(n,e,t,r,s,i,o,a){if(!(3&e.type))return;const c=n.data,l=c[a+1];Qc(function(n){return 1==(1&n)}(l)?wb(c,e,t,s,_r(l),o):void 0)||(Qc(i)||function(n){return 2==(2&n)}(l)&&(i=wb(c,null,t,s,a,o)),function(n,e,t,r,s){const i=je(n);if(e)s?i?n.addClass(t,r):t.classList.add(r):i?n.removeClass(t,r):t.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Kt.DashCase;if(null==s)i?n.removeStyle(t,r,o):t.style.removeProperty(r);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=Kt.Important),i?n.setStyle(t,r,s,o):t.style.setProperty(r,s,a?"important":"")}}}(r,o,function(n,e){return ze(e[n])}(At(),t),s,i))}(i,i.data[At()],s,s[11],n,s[o+1]=function(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=se(Qt(n)))),n}(e,t),r,o)}function Of(n,e,t,r,s){let i=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const c=n[s],l=Array.isArray(c),u=l?c[1]:c,h=null===u;let p=t[s+1];p===K&&(p=h?De:void 0);let m=h?wd(p,r):u===r?p:void 0;if(l&&!Qc(m)&&(m=wd(c,r)),Qc(m)&&(a=m,o))return a;const y=n[s+1];s=o?Nn(y):_r(y)}if(null!==e){let c=i?e.residualClasses:e.residualStyles;null!=c&&(a=wd(c,r))}return a}function Qc(n){return void 0!==n}function Ss(n,e=""){const t=I(),r=he(),s=n+20,i=r.firstCreatePass?bi(r,s,1,e,null):r.data[s],o=t[s]=function(n,e){return je(n)?n.createText(e):n.createTextNode(e)}(t[11],e);Fc(r,t,o,i),Kn(i,!1)}const Ts=void 0;var QR=["en",[["a","p"],["AM","PM"],Ts],[["AM","PM"],Ts,Ts],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ts,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ts,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ts,"{1} 'at' {0}",Ts],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(n){const e=Math.floor(Math.abs(n)),t=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===t?1:5}];let Vi={};function Hb(n){return n in Vi||(Vi[n]=we.ng&&we.ng.common&&we.ng.common.locales&&we.ng.common.locales[n]),Vi[n]}var O=(()=>((O=O||{})[O.LocaleId=0]="LocaleId",O[O.DayPeriodsFormat=1]="DayPeriodsFormat",O[O.DayPeriodsStandalone=2]="DayPeriodsStandalone",O[O.DaysFormat=3]="DaysFormat",O[O.DaysStandalone=4]="DaysStandalone",O[O.MonthsFormat=5]="MonthsFormat",O[O.MonthsStandalone=6]="MonthsStandalone",O[O.Eras=7]="Eras",O[O.FirstDayOfWeek=8]="FirstDayOfWeek",O[O.WeekendRange=9]="WeekendRange",O[O.DateFormat=10]="DateFormat",O[O.TimeFormat=11]="TimeFormat",O[O.DateTimeFormat=12]="DateTimeFormat",O[O.NumberSymbols=13]="NumberSymbols",O[O.NumberFormats=14]="NumberFormats",O[O.CurrencyCode=15]="CurrencyCode",O[O.CurrencySymbol=16]="CurrencySymbol",O[O.CurrencyName=17]="CurrencyName",O[O.Currencies=18]="Currencies",O[O.Directionality=19]="Directionality",O[O.PluralCase=20]="PluralCase",O[O.ExtraData=21]="ExtraData",O))();const Jc="en-US";let $b=Jc;function Pf(n){$t(n,"Expected localeId to be defined"),"string"==typeof n&&($b=n.toLowerCase().replace(/_/g,"-"))}class pw{}const mw="ngComponent";class Q1{resolveComponentFactory(e){throw function(n){const e=Error(`No component factory found for ${se(n)}. Did you add it to @NgModule.entryComponents?`);return e[mw]=n,e}(e)}}let Is=(()=>{class n{}return n.NULL=new Q1,n})();function nl(...n){}function ji(n,e){return new Me(zt(n,e))}const Z1=function(){return ji(Qe(),I())};let Me=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=Z1,n})();function _w(n){return n instanceof Me?n.nativeElement:n}class Ms{}let Wf=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class As{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const yw=new As("12.2.17");class bw{constructor(){}supports(e){return Zo(e)}create(e){return new sx(e)}}const rx=(n,e)=>e;class sx{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||rx}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,s=0,i=null;for(;t||r;){const o=!r||t&&t.currentIndex{o=this._trackByFn(s,a),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,a,o,s)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,s),r=!0),t=t._next,s++}),this.length=s;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,s){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,s)):e=this._addAfter(new ix(t,r),i,s),e}_verifyReinsertion(e,t,r,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=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(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,i=e._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ww),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ww),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class ix{constructor(e,t){this.item=e,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 ox{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(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,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class ww{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new ox,this.map.set(t,r)),r.add(e)}get(e,t){const s=this.map.get(e);return s?s.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ew(n,e,t){const r=n.previousIndex;if(null===r)return r;let s=0;return t&&r{if(t&&t.key===s)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(s,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const s=this._records.get(e);this._maybeAddToChanges(s,t);const i=s._prev,o=s._next;return i&&(i._next=o),o&&(o._prev=i),s._next=null,s._prev=null,s}const r=new cx(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class cx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Cw(){return new oa([new bw])}let oa=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const s=r.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||Cw()),deps:[[n,new mr,new ct]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(n){return n.name||typeof n}(t)}'`)}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Cw}),n})();function Dw(){return new Ui([new vw])}let Ui=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(r){const s=r.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||Dw()),deps:[[n,new mr,new ct]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(r)return r;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Dw}),n})();function sl(n,e,t,r,s=!1){for(;null!==t;){const i=e[t.index];if(null!==i&&r.push(ze(i)),Mn(i))for(let a=10;a-1&&(Pd(e,r),ys(t,r))}this._attachedToViewContainer=!1}zm(this._lView[1],this._lView)}onDestroy(e){W_(this._lView[1],this._lView,null,e)}markForCheck(){ff(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){pf(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,e,t){hc(!0);try{pf(n,e,t)}finally{hc(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(n,e){$o(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class ux extends aa{constructor(e){super(e),this._view=e}detectChanges(){X_(this._view)}checkNoChanges(){!function(n){hc(!0);try{X_(n)}finally{hc(!1)}}(this._view)}get context(){return null}}const fx=function(n){return function(n,e,t){if(lc(n)&&!t){const r=qt(n.index,e);return new aa(r,r)}return 47&n.type?new aa(e[16],e):null}(Qe(),I(),16==(16&n))};let ca=(()=>{class n{}return n.__NG_ELEMENT_ID__=fx,n})();const gx=[new vw],_x=new oa([new bw]),yx=new Ui(gx),wx=function(){return il(Qe(),I())};let Dr=(()=>{class n{}return n.__NG_ELEMENT_ID__=wx,n})();const Ex=Dr,vx=class extends Ex{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Go(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(t)),Ko(t,r,e),new aa(r)}};function il(n,e){return 4&n.type?new vx(e,n,ji(n,e)):null}class or{}class Sw{}const Sx=function(){return Mw(Qe(),I())};let Ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=Sx,n})();const Ix=Ln,Tw=class extends Ix{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return ji(this._hostTNode,this._hostLView)}get injector(){return new ai(this._hostTNode,this._hostLView)}get parentInjector(){const e=vc(this._hostTNode,this._hostLView);if(pm(e)){const t=oi(e,this._hostLView),r=ii(e);return new ai(t[1].data[r+8],t)}return new ai(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Iw(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const s=e.createEmbeddedView(t||{});return this.insert(s,r),s}createComponent(e,t,r,s,i){const o=r||this.parentInjector;if(!i&&null==e.ngModule&&o){const c=o.get(or,null);c&&(i=c)}const a=e.create(o,s,void 0,i);return this.insert(a.hostView,t),a}insert(e,t){const r=e._lView,s=r[1];if(function(n){return Mn(n[3])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const h=r[3],p=new Tw(h,h[6],h[3]);p.detach(p.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;!function(n,e,t,r){const s=10+r,i=t.length;r>0&&(t[s-1][4]=e),rE_});class Yw extends pw{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function(n){return n.map(gM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Qw(this.componentDef.inputs)}get outputs(){return Qw(this.componentDef.outputs)}create(e,t,r,s){const i=(s=s||this.ngModule)?function(n,e){return{get:(t,r,s)=>{const i=n.get(t,zi,s);return i!==zi||r===zi?i:e.get(t,r,s)}}}(e,s.injector):e,o=i.get(Ms,Zg),a=i.get(Wf,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=r?function(n,e,t){if(je(n))return n.selectRootElement(e,t===We.ShadowDom);let r="string"==typeof e?n.querySelector(e):e;return r.textContent="",r}(c,r,this.componentDef.encapsulation):Od(o.createRenderer(null,this.componentDef),l,function(n){const e=n.toLowerCase();return"svg"===e?Yg:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,p=function(n,e){return{components:[],scheduler:n||E_,clean:XM,playerHandler:e||null,flags:0}}(),m=Hc(0,null,null,1,0,null,null,null,null,null),y=Go(null,m,p,h,null,null,o,c,a,i);let E,w;pc(y);try{const D=function(n,e,t,r,s,i){const o=t[1];t[20]=n;const c=bi(o,20,2,"#host",null),l=c.mergedAttrs=e.hostAttrs;null!==l&&(Wc(c,l,!0),null!==n&&(bc(s,n,l),null!==c.classes&&Ud(s,n,c.classes),null!==c.styles&&n_(s,n,c.styles)));const u=r.createRenderer(n,e),h=Go(t,U_(e),null,e.onPush?64:16,t[20],c,r,u,i||null,null);return o.firstCreatePass&&(Cc(No(c,t),o,e.type),Q_(o,c),Y_(c,t.length,1)),$c(t,h),t[20]=h}(u,this.componentDef,y,o,c);if(u)if(r)bc(c,u,["ng-version",yw.full]);else{const{attrs:C,classes:R}=function(n){const e=[],t=[];let r=1,s=2;for(;r0&&Ud(c,u,R.join(" "))}if(w=rd(m,20),void 0!==t){const C=w.projection=[];for(let R=0;Rc(o,e)),e.contentQueries){const c=Qe();e.contentQueries(1,o,c.directiveStart)}const a=Qe();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(zr(a.index),G_(t[1],a,0,a.directiveStart,a.directiveEnd,e),K_(e,o)),o}(D,this.componentDef,y,p,[SA]),Ko(m,y,null)}finally{gc()}return new TN(this.componentType,E,ji(w,y),y,w)}}class TN extends class{}{constructor(e,t,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new ux(s),this.componentType=e}get injector(){return new ai(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const qi=new Map;class AN extends or{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kw(this);const r=ln(e),s=function(n){return n[RS]||null}(e);s&&Pf(s),this._bootstrapComponents=Xn(r.bootstrap),this._r3Injector=ay(e,t,[{provide:or,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],se(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ce.THROW_IF_NOT_FOUND,r=B.Default){return e===Ce||e===or||e===vi?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class sh extends Sw{constructor(e){super(),this.moduleType=e,null!==ln(e)&&function(n){const e=new Set;!function t(r){const s=ln(r,!0),i=s.id;null!==i&&(function(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${se(e)} vs ${se(e.name)}`)}(i,qi.get(i),r),qi.set(i,r));const o=Xn(s.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new AN(this.moduleType,e)}}function ih(n){return e=>{setTimeout(n,void 0,e)}}const ut=class extends pt{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){var s,i,o;let a=e,c=t||(()=>null),l=r;if(e&&"object"==typeof e){const h=e;a=null===(s=h.next)||void 0===s?void 0:s.bind(h),c=null===(i=h.error)||void 0===i?void 0:i.bind(h),l=null===(o=h.complete)||void 0===o?void 0:o.bind(h)}this.__isAsync&&(c=ih(c),a&&(a=ih(a)),l&&(l=ih(l)));const u=super.subscribe({next:a,error:c,complete:l});return e instanceof de&&e.add(u),u}};function KN(){return this._results[Si()]()}class ul{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;const t=Si(),r=ul.prototype;r[t]||(r[t]=KN)}get changes(){return this._changes||(this._changes=new ut)}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,t){return this._results.reduce(e,t)}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,t){const r=this;r.dirty=!1;const s=fn(e);(this._changesDetected=!function(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r0)r.push(o[a/2]);else{const l=i[a+1],u=e[-c];for(let h=10;h{class n{constructor(t){this.appInits=t,this.resolve=nl,this.reject=nl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{i.subscribe({complete:a,error:c})});t.push(o)}}Promise.all(t).then(()=>{r()}).catch(s=>{this.reject(s)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(S(wa,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ea=new U("AppId"),RF={provide:Ea,useFactory:function(){return`${_h()}${_h()}${_h()}`},deps:[]};function _h(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const TE=new U("Platform Initializer"),Ji=new U("Platform ID"),IE=new U("appBootstrapListener");let pl=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Sr=new U("LocaleId"),ME=new U("DefaultCurrencyCode");class NF{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const yh=function(n){return new sh(n)},FF=yh,OF=function(n){return Promise.resolve(yh(n))},AE=function(n){const e=yh(n),r=Xn(ln(n).declarations).reduce((s,i)=>{const o=gt(i);return o&&s.push(new Yw(o)),s},[]);return new NF(e,r)},PF=AE,kF=function(n){return Promise.resolve(AE(n))};let Ns=(()=>{class n{constructor(){this.compileModuleSync=FF,this.compileModuleAsync=OF,this.compileModuleAndAllComponentsSync=PF,this.compileModuleAndAllComponentsAsync=kF}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const BF=(()=>Promise.resolve(0))();function bh(n){"undefined"==typeof Zone?BF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class pe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ut(!1),this.onMicrotaskEmpty=new ut(!1),this.onStable=new ut(!1),this.onError=new ut(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&t,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let n=we.requestAnimationFrame,e=we.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(n){const e=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(we,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Eh(n),n.isCheckStableRunning=!0,wh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Eh(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,s,i,o,a)=>{try{return RE(n),t.invokeTask(s,i,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||n.shouldCoalesceRunChangeDetection)&&e(),xE(n)}},onInvoke:(t,r,s,i,o,a,c)=>{try{return RE(n),t.invoke(s,i,o,a,c)}finally{n.shouldCoalesceRunChangeDetection&&e(),xE(n)}},onHasTask:(t,r,s,i)=>{t.hasTask(s,i),r===s&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,Eh(n),wh(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,s,i)=>(t.handleError(s,i),n.runOutsideAngular(()=>n.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,s){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+s,e,UF,nl,nl);try{return i.runTask(o,t,r)}finally{i.cancelTask(o)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const UF={};function wh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Eh(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function RE(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xE(n){n._nesting--,wh(n)}class WF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ut,this.onMicrotaskEmpty=new ut,this.onStable=new ut,this.onError=new ut}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,s){return e.apply(t,r)}}let vh=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{pe.assertNotInAngularZone(),bh(()=>{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())bh(()=>{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,s){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:s})}whenStable(t,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,s){return[]}}return n.\u0275fac=function(t){return new(t||n)(S(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),NE=(()=>{class n{constructor(){this._applications=new Map,Ch.addToWindow(this)}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 Ch.findTestabilityInTree(this,t,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class zF{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}let Ch=new zF,FE=!0,OE=!1;function Dh(){return OE=!0,FE}let jn;const PE=new U("AllowMultipleToken");class Sh{constructor(e,t){this.name=e,this.token=t}}function kE(n,e,t=[]){const r=`Platform: ${e}`,s=new U(r);return(i=[])=>{let o=LE();if(!o||o.injector.get(PE,!1))if(n)n(t.concat(i).concat({provide:s,useValue:!0}));else{const a=t.concat(i).concat({provide:s,useValue:!0},{provide:Qo,useValue:"platform"});!function(n){if(jn&&!jn.destroyed&&!jn.injector.get(PE,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");jn=n.get(VE);const e=n.get(TE,null);e&&e.forEach(t=>t())}(Ce.create({providers:a,name:r}))}return function(n){const e=LE();if(!e)throw new Error("No platform exists!");if(!e.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function LE(){return jn&&!jn.destroyed?jn:null}let VE=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const a=function(n,e){let t;return t="noop"===n?new WF:("zone.js"===n?void 0:n)||new pe({enableLongStackTrace:Dh(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),c=[{provide:pe,useValue:a}];return a.run(()=>{const l=Ce.create({providers:c,parent:this.injector,name:t.moduleType.name}),u=t.create(l),h=u.injector.get(Rn,null);if(!h)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const p=a.onError.subscribe({next:m=>{h.handleError(m)}});u.onDestroy(()=>{Th(this._modules,u),p.unsubscribe()})}),function(n,e,t){try{const r=t();return Kc(r)?r.catch(s=>{throw e.runOutsideAngular(()=>n.handleError(s)),s}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(h,a,()=>{const p=u.injector.get(Yi);return p.runInitializers(),p.donePromise.then(()=>(Pf(u.injector.get(Sr,Jc)||Jc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,r=[]){const s=BE({},r);return function(n,e,t){const r=new sh(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,s))}_moduleDoBootstrap(t){const r=t.injector.get(Zi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${se(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);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 Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(S(Ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function BE(n,e){return Array.isArray(e)?e.reduce(BE,n):Object.assign(Object.assign({},n),e)}let Zi=(()=>{class n{constructor(t,r,s,i,o){this._zone=t,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new fe(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),c=new fe(l=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),bh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{u.unsubscribe(),h.unsubscribe()}});this.isStable=function(...n){let e=Number.POSITIVE_INFINITY,t=null,r=n[n.length-1];return oe(r)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof r&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof fe?n[0]:Do(e)(ju(n,t))}(a,c.pipe(Og()))}bootstrap(t,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let s;s=t instanceof pw?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(s.componentType);const i=function(n){return n.isBoundToModule}(s)?void 0:this._injector.get(or),a=s.create(Ce.NULL,[],r||s.selector,i),c=a.location.nativeElement,l=a.injector.get(vh,null),u=l&&a.injector.get(NE);return l&&u&&u.registerApplication(c,l),a.onDestroy(()=>{this.detachView(a.hostView),Th(this.components,a),u&&u.unregisterApplication(c)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Th(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(IE,[]).concat(this._bootstrapListeners).forEach(s=>s(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(S(pe),S(Ce),S(Rn),S(Is),S(Yi))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Th(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}class ml{}class oO{}const aO={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let cO=(()=>{class n{constructor(t,r){this._compiler=t,this._config=r||aO}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[r,s]=t.split("#");return void 0===s&&(s="default"),ot(255)(r).then(i=>i[s]).then(i=>$E(i,r,s)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(t){let[r,s]=t.split("#"),i="NgFactory";return void 0===s&&(s="default",i=""),ot(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(o=>o[s+i]).then(o=>$E(o,r,s))}}return n.\u0275fac=function(t){return new(t||n)(S(Ns),S(oO,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function $E(n,e,t){if(!n)throw new Error(`Cannot find '${t}' in '${e}'`);return n}const yO=kE(null,"core",[{provide:Ji,useValue:"unknown"},{provide:VE,deps:[Ce]},{provide:NE,deps:[]},{provide:pl,deps:[]}]),CO=[{provide:Zi,useClass:Zi,deps:[pe,Ce,Rn,Is,Yi]},{provide:CN,deps:[pe],useFactory:function(n){let e=[];return n.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Yi,useClass:Yi,deps:[[new ct,wa]]},{provide:Ns,useClass:Ns,deps:[]},RF,{provide:oa,useFactory:function(){return _x},deps:[]},{provide:Ui,useFactory:function(){return yx},deps:[]},{provide:Sr,useFactory:function(n){return Pf(n=n||"undefined"!=typeof $localize&&$localize.locale||Jc),n},deps:[[new gi(Sr),new ct,new mr]]},{provide:ME,useValue:"USD"}];let SO=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(S(Zi))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:CO}),n})(),Tl=null;function Zr(){return Tl}const ie=new U("DocumentToken");let Ps=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({factory:DP,token:n,providedIn:"platform"}),n})();function DP(){return S(hv)}const SP=new U("Location Initialized");let hv=(()=>{class n extends Ps{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zr().getBaseHref(this._doc)}onPopState(t){const r=Zr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Zr().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,s){pv()?this._history.pushState(t,r,s):this.location.hash=s}replaceState(t,r,s){pv()?this._history.replaceState(t,r,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({factory:TP,token:n,providedIn:"platform"}),n})();function pv(){return!!window.history.pushState}function TP(){return new hv(S(ie))}function Uh(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function gv(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Ir(n){return n&&"?"!==n[0]?"?"+n:n}let to=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({factory:IP,token:n,providedIn:"root"}),n})();function IP(n){const e=S(ie).location;return new mv(S(Ps),e&&e.origin||"")}const Hh=new U("appBaseHref");let mv=(()=>{class n extends to{constructor(t,r){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(t){return Uh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Ir(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${r}${s}`:r}pushState(t,r,s,i){const o=this.prepareExternalUrl(s+Ir(i));this._platformLocation.pushState(t,r,o)}replaceState(t,r,s,i){const o=this.prepareExternalUrl(s+Ir(i));this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,s;null===(s=(r=this._platformLocation).historyGo)||void 0===s||s.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(S(Ps),S(Hh,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),MP=(()=>{class n extends to{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=Uh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,s,i){let o=this.prepareExternalUrl(s+Ir(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,r,o)}replaceState(t,r,s,i){let o=this.prepareExternalUrl(s+Ir(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,s;null===(s=(r=this._platformLocation).historyGo)||void 0===s||s.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(S(Ps),S(Hh,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Il=(()=>{class n{constructor(t,r){this._subject=new ut,this._urlChangeListeners=[],this._platformStrategy=t;const s=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=gv(_v(s)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Ir(r))}normalize(t){return n.stripTrailingSlash(function(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,_v(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,r="",s=null){this._platformStrategy.pushState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ir(r)),s)}replaceState(t,r="",s=null){this._platformStrategy.replaceState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ir(r)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var r,s;null===(s=(r=this._platformStrategy).historyGo)||void 0===s||s.call(r,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(s=>s(t,r))}subscribe(t,r,s){return this._subject.subscribe({next:t,error:r,complete:s})}}return n.\u0275fac=function(t){return new(t||n)(S(to),S(Ps))},n.normalizeQueryParams=Ir,n.joinWithSlash=Uh,n.stripTrailingSlash=gv,n.\u0275prov=k({factory:AP,token:n,providedIn:"root"}),n})();function AP(){return new Il(S(to),S(Ps))}function _v(n){return n.replace(/\/index.html$/,"")}var qe=(()=>((qe=qe||{})[qe.Zero=0]="Zero",qe[qe.One=1]="One",qe[qe.Two=2]="Two",qe[qe.Few=3]="Few",qe[qe.Many=4]="Many",qe[qe.Other=5]="Other",qe))();const LP=function(n){return function(n){const e=function(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=Hb(e);if(t)return t;const r=e.split("-")[0];if(t=Hb(r),t)return t;if("en"===r)return QR;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[O.PluralCase]};class Ll{}let fk=(()=>{class n extends Ll{constructor(t){super(),this.locale=t}getPluralCategory(t,r){switch(LP(r||this.locale)(t)){case qe.Zero:return"zero";case qe.One:return"one";case qe.Two:return"two";case qe.Few:return"few";case qe.Many:return"many";default:return"other"}}}return n.\u0275fac=function(t){return new(t||n)(S(Sr))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();let Jh=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new yk,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){Mv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Mv("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}}return n.\u0275fac=function(t){return new(t||n)(M(Ln),M(Dr))},n.\u0275dir=Ae({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class yk{constructor(){this.$implicit=null,this.ngIf=null}}function Mv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${se(e)}'.`)}class Zh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Ma=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let r=0;r{class n{constructor(t,r,s){this.ngSwitch=s,s._addCase(),this._view=new Zh(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(M(Ln),M(Dr),M(Ma,9))},n.\u0275dir=Ae({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),np=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:[{provide:Ll,useClass:fk}]}),n})();const xv="browser";let Nv=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>new Gk(S(ie),window)}),n})();class Gk{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e: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;const t=function(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let s=r.currentNode;for(;s;){const i=s.shadowRoot;if(i){const o=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(o)return o}s=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],s-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Fv(this.window.history)||Fv(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Fv(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class rp extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){Tl||(Tl=n)}(new rp)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(Aa=Aa||document.querySelector("base"),Aa?Aa.getAttribute("href"):null);return null==t?null:function(n){Vl=Vl||document.createElement("a"),Vl.setAttribute("href",n);const e=Vl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Aa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[s,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,e)}}let Vl,Aa=null;const Pv=new U("TRANSITION_ID"),Xk=[{provide:wa,useFactory:function(n,e,t){return()=>{t.get(Yi).donePromise.then(()=>{const r=Zr(),s=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,s);if(null==i)throw new Error("Could not find testability for element.");return i},we.getAllAngularTestabilities=()=>e.getAllTestabilities(),we.getAllAngularRootElements=()=>e.getAllRootElements(),we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(r=>{const s=we.getAllAngularTestabilities();let i=s.length,o=!1;const a=function(c){o=o||c,i--,0==i&&r(o)};s.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:r?Zr().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let eL=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ra=new U("EventManagerPlugins");let jl=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>s.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}addGlobalEventListener(t,r,s){return this._findPluginFor(r).addGlobalEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const s=this._plugins;for(let i=0;i{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),r.add(s))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),xa=(()=>{class n extends Lv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,s){t.forEach(i=>{const o=this._doc.createElement("style");o.textContent=i,s.push(r.appendChild(o))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(Vv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,s)=>{this._addStylesToHost(t,s,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Vv))}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Vv(n){Zr().remove(n)}const op={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/"},ap=/%COMP%/g;function Ul(n,e,t){for(let r=0;r{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Hl=(()=>{class n{constructor(t,r,s){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new cp(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case We.Emulated:{let s=this.rendererByCompId.get(r.id);return s||(s=new gL(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,s)),s.applyToHost(t),s}case 1:case We.ShadowDom:return new mL(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const s=Ul(r.id,r.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(S(jl),S(xa),S(Ea))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class cp{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(op[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,s){if(s){t=s+":"+t;const i=op[s];i?e.setAttributeNS(i,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const s=op[r];s?e.removeAttributeNS(s,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,s){s&(Kt.DashCase|Kt.Important)?e.style.setProperty(t,r,s&Kt.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&Kt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Uv(r)):this.eventManager.addEventListener(e,t,Uv(r))}}class gL extends cp{constructor(e,t,r,s){super(e),this.component=r;const i=Ul(s+"-"+r.id,r.styles,[]);t.addStyles(i),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(ap,n)}(s+"-"+r.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(ap,n)}(s+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class mL extends cp{constructor(e,t,r,s){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ul(s.id,s.styles,[]);for(let o=0;o{class n extends ip{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Wv=["alt","control","meta","shift"],DL={"\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"},zv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},SL={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let TL=(()=>{class n extends ip{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,s){const i=n.parseEventName(r),o=n.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zr().onAndCancel(t,i.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const i=n._normalizeKey(r.pop());let o="";if(Wv.forEach(c=>{const l=r.indexOf(c);l>-1&&(r.splice(l,1),o+=c+".")}),o+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(t){let r="",s=function(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&zv.hasOwnProperty(e)&&(e=zv[e]))}return DL[e]||e}(t);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Wv.forEach(i=>{i!=s&&SL[i](t)&&(r+=i+".")}),r+=s,r}static eventCallback(t,r,s){return i=>{n.getEventFullKey(i)===t&&s.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),no=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({factory:function(){return S(up)},token:n,providedIn:"root"}),n})(),up=(()=>{class n extends no{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case me.NONE:return r;case me.HTML:return Jn(r,"HTML")?Qt(r):p_(this._doc,String(r)).toString();case me.STYLE:return Jn(r,"Style")?Qt(r):r;case me.SCRIPT:if(Jn(r,"Script"))return Qt(r);throw new Error("unsafe value used in a script context");case me.URL:return o_(r),Jn(r,"URL")?Qt(r):Wo(String(r));case me.RESOURCE_URL:if(Jn(r,"ResourceURL"))return Qt(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function(n){return new CI(n)}(t)}bypassSecurityTrustStyle(t){return function(n){return new DI(n)}(t)}bypassSecurityTrustScript(t){return function(n){return new SI(n)}(t)}bypassSecurityTrustUrl(t){return function(n){return new TI(n)}(t)}bypassSecurityTrustResourceUrl(t){return function(n){return new II(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({factory:function(){return function(n){return new up(n.get(ie))}(S(vi))},token:n,providedIn:"root"}),n})();const NL=[{provide:Ji,useValue:xv},{provide:TE,useValue:function(){rp.makeCurrent(),sp.init()},multi:!0},{provide:ie,useFactory:function(){return function(n){td=n}(document),document},deps:[]}],OL=kE(yO,"browser",NL),PL=[[],{provide:Qo,useValue:"root"},{provide:Rn,useFactory:function(){return new Rn},deps:[]},{provide:Ra,useClass:_L,multi:!0,deps:[ie,pe,Ji]},{provide:Ra,useClass:TL,multi:!0,deps:[ie]},[],{provide:Hl,useClass:Hl,deps:[jl,xa,Ea]},{provide:Ms,useExisting:Hl},{provide:Lv,useExisting:xa},{provide:xa,useClass:xa,deps:[ie]},{provide:vh,useClass:vh,deps:[pe]},{provide:jl,useClass:jl,deps:[Ra,pe]},{provide:class{},useClass:eL,deps:[]},[]];let dp=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:Ea,useValue:t.appId},{provide:Pv,useExisting:Ea},Xk]}}}return n.\u0275fac=function(t){return new(t||n)(S(n,12))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:PL,imports:[np,SO]}),n})();"undefined"!=typeof window&&window;class bn extends pt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Vr;return this._value}next(e){super.next(this._value=e)}}function $(...n){let e=n[n.length-1];return oe(e)?(n.pop(),f(n,e)):ju(n)}const Gv=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),ro=new fe(n=>n.complete());function hp(n){return n?function(n){return new fe(e=>n.schedule(()=>e.complete()))}(n):ro}function Na(n){return e=>0===n?hp():e.lift(new ZL(n))}class ZL{constructor(e){if(this.total=e,this.total<0)throw new Gv}call(e,t){return t.subscribe(new XL(e,this.total))}}class XL extends _e{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))}}class t2{constructor(e){this.total=e}call(e,t){return t.subscribe(new n2(e,this.total))}}class n2 extends _e{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class s2{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o2(e,this.compare,this.keySelector))}}class o2 extends _e{constructor(e,t,r){super(e),this.keySelector=r,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:s}=this;t=s?s(e):e}catch(s){return this.destination.error(s)}let r=!1;if(this.hasKey)try{const{compare:s}=this;r=s(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}class c2{constructor(e){this.notifier=e}call(e,t){const r=new l2(e),s=nc(this.notifier,new on(r));return s&&!r.seenValue?(r.add(s),t.subscribe(r)):r}}class l2 extends tc{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ks(n){return null!=n&&"false"!=`${n}`}function $l(n,e=0){return function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function so(n){return n instanceof Me?n.nativeElement:n}let pp;try{pp="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){pp=!1}let Fa,_p,wn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function(n){return n===xv}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!pp)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(S(Ji))},n.\u0275prov=k({factory:function(){return new n(S(Ji))},token:n,providedIn:"root"}),n})(),gp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({}),n})();function mp(n){return function(){if(null==Fa&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Fa=!0}))}finally{Fa=Fa||!1}return Fa}()?n:!!n.capture}function Qv(n){if(function(){if(null==_p){const n="undefined"!=typeof document?document.head:null;_p=!(!n||!n.createShadowRoot&&!n.attachShadow)}return _p}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Oa(n){return n.composedPath?n.composedPath()[0]:n.target}class g2 extends de{constructor(e,t){super()}schedule(e,t=0){return this}}let Yv=(()=>{class n{constructor(t,r=n.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,s){return new this.SchedulerAction(this,t).schedule(s,r)}}return n.now=()=>Date.now(),n})();class es extends Yv{constructor(e,t=Yv.now){super(e,()=>es.delegate&&es.delegate!==this?es.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return es.delegate&&es.delegate!==this?es.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}function rC(n){return 0===n.offsetX&&0===n.offsetY}function sC(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}new es(class extends g2{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let s,r=!1;try{this.work(e)}catch(i){r=!0,s=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,s=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&r.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}),"undefined"!=typeof Element&∈const iC=new U("cdk-input-modality-detector-options"),U2={ignoreKeys:[18,17,224,91,16]},oo=mp({passive:!0,capture:!0});let aC=(()=>{class n{constructor(t,r,s,i){this._platform=t,this._mostRecentTarget=null,this._modality=new bn(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,c;(null===(c=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===c?void 0:c.some(l=>l===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Oa(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(rC(o)?"keyboard":"mouse"),this._mostRecentTarget=Oa(o))},this._onTouchstart=o=>{sC(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Oa(o))},this._options=Object.assign(Object.assign({},U2),i),this.modalityDetected=this._modality.pipe(e=>e.lift(new t2(1))),this.modalityChanged=this.modalityDetected.pipe(t=>t.lift(new s2(void 0,void 0))),t.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,oo),s.addEventListener("mousedown",this._onMousedown,oo),s.addEventListener("touchstart",this._onTouchstart,oo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oo),document.removeEventListener("mousedown",this._onMousedown,oo),document.removeEventListener("touchstart",this._onTouchstart,oo))}}return n.\u0275fac=function(t){return new(t||n)(S(wn),S(pe),S(ie),S(iC,8))},n.\u0275prov=k({factory:function(){return new n(S(wn),S(pe),S(ie),S(iC,8))},token:n,providedIn:"root"}),n})();const uC=new U("cdk-focus-monitor-default-options"),zl=mp({passive:!0,capture:!0});let bp=(()=>{class n{constructor(t,r,s,i,o){this._ngZone=t,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new pt,this._rootNodeFocusAndBlurListener=a=>{const c=Oa(a),l="focus"===a.type?this._onFocus:this._onBlur;for(let u=c;u;u=u.parentElement)l.call(this,a,u)},this._document=i,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,r=!1){const s=so(t);if(!this._platform.isBrowser||1!==s.nodeType)return $(null);const i=Qv(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return r&&(o.checkChildren=!0),o.subject;const a={checkChildren:r,subject:new pt,rootNode:i};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const r=so(t),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(t,r,s){const i=so(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([a,c])=>this._originChanged(a,r,c)):(this._setOrigin(r),"function"==typeof i.focus&&i.focus(s))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,r,s){s?t.classList.add(r):t.classList.remove(r)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,r){this._toggleClass(t,"cdk-focused",!!r),this._toggleClass(t,"cdk-touch-focused","touch"===r),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===r),this._toggleClass(t,"cdk-mouse-focused","mouse"===r),this._toggleClass(t,"cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const s=this._elementInfo.get(r),i=Oa(t);!s||!s.checkChildren&&r!==i||this._originChanged(r,this._getFocusOrigin(i),s)}_onBlur(t,r){const s=this._elementInfo.get(r);!s||s.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(s.subject,null))}_emitOrigin(t,r){this._ngZone.run(()=>t.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,zl),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,zl)}),this._rootNodeFocusListenerCount.set(r,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(function(n){return e=>e.lift(new c2(n))}(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zl),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zl),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,s){this._setClasses(t,r),this._emitOrigin(s.subject,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((s,i)=>{(i===t||s.checkChildren&&i.contains(t))&&r.push([i,s])}),r}}return n.\u0275fac=function(t){return new(t||n)(S(pe),S(wn),S(aC),S(ie,8),S(uC,8))},n.\u0275prov=k({factory:function(){return new n(S(pe),S(wn),S(aC),S(ie,8),S(uC,8))},token:n,providedIn:"root"}),n})();const dC="cdk-high-contrast-black-on-white",fC="cdk-high-contrast-white-on-black",wp="cdk-high-contrast-active";let hC=(()=>{class n{constructor(t,r){this._platform=t,this._document=r}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(t):null,i=(s&&s.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(wp),t.remove(dC),t.remove(fC),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?(t.add(wp),t.add(dC)):2===r&&(t.add(wp),t.add(fC))}}}return n.\u0275fac=function(t){return new(t||n)(S(wn),S(ie))},n.\u0275prov=k({factory:function(){return new n(S(wn),S(ie))},token:n,providedIn:"root"}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({}),n})();const mC=new As("12.2.13");class _C{}const Ar="*";function yC(n,e=null){return{type:2,steps:n,options:e}}function bC(n){return{type:6,styles:n,offset:null}}function wC(n){Promise.resolve(null).then(n)}class ao{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){wC(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class EC{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,s=0;const i=this.players.length;0==i?wC(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==i&&this._onFinish()}),o.onDestroy(()=>{++r==i&&this._onDestroy()}),o.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const s=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(s)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}function vC(){return"undefined"!=typeof window&&void 0!==window.document}function vp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ts(n){switch(n.length){case 0:return new ao;case 1:return n[0];default:return new EC(n)}}function CC(n,e,t,r,s={},i={}){const o=[],a=[];let c=-1,l=null;if(r.forEach(u=>{const h=u.offset,p=h==c,m=p&&l||{};Object.keys(u).forEach(y=>{let E=y,w=u[y];if("offset"!==y)switch(E=e.normalizePropertyName(E,o),w){case"!":w=s[y];break;case Ar:w=i[y];break;default:w=e.normalizeStyleValue(y,E,w,o)}m[E]=w}),p||a.push(m),l=m,c=h}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function Cp(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&Dp(t,"start",n)));break;case"done":n.onDone(()=>r(t&&Dp(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&Dp(t,"destroy",n)))}}function Dp(n,e,t){const r=t.totalTime,i=Sp(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==r?n.totalTime:r,!!t.disabled),o=n._data;return null!=o&&(i._data=o),i}function Sp(n,e,t,r,s="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function Xt(n,e,t){let r;return n instanceof Map?(r=n.get(e),r||n.set(e,r=t)):(r=n[e],r||(r=n[e]=t)),r}function DC(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Tp=(n,e)=>!1,Ip=(n,e)=>!1,SC=(n,e,t)=>[];const TC=vp();(TC||"undefined"!=typeof Element)&&(Tp=vC()?(n,e)=>{for(;e&&e!==document.documentElement;){if(e===n)return!0;e=e.parentNode||e.host}return!1}:(n,e)=>n.contains(e),Ip=(()=>{if(TC||Element.prototype.matches)return(n,e)=>n.matches(e);{const n=Element.prototype,e=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return e?(t,r)=>e.apply(t,[r]):Ip}})(),SC=(n,e,t)=>{let r=[];if(t){const s=n.querySelectorAll(e);for(let i=0;i{const r=t.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=n[t]}),e}let AC=(()=>{class n{validateStyleProperty(t){return Mp(t)}matchesElement(t,r){return Ap(t,r)}containsElement(t,r){return Rp(t,r)}query(t,r,s){return xp(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,i,o,a=[],c){return new ao(s,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Np=(()=>{class n{}return n.NOOP=new AC,n})();const Fp="ng-enter",ql="ng-leave",Gl="ng-trigger",Kl=".ng-trigger",xC="ng-animating",Op=".ng-animating";function Bs(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Pp(parseFloat(e[1]),e[2])}function Pp(n,e){return"s"===e?1e3*n:n}function Ql(n,e,t){return n.hasOwnProperty("duration")?n:function(n,e,t){let s,i=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};s=Pp(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(i=Pp(parseFloat(c),a[4]));const l=a[5];l&&(o=l)}else s=n;if(!t){let a=!1,c=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),a=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&e.splice(c,0,`The provided timing value "${n}" is invalid.`)}return{duration:s,delay:i,easing:o}}(n,e,t)}function co(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ns(n,e,t={}){if(e)for(let r in n)t[r]=n[r];else co(n,t);return t}function FC(n,e,t){return t?e+":"+t+";":""}function OC(n){let e="";for(let t=0;t{const s=Lp(r);t&&!t.hasOwnProperty(r)&&(t[r]=n.style[s]),n.style[s]=e[r]}),vp()&&OC(n))}function js(n,e){n.style&&(Object.keys(e).forEach(t=>{const r=Lp(t);n.style[r]=""}),vp()&&OC(n))}function Pa(n){return Array.isArray(n)?1==n.length?n[0]:yC(n):n}const kp=new RegExp("{{\\s*(.+?)\\s*}}","g");function PC(n){let e=[];if("string"==typeof n){let t;for(;t=kp.exec(n);)e.push(t[1]);kp.lastIndex=0}return e}function Yl(n,e,t){const r=n.toString(),s=r.replace(kp,(i,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return s==r?n:s}function Jl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const X2=/-+([a-z0-9])/g;function Lp(n){return n.replace(X2,(...e)=>e[1].toUpperCase())}function eV(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function kC(n,e){return 0===n||0===e}function LC(n,e,t){const r=Object.keys(t);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(a=>{i.hasOwnProperty(a)||o.push(a),i[a]=t[a]}),o.length)for(var s=1;sfunction(n,e,t){if(":"==n[0]){const c=function(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(n,t);if("function"==typeof c)return void e.push(c);n=c}const r=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(`The provided transition expression "${n}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(VC(s,o));"<"==i[0]&&!("*"==s&&"*"==o)&&e.push(VC(o,s))}(r,t,e)):t.push(n),t}const Xl=new Set(["true","1"]),eu=new Set(["false","0"]);function VC(n,e){const t=Xl.has(n)||eu.has(n),r=Xl.has(e)||eu.has(e);return(s,i)=>{let o="*"==n||n==s,a="*"==e||e==i;return!o&&t&&"boolean"==typeof s&&(o=s?Xl.has(n):eu.has(n)),!a&&r&&"boolean"==typeof i&&(a=i?Xl.has(e):eu.has(e)),o&&a}}const sV=new RegExp("s*:selfs*,?","g");function Bp(n,e,t){return new iV(n).build(e,t)}class iV{constructor(e){this._driver=e}build(e,t){const r=new cV(t);return this._resetContextStyleTimingState(r),en(this,Pa(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0;const i=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,t))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,t);r+=c.queryCount,s+=c.depCount,o.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:o,queryCount:r,depCount:s,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){const i=new Set,o=s||{};if(r.styles.forEach(a=>{if(tu(a)){const c=a;Object.keys(c).forEach(l=>{PC(c[l]).forEach(u=>{o.hasOwnProperty(u)||i.add(u)})})}}),i.size){const a=Jl(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=en(this,Pa(e.animation),t);return{type:1,matchers:tV(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Us(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>en(this,r,t)),options:Us(e.options)}}visitGroup(e,t){const r=t.currentTime;let s=0;const i=e.steps.map(o=>{t.currentTime=r;const a=en(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:3,steps:i,options:Us(e.options)}}visitAnimate(e,t){const r=function(n,e){let t=null;if(n.hasOwnProperty("duration"))t=n;else if("number"==typeof n)return jp(Ql(n,e).duration,0,"");const r=n;if(r.split(/\s+/).some(i=>"{"==i.charAt(0)&&"{"==i.charAt(1))){const i=jp(0,0,"");return i.dynamic=!0,i.strValue=r,i}return t=t||Ql(r,e),jp(t.duration,t.delay,t.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let s,i=e.styles?e.styles:bC({});if(5==i.type)s=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;const l={};r.easing&&(l.easing=r.easing),o=bC(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(o,t);c.isEmptyStep=a,s=c}return t.currentAnimateTimings=null,{type:4,timings:r,style:s,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Ar?r.push(o):t.errors.push(`The provided style string value ${o} is not allowed.`):r.push(o)}):r.push(e.styles);let s=!1,i=null;return r.forEach(o=>{if(tu(o)){const a=o,c=a.easing;if(c&&(i=c,delete a.easing),!s)for(let l in a)if(a[l].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:r,easing:i,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let s=t.currentTime,i=t.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void t.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const c=t.collectedStyles[t.currentQuerySelector],l=c[a];let u=!0;l&&(i!=s&&i>=l.startTime&&s<=l.endTime&&(t.errors.push(`The CSS property "${a}" that exists between the times of "${l.startTime}ms" and "${l.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),u=!1),i=l.startTime),u&&(c[a]={startTime:i,endTime:s}),t.options&&function(n,e,t){const r=e.params||{},s=PC(n);s.length&&s.forEach(i=>{r.hasOwnProperty(i)||t.push(`Unable to resolve the local animation param ${i} in the given list of values`)})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;let i=0;const o=[];let a=!1,c=!1,l=0;const u=e.steps.map(D=>{const C=this._makeStyleAst(D,t);let R=null!=C.offset?C.offset:function(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(tu(t)&&t.hasOwnProperty("offset")){const r=t;e=parseFloat(r.offset),delete r.offset}});else if(tu(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(C.styles),x=0;return null!=R&&(i++,x=C.offset=R),c=c||x<0||x>1,a=a||x0&&i{const R=p>0?C==m?1:p*C:o[C],x=R*w;t.currentTime=y+E.delay+x,E.duration=x,this._validateStyleAst(D,t),D.offset=R,r.styles.push(D)}),r}visitReference(e,t){return{type:8,animation:en(this,Pa(e.animation),t),options:Us(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Us(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Us(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[i,o]=function(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(sV,"")),n=n.replace(/@\*/g,Kl).replace(/@\w+/g,t=>Kl+"-"+t.substr(1)).replace(/:animating/g,Op),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+i:i,Xt(t.collectedStyles,t.currentQuerySelector,{});const a=en(this,Pa(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Us(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ql(e.timings,t.errors,!0);return{type:12,animation:en(this,Pa(e.animation),t),timings:r,options:null}}}class cV{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function tu(n){return!Array.isArray(n)&&"object"==typeof n}function Us(n){return n?(n=co(n)).params&&(n.params=function(n){return n?co(n):null}(n.params)):n={},n}function jp(n,e,t){return{duration:n,delay:e,easing:t}}function Up(n,e,t,r,s,i,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class nu{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const hV=new RegExp(":enter","g"),gV=new RegExp(":leave","g");function Hp(n,e,t,r,s,i={},o={},a,c,l=[]){return(new mV).buildKeyframes(n,e,t,r,s,i,o,a,c,l)}class mV{buildKeyframes(e,t,r,s,i,o,a,c,l,u=[]){l=l||new nu;const h=new $p(e,t,l,s,i,u,[]);h.options=c,h.currentTimeline.setStyles([o],null,h.errors,c),en(this,r,h);const p=h.timelines.filter(m=>m.containsAnimation());if(p.length&&Object.keys(a).length){const m=p[p.length-1];m.allowOnlyTimelineStyles()||m.setStyles([a],null,h.errors,c)}return p.length?p.map(m=>m.buildKeyframes()):[Up(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.consume(t.element);if(r){const s=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,s,s.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let i=t.currentTimeline.currentTime;const o=null!=r.duration?Bs(r.duration):null,a=null!=r.delay?Bs(r.delay):null;return 0!==o&&e.forEach(c=>{const l=t.appendInstructionToTimeline(c,o,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),en(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let s=t;const i=e.options;if(i&&(i.params||i.delay)&&(s=t.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ru);const o=Bs(i.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>en(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let s=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?Bs(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);i&&a.delayNextStep(i),en(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return Ql(t.params?Yl(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(r.duration),this.visitStyle(i,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.getCurrentStyleProperties().length&&r.forwardFrame();const i=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,s=t.currentTimeline.duration,i=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{a.forwardTime((c.offset||0)*i),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+i),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,s=e.options||{},i=s.delay?Bs(s.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ru);let o=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const h=t.createSubContext(e.options,l);i&&h.delayNextStep(i),l===t.element&&(c=h.currentTimeline),en(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,h.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,s=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1);let c=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const h=u.currentTime;en(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-h+(s.startTime-r.currentTimeline.startTime)}}const ru={};class $p{constructor(e,t,r,s,i,o,a,c){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new su(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let s=this.options;null!=r.duration&&(s.duration=Bs(r.duration)),null!=r.delay&&(s.delay=Bs(r.delay));const i=r.params;if(i){let o=s.params;o||(o=this.options.params={}),Object.keys(i).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Yl(i[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){const s=t||this.element,i=new $p(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},i=new _V(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,i,o){let a=[];if(s&&a.push(this.element),e.length>0){e=(e=e.replace(hV,"."+this._enterClassName)).replace(gV,"."+this._leaveClassName);let l=this._driver.query(this.element,e,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&0==a.length&&o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),a}}class su{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new su(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Ar,this._currentKeyframe[t]=Ar}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&(this._previousKeyframe.easing=t);const i=s&&s.params||{},o=function(n,e){const t={};let r;return n.forEach(s=>{"*"===s?(r=r||Object.keys(e),r.forEach(i=>{t[i]=Ar})):ns(s,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const c=Yl(o[a],i,r);this._pendingStyles[a]=c,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ar),this._updateStyle(a,c)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const r=this._styleSummary[t],s=e._styleSummary[t];(!r||s.time>r.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,c)=>{const l=ns(a,!0);Object.keys(l).forEach(u=>{const h=l[u];"!"==h?e.add(u):h==Ar&&t.add(u)}),r||(l.offset=c/this.duration),s.push(l)});const i=e.size?Jl(e.values()):[],o=t.size?Jl(t.values()):[];if(r){const a=s[0],c=co(a);a.offset=0,c.offset=1,s=[a,c]}return Up(this.element,s,i,o,this.duration,this.startTime,this.easing,!1)}}class _V extends su{constructor(e,t,r,s,i,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],o=r+t,a=t/o,c=ns(e[0],!1);c.offset=0,i.push(c);const l=ns(e[0],!1);l.offset=UC(a),i.push(l);const u=e.length-1;for(let h=1;h<=u;h++){let p=ns(e[h],!1);p.offset=UC((t+p.offset*r)/o),i.push(p)}r=o,t=0,s="",e=i}return Up(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}}function UC(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Wp{}class bV extends Wp{normalizePropertyName(e,t){return Lp(e)}normalizeStyleValue(e,t,r,s){let i="";const o=r.toString().trim();if(wV[t]&&0!==r&&"0"!==r)if("number"==typeof r)i="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(`Please provide a CSS unit value for ${e}:${r}`)}return o+i}}const wV=(()=>function(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function HC(n,e,t,r,s,i,o,a,c,l,u,h,p){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:p}}const zp={};class $C{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return function(n,e,t,r,s){return n.some(i=>i(e,t,r,s))}(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){const s=this._stateStyles["*"],i=this._stateStyles[e],o=s?s.buildStyles(t,r):{};return i?i.buildStyles(t,r):o}build(e,t,r,s,i,o,a,c,l,u){const h=[],p=this.ast.options&&this.ast.options.params||zp,y=this.buildStyles(r,a&&a.params||zp,h),E=c&&c.params||zp,w=this.buildStyles(s,E,h),D=new Set,C=new Map,R=new Map,x="void"===s,z={params:Object.assign(Object.assign({},p),E)},ve=u?[]:Hp(e,t,this.ast.animation,i,o,y,w,z,l,h);let Se=0;if(ve.forEach(Ct=>{Se=Math.max(Ct.duration+Ct.delay,Se)}),h.length)return HC(t,this._triggerName,r,s,x,y,w,[],[],C,R,Se,h);ve.forEach(Ct=>{const Dt=Ct.element,Pr=Xt(C,Dt,{});Ct.preStyleProps.forEach(zn=>Pr[zn]=!0);const kr=Xt(R,Dt,{});Ct.postStyleProps.forEach(zn=>kr[zn]=!0),Dt!==t&&D.add(Dt)});const Pt=Jl(D.values());return HC(t,this._triggerName,r,s,x,y,w,ve,Pt,C,R,Se)}}class CV{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r={},s=co(this.defaultParams);return Object.keys(e).forEach(i=>{const o=e[i];null!=o&&(s[i]=o)}),this.styles.styles.forEach(i=>{if("string"!=typeof i){const o=i;Object.keys(o).forEach(a=>{let c=o[a];c.length>1&&(c=Yl(c,s,t));const l=this.normalizer.normalizePropertyName(a,t);c=this.normalizer.normalizeStyleValue(a,l,c,t),r[l]=c})}}),r}}class SV{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states={},t.states.forEach(s=>{this.states[s.name]=new CV(s.style,s.options&&s.options.params||{},r)}),WC(this.states,"true","1"),WC(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new $C(e,s,this.states))}),this.fallbackTransition=function(n,e,t){return new $C(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(o=>o.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function WC(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const IV=new nu;class MV{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],s=Bp(this._driver,t,r);if(r.length)throw new Error(`Unable to build the animation due to the following errors: ${r.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,r){const s=e.element,i=CC(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(s,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const s=[],i=this._animations[e];let o;const a=new Map;if(i?(o=Hp(this._driver,t,i,Fp,ql,{},{},r,IV,s),o.forEach(u=>{const h=Xt(a,u.element,{});u.postStyleProps.forEach(p=>h[p]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);a.forEach((u,h)=>{Object.keys(u).forEach(p=>{u[p]=this._driver.computeStyle(h,p,Ar)})});const l=ts(o.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,r,s){const i=Sp(t,"","","");return Cp(this._getPlayer(e),r,i,s),()=>{}}command(e,t,r,s){if("register"==r)return void this.register(e,s[0]);if("create"==r)return void this.create(e,t,s[0]||{});const i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const zC="ng-animate-queued",qC="ng-animate-disabled",GC=".ng-animate-disabled",NV=[],KC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},En="__ng_removed";class qp{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(r?e.value:e),r){const i=co(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(s=>{null==r[s]&&(r[s]=t[s])})}}}const ka="void",Gp=new qp(ka);class OV{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,vn(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${r}" because the animation trigger "${t}" doesn't exist!`);if(null==r||0==r.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(r))throw new Error(`The provided animation trigger event "${r}" for the animation trigger "${t}" is not supported!`);const i=Xt(this._elementListeners,e,[]),o={name:t,phase:r,callback:s};i.push(o);const a=Xt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(vn(e,Gl),vn(e,Gl+"-"+t),a[t]=Gp),()=>{this._engine.afterFlush(()=>{const c=i.indexOf(o);c>=0&&i.splice(c,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,r,s=!0){const i=this._getTrigger(t),o=new Kp(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(vn(e,Gl),vn(e,Gl+"-"+t),this._engine.statesByElement.set(e,a={}));let c=a[t];const l=new qp(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a[t]=l,c||(c=Gp),l.value!==ka&&c.value===l.value){if(!function(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let s=0;s{js(e,w),ar(e,D)})}return}const p=Xt(this._engine.playersByElement,e,[]);p.forEach(E=>{E.namespaceId==this.id&&E.triggerName==t&&E.queued&&E.destroy()});let m=i.matchTransition(c.value,l.value,e,l.params),y=!1;if(!m){if(!s)return;m=i.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:m,fromState:c,toState:l,player:o,isFallbackTransition:y}),y||(vn(e,zC),o.onStart(()=>{lo(e,zC)})),o.onDone(()=>{let E=this.players.indexOf(o);E>=0&&this.players.splice(E,1);const w=this._engine.playersByElement.get(e);if(w){let D=w.indexOf(o);D>=0&&w.splice(D,1)}}),this.players.push(o),p.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,Kl,!0);r.forEach(s=>{if(s[En])return;const i=this._engine.fetchNamespacesByElement(s);i.size?i.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){const i=this._engine.statesByElement.get(e);if(i){const o=[];if(Object.keys(i).forEach(a=>{if(this._triggers[a]){const c=this.trigger(e,a,ka,s);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),r&&ts(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const s=new Set;t.forEach(i=>{const o=i.name;if(s.has(o))return;s.add(o);const c=this._triggers[o].fallbackTransition,l=r[o]||Gp,u=new qp(ka),h=new Kp(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:c,fromState:l,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){const i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{const i=e[En];(!i||i===KC)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){vn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const s=r.player;if(s.destroyed)return;const i=r.element,o=this._elementListeners.get(i);o&&o.forEach(a=>{if(a.name==r.triggerName){const c=Sp(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,Cp(r.player,a.phase,c,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{const i=r.transition.ast.depCount,o=s.transition.ast.depCount;return 0==i||0==o?i-o:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class PV{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,i)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new OV(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList.length-1;if(r>=0){let s=!1;for(let i=r;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const s=Object.keys(r);for(let i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),vn(e,qC)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),lo(e,qC))}removeNode(e,t,r,s){if(iu(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),r){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,r,s){this.collectedLeaveElements.push(t),t[En]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1}}listen(e,t,r,s,i){return iu(t)?this._fetchNamespace(e).listen(t,r,s,i):()=>{}}_buildInstruction(e,t,r,s,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,Kl,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Op,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ts(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[En];if(t&&t.setForRemoval){if(e[En]=KC,t.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,GC)&&this.markElementAsDisabled(e,!1),this.driver.query(e,GC,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?ts(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const r=new nu,s=[],i=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const V=this.driver.query(P,".ng-animate-queued",!0);for(let Y=0;Y{const Y=Fp+E++;y.set(V,Y),P.forEach(ge=>vn(ge,Y))});const w=[],D=new Set,C=new Set;for(let P=0;PD.add(ge)):C.add(V))}const R=new Map,x=JC(p,Array.from(D));x.forEach((P,V)=>{const Y=ql+E++;R.set(V,Y),P.forEach(ge=>vn(ge,Y))}),e.push(()=>{m.forEach((P,V)=>{const Y=y.get(V);P.forEach(ge=>lo(ge,Y))}),x.forEach((P,V)=>{const Y=R.get(V);P.forEach(ge=>lo(ge,Y))}),w.forEach(P=>{this.processLeaveNode(P)})});const z=[],ve=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(Y=>{const ge=Y.player,it=Y.element;if(z.push(ge),this.collectedEnterElements.length){const dr=it[En];if(dr&&dr.setForMove)return void ge.destroy()}const ur=!h||!this.driver.containsElement(h,it),nn=R.get(it),ls=y.get(it),He=this._buildInstruction(Y,r,ls,nn,ur);if(He.errors&&He.errors.length)ve.push(He);else{if(ur)return ge.onStart(()=>js(it,He.fromStyles)),ge.onDestroy(()=>ar(it,He.toStyles)),void s.push(ge);if(Y.isFallbackTransition)return ge.onStart(()=>js(it,He.fromStyles)),ge.onDestroy(()=>ar(it,He.toStyles)),void s.push(ge);He.timelines.forEach(dr=>dr.stretchStartingKeyframe=!0),r.append(it,He.timelines),o.push({instruction:He,player:ge,element:it}),He.queriedElements.forEach(dr=>Xt(a,dr,[]).push(ge)),He.preStyleProps.forEach((dr,Qa)=>{const Ou=Object.keys(dr);if(Ou.length){let Ys=c.get(Qa);Ys||c.set(Qa,Ys=new Set),Ou.forEach(Rg=>Ys.add(Rg))}}),He.postStyleProps.forEach((dr,Qa)=>{const Ou=Object.keys(dr);let Ys=l.get(Qa);Ys||l.set(Qa,Ys=new Set),Ou.forEach(Rg=>Ys.add(Rg))})}});if(ve.length){const P=[];ve.forEach(V=>{P.push(`@${V.triggerName} has failed due to:\n`),V.errors.forEach(Y=>P.push(`- ${Y}\n`))}),z.forEach(V=>V.destroy()),this.reportError(P)}const Se=new Map,Pt=new Map;o.forEach(P=>{const V=P.element;r.has(V)&&(Pt.set(V,V),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Se))}),s.forEach(P=>{const V=P.element;this._getPreviousPlayers(V,!1,P.namespaceId,P.triggerName,null).forEach(ge=>{Xt(Se,V,[]).push(ge),ge.destroy()})});const Ct=w.filter(P=>XC(P,c,l)),Dt=new Map;YC(Dt,this.driver,C,l,Ar).forEach(P=>{XC(P,c,l)&&Ct.push(P)});const kr=new Map;m.forEach((P,V)=>{YC(kr,this.driver,new Set(P),c,"!")}),Ct.forEach(P=>{const V=Dt.get(P),Y=kr.get(P);Dt.set(P,Object.assign(Object.assign({},V),Y))});const zn=[],_o=[],yo={};o.forEach(P=>{const{element:V,player:Y,instruction:ge}=P;if(r.has(V)){if(u.has(V))return Y.onDestroy(()=>ar(V,ge.toStyles)),Y.disabled=!0,Y.overrideTotalTime(ge.totalTime),void s.push(Y);let it=yo;if(Pt.size>1){let nn=V;const ls=[];for(;nn=nn.parentNode;){const He=Pt.get(nn);if(He){it=He;break}ls.push(nn)}ls.forEach(He=>Pt.set(He,it))}const ur=this._buildAnimation(Y.namespaceId,ge,Se,i,kr,Dt);if(Y.setRealPlayer(ur),it===yo)zn.push(Y);else{const nn=this.playersByElement.get(it);nn&&nn.length&&(Y.parentPlayer=ts(nn)),s.push(Y)}}else js(V,ge.fromStyles),Y.onDestroy(()=>ar(V,ge.toStyles)),_o.push(Y),u.has(V)&&s.push(Y)}),_o.forEach(P=>{const V=i.get(P.element);if(V&&V.length){const Y=ts(V);P.setRealPlayer(Y)}}),s.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P!ur.destroyed);it.length?BV(this,V,it):this.processLeaveNode(V)}return w.length=0,zn.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const V=this.players.indexOf(P);this.players.splice(V,1)}),P.play()}),zn}elementContainsData(e,t){let r=!1;const s=t[En];return s&&s.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,i){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const c=!i||i==ka;a.forEach(l=>{l.queued||!c&&l.triggerName!=s||o.push(l)})}}return(r||s)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){const i=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==i,h=Xt(r,l,[]);this._getPreviousPlayers(l,u,o,a,t.toState).forEach(m=>{const y=m.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),m.destroy(),h.push(m)})}js(i,t.fromStyles)}_buildAnimation(e,t,r,s,i,o){const a=t.triggerName,c=t.element,l=[],u=new Set,h=new Set,p=t.timelines.map(y=>{const E=y.element;u.add(E);const w=E[En];if(w&&w.removedBeforeQueried)return new ao(y.duration,y.delay);const D=E!==c,C=function(n){const e=[];return ZC(n,e),e}((r.get(E)||NV).map(Se=>Se.getRealPlayer())).filter(Se=>!!Se.element&&Se.element===E),R=i.get(E),x=o.get(E),z=CC(0,this._normalizer,0,y.keyframes,R,x),ve=this._buildPlayer(y,z,C);if(y.subTimeline&&s&&h.add(E),D){const Se=new Kp(e,a,E);Se.setRealPlayer(ve),l.push(Se)}return ve});l.forEach(y=>{Xt(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function(n,e,t){let r;if(n instanceof Map){if(r=n.get(e),r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&n.delete(e)}}else if(r=n[e],r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&delete n[e]}return r}(this.playersByQueriedElement,y.element,y))}),u.forEach(y=>vn(y,xC));const m=ts(p);return m.onDestroy(()=>{u.forEach(y=>lo(y,xC)),ar(c,t.toStyles)}),h.forEach(y=>{Xt(s,y,[]).push(m)}),m}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new ao(e.duration,e.delay)}}class Kp{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new ao,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(r=>Cp(e,t,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Xt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function iu(n){return n&&1===n.nodeType}function QC(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function YC(n,e,t,r,s){const i=[];t.forEach(c=>i.push(QC(c)));const o=[];r.forEach((c,l)=>{const u={};c.forEach(h=>{const p=u[h]=e.computeStyle(l,h,s);(!p||0==p.length)&&(l[En]=FV,o.push(l))}),n.set(l,u)});let a=0;return t.forEach(c=>QC(c,i[a++])),o}function JC(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const s=new Set(e),i=new Map;function o(a){if(!a)return 1;let c=i.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:s.has(l)?1:o(l),i.set(a,c),c}return e.forEach(a=>{const c=o(a);1!==c&&t.get(c).push(a)}),t}const ou="$$classes";function vn(n,e){if(n.classList)n.classList.add(e);else{let t=n[ou];t||(t=n[ou]={}),t[e]=!0}}function lo(n,e){if(n.classList)n.classList.remove(e);else{let t=n[ou];t&&delete t[e]}}function BV(n,e,t){ts(t).onDone(()=>n.processLeaveNode(e))}function ZC(n,e){for(let t=0;ts.add(i)):e.set(n,r),t.delete(n),!0}class au{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,i)=>{},this._transitionEngine=new PV(e,t,r),this._timelineEngine=new MV(e,t,r),this._transitionEngine.onRemovalComplete=(s,i)=>this.onRemovalComplete(s,i)}registerTrigger(e,t,r,s,i){const o=e+"-"+s;let a=this._triggerCache[o];if(!a){const c=[],l=Bp(this._driver,i,c);if(c.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${c.join("\n - ")}`);a=function(n,e,t){return new SV(n,e,t)}(s,l,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r,s){this._transitionEngine.removeNode(e,t,s||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if("@"==r.charAt(0)){const[i,o]=DC(r);this._timelineEngine.command(i,t,o,s)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,i){if("@"==r.charAt(0)){const[o,a]=DC(r);return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,r,s,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function eD(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=Qp(e[0]),e.length>1&&(r=Qp(e[e.length-1]))):e&&(t=Qp(e)),t||r?new HV(n,t,r):null}let HV=(()=>{class n{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let i=n.initialStylesByElement.get(t);i||n.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ar(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ar(this._element,this._initialStyles),this._endStyles&&(ar(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(js(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(js(this._element,this._endStyles),this._endStyles=null),ar(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Qp(n){let e=null;const t=Object.keys(n);for(let r=0;rthis._handleCallback(c)}apply(){(function(n,e){const t=Jp(n,"").trim();let r=0;t.length&&(function(n,e){let t=0;for(let r=0;r=this._delay&&r>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),iD(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,e){const r=Jp(n,"").split(","),s=Yp(r,e);s>=0&&(r.splice(s,1),cu(n,"",r.join(",")))}(this._element,this._name))}}function rD(n,e,t){cu(n,"PlayState",t,sD(n,e))}function sD(n,e){const t=Jp(n,"");return t.indexOf(",")>0?Yp(t.split(","),e):Yp([t],e)}function Yp(n,e){for(let t=0;t=0)return t;return-1}function iD(n,e,t){t?n.removeEventListener(nD,e):n.addEventListener(nD,e)}function cu(n,e,t,r){const s=tD+e;if(null!=r){const i=n.style[s];if(i.length){const o=i.split(",");o[r]=t,t=o.join(",")}}n.style[s]=t}function Jp(n,e){return n.style[tD+e]||""}class oD{constructor(e,t,r,s,i,o,a,c){this.element=e,this.keyframes=t,this.animationName=r,this._duration=s,this._delay=i,this._finalStyles=a,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=s+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new qV(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(r=>{"offset"!=r&&(e[r]=t?this._finalStyles[r]:Vp(this.element,r))})}this.currentSnapshot=e}}class ZV extends ao{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=MC(t)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class cD{constructor(){this._count=0}validateStyleProperty(e){return Mp(e)}matchesElement(e,t){return Ap(e,t)}containsElement(e,t){return Rp(e,t)}query(e,t,r){return xp(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,r){r=r.map(a=>MC(a));let s=`@keyframes ${t} {\n`,i="";r.forEach(a=>{i=" ";const c=parseFloat(a.offset);s+=`${i}${100*c}% {\n`,i+=" ",Object.keys(a).forEach(l=>{const u=a[l];switch(l){case"offset":return;case"easing":return void(u&&(s+=`${i}animation-timing-function: ${u};\n`));default:return void(s+=`${i}${l}: ${u};\n`)}}),s+=`${i}}\n`}),s+="}\n";const o=document.createElement("style");return o.textContent=s,o}animate(e,t,r,s,i,o=[],a){const c=o.filter(w=>w instanceof oD),l={};kC(r,s)&&c.forEach(w=>{let D=w.currentSnapshot;Object.keys(D).forEach(C=>l[C]=D[C])});const u=function(n){let e={};return n&&(Array.isArray(n)?n:[n]).forEach(r=>{Object.keys(r).forEach(s=>{"offset"==s||"easing"==s||(e[s]=r[s])})}),e}(t=LC(e,t,l));if(0==r)return new ZV(e,u);const h="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(e,h,t);(function(n){var e;const t=null===(e=n.getRootNode)||void 0===e?void 0:e.call(n);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head})(e).appendChild(p);const y=eD(e,t),E=new oD(e,t,h,r,s,i,u,y);return E.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(p)),E}}class uD{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,r){return e.animate(t,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Vp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class rB{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(dD().toString()),this._cssKeyframesDriver=new cD}validateStyleProperty(e){return Mp(e)}matchesElement(e,t){return Ap(e,t)}containsElement(e,t){return Rp(e,t)}query(e,t,r){return xp(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,r,s,i,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,r,s,i,o);const u={duration:r,delay:s,fill:0==s?"both":"forwards"};i&&(u.easing=i);const h={},p=o.filter(y=>y instanceof uD);kC(r,s)&&p.forEach(y=>{let E=y.currentSnapshot;Object.keys(E).forEach(w=>h[w]=E[w])});const m=eD(e,t=LC(e,t=t.map(y=>ns(y,!1)),h));return new uD(e,t,u,m)}}function dD(){return vC()&&Element.prototype.animate||{}}let iB=(()=>{class n extends _C{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:We.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?yC(t):t;return fD(this._renderer,null,r,"register",[s]),new oB(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(S(Ms),S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class oB extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new aB(this._id,e,t||{},this._renderer)}}class aB{constructor(e,t,r,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return fD(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function fD(n,e,t,r,s){return n.setProperty(e,`@@${t}:${r}`,s)}const hD="@.disabled";let cB=(()=>{class n{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(i,o)=>{o&&o.parentNode(i)&&o.removeChild(i.parentNode,i)}}createRenderer(t,r){const i=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(i);return u||(u=new pD("",i,this.engine),this._rendererCache.set(i,u)),u}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(o,a,t,u.name,u)};return r.data.animation.forEach(c),new lB(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&tr(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(i=>{const[o,a]=i;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(S(Ms),S(au),S(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class pD{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?s=>t.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==hD?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class lB extends pD{constructor(e,t,r,s){super(t,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==hD?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const s=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let i=t.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}let fB=(()=>{class n extends au{constructor(t,r,s){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(S(ie),S(Np),S(Wp))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const rs=new U("AnimationModuleType"),gD=[{provide:_C,useClass:iB},{provide:Wp,useFactory:function(){return new bV}},{provide:au,useClass:fB},{provide:Ms,useFactory:function(n,e,t){return new cB(n,e,t)},deps:[Hl,au,pe]}],mD=[{provide:Np,useFactory:function(){return"function"==typeof dD()?new rB:new cD}},{provide:rs,useValue:"BrowserAnimations"},...gD],_D=[{provide:Np,useClass:AC},{provide:rs,useValue:"NoopAnimations"},...gD];let mB=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?_D:mD}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:mD,imports:[dp]}),n})();const yD=new As("12.2.13"),CB=new U("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Hs,Cn=(()=>{class n{constructor(t,r,s){this._hasDoneGlobalChecks=!1,this._document=s,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=r,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!Dh()||"undefined"!=typeof __karma__&&__karma__||"undefined"!=typeof jasmine&&jasmine||"undefined"!=typeof jest&&jest||"undefined"!=typeof Mocha&&Mocha)&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const r=getComputedStyle(t);r&&"none"!==r.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&yD.full!==mC.full&&console.warn("The Angular Material version ("+yD.full+") does not match the Angular CDK version ("+mC.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(t){return new(t||n)(S(hC),S(CB,8),S(ie))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[gC],gC]}),n})();function bD(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=ks(e)}}}function Zp(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const r=t||this.defaultColor;r!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),r&&this._elementRef.nativeElement.classList.add(`mat-${r}`),this._color=r)}}}function DB(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ks(e)}}}try{Hs="undefined"!=typeof Intl}catch(n){Hs=!1}class kB{constructor(e,t,r){this._renderer=e,this.element=t,this.config=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ED={enterDuration:225,exitDuration:150},Xp=mp({passive:!0}),vD=["mousedown","touchstart"],CD=["mouseup","mouseleave","touchend","touchcancel"];class VB{constructor(e,t,r,s){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=so(r))}fadeInRipple(e,t,r={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},ED),r.animation);r.centered&&(e=s.left+s.width/2,t=s.top+s.height/2);const o=r.radius||function(n,e,t){const r=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),s=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(r*r+s*s)}(e,t,s),a=e-s.left,c=t-s.top,l=i.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=c-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=r.color&&(u.style.backgroundColor=r.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u),function(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new kB(this,u,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const p=h===this._mostRecentTransientRipple;h.state=1,!r.persistent&&(!p||!this._isPointerDown)&&h.fadeOut()},l),h}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const r=e.element,s=Object.assign(Object.assign({},ED),e.config.animation);r.style.transitionDuration=`${s.exitDuration}ms`,r.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,r.parentNode.removeChild(r)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=so(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(vD))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(CD),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=rC(e),r=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Xp)})})}_removeTriggerEvents(){this._triggerElement&&(vD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Xp)}),this._pointerUpEventsRegistered&&CD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Xp)}))}}const UB=new U("mat-ripple-global-options");let du=(()=>{class n{constructor(t,r,s,i,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new VB(this,r,t,s)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,s){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,r,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(pe),M(wn),M(UB,8),M(rs,8))},n.\u0275dir=Ae({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,r){2&t&&Zt("mat-ripple-unbounded",r.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),DD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Cn,gp],Cn]}),n})();function fu(n,e){return new fe(t=>{const r=n.length;if(0===r)return void t.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{l||(l=!0,o++),s[a]=u},error:u=>t.error(u),complete:()=>{i++,(i===r||!l)&&(o===r&&t.next(e?e.reduce((u,h,p)=>(u[h]=s[p],u),{}):s),t.complete())}}))}})}function ss(){}function vt(n,e,t){return function(s){return s.lift(new ZB(n,e,t))}}class ZB{constructor(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}call(e,t){return t.subscribe(new XB(e,this.nextOrObserver,this.error,this.complete))}}class XB extends _e{constructor(e,t,r,s){super(e),this._tapNext=ss,this._tapError=ss,this._tapComplete=ss,this._tapError=r||ss,this._tapComplete=s||ss,St(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ss,this._tapError=t.error||ss,this._tapComplete=t.complete||ss)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function is(n){return function(t){const r=new e8(n),s=t.lift(r);return r.caught=s}}class e8{constructor(e){this.selector=e}call(e,t){return t.subscribe(new t8(e,this.selector,this.caught))}}class t8 extends tc{constructor(e,t,r){super(e),this.selector=t,this.caught=r}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new on(this);this.add(r);const s=nc(t,r);s!==r&&this.add(s)}}}function MD(n){return e=>e.lift(new n8(n))}class n8{constructor(e){this.callback=e}call(e,t){return t.subscribe(new r8(e,this.callback))}}class r8 extends _e{constructor(e,t){super(e),this.add(new de(t))}}function uo(n,e){return at(n,e,1)}function $s(n,e){return function(r){return r.lift(new s8(n,e))}}class s8{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new i8(e,this.predicate,this.thisArg))}}class i8 extends _e{constructor(e,t,r){super(e),this.predicate=t,this.thisArg=r,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)}}class AD{}class Rr{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const s=t.slice(0,r),i=s.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(s,i),this.headers.has(i)?this.headers.get(i).push(o):this.headers.set(i,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let r=e[t];const s=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(s,r),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Rr?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(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Rr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Rr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const s=("a"===e.op?this.headers.get(t):void 0)||[];s.push(...r),this.headers.set(t,s);break;case"d":const i=e.value;if(i){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===i.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class o8{encodeKey(e){return xD(e)}encodeValue(e){return xD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const c8=/%(\d[a-f0-9])/gi,l8={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function xD(n){return encodeURIComponent(n).replace(c8,(e,t)=>{var r;return null!==(r=l8[t])&&void 0!==r?r:e})}function ND(n){return`${n}`}class os{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new o8,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(s=>{const i=s.indexOf("="),[o,a]=-1==i?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],c=t.get(o)||[];c.push(a),t.set(o,c)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t];this.map.set(t,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const s=e[r];Array.isArray(s)?s.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:s,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new os({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(ND(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const s=r.indexOf(ND(e.value));-1!==s&&r.splice(s,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class u8{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),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}keys(){return this.map.keys()}}function FD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function OD(n){return"undefined"!=typeof Blob&&n instanceof Blob}function PD(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Va{constructor(e,t,r,s){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==r?r:null,i=s):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 Rr),this.context||(this.context=new u8),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ap.set(m,e.setHeaders[m]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((p,m)=>p.set(m,e.setParams[m]),u)),new Va(r,s,o,{params:u,headers:l,context:h,reportProgress:c,responseType:i,withCredentials:a})}}var Ke=(()=>((Ke=Ke||{})[Ke.Sent=0]="Sent",Ke[Ke.UploadProgress=1]="UploadProgress",Ke[Ke.ResponseHeader=2]="ResponseHeader",Ke[Ke.DownloadProgress=3]="DownloadProgress",Ke[Ke.Response=4]="Response",Ke[Ke.User=5]="User",Ke))();class hu extends class{constructor(e,t=200,r="OK"){this.headers=e.headers||new Rr,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=Ke.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new hu({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function ng(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let pu=(()=>{class n{constructor(t){this.handler=t}request(t,r,s={}){let i;if(t instanceof Va)i=t;else{let c,l;c=s.headers instanceof Rr?s.headers:new Rr(s.headers),s.params&&(l=s.params instanceof os?s.params:new os({fromObject:s.params})),i=new Va(t,r,void 0!==s.body?s.body:null,{headers:c,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const o=$(i).pipe(uo(c=>this.handler.handle(c)));if(t instanceof Va||"events"===s.observe)return o;const a=o.pipe($s(c=>c instanceof hu));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(re(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(re(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(re(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(re(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${s.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 os).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,ng(s,r))}post(t,r,s={}){return this.request("POST",t,ng(s,r))}put(t,r,s={}){return this.request("PUT",t,ng(s,r))}}return n.\u0275fac=function(t){return new(t||n)(S(AD))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const b8=["*"];function UD(n){return Error(`Unable to find icon with the name "${n}"`)}function HD(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function $D(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ws{constructor(e,t,r){this.url=e,this.svgText=t,this.options=r}}let gu=(()=>{class n{constructor(t,r,s,i){this._httpClient=t,this._sanitizer=r,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=s}addSvgIcon(t,r,s){return this.addSvgIconInNamespace("",t,r,s)}addSvgIconLiteral(t,r,s){return this.addSvgIconLiteralInNamespace("",t,r,s)}addSvgIconInNamespace(t,r,s,i){return this._addSvgIconConfig(t,r,new Ws(s,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,s,i){const o=this._sanitizer.sanitize(me.HTML,s);if(!o)throw $D(s);return this._addSvgIconConfig(t,r,new Ws("",o,i))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,s){return this._addSvgIconSetConfig(t,new Ws(r,null,s))}addSvgIconSetLiteralInNamespace(t,r,s){const i=this._sanitizer.sanitize(me.HTML,r);if(!i)throw $D(r);return this._addSvgIconSetConfig(t,new Ws("",i,s))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const r=this._sanitizer.sanitize(me.RESOURCE_URL,t);if(!r)throw HD(t);const s=this._cachedIconsByUrl.get(r);return s?$(mu(s)):this._loadSvgIconFromConfig(new Ws(t,null)).pipe(vt(i=>this._cachedIconsByUrl.set(r,i)),re(i=>mu(i)))}getNamedSvgIcon(t,r=""){const s=WD(r,t);let i=this._svgIconConfigs.get(s);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(r,t),i)return this._svgIconConfigs.set(s,i),this._getSvgFromConfig(i);const o=this._iconSetConfigs.get(r);return o?this._getSvgFromIconSetConfigs(t,o):function(n,e){return new fe(t=>t.error(n))}(UD(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?$(mu(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(re(r=>mu(r)))}_getSvgFromIconSetConfigs(t,r){const s=this._extractIconWithNameFromAnySet(t,r);return s?$(s):function(...n){if(1===n.length){const e=n[0];if(Sn(e))return fu(e,null);if(Xe(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return fu(t.map(r=>e[r]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return fu(n=1===n.length&&Sn(n[0])?n[0]:n,null).pipe(re(t=>e(...t)))}return fu(n,null)}(r.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(is(a=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(me.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),$(null)})))).pipe(re(()=>{const o=this._extractIconWithNameFromAnySet(t,r);if(!o)throw UD(t);return o}))}_extractIconWithNameFromAnySet(t,r){for(let s=r.length-1;s>=0;s--){const i=r[s];if(i.svgText&&i.svgText.indexOf(t)>-1){const o=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(o,t,i.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(vt(r=>t.svgText=r),re(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?$(null):this._fetchIcon(t).pipe(vt(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,s){const i=t.querySelector(`[id="${r}"]`);if(!i)return null;const o=i.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,s);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),s);const a=this._svgElementFromString("");return a.appendChild(o),this._setSvgAttributes(a,s)}_svgElementFromString(t){const r=this._document.createElement("DIV");r.innerHTML=t;const s=r.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(t){const r=this._svgElementFromString(""),s=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(a)),Og());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(t,r,s){return this._svgIconConfigs.set(WD(t,r),s),this}_addSvgIconSetConfig(t,r){const s=this._iconSetConfigs.get(t);return s?s.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){const r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let s=0;se?e.pathname+e.search:""}}}),zD=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T8=n=>`[${n}]`,I8=zD.map(T8).join(", "),M8=/^url\(['"]?#(.*?)['"]?\)$/;let A8=(()=>{class n extends C8{constructor(t,r,s,i,o){super(t),this._iconRegistry=r,this._location=i,this._errorHandler=o,this._inline=!1,this._currentIconFetch=de.EMPTY,s||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ks(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const r=t.querySelectorAll("style");for(let i=0;i{s.forEach(o=>{i.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const r=t.querySelectorAll(I8),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const a=r[i],c=a.getAttribute(o),l=c?c.match(M8):null;if(l){let u=s.get(a);u||(u=[],s.set(a,u)),u.push({name:o,value:l[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[r,s]=this._splitIconName(t);r&&(this._svgNamespace=r),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,r).pipe(Na(1)).subscribe(i=>this._setSvgElement(i),i=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${s}! ${i.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(gu),ci("aria-hidden"),M(D8),M(Rn))},n.\u0275cmp=cn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,r){2&t&&(bt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet),Zt("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[tr],ngContentSelectors:b8,decls:1,vars:0,template:function(t,r){1&t&&(ki(),Ds(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),R8=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Cn],Cn]}),n})();class x8 extends _e{notifyNext(e,t,r,s,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class N8 extends _e{constructor(e,t,r){super(),this.parent=e,this.outerValue=t,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function F8(n,e,t,r,s=new N8(n,t,r)){if(!s.closed)return e instanceof fe?e.subscribe(s):Co(e)(s)}const qD={};class P8{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new k8(e,this.resultSelector))}}class k8 extends x8{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(qD),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let r=0;r{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function og(...n){return Do(1)($(...n))}function GD(n){return new fe(e=>{let t;try{t=n()}catch(s){return void e.error(s)}return(t?ee(t):hp()).subscribe(e)})}function as(n,e){return"function"==typeof e?t=>t.pipe(as((r,s)=>ee(n(r,s)).pipe(re((i,o)=>e(r,i,s,o))))):t=>t.lift(new V8(n))}class V8{constructor(e){this.project=e}call(e,t){return t.subscribe(new B8(e,this.project))}}class B8 extends tc{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const r=new on(this),s=this.destination;s.add(r),this.innerSubscription=nc(e,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}function KD(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(s){return s.lift(new U8(n,e,t))}}class U8{constructor(e,t,r=!1){this.accumulator=e,this.seed=t,this.hasSeed=r}call(e,t){return t.subscribe(new H8(e,this.accumulator,this.seed,this.hasSeed))}}class H8 extends _e{constructor(e,t,r,s){super(e),this.accumulator=t,this._seed=r,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let r;try{r=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=r,this.destination.next(r)}}function ag(n){return function(t){return 0===n?hp():t.lift(new $8(n))}}class $8{constructor(e){if(this.total=e,this.total<0)throw new Gv}call(e,t){return t.subscribe(new W8(e,this.total))}}class W8 extends _e{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,r=this.total,s=this.count++;t.length0){const r=this.count>=this.total?this.total:this.count,s=this.ring;for(let i=0;ie.lift(new z8(n))}class z8{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new q8(e,this.errorFactory))}}class q8 extends _e{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function G8(){return new _u}function YD(n=null){return e=>e.lift(new K8(n))}class K8{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Q8(e,this.defaultValue))}}class Q8 extends _e{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function fo(n,e){const t=arguments.length>=2;return r=>r.pipe(n?$s((s,i)=>n(s,i,r)):Fe,Na(1),t?YD(e):QD(()=>new _u))}class xr{constructor(e,t){this.id=e,this.url=t}}class cg extends xr{constructor(e,t,r="imperative",s=null){super(e,t),this.navigationTrigger=r,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ba extends xr{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class JD extends xr{constructor(e,t,r){super(e,t),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J8 extends xr{constructor(e,t,r){super(e,t),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z8 extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X8 extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ej extends xr{constructor(e,t,r,s,i){super(e,t),this.urlAfterRedirects=r,this.state=s,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tj extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nj extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZD{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class XD{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rj{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sj{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ij{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oj{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class e0{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class aj{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ho(n){return new aj(n)}const t0="ngNavigationCancelingError";function lg(n){const e=Error("NavigationCancelingError: "+n);return e[t0]=!0,e}function lj(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.lengthr[i]===s)}return n===e}function r0(n){return Array.prototype.concat.apply([],n)}function s0(n){return n.length>0?n[n.length-1]:null}function dt(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function lr(n){return xf(n)?n:Kc(n)?ee(Promise.resolve(n)):$(n)}const fj={exact:function c0(n,e,t){if(!qs(n.segments,e.segments)||!yu(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!c0(n.children[r],e.children[r],t))return!1;return!0},subset:l0},o0={exact:function(n,e){return cr(n,e)},subset:function(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>n0(n[t],e[t]))},ignored:()=>!0};function a0(n,e,t){return fj[t.paths](n.root,e.root,t.matrixParams)&&o0[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function l0(n,e,t){return u0(n,e,e.segments,t)}function u0(n,e,t,r){if(n.segments.length>t.length){const s=n.segments.slice(0,t.length);return!(!qs(s,t)||e.hasChildren()||!yu(s,t,r))}if(n.segments.length===t.length){if(!qs(n.segments,t)||!yu(n.segments,t,r))return!1;for(const s in e.children)if(!n.children[s]||!l0(n.children[s],e.children[s],r))return!1;return!0}{const s=t.slice(0,n.segments.length),i=t.slice(n.segments.length);return!!(qs(n.segments,s)&&yu(n.segments,s,r)&&n.children[ce])&&u0(n.children[ce],e,i,r)}}function yu(n,e,t){return e.every((r,s)=>o0[t](n[s].parameters,r.parameters))}class zs{constructor(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ho(this.queryParams)),this._queryParamMap}toString(){return _j.serialize(this)}}class ue{constructor(e,t){this.segments=e,this.children=t,this.parent=null,dt(t,(r,s)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bu(this)}}class ja{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ho(this.parameters)),this._parameterMap}toString(){return p0(this)}}function qs(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}class ug{}class d0{parse(e){const t=new Tj(e);return new zs(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ua(e.root,!0)}`,r=function(n){const e=Object.keys(n).map(t=>{const r=n[t];return Array.isArray(r)?r.map(s=>`${wu(t)}=${wu(s)}`).join("&"):`${wu(t)}=${wu(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams),s="string"==typeof e.fragment?`#${function(n){return encodeURI(n)}(e.fragment)}`:"";return`${t}${r}${s}`}}const _j=new d0;function bu(n){return n.segments.map(e=>p0(e)).join("/")}function Ua(n,e){if(!n.hasChildren())return bu(n);if(e){const t=n.children[ce]?Ua(n.children[ce],!1):"",r=[];return dt(n.children,(s,i)=>{i!==ce&&r.push(`${i}:${Ua(s,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function(n,e){let t=[];return dt(n.children,(r,s)=>{s===ce&&(t=t.concat(e(r,s)))}),dt(n.children,(r,s)=>{s!==ce&&(t=t.concat(e(r,s)))}),t}(n,(r,s)=>s===ce?[Ua(n.children[ce],!1)]:[`${s}:${Ua(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ce]?`${bu(n)}/${t[0]}`:`${bu(n)}/(${t.join("//")})`}}function f0(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wu(n){return f0(n).replace(/%3B/gi,";")}function dg(n){return f0(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Eu(n){return decodeURIComponent(n)}function h0(n){return Eu(n.replace(/\+/g,"%20"))}function p0(n){return`${dg(n.path)}${function(n){return Object.keys(n).map(e=>`;${dg(e)}=${dg(n[e])}`).join("")}(n.parameters)}`}const Ej=/^[^\/()?;=#]+/;function vu(n){const e=n.match(Ej);return e?e[0]:""}const vj=/^[^=?&#]+/,Dj=/^[^?&#]+/;class Tj{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const 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("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[ce]=new ue(e,t)),r}parseSegment(){const e=vu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new ja(Eu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=vu(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=vu(this.remaining);s&&(r=s,this.capture(r))}e[Eu(t)]=Eu(r)}parseQueryParam(e){const t=function(n){const e=n.match(vj);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=function(n){const e=n.match(Dj);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const s=h0(t),i=h0(r);if(e.hasOwnProperty(s)){let o=e[s];Array.isArray(o)||(o=[o],e[s]=o),o.push(i)}else e[s]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=vu(this.remaining),s=this.remaining[r.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=ce);const o=this.parseChildren();t[i]=1===Object.keys(o).length?o[ce]:new ue([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class g0{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=fg(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=fg(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=hg(e,this._root);return t.length<2?[]:t[t.length-2].children.map(s=>s.value).filter(s=>s!==e)}pathFromRoot(e){return hg(e,this._root).map(t=>t.value)}}function fg(n,e){if(n===e.value)return e;for(const t of e.children){const r=fg(n,t);if(r)return r}return null}function hg(n,e){if(n===e.value)return[e];for(const t of e.children){const r=hg(n,t);if(r.length)return r.unshift(e),r}return[]}class Nr{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ha(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class m0 extends g0{constructor(e,t){super(e),this.snapshot=t,pg(this,e)}toString(){return this.snapshot.toString()}}function _0(n,e){const t=function(n,e){const o=new Cu([],{},{},"",{},ce,e,null,n.root,-1,{});return new b0("",new Nr(o,[]))}(n,e),r=new bn([new ja("",{})]),s=new bn({}),i=new bn({}),o=new bn({}),a=new bn(""),c=new po(r,s,o,a,i,ce,e,t.root);return c.snapshot=t.root,new m0(new Nr(c,[]),t)}class po{constructor(e,t,r,s,i,o,a,c){this.url=e,this.params=t,this.queryParams=r,this.fragment=s,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=c}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(re(e=>ho(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(re(e=>ho(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function y0(n,e="emptyOnly"){const t=n.pathFromRoot;let r=0;if("always"!==e)for(r=t.length-1;r>=1;){const s=t[r],i=t[r-1];if(s.routeConfig&&""===s.routeConfig.path)r--;else{if(i.component)break;r--}}return function(n){return n.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Cu{constructor(e,t,r,s,i,o,a,c,l,u,h){this.url=e,this.params=t,this.queryParams=r,this.fragment=s,this.data=i,this.outlet=o,this.component=a,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=h}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=ho(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ho(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class b0 extends g0{constructor(e,t){super(t),this.url=e,pg(this,t)}toString(){return w0(this._root)}}function pg(n,e){e.value._routerState=n,e.children.forEach(t=>pg(n,t))}function w0(n){const e=n.children.length>0?` { ${n.children.map(w0).join(", ")} } `:"";return`${n.value}${e}`}function gg(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,cr(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),cr(e.params,t.params)||n.params.next(t.params),function(n,e){if(n.length!==e.length)return!1;for(let t=0;tcr(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||mg(n.parent,e.parent))}function Du(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const s=function(n,e,t){return e.children.map(r=>{for(const s of t.children)if(n.shouldReuseRoute(r.value,s.value.snapshot))return Du(n,r,s);return Du(n,r)})}(n,e,t);return new Nr(r,s)}{if(n.shouldAttach(e.value)){const i=n.retrieve(e.value);if(null!==i){const o=i.route;return E0(e,o),o}}const r=function(n){return new po(new bn(n.url),new bn(n.params),new bn(n.queryParams),new bn(n.fragment),new bn(n.data),n.outlet,n.component,n)}(e.value),s=e.children.map(i=>Du(n,i));return new Nr(r,s)}}function E0(n,e){if(n.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=n.value;for(let t=0;t{i[a]=Array.isArray(o)?o.map(c=>`${c}`):`${o}`}),new zs(t.root===n?e:v0(t.root,n,e),i,s)}function v0(n,e,t){const r={};return dt(n.children,(s,i)=>{r[i]=s===e?t:v0(s,e,t)}),new ue(n.segments,r)}class C0{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&Su(r[0]))throw new Error("Root segment cannot have matrix parameters");const s=r.find($a);if(s&&s!==s0(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yg{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function D0(n,e,t){if(n||(n=new ue([],{})),0===n.segments.length&&n.hasChildren())return Tu(n,e,t);const r=function(n,e,t){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=t.length)return i;const o=n.segments[s],a=t[r];if($a(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!T0(c,l,o))return i;r+=2}else{if(!T0(c,{},o))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(n,e,t),s=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[o]=D0(n.children[o],e,i))}),dt(n.children,(i,o)=>{void 0===r[o]&&(s[o]=i)}),new ue(n.segments,s)}}function bg(n,e,t){const r=n.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=bg(new ue([],{}),0,t))}),e}function S0(n){const e={};return dt(n,(t,r)=>e[r]=`${t}`),e}function T0(n,e,t){return n==t.path&&cr(e,t.parameters)}class jj{constructor(e,t,r,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=s}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),gg(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const s=Ha(t);e.children.forEach(i=>{const o=i.value.outlet;this.deactivateRoutes(i,s[o],r),delete s[o]}),dt(s,(i,o)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,t,r){const s=e.value,i=t?t.value:null;if(s===i)if(s.component){const o=r.getContext(s.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet);if(r&&r.outlet){const s=r.outlet.detach(),i=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),s=r&&e.value.component?r.children:t,i=Ha(e);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],s);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,t,r){const s=Ha(t);e.children.forEach(i=>{this.activateRoutes(i,s[i.value.outlet],r),this.forwardEvent(new oj(i.value.snapshot))}),e.children.length&&this.forwardEvent(new sj(e.value.snapshot))}activateRoutes(e,t,r){const s=e.value,i=t?t.value:null;if(gg(s),s===i)if(s.component){const o=r.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,r);else if(s.component){const o=r.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const a=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),I0(a.route)}else{const a=function(n){for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),c=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=c,o.outlet&&o.outlet.activateWith(s,c),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}function I0(n){gg(n.value),n.children.forEach(I0)}class wg{constructor(e,t){this.routes=e,this.module=t}}function cs(n){return"function"==typeof n}function Gs(n){return n instanceof zs}const Wa=Symbol("INITIAL_VALUE");function za(){return as(n=>function(...n){let e,t;return oe(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Sn(n[0])&&(n=n[0]),ju(n,t).lift(new P8(e))}(n.map(e=>e.pipe(Na(1),function(...n){const e=n[n.length-1];return oe(e)?(n.pop(),t=>og(n,t,e)):t=>og(n,t)}(Wa)))).pipe(KD((e,t)=>{let r=!1;return t.reduce((s,i,o)=>s!==Wa?s:(i===Wa&&(r=!0),r||!1!==i&&o!==t.length-1&&!Gs(i)?s:i),e)},Wa),$s(e=>e!==Wa),re(e=>Gs(e)?e:!0===e),Na(1)))}let M0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=cn({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,r){1&t&&xt(0,"router-outlet")},directives:function(){return[z0]},encapsulation:2}),n})();function A0(n,e=""){for(let t=0;tDn(r)===e);return t.push(...n.filter(r=>Dn(r)!==e)),t}const x0={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Iu(n,e,t){var r;if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},x0):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||lj)(t,n,e);if(!i)return Object.assign({},x0);const o={};dt(i.posParams,(c,l)=>{o[l]=c.path});const a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Mu(n,e,t,r,s="corrected"){if(t.length>0&&function(n,e,t){return t.some(r=>Au(n,e,r)&&Dn(r)!==ce)}(n,t,r)){const o=new ue(e,function(n,e,t,r){const s={};s[ce]=r,r._sourceSegment=n,r._segmentIndexShift=e.length;for(const i of t)if(""===i.path&&Dn(i)!==ce){const o=new ue([],{});o._sourceSegment=n,o._segmentIndexShift=e.length,s[Dn(i)]=o}return s}(n,e,r,new ue(t,n.children)));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function(n,e,t){return t.some(r=>Au(n,e,r))}(n,t,r)){const o=new ue(n.segments,function(n,e,t,r,s,i){const o={};for(const a of r)if(Au(n,t,a)&&!s[Dn(a)]){const c=new ue([],{});c._sourceSegment=n,c._segmentIndexShift="legacy"===i?n.segments.length:e.length,o[Dn(a)]=c}return Object.assign(Object.assign({},s),o)}(n,e,t,r,n.children,s));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}const i=new ue(n.segments,n.children);return i._sourceSegment=n,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:t}}function Au(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function N0(n,e,t,r){return!!(Dn(n)===r||r!==ce&&Au(e,t,n))&&("**"===n.path||Iu(e,n,t).matched)}function F0(n,e,t){return 0===e.length&&!n.children[t]}class qa{constructor(e){this.segmentGroup=e||null}}class O0{constructor(e){this.urlTree=e}}function Ru(n){return new fe(e=>e.error(new qa(n)))}function P0(n){return new fe(e=>e.error(new O0(n)))}function Xj(n){return new fe(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class n3{constructor(e,t,r,s,i){this.configLoader=t,this.urlSerializer=r,this.urlTree=s,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(or)}apply(){const e=Mu(this.urlTree.root,[],[],this.config).segmentGroup,t=new ue(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,ce).pipe(re(i=>this.createUrlTree(vg(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(is(i=>{if(i instanceof O0)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof qa?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ce).pipe(re(s=>this.createUrlTree(vg(s),e.queryParams,e.fragment))).pipe(is(s=>{throw s instanceof qa?this.noMatchError(s):s}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,r){const s=e.segments.length>0?new ue([],{[ce]:e}):e;return new zs(s,t,r)}expandSegmentGroup(e,t,r,s){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(re(i=>new ue([],i))):this.expandSegment(e,r,t,r.segments,s,!0)}expandChildren(e,t,r){const s=[];for(const i of Object.keys(r.children))"primary"===i?s.unshift(i):s.push(i);return ee(s).pipe(uo(i=>{const o=r.children[i],a=R0(t,i);return this.expandSegmentGroup(e,a,o,i).pipe(re(c=>({segment:c,outlet:i})))}),KD((i,o)=>(i[o.outlet]=o.segment,i),{}),function(n,e){const t=arguments.length>=2;return r=>r.pipe(n?$s((s,i)=>n(s,i,r)):Fe,ag(1),t?YD(e):QD(()=>new _u))}())}expandSegment(e,t,r,s,i,o){return ee(r).pipe(uo(a=>this.expandSegmentAgainstRoute(e,t,r,a,s,i,o).pipe(is(l=>{if(l instanceof qa)return $(null);throw l}))),fo(a=>!!a),is((a,c)=>{if(a instanceof _u||"EmptyError"===a.name){if(F0(t,s,i))return $(new ue([],{}));throw new qa(t)}throw a}))}expandSegmentAgainstRoute(e,t,r,s,i,o,a){return N0(s,t,i,o)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o):Ru(t):Ru(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,s){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?P0(i):this.lineralizeSegments(r,i).pipe(at(o=>{const a=new ue(o,{});return this.expandSegment(e,a,t,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o){const{matched:a,consumedSegments:c,lastChild:l,positionalParamSegments:u}=Iu(t,s,i);if(!a)return Ru(t);const h=this.applyRedirectCommands(c,s.redirectTo,u);return s.redirectTo.startsWith("/")?P0(h):this.lineralizeSegments(s,h).pipe(at(p=>this.expandSegment(e,t,r,p.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,r,s,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?$(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(re(p=>(r._loadedConfig=p,new ue(s,{})))):$(new ue(s,{}));const{matched:o,consumedSegments:a,lastChild:c}=Iu(t,r,s);if(!o)return Ru(t);const l=s.slice(c);return this.getChildConfig(e,r,s).pipe(at(h=>{const p=h.module,m=h.routes,{segmentGroup:y,slicedSegments:E}=Mu(t,a,l,m),w=new ue(y.segments,y.children);if(0===E.length&&w.hasChildren())return this.expandChildren(p,m,w).pipe(re(x=>new ue(a,x)));if(0===m.length&&0===E.length)return $(new ue(a,{}));const D=Dn(r)===i;return this.expandSegment(p,w,m,E,D?ce:i,!0).pipe(re(R=>new ue(a.concat(R.segments),R.children)))}))}getChildConfig(e,t,r){return t.children?$(new wg(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?$(t._loadedConfig):this.runCanLoadGuards(e.injector,t,r).pipe(at(s=>s?this.configLoader.load(e.injector,t).pipe(re(i=>(t._loadedConfig=i,i))):function(n){return new fe(e=>e.error(lg(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(t))):$(new wg([],e))}runCanLoadGuards(e,t,r){const s=t.canLoad;if(!s||0===s.length)return $(!0);const i=s.map(o=>{const a=e.get(o);let c;if(function(n){return n&&cs(n.canLoad)}(a))c=a.canLoad(t,r);else{if(!cs(a))throw new Error("Invalid CanLoad guard");c=a(t,r)}return lr(c)});return $(i).pipe(za(),vt(o=>{if(!Gs(o))return;const a=lg(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),re(o=>!0===o))}lineralizeSegments(e,t){let r=[],s=t.root;for(;;){if(r=r.concat(s.segments),0===s.numberOfChildren)return $(r);if(s.numberOfChildren>1||!s.children[ce])return Xj(e.redirectTo);s=s.children[ce]}}applyRedirectCommands(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreatreUrlTree(e,t,r,s){const i=this.createSegmentGroup(e,t.root,r,s);return new zs(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return dt(e,(s,i)=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);r[i]=t[a]}else r[i]=s}),r}createSegmentGroup(e,t,r,s){const i=this.createSegments(e,t.segments,r,s);let o={};return dt(t.children,(a,c)=>{o[c]=this.createSegmentGroup(e,a,r,s)}),new ue(i,o)}createSegments(e,t,r,s){return t.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,s):this.findOrReturn(i,r))}findPosParam(e,t,r){const s=r[t.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return s}findOrReturn(e,t){let r=0;for(const s of t){if(s.path===e.path)return t.splice(r),s;r++}return e}}function vg(n){const e={};for(const r of Object.keys(n.children)){const i=vg(n.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(n){if(1===n.numberOfChildren&&n.children[ce]){const e=n.children[ce];return new ue(n.segments.concat(e.segments),e.children)}return n}(new ue(n.segments,e))}class k0{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class xu{constructor(e,t){this.component=e,this.route=t}}function i3(n,e,t){const r=n._root;return Ga(r,e?e._root:null,t,[r.value])}function Nu(n,e,t){const r=function(n){if(!n)return null;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:t).get(n)}function Ga(n,e,t,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ha(e);return n.children.forEach(o=>{(function(n,e,t,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=n.value,o=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const c=function(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!qs(n.url,e.url);case"pathParamsOrQueryParamsChange":return!qs(n.url,e.url)||!cr(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mg(n,e)||!cr(n.queryParams,e.queryParams);default:return!mg(n,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new k0(r)):(i.data=o.data,i._resolvedData=o._resolvedData),Ga(n,e,i.component?a?a.children:null:t,r,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new xu(a.outlet.component,o))}else o&&Ka(e,a,s),s.canActivateChecks.push(new k0(r)),Ga(n,null,i.component?a?a.children:null:t,r,s)})(o,i[o.value.outlet],t,r.concat([o.value]),s),delete i[o.value.outlet]}),dt(i,(o,a)=>Ka(o,t.getContext(a),s)),s}function Ka(n,e,t){const r=Ha(n),s=n.value;dt(r,(i,o)=>{Ka(i,s.component?e?e.children.getContext(o):null:e,t)}),t.canDeactivateChecks.push(new xu(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class y3{}function L0(n){return new fe(e=>e.error(n))}class w3{constructor(e,t,r,s,i,o){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=s,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const e=Mu(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ce);if(null===t)return null;const r=new Cu([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Nr(r,t),i=new b0(this.url,s);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const t=e.value,r=y0(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)}processChildren(e,t){const r=[];for(const i of Object.keys(t.children)){const o=t.children[i],a=R0(e,i),c=this.processSegmentGroup(a,o,i);if(null===c)return null;r.push(...c)}const s=V0(r);return function(n){n.sort((e,t)=>e.value.outlet===ce?-1:t.value.outlet===ce?1:e.value.outlet.localeCompare(t.value.outlet))}(s),s}processSegment(e,t,r,s){for(const i of e){const o=this.processSegmentAgainstRoute(i,t,r,s);if(null!==o)return o}return F0(t,r,s)?[]:null}processSegmentAgainstRoute(e,t,r,s){if(e.redirectTo||!N0(e,t,r,s))return null;let i,o=[],a=[];if("**"===e.path){const m=r.length>0?s0(r).parameters:{};i=new Cu(r,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,U0(e),Dn(e),e.component,e,B0(t),j0(t)+r.length,H0(e))}else{const m=Iu(t,e,r);if(!m.matched)return null;o=m.consumedSegments,a=r.slice(m.lastChild),i=new Cu(o,m.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,U0(e),Dn(e),e.component,e,B0(t),j0(t)+o.length,H0(e))}const c=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=Mu(t,o,a,c.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const m=this.processChildren(c,l);return null===m?null:[new Nr(i,m)]}if(0===c.length&&0===u.length)return[new Nr(i,[])];const h=Dn(e)===s,p=this.processSegment(c,l,u,h?ce:s);return null===p?null:[new Nr(i,p)]}}function C3(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function V0(n){const e=[],t=new Set;for(const r of n){if(!C3(r)){e.push(r);continue}const s=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==s?(s.children.push(...r.children),t.add(s)):e.push(r)}for(const r of t){const s=V0(r.children);e.push(new Nr(r.value,s))}return e.filter(r=>!t.has(r))}function B0(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function j0(n){let e=n,t=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift?e._segmentIndexShift:0;return t-1}function U0(n){return n.data||{}}function H0(n){return n.resolve||{}}function Cg(n){return as(e=>{const t=n(e);return t?ee(t).pipe(re(()=>e)):$(e)})}class x3 extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Dg=new U("ROUTES");class $0{constructor(e,t,r,s){this.loader=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=s}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const s=this.loadModuleFactory(t.loadChildren).pipe(re(i=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=i.create(e);return new wg(r0(o.injector.get(Dg,void 0,B.Self|B.Optional)).map(Eg),o)}),is(i=>{throw t._loader$=void 0,i}));return t._loader$=new Fg(s,()=>new pt).pipe(Uu()),t._loader$}loadModuleFactory(e){return"string"==typeof e?ee(this.loader.load(e)):lr(e()).pipe(at(t=>t instanceof Sw?$(t):ee(this.compiler.compileModuleAsync(t))))}}class N3{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new go,this.attachRef=null}}class go{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new N3,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class O3{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function P3(n){throw n}function k3(n,e,t){return e.parse("/")}function W0(n,e){return $(null)}const L3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},V3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Bt=(()=>{class n{constructor(t,r,s,i,o,a,c,l){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=s,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new pt,this.errorHandler=P3,this.malformedUriErrorHandler=k3,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:W0,afterPreactivation:W0},this.urlHandlingStrategy=new O3,this.routeReuseStrategy=new x3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(or),this.console=o.get(pl);const p=o.get(pe);this.isNgZoneEnabled=p instanceof pe&&pe.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new zs(new ue([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new $0(a,c,m=>this.triggerEvent(new ZD(m)),m=>this.triggerEvent(new XD(m))),this.routerState=_0(this.currentUrlTree,this.rootComponentType),this.transitions=new bn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe($s(s=>0!==s.id),re(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),as(s=>{let i=!1,o=!1;return $(s).pipe(vt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),as(a=>{const c=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Fu(a.source)&&(this.browserUrlTree=a.extractedUrl),$(a).pipe(as(h=>{const p=this.transitions.getValue();return r.next(new cg(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions.getValue()?ro:Promise.resolve(h)}),function(n,e,t,r){return as(s=>function(n,e,t,r,s){return new n3(n,e,t,r,s).apply()}(n,e,t,s.extractedUrl,r).pipe(re(i=>Object.assign(Object.assign({},s),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),vt(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function(n,e,t,r,s){return at(i=>function(n,e,t,r,s="emptyOnly",i="legacy"){try{const o=new w3(n,e,t,r,s,i).recognize();return null===o?L0(new y3):$(o)}catch(o){return L0(o)}}(n,e,i.urlAfterRedirects,t(i.urlAfterRedirects),r,s).pipe(re(o=>Object.assign(Object.assign({},i),{targetSnapshot:o}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),vt(h=>{"eager"===this.urlUpdateStrategy&&(h.extras.skipLocationChange||this.setBrowserUrl(h.urlAfterRedirects,h),this.browserUrlTree=h.urlAfterRedirects);const p=new Z8(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);r.next(p)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:y,restoredState:E,extras:w}=a,D=new cg(p,this.serializeUrl(m),y,E);r.next(D);const C=_0(m,this.rootComponentType).snapshot;return $(Object.assign(Object.assign({},a),{targetSnapshot:C,urlAfterRedirects:m,extras:Object.assign(Object.assign({},w),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),ro}),Cg(a=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:p,replaceUrl:m}}=a;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!p,replaceUrl:!!m})}),vt(a=>{const c=new X8(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),re(a=>Object.assign(Object.assign({},a),{guards:i3(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,e){return at(t=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=t;return 0===o.length&&0===i.length?$(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,e,t,r){return ee(n).pipe(at(s=>function(n,e,t,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?$(i.map(a=>{const c=Nu(a,e,s);let l;if(function(n){return n&&cs(n.canDeactivate)}(c))l=lr(c.canDeactivate(n,e,t,r));else{if(!cs(c))throw new Error("Invalid CanDeactivate guard");l=lr(c(n,e,t,r))}return l.pipe(fo())})).pipe(za()):$(!0)}(s.component,s.route,t,e,r)),fo(s=>!0!==s,!0))}(o,r,s,n).pipe(at(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,e,t,r){return ee(e).pipe(uo(s=>og(function(n,e){return null!==n&&e&&e(new rj(n)),$(!0)}(s.route.parent,r),function(n,e){return null!==n&&e&&e(new ij(n)),$(!0)}(s.route,r),function(n,e,t){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(o=>function(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(o)).filter(o=>null!==o).map(o=>GD(()=>$(o.guards.map(c=>{const l=Nu(c,o.node,t);let u;if(function(n){return n&&cs(n.canActivateChild)}(l))u=lr(l.canActivateChild(r,n));else{if(!cs(l))throw new Error("Invalid CanActivateChild guard");u=lr(l(r,n))}return u.pipe(fo())})).pipe(za())));return $(i).pipe(za())}(n,s.path,t),function(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return $(!0);const s=r.map(i=>GD(()=>{const o=Nu(i,e,t);let a;if(function(n){return n&&cs(n.canActivate)}(o))a=lr(o.canActivate(e,n));else{if(!cs(o))throw new Error("Invalid CanActivate guard");a=lr(o(e,n))}return a.pipe(fo())}));return $(s).pipe(za())}(n,s.route,t))),fo(s=>!0!==s,!0))}(r,i,n,e):$(a)),re(a=>Object.assign(Object.assign({},t),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),vt(a=>{if(Gs(a.guardsResult)){const l=lg(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const c=new ej(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(c)}),$s(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Cg(a=>{if(a.guards.canActivateChecks.length)return $(a).pipe(vt(c=>{const l=new tj(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),as(c=>{let l=!1;return $(c).pipe(function(n,e){return at(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;if(!s.length)return $(t);let i=0;return ee(s).pipe(uo(o=>function(n,e,t,r){return function(n,e,t,r){const s=Object.keys(n);if(0===s.length)return $({});const i={};return ee(s).pipe(at(o=>function(n,e,t,r){const s=Nu(n,e,r);return lr(s.resolve?s.resolve(e,t):s(e,t))}(n[o],e,t,r).pipe(vt(a=>{i[o]=a}))),ag(1),at(()=>Object.keys(i).length===s.length?$(i):ro))}(n._resolve,n,e,r).pipe(re(i=>(n._resolvedData=i,n.data=Object.assign(Object.assign({},n.data),y0(n,t).resolve),null)))}(o.route,r,n,e)),vt(()=>i++),ag(1),at(o=>i===s.length?$(t):ro))})}(this.paramsInheritanceStrategy,this.ngModule.injector),vt({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),vt(c=>{const l=new nj(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),Cg(a=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:p,replaceUrl:m}}=a;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!p,replaceUrl:!!m})}),re(a=>{const c=function(n,e,t){const r=Du(n,e._root,t?t._root:void 0);return new m0(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:c})}),vt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>re(r=>(new jj(e,r.targetRouterState,r.currentRouterState,t).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),vt({next(){i=!0},complete(){i=!0}}),MD(()=>{var a;if(!i&&!o){const c=`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(s),this.cancelNavigationTransition(s,c)):this.cancelNavigationTransition(s,c)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===s.id&&(this.currentNavigation=null)}),is(a=>{if(o=!0,function(n){return n&&n[t0]}(a)){const c=Gs(a.url);c||(this.navigated=!0,this.restoreHistory(s,!0));const l=new JD(s.id,this.serializeUrl(s.extractedUrl),a.message);r.next(l),c?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),h={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fu(s.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const c=new J8(s.id,this.serializeUrl(s.extractedUrl),a);r.next(c);try{s.resolve(this.errorHandler(a))}catch(l){s.reject(l)}}return ro}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:s,state:i,urlTree:o}=r,a={replaceUrl:!0};if(i){const c=Object.assign({},i);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(a.state=c)}this.scheduleNavigation(o,s,i,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(t){var r;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(r=t.state)||void 0===r?void 0:r.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,r){if(!t)return!0;const s=r.urlTree.toString()===t.urlTree.toString();return r.transitionId!==t.transitionId||!s||!("hashchange"===r.source&&"popstate"===t.source||"popstate"===r.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){A0(t),this.config=t.map(Eg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:s,queryParams:i,fragment:o,queryParamsHandling:a,preserveFragment:c}=r,l=s||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let h=null;switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}return null!==h&&(h=this.removeEmptyProps(h)),function(n,e,t,r,s){if(0===t.length)return _g(e.root,e.root,e,r,s);const i=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new C0(!0,0,n);let e=0,t=!1;const r=n.reduce((s,i,o)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return dt(i.outlets,(c,l)=>{a[l]="string"==typeof c?c.split("/"):c}),[...s,{outlets:a}]}if(i.segmentPath)return[...s,i.segmentPath]}return"string"!=typeof i?[...s,i]:0===o?(i.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?e++:""!=a&&s.push(a))}),s):[...s,i]},[]);return new C0(t,e,r)}(t);if(i.toRoot())return _g(e.root,new ue([],{}),e,r,s);const o=function(n,e,t){if(n.isAbsolute)return new yg(e.root,!0,0);if(-1===t.snapshot._lastPathIndex){const i=t.snapshot._urlSegment;return new yg(i,i===e.root,0)}const r=Su(n.commands[0])?0:1;return function(n,e,t){let r=n,s=e,i=t;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new yg(r,!1,s-i)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+r,n.numberOfDoubleDots)}(i,e,n),a=o.processChildren?Tu(o.segmentGroup,o.index,i.commands):D0(o.segmentGroup,o.index,i.commands);return _g(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,h,null!=u?u:null)}navigateByUrl(t,r={skipLocationChange:!1}){const s=Gs(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function(n){for(let e=0;e{const i=t[s];return null!=i&&(r[s]=i),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ba(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,s,i,o){var a,c;if(this.disposed)return Promise.resolve(!1);const l=this.getTransition(),u=Fu(r)&&l&&!Fu(l.source),m=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&m)return Promise.resolve(!0);let y,E,w;o?(y=o.resolve,E=o.reject,w=o.promise):w=new Promise((R,x)=>{y=R,E=x});const D=++this.navigationId;let C;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),C=s&&s.\u0275routerPageId?s.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):C=0,this.setTransition({id:D,targetPageId:C,source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:y,reject:E,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(R=>Promise.reject(R))}setBrowserUrl(t,r){const s=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl?this.location.replaceState(s,"",i):this.location.go(s,"",i)}restoreHistory(t,r=!1){var s,i;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===o?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}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))}cancelNavigationTransition(t,r){const s=new JD(t.id,this.serializeUrl(t.extractedUrl),r);this.triggerEvent(s),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)(S(Sc),S(ug),S(go),S(Il),S(Ce),S(ml),S(Ns),S(void 0))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Fu(n){return"imperative"!==n}let z0=(()=>{class n{constructor(t,r,s,i,o){this.parentContexts=t,this.location=r,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ut,this.deactivateEvents=new ut,this.name=i||ce,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView)}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 Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(r=r||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,c=new H3(t,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(M(go),M(Ln),M(Is),ci("name"),M(ca))},n.\u0275dir=Ae({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class H3{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===po?this.route:e===go?this.childContexts:this.parent.get(e,t)}}class q0{}class G0{preload(e,t){return $(null)}}let K0=(()=>{class n{constructor(t,r,s,i,o){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new $0(r,s,l=>t.triggerEvent(new ZD(l)),l=>t.triggerEvent(new XD(l)))}setUpPreloading(){this.subscription=this.router.events.pipe($s(t=>t instanceof Ba),uo(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(or);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const s=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const o=i._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else i.loadChildren&&!i.canLoad?s.push(this.preloadConfig(t,i)):i.children&&s.push(this.processRoutes(t,i.children));return ee(s).pipe(Do(),re(i=>{}))}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?$(r._loadedConfig):this.loader.load(t.injector,r)).pipe(at(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return n.\u0275fac=function(t){return new(t||n)(S(Bt),S(ml),S(Ns),S(Ce),S(q0))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Ig=(()=>{class n{constructor(t,r,s={}){this.router=t,this.viewportScroller=r,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.router.events.subscribe(t=>{t instanceof cg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ba&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof e0&&(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.router.triggerEvent(new e0(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(S(Bt),S(Nv),S(void 0))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ks=new U("ROUTER_CONFIGURATION"),Q0=new U("ROUTER_FORROOT_GUARD"),W3=[Il,{provide:ug,useClass:d0},{provide:Bt,useFactory:function(n,e,t,r,s,i,o,a={},c,l){const u=new Bt(null,n,e,t,r,s,i,r0(o));return c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),function(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(h=>{var p,m;null===(p=console.group)||void 0===p||p.call(console,`Router Event: ${h.constructor.name}`),console.log(h.toString()),console.log(h),null===(m=console.groupEnd)||void 0===m||m.call(console)}),u},deps:[ug,go,Il,Ce,ml,Ns,Dg,Ks,[class{},new ct],[class{},new ct]]},go,{provide:po,useFactory:function(n){return n.routerState.root},deps:[Bt]},{provide:ml,useClass:cO},K0,G0,class{preload(e,t){return t().pipe(is(()=>$(null)))}},{provide:Ks,useValue:{enableTracing:!1}}];function z3(){return new Sh("Router",Bt)}let Y0=(()=>{class n{constructor(t,r){}static forRoot(t,r){return{ngModule:n,providers:[W3,J0(t),{provide:Q0,useFactory:K3,deps:[[Bt,new ct,new mr]]},{provide:Ks,useValue:r||{}},{provide:to,useFactory:G3,deps:[Ps,[new gi(Hh),new ct],Ks]},{provide:Ig,useFactory:q3,deps:[Bt,Nv,Ks]},{provide:q0,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:G0},{provide:Sh,multi:!0,useFactory:z3},[Mg,{provide:wa,multi:!0,useFactory:Z3,deps:[Mg]},{provide:Z0,useFactory:X3,deps:[Mg]},{provide:IE,multi:!0,useExisting:Z0}]]}}static forChild(t){return{ngModule:n,providers:[J0(t)]}}}return n.\u0275fac=function(t){return new(t||n)(S(Q0,8),S(Bt,8))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({}),n})();function q3(n,e,t){return t.scrollOffset&&e.setOffset(t.scrollOffset),new Ig(n,e,t)}function G3(n,e,t={}){return t.useHash?new MP(n,e):new mv(n,e)}function K3(n){return"guarded"}function J0(n){return[{provide:IT,multi:!0,useValue:n},{provide:Dg,multi:!0,useValue:n}]}let Mg=(()=>{class n{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new pt}appInitializer(){return this.injector.get(SP,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const s=new Promise(a=>r=a),i=this.injector.get(Bt),o=this.injector.get(Ks);return"disabled"===o.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?$(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),s})}bootstrapListener(t){const r=this.injector.get(Ks),s=this.injector.get(K0),i=this.injector.get(Ig),o=this.injector.get(Bt),a=this.injector.get(Zi);t===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(t){return new(t||n)(S(Ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Z3(n){return n.appInitializer.bind(n)}function X3(n){return n.bootstrapListener.bind(n)}const Z0=new U("Router Initializer"),tU=[];let nU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Y0.forRoot(tU)],Y0]}),n})();var rU=ot(239),sU=ot(994);const X0=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Fr=(()=>{if("undefined"==typeof document)return!1;const n=X0[0],e={};for(const t of X0)if((null==t?void 0:t[1])in document){for(const[s,i]of t.entries())e[n[s]]=i;return e}return!1})(),eS={change:Fr.fullscreenchange,error:Fr.fullscreenerror};let tn={request:(n=document.documentElement,e)=>new Promise((t,r)=>{const s=()=>{tn.off("change",s),t()};tn.on("change",s);const i=n[Fr.requestFullscreen](e);i instanceof Promise&&i.then(s).catch(r)}),exit:()=>new Promise((n,e)=>{if(!tn.isFullscreen)return void n();const t=()=>{tn.off("change",t),n()};tn.on("change",t);const r=document[Fr.exitFullscreen]();r instanceof Promise&&r.then(t).catch(e)}),toggle:(n,e)=>tn.isFullscreen?tn.exit():tn.request(n,e),onchange(n){tn.on("change",n)},onerror(n){tn.on("error",n)},on(n,e){const t=eS[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=eS[n];t&&document.removeEventListener(t,e,!1)},raw:Fr};Object.defineProperties(tn,{isFullscreen:{get:()=>Boolean(document[Fr.fullscreenElement])},element:{enumerable:!0,get:()=>{var n;return null!=(n=document[Fr.fullscreenElement])?n:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[Fr.fullscreenEnabled])}}),Fr||(tn={isEnabled:!1});const Qs=tn;let iU=(()=>{class n{constructor(){}onRightClick(t){t.preventDefault()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ae({type:n,selectors:[["","appNoRightClick",""]],hostBindings:function(t,r){1&t&&vr("contextmenu",function(i){return r.onRightClick(i)})}}),n})();const tS=["mat-button",""],nS=["*"],aU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],cU=Zp(bD(DB(class{constructor(n){this._elementRef=n}})));let sS=(()=>{class n extends cU{constructor(t,r,s){super(t),this._focusMonitor=r,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of aU)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._getHostElement(),t,r):this._getHostElement().focus(r)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(r=>this._getHostElement().hasAttribute(r))}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(bp),M(rs,8))},n.\u0275cmp=cn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,r){if(1&t&&dl(du,5),2&t){let s;Gi(s=Ki())&&(r.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,r){2&t&&(bt("disabled",r.disabled||null),Zt("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-button-disabled",r.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[tr],attrs:tS,ngContentSelectors:nS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,r){1&t&&(ki(),tt(0,"span",0),Ds(1),nt(),xt(2,"span",1),xt(3,"span",2)),2&t&&(Yt(2),Zt("mat-button-ripple-round",r.isRoundButton||r.isIconButton),lt("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",r.isIconButton)("matRippleTrigger",r._getHostElement()))},directives:[du],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),lU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[DD,Cn],Cn]}),n})();function uU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}function dU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}function fU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}function hU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}const iS=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",gU=Zp(class{constructor(n){this._elementRef=n}},"primary"),oS=new U("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class Or extends gU{constructor(e,t,r,s,i){super(e),this._document=r,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=Or._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(r.head)||o.set(r.head,new Set([100])),this._fallbackAnimation=t.EDGE||t.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!i&&!i._forceAnimations,i&&(i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}get diameter(){return this._diameter}set diameter(e){this._diameter=$l(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(e){this._strokeWidth=$l(e)}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,$l(e)))}ngOnInit(){const e=this._elementRef.nativeElement;this._styleRoot=Qv(e)||this._document.head,this._attachStyleNode(),e.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const e=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,t=this._diameter,r=Or._diameters;let s=r.get(e);if(!s||!s.has(t)){const i=this._document.createElement("style");i.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),i.textContent=this._getAnimationText(),e.appendChild(i),s||(s=new Set,r.set(e,s)),s.add(t)}}_getAnimationText(){const e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Or.\u0275fac=function(e){return new(e||Or)(M(Me),M(wn),M(ie,8),M(rs,8),M(oS))},Or.\u0275cmp=cn({type:Or,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(bt("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),rr("width",t.diameter,"px")("height",t.diameter,"px"),Zt("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[tr],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(ms(),tt(0,"svg",0),Er(1,uU,1,9,"circle",1),Er(2,dU,1,7,"circle",2),nt()),2&e&&(rr("width",t.diameter,"px")("height",t.diameter,"px"),lt("ngSwitch","indeterminate"===t.mode),bt("viewBox",t._getViewBox()),Yt(1),lt("ngSwitchCase",!0),Yt(1),lt("ngSwitchCase",!1))},directives:[Ma,Xh],styles:[iS],encapsulation:2,changeDetection:0}),Or._diameters=new WeakMap;let yU=(()=>{class n extends Or{constructor(t,r,s,i,o){super(t,r,s,i,o),this.mode="indeterminate"}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(wn),M(ie,8),M(rs,8),M(oS))},n.\u0275cmp=cn({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,r){2&t&&(rr("width",r.diameter,"px")("height",r.diameter,"px"),Zt("_mat-animation-noopable",r._noopAnimations))},inputs:{color:"color"},features:[tr],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,r){1&t&&(ms(),tt(0,"svg",0),Er(1,fU,1,9,"circle",1),Er(2,hU,1,7,"circle",2),nt()),2&t&&(rr("width",r.diameter,"px")("height",r.diameter,"px"),lt("ngSwitch","indeterminate"===r.mode),bt("viewBox",r._getViewBox()),Yt(1),lt("ngSwitchCase",!0),Yt(1),lt("ngSwitchCase",!1))},directives:[Ma,Xh],styles:[iS],encapsulation:2,changeDetection:0}),n})(),bU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Cn,np],Cn]}),n})();const wU=["gameFieldDiv"],EU=["loadingElement"];function vU(n,e){if(1&n){const t=Rf();tt(0,"button",8),vr("click",function(){return od(t),Cr().fullscreen()}),tt(1,"mat-icon"),Ss(2,"open_in_new"),nt(),nt()}}function CU(n,e){if(1&n){const t=Rf();tt(0,"div"),tt(1,"mat-spinner",9,10),vr("click",function(){return od(t),Cr().loading_state()}),nt(),tt(3,"p",11),Ss(4,"loading... "),nt(),nt()}}let DU=(()=>{class n{constructor(){this.isFullscreen=!1,this.isLoaded=!1}ngAfterViewInit(){var t=this;return(0,rU.Z)(function*(){Qs.isEnabled&&Qs.on("change",()=>{t.isFullscreen=Qs.isFullscreen}),(0,sU.ZP)().then(r=>{var s,i;t.wasmModule=r,t.wasmModule.run(null===(s=t.gameFieldDiv)||void 0===s?void 0:s.nativeElement.clientWidth,null===(i=t.gameFieldDiv)||void 0===i?void 0:i.nativeElement.clientHeight)})})()}fullscreen(){if(Qs.isEnabled){Qs.isFullscreen?Qs.exit():Qs.request();const t=document.getElementById("castle_sim_canvas");t&&t.focus()}}loading_state(){this.isLoaded=this.loading.nativeElement.getAttribute("tag");const t=document.getElementById("castle_sim_canvas");t&&(window.dispatchEvent(new Event("resize")),t.focus())}ngOnInit(){this.isLoaded=!1}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=cn({type:n,selectors:[["app-root"]],viewQuery:function(t,r){if(1&t&&(dl(wU,5),dl(EU,5,Me)),2&t){let s;Gi(s=Ki())&&(r.gameFieldDiv=s.first),Gi(s=Ki())&&(r.loading=s.first)}},decls:12,vars:2,consts:[["id","container"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"overdraw"],["src","assets/keys/SPACE.png",1,"stretch-128"],["src","assets/keys/SHIFT.png",1,"stretch-128"],[4,"ngIf"],["appNoRightClick","","id","wasm-example",1,"main_container"],["gameFieldDiv",""],["mat-icon-button","",3,"click"],["id","loading_spinner",1,"loading-spinner","black",3,"click"],["loadingElement",""],["id","loading_text",1,"loading-spinner","loading-text","black"]],template:function(t,r){1&t&&(tt(0,"div",0),Er(1,vU,3,0,"button",1),tt(2,"div",2),tt(3,"p"),Ss(4,"Change Elevation: "),nt(),xt(5,"img",3),tt(6,"p"),Ss(7,"Faster Camera: "),nt(),xt(8,"img",4),nt(),Er(9,CU,5,0,"div",5),xt(10,"div",6,7),nt()),2&t&&(Yt(1),lt("ngIf",!r.isFullscreen),Yt(8),lt("ngIf",!r.isLoaded))},directives:[Jh,iU,sS,A8,yU],styles:["#container[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%;max-height:100%;position:relative}.black[_ngcontent-%COMP%]{width:50%;background-color:#000}.main_container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0}button[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:20px;z-index:10}.overdraw[_ngcontent-%COMP%]{position:absolute;top:1em;left:1em;z-index:10!important}p[_ngcontent-%COMP%]{color:#fff}.stretch-128[_ngcontent-%COMP%]{height:38px;padding:2px}.margin_w_key[_ngcontent-%COMP%]{padding-left:38px}mat-icon[_ngcontent-%COMP%], mat-icon.matListIcon[_ngcontent-%COMP%]{outline:none!important}.loading-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10!important}.loading-text[_ngcontent-%COMP%]{alignment:center;text-align:center;top:calc(50% - 80px);color:#fff}"]}),n})(),SU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n,bootstrap:[DU]}),n.\u0275inj=Ie({providers:[],imports:[[dp,nU,R8,lU,mB,bU]]}),n})();(function(){if(OE)throw new Error("Cannot enable prod mode after platform setup.");FE=!1})(),OL().bootstrapModule(SU).catch(n=>console.error(n))},587:(rn,jt,ot)=>{"use strict";rn.exports=ot.p+"60998f1c174b9e99ae4d.wasm"},239:(rn,jt,ot)=>{"use strict";function St(Ne,_,kt,Sn,Xe,Lr,ft){try{var de=Ne[Lr](ft),be=de.value}catch(T){return void kt(T)}de.done?_(be):Promise.resolve(be).then(Sn,Xe)}function W(Ne){return function(){var _=this,kt=arguments;return new Promise(function(Sn,Xe){var Lr=Ne.apply(_,kt);function ft(be){St(Lr,Sn,Xe,ft,de,"next",be)}function de(be){St(Lr,Sn,Xe,ft,de,"throw",be)}ft(void 0)})}}ot.d(jt,{Z:()=>W})}},rn=>{rn(rn.s=328)}]); \ No newline at end of file +(self.webpackChunkcastle_sim_web=self.webpackChunkcastle_sim_web||[]).push([[179],{255:rn=>{function jt(ot){return Promise.resolve().then(()=>{var St=new Error("Cannot find module '"+ot+"'");throw St.code="MODULE_NOT_FOUND",St})}jt.keys=()=>[],jt.resolve=jt,jt.id=255,rn.exports=jt},994:(rn,jt,ot)=>{"use strict";ot.d(jt,{ZP:()=>Co});var St=ot(239);let W;rn=ot.hmd(rn);const Ne=new Array(128).fill(void 0);function _(g){return Ne[g]}Ne.push(void 0,null,!0,!1);let kt=Ne.length;function Xe(g){const d=_(g);return function(g){g<132||(Ne[g]=kt,kt=g)}(g),d}const Lr="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&Lr.decode();let ft=null;function de(){return(null===ft||0===ft.byteLength)&&(ft=new Uint8Array(W.memory.buffer)),ft}function be(g,d){return g>>>=0,Lr.decode(de().subarray(g,g+d))}function T(g){kt===Ne.length&&Ne.push(Ne.length+1);const d=kt;return kt=Ne[d],Ne[d]=g,d}let Ut=0;const _e="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},Ya="function"==typeof _e.encodeInto?function(g,d){return _e.encodeInto(g,d)}:function(g,d){const f=_e.encode(g);return d.set(f),{read:g.length,written:f.length}};function sn(g,d,f){if(void 0===f){const ee=_e.encode(g),on=d(ee.length,1)>>>0;return de().subarray(on,on+ee.length).set(ee),Ut=ee.length,on}let b=g.length,v=d(b,1)>>>0;const N=de();let X=0;for(;X127)break;N[v+X]=ee}if(X!==b){0!==X&&(g=g.slice(X)),v=f(v,b,b=X+3*g.length,1)>>>0;const ee=de().subarray(v+X,v+b);X+=Ya(g,ee).written}return Ut=X,v}function qn(g){return null==g}let Tn=null;function Fe(){return(null===Tn||0===Tn.byteLength)&&(Tn=new Int32Array(W.memory.buffer)),Tn}function Ja(g){const d=typeof g;if("number"==d||"boolean"==d||null==g)return`${g}`;if("string"==d)return`"${g}"`;if("symbol"==d){const v=g.description;return null==v?"Symbol":`Symbol(${v})`}if("function"==d){const v=g.name;return"string"==typeof v&&v.length>0?`Function(${v})`:"Function"}if(Array.isArray(g)){const v=g.length;let N="[";v>0&&(N+=Ja(g[0]));for(let X=1;X1))return toString.call(g);if(b=f[1],"Object"==b)try{return"Object("+JSON.stringify(g)+")"}catch(v){return"Object"}return g instanceof Error?`${g.name}: ${g.message}\n${g.stack}`:b}function ht(g,d,f,b){const v={a:g,b:d,cnt:1,dtor:f},N=(...X)=>{v.cnt++;const ee=v.a;v.a=0;try{return b(ee,v.b,...X)}finally{0==--v.cnt?W.__wbindgen_export_2.get(v.dtor)(ee,v.b):v.a=ee}};return N.original=v,N}function fe(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5f210e48aab0ea44(g,d,T(f))}function Za(g,d,f,b){W._dyn_core__ops__function__FnMut__A_B___Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9c2bfaaebc689190(g,d,T(f),T(b))}function xg(g,d){W._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7a9686a82a672b4e(g,d)}function Vr(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdf76e8c51bbf6cc6(g,d,T(f))}function Pu(g,d){W._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b112b8cc6fb8d46(g,d)}function bo(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h11203933d6489286(g,d,T(f))}function pt(g,d,f){W._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd794cbf153a7b2d4(g,d,T(f))}function oe(g,d){try{return g.apply(this,d)}catch(f){W.__wbindgen_exn_store(T(f))}}let re=null;function wo(g,d){return g>>>=0,((null===re||0===re.byteLength)&&(re=new Uint32Array(W.memory.buffer)),re).subarray(g/4,g/4+d)}function Vu(g,d){return Eo.apply(this,arguments)}function Eo(){return(Eo=(0,St.Z)(function*(g,d){if("function"==typeof Response&&g instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return yield WebAssembly.instantiateStreaming(g,d)}catch(b){if("application/wasm"==g.headers.get("Content-Type"))throw b;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",b)}const f=yield g.arrayBuffer();return yield WebAssembly.instantiate(f,d)}{const f=yield WebAssembly.instantiate(g,d);return f instanceof WebAssembly.Instance?{instance:f,module:g}:f}})).apply(this,arguments)}function us(){const g={wbg:{}};return g.wbg.__wbindgen_object_drop_ref=function(d){Xe(d)},g.wbg.__wbindgen_cb_drop=function(d){const f=Xe(d).original;return 1==f.cnt--&&(f.a=0,!0)},g.wbg.__wbindgen_string_new=function(d,f){return T(be(d,f))},g.wbg.__wbindgen_object_clone_ref=function(d){return T(_(d))},g.wbg.__wbindgen_is_undefined=function(d){return void 0===_(d)},g.wbg.__wbg_new_abda76e883ba8a5f=function(){return T(new Error)},g.wbg.__wbg_stack_658279fe44541cf6=function(d,f){const v=sn(_(f).stack,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_error_f851667af71bcfc6=function(d,f){let b,v;try{b=d,v=f,console.error(be(d,f))}finally{W.__wbindgen_free(b,v,1)}},g.wbg.__wbg_getCoalescedEvents_cbf0545b4f41a219=function(d){return T(_(d).getCoalescedEvents)},g.wbg.__wbg_requestIdleCallback_f34d4a3a4eb49c12=function(d){return T(_(d).requestIdleCallback)},g.wbg.__wbg_onpointerrawupdate_df50a7410637cb72=function(d){return T(_(d).onpointerrawupdate)},g.wbg.__wbg_prototype_cce95c20fdd04d50=function(){return T(ResizeObserverEntry.prototype)},g.wbg.__wbg_Window_561e2079a30e6d18=function(d){return T(_(d).Window)},g.wbg.__wbg_requestFullscreen_c2c3449d40d9a2d3=function(){return oe(function(d){return T(_(d).requestFullscreen())},arguments)},g.wbg.__wbg_performance_e5eb61626698b7a4=function(d){return T(_(d).performance)},g.wbg.__wbg_now_928014da6271b17c=function(d){return _(d).now()},g.wbg.__wbindgen_string_get=function(d,f){const b=_(f),v="string"==typeof b?b:void 0;var N=qn(v)?0:sn(v,W.__wbindgen_malloc,W.__wbindgen_realloc),X=Ut;Fe()[d/4+1]=X,Fe()[d/4+0]=N},g.wbg.__wbindgen_is_object=function(d){const f=_(d);return"object"==typeof f&&null!==f},g.wbg.__wbg_Window_17fd8eee712535f9=function(d){return T(_(d).Window)},g.wbg.__wbg_WorkerGlobalScope_f93b9996824ad878=function(d){return T(_(d).WorkerGlobalScope)},g.wbg.__wbindgen_number_new=function(d){return T(d)},g.wbg.__wbg_instanceof_Window_9029196b662bc42a=function(d){let f;try{f=_(d)instanceof Window}catch(v){f=!1}return f},g.wbg.__wbg_document_f7ace2b956f30a4f=function(d){const f=_(d).document;return qn(f)?0:T(f)},g.wbg.__wbg_navigator_7c9103698acde322=function(d){return T(_(d).navigator)},g.wbg.__wbg_devicePixelRatio_f9de7bddca0eaf20=function(d){return _(d).devicePixelRatio},g.wbg.__wbg_cancelIdleCallback_93fba6286778fa5d=function(d,f){_(d).cancelIdleCallback(f>>>0)},g.wbg.__wbg_getComputedStyle_09fd3af3edcbbc36=function(){return oe(function(d,f){const b=_(d).getComputedStyle(_(f));return qn(b)?0:T(b)},arguments)},g.wbg.__wbg_matchMedia_12ef69056e32d0b3=function(){return oe(function(d,f,b){const v=_(d).matchMedia(be(f,b));return qn(v)?0:T(v)},arguments)},g.wbg.__wbg_requestIdleCallback_cd497d1e5bce8ba1=function(){return oe(function(d,f){return _(d).requestIdleCallback(_(f))},arguments)},g.wbg.__wbg_clearTimeout_220be2fa0577b342=function(d,f){_(d).clearTimeout(f)},g.wbg.__wbg_fetch_25c13b73a41a6660=function(d,f,b){return T(_(d).fetch(be(f,b)))},g.wbg.__wbg_setTimeout_9434bde3b3009c3e=function(){return oe(function(d,f){return _(d).setTimeout(_(f))},arguments)},g.wbg.__wbg_setTimeout_eb1a0d116c26d9f6=function(){return oe(function(d,f,b){return _(d).setTimeout(_(f),b)},arguments)},g.wbg.__wbg_fullscreenElement_07d5b77ef6c958c1=function(d){const f=_(d).fullscreenElement;return qn(f)?0:T(f)},g.wbg.__wbg_createElement_4891554b28d3388b=function(){return oe(function(d,f,b){return T(_(d).createElement(be(f,b)))},arguments)},g.wbg.__wbg_exitFullscreen_5fada21e8623256e=function(d){_(d).exitFullscreen()},g.wbg.__wbg_getElementById_cc0e0d931b0d9a28=function(d,f,b){const v=_(d).getElementById(be(f,b));return qn(v)?0:T(v)},g.wbg.__wbg_querySelectorAll_c03e8664a5a0f0c5=function(){return oe(function(d,f,b){return T(_(d).querySelectorAll(be(f,b)))},arguments)},g.wbg.__wbg_setid_1984ee27e5075311=function(d,f,b){_(d).id=be(f,b)},g.wbg.__wbg_clientWidth_51ec21e3189f5656=function(d){return _(d).clientWidth},g.wbg.__wbg_clientHeight_09ec0b524d59c367=function(d){return _(d).clientHeight},g.wbg.__wbg_getBoundingClientRect_ac9db8cf97ca8083=function(d){return T(_(d).getBoundingClientRect())},g.wbg.__wbg_requestFullscreen_3545278bcd44910c=function(){return oe(function(d){_(d).requestFullscreen()},arguments)},g.wbg.__wbg_setAttribute_e7e80b478b7b8b2f=function(){return oe(function(d,f,b,v,N){_(d).setAttribute(be(f,b),be(v,N))},arguments)},g.wbg.__wbg_setPointerCapture_e7c29336490bba19=function(){return oe(function(d,f){_(d).setPointerCapture(f)},arguments)},g.wbg.__wbg_addEventListener_5651108fc3ffeb6e=function(){return oe(function(d,f,b,v){_(d).addEventListener(be(f,b),_(v))},arguments)},g.wbg.__wbg_removeEventListener_5de660c02ed784e4=function(){return oe(function(d,f,b,v){_(d).removeEventListener(be(f,b),_(v))},arguments)},g.wbg.__wbg_dispatchWorkgroups_c484cd3530a3801d=function(d,f,b,v){_(d).dispatchWorkgroups(f>>>0,b>>>0,v>>>0)},g.wbg.__wbg_dispatchWorkgroupsIndirect_2b89ee1731fab5f8=function(d,f,b){_(d).dispatchWorkgroupsIndirect(_(f),b)},g.wbg.__wbg_end_dab719019df5969c=function(d){_(d).end()},g.wbg.__wbg_setPipeline_598117fdeb73cf8f=function(d,f){_(d).setPipeline(_(f))},g.wbg.__wbg_setBindGroup_dffce83253968cdd=function(d,f,b,v,N,X,ee){_(d).setBindGroup(f>>>0,_(b),wo(v,N),X,ee>>>0)},g.wbg.__wbg_instanceof_GpuOutOfMemoryError_45166ef4e2774fbe=function(d){let f;try{f=_(d)instanceof GPUOutOfMemoryError}catch(v){f=!1}return f},g.wbg.__wbg_has_8720889cf3ad610c=function(d,f,b){return _(d).has(be(f,b))},g.wbg.__wbg_instanceof_GpuValidationError_af2aa2e306669317=function(d){let f;try{f=_(d)instanceof GPUValidationError}catch(v){f=!1}return f},g.wbg.__wbg_get_c77649dd3862b63a=function(d,f){const b=_(d)[f>>>0];return qn(b)?0:T(b)},g.wbg.__wbg_gpu_1678673f109c8aeb=function(d){return T(_(d).gpu)},g.wbg.__wbg_instanceof_HtmlElement_6f4725d4677c7968=function(d){let f;try{f=_(d)instanceof HTMLElement}catch(v){f=!1}return f},g.wbg.__wbg_style_3801009b2339aa94=function(d){return T(_(d).style)},g.wbg.__wbg_click_9f2ce0ac84b1ce73=function(d){_(d).click()},g.wbg.__wbg_focus_dbcbbbb2a04c0e1f=function(){return oe(function(d){_(d).focus()},arguments)},g.wbg.__wbg_features_dfb2178c91fa1dd7=function(d){return T(_(d).features)},g.wbg.__wbg_queue_f2aeb5c277e56f93=function(d){return T(_(d).queue)},g.wbg.__wbg_setonuncapturederror_b3c814f611d5e585=function(d,f){_(d).onuncapturederror=_(f)},g.wbg.__wbg_createBindGroup_fa5515d52f9c6a69=function(d,f){return T(_(d).createBindGroup(_(f)))},g.wbg.__wbg_createBindGroupLayout_af3b9d9ee0a1f5f9=function(d,f){return T(_(d).createBindGroupLayout(_(f)))},g.wbg.__wbg_createBuffer_36e159f52cc644a7=function(d,f){return T(_(d).createBuffer(_(f)))},g.wbg.__wbg_createCommandEncoder_a50a1dab2b499b95=function(d,f){return T(_(d).createCommandEncoder(_(f)))},g.wbg.__wbg_createComputePipeline_89131452dfd12672=function(d,f){return T(_(d).createComputePipeline(_(f)))},g.wbg.__wbg_createPipelineLayout_1e10c8281fb85c01=function(d,f){return T(_(d).createPipelineLayout(_(f)))},g.wbg.__wbg_createQuerySet_ccb746122176f8e5=function(d,f){return T(_(d).createQuerySet(_(f)))},g.wbg.__wbg_createRenderBundleEncoder_ad2d0237f581427b=function(d,f){return T(_(d).createRenderBundleEncoder(_(f)))},g.wbg.__wbg_createRenderPipeline_745f00bcb1ca6edf=function(d,f){return T(_(d).createRenderPipeline(_(f)))},g.wbg.__wbg_createSampler_09cd36835c9befb3=function(d,f){return T(_(d).createSampler(_(f)))},g.wbg.__wbg_createShaderModule_59bbf537b8b5cf7c=function(d,f){return T(_(d).createShaderModule(_(f)))},g.wbg.__wbg_createTexture_dbd00b550944125c=function(d,f){return T(_(d).createTexture(_(f)))},g.wbg.__wbg_popErrorScope_19075fb98a08b740=function(d){return T(_(d).popErrorScope())},g.wbg.__wbg_pushErrorScope_0728aae3f2d3ed48=function(d,f){_(d).pushErrorScope(Xe(f))},g.wbg.__wbg_now_0cfdc90c97d0c24b=function(d){return _(d).now()},g.wbg.__wbg_debug_9a6b3243fbbebb61=function(d){console.debug(_(d))},g.wbg.__wbg_error_788ae33f81d3b84b=function(d){console.error(_(d))},g.wbg.__wbg_error_c9309504864e78b5=function(d,f){console.error(_(d),_(f))},g.wbg.__wbg_info_2e30e8204b29d91d=function(d){console.info(_(d))},g.wbg.__wbg_log_1d3ae0273d8f4f8a=function(d){console.log(_(d))},g.wbg.__wbg_warn_d60e832f9882c1b2=function(d){console.warn(_(d))},g.wbg.__wbg_instanceof_GpuAdapter_c0a5a310603ba618=function(d){let f;try{f=_(d)instanceof GPUAdapter}catch(v){f=!1}return f},g.wbg.__wbg_features_88901f43932fb28e=function(d){return T(_(d).features)},g.wbg.__wbg_limits_a7f3fbf58768b61f=function(d){return T(_(d).limits)},g.wbg.__wbg_requestDevice_068e794820eb88eb=function(d,f){return T(_(d).requestDevice(_(f)))},g.wbg.__wbg_setwidth_a667a942dba6656e=function(d,f){_(d).width=f>>>0},g.wbg.__wbg_setheight_a747d440760fe5aa=function(d,f){_(d).height=f>>>0},g.wbg.__wbg_getContext_7c5944ea807bf5d3=function(){return oe(function(d,f,b){const v=_(d).getContext(be(f,b));return qn(v)?0:T(v)},arguments)},g.wbg.__wbg_setwidth_15266a5e81f43cf0=function(d,f){_(d).width=f>>>0},g.wbg.__wbg_setheight_2e9bab573f1775a6=function(d,f){_(d).height=f>>>0},g.wbg.__wbg_x_6c8af74c3b4d8c09=function(d){return _(d).x},g.wbg.__wbg_y_4cca2672ce1b5fc1=function(d){return _(d).y},g.wbg.__wbg_width_5728ff70a76f27ac=function(d){return _(d).width},g.wbg.__wbg_height_7fd80bb9bbf69d8c=function(d){return _(d).height},g.wbg.__wbg_getPreferredCanvasFormat_1f6c9ef810196b92=function(d){return T(_(d).getPreferredCanvasFormat())},g.wbg.__wbg_requestAdapter_d8298d7a27a391f0=function(d,f){return T(_(d).requestAdapter(_(f)))},g.wbg.__wbg_clientX_1a480606ab0cabaa=function(d){return _(d).clientX},g.wbg.__wbg_clientY_9c7878f7faf3900f=function(d){return _(d).clientY},g.wbg.__wbg_offsetX_5a58f16f6c3a41b6=function(d){return _(d).offsetX},g.wbg.__wbg_offsetY_c45b4956f6429a95=function(d){return _(d).offsetY},g.wbg.__wbg_ctrlKey_0a805df688b5bf42=function(d){return _(d).ctrlKey},g.wbg.__wbg_shiftKey_8a070ab6169b5fa4=function(d){return _(d).shiftKey},g.wbg.__wbg_altKey_6fc1761a6b7a406e=function(d){return _(d).altKey},g.wbg.__wbg_metaKey_d89287be4389a3c1=function(d){return _(d).metaKey},g.wbg.__wbg_button_7a095234b69de930=function(d){return _(d).button},g.wbg.__wbg_buttons_d0f40e1650e3fa28=function(d){return _(d).buttons},g.wbg.__wbg_movementX_966ec323c169d1a6=function(d){return _(d).movementX},g.wbg.__wbg_movementY_b14b3bc8e1b31f23=function(d){return _(d).movementY},g.wbg.__wbg_pointerId_701aab7b4fb073ff=function(d){return _(d).pointerId},g.wbg.__wbg_pressure_e388b6fd623a3917=function(d){return _(d).pressure},g.wbg.__wbg_pointerType_0009b1e4e6b0f428=function(d,f){const v=sn(_(f).pointerType,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_getCoalescedEvents_927ed71312cc0362=function(d){return T(_(d).getCoalescedEvents())},g.wbg.__wbg_new_9d3e795dcd24a5d9=function(){return oe(function(d){return T(new ResizeObserver(_(d)))},arguments)},g.wbg.__wbg_disconnect_4f00a95c32fad6fe=function(d){_(d).disconnect()},g.wbg.__wbg_observe_e3e06d8e2ad2b89c=function(d,f){_(d).observe(_(f))},g.wbg.__wbg_observe_5f98196bfaa6b83c=function(d,f,b){_(d).observe(_(f),_(b))},g.wbg.__wbg_unobserve_e7fcbda12d671fd7=function(d,f){_(d).unobserve(_(f))},g.wbg.__wbg_instanceof_Response_fc4327dbfcdf5ced=function(d){let f;try{f=_(d)instanceof Response}catch(v){f=!1}return f},g.wbg.__wbg_arrayBuffer_288fb3538806e85c=function(){return oe(function(d){return T(_(d).arrayBuffer())},arguments)},g.wbg.__wbg_deltaX_84508d00a1050e70=function(d){return _(d).deltaX},g.wbg.__wbg_deltaY_64823169afb0335d=function(d){return _(d).deltaY},g.wbg.__wbg_deltaMode_1c680147cfdba8a5=function(d){return _(d).deltaMode},g.wbg.__wbg_copyExternalImageToTexture_819ec294d299f624=function(d,f,b,v){_(d).copyExternalImageToTexture(_(f),_(b),_(v))},g.wbg.__wbg_submit_3104e9b014f75846=function(d,f){_(d).submit(_(f))},g.wbg.__wbg_writeBuffer_becf0c8f0323ffd7=function(d,f,b,v,N,X){_(d).writeBuffer(_(f),b,_(v),N,X)},g.wbg.__wbg_writeTexture_465ecc6146e5052c=function(d,f,b,v,N){_(d).writeTexture(_(f),_(b),_(v),_(N))},g.wbg.__wbg_createView_3e46af1f54fdcd1f=function(d,f){return T(_(d).createView(_(f)))},g.wbg.__wbg_destroy_728f676d96e34538=function(d){_(d).destroy()},g.wbg.__wbg_gpu_24536c9523d924b1=function(d){return T(_(d).gpu)},g.wbg.__wbg_contentRect_3a38b9ecf8994843=function(d){return T(_(d).contentRect)},g.wbg.__wbg_devicePixelContentBoxSize_5b7f524383aabe72=function(d){return T(_(d).devicePixelContentBoxSize)},g.wbg.__wbg_inlineSize_9394a3057e5da0ae=function(d){return _(d).inlineSize},g.wbg.__wbg_blockSize_389e379c0494897e=function(d){return _(d).blockSize},g.wbg.__wbg_getPropertyValue_45480a940d0053a0=function(){return oe(function(d,f,b,v){const X=sn(_(f).getPropertyValue(be(b,v)),W.__wbindgen_malloc,W.__wbindgen_realloc),ee=Ut;Fe()[d/4+1]=ee,Fe()[d/4+0]=X},arguments)},g.wbg.__wbg_setProperty_b95ef63ab852879e=function(){return oe(function(d,f,b,v,N){_(d).setProperty(be(f,b),be(v,N))},arguments)},g.wbg.__wbg_getBindGroupLayout_20dc45d52b96fa42=function(d,f){return T(_(d).getBindGroupLayout(f>>>0))},g.wbg.__wbg_altKey_612289acf855835c=function(d){return _(d).altKey},g.wbg.__wbg_ctrlKey_582686fb2263dd3c=function(d){return _(d).ctrlKey},g.wbg.__wbg_shiftKey_48e8701355d8e2d4=function(d){return _(d).shiftKey},g.wbg.__wbg_metaKey_43193b7cc99f8914=function(d){return _(d).metaKey},g.wbg.__wbg_location_e5f8d98ba89b596e=function(d){return _(d).location},g.wbg.__wbg_repeat_52850ed66db69aba=function(d){return _(d).repeat},g.wbg.__wbg_key_8aeaa079126a9cc7=function(d,f){const v=sn(_(f).key,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_code_96d6322b968b2d17=function(d,f){const v=sn(_(f).code,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_settextContent_28d80502cf08bde7=function(d,f,b){_(d).textContent=0===f?void 0:be(f,b)},g.wbg.__wbg_appendChild_51339d4cde00ee22=function(){return oe(function(d,f){return T(_(d).appendChild(_(f)))},arguments)},g.wbg.__wbg_contains_fab0394bee511df3=function(d,f){return _(d).contains(_(f))},g.wbg.__wbg_message_c934153af8567cdb=function(d,f){const v=sn(_(f).message,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_end_bdfb66792e0c59a2=function(d){_(d).end()},g.wbg.__wbg_executeBundles_0a1fdfd83c1a3e57=function(d,f){_(d).executeBundles(_(f))},g.wbg.__wbg_setBlendConstant_e89574db5137b2f6=function(d,f){_(d).setBlendConstant(_(f))},g.wbg.__wbg_setScissorRect_0af8c89e90a6e89c=function(d,f,b,v,N){_(d).setScissorRect(f>>>0,b>>>0,v>>>0,N>>>0)},g.wbg.__wbg_setStencilReference_71be0db67db2f7ab=function(d,f){_(d).setStencilReference(f>>>0)},g.wbg.__wbg_setViewport_9c5fb686baf1cf4f=function(d,f,b,v,N,X,ee){_(d).setViewport(f,b,v,N,X,ee)},g.wbg.__wbg_setBindGroup_ce4432036922cd83=function(d,f,b,v,N,X,ee){_(d).setBindGroup(f>>>0,_(b),wo(v,N),X,ee>>>0)},g.wbg.__wbg_draw_6357a5fbc8a6b097=function(d,f,b,v,N){_(d).draw(f>>>0,b>>>0,v>>>0,N>>>0)},g.wbg.__wbg_drawIndexed_5d1dd89d7375148c=function(d,f,b,v,N,X){_(d).drawIndexed(f>>>0,b>>>0,v>>>0,N,X>>>0)},g.wbg.__wbg_drawIndexedIndirect_526599171cfbbee5=function(d,f,b){_(d).drawIndexedIndirect(_(f),b)},g.wbg.__wbg_drawIndirect_8dd595dc622e21ac=function(d,f,b){_(d).drawIndirect(_(f),b)},g.wbg.__wbg_setIndexBuffer_1f4a86d1cc8c16d9=function(d,f,b,v){_(d).setIndexBuffer(_(f),Xe(b),v)},g.wbg.__wbg_setIndexBuffer_9f8493460611f96b=function(d,f,b,v,N){_(d).setIndexBuffer(_(f),Xe(b),v,N)},g.wbg.__wbg_setPipeline_18ce556bdea62cc5=function(d,f){_(d).setPipeline(_(f))},g.wbg.__wbg_setVertexBuffer_2a2c84d65c1063f9=function(d,f,b,v){_(d).setVertexBuffer(f>>>0,_(b),v)},g.wbg.__wbg_setVertexBuffer_176c2dff823c42c1=function(d,f,b,v,N){_(d).setVertexBuffer(f>>>0,_(b),v,N)},g.wbg.__wbg_getBindGroupLayout_dfc1b97f78c04beb=function(d,f){return T(_(d).getBindGroupLayout(f>>>0))},g.wbg.__wbg_maxTextureDimension1D_4d1ddb46ed9dc470=function(d){return _(d).maxTextureDimension1D},g.wbg.__wbg_maxTextureDimension2D_37a46e61490c8297=function(d){return _(d).maxTextureDimension2D},g.wbg.__wbg_maxTextureDimension3D_7e3a97204d211743=function(d){return _(d).maxTextureDimension3D},g.wbg.__wbg_maxTextureArrayLayers_fee4db585706a5eb=function(d){return _(d).maxTextureArrayLayers},g.wbg.__wbg_maxBindGroups_dc8a5f97ba653c91=function(d){return _(d).maxBindGroups},g.wbg.__wbg_maxBindingsPerBindGroup_3d5ab311420be5df=function(d){return _(d).maxBindingsPerBindGroup},g.wbg.__wbg_maxDynamicUniformBuffersPerPipelineLayout_6b839b7dc97f34f0=function(d){return _(d).maxDynamicUniformBuffersPerPipelineLayout},g.wbg.__wbg_maxDynamicStorageBuffersPerPipelineLayout_5328cd2b9d884831=function(d){return _(d).maxDynamicStorageBuffersPerPipelineLayout},g.wbg.__wbg_maxSampledTexturesPerShaderStage_ac006b00cf776b4a=function(d){return _(d).maxSampledTexturesPerShaderStage},g.wbg.__wbg_maxSamplersPerShaderStage_dc092d6a272be20a=function(d){return _(d).maxSamplersPerShaderStage},g.wbg.__wbg_maxStorageBuffersPerShaderStage_dc5b58734b9ab932=function(d){return _(d).maxStorageBuffersPerShaderStage},g.wbg.__wbg_maxStorageTexturesPerShaderStage_2fec939cb0d5bbfd=function(d){return _(d).maxStorageTexturesPerShaderStage},g.wbg.__wbg_maxUniformBuffersPerShaderStage_b30d53cbf89caeae=function(d){return _(d).maxUniformBuffersPerShaderStage},g.wbg.__wbg_maxUniformBufferBindingSize_eec576e1342504b5=function(d){return _(d).maxUniformBufferBindingSize},g.wbg.__wbg_maxStorageBufferBindingSize_1ef0cc5e43dad09b=function(d){return _(d).maxStorageBufferBindingSize},g.wbg.__wbg_maxVertexBuffers_b4d31be9e3f93990=function(d){return _(d).maxVertexBuffers},g.wbg.__wbg_maxVertexAttributes_904c5eb19a6f6c65=function(d){return _(d).maxVertexAttributes},g.wbg.__wbg_maxVertexBufferArrayStride_6800975c373d83bc=function(d){return _(d).maxVertexBufferArrayStride},g.wbg.__wbg_error_f85e77a2651e41dc=function(d){return T(_(d).error)},g.wbg.__wbg_navigator_41bd88b80ed4685e=function(d){return T(_(d).navigator)},g.wbg.__wbg_preventDefault_24104f3f0a54546a=function(d){_(d).preventDefault()},g.wbg.__wbg_stopPropagation_55539cfa2506c867=function(d){_(d).stopPropagation()},g.wbg.__wbg_instanceof_GpuCanvasContext_7a77e275c38d41d8=function(d){let f;try{f=_(d)instanceof GPUCanvasContext}catch(v){f=!1}return f},g.wbg.__wbg_configure_93a57a4e5e0f8bcf=function(d,f){_(d).configure(_(f))},g.wbg.__wbg_getCurrentTexture_ecedc4f6f71990d2=function(d){return T(_(d).getCurrentTexture())},g.wbg.__wbg_media_1712dab8d575e095=function(d,f){const v=sn(_(f).media,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_matches_07c564b5b4101cf2=function(d){return _(d).matches},g.wbg.__wbg_addListener_85fb6e4bd17e8878=function(){return oe(function(d,f){_(d).addListener(_(f))},arguments)},g.wbg.__wbg_removeListener_3b62020874cfc3c7=function(){return oe(function(d,f){_(d).removeListener(_(f))},arguments)},g.wbg.__wbg_persisted_a24f61318c91570a=function(d){return _(d).persisted},g.wbg.__wbg_size_6540ddb49e0d7120=function(d){return _(d).size},g.wbg.__wbg_usage_f5b34f3e0170424b=function(d){return _(d).usage},g.wbg.__wbg_destroy_9b5398e5b148e210=function(d){_(d).destroy()},g.wbg.__wbg_getMappedRange_becef7e3d9dc5489=function(d,f,b){return T(_(d).getMappedRange(f,b))},g.wbg.__wbg_mapAsync_91acdcf41b7ae21d=function(d,f,b,v){return T(_(d).mapAsync(f>>>0,b,v))},g.wbg.__wbg_unmap_1677c09514e08e64=function(d){_(d).unmap()},g.wbg.__wbg_label_c7970304720cf8b0=function(d,f){const v=sn(_(f).label,W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbg_beginComputePass_579a2563c561da68=function(d,f){return T(_(d).beginComputePass(_(f)))},g.wbg.__wbg_beginRenderPass_d04327f7231bd5af=function(d,f){return T(_(d).beginRenderPass(_(f)))},g.wbg.__wbg_clearBuffer_c370e7adb8398388=function(d,f,b){_(d).clearBuffer(_(f),b)},g.wbg.__wbg_clearBuffer_b8e6751290709d43=function(d,f,b,v){_(d).clearBuffer(_(f),b,v)},g.wbg.__wbg_copyBufferToBuffer_79ac12f409453cf0=function(d,f,b,v,N,X){_(d).copyBufferToBuffer(_(f),b,_(v),N,X)},g.wbg.__wbg_copyBufferToTexture_ac956e6d47c24e73=function(d,f,b,v){_(d).copyBufferToTexture(_(f),_(b),_(v))},g.wbg.__wbg_copyTextureToBuffer_787ec8d8c4c216f1=function(d,f,b,v){_(d).copyTextureToBuffer(_(f),_(b),_(v))},g.wbg.__wbg_copyTextureToTexture_a86e849469b0ef38=function(d,f,b,v){_(d).copyTextureToTexture(_(f),_(b),_(v))},g.wbg.__wbg_finish_5153789564a5eee5=function(d){return T(_(d).finish())},g.wbg.__wbg_finish_d1049a13335e8326=function(d,f){return T(_(d).finish(_(f)))},g.wbg.__wbg_resolveQuerySet_8ac49c71e15cdf6a=function(d,f,b,v,N,X){_(d).resolveQuerySet(_(f),b>>>0,v>>>0,_(N),X>>>0)},g.wbg.__wbg_writeTimestamp_107647519ce52436=function(d,f,b){_(d).writeTimestamp(_(f),b>>>0)},g.wbg.__wbg_finish_863657abae52896e=function(d){return T(_(d).finish())},g.wbg.__wbg_finish_e580ef236d53f04b=function(d,f){return T(_(d).finish(_(f)))},g.wbg.__wbg_setBindGroup_6bc8944422dbb3cd=function(d,f,b,v,N,X,ee){_(d).setBindGroup(f>>>0,_(b),wo(v,N),X,ee>>>0)},g.wbg.__wbg_draw_3958097471a10642=function(d,f,b,v,N){_(d).draw(f>>>0,b>>>0,v>>>0,N>>>0)},g.wbg.__wbg_drawIndexed_8856cc4ccffa3498=function(d,f,b,v,N,X){_(d).drawIndexed(f>>>0,b>>>0,v>>>0,N,X>>>0)},g.wbg.__wbg_drawIndexedIndirect_0404fa6cb9a6db25=function(d,f,b){_(d).drawIndexedIndirect(_(f),b)},g.wbg.__wbg_drawIndirect_95c6eb1494a44d06=function(d,f,b){_(d).drawIndirect(_(f),b)},g.wbg.__wbg_setIndexBuffer_4dc5432dc348458d=function(d,f,b,v){_(d).setIndexBuffer(_(f),Xe(b),v)},g.wbg.__wbg_setIndexBuffer_f3bae4da9e407eaf=function(d,f,b,v,N){_(d).setIndexBuffer(_(f),Xe(b),v,N)},g.wbg.__wbg_setPipeline_66f1e900256fc946=function(d,f){_(d).setPipeline(_(f))},g.wbg.__wbg_setVertexBuffer_c782d133fd439184=function(d,f,b,v){_(d).setVertexBuffer(f>>>0,_(b),v)},g.wbg.__wbg_setVertexBuffer_4da0a96267ce82db=function(d,f,b,v,N){_(d).setVertexBuffer(f>>>0,_(b),v,N)},g.wbg.__wbg_crypto_c48a774b022d20ac=function(d){return T(_(d).crypto)},g.wbg.__wbg_process_298734cf255a885d=function(d){return T(_(d).process)},g.wbg.__wbg_versions_e2e78e134e3e5d01=function(d){return T(_(d).versions)},g.wbg.__wbg_node_1cd7a5d853dbea79=function(d){return T(_(d).node)},g.wbg.__wbindgen_is_string=function(d){return"string"==typeof _(d)},g.wbg.__wbg_msCrypto_bcb970640f50a1e8=function(d){return T(_(d).msCrypto)},g.wbg.__wbg_require_8f08ceecec0f4fee=function(){return oe(function(){return T(rn.require)},arguments)},g.wbg.__wbindgen_is_function=function(d){return"function"==typeof _(d)},g.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab=function(){return oe(function(d,f){_(d).getRandomValues(_(f))},arguments)},g.wbg.__wbg_randomFillSync_dc1e9a60c158336d=function(){return oe(function(d,f){_(d).randomFillSync(Xe(f))},arguments)},g.wbg.__wbg_get_44be0491f933a435=function(d,f){return T(_(d)[f>>>0])},g.wbg.__wbg_length_fff51ee6522a1a18=function(d){return _(d).length},g.wbg.__wbg_new_898a68150f225f2e=function(){return T(new Array)},g.wbg.__wbg_newnoargs_581967eacc0e2604=function(d,f){return T(new Function(be(d,f)))},g.wbg.__wbg_get_97b561fb56f034b5=function(){return oe(function(d,f){return T(Reflect.get(_(d),_(f)))},arguments)},g.wbg.__wbg_call_cb65541d95d71282=function(){return oe(function(d,f){return T(_(d).call(_(f)))},arguments)},g.wbg.__wbg_new_b51585de1b234aff=function(){return T(new Object)},g.wbg.__wbg_self_1ff1d729e9aae938=function(){return oe(function(){return T(self.self)},arguments)},g.wbg.__wbg_window_5f4faef6c12b79ec=function(){return oe(function(){return T(window.window)},arguments)},g.wbg.__wbg_globalThis_1d39714405582d3c=function(){return oe(function(){return T(globalThis.globalThis)},arguments)},g.wbg.__wbg_global_651f05c6a0944d1c=function(){return oe(function(){return T(global.global)},arguments)},g.wbg.__wbg_push_ca1c26067ef907ac=function(d,f){return _(d).push(_(f))},g.wbg.__wbg_call_01734de55d61e11d=function(){return oe(function(d,f,b){return T(_(d).call(_(f),_(b)))},arguments)},g.wbg.__wbg_instanceof_Object_3daa8298c86298be=function(d){let f;try{f=_(d)instanceof Object}catch(v){f=!1}return f},g.wbg.__wbg_getOwnPropertyDescriptor_115142ca061e9728=function(d,f){return T(Object.getOwnPropertyDescriptor(_(d),_(f)))},g.wbg.__wbg_is_205d914af04a8faa=function(d,f){return Object.is(_(d),_(f))},g.wbg.__wbg_valueOf_cefb0eb7807e83fb=function(d){return T(_(d).valueOf())},g.wbg.__wbg_new_43f1b47c28813cbd=function(d,f){try{var b={a:d,b:f};const N=new Promise((X,ee)=>{const on=b.a;b.a=0;try{return function(g,d,f,b){W.wasm_bindgen__convert__closures__invoke2_mut__hbb99ff0c90516ffb(g,d,T(f),T(b))}(on,b.b,X,ee)}finally{b.a=on}});return T(N)}finally{b.a=b.b=0}},g.wbg.__wbg_resolve_53698b95aaf7fcf8=function(d){return T(Promise.resolve(_(d)))},g.wbg.__wbg_then_f7e06ee3c11698eb=function(d,f){return T(_(d).then(_(f)))},g.wbg.__wbg_then_b2267541e2a73865=function(d,f,b){return T(_(d).then(_(f),_(b)))},g.wbg.__wbg_buffer_085ec1f694018c4f=function(d){return T(_(d).buffer)},g.wbg.__wbg_newwithbyteoffsetandlength_6da8e527659b86aa=function(d,f,b){return T(new Uint8Array(_(d),f>>>0,b>>>0))},g.wbg.__wbg_new_8125e318e6245eed=function(d){return T(new Uint8Array(_(d)))},g.wbg.__wbg_set_5cf90238115182c3=function(d,f,b){_(d).set(_(f),b>>>0)},g.wbg.__wbg_length_72e2208bbc0efc61=function(d){return _(d).length},g.wbg.__wbg_newwithlength_e5d69174d6984cd7=function(d){return T(new Uint8Array(d>>>0))},g.wbg.__wbg_buffer_f5b7059c439f330d=function(d){return T(_(d).buffer)},g.wbg.__wbg_subarray_13db269f57aa838d=function(d,f,b){return T(_(d).subarray(f>>>0,b>>>0))},g.wbg.__wbg_set_092e06b0f9d71865=function(){return oe(function(d,f,b){return Reflect.set(_(d),_(f),_(b))},arguments)},g.wbg.__wbindgen_debug_string=function(d,f){const v=sn(Ja(_(f)),W.__wbindgen_malloc,W.__wbindgen_realloc),N=Ut;Fe()[d/4+1]=N,Fe()[d/4+0]=v},g.wbg.__wbindgen_throw=function(d,f){throw new Error(be(d,f))},g.wbg.__wbindgen_memory=function(){return T(W.memory)},g.wbg.__wbindgen_closure_wrapper1168=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1169=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1170=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1171=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1172=function(d,f,b){return T(ht(d,f,850,Za))},g.wbg.__wbindgen_closure_wrapper1173=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper1174=function(d,f,b){return T(ht(d,f,850,xg))},g.wbg.__wbindgen_closure_wrapper1178=function(d,f,b){return T(ht(d,f,850,fe))},g.wbg.__wbindgen_closure_wrapper3264=function(d,f,b){return T(ht(d,f,1613,Vr))},g.wbg.__wbindgen_closure_wrapper3265=function(d,f,b){return T(ht(d,f,1613,Pu))},g.wbg.__wbindgen_closure_wrapper3605=function(d,f,b){return T(ht(d,f,1817,bo))},g.wbg.__wbindgen_closure_wrapper3607=function(d,f,b){return T(ht(d,f,1817,bo))},g.wbg.__wbindgen_closure_wrapper3960=function(d,f,b){return T(ht(d,f,1898,pt))},g}function ec(g,d){return W=g.exports,vo.__wbindgen_wasm_module=d,Tn=null,re=null,ft=null,W}function vo(g){return Js.apply(this,arguments)}function Js(){return(Js=(0,St.Z)(function*(g){if(void 0!==W)return W;void 0===g&&(g=new URL(ot(587),ot.b));const d=us();("string"==typeof g||"function"==typeof Request&&g instanceof Request||"function"==typeof URL&&g instanceof URL)&&(g=fetch(g));const{instance:f,module:b}=yield Vu(yield g,d);return ec(f,b)})).apply(this,arguments)}const Co=vo},328:(rn,jt,ot)=>{"use strict";function St(n){return"function"==typeof n}let W=!1;const Ne={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else W&&console.log("RxJS: Back to a better error behavior. Thank you. <3");W=n},get useDeprecatedSynchronousErrorHandling(){return W}};function _(n){setTimeout(()=>{throw n},0)}const kt={closed:!0,next(n){},error(n){if(Ne.useDeprecatedSynchronousErrorHandling)throw n;_(n)},complete(){}},Sn=Array.isArray||(n=>n&&"number"==typeof n.length);function Xe(n){return null!==n&&"object"==typeof n}const ft=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,r)=>`${r+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:r,_unsubscribe:s,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof de)t.remove(this);else if(null!==t)for(let o=0;oe.concat(t instanceof ft?t.errors:t),[])}de.EMPTY=((n=new de).closed=!0,n);const T="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class _e extends de{constructor(e,t,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=kt;break;case 1:if(!e){this.destination=kt;break}if("object"==typeof e){e instanceof _e?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ya(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Ya(this,e,t,r)}}[T](){return this}static create(e,t,r){const s=new _e(e,t,r);return s.syncErrorThrowable=!1,s}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Ya extends _e{constructor(e,t,r,s){super(),this._parentSubscriber=e;let i,o=this;St(t)?i=t:t&&(i=t.next,r=t.error,s=t.complete,t!==kt&&(o=Object.create(t),St(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=r,this._complete=s}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Ne.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:r}=Ne;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):_(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;_(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);Ne.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),Ne.useDeprecatedSynchronousErrorHandling)throw r;_(r)}}__tryOrSetError(e,t,r){if(!Ne.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(s){return Ne.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=s,e.syncErrorThrown=!0,!0):(_(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Tn="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fe(n){return n}let fe=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const r=new n;return r.source=this,r.operator=t,r}subscribe(t,r,s){const{operator:i}=this,o=function(n,e,t){if(n){if(n instanceof _e)return n;if(n[T])return n[T]()}return n||e||t?new _e(n,e,t):new _e(kt)}(t,r,s);if(o.add(i?i.call(o,this.source):this.source||Ne.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),Ne.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(r){Ne.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=r),function(n){for(;n;){const{closed:e,destination:t,isStopped:r}=n;if(e||r)return!1;n=t&&t instanceof _e?t:null}return!0}(t)?t.error(r):console.warn(r)}}forEach(t,r){return new(r=Za(r))((s,i)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(c){i(c),o&&o.unsubscribe()}},i,s)})}_subscribe(t){const{source:r}=this;return r&&r.subscribe(t)}[Tn](){return this}pipe(...t){return 0===t.length?this:function(n){return 0===n.length?Fe:1===n.length?n[0]:function(t){return n.reduce((r,s)=>s(r),t)}}(t)(this)}toPromise(t){return new(t=Za(t))((r,s)=>{let i;this.subscribe(o=>i=o,o=>s(o),()=>r(i))})}}return n.create=e=>new n(e),n})();function Za(n){if(n||(n=Ne.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Vr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Pu extends de{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}class bo extends _e{constructor(e){super(e),this.destination=e}}let pt=(()=>{class n extends fe{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[T](){return new bo(this)}lift(t){const r=new ku(this,this);return r.operator=t,r}next(t){if(this.closed)throw new Vr;if(!this.isStopped){const{observers:r}=this,s=r.length,i=r.slice();for(let o=0;onew ku(e,t),n})();class ku extends pt{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):de.EMPTY}}function oe(n){return n&&"function"==typeof n.schedule}function re(n,e){return function(r){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Lu(n,e))}}class Lu{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new wo(e,this.project,this.thisArg))}}class wo extends _e{constructor(e,t,r){super(e),this.project=t,this.count=0,this.thisArg=r||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}const Xa=n=>e=>{for(let t=0,r=n.length;tn&&"number"==typeof n.length&&"function"!=typeof n;function Js(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Co=n=>{if(n&&"function"==typeof n[Tn])return(n=>e=>{const t=n[Tn]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(vo(n))return Xa(n);if(Js(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,_),e))(n);if(n&&"function"==typeof n[us])return(n=>e=>{const t=n[us]();for(;;){let r;try{r=t.next()}catch(s){return e.error(s),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Xe(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function f(n,e){return new fe(t=>{const r=new de;let s=0;return r.add(e.schedule(function(){s!==n.length?(t.next(n[s++]),t.closed||r.add(this.schedule())):t.complete()})),r})}function ee(n,e){return e?function(n,e){if(null!=n){if(function(n){return n&&"function"==typeof n[Tn]}(n))return function(n,e){return new fe(t=>{const r=new de;return r.add(e.schedule(()=>{const s=n[Tn]();r.add(s.subscribe({next(i){r.add(e.schedule(()=>t.next(i)))},error(i){r.add(e.schedule(()=>t.error(i)))},complete(){r.add(e.schedule(()=>t.complete()))}}))})),r})}(n,e);if(Js(n))return function(n,e){return new fe(t=>{const r=new de;return r.add(e.schedule(()=>n.then(s=>{r.add(e.schedule(()=>{t.next(s),r.add(e.schedule(()=>t.complete()))}))},s=>{r.add(e.schedule(()=>t.error(s)))}))),r})}(n,e);if(vo(n))return f(n,e);if(function(n){return n&&"function"==typeof n[us]}(n)||"string"==typeof n)return function(n,e){if(!n)throw new Error("Iterable cannot be null");return new fe(t=>{const r=new de;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=n[us](),r.add(e.schedule(function(){if(t.closed)return;let i,o;try{const a=s.next();i=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(i),this.schedule())}))})),r})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof fe?n:new fe(Co(n))}class on extends _e{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class tc extends _e{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function nc(n,e){if(e.closed)return;if(n instanceof fe)return n.subscribe(e);let t;try{t=Co(n)(e)}catch(r){e.error(r)}return t}function at(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(at((s,i)=>ee(n(s,i)).pipe(re((o,a)=>e(s,o,i,a))),t)):("number"==typeof e&&(t=e),r=>r.lift(new aS(n,t)))}class aS{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new cS(e,this.project,this.concurrent))}}class cS extends tc{constructor(e,t,r=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Do(n=Number.POSITIVE_INFINITY){return at(Fe,n)}function ju(n,e){return e?f(n,e):new fe(Xa(n))}function Uu(){return function(e){return e.lift(new uS(e))}}class uS{constructor(e){this.connectable=e}call(e,t){const{connectable:r}=this;r._refCount++;const s=new dS(e,r),i=t.subscribe(s);return s.closed||(s.connection=r.connect()),i}}class dS extends _e{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:r}=this,s=e._connection;this.connection=null,s&&(!r||s===r)&&s.unsubscribe()}}class Fg extends fe{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new hS(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Uu()(this)}}const fS=(()=>{const n=Fg.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class hS extends bo{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function _S(){return new pt}function Og(){return n=>Uu()(function(n,e){return function(r){let s;s="function"==typeof n?n:function(){return n};const i=Object.create(r,fS);return i.source=r,i.subjectFactory=s,i}}(_S)(n))}function ye(n){for(let e in n)if(n[e]===ye)return e;throw Error("Could not find renamed property on target object.")}function Hu(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function se(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(se).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function $u(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const yS=ye({__forward_ref__:ye});function Wu(n){return n.__forward_ref__=Wu,n.toString=function(){return se(this())},n}function L(n){return function(n){return"function"==typeof n&&n.hasOwnProperty(yS)&&n.__forward_ref__===Wu}(n)?n():n}class Br extends Error{constructor(e,t){super(function(n,e){return`${n?`NG0${n}: `:""}${e}`}(e,t)),this.code=e}}function J(n){return"string"==typeof n?n:null==n?"":String(n)}function Tt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():J(n)}function rc(n,e){const t=e?` in ${e}`:"";throw new Br("201",`No provider for ${Tt(n)} found${t}`)}function $t(n,e){null==n&&function(n,e,t,r){throw new Error(`ASSERTION ERROR: ${n}`+(null==r?"":` [Expected=> ${t} ${r} ${e} <=Actual]`))}(e,n,null,"!=")}function k(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Ie(n){return{providers:n.providers||[],imports:n.imports||[]}}function hr(n){return kg(n,sc)||kg(n,Vg)}function kg(n,e){return n.hasOwnProperty(e)?n[e]:null}function Lg(n){return n&&(n.hasOwnProperty(qu)||n.hasOwnProperty(SS))?n[qu]:null}const sc=ye({\u0275prov:ye}),qu=ye({\u0275inj:ye}),Vg=ye({ngInjectableDef:ye}),SS=ye({ngInjectorDef:ye});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Gu;function jr(n){const e=Gu;return Gu=n,e}function Bg(n,e,t){const r=hr(n);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&B.Optional?null:void 0!==e?e:void rc(se(n),"Injector")}function Ur(n){return{toString:n}.toString()}var an=(()=>((an=an||{})[an.OnPush=0]="OnPush",an[an.Default=1]="Default",an))(),We=(()=>((We=We||{})[We.Emulated=0]="Emulated",We[We.None=2]="None",We[We.ShadowDom=3]="ShadowDom",We))();const IS="undefined"!=typeof globalThis&&globalThis,MS="undefined"!=typeof window&&window,AS="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,we=IS||"undefined"!=typeof global&&global||MS||AS,Zs={},De=[],ic=ye({\u0275cmp:ye}),Ku=ye({\u0275dir:ye}),Qu=ye({\u0275pipe:ye}),jg=ye({\u0275mod:ye}),RS=ye({\u0275loc:ye}),pr=ye({\u0275fac:ye}),So=ye({__NG_ELEMENT_ID__:ye});let xS=0;function cn(n){return Ur(()=>{const t={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===an.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||De,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||We.Emulated,id:"c",styles:n.styles||De,_:null,setInput:null,schemas:n.schemas||null,tView:null},s=n.directives,i=n.features,o=n.pipes;return r.id+=xS++,r.inputs=Wg(n.inputs,t),r.outputs=Wg(n.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ug):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Hg):null,r})}function Ug(n){return gt(n)||function(n){return n[Ku]||null}(n)}function Hg(n){return function(n){return n[Qu]||null}(n)}const $g={};function Oe(n){return Ur(()=>{const e={type:n.type,bootstrap:n.bootstrap||De,declarations:n.declarations||De,imports:n.imports||De,exports:n.exports||De,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&($g[n.id]=n.type),e})}function Wg(n,e){if(null==n)return Zs;const t={};for(const r in n)if(n.hasOwnProperty(r)){let s=n[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),t[s]=r,e&&(e[s]=i)}return t}const Ae=cn;function gt(n){return n[ic]||null}function ln(n,e){const t=n[jg]||null;if(!t&&!0===e)throw new Error(`Type ${se(n)} does not have '\u0275mod' property.`);return t}function Gn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Mn(n){return Array.isArray(n)&&!0===n[1]}function Zu(n){return 0!=(8&n.flags)}function lc(n){return 2==(2&n.flags)}function uc(n){return 1==(1&n.flags)}function An(n){return null!==n.template}function VS(n){return 0!=(512&n[2])}function gs(n,e){return n.hasOwnProperty(pr)?n[pr]:null}class qg{constructor(e,t,r){this.previousValue=e,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Gg(n){return n.type.prototype.ngOnChanges&&(n.setInput=HS),US}function US(){const n=Qg(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Zs)n.previous=e;else for(let r in e)t[r]=e[r];n.current=null,this.ngOnChanges(e)}}function HS(n,e,t,r){const s=Qg(n)||function(n,e){return n[Kg]=e}(n,{previous:Zs,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[t],c=o[a];i[a]=new qg(c&&c.currentValue,e,o===Zs),n[r]=e}const Kg="__ngSimpleChanges__";function Qg(n){return n[Kg]||null}const Yg="http://www.w3.org/2000/svg";let td;function je(n){return!!n.listen}const Zg={createRenderer:(n,e)=>void 0!==td?td:"undefined"!=typeof document?document:void 0};function ze(n){for(;Array.isArray(n);)n=n[0];return n}function zt(n,e){return ze(e[n.index])}function rd(n,e){return n.data[e]}function qt(n,e){const t=e[n];return Gn(t)?t:t[0]}function Xg(n){return 4==(4&n[2])}function sd(n){return 128==(128&n[2])}function Wr(n,e){return null==e?null:n[e]}function em(n){n[18]=0}function id(n,e){n[5]+=e;let t=n,r=n[3];for(;null!==r&&(1===e&&1===t[5]||-1===e&&0===t[5]);)r[5]+=e,t=r,r=r[3]}const q={lFrame:cm(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function tm(){return q.bindingsEnabled}function I(){return q.lFrame.lView}function he(){return q.lFrame.tView}function od(n){return q.lFrame.contextLView=n,n[8]}function Qe(){let n=nm();for(;null!==n&&64===n.type;)n=n.parent;return n}function nm(){return q.lFrame.currentTNode}function Kn(n,e){const t=q.lFrame;t.currentTNode=n,t.isParent=e}function ad(){return q.lFrame.isParent}function cd(){q.lFrame.isParent=!1}function fc(){return q.isInCheckNoChangesMode}function hc(n){q.isInCheckNoChangesMode=n}function si(){return q.lFrame.bindingIndex++}function rT(n,e){const t=q.lFrame;t.bindingIndex=t.bindingRootIndex=n,ld(e)}function ld(n){q.lFrame.currentDirectiveIndex=n}function im(){return q.lFrame.currentQueryIndex}function dd(n){q.lFrame.currentQueryIndex=n}function iT(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function om(n,e,t){if(t&B.SkipSelf){let s=e,i=n;for(;!(s=s.parent,null!==s||t&B.Host||(s=iT(i),null===s||(i=i[15],10&s.type))););if(null===s)return!1;e=s,n=i}const r=q.lFrame=am();return r.currentTNode=e,r.lView=n,!0}function pc(n){const e=am(),t=n[1];q.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function am(){const n=q.lFrame,e=null===n?null:n.child;return null===e?cm(n):e}function cm(n){const 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:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function lm(){const n=q.lFrame;return q.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const um=lm;function gc(){const n=lm();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function At(){return q.lFrame.selectedIndex}function zr(n){q.lFrame.selectedIndex=n}function ke(){const n=q.lFrame;return rd(n.tView,n.selectedIndex)}function ms(){q.lFrame.currentNamespace=Yg}function mc(n,e){for(let t=e.directiveStart,r=e.directiveEnd;t=r)break}else e[c]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===e){n[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class Ro{constructor(e,t,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function bc(n,e,t){const r=je(n);let s=0;for(;se){o=i-1;break}}}for(;i>16}(n),r=e;for(;t>0;)r=r[15],t--;return r}let gd=!0;function Ec(n){const e=gd;return gd=n,e}let bT=0;function No(n,e){const t=_d(n,e);if(-1!==t)return t;const r=e[1];r.firstCreatePass&&(n.injectorIndex=e.length,md(r.data,n),md(e,null),md(r.blueprint,null));const s=vc(n,e),i=n.injectorIndex;if(pm(s)){const o=ii(s),a=oi(s,e),c=a[1].data;for(let l=0;l<8;l++)e[i+l]=a[o+l]|c[o+l]}return e[i+8]=s,i}function md(n,e){n.push(0,0,0,0,0,0,0,0,e)}function _d(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function vc(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,r=null,s=e;for(;null!==s;){const i=s[1],o=i.type;if(r=2===o?i.declTNode:1===o?s[6]:null,null===r)return-1;if(t++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Cc(n,e,t){!function(n,e,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(So)&&(r=t[So]),null==r&&(r=t[So]=bT++);const s=255&r;e.data[n+(s>>5)]|=1<=0?255&e:vT:e}(t);if("function"==typeof i){if(!om(e,n,r))return r&B.Host?_m(s,t,r):ym(e,t,r,s);try{const o=i(r);if(null!=o||r&B.Optional)return o;rc(t)}finally{um()}}else if("number"==typeof i){let o=null,a=_d(n,e),c=-1,l=r&B.Host?e[16][6]:null;for((-1===a||r&B.SkipSelf)&&(c=-1===a?vc(n,e):e[a+8],-1!==c&&vm(r,!1)?(o=e[1],a=ii(c),e=oi(c,e)):a=-1);-1!==a;){const u=e[1];if(Em(i,a,u.data)){const h=CT(a,e,t,o,r,l);if(h!==wm)return h}c=e[a+8],-1!==c&&vm(r,e[1].data[a+8]===l)&&Em(i,a,e)?(o=u,a=ii(c),e=oi(c,e)):a=-1}}}return ym(e,t,r,s)}const wm={};function vT(){return new ai(Qe(),I())}function CT(n,e,t,r,s,i){const o=e[1],a=o.data[n+8],u=Dc(a,o,t,null==r?lc(a)&&gd:r!=o&&0!=(3&a.type),s&B.Host&&i===a);return null!==u?Fo(e,o,u,a):wm}function Dc(n,e,t,r,s){const i=n.providerIndexes,o=e.data,a=1048575&i,c=n.directiveStart,u=i>>20,p=s?a+u:n.directiveEnd;for(let m=r?a:a+u;m=c&&y.type===t)return m}if(s){const m=o[c];if(m&&An(m)&&m.type===t)return c}return null}function Fo(n,e,t,r){let s=n[t];const i=e.data;if(function(n){return n instanceof Ro}(s)){const o=s;o.resolving&&function(n,e){throw new Br("200",`Circular dependency in DI detected for ${n}`)}(Tt(i[t]));const a=Ec(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?jr(o.injectImpl):null;om(n,r,B.Default);try{s=n[t]=o.factory(void 0,i,n,r),e.firstCreatePass&&t>=r.directiveStart&&function(n,e,t){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const o=Gg(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}s&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,s),i&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,i),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,i))}(t,i[t],e)}finally{null!==c&&jr(c),Ec(a),o.resolving=!1,um()}}return s}function Em(n,e,t){return!!(t[e+(n>>5)]&1<{const r=function(n){return function(...t){if(n){const r=n(...t);for(const s in r)this[s]=r[s]}}}(e);function s(...i){if(this instanceof s)return r.apply(this,i),this;const o=new s(...i);return a.annotation=o,a;function a(c,l,u){const h=c.hasOwnProperty(ui)?c[ui]:Object.defineProperty(c,ui,{value:[]})[ui];for(;h.length<=u;)h.push(null);return(h[u]=h[u]||[]).push(o),c}}return t&&(s.prototype=Object.create(t.prototype)),s.prototype.ngMetadataName=n,s.annotationCls=s,s})}class U{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=k({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}const IT=new U("AnalyzeForEntryComponents"),Sc=Function;function fn(n,e){void 0===e&&(e=n);for(let t=0;tArray.isArray(t)?Yn(t,e):e(t))}function Ic(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function ys(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Gr(n,e){const t=[];for(let r=0;r=0?n[1|r]=t:(r=~r,function(n,e,t,r){let s=n.length;if(s==e)n.push(t,r);else if(1===s)n.push(r,n[0]),n[0]=t;else{for(s--,n.push(n[s-1],n[s]);s>e;)n[s]=n[s-2],s--;n[e]=t,n[e+1]=r}}(n,r,e,t)),r}function wd(n,e){const t=fi(n,e);if(t>=0)return n[1|t]}function fi(n,e){return function(n,e,t){let r=0,s=n.length>>t;for(;s!==r;){const i=r+(s-r>>1),o=n[i<e?s=i:r=i+1}return~(s< ");else if("object"==typeof e){let i=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):se(a)))}s=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${s}]: ${n.replace(LT,"\n ")}`}("\n"+n.message,s,t,r),n.ngTokenPath=s,n[hi]=null,n}const gi=Bo(_s("Inject",n=>({token:n})),-1),ct=Bo(_s("Optional"),8),mr=Bo(_s("SkipSelf"),4);var Kt=(()=>((Kt=Kt||{})[Kt.Important=1]="Important",Kt[Kt.DashCase=2]="DashCase",Kt))();const Pm="__ngContext__";function _t(n,e){n[Pm]=e}function Md(n){const e=function(n){return n[Pm]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function Rd(n,e){return undefined(n,e)}function Ho(n){const e=n[3];return Mn(e)?e[3]:e}function xd(n){return Hm(n[13])}function Nd(n){return Hm(n[4])}function Hm(n){for(;null!==n&&!Mn(n);)n=n[4];return n}function _i(n,e,t,r,s){if(null!=r){let i,o=!1;Mn(r)?i=r:Gn(r)&&(o=!0,r=r[0]);const a=ze(r);0===n&&null!==t?null==s?Km(e,t,a):ws(e,t,a,s||null,!0):1===n&&null!==t?ws(e,t,a,s||null,!0):2===n?function(n,e,t){const r=Nc(n,e);r&&function(n,e,t,r){je(n)?n.removeChild(e,t,r):e.removeChild(t)}(n,r,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=i&&function(n,e,t,r,s){const i=t[7];i!==ze(t)&&_i(e,n,r,i,s);for(let a=10;a0&&(n[t-1][4]=r[4]);const i=ys(n,10+e);!function(n,e){$o(n,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=i[19];null!==o&&o.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function zm(n,e){if(!(256&e[2])){const t=e[11];je(t)&&t.destroyNode&&$o(n,e,t,3,null,null),function(n){let e=n[13];if(!e)return kd(n[1],n);for(;e;){let t=null;if(Gn(e))t=e[13];else{const r=e[10];r&&(t=r)}if(!t){for(;e&&!e[4]&&e!==n;)Gn(e)&&kd(e[1],e),e=e[3];null===e&&(e=n),Gn(e)&&kd(e[1],e),t=e&&e[4]}e=t}}(e)}}function kd(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let r=0;r=0?r[s=l]():r[s=-l].unsubscribe(),i+=2}else{const o=r[s=t[i+1]];t[i].call(o)}if(null!==r){for(let i=s+1;in,createScript:n=>n,createScriptURL:n=>n})}catch(n){}return Pc}())||void 0===e?void 0:e.createHTML(n))||n}class vs{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class CI extends vs{getTypeName(){return"HTML"}}class DI extends vs{getTypeName(){return"Style"}}class SI extends vs{getTypeName(){return"Script"}}class TI extends vs{getTypeName(){return"URL"}}class II extends vs{getTypeName(){return"ResourceURL"}}function Qt(n){return n instanceof vs?n.changingThisBreaksApplicationSecurity:n}function Jn(n,e){const t=o_(n);if(null!=t&&t!==e){if("ResourceURL"===t&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${t} (see https://g.co/ng/security#xss)`)}return t===e}function o_(n){return n instanceof vs&&n.getTypeName()||null}class FI{constructor(e){this.inertDocumentHelper=e}getInertBodyElement(e){e=""+e;try{const t=(new window.DOMParser).parseFromString(Es(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(t){return null}}}class OI{constructor(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const r=this.inertDocument.createElement("body");t.appendChild(r)}}getInertBodyElement(e){const t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=Es(e),t;const r=this.inertDocument.createElement("body");return r.innerHTML=Es(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(e){const t=e.attributes;for(let s=t.length-1;0Wo(e.trim())).join(", ")}function Zn(n){const e={};for(const t of n.split(","))e[t]=!0;return e}function zo(...n){const e={};for(const t of n)for(const r in t)t.hasOwnProperty(r)&&(e[r]=!0);return e}const l_=Zn("area,br,col,hr,img,wbr"),u_=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),d_=Zn("rp,rt"),Wd=zo(l_,zo(u_,Zn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),zo(d_,Zn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),zo(d_,u_)),zd=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qd=Zn("srcset"),f_=zo(zd,qd,Zn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),VI=Zn("script,style,template");class BI{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(e){let t=e.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let s=this.checkClobberedElement(t,t.nextSibling);if(s){t=s;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(e){const t=e.nodeName.toLowerCase();if(!Wd.hasOwnProperty(t))return this.sanitizedSomething=!0,!VI.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=e.attributes;for(let s=0;s"),!0}endElement(e){const t=e.nodeName.toLowerCase();Wd.hasOwnProperty(t)&&!l_.hasOwnProperty(t)&&(this.buf.push(""))}chars(e){this.buf.push(h_(e))}checkClobberedElement(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`);return t}}const jI=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,UI=/([^\#-~ |!])/g;function h_(n){return n.replace(/&/g,"&").replace(jI,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(UI,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}let Lc;function p_(n,e){let t=null;try{Lc=Lc||function(n){const e=new OI(n);return function(){try{return!!(new window.DOMParser).parseFromString(Es(""),"text/html")}catch(n){return!1}}()?new FI(e):e}(n);let r=e?String(e):"";t=Lc.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=t.innerHTML,t=Lc.getInertBodyElement(r)}while(r!==i);return Es((new BI).sanitizeChildren(Gd(t)||t))}finally{if(t){const r=Gd(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Gd(n){return"content"in n&&function(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var me=(()=>((me=me||{})[me.NONE=0]="NONE",me[me.HTML=1]="HTML",me[me.STYLE=2]="STYLE",me[me.SCRIPT=3]="SCRIPT",me[me.URL=4]="URL",me[me.RESOURCE_URL=5]="RESOURCE_URL",me))();function Vc(n){return n.ngOriginalError}function XI(n,...e){n.error(...e)}class Rn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),r=this._findContext(e),s=function(n){return n&&n.ngErrorLogger||XI}(e);s(this._console,"ERROR",e),t&&s(this._console,"ORIGINAL ERROR",t),r&&s(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?function(n){return n.ngDebugContext}(e)||this._findContext(Vc(e)):null}_findOriginalError(e){let t=e&&Vc(e);for(;t&&Vc(t);)t=Vc(t);return t||null}}const E_=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(we))();function Xn(n){return n instanceof Function?n():n}function C_(n,e,t){let r=n.length;for(;;){const s=n.indexOf(e,t);if(-1===s)return s;if(0===s||n.charCodeAt(s-1)<=32){const i=e.length;if(s+i===r||n.charCodeAt(s+i)<=32)return s}t=s+1}}const D_="ng-template";function aM(n,e,t){let r=0;for(;ri?"":s[h+1].toLowerCase();const m=8&r?p:null;if(m&&-1!==C_(m,l,0)||2&r&&l!==p){if(xn(r))return!1;o=!0}}}}else{if(!o&&!xn(r)&&!xn(c))return!1;if(o&&xn(c))continue;o=!1,r=c|1&r}}return xn(r)||o}function xn(n){return 0==(1&n)}function uM(n,e,t,r){if(null===e)return-1;let s=0;if(r||!t){let i=!1;for(;s-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""!==s&&!xn(o)&&(e+=I_(i,s),s=""),r=o,i=i||!xn(r);t++}return""!==s&&(e+=I_(i,s)),e}const K={};function Yt(n){M_(he(),I(),At()+n,fc())}function M_(n,e,t,r){if(!r)if(3==(3&e[2])){const i=n.preOrderCheckHooks;null!==i&&_c(e,i,t)}else{const i=n.preOrderHooks;null!==i&&yc(e,i,0,t)}zr(t)}function Bc(n,e){return n<<17|e<<2}function Nn(n){return n>>17&32767}function Yd(n){return 2|n}function _r(n){return(131068&n)>>2}function Jd(n,e){return-131069&n|e<<2}function Zd(n){return 1|n}function V_(n,e){const t=n.contentQueries;if(null!==t)for(let r=0;r20&&M_(n,e,20,fc()),t(r,s)}finally{zr(i)}}function af(n,e,t){!tm()||(function(n,e,t,r){const s=t.directiveStart,i=t.directiveEnd;n.firstCreatePass||No(t,e),_t(r,e);const o=t.initialInputs;for(let a=s;a0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=c&&a.push(c),a.push(r,s,o)}}function K_(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function Q_(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function UM(n,e,t){if(t){if(e.exportAs)for(let r=0;r0&&df(t)}}function df(n){for(let r=xd(n);null!==r;r=Nd(r))for(let s=10;s0&&df(i)}const t=n[1].components;if(null!==t)for(let r=0;r0&&df(s)}}function KM(n,e){const t=qt(e,n),r=t[1];(function(n,e){for(let t=e.length;tPromise.resolve(null))();function ey(n){return n[7]||(n[7]=[])}function ty(n){return n.cleanup||(n.cleanup=[])}function ry(n,e){const t=n[9],r=t?t.get(Rn,null):null;r&&r.handleError(e)}function sy(n,e,t,r,s){for(let i=0;ithis.processProvider(a,e,t)),Yn([e],a=>this.processInjectorType(a,[],i)),this.records.set(vi,Ci(void 0,this));const o=this.records.get(Qo);this.scope=null!=o?o.value:null,this.source=s||("object"==typeof e?null:se(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Lo,r=B.Default){this.assertNotDestroyed();const s=pi(this),i=jr(void 0);try{if(!(r&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const c=function(n){return"function"==typeof n||"object"==typeof n&&n instanceof U}(e)&&hr(e);a=c&&this.injectableDefInScope(c)?Ci(_f(e),Yo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&B.Self?oy():this.parent).get(e,t=r&B.Optional&&t===Lo?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[hi]=o[hi]||[]).unshift(se(e)),s)throw o;return Am(o,e,"R3InjectorError",this.source)}throw o}finally{jr(i),pi(s)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,s)=>e.push(se(s))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,r){if(!(e=L(e)))return!1;let s=Lg(e);const i=null==s&&e.ngModule||void 0,o=void 0===i?e:i,a=-1!==r.indexOf(o);if(void 0!==i&&(s=Lg(i)),null==s)return!1;if(null!=s.imports&&!a){let u;r.push(o);try{Yn(s.imports,h=>{this.processInjectorType(h,t,r)&&(void 0===u&&(u=[]),u.push(h))})}finally{}if(void 0!==u)for(let h=0;hthis.processProvider(y,p,m||De))}}this.injectorDefTypes.add(o);const c=gs(o)||(()=>new o);this.records.set(o,Ci(c,Yo));const l=s.providers;if(null!=l&&!a){const u=e;Yn(l,h=>this.processProvider(h,u,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,r){let s=Di(e=L(e))?e:L(e&&e.provide);const i=function(n,e,t){return ly(n)?Ci(void 0,n.useValue):Ci(function(n,e,t){let r;if(Di(n)){const s=L(n);return gs(s)||_f(s)}if(ly(n))r=()=>L(n.useValue);else if(function(n){return!(!n||!n.useFactory)}(n))r=()=>n.useFactory(...bs(n.deps||[]));else if(function(n){return!(!n||!n.useExisting)}(n))r=()=>S(L(n.useExisting));else{const s=L(n&&(n.useClass||n.provide));if(!function(n){return!!n.deps}(n))return gs(s)||_f(s);r=()=>new s(...bs(n.deps))}return r}(n),Yo)}(e);if(Di(e)||!0!==e.multi)this.records.get(s);else{let o=this.records.get(s);o||(o=Ci(void 0,Yo,!0),o.factory=()=>bs(o.multi),this.records.set(s,o)),s=e,o.multi.push(e)}this.records.set(s,i)}hydrate(e,t){return t.value===Yo&&(t.value=nA,t.value=t.factory()),"object"==typeof t.value&&t.value&&function(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=L(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function _f(n){const e=hr(n),t=null!==e?e.factory:gs(n);if(null!==t)return t;if(n instanceof U)throw new Error(`Token ${se(n)} is missing a \u0275prov definition.`);if(n instanceof Function)return function(n){const e=n.length;if(e>0){const r=Gr(e,"?");throw new Error(`Can't resolve all parameters for ${se(n)}: (${r.join(", ")}).`)}const t=function(n){const e=n&&(n[sc]||n[Vg]);if(e){const t=function(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new Error("unreachable")}function Ci(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function ly(n){return null!==n&&"object"==typeof n&&Dd in n}function Di(n){return"function"==typeof n}const uy=function(n,e,t){return function(n,e=null,t=null,r){const s=ay(n,e,t,r);return s._resolveInjectorDefTypes(),s}({name:t},e,n,t)};let Ce=(()=>{class n{static create(t,r){return Array.isArray(t)?uy(t,r,""):uy(t.providers,t.parent,t.name||"")}}return n.THROW_IF_NOT_FOUND=Lo,n.NULL=new iy,n.\u0275prov=k({token:n,providedIn:"any",factory:()=>S(vi)}),n.__NG_ELEMENT_ID__=-1,n})();function SA(n,e){mc(Md(n)[1],Qe())}function tr(n){let e=function(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const r=[n];for(;e;){let s;if(An(n))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(t){r.push(s);const o=n;o.inputs=Cf(n.inputs),o.declaredInputs=Cf(n.declaredInputs),o.outputs=Cf(n.outputs);const a=s.hostBindings;a&&AA(n,a);const c=s.viewQuery,l=s.contentQueries;if(c&&IA(n,c),l&&MA(n,l),Hu(n.inputs,s.inputs),Hu(n.declaredInputs,s.declaredInputs),Hu(n.outputs,s.outputs),An(s)&&s.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(s.data.animation)}}const i=s.features;if(i)for(let o=0;o=0;r--){const s=n[r];s.hostVars=e+=s.hostVars,s.hostAttrs=wc(s.hostAttrs,t=wc(t,s.hostAttrs))}}(r)}function Cf(n){return n===Zs?{}:n===De?[]:n}function IA(n,e){const t=n.viewQuery;n.viewQuery=t?(r,s)=>{e(r,s),t(r,s)}:e}function MA(n,e){const t=n.contentQueries;n.contentQueries=t?(r,s,i)=>{e(r,s,i),t(r,s,i)}:e}function AA(n,e){const t=n.hostBindings;n.hostBindings=t?(r,s)=>{e(r,s),t(r,s)}:e}let zc=null;function Si(){if(!zc){const n=we.Symbol;if(n&&n.iterator)zc=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;ta(ze(x[r.index])):r.index;if(je(t)){let x=null;if(!a&&c&&(x=function(n,e,t,r){const s=n.cleanup;if(null!=s)for(let i=0;ic?a[c]:null}"string"==typeof o&&(i+=2)}return null}(n,e,s,r.index)),null!==x)(x.__ngLastListenerFn__||x).__ngNextListenerFn__=i,x.__ngLastListenerFn__=i,m=!1;else{i=Nf(r,e,h,i,!1);const z=t.listen(D,s,i);p.push(i,z),u&&u.push(s,R,C,C+1)}}else i=Nf(r,e,h,i,!0),D.addEventListener(s,i,o),p.push(i),u&&u.push(s,R,C,o)}else i=Nf(r,e,h,i,!1);const y=r.outputs;let E;if(m&&null!==y&&(E=y[s])){const w=E.length;if(w)for(let D=0;D0;)e=e[15],n--;return e}(n,q.lFrame.contextLView))[8]}(n)}function dR(n,e){let t=null;const r=function(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let s=0;s=0}function rr(n,e,t){return Pn(n,e,t,!1),rr}function Zt(n,e){return Pn(n,e,null,!0),Zt}function Pn(n,e,t,r){const s=I(),i=he(),o=function(n){const e=q.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);i.firstUpdatePass&&function(n,e,t,r){const s=n.data;if(null===s[t+1]){const i=s[At()],o=function(n,e){return e>=n.expandoStartIndex}(n,t);(function(n,e){return 0!=(n.flags&(e?16:32))})(i,r)&&null===e&&!o&&(e=!1),e=function(n,e,t,r){const s=function(n){const e=q.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(t=ea(t=Of(null,n,e,t,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==s)if(t=Of(s,n,e,t,r),null===i){let c=function(n,e,t){const r=t?e.classBindings:e.styleBindings;if(0!==_r(r))return n[Nn(r)]}(n,e,r);void 0!==c&&Array.isArray(c)&&(c=Of(null,n,e,c[1],r),c=ea(c,e.attrs,r),function(n,e,t,r){n[Nn(t?e.classBindings:e.styleBindings)]=r}(n,e,r,c))}else i=function(n,e,t){let r;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(l=!0)}else u=t;if(s)if(0!==c){const p=Nn(n[a+1]);n[r+1]=Bc(p,a),0!==p&&(n[p+1]=Jd(n[p+1],r)),n[a+1]=function(n,e){return 131071&n|e<<17}(n[a+1],r)}else n[r+1]=Bc(a,0),0!==a&&(n[a+1]=Jd(n[a+1],r)),a=r;else n[r+1]=Bc(c,0),0===a?a=r:n[c+1]=Jd(n[c+1],r),c=r;l&&(n[r+1]=Yd(n[r+1])),lb(n,u,r,!0),lb(n,u,r,!1),function(n,e,t,r,s){const i=s?n.residualClasses:n.residualStyles;null!=i&&"string"==typeof e&&fi(i,e)>=0&&(t[r+1]=Zd(t[r+1]))}(e,u,n,r,i),o=Bc(a,c),i?e.classBindings=o:e.styleBindings=o}(s,i,e,t,o,r)}}(i,n,o,r),e!==K&&yt(s,o,e)&&function(n,e,t,r,s,i,o,a){if(!(3&e.type))return;const c=n.data,l=c[a+1];Qc(function(n){return 1==(1&n)}(l)?wb(c,e,t,s,_r(l),o):void 0)||(Qc(i)||function(n){return 2==(2&n)}(l)&&(i=wb(c,null,t,s,a,o)),function(n,e,t,r,s){const i=je(n);if(e)s?i?n.addClass(t,r):t.classList.add(r):i?n.removeClass(t,r):t.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:Kt.DashCase;if(null==s)i?n.removeStyle(t,r,o):t.style.removeProperty(r);else{const a="string"==typeof s&&s.endsWith("!important");a&&(s=s.slice(0,-10),o|=Kt.Important),i?n.setStyle(t,r,s,o):t.style.setProperty(r,s,a?"important":"")}}}(r,o,function(n,e){return ze(e[n])}(At(),t),s,i))}(i,i.data[At()],s,s[11],n,s[o+1]=function(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=se(Qt(n)))),n}(e,t),r,o)}function Of(n,e,t,r,s){let i=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const c=n[s],l=Array.isArray(c),u=l?c[1]:c,h=null===u;let p=t[s+1];p===K&&(p=h?De:void 0);let m=h?wd(p,r):u===r?p:void 0;if(l&&!Qc(m)&&(m=wd(c,r)),Qc(m)&&(a=m,o))return a;const y=n[s+1];s=o?Nn(y):_r(y)}if(null!==e){let c=i?e.residualClasses:e.residualStyles;null!=c&&(a=wd(c,r))}return a}function Qc(n){return void 0!==n}function Ss(n,e=""){const t=I(),r=he(),s=n+20,i=r.firstCreatePass?bi(r,s,1,e,null):r.data[s],o=t[s]=function(n,e){return je(n)?n.createText(e):n.createTextNode(e)}(t[11],e);Fc(r,t,o,i),Kn(i,!1)}const Ts=void 0;var QR=["en",[["a","p"],["AM","PM"],Ts],[["AM","PM"],Ts,Ts],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ts,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ts,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ts,"{1} 'at' {0}",Ts],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(n){const e=Math.floor(Math.abs(n)),t=n.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===t?1:5}];let Vi={};function Hb(n){return n in Vi||(Vi[n]=we.ng&&we.ng.common&&we.ng.common.locales&&we.ng.common.locales[n]),Vi[n]}var O=(()=>((O=O||{})[O.LocaleId=0]="LocaleId",O[O.DayPeriodsFormat=1]="DayPeriodsFormat",O[O.DayPeriodsStandalone=2]="DayPeriodsStandalone",O[O.DaysFormat=3]="DaysFormat",O[O.DaysStandalone=4]="DaysStandalone",O[O.MonthsFormat=5]="MonthsFormat",O[O.MonthsStandalone=6]="MonthsStandalone",O[O.Eras=7]="Eras",O[O.FirstDayOfWeek=8]="FirstDayOfWeek",O[O.WeekendRange=9]="WeekendRange",O[O.DateFormat=10]="DateFormat",O[O.TimeFormat=11]="TimeFormat",O[O.DateTimeFormat=12]="DateTimeFormat",O[O.NumberSymbols=13]="NumberSymbols",O[O.NumberFormats=14]="NumberFormats",O[O.CurrencyCode=15]="CurrencyCode",O[O.CurrencySymbol=16]="CurrencySymbol",O[O.CurrencyName=17]="CurrencyName",O[O.Currencies=18]="Currencies",O[O.Directionality=19]="Directionality",O[O.PluralCase=20]="PluralCase",O[O.ExtraData=21]="ExtraData",O))();const Jc="en-US";let $b=Jc;function Pf(n){$t(n,"Expected localeId to be defined"),"string"==typeof n&&($b=n.toLowerCase().replace(/_/g,"-"))}class pw{}const mw="ngComponent";class Q1{resolveComponentFactory(e){throw function(n){const e=Error(`No component factory found for ${se(n)}. Did you add it to @NgModule.entryComponents?`);return e[mw]=n,e}(e)}}let Is=(()=>{class n{}return n.NULL=new Q1,n})();function nl(...n){}function ji(n,e){return new Me(zt(n,e))}const Z1=function(){return ji(Qe(),I())};let Me=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=Z1,n})();function _w(n){return n instanceof Me?n.nativeElement:n}class Ms{}let Wf=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>null}),n})();class As{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const yw=new As("12.2.17");class bw{constructor(){}supports(e){return Zo(e)}create(e){return new sx(e)}}const rx=(n,e)=>e;class sx{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||rx}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,r=this._removalsHead,s=0,i=null;for(;t||r;){const o=!r||t&&t.currentIndex{o=this._trackByFn(s,a),null!==t&&Object.is(t.trackById,o)?(r&&(t=this._verifyReinsertion(t,a,o,s)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,s),r=!0),t=t._next,s++}),this.length=s;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,r,s){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,s)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,s)):e=this._addAfter(new ix(t,r),i,s),e}_verifyReinsertion(e,t,r,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,s):e.currentIndex!=s&&(e.currentIndex=s,this._addToMoves(e,s)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=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(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const s=e._prevRemoved,i=e._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(e,t,r),this._addToMoves(e,r),e}_moveAfter(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e}_addAfter(e,t,r){return this._insertAfter(e,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,r){const s=null===t?this._itHead:t._next;return e._next=s,e._prev=t,null===s?this._itTail=e:s._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new ww),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ww),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class ix{constructor(e,t){this.item=e,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 ox{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(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,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class ww{constructor(){this.map=new Map}put(e){const t=e.trackById;let r=this.map.get(t);r||(r=new ox,this.map.set(t,r)),r.add(e)}get(e,t){const s=this.map.get(e);return s?s.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ew(n,e,t){const r=n.previousIndex;if(null===r)return r;let s=0;return t&&r{if(t&&t.key===s)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(s,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const r=e._prev;return t._next=e,t._prev=r,e._prev=t,r&&(r._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const s=this._records.get(e);this._maybeAddToChanges(s,t);const i=s._prev,o=s._next;return i&&(i._next=o),o&&(o._prev=i),s._next=null,s._prev=null,s}const r=new cx(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(r=>t(e[r],r))}}class cx{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Cw(){return new oa([new bw])}let oa=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(null!=r){const s=r.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||Cw()),deps:[[n,new mr,new ct]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${t}' of type '${function(n){return n.name||typeof n}(t)}'`)}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Cw}),n})();function Dw(){return new Ui([new vw])}let Ui=(()=>{class n{constructor(t){this.factories=t}static create(t,r){if(r){const s=r.factories.slice();t=t.concat(s)}return new n(t)}static extend(t){return{provide:n,useFactory:r=>n.create(t,r||Dw()),deps:[[n,new mr,new ct]]}}find(t){const r=this.factories.find(s=>s.supports(t));if(r)return r;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return n.\u0275prov=k({token:n,providedIn:"root",factory:Dw}),n})();function sl(n,e,t,r,s=!1){for(;null!==t;){const i=e[t.index];if(null!==i&&r.push(ze(i)),Mn(i))for(let a=10;a-1&&(Pd(e,r),ys(t,r))}this._attachedToViewContainer=!1}zm(this._lView[1],this._lView)}onDestroy(e){W_(this._lView[1],this._lView,null,e)}markForCheck(){ff(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){pf(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(n,e,t){hc(!0);try{pf(n,e,t)}finally{hc(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function(n,e){$o(n,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class ux extends aa{constructor(e){super(e),this._view=e}detectChanges(){X_(this._view)}checkNoChanges(){!function(n){hc(!0);try{X_(n)}finally{hc(!1)}}(this._view)}get context(){return null}}const fx=function(n){return function(n,e,t){if(lc(n)&&!t){const r=qt(n.index,e);return new aa(r,r)}return 47&n.type?new aa(e[16],e):null}(Qe(),I(),16==(16&n))};let ca=(()=>{class n{}return n.__NG_ELEMENT_ID__=fx,n})();const gx=[new vw],_x=new oa([new bw]),yx=new Ui(gx),wx=function(){return il(Qe(),I())};let Dr=(()=>{class n{}return n.__NG_ELEMENT_ID__=wx,n})();const Ex=Dr,vx=class extends Ex{constructor(e,t,r){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=r}createEmbeddedView(e){const t=this._declarationTContainer.tViews,r=Go(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(t)),Ko(t,r,e),new aa(r)}};function il(n,e){return 4&n.type?new vx(e,n,ji(n,e)):null}class or{}class Sw{}const Sx=function(){return Mw(Qe(),I())};let Ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=Sx,n})();const Ix=Ln,Tw=class extends Ix{constructor(e,t,r){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=r}get element(){return ji(this._hostTNode,this._hostLView)}get injector(){return new ai(this._hostTNode,this._hostLView)}get parentInjector(){const e=vc(this._hostTNode,this._hostLView);if(pm(e)){const t=oi(e,this._hostLView),r=ii(e);return new ai(t[1].data[r+8],t)}return new ai(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=Iw(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,r){const s=e.createEmbeddedView(t||{});return this.insert(s,r),s}createComponent(e,t,r,s,i){const o=r||this.parentInjector;if(!i&&null==e.ngModule&&o){const c=o.get(or,null);c&&(i=c)}const a=e.create(o,s,void 0,i);return this.insert(a.hostView,t),a}insert(e,t){const r=e._lView,s=r[1];if(function(n){return Mn(n[3])}(r)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const h=r[3],p=new Tw(h,h[6],h[3]);p.detach(p.indexOf(e))}}const i=this._adjustIndex(t),o=this._lContainer;!function(n,e,t,r){const s=10+r,i=t.length;r>0&&(t[s-1][4]=e),rE_});class Yw extends pw{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function(n){return n.map(gM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return Qw(this.componentDef.inputs)}get outputs(){return Qw(this.componentDef.outputs)}create(e,t,r,s){const i=(s=s||this.ngModule)?function(n,e){return{get:(t,r,s)=>{const i=n.get(t,zi,s);return i!==zi||r===zi?i:e.get(t,r,s)}}}(e,s.injector):e,o=i.get(Ms,Zg),a=i.get(Wf,null),c=o.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=r?function(n,e,t){if(je(n))return n.selectRootElement(e,t===We.ShadowDom);let r="string"==typeof e?n.querySelector(e):e;return r.textContent="",r}(c,r,this.componentDef.encapsulation):Od(o.createRenderer(null,this.componentDef),l,function(n){const e=n.toLowerCase();return"svg"===e?Yg:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,p=function(n,e){return{components:[],scheduler:n||E_,clean:XM,playerHandler:e||null,flags:0}}(),m=Hc(0,null,null,1,0,null,null,null,null,null),y=Go(null,m,p,h,null,null,o,c,a,i);let E,w;pc(y);try{const D=function(n,e,t,r,s,i){const o=t[1];t[20]=n;const c=bi(o,20,2,"#host",null),l=c.mergedAttrs=e.hostAttrs;null!==l&&(Wc(c,l,!0),null!==n&&(bc(s,n,l),null!==c.classes&&Ud(s,n,c.classes),null!==c.styles&&n_(s,n,c.styles)));const u=r.createRenderer(n,e),h=Go(t,U_(e),null,e.onPush?64:16,t[20],c,r,u,i||null,null);return o.firstCreatePass&&(Cc(No(c,t),o,e.type),Q_(o,c),Y_(c,t.length,1)),$c(t,h),t[20]=h}(u,this.componentDef,y,o,c);if(u)if(r)bc(c,u,["ng-version",yw.full]);else{const{attrs:C,classes:R}=function(n){const e=[],t=[];let r=1,s=2;for(;r0&&Ud(c,u,R.join(" "))}if(w=rd(m,20),void 0!==t){const C=w.projection=[];for(let R=0;Rc(o,e)),e.contentQueries){const c=Qe();e.contentQueries(1,o,c.directiveStart)}const a=Qe();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(zr(a.index),G_(t[1],a,0,a.directiveStart,a.directiveEnd,e),K_(e,o)),o}(D,this.componentDef,y,p,[SA]),Ko(m,y,null)}finally{gc()}return new TN(this.componentType,E,ji(w,y),y,w)}}class TN extends class{}{constructor(e,t,r,s,i){super(),this.location=r,this._rootLView=s,this._tNode=i,this.instance=t,this.hostView=this.changeDetectorRef=new ux(s),this.componentType=e}get injector(){return new ai(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}const qi=new Map;class AN extends or{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Kw(this);const r=ln(e),s=function(n){return n[RS]||null}(e);s&&Pf(s),this._bootstrapComponents=Xn(r.bootstrap),this._r3Injector=ay(e,t,[{provide:or,useValue:this},{provide:Is,useValue:this.componentFactoryResolver}],se(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=Ce.THROW_IF_NOT_FOUND,r=B.Default){return e===Ce||e===or||e===vi?this:this._r3Injector.get(e,t,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class sh extends Sw{constructor(e){super(),this.moduleType=e,null!==ln(e)&&function(n){const e=new Set;!function t(r){const s=ln(r,!0),i=s.id;null!==i&&(function(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${se(e)} vs ${se(e.name)}`)}(i,qi.get(i),r),qi.set(i,r));const o=Xn(s.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new AN(this.moduleType,e)}}function ih(n){return e=>{setTimeout(n,void 0,e)}}const ut=class extends pt{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,r){var s,i,o;let a=e,c=t||(()=>null),l=r;if(e&&"object"==typeof e){const h=e;a=null===(s=h.next)||void 0===s?void 0:s.bind(h),c=null===(i=h.error)||void 0===i?void 0:i.bind(h),l=null===(o=h.complete)||void 0===o?void 0:o.bind(h)}this.__isAsync&&(c=ih(c),a&&(a=ih(a)),l&&(l=ih(l)));const u=super.subscribe({next:a,error:c,complete:l});return e instanceof de&&e.add(u),u}};function KN(){return this._results[Si()]()}class ul{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;const t=Si(),r=ul.prototype;r[t]||(r[t]=KN)}get changes(){return this._changes||(this._changes=new ut)}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,t){return this._results.reduce(e,t)}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,t){const r=this;r.dirty=!1;const s=fn(e);(this._changesDetected=!function(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r0)r.push(o[a/2]);else{const l=i[a+1],u=e[-c];for(let h=10;h{class n{constructor(t){this.appInits=t,this.resolve=nl,this.reject=nl,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,s)=>{this.resolve=r,this.reject=s})}runInitializers(){if(this.initialized)return;const t=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let s=0;s{i.subscribe({complete:a,error:c})});t.push(o)}}Promise.all(t).then(()=>{r()}).catch(s=>{this.reject(s)}),0===t.length&&r(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(S(wa,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ea=new U("AppId"),RF={provide:Ea,useFactory:function(){return`${_h()}${_h()}${_h()}`},deps:[]};function _h(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const TE=new U("Platform Initializer"),Ji=new U("Platform ID"),IE=new U("appBootstrapListener");let pl=(()=>{class n{log(t){console.log(t)}warn(t){console.warn(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Sr=new U("LocaleId"),ME=new U("DefaultCurrencyCode");class NF{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const yh=function(n){return new sh(n)},FF=yh,OF=function(n){return Promise.resolve(yh(n))},AE=function(n){const e=yh(n),r=Xn(ln(n).declarations).reduce((s,i)=>{const o=gt(i);return o&&s.push(new Yw(o)),s},[]);return new NF(e,r)},PF=AE,kF=function(n){return Promise.resolve(AE(n))};let Ns=(()=>{class n{constructor(){this.compileModuleSync=FF,this.compileModuleAsync=OF,this.compileModuleAndAllComponentsSync=PF,this.compileModuleAndAllComponentsAsync=kF}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const BF=(()=>Promise.resolve(0))();function bh(n){"undefined"==typeof Zone?BF.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class pe{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ut(!1),this.onMicrotaskEmpty=new ut(!1),this.onStable=new ut(!1),this.onError=new ut(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&t,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function(){let n=we.requestAnimationFrame,e=we.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(n){const e=()=>{!function(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(we,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,Eh(n),n.isCheckStableRunning=!0,wh(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),Eh(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,s,i,o,a)=>{try{return RE(n),t.invokeTask(s,i,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||n.shouldCoalesceRunChangeDetection)&&e(),xE(n)}},onInvoke:(t,r,s,i,o,a,c)=>{try{return RE(n),t.invoke(s,i,o,a,c)}finally{n.shouldCoalesceRunChangeDetection&&e(),xE(n)}},onHasTask:(t,r,s,i)=>{t.hasTask(s,i),r===s&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,Eh(n),wh(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,s,i)=>(t.handleError(s,i),n.runOutsideAngular(()=>n.onError.emit(i)),!1)})}(s)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!pe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(pe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,r){return this._inner.run(e,t,r)}runTask(e,t,r,s){const i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+s,e,UF,nl,nl);try{return i.runTask(o,t,r)}finally{i.cancelTask(o)}}runGuarded(e,t,r){return this._inner.runGuarded(e,t,r)}runOutsideAngular(e){return this._outer.run(e)}}const UF={};function wh(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function Eh(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function RE(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function xE(n){n._nesting--,wh(n)}class WF{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ut,this.onMicrotaskEmpty=new ut,this.onStable=new ut,this.onError=new ut}run(e,t,r){return e.apply(t,r)}runGuarded(e,t,r){return e.apply(t,r)}runOutsideAngular(e){return e()}runTask(e,t,r,s){return e.apply(t,r)}}let vh=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{pe.assertNotInAngularZone(),bh(()=>{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())bh(()=>{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,s){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:s})}whenStable(t,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,r,s){return[]}}return n.\u0275fac=function(t){return new(t||n)(S(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),NE=(()=>{class n{constructor(){this._applications=new Map,Ch.addToWindow(this)}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 Ch.findTestabilityInTree(this,t,r)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class zF{addToWindow(e){}findTestabilityInTree(e,t,r){return null}}let Ch=new zF,FE=!0,OE=!1;function Dh(){return OE=!0,FE}let jn;const PE=new U("AllowMultipleToken");class Sh{constructor(e,t){this.name=e,this.token=t}}function kE(n,e,t=[]){const r=`Platform: ${e}`,s=new U(r);return(i=[])=>{let o=LE();if(!o||o.injector.get(PE,!1))if(n)n(t.concat(i).concat({provide:s,useValue:!0}));else{const a=t.concat(i).concat({provide:s,useValue:!0},{provide:Qo,useValue:"platform"});!function(n){if(jn&&!jn.destroyed&&!jn.injector.get(PE,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");jn=n.get(VE);const e=n.get(TE,null);e&&e.forEach(t=>t())}(Ce.create({providers:a,name:r}))}return function(n){const e=LE();if(!e)throw new Error("No platform exists!");if(!e.injector.get(n,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function LE(){return jn&&!jn.destroyed?jn:null}let VE=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const a=function(n,e){let t;return t="noop"===n?new WF:("zone.js"===n?void 0:n)||new pe({enableLongStackTrace:Dh(),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),c=[{provide:pe,useValue:a}];return a.run(()=>{const l=Ce.create({providers:c,parent:this.injector,name:t.moduleType.name}),u=t.create(l),h=u.injector.get(Rn,null);if(!h)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const p=a.onError.subscribe({next:m=>{h.handleError(m)}});u.onDestroy(()=>{Th(this._modules,u),p.unsubscribe()})}),function(n,e,t){try{const r=t();return Kc(r)?r.catch(s=>{throw e.runOutsideAngular(()=>n.handleError(s)),s}):r}catch(r){throw e.runOutsideAngular(()=>n.handleError(r)),r}}(h,a,()=>{const p=u.injector.get(Yi);return p.runInitializers(),p.donePromise.then(()=>(Pf(u.injector.get(Sr,Jc)||Jc),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,r=[]){const s=BE({},r);return function(n,e,t){const r=new sh(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,s))}_moduleDoBootstrap(t){const r=t.injector.get(Zi);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${se(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);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 Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(S(Ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function BE(n,e){return Array.isArray(e)?e.reduce(BE,n):Object.assign(Object.assign({},n),e)}let Zi=(()=>{class n{constructor(t,r,s,i,o){this._zone=t,this._injector=r,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new fe(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),c=new fe(l=>{let u;this._zone.runOutsideAngular(()=>{u=this._zone.onStable.subscribe(()=>{pe.assertNotInAngularZone(),bh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const h=this._zone.onUnstable.subscribe(()=>{pe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{u.unsubscribe(),h.unsubscribe()}});this.isStable=function(...n){let e=Number.POSITIVE_INFINITY,t=null,r=n[n.length-1];return oe(r)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof r&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof fe?n[0]:Do(e)(ju(n,t))}(a,c.pipe(Og()))}bootstrap(t,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let s;s=t instanceof pw?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(s.componentType);const i=function(n){return n.isBoundToModule}(s)?void 0:this._injector.get(or),a=s.create(Ce.NULL,[],r||s.selector,i),c=a.location.nativeElement,l=a.injector.get(vh,null),u=l&&a.injector.get(NE);return l&&u&&u.registerApplication(c,l),a.onDestroy(()=>{this.detachView(a.hostView),Th(this.components,a),u&&u.unregisterApplication(c)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Th(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(IE,[]).concat(this._bootstrapListeners).forEach(s=>s(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(S(pe),S(Ce),S(Rn),S(Is),S(Yi))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Th(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}class ml{}class oO{}const aO={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let cO=(()=>{class n{constructor(t,r){this._compiler=t,this._config=r||aO}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[r,s]=t.split("#");return void 0===s&&(s="default"),ot(255)(r).then(i=>i[s]).then(i=>$E(i,r,s)).then(i=>this._compiler.compileModuleAsync(i))}loadFactory(t){let[r,s]=t.split("#"),i="NgFactory";return void 0===s&&(s="default",i=""),ot(255)(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(o=>o[s+i]).then(o=>$E(o,r,s))}}return n.\u0275fac=function(t){return new(t||n)(S(Ns),S(oO,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function $E(n,e,t){if(!n)throw new Error(`Cannot find '${t}' in '${e}'`);return n}const yO=kE(null,"core",[{provide:Ji,useValue:"unknown"},{provide:VE,deps:[Ce]},{provide:NE,deps:[]},{provide:pl,deps:[]}]),CO=[{provide:Zi,useClass:Zi,deps:[pe,Ce,Rn,Is,Yi]},{provide:CN,deps:[pe],useFactory:function(n){let e=[];return n.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Yi,useClass:Yi,deps:[[new ct,wa]]},{provide:Ns,useClass:Ns,deps:[]},RF,{provide:oa,useFactory:function(){return _x},deps:[]},{provide:Ui,useFactory:function(){return yx},deps:[]},{provide:Sr,useFactory:function(n){return Pf(n=n||"undefined"!=typeof $localize&&$localize.locale||Jc),n},deps:[[new gi(Sr),new ct,new mr]]},{provide:ME,useValue:"USD"}];let SO=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(S(Zi))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:CO}),n})(),Tl=null;function Zr(){return Tl}const ie=new U("DocumentToken");let Ps=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({factory:DP,token:n,providedIn:"platform"}),n})();function DP(){return S(hv)}const SP=new U("Location Initialized");let hv=(()=>{class n extends Ps{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zr().getBaseHref(this._doc)}onPopState(t){const r=Zr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Zr().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,s){pv()?this._history.pushState(t,r,s):this.location.hash=s}replaceState(t,r,s){pv()?this._history.replaceState(t,r,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({factory:TP,token:n,providedIn:"platform"}),n})();function pv(){return!!window.history.pushState}function TP(){return new hv(S(ie))}function Uh(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function gv(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Ir(n){return n&&"?"!==n[0]?"?"+n:n}let to=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({factory:IP,token:n,providedIn:"root"}),n})();function IP(n){const e=S(ie).location;return new mv(S(Ps),e&&e.origin||"")}const Hh=new U("appBaseHref");let mv=(()=>{class n extends to{constructor(t,r){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");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}prepareExternalUrl(t){return Uh(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Ir(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${r}${s}`:r}pushState(t,r,s,i){const o=this.prepareExternalUrl(s+Ir(i));this._platformLocation.pushState(t,r,o)}replaceState(t,r,s,i){const o=this.prepareExternalUrl(s+Ir(i));this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,s;null===(s=(r=this._platformLocation).historyGo)||void 0===s||s.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(S(Ps),S(Hh,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),MP=(()=>{class n extends to{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=Uh(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,s,i){let o=this.prepareExternalUrl(s+Ir(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,r,o)}replaceState(t,r,s,i){let o=this.prepareExternalUrl(s+Ir(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var r,s;null===(s=(r=this._platformLocation).historyGo)||void 0===s||s.call(r,t)}}return n.\u0275fac=function(t){return new(t||n)(S(Ps),S(Hh,8))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Il=(()=>{class n{constructor(t,r){this._subject=new ut,this._urlChangeListeners=[],this._platformStrategy=t;const s=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=gv(_v(s)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Ir(r))}normalize(t){return n.stripTrailingSlash(function(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,_v(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,r="",s=null){this._platformStrategy.pushState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ir(r)),s)}replaceState(t,r="",s=null){this._platformStrategy.replaceState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ir(r)),s)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var r,s;null===(s=(r=this._platformStrategy).historyGo)||void 0===s||s.call(r,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(s=>s(t,r))}subscribe(t,r,s){return this._subject.subscribe({next:t,error:r,complete:s})}}return n.\u0275fac=function(t){return new(t||n)(S(to),S(Ps))},n.normalizeQueryParams=Ir,n.joinWithSlash=Uh,n.stripTrailingSlash=gv,n.\u0275prov=k({factory:AP,token:n,providedIn:"root"}),n})();function AP(){return new Il(S(to),S(Ps))}function _v(n){return n.replace(/\/index.html$/,"")}var qe=(()=>((qe=qe||{})[qe.Zero=0]="Zero",qe[qe.One=1]="One",qe[qe.Two=2]="Two",qe[qe.Few=3]="Few",qe[qe.Many=4]="Many",qe[qe.Other=5]="Other",qe))();const LP=function(n){return function(n){const e=function(n){return n.toLowerCase().replace(/_/g,"-")}(n);let t=Hb(e);if(t)return t;const r=e.split("-")[0];if(t=Hb(r),t)return t;if("en"===r)return QR;throw new Error(`Missing locale data for the locale "${n}".`)}(n)[O.PluralCase]};class Ll{}let fk=(()=>{class n extends Ll{constructor(t){super(),this.locale=t}getPluralCategory(t,r){switch(LP(r||this.locale)(t)){case qe.Zero:return"zero";case qe.One:return"one";case qe.Two:return"two";case qe.Few:return"few";case qe.Many:return"many";default:return"other"}}}return n.\u0275fac=function(t){return new(t||n)(S(Sr))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();let Jh=(()=>{class n{constructor(t,r){this._viewContainer=t,this._context=new yk,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){Mv("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Mv("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}}return n.\u0275fac=function(t){return new(t||n)(M(Ln),M(Dr))},n.\u0275dir=Ae({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class yk{constructor(){this.$implicit=null,this.ngIf=null}}function Mv(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${se(e)}'.`)}class Zh{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let Ma=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let r=0;r{class n{constructor(t,r,s){this.ngSwitch=s,s._addCase(),this._view=new Zh(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(M(Ln),M(Dr),M(Ma,9))},n.\u0275dir=Ae({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),np=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:[{provide:Ll,useClass:fk}]}),n})();const xv="browser";let Nv=(()=>{class n{}return n.\u0275prov=k({token:n,providedIn:"root",factory:()=>new Gk(S(ie),window)}),n})();class Gk{constructor(e,t){this.document=e,this.window=t,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e: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;const t=function(n,e){const t=n.getElementById(e)||n.getElementsByName(e)[0];if(t)return t;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const r=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let s=r.currentNode;for(;s;){const i=s.shadowRoot;if(i){const o=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(o)return o}s=r.nextNode()}}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}scrollToElement(e){const t=e.getBoundingClientRect(),r=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],s-i[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=Fv(this.window.history)||Fv(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function Fv(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class rp extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function(n){Tl||(Tl=n)}(new rp)}onAndCancel(e,t,r){return e.addEventListener(t,r,!1),()=>{e.removeEventListener(t,r,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).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,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=(Aa=Aa||document.querySelector("base"),Aa?Aa.getAttribute("href"):null);return null==t?null:function(n){Vl=Vl||document.createElement("a"),Vl.setAttribute("href",n);const e=Vl.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Aa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const r=t.indexOf("="),[s,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,e)}}let Vl,Aa=null;const Pv=new U("TRANSITION_ID"),Xk=[{provide:wa,useFactory:function(n,e,t){return()=>{t.get(Yi).donePromise.then(()=>{const r=Zr(),s=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,s);if(null==i)throw new Error("Could not find testability for element.");return i},we.getAllAngularTestabilities=()=>e.getAllTestabilities(),we.getAllAngularRootElements=()=>e.getAllRootElements(),we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(r=>{const s=we.getAllAngularTestabilities();let i=s.length,o=!1;const a=function(c){o=o||c,i--,0==i&&r(o)};s.forEach(function(c){c.whenStable(a)})})}findTestabilityInTree(e,t,r){if(null==t)return null;const s=e.getTestability(t);return null!=s?s:r?Zr().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let eL=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ra=new U("EventManagerPlugins");let jl=(()=>{class n{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>s.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}addGlobalEventListener(t,r,s){return this._findPluginFor(r).addGlobalEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const s=this._plugins;for(let i=0;i{class n{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),r.add(s))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),xa=(()=>{class n extends Lv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,s){t.forEach(i=>{const o=this._doc.createElement("style");o.textContent=i,s.push(r.appendChild(o))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(Vv),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,s)=>{this._addStylesToHost(t,s,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(Vv))}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Vv(n){Zr().remove(n)}const op={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/"},ap=/%COMP%/g;function Ul(n,e,t){for(let r=0;r{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Hl=(()=>{class n{constructor(t,r,s){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new cp(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case We.Emulated:{let s=this.rendererByCompId.get(r.id);return s||(s=new gL(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,s)),s.applyToHost(t),s}case 1:case We.ShadowDom:return new mL(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const s=Ul(r.id,r.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(S(jl),S(xa),S(Ea))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class cp{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(op[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,r){e&&e.insertBefore(t,r)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return t||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,r,s){if(s){t=s+":"+t;const i=op[s];i?e.setAttributeNS(i,t,r):e.setAttribute(t,r)}else e.setAttribute(t,r)}removeAttribute(e,t,r){if(r){const s=op[r];s?e.removeAttributeNS(s,t):e.removeAttribute(`${r}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,r,s){s&(Kt.DashCase|Kt.Important)?e.style.setProperty(t,r,s&Kt.Important?"important":""):e.style[t]=r}removeStyle(e,t,r){r&Kt.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,r){e[t]=r}setValue(e,t){e.nodeValue=t}listen(e,t,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Uv(r)):this.eventManager.addEventListener(e,t,Uv(r))}}class gL extends cp{constructor(e,t,r,s){super(e),this.component=r;const i=Ul(s+"-"+r.id,r.styles,[]);t.addStyles(i),this.contentAttr=function(n){return"_ngcontent-%COMP%".replace(ap,n)}(s+"-"+r.id),this.hostAttr=function(n){return"_nghost-%COMP%".replace(ap,n)}(s+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const r=super.createElement(e,t);return super.setAttribute(r,this.contentAttr,""),r}}class mL extends cp{constructor(e,t,r,s){super(e),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ul(s.id,s.styles,[]);for(let o=0;o{class n extends ip{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Wv=["alt","control","meta","shift"],DL={"\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"},zv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},SL={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let TL=(()=>{class n extends ip{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,r,s){const i=n.parseEventName(r),o=n.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zr().onAndCancel(t,i.domEventName,o))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const i=n._normalizeKey(r.pop());let o="";if(Wv.forEach(c=>{const l=r.indexOf(c);l>-1&&(r.splice(l,1),o+=c+".")}),o+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=s,a.fullKey=o,a}static getEventFullKey(t){let r="",s=function(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&zv.hasOwnProperty(e)&&(e=zv[e]))}return DL[e]||e}(t);return s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),Wv.forEach(i=>{i!=s&&SL[i](t)&&(r+=i+".")}),r+=s,r}static eventCallback(t,r,s){return i=>{n.getEventFullKey(i)===t&&s.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),no=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({factory:function(){return S(up)},token:n,providedIn:"root"}),n})(),up=(()=>{class n extends no{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case me.NONE:return r;case me.HTML:return Jn(r,"HTML")?Qt(r):p_(this._doc,String(r)).toString();case me.STYLE:return Jn(r,"Style")?Qt(r):r;case me.SCRIPT:if(Jn(r,"Script"))return Qt(r);throw new Error("unsafe value used in a script context");case me.URL:return o_(r),Jn(r,"URL")?Qt(r):Wo(String(r));case me.RESOURCE_URL:if(Jn(r,"ResourceURL"))return Qt(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return function(n){return new CI(n)}(t)}bypassSecurityTrustStyle(t){return function(n){return new DI(n)}(t)}bypassSecurityTrustScript(t){return function(n){return new SI(n)}(t)}bypassSecurityTrustUrl(t){return function(n){return new TI(n)}(t)}bypassSecurityTrustResourceUrl(t){return function(n){return new II(n)}(t)}}return n.\u0275fac=function(t){return new(t||n)(S(ie))},n.\u0275prov=k({factory:function(){return function(n){return new up(n.get(ie))}(S(vi))},token:n,providedIn:"root"}),n})();const NL=[{provide:Ji,useValue:xv},{provide:TE,useValue:function(){rp.makeCurrent(),sp.init()},multi:!0},{provide:ie,useFactory:function(){return function(n){td=n}(document),document},deps:[]}],OL=kE(yO,"browser",NL),PL=[[],{provide:Qo,useValue:"root"},{provide:Rn,useFactory:function(){return new Rn},deps:[]},{provide:Ra,useClass:_L,multi:!0,deps:[ie,pe,Ji]},{provide:Ra,useClass:TL,multi:!0,deps:[ie]},[],{provide:Hl,useClass:Hl,deps:[jl,xa,Ea]},{provide:Ms,useExisting:Hl},{provide:Lv,useExisting:xa},{provide:xa,useClass:xa,deps:[ie]},{provide:vh,useClass:vh,deps:[pe]},{provide:jl,useClass:jl,deps:[Ra,pe]},{provide:class{},useClass:eL,deps:[]},[]];let dp=(()=>{class n{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:n,providers:[{provide:Ea,useValue:t.appId},{provide:Pv,useExisting:Ea},Xk]}}}return n.\u0275fac=function(t){return new(t||n)(S(n,12))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:PL,imports:[np,SO]}),n})();"undefined"!=typeof window&&window;class bn extends pt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const t=super._subscribe(e);return t&&!t.closed&&e.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Vr;return this._value}next(e){super.next(this._value=e)}}function $(...n){let e=n[n.length-1];return oe(e)?(n.pop(),f(n,e)):ju(n)}const Gv=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})(),ro=new fe(n=>n.complete());function hp(n){return n?function(n){return new fe(e=>n.schedule(()=>e.complete()))}(n):ro}function Na(n){return e=>0===n?hp():e.lift(new ZL(n))}class ZL{constructor(e){if(this.total=e,this.total<0)throw new Gv}call(e,t){return t.subscribe(new XL(e,this.total))}}class XL extends _e{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))}}class t2{constructor(e){this.total=e}call(e,t){return t.subscribe(new n2(e,this.total))}}class n2 extends _e{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){++this.count>this.total&&this.destination.next(e)}}class s2{constructor(e,t){this.compare=e,this.keySelector=t}call(e,t){return t.subscribe(new o2(e,this.compare,this.keySelector))}}class o2 extends _e{constructor(e,t,r){super(e),this.keySelector=r,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(e,t){return e===t}_next(e){let t;try{const{keySelector:s}=this;t=s?s(e):e}catch(s){return this.destination.error(s)}let r=!1;if(this.hasKey)try{const{compare:s}=this;r=s(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))}}class c2{constructor(e){this.notifier=e}call(e,t){const r=new l2(e),s=nc(this.notifier,new on(r));return s&&!r.seenValue?(r.add(s),t.subscribe(r)):r}}class l2 extends tc{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function ks(n){return null!=n&&"false"!=`${n}`}function $l(n,e=0){return function(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}function so(n){return n instanceof Me?n.nativeElement:n}let pp;try{pp="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){pp=!1}let Fa,_p,wn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function(n){return n===xv}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!pp)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(S(Ji))},n.\u0275prov=k({factory:function(){return new n(S(Ji))},token:n,providedIn:"root"}),n})(),gp=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({}),n})();function mp(n){return function(){if(null==Fa&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Fa=!0}))}finally{Fa=Fa||!1}return Fa}()?n:!!n.capture}function Qv(n){if(function(){if(null==_p){const n="undefined"!=typeof document?document.head:null;_p=!(!n||!n.createShadowRoot&&!n.attachShadow)}return _p}()){const e=n.getRootNode?n.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Oa(n){return n.composedPath?n.composedPath()[0]:n.target}class g2 extends de{constructor(e,t){super()}schedule(e,t=0){return this}}let Yv=(()=>{class n{constructor(t,r=n.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,s){return new this.SchedulerAction(this,t).schedule(s,r)}}return n.now=()=>Date.now(),n})();class es extends Yv{constructor(e,t=Yv.now){super(e,()=>es.delegate&&es.delegate!==this?es.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,r){return es.delegate&&es.delegate!==this?es.delegate.schedule(e,t,r):super.schedule(e,t,r)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}}function rC(n){return 0===n.offsetX&&0===n.offsetY}function sC(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}new es(class extends g2{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(e,t,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let s,r=!1;try{this.work(e)}catch(i){r=!0,s=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),s}_unsubscribe(){const e=this.id,t=this.scheduler,r=t.actions,s=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&r.splice(s,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}),"undefined"!=typeof Element&∈const iC=new U("cdk-input-modality-detector-options"),U2={ignoreKeys:[18,17,224,91,16]},oo=mp({passive:!0,capture:!0});let aC=(()=>{class n{constructor(t,r,s,i){this._platform=t,this._mostRecentTarget=null,this._modality=new bn(null),this._lastTouchMs=0,this._onKeydown=o=>{var a,c;(null===(c=null===(a=this._options)||void 0===a?void 0:a.ignoreKeys)||void 0===c?void 0:c.some(l=>l===o.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=Oa(o))},this._onMousedown=o=>{Date.now()-this._lastTouchMs<650||(this._modality.next(rC(o)?"keyboard":"mouse"),this._mostRecentTarget=Oa(o))},this._onTouchstart=o=>{sC(o)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=Oa(o))},this._options=Object.assign(Object.assign({},U2),i),this.modalityDetected=this._modality.pipe(e=>e.lift(new t2(1))),this.modalityChanged=this.modalityDetected.pipe(t=>t.lift(new s2(void 0,void 0))),t.isBrowser&&r.runOutsideAngular(()=>{s.addEventListener("keydown",this._onKeydown,oo),s.addEventListener("mousedown",this._onMousedown,oo),s.addEventListener("touchstart",this._onTouchstart,oo)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,oo),document.removeEventListener("mousedown",this._onMousedown,oo),document.removeEventListener("touchstart",this._onTouchstart,oo))}}return n.\u0275fac=function(t){return new(t||n)(S(wn),S(pe),S(ie),S(iC,8))},n.\u0275prov=k({factory:function(){return new n(S(wn),S(pe),S(ie),S(iC,8))},token:n,providedIn:"root"}),n})();const uC=new U("cdk-focus-monitor-default-options"),zl=mp({passive:!0,capture:!0});let bp=(()=>{class n{constructor(t,r,s,i,o){this._ngZone=t,this._platform=r,this._inputModalityDetector=s,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new pt,this._rootNodeFocusAndBlurListener=a=>{const c=Oa(a),l="focus"===a.type?this._onFocus:this._onBlur;for(let u=c;u;u=u.parentElement)l.call(this,a,u)},this._document=i,this._detectionMode=(null==o?void 0:o.detectionMode)||0}monitor(t,r=!1){const s=so(t);if(!this._platform.isBrowser||1!==s.nodeType)return $(null);const i=Qv(s)||this._getDocument(),o=this._elementInfo.get(s);if(o)return r&&(o.checkChildren=!0),o.subject;const a={checkChildren:r,subject:new pt,rootNode:i};return this._elementInfo.set(s,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const r=so(t),s=this._elementInfo.get(r);s&&(s.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(s))}focusVia(t,r,s){const i=so(t);i===this._getDocument().activeElement?this._getClosestElementsInfo(i).forEach(([a,c])=>this._originChanged(a,r,c)):(this._setOrigin(r),"function"==typeof i.focus&&i.focus(s))}ngOnDestroy(){this._elementInfo.forEach((t,r)=>this.stopMonitoring(r))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,r,s){s?t.classList.add(r):t.classList.remove(r)}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(t,r){this._toggleClass(t,"cdk-focused",!!r),this._toggleClass(t,"cdk-touch-focused","touch"===r),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===r),this._toggleClass(t,"cdk-mouse-focused","mouse"===r),this._toggleClass(t,"cdk-program-focused","program"===r)}_setOrigin(t,r=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&r,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,r){const s=this._elementInfo.get(r),i=Oa(t);!s||!s.checkChildren&&r!==i||this._originChanged(r,this._getFocusOrigin(i),s)}_onBlur(t,r){const s=this._elementInfo.get(r);!s||s.checkChildren&&t.relatedTarget instanceof Node&&r.contains(t.relatedTarget)||(this._setClasses(r),this._emitOrigin(s.subject,null))}_emitOrigin(t,r){this._ngZone.run(()=>t.next(r))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const r=t.rootNode,s=this._rootNodeFocusListenerCount.get(r)||0;s||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,zl),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,zl)}),this._rootNodeFocusListenerCount.set(r,s+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(function(n){return e=>e.lift(new c2(n))}(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,!0)}))}_removeGlobalListeners(t){const r=t.rootNode;if(this._rootNodeFocusListenerCount.has(r)){const s=this._rootNodeFocusListenerCount.get(r);s>1?this._rootNodeFocusListenerCount.set(r,s-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zl),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zl),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,r,s){this._setClasses(t,r),this._emitOrigin(s.subject,r),this._lastFocusOrigin=r}_getClosestElementsInfo(t){const r=[];return this._elementInfo.forEach((s,i)=>{(i===t||s.checkChildren&&i.contains(t))&&r.push([i,s])}),r}}return n.\u0275fac=function(t){return new(t||n)(S(pe),S(wn),S(aC),S(ie,8),S(uC,8))},n.\u0275prov=k({factory:function(){return new n(S(pe),S(wn),S(aC),S(ie,8),S(uC,8))},token:n,providedIn:"root"}),n})();const dC="cdk-high-contrast-black-on-white",fC="cdk-high-contrast-white-on-black",wp="cdk-high-contrast-active";let hC=(()=>{class n{constructor(t,r){this._platform=t,this._document=r}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(t):null,i=(s&&s.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(wp),t.remove(dC),t.remove(fC),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?(t.add(wp),t.add(dC)):2===r&&(t.add(wp),t.add(fC))}}}return n.\u0275fac=function(t){return new(t||n)(S(wn),S(ie))},n.\u0275prov=k({factory:function(){return new n(S(wn),S(ie))},token:n,providedIn:"root"}),n})(),gC=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({}),n})();const mC=new As("12.2.13");class _C{}const Ar="*";function yC(n,e=null){return{type:2,steps:n,options:e}}function bC(n){return{type:6,styles:n,offset:null}}function wC(n){Promise.resolve(null).then(n)}class ao{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){wC(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class EC{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,r=0,s=0;const i=this.players.length;0==i?wC(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==i&&this._onFinish()}),o.onDestroy(()=>{++r==i&&this._onDestroy()}),o.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(r=>{const s=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(s)})}getPosition(){const e=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}function vC(){return"undefined"!=typeof window&&void 0!==window.document}function vp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ts(n){switch(n.length){case 0:return new ao;case 1:return n[0];default:return new EC(n)}}function CC(n,e,t,r,s={},i={}){const o=[],a=[];let c=-1,l=null;if(r.forEach(u=>{const h=u.offset,p=h==c,m=p&&l||{};Object.keys(u).forEach(y=>{let E=y,w=u[y];if("offset"!==y)switch(E=e.normalizePropertyName(E,o),w){case"!":w=s[y];break;case Ar:w=i[y];break;default:w=e.normalizeStyleValue(y,E,w,o)}m[E]=w}),p||a.push(m),l=m,c=h}),o.length){const u="\n - ";throw new Error(`Unable to animate due to the following errors:${u}${o.join(u)}`)}return a}function Cp(n,e,t,r){switch(e){case"start":n.onStart(()=>r(t&&Dp(t,"start",n)));break;case"done":n.onDone(()=>r(t&&Dp(t,"done",n)));break;case"destroy":n.onDestroy(()=>r(t&&Dp(t,"destroy",n)))}}function Dp(n,e,t){const r=t.totalTime,i=Sp(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==r?n.totalTime:r,!!t.disabled),o=n._data;return null!=o&&(i._data=o),i}function Sp(n,e,t,r,s="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function Xt(n,e,t){let r;return n instanceof Map?(r=n.get(e),r||n.set(e,r=t)):(r=n[e],r||(r=n[e]=t)),r}function DC(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Tp=(n,e)=>!1,Ip=(n,e)=>!1,SC=(n,e,t)=>[];const TC=vp();(TC||"undefined"!=typeof Element)&&(Tp=vC()?(n,e)=>{for(;e&&e!==document.documentElement;){if(e===n)return!0;e=e.parentNode||e.host}return!1}:(n,e)=>n.contains(e),Ip=(()=>{if(TC||Element.prototype.matches)return(n,e)=>n.matches(e);{const n=Element.prototype,e=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;return e?(t,r)=>e.apply(t,[r]):Ip}})(),SC=(n,e,t)=>{let r=[];if(t){const s=n.querySelectorAll(e);for(let i=0;i{const r=t.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=n[t]}),e}let AC=(()=>{class n{validateStyleProperty(t){return Mp(t)}matchesElement(t,r){return Ap(t,r)}containsElement(t,r){return Rp(t,r)}query(t,r,s){return xp(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,i,o,a=[],c){return new ao(s,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Np=(()=>{class n{}return n.NOOP=new AC,n})();const Fp="ng-enter",ql="ng-leave",Gl="ng-trigger",Kl=".ng-trigger",xC="ng-animating",Op=".ng-animating";function Bs(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Pp(parseFloat(e[1]),e[2])}function Pp(n,e){return"s"===e?1e3*n:n}function Ql(n,e,t){return n.hasOwnProperty("duration")?n:function(n,e,t){let s,i=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(`The provided timing value "${n}" is invalid.`),{duration:0,delay:0,easing:""};s=Pp(parseFloat(a[1]),a[2]);const c=a[3];null!=c&&(i=Pp(parseFloat(c),a[4]));const l=a[5];l&&(o=l)}else s=n;if(!t){let a=!1,c=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),a=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&e.splice(c,0,`The provided timing value "${n}" is invalid.`)}return{duration:s,delay:i,easing:o}}(n,e,t)}function co(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ns(n,e,t={}){if(e)for(let r in n)t[r]=n[r];else co(n,t);return t}function FC(n,e,t){return t?e+":"+t+";":""}function OC(n){let e="";for(let t=0;t{const s=Lp(r);t&&!t.hasOwnProperty(r)&&(t[r]=n.style[s]),n.style[s]=e[r]}),vp()&&OC(n))}function js(n,e){n.style&&(Object.keys(e).forEach(t=>{const r=Lp(t);n.style[r]=""}),vp()&&OC(n))}function Pa(n){return Array.isArray(n)?1==n.length?n[0]:yC(n):n}const kp=new RegExp("{{\\s*(.+?)\\s*}}","g");function PC(n){let e=[];if("string"==typeof n){let t;for(;t=kp.exec(n);)e.push(t[1]);kp.lastIndex=0}return e}function Yl(n,e,t){const r=n.toString(),s=r.replace(kp,(i,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return s==r?n:s}function Jl(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const X2=/-+([a-z0-9])/g;function Lp(n){return n.replace(X2,(...e)=>e[1].toUpperCase())}function eV(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function kC(n,e){return 0===n||0===e}function LC(n,e,t){const r=Object.keys(t);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(a=>{i.hasOwnProperty(a)||o.push(a),i[a]=t[a]}),o.length)for(var s=1;sfunction(n,e,t){if(":"==n[0]){const c=function(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r) *"}}(n,t);if("function"==typeof c)return void e.push(c);n=c}const r=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(`The provided transition expression "${n}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(VC(s,o));"<"==i[0]&&!("*"==s&&"*"==o)&&e.push(VC(o,s))}(r,t,e)):t.push(n),t}const Xl=new Set(["true","1"]),eu=new Set(["false","0"]);function VC(n,e){const t=Xl.has(n)||eu.has(n),r=Xl.has(e)||eu.has(e);return(s,i)=>{let o="*"==n||n==s,a="*"==e||e==i;return!o&&t&&"boolean"==typeof s&&(o=s?Xl.has(n):eu.has(n)),!a&&r&&"boolean"==typeof i&&(a=i?Xl.has(e):eu.has(e)),o&&a}}const sV=new RegExp("s*:selfs*,?","g");function Bp(n,e,t){return new iV(n).build(e,t)}class iV{constructor(e){this._driver=e}build(e,t){const r=new cV(t);return this._resetContextStyleTimingState(r),en(this,Pa(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let r=t.queryCount=0,s=t.depCount=0;const i=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const c=a,l=c.name;l.toString().split(/\s*,\s*/).forEach(u=>{c.name=u,i.push(this.visitState(c,t))}),c.name=l}else if(1==a.type){const c=this.visitTransition(a,t);r+=c.queryCount,s+=c.depCount,o.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:o,queryCount:r,depCount:s,options:null}}visitState(e,t){const r=this.visitStyle(e.styles,t),s=e.options&&e.options.params||null;if(r.containsDynamicStyles){const i=new Set,o=s||{};if(r.styles.forEach(a=>{if(tu(a)){const c=a;Object.keys(c).forEach(l=>{PC(c[l]).forEach(u=>{o.hasOwnProperty(u)||i.add(u)})})}}),i.size){const a=Jl(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:e.name,style:r,options:s?{params:s}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const r=en(this,Pa(e.animation),t);return{type:1,matchers:tV(e.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:Us(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(r=>en(this,r,t)),options:Us(e.options)}}visitGroup(e,t){const r=t.currentTime;let s=0;const i=e.steps.map(o=>{t.currentTime=r;const a=en(this,o,t);return s=Math.max(s,t.currentTime),a});return t.currentTime=s,{type:3,steps:i,options:Us(e.options)}}visitAnimate(e,t){const r=function(n,e){let t=null;if(n.hasOwnProperty("duration"))t=n;else if("number"==typeof n)return jp(Ql(n,e).duration,0,"");const r=n;if(r.split(/\s+/).some(i=>"{"==i.charAt(0)&&"{"==i.charAt(1))){const i=jp(0,0,"");return i.dynamic=!0,i.strValue=r,i}return t=t||Ql(r,e),jp(t.duration,t.delay,t.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;let s,i=e.styles?e.styles:bC({});if(5==i.type)s=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;const l={};r.easing&&(l.easing=r.easing),o=bC(l)}t.currentTime+=r.duration+r.delay;const c=this.visitStyle(o,t);c.isEmptyStep=a,s=c}return t.currentAnimateTimings=null,{type:4,timings:r,style:s,options:null}}visitStyle(e,t){const r=this._makeStyleAst(e,t);return this._validateStyleAst(r,t),r}_makeStyleAst(e,t){const r=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Ar?r.push(o):t.errors.push(`The provided style string value ${o} is not allowed.`):r.push(o)}):r.push(e.styles);let s=!1,i=null;return r.forEach(o=>{if(tu(o)){const a=o,c=a.easing;if(c&&(i=c,delete a.easing),!s)for(let l in a)if(a[l].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:r,easing:i,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){const r=t.currentAnimateTimings;let s=t.currentTime,i=t.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void t.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const c=t.collectedStyles[t.currentQuerySelector],l=c[a];let u=!0;l&&(i!=s&&i>=l.startTime&&s<=l.endTime&&(t.errors.push(`The CSS property "${a}" that exists between the times of "${l.startTime}ms" and "${l.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),u=!1),i=l.startTime),u&&(c[a]={startTime:i,endTime:s}),t.options&&function(n,e,t){const r=e.params||{},s=PC(n);s.length&&s.forEach(i=>{r.hasOwnProperty(i)||t.push(`Unable to resolve the local animation param ${i} in the given list of values`)})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;let i=0;const o=[];let a=!1,c=!1,l=0;const u=e.steps.map(D=>{const C=this._makeStyleAst(D,t);let R=null!=C.offset?C.offset:function(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(tu(t)&&t.hasOwnProperty("offset")){const r=t;e=parseFloat(r.offset),delete r.offset}});else if(tu(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(C.styles),x=0;return null!=R&&(i++,x=C.offset=R),c=c||x<0||x>1,a=a||x0&&i{const R=p>0?C==m?1:p*C:o[C],x=R*w;t.currentTime=y+E.delay+x,E.duration=x,this._validateStyleAst(D,t),D.offset=R,r.styles.push(D)}),r}visitReference(e,t){return{type:8,animation:en(this,Pa(e.animation),t),options:Us(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Us(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Us(e.options)}}visitQuery(e,t){const r=t.currentQuerySelector,s=e.options||{};t.queryCount++,t.currentQuery=e;const[i,o]=function(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(sV,"")),n=n.replace(/@\*/g,Kl).replace(/@\w+/g,t=>Kl+"-"+t.substr(1)).replace(/:animating/g,Op),[n,e]}(e.selector);t.currentQuerySelector=r.length?r+" "+i:i,Xt(t.collectedStyles,t.currentQuerySelector,{});const a=en(this,Pa(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Us(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ql(e.timings,t.errors,!0);return{type:12,animation:en(this,Pa(e.animation),t),timings:r,options:null}}}class cV{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function tu(n){return!Array.isArray(n)&&"object"==typeof n}function Us(n){return n?(n=co(n)).params&&(n.params=function(n){return n?co(n):null}(n.params)):n={},n}function jp(n,e,t){return{duration:n,delay:e,easing:t}}function Up(n,e,t,r,s,i,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class nu{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const hV=new RegExp(":enter","g"),gV=new RegExp(":leave","g");function Hp(n,e,t,r,s,i={},o={},a,c,l=[]){return(new mV).buildKeyframes(n,e,t,r,s,i,o,a,c,l)}class mV{buildKeyframes(e,t,r,s,i,o,a,c,l,u=[]){l=l||new nu;const h=new $p(e,t,l,s,i,u,[]);h.options=c,h.currentTimeline.setStyles([o],null,h.errors,c),en(this,r,h);const p=h.timelines.filter(m=>m.containsAnimation());if(p.length&&Object.keys(a).length){const m=p[p.length-1];m.allowOnlyTimelineStyles()||m.setStyles([a],null,h.errors,c)}return p.length?p.map(m=>m.buildKeyframes()):[Up(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const r=t.subInstructions.consume(t.element);if(r){const s=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(r,s,s.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const r=t.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,r){let i=t.currentTimeline.currentTime;const o=null!=r.duration?Bs(r.duration):null,a=null!=r.delay?Bs(r.delay):null;return 0!==o&&e.forEach(c=>{const l=t.appendInstructionToTimeline(c,o,a);i=Math.max(i,l.duration+l.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),en(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const r=t.subContextCount;let s=t;const i=e.options;if(i&&(i.params||i.delay)&&(s=t.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=ru);const o=Bs(i.delay);s.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>en(this,o,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const r=[];let s=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?Bs(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);i&&a.delayNextStep(i),en(this,o,a),s=Math.max(s,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(s),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const r=e.strValue;return Ql(t.params?Yl(r,t.params,t.errors):r,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const r=t.currentAnimateTimings=this._visitTiming(e.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(r.duration),this.visitStyle(i,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.getCurrentStyleProperties().length&&r.forwardFrame();const i=s&&s.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(i):r.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const r=t.currentAnimateTimings,s=t.currentTimeline.duration,i=r.duration,a=t.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(c=>{a.forwardTime((c.offset||0)*i),a.setStyles(c.styles,c.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(s+i),t.previousNode=e}visitQuery(e,t){const r=t.currentTimeline.currentTime,s=e.options||{},i=s.delay?Bs(s.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ru);let o=r;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=a.length;let c=null;a.forEach((l,u)=>{t.currentQueryIndex=u;const h=t.createSubContext(e.options,l);i&&h.delayNextStep(i),l===t.element&&(c=h.currentTimeline),en(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,h.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),c&&(t.currentTimeline.mergeTimelineCollectedStyles(c),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const r=t.parentContext,s=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1);let c=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":c=a-c;break;case"full":c=r.currentStaggerTime}const u=t.currentTimeline;c&&u.delayNextStep(c);const h=u.currentTime;en(this,e.animation,t),t.previousNode=e,r.currentStaggerTime=s.currentTime-h+(s.startTime-r.currentTimeline.startTime)}}const ru={};class $p{constructor(e,t,r,s,i,o,a,c){this._driver=e,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ru,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new su(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const r=e;let s=this.options;null!=r.duration&&(s.duration=Bs(r.duration)),null!=r.delay&&(s.delay=Bs(r.delay));const i=r.params;if(i){let o=s.params;o||(o=this.options.params={}),Object.keys(i).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Yl(i[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const r=e.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return e}createSubContext(e=null,t,r){const s=t||this.element,i=new $p(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ru,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,r){const s={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},i=new _V(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,s,e.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,r,s,i,o){let a=[];if(s&&a.push(this.element),e.length>0){e=(e=e.replace(hV,"."+this._enterClassName)).replace(gV,"."+this._leaveClassName);let l=this._driver.query(this.element,e,1!=r);0!==r&&(l=r<0?l.slice(l.length+r,l.length):l.slice(0,r)),a.push(...l)}return!i&&0==a.length&&o.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),a}}class su{constructor(e,t,r,s){this._driver=e,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new su(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Ar,this._currentKeyframe[t]=Ar}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,r,s){t&&(this._previousKeyframe.easing=t);const i=s&&s.params||{},o=function(n,e){const t={};let r;return n.forEach(s=>{"*"===s?(r=r||Object.keys(e),r.forEach(i=>{t[i]=Ar})):ns(s,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const c=Yl(o[a],i,r);this._pendingStyles[a]=c,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ar),this._updateStyle(a,c)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const r=this._styleSummary[t],s=e._styleSummary[t];(!r||s.time>r.time)&&this._updateStyle(t,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((a,c)=>{const l=ns(a,!0);Object.keys(l).forEach(u=>{const h=l[u];"!"==h?e.add(u):h==Ar&&t.add(u)}),r||(l.offset=c/this.duration),s.push(l)});const i=e.size?Jl(e.values()):[],o=t.size?Jl(t.values()):[];if(r){const a=s[0],c=co(a);a.offset=0,c.offset=1,s=[a,c]}return Up(this.element,s,i,o,this.duration,this.startTime,this.easing,!1)}}class _V extends su{constructor(e,t,r,s,i,o,a=!1){super(e,t,o.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],o=r+t,a=t/o,c=ns(e[0],!1);c.offset=0,i.push(c);const l=ns(e[0],!1);l.offset=UC(a),i.push(l);const u=e.length-1;for(let h=1;h<=u;h++){let p=ns(e[h],!1);p.offset=UC((t+p.offset*r)/o),i.push(p)}r=o,t=0,s="",e=i}return Up(this.element,e,this.preStyleProps,this.postStyleProps,r,t,s,!0)}}function UC(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class Wp{}class bV extends Wp{normalizePropertyName(e,t){return Lp(e)}normalizeStyleValue(e,t,r,s){let i="";const o=r.toString().trim();if(wV[t]&&0!==r&&"0"!==r)if("number"==typeof r)i="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&s.push(`Please provide a CSS unit value for ${e}:${r}`)}return o+i}}const wV=(()=>function(n){const e={};return n.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function HC(n,e,t,r,s,i,o,a,c,l,u,h,p){return{type:0,element:n,triggerName:e,isRemovalTransition:s,fromState:t,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:p}}const zp={};class $C{constructor(e,t,r){this._triggerName=e,this.ast=t,this._stateStyles=r}match(e,t,r,s){return function(n,e,t,r,s){return n.some(i=>i(e,t,r,s))}(this.ast.matchers,e,t,r,s)}buildStyles(e,t,r){const s=this._stateStyles["*"],i=this._stateStyles[e],o=s?s.buildStyles(t,r):{};return i?i.buildStyles(t,r):o}build(e,t,r,s,i,o,a,c,l,u){const h=[],p=this.ast.options&&this.ast.options.params||zp,y=this.buildStyles(r,a&&a.params||zp,h),E=c&&c.params||zp,w=this.buildStyles(s,E,h),D=new Set,C=new Map,R=new Map,x="void"===s,z={params:Object.assign(Object.assign({},p),E)},ve=u?[]:Hp(e,t,this.ast.animation,i,o,y,w,z,l,h);let Se=0;if(ve.forEach(Ct=>{Se=Math.max(Ct.duration+Ct.delay,Se)}),h.length)return HC(t,this._triggerName,r,s,x,y,w,[],[],C,R,Se,h);ve.forEach(Ct=>{const Dt=Ct.element,Pr=Xt(C,Dt,{});Ct.preStyleProps.forEach(zn=>Pr[zn]=!0);const kr=Xt(R,Dt,{});Ct.postStyleProps.forEach(zn=>kr[zn]=!0),Dt!==t&&D.add(Dt)});const Pt=Jl(D.values());return HC(t,this._triggerName,r,s,x,y,w,ve,Pt,C,R,Se)}}class CV{constructor(e,t,r){this.styles=e,this.defaultParams=t,this.normalizer=r}buildStyles(e,t){const r={},s=co(this.defaultParams);return Object.keys(e).forEach(i=>{const o=e[i];null!=o&&(s[i]=o)}),this.styles.styles.forEach(i=>{if("string"!=typeof i){const o=i;Object.keys(o).forEach(a=>{let c=o[a];c.length>1&&(c=Yl(c,s,t));const l=this.normalizer.normalizePropertyName(a,t);c=this.normalizer.normalizeStyleValue(a,l,c,t),r[l]=c})}}),r}}class SV{constructor(e,t,r){this.name=e,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states={},t.states.forEach(s=>{this.states[s.name]=new CV(s.style,s.options&&s.options.params||{},r)}),WC(this.states,"true","1"),WC(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new $C(e,s,this.states))}),this.fallbackTransition=function(n,e,t){return new $C(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,r,s){return this.transitionFactories.find(o=>o.match(e,t,r,s))||null}matchStyles(e,t,r){return this.fallbackTransition.buildStyles(e,t,r)}}function WC(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const IV=new nu;class MV{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,t){const r=[],s=Bp(this._driver,t,r);if(r.length)throw new Error(`Unable to build the animation due to the following errors: ${r.join("\n")}`);this._animations[e]=s}_buildPlayer(e,t,r){const s=e.element,i=CC(0,this._normalizer,0,e.keyframes,t,r);return this._driver.animate(s,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,r={}){const s=[],i=this._animations[e];let o;const a=new Map;if(i?(o=Hp(this._driver,t,i,Fp,ql,{},{},r,IV,s),o.forEach(u=>{const h=Xt(a,u.element,{});u.postStyleProps.forEach(p=>h[p]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error(`Unable to create the animation due to the following errors: ${s.join("\n")}`);a.forEach((u,h)=>{Object.keys(u).forEach(p=>{u[p]=this._driver.computeStyle(h,p,Ar)})});const l=ts(o.map(u=>{const h=a.get(u.element);return this._buildPlayer(u,{},h)}));return this._playersById[e]=l,l.onDestroy(()=>this.destroy(e)),this.players.push(l),l}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error(`Unable to find the timeline player referenced by ${e}`);return t}listen(e,t,r,s){const i=Sp(t,"","","");return Cp(this._getPlayer(e),r,i,s),()=>{}}command(e,t,r,s){if("register"==r)return void this.register(e,s[0]);if("create"==r)return void this.create(e,t,s[0]||{});const i=this._getPlayer(e);switch(r){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(e)}}}const zC="ng-animate-queued",qC="ng-animate-disabled",GC=".ng-animate-disabled",NV=[],KC={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},FV={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},En="__ng_removed";class qp{constructor(e,t=""){this.namespaceId=t;const r=e&&e.hasOwnProperty("value");if(this.value=function(n){return null!=n?n:null}(r?e.value:e),r){const i=co(e);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const r=this.options.params;Object.keys(t).forEach(s=>{null==r[s]&&(r[s]=t[s])})}}}const ka="void",Gp=new qp(ka);class OV{constructor(e,t,r){this.id=e,this.hostElement=t,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,vn(t,this._hostClassName)}listen(e,t,r,s){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${r}" because the animation trigger "${t}" doesn't exist!`);if(null==r||0==r.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if(!function(n){return"start"==n||"done"==n}(r))throw new Error(`The provided animation trigger event "${r}" for the animation trigger "${t}" is not supported!`);const i=Xt(this._elementListeners,e,[]),o={name:t,phase:r,callback:s};i.push(o);const a=Xt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(vn(e,Gl),vn(e,Gl+"-"+t),a[t]=Gp),()=>{this._engine.afterFlush(()=>{const c=i.indexOf(o);c>=0&&i.splice(c,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,r,s=!0){const i=this._getTrigger(t),o=new Kp(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(vn(e,Gl),vn(e,Gl+"-"+t),this._engine.statesByElement.set(e,a={}));let c=a[t];const l=new qp(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a[t]=l,c||(c=Gp),l.value!==ka&&c.value===l.value){if(!function(n,e){const t=Object.keys(n),r=Object.keys(e);if(t.length!=r.length)return!1;for(let s=0;s{js(e,w),ar(e,D)})}return}const p=Xt(this._engine.playersByElement,e,[]);p.forEach(E=>{E.namespaceId==this.id&&E.triggerName==t&&E.queued&&E.destroy()});let m=i.matchTransition(c.value,l.value,e,l.params),y=!1;if(!m){if(!s)return;m=i.fallbackTransition,y=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:m,fromState:c,toState:l,player:o,isFallbackTransition:y}),y||(vn(e,zC),o.onStart(()=>{lo(e,zC)})),o.onDone(()=>{let E=this.players.indexOf(o);E>=0&&this.players.splice(E,1);const w=this._engine.playersByElement.get(e);if(w){let D=w.indexOf(o);D>=0&&w.splice(D,1)}}),this.players.push(o),p.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,r)=>{delete t[e]}),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const r=this._engine.driver.query(e,Kl,!0);r.forEach(s=>{if(s[En])return;const i=this._engine.fetchNamespacesByElement(s);i.size?i.forEach(o=>o.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(e,t,r,s){const i=this._engine.statesByElement.get(e);if(i){const o=[];if(Object.keys(i).forEach(a=>{if(this._triggers[a]){const c=this.trigger(e,a,ka,s);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),r&&ts(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(t&&r){const s=new Set;t.forEach(i=>{const o=i.name;if(s.has(o))return;s.add(o);const c=this._triggers[o].fallbackTransition,l=r[o]||Gp,u=new qp(ka),h=new Kp(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:c,fromState:l,toState:u,player:h,isFallbackTransition:!0})})}}removeNode(e,t){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let s=!1;if(r.totalAnimations){const i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)s=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(e),s)r.markElementAsRemoved(this.id,e,!1,t);else{const i=e[En];(!i||i===KC)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}insertNode(e,t){vn(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(r=>{const s=r.player;if(s.destroyed)return;const i=r.element,o=this._elementListeners.get(i);o&&o.forEach(a=>{if(a.name==r.triggerName){const c=Sp(i,r.triggerName,r.fromState.value,r.toState.value);c._data=e,Cp(r.player,a.phase,c,a.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{const i=r.transition.ast.depCount,o=s.transition.ast.depCount;return 0==i||0==o?i-o:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(r=>r.element===e)||t,t}}class PV{constructor(e,t,r){this.bodyNode=e,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,i)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,t){const r=new OV(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,t){const r=this._namespaceList.length-1;if(r>=0){let s=!1;for(let i=r;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),s=!0;break}s||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,t)),r}registerTrigger(e,t,r){let s=this._namespaceLookup[e];s&&s.register(t,r)&&this.totalAnimations++}destroy(e,t){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,r=this.statesByElement.get(e);if(r){const s=Object.keys(r);for(let i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),vn(e,qC)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),lo(e,qC))}removeNode(e,t,r,s){if(iu(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s),r){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,r,s){this.collectedLeaveElements.push(t),t[En]={namespaceId:e,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1}}listen(e,t,r,s,i){return iu(t)?this._fetchNamespace(e).listen(t,r,s,i):()=>{}}_buildInstruction(e,t,r,s,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,s,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,Kl,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Op,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ts(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e[En];if(t&&t.setForRemoval){if(e[En]=KC,t.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,GC)&&this.markElementAsDisabled(e,!1),this.driver.query(e,GC,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;rr()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?ts(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,t){const r=new nu,s=[],i=new Map,o=[],a=new Map,c=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);const V=this.driver.query(P,".ng-animate-queued",!0);for(let Y=0;Y{const Y=Fp+E++;y.set(V,Y),P.forEach(ge=>vn(ge,Y))});const w=[],D=new Set,C=new Set;for(let P=0;PD.add(ge)):C.add(V))}const R=new Map,x=JC(p,Array.from(D));x.forEach((P,V)=>{const Y=ql+E++;R.set(V,Y),P.forEach(ge=>vn(ge,Y))}),e.push(()=>{m.forEach((P,V)=>{const Y=y.get(V);P.forEach(ge=>lo(ge,Y))}),x.forEach((P,V)=>{const Y=R.get(V);P.forEach(ge=>lo(ge,Y))}),w.forEach(P=>{this.processLeaveNode(P)})});const z=[],ve=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(Y=>{const ge=Y.player,it=Y.element;if(z.push(ge),this.collectedEnterElements.length){const dr=it[En];if(dr&&dr.setForMove)return void ge.destroy()}const ur=!h||!this.driver.containsElement(h,it),nn=R.get(it),ls=y.get(it),He=this._buildInstruction(Y,r,ls,nn,ur);if(He.errors&&He.errors.length)ve.push(He);else{if(ur)return ge.onStart(()=>js(it,He.fromStyles)),ge.onDestroy(()=>ar(it,He.toStyles)),void s.push(ge);if(Y.isFallbackTransition)return ge.onStart(()=>js(it,He.fromStyles)),ge.onDestroy(()=>ar(it,He.toStyles)),void s.push(ge);He.timelines.forEach(dr=>dr.stretchStartingKeyframe=!0),r.append(it,He.timelines),o.push({instruction:He,player:ge,element:it}),He.queriedElements.forEach(dr=>Xt(a,dr,[]).push(ge)),He.preStyleProps.forEach((dr,Qa)=>{const Ou=Object.keys(dr);if(Ou.length){let Ys=c.get(Qa);Ys||c.set(Qa,Ys=new Set),Ou.forEach(Rg=>Ys.add(Rg))}}),He.postStyleProps.forEach((dr,Qa)=>{const Ou=Object.keys(dr);let Ys=l.get(Qa);Ys||l.set(Qa,Ys=new Set),Ou.forEach(Rg=>Ys.add(Rg))})}});if(ve.length){const P=[];ve.forEach(V=>{P.push(`@${V.triggerName} has failed due to:\n`),V.errors.forEach(Y=>P.push(`- ${Y}\n`))}),z.forEach(V=>V.destroy()),this.reportError(P)}const Se=new Map,Pt=new Map;o.forEach(P=>{const V=P.element;r.has(V)&&(Pt.set(V,V),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Se))}),s.forEach(P=>{const V=P.element;this._getPreviousPlayers(V,!1,P.namespaceId,P.triggerName,null).forEach(ge=>{Xt(Se,V,[]).push(ge),ge.destroy()})});const Ct=w.filter(P=>XC(P,c,l)),Dt=new Map;YC(Dt,this.driver,C,l,Ar).forEach(P=>{XC(P,c,l)&&Ct.push(P)});const kr=new Map;m.forEach((P,V)=>{YC(kr,this.driver,new Set(P),c,"!")}),Ct.forEach(P=>{const V=Dt.get(P),Y=kr.get(P);Dt.set(P,Object.assign(Object.assign({},V),Y))});const zn=[],_o=[],yo={};o.forEach(P=>{const{element:V,player:Y,instruction:ge}=P;if(r.has(V)){if(u.has(V))return Y.onDestroy(()=>ar(V,ge.toStyles)),Y.disabled=!0,Y.overrideTotalTime(ge.totalTime),void s.push(Y);let it=yo;if(Pt.size>1){let nn=V;const ls=[];for(;nn=nn.parentNode;){const He=Pt.get(nn);if(He){it=He;break}ls.push(nn)}ls.forEach(He=>Pt.set(He,it))}const ur=this._buildAnimation(Y.namespaceId,ge,Se,i,kr,Dt);if(Y.setRealPlayer(ur),it===yo)zn.push(Y);else{const nn=this.playersByElement.get(it);nn&&nn.length&&(Y.parentPlayer=ts(nn)),s.push(Y)}}else js(V,ge.fromStyles),Y.onDestroy(()=>ar(V,ge.toStyles)),_o.push(Y),u.has(V)&&s.push(Y)}),_o.forEach(P=>{const V=i.get(P.element);if(V&&V.length){const Y=ts(V);P.setRealPlayer(Y)}}),s.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P!ur.destroyed);it.length?BV(this,V,it):this.processLeaveNode(V)}return w.length=0,zn.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();const V=this.players.indexOf(P);this.players.splice(V,1)}),P.play()}),zn}elementContainsData(e,t){let r=!1;const s=t[En];return s&&s.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(e).elementContainsData(t)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,r,s,i){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const c=!i||i==ka;a.forEach(l=>{l.queued||!c&&l.triggerName!=s||o.push(l)})}}return(r||s)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||s&&s!=a.triggerName))),o}_beforeAnimationBuild(e,t,r){const i=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const c of t.timelines){const l=c.element,u=l!==i,h=Xt(r,l,[]);this._getPreviousPlayers(l,u,o,a,t.toState).forEach(m=>{const y=m.getRealPlayer();y.beforeDestroy&&y.beforeDestroy(),m.destroy(),h.push(m)})}js(i,t.fromStyles)}_buildAnimation(e,t,r,s,i,o){const a=t.triggerName,c=t.element,l=[],u=new Set,h=new Set,p=t.timelines.map(y=>{const E=y.element;u.add(E);const w=E[En];if(w&&w.removedBeforeQueried)return new ao(y.duration,y.delay);const D=E!==c,C=function(n){const e=[];return ZC(n,e),e}((r.get(E)||NV).map(Se=>Se.getRealPlayer())).filter(Se=>!!Se.element&&Se.element===E),R=i.get(E),x=o.get(E),z=CC(0,this._normalizer,0,y.keyframes,R,x),ve=this._buildPlayer(y,z,C);if(y.subTimeline&&s&&h.add(E),D){const Se=new Kp(e,a,E);Se.setRealPlayer(ve),l.push(Se)}return ve});l.forEach(y=>{Xt(this.playersByQueriedElement,y.element,[]).push(y),y.onDone(()=>function(n,e,t){let r;if(n instanceof Map){if(r=n.get(e),r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&n.delete(e)}}else if(r=n[e],r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&delete n[e]}return r}(this.playersByQueriedElement,y.element,y))}),u.forEach(y=>vn(y,xC));const m=ts(p);return m.onDestroy(()=>{u.forEach(y=>lo(y,xC)),ar(c,t.toStyles)}),h.forEach(y=>{Xt(s,y,[]).push(m)}),m}_buildPlayer(e,t,r){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,r):new ao(e.duration,e.delay)}}class Kp{constructor(e,t,r){this.namespaceId=e,this.triggerName=t,this.element=r,this._player=new ao,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(r=>Cp(e,t,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){Xt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function iu(n){return n&&1===n.nodeType}function QC(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function YC(n,e,t,r,s){const i=[];t.forEach(c=>i.push(QC(c)));const o=[];r.forEach((c,l)=>{const u={};c.forEach(h=>{const p=u[h]=e.computeStyle(l,h,s);(!p||0==p.length)&&(l[En]=FV,o.push(l))}),n.set(l,u)});let a=0;return t.forEach(c=>QC(c,i[a++])),o}function JC(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const s=new Set(e),i=new Map;function o(a){if(!a)return 1;let c=i.get(a);if(c)return c;const l=a.parentNode;return c=t.has(l)?l:s.has(l)?1:o(l),i.set(a,c),c}return e.forEach(a=>{const c=o(a);1!==c&&t.get(c).push(a)}),t}const ou="$$classes";function vn(n,e){if(n.classList)n.classList.add(e);else{let t=n[ou];t||(t=n[ou]={}),t[e]=!0}}function lo(n,e){if(n.classList)n.classList.remove(e);else{let t=n[ou];t&&delete t[e]}}function BV(n,e,t){ts(t).onDone(()=>n.processLeaveNode(e))}function ZC(n,e){for(let t=0;ts.add(i)):e.set(n,r),t.delete(n),!0}class au{constructor(e,t,r){this.bodyNode=e,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,i)=>{},this._transitionEngine=new PV(e,t,r),this._timelineEngine=new MV(e,t,r),this._transitionEngine.onRemovalComplete=(s,i)=>this.onRemovalComplete(s,i)}registerTrigger(e,t,r,s,i){const o=e+"-"+s;let a=this._triggerCache[o];if(!a){const c=[],l=Bp(this._driver,i,c);if(c.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${c.join("\n - ")}`);a=function(n,e,t){return new SV(n,e,t)}(s,l,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,s,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,r,s){this._transitionEngine.insertNode(e,t,r,s)}onRemove(e,t,r,s){this._transitionEngine.removeNode(e,t,s||!1,r)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,r,s){if("@"==r.charAt(0)){const[i,o]=DC(r);this._timelineEngine.command(i,t,o,s)}else this._transitionEngine.trigger(e,t,r,s)}listen(e,t,r,s,i){if("@"==r.charAt(0)){const[o,a]=DC(r);return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,r,s,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function eD(n,e){let t=null,r=null;return Array.isArray(e)&&e.length?(t=Qp(e[0]),e.length>1&&(r=Qp(e[e.length-1]))):e&&(t=Qp(e)),t||r?new HV(n,t,r):null}let HV=(()=>{class n{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let i=n.initialStylesByElement.get(t);i||n.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&ar(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ar(this._element,this._initialStyles),this._endStyles&&(ar(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(js(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(js(this._element,this._endStyles),this._endStyles=null),ar(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Qp(n){let e=null;const t=Object.keys(n);for(let r=0;rthis._handleCallback(c)}apply(){(function(n,e){const t=Jp(n,"").trim();let r=0;t.length&&(function(n,e){let t=0;for(let r=0;r=this._delay&&r>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),iD(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(n,e){const r=Jp(n,"").split(","),s=Yp(r,e);s>=0&&(r.splice(s,1),cu(n,"",r.join(",")))}(this._element,this._name))}}function rD(n,e,t){cu(n,"PlayState",t,sD(n,e))}function sD(n,e){const t=Jp(n,"");return t.indexOf(",")>0?Yp(t.split(","),e):Yp([t],e)}function Yp(n,e){for(let t=0;t=0)return t;return-1}function iD(n,e,t){t?n.removeEventListener(nD,e):n.addEventListener(nD,e)}function cu(n,e,t,r){const s=tD+e;if(null!=r){const i=n.style[s];if(i.length){const o=i.split(",");o[r]=t,t=o.join(",")}}n.style[s]=t}function Jp(n,e){return n.style[tD+e]||""}class oD{constructor(e,t,r,s,i,o,a,c){this.element=e,this.keyframes=t,this.animationName=r,this._duration=s,this._delay=i,this._finalStyles=a,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=s+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new qV(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(r=>{"offset"!=r&&(e[r]=t?this._finalStyles[r]:Vp(this.element,r))})}this.currentSnapshot=e}}class ZV extends ao{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=MC(t)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class cD{constructor(){this._count=0}validateStyleProperty(e){return Mp(e)}matchesElement(e,t){return Ap(e,t)}containsElement(e,t){return Rp(e,t)}query(e,t,r){return xp(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,r){r=r.map(a=>MC(a));let s=`@keyframes ${t} {\n`,i="";r.forEach(a=>{i=" ";const c=parseFloat(a.offset);s+=`${i}${100*c}% {\n`,i+=" ",Object.keys(a).forEach(l=>{const u=a[l];switch(l){case"offset":return;case"easing":return void(u&&(s+=`${i}animation-timing-function: ${u};\n`));default:return void(s+=`${i}${l}: ${u};\n`)}}),s+=`${i}}\n`}),s+="}\n";const o=document.createElement("style");return o.textContent=s,o}animate(e,t,r,s,i,o=[],a){const c=o.filter(w=>w instanceof oD),l={};kC(r,s)&&c.forEach(w=>{let D=w.currentSnapshot;Object.keys(D).forEach(C=>l[C]=D[C])});const u=function(n){let e={};return n&&(Array.isArray(n)?n:[n]).forEach(r=>{Object.keys(r).forEach(s=>{"offset"==s||"easing"==s||(e[s]=r[s])})}),e}(t=LC(e,t,l));if(0==r)return new ZV(e,u);const h="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(e,h,t);(function(n){var e;const t=null===(e=n.getRootNode)||void 0===e?void 0:e.call(n);return"undefined"!=typeof ShadowRoot&&t instanceof ShadowRoot?t:document.head})(e).appendChild(p);const y=eD(e,t),E=new oD(e,t,h,r,s,i,u,y);return E.onDestroy(()=>function(n){n.parentNode.removeChild(n)}(p)),E}}class uD{constructor(e,t,r,s){this.element=e,this.keyframes=t,this.options=r,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,r){return e.animate(t,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Vp(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class rB{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(dD().toString()),this._cssKeyframesDriver=new cD}validateStyleProperty(e){return Mp(e)}matchesElement(e,t){return Ap(e,t)}containsElement(e,t){return Rp(e,t)}query(e,t,r){return xp(e,t,r)}computeStyle(e,t,r){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,r,s,i,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,r,s,i,o);const u={duration:r,delay:s,fill:0==s?"both":"forwards"};i&&(u.easing=i);const h={},p=o.filter(y=>y instanceof uD);kC(r,s)&&p.forEach(y=>{let E=y.currentSnapshot;Object.keys(E).forEach(w=>h[w]=E[w])});const m=eD(e,t=LC(e,t=t.map(y=>ns(y,!1)),h));return new uD(e,t,u,m)}}function dD(){return vC()&&Element.prototype.animate||{}}let iB=(()=>{class n extends _C{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:We.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?yC(t):t;return fD(this._renderer,null,r,"register",[s]),new oB(r,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(S(Ms),S(ie))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class oB extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new aB(this._id,e,t||{},this._renderer)}}class aB{constructor(e,t,r,s){this.id=e,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return fD(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function fD(n,e,t,r,s){return n.setProperty(e,`@@${t}:${r}`,s)}const hD="@.disabled";let cB=(()=>{class n{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(i,o)=>{o&&o.parentNode(i)&&o.removeChild(i.parentNode,i)}}createRenderer(t,r){const i=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let u=this._rendererCache.get(i);return u||(u=new pD("",i,this.engine),this._rendererCache.set(i,u)),u}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const c=u=>{Array.isArray(u)?u.forEach(c):this.engine.registerTrigger(o,a,t,u.name,u)};return r.data.animation.forEach(c),new lB(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&tr(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(i=>{const[o,a]=i;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(t){return new(t||n)(S(Ms),S(au),S(pe))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();class pD{constructor(e,t,r){this.namespaceId=e,this.delegate=t,this.engine=r,this.destroyNode=this.delegate.destroyNode?s=>t.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,r,s=!0){this.delegate.insertBefore(e,t,r),this.engine.onInsert(this.namespaceId,t,e,s)}removeChild(e,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,r,s){this.delegate.setAttribute(e,t,r,s)}removeAttribute(e,t,r){this.delegate.removeAttribute(e,t,r)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,r,s){this.delegate.setStyle(e,t,r,s)}removeStyle(e,t,r){this.delegate.removeStyle(e,t,r)}setProperty(e,t,r){"@"==t.charAt(0)&&t==hD?this.disableAnimations(e,!!r):this.delegate.setProperty(e,t,r)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,r){return this.delegate.listen(e,t,r)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class lB extends pD{constructor(e,t,r,s){super(t,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==hD?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,t.substr(1),r):this.delegate.setProperty(e,t,r)}listen(e,t,r){if("@"==t.charAt(0)){const s=function(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let i=t.substr(1),o="";return"@"!=i.charAt(0)&&([i,o]=function(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,t,r)}}let fB=(()=>{class n extends au{constructor(t,r,s){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(S(ie),S(Np),S(Wp))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const rs=new U("AnimationModuleType"),gD=[{provide:_C,useClass:iB},{provide:Wp,useFactory:function(){return new bV}},{provide:au,useClass:fB},{provide:Ms,useFactory:function(n,e,t){return new cB(n,e,t)},deps:[Hl,au,pe]}],mD=[{provide:Np,useFactory:function(){return"function"==typeof dD()?new rB:new cD}},{provide:rs,useValue:"BrowserAnimations"},...gD],_D=[{provide:Np,useClass:AC},{provide:rs,useValue:"NoopAnimations"},...gD];let mB=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?_D:mD}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({providers:mD,imports:[dp]}),n})();const yD=new As("12.2.13"),CB=new U("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Hs,Cn=(()=>{class n{constructor(t,r,s){this._hasDoneGlobalChecks=!1,this._document=s,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=r,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!(!Dh()||"undefined"!=typeof __karma__&&__karma__||"undefined"!=typeof jasmine&&jasmine||"undefined"!=typeof jest&&jest||"undefined"!=typeof Mocha&&Mocha)&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const r=getComputedStyle(t);r&&"none"!==r.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&yD.full!==mC.full&&console.warn("The Angular Material version ("+yD.full+") does not match the Angular CDK version ("+mC.full+").\nPlease ensure the versions of these two packages exactly match.")}}return n.\u0275fac=function(t){return new(t||n)(S(hC),S(CB,8),S(ie))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[gC],gC]}),n})();function bD(n){return class extends n{constructor(...e){super(...e),this._disabled=!1}get disabled(){return this._disabled}set disabled(e){this._disabled=ks(e)}}}function Zp(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const r=t||this.defaultColor;r!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),r&&this._elementRef.nativeElement.classList.add(`mat-${r}`),this._color=r)}}}function DB(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=ks(e)}}}try{Hs="undefined"!=typeof Intl}catch(n){Hs=!1}class kB{constructor(e,t,r){this._renderer=e,this.element=t,this.config=r,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ED={enterDuration:225,exitDuration:150},Xp=mp({passive:!0}),vD=["mousedown","touchstart"],CD=["mouseup","mouseleave","touchend","touchcancel"];class VB{constructor(e,t,r,s){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=so(r))}fadeInRipple(e,t,r={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},ED),r.animation);r.centered&&(e=s.left+s.width/2,t=s.top+s.height/2);const o=r.radius||function(n,e,t){const r=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),s=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(r*r+s*s)}(e,t,s),a=e-s.left,c=t-s.top,l=i.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=c-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=r.color&&(u.style.backgroundColor=r.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u),function(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const h=new kB(this,u,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const p=h===this._mostRecentTransientRipple;h.state=1,!r.persistent&&(!p||!this._isPointerDown)&&h.fadeOut()},l),h}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const r=e.element,s=Object.assign(Object.assign({},ED),e.config.animation);r.style.transitionDuration=`${s.exitDuration}ms`,r.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,r.parentNode.removeChild(r)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=so(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(vD))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(CD),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=rC(e),r=this._lastTouchStartEvent&&Date.now(){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Xp)})})}_removeTriggerEvents(){this._triggerElement&&(vD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Xp)}),this._pointerUpEventsRegistered&&CD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Xp)}))}}const UB=new U("mat-ripple-global-options");let du=(()=>{class n{constructor(t,r,s,i,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new VB(this,r,t,s)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,r=0,s){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,r,Object.assign(Object.assign({},this.rippleConfig),s)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(pe),M(wn),M(UB,8),M(rs,8))},n.\u0275dir=Ae({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,r){2&t&&Zt("mat-ripple-unbounded",r.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),n})(),DD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Cn,gp],Cn]}),n})();function fu(n,e){return new fe(t=>{const r=n.length;if(0===r)return void t.complete();const s=new Array(r);let i=0,o=0;for(let a=0;a{l||(l=!0,o++),s[a]=u},error:u=>t.error(u),complete:()=>{i++,(i===r||!l)&&(o===r&&t.next(e?e.reduce((u,h,p)=>(u[h]=s[p],u),{}):s),t.complete())}}))}})}function ss(){}function vt(n,e,t){return function(s){return s.lift(new ZB(n,e,t))}}class ZB{constructor(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}call(e,t){return t.subscribe(new XB(e,this.nextOrObserver,this.error,this.complete))}}class XB extends _e{constructor(e,t,r,s){super(e),this._tapNext=ss,this._tapError=ss,this._tapComplete=ss,this._tapError=r||ss,this._tapComplete=s||ss,St(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||ss,this._tapError=t.error||ss,this._tapComplete=t.complete||ss)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}function is(n){return function(t){const r=new e8(n),s=t.lift(r);return r.caught=s}}class e8{constructor(e){this.selector=e}call(e,t){return t.subscribe(new t8(e,this.selector,this.caught))}}class t8 extends tc{constructor(e,t,r){super(e),this.selector=t,this.caught=r}error(e){if(!this.isStopped){let t;try{t=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new on(this);this.add(r);const s=nc(t,r);s!==r&&this.add(s)}}}function MD(n){return e=>e.lift(new n8(n))}class n8{constructor(e){this.callback=e}call(e,t){return t.subscribe(new r8(e,this.callback))}}class r8 extends _e{constructor(e,t){super(e),this.add(new de(t))}}function uo(n,e){return at(n,e,1)}function $s(n,e){return function(r){return r.lift(new s8(n,e))}}class s8{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new i8(e,this.predicate,this.thisArg))}}class i8 extends _e{constructor(e,t,r){super(e),this.predicate=t,this.thisArg=r,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)}}class AD{}class Rr{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const s=t.slice(0,r),i=s.toLowerCase(),o=t.slice(r+1).trim();this.maybeSetNormalizedName(s,i),this.headers.has(i)?this.headers.get(i).push(o):this.headers.set(i,[o])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(t=>{let r=e[t];const s=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(s,r),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof Rr?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(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){const t=new Rr;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Rr?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){const t=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,t);const s=("a"===e.op?this.headers.get(t):void 0)||[];s.push(...r),this.headers.set(t,s);break;case"d":const i=e.value;if(i){let o=this.headers.get(t);if(!o)return;o=o.filter(a=>-1===i.indexOf(a)),0===o.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}}class o8{encodeKey(e){return xD(e)}encodeValue(e){return xD(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const c8=/%(\d[a-f0-9])/gi,l8={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function xD(n){return encodeURIComponent(n).replace(c8,(e,t)=>{var r;return null!==(r=l8[t])&&void 0!==r?r:e})}function ND(n){return`${n}`}class os{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new o8,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(n,e){const t=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(s=>{const i=s.indexOf("="),[o,a]=-1==i?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],c=t.get(o)||[];c.push(a),t.set(o,c)}),t}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{const r=e.fromObject[t];this.map.set(t,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){const t=[];return Object.keys(e).forEach(r=>{const s=e[r];Array.isArray(s)?s.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:s,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const t=this.encoder.encodeKey(e);return this.map.get(e).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const t=new os({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(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":const t=("a"===e.op?this.map.get(e.param):void 0)||[];t.push(ND(e.value)),this.map.set(e.param,t);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const s=r.indexOf(ND(e.value));-1!==s&&r.splice(s,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class u8{constructor(){this.map=new Map}set(e,t){return this.map.set(e,t),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}keys(){return this.map.keys()}}function FD(n){return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer}function OD(n){return"undefined"!=typeof Blob&&n instanceof Blob}function PD(n){return"undefined"!=typeof FormData&&n instanceof FormData}class Va{constructor(e,t,r,s){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==r?r:null,i=s):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 Rr),this.context||(this.context=new u8),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ap.set(m,e.setHeaders[m]),l)),e.setParams&&(u=Object.keys(e.setParams).reduce((p,m)=>p.set(m,e.setParams[m]),u)),new Va(r,s,o,{params:u,headers:l,context:h,reportProgress:c,responseType:i,withCredentials:a})}}var Ke=(()=>((Ke=Ke||{})[Ke.Sent=0]="Sent",Ke[Ke.UploadProgress=1]="UploadProgress",Ke[Ke.ResponseHeader=2]="ResponseHeader",Ke[Ke.DownloadProgress=3]="DownloadProgress",Ke[Ke.Response=4]="Response",Ke[Ke.User=5]="User",Ke))();class hu extends class{constructor(e,t=200,r="OK"){this.headers=e.headers||new Rr,this.status=void 0!==e.status?e.status:t,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(e={}){super(e),this.type=Ke.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new hu({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}function ng(n,e){return{body:e,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let pu=(()=>{class n{constructor(t){this.handler=t}request(t,r,s={}){let i;if(t instanceof Va)i=t;else{let c,l;c=s.headers instanceof Rr?s.headers:new Rr(s.headers),s.params&&(l=s.params instanceof os?s.params:new os({fromObject:s.params})),i=new Va(t,r,void 0!==s.body?s.body:null,{headers:c,context:s.context,params:l,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const o=$(i).pipe(uo(c=>this.handler.handle(c)));if(t instanceof Va||"events"===s.observe)return o;const a=o.pipe($s(c=>c instanceof hu));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(re(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(re(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(re(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(re(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${s.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 os).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,ng(s,r))}post(t,r,s={}){return this.request("POST",t,ng(s,r))}put(t,r,s={}){return this.request("PUT",t,ng(s,r))}}return n.\u0275fac=function(t){return new(t||n)(S(AD))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const b8=["*"];function UD(n){return Error(`Unable to find icon with the name "${n}"`)}function HD(n){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${n}".`)}function $D(n){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${n}".`)}class Ws{constructor(e,t,r){this.url=e,this.svgText=t,this.options=r}}let gu=(()=>{class n{constructor(t,r,s,i){this._httpClient=t,this._sanitizer=r,this._errorHandler=i,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=s}addSvgIcon(t,r,s){return this.addSvgIconInNamespace("",t,r,s)}addSvgIconLiteral(t,r,s){return this.addSvgIconLiteralInNamespace("",t,r,s)}addSvgIconInNamespace(t,r,s,i){return this._addSvgIconConfig(t,r,new Ws(s,null,i))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,r,s,i){const o=this._sanitizer.sanitize(me.HTML,s);if(!o)throw $D(s);return this._addSvgIconConfig(t,r,new Ws("",o,i))}addSvgIconSet(t,r){return this.addSvgIconSetInNamespace("",t,r)}addSvgIconSetLiteral(t,r){return this.addSvgIconSetLiteralInNamespace("",t,r)}addSvgIconSetInNamespace(t,r,s){return this._addSvgIconSetConfig(t,new Ws(r,null,s))}addSvgIconSetLiteralInNamespace(t,r,s){const i=this._sanitizer.sanitize(me.HTML,r);if(!i)throw $D(r);return this._addSvgIconSetConfig(t,new Ws("",i,s))}registerFontClassAlias(t,r=t){return this._fontCssClassesByAlias.set(t,r),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const r=this._sanitizer.sanitize(me.RESOURCE_URL,t);if(!r)throw HD(t);const s=this._cachedIconsByUrl.get(r);return s?$(mu(s)):this._loadSvgIconFromConfig(new Ws(t,null)).pipe(vt(i=>this._cachedIconsByUrl.set(r,i)),re(i=>mu(i)))}getNamedSvgIcon(t,r=""){const s=WD(r,t);let i=this._svgIconConfigs.get(s);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(r,t),i)return this._svgIconConfigs.set(s,i),this._getSvgFromConfig(i);const o=this._iconSetConfigs.get(r);return o?this._getSvgFromIconSetConfigs(t,o):function(n,e){return new fe(t=>t.error(n))}(UD(s))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?$(mu(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(re(r=>mu(r)))}_getSvgFromIconSetConfigs(t,r){const s=this._extractIconWithNameFromAnySet(t,r);return s?$(s):function(...n){if(1===n.length){const e=n[0];if(Sn(e))return fu(e,null);if(Xe(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return fu(t.map(r=>e[r]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return fu(n=1===n.length&&Sn(n[0])?n[0]:n,null).pipe(re(t=>e(...t)))}return fu(n,null)}(r.filter(o=>!o.svgText).map(o=>this._loadSvgIconSetFromConfig(o).pipe(is(a=>{const l=`Loading icon set URL: ${this._sanitizer.sanitize(me.RESOURCE_URL,o.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),$(null)})))).pipe(re(()=>{const o=this._extractIconWithNameFromAnySet(t,r);if(!o)throw UD(t);return o}))}_extractIconWithNameFromAnySet(t,r){for(let s=r.length-1;s>=0;s--){const i=r[s];if(i.svgText&&i.svgText.indexOf(t)>-1){const o=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(o,t,i.options);if(a)return a}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(vt(r=>t.svgText=r),re(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?$(null):this._fetchIcon(t).pipe(vt(r=>t.svgText=r))}_extractSvgIconFromSet(t,r,s){const i=t.querySelector(`[id="${r}"]`);if(!i)return null;const o=i.cloneNode(!0);if(o.removeAttribute("id"),"svg"===o.nodeName.toLowerCase())return this._setSvgAttributes(o,s);if("symbol"===o.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(o),s);const a=this._svgElementFromString("");return a.appendChild(o),this._setSvgAttributes(a,s)}_svgElementFromString(t){const r=this._document.createElement("DIV");r.innerHTML=t;const s=r.querySelector("svg");if(!s)throw Error(" tag not found");return s}_toSvgElement(t){const r=this._svgElementFromString(""),s=t.attributes;for(let i=0;ithis._inProgressUrlFetches.delete(a)),Og());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(t,r,s){return this._svgIconConfigs.set(WD(t,r),s),this}_addSvgIconSetConfig(t,r){const s=this._iconSetConfigs.get(t);return s?s.push(r):this._iconSetConfigs.set(t,[r]),this}_svgElementFromConfig(t){if(!t.svgElement){const r=this._svgElementFromString(t.svgText);this._setSvgAttributes(r,t.options),t.svgElement=r}return t.svgElement}_getIconConfigFromResolvers(t,r){for(let s=0;se?e.pathname+e.search:""}}}),zD=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T8=n=>`[${n}]`,I8=zD.map(T8).join(", "),M8=/^url\(['"]?#(.*?)['"]?\)$/;let A8=(()=>{class n extends C8{constructor(t,r,s,i,o){super(t),this._iconRegistry=r,this._location=i,this._errorHandler=o,this._inline=!1,this._currentIconFetch=de.EMPTY,s||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=ks(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const r=this._cleanupFontValue(t);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const r=this._cleanupFontValue(t);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const r=t.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const r=t.querySelectorAll("style");for(let i=0;i{s.forEach(o=>{i.setAttribute(o.name,`url('${t}#${o.value}')`)})})}_cacheChildrenWithExternalReferences(t){const r=t.querySelectorAll(I8),s=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{const a=r[i],c=a.getAttribute(o),l=c?c.match(M8):null;if(l){let u=s.get(a);u||(u=[],s.set(a,u)),u.push({name:o,value:l[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[r,s]=this._splitIconName(t);r&&(this._svgNamespace=r),s&&(this._svgName=s),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(s,r).pipe(Na(1)).subscribe(i=>this._setSvgElement(i),i=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${r}:${s}! ${i.message}`))})}}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(gu),ci("aria-hidden"),M(D8),M(Rn))},n.\u0275cmp=cn({type:n,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,r){2&t&&(bt("data-mat-icon-type",r._usingFontIcon()?"font":"svg")("data-mat-icon-name",r._svgName||r.fontIcon)("data-mat-icon-namespace",r._svgNamespace||r.fontSet),Zt("mat-icon-inline",r.inline)("mat-icon-no-color","primary"!==r.color&&"accent"!==r.color&&"warn"!==r.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[tr],ngContentSelectors:b8,decls:1,vars:0,template:function(t,r){1&t&&(ki(),Ds(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),n})(),R8=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Cn],Cn]}),n})();class x8 extends _e{notifyNext(e,t,r,s,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class N8 extends _e{constructor(e,t,r){super(),this.parent=e,this.outerValue=t,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function F8(n,e,t,r,s=new N8(n,t,r)){if(!s.closed)return e instanceof fe?e.subscribe(s):Co(e)(s)}const qD={};class P8{constructor(e){this.resultSelector=e}call(e,t){return t.subscribe(new k8(e,this.resultSelector))}}class k8 extends x8{constructor(e,t){super(e),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(qD),this.observables.push(e)}_complete(){const e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let r=0;r{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function og(...n){return Do(1)($(...n))}function GD(n){return new fe(e=>{let t;try{t=n()}catch(s){return void e.error(s)}return(t?ee(t):hp()).subscribe(e)})}function as(n,e){return"function"==typeof e?t=>t.pipe(as((r,s)=>ee(n(r,s)).pipe(re((i,o)=>e(r,i,s,o))))):t=>t.lift(new V8(n))}class V8{constructor(e){this.project=e}call(e,t){return t.subscribe(new B8(e,this.project))}}class B8 extends tc{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const r=this.index++;try{t=this.project(e,r)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const r=new on(this),s=this.destination;s.add(r),this.innerSubscription=nc(e,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}function KD(n,e){let t=!1;return arguments.length>=2&&(t=!0),function(s){return s.lift(new U8(n,e,t))}}class U8{constructor(e,t,r=!1){this.accumulator=e,this.seed=t,this.hasSeed=r}call(e,t){return t.subscribe(new H8(e,this.accumulator,this.seed,this.hasSeed))}}class H8 extends _e{constructor(e,t,r,s){super(e),this.accumulator=t,this._seed=r,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const t=this.index++;let r;try{r=this.accumulator(this.seed,e,t)}catch(s){this.destination.error(s)}this.seed=r,this.destination.next(r)}}function ag(n){return function(t){return 0===n?hp():t.lift(new $8(n))}}class $8{constructor(e){if(this.total=e,this.total<0)throw new Gv}call(e,t){return t.subscribe(new W8(e,this.total))}}class W8 extends _e{constructor(e,t){super(e),this.total=t,this.ring=new Array,this.count=0}_next(e){const t=this.ring,r=this.total,s=this.count++;t.length0){const r=this.count>=this.total?this.total:this.count,s=this.ring;for(let i=0;ie.lift(new z8(n))}class z8{constructor(e){this.errorFactory=e}call(e,t){return t.subscribe(new q8(e,this.errorFactory))}}class q8 extends _e{constructor(e,t){super(e),this.errorFactory=t,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function G8(){return new _u}function YD(n=null){return e=>e.lift(new K8(n))}class K8{constructor(e){this.defaultValue=e}call(e,t){return t.subscribe(new Q8(e,this.defaultValue))}}class Q8 extends _e{constructor(e,t){super(e),this.defaultValue=t,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function fo(n,e){const t=arguments.length>=2;return r=>r.pipe(n?$s((s,i)=>n(s,i,r)):Fe,Na(1),t?YD(e):QD(()=>new _u))}class xr{constructor(e,t){this.id=e,this.url=t}}class cg extends xr{constructor(e,t,r="imperative",s=null){super(e,t),this.navigationTrigger=r,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ba extends xr{constructor(e,t,r){super(e,t),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class JD extends xr{constructor(e,t,r){super(e,t),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class J8 extends xr{constructor(e,t,r){super(e,t),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Z8 extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class X8 extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ej extends xr{constructor(e,t,r,s,i){super(e,t),this.urlAfterRedirects=r,this.state=s,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tj extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class nj extends xr{constructor(e,t,r,s){super(e,t),this.urlAfterRedirects=r,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZD{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class XD{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rj{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sj{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ij{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oj{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class e0{constructor(e,t,r){this.routerEvent=e,this.position=t,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class aj{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){const t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function ho(n){return new aj(n)}const t0="ngNavigationCancelingError";function lg(n){const e=Error("NavigationCancelingError: "+n);return e[t0]=!0,e}function lj(n,e,t){const r=t.path.split("/");if(r.length>n.length||"full"===t.pathMatch&&(e.hasChildren()||r.lengthr[i]===s)}return n===e}function r0(n){return Array.prototype.concat.apply([],n)}function s0(n){return n.length>0?n[n.length-1]:null}function dt(n,e){for(const t in n)n.hasOwnProperty(t)&&e(n[t],t)}function lr(n){return xf(n)?n:Kc(n)?ee(Promise.resolve(n)):$(n)}const fj={exact:function c0(n,e,t){if(!qs(n.segments,e.segments)||!yu(n.segments,e.segments,t)||n.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!n.children[r]||!c0(n.children[r],e.children[r],t))return!1;return!0},subset:l0},o0={exact:function(n,e){return cr(n,e)},subset:function(n,e){return Object.keys(e).length<=Object.keys(n).length&&Object.keys(e).every(t=>n0(n[t],e[t]))},ignored:()=>!0};function a0(n,e,t){return fj[t.paths](n.root,e.root,t.matrixParams)&&o0[t.queryParams](n.queryParams,e.queryParams)&&!("exact"===t.fragment&&n.fragment!==e.fragment)}function l0(n,e,t){return u0(n,e,e.segments,t)}function u0(n,e,t,r){if(n.segments.length>t.length){const s=n.segments.slice(0,t.length);return!(!qs(s,t)||e.hasChildren()||!yu(s,t,r))}if(n.segments.length===t.length){if(!qs(n.segments,t)||!yu(n.segments,t,r))return!1;for(const s in e.children)if(!n.children[s]||!l0(n.children[s],e.children[s],r))return!1;return!0}{const s=t.slice(0,n.segments.length),i=t.slice(n.segments.length);return!!(qs(n.segments,s)&&yu(n.segments,s,r)&&n.children[ce])&&u0(n.children[ce],e,i,r)}}function yu(n,e,t){return e.every((r,s)=>o0[t](n[s].parameters,r.parameters))}class zs{constructor(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ho(this.queryParams)),this._queryParamMap}toString(){return _j.serialize(this)}}class ue{constructor(e,t){this.segments=e,this.children=t,this.parent=null,dt(t,(r,s)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bu(this)}}class ja{constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=ho(this.parameters)),this._parameterMap}toString(){return p0(this)}}function qs(n,e){return n.length===e.length&&n.every((t,r)=>t.path===e[r].path)}class ug{}class d0{parse(e){const t=new Tj(e);return new zs(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){const t=`/${Ua(e.root,!0)}`,r=function(n){const e=Object.keys(n).map(t=>{const r=n[t];return Array.isArray(r)?r.map(s=>`${wu(t)}=${wu(s)}`).join("&"):`${wu(t)}=${wu(r)}`}).filter(t=>!!t);return e.length?`?${e.join("&")}`:""}(e.queryParams),s="string"==typeof e.fragment?`#${function(n){return encodeURI(n)}(e.fragment)}`:"";return`${t}${r}${s}`}}const _j=new d0;function bu(n){return n.segments.map(e=>p0(e)).join("/")}function Ua(n,e){if(!n.hasChildren())return bu(n);if(e){const t=n.children[ce]?Ua(n.children[ce],!1):"",r=[];return dt(n.children,(s,i)=>{i!==ce&&r.push(`${i}:${Ua(s,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function(n,e){let t=[];return dt(n.children,(r,s)=>{s===ce&&(t=t.concat(e(r,s)))}),dt(n.children,(r,s)=>{s!==ce&&(t=t.concat(e(r,s)))}),t}(n,(r,s)=>s===ce?[Ua(n.children[ce],!1)]:[`${s}:${Ua(r,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[ce]?`${bu(n)}/${t[0]}`:`${bu(n)}/(${t.join("//")})`}}function f0(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wu(n){return f0(n).replace(/%3B/gi,";")}function dg(n){return f0(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Eu(n){return decodeURIComponent(n)}function h0(n){return Eu(n.replace(/\+/g,"%20"))}function p0(n){return`${dg(n.path)}${function(n){return Object.keys(n).map(e=>`;${dg(e)}=${dg(n[e])}`).join("")}(n.parameters)}`}const Ej=/^[^\/()?;=#]+/;function vu(n){const e=n.match(Ej);return e?e[0]:""}const vj=/^[^=?&#]+/,Dj=/^[^?&#]+/;class Tj{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const 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("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[ce]=new ue(e,t)),r}parseSegment(){const e=vu(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new ja(Eu(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const t=vu(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=vu(this.remaining);s&&(r=s,this.capture(r))}e[Eu(t)]=Eu(r)}parseQueryParam(e){const t=function(n){const e=n.match(vj);return e?e[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=function(n){const e=n.match(Dj);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const s=h0(t),i=h0(r);if(e.hasOwnProperty(s)){let o=e[s];Array.isArray(o)||(o=[o],e[s]=o),o.push(i)}else e[s]=i}parseParens(e){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=vu(this.remaining),s=this.remaining[r.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=ce);const o=this.parseChildren();t[i]=1===Object.keys(o).length?o[ce]:new ue([],o),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class g0{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){const t=fg(e,this._root);return t?t.children.map(r=>r.value):[]}firstChild(e){const t=fg(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){const t=hg(e,this._root);return t.length<2?[]:t[t.length-2].children.map(s=>s.value).filter(s=>s!==e)}pathFromRoot(e){return hg(e,this._root).map(t=>t.value)}}function fg(n,e){if(n===e.value)return e;for(const t of e.children){const r=fg(n,t);if(r)return r}return null}function hg(n,e){if(n===e.value)return[e];for(const t of e.children){const r=hg(n,t);if(r.length)return r.unshift(e),r}return[]}class Nr{constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}}function Ha(n){const e={};return n&&n.children.forEach(t=>e[t.value.outlet]=t),e}class m0 extends g0{constructor(e,t){super(e),this.snapshot=t,pg(this,e)}toString(){return this.snapshot.toString()}}function _0(n,e){const t=function(n,e){const o=new Cu([],{},{},"",{},ce,e,null,n.root,-1,{});return new b0("",new Nr(o,[]))}(n,e),r=new bn([new ja("",{})]),s=new bn({}),i=new bn({}),o=new bn({}),a=new bn(""),c=new po(r,s,o,a,i,ce,e,t.root);return c.snapshot=t.root,new m0(new Nr(c,[]),t)}class po{constructor(e,t,r,s,i,o,a,c){this.url=e,this.params=t,this.queryParams=r,this.fragment=s,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=c}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(re(e=>ho(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(re(e=>ho(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function y0(n,e="emptyOnly"){const t=n.pathFromRoot;let r=0;if("always"!==e)for(r=t.length-1;r>=1;){const s=t[r],i=t[r-1];if(s.routeConfig&&""===s.routeConfig.path)r--;else{if(i.component)break;r--}}return function(n){return n.reduce((e,t)=>({params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Cu{constructor(e,t,r,s,i,o,a,c,l,u,h){this.url=e,this.params=t,this.queryParams=r,this.fragment=s,this.data=i,this.outlet=o,this.component=a,this.routeConfig=c,this._urlSegment=l,this._lastPathIndex=u,this._resolve=h}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=ho(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ho(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class b0 extends g0{constructor(e,t){super(t),this.url=e,pg(this,t)}toString(){return w0(this._root)}}function pg(n,e){e.value._routerState=n,e.children.forEach(t=>pg(n,t))}function w0(n){const e=n.children.length>0?` { ${n.children.map(w0).join(", ")} } `:"";return`${n.value}${e}`}function gg(n){if(n.snapshot){const e=n.snapshot,t=n._futureSnapshot;n.snapshot=t,cr(e.queryParams,t.queryParams)||n.queryParams.next(t.queryParams),e.fragment!==t.fragment&&n.fragment.next(t.fragment),cr(e.params,t.params)||n.params.next(t.params),function(n,e){if(n.length!==e.length)return!1;for(let t=0;tcr(t.parameters,e[r].parameters))}(n.url,e.url);return t&&!(!n.parent!=!e.parent)&&(!n.parent||mg(n.parent,e.parent))}function Du(n,e,t){if(t&&n.shouldReuseRoute(e.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=e.value;const s=function(n,e,t){return e.children.map(r=>{for(const s of t.children)if(n.shouldReuseRoute(r.value,s.value.snapshot))return Du(n,r,s);return Du(n,r)})}(n,e,t);return new Nr(r,s)}{if(n.shouldAttach(e.value)){const i=n.retrieve(e.value);if(null!==i){const o=i.route;return E0(e,o),o}}const r=function(n){return new po(new bn(n.url),new bn(n.params),new bn(n.queryParams),new bn(n.fragment),new bn(n.data),n.outlet,n.component,n)}(e.value),s=e.children.map(i=>Du(n,i));return new Nr(r,s)}}function E0(n,e){if(n.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=n.value;for(let t=0;t{i[a]=Array.isArray(o)?o.map(c=>`${c}`):`${o}`}),new zs(t.root===n?e:v0(t.root,n,e),i,s)}function v0(n,e,t){const r={};return dt(n.children,(s,i)=>{r[i]=s===e?t:v0(s,e,t)}),new ue(n.segments,r)}class C0{constructor(e,t,r){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r,e&&r.length>0&&Su(r[0]))throw new Error("Root segment cannot have matrix parameters");const s=r.find($a);if(s&&s!==s0(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class yg{constructor(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}}function D0(n,e,t){if(n||(n=new ue([],{})),0===n.segments.length&&n.hasChildren())return Tu(n,e,t);const r=function(n,e,t){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=t.length)return i;const o=n.segments[s],a=t[r];if($a(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!T0(c,l,o))return i;r+=2}else{if(!T0(c,{},o))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(n,e,t),s=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[o]=D0(n.children[o],e,i))}),dt(n.children,(i,o)=>{void 0===r[o]&&(s[o]=i)}),new ue(n.segments,s)}}function bg(n,e,t){const r=n.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[r]=bg(new ue([],{}),0,t))}),e}function S0(n){const e={};return dt(n,(t,r)=>e[r]=`${t}`),e}function T0(n,e,t){return n==t.path&&cr(e,t.parameters)}class jj{constructor(e,t,r,s){this.routeReuseStrategy=e,this.futureState=t,this.currState=r,this.forwardEvent=s}activate(e){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,e),gg(this.futureState.root),this.activateChildRoutes(t,r,e)}deactivateChildRoutes(e,t,r){const s=Ha(t);e.children.forEach(i=>{const o=i.value.outlet;this.deactivateRoutes(i,s[o],r),delete s[o]}),dt(s,(i,o)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,t,r){const s=e.value,i=t?t.value:null;if(s===i)if(s.component){const o=r.getContext(s.outlet);o&&this.deactivateChildRoutes(e,t,o.children)}else this.deactivateChildRoutes(e,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){const r=t.getContext(e.value.outlet);if(r&&r.outlet){const s=r.outlet.detach(),i=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:i})}}deactivateRouteAndOutlet(e,t){const r=t.getContext(e.value.outlet),s=r&&e.value.component?r.children:t,i=Ha(e);for(const o of Object.keys(i))this.deactivateRouteAndItsChildren(i[o],s);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,t,r){const s=Ha(t);e.children.forEach(i=>{this.activateRoutes(i,s[i.value.outlet],r),this.forwardEvent(new oj(i.value.snapshot))}),e.children.length&&this.forwardEvent(new sj(e.value.snapshot))}activateRoutes(e,t,r){const s=e.value,i=t?t.value:null;if(gg(s),s===i)if(s.component){const o=r.getOrCreateContext(s.outlet);this.activateChildRoutes(e,t,o.children)}else this.activateChildRoutes(e,t,r);else if(s.component){const o=r.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const a=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),I0(a.route)}else{const a=function(n){for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),c=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=s,o.resolver=c,o.outlet&&o.outlet.activateWith(s,c),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}function I0(n){gg(n.value),n.children.forEach(I0)}class wg{constructor(e,t){this.routes=e,this.module=t}}function cs(n){return"function"==typeof n}function Gs(n){return n instanceof zs}const Wa=Symbol("INITIAL_VALUE");function za(){return as(n=>function(...n){let e,t;return oe(n[n.length-1])&&(t=n.pop()),"function"==typeof n[n.length-1]&&(e=n.pop()),1===n.length&&Sn(n[0])&&(n=n[0]),ju(n,t).lift(new P8(e))}(n.map(e=>e.pipe(Na(1),function(...n){const e=n[n.length-1];return oe(e)?(n.pop(),t=>og(n,t,e)):t=>og(n,t)}(Wa)))).pipe(KD((e,t)=>{let r=!1;return t.reduce((s,i,o)=>s!==Wa?s:(i===Wa&&(r=!0),r||!1!==i&&o!==t.length-1&&!Gs(i)?s:i),e)},Wa),$s(e=>e!==Wa),re(e=>Gs(e)?e:!0===e),Na(1)))}let M0=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=cn({type:n,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,r){1&t&&xt(0,"router-outlet")},directives:function(){return[z0]},encapsulation:2}),n})();function A0(n,e=""){for(let t=0;tDn(r)===e);return t.push(...n.filter(r=>Dn(r)!==e)),t}const x0={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Iu(n,e,t){var r;if(""===e.path)return"full"===e.pathMatch&&(n.hasChildren()||t.length>0)?Object.assign({},x0):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||lj)(t,n,e);if(!i)return Object.assign({},x0);const o={};dt(i.posParams,(c,l)=>{o[l]=c.path});const a=i.consumed.length>0?Object.assign(Object.assign({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Mu(n,e,t,r,s="corrected"){if(t.length>0&&function(n,e,t){return t.some(r=>Au(n,e,r)&&Dn(r)!==ce)}(n,t,r)){const o=new ue(e,function(n,e,t,r){const s={};s[ce]=r,r._sourceSegment=n,r._segmentIndexShift=e.length;for(const i of t)if(""===i.path&&Dn(i)!==ce){const o=new ue([],{});o._sourceSegment=n,o._segmentIndexShift=e.length,s[Dn(i)]=o}return s}(n,e,r,new ue(t,n.children)));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===t.length&&function(n,e,t){return t.some(r=>Au(n,e,r))}(n,t,r)){const o=new ue(n.segments,function(n,e,t,r,s,i){const o={};for(const a of r)if(Au(n,t,a)&&!s[Dn(a)]){const c=new ue([],{});c._sourceSegment=n,c._segmentIndexShift="legacy"===i?n.segments.length:e.length,o[Dn(a)]=c}return Object.assign(Object.assign({},s),o)}(n,e,t,r,n.children,s));return o._sourceSegment=n,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:t}}const i=new ue(n.segments,n.children);return i._sourceSegment=n,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:t}}function Au(n,e,t){return(!(n.hasChildren()||e.length>0)||"full"!==t.pathMatch)&&""===t.path}function N0(n,e,t,r){return!!(Dn(n)===r||r!==ce&&Au(e,t,n))&&("**"===n.path||Iu(e,n,t).matched)}function F0(n,e,t){return 0===e.length&&!n.children[t]}class qa{constructor(e){this.segmentGroup=e||null}}class O0{constructor(e){this.urlTree=e}}function Ru(n){return new fe(e=>e.error(new qa(n)))}function P0(n){return new fe(e=>e.error(new O0(n)))}function Xj(n){return new fe(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${n}'`)))}class n3{constructor(e,t,r,s,i){this.configLoader=t,this.urlSerializer=r,this.urlTree=s,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(or)}apply(){const e=Mu(this.urlTree.root,[],[],this.config).segmentGroup,t=new ue(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,t,ce).pipe(re(i=>this.createUrlTree(vg(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(is(i=>{if(i instanceof O0)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof qa?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,ce).pipe(re(s=>this.createUrlTree(vg(s),e.queryParams,e.fragment))).pipe(is(s=>{throw s instanceof qa?this.noMatchError(s):s}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,t,r){const s=e.segments.length>0?new ue([],{[ce]:e}):e;return new zs(s,t,r)}expandSegmentGroup(e,t,r,s){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,t,r).pipe(re(i=>new ue([],i))):this.expandSegment(e,r,t,r.segments,s,!0)}expandChildren(e,t,r){const s=[];for(const i of Object.keys(r.children))"primary"===i?s.unshift(i):s.push(i);return ee(s).pipe(uo(i=>{const o=r.children[i],a=R0(t,i);return this.expandSegmentGroup(e,a,o,i).pipe(re(c=>({segment:c,outlet:i})))}),KD((i,o)=>(i[o.outlet]=o.segment,i),{}),function(n,e){const t=arguments.length>=2;return r=>r.pipe(n?$s((s,i)=>n(s,i,r)):Fe,ag(1),t?YD(e):QD(()=>new _u))}())}expandSegment(e,t,r,s,i,o){return ee(r).pipe(uo(a=>this.expandSegmentAgainstRoute(e,t,r,a,s,i,o).pipe(is(l=>{if(l instanceof qa)return $(null);throw l}))),fo(a=>!!a),is((a,c)=>{if(a instanceof _u||"EmptyError"===a.name){if(F0(t,s,i))return $(new ue([],{}));throw new qa(t)}throw a}))}expandSegmentAgainstRoute(e,t,r,s,i,o,a){return N0(s,t,i,o)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(e,t,s,i,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o):Ru(t):Ru(t)}expandSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,s,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,t,r,s){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?P0(i):this.lineralizeSegments(r,i).pipe(at(o=>{const a=new ue(o,{});return this.expandSegment(e,a,t,o,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,s,i,o){const{matched:a,consumedSegments:c,lastChild:l,positionalParamSegments:u}=Iu(t,s,i);if(!a)return Ru(t);const h=this.applyRedirectCommands(c,s.redirectTo,u);return s.redirectTo.startsWith("/")?P0(h):this.lineralizeSegments(s,h).pipe(at(p=>this.expandSegment(e,t,r,p.concat(i.slice(l)),o,!1)))}matchSegmentAgainstRoute(e,t,r,s,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?$(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(re(p=>(r._loadedConfig=p,new ue(s,{})))):$(new ue(s,{}));const{matched:o,consumedSegments:a,lastChild:c}=Iu(t,r,s);if(!o)return Ru(t);const l=s.slice(c);return this.getChildConfig(e,r,s).pipe(at(h=>{const p=h.module,m=h.routes,{segmentGroup:y,slicedSegments:E}=Mu(t,a,l,m),w=new ue(y.segments,y.children);if(0===E.length&&w.hasChildren())return this.expandChildren(p,m,w).pipe(re(x=>new ue(a,x)));if(0===m.length&&0===E.length)return $(new ue(a,{}));const D=Dn(r)===i;return this.expandSegment(p,w,m,E,D?ce:i,!0).pipe(re(R=>new ue(a.concat(R.segments),R.children)))}))}getChildConfig(e,t,r){return t.children?$(new wg(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?$(t._loadedConfig):this.runCanLoadGuards(e.injector,t,r).pipe(at(s=>s?this.configLoader.load(e.injector,t).pipe(re(i=>(t._loadedConfig=i,i))):function(n){return new fe(e=>e.error(lg(`Cannot load children because the guard of the route "path: '${n.path}'" returned false`)))}(t))):$(new wg([],e))}runCanLoadGuards(e,t,r){const s=t.canLoad;if(!s||0===s.length)return $(!0);const i=s.map(o=>{const a=e.get(o);let c;if(function(n){return n&&cs(n.canLoad)}(a))c=a.canLoad(t,r);else{if(!cs(a))throw new Error("Invalid CanLoad guard");c=a(t,r)}return lr(c)});return $(i).pipe(za(),vt(o=>{if(!Gs(o))return;const a=lg(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),re(o=>!0===o))}lineralizeSegments(e,t){let r=[],s=t.root;for(;;){if(r=r.concat(s.segments),0===s.numberOfChildren)return $(r);if(s.numberOfChildren>1||!s.children[ce])return Xj(e.redirectTo);s=s.children[ce]}}applyRedirectCommands(e,t,r){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,r)}applyRedirectCreatreUrlTree(e,t,r,s){const i=this.createSegmentGroup(e,t.root,r,s);return new zs(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){const r={};return dt(e,(s,i)=>{if("string"==typeof s&&s.startsWith(":")){const a=s.substring(1);r[i]=t[a]}else r[i]=s}),r}createSegmentGroup(e,t,r,s){const i=this.createSegments(e,t.segments,r,s);let o={};return dt(t.children,(a,c)=>{o[c]=this.createSegmentGroup(e,a,r,s)}),new ue(i,o)}createSegments(e,t,r,s){return t.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,s):this.findOrReturn(i,r))}findPosParam(e,t,r){const s=r[t.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${e}'. Cannot find '${t.path}'.`);return s}findOrReturn(e,t){let r=0;for(const s of t){if(s.path===e.path)return t.splice(r),s;r++}return e}}function vg(n){const e={};for(const r of Object.keys(n.children)){const i=vg(n.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function(n){if(1===n.numberOfChildren&&n.children[ce]){const e=n.children[ce];return new ue(n.segments.concat(e.segments),e.children)}return n}(new ue(n.segments,e))}class k0{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class xu{constructor(e,t){this.component=e,this.route=t}}function i3(n,e,t){const r=n._root;return Ga(r,e?e._root:null,t,[r.value])}function Nu(n,e,t){const r=function(n){if(!n)return null;for(let e=n.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:t).get(n)}function Ga(n,e,t,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ha(e);return n.children.forEach(o=>{(function(n,e,t,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=n.value,o=e?e.value:null,a=t?t.getContext(n.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const c=function(n,e,t){if("function"==typeof t)return t(n,e);switch(t){case"pathParamsChange":return!qs(n.url,e.url);case"pathParamsOrQueryParamsChange":return!qs(n.url,e.url)||!cr(n.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mg(n,e)||!cr(n.queryParams,e.queryParams);default:return!mg(n,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new k0(r)):(i.data=o.data,i._resolvedData=o._resolvedData),Ga(n,e,i.component?a?a.children:null:t,r,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new xu(a.outlet.component,o))}else o&&Ka(e,a,s),s.canActivateChecks.push(new k0(r)),Ga(n,null,i.component?a?a.children:null:t,r,s)})(o,i[o.value.outlet],t,r.concat([o.value]),s),delete i[o.value.outlet]}),dt(i,(o,a)=>Ka(o,t.getContext(a),s)),s}function Ka(n,e,t){const r=Ha(n),s=n.value;dt(r,(i,o)=>{Ka(i,s.component?e?e.children.getContext(o):null:e,t)}),t.canDeactivateChecks.push(new xu(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}class y3{}function L0(n){return new fe(e=>e.error(n))}class w3{constructor(e,t,r,s,i,o){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=s,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}recognize(){const e=Mu(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,ce);if(null===t)return null;const r=new Cu([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Nr(r,t),i=new b0(this.url,s);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const t=e.value,r=y0(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),e.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(e,t,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,r)}processChildren(e,t){const r=[];for(const i of Object.keys(t.children)){const o=t.children[i],a=R0(e,i),c=this.processSegmentGroup(a,o,i);if(null===c)return null;r.push(...c)}const s=V0(r);return function(n){n.sort((e,t)=>e.value.outlet===ce?-1:t.value.outlet===ce?1:e.value.outlet.localeCompare(t.value.outlet))}(s),s}processSegment(e,t,r,s){for(const i of e){const o=this.processSegmentAgainstRoute(i,t,r,s);if(null!==o)return o}return F0(t,r,s)?[]:null}processSegmentAgainstRoute(e,t,r,s){if(e.redirectTo||!N0(e,t,r,s))return null;let i,o=[],a=[];if("**"===e.path){const m=r.length>0?s0(r).parameters:{};i=new Cu(r,m,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,U0(e),Dn(e),e.component,e,B0(t),j0(t)+r.length,H0(e))}else{const m=Iu(t,e,r);if(!m.matched)return null;o=m.consumedSegments,a=r.slice(m.lastChild),i=new Cu(o,m.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,U0(e),Dn(e),e.component,e,B0(t),j0(t)+o.length,H0(e))}const c=function(n){return n.children?n.children:n.loadChildren?n._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:u}=Mu(t,o,a,c.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===u.length&&l.hasChildren()){const m=this.processChildren(c,l);return null===m?null:[new Nr(i,m)]}if(0===c.length&&0===u.length)return[new Nr(i,[])];const h=Dn(e)===s,p=this.processSegment(c,l,u,h?ce:s);return null===p?null:[new Nr(i,p)]}}function C3(n){const e=n.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function V0(n){const e=[],t=new Set;for(const r of n){if(!C3(r)){e.push(r);continue}const s=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==s?(s.children.push(...r.children),t.add(s)):e.push(r)}for(const r of t){const s=V0(r.children);e.push(new Nr(r.value,s))}return e.filter(r=>!t.has(r))}function B0(n){let e=n;for(;e._sourceSegment;)e=e._sourceSegment;return e}function j0(n){let e=n,t=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,t+=e._segmentIndexShift?e._segmentIndexShift:0;return t-1}function U0(n){return n.data||{}}function H0(n){return n.resolve||{}}function Cg(n){return as(e=>{const t=n(e);return t?ee(t).pipe(re(()=>e)):$(e)})}class x3 extends class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}}{}const Dg=new U("ROUTES");class $0{constructor(e,t,r,s){this.loader=e,this.compiler=t,this.onLoadStartListener=r,this.onLoadEndListener=s}load(e,t){if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);const s=this.loadModuleFactory(t.loadChildren).pipe(re(i=>{this.onLoadEndListener&&this.onLoadEndListener(t);const o=i.create(e);return new wg(r0(o.injector.get(Dg,void 0,B.Self|B.Optional)).map(Eg),o)}),is(i=>{throw t._loader$=void 0,i}));return t._loader$=new Fg(s,()=>new pt).pipe(Uu()),t._loader$}loadModuleFactory(e){return"string"==typeof e?ee(this.loader.load(e)):lr(e()).pipe(at(t=>t instanceof Sw?$(t):ee(this.compiler.compileModuleAsync(t))))}}class N3{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new go,this.attachRef=null}}class go{constructor(){this.contexts=new Map}onChildOutletCreated(e,t){const r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){const t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new N3,this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}}class O3{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}}function P3(n){throw n}function k3(n,e,t){return e.parse("/")}function W0(n,e){return $(null)}const L3={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},V3={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Bt=(()=>{class n{constructor(t,r,s,i,o,a,c,l){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=s,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new pt,this.errorHandler=P3,this.malformedUriErrorHandler=k3,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:W0,afterPreactivation:W0},this.urlHandlingStrategy=new O3,this.routeReuseStrategy=new x3,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(or),this.console=o.get(pl);const p=o.get(pe);this.isNgZoneEnabled=p instanceof pe&&pe.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new zs(new ue([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new $0(a,c,m=>this.triggerEvent(new ZD(m)),m=>this.triggerEvent(new XD(m))),this.routerState=_0(this.currentUrlTree,this.rootComponentType),this.transitions=new bn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var t;return null===(t=this.location.getState())||void 0===t?void 0:t.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe($s(s=>0!==s.id),re(s=>Object.assign(Object.assign({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),as(s=>{let i=!1,o=!1;return $(s).pipe(vt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),as(a=>{const c=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==c||c!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Fu(a.source)&&(this.browserUrlTree=a.extractedUrl),$(a).pipe(as(h=>{const p=this.transitions.getValue();return r.next(new cg(h.id,this.serializeUrl(h.extractedUrl),h.source,h.restoredState)),p!==this.transitions.getValue()?ro:Promise.resolve(h)}),function(n,e,t,r){return as(s=>function(n,e,t,r,s){return new n3(n,e,t,r,s).apply()}(n,e,t,s.extractedUrl,r).pipe(re(i=>Object.assign(Object.assign({},s),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),vt(h=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:h.urlAfterRedirects})}),function(n,e,t,r,s){return at(i=>function(n,e,t,r,s="emptyOnly",i="legacy"){try{const o=new w3(n,e,t,r,s,i).recognize();return null===o?L0(new y3):$(o)}catch(o){return L0(o)}}(n,e,i.urlAfterRedirects,t(i.urlAfterRedirects),r,s).pipe(re(o=>Object.assign(Object.assign({},i),{targetSnapshot:o}))))}(this.rootComponentType,this.config,h=>this.serializeUrl(h),this.paramsInheritanceStrategy,this.relativeLinkResolution),vt(h=>{"eager"===this.urlUpdateStrategy&&(h.extras.skipLocationChange||this.setBrowserUrl(h.urlAfterRedirects,h),this.browserUrlTree=h.urlAfterRedirects);const p=new Z8(h.id,this.serializeUrl(h.extractedUrl),this.serializeUrl(h.urlAfterRedirects),h.targetSnapshot);r.next(p)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:p,extractedUrl:m,source:y,restoredState:E,extras:w}=a,D=new cg(p,this.serializeUrl(m),y,E);r.next(D);const C=_0(m,this.rootComponentType).snapshot;return $(Object.assign(Object.assign({},a),{targetSnapshot:C,urlAfterRedirects:m,extras:Object.assign(Object.assign({},w),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,this.browserUrlTree=a.urlAfterRedirects,a.resolve(null),ro}),Cg(a=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:p,replaceUrl:m}}=a;return this.hooks.beforePreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!p,replaceUrl:!!m})}),vt(a=>{const c=new X8(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(c)}),re(a=>Object.assign(Object.assign({},a),{guards:i3(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(n,e){return at(t=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:i,canDeactivateChecks:o}}=t;return 0===o.length&&0===i.length?$(Object.assign(Object.assign({},t),{guardsResult:!0})):function(n,e,t,r){return ee(n).pipe(at(s=>function(n,e,t,r,s){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?$(i.map(a=>{const c=Nu(a,e,s);let l;if(function(n){return n&&cs(n.canDeactivate)}(c))l=lr(c.canDeactivate(n,e,t,r));else{if(!cs(c))throw new Error("Invalid CanDeactivate guard");l=lr(c(n,e,t,r))}return l.pipe(fo())})).pipe(za()):$(!0)}(s.component,s.route,t,e,r)),fo(s=>!0!==s,!0))}(o,r,s,n).pipe(at(a=>a&&function(n){return"boolean"==typeof n}(a)?function(n,e,t,r){return ee(e).pipe(uo(s=>og(function(n,e){return null!==n&&e&&e(new rj(n)),$(!0)}(s.route.parent,r),function(n,e){return null!==n&&e&&e(new ij(n)),$(!0)}(s.route,r),function(n,e,t){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(o=>function(n){const e=n.routeConfig?n.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:n,guards:e}:null}(o)).filter(o=>null!==o).map(o=>GD(()=>$(o.guards.map(c=>{const l=Nu(c,o.node,t);let u;if(function(n){return n&&cs(n.canActivateChild)}(l))u=lr(l.canActivateChild(r,n));else{if(!cs(l))throw new Error("Invalid CanActivateChild guard");u=lr(l(r,n))}return u.pipe(fo())})).pipe(za())));return $(i).pipe(za())}(n,s.path,t),function(n,e,t){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return $(!0);const s=r.map(i=>GD(()=>{const o=Nu(i,e,t);let a;if(function(n){return n&&cs(n.canActivate)}(o))a=lr(o.canActivate(e,n));else{if(!cs(o))throw new Error("Invalid CanActivate guard");a=lr(o(e,n))}return a.pipe(fo())}));return $(s).pipe(za())}(n,s.route,t))),fo(s=>!0!==s,!0))}(r,i,n,e):$(a)),re(a=>Object.assign(Object.assign({},t),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),vt(a=>{if(Gs(a.guardsResult)){const l=lg(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const c=new ej(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(c)}),$s(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Cg(a=>{if(a.guards.canActivateChecks.length)return $(a).pipe(vt(c=>{const l=new tj(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}),as(c=>{let l=!1;return $(c).pipe(function(n,e){return at(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;if(!s.length)return $(t);let i=0;return ee(s).pipe(uo(o=>function(n,e,t,r){return function(n,e,t,r){const s=Object.keys(n);if(0===s.length)return $({});const i={};return ee(s).pipe(at(o=>function(n,e,t,r){const s=Nu(n,e,r);return lr(s.resolve?s.resolve(e,t):s(e,t))}(n[o],e,t,r).pipe(vt(a=>{i[o]=a}))),ag(1),at(()=>Object.keys(i).length===s.length?$(i):ro))}(n._resolve,n,e,r).pipe(re(i=>(n._resolvedData=i,n.data=Object.assign(Object.assign({},n.data),y0(n,t).resolve),null)))}(o.route,r,n,e)),vt(()=>i++),ag(1),at(o=>i===s.length?$(t):ro))})}(this.paramsInheritanceStrategy,this.ngModule.injector),vt({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(c),this.cancelNavigationTransition(c,"At least one route resolver didn't emit any value."))}}))}),vt(c=>{const l=new nj(c.id,this.serializeUrl(c.extractedUrl),this.serializeUrl(c.urlAfterRedirects),c.targetSnapshot);this.triggerEvent(l)}))}),Cg(a=>{const{targetSnapshot:c,id:l,extractedUrl:u,rawUrl:h,extras:{skipLocationChange:p,replaceUrl:m}}=a;return this.hooks.afterPreactivation(c,{navigationId:l,appliedUrlTree:u,rawUrlTree:h,skipLocationChange:!!p,replaceUrl:!!m})}),re(a=>{const c=function(n,e,t){const r=Du(n,e._root,t?t._root:void 0);return new m0(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:c})}),vt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,e,t)=>re(r=>(new jj(e,r.targetRouterState,r.currentRouterState,t).activate(n),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),vt({next(){i=!0},complete(){i=!0}}),MD(()=>{var a;if(!i&&!o){const c=`Navigation ID ${s.id} is not equal to the current navigation id ${this.navigationId}`;"replace"===this.canceledNavigationResolution?(this.restoreHistory(s),this.cancelNavigationTransition(s,c)):this.cancelNavigationTransition(s,c)}(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===s.id&&(this.currentNavigation=null)}),is(a=>{if(o=!0,function(n){return n&&n[t0]}(a)){const c=Gs(a.url);c||(this.navigated=!0,this.restoreHistory(s,!0));const l=new JD(s.id,this.serializeUrl(s.extractedUrl),a.message);r.next(l),c?setTimeout(()=>{const u=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),h={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fu(s.source)};this.scheduleNavigation(u,"imperative",null,h,{resolve:s.resolve,reject:s.reject,promise:s.promise})},0):s.resolve(!1)}else{this.restoreHistory(s,!0);const c=new J8(s.id,this.serializeUrl(s.extractedUrl),a);r.next(c);try{s.resolve(this.errorHandler(a))}catch(l){s.reject(l)}}return ro}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,r)&&setTimeout(()=>{const{source:s,state:i,urlTree:o}=r,a={replaceUrl:!0};if(i){const c=Object.assign({},i);delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(a.state=c)}this.scheduleNavigation(o,s,i,a)},0),this.lastLocationChangeInfo=r}))}extractLocationChangeInfoFromEvent(t){var r;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(r=t.state)||void 0===r?void 0:r.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,r){if(!t)return!0;const s=r.urlTree.toString()===t.urlTree.toString();return r.transitionId!==t.transitionId||!s||!("hashchange"===r.source&&"popstate"===t.source||"popstate"===r.source&&"hashchange"===t.source)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){A0(t),this.config=t.map(Eg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:s,queryParams:i,fragment:o,queryParamsHandling:a,preserveFragment:c}=r,l=s||this.routerState.root,u=c?this.currentUrlTree.fragment:o;let h=null;switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}return null!==h&&(h=this.removeEmptyProps(h)),function(n,e,t,r,s){if(0===t.length)return _g(e.root,e.root,e,r,s);const i=function(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new C0(!0,0,n);let e=0,t=!1;const r=n.reduce((s,i,o)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return dt(i.outlets,(c,l)=>{a[l]="string"==typeof c?c.split("/"):c}),[...s,{outlets:a}]}if(i.segmentPath)return[...s,i.segmentPath]}return"string"!=typeof i?[...s,i]:0===o?(i.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?e++:""!=a&&s.push(a))}),s):[...s,i]},[]);return new C0(t,e,r)}(t);if(i.toRoot())return _g(e.root,new ue([],{}),e,r,s);const o=function(n,e,t){if(n.isAbsolute)return new yg(e.root,!0,0);if(-1===t.snapshot._lastPathIndex){const i=t.snapshot._urlSegment;return new yg(i,i===e.root,0)}const r=Su(n.commands[0])?0:1;return function(n,e,t){let r=n,s=e,i=t;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new yg(r,!1,s-i)}(t.snapshot._urlSegment,t.snapshot._lastPathIndex+r,n.numberOfDoubleDots)}(i,e,n),a=o.processChildren?Tu(o.segmentGroup,o.index,i.commands):D0(o.segmentGroup,o.index,i.commands);return _g(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,h,null!=u?u:null)}navigateByUrl(t,r={skipLocationChange:!1}){const s=Gs(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function(n){for(let e=0;e{const i=t[s];return null!=i&&(r[s]=i),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ba(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,s,i,o){var a,c;if(this.disposed)return Promise.resolve(!1);const l=this.getTransition(),u=Fu(r)&&l&&!Fu(l.source),m=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&m)return Promise.resolve(!0);let y,E,w;o?(y=o.resolve,E=o.reject,w=o.promise):w=new Promise((R,x)=>{y=R,E=x});const D=++this.navigationId;let C;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),C=s&&s.\u0275routerPageId?s.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(a=this.browserPageId)&&void 0!==a?a:0:(null!==(c=this.browserPageId)&&void 0!==c?c:0)+1):C=0,this.setTransition({id:D,targetPageId:C,source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:y,reject:E,promise:w,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),w.catch(R=>Promise.reject(R))}setBrowserUrl(t,r){const s=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl?this.location.replaceState(s,"",i):this.location.go(s,"",i)}restoreHistory(t,r=!1){var s,i;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(s=this.currentNavigation)||void 0===s?void 0:s.finalUrl)||0===o?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===o&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}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))}cancelNavigationTransition(t,r){const s=new JD(t.id,this.serializeUrl(t.extractedUrl),r);this.triggerEvent(s),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return n.\u0275fac=function(t){return new(t||n)(S(Sc),S(ug),S(go),S(Il),S(Ce),S(ml),S(Ns),S(void 0))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Fu(n){return"imperative"!==n}let z0=(()=>{class n{constructor(t,r,s,i,o){this.parentContexts=t,this.location=r,this.resolver=s,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new ut,this.deactivateEvents=new ut,this.name=i||ce,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView)}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 Error("Cannot activate an already activated outlet");this._activatedRoute=t;const o=(r=r||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,c=new H3(t,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,c),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(t){return new(t||n)(M(go),M(Ln),M(Is),ci("name"),M(ca))},n.\u0275dir=Ae({type:n,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),n})();class H3{constructor(e,t,r){this.route=e,this.childContexts=t,this.parent=r}get(e,t){return e===po?this.route:e===go?this.childContexts:this.parent.get(e,t)}}class q0{}class G0{preload(e,t){return $(null)}}let K0=(()=>{class n{constructor(t,r,s,i,o){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new $0(r,s,l=>t.triggerEvent(new ZD(l)),l=>t.triggerEvent(new XD(l)))}setUpPreloading(){this.subscription=this.router.events.pipe($s(t=>t instanceof Ba),uo(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(or);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const s=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const o=i._loadedConfig;s.push(this.processRoutes(o.module,o.routes))}else i.loadChildren&&!i.canLoad?s.push(this.preloadConfig(t,i)):i.children&&s.push(this.processRoutes(t,i.children));return ee(s).pipe(Do(),re(i=>{}))}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?$(r._loadedConfig):this.loader.load(t.injector,r)).pipe(at(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return n.\u0275fac=function(t){return new(t||n)(S(Bt),S(ml),S(Ns),S(Ce),S(q0))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})(),Ig=(()=>{class n{constructor(t,r,s={}){this.router=t,this.viewportScroller=r,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.router.events.subscribe(t=>{t instanceof cg?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ba&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof e0&&(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.router.triggerEvent(new e0(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(S(Bt),S(Nv),S(void 0))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();const Ks=new U("ROUTER_CONFIGURATION"),Q0=new U("ROUTER_FORROOT_GUARD"),W3=[Il,{provide:ug,useClass:d0},{provide:Bt,useFactory:function(n,e,t,r,s,i,o,a={},c,l){const u=new Bt(null,n,e,t,r,s,i,r0(o));return c&&(u.urlHandlingStrategy=c),l&&(u.routeReuseStrategy=l),function(n,e){n.errorHandler&&(e.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(e.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(e.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(e.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(e.urlUpdateStrategy=n.urlUpdateStrategy)}(a,u),a.enableTracing&&u.events.subscribe(h=>{var p,m;null===(p=console.group)||void 0===p||p.call(console,`Router Event: ${h.constructor.name}`),console.log(h.toString()),console.log(h),null===(m=console.groupEnd)||void 0===m||m.call(console)}),u},deps:[ug,go,Il,Ce,ml,Ns,Dg,Ks,[class{},new ct],[class{},new ct]]},go,{provide:po,useFactory:function(n){return n.routerState.root},deps:[Bt]},{provide:ml,useClass:cO},K0,G0,class{preload(e,t){return t().pipe(is(()=>$(null)))}},{provide:Ks,useValue:{enableTracing:!1}}];function z3(){return new Sh("Router",Bt)}let Y0=(()=>{class n{constructor(t,r){}static forRoot(t,r){return{ngModule:n,providers:[W3,J0(t),{provide:Q0,useFactory:K3,deps:[[Bt,new ct,new mr]]},{provide:Ks,useValue:r||{}},{provide:to,useFactory:G3,deps:[Ps,[new gi(Hh),new ct],Ks]},{provide:Ig,useFactory:q3,deps:[Bt,Nv,Ks]},{provide:q0,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:G0},{provide:Sh,multi:!0,useFactory:z3},[Mg,{provide:wa,multi:!0,useFactory:Z3,deps:[Mg]},{provide:Z0,useFactory:X3,deps:[Mg]},{provide:IE,multi:!0,useExisting:Z0}]]}}static forChild(t){return{ngModule:n,providers:[J0(t)]}}}return n.\u0275fac=function(t){return new(t||n)(S(Q0,8),S(Bt,8))},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({}),n})();function q3(n,e,t){return t.scrollOffset&&e.setOffset(t.scrollOffset),new Ig(n,e,t)}function G3(n,e,t={}){return t.useHash?new MP(n,e):new mv(n,e)}function K3(n){return"guarded"}function J0(n){return[{provide:IT,multi:!0,useValue:n},{provide:Dg,multi:!0,useValue:n}]}let Mg=(()=>{class n{constructor(t){this.injector=t,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new pt}appInitializer(){return this.injector.get(SP,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const s=new Promise(a=>r=a),i=this.injector.get(Bt),o=this.injector.get(Ks);return"disabled"===o.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?$(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),s})}bootstrapListener(t){const r=this.injector.get(Ks),s=this.injector.get(K0),i=this.injector.get(Ig),o=this.injector.get(Bt),a=this.injector.get(Zi);t===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&o.initialNavigation(),s.setUpPreloading(),i.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return n.\u0275fac=function(t){return new(t||n)(S(Ce))},n.\u0275prov=k({token:n,factory:n.\u0275fac}),n})();function Z3(n){return n.appInitializer.bind(n)}function X3(n){return n.bootstrapListener.bind(n)}const Z0=new U("Router Initializer"),tU=[];let nU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Y0.forRoot(tU)],Y0]}),n})();var rU=ot(239),sU=ot(994);const X0=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Fr=(()=>{if("undefined"==typeof document)return!1;const n=X0[0],e={};for(const t of X0)if((null==t?void 0:t[1])in document){for(const[s,i]of t.entries())e[n[s]]=i;return e}return!1})(),eS={change:Fr.fullscreenchange,error:Fr.fullscreenerror};let tn={request:(n=document.documentElement,e)=>new Promise((t,r)=>{const s=()=>{tn.off("change",s),t()};tn.on("change",s);const i=n[Fr.requestFullscreen](e);i instanceof Promise&&i.then(s).catch(r)}),exit:()=>new Promise((n,e)=>{if(!tn.isFullscreen)return void n();const t=()=>{tn.off("change",t),n()};tn.on("change",t);const r=document[Fr.exitFullscreen]();r instanceof Promise&&r.then(t).catch(e)}),toggle:(n,e)=>tn.isFullscreen?tn.exit():tn.request(n,e),onchange(n){tn.on("change",n)},onerror(n){tn.on("error",n)},on(n,e){const t=eS[n];t&&document.addEventListener(t,e,!1)},off(n,e){const t=eS[n];t&&document.removeEventListener(t,e,!1)},raw:Fr};Object.defineProperties(tn,{isFullscreen:{get:()=>Boolean(document[Fr.fullscreenElement])},element:{enumerable:!0,get:()=>{var n;return null!=(n=document[Fr.fullscreenElement])?n:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[Fr.fullscreenEnabled])}}),Fr||(tn={isEnabled:!1});const Qs=tn;let iU=(()=>{class n{constructor(){}onRightClick(t){t.preventDefault()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=Ae({type:n,selectors:[["","appNoRightClick",""]],hostBindings:function(t,r){1&t&&vr("contextmenu",function(i){return r.onRightClick(i)})}}),n})();const tS=["mat-button",""],nS=["*"],aU=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],cU=Zp(bD(DB(class{constructor(n){this._elementRef=n}})));let sS=(()=>{class n extends cU{constructor(t,r,s){super(t),this._focusMonitor=r,this._animationMode=s,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const i of aU)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t,r){t?this._focusMonitor.focusVia(this._getHostElement(),t,r):this._getHostElement().focus(r)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(r=>this._getHostElement().hasAttribute(r))}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(bp),M(rs,8))},n.\u0275cmp=cn({type:n,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,r){if(1&t&&dl(du,5),2&t){let s;Gi(s=Ki())&&(r.ripple=s.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,r){2&t&&(bt("disabled",r.disabled||null),Zt("_mat-animation-noopable","NoopAnimations"===r._animationMode)("mat-button-disabled",r.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[tr],attrs:tS,ngContentSelectors:nS,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,r){1&t&&(ki(),tt(0,"span",0),Ds(1),nt(),xt(2,"span",1),xt(3,"span",2)),2&t&&(Yt(2),Zt("mat-button-ripple-round",r.isRoundButton||r.isIconButton),lt("matRippleDisabled",r._isRippleDisabled())("matRippleCentered",r.isIconButton)("matRippleTrigger",r._getHostElement()))},directives:[du],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),n})(),lU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[DD,Cn],Cn]}),n})();function uU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}function dU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}function fU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}function hU(n,e){if(1&n&&(ms(),xt(0,"circle",3)),2&n){const t=Cr();rr("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),bt("r",t._getCircleRadius())}}const iS=".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n",gU=Zp(class{constructor(n){this._elementRef=n}},"primary"),oS=new U("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});class Or extends gU{constructor(e,t,r,s,i){super(e),this._document=r,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=Or._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(r.head)||o.set(r.head,new Set([100])),this._fallbackAnimation=t.EDGE||t.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!i&&!i._forceAnimations,i&&(i.diameter&&(this.diameter=i.diameter),i.strokeWidth&&(this.strokeWidth=i.strokeWidth))}get diameter(){return this._diameter}set diameter(e){this._diameter=$l(e),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(e){this._strokeWidth=$l(e)}get value(){return"determinate"===this.mode?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,$l(e)))}ngOnInit(){const e=this._elementRef.nativeElement;this._styleRoot=Qv(e)||this._document.head,this._attachStyleNode(),e.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const e=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${e} ${e}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,t=this._diameter,r=Or._diameters;let s=r.get(e);if(!s||!s.has(t)){const i=this._document.createElement("style");i.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),i.textContent=this._getAnimationText(),e.appendChild(i),s||(s=new Set,r.set(e,s)),s.add(t)}}_getAnimationText(){const e=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*e).replace(/END_VALUE/g,""+.2*e).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Or.\u0275fac=function(e){return new(e||Or)(M(Me),M(wn),M(ie,8),M(rs,8),M(oS))},Or.\u0275cmp=cn({type:Or,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(e,t){2&e&&(bt("aria-valuemin","determinate"===t.mode?0:null)("aria-valuemax","determinate"===t.mode?100:null)("aria-valuenow","determinate"===t.mode?t.value:null)("mode",t.mode),rr("width",t.diameter,"px")("height",t.diameter,"px"),Zt("_mat-animation-noopable",t._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[tr],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(e,t){1&e&&(ms(),tt(0,"svg",0),Er(1,uU,1,9,"circle",1),Er(2,dU,1,7,"circle",2),nt()),2&e&&(rr("width",t.diameter,"px")("height",t.diameter,"px"),lt("ngSwitch","indeterminate"===t.mode),bt("viewBox",t._getViewBox()),Yt(1),lt("ngSwitchCase",!0),Yt(1),lt("ngSwitchCase",!1))},directives:[Ma,Xh],styles:[iS],encapsulation:2,changeDetection:0}),Or._diameters=new WeakMap;let yU=(()=>{class n extends Or{constructor(t,r,s,i,o){super(t,r,s,i,o),this.mode="indeterminate"}}return n.\u0275fac=function(t){return new(t||n)(M(Me),M(wn),M(ie,8),M(rs,8),M(oS))},n.\u0275cmp=cn({type:n,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,r){2&t&&(rr("width",r.diameter,"px")("height",r.diameter,"px"),Zt("_mat-animation-noopable",r._noopAnimations))},inputs:{color:"color"},features:[tr],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,r){1&t&&(ms(),tt(0,"svg",0),Er(1,fU,1,9,"circle",1),Er(2,hU,1,7,"circle",2),nt()),2&t&&(rr("width",r.diameter,"px")("height",r.diameter,"px"),lt("ngSwitch","indeterminate"===r.mode),bt("viewBox",r._getViewBox()),Yt(1),lt("ngSwitchCase",!0),Yt(1),lt("ngSwitchCase",!1))},directives:[Ma,Xh],styles:[iS],encapsulation:2,changeDetection:0}),n})(),bU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n}),n.\u0275inj=Ie({imports:[[Cn,np],Cn]}),n})();const wU=["gameFieldDiv"],EU=["loadingElement"];function vU(n,e){if(1&n){const t=Rf();tt(0,"button",8),vr("click",function(){return od(t),Cr().fullscreen()}),tt(1,"mat-icon"),Ss(2,"open_in_new"),nt(),nt()}}function CU(n,e){if(1&n){const t=Rf();tt(0,"div"),tt(1,"mat-spinner",9,10),vr("click",function(){return od(t),Cr().loading_state()}),nt(),tt(3,"p",11),Ss(4,"loading... "),nt(),nt()}}let DU=(()=>{class n{constructor(){this.isFullscreen=!1,this.isLoaded=!1}ngAfterViewInit(){var t=this;return(0,rU.Z)(function*(){Qs.isEnabled&&Qs.on("change",()=>{t.isFullscreen=Qs.isFullscreen}),(0,sU.ZP)().then(r=>{var s,i;t.wasmModule=r,t.wasmModule.run(null===(s=t.gameFieldDiv)||void 0===s?void 0:s.nativeElement.clientWidth,null===(i=t.gameFieldDiv)||void 0===i?void 0:i.nativeElement.clientHeight)})})()}fullscreen(){if(Qs.isEnabled){Qs.isFullscreen?Qs.exit():Qs.request();const t=document.getElementById("castle_sim_canvas");t&&t.focus()}}loading_state(){this.isLoaded=this.loading.nativeElement.getAttribute("tag");const t=document.getElementById("castle_sim_canvas");t&&(window.dispatchEvent(new Event("resize")),t.focus())}ngOnInit(){this.isLoaded=!1}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275cmp=cn({type:n,selectors:[["app-root"]],viewQuery:function(t,r){if(1&t&&(dl(wU,5),dl(EU,5,Me)),2&t){let s;Gi(s=Ki())&&(r.gameFieldDiv=s.first),Gi(s=Ki())&&(r.loading=s.first)}},decls:12,vars:2,consts:[["id","container"],["mat-icon-button","",3,"click",4,"ngIf"],[1,"overdraw"],["src","assets/keys/SPACE.png",1,"stretch-128"],["src","assets/keys/SHIFT.png",1,"stretch-128"],[4,"ngIf"],["appNoRightClick","","id","wasm-example",1,"main_container"],["gameFieldDiv",""],["mat-icon-button","",3,"click"],["id","loading_spinner",1,"loading-spinner","black",3,"click"],["loadingElement",""],["id","loading_text",1,"loading-spinner","loading-text","black"]],template:function(t,r){1&t&&(tt(0,"div",0),Er(1,vU,3,0,"button",1),tt(2,"div",2),tt(3,"p"),Ss(4,"Change Elevation: "),nt(),xt(5,"img",3),tt(6,"p"),Ss(7,"Faster Camera: "),nt(),xt(8,"img",4),nt(),Er(9,CU,5,0,"div",5),xt(10,"div",6,7),nt()),2&t&&(Yt(1),lt("ngIf",!r.isFullscreen),Yt(8),lt("ngIf",!r.isLoaded))},directives:[Jh,iU,sS,A8,yU],styles:["#container[_ngcontent-%COMP%]{width:100%;height:100%;max-width:100%;max-height:100%;position:relative}.black[_ngcontent-%COMP%]{width:50%;background-color:#000}.main_container[_ngcontent-%COMP%]{width:100%;height:100%;position:absolute;top:0;left:0}button[_ngcontent-%COMP%]{position:absolute;right:20px;bottom:20px;z-index:10}.overdraw[_ngcontent-%COMP%]{position:absolute;top:1em;left:1em;z-index:10!important}p[_ngcontent-%COMP%]{color:#fff}.stretch-128[_ngcontent-%COMP%]{height:38px;padding:2px}.margin_w_key[_ngcontent-%COMP%]{padding-left:38px}mat-icon[_ngcontent-%COMP%], mat-icon.matListIcon[_ngcontent-%COMP%]{outline:none!important}.loading-spinner[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10!important}.loading-text[_ngcontent-%COMP%]{alignment:center;text-align:center;top:calc(50% - 80px);color:#fff}"]}),n})(),SU=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=Oe({type:n,bootstrap:[DU]}),n.\u0275inj=Ie({providers:[],imports:[[dp,nU,R8,lU,mB,bU]]}),n})();(function(){if(OE)throw new Error("Cannot enable prod mode after platform setup.");FE=!1})(),OL().bootstrapModule(SU).catch(n=>console.error(n))},587:(rn,jt,ot)=>{"use strict";rn.exports=ot.p+"d38fd5deefec3ac266ae.wasm"},239:(rn,jt,ot)=>{"use strict";function St(Ne,_,kt,Sn,Xe,Lr,ft){try{var de=Ne[Lr](ft),be=de.value}catch(T){return void kt(T)}de.done?_(be):Promise.resolve(be).then(Sn,Xe)}function W(Ne){return function(){var _=this,kt=arguments;return new Promise(function(Sn,Xe){var Lr=Ne.apply(_,kt);function ft(be){St(Lr,Sn,Xe,ft,de,"next",be)}function de(be){St(Lr,Sn,Xe,ft,de,"throw",be)}ft(void 0)})}}ot.d(jt,{Z:()=>W})}},rn=>{rn(rn.s=328)}]); \ No newline at end of file